"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__, {
    renderTextAreaClearButton: ()=>renderTextAreaClearButton
});
require("../atomic-icon/atomic-icon.cjs");
const external_lit_namespaceObject = require("lit");
const clear_slim_cjs_namespaceObject = require("../../../images/clear-slim.cjs");
var clear_slim_cjs_default = /*#__PURE__*/ __webpack_require__.n(clear_slim_cjs_namespaceObject);
const external_button_cjs_namespaceObject = require("../button.cjs");
const renderTextAreaClearButton = ({ props: { textAreaRef, i18n, onClick } })=>(0, external_lit_namespaceObject.html)`<div
    part="clear-button-wrapper"
    class="ml-2 flex items-center justify-center py-2"
    @pointerdown=${(e)=>e.preventDefault()}
  >
    ${(0, external_button_cjs_namespaceObject.renderButton)({
        props: {
            style: 'text-transparent',
            part: 'clear-button',
            class: 'text-neutral-dark flex h-8 w-8 shrink-0 items-center justify-center',
            onClick: ()=>{
                onClick?.();
                textAreaRef?.value?.focus();
            },
            ariaLabel: i18n.t('clear-searchbox')
        }
    })((0, external_lit_namespaceObject.html)`<atomic-icon
        part="clear-icon"
        icon=${clear_slim_cjs_default()}
        class="h-4 w-4"
      ></atomic-icon>`)}
  </div>`;
exports.renderTextAreaClearButton = __webpack_exports__.renderTextAreaClearButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderTextAreaClearButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
