1import{j as u,c as K,P as W}from"./typography-CGJEf-yY.js";import{u as Q}from"./iframe-CebTdxVm.js";import{A as Y}from"./button-BTUydwho.js";import{o as X}from"./misc-CD-Wm0_w.js";import{C as Z}from"./container-BotjKQzr.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"c347d410ac36f54334105e4f6267ba208f688052"}}catch{}})();try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new s.Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="6716e6f5-4471-4987-b237-263e02044ab6",s._sentryDebugIdIdentifier="sentry-dbid-6716e6f5-4471-4987-b237-263e02044ab6")})()}catch{}const ee={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function ne(s,o){const n=s.scrollSnapList();return typeof o=="number"?n.map(()=>o):o(n,s)}function te(s,o){const n=s.rootNode();return o&&o(n)||n}function V(s={}){let o,n,m,t,f=null,S=0,g=!1,h=!1,E=!1,w=!1;function j(e,i){n=e;const{mergeOptions:r,optionsAtMedia:c}=i,l=r(ee,V.globalOptions),p=r(l,s);if(o=c(p),n.scrollSnapList().length<=1)return;w=o.jump,m=!1,t=ne(n,o.delay);const{eventStore:a,ownerDocument:d}=n.internalEngine(),y=!!n.internalEngine().options.watchDrag,O=te(n,o.rootNode);a.add(d,"visibilitychange",I),y&&n.on("pointerDown",T),y&&!o.stopOnInteraction&&n.on("pointerUp",F),o.stopOnMouseEnter&&a.add(O,"mouseenter",k),o.stopOnMouseEnter&&!o.stopOnInteraction&&a.add(O,"mouseleave",P),o.stopOnFocusIn&&n.on("slideFocusStart",b),o.stopOnFocusIn&&!o.stopOnInteraction&&a.add(n.containerNode(),"focusout",x),o.playOnInit&&x()}function D(){n.off("pointerDown",T).off("pointerUp",F).off("slideFocusStart",b),b(),m=!0,g=!1}function B(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(S),S=e.setTimeout(U,t[n.selectedScrollSnap()]),f=new Date().getTime(),n.emit("autoplay:timerset")}function M(){const{ownerWindow:e}=n.internalEngine();e.clearTimeout(S),S=0,f=null,n.emit("autoplay:timerstopped")}function x(){if(!m){if(N()){E=!0;return}g||n.emit("autoplay:play"),B(),g=!0}}function b(){m||(g&&n.emit("autoplay:stop"),M(),g=!1)}function I(){if(N())return E=g,b();E&&x()}function N(){const{ownerDocument:e}=n.internalEngine();return e.visibilityState==="hidden"}function T(){h||b()}function F(){h||x()}function k(){h=!0,b()}function P(){h=!1,x()}function L(e){typeof e<"u"&&(w=e),x()}function R(){g&&b()}function A(){g&&x()}function C(){return g}function U(){const{index:e}=n.internalEngine(),i=e.clone().add(1).get(),r=n.scrollSnapList().length-1,c=o.stopOnLastSnap&&i===r;if(n.canScrollNext()?n.scrollNext(w):n.scrollTo(0,w),n.emit("autoplay:select"),c)return b();x()}function _(){if(!f)return null;const e=t[n.selectedScrollSnap()],i=new Date().getTime()-f;return e-i}return{name:"autoplay",options:s,init:j,destroy:D,play:L,stop:R,reset:A,isPlaying:C,timeUntilNext:_}}V.globalOptions=void 0;function $(s,o,n){return Math.min(Math.max(s,o),n)}function H(s){return typeof s=="number"&&!isNaN(s)}function q(s={}){let t,f=[],S,g=0,h=0,E=0,w=!1,j,D;function B(e){t=e;const i=t.selectedScrollSnap(),{scrollBody:r,containerRect:c,axis:l}=t.internalEngine(),p=l.measureSize(c);S=$(p*.75,200,500),w=!1,f=t.scrollSnapList().map((a,d)=>d===i?1:0),j=r.settled,D=t.scrollProgress,r.settled=U,t.scrollProgress=_,t.on("select",N).on("slideFocus",x).on("pointerDown",I).on("pointerUp",b),F(),x()}function M(){const{scrollBody:e}=t.internalEngine();e.settled=j,t.scrollProgress=D,t.off("select",N).off("slideFocus",x).off("pointerDown",I).off("pointerUp",b),t.slideNodes().forEach(i=>{const r=i.style;r.opacity="",r.transform="",r.pointerEvents="",i.getAttribute("style")||i.removeAttribute("style")})}function x(){const e=t.selectedScrollSnap();P(e,1)}function b(){w=!1}function I(){w=!1,g=0,h=0}function N(){const e=t.internalEngine().scrollBody.duration();h=e?0:1,w=!0,e||x()}function T(e){const{axis:i}=t.internalEngine();return`translate${i.scroll.toUpperCase()}(${i.direction(e)}px)`}function F(){const{translate:e,slideLooper:i}=t.internalEngine();
1e.clear(),e.toggleActive(!1),i.loopPoints.forEach(({translate:r})=>{r.clear(),r.toggleActive(!1)})}function k(e){const{scrollSnaps:i,location:r,target:c}=t.internalEngine();!H(e)||f[e]<.5||(r.set(i[e]),c.set(r))}function P(e,i){t.scrollSnapList().forEach((c,l)=>{const p=Math.abs(i),a=f[l],d=l===e,y=d?a+p:a-p,O=$(y,0,1);f[l]=O;const v=d&&w,z=t.previousScrollSnap();v&&(f[z]=1-O),d&&R(e,O),L(l)})}function L(e){const i=t.internalEngine().slideRegistry[e],{scrollSnaps:r,containerRect:c}=t.internalEngine(),l=f[e];i.forEach(p=>{const a=t.slideNodes()[p].style,d=parseFloat(l.toFixed(2)),y=d>0,O=y?r[e]:c.width+2,v=T(O);y&&(a.transform=v),a.opacity=d.toString(),a.pointerEvents=l>.5?"auto":"none",y||(a.transform=v)})}function R(e,i){const{index:r,dragHandler:c,scrollSnaps:l}=t.internalEngine(),p=c.pointerDown(),a=1/(l.length-1);let d=e,y=p?t.selectedScrollSnap():t.previousScrollSnap();if(p&&d===y){const z=Math.sign(g)*-1;d=y,y=r.clone().set(y).add(z).get()}const O=y*a,v=(d-y)*a;E=O+v*i}function A(){const{dragHandler:e,index:i,scrollBody:r}=t.internalEngine(),c=t.selectedScrollSnap();if(!e.pointerDown())return c;const l=Math.sign(r.velocity()),p=Math.sign(g),a=i.clone().set(c).add(l*-1).get();return!l||!p?null:p===l?a:c}function C(e){const{dragHandler:i,scrollBody:r}=e.internalEngine(),c=i.pointerDown(),l=r.velocity(),p=r.duration(),a=A(),d=!H(a);if(c){if(!l)return;g+=l,h=Math.abs(l/S),k(a)}if(!c){if(!p||d)return;h+=(1-f[a])/p,h*=.68}d||P(a,h)}function U(){const{target:e,location:i}=t.internalEngine(),r=e.get()-i.get(),c=Math.abs(r)>=1,l=A(),p=!H(l);return C(t),p||c?!1:f[l]>.999}function _(){return E}return{name:"fade",options:s,init:B,destroy:M}}q.globalOptions=void 0;function oe(s,o){return s?.slug?.current||`info-banner-${o}`}const G=({tagline:s,children:o,cta:n})=>u.jsx("div",{className:` 2 flex w-full min-w-0 items-center justify-between 3 gap-6 bg-surface-muted px-[21px] py-[14px] 4 `,children:u.jsxs("div",{className:` 5 flex min-w-0 grow flex-wrap items-center 6 justify-start gap-4 gap-x-2 gap-y-2 7 md:justify-center md:gap-4 8 `,children:[u.jsx("p",{className:` 9 font-label-sm! text-primary-green uppercase 10 light:text-accent 11 `,children:s}),u.jsx("span",{className:` 12 font-body-sm break-words 13 md:whitespace-nowrap 14 `,children:o}),n?.title&&n?.url?u.jsx(Y,{to:n?.url,trackingPosition:"top-banner",size:"dense",className:"[&_span]:font-body-sm!",reverse:!0,children:n?.title}):null]})});function se({banners:s}){const[o]=Q({loop:!0,align:"center",slidesToScroll:1,duration:50},[V({delay:5e3,stopOnMouseEnter:!0,stopOnInteraction:!1}),q()]),n=s.map((m,t)=>oe(m,t));return u.jsx("div",{ref:o,className:"w-full min-w-0 overflow-hidden bg-surface-muted",children:u.jsx("div",{className:"flex",children:s.map((m,t)=>{const f=n[t];return u.jsx("div",{className:"min-w-0 shrink-0 grow-0 basis-full",children:u.jsx(G,{tagline:m?.tagline,cta:{title:m?.primaryCTA?.title,url:X(m?.primaryCTA)},children:m?.title},f)},f)})})})}function fe({position:s="top",tagline:o,uppercaseTagline:n=!0,children:m,cta:t,theme:f="light",banners:S}){const g=s==="top";return u.jsx(u.Fragment,{children:g?S&&S.length>0?u.jsx(se,{banners:S}):u.jsx(G,{tagline:o,cta:t,children:m}):u.jsx(Z,{noPadding:!0,hasBorder:!1,className:"px-0!",children:u.jsx("div",{className:K(` 15 flex rounded-lg p-5 transition-colors duration-200 16 lg:px-6 17 `,{"bg-primary":f==="light","bg-grey-100 dark":f==="dark"},f),children:u.jsxs("div",{className:` 18 flex w-full flex-col gap-3 19 lg:flex-row lg:items-center lg:justify-between lg:gap-5 20 `,children:[u.jsxs("div",{className:` 21 flex flex-col gap-2 22 lg:flex-row lg:gap-7 23 `,children:[o?u.jsx(W,{fontWeight:"font-semibold",className:n?"uppercase":"",color:"primary",children:o}):null,u.jsx(W,{color:"secondary",children:m})]}),t?.title&&t?.url?u.jsx(Y,{className:"whitespace-nowrap",to:t.url,trackingPosition:"banner",size:"dense",reverse:!0,children:t.title}):null]})})})})}export{V as A,fe as B,q as F}; 24//# sourceMappingURL=Banner-D1-B3YLE.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.