"use strict";
var __webpack_require__ = {};
(()=>{
    __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__, {
    renderRefineModalFiltersClearButton: ()=>renderRefineModalFiltersClearButton,
    renderRefineModalFiltersSection: ()=>renderRefineModalFiltersSection
});
const external_lit_namespaceObject = require("lit");
const when_js_namespaceObject = require("lit/directives/when.js");
const external_button_cjs_namespaceObject = require("../button.cjs");
const renderRefineModalFiltersSection = ({ props })=>(children)=>(0, external_lit_namespaceObject.html)`
      <div part="filter-section" class="mt-8 mb-3 flex w-full justify-between">
        <h2
          part="section-title section-filters-title"
          class="truncate text-2xl font-bold"
        >
          ${props.i18n.t('filters')}
        </h2>
        ${children}
      </div>
      ${(0, when_js_namespaceObject.when)(props.withFacets, ()=>(0, external_lit_namespaceObject.html)`<slot name="facets"></slot>`)}
      ${(0, when_js_namespaceObject.when)(props.withAutomaticFacets, ()=>(0, external_lit_namespaceObject.html)`<slot name="automatic-facets"></slot>`)}
    `;
const renderRefineModalFiltersClearButton = ({ props })=>(0, external_lit_namespaceObject.html)`${(0, external_button_cjs_namespaceObject.renderButton)({
        props: {
            onClick: props.onClick,
            style: 'text-primary',
            text: props.i18n.t('clear'),
            class: 'px-2 py-1',
            part: 'filter-clear-all'
        }
    })(external_lit_namespaceObject.nothing)}`;
exports.renderRefineModalFiltersClearButton = __webpack_exports__.renderRefineModalFiltersClearButton;
exports.renderRefineModalFiltersSection = __webpack_exports__.renderRefineModalFiltersSection;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderRefineModalFiltersClearButton",
    "renderRefineModalFiltersSection"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
