1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{g as t}from"./antv-plots-vendor-BStZcfPb.js";import{$ as n,At as r,Ct as i,Lt as a,Mt as o,Nt as s,Pt as c,Qt as l,X as u,Y as d,_t as f,dt as p,en as m,ft as h,gt as g,hn as _,i as v,in as y,jt as b,rn as x,tn as S,vt as C,wt as w,yt as T}from"./es-CytvQ2WB.js";import{d as E,f as D,g as O,i as k,l as A,m as j,n as M,p as N,t as P,u as F}from"./context-gaYVKGb3.js";var I=e(t()),L={info:I.createElement(r,null),success:I.createElement(c,null),error:I.createElement(s,null),warning:I.createElement(b,null),loading:I.createElement(n,null)};function R(e,t){return t===null||t===!1?null:t||I.createElement(o,{className:`${e}-close-icon`})}var z=4.5,B=`topRight`,V={offset:8},H=({children:e,prefixCls:t})=>{let n=g(t),[r,i]=A(t,n);return I.createElement(O,{classNames:{list:S(r,i,n)}},e)},U=(e,{prefixCls:t,key:n})=>I.createElement(H,{prefixCls:t,key:n},e),W=I.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:s,rtl:c,onAllRemoved:u,stack:d,duration:f=z,pauseOnHover:g=!0,showProgress:_}=e,{getPrefixCls:v,getPopupContainer:y,direction:b}=m(`notification`),{notification:x}=(0,I.useContext)(l),[w]=p(`global`,h.global),O=a||v(`notification`),k=(0,I.useMemo)(()=>i(f)&&f>0?f:!1,[f]),A=T(x?.style),[M,P]=C([x?.classNames,e?.classNames],[x?.styles,A,e?.styles],{props:e}),F=()=>D(n,r),L=()=>S({[`${O}-rtl`]:c??b===`rtl`}),B=()=>E(O),H=N(d,V),[W,G]=j({prefixCls:O,style:F,className:L,motion:B,closable:{closeIcon:R(O)},duration:k,getContainer:()=>o?.()||y?.()||document.body,maxCount:s,pauseOnHover:g,showProgress:_,classNames:M,styles:P,onAllRemoved:u,renderNotifications:U,stack:H});return I.useImperativeHandle(t,()=>({...W,prefixCls:O,notification:x,closeLabel:w.close??h.global?.close??`Close`})),G});function G(e){let t=I.useRef(null);x(`Notification`);let{notification:n}=I.useContext(l);return[I.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o,closeLabel:s}=t.current,c=o?.className||{},l=`${a}-notice`,{title:p,message:m,description:h,icon:g,type:v,btn:y,actions:b,className:x,style:C,role:T=`alert`,closeIcon:E,closable:D,classNames:O={},styles:k={},...A}=r,j=p??m,M=_(j),N=b??y,P=R(l,F(E,e,o)),[I,z,,V]=d(u({...e||{},...r}),u(n),{closable:!0,closeIcon:P},s),H=I?{onClose:w(D)?D.onClose:void 0,closeIcon:z,...V}:!1,U=f(O,{props:r}),W=f(k,{props:r}),G=g||(v?L[v]:null),K=!g&&v?`${l}-icon-${v}`:void 0;return i({placement:e?.placement??B,...A,title:M?j:null,description:h,icon:G,actions:N,role:T,classNames:{...U,icon:S(K,U?.icon)},styles:W,className:S({[`${l}-${v}`]:v},x,c),style:C,closable:H})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),I.createElement(W,{key:`notification-holder`,...e,ref:t})]}function K(e){return G(e)}var q=a(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),J=I.forwardRef((e,t)=>{let{prefixCls:n,children:r,className:i,rootClassName:a,message:o,notification:s,style:c,component:l=`div`}=e,{direction:u,getPrefixCls:d,className:f,style:p}=m(`app`),h=d(`app`,n),[g,_]=q(h),b=S(g,h,i,a,_,{[`${h}-rtl`]:u===`rtl`}),x=(0,I.useContext)(P),C=I.useMemo(()=>({message:{...x.message,...o},notification:{...x.notification,...s}}),[o,s,x.message,x.notification]),[w,T]=k(C.message),[E,D]=K(C.notification),[O,A]=v(),j=I.useMemo(()=>({message:w,notification:E,modal:O}),[w,E,O]),N=y(`App`);N(!(_&&l===!1&&(i||a||c||f||p)),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string."),N(!t||l!==!1,`usage`,"`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let F=l===!1?I.Fragment:l,L={className:S(f,b),style:{...p,...c}};return I.createElement(M.Provider,{value:j},I.createElement(P.Provider,{value:C},I.createElement(F,{...l===!1?void 0:{...L,ref:t}},A,T,D,r)))}),Y=()=>I.useContext(M),X=J;X.useApp=Y;export{X as t};
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.