{"version":3,"file":"shared.BTSpFNuD.mjs","names":["useRef","useState","useCallback","useEffect","_jsx","useRef","useState","useEffect","_jsxs","_jsx","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","ce","init_jsx_runtime","ne","p","_e","de","addPropertyControls","RenderTarget","ControlType","useLocaleInfo","init_framer_ChujFWHC","DotPatternOverlay","props","dotColor","dotSize","dotSpacing","dotOpacity","style","wrapperRef","dims","setDims","measured","setMeasured","isCanvas","forceOverflowVisible","el","node","i","findSection","reposition","sectionEl","sectionRect","elRect","t1","t2","t3","t4","observer","overflowTimer","c","init_DotPatternOverlay","HighlightReveal","text","textDK","highlightColor","textColor","revealedTextColor","fontSize","fontWeight","lineHeight","textAlign","animationDuration","triggerOnScroll","localeInfo","slug","code","activeText","ref","isVisible","setIsVisible","entry","animDur","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,SAASyB,EAAkBC,EAAM,CAAC,GAAK,CAACC,WAAS,qBAAqBC,UAAQ,IAAIC,aAAW,GAAGC,aAAW,IAAIC,SAAOL,EAAYM,EAAWhC,EAAO,IAAI,EAAO,CAACiC,EAAKC,GAASjC,EAAS,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAExW,CAACkC,EAASC,GAAanC,EAAS,EAAK,EAEpCoC,EAAShB,EAAa,QAAQ,IAAIA,EAAa,OAAaiB,EAAqBpC,MAAgB,CAAC,IAAMqC,EAAGP,EAAW,QAAQ,GAAG,CAACO,EAAG,OAAO,IAAIC,EAAKD,EAAG,cAAc,IAAI,IAAIE,EAAE,EAAEA,EAAE,IAAYD,EAATC,IAAI,CAAgB,IAAMV,EAAMlB,EAAO,iBAAiB2B,CAAI,EAGzP,IAH8PT,EAAM,WAAW,UAAUA,EAAM,WAAW,QAAQA,EAAM,YAAY,UAAUA,EAAM,YAAY,WAE7VS,EAAK,aAAa,KAAIA,EAAK,MAAM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