{"version":3,"file":"QonfiSectionIntro.CfSSSd5k.mjs","names":["useRef","useState","useEffect","_jsxs","_Fragment","_jsx","__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_BWzg2IRg","QonfiSectionIntro","props","eyebrow","title","highlight","body","align","maxWidth","ctaLabel","ctaLink","animate","style","ref","isCanvas","reduce","motion","shown","setShown","el","io","entries","center","reveal","delay","parts","heading","DEEP","BRAND","FONT","balance","INK","pretty","INK6","part","k","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,SAAwBoB,EAAkBC,EAAM,CAAC,GAAK,CAACC,UAAQ,GAAGC,QAAM,GAAGC,YAAU,GAAGC,OAAK,GAAGC,QAAM,SAASC,WAAS,IAAIC,WAAS,GAAGC,UAAQ,GAAGC,UAAQ,GAAKC,SAAOV,EAAYW,EAAIhC,EAAO,IAAI,EAAQiC,EAASjB,EAAa,QAAQ,IAAIA,EAAa,OAAakB,EAAczB,IAAS,QAAaA,EAAO,aAAa,kCAAkC,CAAC,CAAC,QAAc0B,EAAOL,GAAS,CAACG,GAAU,CAACC,EAAY,CAACE,EAAMC,GAAUpC,EAAS,CAACkC,CAAM,EAAEjC,MAAc,CAAC,GAAG,CAACiC,EAAO,CAACE,EAAS,EAAI,EAAE,MAAO,CAAC,IAAMC,EAAGN,EAAI,QAAQ,GAAG,CAACM,GAAI,OAAO,qBAAuB,IAAY,CAACD,EAAS,EAAI,EAAE,MAAO,CAAC,IAAME,EAAG,IAAI,qBAAqBC,GAAS,CAAIA,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,CAACJ,CAAM,CAAC,EAAE,IAAMM,EAAOf,IAAQ,SAAegB,EAAOC,GAAOR,EAAO,CAAC,QAAQC,KAAU,UAAUA,EAAM,OAAO,mBAAmB,OAAOA,EAAM,UAAU,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