(() => { const { EventManager, utils, constants } = ShopbySkin; const { isMobileDevice } = utils; // 외부스크립트 등록 기능. 삭제금지 ShopbyExternalScript?.initialize({ apiOption: { platform: 'MOBILE_WEB', }, }).then(() => { EventManager.fire('QUERY_PAGE_SCRIPTS', ShopbyExternalScript?.scripts); }); EventManager.on('PAGE_LOAD_COMPLETED', ({ profile }) => { // 외부스크립트 등록 기능. 삭제금지 ShopbyExternalScript?.setGlobalObjectSb({ getPlatform: () => (isMobileDevice ? 'MOBILE_WEB' : 'PC'), profile, }); }); const searchParams = new URLSearchParams(location.search); const trackingKey = searchParams.get('trackingKey'); const channelType = searchParams.get('channelType'); const { setTrackingKey, setChannelType } = ShopbySkin.utils; setTrackingKey(trackingKey); setChannelType(channelType); const requireMarketingPrivacyAgreeNotification = sessionStorage.getItem( constants.REQUIRE_MARKETING_PRIVACY_AGREE_NOTIFICATION ); if (requireMarketingPrivacyAgreeNotification) { sessionStorage.removeItem(constants.REQUIRE_MARKETING_PRIVACY_AGREE_NOTIFICATION); if (!utils.isSignIn()) return; const excludePages = new Set(['/pages/sign-in/expired-password-change-form.html', '/pages/my/modify-member.html']); if (excludePages.has(location.pathname)) return; EventManager.fire('MODAL_ALERT_OPEN', { noticeType: '', message: '이메일 및 SMS 수신을 위해
마케팅 목적의 개인정보 수집·이용에 동의해 주세요.', onClose: () => { const nextUrl = `${location.origin}/pages/my/modify-member.html`; location.replace(nextUrl); }, }); } })();