{"version":3,"file":"Fullscreen.DTYvew45.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/mJCZzyBfOSVP0vCFtMKL/q6PRSwkbB2kqEdwlL49b/Fullscreen.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";let hideTimer=null;let styleElement=null;function showCursorTemporarily(){// Framer 기본 커서 동작 복구\n// 버튼이나 링크 위에서는 손가락 모양이 나오게 함\ndocument.body.style.removeProperty(\"cursor\");if(hideTimer)clearTimeout(hideTimer);hideTimer=setTimeout(()=>{if(document.fullscreenElement){document.body.style.setProperty(\"cursor\",\"none\",\"important\");}},2e3);}export function Fullscreen(){return{onTap:async()=>{if(!document.fullscreenElement){try{// 홈페이지에 들어간 첫 번째 음악 재생\nconst audio=document.querySelector(\"audio\");if(audio){audio.currentTime=0;audio.volume=1;await audio.play();}// 전체화면 실행\nawait document.documentElement.requestFullscreen();// 오른쪽 스크롤바 숨기기\nif(!styleElement){styleElement=document.createElement(\"style\");styleElement.innerHTML=`\n                            html {\n                                scrollbar-width: none;\n                            }\n\n                            body {\n                                -ms-overflow-style: none;\n                            }\n\n                            html::-webkit-scrollbar,\n                            body::-webkit-scrollbar {\n                                display: none;\n                            }\n                        `;document.head.appendChild(styleElement);}// 마우스는 움직이면 나타나고\n// 2초간 움직이지 않으면 사라짐\nshowCursorTemporarily();window.addEventListener(\"mousemove\",showCursorTemporarily);const handleFullscreenChange=()=>{if(!document.fullscreenElement){// 전체화면 종료 시 기본 커서로 복구\ndocument.body.style.removeProperty(\"cursor\");window.removeEventListener(\"mousemove\",showCursorTemporarily);if(hideTimer){clearTimeout(hideTimer);hideTimer=null;}document.removeEventListener(\"fullscreenchange\",handleFullscreenChange);}};document.addEventListener(\"fullscreenchange\",handleFullscreenChange);}catch(err){console.log(err);}}}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withFullscreen(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Fullscreen(props)});};}withFullscreen.displayName=\"Fullscreen\";\nexport const __FramerMetadata__ = {\"exports\":{\"withFullscreen\":{\"type\":\"reactHoc\",\"name\":\"withFullscreen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Fullscreen\":{\"type\":\"override\",\"name\":\"Fullscreen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Fullscreen.map"],"mappings":"4KAAoF,SAAS,GAAuB,CAEpH,SAAS,KAAK,MAAM,eAAe,QAAQ,EAAK,GAAU,aAAa,CAAS,EAAE,EAAU,eAAe,CAAI,SAAS,mBAAmB,SAAS,KAAK,MAAM,YAAY,SAAS,OAAO,WAAW,CAAG,EAAE,GAAG,CAAE,CAAC,SAAgB,GAAY,CAAC,MAAM,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,SAAS,kBAAmB,GAAG,CACxS,IAAM,EAAM,SAAS,cAAc,OAAO,EAAK,IAAO,EAAM,YAAY,EAAE,EAAM,OAAO,EAAE,MAAM,EAAM,KAAK,GAC1G,MAAM,SAAS,gBAAgB,kBAAkB,EAC7C,IAAc,EAAa,SAAS,cAAc,OAAO,EAAE,EAAa,UAAU;;;;;;;;;;;;;0BAa5D,SAAS,KAAK,YAAY,CAAY,GAEhE,EAAsB,EAAE,EAAO,iBAAiB,YAAY,CAAqB,EAAE,IAAM,MAA2B,CAAK,SAAS,oBAClI,SAAS,KAAK,MAAM,eAAe,QAAQ,EAAE,EAAO,oBAAoB,YAAY,CAAqB,EAAE,AAAsC,KAAxB,aAAa,CAAS,EAAY,MAAM,SAAS,oBAAoB,mBAAmB,CAAsB,EAAG,EAAE,SAAS,iBAAiB,mBAAmB,CAAsB,CAAE,OAAO,EAAI,CAAC,QAAQ,IAAI,CAAG,CAAE,CAAE,CAAC,CAAE,CAAoJ,SAAgB,EAAe,EAAE,CAAC,MAAO,KAAQ,EAA+BA,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAW,CAAK,CAAC,CAAC,EAAI,yBArBvmB,IAqByW,IAAmF,EArBvb,EAAU,KAAS,EAAa,KAqBmkB,EAAe,YAAY"}