"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__, {
    renderCitations: ()=>renderCitations
});
const external_lit_namespaceObject = require("lit");
const keyed_js_namespaceObject = require("lit/directives/keyed.js");
const when_js_namespaceObject = require("lit-html/directives/when.js");
const external_generated_answer_utils_cjs_namespaceObject = require("./generated-answer-utils.cjs");
require("../atomic-citation/atomic-citation.cjs");
const renderCitations = ({ props })=>{
    const { citations, i18n, buildInteractiveCitation, logCitationHover, disableCitationAnchoring } = props;
    return (0, external_lit_namespaceObject.html)`${(0, when_js_namespaceObject.when)(citations && citations.length > 0, ()=>citations?.map((citation, index)=>{
            const interactiveCitation = buildInteractiveCitation(citation);
            return (0, keyed_js_namespaceObject.keyed)(citation.id, (0, external_lit_namespaceObject.html)`
          <li class="max-w-full">
            <atomic-citation
              .citation=${(0, external_generated_answer_utils_cjs_namespaceObject.getCitationWithTitle)(citation, i18n)}
              .index=${index}
              .sendHoverEndEvent=${(citationHoverTimeMs)=>{
                logCitationHover(citation.id, citationHoverTimeMs);
            }}
              .interactiveCitation=${interactiveCitation}
              .disableCitationAnchoring=${disableCitationAnchoring ?? false}
              exportparts="citation,citation-popover"
            ></atomic-citation>
          </li>
        `);
        }))}`;
};
exports.renderCitations = __webpack_exports__.renderCitations;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderCitations"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
