PageSourceSearch

https://www.geodataclaw.com/assets/alert-DK6ufnYt.js

js geodataclaw.com collected 2026-09-24 14:15:17 UTC 6,336 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{c as t,g as n,l as r,n as i,o as a}from"./antv-plots-vendor-BStZcfPb.js";import{a as o}from"./es-DzwS7wJM.js";import{At as s,Cn as c,Lt as l,Mt as u,Nt as d,Ot as f,Pt as p,Ut as m,Vt as h,dn as g,en as _,hn as v,jt as y,mn as b,tn as x,vt as S,wt as C,yt as w}from"./es-CytvQ2WB.js";var T=e(n()),E=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),D=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:s,lineHeight:c,motionEaseInOutCirc:l,borderRadius:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:g,lineWidth:_,lineType:v,colorSuccessBorder:y,colorWarningBorder:b,colorErrorBorder:x,colorInfoBorder:S}=e;return{[t]:{...m(e),position:`relative`,display:`flex`,alignItems:`center`,padding:g,wordWrap:`break-word`,borderRadius:u,borderWidth:o(_),borderStyle:v,[`&${t}-success`]:{borderColor:y},[`&${t}-info`]:{borderColor:S},[`&${t}-warning`]:{borderColor:b},[`&${t}-error`]:{borderColor:x},[`&${t}-filled`]:{borderColor:`transparent`},[`&${t}-rtl`]:{direction:`rtl`},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:c},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:[`max-height`,`opacity`,`padding-top`,`padding-bottom`,`margin-bottom`].map(e=>`${e} ${n} ${l}`).join(`, `)},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:`flex-start`,padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-title`]:{display:`block`,marginBottom:r,color:p,fontSize:s},[`${t}-description`]:{display:`block`,color:f}},[`&${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}}},O=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":E(r,n,t),"&-info":E(l,c,t),"&-warning":E(a,i,t),"&-error":{...E(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},k=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:s,colorIconHover:c}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:o(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...h(e),[`${n}-close`]:{color:s,transition:`color ${r}`,"&:hover":{color:c}}},"&-close-text":{color:s,transition:`color ${r}`,"&:hover":{color:c}}}}},A=l(`Alert`,e=>[D(e),O(e),k(e)],e=>({borderRadius:e.borderRadiusLG,withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),ee=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:c,errorIcon:l}=e,u={success:a??T.createElement(p,null),info:o??T.createElement(s,null),error:l??T.createElement(d,null),warning:c??T.createElement(y,null)};return T.createElement(`span`,{className:r,style:i},t??u[n])},te=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a,className:o,style:s}=e,c=r===!0||r===void 0?T.createElement(u,null):r;return t?T.createElement(`button`,{type:`button`,onClick:i,className:x(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},j=T.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:i,title:a,banner:o,className:s,rootClassName:l,style:u,onMouseEnter:d,onMouseLeave:p,onClick:m,afterClose:h,showIcon:y,closable:E,closeText:D,closeIcon:O,action:k,id:j,styles:M,classNames:N,...ne}=e,P=a??i,[F,re]=T.useState(!1),I=T.useRef(null);T.useImperativeHandle(t,()=>({nativeElement:I.current}));let{getPrefixCls:ie,direction:ae,variant:oe,closable:L,closeIcon:R,className:z,style:B,classNames:V,styles:H,successIcon:U,infoIcon:W,warningIcon:G,errorIcon:K}=_(`alert`),q=ie(`alert`,r),[se,ce]=A(q),{onClose:le,afterClose:ue}=C(E)?E:{},de=t=>{re(!0),(le??e.onClose)?.(t)},J=T.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),Y=e.variant??oe??`outlined`,X=T.useMemo(()=>C(E)||D?!0:typeof E==`boolean`?E:O!==!1&&b(O)?!0:!!L,[D,O,E,L]),Z=o&&y===void 0?!0:y,fe={...e,prefixCls:q,variant:Y,type:J,showIcon:Z,closable:X},pe=w(B),me=w(u),[Q,$]=S([V,N],[H,pe,M,me],{props:fe}),he=x(q,`${q}-${J}`,`${q}-${Y}`,{[`${q}-with-description`]:v(n),[`${q}-no-icon`]:!Z,[`${q}-banner`]:!!o,[`${q}-rtl`]:ae===`rtl`},z,s,l,Q.root,ce,se),ge=g(ne,{aria:!0,data:!0}),_e=T.useMemo(()=>C(E)&&E.closeIcon?E.closeIcon:D||(O===void 0?C(L)&&L.closeIcon?L.closeIcon:R:O),[O,E,L,D,R]),ve=T.useMemo(()=>{let e=E??L;return C(e)?g(e,{data:!0,aria:!0}):{}},[E,L]);return T.createElement(f,{visible:!F,motionName:`${q}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ue??h},({className:t,style:r},i)=>T.createElement(`div`,{id:j,ref:c(I,i),"data-show":!F,className:x(he,t),style:{...$.root,...r},onMouseEnter:d,onMouseLeave:p,onClick:m,role:`alert`,...ge},Z?T.createElement(ee,{className:x(`${q}-icon`,Q.icon),style:$.icon,description:n,icon:e.icon,prefixCls:q,type:J,successIcon:U,infoIcon:W,warningIcon:G,errorIcon:K}):null,T.createElement(`div`,{className:x(`${q}-section`,Q.section),style:$.section},v(P)?T.createElement(`div`,{className:x(`${q}-title`,Q.title),style:$.title},P):null,v(n)?T.createElement(`div`,{className:x(`${q}-description`,Q.description),style:$.description},n):null),v(k)?T.createElement(`div`,{className:x(`${q}-actions`,Q.actions),style:$.actions},k):null,T.createElement(te,{className:Q.close,style:$.close,isClosable:X,prefixCls:q,closeIcon:_e,handleClose:de,ariaProps:ve})))}),M=function(e){function n(){var e;return r(this,n),e=i(this,n,arguments),e.state={error:void 0,info:{}},e}return a(n,e),t(n,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=b(s)?s:a?.toString(),u=b(n)?n:c;return a?T.createElement(j,{id:r,type:`error`,title:l,description:T.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(T.PureComponent),N=j;N.ErrorBoundary=M;export{N 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.