1(this.webpackChunkafme=this.webpackChunkafme||[]).push([[5322],{2340:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var a=i(12506),n=i(51510),o=i(77492),r=i(45152),l=i(27735);const s={Container:n.Ay.div.withConfig({displayName:"Paginationstyles__Container",componentId:"sc-9f3xu2-0"})(["display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:100%;@media ","{justify-content:flex-start;}","{flex-shrink:0;}","{flex-shrink:1;min-width:1px;overflow-x:auto;justify-content:unset;flex-wrap:nowrap;position:relative;"," ","{flex-shrink:0;}}"],(0,a.HT)(a.pF.Desktop),o.A.Container,r.x.Dots,l.M,r.x.Dot)}},3949:(e,t,i)=>{"use strict";i(7588)},7588:(e,t,i)=>{"use strict";var a=i(46518),n=i(69565),o=i(72652),r=i(79306),l=i(28551),s=i(1767),c=i(9539),d=i(84549)("forEach",TypeError);a({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){l(this);try{r(e)}catch(e){c(this,"throw",e)}if(d)return n(d,this,e);var t=s(this),i=0;o(t,(function(t){e(t,i++)}),{IS_RECORD:!0})}})},8872:(e,t,i)=>{"use strict";i(18237)},16888:(e,t,i)=>{"use strict";i.d(t,{L:()=>c});var a=i(74847),n=i(37312),o=i(51510),r=i(46753),l=i(12506),s=i(14314);const c={Container:o.Ay.div.withConfig({displayName:"Paginationstyles__Container",componentId:"sc-1rcul5g-0"})(["--color:",";display:flex;justify-content:center;"," &[data-disabled='true']{pointer-events:none;opacity:0.5;}ul{display:flex;align-items:center;gap:",";@media ","{flex-wrap:wrap;}}li{user-select:none;}li.previous,li.next{a > div{display:flex;align-items:center;gap:8px;}",";font-size:12px;line-height:14px;color:var(--color);text-transform:uppercase;cursor:pointer;"," &.disabled{opacity:0.5;pointer-events:none;}@media ","{div{display:flex;align-items:center;gap:8px;span{display:none;}}}}li.next > a > div > svg{transform:rotate(180deg);}li:not(.previous):not(.next){font-size:14px;line-height:21px;color:var(--color);",";text-decoration:underline;text-decoration-color:transparent;text-underline-offset:6px;cursor:pointer;"," &.selected{text-decoration-color:var(--color);}@media ","{a{display:flex;justify-content:center;align-items:center;border:1px solid ",";text-decoration:none;width:32px;height:32px;}&.selected{background-color:var(--color);color:",";}&.break{border:none;}}}"],a.A.primary.blue.base,(0,r.kY)("opacity",.25,"ease-in-out"),(0,s.v2)(8,24),(0,l.TG)(l.pF.Tablet),n.A.helveticaNeue.regular,(0,r.kY)("opacity",.25,"ease-in-out"),(0,l.TG)(l.pF.Tablet),n.A.helveticaNeue.regular,(0,r.kY)("text-decoration-color",.25,"ease-in-out"),(0,l.TG)(l.pF.Tablet),a.A.primary.blue.lighter3,a.A.white)}},18237:(e,t,i)=>{"use strict";var a=i(46518),n=i(72652),o=i(79306),r=i(28551),l=i(1767),s=i(9539),c=i(84549),d=i(18745),p=i(79039),u=TypeError,m=p((function(){[].keys().reduce((function(){}),void 0)})),h=!m&&c("reduce",u);a({target:"Iterator",proto:!0,real:!0,forced:m||h},{reduce:function(e){r(this);try{o(e)}catch(e){s(this,"throw",e)}var t=arguments.length<2,i=t?void 0:arguments[1];if(h)return d(h,this,t?[e]:[e,i]);var a=l(this),c=0;if(n(a,(function(a){t?(t=!1,i=a):i=e(i,a,c),c++}),{IS_RECORD:!0}),t)throw new u("Reduce of empty iterator with no initial value");return i}})},18745:(e,t,i)=>{"use strict";var a=i(40616),n=Function.prototype,o=n.apply,r=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(a?r.bind(o):function(){return r.apply(o,arguments)})},21310:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var a=i(5940),n=(i(98992),i(81454),i(96540)),o=i(45152);const r=({activeIndex:e,itemCount:t})=>n.createElement(o.x.Dots,null,Array.from(Array(t)).map(((t,i)=>n.createElement(o.x.Dot,{key:`dot-${i}`,"data-active":i==e}))));var l=i(39865),s=i(2340);const c=n.forwardRef(((e,t)=>{const i=(0,l.R)(),o=n.useRef(null),c=n.useRef(0),d=n.useRef(0);return n.useEffect((()=>{if(o.current){const e=o.current.childNodes.item(0);if(!c.current||!d.current){const t=o.current.querySelector("[data-active='false']");t&&(c.current=Number.parseFloat(window.getComputedStyle(t).width.replace("px","")));const i=window.getComputedStyle(e);d.current=Number.parseFloat(i.gap.replace("px",""))||0}if(o.current.querySelector("[data-active='true']")){const t=c.current*i.activeIndex+d.current*i.activeIndex;e.scrollTo({left:t,behavior:"smooth"})}}}),[i.activeIndex,o.current]),0===i.maxIndex?null:n.createElement(s.A.Container,{ref:t},n.createElement(a.A,{oneButton:"left"}),n.createElement("div",{style:{display:"contents"},ref:o},n.createElement(r,{itemCount:i.maxIndex+1,activeIndex:i.activeIndex})),n.createElement(a.A,{oneButton:"right"}))}));
1c.displayName="CarouselPagination";const d=c},45152:(e,t,i)=>{"use strict";i.d(t,{x:()=>c});var a=i(46753),n=i(74847),o=i(14314),r=i(10196),l=i(51510);const s=l.Ay.div.withConfig({displayName:"Dotsstyles__Dots",componentId:"sc-1ur6z1-0"})(["--dotActiveColour:",";--dotBgColour:",";--dotSize:8px;--dotActiveWidth:",";display:flex;align-items:center;gap:calc(var(--dotSize) * 2);flex-wrap:wrap;justify-content:center;"],n.A.white,(0,r.B3)(n.A.white,.5),(0,o.v2)(39,107)),c={Dot:l.Ay.span.withConfig({displayName:"Dotsstyles__Dot",componentId:"sc-1ur6z1-1"})(["",";display:block;max-width:var(--dotSize);width:var(--dotActiveWidth);height:var(--dotSize);border-radius:var(--dotSize);background-color:var(--dotBgColour);&[data-active='true']{background-color:var(--dotActiveColour);max-width:var(--dotActiveWidth);}"],(0,a.kY)("background-color, max-width")),Dots:s}},63950:e=>{e.exports=function(){}},71895:(e,t,i)=>{"use strict";i.d(t,{s:()=>d});var a=i(31635),n=i(53e3),o=i(35680),r=i(58319);function l(){var e=!1,t=[],i=new Set,l={subscribe:function(e){return i.add(e),function(){i.delete(e)}},start:function(a,n){if(e){var r=[];return i.forEach((function(e){r.push((0,o._0)(e,a,{transitionOverride:n}))})),Promise.all(r)}return new Promise((function(e){t.push({animation:[a,n],resolve:e})}))},set:function(t){return(0,n.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),i.forEach((function(e){(0,r.VI)(e,t)}))},stop:function(){i.forEach((function(e){(0,o.TV)(e)}))},mount:function(){return e=!0,t.forEach((function(e){var t=e.animation,i=e.resolve;l.start.apply(l,(0,a.fX)([],(0,a.zs)(t),!1)).then(i)})),function(){e=!1,l.stop()}}};return l}var s=i(96540),c=i(28601),d=function(){var e=(0,c.M)(l);return(0,s.useEffect)(e.mount,[]),e}},93120:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Y}),i(98992),i(81454);var a=i(41891),n=i(12506),o=i(44151),r=i(39865),l=i(21310),s=i(29931),c=i(83289),d=i(40621),p=i(96540),u=i(13554),m=i.n(u),h=i(74847),f=i(14314),g=i(52456),y=i(95677),v=i(10196),b=i(51510);const x=(0,b.Ay)(y.m.div).withConfig({displayName:"VideoModalstyles__Container",componentId:"sc-3h46r-0"})(["position:fixed;top:0;left:0;background-color:",";width:100%;height:100%;display:block;z-index:100;"],(0,v.B3)(h.A.black,.8)),w=b.Ay.button.withConfig({displayName:"VideoModalstyles__CloseBtn",componentId:"sc-3h46r-1"})(["position:absolute;top:18px;right:18px;background:transparent;border:none;display:flex;align-items:center;gap:5px;flex-direction:column;color:",";@media ","{top:0;left:calc(100% + 20px);right:auto;}span{font-size:",";}svg{width:",";}"],h.A.white,(0,n.HT)(n.pF.Tablet),(0,f.v2)(8,10),(0,f.v2)(16,20)),C=b.Ay.div.withConfig({displayName:"VideoModalstyles__VideoHolder",componentId:"sc-3h46r-2"})(["",";height:100%;padding:8px;"],g.U),I=b.Ay.div.withConfig({displayName:"VideoModalstyles__VideoInner",componentId:"sc-3h46r-3"})(["grid-column:span 24;align-self:center;justify-self:center;text-align:center;width:100%;max-width:900px;"]),E={CloseBtn:w,Container:x,VideoContainer:b.Ay.figure.withConfig({displayName:"VideoModalstyles__VideoContainer",componentId:"sc-3h46r-4"})([" @media ","{position:relative;}"],(0,n.HT)(n.pF.Tablet)),VideoHolder:C,VideoInner:I,VideoWrapper:b.Ay.div.withConfig({displayName:"VideoModalstyles__VideoWrapper",componentId:"sc-3h46r-5"})(["aspect-ratio:16 / 9;"]),Image:b.Ay.img.withConfig({displayName:"VideoModalstyles__Image",componentId:"sc-3h46r-6"})(["width:100%;"])},A=(0,c.r)((({isVisible:e=!1,closeBtnTxt:t,src:i,onClick:a})=>{const n=p.useRef(null);return p.useEffect((()=>{function t(t){e&&n.current&&!n.current.contains(t.target)&&a()}return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}),[e]),i?p.createElement(d.N,null,e&&p.createElement(E.Container,{key:"modal",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}},p.createElement(E.VideoHolder,null,p.createElement(E.VideoInner,null,p.createElement(E.VideoContainer,{ref:n},p.createElement(E.CloseBtn,{type:"button",onClick:()=>a()},p.createElement(s.A,{icon:"cross"}),p.createElement("span",null,t)),p.createElement(E.VideoWrapper,null,p.createElement(m(),{url:i,playing:e,controls:!0,playsinline:!0,width:"100%",height:"100%"}))))))):null}));var k=i(34485),_=i(46753);const T=e=>(0,b.AH)(["display:block;width:100%;height:100%;object-fit:cover;object-position:center;",""],!e&&"position: absolute; top: 0;left: 0;");var M=i(89581),N=i(99457),V=i(96430),z=i(16888);const G=(0,b.Ay)(V.A).withConfig({displayName:"MediaGallerystyles__Container",componentId:"sc-17epfer-0"})(["--bg:",";--fg:",";&[data-theme='white']{--bg:",";--fg:",";}text-align:center;background-color:var(--bg);color:var(--fg);"],h.A.primary.blue.base,h.A.white,h.A.white,h.A.primary.blue.base),F=b.Ay.h2.withConfig({displayName:"MediaGallerystyles__Title",componentId:"sc-17epfer-1"})(["",";color:var(--fg);"],M.h1),S=(0,b.i7)(["0%{left:-150%;}100%{left:150%;}"]),D=b.Ay.div.withConfig({displayName:"MediaGallerystyles__MediaItem",componentId:"sc-17epfer-2"})(["position:relative;overflow:hidden;background-color:rgba(255,255,255,0.1);[data-theme='white'] &{background-color:",";}display:flex;> audio{margin:auto;}&:has(audio){&::before{animation:unset;background:",";left:0;}}&:before{--bgColour:rgba(255,255,255,0.15);content:'';position:absolute;top:0;left:-150%;width:100%;height:100%;background:linear-gradient(to right,transparent 0%,var(--bgColour) 50%,transparent 100%);animation:"," 1.5s infinite;}[data-theme='white'] &{&::before{--bgColour:",";}}"],(0,v.No)(.1,h.A.primary.blue.base),(0,v.No)(.5,h.A.black),S,(0,v.No)(.15,h.A.primary.blue.base)),L=b.Ay.img.withConfig({displayName:"MediaGallerystyles__Image",componentId:"sc-17epfer-3"})(["position:relative;",";"],T(!0)),B=b.Ay.video.withConfig({displayName:"MediaGallerystyles__Video",componentId:"sc-17epfer-4"})(["position:relative;",";"],T(!0)),P=b.Ay.button.withConfig({displayName:"MediaGallerystyles__PlayButton",componentId:"sc-17epfer-5"})(["--size:",";--iconSize:",";",";position:absolute;bottom:12px;right:12px;width:var(--size);height:var(--size);display:flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:100%;background-color:rgba(217,217,217,0.5);backdrop-filter:blur(13px);&:hover,&:focus-visible{background-color:rgba(150,150,150,0.75);}svg{position:relative;width:var(--iconSize);height:var(--iconSize);left:2px;color:",";}"],(0,f.v2)(32,44),(0,f.v2)(10,16),(0,_.kY)("background-color"),h.A.white),R=b.Ay.div.withConfig({displayName:"MediaGallerystyles__CarouselLayout",componentId:"sc-17epfer-6"})(["overflow:hidden;margin-top:24px;"]),j=b.Ay.div.withConfig({displayName:"MediaGallerystyles__CarouselWrapper",componentId:"sc-17epfer-7"})(["--itemPeek:0;--itemGutter:",";--visibleItems:1;margin:0 calc(var(--itemGutter) * -0.5);"],(0,f.v2)(16,24)),W=(0,b.Ay)(N.A).withConfig({displayName:"MediaGallerystyles__Track",componentId:"sc-17epfer-8"})([""]),$=b.Ay.li.withConfig({displayName:"MediaGallerystyles__Item",componentId:"sc-17epfer-9"})(["display:grid;gap:",";padding:0 calc(var(--itemGutter) / 2);min-width:100%;overflow:hidden;"],(0,f.v2)(8,24)),H=b.Ay.div.withConfig({displayName:"MediaGallerystyles__Pagination",componentId:"sc-17epfer-10"})(["display:flex;align-items:center;justify-content:center;margin-top:38px;","{margin-top:",";}"],z.L.Container,(0,f.v2)(20,32,n.pF.Mobile,n.pF.TabletLarge)),O={CarouselLayout:R,CarouselWrapper:j,Container:G,DesktopLayout:b.Ay.div.withConfig({displayName:"MediaGallerystyles__DesktopLayout",componentId:"sc-17epfer-11"})(["display:contents;","{grid-template-columns:repeat(16,1fr);flex:0 0 calc(100% / var(--visibleItems) - (var(--itemPeek,0px) / var(--visibleItems)));&:first-child,&:nth-child(4n + 1){> ","{grid-column:span 4;aspect-ratio:342 / 287;&:first-child{grid-column:span 8;grid-row:span 2;}}}&:nth-child(4n + 2){> ","{grid-column:span 4;}}&:nth-child(4n + 3){grid-template-rows:repeat(3,1fr);> ","{&:first-child{grid-area:1 / 1 / 3 / 7;}&:nth-child(2){grid-area:1 / 7 / 2 / 13;}&:nth-child(3){grid-area:1 / 13 / 2 / 17;}&:nth-child(4){grid-area:3 / 1 / 4 / 7;}&:nth-child(5){grid-area:2 / 7 / 4 / 13;}&:nth-child(6){grid-area:2 / 13 / 3 / 17;}&:nth-child(7){grid-area:3 / 13 / 4 / 17;}}}&:nth-child(4n){> ","{grid-template-rows:repeat(3,1fr);&:nth-child(-n + 4){grid-row:1 / 2;grid-column:span 4;}&:nth-child(5),&:nth-child(6){grid-column:span 8;grid-row:span 3;}}}","{@media ","{grid-column:span 8 !important;grid-row:span 1 !important;}}}@media ","{display:none;}"],$,D,D,D,D,D,(0,n.TG)(n.pF.TabletMedium),(0,n.TG)(n.pF.TabletMedium)),Image:L,Item:$,MediaItem:D,MobileLayout:b.Ay.div.withConfig({displayName:"MediaGallerystyles__MobileLayout",componentId:"sc-17epfer-12"})(["display:contents;","{grid-template-columns:repeat(2,1fr);grid-template-rows:min-content;","{height:",";}&:first-child{","{height:auto;&:first-child{grid-column:span 2;}}}&:last-child{","{&:first-child,&:nth-child(odd){&:last-child{grid-column:span 2;}}}}}@media ","{display:none;}"],$,D,(0,f.v2)(120,360),D,D,(0,n.HT)(n.pF.TabletMedium)),Pagination:H,PlayButton:P,Title:F,Track:W,Video:B},Y=(0,o.R)((e=>
1{var t,i,o,c,d;const[u,m]=(0,p.useState)([]),[h,f]=(0,p.useState)([]),[g,y]=p.useState(!1),[v,b]=p.useState("");return(0,p.useMemo)((()=>{const t=function(e){const t=[9,12,7,6],i=[];let a=0,n=0;for(;a<e.length;){const o=t[n],r=e.slice(a,a+o);i.push(r),a+=o,n=(n+1)%t.length}return i}(e.mediaItems);m(t);const i=function(e){const t=[3,6],i=[];let a=0,n=0;for(;a<e.length;){n=a<3?0:1;const o=t[n],r=e.slice(a,a+o);i.push(r),a+=o}return i}(e.mediaItems);f(i)}),[e.mediaItems]),p.createElement(O.Container,{wave:"wave-3",hideWave:e.hideWave,tabName:e.tabName,"data-theme":e.theme||"blue"},e.title&&p.createElement(O.Title,null,e.title),e.mediaItems&&p.createElement(p.Fragment,null,p.createElement(O.DesktopLayout,null,p.createElement(r.A,{count:u.length,paddingOffset:0,previousText:null===(t=e.translations)||void 0===t?void 0:t["custom.afme.previous"],nextText:null===(i=e.translations)||void 0===i?void 0:i["custom.afme.next"]},p.createElement(k.x,{transition:{duration:.5,ease:"easeInOut"}},p.createElement(O.CarouselLayout,null,p.createElement(O.CarouselWrapper,null,p.createElement(O.Track,{trackMutations:!0},e.mediaItems&&u&&u.map(((e,t)=>p.createElement(O.Item,{key:`carousel-slide-${t}`},e.map(((e,i)=>p.createElement(O.MediaItem,{key:`slide-item-${t}__media-item-${i}`},x(e))))))))),p.createElement(O.Pagination,null,p.createElement(l.A,null)))))),p.createElement(O.MobileLayout,null,p.createElement(r.A,{count:h.length,paddingOffset:0,previousText:null===(o=e.translations)||void 0===o?void 0:o["custom.afme.previous"],nextText:null===(c=e.translations)||void 0===c?void 0:c["custom.afme.next"]},p.createElement(k.x,{transition:{duration:.5,ease:"easeInOut"}},p.createElement(O.CarouselLayout,null,p.createElement(O.CarouselWrapper,null,p.createElement(O.Track,{trackMutations:!0},e.mediaItems&&h&&h.map(((e,t)=>p.createElement(O.Item,{key:`carousel-slide-${t}`},e.map(((e,i)=>p.createElement(O.MediaItem,{key:`slide-item-${t}__media-item-${i}`},x(e))))))))),p.createElement(O.Pagination,null,p.createElement(l.A,null))))))),p.createElement(A,{isVisible:g,closeBtnTxt:null!==(d=e.translations&&e.translations["custom.afme.close-btn"])&&void 0!==d?d:"Close",src:v,onClick:()=>{y(!g)}}));function x(t){var i,o,r,l,c;switch(t.mediaType){case"image":return p.createElement(O.Image,{...(0,a.Yz)(t,710,360,10,710/504),sizes:`${(0,n.TG)(n.pF.Tablet)} 50vw, 710px`,alt:null!==(i=t.altText)&&void 0!==i?i:"",width:t.width,height:t.height,loading:"lazy",draggable:!1});case"audio":return p.createElement(p.Fragment,null,p.createElement("audio",{src:t.src,controls:!0}));case"video":return p.createElement(p.Fragment,null,null!==(o=t.poster)&&void 0!==o&&o.src?p.createElement(O.Image,{...(0,a.Yz)(t,710,360,10,710/504),sizes:`${(0,n.TG)(n.pF.Tablet)} 50vw, 710px`,alt:null!==(r=null===(l=t.poster)||void 0===l?void 0:l.altText)&&void 0!==r?r:"",width:t.width,height:t.height,loading:"lazy",draggable:!1}):p.createElement(O.Video,{src:t.src,playsInline:!0,preload:"metadata",width:"665",height:"506"}),p.createElement(O.PlayButton,{type:"button",onClick:()=>{y(!0),b(t.src)},"aria-label":null===(c=e.translations)||void 0===c?void 0:c["custom.afme.play"]},p.createElement(s.A,{icon:"play"})))}}}))}}]); 2//# sourceMappingURL=5322-e4804d1fba5b86ed83dc.js.map
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.