{"version":3,"file":"shared-lib.c4gIvMof.mjs","names":["React.useRef","React.useState","React.useCallback","__esmMin","init_ssg_sandbox_shims","te","ne","window","_e","de","init_jsx_runtime","J","c","init_npm_react_18_3_1","ce","fontStore","init_framer_B1b760uK","DesktopFrameLinkHover","hostRef","snapshotRef","isDesktop","setIsDesktop","setRefs","node","ref","mediaQuery","updateDesktop","restoreDescendantStyles","element","snapshot","applyDescendantHoverStyles","host","onPointerEnter","props","event","onPointerLeave","Component","init_DesktopFrameLinkHover","fonts","css","className","init_HPvp_eCjL"],"sources":["https:/framerusercontent.com/modules/8IGUyVwesM32CwVulaF8/ba1dAisJpgAkx9bTbxF9/DesktopFrameLinkHover.js","https:/framerusercontent.com/modules/y6pzZpzASEFryWCKI81P/u5enFr0cmyIWDuBzyowj/HPvp_eCjL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function DesktopFrameLinkHover(Component){return /*#__PURE__*/React.forwardRef((props,ref)=>{const hostRef=React.useRef(null);const snapshotRef=React.useRef(new Map);const[isDesktop,setIsDesktop]=React.useState(false);const setRefs=React.useCallback(node=>{hostRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);React.useEffect(()=>{if(typeof window===\"undefined\")return;const mediaQuery=window.matchMedia(\"(min-width: 1200px)\");const updateDesktop=()=>{React.startTransition(()=>{setIsDesktop(mediaQuery.matches);});};updateDesktop();if(typeof mediaQuery.addEventListener===\"function\"){mediaQuery.addEventListener(\"change\",updateDesktop);return()=>{mediaQuery.removeEventListener(\"change\",updateDesktop);};}mediaQuery.addListener(updateDesktop);return()=>{mediaQuery.removeListener(updateDesktop);};},[]);const restoreDescendantStyles=React.useCallback(()=>{snapshotRef.current.forEach((snapshot,element)=>{if(!element.isConnected)return;if(snapshot.colorValue===\"\"){element.style.removeProperty(\"color\");}else{element.style.setProperty(\"color\",snapshot.colorValue,snapshot.colorPriority);}if(snapshot.fontWeightValue===\"\"){element.style.removeProperty(\"font-weight\");}else{element.style.setProperty(\"font-weight\",snapshot.fontWeightValue,snapshot.fontWeightPriority);}});snapshotRef.current.clear();},[]);const applyDescendantHoverStyles=React.useCallback(()=>{const host=hostRef.current;if(!host)return;const allDescendants=Array.from(host.querySelectorAll(\"*\")).filter(node=>node instanceof HTMLElement);allDescendants.forEach(element=>{const hasText=(element.textContent??\"\").replace(/\\s+/g,\"\").length>0;if(!hasText)return;if(!snapshotRef.current.has(element)){snapshotRef.current.set(element,{colorValue:element.style.getPropertyValue(\"color\"),colorPriority:element.style.getPropertyPriority(\"color\"),fontWeightValue:element.style.getPropertyValue(\"font-weight\"),fontWeightPriority:element.style.getPropertyPriority(\"font-weight\")});}element.style.setProperty(\"color\",\"#A85F5A\",\"important\");element.style.setProperty(\"font-weight\",\"600\",\"important\");});},[]);React.useEffect(()=>{if(!isDesktop){restoreDescendantStyles();}},[isDesktop,restoreDescendantStyles]);React.useEffect(()=>{return()=>{restoreDescendantStyles();};},[restoreDescendantStyles]);const onPointerEnter=React.useCallback(event=>{if(isDesktop){applyDescendantHoverStyles();}props.onPointerEnter?.(event);props.onMouseEnter?.(event);},[applyDescendantHoverStyles,isDesktop,props]);const onPointerLeave=React.useCallback(event=>{restoreDescendantStyles();props.onPointerLeave?.(event);props.onMouseLeave?.(event);},[props,restoreDescendantStyles]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props,onPointerEnter:onPointerEnter,onPointerLeave:onPointerLeave});});}\nexport const __FramerMetadata__ = {\"exports\":{\"DesktopFrameLinkHover\":{\"type\":\"reactHoc\",\"name\":\"DesktopFrameLinkHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DesktopFrameLinkHover.map","// Generated by Framer (ee97fff)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Noto Sans JP-regular\",\"GF;Noto Sans JP-700\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Noto Sans JP\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Noto Sans JP\",url:\"https://fonts.gstatic.com/s/notosansjp/v56/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFBEj757Y0rw-oME.woff2\",weight:\"400\"},{cssFamilyName:\"Noto Sans JP\",openType:true,source:\"google\",style:\"normal\",uiFamilyName:\"Noto Sans JP\",url:\"https://fonts.gstatic.com/s/notosansjp/v56/-F6jfjtqLzI2JPCgQBnw7HFyzSD-AsregP8VFPYk757Y0rw-oME.woff2\",weight:\"700\"}]}];export const css=[\".framer-Ho0vS .framer-styles-preset-t2j3xx:not(.rich-text-wrapper), .framer-Ho0vS .framer-styles-preset-t2j3xx.rich-text-wrapper p { --framer-font-family: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0.015em; --framer-line-height: 1.9em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-aab5a02d-d31e-4ff4-be44-e2bcbab95c20); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\",\"@media (max-width: 1199px) and (min-width: 810px) { .framer-Ho0vS .framer-styles-preset-t2j3xx:not(.rich-text-wrapper), .framer-Ho0vS .framer-styles-preset-t2j3xx.rich-text-wrapper p { --framer-font-family: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0.015em; --framer-line-height: 1.9em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-aab5a02d-d31e-4ff4-be44-e2bcbab95c20); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\",\"@media (max-width: 809px) and (min-width: 0px) { .framer-Ho0vS .framer-styles-preset-t2j3xx:not(.rich-text-wrapper), .framer-Ho0vS .framer-styles-preset-t2j3xx.rich-text-wrapper p { --framer-font-family: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Noto Sans JP\\\", \\\"Noto Sans JP Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 17px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-letter-spacing: 0.015em; --framer-line-height: 1.9em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-aab5a02d-d31e-4ff4-be44-e2bcbab95c20); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }\"];export const className=\"framer-Ho0vS\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,oNAAuE,SAAgBiB,EAAsB,EAAU,CAAC,MAAoB,iBAAkB,EAAM,IAAM,CAAC,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