"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[4949],{23273:(e,t,o)=>{o.d(t,{fh:()=>l});const i=e=>null!=e&&String(e)?String(e).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ø/g,"o").replace(/['']/g,"").replace(/[’‘]/g," ").replace(/[&+=/]/g," ").replace(/\s+/g," ").trim():"",a=e=>e.split(/\s+/).filter(e=>e.length>0),l=(e,t)=>{if(!t||!e.label)return!0;const o=i(t.trim()),l=i(e.label);if(!o)return!0;const r=l.split(/[.,;:!?\-_\s&+=/'']+/).filter(Boolean),n=a(o);if(l.startsWith(o))return!0;if(r.some(e=>e.startsWith(o)))return!0;if(n.length>1)for(let e=0;e<=r.length-n.length;e++){const t=r.slice(e,e+n.length);if(n.every((e,o)=>t[o]&&t[o].startsWith(e)))return!0}if(1===n.length&&r.length>1){const e=n[0];if(((e,t)=>t.map(e=>e.charAt(0)).join("").startsWith(e))(e,r))return!0;if(((e,t)=>t.join("").startsWith(e))(e,r))return!0}return!1}},55058:(e,t,o)=>{o.d(t,{LR:()=>s,VS:()=>a,Vh:()=>i,hg:()=>l,l9:()=>r,th:()=>n});const i={sm:0,md:320,lg:768,xl:1024,xxl:1280,xxxl:1600},a={sm:i.md-1,md:i.lg-1,lg:i.xl-1,xl:i.xxl-1,xxl:i.xxxl-1},l=["sm","md","lg","xl","xxl","xxxl"],r=[...l].reverse(),n={small:"sm",medium:"md",large:"lg",xLarge:"xl",xxLarge:"xxl",xxxLarge:"xxxl"},s=[...l]},62389:(e,t,o)=>{o.d(t,{AD:()=>$,BK:()=>x,H6:()=>u,IJ:()=>f,TW:()=>b,aN:()=>y,dZ:()=>p,gs:()=>w,jK:()=>k,vV:()=>v,w6:()=>m});var i=o(38267),a=o(96472),l=o(62282),r=o(76955),n=o(26865),s=o(7228),c=o(18117),h=o(88456),d=o(50531),g=o(8070);const m=i.Ay.div.withConfig({displayName:"PhotoBookmarkWrapper"})` ${d.ny} { line-height: 0; .icon-bookmark-outline path { ${({isInverted:e})=>e?(0,n._o)("stroke","colors.interactive.base.white"):(0,n._o)("stroke","colors.interactive.base.black")} } .icon-bookmark-fill path { ${({isInverted:e})=>e?(0,n._o)("stroke","colors.interactive.base.white"):(0,n._o)("stroke","colors.interactive.base.black")} ${({isInverted:e})=>e?(0,n._o)("fill","colors.interactive.base.white"):(0,n._o)("fill","colors.interactive.base.black")} } } `,u=(0,i.Ay)(h.A.Utility).withConfig({displayName:"PhotoBookmarkButton"})` cursor: pointer; `,b=(0,i.Ay)(l.A).withConfig({displayName:"PhotoBookmarkMessageBannerWrapper"})` position: fixed; bottom: ${(0,n.Kq)(2.5)}; left: 50%; transform: translateX(-50%); z-index: ${(0,n.fl)("hyperstitialLayer")}; border: 1px solid; padding: ${(0,n.Kq)(1)} ${(0,n.Kq)(2)} ${(0,n.Kq)(1)} ${(0,n.Kq)(1)}; ${({theme:e})=>(0,n.iq)(e)?(0,n._o)("border-color","colors.interactive.base.border"):(0,n._o)("border-color","colors.interactive.base.light")}; ${({theme:e})=>(0,n.iq)(e)&&(0,n._o)("background","colors.interactive.base.black")}; width: calc(100vw - ${(0,n.Kq)(4)}); height: ${(0,n.Kq)(7)}; @media (min-width: ${a.LO.md}) { right: ${(0,n.Kq)(6)}; bottom: ${(0,n.Kq)(6)}; left: unset; transform: unset; width: ${(0,n.Kq)(45)}; } ${g.px} { display: flex; flex-direction: column; justify-content: center; height: 100%; } ${g.O$} { align-self: center; margin: 0 0 0 ${(0,n.Kq)(1)}; ${d.a2} g { ${(0,n._o)("stroke","colors.interactive.base.deemphasized")}; } } `,p=i.Ay.div.withConfig({displayName:"SaveBookmarkAlertContent"})` display: flex; align-items: center; width: 100%; height: 100%; overflow: hidden; ${c.B}, ${s.Em}, ${s.BF} { flex-shrink: 0; margin-right: ${(0,n.Kq)(1)}; height: 100%; aspect-ratio: 2/3; object-fit: cover; } `,f=(0,i.Ay)(r.vm).withConfig({displayName:"SaveBookmarkAlertLabel"})` flex: 2; margin-right: ${(0,n.Kq)(.5)}; margin-left: ${(0,n.Kq)(.5)}; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; ${({theme:e})=>(0,n.iq)(e)&&(0,n._o)("color","colors.interactive.base.white")}; ${(0,n.Gg)("typography.definitions.utility.assistive-text")}; `,y=(0,i.Ay)(r.sH).withConfig({displayName:"SaveBookmarkAlertLink"})` /* This should be possible using baseLink's props colorStaticLinkToken, hasUnderline/linkStyle but due to the way styles are added in MessageBannerContent they are being overridden */ &&:link, &&:visited, &&&:hover, &&&:focus { text-decoration: none; ${({theme:e})=>(0,n.iq)(e)&&(0,n._o)("color","colors.interactive.base.white")}; } ${(0,n.Gg)("typography.definitions.foundation.link-primary")}; `,v=i.Ay.div.withConfig({displayName:"PhotoMessageBannerContent"})` display: flex; align-items: center; `,x=i.Ay.div.withConfig({displayName:"PhotoMessageBannerIcon"})` margin-right: ${(0,n.Kq)(1)}; min-width: ${(0,n.Kq)(4)}; path { ${({theme:e})=>(0,n.iq)(e)?(0,n._o)("stroke","colors.interactive.base.white"):(0,n._o)("stroke","colors.interactive.base.black")}; } `,k=(0,i.Ay)(r.vm).withConfig({displayName:"PhotoBookmarkMessageBannerMessage"})` ${({theme:e})=>(0,n.iq)(e)?(0,n._o)("color","colors.interactive.base.white"):(0,n._o)("color","colors.interactive.base.black")}; ${(0,n.Gg)("typography.definitions.utility.assistive-text")}; `,w=(0,i.Ay)(h.A.Utility).withConfig({displayName:"SaveBookmarkAlertButton"})` &, &:hover { border: none; background-color: transparent; padding: 0; min-width: unset; ${({theme:e})=>(0,n.iq)(e)?(0,n._o)("color","colors.interactive.base.white"):(0,n._o)("color","colors.interactive.base.black")}; ${(0,n.Gg)("typography.definitions.foundation.link-primary")}; } `,$=i.Ay.div.withConfig({displayName:"DrawerMessageBannerWrapper"})` && { ${d.Lj} { display: block; } ${d.eM} { width: auto; &:hover { border-radius: inherit; ${({theme:e})=>(0,n._o)(e,"background","colors.interactive.base.black")}; } } } `},68898:(e,t,o)=>{o.d(t,{A:()=>E});var i=o(5556),a=o.n(i),l=o(96540),r=o(20312),n=o.n(r),s=o(32485),c=o.n(s),h=o(78659),d=o.n(h),g=o(24713),m=o.n(g),u=o(42426),b=o.n(u),p=o(6442),f=o(65780),y=o(82185),v=o(20104),x=o(76399),k=o(53499),w=o(14307),$=o(88258),A=o(76997),S=o(49235);let C;const B=({children:e,hasDisabledCloseOnClickForLightbox:t=!1,hasPhotoBookmark:o=!0,hasSlideShow:i,onExpand:a,shouldHoldImageSpace:r=!1,showEnlargeIcon:s=!1,slides:h,slideShowVariation:g,theme:u="standard",variationName:B="Default"})=>{const E="GalleryEmbed"===B,q="listicle"===g,_=()=>{(0,w.kg)({type:"close",subject:"lightbox_gallery_slide"},null,{skipDuplicateEvent:!1})},[L,N]=(0,l.useState)(-1),[I,K]=(0,l.useState)(""),[T,M]=(0,l.useState)(!0),{formatMessage:P}=(0,p.A)(),D=e=>i&&N(d()(L+e,0,h.length-1)),O=L>-1,G=e=>{var t;"swipeClose"!==e&&("IMG"===(t=e.target).tagName||"SPAN"===t.tagName)||N(void 0),M(!0),_()},R={transform:`translate(${"listicle"===g?"0":-100*L/h.length}%)`};(0,l.useEffect)(()=>{window.Kendra.TRACK_COMPONENT.broadcast(k.G.RENDER,{name:"LightBox",variation:B})}),(0,l.useEffect)(()=>{O&&!q&&setTimeout(()=>{(e=>{const t=e?.querySelectorAll("a");t?.forEach(e=>{e.setAttribute("tabindex","-1")})})(C)},50)},[O,q]);const W=(e,o)=>t?{}:o.reduce((t,o)=>({...t,[o]:t=>G(e||t)}),{});return l.createElement(S.A,{palette:u},l.createElement($.Zv,null,l.createElement(y.A.Provider,{value:{expandHandler:e=>{const t=m()(h,{id:e});N(t),K(e),a?.()},isInSlides:e=>b()(h,{id:e}),showEnlargeIcon:s}},e),l.createElement(n(),{className:c()("lightbox "+(g?`${g}-variation`:"")),overlayClassName:{base:c()("lightbox__overlay"),afterOpen:"lightbox__overlay--open",beforeClose:"lightbox__overlay--closing"},bodyOpenClassName:"body__lightbox--open",isOpen:O,onAfterOpen:()=>{if(M(!1),E&&I){const e=`lightbox-gallery-${I}`,t=document.getElementById(e);t&&t.scrollIntoView()}},onRequestClose:()=>{N(void 0),M(!0),_()},contentRef:e=>{e&&(C=e)},closeTimeoutMS:200,contentLabel:P(f.A.contentLabel)},l.createElement($.bB,{ButtonIcon:x.A,isGalleryEmbedVariation:E,isIconButton:!0,dataAttrs:{"data-action":"close"},label:P(f.A.closeButtonIconLabel),onClickHandler:G,role:"button",ariaLabel:P(f.A.closeButtonIconLabel)}),E&&l.createElement($.Zk,{isListicleLayout:q,tabIndex:q?"0":"-1"},l.createElement(A.A,{controlsIcon:"Arrow",gallerySlideVariation:"ItemLeft",hasPhotoBookmark:o,indexToStartOn:L,isListicleLayout:q,isInLightbox:!0,shouldHoldImageSpace:r,showGalleryEmbedCaption:!1,showZoomedImage:!0,slides:h,isModal:!0,isModalClosed:T})),!E&&l.createElement($.Uq,{...W("swipeClose",["onSwipeDown","onSwipeUp"]),onSwipeRight:()=>D(-1),onSwipeLeft:()=>D(1),shouldPreventDefaultEvent:!0},l.createElement($.v$,{className:g?`${g}-variation-slide-wrapper`:"",style:R,...W("",["onMouseDown","onTouchEnd"])},h.map(e=>l.createElement(v.A,{altText:e.image?.altText||"an image in a lightbox",...e,className:g?`${g}-variation-slide`:"",key:e.id})))),l.createElement($.dG,null))))};B.propTypes={children:a().node.isRequired,hasDisabledCloseOnClickForLightbox:a().bool,hasPhotoBookmark:a().bool,hasSlideShow:a().bool,onExpand:a().func,shouldHoldImageSpace:a().bool,showEnlargeIcon:a().bool,slides:a().array.isRequired,slideShowVariation:a().string,theme:a().string,variationName:a().oneOf(["GalleryEmbed","Default"])};const E=({Component:e,...t})=>o=>l.createElement(B,{...t},l.createElement(e,{...o}))},70713:(e,t,o)=>{o.d(t,{B$:()=>n,Lu:()=>s,S9:()=>c,iT:()=>g,rI:()=>d});var i=o(30271);let a;const l=e=>e?.current?.querySelector("ul"),r=(e,t)=>{const o=e.getBoundingClientRect(),i=t.getBoundingClientRect();return o.lefti.right},n=e=>{const t=l(e),o=t?.querySelectorAll("li");let i;for(i=0;i{const t=l(e);return t&&!(0,i.vY)(t)},c=e=>()=>{clearTimeout(a),a=setTimeout(()=>e(),100)},h=(e,t,o,i)=>{const a=l(t);let n=e;o<0&&(n+=i);const s=a?.querySelector(`li:nth-child(${n})`);if(r(a,s)){return h(e+o,t,o)}return e},d=(e,t,o)=>{let i=e-t;return i=h(i,o,-1,t),i+1<1?1:i+1},g=(e,t,o)=>{let i=e+t;const a=l(o).querySelectorAll("li");return i=i>a?.length?a?.length:i,h(i,o,1)}}}]);