System.register(["./index-legacy.f8641610.js","./index-legacy.c8b60294.js","./index-legacy.28050159.js","./index-legacy.37e9f27c.js","./index-legacy.fc510843.js","./index-legacy.c36297f9.js","./index-legacy.2e2f724a.js","./cart-legacy.2a6d84fa.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.c933a693.js","./index-legacy.5032bf00.js","./index-legacy.f3e05e77.js","./index-legacy.a47aea4d.js","./index-legacy.697c598b.js","./index-legacy.421c6f71.js","./index-legacy.aee47fad.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.78c8492b.js","./index-legacy.90f7f902.js","./use-height-legacy.be763bb2.js","./index-legacy.1dea7f77.js","./hooks-legacy.1d4168e3.js","./index-legacy.c3bbeade.js","./index-legacy.957c23ee.js","./index-legacy.8bfe8003.js","./index-legacy.8a3dede6.js","./use-id-legacy.30c2e9af.js","./index-legacy.3442906b.js"],(function(e){"use strict";var n,o,t,i,u,c,l,a,r,d,s,f,v,m,y,g,p,x,b,j,h,A,I,C,B;return{setters:[function(e){n=e.d,o=e.U,t=e.S,i=e.a3,u=e.Q,c=e.i,l=e.by,a=e.A,r=e.aT,d=e.C,s=e.F,f=e.T,v=e.s},function(){},function(){},function(e){m=e.C},function(e){y=e.C},function(e){g=e.C},function(e){p=e.S},function(e){x=e.c,b=e.f},function(e){j=e.s},function(e){h=e.A},function(e){A=e.C},function(e){I=e.P},function(e){C=e.C},function(e){B=e.U},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",n({name:"cartConfirmAgin",setup:function(){var e,n,P,S,N,k,T,V,U,O,L,M,Q,_,w=(null===(e=x.orderInfo)||void 0===e?void 0:e.orderItemList)||[],z={totalAmount:(null===(n=x.orderInfo)||void 0===n?void 0:n.totalAmount)||0,payAmount:(null===(P=x.orderInfo)||void 0===P?void 0:P.payAmount)||0,freightAmount:(null===(S=x.orderInfo)||void 0===S?void 0:S.freightAmount)||0,couponAmount:null===(N=x.orderInfo)||void 0===N?void 0:N.couponAmount};o(0);var D={city:null===(k=x.orderInfo)||void 0===k?void 0:k.receiverCity,detailAddress:null===(T=x.orderInfo)||void 0===T?void 0:T.receiverDetailAddress,name:null===(V=x.orderInfo)||void 0===V?void 0:V.receiverName,phoneNumber:null===(U=x.orderInfo)||void 0===U?void 0:U.receiverPhone,postCode:null===(O=x.orderInfo)||void 0===O?void 0:O.receiverPostCode,province:null===(L=x.orderInfo)||void 0===L?void 0:L.receiverProvince,region:null===(M=x.orderInfo)||void 0===M?void 0:M.receiverRegion},F=o(!1),H=o(!1),R=o(!1),W=t({orderNo:(null===(Q=x.orderInfo)||void 0===Q?void 0:Q.orderSn)||"",actualPrice:(null===(_=x.orderInfo)||void 0===_?void 0:_.payAmount)||0});i(R,(function(e,n){R.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var q=function(){if(F.value){var e=v.user.data;null!=e&&e.realName&&null!=e&&e.idCardNo?W.orderNo?H.value=!0:f("没有订单号!"):R.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},E=u(),G=function(){R.value=!1,q()};return function(){return c(s,null,[w.length?c("div",{class:j.cartConfirm},[c("div",{class:j.cartConfirmBox},[c(h,{item:D,isLink:!1},null)]),c("div",{style:{marginTop:"20px"},class:[j.cartBox,j.cartConfirmBox]},[c("div",{class:j.shopBox},[w.map((function(e){return c("div",{class:[j.cartItem],style:{marginBottom:"10px"}},[c(m,{price:l(e.productPrice),desc:b(e.productAttr),title:e.productName,thumb:e.productPic,num:e.productQuantity},null)])}))]),c(g,{border:!1},{default:function(){return[c(y,{border:!1,title:"优惠券"},{value:function(){return c("span",{style:{fontSize:"0.42667rem",color:"#ff3535",fontWeight:"bold"}},["-¥ "+z.couponAmount])}}),c(y,{border:!1,title:"总额",value:"¥ "+z.totalAmount},null)]}})]),c("div",{class:j.payProtocol},[c(A,{modelValue:F.value,"onUpdate:modelValue":function(e){return F.value=e}},null),c(p,{buttonText:"结算(".concat(w.length,")"),buttonColor:"var(--van-primary)",disabled:0===w.length,onSubmit:function(){return q()}},{default:function(){return[c("div",{class:j.confirmBottom},[a("合计")," ",c("span",{class:j["price-des"]},[a("¥"),l(z.payAmount)])])]}})]),c("div",{style:{height:"var(--van-submit-bar-height)"}},null),c(C,{modelValue:R.value,"onUpdate:modelValue":function(e){return R.value=e}},{default:function(){return[c(B,{onSuccess:G},null)]}}),c(r,{show:H.value,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[c(I,{modelValue:H.value,"onUpdate:modelValue":function(e){return H.value=e},orderInfo:W,paymentType:"goodsPay",onBackOut:function(){return H.value=!1}},null)]}})]):c(d,{buttonText:"去购物车",onClick:function(){E.push({path:"/cart"})}},null)])}}}))}}}));