System.register(["./index-legacy-94f8815f.js"],(function(e,t){"use strict";var n,o,a,i,r,s,l,u,m,p,c,d,_,b,f,g,v,h;return{setters:[e=>{n=e.bO,o=e.c,a=e.b,i=e.m,r=e.t,s=e.d,l=e.af,u=e.e,m=e.w,p=e.Y,c=e.a,d=e.k,_=e.r,b=e.y,f=e.R,g=e.V,v=e.C,h=e.F}],execute:function(){var w=document.createElement("style");w.textContent='._wxPopupDialog_1avbm_1{overflow:initial}._wxPopupDialog_1avbm_1:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url('+new URL("wx-no-top-562db7f2.png",t.meta.url).href+") no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_1avbm_16{background:url("+new URL("wx-no-bg-f12a4a6d.png",t.meta.url).href+") no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden;padding-bottom:.42667rem;text-align:center}._popupContainer_1avbm_16 ._title1_1avbm_24{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1avbm_16 ._popupTips_1avbm_31{padding-top:.42667rem;padding-bottom:.42667rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}._popupContainer_1avbm_16 ._button_1avbm_39{padding:0 .85333rem;height:.8rem;font-size:.42667rem;font-size:.37333rem;color:#777;border-color:#e7e7e7}\n",document.head.appendChild(w);const[S,x]=o("count-down"),y={time:a(0),format:i("HH:mm:ss"),autoStart:r,millisecond:Boolean};var C=s({name:S,props:y,emits:["change","finish"],setup(e,{emit:t,slots:o}){const{start:a,pause:i,reset:r,current:s}=l({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),d=u((()=>function(e,t){const{days:o}=t;let{hours:a,minutes:i,seconds:r,milliseconds:s}=t;if(e.includes("DD")?e=e.replace("DD",n(o)):a+=24*o,e.includes("HH")?e=e.replace("HH",n(a)):i+=60*a,e.includes("mm")?e=e.replace("mm",n(i)):r+=60*i,e.includes("ss")?e=e.replace("ss",n(r)):s+=1e3*r,e.includes("S")){const t=n(s,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}(e.format,s.value))),_=()=>{r(+e.time),e.autoStart&&a()};return m((()=>e.time),_,{immediate:!0}),p({start:a,pause:i,reset:_}),()=>c("div",{role:"timer",class:x()},[o.default?o.default(s.value):d.value])}});e("C",d(C));const k="_wxPopupDialog_1avbm_1",D="_popupContainer_1avbm_16",z="_title1_1avbm_24",H="_popupTips_1avbm_31",B="_button_1avbm_39";e("M",s({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"},showButton:{type:Boolean,default:!1},buttonText:{type:String,default:"确定"}},emits:["confirm"],setup(e,{emit:t}){const n=_(!1);return b((()=>{f().weixin||!e.show||(n.value=!0)})),m((()=>[e.show,e.message]),(()=>{e.show?n.value=!0:n.value=!1})),()=>c(h,null,[c(g,{show:n.value,"onUpdate:show":e=>n.value=e,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:k},{default:()=>[c("div",{class:D},[c("p",{class:z},[e.title]),c("p",{class:H},[e.message]),e.showButton&&c(v,{round:!0,class:B,onClick:()=>t("confirm")},{default:()=>[e.buttonText]})])]})])}}))}}}));
