xc-workflow-ui
Version:
基于vant二次封装工作流组件库
1 lines • 55.2 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["xc-workflow-ui"]=e(require("vue")):t["xc-workflow-ui"]=e(t.Vue)}(self,(t=>(()=>{"use strict";var e={6568:t=>{function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},e.apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],i=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,a){for(var s in a)if(t[s])if(-1!==n.indexOf(s))t[s]=e({},t[s],a[s]);else if(-1!==r.indexOf(s)){var l=t[s]instanceof Array?t[s]:[t[s]],c=a[s]instanceof Array?a[s]:[a[s]];t[s]=[].concat(l,c)}else if(-1!==i.indexOf(s))for(var u in a[s])if(t[s][u]){var d=t[s][u]instanceof Array?t[s][u]:[t[s][u]],h=a[s][u]instanceof Array?a[s][u]:[a[s][u]];t[s][u]=[].concat(d,h)}else t[s][u]=a[s][u];else if("hook"===s)for(var f in a[s])t[s][f]=t[s][f]?o(t[s][f],a[s][f]):a[s][f];else t[s]=a[s];else t[s]=a[s];return t}),{})}},8219:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,a=void 0,a=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===r(a)?a:String(a)),i)}var o,a}function o(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function a(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,l(t,e,"get"))}function s(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,l(t,e,"set"),n),n}function l(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}n.d(e,{Q:()=>d});var c=new WeakMap,u=new WeakMap,d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,c,{writable:!0,value:void 0}),o(this,u,{writable:!0,value:function(t,e){var n=t.data,r=t.code,i=t.success,o=t.msg,a=!0;return 200===r&&i||(a=!a),!a&&console.warn(o||"response parse error while using default response handle!"),a?n:e}})}var e,n,r;return e=t,(n=[{key:"registerCustomHandle",value:function(t){var e=!1;return"function"==typeof t&&(e=!0,s(this,c,t)),e}},{key:"handleResponse",value:function(t,e){return"function"==typeof a(this,c)?a(this,c).call(this,t):a(this,u).call(this,t,e)}}])&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4592:(t,e,n)=>{n.d(e,{Ih:()=>i,TD:()=>r,an:()=>o,u7:()=>s,xd:()=>a});var r=function(t){return function(e){e.component(t.name,t)}},i=function(t){return{type:String,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||""}},o=function(t){return{type:Number,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||0}},a=function(t){return{type:Boolean,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||!1}},s=function(t){return{type:Array,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||[]}}},4054:(t,e,n)=>{n.d(e,{o:()=>r});var r={prop:"text",event:"change"}},3456:(t,e,n)=>{n.d(e,{lC:()=>c});var r=n(4592);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={required:(0,r.xd)(),placeholder:(0,r.Ih)(),label:(0,r.Ih)(),border:(0,r.xd)(!0),rules:(0,r.u7)(),name:(0,r.Ih)(),dictCode:(0,r.Ih)(),defaultValue:(0,r.Ih)(),editable:(0,r.xd)(!0,!1),text:[String,Number]},c=(a(a({},l),{},{maxLength:(0,r.an)(200),rows:(0,r.an)(3),showWordLimit:(0,r.xd)(),visible:(0,r.xd)(),type:(0,r.Ih)(),min:(0,r.an)(-1/0),max:(0,r.an)(1/0),storageKey:(0,r.Ih)(""),fromStorage:(0,r.xd)(!1),readonly:(0,r.xd)(!1)}),a(a({},l),{},{linkComponents:(0,r.Ih)(),refer:(0,r.Ih)(),description:(0,r.Ih)(),hideSearch:(0,r.xd)()}),a(a({},l),{},{selectCount:(0,r.an)()}),a(a({},l),{},{accept:(0,r.Ih)("*"),breakChar:(0,r.Ih)(","),visible:(0,r.xd)(),maxSize:(0,r.an)(5242880),id:[String,Number],maxCount:{type:[String,Number],default:9},text:[String,Array]}),a(a({},l),{},{type:(0,r.Ih)("date"),title:(0,r.Ih)(),format:(0,r.Ih)(),visible:(0,r.xd)(),linkComponents:(0,r.Ih)(""),calcType:(0,r.Ih)("")}),a(a({},l),{},{title:(0,r.Ih)(),parentId:(0,r.Ih)(),refer:(0,r.Ih)(),companion:(0,r.Ih)(),visible:(0,r.xd)(),selectType:(0,r.xd)(),queryParam:(0,r.Ih)(),regionId:(0,r.Ih)()}),a(a({},l),{},{latfield:(0,r.Ih)("wd"),lngfield:(0,r.Ih)("jd"),visible:(0,r.xd)(),jd:(0,r.Ih)(),wd:(0,r.Ih)(),mode:(0,r.Ih)("locate"),category:(0,r.Ih)("cateNode"),subcategory:(0,r.Ih)("subCategory"),outGridTip:(0,r.Ih)("")}),a(a({},l),{},{companion:(0,r.Ih)(),visible:(0,r.xd)()}),a(a({},l),{},{visible:(0,r.xd)()}))},2293:()=>{},1383:()=>{},5388:()=>{},6799:()=>{},677:()=>{},6629:()=>{},1392:(t,e,n)=>{n.d(e,{Z:()=>p});var r=n(6568),i=n.n(r),o=n(5976),a=n(216),s=n(6122),l=n(7937),c=(0,o.d)("icon"),u=c[0],d=c[1];var h={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function f(t,e,n,r){var o,c=function(t){return t&&h[t]||t}(e.name),u=function(t){return!!t&&-1!==t.indexOf("/")}(c);return t(e.tag,i()([{class:[e.classPrefix,u?"":e.classPrefix+"-"+c],style:{color:e.color,fontSize:(0,a.N)(e.size)}},(0,s.ED)(r,!0)]),[n.default&&n.default(),u&&t("img",{class:d("image"),attrs:{src:c}}),t(l.Z,{attrs:{dot:e.dot,info:null!=(o=e.badge)?o:e.info}})])}f.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:d()}};const p=u(f)},7937:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(6568),i=n.n(r),o=n(5976),a=n(8546),s=n(6122),l=(0,o.d)("info"),c=l[0],u=l[1];function d(t,e,n,r){var o=e.dot,l=e.info,c=(0,a.Xq)(l)&&""!==l;if(o||c)return t("div",i()([{class:u({dot:o})},(0,s.ED)(r,!0)]),[o?"":e.info])}d.props={dot:Boolean,info:[Number,String]};const h=c(d)},3432:(t,e,n)=>{n.d(e,{Z:()=>p});var r=n(6568),i=n.n(r),o=n(5976),a=n(216),s=n(6122),l=(0,o.d)("loading"),c=l[0],u=l[1];function d(t,e){if("spinner"===e.type){for(var n=[],r=0;r<12;r++)n.push(t("i"));return n}return t("svg",{class:u("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h(t,e,n){if(n.default){var r,i={fontSize:(0,a.N)(e.textSize),color:null!=(r=e.textColor)?r:e.color};return t("span",{class:u("text"),style:i},[n.default()])}}function f(t,e,n,r){var o=e.color,l=e.size,c=e.type,f={color:o};if(l){var p=(0,a.N)(l);f.width=p,f.height=p}return t("div",i()([{class:u([c,{vertical:e.vertical}])},(0,s.ED)(r,!0)]),[t("span",{class:u("spinner",c),style:f},[d(t,e)]),h(t,e,n)])}f.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};const p=c(f)},9045:(t,e,n)=>{n.d(e,{X:()=>o});var r=n(5566),i=0;function o(t){var e="binded_"+i++;function n(){this[e]||(t.call(this,r.on,!0),this[e]=!0)}function o(){this[e]&&(t.call(this,r.S1,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:o,beforeDestroy:o}}},9339:(t,e,n)=>{n.d(e,{e:()=>T});var r={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var n=this.stack.indexOf(e);this.stack.splice(n,1)}}},i=n(9592),o=n(6568),a=n.n(o),s=n(5976),l=n(8546),c=n(6122),u=n(5566),d=(0,s.d)("overlay"),h=d[0],f=d[1];function p(t){(0,u.PF)(t,!0)}function v(t,e,n,r){var o=(0,i.Z)({zIndex:e.zIndex},e.customStyle);return(0,l.Xq)(e.duration)&&(o.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",a()([{directives:[{name:"show",value:e.show}],style:o,class:[f(),e.className],on:{touchmove:e.lockScroll?p:l.ZT}},(0,c.ED)(r,!0)]),[null==n.default?void 0:n.default()])])}v.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};const m=h(v);var y=n(4042),b={className:"",customStyle:{}};function g(t){return(0,c.LI)(m,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function x(t){var e=r.find(t);if(e){var n=t.$el,o=e.config,a=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(a.$el,n),(0,i.Z)(a,b,o,{show:!0})}}function w(t){var e=r.find(t);e&&(e.overlay.show=!1)}var S=n(1750),C=n(4611);function k(t){var e=void 0===t?{}:t,n=e.ref,r=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,i=this.getContainer,o=n?this.$refs[n]:this.$el;i?t="string"==typeof(e=i)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),r&&r.call(this)}}}}var O={mixins:[(0,n(9045).X)((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?u.on:u.S1)(window,"popstate",this.onPopstate))}}},I={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function T(t){return void 0===t&&(t={}),{mixins:[C.D,O,k({afterPortal:function(){this.overlay&&x()}})],provide:function(){return{vanPopup:this}},props:I,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=r.find(t))&&((0,y.Z)(e.overlay.$el),r.remove(t)),this.opened&&this.removeLock(),this.getContainer&&(0,y.Z)(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(r.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&((0,u.on)(document,"touchstart",this.touchStart),(0,u.on)(document,"touchmove",this.onTouchMove),r.lockCount||document.body.classList.add("van-overflow-hidden"),r.lockCount++)},removeLock:function(){this.lockScroll&&r.lockCount&&(r.lockCount--,(0,u.S1)(document,"touchstart",this.touchStart),(0,u.S1)(document,"touchmove",this.onTouchMove),r.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(w(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=(0,S.Ob)(t.target,this.$el),r=n.scrollHeight,i=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=i>=r?"00":"01":o+i>=r&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||(0,u.PF)(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?function(t,e){var n=r.find(t);if(n)n.config=e;else{var i=g(t);r.stack.push({vm:t,config:e,overlay:i})}x(t)}(t,{zIndex:r.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):w(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++r.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}},9345:(t,e,n)=>{n.d(e,{G:()=>o,j:()=>i});var r=n(1150);function i(t,e){var n,i;void 0===e&&(e={});var o=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);(0,r.e)(t,this.parent),this.parent.children=t}}}}}function o(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}},4611:(t,e,n)=>{n.d(e,{D:()=>i});var r=n(5566);var i={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX<0?0:e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var n,r;(!this.direction||this.offsetX<10&&this.offsetY<10)&&(this.direction=(n=this.offsetX,r=this.offsetY,n>r?"horizontal":r>n?"vertical":""))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;(0,r.on)(t,"touchstart",e),(0,r.on)(t,"touchmove",n),i&&((0,r.on)(t,"touchend",i),(0,r.on)(t,"touchcancel",i))}}}},4755:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5976),i=n(8546),o=n(9339),a=n(1392),s=(0,r.d)("popup"),l=s[0],c=s[1];const u=l({mixins:[(0,o.e)()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,r=this.position,o=this.duration,s="center"===r,l=this.transition||(s?"van-fade":"van-popup-slide-"+r),u={};if((0,i.Xq)(o))u[s?"animationDuration":"transitionDuration"]=o+"s";return e("transition",{attrs:{appear:this.transitionAppear,name:l},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:c((t={round:n},t[r]=r,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(a.Z,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:c("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})},3474:(t,e,n)=>{n(6629),n(6799),n(1383),n(2293),n(677)},6689:(t,e,n)=>{n.d(e,{Z:()=>O});var r=n(9592),i=n(1895),o=n.n(i),a=n(5976),s=n(8546),l=0;var c=n(9339),u=n(1392),d=n(3432),h=(0,a.d)("toast"),f=h[0],p=h[1];const v=f({mixins:[(0,c.e)()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(l||document.body.classList.add("van-toast--unclickable"),l++):--l||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,r=this.iconPrefix,i=this.loadingType;return e||"success"===n||"fail"===n?t(u.Z,{class:p("icon"),attrs:{classPrefix:r,name:e||n}}):"loading"===n?t(d.Z,{class:p("loading"),attrs:{type:i}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if((0,s.Xq)(n)&&""!==n)return"html"===e?t("div",{class:p("text"),domProps:{innerHTML:n}}):t("div",{class:p("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[p([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}});var m=n(4042),y={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},b={},g=[],x=!1,w=(0,r.Z)({},y);function S(t){return(0,s.Kn)(t)?t:{message:t}}function C(){if(s.sk)return{};if(!(g=g.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||x){var t=new(o().extend(v))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),g.push(t)}return g[g.length-1]}function k(t){void 0===t&&(t={});var e=C();return e.value&&e.updateZIndex(),t=S(t),(t=(0,r.Z)({},w,b[t.type||w.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),x&&!s.sk&&e.$on("closed",(function(){clearTimeout(e.timer),g=g.filter((function(t){return t!==e})),(0,m.Z)(e.$el),e.$destroy()}))},(0,r.Z)(e,function(t){return(0,r.Z)({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail"].forEach((function(t){var e;k[t]=(e=t,function(t){return k((0,r.Z)({type:e},S(t)))})})),k.clear=function(t){g.length&&(t?(g.forEach((function(t){t.clear()})),g=[]):x?g.shift().clear():g[0].clear())},k.setDefaultOptions=function(t,e){"string"==typeof t?b[t]=e:(0,r.Z)(w,t)},k.resetDefaultOptions=function(t){"string"==typeof t?b[t]=null:(w=(0,r.Z)({},y),b={})},k.allowMultiple=function(t){void 0===t&&(t=!0),x=t},k.install=function(){o().use(v)},o().prototype.$toast=k;const O=k},2742:(t,e,n)=>{n(6629),n(6799),n(1383),n(2293),n(677),n(5388)},1541:(t,e,n)=>{n.d(e,{r5:()=>i});var r="van-hairline",i=r+"--top-bottom"},5976:(t,e,n)=>{function r(t,e){return e?"string"==typeof e?" "+t+"--"+e:Array.isArray(e)?e.reduce((function(e,n){return e+r(t,n)}),""):Object.keys(e).reduce((function(n,i){return n+(e[i]?r(t,i):"")}),""):""}function i(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+r(e,n)}}n.d(e,{d:()=>g});var o=n(8546),a=n(4873),s={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,r=this.$scopedSlots[t];return r?r(e):n[t]}}},l=n(1895),c=n.n(l);function u(t){var e=this.name;t.component(e,this),t.component((0,a._)("-"+e),this)}function d(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach((function(t){e[t]||(e[t]=function(){return n[t]})})),e}(n),n)}}}function h(t){return function(e){return(0,o.mf)(e)&&(e=d(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(s)),e.name=t,e.install=u,e}}var f=Object.prototype.hasOwnProperty;function p(t,e){return Object.keys(e).forEach((function(n){!function(t,e,n){var r=e[n];(0,o.Xq)(r)&&(f.call(t,n)&&(0,o.Kn)(r)?t[n]=p(Object(t[n]),e[n]):t[n]=r)}(t,e,n)})),t}var v=c().prototype,m=c().util.defineReactive;m(v,"$vantLang","zh-CN"),m(v,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});const y={messages:function(){return v.$vantMessages[v.$vantLang]},use:function(t,e){var n;v.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),p(v.$vantMessages,t)}};function b(t){var e=(0,a._)(t)+".";return function(t){for(var n=y.messages(),r=(0,o.U2)(n,e+t)||(0,o.U2)(n,t),i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return(0,o.mf)(r)?r.apply(void 0,a):r}}function g(t){return[h(t="van-"+t),i(t),b(t)]}},5566:(t,e,n)=>{n.d(e,{PF:()=>l,S1:()=>s,on:()=>a});var r=n(8546),i=!1;if(!r.sk)try{var o={};Object.defineProperty(o,"passive",{get:function(){i=!0}}),window.addEventListener("test-passive",null,o)}catch(t){}function a(t,e,n,o){void 0===o&&(o=!1),r.sk||t.addEventListener(e,n,!!i&&{capture:!1,passive:o})}function s(t,e,n){r.sk||t.removeEventListener(e,n)}function l(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&function(t){t.stopPropagation()}(t)}},4042:(t,e,n)=>{function r(t){var e=t.parentNode;e&&e.removeChild(t)}n.d(e,{Z:()=>r})},2036:(t,e,n)=>{n.d(e,{Wn:()=>s});var r=n(8546),i=Date.now();var o=r.sk?n.g:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-i)),r=setTimeout(t,n);return i=e+n,r};o.cancelAnimationFrame||o.clearTimeout;function s(t){return a.call(o,t)}},1750:(t,e,n)=>{function r(t){return t===window}n.d(e,{$D:()=>u,Ob:()=>o,QU:()=>s,U4:()=>c,cx:()=>a,kn:()=>l,wp:()=>d});var i=/scroll|auto|overlay/i;function o(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var r=window.getComputedStyle(n).overflowY;if(i.test(r))return n;n=n.parentNode}return e}function a(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function s(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function l(t){s(window,t),s(document.body,t)}function c(t,e){if(r(t))return 0;var n=e?a(e):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return t.getBoundingClientRect().top+n}function u(t){return r(t)?t.innerHeight:t.getBoundingClientRect().height}function d(t){return r(t)?0:t.getBoundingClientRect().top}},591:(t,e,n)=>{function r(t){var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}n.d(e,{x:()=>r})},4873:(t,e,n)=>{n.d(e,{_:()=>i});var r=/-(\w)/g;function i(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}},216:(t,e,n)=>{n.d(e,{L:()=>l,N:()=>a});var r,i=n(8546),o=n(139);function a(t){if((0,i.Xq)(t))return t=String(t),(0,o.k)(t)?t+"px":t}function s(t){return+(t=t.replace(/rem/g,""))*function(){if(!r){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;r=parseFloat(e)}return r}()}function l(t){if("number"==typeof t)return t;if(i._f){if(-1!==t.indexOf("rem"))return s(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},6122:(t,e,n)=>{n.d(e,{ED:()=>l,LI:()=>c});var r=n(9592),i=n(1895),o=n.n(i),a=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],s={nativeOn:"on"};function l(t,e){var n=a.reduce((function(e,n){return t.data[n]&&(e[s[n]||n]=t.data[n]),e}),{});return e&&(n.on=n.on||{},(0,r.Z)(n.on,t.data.on)),n}function c(t,e){var n=new(o())({el:document.createElement("div"),props:t.props,render:function(n){return n(t,(0,r.Z)({props:this.$props},e))}});return document.body.appendChild(n.$el),n}},8546:(t,e,n)=>{n.d(e,{Kn:()=>c,U2:()=>d,Xq:()=>s,ZT:()=>a,_f:()=>i,mf:()=>l,sk:()=>o,tI:()=>u});var r=n(1895),i="undefined"!=typeof window,o=n.n(r)().prototype.$isServer;function a(){}function s(t){return null!=t}function l(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}function u(t){return c(t)&&l(t.then)&&l(t.catch)}function d(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=c(r)&&null!=(e=r[t])?e:""})),r}},7692:(t,e,n)=>{function r(t,e){var n=e.to,r=e.url,i=e.replace;if(n&&t){var o=t[i?"replace":"push"](n);o&&o.catch&&o.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else r&&(i?location.replace(r):location.href=r)}n.d(e,{BC:()=>r,g2:()=>i});var i={url:String,replace:Boolean,to:[String,Object]}},139:(t,e,n)=>{function r(t){return/^\d+(\.\d+)?$/.test(t)}n.d(e,{k:()=>r})},1150:(t,e,n)=>{function r(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var r=function(t){var e=[];return function t(n){n.forEach((function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map((function(t){return t.$vnode}))),n.children&&t(n.children)}))}(t),e}(n.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}n.d(e,{e:()=>r})},1900:(t,e,n)=>{function r(t,e,n,r,i,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>r})},1895:e=>{e.exports=t},9592:(t,e,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:()=>r})}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={};return(()=>{r.d(i,{default:()=>rt});var t=r(4592),e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}]},[t.visible?n("van-field",{staticClass:"xc-collect-field",class:t.isElder&&"xc-collect-field--elder",attrs:{label:t.label,value:t.text,placeholder:t.placeholder,required:t.required,border:t.border,rules:t.rules,name:t.name,"label-class":"xc-collect-field__label",readonly:""},on:{click:t.showCascader}}):t._e(),t._v(" "),n("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.cascaderVisible,callback:function(e){t.cascaderVisible=e},expression:"cascaderVisible"}},[n("van-cascader",{attrs:{options:t.options,title:t.placeholder,"active-color":"#428ffc"},on:{change:t.addChildren,close:t.showCascader},model:{value:t.cascaderValue,callback:function(e){t.cascaderValue=e},expression:"cascaderValue"}})],1)],1)};e._withStripped=!0;r(2742);var n=r(6689),o=(r(3474),r(4755)),a=(r(6629),r(1383),r(2293),r(5976)),s=r(9592),l=r(9345),c=r(7692),u=(0,a.d)("tab"),d=u[0],h=u[1];const f=d({mixins:[(0,l.j)("vanTabs")],props:(0,s.Z)({},c.g2,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,n=this.parent,r=this.isActive,i=e();if(i||n.animated){var o=n.scrollspy||r,a=this.inited||n.scrollspy||!n.lazyRender?i:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!r},class:h("pane-wrapper",{inactive:!r})},[t("div",{class:h("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:h("pane")},[a])}}});var p=r(216),v=r(8546),m=r(2036),y=r(1750);var b=r(591),g=r(5566),x=r(1541);var w=r(9045),S=r(7937),C=(0,a.d)("tab"),k=C[0],O=C[1];const I=k({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,r="card"===this.type;e&&r&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var i=n?this.activeColor:this.inactiveColor;return i&&(t.color=i),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:O("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||(0,v.Xq)(this.info)&&""!==this.info?t("span",{class:O("text-wrapper")},[e,t(S.Z,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){return(0,arguments[0])("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[O({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}});var T=(0,a.d)("sticky"),$=T[0],N=T[1];const E=$({mixins:[(0,w.X)((function(t,e){if(this.scroller||(this.scroller=(0,y.Ob)(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return(0,p.L)(this.offsetTop)},style:function(){if(this.fixed){var t={};return(0,v.Xq)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!v.sk&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!(0,b.x)(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,r=(0,y.cx)(window),i=(0,y.U4)(this.$el),o=function(){t.$emit("scroll",{scrollTop:r,isFixed:t.fixed})};if(e){var a=i+e.offsetHeight;if(r+n+this.height>a){var s=this.height+r-a;return s<this.height?(this.fixed=!0,this.transform=-(s+n)):this.fixed=!1,void o()}}r+n>i?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed;return t("div",{style:{height:e?this.height+"px":null}},[t("div",{class:N({fixed:e}),style:this.style},[this.slots()])])}});var P=r(4611),L=(0,a.d)("tabs"),j=L[0],B=L[1];const _=j({mixins:[P.D],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:B("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){return(0,arguments[0])("div",{class:B("content",{animated:this.animated}),on:(0,s.Z)({},this.listeners)},[this.genChildren()])}});var A=(0,a.d)("tabs"),z=A[0],D=A[1];const Z=z({mixins:[(0,l.G)("vanTabs"),(0,w.X)((function(t){this.scroller||(this.scroller=(0,y.Ob)(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return(0,p.L)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&(0,y.kn)(Math.ceil((0,y.U4)(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?(0,g.on)(this.scroller,"scroll",this.onScroll,!0):(0,g.S1)(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=(0,y.$D)(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!(0,b.x)(t.$el)){var r=n[t.currentIndex].$el,i=t.lineWidth,o=t.lineHeight,a=r.offsetLeft+r.offsetWidth/2,s={width:(0,p.N)(i),backgroundColor:t.color,transform:"translateX("+a+"px) translateX(-50%)"};if(e&&(s.transitionDuration=t.duration+"s"),(0,v.Xq)(o)){var l=(0,p.N)(o);s.height=l,s.borderRadius=l}t.lineStyle=s}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if((0,v.Xq)(e)){var n=this.children[e],r=n.computedName,i=null!==this.currentIndex;this.currentIndex=e,r!==this.active&&(this.$emit("input",r),i&&this.$emit("change",r,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,r=this.children[e],i=r.title,o=r.disabled,a=r.computedName;o?this.$emit("disabled",a,i):(!function(t){var e=t.interceptor,n=t.args,r=t.done;if(e){var i=e.apply(void 0,n);(0,v.tI)(i)?i.then((function(t){t&&r()})).catch(v.ZT):i&&r()}else r()}({interceptor:this.beforeChange,args:[a],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",a,i),(0,c.BC)(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,r=e[this.currentIndex].$el;!function(t,e,n){var r=0,i=t.scrollLeft,o=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-i)/o,++r<o&&(0,m.Wn)(n)}()}(n,r.offsetLeft-(n.offsetWidth-r.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],r=null==n?void 0:n.$el;if(r){var i=(0,y.U4)(r,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,r){var i=(0,y.cx)(t),o=i<e,a=0===n?1:Math.round(1e3*n/16),s=(e-i)/a;!function n(){i+=s,(o&&i>e||!o&&i<e)&&(i=e),(0,y.QU)(t,i),o&&i<e||!o&&i>e?(0,m.Wn)(n):r&&(0,m.Wn)(r)}()}(this.scroller,i,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){if((0,y.wp)(t[e].$el)>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,n=arguments[0],r=this.type,i=this.animated,o=this.scrollable,a=this.children.map((function(t,i){var a;return n(I,{ref:"titles",refInFor:!0,attrs:{type:r,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:i===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,i)}}})})),s=n("div",{ref:"wrap",class:[D("wrap",{scrollable:o}),(t={},t[x.r5]="line"===r&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:D("nav",[r,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===r&&n("div",{class:D("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:D([r])},[this.sticky?n(E,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[s]):s,n(_,{attrs:{count:this.children.length,animated:i,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}});var R=r(1392),X=(0,a.d)("cascader"),M=X[0],K=X[1],V=X[2];const q=M({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.text)||"text"},valueKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.value)||"value"},childrenKey:function(){var t;return(null==(t=this.fieldNames)?void 0:t.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){var e=this;if(t||0===t){var n=this.tabs.map((function(t){var n;return null==(n=t.selectedOption)?void 0:n[e.valueKey]}));if(-1!==n.indexOf(t))return}this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r[this.valueKey]===e)return[r];if(r[this.childrenKey]){var i=this.getSelectedOptionsByValue(r[this.childrenKey],e);if(i)return[r].concat(i)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var n=this.options;return this.tabs=e.map((function(e){var r={options:n,selectedOption:e},i=n.filter((function(n){return n[t.valueKey]===e[t.valueKey]}));return i.length&&(n=i[0][t.childrenKey]),r})),n&&this.tabs.push({options:n,selectedOption:null}),void this.$nextTick((function(){t.activeTab=t.tabs.length-1}))}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var n=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t[this.childrenKey]){var r={options:t[this.childrenKey],selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,r):this.tabs.push(r),this.$nextTick((function(){n.activeTab++}))}var i=this.tabs.map((function(t){return t.selectedOption})).filter((function(t){return!!t})),o={value:t[this.valueKey],tabIndex:e,selectedOptions:i};this.$emit("input",t[this.valueKey]),this.$emit("change",o),t[this.childrenKey]||this.$emit("finish",o)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;if(this.showHeader)return t("div",{class:K("header")},[t("h2",{class:K("title")},[this.slots("title")||this.title]),this.closeable?t(R.Z,{attrs:{name:"cross"},class:K("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,n){var r=this,i=this.$createElement;return i("ul",{class:K("options")},[t.map((function(t){var o=e&&t[r.valueKey]===e[r.valueKey],a=r.slots("option",{option:t,selected:o})||i("span",[t[r.textKey]]);return i("li",{class:K("option",{selected:o}),style:{color:o?r.activeColor:null},on:{click:function(){r.onSelect(t,n)}}},[a,o?i(R.Z,{attrs:{name:"success"},class:K("selected-icon")}):null])}))])},renderTab:function(t,e){var n=this.$createElement,r=t.options,i=t.selectedOption,o=i?i[this.textKey]:this.placeholder||V("select");return n(f,{attrs:{title:o,titleClass:K("tab",{unselected:!i})}},[this.renderOptions(r,i,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(Z,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:K("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){return(0,arguments[0])("div",{class:K()},[this.renderHeader(),this.renderTabs()])}});var F=r(3456),Y=r(4054),H=r(8219);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q(){Q=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:I(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",m={};function y(){}function b(){}function g(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(P([])));S&&S!==n&&r.call(S,a)&&(x=S);var C=g.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(i,o,a,s){var l=d(t[i],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==U(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function I(e,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?v:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(U(e)+" is not iterable")}return b.prototype=g,i(C,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:b,configurable:!0}),b.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(C),