(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,854453,e=>{var t=e.i(843476),r=e.i(522016),l=e.i(271645),i=e.i(117213);e.s(["CtaLink",0,function({describedBy:e,children:o,...a}){let s=(0,l.useRef)(null);return(0,i.f)(s,e),(0,t.jsx)(r.default,{ref:s,"aria-describedby":e,...a,children:o})}])},87791,e=>{var t=e.i(843476),r=e.i(271645),l=e.i(975157);e.s(["ScrollRegion",0,function({as:e,label:i,labelledBy:o,className:a,children:s,...u}){let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let t={label:i,labelledBy:o},r=()=>{var r;return r=e.scrollWidth>e.clientWidth+1||e.scrollHeight>e.clientHeight+1,void(e.setAttribute("data-measured","true"),r?(e.setAttribute("tabindex","0"),e.setAttribute("role","region"),e.setAttribute("data-scrolls","true"),t.labelledBy?(e.setAttribute("aria-labelledby",t.labelledBy),e.removeAttribute("aria-label")):t.label&&(e.setAttribute("aria-label",t.label),e.removeAttribute("aria-labelledby"))):(e.removeAttribute("tabindex"),e.removeAttribute("role"),e.removeAttribute("data-scrolls"),e.removeAttribute("aria-label"),e.removeAttribute("aria-labelledby")))};if(r(),"u"l.disconnect()},[i,o]),(0,t.jsx)(e??"div",{ref:n,"data-slot":"scroll-region",className:(0,l.f)("overflow-x-auto",a),...u,children:s})}])},429592,e=>{var t=e.i(843476),r=e.i(271645);e.s(["ConsentEmbed",0,function({url:e}){let l,[i,o]=(0,r.useState)(!1),a=(l=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/),l?.[1]??null);return a?i?(0,t.jsx)("div",{className:"my-8 aspect-video w-full overflow-hidden rounded-lg",children:(0,t.jsx)("iframe",{src:`https://www.youtube-nocookie.com/embed/${a}`,title:"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"h-full w-full"})}):(0,t.jsxs)("div",{className:"my-8 flex flex-col items-center justify-center rounded-lg border border-cbt-100 bg-cbt-50 p-8",children:[(0,t.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"This content is hosted by YouTube. Loading it may share data with Google."}),(0,t.jsx)("button",{onClick:()=>o(!0),className:"btn-gradient rounded-full px-6 py-2 text-sm font-semibold text-white",children:"Load embedded video"})]}):(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-cbt-600 underline hover:text-cbt-800",children:"Watch video"})}])}])})();