{"version":3,"file":"NcCheckboxRadioSwitch-B0KUiKrb-BMjYufv5.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcIconToggleSwitch-B7kfYo0B.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcRadioGroup-D6llQmAl.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcCheckboxRadioSwitch-B0KUiKrb.mjs"],"sourcesContent":["import '../assets/NcIconToggleSwitch-saytabt5.css';\nimport { defineComponent, useCssVars, computed, openBlock, createBlock, normalizeClass } from \"vue\";\nimport { N as NcIconSvgWrapper } from \"./NcIconSvgWrapper-De-2-ukl.mjs\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst svg = `<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 24 12\">\n\t<path d=\"M17,1H7A5,5 0 0,0 2,6 5,5 0 0,0 7,11H17A5,5 0 0,0 22,6 5,5 0 0,0 17,1Z\" />\n\t<circle\n\t\tcy=\"6\"\n\t\tr=\"3\"\n\t\tfill=\"var(--color-main-background)\" />\n</svg>`;\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n  __name: \"NcIconToggleSwitch\",\n  props: {\n    checked: { type: Boolean },\n    size: { default: 34 },\n    inline: { type: Boolean, default: false }\n  },\n  setup(__props) {\n    useCssVars((_ctx) => ({\n      \"6bd152af\": color.value,\n      \"16fd8ca9\": cx.value\n    }));\n    const color = computed(() => __props.checked ? \"var(--color-primary-element)\" : \"var(--color-text-maxcontrast)\");\n    const cx = computed(() => __props.checked ? \"calc(17 / 24 * 100%)\" : \"calc(7 / 24 * 100%)\");\n    return (_ctx, _cache) => {\n      return openBlock(), createBlock(NcIconSvgWrapper, {\n        class: normalizeClass(_ctx.$style.iconToggleSwitch),\n        svg,\n        size: _ctx.size,\n        inline: _ctx.inline\n      }, null, 8, [\"class\", \"size\", \"inline\"]);\n    };\n  }\n});\nconst iconToggleSwitch = \"_iconToggleSwitch_WgcOx\";\nconst style0 = {\n  \"material-design-icon\": \"_material-design-icon_ZYrc5\",\n  iconToggleSwitch\n};\nconst cssModules = {\n  \"$style\": style0\n};\nconst NcIconToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__cssModules\", cssModules]]);\nexport {\n  NcIconToggleSwitch as N\n};\n//# sourceMappingURL=NcIconToggleSwitch-B7kfYo0B.mjs.map\n","import { inject } from \"vue\";\n/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nconst INSIDE_RADIO_GROUP_KEY = /* @__PURE__ */ Symbol.for(\"insideRadioGroup\");\nfunction useInsideRadioGroup() {\n  return inject(INSIDE_RADIO_GROUP_KEY, void 0);\n}\nexport {\n  INSIDE_RADIO_GROUP_KEY as I,\n  useInsideRadioGroup as u\n};\n//# sourceMappingURL=useNcRadioGroup-D6llQmAl.mjs.map\n","import '../assets/NcCheckboxRadioSwitch-CZYa6mnQ.css';\nimport { openBlock, createElementBlock, mergeProps, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, toHandlers, withCtx, createVNode, createSlots, createTextVNode, onMounted, computed, useCssVars } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nimport { N as NcIconToggleSwitch } from \"./NcIconToggleSwitch-B7kfYo0B.mjs\";\nimport { N as NcLoadingIcon } from \"./NcLoadingIcon-CInLzPtA.mjs\";\nimport { r as register, K as n, a as t } from \"./_l10n-BCg4udFv.mjs\";\nimport { c as createElementId } from \"./createElementId-DhjFt1I9.mjs\";\nimport { u as useInsideRadioGroup } from \"./useNcRadioGroup-D6llQmAl.mjs\";\nconst _sfc_main$6 = {\n  name: \"CheckboxBlankOutlineIcon\",\n  emits: [\"click\"],\n  props: {\n    title: {\n      type: String\n    },\n    fillColor: {\n      type: String,\n      default: \"currentColor\"\n    },\n    size: {\n      type: Number,\n      default: 24\n    }\n  }\n};\nconst _hoisted_1$6 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$5 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$5 = { d: \"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z\" };\nconst _hoisted_4$4 = { key: 0 };\nfunction _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {\n  return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n    \"aria-hidden\": $props.title ? null : \"true\",\n    \"aria-label\": $props.title,\n    class: \"material-design-icon checkbox-blank-outline-icon\",\n    role: \"img\",\n    onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n  }), [\n    (openBlock(), createElementBlock(\"svg\", {\n      fill: $props.fillColor,\n      class: \"material-design-icon__svg\",\n      width: $props.size,\n      height: $props.size,\n      viewBox: \"0 0 24 24\"\n    }, [\n      createElementVNode(\"path\", _hoisted_3$5, [\n        $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n      ])\n    ], 8, _hoisted_2$5))\n  ], 16, _hoisted_1$6);\n}\nconst CheckboxBlankOutline = /* @__PURE__ */ _export_sfc(_sfc_main$6, [[\"render\", _sfc_render$6]]);\nconst _sfc_main$5 = {\n  name: \"CheckboxMarkedIcon\",\n  emits: [\"click\"],\n  props: {\n    title: {\n      type: String\n    },\n    fillColor: {\n      type: String,\n      default: \"currentColor\"\n    },\n    size: {\n      type: Number,\n      default: 24\n    }\n  }\n};\nconst _hoisted_1$5 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$4 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$4 = { d: \"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$3 = { key: 0 };\nfunction _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {\n  return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n    \"aria-hidden\": $props.title ? null : \"true\",\n    \"aria-label\": $props.title,\n    class: \"material-design-icon checkbox-marked-icon\",\n    role: \"img\",\n    onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n  }), [\n    (openBlock(), createElementBlock(\"svg\", {\n      fill: $props.fillColor,\n      class: \"material-design-icon__svg\",\n      width: $props.size,\n      height: $props.size,\n      viewBox: \"0 0 24 24\"\n    }, [\n      createElementVNode(\"path\", _hoisted_3$4, [\n        $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$3, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n      ])\n    ], 8, _hoisted_2$4))\n  ], 16, _hoisted_1$5);\n}\nconst CheckboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$5, [[\"render\", _sfc_render$5]]);\nconst _sfc_main$4 = {\n  name: \"MinusBoxIcon\",\n  emits: [\"click\"],\n  props: {\n    title: {\n      type: String\n    },\n    fillColor: {\n      type: String,\n      default: \"currentColor\"\n    },\n    size: {\n      type: Number,\n      default: 24\n    }\n  }\n};\nconst _hoisted_1$4 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$3 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$3 = { d: \"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$2 = { key: 0 };\nfunction _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {\n  return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n    \"aria-hidden\": $props.title ? null : \"true\",\n    \"aria-label\": $props.title,\n    class: \"material-design-icon minus-box-icon\",\n    role: \"img\",\n    onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n  }), [\n    (openBlock(), createElementBlock(\"svg\", {\n      fill: $props.fillColor,\n      class: \"material-design-icon__svg\",\n      width: $props.size,\n      height: $props.size,\n      viewBox: \"0 0 24 24\"\n    }, [\n      createElementVNode(\"path\", _hoisted_3$3, [\n        $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$2, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n      ])\n    ], 8, _hoisted_2$3))\n  ], 16, _hoisted_1$4);\n}\nconst MinusBox = /* @__PURE__ */ _export_sfc(_sfc_main$4, [[\"render\", _sfc_render$4]]);\nconst _sfc_main$3 = {\n  name: \"RadioboxBlankIcon\",\n  emits: [\"click\"],\n  props: {\n    title: {\n      type: String\n    },\n    fillColor: {\n      type: String,\n      default: \"currentColor\"\n    },\n    size: {\n      type: Number,\n      default: 24\n    }\n  }\n};\nconst _hoisted_1$3 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$2 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$2 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\" };\nconst _hoisted_4$1 = { key: 0 };\nfunction _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {\n  return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n    \"aria-hidden\": $props.title ? null : \"true\",\n    \"aria-label\": $props.title,\n    class: \"material-design-icon radiobox-blank-icon\",\n    role: \"img\",\n    onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n  }), [\n    (openBlock(), createElementBlock(\"svg\", {\n      fill: $props.fillColor,\n      class: \"material-design-icon__svg\",\n      width: $props.size,\n      height: $props.size,\n      viewBox: \"0 0 24 24\"\n    }, [\n      createElementVNode(\"path\", _hoisted_3$2, [\n        $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n      ])\n    ], 8, _hoisted_2$2))\n  ], 16, _hoisted_1$3);\n}\nconst RadioboxBlank = /* @__PURE__ */ _export_sfc(_sfc_main$3, [[\"render\", _sfc_render$3]]);\nconst _sfc_main$2 = {\n  name: \"RadioboxMarkedIcon\",\n  emits: [\"click\"],\n  props: {\n    title: {\n      type: String\n    },\n    fillColor: {\n      type: String,\n      default: \"currentColor\"\n    },\n    size: {\n      type: Number,\n      default: 24\n    }\n  }\n};\nconst _hoisted_1$2 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$1 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$1 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z\" };\nconst _hoisted_4 = { key: 0 };\nfunction _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {\n  return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n    \"aria-hidden\": $props.title ? null : \"true\",\n    \"aria-label\": $props.title,\n    class: \"material-design-icon radiobox-marked-icon\",\n    role: \"img\",\n    onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n  }), [\n    (openBlock(), createElementBlock(\"svg\", {\n      fill: $props.fillColor,\n      class: \"material-design-icon__svg\",\n      width: $props.size,\n      height: $props.size,\n      viewBox: \"0 0 24 24\"\n    }, [\n      createElementVNode(\"path\", _hoisted_3$1, [\n        $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n      ])\n    ], 8, _hoisted_2$1))\n  ], 16, _hoisted_1$2);\n}\nconst RadioboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$2, [[\"render\", _sfc_render$2]]);\nconst TYPE_CHECKBOX = \"checkbox\";\nconst TYPE_RADIO = \"radio\";\nconst TYPE_SWITCH = \"switch\";\nconst TYPE_BUTTON = \"button\";\nconst _sfc_main$1 = {\n  name: \"NcCheckboxContent\",\n  components: {\n    NcLoadingIcon,\n    NcIconToggleSwitch\n  },\n  props: {\n    /**\n     * Class for the icon element\n     */\n    iconClass: {\n      type: [String, Object],\n      default: null\n    },\n    /**\n     * Class for the text element\n     */\n    textClass: {\n      type: [String, Object],\n      default: null\n    },\n    /**\n     * Type of the input. checkbox, radio, switch, or button.\n     *\n     * Only use button when used in a `tablist` container and the\n     * `tab` role is set.\n     *\n     * @type {'checkbox'|'radio'|'switch'|'button'}\n     */\n    type: {\n      type: String,\n      default: \"checkbox\",\n      validator: (type) => [\n        TYPE_CHECKBOX,\n        TYPE_RADIO,\n        TYPE_SWITCH,\n        TYPE_BUTTON\n      ].includes(type)\n    },\n    /**\n     * Toggle the alternative button style\n     */\n    buttonVariant: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * True if the entry is checked\n     */\n    isChecked: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Indeterminate state\n     */\n    indeterminate: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Loading state\n     */\n    loading: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Icon size\n     */\n    iconSize: {\n      type: Number,\n      default: 24\n    },\n    /**\n     * Label id attribute\n     */\n    labelId: {\n      type: String,\n      required: true\n    },\n    /**\n     * Description id attribute\n     */\n    descriptionId: {\n      type: String,\n      required: true\n    }\n  },\n  computed: {\n    isButtonType() {\n      return this.type === TYPE_BUTTON;\n    },\n    isSwitchType() {\n      return this.type === TYPE_SWITCH;\n    },\n    /**\n     * Returns the proper Material icon depending on the select case\n     *\n     * @return {object}\n     */\n    checkboxRadioIconElement() {\n      if (this.type === TYPE_RADIO) {\n        if (this.isChecked) {\n          return RadioboxMarked;\n        }\n        return RadioboxBlank;\n      }\n      if (this.indeterminate) {\n        return MinusBox;\n      }\n      if (this.isChecked) {\n        return CheckboxMarked;\n      }\n      return CheckboxBlankOutline;\n    }\n  }\n};\nconst _hoisted_1$1 = {\n  key: 0,\n  class: \"checkbox-content__wrapper\"\n};\nconst _hoisted_2 = [\"id\"];\nconst _hoisted_3 = [\"id\"];\nfunction _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {\n  const _component_NcLoadingIcon = resolveComponent(\"NcLoadingIcon\");\n  const _component_NcIconToggleSwitch = resolveComponent(\"NcIconToggleSwitch\");\n  return openBlock(), createElementBlock(\"span\", {\n    class: normalizeClass([\"checkbox-content\", {\n      [\"checkbox-content-\" + $props.type]: true,\n      \"checkbox-content--button-variant\": $props.buttonVariant,\n      \"checkbox-content--has-text\": !!_ctx.$slots.default\n    }])\n  }, [\n    createElementVNode(\"span\", {\n      class: normalizeClass([\"checkbox-content__icon\", {\n        \"checkbox-content__icon--checked\": $props.isChecked,\n        \"checkbox-content__icon--has-description\": !$options.isButtonType && _ctx.$slots.description,\n        [$props.iconClass]: true\n      }]),\n      \"aria-hidden\": true,\n      inert: \"\"\n    }, [\n      renderSlot(_ctx.$slots, \"icon\", {\n        checked: $props.isChecked,\n        loading: $props.loading\n      }, () => [\n        $props.loading ? (openBlock(), createBlock(_component_NcLoadingIcon, { key: 0 })) : $options.isSwitchType ? (openBlock(), createBlock(_component_NcIconToggleSwitch, {\n          key: 1,\n          checked: $props.isChecked,\n          size: $props.iconSize,\n          inline: \"\"\n        }, null, 8, [\"checked\", \"size\"])) : !$props.buttonVariant ? (openBlock(), createBlock(resolveDynamicComponent($options.checkboxRadioIconElement), {\n          key: 2,\n          size: $props.iconSize\n        }, null, 8, [\"size\"])) : createCommentVNode(\"\", true)\n      ], true)\n    ], 2),\n    _ctx.$slots.default || _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", _hoisted_1$1, [\n      _ctx.$slots.default ? (openBlock(), createElementBlock(\"span\", {\n        key: 0,\n        id: $props.labelId,\n        class: normalizeClass([\"checkbox-content__text\", $props.textClass])\n      }, [\n        renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n      ], 10, _hoisted_2)) : createCommentVNode(\"\", true),\n      !$options.isButtonType && _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", {\n        key: 1,\n        id: $props.descriptionId,\n        class: \"checkbox-content__description\"\n      }, [\n        renderSlot(_ctx.$slots, \"description\", {}, void 0, true)\n      ], 8, _hoisted_3)) : createCommentVNode(\"\", true)\n    ])) : createCommentVNode(\"\", true)\n  ], 2);\n}\nconst NcCheckboxContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [[\"render\", _sfc_render$1], [\"__scopeId\", \"data-v-5ca1e30f\"]]);\nregister();\nconst _sfc_main = {\n  name: \"NcCheckboxRadioSwitch\",\n  components: {\n    NcCheckboxContent\n  },\n  // We need to pass attributes to the input element\n  inheritAttrs: false,\n  props: {\n    /**\n     * Unique id attribute of the input\n     */\n    id: {\n      type: String,\n      default: () => \"checkbox-radio-switch-\" + createElementId(),\n      validator: (id) => id.trim() !== \"\"\n    },\n    /**\n     * Unique id attribute of the wrapper element\n     */\n    wrapperId: {\n      type: String,\n      default: null\n    },\n    /**\n     * Input name. Required for radio, optional for checkbox, and ignored\n     * for button.\n     */\n    name: {\n      type: String,\n      default: null\n    },\n    /**\n     * Required if no text is set.\n     * The aria-label is forwarded to the input or button.\n     */\n    ariaLabel: {\n      type: String,\n      default: \"\"\n    },\n    /**\n     * Type of the input. checkbox, radio, switch, or button.\n     *\n     * Only use button when used in a `tablist` container and the\n     * `tab` role is set.\n     *\n     * @type {'checkbox'|'radio'|'switch'|'button'}\n     */\n    type: {\n      type: String,\n      default: \"checkbox\",\n      validator: (type) => [\n        TYPE_CHECKBOX,\n        TYPE_RADIO,\n        TYPE_SWITCH,\n        TYPE_BUTTON\n      ].includes(type)\n    },\n    /**\n     * Toggle the alternative button style\n     *\n     * @deprecated - Use `NcRadioGroup` instead\n     */\n    buttonVariant: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Are the elements are all direct siblings?\n     * If so they will be grouped horizontally or vertically\n     *\n     * @type {'no'|'horizontal'|'vertical'}\n     * @deprecated - Use `NcRadioGroup` instead\n     */\n    buttonVariantGrouped: {\n      type: String,\n      default: \"no\",\n      validator: (v) => [\"no\", \"vertical\", \"horizontal\"].includes(v)\n    },\n    /**\n     * Checked state. To be used with `v-model:value`\n     */\n    modelValue: {\n      type: [Boolean, Array, String],\n      default: false\n    },\n    /**\n     * Value to be synced on check\n     */\n    value: {\n      type: String,\n      default: null\n    },\n    /**\n     * Disabled state\n     */\n    disabled: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Indeterminate state\n     */\n    indeterminate: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Required state\n     */\n    required: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Loading state\n     */\n    loading: {\n      type: Boolean,\n      default: false\n    },\n    /**\n     * Wrapping element tag\n     *\n     * When `type` is set to `button` this will be ignored\n     *\n     * Defaults to `span`\n     */\n    wrapperElement: {\n      type: String,\n      default: null\n    },\n    /**\n     * The class(es) to pass to the wrapper / root element of the component\n     */\n    class: {\n      type: [String, Array, Object],\n      default: \"\"\n    },\n    /**\n     * The style to pass to the wrapper / root element of the component\n     */\n    style: {\n      type: [String, Array, Object],\n      default: \"\"\n    },\n    /**\n     * Description\n     *\n     * This is unsupported when using button has type.\n     */\n    description: {\n      type: String,\n      default: null\n    }\n  },\n  emits: [\"update:modelValue\"],\n  setup(props, { emit }) {\n    const radioGroup = useInsideRadioGroup();\n    onMounted(() => radioGroup?.value.register(false));\n    const internalType = computed(() => radioGroup?.value ? TYPE_RADIO : props.type);\n    const internalModelValue = computed({\n      get() {\n        if (radioGroup?.value) {\n          return radioGroup.value.modelValue;\n        }\n        return props.modelValue;\n      },\n      set(value) {\n        if (radioGroup?.value) {\n          radioGroup.value.onUpdate(value);\n        } else {\n          emit(\"update:modelValue\", value);\n        }\n      }\n    });\n    return {\n      internalType,\n      internalModelValue,\n      labelId: createElementId(),\n      descriptionId: createElementId()\n    };\n  },\n  computed: {\n    isButtonType() {\n      return this.internalType === TYPE_BUTTON;\n    },\n    computedWrapperElement() {\n      if (this.isButtonType) {\n        return \"button\";\n      }\n      if (this.wrapperElement !== null) {\n        return this.wrapperElement;\n      }\n      return \"span\";\n    },\n    listeners() {\n      if (this.isButtonType) {\n        return {\n          click: this.onToggle\n        };\n      }\n      return {\n        change: this.onToggle\n      };\n    },\n    iconSize() {\n      return this.internalType === TYPE_SWITCH ? 36 : 20;\n    },\n    cssIconSize() {\n      return this.iconSize + \"px\";\n    },\n    cssIconHeight() {\n      return this.internalType === TYPE_SWITCH ? \"16px\" : this.cssIconSize;\n    },\n    /**\n     * Return the input type.\n     * Switch is not an official type\n     *\n     * @return {string}\n     */\n    inputType() {\n      const nativeTypes = [\n        TYPE_CHECKBOX,\n        TYPE_RADIO,\n        TYPE_BUTTON\n      ];\n      if (nativeTypes.includes(this.internalType)) {\n        return this.internalType;\n      }\n      return TYPE_CHECKBOX;\n    },\n    /**\n     * Check if that entry is checked\n     * If value is defined, we use that as the checked value\n     * If not, we expect true/false in this.checked\n     *\n     * @return {boolean}\n     */\n    isChecked() {\n      if (this.value !== null) {\n        if (Array.isArray(this.internalModelValue)) {\n          return [...this.internalModelValue].indexOf(this.value) > -1;\n        }\n        return this.internalModelValue === this.value;\n      }\n      return this.internalModelValue === true;\n    },\n    hasIndeterminate() {\n      return [\n        TYPE_CHECKBOX,\n        TYPE_RADIO\n      ].includes(this.inputType);\n    }\n  },\n  mounted() {\n    if (this.name && this.internalType === TYPE_CHECKBOX) {\n      if (!Array.isArray(this.internalModelValue)) {\n        throw new Error(\"When using groups of checkboxes, the updated value will be an array.\");\n      }\n    }\n    if (this.name && this.internalType === TYPE_SWITCH) {\n      throw new Error(\"Switches are not made to be used for data sets. Please use checkboxes instead.\");\n    }\n    if (typeof this.internalModelValue !== \"boolean\" && this.internalType === TYPE_SWITCH) {\n      throw new Error(\"Switches can only be used with boolean as modelValue prop.\");\n    }\n  },\n  methods: {\n    t,\n    n,\n    onToggle(event) {\n      if (this.disabled || event.target.tagName.toLowerCase() === \"a\") {\n        return;\n      }\n      if (this.internalType === TYPE_RADIO) {\n        this.internalModelValue = this.value;\n        return;\n      }\n      if (this.internalType === TYPE_SWITCH) {\n        this.internalModelValue = !this.isChecked;\n        return;\n      }\n      if (typeof this.internalModelValue === \"boolean\") {\n        this.internalModelValue = !this.internalModelValue;\n        return;\n      }\n      if (this.isChecked) {\n        this.internalModelValue = this.internalModelValue.filter((v) => v !== this.value);\n      } else {\n        this.internalModelValue = [...this.internalModelValue, this.value];\n      }\n    }\n  }\n};\nconst __injectCSSVars__ = () => {\n  useCssVars((_ctx) => ({\n    \"5ac25550\": _ctx.cssIconSize,\n    \"d98ce684\": _ctx.cssIconHeight\n  }));\n};\nconst __setup__ = _sfc_main.setup;\n_sfc_main.setup = __setup__ ? (props, ctx) => {\n  __injectCSSVars__();\n  return __setup__(props, ctx);\n} : __injectCSSVars__;\nconst _hoisted_1 = [\"id\", \"aria-labelledby\", \"aria-describedby\", \"aria-label\", \"disabled\", \"type\", \"value\", \"checked\", \".indeterminate\", \"required\", \"name\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n  const _component_NcCheckboxContent = resolveComponent(\"NcCheckboxContent\");\n  return openBlock(), createBlock(resolveDynamicComponent($options.computedWrapperElement), mergeProps({\n    id: $props.wrapperId ?? ($options.isButtonType ? $props.id : null),\n    \"aria-label\": $options.isButtonType && $props.ariaLabel ? $props.ariaLabel : void 0,\n    class: [\"checkbox-radio-switch\", [\n      _ctx.$props.class,\n      {\n        [\"checkbox-radio-switch-\" + $setup.internalType]: $setup.internalType,\n        \"checkbox-radio-switch--checked\": $options.isChecked,\n        \"checkbox-radio-switch--disabled\": $props.disabled,\n        \"checkbox-radio-switch--indeterminate\": $options.hasIndeterminate ? $props.indeterminate : false,\n        \"checkbox-radio-switch--button-variant\": $props.buttonVariant,\n        \"checkbox-radio-switch--button-variant-v-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"vertical\",\n        \"checkbox-radio-switch--button-variant-h-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"horizontal\",\n        \"button-vue\": $options.isButtonType\n      }\n    ]],\n    style: $props.style,\n    type: $options.isButtonType ? \"button\" : null\n  }, $options.isButtonType ? _ctx.$attrs : {}, toHandlers($options.isButtonType ? $options.listeners : {})), {\n    default: withCtx(() => [\n      !$options.isButtonType ? (openBlock(), createElementBlock(\"input\", mergeProps({\n        key: 0,\n        id: $props.id,\n        \"aria-labelledby\": !$options.isButtonType && !$props.ariaLabel ? $setup.labelId : null,\n        \"aria-describedby\": !$options.isButtonType && ($props.description || _ctx.$slots.description) ? $setup.descriptionId : null,\n        \"aria-label\": $props.ariaLabel || void 0,\n        class: \"checkbox-radio-switch__input\",\n        disabled: $props.disabled,\n        type: $options.inputType,\n        value: $props.value,\n        checked: $options.isChecked,\n        \".indeterminate\": $options.hasIndeterminate ? $props.indeterminate : null,\n        required: $props.required,\n        name: $props.name\n      }, _ctx.$attrs, toHandlers($options.listeners, true)), null, 48, _hoisted_1)) : createCommentVNode(\"\", true),\n      createVNode(_component_NcCheckboxContent, {\n        id: !$options.isButtonType ? `${$props.id}-label` : void 0,\n        class: \"checkbox-radio-switch__content\",\n        iconClass: \"checkbox-radio-switch__icon\",\n        textClass: \"checkbox-radio-switch__text\",\n        type: $setup.internalType,\n        indeterminate: $options.hasIndeterminate ? $props.indeterminate : false,\n        buttonVariant: $props.buttonVariant,\n        isChecked: $options.isChecked,\n        loading: $props.loading,\n        labelId: $setup.labelId,\n        descriptionId: $setup.descriptionId,\n        iconSize: $options.iconSize,\n        onClick: $options.onToggle\n      }, createSlots({\n        icon: withCtx(() => [\n          renderSlot(_ctx.$slots, \"icon\", {}, void 0, true)\n        ]),\n        _: 2\n      }, [\n        _ctx.$slots.description || $props.description ? {\n          name: \"description\",\n          fn: withCtx(() => [\n            renderSlot(_ctx.$slots, \"description\", {}, () => [\n              createTextVNode(toDisplayString($props.description), 1)\n            ], true)\n          ]),\n          key: \"0\"\n        } : void 0,\n        !!_ctx.$slots.default ? {\n          name: \"default\",\n          fn: withCtx(() => [\n            renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n          ]),\n          key: \"1\"\n        } : void 0\n      ]), 1032, [\"id\", \"type\", \"indeterminate\", \"buttonVariant\", \"isChecked\", \"loading\", \"labelId\", \"descriptionId\", \"iconSize\", \"onClick\"])\n    ]),\n    _: 3\n  }, 16, [\"id\", \"aria-label\", \"class\", \"style\", \"type\"]);\n}\nconst NcCheckboxRadioSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__scopeId\", \"data-v-c34c63a4\"]]);\nexport {\n  NcCheckboxRadioSwitch as N\n};\n//# sourceMappingURL=NcCheckboxRadioSwitch-B0KUiKrb.mjs.map\n"],"names":["svg","_sfc_main","defineComponent","__props","useCssVars","_ctx","color","cx","computed","_cache","openBlock","createBlock","NcIconSvgWrapper","normalizeClass","iconToggleSwitch","style0","cssModules","NcIconToggleSwitch","_export_sfc","INSIDE_RADIO_GROUP_KEY","useInsideRadioGroup","inject","_sfc_main$6","_hoisted_1$6","_hoisted_2$5","_hoisted_3$5","_hoisted_4$4","_sfc_render$6","$props","$setup","$data","$options","createElementBlock","mergeProps","$event","createElementVNode","toDisplayString","createCommentVNode","CheckboxBlankOutline","_sfc_main$5","_hoisted_1$5","_hoisted_2$4","_hoisted_3$4","_hoisted_4$3","_sfc_render$5","CheckboxMarked","_sfc_main$4","_hoisted_1$4","_hoisted_2$3","_hoisted_3$3","_hoisted_4$2","_sfc_render$4","MinusBox","_sfc_main$3","_hoisted_1$3","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","_sfc_render$3","RadioboxBlank","_sfc_main$2","_hoisted_1$2","_hoisted_2$1","_hoisted_3$1","_hoisted_4","_sfc_render$2","RadioboxMarked","TYPE_CHECKBOX","TYPE_RADIO","TYPE_SWITCH","TYPE_BUTTON","_sfc_main$1","NcLoadingIcon","type","_hoisted_1$1","_hoisted_2","_hoisted_3","_sfc_render$1","_component_NcLoadingIcon","resolveComponent","_component_NcIconToggleSwitch","renderSlot","resolveDynamicComponent","NcCheckboxContent","register","createElementId","id","v","props","emit","radioGroup","onMounted","internalType","internalModelValue","value","t","n","event","__injectCSSVars__","__setup__","ctx","_hoisted_1","_sfc_render","_component_NcCheckboxContent","toHandlers","withCtx","createVNode","createSlots","createTextVNode","NcCheckboxRadioSwitch"],"mappings":"wVAIA,MAAMA,EAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QASNC,EAA4BC,EAAgB,CAChD,OAAQ,qBACR,MAAO,CACL,QAAS,CAAE,KAAM,OAAO,EACxB,KAAM,CAAE,QAAS,EAAE,EACnB,OAAQ,CAAE,KAAM,QAAS,QAAS,EAAK,CAC3C,EACE,MAAMC,EAAS,CACbC,EAAYC,IAAU,CACpB,WAAYC,EAAM,MAClB,WAAYC,EAAG,KACrB,EAAM,EACF,MAAMD,EAAQE,EAAS,IAAML,EAAQ,QAAU,+BAAiC,+BAA+B,EACzGI,EAAKC,EAAS,IAAML,EAAQ,QAAU,uBAAyB,qBAAqB,EAC1F,MAAO,CAACE,EAAMI,KACLC,EAAS,EAAIC,EAAYC,EAAkB,CAChD,MAAOC,EAAeR,EAAK,OAAO,gBAAgB,EAClD,IAAAL,EACA,KAAMK,EAAK,KACX,OAAQA,EAAK,MACrB,EAAS,KAAM,EAAG,CAAC,QAAS,OAAQ,QAAQ,CAAC,EAE3C,CACF,CAAC,EACKS,EAAmB,0BACnBC,EAAS,CACb,uBAAwB,8BACxB,iBAAAD,CACF,EACME,EAAa,CACjB,OAAUD,CACZ,EACME,EAAqCC,EAAYj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