1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1741],{3449:(e,t,r)=>{r.d(t,{A3:()=>j,Ay:()=>j}),Object.defineProperty;var i=r(48431),a=r(56090),n=r(35907),o=r(48444),l=r(19862),s=r(55355),d=r(611),c=r(85349),h=r(20137),m=r(25904),p=r(42295);const g=(e,t)=>{const{mdAndAbove:r,sm:i}=(0,l.Gu)();return Boolean(r&&e||i&&t)},f=h.I4.span` 2 display: inline-block; 3 position: relative; 4`,u=h.I4.span(e=>h.AH` 5 display: inline-block; 6 ${(0,m.Sg)("padding",[0,1])}; 7 border-radius: ${e.theme.border.radius[1]}; 8 margin-right: 2px; 9 color: ${e.theme.color.monochrome1.default}; 10 background: ${e.theme.color.monochrome6.default}; 11 12 &:nth-child(2) { 13 margin-right: 0; 14 } 15 16 ${e.inverse&&h.AH` 17 color: ${e.theme.color.monochrome5.default}; 18 background: ${e.theme.color.monochrome1.default}; 19 `} 20 `),x=h.I4.div(e=>h.AH` 21 display: block; 22 position: absolute; 23 text-align: center; 24 top: 100%; 25 left: 0; 26 right: 0; 27 font-size: ${e.theme.typography.paragraph[2].lg.fontSize}px; 28 font-weight: ${e.theme.fontWeight[1]}; 29 `),v=({remainingTime:e,dataAttributes:t,dataSelectorPrefix:r,inverse:i,showUnit:a,showUnitOnSM:n,unit:l})=>(0,p.jsxs)(f,{"data-selector":(0,o.A)(r),...t,children:[e<10?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u,{inverse:i,"data-selector":(0,o.A)(r,"zero"),children:"0"}),(0,p.jsx)(u,{inverse:i,"data-selector":(0,o.A)(r,"remaining-time"),children:e})]}):(0,p.jsxs)("span",{"aria-label":e.toString(),children:[(0,p.jsx)(u,{inverse:i,"data-selector":(0,o.A)(r,"remaining-time-1"),"aria-hidden":!0,children:e.toString().charAt(0)}),(0,p.jsx)(u,{inverse:i,"data-selector":(0,o.A)(r,"remaining-time-2"),"aria-hidden":!0,children:e.toString().charAt(1)})]}),g(a,n)&&(0,p.jsx)(x,{"data-selector":(0,o.A)(r,"unit"),children:(0,p.jsx)(c.fz,{size:1,weight:1,inverse:i,children:(0,d.sK)(l)})})]}),A=h.I4.div(e=>h.AH` 30 color: ${e.inverse?e.theme.color.monochrome1.default:e.theme.color.monochrome5.default}; 31 ${m.Il.heading(e.size,!1)} 32 font-weight: ${e.theme.fontWeight[3]}; 33 text-align: ${e.justify}; 34 `),y=h.I4.span(e=>h.AH` 35 display: inline-block; 36 37 ${e.text?.prefix&&h.AH` 38 ${(0,m.YK)("margin-left",2)} 39 `} 40 41 ${e.text?.suffix&&h.AH` 42 ${(0,m.YK)("margin-right",2)} 43 `} 44 45 ${"vertical"===e.orientation&&h.AH` 46 display: block; 47 ${(0,m.YK)("margin",0)} 48 `} 49 50 ${g(e.showUnits,e.showUnitsOnSM)&&h.AH` 51 margin-bottom: ${e.theme.typography.paragraph[2].lg.fontSize}px; 52 `} 53 `),$=h.I4.div` 54 display: inline-block; 55 56 ${s.bS.Span} { 57 display: inline-block; 58 margin: 0 1px; 59 } 60 61 &:last-child { 62 ${s.bS.Span} { 63 display: none; 64 } 65 } 66`;function b(e){return{days:Math.floor(e/86400),hours:Math.floor(e%86400/3600),minutes:Math.floor(e%3600/60),seconds:Math.floor(e%60)}}const j=({inverse:e=!1,size:t=3,text:r,justify:d,startDate:c,endDate:h,showUnits:m,showUnitsOnSM:g=!1,format:f,orientation:u,id:x,dataAttributes:j,dataSelectorPrefix:S})=>{const{sm:w}=(0,l.Gu)(),H={minutes:"mins",seconds:"secs"};let z=null,I=null;const[M,k]=(0,i.useState)(!1),[C,D]=(0,i.useState)(()=>!c||new Date(c).getTime()<=Date.now()),P=(0,i.useRef)(0),[T,_]=(0,i.useState)({days:1,hours:0,minutes:0,seconds:0}),O=()=>{z&&clearInterval(z),z=null,k(!0),_({days:0,hours:0,minutes:0,seconds:0})},U=()=>{0!==P.current?(_({...b(P.current-1)}),P.current-=1):O()},L=e=>"days"===e||"hours"===e?e:t<3||w?H[e]:e;(0,i.useEffect)(()=>((()=>{const e=Date.now(),t=c?new Date(c).getTime():e,r=Math.max(t,e),i=a(h).diff(r,"second"),n=Math.max(0,Math.floor((t-e)/1e3));if(i>0)return P.current=i,0===n?_({...b(i)}):D(!1),o=Math.max(0,n),void(I=setTimeout(()=>{I=null;const e=Date.now(),t=a(h).diff(e,"second");P.current=Math.max(0,t),_({...b(P.current)}),D(!0),z=setInterval(U,1e3)},1e3*o));var o;P.current=0,k(!0)})(),()=>{I&&(I&&clearTimeout(I),I=null),z&&O()}),[]);const R=M&&!r?.expiry||!C;return(0,p.jsx)(A,{size:t,inverse:e,justify:d,id:x,"data-selector":(0,o.A)(S),"data-component-name":"DateCountdown",...j,children:!R&&(M&&r?.expiry?(0,p.jsx)(s.L9,{inverse:e,dataSelectorPrefix:(0,o.A)(S,"expiry-text"),children:r?.expiry}):(0,p.jsxs)(p.Fragment,{children:[r?.prefix&&(0,p.jsx)(s.L9,{inverse:e,dataSelectorPrefix:(0,o.A)(S,"prefix"),children:r?.prefix}),(0,p.jsx)(n.C_,{children:(0,p.jsx)(y,{showUnits:m,showUnitsOnSM:g,text:r,size:t,orientation:u,role:"timer","aria-live":"off","data-selector":(0,o.A)(S,"timer"),children:["days","hours","minutes","seconds"].map(t=>f&&!f[t]?null:(0,p.jsxs)($,{children:[(0,p.jsx)(v,{inverse:e,unit:L(t),showUnit:m,showUnitOnSM:g,remainingTime:T[t],dataSelectorPrefix:(0,o.A)(S,t)}),(0,p.jsx)(s.L9,{inverse:e,children:":"})]},t))})}),r?.suffix&&(0,p.jsx)(s.L9,{inverse:e,dataSelectorPrefix:(0,o.A)(S,"suffix"),children:r?.suffix})]}))})}},11014:(e,t,r)=>{r.d(t,{Ay:()=>y,Sw:()=>A}),Object.defineProperty;
66var i=r(48444),a=r(60154),n=r(84089),o=r(56148),l=r(93638),s=r(85349),d=r(54720),c=r(20137),h=r(70763),m=r(25904),p=r(42295);const g=e=>{if("vertical"!==e.orientation&&e.fixedImageWidth)return"16/9"===e.aspectRatio?{sm:170,md:220,lg:220}:"1/1"===e.aspectRatio?{sm:120,md:140,lg:170}:{sm:120,md:140,lg:150}},f=c.I4.div(({orientation:e,height:t})=>c.AH` 67 display: flex; 68 69 ${"fill"===t&&c.AH` 70 height: 100%; 71 `} 72 73 ${a.ge.Container} { 74 width: 100%; 75 } 76 ${a.ge.ContainerContent} { 77 display: flex; 78 ${(0,m.YK)("gap",3)} 79 80 ${"horizontal"===e&&c.AH` 81 flex-direction: row-reverse; 82 `} 83 84 ${"vertical"===e&&c.AH` 85 flex-direction: column; 86 align-items: stretch; 87 `} 88 } 89 `),u=c.I4.div(({orientation:e,justify:t,verticalAlignment:r,isFixedImageWidth:i,aspectRatio:a})=>{const n="vertical"===e&&!i&&!a;return c.AH` 90 display: flex; 91 flex-grow: 1; 92 justify-content: ${r}; 93 flex-direction: column; 94 ${(0,m.YK)("gap",3)} 95 96 ${"center"===t&&c.AH` 97 align-items: center; 98 `} 99 100 ${"horizontal"===e&&c.AH` 101 width: 50%; 102 `} 103 104 ${n&&c.AH` 105 flex-grow: 0; 106 `} 107 `}),x=c.I4.div` 108 display: flex; 109 flex-direction: column; 110 ${(0,m.YK)("gap",2)}; 111`,v=(0,c.I4)(h.N3)(({orientation:e,fixedImageWidth:t,aspectRatio:r,backgroundColor:i,theme:a})=>{const n="vertical"===e&&!t&&!r;return c.AH` 112 ${i&&c.AH` 113 background: ${i}; 114 overflow: hidden; 115 border-radius: ${a.border.radius[2]}; 116 `} 117 118 ${n&&c.AH` 119 flex-grow: 1; 120 121 picture { 122 height: 100%; 123 } 124 125 img { 126 height: 100%; 127 object-fit: cover; 128 } 129 `} 130 131 ${"horizontal"===e&&c.AH` 132 display: flex; 133 align-items: center; 134 max-width: 50%; 135 width: 50%; 136 137 ${t&&c.AH` 138 width: ${t.sm}px; 139 140 ${m.XG.md(c.AH` 141 width: ${t.md}px; 142 `)} 143 144 ${m.XG.lg(c.AH` 145 width: ${t.lg}px; 146 `)} 147 148 ${!r&&c.AH` 149 picture { 150 height: 100%; 151 } 152 153 img { 154 height: 100%; 155 object-fit: cover; 156 } 157 `} 158 `} 159 `} 160 `}),A=()=>({appearance:{primary:{containerAppearance:"primary",linkAppearance:"primary",inverseText:!1},secondary:{containerAppearance:"alt2",linkAppearance:"alt1",inverseText:!0}},typography:{heading:{size:1,weight:3},paragraph:{size:2,weight:2}}}),y=({appearance:e="primary",elevation:t=!1,orientation:r="vertical",justify:c="left",height:h="hug",heading:m,text:y,link:$,image:b,backgroundColor:j,id:S,dataSelectorPrefix:w,dataAttributes:H,localTheme:z,verticalAlignment:I="center"})=>{const M="DiscoveryCard",k=(0,d.Y1)(M,A,z),{typography:C}=k,{containerAppearance:D,inverseText:P,linkAppearance:T}=k.appearance[e];return(0,p.jsx)(f,{orientation:r,id:S,"data-selector":(0,i.A)(w),"data-component-name":M,height:h,...H,
160children:(0,p.jsxs)(a.mc,{elevation:t,paddingLevel:3,appearance:D,dataSelectorPrefix:(0,i.A)(w,"container"),children:[(0,p.jsx)(v,{...$,orientation:r,rel:$?.htmlAttributes?.rel,target:$?.htmlAttributes?.target,backgroundColor:j,fixedImageWidth:g({aspectRatio:b.aspectRatio,fixedImageWidth:b.isFixedWidth,orientation:r}),aspectRatio:b.aspectRatio,children:(0,p.jsx)(o._V,{...b,roundedCorners:!0,dataSelectorPrefix:(0,i.A)(w,"image")})}),(0,p.jsxs)(u,{orientation:r,justify:c,verticalAlignment:I,isFixedImageWidth:b.isFixedWidth,aspectRatio:b.aspectRatio,children:[(0,p.jsxs)(x,{children:[(0,p.jsx)(n.DZ,{level:m.level,text:m.text,size:m.size??C.heading.size,weight:C.heading.weight,justify:c,inverse:P,noMargin:!0,dataSelectorPrefix:(0,i.A)(w,"heading")}),y&&(0,p.jsx)(s.fz,{...C.paragraph,justify:c,inverse:P,dataSelectorPrefix:(0,i.A)(w,"text"),children:y})]}),$&&(0,p.jsx)(l.Ko,{...$,icon:{name:"chevron-right",justify:"right"},appearance:T,inverse:P,dataSelectorPrefix:(0,i.A)(w,"link")})]})]})})}},96412:(e,t,r)=>{r.d(t,{cG:()=>p,YH:()=>c});var i=Object.defineProperty,a=(e,t)=>{let r={};for(var a in e)i(r,a,{get:e[a],enumerable:!0});return t||i(r,Symbol.toStringTag,{value:"Module"}),r},n=r(48444),o=r(54720),l=r(20137),s=r(25904),d=r(42295),c=a({Divider:()=>h});const h=l.I4.hr(e=>{const t="horizontal"===e.orientation,r=e.inverse?e.dividerTheme.appearance[e.appearance].inverse.color:e.dividerTheme.appearance[e.appearance].color,i=e.noMargin?0:2,a=`${e.theme.border.width[1]} ${e.dividerTheme.level[e.level].borderStyle} ${r}`;return l.AH` 161 width: ${t?"100%":0}; 162 height: ${t?0:"100%"}; 163 ${(0,s.Sg)("margin",t?[i,0]:[0,i])}; 164 padding: 0; 165 border: 0; 166 ${t?l.AH` 167 border-top: ${a}; 168 `:l.AH` 169 border-left: ${a}; 170 `} 171 `}),m=e=>({appearance:{primary:{color:e.color.monochrome2.default,inverse:{color:e.inverseColor.monochrome2.default}},secondary:{color:e.color.monochrome3.default,inverse:{color:e.inverseColor.monochrome3.default}},alt1:{color:e.color.primary1.default,inverse:{color:e.inverseColor.primary1.default}},alt2:{color:e.color.primary1.default,inverse:{color:e.inverseColor.primary1.default}},alt3:{color:e.color.monochrome6.default,inverse:{color:e.inverseColor.monochrome6.default}},alt4:{color:e.color.primary4.default,inverse:{color:e.inverseColor.primary4.default}}},level:{1:{borderStyle:e.border.style[1]},2:{borderStyle:e.border.style[2]}}}),p=({appearance:e="primary",orientation:t="horizontal",level:r=1,inverse:i=!1,noMargin:a=!1,id:l,dataSelectorPrefix:s,dataAttributes:c,localTheme:p})=>{const g="Divider";return(0,d.jsx)(h,{appearance:e,dividerTheme:(0,o.Y1)(g,m,p),orientation:t,level:r,inverse:i,noMargin:a,id:l,"aria-hidden":"true","data-selector":(0,n.A)(s),"data-component-name":g,...c})}}}]);
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.