{"version":3,"file":"Examples.DBzkbomP.mjs","names":["useState","useRef","useCallback","useState","useMemo","__esmMin","pe","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","te","window","_e","J","init_jsx_runtime","ce","de","init_framer_BisrWwwE","fontStore","Data","useObserveData","fonts","css","className","init_T3pYYFndi","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","centerContent","init_Utils","init_utils_js__0_9","assignRef","ref","value","ensureBrushStyle","BRUSH_STYLE_ID","style","BRUSH_CLASS_NAME","releaseBrushStyle","brushStyleUsageCount","withBrushstrokeEmphasis","elementRef","unwrapAll","root","BRUSH_DATA_ATTRIBUTE","parent","span","applyEmphasis","walker","textNodes","currentNode","textNode","workingNode","node","matchIndex","EMPHASIS_PHRASE","matchedPart","remainingPart","observer","Component","props","valueContainsPalaceSignals","normalized","PALACE_TITLE","PALACE_LINK_SLUG","entries","key","nestedValue","normalizedKey","useDesktopViewportMatch","matches","setMatches","mediaQueryList","query","update","nextMatch","listener","event","withPalaceCoverNavigation","propsRecord","isDesktopViewport","DESKTOP_MEDIA_QUERY","isPalaceInstance","desktopTitleAdjustedProps","cloned","PALACE_REPLACEMENT_TITLE","init_Examples"],"sources":["https:/framerusercontent.com/modules/vHiYcrlfyToc6EXCxLYx/iUJqQHbLeG7qQhBzolTF/T3pYYFndi.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/PJcbMvWqn2b1ZnIKmnVp/GyD3QiW8P4rNg72uDeI5/Examples.js"],"sourcesContent":["// Generated by Framer (b0164a3)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"Inter-Medium\",\"Inter-Bold\",\"Inter-BoldItalic\",\"Inter-MediumItalic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5A3Ce6C9YYmCjpQx9M4inSaKU.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/Qx95Xyt0Ka3SGhinnbXIGpEIyP4.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/6mJuEAguuIuMog10gGvH5d3cl8.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/xYYWaj7wCU5zSQH0eXvSaS19wo.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/otTaNuNpVK4RbdlT7zDDdKvQBA.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/d3tHnaQIAeqiE5hGcRw4mmgWYU.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/DolVirEGb34pEXEp8t8FQBSK4.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/DpPBYI0sL4fYLgAkX8KXOPVt7c.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/4RAEQdEOrcnDkhHiiCbJOw92Lk.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/1K3W8DizY3v4emK8Mb08YHxTbs.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/tUSCtfYVM1I1IchuyCwz9gDdQ.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/VgYFWiwsAC5OYxAycRXXvhze58.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/DXD0Q7LSl7HEvDzucnyLnGBHM.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/GIryZETIX4IFypco5pYZONKhJIo.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/H89BbHkbHDzlxZzxi8uPzTsp90.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/u6gJwDuwB143kpNK1T1MDKDWkMc.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/43sJ6MfOPh1LCJt46OvyDuSbA6o.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/wccHG0r4gBDAIRhfHiOlq6oEkqw.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/WZ367JPwf9bRW6LdTHN8rXgSjw.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/QxmhnWTzLtyjIiZcfaLIJ8EFBXU.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/2A4Xx7CngadFGlVV4xrO06OBHY.woff2\",weight:\"700\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/khkJkwSL66WFg8SX6Wa726c.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/0E7IMbDzcGABpBwwqNEt60wU0w.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/NTJ0nQgIF0gcDelS14zQ9NR9Q.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/QrcNhgEPfRl0LS8qz5Ln8olanl8.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JEXmejW8mXOYMtt0hyRg811kHac.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/ksvR4VsLksjpSwnC2fPgHRNMw.woff2\",weight:\"500\"},{family:\"Inter\",source:\"framer\",style:\"italic\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/uy9s0iWuxiNnVt8EpTI3gzohpwo.woff2\",weight:\"500\"}]}];export const css=['.framer-pBPub .framer-styles-preset-1l7bfec:not(.rich-text-wrapper), .framer-pBPub .framer-styles-preset-1l7bfec.rich-text-wrapper p { --framer-font-family: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-bold: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-italic: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 500; --framer-letter-spacing: -0.04em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: justify; --framer-text-color: var(--token-e9abed44-df8b-4765-bbfe-7c072006d47b, #000000); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-pBPub\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useMemo,useCallback,useEffect,useState,startTransition,useRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});const BRUSH_STYLE_ID=\"framer-with-brushstroke-emphasis-style\";const BRUSH_CLASS_NAME=\"framer-brushstroke-emphasis\";const BRUSH_DATA_ATTRIBUTE=\"data-brushstroke-emphasis\";const EMPHASIS_PHRASE=\"AI-assisted prototyping\";let brushStyleUsageCount=0;function assignRef(ref,value){if(!ref)return;if(typeof ref===\"function\"){ref(value);}else{ref.current=value;}}function ensureBrushStyle(){if(typeof document===\"undefined\")return;const existing=document.getElementById(BRUSH_STYLE_ID);if(existing){brushStyleUsageCount+=1;return;}const style=document.createElement(\"style\");style.id=BRUSH_STYLE_ID;style.textContent=`\n.${BRUSH_CLASS_NAME}{\n    position: relative;\n    display: inline;\n    isolation: isolate;\n}\n.${BRUSH_CLASS_NAME}::before{\n    content: \"\";\n    position: absolute;\n    left: -0.05em;\n    right: -0.05em;\n    bottom: -0.74em;\n    height: 0.72em;\n    pointer-events: none;\n    z-index: -1;\n    border-radius: 64% 36% 60% 40% / 52% 56% 44% 48%;\n    background:\n        radial-gradient(56% 170% at 0% 58%, rgba(122, 83, 32, 0.58) 0%, rgba(122, 83, 32, 0.36) 56%, rgba(122, 83, 32, 0) 100%),\n        linear-gradient(\n            92deg,\n            rgba(175, 131, 48, 0.58) 0%,\n            rgba(198, 151, 61, 0.56) 18%,\n            rgba(213, 168, 72, 0.5) 46%,\n            rgba(190, 142, 55, 0.36) 72%,\n            rgba(161, 117, 43, 0.22) 88%,\n            rgba(161, 117, 43, 0.02) 100%\n        ),\n        repeating-linear-gradient(\n            96deg,\n            rgba(246, 219, 150, 0.18) 0%,\n            rgba(246, 219, 150, 0.18) 4.5%,\n            rgba(169, 126, 52, 0.1) 6.5%,\n            rgba(169, 126, 52, 0.1) 10.5%,\n            rgba(169, 126, 52, 0) 13%\n        ),\n        radial-gradient(110% 80% at 32% 22%, rgba(255, 244, 196, 0.24) 0%, rgba(255, 244, 196, 0.08) 48%, rgba(255, 244, 196, 0) 100%);\n    clip-path: polygon(0% 2%, 5% 1%, 14% 1%, 30% 4%, 51% 10%, 73% 19%, 88% 30%, 96% 40%, 100% 47%, 99% 90%, 92% 84%, 76% 74%, 53% 64%, 33% 57%, 16% 55%, 5% 62%, 0% 72%);\n    filter: saturate(104%) contrast(101%);\n    transform: rotate(-0.25deg);\n}\n`;document.head.appendChild(style);brushStyleUsageCount+=1;}function releaseBrushStyle(){if(typeof document===\"undefined\")return;brushStyleUsageCount=Math.max(0,brushStyleUsageCount-1);if(brushStyleUsageCount>0)return;document.getElementById(BRUSH_STYLE_ID)?.remove();}export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}export function withBrushstrokeEmphasis(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const unwrapAll=useCallback(root=>{const wrapped=root.querySelectorAll(`span[${BRUSH_DATA_ATTRIBUTE}=\"true\"]`);wrapped.forEach(span=>{const parent=span.parentNode;if(!parent)return;while(span.firstChild){parent.insertBefore(span.firstChild,span);}parent.removeChild(span);parent.normalize();});},[]);const applyEmphasis=useCallback(root=>{unwrapAll(root);const walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT);const textNodes=[];let currentNode=walker.nextNode();while(currentNode){const textNode=currentNode;const parentElement=textNode.parentElement;const isInsideWrappedText=Boolean(parentElement?.closest(`span[${BRUSH_DATA_ATTRIBUTE}=\"true\"]`));if(!isInsideWrappedText&&textNode.nodeValue){textNodes.push(textNode);}currentNode=walker.nextNode();}textNodes.forEach(node=>{let workingNode=node;while(workingNode){const value=workingNode.nodeValue??\"\";const matchIndex=value.indexOf(EMPHASIS_PHRASE);if(matchIndex===-1)break;const matchedPart=workingNode.splitText(matchIndex);const remainingPart=matchedPart.splitText(EMPHASIS_PHRASE.length);const span=document.createElement(\"span\");span.className=BRUSH_CLASS_NAME;span.setAttribute(BRUSH_DATA_ATTRIBUTE,\"true\");span.appendChild(document.createTextNode(EMPHASIS_PHRASE));matchedPart.parentNode?.replaceChild(span,matchedPart);workingNode=remainingPart;}});},[unwrapAll]);useEffect(()=>{if(typeof window===\"undefined\")return;const root=elementRef.current;if(!root)return;ensureBrushStyle();applyEmphasis(root);const observer=new MutationObserver(()=>{applyEmphasis(root);});observer.observe(root,{childList:true,subtree:true,characterData:true});return()=>{observer.disconnect();unwrapAll(root);releaseBrushStyle();};},[applyEmphasis,unwrapAll]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{elementRef.current=node;assignRef(ref,node);}});});}const PALACE_TITLE=\"Palace Pursuit: Forbidden City Multiplayer Game\";const PALACE_REPLACEMENT_TITLE=\"In Progress: Forbidden City Multiplayer Game\";const PALACE_LINK_SLUG=\"forbidden-city-ai-assisted-product-building\";const DESKTOP_MEDIA_QUERY=\"(min-width: 1318px)\";function valueContainsPalaceSlug(value){if(typeof value===\"string\"){return value.toLowerCase().includes(PALACE_LINK_SLUG);}if(!value||typeof value!==\"object\")return false;return Object.values(value).some(nestedValue=>valueContainsPalaceSlug(nestedValue));}function valueContainsPalaceSignals(value){if(typeof value===\"string\"){const normalized=value.toLowerCase();return value===PALACE_TITLE||normalized.includes(PALACE_LINK_SLUG);}if(!value||typeof value!==\"object\")return false;const entries=Object.entries(value);for(const[key,nestedValue]of entries){const normalizedKey=key.toLowerCase();const looksLikeLinkField=normalizedKey.includes(\"href\")||normalizedKey.includes(\"link\")||normalizedKey.includes(\"url\");if(looksLikeLinkField&&typeof nestedValue===\"string\"){if(nestedValue.toLowerCase().includes(PALACE_LINK_SLUG)){return true;}}if(typeof nestedValue===\"string\"){if(nestedValue===PALACE_TITLE||nestedValue.toLowerCase().includes(PALACE_LINK_SLUG)){return true;}}}return false;}function nullifyPalaceLinkValues(source,replaceTitle){const cloned={...source};for(const[key,value]of Object.entries(cloned)){if(replaceTitle&&value===PALACE_TITLE){cloned[key]=PALACE_REPLACEMENT_TITLE;continue;}if(valueContainsPalaceSlug(value)){cloned[key]=null;}}return cloned;}function useDesktopViewportMatch(query){const[matches,setMatches]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mediaQueryList=window.matchMedia(query);const update=nextMatch=>{startTransition(()=>{setMatches(nextMatch);});};update(mediaQueryList.matches);const listener=event=>{update(event.matches);};if(typeof mediaQueryList.addEventListener===\"function\"){mediaQueryList.addEventListener(\"change\",listener);return()=>mediaQueryList.removeEventListener(\"change\",listener);}mediaQueryList.addListener(listener);return()=>mediaQueryList.removeListener(listener);},[query]);return matches;}export function withPalaceImageOnly(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const propsRecord=props;const isDesktopViewport=useDesktopViewportMatch(DESKTOP_MEDIA_QUERY);const shouldDisableNavigation=useMemo(()=>{const values=Object.values(propsRecord);return values.some(value=>valueContainsPalaceSignals(value));},[propsRecord]);const sanitizedProps=useMemo(()=>nullifyPalaceLinkValues(propsRecord,isDesktopViewport),[propsRecord,isDesktopViewport]);if(!shouldDisableNavigation){return /*#__PURE__*/_jsx(Component,{ref:ref,...props});}if(isDesktopViewport){return /*#__PURE__*/_jsx(Component,{ref:ref,...sanitizedProps,onClick:undefined,onTap:undefined,onClickCapture:event=>{event.preventDefault();event.stopPropagation();},onKeyDownCapture:event=>{const key=event.key;if(key===\"Enter\"||key===\" \"){event.preventDefault();event.stopPropagation();}},tabIndex:-1,style:{...sanitizedProps.style,pointerEvents:\"auto\",cursor:\"pointer\"}});}return /*#__PURE__*/_jsx(Component,{ref:ref,...sanitizedProps,onClick:undefined,onTap:undefined,whileHover:undefined,onHoverStart:undefined,onHoverEnd:undefined,onMouseEnter:undefined,onMouseLeave:undefined,onClickCapture:event=>{event.preventDefault();event.stopPropagation();},onKeyDownCapture:event=>{const key=event.key;if(key===\"Enter\"||key===\" \"){event.preventDefault();event.stopPropagation();}},tabIndex:-1,style:{...sanitizedProps.style,pointerEvents:\"none\",cursor:\"default\"}});});}export function withPalaceCoverNavigation(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const propsRecord=props;const isDesktopViewport=useDesktopViewportMatch(DESKTOP_MEDIA_QUERY);const isPalaceInstance=useMemo(()=>{const values=Object.values(propsRecord);return values.some(value=>valueContainsPalaceSignals(value));},[propsRecord]);const desktopTitleAdjustedProps=useMemo(()=>{if(!isDesktopViewport)return propsRecord;const cloned={...propsRecord};for(const[key,value]of Object.entries(cloned)){if(value===PALACE_TITLE){cloned[key]=PALACE_REPLACEMENT_TITLE;}}return cloned;},[propsRecord,isDesktopViewport]);if(!isPalaceInstance){return /*#__PURE__*/_jsx(Component,{ref:ref,...props});}if(isDesktopViewport){return /*#__PURE__*/_jsx(Component,{ref:ref,...desktopTitleAdjustedProps,style:{...desktopTitleAdjustedProps.style,pointerEvents:\"auto\",cursor:\"pointer\"}});}return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:undefined,onHoverStart:undefined,onHoverEnd:undefined,onMouseEnter:undefined,onMouseLeave:undefined,style:{...propsRecord.style,pointerEvents:\"auto\",cursor:\"pointer\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBrushstrokeEmphasis\":{\"type\":\"reactHoc\",\"name\":\"withBrushstrokeEmphasis\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPalaceCoverNavigation\":{\"type\":\"reactHoc\",\"name\":\"withPalaceCoverNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPalaceImageOnly\":{\"type\":\"reactHoc\",\"name\":\"withPalaceImageOnly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"A,sRAC8BkB,EAAU,UAAU,CAAC,eAAe,aAAa,mBAAmB,oBAAoB,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,QAAQ,OAAO,SAAS,MAAM,SAAS,aAAa,0EAA0E,IAAI,uEAAuE,OAAO,KAAK,EAAE,CAAC,OAAO,QAAQ,OAAO,SAAS,MAAM,SAAS,aAAa,wDAAwD,IAAI,yEAAyE,OAAO,KAAK,EAAE,CAAC,OAAO,QAAQ,OAAO,SAAS,MAAM,SAAS,aAAa,cAAc,IAAI,wEAAwE,OAAO,KAAK,EAAE,CAAC,OAAO,QAAQ,OAAO,SAAS,MAAM,SAAS,aAAa,cAAc,IAAI,wEAA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