1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2863],{52863:(e,t,l)=>{l.r(t),l.d(t,{default:()=>u});var r=l(2183),n=l(27861),a=l(98576),s=l(3638),i=l(36439),c=l(3897),o=l(90009);function u(e){let t,l,u,d,m,f,x,v,g,w,C,p,b,j,_,y,H,L,N=(0,n.c)(42),{fields:S}=e,[V,M]=(0,i.useState)(!1),[Z,k]=(0,i.useState)(!1),A=(0,i.useRef)(null),[E,R]=(0,i.useState)(0),{HasMessage:W,MessageTitle:B,MessageText:T,MessageType:D,MessageIcon:I}=S.DatasourceItems;N[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=(0,o.Ri)("hideAlert");e&&M(!1);let t=()=>{if(A.current){let e=A.current.getBoundingClientRect().height;(window.scrollY||window.pageYOffset)>e?k(!1):(R(A.current.scrollHeight),k(!0))}};return window.addEventListener("scroll",t),M(!0),k(!0),setTimeout(()=>{e||t()},50),()=>window.removeEventListener("scroll",t)},l=[],N[0]=t,N[1]=l):(t=N[0],l=N[1]),(0,i.useEffect)(t,l),N[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{A.current&&R(A.current.scrollHeight)},d=[],N[2]=u,N[3]=d):(u=N[2],d=N[3]),(0,i.useEffect)(u,d),N[4]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{(0,o.TV)("hideAlert","true",1),M(!1)},N[4]=m):m=N[4];let Y=m;if(N[5]!==W?.value||N[6]!==D?.value||N[7]!==Z||N[8]!==V||N[9]!==E){f=Symbol.for("react.early_return_sentinel");e:{let e=(e=>{switch(e){case"Warning":return"bg-important text-important-contrast";case"Neutral":return"bg-primary";case"Dark":return"bg-background-300";default:return"bg-background-100"}})(D?.value);if(!W?.value||!V&&D?.value!=="Warning"){f=null;break e}v=A;let t=Z&&"transition-[height]";N[15]!==t?(g=(0,s.A)("overflow-hidden duration-300 ease-in-out",t),N[15]=t,N[16]=g):g=N[16];let l=Z?E:0;N[17]!==l?(w={height:l},N[17]=l,N[18]=w):w=N[18],x=(0,s.A)("bp:px-lg px-sm flex justify-between gap-3 py-3",e)}N[5]=W?.value,N[6]=D?.value,N[7]=Z,N[8]=V,N[9]=E,N[10]=f,N[11]=x,N[12]=v,N[13]=g,N[14]=w}else f=N[10],x=N[11],v=N[12],g=N[13],w=N[14];if(f!==Symbol.for("react.early_return_sentinel"))return f;N[19]!==I?.value?(C=I?.value&&I?.value!=="No icon"&&(0,r.jsx)("div",{className:"pt-1",children:(0,r.jsx)(h,{name:I?.value})}),N[19]=I?.value,N[20]=C):C=N[20];let O=B?.value;return N[21]!==O?(p=(0,r.jsx)("p",{className:"font-bold",children:O}),N[21]=O,N[22]=p):p=N[22],N[23]!==T?(b=(0,r.jsx)(a.RichText,{field:T,tag:"p"}),N[23]=T,N[24]=b):b=N[24],N[25]!==p||N[26]!==b?(j=(0,r.jsxs)("div",{children:[p,b]}),N[25]=p,N[26]=b,N[27]=j):j=N[27],N[28]!==C||N[29]!==j?(_=(0,r.jsxs)("div",{className:"bp:text-sm flex gap-3 text-[14.5px]",children:[C,j]}),N[28]=C,N[29]=j,N[30]=_):_=N[30],N[31]!==D?.value?(y=D?.value!=="Warning"&&(0,r.jsx)("div",{children:(0,r.jsx)("button",{onClick:Y,"aria-label":"Close alert",children:(0,r.jsx)(c.XIcon,{className:"h-4 w-4"})})}),N[31]=D?.value,N[32]=y):y=N[32],N[33]!==_||N[34]!==y||N[35]!==x?(H=(0,r.jsxs)("div",{className:x,children:[_,y]}),N[33]=_,N[34]=y,N[35]=x,N[36]=H):H=N[36],N[37]!==H||N[38]!==v||N[39]!==g||N[40]!==w?(L=(0,r.jsx)("div",{ref:v,className:g,style:w,children:H}),N[37]=H,N[38]=v,N[39]=g,N[40]=w,N[41]=L):L=N[41],L}let h=e=>{let t=(0,n.c)(2),{name:l}=e;if("CampaignAlert"===l){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(d,{}),t[0]=e):e=t[0],e}if("WarningAlert"===l){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(m,{}),t[1]=e):e=t[1],e}return null},d=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M24.0003 14.6666C24.0003 15.5599 24.0003 16.4399 24.0003 17.3333C25.6003 17.3333 27.6803 17.3333 29.3337 17.3333C29.3337 16.4399 29.3337 15.5599 29.3337 14.6666C27.6803 14.6666 25.6003 14.6666 24.0003 14.6666Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M21.3337 23.4799C22.6137 24.4266 24.2803 25.6799 25.6003 26.6666C26.1337 25.9599 26.667 25.2399 27.2003 24.5333C25.8803 23.5466 24.2137 22.2933 22.9337 21.3333C22.4003 22.0533 21.867 22.7733 21.3337 23.4799Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M27.2003 7.46659C26.667 6.75992 26.1337 6.03992 25.6003 5.33325C24.2803 6.31992 22.6137 7.57325 21.3337 8.53325C21.867 9.23992 22.4003 9.95992 22.9337 10.6666C24.2137 9.70658 25.8803 8.46658 27.2003 7.46659Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5.33366 11.9999C3.86699 11.9999 2.66699 13.1999 2.66699 14.6666V17.3333C2.66699 18.7999 3.86699 19.9999 5.33366 19.9999H6.66699V25.3333H9.33366V19.9999H10.667L17.3337 23.9999V7.99992L10.667 11.9999H5.33366ZM12.0403 14.2799L14.667 12.7066V19.2933L12.0403 17.7199L11.4003 17.3333H5.33366V14.6666H11.4003L12.0403 14.2799Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M20.667 15.9999C20.667 14.2266 19.8937 12.6266 18.667 11.5333V20.4533C19.8937 19.3733 20.667 17.7733 20.667 15.9999Z",fill:"currentColor"})]}),t[0]=e):e=t[0],e},m=()=>{let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M15.9997 8.6535L26.0397 26.0002H5.95967L15.9997 8.6535ZM15.9997 3.3335L1.33301 28.6668H30.6663L15.9997 3.3335ZM17.333 22.0002H14.6663V24.6668H17.333V22.0002ZM17.333 14.0002H14.6663V19.3335
1H17.333V14.0002Z",fill:"currentColor"})}),t[0]=e):e=t[0],e}}}]);
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.