import{V as R,Q as I,r as d,a0 as N,a1 as A,O as V,W as v,ak as x,m as l,p as e,$ as p,N as c,af as _,Z as o,at as T,ad as g,ao as q,a3 as f,U as E,o as u,X as G,Y as S}from"./common.modules-adc6b33e.js";import{bF as U,A as z,bG as h,a as H,g as F,_ as M}from"./page-activity-ActivityDetail-b9249b49.js";import{L as Q}from"./page-activity-DailySignIn-37493f03.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";import"./page-activity-Championship-4cc13bf8.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const W={class:"redeem-container"},j={class:"redeem-container-header"},O={class:"redeem-container-header-belly"},X={alt:""},Y={class:"redeem-container-content"},Z={class:"redeem-container-receive"},J=["placeholder"],K={key:0},ee={class:"redeem-container-record"},te={class:"redeem-container-record-title"},se={class:"redeem-container-record-itemsBox"},ae={class:"redeem-container-record-item ar-1px-b"},oe={class:"redeem-container-record-item-left"},ne={class:"redeem-container-record-item-right"},ie=["src"],re=R({__name:"index",setup(w){const{t:i}=I(),y=d(!1),b=N(),C=A(),n=d(C.query.hbcode||""),$=d(!0),m=V({pageSize:10,pageNo:1,startDate:null,endDate:null}),r=d({list:[],pageNo:0,totalPage:0,totalCount:0}),k=async()=>{if(n.value.trim()===""){await f({message:i("tipPlsEnterCode")});return}const t=await U({giftCode:n.value});if(t.code===0){E(i("redeemDialogDesc1")),n.value="",await P();return}else await f({message:i(`code${t.msgCode}`)})},P=async()=>{const t=await z(h(m));t&&(r.value.list=t==null?void 0:t.data.list)};return(t,a)=>{const B=v("NavBar"),D=v("svg-icon"),L=x("lazy");return u(),l("div",W,[e("div",j,[p(B,{title:t.$t("gift"),"left-arrow":"",onClickLeft:a[0]||(a[0]=s=>c(b).go(-1))},null,8,["title"]),e("div",O,[_(e("img",X,null,512),[[L,c(H)("main","gift")]])])]),e("div",Y,[e("div",Z,[e("p",null,o(t.$t("tipHelloVIP")),1),e("p",null,o(t.$t("tipWepreparedGift4u")),1),e("h4",null,o(t.$t("tipPlsEnterRedeemCode")),1),_(e("input",{type:"text","auto-complete":"new-password",autocomplete:"off",placeholder:t.$t("tipPlsEnterCode"),"onUpdate:modelValue":a[1]||(a[1]=s=>n.value=s)},null,8,J),[[T,n.value]]),y.value?(u(),l("h5",K,o(t.$t("tipPlsBindBankcard")),1)):g("v-if",!0),e("button",{onClick:a[2]||(a[2]=s=>k())},o(t.$t("receive")),1)]),e("div",ee,[e("div",te,[p(D,{name:"giftHistory"}),g(` <img :src="getIcons('main', 'gRecord')" /> `),e("span",null,o(t.$t("record")),1)]),e("div",se,[p(Q,{list:r.value.list,"onUpdate:list":a[3]||(a[3]=s=>r.value.list=s),"page-query":m,"onUpdate:pageQuery":a[4]||(a[4]=s=>m=s),api:c(h),distance:20,isAutoLoad:$.value},{content:q(()=>[(u(!0),l(G,null,S(r.value.list,s=>(u(),l("div",{class:"redeem-container-record-items",key:s.reserved},[e("div",ae,[e("div",oe,[e("h5",null,o(t.$t("receiveSuccess")),1),e("span",null,o(s.addTime),1)]),e("div",ne,[e("img",{src:c(F)("main","gold")},null,8,ie),e("span",null,o(s.amount),1)])])]))),128))]),_:1},8,["list","page-query","api","isAutoLoad"])])])])])}}});const ve=M(re,[["__scopeId","data-v-695ca243"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/main/RedeemGift/index.vue"]]);export{ve as default};
//# sourceMappingURL=page-main-RedeemGift-de29fdc3.js.map
