{"version":3,"file":"PasswordScreen.kchJBEUV.mjs","names":["useState","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/lOQg2l4wqxOijjGkSA4z/5uN5zcLT7MTprT8SXAyQ/PasswordScreen.js"],"sourcesContent":["// Create a full-page password protection overlay matching the provided Optint design, with inline shield-eye SVG, unlock behavior, wrong-password shake feedback, and configurable password/request URL controls.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PasswordScreen(props){const{password=\"Optint2026\",requestAccessUrl=\"mailto:briefings@optint.ai?subject=Request Access — Optint Private Showroom\"}=props;const[value,setValue]=useState(\"\");const[unlocked,setUnlocked]=useState(false);const[isError,setIsError]=useState(false);const[isShaking,setIsShaking]=useState(false);const isInFramerEditor=typeof window!==\"undefined\"?window.self!==window.top:false;useEffect(()=>{if(typeof window!==\"undefined\"){const storedUnlocked=window.localStorage.getItem(\"optint_unlocked\");if(storedUnlocked===\"true\"){startTransition(()=>{setUnlocked(true);});}}},[]);useEffect(()=>{if(!isError&&!isShaking)return;let timeoutId;if(typeof window!==\"undefined\"){timeoutId=window.setTimeout(()=>{startTransition(()=>{setIsError(false);setIsShaking(false);});},420);}else{startTransition(()=>{setIsError(false);setIsShaking(false);});}return()=>{if(typeof window!==\"undefined\"&&timeoutId!==undefined){window.clearTimeout(timeoutId);}};},[isError,isShaking]);const handleSubmit=useCallback(()=>{if(value===password){if(typeof window!==\"undefined\"){window.localStorage.setItem(\"optint_unlocked\",\"true\");}startTransition(()=>{setUnlocked(true);});return;}startTransition(()=>{setIsError(true);setIsShaking(true);setValue(\"\");});},[password,value]);const inputBorderColor=useMemo(()=>{return isError?\"#cf4f4f\":\"#2a3a37\";},[isError]);const inputRowStyle=useMemo(()=>({display:\"flex\",alignItems:\"center\",gap:8,width:\"100%\",maxWidth:360,animation:isShaking?\"optint-shake 0.38s ease-in-out\":\"none\"}),[isShaking]);if(isInFramerEditor)return null;if(unlocked)return null;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100%\",height:\"100%\",zIndex:9999,background:\"#13171a\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"32px 20px 96px\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes optint-shake {\n                        0%, 100% { transform: translateX(0); }\n                        20% { transform: translateX(-7px); }\n                        40% { transform: translateX(7px); }\n                        60% { transform: translateX(-5px); }\n                        80% { transform: translateX(5px); }\n                    }\n                `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",width:\"100%\",maxWidth:560},children:[/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/0kt93qWG6l01C0bi69t1tsxx8.png?width=800&height=189&kb=31\",alt:\"\",style:{width:180,height:\"auto\",display:\"block\"}}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"32px 0 0\",maxWidth:340,fontFamily:'\"Inter\", \"Space Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',fontWeight:400,fontSize:14,lineHeight:1.6,color:\"#8a9e98\",textAlign:\"center\"},children:\"This is a private briefing, prepared for investment and finance leaders by invitation.\"}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:28,...inputRowStyle},children:[/*#__PURE__*/_jsx(\"input\",{\"aria-label\":\"Access code\",type:\"password\",value:value,onChange:event=>{const next=event.target.value;startTransition(()=>{setValue(next);if(isError)setIsError(false);});},onKeyDown:event=>{if(event.key===\"Enter\"){event.preventDefault();handleSubmit();}},placeholder:\"ACCESS CODE\",style:{flex:1,height:48,minWidth:0,background:\"#1d2424\",border:`1px solid ${inputBorderColor}`,borderRadius:24,padding:\"12px 24px\",boxSizing:\"border-box\",color:\"#8a9e98\",outline:\"none\",fontFamily:'\"Space Grotesk\", \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',fontSize:13,letterSpacing:\"0.15em\"}}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",role:\"button\",\"aria-label\":\"Enter access code\",onClick:handleSubmit,style:{border:\"none\",background:\"#3ddbb2\",color:\"#0d1a16\",borderRadius:24,padding:\"12px 28px\",height:48,cursor:\"pointer\",fontFamily:'\"Space Grotesk\", \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',fontWeight:700,fontSize:13,letterSpacing:\"0.15em\",whiteSpace:\"nowrap\"},children:\"ENTER\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:32,textAlign:\"center\",fontFamily:'\"Inter\", \"Space Grotesk\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',fontSize:13,color:\"#4a6b60\"},children:[\"No code?\",\" \",/*#__PURE__*/_jsx(\"a\",{href:requestAccessUrl,style:{color:\"#3ddbb2\",textDecoration:\"underline\",cursor:\"pointer\"},children:\"Request access\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,right:0,bottom:32,textAlign:\"center\",fontFamily:'\"Space Grotesk\", \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',fontSize:10,letterSpacing:\"0.2em\",color:\"#2d4a42\",textTransform:\"uppercase\",padding:\"0 20px\",boxSizing:\"border-box\"},children:\"PRIVATE SHOWROOM \\xb7 VENTURE & CAPITAL 2026 \\xb7 SYDNEY\"})]})]});}addPropertyControls(PasswordScreen,{password:{type:ControlType.String,title:\"Password\",defaultValue:\"Optint2026\"},requestAccessUrl:{type:ControlType.String,title:\"Request URL\",defaultValue:\"mailto:briefings@optint.ai?subject=Request Access — Optint Private Showroom\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordScreen\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\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