@fonixtree/magic-design 0.1.93 → 0.2.2

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 (247) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +7 -35
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +4 -8
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/less/button.less +0 -5
  9. package/es/common/AffiliateProductModal/index.js +1 -1
  10. package/es/common/AffiliateProductModal/index.less +1 -1
  11. package/es/common/Button/index.less +1 -0
  12. package/es/common/CountDown/index.js +11 -20
  13. package/es/common/GroupList/index.js +2 -7
  14. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  15. package/es/common/LinkModal/CouponTable/index.js +1 -1
  16. package/es/common/LinkModal/CustomTable/index.js +0 -1
  17. package/es/common/LinkModal/FilteredProductModal/index.js +106 -82
  18. package/es/common/LinkModal/FilteredProductModal/index.less +0 -1
  19. package/es/common/LinkModal/ProductDetailPage/index.js +60 -115
  20. package/es/common/LinkModal/ProductDetailPage/index.less +1 -6
  21. package/es/common/LinkModal/SelectVideoModal/index.js +2 -3
  22. package/es/common/LinkModal/index.js +5 -20
  23. package/es/common/MagicLink/index.js +2 -2
  24. package/es/common/ProductModal/index.js +124 -181
  25. package/es/common/ProductModal/index.less +1 -7
  26. package/es/common/ProductSource/index.js +21 -81
  27. package/es/common/UrlPicker/index.js +10 -51
  28. package/es/common/Video/index.js +86 -142
  29. package/es/common/VideoUpload/index.js +1 -1
  30. package/es/common/index.js +0 -8
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  32. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  33. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  34. package/es/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  35. package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  36. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  37. package/{lib/composite-comp/nuri → es/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  38. package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  39. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  40. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  41. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  42. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  43. package/es/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  44. package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  45. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  46. package/{lib/composite-comp/nuri → es/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  47. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  48. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  49. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  50. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  51. package/es/constants/component-types.js +6 -24
  52. package/es/constants/index.js +5 -52
  53. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  54. package/es/core/Designer/ChatRobot/index.js +4 -49
  55. package/es/core/Designer/ConfigPanel/index.js +0 -6
  56. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  57. package/es/core/Designer/PageCompList/index.js +1 -1
  58. package/es/core/Designer/QuickMenuBar/index.js +2 -6
  59. package/es/core/Designer/ToolBarModal/index.js +1 -5
  60. package/es/core/Designer/index.js +1 -12
  61. package/es/core/Renderer/index.js +2 -6
  62. package/es/decorator/compositeDecorator.js +6 -10
  63. package/es/decorator/index.js +1 -4
  64. package/es/decorator/metaDecorator.js +3 -7
  65. package/es/locale/en/en.json +2 -20
  66. package/es/locale/es/es.json +2 -20
  67. package/es/locale/id/id.json +2 -20
  68. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  69. package/es/mobx/index.js +3 -9
  70. package/es/utils/androidUtil.js +2 -17
  71. package/es/utils/businessUtil.js +5 -54
  72. package/es/utils/commonUtil.js +13 -151
  73. package/es/utils/coreUtil.js +24 -89
  74. package/lib/assets/fonts/magic-box-iconfont.css +7 -35
  75. package/lib/assets/fonts/magic-box-iconfont.css.bak +4 -8
  76. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  77. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  78. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  79. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  80. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  81. package/lib/assets/less/button.less +0 -5
  82. package/lib/common/AffiliateProductModal/index.js +1 -1
  83. package/lib/common/AffiliateProductModal/index.less +1 -1
  84. package/lib/common/Button/index.less +1 -0
  85. package/lib/common/CountDown/index.js +11 -20
  86. package/lib/common/GroupList/index.js +2 -7
  87. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  88. package/lib/common/LinkModal/CouponTable/index.js +1 -1
  89. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  90. package/lib/common/LinkModal/FilteredProductModal/index.js +106 -82
  91. package/lib/common/LinkModal/FilteredProductModal/index.less +0 -1
  92. package/lib/common/LinkModal/ProductDetailPage/index.js +60 -115
  93. package/lib/common/LinkModal/ProductDetailPage/index.less +1 -6
  94. package/lib/common/LinkModal/SelectVideoModal/index.js +2 -3
  95. package/lib/common/LinkModal/index.js +5 -20
  96. package/lib/common/MagicLink/index.js +2 -2
  97. package/lib/common/ProductModal/index.js +124 -181
  98. package/lib/common/ProductModal/index.less +1 -7
  99. package/lib/common/ProductSource/index.js +21 -81
  100. package/lib/common/UrlPicker/index.js +10 -51
  101. package/lib/common/Video/index.js +86 -142
  102. package/lib/common/VideoUpload/index.js +1 -1
  103. package/lib/common/index.js +0 -8
  104. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -4
  105. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +8 -4
  106. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -3
  107. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +20 -22
  108. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -31
  109. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  110. package/{es/composite-comp/nuri → lib/composite-comp/dito}/components/AffiliateRecommend/mobile/index.js +10 -12
  111. package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.js +10 -12
  112. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +1 -8
  113. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +17 -22
  114. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +2 -2
  115. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +0 -11
  116. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +26 -31
  117. package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -1
  118. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -13
  119. package/{es/composite-comp/nuri → lib/composite-comp/dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +1 -1
  120. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +27 -25
  121. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  122. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  123. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +2 -4
  124. package/lib/constants/component-types.js +6 -24
  125. package/lib/constants/index.js +5 -52
  126. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +16 -34
  127. package/lib/core/Designer/ChatRobot/index.js +4 -49
  128. package/lib/core/Designer/ConfigPanel/index.js +0 -6
  129. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  130. package/lib/core/Designer/PageCompList/index.js +1 -1
  131. package/lib/core/Designer/QuickMenuBar/index.js +2 -6
  132. package/lib/core/Designer/ToolBarModal/index.js +1 -5
  133. package/lib/core/Designer/index.js +1 -12
  134. package/lib/core/Renderer/index.js +2 -6
  135. package/lib/decorator/compositeDecorator.js +6 -10
  136. package/lib/decorator/index.js +1 -4
  137. package/lib/decorator/metaDecorator.js +3 -7
  138. package/lib/locale/en/en.json +2 -20
  139. package/lib/locale/es/es.json +2 -20
  140. package/lib/locale/id/id.json +2 -20
  141. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  142. package/lib/mobx/index.js +3 -9
  143. package/lib/utils/androidUtil.js +2 -17
  144. package/lib/utils/businessUtil.js +5 -54
  145. package/lib/utils/commonUtil.js +13 -151
  146. package/lib/utils/coreUtil.js +24 -89
  147. package/package.json +1 -2
  148. package/es/common/CropperModal/index.js +0 -126
  149. package/es/common/CropperModal/index.less +0 -29
  150. package/es/common/LinkModal/AffiliatePlatform/index.js +0 -326
  151. package/es/common/LinkModal/AffiliateStore/index.js +0 -332
  152. package/es/common/ProductModal/SortableImageList/index.js +0 -118
  153. package/es/common/ProductModal/SortableImageList/index.less +0 -3
  154. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  155. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  156. package/es/common/Video/QualityComponent/index.js +0 -169
  157. package/es/common/Video/QualityComponent/index.less +0 -78
  158. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  159. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  160. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  161. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  162. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  163. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  164. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  165. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  166. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  167. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  168. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  169. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  170. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  171. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  172. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  173. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  174. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  175. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  176. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  177. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  178. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  179. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  180. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  181. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  182. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  183. package/es/mobx/UserState.js +0 -144
  184. package/lib/common/CropperModal/index.js +0 -126
  185. package/lib/common/CropperModal/index.less +0 -29
  186. package/lib/common/LinkModal/AffiliatePlatform/index.js +0 -326
  187. package/lib/common/LinkModal/AffiliateStore/index.js +0 -332
  188. package/lib/common/ProductModal/SortableImageList/index.js +0 -118
  189. package/lib/common/ProductModal/SortableImageList/index.less +0 -3
  190. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  191. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  192. package/lib/common/Video/QualityComponent/index.js +0 -169
  193. package/lib/common/Video/QualityComponent/index.less +0 -78
  194. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +0 -9
  195. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  196. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  197. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -113
  198. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  199. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  200. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  201. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -350
  202. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -86
  203. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  204. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  205. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  206. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -592
  207. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -135
  208. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  209. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  210. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  211. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  212. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  213. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  214. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -121
  215. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  216. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  217. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  218. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  219. package/lib/mobx/UserState.js +0 -144
  220. /package/es/common/Video/{RateComponent → components}/index.js +0 -0
  221. /package/es/common/Video/{RateComponent → components}/index.less +0 -0
  222. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  223. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  224. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  225. /package/es/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  226. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  227. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  228. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  229. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  230. /package/es/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  231. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  232. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  233. /package/es/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
  234. /package/lib/common/Video/{RateComponent → components}/index.js +0 -0
  235. /package/lib/common/Video/{RateComponent → components}/index.less +0 -0
  236. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/defaultJSON.js +0 -0
  237. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/index.js +0 -0
  238. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/mobile/index.less +0 -0
  239. /package/lib/composite-comp/{nuri → dito}/components/AffiliateRecommend/pc/index.less +0 -0
  240. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  241. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  242. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  243. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  244. /package/lib/composite-comp/{nuri → dito}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  245. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  246. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  247. /package/lib/composite-comp/{nuri → dito}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
@@ -15,7 +15,7 @@ var _commonUtil = require("../../utils/commonUtil");
15
15
 
16
16
  var _Button = _interopRequireDefault(require("../Button"));
17
17
 
18
- var _ProductModal = _interopRequireWildcard(require("../ProductModal"));
18
+ var _ProductModal = _interopRequireDefault(require("../ProductModal"));
19
19
 
20
20
  require("./index.less");
21
21
 
@@ -27,22 +27,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
27
 
28
28
  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; }
29
29
 
30
- var __assign = void 0 && (void 0).__assign || function () {
31
- __assign = Object.assign || function (t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
-
35
- for (var p in s) {
36
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
37
- }
38
- }
39
-
40
- return t;
41
- };
42
-
43
- return __assign.apply(this, arguments);
44
- };
45
-
46
30
  var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
47
31
  function adopt(value) {
48
32
  return value instanceof P ? value : new P(function (resolve) {
@@ -191,8 +175,7 @@ function ProductSource(_a) {
191
175
 
192
176
  var value = _a.value,
193
177
  onChange = _a.onChange,
194
- isAffiliate = _a.isAffiliate,
195
- prodType = _a.prodType;
178
+ isAffiliate = _a.isAffiliate;
196
179
 
197
180
  var _b = (0, _react.useState)([]),
198
181
  selectedProds = _b[0],
@@ -204,22 +187,27 @@ function ProductSource(_a) {
204
187
 
205
188
  var onSelectProduct = function onSelectProduct() {
206
189
  return __awaiter(_this, void 0, void 0, function () {
207
- var url, param, list, url, param, list_1, url, param, list;
190
+ var url, param, list;
208
191
  return __generator(this, function (_a) {
209
192
  switch (_a.label) {
210
193
  case 0:
211
194
  if (!(value && value.length > 0)) return [3
212
195
  /*break*/
213
- , 7];
214
- if (!isAffiliate) return [3
215
- /*break*/
216
196
  , 2];
217
- url = "/designer/v1/" + window.magicDesign.MBaseUrl + "/distributor/product/list";
197
+ url = "/designer/v1/" + window.magicDesign.MBaseUrl + "/products";
218
198
  param = {
219
- affiliateProductIds: value,
220
- pageSize: value.length,
221
- pageIndex: 1
199
+ products: value
222
200
  };
201
+
202
+ if (isAffiliate) {
203
+ url = "/designer/v1/" + window.magicDesign.MBaseUrl + "/distributor/product/list";
204
+ param = {
205
+ affiliateProductIds: value,
206
+ pageSize: value.length,
207
+ pageIndex: 1
208
+ };
209
+ }
210
+
223
211
  return [4
224
212
  /*yield*/
225
213
  , (0, _commonUtil.commonFetch)(url, param, 'GET')];
@@ -229,60 +217,13 @@ function ProductSource(_a) {
229
217
  setSelectedProds(list || []);
230
218
  return [3
231
219
  /*break*/
232
- , 6];
220
+ , 3];
233
221
 
234
222
  case 2:
235
- if (!(prodType === 'spu')) return [3
236
- /*break*/
237
- , 4];
238
- url = "/designer/v1/" + window.magicDesign.MBaseUrl + "/offers";
239
- param = {
240
- offers: value,
241
- isDefaultCover: 'Y',
242
- onlyQryPublishSku: true,
243
- auditState: 'S',
244
- crmFlag: 'on'
245
- };
246
- return [4
247
- /*yield*/
248
- , (0, _commonUtil.commonFetch)(url, param, 'GET')];
249
-
250
- case 3:
251
- list_1 = _a.sent().list;
252
- setSelectedProds((0, _ProductModal.formatData)((0, _commonUtil.ensure)(function () {
253
- return list_1.map(function (m) {
254
- return __assign(__assign({}, m.products[0]), m);
255
- });
256
- }, []), prodType));
257
- return [3
258
- /*break*/
259
- , 6];
260
-
261
- case 4:
262
- url = "/designer/v1/" + window.magicDesign.MBaseUrl + "/products";
263
- param = {
264
- products: value,
265
- state: 'A'
266
- };
267
- return [4
268
- /*yield*/
269
- , (0, _commonUtil.commonFetch)(url, param, 'GET')];
270
-
271
- case 5:
272
- list = _a.sent().list;
273
- setSelectedProds((0, _ProductModal.formatData)(list || []));
274
- _a.label = 6;
275
-
276
- case 6:
277
- return [3
278
- /*break*/
279
- , 8];
280
-
281
- case 7:
282
223
  setSelectedProds([]);
283
- _a.label = 8;
224
+ _a.label = 3;
284
225
 
285
- case 8:
226
+ case 3:
286
227
  setVisbile(true);
287
228
  return [2
288
229
  /*return*/
@@ -292,7 +233,7 @@ function ProductSource(_a) {
292
233
  });
293
234
  };
294
235
 
295
- var handleModalSave = function handleModalSave(list, type) {
236
+ var handleModalSave = function handleModalSave(list) {
296
237
  var ids = '';
297
238
 
298
239
  if (isAffiliate) {
@@ -301,11 +242,11 @@ function ProductSource(_a) {
301
242
  }).join(',');
302
243
  } else {
303
244
  ids = list.map(function (prod) {
304
- return prod.id;
245
+ return prod.productId;
305
246
  }).join(',');
306
247
  }
307
248
 
308
- onChange(ids, type);
249
+ onChange(ids);
309
250
  };
310
251
 
311
252
  var getLength = function getLength() {
@@ -340,7 +281,6 @@ function ProductSource(_a) {
340
281
  defaultList: selectedProds,
341
282
  handleModalSave: handleModalSave,
342
283
  maxSelect: 100,
343
- prodType: prodType,
344
284
  visible: visible
345
285
  })));
346
286
  }
@@ -7,11 +7,9 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- var _AnchorModal = _interopRequireDefault(require("./AnchorModal"));
10
+ require("./index.less");
13
11
 
14
- var _coreUtil = require("../../utils/coreUtil");
12
+ var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
16
14
  var _locale = require("../../locale");
17
15
 
@@ -19,12 +17,6 @@ var _LinkModal = _interopRequireDefault(require("../LinkModal"));
19
17
 
20
18
  var _Iconfont = _interopRequireDefault(require("../Iconfont"));
21
19
 
22
- var _constants = require("../../constants");
23
-
24
- var _mobx = require("../../mobx");
25
-
26
- require("./index.less");
27
-
28
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
21
 
30
22
  var __extends = void 0 && (void 0).__extends || function () {
@@ -52,8 +44,6 @@ var __extends = void 0 && (void 0).__extends || function () {
52
44
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
45
  };
54
46
  }();
55
- /* eslint-disable max-len */
56
-
57
47
 
58
48
  var UrlPicker =
59
49
  /** @class */
@@ -64,8 +54,7 @@ function (_super) {
64
54
  var _this = _super !== null && _super.apply(this, arguments) || this;
65
55
 
66
56
  _this.state = {
67
- visible: false,
68
- anchorModalVisible: false
57
+ visible: false
69
58
  };
70
59
  return _this;
71
60
  }
@@ -73,29 +62,14 @@ function (_super) {
73
62
  UrlPicker.prototype.render = function () {
74
63
  var _this = this;
75
64
 
76
- var _a;
77
-
78
- var _b = this.state,
79
- visible = _b.visible,
80
- anchorModalVisible = _b.anchorModalVisible;
81
- var _c = this.props,
82
- value = _c.value,
83
- _onChange = _c.onChange,
84
- disabled = _c.disabled,
85
- onlySpecificCode = _c.onlySpecificCode; // 弹框选择url不可编辑,需要先清除
65
+ var visible = this.state.visible;
66
+ var _a = this.props,
67
+ value = _a.value,
68
+ _onChange = _a.onChange,
69
+ disabled = _a.disabled,
70
+ onlySpecificCode = _a.onlySpecificCode; // 弹框选择url不可编辑,需要先清除
86
71
 
87
72
  var editable = !value || !value.type;
88
- var inputName = (value === null || value === void 0 ? void 0 : value.name) || '';
89
-
90
- if ((value === null || value === void 0 ? void 0 : value.type) === _constants.urlTypeMap.ANCHOR) {
91
- var selectedAnchorIndex = _mobx.store.MPageData.findIndex(function (m) {
92
- return m.id === ((0, _coreUtil.isPc)() ? value.value.pcNodeId : value.value.mobileNodeId);
93
- });
94
-
95
- var selectedAnchor = _mobx.store.MPageData[selectedAnchorIndex];
96
- inputName = selectedAnchorIndex + 1 + "\u3001" + ((_a = _constants.compInfoMap[selectedAnchor.type]) === null || _a === void 0 ? void 0 : _a.name);
97
- }
98
-
99
73
  return /*#__PURE__*/_react["default"].createElement("div", {
100
74
  className: "m-url-picker"
101
75
  }, disabled && /*#__PURE__*/_react["default"].createElement("div", {
@@ -114,7 +88,7 @@ function (_super) {
114
88
  },
115
89
  placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
116
90
  type: "text",
117
- value: inputName
91
+ value: value.name || ''
118
92
  }), /*#__PURE__*/_react["default"].createElement("div", {
119
93
  className: "icon-btns"
120
94
  }, window.magicDesign.outputType != 'html' && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
@@ -148,21 +122,6 @@ function (_super) {
148
122
  },
149
123
  onlySpecificCode: onlySpecificCode,
150
124
  visible: visible
151
- }), anchorModalVisible && /*#__PURE__*/_react["default"].createElement(_AnchorModal["default"], {
152
- initData: value,
153
- onClose: function onClose() {
154
- return _this.setState({
155
- anchorModalVisible: false
156
- });
157
- },
158
- onConfirm: function onConfirm(value) {
159
- _onChange(value);
160
-
161
- _this.setState({
162
- anchorModalVisible: false
163
- });
164
- },
165
- visible: anchorModalVisible
166
125
  }));
167
126
  };
168
127
 
@@ -7,9 +7,7 @@ exports["default"] = exports.createVideoModal = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _index = _interopRequireDefault(require("./RateComponent/index"));
11
-
12
- var _index2 = _interopRequireDefault(require("./QualityComponent/index"));
10
+ var _components = _interopRequireDefault(require("./components"));
13
11
 
14
12
  var _closeImg = _interopRequireDefault(require("./closeImg.png"));
15
13
 
@@ -269,149 +267,95 @@ var createAliVideo = function createAliVideo(domId, opts) {
269
267
  }
270
268
 
271
269
  return new Promise(function (resolve) {
272
- return __awaiter(void 0, void 0, void 0, function () {
273
- var components, res, qualitySource, source, skinLayout, controlBar;
274
- return __generator(this, function (_a) {
275
- var _window$Aliplayer;
276
-
277
- switch (_a.label) {
278
- case 0:
279
- components = [{
280
- name: 'RateComponent',
281
- type: _index["default"]
282
- }];
283
- return [4
284
- /*yield*/
285
- , (0, _commonUtil.commonFetch)('/designer/v1/content/' + opts.sourceId, {}, 'GET')];
286
-
287
- case 1:
288
- res = _a.sent();
289
- qualitySource = {};
290
- source = opts.source;
291
-
292
- if (res.smallImgUrl) {
293
- qualitySource['480P'] = res.smallImgUrl;
294
- }
295
-
296
- if (res.url) {
297
- qualitySource['720P'] = res.url;
298
- }
299
-
300
- if (res.bigImgUrl) {
301
- qualitySource['1080P'] = res.bigImgUrl;
302
- }
303
-
304
- if (Object.keys(qualitySource).length) {
305
- source = JSON.stringify(qualitySource);
306
- components.push({
307
- name: 'QualityComponent',
308
- type: _index2["default"]
309
- });
310
- }
270
+ var _window$Aliplayer;
271
+
272
+ var skinLayout = [{
273
+ name: 'H5Loading',
274
+ align: 'cc'
275
+ }, {
276
+ name: 'errorDisplay',
277
+ align: 'tlabs',
278
+ x: 0,
279
+ y: 0
280
+ }, {
281
+ name: 'tooltip',
282
+ align: 'blabs',
283
+ x: 0,
284
+ y: 56
285
+ }, {
286
+ name: 'thumbnail'
287
+ }];
288
+ var controlBar = {
289
+ name: 'controlBar',
290
+ align: 'blabs',
291
+ x: 0,
292
+ y: 0,
293
+ children: [{
294
+ name: 'playButton',
295
+ align: 'tl',
296
+ x: 15,
297
+ y: 12
298
+ }, {
299
+ name: 'timeDisplay',
300
+ align: 'tl',
301
+ x: 10,
302
+ y: 7
303
+ }, {
304
+ name: 'volume',
305
+ align: 'tr',
306
+ x: 5,
307
+ y: 10
308
+ }, {
309
+ name: 'fullScreenButton',
310
+ align: 'tr',
311
+ x: 10,
312
+ y: 12
313
+ }]
314
+ };
315
+ skinLayout.push(controlBar);
316
+
317
+ if (opts.progressBar) {
318
+ controlBar.children.push({
319
+ name: 'progress',
320
+ align: 'blabs',
321
+ x: 0,
322
+ y: 10
323
+ });
324
+ }
311
325
 
312
- skinLayout = [{
313
- name: 'H5Loading',
314
- align: 'cc'
315
- }, {
316
- name: 'errorDisplay',
317
- align: 'tlabs',
318
- x: 0,
319
- y: 0
320
- }, {
321
- name: 'tooltip',
322
- align: 'blabs',
323
- x: 0,
324
- y: 56
325
- }, {
326
- name: 'thumbnail'
327
- }];
328
- controlBar = {
329
- name: 'controlBar',
330
- align: 'blabs',
331
- x: 0,
332
- y: 0,
333
- children: [{
334
- name: 'playButton',
335
- align: 'tl',
336
- x: 15,
337
- y: 12
338
- }, {
339
- name: 'timeDisplay',
340
- align: 'tl',
341
- x: 10,
342
- y: 7
343
- }, {
344
- name: 'volume',
345
- align: 'tr',
346
- x: 5,
347
- y: 10
348
- }, {
349
- name: 'fullScreenButton',
350
- align: 'tr',
351
- x: 10,
352
- y: 12
353
- }]
354
- };
355
- skinLayout.push(controlBar);
356
-
357
- if (opts.progressBar) {
358
- controlBar.children.push({
359
- name: 'progress',
360
- align: 'blabs',
361
- x: 0,
362
- y: 10
363
- });
364
- }
326
+ new window.Aliplayer((_window$Aliplayer = {
327
+ id: 'video' + domId,
328
+ source: opts.source,
329
+ cover: opts.cover,
330
+ width: '100%',
331
+ height: '100%',
332
+ autoplay: false,
333
+ isLive: false,
334
+ rePlay: false,
335
+ playsinline: true,
336
+ preload: true,
337
+ controlBarVisibility: 'hover',
338
+ useH5Prism: true,
339
+ skinLayout: skinLayout
340
+ }, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", [{
341
+ name: 'RateComponent',
342
+ type: _components["default"]
343
+ }]), _window$Aliplayer), function (player) {
344
+ if (!opts.videoSound) {
345
+ player.setVolume(0);
346
+ }
365
347
 
366
- console.log('source: ', source);
367
- new window.Aliplayer((_window$Aliplayer = {
368
- id: 'video' + domId,
369
- source: source,
370
- cover: opts.cover,
371
- width: '100%',
372
- height: '100%',
373
- autoplay: false,
374
- isLive: false,
375
- rePlay: false,
376
- playsinline: true,
377
- preload: true,
378
- controlBarVisibility: 'hover',
379
- useH5Prism: true,
380
- skinLayout: skinLayout
381
- }, _defineProperty(_window$Aliplayer, "autoplay", opts.autoplay), _defineProperty(_window$Aliplayer, "rePlay", opts.loop), _defineProperty(_window$Aliplayer, "components", components), _window$Aliplayer), function (player) {
382
- if (!opts.videoSound) {
383
- player.setVolume(0);
384
- }
385
-
386
- if (opts.speed) {
387
- var speed = Number(opts.speed).toFixed(1);
388
- player.setSpeed(speed);
389
- player._speed = speed;
390
- }
391
-
392
- if (opts.startAt) {
393
- player.seek(opts.startAt);
394
- }
395
-
396
- if (Object.keys(qualitySource).length) {
397
- var defaultKey = Object.keys(qualitySource)[0];
398
-
399
- if (qualitySource['720P']) {
400
- defaultKey = '720P';
401
- } else {
402
- defaultKey = '480P';
403
- }
348
+ if (opts.speed) {
349
+ var speed = Number(opts.speed).toFixed(1);
350
+ player.setSpeed(speed);
351
+ player._speed = speed;
352
+ }
404
353
 
405
- player.getComponent('QualityComponent').setCurrentQuality(defaultKey, defaultKey);
406
- }
354
+ if (opts.startAt) {
355
+ player.seek(opts.startAt);
356
+ }
407
357
 
408
- resolve(player);
409
- });
410
- return [2
411
- /*return*/
412
- ];
413
- }
414
- });
358
+ resolve(player);
415
359
  });
416
360
  });
417
361
  };
@@ -67,7 +67,7 @@ function (_super) {
67
67
  });
68
68
 
69
69
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
70
- _this.props.onChange(data[0].url, data[0].contentTitle, data[0].contentId);
70
+ _this.props.onChange(data[0].url, data[0].contentTitle);
71
71
  }
72
72
  };
73
73
 
@@ -39,12 +39,6 @@ Object.defineProperty(exports, "ColorPickerInput", {
39
39
  return _ColorPickerInput["default"];
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "CropperModal", {
43
- enumerable: true,
44
- get: function get() {
45
- return _CropperModal["default"];
46
- }
47
- });
48
42
  Object.defineProperty(exports, "Field", {
49
43
  enumerable: true,
50
44
  get: function get() {
@@ -194,6 +188,4 @@ var _CardCarousel = _interopRequireDefault(require("./CardCarousel"));
194
188
 
195
189
  var _MyModal = _interopRequireDefault(require("./MyModal"));
196
190
 
197
- var _CropperModal = _interopRequireDefault(require("./CropperModal"));
198
-
199
191
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -13,8 +13,6 @@ var _antd = require("antd");
13
13
 
14
14
  require("./index.less");
15
15
 
16
- var _locale = require("../../../../../locale");
17
-
18
16
  var _mobx = require("../../../../../mobx");
19
17
 
20
18
  var _coreUtil = require("../../../../../utils/coreUtil");
@@ -214,8 +212,8 @@ function (_super) {
214
212
  /** PTO 定制GA */
215
213
  if (window.magicDesign.pushGA) {
216
214
  window.magicDesign.pushGA({}, 'select_promotion', {
217
- event_section: data.type,
218
- promotion_name: item.image.content.h5ImgSrc ? item.image.content.h5Name : (0, _locale.i18n)('BANNER_GROUP_NAME')
215
+ event_label: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
216
+ promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
219
217
  });
220
218
  }
221
219
  },
@@ -231,7 +231,7 @@ function (_super) {
231
231
  case 0:
232
232
  return [4
233
233
  /*yield*/
234
- , (0, _commonUtil.commonFetch)('/designer/v1//h5/nuri/distribute/commission')];
234
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/commission')];
235
235
 
236
236
  case 1:
237
237
  infoObj = _a.sent();
@@ -268,8 +268,12 @@ function (_super) {
268
268
  };
269
269
 
270
270
  _this.clickJump = function (title) {
271
- if (title !== 'Voucher') {
272
- (0, _coreUtil.clickUrl)('/main/my-commission');
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');
273
277
  }
274
278
  };
275
279
 
@@ -291,7 +295,7 @@ function (_super) {
291
295
  }
292
296
 
293
297
  WalletNuriMobile.prototype.componentDidMount = function () {
294
- if (localStorage.getItem('isLogin') === 'Y') {
298
+ if (localStorage.getItem('isLogin') === 'Y' && !(0, _coreUtil.isDesignMode)()) {
295
299
  this.getInfo();
296
300
  }
297
301
  };
@@ -219,10 +219,8 @@ function (_super) {
219
219
  size: "20px",
220
220
  type: "icon-delete1"
221
221
  })))), panelProps.video.sourceType === 'Upload' && /*#__PURE__*/_react["default"].createElement(_common.VideoUpload, {
222
- onChange: function onChange(v, n, id) {
222
+ onChange: function onChange(v) {
223
223
  panelProps.video.sourceUrl = v;
224
- panelProps.video.sourceName = n;
225
- panelProps.video.sourceId = id;
226
224
 
227
225
  _this.reRender();
228
226
  },