System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./store-legacy6.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./validator-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./column-legacy.js?v=1761009159"],function(e,t){"use strict";var l,n,o,r,s,a,c,i,u,m,d,v,f,p,x,g,h,b,w,C,y;return{setters:[function(e){l=e.ax,n=e._},function(e){o=e.c,r=e.s,s=e.aA,a=e.c8,c=e.w,i=e.g,u=e.q,m=e.v,d=e.x,v=e.z,f=e.F,p=e.b0,x=e.K,g=e.y,h=e.C,b=e.A,w=e.e,C=e.Q},function(e){y=e.P},null,null,null,null],execute:function(){var t={class:"flex flex-col"},M={class:"flex flex-col absolute w-full"},E={class:"pt-2.6rem bottom-bg"},j={class:"px-3.6rem"},_={class:"voucher-list mt-2.6rem min-h-[230px] flex flex-col items-center justify-center"},L={class:"voucher-amount inline-block px-1.6rem relative w-12rem"},N={class:"font-bold text-large"},k={class:"text-large36"},I={class:"text-tertiary mt-1rem"},D={class:"inline-block text-left mr-1rem text-secondary voucher-instructions flex-1 pl-1.6rem"},S={class:"text-base mb-1rem"},A={class:"voucher-count-down mt-1.2rem text-left"},H={class:"text-danger mlr-[1rem] inline-block text-extraLarge"},T={class:"px-[3.6rem] pb-1rem mt-1.4rem"},O={class:"voucher-count-down text-center text-medium leading-[3rem] mt-[2.6rem] text-secondary flex justify-center"},V={class:"mt-[2rem] voucher-footer text-center"},F=o({__name:"index",props:{compData:{default:function(){return{isCoupon:[],isHome:!1}}}},setup:function(e){var n=y(),o=r(n),F=o.couponItem,R=(o.closeAfterReload,o.timeClose),Z=o.timeNow,q=n.siteList,z=n.addZero,B=n.claimCouponEvent,G=n.changeCloseTimeEvent,K=s("popupClose",function(){}),P=function(e){if(null==e)return"时间未知";var t=Number(e);if(isNaN(t)||t<0)return"时间格式错误";if(t>Number.MAX_SAFE_INTEGER/1e3)return"时间过长";var l=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%86400%3600/60),r=[];return l>0&&r.push("".concat(l,"天")),n>0&&r.push("".concat(n,"小时")),o>0&&r.push("".concat(o,"分")),r.length>0?r.join(""):"不足1分钟"},Q=e,U=a();c(function(){return U.value},function(e){Z.value=e});var X=i(function(){var e="00",t="00",l="00",n="00",o=Number(sessionStorage.getItem("HOME-ENDTIME"));(!o||Z.value>=o)&&(o=Z.value+72e5,sessionStorage.setItem("HOME-ENDTIME",o.toString()));var r=o-Z.value;return r>0?(e=z(Math.floor(r/36e5)),t=z(Math.floor(r/6e4%60)),l=z(Math.floor(r/1e3%60)),n=z(Math.floor(r%1e3/10))):(e="00",t="00",l="00",n="00",0===r&&(sessionStorage.removeItem("HOME-ENDTIME"),G("week",!1))),{hour:e,minute:t,second:l,millisecond:n}});return u(function(){Q.compData.isCoupon.length&&(F.value=Q.compData.isCoupon)}),function(e,n){var o=l;return m(),d("section",t,[n[9]||(n[9]=v("svg",{viewBox:"0 0 402 485",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"402.000000",height:"485.000000",fill:"none"},[v("g",null,[v("path",{class:"coupon-background",d:"M402 10C402 4.47715 397.523 0 392 0L10 0C4.47715 0 0 4.47715 0 10L0 303.008C0.165974 303.003 0.332656 303 0.5 303C8.50813 303 15 309.492 15 317.5C15 325.508 8.50813 332 0.5 332C0.332656 332 0.165974 331.997 0 331.992L0 475C0 480.523 4.47715 485 10 485L392 485C397.523 485 402 480.523 402 475L402 331.992C394.223 331.728 388 325.341 388 317.5C388 309.659 394.223 303.272 402 303.008L402 10Z","fill-rule":"evenodd"}),v("path",{id:"直线 1",class:"coupon-line",d:"M15 318L387 318"})])],-1)),v("div",M,[v("div",E,[v("div",j,[n[4]||(n[4]=v("div",{class:"text-extraLarge text-pro w-full text-center"},"免费限时领取【大额优惠券】",-1)),v("div",_,[(m(!0),d(f,null,p(g(F),function(e,t){return m(),d("div",{key:t,class:x(["voucher-item flex items-center justify-between py-[1.6rem] rounded-base",t===g(F).length-1?"mb-[1.4rem]":"mb-[2.4rem]"])},[v("div",L,[v("div",N,[n[2]||(n[2]=h(" ￥",-1)),v("span",k,b(e.val2),1)]),v("div",I,"满"+b(e.val1)+"减"+b(e.val2),1)]),v("div",D,[v("div",S,"仅限"+b(e.name),1),v("div",A,[n[3]||(n[3]=h(" 领取后有效期 ",-1)),v("div",H,b(P(e.timeout)),1)])])],2)}),128))])])]),v("div",T,[v("div",O,[n[5]||(n[5]=h(" 距结束",-1)),v("span",null,b(g(X).hour),1),n[6]||(n[6]=h("时",-1)),v("span",null,b(g(X).minute),1),n[7]||(n[7]=h("分",-1)),v("span",null,b(g(X).second),1),n[8]||(n[8]=h("秒",-1)),v("span",null,b(g(X).millisecond),1)]),v("div",V,[v("span",{class:"text-white bg-pro hover:bg-[var(--bt-pro-sub-color)]",onClick:n[0]||(n[0]=function(e){return g(B)(g(K))})},"一键领取"),w(o,{modelValue:g(R),"onUpdate:modelValue":n[1]||(n[1]=function(e){return C(R)?R.value=e:null}),options:g(q),class:"reminder mt-1rem !w-[14rem]",placeholder:"选择不通知的时间",onChange:g(G)},null,8,["modelValue","options","onChange"])])])])])}}});e("default",n(F,[["__scopeId","data-v-1a1ddaa3"]]))}}});
