{"version":3,"file":"SectionHeader.CjYTSKvB.mjs","names":["React.useState","React.useRef","React.Fragment","__esmMin","init_ssg_sandbox_shims","x","window","_e","p","ce","init_npm_react_18_3_1","de","addPropertyControls","init_framer_BWFVvmND","ControlType","SectionHeader","isMobile","setIsMobile","isTablet","setIsTablet","inView","setInView","ref","check","el","obs","entry","align","textAlign","isCenter","words","heading","headingSize","aRgb","accentColor","hex","classNames","eyebrow","subtext","isAccent","i","accentWords","word","STYLE_ID","init_SectionHeader","init_jsx_runtime","tag"],"sources":["https:/framerusercontent.com/modules/VrO1zGIJgdwrUqignBZ0/zC7AcVPnIezXqfCgnCbV/SectionHeader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const STYLE_ID=\"sh-global-styles\";if(typeof document!==\"undefined\"&&!document.getElementById(STYLE_ID)){const tag=document.createElement(\"style\");tag.id=STYLE_ID;tag.textContent=`\n        @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');\n\n        @keyframes sh-line-grow {\n            from { transform: scaleX(0); opacity: 0; }\n            to   { transform: scaleX(1); opacity: 1; }\n        }\n        @keyframes sh-eyebrow-in {\n            from { opacity: 0; transform: translateY(8px); }\n            to   { opacity: 1; transform: translateY(0); }\n        }\n        @keyframes sh-heading-in {\n            from { opacity: 0; transform: translateY(16px); }\n            to   { opacity: 1; transform: translateY(0); }\n        }\n        @keyframes sh-subtext-in {\n            from { opacity: 0; transform: translateY(10px); }\n            to   { opacity: 1; transform: translateY(0); }\n        }\n        @keyframes sh-dot-pulse {\n            0%, 100% { transform: scale(1); opacity: 1; }\n            50%       { transform: scale(1.5); opacity: 0.7; }\n        }\n\n        .sh-animated .sh-eyebrow-wrap {\n            animation: sh-eyebrow-in 0.5s cubic-bezier(0.22,1,0.36,1) 0.1s both;\n        }\n        .sh-animated .sh-heading {\n            animation: sh-heading-in 0.65s cubic-bezier(0.22,1,0.36,1) 0.22s both;\n        }\n        .sh-animated .sh-subtext {\n            animation: sh-subtext-in 0.55s cubic-bezier(0.22,1,0.36,1) 0.38s both;\n        }\n        .sh-animated .sh-line {\n            animation: sh-line-grow 0.7s cubic-bezier(0.22,1,0.36,1) 0.14s both;\n            transform-origin: left center;\n        }\n        .sh-animated.sh-center .sh-line {\n            transform-origin: center center;\n        }\n\n        .sh-dot {\n            animation: sh-dot-pulse 3s ease-in-out infinite;\n        }\n\n        .sh-word-accent {\n            display: inline-block;\n        }\n    `;document.head.appendChild(tag);}export default function SectionHeader({eyebrow=\"Tailored Solutions\",heading=\"Expert Attack Informed Cybersecurity Services Tailored to\",subtext=\"\",accentColor=\"#F1582D\",textAlign=\"center\",accentWords=2}){const[isMobile,setIsMobile]=React.useState(false);const[isTablet,setIsTablet]=React.useState(false);const[inView,setInView]=React.useState(false);const ref=React.useRef(null);React.useEffect(()=>{const check=()=>{setIsMobile(window.innerWidth<768);setIsTablet(window.innerWidth<1024);};check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);React.useEffect(()=>{const el=ref.current;if(!el)return;if(typeof IntersectionObserver===\"undefined\"){setInView(true);return;}const obs=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setInView(true);obs.disconnect();}},{threshold:.2});obs.observe(el);return()=>obs.disconnect();},[]);const align=isMobile?\"left\":textAlign;const isCenter=align===\"center\";const words=heading?heading.split(\" \"):[];const headingSize=isMobile?\"24px\":isTablet?\"25px\":\"28px\";// Convert hex to rgb for rgba usage\nconst hexToRgb=hex=>{const r=parseInt(hex.slice(1,3),16);const g=parseInt(hex.slice(3,5),16);const b=parseInt(hex.slice(5,7),16);return`${r},${g},${b}`;};const aRgb=accentColor.startsWith(\"#\")?hexToRgb(accentColor):\"241,88,45\";const classNames=[\"sh-animated\",isCenter?\"sh-center\":\"sh-left\",inView?\"sh-in-view\":\"\"].filter(Boolean).join(\" \");return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:classNames,style:{width:\"100%\",fontFamily:\"Montserrat, sans-serif\",textAlign:align,boxSizing:\"border-box\"},children:[eyebrow&&/*#__PURE__*/_jsxs(\"div\",{className:\"sh-eyebrow-wrap\",style:{display:\"flex\",alignItems:\"center\",justifyContent:isCenter?\"center\":\"flex-start\",gap:\"10px\",marginBottom:\"20px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"6px\",flexShrink:0},children:[/*#__PURE__*/_jsx(\"div\",{className:\"sh-line\",style:{width:\"28px\",height:\"1.5px\",background:`linear-gradient(to right, ${accentColor}, rgba(${aRgb},0.3))`,borderRadius:\"2px\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"sh-dot\",style:{width:\"5px\",height:\"5px\",borderRadius:\"50%\",background:accentColor,flexShrink:0}})]}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"10px\",fontWeight:600,letterSpacing:\"0.2em\",textTransform:\"uppercase\",color:\"#444\",fontFamily:\"Montserrat, sans-serif\",lineHeight:1},children:eyebrow}),!isCenter&&/*#__PURE__*/_jsx(\"div\",{className:\"sh-line\",style:{flex:1,maxWidth:\"48px\",height:\"1px\",background:`rgba(${aRgb},0.15)`,borderRadius:\"2px\"}})]}),heading&&/*#__PURE__*/_jsx(\"h2\",{className:\"sh-heading\",style:{fontSize:headingSize,fontWeight:500,color:\"#0a0a0a\",margin:subtext?\"0 0 24px\":\"0\",lineHeight:1.1,letterSpacing:\"-0.03em\",fontFamily:\"Montserrat, sans-serif\",maxWidth:isCenter?\"860px\":\"100%\",marginInline:isCenter?\"auto\":\"0\",display:\"block\"},children:words.map((word,i)=>{const isAccent=i>=words.length-accentWords;return /*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:isAccent?\"sh-word-accent\":undefined,style:{display:\"inline-block\",color:isAccent?accentColor:\"inherit\",...isAccent&&{\"--accent-color\":accentColor}},children:word}),i<words.length-1&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",width:\"0.28em\"}})]},i);})}),heading&&!subtext&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:isCenter?\"center\":\"flex-start\",marginTop:\"20px\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"sh-line\",style:{width:\"48px\",height:\"3px\",borderRadius:\"3px\",background:`linear-gradient(to right, ${accentColor}, rgba(${aRgb},0.2))`}})}),subtext&&/*#__PURE__*/_jsx(\"p\",{className:\"sh-subtext\",style:{fontSize:isMobile?\"14px\":\"15px\",color:\"#777\",lineHeight:1.8,margin:\"0\",maxWidth:isCenter?\"560px\":\"640px\",marginInline:isCenter?\"auto\":\"0\",fontFamily:\"Montserrat, sans-serif\",fontWeight:400,letterSpacing:\"0.005em\"},children:subtext})]});}addPropertyControls(SectionHeader,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"Tailored Solutions\"},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Expert Attack Informed Cybersecurity Services Tailored to\",displayTextArea:true},accentWords:{type:ControlType.Number,title:\"Accent Words\",defaultValue:2,min:1,max:6,step:1,description:\"How many words at the end of the heading get the accent colour\"},subtext:{type:ControlType.String,title:\"Subtext\",defaultValue:\"\",displayTextArea:true},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#F1582D\"},textAlign:{type:ControlType.Enum,title:\"Alignment\",options:[\"center\",\"left\"],optionTitles:[\"Center\",\"Left\"],defaultValue:\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionHeader.map"],"mappings":"A,0MAgDsC,SAAwBe,EAAc,CAAC,UAAQ,qBAAqB,UAAQ,4DAA4D,UAAQ,GAAG,cAAY,UAAU,YAAU,SAAS,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