"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__, {
    renderIpxBody: ()=>renderIpxBody
});
const external_lit_namespaceObject = require("lit");
const renderIpxBody = ({ props })=>{
    const visibilityClass = 'embedded' === props.visibility ? '' : 'open' === props.visibility ? 'visible' : 'invisible';
    return (0, external_lit_namespaceObject.html)`
    <article
      part="container"
      class="ipx-body-container bg-background box-border flex flex-col justify-between overflow-hidden rounded ${visibilityClass}"
      @animationend=${()=>props.onAnimationEnd?.()}
    >
      <header
        part="header-wrapper"
        class="bg-neutral-light grid w-full items-center px-6 pt-6"
      >
        <div part="header" class="min-w-0 font-bold">
          ${props.header ?? external_lit_namespaceObject.nothing}
        </div>
      </header>
      <hr part="header-ruler" class="border-neutral border-0 border-t" />
      <div
        part="body-wrapper"
        class="ipx-body-scrollbar flex w-full grow flex-col overflow-auto px-6 py-4"
        tabindex="0"
        role="region"
        aria-label=${props.i18n.t('ipx-body-content')}
      >
        <div part="body" class="w-full">${props.body ?? external_lit_namespaceObject.nothing}</div>
      </div>
      ${false !== props.displayFooterSlot ? renderFooter(props.footer ?? external_lit_namespaceObject.nothing) : external_lit_namespaceObject.nothing}
    </article>
  `;
};
function renderFooter(footerContent) {
    return (0, external_lit_namespaceObject.html)`
    <footer
      part="footer-wrapper"
      class="border-neutral bg-neutral-light z-10 flex w-full flex-col items-stretch border-t px-7 py-4"
    >
      <div part="footer">${footerContent}</div>
    </footer>
  `;
}
exports.renderIpxBody = __webpack_exports__.renderIpxBody;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "renderIpxBody"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
