"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2239],{66510:(e,i,n)=>{n.d(i,{A:()=>v}),n(63696);var r=n(91785),a=n(83051),t=n(20641),s=n(35289),o=n(11545),l=n(468),c=n(74437),d=n(55522),u=n(14810),A=n(62540),p="1.286em",f=(0,r.AH)("padding:",c.SPACING_4," ",c.SPACING_4," ",c.SPACING_4," calc(",c.SPACING_4," + ",p,");"),h=(0,r.AH)("padding:",c.SPACING_2," ",c.SPACING_2," ",c.SPACING_2," calc(",c.SPACING_4," + ",p,");"),k=(0,r.AH)("@media (min-width: ",s.cK,"){display:flex;flex-direction:row;}"),m=(0,r.AH)("@media (min-width: ",s.cK,"){display:flex;flex-direction:column;}"),I=(0,a.default)("div",{target:"e16a4j7h3",label:"StyledInformationWrapper"})("box-sizing:border-box;background-color:",(e=>{var{theme:i,hasBackground:n}=e;return n?i.colourPalette.midground:""}),";color:",(e=>{var{theme:i}=e;return i.colourPalette.secondary}),";",t.tc," ",o.cx," min-height:calc(",p," + ",c.SPACING_4,");",(e=>{var{type:i}=e;return"status"===i?h:f})," position:relative;",(e=>{var{withLink:i,displayAsColumn:n}=e;return i&&!n&&k}),";",(e=>{var{withLink:i,displayAsColumn:n}=e;return i&&n&&m}),";",(e=>{var{isQuickUserActionsMenuInfo:i}=e;return i&&(0,r.AH)("padding:",c.SPACING_4," 0 0 21px;line-height:1.23077;font-size:0.8125rem;@media (max-width: ",s.js,"){",o.B3,";}")}),";"),_=(0,a.default)("span",{target:"e16a4j7h2",label:"IconContainer"})("position:absolute;left:",(e=>{var{isQuickUserActionsMenuInfo:i}=e;return i?(0,l.A)(0):c.SPACING_2}),";display:inline-block;width:",(e=>{var{isQuickUserActionsMenuInfo:i}=e;return i?(0,l.A)(13):p}),";height:",(e=>{var{isQuickUserActionsMenuInfo:i}=e;return i?(0,l.A)(13):p}),";vertical-align:","-0.295em",";",(e=>{var{isQuickUserActionsMenuInfo:i}=e;return i&&(0,r.AH)("padding-top:",(0,l.A)(1),";")}),";"),g=e=>{var{icon:i,isQuickUserActionsMenuInfo:n}=e;return(0,A.jsx)(_,{"data-testid":i,isQuickUserActionsMenuInfo:n,children:(0,A.jsx)(d.A,{type:i})})},C=(0,a.default)("span",{target:"e16a4j7h1",label:"LinkWrapper"})("display:block;padding-top:",c.SPACING_4,";@media (min-width: ",s.cK,"){",(e=>{var{displayAsColumn:i}=e;return!i&&"padding-top: 0;"}),";flex-grow:1;flex-shrink:0;flex-basis:calc((",p," + 2rem + 100%) / 3 - (5 / 3) * 1rem);}"),x=(0,a.default)("span",{target:"e16a4j7h0",label:"MessageWrapper"})("@media (min-width: ",s.cK,"){",(e=>{var{withLink:i}=e;return i&&"padding-right: ".concat(c.SPACING_4,";")}),";}");const v=e=>{var{icon:i="labels:info",link:n,children:r,type:a="info",testid:t="info-wrapper",unsafeViewTrackRef:s,unsafeClickTrackRef:o,hasBackground:l=!0,isQuickUserActionsMenuInfo:c=!1,displayAsColumn:d=!1}=e,p=Boolean(n);return(0,A.jsxs)(I,{"data-testid":t,type:a,withLink:p,ref:s,hasBackground:l,isQuickUserActionsMenuInfo:c,displayAsColumn:d,children:[(0,A.jsxs)(x,{withLink:p,children:[(0,A.jsx)(g,{icon:i,isQuickUserActionsMenuInfo:c}),r]}),n&&(0,A.jsx)(C,{displayAsColumn:d,children:(0,A.jsx)(u.A,{trackRef:o,url:n.url,children:n.text})})]})}}}]);