{"version":3,"file":"Password.DoU-R9F1.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","init_jsx_runtime","ce","_e","withPasswordGate","isUnlocked","setIsUnlocked","isEditorPreview","id","PASSWORD","HOME_URL","Component","props","init_Password"],"sources":["https:/framerusercontent.com/modules/scr2JgSlf5Q7JneXqG1w/yUjMQkDL6pxl3BCRlwo9/Password.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const PASSWORD=\"2929\";const HOME_URL=\"https://www.29cm.co.kr\";// 프레이머 에디터 preview는 framercanvas.com 도메인에서 그려집니다\nconst isEditorPreview=()=>typeof window!==\"undefined\"&&window.location.hostname.endsWith(\"framercanvas.com\");export function withPasswordGate(Component){return props=>{const[isUnlocked,setIsUnlocked]=useState(isEditorPreview);useEffect(()=>{if(isEditorPreview()){return;}// 가림막이 실제로 그려진 다음 프롬프트를 띄웁니다 (prompt는 렌더링을 멈춥니다)\nconst id=requestAnimationFrame(()=>requestAnimationFrame(()=>{const input=window.prompt(\"비밀번호를 입력해 주세요\");if(input===PASSWORD){setIsUnlocked(true);return;}window.location.replace(HOME_URL);}));return()=>cancelAnimationFrame(id);},[]);if(!isUnlocked){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",inset:0,zIndex:2147483647,background:\"#fff\"}});}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordGate\":{\"type\":\"reactHoc\",\"name\":\"withPasswordGate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Password.map"],"mappings":"A,uIAC6G,SAAgBQ,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAAWC,GAAeV,EAASW,CAAe,EACiI,OAD/HL,MAAc,CAAC,GAAGK,EAAgB,EAAG,OACvQ,IAAMC,EAAG,0BAA0B,0BAA0B,CAAaR,EAAO,OAAO,eAAwB,IAAIS,EAAUH,EAAc,EAAI,EAAUN,EAAO,SAAS,QAAQU,CAAQ,CAAE,CAAC,CAAC,EAAE,UAAU,qBAAqBF,CAAE,CAAE,EAAE,CAAC,CAAC,EAAMH,EAAwI,gBAAKM,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAjI,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,MAAM,EAAE,OAAO,WAAW,WAAW,MAAM,CAAC,CAAC,CAAkD,CAAE,C,oDAF3T,EAAS,OAAa,EAAS,yBAChH,MAA2BZ,IAAS,QAAaA,EAAO,SAAS,SAAS,SAAS,kBAAkB,C"}