import{P}from"./index-97-mhYEo.js";import{_ as U}from"./arDialog-BWkEMGYi.js";import{b7 as E,t as G,u as Q,O as X,aS as $,aT as c,bf as d,a$ as e,N as u,b9 as m,aY as r,ba as a,aB as S,bg as C,bh as z,b0 as t,bc as h,b_ as w,br as F,bQ as H,a_ as g,c as O,m as q,aX as K}from"./index-xnhGKCfe.js";import{L as W}from"./index-BCXnwPbG.js";import{c as y}from"./currency-DTUBf2lI.js";import{u as Z}from"./useSuperJackpot-CZ6n4bX9.js";import"./pre-D84pmYLY.js";import"./useProtocol-DJp7lFWi.js";import"./use-tab-status-C1dTAhJi.js";const ee={class:"super-jackpot"},se={class:"content"},te={class:"game-cards"},oe={class:"game-card box_shadow_1"},ae={class:"card-header"},ne={class:"game-name"},ie={class:"card-content"},ce={class:"game-info"},le={class:"game-image"},de=["src"],re={class:"id_ex"},_e={class:"game-id"},ue={class:"ex-time"},me={class:"info-row"},pe={class:"label"},ve={class:"value multiplier"},he={class:"info-row"},ge={class:"label"},be={class:"value amount"},fe={key:0,class:"info-row"},ke={class:"label"},$e={class:"value time"},Se=["onClick"],Ce={key:1,class:"no-more box_shadow_1"},we={class:"btn-box"},ye={class:"success-tips"},Ne=["src"],Te={class:"rebate-tip"},Re={class:"rebate-tip-title"},Be={class:"rebate-tip-amout"},Le={class:"rebate-tip-cont"},Ve=E({__name:"index",setup(xe){const{getImgVal:N}=q(),b=G(),{t:i}=Q(),{getSuperJackpotList:T,superJackpotList:l,getSuperJackpotAward:R,receiveAllBigJackpotAward:f,showDialog:_,arardData:p,goBet:k,loading:v,finished:B,listLoad:L}=Z(),V=O(()=>{var o;return l.value.length!==0&&((o=l.value.filter(n=>n.receiveState===0))==null?void 0:o.length)>0}),x={0:i("t641"),1:i("t239"),2:i("t306"),3:i("t592")},D={0:i("t631"),1:i("t916"),2:i("t306"),3:i("t592")},J=()=>{b.push({name:"superRule"})},A=()=>{b.push({name:"superJackpotRecord"})},I=o=>{o.receiveState===0&&R({orderNo:o.orderNo,betTime:o.betTime})};return X(()=>{T()}),(o,n)=>{const M=W,Y=U,j=P;return c(),$(j,null,{extra:d(()=>[u(g,{name:"icon_winning",class:"icon",onClick:A}),u(g,{name:"icon_sup_rules",class:"icon",onClick:J})]),default:d(()=>[e("div",ee,[e("div",se,[a(l).length>0?(c(),$(M,{key:0,loading:a(v),"onUpdate:loading":n[0]||(n[0]=s=>S(v)?v.value=s:null),finished:a(B),"finished-text":o.$t("t550"),onLoad:a(L),class:"game-cards-wrapper"},{default:d(()=>[e("div",te,[(c(!0),r(C,null,z(a(l),s=>(c(),r("div",oe,[e("div",ae,[e("div",ne,t(s.gameName),1),e("div",{class:h(["status","s"+s.receiveState])},t(x[s.receiveState]),3)]),e("div",ie,[e("div",ce,[e("div",le,[e("img",{src:s.gameImgUrl,alt:"Egyptian Queen"},null,8,de)]),e("div",re,[e("div",_e,t(s.orderNo),1),e("div",ue,[w(t(o.$t("t936"))+" ",1),e("span",null,t(a(F)(s.expirationTime).format("YYYY-MM-DD")),1)])])]),e("div",me,[e("div",pe,t(o.$t("t556")),1),e("div",ve,t(s.multiple)+"X",1)]),e("div",he,[e("div",ge,t(o.$t("t549")),1),e("div",be,t(a(y)(s.bonusAmount)),1)]),s.receiveTime?(c(),r("div",fe,[e("div",ke,t(o.$t("t277")),1),e("div",$e,t(a(H)(s.receiveTime)),1)])):m("",!0),e("div",{class:h(["receive-btn text_shadow btn_main_style",{disabled:s.receiveState!==0}]),onClick:De=>I(s)},t(D[s.receiveState]),11,Se)])]))),256))])]),_:1},8,["loading","finished","finished-text","onLoad"])):m("",!0),a(l).length===0?(c(),r("div",Ce,[u(g,{name:"super_jackpot_nomore","icon-class":"no-more-icon"}),w(" "+t(o.$t("t932")),1)])):m("",!0),e("div",we,[e("div",{class:"go-bet-btn btn_main_style",onClick:n[1]||(n[1]=(...s)=>a(k)&&a(k)(...s))},t(o.$t("t924")),1),e("div",{class:h(["btn1",!V.value&&"disabled"]),onClick:n[2]||(n[2]=(...s)=>a(f)&&a(f)(...s))},t(o.$t("t547")),3)])]),u(Y,{modelValue:a(_),"onUpdate:modelValue":n[3]||(n[3]=s=>S(_)?_.value=s:null),closeIconBtn:!0,mask:!0,btnText:o.$t("t29"),onCommit:n[4]||(n[4]=s=>_.value=!1)},{head:d(()=>[e("div",ye,[e("img",{src:a(N)("icon_success_tip"),alt:"icon_success_tip",class:"icon2"},null,8,Ne)])]),default:d(()=>{var s;return[e("div",Te,[e("div",Re,t(o.$t("t246")),1),((s=a(p))==null?void 0:s.orderCount)<1?(c(),r(C,{key:0},[e("p",null,t(o.$t("t552")),1),e("div",Be,t(a(p).orderCount),1),e("p",null,t(o.$t("t553")),1)],64)):m("",!0),e("div",Le,t(a(y)(a(p).totalReceiveAmount)),1)])]}),_:1},8,["modelValue","btnText"])])]),_:1})}}}),Ge=K(Ve,[["__scopeId","data-v-1a8da1b5"]]);export{Ge as default};
