"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__, {
    renderCopyButton: ()=>renderCopyButton
});
const external_lit_namespaceObject = require("lit");
const external_button_cjs_namespaceObject = require("../button.cjs");
const copy_cjs_namespaceObject = require("../../../images/copy.cjs");
var copy_cjs_default = /*#__PURE__*/ __webpack_require__.n(copy_cjs_namespaceObject);
require("../atomic-icon/atomic-icon.cjs");
const renderCopyButton = ({ props })=>{
    const classes = [
        'rounded-md',
        'p-2'
    ];
    if (props.isCopied) classes.push('copied');
    if (props.error) classes.push('error');
    return (0, external_button_cjs_namespaceObject.renderButton)({
        props: {
            title: props.title,
            part: 'copy-button',
            style: 'text-transparent',
            class: classes.join(' '),
            onClick: props.onClick
        }
    })((0, external_lit_namespaceObject.html)`
    <div class="icon-container text-neutral-dark">
      <atomic-icon class="w-5" .icon=${copy_cjs_default()}></atomic-icon>
    </div>
  `);
};
exports.renderCopyButton = __webpack_exports__.renderCopyButton;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderCopyButton"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
