import{H as t}from"./Header-hbN0HDAk.js";import{l as a,a as i}from"./lucky-xV4e5_53.js";import{_ as e,bI as s}from"./common-store-e_1WBubm.js";import{U as l,R as n,r as o,j as c,G as r,b as v,q as u,I as d,h as y,x as m,t as p,u as b,f as g,n as k,F as x,e as f,o as I}from"./vendor-jA_NIjzi.js";import"./common-utils-8H8K2JPG.js";import"./vendor-crypto-Vtl7-GZS.js";/* empty css              */import"./SvgIcon-unOD6nfS.js";import"./noData-4a9O8hjw.js";import"./activity--Cax8tPm.js";import"./vendor-mqtt-lYGapirz.js";const C={class:"lucky-activity"},h={class:"lucky-activity-container overflow-y-auto"},j=["src"],A={class:"message-box"},w={class:"message-box-container"},T=["innerHTML"],M={class:"list"},O={class:"list-item"},_={class:"nub-message"},D={class:"text-nub"},H={key:0},q={class:"text-nub-two"},B={class:"table-list"},S={class:"table-hander-text"},V={key:0,class:"table-hander-text"},L={class:"table-hander-text"},N={class:"table-hander-text"},R={class:"padding-t-b"},U={key:0,class:"padding-t-b"},F={class:"padding-t-b table-td-txte"},G={class:"rule-box"},z=["innerHTML"],E=e({__name:"luckyActivity",setup(e){const{t:E}=l(),J=n(),K=o({luckyBetActivityInfoVO:{betOrderCount:0,receiveCountDay:0,receivedCount:0}}),P=o(!1);c((async()=>{await Q()}));const Q=async()=>{const t=await s({activityId:J.query.id,activityConditionType:J.query.activityConditionType});t&&(K.value=t.data)},W=r((()=>{var t;return 1==+(null==(t=K.value)?void 0:t.bonusMode)})),X=r((()=>{const t=K.value.luckyBetActivityInfoVO.receivedCount||0,a=K.value.luckyBetActivityInfoVO.receiveCountDay||0;return"".concat(a-t," / ").concat(a)})),Y=r((()=>{var t,a;return W.value?null==(t=K.value.fixed)?void 0:t.map((t=>({maskedNo:t.conditionString.padStart(10,"*"),amount:t.giveMaxAmount}))):null==(a=K.value.ratio)?void 0:a.map((t=>({maskedNo:t.conditionString.padStart(10,"*"),ratio:+(null==t?void 0:t.rewardRatio),amount:0==+t.rewardMaxAmount?"∞":t.rewardMaxAmount})))}));return(e,s)=>(I(),v("div",C,[u(t,{class:"fund-details-header",title:K.value.activityName,isRightShow:!1},{right:d((()=>[y("span",{class:"claim-record",onClick:s[0]||(s[0]=t=>P.value=!0)},p(b(E)("领取记录")),1)])),_:1},8,["title"]),y("div",h,[y("img",{class:"banner",src:K.value.activityH5ImgUrl,alt:""},null,8,j),y("div",A,[y("div",w,[y("div",{innerHTML:K.value.activityIntroductionData},null,8,T)])]),y("div",M,[y("div",O,[y("div",_,[y("div",null,[m(p(b(E)("昨日中奖注单数"))+"： ",1),y("span",D,p(K.value.luckyBetActivityInfoVO.betOrderCount),1)]),K.value.luckyBetActivityInfoVO.receiveCountDay&&0!==K.value.luckyBetActivityInfoVO.receiveCountDay?(I(),v("div",H,[m(p(b(E)("今日领取次数"))+"：",1),y("span",q,p(X.value),1)])):g("",!0)]),y("div",B,[y("div",{class:k(["table-hander betting-row",W.value?"grid-columns2":"grid-columns3"])},[y("div",S,p(b(E)("注单尾号")),1),W.value?(I(),v("div",V,p(b(E)("奖励礼金")),1)):(I(),v(x,{key:1},[y("div",L,p(b(E)("下注金额倍数")),1),y("div",N,p(b(E)("奖励上限")),1)],64))],2),(I(!0),v(x,null,f(Y.value,(t=>(I(),v("div",{key:t.no,class:k(["table-td betting-row",W.value?"grid-columns2":"grid-columns3"])},[y("div",R,p(t.maskedNo),1),W.value?g("",!0):(I(),v("div",U,p(b(E)("x倍",{x:t.ratio})),1)),y("div",F,p(t.amount),1)],2)))),128))])]),y("div",G,[y("div",{class:"rule-box-content",innerHTML:K.value.activityRuleData},null,8,z)])])]),u(a,{refresh:Q,detail:K.value},null,8,["detail"]),u(i,{activityId:b(J).query.id,activityConditionType:b(J).query.activityConditionType,visible:P.value,"onUpdate:visible":s[1]||(s[1]=t=>P.value=t)},null,8,["activityId","activityConditionType","visible"])]))}},[["__scopeId","data-v-32b01801"],["__file","luckyActivity.vue"]]);export{E as default};
