import{r as e,j as s,o as a,b as t,f as l,q as o,U as n,u as r,h as i,F as u,e as c,x as d,t as m,I as v,s as p,af as b,n as f}from"./vendor-jA_NIjzi.js";import{_}from"./theme-cFVP6Qy8.js";import{H as h}from"./Header-X_QfKFhH.js";import{_ as x,bw as g,bx as j}from"./common-store-kFD1YPwN.js";import{S as k}from"./SvgIcon-a1Rg7hQY.js";import{k as w}from"./common-utils-RDWuRZ1M.js";/* empty css              */import"./vendor-mqtt-lYGapirz.js";import"./vendor-crypto-Vtl7-GZS.js";const y={class:"rules-popup-box"},R=["innerHTML"],I={key:1,class:"content"},N=x({__name:"RulesPopupBox",emits:["close"],setup(n,{emit:r}){const i=e(null),u=r;return s((async()=>{const e=await g();i.value=e.data})),(e,s)=>{var n;return a(),t("div",y,[i.value?(a(),t("div",{key:0,class:"content",innerHTML:null==(n=i.value)?void 0:n.rebateRole},null,8,R)):l("",!0),i.value?l("",!0):(a(),t("div",I,"...")),o(k,{name:"borderClose",class:"close-btn",onClick:s[0]||(s[0]=e=>u("close"))})])}}},[["__scopeId","data-v-98fff046"],["__file","RulesPopupBox.vue"]]),C={class:"rebate-details"},H={class:"rebate-container"},S={class:"rebate-tit"},q={class:"rebate-table"},A={class:"title"},B={class:"rules-popup-box"},F=x({__name:"index",setup(l){const{t:x}=n(),g=e(!1),y=e({}),R=e("0.00"),I=e=>{if(isNaN(e))return e;const s=parseFloat(e);if(isNaN(s))return!1;const a=s.toString(),t=a.indexOf(".");if(t<0)return a+".00";return a.length-t-1<2?a+"0":a.substring(0,t+3)};return I(1.2),s((()=>{(async()=>{const e=await j();if(!e.success)return e.message&&p(e.message);y.value=e.data,e.data.length>=1&&(R.value=e.data[0].maxRebateAmont)})()})),(e,s)=>{const l=b;return a(),t("div",C,[o(h,{title:r(x)("返水详情"),isRightShow:!1},null,8,["title"]),i("div",H,[s[3]||(s[3]=i("div",{class:"top"},[i("img",{class:"top-tit",src:_,alt:""})],-1)),(a(!0),t(u,null,c(y.value,((e,s)=>(a(),t("div",{class:f(["rebate-items",{"ls-rebate-items":[2013,2015,600].includes(r(w)())}]),key:s},[i("div",S,m(e.thirdGameName),1),i("div",q,[i("div",A,[i("div",null,m(r(x)("有效投注")),1),i("div",null,m(r(x)("返水比例")),1)]),(a(!0),t(u,null,c(e.rebates,((e,s)=>(a(),t("div",{key:s},[i("div",null,m("≥"+e.betAmount),1),i("div",null,m(I(e.rebateRate)+"%"),1)])))),128))])],2)))),128))]),i("div",{class:"rebate-rules",onClick:s[0]||(s[0]=e=>g.value=!0)},[d(m(r(x)("返水规则")),1),o(k,{name:"backIcon"})]),o(l,{show:g.value,"onUpdate:show":s[2]||(s[2]=e=>g.value=e),style:{width:"calc(100% - 24px)",background:"none"}},{default:v((()=>[i("div",B,[o(N,{onClose:s[1]||(s[1]=e=>g.value=!1),data:R.value},null,8,["data"])])])),_:1},8,["show"])])}}},[["__scopeId","data-v-e47270ba"],["__file","index.vue"]]);export{F as default};
