/*! 2024. 5. 2. 오후 4:59:11 */ /******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; (() => { const { EventManager, pageHelper } = ShopbySkin; const searchParams = new URLSearchParams(location.search); const params = Object.fromEntries(searchParams.entries()); const boardReviewsListHelper = pageHelper.boardReviewsListHelper(); boardReviewsListHelper.initialize(params); const moduleActionHandler = { REGISTER: ({ target }) => { const usesAttachment = target.closest('[shopby-uses-attachment]')?.getAttribute('shopby-uses-attachment'); EventManager.fire('OPEN_LAYER_MODAL', { name: 'product-review-form', title: 'Review', modalAddClass: 'product-review-form-modal', isFull: false, data: { isSelectProduct: true, usesAttachment, }, onClose: ({ reason }) => { if (reason === 'DID_SUBMIT') { EventManager.fire('MODAL_ALERT_OPEN', { noticeType: 'success', label: 'Confirm', message: 'A product review has been registered', onClose: () => { location.reload(); }, }); } }, }); }, }; document.querySelector('board-review-search-field')?.addEventListener('click', ({ target }) => { const action = target.closest('[shopby-action]')?.getAttribute('shopby-action'); moduleActionHandler[action]?.({ target }); }); })(); /******/ })() ;