"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 _chunkGTUFJBGYcjs = require('./chunk-GTUFJBGY.cjs');var _chunk5KRCPBZRcjs = require('./chunk-5KRCPBZR.cjs');var _chunk3CNSKST2cjs = require('./chunk-3CNSKST2.cjs');var _chunk5NXYDZPPcjs = require('./chunk-5NXYDZPP.cjs');var _react = require('react');var _freesolidsvgicons = require('@fortawesome/free-solid-svg-icons');var _reactfontawesome = require('@fortawesome/react-fontawesome');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var U=_chunk3CNSKST2cjs.a.call(void 0, "EulAlert",["active","clickable","contained","disabled","error","errorContained","errorOutlined","focusVisible","info","infoContained","infoOutlined","note","noteContained","noteOutlined","outlined","root","startIcon","success","successContained","successOutlined","uppercase","warning","warningContained","warningOutlined","header","title","description","action","body"]),I=t=>_chunk5KRCPBZRcjs.e.call(void 0, "EulAlert",{action:["action"],body:["body"],description:["description"],header:["header"],root:["root",t.severity,t.variant,t.variant&&t.severity&&`${t.severity}${_chunk3CNSKST2cjs.d.call(void 0, t.variant)}`,t.uppercase&&"uppercase",t.onClick&&"clickable",t.active&&"active",t.disabled&&"disabled",t.focusVisible&&"focusVisible"],startIcon:["startIcon"],title:["title"]}),r= exports.a =U;var _react3 = require('@emotion/react');var n=(t,o,e=!1)=>({error:e?t.palette.redOpaque:t.palette.red,info:e?t.palette.tealOpaque:t.palette.teal,note:t.palette.background,success:e?t.palette.greenOpaque:t.palette.green,warning:e?t.palette.yellowOpaque:t.palette.yellow})[o],c=(t,o)=>_react3.css`
    &.${r[o]} {
      color: ${n(t,o,!1)[1e3]};
    }

    &.${r[`${o}Contained`]} {
      background: ${n(t,o,!0)[200]};
      border: 1px solid ${n(t,o,!0)[500]};

      .${r.header} {
        background: ${n(t,o,!0)[300]};
      }

      .${r.body}, .${r.action} {
        border-top: 1px solid ${n(t,o,!0)[500]};
      }
    }

    &.${r[`${o}Outlined`]} {
      border: 1px solid ${n(t,o,!0)[500]};

      .${r.body}, .${r.action} {
        border-top: 1px solid ${n(t,o,!0)[500]};
      }
    }
  `,S=_chunk3CNSKST2cjs.m.call(void 0, "div")(({theme:t})=>_react3.css`
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
    width: 100%;
    font-size: ${t.typography.body1.fontSize};
    line-height: ${t.typography.body1.lineHeight};
    background-color: transparent;
    border-radius: ${t.spacing(2)};
    outline: 0;

    .${r.header} {
      display: flex;
      flex-direction: row;
      gap: ${t.spacing(2)};
      width: 100%;
      padding: ${t.spacing(3)};
      border-top-left-radius: ${t.spacing(2)};
      border-top-right-radius: ${t.spacing(2)};
    }

    .${r.body}, .${r.action} {
      width: 100%;
      padding: ${t.spacing(3)};
      padding-left: ${t.spacing(10)};
      border-bottom-right-radius: ${t.spacing(2)};
      border-bottom-left-radius: ${t.spacing(2)};
    }

    .${r.action} {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: inherit;
      background: none;
      border: none;
      cursor: pointer;
    }

    &.${r.uppercase} {
      text-transform: uppercase;
    }

    &.${r.clickable} {
      cursor: pointer;
    }

    ${c(t,"error")}
    ${c(t,"info")}
    ${c(t,"note")}
    ${c(t,"success")}
    ${c(t,"warning")}
  `),T=_chunk3CNSKST2cjs.m.call(void 0, "div")(({theme:t})=>_react3.css`
    display: flex;
    align-items: center;
    justify-content: center;
    width: ${t.spacing(5)};
    height: ${t.spacing(5)};
  `);var _jsxruntime = require('react/jsx-runtime');var O={error:_freesolidsvgicons.faWarning,info:_freesolidsvgicons.faInfoCircle,success:_freesolidsvgicons.faCheckCircle,warning:_freesolidsvgicons.faWarning},$=_react.forwardRef.call(void 0, (t,o)=>{let{action:e,description:f,severity:B="info",startIcon:W,title:p,...g}=t,{children:m,className:P}=g,{getRootProps:V,...R}=_chunk5KRCPBZRcjs.c.call(void 0, {...g,ref:o}),M=_chunk5KRCPBZRcjs.d.call(void 0, g),i=I({...t,...R}),E=_chunk3CNSKST2cjs.n.call(void 0, );return _jsxruntime.jsxs.call(void 0, S,{...V(),...M,className:_clsx2.default.call(void 0, P,i.root),role:"alert",children:[p&&_jsxruntime.jsxs.call(void 0, _chunk5NXYDZPPcjs.s,{className:_clsx2.default.call(void 0, i.header),children:[W||_jsxruntime.jsx.call(void 0, T,{className:_clsx2.default.call(void 0, i.startIcon),children:_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{icon:O[B]||O.info})}),_jsxruntime.jsxs.call(void 0, _chunk5NXYDZPPcjs.s,{children:[typeof p=="string"?_jsxruntime.jsx.call(void 0, _chunkGTUFJBGYcjs.b,{className:_clsx2.default.call(void 0, i.title),color:"inherit",fontWeight:E.typography.fontWeightMedium,variant:"body1",children:p}):p,typeof f=="string"?_jsxruntime.jsx.call(void 0, _chunkGTUFJBGYcjs.b,{className:_clsx2.default.call(void 0, i.description),color:"inherit",variant:"body1",children:f}):f]})]}),m?_jsxruntime.jsx.call(void 0, _chunk5NXYDZPPcjs.s,{className:_clsx2.default.call(void 0, i.body),children:m}):null,e?_jsxruntime.jsxs.call(void 0, _chunk5NXYDZPPcjs.s,{className:_clsx2.default.call(void 0, i.action),component:"button",onClick:_optionalChain([e, 'optionalAccess', _ => _.onClick]),children:[_jsxruntime.jsx.call(void 0, _chunkGTUFJBGYcjs.b,{className:_clsx2.default.call(void 0, i.description),color:"inherit",variant:"body1",children:_optionalChain([e, 'optionalAccess', _2 => _2.title])}),_jsxruntime.jsx.call(void 0, _reactfontawesome.FontAwesomeIcon,{icon:_freesolidsvgicons.faArrowRight})]}):null]})});$.defaultProps={severity:"info",variant:"contained"};$.displayName="Alert";var L=$;exports.a = r; exports.b = L;
