{"version":3,"file":"shared-lib.CJJYTe-b.mjs","names":["e","t","n","r"],"sources":["https:/framerusercontent.com/modules/tN05TP20dIi4nP8vgbr2/xCXeA6gP9GjWYvglbmqH/hGwDNgZTx.js","https:/framerusercontent.com/modules/eRpUfRYGyHPlaJv6pLPq/aTQWyj41OeIG40E3ss4A/Shortcuts.js"],"sourcesContent":["import{fontStore}from\"framer\";fontStore.loadWebFontsFromSelectors([\"Inter-SemiBold\"]);export const fonts=[];export const css=['.framer-jbcje .framer-styles-preset-1a16yi:not(.rich-text-wrapper), .framer-jbcje .framer-styles-preset-1a16yi.rich-text-wrapper h6 { --framer-font-family: \"Inter-SemiBold\", \"Inter\", sans-serif; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-weight: 600; --framer-letter-spacing: 0em; --framer-line-height: 16px; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-72be4b58-ad30-40d4-9403-e97ffbb2d1b3, #000000); --framer-text-decoration: none; --framer-text-transform: none; }'];export const className=\"framer-jbcje\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as e}from\"react/jsx-runtime\";import t from\"react\";export function withKeyboardShortcuts(r){let n=e=>{// Don't capture input if the user is typing in an input field/textarea or a meta key is pressed\nif(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)return;// Save pressed keys to session storage\nlet t=JSON.parse(sessionStorage.getItem(\"pressedKeys\")||\"[]\");if(t.push(e.key),t.length>1&&t.shift(),sessionStorage.setItem(\"pressedKeys\",JSON.stringify(t)),\"undefined\"!=typeof window){// Notify other components\nlet e=new CustomEvent(\"pressedKeysChanged\",{detail:t});window.dispatchEvent(e);}},o=()=>{sessionStorage.removeItem(\"pressedKeys\");};return s=>(\"undefined\"!=typeof window&&t.useEffect(()=>(// Focus window on load\n        window.focus(),window.addEventListener(\"keydown\",n),window.addEventListener(\"beforeunload\",o),()=>{window.removeEventListener(\"keydown\",n),window.removeEventListener(\"beforeunload\",o);}),[]),/*#__PURE__*/e(r,{...s}));}export function withShortcutTrigger(r){let n=(e,t,r)=>{let n=e.detail;// Check if the last pressed key matches the shortcut\nn[n.length-1].toLowerCase()===t.toLowerCase()&&(e.preventDefault(),setTimeout(()=>{if(r.current){let e=r.current.querySelector(\"button\"),n=r.current.querySelector(\"a\");e?e.click():n?n.click():console.error(`🦎 Error: The shortcut trigger element ${t} isn't working properly. Check the docs for help.`);}else console.error(`🦎 Error: The shortcut trigger element ${t} isn't working properly. Check the docs for help.`);sessionStorage.removeItem(\"pressedKeys\");},0));};return o=>{var s;let i=null===(s=o.name)||void 0===s?void 0:s.match(/\\[(.*?)\\]/),d=\"\",a=t.useRef(null);return i?d=i[1]:console.error(`🦎 Error: Your shortcut trigger layer (${o.name}) is missing a key in its layer name.`),\"undefined\"!=typeof window&&t.useEffect(()=>{window.addEventListener(\"pressedKeysChanged\",e=>{n(e,d,a);});},[]),/*#__PURE__*/e(\"span\",{ref:a,\"data-lizard-shortcuts-trigger\":d,children:/*#__PURE__*/e(r,{...o})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withShortcutTrigger\":{\"type\":\"reactHoc\",\"name\":\"withShortcutTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withKeyboardShortcuts\":{\"type\":\"reactHoc\",\"name\":\"withKeyboardShortcuts\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shortcuts.map"],"mappings":"qSAA8B,GAAU,0BAA0B,CAAC,iBAAiB,CAAC,CAAc,EAAM,EAAE,CAAc,EAAI,CAAC,qiBAAqiB,CAAc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