1import{a0 as q,l as J,i as Q,B as G,aH as K,e as X,j as C,a1 as Y,C as Z,b0 as $,ep as x,eq as tt,_ as et,P as u,aw as ot,H as a,I as l,Q as r,T as t,ae as m,af as k,ag as w,ad as nt,ah as it,U as o,ax as f,ai as b,a3 as z,a7 as at,a8 as lt}from"./index-Vr4RTydK.js";import{u as st}from"./usePointLottery.hook-zC_JK2-t.js";const rt=q({__name:"index",setup(n,{expose:s}){s();const S=J(),e=Q(),M=G(),U=K(),{getPointLotteryInfo:g,onJoin:N,winPeople:_,list:h,loading:P,ticketCount:A,resultTicket:D,pointInfo:d}=st(),B=(c,T)=>c==0&&T==0?100:c/T*100,L=X(()=>[d.value?.img_Five,d.value?.img_Four,d.value?.img_One,d.value?.img_Three,d.value?.img_Two].filter(Boolean)),i=C(0),v=C(!1),p=C(0),I=C(!1),O=[{amount:1,price:10},{amount:3,price:30},{amount:5,price:50},{amount:10,price:100},{amount:20,price:200},{amount:30,price:300},{amount:50,price:500},{amount:100,price:1e3}];function F(){S.back()}function R(){S.push({name:"PointMall-MyLottery"})}function V(c){h.value.length&&(h.value[0].users[c].showAll=!h.value[0].users[c].showAll)}function j(c,T=!1){T?E():(v.value=c,c||(p.value=0))}function E(){I.value=!0}const W=async()=>{I.value=!1,v.value=!1,await g()};Y(D,c=>{c.length&&(I.value=!0)}),Z(async()=>{await g()});const H={router:S,route:e,globalStore:M,activityStore:U,getPointLotteryInfo:g,onJoin:N,winPeople:_,list:h,loading:P,ticketCount:A,resultTicket:D,pointInfo:d,progress:B,images:L,activeTab:i,actionSheetShow:v,activeTicketType:p,dialogShow:I,ticketAmount:O,onClick:F,goOrder:R,onTicketShowAll:V,handleActionSheetShow:j,handleParticipate:E,onConfirm:W,get Swipe(){return tt},get SwipeItem(){return x},get hidePhoneNumber(){return $}};return Object.defineProperty(H,"__isScriptSetup",{enumerable:!1,value:!0}),H}}),ct="/assets/png/luckyNumber-BTM8-h4o.png",_t="/assets/png/successfullyParticipatedBg-Bzxu_UQ7.png",dt="/assets/png/successfullyParticipatedBottom-CHenEEvA.png",y=n=>(at("data-v-c886dc4c"),n=n(),lt(),n),ut={class:"lotteryDetail__container"},vt={key:0,class:"lotteryDetail__container-item"},mt={class:"lotteryDetail__container-item__hero"},ht={class:"lotteryDetail__container-item__hero-img"},pt=y(()=>t("div",null,null,-1)),ft={class:"lotteryDetail__container-item__hero-title"},yt={class:"lotteryDetail__container-item__hero-detail"},gt=y(()=>t("div",null,null,-1)),kt={class:"text-spacing"},wt=y(()=>t("div",null,null,-1)),bt={class:"lotteryDetail__container-item__hero-progress"},St={key:0,class:"lotteryDetail__container-item__hero-footer"},Dt={class:"lotteryDetail__container-item__hero-footer__ending"},It={class:"lotteryDetail__container-item__hero-footer__cost"},Tt={style:{color:"#b247ff"}},Ct={key:1,class:"lotteryDetail__container-item__hero-footer"},Nt={class:"lotteryDetail__container-item__hero-footer__ending"},Pt={class:"lotteryDetail__container-item__hero-footer__cost"},At={class:"icon-box"},Bt={class:"lotteryDetail__container-item__luckyNumber"},Lt={class:"lotteryDetail__container-item__luckyNumber-number"},zt={key:0},Mt={key:1},Ut={class:"lotteryDetail__container-item__luckyNumber-text"},Et={key:0},Ht={key:1},Ot=y(()=>t("img",{src:ct},null,-1)),Ft={class:"lotteryDetail__container-item__footer"},Rt={class:"lotteryDetail__container-item__footer-tabBar"},Vt={class:"lotteryDetail__container-item__footer-participants"},jt={class:"lotteryDetail__container-item__footer-participants__item-header"},Wt={class:"lotteryDetail__container-item__footer-participants__item-tickets"},qt={key:0,class:"lotteryDetail__container-item__footer-participants__item-tickets__viewAll"},Jt=["onClick"],Qt=["innerHTML"],Gt={key:0},Kt={key:1},Xt={class:"lotteryDetail__container-item__actionSheet"},Yt=["onClick"],Zt={key:1,class:"lotteryDetail__container-item__actionSheetCloseBtn"},$t={class:"van-dialog__content-title"},xt={class:"van-dialog__content-subTitle"},te={class:"van-dialog__content-tips"},ee={class:"van-dialog__content-ticketsList"},oe=y(()=>t("img",{src:_t},null,-1)),ne=y(()=>t("img",{class:"van-dialog__content-successfullyParticipatedBottom",src:dt},null,-1));function ie(n,s,S,e,M,U){const g=u("NavBar"),N=u("van-progress"),_=u("svg-icon"),h=u("van-tab"),P=u("van-tabs"),A=u("van-button"),D=u("van-action-sheet"),d=u("van-icon"),B=u("van-dialog"),L=ot("lazy");return a(),l("div",ut,[r(g,{title:n.$t("drawActivity"),"left-arrow":"",onClickLeft:s[0]||(s[0]=i=>e.router.go(-1))},null,8,["title"]),e.pointInfo?(a(),l("div",vt,[t("div",mt,[t("div",ht,[r(e.Swipe,{autoplay:3e3,"indicator-color":"white"},{default:m(()=>[(a(!0),l(k,null,w(e.images,i=>
1(a(),nt(e.SwipeItem,null,{default:m(()=>[it(t("img",null,null,512),[[L,i]])]),_:2},1024))),256))]),_:1}),pt]),t("div",ft,o(e.pointInfo?.name),1),t("div",yt,[t("div",null,[t("span",null,o(n.$t("startTime")),1),gt,t("span",null,o(e.pointInfo?.startTime),1)]),t("div",null,[t("span",kt,o(n.$t("betIssue")),1),wt,t("span",null,o(e.pointInfo.issueNumber),1)])]),t("div",bt,[t("div",null,[t("span",null,o(n.$t("progress")),1),t("span",null,o(n.$t("totalActivity")),1)]),r(N,{"stroke-width":"8px",color:"#DD9138",percentage:e.progress(e.pointInfo.redeemedNumber||0,e.pointInfo.totalNumber),"show-pivot":!1},null,8,["percentage"]),t("div",null,[t("span",null,o(e.progress(e.pointInfo.redeemedNumber||0,e.pointInfo.totalNumber).toFixed(2))+"%",1),t("h1",null,o(e.pointInfo.totalNumber)+o(n.$t("sheets")),1)])]),e.pointInfo.winningNumber?(a(),l("div",St,[t("div",Dt,[t("span",null,o(n.$t("lotteryActivityEndTime")),1),t("div",null,o(e.pointInfo.endTime),1)]),t("div",It,[t("span",null,o(n.$t("lotteryWinPeople")),1),t("div",Tt,o(e.hidePhoneNumber(e.winPeople.userName)),1)])])):(a(),l("div",Ct,[t("div",Nt,[t("span",null,o(n.$t("requiredBeforeEnd")),1),t("div",null,[t("span",null,o(e.pointInfo.totalNumber-e.pointInfo.redeemedNumber),1),f(" "+o(n.$t("sheets")),1)])]),t("div",Pt,[t("span",null,o(n.$t("perRaffleTicket")),1),t("div",At,[r(_,{name:"point"}),t("h5",null,o(e.pointInfo.unit)+".00",1)])])]))]),t("div",Bt,[t("h1",null,o(n.$t("prizenumber")),1),t("div",null,[t("div",Lt,[e.pointInfo.winningNumber?(a(),l("span",zt,o(e.pointInfo.winningNumber),1)):(a(),l("span",Mt,"**********"))]),t("div",Ut,[e.pointInfo.winningNumber?(a(),l("span",Et,o(n.$t("prizenumber")),1)):(a(),l("span",Ht,o(n.$t("waitingforlottery")),1))]),Ot])]),t("div",Ft,[t("div",Rt,[t("h1",{class:b({active:e.activeTab===0}),onClick:s[1]||(s[1]=i=>e.activeTab=0)},o(n.$t("participant")),3),t("h1",{class:b({active:e.activeTab===1}),onClick:s[2]||(s[2]=i=>e.activeTab=1)},o(n.$t("PrizeDetails")),3)]),r(P,{active:e.activeTab,"onUpdate:active":s[3]||(s[3]=i=>e.activeTab=i),type:"card",background:"transparent","title-active-color":"#151515","title-inactive-color":"#333",animated:""},{default:m(()=>[r(h,{title:n.$t("popularProduct"),ref:"targetContainer"},{default:m(()=>[t("div",Vt,[(a(!0),l(k,null,w(e.pointInfo.users,(i,v)=>(a(),l("div",{class:"lotteryDetail__container-item__footer-participants__item",key:v},[t("div",jt,[t("span",{class:b({me:i.isWin})},o(e.hidePhoneNumber(i.userName)),3),t("span",null,o(i.addTime),1)]),t("div",Wt,[(a(!0),l(k,null,w(i.showAll?i.tickets:i.tickets.slice(0,5),p=>(a(),l("div",{key:p},[r(_,{name:"ticket"}),t("span",null,o(p),1)]))),128)),!i.showAll&&i.tickets.length>6?(a(),l("div",qt,[t("div",{onClick:p=>e.onTicketShowAll(v)},[f(o(n.$t("viewAll"))+" ",1),r(_,{name:"downArrow"})],8,Jt)])):z("v-if",!0)])]))),128))])]),_:1},8,["title"]),r(h,{title:n.$t("treasureScore")},{default:m(()=>[t("div",{class:"lotteryDetail__container-item__footer-detail",innerHTML:e.pointInfo.details},null,8,Qt)]),_:1},8,["title"])]),_:1},8,["active"])]),t("div",{class:b(["lotteryDetail__container-item__participate",{lotteryDetailActive:e.pointInfo.status==1}])},[e.pointInfo.status==2?(a(),l("span",Gt,o(n.$t("lotteryActivityUnstarted")),1)):e.pointInfo.status==0?(a(),l("span",Kt,o(n.$t("lotteryActivityEnd")),1)):(a(),l("span",{key:2,onClick:s[4]||(s[4]=i=>e.handleActionSheetShow(!0,!1))},o(n.$t("ParticipateInlottery")),1))],2)])):z("v-if",!0),r(D,{show:e.actionSheetShow,"onUpdate:show":s[5]||(s[5]=i=>e.actionSheetShow=i),title:n.$t("descLottery1"),"z-index":"2000","close-on-click-overlay":!1,closeable:!1},{default:m(()=>[t("div",Xt,[t("div",null,[r(_,{name:"point"}),t("span",null,o(e.globalStore.getUserInfo.integral),1)]),t("div",null,o(n.$t("myScores")),1),t("div",null,[(a(),l(k,null,w(e.ticketAmount,(i,v)=>t("div",{key:v,class:b({activeTicket:i.amount===e.ticketCount}),onClick:p=>e.ticketCount=i.amount},[t("span",null,o(i.amount),1),t("span",null,o(n.$t("sheets")),1)],10,Yt)),64))]),t("div",null,[t("span",null,o(n.$t("needToPay")),1),t("div",null,[r(_,{name:"point"}),f(" "+o(e.pointInfo?.unit*e.ticketCount||0)+".00 ",1)])])]),r(A,{class:"lotteryDetail__c
1ontainer-item__actionSheet-button",block:"",loading:e.loading,"loading-text":n.$t("confirmParticipate"),onClick:e.onJoin},{default:m(()=>[f(o(n.$t("confirmParticipate")),1)]),_:1},8,["loading","loading-text","onClick"])]),_:1},8,["show","title"]),e.actionSheetShow?(a(),l("div",Zt,[t("span",{onClick:s[6]||(s[6]=i=>e.handleActionSheetShow(!1))},[r(_,{name:"close"})])])):z("v-if",!0),r(B,{show:e.dialogShow,"onUpdate:show":s[7]||(s[7]=i=>e.dialogShow=i),"show-confirm-button":!1,"z-index":"3100"},{default:m(()=>[t("div",$t,o(n.$t("participateSuccess")),1),t("div",xt,[t("span",null,o(e.resultTicket.length),1),f(o(n.$t("sheets")),1)]),t("div",te,o(n.$t("congratsOnWinTicket")),1),t("div",ee,[t("div",null,[(a(!0),l(k,null,w(e.resultTicket,i=>(a(),l("div",null,[r(_,{name:"ticket"}),f(" "+o(i),1)]))),256))])]),t("div",{class:"van-dialog__content-confirm",onClick:e.onConfirm},o(n.$t("confirm")),1),t("div",{class:"van-dialog__content-myTreasure",onClick:e.goOrder},[f(o(n.$t("toMyTreasure"))+" ",1),r(d,{name:"arrow"}),r(d,{name:"arrow",style:{left:"-10px"}})]),oe,ne]),_:1},8,["show"])])}const se=et(rt,[["render",ie],["__scopeId","data-v-c886dc4c"],["__file","/home/jenkins/agent/workspace/AR087-Pages-pakistan-92glory/src/views/activity/PointMall/LotteryDetail/index.vue"]]);export{se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.