{"version":3,"file":"QonfiSectionIntro.Dfg2ajDo.mjs","names":["useRef","useState","_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","_e","de","l","p","init_jsx_runtime","ce","RenderTarget","addPropertyControls","ControlType","init_framer_DxfB3JJo","QonfiSectionIntro","props","ref","isCanvas","reduce","motion","animate","shown","setShown","el","io","entries","center","align","reveal","delay","parts","highlight","title","heading","DEEP","BRAND","FONT","style","eyebrow","balance","INK","body","pretty","INK6","part","k","ctaLabel","ctaLink","init_QonfiSectionIntro"],"sources":["https:/framerusercontent.com/modules/ji35UPDiEze05FXqSTif/lTQd9hBGLoaPKJlrmDNS/QonfiSectionIntro.js"],"sourcesContent":["// User request: a clean centered section intro (heading + paragraph, like the \"Make complex customer\n// journeys simple\" block) with a subtle reveal animation, usable on every page. Editors set eyebrow,\n// title, highlighted words, body and an optional CTA link in the properties panel.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,useState}from\"react\";const FONT=\"Lexend, Helvetica, Arial, sans-serif\";const INK=\"#111827\";const INK6=\"#4B5563\";const DEEP=\"#0081A7\";const BRAND=\"#00AFB9\";const balance={textWrap:\"balance\"};const pretty={textWrap:\"pretty\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 960\n * @framerIntrinsicHeight 260\n */export default function QonfiSectionIntro(props){const{eyebrow=\"\",title=\"\",highlight=\"\",body=\"\",align=\"center\",maxWidth=760,ctaLabel=\"\",ctaLink=\"\",animate=true,style}=props;const ref=useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const reduce=typeof window!==\"undefined\"&&window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;const motion=animate&&!isCanvas&&!reduce;const[shown,setShown]=useState(!motion);useEffect(()=>{if(!motion){setShown(true);return;}const el=ref.current;if(!el||typeof IntersectionObserver===\"undefined\"){setShown(true);return;}const io=new IntersectionObserver(entries=>{if(entries.some(e=>e.isIntersecting)){setShown(true);io.disconnect();}},{threshold:.25});io.observe(el);return()=>io.disconnect();},[motion]);const center=align===\"center\";const reveal=delay=>motion?{opacity:shown?1:0,transform:shown?\"none\":\"translateY(18px)\",filter:shown?\"blur(0)\":\"blur(4px)\",transition:`opacity .7s cubic-bezier(.22,1,.36,1) ${delay}ms, transform .7s cubic-bezier(.22,1,.36,1) ${delay}ms, filter .7s ease ${delay}ms`}:{};const parts=highlight&&title.includes(highlight)?title.split(highlight):null;const heading=parts?/*#__PURE__*/_jsxs(_Fragment,{children:[parts[0],/*#__PURE__*/_jsx(\"span\",{style:{background:`linear-gradient(110deg,${DEEP},${BRAND})`,WebkitBackgroundClip:\"text\",backgroundClip:\"text\",color:\"transparent\",WebkitTextFillColor:\"transparent\"},children:highlight}),parts.slice(1).join(highlight)]}):title;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",boxSizing:\"border-box\",fontFamily:FONT,display:\"flex\",flexDirection:\"column\",alignItems:center?\"center\":\"flex-start\",textAlign:center?\"center\":\"left\",...style},children:[eyebrow&&/*#__PURE__*/_jsx(\"div\",{style:{...reveal(0),marginBottom:14,fontSize:14,lineHeight:\"20px\",fontWeight:600,letterSpacing:-.2,color:DEEP},children:eyebrow}),/*#__PURE__*/_jsx(\"h2\",{style:{whiteSpace:\"pre-line\",...reveal(80),...balance,margin:0,maxWidth,fontSize:\"clamp(28px, 4vw, 40px)\",lineHeight:1.15,fontWeight:500,letterSpacing:-1.2,color:INK},children:heading}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"block\",height:3,borderRadius:9999,marginTop:20,background:`linear-gradient(90deg,${DEEP},${BRAND})`,width:shown?56:0,opacity:shown?1:0,transition:motion?\"width .8s cubic-bezier(.22,1,.36,1) .35s, opacity .4s ease .35s\":\"none\"}}),body&&/*#__PURE__*/_jsx(\"p\",{style:{...reveal(180),...pretty,margin:\"20px 0 0\",maxWidth,fontSize:18,lineHeight:\"30px\",fontWeight:400,letterSpacing:-.2,color:INK6,whiteSpace:\"pre-line\"},children:body.split(/(\\*\\*[^*]+\\*\\*)/).map((part,k)=>part.startsWith(\"**\")&&part.endsWith(\"**\")&&part.length>4?/*#__PURE__*/_jsx(\"strong\",{style:{fontWeight:600,color:INK},children:part.slice(2,-2)},k):part)}),ctaLabel&&ctaLink&&/*#__PURE__*/_jsxs(\"a\",{href:ctaLink,style:{...reveal(280),display:\"inline-flex\",alignItems:\"center\",gap:6,marginTop:24,fontSize:15,fontWeight:500,color:DEEP,textDecoration:\"none\"},children:[ctaLabel,/*#__PURE__*/_jsx(\"svg\",{\"aria-hidden\":\"true\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M13 6l6 6-6 6\"})})]})]});}addPropertyControls(QonfiSectionIntro,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"\"},title:{type:ControlType.String,displayTextArea:true,title:\"Title\",defaultValue:\"Make complex customer journeys simple\"},highlight:{type:ControlType.String,title:\"Highlight\",defaultValue:\"simple\",description:\"Words in the title that get the brand gradient.\"},body:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"center\",\"left\"],optionTitles:[\"Center\",\"Left\"],displaySegmentedControl:true,defaultValue:\"center\"},maxWidth:{type:ControlType.Number,title:\"Max width\",min:360,max:1100,step:10,unit:\"px\",defaultValue:760},ctaLabel:{type:ControlType.String,title:\"Link label\",defaultValue:\"\"},ctaLink:{type:ControlType.Link,title:\"Link\",hidden:p=>!p.ctaLabel},animate:{type:ControlType.Boolean,title:\"Animate\",defaultValue:true}});QonfiSectionIntro.displayName=\"Qonfi Section Intro\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"QonfiSectionIntro\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"960\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"260\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QonfiSectionIntro.map"],"mappings":"A,4NAQG,SAAwBiB,EAAkB,EAAM,CAAC,GAAK,CAAC,UAAQ,GAAG,QAAM,GAAG,YAAU,GAAG,OAAK,GAAG,QAAM,SAAS,WAAS,IAAI,WAAS,GAAG,UAAQ,GAAG,UAAQ,GAAK,SAAOC,EAAYC,EAAInB,EAAO,IAAI,EAAQoB,EAASP,EAAa,QAAQ,IAAIA,EAAa,OAAaQ,EAAcf,IAAS,QAAaA,EAAO,aAAa,kCAAkC,CAAC,CAAC,QAAcgB,EAAOC,GAAS,CAACH,GAAU,CAACC,EAAY,CAACG,EAAMC,GAAUxB,EAAS,CAACqB,CAAM,EAAEV,MAAc,CAAC,GAAG,CAACU,EAAO,CAACG,EAAS,EAAI,EAAE,MAAO,CAAC,IAAMC,EAAGP,EAAI,QAAQ,GAAG,CAACO,GAAI,OAAO,qBAAuB,IAAY,CAACD,EAAS,EAAI,EAAE,MAAO,CAAC,IAAME,EAAG,IAAI,qBAAqB,GAAS,CAAIC,EAAQ,KAAK,GAAG,EAAE,cAAc,IAAGH,EAAS,EAAI,EAAEE,EAAG,WAAW,EAAG,EAAE,CAAC,UAAU,GAAG,CAAC,EAAiB,OAAfA,EAAG,QAAQD,CAAE,MAAYC,EAAG,WAAW,CAAE,EAAE,CAACL,CAAM,CAAC,EAAE,IAAMO,EAAOC,IAAQ,SAAeC,EAAO,GAAOT,EAAO,CAAC,QAAQ,KAAU,UAAUE,EAAM,OAAO,mBAAmB,OAAOA,EAAM,UAAU,YAAY,WAAW,yCAAyCQ,EAAM,8CAA8CA,EAAM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