{"version":3,"file":"ContactCta.ebaf9wLZ.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/VgorjBv30vw5YfzBo7t3/z3NTLyvxOsFqto78UxCK/ContactCta.js"],"sourcesContent":["// Standalone dark \"get in touch\" CTA section for TOPPartner AS fasade page.\n// Warm encouragement + prominent orange CTA + trust badges. Brand #E07400.\n// CTA does an in-page smooth scroll to the element id matching the link hash.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";import{useRef}from\"react\";function scrollToHash(link,e){if(typeof document===\"undefined\"||!link)return;const i=link.indexOf(\"#\");if(i===-1)return;const id=decodeURIComponent(link.slice(i+1));const el=document.getElementById(id);if(el){e.preventDefault();el.scrollIntoView({behavior:\"smooth\",block:\"start\"});}}function Check({color}){return /*#__PURE__*/_jsx(\"svg\",{width:\"17\",height:\"17\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:3,strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{flex:\"0 0 auto\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12l5 5 9-11\"})});}/**\n * Kontakt CTA\n *\n * @framerIntrinsicWidth 390\n * @framerIntrinsicHeight 440\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ContactCta(props){const{eyebrow,heading,body,ctaText,ctaLink,note,trust,accentColor,accentSoft,sectionBackground,panelBackground,headingColor,mutedColor,hairlineColor,borderRadius,style}=props;const isStatic=useIsStaticRenderer();// Always show inside the Framer canvas (the inView reveal never triggers on\n// the off-screen phone/minst breakpoint frames, which left it invisible).\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const inView=useInView(ref,{once:true,amount:.2});const show=isStatic||isCanvas||inView;const trustList=trust||[];return /*#__PURE__*/_jsxs(\"section\",{ref:ref,style:{position:\"relative\",width:\"100%\",background:sectionBackground,borderRadius,padding:\"72px 20px\",boxSizing:\"border-box\",overflow:\"hidden\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-160,left:\"50%\",transform:\"translateX(-50%)\",width:520,height:360,borderRadius:\"50%\",background:accentColor,filter:\"blur(120px)\",opacity:.22,pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",maxWidth:720,margin:\"0 auto\",background:panelBackground,border:`1px solid ${hairlineColor}`,borderRadius:24,padding:\"clamp(28px, 5vw, 52px) clamp(22px, 5vw, 48px)\",textAlign:\"center\",opacity:show?1:0,transform:show?\"none\":\"translateY(18px)\",transition:\"opacity .6s ease, transform .6s ease\"},children:[eyebrow?/*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-block\",fontSize:12,fontWeight:700,letterSpacing:\"0.16em\",textTransform:\"uppercase\",color:accentColor,background:accentSoft,padding:\"7px 14px\",borderRadius:999,marginBottom:18},children:eyebrow}):null,/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:\"clamp(25px, 5.2vw, 36px)\",fontWeight:800,letterSpacing:\"-0.02em\",lineHeight:1.12,color:headingColor},children:heading}),body?/*#__PURE__*/_jsx(\"p\",{style:{margin:\"16px auto 0\",maxWidth:520,fontSize:16.5,lineHeight:1.65,color:mutedColor},children:body}):null,ctaText?/*#__PURE__*/_jsx(\"div\",{style:{marginTop:28},children:/*#__PURE__*/_jsxs(\"a\",{href:ctaLink||\"#\",onClick:e=>scrollToHash(ctaLink,e),style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,background:accentColor,color:\"#fff\",fontSize:17,fontWeight:700,letterSpacing:\"0.01em\",textDecoration:\"none\",padding:\"18px 40px\",borderRadius:14,boxShadow:`0 16px 34px ${accentColor}55`},children:[ctaText,/*#__PURE__*/_jsx(\"svg\",{width:\"19\",height:\"19\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2.3,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M13 6l6 6-6 6\"})})]})}):null,note?/*#__PURE__*/_jsx(\"div\",{style:{marginTop:14,fontSize:13.5,color:mutedColor},children:note}):null,trustList.length?/*#__PURE__*/_jsx(\"div\",{style:{marginTop:30,paddingTop:24,borderTop:`1px solid ${hairlineColor}`,display:\"flex\",flexWrap:\"wrap\",justifyContent:\"center\",gap:\"12px 24px\"},children:trustList.map((t,i)=>/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:8,fontSize:14,fontWeight:500,color:mutedColor},children:[/*#__PURE__*/_jsx(Check,{color:accentColor}),t.label]},i))}):null]})]});}const defaultTrust=[{label:\"Svar innen 24 timer\"},{label:\"Fast pris – ingen skjulte kostnader\"},{label:\"Lokalt firma i Agder og Rogaland\"}];addPropertyControls(ContactCta,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"Ta kontakt\"},heading:{type:ControlType.String,title:\"Overskrift\",defaultValue:\"Klar for en fasade som ser ut som ny?\"},body:{type:ControlType.String,title:\"Br\\xf8dtekst\",displayTextArea:true,defaultValue:\"Det tar bare et par minutter. Fortell oss litt om fasaden din, s\\xe5 f\\xe5r du en fast pris og en \\xe6rlig anbefaling – helt uforpliktende. Vi gleder oss til \\xe5 h\\xf8re fra deg!\"},ctaText:{type:ControlType.String,title:\"CTA tekst\",defaultValue:\"F\\xe5 gratis tilbud\"},ctaLink:{type:ControlType.Link,title:\"CTA lenke\",defaultValue:\"#tilbud-scroll\"},note:{type:ControlType.String,title:\"CTA notat\",defaultValue:\"Ingen forpliktelser – bare et \\xe6rlig tilbud.\"},trust:{type:ControlType.Array,title:\"Trygghetspunkter\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Tekst\",defaultValue:\"Punkt\"}}},defaultValue:defaultTrust},accentColor:{type:ControlType.Color,title:\"Aksentfarge\",defaultValue:\"#E07400\"},accentSoft:{type:ControlType.Color,title:\"Aksent myk\",defaultValue:\"rgba(224,116,0,0.16)\"},sectionBackground:{type:ControlType.Color,title:\"Bakgrunn\",defaultValue:\"#1A1815\"},panelBackground:{type:ControlType.Color,title:\"Panel bakgrunn\",defaultValue:\"#242019\"},headingColor:{type:ControlType.Color,title:\"Overskriftfarge\",defaultValue:\"#FFFFFF\"},mutedColor:{type:ControlType.Color,title:\"Tekst / dempet\",defaultValue:\"#C4BDB3\"},hairlineColor:{type:ControlType.Color,title:\"Linjefarge\",defaultValue:\"rgba(255,255,255,0.12)\"},borderRadius:{type:ControlType.Number,title:\"Hj\\xf8rner\",defaultValue:0,min:0,max:48,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContactCta\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"440\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"390\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContactCta.map"],"mappings":"iPAG6M,SAAS,EAAa,EAAK,EAAE,CAAC,GAAG,OAAO,SAAW,KAAa,CAAC,EAAK,OAAO,IAAM,EAAE,EAAK,QAAQ,GAAG,EAAE,GAAG,IAAI,GAAG,OAAO,IAAM,EAAG,mBAAmB,EAAK,MAAM,EAAE,CAAC,CAAC,EAAQ,EAAG,SAAS,eAAe,CAAE,EAAK,IAAI,EAAE,eAAe,EAAE,EAAG,eAAe,CAAC,SAAS,SAAS,MAAM,OAAO,CAAC,EAAG,CAAC,SAAS,EAAM,CAAC,SAAO,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAM,YAAY,EAAE,cAAc,QAAQ,eAAe,QAAQ,MAAM,CAAC,KAAK,UAAU,EAAE,cAAc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