{"version":3,"file":"Auth.DLdMFQlu.mjs","names":["useState","useRef","EyeSlash","Eye","LockSimpleOpen","LockSimple","ArrowUUpLeft"],"sources":["https:/framerusercontent.com/modules/uAjr8TateAyKTbh40NDe/KhiBayUzqPWv9gtQllj9/Auth.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls}from\"framer\";import{Eye,EyeSlash,LockSimple,LockSimpleOpen,ArrowUUpLeft}from\"phosphor-react\";// ===== CUSTOMIZATION SECTION =====\nconst ALLOWED_PASSWORDS=[\"#TOOLrelish2025**\",\"CBProfiler2025\",\"LFSneuro2025\",\"#2DayProgram26\"];const TEXT_CONTENT={title:\"NeuroPower™ Framework private content\",errorMessage:\"Incorrect password. Please try again.\",buttonText:\"Unlock Content\",returnButtonText:\"Return to Home\"};const RETURN_URL=\"https://www.neuro.group\";const STYLE_TOKENS={colors:{background:\"#171a38\",text:\"#fafafa\",primary:\"#304eff\",secondaryText:\"#A9AFBC\",buttonText:\"#fafafa\",error:\"#D8512A\",inputText:\"#171a38\",inputPlaceholder:\"#A9AFBC\",inputBorder:\"#3094FF\",inputBorderFocus:\"#3094FF\",inputBorderError:\"#D8512A\",buttonHover:\"#3094FF\",linkHover:\"#3094FF\"},fonts:{heading:\"Montserrat\",body:\"Gilroy\",button:\"Gilroy\"},fontSizes:{title:\"clamp(1.25rem, 1.586vw + 1.151rem, 2rem)\",paragraph:\"18px\",input:\"16px\",button:\"16px\",small:\"14px\"},fontWeights:{normal:\"500\",medium:\"600\",bold:\"800\"},spacing:{sm:\"8px\",md:\"12px\",lg:\"24px\",xl:\"32px\",xxl:\"48px\"},borderRadius:{small:\"8px\"},container:{maxWidth:\"400px\"}};// ===== END CUSTOMIZATION =====\nconst styles={container:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",minHeight:\"100vh\",backgroundColor:STYLE_TOKENS.colors.background,fontFamily:STYLE_TOKENS.fonts.body,color:STYLE_TOKENS.colors.text,padding:STYLE_TOKENS.spacing.md},header:{marginBottom:STYLE_TOKENS.spacing.lg,textAlign:\"center\"},title:{fontSize:STYLE_TOKENS.fontSizes.title,fontWeight:STYLE_TOKENS.fontWeights.bold,fontFamily:STYLE_TOKENS.fonts.heading,lineHeight:\"125%\",marginBottom:STYLE_TOKENS.spacing.sm},form:{width:\"100%\",maxWidth:STYLE_TOKENS.container.maxWidth},inputContainer:{position:\"relative\"},input:{width:\"100%\",fontFamily:STYLE_TOKENS.fonts.body,fontSize:STYLE_TOKENS.fontSizes.input,fontWeight:STYLE_TOKENS.fontWeights.normal,padding:\"10px 16px\",color:STYLE_TOKENS.colors.inputText,border:`2px solid ${STYLE_TOKENS.colors.inputBorder}`,borderRadius:STYLE_TOKENS.borderRadius.small,outline:\"none\",transition:\"border-color 0.3s\",WebkitAppearance:\"none\",MozAppearance:\"none\",appearance:\"none\"},inputError:{borderColor:STYLE_TOKENS.colors.inputBorderError},showPasswordButton:{position:\"absolute\",right:STYLE_TOKENS.spacing.md,top:\"50%\",transform:\"translateY(-50%)\",background:\"none\",border:\"none\",cursor:\"pointer\",padding:0},button:{width:\"100%\",padding:STYLE_TOKENS.spacing.md,marginTop:STYLE_TOKENS.spacing.lg,fontFamily:STYLE_TOKENS.fonts.button,fontSize:STYLE_TOKENS.fontSizes.button,fontWeight:STYLE_TOKENS.fontWeights.medium,color:STYLE_TOKENS.colors.buttonText,backgroundColor:STYLE_TOKENS.colors.primary,border:\"none\",borderRadius:STYLE_TOKENS.borderRadius.small,cursor:\"pointer\",transition:\"background-color 0.3s\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},buttonHovered:{backgroundColor:STYLE_TOKENS.colors.buttonHover},error:{color:STYLE_TOKENS.colors.error,marginTop:STYLE_TOKENS.spacing.md,fontSize:STYLE_TOKENS.fontSizes.small},returnLink:{marginTop:STYLE_TOKENS.spacing.xxl,color:STYLE_TOKENS.colors.text,textDecoration:\"none\",fontSize:STYLE_TOKENS.fontSizes.small,display:\"flex\",alignItems:\"center\"}};export function requireAuth(Component){return props=>{const[authenticated,setAuthenticated]=useState(false);const[showPassword,setShowPassword]=useState(false);const[errorMessage,setErrorMessage]=useState(\"\");const passwordRef=useRef(null);const[hovered,setHovered]=useState(false);const validateAuth=e=>{e.preventDefault();const inputPassword=e.target.elements.password.value;if(ALLOWED_PASSWORDS.includes(inputPassword)){setAuthenticated(true);setErrorMessage(\"\");}else{setAuthenticated(false);setErrorMessage(TEXT_CONTENT.errorMessage);}e.target.elements.password.value=\"\";};useEffect(()=>{if(passwordRef.current)passwordRef.current.focus();},[]);if(!authenticated){return /*#__PURE__*/_jsxs(\"div\",{style:styles.container,children:[/*#__PURE__*/_jsx(\"div\",{style:styles.header,children:/*#__PURE__*/_jsx(\"h1\",{style:styles.title,children:TEXT_CONTENT.title})}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:validateAuth,style:styles.form,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.inputContainer,children:[/*#__PURE__*/_jsx(\"input\",{type:showPassword?\"text\":\"password\",name:\"password\",ref:passwordRef,placeholder:\"Enter password to continue\",style:{...styles.input,...errorMessage?styles.inputError:{}},onFocus:e=>e.target.style.borderColor=STYLE_TOKENS.colors.inputBorderFocus,onBlur:e=>e.target.style.borderColor=errorMessage?STYLE_TOKENS.colors.inputBorderError:STYLE_TOKENS.colors.inputBorder,autoComplete:\"new-password\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setShowPassword(!showPassword),style:styles.showPasswordButton,children:showPassword?/*#__PURE__*/_jsx(EyeSlash,{size:20,color:\"#171a38\"})// 👈 updated icon color\n:/*#__PURE__*/_jsx(Eye,{size:20,color:\"#171a38\"})// 👈 updated icon color\n})]}),errorMessage&&/*#__PURE__*/_jsx(\"p\",{style:styles.error,children:errorMessage}),/*#__PURE__*/_jsxs(\"button\",{type:\"submit\",style:{...styles.button,...hovered?styles.buttonHovered:{}},onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),children:[hovered?/*#__PURE__*/_jsx(LockSimpleOpen,{size:20}):/*#__PURE__*/_jsx(LockSimple,{size:20}),/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:STYLE_TOKENS.spacing.sm},children:TEXT_CONTENT.buttonText})]})]}),/*#__PURE__*/_jsxs(\"a\",{href:RETURN_URL,style:styles.returnLink,onMouseEnter:e=>e.currentTarget.style.color=STYLE_TOKENS.colors.linkHover,onMouseOut:e=>e.currentTarget.style.color=STYLE_TOKENS.colors.text,children:[/*#__PURE__*/_jsx(ArrowUUpLeft,{size:16,style:{marginRight:STYLE_TOKENS.spacing.sm}}),TEXT_CONTENT.returnButtonText]})]});}return /*#__PURE__*/_jsx(Component,{...props});};}addPropertyControls(requireAuth,{});\nexport const __FramerMetadata__ = {\"exports\":{\"requireAuth\":{\"type\":\"reactHoc\",\"name\":\"requireAuth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Auth.map"],"mappings":"yQAEugE,SAAgB,EAAY,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAc,GAAkBA,EAAS,GAAM,CAAM,CAAC,EAAa,GAAiBA,EAAS,GAAM,CAAM,CAAC,EAAa,GAAiBA,EAAS,GAAG,CAAO,EAAYC,EAAO,KAAK,CAAM,CAAC,EAAQ,GAAYD,EAAS,GAAM,CAEx/C,OAFiyD,MAAc,CAAI,EAAY,SAAQ,EAAY,QAAQ,OAAO,EAAG,EAAE,CAAC,CAAK,EAEz1D,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAFk2D,EAAM,MAAM,CAAC,MAAM,EAAO,UAAU,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAO,OAAO,SAAsB,EAAK,KAAK,CAAC,MAAM,EAAO,MAAM,SAAS,EAAa,MAAM,CAAC,CAAC,CAAC,CAAc,EAAM,OAAO,CAAC,SAA9kB,G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