"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__, {
    renderButton: ()=>renderButton
});
const external_lit_namespaceObject = require("lit");
const if_defined_js_namespaceObject = require("lit/directives/if-defined.js");
const ref_js_namespaceObject = require("lit/directives/ref.js");
const when_js_namespaceObject = require("lit/directives/when.js");
const ripple_utils_cjs_namespaceObject = require("../../utils/ripple-utils.cjs");
const external_button_style_cjs_namespaceObject = require("./button-style.cjs");
const renderButton = ({ props })=>(children)=>{
        const rippleColor = (0, external_button_style_cjs_namespaceObject.getRippleColorForButtonStyle)(props.style);
        const className = (0, external_button_style_cjs_namespaceObject.getClassNameForButtonStyle)(props.style);
        return (0, external_lit_namespaceObject.html)`<button
      type=${(0, if_defined_js_namespaceObject.ifDefined)(props.type)}
      title=${(0, if_defined_js_namespaceObject.ifDefined)(props.title)}
      tabindex=${(0, if_defined_js_namespaceObject.ifDefined)(props.tabIndex)}
      role=${(0, if_defined_js_namespaceObject.ifDefined)(props.role)}
      part=${(0, if_defined_js_namespaceObject.ifDefined)(props.part)}
      form=${(0, if_defined_js_namespaceObject.ifDefined)(props.form)}
      class=${props.class ? `${className} ${props.class}` : className}
      aria-pressed=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaPressed)}
      aria-label=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaLabel)}
      aria-hidden=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaHidden)}
      aria-expanded=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaExpanded)}
      aria-current=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaCurrent)}
      aria-controls=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaControls)}
      aria-checked=${(0, if_defined_js_namespaceObject.ifDefined)(props.ariaChecked)}
      @mousedown=${(e)=>(0, ripple_utils_cjs_namespaceObject.createRipple)(e, {
                color: rippleColor
            })}
      @click=${props.onClick}
      ?disabled=${props.disabled}
      ${props.ref ? (0, ref_js_namespaceObject.ref)(props.ref) : external_lit_namespaceObject.nothing}
    >
      ${(0, when_js_namespaceObject.when)(props.text, ()=>(0, external_lit_namespaceObject.html)`<span class="truncate">${props.text}</span>`)}
      ${children}
    </button>`;
    };
exports.renderButton = __webpack_exports__.renderButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
