{"version":3,"file":"PromptujtoNav.Dor308Hv.mjs","names":["useState","React","useMemo","p"],"sources":["https:/framerusercontent.com/modules/I5kJzXfWXYGpSN0fEvwS/0V38UNmrsIj7Ypd33p7o/PromptujtoNav.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import React,{startTransition,useEffect,useMemo,useState}from\"react\";/**\n * Instructions:\n * Create a sticky dark navigation bar for Promptujto website.\n * Background rgba(8,8,8,0.95), backdrop-filter blur(12px).\n * Height 64px. Border-bottom 1px solid rgba(255,255,255,0.06).\n * Sticky at top (position: fixed, top: 0, z-index: 100). Full width.\n * Inner container: max-width 1100px, centered, padding 0 24px. Flex row, space-between, vertically centered.\n * LEFT: Logo text \"Promptujto\" — Inter Bold 700, 18px, white. Or add a small terminal icon before it in green.\n * RIGHT: A green CTA button (smaller version). Background #22C55E, text black, Inter SemiBold 600, 14px, padding 10px 22px, border-radius 6px.\n * Text: \"Získat 44 promptů →\"\n *//**\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 64\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PromptujtoNav(props){const{positionMode,height,logoLink,background,topBackground,borderColor,topBorderColor,preStickyBackground,preStickyBorderColor,blur,topBlur,scrolledBlur,scrollThreshold,transitionMs,zIndex,progressHeight,progressColor,maxWidth,paddingX,showIcon,terminalIconText,terminalIconSize,iconColor,logoText,logoColor,logoFont,style}=props;const[isScrolled,setIsScrolled]=useState(false);const[isStuck,setIsStuck]=useState(false);const[progress,setProgress]=useState(0);const navRef=React.useRef(null);const rootStyle=useMemo(()=>{return{position:\"relative\",width:\"100%\",height:\"100%\",...style,background:\"transparent\",backgroundColor:\"transparent\"};},[style]);const barStyle=useMemo(()=>{const actualHeight=typeof height===\"number\"?`${height}px`:\"64px\";const inStickyMode=positionMode===\"sticky\";const usingPreStickyStyle=inStickyMode&&!isStuck;const effectiveBackground=usingPreStickyStyle?preStickyBackground:isScrolled?background:topBackground;const effectiveBorder=usingPreStickyStyle?preStickyBorderColor:isScrolled?borderColor:topBorderColor;const effectiveBlur=usingPreStickyStyle?0:isScrolled?scrolledBlur:topBlur;const filter=`blur(${Math.max(0,effectiveBlur)}px)`;const position=positionMode===\"fixed\"?\"fixed\":\"sticky\";return{position,top:0,left:0,right:0,height:actualHeight,width:\"100%\",zIndex,background:effectiveBackground,borderBottom:`1px solid ${effectiveBorder}`,WebkitBackdropFilter:filter,backdropFilter:filter,display:\"flex\",alignItems:\"center\",transition:`background ${transitionMs}ms ease, border-color ${transitionMs}ms ease, backdrop-filter ${transitionMs}ms ease, -webkit-backdrop-filter ${transitionMs}ms ease`};},[background,borderColor,height,isScrolled,isStuck,positionMode,preStickyBackground,preStickyBorderColor,scrolledBlur,topBackground,topBlur,topBorderColor,transitionMs,zIndex]);const innerStyle=useMemo(()=>{return{width:\"100%\",maxWidth:`${maxWidth}px`,margin:\"0 auto\",padding:`0 ${paddingX}px`,display:\"flex\",alignItems:\"center\",justifyContent:\"flex-start\",gap:16,boxSizing:\"border-box\"};},[maxWidth,paddingX]);const logoWrapStyle=useMemo(()=>{return{display:\"flex\",alignItems:\"center\",gap:10,minWidth:\"max-content\",userSelect:\"none\"};},[]);const logoTextStyle=useMemo(()=>{return{...logoFont||{},color:logoColor,whiteSpace:\"nowrap\",lineHeight:\"1em\"};},[logoColor,logoFont]);const terminalIconStyle=useMemo(()=>{return{color:iconColor,fontSize:`${terminalIconSize}px`,lineHeight:\"1em\",fontWeight:700,fontFamily:\"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace\",letterSpacing:\"-0.02em\"};},[iconColor,terminalIconSize]);useEffect(()=>{if(typeof window===\"undefined\")return;let raf=null;const update=()=>{raf=null;const y=window.scrollY||window.pageYOffset||0;const doc=document.documentElement;const scrollable=Math.max(0,(doc?.scrollHeight||0)-window.innerHeight);const nextProgress=scrollable>0?Math.max(0,Math.min(1,y/scrollable)):0;const nextIsScrolled=y>scrollThreshold;const nextIsStuck=positionMode===\"sticky\"&&navRef.current&&typeof navRef.current.getBoundingClientRect===\"function\"?navRef.current.getBoundingClientRect().top<=.5:false;startTransition(()=>{setIsScrolled(nextIsScrolled);setIsStuck(nextIsStuck);setProgress(nextProgress);});};const onScroll=()=>{if(raf!=null)return;raf=window.requestAnimationFrame(update);};update();window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onScroll);return()=>{window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onScroll);if(raf!=null)window.cancelAnimationFrame(raf);};},[positionMode,scrollThreshold]);return /*#__PURE__*/_jsxs(\"div\",{style:rootStyle,children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"fixed\",top:0,left:0,width:`${progress*100}%`,height:`${progressHeight}px`,background:progressColor,zIndex:zIndex+1,transform:\"translateZ(0)\",pointerEvents:\"none\",transition:\"width 80ms linear\"}}),/*#__PURE__*/_jsx(\"nav\",{ref:navRef,style:barStyle,\"aria-label\":\"Primary navigation\",children:/*#__PURE__*/_jsx(\"div\",{style:innerStyle,children:/*#__PURE__*/_jsxs(\"a\",{href:logoLink,style:{...logoWrapStyle,textDecoration:\"none\",color:\"inherit\",cursor:\"pointer\"},\"aria-label\":\"Promptujto\",children:[showIcon&&/*#__PURE__*/_jsx(\"span\",{style:terminalIconStyle,\"aria-hidden\":\"true\",children:terminalIconText}),/*#__PURE__*/_jsx(\"span\",{style:logoTextStyle,children:logoText})]})})})]});}addPropertyControls(PromptujtoNav,{positionMode:{type:ControlType.Enum,title:\"Position\",options:[\"fixed\",\"sticky\"],optionTitles:[\"Fixed\",\"Sticky\"],defaultValue:\"fixed\",displaySegmentedControl:true},logoLink:{type:ControlType.Link,title:\"Logo Link\",defaultValue:\"/#hero\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:64,min:44,max:120,step:1,unit:\"px\"},scrollThreshold:{type:ControlType.Number,title:\"Scroll Px\",defaultValue:80,min:0,max:400,step:1,unit:\"px\"},transitionMs:{type:ControlType.Number,title:\"Transition\",defaultValue:300,min:0,max:1e3,step:10,unit:\"ms\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(8,8,8,0.92)\"},topBackground:{type:ControlType.Color,title:\"Top Bg\",defaultValue:\"rgba(8,8,8,0)\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(255,255,255,0.06)\"},topBorderColor:{type:ControlType.Color,title:\"Top Border\",defaultValue:\"rgba(255,255,255,0)\"},preStickyBackground:{type:ControlType.Color,title:\"PreSticky Bg\",defaultValue:\"rgba(8,8,8,0.95)\",hidden:({positionMode})=>positionMode!==\"sticky\"},preStickyBorderColor:{type:ControlType.Color,title:\"PreSticky Border\",defaultValue:\"rgba(255,255,255,0.06)\",hidden:({positionMode})=>positionMode!==\"sticky\"},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:16,min:0,max:30,step:1,unit:\"px\"},topBlur:{type:ControlType.Number,title:\"Top Blur\",defaultValue:0,min:0,max:30,step:1,unit:\"px\"},scrolledBlur:{type:ControlType.Number,title:\"Scrolled Blur\",defaultValue:16,min:0,max:30,step:1,unit:\"px\"},zIndex:{type:ControlType.Number,title:\"z-index\",defaultValue:100,min:0,max:999,step:1},progressHeight:{type:ControlType.Number,title:\"Progress H\",defaultValue:2,min:0,max:8,step:1,unit:\"px\"},progressColor:{type:ControlType.Color,title:\"Progress\",defaultValue:\"#22C55E\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:1100,min:320,max:1600,step:10,unit:\"px\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:24,min:0,max:80,step:1,unit:\"px\"},showIcon:{type:ControlType.Boolean,title:\"Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},terminalIconText:{type:ControlType.String,title:\"Icon Text\",defaultValue:\">_\",hidden:p=>!p.showIcon},terminalIconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:12,min:8,max:20,step:1,unit:\"px\",hidden:p=>!p.showIcon},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#22C55E\",hidden:p=>!p.showIcon},logoText:{type:ControlType.String,title:\"Logo\",defaultValue:\"Promptujto\"},logoColor:{type:ControlType.Color,title:\"Logo Color\",defaultValue:\"#FFFFFF\"},logoFont:{type:ControlType.Font,title:\"Logo Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PromptujtoNav\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"64\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PromptujtoNav.map"],"mappings":"sNAgBG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,eAAa,SAAO,WAAS,aAAW,gBAAc,cAAY,iBAAe,sBAAoB,uBAAqB,OAAK,UAAQ,eAAa,kBAAgB,eAAa,SAAO,iBAAe,gBAAc,WAAS,WAAS,WAAS,mBAAiB,mBAAiB,YAAU,WAAS,YAAU,WAAS,SAAO,EAAW,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,EAAE,CAAO,EAAOC,EAAM,OAAO,KAAK,CAAO,EAAUC,OAAmB,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,GAAG,EAAM,WAAW,cAAc,gBAAgB,cAAc,EAAG,CAAC,EAAM,CAAC,CAAO,EAASA,MAAY,CAAC,IAAM,EAAa,OAAO,GAAS,SAA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