"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__, {
    AtomicCategoryFacet: ()=>AtomicCategoryFacet
});
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 map_js_namespaceObject = require("lit/directives/map.js");
const when_js_namespaceObject = require("lit/directives/when.js");
const all_categories_button_cjs_namespaceObject = require("../../common/facets/category-facet/all-categories-button.cjs");
const children_as_tree_container_cjs_namespaceObject = require("../../common/facets/category-facet/children-as-tree-container.cjs");
const parent_as_tree_container_cjs_namespaceObject = require("../../common/facets/category-facet/parent-as-tree-container.cjs");
const parent_button_cjs_namespaceObject = require("../../common/facets/category-facet/parent-button.cjs");
const parent_value_link_cjs_namespaceObject = require("../../common/facets/category-facet/parent-value-link.cjs");
const search_results_container_cjs_namespaceObject = require("../../common/facets/category-facet/search-results-container.cjs");
const search_value_cjs_namespaceObject = require("../../common/facets/category-facet/search-value.cjs");
const value_as_tree_container_cjs_namespaceObject = require("../../common/facets/category-facet/value-as-tree-container.cjs");
const value_link_cjs_namespaceObject = require("../../common/facets/category-facet/value-link.cjs");
const depends_on_cjs_namespaceObject = require("../../common/facets/depends-on.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_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_placeholder_cjs_namespaceObject = require("../../common/facets/facet-placeholder/facet-placeholder.cjs");
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_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_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_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");
const validate_props_controller_cjs_namespaceObject = require("../../common/validate-props-controller/validate-props-controller.cjs");
const array_converter_cjs_namespaceObject = require("../../../converters/array-converter.cjs");
const boolean_converter_cjs_namespaceObject = require("../../../converters/boolean-converter.cjs");
const bind_state_cjs_namespaceObject = require("../../../decorators/bind-state.cjs");
const binding_guard_cjs_namespaceObject = require("../../../decorators/binding-guard.cjs");
const bindings_cjs_namespaceObject = require("../../../decorators/bindings.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 field_utils_cjs_namespaceObject = require("../../../utils/field-utils.cjs");
const props_utils_cjs_namespaceObject = require("../../../utils/props-utils.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 AtomicCategoryFacet 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 could lead to unexpected behaviors.');
        this.searchStatus = (0, headless_namespaceObject.buildSearchStatus)(this.bindings.engine);
        this.tabManager = (0, headless_namespaceObject.buildTabManager)(this.bindings.engine);
        const options = {
            facetId: this.facetId,
            field: this.field,
            numberOfValues: this.numberOfValues,
            sortCriteria: this.sortCriteria,
            facetSearch: {
                numberOfValues: this.numberOfValues
            },
            basePath: this.basePath,
            delimitingCharacter: this.delimitingCharacter,
            filterByBasePath: this.filterByBasePath,
            injectionDepth: this.injectionDepth,
            filterFacetCount: this.filterFacetCount,
            tabs: {
                included: this.tabsIncluded,
                excluded: this.tabsExcluded
            }
        };
        this.facet = (0, headless_namespaceObject.buildCategoryFacet)(this.bindings.engine, {
            options
        });
        this.facetId = this.facet.state.facetId;
        (0, facet_search_aria_live_cjs_namespaceObject.announceFacetSearchResultsWithAriaLive)(this.facet, this.label, (msg)=>{
            this.facetSearchAriaMessage.message = msg;
        }, this.bindings.i18n);
        const facetInfo = {
            label: ()=>this.bindings.i18n.t(this.label),
            facetId: this.facetId,
            element: this,
            isHidden: ()=>this.isHidden
        };
        this.bindings.store.registerFacet('categoryFacets', facetInfo);
        (0, popover_type_cjs_namespaceObject.initializePopover)(this, {
            ...facetInfo,
            hasValues: ()=>!!this.facet.state.valuesAsTrees.length,
            numberOfActiveValues: ()=>this.facetState.hasActiveValues ? 1 : 0
        });
        this.initializeDependenciesManager();
    }
    disconnectedCallback() {
        super.disconnectedCallback();
        if (!this.isConnected) this.dependenciesManager?.stopWatching();
    }
    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);
        if (!this.activeValueFocus) this.activeValueFocus = new accessibility_utils_cjs_namespaceObject.FocusTargetController(this, this.bindings);
        return {
            showLessFocus: this.showLessFocus,
            showMoreFocus: this.showMoreFocus,
            headerFocus: this.headerFocus,
            activeValueFocus: this.activeValueFocus
        };
    }
    get isHidden() {
        return this.searchStatusState.hasError || !this.facet.state.enabled || !this.facet.state.selectedValueAncestry.length && !this.facet.state.valuesAsTrees.length;
    }
    get hasParents() {
        return !!this.facetState.selectedValueAncestry.length;
    }
    shouldUpdate(changedProperties) {
        if (changedProperties.has('facetState')) {
            const newState = this.facetState;
            const oldState = changedProperties.get('facetState');
            if (newState && oldState) return (0, facet_search_utils_cjs_namespaceObject.shouldUpdateFacetSearchComponent)(newState.facetSearch, oldState.facetSearch);
        }
        return super.shouldUpdate(changedProperties);
    }
    initializeDependenciesManager() {
        this.dependenciesManager = (0, headless_namespaceObject.buildFacetConditionsManager)(this.bindings.engine, {
            facetId: this.facetId,
            conditions: (0, depends_on_cjs_namespaceObject.parseDependsOn)(this.dependsOn || {})
        });
    }
    renderHeader() {
        return (0, facet_header_cjs_namespaceObject.renderFacetHeader)({
            props: {
                i18n: this.bindings.i18n,
                label: this.label,
                numberOfActiveValues: this.facetState.hasActiveValues && this.isCollapsed ? 1 : 0,
                isCollapsed: this.isCollapsed,
                headingLevel: this.headingLevel,
                onToggleCollapse: ()=>{
                    this.isCollapsed = !this.isCollapsed;
                },
                onClearFilters: ()=>{
                    this.focusTargets.headerFocus.focusAfterSearch();
                    this.facet.deselectAll();
                },
                headerRef: (header)=>{
                    this.focusTargets.headerFocus.setTarget(header);
                    if (!this.hasParents) this.focusTargets.activeValueFocus.setTarget(header);
                }
            }
        });
    }
    renderSearchInput() {
        if (!this.withSearch) return external_lit_namespaceObject.nothing;
        return (0, facet_search_input_cjs_namespaceObject.renderFacetSearchInput)({
            props: {
                i18n: this.bindings.i18n,
                label: this.label,
                query: this.facetState.facetSearch.query,
                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()
            }
        });
    }
    renderValuesTree(valuesAsTrees, isRoot) {
        if (!this.hasParents) return this.renderChildren();
        if (isRoot) return (0, value_as_tree_container_cjs_namespaceObject.renderCategoryFacetTreeValueContainer)()((0, external_lit_namespaceObject.html)`
        ${(0, all_categories_button_cjs_namespaceObject.renderCategoryFacetAllCategoryButton)({
            props: {
                i18n: this.bindings.i18n,
                facetId: this.facet.state.facetId,
                field: this.field,
                onClick: ()=>{
                    this.focusTargets.activeValueFocus.focusAfterSearch();
                    this.facet.deselectAll();
                }
            }
        })}
        ${(0, parent_as_tree_container_cjs_namespaceObject.renderCategoryFacetParentAsTreeContainer)({
            props: {
                isTopLevel: false
            }
        })(this.renderValuesTree(valuesAsTrees, false))}
      `);
        if (valuesAsTrees.length > 1) {
            const parentValue = valuesAsTrees[0];
            return (0, value_as_tree_container_cjs_namespaceObject.renderCategoryFacetTreeValueContainer)()((0, external_lit_namespaceObject.html)`
        ${(0, parent_button_cjs_namespaceObject.renderCategoryFacetParentButton)({
                props: {
                    facetValue: parentValue,
                    field: this.field,
                    i18n: this.bindings.i18n,
                    onClick: ()=>{
                        this.focusTargets.activeValueFocus.focusAfterSearch();
                        this.facet.toggleSelect(parentValue);
                    }
                }
            })}
        ${(0, parent_as_tree_container_cjs_namespaceObject.renderCategoryFacetParentAsTreeContainer)({
                props: {
                    isTopLevel: false
                }
            })(this.renderValuesTree(valuesAsTrees.slice(1), false))}
      `);
        }
        const activeParent = valuesAsTrees[0];
        const activeParentDisplayValue = (0, field_utils_cjs_namespaceObject.getFieldValueCaption)(this.field, activeParent.value, this.bindings.i18n);
        return (0, external_lit_namespaceObject.html)`
      ${(0, parent_value_link_cjs_namespaceObject.renderCategoryFacetParentValueLink)({
            props: {
                displayValue: activeParentDisplayValue,
                numberOfResults: activeParent.numberOfResults,
                i18n: this.bindings.i18n,
                isLeafValue: activeParent.isLeafValue,
                onClick: ()=>{
                    this.focusTargets.activeValueFocus.focusAfterSearch();
                    this.facet.deselectAll();
                },
                searchQuery: this.facetState.facetSearch.query,
                setRef: (el)=>{
                    this.focusTargets.activeValueFocus.setTarget(el);
                }
            }
        })((0, external_lit_namespaceObject.html)`
        ${(0, children_as_tree_container_cjs_namespaceObject.renderCategoryFacetChildrenAsTreeContainer)({
            props: {}
        })(this.renderChildren())}
      `)}
    `;
    }
    renderChild(facetValue, isShowLessFocusTarget, isShowMoreFocusTarget) {
        const displayValue = (0, field_utils_cjs_namespaceObject.getFieldValueCaption)(this.field, facetValue.value, this.bindings.i18n);
        const isSelected = 'selected' === facetValue.state;
        return (0, external_lit_namespaceObject.html)`${(0, value_link_cjs_namespaceObject.renderCategoryFacetValueLink)({
            props: {
                displayValue,
                numberOfResults: facetValue.numberOfResults,
                i18n: this.bindings.i18n,
                onClick: ()=>{
                    this.focusTargets.activeValueFocus.focusAfterSearch();
                    this.facet.toggleSelect(facetValue);
                },
                isParent: false,
                isSelected,
                searchQuery: this.facetState.facetSearch.query,
                isLeafValue: facetValue.isLeafValue,
                setRef: (el)=>{
                    isShowLessFocusTarget && this.focusTargets.showLessFocus.setTarget(el);
                    isShowMoreFocusTarget && this.focusTargets.showMoreFocus.setTarget(el);
                }
            }
        })()}`;
    }
    renderChildren() {
        if (!this.facetState.valuesAsTrees.length) return (0, external_lit_namespaceObject.html)``;
        if (this.facetState.selectedValueAncestry.length > 0) {
            const selectedValue = this.facetState.selectedValueAncestry.find((value)=>'selected' === value.state);
            if (selectedValue) return (0, external_lit_namespaceObject.html)`${(0, map_js_namespaceObject.map)(selectedValue.children, (value, i)=>this.renderChild(value, 0 === i, i === this.resultIndexToFocusOnShowMore))}`;
        }
        return (0, external_lit_namespaceObject.html)`${(0, map_js_namespaceObject.map)(this.facetState.valuesAsTrees, (value, i)=>this.renderChild(value, 0 === i, i === this.resultIndexToFocusOnShowMore))}`;
    }
    renderSearchResults() {
        return (0, search_results_container_cjs_namespaceObject.renderCategoryFacetSearchResultsContainer)()((0, external_lit_namespaceObject.html)`${(0, map_js_namespaceObject.map)(this.facetState.facetSearch.values, (value)=>(0, search_value_cjs_namespaceObject.renderCategoryFacetSearchValue)({
                props: {
                    value,
                    field: this.field,
                    facetId: this.facetId,
                    searchQuery: this.facetState.facetSearch.query,
                    i18n: this.bindings.i18n,
                    onClick: ()=>{
                        this.focusTargets.activeValueFocus.focusAfterSearch();
                        this.facet.facetSearch.select(value);
                    }
                }
            }))}`);
    }
    renderMatches() {
        return (0, facet_search_matches_cjs_namespaceObject.renderFacetSearchMatches)({
            props: {
                i18n: this.bindings.i18n,
                query: this.facetState.facetSearch.query,
                numberOfMatches: this.facetState.facetSearch.values.length,
                hasMoreMatches: this.facetState.facetSearch.moreValuesAvailable,
                showMoreMatches: ()=>this.facet.facetSearch.showMoreResults()
            }
        });
    }
    renderShowMoreLess() {
        return (0, external_lit_namespaceObject.html)`
      <div class=${this.hasParents ? 'pl-9' : ''}>
        ${(0, facet_show_more_less_cjs_namespaceObject.renderFacetShowMoreLess)({
            props: {
                label: this.label,
                i18n: this.bindings.i18n,
                onShowMore: ()=>{
                    const selectedValue = this.facetState.selectedValueAncestry.find((value)=>'selected' === value.state);
                    this.resultIndexToFocusOnShowMore = selectedValue?.children.length ?? this.facetState.valuesAsTrees.length;
                    this.focusTargets.showMoreFocus.focusAfterSearch();
                    this.facet.showMoreValues();
                },
                onShowLess: ()=>{
                    this.focusTargets.showLessFocus.focusAfterSearch();
                    this.facet.showLessValues();
                },
                canShowLessValues: this.facetState.canShowLessValues,
                canShowMoreValues: this.facetState.canShowMoreValues
            }
        })}
      </div>
    `;
    }
    render() {
        if (!this.facetState || !this.searchStatusState) return external_lit_namespaceObject.nothing;
        const { bindings: { i18n }, label, facetState: { facetSearch, enabled, valuesAsTrees, selectedValueAncestry }, searchStatusState: { hasError, firstSearchExecuted } } = this;
        if (hasError || !enabled || firstSearchExecuted && !valuesAsTrees.length) return external_lit_namespaceObject.nothing;
        if (!firstSearchExecuted) return (0, external_lit_namespaceObject.html)`${(0, facet_placeholder_cjs_namespaceObject.renderFacetPlaceholder)({
            props: {
                numberOfValues: this.numberOfValues,
                isCollapsed: this.isCollapsed
            }
        })}`;
        return (0, facet_container_cjs_namespaceObject.renderFacetContainer)()((0, external_lit_namespaceObject.html)`
      ${this.renderHeader()}
      ${(0, when_js_namespaceObject.when)(!this.isCollapsed, ()=>(0, external_lit_namespaceObject.html)`
          ${this.renderSearchInput()}
          ${(0, when_js_namespaceObject.when)((0, facet_search_utils_cjs_namespaceObject.shouldDisplaySearchResults)(facetSearch), ()=>(0, external_lit_namespaceObject.html)`
              ${(0, when_js_namespaceObject.when)(facetSearch.values.length > 0, ()=>(0, facet_values_group_cjs_namespaceObject.renderFacetValuesGroup)({
                        props: {
                            i18n,
                            label,
                            query: facetSearch.query
                        }
                    })(this.renderSearchResults()), ()=>(0, external_lit_namespaceObject.html)`<div class="mt-3"></div>`)}
              ${this.renderMatches()}
            `, ()=>(0, external_lit_namespaceObject.html)`
              ${(0, facet_values_group_cjs_namespaceObject.renderFacetValuesGroup)({
                    props: {
                        i18n,
                        label
                    }
                })((0, when_js_namespaceObject.when)(this.hasParents, ()=>(0, external_lit_namespaceObject.html)`
                    ${(0, parent_as_tree_container_cjs_namespaceObject.renderCategoryFacetParentAsTreeContainer)({
                        props: {
                            isTopLevel: true,
                            className: 'mt-3'
                        }
                    })(this.renderValuesTree(selectedValueAncestry, true))}
                  `, ()=>(0, external_lit_namespaceObject.html)`
                    ${(0, children_as_tree_container_cjs_namespaceObject.renderCategoryFacetChildrenAsTreeContainer)({
                        props: {
                            className: 'mt-3'
                        }
                    })(this.renderChildren())}
                  `))}
              ${this.renderShowMoreLess()}
            `)}
        `)}
    `);
    }
    constructor(){
        super(), this.resultIndexToFocusOnShowMore = 0, this.label = 'no-label', this.tabsIncluded = [], this.tabsExcluded = [], this.numberOfValues = 8, this.withSearch = false, this.sortCriteria = 'occurrences', this.delimitingCharacter = ';', this.basePath = [], this.filterByBasePath = true, this.isCollapsed = false, this.headingLevel = 0, this.filterFacetCount = true, this.injectionDepth = 1000, this.facetSearchAriaMessage = new accessibility_utils_cjs_namespaceObject.AriaLiveRegionController(this, 'facet-search');
        new validate_props_controller_cjs_namespaceObject.ValidatePropsController(this, ()=>({
                field: this.field,
                numberOfValues: this.numberOfValues,
                sortCriteria: this.sortCriteria,
                headingLevel: this.headingLevel,
                injectionDepth: this.injectionDepth,
                delimitingCharacter: this.delimitingCharacter
            }), AtomicCategoryFacet.propsSchema, false);
    }
}
AtomicCategoryFacet.propsSchema = new bueno_namespaceObject.Schema({
    field: new bueno_namespaceObject.StringValue({
        required: true,
        emptyAllowed: false
    }),
    numberOfValues: new bueno_namespaceObject.NumberValue({
        min: 1
    }),
    sortCriteria: new bueno_namespaceObject.StringValue({
        constrainTo: [
            'alphanumeric',
            'occurrences'
        ]
    }),
    headingLevel: new bueno_namespaceObject.NumberValue({
        min: 0,
        max: 6
    }),
    injectionDepth: new bueno_namespaceObject.NumberValue({
        min: 0
    }),
    delimitingCharacter: new bueno_namespaceObject.StringValue()
});
AtomicCategoryFacet.styles = [
    facet_common_tw_css_cjs_default(),
    facet_search_tw_css_cjs_default(),
    (0, external_lit_namespaceObject.css)`
      @reference '../../../utils/tailwind.global.tw.css';
      [part~='active-parent'] {
        @apply pl-9;
      }

      [part~='parents'] [part~='values'] {
        @apply pl-9;
      }

      [part~='all-categories-button'],
      [part~='parent-button'] {
        @apply relative flex w-full items-center py-2.5 pr-2 pl-7 text-left;
      }

      [part~='back-arrow'] {
        @apply absolute left-1 h-5 w-5;
      }
    `
];
_ts_decorate([
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof Bindings ? Object : Bindings)
], AtomicCategoryFacet.prototype, "bindings", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof Error ? Object : Error)
], AtomicCategoryFacet.prototype, "error", void 0);
_ts_decorate([
    (0, bind_state_cjs_namespaceObject.bindStateToController)('facet'),
    (0, decorators_js_namespaceObject.state)(),
    _ts_metadata("design:type", "u" < typeof CategoryFacetState ? Object : CategoryFacetState)
], AtomicCategoryFacet.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)
], AtomicCategoryFacet.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)
], AtomicCategoryFacet.prototype, "tabManagerState", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true,
        attribute: 'facet-id'
    }),
    _ts_metadata("design:type", String)
], AtomicCategoryFacet.prototype, "facetId", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true
    })
], AtomicCategoryFacet.prototype, "label", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true
    }),
    _ts_metadata("design:type", String)
], AtomicCategoryFacet.prototype, "field", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        reflect: true,
        attribute: 'tabs-included',
        converter: array_converter_cjs_namespaceObject.arrayConverter
    }),
    _ts_metadata("design:type", Array)
], AtomicCategoryFacet.prototype, "tabsIncluded", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        reflect: true,
        attribute: 'tabs-excluded',
        converter: array_converter_cjs_namespaceObject.arrayConverter
    }),
    _ts_metadata("design:type", Array)
], AtomicCategoryFacet.prototype, "tabsExcluded", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        reflect: true,
        type: Number,
        attribute: 'number-of-values'
    })
], AtomicCategoryFacet.prototype, "numberOfValues", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        reflect: true,
        attribute: 'with-search',
        converter: boolean_converter_cjs_namespaceObject.booleanConverter
    })
], AtomicCategoryFacet.prototype, "withSearch", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true,
        attribute: 'sort-criteria'
    }),
    _ts_metadata("design:type", "u" < typeof CategoryFacetSortCriterion ? Object : CategoryFacetSortCriterion)
], AtomicCategoryFacet.prototype, "sortCriteria", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: String,
        reflect: true,
        attribute: 'delimiting-character'
    })
], AtomicCategoryFacet.prototype, "delimitingCharacter", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Array,
        reflect: true,
        attribute: 'base-path',
        converter: array_converter_cjs_namespaceObject.arrayConverter
    }),
    _ts_metadata("design:type", Array)
], AtomicCategoryFacet.prototype, "basePath", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        reflect: true,
        attribute: 'filter-by-base-path',
        converter: boolean_converter_cjs_namespaceObject.booleanConverter
    })
], AtomicCategoryFacet.prototype, "filterByBasePath", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        reflect: true,
        attribute: 'is-collapsed',
        converter: boolean_converter_cjs_namespaceObject.booleanConverter
    })
], AtomicCategoryFacet.prototype, "isCollapsed", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        reflect: true,
        type: Number,
        attribute: 'heading-level'
    })
], AtomicCategoryFacet.prototype, "headingLevel", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        type: Boolean,
        reflect: true,
        attribute: 'filter-facet-count',
        converter: boolean_converter_cjs_namespaceObject.booleanConverter
    })
], AtomicCategoryFacet.prototype, "filterFacetCount", void 0);
_ts_decorate([
    (0, decorators_js_namespaceObject.property)({
        reflect: true,
        type: Number,
        attribute: 'injection-depth'
    })
], AtomicCategoryFacet.prototype, "injectionDepth", void 0);
_ts_decorate([
    (0, props_utils_cjs_namespaceObject.mapProperty)({
        attributePrefix: 'depends-on'
    }),
    _ts_metadata("design:type", "u" < typeof Record ? Object : Record)
], AtomicCategoryFacet.prototype, "dependsOn", 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)
], AtomicCategoryFacet.prototype, "render", null);
AtomicCategoryFacet = _ts_decorate([
    (0, decorators_js_namespaceObject.customElement)('atomic-category-facet'),
    (0, bindings_cjs_namespaceObject.bindings)(),
    with_tailwind_styles_cjs_namespaceObject.withTailwindStyles,
    _ts_metadata("design:type", Function),
    _ts_metadata("design:paramtypes", [])
], AtomicCategoryFacet);
exports.AtomicCategoryFacet = __webpack_exports__.AtomicCategoryFacet;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "AtomicCategoryFacet"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
