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AiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOpC,EAAoBQ,EAAEC,EAC9B,EAEIiC,EAAqBC,KAA8B,wBAAIA,KAA8B,yBAAK,GAC9FD,EAAmBlU,QAAQ6T,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBtd,KAAOid,EAAqBO,KAAK,KAAMF,EAAmBtd,KAAKwd,KAAKF,G,IC/CvF,IAAIG,EAAsB7C,EAAoBQ,OAAEpG,EAAW,CAAC,IAAI,MAAM,WAAa,OAAO4F,EAAoB,KAAO,IACrH6C,EAAsB7C,EAAoBQ,EAAEqC,E","sources":["webpack://the-butters/webpack/runtime/chunk loaded","webpack://the-butters/./f2e_lib/composable/useAlert.js","webpack://the-butters/./f2e_lib/composable/api/apiCalls.js","webpack://the-butters/./f2e_lib/composable/api/useAxiosAPI.js","webpack://the-butters/./f2e_lib/stores/useMiniCartStore.js","webpack://the-butters/./f2e_lib/composable/useMessage.js","webpack://the-butters/./f2e_lib/composable/useTextProcessing.js","webpack://the-butters/./f2e_lib/composable/useImage.js","webpack://the-butters/./f2e_lib/components/common/Image/NewImage.vue","webpack://the-butters/./f2e_lib/components/common/Image/NewImage.vue?08b8","webpack://the-butters/./f2e_lib/components/common/alert/AlertLayout.vue","webpack://the-butters/./f2e_lib/components/common/alert/AlertLayout.vue?a31e","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertConfirm.vue","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertConfirm.vue?4322","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertInfo.vue","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertInfo.vue?8358","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertSpecial.vue","webpack://the-butters/./f2e_lib/components/common/alert/parts/AlertSpecial.vue?2de5","webpack://the-butters/./f2e_lib/components/common/alert/AlertDialog.vue","webpack://the-butters/./f2e_lib/components/common/message/Message.vue","webpack://the-butters/./f2e_lib/components/common/message/Message.vue?8c14","webpack://the-butters/./f2e_lib/gtm/class/shopListClass.js","webpack://the-butters/./f2e_lib/gtm/base.js","webpack://the-butters/./f2e_lib/gtm/search/index.js","webpack://the-butters/./src/pages/common/js/common.js","webpack://the-butters/./f2e_lib/gtm/shopList/shopListView.js","webpack://the-butters/./f2e_lib/composable/shop/useAdvancedSort.js","webpack://the-butters/./src/pages/shop/components/AdvancedPopup.vue","webpack://the-butters/./src/pages/shop/components/AdvancedPopup.vue?fc1b","webpack://the-butters/./src/pages/shop/components/AdvancedSort.vue?b3d8","webpack://the-butters/./src/pages/shop/components/AdvancedSort.vue","webpack://the-butters/./f2e_lib/composable/shop/useNormalSort.js","webpack://the-butters/./src/pages/shop/components/NormalSort.vue?935e","webpack://the-butters/./src/pages/shop/components/NormalSort.vue","webpack://the-butters/./src/pages/shop/components/SortApp.vue","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorLessThanMaxCont.vue?d756","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorLessThanMaxCont.vue","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorFirstMaxCont.vue?9b94","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorFirstMaxCont.vue","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorLastMax.vue?e883","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorLastMax.vue","webpack://the-butters/./f2e_lib/components/common/pagination/parts/PaginatorNormal.vue","webpack://the-butters/./f2e_lib/components/common/pagination/PaginationLayout.vue?0053","webpack://the-butters/./f2e_lib/components/common/pagination/PaginationLayout.vue","webpack://the-butters/./f2e_lib/gtm/class/clickClass.js","webpack://the-butters/./f2e_lib/gtm/shopList/clickList.js","webpack://the-butters/./src/pages/shop/js/index.js","webpack://the-butters/webpack/bootstrap","webpack://the-butters/webpack/runtime/compat get default export","webpack://the-butters/webpack/runtime/define property getters","webpack://the-butters/webpack/runtime/global","webpack://the-butters/webpack/runtime/hasOwnProperty shorthand","webpack://the-butters/webpack/runtime/make namespace object","webpack://the-butters/webpack/runtime/runtimeId","webpack://the-butters/webpack/runtime/jsonp chunk loading","webpack://the-butters/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import { ref } from 'vue';\r\nimport $ from 'jquery';\r\n\r\nconst alerts = ref([]);\r\n/**\r\n * @description 警示跳窗\r\n * @param {String} msg 回傳訊息\r\n * @param {String} type 樣式 alert、confirm\r\n * @param {Function} callback\r\n * @param {String} dataName 抓取特定跳窗時\r\n */\r\nfunction showAlert(msg, type, callback, dataName) {\r\n // 有時有多個警示視窗\r\n alerts.value.push({ msg, type, callback, dataName });\r\n\r\n const $body = $('body');\r\n $body.css({ overflow: 'hidden' });\r\n}\r\n\r\nfunction closeAlert(index) {\r\n alerts.value.splice(index, 1);\r\n const $body = $('body');\r\n $body.css({ overflow: '', 'padding-right': '' });\r\n}\r\n\r\n// 這是為不改變太多的寫法給前、後端用的\r\nconst allAlertFn = () => {\r\n const o = {};\r\n o.alert = (msg, callback, name) => {\r\n showAlert(msg, 'alert', callback, name);\r\n };\r\n\r\n o.confirm = (msg, callback, name) => {\r\n showAlert(msg, 'confirm', callback, name);\r\n };\r\n\r\n o.special = (msg, callback, name) => {\r\n showAlert(msg, 'special', callback, name);\r\n };\r\n return o;\r\n};\r\nconst alertDialog = allAlertFn();\r\n\r\nfunction useAlert() {\r\n return { alerts, alertDialog, showAlert, closeAlert };\r\n}\r\n\r\nexport default useAlert;\r\n","const generateHeaders = (otherObj) => {\r\n return {\r\n handleDefaultError: otherObj?.handleDefaultError ? otherObj?.handleDefaultError : false,\r\n handle400: otherObj?.handle400 ? otherObj?.handle400 : false,\r\n handle401: otherObj?.handle401 ? otherObj?.handle401 : false,\r\n };\r\n};\r\n\r\nconst commonAPI = {\r\n getFavoriteAPI: (instance, getData) => instance.get(API_URL.FAVORITE, getData),\r\n postFavoriteAPI: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.FAVORITE, postData, { headers });\r\n },\r\n deleteFavoriteAPI: (instance, deleteData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.delete(API_URL.FAVORITE, { ...deleteData, headers });\r\n },\r\n getHotSearchAPI: (instance, getData) => instance.get(API_URL.HOT_SEARCH, getData),\r\n getCartInfoAPI: (instance) => instance.get(API_URL.CART_INFO),\r\n getShareAPI: (instance, id) => instance.get(`${API_URL.SHARE}/${id}`),\r\n postNewsletter: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.NEWSLETTER, postData, { headers });\r\n },\r\n};\r\n\r\nconst articleAPI = {\r\n getArticleListAPI: (instance, getData) => instance.get(API_URL.ARTICLE_LIST, getData),\r\n getArticleContentAPI: (instance, id, getData) =>\r\n instance.get(`${API_URL.ARTICLE_CONTENT}/${id}`, getData),\r\n getArticleCategoryAPI: (instance, id, getData) => instance.get(API_URL.ARTICLE_CATEGORY, getData),\r\n};\r\n\r\nconst addonAPI = {\r\n getAddonCartAPI: (instance, getData) => instance.get(API_URL.ADDON_CART, getData),\r\n getAddonEvent: (instance, getData) => instance.get(API_URL.ADDON_EVENT, getData),\r\n};\r\n\r\nconst brandAPI = {\r\n getBrandFollowAPI: (instance) => instance.get(API_URL.BRAND),\r\n postBrandFollowAPI: (instance, postData) => instance.post(API_URL.BRAND_FOLLOW, postData),\r\n deleteBrandFollowAPI: (instance, deleteData) => instance.delete(API_URL.BRAND_FOLLOW, deleteData),\r\n};\r\n\r\nconst cartAPI = {\r\n postCouponAPI: (instance, postData) => instance.post(API_URL.COUPON, postData),\r\n postCoupon2API: (instance, postData) => instance.post(API_URL.COUPON2, postData),\r\n getOrderAddressAPI: (instance, getData) => instance.get(API_URL.ORDER_ADDRESS, getData),\r\n postShoppingCartAPI: (instance, postData) => instance.post(API_URL.SHOPPING_CART, postData),\r\n getShoppingCartAPI: (instance, getData) => instance.get(API_URL.SHOPPING_CART, getData),\r\n putShoppingCartAPI: (instance, putData) => instance.put(API_URL.SHOPPING_CART, putData),\r\n getAddressBookAPI: (instance, getData) => instance.get(API_URL.ADDRESS_BOOK, getData),\r\n deleteAddressBookAPI: (instance, id) => instance.delete(`${API_URL.ADDRESS_BOOK}/${id}`),\r\n postAddressBookAPI: (instance, postData) => instance.post(API_URL.ADDRESS_BOOK, postData),\r\n getLastInvoiceAPI: (instance, getData) => instance.get(API_URL.LAST_INVOICE_SETTING, getData),\r\n getVerifyMobileCode: (instance, getData) => instance.get(API_URL.VERIFY_MOBILE_CODE, getData),\r\n getCartRecommendDataAPI: (instance, getData) => instance.get(API_URL.RECOMMEND_CART, getData),\r\n};\r\n\r\nconst shopAPI = {\r\n getSearchRecommendAPI: (instance, getData) => instance.get(API_URL.MARKET_NEW, getData),\r\n getSortConditionAPI: (instance) => instance.get(API_URL.SORT_POPUP),\r\n getDataAPI: (instance, getData) => instance.get(API_URL.MARKET_CONTENT, getData),\r\n getSeriesDataAPI: (instance, getData) => instance.get(API_URL.SERIES_MARKET_CONTENT, getData),\r\n getBrandRecommendDataAPI: (instance, getData) => instance.get(API_URL.MARKET_RECOMMEND, getData),\r\n getRecommendDataAPI: (instance, getData) => instance.get(API_URL.MARKET_RECOMMEND, getData),\r\n getMarketRecommendDataAPI: (instance, getData) => instance.get(API_URL.RECOMMEND_SHOP, getData),\r\n postNoticeAPI: (instance, postData) => instance.post(API_URL.IN_STOCK_EMAIL, postData),\r\n};\r\n\r\nconst loginAPI = {\r\n postForgetPS: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.FORGET_PS, postData, { headers });\r\n },\r\n getAccountExist: (instance, getData) => instance.get(API_URL.ACCOUNT_EXIST, getData),\r\n};\r\n\r\nconst orderAPI = {\r\n deleteOrderAPI: (instance, deleteData) => instance.delete(API_URL.ORDER, deleteData),\r\n getRefundDetailAPI: (instance, getData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.get(API_URL.REFUND_DETAIL, { ...getData, headers });\r\n },\r\n getOrderAPI: (instance, getData) => instance.get(API_URL.ORDER, getData),\r\n postRefundCalculateAPI: (instance, postData) => instance.post(API_URL.REFUND_CALCULATE, postData),\r\n getShippingFlowAPI: (instance, getData) => instance.get(API_URL.SHIPPING_FLOW, getData),\r\n getOrderAtmAPI: (instance, getData) => instance.get(API_URL.ORDER_ATM, getData),\r\n postCashInAPI: (instance, postData) => instance.post(API_URL.VC_CASH_IN, postData),\r\n};\r\n\r\nconst memberAPI = {\r\n // urliving 5%驗證\r\n getVerifyPhoneAPI: (instance, getData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.get(API_URL.VERIFY_PHONE, { ...getData, headers });\r\n },\r\n // 取回饋金歷程\r\n getBonusRecordAPI: (instance, getData) => instance.get(API_URL.BONUS_RECORDS, getData),\r\n // 提領回饋金\r\n postBonusWithDrawAPI: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.BONUS_WITHDRAW, postData, { headers });\r\n },\r\n // 上傳身分證\r\n postUserIdAPI: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.USER_IDENTIFICATION, postData, { headers });\r\n },\r\n // 回饋金-綁定銀行帳號\r\n postUserBankAccountAPI: (instance, postData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.post(API_URL.USER_BANK_ACCOUNT, postData, { headers });\r\n },\r\n getDataAnalyzeAPI: (instance, getData) => instance.get(API_URL.DATA_ANALYZE, getData),\r\n};\r\n\r\nconst faPointAPI = {\r\n getVerifyFaPointAPI: (instance, getData, otherObj) => {\r\n const headers = generateHeaders(otherObj);\r\n return instance.get(API_URL.VERIFY_FA_POINTS, { ...getData, headers });\r\n },\r\n getFaPointAPI: (instance) => instance.get(API_URL.FA_POINTS),\r\n postUnbindFaPointAPI: (instance) => instance.post(API_URL.UNBIND_FA_POINTS),\r\n};\r\n\r\nconst apiCalls = {\r\n ...commonAPI,\r\n ...articleAPI,\r\n ...addonAPI,\r\n ...brandAPI,\r\n ...cartAPI,\r\n ...shopAPI,\r\n ...loginAPI,\r\n ...orderAPI,\r\n ...memberAPI,\r\n ...faPointAPI,\r\n};\r\n\r\nconst createApi = (instance) => {\r\n const api = {};\r\n for (const [key, func] of Object.entries(apiCalls)) {\r\n api[key] = (...args) => func(instance, ...args);\r\n }\r\n return api;\r\n};\r\n\r\nexport default createApi;\r\n","import axios from 'axios';\r\nimport useAlert from '@global/composable/useAlert';\r\nimport createApi from './apiCalls'; // 引入 createApi 函數\r\n\r\nconst { alertDialog } = useAlert();\r\n\r\n// 201 無剩餘的購物金,無法進行結清\r\n// 205 商品已售完 / 贈品被移除 (因贈品不能寄海外)\r\n// 400 失敗等其餘錯誤訊息 (格式錯誤、此帳號不存在、此Email已綁定第三方登入帳號...)\r\n// 403 faBind手機驗證超過發送次數\r\n// 401 尚未登入\r\n// 409 超過商品限購數量\r\n\r\nconst successHandle = (res, handleDefaultError, handle400, handle401) => {\r\n switch (res.data.Code) {\r\n case 200:\r\n case 201:\r\n case 205:\r\n break;\r\n case 400:\r\n if (!handle400) {\r\n alertDialog.confirm('系統忙線中,是否跳轉至首頁', () => {\r\n window.location.href = '/';\r\n });\r\n } else {\r\n alertDialog.alert(res.data.Message);\r\n }\r\n break;\r\n case 401:\r\n if (!handle401) {\r\n alertDialog.alert('請先登入');\r\n } else {\r\n alertDialog.alert('我要登入/註冊', () => {\r\n window.location.href = `/login?redirecturl=${handle401}`;\r\n });\r\n }\r\n break;\r\n case 403:\r\n alertDialog.alert(res.data.Message);\r\n break;\r\n case 409:\r\n alertDialog.alert(res.data.Message);\r\n break;\r\n\r\n default:\r\n if (!handleDefaultError) {\r\n alertDialog.confirm('系統忙線中,是否跳轉至首頁', () => {\r\n window.location.href = '/';\r\n });\r\n }\r\n break;\r\n }\r\n};\r\n\r\nconst errorHandle = () => {\r\n alertDialog.confirm('系統忙線中,是否跳轉至首頁', () => {\r\n window.location.href = '/';\r\n });\r\n};\r\n\r\nconst instance = axios.create({\r\n baseURL: '',\r\n});\r\n\r\n// request 攔截\r\ninstance.interceptors.request.use(\r\n (config) => {\r\n return config;\r\n },\r\n (error) => {\r\n return Promise.reject(error);\r\n },\r\n);\r\n\r\n// response 攔截\r\ninstance.interceptors.response.use(\r\n (res) => {\r\n const { handleDefaultError } = res.config.headers;\r\n const { handle400 } = res.config.headers;\r\n const { handle401 } = res.config.headers;\r\n successHandle(res, handleDefaultError, handle400, handle401);\r\n // 這邊可以對回來的資料先進行驗證處理,再來決定要不要把資料給吐出去\r\n return Promise.resolve(res);\r\n },\r\n (error) => {\r\n errorHandle();\r\n return Promise.reject(error);\r\n },\r\n);\r\n\r\n// 使用 createApi 函數生成 API 調用函數\r\nconst api = createApi(instance);\r\n\r\nfunction useAPIHandler() {\r\n return api;\r\n}\r\n\r\nexport default useAPIHandler;\r\n","import { computed, ref } from 'vue';\r\n\r\nimport { defineStore } from 'pinia';\r\nimport useAxiosAPI from '@global/composable/api/useAxiosAPI';\r\n\r\nconst { getHotSearchAPI, getCartInfoAPI } = useAxiosAPI();\r\n\r\nconst useMiniCartStore = defineStore('miniCart', () => {\r\n const dataIsLoad = ref(false);\r\n const totalCount = ref(0); // 所有溫藏商品總數\r\n const generalCount = ref(0); // 常溫總數量\r\n const refrigerationCount = ref(0); // 冷藏總數量\r\n const freezingCount = ref(0); // 冷凍總數量\r\n const generalSpotGoodsCount = ref(0); // 一般常溫現貨數量\r\n const refrigerationSpotGoodsCount = ref(0); // 冷藏現貨數量\r\n const freezingSpotGoodsCount = ref(0); // 冷凍現貨數量\r\n const generalMarketProducts = ref([]);\r\n const refrigerationMarketProducts = ref([]);\r\n const freezingMarketProducts = ref([]);\r\n const temperaturesData = ref([]);\r\n const count = ref(0); // 所有商品總數(for 一頁式)\r\n const hotSearch = ref([]);\r\n const hotLoad = ref(false);\r\n\r\n const isOnlyOneTemp = computed(() => {\r\n let hasProductTempCount = 0;\r\n if (generalCount.value > 0) {\r\n hasProductTempCount += 1;\r\n }\r\n if (refrigerationCount.value > 0) {\r\n hasProductTempCount += 1;\r\n }\r\n if (freezingCount.value > 0) {\r\n hasProductTempCount += 1;\r\n }\r\n return hasProductTempCount === 1;\r\n });\r\n\r\n function changeCartTotalCount(itemArray) {\r\n totalCount.value = itemArray.data.Response.TotalCount;\r\n count.value = itemArray.data.Response.TotalCount;\r\n temperaturesData.value = itemArray.data.Response.Temperatures;\r\n // 溫層ID (0: 常溫,1: 冷藏,2: 常溫)\r\n itemArray.data.Response.Temperatures.forEach((item) => {\r\n if (item.ID === 0) {\r\n generalCount.value = item.Count;\r\n generalMarketProducts.value = item.Markets;\r\n generalSpotGoodsCount.value = item.InstockCount;\r\n } else if (item.ID === 1) {\r\n refrigerationCount.value = item.Count;\r\n refrigerationMarketProducts.value = item.Markets;\r\n refrigerationSpotGoodsCount.value = item.InstockCount;\r\n } else {\r\n freezingCount.value = item.Count;\r\n freezingMarketProducts.value = item.Markets;\r\n freezingSpotGoodsCount.value = item.InstockCount;\r\n }\r\n });\r\n dataIsLoad.value = true;\r\n }\r\n\r\n function getCartInfo() {\r\n dataIsLoad.value = false;\r\n getCartInfoAPI()\r\n .then((res) => {\r\n if (res.data.Code === 200) {\r\n changeCartTotalCount(res);\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n });\r\n }\r\n\r\n function getHotSearch() {\r\n hotLoad.value = false;\r\n\r\n getHotSearchAPI({\r\n params: {\r\n period: 'range',\r\n date: 'last3',\r\n limit: 10,\r\n },\r\n })\r\n .then((res) => {\r\n if (res.data.Code === 200) {\r\n const hotArray = [];\r\n for (let i = 0; i < res.data.Response.length; i++) {\r\n hotArray.push(res.data.Response[i]);\r\n }\r\n hotSearch.value = hotArray;\r\n hotLoad.value = true;\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n });\r\n }\r\n\r\n return {\r\n dataIsLoad,\r\n totalCount,\r\n generalCount,\r\n refrigerationCount,\r\n freezingCount,\r\n generalMarketProducts,\r\n refrigerationMarketProducts,\r\n freezingMarketProducts,\r\n temperaturesData,\r\n count,\r\n hotSearch,\r\n hotLoad,\r\n\r\n isOnlyOneTemp,\r\n\r\n changeCartTotalCount,\r\n getCartInfo,\r\n getHotSearch,\r\n };\r\n});\r\n\r\nexport default useMiniCartStore;\r\n","import { ref } from 'vue';\r\n\r\nconst messages = ref([]);\r\n\r\n/**\r\n * @description 警示訊息\r\n * @param {String} msg 回傳訊息\r\n * @param {String} cls icon樣式 (只有服飾公版有用到)\r\n * @param {Function} callback\r\n */\r\nfunction showMsg(msg, cls, callback) {\r\n messages.value.push({ msg, cls, callback });\r\n\r\n setTimeout(() => {\r\n if (typeof callback === 'function') {\r\n callback();\r\n }\r\n messages.value.splice(0, 1);\r\n }, 2000);\r\n}\r\n\r\n// 這是為不改變太多的寫法給前、後端用的\r\nconst allMsgFn = () => {\r\n const o = {};\r\n o.success = (msg, callback) => {\r\n showMsg(msg, 'icon-reminder-ok', callback);\r\n };\r\n\r\n o.cart = (msg, callback) => {\r\n showMsg(msg, 'icon-reminder-cart', callback);\r\n };\r\n return o;\r\n};\r\nconst messageBox = allMsgFn();\r\n\r\n// eslint-disable-next-line import/prefer-default-export\r\nfunction useMsg() {\r\n return { messages, messageBox, showMsg };\r\n}\r\n\r\nexport default useMsg;\r\n","/**\r\n * @description 自動補零\r\n */\r\nfunction useAutoSupplement(value) {\r\n if (value < 10) {\r\n return `0${value}`;\r\n }\r\n return value.toString();\r\n}\r\n\r\nfunction useTextProcessing() {\r\n return {\r\n useAutoSupplement,\r\n };\r\n}\r\n\r\nexport default useTextProcessing;\r\n","/**\r\n * @description 圖片轉換網址\r\n * @param {string} imgUrl 網址\r\n * @param {string} sizeStr 尺寸\r\n */\r\nfunction imgTransfer(imgUrl, sizeStr) {\r\n if (imgUrl == null || imgUrl.length === 0) return null;\r\n\r\n const imgName = imgUrl.substring(imgUrl.lastIndexOf('/') + 1, imgUrl.length - 4);\r\n const imgExtension = imgUrl.substring(imgUrl.length - 4, imgUrl.length);\r\n const splitArr = imgUrl.split('/');\r\n const folderName = splitArr[4];\r\n const pictureContainer = splitArr[3];\r\n\r\n // gif不近縮圖\r\n if (imgUrl.indexOf('gif') !== -1) {\r\n return `https://${window.StaticImgDomain}/${pictureContainer}/${folderName}s/${imgName}${imgExtension}`;\r\n }\r\n if (imgUrl.indexOf('.mp4') !== -1) {\r\n if (imgUrl.indexOf('pics') === -1 && imgUrl.indexOf('pic') !== -1) {\r\n return imgUrl.replace('pic', 'pics');\r\n }\r\n return imgUrl;\r\n }\r\n return `https://${window.StaticImgDomain}/${pictureContainer}/${folderName}s/${imgName}${sizeStr}${imgExtension}`;\r\n}\r\n\r\nfunction useImage() {\r\n return { imgTransfer };\r\n}\r\n\r\nexport default useImage;\r\n","\r\n \r\n\r\n\r\n\r\n","import script from \"./NewImage.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./NewImage.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./AlertLayout.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AlertLayout.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n \r\n 確定\r\n \r\n \r\n \r\n \r\n 取消\r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./AlertConfirm.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AlertConfirm.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n 確定\r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./AlertInfo.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AlertInfo.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n\r\n\r\n\r\n","import script from \"./AlertSpecial.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AlertSpecial.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./AlertDialog.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AlertDialog.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./Message.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./Message.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","export default class ShopListView {\r\n constructor() {\r\n const hasCategory = window.ItemCategories || [];\r\n\r\n this.category = {\r\n itemCategory: hasCategory[0] || '',\r\n itemCategory2: hasCategory[1] || '',\r\n itemCategory3: hasCategory[2] || '',\r\n itemCategory4: hasCategory[3] || '',\r\n itemCategory5: hasCategory[4] || '',\r\n url: window.location.href,\r\n };\r\n }\r\n\r\n getItemListName() {\r\n let combineCategory = '';\r\n\r\n for (const key in this.category) {\r\n if (key !== 'url' && this.category[key]) {\r\n if (combineCategory === '') {\r\n combineCategory = this.category[key];\r\n } else {\r\n combineCategory = `${combineCategory}--${this.category[key]}`;\r\n }\r\n }\r\n }\r\n\r\n const searchParams = new URLSearchParams(decodeURI(window.location.search));\r\n const page = searchParams.get('Page');\r\n\r\n combineCategory = page\r\n ? `${combineCategory} 產品列表 Page ${page}`\r\n : `${combineCategory} 產品列表`;\r\n\r\n return combineCategory;\r\n }\r\n\r\n getListInfo() {\r\n const allListItem = window.dataLayer.find((obj) => obj.ecommerce && obj.ecommerce.impressions);\r\n\r\n let items = [];\r\n\r\n if (allListItem) {\r\n items = allListItem.ecommerce.impressions.map((item, index) => {\r\n return {\r\n item_id: item.id,\r\n item_name: item.name,\r\n index,\r\n item_list_name: item.list,\r\n item_brand: '',\r\n item_category: this.category.itemCategory,\r\n item_category2: this.category.itemCategory2,\r\n item_category3: this.category.itemCategory3,\r\n item_category4: this.category.itemCategory4,\r\n item_category5: this.category.itemCategory5,\r\n price: parseInt(item.price),\r\n quantity: 1,\r\n affiliation: item.variant,\r\n };\r\n });\r\n }\r\n\r\n return items;\r\n }\r\n\r\n getRecommendListInfo(listName) {\r\n const allListItem = window.dataLayer.find((obj) => obj.ecommerce && obj.ecommerce.impressions);\r\n\r\n const items = [];\r\n\r\n if (allListItem) {\r\n allListItem.ecommerce.impressions.forEach((item, index) => {\r\n const impression = {\r\n item_id: item.id,\r\n item_name: item.name,\r\n index,\r\n item_list_name: listName,\r\n item_brand: '',\r\n item_category: this.category.itemCategory,\r\n item_category2: this.category.itemCategory2,\r\n item_category3: this.category.itemCategory3,\r\n item_category4: this.category.itemCategory4,\r\n item_category5: this.category.itemCategory5,\r\n price: parseInt(item.price),\r\n quantity: 1,\r\n affiliation: item.variant,\r\n };\r\n items.push(impression);\r\n });\r\n }\r\n\r\n return items;\r\n }\r\n\r\n getSearchRecommendListInfo(listName, recommendData) {\r\n const recommendItems = recommendData.map((data, index) => {\r\n return {\r\n item_id: data.Colors[0].CustomMarketID.split('SZ')[0],\r\n item_name: data.Name,\r\n index,\r\n item_list_name: listName,\r\n item_brand: '',\r\n item_category: this.category.itemCategory,\r\n item_category2: this.category.itemCategory2,\r\n item_category3: this.category.itemCategory3,\r\n item_category4: this.category.itemCategory4,\r\n item_category5: this.category.itemCategory5,\r\n price: parseInt(data.SellPrice),\r\n quantity: 1,\r\n affiliation: data.Colors[0].ColorName,\r\n };\r\n });\r\n\r\n return recommendItems;\r\n }\r\n\r\n static getSearchListInfo(payload, listName) {\r\n const allListItem = window.dataLayer.find((obj) => obj.ecommerce && obj.ecommerce.impressions);\r\n\r\n let items = [];\r\n\r\n if (allListItem) {\r\n items = allListItem.ecommerce.impressions.map((item, index) => {\r\n return {\r\n item_id: item.id,\r\n item_name: item.name,\r\n index,\r\n item_list_name: listName,\r\n item_brand: '',\r\n item_category: payload.isHotSearch ? '關鍵字熱搜' : '關鍵字搜尋',\r\n item_category2: payload.keyword,\r\n price: parseInt(item.price),\r\n quantity: 1,\r\n affiliation: item.variant,\r\n };\r\n });\r\n }\r\n\r\n return items;\r\n }\r\n\r\n static getPromotionInfo() {\r\n const promotionFromStorage = JSON.parse(localStorage.getItem('promotion'));\r\n\r\n return promotionFromStorage || null;\r\n }\r\n\r\n static checkIsHotSearch(hotList) {\r\n const params = new URL(window.location.href).searchParams;\r\n const keyword = params.get('keyword') || params.get('Keyword') || '';\r\n\r\n if (hotList.length === 0) return { isHotSearch: false, keyword };\r\n\r\n const isHotSearch = hotList.includes(keyword);\r\n\r\n return { isHotSearch, keyword };\r\n }\r\n}\r\n","export function getRegion() {\r\n const arr = JSON.parse(window.shippingRegion);\r\n const regions = [];\r\n const provinces = [];\r\n\r\n arr.forEach((element) => {\r\n let cName = '';\r\n let eName = '';\r\n\r\n switch (element.ChineseName) {\r\n case '台灣及離島':\r\n cName = '台灣本島及離島';\r\n eName = element.EnglishName;\r\n break;\r\n case '中國':\r\n cName = '中國大陸';\r\n eName = element.EnglishName;\r\n break;\r\n case '香港':\r\n cName = '香港SAR';\r\n eName = `${element.EnglishName} SAR`;\r\n break;\r\n case '澳門':\r\n cName = '澳門SAR';\r\n eName = `${element.EnglishName} SAR`;\r\n break;\r\n default:\r\n cName = element.ChineseName;\r\n eName = element.EnglishName;\r\n break;\r\n }\r\n\r\n regions.push({\r\n name: `${cName} ${eName}`,\r\n value: element.ID,\r\n eName,\r\n });\r\n });\r\n\r\n provinces.push({ name: '請選擇省份', value: '' });\r\n\r\n arr[1].Province.forEach((element) => {\r\n provinces.push({\r\n name: element.SimpleChineseName,\r\n value: element.ID,\r\n });\r\n });\r\n\r\n return { regions, provinces };\r\n}\r\n\r\nexport function getLocalStorageByKey(key, subKey) {\r\n const sfEcDataLayerNow = JSON.parse(localStorage.getItem('sfEcDataLayer'));\r\n\r\n if (sfEcDataLayerNow && sfEcDataLayerNow[key]) {\r\n if (subKey && sfEcDataLayerNow[key][subKey]) {\r\n return sfEcDataLayerNow[key][subKey];\r\n }\r\n return sfEcDataLayerNow[key];\r\n }\r\n return undefined;\r\n}\r\n\r\nexport const paymentOptions = {\r\n 1: '信用卡線上刷卡',\r\n 2: '貨到付款(宅配)',\r\n 3: '貨到付款(超商)',\r\n 4: '銀聯卡',\r\n 5: 'ATM',\r\n 6: '街口支付',\r\n 7: 'LinePay',\r\n 8: '實體門市付款',\r\n 9: 'Fasney',\r\n};\r\n\r\nexport const deliveryOptions = {\r\n 1: '宅配',\r\n 2: '7-11超商取貨',\r\n 3: '全家、萊爾富、OK超商取貨',\r\n 4: '海外配送',\r\n 5: '員購自取',\r\n 6: '門市取貨 (for Cody)',\r\n 7: '全家超商取貨',\r\n};\r\n\r\nexport function fireCartCheckoutGAEvent(parameters) {\r\n const { value, coupon, items } = parameters;\r\n\r\n if (value === undefined || items === undefined) return;\r\n\r\n const beginCheckoutDataLayer = {\r\n event: 'begin_checkout',\r\n currency: 'TWD',\r\n value,\r\n coupon,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(beginCheckoutDataLayer);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireAddPaymentInfoGAEvent(parameters) {\r\n const { coupon, items, payType, value } = parameters;\r\n\r\n if (items === undefined || payType === undefined || value === undefined) {\r\n return;\r\n }\r\n\r\n const addPaymentInfoDataLayer = {\r\n event: 'add_payment_info',\r\n currency: 'TWD',\r\n value,\r\n coupon,\r\n payment_type: payType,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(addPaymentInfoDataLayer);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireAddShippingInfoGAEvent(parameters) {\r\n const { coupon, items, shippingTier, value } = parameters;\r\n\r\n if (items === undefined || shippingTier === undefined || value === undefined) {\r\n return;\r\n }\r\n\r\n const addShippingInfoDataLayer = {\r\n event: 'add_shipping_info',\r\n currency: 'TWD',\r\n value,\r\n coupon,\r\n shippingTier,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(addShippingInfoDataLayer);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function firePurchaseEvent(parameters) {\r\n const { coupon, items, shipping, transactionID, value } = parameters;\r\n\r\n if (items === undefined || transactionID === undefined || value === undefined) return;\r\n\r\n const purchaseDataLayer = {\r\n event: 'purchase',\r\n currency: 'TWD',\r\n transaction_id: transactionID,\r\n value,\r\n coupon,\r\n shipping,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(purchaseDataLayer);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function deleteLocalStorageByKey(key) {\r\n if (localStorage.getItem(key)) {\r\n localStorage.removeItem(key);\r\n }\r\n}\r\n\r\nexport function fireEventAddToWishList(itemInfo) {\r\n const { value, items } = itemInfo;\r\n\r\n if (!value) return;\r\n\r\n const dataLayerObj = {\r\n event: 'add_to_wishlist',\r\n currency: 'TWD',\r\n value,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireLoginGAEvent(loginInfo) {\r\n const { actionType, loginType } = loginInfo;\r\n\r\n const dataLayerObj = {\r\n event: 'login',\r\n method: loginType,\r\n Action_Type: actionType,\r\n Login_Type: loginType,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireRegisterGAEvent(registerInfo) {\r\n const { actionType, registerType } = registerInfo;\r\n\r\n const dataLayerObj = {\r\n event: 'sign_up',\r\n method: registerType,\r\n Action_Type: actionType,\r\n Register_Type: registerType,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireViewItemListGAEvent(parameters) {\r\n const { itemListName, items } = parameters;\r\n\r\n const dataLayerObj = {\r\n event: 'view_item_list',\r\n item_list_name: itemListName,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireAddToCartGAEvent(productInfo) {\r\n const { value, items } = productInfo;\r\n\r\n if (!value || !items) return;\r\n\r\n const dataLayerObj = {\r\n event: 'add_to_cart',\r\n currency: 'TWD',\r\n value,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireSearchGAEvent(parameters) {\r\n const { searchType, searchContent } = parameters;\r\n\r\n if (!searchType || !searchType) return;\r\n\r\n const dataLayerObj = {\r\n event: 'search',\r\n search_term: searchContent, // GA4 文件中\r\n Search_Type: searchType, // 外部廠商自己傳的\r\n Search_Content: searchContent, // 外部廠商自己傳的\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireSelectItemGAEvent(parameters) {\r\n const { itemListName, items } = parameters;\r\n\r\n if (!itemListName || items.length === 0) return;\r\n\r\n const dataLayerObj = {\r\n event: 'select_item',\r\n item_list_name: itemListName,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireRemoveFromCartGAEvent(parameters) {\r\n const { value, items } = parameters;\r\n\r\n if (!value || items.length === 0) return;\r\n\r\n const dataLayerObj = {\r\n event: 'remove_from_cart',\r\n currency: 'TWD',\r\n value,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireEventRecommendedGoods(parameters) {\r\n const dataLayerObj = {\r\n event: 'recommended_goods',\r\n ...parameters,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireRefundGAEvent(parameters) {\r\n const { transactionID, value, shipping, items } = parameters;\r\n\r\n const dataLayerObj = {\r\n event: 'refund',\r\n currency: 'TWD',\r\n transaction_id: transactionID,\r\n value,\r\n shipping,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireMemberFavoriteCartGAEvent(parameters) {\r\n const { productId, productName, addFavoriteItem } = parameters;\r\n\r\n const dataLayerObj = {\r\n event: 'member',\r\n Member_List: '會員收藏清單',\r\n hash_ID: window.Email || undefined,\r\n Product_Id: productId,\r\n Product_Name: productName,\r\n Favorite_Add_To_Cart: addFavoriteItem,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireRecommendViewItemListGAEvent(payload) {\r\n const { itemListName, items } = payload;\r\n\r\n const dataLayerObj = {\r\n event: 'view_item_list',\r\n item_list_name: itemListName,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireEventPromotionBanner(payload) {\r\n const { promotionTargetUrl, promotionItems, promotionCreativeName, promotionCreativeSlot } =\r\n payload;\r\n\r\n const dataLayerObj = {\r\n event: 'Promotion_Banner',\r\n promotionTargrtUrl: promotionTargetUrl,\r\n promotionItems,\r\n promotionCreativeName,\r\n promotionCreativeSlot,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n}\r\n\r\nexport function fireCustomProductViewEvent(payload) {\r\n const { itemCategory, itemCategory2, itemCategory3, itemID, itemName } = payload;\r\n\r\n const eventDataLayer = {\r\n event: 'Product_View',\r\n Head_Button: itemCategory,\r\n Category_Button: itemCategory2,\r\n SubCategory_Button: itemCategory3,\r\n Product_Id: itemID,\r\n Product_Name: itemName,\r\n hash_ID: window.Email,\r\n };\r\n\r\n window.dataLayer.push(eventDataLayer);\r\n}\r\n\r\nexport function fireProductViewGAEvent(payload) {\r\n const { items, value } = payload;\r\n\r\n if (!value) return;\r\n\r\n const dataLayerObj = {\r\n event: 'view_item',\r\n currency: 'TWD',\r\n value,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n\r\nexport function fireListCategoryPushEvent(payload) {\r\n window.dataLayer.push({\r\n category: payload,\r\n });\r\n}\r\n\r\nexport function fireSearchCategoryPushEvent(payload) {\r\n window.dataLayer.push({\r\n category: payload,\r\n });\r\n}\r\n\r\nexport function fireViewCartEvent(parameters) {\r\n const { value, items } = parameters;\r\n\r\n if (value === undefined || items === undefined) return;\r\n\r\n const dataLayerObj = {\r\n event: 'view_cart',\r\n currency: 'TWD',\r\n value,\r\n items,\r\n };\r\n\r\n window.dataLayer.push(dataLayerObj);\r\n window.dataLayer.push({ items: null });\r\n}\r\n","import { fireSearchGAEvent, fireSearchCategoryPushEvent } from '@global/gtm/base';\r\n\r\nclass SearchGTMEvent {\r\n static getKeyword(isHotSearch, keyword) {\r\n const category = {\r\n itemCategory: isHotSearch ? '關鍵字熱搜' : '關鍵字搜尋',\r\n itemCategory2: keyword,\r\n url: window.location.pathname,\r\n };\r\n\r\n return category;\r\n }\r\n}\r\n\r\nexport default function fireSearchEvent(payload) {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n window.ItemCategories = payload.isHotSearch\r\n ? ['搜尋結果頁', '熱字', payload.keyword]\r\n : ['搜尋結果頁', '關鍵字', payload.keyword];\r\n\r\n const category = SearchGTMEvent.getKeyword(payload.isHotSearch, payload.keyword);\r\n\r\n fireSearchCategoryPushEvent(category);\r\n\r\n if (payload.isHotSearch) {\r\n fireSearchGAEvent({\r\n searchType: '關鍵字熱字',\r\n searchContent: payload.keyword,\r\n });\r\n } else {\r\n fireSearchGAEvent({\r\n searchType: '關鍵字搜尋',\r\n searchContent: payload.keyword,\r\n });\r\n }\r\n}\r\n","import $ from 'jquery';\r\nimport { createApp, ref, onMounted, watch, nextTick } from 'vue';\r\n\r\nimport { createPinia, storeToRefs } from 'pinia';\r\nimport useMiniCartStore from '@global/stores/useMiniCartStore';\r\n\r\nimport useAlert from '@global/composable/useAlert';\r\nimport useMsg from '@global/composable/useMessage';\r\nimport useTextProcessing from '@global/composable/useTextProcessing';\r\n\r\nimport NewImage from '@global/components/common/Image/NewImage.vue';\r\nimport AlertDialog from '@global/components/common/alert/AlertDialog.vue';\r\nimport Message from '@global/components/common/message/Message.vue';\r\n\r\nimport modal from 'bootstrap/js/dist/modal';\r\nimport nanoScroller from '@global/vendors/jquery.nanoscroller.min';\r\nimport validate from '@global/vendors/jquery.validate.min';\r\nimport Collapse from 'bootstrap/js/dist/collapse';\r\n\r\nimport { fireSearchListEvent } from '@global/gtm/shopList/shopListView';\r\nimport fireSearchEvent from '@global/gtm/search';\r\nimport layout from '@/style/layout.scss';\r\n\r\nconst pinia = createPinia();\r\nconst { alertDialog } = useAlert();\r\nconst { messageBox } = useMsg();\r\nconst { useAutoSupplement } = useTextProcessing();\r\n\r\nwindow.nowBrand = {};\r\n\r\nglobal.$ = require('jquery');\r\n\r\nglobal.jQuery = global.$;\r\n\r\n/**\r\n * popup、alert跳窗\r\n */\r\n// eslint-disable-next-line vue/one-component-per-file\r\nconst appAlert = createApp({\r\n components: {\r\n AlertDialog,\r\n Message,\r\n },\r\n});\r\n\r\nappAlert.mount('#app-common');\r\n\r\n/**\r\n * Header選單\r\n */\r\n\r\n// eslint-disable-next-line vue/one-component-per-file\r\nconst appHeader = createApp({\r\n components: {\r\n NewImage,\r\n },\r\n setup() {\r\n const miniCartStore = useMiniCartStore();\r\n const {\r\n totalCount,\r\n generalCount,\r\n refrigerationCount,\r\n freezingCount,\r\n dataIsLoad,\r\n generalMarketProducts,\r\n hotSearch,\r\n hotLoad,\r\n isOnlyOneTemp,\r\n } = storeToRefs(miniCartStore);\r\n\r\n const { getCartInfo, getHotSearch } = miniCartStore;\r\n getCartInfo();\r\n getHotSearch();\r\n\r\n function lockBody(open) {\r\n if (open) {\r\n $('body').addClass('lock-page');\r\n } else {\r\n $('body').removeClass('lock-page');\r\n }\r\n }\r\n\r\n // miniCart 購物車\r\n const isCartVisible = ref(false);\r\n const cartMaskRef = ref(null);\r\n const cartMaskStyle = ref(null);\r\n function openCartPanel() {\r\n isCartVisible.value = true;\r\n cartMaskStyle.value = {\r\n right: '290px',\r\n zIndex: '1030',\r\n };\r\n lockBody(isCartVisible.value);\r\n }\r\n function closeCartPanel() {\r\n isCartVisible.value = false;\r\n lockBody(isCartVisible.value);\r\n }\r\n\r\n // hamburger 漢堡選單\r\n const isSidebarVisible = ref(false);\r\n const burgerMaskRef = ref(null);\r\n const burgerMaskStyle = ref(null);\r\n function openSidebar() {\r\n isSidebarVisible.value = true;\r\n\r\n burgerMaskStyle.value = {\r\n zIndex: '1030',\r\n };\r\n lockBody(isSidebarVisible.value);\r\n }\r\n function closeSidebar() {\r\n isSidebarVisible.value = false;\r\n lockBody(isSidebarVisible.value);\r\n }\r\n\r\n // search 搜尋展開\r\n const isSearchVisible = ref(false);\r\n const searchInputPcRef = ref(null);\r\n const searchInputMbRef = ref(null);\r\n const searchText = ref('');\r\n function openSearch() {\r\n isSearchVisible.value = true;\r\n nextTick(() => {\r\n if (searchInputPcRef.value) {\r\n searchInputPcRef.value.focus();\r\n }\r\n if (searchInputMbRef.value) {\r\n searchInputMbRef.value.focus();\r\n }\r\n });\r\n }\r\n function closeSearch() {\r\n isSearchVisible.value = false;\r\n }\r\n function goSearchText() {\r\n if (searchText.value.trim() === '') {\r\n alertDialog.alert('請輸入關鍵字');\r\n } else {\r\n window.location.href = `/search?Keyword=${searchText.value}`;\r\n fireSearchEvent({\r\n isHotSearch: false,\r\n keyword: searchText.value,\r\n });\r\n }\r\n }\r\n\r\n function goSearch(item) {\r\n window.location.href = `/search?Keyword=${item}`;\r\n fireSearchEvent({\r\n isHotSearch: true,\r\n keyword: item,\r\n });\r\n }\r\n\r\n // 手機板確認\r\n const isMobile = ref(false);\r\n function windowSize() {\r\n if ($(window).width() < 992) {\r\n isMobile.value = true;\r\n } else {\r\n isMobile.value = false;\r\n }\r\n }\r\n\r\n // GTM\r\n watch(hotLoad, (nV, oV) => {\r\n if (nV && window.location.pathname.includes('search')) {\r\n fireSearchListEvent(hotSearch.value);\r\n }\r\n });\r\n\r\n onMounted(() => {\r\n // 手機板確認\r\n windowSize();\r\n $(window).resize(() => {\r\n windowSize();\r\n });\r\n });\r\n\r\n return {\r\n isMobile,\r\n totalCount,\r\n generalCount,\r\n refrigerationCount,\r\n freezingCount,\r\n dataIsLoad,\r\n generalMarketProducts,\r\n hotSearch,\r\n hotLoad,\r\n isOnlyOneTemp,\r\n useAutoSupplement,\r\n searchInputPcRef,\r\n searchInputMbRef,\r\n searchText,\r\n openSearch,\r\n closeSearch,\r\n goSearchText,\r\n goSearch,\r\n isCartVisible,\r\n openCartPanel,\r\n closeCartPanel,\r\n cartMaskRef,\r\n cartMaskStyle,\r\n isSidebarVisible,\r\n openSidebar,\r\n closeSidebar,\r\n burgerMaskRef,\r\n burgerMaskStyle,\r\n isSearchVisible,\r\n };\r\n },\r\n});\r\n\r\nappHeader.use(pinia).mount('#app-mini-cart');\r\n\r\n// fix when mutiple inputs with same name always validate the first item.\r\n// eslint-disable-next-line func-names\r\n$.validator.prototype.checkForm = function () {\r\n // overriden in a specific page\r\n this.prepareForm();\r\n // eslint-disable-next-line no-multi-assign\r\n for (let i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++) {\r\n if (\r\n this.findByName(elements[i].name).length !== undefined &&\r\n this.findByName(elements[i].name).length > 1\r\n ) {\r\n for (let cnt = 0; cnt < this.findByName(elements[i].name).length; cnt++) {\r\n this.check(this.findByName(elements[i].name)[cnt]);\r\n }\r\n } else {\r\n this.check(elements[i]);\r\n }\r\n }\r\n return this.valid();\r\n};\r\n\r\n// 全域方法前後端使用\r\nwindow.messageBox = messageBox;\r\nwindow.AlertDialog = alertDialog;\r\n","import ShopListView from '@global/gtm/class/shopListClass';\r\nimport {\r\n fireViewItemListGAEvent,\r\n fireEventPromotionBanner,\r\n fireListCategoryPushEvent,\r\n} from '@global/gtm/base';\r\n\r\nexport default function fireShopListViewEvent() {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n const shopListView = new ShopListView();\r\n\r\n fireListCategoryPushEvent(shopListView.category);\r\n\r\n fireViewItemListGAEvent({\r\n itemListName: shopListView.getItemListName(),\r\n items: shopListView.getListInfo(),\r\n });\r\n}\r\n\r\nexport function firePromotionEvent() {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n const shopListView = new ShopListView();\r\n\r\n const listItems = shopListView.getListInfo();\r\n const promotion = ShopListView.getPromotionInfo();\r\n\r\n if (promotion) {\r\n fireEventPromotionBanner({\r\n promotionTargetUrl: `促銷活動--${window.PictureContainer}`,\r\n promotionItems: listItems,\r\n promotionCreativeName: promotion.imgLink,\r\n promotionCreativeSlot: promotion.clickName,\r\n });\r\n }\r\n}\r\n\r\n/**\r\n * URLiving 搜尋結果頁所使用的 GA 事件\r\n *\r\n * @param {Array} hotSearchList - 關鍵字列表\r\n */\r\nexport function fireShopListSearchEvent(hotSearchList) {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n const shopListView = new ShopListView();\r\n const isHotSearch = ShopListView.checkIsHotSearch(hotSearchList);\r\n\r\n let itemListName = '';\r\n\r\n if (window.TotalCount === 0) {\r\n itemListName = isHotSearch.isHotSearch\r\n ? `關鍵字熱字--${isHotSearch.keyword}推薦產品列表`\r\n : `關鍵字搜尋--${isHotSearch.keyword}推薦產品列表`;\r\n\r\n fireViewItemListGAEvent({\r\n itemListName,\r\n items: shopListView.getRecommendListInfo(itemListName),\r\n });\r\n } else {\r\n itemListName = isHotSearch.isHotSearch\r\n ? `關鍵字熱字--${isHotSearch.keyword}產品列表`\r\n : `關鍵字搜尋--${isHotSearch.keyword}產品列表`;\r\n\r\n fireViewItemListGAEvent({\r\n itemListName,\r\n items: ShopListView.getSearchListInfo(isHotSearch, itemListName),\r\n });\r\n }\r\n}\r\n\r\n/**\r\n * 其他客製品牌搜尋結果頁所使用的 GA 事件 for 商品列表\r\n *\r\n * @param {Array} hotSearchList - 關鍵字列表\r\n */\r\nexport function fireSearchListEvent(hotSearchList) {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n const isHotSearch = ShopListView.checkIsHotSearch(hotSearchList);\r\n\r\n if (window.TotalCount !== 0) {\r\n const itemListName = isHotSearch.isHotSearch\r\n ? `關鍵字熱字--${isHotSearch.keyword}產品列表`\r\n : `關鍵字搜尋--${isHotSearch.keyword}產品列表`;\r\n\r\n fireViewItemListGAEvent({\r\n itemListName,\r\n items: ShopListView.getSearchListInfo(isHotSearch, itemListName),\r\n });\r\n }\r\n}\r\n\r\n/**\r\n * 其他客製品牌搜尋結果頁所使用的 GA 事件 for 推薦列表\r\n *\r\n * @param {Array} hotSearchList - 關鍵字列表\r\n */\r\nexport function fireSearchResultRecommendEvent(hotSearchList, recommendData) {\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n const shopListView = new ShopListView();\r\n const isHotSearch = ShopListView.checkIsHotSearch(hotSearchList);\r\n\r\n const itemListName = isHotSearch.isHotSearch\r\n ? `關鍵字熱字--${isHotSearch.keyword}推薦產品列表`\r\n : `關鍵字搜尋--${isHotSearch.keyword}推薦產品列表`;\r\n\r\n fireViewItemListGAEvent({\r\n itemListName,\r\n items: shopListView.getSearchRecommendListInfo(itemListName, recommendData),\r\n });\r\n}\r\n","import { ref } from 'vue';\r\n\r\nfunction useAdvancedSort(props) {\r\n const selectedSizes = ref([]);\r\n const min = ref(props.condition.PriceLow);\r\n const max = ref(props.condition.PriceHigh);\r\n const range = ref([props.condition.PriceLow, props.condition.PriceHigh]);\r\n getInitArgs();\r\n\r\n function getInitArgs() {\r\n const initSize = getTargetArgValue('S=').split(',');\r\n if (initSize[0].length !== 0) selectedSizes.value = initSize;\r\n if (getTargetArgValue('PL') !== '') {\r\n range.value = [getTargetArgValue('PL'), getTargetArgValue('PH')];\r\n }\r\n }\r\n\r\n function getTargetArgValue(arg) {\r\n let targetArg = '';\r\n if (window.location.search.length !== 0 && window.location.search.indexOf(arg) !== -1) {\r\n const args = window.location.toString().split('?')[1].split('&');\r\n args.forEach((element, index) => {\r\n if (element.indexOf(arg) !== -1) {\r\n targetArg = element;\r\n }\r\n });\r\n }\r\n return targetArg.length !== 0\r\n ? targetArg.substring(targetArg.indexOf('=') + 1, targetArg.length)\r\n : '';\r\n }\r\n\r\n function clearCondition() {\r\n selectedSizes.value = [];\r\n range.value = [min.value, max.value];\r\n }\r\n\r\n function addSize(size) {\r\n const index = selectedSizes.value.findIndex((e) => {\r\n return e === size.toString();\r\n });\r\n\r\n if (index >= 0) {\r\n selectedSizes.value.splice(index, 1);\r\n } else {\r\n selectedSizes.value.push(size.toString());\r\n }\r\n }\r\n\r\n function toggleSize(size) {\r\n const isSelected = selectedSizes.value.includes(size.toString());\r\n return {\r\n active: isSelected,\r\n '': !isSelected,\r\n };\r\n }\r\n\r\n function getPriceRangeArg() {\r\n const pl = range.value[0];\r\n const ph = range.value[1];\r\n return range.value !== [min.value, max.value] ? `PL=${pl}&PH=${ph}` : '';\r\n }\r\n\r\n function getSizeArg() {\r\n return selectedSizes.value.length !== 0 ? `S=${selectedSizes.value.toString()}` : '';\r\n }\r\n\r\n function goResult() {\r\n let argsString = '';\r\n\r\n if (window.location.search.length !== 0) {\r\n const args = window.location.toString().split('?')[1].split('&');\r\n let i = 0;\r\n\r\n while (i < args.length) {\r\n if (args[i].indexOf('PH') !== -1) {\r\n args.splice(i, 1);\r\n } else if (args[i].indexOf('PL') !== -1) {\r\n args.splice(i, 1);\r\n } else if (args[i].indexOf('S=') !== -1) {\r\n args.splice(i, 1);\r\n } else if (args[i].indexOf('P=') !== -1) {\r\n args.splice(i, 1);\r\n } else {\r\n i += 1;\r\n }\r\n }\r\n\r\n if (args.length !== 0) {\r\n if (selectedSizes.value.length !== 0 || range.value !== [min.value, max.value]) {\r\n argsString = `${args.join('&')}&`;\r\n } else {\r\n argsString = `${args.join('&')}`;\r\n }\r\n }\r\n }\r\n\r\n if (selectedSizes.value.length !== 0 || range.value !== [min.value, max.value]) {\r\n window.location.href = `${window.location.pathname}?${argsString}${getPriceRangeArg()}${\r\n getPriceRangeArg().length !== 0 && getSizeArg().length !== 0 ? '&' : ''\r\n }${getSizeArg()}`;\r\n } else if (argsString.length === 0) {\r\n window.location.href = window.location.pathname;\r\n } else {\r\n window.location.href = `${window.location.pathname}?${argsString}`;\r\n }\r\n }\r\n\r\n return {\r\n min,\r\n max,\r\n range,\r\n\r\n clearCondition,\r\n addSize,\r\n toggleSize,\r\n goResult,\r\n };\r\n}\r\n\r\nexport default useAdvancedSort;\r\n","\r\n \r\n \r\n \r\n \r\n 進階篩選\r\n 價格\r\n \r\n \r\n \r\n NT.{{ min }}\r\n NT.{{ max }}\r\n \r\n \r\n \r\n \r\n 尺寸(可複選)\r\n \r\n \r\n \r\n {{ size.Key }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./AdvancedPopup.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AdvancedPopup.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./AdvancedSort.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./AdvancedSort.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n 進階篩選\r\n \r\n \r\n\r\n\r\n\r\n","import { ref, computed, onMounted } from 'vue';\r\n\r\nfunction useNormalSort() {\r\n const searchLocation = window.location.search;\r\n const selectedMode = ref(null);\r\n\r\n const lowToHigh = computed(() => {\r\n return locationSearchFilter(4);\r\n });\r\n\r\n const highToLow = computed(() => {\r\n return locationSearchFilter(3);\r\n });\r\n\r\n const newToOld = computed(() => {\r\n return locationSearchFilter(1);\r\n });\r\n\r\n const hottest = computed(() => {\r\n return locationSearchFilter(5);\r\n });\r\n\r\n function getOrderMode() {\r\n const args = searchLocation.split('&');\r\n let ModeStr = '';\r\n\r\n for (let i = 0; i < args.length; i++) {\r\n if (args[i].indexOf('OM') !== -1) {\r\n ModeStr = args[i];\r\n }\r\n }\r\n\r\n let mode = null;\r\n\r\n if (window.location.pathname === '/recent' && ModeStr.length === 0) {\r\n mode = 1;\r\n } else if (window.location.pathname === '/hot' && ModeStr.length === 0) {\r\n mode = 5;\r\n } else if (window.location.pathname === '/favorite' && ModeStr.length === 0) {\r\n mode = null;\r\n } else if (ModeStr.length === 0) {\r\n mode = 1;\r\n } else {\r\n mode = parseInt(ModeStr.charAt(ModeStr.length - 1));\r\n }\r\n return mode;\r\n }\r\n\r\n function locationSearchFilter(orderNum) {\r\n let argsString = '';\r\n if (window.location.toString().indexOf('?') !== -1) {\r\n const args = window.location.toString().split('?')[1].split('&');\r\n\r\n let i = 0;\r\n while (i < args.length) {\r\n if (args[i].indexOf('OM') !== -1) {\r\n args.splice(i, 1);\r\n } else if (args[i].indexOf('P=') !== -1) {\r\n args.splice(i, 1);\r\n } else {\r\n i += 1;\r\n }\r\n }\r\n\r\n if (args.length !== 0) {\r\n // 存在其他條件參數\r\n argsString = `${args.join('&')}&`;\r\n } else {\r\n argsString = `${args.join('&')}`;\r\n }\r\n }\r\n\r\n return `?${argsString}OM=${orderNum}`;\r\n }\r\n\r\n onMounted(() => {\r\n selectedMode.value = getOrderMode();\r\n });\r\n\r\n return {\r\n selectedMode,\r\n lowToHigh,\r\n highToLow,\r\n newToOld,\r\n hottest,\r\n\r\n getOrderMode,\r\n locationSearchFilter,\r\n };\r\n}\r\n\r\nexport default useNormalSort;\r\n","import script from \"./NormalSort.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./NormalSort.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n 排序\r\n \r\n \r\n \r\n \r\n $由低到高\r\n \r\n \r\n $由高到低\r\n \r\n \r\n 最新上架\r\n \r\n \r\n 最高人氣\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./SortApp.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./SortApp.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./PaginatorLessThanMaxCont.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./PaginatorLessThanMaxCont.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n {{ data.page }}\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./PaginatorFirstMaxCont.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./PaginatorFirstMaxCont.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n {{ data.page }}\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n ...\r\n \r\n \r\n {{ data.pageTotal }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./PaginatorLastMax.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./PaginatorLastMax.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n \r\n \r\n 1\r\n \r\n \r\n ...\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n {{ data.page }}\r\n \r\n \r\n {{ page }}\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./PaginatorNormal.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./PaginatorNormal.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./PaginationLayout.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./PaginationLayout.vue?vue&type=script&setup=true&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n 1\" class=\"pagination\">\r\n \r\n 1\"\r\n :href=\"data.linkUrl + 'P=' + (data.page - 1)\"\r\n class=\"pagination__btn pagination__btn--prev\"\r\n />\r\n 1\"\r\n :href=\"data.linkUrl + 'P=' + (data.page - 1)\"\r\n :class=\"{ disabled: data.page === 1 }\"\r\n class=\"pagination__btn pagination__btn--prev\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 1\"\r\n :href=\"data.linkUrl + 'P=' + (data.page + 1)\"\r\n :class=\"{ disabled: data.page === data.pageTotal }\"\r\n class=\"pagination__btn pagination__btn--next\"\r\n />\r\n \r\n \r\n\r\n\r\n\r\n","export default class ShopClick {\r\n constructor(itemPayload) {\r\n const { customMarketID, size } = itemPayload;\r\n const [removeSizeID] = customMarketID.split('SZ');\r\n\r\n this.removeSizeID = removeSizeID;\r\n this.size = size || '';\r\n }\r\n\r\n /**\r\n * Retrieves the item categories and generates a list name based on the available categories.\r\n *\r\n * @return {string} The generated list name.\r\n */\r\n static getItemCategory() {\r\n const itemCategories = window.ItemCategories || [];\r\n const category = {\r\n itemCategory: itemCategories[0] || '',\r\n itemCategory2: itemCategories[1] || '',\r\n itemCategory3: itemCategories[2] || '',\r\n itemCategory4: itemCategories[3] || '',\r\n itemCategory5: itemCategories[4] || '',\r\n };\r\n const listName = Object.values(category).reduce((acc, val) => {\r\n if (val) {\r\n return acc ? `${acc}--${val}` : val;\r\n }\r\n return acc;\r\n }, '');\r\n\r\n return listName;\r\n }\r\n\r\n /**\r\n * Retrieves information about the GA item.\r\n *\r\n * @return {Object} An object containing the item list name and an array of GA4 items.\r\n */\r\n getGAItemInfo() {\r\n const itemCategories = window.ItemCategories || [];\r\n const itemList = window.dataLayer.find((ele) => ele.ecommerce && ele.ecommerce.impressions);\r\n const listName = ShopClick.getItemCategory();\r\n let item = {};\r\n\r\n if (itemList) {\r\n item =\r\n itemList.ecommerce.impressions.find((obj) => {\r\n return obj.id === this.removeSizeID;\r\n }) || {};\r\n }\r\n\r\n const { id, name, price } = item;\r\n\r\n const ga4Item = {\r\n index: 0,\r\n item_id: id || '',\r\n item_name: name || '',\r\n item_list_name: listName,\r\n item_brand: this.size,\r\n itemCategory: itemCategories[0] || '',\r\n itemCategory2: itemCategories[1] || '',\r\n itemCategory3: itemCategories[2] || '',\r\n itemCategory4: itemCategories[3] || '',\r\n itemCategory5: itemCategories[4] || '',\r\n price: price ? parseInt(price) : '',\r\n quantity: 1,\r\n };\r\n\r\n return {\r\n itemListName: listName,\r\n items: [ga4Item],\r\n };\r\n }\r\n}\r\n","import { fireSelectItemGAEvent } from '@global/gtm/base';\r\nimport ShopClick from '@global/gtm/class/clickClass';\r\n\r\n/**\r\n * Generate a GTM event when a shop list item is clicked.\r\n *\r\n * @param {object} itemPayload - The payload containing information about the clicked item.\r\n * @param {string} itemPayload.customMarketID - 客製化賣場 ID\r\n * @param {string} itemPayload.size - 點擊商品的尺寸 (options)\r\n */\r\nexport default function fireShopListClickGTMEvent(itemPayload) {\r\n const category = new ShopClick(itemPayload);\r\n const ga4Parameters = category.getGAItemInfo();\r\n\r\n fireSelectItemGAEvent(ga4Parameters);\r\n}\r\n","import $ from 'jquery';\r\n// eslint-disable-next-line import/no-extraneous-dependencies\r\n\r\nimport { createApp, ref, onMounted } from 'vue';\r\nimport common from '@page/common/js/common';\r\n// eslint-disable-next-line import/no-unresolved\r\nimport SortApp from '@page/shop/components/SortApp.vue';\r\nimport Pagination from '@global/components/common/pagination/PaginationLayout.vue';\r\nimport fireShopListViewEvent from '@global/gtm/shopList/shopListView';\r\nimport fireShopListClickGTMEvent from '@global/gtm/shopList/clickList';\r\nimport useAxiosAPI from '@global/composable/api/useAxiosAPI';\r\nimport slick from 'slick-carousel';\r\n\r\nconst { getSortConditionAPI } = useAxiosAPI();\r\n\r\nconst app = createApp({\r\n components: {\r\n SortApp,\r\n Pagination,\r\n },\r\n setup() {\r\n const sortConditionData = ref({});\r\n const sortConditionIsLoad = ref(false);\r\n\r\n const bannerSliderConfig = ref({\r\n infinite: true,\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n arrows: false,\r\n dots: false,\r\n speed: 800,\r\n autoplay: true,\r\n autoplaySpeed: 6000,\r\n });\r\n\r\n getSortConditionAPI()\r\n .then((res) => {\r\n if (res.data.Code === 200) {\r\n sortConditionData.value = res.data.Response;\r\n sortConditionIsLoad.value = true;\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n });\r\n\r\n function fireGTM(customMarketID, size) {\r\n fireShopListClickGTMEvent({ customMarketID, size });\r\n }\r\n\r\n onMounted(() => {\r\n if ($('.banner-slide').length) {\r\n $('.banner-slide').slick(bannerSliderConfig.value);\r\n }\r\n });\r\n\r\n return {\r\n sortConditionData,\r\n sortConditionIsLoad,\r\n fireGTM,\r\n };\r\n },\r\n});\r\n\r\napp.mount('#app-shop');\r\n\r\nfireShopListViewEvent();\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 883;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t883: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkthe_butters\"] = self[\"webpackChunkthe_butters\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [461,545], function() { return __webpack_require__(5552); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","alerts","ref","showAlert","msg","type","callback","dataName","value","push","$","css","overflow","closeAlert","index","splice","alertDialog","allAlertFn","o","name","generateHeaders","otherObj","handleDefaultError","handle400","handle401","commonAPI","getFavoriteAPI","instance","getData","get","API_URL","postFavoriteAPI","postData","headers","post","deleteFavoriteAPI","deleteData","delete","_objectSpread","getHotSearchAPI","getCartInfoAPI","getShareAPI","id","postNewsletter","loginAPI","postForgetPS","getAccountExist","orderAPI","deleteOrderAPI","getRefundDetailAPI","getOrderAPI","postRefundCalculateAPI","getShippingFlowAPI","getOrderAtmAPI","postCashInAPI","memberAPI","getVerifyPhoneAPI","getBonusRecordAPI","postBonusWithDrawAPI","postUserIdAPI","postUserBankAccountAPI","getDataAnalyzeAPI","faPointAPI","getVerifyFaPointAPI","getFaPointAPI","postUnbindFaPointAPI","apiCalls","getArticleListAPI","getArticleContentAPI","getArticleCategoryAPI","getAddonCartAPI","getAddonEvent","getBrandFollowAPI","postBrandFollowAPI","deleteBrandFollowAPI","postCouponAPI","postCoupon2API","getOrderAddressAPI","postShoppingCartAPI","getShoppingCartAPI","putShoppingCartAPI","putData","put","getAddressBookAPI","deleteAddressBookAPI","postAddressBookAPI","getLastInvoiceAPI","getVerifyMobileCode","getCartRecommendDataAPI","getSearchRecommendAPI","getSortConditionAPI","getDataAPI","getSeriesDataAPI","getBrandRecommendDataAPI","getRecommendDataAPI","getMarketRecommendDataAPI","postNoticeAPI","api","key","func","Object","entries","_len","arguments","length","args","Array","_key","useAlert","axios","create","baseURL","interceptors","request","use","config","error","Promise","reject","response","res","successHandle","data","Code","alert","Message","confirm","window","location","href","resolve","createApi","useAxiosAPI","defineStore","dataIsLoad","totalCount","generalCount","refrigerationCount","freezingCount","generalSpotGoodsCount","refrigerationSpotGoodsCount","freezingSpotGoodsCount","generalMarketProducts","refrigerationMarketProducts","freezingMarketProducts","temperaturesData","count","hotSearch","hotLoad","isOnlyOneTemp","computed","hasProductTempCount","changeCartTotalCount","itemArray","Response","TotalCount","Temperatures","forEach","item","ID","Count","Markets","InstockCount","getCartInfo","then","catch","console","log","getHotSearch","params","period","date","limit","hotArray","i","messages","showMsg","cls","setTimeout","messageBox","allMsgFn","useAutoSupplement","toString","imgTransfer","imgUrl","sizeStr","imgName","substring","lastIndexOf","imgExtension","splitArr","split","folderName","pictureContainer","indexOf","StaticImgDomain","replace","useImage","props","__props","renderImg","url","size","onMounted","on","e","useMsg","ShopListView","constructor","hasCategory","ItemCategories","this","category","itemCategory","itemCategory2","itemCategory3","itemCategory4","itemCategory5","getItemListName","combineCategory","page","URLSearchParams","decodeURI","search","getListInfo","allListItem","dataLayer","find","obj","ecommerce","impressions","items","map","item_id","item_name","item_list_name","list","item_brand","item_category","item_category2","item_category3","item_category4","item_category5","price","parseInt","quantity","affiliation","variant","getRecommendListInfo","listName","impression","getSearchRecommendListInfo","recommendData","Colors","CustomMarketID","Name","SellPrice","ColorName","getSearchListInfo","payload","isHotSearch","keyword","getPromotionInfo","JSON","parse","localStorage","getItem","checkIsHotSearch","hotList","URL","searchParams","includes","fireViewItemListGAEvent","parameters","itemListName","dataLayerObj","event","fireSearchGAEvent","searchType","searchContent","search_term","Search_Type","Search_Content","SearchGTMEvent","getKeyword","pathname","fireSearchEvent","fireSearchCategoryPushEvent","pinia","createPinia","useTextProcessing","nowBrand","global","require","jQuery","createApp","components","AlertDialog","mount","NewImage","setup","miniCartStore","useMiniCartStore","storeToRefs","lockBody","open","addClass","removeClass","isCartVisible","cartMaskRef","cartMaskStyle","isSidebarVisible","burgerMaskRef","burgerMaskStyle","isSearchVisible","searchInputPcRef","searchInputMbRef","searchText","isMobile","windowSize","width","watch","nV","oV","hotSearchList","fireSearchListEvent","resize","openSearch","nextTick","focus","closeSearch","goSearchText","trim","goSearch","openCartPanel","right","zIndex","closeCartPanel","openSidebar","closeSidebar","prototype","checkForm","prepareForm","elements","currentElements","undefined","findByName","cnt","check","valid","selectedSizes","min","condition","PriceLow","max","PriceHigh","range","getTargetArgValue","arg","targetArg","element","getPriceRangeArg","pl","ph","getSizeArg","initSize","getInitArgs","clearCondition","addSize","findIndex","toggleSize","isSelected","active","goResult","argsString","join","useAdvancedSort","isLoad","openSort","toggleClass","searchLocation","selectedMode","lowToHigh","locationSearchFilter","highToLow","newToOld","hottest","getOrderMode","ModeStr","mode","charAt","orderNum","useNormalSort","prevPages","nextPages","pageTotal","init","maxCont","nowPage","pageCount","totalPage","PageCount","nowLocation","linkUrl","ShopClick","itemPayload","customMarketID","removeSizeID","getItemCategory","itemCategories","values","reduce","acc","val","getGAItemInfo","itemList","ele","fireShopListClickGTMEvent","fireSelectItemGAEvent","SortApp","Pagination","sortConditionData","sortConditionIsLoad","bannerSliderConfig","infinite","slidesToShow","slidesToScroll","arrows","dots","speed","autoplay","autoplaySpeed","slick","fireGTM","shopListView","fireShopListViewEvent","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","r","n","getter","__esModule","d","a","definition","defineProperty","enumerable","g","globalThis","Function","prop","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}