{"version":3,"file":"shared-lib.BURni0sd.mjs","names":["useRef","useCallback","useState"],"sources":["https:/framerusercontent.com/modules/xuQiZJpaFMZCNtFPUZ7d/8tRxwoPq5paGGqku3drj/PasswordOverrides.js","https:/framerusercontent.com/modules/ejQm1frjCBACrVRwfIbP/7AuOpYhlYKL04Wate8rh/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{startTransition,forwardRef,useCallback,useEffect,useRef,useState}from\"react\";const PASSWORD_INPUT_SCOPE_ATTR=\"data-password-mask-size\";const PASSWORD_INPUT_SCOPE_VALUE=\"with-password-input\";const PASSWORD_INPUT_STYLE_TAG_ID=\"with-password-input-placeholder-style\";const PASSWORD_UNLOCKED_STORAGE_KEY=\"tm-password-unlocked\";const PASSWORD_UNLOCKED_VALUE=\"1\";function readUnlockedFlag(){if(typeof window===\"undefined\")return false;try{if(window.sessionStorage?.getItem(PASSWORD_UNLOCKED_STORAGE_KEY)===PASSWORD_UNLOCKED_VALUE){return true;}}catch(_error){}try{if(window.localStorage?.getItem(PASSWORD_UNLOCKED_STORAGE_KEY)===PASSWORD_UNLOCKED_VALUE){return true;}}catch(_error){}return false;}function writeUnlockedFlag(){if(typeof window===\"undefined\")return;try{window.sessionStorage?.setItem(PASSWORD_UNLOCKED_STORAGE_KEY,PASSWORD_UNLOCKED_VALUE);}catch(_error){}try{window.localStorage?.setItem(PASSWORD_UNLOCKED_STORAGE_KEY,PASSWORD_UNLOCKED_VALUE);}catch(_error){}}function resolvePostUnlockTarget(){if(typeof window===\"undefined\")return\"/\";const fallback=\"/\";const search=window.location.search||\"\";const returnTo=new URLSearchParams(search).get(\"returnTo\");if(!returnTo)return fallback;if(!returnTo.startsWith(\"/\"))return fallback;if(returnTo.startsWith(\"//\"))return fallback;if(returnTo===\"/password\"||returnTo.startsWith(\"/password?\")||returnTo.startsWith(\"/password#\")){return fallback;}return returnTo;}// User request: Create a code override export that can be applied to an existing Framer canvas form input element to make it behave as a password field, while preserving canvas-editable visuals and existing input behavior.\nexport function withPasswordInput(Component){return /*#__PURE__*/forwardRef(function WithPasswordInput(props,ref){const localElementRef=useRef(null);const assignRefs=useCallback(node=>{localElementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);useEffect(()=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){const root=localElementRef.current;if(!root)return;const targetInput=root instanceof HTMLInputElement?root:root.querySelector(\"input\");if(!targetInput)return;if(targetInput.type!==\"password\"){targetInput.setAttribute(\"type\",\"password\");}// Scope placeholder sizing to this override only.\ntargetInput.setAttribute(PASSWORD_INPUT_SCOPE_ATTR,PASSWORD_INPUT_SCOPE_VALUE);// Increase only masked/password character size.\ntargetInput.style.fontSize=\"24px\";targetInput.style.lineHeight=\"28px\";// Inject placeholder reset style once.\nconst existingStyleTag=document.getElementById(PASSWORD_INPUT_STYLE_TAG_ID);if(!existingStyleTag){const styleTag=document.createElement(\"style\");styleTag.id=PASSWORD_INPUT_STYLE_TAG_ID;styleTag.textContent=`\ninput[${PASSWORD_INPUT_SCOPE_ATTR}=\"${PASSWORD_INPUT_SCOPE_VALUE}\"]::placeholder {\n    font-size: 16px;\n    line-height: 24px;\n}\n`;document.head.appendChild(styleTag);}}else{return;}},[props]);return /*#__PURE__*/_jsx(Component,{ref:assignRefs,...props,type:\"password\"});});}export function withPasswordGate(Component){return /*#__PURE__*/forwardRef(function WithPasswordGate(props,ref){const localElementRef=useRef(null);const assignRefs=useCallback(node=>{localElementRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);const findTargetInput=useCallback(root=>{if(typeof document===\"undefined\")return null;const findInScope=scope=>{if(!scope)return null;const namedInput=scope.querySelector('input[name=\"Password\"]');if(namedInput instanceof HTMLInputElement)return namedInput;const firstInput=scope.querySelector(\"input\");return firstInput instanceof HTMLInputElement?firstInput:null;};if(root instanceof HTMLInputElement)return root;// 1) Search inside override root.\nconst rootInput=findInScope(root);if(rootInput)return rootInput;// 2) Search inside closest form.\nconst closestForm=root?.closest(\"form\");const formInput=findInScope(closestForm);if(formInput)return formInput;// 3) Search document by named input.\nconst documentNamedInput=document.querySelector('input[name=\"Password\"]');if(documentNamedInput instanceof HTMLInputElement)return documentNamedInput;// 4) Fallback to first input in document.\nconst documentFirstInput=document.querySelector(\"input\");return documentFirstInput instanceof HTMLInputElement?documentFirstInput:null;},[]);const handlePasswordCheck=useCallback(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const targetInput=findTargetInput(localElementRef.current);if(!targetInput)return;if(typeof targetInput.setCustomValidity===\"function\"){targetInput.setCustomValidity(\"\");}const value=targetInput.value;if(value===\"ThinkDifferent2\"){writeUnlockedFlag();window.location.assign(resolvePostUnlockTarget());return;}targetInput.value=\"\";targetInput.focus();if(typeof targetInput.setCustomValidity===\"function\"){targetInput.setCustomValidity(\"\");}targetInput.dispatchEvent(new Event(\"input\",{bubbles:true}));targetInput.dispatchEvent(new Event(\"change\",{bubbles:true}));},[findTargetInput]);const onSubmit=useCallback(event=>{event.preventDefault();handlePasswordCheck();},[handlePasswordCheck]);const onKeyDown=useCallback(event=>{if(event.key!==\"Enter\")return;const target=event.target;if(!(target instanceof HTMLInputElement))return;const root=localElementRef.current;const gateInput=findTargetInput(root);if(!gateInput||target!==gateInput)return;event.preventDefault();handlePasswordCheck();},[findTargetInput,handlePasswordCheck]);const onClick=useCallback(event=>{event.preventDefault();handlePasswordCheck();},[handlePasswordCheck]);return /*#__PURE__*/_jsx(Component,{ref:assignRefs,...props,onSubmit:onSubmit,onKeyDown:onKeyDown,onClick:onClick});});}export function withPasswordProtection(Component){return /*#__PURE__*/forwardRef(function WithPasswordProtection(props,ref){const[canRenderProtectedContent,setCanRenderProtectedContent]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const{pathname,search,hash}=window.location;if(pathname===\"/password\"||readUnlockedFlag()){startTransition(()=>{setCanRenderProtectedContent(true);});return;}const returnTo=`${pathname||\"/\"}${search||\"\"}${hash||\"\"}`;const target=`/password?returnTo=${encodeURIComponent(returnTo)}`;window.location.assign(target);},[]);if(!canRenderProtectedContent)return null;return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordInput\":{\"type\":\"reactHoc\",\"name\":\"withPasswordInput\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPasswordProtection\":{\"type\":\"reactHoc\",\"name\":\"withPasswordProtection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPasswordGate\":{\"type\":\"reactHoc\",\"name\":\"withPasswordGate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PasswordOverrides.map","// Generated by Framer (34c068c)\nexport default function metadata(params,activeLocale){return{description:\"I design intent at scale. Every decision answers a simple question: where am I going, and why does it matter?\\nUsers don’t want features—they want certainty. So I build experiences that don’t just get noticed.\\nThey’re believed.\",favicon:\"https://framerusercontent.com/assets/KZ2OaqRIF2lpILIleDwFzyuP9s.png\",robots:\"max-image-preview:large\",title:\"Trevor Morrow - Product Designer in PGH\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mKAAuZ,SAAS,GAAkB,CAAC,GAAU,IAAS,OAAY,MAAO,GAAM,GAAG,CAAC,GAAG,EAAO,gBAAgB,QAAQ,EAA8B,GAAG,EAAyB,MAAO,QAAoB,EAAE,GAAG,CAAC,GAAG,EAAO,cAAc,QAAQ,EAA8B,GAAG,EAAyB,MAAO,QAAoB,EAAE,MAAO,GAAO,SAAS,GAAmB,CAAI,GAAO,IAAS,OAAmB,IAAG,CAAC,E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