!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)return;var r,l,a=[],o=!0,i=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);o=!0);}catch(u){i=!0,l=u}finally{try{o||null==t.return||t.return()}finally{if(i)throw l}}return a}(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.4e7f0184.js","./index.module-legacy.502f5c72.js","./index-legacy.2ae28dc5.js","./index-legacy.26638f55.js","./index-legacy.261ae52e.js","./index-legacy.51e5b886.js"],(function(n){"use strict";var t,r,l,a,o,i,u,c,d,s,f,y,p,v,m,g,b;return{setters:[function(e){t=e.O},function(e){r=e.s},function(e){l=e.m,a=e.w,o=e.O,i=e.d,u=e.aR,c=e.U,d=e.k,s=e.L,f=e.y,y=e.R,p=e.B,v=e.l},function(e){m=e.C},function(e){g=e.F},function(e){b=e.C}],execute:function(){var h=e(l("switch"),2),x=h[0],V=h[1],C={size:a,loading:Boolean,disabled:Boolean,modelValue:o,activeColor:String,inactiveColor:String,activeValue:{type:o,default:!0},inactiveValue:{type:o,default:!1}},k=i({name:x,props:C,emits:["change","update:modelValue"],setup:function(e,n){var t=n.emit,r=n.slots,l=function(){return e.modelValue===e.activeValue},a=function(){if(!e.disabled&&!e.loading){var n=l()?e.inactiveValue:e.activeValue;t("update:modelValue",n),t("change",n)}},o=function(){if(e.loading){var n=l()?e.activeColor:e.inactiveColor;return d(s,{class:V("loading"),color:n},null)}if(r.node)return r.node()};return u((function(){return e.modelValue})),function(){var n,t=e.size,i=e.loading,u=e.disabled,s=e.activeColor,f=e.inactiveColor,y=l(),p={fontSize:c(t),backgroundColor:y?s:f};return d("div",{role:"switch",class:V({on:y,loading:i,disabled:u}),style:p,tabindex:u?void 0:0,"aria-checked":y,onClick:a},[d("div",{class:V("node")},[o()]),null==(n=r.background)?void 0:n.call(r)])}}}),j=f(k);n("default",i({name:"address-operation",setup:function(){var e=y({checked:!1});return function(){return d("div",{class:r.operation},[d(m,{inset:!0,class:r.form},{default:function(){return[d(g,{label:"收货人",placeholder:"请输入收货人姓名"},null),d(g,{label:"手机号",placeholder:"请输入收货人人手机号"},null),d(g,{label:"所在地区",placeholder:"省、市、区、街道",readonly:!0,isLink:!0},null),d(g,{label:"详细地址",placeholder:"小区楼栋/乡村名称",type:"textarea",rows:3},null)]}}),d(m,{inset:!0,style:{marginTop:"12px"}},{default:function(){return[d(b,{title:"设置为默认地址",center:!0,class:r.default},{value:function(){return d(j,{modelValue:e.checked,"onUpdate:modelValue":function(n){return e.checked=n},size:"23px"},null)}})]}}),d(t,{position:"bottom"},{default:function(){return[d("div",{class:"btnGroup"},[d(p,{type:"primary",block:!0,round:!0},{default:function(){return[v("确认")]}})])]}})])}}}))}}}))}();
