{"version":3,"file":"shared-lib.4pnEoMS4.mjs","names":["useRef","useMemo","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/fj2AqRyy6sIebysOdnAX/y8YQaWNtGbrjIoktQhUb/StudioGioAccessibility.js","https:/framerusercontent.com/modules/RdAMN551bZqNF9BzhUpT/7jlW0kpHRNn6NcgQ4Msh/S9pSILAOj.js","https:/framerusercontent.com/modules/ixVrDDfhmzUsBDlwT0ca/WFK0BUg9zMP7KBV3Pz3h/ZeFDYtXIM.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useIsStaticRenderer}from\"framer\";import{forwardRef,useEffect,useMemo,useRef}from\"react\";// User request: Create StudioGioAccessibility.tsx minimal Framer code override exported withVisibleKeyboardFocus. Use existing WithEnquiryValidation.tsx HOC/ref forwarding pattern. Preserve props/ref/events and layout while adding scoped focus-visible styling and reduced-motion handling only within override scope.\nfunction setMergedRef(ref,value){if(typeof ref===\"function\"){ref(value);return;}if(ref&&\"current\"in ref){ref.current=value;}}const visualDocuments=new WeakMap;function installStudioVisuals(doc){const existing=visualDocuments.get(doc);if(existing){existing.users+=1;return()=>{if(--existing.users===0){existing.stop();visualDocuments.delete(doc);}};}const style=doc.createElement(\"style\");style.setAttribute(\"data-studiogio-vector-arrows\",\"true\");style.textContent=`\n.studiogio-ui-arrow { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; flex-shrink: 0; color: inherit; }\na[aria-label^=\"Next project:\"] .studiogio-ui-arrow,\na[data-studiogio-project-cta] .studiogio-ui-arrow { transition: transform .2s ease, color .2s ease; }\na[data-studiogio-project-cta] { display: inline-flex; align-items: center; gap: .3em; max-width: 100%; color: inherit !important; text-decoration: none !important; }\na[data-studiogio-project-cta]:focus-visible { text-decoration: none !important; }\n@media (hover: hover) and (pointer: fine) {\n a[aria-label^=\"Next project:\"]:hover .studiogio-ui-arrow,\n a[data-studiogio-project-cta]:hover .studiogio-ui-arrow { transform: translate(3px, -3px); color: var(--token-fd11ec0b-6a47-44ba-898e-845d707de2e1, #F04424); }\n}\na[aria-label^=\"Next project:\"]:focus-visible .studiogio-ui-arrow,\na[data-studiogio-project-cta]:focus-visible .studiogio-ui-arrow { transform: translate(3px, -3px); color: var(--token-fd11ec0b-6a47-44ba-898e-845d707de2e1, #F04424); }\n@media (prefers-reduced-motion: reduce) {\n .studiogio-ui-arrow { transition: none !important; transform: none !important; }\n}\n`;doc.head.appendChild(style);const enhance=()=>{const walker=doc.createTreeWalker(doc.body,NodeFilter.SHOW_TEXT);const nodes=[];let node;while(node=walker.nextNode()){const text=node;if(text.data.includes(\"↗\")&&text.parentElement?.closest(\"a, button, [role='button']\")&&!text.parentElement.closest(\"svg, [contenteditable='true']\"))nodes.push(text);}nodes.forEach(text=>{const anchor=text.parentElement?.closest(\"a\");if(anchor?.closest(\"h2\")&&/^Start a project\\./i.test(anchor.textContent?.trim()||\"\"))anchor.setAttribute(\"data-studiogio-project-cta\",\"true\");const parts=text.data.split(/↗[\\uFE0E\\uFE0F]?/);const fragment=doc.createDocumentFragment();parts.forEach((part,index)=>{if(index){const svg=doc.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");svg.setAttribute(\"class\",\"studiogio-ui-arrow\");svg.setAttribute(\"viewBox\",\"0 0 24 24\");svg.setAttribute(\"aria-hidden\",\"true\");svg.setAttribute(\"focusable\",\"false\");const path=doc.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");path.setAttribute(\"d\",\"M3 21L21 3M4 3H21V20\");path.setAttribute(\"fill\",\"none\");path.setAttribute(\"stroke\",\"currentColor\");path.setAttribute(\"stroke-width\",\"0.85\");svg.appendChild(path);fragment.appendChild(svg);}if(part)fragment.appendChild(doc.createTextNode(part));});text.replaceWith(fragment);});};enhance();const observer=new MutationObserver(enhance);observer.observe(doc.body,{childList:true,subtree:true,characterData:true});const record={users:1,stop:()=>{observer.disconnect();style.remove();}};visualDocuments.set(doc,record);return()=>{if(--record.users===0){record.stop();visualDocuments.delete(doc);}};}export function withVisibleKeyboardFocus(Component){return /*#__PURE__*/forwardRef(function WithVisibleKeyboardFocus(props,ref){const localRef=useRef(null);const isStatic=useIsStaticRenderer();const scopeId=useMemo(()=>`studiogio-a11y-${Math.random().toString(36).slice(2,10)}`,[]);useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const root=localRef.current;if(!root)return;root.setAttribute(\"data-studiogio-a11y-scope\",scopeId);const stopVisuals=installStudioVisuals(root.ownerDocument);const styleSelector=`style[data-studiogio-a11y-style=\"${scopeId}\"]`;let styleEl=document.head.querySelector(styleSelector);let createdByThisInstance=false;if(!styleEl){styleEl=document.createElement(\"style\");styleEl.setAttribute(\"data-studiogio-a11y-style\",scopeId);styleEl.textContent=`\n[data-studiogio-a11y-scope=\"${scopeId}\"]:focus-visible,\n[data-studiogio-a11y-scope=\"${scopeId}\"] a:focus-visible,\n[data-studiogio-a11y-scope=\"${scopeId}\"] button:focus-visible {\n  outline: 2px solid currentColor;\n  outline-offset: 4px;\n}\n\n[data-studiogio-a11y-scope=\"${scopeId}\"] a:focus-visible {\n  text-decoration: underline;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  [data-studiogio-a11y-scope=\"${scopeId}\"] a {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n`;document.head.appendChild(styleEl);createdByThisInstance=true;}return()=>{stopVisuals();root.removeAttribute(\"data-studiogio-a11y-scope\");if(createdByThisInstance&&styleEl)styleEl.remove();};},[isStatic,scopeId]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{localRef.current=node;setMergedRef(ref,node);}});});}export function withCurrentPageTop(Component){const AccessibleComponent=withVisibleKeyboardFocus(Component);return /*#__PURE__*/forwardRef(function WithCurrentPageTop(props,ref){const localRef=useRef(null);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||!localRef.current)return;const root=localRef.current;const link=root.matches(\"a\")?root:root.querySelector(\"a\");const previousHref=link?.getAttribute(\"href\");link?.setAttribute(\"href\",\"#\");const scrollToTop=event=>{if(event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;event.preventDefault();event.stopPropagation();window.scrollTo({top:0,behavior:window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches?\"auto\":\"smooth\"});};root.addEventListener(\"click\",scrollToTop,true);return()=>{root.removeEventListener(\"click\",scrollToTop,true);if(previousHref!==null&&previousHref!==undefined)link?.setAttribute(\"href\",previousHref);};},[isStatic]);return /*#__PURE__*/_jsx(AccessibleComponent,{...props,ref:node=>{localRef.current=node;setMergedRef(ref,node);}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCurrentPageTop\":{\"type\":\"reactHoc\",\"name\":\"withCurrentPageTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVisibleKeyboardFocus\":{\"type\":\"reactHoc\",\"name\":\"withVisibleKeyboardFocus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StudioGioAccessibility.map","// Generated by Framer (3d0591d)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOMV2;NB Architekt Std Regular\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"NB Architekt Std Regular\",openType:true,source:\"custom\",style:\"normal\",uiFamilyName:\"NB Architekt Std\",url:\"https://framerusercontent.com/assets/SmNKllJzUYaNZgziKObLPXhM7lw.woff2\",weight:\"400\"}]}];export const css=[\".framer-UAqEu .framer-styles-preset-1kzzlq3:not(.rich-text-wrapper), .framer-UAqEu .framer-styles-preset-1kzzlq3.rich-text-wrapper p { --framer-font-family: \\\"NB Architekt Std Regular\\\", \\\"NB Architekt Std Regular Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0.01em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-59dea23c-6f54-490a-9a65-300809829ca8); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: uppercase; }\"];export const className=\"framer-UAqEu\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (3d0591d)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOMV2;NB Architekt Std Regular\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"NB Architekt Std Regular\",openType:true,source:\"custom\",style:\"normal\",uiFamilyName:\"NB Architekt Std\",url:\"https://framerusercontent.com/assets/SmNKllJzUYaNZgziKObLPXhM7lw.woff2\",weight:\"400\"}]}];export const css=[\".framer-HffwH .framer-styles-preset-1w0f5xa:not(.rich-text-wrapper), .framer-HffwH .framer-styles-preset-1w0f5xa.rich-text-wrapper p { --framer-font-family: \\\"NB Architekt Std Regular\\\", \\\"NB Architekt Std Regular Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 12px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0.03em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-5462f43e-2302-4ed7-bbe7-3e0fe7755844); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-HffwH\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations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