import "../styles/reset.css";
import "./checkbox.less";
import { EMPTY_OBJ as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_EMPTY_OBJ__, PropTypes as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__, SizeEnum as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_SizeEnum__, classes as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_classes__, isEmptyObj as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_isEmptyObj__, useFormItem as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_useFormItem__, withInstallProps as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstallProps__ } from "../shared";
import { computed as __WEBPACK_EXTERNAL_MODULE_vue_computed__, createVNode as __WEBPACK_EXTERNAL_MODULE_vue_createVNode__, defineComponent as __WEBPACK_EXTERNAL_MODULE_vue_defineComponent__, getCurrentInstance as __WEBPACK_EXTERNAL_MODULE_vue_getCurrentInstance__, inject as __WEBPACK_EXTERNAL_MODULE_vue_inject__, nextTick as __WEBPACK_EXTERNAL_MODULE_vue_nextTick__, onBeforeUnmount as __WEBPACK_EXTERNAL_MODULE_vue_onBeforeUnmount__, onMounted as __WEBPACK_EXTERNAL_MODULE_vue_onMounted__, provide as __WEBPACK_EXTERNAL_MODULE_vue_provide__, ref as __WEBPACK_EXTERNAL_MODULE_vue_ref__, watch as __WEBPACK_EXTERNAL_MODULE_vue_watch__ } from "vue";
import { func as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a_func__ } from "vue-types";
import { usePrefix as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__ } from "../config-provider";
import { Loading as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3_Loading__ } from "../icon";

;// external "../shared"

;// external "vue"

;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
function _typeof(o) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
    return typeof o;
  } : function (o) {
    return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  }, _typeof(o);
}

;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js

function toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}

;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js


function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}

;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js

function _defineProperty(e, r, t) {
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
    value: t,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[r] = t, e;
}

;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
function _arrayWithHoles(r) {
  if (Array.isArray(r)) return r;
}

;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
function _iterableToArrayLimit(r, l) {
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  if (null != t) {
    var e,
      n,
      i,
      u,
      a = [],
      f = !0,
      o = !1;
    try {
      if (i = (t = t.call(r)).next, 0 === l) {
        if (Object(t) !== t) return;
        f = !1;
      } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
    } catch (r) {
      o = !0, n = r;
    } finally {
      try {
        if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
      } finally {
        if (o) throw n;
      }
    }
    return a;
  }
}

;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
function _arrayLikeToArray(r, a) {
  (null == a || a > r.length) && (a = r.length);
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  return n;
}

;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js

function _unsupportedIterableToArray(r, a) {
  if (r) {
    if ("string" == typeof r) return _arrayLikeToArray(r, a);
    var t = {}.toString.call(r).slice(8, -1);
    return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  }
}

;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js




function _slicedToArray(r, e) {
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}

;// external "vue-types"

;// external "../config-provider"

;// external "../icon"

;// ../../packages/checkbox/src/common.ts
/*
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */


var checkboxGroupKey = Symbol('CheckboxGroup');
function useFocus() {
  var isFocus = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
  var blur = function blur() {
    isFocus.value = false;
  };
  var focus = function focus() {
    isFocus.value = true;
  };
  return [isFocus, {
    blur: blur,
    focus: focus
  }];
}
var useCheckbox = function useCheckbox() {
  var currentInstance = __WEBPACK_EXTERNAL_MODULE_vue_getCurrentInstance__();
  var props = currentInstance.props,
    emit = currentInstance.emit;
  var checkboxGroup = __WEBPACK_EXTERNAL_MODULE_vue_inject__(checkboxGroupKey, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_EMPTY_OBJ__);
  var isGroup = !__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_isEmptyObj__(checkboxGroup);
  var inputRef = __WEBPACK_EXTERNAL_MODULE_vue_ref__();
  var isChecked = __WEBPACK_EXTERNAL_MODULE_vue_ref__(props.checked);
  var isPrechecking = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
  // 禁用状态
  var isDisabled = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
    if (isGroup && checkboxGroup.props.disabled) {
      return true;
    }
    return props.disabled;
  });
  // 触发更新
  var triggerChange = function triggerChange(event) {
    // 单独使用时状态切换返回 trueLabel、falseLabel
    var nextValue = isChecked.value ? props.trueLabel : props.falseLabel;
    emit('update:modelValue', nextValue);
    emit('change', nextValue, event);
    // 更新 checkbox-group
    // 配合 checkbox-group 使用时返回 props.label
    if (isGroup) {
      checkboxGroup.handleChange();
    }
    __WEBPACK_EXTERNAL_MODULE_vue_nextTick__(function () {
      // 选中状态保持同步
      if (inputRef.value && inputRef.value.checked !== isChecked.value) {
        inputRef.value.checked = isChecked.value;
      }
    });
  };
  // 响应modelValue
  if (isGroup) {
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return checkboxGroup.props.modelValue;
    }, function (modelValue) {
      isChecked.value = modelValue.includes(props.label);
    }, {
      deep: true
    });
  } else {
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return props.modelValue;
    }, function (modelValue) {
      if (modelValue === '') {
        return;
      }
      isChecked.value = modelValue === props.trueLabel;
    }, {
      immediate: true
    });
  }
  __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
    return props.checked;
  }, function () {
    isChecked.value = props.checked;
    if (props.immediateEmitChange !== false) {
      triggerChange();
    }
  });
  var setChecked = function setChecked() {
    var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
    isChecked.value = value;
  };
  // 值更新
  var handleChange = function handleChange(event) {
    if (props.readonly) {
      return;
    }
    var $targetInput = event.target;
    if (isDisabled.value || isPrechecking.value) {
      return;
    }
    isPrechecking.value = true;
    var nextValue = $targetInput.checked;
    Promise.resolve(props.beforeChange ? props.beforeChange(nextValue) : true).then(function (result) {
      if (result) {
        isChecked.value = nextValue;
        triggerChange(event);
      } else {
        return Promise.reject();
      }
    })["catch"](function (err) {
      console.error(err);
      $targetInput.checked = isChecked.value;
    })["finally"](function () {
      isPrechecking.value = false;
    });
  };
  __WEBPACK_EXTERNAL_MODULE_vue_onMounted__(function () {
    if (isGroup) {
      checkboxGroup.register(currentInstance.proxy);
    }
  });
  __WEBPACK_EXTERNAL_MODULE_vue_onBeforeUnmount__(function () {
    if (isGroup) {
      checkboxGroup.unregister(currentInstance.proxy);
    }
  });
  return {
    inputRef: inputRef,
    isChecked: isChecked,
    isPrechecking: isPrechecking,
    isDisabled: isDisabled,
    setChecked: setChecked,
    handleChange: handleChange
  };
};
;// ../../packages/checkbox/src/checkbox.tsx



/*
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */






var checkboxProps = {
  modelValue: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number]),
  label: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number]),
  trueLabel: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number]).def(true),
  falseLabel: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string, __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number]).def(false),
  disabled: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false),
  checked: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false),
  indeterminate: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool,
  beforeChange: __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a_func__().def(function () {
    return true;
  }),
  size: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.size().def(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_SizeEnum__.DEFAULT),
  immediateEmitChange: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(true),
  // 默认设置checked是否触发change事件
  readonly: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false),
  outline: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false)
};
/* harmony default export */ const src_checkbox = (__WEBPACK_EXTERNAL_MODULE_vue_defineComponent__({
  name: 'Checkbox',
  props: checkboxProps,
  emits: {
    'update:modelValue': function updateModelValue(value) {
      return value !== undefined;
    },
    change: function change(value, _event) {
      return value !== undefined;
    },
    click: function click(_event) {
      return true;
    }
  },
  setup: function setup(props) {
    var _useFocus = useFocus(),
      _useFocus2 = _slicedToArray(_useFocus, 2),
      isFocus = _useFocus2[0],
      _useFocus2$ = _useFocus2[1],
      handleBlur = _useFocus2$.blur,
      handleFocus = _useFocus2$.focus;
    var _useCheckbox = useCheckbox(),
      inputRef = _useCheckbox.inputRef,
      isChecked = _useCheckbox.isChecked,
      isPrechecking = _useCheckbox.isPrechecking,
      isDisabled = _useCheckbox.isDisabled,
      setChecked = _useCheckbox.setChecked,
      handleChange = _useCheckbox.handleChange;
    var _usePrefix = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__(),
      resolveClassName = _usePrefix.resolveClassName;
    return {
      inputRef: inputRef,
      isFocus: isFocus,
      isChecked: isChecked,
      isPrechecking: isPrechecking,
      isDisabled: isDisabled,
      setChecked: setChecked,
      handleBlur: handleBlur,
      handleFocus: handleFocus,
      handleChange: handleChange,
      size: props.size,
      resolveClassName: resolveClassName
    };
  },
  render: function render() {
    var _this = this;
    var checkboxClass = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_classes__(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('checkbox')), true), "".concat(this.resolveClassName('checkbox'), "-").concat(this.size), true), 'is-focused', this.isFocus), 'is-checked', this.isChecked), 'is-disabled', this.isDisabled), 'is-indeterminated', this.indeterminate), 'is-prechecking', this.isPrechecking), 'is-outline', this.outline));
    var renderLabel = function renderLabel() {
      if (!_this.label && !_this.$slots["default"]) {
        return null;
      }
      return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("span", {
        "class": "".concat(_this.resolveClassName('checkbox-label'))
      }, [_this.$slots["default"] ? _this.$slots["default"]() : _this.label]);
    };
    return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("label", {
      "class": checkboxClass
    }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("span", {
      "class": this.resolveClassName('checkbox-input')
    }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("input", {
      "ref": "inputRef",
      "class": "".concat(this.resolveClassName('checkbox-original')),
      "checked": this.isChecked,
      "disabled": this.isDisabled || this.isPrechecking,
      "role": "checkbox",
      "type": "checkbox",
      "onChange": this.handleChange
    }, null)]), renderLabel(), this.isPrechecking && __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3_Loading__, {
      "class": "".concat(this.resolveClassName('checkbox-checking'))
    }, null)]);
  }
}));
;// ../../packages/checkbox/src/checkbox-group.tsx
/*
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */




var checkboxGroupProps = {
  modelValue: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.array,
  disabled: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool,
  withValidate: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(true)
};
/* harmony default export */ const checkbox_group = (__WEBPACK_EXTERNAL_MODULE_vue_defineComponent__({
  name: 'CheckboxGroup',
  props: checkboxGroupProps,
  emits: {
    'update:modelValue': function updateModelValue(value) {
      return value !== undefined;
    },
    change: function change(value) {
      return value !== undefined;
    }
  },
  setup: function setup(props, context) {
    var formItem = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_useFormItem__();
    var checkboxInstanceList = [];
    var register = function register(checkboxContext) {
      checkboxInstanceList.push(checkboxContext);
    };
    var unregister = function unregister(checkboxContext) {
      var index = checkboxInstanceList.indexOf(checkboxContext);
      if (index > -1) {
        checkboxInstanceList.splice(index, 1);
      }
    };
    var handleChange = function handleChange() {
      var nextValue = checkboxInstanceList.reduce(function (result, checkboxInstance) {
        if (checkboxInstance.isChecked) {
          result.push(checkboxInstance.label);
        }
        return result;
      }, []);
      context.emit('update:modelValue', nextValue);
      context.emit('change', nextValue);
    };
    __WEBPACK_EXTERNAL_MODULE_vue_provide__(checkboxGroupKey, {
      name: 'CheckboxGroup',
      props: props,
      register: register,
      unregister: unregister,
      handleChange: handleChange
    });
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return props.modelValue;
    }, function () {
      if (props.withValidate) {
        var _formItem$validate;
        formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
      }
    });
    __WEBPACK_EXTERNAL_MODULE_vue_onMounted__(function () {
      var modelValue = props.modelValue || [];
      checkboxInstanceList.forEach(function (checkboxInstance) {
        if (modelValue.includes(checkboxInstance.label)) {
          checkboxInstance.setChecked(true);
        }
      });
    });
    var _usePrefix = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__(),
      resolveClassName = _usePrefix.resolveClassName;
    return {
      resolveClassName: resolveClassName
    };
  },
  render: function render() {
    var _this$$slots;
    return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
      "class": "".concat(this.resolveClassName('checkbox-group'))
    }, [(_this$$slots = this.$slots) === null || _this$$slots === void 0 ? void 0 : _this$$slots["default"]()]);
  }
}));
;// ../../packages/checkbox/src/index.ts
/*
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */



var BkCheckbox = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstallProps__(src_checkbox, {
  Group: checkbox_group
});
/* harmony default export */ const src = (BkCheckbox);

export { BkCheckbox, checkbox_group as BkCheckboxGroup, src as default };
