@fonixtree/magic-design 0.1.58 → 0.1.61

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 (207) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +47 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +47 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/less/cylon-antd.less +17659 -23296
  10. package/es/assets/less/modal.less +1 -0
  11. package/es/assets/less/slider.less +49 -1
  12. package/es/common/ImagePicker/index.js +161 -64
  13. package/es/common/ImagePicker/index.less +103 -2
  14. package/es/common/LinkModal/AffiliateProductTable/index.js +347 -0
  15. package/es/common/LinkModal/SelectVideoModal/index.js +0 -2
  16. package/es/common/LinkModal/index.js +6 -0
  17. package/es/composite-comp/bol/components/Banner/index.js +42 -0
  18. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  19. package/es/composite-comp/bol/components/Banner/pc/index.js +4 -3
  20. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  21. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  22. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  23. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  24. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  25. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  26. package/es/composite-comp/bol/components/Video/index.js +24 -0
  27. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +7 -7
  28. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  29. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +7 -7
  30. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  31. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +8 -7
  32. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
  33. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  34. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  35. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +7 -7
  36. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  37. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +12 -12
  38. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  39. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +7 -7
  40. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  41. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +8 -8
  42. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  43. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +8 -8
  44. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  45. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  46. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  47. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
  48. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
  49. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  50. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  51. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  52. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  55. package/es/composite-comp/dito/components/PcNavigation/index.js +0 -1
  56. package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
  62. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
  63. package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
  64. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
  65. package/es/constants/index.js +2 -1
  66. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  67. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  68. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  69. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  70. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  71. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  72. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  73. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  74. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  75. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  76. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  77. package/es/core/Designer/AiImageGenerator/index.js +221 -0
  78. package/es/core/Designer/AiImageGenerator/index.less +79 -0
  79. package/es/core/Designer/ChatRobot/index.js +204 -0
  80. package/es/core/Designer/ChatRobot/index.less +74 -0
  81. package/es/core/Designer/index.js +13 -5
  82. package/es/locale/en/en.json +5 -0
  83. package/es/locale/es/es.json +5 -0
  84. package/es/locale/id/id.json +5 -0
  85. package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
  86. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  87. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  88. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  89. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  90. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  91. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  92. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  93. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  94. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  95. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  96. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +198 -0
  97. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  98. package/es/meta-comp/config-panels/PlayIconConfig/index.less +39 -0
  99. package/es/meta-comp/config-panels/TextConfig/index.js +3 -3
  100. package/es/mobx/Store.js +3 -0
  101. package/es/utils/businessUtil.js +12 -0
  102. package/es/utils/commonUtil.js +4 -3
  103. package/es/utils/coreUtil.js +2 -3
  104. package/lib/assets/fonts/.DS_Store +0 -0
  105. package/lib/assets/fonts/magic-box-iconfont.css +47 -3
  106. package/lib/assets/fonts/magic-box-iconfont.css.bak +47 -3
  107. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  108. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  109. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  110. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  111. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  112. package/lib/assets/less/cylon-antd.less +17659 -23296
  113. package/lib/assets/less/modal.less +1 -0
  114. package/lib/assets/less/slider.less +49 -1
  115. package/lib/common/ImagePicker/index.js +161 -64
  116. package/lib/common/ImagePicker/index.less +103 -2
  117. package/lib/common/LinkModal/AffiliateProductTable/index.js +347 -0
  118. package/lib/common/LinkModal/SelectVideoModal/index.js +0 -2
  119. package/lib/common/LinkModal/index.js +6 -0
  120. package/lib/composite-comp/bol/components/Banner/index.js +42 -0
  121. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  122. package/lib/composite-comp/bol/components/Banner/pc/index.js +4 -3
  123. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  124. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  125. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  126. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  127. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  128. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  129. package/lib/composite-comp/bol/components/Video/index.js +24 -0
  130. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +7 -7
  131. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
  132. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +7 -7
  133. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
  134. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +8 -7
  135. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -41
  136. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  137. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  138. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +7 -7
  139. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  140. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +12 -12
  141. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  142. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +7 -7
  143. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  144. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +8 -8
  145. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  146. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +8 -8
  147. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  148. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
  149. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  150. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
  151. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
  152. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  153. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +10 -1
  154. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  155. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  156. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  157. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  158. package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -1
  159. package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
  160. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  161. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
  162. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  163. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
  164. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
  165. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
  166. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
  167. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
  168. package/lib/constants/index.js +2 -1
  169. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  170. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  171. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  172. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  173. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  174. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  175. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  176. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  177. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +45 -0
  178. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +39 -0
  179. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  180. package/lib/core/Designer/AiImageGenerator/index.js +221 -0
  181. package/lib/core/Designer/AiImageGenerator/index.less +79 -0
  182. package/lib/core/Designer/ChatRobot/index.js +204 -0
  183. package/lib/core/Designer/ChatRobot/index.less +74 -0
  184. package/lib/core/Designer/index.js +13 -5
  185. package/lib/locale/en/en.json +5 -0
  186. package/lib/locale/es/es.json +5 -0
  187. package/lib/locale/id/id.json +5 -0
  188. package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
  189. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  190. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  191. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  192. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  193. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  194. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  195. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  196. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  197. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  198. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  199. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +198 -0
  200. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  201. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +39 -0
  202. package/lib/meta-comp/config-panels/TextConfig/index.js +3 -3
  203. package/lib/mobx/Store.js +3 -0
  204. package/lib/utils/businessUtil.js +12 -0
  205. package/lib/utils/commonUtil.js +4 -3
  206. package/lib/utils/coreUtil.js +2 -3
  207. package/package.json +2 -2
@@ -0,0 +1,74 @@
1
+ .chat_wrap {
2
+ .chat_btn_wrap {
3
+ position: absolute;
4
+ right: 24px;
5
+ top: 104px;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ z-index: 999;
10
+ height: 64px;
11
+ width: 64px;
12
+ background-color: #FFF;
13
+ border-radius: 50%;
14
+ cursor: pointer;
15
+ box-shadow: -3px -3px 12px rgba(45, 48, 64, 0.2), 3px 3px 12px rgba(45, 48, 64, 0.2);
16
+ }
17
+ }
18
+ .chat_drawer {
19
+ .dialog_head {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: space-between;
23
+ .dialog_title {
24
+ font-family: 'Open Sans';
25
+ font-style: normal;
26
+ font-weight: 600;
27
+ font-weight: 600;
28
+ font-size: 16px;
29
+ color: #232F46;
30
+ display: flex;
31
+ align-items: center;
32
+ }
33
+ }
34
+ .chat_content_wrap {
35
+ position: relative;
36
+ padding-bottom: 40px;
37
+ height: 100%;
38
+ .content_wrap {
39
+ height: 100%;
40
+ }
41
+ .regenerate_btn {
42
+ display: flex;
43
+ align-items: center;
44
+ position: absolute;
45
+ bottom: 0;
46
+ border: 1px solid #E6EAF0;
47
+ border-radius: 4px;
48
+ padding: 4px 12px;
49
+ left: 50%;
50
+ transform: translateX(-50%);
51
+ cursor: pointer;
52
+ font-family: 'Open Sans';
53
+ font-style: normal;
54
+ font-weight: 400;
55
+ font-size: 13px;
56
+ }
57
+ }
58
+ .dialog_bottom {
59
+ position: relative;
60
+ input {
61
+ padding-right: 60px !important;
62
+ }
63
+ .btn_wrap {
64
+ position: absolute;
65
+ right: 15px;
66
+ top: 0px;
67
+ width: 50px;
68
+ height: 36px;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: space-between;
72
+ }
73
+ }
74
+ }
@@ -15,6 +15,8 @@ var _mobxReact = require("mobx-react");
15
15
 
16
16
  var _antd = require("antd");
17
17
 
18
+ var _ChatRobot = _interopRequireDefault(require("./ChatRobot"));
19
+
18
20
  var _CompListPanel = _interopRequireDefault(require("./CompListPanel"));
19
21
 
20
22
  var _PageCompList = _interopRequireDefault(require("./PageCompList"));
@@ -33,6 +35,8 @@ var _LeftTitle = _interopRequireDefault(require("./LeftTitle"));
33
35
 
34
36
  var _RenderHtml = _interopRequireDefault(require("./RenderHtml"));
35
37
 
38
+ var _AiImageGenerator = _interopRequireDefault(require("./AiImageGenerator"));
39
+
36
40
  var _componentTypes = require("../../constants/component-types");
37
41
 
38
42
  var _mobx = require("../../mobx");
@@ -645,11 +649,15 @@ function (_super) {
645
649
 
646
650
  window.document.addEventListener('render-view', this.reRenderViewArea);
647
651
  this.destory = (0, _mobx.autorun)(function () {
652
+ var stateObj = {
653
+ imgGenVisible: _mobx.store.imgGenVisible
654
+ };
655
+
648
656
  if (_this.state.locale != _mobx.store.locale) {
649
- _this.setState({
650
- locale: _mobx.store.locale
651
- });
657
+ stateObj.locale = _mobx.store.locale;
652
658
  }
659
+
660
+ _this.setState(stateObj);
653
661
  });
654
662
  };
655
663
 
@@ -722,7 +730,7 @@ function (_super) {
722
730
  magic_design: ""
723
731
  }, /*#__PURE__*/_react["default"].createElement("div", {
724
732
  className: "designer-wrap"
725
- }, /*#__PURE__*/_react["default"].createElement(_PageCompList["default"], {
733
+ }, /*#__PURE__*/_react["default"].createElement(_ChatRobot["default"], null), /*#__PURE__*/_react["default"].createElement(_PageCompList["default"], {
726
734
  onAdd: this.onAdd,
727
735
  pageData: MPageData,
728
736
  pageName: pageName,
@@ -756,7 +764,7 @@ function (_super) {
756
764
  },
757
765
  onConfirm: this.onAppointmentConfirm,
758
766
  visible: appointmentVisible
759
- })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.SystemNotification, null))), /*#__PURE__*/_react["default"].createElement(_RenderHtml["default"], {
767
+ }), /*#__PURE__*/_react["default"].createElement(_AiImageGenerator["default"], null)), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.SystemNotification, null))), /*#__PURE__*/_react["default"].createElement(_RenderHtml["default"], {
760
768
  ref: this.renderHtmlRef
761
769
  }));
762
770
  };
@@ -1,4 +1,9 @@
1
1
  {
2
+ "DARK": "Dark",
3
+ "LIGHT": "Light",
4
+ "AI_IMAGE": "AI Image",
5
+ "IMAGE_URL": "Image URL",
6
+ "UPLOAD": "Upload",
2
7
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
3
8
  "CHAT": "Chat",
4
9
  "FOLLOW": "Follow",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "DARK": "Dark",
3
+ "LIGHT": "Light",
4
+ "AI_IMAGE": "AI Image",
5
+ "IMAGE_URL": "Image URL",
6
+ "UPLOAD": "Upload",
2
7
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
3
8
  "CHAT": "Chat",
4
9
  "FOLLOW": "Follow",
@@ -1,4 +1,9 @@
1
1
  {
2
+ "DARK": "Dark",
3
+ "LIGHT": "Light",
4
+ "AI_IMAGE": "AI Image",
5
+ "IMAGE_URL": "Image URL",
6
+ "UPLOAD": "Upload",
2
7
  "HOW_LONG_BETWEEN_SLIDES_(SECS)": "How long between slides (secs)",
3
8
  "CHAT": "Chat",
4
9
  "FOLLOW": "Follow",
@@ -218,7 +218,7 @@ function (_super) {
218
218
  /*break*/
219
219
  , 3];
220
220
  data.content.pcImgSrc = v.url;
221
- data.content.pcName = v.contentTitle;
221
+ data.content.pcName = v.contentTitle || '';
222
222
  if (!data.content.pcImgSrc) return [3
223
223
  /*break*/
224
224
  , 2];
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 4.5C8.86522 4.5 4.5 8.86522 4.5 14.25C4.5 19.6348 8.86522 24 14.25 24C19.6348 24 24 19.6348 24 14.25C24 8.86522 19.6348 4.5 14.25 4.5ZM3 14.25C3 8.0368 8.0368 3 14.25 3C20.4632 3 25.5 8.0368 25.5 14.25C25.5 20.4632 20.4632 25.5 14.25 25.5C8.0368 25.5 3 20.4632 3 14.25Z" fill="black"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.0887C12.14 9.95823 12.4359 9.97254 12.666 10.126L17.916 13.626C18.1247 13.7651 18.25 13.9992 18.25 14.25C18.25 14.5008 18.1247 14.7349 17.916 14.874L12.666 18.374C12.4359 18.5275 12.14 18.5418 11.8961 18.4113C11.6522 18.2807 11.5 18.0266 11.5 17.75V10.75C11.5 10.4734 11.6522 10.2193 11.8961 10.0887Z" fill="black"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14 2.625C11.7502 2.625 9.551 3.29213 7.68039 4.54203C5.80978 5.79193 4.35182 7.56847 3.49088 9.64698C2.62993 11.7255 2.40467 14.0126 2.84357 16.2192C3.28248 18.4257 4.36584 20.4525 5.95667 22.0433C7.54749 23.6342 9.57432 24.7175 11.7809 25.1564C13.9874 25.5953 16.2745 25.3701 18.353 24.5091C20.4315 23.6482 22.2081 22.1902 23.458 20.3196C24.7079 18.449 25.375 16.2498 25.375 14C25.3692 10.9849 24.1689 8.09502 22.037 5.96305C19.905 3.83107 17.0151 2.63078 14 2.625Z" fill="black"/>
3
+ <path d="M17.9813 14.7322L12.7313 18.2322C12.5865 18.3218 12.4203 18.3709 12.25 18.3744C12.1057 18.3743 11.9634 18.3406 11.8344 18.276C11.6945 18.2005 11.5778 18.0883 11.4969 17.9515C11.416 17.8147 11.3738 17.6584 11.375 17.4994V10.4994C11.3738 10.3405 11.416 10.1842 11.4969 10.0474C11.5778 9.91054 11.6945 9.79836 11.8344 9.72286C11.9749 9.65176 12.1314 9.61841 12.2886 9.62608C12.4459 9.63375 12.5984 9.68218 12.7313 9.76661L17.9813 13.2666C18.1031 13.3461 18.2033 13.4548 18.2726 13.5827C18.3419 13.7107 18.3781 13.8539 18.3781 13.9994C18.3781 14.1449 18.3419 14.2882 18.2726 14.4161C18.2033 14.5441 18.1031 14.6527 17.9813 14.7322Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25 6.5H3C2.17157 6.5 1.5 7.17157 1.5 8V21C1.5 21.8284 2.17157 22.5 3 22.5H25C25.8284 22.5 26.5 21.8284 26.5 21V8C26.5 7.17157 25.8284 6.5 25 6.5ZM3 5C1.34315 5 0 6.34315 0 8V21C0 22.6569 1.34315 24 3 24H25C26.6569 24 28 22.6569 28 21V8C28 6.34315 26.6569 5 25 5H3Z" fill="black"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.3387C12.14 10.2082 12.4359 10.2225 12.666 10.376L17.916 13.876C18.1247 14.0151 18.25 14.2492 18.25 14.5C18.25 14.7508 18.1247 14.9849 17.916 15.124L12.666 18.624C12.4359 18.7775 12.14 18.7918 11.8961 18.6613C11.6522 18.5307 11.5 18.2766 11.5 18V11C11.5 10.7234 11.6522 10.4693 11.8961 10.3387Z" fill="black"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect y="4" width="28" height="20" rx="3" fill="black"/>
3
+ <path d="M17.6063 14.6072L12.3563 18.1072C12.2115 18.1968 12.0453 18.2459 11.875 18.2494C11.7307 18.2493 11.5884 18.2156 11.4594 18.151C11.3195 18.0755 11.2028 17.9633 11.1219 17.8265C11.041 17.6897 10.9988 17.5334 11 17.3744V10.3744C10.9988 10.2155 11.041 10.0592 11.1219 9.92236C11.2028 9.78554 11.3195 9.67336 11.4594 9.59786C11.5999 9.52676 11.7564 9.49341 11.9136 9.50108C12.0709 9.50875 12.2234 9.55718 12.3563 9.64161L17.6063 13.1416C17.7281 13.2211 17.8283 13.3298 17.8976 13.4577C17.9669 13.5857 18.0031 13.7289 18.0031 13.8744C18.0031 14.0199 17.9669 14.1632 17.8976 14.2911C17.8283 14.4191 17.7281 14.5277 17.6063 14.6072Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21.4288 12.9462L10.7945 6.18518C10.6174 6.06826 10.4128 6.00428 10.2032 6.00021C9.99348 5.99614 9.78676 6.05214 9.60557 6.1621C9.42169 6.26718 9.26841 6.42193 9.16184 6.61008C9.05528 6.79823 8.99937 7.01281 9.00001 7.23126V20.7687C8.99937 20.9872 9.05528 21.2018 9.16184 21.3899C9.26841 21.5781 9.42169 21.7328 9.60557 21.8379C9.78676 21.9479 9.99348 22.0039 10.2032 21.9998C10.4128 21.9957 10.6174 21.9317 10.7945 21.8148L21.4288 15.0538C21.6031 14.9443 21.7473 14.7897 21.8473 14.6051C21.9474 14.4204 22 14.212 22 14C22 13.788 21.9474 13.5796 21.8473 13.3949C21.7473 13.2103 21.6031 13.0558 21.4288 12.9462Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 4.5C8.86522 4.5 4.5 8.86522 4.5 14.25C4.5 19.6348 8.86522 24 14.25 24C19.6348 24 24 19.6348 24 14.25C24 8.86522 19.6348 4.5 14.25 4.5ZM3 14.25C3 8.0368 8.0368 3 14.25 3C20.4632 3 25.5 8.0368 25.5 14.25C25.5 20.4632 20.4632 25.5 14.25 25.5C8.0368 25.5 3 20.4632 3 14.25Z" fill="white"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.0887C12.14 9.95823 12.4359 9.97254 12.666 10.126L17.916 13.626C18.1247 13.7651 18.25 13.9992 18.25 14.25C18.25 14.5008 18.1247 14.7349 17.916 14.874L12.666 18.374C12.4359 18.5275 12.14 18.5418 11.8961 18.4113C11.6522 18.2807 11.5 18.0266 11.5 17.75V10.75C11.5 10.4734 11.6522 10.2193 11.8961 10.0887Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14 2.625C11.7502 2.625 9.551 3.29213 7.68039 4.54203C5.80978 5.79193 4.35182 7.56847 3.49088 9.64698C2.62993 11.7255 2.40467 14.0126 2.84357 16.2192C3.28248 18.4257 4.36584 20.4525 5.95667 22.0433C7.54749 23.6342 9.57432 24.7175 11.7809 25.1564C13.9874 25.5953 16.2745 25.3701 18.353 24.5091C20.4315 23.6482 22.2081 22.1902 23.458 20.3196C24.7079 18.449 25.375 16.2498 25.375 14C25.3692 10.9849 24.1689 8.09502 22.037 5.96305C19.905 3.83107 17.0151 2.63078 14 2.625Z" fill="white"/>
3
+ <path d="M17.9813 14.7322L12.7313 18.2322C12.5865 18.3218 12.4203 18.3709 12.25 18.3744C12.1057 18.3743 11.9634 18.3406 11.8344 18.276C11.6945 18.2005 11.5778 18.0883 11.4969 17.9515C11.416 17.8147 11.3738 17.6584 11.375 17.4994V10.4994C11.3738 10.3405 11.416 10.1842 11.4969 10.0474C11.5778 9.91054 11.6945 9.79836 11.8344 9.72286C11.9749 9.65176 12.1314 9.61841 12.2886 9.62608C12.4459 9.63375 12.5984 9.68218 12.7313 9.76661L17.9813 13.2666C18.1031 13.3461 18.2033 13.4548 18.2726 13.5827C18.3419 13.7107 18.3781 13.8539 18.3781 13.9994C18.3781 14.1449 18.3419 14.2882 18.2726 14.4161C18.2033 14.5441 18.1031 14.6527 17.9813 14.7322Z" fill="black"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25 6.5H3C2.17157 6.5 1.5 7.17157 1.5 8V21C1.5 21.8284 2.17157 22.5 3 22.5H25C25.8284 22.5 26.5 21.8284 26.5 21V8C26.5 7.17157 25.8284 6.5 25 6.5ZM3 5C1.34315 5 0 6.34315 0 8V21C0 22.6569 1.34315 24 3 24H25C26.6569 24 28 22.6569 28 21V8C28 6.34315 26.6569 5 25 5H3Z" fill="white"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.8961 10.3387C12.14 10.2082 12.4359 10.2225 12.666 10.376L17.916 13.876C18.1247 14.0151 18.25 14.2492 18.25 14.5C18.25 14.7508 18.1247 14.9849 17.916 15.124L12.666 18.624C12.4359 18.7775 12.14 18.7918 11.8961 18.6613C11.6522 18.5307 11.5 18.2766 11.5 18V11C11.5 10.7234 11.6522 10.4693 11.8961 10.3387Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect y="4" width="28" height="20" rx="3" fill="white"/>
3
+ <path d="M17.6063 14.6072L12.3563 18.1072C12.2115 18.1968 12.0453 18.2459 11.875 18.2494C11.7307 18.2493 11.5884 18.2156 11.4594 18.151C11.3195 18.0755 11.2028 17.9633 11.1219 17.8265C11.041 17.6897 10.9988 17.5334 11 17.3744V10.3744C10.9988 10.2155 11.041 10.0592 11.1219 9.92236C11.2028 9.78554 11.3195 9.67336 11.4594 9.59786C11.5999 9.52676 11.7564 9.49341 11.9136 9.50108C12.0709 9.50875 12.2234 9.55718 12.3563 9.64161L17.6063 13.1416C17.7281 13.2211 17.8283 13.3298 17.8976 13.4577C17.9669 13.5857 18.0031 13.7289 18.0031 13.8744C18.0031 14.0199 17.9669 14.1632 17.8976 14.2911C17.8283 14.4191 17.7281 14.5277 17.6063 14.6072Z" fill="black"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M21.4288 12.9462L10.7945 6.18518C10.6174 6.06826 10.4128 6.00428 10.2032 6.00021C9.99348 5.99614 9.78676 6.05214 9.60557 6.1621C9.42169 6.26718 9.26841 6.42193 9.16184 6.61008C9.05528 6.79823 8.99937 7.01281 9.00001 7.23126V20.7687C8.99937 20.9872 9.05528 21.2018 9.16184 21.3899C9.26841 21.5781 9.42169 21.7328 9.60557 21.8379C9.78676 21.9479 9.99348 22.0039 10.2032 21.9998C10.4128 21.9957 10.6174 21.9317 10.7945 21.8148L21.4288 15.0538C21.6031 14.9443 21.7473 14.7897 21.8473 14.6051C21.9474 14.4204 22 14.212 22 14C22 13.788 21.9474 13.5796 21.8473 13.3949C21.7473 13.2103 21.6031 13.0558 21.4288 12.9462Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = PlaySvg;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ 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; }
15
+
16
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) {
18
+ return value instanceof P ? value : new P(function (resolve) {
19
+ resolve(value);
20
+ });
21
+ }
22
+
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) {
25
+ try {
26
+ step(generator.next(value));
27
+ } catch (e) {
28
+ reject(e);
29
+ }
30
+ }
31
+
32
+ function rejected(value) {
33
+ try {
34
+ step(generator["throw"](value));
35
+ } catch (e) {
36
+ reject(e);
37
+ }
38
+ }
39
+
40
+ function step(result) {
41
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
42
+ }
43
+
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+
48
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
49
+ var _ = {
50
+ label: 0,
51
+ sent: function sent() {
52
+ if (t[0] & 1) throw t[1];
53
+ return t[1];
54
+ },
55
+ trys: [],
56
+ ops: []
57
+ },
58
+ f,
59
+ y,
60
+ t,
61
+ g;
62
+ return g = {
63
+ next: verb(0),
64
+ "throw": verb(1),
65
+ "return": verb(2)
66
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
67
+ return this;
68
+ }), g;
69
+
70
+ function verb(n) {
71
+ return function (v) {
72
+ return step([n, v]);
73
+ };
74
+ }
75
+
76
+ function step(op) {
77
+ if (f) throw new TypeError("Generator is already executing.");
78
+
79
+ while (_) {
80
+ try {
81
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
82
+ if (y = 0, t) op = [op[0] & 2, t.value];
83
+
84
+ switch (op[0]) {
85
+ case 0:
86
+ case 1:
87
+ t = op;
88
+ break;
89
+
90
+ case 4:
91
+ _.label++;
92
+ return {
93
+ value: op[1],
94
+ done: false
95
+ };
96
+
97
+ case 5:
98
+ _.label++;
99
+ y = op[1];
100
+ op = [0];
101
+ continue;
102
+
103
+ case 7:
104
+ op = _.ops.pop();
105
+
106
+ _.trys.pop();
107
+
108
+ continue;
109
+
110
+ default:
111
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
112
+ _ = 0;
113
+ continue;
114
+ }
115
+
116
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
117
+ _.label = op[1];
118
+ break;
119
+ }
120
+
121
+ if (op[0] === 6 && _.label < t[1]) {
122
+ _.label = t[1];
123
+ t = op;
124
+ break;
125
+ }
126
+
127
+ if (t && _.label < t[2]) {
128
+ _.label = t[2];
129
+
130
+ _.ops.push(op);
131
+
132
+ break;
133
+ }
134
+
135
+ if (t[2]) _.ops.pop();
136
+
137
+ _.trys.pop();
138
+
139
+ continue;
140
+ }
141
+
142
+ op = body.call(thisArg, _);
143
+ } catch (e) {
144
+ op = [6, e];
145
+ y = 0;
146
+ } finally {
147
+ f = t = 0;
148
+ }
149
+ }
150
+
151
+ if (op[0] & 5) throw op[1];
152
+ return {
153
+ value: op[0] ? op[1] : void 0,
154
+ done: true
155
+ };
156
+ }
157
+ };
158
+
159
+ function PlaySvg(props) {
160
+ var _this = this;
161
+
162
+ var _a = (0, _react.useState)(null),
163
+ imgSrc = _a[0],
164
+ setImgSrc = _a[1];
165
+
166
+ var getImageUrl = function getImageUrl() {
167
+ return __awaiter(_this, void 0, void 0, function () {
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0:
171
+ return [4
172
+ /*yield*/
173
+ , Promise.resolve("".concat("./images/" + props.imgName + ".svg")).then(function (s) {
174
+ return _interopRequireWildcard(require(s));
175
+ })];
176
+
177
+ case 1:
178
+ return [2
179
+ /*return*/
180
+ , _a.sent()];
181
+ }
182
+ });
183
+ });
184
+ };
185
+
186
+ (0, _react.useEffect)(function () {
187
+ getImageUrl().then(function (v) {
188
+ setImgSrc(v["default"]);
189
+ });
190
+ });
191
+ return /*#__PURE__*/_react["default"].createElement("img", {
192
+ alt: "icon",
193
+ src: imgSrc,
194
+ style: {
195
+ width: props.imgWidth
196
+ }
197
+ });
198
+ }
@@ -0,0 +1,211 @@
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
+ var _antd = require("antd");
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ require("./index.less");
15
+
16
+ var _PlaySvg = _interopRequireDefault(require("./PlaySvg"));
17
+
18
+ var _BaseConfig = _interopRequireDefault(require("../BaseConfig"));
19
+
20
+ var _common = require("../../../common");
21
+
22
+ var _locale = require("../../../locale");
23
+
24
+ var _coreUtil = require("../../../utils/coreUtil");
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+ /* eslint-disable react/no-this-in-sfc */
54
+
55
+
56
+ var Option = _antd.Select.Option;
57
+ var iconColorList = [{
58
+ key: 'Light',
59
+ value: (0, _locale.i18n)('LIGHT')
60
+ }, {
61
+ key: 'Dark',
62
+ value: (0, _locale.i18n)('DARK')
63
+ }];
64
+ var DarkIconList = [{
65
+ iconName: 'dark-playicon-01'
66
+ }, {
67
+ iconName: 'dark-playicon-02'
68
+ }, {
69
+ iconName: 'dark-playicon-03'
70
+ }, {
71
+ iconName: 'dark-playicon-04'
72
+ }, {
73
+ iconName: 'dark-playicon-05'
74
+ }];
75
+ var LightIconList = [{
76
+ iconName: 'light-playicon-01'
77
+ }, {
78
+ iconName: 'light-playicon-02'
79
+ }, {
80
+ iconName: 'light-playicon-03'
81
+ }, {
82
+ iconName: 'light-playicon-04'
83
+ }, {
84
+ iconName: 'light-playicon-05'
85
+ }];
86
+ var iconList = LightIconList;
87
+
88
+ var PlayIconConfig =
89
+ /** @class */
90
+ function (_super) {
91
+ __extends(PlayIconConfig, _super);
92
+
93
+ function PlayIconConfig() {
94
+ var _this = _super !== null && _super.apply(this, arguments) || this;
95
+
96
+ _this.state = {
97
+ iconSelectedIndex: 0
98
+ };
99
+
100
+ _this.reRender = function () {
101
+ (0, _coreUtil.renderPreview)();
102
+
103
+ _this.setState({});
104
+ };
105
+
106
+ return _this;
107
+ }
108
+
109
+ PlayIconConfig.prototype.componentDidMount = function () {
110
+ window.document.addEventListener('button-render', this.selfRender);
111
+ iconList = this.props.data.iconColor === 'Light' ? LightIconList : DarkIconList;
112
+ };
113
+
114
+ PlayIconConfig.prototype.componentWillUnmount = function () {
115
+ window.document.removeEventListener('button-render', this.selfRender);
116
+ };
117
+
118
+ PlayIconConfig.prototype.render = function () {
119
+ var _this = this;
120
+
121
+ var data = this.props.data;
122
+ var iconSelectedIndex = this.state.iconSelectedIndex;
123
+ return /*#__PURE__*/_react["default"].createElement("div", {
124
+ className: "play-config"
125
+ }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
126
+ split: true,
127
+ title: "Play Icon Type"
128
+ }, /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "icon-wrap"
130
+ }, iconList.map(function (item, i) {
131
+ return /*#__PURE__*/_react["default"].createElement("div", {
132
+ key: item.iconName,
133
+ className: (0, _classnames["default"])('icon-item-wrap', {
134
+ 'icon-selected-wrap': i === iconSelectedIndex
135
+ }),
136
+ onClick: function onClick() {
137
+ _this.setState({
138
+ iconSelectedIndex: i
139
+ });
140
+
141
+ data.iconType = item.iconName;
142
+
143
+ _this.reRender();
144
+ }
145
+ }, /*#__PURE__*/_react["default"].createElement("div", {
146
+ className: "selected-icon"
147
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
148
+ color: "#fff",
149
+ size: 8,
150
+ type: "icon-vector"
151
+ })), /*#__PURE__*/_react["default"].createElement(_PlaySvg["default"], {
152
+ imgName: item.iconName,
153
+ imgWidth: 28
154
+ }));
155
+ }))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
156
+ split: true,
157
+ title: "Play Icon Color"
158
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
159
+ className: "icon-color-select",
160
+ onChange: function onChange(value) {
161
+ data.iconColor = value;
162
+ iconList = value === 'Light' ? LightIconList : DarkIconList;
163
+ data.iconType = iconList[iconSelectedIndex].iconName;
164
+
165
+ _this.reRender();
166
+ },
167
+ size: "large",
168
+ value: data.iconColor
169
+ }, iconColorList.map(function (v) {
170
+ return /*#__PURE__*/_react["default"].createElement(Option, {
171
+ key: v.key,
172
+ value: v.key
173
+ }, v.value);
174
+ }))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
175
+ title: "Play Icon Size"
176
+ }, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
177
+ inputType: "int",
178
+ maxVal: 100,
179
+ minVal: 40,
180
+ onChange: function onChange(_a) {
181
+ var count = _a.count;
182
+
183
+ if ((0, _coreUtil.isPc)()) {
184
+ data.pcSize = count;
185
+ } else {
186
+ data.size = count;
187
+ }
188
+
189
+ _this.reRender();
190
+ },
191
+ value: {
192
+ count: (0, _coreUtil.isPc)() ? data.pcSize : data.size
193
+ }
194
+ })));
195
+ };
196
+
197
+ PlayIconConfig.defaultProps = {
198
+ data: {
199
+ open: false,
200
+ type: 'PLAY',
201
+ size: 48,
202
+ pcSize: 60,
203
+ iconType: 'light-playicon-01',
204
+ iconColor: 'Light'
205
+ }
206
+ };
207
+ return PlayIconConfig;
208
+ }(_BaseConfig["default"]);
209
+
210
+ var _default = PlayIconConfig;
211
+ exports["default"] = _default;