import{_ as Y}from"./arDialog-BWkEMGYi.js";import{b7 as j,bM as F,aS as g,aT as a,bf as d,a$ as t,aY as i,b9 as b,N as p,ba as e,bN as $,b0 as l,aB as k,bU as R,bg as C,bh as y,br as E,r as H,bV as P,a_ as S}from"./index-xnhGKCfe.js";import{L as G}from"./index-BCXnwPbG.js";import{_ as I}from"./index.vue_vue_type_style_index_0_lang-9szultRB.js";import{P as q}from"./index-97-mhYEo.js";import{u as z}from"./useGiftCode-DsR4ISoU.js";import"./use-tab-status-C1dTAhJi.js";import"./pre-D84pmYLY.js";import"./currency-DTUBf2lI.js";import"./useProtocol-DJp7lFWi.js";const A={class:"gift-wrapper"},J={class:"banner"},K=["src","title"],O={class:"card"},Q={class:"title"},W=["placeholder"],X={class:"handle"},Z={key:0,class:"card"},tt={class:"title"},et={class:"contact"},st=["onClick"],ot=["src"],nt={class:"record-card"},at={class:"record-list"},lt={class:"record-head"},it={class:"record-time"},rt={class:"record-amount"},$t=j({__name:"index",setup(dt){const{giftCode:c,confirm:f,shareBtns:m,banner:h,jump:V,content:v,recordList:u,recordLoading:r,recordFinished:w,loadRecord:B}=z(),_=H(!1),L=o=>o?E(o).format("YYYY-MM-DD HH:mm"):"";return(o,n)=>{const D=S,U=I,x=G,M=Y,N=F("safe-html");return a(),g(q,{"is-overfllow":!1},{extra:d(()=>[p(D,{name:"icon_nav_rule",iconClass:"rebate-icon",onClick:n[0]||(n[0]=s=>_.value=!0)})]),default:d(()=>[t("div",A,[t("div",J,[t("img",{src:e(h).url,title:e(h).name},null,8,K)]),t("div",O,[t("p",Q,l(o.$t("t811")),1),$(t("input",{class:"inputCode","onUpdate:modelValue":n[1]||(n[1]=s=>k(c)?c.value=s:null),type:"text",placeholder:o.$t("t273")},null,8,W),[[R,e(c)]]),t("div",X,[t("div",{class:"btn btn_main_style text_shadow",onClick:n[2]||(n[2]=(...s)=>e(f)&&e(f)(...s))},l(o.$t("t29")),1)])]),e(m)&&e(m).length?(a(),i("div",Z,[t("p",tt,l(o.$t("t812")),1),t("div",et,[(a(!0),i(C,null,y(e(m),s=>(a(),i("div",{class:"btn",onClick:()=>e(V)(s.jumpUrl)},[t("img",{src:s.imgUrl,class:"icon"},null,8,ot),t("span",null,l(s.buttonText),1)],8,st))),256))])])):b("",!0),t("div",nt,[p(x,{loading:e(r),"onUpdate:loading":n[3]||(n[3]=s=>k(r)?r.value=s:null),finished:e(w),"finished-text":e(u).length>0?o.$t("t550"):"","loading-text":o.$t("t622"),onLoad:e(B)},{default:d(()=>[t("ul",at,[t("li",lt,[t("div",null,l(o.$t("t1359")),1),t("div",null,l(o.$t("t247")),1)]),(a(!0),i(C,null,y(e(u),(s,T)=>(a(),i("li",{key:T},[t("div",it,l(L(s.receiveTime)),1),t("div",rt,l(s.amount),1)]))),128))]),e(u).length===0&&!e(r)?(a(),g(U,{key:0})):b("",!0)]),_:1},8,["loading","finished","finished-text","loading-text","onLoad"])]),p(M,{modelValue:_.value,"onUpdate:modelValue":n[5]||(n[5]=s=>_.value=s),class:"dialog-rule",hiddenFoot:!0,closeIconBtn:!0,title:o.$t("t230"),mask:!0},{default:d(()=>[P(e(v),()=>$((a(),i("article",{class:"bottom-full-text-body"},null,512)),[[N,e(v),"once"]]),n,4)]),_:1},8,["modelValue","title"])])]),_:1})}}});export{$t as default};
