import{b as o,u as e,e as l}from"./index_1730355987.js";function n(){const n=o(),t=e(),f=l((()=>{let o=t.vipInfo.rows&&t.vipInfo.rows.filter((o=>o.lv===t.vipInfo.myLv));return o&&o.length>0?o[0]:{dailyAward:[],award:[],monthlyAward:[],weeklyAward:[]}})),r=l((()=>{let o={amount:0,lv:1};if(n.globalConfig.platformConfig){let e=n.globalConfig.platformConfig.vip_config.filter((o=>o.amount<=(1===t.userInfo.vipLevelType?t.userInfo.totalPay:t.userInfo.totalBet||0)));e.length&&(o=e[0])}return o})),a=l((()=>{let o={amount:0,lv:2};if(!r.value.lv)return o.lv=1,o;if(n.globalConfig.platformConfig){let e=n.globalConfig.platformConfig.vip_config.filter((o=>o.amount>(1===t.userInfo.vipLevelType?t.userInfo.totalPay:t.userInfo.totalBet||0)));o=e.length?e[e.length-1]:n.globalConfig.platformConfig.vip_config[0]}return o})),i=l((()=>{const o=1===t.userInfo.vipLevelType?t.userInfo.totalPay:t.userInfo.totalBet||0,e=a.value.amount;if(o/e)return o/e*100>100?"100%":(o/e*100).toFixed(2)+"%"})),u=l((()=>{const o=1===t.userInfo.vipLevelType?t.userInfo.totalPay:t.userInfo.totalBet||0,e=a.value.amount;if(!o&&n.globalConfig.platformConfig){let o=n.globalConfig.platformConfig.vip_config.find((o=>1==o.lv));return n.globalConfig.platformConfig.vip_config.find((o=>2==o.lv)).amount-o.amount}return o>e?0:e-o}));return{currentLevel:r,nextLevel:a,levelSpeed:i,poorRecharge:u,levelProp:f}}export{n as u};
