@fonixtree/magic-design 2.0.170 → 2.0.171

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 (177) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +39 -3
  2. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/assets/images/base64/index.js +8 -2
  7. package/es/assets/images/common/product.png +0 -0
  8. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  9. package/es/assets/images/layout-icon/storesLayout1.png +0 -0
  10. package/es/assets/images/layout-icon/storesLayout2.png +0 -0
  11. package/es/assets/less/common.less +40 -3
  12. package/es/common/Field/index.js +5 -2
  13. package/es/common/Field/index.less +5 -0
  14. package/es/common/MyModal/index.less +12 -4
  15. package/{lib/composite-comp/bol/components/Wallet → es/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
  16. package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  17. package/{lib/composite-comp/bol/config-panels/WalletConfig → es/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  18. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  19. package/es/composite-comp/public/components/Location/defaultJSON.js +104 -0
  20. package/es/composite-comp/public/components/Location/index.js +86 -0
  21. package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  22. package/es/composite-comp/public/components/Location/mobile/index.js +353 -0
  23. package/es/composite-comp/public/components/Location/mobile/index.less +90 -0
  24. package/es/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  25. package/es/composite-comp/public/components/Stores/index.js +86 -0
  26. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  27. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  28. package/es/composite-comp/public/components/Stores/mobile/index.js +198 -0
  29. package/es/composite-comp/public/components/Stores/mobile/index.less +37 -0
  30. package/es/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  31. package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  32. package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  33. package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  34. package/{lib/composite-comp/bol → es/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  35. package/es/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  36. package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  37. package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  38. package/es/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  39. package/es/constants/component-types.js +23 -13
  40. package/es/constants/index.js +9 -1
  41. package/es/constants/layout.js +18 -4
  42. package/es/locale/en/en.json +15 -1
  43. package/es/locale/es/es.json +15 -1
  44. package/es/locale/index.js +5 -1
  45. package/es/locale/mn/mn.json +15 -1
  46. package/es/meta-comp/components/Text/index.less +6 -0
  47. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  48. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  49. package/es/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  50. package/es/utils/commonUtil.js +21 -9
  51. package/lib/assets/fonts/magic-box-iconfont.css +39 -3
  52. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  53. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  54. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  55. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  56. package/lib/assets/images/base64/index.js +8 -2
  57. package/lib/assets/images/common/product.png +0 -0
  58. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  59. package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
  60. package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
  61. package/lib/assets/less/common.less +40 -3
  62. package/lib/common/Field/index.js +5 -2
  63. package/lib/common/Field/index.less +5 -0
  64. package/lib/common/MyModal/index.less +12 -4
  65. package/{es/composite-comp/bol/components/Wallet → lib/composite-comp/ashita/components/WalletAshita}/defaultJSON.js +1 -1
  66. package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  67. package/{es/composite-comp/bol/config-panels/WalletConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  68. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  69. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  70. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  71. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  72. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  73. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  74. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  75. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  76. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/index.js +61 -0
  77. package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  78. package/lib/composite-comp/public/components/Location/defaultJSON.js +104 -0
  79. package/lib/composite-comp/public/components/Location/index.js +86 -0
  80. package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  81. package/lib/composite-comp/public/components/Location/mobile/index.js +353 -0
  82. package/lib/composite-comp/public/components/Location/mobile/index.less +90 -0
  83. package/lib/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  84. package/lib/composite-comp/public/components/Stores/index.js +86 -0
  85. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  86. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  87. package/lib/composite-comp/public/components/Stores/mobile/index.js +198 -0
  88. package/lib/composite-comp/public/components/Stores/mobile/index.less +37 -0
  89. package/lib/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  90. package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  91. package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  92. package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  93. package/{es/composite-comp/bol → lib/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  94. package/lib/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  95. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  96. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
  97. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  98. package/lib/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  99. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
  100. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
  101. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
  102. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.js +123 -0
  103. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.less +0 -0
  104. package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
  105. package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
  106. package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
  107. package/lib/constants/component-types.js +23 -13
  108. package/lib/constants/index.js +9 -1
  109. package/lib/constants/layout.js +18 -4
  110. package/lib/locale/en/en.json +15 -1
  111. package/lib/locale/es/es.json +15 -1
  112. package/lib/locale/index.js +5 -1
  113. package/lib/locale/mn/mn.json +15 -1
  114. package/lib/meta-comp/components/Text/index.less +6 -0
  115. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  116. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  117. package/lib/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  118. package/lib/utils/commonUtil.js +21 -9
  119. package/package.json +1 -1
  120. package/es/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  121. package/es/composite-comp/bol/components/Location/index.js +0 -102
  122. package/es/composite-comp/bol/components/Location/index.less +0 -15
  123. package/lib/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  124. package/lib/composite-comp/bol/components/Location/index.js +0 -102
  125. package/lib/composite-comp/bol/components/Location/index.less +0 -15
  126. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  127. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  128. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  129. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  130. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  131. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.less +0 -0
  132. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.less +0 -0
  133. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  134. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  135. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  136. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  137. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  138. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  139. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  140. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  141. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  142. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  143. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  144. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
  145. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
  146. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
  147. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  148. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  149. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/index.js +0 -0
  150. /package/es/composite-comp/{bol → nuri}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
  151. /package/es/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
  152. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent → es/composite-comp/public/config-panels/StoresConfig/ConfigContent}/index.less +0 -0
  153. /package/{lib/composite-comp/bol/config-panels/WalletConfig/imgs → es/composite-comp/public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
  154. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.js +0 -0
  155. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.less +0 -0
  156. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/WalletNuriConfigImageGroup/index.js +0 -0
  157. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup → es/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup}/index.less +0 -0
  158. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList → es/composite-comp/public/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
  159. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/index.js +0 -0
  160. /package/{lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig → es/composite-comp/public/second-config-panels/WalletSecondConfig}/index.js +0 -0
  161. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  162. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  163. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  164. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  165. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  166. /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup → ashita/config-panels/WalletAshitaConfig/WalletConfigContent}/index.less +0 -0
  167. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  168. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  169. /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  170. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  171. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  172. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  173. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  174. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  175. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  176. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  177. /package/lib/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
@@ -0,0 +1,81 @@
1
+ .m-store-item-wrap {
2
+ background: #FFFFFF;
3
+ border: 0.02rem solid #E4E4E4;
4
+ border-radius: 0.16rem;
5
+ position: relative;
6
+ margin-right: 0.32rem;
7
+ margin-top: 0.32rem;
8
+ width: 100%;
9
+ display: flex;
10
+ flex-direction: row;
11
+ }
12
+ .m-store-item-wrap .img-wrap .product-img {
13
+ width: 2.1rem;
14
+ height: 2.1rem;
15
+ border-radius: 0.16rem 0 0 0.16rem;
16
+ object-fit: cover;
17
+ }
18
+ .m-store-item-wrap .img-wrap .flag {
19
+ position: absolute;
20
+ top: 0.2rem;
21
+ left: -0.04rem;
22
+ }
23
+ .m-store-item-wrap .content-wrap {
24
+ padding: 0.12rem 0.2rem;
25
+ width: 4.4rem;
26
+ }
27
+ .m-store-item-wrap .content-wrap .name {
28
+ overflow: hidden;
29
+ white-space: nowrap;
30
+ text-overflow: ellipsis;
31
+ }
32
+ .m-store-item-wrap .content-wrap .desc {
33
+ overflow: hidden;
34
+ white-space: nowrap;
35
+ text-overflow: ellipsis;
36
+ margin-top: -0.02rem;
37
+ margin-bottom: 0.1rem;
38
+ }
39
+ .m-store-item-wrap .content-wrap .minOrder {
40
+ width: fit-content !important;
41
+ }
42
+ .m-store-item-wrap .content-wrap .sold {
43
+ width: fit-content !important;
44
+ }
45
+ .m-store-item-wrap .content-wrap .row {
46
+ display: flex;
47
+ align-items: center;
48
+ }
49
+ .m-store-item-wrap .content-wrap .line1 {
50
+ display: inline-block;
51
+ width: 0.02rem;
52
+ height: 0.32rem;
53
+ background-color: #545454;
54
+ margin: 0 0.1rem;
55
+ }
56
+ .m-store-item-wrap .content-wrap .line2 {
57
+ display: inline-block;
58
+ width: 0.02rem;
59
+ height: 0.24rem;
60
+ background-color: #D9D9D9;
61
+ margin: 0 0.16rem;
62
+ }
63
+ .m-store-item-wrap.horizontal {
64
+ flex-direction: column;
65
+ width: 5.84rem;
66
+ }
67
+ .m-store-item-wrap.horizontal .img-wrap .product-img {
68
+ width: 5.8rem;
69
+ height: 2.4rem;
70
+ border-radius: 0.16rem 0.16rem 0 0;
71
+ object-fit: cover;
72
+ }
73
+ .m-store-item-wrap.horizontal .content-wrap {
74
+ flex: auto;
75
+ padding: 0.16rem;
76
+ width: 100%;
77
+ }
78
+ .m-store-item-wrap.horizontal .content-wrap .sold,
79
+ .m-store-item-wrap.horizontal .content-wrap .time {
80
+ margin-right: 0.1rem;
81
+ }
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ require("./index.less");
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _StoreItem = _interopRequireDefault(require("./StoreItem"));
15
+
16
+ var _components = require("../../../../../meta-comp/components");
17
+
18
+ var _storeUtil = require("../../../../../utils/storeUtil");
19
+
20
+ var _commonUtil = require("../../../../../utils/commonUtil");
21
+
22
+ var _coreUtil = require("../../../../../utils/coreUtil");
23
+
24
+ var _product = _interopRequireDefault(require("../../../../../assets/images/common/product.png"));
25
+
26
+ var _constants = require("../../../../../constants");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+
30
+ var __extends = void 0 && (void 0).__extends || function () {
31
+ var _extendStatics = function extendStatics(d, b) {
32
+ _extendStatics = Object.setPrototypeOf || {
33
+ __proto__: []
34
+ } instanceof Array && function (d, b) {
35
+ d.__proto__ = b;
36
+ } || function (d, b) {
37
+ for (var p in b) {
38
+ if (b.hasOwnProperty(p)) d[p] = b[p];
39
+ }
40
+ };
41
+
42
+ return _extendStatics(d, b);
43
+ };
44
+
45
+ return function (d, b) {
46
+ _extendStatics(d, b);
47
+
48
+ function __() {
49
+ this.constructor = d;
50
+ }
51
+
52
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
+ };
54
+ }();
55
+
56
+ var __assign = void 0 && (void 0).__assign || function () {
57
+ __assign = Object.assign || function (t) {
58
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
59
+ s = arguments[i];
60
+
61
+ for (var p in s) {
62
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
63
+ }
64
+ }
65
+
66
+ return t;
67
+ };
68
+
69
+ return __assign.apply(this, arguments);
70
+ };
71
+
72
+ var defaultData = [{
73
+ imgUrlContent: {
74
+ url: _product["default"]
75
+ },
76
+ offerName: 'Product Name Long Long Long Long Long',
77
+ salesPrice: 10000,
78
+ specialPrice: null,
79
+ marketPrice: 20000,
80
+ salePercent: 500,
81
+ discountPercent: 90,
82
+ coupons: [{
83
+ couponId: '1',
84
+ discountMethod: 'DISC',
85
+ discountAmount: 3000
86
+ }, {
87
+ couponId: '2',
88
+ discountMethod: 'AMT',
89
+ discountAmount: 100
90
+ }, {
91
+ couponId: '3',
92
+ discountMethod: 'AMT',
93
+ discountAmount: 1000
94
+ }, {
95
+ couponId: '4',
96
+ discountMethod: 'AMT',
97
+ discountAmount: 10000
98
+ }, {
99
+ couponId: '5',
100
+ discountMethod: 'AMT',
101
+ discountAmount: 100000
102
+ }]
103
+ }, {
104
+ imgUrlContent: {
105
+ url: _product["default"]
106
+ },
107
+ offerName: 'Product Name',
108
+ salesPrice: 10000,
109
+ specialPrice: null,
110
+ marketPrice: 20000,
111
+ salePercent: 500
112
+ }, {
113
+ imgUrlContent: {
114
+ url: _product["default"]
115
+ },
116
+ offerName: 'Product Name Long Long Long Long Long',
117
+ salesPrice: 18000000,
118
+ specialPrice: 18000000,
119
+ marketPrice: 19000000,
120
+ discountPercent: 10,
121
+ salePercent: 500
122
+ }, {
123
+ imgUrlContent: {
124
+ url: _product["default"]
125
+ },
126
+ offerName: 'Product Name',
127
+ salesPrice: 18000000,
128
+ specialPrice: 18000000,
129
+ marketPrice: 19000000,
130
+ salePercent: 500
131
+ }];
132
+
133
+ var Mobile =
134
+ /** @class */
135
+ function (_super) {
136
+ __extends(Mobile, _super);
137
+
138
+ function Mobile() {
139
+ var _this = _super !== null && _super.apply(this, arguments) || this;
140
+
141
+ _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
142
+ return (0, _storeUtil.getMagicStore)("stores_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
143
+ }, {});
144
+ _this.state = {
145
+ list: []
146
+ };
147
+ return _this;
148
+ }
149
+
150
+ Mobile.prototype.render = function () {
151
+ var _a;
152
+
153
+ var panelProps = this.props.panelProps;
154
+ var list = this.state.list;
155
+
156
+ var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
157
+
158
+ var needReverse = ((0, _storeUtil.getStore)(_constants.STORAGE_KEY.FISHX_LOCALE) || (0, _storeUtil.getStore)(_constants.STORAGE_KEY.LOCALE)) === 'ba';
159
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
160
+ className: (0, _classnames["default"])('m-stores-mobile', (_a = {}, _a['reversed-layout'] = needReverse, _a))
161
+ }, /*#__PURE__*/_react["default"].createElement("div", {
162
+ className: "stores-title"
163
+ }, /*#__PURE__*/_react["default"].createElement("div", {
164
+ className: "left"
165
+ }, panelProps.title.name.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
166
+ data: panelProps.title.name
167
+ })), /*#__PURE__*/_react["default"].createElement("div", {
168
+ className: "right",
169
+ onClick: function onClick() {
170
+ return (0, _coreUtil.clickUrl)('/spike');
171
+ }
172
+ }, panelProps.title.seeAll.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
173
+ data: panelProps.title.seeAll
174
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
175
+ className: (0, _classnames["default"])('stores-list', {
176
+ horizontal: panelProps.customize.layout === 'layout1'
177
+ })
178
+ }, _list.map(function (item) {
179
+ return /*#__PURE__*/_react["default"].createElement(_StoreItem["default"], {
180
+ key: item.id,
181
+ data: __assign({}, item),
182
+ layout: panelProps.customize.layout,
183
+ onItemClick: function onItemClick() {
184
+ return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
185
+ },
186
+ panelProps: panelProps.content
187
+ });
188
+ }))));
189
+ };
190
+
191
+ Mobile.defaultProps = {
192
+ panelProps: {}
193
+ };
194
+ return Mobile;
195
+ }(_react["default"].Component);
196
+
197
+ var _default = Mobile;
198
+ exports["default"] = _default;
@@ -0,0 +1,37 @@
1
+ .m-stores-mobile {
2
+ margin-left: 0.4rem;
3
+ }
4
+ .m-stores-mobile .stores-title {
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ padding-right: 0.4rem;
9
+ }
10
+ .m-stores-mobile .stores-list {
11
+ margin-right: 0.4rem;
12
+ }
13
+ .m-stores-mobile .stores-list.horizontal {
14
+ overflow-x: auto;
15
+ display: flex;
16
+ margin-right: 0;
17
+ }
18
+ .m-stores-mobile.reversed-layout {
19
+ margin-left: 0;
20
+ margin-right: 0.4rem;
21
+ }
22
+ .m-stores-mobile.reversed-layout .stores-title {
23
+ padding-right: 0;
24
+ padding-left: 0.4rem;
25
+ }
26
+ .m-stores-mobile.reversed-layout .sold,
27
+ .m-stores-mobile.reversed-layout .minOrder {
28
+ direction: ltr;
29
+ }
30
+ .m-stores-mobile.reversed-layout .flag {
31
+ right: -0.04rem !important;
32
+ left: unset !important;
33
+ }
34
+ .m-stores-mobile.reversed-layout .m-store-item-wrap {
35
+ margin-right: 0;
36
+ margin-left: 0.32rem;
37
+ }
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _base = require("../../../../assets/images/base64");
11
+
12
+ var _constants = require("../../../../constants");
13
+
14
+ var walletDataList = [{
15
+ name: 'Saldo',
16
+ icon: _base.walletSaldoIcon,
17
+ text: 'Rincian Saldo'
18
+ }, {
19
+ name: 'Koin',
20
+ icon: _base.walletKoinIcon,
21
+ text: 'Rincian Koin'
22
+ }];
23
+
24
+ var getDefaultJSON = function getDefaultJSON() {
25
+ var _a;
26
+
27
+ var groupId = (0, _uuid.v4)();
28
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
29
+ return {
30
+ id: groupId,
31
+ type: 'WALLET',
32
+ groupSource: walletDataList.map(function (item) {
33
+ var itemId = (0, _uuid.v4)();
34
+ return {
35
+ id: itemId,
36
+ parentId: groupId,
37
+ logo: {
38
+ parentId: itemId,
39
+ id: (0, _uuid.v4)(),
40
+ open: true,
41
+ content: {
42
+ clickUrl: '',
43
+ h5ImgSrc: item.icon,
44
+ h5Name: ''
45
+ }
46
+ },
47
+ title: {
48
+ parentId: itemId,
49
+ id: (0, _uuid.v4)(),
50
+ open: true,
51
+ type: 'TEXT',
52
+ specialContent: [],
53
+ text: item.name,
54
+ content: {
55
+ sizeType: 'Customize font styles',
56
+ fontFamily: defaultFontFamily,
57
+ fontWeight: 400,
58
+ fontSize: 11,
59
+ color: '#232F46',
60
+ textAlign: 'center'
61
+ },
62
+ underline: {
63
+ open: false,
64
+ textDecorationColor: '',
65
+ textDecorationStyle: 'solid'
66
+ },
67
+ vertical: {}
68
+ },
69
+ amount: {
70
+ parentId: itemId,
71
+ id: (0, _uuid.v4)(),
72
+ open: true,
73
+ type: 'TEXT',
74
+ specialContent: [],
75
+ text: '****',
76
+ content: {
77
+ sizeType: 'Customize font styles',
78
+ fontFamily: defaultFontFamily,
79
+ fontWeight: 700,
80
+ fontSize: 14,
81
+ color: '#232F46',
82
+ textAlign: ''
83
+ },
84
+ underline: {
85
+ open: false,
86
+ textDecorationColor: '',
87
+ textDecorationStyle: 'solid'
88
+ },
89
+ vertical: {}
90
+ },
91
+ text: {
92
+ parentId: itemId,
93
+ id: (0, _uuid.v4)(),
94
+ open: true,
95
+ type: 'TEXT',
96
+ specialContent: [],
97
+ text: item.text,
98
+ content: {
99
+ sizeType: 'Customize font styles',
100
+ fontFamily: defaultFontFamily,
101
+ fontWeight: 400,
102
+ fontSize: 11,
103
+ color: '#232F46',
104
+ textAlign: ''
105
+ },
106
+ underline: {
107
+ open: false,
108
+ textDecorationColor: '',
109
+ textDecorationStyle: 'solid'
110
+ },
111
+ vertical: {}
112
+ },
113
+ tip: {
114
+ parentId: itemId,
115
+ id: (0, _uuid.v4)(),
116
+ open: true,
117
+ url: ''
118
+ }
119
+ };
120
+ }),
121
+ spacing: {
122
+ pc: {
123
+ paddingTop: 12,
124
+ paddingBottom: 12,
125
+ paddingLeft: 10,
126
+ paddingRight: 10,
127
+ marginBottom: window.magicDesign.compSpacing * 1.5
128
+ },
129
+ mobile: {
130
+ paddingTop: 12,
131
+ paddingBottom: 12,
132
+ paddingLeft: 10,
133
+ paddingRight: 10,
134
+ marginBottom: window.magicDesign.compSpacing
135
+ }
136
+ },
137
+ customize: {
138
+ layout: 'layout1'
139
+ },
140
+ background: {
141
+ opacity: 100,
142
+ color: '#FFF8F0',
143
+ image: '',
144
+ bgType: 'color'
145
+ }
146
+ };
147
+ };
148
+
149
+ exports.getDefaultJSON = getDefaultJSON;