import{d as e}from"./vendor-CB_mu4eO.js";import{E as a,l as n}from"./souav-BTAG2baT.js";import{p as o}from"./vendor-Nz4M5R8X.js";import{r as s}from"./vendor-BXdGExd0.js";const c=e("currency",()=>{const e=s([]),c=s([]),t=s([]),i=s(null),l=s(null),u=s(null),d=s(null);return{goodsList:e,vipGoodsList:c,payChannelList:t,exchangeView:i,exchangeDown:l,exchangeVip1:u,exchangeVip2:d,queryGoodsList:async function(){try{const n=await o.goodsList();if(n.code===a.Success&&n.data){const a=n.data;t.value=a.channelList||[],e.value=a.goodsList||[],c.value=a.vipGoodsList||[]}}catch(n){}},queryExchangeGoods:async function(){try{const e=await o.exchangeGoods();if(e.code===a.Success&&e.data){const a=e.data.exchangeGoodsList||[];i.value=a.find(e=>e.exchangeType===n.View)||null,l.value=a.find(e=>e.exchangeType===n.Down)||null,u.value=a.find(e=>e.exchangeType===n.Vip1)||null,d.value=a.find(e=>e.exchangeType===n.Vip2)||null}}catch(e){}},reset:function(){e.value=[],c.value=[],t.value=[]}}});export{c as u};
