{"version":3,"file":"Password_Code.DkBIOky9.mjs","names":["useState","useCallback"],"sources":["https:/framerusercontent.com/modules/kqUlaibhYDxPVgNk9zQV/EUL8aGLQngtvqGsQihNI/Password_Code.js"],"sourcesContent":["/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,useEffect}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function PasswordProtectedScreen(props){const isFramerEditor=()=>{if(typeof window===\"undefined\")return false;if(window.FramerDesignTimeModeEnabled!==undefined)return true;if(window.frames&&window.frames.CurrentContext&&window.frames.CurrentContext.isDesignTime)return true;if(window.document&&window.document.documentElement.hasAttribute(\"data-framer-preview-mode\"))return false;const url=window.location.href;return url.includes(\"framer.com\")&&(url.includes(\"/editor\")||url.includes(\"/projects\")||!url.includes(\"/preview\"));};if(isFramerEditor()){return null;}const{password,hint,overlayImage,inputBackground=\"#ffffff\",inputTextColor=\"#000000\",inputBorderColor=\"#dddddd\",buttonBackground=\"#8282E3\",buttonTextColor=\"#ffffff\",errorTextColor=\"#ff0000\"}=props;const[inputValue,setInputValue]=useState(\"\");const[isAuthenticated,setIsAuthenticated]=useState(false);const[error,setError]=useState(\"\");useEffect(()=>{if(typeof document===\"undefined\")return;const prevOverflow=document.body.style.overflow;if(!isAuthenticated){document.body.style.overflow=\"hidden\";}return()=>{document.body.style.overflow=prevOverflow;};},[isAuthenticated]);const handlePasswordSubmit=useCallback(()=>{if(inputValue===password){setIsAuthenticated(true);}else{setError(\"Incorrect password. Please try again.\");setInputValue(\"\");}},[inputValue,password]);const handleKeyPress=useCallback(e=>{if(e.key===\"Enter\")handlePasswordSubmit();},[handlePasswordSubmit]);if(isAuthenticated)return null;return /*#__PURE__*/_jsx(motion.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.3},style:{position:\"fixed\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"20px\",zIndex:999999,backgroundImage:`url(${overlayImage})`,backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\"},children:/*#__PURE__*/_jsxs(motion.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1},style:{maxWidth:\"600px\",width:\"100%\",textAlign:\"center\",backgroundColor:\"rgba(255,255,255,0.4)\",padding:\"48px\",borderRadius:\"24px\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{marginBottom:\"12px\",fontFamily:'\"Lora\", serif',fontWeight:400,fontSize:\"36px\",lineHeight:1.3,letterSpacing:\"-0.01em\",color:\"#000\"},children:\"Welcome to GenAI Personas Methodology page\"}),/*#__PURE__*/_jsxs(\"p\",{style:{opacity:.9,margin:\"0 auto 24px\",maxWidth:\"560px\",fontFamily:'\"Inter\", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, \"Apple Color Emoji\", \"Segoe UI Emoji\"',fontWeight:300,fontSize:\"17px\",lineHeight:1.6,color:\"#000\",whiteSpace:\"pre-wrap\"},children:[\"This section is dedicated to how AlgoVerde creates and validates their GenAI Personas.\",\"\\n\\n\",\"To request access, please email\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"mailto:info@continuumlab.ai\",style:{fontWeight:600,textDecoration:\"none\",color:\"inherit\"},children:\"info@continuumlab.ai\"})]}),hint&&/*#__PURE__*/_jsxs(\"p\",{style:{opacity:.7,marginBottom:\"24px\",color:\"#000\",fontFamily:'\"Inter\", sans-serif',fontSize:\"14px\"},children:[\"Hint: \",hint]}),/*#__PURE__*/_jsx(\"input\",{type:\"password\",value:inputValue,onChange:e=>setInputValue(e.target.value),onKeyPress:handleKeyPress,style:{padding:\"12px 16px\",borderRadius:\"8px\",border:`1px solid ${inputBorderColor}`,fontSize:\"16px\",width:\"100%\",marginBottom:\"16px\",backgroundColor:inputBackground,color:inputTextColor,fontFamily:'\"Inter\", sans-serif'},placeholder:\"Enter password\",autoFocus:true}),error&&/*#__PURE__*/_jsx(motion.p,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},style:{color:errorTextColor,margin:\"8px 0 16px\",fontFamily:'\"Inter\", sans-serif'},children:error}),/*#__PURE__*/_jsx(motion.button,{whileHover:{backgroundColor:\"#FFAB91\"},whileTap:{scale:1},onClick:handlePasswordSubmit,style:{padding:\"12px 24px\",borderRadius:\"8px\",border:\"none\",backgroundColor:buttonBackground,color:buttonTextColor,fontSize:\"16px\",cursor:\"pointer\",width:\"100%\",fontWeight:500,fontFamily:'\"Inter\", sans-serif',transition:\"background-color 0.2s ease\"},children:\"Continue\"})]})});}PasswordProtectedScreen.defaultProps={password:\"AlgoVerde25!\",hint:\"\",overlayImage:\"/mnt/data/3140b3ab-eee7-41b2-8728-204ba4884b3d.png\",inputBackground:\"#f9f9f9\",inputTextColor:\"#000000\",inputBorderColor:\"#dddddd\",buttonBackground:\"#8282E3\",buttonTextColor:\"#ffffff\",errorTextColor:\"#ff0000\"};addPropertyControls(PasswordProtectedScreen,{password:{type:ControlType.String,title:\"Password\",defaultValue:\"AlgoVerde25!\"},hint:{type:ControlType.String,title:\"Hint\",defaultValue:\"\"},overlayImage:{type:ControlType.Image,title:\"Overlay Image\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordProtectedScreen\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Password_Code.map"],"mappings":"8PAGoM,SAAwB,EAAwB,EAAM,CAAye,QAA/c,CAAC,GAAU,IAAS,OAAY,MAAO,GAAoE,GAA3D,EAAO,8BAA8B,IAAA,IAAyB,EAAO,QAAQ,EAAO,OAAO,gBAAgB,EAAO,OAAO,eAAe,aAAa,MAAO,GAAK,GAAG,EAAO,UAAU,EAAO,SAAS,gBAAgB,aAAa,0BAA0B,EAAE,MAAO,GAAM,IAAM,EAAI,EAAO,SAAS,KAAK,OAAO,EA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