{"version":3,"file":"PopupOverrides.DShhBSJB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/n90aA9vghJTBKV33CTg7/6Ij4RvFwi3eQlRUwaLW3/PopupOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";const LS_PREFIX=\"today-okay:\";function safeGetItem(key){try{if(typeof window===\"undefined\")return null;return window.localStorage.getItem(key);}catch{return null;}}// 자동적으로 클릭(탭) 이벤트 발생\nexport function withOpenPopup(Component){return props=>{const popupKey=props.id;useEffect(()=>{if(popupKey){const fullKey=LS_PREFIX+popupKey;const raw=safeGetItem(fullKey);if(raw){try{const{expiresAt}=JSON.parse(raw);if(typeof expiresAt===\"number\"&&Date.now()<expiresAt){return;}}catch{}}}props.onTap();},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withOpenPopup\":{\"type\":\"reactHoc\",\"name\":\"withOpenPopup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PopupOverrides.map"],"mappings":"gIAAsG,SAAS,EAAY,EAAI,CAAC,GAAG,CAA4C,OAAjC,IAAS,OAAmB,KAAY,EAAO,aAAa,QAAQ,EAAI,MAAO,CAAC,OAAO,MACrO,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,EAAM,GAAwO,OAArO,MAAc,CAAC,GAAG,EAAS,CAAkC,IAAM,EAAI,EAA7B,EAAU,EAAuC,CAAC,GAAG,EAAK,GAAG,CAAC,GAAK,CAAC,aAAW,KAAK,MAAM,EAAI,CAAC,GAAG,OAAO,GAAY,UAAU,KAAK,KAAK,CAAC,EAAW,YAAc,GAAI,EAAM,OAAO,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,yBADxT,IAA6B,CAAM,EAAU"}