{"version":3,"file":"SectionHeader.CfjBK5e4.mjs","names":["useRef","SectionHeaderInternal","useId","useMemo","Tokens"],"sources":["https:/framerusercontent.com/modules/K81sg50RWETTBiTi7ZrU/i87ZToho1Szp0DmWJTnL/SectionHeader.js"],"sourcesContent":["/**\n * SectionHeader - Simple header section component.\n *\n * A simple header section with a heading and description text.\n * Features a black background with centered content layout.\n *\n * @framerDisableUnlink\n * @framerIntrinsicWidth 1280\n * @framerIntrinsicHeight auto\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto.\n */// 1. React and React types\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useRef,useMemo,useId}from\"react\";// 2. Framer Motion (for animations/transitions)\nimport{motion}from\"framer-motion\";// 3. Framer API\nimport{addPropertyControls,ControlType}from\"framer\";// 4. Design system utilities\nimport Tokens,{useReducedMotion,useEffectiveBreakpoint,kernHeadingPlainText}from\"https://framerusercontent.com/modules/trqsvmaimtqmRw7lebtr/LYDlc9ruTdQ4mYMpb25q/index.js\";import{getThemeColors}from\"https://framerusercontent.com/modules/adV8xDoJ9yUM3BO0Pqib/iZYAVa1YK87jNq2dsyGD/themeHelpers.js\";import{getSectionStyles,getContainerStyles,getGap,getSectionWrapperStyles,getSectionPaddingY}from\"https://framerusercontent.com/modules/a1kFI94mCu6lrdYjZ8oD/blDy3ypK9k3UTJgSBMQR/layoutStyles.js\";import{getSectionBackgroundLayer,getSectionContentStackStyle,getSectionRootBackgroundStyle,sectionBackgroundPropertyControls}from\"https://framerusercontent.com/modules/hqFOkpWLA64fdQpB8yjs/FiRYdNkitbLLnxlaV7oI/sectionBackground.js\";import{getSectionRestProps}from\"https://framerusercontent.com/modules/cDYhBLzprb1wvGj7NHO1/G9Bc1qio1siJhViz7ZtK/sectionProps.js\";import{useSectionAnimation}from\"https://framerusercontent.com/modules/tiNwkDoRyx97bPKfVFiw/1TJNxYgCRZURjJoWitil/useSectionAnimation.js\";import{createSectionVariants}from\"https://framerusercontent.com/modules/hUj3FWgpcDAgyV0oQMgI/VUTrW96Nc6s1CEep5mxX/motionVariants.js\";import{PLACEHOLDER}from\"https://framerusercontent.com/modules/0ETmfateJt5ereSJxi2b/s7fdkLpjypaFbRDAV17A/placeholders.js\";import{getPageHeadingTag}from\"https://framerusercontent.com/modules/0ydByU4q8sr8KQfSpML3/MfKt8AHSNS13Krgl9vnK/placeholderContent.js\";import{PRESERVE_CONTROL_NEWLINES}from\"https://framerusercontent.com/modules/gxwbCuOeX9Iq9kc5MH5p/k0Hn9o8CxLBqVGlxaK9j/controlTextStyles.js\";// ============================================\n// RESPONSIVE UTILITIES\n// ============================================\n// ============================================\n// COMPONENT\n// ============================================\n/**\n * SectionHeaderInternal - Internal forwardRef component.\n */const SectionHeaderInternal=/*#__PURE__*/forwardRef(function SectionHeaderInternal(props,ref){const{// Responsive breakpoint.\nbreakpoint:breakpointProp=\"desktop\",theme=\"default\",// Content props.\nheading=PLACEHOLDER.PAGE_HEADING,headingTag,description=PLACEHOLDER.DESCRIPTION,sectionId,backgroundVariant=\"gradient\",backgroundPreset=\"Rainbow\",backgroundOverlayDirection=\"top-color-bottom-neutral\",backgroundShowOverlay=true,// Common props.\nstyle,children,...rest}=props;// ========================================\n// HOOKS\n// ========================================\n// Auto-detect viewport breakpoint as a safety net.\nconst breakpoint=useEffectiveBreakpoint(breakpointProp);const colors=getThemeColors(theme);const{sectionBgColor,isGradient,backgroundLayer}=getSectionBackgroundLayer({variant:backgroundVariant,preset:backgroundPreset,overlayDirection:backgroundOverlayDirection,showOverlay:backgroundShowOverlay,theme,colors});const reducedMotion=useReducedMotion();const componentId=useId();const headingId=useId();const{sectionRef,animate}=useSectionAnimation(ref);// ========================================\n// DERIVED STATE\n// ========================================\nconst HeadingTag=getPageHeadingTag(headingTag);// ========================================\n// STYLES\n// ========================================\nconst sectionStyles=useMemo(()=>({...getSectionRootBackgroundStyle(),...getSectionStyles(breakpoint),backgroundColor:sectionBgColor,...style,paddingTop:`calc(${getSectionPaddingY(breakpoint)} + var(--nav-header-height, 80px))`}),[breakpoint,sectionBgColor,style]);const containerStyles=useMemo(()=>({...getContainerStyles(breakpoint),...getSectionContentStackStyle(isGradient)}),[breakpoint,isGradient]);const contentStyles={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:getGap(\"lg\",breakpoint)};const innerHeaderStyles={display:\"flex\",flexDirection:\"column\",gap:getGap(\"sm\",breakpoint),textAlign:\"center\",alignItems:\"center\"};// Typography styles.\nconst headingStyles={...Tokens.getTypographyStyles(\"/Headline 3XL/Heavy\",breakpoint),color:colors.textPrimary,margin:0,textAlign:\"center\",...PRESERVE_CONTROL_NEWLINES};const descriptionStyles={...Tokens.getTypographyStyles(\"/Subheadline/LG\",breakpoint),color:colors.textPrimary,margin:0,textAlign:\"center\",maxWidth:Tokens.getWidthValue(\"width-lg\"),...PRESERVE_CONTROL_NEWLINES};// ========================================\n// ANIMATION VARIANTS\n// ========================================\nconst{container:containerVariants,item:itemVariants}=createSectionVariants(reducedMotion,{stagger:Tokens.getStagger(\"loose\")});// ========================================\n// RENDER\n// ========================================\nreturn /*#__PURE__*/_jsxs(motion.section,{ref:sectionRef,role:\"region\",style:sectionStyles,id:sectionId||`section-header-${componentId}`,\"aria-labelledby\":heading?headingId:undefined,initial:animate===\"visible\"?false:\"hidden\",animate:animate,variants:containerVariants,...getSectionRestProps(rest),children:[backgroundLayer,/*#__PURE__*/_jsx(\"div\",{style:containerStyles,children:/*#__PURE__*/_jsxs(\"div\",{style:contentStyles,children:[Boolean(heading??description)&&/*#__PURE__*/_jsxs(motion.div,{style:innerHeaderStyles,variants:itemVariants,children:[heading&&/*#__PURE__*/_jsx(HeadingTag,{id:headingId,style:headingStyles,children:kernHeadingPlainText(heading)}),description&&/*#__PURE__*/_jsx(\"p\",{style:descriptionStyles,children:description})]}),children]})})]});});/**\n * SectionHeader - Wrapper component for Framer compatibility.\n */export default function SectionHeader(props){const ref=useRef(null);const breakpoint=useEffectiveBreakpoint(props.breakpoint??\"desktop\");return /*#__PURE__*/_jsx(\"div\",{style:{...getSectionWrapperStyles(breakpoint),...props.style},children:/*#__PURE__*/_jsx(SectionHeaderInternal,{...props,ref:ref})});}// Set display name for Framer.\nSectionHeader.displayName=\"Section Header - Organism\";// ============================================\n// PROPERTY CONTROLS\n// ============================================\naddPropertyControls(SectionHeader,{// ─── 1. Content ────────────────────────────────────────────────────────────\nheading:{type:ControlType.String,title:\"Heading\",defaultValue:PLACEHOLDER.PAGE_HEADING,placeholder:\"e.g. Short headline (one line)\",description:\"Main heading text for the section.\",displayTextArea:true},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Medium-length body copy of one or two sentences goes here to support the main headline. Do not make your text longer than this.\",placeholder:\"One or two sentences describing the section\",description:\"Description or body text.\",displayTextArea:true},// ─── 6. Configuration ──────────────────────────────────────────────────────\nheadingTag:{type:ControlType.Enum,title:\"Heading Tag\",options:[\"h1\",\"h2\"],optionTitles:[\"H1 Page Title\",\"H2 Replica\"],defaultValue:\"h1\",description:\"Page title heading level. Defaults to H1 on all breakpoints for SEO and accessibility.\"},...sectionBackgroundPropertyControls({variantDefault:\"gradient\",presetDefault:\"Rainbow\",overlayDirectionDefault:\"top-color-bottom-neutral\"}),// ─── 9. Advanced ───────────────────────────────────────────────────────────\nsectionId:{type:ControlType.String,title:\"Section ID\",defaultValue:\"section-header\",placeholder:\"e.g. section-name\",description:\"HTML id for the section element. Used for anchor links and page navigation.\"},// ─── 10. System ────────────────────────────────────────────────────────────\nbreakpoint:{type:ControlType.Enum,title:\"Breakpoint\",options:[\"desktop\",\"tablet\",\"phone\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"],displaySegmentedControl:false,defaultValue:\"desktop\",description:\"Select the breakpoint to match Framer's canvas.\"},theme:{type:ControlType.Enum,title:\"Theme\",options:[\"default\",\"inverted\"],optionTitles:[\"Default\",\"Inverted\"],displaySegmentedControl:false,defaultValue:\"default\",description:\"Default is dark mode, inverted is light mode. Theme passes to all children.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SectionHeaderProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Breakpoint\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qiBA6CG,SAAwB,EAAc,EAAM,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAsE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAA9F,EAAuB,EAAM,YAAY,UAAU,CAA8E,CAAC,GAAG,EAAM,MAAM,CAAC,SAAsB,EAAK,EAAsB,CAAC,GAAG,EAAU,MAAI,CAAC,CAAC,CAAC,oBAjCvP,IAAmD,IAC1E,IACkB,IACuH,IAA4H,IAAmM,IAAwO,IAAiI,IAAwI,IAAqI,IAAyH,IAAqI,IAA4I,CAQj+C,EAAmC,EAAW,SAA+B,EAAM,EAAI,CAAC,GAAK,CACtG,WAAW,EAAe,UAAU,QAAM,UAC1C,UAAQ,EAAY,aAAa,aAAW,cAAY,EAAY,YAAY,YAAU,oBAAkB,WAAW,mBAAiB,UAAU,6BAA2B,2BAA2B,wBAAsB,GAC9N,QAAM,WAAS,GAAG,GAAM,EAIlB,EAAW,EAAuB,EAAe,CAAO,EAAO,EAAe,EAAM,CAAM,CAAC,iBAAe,aAAW,mBAAiB,EAA0B,CAAC,QAAQ,EAAkB,OAAO,EAAiB,iBAAiB,EAA2B,YAAY,EAAsB,QAAM,SAAO,CAAC,CAAO,EAAc,GAAkB,CAAO,EAAYE,GAAO,CAAO,EAAUA,GAAO,CAAM,CAAC,aAAW,WAAS,EAAoB,EAAI,CAG3b,EAAW,EAAkB,EAAW,CAGxC,EAAcC,OAAa,CAAC,GAAG,GAA+B,CAAC,GAAG,EAAiB,EAAW,CAAC,gBAAgB,EAAe,GA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