"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__, {
    getPartialInstantItemElement: ()=>getPartialInstantItemElement,
    getPartialInstantItemShowAllElement: ()=>getPartialInstantItemShowAllElement,
    renderInstantItemShowAllButton: ()=>renderInstantItemShowAllButton
});
const external_lit_namespaceObject = require("lit");
const string_utils_cjs_namespaceObject = require("../../../utils/string-utils.cjs");
const external_button_style_cjs_namespaceObject = require("../button-style.cjs");
const getPartialInstantItemElement = (i18n, i18nKey, itemTitle, itemUniqueId)=>({
        ariaLabel: i18n.t(i18nKey, {
            title: itemTitle,
            interpolation: {
                escapeValue: false
            }
        }),
        key: `instant-result-${(0, string_utils_cjs_namespaceObject.encodeForDomAttribute)(itemUniqueId)}`,
        part: 'instant-results-item'
    });
const getPartialInstantItemShowAllElement = (i18n, i18nKey)=>({
        key: 'instant-results-show-all-button',
        part: 'instant-results-show-all',
        ariaLabel: i18n.t(i18nKey)
    });
const renderInstantItemShowAllButton = ({ i18n, i18nKey })=>{
    const template = (0, external_lit_namespaceObject.html)`<div
    part="instant-results-show-all-button"
    class="pointer-events-none ${(0, external_button_style_cjs_namespaceObject.getClassNameForButtonStyle)('text-primary')}"
  >
    ${i18n.t(i18nKey)}
  </div>`;
    const container = document.createElement('div');
    (0, external_lit_namespaceObject.render)(template, container);
    return container.firstElementChild;
};
exports.getPartialInstantItemElement = __webpack_exports__.getPartialInstantItemElement;
exports.getPartialInstantItemShowAllElement = __webpack_exports__.getPartialInstantItemShowAllElement;
exports.renderInstantItemShowAllButton = __webpack_exports__.renderInstantItemShowAllButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "getPartialInstantItemElement",
    "getPartialInstantItemShowAllElement",
    "renderInstantItemShowAllButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
