{"version":3,"file":"Password.B4MbBHAt.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/cJ5Ld3kog8fL2hOWKZGm/3Z2FLomOjbxoQnIL5aKH/Password.js"],"sourcesContent":["// Password Protection Override for Framer\n// Dark theme with blue accent\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";const PASSWORD=\"iloveUX!\";const STORAGE_KEY=\"framer_page_unlocked\";export function withPasswordProtection(Component){return props=>{const[isUnlocked,setIsUnlocked]=useState(false);const[password,setPassword]=useState(\"\");const[error,setError]=useState(false);useEffect(()=>{if(sessionStorage.getItem(STORAGE_KEY)===\"true\"){setIsUnlocked(true);}},[]);const handleSubmit=e=>{e.preventDefault();if(password===PASSWORD){sessionStorage.setItem(STORAGE_KEY,\"true\");setIsUnlocked(true);setError(false);}else{setError(true);}};if(isUnlocked){return /*#__PURE__*/_jsx(Component,{...props});}return /*#__PURE__*/_jsxs(\"div\",{style:overlayStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:gradientStyle}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,style:formStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:labelStyle,children:\"PASSWORD REQUIRED\"}),/*#__PURE__*/_jsx(\"h2\",{style:titleStyle,children:\"Enter to view case study\"}),/*#__PURE__*/_jsx(\"input\",{type:\"password\",value:password,onChange:e=>setPassword(e.target.value),placeholder:\"Enter password\",style:{...inputStyle,borderColor:error?\"#ff4444\":\"#333\"},autoFocus:true}),error&&/*#__PURE__*/_jsx(\"p\",{style:errorStyle,children:\"Incorrect password\"}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:buttonStyle,children:\"Unlock\"})]})]});};}const overlayStyle={position:\"fixed\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"#1a1a1a\",zIndex:9999,fontFamily:\"system-ui, -apple-system, sans-serif\"};const gradientStyle={position:\"absolute\",top:0,left:\"50%\",transform:\"translateX(-50%)\",width:\"60%\",height:\"300px\",background:\"linear-gradient(180deg, #7CB9E8 0%, #5A9BD4 50%, transparent 100%)\",borderRadius:\"0 0 50% 50%\",opacity:.3,pointerEvents:\"none\"};const formStyle={position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",padding:\"48px\",backgroundColor:\"#242424\",borderRadius:\"12px\",border:\"1px solid #333\",minWidth:\"340px\",zIndex:1};const labelStyle={margin:0,fontSize:\"12px\",fontWeight:500,letterSpacing:\"0.1em\",color:\"#666\"};const titleStyle={margin:\"0 0 8px 0\",fontSize:\"24px\",fontWeight:600,color:\"#fff\"};const inputStyle={padding:\"14px 16px\",fontSize:\"16px\",color:\"#fff\",backgroundColor:\"#1a1a1a\",border:\"1px solid #333\",borderRadius:\"8px\",outline:\"none\"};const buttonStyle={padding:\"14px 24px\",fontSize:\"16px\",fontWeight:600,color:\"#1a1a1a\",backgroundColor:\"#7CB9E8\",border:\"none\",borderRadius:\"8px\",cursor:\"pointer\",marginTop:\"8px\"};const errorStyle={margin:0,color:\"#ff6b6b\",fontSize:\"14px\"};\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordProtection\":{\"type\":\"reactHoc\",\"name\":\"withPasswordProtection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Password.map"],"mappings":"2HAEkK,SAAgB,EAAuB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAG,CAAM,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAoU,OAAnU,MAAc,CAAI,eAAe,QAAQ,EAAY,GAAG,QAAQ,EAAc,GAAK,EAAI,EAAE,CAAC,CAA6K,EAAgC,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAsB,EAAM,MAAM,CAAC,MAAM,EAAa,SAAS,CAAc,EAAK,MAAM,CAAC,MA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