xc-workflow-ui
Version:
基于vant二次封装工作流组件库
1 lines • 40.3 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("lamejs")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["xc-workflow-ui"]=e(require("vue"),require("lamejs")):t["xc-workflow-ui"]=e(t.Vue,t.lamejs)}(self,((t,e)=>(()=>{"use strict";var n={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 h=t[s][u]instanceof Array?t[s][u]:[t[s][u]],d=a[s][u]instanceof Array?a[s][u]:[a[s][u]];t[s][u]=[].concat(h,d)}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:()=>h});var c=new WeakMap,u=new WeakMap,h=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||[]}}},5891:(t,e,n)=>{n.d(e,{EX:()=>r});n(4130);var r=","},4054:(t,e,n)=>{n.d(e,{o:()=>r});var r={prop:"text",event:"change"}},3456:(t,e,n)=>{n.d(e,{xB:()=>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)()})},2391:()=>{},2293:()=>{},1383:()=>{},6629:()=>{},9233:(t,e,n)=>{n.d(e,{Z:()=>g});var r=n(9592),i=n(6568),o=n.n(i),a=n(5976),s=n(8546),l=n(6122),c=n(7692),u=n(806),h=n(1392),d=(0,a.d)("cell"),f=d[0],p=d[1];function v(t,e,n,r){var i,a=e.icon,u=e.size,d=e.title,f=e.label,v=e.value,g=e.isLink,m=n.title||(0,s.Xq)(d);function y(){if(n.label||(0,s.Xq)(f))return t("div",{class:[p("label"),e.labelClass]},[n.label?n.label():f])}var b=null!=(i=e.clickable)?i:g,x={clickable:b,center:e.center,required:e.required,borderless:!e.border};return u&&(x[u]=u),t("div",o()([{class:p(x),attrs:{role:b?"button":null,tabindex:b?0:null},on:{click:function(t){(0,l.j8)(r,"click",t),(0,c.fz)(r)}}},(0,l.ED)(r)]),[n.icon?n.icon():a?t(h.Z,{class:p("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(m)return t("div",{class:[p("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[d]),y()])}(),function(){if(n.default||(0,s.Xq)(v))return t("div",{class:[p("value",{alone:!m}),e.valueClass]},[n.default?n.default():t("span",[v])])}(),function(){var r=n["right-icon"];if(r)return r();if(g){var i=e.arrowDirection;return t(h.Z,{class:p("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}v.props=(0,r.Z)({},u.T,c.g2);const g=f(v)},806:(t,e,n)=>{n.d(e,{T:()=>r});var r={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},7132:(t,e,n)=>{n.d(e,{Z:()=>b});var r=n(6568),i=n.n(r),o=n(9592),a=n(8546);var s=n(1750),l=!a.sk&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());var c=n(8169),u=n(5566),h=n(5976),d=n(216),f=n(1392),p=n(9233),v=n(806),g=(0,h.d)("field"),m=g[0],y=g[1];const b=m({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:(0,o.Z)({},v.T,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=(0,a.Xq)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return(0,o.Z)({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:(0,d.N)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(n){var r=e.validator(t,e);if((0,a.tI)(r))return r.then(n);n(r)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return(0,a.mf)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce((function(t,n){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then((function(r){!1===r&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(n){t||n(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,n=this.rules.filter((function(n){return n.trigger?n.trigger===t:e}));n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=(0,a.Xq)(t)?String(t):"";var n=this.maxlength;if((0,a.Xq)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var r="number"===this.type;t=(0,c.uf)(t,r,r)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var i=this.$refs.input;i&&t!==i.value&&(i.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),l&&(0,s.kn)((0,s.oD)()))},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){(0,u.PF)(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||(0,u.PF)(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){var e=(0,s.oD)();t.style.height="auto";var n=t.scrollHeight;if((0,a.Kn)(this.autosize)){var r=this.autosize,i=r.maxHeight,o=r.minHeight;i&&(n=Math.min(n,i)),o&&(n=Math.max(n,o))}n&&(t.style.height=n+"px",(0,s.kn)(e))}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),a=this.slots("input"),s=this.getProp("inputAlign");if(a)return t("div",{class:y("control",[s,"custom"]),on:{click:this.onClickInput}},[a]);var l={ref:"input",class:y("control",s),domProps:{value:this.value},attrs:(0,o.Z)({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",i()([{},l]));var c,u=e;return"number"===e&&(u="text",c="decimal"),"digit"===e&&(u="tel",c="numeric"),t("input",i()([{attrs:{type:u,inputmode:c}},l]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:y("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(f.Z,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:y("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(f.Z,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:y("word-limit")},[t("span",{class:y("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:y("error-message",n)},[e])}}},getProp:function(t){return(0,a.Xq)(this[t])?this[t]:this.vanForm&&(0,a.Xq)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,r=this.getProp("disabled"),i=this.getProp("labelAlign"),o={icon:this.genLeftIcon},a=this.genLabel();a&&(o.title=function(){return a});var s=this.slots("extra");return s&&(o.extra=function(){return s}),e(p.Z,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:y("value"),titleClass:[y("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:y((t={error:this.showError,disabled:r},t["label-"+i]=i,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:y("body")},[this.genInput(),this.showClear&&e(f.Z,{attrs:{name:"clear"},class:y("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:y("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}})},8735:(t,e,n)=>{n(6629),n(1383),n(2293),n(2391)},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],h=c[1];var d={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function f(t,e,n,r){var o,c=function(t){return t&&d[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:h("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:h()}};const p=u(f)},3307:(t,e,n)=>{n(6629),n(1383),n(2293)},7937:(t,e,n)=>{n.d(e,{Z:()=>d});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 h(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])}h.props={dot:Boolean,info:[Number,String]};const d=c(h)},1085:(t,e,n)=>{n.d(e,{p:()=>s});var r=n(1392),i=n(2098),o=n(9345),a=n(216),s=function(t){var e=t.parent,n=t.bem,s=t.role;return{mixins:[(0,o.j)(e),i.f],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===s&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,r=this.$refs.icon,i=r===n||(null==r?void 0:r.contains(n));this.isDisabled||!i&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:(0,a.N)(i)}},[this.slots("icon",{checked:e})||t(r.Z,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:s,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}}},2098:(t,e,n)=>{n.d(e,{f:()=>r});var r={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},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:[]}}}}},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:()=>b});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 h(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 d(t){return function(e){return(0,o.mf)(e)&&(e=h(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,g=c().util.defineReactive;g(v,"$vantLang","zh-CN"),g(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 m={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 y(t){var e=(0,a._)(t)+".";return function(t){for(var n=m.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 b(t){return[d(t="van-"+t),i(t),y(t)]}},5566:(t,e,n)=>{n.d(e,{PF:()=>o});var r=n(8546);if(!r.sk)try{var i={};Object.defineProperty(i,"passive",{get:function(){!0}}),window.addEventListener("test-passive",null,i)}catch(t){}function o(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&function(t){t.stopPropagation()}(t)}},1750:(t,e,n)=>{n.d(e,{kn:()=>o,oD:()=>i});function r(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function i(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function o(t){r(window,t),r(document.body,t)}},8169:(t,e,n)=>{function r(t,e,n){var r=t.indexOf(e),i="";return-1===r?t:"-"===e&&0!==r?t.slice(0,r):("."===e&&t.match(/^(\.|-\.)/)&&(i=r?"-0":"0"),i+t.slice(0,r+1)+t.slice(r).replace(n,""))}function i(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?r(t,".",/\./g):t.split(".")[0];var i=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=n?r(t,"-",/-/g):t.replace(/-/,"")).replace(i,"")}n.d(e,{uf:()=>i})},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,{N:()=>o});var r=n(8546),i=n(139);function o(t){if((0,r.Xq)(t))return t=String(t),(0,i.k)(t)?t+"px":t}},6122:(t,e,n)=>{n.d(e,{ED:()=>a,j8:()=>s});var r=n(9592),i=(n(1895),["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"]),o={nativeOn:"on"};function a(t,e){var n=i.reduce((function(e,n){return t.data[n]&&(e[o[n]||n]=t.data[n]),e}),{});return e&&(n.on=n.on||{},(0,r.Z)(n.on,t.data.on)),n}function s(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach((function(t){t.apply(void 0,r)})):o.apply(void 0,r))}},8546:(t,e,n)=>{n.d(e,{Kn:()=>s,U2:()=>c,Xq:()=>o,mf:()=>a,sk:()=>i,tI:()=>l});var r=n(1895),i=n.n(r)().prototype.$isServer;function o(t){return null!=t}function a(t){return"function"==typeof t}function s(t){return null!==t&&"object"==typeof t}function l(t){return s(t)&&a(t.then)&&a(t.catch)}function c(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=s(r)&&null!=(e=r[t])?e:""})),r}},7692:(t,e,n)=>{function r(t){!function(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)}(t.parent&&t.parent.$router,t.props)}n.d(e,{fz:()=>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 h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>r})},1895:e=>{e.exports=t},4130:t=>{t.exports=e},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})}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return n[t](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};return(()=>{i.d(o,{default:()=>O});var t=i(4592),e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"xc-checkbox__container":!0,"checkbox-show--elder":t.isElder}},[n("van-field",{staticClass:"xc-collect-field xc-collect-field__value--hidden",class:t.isElder&&"xc-collect-field--elder",attrs:{value:t.text,required:t.required,rules:t.rules,label:t.label,name:t.name,border:t.border,"label-class":"xc-collect-field__label",readonly:""}}),t._v(" "),n("div",{staticClass:"xc-checkbox__wrapper"},[n("div",{class:{checkbox__icon:!0,"checkbox__icon--checked":t.checkAll||t.isIndeterminate},on:{click:t.handleCheckAllChange}},[n("van-icon",{attrs:{name:t.checkAll?"success":"minus"}}),t._v(" "),n("span",[t._v(" 全选 ")])],1),t._v(" "),n("van-checkbox-group",{attrs:{max:t.max,disabled:!t.editable},on:{change:t.onchange},model:{value:t.result,callback:function(e){t.result=e},expression:"result"}},t._l(t.list,(function(e,r){return n("van-checkbox",{key:r,staticStyle:{margin:"0 0 8px 8px"},attrs:{name:e.dictKey,disabled:t.disabledIndexList.includes(r),shape:"square"}},[t._v("\n "+t._s(e.dictValue)+"\n ")])})),1)],1)],1)};e._withStripped=!0;i(3307);var n=i(1392),r=(i(6629),i(1383),i(2293),i(5976)),a=i(1085),s=(0,r.d)("checkbox"),l=s[0],c=s[1];const u=l({mixins:[(0,a.p)({bem:c,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var r=n.indexOf(this.name);-1!==r&&(n.splice(r,1),e.$emit("input",n))}}}});var h=i(2098),d=i(9345),f=(0,r.d)("checkbox-group"),p=f[0],v=f[1];const g=p({mixins:[(0,d.G)("vanCheckbox"),h.f],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,r=e.skipDisabled,i=this.children.filter((function(t){return t.disabled&&r?t.checked:null!=n?n:!t.checked})).map((function(t){return t.name}));this.$emit("input",i)}},render:function(){return(0,arguments[0])("div",{class:v([this.direction])},[this.slots()])}});i(8735);var m=i(7132),y=i(3456),b=i(4054),x=i(5891),w=i(8219);function k(t){return k="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},k(t)}function S(){S=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 m?e:m,a=Object.create(o.prototype),s=new L(r||[]);return i(a,"_invoke",{value:j(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",v="completed",g={};function m(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(T([])));C&&C!==n&&r.call(C,a)&&(x=C);var I=b.prototype=m.prototype=Object.create(x);function E(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=h(t[i],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==k(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 j(e,n,r){var i=d;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=P(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?v:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function P(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,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function T(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(k(e)+" is not iterable")}return y.prototype=b,i(I,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},E(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(I),c(I,l,"Generator"),c(I,a,(function(){return this})),c(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function C(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}const I={name:"XcCheckbox",props:y.xB,components:{VanField:m.Z,VanCheckboxGroup:g,VanCheckbox:u,VanIcon:n.Z},model:b.o,inject:["loadDict","isElder"],data:function(){return{result:[],list:[],max:1/0,isIndeterminate:!1,checkAll:!1,disabledIndexList:[]}},watch:{text:function(t){t||(this.result=[])},result:function(t){Array.isArray(t)&&t.length&&this.$emit("change",t.join(",")),t.length===this.max?this.disabledIndexList=this.list.reduce((function(e,n,r){return!t.includes(n.dictKey)&&e.push(r),e}),[]):this.disabledIndexList=[]}},methods:{handleCheckAllChange:function(){var t=!1;if(t=!this.result.length||(!this.result.length||this.result.length!==this.list.length)&&!(this.result.length&&this.result.length===this.max&&this.result.length<this.list.length),this.isIndeterminate=!1,!t)return this.result=[],void this.$emit("change","");var e=this.max,n=this.list,r=n.map((function(t){return t.dictKey}));e===1/0||e>=n.length?this.result=r:(this.result=r.slice(0,e),this.checkAll=!1,this.isIndeterminate=!0),this.$emit("change",this.result.join(x.EX))},onchange:function(t){this.checkAll=t.length===this.list.length,this.isIndeterminate=t.length&&t.length<this.list.length,this.$emit("change",t.join(","))}},mounted:function(){var t,e=this;return(t=S().mark((function t(){var n,r,i,o,a,s,l,c,u;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.dictCode,r=e.loadDict,i=e.defaultValue,o=e.text,a=e.selectCount,t.t0=new w.Q,t.next=4,r(n);case 4:if(t.t1=t.sent,t.t2=[],s=t.t0.handleResponse.call(t.t0,t.t1,t.t2),l=a>0?a:1/0,c=i||o,e.list=s,e.max=l,c){t.next=13;break}return t.abrupt("return");case 13:u=c.split(x.EX).filter(Boolean).slice(0,l),e.checkAll=u.length===s.length,e.isIndeterminate=u.length<s.length,e.result=u;case 17:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){C(o,r,i,a,s,"next",t)}function s(t){C(o,r,i,a,s,"throw",t)}a(void 0)}))})()}};const E=(0,i(1900).Z)(I,e,[],!1,null,"dc5401f6",null).exports;E.install=(0,t.TD)(E);const O=E})(),o=o.default})()));