cms-chenhj-ui 2.0.16 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1989,6 +1989,315 @@ module.exports = function (it) {
1989
1989
  };
1990
1990
 
1991
1991
 
1992
+ /***/ }),
1993
+
1994
+ /***/ 929:
1995
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1996
+
1997
+ "use strict";
1998
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1999
+ /* harmony export */ WL: function() { return /* binding */ queryV1; },
2000
+ /* harmony export */ yX: function() { return /* binding */ getCommodityDetails; }
2001
+ /* harmony export */ });
2002
+ /* unused harmony exports saveInstance, queryInstanceConfig, queryCategoryInfo, queryCommodityList, listV1, queryMenuList, uploadImage, uploadVideo, queryDeptList, queryBreadCrumbsList, queryPageHfList, queryUrl, createPage, queryPageInfo, editPage, getPreDictonaryList, saveTemporaryInfo, getTemporaryInfo, queryApproveList, queryComponentByColumn, queryCollections, collectionComponent, syncComponentConfigure, queryComponentConfigure, queryOperateList, updateDefaultConfig, omniHeartbeat, emallHeartbeat, qryBtList */
2003
+ /* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1564);
2004
+
2005
+
2006
+ // 页面配置保存接口
2007
+ function saveInstance(data) {
2008
+ return request({
2009
+ method: "post",
2010
+ url: "/omni-channel-service-console/rest/channelCmsCompInstance/saveInstance",
2011
+ data
2012
+ });
2013
+ }
2014
+
2015
+ // 页面组件配置信息查询接口
2016
+ function queryInstanceConfig(data) {
2017
+ return request({
2018
+ method: "post",
2019
+ url: "/omni-channel-service-console/rest/channelCmsCompInstance/queryInstanceConfig",
2020
+ data
2021
+ });
2022
+ }
2023
+ //B端25查询卡片组件下拉框
2024
+ function queryCategoryInfo(data) {
2025
+ return request({
2026
+ method: "post",
2027
+ url: "/ecosp-console/commodityCategory/queryCategoryList",
2028
+ data
2029
+ });
2030
+ }
2031
+ //B端25查询卡片
2032
+ function queryCommodityList(data) {
2033
+ return request({
2034
+ method: "post",
2035
+ url: "/ecosp-console/item/queryCommodityList",
2036
+ data
2037
+ });
2038
+ }
2039
+ function listV1(data, language) {
2040
+ return request({
2041
+ method: "post",
2042
+ url: "/api/ecosp-emall/itemRest/commodity/listV1",
2043
+ data,
2044
+ headers: {
2045
+ "Accept-Language": language || ""
2046
+ }
2047
+ });
2048
+ }
2049
+ //cmhk接口
2050
+ function queryV1(data, language) {
2051
+ return (0,_utils_request__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)({
2052
+ method: "post",
2053
+ url: "/api/ecosp-emall/itemRest/commodity/queryV1",
2054
+ data
2055
+ });
2056
+ }
2057
+ //cmhk接口
2058
+ function getCommodityDetails(data, language) {
2059
+ return (0,_utils_request__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)({
2060
+ method: "post",
2061
+ url: "/api/ecosp-emall/itemRest/commodity/getCommodityDetails",
2062
+ data
2063
+ });
2064
+ }
2065
+ //查询menuList
2066
+ function queryMenuList(data) {
2067
+ return request({
2068
+ method: "post",
2069
+ url: "/api/omni-channel-service-portal/rest/overAllMenuConfig/queryMenuListNew",
2070
+ data
2071
+ });
2072
+ }
2073
+ function uploadImage(data) {
2074
+ return request({
2075
+ method: "post",
2076
+ url: "/omni-channel-service-console/rest/commonFile/image",
2077
+ data
2078
+ });
2079
+ }
2080
+ function uploadVideo(data) {
2081
+ return request({
2082
+ method: "post",
2083
+ url: "/omni-channel-service-console/rest/commonFile/video",
2084
+ data
2085
+ });
2086
+ }
2087
+ /**
2088
+ * 查询部门列表
2089
+ * @returns {Promise}
2090
+ */
2091
+ function queryDeptList(data) {
2092
+ return request({
2093
+ method: "post",
2094
+ url: "/omni-channel-service-console/rest/workBench/queryDeptList",
2095
+ data
2096
+ });
2097
+ }
2098
+
2099
+ /**
2100
+ * 查询面包屑列表
2101
+ * @returns {Promise}
2102
+ */
2103
+ function queryBreadCrumbsList(data) {
2104
+ return request({
2105
+ method: "post",
2106
+ url: "/omni-channel-service-console/rest/workBench/queryBreadCrumbsList",
2107
+ data
2108
+ });
2109
+ }
2110
+
2111
+ /**
2112
+ * 查询页头页脚列表
2113
+ * @returns {Promise}
2114
+ */
2115
+ function queryPageHfList(data) {
2116
+ return request({
2117
+ method: "post",
2118
+ url: "/omni-channel-service-console/rest/workBench/queryPageHfList",
2119
+ data
2120
+ });
2121
+ }
2122
+
2123
+ /**
2124
+ * 查询URL接口
2125
+ * @returns {Promise}
2126
+ */
2127
+ function queryUrl(data) {
2128
+ return request({
2129
+ method: "post",
2130
+ url: "/omni-channel-service-console/rest/workBench/queryUrl",
2131
+ data
2132
+ });
2133
+ }
2134
+
2135
+ /**
2136
+ * 创建页面
2137
+ * @param {Object} pageData 页面数据
2138
+ * @returns {Promise}
2139
+ */
2140
+ function createPage(data) {
2141
+ return request({
2142
+ method: "post",
2143
+ url: "/omni-channel-service-console/rest/workBench/createPage",
2144
+ data
2145
+ });
2146
+ }
2147
+ /**
2148
+ * 查询页面信息
2149
+ * @returns {Promise}
2150
+ */
2151
+ function queryPageInfo(data) {
2152
+ return request({
2153
+ method: "post",
2154
+ url: "/omni-channel-service-console/rest/workBench/queryPageInfo",
2155
+ data
2156
+ });
2157
+ }
2158
+
2159
+ /**
2160
+ * 查询页面信息
2161
+ * @returns {Promise}
2162
+ */
2163
+ function editPage(data) {
2164
+ return request({
2165
+ method: "post",
2166
+ url: "/omni-channel-service-console/rest/workBench/editPage",
2167
+ data
2168
+ });
2169
+ }
2170
+ /**
2171
+ * 字典值
2172
+ * @returns {Promise}
2173
+ */
2174
+ function getPreDictonaryList(data) {
2175
+ return request({
2176
+ method: "post",
2177
+ url: "/omni-channel-service-console/rest/Dictionary/queryDictionaryList",
2178
+ data
2179
+ });
2180
+ }
2181
+
2182
+ /**
2183
+ * 无痕浏览
2184
+ * @returns {Promise}
2185
+ */
2186
+ function saveTemporaryInfo(data) {
2187
+ return request({
2188
+ method: "post",
2189
+ url: "/omni-channel-service-console/rest/workBench/saveTempJson",
2190
+ data
2191
+ });
2192
+ }
2193
+ /**
2194
+ * 无痕浏览
2195
+ * @returns {Promise}
2196
+ */
2197
+ function getTemporaryInfo(data) {
2198
+ return request({
2199
+ method: "post",
2200
+ url: "/omni-channel-service-console/rest/workBench/queryTempJson",
2201
+ data
2202
+ });
2203
+ }
2204
+ /**
2205
+ * 查询操作记录
2206
+ * @returns {Promise}
2207
+ */
2208
+ function queryApproveList(data) {
2209
+ return request({
2210
+ method: "post",
2211
+ url: "/omni-channel-service-console/rest/workBench/queryApproveList",
2212
+ data
2213
+ });
2214
+ }
2215
+ /**
2216
+ * 通过栏目查询组件列表
2217
+ */
2218
+ function queryComponentByColumn(data) {
2219
+ return request({
2220
+ method: "post",
2221
+ url: "/omni-channel-service-console/rest/component/queryComponentByColumn",
2222
+ data
2223
+ });
2224
+ }
2225
+ /**
2226
+ * 查询收藏组件列表
2227
+ */
2228
+ function queryCollections(data) {
2229
+ return request({
2230
+ method: "post",
2231
+ url: "/omni-channel-service-console/rest/component/queryCollections",
2232
+ data
2233
+ });
2234
+ }
2235
+ /**
2236
+ * 收藏组件
2237
+ */
2238
+ function collectionComponent(data) {
2239
+ return request({
2240
+ method: "post",
2241
+ url: "/omni-channel-service-console/rest/component/collectionComponent",
2242
+ data
2243
+ });
2244
+ }
2245
+ /**
2246
+ * 保存/删除/修改组件配置
2247
+ */
2248
+ function syncComponentConfigure(data) {
2249
+ return request({
2250
+ method: "post",
2251
+ url: "/omni-channel-service-console/rest/component/syncComponentConfigure",
2252
+ data
2253
+ });
2254
+ }
2255
+ /**
2256
+ * 查询已保存组件列表
2257
+ */
2258
+ function queryComponentConfigure(data) {
2259
+ return request({
2260
+ method: "post",
2261
+ url: "/omni-channel-service-console/rest/component/queryComponentConfigure",
2262
+ data
2263
+ });
2264
+ }
2265
+ function queryOperateList(data) {
2266
+ return request({
2267
+ method: "post",
2268
+ url: "/omni-channel-service-console/rest/workBench/queryOperateList",
2269
+ data
2270
+ });
2271
+ }
2272
+ function updateDefaultConfig(data) {
2273
+ return request({
2274
+ method: "post",
2275
+ url: "/omni-channel-service-console/rest/workBench/updateDefaultConfig",
2276
+ data
2277
+ });
2278
+ }
2279
+ function omniHeartbeat(data) {
2280
+ return request({
2281
+ method: "post",
2282
+ url: "/omni-channel-service-console/rest/workBench/keepAlive",
2283
+ data
2284
+ });
2285
+ }
2286
+ function emallHeartbeat(data) {
2287
+ return request({
2288
+ method: "post",
2289
+ url: "/ecosp-console/workbench/keepAlive",
2290
+ data
2291
+ });
2292
+ }
2293
+ function qryBtList(data) {
2294
+ return request({
2295
+ method: "post",
2296
+ url: "/omni-channel-service-console/rest/component/qryBtList",
2297
+ data
2298
+ });
2299
+ }
2300
+
1992
2301
  /***/ }),
1993
2302
 
1994
2303
  /***/ 1012:
@@ -8889,9 +9198,9 @@ service.interceptors.request.use(config => {
8889
9198
  const env_prod = window.location.origin.includes(".22:");
8890
9199
  if (is_development) {
8891
9200
  if (config.url.includes("/ecosp-console")) {
8892
- document.cookie = "JSESSIONID=node017nm2falxdfe8c1parzfv9ilr29.node0";
9201
+ document.cookie = "JSESSIONID=31C253D4AB7D622317BE567A074A8D9F";
8893
9202
  } else if (config.url.includes("omni-channel-service-console")) {
8894
- document.cookie = "JSESSIONID=CA4058E3A195113C85AE1F926814CF89";
9203
+ document.cookie = "JSESSIONID=330793238C3780C658EA1FB6D4EECA59";
8895
9204
  }
8896
9205
  } else {
8897
9206
  if (config.url.includes("/api/") && is_cmsComp) {
@@ -9625,8 +9934,8 @@ var map = {
9625
9934
  "./cms-lineTwo/index.js": 8123,
9626
9935
  "./cms-proCard": 4338,
9627
9936
  "./cms-proCard/": 4338,
9628
- "./cms-proCard/View": 8112,
9629
- "./cms-proCard/View.vue": 8112,
9937
+ "./cms-proCard/View": 7063,
9938
+ "./cms-proCard/View.vue": 7063,
9630
9939
  "./cms-proCard/index": 4338,
9631
9940
  "./cms-proCard/index.js": 4338,
9632
9941
  "./cms-prodCustomization": 1685,
@@ -9665,6 +9974,12 @@ var map = {
9665
9974
  "./cms-servePlan-text/View.vue": 9487,
9666
9975
  "./cms-servePlan-text/index": 6501,
9667
9976
  "./cms-servePlan-text/index.js": 6501,
9977
+ "./cms-stored-value-card": 2399,
9978
+ "./cms-stored-value-card/": 2399,
9979
+ "./cms-stored-value-card/View": 9673,
9980
+ "./cms-stored-value-card/View.vue": 9673,
9981
+ "./cms-stored-value-card/index": 2399,
9982
+ "./cms-stored-value-card/index.js": 2399,
9668
9983
  "./cms-termsAndConditions": 9387,
9669
9984
  "./cms-termsAndConditions/": 9387,
9670
9985
  "./cms-termsAndConditions/View": 8073,
@@ -10313,6 +10628,14 @@ module.exports = function (object, names) {
10313
10628
  };
10314
10629
 
10315
10630
 
10631
+ /***/ }),
10632
+
10633
+ /***/ 1861:
10634
+ /***/ (function(module) {
10635
+
10636
+ "use strict";
10637
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAwUlEQVRYR+2VQQ6EMAhF6ZxEN049hif3GFY305OowdTEGGqBLpwFXTbwefkF6uDl416uDwZgDpgD5sB/OtB9+x9uyI/bhhBCrNmW3vtm3dyIGss8tXct0oEE0ABArIG4FD+02AD3RA0EVyPbA1wB6nkkuY9NKBE6QaQ5xSmQCEpiT+AiAAZyhDkx1HOxAEoQ2uKoywbIQeB9mnPV2IoAKIhkq6q42IFMp+O1emGJHSAgqla2GqDmf7jmGoA5YA6YAzukPq8hQaCizgAAAABJRU5ErkJggg==";
10638
+
10316
10639
  /***/ }),
10317
10640
 
10318
10641
  /***/ 1866:
@@ -12293,6 +12616,84 @@ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind
12293
12616
 
12294
12617
  /***/ }),
12295
12618
 
12619
+ /***/ 2399:
12620
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12621
+
12622
+ "use strict";
12623
+ __webpack_require__.r(__webpack_exports__);
12624
+ /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
12625
+
12626
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9673));
12627
+ const langData = {
12628
+ configList: [
12629
+ // {
12630
+ // id: Math.random().toString(),
12631
+ // pictureUrl:
12632
+ // "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2024-03-15/ORIGINAL_20240315172555_9XVGHwD4_600x348.png",
12633
+ // commodityId: "21202311071721797951533748224",
12634
+ // maxPicId: "",
12635
+ // commodityName: "",
12636
+ // refPrice: "",
12637
+ // price: "",
12638
+ // upTime: "",
12639
+ // malltCommodityRight: [],
12640
+ // malltCommodityLeft: [],
12641
+ // },
12642
+ ]
12643
+ };
12644
+ const configDataType = {};
12645
+ // const configDataType = getLangDataType(langData, {
12646
+ // configList: {
12647
+ // label: "商品信息配置",
12648
+ // addWidgetType: "addProductCard",
12649
+ // value: [
12650
+ // {
12651
+ // id: { label: "" },
12652
+ // ImageUrl: { label: "商品图片", hidden: true },
12653
+ // commodityId: { label: "商品id" },
12654
+ // title: { label: "标题" },
12655
+ // input1: { label: "員工特惠價", hidden: true },
12656
+ // diyInput: { label: "自定义" },
12657
+ // input2: { label: "员工优惠" },
12658
+ // input3: { label: "市場零售價", hidden: true },
12659
+ // input4: { label: "市场优惠" },
12660
+ // input5: { label: "起", hidden: true },
12661
+ // colorBody: {
12662
+ // label: "色值配置",
12663
+ // maxNums: 4,
12664
+ // value: [
12665
+ // {
12666
+ // id: { label: "" },
12667
+ // color: {
12668
+ // label: "色值",
12669
+ // widgetType: "el-color-picker",
12670
+ // predefine: ["#2F85FF", "#f48427", "#52C41A", "#D6197F"],
12671
+ // },
12672
+ // },
12673
+ // ],
12674
+ // },
12675
+ // button: { label: "按钮文案" },
12676
+ // jumpUrl: { label: "跳转链接" },
12677
+ // },
12678
+ // ],
12679
+ // },
12680
+ // });
12681
+ const validateSchema = (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getValidateSchema)(langData);
12682
+ /* harmony default export */ __webpack_exports__["default"] = ({
12683
+ View,
12684
+ validateSchema,
12685
+ configDataType,
12686
+ langData,
12687
+ settings: cmsCompName => {
12688
+ return (0,_baseConfig__WEBPACK_IMPORTED_MODULE_0__.getInitCompData)({
12689
+ cmsCompName,
12690
+ langData
12691
+ });
12692
+ }
12693
+ });
12694
+
12695
+ /***/ }),
12696
+
12296
12697
  /***/ 2404:
12297
12698
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12298
12699
 
@@ -26942,6 +27343,14 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
26942
27343
  });
26943
27344
 
26944
27345
 
27346
+ /***/ }),
27347
+
27348
+ /***/ 4116:
27349
+ /***/ (function(module) {
27350
+
27351
+ "use strict";
27352
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAMlJREFUWEftlMENwjAMRb9PrFEmgBWYqxcuiLFYASageyCRKlUqocpt/J1DOTjHyP5++bEt2PnIzvURAOFAOBAO/KcDp1t65w0pH1yeVxlatuX5nrr0xSNrvHo5LrVUBwpAB2BogfgpPmmZAZaJHgirxmoPWAW072FyN5uQEZpB2JzqFDCCTOwMXAXIgRZhS4z2XSaAGoS3+DTqzIxrhXAAypy7xpYC0JwoD3AVpx1Y6fR87V5YtAMKRNPKdgMwvbMVGwDhQDgQDoyvGK8h0ZAi2wAAAABJRU5ErkJggg==";
27353
+
26945
27354
  /***/ }),
26946
27355
 
26947
27356
  /***/ 4117:
@@ -27426,7 +27835,7 @@ module.exports = Error;
27426
27835
  __webpack_require__.r(__webpack_exports__);
27427
27836
  /* harmony import */ var _baseConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(649);
27428
27837
 
27429
- const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 8112));
27838
+ const View = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 7063));
27430
27839
  const langData = {
27431
27840
  configList: [{
27432
27841
  id: Math.random().toString(),
@@ -36932,6 +37341,14 @@ function nonStandardBrowserEnv() {
36932
37341
 
36933
37342
  /***/ }),
36934
37343
 
37344
+ /***/ 4860:
37345
+ /***/ (function(module) {
37346
+
37347
+ "use strict";
37348
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAYCAYAAADzoH0MAAAAAXNSR0IArs4c6QAAAM1JREFUOE+d1NERwiAMBuA/GzhCN7OO4AR1BDewTqYb2A0iKPQAQxLsS+/a5ksoJIR0MfMRwBXAFh5diOie32l3KoAHgKn4ePYgJfAKFRyabCZSAjOAm1CuiuxADGTmYaQC/kF+gFFEBEaQLuBFVMCDmICJeI6rgmyuChIQe2VtEj5dQGq0NjhaJxNQg4lWaxulsr+ZiT4VaQfJDO4CVtnlj5SayZU5I207DwVXSxgpW1xCANqZWP3t3onVZuK+Vd6pHMfZkgbrOe+z1StvwY53mu9ZPkwAAAAASUVORK5CYII=";
37349
+
37350
+ /***/ }),
37351
+
36935
37352
  /***/ 4887:
36936
37353
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
36937
37354
 
@@ -38315,13 +38732,14 @@ var map = {
38315
38732
  "./cms-lineFour/View.vue": 9703,
38316
38733
  "./cms-lineThree/View.vue": 6547,
38317
38734
  "./cms-lineTwo/View.vue": 3249,
38318
- "./cms-proCard/View.vue": 8112,
38735
+ "./cms-proCard/View.vue": 7063,
38319
38736
  "./cms-prodCustomization/View.vue": 6786,
38320
38737
  "./cms-productDetails/View.vue": 7984,
38321
38738
  "./cms-question/View.vue": 9764,
38322
38739
  "./cms-richText/View.vue": 3411,
38323
38740
  "./cms-servePlan-tab/View.vue": 4193,
38324
38741
  "./cms-servePlan-text/View.vue": 9487,
38742
+ "./cms-stored-value-card/View.vue": 9673,
38325
38743
  "./cms-termsAndConditions/View.vue": 8073,
38326
38744
  "./cms-text/View.vue": 1452,
38327
38745
  "./cms-threeScroll/View.vue": 8045,
@@ -38979,6 +39397,14 @@ var component = (0,componentNormalizer/* default */.A)(
38979
39397
 
38980
39398
  /***/ }),
38981
39399
 
39400
+ /***/ 5335:
39401
+ /***/ (function(module) {
39402
+
39403
+ "use strict";
39404
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAEQCAYAAADmsCy1AAAAAXNSR0IArs4c6QAAGABJREFUeF7tnVtyFceWhtcqYfAx7jAnohEmwg/SiyW1HyxGYDECwwiAEYBGIGkEiBEgRmAxAnaPAPnhtAQvbEecCCzREeyOMG4bs2t110bSEaBLXbIqV1V9ejonyMuf38r9OyuzaqUKfxCAAAQgUIqAlqpFJQhAAAIQEAyUSQABCECgJAEMtCQ4qkEAAhDAQJkDEIAABEoSwEBLgqMaBCAAAQyUOQABCECgJAEMtCQ4qkEAAhDAQJkDEIAABEoSwEBLgqMaBCAAAQyUOQABCECgJAEMtCQ4qkEAAhAIaqAvXtilt1/Ikmm6pJJ8JSKLJnJJxGZADQEIQKBZAjoUkaGajFJJf04k2Tr/uwxmZ3UUSkdlA91+aUvJOflBTG6Y2GIoYbQDAQhAoA4CKrplkv6njZP1hasTky39V9pAt/fstorcErGl0r1TEQIQgEBUAjowGT9amD63UUZGYQPdN84VHsvL4KYOBCDglMDQJF0raqS5DfT5ni2mIvdZcToNP7IgAIEQBIY21ut5H+1zGejzPbubiq2HUEcbEIAABLwTUNXVucu6dpbOUw00O1X/86L8xKrzLIz8OwQg0DUCqrp5/je5c9qp/YkGuv3SZnRKnrDX2bVpwXggAIG8BLIT+3QsN096pD/WQDHPvHgpBwEI9IDA8MIbvXbcSvRYA93ZTbdE5fsegGGIEIAABM4kkK1E56b12scFPzHQ56/sfmp278wWKQABCECgRwQS1fVvL+vy0SF/YKDv3/G0hz1iwlAhAAEI5CagpjfnrujmQYVDA2XfMzdDCkIAAv0lMLrwRmcP9kP/ZaB74w0VvdVfLowcAhCAwNkEzGxt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ABXwTGb/WaZpI4SPIVGNRAAALuCQznp5PZiYFu745XVXXFvWQEQgACEPBAINXl+a91fWKgL17bpT/f2QteZ/IQGTRAAALeCdhYZxeu6nBioKxCvYcLfRCAgBcCKroxN613Mj2HBsoq1Et40AEBCDgmMLSxXs9Wnx8YaPZ/eKXJcdiQBgEIRCdg4/TOwtVzGwdCDlegh4/ye+MNFb0VXSkCIAABCLgiYA/mp6fuHZX0iYFmj/Jv38kTM1t0pR0xEIAABGIRMPl5/kryiSd+YqCZvu2XNqNT8oRv5GNFi34hAAFHBD7Y9zx1BXr4KI+JOoofUiAAgUgETjTPTM+xK9ADofuP8w/N7EYk8XQLAQhAIBIBHVx4IzdnZ3V0koBTDfRwNcqXSpECSLcQgEAUAqktz389tX5W37kMlH3RszDy7xCAQDcI6MDGsrZwVQd5xpPbQA9Xo3t2W0VWOGDKg5cyEIBAKwiojOxdunz0Hc88ugsb6FEjTUTumvC6Ux7QlIEABDwSyFac40dFjfNgJKUN9KCB53u2mKbpbU2SHzBTjxMETRCAwFECKrqVWvpY0mSQ91H9JIKVDfRow9n7o5bIokq6mCTJ9yZySUxmeNxnAkMAAs0TmGRLyk7QtyxN/yfVZPC332Vw2ql6UY1BDbRo55SHAAQg0GYCGGibo4d2CEAgKgEMNCp+OocABNpMAANtc/TQDgEIRCWAgUbFT+cQgECbCWCgbY4e2iEAgagEMNCo+OkcAhBoMwEMtM3RQzsEIBCVAAYaFT+dQwACbSaAgbY5emiHAASiEsBAo+KncwhAoM0EMNA2Rw/tEIBAVAIYaFT8dA4BCLSZAAba5uihHQIQiErg/wB1YYsak+UHWwAAAABJRU5ErkJggg==";
39405
+
39406
+ /***/ }),
39407
+
38982
39408
  /***/ 5340:
38983
39409
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
38984
39410
 
@@ -49028,6 +49454,222 @@ module.exports = fails(function () {
49028
49454
  } : $Object;
49029
49455
 
49030
49456
 
49457
+ /***/ }),
49458
+
49459
+ /***/ 7063:
49460
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
49461
+
49462
+ "use strict";
49463
+ // ESM COMPAT FLAG
49464
+ __webpack_require__.r(__webpack_exports__);
49465
+
49466
+ // EXPORTS
49467
+ __webpack_require__.d(__webpack_exports__, {
49468
+ "default": function() { return /* binding */ View; }
49469
+ });
49470
+
49471
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-proCard/View.vue?vue&type=template&id=4c7f21b1&scoped=true
49472
+ var render = function render() {
49473
+ var _vm = this,
49474
+ _c = _vm._self._c;
49475
+ return _c('BaseComp', _vm._b({
49476
+ attrs: {
49477
+ "data": _vm.data,
49478
+ "nowCompId": _vm.nowCompId,
49479
+ "isOpcacity": _vm.isOpcacity,
49480
+ "lang": _vm.lang
49481
+ },
49482
+ on: {
49483
+ "getConfigData": _vm.getConfigData
49484
+ }
49485
+ }, 'BaseComp', _vm.$attrs, false), [_c('div', {
49486
+ staticClass: "employeePurchase"
49487
+ }, [_c('div', {
49488
+ staticClass: "cmhk-home_main"
49489
+ }, [_c('div', {
49490
+ staticClass: "cardList"
49491
+ }, [_c('div', {
49492
+ staticClass: "card first-type-card"
49493
+ }, [_c('div', {
49494
+ staticClass: "card-item-div"
49495
+ }, _vm._l(_vm.configList, function (item, index) {
49496
+ return _c('div', {
49497
+ key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
49498
+ staticClass: "card-item"
49499
+ }, [_c('img', {
49500
+ staticClass: "childImg",
49501
+ attrs: {
49502
+ "src": item.ImageUrl,
49503
+ "alt": "图片"
49504
+ }
49505
+ }), _c('div', {
49506
+ staticClass: "color"
49507
+ }, [item.colorBody && item.colorBody.length ? [_vm._l(item.colorBody, function (colorItem, idx) {
49508
+ return [!!colorItem.color ? _c('div', {
49509
+ key: `color${idx}`,
49510
+ staticClass: "circle",
49511
+ style: {
49512
+ 'background-color': colorItem.color
49513
+ }
49514
+ }) : _vm._e()];
49515
+ })] : [_c('div', {
49516
+ staticClass: "circle",
49517
+ staticStyle: {
49518
+ "background-color": "rgb(178, 179, 181)"
49519
+ }
49520
+ }), _c('span', {
49521
+ staticClass: "colorName"
49522
+ })]], 2), _c('div', {
49523
+ staticClass: "childName"
49524
+ }, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.title))]), _c('div', {
49525
+ staticClass: "topPriceDesc"
49526
+ }, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input1) + " "), _c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.diyInput))])]), _c('div', {
49527
+ staticClass: "topPrice"
49528
+ }, [_vm._v("HK$" + _vm._s(item === null || item === void 0 ? void 0 : item.input2))]), _c('div', {
49529
+ staticClass: "purchaseBtn",
49530
+ on: {
49531
+ "click": function ($event) {
49532
+ return _vm.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl);
49533
+ }
49534
+ }
49535
+ }, [_c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.button))]), _c('i', {
49536
+ staticClass: "el-icon-arrow-right"
49537
+ })])]);
49538
+ }), 0)])])])])]);
49539
+ };
49540
+ var staticRenderFns = [];
49541
+
49542
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
49543
+ var es_iterator_constructor = __webpack_require__(8111);
49544
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
49545
+ var es_iterator_filter = __webpack_require__(2489);
49546
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
49547
+ var es_iterator_map = __webpack_require__(1701);
49548
+ // EXTERNAL MODULE: ./src/api/index.js
49549
+ var api = __webpack_require__(929);
49550
+ // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
49551
+ var lib = __webpack_require__(9122);
49552
+ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
49553
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
49554
+ var baseComp = __webpack_require__(5298);
49555
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-proCard/View.vue?vue&type=script&lang=js
49556
+
49557
+
49558
+
49559
+
49560
+
49561
+
49562
+
49563
+
49564
+
49565
+
49566
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
49567
+ name: "cms-proCard",
49568
+ components: {
49569
+ BaseComp: baseComp["default"]
49570
+ },
49571
+ props: {
49572
+ data: {
49573
+ type: Object,
49574
+ default: () => {
49575
+ return {};
49576
+ }
49577
+ },
49578
+ nowCompId: {
49579
+ type: [String, Number],
49580
+ default: ""
49581
+ },
49582
+ isOpcacity: {
49583
+ type: Boolean,
49584
+ default: true
49585
+ },
49586
+ lang: {
49587
+ type: String,
49588
+ default: "zh-HK"
49589
+ }
49590
+ },
49591
+ data() {
49592
+ return {
49593
+ configList: []
49594
+ };
49595
+ },
49596
+ methods: {
49597
+ getConfigData(configData) {
49598
+ this.configList = configData.configList;
49599
+ this.getValue();
49600
+ },
49601
+ async getValue() {
49602
+ if (!this.isOpcacity && !this.$EventBus) {
49603
+ await Promise.all(this.configList.map(async (item, index) => {
49604
+ await this.getCommodityInfo(item, index);
49605
+ }));
49606
+ }
49607
+ },
49608
+ async getCommodityInfo(info, index) {
49609
+ let req = {
49610
+ busInfo: JSON.stringify({
49611
+ commodityId: info.commodityId,
49612
+ isPre: "N",
49613
+ channelId: "WWW"
49614
+ })
49615
+ };
49616
+ req = lib_default().stringify(req);
49617
+ const res = await (0,api/* queryV1 */.WL)(req);
49618
+ let result = {};
49619
+ const defaultPic = "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2023-11-15/ORIGINAL_20231115155223_BGxrpNa0_580x580.jpg?auto=format,compress&ar=1:1&fm=webp";
49620
+ if (res.resCode == "000000") {
49621
+ const commodityInfo = res.busiResp.busiDataResp[0];
49622
+ const {
49623
+ malltCommodityPrice = []
49624
+ } = commodityInfo;
49625
+ const priceNode = malltCommodityPrice.filter(item => item.isDefault == "1");
49626
+ const [currentSku = {}] = priceNode.length ? priceNode : malltCommodityPrice;
49627
+ const pictureUrl = currentSku !== null && currentSku !== void 0 && currentSku.commodityPricePictureVos.length ? currentSku === null || currentSku === void 0 ? void 0 : currentSku.commodityPricePictureVos[0].malltPictureVos[0].pictureUrl : defaultPic;
49628
+ result = {
49629
+ ...info,
49630
+ commodityId: commodityInfo.commodityId,
49631
+ ImageUrl: pictureUrl,
49632
+ title: commodityInfo.commodityTitle,
49633
+ input4: `${(currentSku === null || currentSku === void 0 ? void 0 : currentSku.refPrice) / 100}`
49634
+ };
49635
+ } else {
49636
+ result = {
49637
+ ...info
49638
+ };
49639
+ }
49640
+ this.configList.splice(index, 1, result);
49641
+ },
49642
+ decodeJumpUrl(url) {
49643
+ if (!url) return;
49644
+ top.location.href = url;
49645
+ }
49646
+ }
49647
+ });
49648
+ ;// ./package/cms-proCard/View.vue?vue&type=script&lang=js
49649
+ /* harmony default export */ var cms_proCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
49650
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
49651
+ var componentNormalizer = __webpack_require__(1656);
49652
+ ;// ./package/cms-proCard/View.vue
49653
+
49654
+
49655
+
49656
+
49657
+
49658
+ /* normalize component */
49659
+ ;
49660
+ var component = (0,componentNormalizer/* default */.A)(
49661
+ cms_proCard_Viewvue_type_script_lang_js,
49662
+ render,
49663
+ staticRenderFns,
49664
+ false,
49665
+ null,
49666
+ "4c7f21b1",
49667
+ null
49668
+
49669
+ )
49670
+
49671
+ /* harmony default export */ var View = (component.exports);
49672
+
49031
49673
  /***/ }),
49032
49674
 
49033
49675
  /***/ 7080:
@@ -50791,504 +51433,6 @@ $({ global: true, constructor: true, forced: FORCED }, {
50791
51433
  });
50792
51434
 
50793
51435
 
50794
- /***/ }),
50795
-
50796
- /***/ 8112:
50797
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
50798
-
50799
- "use strict";
50800
- // ESM COMPAT FLAG
50801
- __webpack_require__.r(__webpack_exports__);
50802
-
50803
- // EXPORTS
50804
- __webpack_require__.d(__webpack_exports__, {
50805
- "default": function() { return /* binding */ View; }
50806
- });
50807
-
50808
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-proCard/View.vue?vue&type=template&id=4c7f21b1&scoped=true
50809
- var render = function render() {
50810
- var _vm = this,
50811
- _c = _vm._self._c;
50812
- return _c('BaseComp', _vm._b({
50813
- attrs: {
50814
- "data": _vm.data,
50815
- "nowCompId": _vm.nowCompId,
50816
- "isOpcacity": _vm.isOpcacity,
50817
- "lang": _vm.lang
50818
- },
50819
- on: {
50820
- "getConfigData": _vm.getConfigData
50821
- }
50822
- }, 'BaseComp', _vm.$attrs, false), [_c('div', {
50823
- staticClass: "employeePurchase"
50824
- }, [_c('div', {
50825
- staticClass: "cmhk-home_main"
50826
- }, [_c('div', {
50827
- staticClass: "cardList"
50828
- }, [_c('div', {
50829
- staticClass: "card first-type-card"
50830
- }, [_c('div', {
50831
- staticClass: "card-item-div"
50832
- }, _vm._l(_vm.configList, function (item, index) {
50833
- return _c('div', {
50834
- key: `${index}${item === null || item === void 0 ? void 0 : item.id}`,
50835
- staticClass: "card-item"
50836
- }, [_c('img', {
50837
- staticClass: "childImg",
50838
- attrs: {
50839
- "src": item.ImageUrl,
50840
- "alt": "图片"
50841
- }
50842
- }), _c('div', {
50843
- staticClass: "color"
50844
- }, [item.colorBody && item.colorBody.length ? [_vm._l(item.colorBody, function (colorItem, idx) {
50845
- return [!!colorItem.color ? _c('div', {
50846
- key: `color${idx}`,
50847
- staticClass: "circle",
50848
- style: {
50849
- 'background-color': colorItem.color
50850
- }
50851
- }) : _vm._e()];
50852
- })] : [_c('div', {
50853
- staticClass: "circle",
50854
- staticStyle: {
50855
- "background-color": "rgb(178, 179, 181)"
50856
- }
50857
- }), _c('span', {
50858
- staticClass: "colorName"
50859
- })]], 2), _c('div', {
50860
- staticClass: "childName"
50861
- }, [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.title))]), _c('div', {
50862
- staticClass: "topPriceDesc"
50863
- }, [_vm._v(" " + _vm._s(item === null || item === void 0 ? void 0 : item.input1) + " "), _c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.diyInput))])]), _c('div', {
50864
- staticClass: "topPrice"
50865
- }, [_vm._v("HK$" + _vm._s(item === null || item === void 0 ? void 0 : item.input2))]), _c('div', {
50866
- staticClass: "purchaseBtn",
50867
- on: {
50868
- "click": function ($event) {
50869
- return _vm.decodeJumpUrl(item === null || item === void 0 ? void 0 : item.jumpUrl);
50870
- }
50871
- }
50872
- }, [_c('span', [_vm._v(_vm._s(item === null || item === void 0 ? void 0 : item.button))]), _c('i', {
50873
- staticClass: "el-icon-arrow-right"
50874
- })])]);
50875
- }), 0)])])])])]);
50876
- };
50877
- var staticRenderFns = [];
50878
-
50879
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
50880
- var es_iterator_constructor = __webpack_require__(8111);
50881
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
50882
- var es_iterator_filter = __webpack_require__(2489);
50883
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
50884
- var es_iterator_map = __webpack_require__(1701);
50885
- // EXTERNAL MODULE: ./src/utils/request.js + 2 modules
50886
- var utils_request = __webpack_require__(1564);
50887
- ;// ./src/api/index.js
50888
-
50889
-
50890
- // 页面配置保存接口
50891
- function saveInstance(data) {
50892
- return request({
50893
- method: "post",
50894
- url: "/omni-channel-service-console/rest/channelCmsCompInstance/saveInstance",
50895
- data
50896
- });
50897
- }
50898
-
50899
- // 页面组件配置信息查询接口
50900
- function queryInstanceConfig(data) {
50901
- return request({
50902
- method: "post",
50903
- url: "/omni-channel-service-console/rest/channelCmsCompInstance/queryInstanceConfig",
50904
- data
50905
- });
50906
- }
50907
- //B端25查询卡片组件下拉框
50908
- function queryCategoryInfo(data) {
50909
- return request({
50910
- method: "post",
50911
- url: "/ecosp-console/commodityCategory/queryCategoryList",
50912
- data
50913
- });
50914
- }
50915
- //B端25查询卡片
50916
- function queryCommodityList(data) {
50917
- return request({
50918
- method: "post",
50919
- url: "/ecosp-console/item/queryCommodityList",
50920
- data
50921
- });
50922
- }
50923
- //cmhk接口
50924
- function queryV1(data, language) {
50925
- return (0,utils_request/* default */.A)({
50926
- method: "post",
50927
- url: "/api/ecosp-emall/itemRest/commodity/queryV1",
50928
- data,
50929
- headers: {
50930
- "Accept-Language": language || ""
50931
- }
50932
- });
50933
- }
50934
- //查询menuList
50935
- function queryMenuList(data) {
50936
- return request({
50937
- method: "post",
50938
- url: "/api/omni-channel-service-portal/rest/overAllMenuConfig/queryMenuListNew",
50939
- data
50940
- });
50941
- }
50942
- function uploadImage(data) {
50943
- return request({
50944
- method: "post",
50945
- url: "/omni-channel-service-console/rest/commonFile/image",
50946
- data
50947
- });
50948
- }
50949
- function uploadVideo(data) {
50950
- return request({
50951
- method: "post",
50952
- url: "/omni-channel-service-console/rest/commonFile/video",
50953
- data
50954
- });
50955
- }
50956
- /**
50957
- * 查询部门列表
50958
- * @returns {Promise}
50959
- */
50960
- function queryDeptList(data) {
50961
- return request({
50962
- method: "post",
50963
- url: "/omni-channel-service-console/rest/workBench/queryDeptList",
50964
- data
50965
- });
50966
- }
50967
-
50968
- /**
50969
- * 查询面包屑列表
50970
- * @returns {Promise}
50971
- */
50972
- function queryBreadCrumbsList(data) {
50973
- return request({
50974
- method: "post",
50975
- url: "/omni-channel-service-console/rest/workBench/queryBreadCrumbsList",
50976
- data
50977
- });
50978
- }
50979
-
50980
- /**
50981
- * 查询页头页脚列表
50982
- * @returns {Promise}
50983
- */
50984
- function queryPageHfList(data) {
50985
- return request({
50986
- method: "post",
50987
- url: "/omni-channel-service-console/rest/workBench/queryPageHfList",
50988
- data
50989
- });
50990
- }
50991
-
50992
- /**
50993
- * 查询URL接口
50994
- * @returns {Promise}
50995
- */
50996
- function queryUrl(data) {
50997
- return request({
50998
- method: "post",
50999
- url: "/omni-channel-service-console/rest/workBench/queryUrl",
51000
- data
51001
- });
51002
- }
51003
-
51004
- /**
51005
- * 创建页面
51006
- * @param {Object} pageData 页面数据
51007
- * @returns {Promise}
51008
- */
51009
- function createPage(data) {
51010
- return request({
51011
- method: "post",
51012
- url: "/omni-channel-service-console/rest/workBench/createPage",
51013
- data
51014
- });
51015
- }
51016
- /**
51017
- * 查询页面信息
51018
- * @returns {Promise}
51019
- */
51020
- function queryPageInfo(data) {
51021
- return request({
51022
- method: "post",
51023
- url: "/omni-channel-service-console/rest/workBench/queryPageInfo",
51024
- data
51025
- });
51026
- }
51027
-
51028
- /**
51029
- * 查询页面信息
51030
- * @returns {Promise}
51031
- */
51032
- function editPage(data) {
51033
- return request({
51034
- method: "post",
51035
- url: "/omni-channel-service-console/rest/workBench/editPage",
51036
- data
51037
- });
51038
- }
51039
- /**
51040
- * 字典值
51041
- * @returns {Promise}
51042
- */
51043
- function getPreDictonaryList(data) {
51044
- return request({
51045
- method: "post",
51046
- url: "/omni-channel-service-console/rest/Dictionary/queryDictionaryList",
51047
- data
51048
- });
51049
- }
51050
-
51051
- /**
51052
- * 无痕浏览
51053
- * @returns {Promise}
51054
- */
51055
- function saveTemporaryInfo(data) {
51056
- return request({
51057
- method: "post",
51058
- url: "/omni-channel-service-console/rest/workBench/saveTempJson",
51059
- data
51060
- });
51061
- }
51062
- /**
51063
- * 无痕浏览
51064
- * @returns {Promise}
51065
- */
51066
- function getTemporaryInfo(data) {
51067
- return request({
51068
- method: "post",
51069
- url: "/omni-channel-service-console/rest/workBench/queryTempJson",
51070
- data
51071
- });
51072
- }
51073
- /**
51074
- * 查询操作记录
51075
- * @returns {Promise}
51076
- */
51077
- function queryApproveList(data) {
51078
- return request({
51079
- method: "post",
51080
- url: "/omni-channel-service-console/rest/workBench/queryApproveList",
51081
- data
51082
- });
51083
- }
51084
- /**
51085
- * 通过栏目查询组件列表
51086
- */
51087
- function queryComponentByColumn(data) {
51088
- return request({
51089
- method: "post",
51090
- url: "/omni-channel-service-console/rest/component/queryComponentByColumn",
51091
- data
51092
- });
51093
- }
51094
- /**
51095
- * 查询收藏组件列表
51096
- */
51097
- function queryCollections(data) {
51098
- return request({
51099
- method: "post",
51100
- url: "/omni-channel-service-console/rest/component/queryCollections",
51101
- data
51102
- });
51103
- }
51104
- /**
51105
- * 收藏组件
51106
- */
51107
- function collectionComponent(data) {
51108
- return request({
51109
- method: "post",
51110
- url: "/omni-channel-service-console/rest/component/collectionComponent",
51111
- data
51112
- });
51113
- }
51114
- /**
51115
- * 保存/删除/修改组件配置
51116
- */
51117
- function syncComponentConfigure(data) {
51118
- return request({
51119
- method: "post",
51120
- url: "/omni-channel-service-console/rest/component/syncComponentConfigure",
51121
- data
51122
- });
51123
- }
51124
- /**
51125
- * 查询已保存组件列表
51126
- */
51127
- function queryComponentConfigure(data) {
51128
- return request({
51129
- method: "post",
51130
- url: "/omni-channel-service-console/rest/component/queryComponentConfigure",
51131
- data
51132
- });
51133
- }
51134
- function queryOperateList(data) {
51135
- return request({
51136
- method: "post",
51137
- url: "/omni-channel-service-console/rest/workBench/queryOperateList",
51138
- data
51139
- });
51140
- }
51141
- function updateDefaultConfig(data) {
51142
- return request({
51143
- method: "post",
51144
- url: "/omni-channel-service-console/rest/workBench/updateDefaultConfig",
51145
- data
51146
- });
51147
- }
51148
- function omniHeartbeat(data) {
51149
- return request({
51150
- method: "post",
51151
- url: "/omni-channel-service-console/rest/workBench/keepAlive",
51152
- data
51153
- });
51154
- }
51155
- function emallHeartbeat(data) {
51156
- return request({
51157
- method: "post",
51158
- url: "/ecosp-console/workbench/keepAlive",
51159
- data
51160
- });
51161
- }
51162
- function qryBtList(data) {
51163
- return request({
51164
- method: "post",
51165
- url: "/omni-channel-service-console/rest/component/qryBtList",
51166
- data
51167
- });
51168
- }
51169
- // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
51170
- var lib = __webpack_require__(9122);
51171
- var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
51172
- // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
51173
- var baseComp = __webpack_require__(5298);
51174
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-proCard/View.vue?vue&type=script&lang=js
51175
-
51176
-
51177
-
51178
-
51179
-
51180
-
51181
-
51182
-
51183
-
51184
-
51185
- /* harmony default export */ var Viewvue_type_script_lang_js = ({
51186
- name: "cms-proCard",
51187
- components: {
51188
- BaseComp: baseComp["default"]
51189
- },
51190
- props: {
51191
- data: {
51192
- type: Object,
51193
- default: () => {
51194
- return {};
51195
- }
51196
- },
51197
- nowCompId: {
51198
- type: [String, Number],
51199
- default: ""
51200
- },
51201
- isOpcacity: {
51202
- type: Boolean,
51203
- default: true
51204
- },
51205
- lang: {
51206
- type: String,
51207
- default: "zh-HK"
51208
- }
51209
- },
51210
- data() {
51211
- return {
51212
- configList: []
51213
- };
51214
- },
51215
- methods: {
51216
- getConfigData(configData) {
51217
- this.configList = configData.configList;
51218
- this.getValue();
51219
- },
51220
- async getValue() {
51221
- if (!this.isOpcacity && !this.$EventBus) {
51222
- await Promise.all(this.configList.map(async (item, index) => {
51223
- await this.getCommodityInfo(item, index);
51224
- }));
51225
- }
51226
- },
51227
- async getCommodityInfo(info, index) {
51228
- let req = {
51229
- busInfo: JSON.stringify({
51230
- commodityId: info.commodityId,
51231
- isPre: "N",
51232
- channelId: "WWW"
51233
- })
51234
- };
51235
- req = lib_default().stringify(req);
51236
- const res = await queryV1(req);
51237
- let result = {};
51238
- const defaultPic = "https://omniapi.hk.chinamobile.com/upload/images/omni-channel-service-console/preferential/2023-11-15/ORIGINAL_20231115155223_BGxrpNa0_580x580.jpg?auto=format,compress&ar=1:1&fm=webp";
51239
- if (res.resCode == "000000") {
51240
- const commodityInfo = res.busiResp.busiDataResp[0];
51241
- const {
51242
- malltCommodityPrice = []
51243
- } = commodityInfo;
51244
- const priceNode = malltCommodityPrice.filter(item => item.isDefault == "1");
51245
- const [currentSku = {}] = priceNode.length ? priceNode : malltCommodityPrice;
51246
- const pictureUrl = currentSku !== null && currentSku !== void 0 && currentSku.commodityPricePictureVos.length ? currentSku === null || currentSku === void 0 ? void 0 : currentSku.commodityPricePictureVos[0].malltPictureVos[0].pictureUrl : defaultPic;
51247
- result = {
51248
- ...info,
51249
- commodityId: commodityInfo.commodityId,
51250
- ImageUrl: pictureUrl,
51251
- title: commodityInfo.commodityTitle,
51252
- input4: `${(currentSku === null || currentSku === void 0 ? void 0 : currentSku.refPrice) / 100}`
51253
- };
51254
- } else {
51255
- result = {
51256
- ...info
51257
- };
51258
- }
51259
- this.configList.splice(index, 1, result);
51260
- },
51261
- decodeJumpUrl(url) {
51262
- if (!url) return;
51263
- top.location.href = url;
51264
- }
51265
- }
51266
- });
51267
- ;// ./package/cms-proCard/View.vue?vue&type=script&lang=js
51268
- /* harmony default export */ var cms_proCard_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
51269
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
51270
- var componentNormalizer = __webpack_require__(1656);
51271
- ;// ./package/cms-proCard/View.vue
51272
-
51273
-
51274
-
51275
-
51276
-
51277
- /* normalize component */
51278
- ;
51279
- var component = (0,componentNormalizer/* default */.A)(
51280
- cms_proCard_Viewvue_type_script_lang_js,
51281
- render,
51282
- staticRenderFns,
51283
- false,
51284
- null,
51285
- "4c7f21b1",
51286
- null
51287
-
51288
- )
51289
-
51290
- /* harmony default export */ var View = (component.exports);
51291
-
51292
51436
  /***/ }),
51293
51437
 
51294
51438
  /***/ 8123:
@@ -55489,6 +55633,401 @@ module.exports = {
55489
55633
  };
55490
55634
 
55491
55635
 
55636
+ /***/ }),
55637
+
55638
+ /***/ 9670:
55639
+ /***/ (function(module) {
55640
+
55641
+ "use strict";
55642
+ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAMlJREFUWEftlMENwjAMRb9PrFEmgBWYqxcuiLFYASageyCRKlUqocpt/J1DOTjHyP5++bEt2PnIzvURAOFAOBAO/KcDp1t65w0pH1yeVxlatuX5nrr0xSNrvHo5LrVUBwpAB2BogfgpPmmZAZaJHgirxmoPWAW072FyN5uQEZpB2JzqFDCCTOwMXAXIgRZhS4z2XSaAGoS3+DTqzIxrhXAAypy7xpYC0JwoD3AVpx1Y6fR87V5YtAMKRNPKdgMwvbMVGwDhQDgQDoyvGK8h0ZAi2wAAAABJRU5ErkJggg==";
55643
+
55644
+ /***/ }),
55645
+
55646
+ /***/ 9673:
55647
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
55648
+
55649
+ "use strict";
55650
+ // ESM COMPAT FLAG
55651
+ __webpack_require__.r(__webpack_exports__);
55652
+
55653
+ // EXPORTS
55654
+ __webpack_require__.d(__webpack_exports__, {
55655
+ "default": function() { return /* binding */ View; }
55656
+ });
55657
+
55658
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=template&id=5dba4ef6&scoped=true
55659
+ var render = function render() {
55660
+ var _vm = this,
55661
+ _c = _vm._self._c;
55662
+ return _c('BaseComp', _vm._b({
55663
+ attrs: {
55664
+ "data": _vm.data,
55665
+ "nowCompId": _vm.nowCompId,
55666
+ "isOpcacity": _vm.isOpcacity,
55667
+ "lang": _vm.lang
55668
+ },
55669
+ on: {
55670
+ "getConfigData": _vm.getConfigData
55671
+ }
55672
+ }, 'BaseComp', _vm.$attrs, false), [_c('section', {
55673
+ staticClass: "cmhk-home_main"
55674
+ }, [_c('div', {
55675
+ staticClass: "wrap"
55676
+ }, [_c('div', {
55677
+ ref: "cardList",
55678
+ staticClass: "cardList"
55679
+ }, [_vm.configList.length === 0 ? [_c('div', {
55680
+ staticClass: "card-box"
55681
+ }, [_c('div', {
55682
+ staticClass: "card"
55683
+ }, [_c('div', {
55684
+ staticClass: "img-box"
55685
+ }, [_c('div', {
55686
+ staticClass: "card-img",
55687
+ class: {
55688
+ 'is-cms': _vm.$EventBus
55689
+ }
55690
+ }, [_c('img', {
55691
+ staticStyle: {
55692
+ "height": "200px"
55693
+ },
55694
+ attrs: {
55695
+ "src": _vm.placeholderImg,
55696
+ "alt": ""
55697
+ }
55698
+ })])]), _c('div', {
55699
+ staticClass: "content-box"
55700
+ }, [_c('div', {
55701
+ staticClass: "card-name"
55702
+ }, [_vm._v(_vm._s(_vm.langText.productName))]), _c('div', {
55703
+ staticClass: "text-box"
55704
+ }, [_c('div', {
55705
+ staticClass: "card-refPrice"
55706
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$XXXX ")]), _c('div', {
55707
+ staticClass: "card-pice-text"
55708
+ }, [_vm._v(_vm._s(_vm.langText.onlinePrice))])]), _c('div', {
55709
+ staticClass: "card-pice"
55710
+ }, [_c('span', [_vm._v("HK$")]), _vm._v("XXXX")]), _c('div', {
55711
+ staticClass: "card-btn"
55712
+ }, [_vm._v(_vm._s(_vm.langText.buyNow))])])])])] : _vm._e(), _vm._l(_vm.viewList, function (item, index) {
55713
+ return _c('div', {
55714
+ key: `${index}-${item.commodityId || index}`,
55715
+ staticClass: "card-box"
55716
+ }, [_c('div', {
55717
+ staticClass: "card"
55718
+ }, [_c('div', {
55719
+ staticClass: "tag-box-left"
55720
+ }, [_vm._l(item.malltCommodityLeft, function (ele, i) {
55721
+ return [_c('img', {
55722
+ key: i,
55723
+ attrs: {
55724
+ "src": _vm.compBaseUrl + ele.pictureUrl,
55725
+ "alt": ""
55726
+ }
55727
+ })];
55728
+ })], 2), _c('div', {
55729
+ staticClass: "tag-box-right"
55730
+ }, [_vm._l(item.malltCommodityRight, function (ele, i) {
55731
+ return [_c('img', {
55732
+ key: i,
55733
+ attrs: {
55734
+ "src": _vm.compBaseUrl + ele.pictureUrl,
55735
+ "alt": ""
55736
+ }
55737
+ })];
55738
+ })], 2), _c('div', {
55739
+ staticClass: "img-box"
55740
+ }, [_vm.isNotActive(item) ? _c('div', {
55741
+ staticClass: "mask"
55742
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? _vm.langText.comingSoon : _vm.langText.expired) + " ")]) : _vm._e(), _c('div', {
55743
+ staticClass: "card-img",
55744
+ class: {
55745
+ 'is-cms': _vm.$EventBus
55746
+ }
55747
+ }, [_c('img', {
55748
+ attrs: {
55749
+ "src": _vm.compBaseUrl + item.maxPicId,
55750
+ "alt": ""
55751
+ }
55752
+ })])]), _c('div', {
55753
+ staticClass: "content-box"
55754
+ }, [_vm.isNotActive(item) ? _c('div', {
55755
+ staticClass: "content-mask"
55756
+ }) : _vm._e(), _c('div', {
55757
+ staticClass: "card-name"
55758
+ }, [_vm._v(_vm._s(item.commodityName))]), _c('div', {
55759
+ staticClass: "text-box"
55760
+ }, [item.price !== item.refPrice ? _c('div', {
55761
+ staticClass: "card-refPrice"
55762
+ }, [_vm._v(" " + _vm._s(_vm.langText.Price) + " HK$" + _vm._s(_vm.convertCentsToYuan(item.refPrice)) + " ")]) : _c('div', {
55763
+ staticClass: "card-refPrice"
55764
+ }), _c('div', {
55765
+ staticClass: "card-pice-text"
55766
+ }, [_vm._v(" " + _vm._s(item.price !== item.refPrice ? _vm.langText.onlinePrice : _vm.langText.Price) + " ")])]), _c('div', {
55767
+ staticClass: "card-pice spc-font"
55768
+ }, [_c('span', [_vm._v("HK$")]), _vm._v(_vm._s(_vm.convertCentsToYuan(item.price)) + " ")]), _vm.isActive(item) ? _c('div', {
55769
+ staticClass: "card-btn",
55770
+ on: {
55771
+ "click": function ($event) {
55772
+ return _vm.goDetail(item);
55773
+ }
55774
+ }
55775
+ }, [_vm._v(" " + _vm._s(_vm.langText.buyNow)), _c('img', {
55776
+ attrs: {
55777
+ "src": _vm.arrowRightImg
55778
+ }
55779
+ })]) : _c('div', {
55780
+ staticClass: "card-btn"
55781
+ }, [_vm._v(" " + _vm._s(new Date(item.upTime).getTime() > _vm.nowTs ? (_vm.langText.launch || "").replace("NNN", item.upTime) : _vm.langText.Offer) + " ")])])])]);
55782
+ })], 2), !_vm.seeMore && _vm.configList.length > 9 ? _c('div', {
55783
+ ref: "seeMoreRef",
55784
+ staticClass: "seeMore",
55785
+ on: {
55786
+ "click": function ($event) {
55787
+ _vm.seeMore = true;
55788
+ }
55789
+ }
55790
+ }, [_vm._v(" " + _vm._s(_vm.langText.more) + " "), _c('img', {
55791
+ staticClass: "btm",
55792
+ attrs: {
55793
+ "src": _vm.arrowDownImg
55794
+ }
55795
+ }), _c('img', {
55796
+ staticClass: "hover",
55797
+ attrs: {
55798
+ "src": _vm.arrowHoverImg
55799
+ }
55800
+ }), _c('img', {
55801
+ staticClass: "active",
55802
+ attrs: {
55803
+ "src": _vm.arrowActiveImg
55804
+ }
55805
+ })]) : _vm._e()])])]);
55806
+ };
55807
+ var staticRenderFns = [];
55808
+
55809
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
55810
+ var es_iterator_constructor = __webpack_require__(8111);
55811
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
55812
+ var es_iterator_filter = __webpack_require__(2489);
55813
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
55814
+ var es_iterator_for_each = __webpack_require__(7588);
55815
+ // EXTERNAL MODULE: ./package/baseComp.vue + 5 modules
55816
+ var baseComp = __webpack_require__(5298);
55817
+ // EXTERNAL MODULE: ./src/api/index.js
55818
+ var api = __webpack_require__(929);
55819
+ // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
55820
+ var lib = __webpack_require__(9122);
55821
+ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
55822
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
55823
+
55824
+
55825
+
55826
+
55827
+
55828
+
55829
+
55830
+
55831
+
55832
+ /* harmony default export */ var Viewvue_type_script_lang_js = ({
55833
+ name: "cms-stored-value-card",
55834
+ components: {
55835
+ BaseComp: baseComp["default"]
55836
+ },
55837
+ props: {
55838
+ data: {
55839
+ type: Object,
55840
+ default: () => {
55841
+ return {};
55842
+ }
55843
+ },
55844
+ nowCompId: {
55845
+ type: [String, Number],
55846
+ default: ""
55847
+ },
55848
+ isOpcacity: {
55849
+ type: Boolean,
55850
+ default: true
55851
+ },
55852
+ lang: {
55853
+ type: String,
55854
+ default: "zh-HK"
55855
+ }
55856
+ },
55857
+ data() {
55858
+ return {
55859
+ langConfig: {
55860
+ "zh-HK": {
55861
+ productName: "產品名稱",
55862
+ Price: "建議零售價",
55863
+ onlinePrice: "網上優惠價",
55864
+ buyNow: "立即選購",
55865
+ comingSoon: "即將推出",
55866
+ expired: "優惠已過期",
55867
+ more: "查看更多",
55868
+ launch: "NNN 上線",
55869
+ Offer: "優惠即將推出"
55870
+ },
55871
+ "zh-CN": {
55872
+ productName: "产品名称",
55873
+ Price: "建议零售价",
55874
+ onlinePrice: "网上优惠价",
55875
+ buyNow: "立即选购",
55876
+ comingSoon: "即将推出",
55877
+ expired: "优惠已过期",
55878
+ more: "查看更多",
55879
+ launch: "NNN 上线",
55880
+ Offer: "优惠即将推出"
55881
+ },
55882
+ "en-US": {
55883
+ productName: "Product Name",
55884
+ Price: "RRP",
55885
+ onlinePrice: "Online Price",
55886
+ buyNow: "Buy Now",
55887
+ comingSoon: "Coming Soon",
55888
+ expired: "Expired",
55889
+ more: "See more",
55890
+ launch: "Launch at NNN",
55891
+ Offer: "Offer Coming"
55892
+ }
55893
+ },
55894
+ configList: [],
55895
+ seeMore: false,
55896
+ nowTs: Date.now(),
55897
+ compBaseUrl: this.$route.query.envId == 4 ? "https://omniapi.hk.chinamobile.com" : "https://omniapi-uat.hk.chinamobile.com",
55898
+ // images
55899
+ placeholderImg: __webpack_require__(5335),
55900
+ arrowRightImg: __webpack_require__(4860),
55901
+ arrowDownImg: __webpack_require__(1861),
55902
+ arrowHoverImg: __webpack_require__(4116),
55903
+ arrowActiveImg: __webpack_require__(9670),
55904
+ shopList: []
55905
+ };
55906
+ },
55907
+ computed: {
55908
+ langText() {
55909
+ return this.config && this.langConfig && this.langConfig[this.lang] || this.langConfig["zh-HK"];
55910
+ },
55911
+ viewList() {
55912
+ if (this.seeMore) return this.shopList;
55913
+ return this.shopList.slice(0, 9);
55914
+ }
55915
+ },
55916
+ mounted() {
55917
+ if (!this.$EventBus) {
55918
+ if (["https://omniapi.hk.chinamobile.com", "https://www.hk.chinamobile.com"].includes(window.location.origin)) {
55919
+ this.compBaseUrl = "https://omniapi.hk.chinamobile.com";
55920
+ } else {
55921
+ this.compBaseUrl = "https://omniapi-uat.hk.chinamobile.com";
55922
+ }
55923
+ }
55924
+ },
55925
+ beforeDestroy() {},
55926
+ methods: {
55927
+ getConfigData(configData) {
55928
+ this.configList = configData.configList;
55929
+ console.log("getConfigData", this.configList);
55930
+ this.getValue();
55931
+ },
55932
+ async getValue() {
55933
+ await this.getCommodityDetails();
55934
+ },
55935
+ // 拉取已选商品详情
55936
+ async getCommodityDetails() {
55937
+ // try {
55938
+ let req = {
55939
+ busInfo: JSON.stringify({
55940
+ commodityIds: [...this.configList],
55941
+ commodityTypes: ["604", "605"]
55942
+ })
55943
+ };
55944
+ req = lib_default().stringify(req);
55945
+ const json = await (0,api/* getCommodityDetails */.yX)(req, {
55946
+ lang_sc: "zh-CN",
55947
+ lang_tc: "zh-HK",
55948
+ lang_en: "en-US"
55949
+ }[this.lang]);
55950
+ let dataResult = json && json.busiResp && json.busiResp.busiDataResp;
55951
+ if (Array.isArray(dataResult)) {
55952
+ dataResult.forEach(item => {
55953
+ if (Array.isArray(item.malltCommodityTags)) {
55954
+ const left = item.malltCommodityTags.filter(ele => ele.tagType == 5001).sort((a, b) => a.sort - b.sort);
55955
+ const right = item.malltCommodityTags.filter(ele => ele.tagType == 5002).sort((a, b) => a.sort - b.sort);
55956
+ item.malltCommodityLeft = left.slice(0, 2);
55957
+ item.malltCommodityRight = right.slice(0, 4);
55958
+ } else {
55959
+ item.malltCommodityLeft = [];
55960
+ item.malltCommodityRight = [];
55961
+ }
55962
+ });
55963
+ // 按选择顺序排序
55964
+ this.shopList = dataResult.sort((a, b) => {
55965
+ return this.configList.indexOf(a.commodityId) - this.configList.indexOf(b.commodityId);
55966
+ });
55967
+ } else {
55968
+ this.shopList = [];
55969
+ }
55970
+ // } catch (e) {
55971
+ // this.shopList = [];
55972
+ // }
55973
+ },
55974
+ isActive(item) {
55975
+ const now = Date.now();
55976
+ return new Date(item.upTime).getTime() < now && new Date(item.downTime).getTime() > now;
55977
+ },
55978
+ isNotActive(item) {
55979
+ const now = Date.now();
55980
+ return new Date(item.upTime).getTime() > now || new Date(item.downTime).getTime() < now;
55981
+ },
55982
+ convertCentsToYuan(cents) {
55983
+ const yuan = (Number(cents || 0) / 100).toFixed(2);
55984
+ return parseFloat(yuan);
55985
+ },
55986
+ goDetail(item) {
55987
+ const base = this.$EventBus ? this.compBaseUrl : window.location.origin;
55988
+ if (item.commodityType === "604") {
55989
+ if ((item.commodityName || "").includes("MySIM")) {
55990
+ window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/mysim/detail?commodityId=${item.commodityId}&mysim=${item.commodityName}`;
55991
+ } else {
55992
+ window.parent.location.href = `${base}/${this.lang}/home/prepaid-card/detail?commodityId=${item.commodityId}&commodityType=604&commodityName=${item.commodityName}`;
55993
+ }
55994
+ } else if (item.commodityType === "605") {
55995
+ window.parent.location.href = `${base}/${this.lang}/home/prepaid/refill-voucher/detail?commodityId=${item.commodityId}&commodityType=605&commodityName=${item.commodityName}`;
55996
+ }
55997
+ }
55998
+ }
55999
+ });
56000
+ ;// ./package/cms-stored-value-card/View.vue?vue&type=script&lang=js
56001
+ /* harmony default export */ var cms_stored_value_card_Viewvue_type_script_lang_js = (Viewvue_type_script_lang_js);
56002
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-42.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
56003
+ // extracted by mini-css-extract-plugin
56004
+
56005
+ ;// ./package/cms-stored-value-card/View.vue?vue&type=style&index=0&id=5dba4ef6&prod&lang=scss&scoped=true
56006
+
56007
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
56008
+ var componentNormalizer = __webpack_require__(1656);
56009
+ ;// ./package/cms-stored-value-card/View.vue
56010
+
56011
+
56012
+
56013
+ ;
56014
+
56015
+
56016
+ /* normalize component */
56017
+
56018
+ var component = (0,componentNormalizer/* default */.A)(
56019
+ cms_stored_value_card_Viewvue_type_script_lang_js,
56020
+ render,
56021
+ staticRenderFns,
56022
+ false,
56023
+ null,
56024
+ "5dba4ef6",
56025
+ null
56026
+
56027
+ )
56028
+
56029
+ /* harmony default export */ var View = (component.exports);
56030
+
55492
56031
  /***/ }),
55493
56032
 
55494
56033
  /***/ 9699: