"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9607],{38894:(e,l,t)=>{t.d(l,{A:()=>S}),t(63696);var a=t(20641),i=t(11545),r=t(35289),d=t(82490),n=t(468),s=t(74437),h=t(55522),c=t(27442),o=t(54498),A=t(31002),g=t(83051),u=t(62540),_=(0,g.default)("div",{target:"eitf6465",label:"ErrorMessage"})(a.tc," ",i.Vk," display:flex;",(0,d.a)({width:16,height:9}),"@media (max-width: ",(0,n.A)(r._G-1),"){",(e=>{var{collapseAtMobile:l}=e;return l&&(0,d.a)({width:16,height:0})}),";}color:",(e=>{var{theme:l}=e;return l.colourPalette.primary}),";background-color:",(e=>{var{theme:l}=e;return l.colourPalette.midground}),";"),f=(0,g.default)("div",{target:"eitf6464",label:"StyledInnerContainer"})(d.n," gap:",s.SPACING_6,";padding:",s.SPACING_6," ",s.SPACING_2,";@media (min-width: ",r.jN,"){padding:",s.SPACING_6," ",s.SPACING_4,";}"),p=(0,g.default)("p",{target:"eitf6463",label:"StyledMessage"})(i.j7," ",a.jG," margin:0;"),C=(0,g.default)("div",{target:"eitf6462",label:"IconWrapper"})("width:",s.SPACING_8,";height:",s.SPACING_8,";"),x=(0,g.default)("div",{target:"eitf6461",label:"TextContent"})(d.n," gap:",s.SPACING_4,";"),j=(0,g.default)("div",{target:"eitf6460",label:"CTAWrapper"})("min-width:",(0,n.A)(250),";");const S=e=>{var{message:l,reason:t,headingLevel:a="1",collapseAtMobile:i,useHeading:r=!0,icon:d=null,cta:n=null}=e;return(0,u.jsx)(_,{collapseAtMobile:i,children:(0,u.jsxs)(f,{children:[d&&(0,u.jsx)(C,{children:(0,u.jsx)(h.A,{type:d})}),(0,u.jsxs)(x,{children:[l&&r&&(0,u.jsx)(o.A,{level:a,fontScale:"indexHeadlineMedium",children:l}),l&&!r&&(0,u.jsx)(p,{children:l}),t&&(0,u.jsx)(c.A,{children:t})]}),n&&(0,u.jsx)(j,{children:(0,u.jsx)(A.A,{href:n.href,onClick:n.onClick,width:"full",children:n.label})})]})})}}}]);