"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__, {
    renderMinimizeButton: ()=>renderMinimizeButton
});
const external_lit_namespaceObject = require("lit");
const icon_button_cjs_namespaceObject = require("../../../common/icon-button.cjs");
const menu_cjs_namespaceObject = require("../../../../images/menu.cjs");
var menu_cjs_default = /*#__PURE__*/ __webpack_require__.n(menu_cjs_namespaceObject);
const external_keywords_cjs_namespaceObject = require("./keywords.cjs");
const renderMinimizeButton = ({ props })=>{
    const className = props.minimized ? 'w-fit' : 'ml-auto w-fit';
    return (0, icon_button_cjs_namespaceObject.renderIconButton)({
        props: {
            partPrefix: 'sidebar-minimize',
            icon: menu_cjs_default(),
            style: 'text-transparent',
            title: props.i18n.t('quickview-toggle-navigation'),
            ariaLabel: props.i18n.t('quickview-toggle-navigation'),
            onClick: ()=>props.onMinimize(!props.minimized),
            badge: props.highlightKeywords && props.minimized ? (0, external_lit_namespaceObject.html)`<slot>${props.wordsLength}</slot>` : void 0,
            class: className,
            ariaExpanded: (!props.minimized).toString(),
            ariaControls: external_keywords_cjs_namespaceObject.identifierKeywordsSection
        }
    });
};
exports.renderMinimizeButton = __webpack_exports__.renderMinimizeButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderMinimizeButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
