"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__, {
    renderCardHeader: ()=>renderCardHeader
});
const external_lit_namespaceObject = require("lit");
require("../atomic-icon/atomic-icon.cjs");
const external_heading_cjs_namespaceObject = require("../heading.cjs");
const external_switch_cjs_namespaceObject = require("../switch.cjs");
const renderCardHeader = ({ props })=>{
    const { i18n, isAnswerVisible, toggleTooltip, withToggle, onToggle } = props;
    return (0, external_lit_namespaceObject.html)` <div
    part="header"
    class="flex items-center ${isAnswerVisible ? 'border-b-1 border-gray-200' : ''} px-6 py-3"
  >
    <atomic-icon
      part="header-icon"
      class="text-primary h-4 w-4 fill-current"
      .icon=${'assets://sparkles.svg'}
    >
    </atomic-icon>
    ${(0, external_heading_cjs_namespaceObject.renderHeading)({
        props: {
            level: 0,
            part: 'header-label',
            class: 'text-primary inline-block rounded-md px-2.5 py-2 font-medium'
        }
    })((0, external_lit_namespaceObject.html)`${i18n.t('generated-answer-title')}`)}
    <div class="ml-auto flex h-9 items-center">
      ${(0, external_switch_cjs_namespaceObject.renderSwitch)({
        props: {
            part: 'toggle',
            checked: isAnswerVisible,
            onToggle,
            ariaLabel: i18n.t('generated-answer-title'),
            title: toggleTooltip,
            withToggle,
            tabIndex: 0
        }
    })}
    </div>
  </div>`;
};
exports.renderCardHeader = __webpack_exports__.renderCardHeader;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderCardHeader"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
