{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/qBkmgEwEoI8ZeBHDogsa/EeSbOiI3jnztPgVZz8Qm/Password_Snapchat.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{Eye,EyeSlash,Lock}from\"phosphor-react\";const brandColor=\"#000000\";export function withPasswordProtection(Component){return props=>{const PASSWORDS=[\"snap21\"];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\",flexDirection:\"column\",height:\"fit-content\",maxWidth:\"1000px\",padding:\"200px 20px\"},children:/*#__PURE__*/_jsxs(\"form\",{onSubmit:handlePasswordSubmit,style:{display:\"flex\",flexDirection:\"column\",width:\"100%\",gap:\"10px\",position:\"relative\",justifyContent:\"center\",alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"label\",{style:{padding:\"12px\",fontFamily:\"inter\",fontSize:\"42px\",letterSpacing:\"-2.5px\",display:\"flex\"},children:[/*#__PURE__*/_jsx(Lock,{size:48,color:\"#000000\"}),\"Please enter or request password\"]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",width:\"100%\",fontFamily:\"inter\",fontSize:\"20px\"},children:[/*#__PURE__*/_jsx(\"input\",{type:showPassword?\"text\":\"Password\",name:\"password\",style:{padding:\"16px\",fontFamily:\"inter\",fontSize:\"20px\",borderRadius:\"12px\",border:\"2px solid #DBDBDB\",width:\"100%\",backgroundColor:\"transparent\"}}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setShowPassword(!showPassword),style:{position:\"absolute\",right:\"10px\",top:\"12px\",fill:\"transparent\",backgroundColor:\"transparent\",border:\"none\",cursor:\"pointer\"},children:showPassword?/*#__PURE__*/_jsx(EyeSlash,{size:34,color:\"#C7C7C7\",weight:\"regular\"}):/*#__PURE__*/_jsx(Eye,{size:34,color:\"#C7C7C7\",weight:\"regular\"})})]})]})});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordProtection\":{\"type\":\"reactHoc\",\"name\":\"withPasswordProtection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Password_Snapchat.map"],
  "mappings": "8GAAqK,SAASA,EAAuBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAU,CAAC,QAAQ,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,EAAg3CQ,EAAKX,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAt2CU,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,cAAc,SAAS,OAAO,cAAc,SAAS,SAAS,QAAQ,YAAY,EAAE,SAAsBC,EAAM,OAAO,CAAC,SAASJ,EAAqB,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,MAAM,OAAO,IAAI,OAAO,SAAS,WAAW,eAAe,SAAS,WAAW,QAAQ,EAAE,SAAS,CAAcI,EAAM,QAAQ,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,QAAQ,SAAS,OAAO,cAAc,SAAS,QAAQ,MAAM,EAAE,SAAS,CAAcD,EAAKE,EAAK,CAAC,KAAK,GAAG,MAAM,SAAS,CAAC,EAAE,kCAAkC,CAAC,CAAC,EAAeD,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,OAAO,MAAM,OAAO,WAAW,QAAQ,SAAS,MAAM,EAAE,SAAS,CAAcD,EAAK,QAAQ,CAAC,KAAKL,EAAa,OAAO,WAAW,KAAK,WAAW,MAAM,CAAC,QAAQ,OAAO,WAAW,QAAQ,SAAS,OAAO,aAAa,OAAO,OAAO,oBAAoB,MAAM,OAAO,gBAAgB,aAAa,CAAC,CAAC,EAAeK,EAAK,SAAS,CAAC,KAAK,SAAS,QAAQ,IAAIJ,EAAgB,CAACD,CAAY,EAAE,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,IAAI,OAAO,KAAK,cAAc,gBAAgB,cAAc,OAAO,OAAO,OAAO,SAAS,EAAE,SAASA,EAA0BK,EAAKG,EAAS,CAAC,KAAK,GAAG,MAAM,UAAU,OAAO,SAAS,CAAC,EAAeH,EAAKI,EAAI,CAAC,KAAK,GAAG,MAAM,UAAU,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAkD,CAAE",
  "names": ["withPasswordProtection", "Component", "props", "PASSWORDS", "authenticated", "setAuthenticated", "ye", "showPassword", "setShowPassword", "handlePasswordSubmit", "e", "inputPassword", "p", "u", "BP", "Xj", "Uj"]
}
