System.register(["./index-legacy.d2bdb9a9.js","./index-legacy.468bf92c.js","./index-legacy.f2890df6.js","./index-legacy.250b0044.js","./index-legacy.3e7d61e9.js","./index-legacy.c190013d.js","./index-legacy.d6276205.js","./cart-legacy.654ca903.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.76520395.js","./index-legacy.52791fe8.js","./index-legacy.fceaf8fe.js","./index-legacy.5c142e8b.js","./index-legacy.646643fc.js","./index-legacy.f3ee82a3.js","./index-legacy.f0bd46ca.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.e96a559f.js","./index-legacy.9b318a4a.js","./use-height-legacy.ceb96c44.js","./index-legacy.b7cb8dae.js","./hooks-legacy.8d09e504.js","./index-legacy.c610561c.js","./index-legacy.c886922b.js","./index-legacy.0f51ee95.js","./index-legacy.2ae9f0c8.js","./use-id-legacy.3bcbbc01.js","./index-legacy.0f51c771.js"],(function(e){"use strict";var n,o,t,i,u,c,l,a,r,d,s,f,v,m,g,y,p,x,b,j,h,A,I,C,B;return{setters:[function(e){n=e.d,o=e.O,t=e.N,i=e.Z,u=e.M,c=e.i,l=e.bu,a=e.w,r=e.aQ,d=e.C,s=e.F,f=e.aE,v=e.s},function(){},function(){},function(e){m=e.C},function(e){g=e.C},function(e){y=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,N,S,k,V,O,T,U,M,w,L,Q,_=(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===(N=x.orderInfo)||void 0===N?void 0:N.freightAmount)||0,couponAmount:null===(S=x.orderInfo)||void 0===S?void 0:S.couponAmount};o(0);var D={city:null===(k=x.orderInfo)||void 0===k?void 0:k.receiverCity,detailAddress:null===(V=x.orderInfo)||void 0===V?void 0:V.receiverDetailAddress,name:null===(O=x.orderInfo)||void 0===O?void 0:O.receiverName,phoneNumber:null===(T=x.orderInfo)||void 0===T?void 0:T.receiverPhone,postCode:null===(U=x.orderInfo)||void 0===U?void 0:U.receiverPostCode,province:null===(M=x.orderInfo)||void 0===M?void 0:M.receiverProvince,region:null===(w=x.orderInfo)||void 0===w?void 0:w.receiverRegion},E=o(!1),F=o(!1),H=o(!1),R=t({orderNo:(null===(L=x.orderInfo)||void 0===L?void 0:L.orderSn)||"",actualPrice:(null===(Q=x.orderInfo)||void 0===Q?void 0:Q.payAmount)||0});i(H,(function(e,n){H.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var W=function(){if(E.value){var e=v.user.data;null!=e&&e.realName&&null!=e&&e.idCardNo?R.orderNo?F.value=!0:f("没有订单号!"):H.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},Z=u(),q=function(){H.value=!1,W()};return function(){return c(s,null,[_.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},[_.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(y,{border:!1},{default:function(){return[c(g,{border:!1,title:"优惠券"},{value:function(){return c("span",{style:{fontSize:"0.42667rem",color:"#ff3535",fontWeight:"bold"}},["-¥ "+z.couponAmount])}}),c(g,{border:!1,title:"总额",value:"¥ "+z.totalAmount},null)]}})]),c("div",{class:j.payProtocol},[c(A,{modelValue:E.value,"onUpdate:modelValue":function(e){return E.value=e}},null),c(p,{buttonText:"结算(".concat(_.length,")"),buttonColor:"var(--van-primary)",disabled:0===_.length,onSubmit:function(){return W()}},{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:H.value,"onUpdate:modelValue":function(e){return H.value=e}},{default:function(){return[c(B,{onSuccess:q},null)]}}),c(r,{show:F.value,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[c(I,{modelValue:F.value,"onUpdate:modelValue":function(e){return F.value=e},orderInfo:R,paymentType:"goodsPay",onBackOut:function(){return F.value=!1}},null)]}})]):c(d,{buttonText:"去购物车",onClick:function(){Z.push({path:"/cart"})}},null)])}}}))}}}));