{"version":3,"file":"Password_Code.CPpqxDqa.mjs","names":["useState","useCallback","__esmMin","init_ssg_sandbox_shims","ne","window","_e","init_jsx_runtime","c","p","init_npm_react_18_3_1","ce","init_framer_motion_DhsWWWsN","motion","addPropertyControls","init_framer_Cb9Z_4vX","ControlType","PasswordProtectedScreen","url","props","inputValue","setInputValue","isAuthenticated","setIsAuthenticated","error","setError","prevOverflow","handlePasswordSubmit","password","handleKeyPress","overlayImage","hint","inputBorderColor","inputBackground","inputTextColor","errorTextColor","buttonBackground","buttonTextColor","init_Password_Code"],"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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