@polyv/product-ui 1.13.0-rc-20260423.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1773,4 +1773,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1773
1773
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e.exports.__esModule=!0,e.exports.default=e.exports},74:function(e,o,r){r.r(o);var i=r(5),a=r(19),l=r(83),c={name:"plv-button",components:{PlvIcon:a.default},directives:{loading:l.a},props:{icon:{type:String,default:""},iconPosition:{type:String,default:"left",validator:function(d){return["left","right"].indexOf(d)!==-1}},value:{type:String,default:"按钮"},size:{type:String,default:"default",validator:function(d){return["default","medium","small"].indexOf(d)!==-1}},type:{type:String,default:"normal",validator:function(d){return["normal","operate","delete","cancel"].indexOf(d)!==-1}},square:{type:[Boolean,void 0],default:void 0},autoWidth:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},linkBtn:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{showContent:!0,buttonOtherStyle:{}}},computed:{btnType:function(){return this.linkBtn?"a":"button"},squareVal:function(){var d,p;return(d=(p=this.square)!==null&&p!==void 0?p:i.a.getConfig("Button","square"))!==null&&d!==void 0&&d}},watch:{loading:{handler:function(){this.loading?(this.buttonOtherStyle={width:"".concat(this.$refs.btn.getBoundingClientRect().width,"px")},this.showContent=!1):(this.buttonOtherStyle={},this.showContent=!0)}}},methods:{onClick:function(d){this.disabled||this.loading?d.preventDefault():this.$emit("click",d)}}},u=(r(127),r(0)),s=Object(u.a)(c,(function(){var d=this,p=d.$createElement,f=d._self._c||p;return f(d.btnType,{directives:[{name:"loading",rawName:"v-loading",value:d.loading,expression:"loading"}],ref:"btn",tag:"component",staticClass:"plv-button",class:[d.size?"plv-button--"+d.size:"",d.type?"plv-button--"+d.type:"",d.disabled||d.loading?"plv-button--disabled":"",d.squareVal?"plv-button--square":"",d.autoWidth?"plv-button__auto-width":"",d.loading?"plv-button--loading":""],style:d.buttonOtherStyle,attrs:{disabled:d.disabled||d.loading},on:{click:d.onClick}},[d.icon&&d.iconPosition==="left"?f("plv-icon",{attrs:{icon:d.icon}}):d._e(),d._v(" "),d.showContent?d._t("default",[d._v(d._s(d.value))]):d._e(),d._v(" "),d.icon&&d.iconPosition==="right"?f("plv-icon",{attrs:{icon:d.icon}}):d._e()],2)}),[],!1,null,null,null).exports;s.install=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.a.setConfig("Button","square",p.square),d.component(s.name,s)},o.default=s},75:function(e,o,r){},78:function(e,o){e.exports=function(r){if(Array.isArray(r))return r},e.exports.__esModule=!0,e.exports.default=e.exports},79:function(e,o){e.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1774
1774
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e.exports.__esModule=!0,e.exports.default=e.exports},8:function(e,o,r){var i,a=r(29),l=r(1).a["__core-js_shared__"],c=(i=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",u=function(w){return!!c&&c in w},s=r(20),d=r(11),p=/^\[object .+?Constructor\]$/,f=Function.prototype,b=Object.prototype,v=f.toString,x=b.hasOwnProperty,S=RegExp("^"+v.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=function(w){return!(!Object(s.a)(w)||u(w))&&(Object(a.a)(w)?S:p).test(Object(d.a)(w))},h=function(w,m){return w==null?void 0:w[m]};o.a=function(w,m){var g=h(w,m);return _(g)?g:void 0}},81:function(e,o,r){r.r(o);var i=r(65),a=r(95);i.a.install=function(l){l.component(i.a.name,i.a),l.prototype.$toast=a.a},["success","warning","info","error"].forEach((function(l){i.a[l]=a.a[l]})),o.default=i.a},82:function(e,o){e.exports=function(r,i){var a=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var l,c,u,s,d=[],p=!0,f=!1;try{if(u=(a=a.call(r)).next,i===0){if(Object(a)!==a)return;p=!1}else for(;!(p=(l=u.call(a)).done)&&(d.push(l.value),d.length!==i);p=!0);}catch(b){f=!0,c=b}finally{try{if(!p&&a.return!=null&&(s=a.return(),Object(s)!==s))return}finally{if(f)throw c}}return d}},e.exports.__esModule=!0,e.exports.default=e.exports},83:function(e,o,r){var i=r(7),a=r.n(i),l=r(44),c=a.a.extend(l.a);function u(s){if(!s.loadingInstance){var d=new c;d.$mount(),s.appendChild(d.$el),d.show(),s.loadingInstance=d}}o.a={name:"loading",bind:function(s,d){d.value&&u(s)},update:function(s,d){d.value?u(s):(function(p){if(p.loadingInstance){var f=p.loadingInstance;f.$el.parentElement.removeChild(f.$el),f.$destroy(),p.loadingInstance=void 0,delete p.loadingInstance}})(s)}}},86:function(e,o,r){r(62)},87:function(e,o,r){r.r(o);var i=r(67),a=r.n(i);o.default=a.a},9:function(e,o,r){var i=r(1).a.Symbol;o.a=i},91:function(e,o,r){},95:function(e,o,r){var i=r(4),a=r.n(i),l=r(7),c=r.n(l),u=r(2),s=r(65),d=c.a.extend(s.a),p=[],f=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!c.a.prototype.$isServer){typeof(b=b||{})=="string"&&(b={message:b});var v=Object(u.l)(),x=new d({data:{isScript:!0},propsData:b});x.id=v,x.$on("close",(function(){f.close(v)})),x.$mount(),document.body.appendChild(x.$el);var S=20;return p.forEach((function(_){S+=_.$el.offsetHeight+16})),x.top=S,x.show(),x.close=function(){x.handleClose()},p.push(x),x}};["success","warning","info","error"].forEach((function(b){f[b]=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"提示",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a()(v)==="object"?x=v:x.message=v,x.type=b,f(x)}})),f.close=function(b){for(var v,x=p.length,S=-1,_=0;_<x;_++)if(b===p[_].id){v=p[_].$el.offsetHeight,S=_,p.splice(_,1);break}if(!(x<=1||S===-1||S>p.length-1))for(var h=S;h<x-1;h++){var w=p[h].$el;w.style.top=parseInt(w.style.top,10)-v-16+"px"}},o.a=f},98:function(e,o,r){}}).default})(Ul,Ul.exports)),Ul.exports}AZ();const DZ=(t,n)=>{function e(){return document.body}const o=k.computed(()=>{let i=e();return k.unref(n)&&(i=k.unref(n)),i});function r(){const i=k.unref(t),a=k.unref(o);!i||!a||a.appendChild(i)}k.watch(()=>[k.unref(t),k.unref(o)],()=>{r()},{immediate:!0}),k.onBeforeUnmount(()=>{const i=k.unref(t);i&&i.parentNode&&i.parentNode.removeChild(i)})},Pr=()=>(()=>!0);function k9(t){return{[`update:${t}`]:()=>!0}}const jZ=navigator.userAgent.toLowerCase(),oi=m1();oi.os.isAndroid,oi.os.isIOS,oi.os.isMacOS,oi.client.version;const Up=oi.client.isWx,IZ=oi.client.isWxWork,MZ=(Up||IZ)&&/miniprogramenv/.test(jZ);function RZ(){const t=navigator.userAgent;return/mobile|android/i.test(t)?!0:!(/\b(Windows\sNT|Macintosh|x86(_(32|64))?|amd64|i[1-6]86)\b/.test(t)||!("onorientationchange"in window))}function zZ(){const t=navigator.userAgent;return!!(/(?:iPad|PlayBook)/.test(t)||oi.os.isAndroid&&!/(?:Mobile)/.test(t)||/(?:Tablet)/.test(t))}const L9=RZ();L9&&zZ();const So=L9||MZ;var P9=(t=>(t.Vertical="Vertical",t.Horizontal="Horizontal",t))(P9||{});const FZ=(t={})=>{const{autoListen:n=!0,autoListenCb:e=()=>{}}=t,{injectData:o}=io(),r=k.ref("Vertical"),i=k.computed(()=>{var f;return(f=o.pageFullscreen)!=null?f:!1}),a=k.computed(()=>So?r.value==="Vertical":!1),l=k.computed(()=>So?i.value?!0:r.value==="Horizontal":!1);function c(){window.innerWidth<window.innerHeight&&(r.value="Vertical")}function u(){(window.orientation===180||window.orientation===0)&&(r.value="Vertical"),(window.orientation===90||window.orientation===-90)&&(r.value="Horizontal"),c()}function s(){setTimeout(()=>{const f=window.matchMedia("(orientation: portrait)");f!=null&&f.matches?r.value="Vertical":r.value="Horizontal",c(),e(r.value)},200)}function d(){window.addEventListener("onorientationchange"in window?"orientationchange":"resize",s,!1)}function p(){window.removeEventListener("onorientationchange"in window?"orientationchange":"resize",s,!1)}return k.onMounted(()=>{n&&(d(),s())}),k.onBeforeUnmount(()=>{p()}),{screenOrientationMode:r,isVerticalScreenOrientation:a,isHorizontalScreenOrientation:l,pageFullscreen:i,listenOrientationEvent:d,updateScreenOrientationModeManually:u}},NZ=()=>{const t=[{enabledField:"fullscreenEnabled",elementField:"fullscreenElement",requestApiField:"requestFullscreen",exitApiField:"exitFullscreen",fullscreenChangeEvent:"fullscreenchange"},{enabledField:"webkitFullscreenEnabled",elementField:"webkitFullscreenElement",requestApiField:"webkitRequestFullscreen",exitApiField:"webkitExitFullscreen",fullscreenChangeEvent:"webkitfullscreenchange"},{enabledField:"webkitCancelFullScreen",elementField:"webkitCurrentFullScreenElement",requestApiField:"webkitRequestFullScreen",exitApiField:"webkitCancelFullScreen",fullscreenChangeEvent:"webkitfullscreenchange"},{enabledField:"mozFullScreenEnabled",elementField:"mozFullScreenElement",requestApiField:"mozRequestFullScreen",exitApiField:"mozCancelFullScreen",fullscreenChangeEvent:"mozfullscreenchange"},{enabledField:"msFullscreenEnabled",elementField:"msFullscreenElement",requestApiField:"msRequestFullscreen",exitApiField:"msExitFullscreen",fullscreenChangeEvent:"MSFullscreenChange"}];let n;for(let e=0;e<t.length;e++){const o=t[e];if(o.enabledField in document){n=o;break}}return{fieldData:n}},BZ=(t=document.documentElement)=>{const{fieldData:n}=NZ(),e=k.ref(!1),o=k.ref(null),r=k.computed(()=>!!n),i=()=>{if(typeof t=="function"){const s=t();return k.unref(s)||document.documentElement}return k.unref(t)||document.documentElement};function a(){const s=i();!n||!s[n.requestApiField]||s[n.requestApiField]()}function l(){n&&document[n.exitApiField]()}function c(){n&&(document[n.elementField]?l():a())}function u(){n&&(document[n.elementField]?e.value=!0:e.value=!1,o.value=document[n.elementField])}return k.onMounted(()=>{n&&(document.addEventListener(n.fullscreenChangeEvent,u),document[n.elementField]&&u())}),k.onBeforeUnmount(()=>{n&&document.removeEventListener(n.fullscreenChangeEvent,u)}),{isFullscreen:e,supportFullscreen:r,requestFullscreen:a,exitFullscreen:l,toggleFullscreen:c}},T9=["bottom","left","right","center"],VZ=Symbol("plv-product-common-popup"),WZ=()=>k.inject(VZ,{}),UZ=t=>{const{initHeightRatio:n=.7,maxHeightRatio:e=.85}=t||{},o=k.ref(0),r=k.ref(0),i=k.ref(null),a=k.computed(()=>Math.min(n+r.value,e)),l=k.computed(()=>r.value+n>=e);function c(s){i.value===null&&(i.value=requestAnimationFrame(()=>{const d=s.target,p=d.scrollTop,f=d.scrollHeight,b=d.clientHeight;!l.value&&p>o.value&&(r.value+=(p-o.value)/(f-b),o.value=p),i.value=null}))}function u(){r.value=0,o.value=0,i.value!==null&&(cancelAnimationFrame(i.value),i.value=null)}return{dynamicContentHeightPercent:a,handleScroll:c,reset:u}},HZ=k.defineComponent({__name:"index",props:{value:Ce.bool.def(!1),title:Ce.string.def(""),backgroundMode:Ce.oneOf(["bg1"]),background:Ce.string,closeable:Ce.bool.def(!0),fillBody:Ce.bool.def(!1),backable:Ce.bool.def(!1),headerHeight:Ce.string.def("52px"),contentHeightPercent:Ce.oneOfType([Boolean,Number]).def(.7),showHeader:Ce.bool.def(!0),openEvent:Ce.looseString,position:Ce.oneOf(T9),horizontalScreenPosition:Ce.oneOf(T9).def("right"),horizontalScreenClassName:Ce.string,width:Ce.looseString,appendTo:Ce.looseElement,showModal:Ce.looseBool,popupConfig:Ce.object(),showScrollbar:Ce.bool.def(!0),closeOnMask:Ce.bool.def(!0),customClose:Ce.func(),customBack:Ce.func(),enableDynamicHeight:Ce.bool.def(!1),dynamicHeightOptions:Ce.object()},emits:{input:Pr(),"after-leave":Pr()},setup(t,{expose:n,emit:e}){const o=t,{injectData:r}=io(),i=WZ(),{isHorizontalScreenOrientation:a,pageFullscreen:l,screenOrientationMode:c}=FZ(),{isFullscreen:u}=BZ(),{dynamicContentHeightPercent:s,handleScroll:d,reset:p}=UZ(o.dynamicHeightOptions);function f(){var W,X,J,re;return(re=(X=o.appendTo)!=null?X:(W=o.popupConfig)==null?void 0:W.appendTo)!=null?re:(J=k.unref(i==null?void 0:i.popupConfig))==null?void 0:J.appendTo}const b=k.computed(()=>{let W=f();if(u.value&&k.unref(r.fullscreenElement)){let X=k.unref(r.fullscreenElement);typeof X=="string"?X=document.querySelector(X)||void 0:X=X,X&&(W=X)}return W}),v=k.computed(()=>{var W,X,J,re,ie;return(ie=(re=(X=o.showModal)!=null?X:(W=o.popupConfig)==null?void 0:W.showModal)!=null?re:(J=k.unref(i.popupConfig))==null?void 0:J.showModal)!=null?ie:!0});function x(){var X,J;let W=o.position||((X=o.popupConfig)==null?void 0:X.position)||((J=k.unref(i.popupConfig))==null?void 0:J.position);return W||(So?W="bottom":W="center",W)}const S=k.computed(()=>{let W=x();return W==="bottom"&&a.value&&(W=o.horizontalScreenPosition),W}),_=k.computed(()=>{const W=[];return o.fillBody&&W.push("plv-product-common-popup--fill-body"),S.value&&W.push(`plv-product-common-popup--position-${S.value}`),So&&W.push("plv-product-common-popup--mobile"),v.value||W.push("plv-product-common-popup--hide-modal"),o.showScrollbar||W.push("plv-product-common-popup--hide-scrollbar"),a.value&&(W.push("plv-product-common-popup--horizontal-screen"),o.horizontalScreenClassName&&W.push(o.horizontalScreenClassName)),l.value&&c.value!==P9.Horizontal&&W.push("plv-product-common-popup--page-fullscreen"),W}),h=k.computed(()=>{const W={};return b.value&&b.value!==document.body&&(W.position="absolute"),W}),w=k.computed(()=>{const W={};return o.headerHeight&&(W.height=o.headerHeight),W}),m=k.computed(()=>{var X,J;let W=o.width||((X=o.popupConfig)==null?void 0:X.width)||((J=k.unref(i.popupConfig))==null?void 0:J.width);if(W)return W;switch(W="100%",S.value){case"bottom":W="100%";break;case"left":W="375px";break;case"right":W="375px";break;case"center":W="375px";break}return W}),g=k.computed(()=>o.fillBody?"90%":a.value?document.documentElement.clientHeight:o.enableDynamicHeight?document.documentElement.clientHeight*s.value:typeof o.contentHeightPercent=="number"?document.documentElement.clientHeight*o.contentHeightPercent:null),y=k.computed(()=>{const W=[];return o.backgroundMode&&W.push(`plv-product-common-popup__body--${o.backgroundMode}`),W}),C=k.computed(()=>{const W={};return o.background&&(W.background=o.background),m.value&&(W.width=m.value),g.value&&(W.height=`${g.value}px`),W}),P=k.ref(!1),T=k.ref(!1),O=k.ref(),E=k.ref();DZ(O,b);function D(){return we(this,null,function*(){yield k.nextTick(),O.value&&uZ.openPopper(O.value)})}o.openEvent&&Tf(o.openEvent,()=>{D()});function j(W){o.enableDynamicHeight&&d(W)}function I(){P.value=!0,T.value=!0,D()}function Q(){T.value=!1,e("input",!1)}function R(){if(o.customClose){o.customClose({closeBody:Q});return}Q()}function N(){o.closeOnMask&&R()}function B(){if(o.customBack){o.customBack({closeBody:Q});return}Q()}function H(){P.value=!1,e("after-leave"),o.enableDynamicHeight&&p()}function V(){E.value&&(E.value.scrollTop=0)}return k.watch(()=>o.value,()=>{o.value?I():Q()}),k.onMounted(()=>{o.value&&I()}),n({resetScroll:V}),{__sfc:!0,props:o,emit:e,globalInjectData:r,popupInjectData:i,isHorizontalScreenOrientation:a,pageFullscreen:l,screenOrientationMode:c,isFullscreen:u,dynamicContentHeightPercent:s,handleScroll:d,resetContentHeight:p,getOriginAppendTo:f,popupAppendTo:b,popupShowModal:v,getOriginPosition:x,popupPosition:S,wrapClass:_,wrapStyle:h,headerStyle:w,bodyWidth:m,bodyHeight:g,bodyClass:y,bodyStyle:C,wrapVisible:P,bodyVisible:T,wrapRef:O,innerRef:E,topicPopup:D,onBodyScroll:j,open:I,closeBody:Q,close:R,onClickMask:N,back:B,onAfterLeave:H,resetScroll:V,ProductIconClose:w6,ProductIconArrowLeft:g6}}});var GZ=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{directives:[{name:"show",rawName:"v-show",value:o.wrapVisible,expression:"wrapVisible"}],ref:"wrapRef",staticClass:"plv-product-common-popup",class:o.wrapClass,style:o.wrapStyle,on:{click:o.onClickMask}},[e("transition",{attrs:{name:"plv-product-common-popup-slide"},on:{"after-leave":o.onAfterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:o.bodyVisible,expression:"bodyVisible"}],staticClass:"plv-product-common-popup__body",class:o.bodyClass,style:o.bodyStyle,on:{click:function(r){r.stopPropagation()}}},[n.showHeader?[n._t("header",function(){return[e("div",{staticClass:"plv-product-common-popup__header",style:o.headerStyle},[n.backable?e(o.ProductIconArrowLeft,{staticClass:"plv-product-common-popup__back",on:{click:function(r){return r.stopPropagation(),o.back.apply(null,arguments)}}}):n._e(),n.title?e("div",{staticClass:"plv-product-common-popup__title"},[n._v(" "+n._s(n.title)+" ")]):n._e(),e("div",{staticClass:"plv-product-common-popup__header-right"},[n._t("header-right",function(){return[n.closeable?e(o.ProductIconClose,{staticClass:"plv-product-common-popup__close",on:{click:o.close}}):n._e()]})],2)],1)]})]:n._e(),e("div",{staticClass:"plv-product-common-popup__content"},[e("div",{ref:"innerRef",staticClass:"plv-product-common-popup__inner",on:{scroll:o.onBodyScroll}},[n._t("default")],2)])],2)])],1)},YZ=[],ZZ=tn(HZ,GZ,YZ);const KZ=ZZ.exports,O9=Symbol("checkbox-group-inject-key"),XZ=()=>({circle:Ce.bool.def(!1),checked:Ce.bool.def(!1),value:Ce.oneOfType([String,Number,Boolean]),label:Ce.string,showBackground:Ce.bool.def(!1),disabled:Ce.bool.def(!1)}),JZ=()=>_e(ee({},k9("checked")),{change:Pr()}),qZ=t=>{const{props:n,emit:e}=t,o=k.inject(O9,{inGroup:!1}),r=k.computed(()=>o.inGroup&&o.value?k.unref(o.value).includes(n.value):n.checked);function i(){var a;if(!n.disabled){if(o.inGroup){let l=[...k.unref(o.value)||[]];r.value?l=l.filter(c=>c!==n.value):l.push(n.value),(a=o.emitInput)==null||a.call(o,l);return}e("update:checked",!k.unref(r)),e("change",!k.unref(r))}}return{isChecked:r,onClickCheckbox:i}};XZ(),JZ(),Ce.array(),Pr();const E9=()=>{const t=k.getCurrentInstance();function n(){return t==null?void 0:t.proxy}function e(){var a;(a=n())==null||a.$destroy()}function o(){const a=n();return a==null?void 0:a.$el}function r(){var a;return(a=n())==null?void 0:a.$children}function i(a="default"){const l=n();return(l==null?void 0:l.$slots)&&l.$slots[a]||[]}return{getInstance:n,destroyCurrentInstance:e,getCurrentElem:o,getCurrentChildrens:r,getSlot:i}};var Q9=(t=>(t.Default="default",t.Medium="medium",t.Small="small",t))(Q9||{});function Hp(t){return typeof t=="string"?t:typeof t=="number"?`${t}px`:t}co.warning=()=>{};const A9=((...t)=>t)("inline","header"),$Z=()=>({formData:Ce.object().def({}),formRules:Ce.object().def({}),labelWidth:Ce.number.def(170),labelHeight:Ce.number.def(So?52:40),contentWidth:Ce.looseNumber,submitAction:Ce.func(),theme:Ce.enum(),labelModel:Ce.oneOf(A9).def("inline"),debug:Ce.bool.def(!1)}),eK=()=>({"submit-form":Pr()}),D9=Symbol("FORM_WRAP_PROPS_PROVIDE_KEY"),j9=()=>k.inject(D9,void 0),tK=Symbol("FORM_WRAP_PROVIDE_KEY"),nK=t=>{const{props:n,emit:e}=t,{formData:o,submitAction:r,debug:i}=Cf(n),{getCurrentChildrens:a}=E9(),l=k.ref(!1);function c(){return we(this,arguments,function*(s={}){const d=a();if(!(!d||d.length===0))for(let p=0;p<d.length;p++){const f=d[p];if(oK(f))try{yield f.validateFormItem(s)}catch(b){return Promise.reject(b)}}})}function u(s){return we(this,null,function*(){try{yield c(s),e("submit-form",k.unref(o));const d=k.unref(r);if(typeof d=="function"){l.value=!0;try{yield d(k.unref(o))}catch(p){l.value=!1}finally{l.value=!1}}}catch(d){console.error("submitForm-error",d.message)}})}return k.provide(D9,n),k.provide(tK,{debug:i,isSubmiting:l,validateCurrentForm:c,submitForm:u}),{isSubmiting:l,validateCurrentForm:c,submitForm:u}},rK=()=>({formField:Ce.looseString,label:Ce.looseString,labelWidth:Ce.looseNumber,labelHeight:Ce.looseNumber,contentWidth:Ce.looseNumber,showErrorMessage:Ce.bool.def(!0),errorMessage:Ce.looseString,labelModel:Ce.oneOf(A9),required:Ce.bool.def(!1),highlightError:Ce.bool.def(!1)}),oK=t=>{var e;const n=t;return(e=n==null?void 0:n.isFormItem)!=null?e:!1},I9=Symbol("FORM_ITEM_PROVIDE_KEY"),iK=()=>k.inject(I9,void 0),aK=t=>{const{props:n}=t,e=k.computed(()=>n.required),o=j9(),r=k.computed(()=>n.label),i=k.computed(()=>{var v,x;return(x=(v=n.labelModel)!=null?v:o==null?void 0:o.labelModel)!=null?x:"inline"}),a=k.computed(()=>{var S,_;if(k.unref(i)==="header")return{};const v=(S=n.labelWidth)!=null?S:o==null?void 0:o.labelWidth,x=(_=n.labelHeight)!=null?_:o==null?void 0:o.labelHeight;return{width:Hp(v),height:Hp(x)}}),l=k.computed(()=>{var x;const v=(x=n.contentWidth)!=null?x:o==null?void 0:o.contentWidth;return Hp(v)}),c=k.computed(()=>({width:l.value})),u=k.ref(),s=k.computed(()=>typeof k.unref(u)!="undefined");k.watchEffect(()=>{n.errorMessage?d(n.errorMessage):u.value=void 0}),k.watch(()=>o==null?void 0:o.formRules,()=>{u.value=void 0});function d(v){v&&!n.showErrorMessage||(u.value=v)}function p(){u.value=void 0}function f(v={}){var C;const x=(C=v.showErrorMessage)!=null?C:!0,S=n.formField,_=o==null?void 0:o.formData,h=o==null?void 0:o.formRules;if(!S||!_||!h||!h[S])return Promise.resolve();const w={[S]:h[S]},m={[S]:_[S]},g=new co(w);let y;return g.validate(m,P=>{P&&P.length&&(y=P[0].message)}),x&&n.showErrorMessage&&d(y),new Promise((P,T)=>{typeof y=="undefined"?P():T(new Error(y))})}const b={isFormItem:!0,formItemIsError:s,setErrorMessage:d,removeErrorMessage:p,validateFormItem:f};return k.provide(I9,b),{required:e,labelText:r,labelModel:i,labelStyle:a,contentWidthStyle:l,contentStyle:c,itemErrorMessage:u,formItemIsError:s,removeErrorMessage:p,validateFormItem:f,formItemInstance:b}},M9=()=>({size:Ce.enum(),theme:Ce.enum(),validateForm:Ce.bool.def(!0)}),sK=t=>{const{props:n,classPrefix:e}=t,o=j9();return{commonClassNames:k.computed(()=>{const i=[],a=n.size;a&&a!==Q9.Default&&i.push(`${e}--size-${a}`);const l=n.theme||(o==null?void 0:o.theme);return k.unref(l)&&i.push(`${e}--theme-${l}`),i})}},R9=t=>{const{props:n}=t,e=iK();function o(){return we(this,null,function*(){yield e==null?void 0:e.validateFormItem()})}function r(){return we(this,null,function*(){if(n.validateForm)try{yield o()}catch(l){console.error("blur-validate",l.message)}})}function i(){n.validateForm&&(e==null||e.removeErrorMessage())}const a=k.computed(()=>!n.validateForm||!e?!1:k.unref(e.formItemIsError));return{validateCurrentFormItem:o,blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}},lK=()=>_e(ee({},M9()),{readonly:Ce.bool.def(!1),disabled:Ce.bool.def(!1),value:Ce.oneOfType([String,Number]).def(""),type:Ce.string.def("text"),placeholder:Ce.string.def(""),maxlength:Ce.number.def(1/0),showWordLimit:Ce.bool.def(!1),suffixText:Ce.string.def(""),clearable:Ce.bool.def(!1),useTextarea:Ce.bool.def(!1),rows:Ce.number.def(4),inputTitle:Ce.string.def(""),inputTitleWidth:Ce.number.def(void 0)}),cK=()=>({input:Pr(),blur:Pr(),focus:Pr(),enter:Pr()}),uK=t=>{const{emit:n,props:e,classPrefix:o}=t,{blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}=R9({props:e}),{commonClassNames:l}=sK({props:e,classPrefix:o}),c=k.ref(),u=k.ref(!1),s=k.computed(()=>{const g=[...k.unref(l)];return k.unref(a)&&g.push(`${o}--error`),e.useTextarea&&g.push(`${o}--textarea`),g}),d=k.computed(()=>{var y;if(!e.showWordLimit)return"";const g=`${(y=e.value)!=null?y:""}`.length;return e.maxlength===1/0?`${g}`:`${g}/${e.maxlength}`});function p(){n("input",""),h()}function f(g){let C=g.target.value;e.type==="number"&&(C=C.slice(0,e.maxlength),c.value&&c.value.setAttribute("value",C)),n("input",C)}function b(){u.value=!1,r(),n("blur",e.value)}function v(){u.value=!0,i(),n("focus",e.value)}function x(){n("enter",e.value)}const{getInstance:S}=E9();function _(){const g=S();g==null||g.$forceUpdate()}function h(){var g;(g=c.value)==null||g.focus()}function w(){var g;(g=c.value)==null||g.blur()}return{inputRef:c,inputClassNames:s,isFocus:u,onInputChanged:f,onInputBlur:b,onInputFocus:v,onInputEnter:x,clearValue:p,formInstance:{forceUpdate:_,focusInput:h,blurInput:w},wordLimitText:d}},pK=k.defineComponent({__name:"form-input",props:lK(),emits:cK(),setup(t,{expose:n,emit:e}){const o=t,{value:r,type:i,placeholder:a,maxlength:l,inputTitle:c}=Cf(o),{inputRef:u,inputClassNames:s,onInputChanged:d,onInputBlur:p,onInputFocus:f,formInstance:b,wordLimitText:v,clearValue:x,isFocus:S}=uK({props:o,emit:e,classPrefix:"plv-product-form-input"});return n(b),{__sfc:!0,emit:e,props:o,value:r,type:i,placeholder:a,maxlength:l,inputTitle:c,inputRef:u,inputClassNames:s,onInputChanged:d,onInputBlur:p,onInputFocus:f,formInstance:b,wordLimitText:v,clearValue:x,isFocus:S,ProductIconCloseRoundFill:x6}}});var dK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-form-input",class:o.inputClassNames},[e("div",{staticClass:"plv-product-form-input__main",class:{"plv-product-form-input__main--has-title":o.inputTitle}},[n._t("prefix"),e("div",{staticClass:"plv-product-form-input__input"},[n.useTextarea?e("textarea",{ref:"inputRef",staticClass:"plv-product-form-input__input-inner",attrs:{type:o.type,placeholder:o.placeholder,maxlength:o.maxlength,disabled:n.disabled,readonly:n.readonly,rows:n.rows},domProps:{value:o.value},on:{input:o.onInputChanged,blur:o.onInputBlur,focus:o.onInputFocus}}):e("input",{ref:"inputRef",staticClass:"plv-product-form-input__input-inner",attrs:{type:o.type,placeholder:o.placeholder,maxlength:o.maxlength,disabled:n.disabled,readonly:n.readonly},domProps:{value:o.value},on:{input:o.onInputChanged,blur:o.onInputBlur,focus:o.onInputFocus}})]),e("div",{staticClass:"plv-product-form-input__suffix"},[n.clearable&&o.value&&o.isFocus?[e(o.ProductIconCloseRoundFill,{staticClass:"plv-product-form-input__clearable",nativeOn:{touchstart:function(r){return o.clearValue.apply(null,arguments)}}})]:n._e(),n._t("suffix",function(){return[n.suffixText?e("span",{staticClass:"plv-product-form-input__suffix-text"},[n._v(" "+n._s(n.suffixText)+" ")]):o.wordLimitText?e("span",{staticClass:"plv-product-form-input__suffix-text"},[n._v(" "+n._s(o.wordLimitText)+" ")]):n._e()]})],2)],2)])},fK=[],hK=tn(pK,dK,fK);const mK=hK.exports;var Gp,z9;function vK(){return z9||(z9=1,Gp=(function(t){var n={};function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=t,e.c=n,e.d=function(o,r,i){e.o(o,r)||Object.defineProperty(o,r,{enumerable:!0,get:i})},e.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,r){if(1&r&&(o=e(o)),8&r||4&r&&typeof o=="object"&&o&&o.__esModule)return o;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:o}),2&r&&typeof o!="string")for(var a in o)e.d(i,a,function(l){return o[l]}.bind(null,a));return i},e.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(r,"a",r),r},e.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},e.p="",e(e.s=67)})([,function(t,n,e){function o(r,i,a,l,c,u,s,d){var p,f=typeof r=="function"?r.options:r;if(i&&(f.render=i,f.staticRenderFns=a,f._compiled=!0),l&&(f.functional=!0),u&&(f._scopeId="data-v-"+u),s?(p=function(x){(x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__=="undefined"||(x=__VUE_SSR_CONTEXT__),c&&c.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(s)},f._ssrRegister=p):c&&(p=d?function(){c.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:c),p)if(f.functional){f._injectStyles=p;var b=f.render;f.render=function(x,S){return p.call(S),b(x,S)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,p):[p]}return{exports:r,options:f}}e.d(n,"a",(function(){return o}))},,function(t,n){function e(o){return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(29)();t.exports=o;try{regeneratorRuntime=o}catch(r){typeof globalThis=="object"?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(t,n,e){var o=e(33),r=e(26),i=e(16),a=e(34);t.exports=function(l){return o(l)||r(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,n,e){e.d(n,"a",(function(){return u}));var o=e(14),r=e.n(o),i=e(15),a=e.n(i),l=e(12),c=e.n(l).a.prototype.$isServer,u=new((function(){return a()((function s(d){r()(this,s),this.configKey=d.configKey}),[{key:"getGlobalConfig",value:function(){return c?{}:(window[this.configKey]||(window[this.configKey]={}),window[this.configKey])}},{key:"getCompConfig",value:function(s){var d=this.getGlobalConfig();return d[s]||(d[s]={}),d[s]}},{key:"getConfig",value:function(s,d,p){var f=this.getCompConfig(s)[d];return f===void 0&&(f=p),f}},{key:"setCompConfig",value:function(s,d){this.getGlobalConfig()[s]=d}},{key:"setConfig",value:function(s,d,p){this.getCompConfig(s)[d]=p}}])})())({configKey:"@@polyv-ui-admin-config"})},,function(t,n){function e(o,r,i,a,l,c,u){try{var s=o[c](u),d=s.value}catch(p){return void i(p)}s.done?r(d):Promise.resolve(d).then(a,l)}t.exports=function(o){return function(){var r=this,i=arguments;return new Promise((function(a,l){var c=o.apply(r,i);function u(d){e(c,a,l,u,s,"next",d)}function s(d){e(c,a,l,u,s,"throw",d)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(27);t.exports=function(r,i,a){return(i=o(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(e,o){(o==null||o>e.length)&&(o=e.length);for(var r=0,i=Array(o);r<o;r++)i[r]=e[r];return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=k},,function(t,n){t.exports=function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(27);function r(i,a){for(var l=0;l<a.length;l++){var c=a[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,o(c.key),c)}}t.exports=function(i,a,l){return a&&r(i.prototype,a),l&&r(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(11);t.exports=function(r,i){if(r){if(typeof r=="string")return o(r,i);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(r,i):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(e,o){this.v=e,this.k=o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(19);function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var i,a,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.toStringTag||"@@toStringTag";function s(_,h,w,m){var g=h&&h.prototype instanceof p?h:p,y=Object.create(g.prototype);return o(y,"_invoke",(function(C,P,T){var O,E,D,j=0,I=T||[],Q=!1,R={p:0,n:0,v:i,a:N,f:N.bind(i,4),d:function(B,H){return O=B,E=0,D=i,R.n=H,d}};function N(B,H){for(E=B,D=H,a=0;!Q&&j&&!V&&a<I.length;a++){var V,W=I[a],X=R.p,J=W[2];B>3?(V=J===H)&&(D=W[(E=W[4])?5:(E=3,3)],W[4]=W[5]=i):W[0]<=X&&((V=B<2&&X<W[1])?(E=0,R.v=H,R.n=W[1]):X<J&&(V=B<3||W[0]>H||H>J)&&(W[4]=B,W[5]=H,R.n=J,E=0))}if(V||B>1)return d;throw Q=!0,H}return function(B,H,V){if(j>1)throw TypeError("Generator is already running");for(Q&&H===1&&N(H,V),E=H,D=V;(a=E<2?i:D)||!Q;){O||(E?E<3?(E>1&&(R.n=-1),N(E,D)):R.n=D:R.v=D);try{if(j=2,O){if(E||(B="next"),a=O[B]){if(!(a=a.call(O,D)))throw TypeError("iterator result is not an object");if(!a.done)return a;D=a.value,E<2&&(E=0)}else E===1&&(a=O.return)&&a.call(O),E<2&&(D=TypeError("The iterator does not provide a '"+B+"' method"),E=1);O=i}else if((a=(Q=R.n<0)?D:C.call(P,R))!==d)break}catch(W){O=i,E=1,D=W}finally{j=1}}return{value:a,done:Q}}})(_,w,m),!0),y}var d={};function p(){}function f(){}function b(){}a=Object.getPrototypeOf;var v=[][c]?a(a([][c]())):(o(a={},c,(function(){return this})),a),x=b.prototype=p.prototype=Object.create(v);function S(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,b):(_.__proto__=b,o(_,u,"GeneratorFunction")),_.prototype=Object.create(x),_}return f.prototype=b,o(x,"constructor",b),o(b,"constructor",f),f.displayName="GeneratorFunction",o(b,u,"GeneratorFunction"),o(x),o(x,u,"Generator"),o(x,c,(function(){return this})),o(x,"toString",(function(){return"[object Generator]"})),(t.exports=r=function(){return{w:s,m:S}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){function e(o,r,i,a){var l=Object.defineProperty;try{l({},"",{})}catch(c){l=0}t.exports=e=function(c,u,s,d){if(u)l?l(c,u,{value:s,enumerable:!d,configurable:!d,writable:!d}):c[u]=s;else{var p=function(f,b){e(c,f,(function(v){return this._invoke(f,b,v)}))};p("next",0),p("throw",1),p("return",2)}},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,r,i,a)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(18),r=e(21);t.exports=function(i,a,l,c,u){return new r(o().w(i,a,l,c),u||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(17),r=e(19);t.exports=function i(a,l){function c(s,d,p,f){try{var b=a[s](d),v=b.value;return v instanceof o?l.resolve(v.v).then((function(x){c("next",x,p,f)}),(function(x){c("throw",x,p,f)})):l.resolve(v).then((function(x){b.value=x,p(b)}),(function(x){return c("throw",x,p,f)}))}catch(x){f(x)}}var u;this.next||(r(i.prototype),r(i.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),r(this,"_invoke",(function(s,d,p){function f(){return new l((function(b,v){c(s,p,b,v)}))}return u=u?u.then(f,f):f()}),!0)},t.exports.__esModule=!0,t.exports.default=t.exports},,,,function(t,n){var e;e=(function(){return this})();try{e=e||new Function("return this")()}catch(o){typeof window=="object"&&(e=window)}t.exports=e},function(t,n){t.exports=function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(3).default,r=e(36);t.exports=function(i){var a=r(i,"string");return o(a)=="symbol"?a:a+""},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){e.d(n,"a",(function(){return i}));var o=e(35),r=e.n(o),i="__polyvUILangKey";function a(l,c,u){return u.replace(new RegExp("\\${"+l+"}","g"),c)}n.b={inject:{configProvider:{default:null}},computed:{$currentLocale:function(){var l=this.configProvider;return l&&l.locale},$currentLang:function(){return this.$currentLocale&&this.$currentLocale.$lang?this.$currentLocale.$lang:"zh_CN"}},methods:{$uiLang:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.configProvider,d=null;s&&s.locale?d=s.locale:window[i]&&(d=window[i]);var p="";if(p=d&&d[l]?d[l]:c,u)for(var f=Object.keys(u),b=0,v=f;b<v.length;b++){var x=v[b],S=u[x];p=a(x,S,p)}return p},shortNumber:function(l){return(function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"w",s={w:1e4,k:1e3}[u];if(c>=s){var d=(c/s).toFixed(1),p=d.split("."),f=r()(p,2),b=f[0],v=f[1];return(d=Number(v)===0?b:d)+u}return c.toString()})(l,this.$currentLang==="zh_CN"?"w":"k")}}}},function(t,n,e){var o=e(17),r=e(18),i=e(30),a=e(20),l=e(21),c=e(31),u=e(32);function s(){var d=r(),p=d.m(s),f=(Object.getPrototypeOf?Object.getPrototypeOf(p):p.__proto__).constructor;function b(S){var _=typeof S=="function"&&S.constructor;return!!_&&(_===f||(_.displayName||_.name)==="GeneratorFunction")}var v={throw:1,return:2,break:3,continue:3};function x(S){var _,h;return function(w){_||(_={stop:function(){return h(w.a,2)},catch:function(){return w.v},abrupt:function(m,g){return h(w.a,v[m],g)},delegateYield:function(m,g,y){return _.resultName=g,h(w.d,u(m),y)},finish:function(m){return h(w.f,m)}},h=function(m,g,y){w.p=_.prev,w.n=_.next;try{return m(g,y)}finally{_.next=w.n}}),_.resultName&&(_[_.resultName]=w.v,_.resultName=void 0),_.sent=w.v,_.next=w.n;try{return S.call(this,_)}finally{w.p=_.prev,w.n=_.next}}}return(t.exports=s=function(){return{wrap:function(S,_,h,w){return d.w(x(S),_,h,w&&w.reverse())},isGeneratorFunction:b,mark:d.m,awrap:function(S,_){return new o(S,_)},AsyncIterator:l,async:function(S,_,h,w,m){return(b(_)?a:i)(x(S),_,h,w,m)},keys:c,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(20);t.exports=function(r,i,a,l,c){var u=o(r,i,a,l,c);return u.next().then((function(s){return s.done?s.value:u.next()}))},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(e){var o=Object(e),r=[];for(var i in o)r.unshift(i);return function a(){for(;r.length;)if((i=r.pop())in o)return a.value=i,a.done=!1,a;return a.done=!0,a}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(3).default;t.exports=function(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],a=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}}}throw new TypeError(o(r)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(11);t.exports=function(r){if(Array.isArray(r))return o(r)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1775
1775
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(37),r=e(43),i=e(16),a=e(38);t.exports=function(l,c){return o(l)||r(l,c)||i(l,c)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){var o=e(3).default;t.exports=function(r,i){if(o(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var l=a.call(r,i||"default");if(o(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){t.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1776
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){function o(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=r.$scopedSlots[i],c=r.$slots[i];return l?l(a):c||null}e.d(n,"b",(function(){return o})),n.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var r=this.slotName,i=this.target.$scopedSlots[r],a=this.target.$slots[r];return i||a?function(l,c){return i?i(c):a}:function(){}}},render:function(){var r=arguments[0];return r(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(t,n){var e=Object.prototype.hasOwnProperty,o=n.extend=Object.assign||function(a){if(a==null)throw new Error("target cannot be null");for(var l,c,u=0,s=arguments.length;++u<s;)if((c=arguments[u])!=null)for(l in c)e.call(c,l)&&(a[l]=c[l]);return a},r=Object.prototype.toString,i=n.isFunction=function(a){return r.call(a)==="[object Function]"};n.isDate=function(a){return r.call(a)==="[object Date]"},n.isObject=function(a){return r.call(a)==="[object Object]"},n.isEmptyObject=function(a){if(a!=null){for(var l in a)if(e.call(a,l))return!1}return!0},n.each=function(a,l){if(a!=null){var c,u=a.length;if(u===void 0||i(a)){for(c in a)if(e.call(a,c)&&l.call(a[c],a[c],c)===!1)break}else for(c=-1;++c<u&&l.call(a[c],a[c],c)!==!1;);}return a},n.toArray=function(a){var l;try{l=Array.prototype.slice.call(a)}catch(u){l=[];for(var c=a.length;c;)l[--c]=a[c]}return l},n.mergeArray=function(a,l){for(var c=l.length,u=a.length,s=0;s<c;)a[u++]=l[s++];return a.length=u,a},n.randomStr=function(a){var l="";do l+=Math.random().toString(36).substr(2);while(l.length<10);return l=l.substr(0,10)+("00000"+Math.abs(new Date)).slice(-6),a&&(l=a+l),l},n.createClass=function(a,l,c,u){var s=c?function(){c.apply(this,u?typeof u=="function"?u.apply(this,arguments):u:arguments),a.apply(this,arguments)}:function(){a.apply(this,arguments)};if(c){var d=function(){};d.prototype=c.prototype,s.prototype=new d,s.prototype.constructor=s,o(s,c)}if(l)for(var p in l)e.call(l,p)&&(s.prototype[p]=l[p]);return s}},function(t,n){t.exports=function(e,o){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,l,c,u=[],s=!0,d=!1;try{if(l=(r=r.call(e)).next,o===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(i=l.call(r)).done)&&(u.push(i.value),u.length!==o);s=!0);}catch(p){d=!0,a=p}finally{try{if(!s&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,function(t,n,e){var o=e(37),r=e(26),i=e(16),a=e(38);t.exports=function(l){return o(l)||r(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){function e(u,s){var d=(65535&u)+(65535&s);return(u>>16)+(s>>16)+(d>>16)<<16|65535&d}function o(u,s,d,p,f,b){return e((v=e(e(s,u),e(p,b)))<<(x=f)|v>>>32-x,d);var v,x}function r(u,s,d,p,f,b,v){return o(s&d|~s&p,u,s,f,b,v)}function i(u,s,d,p,f,b,v){return o(s&p|d&~p,u,s,f,b,v)}function a(u,s,d,p,f,b,v){return o(s^d^p,u,s,f,b,v)}function l(u,s,d,p,f,b,v){return o(d^(s|~p),u,s,f,b,v)}function c(u){return(function(s){for(var d="",p=0;p<32*s.length;p+=8)d+=String.fromCharCode(s[p>>5]>>>p%32&255);return d})((function(s,d){s[d>>5]|=128<<d%32,s[14+(d+64>>>9<<4)]=d;for(var p=1732584193,f=-271733879,b=-1732584194,v=271733878,x=0;x<s.length;x+=16){var S=p,_=f,h=b,w=v;p=r(p,f,b,v,s[x+0],7,-680876936),v=r(v,p,f,b,s[x+1],12,-389564586),b=r(b,v,p,f,s[x+2],17,606105819),f=r(f,b,v,p,s[x+3],22,-1044525330),p=r(p,f,b,v,s[x+4],7,-176418897),v=r(v,p,f,b,s[x+5],12,1200080426),b=r(b,v,p,f,s[x+6],17,-1473231341),f=r(f,b,v,p,s[x+7],22,-45705983),p=r(p,f,b,v,s[x+8],7,1770035416),v=r(v,p,f,b,s[x+9],12,-1958414417),b=r(b,v,p,f,s[x+10],17,-42063),f=r(f,b,v,p,s[x+11],22,-1990404162),p=r(p,f,b,v,s[x+12],7,1804603682),v=r(v,p,f,b,s[x+13],12,-40341101),b=r(b,v,p,f,s[x+14],17,-1502002290),p=i(p,f=r(f,b,v,p,s[x+15],22,1236535329),b,v,s[x+1],5,-165796510),v=i(v,p,f,b,s[x+6],9,-1069501632),b=i(b,v,p,f,s[x+11],14,643717713),f=i(f,b,v,p,s[x+0],20,-373897302),p=i(p,f,b,v,s[x+5],5,-701558691),v=i(v,p,f,b,s[x+10],9,38016083),b=i(b,v,p,f,s[x+15],14,-660478335),f=i(f,b,v,p,s[x+4],20,-405537848),p=i(p,f,b,v,s[x+9],5,568446438),v=i(v,p,f,b,s[x+14],9,-1019803690),b=i(b,v,p,f,s[x+3],14,-187363961),f=i(f,b,v,p,s[x+8],20,1163531501),p=i(p,f,b,v,s[x+13],5,-1444681467),v=i(v,p,f,b,s[x+2],9,-51403784),b=i(b,v,p,f,s[x+7],14,1735328473),p=a(p,f=i(f,b,v,p,s[x+12],20,-1926607734),b,v,s[x+5],4,-378558),v=a(v,p,f,b,s[x+8],11,-2022574463),b=a(b,v,p,f,s[x+11],16,1839030562),f=a(f,b,v,p,s[x+14],23,-35309556),p=a(p,f,b,v,s[x+1],4,-1530992060),v=a(v,p,f,b,s[x+4],11,1272893353),b=a(b,v,p,f,s[x+7],16,-155497632),f=a(f,b,v,p,s[x+10],23,-1094730640),p=a(p,f,b,v,s[x+13],4,681279174),v=a(v,p,f,b,s[x+0],11,-358537222),b=a(b,v,p,f,s[x+3],16,-722521979),f=a(f,b,v,p,s[x+6],23,76029189),p=a(p,f,b,v,s[x+9],4,-640364487),v=a(v,p,f,b,s[x+12],11,-421815835),b=a(b,v,p,f,s[x+15],16,530742520),p=l(p,f=a(f,b,v,p,s[x+2],23,-995338651),b,v,s[x+0],6,-198630844),v=l(v,p,f,b,s[x+7],10,1126891415),b=l(b,v,p,f,s[x+14],15,-1416354905),f=l(f,b,v,p,s[x+5],21,-57434055),p=l(p,f,b,v,s[x+12],6,1700485571),v=l(v,p,f,b,s[x+3],10,-1894986606),b=l(b,v,p,f,s[x+10],15,-1051523),f=l(f,b,v,p,s[x+1],21,-2054922799),p=l(p,f,b,v,s[x+8],6,1873313359),v=l(v,p,f,b,s[x+15],10,-30611744),b=l(b,v,p,f,s[x+6],15,-1560198380),f=l(f,b,v,p,s[x+13],21,1309151649),p=l(p,f,b,v,s[x+4],6,-145523070),v=l(v,p,f,b,s[x+11],10,-1120210379),b=l(b,v,p,f,s[x+2],15,718787259),f=l(f,b,v,p,s[x+9],21,-343485551),p=e(p,S),f=e(f,_),b=e(b,h),v=e(v,w)}return Array(p,f,b,v)})((function(s){for(var d=Array(s.length>>2),p=0;p<d.length;p++)d[p]=0;for(p=0;p<8*s.length;p+=8)d[p>>5]|=(255&s.charCodeAt(p/8))<<p%32;return d})(u),8*u.length))}t.exports=function(u){return(function(s){for(var d,p="",f=0;f<s.length;f++)d=s.charCodeAt(f),p+="0123456789abcdef".charAt(d>>>4&15)+"0123456789abcdef".charAt(15&d);return p})(c((function(s){for(var d,p,f="",b=-1;++b<s.length;)d=s.charCodeAt(b),p=b+1<s.length?s.charCodeAt(b+1):0,55296<=d&&d<=56319&&56320<=p&&p<=57343&&(d=65536+((1023&d)<<10)+(1023&p),b++),d<=127?f+=String.fromCharCode(d):d<=2047?f+=String.fromCharCode(192|d>>>6&31,128|63&d):d<=65535?f+=String.fromCharCode(224|d>>>12&15,128|d>>>6&63,128|63&d):d<=2097151&&(f+=String.fromCharCode(240|d>>>18&7,128|d>>>12&63,128|d>>>6&63,128|63&d));return f})(u)))}},function(t,n,e){var o=e(42),r=e(73),i=e(76),a=e(77),l=window,c=l.document,u=c.head||c.getElementsByTagName("head")[0],s="Request cancelled";function d(){var w=new Error(s);return w.isAJAXCancel=!0,w}var p="Request timeout";function f(){var w=new Error(p);return w.isAJAXTimeout=!0,w}function b(w){return function(m,g){(g=typeof g=="function"?{onload:g}:o.extend({},g)).timeout&&(g.timeout=i.parse(g.timeout));var y=o.extend({},g.data);g.nocache&&(y._=+new Date);for(var C=[m=a.append(m,y,{ignoreEmpty:!0}),g],P=2;P<arguments.length;P++)C.push(arguments[P]);return w.apply(this,C)}}var v="onload"in c.createElement("script")?"onload":"onreadystatechange",x=n.getScript=b((function(w,m,g){return new r((function(y,C){var P,T,O;function E(){P&&(O||!P.readyState||/loaded|complete/.test(P.readyState))&&(P[v]=P.onerror=null,u.removeChild(P),P=null,T&&clearTimeout(T),g&&(window[g]=null),O||y())}function D(I){!O&&P&&(O=!0,E(),I&&C(I()))}g&&(l[g]=function(){O||y(o.toArray(arguments))}),P=c.createElement("script"),m.charset&&(P.charset=m.charset),P.async=!0,P[v]=P.onerror=E,P.src=w,u.firstChild?u.insertBefore(P,u.firstChild):u.appendChild(P),m.receiveCancel&&m.receiveCancel.call(l,(function(){D(d)}));var j=Number(m.timeout);j>0&&(T=setTimeout((function(){D(f)}),j))}))})),S=n.jsonp=function(w,m){var g;m=o.extend({},m);var y=String(m.method).toUpperCase()==="POST";return/[?&]callback=([^&]+)/.test(w)?g=RegExp.$1:(g=m.callbackName||(function(C){var P=c.createElement("a");P.href=C;var T=P.pathname.split("/");T=(T[T.length-1]||"index").replace(/\.\w+$/,"");for(var O="jsonp_callback_"+(P.host+"_"+T).replace(/\W+/g,""),E=O,D=1;l[E]!==void 0;)E=O+"_"+D++;return E})(w),y||(w=a.append(w,{callback:g}))),y?(function(C,P,T){return new r((function(O,E){var D,j,I,Q;function R(){D&&(j.removeEventListener?j.removeEventListener("load",R,!1):j.detachEvent&&j.detachEvent("onload",R),D.parentNode&&D.parentNode.removeChild(D),D=j=null,I&&clearTimeout(I),T&&(window[T]=null),Q||O())}function N(X){!Q&&D&&(Q=!0,R(),X&&E(X()))}T&&(l[T]=function(){Q||O(o.toArray(arguments))}),(D=c.createElement("div")).style.display="none";var B=o.randomStr("form-target-");D.innerHTML='<form action="'+C+'" target="'+B+'" method="post"><input type="hidden" name="callback" value="'+T+'" /></form><iframe name="'+B+'" id="'+B+'"></iframe>';var H=D.firstChild;o.each(P.data,(function X(J,re){Array.isArray(J)&&J.forEach((function(de){X(de,re)}));var ie=c.createElement("input");ie.type="hidden",ie.name=re,ie.value=J,H.appendChild(ie)}));var V=c.body;V.firstChild?V.insertBefore(D,V.firstChild):V.appendChild(D),H.submit(),(j=H.nextSibling).addEventListener?j.addEventListener("load",R,!1):j.attachEvent&&j.attachEvent("onload",R),P.receiveCancel&&P.receiveCancel.call(l,(function(){N(d)}));var W=Number(i.parse(P.timeout||0));W>0&&(I=setTimeout((function(){N(f)}),W))}))})(w,m,g):x(w,m,g)};n.getImage=b((function(w){return new r((function(m,g){var y=new Image;y.onload=function(){m(w)},y.onabort=y.onerror=function(){g(new Error("Failed to load image"))},y.src=w})).finally((function(){}))}));var _=n.createXHR=l.XMLHttpRequest?function(){return new l.XMLHttpRequest}:function(){return new l.ActiveXObject("Microsoft.XMLHTTP")},h=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;n.send=function(w,m){typeof w!="string"&&(w=(m=w).url),m=m||{};var g=String(m.responseType||m.dataType||"").toLowerCase();return g==="jsonp"?S(w,m):new r((function(y,C){var P,T,O=_();function E(V){T||O.readyState===4||(T=!0,O.abort(),V&&C(V()))}function D(){if(!T){var V=O.readyState,W=V===4?O.status:0;if(V===4&&W){var X,J,re;switch(P&&clearTimeout(P),g=g||(function(de){if(h.test(de))return RegExp.$1.toLowerCase()})(O.getResponseHeader("Content-Type"))){case"json":var ie=(O.responseText||"").trim();if(ie)try{X=JSON.parse(ie)}catch(de){J="Invalid JSON format"}break;case"xml":(X=O.responseXML)&&X.documentElement||(J="Invalid XML format");break;default:X=O.responseText}W>=200&&W<300||W===1223||W===304?J&&(re=new Error(J)):((re=new Error("Error (HTTP status code: "+W+")")).code=W,re.data=X),re?C(re):y(X)}}}var j,I=(m.method||"GET").toUpperCase(),Q=typeof m.async!="boolean"||m.async,R=m.data,N=m.headers||{},B=String(m.requestType||"form").toLowerCase();if(R&&(I==="GET"||I==="DELETE"?(w=a.append(w,R,{ignoreEmpty:!0}),R=null):(B==="json"?(R=JSON.stringify(R),j="application/json; charset=utf-8"):typeof R!="string"&&(R=a.stringify(R,{ignoreEmpty:!0}),j="application/x-www-form-urlencoded; charset=utf-8"),N["Content-Type"]=N["Content-Type"]||j)),m.nocache&&(w=a.append(w,{_:+new Date})),Q){var H=Number(i.parse(m.timeout||0));H>0&&(P=setTimeout((function(){E(f)}),H)),O.onreadystatechange=D,"onerror"in O&&(O.onerror=function(){P&&clearTimeout(P),T=!0,C(new Error("Network error"))})}m.username?O.open(I,w,Q,m.username,m.password):O.open(I,w,Q),(function(V){var W=c.createElement("div");W.innerHTML='<a href="'+V+'"></a>';var X=W.firstChild;X.href=X.href;var J=X.host!==l.location.host;return W=X=null,J})(w)&&(O.withCredentials=!!m.withCredentials),o.each(N,(function(V,W){O.setRequestHeader(W,V)})),m.beforeSend&&m.beforeSend.call(l,O),O.send(R||""),m.receiveCancel&&m.receiveCancel.call(l,(function(){E(d)})),Q||D.call(O)}))},n.serializeForm=function(w){if("nodeType"in w||typeof w.get!="function"||(w=w.get(0)),w.tagName!=="FORM")throw new Error("Form must be an HTML form element");var m,g,y,C,P={},T=w.elements,O=T.length;for(m=0;m<O;m++)y=(g=T[m]).name,!g.disabled&&y&&(g.tagName!=="INPUT"||g.type!=="radio"&&g.type!=="checkbox"||g.checked)&&(C=g.type==="password"?g.value:g.value.trim(),P.hasOwnProperty(y)?(Array.isArray(P[y])||(P[y]=[P[y]]),P[y].push(C)):P[y]=C);return P}},,function(t,n,e){e.r(n),e(72);var o=e(9),r=e.n(o),i=e(4),a=e.n(i),l=e(10),c=e.n(l),u=e(5),s=e.n(u),d=e(63),p=e.n(d);function f(Q,R){var N=[],B=p()(Q),H=B[0],V=B.slice(1);if(H===void 0)return N;var W=R.find((function(X){return X.code===H||X.name===H}));return W&&(N=[W]),Array.isArray(W.childrens)&&(N=[].concat(s()(N),s()(f(V,W.childrens)))),N}var b=e(39);function v(Q,R){var N=Object.keys(Q);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(Q);R&&(B=B.filter((function(H){return Object.getOwnPropertyDescriptor(Q,H).enumerable}))),N.push.apply(N,B)}return N}function x(Q){for(var R=1;R<arguments.length;R++){var N=arguments[R]!=null?arguments[R]:{};R%2?v(N,!0).forEach((function(B){c()(Q,B,N[B])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(N)):v(N).forEach((function(B){Object.defineProperty(Q,B,Object.getOwnPropertyDescriptor(N,B))}))}return Q}var S={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},data:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},tabList:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var Q=s()(this.tabList);return f(this.value,this.data).forEach((function(R,N){N<Q.length&&(Q[N]=R.name)})),Q},listData:function(){var Q=[],R=f(this.value,this.data);if(this.dimension===0)Q=s()(this.data);else{var N=R[this.dimension-1];Array.isArray(N&&N.childrens)&&(Q=s()(N.childrens))}return Q=Q.map((function(B){var H=B.code,V=R.findIndex((function(W){return W.code===H}));return x(x({},B),{},{selected:V!==-1})}))},isFinish:function(){var Q=f(this.value,this.data),R=Q[Q.length-1]||{};return Q.length&&(!R.childrens||!R.childrens.length)||this.tabList.length&&this.tabList.length<=Q.length}},methods:{handleTabClick:function(Q){var R=this,N=f(this.value,this.data)[Q-1];(Q===0||Array.isArray(N&&N.childrens))&&(this.dimension=Q),setTimeout((function(){R.$emit("handleUpdatePopper")}))},handleListClick:function(Q){var R=this,N=s()(this.value);N[this.dimension]=Q.code,N=N.slice(0,this.dimension+1),this.$emit("input",N),this.$nextTick((function(){R.isFinish?R.$emit("finish"):R.dimension+=1})),setTimeout((function(){R.$emit("handleUpdatePopper")}))}},render:function(){var Q=this,R=arguments[0];return R("div",{class:this.wrapClass},[R("div",{class:this.tabWrapClass},[this.tabListData.map((function(N,B){var H=[Q.tabItemClass];return B===Q.dimension&&H.push(Q.tabItemSelectedClass),R("div",{class:H,on:{click:function(){return Q.handleTabClick(B)}}},[N])}))]),R("div",{class:this.listClass},[this.listData.map((function(N){var B=[Q.listItemClass];N.selected&&B.push(Q.listItemSelectedClass);var H={label:N.name,selected:N.selected};return R("div",{class:B,on:{click:function(){return Q.handleListClick(N)}}},[Object(b.b)(Q,"item",H)])}))])])},getSelectData:f,isSelectFinish:function(Q,R){var N=f(Q,R),B=N[N.length-1]||{};return N.length&&(!B.childrens||!B.childrens.length)},install:function(Q){Q.component(S.name,S)}},_=S,h=e(7),w=e(64),m=e.n(w),g=e(65),y={md5:m.a,ajax:g.send},C="https://s4.videocc.net/library/china-area/china-area-20200630.json",P={};function T(Q){var R=Q||h.a.getConfig("AreaPicker","areaDataUrl")||C;return P[R]||(P[R]=new Promise((function(N){r()(a.a.mark((function B(){var H;return a.a.wrap((function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=1,y.ajax({url:R});case 1:H=V.sent,N(H);case 2:case"end":return V.stop()}}),B)})))()}))),P[R]}var O={props:{value:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(Q){return["","area","city","province"].indexOf(Q)!==-1}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return T(this.areaDataUrl)}},loadAreaDataUrl:T},E={name:"plv-area-picker-core",mixins:[O,e(28).b],components:{PlvCascaderPickerCore:_},methods:{handleSelectChange:function(Q){this.$emit("input",Q)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var Q=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return Q.slice(0,1);case"city":return Q.slice(0,2);case"area":return Q.slice(0,3)}return Q}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:T},D=e(1),j={name:"plv-area-picker-mob",mixins:[O],components:{PlvAreaPickerCore:Object(D.a)(E,(function(){var Q=this,R=Q.$createElement,N=Q._self._c||R;return N("div",{staticClass:"plv-area-picker__popper"},[N("plv-cascader-picker-core",{staticClass:"plv-area-picker__popper__inner",attrs:{"tab-wrap-class":"plv-area-picker__tab","tab-item-class":"plv-area-picker__tab__item","tab-item-selected-class":"plv-area-picker__tab__item--selected","list-class":"plv-area-picker__list","list-item-class":"plv-area-picker__list__item","list-item-selected-class":"plv-area-picker__list__item--selected","tab-list":Q.tabList,value:Q.value,data:Q.areaData},on:{input:Q.handleSelectChange,handleUpdatePopper:Q.handleUpdatePopper,finish:Q.handleSelectFinish},scopedSlots:Q._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker__list__item__inner"},[Q._t("item",[Q._v(Q._s(B.label))],null,B)],2)}}],null,!0)})],1)}),[],!1,null,null,null).exports},data:function(){return{realAreaData:[]}},watch:{areaData:{immediate:!0,handler:function(){var Q=this;return r()(a.a.mark((function R(){return a.a.wrap((function(N){for(;;)switch(N.prev=N.next){case 0:if(Q.areaData.length!==0){N.next=2;break}return N.next=1,Q.loadAreaDataUrl();case 1:Q.realAreaData=N.sent,N.next=3;break;case 2:Q.realAreaData=Q.areaData;case 3:case"end":return N.stop()}}),R)})))()}}},methods:{handleInput:function(Q){this.$emit("input",Q)},handleFinish:function(){this.$emit("finish")}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:T},I=Object(D.a)(j,(function(){var Q=this,R=Q.$createElement,N=Q._self._c||R;return N("div",{staticClass:"plv-area-picker-mob"},[N("plv-area-picker-core",{attrs:{value:Q.value,"area-data":Q.realAreaData},on:{input:Q.handleInput,finish:Q.handleFinish},scopedSlots:Q._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[N("span",[Q._v(Q._s(B.label))]),Q._v(" "),N("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)}),[],!1,null,null,null).exports;I.install=function(Q){Q.component(I.name,I)},n.default=I},,,,,function(t,n,e){},function(t,n,e){(function(o){var r;o!==void 0?r=o.Promise:typeof window!="undefined"&&(r=window.Promise),(r=e(r?74:75)).series=function(i){return i.length?i.slice(1).reduce((function(a,l){return a.then((function(c){return l(c)}))}),i[0]()):r.resolve()},r.delay=function(i){return new r((function(a){setTimeout(a,i)}))},t.exports=r}).call(this,e(25))},function(t,n,e){var o=e(42).createClass((function(r){this._promise=new Promise(r)}),{then:function(r,i){var a=this;return new o((function(l){l(a._promise.then(r,i))}))},spread:function(r,i){var a=this;return new o((function(l){l(a._promise.then((function(c){return r.apply(this,c)}),i))}))},catch:function(r){var i=this;return new o((function(a){a(i._promise.catch(r))}))},finally:function(r){var i=this;return new o((function(a,l){i._promise.then((function(c){r.apply(this,arguments),a(c)}),(function(c){r.apply(this,arguments),l(c)}))}))}});["all","race","reject","resolve"].forEach((function(r){o[r]=Promise[r]})),t.exports=o},function(t,n,e){var o=e(42),r=typeof console!="undefined"&&typeof console.error=="function"?function(u){console.error("Uncaught (in promise) %o",u)}:function(u){throw u};function i(u,s,d){var p;(p=u)&&typeof p.then=="function"?u.then(s,d):s(u)}var a=1,l=2,c=o.createClass((function(u){if(typeof u!="function")throw new Error("Executor must be a function");var s=this;function d(p){s._settle(l,p)}s._status=0,s._pendings={};try{u((function(p){i(p,(function(f){s._settle(a,f)}),d)}),d)}catch(p){d(p)}}),{_settle:function(u,s){var d=this;d._status===0&&(d._status=u,d._value=s,setTimeout((function(){if(d._status!==l||d._hasRejectedHandler){var p=d._pendings[u];p&&p.forEach((function(f){f(s)})),delete d._pendings}else r(s)}),0))},_listen:function(u,s){var d=this;u===l&&(d._hasRejectedHandler=!0),d._pendings?(d._pendings[u]=d._pendings[u]||[],d._pendings[u].push(s)):d._status===u&&setTimeout((function(){s(d._value)}),0)},_then:function(u,s,d){var p=this;return new c((function(f,b){p._listen(a,(function(){var v=p._value;if(u)try{v=d&&Array.isArray(v)?u.apply(this,v):u.call(this,v)}catch(x){return void b(x)}i(v,f,b)})),p._listen(l,(function(){var v=p._value;if(s){try{v=s.call(this,v)}catch(x){return void b(x)}i(v,f,b)}else b(v)}))}))},then:function(u,s){return this._then(u,s)},spread:function(u){return this._then(u,null,!0)},catch:function(u){return this.then(null,u)},finally:function(u){var s=this;return new c((function(d,p){function f(){var b,v=s._value;switch(s._status){case a:b=function(){d(v)};break;case l:b=function(){p(v)}}if(u)try{u()}catch(x){return void p(x)}b&&b()}s._listen(a,f),s._listen(l,f)}))}});o.extend(c,{all:function(u){var s=u.length;return s?new c((function(d,p){var f=new Array(s);u.forEach((function(b,v){b.then((function(x){f[v]=x,--s||d(f)}),p)}))})):c.resolve([])},race:function(u){return new c((function(s,d){u.forEach((function(p){p.then(s,d)}))}))},resolve:function(u){return new c((function(s,d){i(u,s,d)}))},reject:function(u){return new c((function(s,d){d(u)}))}}),t.exports=c},function(t,n){var e={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},o=n.parse=function(r){if(typeof r=="number")return r;if(!isNaN(r))return Number(r);var i=parseFloat(r);if(isNaN(i))throw new Error("Invalid timespan string");var a=r.split(i)[1].trim().toUpperCase().replace(/S$/,"");if(e.hasOwnProperty(a))return i*e[a];throw new Error('Invalid time unit "'+a+'"')};n.addToDate=function(r,i){return new Date((typeof r=="number"?r:r.getTime())+o(i))}},function(t,n,e){var o=e(42);n.parse=function(i,a){if(typeof i!="string")return{};a=o.extend({decode:decodeURIComponent},a);var l={};return i.split("&").forEach((function(c){if(c){c=c.split("=");var u=a.decode(c[0]),s=a.decode(c[1]||"");!s&&a.ignoreEmpty||(l.hasOwnProperty(u)?(Array.isArray(l[u])||(l[u]=[l[u]]),l[u].push(s)):l[u]=s)}})),l};var r=n.stringify=function(i,a){if(typeof i!="object")return"";a=o.extend({encode:encodeURIComponent},a);var l,c,u=[];function s(p,f){f==null&&(f=""),f===""&&a.ignoreEmpty||u.push(a.encode(p)+"="+a.encode(f))}function d(p){s(l,p)}for(l in i)i.hasOwnProperty(l)&&(c=i[l],Array.isArray(c)?c.forEach(d):s(l,c));return u.join("&")};n.append=function(i,a,l){if(!(typeof a=="string"&&a!==""||typeof a=="object"&&!o.isEmptyObject(a)))return i;var c=i.indexOf("#"),u="";return c!==-1&&(u=i.substring(c,i.length),i=i.substring(0,c)),i=i.replace(/[?&]$/,""),a=typeof a!="string"?r(a,l):a.replace(/^[?&]/,""),i+(i.indexOf("?")!==-1?"&":"?")+a+u}}]).default),Gp}var gK=vK();const F9=Ls(gK);function Hl(t,n){let e=[];const[o,...r]=t;if(typeof o=="undefined")return e;const i=n.find(a=>a.code===o);return i&&(e=[i]),i&&Array.isArray(i.childrens)&&(e=[...e,...Hl(r,i.childrens)]),e}function Yp(t,n){const e=Hl(t,n),o=e[e.length-1]||{};return!!(e.length&&(!o.childrens||!o.childrens.length))}const bK=()=>_e(ee({},M9()),{value:Ce.array(),areaPickerText:Ce.array(),placeholder:Ce.string}),yK=()=>ee({input:Pr()},k9("areaPickerText"));let Zp;const wK=t=>{const n=k.ref([]),{AreaPicker:e,props:o,emit:r}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=R9({props:o}),c=k.ref([]),u=k.computed(()=>o.placeholder),s=k.computed(()=>Yp(o.value,n.value)),d=k.computed(()=>Yp(c.value,n.value)),p=k.computed(()=>{let y=[];return d.value?y=Hl(c.value,n.value):Yp(o.value,n.value)&&(y=Hl(o.value,n.value)),y.map(C=>C.name)}),f=k.computed(()=>p.value.join("/"));k.watch(p,()=>{r("update:areaPickerText",p.value)},{immediate:!0}),k.watch(()=>k.unref(c),()=>{So||r("input",k.unref(c))});const b={isFinish:s,getAreaDataByValue:g},v=k.ref(!1),x=k.ref(1);function S(){s.value||(x.value+=1),v.value=!0,w()}function _(){v.value=!1,h()}function h(){d.value?r("input",k.unref(c)):c.value=o.value,a()}function w(){l()}function m(){k.unref(d)&&(r("input",k.unref(c)),_())}function g(y){return we(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(y,C)})}return k.onBeforeMount(()=>we(null,null,function*(){if(n.value.length===0)if(Zp)n.value=Zp;else{const y=yield e.loadAreaDataUrl();Zp=y,n.value=y}})),{innerValue:c,isFinish:s,innerIsFinish:d,instance:b,inputValue:f,inputPlaceholder:u,refreshKey:x,formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l,pickerVisible:v,openPicker:S,closePicker:_,onHiddenPicker:h,onShowPicker:w,onClickConfirm:m}};bK(),yK(),rK(),$Z(),eK();const xK=Object.prototype.hasOwnProperty;function _K(t,n){return xK.call(t,n)}function CK(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const n in t)if(_K(t,n))return!1}return!0}function SK(t){return t!=null&&t==t.window}function N9(t){return t!=null&&!SK(t)&&typeof t.nodeType=="number"}const es=document.documentElement,kK=es.matches||es.webkitMatchesSelector||es.mozMatchesSelector||es.oMatchesSelector||es.msMatchesSelector;function LK(t,n){try{return kK.call(t,n)}catch(e){return!1}}const PK={OBJECT:!0,EMBED:!0,APPLET:!0};function TK(t){if(t==null)return 0;if(N9(t)){const n=t;return PK[n.nodeName]||n.nodeType===9?2:n.nodeType!==1?0:1}return 2}const Kp="_just4_nodeid_"+ +new Date+"_";let B9=0;const OK=Object.create(null),Xp=Object.create(null);function Gl(t,n=!1){let e,o;switch(TK(t)){case 1:o=t[Kp],o?e=o.valueOf():n||(o=t[Kp]=new Number(++B9),OK[e=o.valueOf()]=function(){t[Kp]});break;case 2:for(const r in Xp)if(Xp[r]===t){e=Number(r);break}e||n||(e=++B9,Xp[e]=t)}return e}class EK{constructor(n={}){this._space=Object.create(null),this._cloneable=n.cloneable!==!1,this._onClone=n.onClone}findSpace(n){const e=Gl(n,!0);if(e)return this._space[e]}keys(n){const e=this.findSpace(n);return e?Object.keys(e):[]}getData(n,e){const o=this.findSpace(n);if(o&&e in o)return o[e]}setData(n,e,o){const r=Gl(n);r&&(this._space[r]||(this._space[r]=Object.create(null)),this._space[r][e]=o)}clearData(n){const e=Gl(n,!0);e&&delete this._space[e]}removeData(n,e){const o=this.findSpace(n);o&&(delete o[e],CK(o)&&this.clearData(n))}cloneData(n,e){if(!this._cloneable)return;const o=this.findSpace(e);if(o){const r=Gl(n);if(!r)return;const i=this._space[r]=this._space[r]||Object.create(null);for(const a in o)i[a]=o[a];this._onClone&&this._onClone(n,e)}}}function V9(t){return new EK(t)}V9();const Jp=Object.create(null);Jp.for="htmlFor",Jp.class="className",["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable","isMap"].forEach((function(t){Jp[t.toLowerCase()]=t}));const QK=Object.create(null);["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].forEach((function(t){QK[t]=!0}));const AK=Object.create(null);AK.float="cssFloat";const W9=Object.create(null);W9.scrollTop="pageYOffset",W9.scrollLeft="pageXOffset";const DK=/^(?:mouse|contextmenu)|click/,jK=/^touch/,IK=/^pointer/;class MK{constructor(n,e){if(this.originalEvent=n,this.type=n.type,this.timeStamp=n.timeStamp,this.target=n.target,this.currentTarget=n.currentTarget||e,DK.test(this.type)||IK.test(this.type)){const o=n;this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY}else if(jK.test(this.type)){const o=n.touches[0];o&&(this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY)}}preventDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}isDefaultPrevented(){return this.originalEvent.defaultPrevented}isPropagationStopped(){return this.originalEvent.bubbles}}(function(){const t=["o","moz","ms","webkit"],n=Object.create(null),e=document.documentElement;return["TransitionEnd","AnimationStart","AnimationIteration","AnimationEnd","fullscreenchange","fullscreenerror"].forEach((function(o){const r=o.toLowerCase();"on"+r in e||t.some((function(i){if("on"+i+r in e)return n[r]=i+o,!0}))})),function(o){return o!=null&&n[o]?n[o]:o}})(),(function(){const t=V9({onClone:function(e){this.keys(e).forEach((function(o){e.addEventListener(o,n,!1)}))}});function n(e){const o=new MK(e,this),r=o.type,i=t.getData(o.currentTarget,r);i&&i.forEach((function(a){let l;const c=o.target;if(a.delegator&&N9(c)){if(l=(function(u,s){let d=u.target;for(;d&&d!==u.currentTarget;){if(LK(d,s))return d;d=d.parentNode}})(o,a.delegator),!l)return}else l=o.currentTarget;a.handler.call(l,o)===!1&&o.preventDefault()}))}return{add(e,o,r){let i=t.getData(e,o);i||(i=[],t.setData(e,o,i),e.addEventListener(o,n,!1)),i.push(r)},remove(e,o,r,i){if(o&&(r||i)){const a=t.getData(e,o);if(!a||((function(l,c,u){for(let s=l.length-1;s>=0;s--)u&&l[s].handler!==u||c&&c!==l[s].delegator||l.splice(s,1)})(a,r,i),a.length))return}if(o)return t.removeData(e,o),void e.removeEventListener(o,n,!1);t.keys(e).forEach((function(a){e.removeEventListener(a,n,!1)})),t.clearData(e)}}})();const Hi={OpenProductOrderDetailPopup:"openProductOrderDetailPopup",RefreshProductOrderListStatus:"refreshProductOrderListStatus",RefreshProductOrderDetailStatus:"refreshProductOrderDetailStatus"},RK=()=>({paymentTarget:z.object().isRequired});function zK(t){return{PaymentProvider:t.PaymentProvider}}const U9=t=>{const{props:n}=t,{PaymentProvider:e}=zK(n.paymentTarget),{injectData:o}=io(),{$t:r}=yn(),i=k.ref([]),a=k.computed(()=>{const p=i.value.includes(e.Alipay);return So&&(Up||p)}),l=k.computed(()=>i.value.length===1&&i.value[0]===e.Alipay),c=k.computed(()=>i.value.length===1&&i.value[0]===e.Wechat);function u(){return we(this,null,function*(){const p=yield n.paymentTarget.getPayProviders();i.value=p})}function s(p){return we(this,null,function*(){return new Promise(f=>we(null,null,function*(){if(!Up)return f({success:!1,failReason:"notInWechatBrowser",failMessage:r("order.wechatPayTips")});if(!o.getWeixinSdk)return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")});let b;try{b=yield o.getWeixinSdk()}catch(v){return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")})}if(!b)return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")});b.chooseWXPay({timestamp:p.timestamp,nonceStr:p.nonceStr,package:p.package,signType:p.signType,paySign:p.paySign,success:v=>{f({success:!0,data:v||{}})},cancel:()=>{f({success:!1,failReason:"userCancelled",failMessage:r("order.cancelPay")})},fail:v=>{n.paymentTarget.interactionCore.logger.error("wx","choose-wx-pay-fail",JSON.stringify(v)),f({success:!1,failReason:"payFailed",failMessage:(v==null?void 0:v.errMsg)||r("order.payFailed")})}})}))})}function d(p){const f=document.createElement("a");f.href=p,f.click()}return{supportPayProviders:i,isSupportPay:a,onlySupportAlipay:l,onlySupportWechatPay:c,getPayProviders:u,payWithWechat:s,payWithAli:d}};var H9=(t=>(t.ApplyRefund="applyRefund",t.Pay="pay",t.ViewDetail="viewDetail",t.ConfirmReceipt="confirmReceipt",t))(H9||{}),G9=(t=>(t.OrderList="orderList",t.OrderDetail="orderDetail",t))(G9||{});const FK=()=>_e(ee({},RK()),{orderTarget:z.object().isRequired});function qp(t){return{OrderStatus:t.OrderStatus,PayStatus:t.PayStatus,PaymentProvider:t.PaymentProvider,ProductDeliveryType:t.ProductDeliveryType,ProductType:t.ProductType,ProductBuyType:t.ProductBuyType,RefundStatus:t.RefundStatus,CreateOrderFailReason:t.CreateOrderFailReason}}const Y9=Symbol("ORDER_PROVIDE_KEY"),NK=t=>{k.provide(Y9,{getOrderTarget:()=>t.orderTarget});const n=t.orderTarget,e=qp(n),{OrderStatus:o,PayStatus:r,PaymentProvider:i,RefundStatus:a}=e,{supportPayProviders:l,onlySupportAlipay:c,payWithWechat:u,payWithAli:s,getPayProviders:d}=U9({props:t}),{getEmitter:p,messageBox:f,toast:b}=io(),{$t:v}=yn();function x(g){p().emit(Hi.OpenProductOrderDetailPopup,g)}function S(g,y=!1){g.route==="orderList"?p().emit(Hi.RefreshProductOrderListStatus,g.orderNo):p().emit(Hi.RefreshProductOrderDetailStatus,{orderNo:g.orderNo,syncPayStatus:y})}function _(g){return we(this,null,function*(){g.orderStatus!==o.Delivering||!(yield f({content:v("order.confirmReceiptTips"),confirmButtonText:v("common.confirm"),cancelButtonText:v("common.cancel")}))||(yield t.orderTarget.confirmOrder(g.orderNo),b(v("order.confirmedReceipt")),S(g))})}function h(g){return we(this,null,function*(){if(g.route==="orderList"&&(l.value.length>1||c.value)){x(g.orderNo);return}try{const y=yield t.paymentTarget.getPayOrderParams({orderNo:g.orderNo,payProvider:g.payProvider||i.Wechat});if(y.payStatus===r.Free){b(v("order.paySuccess")),S(g,!0);return}if(g.payProvider&&g.payProvider===i.Alipay){s(y.aliPayLink),S(g,!0);return}const C=yield u({timestamp:y.timeStamp,nonceStr:y.nonceStr,package:y.package,signType:y.signType,paySign:y.paySign});C.success?(b(v("order.paySuccess")),S(g,!0)):b(C.failMessage)}catch(y){b(y instanceof Error?y.message:v("order.payFailed"))}})}function w(g){return we(this,null,function*(){if(g.orderStatus!==o.WaitDelivery)return;const y=v("order.refundTips"),C=g.orderAmount||"";if(!(yield f({content:`<div style="font-size: 16px; color: #3D3D3D;">${y}<span style="color: #FF5252;">¥${C}</span></div>`,cancelButtonText:v("common.cancel"),confirmButtonText:v("order.confirmRefund")})))return;const T=yield t.orderTarget.applyOrderRefund(g.orderNo);if(!T.success){b(v("order.failed"));return}T.refundStatus===a.Fail&&b(v("order.refundFailed")),S(g)})}function m(g){switch(g.action){case"pay":h(g);break;case"viewDetail":x(g.orderNo);break;case"confirmReceipt":_(g);break;case"applyRefund":w(g);break}}return ee({orderTarget:n,supportPayProviders:l,onlySupportAlipay:c,getPayProviders:d,handleRePay:h,handleConfirmReceipt:_,navToOrderDetail:x,handleOrderBtnClick:m},e)},Yl=()=>{const t=k.inject(Y9),{$t:n}=yn(),e=t.getOrderTarget(),o=qp(e),{OrderStatus:r}=o;function i(a){switch(a){case r.WaitPay:return n("order.list.waitPay");case r.WaitDelivery:return n("order.list.waitDelivery");case r.Delivering:return n("order.list.delivering");case r.Finish:return n("order.list.finish");case r.Close:return n("order.list.close");case r.Refunding:return n("order.list.refunding");case r.Refunded:return n("order.list.refunded");default:return""}}return ee({orderTarget:e,getOrderStatusText:i},o)},BK=k.defineComponent({__name:"product-feature-tag",props:{tag:z.string.def(""),maxWidth:z.number.def(88)},setup(t){const n=t,e=k.computed(()=>({maxWidth:`${n.maxWidth}px`}));return{__sfc:!0,props:n,containerStyle:e}}});var VK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-item__tag-container",style:o.containerStyle,attrs:{title:n.tag}},[n.tag?e("span",{staticClass:"plv-product-c-item__tag"},[n._v(n._s(n.tag))]):n._e()])},WK=[],UK=tn(BK,VK,WK);const HK=UK.exports,GK=k.defineComponent({__name:"purchase-product",props:{product:z.object().isRequired},emits:{"click-purchase-product":be()},setup(t,{emit:n}){const e=t,{$t:o}=yn(),r=k.computed(()=>e.product.realPrice===0?o("product.price.free"):e.product.realPrice);function i(){n("click-purchase-product")}return{__sfc:!0,props:e,$t:o,displayTotalPrice:r,emit:n,onOrderProductClick:i,ProductFeatureTag:HK}}});var YK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-purchase-product",on:{click:o.onOrderProductClick}},[e("img",{staticClass:"plv-product-c-purchase-product__image",attrs:{src:n.product.cover,alt:n.product.name}}),e("div",{staticClass:"plv-product-c-purchase-product__info"},[e("div",{staticClass:"plv-product-c-purchase-product__name"},[n._v(" "+n._s(n.product.name)+" ")]),n.product.featureTags?e("div",{staticClass:"plv-product-c-purchase-product__tags"},n._l(n.product.featureTags,function(r,i){return e(o.ProductFeatureTag,{key:i,attrs:{tag:r}})}),1):n._e(),n.product.description?e("div",{staticClass:"plv-product-c-purchase-product__description"},[n._v(" "+n._s(n.product.description)+" ")]):n._e(),e("div",{staticClass:"plv-product-c-purchase-product__price"},[n.product.realPrice>0?e("span",{staticClass:"plv-product-c-purchase-product__price-symbol"},[n._v("¥")]):n._e(),e("span",{staticClass:"plv-product-c-purchase-product__price-value plv-font-din-pro-regular"},[n._v(n._s(o.displayTotalPrice))])])])])},ZK=[],KK=tn(GK,YK,ZK);const XK=KK.exports,JK=k.defineComponent({__name:"order-pay-countdown",props:{endTime:z.number.isRequired},emits:{"count-down-end":be()},setup(t,{emit:n}){const e=t,o=k.ref(""),r=k.ref(null);function i(){r.value!==null&&(clearInterval(r.value),r.value=null)}function a(){if(!e.endTime||e.endTime-Date.now()<=0)return n("count-down-end"),i(),"00:00";const l=e.endTime-Date.now(),c=Math.floor(l/(60*1e3)),u=Math.floor(l%(60*1e3)/1e3);return c<0||u<0?(n("count-down-end"),i(),"00:00"):`${String(c).padStart(2,"0")}:${String(u).padStart(2,"0")}`}return k.onMounted(()=>{o.value=a(),e.endTime>Date.now()&&(r.value=setInterval(()=>{o.value=a()},1e3))}),k.onBeforeUnmount(()=>{i()}),{__sfc:!0,props:e,emit:n,timeStr:o,intervalId:r,clearCountdown:i,formattedTime:a}}});var qK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("span",[n._v(n._s(o.timeStr))])},$K=[],eX=tn(JK,qK,$K);const tX=eX.exports,nX=k.defineComponent({__name:"pay-status",setup(t){const{getEmitter:n}=io(),{$t:e}=yn(),{getOrderStatusText:o,OrderStatus:r}=Yl(),i=k.inject("orderDetail"),a=k.computed(()=>(i==null?void 0:i.value.orderNo)||"");function l(){n().emit(Hi.RefreshProductOrderListStatus,a.value)}return{__sfc:!0,getEmitter:n,$t:e,getOrderStatusText:o,OrderStatus:r,orderDetail:i,orderNo:a,handleCountDownEnd:l,OrderPayCountdown:tX}}});var rX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",{staticClass:"plv-product-c-pay-status"},[e("span",{staticClass:"plv-product-c-pay-status__text"},[n._v(" "+n._s(o.getOrderStatusText(o.orderDetail.status))+" ")]),e("div",{staticClass:"plv-product-c-pay-status__actions"},[o.orderDetail.status===o.OrderStatus.WaitPay?e("div",[e(o.OrderPayCountdown,{attrs:{"end-time":o.orderDetail.expiredAt},on:{"count-down-end":o.handleCountDownEnd}}),e("span",[n._v(n._s(o.$t("order.detail.payAutoCancel")))])],1):o.orderDetail.status===o.OrderStatus.Close?e("div",[e("span",[n._v(n._s(o.$t("order.detail.cancelReason")))]),e("span",[n._v(": ")]),e("span",[n._v(n._s(o.$t("order.detail.payTimeOut")))])]):o.orderDetail.status===o.OrderStatus.Refunded?e("div",[e("span",[n._v(n._s(o.$t("order.detail.refundTips")))])]):n._e()])]):n._e()},oX=[],iX=tn(nX,rX,oX);const aX=iX.exports,sX="data:image/png;base64,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",lX=k.defineComponent({__name:"customer-qrcode",setup(t){const{$t:n}=yn(),e=k.inject("orderDetail"),o=k.computed(()=>{var r;return(r=e==null?void 0:e.value.products)!=null&&r[0].customerServiceContact?n("order.detail.qrCodeTips"):n("order.detail.qrCodeExpiredTips")});return{__sfc:!0,$t:n,orderDetail:e,customerServiceTips:o,qrcodeExpiredImage:sX}}});var cX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-customer-qrcode"},[e("div",{staticClass:"plv-product-c-customer-qrcode__img-wrap"},[o.orderDetail&&o.orderDetail.products[0].customerServiceContact?[e("img",{staticClass:"plv-product-c-customer-qrcode__img",attrs:{src:o.orderDetail.products[0].customerServiceContact}})]:[e("img",{staticClass:"plv-product-c-customer-qrcode__img--expired",attrs:{src:o.qrcodeExpiredImage,alt:"expired"}}),e("span",{staticClass:"plv-product-c-customer-qrcode__img-text"},[n._v(" "+n._s(o.$t("order.detail.expired"))+" ")])]],2),e("span",{staticClass:"plv-product-c-customer-qrcode__tips"},[n._v(n._s(o.customerServiceTips))])])},uX=[],pX=tn(lX,cX,uX);const dX=pX.exports,fX=k.defineComponent({__name:"address-item",props:{addressInfo:z.object().isRequired},emits:{"choose-address":be()},setup(t,{emit:n}){const e=t;function o(){n("choose-address",e.addressInfo)}return{__sfc:!0,props:e,emit:n,onClick:o,maskChars:b1}}});var hX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-address-item",on:{click:o.onClick}},[e("div",{staticClass:"plv-product-address-item__top"},[e("div",{staticClass:"plv-product-address-item__content"},[e("div",{staticClass:"plv-product-address-item__header"},[e("span",[n._v(n._s(n.addressInfo.name))]),e("span",{staticClass:"plv-product-address-item__header-phone"},[n._v(n._s(o.maskChars(n.addressInfo.mobile,{start:3,end:6})))])]),e("div",{staticClass:"plv-product-address-item__address"},[n._v(" "+n._s(n.addressInfo.address)+" ")])]),n.$slots.icon?e("div",{staticClass:"plv-product-address-item__icon-wrapper"},[n._t("icon")],2):n._e()]),n._t("action")],2)},mX=[],vX=tn(fX,hX,mX);const gX=vX.exports,bX=k.defineComponent({__name:"express-info",setup(t){const n=k.inject("orderDetail"),{$t:e}=yn();return{__sfc:!0,orderDetail:n,$t:e,maskChars:b1,AddressItem:gX}}});var yX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",[o.orderDetail.expressEnabled?e(o.AddressItem,{staticClass:"plv-product-c-express-info",attrs:{"address-info":o.orderDetail.expressInfo}}):e("div",{staticClass:"plv-product-c-phone-info"},[e("span",[n._v(n._s(o.$t("order.phone")))]),e("span",{staticClass:"plv-product-c-phone-info__text"},[n._v(n._s(o.maskChars(o.orderDetail.expressInfo.mobile,{start:3,end:4})))])])],1):n._e()},wX=[],xX=tn(bX,yX,wX);const _X=xX.exports,CX="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1_31044'%3e%3crect%20x='0'%20y='0'%20width='24'%20height='24'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1_31044)'%3e%3cg%3e%3cpath%20d='M7.9075653125,8.011559448241844C7.4913803125000005,8.011559448241844,7.0751953125,8.289016532714843,7.0751953125,8.705201532714844C7.0751953125,9.121388532714844,7.4913803125000005,9.398838532714844,7.9075653125,9.398838532714844C8.3237453125,9.398838532714844,8.6012053125,9.121388532714844,8.6012053125,8.705201532714844C8.6012053125,8.271675532714843,8.3237453125,8.011559448241844,7.9075653125,8.011559448241844ZM13.5434053125,12.034678532714842C13.265945312500001,12.034678532714842,13.0058353125,12.329478532714845,13.0058353125,12.589588532714844C13.0058353125,12.884388532714844,13.2832853125,13.144508532714845,13.5434053125,13.144508532714845C13.9595853125,13.144508532714845,14.237045312500001,12.867048532714843,14.237045312500001,12.589588532714844C14.237045312500001,12.312138532714844,13.9595853125,12.034678532714842,13.5434053125,12.034678532714842ZM11.7572753125,9.398838532714844C12.1734653125,9.398838532714844,12.450915312500001,9.104048532714843,12.450915312500001,8.705200532714844C12.450915312500001,8.289015532714844,12.1734653125,8.011558532714844,11.7572753125,8.011558532714844C11.3410953125,8.011558532714844,10.9249053125,8.289015532714844,10.9249053125,8.705200532714844C10.9249053125,9.121388532714844,11.3410953125,9.398838532714844,11.7572753125,9.398838532714844ZM16.5607453125,12.034678532714842C16.2832853125,12.034678532714842,16.0231753125,12.329478532714845,16.0231753125,12.589588532714844C16.0231753125,12.884388532714844,16.3006253125,13.144508532714845,16.5607453125,13.144508532714845C16.9769253125,13.144508532714845,17.2543953125,12.867048532714843,17.2543953125,12.589588532714844C17.2543953125,12.312138532714844,16.9769353125,12.034678532714842,16.5607453125,12.034678532714842Z'%20fill='%2328C445'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11.9653,0.069366455078125C5.35838,0.069366455078125,0,5.427746455078125,0,12.034666455078124C0,18.641666455078123,5.35838,23.999966455078123,11.9653,23.999966455078123C18.5723,23.999966455078123,23.9306,18.641666455078123,23.9306,12.034666455078124C23.9306,5.427746455078125,18.5723,0.069366297722125,11.9653,0.069366455078125ZM9.69364,15.104066455078126C9,15.104066455078126,8.44509,14.965366455078126,7.78613,14.809266455078125L5.87861,15.780366455078125L6.41619,14.098266455078125C5.04624,13.127166455078125,4.21387,11.861266455078125,4.21387,10.352566455078126C4.21387,7.699426455078125,6.69364,5.618496455078125,9.69364,5.618496455078125C12.3815,5.618496455078125,14.7572,7.283236455078125,15.2254,9.520236455078125C15.052,9.502896455078124,14.8786,9.485546455078126,14.7052,9.485546455078126C12.104,9.520236455078125,10.0578,11.479766455078124,10.0578,13.907566455078126C10.0578,14.306366455078125,10.1272,14.687866455078124,10.2312,15.069366455078125C10.0578,15.086666455078126,9.86705,15.104066455078126,9.69364,15.104066455078126ZM17.8092,17.046266455078126L18.2254,18.433566455078125L16.7341,17.601166455078125C16.1965,17.739866455078126,15.6416,17.878566455078126,15.0867,17.878566455078126C12.4682,17.878566455078126,10.4046,16.075166455078126,10.4046,13.838166455078126C10.3873,11.618466455078124,12.4509,9.815026455078126,15.052,9.815026455078126C17.5318,9.815026455078126,19.7168,11.635866455078125,19.7168,13.855466455078124C19.7168,15.104066455078126,18.9017,16.213866455078126,17.8092,17.046266455078126Z'%20fill='%232AAE67'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",SX="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1_31591'%3e%3crect%20x='0'%20y='0'%20width='24'%20height='24'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1_31591)'%3e%3cg%3e%3cpath%20d='M5.4087,13.513C5.11304,13.7391,4.81739,14.0696,4.73043,14.5043C4.6087,15.0783,4.71304,15.8087,5.25217,16.3826C5.93043,17.0609,6.95652,17.2522,7.4087,17.287C8.6087,17.3739,9.89565,16.7652,10.8696,16.1043C11.2522,15.8435,11.8957,15.3043,12.5217,14.4696C11.1304,13.7565,9.3913,12.9565,7.54783,13.0261C6.57391,13.0609,5.89565,13.2522,5.4087,13.513ZM23.0435,16.6957C23.6522,15.2522,24,13.6696,24,12C24,5.3913,18.6087,0,12,0C5.3913,0,0,5.3913,0,12C0,18.6087,5.3913,24,12,24C16,24,19.5304,22.0348,21.7217,19.0261C19.6522,18.0174,16.2609,16.313,14.1565,15.3043C13.1652,16.4522,11.687,17.5826,10.0174,18.0696C8.97391,18.3826,8.01739,18.5043,7.04348,18.2957C6.05217,18.087,5.33913,17.6348,4.92174,17.1826C4.71304,16.9391,4.46957,16.6609,4.27826,16.2957C4.29565,16.313,4.29565,16.3478,4.29565,16.3652Q4.1913,16.1913,4.12174,15.913C4.08696,15.7739,4.05217,15.6348,4.03478,15.4957C4.01739,15.3913,4.01739,15.287,4.03478,15.2C4.01739,15.0261,4.03478,14.8348,4.06957,14.6435C4.17391,14.1565,4.36522,13.6174,4.90435,13.113C6.05217,11.9826,7.6,11.9304,8.4,11.9304C9.58261,11.9478,11.6348,12.4522,13.3739,13.0783C13.8609,12.0522,14.1739,10.9739,14.3652,10.2261L7.14783,10.2261L7.14783,9.44348L10.8522,9.44348L10.8522,7.87826L6.38261,7.87826L6.38261,7.07826L10.8522,7.07826L10.8522,5.51305C10.8522,5.30435,10.9043,5.13044,11.2348,5.13044L12.9913,5.13044L12.9913,7.07826L17.8435,7.07826L17.8435,7.86087L12.9913,7.86087L12.9913,9.42609L16.8696,9.42609Q16.4696,11.6,15.2696,13.7391C17.9652,14.6957,21.7739,16.1913,23.0435,16.6957Z'%20fill='%231777FF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kX=k.defineComponent({__name:"payment-method",props:{value:z.string.def("WECHAT"),paymentMethods:z.array().def([]),disabled:z.bool.def(!1)},emits:{input:be()},setup(t,{emit:n}){const e=t,{$t:o}=yn(),{PaymentProvider:r}=Yl(),i=k.computed(()=>[{label:o("order.detail.wechat"),value:r.Wechat,icon:CX},{label:o("order.detail.alipay"),value:r.Alipay,icon:SX}]),a=k.computed(()=>e.paymentMethods.length?e.paymentMethods:i.value);function l(c){e.disabled||n("input",c)}return{__sfc:!0,props:e,emit:n,$t:o,PaymentProvider:r,defaultPaymentMethods:i,paymentMethodList:a,selectPaymentMethod:l,PlvRadio:fZ}}});var LX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-payment-methods"},[e("div",{staticClass:"plv-product-c-payment-methods__title"},[n._v(" "+n._s(o.$t("order.detail.paymentMethod"))+" ")]),e("div",{staticClass:"plv-product-c-payment-methods__list"},n._l(o.paymentMethodList,function(r,i){return e("div",{key:i,staticClass:"plv-product-c-payment-methods__item",on:{click:function(a){return o.selectPaymentMethod(r.value)}}},[e("div",{staticClass:"plv-product-c-payment-methods__item-info"},[e("div",{staticClass:"plv-product-c-payment-methods__item-icon"},[e("img",{attrs:{src:r.icon,alt:"icon"}})]),e("span",{staticClass:"plv-product-c-payment-methods__item-label"},[n._v(n._s(r.label))])]),e(o.PlvRadio,{attrs:{checked:n.value===r.value,disabled:n.disabled}})],1)}),0)])},PX=[],TX=tn(kX,LX,PX);const OX=TX.exports,EX=k.defineComponent({__name:"order-info",setup(t){const{$t:n}=yn(),e=k.inject("orderDetail"),{OrderStatus:o,ProductDeliveryType:r}=Yl(),i=k.computed(()=>e!=null&&e.value.createAt?wa(e.value.createAt,"YYYY.MM.DD hh:mm"):""),a=k.computed(()=>!(e!=null&&e.value)||e.value.status!==o.Finish&&e.value.status!==o.Delivering?"":wa(e.value.deliveryAt,"YYYY.MM.DD hh:mm")),l=k.computed(()=>!(e!=null&&e.value)||e.value.status!==o.Finish?"":wa(e.value.finishAt,"YYYY.MM.DD hh:mm"));return{__sfc:!0,$t:n,orderDetail:e,OrderStatus:o,ProductDeliveryType:r,orderCreatedAt:i,orderDeliveryAt:a,orderFinishAt:l}}});var QX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",[e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.orderNo")))]),e("span",[n._v(n._s(o.orderDetail.orderNo))])]),e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.createTime")))]),e("span",[n._v(n._s(o.orderCreatedAt))])]),o.orderDetail.status!==o.OrderStatus.WaitPay&&o.orderDetail.status!==o.OrderStatus.Close?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.payTime")))]),e("span",[n._v(n._s(o.orderDetail.payAt))])]):n._e(),(o.orderDetail.status===o.OrderStatus.Finish||o.orderDetail.status===o.OrderStatus.Delivering)&&o.orderDetail.products[0].deliveryType===o.ProductDeliveryType.Express?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.deliveryTime")))]),e("span",[n._v(n._s(o.orderDeliveryAt))])]):n._e(),o.orderDetail.status===o.OrderStatus.Finish?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.finishTime")))]),e("span",[n._v(n._s(o.orderFinishAt))])]):n._e(),o.orderDetail.status!==o.OrderStatus.WaitPay&&o.orderDetail.status!==o.OrderStatus.Close?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.actualPay")))]),e("div",{staticClass:"plv-product-c-order-info__amount"},[e("span",{staticClass:"plv-product-c-order-info__amount-symbol"},[n._v("¥")]),e("span",{staticClass:"plv-product-c-order-info__amount-value pwc-font-din-pro-bold"},[n._v(n._s(o.orderDetail.amount))])])]):n._e()]):n._e()},AX=[],DX=tn(EX,QX,AX);const jX=DX.exports,IX=k.defineComponent({__name:"bottom-operate-panel",emits:{"click-order-btn":be()},setup(t,{emit:n}){const e=k.inject("orderDetail"),{$t:o}=yn(),{OrderStatus:r,ProductDeliveryType:i}=Yl(),a=k.computed(()=>!e||!e.value?!1:[r.WaitPay,r.Delivering,r.WaitDelivery].includes(e.value.status));function l(c){n("click-order-btn",c)}return{__sfc:!0,emit:n,orderDetail:e,$t:o,OrderStatus:r,ProductDeliveryType:i,operatePanelVisible:a,onOrderBtnClick:l,OrderButtonAction:H9}}});var MX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail&&o.operatePanelVisible?e("div",{staticClass:"plv-product-c-bottom-operate-panel"},[o.orderDetail.status===o.OrderStatus.WaitPay?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item plv-product-c-bottom-operate-panel__item-pay"},[e("div",{staticClass:"plv-product-c-bottom-operate-panel__amount"},[e("span",[n._v(n._s(o.$t("order.detail.actualPay")))]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__amount-symbol"},[n._v("¥")]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__amount-value pwc-font-din-pro-bold"},[n._v(n._s(o.orderDetail.amount))])]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.Pay)}}},[n._v(" "+n._s(o.$t("order.detail.payNow"))+" ")])]):n._e(),o.orderDetail.status===o.OrderStatus.Delivering?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.ConfirmReceipt)}}},[e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn"},[n._v(" "+n._s(o.$t("order.detail.confirmReceipt"))+" ")])]):n._e(),o.orderDetail.status===o.OrderStatus.WaitDelivery&&o.orderDetail.products[0].deliveryType===o.ProductDeliveryType.Express&&o.orderDetail.products[0].realPrice>0?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.ApplyRefund)}}},[e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn plv-product-c-bottom-operate-panel__btn-refund"},[n._v(" "+n._s(o.$t("order.applyRefund"))+" ")])]):n._e()]):n._e()},RX=[],zX=tn(IX,MX,RX);const FX=zX.exports,NX=()=>_e(ee({},FK()),{syncPayStatus:z.bool.def(!1),orderNo:z.string.isRequired}),BX=t=>{const{props:n}=t,{OrderStatus:e,PaymentProvider:o}=qp(n.orderTarget),{getEmitter:r}=io(),{onlySupportAlipay:i,getPayProviders:a}=U9({props:n}),l=k.ref(),c=k.ref(o.Wechat),u=k.computed(()=>{var b;return l.value?l.value.status!==e.WaitPay&&l.value.status!==e.Close&&((b=l.value.products)==null?void 0:b[0].customerServiceType):!1});function s(x){return we(this,arguments,function*(b,v=n.syncPayStatus){if(!n.orderTarget||!b)return;const S=yield n.orderTarget.getOrderDetail({orderNo:b,syncPayStatus:v});return l.value=S,S})}function d(b){return b?[e.WaitDelivery,e.Delivering,e.Finish].includes(b):!1}function p(){return we(this,null,function*(){var h;if(!(document.visibilityState==="visible")||((h=l.value)==null?void 0:h.status)!==e.WaitPay)return;const x=yield s(n.orderNo);let S=x==null?void 0:x.status;if(S===e.WaitPay){yield new Promise(m=>setTimeout(m,2e3));const w=yield s(n.orderNo);S=w==null?void 0:w.status}d(S)&&r().emit(Hi.RefreshProductOrderListStatus,n.orderNo)})}function f(){i.value&&(c.value=o.Alipay)}return Tf(Hi.RefreshProductOrderDetailStatus,b=>{s(b.orderNo,b.syncPayStatus)}),k.watch(()=>n.orderNo,b=>{b&&s(b)},{immediate:!0}),k.onMounted(()=>we(null,null,function*(){yield a(),f(),window.addEventListener("visibilitychange",p)})),k.onBeforeUnmount(()=>{window.removeEventListener("visibilitychange",p)}),{orderDetail:l,OrderStatus:e,selectedPayMethod:c,customerQrcodeVisible:u}},VX=k.defineComponent({__name:"order-detail",props:NX(),setup(t){const n=t,{orderDetail:e,OrderStatus:o,selectedPayMethod:r,customerQrcodeVisible:i}=BX({props:n}),{supportPayProviders:a,handleOrderBtnClick:l,getPayProviders:c}=NK(n);function u(s){var d,p,f;l({action:s,orderNo:((d=e.value)==null?void 0:d.orderNo)||"",orderStatus:((p=e.value)==null?void 0:p.status)||"",route:G9.OrderDetail,payProvider:r.value,orderAmount:(f=e.value)==null?void 0:f.amount})}return k.onMounted(()=>{c()}),k.provide("orderDetail",e),{__sfc:!0,props:n,orderDetail:e,OrderStatus:o,selectedPayMethod:r,customerQrcodeVisible:i,supportPayProviders:a,handleOrderBtnClick:l,getPayProviders:c,onClickOrderBtn:u,PurchaseProduct:XK,PayStatus:aX,CustomerQrcode:dX,ExpressInfo:_X,PaymentMethod:OX,OrderInfo:jX,BottomOperatePanel:FX}}});var WX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",{staticClass:"plv-product-order-detail"},[e("div",{staticClass:"plv-product-order-detail__content"},[e(o.PayStatus),o.customerQrcodeVisible?e(o.CustomerQrcode):n._e(),e(o.ExpressInfo),e("div",{staticClass:"plv-product-order-detail__info"},[n._l(o.orderDetail.products,function(r,i){return e(o.PurchaseProduct,{key:i,attrs:{product:r}})}),o.orderDetail.status===o.OrderStatus.WaitPay&&o.supportPayProviders.length>1?e(o.PaymentMethod,{model:{value:o.selectedPayMethod,callback:function(r){o.selectedPayMethod=r},expression:"selectedPayMethod"}}):n._e(),e(o.OrderInfo)],2)],1),e(o.BottomOperatePanel,{on:{"click-order-btn":o.onClickOrderBtn}})],1):n._e()},UX=[],HX=tn(VX,WX,UX);return HX.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: order-detail]","[version: 1.13.0-rc-20260423.2]","[buildTime: 2026-04-23 05:57:04]");
1776
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n,e){function o(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=r.$scopedSlots[i],c=r.$slots[i];return l?l(a):c||null}e.d(n,"b",(function(){return o})),n.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var r=this.slotName,i=this.target.$scopedSlots[r],a=this.target.$slots[r];return i||a?function(l,c){return i?i(c):a}:function(){}}},render:function(){var r=arguments[0];return r(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(t,n){var e=Object.prototype.hasOwnProperty,o=n.extend=Object.assign||function(a){if(a==null)throw new Error("target cannot be null");for(var l,c,u=0,s=arguments.length;++u<s;)if((c=arguments[u])!=null)for(l in c)e.call(c,l)&&(a[l]=c[l]);return a},r=Object.prototype.toString,i=n.isFunction=function(a){return r.call(a)==="[object Function]"};n.isDate=function(a){return r.call(a)==="[object Date]"},n.isObject=function(a){return r.call(a)==="[object Object]"},n.isEmptyObject=function(a){if(a!=null){for(var l in a)if(e.call(a,l))return!1}return!0},n.each=function(a,l){if(a!=null){var c,u=a.length;if(u===void 0||i(a)){for(c in a)if(e.call(a,c)&&l.call(a[c],a[c],c)===!1)break}else for(c=-1;++c<u&&l.call(a[c],a[c],c)!==!1;);}return a},n.toArray=function(a){var l;try{l=Array.prototype.slice.call(a)}catch(u){l=[];for(var c=a.length;c;)l[--c]=a[c]}return l},n.mergeArray=function(a,l){for(var c=l.length,u=a.length,s=0;s<c;)a[u++]=l[s++];return a.length=u,a},n.randomStr=function(a){var l="";do l+=Math.random().toString(36).substr(2);while(l.length<10);return l=l.substr(0,10)+("00000"+Math.abs(new Date)).slice(-6),a&&(l=a+l),l},n.createClass=function(a,l,c,u){var s=c?function(){c.apply(this,u?typeof u=="function"?u.apply(this,arguments):u:arguments),a.apply(this,arguments)}:function(){a.apply(this,arguments)};if(c){var d=function(){};d.prototype=c.prototype,s.prototype=new d,s.prototype.constructor=s,o(s,c)}if(l)for(var p in l)e.call(l,p)&&(s.prototype[p]=l[p]);return s}},function(t,n){t.exports=function(e,o){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,l,c,u=[],s=!0,d=!1;try{if(l=(r=r.call(e)).next,o===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(i=l.call(r)).done)&&(u.push(i.value),u.length!==o);s=!0);}catch(p){d=!0,a=p}finally{try{if(!s&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,function(t,n,e){var o=e(37),r=e(26),i=e(16),a=e(38);t.exports=function(l){return o(l)||r(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,n){function e(u,s){var d=(65535&u)+(65535&s);return(u>>16)+(s>>16)+(d>>16)<<16|65535&d}function o(u,s,d,p,f,b){return e((v=e(e(s,u),e(p,b)))<<(x=f)|v>>>32-x,d);var v,x}function r(u,s,d,p,f,b,v){return o(s&d|~s&p,u,s,f,b,v)}function i(u,s,d,p,f,b,v){return o(s&p|d&~p,u,s,f,b,v)}function a(u,s,d,p,f,b,v){return o(s^d^p,u,s,f,b,v)}function l(u,s,d,p,f,b,v){return o(d^(s|~p),u,s,f,b,v)}function c(u){return(function(s){for(var d="",p=0;p<32*s.length;p+=8)d+=String.fromCharCode(s[p>>5]>>>p%32&255);return d})((function(s,d){s[d>>5]|=128<<d%32,s[14+(d+64>>>9<<4)]=d;for(var p=1732584193,f=-271733879,b=-1732584194,v=271733878,x=0;x<s.length;x+=16){var S=p,_=f,h=b,w=v;p=r(p,f,b,v,s[x+0],7,-680876936),v=r(v,p,f,b,s[x+1],12,-389564586),b=r(b,v,p,f,s[x+2],17,606105819),f=r(f,b,v,p,s[x+3],22,-1044525330),p=r(p,f,b,v,s[x+4],7,-176418897),v=r(v,p,f,b,s[x+5],12,1200080426),b=r(b,v,p,f,s[x+6],17,-1473231341),f=r(f,b,v,p,s[x+7],22,-45705983),p=r(p,f,b,v,s[x+8],7,1770035416),v=r(v,p,f,b,s[x+9],12,-1958414417),b=r(b,v,p,f,s[x+10],17,-42063),f=r(f,b,v,p,s[x+11],22,-1990404162),p=r(p,f,b,v,s[x+12],7,1804603682),v=r(v,p,f,b,s[x+13],12,-40341101),b=r(b,v,p,f,s[x+14],17,-1502002290),p=i(p,f=r(f,b,v,p,s[x+15],22,1236535329),b,v,s[x+1],5,-165796510),v=i(v,p,f,b,s[x+6],9,-1069501632),b=i(b,v,p,f,s[x+11],14,643717713),f=i(f,b,v,p,s[x+0],20,-373897302),p=i(p,f,b,v,s[x+5],5,-701558691),v=i(v,p,f,b,s[x+10],9,38016083),b=i(b,v,p,f,s[x+15],14,-660478335),f=i(f,b,v,p,s[x+4],20,-405537848),p=i(p,f,b,v,s[x+9],5,568446438),v=i(v,p,f,b,s[x+14],9,-1019803690),b=i(b,v,p,f,s[x+3],14,-187363961),f=i(f,b,v,p,s[x+8],20,1163531501),p=i(p,f,b,v,s[x+13],5,-1444681467),v=i(v,p,f,b,s[x+2],9,-51403784),b=i(b,v,p,f,s[x+7],14,1735328473),p=a(p,f=i(f,b,v,p,s[x+12],20,-1926607734),b,v,s[x+5],4,-378558),v=a(v,p,f,b,s[x+8],11,-2022574463),b=a(b,v,p,f,s[x+11],16,1839030562),f=a(f,b,v,p,s[x+14],23,-35309556),p=a(p,f,b,v,s[x+1],4,-1530992060),v=a(v,p,f,b,s[x+4],11,1272893353),b=a(b,v,p,f,s[x+7],16,-155497632),f=a(f,b,v,p,s[x+10],23,-1094730640),p=a(p,f,b,v,s[x+13],4,681279174),v=a(v,p,f,b,s[x+0],11,-358537222),b=a(b,v,p,f,s[x+3],16,-722521979),f=a(f,b,v,p,s[x+6],23,76029189),p=a(p,f,b,v,s[x+9],4,-640364487),v=a(v,p,f,b,s[x+12],11,-421815835),b=a(b,v,p,f,s[x+15],16,530742520),p=l(p,f=a(f,b,v,p,s[x+2],23,-995338651),b,v,s[x+0],6,-198630844),v=l(v,p,f,b,s[x+7],10,1126891415),b=l(b,v,p,f,s[x+14],15,-1416354905),f=l(f,b,v,p,s[x+5],21,-57434055),p=l(p,f,b,v,s[x+12],6,1700485571),v=l(v,p,f,b,s[x+3],10,-1894986606),b=l(b,v,p,f,s[x+10],15,-1051523),f=l(f,b,v,p,s[x+1],21,-2054922799),p=l(p,f,b,v,s[x+8],6,1873313359),v=l(v,p,f,b,s[x+15],10,-30611744),b=l(b,v,p,f,s[x+6],15,-1560198380),f=l(f,b,v,p,s[x+13],21,1309151649),p=l(p,f,b,v,s[x+4],6,-145523070),v=l(v,p,f,b,s[x+11],10,-1120210379),b=l(b,v,p,f,s[x+2],15,718787259),f=l(f,b,v,p,s[x+9],21,-343485551),p=e(p,S),f=e(f,_),b=e(b,h),v=e(v,w)}return Array(p,f,b,v)})((function(s){for(var d=Array(s.length>>2),p=0;p<d.length;p++)d[p]=0;for(p=0;p<8*s.length;p+=8)d[p>>5]|=(255&s.charCodeAt(p/8))<<p%32;return d})(u),8*u.length))}t.exports=function(u){return(function(s){for(var d,p="",f=0;f<s.length;f++)d=s.charCodeAt(f),p+="0123456789abcdef".charAt(d>>>4&15)+"0123456789abcdef".charAt(15&d);return p})(c((function(s){for(var d,p,f="",b=-1;++b<s.length;)d=s.charCodeAt(b),p=b+1<s.length?s.charCodeAt(b+1):0,55296<=d&&d<=56319&&56320<=p&&p<=57343&&(d=65536+((1023&d)<<10)+(1023&p),b++),d<=127?f+=String.fromCharCode(d):d<=2047?f+=String.fromCharCode(192|d>>>6&31,128|63&d):d<=65535?f+=String.fromCharCode(224|d>>>12&15,128|d>>>6&63,128|63&d):d<=2097151&&(f+=String.fromCharCode(240|d>>>18&7,128|d>>>12&63,128|d>>>6&63,128|63&d));return f})(u)))}},function(t,n,e){var o=e(42),r=e(73),i=e(76),a=e(77),l=window,c=l.document,u=c.head||c.getElementsByTagName("head")[0],s="Request cancelled";function d(){var w=new Error(s);return w.isAJAXCancel=!0,w}var p="Request timeout";function f(){var w=new Error(p);return w.isAJAXTimeout=!0,w}function b(w){return function(m,g){(g=typeof g=="function"?{onload:g}:o.extend({},g)).timeout&&(g.timeout=i.parse(g.timeout));var y=o.extend({},g.data);g.nocache&&(y._=+new Date);for(var C=[m=a.append(m,y,{ignoreEmpty:!0}),g],P=2;P<arguments.length;P++)C.push(arguments[P]);return w.apply(this,C)}}var v="onload"in c.createElement("script")?"onload":"onreadystatechange",x=n.getScript=b((function(w,m,g){return new r((function(y,C){var P,T,O;function E(){P&&(O||!P.readyState||/loaded|complete/.test(P.readyState))&&(P[v]=P.onerror=null,u.removeChild(P),P=null,T&&clearTimeout(T),g&&(window[g]=null),O||y())}function D(I){!O&&P&&(O=!0,E(),I&&C(I()))}g&&(l[g]=function(){O||y(o.toArray(arguments))}),P=c.createElement("script"),m.charset&&(P.charset=m.charset),P.async=!0,P[v]=P.onerror=E,P.src=w,u.firstChild?u.insertBefore(P,u.firstChild):u.appendChild(P),m.receiveCancel&&m.receiveCancel.call(l,(function(){D(d)}));var j=Number(m.timeout);j>0&&(T=setTimeout((function(){D(f)}),j))}))})),S=n.jsonp=function(w,m){var g;m=o.extend({},m);var y=String(m.method).toUpperCase()==="POST";return/[?&]callback=([^&]+)/.test(w)?g=RegExp.$1:(g=m.callbackName||(function(C){var P=c.createElement("a");P.href=C;var T=P.pathname.split("/");T=(T[T.length-1]||"index").replace(/\.\w+$/,"");for(var O="jsonp_callback_"+(P.host+"_"+T).replace(/\W+/g,""),E=O,D=1;l[E]!==void 0;)E=O+"_"+D++;return E})(w),y||(w=a.append(w,{callback:g}))),y?(function(C,P,T){return new r((function(O,E){var D,j,I,Q;function R(){D&&(j.removeEventListener?j.removeEventListener("load",R,!1):j.detachEvent&&j.detachEvent("onload",R),D.parentNode&&D.parentNode.removeChild(D),D=j=null,I&&clearTimeout(I),T&&(window[T]=null),Q||O())}function N(X){!Q&&D&&(Q=!0,R(),X&&E(X()))}T&&(l[T]=function(){Q||O(o.toArray(arguments))}),(D=c.createElement("div")).style.display="none";var B=o.randomStr("form-target-");D.innerHTML='<form action="'+C+'" target="'+B+'" method="post"><input type="hidden" name="callback" value="'+T+'" /></form><iframe name="'+B+'" id="'+B+'"></iframe>';var H=D.firstChild;o.each(P.data,(function X(J,re){Array.isArray(J)&&J.forEach((function(de){X(de,re)}));var ie=c.createElement("input");ie.type="hidden",ie.name=re,ie.value=J,H.appendChild(ie)}));var V=c.body;V.firstChild?V.insertBefore(D,V.firstChild):V.appendChild(D),H.submit(),(j=H.nextSibling).addEventListener?j.addEventListener("load",R,!1):j.attachEvent&&j.attachEvent("onload",R),P.receiveCancel&&P.receiveCancel.call(l,(function(){N(d)}));var W=Number(i.parse(P.timeout||0));W>0&&(I=setTimeout((function(){N(f)}),W))}))})(w,m,g):x(w,m,g)};n.getImage=b((function(w){return new r((function(m,g){var y=new Image;y.onload=function(){m(w)},y.onabort=y.onerror=function(){g(new Error("Failed to load image"))},y.src=w})).finally((function(){}))}));var _=n.createXHR=l.XMLHttpRequest?function(){return new l.XMLHttpRequest}:function(){return new l.ActiveXObject("Microsoft.XMLHTTP")},h=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;n.send=function(w,m){typeof w!="string"&&(w=(m=w).url),m=m||{};var g=String(m.responseType||m.dataType||"").toLowerCase();return g==="jsonp"?S(w,m):new r((function(y,C){var P,T,O=_();function E(V){T||O.readyState===4||(T=!0,O.abort(),V&&C(V()))}function D(){if(!T){var V=O.readyState,W=V===4?O.status:0;if(V===4&&W){var X,J,re;switch(P&&clearTimeout(P),g=g||(function(de){if(h.test(de))return RegExp.$1.toLowerCase()})(O.getResponseHeader("Content-Type"))){case"json":var ie=(O.responseText||"").trim();if(ie)try{X=JSON.parse(ie)}catch(de){J="Invalid JSON format"}break;case"xml":(X=O.responseXML)&&X.documentElement||(J="Invalid XML format");break;default:X=O.responseText}W>=200&&W<300||W===1223||W===304?J&&(re=new Error(J)):((re=new Error("Error (HTTP status code: "+W+")")).code=W,re.data=X),re?C(re):y(X)}}}var j,I=(m.method||"GET").toUpperCase(),Q=typeof m.async!="boolean"||m.async,R=m.data,N=m.headers||{},B=String(m.requestType||"form").toLowerCase();if(R&&(I==="GET"||I==="DELETE"?(w=a.append(w,R,{ignoreEmpty:!0}),R=null):(B==="json"?(R=JSON.stringify(R),j="application/json; charset=utf-8"):typeof R!="string"&&(R=a.stringify(R,{ignoreEmpty:!0}),j="application/x-www-form-urlencoded; charset=utf-8"),N["Content-Type"]=N["Content-Type"]||j)),m.nocache&&(w=a.append(w,{_:+new Date})),Q){var H=Number(i.parse(m.timeout||0));H>0&&(P=setTimeout((function(){E(f)}),H)),O.onreadystatechange=D,"onerror"in O&&(O.onerror=function(){P&&clearTimeout(P),T=!0,C(new Error("Network error"))})}m.username?O.open(I,w,Q,m.username,m.password):O.open(I,w,Q),(function(V){var W=c.createElement("div");W.innerHTML='<a href="'+V+'"></a>';var X=W.firstChild;X.href=X.href;var J=X.host!==l.location.host;return W=X=null,J})(w)&&(O.withCredentials=!!m.withCredentials),o.each(N,(function(V,W){O.setRequestHeader(W,V)})),m.beforeSend&&m.beforeSend.call(l,O),O.send(R||""),m.receiveCancel&&m.receiveCancel.call(l,(function(){E(d)})),Q||D.call(O)}))},n.serializeForm=function(w){if("nodeType"in w||typeof w.get!="function"||(w=w.get(0)),w.tagName!=="FORM")throw new Error("Form must be an HTML form element");var m,g,y,C,P={},T=w.elements,O=T.length;for(m=0;m<O;m++)y=(g=T[m]).name,!g.disabled&&y&&(g.tagName!=="INPUT"||g.type!=="radio"&&g.type!=="checkbox"||g.checked)&&(C=g.type==="password"?g.value:g.value.trim(),P.hasOwnProperty(y)?(Array.isArray(P[y])||(P[y]=[P[y]]),P[y].push(C)):P[y]=C);return P}},,function(t,n,e){e.r(n),e(72);var o=e(9),r=e.n(o),i=e(4),a=e.n(i),l=e(10),c=e.n(l),u=e(5),s=e.n(u),d=e(63),p=e.n(d);function f(Q,R){var N=[],B=p()(Q),H=B[0],V=B.slice(1);if(H===void 0)return N;var W=R.find((function(X){return X.code===H||X.name===H}));return W&&(N=[W]),Array.isArray(W.childrens)&&(N=[].concat(s()(N),s()(f(V,W.childrens)))),N}var b=e(39);function v(Q,R){var N=Object.keys(Q);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(Q);R&&(B=B.filter((function(H){return Object.getOwnPropertyDescriptor(Q,H).enumerable}))),N.push.apply(N,B)}return N}function x(Q){for(var R=1;R<arguments.length;R++){var N=arguments[R]!=null?arguments[R]:{};R%2?v(N,!0).forEach((function(B){c()(Q,B,N[B])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(N)):v(N).forEach((function(B){Object.defineProperty(Q,B,Object.getOwnPropertyDescriptor(N,B))}))}return Q}var S={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},data:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},tabList:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var Q=s()(this.tabList);return f(this.value,this.data).forEach((function(R,N){N<Q.length&&(Q[N]=R.name)})),Q},listData:function(){var Q=[],R=f(this.value,this.data);if(this.dimension===0)Q=s()(this.data);else{var N=R[this.dimension-1];Array.isArray(N&&N.childrens)&&(Q=s()(N.childrens))}return Q=Q.map((function(B){var H=B.code,V=R.findIndex((function(W){return W.code===H}));return x(x({},B),{},{selected:V!==-1})}))},isFinish:function(){var Q=f(this.value,this.data),R=Q[Q.length-1]||{};return Q.length&&(!R.childrens||!R.childrens.length)||this.tabList.length&&this.tabList.length<=Q.length}},methods:{handleTabClick:function(Q){var R=this,N=f(this.value,this.data)[Q-1];(Q===0||Array.isArray(N&&N.childrens))&&(this.dimension=Q),setTimeout((function(){R.$emit("handleUpdatePopper")}))},handleListClick:function(Q){var R=this,N=s()(this.value);N[this.dimension]=Q.code,N=N.slice(0,this.dimension+1),this.$emit("input",N),this.$nextTick((function(){R.isFinish?R.$emit("finish"):R.dimension+=1})),setTimeout((function(){R.$emit("handleUpdatePopper")}))}},render:function(){var Q=this,R=arguments[0];return R("div",{class:this.wrapClass},[R("div",{class:this.tabWrapClass},[this.tabListData.map((function(N,B){var H=[Q.tabItemClass];return B===Q.dimension&&H.push(Q.tabItemSelectedClass),R("div",{class:H,on:{click:function(){return Q.handleTabClick(B)}}},[N])}))]),R("div",{class:this.listClass},[this.listData.map((function(N){var B=[Q.listItemClass];N.selected&&B.push(Q.listItemSelectedClass);var H={label:N.name,selected:N.selected};return R("div",{class:B,on:{click:function(){return Q.handleListClick(N)}}},[Object(b.b)(Q,"item",H)])}))])])},getSelectData:f,isSelectFinish:function(Q,R){var N=f(Q,R),B=N[N.length-1]||{};return N.length&&(!B.childrens||!B.childrens.length)},install:function(Q){Q.component(S.name,S)}},_=S,h=e(7),w=e(64),m=e.n(w),g=e(65),y={md5:m.a,ajax:g.send},C="https://s4.videocc.net/library/china-area/china-area-20200630.json",P={};function T(Q){var R=Q||h.a.getConfig("AreaPicker","areaDataUrl")||C;return P[R]||(P[R]=new Promise((function(N){r()(a.a.mark((function B(){var H;return a.a.wrap((function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=1,y.ajax({url:R});case 1:H=V.sent,N(H);case 2:case"end":return V.stop()}}),B)})))()}))),P[R]}var O={props:{value:{type:Array,default:function(){return[]},validator:function(Q){return Array.isArray(Q)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(Q){return["","area","city","province"].indexOf(Q)!==-1}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return T(this.areaDataUrl)}},loadAreaDataUrl:T},E={name:"plv-area-picker-core",mixins:[O,e(28).b],components:{PlvCascaderPickerCore:_},methods:{handleSelectChange:function(Q){this.$emit("input",Q)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var Q=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return Q.slice(0,1);case"city":return Q.slice(0,2);case"area":return Q.slice(0,3)}return Q}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:T},D=e(1),j={name:"plv-area-picker-mob",mixins:[O],components:{PlvAreaPickerCore:Object(D.a)(E,(function(){var Q=this,R=Q.$createElement,N=Q._self._c||R;return N("div",{staticClass:"plv-area-picker__popper"},[N("plv-cascader-picker-core",{staticClass:"plv-area-picker__popper__inner",attrs:{"tab-wrap-class":"plv-area-picker__tab","tab-item-class":"plv-area-picker__tab__item","tab-item-selected-class":"plv-area-picker__tab__item--selected","list-class":"plv-area-picker__list","list-item-class":"plv-area-picker__list__item","list-item-selected-class":"plv-area-picker__list__item--selected","tab-list":Q.tabList,value:Q.value,data:Q.areaData},on:{input:Q.handleSelectChange,handleUpdatePopper:Q.handleUpdatePopper,finish:Q.handleSelectFinish},scopedSlots:Q._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker__list__item__inner"},[Q._t("item",[Q._v(Q._s(B.label))],null,B)],2)}}],null,!0)})],1)}),[],!1,null,null,null).exports},data:function(){return{realAreaData:[]}},watch:{areaData:{immediate:!0,handler:function(){var Q=this;return r()(a.a.mark((function R(){return a.a.wrap((function(N){for(;;)switch(N.prev=N.next){case 0:if(Q.areaData.length!==0){N.next=2;break}return N.next=1,Q.loadAreaDataUrl();case 1:Q.realAreaData=N.sent,N.next=3;break;case 2:Q.realAreaData=Q.areaData;case 3:case"end":return N.stop()}}),R)})))()}}},methods:{handleInput:function(Q){this.$emit("input",Q)},handleFinish:function(){this.$emit("finish")}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:T},I=Object(D.a)(j,(function(){var Q=this,R=Q.$createElement,N=Q._self._c||R;return N("div",{staticClass:"plv-area-picker-mob"},[N("plv-area-picker-core",{attrs:{value:Q.value,"area-data":Q.realAreaData},on:{input:Q.handleInput,finish:Q.handleFinish},scopedSlots:Q._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[N("span",[Q._v(Q._s(B.label))]),Q._v(" "),N("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)}),[],!1,null,null,null).exports;I.install=function(Q){Q.component(I.name,I)},n.default=I},,,,,function(t,n,e){},function(t,n,e){(function(o){var r;o!==void 0?r=o.Promise:typeof window!="undefined"&&(r=window.Promise),(r=e(r?74:75)).series=function(i){return i.length?i.slice(1).reduce((function(a,l){return a.then((function(c){return l(c)}))}),i[0]()):r.resolve()},r.delay=function(i){return new r((function(a){setTimeout(a,i)}))},t.exports=r}).call(this,e(25))},function(t,n,e){var o=e(42).createClass((function(r){this._promise=new Promise(r)}),{then:function(r,i){var a=this;return new o((function(l){l(a._promise.then(r,i))}))},spread:function(r,i){var a=this;return new o((function(l){l(a._promise.then((function(c){return r.apply(this,c)}),i))}))},catch:function(r){var i=this;return new o((function(a){a(i._promise.catch(r))}))},finally:function(r){var i=this;return new o((function(a,l){i._promise.then((function(c){r.apply(this,arguments),a(c)}),(function(c){r.apply(this,arguments),l(c)}))}))}});["all","race","reject","resolve"].forEach((function(r){o[r]=Promise[r]})),t.exports=o},function(t,n,e){var o=e(42),r=typeof console!="undefined"&&typeof console.error=="function"?function(u){console.error("Uncaught (in promise) %o",u)}:function(u){throw u};function i(u,s,d){var p;(p=u)&&typeof p.then=="function"?u.then(s,d):s(u)}var a=1,l=2,c=o.createClass((function(u){if(typeof u!="function")throw new Error("Executor must be a function");var s=this;function d(p){s._settle(l,p)}s._status=0,s._pendings={};try{u((function(p){i(p,(function(f){s._settle(a,f)}),d)}),d)}catch(p){d(p)}}),{_settle:function(u,s){var d=this;d._status===0&&(d._status=u,d._value=s,setTimeout((function(){if(d._status!==l||d._hasRejectedHandler){var p=d._pendings[u];p&&p.forEach((function(f){f(s)})),delete d._pendings}else r(s)}),0))},_listen:function(u,s){var d=this;u===l&&(d._hasRejectedHandler=!0),d._pendings?(d._pendings[u]=d._pendings[u]||[],d._pendings[u].push(s)):d._status===u&&setTimeout((function(){s(d._value)}),0)},_then:function(u,s,d){var p=this;return new c((function(f,b){p._listen(a,(function(){var v=p._value;if(u)try{v=d&&Array.isArray(v)?u.apply(this,v):u.call(this,v)}catch(x){return void b(x)}i(v,f,b)})),p._listen(l,(function(){var v=p._value;if(s){try{v=s.call(this,v)}catch(x){return void b(x)}i(v,f,b)}else b(v)}))}))},then:function(u,s){return this._then(u,s)},spread:function(u){return this._then(u,null,!0)},catch:function(u){return this.then(null,u)},finally:function(u){var s=this;return new c((function(d,p){function f(){var b,v=s._value;switch(s._status){case a:b=function(){d(v)};break;case l:b=function(){p(v)}}if(u)try{u()}catch(x){return void p(x)}b&&b()}s._listen(a,f),s._listen(l,f)}))}});o.extend(c,{all:function(u){var s=u.length;return s?new c((function(d,p){var f=new Array(s);u.forEach((function(b,v){b.then((function(x){f[v]=x,--s||d(f)}),p)}))})):c.resolve([])},race:function(u){return new c((function(s,d){u.forEach((function(p){p.then(s,d)}))}))},resolve:function(u){return new c((function(s,d){i(u,s,d)}))},reject:function(u){return new c((function(s,d){d(u)}))}}),t.exports=c},function(t,n){var e={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},o=n.parse=function(r){if(typeof r=="number")return r;if(!isNaN(r))return Number(r);var i=parseFloat(r);if(isNaN(i))throw new Error("Invalid timespan string");var a=r.split(i)[1].trim().toUpperCase().replace(/S$/,"");if(e.hasOwnProperty(a))return i*e[a];throw new Error('Invalid time unit "'+a+'"')};n.addToDate=function(r,i){return new Date((typeof r=="number"?r:r.getTime())+o(i))}},function(t,n,e){var o=e(42);n.parse=function(i,a){if(typeof i!="string")return{};a=o.extend({decode:decodeURIComponent},a);var l={};return i.split("&").forEach((function(c){if(c){c=c.split("=");var u=a.decode(c[0]),s=a.decode(c[1]||"");!s&&a.ignoreEmpty||(l.hasOwnProperty(u)?(Array.isArray(l[u])||(l[u]=[l[u]]),l[u].push(s)):l[u]=s)}})),l};var r=n.stringify=function(i,a){if(typeof i!="object")return"";a=o.extend({encode:encodeURIComponent},a);var l,c,u=[];function s(p,f){f==null&&(f=""),f===""&&a.ignoreEmpty||u.push(a.encode(p)+"="+a.encode(f))}function d(p){s(l,p)}for(l in i)i.hasOwnProperty(l)&&(c=i[l],Array.isArray(c)?c.forEach(d):s(l,c));return u.join("&")};n.append=function(i,a,l){if(!(typeof a=="string"&&a!==""||typeof a=="object"&&!o.isEmptyObject(a)))return i;var c=i.indexOf("#"),u="";return c!==-1&&(u=i.substring(c,i.length),i=i.substring(0,c)),i=i.replace(/[?&]$/,""),a=typeof a!="string"?r(a,l):a.replace(/^[?&]/,""),i+(i.indexOf("?")!==-1?"&":"?")+a+u}}]).default),Gp}var gK=vK();const F9=Ls(gK);function Hl(t,n){let e=[];const[o,...r]=t;if(typeof o=="undefined")return e;const i=n.find(a=>a.code===o);return i&&(e=[i]),i&&Array.isArray(i.childrens)&&(e=[...e,...Hl(r,i.childrens)]),e}function Yp(t,n){const e=Hl(t,n),o=e[e.length-1]||{};return!!(e.length&&(!o.childrens||!o.childrens.length))}const bK=()=>_e(ee({},M9()),{value:Ce.array(),areaPickerText:Ce.array(),placeholder:Ce.string}),yK=()=>ee({input:Pr()},k9("areaPickerText"));let Zp;const wK=t=>{const n=k.ref([]),{AreaPicker:e,props:o,emit:r}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=R9({props:o}),c=k.ref([]),u=k.computed(()=>o.placeholder),s=k.computed(()=>Yp(o.value,n.value)),d=k.computed(()=>Yp(c.value,n.value)),p=k.computed(()=>{let y=[];return d.value?y=Hl(c.value,n.value):Yp(o.value,n.value)&&(y=Hl(o.value,n.value)),y.map(C=>C.name)}),f=k.computed(()=>p.value.join("/"));k.watch(p,()=>{r("update:areaPickerText",p.value)},{immediate:!0}),k.watch(()=>k.unref(c),()=>{So||r("input",k.unref(c))});const b={isFinish:s,getAreaDataByValue:g},v=k.ref(!1),x=k.ref(1);function S(){s.value||(x.value+=1),v.value=!0,w()}function _(){v.value=!1,h()}function h(){d.value?r("input",k.unref(c)):c.value=o.value,a()}function w(){l()}function m(){k.unref(d)&&(r("input",k.unref(c)),_())}function g(y){return we(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(y,C)})}return k.onBeforeMount(()=>we(null,null,function*(){if(n.value.length===0)if(Zp)n.value=Zp;else{const y=yield e.loadAreaDataUrl();Zp=y,n.value=y}})),{innerValue:c,isFinish:s,innerIsFinish:d,instance:b,inputValue:f,inputPlaceholder:u,refreshKey:x,formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l,pickerVisible:v,openPicker:S,closePicker:_,onHiddenPicker:h,onShowPicker:w,onClickConfirm:m}};bK(),yK(),rK(),$Z(),eK();const xK=Object.prototype.hasOwnProperty;function _K(t,n){return xK.call(t,n)}function CK(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const n in t)if(_K(t,n))return!1}return!0}function SK(t){return t!=null&&t==t.window}function N9(t){return t!=null&&!SK(t)&&typeof t.nodeType=="number"}const es=document.documentElement,kK=es.matches||es.webkitMatchesSelector||es.mozMatchesSelector||es.oMatchesSelector||es.msMatchesSelector;function LK(t,n){try{return kK.call(t,n)}catch(e){return!1}}const PK={OBJECT:!0,EMBED:!0,APPLET:!0};function TK(t){if(t==null)return 0;if(N9(t)){const n=t;return PK[n.nodeName]||n.nodeType===9?2:n.nodeType!==1?0:1}return 2}const Kp="_just4_nodeid_"+ +new Date+"_";let B9=0;const OK=Object.create(null),Xp=Object.create(null);function Gl(t,n=!1){let e,o;switch(TK(t)){case 1:o=t[Kp],o?e=o.valueOf():n||(o=t[Kp]=new Number(++B9),OK[e=o.valueOf()]=function(){t[Kp]});break;case 2:for(const r in Xp)if(Xp[r]===t){e=Number(r);break}e||n||(e=++B9,Xp[e]=t)}return e}class EK{constructor(n={}){this._space=Object.create(null),this._cloneable=n.cloneable!==!1,this._onClone=n.onClone}findSpace(n){const e=Gl(n,!0);if(e)return this._space[e]}keys(n){const e=this.findSpace(n);return e?Object.keys(e):[]}getData(n,e){const o=this.findSpace(n);if(o&&e in o)return o[e]}setData(n,e,o){const r=Gl(n);r&&(this._space[r]||(this._space[r]=Object.create(null)),this._space[r][e]=o)}clearData(n){const e=Gl(n,!0);e&&delete this._space[e]}removeData(n,e){const o=this.findSpace(n);o&&(delete o[e],CK(o)&&this.clearData(n))}cloneData(n,e){if(!this._cloneable)return;const o=this.findSpace(e);if(o){const r=Gl(n);if(!r)return;const i=this._space[r]=this._space[r]||Object.create(null);for(const a in o)i[a]=o[a];this._onClone&&this._onClone(n,e)}}}function V9(t){return new EK(t)}V9();const Jp=Object.create(null);Jp.for="htmlFor",Jp.class="className",["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable","isMap"].forEach((function(t){Jp[t.toLowerCase()]=t}));const QK=Object.create(null);["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].forEach((function(t){QK[t]=!0}));const AK=Object.create(null);AK.float="cssFloat";const W9=Object.create(null);W9.scrollTop="pageYOffset",W9.scrollLeft="pageXOffset";const DK=/^(?:mouse|contextmenu)|click/,jK=/^touch/,IK=/^pointer/;class MK{constructor(n,e){if(this.originalEvent=n,this.type=n.type,this.timeStamp=n.timeStamp,this.target=n.target,this.currentTarget=n.currentTarget||e,DK.test(this.type)||IK.test(this.type)){const o=n;this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY}else if(jK.test(this.type)){const o=n.touches[0];o&&(this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY)}}preventDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}isDefaultPrevented(){return this.originalEvent.defaultPrevented}isPropagationStopped(){return this.originalEvent.bubbles}}(function(){const t=["o","moz","ms","webkit"],n=Object.create(null),e=document.documentElement;return["TransitionEnd","AnimationStart","AnimationIteration","AnimationEnd","fullscreenchange","fullscreenerror"].forEach((function(o){const r=o.toLowerCase();"on"+r in e||t.some((function(i){if("on"+i+r in e)return n[r]=i+o,!0}))})),function(o){return o!=null&&n[o]?n[o]:o}})(),(function(){const t=V9({onClone:function(e){this.keys(e).forEach((function(o){e.addEventListener(o,n,!1)}))}});function n(e){const o=new MK(e,this),r=o.type,i=t.getData(o.currentTarget,r);i&&i.forEach((function(a){let l;const c=o.target;if(a.delegator&&N9(c)){if(l=(function(u,s){let d=u.target;for(;d&&d!==u.currentTarget;){if(LK(d,s))return d;d=d.parentNode}})(o,a.delegator),!l)return}else l=o.currentTarget;a.handler.call(l,o)===!1&&o.preventDefault()}))}return{add(e,o,r){let i=t.getData(e,o);i||(i=[],t.setData(e,o,i),e.addEventListener(o,n,!1)),i.push(r)},remove(e,o,r,i){if(o&&(r||i)){const a=t.getData(e,o);if(!a||((function(l,c,u){for(let s=l.length-1;s>=0;s--)u&&l[s].handler!==u||c&&c!==l[s].delegator||l.splice(s,1)})(a,r,i),a.length))return}if(o)return t.removeData(e,o),void e.removeEventListener(o,n,!1);t.keys(e).forEach((function(a){e.removeEventListener(a,n,!1)})),t.clearData(e)}}})();const Hi={OpenProductOrderDetailPopup:"openProductOrderDetailPopup",RefreshProductOrderListStatus:"refreshProductOrderListStatus",RefreshProductOrderDetailStatus:"refreshProductOrderDetailStatus"},RK=()=>({paymentTarget:z.object().isRequired});function zK(t){return{PaymentProvider:t.PaymentProvider}}const U9=t=>{const{props:n}=t,{PaymentProvider:e}=zK(n.paymentTarget),{injectData:o}=io(),{$t:r}=yn(),i=k.ref([]),a=k.computed(()=>{const p=i.value.includes(e.Alipay);return So&&(Up||p)}),l=k.computed(()=>i.value.length===1&&i.value[0]===e.Alipay),c=k.computed(()=>i.value.length===1&&i.value[0]===e.Wechat);function u(){return we(this,null,function*(){const p=yield n.paymentTarget.getPayProviders();i.value=p})}function s(p){return we(this,null,function*(){return new Promise(f=>we(null,null,function*(){if(!Up)return f({success:!1,failReason:"notInWechatBrowser",failMessage:r("order.wechatPayTips")});if(!o.getWeixinSdk)return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")});let b;try{b=yield o.getWeixinSdk()}catch(v){return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")})}if(!b)return f({success:!1,failReason:"sdkNotAvailable",failMessage:r("order.payFailed")});b.chooseWXPay({timestamp:p.timestamp,nonceStr:p.nonceStr,package:p.package,signType:p.signType,paySign:p.paySign,success:v=>{f({success:!0,data:v||{}})},cancel:()=>{f({success:!1,failReason:"userCancelled",failMessage:r("order.cancelPay")})},fail:v=>{n.paymentTarget.interactionCore.logger.error("wx","choose-wx-pay-fail",JSON.stringify(v)),f({success:!1,failReason:"payFailed",failMessage:(v==null?void 0:v.errMsg)||r("order.payFailed")})}})}))})}function d(p){const f=document.createElement("a");f.href=p,f.click()}return{supportPayProviders:i,isSupportPay:a,onlySupportAlipay:l,onlySupportWechatPay:c,getPayProviders:u,payWithWechat:s,payWithAli:d}};var H9=(t=>(t.ApplyRefund="applyRefund",t.Pay="pay",t.ViewDetail="viewDetail",t.ConfirmReceipt="confirmReceipt",t))(H9||{}),G9=(t=>(t.OrderList="orderList",t.OrderDetail="orderDetail",t))(G9||{});const FK=()=>_e(ee({},RK()),{orderTarget:z.object().isRequired});function qp(t){return{OrderStatus:t.OrderStatus,PayStatus:t.PayStatus,PaymentProvider:t.PaymentProvider,ProductDeliveryType:t.ProductDeliveryType,ProductType:t.ProductType,ProductBuyType:t.ProductBuyType,RefundStatus:t.RefundStatus,CreateOrderFailReason:t.CreateOrderFailReason}}const Y9=Symbol("ORDER_PROVIDE_KEY"),NK=t=>{k.provide(Y9,{getOrderTarget:()=>t.orderTarget});const n=t.orderTarget,e=qp(n),{OrderStatus:o,PayStatus:r,PaymentProvider:i,RefundStatus:a}=e,{supportPayProviders:l,onlySupportAlipay:c,payWithWechat:u,payWithAli:s,getPayProviders:d}=U9({props:t}),{getEmitter:p,messageBox:f,toast:b}=io(),{$t:v}=yn();function x(g){p().emit(Hi.OpenProductOrderDetailPopup,g)}function S(g,y=!1){g.route==="orderList"?p().emit(Hi.RefreshProductOrderListStatus,g.orderNo):p().emit(Hi.RefreshProductOrderDetailStatus,{orderNo:g.orderNo,syncPayStatus:y})}function _(g){return we(this,null,function*(){g.orderStatus!==o.Delivering||!(yield f({content:v("order.confirmReceiptTips"),confirmButtonText:v("common.confirm"),cancelButtonText:v("common.cancel")}))||(yield t.orderTarget.confirmOrder(g.orderNo),b(v("order.confirmedReceipt")),S(g))})}function h(g){return we(this,null,function*(){if(g.route==="orderList"&&(l.value.length>1||c.value)){x(g.orderNo);return}try{const y=yield t.paymentTarget.getPayOrderParams({orderNo:g.orderNo,payProvider:g.payProvider||i.Wechat});if(y.payStatus===r.Free){b(v("order.paySuccess")),S(g,!0);return}if(g.payProvider&&g.payProvider===i.Alipay){s(y.aliPayLink),S(g,!0);return}const C=yield u({timestamp:y.timeStamp,nonceStr:y.nonceStr,package:y.package,signType:y.signType,paySign:y.paySign});C.success?(b(v("order.paySuccess")),S(g,!0)):b(C.failMessage)}catch(y){b(y instanceof Error?y.message:v("order.payFailed"))}})}function w(g){return we(this,null,function*(){if(g.orderStatus!==o.WaitDelivery)return;const y=v("order.refundTips"),C=g.orderAmount||"";if(!(yield f({content:`<div style="font-size: 16px; color: #3D3D3D;">${y}<span style="color: #FF5252;">¥${C}</span></div>`,cancelButtonText:v("common.cancel"),confirmButtonText:v("order.confirmRefund")})))return;const T=yield t.orderTarget.applyOrderRefund(g.orderNo);if(!T.success){b(v("order.failed"));return}T.refundStatus===a.Fail&&b(v("order.refundFailed")),S(g)})}function m(g){switch(g.action){case"pay":h(g);break;case"viewDetail":x(g.orderNo);break;case"confirmReceipt":_(g);break;case"applyRefund":w(g);break}}return ee({orderTarget:n,supportPayProviders:l,onlySupportAlipay:c,getPayProviders:d,handleRePay:h,handleConfirmReceipt:_,navToOrderDetail:x,handleOrderBtnClick:m},e)},Yl=()=>{const t=k.inject(Y9),{$t:n}=yn(),e=t.getOrderTarget(),o=qp(e),{OrderStatus:r}=o;function i(a){switch(a){case r.WaitPay:return n("order.list.waitPay");case r.WaitDelivery:return n("order.list.waitDelivery");case r.Delivering:return n("order.list.delivering");case r.Finish:return n("order.list.finish");case r.Close:return n("order.list.close");case r.Refunding:return n("order.list.refunding");case r.Refunded:return n("order.list.refunded");default:return""}}return ee({orderTarget:e,getOrderStatusText:i},o)},BK=k.defineComponent({__name:"product-feature-tag",props:{tag:z.string.def(""),maxWidth:z.number.def(88)},setup(t){const n=t,e=k.computed(()=>({maxWidth:`${n.maxWidth}px`}));return{__sfc:!0,props:n,containerStyle:e}}});var VK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-item__tag-container",style:o.containerStyle,attrs:{title:n.tag}},[n.tag?e("span",{staticClass:"plv-product-c-item__tag"},[n._v(n._s(n.tag))]):n._e()])},WK=[],UK=tn(BK,VK,WK);const HK=UK.exports,GK=k.defineComponent({__name:"purchase-product",props:{product:z.object().isRequired},emits:{"click-purchase-product":be()},setup(t,{emit:n}){const e=t,{$t:o}=yn(),r=k.computed(()=>e.product.realPrice===0?o("product.price.free"):e.product.realPrice);function i(){n("click-purchase-product")}return{__sfc:!0,props:e,$t:o,displayTotalPrice:r,emit:n,onOrderProductClick:i,ProductFeatureTag:HK}}});var YK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-purchase-product",on:{click:o.onOrderProductClick}},[e("img",{staticClass:"plv-product-c-purchase-product__image",attrs:{src:n.product.cover,alt:n.product.name}}),e("div",{staticClass:"plv-product-c-purchase-product__info"},[e("div",{staticClass:"plv-product-c-purchase-product__name"},[n._v(" "+n._s(n.product.name)+" ")]),n.product.featureTags?e("div",{staticClass:"plv-product-c-purchase-product__tags"},n._l(n.product.featureTags,function(r,i){return e(o.ProductFeatureTag,{key:i,attrs:{tag:r}})}),1):n._e(),n.product.description?e("div",{staticClass:"plv-product-c-purchase-product__description"},[n._v(" "+n._s(n.product.description)+" ")]):n._e(),e("div",{staticClass:"plv-product-c-purchase-product__price"},[n.product.realPrice>0?e("span",{staticClass:"plv-product-c-purchase-product__price-symbol"},[n._v("¥")]):n._e(),e("span",{staticClass:"plv-product-c-purchase-product__price-value plv-font-din-pro-regular"},[n._v(n._s(o.displayTotalPrice))])])])])},ZK=[],KK=tn(GK,YK,ZK);const XK=KK.exports,JK=k.defineComponent({__name:"order-pay-countdown",props:{endTime:z.number.isRequired},emits:{"count-down-end":be()},setup(t,{emit:n}){const e=t,o=k.ref(""),r=k.ref(null);function i(){r.value!==null&&(clearInterval(r.value),r.value=null)}function a(){if(!e.endTime||e.endTime-Date.now()<=0)return n("count-down-end"),i(),"00:00";const l=e.endTime-Date.now(),c=Math.floor(l/(60*1e3)),u=Math.floor(l%(60*1e3)/1e3);return c<0||u<0?(n("count-down-end"),i(),"00:00"):`${String(c).padStart(2,"0")}:${String(u).padStart(2,"0")}`}return k.onMounted(()=>{o.value=a(),e.endTime>Date.now()&&(r.value=setInterval(()=>{o.value=a()},1e3))}),k.onBeforeUnmount(()=>{i()}),{__sfc:!0,props:e,emit:n,timeStr:o,intervalId:r,clearCountdown:i,formattedTime:a}}});var qK=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("span",[n._v(n._s(o.timeStr))])},$K=[],eX=tn(JK,qK,$K);const tX=eX.exports,nX=k.defineComponent({__name:"pay-status",setup(t){const{getEmitter:n}=io(),{$t:e}=yn(),{getOrderStatusText:o,OrderStatus:r}=Yl(),i=k.inject("orderDetail"),a=k.computed(()=>(i==null?void 0:i.value.orderNo)||"");function l(){n().emit(Hi.RefreshProductOrderListStatus,a.value)}return{__sfc:!0,getEmitter:n,$t:e,getOrderStatusText:o,OrderStatus:r,orderDetail:i,orderNo:a,handleCountDownEnd:l,OrderPayCountdown:tX}}});var rX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",{staticClass:"plv-product-c-pay-status"},[e("span",{staticClass:"plv-product-c-pay-status__text"},[n._v(" "+n._s(o.getOrderStatusText(o.orderDetail.status))+" ")]),e("div",{staticClass:"plv-product-c-pay-status__actions"},[o.orderDetail.status===o.OrderStatus.WaitPay?e("div",[e(o.OrderPayCountdown,{attrs:{"end-time":o.orderDetail.expiredAt},on:{"count-down-end":o.handleCountDownEnd}}),e("span",[n._v(n._s(o.$t("order.detail.payAutoCancel")))])],1):o.orderDetail.status===o.OrderStatus.Close?e("div",[e("span",[n._v(n._s(o.$t("order.detail.cancelReason")))]),e("span",[n._v(": ")]),e("span",[n._v(n._s(o.$t("order.detail.payTimeOut")))])]):o.orderDetail.status===o.OrderStatus.Refunded?e("div",[e("span",[n._v(n._s(o.$t("order.detail.refundTips")))])]):n._e()])]):n._e()},oX=[],iX=tn(nX,rX,oX);const aX=iX.exports,sX="data:image/png;base64,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",lX=k.defineComponent({__name:"customer-qrcode",setup(t){const{$t:n}=yn(),e=k.inject("orderDetail"),o=k.computed(()=>{var r;return(r=e==null?void 0:e.value.products)!=null&&r[0].customerServiceContact?n("order.detail.qrCodeTips"):n("order.detail.qrCodeExpiredTips")});return{__sfc:!0,$t:n,orderDetail:e,customerServiceTips:o,qrcodeExpiredImage:sX}}});var cX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-customer-qrcode"},[e("div",{staticClass:"plv-product-c-customer-qrcode__img-wrap"},[o.orderDetail&&o.orderDetail.products[0].customerServiceContact?[e("img",{staticClass:"plv-product-c-customer-qrcode__img",attrs:{src:o.orderDetail.products[0].customerServiceContact}})]:[e("img",{staticClass:"plv-product-c-customer-qrcode__img--expired",attrs:{src:o.qrcodeExpiredImage,alt:"expired"}}),e("span",{staticClass:"plv-product-c-customer-qrcode__img-text"},[n._v(" "+n._s(o.$t("order.detail.expired"))+" ")])]],2),e("span",{staticClass:"plv-product-c-customer-qrcode__tips"},[n._v(n._s(o.customerServiceTips))])])},uX=[],pX=tn(lX,cX,uX);const dX=pX.exports,fX=k.defineComponent({__name:"address-item",props:{addressInfo:z.object().isRequired},emits:{"choose-address":be()},setup(t,{emit:n}){const e=t;function o(){n("choose-address",e.addressInfo)}return{__sfc:!0,props:e,emit:n,onClick:o,maskChars:b1}}});var hX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-address-item",on:{click:o.onClick}},[e("div",{staticClass:"plv-product-address-item__top"},[e("div",{staticClass:"plv-product-address-item__content"},[e("div",{staticClass:"plv-product-address-item__header"},[e("span",[n._v(n._s(n.addressInfo.name))]),e("span",{staticClass:"plv-product-address-item__header-phone"},[n._v(n._s(o.maskChars(n.addressInfo.mobile,{start:3,end:6})))])]),e("div",{staticClass:"plv-product-address-item__address"},[n._v(" "+n._s(n.addressInfo.address)+" ")])]),n.$slots.icon?e("div",{staticClass:"plv-product-address-item__icon-wrapper"},[n._t("icon")],2):n._e()]),n._t("action")],2)},mX=[],vX=tn(fX,hX,mX);const gX=vX.exports,bX=k.defineComponent({__name:"express-info",setup(t){const n=k.inject("orderDetail"),{$t:e}=yn();return{__sfc:!0,orderDetail:n,$t:e,maskChars:b1,AddressItem:gX}}});var yX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",[o.orderDetail.expressEnabled?e(o.AddressItem,{staticClass:"plv-product-c-express-info",attrs:{"address-info":o.orderDetail.expressInfo}}):e("div",{staticClass:"plv-product-c-phone-info"},[e("span",[n._v(n._s(o.$t("order.phone")))]),e("span",{staticClass:"plv-product-c-phone-info__text"},[n._v(n._s(o.maskChars(o.orderDetail.expressInfo.mobile,{start:3,end:4})))])])],1):n._e()},wX=[],xX=tn(bX,yX,wX);const _X=xX.exports,CX="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1_31044'%3e%3crect%20x='0'%20y='0'%20width='24'%20height='24'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1_31044)'%3e%3cg%3e%3cpath%20d='M7.9075653125,8.011559448241844C7.4913803125000005,8.011559448241844,7.0751953125,8.289016532714843,7.0751953125,8.705201532714844C7.0751953125,9.121388532714844,7.4913803125000005,9.398838532714844,7.9075653125,9.398838532714844C8.3237453125,9.398838532714844,8.6012053125,9.121388532714844,8.6012053125,8.705201532714844C8.6012053125,8.271675532714843,8.3237453125,8.011559448241844,7.9075653125,8.011559448241844ZM13.5434053125,12.034678532714842C13.265945312500001,12.034678532714842,13.0058353125,12.329478532714845,13.0058353125,12.589588532714844C13.0058353125,12.884388532714844,13.2832853125,13.144508532714845,13.5434053125,13.144508532714845C13.9595853125,13.144508532714845,14.237045312500001,12.867048532714843,14.237045312500001,12.589588532714844C14.237045312500001,12.312138532714844,13.9595853125,12.034678532714842,13.5434053125,12.034678532714842ZM11.7572753125,9.398838532714844C12.1734653125,9.398838532714844,12.450915312500001,9.104048532714843,12.450915312500001,8.705200532714844C12.450915312500001,8.289015532714844,12.1734653125,8.011558532714844,11.7572753125,8.011558532714844C11.3410953125,8.011558532714844,10.9249053125,8.289015532714844,10.9249053125,8.705200532714844C10.9249053125,9.121388532714844,11.3410953125,9.398838532714844,11.7572753125,9.398838532714844ZM16.5607453125,12.034678532714842C16.2832853125,12.034678532714842,16.0231753125,12.329478532714845,16.0231753125,12.589588532714844C16.0231753125,12.884388532714844,16.3006253125,13.144508532714845,16.5607453125,13.144508532714845C16.9769253125,13.144508532714845,17.2543953125,12.867048532714843,17.2543953125,12.589588532714844C17.2543953125,12.312138532714844,16.9769353125,12.034678532714842,16.5607453125,12.034678532714842Z'%20fill='%2328C445'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M11.9653,0.069366455078125C5.35838,0.069366455078125,0,5.427746455078125,0,12.034666455078124C0,18.641666455078123,5.35838,23.999966455078123,11.9653,23.999966455078123C18.5723,23.999966455078123,23.9306,18.641666455078123,23.9306,12.034666455078124C23.9306,5.427746455078125,18.5723,0.069366297722125,11.9653,0.069366455078125ZM9.69364,15.104066455078126C9,15.104066455078126,8.44509,14.965366455078126,7.78613,14.809266455078125L5.87861,15.780366455078125L6.41619,14.098266455078125C5.04624,13.127166455078125,4.21387,11.861266455078125,4.21387,10.352566455078126C4.21387,7.699426455078125,6.69364,5.618496455078125,9.69364,5.618496455078125C12.3815,5.618496455078125,14.7572,7.283236455078125,15.2254,9.520236455078125C15.052,9.502896455078124,14.8786,9.485546455078126,14.7052,9.485546455078126C12.104,9.520236455078125,10.0578,11.479766455078124,10.0578,13.907566455078126C10.0578,14.306366455078125,10.1272,14.687866455078124,10.2312,15.069366455078125C10.0578,15.086666455078126,9.86705,15.104066455078126,9.69364,15.104066455078126ZM17.8092,17.046266455078126L18.2254,18.433566455078125L16.7341,17.601166455078125C16.1965,17.739866455078126,15.6416,17.878566455078126,15.0867,17.878566455078126C12.4682,17.878566455078126,10.4046,16.075166455078126,10.4046,13.838166455078126C10.3873,11.618466455078124,12.4509,9.815026455078126,15.052,9.815026455078126C17.5318,9.815026455078126,19.7168,11.635866455078125,19.7168,13.855466455078124C19.7168,15.104066455078126,18.9017,16.213866455078126,17.8092,17.046266455078126Z'%20fill='%232AAE67'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",SX="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1_31591'%3e%3crect%20x='0'%20y='0'%20width='24'%20height='24'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1_31591)'%3e%3cg%3e%3cpath%20d='M5.4087,13.513C5.11304,13.7391,4.81739,14.0696,4.73043,14.5043C4.6087,15.0783,4.71304,15.8087,5.25217,16.3826C5.93043,17.0609,6.95652,17.2522,7.4087,17.287C8.6087,17.3739,9.89565,16.7652,10.8696,16.1043C11.2522,15.8435,11.8957,15.3043,12.5217,14.4696C11.1304,13.7565,9.3913,12.9565,7.54783,13.0261C6.57391,13.0609,5.89565,13.2522,5.4087,13.513ZM23.0435,16.6957C23.6522,15.2522,24,13.6696,24,12C24,5.3913,18.6087,0,12,0C5.3913,0,0,5.3913,0,12C0,18.6087,5.3913,24,12,24C16,24,19.5304,22.0348,21.7217,19.0261C19.6522,18.0174,16.2609,16.313,14.1565,15.3043C13.1652,16.4522,11.687,17.5826,10.0174,18.0696C8.97391,18.3826,8.01739,18.5043,7.04348,18.2957C6.05217,18.087,5.33913,17.6348,4.92174,17.1826C4.71304,16.9391,4.46957,16.6609,4.27826,16.2957C4.29565,16.313,4.29565,16.3478,4.29565,16.3652Q4.1913,16.1913,4.12174,15.913C4.08696,15.7739,4.05217,15.6348,4.03478,15.4957C4.01739,15.3913,4.01739,15.287,4.03478,15.2C4.01739,15.0261,4.03478,14.8348,4.06957,14.6435C4.17391,14.1565,4.36522,13.6174,4.90435,13.113C6.05217,11.9826,7.6,11.9304,8.4,11.9304C9.58261,11.9478,11.6348,12.4522,13.3739,13.0783C13.8609,12.0522,14.1739,10.9739,14.3652,10.2261L7.14783,10.2261L7.14783,9.44348L10.8522,9.44348L10.8522,7.87826L6.38261,7.87826L6.38261,7.07826L10.8522,7.07826L10.8522,5.51305C10.8522,5.30435,10.9043,5.13044,11.2348,5.13044L12.9913,5.13044L12.9913,7.07826L17.8435,7.07826L17.8435,7.86087L12.9913,7.86087L12.9913,9.42609L16.8696,9.42609Q16.4696,11.6,15.2696,13.7391C17.9652,14.6957,21.7739,16.1913,23.0435,16.6957Z'%20fill='%231777FF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kX=k.defineComponent({__name:"payment-method",props:{value:z.string.def("WECHAT"),paymentMethods:z.array().def([]),disabled:z.bool.def(!1)},emits:{input:be()},setup(t,{emit:n}){const e=t,{$t:o}=yn(),{PaymentProvider:r}=Yl(),i=k.computed(()=>[{label:o("order.detail.wechat"),value:r.Wechat,icon:CX},{label:o("order.detail.alipay"),value:r.Alipay,icon:SX}]),a=k.computed(()=>e.paymentMethods.length?e.paymentMethods:i.value);function l(c){e.disabled||n("input",c)}return{__sfc:!0,props:e,emit:n,$t:o,PaymentProvider:r,defaultPaymentMethods:i,paymentMethodList:a,selectPaymentMethod:l,PlvRadio:fZ}}});var LX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-c-payment-methods"},[e("div",{staticClass:"plv-product-c-payment-methods__title"},[n._v(" "+n._s(o.$t("order.detail.paymentMethod"))+" ")]),e("div",{staticClass:"plv-product-c-payment-methods__list"},n._l(o.paymentMethodList,function(r,i){return e("div",{key:i,staticClass:"plv-product-c-payment-methods__item",on:{click:function(a){return o.selectPaymentMethod(r.value)}}},[e("div",{staticClass:"plv-product-c-payment-methods__item-info"},[e("div",{staticClass:"plv-product-c-payment-methods__item-icon"},[e("img",{attrs:{src:r.icon,alt:"icon"}})]),e("span",{staticClass:"plv-product-c-payment-methods__item-label"},[n._v(n._s(r.label))])]),e(o.PlvRadio,{attrs:{checked:n.value===r.value,disabled:n.disabled}})],1)}),0)])},PX=[],TX=tn(kX,LX,PX);const OX=TX.exports,EX=k.defineComponent({__name:"order-info",setup(t){const{$t:n}=yn(),e=k.inject("orderDetail"),{OrderStatus:o,ProductDeliveryType:r}=Yl(),i=k.computed(()=>e!=null&&e.value.createAt?wa(e.value.createAt,"YYYY.MM.DD hh:mm"):""),a=k.computed(()=>!(e!=null&&e.value)||e.value.status!==o.Finish&&e.value.status!==o.Delivering?"":wa(e.value.deliveryAt,"YYYY.MM.DD hh:mm")),l=k.computed(()=>!(e!=null&&e.value)||e.value.status!==o.Finish?"":wa(e.value.finishAt,"YYYY.MM.DD hh:mm"));return{__sfc:!0,$t:n,orderDetail:e,OrderStatus:o,ProductDeliveryType:r,orderCreatedAt:i,orderDeliveryAt:a,orderFinishAt:l}}});var QX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",[e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.orderNo")))]),e("span",[n._v(n._s(o.orderDetail.orderNo))])]),e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.createTime")))]),e("span",[n._v(n._s(o.orderCreatedAt))])]),o.orderDetail.status!==o.OrderStatus.WaitPay&&o.orderDetail.status!==o.OrderStatus.Close?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.payTime")))]),e("span",[n._v(n._s(o.orderDetail.payAt))])]):n._e(),(o.orderDetail.status===o.OrderStatus.Finish||o.orderDetail.status===o.OrderStatus.Delivering)&&o.orderDetail.products[0].deliveryType===o.ProductDeliveryType.Express?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.deliveryTime")))]),e("span",[n._v(n._s(o.orderDeliveryAt))])]):n._e(),o.orderDetail.status===o.OrderStatus.Finish?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.finishTime")))]),e("span",[n._v(n._s(o.orderFinishAt))])]):n._e(),o.orderDetail.status!==o.OrderStatus.WaitPay&&o.orderDetail.status!==o.OrderStatus.Close?e("div",{staticClass:"plv-product-c-order-info__text"},[e("span",[n._v(n._s(o.$t("order.detail.actualPay")))]),e("div",{staticClass:"plv-product-c-order-info__amount"},[e("span",{staticClass:"plv-product-c-order-info__amount-symbol"},[n._v("¥")]),e("span",{staticClass:"plv-product-c-order-info__amount-value pwc-font-din-pro-bold"},[n._v(n._s(o.orderDetail.amount))])])]):n._e()]):n._e()},AX=[],DX=tn(EX,QX,AX);const jX=DX.exports,IX=k.defineComponent({__name:"bottom-operate-panel",emits:{"click-order-btn":be()},setup(t,{emit:n}){const e=k.inject("orderDetail"),{$t:o}=yn(),{OrderStatus:r,ProductDeliveryType:i}=Yl(),a=k.computed(()=>!e||!e.value?!1:[r.WaitPay,r.Delivering,r.WaitDelivery].includes(e.value.status));function l(c){n("click-order-btn",c)}return{__sfc:!0,emit:n,orderDetail:e,$t:o,OrderStatus:r,ProductDeliveryType:i,operatePanelVisible:a,onOrderBtnClick:l,OrderButtonAction:H9}}});var MX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail&&o.operatePanelVisible?e("div",{staticClass:"plv-product-c-bottom-operate-panel"},[o.orderDetail.status===o.OrderStatus.WaitPay?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item plv-product-c-bottom-operate-panel__item-pay"},[e("div",{staticClass:"plv-product-c-bottom-operate-panel__amount"},[e("span",[n._v(n._s(o.$t("order.detail.actualPay")))]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__amount-symbol"},[n._v("¥")]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__amount-value pwc-font-din-pro-bold"},[n._v(n._s(o.orderDetail.amount))])]),e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.Pay)}}},[n._v(" "+n._s(o.$t("order.detail.payNow"))+" ")])]):n._e(),o.orderDetail.status===o.OrderStatus.Delivering?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.ConfirmReceipt)}}},[e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn"},[n._v(" "+n._s(o.$t("order.detail.confirmReceipt"))+" ")])]):n._e(),o.orderDetail.status===o.OrderStatus.WaitDelivery&&o.orderDetail.products[0].deliveryType===o.ProductDeliveryType.Express&&o.orderDetail.products[0].realPrice>0?e("div",{staticClass:"plv-product-c-bottom-operate-panel__item",on:{click:function(r){return o.onOrderBtnClick(o.OrderButtonAction.ApplyRefund)}}},[e("span",{staticClass:"plv-product-c-bottom-operate-panel__btn plv-product-c-bottom-operate-panel__btn-refund"},[n._v(" "+n._s(o.$t("order.applyRefund"))+" ")])]):n._e()]):n._e()},RX=[],zX=tn(IX,MX,RX);const FX=zX.exports,NX=()=>_e(ee({},FK()),{syncPayStatus:z.bool.def(!1),orderNo:z.string.isRequired}),BX=t=>{const{props:n}=t,{OrderStatus:e,PaymentProvider:o}=qp(n.orderTarget),{getEmitter:r}=io(),{onlySupportAlipay:i,getPayProviders:a}=U9({props:n}),l=k.ref(),c=k.ref(o.Wechat),u=k.computed(()=>{var b;return l.value?l.value.status!==e.WaitPay&&l.value.status!==e.Close&&((b=l.value.products)==null?void 0:b[0].customerServiceType):!1});function s(x){return we(this,arguments,function*(b,v=n.syncPayStatus){if(!n.orderTarget||!b)return;const S=yield n.orderTarget.getOrderDetail({orderNo:b,syncPayStatus:v});return l.value=S,S})}function d(b){return b?[e.WaitDelivery,e.Delivering,e.Finish].includes(b):!1}function p(){return we(this,null,function*(){var h;if(!(document.visibilityState==="visible")||((h=l.value)==null?void 0:h.status)!==e.WaitPay)return;const x=yield s(n.orderNo);let S=x==null?void 0:x.status;if(S===e.WaitPay){yield new Promise(m=>setTimeout(m,2e3));const w=yield s(n.orderNo);S=w==null?void 0:w.status}d(S)&&r().emit(Hi.RefreshProductOrderListStatus,n.orderNo)})}function f(){i.value&&(c.value=o.Alipay)}return Tf(Hi.RefreshProductOrderDetailStatus,b=>{s(b.orderNo,b.syncPayStatus)}),k.watch(()=>n.orderNo,b=>{b&&s(b)},{immediate:!0}),k.onMounted(()=>we(null,null,function*(){yield a(),f(),window.addEventListener("visibilitychange",p)})),k.onBeforeUnmount(()=>{window.removeEventListener("visibilitychange",p)}),{orderDetail:l,OrderStatus:e,selectedPayMethod:c,customerQrcodeVisible:u}},VX=k.defineComponent({__name:"order-detail",props:NX(),setup(t){const n=t,{orderDetail:e,OrderStatus:o,selectedPayMethod:r,customerQrcodeVisible:i}=BX({props:n}),{supportPayProviders:a,handleOrderBtnClick:l,getPayProviders:c}=NK(n);function u(s){var d,p,f;l({action:s,orderNo:((d=e.value)==null?void 0:d.orderNo)||"",orderStatus:((p=e.value)==null?void 0:p.status)||"",route:G9.OrderDetail,payProvider:r.value,orderAmount:(f=e.value)==null?void 0:f.amount})}return k.onMounted(()=>{c()}),k.provide("orderDetail",e),{__sfc:!0,props:n,orderDetail:e,OrderStatus:o,selectedPayMethod:r,customerQrcodeVisible:i,supportPayProviders:a,handleOrderBtnClick:l,getPayProviders:c,onClickOrderBtn:u,PurchaseProduct:XK,PayStatus:aX,CustomerQrcode:dX,ExpressInfo:_X,PaymentMethod:OX,OrderInfo:jX,BottomOperatePanel:FX}}});var WX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.orderDetail?e("div",{staticClass:"plv-product-order-detail"},[e("div",{staticClass:"plv-product-order-detail__content"},[e(o.PayStatus),o.customerQrcodeVisible?e(o.CustomerQrcode):n._e(),e(o.ExpressInfo),e("div",{staticClass:"plv-product-order-detail__info"},[n._l(o.orderDetail.products,function(r,i){return e(o.PurchaseProduct,{key:i,attrs:{product:r}})}),o.orderDetail.status===o.OrderStatus.WaitPay&&o.supportPayProviders.length>1?e(o.PaymentMethod,{model:{value:o.selectedPayMethod,callback:function(r){o.selectedPayMethod=r},expression:"selectedPayMethod"}}):n._e(),e(o.OrderInfo)],2)],1),e(o.BottomOperatePanel,{on:{"click-order-btn":o.onClickOrderBtn}})],1):n._e()},UX=[],HX=tn(VX,WX,UX);return HX.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: order-detail]","[version: 1.13.0]","[buildTime: 2026-04-24 07:46:55]");