{"version":3,"file":"PasswordGate_1.BvxTlkfQ.mjs","names":["useState","useRef","useCallback","startTransition","_Fragment"],"sources":["https:/framerusercontent.com/modules/TJO5kPdfnw9SYmO6Sp1r/T2UGTWQbNLzBkESmc8HN/PasswordGate_1.js"],"sourcesContent":["// Password gate + page guard for Framer — ONE component, two modes.\n//\n//   • Mode \"gate\"  → the visible password form. Put it on your LOGIN page.\n//                    On a correct password it writes the key to storage and\n//                    sends the visitor to `redirectUrl` (the unlocked page).\n//\n//   • Mode \"guard\" → invisible at runtime. Put it on each PROTECTED page.\n//                    On load it checks the key and, if it's missing/wrong,\n//                    redirects to `redirectUrl` (your login page).\n//\n// Because both modes share the SAME key derivation, storage reads/writes and\n// comparison, the gate and guard can never disagree — which is what was causing\n// the endless redirect loop between the two old components.\n//\n// IMPORTANT: This is client-side protection only. Anyone can view source and\n// find the password. Use it for soft-gating (previews, drafts), not real security.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useCallback,useRef,startTransition,useEffect}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/* ------------------------------------------------------------------ *//* Shared storage helpers — the single source of truth for both modes *//* ------------------------------------------------------------------ */// Framer reports RenderTarget.preview for BOTH the editor preview AND the live\n// site, so we detect the editor preview by hostname instead. Only the editor\n// preview window runs on *.framercanvas.com; the published site does not.\nfunction isFramerPreviewEnv(){if(typeof window===\"undefined\")return false;return(window.location.host||\"\").includes(\"framercanvas.com\");}// In the editor preview we suffix the key so testing there doesn't pollute the\n// real key. Live (and canvas) use the plain key. This MUST be identical for the\n// gate and the guard, otherwise they read different keys and loop.\nfunction resolveKey(storageKey){return isFramerPreviewEnv()?`${storageKey}__framer_preview`:storageKey;}function readCookie(key){if(typeof document===\"undefined\")return null;try{const safe=key.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g,\"\\\\$&\");const m=document.cookie.match(new RegExp(`(?:^|; )${safe}=([^;]*)`));return m?decodeURIComponent(m[1]):null;}catch{return null;}}function writeCookie(key,value,storageType){if(typeof document===\"undefined\")return;try{const base=`${key}=${encodeURIComponent(value)}; path=/; samesite=lax`;document.cookie=storageType===\"local\"?`${base}; max-age=${60*60*24*365}`:base;}catch{// ignore\n}}// Read the stored value from any available source (session → local → cookie).\nfunction readStored(key){if(typeof window===\"undefined\")return null;let v=null;try{v=window.sessionStorage.getItem(key);}catch{// ignore\n}if(v==null){try{v=window.localStorage.getItem(key);}catch{// ignore\n}}if(v==null)v=readCookie(key);return v;}// Write to the chosen storage, mirror to both stores + a cookie for robustness.\nfunction writeStored(key,value,storageType){if(typeof window===\"undefined\")return;try{(storageType===\"local\"?window.localStorage:window.sessionStorage).setItem(key,value);}catch{// ignore\n}try{window.localStorage.setItem(key,value);}catch{// ignore\n}try{window.sessionStorage.setItem(key,value);}catch{// ignore\n}writeCookie(key,value,storageType);}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PasswordGate(props){const{mode=\"gate\",correctPassword=\"letmein\",storageKey=\"userPassword\",storageType=\"session\",redirectUrl=\"/dashboard\",loginUrl=\"/login\",redirectDelay=600,placeholder=\"Enter password\",submitLabel=\"Submit\",errorMessage=\"Incorrect password. Please try again.\",successMessage=\"Access granted\",showToggle=true,font={},inputFont={},inputBackground=\"#FFFFFF\",inputBorderColor=\"#EEEEEE\",focusBorderColor=\"#000000\",inputTextColor=\"#000000\",errorColor=\"#E5484D\",successColor=\"#30A46C\",buttonBackground=\"#000000\",buttonTextColor=\"#FFFFFF\",borderRadius=8,inputPadding=\"12px 16px\",buttonPadding=\"12px 16px\",gap=12,style,...rest}=props;const[password,setPassword]=useState(\"\");const[showPassword,setShowPassword]=useState(false);const[state,setState]=useState(\"idle\");const[isShaking,setIsShaking]=useState(false);const[isFocused,setIsFocused]=useState(false);// Editor/build contexts where we must NOT navigate. Live reports as\n// \"preview\", not canvas, so isCanvasLike is correctly false on the live site.\nconst target=RenderTarget.current();const isCanvasLike=target===RenderTarget.canvas||target===RenderTarget.thumbnail||target===RenderTarget.export;// Fires a redirect at most once per page load, and never to the page we're\n// already on — together these make any redirect loop impossible.\nconst hasRedirectedRef=useRef(false);const navigateOnce=useCallback((rawUrl,delay)=>{if(!rawUrl||typeof window===\"undefined\")return;if(hasRedirectedRef.current)return;let href=rawUrl;let alreadyThere=false;try{const t=new URL(rawUrl,window.location.href);href=t.href;const samePath=t.pathname.replace(/\\/+$/,\"\")===window.location.pathname.replace(/\\/+$/,\"\");alreadyThere=t.origin===window.location.origin&&samePath;}catch{alreadyThere=rawUrl.replace(/\\/+$/,\"\")===window.location.pathname.replace(/\\/+$/,\"\");}if(alreadyThere)return;hasRedirectedRef.current=true;window.setTimeout(()=>{try{window.location.assign(href);}catch{window.location.href=href;}},Math.max(0,delay));},[]);// The single auth check used by gate, guard AND submit.\nconst isAuthed=useCallback(()=>{if(typeof window===\"undefined\")return false;const stored=readStored(resolveKey(storageKey));return stored!=null&&stored===correctPassword;},[storageKey,correctPassword]);/* GUARD mode: invisible protector. Send back to the login page if not authed. */useEffect(()=>{if(mode!==\"guard\")return;if(isCanvasLike||typeof window===\"undefined\")return;if(!isAuthed()){navigateOnce(loginUrl,0);}},[mode,isCanvasLike,isAuthed,navigateOnce,loginUrl]);/* GATE mode: if already authed, skip the login page. */useEffect(()=>{if(mode!==\"gate\")return;if(isCanvasLike||typeof window===\"undefined\")return;if(isAuthed()){startTransition(()=>setState(\"success\"));navigateOnce(redirectUrl,redirectDelay);}},[mode,isCanvasLike,isAuthed,navigateOnce,redirectUrl,redirectDelay]);const handleSubmit=useCallback(e=>{if(e)e.preventDefault();if(!password||isCanvasLike)return;if(password===correctPassword){startTransition(()=>setState(\"success\"));writeStored(resolveKey(storageKey),password,storageType);navigateOnce(redirectUrl,redirectDelay);}else{startTransition(()=>{setState(\"error\");setIsShaking(true);});setTimeout(()=>{startTransition(()=>setIsShaking(false));},500);startTransition(()=>setPassword(\"\"));}},[password,correctPassword,isCanvasLike,storageKey,storageType,navigateOnce,redirectUrl,redirectDelay]);const handleInputChange=useCallback(e=>{const value=e.target.value;startTransition(()=>{setPassword(value);if(state===\"error\"&&!isCanvasLike){setState(\"idle\");}});},[state,isCanvasLike]);const handleKeyDown=useCallback(e=>{if(e.key===\"Enter\"){handleSubmit();}},[handleSubmit]);const togglePasswordVisibility=useCallback(()=>{startTransition(()=>setShowPassword(prev=>!prev));},[]);/* -------------------------------------------------------------- *//* GUARD mode rendering: a small placeholder on the canvas so it's *//* selectable, and nothing at all on the live site.                *//* -------------------------------------------------------------- */if(mode===\"guard\"){if(isCanvasLike){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10,padding:12,border:\"1px dashed #CCCCCC\",borderRadius:8,background:\"#FFFFFF\",boxSizing:\"border-box\",...style},\"aria-label\":\"Page guard placeholder\",children:[/*#__PURE__*/_jsx(\"div\",{style:{width:28,height:28,borderRadius:6,background:\"#F0F0F0\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"0 0 auto\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"#666666\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"11\",width:\"18\",height:\"11\",rx:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M7 11V7a5 5 0 0 1 10 0v4\"})]})}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13,fontWeight:600,color:\"#000000\",lineHeight:\"1.2em\"},children:\"Page Guard (hidden on site)\"}),/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:12,color:\"#666666\",lineHeight:\"1.2em\",whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},children:[\"No access → \",loginUrl||\"set Login Page URL\"]})]})]});}// Runtime: render nothing. The effect above handles the redirect.\nreturn null;}/* -------------------------------------------------------------- *//* GATE mode rendering: the password form (styling unchanged).     *//* -------------------------------------------------------------- */const isDisabled=!password||state===\"success\";const currentBorderColor=state===\"error\"?errorColor:state===\"success\"?successColor:isFocused?focusBorderColor:inputBorderColor;const displayState=isCanvasLike?\"idle\":state;const displayBorderColor=isCanvasLike?inputBorderColor:currentBorderColor;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:12,...style},...rest,children:[/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit,style:{display:\"flex\",flexDirection:\"column\",gap:gap},children:[/*#__PURE__*/_jsxs(motion.div,{animate:isShaking?{x:[-10,10,-10,10,0]}:{x:0},transition:{duration:.4},style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"input\",{type:showPassword?\"text\":\"password\",value:password,onChange:handleInputChange,onKeyDown:handleKeyDown,onFocus:()=>startTransition(()=>setIsFocused(true)),onBlur:()=>startTransition(()=>setIsFocused(false)),placeholder:placeholder,disabled:state===\"success\",style:{width:\"100%\",padding:inputPadding,paddingRight:showToggle?\"48px\":undefined,backgroundColor:inputBackground,border:`1px solid ${displayBorderColor}`,borderRadius:`${borderRadius}px`,color:inputTextColor,outline:\"none\",transition:\"border-color 0.2s ease\",boxSizing:\"border-box\",...inputFont}}),showToggle&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:togglePasswordVisibility,disabled:state===\"success\",style:{position:\"absolute\",right:\"12px\",top:\"50%\",transform:\"translateY(-50%)\",background:\"none\",border:\"none\",cursor:state===\"success\"?\"default\":\"pointer\",padding:\"4px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:state===\"success\"?.5:.6},\"aria-label\":showPassword?\"Hide password\":\"Show password\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:inputTextColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:showPassword?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"1\",y1:\"1\",x2:\"23\",y2:\"23\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"3\"})]})})})]}),/*#__PURE__*/_jsx(motion.button,{type:\"submit\",disabled:isDisabled,whileHover:!isDisabled?{scale:1.02}:{},whileTap:!isDisabled?{scale:.98}:{},style:{width:\"100%\",padding:buttonPadding,backgroundColor:buttonBackground,opacity:isDisabled?.5:1,color:buttonTextColor,border:\"none\",borderRadius:`${borderRadius}px`,cursor:isDisabled?\"not-allowed\":\"pointer\",transition:\"background-color 0.2s ease, opacity 0.2s ease\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,...font},children:displayState===\"success\"?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:buttonTextColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"20 6 9 17 4 12\"})}),successMessage]}):submitLabel})]}),/*#__PURE__*/_jsxs(AnimatePresence,{mode:\"wait\",children:[displayState===\"error\"&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},style:{color:errorColor,fontSize:\"14px\",...font},children:errorMessage},\"error\"),displayState===\"success\"&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},style:{color:successColor,fontSize:\"14px\",...font},children:successMessage},\"success\")]})]});}addPropertyControls(PasswordGate,{// NEW — the only added control. Everything below is unchanged.\nmode:{type:ControlType.Enum,title:\"Mode\",options:[\"gate\",\"guard\"],optionTitles:[\"Gate (form)\",\"Guard (hidden)\"],defaultValue:\"gate\",displaySegmentedControl:true},correctPassword:{type:ControlType.String,title:\"Correct Password\",defaultValue:\"letmein\"},storageKey:{type:ControlType.String,title:\"Storage Key\",defaultValue:\"userPassword\"},storageType:{type:ControlType.Enum,title:\"Storage Type\",options:[\"session\",\"local\"],optionTitles:[\"Session\",\"Local\"],defaultValue:\"session\",displaySegmentedControl:true},redirectUrl:{type:ControlType.Link,title:\"Success URL\",defaultValue:\"/dashboard\",// Gate mode only: where to send the visitor AFTER a correct password.\nhidden:({mode})=>mode===\"guard\"},loginUrl:{type:ControlType.Link,title:\"Login Page URL\",defaultValue:\"/login\",// Guard mode only: where to send visitors who are NOT unlocked.\nhidden:({mode})=>mode===\"gate\"},redirectDelay:{type:ControlType.Number,title:\"Redirect Delay\",defaultValue:600,min:0,max:5e3,step:100,unit:\"ms\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter password\"},submitLabel:{type:ControlType.String,title:\"Submit Label\",defaultValue:\"Submit\"},errorMessage:{type:ControlType.String,title:\"Error Message\",defaultValue:\"Incorrect password. Please try again.\",displayTextArea:true},successMessage:{type:ControlType.String,title:\"Success Message\",defaultValue:\"Access granted\"},showToggle:{type:ControlType.Boolean,title:\"Show/Hide Toggle\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},inputFont:{type:ControlType.Font,title:\"Input Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},inputBackground:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"#FFFFFF\"},inputBorderColor:{type:ControlType.Color,title:\"Input Border\",defaultValue:\"#EEEEEE\"},focusBorderColor:{type:ControlType.Color,title:\"Focus Border\",defaultValue:\"#000000\"},inputTextColor:{type:ControlType.Color,title:\"Input Text\",defaultValue:\"#000000\"},errorColor:{type:ControlType.Color,title:\"Error Color\",defaultValue:\"#E5484D\"},successColor:{type:ControlType.Color,title:\"Success Color\",defaultValue:\"#30A46C\"},buttonBackground:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#000000\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},inputPadding:{type:ControlType.Padding,title:\"Input Padding\",defaultValue:\"12px 16px\"},buttonPadding:{type:ControlType.Padding,title:\"Button Padding\",defaultValue:\"12px 16px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:48,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordGate\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PasswordGate_1.map"],"mappings":"0RAmBA,SAAS,GAAoB,CAA6C,OAAlC,IAAS,SAAgC,EAAO,SAAS,MAAM,GAAA,CAAI,SAAS,kBAAkB,CAAE,CAGxI,SAAS,EAAW,EAAW,CAAC,OAAO,E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