"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__, {
    renderIconButton: ()=>renderIconButton
});
const external_lit_namespaceObject = require("lit");
require("./atomic-icon/atomic-icon.cjs");
const when_js_namespaceObject = require("lit/directives/when.js");
const external_button_cjs_namespaceObject = require("./button.cjs");
const renderIconButton = ({ props })=>(0, external_lit_namespaceObject.html)`
    <div class="relative" part="${props.partPrefix}-container">
      ${(0, external_button_cjs_namespaceObject.renderButton)({
        props: {
            ...props,
            class: props.class ? `relative h-[2.6rem] w-[2.6rem] p-3 ${props.class}` : 'relative h-[2.6rem] w-[2.6rem] p-3',
            part: `${props.partPrefix}-button`,
            ref: props.buttonRef
        }
    })((0, external_lit_namespaceObject.html)`
        <atomic-icon
          icon=${props.icon}
          class="h-4 w-4 shrink-0"
          part="${props.partPrefix}-icon"
        ></atomic-icon>
      `)}
      ${(0, when_js_namespaceObject.when)(props.badge, ()=>(0, external_lit_namespaceObject.html)`
          <span
            part="${props.partPrefix}-badge"
            class="bg-primary text-on-primary absolute -top-2 -right-2 block h-4 w-4 rounded-full text-center text-xs leading-4"
          >
            ${props.badge}
          </span>
        `)}
    </div>
  `;
exports.renderIconButton = __webpack_exports__.renderIconButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderIconButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
