{"version":3,"file":"AiSearchAllowedTables-DuLdaR2v.js","names":["BaseEditableHolder","script","_hoisted_1","_hoisted_2","createElementVNode","ToggleSwitch"],"sources":["../../../node_modules/@primeuix/styles/dist/toggleswitch/index.mjs","../../../node_modules/primevue/toggleswitch/style/index.mjs","../../../node_modules/primevue/toggleswitch/index.mjs","../../../node_modules/primevue/inputswitch/index.mjs","../../../app/javascript/Pages/ParameterManagement/components/AiSearchAllowedTables.vue"],"sourcesContent":["var style=\"\\n .p-toggleswitch {\\n display: inline-block;\\n width: dt('toggleswitch.width');\\n height: dt('toggleswitch.height');\\n }\\n\\n .p-toggleswitch-input {\\n cursor: pointer;\\n appearance: none;\\n position: absolute;\\n top: 0;\\n inset-inline-start: 0;\\n width: 100%;\\n height: 100%;\\n padding: 0;\\n margin: 0;\\n opacity: 0;\\n z-index: 1;\\n outline: 0 none;\\n border-radius: dt('toggleswitch.border.radius');\\n }\\n\\n .p-toggleswitch-slider {\\n cursor: pointer;\\n width: 100%;\\n height: 100%;\\n border-width: dt('toggleswitch.border.width');\\n border-style: solid;\\n border-color: dt('toggleswitch.border.color');\\n background: dt('toggleswitch.background');\\n transition:\\n background dt('toggleswitch.transition.duration'),\\n color dt('toggleswitch.transition.duration'),\\n border-color dt('toggleswitch.transition.duration'),\\n outline-color dt('toggleswitch.transition.duration'),\\n box-shadow dt('toggleswitch.transition.duration');\\n border-radius: dt('toggleswitch.border.radius');\\n outline-color: transparent;\\n box-shadow: dt('toggleswitch.shadow');\\n }\\n\\n .p-toggleswitch-handle {\\n position: absolute;\\n top: 50%;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background: dt('toggleswitch.handle.background');\\n color: dt('toggleswitch.handle.color');\\n width: dt('toggleswitch.handle.size');\\n height: dt('toggleswitch.handle.size');\\n inset-inline-start: dt('toggleswitch.gap');\\n margin-block-start: calc(-1 * calc(dt('toggleswitch.handle.size') / 2));\\n border-radius: dt('toggleswitch.handle.border.radius');\\n transition:\\n background dt('toggleswitch.transition.duration'),\\n color dt('toggleswitch.transition.duration'),\\n inset-inline-start dt('toggleswitch.slide.duration'),\\n box-shadow dt('toggleswitch.slide.duration');\\n }\\n\\n .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {\\n background: dt('toggleswitch.checked.background');\\n border-color: dt('toggleswitch.checked.border.color');\\n }\\n\\n .p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {\\n background: dt('toggleswitch.handle.checked.background');\\n color: dt('toggleswitch.handle.checked.color');\\n inset-inline-start: calc(dt('toggleswitch.width') - calc(dt('toggleswitch.handle.size') + dt('toggleswitch.gap')));\\n }\\n\\n .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {\\n background: dt('toggleswitch.hover.background');\\n border-color: dt('toggleswitch.hover.border.color');\\n }\\n\\n .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {\\n background: dt('toggleswitch.handle.hover.background');\\n color: dt('toggleswitch.handle.hover.color');\\n }\\n\\n .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {\\n background: dt('toggleswitch.checked.hover.background');\\n border-color: dt('toggleswitch.checked.hover.border.color');\\n }\\n\\n .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {\\n background: dt('toggleswitch.handle.checked.hover.background');\\n color: dt('toggleswitch.handle.checked.hover.color');\\n }\\n\\n .p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {\\n box-shadow: dt('toggleswitch.focus.ring.shadow');\\n outline: dt('toggleswitch.focus.ring.width') dt('toggleswitch.focus.ring.style') dt('toggleswitch.focus.ring.color');\\n outline-offset: dt('toggleswitch.focus.ring.offset');\\n }\\n\\n .p-toggleswitch.p-invalid > .p-toggleswitch-slider {\\n border-color: dt('toggleswitch.invalid.border.color');\\n }\\n\\n .p-toggleswitch.p-disabled {\\n opacity: 1;\\n }\\n\\n .p-toggleswitch.p-disabled .p-toggleswitch-slider {\\n background: dt('toggleswitch.disabled.background');\\n }\\n\\n .p-toggleswitch.p-disabled .p-toggleswitch-handle {\\n background: dt('toggleswitch.handle.disabled.background');\\n }\\n\";export{style};//# sourceMappingURL=index.mjs.map","import { style } from '@primeuix/styles/toggleswitch';\nimport BaseStyle from '@primevue/core/base/style';\n\nvar inlineStyles = {\n root: {\n position: 'relative'\n }\n};\nvar classes = {\n root: function root(_ref) {\n var instance = _ref.instance,\n props = _ref.props;\n return ['p-toggleswitch p-component', {\n 'p-toggleswitch-checked': instance.checked,\n 'p-disabled': props.disabled,\n 'p-invalid': instance.$invalid\n }];\n },\n input: 'p-toggleswitch-input',\n slider: 'p-toggleswitch-slider',\n handle: 'p-toggleswitch-handle'\n};\nvar ToggleSwitchStyle = BaseStyle.extend({\n name: 'toggleswitch',\n style: style,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { ToggleSwitchStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseEditableHolder from '@primevue/core/baseeditableholder';\nimport ToggleSwitchStyle from 'primevue/toggleswitch/style';\nimport { createElementBlock, openBlock, mergeProps, createElementVNode, renderSlot } from 'vue';\n\nvar script$1 = {\n name: 'BaseToggleSwitch',\n \"extends\": BaseEditableHolder,\n props: {\n trueValue: {\n type: null,\n \"default\": true\n },\n falseValue: {\n type: null,\n \"default\": false\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n tabindex: {\n type: Number,\n \"default\": null\n },\n inputId: {\n type: String,\n \"default\": null\n },\n inputClass: {\n type: [String, Object],\n \"default\": null\n },\n inputStyle: {\n type: Object,\n \"default\": null\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: ToggleSwitchStyle,\n provide: function provide() {\n return {\n $pcToggleSwitch: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'ToggleSwitch',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['change', 'focus', 'blur'],\n methods: {\n getPTOptions: function getPTOptions(key) {\n var _ptm = key === 'root' ? this.ptmi : this.ptm;\n return _ptm(key, {\n context: {\n checked: this.checked,\n disabled: this.disabled\n }\n });\n },\n onChange: function onChange(event) {\n if (!this.disabled && !this.readonly) {\n var newValue = this.checked ? this.falseValue : this.trueValue;\n this.writeValue(newValue, event);\n this.$emit('change', event);\n }\n },\n onFocus: function onFocus(event) {\n this.$emit('focus', event);\n },\n onBlur: function onBlur(event) {\n var _this$formField$onBlu, _this$formField;\n this.$emit('blur', event);\n (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);\n }\n },\n computed: {\n checked: function checked() {\n return this.d_value === this.trueValue;\n }\n }\n};\n\nvar _hoisted_1 = [\"data-p-checked\", \"data-p-disabled\"];\nvar _hoisted_2 = [\"id\", \"checked\", \"tabindex\", \"disabled\", \"readonly\", \"aria-checked\", \"aria-labelledby\", \"aria-label\", \"aria-invalid\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root'),\n style: _ctx.sx('root')\n }, $options.getPTOptions('root'), {\n \"data-p-checked\": $options.checked,\n \"data-p-disabled\": _ctx.disabled\n }), [createElementVNode(\"input\", mergeProps({\n id: _ctx.inputId,\n type: \"checkbox\",\n role: \"switch\",\n \"class\": [_ctx.cx('input'), _ctx.inputClass],\n style: _ctx.inputStyle,\n checked: $options.checked,\n tabindex: _ctx.tabindex,\n disabled: _ctx.disabled,\n readonly: _ctx.readonly,\n \"aria-checked\": $options.checked,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-label\": _ctx.ariaLabel,\n \"aria-invalid\": _ctx.invalid || undefined,\n onFocus: _cache[0] || (_cache[0] = function () {\n return $options.onFocus && $options.onFocus.apply($options, arguments);\n }),\n onBlur: _cache[1] || (_cache[1] = function () {\n return $options.onBlur && $options.onBlur.apply($options, arguments);\n }),\n onChange: _cache[2] || (_cache[2] = function () {\n return $options.onChange && $options.onChange.apply($options, arguments);\n })\n }, $options.getPTOptions('input')), null, 16, _hoisted_2), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('slider')\n }, $options.getPTOptions('slider')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('handle')\n }, $options.getPTOptions('handle')), [renderSlot(_ctx.$slots, \"handle\", {\n checked: $options.checked\n })], 16)], 16)], 16, _hoisted_1);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import ToggleSwitch from 'primevue/toggleswitch';\n\nvar script = {\n name: 'InputSwitch',\n \"extends\": ToggleSwitch,\n mounted: function mounted() {\n console.warn('Deprecated since v4. Use ToggleSwitch component instead.');\n }\n};\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","