@fonixtree/magic-design 2.0.163 → 2.0.165

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.
Files changed (61) hide show
  1. package/es/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
  2. package/es/composite-comp/bol/components/Button/defaultJSON.js +6 -1
  3. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
  4. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
  5. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
  6. package/es/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
  7. package/es/composite-comp/bol/components/Text/defaultJSON.js +16 -5
  8. package/es/composite-comp/bol/components/Video/defaultJSON.js +9 -4
  9. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
  10. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
  11. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
  12. package/es/composite-comp/common/components/MonpayProductItem/index.js +25 -47
  13. package/es/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
  14. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
  15. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
  16. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
  17. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
  18. package/es/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
  19. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
  20. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
  21. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
  22. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
  23. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
  24. package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
  25. package/es/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +6 -28
  26. package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
  27. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
  28. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
  29. package/es/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
  30. package/es/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
  31. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
  32. package/lib/composite-comp/bol/components/Button/defaultJSON.js +6 -1
  33. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
  34. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
  35. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
  36. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
  37. package/lib/composite-comp/bol/components/Text/defaultJSON.js +16 -5
  38. package/lib/composite-comp/bol/components/Video/defaultJSON.js +9 -4
  39. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
  40. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
  41. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
  42. package/lib/composite-comp/common/components/MonpayProductItem/index.js +25 -47
  43. package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
  44. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
  45. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
  46. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
  47. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
  48. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
  49. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
  50. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
  51. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
  52. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
  53. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
  54. package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
  55. package/lib/composite-comp/monpay/components/InterestProducts/mobile/ProductItem/index.js +6 -28
  56. package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
  57. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
  58. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
  59. package/lib/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
  60. package/lib/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
  61. package/package.json +1 -1
@@ -7,8 +7,13 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var getDefaultJSON = function getDefaultJSON() {
13
+ var _a;
14
+
11
15
  var contentId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  id: (0, _uuid.v4)(),
14
19
  type: 'INTEREST_PRODUCTS',
@@ -21,7 +26,7 @@ var getDefaultJSON = function getDefaultJSON() {
21
26
  text: 'Nutrition & Wellness supplements',
22
27
  content: {
23
28
  sizeType: 'Customize font styles',
24
- fontFamily: 'Open Sans',
29
+ fontFamily: defaultFontFamily,
25
30
  fontWeight: 600,
26
31
  fontSize: 15,
27
32
  color: '#000'
@@ -15,8 +15,6 @@ var _currencyUtil = require("../../../../../../utils/currencyUtil");
15
15
 
16
16
  var _common = require("../../../../../../common");
17
17
 
18
- var _ImageLabel = _interopRequireDefault(require("../../../../../common/components/ImageLabel"));
19
-
20
18
  require("./index.less");
21
19
 
22
20
  var _locale = require("../../../../../../locale");
@@ -77,12 +75,10 @@ function (_super) {
77
75
  }
78
76
 
79
77
  ProductItem.prototype.render = function () {
80
- var _a, _b, _c;
81
-
82
- var _d = this.props,
83
- data = _d.data,
84
- onItemClick = _d.onItemClick,
85
- rest = __rest(_d, ["data", "onItemClick"]);
78
+ var _a = this.props,
79
+ data = _a.data,
80
+ onItemClick = _a.onItemClick,
81
+ rest = __rest(_a, ["data", "onItemClick"]);
86
82
 
87
83
  var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
88
84
  var oldPrice = null;
@@ -92,15 +88,6 @@ function (_super) {
92
88
  oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
93
89
  }
94
90
 
95
- var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
96
- return f.position !== '6' && f.position !== '7';
97
- })) || [];
98
- var prodLabels = ((_b = data.labels) === null || _b === void 0 ? void 0 : _b.filter(function (f) {
99
- return f.position === '6';
100
- })) || [];
101
- var priceLabels = ((_c = data.labels) === null || _c === void 0 ? void 0 : _c.filter(function (f) {
102
- return f.position === '7';
103
- })) || [];
104
91
  var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
105
92
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
106
93
  className: (0, _classnames["default"])('monpay-interest-product-item-wrap'),
@@ -113,9 +100,6 @@ function (_super) {
113
100
  className: "product-img",
114
101
  lazy: true,
115
102
  src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
116
- }), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
117
- labels: imgLabels,
118
- small: true
119
103
  }), data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
120
104
  className: "discount-tag"
121
105
  }, data.discountPercent, "% ", (0, _locale.i18n)('OFF'))), /*#__PURE__*/_react["default"].createElement("div", {
@@ -124,19 +108,13 @@ function (_super) {
124
108
  className: "product-name-wrap"
125
109
  }, /*#__PURE__*/_react["default"].createElement("div", {
126
110
  className: "box"
127
- }, prodLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
128
- labels: prodLabels,
129
- small: true
130
- }), /*#__PURE__*/_react["default"].createElement("div", {
111
+ }, /*#__PURE__*/_react["default"].createElement("div", {
131
112
  className: "prodName"
132
113
  }, data.offerName))), /*#__PURE__*/_react["default"].createElement("div", {
133
114
  className: "price-wrap"
134
115
  }, /*#__PURE__*/_react["default"].createElement("div", {
135
116
  className: "price"
136
- }, price, " "), priceLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
137
- labels: priceLabels,
138
- small: true
139
- })), /*#__PURE__*/_react["default"].createElement("div", {
117
+ }, price, " ")), /*#__PURE__*/_react["default"].createElement("div", {
140
118
  className: "old-price-wrap"
141
119
  }, oldPrice && /*#__PURE__*/_react["default"].createElement("div", {
142
120
  className: "old-price"
@@ -7,8 +7,13 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var getDefaultJSON = function getDefaultJSON() {
13
+ var _a;
14
+
11
15
  var contentId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  id: (0, _uuid.v4)(),
14
19
  type: 'MERCHANT_SALES',
@@ -44,7 +49,7 @@ var getDefaultJSON = function getDefaultJSON() {
44
49
  text: 'Name',
45
50
  content: {
46
51
  sizeType: 'Customize font styles',
47
- fontFamily: 'Open Sans',
52
+ fontFamily: defaultFontFamily,
48
53
  fontWeight: 400,
49
54
  fontSize: 14,
50
55
  color: '#000',
@@ -9,8 +9,13 @@ var _uuid = require("uuid");
9
9
 
10
10
  var _base = require("../../../../assets/images/base64");
11
11
 
12
+ var _constants = require("../../../../constants");
13
+
12
14
  var getDefaultJSON = function getDefaultJSON() {
15
+ var _a;
16
+
13
17
  var contentId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
14
19
  return {
15
20
  id: (0, _uuid.v4)(),
16
21
  type: 'MONPAY_FLASH_DEAL',
@@ -28,7 +33,7 @@ var getDefaultJSON = function getDefaultJSON() {
28
33
  text: 'Flash Deal',
29
34
  content: {
30
35
  sizeType: 'Customize font styles',
31
- fontFamily: 'Open Sans',
36
+ fontFamily: defaultFontFamily,
32
37
  fontWeight: 600,
33
38
  fontSize: 13,
34
39
  color: '#232F46'
@@ -54,7 +59,7 @@ var getDefaultJSON = function getDefaultJSON() {
54
59
  text: '',
55
60
  content: {
56
61
  sizeType: 'Customize font styles',
57
- fontFamily: 'Open Sans',
62
+ fontFamily: defaultFontFamily,
58
63
  fontWeight: 400,
59
64
  fontSize: 11,
60
65
  color: '#8493AF'
@@ -82,7 +87,7 @@ var getDefaultJSON = function getDefaultJSON() {
82
87
  },
83
88
  buttonText: {
84
89
  sizeType: 'Customize font styles',
85
- fontFamily: 'Open Sans',
90
+ fontFamily: defaultFontFamily,
86
91
  fontWeight: 400,
87
92
  fontSize: 14,
88
93
  fontStyle: 'normal',
@@ -134,7 +139,7 @@ var getDefaultJSON = function getDefaultJSON() {
134
139
  },
135
140
  buttonText: {
136
141
  sizeType: 'Customize font styles',
137
- fontFamily: 'Open Sans',
142
+ fontFamily: defaultFontFamily,
138
143
  fontWeight: 600,
139
144
  fontSize: 8,
140
145
  fontStyle: 'normal',
@@ -177,7 +182,7 @@ var getDefaultJSON = function getDefaultJSON() {
177
182
  },
178
183
  buttonText: {
179
184
  sizeType: 'Customize font styles',
180
- fontFamily: 'Open Sans',
185
+ fontFamily: defaultFontFamily,
181
186
  fontWeight: 600,
182
187
  fontSize: 8,
183
188
  fontStyle: 'normal',
@@ -217,7 +222,7 @@ var getDefaultJSON = function getDefaultJSON() {
217
222
  text: '',
218
223
  content: {
219
224
  sizeType: 'Customize font styles',
220
- fontFamily: 'Open Sans',
225
+ fontFamily: defaultFontFamily,
221
226
  fontWeight: 500,
222
227
  fontSize: 14,
223
228
  color: '#2C2C2C'
@@ -241,7 +246,7 @@ var getDefaultJSON = function getDefaultJSON() {
241
246
  text: '',
242
247
  content: {
243
248
  sizeType: 'Customize font styles',
244
- fontFamily: 'Open Sans',
249
+ fontFamily: defaultFontFamily,
245
250
  fontWeight: 600,
246
251
  fontSize: 14,
247
252
  color: '#CE1126'
@@ -265,7 +270,7 @@ var getDefaultJSON = function getDefaultJSON() {
265
270
  text: '',
266
271
  content: {
267
272
  sizeType: 'Customize font styles',
268
- fontFamily: 'Open Sans',
273
+ fontFamily: defaultFontFamily,
269
274
  fontWeight: 500,
270
275
  fontSize: 10,
271
276
  color: '#929292'
@@ -7,10 +7,15 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var groupNameId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
14
19
  return {
15
20
  id: groupId,
16
21
  parentId: parentId,
@@ -43,7 +48,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
43
48
  text: text,
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 400,
48
53
  fontSize: 14,
49
54
  color: '#8493AF'
@@ -67,7 +72,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
67
72
  },
68
73
  buttonText: {
69
74
  sizeType: 'Customize font styles',
70
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
71
76
  fontWeight: 400,
72
77
  fontSize: 12,
73
78
  fontStyle: 'normal',
@@ -134,7 +139,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
134
139
  text: text,
135
140
  content: {
136
141
  sizeType: 'Customize font styles',
137
- fontFamily: 'Open Sans',
142
+ fontFamily: defaultFontFamily,
138
143
  fontWeight: 600,
139
144
  fontSize: 14,
140
145
  color: '#CE1126'
@@ -153,7 +158,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
153
158
  exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
154
159
 
155
160
  var getDefaultJSON = function getDefaultJSON() {
161
+ var _a;
162
+
156
163
  var groupId = (0, _uuid.v4)();
164
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
157
165
  return {
158
166
  id: groupId,
159
167
  type: 'MONPAY_RECOMMEND',
@@ -191,7 +199,7 @@ var getDefaultJSON = function getDefaultJSON() {
191
199
  },
192
200
  buttonText: {
193
201
  sizeType: 'Customize font styles',
194
- fontFamily: 'Open Sans',
202
+ fontFamily: defaultFontFamily,
195
203
  fontWeight: 600,
196
204
  fontSize: 8,
197
205
  fontStyle: 'normal',
@@ -230,7 +238,7 @@ var getDefaultJSON = function getDefaultJSON() {
230
238
  text: '',
231
239
  content: {
232
240
  sizeType: 'Customize font styles',
233
- fontFamily: 'Open Sans',
241
+ fontFamily: defaultFontFamily,
234
242
  fontWeight: 700,
235
243
  fontSize: 14,
236
244
  color: '#232F46'
@@ -253,7 +261,7 @@ var getDefaultJSON = function getDefaultJSON() {
253
261
  text: '',
254
262
  content: {
255
263
  sizeType: 'Customize font styles',
256
- fontFamily: 'Open Sans',
264
+ fontFamily: defaultFontFamily,
257
265
  fontWeight: 700,
258
266
  fontSize: 14,
259
267
  color: '#CE1126'
@@ -276,7 +284,7 @@ var getDefaultJSON = function getDefaultJSON() {
276
284
  text: '',
277
285
  content: {
278
286
  sizeType: 'Customize font styles',
279
- fontFamily: 'Open Sans',
287
+ fontFamily: defaultFontFamily,
280
288
  fontWeight: 500,
281
289
  fontSize: 10,
282
290
  color: '#8493AF'
@@ -302,7 +310,7 @@ var getDefaultJSON = function getDefaultJSON() {
302
310
  text: '',
303
311
  content: {
304
312
  sizeType: 'Customize font styles',
305
- fontFamily: 'Open Sans',
313
+ fontFamily: defaultFontFamily,
306
314
  fontWeight: 400,
307
315
  fontSize: 10,
308
316
  color: '#545454',
@@ -326,7 +334,7 @@ var getDefaultJSON = function getDefaultJSON() {
326
334
  text: '',
327
335
  content: {
328
336
  sizeType: 'Customize font styles',
329
- fontFamily: 'Open Sans',
337
+ fontFamily: defaultFontFamily,
330
338
  fontWeight: 400,
331
339
  fontSize: 10,
332
340
  color: '#545454',
@@ -7,7 +7,12 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var getDefaultJSON = function getDefaultJSON() {
13
+ var _a;
14
+
15
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
11
16
  return {
12
17
  id: (0, _uuid.v4)(),
13
18
  type: 'MONPAY_SIGN_BOARD',
@@ -26,7 +31,7 @@ var getDefaultJSON = function getDefaultJSON() {
26
31
  text: 'Store Name',
27
32
  content: {
28
33
  sizeType: 'Customize font styles',
29
- fontFamily: 'Open Sans',
34
+ fontFamily: defaultFontFamily,
30
35
  fontWeight: 600,
31
36
  fontSize: 16,
32
37
  color: '#000',
@@ -51,7 +56,7 @@ var getDefaultJSON = function getDefaultJSON() {
51
56
  },
52
57
  buttonText: {
53
58
  sizeType: 'Customize font styles',
54
- fontFamily: 'Open Sans',
59
+ fontFamily: defaultFontFamily,
55
60
  fontWeight: 400,
56
61
  fontSize: 12,
57
62
  fontStyle: 'normal',
@@ -7,10 +7,15 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var groupNameId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
14
19
  return {
15
20
  id: groupId,
16
21
  parentId: parentId,
@@ -43,7 +48,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
43
48
  text: text,
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 400,
48
53
  fontSize: 14,
49
54
  color: '#8493AF'
@@ -67,7 +72,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
67
72
  },
68
73
  buttonText: {
69
74
  sizeType: 'Customize font styles',
70
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
71
76
  fontWeight: 400,
72
77
  fontSize: 12,
73
78
  fontStyle: 'normal',
@@ -133,7 +138,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
133
138
  text: text,
134
139
  content: {
135
140
  sizeType: 'Customize font styles',
136
- fontFamily: 'Open Sans',
141
+ fontFamily: defaultFontFamily,
137
142
  fontWeight: 600,
138
143
  fontSize: 14,
139
144
  color: '#CE1126'
@@ -152,7 +157,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
152
157
  exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
153
158
 
154
159
  var getDefaultJSON = function getDefaultJSON() {
160
+ var _a;
161
+
155
162
  var groupId = (0, _uuid.v4)();
163
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
156
164
  return {
157
165
  id: groupId,
158
166
  type: 'AFFILIATE_RECOMMEND',
@@ -166,7 +174,7 @@ var getDefaultJSON = function getDefaultJSON() {
166
174
  text: 'Flash Deal',
167
175
  content: {
168
176
  sizeType: 'Customize font styles',
169
- fontFamily: 'Open Sans',
177
+ fontFamily: defaultFontFamily,
170
178
  fontWeight: 400,
171
179
  fontSize: 10,
172
180
  color: '#282828'
@@ -189,7 +197,7 @@ var getDefaultJSON = function getDefaultJSON() {
189
197
  text: 'Flash Deal',
190
198
  content: {
191
199
  sizeType: 'Customize font styles',
192
- fontFamily: 'Open Sans',
200
+ fontFamily: defaultFontFamily,
193
201
  fontWeight: 800,
194
202
  fontSize: 18,
195
203
  color: '#333'
@@ -9,13 +9,11 @@ var _uuid = require("uuid");
9
9
 
10
10
  var _constants = require("../../../../constants");
11
11
 
12
- var _a;
13
-
14
- var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans1';
15
- console.log('window.systemParams', window.systemParams);
16
-
17
12
  var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
13
+ var _a;
14
+
18
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
19
17
  return {
20
18
  id: groupId,
21
19
  image: {
@@ -7,11 +7,16 @@ exports.getDefaultJSON = exports.buttonGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  /**
11
13
  * 获取 text 元组件json
12
14
  */
13
15
  var buttonGroupSourceJSON = function buttonGroupSourceJSON() {
16
+ var _a;
17
+
14
18
  var groupId = (0, _uuid.v4)();
19
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
15
20
  return {
16
21
  id: groupId,
17
22
  button: {
@@ -23,7 +28,7 @@ var buttonGroupSourceJSON = function buttonGroupSourceJSON() {
23
28
  },
24
29
  buttonText: {
25
30
  sizeType: 'Customize font styles',
26
- fontFamily: 'Open Sans',
31
+ fontFamily: defaultFontFamily,
27
32
  fontWeight: 400,
28
33
  fontSize: 14,
29
34
  fontStyle: 'normal',
@@ -7,8 +7,13 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  compId: compId,
14
19
  id: groupId,
@@ -41,7 +46,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
41
46
  text: 'Title of this group',
42
47
  content: {
43
48
  sizeType: 'Customize font styles',
44
- fontFamily: 'Open Sans',
49
+ fontFamily: defaultFontFamily,
45
50
  fontWeight: 600,
46
51
  fontSize: 16,
47
52
  pcFontSize: 42,
@@ -64,7 +69,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
64
69
  text: 'Please enter a description',
65
70
  content: {
66
71
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
72
+ fontFamily: defaultFontFamily,
68
73
  fontWeight: 400,
69
74
  fontSize: 14,
70
75
  pcFontSize: 28,
@@ -106,7 +111,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
106
111
  },
107
112
  buttonText: {
108
113
  sizeType: 'Customize font styles',
109
- fontFamily: 'Open Sans',
114
+ fontFamily: defaultFontFamily,
110
115
  fontWeight: 400,
111
116
  fontSize: 13,
112
117
  pcFontSize: 16,
@@ -143,7 +148,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
143
148
  },
144
149
  buttonText: {
145
150
  sizeType: 'Customize font styles',
146
- fontFamily: 'Open Sans',
151
+ fontFamily: defaultFontFamily,
147
152
  fontWeight: 600,
148
153
  fontSize: 14,
149
154
  fontStyle: 'normal',
@@ -172,7 +177,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
172
177
  },
173
178
  buttonText: {
174
179
  sizeType: 'Customize font styles',
175
- fontFamily: 'Open Sans',
180
+ fontFamily: defaultFontFamily,
176
181
  fontWeight: 600,
177
182
  fontSize: 14,
178
183
  fontStyle: 'normal',
@@ -208,7 +213,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
208
213
  },
209
214
  buttonText: {
210
215
  sizeType: 'Customize font styles',
211
- fontFamily: 'Open Sans',
216
+ fontFamily: defaultFontFamily,
212
217
  fontWeight: 600,
213
218
  fontSize: 14,
214
219
  fontStyle: 'normal',
@@ -7,13 +7,18 @@ exports.getDefaultJSON = exports.ImageTextGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var titleId = (0, _uuid.v4)();
14
18
  var textId = (0, _uuid.v4)();
15
19
  var buttonId = (0, _uuid.v4)();
16
20
  var secButtonId = (0, _uuid.v4)();
21
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
17
22
  return {
18
23
  id: groupId,
19
24
  image: {
@@ -54,7 +59,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
54
59
  text: 'Title of this group',
55
60
  content: {
56
61
  sizeType: 'Customize font styles',
57
- fontFamily: 'Open Sans',
62
+ fontFamily: defaultFontFamily,
58
63
  fontWeight: 600,
59
64
  fontSize: 12,
60
65
  color: '#232F46'
@@ -75,7 +80,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
75
80
  text: 'Please enter a description',
76
81
  content: {
77
82
  sizeType: 'Customize font styles',
78
- fontFamily: 'Open Sans',
83
+ fontFamily: defaultFontFamily,
79
84
  fontWeight: 400,
80
85
  fontSize: 10,
81
86
  color: '#8493AF'
@@ -95,7 +100,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
95
100
  },
96
101
  buttonText: {
97
102
  sizeType: 'Customize font styles',
98
- fontFamily: 'Open Sans',
103
+ fontFamily: defaultFontFamily,
99
104
  fontWeight: 400,
100
105
  fontSize: 10,
101
106
  fontStyle: 'normal',
@@ -131,7 +136,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
131
136
  },
132
137
  buttonText: {
133
138
  sizeType: 'Customize font styles',
134
- fontFamily: 'Open Sans',
139
+ fontFamily: defaultFontFamily,
135
140
  fontWeight: 600,
136
141
  fontSize: 14,
137
142
  fontStyle: 'normal',
@@ -160,7 +165,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
160
165
  },
161
166
  buttonText: {
162
167
  sizeType: 'Customize font styles',
163
- fontFamily: 'Open Sans',
168
+ fontFamily: defaultFontFamily,
164
169
  fontWeight: 400,
165
170
  fontSize: 10,
166
171
  fontStyle: 'normal',
@@ -196,7 +201,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
196
201
  },
197
202
  buttonText: {
198
203
  sizeType: 'Customize font styles',
199
- fontFamily: 'Open Sans',
204
+ fontFamily: defaultFontFamily,
200
205
  fontWeight: 600,
201
206
  fontSize: 14,
202
207
  fontStyle: 'normal',
@@ -249,7 +254,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
249
254
  specialContent: [],
250
255
  text: '',
251
256
  content: {
252
- fontFamily: 'Open Sans',
257
+ fontFamily: defaultFontFamily,
253
258
  fontWeight: 700,
254
259
  fontSize: 28,
255
260
  color: '#232F46',
@@ -270,7 +275,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
270
275
  text: '',
271
276
  content: {
272
277
  sizeType: 'Customize font styles',
273
- fontFamily: 'Open Sans',
278
+ fontFamily: defaultFontFamily,
274
279
  fontWeight: 400,
275
280
  fontSize: 18,
276
281
  color: '#232F46',
@@ -290,7 +295,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
290
295
  },
291
296
  buttonText: {
292
297
  sizeType: 'Customize font styles',
293
- fontFamily: 'Open Sans',
298
+ fontFamily: defaultFontFamily,
294
299
  fontWeight: 600,
295
300
  fontSize: 14,
296
301
  fontStyle: 'normal',
@@ -312,7 +317,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
312
317
  },
313
318
  buttonText: {
314
319
  sizeType: 'Customize font styles',
315
- fontFamily: 'Open Sans',
320
+ fontFamily: defaultFontFamily,
316
321
  fontWeight: 600,
317
322
  fontSize: 14,
318
323
  fontStyle: 'normal',
@@ -340,7 +345,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
340
345
  },
341
346
  buttonText: {
342
347
  sizeType: 'Customize font styles',
343
- fontFamily: 'Open Sans',
348
+ fontFamily: defaultFontFamily,
344
349
  fontWeight: 600,
345
350
  fontSize: 14,
346
351
  fontStyle: 'normal',
@@ -362,7 +367,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
362
367
  },
363
368
  buttonText: {
364
369
  sizeType: 'Customize font styles',
365
- fontFamily: 'Open Sans',
370
+ fontFamily: defaultFontFamily,
366
371
  fontWeight: 600,
367
372
  fontSize: 14,
368
373
  fontStyle: 'normal',