@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.
@@ -2033,4 +2033,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2033
2033
  </g>
2034
2034
  </g>
2035
2035
  </svg>
2036
- `);const e8=()=>({size:R.enum(),theme:R.enum(),validateForm:R.bool.def(!0)}),lX=t=>{const{props:n,classPrefix:e}=t,o=$4();return{commonClassNames:S.computed(()=>{const i=[],a=n.size;a&&a!==K4.Default&&i.push(`${e}--size-${a}`);const l=n.theme||(o==null?void 0:o.theme);return S.unref(l)&&i.push(`${e}--theme-${l}`),i})}},t8=t=>{const{props:n}=t,e=VK();function o(){return ye(this,null,function*(){yield e==null?void 0:e.validateFormItem()})}function r(){return ye(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=S.computed(()=>!n.validateForm||!e?!1:S.unref(e.formItemIsError));return{validateCurrentFormItem:o,blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}},cX=()=>_e(ee({},e8()),{readonly:R.bool.def(!1),disabled:R.bool.def(!1),value:R.oneOfType([String,Number]).def(""),type:R.string.def("text"),placeholder:R.string.def(""),maxlength:R.number.def(1/0),showWordLimit:R.bool.def(!1),suffixText:R.string.def(""),clearable:R.bool.def(!1),useTextarea:R.bool.def(!1),rows:R.number.def(4),inputTitle:R.string.def(""),inputTitleWidth:R.number.def(void 0)}),uX=()=>({input:be(),blur:be(),focus:be(),enter:be()}),pX=t=>{const{emit:n,props:e,classPrefix:o}=t,{blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}=t8({props:e}),{commonClassNames:l}=lX({props:e,classPrefix:o}),c=S.ref(),u=S.ref(!1),s=S.computed(()=>{const g=[...S.unref(l)];return S.unref(a)&&g.push(`${o}--error`),e.useTextarea&&g.push(`${o}--textarea`),g}),d=S.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:k}=Gl();function _(){const g=k();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}},dX=S.defineComponent({__name:"form-input",props:cX(),emits:uX(),setup(t,{expose:n,emit:e}){const o=t,{value:r,type:i,placeholder:a,maxlength:l,inputTitle:c}=bs(o),{inputRef:u,inputClassNames:s,onInputChanged:d,onInputBlur:p,onInputFocus:f,formInstance:b,wordLimitText:v,clearValue:x,isFocus:k}=pX({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:k,ProductIconCloseRoundFill:sX}}});var fX=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)])},hX=[],mX=Nn(dX,fX,hX);const n8=mX.exports,r8=["bottom","left","right","center"],vX=Symbol("plv-product-common-popup"),gX=()=>S.inject(vX,{}),bX=t=>{const{initHeightRatio:n=.7,maxHeightRatio:e=.85}=t||{},o=S.ref(0),r=S.ref(0),i=S.ref(null),a=S.computed(()=>Math.min(n+r.value,e)),l=S.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}},yX=S.defineComponent({__name:"index",props:{value:R.bool.def(!1),title:R.string.def(""),backgroundMode:R.oneOf(["bg1"]),background:R.string,closeable:R.bool.def(!0),fillBody:R.bool.def(!1),backable:R.bool.def(!1),headerHeight:R.string.def("52px"),contentHeightPercent:R.oneOfType([Boolean,Number]).def(.7),showHeader:R.bool.def(!0),openEvent:R.looseString,position:R.oneOf(r8),horizontalScreenPosition:R.oneOf(r8).def("right"),horizontalScreenClassName:R.string,width:R.looseString,appendTo:R.looseElement,showModal:R.looseBool,popupConfig:R.object(),showScrollbar:R.bool.def(!0),closeOnMask:R.bool.def(!0),customClose:R.func(),customBack:R.func(),enableDynamicHeight:R.bool.def(!1),dynamicHeightOptions:R.object()},emits:{input:be(),"after-leave":be()},setup(t,{expose:n,emit:e}){const o=t,{injectData:r}=aa(),i=gX(),{isHorizontalScreenOrientation:a,pageFullscreen:l,screenOrientationMode:c}=j4(),{isFullscreen:u}=D4(),{dynamicContentHeightPercent:s,handleScroll:d,reset:p}=bX(o.dynamicHeightOptions);function f(){var V,K,J,te;return(te=(K=o.appendTo)!=null?K:(V=o.popupConfig)==null?void 0:V.appendTo)!=null?te:(J=S.unref(i.popupConfig))==null?void 0:J.appendTo}const b=S.computed(()=>{let V=f();if(u.value&&S.unref(r.fullscreenElement)){let K=S.unref(r.fullscreenElement);typeof K=="string"?K=document.querySelector(K)||void 0:K=K,K&&(V=K)}return V}),v=S.computed(()=>{var V,K,J,te,ie;return(ie=(te=(K=o.showModal)!=null?K:(V=o.popupConfig)==null?void 0:V.showModal)!=null?te:(J=S.unref(i.popupConfig))==null?void 0:J.showModal)!=null?ie:!0});function x(){var K,J;let V=o.position||((K=o.popupConfig)==null?void 0:K.position)||((J=S.unref(i.popupConfig))==null?void 0:J.position);return V||(tr?V="bottom":V="center",V)}const k=S.computed(()=>{let V=x();return V==="bottom"&&a.value&&(V=o.horizontalScreenPosition),V}),_=S.computed(()=>{const V=[];return o.fillBody&&V.push("plv-product-common-popup--fill-body"),k.value&&V.push(`plv-product-common-popup--position-${k.value}`),tr&&V.push("plv-product-common-popup--mobile"),v.value||V.push("plv-product-common-popup--hide-modal"),o.showScrollbar||V.push("plv-product-common-popup--hide-scrollbar"),a.value&&(V.push("plv-product-common-popup--horizontal-screen"),o.horizontalScreenClassName&&V.push(o.horizontalScreenClassName)),l.value&&c.value!==Xp.Horizontal&&V.push("plv-product-common-popup--page-fullscreen"),V}),h=S.computed(()=>{const V={};return b.value&&b.value!==document.body&&(V.position="absolute"),V}),w=S.computed(()=>{const V={};return o.headerHeight&&(V.height=o.headerHeight),V}),m=S.computed(()=>{var K,J;let V=o.width||((K=o.popupConfig)==null?void 0:K.width)||((J=S.unref(i.popupConfig))==null?void 0:J.width);if(V)return V;switch(V="100%",k.value){case"bottom":V="100%";break;case"left":V="375px";break;case"right":V="375px";break;case"center":V="375px";break}return V}),g=S.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=S.computed(()=>{const V=[];return o.backgroundMode&&V.push(`plv-product-common-popup__body--${o.backgroundMode}`),V}),C=S.computed(()=>{const V={};return o.background&&(V.background=o.background),m.value&&(V.width=m.value),g.value&&(V.height=`${g.value}px`),V}),Q=S.ref(!1),P=S.ref(!1),T=S.ref(),E=S.ref();E4(T,b);function D(){return ye(this,null,function*(){yield S.nextTick(),T.value&&c4.openPopper(T.value)})}o.openEvent&&_1(o.openEvent,()=>{D()});function I(V){o.enableDynamicHeight&&d(V)}function A(){Q.value=!0,P.value=!0,D()}function O(){P.value=!1,e("input",!1)}function z(){if(o.customClose){o.customClose({closeBody:O});return}O()}function N(){o.closeOnMask&&z()}function B(){if(o.customBack){o.customBack({closeBody:O});return}O()}function H(){Q.value=!1,e("after-leave"),o.enableDynamicHeight&&p()}function W(){E.value&&(E.value.scrollTop=0)}return S.watch(()=>o.value,()=>{o.value?A():O()}),S.onMounted(()=>{o.value&&A()}),n({resetScroll:W}),{__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:k,wrapClass:_,wrapStyle:h,headerStyle:w,bodyWidth:m,bodyHeight:g,bodyClass:y,bodyStyle:C,wrapVisible:Q,bodyVisible:P,wrapRef:T,innerRef:E,topicPopup:D,onBodyScroll:I,open:A,closeBody:O,close:z,onClickMask:N,back:B,onAfterLeave:H,resetScroll:W,ProductIconClose:aX,ProductIconArrowLeft:oX}}});var wX=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)},xX=[],_X=Nn(yX,wX,xX);const CX=_X.exports,SX=()=>_e(ee({},e8()),{value:R.array(),areaPickerText:R.array(),placeholder:R.string}),kX=()=>ee({input:be()},Kp("areaPickerText"));let n1;const LX=t=>{const n=S.ref([]),{AreaPicker:e,props:o,emit:r}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=t8({props:o}),c=S.ref([]),u=S.computed(()=>o.placeholder),s=S.computed(()=>Hi(o.value,n.value)),d=S.computed(()=>Hi(c.value,n.value)),p=S.computed(()=>{let y=[];return d.value?y=Ui(c.value,n.value):Hi(o.value,n.value)&&(y=Ui(o.value,n.value)),y.map(C=>C.name)}),f=S.computed(()=>p.value.join("/"));S.watch(p,()=>{r("update:areaPickerText",p.value)},{immediate:!0}),S.watch(()=>S.unref(c),()=>{tr||r("input",S.unref(c))});const b={isFinish:s,getAreaDataByValue:g},v=S.ref(!1),x=S.ref(1);function k(){s.value||(x.value+=1),v.value=!0,w()}function _(){v.value=!1,h()}function h(){d.value?r("input",S.unref(c)):c.value=o.value,a()}function w(){l()}function m(){S.unref(d)&&(r("input",S.unref(c)),_())}function g(y){return ye(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(y,C)})}return S.onBeforeMount(()=>ye(null,null,function*(){if(n.value.length===0)if(n1)n.value=n1;else{const y=yield e.loadAreaDataUrl();n1=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:k,closePicker:_,onHiddenPicker:h,onShowPicker:w,onClickConfirm:m}},QX=S.defineComponent({__name:"form-area-picker",props:SX(),emits:kX(),setup(t,{expose:n,emit:e}){const o=t,{$t:r}=gi(),{innerValue:i,pickerVisible:a,openPicker:l,closePicker:c,inputValue:u,inputPlaceholder:s,instance:d,formItemIsError:p,onClickConfirm:f,innerIsFinish:b,refreshKey:v,onHiddenPicker:x}=LX({props:o,emit:e,AreaPicker:Yl});return n(d),{__sfc:!0,props:o,emit:e,$t:r,innerValue:i,pickerVisible:a,openPicker:l,closePicker:c,inputValue:u,inputPlaceholder:s,instance:d,formItemIsError:p,onClickConfirm:f,innerIsFinish:b,refreshKey:v,onHiddenPicker:x,FormInput:n8,ProductIconArrowRight:iX,CommonPopup:CX,PlvAreaPicker:Yl}}});var PX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-form-area-picker",class:{"plv-product-form-area-picker--error":o.formItemIsError}},[e("div",{staticClass:"plv-product-form-area-picker__body",on:{click:o.openPicker}},[e(o.FormInput,{attrs:{value:o.inputValue,placeholder:o.inputPlaceholder,readonly:""},scopedSlots:n._u([{key:"suffix",fn:function(){return[e(o.ProductIconArrowRight,{staticClass:"plv-product-form-area-picker__body__icon"})]},proxy:!0}])})],1),e(o.CommonPopup,{attrs:{closeable:!1,"fill-body":"","show-header":!1},on:{close:o.onHiddenPicker},model:{value:o.pickerVisible,callback:function(r){o.pickerVisible=r},expression:"pickerVisible"}},[e("div",{staticClass:"plv-product-form-area-picker__popup"},[e("div",{staticClass:"plv-product-form-area-picker__header"},[e("div",{staticClass:"plv-product-form-area-picker__header-cancel",on:{click:o.closePicker}},[n._v(" "+n._s(o.$t("common.cancel"))+" ")]),e("div",{staticClass:"plv-product-form-area-picker__header-placeholder"},[n._v(" "+n._s(o.inputPlaceholder)+" ")]),e("div",{staticClass:"plv-product-form-area-picker__header-confirm",class:{"plv-product-form-area-picker__header-confirm--disabled":!o.innerIsFinish},on:{click:o.onClickConfirm}},[n._v(" "+n._s(o.$t("common.confirm"))+" ")])]),e(o.PlvAreaPicker,{key:o.refreshKey,staticClass:"plv-product-form-area-picker__popup-content",model:{value:o.innerValue,callback:function(r){o.innerValue=r},expression:"innerValue"}})],1)])],1)},TX=[],EX=Nn(QX,PX,TX);const OX=EX.exports;var Kl=(t=>(t.Input="input",t.Phone="phone",t.Area="area",t.Address="address",t))(Kl||{});const jX=()=>({formList:R.array(),disabledSubmit:R.bool.def(!1),submitAction:R.func()}),DX=t=>{const{props:n}=t,{$t:e}=gi(),o=S.ref(),r=S.ref([]),i=S.ref([]),a=S.ref({}),l=S.ref({});function c(p){i.value=p,u(p)}S.watch(()=>n.formList,()=>{var p;(p=n.formList)!=null&&p.length&&c(n.formList)},{immediate:!0});function u(p=[]){const f={},b={};p.forEach((v,x)=>ye(null,null,function*(){var h;const k=x.toString();if(v.formType===Kl.Area&&(f.areaPickerValue=[],f.areaPickerText=[],yield S.nextTick(),(h=r.value)!=null&&h[0]&&v.value)){const w=yield r.value[0].getAreaDataByValue(v.value.split("/"));f.areaPickerValue=w.map(m=>m.code),f.areaPickerText=w.map(m=>m.name)}f[k]=v.value||"";const _=[];v.isRequired&&(_.push({type:"string",message:e("addressEdit.error"),required:!0}),v.formType==="area"&&(b.areaPickerValue=[{type:"array",message:e("addressEdit.addressPlaceholder"),required:!0}])),v.formType===Kl.Phone&&_.push({validator:(w,m)=>!m||FK(m)?[]:[e("addressEdit.phoneError")]}),_.length>0&&(b[k]=_)})),a.value=f,l.value=b}function s(){return ye(this,null,function*(){var f;if(!((f=i.value)!=null&&f.length))return;const p={};i.value.forEach((b,v)=>{let x=a.value[v];b.formType===Kl.Area&&(x=`${a.value.areaPickerText.join("/")}`),p[v]=x}),n.submitAction&&(yield n.submitAction(p)),a.value={}})}function d(){return ye(this,null,function*(){if(o.value)try{yield o.value.validateCurrentForm({showErrorMessage:!0}),o.value.submitForm()}catch(p){S.nextTick(()=>{const f=document.querySelector("[data-form-item-error]")||void 0;f&&f.scrollIntoView({behavior:"smooth",block:"center"})})}})}return{formRef:o,areaPickerRef:r,formFieldList:i,formData:a,formRules:l,triggerSubmit:d,submitReceiveForm:s,$t:e}},IX=S.defineComponent({__name:"address-edit",props:jX(),setup(t){const n=t,{formRef:e,areaPickerRef:o,formFieldList:r,formData:i,formRules:a,triggerSubmit:l,submitReceiveForm:c,$t:u}=DX({props:n});return{__sfc:!0,props:n,formRef:e,areaPickerRef:o,formFieldList:r,formData:i,formRules:a,triggerSubmit:l,submitReceiveForm:c,$t:u,FormWrap:qK,FormItem:rX,FormInput:n8,AreaPicker:OX}}});var AX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.formFieldList.length?e("div",{staticClass:"plv-product-address-edit"},[e(o.FormWrap,{ref:"formRef",staticClass:"plv-product-address-edit__form",attrs:{"label-width":84,"form-data":o.formData,"form-rules":o.formRules,"submit-action":o.submitReceiveForm}},[n._l(o.formFieldList,function(r,i){return[r.formType==="area"?[e(o.FormItem,{key:`area-picker-${i}`,attrs:{label:o.$t("addressEdit.choiceAddress"),"form-field":"areaPickerValue"}},[e(o.AreaPicker,{ref:"areaPickerRef",refInFor:!0,attrs:{"area-picker-text":o.formData.areaPickerText,placeholder:o.$t("addressEdit.addressPlaceholder")},on:{"update:areaPickerText":function(a){return n.$set(o.formData,"areaPickerText",a)},"update:area-picker-text":function(a){return n.$set(o.formData,"areaPickerText",a)}},model:{value:o.formData.areaPickerValue,callback:function(a){n.$set(o.formData,"areaPickerValue",a)},expression:"formData.areaPickerValue"}})],1)]:r.formType==="address"?[e(o.FormItem,{key:`area-textarea-${i}`,staticClass:"plv-product-address-edit__form-address",attrs:{label:o.$t("addressEdit.addressDetail"),"form-field":`${i}`}},[e(o.FormInput,{attrs:{placeholder:r.placeholder,"use-textarea":""},model:{value:o.formData[i],callback:function(a){n.$set(o.formData,i,a)},expression:"formData[index]"}})],1)]:e(o.FormItem,{key:`input-${i}`,attrs:{label:r.title,"form-field":`${i}`}},[e(o.FormInput,{attrs:{placeholder:r.placeholder},model:{value:o.formData[i],callback:function(a){n.$set(o.formData,i,a)},expression:"formData[index]"}})],1)]}),e("div",{staticClass:"plv-product-address-edit__footer"},[e("button",{staticClass:"plv-product-address-edit__submit-btn",class:{"plv-product-address-edit__submit-btn--disabled":n.disabledSubmit},attrs:{disabled:n.disabledSubmit},on:{click:o.triggerSubmit}},[n._v(" "+n._s(o.$t("addressEdit.submit"))+" ")])])],2)],1):n._e()},MX=[],RX=Nn(IX,AX,MX);return RX.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-edit]","[version: 1.13.0-rc-20260423.2]","[buildTime: 2026-04-23 05:57:31]");
2036
+ `);const e8=()=>({size:R.enum(),theme:R.enum(),validateForm:R.bool.def(!0)}),lX=t=>{const{props:n,classPrefix:e}=t,o=$4();return{commonClassNames:S.computed(()=>{const i=[],a=n.size;a&&a!==K4.Default&&i.push(`${e}--size-${a}`);const l=n.theme||(o==null?void 0:o.theme);return S.unref(l)&&i.push(`${e}--theme-${l}`),i})}},t8=t=>{const{props:n}=t,e=VK();function o(){return ye(this,null,function*(){yield e==null?void 0:e.validateFormItem()})}function r(){return ye(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=S.computed(()=>!n.validateForm||!e?!1:S.unref(e.formItemIsError));return{validateCurrentFormItem:o,blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}},cX=()=>_e(ee({},e8()),{readonly:R.bool.def(!1),disabled:R.bool.def(!1),value:R.oneOfType([String,Number]).def(""),type:R.string.def("text"),placeholder:R.string.def(""),maxlength:R.number.def(1/0),showWordLimit:R.bool.def(!1),suffixText:R.string.def(""),clearable:R.bool.def(!1),useTextarea:R.bool.def(!1),rows:R.number.def(4),inputTitle:R.string.def(""),inputTitleWidth:R.number.def(void 0)}),uX=()=>({input:be(),blur:be(),focus:be(),enter:be()}),pX=t=>{const{emit:n,props:e,classPrefix:o}=t,{blurToValidateItem:r,focusToRemoveError:i,formItemIsError:a}=t8({props:e}),{commonClassNames:l}=lX({props:e,classPrefix:o}),c=S.ref(),u=S.ref(!1),s=S.computed(()=>{const g=[...S.unref(l)];return S.unref(a)&&g.push(`${o}--error`),e.useTextarea&&g.push(`${o}--textarea`),g}),d=S.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:k}=Gl();function _(){const g=k();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}},dX=S.defineComponent({__name:"form-input",props:cX(),emits:uX(),setup(t,{expose:n,emit:e}){const o=t,{value:r,type:i,placeholder:a,maxlength:l,inputTitle:c}=bs(o),{inputRef:u,inputClassNames:s,onInputChanged:d,onInputBlur:p,onInputFocus:f,formInstance:b,wordLimitText:v,clearValue:x,isFocus:k}=pX({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:k,ProductIconCloseRoundFill:sX}}});var fX=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)])},hX=[],mX=Nn(dX,fX,hX);const n8=mX.exports,r8=["bottom","left","right","center"],vX=Symbol("plv-product-common-popup"),gX=()=>S.inject(vX,{}),bX=t=>{const{initHeightRatio:n=.7,maxHeightRatio:e=.85}=t||{},o=S.ref(0),r=S.ref(0),i=S.ref(null),a=S.computed(()=>Math.min(n+r.value,e)),l=S.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}},yX=S.defineComponent({__name:"index",props:{value:R.bool.def(!1),title:R.string.def(""),backgroundMode:R.oneOf(["bg1"]),background:R.string,closeable:R.bool.def(!0),fillBody:R.bool.def(!1),backable:R.bool.def(!1),headerHeight:R.string.def("52px"),contentHeightPercent:R.oneOfType([Boolean,Number]).def(.7),showHeader:R.bool.def(!0),openEvent:R.looseString,position:R.oneOf(r8),horizontalScreenPosition:R.oneOf(r8).def("right"),horizontalScreenClassName:R.string,width:R.looseString,appendTo:R.looseElement,showModal:R.looseBool,popupConfig:R.object(),showScrollbar:R.bool.def(!0),closeOnMask:R.bool.def(!0),customClose:R.func(),customBack:R.func(),enableDynamicHeight:R.bool.def(!1),dynamicHeightOptions:R.object()},emits:{input:be(),"after-leave":be()},setup(t,{expose:n,emit:e}){const o=t,{injectData:r}=aa(),i=gX(),{isHorizontalScreenOrientation:a,pageFullscreen:l,screenOrientationMode:c}=j4(),{isFullscreen:u}=D4(),{dynamicContentHeightPercent:s,handleScroll:d,reset:p}=bX(o.dynamicHeightOptions);function f(){var V,K,J,te;return(te=(K=o.appendTo)!=null?K:(V=o.popupConfig)==null?void 0:V.appendTo)!=null?te:(J=S.unref(i.popupConfig))==null?void 0:J.appendTo}const b=S.computed(()=>{let V=f();if(u.value&&S.unref(r.fullscreenElement)){let K=S.unref(r.fullscreenElement);typeof K=="string"?K=document.querySelector(K)||void 0:K=K,K&&(V=K)}return V}),v=S.computed(()=>{var V,K,J,te,ie;return(ie=(te=(K=o.showModal)!=null?K:(V=o.popupConfig)==null?void 0:V.showModal)!=null?te:(J=S.unref(i.popupConfig))==null?void 0:J.showModal)!=null?ie:!0});function x(){var K,J;let V=o.position||((K=o.popupConfig)==null?void 0:K.position)||((J=S.unref(i.popupConfig))==null?void 0:J.position);return V||(tr?V="bottom":V="center",V)}const k=S.computed(()=>{let V=x();return V==="bottom"&&a.value&&(V=o.horizontalScreenPosition),V}),_=S.computed(()=>{const V=[];return o.fillBody&&V.push("plv-product-common-popup--fill-body"),k.value&&V.push(`plv-product-common-popup--position-${k.value}`),tr&&V.push("plv-product-common-popup--mobile"),v.value||V.push("plv-product-common-popup--hide-modal"),o.showScrollbar||V.push("plv-product-common-popup--hide-scrollbar"),a.value&&(V.push("plv-product-common-popup--horizontal-screen"),o.horizontalScreenClassName&&V.push(o.horizontalScreenClassName)),l.value&&c.value!==Xp.Horizontal&&V.push("plv-product-common-popup--page-fullscreen"),V}),h=S.computed(()=>{const V={};return b.value&&b.value!==document.body&&(V.position="absolute"),V}),w=S.computed(()=>{const V={};return o.headerHeight&&(V.height=o.headerHeight),V}),m=S.computed(()=>{var K,J;let V=o.width||((K=o.popupConfig)==null?void 0:K.width)||((J=S.unref(i.popupConfig))==null?void 0:J.width);if(V)return V;switch(V="100%",k.value){case"bottom":V="100%";break;case"left":V="375px";break;case"right":V="375px";break;case"center":V="375px";break}return V}),g=S.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=S.computed(()=>{const V=[];return o.backgroundMode&&V.push(`plv-product-common-popup__body--${o.backgroundMode}`),V}),C=S.computed(()=>{const V={};return o.background&&(V.background=o.background),m.value&&(V.width=m.value),g.value&&(V.height=`${g.value}px`),V}),Q=S.ref(!1),P=S.ref(!1),T=S.ref(),E=S.ref();E4(T,b);function D(){return ye(this,null,function*(){yield S.nextTick(),T.value&&c4.openPopper(T.value)})}o.openEvent&&_1(o.openEvent,()=>{D()});function I(V){o.enableDynamicHeight&&d(V)}function A(){Q.value=!0,P.value=!0,D()}function O(){P.value=!1,e("input",!1)}function z(){if(o.customClose){o.customClose({closeBody:O});return}O()}function N(){o.closeOnMask&&z()}function B(){if(o.customBack){o.customBack({closeBody:O});return}O()}function H(){Q.value=!1,e("after-leave"),o.enableDynamicHeight&&p()}function W(){E.value&&(E.value.scrollTop=0)}return S.watch(()=>o.value,()=>{o.value?A():O()}),S.onMounted(()=>{o.value&&A()}),n({resetScroll:W}),{__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:k,wrapClass:_,wrapStyle:h,headerStyle:w,bodyWidth:m,bodyHeight:g,bodyClass:y,bodyStyle:C,wrapVisible:Q,bodyVisible:P,wrapRef:T,innerRef:E,topicPopup:D,onBodyScroll:I,open:A,closeBody:O,close:z,onClickMask:N,back:B,onAfterLeave:H,resetScroll:W,ProductIconClose:aX,ProductIconArrowLeft:oX}}});var wX=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)},xX=[],_X=Nn(yX,wX,xX);const CX=_X.exports,SX=()=>_e(ee({},e8()),{value:R.array(),areaPickerText:R.array(),placeholder:R.string}),kX=()=>ee({input:be()},Kp("areaPickerText"));let n1;const LX=t=>{const n=S.ref([]),{AreaPicker:e,props:o,emit:r}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=t8({props:o}),c=S.ref([]),u=S.computed(()=>o.placeholder),s=S.computed(()=>Hi(o.value,n.value)),d=S.computed(()=>Hi(c.value,n.value)),p=S.computed(()=>{let y=[];return d.value?y=Ui(c.value,n.value):Hi(o.value,n.value)&&(y=Ui(o.value,n.value)),y.map(C=>C.name)}),f=S.computed(()=>p.value.join("/"));S.watch(p,()=>{r("update:areaPickerText",p.value)},{immediate:!0}),S.watch(()=>S.unref(c),()=>{tr||r("input",S.unref(c))});const b={isFinish:s,getAreaDataByValue:g},v=S.ref(!1),x=S.ref(1);function k(){s.value||(x.value+=1),v.value=!0,w()}function _(){v.value=!1,h()}function h(){d.value?r("input",S.unref(c)):c.value=o.value,a()}function w(){l()}function m(){S.unref(d)&&(r("input",S.unref(c)),_())}function g(y){return ye(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(y,C)})}return S.onBeforeMount(()=>ye(null,null,function*(){if(n.value.length===0)if(n1)n.value=n1;else{const y=yield e.loadAreaDataUrl();n1=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:k,closePicker:_,onHiddenPicker:h,onShowPicker:w,onClickConfirm:m}},QX=S.defineComponent({__name:"form-area-picker",props:SX(),emits:kX(),setup(t,{expose:n,emit:e}){const o=t,{$t:r}=gi(),{innerValue:i,pickerVisible:a,openPicker:l,closePicker:c,inputValue:u,inputPlaceholder:s,instance:d,formItemIsError:p,onClickConfirm:f,innerIsFinish:b,refreshKey:v,onHiddenPicker:x}=LX({props:o,emit:e,AreaPicker:Yl});return n(d),{__sfc:!0,props:o,emit:e,$t:r,innerValue:i,pickerVisible:a,openPicker:l,closePicker:c,inputValue:u,inputPlaceholder:s,instance:d,formItemIsError:p,onClickConfirm:f,innerIsFinish:b,refreshKey:v,onHiddenPicker:x,FormInput:n8,ProductIconArrowRight:iX,CommonPopup:CX,PlvAreaPicker:Yl}}});var PX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return e("div",{staticClass:"plv-product-form-area-picker",class:{"plv-product-form-area-picker--error":o.formItemIsError}},[e("div",{staticClass:"plv-product-form-area-picker__body",on:{click:o.openPicker}},[e(o.FormInput,{attrs:{value:o.inputValue,placeholder:o.inputPlaceholder,readonly:""},scopedSlots:n._u([{key:"suffix",fn:function(){return[e(o.ProductIconArrowRight,{staticClass:"plv-product-form-area-picker__body__icon"})]},proxy:!0}])})],1),e(o.CommonPopup,{attrs:{closeable:!1,"fill-body":"","show-header":!1},on:{close:o.onHiddenPicker},model:{value:o.pickerVisible,callback:function(r){o.pickerVisible=r},expression:"pickerVisible"}},[e("div",{staticClass:"plv-product-form-area-picker__popup"},[e("div",{staticClass:"plv-product-form-area-picker__header"},[e("div",{staticClass:"plv-product-form-area-picker__header-cancel",on:{click:o.closePicker}},[n._v(" "+n._s(o.$t("common.cancel"))+" ")]),e("div",{staticClass:"plv-product-form-area-picker__header-placeholder"},[n._v(" "+n._s(o.inputPlaceholder)+" ")]),e("div",{staticClass:"plv-product-form-area-picker__header-confirm",class:{"plv-product-form-area-picker__header-confirm--disabled":!o.innerIsFinish},on:{click:o.onClickConfirm}},[n._v(" "+n._s(o.$t("common.confirm"))+" ")])]),e(o.PlvAreaPicker,{key:o.refreshKey,staticClass:"plv-product-form-area-picker__popup-content",model:{value:o.innerValue,callback:function(r){o.innerValue=r},expression:"innerValue"}})],1)])],1)},TX=[],EX=Nn(QX,PX,TX);const OX=EX.exports;var Kl=(t=>(t.Input="input",t.Phone="phone",t.Area="area",t.Address="address",t))(Kl||{});const jX=()=>({formList:R.array(),disabledSubmit:R.bool.def(!1),submitAction:R.func()}),DX=t=>{const{props:n}=t,{$t:e}=gi(),o=S.ref(),r=S.ref([]),i=S.ref([]),a=S.ref({}),l=S.ref({});function c(p){i.value=p,u(p)}S.watch(()=>n.formList,()=>{var p;(p=n.formList)!=null&&p.length&&c(n.formList)},{immediate:!0});function u(p=[]){const f={},b={};p.forEach((v,x)=>ye(null,null,function*(){var h;const k=x.toString();if(v.formType===Kl.Area&&(f.areaPickerValue=[],f.areaPickerText=[],yield S.nextTick(),(h=r.value)!=null&&h[0]&&v.value)){const w=yield r.value[0].getAreaDataByValue(v.value.split("/"));f.areaPickerValue=w.map(m=>m.code),f.areaPickerText=w.map(m=>m.name)}f[k]=v.value||"";const _=[];v.isRequired&&(_.push({type:"string",message:e("addressEdit.error"),required:!0}),v.formType==="area"&&(b.areaPickerValue=[{type:"array",message:e("addressEdit.addressPlaceholder"),required:!0}])),v.formType===Kl.Phone&&_.push({validator:(w,m)=>!m||FK(m)?[]:[e("addressEdit.phoneError")]}),_.length>0&&(b[k]=_)})),a.value=f,l.value=b}function s(){return ye(this,null,function*(){var f;if(!((f=i.value)!=null&&f.length))return;const p={};i.value.forEach((b,v)=>{let x=a.value[v];b.formType===Kl.Area&&(x=`${a.value.areaPickerText.join("/")}`),p[v]=x}),n.submitAction&&(yield n.submitAction(p)),a.value={}})}function d(){return ye(this,null,function*(){if(o.value)try{yield o.value.validateCurrentForm({showErrorMessage:!0}),o.value.submitForm()}catch(p){S.nextTick(()=>{const f=document.querySelector("[data-form-item-error]")||void 0;f&&f.scrollIntoView({behavior:"smooth",block:"center"})})}})}return{formRef:o,areaPickerRef:r,formFieldList:i,formData:a,formRules:l,triggerSubmit:d,submitReceiveForm:s,$t:e}},IX=S.defineComponent({__name:"address-edit",props:jX(),setup(t){const n=t,{formRef:e,areaPickerRef:o,formFieldList:r,formData:i,formRules:a,triggerSubmit:l,submitReceiveForm:c,$t:u}=DX({props:n});return{__sfc:!0,props:n,formRef:e,areaPickerRef:o,formFieldList:r,formData:i,formRules:a,triggerSubmit:l,submitReceiveForm:c,$t:u,FormWrap:qK,FormItem:rX,FormInput:n8,AreaPicker:OX}}});var AX=function(){var n=this,e=n._self._c,o=n._self._setupProxy;return o.formFieldList.length?e("div",{staticClass:"plv-product-address-edit"},[e(o.FormWrap,{ref:"formRef",staticClass:"plv-product-address-edit__form",attrs:{"label-width":84,"form-data":o.formData,"form-rules":o.formRules,"submit-action":o.submitReceiveForm}},[n._l(o.formFieldList,function(r,i){return[r.formType==="area"?[e(o.FormItem,{key:`area-picker-${i}`,attrs:{label:o.$t("addressEdit.choiceAddress"),"form-field":"areaPickerValue"}},[e(o.AreaPicker,{ref:"areaPickerRef",refInFor:!0,attrs:{"area-picker-text":o.formData.areaPickerText,placeholder:o.$t("addressEdit.addressPlaceholder")},on:{"update:areaPickerText":function(a){return n.$set(o.formData,"areaPickerText",a)},"update:area-picker-text":function(a){return n.$set(o.formData,"areaPickerText",a)}},model:{value:o.formData.areaPickerValue,callback:function(a){n.$set(o.formData,"areaPickerValue",a)},expression:"formData.areaPickerValue"}})],1)]:r.formType==="address"?[e(o.FormItem,{key:`area-textarea-${i}`,staticClass:"plv-product-address-edit__form-address",attrs:{label:o.$t("addressEdit.addressDetail"),"form-field":`${i}`}},[e(o.FormInput,{attrs:{placeholder:r.placeholder,"use-textarea":""},model:{value:o.formData[i],callback:function(a){n.$set(o.formData,i,a)},expression:"formData[index]"}})],1)]:e(o.FormItem,{key:`input-${i}`,attrs:{label:r.title,"form-field":`${i}`}},[e(o.FormInput,{attrs:{placeholder:r.placeholder},model:{value:o.formData[i],callback:function(a){n.$set(o.formData,i,a)},expression:"formData[index]"}})],1)]}),e("div",{staticClass:"plv-product-address-edit__footer"},[e("button",{staticClass:"plv-product-address-edit__submit-btn",class:{"plv-product-address-edit__submit-btn--disabled":n.disabledSubmit},attrs:{disabled:n.disabledSubmit},on:{click:o.triggerSubmit}},[n._v(" "+n._s(o.$t("addressEdit.submit"))+" ")])])],2)],1):n._e()},MX=[],RX=Nn(IX,AX,MX);return RX.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-edit]","[version: 1.13.0]","[buildTime: 2026-04-24 07:47:21]");
@@ -1140,4 +1140,4 @@ ${En(r)}`),i}})}function X2(e){const t=Object.keys(e),r=t.filter(n=>{var o;retur
1140
1140
  effect: tooltipEffect,
1141
1141
  popperOffset: tooltipOffset,
1142
1142
  tooltipClass: 'pwc-menu-item__tooltip',
1143
- }`}],staticClass:"pwc-menu-item__content",class:{"is-active":r.isActive&&!r.menuItemProps.iconMode,"is-icon-mode":r.menuItemProps.iconMode},on:{click:r.onClickItem}},[r.hasSlot("icon")||r.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[r.hasSlot("icon")?[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("icon",{isActive:r.isActive})}})]:[t(r.menuIcon,{tag:"component"})]],2):e._e(),r.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!r.menuProps.collapsed||r.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[r.hasSlot("title")?[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("title")}})]:[e._v(" "+e._s(r.menuItemProps.title)+" ")]],2)])},lF=[],cF=B(aF,sF,lF);const pF=cF.exports,uF=c.defineComponent({__name:"menu-item",props:VV(),setup(e){const t=e,{receiveRouterSlotData:r}=oF({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:r,MenuItemContent:pF}}});var dF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",r.receiveRouterSlotData(i),!1),[t(r.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(r.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(r.MenuItemContent)],1)},fF=[],mF=B(uF,dF,fF);const hF=mF.exports,gF={};var vF=function(){var e=this;return e._self._c,e._m(0)},wF=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],bF=B(gF,vF,wF);const _F=bF.exports;G("PwcMenu",HV),G("PwcSubMenu",nF),G("PwcMenuItem",hF),G("PwcMenuDivider",_F);const xF=12,yF=16,kn={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function v2(e,t){const r=kn[e];let i=yF;for(let n=0;n<t;n++)i+=r[n].height+xF;return i}function w2(e){const t=kn[e];for(let r=0;r<t.length;r++)t[r].offsetRef.value=v2(e,r)}const Go={add(e,t,r){const i=kn[e],n=i.length,o={id:t,height:0,offsetRef:r};i.push(o),r.value=v2(e,n)},updateHeight(e,t,r){const i=kn[e].find(n=>n.id===t);i&&i.height!==r&&(i.height=r,w2(e))},remove(e,t){const r=kn[e],i=r.findIndex(n=>n.id===t);i!==-1&&(r.splice(i,1),w2(e))}};let CF=0;const kF=e=>{const{position:t,duration:r}=e,{destroyCurrentInstance:i}=rn(),n=++CF,o=c.ref(!1),a=c.ref(0);Go.add(t,n,a);const{startTimeout:s,closeTimeout:l}=Fr(()=>{u()},r);function p(){o.value=!0,r>0&&s()}function u(){o.value=!1,l()}function d(){Go.remove(t,n),i()}function m(f){Go.updateHeight(t,n,f)}return c.onBeforeUnmount(()=>{Go.remove(t,n)}),{visible:o,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(yt.Info);const LF=()=>Z(R(R({},vs()),x0()),{trigger:w.oneOf(go).def("click"),placement:w.oneOf(Ki).def("top"),feedbackType:w.enum().def(yt.Warning),concise:w.bool.def(!1)}),SF=()=>Z(R(R({},de()),nu()),{show:U(),hide:U()}),PF=c.defineComponent({__name:"popconfirm",props:LF(),emits:SF(),setup(e,{emit:t}){const r=e,{modelValue:i,updateModelValue:n}=ce(r),{buttonData:o,onClickConfirm:a,onClickCancel:s}=au({props:r,emit:t,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||n(!0),t("show")}function p(){i.value&&n(!1),t("hide")}const u=c.computed(()=>{if(!r.concise)return r.feedbackType}),d=c.ref();return{__sfc:!0,props:r,emit:t,modelValue:i,updateModelValue:n,buttonData:o,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:y0}}});var TF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":r.popoverFeedbackType},on:{show:r.onShow,hide:r.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[r.buttonData.showCancelButton?t(r.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:r.onClickCancel}},"pwc-button",r.buttonData.cancelButtonProps,!1)):e._e(),r.buttonData.showConfirmButton?t(r.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:r.onClickConfirm}},"pwc-button",r.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",r.props,!1))},QF=[],EF=B(PF,TF,QF);const AF=EF.exports;G("PwcPopconfirm",AF);var Ke=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(Ke||{});function MF(e,t){const r=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return t})());return c.watch(r,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(n){}},{deep:!0}),r}const IF=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),zF=()=>({"resize-start":U(),resize:U(),"resize-end":U()}),DF=e=>{const{props:t,emit:r}=e,i=c.ref(),n=c.ref(!1),o=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?MF(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[Ke.Top,Ke.Bottom].includes(h)?!!t.height:[Ke.Left,Ke.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),n.value=!0,o.value=b,a.value={x:h.clientX,y:h.clientY},s.value=R({},p.value),r("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!n.value||!o.value)return;const b=h.clientX-a.value.x,v=h.clientY-a.value.y;let _=s.value.width,x=s.value.height;switch(o.value){case Ke.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case Ke.Bottom:x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case Ke.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case Ke.Top:x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case Ke.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:x},r("resize",{width:_,height:x,direction:o.value,event:h})},g=h=>{if(!n.value||!o.value)return;n.value=!1;const b=o.value;o.value=null,r("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",g)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g)}),{boxStyle:u,containerRef:i,currentSize:p,isResizing:n,showHandleControl:d,handleMouseDown:m}};IF(),zF();const RF=()=>({title:w.looseString,titleTooltip:w.looseString}),OF=c.defineComponent({__name:"section",props:RF(),setup(e){const t=e,{hasSlot:r,slotRender:i}=he(),n=c.computed(()=>r("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:r,slotRender:i,hasTitleTooltip:n,PwcTooltip:wo,renderSlot:it}}});var $F=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[r.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),r.hasTitleTooltip?[t(r.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([r.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},BF=[],VF=B(OF,$F,BF);const FF=VF.exports;G("PwcSection",FF);const jF=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,buttonSize:w.number.def(14)}),NF=()=>Z(R({},de()),{change:U()}),b2=Symbol("slider-inject-key"),UF=e=>{const{props:t,emit:r}=e,{modelValue:i,updateModelValue:n}=ce(t,{outSideUpdate:()=>{k()}}),o=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=De(p),d=c.ref(),m=c.ref(),f=c.ref(),g=c.computed(()=>Math.min(o.value,a.value)),h=c.computed(()=>Math.max(o.value,a.value)),b=c.computed(()=>t.range?`${100*(h.value-g.value)/(t.max-t.min)}%`:`${100*(o.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(g.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>Z(R({},x.value),{width:b.value,left:v.value})),x=c.computed(()=>{const M={};return t.sliderBarHeight&&(M.height=`${t.sliderBarHeight}px`,M.borderRadius=`${t.sliderBarHeight/2}px`),M}),C=c.computed(()=>{const M=[],A=t.max-t.min,E=z=>{M.includes(z)||M.push(z)};if(t.step&&t.showStops){const z=A/t.step,I=t.step/A;for(let D=1;D<z;D++){const O=Math.round(D*I*100);E(O)}}return t.marks&&Object.keys(t.marks).forEach(z=>{const I=Number(z);if(I>=t.min&&I<=t.max){const D=(I-t.min)/A,O=Math.round(D*100);E(O)}}),M}),y=c.computed(()=>{const M=[],A=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const z=Number(E),I=t.marks[z];let D="",O={};if(typeof I=="string"?D=I:(D=I.label,O=I.style||{}),z>=t.min&&z<=t.max){const $=(z-t.min)/A,V=Math.round($*100);M.push({label:D,style:O,left:V,value:z})}}),M});function k(){t.range?Array.isArray(i.value)?(o.value=Math.max(t.min,i.value[0]),a.value=Math.min(t.max,i.value[1])):(o.value=t.min,a.value=t.max):typeof i.value!="number"||isNaN(i.value)?o.value=t.min:o.value=Math.min(t.max,Math.max(t.min,i.value))}function P(){let M=i.value;t.range?M=[Math.floor(g.value),Math.floor(h.value)]:M=Math.floor(o.value),M!==i.value&&(l.value=i.value,n(M))}function L(){c.nextTick(()=>{r("change",t.range?[g.value,h.value]:i.value)})}function T(M){var z;if(!t.range){(z=m.value)==null||z.setPosition(M);return}let A;const E=t.min+M*(t.max-t.min)/100;Math.abs(g.value-E)<Math.abs(h.value-E)?A=o.value<a.value?m.value:f.value:A=o.value>a.value?m.value:f.value,A==null||A.setPosition(M)}function Q(M){var A,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const z=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;T((M.clientY-z)/u.value*100)}else{const z=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;T((M.clientX-z)/u.value*100)}L()}}function S(M){T(M.left),L()}return c.onMounted(()=>{k()}),c.provide(b2,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:i,firstValue:o,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:x,stops:C,markList:y,onSliderClick:Q,onClickMark:S,emitInnerInput:P}},_2=()=>c.inject(b2),WF=()=>({value:w.number}),HF=()=>({change:U()}),ZF=e=>{const{props:t,emit:r}=e,{sliderProps:i,sliderWidth:n,emitChange:o}=_2(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(t.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function g(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function h(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function v(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=g(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(g(L).clientX-p.value)/n.value*100;d.value=u.value+T,P(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(P(d.value),o())},0)}function C(L){i.disabled||ue||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function y(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{y()});function k(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function P(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;r("change",k(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:P}},qF={name:"PlvSliderButton"},YF=c.defineComponent(Z(R({},qF),{props:WF(),emits:HF(),setup(e,{expose:t,emit:r}){const i=e,n=_2(),{sliderProps:o}=n,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=ZF({props:i,emit:r}),f=c.computed(()=>s.value||n.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:i,emit:r,sliderInject:n,sliderProps:o,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var GF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:r.btnStyle,on:{mouseenter:r.handleMouseEnter,mouseleave:r.handleMouseLeave,mousedown:r.onButtonDown,touchstart:r.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",r.hovering||r.dragging?"pwc-slider__button__inner--hover":"",r.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${r.sliderProps.buttonSize}px`,height:`${r.sliderProps.buttonSize}px`}})])},KF=[],XF=B(YF,GF,KF);const JF=XF.exports,ej=c.defineComponent({__name:"slider",props:jF(),emits:NF(),setup(e,{emit:t}){const r=e,{firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:h}=UF({props:r,emit:t});function b(_){i.value=_,h()}function v(_){n.value=_,h()}return{__sfc:!0,props:r,emit:t,firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:JF}}});var tj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",r.props.disabled?"pwc-slider__runway--disabled":""],style:r.runwayStyle},[r.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:r.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${r.props.hotAreaHeight}px`},on:{click:r.onSliderClick}}),e._l(r.stops,function(i){return t("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),r.props.showSliderButton?t(r.SliderButton,{ref:"button1Ref",attrs:{value:r.firstValue},on:{change:r.onFirstValueChange}}):e._e(),r.props.range&&r.props.showSliderButton?t(r.SliderButton,{ref:"button2Ref",attrs:{value:r.secondValue},on:{change:r.onSecondValueChange}}):e._e()],2),r.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(r.markList,function(i,n){return t("div",{key:`mark-${n}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(o){return r.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},rj=[],ij=B(ej,tj,rj);const nj=ij.exports;G("PwcSlider",nj);const oj=["horizontal","vertical"],aj=()=>({direction:w.oneOf(oj).def("horizontal"),lazy:w.bool.def(!1)}),sj=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),x2=Symbol("SPLITTER_INJECT_KEY"),lj=c.defineComponent({__name:"splitter",props:aj(),setup(e){const t=e,r=c.ref(),i=c.ref([]),n=c.ref([]),{width:o,height:a}=De(r),s=c.computed(()=>t.direction==="horizontal"),l=()=>{if(!r.value||i.value.length===0)return;const k=s.value?r.value.clientWidth:r.value.clientHeight;let P=0;const L=i.value.map(S=>S.props.initialSize!==void 0?(P+=S.props.initialSize,!0):!1),T=L.filter(S=>!S).length,Q=T>0?(k-P)/T:0;n.value=i.value.map((S,M)=>L[M]?S.props.initialSize:Q)};c.watch(()=>{const k=s.value?o.value:a.value;return`${t.direction}-${k}`},(k,P)=>{const L=Number(k.split("-").pop()),T=P?Number(P.split("-").pop()):0;if(L===0)return;if(n.value.length===0||n.value.every(M=>M===0)){l();return}if(f.value||T===0||T===L)return;const Q=n.value.reduce((M,A)=>M+A,0);if(Q===0)return;const S=n.value.map(M=>M/Q);n.value=S.map((M,A)=>{var D,O;const E=i.value[A],z=(D=E==null?void 0:E.props.min)!=null?D:0,I=(O=E==null?void 0:E.props.max)!=null?O:1/0;return Math.max(z,Math.min(I,M*L))})});const p=k=>{i.value.push(k),c.nextTick(l)},u=k=>{const P=i.value.findIndex(L=>L.id===k);P>=0&&(i.value.splice(P,1),n.value.splice(P,1))},d=k=>{const P=i.value.findIndex(T=>T.id===k),L=n.value[P];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=k=>{var P;return((P=i.value[i.value.length-1])==null?void 0:P.id)===k},f=c.ref(!1),g=c.ref(""),h=c.ref(0),b=c.ref([]),v=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!t.lazy)return-1;const k=i.value.findIndex(Q=>Q.id===g.value);if(k<0)return-1;let P=0;for(let Q=0;Q<=k;Q++)P+=(T=(L=v.value[Q])!=null?L:n.value[Q])!=null?T:0;return P}),x=(k,P)=>{P.preventDefault(),f.value=!0,g.value=k,h.value=s.value?P.clientX:P.clientY,b.value=[...n.value],v.value=[...n.value],document.addEventListener("mousemove",C),document.addEventListener("mouseup",y)},C=k=>{var O,$,V,F;if(!f.value)return;const P=(s.value?k.clientX:k.clientY)-h.value,L=i.value.findIndex(N=>N.id===g.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],S=b.value[L]+b.value[L+1],M=(O=T.props.min)!=null?O:0,A=($=T.props.max)!=null?$:1/0,E=(V=Q.props.min)!=null?V:0,z=(F=Q.props.max)!=null?F:1/0;let I=Math.max(M,Math.min(A,b.value[L]+P)),D=S-I;if(D<E&&(D=E,I=S-D),D>z&&(D=z,I=S-D),I=Math.max(M,Math.min(A,I)),t.lazy){const N=[...b.value];N[L]=I,N[L+1]=D,v.value=N}else{const N=[...n.value];N[L]=I,N[L+1]=D,n.value=N}},y=()=>{t.lazy&&(n.value=[...v.value]),f.value=!1,g.value="",document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",y)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",y)}),c.provide(x2,{direction:c.computed(()=>t.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:t,containerRef:r,panels:i,sizes:n,containerWidth:o,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:g,startPos:h,startSizes:b,pendingSizes:v,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:C,onMouseUp:y}}});var cj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${r.props.direction}`,{"is-dragging":r.isDragging}]},[e._t("default"),r.isDragging&&r.props.lazy&&r.lazyPreviewPos>=0?t("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${r.props.direction}`],style:r.isHorizontal?{left:`${r.lazyPreviewPos}px`}:{top:`${r.lazyPreviewPos}px`}}):e._e()],2)},pj=[],uj=B(lj,cj,pj);const dj=uj.exports,fj=c.defineComponent({__name:"splitter-panel",props:sj(),setup(e){const t=e,r=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(x2),n=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),o=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(r))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(r))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(r,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:r,props:t})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(r)}),{__sfc:!0,props:t,panelId:r,splitter:i,direction:n,isLast:o,panelStyle:a,handleDividerMouseDown:s}}});var mj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-splitter-panel",style:r.panelStyle},[t("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),r.isLast?e._e():t("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${r.direction}`],on:{mousedown:r.handleDividerMouseDown}},[t("span",{staticClass:"pwc-splitter__divider-bar"})])])},hj=[],gj=B(fj,mj,hj);const vj=gj.exports;G("PwcSplitter",dj),G("PwcSplitterPanel",vj);const wj=()=>({max:w.number.def(3)}),bj=()=>({label:w.looseString,disabled:w.bool.def(!1)}),_j=()=>({click:U()}),y2=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),xj=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(y2,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:x1,PwcDropdown:qI,PwcDropdownMenu:YI}}});var yj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(r.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(r.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(r.PwcIconMore)],1)])],1)},Cj=[],kj=B(xj,yj,Cj);const Lj=kj.exports,Sj=c.defineComponent({props:wj(),setup(e){const t=c.useSlots(),r=c.inject(ol,void 0),i=$e(8),n=c.ref();function o(){if(r)return r.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return De(n,({width:a})=>{const s=o();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=o();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=t.default)==null?void 0:m.call(t);if(!a)return c.h("span",{},"-");let s=0;const l=[],p=[],u=a.reduce((f,g)=>Se.isCommentVNode(g)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),a.forEach((f,g)=>{if(u<=e.max||s<e.max-1){l.push(f);let h=!0;f.text&&f.text===" "&&(h=!1),h&&s++}else p.push(f)}),p.length>0&&l.push(c.h(Lj,{},Zi()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:n},l)])}}}),Pj=c.defineComponent({__name:"table-operation-item",props:bj(),emits:_j(),setup(e,{emit:t}){const r=e,i=c.useAttrs(),n=c.inject(y2,void 0);function o(s){r.disabled||t("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:r,emit:t,attrs:i,dropdownInject:n,onClickItem:o,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:GI}}});var Tj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.dropdownInject?t(r.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:r.dropdownItemTag},nativeOn:{click:function(i){return r.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(r.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return r.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},Qj=[],Ej=B(Pj,Tj,Qj);const Aj=Ej.exports;G("PwcTableOperation",Sj),G("PwcTableOperationItem",Aj);const Mj=["line","rounded","text"],Ij=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(Mj).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),zj=()=>Z(R({},de()),{change:U()}),Dj=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Ql=Symbol("tabs-inject-key"),Rj=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:i}=c.inject(Ql),{$t:n}=J(),o=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=wt();function p(){return H(this,null,function*(){if(yield c.nextTick(),!o.value||ue)return;const d=o.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;o.value.clientHeight>=m*1.5||o.value.scrollWidth>o.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:i,$t:n,listRef:o,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Xt,PwcIconUp:is,renderSlot:it}}});var Oj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(i){return t("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(n){return r.onClickItem(i)}}},[i.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):t("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},$j=[],Bj=B(Rj,Oj,$j);const Vj=Bj.exports,Fj=c.defineComponent({__name:"tabs",props:Ij(),emits:zj(),setup(e,{emit:t}){const r=e,i=c.ref(),n=c.ref(),{modelValue:o,updateModelValue:a}=ce(r,{outSideUpdate:g=>{i.value=g}}),s=c.ref([]);function l(g){if(!s.value.includes(g)){if(typeof i.value>"u")if(typeof o.value>"u"){const h=g.getPaneName();u(h,!1)}else u(o.value,!1);s.value.push(g)}}function p(g){s.value=s.value.filter(h=>h!==g)}function u(g,h=!0){i.value!==g&&(i.value=g,a(g),h&&t("change",g))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const g=((b=n.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<g.length;v++)if(g[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:r,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Ql,f),{__sfc:!0,props:r,emits:t,currentTab:i,tabsRef:n,modelValue:o,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:Vj}}});var jj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Nj=[],Uj=B(Fj,jj,Nj);const Wj=Uj.exports,Hj=c.defineComponent({__name:"tab-pane",props:Dj(),setup(e){const t=e,r=$e(8),i=c.inject(Ql),{hasSlot:n,slotRender:o}=he(),a=c.computed(()=>t.name||r),s=c.computed(()=>i.currentTab.value===a.value);function l(){return o("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:r,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:n,getTitleRenderSlot:l,getExtraRenderSlot:()=>o("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:i,hasSlot:n,slotRender:o,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Zj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},qj=[],Yj=B(Hj,Zj,qj);const Gj=Yj.exports;G("PwcTabs",Wj),G("PwcTabPane",Gj);var C2={},Kj,Xj;function Jj(e,t,r,o){var n=0,o=o===void 0?{}:o,a=o.loop===void 0?null:o.loop,s=o.palette===void 0?null:o.palette;if(t<=0||r<=0||t>65535||r>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[n++]=71,e[n++]=73,e[n++]=70,e[n++]=56,e[n++]=57,e[n++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,o.background!==void 0){if(u=o.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[n++]=t&255,e[n++]=t>>8&255,e[n++]=r&255,e[n++]=r>>8&255,e[n++]=(s!==null?128:0)|p,e[n++]=u,e[n++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[n++]=g>>16&255,e[n++]=g>>8&255,e[n++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[n++]=33,e[n++]=255,e[n++]=11,e[n++]=78,e[n++]=69,e[n++]=84,e[n++]=83,e[n++]=67,e[n++]=65,e[n++]=80,e[n++]=69,e[n++]=50,e[n++]=46,e[n++]=48,e[n++]=3,e[n++]=1,e[n++]=a&255,e[n++]=a>>8&255,e[n++]=0}var h=!1;this.addFrame=function(b,v,_,x,C,y){if(h===!0&&(--n,h=!1),y=y===void 0?{}:y,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(C.length<_*x)throw new Error("Not enough pixels for the frame size.");var k=!0,P=y.palette;if(P==null&&(k=!1,P=s),P==null)throw new Error("Must supply either a local or global palette.");for(var L=l(P),T=0;L>>=1;)++T;L=1<<T;var Q=y.delay===void 0?0:y.delay,S=y.disposal===void 0?0:y.disposal;if(S<0||S>3)throw new Error("Disposal out of range.");var M=!1,A=0;if(y.transparent!==void 0&&y.transparent!==null&&(M=!0,A=y.transparent,A<0||A>=L))throw new Error("Transparent color index.");if((S!==0||M||Q!==0)&&(e[n++]=33,e[n++]=249,e[n++]=4,e[n++]=S<<2|(M===!0?1:0),e[n++]=Q&255,e[n++]=Q>>8&255,e[n++]=A,e[n++]=0),e[n++]=44,e[n++]=b&255,e[n++]=b>>8&255,e[n++]=v&255,e[n++]=v>>8&255,e[n++]=_&255,e[n++]=_>>8&255,e[n++]=x&255,e[n++]=x>>8&255,e[n++]=k===!0?128|T-1:0,k===!0)for(var E=0,z=P.length;E<z;++E){var I=P[E];e[n++]=I>>16&255,e[n++]=I>>8&255,e[n++]=I&255}return n=eN(e,n,T<2?2:T,C),n},this.end=function(){return h===!1&&(e[n++]=59,h=!0),n},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return n},this.setOutputBufferPosition=function(b){n=b}}function eN(e,t,r,i){e[t++]=r;var n=t++,o=1<<r,a=o-1,s=o+1,l=s+1,p=r+1,u=0,d=0;function m(y){for(;u>=y;)e[t++]=d&255,d>>=8,u-=8,t===n+256&&(e[n]=255,n=t++)}function f(y){d|=y<<u,u+=p,m(8)}var g=i[0]&a,h={};f(o);for(var b=1,v=i.length;b<v;++b){var _=i[b]&a,x=g<<8|_,C=h[x];if(C===void 0){for(d|=g<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===n+256&&(e[n]=255,n=t++);l===4096?(f(o),l=s+1,p=r+1,h={}):(l>=1<<p&&++p,h[x]=l++),g=_}else g=C}return f(g),f(s),m(1),n+1===t?e[n]=0:(e[n]=t-n-1,e[t++]=0),t}function tN(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,n=e[t++],o=n>>7,a=n&7,s=1<<a+1;e[t++],e[t++];var l=null,p=null;o&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,g=0,h=null;for(this.width=r,this.height=i;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),g=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,k=e[t++],P=k>>7,L=k>>6&1,T=k&7,Q=1<<T+1,S=l,M=p,A=!1;if(P){var A=!0;S=t,M=Q,t+=Q*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y:x,width:C,height:y,has_local_palette:A,palette_offset:S,palette_size:M,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:g});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},this.frameInfo=function(z){if(z<0||z>=d.length)throw new Error("Frame index out of range.");return d[z]},this.decodeAndBlitFrameBGRA=function(z,I){var D=this.frameInfo(z),O=D.width*D.height,$=new Uint8Array(O);k2(e,D.data_offset,$,O);var V=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=r-N,q=N,K=(D.y*r+D.x)*4,ee=((D.y+D.height)*r+D.x)*4,re=K,ie=W*4;D.interlaced===!0&&(ie+=r*4*7);for(var te=8,le=0,ve=$.length;le<ve;++le){var ye=$[le];if(q===0&&(re+=ie,q=N,re>=ee&&(ie=W*4+r*4*(te-1),re=K+(N+W)*(te<<1),te>>=1)),ye===F)re+=4;else{var Oe=e[V+ye*3],Ut=e[V+ye*3+1],Wt=e[V+ye*3+2];I[re++]=Wt,I[re++]=Ut,I[re++]=Oe,I[re++]=255}--q}},this.decodeAndBlitFrameRGBA=function(z,I){var D=this.frameInfo(z),O=D.width*D.height,$=new Uint8Array(O);k2(e,D.data_offset,$,O);var V=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=r-N,q=N,K=(D.y*r+D.x)*4,ee=((D.y+D.height)*r+D.x)*4,re=K,ie=W*4;D.interlaced===!0&&(ie+=r*4*7);for(var te=8,le=0,ve=$.length;le<ve;++le){var ye=$[le];if(q===0&&(re+=ie,q=N,re>=ee&&(ie=W*4+r*4*(te-1),re=K+(N+W)*(te<<1),te>>=1)),ye===F)re+=4;else{var Oe=e[V+ye*3],Ut=e[V+ye*3+1],Wt=e[V+ye*3+2];I[re++]=Oe,I[re++]=Ut,I[re++]=Wt,I[re++]=255}--q}}}function k2(e,t,r,i){for(var n=e[t++],o=1<<n,a=o+1,s=a+1,l=n+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],g=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===o){s=a+1,l=n+1,p=(1<<l)-1,h=null;continue}else if(b===a)break;for(var v=b<s?b:h,_=0,x=v;x>o;)x=g[x]>>8,++_;var C=x,y=m+_+(v!==b?1:0);if(y>i){console.log("Warning, gif stream longer than expected.");return}r[m++]=C,m+=_;var k=m;for(v!==b&&(r[m++]=C),x=v;_--;)x=g[x],r[--k]=x&255,x>>=8;h!==null&&s<4096&&(g[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),r}try{Xj=C2.GifWriter=Jj,Kj=C2.GifReader=tN}catch(e){}const rN=c.defineComponent({__name:"address-item",props:{addressInfo:w.object().isRequired},emits:{"choose-address":U()},setup(e,{emit:t}){const r=e;function i(){t("choose-address",r.addressInfo)}return{__sfc:!0,props:r,emit:t,onClick:i,maskChars:R2}}});function iN(e,t,r,i,n,o,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),{exports:e,options:l}}var nN=function(){var t=this,r=t._self._c,i=t._self._setupProxy;return r("div",{staticClass:"plv-product-address-item",on:{click:i.onClick}},[r("div",{staticClass:"plv-product-address-item__top"},[r("div",{staticClass:"plv-product-address-item__content"},[r("div",{staticClass:"plv-product-address-item__header"},[r("span",[t._v(t._s(t.addressInfo.name))]),r("span",{staticClass:"plv-product-address-item__header-phone"},[t._v(t._s(i.maskChars(t.addressInfo.mobile,{start:3,end:6})))])]),r("div",{staticClass:"plv-product-address-item__address"},[t._v(" "+t._s(t.addressInfo.address)+" ")])]),t.$slots.icon?r("div",{staticClass:"plv-product-address-item__icon-wrapper"},[t._t("icon")],2):t._e()]),t._t("action")],2)},oN=[],aN=iN(rN,nN,oN);return aN.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-item]","[version: 1.13.0-rc-20260423.2]","[buildTime: 2026-04-23 05:57:26]");
1143
+ }`}],staticClass:"pwc-menu-item__content",class:{"is-active":r.isActive&&!r.menuItemProps.iconMode,"is-icon-mode":r.menuItemProps.iconMode},on:{click:r.onClickItem}},[r.hasSlot("icon")||r.menuIcon?t("div",{staticClass:"pwc-menu-item__icon"},[r.hasSlot("icon")?[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("icon",{isActive:r.isActive})}})]:[t(r.menuIcon,{tag:"component"})]],2):e._e(),r.menuItemProps.iconMode?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:!r.menuProps.collapsed||r.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[r.hasSlot("title")?[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("title")}})]:[e._v(" "+e._s(r.menuItemProps.title)+" ")]],2)])},lF=[],cF=B(aF,sF,lF);const pF=cF.exports,uF=c.defineComponent({__name:"menu-item",props:VV(),setup(e){const t=e,{receiveRouterSlotData:r}=oF({props:t});return{__sfc:!0,props:t,receiveRouterSlotData:r,MenuItemContent:pF}}});var dF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.props.to?t("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[t("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",r.receiveRouterSlotData(i),!1),[t(r.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?t("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[t(r.MenuItemContent)],1):t("div",{staticClass:"pwc-menu-item"},[t(r.MenuItemContent)],1)},fF=[],mF=B(uF,dF,fF);const hF=mF.exports,gF={};var vF=function(){var e=this;return e._self._c,e._m(0)},wF=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pwc-menu-divider"},[t("div")])}],bF=B(gF,vF,wF);const _F=bF.exports;G("PwcMenu",HV),G("PwcSubMenu",nF),G("PwcMenuItem",hF),G("PwcMenuDivider",_F);const xF=12,yF=16,kn={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function v2(e,t){const r=kn[e];let i=yF;for(let n=0;n<t;n++)i+=r[n].height+xF;return i}function w2(e){const t=kn[e];for(let r=0;r<t.length;r++)t[r].offsetRef.value=v2(e,r)}const Go={add(e,t,r){const i=kn[e],n=i.length,o={id:t,height:0,offsetRef:r};i.push(o),r.value=v2(e,n)},updateHeight(e,t,r){const i=kn[e].find(n=>n.id===t);i&&i.height!==r&&(i.height=r,w2(e))},remove(e,t){const r=kn[e],i=r.findIndex(n=>n.id===t);i!==-1&&(r.splice(i,1),w2(e))}};let CF=0;const kF=e=>{const{position:t,duration:r}=e,{destroyCurrentInstance:i}=rn(),n=++CF,o=c.ref(!1),a=c.ref(0);Go.add(t,n,a);const{startTimeout:s,closeTimeout:l}=Fr(()=>{u()},r);function p(){o.value=!0,r>0&&s()}function u(){o.value=!1,l()}function d(){Go.remove(t,n),i()}function m(f){Go.updateHeight(t,n,f)}return c.onBeforeUnmount(()=>{Go.remove(t,n)}),{visible:o,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(yt.Info);const LF=()=>Z(R(R({},vs()),x0()),{trigger:w.oneOf(go).def("click"),placement:w.oneOf(Ki).def("top"),feedbackType:w.enum().def(yt.Warning),concise:w.bool.def(!1)}),SF=()=>Z(R(R({},de()),nu()),{show:U(),hide:U()}),PF=c.defineComponent({__name:"popconfirm",props:LF(),emits:SF(),setup(e,{emit:t}){const r=e,{modelValue:i,updateModelValue:n}=ce(r),{buttonData:o,onClickConfirm:a,onClickCancel:s}=au({props:r,emit:t,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||n(!0),t("show")}function p(){i.value&&n(!1),t("hide")}const u=c.computed(()=>{if(!r.concise)return r.feedbackType}),d=c.ref();return{__sfc:!0,props:r,emit:t,modelValue:i,updateModelValue:n,buttonData:o,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:y0}}});var TF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":r.popoverFeedbackType},on:{show:r.onShow,hide:r.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),t("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[r.buttonData.showCancelButton?t(r.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:r.onClickCancel}},"pwc-button",r.buttonData.cancelButtonProps,!1)):e._e(),r.buttonData.showConfirmButton?t(r.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:r.onClickConfirm}},"pwc-button",r.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",r.props,!1))},QF=[],EF=B(PF,TF,QF);const AF=EF.exports;G("PwcPopconfirm",AF);var Ke=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(Ke||{});function MF(e,t){const r=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return t})());return c.watch(r,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(n){}},{deep:!0}),r}const IF=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),zF=()=>({"resize-start":U(),resize:U(),"resize-end":U()}),DF=e=>{const{props:t,emit:r}=e,i=c.ref(),n=c.ref(!1),o=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:t.width,height:t.height},p=t.storageKey?MF(t.storageKey,l):c.ref(l),u=c.computed(()=>{const h={};return t.width&&(h.width=p.value.width+"px"),t.height&&(h.height=p.value.height+"px"),h}),d=h=>t.showHandles===!1||Array.isArray(t.showHandles)&&!t.showHandles.includes(h)?!1:[Ke.Top,Ke.Bottom].includes(h)?!!t.height:[Ke.Left,Ke.Right].includes(h)?!!t.width:!!t.width&&!!t.height,m=(h,b)=>{t.disabled||(h.preventDefault(),h.stopPropagation(),n.value=!0,o.value=b,a.value={x:h.clientX,y:h.clientY},s.value=R({},p.value),r("resize-start",{width:p.value.width,height:p.value.height,direction:b,event:h}))},f=h=>{if(!n.value||!o.value)return;const b=h.clientX-a.value.x,v=h.clientY-a.value.y;let _=s.value.width,x=s.value.height;switch(o.value){case Ke.Right:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b));break;case Ke.Bottom:x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case Ke.Left:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b));break;case Ke.Top:x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.TopRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.TopLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height-v));break;case Ke.BottomRight:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width+b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break;case Ke.BottomLeft:_=Math.max(t.minWidth,Math.min(t.maxWidth,s.value.width-b)),x=Math.max(t.minHeight,Math.min(t.maxHeight,s.value.height+v));break}p.value={width:_,height:x},r("resize",{width:_,height:x,direction:o.value,event:h})},g=h=>{if(!n.value||!o.value)return;n.value=!1;const b=o.value;o.value=null,r("resize-end",{width:p.value.width,height:p.value.height,direction:b,event:h})};return c.onMounted(()=>{document.addEventListener("mousemove",f),document.addEventListener("mouseup",g)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g)}),{boxStyle:u,containerRef:i,currentSize:p,isResizing:n,showHandleControl:d,handleMouseDown:m}};IF(),zF();const RF=()=>({title:w.looseString,titleTooltip:w.looseString}),OF=c.defineComponent({__name:"section",props:RF(),setup(e){const t=e,{hasSlot:r,slotRender:i}=he(),n=c.computed(()=>r("title-tooltip")||t.titleTooltip);return{__sfc:!0,props:t,hasSlot:r,slotRender:i,hasTitleTooltip:n,PwcTooltip:wo,renderSlot:it}}});var $F=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("section",{staticClass:"pwc-section"},[r.hasSlot("title")||e.title?t("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),r.hasTitleTooltip?[t(r.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([r.hasSlot("title-tooltip")?{key:"content",fn:function(){return[t(r.renderSlot,{attrs:{"slot-func":()=>r.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),t("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},BF=[],VF=B(OF,$F,BF);const FF=VF.exports;G("PwcSection",FF);const jF=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,buttonSize:w.number.def(14)}),NF=()=>Z(R({},de()),{change:U()}),b2=Symbol("slider-inject-key"),UF=e=>{const{props:t,emit:r}=e,{modelValue:i,updateModelValue:n}=ce(t,{outSideUpdate:()=>{k()}}),o=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=De(p),d=c.ref(),m=c.ref(),f=c.ref(),g=c.computed(()=>Math.min(o.value,a.value)),h=c.computed(()=>Math.max(o.value,a.value)),b=c.computed(()=>t.range?`${100*(h.value-g.value)/(t.max-t.min)}%`:`${100*(o.value-t.min)/(t.max-t.min)}%`),v=c.computed(()=>t.range?`${100*(g.value-t.min)/(t.max-t.min)}%`:"0%"),_=c.computed(()=>Z(R({},x.value),{width:b.value,left:v.value})),x=c.computed(()=>{const M={};return t.sliderBarHeight&&(M.height=`${t.sliderBarHeight}px`,M.borderRadius=`${t.sliderBarHeight/2}px`),M}),C=c.computed(()=>{const M=[],A=t.max-t.min,E=z=>{M.includes(z)||M.push(z)};if(t.step&&t.showStops){const z=A/t.step,I=t.step/A;for(let D=1;D<z;D++){const O=Math.round(D*I*100);E(O)}}return t.marks&&Object.keys(t.marks).forEach(z=>{const I=Number(z);if(I>=t.min&&I<=t.max){const D=(I-t.min)/A,O=Math.round(D*100);E(O)}}),M}),y=c.computed(()=>{const M=[],A=t.max-t.min;return t.marks&&Object.keys(t.marks).forEach(E=>{const z=Number(E),I=t.marks[z];let D="",O={};if(typeof I=="string"?D=I:(D=I.label,O=I.style||{}),z>=t.min&&z<=t.max){const $=(z-t.min)/A,V=Math.round($*100);M.push({label:D,style:O,left:V,value:z})}}),M});function k(){t.range?Array.isArray(i.value)?(o.value=Math.max(t.min,i.value[0]),a.value=Math.min(t.max,i.value[1])):(o.value=t.min,a.value=t.max):typeof i.value!="number"||isNaN(i.value)?o.value=t.min:o.value=Math.min(t.max,Math.max(t.min,i.value))}function P(){let M=i.value;t.range?M=[Math.floor(g.value),Math.floor(h.value)]:M=Math.floor(o.value),M!==i.value&&(l.value=i.value,n(M))}function L(){c.nextTick(()=>{r("change",t.range?[g.value,h.value]:i.value)})}function T(M){var z;if(!t.range){(z=m.value)==null||z.setPosition(M);return}let A;const E=t.min+M*(t.max-t.min)/100;Math.abs(g.value-E)<Math.abs(h.value-E)?A=o.value<a.value?m.value:f.value:A=o.value>a.value?m.value:f.value,A==null||A.setPosition(M)}function Q(M){var A,E;if(!(t.disabled||s.value)){if(t.cssRotateAngle===90){const z=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;T((M.clientY-z)/u.value*100)}else{const z=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;T((M.clientX-z)/u.value*100)}L()}}function S(M){T(M.left),L()}return c.onMounted(()=>{k()}),c.provide(b2,{sliderProps:t,sliderWidth:u,dragging:s,emitChange:L}),{modelValue:i,firstValue:o,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:x,stops:C,markList:y,onSliderClick:Q,onClickMark:S,emitInnerInput:P}},_2=()=>c.inject(b2),WF=()=>({value:w.number}),HF=()=>({change:U()}),ZF=e=>{const{props:t,emit:r}=e,{sliderProps:i,sliderWidth:n,emitChange:o}=_2(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(t.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function g(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function h(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function v(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=g(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(g(L).clientX-p.value)/n.value*100;d.value=u.value+T,P(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(P(d.value),o())},0)}function C(L){i.disabled||ue||(v(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function y(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{y()});function k(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function P(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;r("change",k(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:h,handleMouseLeave:b,onButtonDown:C,setPosition:P}},qF={name:"PlvSliderButton"},YF=c.defineComponent(Z(R({},qF),{props:WF(),emits:HF(),setup(e,{expose:t,emit:r}){const i=e,n=_2(),{sliderProps:o}=n,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=ZF({props:i,emit:r}),f=c.computed(()=>s.value||n.dragging.value||!1);return t({setPosition:m}),{__sfc:!0,props:i,emit:r,sliderInject:n,sliderProps:o,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var GF=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-slider__button",style:r.btnStyle,on:{mouseenter:r.handleMouseEnter,mouseleave:r.handleMouseLeave,mousedown:r.onButtonDown,touchstart:r.onButtonDown}},[t("div",{class:["pwc-slider__button__inner",r.hovering||r.dragging?"pwc-slider__button__inner--hover":"",r.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${r.sliderProps.buttonSize}px`,height:`${r.sliderProps.buttonSize}px`}})])},KF=[],XF=B(YF,GF,KF);const JF=XF.exports,ej=c.defineComponent({__name:"slider",props:jF(),emits:NF(),setup(e,{emit:t}){const r=e,{firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:h}=UF({props:r,emit:t});function b(_){i.value=_,h()}function v(_){n.value=_,h()}return{__sfc:!0,props:r,emit:t,firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:h,onFirstValueChange:b,onSecondValueChange:v,SliderButton:JF}}});var tj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-slider"},[t("div",{ref:"sliderRef",class:["pwc-slider__runway",r.props.disabled?"pwc-slider__runway--disabled":""],style:r.runwayStyle},[r.props.progressBarVisible?t("div",{staticClass:"pwc-slider__runway__bar",style:r.barStyle}):e._e(),t("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${r.props.hotAreaHeight}px`},on:{click:r.onSliderClick}}),e._l(r.stops,function(i){return t("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),r.props.showSliderButton?t(r.SliderButton,{ref:"button1Ref",attrs:{value:r.firstValue},on:{change:r.onFirstValueChange}}):e._e(),r.props.range&&r.props.showSliderButton?t(r.SliderButton,{ref:"button2Ref",attrs:{value:r.secondValue},on:{change:r.onSecondValueChange}}):e._e()],2),r.markList.length?t("div",{staticClass:"pwc-slider__marks"},e._l(r.markList,function(i,n){return t("div",{key:`mark-${n}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(o){return r.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},rj=[],ij=B(ej,tj,rj);const nj=ij.exports;G("PwcSlider",nj);const oj=["horizontal","vertical"],aj=()=>({direction:w.oneOf(oj).def("horizontal"),lazy:w.bool.def(!1)}),sj=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),x2=Symbol("SPLITTER_INJECT_KEY"),lj=c.defineComponent({__name:"splitter",props:aj(),setup(e){const t=e,r=c.ref(),i=c.ref([]),n=c.ref([]),{width:o,height:a}=De(r),s=c.computed(()=>t.direction==="horizontal"),l=()=>{if(!r.value||i.value.length===0)return;const k=s.value?r.value.clientWidth:r.value.clientHeight;let P=0;const L=i.value.map(S=>S.props.initialSize!==void 0?(P+=S.props.initialSize,!0):!1),T=L.filter(S=>!S).length,Q=T>0?(k-P)/T:0;n.value=i.value.map((S,M)=>L[M]?S.props.initialSize:Q)};c.watch(()=>{const k=s.value?o.value:a.value;return`${t.direction}-${k}`},(k,P)=>{const L=Number(k.split("-").pop()),T=P?Number(P.split("-").pop()):0;if(L===0)return;if(n.value.length===0||n.value.every(M=>M===0)){l();return}if(f.value||T===0||T===L)return;const Q=n.value.reduce((M,A)=>M+A,0);if(Q===0)return;const S=n.value.map(M=>M/Q);n.value=S.map((M,A)=>{var D,O;const E=i.value[A],z=(D=E==null?void 0:E.props.min)!=null?D:0,I=(O=E==null?void 0:E.props.max)!=null?O:1/0;return Math.max(z,Math.min(I,M*L))})});const p=k=>{i.value.push(k),c.nextTick(l)},u=k=>{const P=i.value.findIndex(L=>L.id===k);P>=0&&(i.value.splice(P,1),n.value.splice(P,1))},d=k=>{const P=i.value.findIndex(T=>T.id===k),L=n.value[P];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=k=>{var P;return((P=i.value[i.value.length-1])==null?void 0:P.id)===k},f=c.ref(!1),g=c.ref(""),h=c.ref(0),b=c.ref([]),v=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!t.lazy)return-1;const k=i.value.findIndex(Q=>Q.id===g.value);if(k<0)return-1;let P=0;for(let Q=0;Q<=k;Q++)P+=(T=(L=v.value[Q])!=null?L:n.value[Q])!=null?T:0;return P}),x=(k,P)=>{P.preventDefault(),f.value=!0,g.value=k,h.value=s.value?P.clientX:P.clientY,b.value=[...n.value],v.value=[...n.value],document.addEventListener("mousemove",C),document.addEventListener("mouseup",y)},C=k=>{var O,$,V,F;if(!f.value)return;const P=(s.value?k.clientX:k.clientY)-h.value,L=i.value.findIndex(N=>N.id===g.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],S=b.value[L]+b.value[L+1],M=(O=T.props.min)!=null?O:0,A=($=T.props.max)!=null?$:1/0,E=(V=Q.props.min)!=null?V:0,z=(F=Q.props.max)!=null?F:1/0;let I=Math.max(M,Math.min(A,b.value[L]+P)),D=S-I;if(D<E&&(D=E,I=S-D),D>z&&(D=z,I=S-D),I=Math.max(M,Math.min(A,I)),t.lazy){const N=[...b.value];N[L]=I,N[L+1]=D,v.value=N}else{const N=[...n.value];N[L]=I,N[L+1]=D,n.value=N}},y=()=>{t.lazy&&(n.value=[...v.value]),f.value=!1,g.value="",document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",y)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",y)}),c.provide(x2,{direction:c.computed(()=>t.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:t,containerRef:r,panels:i,sizes:n,containerWidth:o,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:g,startPos:h,startSizes:b,pendingSizes:v,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:C,onMouseUp:y}}});var cj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${r.props.direction}`,{"is-dragging":r.isDragging}]},[e._t("default"),r.isDragging&&r.props.lazy&&r.lazyPreviewPos>=0?t("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${r.props.direction}`],style:r.isHorizontal?{left:`${r.lazyPreviewPos}px`}:{top:`${r.lazyPreviewPos}px`}}):e._e()],2)},pj=[],uj=B(lj,cj,pj);const dj=uj.exports,fj=c.defineComponent({__name:"splitter-panel",props:sj(),setup(e){const t=e,r=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(x2),n=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),o=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(r))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(r))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(r,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:r,props:t})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(r)}),{__sfc:!0,props:t,panelId:r,splitter:i,direction:n,isLast:o,panelStyle:a,handleDividerMouseDown:s}}});var mj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-splitter-panel",style:r.panelStyle},[t("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),r.isLast?e._e():t("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${r.direction}`],on:{mousedown:r.handleDividerMouseDown}},[t("span",{staticClass:"pwc-splitter__divider-bar"})])])},hj=[],gj=B(fj,mj,hj);const vj=gj.exports;G("PwcSplitter",dj),G("PwcSplitterPanel",vj);const wj=()=>({max:w.number.def(3)}),bj=()=>({label:w.looseString,disabled:w.bool.def(!1)}),_j=()=>({click:U()}),y2=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),xj=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(y2,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:x1,PwcDropdown:qI,PwcDropdownMenu:YI}}});var yj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[t(r.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[t(r.PwcButton,{attrs:{link:""}},[t("div",{staticClass:"pwc-table-operation-dropdown__icon"},[t(r.PwcIconMore)],1)])],1)},Cj=[],kj=B(xj,yj,Cj);const Lj=kj.exports,Sj=c.defineComponent({props:wj(),setup(e){const t=c.useSlots(),r=c.inject(ol,void 0),i=$e(8),n=c.ref();function o(){if(r)return r.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return De(n,({width:a})=>{const s=o();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=o();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=t.default)==null?void 0:m.call(t);if(!a)return c.h("span",{},"-");let s=0;const l=[],p=[],u=a.reduce((f,g)=>Se.isCommentVNode(g)?f:f+1,0);u===0&&l.push(c.h("span",{},"-")),a.forEach((f,g)=>{if(u<=e.max||s<e.max-1){l.push(f);let h=!0;f.text&&f.text===" "&&(h=!1),h&&s++}else p.push(f)}),p.length>0&&l.push(c.h(Lj,{},Zi()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:n},l)])}}}),Pj=c.defineComponent({__name:"table-operation-item",props:bj(),emits:_j(),setup(e,{emit:t}){const r=e,i=c.useAttrs(),n=c.inject(y2,void 0);function o(s){r.disabled||t("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:r,emit:t,attrs:i,dropdownInject:n,onClickItem:o,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:GI}}});var Tj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.dropdownInject?t(r.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:r.dropdownItemTag},nativeOn:{click:function(i){return r.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):t(r.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return r.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},Qj=[],Ej=B(Pj,Tj,Qj);const Aj=Ej.exports;G("PwcTableOperation",Sj),G("PwcTableOperationItem",Aj);const Mj=["line","rounded","text"],Ij=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(Mj).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),zj=()=>Z(R({},de()),{change:U()}),Dj=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),Ql=Symbol("tabs-inject-key"),Rj=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:t,tabsProps:r,setCurrentTab:i}=c.inject(Ql),{$t:n}=J(),o=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=wt();function p(){return H(this,null,function*(){if(yield c.nextTick(),!o.value||ue)return;const d=o.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;o.value.clientHeight>=m*1.5||o.value.scrollWidth>o.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>t.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:t,tabsProps:r,setCurrentTab:i,$t:n,listRef:o,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:Xt,PwcIconUp:is,renderSlot:it}}});var Oj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-nav",class:[`is-type-${r.tabsProps.type}`]},[t("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":r.tabsProps.expand&&!r.isExpanded}},e._l(r.tabPanes,function(i){return t("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(n){return r.onClickItem(i)}}},[i.hasSlot("title")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):t("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?t(r.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?t("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),t("div",{staticClass:"pwc-tab-nav__right"},[r.tabsProps.expand&&r.isMoreItem?t("div",{staticClass:"pwc-tab-nav__expand",on:{click:r.toggle}},[t("span",[e._v(e._s(r.isExpanded?r.$t("tabs.collapse"):r.$t("tabs.more")))]),r.isExpanded?t(r.PwcIconUp):t(r.PwcIconDown)],1):e._e()])])},$j=[],Bj=B(Rj,Oj,$j);const Vj=Bj.exports,Fj=c.defineComponent({__name:"tabs",props:Ij(),emits:zj(),setup(e,{emit:t}){const r=e,i=c.ref(),n=c.ref(),{modelValue:o,updateModelValue:a}=ce(r,{outSideUpdate:g=>{i.value=g}}),s=c.ref([]);function l(g){if(!s.value.includes(g)){if(typeof i.value>"u")if(typeof o.value>"u"){const h=g.getPaneName();u(h,!1)}else u(o.value,!1);s.value.push(g)}}function p(g){s.value=s.value.filter(h=>h!==g)}function u(g,h=!0){i.value!==g&&(i.value=g,a(g),h&&t("change",g))}const d=c.ref(0);function m(){return H(this,null,function*(){var b;yield c.nextTick();const g=((b=n.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let h=0;for(let v=0;v<g.length;v++)if(g[v].getAttribute("data-is-active")==="true"){h=v*100;break}d.value=h})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:r,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(Ql,f),{__sfc:!0,props:r,emits:t,currentTab:i,tabsRef:n,modelValue:o,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:Vj}}});var jj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[t(r.TabNav),t("div",{staticClass:"pwc-tabs__content"},[t("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${r.offsetPercent}%`}},[e._t("default")],2)])],1)},Nj=[],Uj=B(Fj,jj,Nj);const Wj=Uj.exports,Hj=c.defineComponent({__name:"tab-pane",props:Dj(),setup(e){const t=e,r=$e(8),i=c.inject(Ql),{hasSlot:n,slotRender:o}=he(),a=c.computed(()=>t.name||r),s=c.computed(()=>i.currentTab.value===a.value);function l(){return o("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=t.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:r,paneProps:t,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:n,getTitleRenderSlot:l,getExtraRenderSlot:()=>o("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:t,paneId:r,tabsInject:i,hasSlot:n,slotRender:o,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var Zj=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"pwc-tab-pane",class:{"is-active":r.isActive},attrs:{"data-pane-name":r.tabPaneName,"data-is-active":r.isActive}},[r.canRender?t("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},qj=[],Yj=B(Hj,Zj,qj);const Gj=Yj.exports;G("PwcTabs",Wj),G("PwcTabPane",Gj);var C2={},Kj,Xj;function Jj(e,t,r,o){var n=0,o=o===void 0?{}:o,a=o.loop===void 0?null:o.loop,s=o.palette===void 0?null:o.palette;if(t<=0||r<=0||t>65535||r>65535)throw new Error("Width/Height invalid.");function l(b){var v=b.length;if(v<2||v>256||v&v-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return v}e[n++]=71,e[n++]=73,e[n++]=70,e[n++]=56,e[n++]=57,e[n++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,o.background!==void 0){if(u=o.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[n++]=t&255,e[n++]=t>>8&255,e[n++]=r&255,e[n++]=r>>8&255,e[n++]=(s!==null?128:0)|p,e[n++]=u,e[n++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[n++]=g>>16&255,e[n++]=g>>8&255,e[n++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[n++]=33,e[n++]=255,e[n++]=11,e[n++]=78,e[n++]=69,e[n++]=84,e[n++]=83,e[n++]=67,e[n++]=65,e[n++]=80,e[n++]=69,e[n++]=50,e[n++]=46,e[n++]=48,e[n++]=3,e[n++]=1,e[n++]=a&255,e[n++]=a>>8&255,e[n++]=0}var h=!1;this.addFrame=function(b,v,_,x,C,y){if(h===!0&&(--n,h=!1),y=y===void 0?{}:y,b<0||v<0||b>65535||v>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(C.length<_*x)throw new Error("Not enough pixels for the frame size.");var k=!0,P=y.palette;if(P==null&&(k=!1,P=s),P==null)throw new Error("Must supply either a local or global palette.");for(var L=l(P),T=0;L>>=1;)++T;L=1<<T;var Q=y.delay===void 0?0:y.delay,S=y.disposal===void 0?0:y.disposal;if(S<0||S>3)throw new Error("Disposal out of range.");var M=!1,A=0;if(y.transparent!==void 0&&y.transparent!==null&&(M=!0,A=y.transparent,A<0||A>=L))throw new Error("Transparent color index.");if((S!==0||M||Q!==0)&&(e[n++]=33,e[n++]=249,e[n++]=4,e[n++]=S<<2|(M===!0?1:0),e[n++]=Q&255,e[n++]=Q>>8&255,e[n++]=A,e[n++]=0),e[n++]=44,e[n++]=b&255,e[n++]=b>>8&255,e[n++]=v&255,e[n++]=v>>8&255,e[n++]=_&255,e[n++]=_>>8&255,e[n++]=x&255,e[n++]=x>>8&255,e[n++]=k===!0?128|T-1:0,k===!0)for(var E=0,z=P.length;E<z;++E){var I=P[E];e[n++]=I>>16&255,e[n++]=I>>8&255,e[n++]=I&255}return n=eN(e,n,T<2?2:T,C),n},this.end=function(){return h===!1&&(e[n++]=59,h=!0),n},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return n},this.setOutputBufferPosition=function(b){n=b}}function eN(e,t,r,i){e[t++]=r;var n=t++,o=1<<r,a=o-1,s=o+1,l=s+1,p=r+1,u=0,d=0;function m(y){for(;u>=y;)e[t++]=d&255,d>>=8,u-=8,t===n+256&&(e[n]=255,n=t++)}function f(y){d|=y<<u,u+=p,m(8)}var g=i[0]&a,h={};f(o);for(var b=1,v=i.length;b<v;++b){var _=i[b]&a,x=g<<8|_,C=h[x];if(C===void 0){for(d|=g<<u,u+=p;u>=8;)e[t++]=d&255,d>>=8,u-=8,t===n+256&&(e[n]=255,n=t++);l===4096?(f(o),l=s+1,p=r+1,h={}):(l>=1<<p&&++p,h[x]=l++),g=_}else g=C}return f(g),f(s),m(1),n+1===t?e[n]=0:(e[n]=t-n-1,e[t++]=0),t}function tN(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!==56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,n=e[t++],o=n>>7,a=n&7,s=1<<a+1;e[t++],e[t++];var l=null,p=null;o&&(l=t,p=s,t+=s*3);var u=!0,d=[],m=0,f=null,g=0,h=null;for(this.width=r,this.height=i;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];m=e[t++]|e[t++]<<8,f=e[t++],v&1||(f=null),g=v>>2&7,t++;break;case 254:for(;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var _=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,k=e[t++],P=k>>7,L=k>>6&1,T=k&7,Q=1<<T+1,S=l,M=p,A=!1;if(P){var A=!0;S=t,M=Q,t+=Q*3}var E=t;for(t++;;){var b=e[t++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;t+=b}d.push({x:_,y:x,width:C,height:y,has_local_palette:A,palette_offset:S,palette_size:M,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!L,delay:m,disposal:g});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return h},this.frameInfo=function(z){if(z<0||z>=d.length)throw new Error("Frame index out of range.");return d[z]},this.decodeAndBlitFrameBGRA=function(z,I){var D=this.frameInfo(z),O=D.width*D.height,$=new Uint8Array(O);k2(e,D.data_offset,$,O);var V=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=r-N,q=N,K=(D.y*r+D.x)*4,ee=((D.y+D.height)*r+D.x)*4,re=K,ie=W*4;D.interlaced===!0&&(ie+=r*4*7);for(var te=8,le=0,ve=$.length;le<ve;++le){var ye=$[le];if(q===0&&(re+=ie,q=N,re>=ee&&(ie=W*4+r*4*(te-1),re=K+(N+W)*(te<<1),te>>=1)),ye===F)re+=4;else{var Oe=e[V+ye*3],Ut=e[V+ye*3+1],Wt=e[V+ye*3+2];I[re++]=Wt,I[re++]=Ut,I[re++]=Oe,I[re++]=255}--q}},this.decodeAndBlitFrameRGBA=function(z,I){var D=this.frameInfo(z),O=D.width*D.height,$=new Uint8Array(O);k2(e,D.data_offset,$,O);var V=D.palette_offset,F=D.transparent_index;F===null&&(F=256);var N=D.width,W=r-N,q=N,K=(D.y*r+D.x)*4,ee=((D.y+D.height)*r+D.x)*4,re=K,ie=W*4;D.interlaced===!0&&(ie+=r*4*7);for(var te=8,le=0,ve=$.length;le<ve;++le){var ye=$[le];if(q===0&&(re+=ie,q=N,re>=ee&&(ie=W*4+r*4*(te-1),re=K+(N+W)*(te<<1),te>>=1)),ye===F)re+=4;else{var Oe=e[V+ye*3],Ut=e[V+ye*3+1],Wt=e[V+ye*3+2];I[re++]=Oe,I[re++]=Ut,I[re++]=Wt,I[re++]=255}--q}}}function k2(e,t,r,i){for(var n=e[t++],o=1<<n,a=o+1,s=a+1,l=n+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[t++],g=new Int32Array(4096),h=null;;){for(;u<16&&f!==0;)d|=e[t++]<<u,u+=8,f===1?f=e[t++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===o){s=a+1,l=n+1,p=(1<<l)-1,h=null;continue}else if(b===a)break;for(var v=b<s?b:h,_=0,x=v;x>o;)x=g[x]>>8,++_;var C=x,y=m+_+(v!==b?1:0);if(y>i){console.log("Warning, gif stream longer than expected.");return}r[m++]=C,m+=_;var k=m;for(v!==b&&(r[m++]=C),x=v;_--;)x=g[x],r[--k]=x&255,x>>=8;h!==null&&s<4096&&(g[s++]=h<<8|C,s>=p+1&&l<12&&(++l,p=p<<1|1)),h=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),r}try{Xj=C2.GifWriter=Jj,Kj=C2.GifReader=tN}catch(e){}const rN=c.defineComponent({__name:"address-item",props:{addressInfo:w.object().isRequired},emits:{"choose-address":U()},setup(e,{emit:t}){const r=e;function i(){t("choose-address",r.addressInfo)}return{__sfc:!0,props:r,emit:t,onClick:i,maskChars:R2}}});function iN(e,t,r,i,n,o,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),{exports:e,options:l}}var nN=function(){var t=this,r=t._self._c,i=t._self._setupProxy;return r("div",{staticClass:"plv-product-address-item",on:{click:i.onClick}},[r("div",{staticClass:"plv-product-address-item__top"},[r("div",{staticClass:"plv-product-address-item__content"},[r("div",{staticClass:"plv-product-address-item__header"},[r("span",[t._v(t._s(t.addressInfo.name))]),r("span",{staticClass:"plv-product-address-item__header-phone"},[t._v(t._s(i.maskChars(t.addressInfo.mobile,{start:3,end:6})))])]),r("div",{staticClass:"plv-product-address-item__address"},[t._v(" "+t._s(t.addressInfo.address)+" ")])]),t.$slots.icon?r("div",{staticClass:"plv-product-address-item__icon-wrapper"},[t._t("icon")],2):t._e()]),t._t("action")],2)},oN=[],aN=iN(rN,nN,oN);return aN.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-item]","[version: 1.13.0]","[buildTime: 2026-04-24 07:47:17]");
@@ -2033,4 +2033,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2033
2033
  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,n){n.r(o);var i=n(5),a=n(19),l=n(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=(n(127),n(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,n){},78:function(e,o){e.exports=function(n){if(Array.isArray(n))return n},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.
2034
2034
  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,n){var i,a=n(29),l=n(1).a["__core-js_shared__"],c=(i=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",u=function(y){return!!c&&c in y},s=n(20),d=n(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(y){return!(!Object(s.a)(y)||u(y))&&(Object(a.a)(y)?S:p).test(Object(d.a)(y))},h=function(y,m){return y==null?void 0:y[m]};o.a=function(y,m){var g=h(y,m);return _(g)?g:void 0}},81:function(e,o,n){n.r(o);var i=n(65),a=n(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(n,i){var a=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var l,c,u,s,d=[],p=!0,f=!1;try{if(u=(a=a.call(n)).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,n){var i=n(7),a=n.n(i),l=n(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,n){n(62)},87:function(e,o,n){n.r(o);var i=n(67),a=n.n(i);o.default=a.a},9:function(e,o,n){var i=n(1).a.Symbol;o.a=i},91:function(e,o,n){},95:function(e,o,n){var i=n(4),a=n.n(i),l=n(7),c=n.n(l),u=n(2),s=n(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 y=p[h].$el;y.style.top=parseInt(y.style.top,10)-v-16+"px"}},o.a=f},98:function(e,o,n){}}).default})(Bl,Bl.exports)),Bl.exports}TZ();const EZ=(t,r)=>{function e(){return document.body}const o=k.computed(()=>{let i=e();return k.unref(r)&&(i=k.unref(r)),i});function n(){const i=k.unref(t),a=k.unref(o);!i||!a||a.appendChild(i)}k.watch(()=>[k.unref(t),k.unref(o)],()=>{n()},{immediate:!0}),k.onBeforeUnmount(()=>{const i=k.unref(t);i&&i.parentNode&&i.parentNode.removeChild(i)})},Lr=()=>(()=>!0);function g9(t){return{[`update:${t}`]:()=>!0}}const OZ=navigator.userAgent.toLowerCase(),ni=D1();ni.os.isAndroid,ni.os.isIOS,ni.os.isMacOS,ni.client.version;const jZ=ni.client.isWx,AZ=ni.client.isWxWork,DZ=(jZ||AZ)&&/miniprogramenv/.test(OZ);function IZ(){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 MZ(){const t=navigator.userAgent;return!!(/(?:iPad|PlayBook)/.test(t)||ni.os.isAndroid&&!/(?:Mobile)/.test(t)||/(?:Tablet)/.test(t))}const b9=IZ();b9&&MZ();const ri=b9||DZ;var y9=(t=>(t.Vertical="Vertical",t.Horizontal="Horizontal",t))(y9||{});const RZ=(t={})=>{const{autoListen:r=!0,autoListenCb:e=()=>{}}=t,{injectData:o}=Ka(),n=k.ref("Vertical"),i=k.computed(()=>{var f;return(f=o.pageFullscreen)!=null?f:!1}),a=k.computed(()=>ri?n.value==="Vertical":!1),l=k.computed(()=>ri?i.value?!0:n.value==="Horizontal":!1);function c(){window.innerWidth<window.innerHeight&&(n.value="Vertical")}function u(){(window.orientation===180||window.orientation===0)&&(n.value="Vertical"),(window.orientation===90||window.orientation===-90)&&(n.value="Horizontal"),c()}function s(){setTimeout(()=>{const f=window.matchMedia("(orientation: portrait)");f!=null&&f.matches?n.value="Vertical":n.value="Horizontal",c(),e(n.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(()=>{r&&(d(),s())}),k.onBeforeUnmount(()=>{p()}),{screenOrientationMode:n,isVerticalScreenOrientation:a,isHorizontalScreenOrientation:l,pageFullscreen:i,listenOrientationEvent:d,updateScreenOrientationModeManually:u}},zZ=()=>{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 r;for(let e=0;e<t.length;e++){const o=t[e];if(o.enabledField in document){r=o;break}}return{fieldData:r}},FZ=(t=document.documentElement)=>{const{fieldData:r}=zZ(),e=k.ref(!1),o=k.ref(null),n=k.computed(()=>!!r),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();!r||!s[r.requestApiField]||s[r.requestApiField]()}function l(){r&&document[r.exitApiField]()}function c(){r&&(document[r.elementField]?l():a())}function u(){r&&(document[r.elementField]?e.value=!0:e.value=!1,o.value=document[r.elementField])}return k.onMounted(()=>{r&&(document.addEventListener(r.fullscreenChangeEvent,u),document[r.elementField]&&u())}),k.onBeforeUnmount(()=>{r&&document.removeEventListener(r.fullscreenChangeEvent,u)}),{isFullscreen:e,supportFullscreen:n,requestFullscreen:a,exitFullscreen:l,toggleFullscreen:c}},w9=["bottom","left","right","center"],NZ=Symbol("plv-product-common-popup"),BZ=()=>k.inject(NZ,{}),VZ=t=>{const{initHeightRatio:r=.7,maxHeightRatio:e=.85}=t||{},o=k.ref(0),n=k.ref(0),i=k.ref(null),a=k.computed(()=>Math.min(r+n.value,e)),l=k.computed(()=>n.value+r>=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&&(n.value+=(p-o.value)/(f-b),o.value=p),i.value=null}))}function u(){n.value=0,o.value=0,i.value!==null&&(cancelAnimationFrame(i.value),i.value=null)}return{dynamicContentHeightPercent:a,handleScroll:c,reset:u}},WZ=k.defineComponent({__name:"index",props:{value:_e.bool.def(!1),title:_e.string.def(""),backgroundMode:_e.oneOf(["bg1"]),background:_e.string,closeable:_e.bool.def(!0),fillBody:_e.bool.def(!1),backable:_e.bool.def(!1),headerHeight:_e.string.def("52px"),contentHeightPercent:_e.oneOfType([Boolean,Number]).def(.7),showHeader:_e.bool.def(!0),openEvent:_e.looseString,position:_e.oneOf(w9),horizontalScreenPosition:_e.oneOf(w9).def("right"),horizontalScreenClassName:_e.string,width:_e.looseString,appendTo:_e.looseElement,showModal:_e.looseBool,popupConfig:_e.object(),showScrollbar:_e.bool.def(!0),closeOnMask:_e.bool.def(!0),customClose:_e.func(),customBack:_e.func(),enableDynamicHeight:_e.bool.def(!1),dynamicHeightOptions:_e.object()},emits:{input:Lr(),"after-leave":Lr()},setup(t,{expose:r,emit:e}){const o=t,{injectData:n}=Ka(),i=BZ(),{isHorizontalScreenOrientation:a,pageFullscreen:l,screenOrientationMode:c}=RZ(),{isFullscreen:u}=FZ(),{dynamicContentHeightPercent:s,handleScroll:d,reset:p}=VZ(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(n.fullscreenElement)){let X=k.unref(n.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||(ri?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}`),ri&&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!==y9.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}),y=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),w=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}),Q=k.ref(!1),P=k.ref(!1),T=k.ref(),E=k.ref();EZ(T,b);function A(){return we(this,null,function*(){yield k.nextTick(),T.value&&cZ.openPopper(T.value)})}o.openEvent&&AY(o.openEvent,()=>{A()});function D(W){o.enableDynamicHeight&&d(W)}function I(){Q.value=!0,P.value=!0,A()}function O(){P.value=!1,e("input",!1)}function R(){if(o.customClose){o.customClose({closeBody:O});return}O()}function N(){o.closeOnMask&&R()}function B(){if(o.customBack){o.customBack({closeBody:O});return}O()}function H(){Q.value=!1,e("after-leave"),o.enableDynamicHeight&&p()}function V(){E.value&&(E.value.scrollTop=0)}return k.watch(()=>o.value,()=>{o.value?I():O()}),k.onMounted(()=>{o.value&&I()}),r({resetScroll:V}),{__sfc:!0,props:o,emit:e,globalInjectData:n,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:y,bodyWidth:m,bodyHeight:g,bodyClass:w,bodyStyle:C,wrapVisible:Q,bodyVisible:P,wrapRef:T,innerRef:E,topicPopup:A,onBodyScroll:D,open:I,closeBody:O,close:R,onClickMask:N,back:B,onAfterLeave:H,resetScroll:V,ProductIconClose:SY,ProductIconArrowLeft:xY}}});var UZ=function(){var r=this,e=r._self._c,o=r._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(n){n.stopPropagation()}}},[r.showHeader?[r._t("header",function(){return[e("div",{staticClass:"plv-product-common-popup__header",style:o.headerStyle},[r.backable?e(o.ProductIconArrowLeft,{staticClass:"plv-product-common-popup__back",on:{click:function(n){return n.stopPropagation(),o.back.apply(null,arguments)}}}):r._e(),r.title?e("div",{staticClass:"plv-product-common-popup__title"},[r._v(" "+r._s(r.title)+" ")]):r._e(),e("div",{staticClass:"plv-product-common-popup__header-right"},[r._t("header-right",function(){return[r.closeable?e(o.ProductIconClose,{staticClass:"plv-product-common-popup__close",on:{click:o.close}}):r._e()]})],2)],1)]})]:r._e(),e("div",{staticClass:"plv-product-common-popup__content"},[e("div",{ref:"innerRef",staticClass:"plv-product-common-popup__inner",on:{scroll:o.onBodyScroll}},[r._t("default")],2)])],2)])],1)},HZ=[],GZ=Co(WZ,UZ,HZ);const YZ=GZ.exports,x9=Symbol("checkbox-group-inject-key"),ZZ=()=>({circle:_e.bool.def(!1),checked:_e.bool.def(!1),value:_e.oneOfType([String,Number,Boolean]),label:_e.string,showBackground:_e.bool.def(!1),disabled:_e.bool.def(!1)}),KZ=()=>Ce(ee({},g9("checked")),{change:Lr()}),XZ=t=>{const{props:r,emit:e}=t,o=k.inject(x9,{inGroup:!1}),n=k.computed(()=>o.inGroup&&o.value?k.unref(o.value).includes(r.value):r.checked);function i(){var a;if(!r.disabled){if(o.inGroup){let l=[...k.unref(o.value)||[]];n.value?l=l.filter(c=>c!==r.value):l.push(r.value),(a=o.emitInput)==null||a.call(o,l);return}e("update:checked",!k.unref(n)),e("change",!k.unref(n))}}return{isChecked:n,onClickCheckbox:i}};ZZ(),KZ(),_e.array(),Lr();const _9=()=>{const t=k.getCurrentInstance();function r(){return t==null?void 0:t.proxy}function e(){var a;(a=r())==null||a.$destroy()}function o(){const a=r();return a==null?void 0:a.$el}function n(){var a;return(a=r())==null?void 0:a.$children}function i(a="default"){const l=r();return(l==null?void 0:l.$slots)&&l.$slots[a]||[]}return{getInstance:r,destroyCurrentInstance:e,getCurrentElem:o,getCurrentChildrens:n,getSlot:i}};var C9=(t=>(t.Default="default",t.Medium="medium",t.Small="small",t))(C9||{});function Fp(t){return typeof t=="string"?t:typeof t=="number"?`${t}px`:t}lo.warning=()=>{};const S9=((...t)=>t)("inline","header"),JZ=()=>({formData:_e.object().def({}),formRules:_e.object().def({}),labelWidth:_e.number.def(170),labelHeight:_e.number.def(ri?52:40),contentWidth:_e.looseNumber,submitAction:_e.func(),theme:_e.enum(),labelModel:_e.oneOf(S9).def("inline"),debug:_e.bool.def(!1)}),qZ=()=>({"submit-form":Lr()}),k9=Symbol("FORM_WRAP_PROPS_PROVIDE_KEY"),L9=()=>k.inject(k9,void 0),$Z=Symbol("FORM_WRAP_PROVIDE_KEY"),eK=t=>{const{props:r,emit:e}=t,{formData:o,submitAction:n,debug:i}=Y4(r),{getCurrentChildrens:a}=_9(),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(nK(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(n);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(k9,r),k.provide($Z,{debug:i,isSubmiting:l,validateCurrentForm:c,submitForm:u}),{isSubmiting:l,validateCurrentForm:c,submitForm:u}},tK=()=>({formField:_e.looseString,label:_e.looseString,labelWidth:_e.looseNumber,labelHeight:_e.looseNumber,contentWidth:_e.looseNumber,showErrorMessage:_e.bool.def(!0),errorMessage:_e.looseString,labelModel:_e.oneOf(S9),required:_e.bool.def(!1),highlightError:_e.bool.def(!1)}),nK=t=>{var e;const r=t;return(e=r==null?void 0:r.isFormItem)!=null?e:!1},Q9=Symbol("FORM_ITEM_PROVIDE_KEY"),rK=()=>k.inject(Q9,void 0),oK=t=>{const{props:r}=t,e=k.computed(()=>r.required),o=L9(),n=k.computed(()=>r.label),i=k.computed(()=>{var v,x;return(x=(v=r.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=r.labelWidth)!=null?S:o==null?void 0:o.labelWidth,x=(_=r.labelHeight)!=null?_:o==null?void 0:o.labelHeight;return{width:Fp(v),height:Fp(x)}}),l=k.computed(()=>{var x;const v=(x=r.contentWidth)!=null?x:o==null?void 0:o.contentWidth;return Fp(v)}),c=k.computed(()=>({width:l.value})),u=k.ref(),s=k.computed(()=>typeof k.unref(u)!="undefined");k.watchEffect(()=>{r.errorMessage?d(r.errorMessage):u.value=void 0}),k.watch(()=>o==null?void 0:o.formRules,()=>{u.value=void 0});function d(v){v&&!r.showErrorMessage||(u.value=v)}function p(){u.value=void 0}function f(v={}){var C;const x=(C=v.showErrorMessage)!=null?C:!0,S=r.formField,_=o==null?void 0:o.formData,h=o==null?void 0:o.formRules;if(!S||!_||!h||!h[S])return Promise.resolve();const y={[S]:h[S]},m={[S]:_[S]},g=new lo(y);let w;return g.validate(m,Q=>{Q&&Q.length&&(w=Q[0].message)}),x&&r.showErrorMessage&&d(w),new Promise((Q,P)=>{typeof w=="undefined"?Q():P(new Error(w))})}const b={isFormItem:!0,formItemIsError:s,setErrorMessage:d,removeErrorMessage:p,validateFormItem:f};return k.provide(Q9,b),{required:e,labelText:n,labelModel:i,labelStyle:a,contentWidthStyle:l,contentStyle:c,itemErrorMessage:u,formItemIsError:s,removeErrorMessage:p,validateFormItem:f,formItemInstance:b}},P9=()=>({size:_e.enum(),theme:_e.enum(),validateForm:_e.bool.def(!0)}),iK=t=>{const{props:r,classPrefix:e}=t,o=L9();return{commonClassNames:k.computed(()=>{const i=[],a=r.size;a&&a!==C9.Default&&i.push(`${e}--size-${a}`);const l=r.theme||(o==null?void 0:o.theme);return k.unref(l)&&i.push(`${e}--theme-${l}`),i})}},T9=t=>{const{props:r}=t,e=rK();function o(){return we(this,null,function*(){yield e==null?void 0:e.validateFormItem()})}function n(){return we(this,null,function*(){if(r.validateForm)try{yield o()}catch(l){console.error("blur-validate",l.message)}})}function i(){r.validateForm&&(e==null||e.removeErrorMessage())}const a=k.computed(()=>!r.validateForm||!e?!1:k.unref(e.formItemIsError));return{validateCurrentFormItem:o,blurToValidateItem:n,focusToRemoveError:i,formItemIsError:a}},aK=()=>Ce(ee({},P9()),{readonly:_e.bool.def(!1),disabled:_e.bool.def(!1),value:_e.oneOfType([String,Number]).def(""),type:_e.string.def("text"),placeholder:_e.string.def(""),maxlength:_e.number.def(1/0),showWordLimit:_e.bool.def(!1),suffixText:_e.string.def(""),clearable:_e.bool.def(!1),useTextarea:_e.bool.def(!1),rows:_e.number.def(4),inputTitle:_e.string.def(""),inputTitleWidth:_e.number.def(void 0)}),sK=()=>({input:Lr(),blur:Lr(),focus:Lr(),enter:Lr()}),lK=t=>{const{emit:r,props:e,classPrefix:o}=t,{blurToValidateItem:n,focusToRemoveError:i,formItemIsError:a}=T9({props:e}),{commonClassNames:l}=iK({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 w;if(!e.showWordLimit)return"";const g=`${(w=e.value)!=null?w:""}`.length;return e.maxlength===1/0?`${g}`:`${g}/${e.maxlength}`});function p(){r("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)),r("input",C)}function b(){u.value=!1,n(),r("blur",e.value)}function v(){u.value=!0,i(),r("focus",e.value)}function x(){r("enter",e.value)}const{getInstance:S}=_9();function _(){const g=S();g==null||g.$forceUpdate()}function h(){var g;(g=c.value)==null||g.focus()}function y(){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:y},wordLimitText:d}},cK=k.defineComponent({__name:"form-input",props:aK(),emits:sK(),setup(t,{expose:r,emit:e}){const o=t,{value:n,type:i,placeholder:a,maxlength:l,inputTitle:c}=Y4(o),{inputRef:u,inputClassNames:s,onInputChanged:d,onInputBlur:p,onInputFocus:f,formInstance:b,wordLimitText:v,clearValue:x,isFocus:S}=lK({props:o,emit:e,classPrefix:"plv-product-form-input"});return r(b),{__sfc:!0,emit:e,props:o,value:n,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:kY}}});var uK=function(){var r=this,e=r._self._c,o=r._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}},[r._t("prefix"),e("div",{staticClass:"plv-product-form-input__input"},[r.useTextarea?e("textarea",{ref:"inputRef",staticClass:"plv-product-form-input__input-inner",attrs:{type:o.type,placeholder:o.placeholder,maxlength:o.maxlength,disabled:r.disabled,readonly:r.readonly,rows:r.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:r.disabled,readonly:r.readonly},domProps:{value:o.value},on:{input:o.onInputChanged,blur:o.onInputBlur,focus:o.onInputFocus}})]),e("div",{staticClass:"plv-product-form-input__suffix"},[r.clearable&&o.value&&o.isFocus?[e(o.ProductIconCloseRoundFill,{staticClass:"plv-product-form-input__clearable",nativeOn:{touchstart:function(n){return o.clearValue.apply(null,arguments)}}})]:r._e(),r._t("suffix",function(){return[r.suffixText?e("span",{staticClass:"plv-product-form-input__suffix-text"},[r._v(" "+r._s(r.suffixText)+" ")]):o.wordLimitText?e("span",{staticClass:"plv-product-form-input__suffix-text"},[r._v(" "+r._s(o.wordLimitText)+" ")]):r._e()]})],2)],2)])},pK=[],dK=Co(cK,uK,pK);const fK=dK.exports;var Np,E9;function hK(){return E9||(E9=1,Np=(function(t){var r={};function e(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}return e.m=t,e.c=r,e.d=function(o,n,i){e.o(o,n)||Object.defineProperty(o,n,{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,n){if(1&n&&(o=e(o)),8&n||4&n&&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&n&&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 n=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(n,"a",n),n},e.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)},e.p="",e(e.s=67)})([,function(t,r,e){function o(n,i,a,l,c,u,s,d){var p,f=typeof n=="function"?n.options:n;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:n,options:f}}e.d(r,"a",(function(){return o}))},,function(t,r){function e(o){return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},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,r,e){var o=e(29)();t.exports=o;try{regeneratorRuntime=o}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(t,r,e){var o=e(33),n=e(26),i=e(16),a=e(34);t.exports=function(l){return o(l)||n(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},,function(t,r,e){e.d(r,"a",(function(){return u}));var o=e(14),n=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){n()(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,r){function e(o,n,i,a,l,c,u){try{var s=o[c](u),d=s.value}catch(p){return void i(p)}s.done?n(d):Promise.resolve(d).then(a,l)}t.exports=function(o){return function(){var n=this,i=arguments;return new Promise((function(a,l){var c=o.apply(n,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,r,e){var o=e(27);t.exports=function(n,i,a){return(i=o(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,n},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,i=Array(o);n<o;n++)i[n]=e[n];return i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=k},,function(t,r){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,r,e){var o=e(27);function n(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&&n(i.prototype,a),l&&n(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(11);t.exports=function(n,i){if(n){if(typeof n=="string")return o(n,i);var a={}.toString.call(n).slice(8,-1);return a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(n,i):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(e,o){this.v=e,this.k=o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(19);function n(){/*! 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,y,m){var g=h&&h.prototype instanceof p?h:p,w=Object.create(g.prototype);return o(w,"_invoke",(function(C,Q,P){var T,E,A,D=0,I=P||[],O=!1,R={p:0,n:0,v:i,a:N,f:N.bind(i,4),d:function(B,H){return T=B,E=0,A=i,R.n=H,d}};function N(B,H){for(E=B,A=H,a=0;!O&&D&&!V&&a<I.length;a++){var V,W=I[a],X=R.p,J=W[2];B>3?(V=J===H)&&(A=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 O=!0,H}return function(B,H,V){if(D>1)throw TypeError("Generator is already running");for(O&&H===1&&N(H,V),E=H,A=V;(a=E<2?i:A)||!O;){T||(E?E<3?(E>1&&(R.n=-1),N(E,A)):R.n=A:R.v=A);try{if(D=2,T){if(E||(B="next"),a=T[B]){if(!(a=a.call(T,A)))throw TypeError("iterator result is not an object");if(!a.done)return a;A=a.value,E<2&&(E=0)}else E===1&&(a=T.return)&&a.call(T),E<2&&(A=TypeError("The iterator does not provide a '"+B+"' method"),E=1);T=i}else if((a=(O=R.n<0)?A:C.call(Q,R))!==d)break}catch(W){T=i,E=1,A=W}finally{D=1}}return{value:a,done:O}}})(_,y,m),!0),w}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=n=function(){return{w:s,m:S}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){function e(o,n,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,n,i,a)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(18),n=e(21);t.exports=function(i,a,l,c,u){return new n(o().w(i,a,l,c),u||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(17),n=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||(n(i.prototype),n(i.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),n(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,r){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,r){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,r,e){var o=e(3).default,n=e(36);t.exports=function(i){var a=n(i,"string");return o(a)=="symbol"?a:a+""},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){e.d(r,"a",(function(){return i}));var o=e(35),n=e.n(o),i="__polyvUILangKey";function a(l,c,u){return u.replace(new RegExp("\\${"+l+"}","g"),c)}r.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=n()(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,r,e){var o=e(17),n=e(18),i=e(30),a=e(20),l=e(21),c=e(31),u=e(32);function s(){var d=n(),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(y){_||(_={stop:function(){return h(y.a,2)},catch:function(){return y.v},abrupt:function(m,g){return h(y.a,v[m],g)},delegateYield:function(m,g,w){return _.resultName=g,h(y.d,u(m),w)},finish:function(m){return h(y.f,m)}},h=function(m,g,w){y.p=_.prev,y.n=_.next;try{return m(g,w)}finally{_.next=y.n}}),_.resultName&&(_[_.resultName]=y.v,_.resultName=void 0),_.sent=y.v,_.next=y.n;try{return S.call(this,_)}finally{y.p=_.prev,y.n=_.next}}}return(t.exports=s=function(){return{wrap:function(S,_,h,y){return d.w(x(S),_,h,y&&y.reverse())},isGeneratorFunction:b,mark:d.m,awrap:function(S,_){return new o(S,_)},AsyncIterator:l,async:function(S,_,h,y,m){return(b(_)?a:i)(x(S),_,h,y,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,r,e){var o=e(20);t.exports=function(n,i,a,l,c){var u=o(n,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,r){t.exports=function(e){var o=Object(e),n=[];for(var i in o)n.unshift(i);return function a(){for(;n.length;)if((i=n.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,r,e){var o=e(3).default;t.exports=function(n){if(n!=null){var i=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],a=0;if(i)return i.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}}}throw new TypeError(o(n)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(11);t.exports=function(n){if(Array.isArray(n))return o(n)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2035
2035
  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,r,e){var o=e(37),n=e(43),i=e(16),a=e(38);t.exports=function(l,c){return o(l)||n(l,c)||i(l,c)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r,e){var o=e(3).default;t.exports=function(n,i){if(o(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var l=a.call(n,i||"default");if(o(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){t.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2036
- 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,r,e){function o(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=n.$scopedSlots[i],c=n.$slots[i];return l?l(a):c||null}e.d(r,"b",(function(){return o})),r.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var n=this.slotName,i=this.target.$scopedSlots[n],a=this.target.$slots[n];return i||a?function(l,c){return i?i(c):a}:function(){}}},render:function(){var n=arguments[0];return n(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(t,r){var e=Object.prototype.hasOwnProperty,o=r.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},n=Object.prototype.toString,i=r.isFunction=function(a){return n.call(a)==="[object Function]"};r.isDate=function(a){return n.call(a)==="[object Date]"},r.isObject=function(a){return n.call(a)==="[object Object]"},r.isEmptyObject=function(a){if(a!=null){for(var l in a)if(e.call(a,l))return!1}return!0},r.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},r.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},r.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},r.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},r.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,r){t.exports=function(e,o){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,a,l,c,u=[],s=!0,d=!1;try{if(l=(n=n.call(e)).next,o===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=l.call(n)).done)&&(u.push(i.value),u.length!==o);s=!0);}catch(p){d=!0,a=p}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,function(t,r,e){var o=e(37),n=e(26),i=e(16),a=e(38);t.exports=function(l){return o(l)||n(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){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 n(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,y=v;p=n(p,f,b,v,s[x+0],7,-680876936),v=n(v,p,f,b,s[x+1],12,-389564586),b=n(b,v,p,f,s[x+2],17,606105819),f=n(f,b,v,p,s[x+3],22,-1044525330),p=n(p,f,b,v,s[x+4],7,-176418897),v=n(v,p,f,b,s[x+5],12,1200080426),b=n(b,v,p,f,s[x+6],17,-1473231341),f=n(f,b,v,p,s[x+7],22,-45705983),p=n(p,f,b,v,s[x+8],7,1770035416),v=n(v,p,f,b,s[x+9],12,-1958414417),b=n(b,v,p,f,s[x+10],17,-42063),f=n(f,b,v,p,s[x+11],22,-1990404162),p=n(p,f,b,v,s[x+12],7,1804603682),v=n(v,p,f,b,s[x+13],12,-40341101),b=n(b,v,p,f,s[x+14],17,-1502002290),p=i(p,f=n(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,y)}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,r,e){var o=e(42),n=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 y=new Error(s);return y.isAJAXCancel=!0,y}var p="Request timeout";function f(){var y=new Error(p);return y.isAJAXTimeout=!0,y}function b(y){return function(m,g){(g=typeof g=="function"?{onload:g}:o.extend({},g)).timeout&&(g.timeout=i.parse(g.timeout));var w=o.extend({},g.data);g.nocache&&(w._=+new Date);for(var C=[m=a.append(m,w,{ignoreEmpty:!0}),g],Q=2;Q<arguments.length;Q++)C.push(arguments[Q]);return y.apply(this,C)}}var v="onload"in c.createElement("script")?"onload":"onreadystatechange",x=r.getScript=b((function(y,m,g){return new n((function(w,C){var Q,P,T;function E(){Q&&(T||!Q.readyState||/loaded|complete/.test(Q.readyState))&&(Q[v]=Q.onerror=null,u.removeChild(Q),Q=null,P&&clearTimeout(P),g&&(window[g]=null),T||w())}function A(I){!T&&Q&&(T=!0,E(),I&&C(I()))}g&&(l[g]=function(){T||w(o.toArray(arguments))}),Q=c.createElement("script"),m.charset&&(Q.charset=m.charset),Q.async=!0,Q[v]=Q.onerror=E,Q.src=y,u.firstChild?u.insertBefore(Q,u.firstChild):u.appendChild(Q),m.receiveCancel&&m.receiveCancel.call(l,(function(){A(d)}));var D=Number(m.timeout);D>0&&(P=setTimeout((function(){A(f)}),D))}))})),S=r.jsonp=function(y,m){var g;m=o.extend({},m);var w=String(m.method).toUpperCase()==="POST";return/[?&]callback=([^&]+)/.test(y)?g=RegExp.$1:(g=m.callbackName||(function(C){var Q=c.createElement("a");Q.href=C;var P=Q.pathname.split("/");P=(P[P.length-1]||"index").replace(/\.\w+$/,"");for(var T="jsonp_callback_"+(Q.host+"_"+P).replace(/\W+/g,""),E=T,A=1;l[E]!==void 0;)E=T+"_"+A++;return E})(y),w||(y=a.append(y,{callback:g}))),w?(function(C,Q,P){return new n((function(T,E){var A,D,I,O;function R(){A&&(D.removeEventListener?D.removeEventListener("load",R,!1):D.detachEvent&&D.detachEvent("onload",R),A.parentNode&&A.parentNode.removeChild(A),A=D=null,I&&clearTimeout(I),P&&(window[P]=null),O||T())}function N(X){!O&&A&&(O=!0,R(),X&&E(X()))}P&&(l[P]=function(){O||T(o.toArray(arguments))}),(A=c.createElement("div")).style.display="none";var B=o.randomStr("form-target-");A.innerHTML='<form action="'+C+'" target="'+B+'" method="post"><input type="hidden" name="callback" value="'+P+'" /></form><iframe name="'+B+'" id="'+B+'"></iframe>';var H=A.firstChild;o.each(Q.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(A,V.firstChild):V.appendChild(A),H.submit(),(D=H.nextSibling).addEventListener?D.addEventListener("load",R,!1):D.attachEvent&&D.attachEvent("onload",R),Q.receiveCancel&&Q.receiveCancel.call(l,(function(){N(d)}));var W=Number(i.parse(Q.timeout||0));W>0&&(I=setTimeout((function(){N(f)}),W))}))})(y,m,g):x(y,m,g)};r.getImage=b((function(y){return new n((function(m,g){var w=new Image;w.onload=function(){m(y)},w.onabort=w.onerror=function(){g(new Error("Failed to load image"))},w.src=y})).finally((function(){}))}));var _=r.createXHR=l.XMLHttpRequest?function(){return new l.XMLHttpRequest}:function(){return new l.ActiveXObject("Microsoft.XMLHTTP")},h=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;r.send=function(y,m){typeof y!="string"&&(y=(m=y).url),m=m||{};var g=String(m.responseType||m.dataType||"").toLowerCase();return g==="jsonp"?S(y,m):new n((function(w,C){var Q,P,T=_();function E(V){P||T.readyState===4||(P=!0,T.abort(),V&&C(V()))}function A(){if(!P){var V=T.readyState,W=V===4?T.status:0;if(V===4&&W){var X,J,re;switch(Q&&clearTimeout(Q),g=g||(function(de){if(h.test(de))return RegExp.$1.toLowerCase()})(T.getResponseHeader("Content-Type"))){case"json":var ie=(T.responseText||"").trim();if(ie)try{X=JSON.parse(ie)}catch(de){J="Invalid JSON format"}break;case"xml":(X=T.responseXML)&&X.documentElement||(J="Invalid XML format");break;default:X=T.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):w(X)}}}var D,I=(m.method||"GET").toUpperCase(),O=typeof m.async!="boolean"||m.async,R=m.data,N=m.headers||{},B=String(m.requestType||"form").toLowerCase();if(R&&(I==="GET"||I==="DELETE"?(y=a.append(y,R,{ignoreEmpty:!0}),R=null):(B==="json"?(R=JSON.stringify(R),D="application/json; charset=utf-8"):typeof R!="string"&&(R=a.stringify(R,{ignoreEmpty:!0}),D="application/x-www-form-urlencoded; charset=utf-8"),N["Content-Type"]=N["Content-Type"]||D)),m.nocache&&(y=a.append(y,{_:+new Date})),O){var H=Number(i.parse(m.timeout||0));H>0&&(Q=setTimeout((function(){E(f)}),H)),T.onreadystatechange=A,"onerror"in T&&(T.onerror=function(){Q&&clearTimeout(Q),P=!0,C(new Error("Network error"))})}m.username?T.open(I,y,O,m.username,m.password):T.open(I,y,O),(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})(y)&&(T.withCredentials=!!m.withCredentials),o.each(N,(function(V,W){T.setRequestHeader(W,V)})),m.beforeSend&&m.beforeSend.call(l,T),T.send(R||""),m.receiveCancel&&m.receiveCancel.call(l,(function(){E(d)})),O||A.call(T)}))},r.serializeForm=function(y){if("nodeType"in y||typeof y.get!="function"||(y=y.get(0)),y.tagName!=="FORM")throw new Error("Form must be an HTML form element");var m,g,w,C,Q={},P=y.elements,T=P.length;for(m=0;m<T;m++)w=(g=P[m]).name,!g.disabled&&w&&(g.tagName!=="INPUT"||g.type!=="radio"&&g.type!=="checkbox"||g.checked)&&(C=g.type==="password"?g.value:g.value.trim(),Q.hasOwnProperty(w)?(Array.isArray(Q[w])||(Q[w]=[Q[w]]),Q[w].push(C)):Q[w]=C);return Q}},,function(t,r,e){e.r(r),e(72);var o=e(9),n=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(O,R){var N=[],B=p()(O),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(O,R){var N=Object.keys(O);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(O);R&&(B=B.filter((function(H){return Object.getOwnPropertyDescriptor(O,H).enumerable}))),N.push.apply(N,B)}return N}function x(O){for(var R=1;R<arguments.length;R++){var N=arguments[R]!=null?arguments[R]:{};R%2?v(N,!0).forEach((function(B){c()(O,B,N[B])})):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(N)):v(N).forEach((function(B){Object.defineProperty(O,B,Object.getOwnPropertyDescriptor(N,B))}))}return O}var S={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},data:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},tabList:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var O=s()(this.tabList);return f(this.value,this.data).forEach((function(R,N){N<O.length&&(O[N]=R.name)})),O},listData:function(){var O=[],R=f(this.value,this.data);if(this.dimension===0)O=s()(this.data);else{var N=R[this.dimension-1];Array.isArray(N&&N.childrens)&&(O=s()(N.childrens))}return O=O.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 O=f(this.value,this.data),R=O[O.length-1]||{};return O.length&&(!R.childrens||!R.childrens.length)||this.tabList.length&&this.tabList.length<=O.length}},methods:{handleTabClick:function(O){var R=this,N=f(this.value,this.data)[O-1];(O===0||Array.isArray(N&&N.childrens))&&(this.dimension=O),setTimeout((function(){R.$emit("handleUpdatePopper")}))},handleListClick:function(O){var R=this,N=s()(this.value);N[this.dimension]=O.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 O=this,R=arguments[0];return R("div",{class:this.wrapClass},[R("div",{class:this.tabWrapClass},[this.tabListData.map((function(N,B){var H=[O.tabItemClass];return B===O.dimension&&H.push(O.tabItemSelectedClass),R("div",{class:H,on:{click:function(){return O.handleTabClick(B)}}},[N])}))]),R("div",{class:this.listClass},[this.listData.map((function(N){var B=[O.listItemClass];N.selected&&B.push(O.listItemSelectedClass);var H={label:N.name,selected:N.selected};return R("div",{class:B,on:{click:function(){return O.handleListClick(N)}}},[Object(b.b)(O,"item",H)])}))])])},getSelectData:f,isSelectFinish:function(O,R){var N=f(O,R),B=N[N.length-1]||{};return N.length&&(!B.childrens||!B.childrens.length)},install:function(O){O.component(S.name,S)}},_=S,h=e(7),y=e(64),m=e.n(y),g=e(65),w={md5:m.a,ajax:g.send},C="https://s4.videocc.net/library/china-area/china-area-20200630.json",Q={};function P(O){var R=O||h.a.getConfig("AreaPicker","areaDataUrl")||C;return Q[R]||(Q[R]=new Promise((function(N){n()(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,w.ajax({url:R});case 1:H=V.sent,N(H);case 2:case"end":return V.stop()}}),B)})))()}))),Q[R]}var T={props:{value:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(O){return["","area","city","province"].indexOf(O)!==-1}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return P(this.areaDataUrl)}},loadAreaDataUrl:P},E={name:"plv-area-picker-core",mixins:[T,e(28).b],components:{PlvCascaderPickerCore:_},methods:{handleSelectChange:function(O){this.$emit("input",O)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var O=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return O.slice(0,1);case"city":return O.slice(0,2);case"area":return O.slice(0,3)}return O}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:P},A=e(1),D={name:"plv-area-picker-mob",mixins:[T],components:{PlvAreaPickerCore:Object(A.a)(E,(function(){var O=this,R=O.$createElement,N=O._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":O.tabList,value:O.value,data:O.areaData},on:{input:O.handleSelectChange,handleUpdatePopper:O.handleUpdatePopper,finish:O.handleSelectFinish},scopedSlots:O._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker__list__item__inner"},[O._t("item",[O._v(O._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 O=this;return n()(a.a.mark((function R(){return a.a.wrap((function(N){for(;;)switch(N.prev=N.next){case 0:if(O.areaData.length!==0){N.next=2;break}return N.next=1,O.loadAreaDataUrl();case 1:O.realAreaData=N.sent,N.next=3;break;case 2:O.realAreaData=O.areaData;case 3:case"end":return N.stop()}}),R)})))()}}},methods:{handleInput:function(O){this.$emit("input",O)},handleFinish:function(){this.$emit("finish")}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:P},I=Object(A.a)(D,(function(){var O=this,R=O.$createElement,N=O._self._c||R;return N("div",{staticClass:"plv-area-picker-mob"},[N("plv-area-picker-core",{attrs:{value:O.value,"area-data":O.realAreaData},on:{input:O.handleInput,finish:O.handleFinish},scopedSlots:O._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[N("span",[O._v(O._s(B.label))]),O._v(" "),N("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)}),[],!1,null,null,null).exports;I.install=function(O){O.component(I.name,I)},r.default=I},,,,,function(t,r,e){},function(t,r,e){(function(o){var n;o!==void 0?n=o.Promise:typeof window!="undefined"&&(n=window.Promise),(n=e(n?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]()):n.resolve()},n.delay=function(i){return new n((function(a){setTimeout(a,i)}))},t.exports=n}).call(this,e(25))},function(t,r,e){var o=e(42).createClass((function(n){this._promise=new Promise(n)}),{then:function(n,i){var a=this;return new o((function(l){l(a._promise.then(n,i))}))},spread:function(n,i){var a=this;return new o((function(l){l(a._promise.then((function(c){return n.apply(this,c)}),i))}))},catch:function(n){var i=this;return new o((function(a){a(i._promise.catch(n))}))},finally:function(n){var i=this;return new o((function(a,l){i._promise.then((function(c){n.apply(this,arguments),a(c)}),(function(c){n.apply(this,arguments),l(c)}))}))}});["all","race","reject","resolve"].forEach((function(n){o[n]=Promise[n]})),t.exports=o},function(t,r,e){var o=e(42),n=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 n(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,r){var e={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},o=r.parse=function(n){if(typeof n=="number")return n;if(!isNaN(n))return Number(n);var i=parseFloat(n);if(isNaN(i))throw new Error("Invalid timespan string");var a=n.split(i)[1].trim().toUpperCase().replace(/S$/,"");if(e.hasOwnProperty(a))return i*e[a];throw new Error('Invalid time unit "'+a+'"')};r.addToDate=function(n,i){return new Date((typeof n=="number"?n:n.getTime())+o(i))}},function(t,r,e){var o=e(42);r.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 n=r.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("&")};r.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"?n(a,l):a.replace(/^[?&]/,""),i+(i.indexOf("?")!==-1?"&":"?")+a+u}}]).default),Np}var mK=hK();const O9=ln(mK);function Vl(t,r){let e=[];const[o,...n]=t;if(typeof o=="undefined")return e;const i=r.find(a=>a.code===o);return i&&(e=[i]),i&&Array.isArray(i.childrens)&&(e=[...e,...Vl(n,i.childrens)]),e}function Bp(t,r){const e=Vl(t,r),o=e[e.length-1]||{};return!!(e.length&&(!o.childrens||!o.childrens.length))}const vK=()=>Ce(ee({},P9()),{value:_e.array(),areaPickerText:_e.array(),placeholder:_e.string}),gK=()=>ee({input:Lr()},g9("areaPickerText"));let Vp;const bK=t=>{const r=k.ref([]),{AreaPicker:e,props:o,emit:n}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=T9({props:o}),c=k.ref([]),u=k.computed(()=>o.placeholder),s=k.computed(()=>Bp(o.value,r.value)),d=k.computed(()=>Bp(c.value,r.value)),p=k.computed(()=>{let w=[];return d.value?w=Vl(c.value,r.value):Bp(o.value,r.value)&&(w=Vl(o.value,r.value)),w.map(C=>C.name)}),f=k.computed(()=>p.value.join("/"));k.watch(p,()=>{n("update:areaPickerText",p.value)},{immediate:!0}),k.watch(()=>k.unref(c),()=>{ri||n("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,y()}function _(){v.value=!1,h()}function h(){d.value?n("input",k.unref(c)):c.value=o.value,a()}function y(){l()}function m(){k.unref(d)&&(n("input",k.unref(c)),_())}function g(w){return we(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(w,C)})}return k.onBeforeMount(()=>we(null,null,function*(){if(r.value.length===0)if(Vp)r.value=Vp;else{const w=yield e.loadAreaDataUrl();Vp=w,r.value=w}})),{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:y,onClickConfirm:m}};vK(),gK(),tK(),JZ(),qZ();function yK(t,r={}){const{immediate:e=!0,resetScrollOnRefresh:o=!0}=r,n=r.keyword||k.ref(""),i=r.pageNumber||k.ref(1),a=r.pageSize||k.ref(10),l=r.contents||k.ref([]),c=r.totalItems||k.ref(0),u=r.totalPages||k.ref(0),s=r.isFirstFinish||k.ref(!1),d=k.ref(!1),p=k.ref(!1);function f(){return we(this,arguments,function*(m={}){var Q,P;const{setTotalPages:g=!0}=m,w=(Q=m.pageNumber)!=null?Q:i.value,C=(P=m.pageSize)!=null?P:a.value;p.value=!0;try{const T=yield t({pageNumber:w,pageSize:C,keyword:n.value});T.pageNumber===1?l.value=[...T.contents]:l.value.push(...T.contents),g&&(u.value=T.totalPages||0),c.value=T.totalItems||0,d.value=T.contents.length<C,p.value=!1}catch(T){p.value=!1}s.value=!0})}function b(){d.value||p.value||u.value>0&&i.value>=u.value||(i.value+=1,f())}const v=r.scrollRef||k.ref(),x=Ms(m=>{const g=m.target;if(!g)return;const{scrollTop:w,scrollHeight:C,clientHeight:Q}=g;w+Q>=C-Q*.2&&b()},300);k.watch(v,()=>{v.value&&v.value.addEventListener("scroll",x)},{immediate:!0});const S=Ms(()=>{v.value&&(v.value.scrollTop=0),h()},300),_=k.computed(()=>{const m={keyword:n.value};return r.getFilterParams&&Object.assign(m,r.getFilterParams()),m});k.watch(_,S),k.onBeforeUnmount(()=>{x.cancel(),S.cancel()});function h(){return i.value=1,o&&v.value&&(v.value.scrollTop=0),f()}function y(){return we(this,null,function*(){yield f({pageNumber:1,pageSize:Math.max(l.value.length,a.value),setTotalPages:!1})})}return e&&k.onMounted(()=>{f()}),{scrollRef:v,pageNumber:i,pageSize:a,contents:l,keyword:n,isFirstFinish:s,refresh:h,refreshList:y,onScroll:x}}const wK=Object.prototype.hasOwnProperty;function xK(t,r){return wK.call(t,r)}function _K(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const r in t)if(xK(t,r))return!1}return!0}function CK(t){return t!=null&&t==t.window}function j9(t){return t!=null&&!CK(t)&&typeof t.nodeType=="number"}const Ja=document.documentElement,SK=Ja.matches||Ja.webkitMatchesSelector||Ja.mozMatchesSelector||Ja.oMatchesSelector||Ja.msMatchesSelector;function kK(t,r){try{return SK.call(t,r)}catch(e){return!1}}const LK={OBJECT:!0,EMBED:!0,APPLET:!0};function QK(t){if(t==null)return 0;if(j9(t)){const r=t;return LK[r.nodeName]||r.nodeType===9?2:r.nodeType!==1?0:1}return 2}const Wp="_just4_nodeid_"+ +new Date+"_";let A9=0;const PK=Object.create(null),Up=Object.create(null);function Wl(t,r=!1){let e,o;switch(QK(t)){case 1:o=t[Wp],o?e=o.valueOf():r||(o=t[Wp]=new Number(++A9),PK[e=o.valueOf()]=function(){t[Wp]});break;case 2:for(const n in Up)if(Up[n]===t){e=Number(n);break}e||r||(e=++A9,Up[e]=t)}return e}class TK{constructor(r={}){this._space=Object.create(null),this._cloneable=r.cloneable!==!1,this._onClone=r.onClone}findSpace(r){const e=Wl(r,!0);if(e)return this._space[e]}keys(r){const e=this.findSpace(r);return e?Object.keys(e):[]}getData(r,e){const o=this.findSpace(r);if(o&&e in o)return o[e]}setData(r,e,o){const n=Wl(r);n&&(this._space[n]||(this._space[n]=Object.create(null)),this._space[n][e]=o)}clearData(r){const e=Wl(r,!0);e&&delete this._space[e]}removeData(r,e){const o=this.findSpace(r);o&&(delete o[e],_K(o)&&this.clearData(r))}cloneData(r,e){if(!this._cloneable)return;const o=this.findSpace(e);if(o){const n=Wl(r);if(!n)return;const i=this._space[n]=this._space[n]||Object.create(null);for(const a in o)i[a]=o[a];this._onClone&&this._onClone(r,e)}}}function D9(t){return new TK(t)}D9();const Hp=Object.create(null);Hp.for="htmlFor",Hp.class="className",["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable","isMap"].forEach((function(t){Hp[t.toLowerCase()]=t}));const EK=Object.create(null);["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].forEach((function(t){EK[t]=!0}));const OK=Object.create(null);OK.float="cssFloat";const I9=Object.create(null);I9.scrollTop="pageYOffset",I9.scrollLeft="pageXOffset";const jK=/^(?:mouse|contextmenu)|click/,AK=/^touch/,DK=/^pointer/;class IK{constructor(r,e){if(this.originalEvent=r,this.type=r.type,this.timeStamp=r.timeStamp,this.target=r.target,this.currentTarget=r.currentTarget||e,jK.test(this.type)||DK.test(this.type)){const o=r;this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY}else if(AK.test(this.type)){const o=r.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"],r=Object.create(null),e=document.documentElement;return["TransitionEnd","AnimationStart","AnimationIteration","AnimationEnd","fullscreenchange","fullscreenerror"].forEach((function(o){const n=o.toLowerCase();"on"+n in e||t.some((function(i){if("on"+i+n in e)return r[n]=i+o,!0}))})),function(o){return o!=null&&r[o]?r[o]:o}})(),(function(){const t=D9({onClone:function(e){this.keys(e).forEach((function(o){e.addEventListener(o,r,!1)}))}});function r(e){const o=new IK(e,this),n=o.type,i=t.getData(o.currentTarget,n);i&&i.forEach((function(a){let l;const c=o.target;if(a.delegator&&j9(c)){if(l=(function(u,s){let d=u.target;for(;d&&d!==u.currentTarget;){if(kK(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,n){let i=t.getData(e,o);i||(i=[],t.setData(e,o,i),e.addEventListener(o,r,!1)),i.push(n)},remove(e,o,n,i){if(o&&(n||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,n,i),a.length))return}if(o)return t.removeData(e,o),void e.removeEventListener(o,r,!1);t.keys(e).forEach((function(a){e.removeEventListener(a,r,!1)})),t.clearData(e)}}})();const M9={OpenProductAddressEditPopup:"openProductAddressEditPopup"},MK=()=>({addressTarget:z.object().isRequired,addressId:z.number.def(void 0)}),RK=()=>({"add-address":be(),"choose-address":be(),"edit-address":be(),"clear-address":be()}),zK=t=>{const{props:r,emit:e}=t,{$t:o}=Xa(),{messageBox:n,getEmitter:i}=Ka(),a=k.ref(),{scrollRef:l,contents:c,isFirstFinish:u,refresh:s,onScroll:d}=yK(x=>r.addressTarget.getAddressList({pageNumber:x.pageNumber,pageSize:x.pageSize}),{immediate:!1});function p(){e("add-address"),i().emit(M9.OpenProductAddressEditPopup)}function f(x){a.value=x.id,e("choose-address",x)}function b(x){e("edit-address",x),i().emit(M9.OpenProductAddressEditPopup,x)}function v(x,S){return we(this,null,function*(){!r.addressTarget||!(yield n({content:o("addressEdit.deleteConfirm"),confirmButtonText:o("addressEdit.deleteAddress")}))||(yield r.addressTarget.deleteAddress(x.id),c.value.splice(S,1),yield k.nextTick(),(!c.value.length||x.id===a.value)&&(a.value="",e("clear-address")))})}return k.onMounted(()=>we(null,null,function*(){yield s(),r.addressId&&(a.value=r.addressId)})),{$t:o,scrollRef:l,addressList:c,isFirstFinish:u,selectedAddressId:a,refreshAddressList:s,onScroll:d,onClick:p,onChooseAddress:f,onAddressEdit:b,deleteAddress:v}},FK=k.defineComponent({__name:"address-list",props:MK(),emits:RK(),setup(t,{emit:r}){const e=t,{$t:o,scrollRef:n,addressList:i,selectedAddressId:a,onScroll:l,onClick:c,onChooseAddress:u,onAddressEdit:s,deleteAddress:d}=zK({props:e,emit:r});return{__sfc:!0,props:e,emit:r,$t:o,scrollRef:n,addressList:i,selectedAddressId:a,onScroll:l,onClick:c,onChooseAddress:u,onAddressEdit:s,deleteAddress:d,ProductIconChooseAddress:Z9,AddressItem:yY}}});var NK=function(){var r=this,e=r._self._c,o=r._self._setupProxy;return e("div",{staticClass:"plv-product-address-list"},[e("div",{ref:"scrollRef",staticClass:"plv-product-address-list__content",on:{scroll:o.onScroll}},r._l(o.addressList,function(n,i){return e(o.AddressItem,{key:i,staticClass:"plv-product-address-list__address-item",attrs:{"address-info":n},on:{"choose-address":o.onChooseAddress},scopedSlots:r._u([{key:"icon",fn:function(){return[n.id===o.selectedAddressId?e(o.ProductIconChooseAddress,{staticClass:"plv-product-address-list__icon"}):r._e()]},proxy:!0},{key:"action",fn:function(){return[e("div",{staticClass:"plv-product-address-list__action"},[e("div",{staticClass:"plv-product-address-list__action-btn",on:{click:function(a){return a.stopPropagation(),o.deleteAddress(n,i)}}},[r._v(" "+r._s(o.$t("common.delete"))+" ")]),e("div",{staticClass:"plv-product-address-list__action-btn",on:{click:function(a){return a.stopPropagation(),o.onAddressEdit(n)}}},[r._v(" "+r._s(o.$t("common.edit"))+" ")])])]},proxy:!0}],null,!0)})}),1),e("div",{staticClass:"plv-product-address-list__footer"},[e("button",{staticClass:"plv-product-address-list__footer-btn",on:{click:o.onClick}},[r._v(" "+r._s(o.$t("order.addAddress"))+" ")])])])},BK=[],VK=Co(FK,NK,BK);return VK.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-list]","[version: 1.13.0-rc-20260423.2]","[buildTime: 2026-04-23 05:57:24]");
2036
+ 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,r,e){function o(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=n.$scopedSlots[i],c=n.$slots[i];return l?l(a):c||null}e.d(r,"b",(function(){return o})),r.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var n=this.slotName,i=this.target.$scopedSlots[n],a=this.target.$slots[n];return i||a?function(l,c){return i?i(c):a}:function(){}}},render:function(){var n=arguments[0];return n(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(t,r){var e=Object.prototype.hasOwnProperty,o=r.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},n=Object.prototype.toString,i=r.isFunction=function(a){return n.call(a)==="[object Function]"};r.isDate=function(a){return n.call(a)==="[object Date]"},r.isObject=function(a){return n.call(a)==="[object Object]"},r.isEmptyObject=function(a){if(a!=null){for(var l in a)if(e.call(a,l))return!1}return!0},r.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},r.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},r.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},r.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},r.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,r){t.exports=function(e,o){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,a,l,c,u=[],s=!0,d=!1;try{if(l=(n=n.call(e)).next,o===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=l.call(n)).done)&&(u.push(i.value),u.length!==o);s=!0);}catch(p){d=!0,a=p}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}},t.exports.__esModule=!0,t.exports.default=t.exports},,,,,,,,,,,,,,,,,,,,function(t,r,e){var o=e(37),n=e(26),i=e(16),a=e(38);t.exports=function(l){return o(l)||n(l)||i(l)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,r){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 n(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,y=v;p=n(p,f,b,v,s[x+0],7,-680876936),v=n(v,p,f,b,s[x+1],12,-389564586),b=n(b,v,p,f,s[x+2],17,606105819),f=n(f,b,v,p,s[x+3],22,-1044525330),p=n(p,f,b,v,s[x+4],7,-176418897),v=n(v,p,f,b,s[x+5],12,1200080426),b=n(b,v,p,f,s[x+6],17,-1473231341),f=n(f,b,v,p,s[x+7],22,-45705983),p=n(p,f,b,v,s[x+8],7,1770035416),v=n(v,p,f,b,s[x+9],12,-1958414417),b=n(b,v,p,f,s[x+10],17,-42063),f=n(f,b,v,p,s[x+11],22,-1990404162),p=n(p,f,b,v,s[x+12],7,1804603682),v=n(v,p,f,b,s[x+13],12,-40341101),b=n(b,v,p,f,s[x+14],17,-1502002290),p=i(p,f=n(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,y)}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,r,e){var o=e(42),n=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 y=new Error(s);return y.isAJAXCancel=!0,y}var p="Request timeout";function f(){var y=new Error(p);return y.isAJAXTimeout=!0,y}function b(y){return function(m,g){(g=typeof g=="function"?{onload:g}:o.extend({},g)).timeout&&(g.timeout=i.parse(g.timeout));var w=o.extend({},g.data);g.nocache&&(w._=+new Date);for(var C=[m=a.append(m,w,{ignoreEmpty:!0}),g],Q=2;Q<arguments.length;Q++)C.push(arguments[Q]);return y.apply(this,C)}}var v="onload"in c.createElement("script")?"onload":"onreadystatechange",x=r.getScript=b((function(y,m,g){return new n((function(w,C){var Q,P,T;function E(){Q&&(T||!Q.readyState||/loaded|complete/.test(Q.readyState))&&(Q[v]=Q.onerror=null,u.removeChild(Q),Q=null,P&&clearTimeout(P),g&&(window[g]=null),T||w())}function A(I){!T&&Q&&(T=!0,E(),I&&C(I()))}g&&(l[g]=function(){T||w(o.toArray(arguments))}),Q=c.createElement("script"),m.charset&&(Q.charset=m.charset),Q.async=!0,Q[v]=Q.onerror=E,Q.src=y,u.firstChild?u.insertBefore(Q,u.firstChild):u.appendChild(Q),m.receiveCancel&&m.receiveCancel.call(l,(function(){A(d)}));var D=Number(m.timeout);D>0&&(P=setTimeout((function(){A(f)}),D))}))})),S=r.jsonp=function(y,m){var g;m=o.extend({},m);var w=String(m.method).toUpperCase()==="POST";return/[?&]callback=([^&]+)/.test(y)?g=RegExp.$1:(g=m.callbackName||(function(C){var Q=c.createElement("a");Q.href=C;var P=Q.pathname.split("/");P=(P[P.length-1]||"index").replace(/\.\w+$/,"");for(var T="jsonp_callback_"+(Q.host+"_"+P).replace(/\W+/g,""),E=T,A=1;l[E]!==void 0;)E=T+"_"+A++;return E})(y),w||(y=a.append(y,{callback:g}))),w?(function(C,Q,P){return new n((function(T,E){var A,D,I,O;function R(){A&&(D.removeEventListener?D.removeEventListener("load",R,!1):D.detachEvent&&D.detachEvent("onload",R),A.parentNode&&A.parentNode.removeChild(A),A=D=null,I&&clearTimeout(I),P&&(window[P]=null),O||T())}function N(X){!O&&A&&(O=!0,R(),X&&E(X()))}P&&(l[P]=function(){O||T(o.toArray(arguments))}),(A=c.createElement("div")).style.display="none";var B=o.randomStr("form-target-");A.innerHTML='<form action="'+C+'" target="'+B+'" method="post"><input type="hidden" name="callback" value="'+P+'" /></form><iframe name="'+B+'" id="'+B+'"></iframe>';var H=A.firstChild;o.each(Q.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(A,V.firstChild):V.appendChild(A),H.submit(),(D=H.nextSibling).addEventListener?D.addEventListener("load",R,!1):D.attachEvent&&D.attachEvent("onload",R),Q.receiveCancel&&Q.receiveCancel.call(l,(function(){N(d)}));var W=Number(i.parse(Q.timeout||0));W>0&&(I=setTimeout((function(){N(f)}),W))}))})(y,m,g):x(y,m,g)};r.getImage=b((function(y){return new n((function(m,g){var w=new Image;w.onload=function(){m(y)},w.onabort=w.onerror=function(){g(new Error("Failed to load image"))},w.src=y})).finally((function(){}))}));var _=r.createXHR=l.XMLHttpRequest?function(){return new l.XMLHttpRequest}:function(){return new l.ActiveXObject("Microsoft.XMLHTTP")},h=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;r.send=function(y,m){typeof y!="string"&&(y=(m=y).url),m=m||{};var g=String(m.responseType||m.dataType||"").toLowerCase();return g==="jsonp"?S(y,m):new n((function(w,C){var Q,P,T=_();function E(V){P||T.readyState===4||(P=!0,T.abort(),V&&C(V()))}function A(){if(!P){var V=T.readyState,W=V===4?T.status:0;if(V===4&&W){var X,J,re;switch(Q&&clearTimeout(Q),g=g||(function(de){if(h.test(de))return RegExp.$1.toLowerCase()})(T.getResponseHeader("Content-Type"))){case"json":var ie=(T.responseText||"").trim();if(ie)try{X=JSON.parse(ie)}catch(de){J="Invalid JSON format"}break;case"xml":(X=T.responseXML)&&X.documentElement||(J="Invalid XML format");break;default:X=T.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):w(X)}}}var D,I=(m.method||"GET").toUpperCase(),O=typeof m.async!="boolean"||m.async,R=m.data,N=m.headers||{},B=String(m.requestType||"form").toLowerCase();if(R&&(I==="GET"||I==="DELETE"?(y=a.append(y,R,{ignoreEmpty:!0}),R=null):(B==="json"?(R=JSON.stringify(R),D="application/json; charset=utf-8"):typeof R!="string"&&(R=a.stringify(R,{ignoreEmpty:!0}),D="application/x-www-form-urlencoded; charset=utf-8"),N["Content-Type"]=N["Content-Type"]||D)),m.nocache&&(y=a.append(y,{_:+new Date})),O){var H=Number(i.parse(m.timeout||0));H>0&&(Q=setTimeout((function(){E(f)}),H)),T.onreadystatechange=A,"onerror"in T&&(T.onerror=function(){Q&&clearTimeout(Q),P=!0,C(new Error("Network error"))})}m.username?T.open(I,y,O,m.username,m.password):T.open(I,y,O),(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})(y)&&(T.withCredentials=!!m.withCredentials),o.each(N,(function(V,W){T.setRequestHeader(W,V)})),m.beforeSend&&m.beforeSend.call(l,T),T.send(R||""),m.receiveCancel&&m.receiveCancel.call(l,(function(){E(d)})),O||A.call(T)}))},r.serializeForm=function(y){if("nodeType"in y||typeof y.get!="function"||(y=y.get(0)),y.tagName!=="FORM")throw new Error("Form must be an HTML form element");var m,g,w,C,Q={},P=y.elements,T=P.length;for(m=0;m<T;m++)w=(g=P[m]).name,!g.disabled&&w&&(g.tagName!=="INPUT"||g.type!=="radio"&&g.type!=="checkbox"||g.checked)&&(C=g.type==="password"?g.value:g.value.trim(),Q.hasOwnProperty(w)?(Array.isArray(Q[w])||(Q[w]=[Q[w]]),Q[w].push(C)):Q[w]=C);return Q}},,function(t,r,e){e.r(r),e(72);var o=e(9),n=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(O,R){var N=[],B=p()(O),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(O,R){var N=Object.keys(O);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(O);R&&(B=B.filter((function(H){return Object.getOwnPropertyDescriptor(O,H).enumerable}))),N.push.apply(N,B)}return N}function x(O){for(var R=1;R<arguments.length;R++){var N=arguments[R]!=null?arguments[R]:{};R%2?v(N,!0).forEach((function(B){c()(O,B,N[B])})):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(N)):v(N).forEach((function(B){Object.defineProperty(O,B,Object.getOwnPropertyDescriptor(N,B))}))}return O}var S={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},data:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},tabList:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var O=s()(this.tabList);return f(this.value,this.data).forEach((function(R,N){N<O.length&&(O[N]=R.name)})),O},listData:function(){var O=[],R=f(this.value,this.data);if(this.dimension===0)O=s()(this.data);else{var N=R[this.dimension-1];Array.isArray(N&&N.childrens)&&(O=s()(N.childrens))}return O=O.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 O=f(this.value,this.data),R=O[O.length-1]||{};return O.length&&(!R.childrens||!R.childrens.length)||this.tabList.length&&this.tabList.length<=O.length}},methods:{handleTabClick:function(O){var R=this,N=f(this.value,this.data)[O-1];(O===0||Array.isArray(N&&N.childrens))&&(this.dimension=O),setTimeout((function(){R.$emit("handleUpdatePopper")}))},handleListClick:function(O){var R=this,N=s()(this.value);N[this.dimension]=O.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 O=this,R=arguments[0];return R("div",{class:this.wrapClass},[R("div",{class:this.tabWrapClass},[this.tabListData.map((function(N,B){var H=[O.tabItemClass];return B===O.dimension&&H.push(O.tabItemSelectedClass),R("div",{class:H,on:{click:function(){return O.handleTabClick(B)}}},[N])}))]),R("div",{class:this.listClass},[this.listData.map((function(N){var B=[O.listItemClass];N.selected&&B.push(O.listItemSelectedClass);var H={label:N.name,selected:N.selected};return R("div",{class:B,on:{click:function(){return O.handleListClick(N)}}},[Object(b.b)(O,"item",H)])}))])])},getSelectData:f,isSelectFinish:function(O,R){var N=f(O,R),B=N[N.length-1]||{};return N.length&&(!B.childrens||!B.childrens.length)},install:function(O){O.component(S.name,S)}},_=S,h=e(7),y=e(64),m=e.n(y),g=e(65),w={md5:m.a,ajax:g.send},C="https://s4.videocc.net/library/china-area/china-area-20200630.json",Q={};function P(O){var R=O||h.a.getConfig("AreaPicker","areaDataUrl")||C;return Q[R]||(Q[R]=new Promise((function(N){n()(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,w.ajax({url:R});case 1:H=V.sent,N(H);case 2:case"end":return V.stop()}}),B)})))()}))),Q[R]}var T={props:{value:{type:Array,default:function(){return[]},validator:function(O){return Array.isArray(O)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(O){return["","area","city","province"].indexOf(O)!==-1}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return P(this.areaDataUrl)}},loadAreaDataUrl:P},E={name:"plv-area-picker-core",mixins:[T,e(28).b],components:{PlvCascaderPickerCore:_},methods:{handleSelectChange:function(O){this.$emit("input",O)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var O=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return O.slice(0,1);case"city":return O.slice(0,2);case"area":return O.slice(0,3)}return O}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:P},A=e(1),D={name:"plv-area-picker-mob",mixins:[T],components:{PlvAreaPickerCore:Object(A.a)(E,(function(){var O=this,R=O.$createElement,N=O._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":O.tabList,value:O.value,data:O.areaData},on:{input:O.handleSelectChange,handleUpdatePopper:O.handleUpdatePopper,finish:O.handleSelectFinish},scopedSlots:O._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker__list__item__inner"},[O._t("item",[O._v(O._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 O=this;return n()(a.a.mark((function R(){return a.a.wrap((function(N){for(;;)switch(N.prev=N.next){case 0:if(O.areaData.length!==0){N.next=2;break}return N.next=1,O.loadAreaDataUrl();case 1:O.realAreaData=N.sent,N.next=3;break;case 2:O.realAreaData=O.areaData;case 3:case"end":return N.stop()}}),R)})))()}}},methods:{handleInput:function(O){this.$emit("input",O)},handleFinish:function(){this.$emit("finish")}},getSelectData:_.getSelectData,isSelectFinish:_.isSelectFinish,loadAreaDataUrl:P},I=Object(A.a)(D,(function(){var O=this,R=O.$createElement,N=O._self._c||R;return N("div",{staticClass:"plv-area-picker-mob"},[N("plv-area-picker-core",{attrs:{value:O.value,"area-data":O.realAreaData},on:{input:O.handleInput,finish:O.handleFinish},scopedSlots:O._u([{key:"item",fn:function(B){return N("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[N("span",[O._v(O._s(B.label))]),O._v(" "),N("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)}),[],!1,null,null,null).exports;I.install=function(O){O.component(I.name,I)},r.default=I},,,,,function(t,r,e){},function(t,r,e){(function(o){var n;o!==void 0?n=o.Promise:typeof window!="undefined"&&(n=window.Promise),(n=e(n?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]()):n.resolve()},n.delay=function(i){return new n((function(a){setTimeout(a,i)}))},t.exports=n}).call(this,e(25))},function(t,r,e){var o=e(42).createClass((function(n){this._promise=new Promise(n)}),{then:function(n,i){var a=this;return new o((function(l){l(a._promise.then(n,i))}))},spread:function(n,i){var a=this;return new o((function(l){l(a._promise.then((function(c){return n.apply(this,c)}),i))}))},catch:function(n){var i=this;return new o((function(a){a(i._promise.catch(n))}))},finally:function(n){var i=this;return new o((function(a,l){i._promise.then((function(c){n.apply(this,arguments),a(c)}),(function(c){n.apply(this,arguments),l(c)}))}))}});["all","race","reject","resolve"].forEach((function(n){o[n]=Promise[n]})),t.exports=o},function(t,r,e){var o=e(42),n=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 n(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,r){var e={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},o=r.parse=function(n){if(typeof n=="number")return n;if(!isNaN(n))return Number(n);var i=parseFloat(n);if(isNaN(i))throw new Error("Invalid timespan string");var a=n.split(i)[1].trim().toUpperCase().replace(/S$/,"");if(e.hasOwnProperty(a))return i*e[a];throw new Error('Invalid time unit "'+a+'"')};r.addToDate=function(n,i){return new Date((typeof n=="number"?n:n.getTime())+o(i))}},function(t,r,e){var o=e(42);r.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 n=r.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("&")};r.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"?n(a,l):a.replace(/^[?&]/,""),i+(i.indexOf("?")!==-1?"&":"?")+a+u}}]).default),Np}var mK=hK();const O9=ln(mK);function Vl(t,r){let e=[];const[o,...n]=t;if(typeof o=="undefined")return e;const i=r.find(a=>a.code===o);return i&&(e=[i]),i&&Array.isArray(i.childrens)&&(e=[...e,...Vl(n,i.childrens)]),e}function Bp(t,r){const e=Vl(t,r),o=e[e.length-1]||{};return!!(e.length&&(!o.childrens||!o.childrens.length))}const vK=()=>Ce(ee({},P9()),{value:_e.array(),areaPickerText:_e.array(),placeholder:_e.string}),gK=()=>ee({input:Lr()},g9("areaPickerText"));let Vp;const bK=t=>{const r=k.ref([]),{AreaPicker:e,props:o,emit:n}=t,{formItemIsError:i,blurToValidateItem:a,focusToRemoveError:l}=T9({props:o}),c=k.ref([]),u=k.computed(()=>o.placeholder),s=k.computed(()=>Bp(o.value,r.value)),d=k.computed(()=>Bp(c.value,r.value)),p=k.computed(()=>{let w=[];return d.value?w=Vl(c.value,r.value):Bp(o.value,r.value)&&(w=Vl(o.value,r.value)),w.map(C=>C.name)}),f=k.computed(()=>p.value.join("/"));k.watch(p,()=>{n("update:areaPickerText",p.value)},{immediate:!0}),k.watch(()=>k.unref(c),()=>{ri||n("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,y()}function _(){v.value=!1,h()}function h(){d.value?n("input",k.unref(c)):c.value=o.value,a()}function y(){l()}function m(){k.unref(d)&&(n("input",k.unref(c)),_())}function g(w){return we(this,null,function*(){const C=yield e.loadAreaDataUrl();return e.getSelectData(w,C)})}return k.onBeforeMount(()=>we(null,null,function*(){if(r.value.length===0)if(Vp)r.value=Vp;else{const w=yield e.loadAreaDataUrl();Vp=w,r.value=w}})),{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:y,onClickConfirm:m}};vK(),gK(),tK(),JZ(),qZ();function yK(t,r={}){const{immediate:e=!0,resetScrollOnRefresh:o=!0}=r,n=r.keyword||k.ref(""),i=r.pageNumber||k.ref(1),a=r.pageSize||k.ref(10),l=r.contents||k.ref([]),c=r.totalItems||k.ref(0),u=r.totalPages||k.ref(0),s=r.isFirstFinish||k.ref(!1),d=k.ref(!1),p=k.ref(!1);function f(){return we(this,arguments,function*(m={}){var Q,P;const{setTotalPages:g=!0}=m,w=(Q=m.pageNumber)!=null?Q:i.value,C=(P=m.pageSize)!=null?P:a.value;p.value=!0;try{const T=yield t({pageNumber:w,pageSize:C,keyword:n.value});T.pageNumber===1?l.value=[...T.contents]:l.value.push(...T.contents),g&&(u.value=T.totalPages||0),c.value=T.totalItems||0,d.value=T.contents.length<C,p.value=!1}catch(T){p.value=!1}s.value=!0})}function b(){d.value||p.value||u.value>0&&i.value>=u.value||(i.value+=1,f())}const v=r.scrollRef||k.ref(),x=Ms(m=>{const g=m.target;if(!g)return;const{scrollTop:w,scrollHeight:C,clientHeight:Q}=g;w+Q>=C-Q*.2&&b()},300);k.watch(v,()=>{v.value&&v.value.addEventListener("scroll",x)},{immediate:!0});const S=Ms(()=>{v.value&&(v.value.scrollTop=0),h()},300),_=k.computed(()=>{const m={keyword:n.value};return r.getFilterParams&&Object.assign(m,r.getFilterParams()),m});k.watch(_,S),k.onBeforeUnmount(()=>{x.cancel(),S.cancel()});function h(){return i.value=1,o&&v.value&&(v.value.scrollTop=0),f()}function y(){return we(this,null,function*(){yield f({pageNumber:1,pageSize:Math.max(l.value.length,a.value),setTotalPages:!1})})}return e&&k.onMounted(()=>{f()}),{scrollRef:v,pageNumber:i,pageSize:a,contents:l,keyword:n,isFirstFinish:s,refresh:h,refreshList:y,onScroll:x}}const wK=Object.prototype.hasOwnProperty;function xK(t,r){return wK.call(t,r)}function _K(t){if(t!=null){if(Array.isArray(t))return!t.length;for(const r in t)if(xK(t,r))return!1}return!0}function CK(t){return t!=null&&t==t.window}function j9(t){return t!=null&&!CK(t)&&typeof t.nodeType=="number"}const Ja=document.documentElement,SK=Ja.matches||Ja.webkitMatchesSelector||Ja.mozMatchesSelector||Ja.oMatchesSelector||Ja.msMatchesSelector;function kK(t,r){try{return SK.call(t,r)}catch(e){return!1}}const LK={OBJECT:!0,EMBED:!0,APPLET:!0};function QK(t){if(t==null)return 0;if(j9(t)){const r=t;return LK[r.nodeName]||r.nodeType===9?2:r.nodeType!==1?0:1}return 2}const Wp="_just4_nodeid_"+ +new Date+"_";let A9=0;const PK=Object.create(null),Up=Object.create(null);function Wl(t,r=!1){let e,o;switch(QK(t)){case 1:o=t[Wp],o?e=o.valueOf():r||(o=t[Wp]=new Number(++A9),PK[e=o.valueOf()]=function(){t[Wp]});break;case 2:for(const n in Up)if(Up[n]===t){e=Number(n);break}e||r||(e=++A9,Up[e]=t)}return e}class TK{constructor(r={}){this._space=Object.create(null),this._cloneable=r.cloneable!==!1,this._onClone=r.onClone}findSpace(r){const e=Wl(r,!0);if(e)return this._space[e]}keys(r){const e=this.findSpace(r);return e?Object.keys(e):[]}getData(r,e){const o=this.findSpace(r);if(o&&e in o)return o[e]}setData(r,e,o){const n=Wl(r);n&&(this._space[n]||(this._space[n]=Object.create(null)),this._space[n][e]=o)}clearData(r){const e=Wl(r,!0);e&&delete this._space[e]}removeData(r,e){const o=this.findSpace(r);o&&(delete o[e],_K(o)&&this.clearData(r))}cloneData(r,e){if(!this._cloneable)return;const o=this.findSpace(e);if(o){const n=Wl(r);if(!n)return;const i=this._space[n]=this._space[n]||Object.create(null);for(const a in o)i[a]=o[a];this._onClone&&this._onClone(r,e)}}}function D9(t){return new TK(t)}D9();const Hp=Object.create(null);Hp.for="htmlFor",Hp.class="className",["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable","isMap"].forEach((function(t){Hp[t.toLowerCase()]=t}));const EK=Object.create(null);["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].forEach((function(t){EK[t]=!0}));const OK=Object.create(null);OK.float="cssFloat";const I9=Object.create(null);I9.scrollTop="pageYOffset",I9.scrollLeft="pageXOffset";const jK=/^(?:mouse|contextmenu)|click/,AK=/^touch/,DK=/^pointer/;class IK{constructor(r,e){if(this.originalEvent=r,this.type=r.type,this.timeStamp=r.timeStamp,this.target=r.target,this.currentTarget=r.currentTarget||e,jK.test(this.type)||DK.test(this.type)){const o=r;this.clientX=o.clientX,this.clientY=o.clientY,this.pageX=o.pageX,this.pageY=o.pageY}else if(AK.test(this.type)){const o=r.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"],r=Object.create(null),e=document.documentElement;return["TransitionEnd","AnimationStart","AnimationIteration","AnimationEnd","fullscreenchange","fullscreenerror"].forEach((function(o){const n=o.toLowerCase();"on"+n in e||t.some((function(i){if("on"+i+n in e)return r[n]=i+o,!0}))})),function(o){return o!=null&&r[o]?r[o]:o}})(),(function(){const t=D9({onClone:function(e){this.keys(e).forEach((function(o){e.addEventListener(o,r,!1)}))}});function r(e){const o=new IK(e,this),n=o.type,i=t.getData(o.currentTarget,n);i&&i.forEach((function(a){let l;const c=o.target;if(a.delegator&&j9(c)){if(l=(function(u,s){let d=u.target;for(;d&&d!==u.currentTarget;){if(kK(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,n){let i=t.getData(e,o);i||(i=[],t.setData(e,o,i),e.addEventListener(o,r,!1)),i.push(n)},remove(e,o,n,i){if(o&&(n||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,n,i),a.length))return}if(o)return t.removeData(e,o),void e.removeEventListener(o,r,!1);t.keys(e).forEach((function(a){e.removeEventListener(a,r,!1)})),t.clearData(e)}}})();const M9={OpenProductAddressEditPopup:"openProductAddressEditPopup"},MK=()=>({addressTarget:z.object().isRequired,addressId:z.number.def(void 0)}),RK=()=>({"add-address":be(),"choose-address":be(),"edit-address":be(),"clear-address":be()}),zK=t=>{const{props:r,emit:e}=t,{$t:o}=Xa(),{messageBox:n,getEmitter:i}=Ka(),a=k.ref(),{scrollRef:l,contents:c,isFirstFinish:u,refresh:s,onScroll:d}=yK(x=>r.addressTarget.getAddressList({pageNumber:x.pageNumber,pageSize:x.pageSize}),{immediate:!1});function p(){e("add-address"),i().emit(M9.OpenProductAddressEditPopup)}function f(x){a.value=x.id,e("choose-address",x)}function b(x){e("edit-address",x),i().emit(M9.OpenProductAddressEditPopup,x)}function v(x,S){return we(this,null,function*(){!r.addressTarget||!(yield n({content:o("addressEdit.deleteConfirm"),confirmButtonText:o("addressEdit.deleteAddress")}))||(yield r.addressTarget.deleteAddress(x.id),c.value.splice(S,1),yield k.nextTick(),(!c.value.length||x.id===a.value)&&(a.value="",e("clear-address")))})}return k.onMounted(()=>we(null,null,function*(){yield s(),r.addressId&&(a.value=r.addressId)})),{$t:o,scrollRef:l,addressList:c,isFirstFinish:u,selectedAddressId:a,refreshAddressList:s,onScroll:d,onClick:p,onChooseAddress:f,onAddressEdit:b,deleteAddress:v}},FK=k.defineComponent({__name:"address-list",props:MK(),emits:RK(),setup(t,{emit:r}){const e=t,{$t:o,scrollRef:n,addressList:i,selectedAddressId:a,onScroll:l,onClick:c,onChooseAddress:u,onAddressEdit:s,deleteAddress:d}=zK({props:e,emit:r});return{__sfc:!0,props:e,emit:r,$t:o,scrollRef:n,addressList:i,selectedAddressId:a,onScroll:l,onClick:c,onChooseAddress:u,onAddressEdit:s,deleteAddress:d,ProductIconChooseAddress:Z9,AddressItem:yY}}});var NK=function(){var r=this,e=r._self._c,o=r._self._setupProxy;return e("div",{staticClass:"plv-product-address-list"},[e("div",{ref:"scrollRef",staticClass:"plv-product-address-list__content",on:{scroll:o.onScroll}},r._l(o.addressList,function(n,i){return e(o.AddressItem,{key:i,staticClass:"plv-product-address-list__address-item",attrs:{"address-info":n},on:{"choose-address":o.onChooseAddress},scopedSlots:r._u([{key:"icon",fn:function(){return[n.id===o.selectedAddressId?e(o.ProductIconChooseAddress,{staticClass:"plv-product-address-list__icon"}):r._e()]},proxy:!0},{key:"action",fn:function(){return[e("div",{staticClass:"plv-product-address-list__action"},[e("div",{staticClass:"plv-product-address-list__action-btn",on:{click:function(a){return a.stopPropagation(),o.deleteAddress(n,i)}}},[r._v(" "+r._s(o.$t("common.delete"))+" ")]),e("div",{staticClass:"plv-product-address-list__action-btn",on:{click:function(a){return a.stopPropagation(),o.onAddressEdit(n)}}},[r._v(" "+r._s(o.$t("common.edit"))+" ")])])]},proxy:!0}],null,!0)})}),1),e("div",{staticClass:"plv-product-address-list__footer"},[e("button",{staticClass:"plv-product-address-list__footer-btn",on:{click:o.onClick}},[r._v(" "+r._s(o.$t("order.addAddress"))+" ")])])])},BK=[],VK=Co(FK,NK,BK);return VK.exports}));console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-list]","[version: 1.13.0]","[buildTime: 2026-04-24 07:47:15]");