{"version":3,"file":"shared.CPVJXWI1.mjs","names":["useRef","useState","useCallback","useRef","useState","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","ce","init_jsx_runtime","ne","p","_e","de","useLocaleInfo","RenderTarget","addPropertyControls","ControlType","init_framer_BEr93sCn","DotPatternOverlay","props","wrapperRef","dims","setDims","measured","setMeasured","isCanvas","forceOverflowVisible","el","node","i","style","findSection","reposition","sectionEl","sectionRect","elRect","t1","t2","t3","t4","observer","overflowTimer","dotColor","dotSize","dotSpacing","dotOpacity","init_DotPatternOverlay","HighlightReveal","localeInfo","slug","code","activeText","textDK","text","ref","isVisible","setIsVisible","triggerOnScroll","entry","animDur","animationDuration","revealedTextColor","textColor","highlightColor","init_HighlightReveal"],"sources":["https:/framerusercontent.com/modules/FLVhzusHDM6cLa6kwMzM/bnqiTCEpRpS4tzQNdnfO/DotPatternOverlay.js","https:/framerusercontent.com/modules/UwgTOABascW24bvlrnnE/4BsD4j3tX3AG1TXt0dZN/HighlightReveal.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useCallback}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function DotPatternOverlay(props){const{dotColor=\"rgb(225, 224, 218)\",dotSize=1.2,dotSpacing=14,dotOpacity=.85,style}=props;const wrapperRef=useRef(null);const[dims,setDims]=useState({x:0,y:0,w:0,h:0});// False until the section has been measured. While false the dot layer is\n// not painted, so it can never register as a layout shift.\nconst[measured,setMeasured]=useState(false);// Editor canvas: stay completely inert so we never mutate Framer's own\n// wrapper DOM (which pushes the selection outline behind page content).\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;const forceOverflowVisible=useCallback(()=>{const el=wrapperRef.current;if(!el)return;let node=el.parentElement;for(let i=0;i<10;i++){if(!node)break;const style=window.getComputedStyle(node);if(style.overflow===\"hidden\"||style.overflow===\"clip\"||style.overflowX===\"hidden\"||style.overflowY===\"hidden\"){// Only force overflow on tiny Framer wrappers (height < 10px),\n// not on section-level containers which need overflow hidden for mobile\nif(node.offsetHeight<10){node.style.overflow=\"visible\";}}// Stop at any container with meaningful height (section-level)\nif(node.offsetHeight>=100){break;}node=node.parentElement;}},[]);const findSection=useCallback(()=>{const el=wrapperRef.current;if(!el)return null;let node=el;while(node&&node.parentElement){node=node.parentElement;if(node.offsetWidth>=300&&node.offsetHeight>=200){return node;}}return null;},[]);const reposition=useCallback(()=>{const el=wrapperRef.current;if(!el)return;forceOverflowVisible();const sectionEl=findSection();if(!sectionEl)return;const sectionRect=sectionEl.getBoundingClientRect();const elRect=el.getBoundingClientRect();setDims({x:sectionRect.left-elRect.left,y:sectionRect.top-elRect.top,w:sectionRect.width,h:sectionRect.height});setMeasured(true);},[findSection,forceOverflowVisible]);useEffect(()=>{if(typeof window===\"undefined\")return;// Do nothing on the editor canvas.\nif(RenderTarget.current()===RenderTarget.canvas)return;// Measure straight away so the dots appear on the next frame.\nreposition();const t1=setTimeout(reposition,100);const t2=setTimeout(reposition,300);const t3=setTimeout(reposition,800);const t4=setTimeout(reposition,2e3);let observer=null;try{observer=new ResizeObserver(()=>reposition());if(wrapperRef.current?.parentElement){observer.observe(wrapperRef.current.parentElement);}}catch(e){// no-op\n}window.addEventListener(\"resize\",reposition);const overflowTimer=window.setInterval(forceOverflowVisible,3e3);return()=>{clearTimeout(t1);clearTimeout(t2);clearTimeout(t3);clearTimeout(t4);observer?.disconnect();window.removeEventListener(\"resize\",reposition);clearInterval(overflowTimer);};},[reposition,forceOverflowVisible]);// Editor canvas: render an inert, zero-size, non-painting placeholder.\n// No dot layer is drawn here so nothing can overlap the selection outline.\nif(isCanvas){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"visible\",pointerEvents:\"none\",...style}});}return /*#__PURE__*/_jsx(\"div\",{ref:wrapperRef,style:{position:\"relative\",width:0,height:0,overflow:\"visible\",pointerEvents:\"none\",...style},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:dims.x,top:dims.y,width:dims.w||\"100vw\",height:dims.h||\"100vh\",// Not painted until measured => never a layout-shift source.\nvisibility:measured?\"visible\":\"hidden\",backgroundImage:`radial-gradient(circle, ${dotColor} ${dotSize}px, transparent ${dotSize}px)`,backgroundSize:`${dotSpacing}px ${dotSpacing}px`,backgroundPosition:`${dotSpacing/2}px ${dotSpacing/2}px`,opacity:dotOpacity,pointerEvents:\"none\",zIndex:0}})});}addPropertyControls(DotPatternOverlay,{dotColor:{title:\"Dot Color\",type:ControlType.Color,defaultValue:\"rgb(225, 224, 218)\"},dotSize:{title:\"Dot Size\",type:ControlType.Number,defaultValue:1.2,min:.5,max:5,step:.1},dotSpacing:{title:\"Dot Spacing\",type:ControlType.Number,defaultValue:14,min:8,max:60,step:1},dotOpacity:{title:\"Opacity\",type:ControlType.Number,defaultValue:.85,min:0,max:1,step:.05}});export default DotPatternOverlay;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DotPatternOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DotPatternOverlay.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";function HighlightReveal(props){const{text=\"SENTIMENT OVERVIEW\",textDK=\"\",highlightColor=\"rgb(94, 67, 217)\",textColor=\"rgb(2, 10, 15)\",revealedTextColor=\"rgb(255, 255, 255)\",fontSize=14,fontWeight=600,lineHeight=1.2,textAlign=\"center\",animationDuration=.6,triggerOnScroll=true,style}=props;// Reactive locale detection via Framer's official hook.\nconst localeInfo=useLocaleInfo();const slug=(localeInfo?.activeLocale?.slug||\"\").toLowerCase();const code=(localeInfo?.activeLocale?.code||\"\").toLowerCase();const isDK=slug===\"da\"||slug===\"dk\"||slug===\"da-dk\"||code===\"da\"||code===\"da-dk\"||typeof window!==\"undefined\"&&(window.location.pathname.startsWith(\"/dk/\")||window.location.pathname===\"/dk\");const activeText=isDK&&textDK?textDK:text;const ref=useRef(null);const[isVisible,setIsVisible]=useState(!triggerOnScroll);useEffect(()=>{if(!triggerOnScroll){setIsVisible(true);return;}const el=ref.current;if(!el)return;const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setIsVisible(true);observer.disconnect();}},{threshold:.3});observer.observe(el);return()=>observer.disconnect();},[triggerOnScroll]);const animDur=`${animationDuration}s`;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{display:\"inline-block\",position:\"relative\",overflow:\"hidden\",fontFamily:\"'Inter', sans-serif\",fontSize,fontWeight,lineHeight,textAlign,letterSpacing:\"0.05em\",color:isVisible?revealedTextColor:textColor,transition:`color ${animDur} ease`,transitionDelay:`${animationDuration*.4}s`,padding:\"4px 12px\",borderRadius:\"4px\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:highlightColor,transform:isVisible?\"scaleX(1)\":\"scaleX(0)\",transformOrigin:\"left\",transition:`transform ${animDur} cubic-bezier(0.65, 0.05, 0, 1)`,borderRadius:\"4px\",zIndex:0}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1,whiteSpace:\"nowrap\"},children:activeText})]});}addPropertyControls(HighlightReveal,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"SENTIMENT OVERVIEW\"},textDK:{title:\"Text\",type:ControlType.String,defaultValue:\"\",description:\"Danish (DK) version. Leave empty to use EN.\"},highlightColor:{title:\"Highlight Color\",type:ControlType.Color,defaultValue:\"rgb(94, 67, 217)\"},textColor:{title:\"Initial Text Color\",type:ControlType.Color,defaultValue:\"rgb(2, 10, 15)\"},revealedTextColor:{title:\"Revealed Text Color\",type:ControlType.Color,defaultValue:\"rgb(255, 255, 255)\"},fontSize:{title:\"Font Size\",type:ControlType.Number,defaultValue:14,min:10,max:48,step:1},fontWeight:{title:\"Font Weight\",type:ControlType.Number,defaultValue:600,min:100,max:900,step:100},lineHeight:{title:\"Line Height\",type:ControlType.Number,defaultValue:1.2,min:.8,max:2,step:.05},textAlign:{title:\"Text Align\",type:ControlType.Enum,defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],displaySegmentedControl:true},animationDuration:{title:\"Duration\",type:ControlType.Number,defaultValue:.6,min:.2,max:2,step:.1,unit:\"s\"},triggerOnScroll:{title:\"Scroll Trigger\",type:ControlType.Boolean,defaultValue:true}});export default HighlightReveal;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HighlightReveal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightReveal.map"],"mappings":"A,gOAAqK,SAASoB,EAAkB,EAAM,CAAC,GAAK,CAAC,WAAS,qBAAqB,UAAQ,IAAI,aAAW,GAAG,aAAW,IAAI,SAAOC,EAAYC,EAAWtB,EAAO,IAAI,EAAO,CAACuB,EAAKC,GAASvB,EAAS,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAExW,CAACwB,EAASC,GAAazB,EAAS,EAAK,EAEpC0B,EAASX,EAAa,QAAQ,IAAIA,EAAa,OAAaY,EAAqB1B,MAAgB,CAAC,IAAM2B,EAAGP,EAAW,QAAQ,GAAG,CAACO,EAAG,OAAO,IAAIC,EAAKD,EAAG,cAAc,IAAI,IAAIE,EAAE,EAAEA,EAAE,IAAYD,EAAT,IAAI,CAAgB,IAAME,EAAMxB,EAAO,iBAAiBsB,CAAI,EAGzP,IAH8PE,EAAM,WAAW,UAAUA,EAAM,WAAW,QAAQA,EAAM,YAAY,UAAUA,EAAM,YAAY,WAE7VF,EAAK,aAAa,KAAI,EAAK,MAAM,SAAS,WAC1CA,EAAK,cAAc,IAAK,MAAO,EAAKA,EAAK,aAAc,CAAC,EAAE,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