import{j as n}from"./index-CzTQZzQy.js";import{r as u}from"./vendor-L5FivjNr.js";/**
 * 2026 Paysera
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * @author Paysera <plugins@paysera.com>
 * @copyright 2026 Paysera
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */const b=({children:e,as:o="span",size:i,color:s,weight:c,align:r,className:a="",style:_,...m})=>{const l={fontSize:i,color:s,fontWeight:c,textAlign:r,..._};return n.jsx(o,{className:a,style:l,...m,children:e})},d="_notice_1hm61_1",h="_content_1hm61_10",f="_dismiss_1hm61_14",x="_info_1hm61_29",p="_success_1hm61_35",j="_warning_1hm61_41",g="_error_1hm61_47",t={notice:d,content:h,dismiss:f,info:x,success:p,warning:j,error:g},w=({children:e,status:o="info",isDismissible:i=!0,onDismiss:s,className:c=""})=>{const[r,a]=u.useState(!1);if(r)return null;const _=()=>{a(!0),s==null||s()};return n.jsxs("div",{className:`${t.notice} ${t[o]} ${c}`.trim(),role:"alert",children:[n.jsx("div",{className:t.content,children:e}),i&&n.jsx("button",{className:t.dismiss,onClick:_,"aria-label":"Dismiss notice",type:"button",children:"×"})]})};export{w as N,b as T};
