{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/bRmoZ3l462qi4gp3pg2a/sQomODgV3bvkoW5xtAbT/Password2.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{Eye,EyeSlash}from\"phosphor-react\";const brandColor=\"#6D24FF\";export function withPasswordProtection(Component){return props=>{const PASSWORDS=[\"1357\",\"8292\"];const[authenticated,setAuthenticated]=useState(false);const[showPassword,setShowPassword]=useState(false);const handlePasswordSubmit=e=>{e.preventDefault();const inputPassword=e.target.elements.password.value;if(PASSWORDS.includes(inputPassword)){setAuthenticated(true);}else{alert(\"Incorrect password\");}};if(!authenticated){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",height:\"100vh\",flexDirection:\"column\"},children:/*#__PURE__*/_jsxs(\"form\",{onSubmit:handlePasswordSubmit,style:{display:\"flex\",flexDirection:\"column\",width:\"250px\",gap:\"10px\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"label\",{style:{fontSize:\"16px\"},children:\"Password:\"}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"input\",{type:showPassword?\"text\":\"password\",name:\"password\",style:{padding:\"12px\",fontSize:\"16px\",borderRadius:\"4px\",border:\"1px solid #ccc\",width:\"100%\"}}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setShowPassword(!showPassword),style:{position:\"absolute\",right:\"10px\",background:\"none\",border:\"none\",cursor:\"pointer\"},children:showPassword?/*#__PURE__*/_jsx(EyeSlash,{size:20,color:\"#6D24FF\",weight:\"bold\"}):/*#__PURE__*/_jsx(Eye,{size:20,color:\"#6D24FF\",weight:\"bold\"})})]}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",style:{padding:\"8px\",fontSize:\"16px\",fontFamily:\"Onest\",borderRadius:\"4px\",border:\"none\",backgroundColor:brandColor,color:\"white\",cursor:\"pointer\"},children:\"Submit\"})]})});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordProtection\":{\"type\":\"reactHoc\",\"name\":\"withPasswordProtection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Password2.map"],
  "mappings": "uGAA8H,IAAMA,EAAW,UAAiB,SAASC,EAAuBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAU,CAAC,OAAO,MAAM,EAAO,CAACC,EAAcC,CAAgB,EAAEC,EAAS,EAAK,EAAO,CAACC,EAAaC,CAAe,EAAEF,EAAS,EAAK,EAAQG,EAAqBC,GAAG,CAACA,EAAE,eAAe,EAAE,IAAMC,EAAcD,EAAE,OAAO,SAAS,SAAS,MAASP,EAAU,SAASQ,CAAa,EAAGN,EAAiB,EAAI,EAAQ,MAAM,oBAAoB,CAAG,EAAE,OAAID,EAAqtCQ,EAAKX,EAAU,CAAC,GAAGC,CAAK,CAAC,EAA3sCU,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,QAAQ,cAAc,QAAQ,EAAE,SAAsBC,EAAM,OAAO,CAAC,SAASJ,EAAqB,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,MAAM,QAAQ,IAAI,OAAO,SAAS,UAAU,EAAE,SAAS,CAAcG,EAAK,QAAQ,CAAC,MAAM,CAAC,SAAS,MAAM,EAAE,SAAS,WAAW,CAAC,EAAeC,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,OAAO,WAAW,QAAQ,EAAE,SAAS,CAAcD,EAAK,QAAQ,CAAC,KAAKL,EAAa,OAAO,WAAW,KAAK,WAAW,MAAM,CAAC,QAAQ,OAAO,SAAS,OAAO,aAAa,MAAM,OAAO,iBAAiB,MAAM,MAAM,CAAC,CAAC,EAAeK,EAAK,SAAS,CAAC,KAAK,SAAS,QAAQ,IAAIJ,EAAgB,CAACD,CAAY,EAAE,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,WAAW,OAAO,OAAO,OAAO,OAAO,SAAS,EAAE,SAASA,EAA0BK,EAAKE,EAAS,CAAC,KAAK,GAAG,MAAM,UAAU,OAAO,MAAM,CAAC,EAAeF,EAAKG,EAAI,CAAC,KAAK,GAAG,MAAM,UAAU,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAeH,EAAK,SAAS,CAAC,KAAK,SAAS,MAAM,CAAC,QAAQ,MAAM,SAAS,OAAO,WAAW,QAAQ,aAAa,MAAM,OAAO,OAAO,gBAAgBb,EAAW,MAAM,QAAQ,OAAO,SAAS,EAAE,SAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAkD,CAAE",
  "names": ["brandColor", "withPasswordProtection", "Component", "props", "PASSWORDS", "authenticated", "setAuthenticated", "ye", "showPassword", "setShowPassword", "handlePasswordSubmit", "e", "inputPassword", "p", "u", "Xj", "Uj"]
}
