import{_ as F}from"./arDialog-BWkEMGYi.js";import{b7 as I,d5 as W,t as z,O,aS as y,aT as l,bf as r,a$ as e,N as c,aY as i,b9 as h,b0 as s,ba as t,bg as v,bh as f,bc as P,a_ as _,aB as U,r as E,aX as X}from"./index-xnhGKCfe.js";import{c as b}from"./currency-DTUBf2lI.js";import{P as Y}from"./index-97-mhYEo.js";import{u as Z}from"./useRebate-CLW3zX9C.js";import"./pre-D84pmYLY.js";import"./useProtocol-DJp7lFWi.js";const j="/images/rebate_coin-DyLeyzC_.png",q={class:"rebate-head"},G={class:"header-container"},J={class:"balance-container"},K={class:"total-amount"},Q=["disabled"],ee={key:1,class:"auto-wash-notice"},te={class:"rebate-tabs"},se=["onClick"],oe={class:"rebate-info-container"},ae={class:"rebate-info-box"},ne={class:"rebate-info-title"},le={class:"rebate-info-amount"},ie={class:"rebate-info-box"},re={class:"rebate-info-title"},ue={class:"rebate-info-amount rate-amount"},ce={class:"rebate-info-box"},de={class:"rebate-info-title"},_e={class:"rebate-info-amount rebate-amount"},be={class:"history-title"},me={class:"rebate-provider"},pe={class:"rebate-provider-item"},he={class:"rebate-table"},ve={key:0,class:"tag"},fe={class:"success-tips"},Ce={class:"rebate-tip"},ge={class:"rebate-tip-title"},$e={class:"rebate-tip-cont"},ke={class:"dialog-rule-tips"},ye=["innerHTML"],we=I({__name:"index",setup(Le){const{isFrontManualCodeWashing:w,isSettletheWashingAmount:L}=W(),m=E(!1),{summary:p,successData:V,tabList:R,rebateLv:d,games:A,ruleData:C,getCodeWashingData:B,getCodeRule:D,viewAll:H,handleRebate:g,showDialog:u,selectState:S,currState:T}=Z(),M=z(),N=()=>{u.value=!1,M.push({path:"/"})},x=()=>{C.value||D()};return O(async()=>{await B()}),(a,n)=>{const $=F;return l(),y(Y,{class:"rebate-main",showBack:!0},{extra:r(()=>[c(_,{name:"icon_help",iconClass:"rebate-icon",onClick:n[0]||(n[0]=o=>m.value=!0)}),c(_,{name:"icon_History",iconClass:"rebate-icon",onClick:t(H)},null,8,["onClick"])]),default:r(()=>[e("div",q,[n[5]||(n[5]=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 690 190",fill:"none",preserveAspectRatio:"none"},[e("path",{d:"M0 16C0 7.16344 7.16344 0 16 0H330.455C339.641 0 348.319 4.2077 354.008 11.4189L366.492 27.2422C372.181 34.4534 380.859 38.6611 390.045 38.6611H674C682.837 38.6611 690 45.8245 690 54.6611V190H0V16Z",fill:"var(--bg_color_L2)"})],-1)),n[6]||(n[6]=e("img",{src:j,class:"rebate_coin",alt:""},null,-1)),e("div",G,[e("div",J,[e("p",null,s(a.$t("t458")),1),e("div",K,s(t(b)(t(p).totalRebateAmount)),1)]),t(w)?(l(),i("button",{key:0,class:"rebate-btn btn_main_style",disabled:!t(p).totalRebateAmount,onClick:n[1]||(n[1]=(...o)=>t(g)&&t(g)(...o))},s(a.$t("t631")),9,Q)):h("",!0),t(L)?(l(),i("div",ee,s(a.$t("t451")),1)):h("",!0)])]),e("div",te,[e("ul",null,[(l(!0),i(v,null,f(t(R),o=>(l(),i("li",{class:P(["btn_Secondary_style",{currActive:t(T)===o.value}]),onClick:k=>t(S)(o)},s(o.label),11,se))),256))])]),e("ul",oe,[e("li",ae,[e("span",ne,s(a.$t("t658")),1),e("span",le,s(t(b)(t(d).betAmount)),1)]),e("li",ie,[e("span",re,s(a.$t("t839")),1),e("span",ue,s(t(d).rate)+"%",1)]),e("li",ce,[e("span",de,s(a.$t("t458")),1),e("span",_e,s(t(b)(t(d).rebateAmount)),1)])]),e("div",be,s(a.$t("t665")),1),e("ul",me,[(l(!0),i(v,null,f(t(A),(o,k)=>(l(),i("li",pe,[(l(),y(_,{group:"game",name:o.vendorCode.toLowerCase(),iconClass:"icon2",key:k},null,8,["name"]))]))),256))]),e("table",he,[e("thead",null,[e("tr",null,[e("th",null,s(a.$t("t1273")),1),e("th",null,s(a.$t("t457")),1)])]),e("tbody",null,[(l(!0),i(v,null,f(t(d).vipLevels,o=>(l(),i("tr",null,[e("th",null,s(o.level),1),e("th",null,s(o.rate)+"%",1),o.level==t(p).vipLevel?(l(),i("div",ve,s(a.$t("t232")),1)):h("",!0)]))),256))])]),c($,{modelValue:t(u),"onUpdate:modelValue":n[2]||(n[2]=o=>U(u)?u.value=o:null),closeIconBtn:!0,mask:!0,btnText:a.$t("t924"),onCommit:N},{head:r(()=>[e("div",fe,[c(_,{name:"icon_success_tip",iconClass:"icon2"})])]),default:r(()=>[e("div",Ce,[e("div",ge,s(a.$t("t923")),1),e("div",$e,s(t(b)(t(V).rebateAmount)),1)])]),_:1},8,["modelValue","btnText"]),c($,{modelValue:m.value,"onUpdate:modelValue":n[3]||(n[3]=o=>m.value=o),class:"dialog-rule",onOpen:x,hiddenFoot:!0,closeIconBtn:!0,mask:!0,btnText:a.$t("t29"),onCommit:n[4]||(n[4]=o=>u.value=!1)},{head:r(()=>[e("div",ke,s(a.$t("t602")),1)]),default:r(()=>[e("div",{class:"rebate-rule",innerHTML:t(C)},null,8,ye)]),_:1},8,["modelValue","btnText"])]),_:1})}}}),Te=X(we,[["__scopeId","data-v-4ef14453"]]);export{Te as default};
