!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,l,i,u=[],a=!0,c=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=l.call(t)).done)&&(u.push(r.value),u.length!==n);a=!0);}catch(f){c=!0,o=f}finally{try{if(!a&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}System.register(["./index-legacy-646c47fa.js","./index-legacy-cab41c13.js"],(function(n,t){"use strict";var r,o,l,i,u,a,c,f,s,v,d,m,h,p,y;return{setters:[function(e){r=e.c,o=e.a9,l=e.b,i=e.aj,u=e.d,a=e.r,c=e.e,f=e.w,s=e.X,v=e.a,d=e.ae,m=e.h,h=e.k},function(e){p=e.p,y=e.P}],execute:function(){var t="000000",g=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],b=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],j=function(){return{text:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",value:arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,children:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0}};function w(e){var n=e.areaList,r=e.columnsNum,o=e.columnsPlaceholder,l=n.city_list,i=void 0===l?{}:l,u=n.county_list,a=void 0===u?{}:u,c=n.province_list,f=void 0===c?{}:c,s=+r>1,v=+r>2,d=new Map;Object.keys(f).forEach((function(e){d.set(e.slice(0,2),j(f[e],e,function(){if(s)return o.length?[j(o[0],t,v?[]:void 0)]:[]}()))}));var m=new Map;if(s){Object.keys(i).forEach((function(e){var n=j(i[e],e,function(){if(v)return o.length?[j(o[1])]:[]}());m.set(e.slice(0,4),n);var t=d.get(e.slice(0,2));t&&t.children.push(n)}))}v&&Object.keys(a).forEach((function(e){var n=m.get(e.slice(0,4));n&&n.children.push(j(a[e],e))}));var h=Array.from(d.values());if(o.length){var p=v?[j(o[2])]:void 0,y=s?[j(o[1],t,p)]:void 0;h.unshift(j(o[0],t,y))}return h}var A=e(r("area"),2),O=A[0],S=A[1],x=o({},p,{modelValue:String,columnsNum:l(3),columnsPlaceholder:i(),areaList:{type:Object,default:function(){return{}}}}),V=u({name:O,props:x,emits:["change","confirm","cancel","update:modelValue"],setup:function(e,n){var t=n.emit,r=n.slots,o=a([]),l=a(),i=c((function(){return w(e)})),u=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,["change"].concat(n))},h=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,["cancel"].concat(n))},p=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,["confirm"].concat(n))};return f(o,(function(n){var r=n.length?n[n.length-1]:"";r&&r!==e.modelValue&&t("update:modelValue",r)}),{deep:!0}),f((function(){return e.modelValue}),(function(n){n?n!==(o.value.length?o.value[o.value.length-1]:"")&&(o.value=["".concat(n.slice(0,2),"0000"),"".concat(n.slice(0,4),"00"),n].slice(0,+e.columnsNum)):o.value=[]}),{immediate:!0}),s({confirm:function(){var e;return null==(e=l.value)?void 0:e.confirm()},getSelectedOptions:function(){var e;return(null==(e=l.value)?void 0:e.getSelectedOptions())||[]}}),function(){return v(y,m({ref:l,modelValue:o.value,"onUpdate:modelValue":function(e){return o.value=e},class:S(),columns:i.value,onChange:u,onCancel:h,onConfirm:p},d(e,b)),d(r,g))}}});n("A",h(V))}}}))}();
