{"version":3,"file":"SectionHeader.DC5M_F6h.mjs","names":["p","useRef","__esmMin","de","p","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_BWFVvmND","addPropertyControls","ControlType","init_Theme","useFonts","useInView","monoLabel","palette","SectionHeader","props","p$1","theme","f","ref","seen","showLine","number","title","rightText","datum","init_SectionHeader"],"sources":["https:/framerusercontent.com/modules/DCe20Zqqnl5n9b0muFtC/2ceu9jy8eAMnKH2gpyzO/SectionHeader.js"],"sourcesContent":["// CIVITEC Section Header — \"§ 03  SELECTED PROJECTS\" with the amber datum line\n// that draws when the header scrolls into view. The right text stays on the\n// same line when it fits and wraps underneath when it doesn't.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef}from\"react\";import{palette,EASE,useFonts,monoLabel,useInView}from\"https://framerusercontent.com/modules/mpAuE8tlrJb5DweRhgk2/te81da2cKApazKrjkjat/Theme.js\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SectionHeader(props){const{number,title,theme,showLine,datum,rightText}=props;const p=palette(theme);const f=useFonts();const ref=useRef(null);const seen=useInView(ref);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",display:\"flex\",flexWrap:\"wrap\",alignItems:\"center\",columnGap:14,rowGap:8,paddingBottom:14,borderBottom:showLine?`1px solid ${p.line}`:\"none\"},children:[number&&/*#__PURE__*/_jsxs(\"span\",{style:{...monoLabel(f.mono,p.accent),whiteSpace:\"nowrap\"},children:[\"\\xa7 \",number]}),/*#__PURE__*/_jsx(\"span\",{style:{...monoLabel(f.mono,p.text),fontWeight:500,whiteSpace:\"nowrap\"},children:title}),rightText&&/*#__PURE__*/_jsx(\"span\",{style:{...monoLabel(f.mono,p.subtle),marginLeft:\"auto\"},children:rightText}),showLine&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{position:\"absolute\",left:0,bottom:-1,height:1,width:datum,background:p.accent,transformOrigin:\"left\",transform:`scaleX(${seen?1:0})`,transition:`transform 1.1s ${EASE} .1s`}})]});}SectionHeader.defaultProps={number:\"03\",title:\"Selected projects\",theme:\"Dark\",showLine:true,datum:72,rightText:\"\"};addPropertyControls(SectionHeader,{number:{type:ControlType.String,title:\"Number\",placeholder:\"03\"},title:{type:ControlType.String,title:\"Title\"},rightText:{type:ControlType.String,title:\"Right text\",placeholder:\"Optional\"},theme:{type:ControlType.Enum,title:\"On\",options:[\"Dark\",\"Light\"],displaySegmentedControl:true},showLine:{type:ControlType.Boolean,title:\"Rule\"},datum:{type:ControlType.Number,title:\"Datum\",min:0,max:400,unit:\"px\",hidden:p=>!p.showLine}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionHeader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionHeader.map"],"mappings":"A,2PAMG,SAAwBgB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,QAAM,QAAM,WAAS,QAAM,aAAWC,EAAYjB,EAAEe,EAAQI,CAAK,EAAQC,EAAER,EAAS,EAAQS,EAAIpB,EAAO,IAAI,EAAQqB,EAAKT,EAAUQ,CAAG,EAAE,MAAoB,gBAAM,MAAM,CAAK,MAAI,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,QAAQ,OAAO,SAAS,OAAO,WAAW,SAAS,UAAU,GAAG,OAAO,EAAE,cAAc,GAAG,aAAaE,EAAS,aAAavB,EAAE,OAAO,MAAM,EAAE,SAAS,CAACwB,GAAqB,gBAAM,OAAO,CAAC,MAAM,CAAC,GAAGV,EAAUM,EAAE,KAAKpB,EAAE,MAAM,EAAE,WAAW,QAAQ,EAAE,SAAS,CAAC,KAAQwB,CAAM,CAAC,CAA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