{"version":3,"file":"NavActive.B7S14lSp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Ue8olYbySm8bP7rdGwt4/hkYkbFiGsh02BxMCFbiU/NavActive.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Marks which nav word should stay underlined on the page it is dropped on.\n *\n * The nav itself lives in the Site Layout template — one instance for the whole\n * site — so nothing on the nav can be set per page. This is the piece that can:\n * drop one on a page, pick the page its nav word belongs to in the right panel,\n * and `NavUnderline.tsx` reads it off the DOM and lights that word.\n *\n * Only needed for pages whose path does not already match its nav word.\n * \"Who We Are\" at /who-we-are resolves on its own and needs nothing here.\n *\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 32\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function NavActive(props){const{link,path,style}=props;const value=(link||path||\"\").trim();// Published and Preview get an inert marker with no box of its own. The\n// canvas gets a visible label instead, because a zero-size layer is\n// impossible to find or select once it is placed.\nif(RenderTarget.current()!==RenderTarget.canvas){return /*#__PURE__*/_jsx(\"span\",{\"data-nav-active\":value,\"aria-hidden\":\"true\",style:{display:\"none\"}});}return /*#__PURE__*/_jsxs(\"div\",{\"data-nav-active\":value,\"data-nav-canvas-active\":\"\",style:{...style,display:\"flex\",alignItems:\"center\",gap:8,padding:\"6px 10px\",borderRadius:6,border:\"1px dashed rgba(0, 0, 0, 0.25)\",background:\"rgba(0, 0, 0, 0.03)\",font:'500 11px/1.2 \"Inter\", sans-serif',color:\"rgba(0, 0, 0, 0.6)\",whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:16,height:2,borderRadius:2,background:\"#EE4F00\",flex:\"none\"}}),value?`Nav active: ${value}`:\"Nav active: pick a page\"]});}addPropertyControls(NavActive,{link:{title:\"Page\",type:ControlType.Link,description:\"The nav word that should stay underlined on this page.\"},path:{title:\"Or Path\",type:ControlType.String,placeholder:\"/who-we-are\",description:\"Use when the page does not exist yet, so there is nothing to pick above.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NavActive\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"32\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"180\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavActive.map"],"mappings":"qKAeG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,SAAO,EAAY,GAAO,GAAM,GAAM,GAAA,CAAI,KAAK,EAG8C,OAAtJ,EAAa,QAAQ,IAAI,EAAa,OAAoI,EAAM,MAAM,CAAC,kBAAkB,EAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,EAAM,QAAQ,OAAO,WAAW,SAAS,IAAI,EAAE,QAAQ,WAAW,aAAa,EAAE,OAAO,iCAAiC,WAAW,sBAAsB,KAAK,mCAAmC,MAAM,qBAAqB,WAAW,QAAQ,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,aAAa,EAAE,WAAW,UAAU,KAAK,MAAM,CAAC,CAAC,EAAE,EAAM,eAAe,IAAQ,yBAAyB,CAAC,CAAC,EAA7kB,EAAK,OAAO,CAAC,kBAAkB,EAAM,cAAc,OAAO,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAA8f,iBAlB5lB,IAAiE,EAkB4hB,EAAoB,EAAU,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,KAAK,YAAY,wDAAwD,EAAE,KAAK,CAAC,MAAM,UAAU,KAAK,EAAY,OAAO,YAAY,cAAc,YAAY,0EAA0E,CAAC,CAAC"}