"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__, {
    renderQuestion: ()=>renderQuestion
});
const external_lit_namespaceObject = require("lit");
const external_button_cjs_namespaceObject = require("../../button.cjs");
const external_heading_cjs_namespaceObject = require("../../heading.cjs");
const external_get_question_part_cjs_namespaceObject = require("./get-question-part.cjs");
const renderQuestion = ({ props })=>(children)=>{
        const buttonProps = {
            style: 'text-neutral',
            part: (0, external_get_question_part_cjs_namespaceObject.getQuestionPart)('button', props.expanded),
            onClick: props.onClick,
            class: 'flex items-center px-4',
            ariaExpanded: props.expanded ? 'true' : 'false',
            ariaControls: props.ariaControls
        };
        const headingProps = {
            level: props.headingLevel ? props.headingLevel + 1 : 0,
            class: 'py-4 text-left text-xl font-bold',
            part: (0, external_get_question_part_cjs_namespaceObject.getQuestionPart)('text', props.expanded)
        };
        return (0, external_button_cjs_namespaceObject.renderButton)({
            props: buttonProps
        })((0, external_lit_namespaceObject.html)`${children}${(0, external_heading_cjs_namespaceObject.renderHeading)({
            props: headingProps
        })((0, external_lit_namespaceObject.html)`${props.question}`)}`);
    };
exports.renderQuestion = __webpack_exports__.renderQuestion;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderQuestion"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
