{"version":3,"file":"shared-lib.Bo--yHyp.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/9PNn4zAmZoCevE8ghrhi/etR13Q72RTGtVac8xFqZ/FH0nxXKVp.js","https:/framerusercontent.com/modules/tQEspzFys9cIscqOyxfh/dqcV5agVFFLjZSngRBfa/HideBrowserScrollbar.js","https:/framerusercontent.com/modules/exJlpP7XN7JQguaYDHo6/UnFi1p0zVOh2845NLicq/siteMetadata.js"],"sourcesContent":["// Generated by Framer (7788242)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-3NMMf .framer-styles-preset-1qw4xvp:not(.rich-text-wrapper), .framer-3NMMf .framer-styles-preset-1qw4xvp.rich-text-wrapper a {  }\"];export const className=\"framer-3NMMf\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// User request: Create a code override file HideBrowserScrollbar.tsx exporting withHiddenBrowserScrollbar, wrapping an existing canvas section without changing its props/layout. On preview/live only (not canvas), inject scoped-lifetime document CSS that hides html/body scrollbars while preserving scrolling, with robust multi-mount reference counting and cleanup on unmount.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useMemo}from\"react\";import{RenderTarget,useIsStaticRenderer}from\"framer\";const HIDE_SCROLLBAR_STYLE_ID=\"framer-hide-browser-scrollbar-override-style\";let activeMountCount=0;let injectedStyleElement=null;function ensureHideScrollbarStyle(){if(typeof document===\"undefined\")return;if(injectedStyleElement&&document.head.contains(injectedStyleElement))return;const existing=document.getElementById(HIDE_SCROLLBAR_STYLE_ID);if(existing instanceof HTMLStyleElement){injectedStyleElement=existing;return;}const style=document.createElement(\"style\");style.id=HIDE_SCROLLBAR_STYLE_ID;style.setAttribute(\"data-framer-hide-browser-scrollbar\",\"true\");style.textContent=`\nhtml,\nbody {\n    scrollbar-width: none !important;\n    -ms-overflow-style: none !important;\n}\n\nhtml::-webkit-scrollbar,\nbody::-webkit-scrollbar {\n    display: none !important;\n    width: 0 !important;\n    height: 0 !important;\n}\n`;document.head.appendChild(style);injectedStyleElement=style;}function cleanupHideScrollbarStyleIfUnused(){if(typeof document===\"undefined\")return;if(activeMountCount>0)return;const element=injectedStyleElement??document.getElementById(HIDE_SCROLLBAR_STYLE_ID);if(element?.parentNode){element.parentNode.removeChild(element);}injectedStyleElement=null;}export function withHiddenBrowserScrollbar(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const isStaticRenderer=useIsStaticRenderer();const isCanvas=useMemo(()=>RenderTarget.current()===RenderTarget.canvas,[]);const shouldApply=!isStaticRenderer&&!isCanvas;useEffect(()=>{if(!shouldApply)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;activeMountCount+=1;ensureHideScrollbarStyle();return()=>{activeMountCount=Math.max(0,activeMountCount-1);cleanupHideScrollbarStyleIfUnused();};},[shouldApply]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHiddenBrowserScrollbar\":{\"type\":\"reactHoc\",\"name\":\"withHiddenBrowserScrollbar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HideBrowserScrollbar.map","// Generated by Framer (0da2bc6)\nconst valuesByLocaleId={u9R1BHrLC:{v0:\"Your Own Haus\",v1:\"After nearly a decade of working in the fields of Architecture and Interior Design, YourownHaus has continued to tell stories through space, while constantly seeking a sense of individuality and distinction in every project we undertake.\"}};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{description:getLocalizedValue(\"v1\",activeLocale)??\"Trải qua một h\\xe0nh tr\\xecnh l\\xe0m nghề gần 10 năm trong lĩnh vực Kiến tr\\xfac & Nội thất, YourownHaus đ\\xe3 v\\xe0 đang tiếp tục kể c\\xe1c c\\xe2u chuyện th\\xf4ng qua kh\\xf4ng gian v\\xe0 kh\\xf4ng ngừng t\\xecm kiếm sự độc bản v\\xe0 đặc biệt trong mỗi dự \\xe1n ch\\xfang t\\xf4i thực hiện. \",favicon:\"https://framerusercontent.com/assets/WoRGLGVg1ndkp6IAPOoHvw4QGQ.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/uqOrQS97mUCDSYRY9gWPIgLRtFk.webp\",title:getLocalizedValue(\"v0\",activeLocale)??\"Your Own Haus\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oOAC6B,EAAC,EAAU,UAAU,CAAC,CAAC,EAAe,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,CAAC,EAAe,EAAI,CAAC,2IAA2I,EAAe,EAAU,kBCAb,SAAS,GAA0B,CAAyC,GAArC,OAAO,SAAW,KAAsB,GAAsB,SAAS,KAAK,SAAS,CAAoB,EAAE,OAAO,IAAM,EAAS,SAAS,eAAe,CAAuB,EAAE,GAAG,aAAoB,iBAAiB,CAAC,EAAqB,EAAS,MAAO,CAAC,IAAM,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,EAAwB,EAAM,aAAa,qCAAqC,MAAM,EAAE,EAAM,YAAY;;;;;;;;;;;;;EAavtB,SAAS,KAAK,YAAY,CAAK,EAAE,EAAqB,CAAM,CAAC,SAAS,GAAmC,CAAyC,GAArC,OAAO,SAAW,KAAsB,EAAiB,EAAE,OAAO,IAAM,EAAQ,GA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