!function(){function e(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,u,o,l,a=[],i=!0,c=!1;try{if(o=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;i=!1}else for(;!(i=(t=o.call(r)).done)&&(a.push(t.value),a.length!==n);i=!0);}catch(d){c=!0,u=d}finally{try{if(!i&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw u}}return a}}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(e,r)}(e,r)||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 r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}System.register(["./index-legacy-646c47fa.js","./Checker-legacy-38dded8e.js"],(function(n,r){"use strict";var t,u,o,l,a,i,c,d,f,s,p,m,h,b,g,v,y,V;return{setters:[function(e){t=e.c,u=e.d,o=e.a7,l=e.w,a=e.X,i=e.a2,c=e.a,d=e.n,f=e.aj,s=e.a9,p=e.t,m=e.aa,h=e.e,b=e.ae,g=e.h,v=e.k},function(e){y=e.c,V=e.s}],execute:function(){var r=e(t("checkbox-group"),2),k=r[0],S=r[1],x={max:d,disabled:Boolean,iconSize:d,direction:String,modelValue:f(),checkedColor:String},j=Symbol(k),A=(n("s",u({name:k,props:x,emits:["change","update:modelValue"],setup:function(e,n){var r=n.emit,t=n.slots,u=o(j),d=u.children,f=u.linkChildren,s=function(e){return r("update:modelValue",e)};return l((function(){return e.modelValue}),(function(e){return r("change",e)})),a({toggleAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"==typeof e&&(e={checked:e});var n=e,r=n.checked,t=n.skipDisabled,u=d.filter((function(e){return!!e.props.bindGroup&&(e.props.disabled&&t?e.checked.value:null!=r?r:!e.checked.value)})).map((function(e){return e.name}));s(u)}}),i((function(){return e.modelValue})),f({props:e,updateValue:s}),function(){var n;return c("div",{class:S([e.direction])},[null==(n=t.default)?void 0:n.call(t)])}}})),e(t("checkbox"),2)),G=A[0],O=A[1],w=s({},y,{bindGroup:p}),C=u({name:G,props:w,emits:["change","update:modelValue"],setup:function(e,n){var r=n.emit,t=n.slots,u=m(j).parent,o=h((function(){return u&&e.bindGroup?-1!==u.props.modelValue.indexOf(e.name):!!e.modelValue})),d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!o.value;u&&e.bindGroup?function(n){var r=e.name,t=u.props,o=t.max,l=t.modelValue.slice();if(n)o&&l.length>=+o||l.includes(r)||(l.push(r),e.bindGroup&&u.updateValue(l));else{var a=l.indexOf(r);-1!==a&&(l.splice(a,1),e.bindGroup&&u.updateValue(l))}}(n):r("update:modelValue",n)};return l((function(){return e.modelValue}),(function(e){return r("change",e)})),a({toggle:d,props:e,checked:o}),i((function(){return e.modelValue})),function(){return c(V,g({bem:O,role:"checkbox",parent:u,checked:o.value,onToggle:d},e),b(t,["default","icon"]))}}});n("C",v(C))}}}))}();
