1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{c as t}from"./react-intl-DlKP8ATg.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{t as r}from"./classnames-CfLRLWYq.js";import{t as i}from"./close-DIPoUQpY.js";import{t as a}from"./icon_button-DfNtv8BJ.js";import{t as o}from"./icon-BNrUFRb_.js";import{t as s}from"./check-C3BKu3lm.js";import{t as c}from"./info-k74D6gw-.js";import{t as l}from"./warning-DALvmvUf.js";import{t as u}from"./error-DN-cb0-U.js";var d=e(r()),f={wrapper:`_comp_callout__wrapper`,icon:`_comp_callout__icon`,content:`_comp_callout__content`,body:`_comp_callout__body`,actionWrapper:`_comp_callout__actionWrapper`,action:`_comp_callout__action`,close:`_comp_callout__close`,variantDefault:`_comp_callout__variantDefault`,variantSubtle:`_comp_callout__variantSubtle`,variantFeature:`_comp_callout__variantFeature`,variantInverted:`_comp_callout__variantInverted`,variantSuccess:`_comp_callout__variantSuccess`,variantWarning:`_comp_callout__variantWarning`,variantError:`_comp_callout__variantError`},p=n(),m={default:f.variantDefault,subtle:f.variantSubtle,feature:f.variantFeature,inverted:f.variantInverted,success:f.variantSuccess,warning:f.variantWarning,error:f.variantError},h=({className:e,variant:n=`default`,title:r,children:o,icon:s,onPrimary:c,primaryLabel:l,onSecondary:u,secondaryLabel:h,onClose:_,extraContent:v,id:y})=>{let b=t();return(0,p.jsxs)(`aside`,{className:(0,d.default)(e,f.wrapper,m[n]),"data-variant":n,id:y,children:[(0,p.jsx)(g,{variant:n,icon:s}),(0,p.jsxs)(`div`,{className:f.content,children:[(0,p.jsxs)(`div`,{className:f.body,children:[r&&(0,p.jsx)(`h3`,{children:r}),o]}),(c??u)&&(0,p.jsxs)(`div`,{className:f.actionWrapper,children:[u&&(0,p.jsx)(`button`,{type:`button`,onClick:u,className:f.action,children:h??`Click`}),c&&(0,p.jsx)(`button`,{type:`button`,onClick:c,className:f.action,children:l??`Click`})]})]}),v,_&&(0,p.jsx)(a,{icon:`close`,title:b.formatMessage({id:`callout.dismiss`,defaultMessage:`Dismiss`}),iconComponent:i,className:f.close,onClick:_})]})},g=({variant:e=`default`,icon:t})=>{if(t===!1)return null;if(!t||t===!0)switch(e){case`inverted`:case`success`:t=s;break;case`warning`:t=l;break;case`error`:t=u;break;default:t=c}return(0,p.jsx)(o,{id:e,icon:t,className:f.icon})};export{h as t}; 2//# sourceMappingURL=callout-B1KuUxns.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.