@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,6 +7,8 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var __assign = void 0 && (void 0).__assign || function () {
11
13
  __assign = Object.assign || function (t) {
12
14
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -27,6 +29,9 @@ var __assign = void 0 && (void 0).__assign || function () {
27
29
  * 获取 text 元组件json
28
30
  */
29
31
  var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
32
+ var _a;
33
+
34
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
30
35
  return {
31
36
  id: (0, _uuid.v4)(),
32
37
  open: true,
@@ -35,7 +40,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
35
40
  text: 'Thank you for you subscription',
36
41
  content: {
37
42
  sizeType: 'Customize font styles',
38
- fontFamily: 'Open Sans',
43
+ fontFamily: defaultFontFamily,
39
44
  fontWeight: 400,
40
45
  fontSize: 14,
41
46
  color: '#8493AF'
@@ -57,6 +62,9 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
57
62
 
58
63
 
59
64
  var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
65
+ var _a;
66
+
67
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
60
68
  return {
61
69
  id: (0, _uuid.v4)(),
62
70
  open: true,
@@ -66,7 +74,7 @@ var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
66
74
  },
67
75
  buttonText: {
68
76
  sizeType: 'Customize font styles',
69
- fontFamily: 'Open Sans',
77
+ fontFamily: defaultFontFamily,
70
78
  fontWeight: 600,
71
79
  fontSize: 14,
72
80
  fontStyle: 'normal',
@@ -102,6 +110,9 @@ var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
102
110
  };
103
111
 
104
112
  var getDefaultJSON = function getDefaultJSON() {
113
+ var _a;
114
+
115
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
105
116
  return {
106
117
  id: (0, _uuid.v4)(),
107
118
  type: 'NEWSLETTER',
@@ -112,7 +123,7 @@ var getDefaultJSON = function getDefaultJSON() {
112
123
  placeholder: 'Email Address',
113
124
  content: {
114
125
  sizeType: 'Customize font styles',
115
- fontFamily: 'Open Sans',
126
+ fontFamily: defaultFontFamily,
116
127
  fontWeight: 600,
117
128
  fontSize: 16,
118
129
  color: '#CE1126'
@@ -7,11 +7,16 @@ exports.tagGroupSourceJSON = exports.getDefaultJSON = 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 tagGroupSourceJSON = function tagGroupSourceJSON() {
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: {
@@ -24,7 +29,7 @@ var tagGroupSourceJSON = function tagGroupSourceJSON() {
24
29
  },
25
30
  buttonText: {
26
31
  sizeType: 'Customize font styles',
27
- fontFamily: 'Open Sans',
32
+ fontFamily: defaultFontFamily,
28
33
  fontWeight: 600,
29
34
  fontSize: 12,
30
35
  fontStyle: 'normal',
@@ -7,6 +7,8 @@ exports.textGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var __assign = void 0 && (void 0).__assign || function () {
11
13
  __assign = Object.assign || function (t) {
12
14
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -27,6 +29,9 @@ var __assign = void 0 && (void 0).__assign || function () {
27
29
  * 获取 text 元组件json
28
30
  */
29
31
  var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
32
+ var _a;
33
+
34
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
30
35
  return {
31
36
  id: (0, _uuid.v4)(),
32
37
  open: true,
@@ -35,7 +40,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
35
40
  text: 'Flash Deal',
36
41
  content: {
37
42
  sizeType: 'Customize font styles',
38
- fontFamily: 'Open Sans',
43
+ fontFamily: defaultFontFamily,
39
44
  fontWeight: 600,
40
45
  fontSize: 14,
41
46
  color: '#CE1126'
@@ -53,7 +58,10 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
53
58
  };
54
59
 
55
60
  var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
61
+ var _a;
62
+
56
63
  var groupId = (0, _uuid.v4)();
64
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
57
65
  return {
58
66
  id: groupId,
59
67
  parentId: parentId,
@@ -64,7 +72,7 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
64
72
  text: 'Group Name',
65
73
  content: {
66
74
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
68
76
  fontWeight: 600,
69
77
  fontSize: 22,
70
78
  pcFontSize: 22,
@@ -78,7 +86,7 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
78
86
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
79
87
  content: {
80
88
  sizeType: 'Body 1',
81
- fontFamily: 'Open Sans',
89
+ fontFamily: defaultFontFamily,
82
90
  fontWeight: 400,
83
91
  fontSize: 18,
84
92
  pcFontSize: 18,
@@ -91,7 +99,10 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
91
99
  exports.textGroupSourceJSON = textGroupSourceJSON;
92
100
 
93
101
  var getDefaultJSON = function getDefaultJSON() {
102
+ var _a;
103
+
94
104
  var groupId = (0, _uuid.v4)();
105
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
95
106
  return {
96
107
  id: groupId,
97
108
  type: 'TEXT',
@@ -100,7 +111,7 @@ var getDefaultJSON = function getDefaultJSON() {
100
111
  text: 'Title use, click modify text.',
101
112
  content: {
102
113
  sizeType: 'Customize font styles',
103
- fontFamily: 'Montserrat',
114
+ fontFamily: defaultFontFamily,
104
115
  fontWeight: 600,
105
116
  fontSize: 28,
106
117
  pcFontSize: 68,
@@ -112,7 +123,7 @@ var getDefaultJSON = function getDefaultJSON() {
112
123
  text: 'For the text area, you can enter a subtitle or description',
113
124
  content: {
114
125
  sizeType: 'Title 1',
115
- fontFamily: 'Montserrat',
126
+ fontFamily: defaultFontFamily,
116
127
  fontWeight: 400,
117
128
  fontSize: 16,
118
129
  pcFontSize: 32,
@@ -7,8 +7,13 @@ exports.videoGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
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
  id: groupId,
14
19
  parentId: parentId,
@@ -41,7 +46,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
41
46
  specialContent: [],
42
47
  content: {
43
48
  sizeType: 'Customize font styles',
44
- fontFamily: 'Open Sans',
49
+ fontFamily: defaultFontFamily,
45
50
  fontWeight: 700,
46
51
  fontSize: 16,
47
52
  pcFontSize: 18,
@@ -64,7 +69,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
64
69
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
65
70
  content: {
66
71
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
72
+ fontFamily: defaultFontFamily,
68
73
  fontWeight: 400,
69
74
  fontSize: 13,
70
75
  pcFontSize: 13,
@@ -85,7 +90,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
85
90
  },
86
91
  buttonText: {
87
92
  sizeType: 'Customize font styles',
88
- fontFamily: 'Open Sans',
93
+ fontFamily: defaultFontFamily,
89
94
  fontWeight: 600,
90
95
  fontSize: 12,
91
96
  fontStyle: 'normal',
@@ -126,7 +131,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
126
131
  },
127
132
  buttonText: {
128
133
  sizeType: 'Customize font styles',
129
- fontFamily: 'Open Sans',
134
+ fontFamily: defaultFontFamily,
130
135
  fontWeight: 600,
131
136
  fontSize: 12,
132
137
  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(parentId) {
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
  id: groupId,
14
19
  parentId: parentId,
@@ -21,7 +26,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
21
26
  text: 'Cashback',
22
27
  content: {
23
28
  sizeType: 'Customize font styles',
24
- fontFamily: 'Open Sans',
29
+ fontFamily: defaultFontFamily,
25
30
  fontWeight: 700,
26
31
  fontSize: 18,
27
32
  color: '#fff',
@@ -43,7 +48,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
43
48
  text: 'RM1000',
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 700,
48
53
  fontSize: 38,
49
54
  color: '#fff',
@@ -66,7 +71,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
66
71
  text: 'Make money and shop on Cendol!',
67
72
  content: {
68
73
  sizeType: 'Customize font styles',
69
- fontFamily: 'Open Sans',
74
+ fontFamily: defaultFontFamily,
70
75
  fontWeight: 400,
71
76
  fontSize: 14,
72
77
  color: '#fff',
@@ -91,7 +96,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
91
96
  },
92
97
  buttonText: {
93
98
  sizeType: 'Customize font styles',
94
- fontFamily: 'Open Sans',
99
+ fontFamily: defaultFontFamily,
95
100
  fontWeight: 700,
96
101
  fontSize: 13,
97
102
  fontStyle: 'normal',
@@ -130,7 +135,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
130
135
  text: '',
131
136
  content: {
132
137
  sizeType: 'Customize font styles',
133
- fontFamily: 'Open Sans',
138
+ fontFamily: defaultFontFamily,
134
139
  fontWeight: 400,
135
140
  fontSize: 12,
136
141
  color: '#fff',
@@ -155,7 +160,10 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
155
160
  exports.imagesGroupSourceJSON = imagesGroupSourceJSON;
156
161
 
157
162
  var getDefaultJSON = function getDefaultJSON() {
163
+ var _a;
164
+
158
165
  var groupId = (0, _uuid.v4)();
166
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
159
167
  return {
160
168
  id: groupId,
161
169
  type: 'WALLET',
@@ -168,7 +176,7 @@ var getDefaultJSON = function getDefaultJSON() {
168
176
  text: 'Wallet',
169
177
  content: {
170
178
  sizeType: 'Customize font styles',
171
- fontFamily: 'Open Sans',
179
+ fontFamily: defaultFontFamily,
172
180
  fontWeight: 600,
173
181
  fontSize: 18,
174
182
  pcFontSize: 38,
@@ -9,6 +9,8 @@ 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 walletDataList = [{
13
15
  name: 'Saldo',
14
16
  icon: _base.walletSaldoIcon,
@@ -24,7 +26,10 @@ var walletDataList = [{
24
26
  }];
25
27
 
26
28
  var getDefaultJSON = function getDefaultJSON() {
29
+ var _a;
30
+
27
31
  var groupId = (0, _uuid.v4)();
32
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
28
33
  return {
29
34
  id: groupId,
30
35
  type: 'WALLET_NURI',
@@ -52,7 +57,7 @@ var getDefaultJSON = function getDefaultJSON() {
52
57
  text: item.name,
53
58
  content: {
54
59
  sizeType: 'Customize font styles',
55
- fontFamily: 'Open Sans',
60
+ fontFamily: defaultFontFamily,
56
61
  fontWeight: 400,
57
62
  fontSize: 11,
58
63
  color: '#232F46',
@@ -74,7 +79,7 @@ var getDefaultJSON = function getDefaultJSON() {
74
79
  text: '****',
75
80
  content: {
76
81
  sizeType: 'Customize font styles',
77
- fontFamily: 'Open Sans',
82
+ fontFamily: defaultFontFamily,
78
83
  fontWeight: 700,
79
84
  fontSize: 14,
80
85
  color: '#232F46',
@@ -96,7 +101,7 @@ var getDefaultJSON = function getDefaultJSON() {
96
101
  text: item.text,
97
102
  content: {
98
103
  sizeType: 'Customize font styles',
99
- fontFamily: 'Open Sans',
104
+ fontFamily: defaultFontFamily,
100
105
  fontWeight: 400,
101
106
  fontSize: 11,
102
107
  color: '#232F46',
@@ -268,12 +268,8 @@ function (_super) {
268
268
  };
269
269
 
270
270
  _this.clickJump = function (title) {
271
- if (title === 'Saldo') {
272
- (0, _coreUtil.clickUrl)('/social-commerce/my-earnings');
273
- } else if (title === 'Koin') {
274
- (0, _coreUtil.clickUrl)('/my-points');
275
- } else if (title === 'Voucher') {
276
- (0, _coreUtil.clickUrl)('/my-coupon');
271
+ if (title !== 'Voucher') {
272
+ (0, _coreUtil.clickUrl)('/main/my-commission');
277
273
  }
278
274
  };
279
275
 
@@ -15,8 +15,6 @@ var _currencyUtil = require("../../../../utils/currencyUtil");
15
15
 
16
16
  var _common = require("../../../../common");
17
17
 
18
- var _ImageLabel = _interopRequireDefault(require("../ImageLabel"));
19
-
20
18
  var _components = require("../../../../meta-comp/components");
21
19
 
22
20
  var _locale = require("../../../../locale");
@@ -119,23 +117,22 @@ function (_super) {
119
117
  }
120
118
 
121
119
  ProductItem.prototype.render = function () {
122
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
123
-
124
- var _m = this.props,
125
- data = _m.data,
126
- panelProps = _m.panelProps,
127
- onItemClick = _m.onItemClick,
128
- showProName = _m.showProName,
129
- showProgress = _m.showProgress,
130
- intelligentType = _m.intelligentType,
131
- fixHeight = _m.fixHeight,
132
- layout = _m.layout,
133
- imgHeight = _m.imgHeight,
134
- imgWidth = _m.imgWidth,
135
- showDiscountTag = _m.showDiscountTag,
136
- isWill = _m.isWill,
137
- rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag", "isWill"]); // const promotions = getPromotionList(data);
138
-
120
+ var _a, _b, _c, _d, _e, _f, _g, _h;
121
+
122
+ var _j = this.props,
123
+ data = _j.data,
124
+ panelProps = _j.panelProps,
125
+ onItemClick = _j.onItemClick,
126
+ showProName = _j.showProName,
127
+ showProgress = _j.showProgress,
128
+ intelligentType = _j.intelligentType,
129
+ fixHeight = _j.fixHeight,
130
+ layout = _j.layout,
131
+ imgHeight = _j.imgHeight,
132
+ imgWidth = _j.imgWidth,
133
+ showDiscountTag = _j.showDiscountTag,
134
+ isWill = _j.isWill,
135
+ rest = __rest(_j, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag", "isWill"]);
139
136
 
140
137
  var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
141
138
  var oldPrice = null;
@@ -143,22 +140,12 @@ function (_super) {
143
140
  if (data.specialPrice !== null) {
144
141
  price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.specialPrice);
145
142
  oldPrice = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
146
- } // const discount = Number(data.discountPercent) || 0;
147
-
143
+ }
148
144
 
149
145
  var salePercent = Number(data.salePercent) / 100 || 0;
150
146
  var imgStyle = {};
151
147
  if (imgWidth) imgStyle.width = imgWidth;
152
148
  if (imgHeight) imgStyle.height = imgHeight;
153
- var imgLabels = ((_a = data.labels) === null || _a === void 0 ? void 0 : _a.filter(function (f) {
154
- return f.position !== '6' && f.position !== '7';
155
- })) || [];
156
- var prodLabels = ((_b = data.labels) === null || _b === void 0 ? void 0 : _b.filter(function (f) {
157
- return f.position === '6';
158
- })) || [];
159
- var priceLabels = ((_c = data.labels) === null || _c === void 0 ? void 0 : _c.filter(function (f) {
160
- return f.position === '7';
161
- })) || [];
162
149
  var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
163
150
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
164
151
  className: (0, _classnames["default"])('monpay-product-item-wrap', {
@@ -178,10 +165,7 @@ function (_super) {
178
165
  lazy: true,
179
166
  src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent),
180
167
  style: imgStyle
181
- }), /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
182
- labels: imgLabels,
183
- small: true
184
- }), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
168
+ }), (((_a = panelProps.discount) === null || _a === void 0 ? void 0 : _a.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
185
169
  className: "discount-tag"
186
170
  }, isWill ? (0, _locale.i18n)('COMING_SOON') : data.discountPercent + "% " + (0, _locale.i18n)('OFF'))), /*#__PURE__*/_react["default"].createElement("div", {
187
171
  className: "content-wrap"
@@ -189,10 +173,7 @@ function (_super) {
189
173
  className: "product-name-wrap"
190
174
  }, /*#__PURE__*/_react["default"].createElement("div", {
191
175
  className: "box"
192
- }, prodLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
193
- labels: prodLabels,
194
- small: true
195
- }), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
176
+ }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
196
177
  data: __assign(__assign({}, panelProps.productName), {
197
178
  text: data.offerName
198
179
  }),
@@ -205,9 +186,6 @@ function (_super) {
205
186
  text: price
206
187
  }),
207
188
  readonly: true
208
- }), priceLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
209
- labels: priceLabels,
210
- small: true
211
189
  })), panelProps.salesPrice.open && /*#__PURE__*/_react["default"].createElement("div", {
212
190
  className: "price-sold-wrap"
213
191
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -223,7 +201,7 @@ function (_super) {
223
201
  }
224
202
  }))), /*#__PURE__*/_react["default"].createElement("div", {
225
203
  className: "rate-sold-wrap"
226
- }, ((_e = panelProps.evaluationScore) === null || _e === void 0 ? void 0 : _e.open) && /*#__PURE__*/_react["default"].createElement("div", {
204
+ }, ((_b = panelProps.evaluationScore) === null || _b === void 0 ? void 0 : _b.open) && /*#__PURE__*/_react["default"].createElement("div", {
227
205
  className: "evaluation-score"
228
206
  }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
229
207
  color: "#FF8650",
@@ -235,9 +213,9 @@ function (_super) {
235
213
  text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
236
214
  }),
237
215
  readonly: true
238
- })), ((_f = panelProps.evaluationScore) === null || _f === void 0 ? void 0 : _f.open) && ((_g = panelProps.sold) === null || _g === void 0 ? void 0 : _g.open) && /*#__PURE__*/_react["default"].createElement("div", {
216
+ })), ((_c = panelProps.evaluationScore) === null || _c === void 0 ? void 0 : _c.open) && ((_d = panelProps.sold) === null || _d === void 0 ? void 0 : _d.open) && /*#__PURE__*/_react["default"].createElement("div", {
239
217
  className: "line"
240
- }), ((_h = panelProps.sold) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement("div", {
218
+ }), ((_e = panelProps.sold) === null || _e === void 0 ? void 0 : _e.open) && /*#__PURE__*/_react["default"].createElement("div", {
241
219
  className: "sold"
242
220
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
243
221
  data: __assign(__assign({}, panelProps.sold), {
@@ -260,15 +238,15 @@ function (_super) {
260
238
  }, renderDiscount(m).text));
261
239
  })), showProgress && /*#__PURE__*/_react["default"].createElement("div", {
262
240
  className: "progress-wrap"
263
- }, ((_j = panelProps.salesProgress) === null || _j === void 0 ? void 0 : _j.open) && /*#__PURE__*/_react["default"].createElement("div", {
241
+ }, ((_f = panelProps.salesProgress) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement("div", {
264
242
  className: "progress-container"
265
243
  }, /*#__PURE__*/_react["default"].createElement("div", {
266
244
  className: "progress",
267
245
  style: {
268
246
  width: salePercent + "%",
269
- backgroundColor: (_k = panelProps.salesProgress) === null || _k === void 0 ? void 0 : _k.color
247
+ backgroundColor: (_g = panelProps.salesProgress) === null || _g === void 0 ? void 0 : _g.color
270
248
  }
271
- })), ((_l = panelProps.stock) === null || _l === void 0 ? void 0 : _l.open) && /*#__PURE__*/_react["default"].createElement("div", {
249
+ })), ((_h = panelProps.stock) === null || _h === void 0 ? void 0 : _h.open) && /*#__PURE__*/_react["default"].createElement("div", {
272
250
  className: "text"
273
251
  }, data.saleNum || 0, "/", data.stockNum || 0, " ", (0, _locale.i18n)('STOCK')))));
274
252
  };
@@ -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: 'BARGAIN',
@@ -28,7 +33,7 @@ var getDefaultJSON = function getDefaultJSON() {
28
33
  text: 'Refer and Bargain',
29
34
  content: {
30
35
  sizeType: 'Customize font styles',
31
- fontFamily: 'Open Sans',
36
+ fontFamily: defaultFontFamily,
32
37
  fontWeight: 700,
33
38
  fontSize: 14,
34
39
  color: '#FFFFFF'
@@ -54,7 +59,7 @@ var getDefaultJSON = function getDefaultJSON() {
54
59
  },
55
60
  buttonText: {
56
61
  sizeType: 'Customize font styles',
57
- fontFamily: 'Open Sans',
62
+ fontFamily: defaultFontFamily,
58
63
  fontWeight: 600,
59
64
  fontSize: 12,
60
65
  fontStyle: 'normal',
@@ -102,7 +107,7 @@ var getDefaultJSON = function getDefaultJSON() {
102
107
  },
103
108
  buttonText: {
104
109
  sizeType: 'Customize font styles',
105
- fontFamily: 'Open Sans',
110
+ fontFamily: defaultFontFamily,
106
111
  fontWeight: 600,
107
112
  fontSize: 8,
108
113
  fontStyle: 'normal',
@@ -142,7 +147,7 @@ var getDefaultJSON = function getDefaultJSON() {
142
147
  text: '',
143
148
  content: {
144
149
  sizeType: 'Customize font styles',
145
- fontFamily: 'Open Sans',
150
+ fontFamily: defaultFontFamily,
146
151
  fontWeight: 500,
147
152
  fontSize: 14,
148
153
  color: '#2C2C2C'
@@ -166,7 +171,7 @@ var getDefaultJSON = function getDefaultJSON() {
166
171
  text: '',
167
172
  content: {
168
173
  sizeType: 'Customize font styles',
169
- fontFamily: 'Open Sans',
174
+ fontFamily: defaultFontFamily,
170
175
  fontWeight: 600,
171
176
  fontSize: 14,
172
177
  color: '#CE1126'
@@ -190,7 +195,7 @@ var getDefaultJSON = function getDefaultJSON() {
190
195
  text: '',
191
196
  content: {
192
197
  sizeType: 'Customize font styles',
193
- fontFamily: 'Open Sans',
198
+ fontFamily: defaultFontFamily,
194
199
  fontWeight: 500,
195
200
  fontSize: 10,
196
201
  color: '#929292'
@@ -7,8 +7,13 @@ exports.getDefaultJSON = exports.CommonFunctionsGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(text, url) {
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
  id: groupId,
14
19
  title: {
@@ -20,7 +25,7 @@ var CommonFunctionsGroupSourceJSON = function CommonFunctionsGroupSourceJSON(tex
20
25
  text: text || 'Chat With Us',
21
26
  content: {
22
27
  sizeType: 'Customize font styles',
23
- fontFamily: 'Open Sans',
28
+ fontFamily: defaultFontFamily,
24
29
  fontWeight: 600,
25
30
  fontSize: 14,
26
31
  color: '#2C2C2C',
@@ -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: '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: 14,
34
39
  color: '#2C2C2C'
@@ -54,7 +59,7 @@ var getDefaultJSON = function getDefaultJSON() {
54
59
  },
55
60
  buttonText: {
56
61
  sizeType: 'Customize font styles',
57
- fontFamily: 'Open Sans',
62
+ fontFamily: defaultFontFamily,
58
63
  fontWeight: 600,
59
64
  fontSize: 12,
60
65
  fontStyle: 'normal',
@@ -106,7 +111,7 @@ var getDefaultJSON = function getDefaultJSON() {
106
111
  },
107
112
  buttonText: {
108
113
  sizeType: 'Customize font styles',
109
- fontFamily: 'Open Sans',
114
+ fontFamily: defaultFontFamily,
110
115
  fontWeight: 600,
111
116
  fontSize: 8,
112
117
  fontStyle: 'normal',
@@ -146,7 +151,7 @@ var getDefaultJSON = function getDefaultJSON() {
146
151
  text: 'Flash Deal',
147
152
  content: {
148
153
  sizeType: 'Customize font styles',
149
- fontFamily: 'Open Sans',
154
+ fontFamily: defaultFontFamily,
150
155
  fontWeight: 500,
151
156
  fontSize: 14,
152
157
  color: '#2C2C2C'
@@ -170,7 +175,7 @@ var getDefaultJSON = function getDefaultJSON() {
170
175
  text: 'Flash Deal',
171
176
  content: {
172
177
  sizeType: 'Customize font styles',
173
- fontFamily: 'Open Sans',
178
+ fontFamily: defaultFontFamily,
174
179
  fontWeight: 600,
175
180
  fontSize: 14,
176
181
  color: '#CE1126'
@@ -194,7 +199,7 @@ var getDefaultJSON = function getDefaultJSON() {
194
199
  text: 'Flash Deal',
195
200
  content: {
196
201
  sizeType: 'Customize font styles',
197
- fontFamily: 'Open Sans',
202
+ fontFamily: defaultFontFamily,
198
203
  fontWeight: 500,
199
204
  fontSize: 10,
200
205
  color: '#929292'