"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__, {
    renderCategoryFacetAllCategoryButton: ()=>renderCategoryFacetAllCategoryButton
});
require("../../atomic-icon/atomic-icon.cjs");
const external_lit_namespaceObject = require("lit");
const external_button_cjs_namespaceObject = require("../../button.cjs");
const arrow_left_rounded_cjs_namespaceObject = require("../../../../images/arrow-left-rounded.cjs");
var arrow_left_rounded_cjs_default = /*#__PURE__*/ __webpack_require__.n(arrow_left_rounded_cjs_namespaceObject);
const external_all_categories_localized_label_cjs_namespaceObject = require("./all-categories-localized-label.cjs");
const renderCategoryFacetAllCategoryButton = ({ props: { i18n, onClick, facetId, field } })=>{
    const allCategories = (0, external_all_categories_localized_label_cjs_namespaceObject.getAllCategoriesLocalizedLabel)({
        facetId,
        field,
        i18n
    });
    return (0, external_lit_namespaceObject.html)`
    ${(0, external_button_cjs_namespaceObject.renderButton)({
        props: {
            style: 'text-neutral',
            part: 'all-categories-button',
            onClick: onClick
        }
    })((0, external_lit_namespaceObject.html)`<atomic-icon
          aria-hidden="true"
          icon=${arrow_left_rounded_cjs_default()}
          part="back-arrow"
        ></atomic-icon>
        <span class="truncate">${allCategories}</span>`)}
  `;
};
exports.renderCategoryFacetAllCategoryButton = __webpack_exports__.renderCategoryFacetAllCategoryButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderCategoryFacetAllCategoryButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
