"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
var _chunkQKFOJTGFcjs = require('./chunk-QKFOJTGF.cjs');var _chunk6B26UVH4cjs = require('./chunk-6B26UVH4.cjs');var _chunkN7CAZRGGcjs = require('./chunk-N7CAZRGG.cjs');var _chunk5KRCPBZRcjs = require('./chunk-5KRCPBZR.cjs');var _chunk3CNSKST2cjs = require('./chunk-3CNSKST2.cjs');var _chunk5NXYDZPPcjs = require('./chunk-5NXYDZPP.cjs');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var _react = require('react');var _react3 = require('@emotion/react');var W=_chunk3CNSKST2cjs.m.call(void 0, "div")(({theme:o})=>_react3.css`
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: ${o.zIndex.modal-1};
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(7px);
  `);var _jsxruntime = require('react/jsx-runtime');var P=_react.forwardRef.call(void 0, (o,a)=>{let{open:e,...t}=o;return _jsxruntime.jsx.call(void 0, _chunkQKFOJTGFcjs.a,{in:e,children:_jsxruntime.jsx.call(void 0, W,{ref:a,...t})})});P.displayName="Backdrop";var u=P;var V=_chunk3CNSKST2cjs.a.call(void 0, "EulModal",["backdrop","content","modal","open","root","header","body","footer","aside","section"]),l=o=>_chunk5KRCPBZRcjs.e.call(void 0, "EulModal",{aside:["aside"],backdrop:["backdrop"],body:["body"],content:["content"],footer:["footer"],header:["header"],modal:["modal"],root:["root",_optionalChain([o, 'optionalAccess', _2 => _2.open])&&"open"],section:["section"]}),X= exports.a =V;var v=_chunk3CNSKST2cjs.m.call(void 0, (0, _chunk5NXYDZPPcjs.s))(({theme:o})=>_chunk5NXYDZPPcjs.p`
    display: flex;
    margin-right: -${o.spacing(8)};
    margin-left: -${o.spacing(8)};
  `);var H=_react.forwardRef.call(void 0, (o,a)=>{let{children:e,className:t,sx:m,...s}=o,d=l();return _jsxruntime.jsx.call(void 0, v,{className:_clsx2.default.call(void 0, t,d.body),ref:a,...s,children:e})});H.displayName="ModalBody";var M=H;var _freesolidsvgicons = require('@fortawesome/free-solid-svg-icons');var _reactfontawesome = require('@fortawesome/react-fontawesome');var F=_chunk3CNSKST2cjs.m.call(void 0, (0, _chunk5NXYDZPPcjs.s))(({theme:o})=>_chunk5NXYDZPPcjs.p`
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: ${o.spacing(4)};
    margin-top: -${o.spacing(8)};
    margin-right: -${o.spacing(8)};
    margin-left: -${o.spacing(8)};
    border-bottom: 1px solid ${o.palette.background[500]};
  `);var R=_react.forwardRef.call(void 0, (o,a)=>{let{children:e,className:t,handleClose:m,handleConfig:s,sx:d,...n}=o,G=l();return _jsxruntime.jsxs.call(void 0, F,{className:_clsx2.default.call(void 0, t,G.header),ref:a,...n,children:[e,_jsxruntime.jsxs.call(void 0, _chunk5NXYDZPPcjs.s,{display:"flex",gap:1,children:[s?_jsxruntime.jsx.call(void 0, _chunkN7CAZRGGcjs.b,{onClick:s,size:"small",startIcon:_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{icon:_freesolidsvgicons.faCog}),variant:"secondary"}):null,m?_jsxruntime.jsx.call(void 0, _chunkN7CAZRGGcjs.b,{onClick:m,size:"small",startIcon:_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{icon:_freesolidsvgicons.faClose}),variant:"secondary"}):null]})]})});R.displayName="ModalHeader";var b=R;var T=_chunk3CNSKST2cjs.m.call(void 0, (0, _chunk5NXYDZPPcjs.s))(({theme:o})=>_chunk5NXYDZPPcjs.p`
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: ${o.spacing(4)};
    margin-right: -${o.spacing(8)};
    margin-bottom: -${o.spacing(8)};
    margin-left: -${o.spacing(8)};
    border-top: 1px solid ${o.palette.background[500]};
  `);var z=_react.forwardRef.call(void 0, (o,a)=>{let{children:e,className:t,sx:m,...s}=o,d=l();return _jsxruntime.jsx.call(void 0, T,{className:_clsx2.default.call(void 0, t,d.footer),ref:a,...s,children:e})});z.displayName="ModalFooter";var y=z;var D=_chunk3CNSKST2cjs.m.call(void 0, (0, _chunk5NXYDZPPcjs.s))(({theme:o})=>_chunk5NXYDZPPcjs.p`
    display: flex;
    padding: ${o.spacing(4)};
    overflow-y: auto;
    border-left: 1px solid ${o.palette.background[500]};
    scrollbar-width: thin;
  `);var L=_react.forwardRef.call(void 0, (o,a)=>{let{children:e,className:t,sx:m,...s}=o,d=l();return _jsxruntime.jsx.call(void 0, D,{className:_clsx2.default.call(void 0, t,d.aside),component:"aside",ref:a,...s,children:e})});L.displayName="ModalAside";var S=L;var I=_chunk3CNSKST2cjs.m.call(void 0, (0, _chunk5NXYDZPPcjs.s))(({theme:o})=>_chunk5NXYDZPPcjs.p`
    display: flex;
    width: 100%;
    padding: ${o.spacing(4)};
    overflow-y: auto;
    scrollbar-width: thin;
  `);var U=_react.forwardRef.call(void 0, (o,a)=>{let{children:e,className:t,sx:m,...s}=o,d=l();return _jsxruntime.jsx.call(void 0, I,{className:_clsx2.default.call(void 0, t,d.section),component:"section",ref:a,...s,children:e})});U.displayName="ModalSection";var B=U;var O=_chunk3CNSKST2cjs.m.call(void 0, "div")(({theme:o})=>_react3.css`
    position: relative;
    z-index: ${o.zIndex.modal};
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: ${o.spacing(200)};
    padding: ${o.spacing(8)};
    margin: auto;
    background: ${o.palette.background[300]};
    border: 1px solid ${o.palette.background[400]};
    border-radius: ${o.spacing(4)};
    box-shadow: ${o.shadows[4]};
    backdrop-filter: blur(7px);

    > * {
      align-self: stretch;
    }
  `),q=_chunk3CNSKST2cjs.m.call(void 0, "div")`
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
`;var So=o=>{let{children:a,className:e,onClose:t,open:m,...s}=o,d=_chunk5KRCPBZRcjs.d.call(void 0, s),n=l(o);return _jsxruntime.jsx.call(void 0, _chunk6B26UVH4cjs.e,{...d,classes:{root:_clsx2.default.call(void 0, n.root)},className:_clsx2.default.call(void 0, e,n.modal),closeAfterTransition:!0,onClose:t,open:m,slotProps:{backdrop:{className:_clsx2.default.call(void 0, n.backdrop)}},slots:{backdrop:u,root:q},children:_jsxruntime.jsx.call(void 0, _chunkQKFOJTGFcjs.a,{in:m,children:_jsxruntime.jsx.call(void 0, O,{className:_clsx2.default.call(void 0, n.content),children:a})})})},Bo=Object.assign(So,{Aside:S,Body:M,Footer:y,Header:b,Section:B}),ko= exports.b =Bo;exports.a = X; exports.b = ko;
