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 v,I as m,s as p,af as b,n as f}from"./vendor-jA_NIjzi.js";import{_}from"./tit-q4NjGaCE.js";import{H as x}from"./Header-hbN0HDAk.js";import{_ as h,bw as g,bx as j}from"./common-store-e_1WBubm.js";import{S as k}from"./SvgIcon-unOD6nfS.js";import{k as w}from"./common-utils-8H8K2JPG.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=h({__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=h({__name:"index",setup(l){const{t:h}=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(x,{title:r(h)("返水详情"),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,v(e.thirdGameName),1),i("div",q,[i("div",A,[i("div",null,v(r(h)("有效投注")),1),i("div",null,v(r(h)("返水比例")),1)]),(a(!0),t(u,null,c(e.rebates,((e,s)=>(a(),t("div",{key:s},[i("div",null,v("≥"+e.betAmount),1),i("div",null,v(I(e.rebateRate)+"%"),1)])))),128))])],2)))),128))]),i("div",{class:"rebate-rules",onClick:s[0]||(s[0]=e=>g.value=!0)},[d(v(r(h)("返水规则")),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:m((()=>[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-a636935d"],["__file","index.vue"]]);export{F as default};
