{"version":3,"file":"OpenOnHash.DfYNoLic.mjs","names":["useState","useRef","useCallback","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","ce","init_jsx_runtime","ne","J","_e","de","window","RenderTarget","init_framer_DDfsYcI0","normalize","text","ZERO_WIDTH","safeDecode","isVisible","el","findByText","selector","findTarget","id","TARGET_TEXT","isFaqPage","isFaqHref","href","path","url","targetFor","link","hash","byText","LINK_TEXT_TO_ID","offsetFor","prefersReducedMotion","scrollToTarget","top","smooth","isOffTarget","requestOpen","OPEN_EVENT","updateAddressBar","focusTarget","whenScrollSettles","last","still","waited","timer","tick","callback","rememberTarget","PENDING_KEY","takeRememberedTarget","raw","data","PENDING_MAX_AGE_MS","goTo","cancelPrevious","cancelSettle","fromKeyboard","onClick","event","useOpenCount","count","setCount","fromUrl","fromClick","pendingId","pendingAt","REOPEN_WINDOW_MS","open","n","onHash","onOpen","e","openOnTarget","fromHash","first","again","Component","props","OPEN_VARIANT","withOpenOnWithdraw","withOpenOnOtherStrategies","withOpenOnTransferStocks","withOpenOnScreening","linkToFaq","nodeRef","setRefs","node","ref","handler","withLinkToFaqScreening","init_OpenOnHash","\"Basics\"","\"Strategy\"","\"Protection\"","\"Costs\"","\"Withdrawals\"","\"basics\"","\"strategy\"","\"protection\"","\"costs\"","\"withdrawals\"","\"screening\"","w"],"sources":["https:/framerusercontent.com/modules/Q16M8tEVzRRT5oh5sDb7/CnCfvXRbHlXNpJJuqXzc/OpenOnHash.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";// FAQ page links: scrolls to the right section or question and opens linked questions.\n// Works even when Framer drops the \"#section\" part of an in-page link or the section ids,\n// which it does when the visitor reached the FAQ page from another page.\n// If you rename a section heading, a section link, or one of the three linked questions,\n// update LINK_TEXT_TO_ID and TARGET_TEXT below.\nconst OPEN_VARIANT=\"Open 1\"// open variant of Accordion Rich\n;const OPEN_EVENT=\"longroc-faq-open\";// Link text -> target id (used when Framer drops the \"#id\" from the link)\nconst LINK_TEXT_TO_ID={\"Basics\":\"basics\",\"Strategy\":\"strategy\",\"Right for me?\":\"right-for-me\",\"Protection\":\"protection\",\"Costs\":\"costs\",\"Day to day\":\"day-to-day\",\"Withdrawals\":\"withdrawals\",\"Getting started\":\"getting-started\",\"How do I withdraw money?\":\"how-do-i-withdraw-money\",\"Do you offer other strategies?\":\"do-you-offer-other-strategies\",\"Can I transfer stocks I already own?\":\"can-i-transfer-stocks-i-already-own\"};// Target id -> heading or question text on the page (used when Framer drops the ids)\nconst TARGET_TEXT={\"basics\":\"The basics\",\"strategy\":\"The strategy\",\"right-for-me\":\"Is Longroc right for me?\",\"protection\":\"Protecting your account\",\"costs\":\"What it costs\",\"day-to-day\":\"Day to day\",\"withdrawals\":\"Withdrawals and leaving\",\"getting-started\":\"Getting started\",\"how-do-i-withdraw-money\":\"How do I withdraw money?\",\"do-you-offer-other-strategies\":\"Do you offer other strategies?\",\"can-i-transfer-stocks-i-already-own\":\"Can I transfer stocks I already own?\",\"screening\":\"What won’t you invest in?\"};// A question opened by a link also opens if the page redraws within this time.\nconst REOPEN_WINDOW_MS=2e3;let pendingId=null;let pendingAt=0;let cancelPrevious=null;const ZERO_WIDTH=new RegExp(\"[\"+String.fromCharCode(8203,8204,8205,8288,65279)+\"]\",\"g\");function normalize(text){return text.replace(ZERO_WIDTH,\"\").replace(/\\s+/g,\" \").trim();}function safeDecode(text){try{return decodeURIComponent(text);}catch{return text;}}function isVisible(el){return el.getClientRects().length>0;}// Headings first, then paragraphs; never a link, a navigation, or a paragraph holding a link.\nfunction findByText(text){for(const selector of[\"h1, h2, h3, h4, h5, h6\",\"p\"]){for(const el of Array.from(document.querySelectorAll(selector))){if(el.closest(\"a, nav\")||el.querySelector(\"a\"))continue;if(normalize(el.textContent||\"\")===text&&isVisible(el))return el;}}return null;}// Finds the visible section or question: by its id, or else by its heading text.\nfunction findTarget(id){const selector='[id=\"'+(window.CSS&&CSS.escape?CSS.escape(id):id)+'\"]';for(const el of Array.from(document.querySelectorAll(selector))){if(isVisible(el))return el;}const text=TARGET_TEXT[id];return text?findByText(text):null;}function isFaqPage(){if(document.querySelector('nav[aria-label=\"FAQ sections\"]'))return true;return!!findByText(\"The basics\")&&!!findByText(\"Withdrawals and leaving\");}// Only links to this FAQ page (\"#id\", \"/faq#id\", \"./faq\", same-site \".../faq\") are handled.\nfunction isFaqHref(href){if(href.startsWith(\"#\"))return true;if(/^(mailto:|tel:|javascript:)/i.test(href))return false;let path=href;if(/^([a-z][a-z0-9+.-]*:)?\\/\\//i.test(href)){let url;try{url=new URL(href,window.location.href);}catch{return false;}if(url.origin!==window.location.origin)return false;path=url.pathname;}else{path=href.split(\"#\")[0].split(\"?\")[0];}return/^(\\.?\\/)?faq\\/?$/i.test(path)||/\\/faq\\/?$/i.test(path);}function targetFor(link){if(!link.hasAttribute(\"href\"))return null;const href=link.getAttribute(\"href\")||\"\";if(!isFaqHref(href)||!isFaqPage())return null;const hash=href.indexOf(\"#\");if(hash>=0){const id=safeDecode(href.slice(hash+1));if(id&&findTarget(id))return id;}const byText=LINK_TEXT_TO_ID[normalize(link.textContent||\"\")];return byText&&findTarget(byText)?byText:null;}function offsetFor(el){return parseFloat(getComputedStyle(el).scrollMarginTop)||100;}function prefersReducedMotion(){return!!window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;}function scrollToTarget(id,smooth){const el=findTarget(id);if(!el)return;const top=el.getBoundingClientRect().top+window.scrollY-offsetFor(el);window.scrollTo({top,behavior:smooth?\"smooth\":\"instant\"});}function isOffTarget(id){const el=findTarget(id);if(!el)return false;return Math.abs(el.getBoundingClientRect().top-offsetFor(el))>40;}// Asks the linked question to open (sections have no question, so nothing happens for them).\nfunction requestOpen(id){pendingId=id;pendingAt=Date.now();window.dispatchEvent(new CustomEvent(OPEN_EVENT,{detail:id}));}// Keeps the address bar in step on the live site, as a normal link would (not in Framer's preview).\nfunction updateAddressBar(id){try{if(!/\\/faq\\/?$/i.test(window.location.pathname))return;const url=window.location.pathname+window.location.search+\"#\"+encodeURIComponent(id);window.history.replaceState(window.history.state,\"\",url);}catch{// Not important enough to break the link over.\n}}// For keyboard users: move focus to where the link went, as a normal link would.\nfunction focusTarget(id){window.setTimeout(()=>{window.requestAnimationFrame(()=>{const el=findTarget(id);if(!el)return;if(!el.hasAttribute(\"tabindex\"))el.setAttribute(\"tabindex\",\"-1\");el.focus({preventScroll:true});});},50);}// Calls back once the page has stopped scrolling (or after 1.5 seconds at most).\nfunction whenScrollSettles(callback){let last=window.scrollY;let still=0;let waited=0;let timer=0;const tick=()=>{waited+=50;if(Math.abs(window.scrollY-last)<1)still++;else{still=0;last=window.scrollY;}if(still>=2||waited>=1500)callback();else timer=window.setTimeout(tick,50);};timer=window.setTimeout(tick,50);return()=>window.clearTimeout(timer);}// Links from other pages: Framer drops the \"#id\" on the way, so the link remembers its\n// target here and the FAQ question picks it up when the FAQ page opens.\nconst PENDING_KEY=\"longroc-faq-target\";const PENDING_MAX_AGE_MS=3e4;function rememberTarget(id){try{window.sessionStorage.setItem(PENDING_KEY,JSON.stringify({id,at:Date.now()}));}catch{// Storage blocked: the link still opens the FAQ page.\n}}function takeRememberedTarget(id){try{const raw=window.sessionStorage.getItem(PENDING_KEY);if(!raw)return false;const data=JSON.parse(raw);if(!data||data.id!==id||Date.now()-data.at>PENDING_MAX_AGE_MS)return false;window.sessionStorage.removeItem(PENDING_KEY);return true;}catch{return false;}}function goTo(id,fromKeyboard){if(cancelPrevious)cancelPrevious();scrollToTarget(id,!prefersReducedMotion());updateAddressBar(id);// Once the page stops moving: correct the position if the layout shifted on the way,\n// then open the question.\nconst cancelSettle=whenScrollSettles(()=>{cancelPrevious=null;if(isOffTarget(id))scrollToTarget(id,false);requestOpen(id);if(fromKeyboard)focusTarget(id);});cancelPrevious=()=>{cancelSettle();cancelPrevious=null;};}function onClick(event){if(event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;if(RenderTarget.current()===RenderTarget.canvas)return;const link=event.target?.closest?.(\"a\");if(!link)return;let id=null;try{id=targetFor(link);}catch{return;}if(!id)return;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();goTo(id,event.detail===0);}// Catch clicks on FAQ links before Framer does, so they work in every Framer version.\nif(typeof window!==\"undefined\"){const w=window;if(w.__longrocFaqClick){window.removeEventListener(\"click\",w.__longrocFaqClick,true);document.removeEventListener(\"click\",w.__longrocFaqClick,true);}w.__longrocFaqClick=onClick;window.addEventListener(\"click\",onClick,true);}// Counts how many times the question was asked to open (0 = never).\nfunction useOpenCount(id){const[count,setCount]=useState(0);useEffect(()=>{if(typeof window===\"undefined\")return;const fromUrl=()=>safeDecode(window.location.hash.slice(1))===id;const fromClick=()=>pendingId===id&&Date.now()-pendingAt<REOPEN_WINDOW_MS;const open=()=>setCount(n=>n+1);if(fromUrl()||fromClick())open();const onHash=()=>{if(fromUrl())open();};const onOpen=e=>{if(e.detail===id)open();};window.addEventListener(\"hashchange\",onHash);window.addEventListener(OPEN_EVENT,onOpen);return()=>{window.removeEventListener(\"hashchange\",onHash);window.removeEventListener(OPEN_EVENT,onOpen);};},[id]);return count;}// Each time a link asks for the question, it is redrawn already open (no opening animation).\n// This opens it again even if the reader closed it, and it can still be closed by tapping it.\nfunction openOnTarget(Component,id){return /*#__PURE__*/forwardRef(function OpenOnTarget(props,ref){useEffect(()=>{if(typeof window===\"undefined\"||RenderTarget.current()===RenderTarget.canvas)return;const fromHash=safeDecode(window.location.hash.slice(1))===id;if(!takeRememberedTarget(id)&&!fromHash)return;// Wait for the page to finish drawing, then go; check once more in case it jumped back up.\nconst first=window.setTimeout(()=>goTo(id,false),250);const again=window.setTimeout(()=>{if(isOffTarget(id))scrollToTarget(id,false);},1400);return()=>{window.clearTimeout(first);window.clearTimeout(again);};},[]);const count=useOpenCount(id);if(count===0)return /*#__PURE__*/_jsx(Component,{...props,ref:ref});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,variant:OPEN_VARIANT},count);});}export function withOpenOnWithdraw(Component){return openOnTarget(Component,\"how-do-i-withdraw-money\");}export function withOpenOnOtherStrategies(Component){return openOnTarget(Component,\"do-you-offer-other-strategies\");}export function withOpenOnTransferStocks(Component){return openOnTarget(Component,\"can-i-transfer-stocks-i-already-own\");}export function withOpenOnScreening(Component){return openOnTarget(Component,\"screening\");}// For a link on another page that should land on a FAQ question: remembers the target on click.\nfunction linkToFaq(Component,id){return /*#__PURE__*/forwardRef(function LinkToFaq(props,ref){const nodeRef=useRef(null);const setRefs=useCallback(node=>{nodeRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},[ref]);useEffect(()=>{const el=nodeRef.current;if(!el||typeof el.addEventListener!==\"function\")return;const handler=event=>{const link=event.target?.closest?.(\"a\");if(link&&el.contains(link))rememberTarget(id);};el.addEventListener(\"click\",handler,true);return()=>el.removeEventListener(\"click\",handler,true);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRefs});});}export function withLinkToFaqScreening(Component){return linkToFaq(Component,\"screening\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withLinkToFaqScreening\":{\"type\":\"reactHoc\",\"name\":\"withLinkToFaqScreening\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenOnOtherStrategies\":{\"type\":\"reactHoc\",\"name\":\"withOpenOnOtherStrategies\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenOnWithdraw\":{\"type\":\"reactHoc\",\"name\":\"withOpenOnWithdraw\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenOnScreening\":{\"type\":\"reactHoc\",\"name\":\"withOpenOnScreening\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenOnTransferStocks\":{\"type\":\"reactHoc\",\"name\":\"withOpenOnTransferStocks\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OpenOnHash.map"],"mappings":"A,y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