@fonixtree/magic-design 2.0.144 → 2.0.151

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 (59) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/common/LinkModal/AffiliatePlatform/index.js +3 -3
  3. package/es/common/LinkModal/AffiliateProductTable/index.js +6 -6
  4. package/es/common/LinkModal/AffiliateStore/index.js +5 -5
  5. package/es/common/LinkModal/BundleCampaign/index.js +10 -10
  6. package/es/common/LinkModal/CatgTable/index.js +3 -1
  7. package/es/common/LinkModal/CouponTable/index.js +5 -3
  8. package/es/common/LinkModal/CustomTable/index.js +3 -1
  9. package/es/common/LinkModal/FilteredProductModal/index.js +12 -12
  10. package/es/common/LinkModal/FunctionTable/index.js +3 -1
  11. package/es/common/LinkModal/InterestedMerchants/index.js +3 -3
  12. package/es/common/LinkModal/InterestedProducts/index.js +3 -3
  13. package/es/common/LinkModal/MerchantStory/index.js +3 -3
  14. package/es/common/LinkModal/MiniAppApi/index.js +5 -3
  15. package/es/common/LinkModal/MiniAppTable/index.js +5 -3
  16. package/es/common/LinkModal/MissionDetail/index.js +3 -3
  17. package/es/common/LinkModal/ProductDetailPage/index.js +8 -8
  18. package/es/common/LinkModal/StoreCatgTable/index.js +3 -1
  19. package/es/common/LinkModal/StoreTable/index.js +3 -3
  20. package/es/composite-comp/bol/components/Wallet/mobile/index.js +11 -9
  21. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +5 -5
  22. package/es/composite-comp/common/components/MonpayProductItem/index.js +3 -2
  23. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +1 -0
  24. package/es/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
  25. package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +3 -3
  26. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +2 -2
  27. package/es/locale/en/en.json +37 -7
  28. package/es/locale/es/es.json +37 -7
  29. package/es/locale/mn/mn.json +38 -8
  30. package/lib/assets/fonts/.DS_Store +0 -0
  31. package/lib/common/LinkModal/AffiliatePlatform/index.js +3 -3
  32. package/lib/common/LinkModal/AffiliateProductTable/index.js +6 -6
  33. package/lib/common/LinkModal/AffiliateStore/index.js +5 -5
  34. package/lib/common/LinkModal/BundleCampaign/index.js +10 -10
  35. package/lib/common/LinkModal/CatgTable/index.js +3 -1
  36. package/lib/common/LinkModal/CouponTable/index.js +5 -3
  37. package/lib/common/LinkModal/CustomTable/index.js +3 -1
  38. package/lib/common/LinkModal/FilteredProductModal/index.js +12 -12
  39. package/lib/common/LinkModal/FunctionTable/index.js +3 -1
  40. package/lib/common/LinkModal/InterestedMerchants/index.js +3 -3
  41. package/lib/common/LinkModal/InterestedProducts/index.js +3 -3
  42. package/lib/common/LinkModal/MerchantStory/index.js +3 -3
  43. package/lib/common/LinkModal/MiniAppApi/index.js +5 -3
  44. package/lib/common/LinkModal/MiniAppTable/index.js +5 -3
  45. package/lib/common/LinkModal/MissionDetail/index.js +3 -3
  46. package/lib/common/LinkModal/ProductDetailPage/index.js +8 -8
  47. package/lib/common/LinkModal/StoreCatgTable/index.js +3 -1
  48. package/lib/common/LinkModal/StoreTable/index.js +3 -3
  49. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +11 -9
  50. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +5 -5
  51. package/lib/composite-comp/common/components/MonpayProductItem/index.js +3 -2
  52. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +1 -0
  53. package/lib/composite-comp/monpay/components/Bundle/mobile/BundleItem/index.less +1 -0
  54. package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +3 -3
  55. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +2 -2
  56. package/lib/locale/en/en.json +37 -7
  57. package/lib/locale/es/es.json +37 -7
  58. package/lib/locale/mn/mn.json +38 -8
  59. package/package.json +1 -1
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd4");
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
17
 
16
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -207,7 +209,7 @@ function CustomTable(props) {
207
209
  });
208
210
  }, []);
209
211
  var columns = [{
210
- title: 'Page Name',
212
+ title: (0, _locale.i18n)('PAGE_NAME'),
211
213
  dataIndex: 'pageName'
212
214
  }];
213
215
  var rowSelection = {
@@ -298,7 +298,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
298
298
  };
299
299
 
300
300
  var columns = [{
301
- title: 'Image',
301
+ title: (0, _locale.i18n)('IMAGE'),
302
302
  dataIndex: 'productImageUrl',
303
303
  key: 'imgUrl',
304
304
  width: 100,
@@ -311,12 +311,12 @@ var FilteredProductModal = function FilteredProductModal(props) {
311
311
  });
312
312
  }
313
313
  }, {
314
- title: 'Offer Name',
314
+ title: (0, _locale.i18n)('OFFER_NAME'),
315
315
  dataIndex: 'offerName',
316
316
  key: 'offerName',
317
317
  ellipsis: true
318
318
  }, {
319
- title: 'Price',
319
+ title: (0, _locale.i18n)('PRICE'),
320
320
  dataIndex: 'salesPrice',
321
321
  key: 'salesPrice',
322
322
  render: function render(salesPrice) {
@@ -327,12 +327,12 @@ var FilteredProductModal = function FilteredProductModal(props) {
327
327
  }, price);
328
328
  }
329
329
  }, {
330
- title: 'Brand',
330
+ title: (0, _locale.i18n)('BRAND'),
331
331
  dataIndex: 'brandName',
332
332
  key: 'brandName',
333
333
  ellipsis: true
334
334
  }, {
335
- title: 'Store',
335
+ title: (0, _locale.i18n)('STORE'),
336
336
  dataIndex: 'storeName',
337
337
  key: 'storeName',
338
338
  ellipsis: true
@@ -516,7 +516,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
516
516
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
517
517
  layout: "vertical"
518
518
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
519
- label: "Category"
519
+ label: (0, _locale.i18n)('CATEGORY')
520
520
  }, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect // allowClear
521
521
  , {
522
522
  dropdownStyle: {
@@ -533,7 +533,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
533
533
  treeDefaultExpandAll: true,
534
534
  value: tValue
535
535
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
536
- label: "Brand"
536
+ label: (0, _locale.i18n)('BRAND')
537
537
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
538
538
  defaultValue: [],
539
539
  maxTagCount: 2,
@@ -551,7 +551,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
551
551
  value: v.brandName
552
552
  }, v.brandName);
553
553
  }))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
554
- label: "Store"
554
+ label: (0, _locale.i18n)('STORE')
555
555
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
556
556
  className: "inputStyle",
557
557
  defaultValue: [],
@@ -569,7 +569,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
569
569
  value: v.storeId
570
570
  }, v.storeName);
571
571
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
572
- label: "Label"
572
+ label: (0, _locale.i18n)('LABEL')
573
573
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
574
574
  defaultValue: [],
575
575
  onChange: handleLabelChange,
@@ -582,7 +582,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
582
582
  value: v.labelName
583
583
  }, v.labelName);
584
584
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
585
- label: "Price"
585
+ label: (0, _locale.i18n)('PRICE')
586
586
  }, /*#__PURE__*/_react["default"].createElement(InputGroup, {
587
587
  compact: true
588
588
  }, /*#__PURE__*/_react["default"].createElement(_antd.InputNumber, {
@@ -616,7 +616,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
616
616
  },
617
617
  value: maximum
618
618
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
619
- label: "Product Name"
619
+ label: (0, _locale.i18n)('PRODUCT_NAME')
620
620
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
621
621
  onChange: function onChange(e) {
622
622
  setProductName(e.currentTarget.value);
@@ -625,7 +625,7 @@ var FilteredProductModal = function FilteredProductModal(props) {
625
625
  size: "small",
626
626
  value: productName
627
627
  })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
628
- label: "Promotions"
628
+ label: (0, _locale.i18n)('PROMOTIONS')
629
629
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
630
630
  defaultValue: [],
631
631
  onChange: function onChange(value, node) {
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd4");
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
17
 
16
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -174,7 +176,7 @@ function FunctionTable(props) {
174
176
  setLoading = _b[1];
175
177
 
176
178
  var columns = [{
177
- title: 'Page Name',
179
+ title: (0, _locale.i18n)('PAGE_NAME'),
178
180
  dataIndex: 'urlName'
179
181
  }];
180
182
  var rowSelection = {
@@ -227,10 +227,10 @@ function InterestedMerchants(props) {
227
227
  queryData(paginationParams);
228
228
  }, []);
229
229
  var columns = [{
230
- title: 'InterestName',
230
+ title: (0, _locale.i18n)('INTEREST_NAME'),
231
231
  dataIndex: 'interestName'
232
232
  }, {
233
- title: 'Logo',
233
+ title: (0, _locale.i18n)('LOGO'),
234
234
  dataIndex: 'logo',
235
235
  render: function render(val) {
236
236
  return /*#__PURE__*/_react["default"].createElement("img", {
@@ -274,7 +274,7 @@ function InterestedMerchants(props) {
274
274
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
275
275
  span: 16
276
276
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
277
- label: "Interest Name"
277
+ label: (0, _locale.i18n)('INTEREST_NAME')
278
278
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
279
279
  onChange: function onChange(e) {
280
280
  return setInterestName(e.target.value);
@@ -227,10 +227,10 @@ function InterestedMerchants(props) {
227
227
  queryData(paginationParams);
228
228
  }, []);
229
229
  var columns = [{
230
- title: 'InterestName',
230
+ title: (0, _locale.i18n)('INTEREST_NAME'),
231
231
  dataIndex: 'interestName'
232
232
  }, {
233
- title: 'Logo',
233
+ title: (0, _locale.i18n)('LOGO'),
234
234
  dataIndex: 'logo',
235
235
  render: function render(val) {
236
236
  return /*#__PURE__*/_react["default"].createElement("img", {
@@ -274,7 +274,7 @@ function InterestedMerchants(props) {
274
274
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
275
275
  span: 16
276
276
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
277
- label: "Interest Name"
277
+ label: (0, _locale.i18n)('INTEREST_NAME')
278
278
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
279
279
  onChange: function onChange(e) {
280
280
  return setInterestName(e.target.value);
@@ -229,10 +229,10 @@ function MerchantStory(props) {
229
229
  queryData(paginationParams);
230
230
  }, []);
231
231
  var columns = [{
232
- title: 'StoreName',
232
+ title: (0, _locale.i18n)('STORE_NAME'),
233
233
  dataIndex: 'storeName'
234
234
  }, {
235
- title: 'Logo',
235
+ title: (0, _locale.i18n)('LOGO'),
236
236
  dataIndex: 'storeLogoUrl',
237
237
  render: function render(val) {
238
238
  return /*#__PURE__*/_react["default"].createElement("img", {
@@ -276,7 +276,7 @@ function MerchantStory(props) {
276
276
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
277
277
  span: 16
278
278
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
279
- label: "Store Name"
279
+ label: (0, _locale.i18n)('STORE_NAME')
280
280
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
281
281
  onChange: function onChange(e) {
282
282
  return setStoreName(e.target.value);
@@ -11,6 +11,8 @@ var _antd = require("antd4");
11
11
 
12
12
  var _const = require("./const");
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
17
 
16
18
  var Search = _antd.Input.Search;
@@ -18,10 +20,10 @@ var Search = _antd.Input.Search;
18
20
  function MiniAppApi(_a) {
19
21
  var _onChange = _a.onChange;
20
22
  var columns = [{
21
- title: 'Name',
23
+ title: (0, _locale.i18n)('NAME'),
22
24
  dataIndex: 'title'
23
25
  }, {
24
- title: 'Features',
26
+ title: (0, _locale.i18n)('FEATURES'),
25
27
  dataIndex: 'description'
26
28
  }];
27
29
  var rowSelection = {
@@ -45,7 +47,7 @@ function MiniAppApi(_a) {
45
47
  }, /*#__PURE__*/_react["default"].createElement(Search, {
46
48
  enterButton: true,
47
49
  onSearch: function onSearch() {},
48
- placeholder: "Api Name"
50
+ placeholder: (0, _locale.i18n)('API_NAME')
49
51
  })), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
50
52
  bordered: false,
51
53
  columns: columns,
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd4");
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
17
 
16
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -203,7 +205,7 @@ function CustomTable(props) {
203
205
  });
204
206
  }, []);
205
207
  var columns = [{
206
- title: 'Logo',
208
+ title: (0, _locale.i18n)('LOGO'),
207
209
  dataIndex: 'logo',
208
210
  render: function render(value) {
209
211
  return /*#__PURE__*/_react["default"].createElement("img", {
@@ -216,10 +218,10 @@ function CustomTable(props) {
216
218
  });
217
219
  }
218
220
  }, {
219
- title: 'Store Name',
221
+ title: (0, _locale.i18n)('STORE_NAME'),
220
222
  dataIndex: 'storeName'
221
223
  }, {
222
- title: 'App Name',
224
+ title: (0, _locale.i18n)('APP_NAME'),
223
225
  dataIndex: 'programName'
224
226
  }];
225
227
  var rowSelection = {
@@ -227,13 +227,13 @@ function MissionDetail(props) {
227
227
  queryData(paginationParams);
228
228
  }, []);
229
229
  var columns = [{
230
- title: 'Mission Name',
230
+ title: (0, _locale.i18n)('MISSION_NAME'),
231
231
  dataIndex: 'taskName'
232
232
  }, {
233
- title: 'EffDate',
233
+ title: (0, _locale.i18n)('EFFDATE'),
234
234
  dataIndex: 'effDate'
235
235
  }, {
236
- title: 'ExpDate',
236
+ title: (0, _locale.i18n)('EXPDATE'),
237
237
  dataIndex: 'expDate'
238
238
  }];
239
239
  var rowSelection = {
@@ -243,7 +243,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
243
243
  setPaginationParams = _m[1];
244
244
 
245
245
  var columns = [{
246
- title: 'Image',
246
+ title: (0, _locale.i18n)('IMAGE'),
247
247
  dataIndex: 'productImageUrl',
248
248
  width: 80,
249
249
  render: function render(url) {
@@ -255,15 +255,15 @@ var ProductDetailPage = function ProductDetailPage(props) {
255
255
  });
256
256
  }
257
257
  }, {
258
- title: 'Product Name',
258
+ title: (0, _locale.i18n)('PRODUCT_NAME'),
259
259
  dataIndex: 'productName',
260
260
  ellipsis: true
261
261
  }, {
262
- title: 'SKU',
262
+ title: (0, _locale.i18n)('SKU'),
263
263
  dataIndex: 'attrValues',
264
264
  ellipsis: true
265
265
  }, {
266
- title: 'Store',
266
+ title: (0, _locale.i18n)('STORE'),
267
267
  dataIndex: 'storeName',
268
268
  width: 150,
269
269
  ellipsis: true
@@ -467,7 +467,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
467
467
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
468
468
  span: 9
469
469
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
470
- label: "Product Name"
470
+ label: (0, _locale.i18n)('PRODUCT_NAME')
471
471
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
472
472
  onChange: function onChange(e) {
473
473
  return setProductName(e.target.value);
@@ -477,7 +477,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
477
477
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
478
478
  span: 9
479
479
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
480
- label: proType === 'spu' ? 'SPU Code' : 'SKU Code'
480
+ label: proType === 'spu' ? (0, _locale.i18n)('SPU_CODE') : (0, _locale.i18n)('SKU_CODE')
481
481
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
482
482
  onChange: function onChange(e) {
483
483
  return setProductCode(e.target.value);
@@ -487,7 +487,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
487
487
  }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
488
488
  span: 9
489
489
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
490
- label: "Brand"
490
+ label: (0, _locale.i18n)('BRAND')
491
491
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
492
492
  defaultValue: [],
493
493
  maxTagCount: 2,
@@ -507,7 +507,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
507
507
  })))), (0, _businessUtil.isPlatform)() && /*#__PURE__*/_react["default"].createElement(_antd.Col, {
508
508
  span: 9
509
509
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
510
- label: "Store"
510
+ label: (0, _locale.i18n)('STORE')
511
511
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
512
512
  defaultValue: [],
513
513
  onChange: function onChange(value) {
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _antd = require("antd4");
13
13
 
14
+ var _locale = require("../../../locale");
15
+
14
16
  var _businessUtil = require("../../../utils/businessUtil");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -204,7 +206,7 @@ function StoreCatgTable(props) {
204
206
  queryCategory();
205
207
  }, []);
206
208
  var columns = [{
207
- title: 'Category',
209
+ title: (0, _locale.i18n)('CATEGORY'),
208
210
  dataIndex: 'catgName',
209
211
  render: function render(catgName) {
210
212
  return /*#__PURE__*/_react["default"].createElement("span", {
@@ -229,7 +229,7 @@ function StoreTable(props) {
229
229
  queryStore(paginationParams);
230
230
  }, []);
231
231
  var columns = [{
232
- title: 'Logo',
232
+ title: (0, _locale.i18n)('LOGO'),
233
233
  dataIndex: 'storeLogoUrl',
234
234
  render: function render(val) {
235
235
  return /*#__PURE__*/_react["default"].createElement("img", {
@@ -242,7 +242,7 @@ function StoreTable(props) {
242
242
  });
243
243
  }
244
244
  }, {
245
- title: 'StoreName',
245
+ title: (0, _locale.i18n)('STORE_NAME'),
246
246
  dataIndex: 'storeName'
247
247
  }];
248
248
  var rowSelection = {
@@ -276,7 +276,7 @@ function StoreTable(props) {
276
276
  }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
277
277
  span: 12
278
278
  }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
279
- label: "Store"
279
+ label: (0, _locale.i18n)('STORE')
280
280
  }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
281
281
  onChange: function onChange(e) {
282
282
  return setStoreName(e.target.value);
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
+ var _locale = require("../../../../../locale");
13
+
12
14
  var _components = require("../../../../../meta-comp/components");
13
15
 
14
16
  var _mobx = require("../../../../../mobx");
@@ -271,26 +273,26 @@ function (_super) {
271
273
  });
272
274
  this.setState({
273
275
  userWalletData: (_b = {}, _b[_constants.walletType.BNPL] = {
274
- amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : 'APPLY',
276
+ amount: userCreditResps === null ? '****' : bnplObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(bnplObj.availableAmount) : (0, _locale.i18n)('APPLY'),
275
277
  show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(bnplObj === null || bnplObj === void 0 ? void 0 : bnplObj.state)
276
278
  }, _b[_constants.walletType.CREDIT] = {
277
- amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : 'APPLY',
279
+ amount: userCreditResps === null ? '****' : creditObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(creditObj.availableAmount) : (0, _locale.i18n)('APPLY'),
278
280
  show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(creditObj === null || creditObj === void 0 ? void 0 : creditObj.state)
279
281
  }, _b[_constants.walletType.B2B] = {
280
- amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : 'APPLY',
281
- text: B2BObj ? 'Add more products to your shop!' : '',
282
- btnText: B2BObj ? 'Procure Product' : '',
282
+ amount: userCreditResps === null ? '****' : B2BObj ? (0, _currencyUtil.formatCurrencyWithSymbol)(B2BObj.availableAmount) : (0, _locale.i18n)('APPLY'),
283
+ text: B2BObj ? (0, _locale.i18n)('ADD_MORE_PRODUCTS_TO_YOUR_SHOP') : '',
284
+ btnText: B2BObj ? (0, _locale.i18n)('PROCURE_PRODUCT') : '',
283
285
  show: userCreditResps === null || [_constants.CREDIT_STATE.APPROVED.KEY].includes(B2BObj === null || B2BObj === void 0 ? void 0 : B2BObj.state)
284
286
  }, _b[_constants.walletType.CASHBACK] = {
285
287
  amount: userCashbackValues === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userCashbackValues),
286
288
  show: true
287
289
  }, _b[_constants.walletType.BALANCE] = {
288
290
  amount: userBalance === null ? '****' : (0, _currencyUtil.formatCurrencyWithSymbol)(userBalance),
289
- btnText: userBalance ? 'Social Commerce' : '',
291
+ btnText: userBalance ? (0, _locale.i18n)('SOCIAL_COMMERCE') : '',
290
292
  show: true
291
293
  }, _b[_constants.walletType.CENDUIT] = {
292
294
  amount: userPoint === null ? '****' : userPoint,
293
- btnText: userPoint ? 'CenDuit Mall' : '',
295
+ btnText: userPoint ? (0, _locale.i18n)('CENDUIT_MALL') : '',
294
296
  show: true
295
297
  }, _b)
296
298
  }, function () {
@@ -444,7 +446,7 @@ function (_super) {
444
446
  }
445
447
  }
446
448
 
447
- item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) || 'Make money and shop on Cendol!';
449
+ item.text.text = ((_a = userWalletData[item.sourceType]) === null || _a === void 0 ? void 0 : _a.text) || (0, _locale.i18n)('MAKE_MONEY_AND_SHOP_ON_CENDOL');
448
450
  return /*#__PURE__*/_react["default"].createElement("div", {
449
451
  className: "text-content",
450
452
  style: _bgStyle
@@ -475,7 +477,7 @@ function (_super) {
475
477
  }), ((_f = item.button) === null || _f === void 0 ? void 0 : _f.open) && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
476
478
  className: "wallet-btn",
477
479
  data: __assign(__assign({}, item.button), {
478
- text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) || 'Lets Go!'
480
+ text: ((_g = userWalletData[item.sourceType]) === null || _g === void 0 ? void 0 : _g.btnText) || (0, _locale.i18n)('LETS_GO')
479
481
  }),
480
482
  GAData: __assign(__assign({}, GAData), {
481
483
  groupId: item.id,
@@ -132,17 +132,17 @@ function (_super) {
132
132
  value: panelProps.sourceType
133
133
  }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
134
134
  value: _constants.walletType.BALANCE
135
- }, (0, _locale.i18n)('Balance')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
135
+ }, (0, _locale.i18n)('BALANCE')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
136
136
  value: _constants.walletType.B2B
137
- }, (0, _locale.i18n)('B2B PayLater')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
137
+ }, (0, _locale.i18n)('B2B_PAYLATER')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
138
138
  value: _constants.walletType.CENDUIT
139
- }, (0, _locale.i18n)('CenDuit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
139
+ }, (0, _locale.i18n)('CENDUIT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
140
140
  value: _constants.walletType.BNPL
141
141
  }, (0, _locale.i18n)('BNPL')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
142
142
  value: _constants.walletType.CREDIT
143
- }, (0, _locale.i18n)('Credit')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
143
+ }, (0, _locale.i18n)('CREDIT')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
144
144
  value: _constants.walletType.CASHBACK
145
- }, (0, _locale.i18n)('Cashback'))))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
145
+ }, (0, _locale.i18n)('CASHBACK'))))), /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
146
146
  divider: "dashed",
147
147
  headerSize: "middle",
148
148
  onRefresh: function onRefresh() {
@@ -129,7 +129,8 @@ function (_super) {
129
129
  imgHeight = _m.imgHeight,
130
130
  imgWidth = _m.imgWidth,
131
131
  showDiscountTag = _m.showDiscountTag,
132
- rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag"]); // const promotions = getPromotionList(data);
132
+ isWill = _m.isWill,
133
+ rest = __rest(_m, ["data", "panelProps", "onItemClick", "showProName", "showProgress", "intelligentType", "fixHeight", "layout", "imgHeight", "imgWidth", "showDiscountTag", "isWill"]); // const promotions = getPromotionList(data);
133
134
 
134
135
 
135
136
  var price = (0, _currencyUtil.formatCurrencyWithSymbol)(data.salesPrice);
@@ -178,7 +179,7 @@ function (_super) {
178
179
  small: true
179
180
  }), (((_d = panelProps.discount) === null || _d === void 0 ? void 0 : _d.open) || showDiscountTag) && data.discountPercent && /*#__PURE__*/_react["default"].createElement("div", {
180
181
  className: "discount-tag"
181
- }, data.discountPercent, "% off")), /*#__PURE__*/_react["default"].createElement("div", {
182
+ }, isWill ? (0, _locale.i18n)('COMING_SOON') : data.discountPercent + "% off")), /*#__PURE__*/_react["default"].createElement("div", {
182
183
  className: "content-wrap"
183
184
  }, /*#__PURE__*/_react["default"].createElement("div", {
184
185
  className: "product-name-wrap"
@@ -97,6 +97,7 @@
97
97
  }
98
98
  .personal-information-mobile .bottom .item {
99
99
  position: relative;
100
+ width: 25%;
100
101
  }
101
102
  .personal-information-mobile .bottom .item:after {
102
103
  content: '';
@@ -28,6 +28,7 @@
28
28
  overflow: scroll;
29
29
  }
30
30
  .BundleItemWrap .prodList img {
31
+ margin: 0.1rem 0;
31
32
  height: 1.9rem;
32
33
  width: 1.9rem;
33
34
  border-radius: 0.16rem;
@@ -282,8 +282,8 @@ function (_super) {
282
282
  className: "monpay-merchant-sales-mobile"
283
283
  }, panelProps.title.headerImage.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
284
284
  className: "headerImg",
285
- isRect: true,
286
- data: panelProps.title.headerImage
285
+ data: panelProps.title.headerImage,
286
+ isRect: true
287
287
  }), /*#__PURE__*/_react["default"].createElement("div", {
288
288
  className: "merchant-sales-list"
289
289
  }, _list.map(function (item) {
@@ -291,7 +291,7 @@ function (_super) {
291
291
  key: item.storeId,
292
292
  data: item,
293
293
  onItemClick: function onItemClick() {
294
- (0, _coreUtil.clickUrl)('/main/discount');
294
+ (0, _coreUtil.clickUrl)("/store-home/" + item.storeId);
295
295
  },
296
296
  panelProps: panelProps.content
297
297
  });
@@ -436,6 +436,7 @@ function (_super) {
436
436
  salePercent: isWill ? 0 : item.salePercent
437
437
  }) // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
438
438
  ,
439
+ isWill: isWill,
439
440
  onItemClick: function onItemClick() {
440
441
  if (window.magicDesign.pushGA) {
441
442
  window.magicDesign.pushGA({}, 'select_promotion', {
@@ -446,8 +447,7 @@ function (_super) {
446
447
 
447
448
  (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
448
449
  },
449
- panelProps: panelProps.content,
450
- unknownPrice: isWill
450
+ panelProps: panelProps.content
451
451
  });
452
452
  }))));
453
453
  };
@@ -1,4 +1,41 @@
1
1
  {
2
+ "EXPDATE": "ExpDate",
3
+ "EFFDATE": "EffDate",
4
+ "MISSION_NAME": "Mission Name",
5
+ "INTEREST_NAME": "Interest Name",
6
+ "PLATFORM_NAME": "Platform Name",
7
+ "API_NAME": "Api Name",
8
+ "FEATURES": "Features",
9
+ "CHANNEL": "Channel",
10
+ "STORE_ID": "Store ID",
11
+ "APP_NAME": "App Name",
12
+ "CAMPAIGN_STATE": "Campaign State",
13
+ "START_END_TIME": "Start/End time",
14
+ "CAMPAIGN_NAME": "Campaign Name",
15
+ "PROCESSING": "Processing",
16
+ "HAS_NOT_STARTED": "Has not started",
17
+ "ALL": "ALL",
18
+ "PERIOD_OF_VAILDITY": "Period of Vaildity",
19
+ "COUPON_VALUE": "Coupon Value",
20
+ "COUPON_NAME": "Coupon Name",
21
+ "OFFER_NAME": "Offer Name",
22
+ "STORE": "Store",
23
+ "PAGE_NAME": "Page Name",
24
+ "CATEGORY": "Category",
25
+ "COMING_SOON": "Coming soon",
26
+ "CASHBACK": "Cashback",
27
+ "CREDIT": "Credit",
28
+ "BNPL": "BNPL",
29
+ "CENDUIT": "CenDuit",
30
+ "B2B_PAYLATER": "B2B PayLater",
31
+ "BALANCE": "Balance",
32
+ "CENDUIT_MALL": "CenDuit Mall",
33
+ "SOCIAL_COMMERCE": "Social Commerce",
34
+ "PROCURE_PRODUCT": "Procure Product",
35
+ "ADD_MORE_PRODUCTS_TO_YOUR_SHOP": "Add more products to your shop!",
36
+ "APPLY": "Apply",
37
+ "LETS_GO": "Lets Go!",
38
+ "MAKE_MONEY_AND_SHOP_ON_CENDOL": "Make money and shop on Cendol!",
2
39
  "MERCHANT_NAME": "Merchant Name",
3
40
  "SHOW_MORE": "Show More",
4
41
  "OK": "OK",
@@ -8,9 +45,7 @@
8
45
  "PRODUCT_NAME": "Product Name",
9
46
  "PRICE": "Price",
10
47
  "LABEL": "Label",
11
- "STORE": "Store",
12
48
  "BRAND": "Brand",
13
- "CATEGORY": "Category",
14
49
  "CANCEL": "Cancel",
15
50
  "CONFIRM": "Confirm",
16
51
  "UPLOAD": "Upload",
@@ -38,7 +73,6 @@
38
73
  "TRANSPARENT": "Transparent",
39
74
  "SEARCH_ALL_PAGES": "Search all pages...",
40
75
  "TYPE": "Type",
41
- "MISSION_NAME": "Mission Name",
42
76
  "COUNT_DOWN": "Count Down",
43
77
  "SEARCH_BAR_PLACEHOLDER": "Search Bar Placeholder",
44
78
  "INTER": "Inter",
@@ -99,13 +133,10 @@
99
133
  "CLICK_OR_DRAG": "Click or drag file to this area to upload",
100
134
  "SHARE_URL": "Share Url",
101
135
  "URL": "URL",
102
- "CAMPAIGN_STATE": "Campaign State",
103
- "CAMPAIGN_NAME": "Campaign Name",
104
136
  "BRANDS": "Brands",
105
137
  "SERVICE": "Service",
106
138
  "RATINGS": "Ratings",
107
139
  "STAR": "Star",
108
- "APPLY": "Apply",
109
140
  "SORT_BY": "Sort by",
110
141
  "PROMOTION": "Promotion",
111
142
  "HIGHEST_RATED": "Highest rated",
@@ -247,7 +278,6 @@
247
278
  "COPY": "Copy",
248
279
  "DELETE": "Delete",
249
280
  "ADD_COMPONENT": "Add Component",
250
- "ALL": "ALL",
251
281
  "HOT": "Hot",
252
282
  "GUESS_YOU_LIKE": "Guess you like",
253
283
  "UNDERLINE_STYLE": "Underline Style",