"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = (module)=>{
        var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    AtomicFacet: ()=>AtomicFacet
});
const bueno_namespaceObject = require("@coveo/bueno");
const headless_namespaceObject = require("@coveo/headless");
const external_lit_namespaceObject = require("lit");
const decorators_js_namespaceObject = require("lit/decorators.js");
const when_js_namespaceObject = require("lit/directives/when.js");
const bind_state_cjs_namespaceObject = require("../../../decorators/bind-state.cjs");
const binding_guard_cjs_namespaceObject = require("../../../decorators/binding-guard.cjs");
const error_guard_cjs_namespaceObject = require("../../../decorators/error-guard.cjs");
const with_tailwind_styles_cjs_namespaceObject = require("../../../decorators/with-tailwind-styles.cjs");
const accessibility_utils_cjs_namespaceObject = require("../../../utils/accessibility-utils.cjs");
const props_utils_cjs_namespaceObject = require("../../../utils/props-utils.cjs");
const field_utils_cjs_namespaceObject = require("../../../utils/field-utils.cjs");
const depends_on_cjs_namespaceObject = require("../../common/facets/depends-on.cjs");
const facet_container_cjs_namespaceObject = require("../../common/facets/facet-container/facet-container.cjs");
const facet_header_cjs_namespaceObject = require("../../common/facets/facet-header/facet-header.cjs");
const facet_search_aria_live_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search-aria-live.cjs");
const facet_search_input_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search-input.cjs");
const facet_search_input_guard_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search-input-guard.cjs");
const facet_search_matches_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search-matches.cjs");
const facet_search_utils_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search-utils.cjs");
const facet_show_more_less_cjs_namespaceObject = require("../../common/facets/facet-show-more-less/facet-show-more-less.cjs");
const facet_value_cjs_namespaceObject = require("../../common/facets/facet-value/facet-value.cjs");
const facet_values_group_cjs_namespaceObject = require("../../common/facets/facet-values-group/facet-values-group.cjs");
const popover_type_cjs_namespaceObject = require("../../common/facets/popover/popover-type.cjs");
require("../../common/atomic-facet-placeholder/atomic-facet-placeholder.cjs");
const array_converter_cjs_namespaceObject = require("../../../converters/array-converter.cjs");
const boolean_converter_cjs_namespaceObject = require("../../../converters/boolean-converter.cjs");
const bindings_cjs_namespaceObject = require("../../../decorators/bindings.cjs");
const facet_common_tw_css_cjs_namespaceObject = require("../../common/facets/facet-common.tw.css.cjs");
var facet_common_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(facet_common_tw_css_cjs_namespaceObject);
const facet_search_tw_css_cjs_namespaceObject = require("../../common/facets/facet-search/facet-search.tw.css.cjs");
var facet_search_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(facet_search_tw_css_cjs_namespaceObject);
const facet_value_box_tw_css_cjs_namespaceObject = require("../../common/facets/facet-value-box/facet-value-box.tw.css.cjs");
var facet_value_box_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(facet_value_box_tw_css_cjs_namespaceObject);
const facet_value_checkbox_tw_css_cjs_namespaceObject = require("../../common/facets/facet-value-checkbox/facet-value-checkbox.tw.css.cjs");
var facet_value_checkbox_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(facet_value_checkbox_tw_css_cjs_namespaceObject);
const facet_value_exclude_tw_css_cjs_namespaceObject = require("../../common/facets/facet-value-exclude/facet-value-exclude.tw.css.cjs");
var facet_value_exclude_tw_css_cjs_default = /*#__PURE__*/ __webpack_require__.n(facet_value_exclude_tw_css_cjs_namespaceObject);
const validate_props_controller_cjs_namespaceObject = require("../../common/validate-props-controller/validate-props-controller.cjs");
function _ts_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);
    else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function _ts_metadata(k, v) {
    if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
}
class AtomicFacet extends external_lit_namespaceObject.LitElement {
    initialize() {
        if ([
            ...this.tabsIncluded
        ].length > 0 && [
            ...this.tabsExcluded
        ].length > 0) console.warn('Values for both "tabs-included" and "tabs-excluded" have been provided. This is could lead to unexpected behaviors.');
        if ('checkbox' !== this.displayValuesAs && this.enableExclusion) console.warn('The "enableExclusion" property is only available when "displayValuesAs" is set to "checkbox".');
        this.facet = (0, headless_namespaceObject.buildFacet)(this.bindings.engine, {
            options: this.facetOptions
        });
        this.facetId = this.facet.state.facetId;
        this.searchStatus = (0, headless_namespaceObject.buildSearchStatus)(this.bindings.engine);
        this.tabManager = (0, headless_namespaceObject.buildTabManager)(this.bindings.engine);
        this.initAriaLive();
        this.initConditionManager();
        this.initPopover();
        this.registerFacet();
    }
    disconnectedCallback() {
        super.disconnectedCallback();
        if (!this.isConnected) this.facetConditionsManager?.stopWatching();
    }
    shouldUpdate(changedProperties) {
        if (changedProperties.has('facetState')) {
            const currentFacetState = this.facetState;
            const previousFacetState = changedProperties.get('facetState');
            if (previousFacetState && currentFacetState) return (0, facet_search_utils_cjs_namespaceObject.shouldUpdateFacetSearchComponent)(currentFacetState.facetSearch, previousFacetState.facetSearch);
        }
        return super.shouldUpdate(changedProperties);
    }
    shouldRenderFacet() {
        return !this.searchStatusState.hasError && this.facetState.enabled && (!this.searchStatusState.firstSearchExecuted || this.facetState.values.length > 0);
    }
    render() {
        return (0, external_lit_namespaceObject.html)`${(0, when_js_namespaceObject.when)(this.shouldRenderFacet(), ()=>this.searchStatusState.firstSearchExecuted ? (0, facet_container_cjs_namespaceObject.renderFacetContainer)()((0, external_lit_namespaceObject.html)`
            ${this.renderFacetHeader()} ${this.renderBody()}
          `) : (0, external_lit_namespaceObject.html)`<atomic-facet-placeholder
            value-count="${this.numberOfValues}"
          ></atomic-facet-placeholder>`)}`;
    }
    renderFacetHeader() {
        return (0, external_lit_namespaceObject.html)`${(0, facet_header_cjs_namespaceObject.renderFacetHeader)({
            props: {
                i18n: this.bindings.i18n,
                label: this.definedLabel,
                onClearFilters: ()=>{
                    this.focusTargets.header.focusAfterSearch();
                    this.facet.deselectAll();
                },
                numberOfActiveValues: this.activeValues.length,
                isCollapsed: this.isCollapsed,
                headingLevel: this.headingLevel,
                onToggleCollapse: ()=>{
                    this.isCollapsed = !this.isCollapsed;
                },
                headerRef: (el)=>this.focusTargets.header.setTarget(el)
            }
        })}`;
    }
    renderBody() {
        if (this.isCollapsed) return external_lit_namespaceObject.nothing;
        return (0, external_lit_namespaceObject.html)`
      ${(0, facet_search_input_guard_cjs_namespaceObject.facetSearchInputGuard)({
            canShowMoreValues: this.facetState.canShowMoreValues,
            numberOfDisplayedValues: this.facetState.values.length,
            withSearch: this.withSearch
        }, ()=>(0, facet_search_input_cjs_namespaceObject.renderFacetSearchInput)({
                props: {
                    i18n: this.bindings.i18n,
                    label: this.definedLabel,
                    onChange: (value)=>{
                        if ('' === value) return void this.facet.facetSearch.clear();
                        this.facet.facetSearch.updateCaptions((0, field_utils_cjs_namespaceObject.getFieldCaptions)(this.field, this.bindings.i18n));
                        this.facet.facetSearch.updateText(value);
                        this.facet.facetSearch.search();
                    },
                    onClear: ()=>this.facet.facetSearch.clear(),
                    query: this.facetState.facetSearch.query
                }
            }))}
      ${(0, facet_search_utils_cjs_namespaceObject.shouldDisplaySearchResults)(this.facetState.facetSearch) ? (0, external_lit_namespaceObject.html)`${this.renderSearchResults()}${this.renderMatches()}` : (0, external_lit_namespaceObject.html)`${this.renderValues()}${this.renderShowMoreLess()}`}
    `;
    }
    renderValuesContainer(children, query) {
        const classes = `mt-3 ${'box' === this.displayValuesAs ? 'box-container' : ''}`;
        return (0, facet_values_group_cjs_namespaceObject.renderFacetValuesGroup)({
            props: {
                i18n: this.bindings.i18n,
                label: this.label,
                query
            }
        })((0, external_lit_namespaceObject.html)`<ul class="${classes}" part="values">
        ${children}
      </ul>`);
    }
    renderSearchResults() {
        return this.renderValuesContainer(this.facet.state.facetSearch.values.map((value)=>(0, facet_value_cjs_namespaceObject.renderFacetValue)({
                props: {
                    ...this.facetValueProps,
                    facetState: 'idle',
                    facetCount: value.count,
                    onExclude: ()=>this.facet.facetSearch.exclude(value),
                    onSelect: ()=>'link' === this.displayValuesAs ? this.facet.facetSearch.singleSelect(value) : this.facet.facetSearch.select(value),
                    facetValue: value.rawValue
                }
            })));
    }
    renderValues() {
        return this.renderValuesContainer(this.facet.state.values.map((value, i)=>{
            const shouldFocusOnShowLessAfterInteraction = 0 === i;
            const shouldFocusOnShowMoreAfterInteraction = i === ('automatic' === this.sortCriteria ? 0 : this.facet.state.values.length - this.numberOfValues);
            return (0, facet_value_cjs_namespaceObject.renderFacetValue)({
                props: {
                    ...this.facetValueProps,
                    facetCount: value.numberOfResults,
                    onExclude: ()=>this.facet.toggleExclude(value),
                    onSelect: ()=>'link' === this.displayValuesAs ? this.facet.toggleSingleSelect(value) : this.facet.toggleSelect(value),
                    facetValue: value.value,
                    facetState: value.state,
                    setRef: (btn)=>{
                        if (shouldFocusOnShowLessAfterInteraction) this.showLessFocus?.setTarget(btn);
                        if (shouldFocusOnShowMoreAfterInteraction) this.showMoreFocus?.setTarget(btn);
                    }
                }
            });
        }));
    }
    renderShowMoreLess() {
        return (0, facet_show_more_less_cjs_namespaceObject.renderFacetShowMoreLess)({
            props: {
                label: this.label,
                i18n: this.bindings.i18n,
                onShowMore: ()=>{
                    this.focusTargets.showMore.focusAfterSearch();
                    this.facet.showMoreValues();
                },
                onShowLess: ()=>{
                    this.focusTargets.showLess.focusAfterSearch();
                    this.facet.showLessValues();
                },
                canShowMoreValues: this.facet.state.canShowMoreValues,
                canShowLessValues: this.facet.state.canShowLessValues
            }
        });
    }
    renderMatches() {
        return (0, facet_search_matches_cjs_namespaceObject.renderFacetSearchMatches)({
            props: {
                i18n: this.bindings.i18n,
                query: this.facet.state.facetSearch.query,
                numberOfMatches: this.facet.state.facetSearch.values.length,
                hasMoreMatches: this.facet.state.facetSearch.moreValuesAvailable,
                showMoreMatches: ()=>this.facet.facetSearch.showMoreResults()
            }
        });
    }
    get activeValues() {
        return this.facet.state.values.filter(({ state })=>'idle' !== state);
    }
    get facetOptions() {
        return {
            facetId: this.facetId,
            field: this.field,
            numberOfValues: this.numberOfValues,
            sortCriteria: this.sortCriteria,
            resultsMustMatch: this.resultsMustMatch,
            facetSearch: {
                numberOfValues: this.numberOfValues
            },
            filterFacetCount: this.filterFacetCount,
            injectionDepth: this.injectionDepth,
            allowedValues: this.allowedValues.length ? [
                ...this.allowedValues
            ] : void 0,
            customSort: this.customSort.length ? [
                ...this.customSort
            ] : void 0,
            tabs: {
                included: [
                    ...this.tabsIncluded
                ],
                excluded: [
                    ...this.tabsExcluded
                ]
            }
        };
    }
    get facetValueProps() {
        return {
            facetSearchQuery: this.facetState.facetSearch.query,
            displayValuesAs: this.displayValuesAs,
            enableExclusion: this.enableExclusion,
            field: this.field,
            i18n: this.bindings.i18n
        };
    }
    get isHidden() {
        return !this.facet.state.enabled || !this.facet.state.values.length;
    }
    get host() {
        return this;
    }
    initConditionManager() {
        this.facetConditionsManager = (0, headless_namespaceObject.buildFacetConditionsManager)(this.bindings.engine, {
            facetId: this.facetId,
            conditions: (0, depends_on_cjs_namespaceObject.parseDependsOn)(this.dependsOn || {})
        });
    }
    registerFacet() {
        this.bindings.store.registerFacet('facets', this.facetInfo);
    }
    initPopover() {
        (0, popover_type_cjs_namespaceObject.initializePopover)(this.host, {
            ...this.facetInfo,
            hasValues: ()=>!!this.facet.state.values.length,
            numberOfActiveValues: ()=>this.activeValues.length
        });
    }
    initAriaLive() {
        this.facetSearchAriaLive = new accessibility_utils_cjs_namespaceObject.AriaLiveRegionController(this, 'facet-search');
        (0, facet_search_aria_live_cjs_namespaceObject.announceFacetSearchResultsWithAriaLive)(this.facet, this.label, (msg)=>{
            this.facetSearchAriaLive.message = msg;
        }, this.bindings.i18n);
    }
    get facetInfo() {
        return {
            label: ()=>this.bindings.i18n.t(this.label),
            facetId: this.facetId,
            element: this.host,
            isHidden: ()=>this.isHidden
        };
    }
    get definedLabel() {
        return 'no-label' === this.label && this.facetState?.label ? this.facetState.label : this.label;
    }
    get focusTargets() {
        if (!this.showLessFocus) this.showLessFocus = new accessibility_utils_cjs_namespaceObject.FocusTargetController(this, this.bindings);
        if (!this.showMoreFocus) this.showMoreFocus = new accessibility_utils_cjs_namespaceObject.FocusTargetController(this, this.bindings);
        if (!this.headerFocus) this.headerFocus = new accessibility_utils_cjs_namespaceObject.FocusTargetController(this, this.bindings);
        return {
            showLess: this.showLessFocus,
            showMore: this.showMoreFocus,
            header: this.headerFocus
        };
    }
    constructor(){
        super(), this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.withSearch = true, this.sortCriteria = 'automatic', this.resultsMustMatch = 'atLeastOneValue', this.displayValuesAs = 'checkbox', this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.enableExclusion = false, this.injectionDepth = 1000, this.allowedValues = [], this.customSort = [];
        new validate_props_controller_cjs_namespaceObject.ValidatePropsController(this, ()=>({
                field: this.field,
                numberOfValues: this.numberOfValues,
                headingLevel: this.headingLevel,
                injectionDepth: this.injectionDepth,
                sortCriteria: this.sortCriteria,
                resultsMustMatch: this.resultsMustMatch,
                displayValuesAs: this.displayValuesAs,
                allowedValues: Array.isArray(this.allowedValues) ? this.allowedValues : [],
                customSort: Array.isArray(this.customSort) ? this.customSort : [],
                tabsExcluded: this.tabsExcluded,
                tabsIncluded: this.tabsIncluded
            }), AtomicFacet.propsSchema);
    }
}
AtomicFacet.styles = [
    facet_common_tw_css_cjs_default(),
    facet_search_tw_css_cjs_default(),
    facet_value_checkbox_tw_css_cjs_default(),
    facet_value_exclude_tw_css_cjs_default(),
    facet_value_box_tw_css_cjs_default()
];
AtomicFacet.propsSchema = new bueno_namespaceObject.Schema({
    field: new bueno_namespaceObject.StringValue({
        required: true,
        emptyAllowed: false
    }),
    numberOfValues: new bueno_namespaceObject.NumberValue({
        min: 1,
        required: false
    }),
    headingLevel: new bueno_namespaceObject.NumberValue({
        min: 0,
        max: 6,
        required: false
    }),
    injectionDepth: new bueno_namespaceObject.NumberValue({
        min: 0,
        required: false
    }),
    sortCriteria: new bueno_namespaceObject.StringValue({
        constrainTo: [
            'score',
            'alphanumeric',
            'alphanumericDescending',
            'occurrences',
            'alphanumericNatural',
            'alphanumericNaturalDescending',
            'automatic'
        ],
        required: false
    }),
    resultsMustMatch: new bueno_namespaceObject.StringValue({
        constrainTo: [
            'atLeastOneValue',
            'allValues'
        ],
        required: false
    }),
    displayValuesAs: new bueno_namespaceObject.StringValue({
        constrainTo: [
            'checkbox',
            'link',
            'box'
        ],
        required: false
    }),
    allowedValues: new bueno_namespaceObject.ArrayValue({
        each: new bueno_namespaceObject.StringValue({
            emptyAllowed: false
        }),
        max: 25,
        required: false
    }),
    customSort: new bueno_namespaceObject.ArrayValue({
        each: new bueno_namespaceObject.StringValue({
            emptyAllowed: false
        }),
        max: 25,
        required: false
    }),
    tabsExcluded: new bueno_namespaceObject.ArrayValue({
        each: new bueno_namespaceObject.StringValue({
            emptyAllowed: false
        }),
        required: false
    }),
    tabsIncluded: new bueno_namespaceObject.ArrayValue({
        each: new bueno_namespaceObject.StringValue({
            emptyAllowed: false
        }),
        required: false
    })
});
_ts_decorate([
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof Bindings ? Object : Bindings)
], AtomicFacet.prototype, "bindings", void 0);
_ts_decorate([
    (0, bind_state_cjs_namespaceObject.bindStateToController)('facet'),
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof FacetState ? Object : FacetState)
], AtomicFacet.prototype, "facetState", void 0);
_ts_decorate([
    (0, bind_state_cjs_namespaceObject.bindStateToController)('searchStatus'),
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof SearchStatusState ? Object : SearchStatusState)
], AtomicFacet.prototype, "searchStatusState", void 0);
_ts_decorate([
    (0, bind_state_cjs_namespaceObject.bindStateToController)('tabManager'),
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof TabManagerState ? Object : TabManagerState)
], AtomicFacet.prototype, "tabManagerState", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof Error ? Object : Error)
], AtomicFacet.prototype, "error", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        attribute: 'facet-id',
        reflect: true
    }),
    _ts_metadata("design:type", String)
], AtomicFacet.prototype, "facetId", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true
    })
], AtomicFacet.prototype, "label", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true
    }),
    _ts_metadata("design:type", String)
], AtomicFacet.prototype, "field", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        attribute: 'tabs-included',
        converter: array_converter_cjs_namespaceObject.arrayConverter,
        reflect: true
    }),
    _ts_metadata("design:type", Array)
], AtomicFacet.prototype, "tabsIncluded", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        attribute: 'tabs-excluded',
        converter: array_converter_cjs_namespaceObject.arrayConverter,
        reflect: true
    }),
    _ts_metadata("design:type", Array)
], AtomicFacet.prototype, "tabsExcluded", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Number,
        attribute: 'number-of-values',
        reflect: true
    })
], AtomicFacet.prototype, "numberOfValues", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        converter: boolean_converter_cjs_namespaceObject.booleanConverter,
        attribute: 'with-search',
        reflect: true
    })
], AtomicFacet.prototype, "withSearch", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        attribute: 'sort-criteria',
        reflect: true
    }),
    _ts_metadata("design:type", "u" < typeof FacetSortCriterion ? Object : FacetSortCriterion)
], AtomicFacet.prototype, "sortCriteria", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        attribute: 'results-must-match',
        reflect: true
    }),
    _ts_metadata("design:type", "u" < typeof FacetResultsMustMatch ? Object : FacetResultsMustMatch)
], AtomicFacet.prototype, "resultsMustMatch", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        attribute: 'display-values-as',
        reflect: true
    }),
    _ts_metadata("design:type", String)
], AtomicFacet.prototype, "displayValuesAs", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        converter: boolean_converter_cjs_namespaceObject.booleanConverter,
        attribute: 'is-collapsed',
        reflect: true
    })
], AtomicFacet.prototype, "isCollapsed", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Number,
        attribute: 'heading-level'
    })
], AtomicFacet.prototype, "headingLevel", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        converter: boolean_converter_cjs_namespaceObject.booleanConverter,
        attribute: 'filter-facet-count',
        reflect: true
    })
], AtomicFacet.prototype, "filterFacetCount", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        converter: boolean_converter_cjs_namespaceObject.booleanConverter,
        attribute: 'enable-exclusion',
        reflect: true
    })
], AtomicFacet.prototype, "enableExclusion", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Number,
        attribute: 'injection-depth'
    })
], AtomicFacet.prototype, "injectionDepth", void 0);
_ts_decorate([
    (0, props_utils_cjs_namespaceObject.mapProperty)({
        attributePrefix: 'depends-on'
    }),
    _ts_metadata("design:type", "u" < typeof Record ? Object : Record)
], AtomicFacet.prototype, "dependsOn", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        attribute: 'allowed-values'
    }),
    _ts_metadata("design:type", Object)
], AtomicFacet.prototype, "allowedValues", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        attribute: 'custom-sort'
    }),
    _ts_metadata("design:type", Object)
], AtomicFacet.prototype, "customSort", void 0);
_ts_decorate([
    (0, binding_guard_cjs_namespaceObject.bindingGuard)(),
    (0, error_guard_cjs_namespaceObject.errorGuard)(),
    _ts_metadata("design:type", Function),
    _ts_metadata("design:paramtypes", []),
    _ts_metadata("design:returntype", void 0)
], AtomicFacet.prototype, "render", null);
AtomicFacet = _ts_decorate([
    (0, decorators_js_namespaceObject.customElement)('atomic-facet'),
    (0, bindings_cjs_namespaceObject.bindings)(),
    with_tailwind_styles_cjs_namespaceObject.withTailwindStyles,
    _ts_metadata("design:type", Function),
    _ts_metadata("design:paramtypes", [])
], AtomicFacet);
exports.AtomicFacet = __webpack_exports__.AtomicFacet;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "AtomicFacet"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
