@fonixtree/magic-design 0.1.85 → 0.1.87

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 (219) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +30 -6
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  7. package/es/common/CountDown/index.js +20 -11
  8. package/es/common/CropperModal/index.js +126 -0
  9. package/es/common/CropperModal/index.less +29 -0
  10. package/es/common/GroupList/index.js +7 -2
  11. package/es/common/LinkModal/AffiliateStore/index.js +332 -0
  12. package/es/common/LinkModal/SelectVideoModal/index.js +3 -2
  13. package/es/common/LinkModal/index.js +14 -5
  14. package/es/common/ProductModal/SortableImageList/index.js +118 -0
  15. package/es/common/ProductModal/SortableImageList/index.less +3 -0
  16. package/es/common/ProductModal/index.js +40 -27
  17. package/es/common/UrlPicker/index.js +1 -10
  18. package/es/common/Video/QualityComponent/index.js +169 -0
  19. package/es/common/Video/QualityComponent/index.less +78 -0
  20. package/es/common/Video/index.js +142 -86
  21. package/es/common/VideoUpload/index.js +1 -1
  22. package/es/common/index.js +8 -0
  23. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  24. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -4
  25. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +3 -4
  26. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -4
  27. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -4
  28. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -4
  29. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +3 -4
  30. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -4
  31. package/es/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +3 -3
  32. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +3 -4
  33. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +3 -4
  34. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +3 -1
  35. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
  36. package/es/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
  37. package/es/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
  38. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +2 -15
  39. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  40. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  41. package/es/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  42. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +113 -0
  43. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  44. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  45. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  46. package/es/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  47. package/es/composite-comp/dito/components/Orders/index.js +84 -0
  48. package/es/composite-comp/dito/components/Orders/mobile/index.js +350 -0
  49. package/es/composite-comp/dito/components/Orders/mobile/index.less +86 -0
  50. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  51. package/es/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  52. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  53. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +592 -0
  54. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +135 -0
  55. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  56. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  57. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +127 -0
  58. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  59. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +3 -4
  60. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +3 -4
  61. package/es/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -4
  62. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +130 -0
  63. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  64. package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -4
  65. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +130 -0
  66. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  67. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +2 -16
  68. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +121 -0
  69. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  70. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  71. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  72. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  73. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  74. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  75. package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
  76. package/{lib/composite-comp/dito → es/composite-comp/nuri}/components/AffiliateRecommend/pc/index.js +12 -10
  77. package/{lib/composite-comp/dito → es/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +3 -17
  78. package/es/constants/component-types.js +24 -6
  79. package/es/constants/index.js +38 -3
  80. package/es/core/Designer/ConfigPanel/index.js +6 -0
  81. package/es/core/Designer/ToolBarModal/index.js +5 -1
  82. package/es/core/Renderer/index.js +6 -2
  83. package/es/decorator/compositeDecorator.js +10 -6
  84. package/es/decorator/index.js +4 -1
  85. package/es/decorator/metaDecorator.js +6 -2
  86. package/es/locale/en/en.json +15 -1
  87. package/es/locale/es/es.json +15 -1
  88. package/es/locale/id/id.json +15 -1
  89. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  90. package/es/mobx/UserState.js +144 -0
  91. package/es/mobx/index.js +9 -3
  92. package/es/utils/androidUtil.js +14 -2
  93. package/es/utils/businessUtil.js +12 -0
  94. package/es/utils/commonUtil.js +138 -8
  95. package/es/utils/coreUtil.js +39 -28
  96. package/lib/assets/fonts/.DS_Store +0 -0
  97. package/lib/assets/fonts/magic-box-iconfont.css +30 -6
  98. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  99. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  100. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  101. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  102. package/lib/common/CountDown/index.js +20 -11
  103. package/lib/common/CropperModal/index.js +126 -0
  104. package/lib/common/CropperModal/index.less +29 -0
  105. package/lib/common/GroupList/index.js +7 -2
  106. package/lib/common/LinkModal/AffiliateStore/index.js +332 -0
  107. package/lib/common/LinkModal/SelectVideoModal/index.js +3 -2
  108. package/lib/common/LinkModal/index.js +14 -5
  109. package/lib/common/ProductModal/SortableImageList/index.js +118 -0
  110. package/lib/common/ProductModal/SortableImageList/index.less +3 -0
  111. package/lib/common/ProductModal/index.js +40 -27
  112. package/lib/common/UrlPicker/index.js +1 -10
  113. package/lib/common/Video/QualityComponent/index.js +169 -0
  114. package/lib/common/Video/QualityComponent/index.less +78 -0
  115. package/lib/common/Video/index.js +142 -86
  116. package/lib/common/VideoUpload/index.js +1 -1
  117. package/lib/common/index.js +8 -0
  118. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -2
  119. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -4
  120. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigGroup/index.js +3 -4
  121. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -4
  122. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -4
  123. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -4
  124. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigGroup/index.js +3 -4
  125. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -4
  126. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoConfigGroup/index.js +3 -3
  127. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +3 -4
  128. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +3 -4
  129. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +3 -1
  130. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-cashback.svg +9 -0
  131. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +25 -14
  132. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +31 -1
  133. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +2 -15
  134. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -0
  135. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +92 -0
  136. package/lib/composite-comp/dito/components/CommonFunctions/index.js +84 -0
  137. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +113 -0
  138. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +30 -0
  139. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -1
  140. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +11 -0
  141. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +89 -0
  142. package/lib/composite-comp/dito/components/Orders/index.js +84 -0
  143. package/lib/composite-comp/dito/components/Orders/mobile/index.js +350 -0
  144. package/lib/composite-comp/dito/components/Orders/mobile/index.less +86 -0
  145. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +95 -0
  146. package/lib/composite-comp/dito/components/PersonalInformation/index.js +84 -0
  147. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  148. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +592 -0
  149. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +135 -0
  150. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -2
  151. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +13 -1
  152. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +127 -0
  153. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +113 -0
  154. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +3 -4
  155. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +3 -4
  156. package/lib/composite-comp/dito/config-panels/MobileNavigationConfig/MobileNavigationConfigGroup/index.js +3 -4
  157. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +130 -0
  158. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +114 -0
  159. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -4
  160. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +130 -0
  161. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +118 -0
  162. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +2 -16
  163. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +121 -0
  164. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  165. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  166. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +148 -0
  167. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +9 -0
  168. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +143 -0
  169. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +9 -0
  170. package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.js +12 -10
  171. package/{es/composite-comp/dito → lib/composite-comp/nuri}/components/AffiliateRecommend/pc/index.js +12 -10
  172. package/{es/composite-comp/dito → lib/composite-comp/nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +3 -17
  173. package/lib/constants/component-types.js +24 -6
  174. package/lib/constants/index.js +38 -3
  175. package/lib/core/Designer/ConfigPanel/index.js +6 -0
  176. package/lib/core/Designer/ToolBarModal/index.js +5 -1
  177. package/lib/core/Renderer/index.js +6 -2
  178. package/lib/decorator/compositeDecorator.js +10 -6
  179. package/lib/decorator/index.js +4 -1
  180. package/lib/decorator/metaDecorator.js +6 -2
  181. package/lib/locale/en/en.json +15 -1
  182. package/lib/locale/es/es.json +15 -1
  183. package/lib/locale/id/id.json +15 -1
  184. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  185. package/lib/mobx/UserState.js +144 -0
  186. package/lib/mobx/index.js +9 -3
  187. package/lib/utils/androidUtil.js +14 -2
  188. package/lib/utils/businessUtil.js +12 -0
  189. package/lib/utils/commonUtil.js +138 -8
  190. package/lib/utils/coreUtil.js +39 -28
  191. package/package.json +2 -1
  192. /package/es/common/Video/{components → RateComponent}/index.js +0 -0
  193. /package/es/common/Video/{components → RateComponent}/index.less +0 -0
  194. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
  195. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
  196. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
  197. /package/es/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
  198. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  199. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  200. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  201. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  202. /package/es/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  203. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  204. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  205. /package/es/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
  206. /package/lib/common/Video/{components → RateComponent}/index.js +0 -0
  207. /package/lib/common/Video/{components → RateComponent}/index.less +0 -0
  208. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/defaultJSON.js +0 -0
  209. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/index.js +0 -0
  210. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/mobile/index.less +0 -0
  211. /package/lib/composite-comp/{dito → nuri}/components/AffiliateRecommend/pc/index.less +0 -0
  212. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -0
  213. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  214. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -0
  215. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  216. /package/lib/composite-comp/{dito → nuri}/config-panels/AffiliateRecommendConfig/index.js +0 -0
  217. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -0
  218. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -0
  219. /package/lib/composite-comp/{dito → nuri}/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -0
@@ -7,7 +7,9 @@ exports["default"] = exports.createVideoModal = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _components = _interopRequireDefault(require("./components"));
10
+ var _index = _interopRequireDefault(require("./RateComponent/index"));
11
+
12
+ var _index2 = _interopRequireDefault(require("./QualityComponent/index"));
11
13
 
12
14
  var _closeImg = _interopRequireDefault(require("./closeImg.png"));
13
15
 
@@ -267,95 +269,149 @@ var createAliVideo = function createAliVideo(domId, opts) {
267
269
  }
268
270
 
269
271
  return new Promise(function (resolve) {
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
- }
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;
325
276
 
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
- }
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')];
347
286
 
348
- if (opts.speed) {
349
- var speed = Number(opts.speed).toFixed(1);
350
- player.setSpeed(speed);
351
- player._speed = speed;
352
- }
287
+ case 1:
288
+ res = _a.sent();
289
+ qualitySource = {};
290
+ source = opts.source;
353
291
 
354
- if (opts.startAt) {
355
- player.seek(opts.startAt);
356
- }
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
+ }
357
303
 
358
- resolve(player);
304
+ if (Object.keys(qualitySource).length) {
305
+ source = JSON.stringify(qualitySource);
306
+ components.push({
307
+ name: 'QualityComponent',
308
+ type: _index2["default"]
309
+ });
310
+ }
311
+
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
+ }
365
+
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
+ }
404
+
405
+ player.getComponent('QualityComponent').setCurrentQuality(defaultKey, defaultKey);
406
+ }
407
+
408
+ resolve(player);
409
+ });
410
+ return [2
411
+ /*return*/
412
+ ];
413
+ }
414
+ });
359
415
  });
360
416
  });
361
417
  };
@@ -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);
70
+ _this.props.onChange(data[0].url, data[0].contentTitle, data[0].contentId);
71
71
  }
72
72
  };
73
73
 
@@ -39,6 +39,12 @@ 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
+ });
42
48
  Object.defineProperty(exports, "Field", {
43
49
  enumerable: true,
44
50
  get: function get() {
@@ -188,4 +194,6 @@ var _CardCarousel = _interopRequireDefault(require("./CardCarousel"));
188
194
 
189
195
  var _MyModal = _interopRequireDefault(require("./MyModal"));
190
196
 
197
+ var _CropperModal = _interopRequireDefault(require("./CropperModal"));
198
+
191
199
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -13,6 +13,8 @@ var _antd = require("antd");
13
13
 
14
14
  require("./index.less");
15
15
 
16
+ var _locale = require("../../../../../locale");
17
+
16
18
  var _mobx = require("../../../../../mobx");
17
19
 
18
20
  var _coreUtil = require("../../../../../utils/coreUtil");
@@ -212,8 +214,8 @@ function (_super) {
212
214
  /** PTO 定制GA */
213
215
  if (window.magicDesign.pushGA) {
214
216
  window.magicDesign.pushGA({}, 'select_promotion', {
215
- event_label: (0, _ConfigPanel.getSecondConfigName)(data, item.id),
216
- promotion_name: (0, _ConfigPanel.getSecondConfigName)(data, item.id)
217
+ event_section: data.type,
218
+ promotion_name: item.image.content.h5ImgSrc ? item.image.content.h5Name : (0, _locale.i18n)('BANNER_GROUP_NAME')
217
219
  });
218
220
  }
219
221
  },
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
11
 
14
12
  var _defaultJSON = require("../../../components/Banner/defaultJSON");
@@ -65,7 +63,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
65
63
  return c > 3 && r && Object.defineProperty(target, key, r), r;
66
64
  };
67
65
 
68
- var notice = 'For best results, use an image at least 1920px wide';
66
+ var notice = 'For best results, use an image at least 1920px wide'; // @inject('store')
67
+ // @observer
69
68
 
70
69
  var AComponent =
71
70
  /** @class */
@@ -152,7 +151,7 @@ function (_super) {
152
151
  AComponent.defaultProps = {
153
152
  source: []
154
153
  };
155
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
154
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
156
155
  return AComponent;
157
156
  }(_react["default"].Component);
158
157
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
11
 
14
12
  var _defaultJSON = require("../../../components/Button/defaultJSON");
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = '';
64
+ var notice = ''; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var AComponent =
69
68
  /** @class */
@@ -135,7 +134,7 @@ function (_super) {
135
134
  AComponent.defaultProps = {
136
135
  source: []
137
136
  };
138
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
137
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
139
138
  return AComponent;
140
139
  }(_react["default"].Component);
141
140
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _coreUtil = require("../../../../../utils/coreUtil");
13
11
 
14
12
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
64
+ var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var AComponent =
69
68
  /** @class */
@@ -140,7 +139,7 @@ function (_super) {
140
139
  AComponent.defaultProps = {
141
140
  source: []
142
141
  };
143
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
142
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
144
143
  return AComponent;
145
144
  }(_react["default"].Component);
146
145
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _coreUtil = require("../../../../../utils/coreUtil");
13
11
 
14
12
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
64
+ var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var AComponent =
69
68
  /** @class */
@@ -140,7 +139,7 @@ function (_super) {
140
139
  AComponent.defaultProps = {
141
140
  source: []
142
141
  };
143
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
142
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
144
143
  return AComponent;
145
144
  }(_react["default"].Component);
146
145
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
11
 
14
12
  var _coreUtil = require("../../../../../utils/coreUtil");
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = 'For best results, use an image at least 1920px wide';
64
+ var notice = 'For best results, use an image at least 1920px wide'; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var ImageTextConfigGroup =
69
68
  /** @class */
@@ -138,7 +137,7 @@ function (_super) {
138
137
  ImageTextConfigGroup.defaultProps = {
139
138
  source: []
140
139
  };
141
- ImageTextConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ImageTextConfigGroup);
140
+ ImageTextConfigGroup = __decorate([_decorator.updateConfigDecorator], ImageTextConfigGroup);
142
141
  return ImageTextConfigGroup;
143
142
  }(_react["default"].Component);
144
143
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
11
 
14
12
  var _defaultJSON = require("../../../components/Tag/defaultJSON");
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = '';
64
+ var notice = ''; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var AComponent =
69
68
  /** @class */
@@ -135,7 +134,7 @@ function (_super) {
135
134
  AComponent.defaultProps = {
136
135
  source: []
137
136
  };
138
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
137
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
139
138
  return AComponent;
140
139
  }(_react["default"].Component);
141
140
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _Button = _interopRequireDefault(require("../../../../../common/Button"));
13
11
 
14
12
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
@@ -63,7 +61,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
63
61
  return c > 3 && r && Object.defineProperty(target, key, r), r;
64
62
  };
65
63
 
66
- var notice = '';
64
+ var notice = ''; // @inject('store')
65
+ // @observer
67
66
 
68
67
  var default_1 =
69
68
  /** @class */
@@ -134,7 +133,7 @@ function (_super) {
134
133
  default_1.defaultProps = {
135
134
  source: []
136
135
  };
137
- default_1 = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], default_1);
136
+ default_1 = __decorate([_decorator.updateConfigDecorator], default_1);
138
137
  return default_1;
139
138
  }(_react["default"].Component);
140
139
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
11
 
14
12
  var _defaultJSON = require("../../../components/Video/defaultJSON");
@@ -65,6 +63,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
65
63
  /* eslint-disable import/named */
66
64
 
67
65
 
66
+ // @inject('store')
67
+ // @observer
68
68
  var AComponent =
69
69
  /** @class */
70
70
  function (_super) {
@@ -129,7 +129,7 @@ function (_super) {
129
129
  AComponent.defaultProps = {
130
130
  source: []
131
131
  };
132
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
132
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
133
133
  return AComponent;
134
134
  }(_react["default"].Component);
135
135
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _coreUtil = require("../../../../../utils/coreUtil");
13
11
 
14
12
  var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
@@ -61,7 +59,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
61
59
  return c > 3 && r && Object.defineProperty(target, key, r), r;
62
60
  };
63
61
 
64
- var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page.";
62
+ var notice = "Looks like you don't have any images in your gallery. Choose images to feature on this page."; // @inject('store')
63
+ // @observer
65
64
 
66
65
  var AComponent =
67
66
  /** @class */
@@ -137,7 +136,7 @@ function (_super) {
137
136
  AComponent.defaultProps = {
138
137
  source: []
139
138
  };
140
- AComponent = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], AComponent);
139
+ AComponent = __decorate([_decorator.updateConfigDecorator], AComponent);
141
140
  return AComponent;
142
141
  }(_react["default"].Component);
143
142
 
@@ -7,8 +7,6 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _mobxReact = require("mobx-react");
11
-
12
10
  var _coreUtil = require("../../../../../utils/coreUtil");
13
11
 
14
12
  var _decorator = require("../../../../../decorator");
@@ -55,7 +53,8 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
55
53
  return c > 3 && r && Object.defineProperty(target, key, r), r;
56
54
  };
57
55
 
58
- var notice = 'error';
56
+ var notice = 'error'; // @inject('store')
57
+ // @observer
59
58
 
60
59
  var WalletNuriConfigImageGroup =
61
60
  /** @class */
@@ -115,7 +114,7 @@ function (_super) {
115
114
  WalletNuriConfigImageGroup.defaultProps = {
116
115
  source: []
117
116
  };
118
- WalletNuriConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
117
+ WalletNuriConfigImageGroup = __decorate([_decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
119
118
  return WalletNuriConfigImageGroup;
120
119
  }(_react["default"].Component);
121
120
 
@@ -219,8 +219,10 @@ 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) {
222
+ onChange: function onChange(v, n, id) {
223
223
  panelProps.video.sourceUrl = v;
224
+ panelProps.video.sourceName = n;
225
+ panelProps.video.sourceId = id;
224
226
 
225
227
  _this.reRender();
226
228
  },