@fonixtree/magic-design 1.0.4 → 1.0.6

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 (509) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +67 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +67 -3
  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/images/layout-icon/imageTextLeft.svg +6 -0
  9. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  10. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  11. package/es/assets/less/slider.less +49 -1
  12. package/es/common/ColorPicker/index.js +4 -1
  13. package/es/common/Field/index.js +20 -3
  14. package/es/common/ImageLazy/index.js +172 -0
  15. package/es/common/ImageLazy/index.less +0 -0
  16. package/es/common/ImageModal/index.js +35 -2
  17. package/es/common/ImagePicker/index.js +76 -12
  18. package/es/common/ImagePicker/index.less +1 -0
  19. package/es/common/LinkModal/AffiliateProductTable/index.js +348 -0
  20. package/es/common/LinkModal/BundleCampaign/index.js +2 -2
  21. package/es/common/LinkModal/CatgTable/index.js +1 -1
  22. package/es/common/LinkModal/CouponTable/index.js +10 -2
  23. package/es/common/LinkModal/FilteredProductModal/index.js +5 -6
  24. package/es/common/LinkModal/ProductDetailPage/index.js +3 -3
  25. package/es/common/LinkModal/index.js +6 -0
  26. package/es/common/ProductModal/index.js +2 -2
  27. package/es/common/Video/index.js +11 -3
  28. package/es/common/Video/index.less +11 -7
  29. package/es/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  30. package/es/composite-comp/bol/components/Banner/index.js +15 -1
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  32. package/es/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  33. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -4
  34. package/es/composite-comp/bol/components/Button/index.js +3 -4
  35. package/es/composite-comp/bol/components/Carousel/index.js +27 -3
  36. package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  37. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  38. package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  39. package/es/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  40. package/es/composite-comp/bol/components/CustomCode/index.js +138 -0
  41. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  42. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  43. package/es/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  44. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  45. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  46. package/es/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  47. package/es/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  48. package/es/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  49. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  50. package/es/composite-comp/bol/components/Location/index.js +100 -0
  51. package/es/composite-comp/bol/components/Location/index.less +15 -0
  52. package/es/composite-comp/bol/components/Newsletter/index.js +1 -4
  53. package/es/composite-comp/bol/components/Tag/index.js +3 -4
  54. package/es/composite-comp/bol/components/Text/index.js +3 -4
  55. package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  56. package/es/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  57. package/es/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  58. package/es/composite-comp/bol/components/Video/index.js +23 -1
  59. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  60. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  61. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  62. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  63. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  64. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  65. package/es/composite-comp/bol/components/Video/mobile/index.js +8 -49
  66. package/es/composite-comp/bol/components/Video/mobile/index.less +2 -3
  67. package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  68. package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  69. package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  70. package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  71. package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  72. package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  73. package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  74. package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  75. package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  76. package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  77. package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  78. package/es/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  79. package/es/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  80. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  81. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  82. package/es/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  83. package/es/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  84. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  85. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  86. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  87. package/es/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  88. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  89. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  90. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  91. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  92. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  93. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  94. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  95. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  96. package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  97. package/es/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  98. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  99. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  100. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  101. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  102. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  103. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
  104. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
  105. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
  106. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  107. package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
  108. package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  109. package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  110. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  111. package/es/constants/component-types.js +10 -2
  112. package/es/constants/index.js +12 -2
  113. package/es/constants/layout.js +21 -1
  114. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  115. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  116. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  117. package/es/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  118. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  119. package/es/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  120. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  121. package/es/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  122. package/es/core/Designer/AiImageGenerator/History/index.js +147 -0
  123. package/es/core/Designer/AiImageGenerator/History/index.less +75 -0
  124. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  125. package/es/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  126. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  127. package/es/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  128. package/es/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  129. package/es/core/Designer/AiImageGenerator/index.js +752 -0
  130. package/es/core/Designer/AiImageGenerator/index.less +136 -0
  131. package/es/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  132. package/es/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  133. package/es/core/Designer/ChatRobot/index.js +343 -0
  134. package/es/core/Designer/ChatRobot/index.less +138 -0
  135. package/es/core/Designer/ChatRobot/markdown.less +1 -0
  136. package/es/core/Designer/ConfigPanel/index.js +2 -1
  137. package/es/core/Designer/FonixtreeGpt/index.js +160 -0
  138. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  139. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  140. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  141. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  142. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  143. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  144. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  145. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  146. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  147. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  148. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  149. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  150. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  151. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  152. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  153. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  154. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  155. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  156. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  157. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  158. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  159. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  160. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  161. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  162. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  163. package/es/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  164. package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  165. package/es/core/Designer/TextEditModal/index.js +100 -0
  166. package/es/core/Designer/TextEditModal/index.less +4 -0
  167. package/es/core/Designer/TextEditModal_old/index.js +142 -0
  168. package/es/core/Designer/TextEditModal_old/index.less +25 -0
  169. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  170. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  171. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  172. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  173. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  174. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  175. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  176. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  177. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  178. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  179. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  180. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  181. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  182. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  183. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  184. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  185. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  186. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  187. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  188. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  189. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  190. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  191. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  192. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  193. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  194. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  195. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  196. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  197. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  198. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  199. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  200. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  201. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  202. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  203. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  204. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  205. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  206. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  207. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  208. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  209. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  210. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  211. package/es/core/Designer/ToolBarModal/index.js +354 -0
  212. package/es/core/Designer/ToolBarModal/index.less +32 -0
  213. package/es/core/Designer/index.js +56 -15
  214. package/es/decorator/index.js +14 -0
  215. package/es/decorator/lazyLoadDecorator.js +75 -0
  216. package/es/decorator/metaDecorator.js +1 -1
  217. package/es/locale/en/en.json +10 -0
  218. package/es/locale/es/es.json +10 -0
  219. package/es/locale/id/id.json +10 -0
  220. package/es/meta-comp/components/Image/index.js +19 -3
  221. package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
  222. package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
  223. package/es/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  224. package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  225. package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  226. package/es/meta-comp/components/Text/index.js +103 -374
  227. package/es/meta-comp/components/Text/index.less +57 -0
  228. package/es/meta-comp/config-panels/ImageConfig/index.js +35 -12
  229. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  230. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  231. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  232. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  233. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  234. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  235. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  236. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  237. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  238. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  239. package/es/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  240. package/es/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  241. package/es/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  242. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  243. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  244. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  245. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  246. package/es/meta-comp/config-panels/TextConfig/index.js +14 -31
  247. package/es/meta-comp/config-panels/TextConfig/index.less +12 -16
  248. package/es/mobx/Frame.js +7 -1
  249. package/es/mobx/Store.js +3 -0
  250. package/es/utils/androidUtil.js +8 -1
  251. package/es/utils/businessUtil.js +13 -0
  252. package/es/utils/commonUtil.js +156 -34
  253. package/es/utils/coreUtil.js +18 -4
  254. package/lib/assets/fonts/magic-box-iconfont.css +67 -3
  255. package/lib/assets/fonts/magic-box-iconfont.css.bak +67 -3
  256. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  257. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  258. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  259. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  260. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  261. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  262. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  263. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  264. package/lib/assets/less/slider.less +49 -1
  265. package/lib/common/ColorPicker/index.js +4 -1
  266. package/lib/common/Field/index.js +20 -3
  267. package/lib/common/ImageLazy/index.js +172 -0
  268. package/lib/common/ImageLazy/index.less +0 -0
  269. package/lib/common/ImageModal/index.js +35 -2
  270. package/lib/common/ImagePicker/index.js +76 -12
  271. package/lib/common/ImagePicker/index.less +1 -0
  272. package/lib/common/LinkModal/AffiliateProductTable/index.js +348 -0
  273. package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
  274. package/lib/common/LinkModal/CatgTable/index.js +1 -1
  275. package/lib/common/LinkModal/CouponTable/index.js +10 -2
  276. package/lib/common/LinkModal/FilteredProductModal/index.js +5 -6
  277. package/lib/common/LinkModal/ProductDetailPage/index.js +3 -3
  278. package/lib/common/LinkModal/index.js +6 -0
  279. package/lib/common/ProductModal/index.js +2 -2
  280. package/lib/common/Video/index.js +11 -3
  281. package/lib/common/Video/index.less +11 -7
  282. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +1 -1
  283. package/lib/composite-comp/bol/components/Banner/index.js +15 -1
  284. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -4
  285. package/lib/composite-comp/bol/components/Banner/mobile/index.less +52 -78
  286. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -4
  287. package/lib/composite-comp/bol/components/Button/index.js +3 -4
  288. package/lib/composite-comp/bol/components/Carousel/index.js +27 -3
  289. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -24
  290. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -100
  291. package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -6
  292. package/lib/composite-comp/bol/components/CustomCode/defaultJSON.js +39 -0
  293. package/lib/composite-comp/bol/components/CustomCode/index.js +138 -0
  294. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +1 -4
  295. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -22
  296. package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +3 -4
  297. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +11 -2
  298. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -4
  299. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +233 -292
  300. package/lib/composite-comp/bol/components/ImageText/pc/index.js +98 -7
  301. package/lib/composite-comp/bol/components/ImageText/pc/index.less +32 -0
  302. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  303. package/lib/composite-comp/bol/components/Location/index.js +100 -0
  304. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  305. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -4
  306. package/lib/composite-comp/bol/components/Tag/index.js +3 -4
  307. package/lib/composite-comp/bol/components/Text/index.js +3 -4
  308. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +49 -10
  309. package/lib/composite-comp/bol/components/Video/components/VideoTag/index.less +5 -5
  310. package/lib/composite-comp/bol/components/Video/defaultJSON.js +10 -0
  311. package/lib/composite-comp/bol/components/Video/index.js +23 -1
  312. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +9 -12
  313. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +21 -27
  314. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +8 -11
  315. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +36 -45
  316. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +9 -11
  317. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +43 -50
  318. package/lib/composite-comp/bol/components/Video/mobile/index.js +8 -49
  319. package/lib/composite-comp/bol/components/Video/mobile/index.less +2 -3
  320. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +9 -12
  321. package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +2 -2
  322. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +15 -16
  323. package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +4 -4
  324. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +8 -11
  325. package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +2 -2
  326. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +9 -12
  327. package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +5 -4
  328. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +9 -12
  329. package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +12 -10
  330. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -4
  331. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +27 -40
  332. package/lib/composite-comp/bol/components/Wallet/pc/index.js +1 -4
  333. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +4 -0
  334. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
  335. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/MyEditor/index.js +42 -0
  336. package/lib/composite-comp/bol/config-panels/CustomCodeConfig/index.js +111 -0
  337. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -1
  338. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +149 -0
  339. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +12 -2
  340. package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +3 -1
  341. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +182 -2
  342. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +114 -2
  343. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +113 -2
  344. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +64 -3
  345. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +12 -2
  346. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +5 -3
  347. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +83 -97
  348. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +18 -35
  349. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  350. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +73 -86
  351. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  352. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  353. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +67 -7
  354. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +45 -52
  355. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  356. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +21 -37
  357. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +35 -24
  358. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +71 -80
  359. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  360. package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +0 -48
  361. package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
  362. package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +68 -1
  363. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  364. package/lib/constants/component-types.js +10 -2
  365. package/lib/constants/index.js +12 -2
  366. package/lib/constants/layout.js +21 -1
  367. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back1.png +0 -0
  368. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back2.png +0 -0
  369. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back3.png +0 -0
  370. package/lib/core/Designer/AiImageGenerator/GenerateArtist/images/back4.png +0 -0
  371. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.js +72 -0
  372. package/lib/core/Designer/AiImageGenerator/GenerateArtist/index.less +41 -0
  373. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +43 -0
  374. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.less +3 -0
  375. package/lib/core/Designer/AiImageGenerator/History/index.js +147 -0
  376. package/lib/core/Designer/AiImageGenerator/History/index.less +75 -0
  377. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +31 -0
  378. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.less +8 -0
  379. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +55 -0
  380. package/lib/core/Designer/AiImageGenerator/UploadReference/index.less +45 -0
  381. package/lib/core/Designer/AiImageGenerator/images/nodata.png +0 -0
  382. package/lib/core/Designer/AiImageGenerator/index.js +752 -0
  383. package/lib/core/Designer/AiImageGenerator/index.less +136 -0
  384. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.js +49 -0
  385. package/lib/core/Designer/ChatRobot/components/CopyBtn/index.less +0 -0
  386. package/lib/core/Designer/ChatRobot/index.js +343 -0
  387. package/lib/core/Designer/ChatRobot/index.less +138 -0
  388. package/lib/core/Designer/ChatRobot/markdown.less +1 -0
  389. package/lib/core/Designer/ConfigPanel/index.js +2 -1
  390. package/lib/core/Designer/FonixtreeGpt/index.js +160 -0
  391. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  392. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  393. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  394. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  395. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  396. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  397. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  398. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +101 -0
  399. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  400. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  401. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  402. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  403. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  404. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  405. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  406. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  407. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  408. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  409. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  410. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  411. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  412. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  413. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +136 -0
  414. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  415. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  416. package/lib/core/Designer/TextEditModal/ToolBar/index.js +219 -0
  417. package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  418. package/lib/core/Designer/TextEditModal/index.js +100 -0
  419. package/lib/core/Designer/TextEditModal/index.less +4 -0
  420. package/lib/core/Designer/TextEditModal_old/index.js +142 -0
  421. package/lib/core/Designer/TextEditModal_old/index.less +25 -0
  422. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  423. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  424. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  425. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  426. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  427. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  428. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  429. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.js +101 -0
  430. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/IconSelectPicker/index.less +60 -0
  431. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/CircleSVG.js +52 -0
  432. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/InitialSVG.js +51 -0
  433. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/images/SquareSVG.js +58 -0
  434. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +96 -0
  435. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +26 -0
  436. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +105 -0
  437. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  438. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  439. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  440. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  441. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  442. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.js +133 -0
  443. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/IconSelectPicker/index.less +60 -0
  444. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/CJLDecimalSVG.js +46 -0
  445. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/DecimalSVG.js +46 -0
  446. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerAlphaSVG.js +46 -0
  447. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/LowerRomanSVG.js +46 -0
  448. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperAlphaSVG.js +46 -0
  449. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/images/UpperRomanSVG.js +46 -0
  450. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +105 -0
  451. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +26 -0
  452. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  453. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  454. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  455. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  456. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  457. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  458. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  459. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +36 -0
  460. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  461. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +151 -0
  462. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  463. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  464. package/lib/core/Designer/ToolBarModal/index.js +354 -0
  465. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  466. package/lib/core/Designer/index.js +56 -15
  467. package/lib/decorator/index.js +14 -0
  468. package/lib/decorator/lazyLoadDecorator.js +75 -0
  469. package/lib/decorator/metaDecorator.js +1 -1
  470. package/lib/locale/en/en.json +10 -0
  471. package/lib/locale/es/es.json +10 -0
  472. package/lib/locale/id/id.json +10 -0
  473. package/lib/meta-comp/components/Image/index.js +19 -3
  474. package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
  475. package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
  476. package/lib/meta-comp/components/Text/formats/listStyleTypeStyle.js +58 -0
  477. package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
  478. package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
  479. package/lib/meta-comp/components/Text/index.js +103 -374
  480. package/lib/meta-comp/components/Text/index.less +57 -0
  481. package/lib/meta-comp/config-panels/ImageConfig/index.js +35 -12
  482. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-01.svg +4 -0
  483. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-02.svg +4 -0
  484. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-03.svg +4 -0
  485. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-04.svg +4 -0
  486. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/dark-playicon-05.svg +3 -0
  487. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-01.svg +4 -0
  488. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-02.svg +4 -0
  489. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-03.svg +4 -0
  490. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-04.svg +4 -0
  491. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/images/light-playicon-05.svg +3 -0
  492. package/lib/meta-comp/config-panels/PlayIconConfig/PlaySvg/index.js +63 -0
  493. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +211 -0
  494. package/lib/meta-comp/config-panels/PlayIconConfig/index.less +37 -2
  495. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  496. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  497. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  498. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  499. package/lib/meta-comp/config-panels/TextConfig/index.js +14 -31
  500. package/lib/meta-comp/config-panels/TextConfig/index.less +12 -16
  501. package/lib/mobx/Frame.js +7 -1
  502. package/lib/mobx/Store.js +3 -0
  503. package/lib/utils/androidUtil.js +8 -1
  504. package/lib/utils/businessUtil.js +13 -0
  505. package/lib/utils/commonUtil.js +156 -34
  506. package/lib/utils/coreUtil.js +18 -4
  507. package/package.json +5 -1
  508. package/es/assets/fonts/.DS_Store +0 -0
  509. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,752 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _antd = require("antd");
13
+
14
+ var _uuid = require("uuid");
15
+
16
+ var _GenerateSize = _interopRequireDefault(require("./GenerateSize"));
17
+
18
+ var _GenerateArtist = _interopRequireDefault(require("./GenerateArtist"));
19
+
20
+ var _UploadReference = _interopRequireDefault(require("./UploadReference"));
21
+
22
+ var _NumberSlider = _interopRequireDefault(require("./NumberSlider"));
23
+
24
+ var _History = _interopRequireDefault(require("./History"));
25
+
26
+ var _nodata = _interopRequireDefault(require("./images/nodata.png"));
27
+
28
+ var _common = require("../../../common");
29
+
30
+ var _commonUtil = require("../../../utils/commonUtil");
31
+
32
+ var _storeUtil = require("../../../utils/storeUtil");
33
+
34
+ var _constants = require("../../../constants");
35
+
36
+ require("./index.less");
37
+
38
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
39
+
40
+ 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); }
41
+
42
+ 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; }
43
+
44
+ var __extends = void 0 && (void 0).__extends || function () {
45
+ var _extendStatics = function extendStatics(d, b) {
46
+ _extendStatics = Object.setPrototypeOf || {
47
+ __proto__: []
48
+ } instanceof Array && function (d, b) {
49
+ d.__proto__ = b;
50
+ } || function (d, b) {
51
+ for (var p in b) {
52
+ if (b.hasOwnProperty(p)) d[p] = b[p];
53
+ }
54
+ };
55
+
56
+ return _extendStatics(d, b);
57
+ };
58
+
59
+ return function (d, b) {
60
+ _extendStatics(d, b);
61
+
62
+ function __() {
63
+ this.constructor = d;
64
+ }
65
+
66
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
67
+ };
68
+ }();
69
+
70
+ var __assign = void 0 && (void 0).__assign || function () {
71
+ __assign = Object.assign || function (t) {
72
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
73
+ s = arguments[i];
74
+
75
+ for (var p in s) {
76
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
77
+ }
78
+ }
79
+
80
+ return t;
81
+ };
82
+
83
+ return __assign.apply(this, arguments);
84
+ };
85
+
86
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
87
+ function adopt(value) {
88
+ return value instanceof P ? value : new P(function (resolve) {
89
+ resolve(value);
90
+ });
91
+ }
92
+
93
+ return new (P || (P = Promise))(function (resolve, reject) {
94
+ function fulfilled(value) {
95
+ try {
96
+ step(generator.next(value));
97
+ } catch (e) {
98
+ reject(e);
99
+ }
100
+ }
101
+
102
+ function rejected(value) {
103
+ try {
104
+ step(generator["throw"](value));
105
+ } catch (e) {
106
+ reject(e);
107
+ }
108
+ }
109
+
110
+ function step(result) {
111
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
112
+ }
113
+
114
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
115
+ });
116
+ };
117
+
118
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
119
+ var _ = {
120
+ label: 0,
121
+ sent: function sent() {
122
+ if (t[0] & 1) throw t[1];
123
+ return t[1];
124
+ },
125
+ trys: [],
126
+ ops: []
127
+ },
128
+ f,
129
+ y,
130
+ t,
131
+ g;
132
+ return g = {
133
+ next: verb(0),
134
+ "throw": verb(1),
135
+ "return": verb(2)
136
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
137
+ return this;
138
+ }), g;
139
+
140
+ function verb(n) {
141
+ return function (v) {
142
+ return step([n, v]);
143
+ };
144
+ }
145
+
146
+ function step(op) {
147
+ if (f) throw new TypeError("Generator is already executing.");
148
+
149
+ while (_) {
150
+ try {
151
+ 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;
152
+ if (y = 0, t) op = [op[0] & 2, t.value];
153
+
154
+ switch (op[0]) {
155
+ case 0:
156
+ case 1:
157
+ t = op;
158
+ break;
159
+
160
+ case 4:
161
+ _.label++;
162
+ return {
163
+ value: op[1],
164
+ done: false
165
+ };
166
+
167
+ case 5:
168
+ _.label++;
169
+ y = op[1];
170
+ op = [0];
171
+ continue;
172
+
173
+ case 7:
174
+ op = _.ops.pop();
175
+
176
+ _.trys.pop();
177
+
178
+ continue;
179
+
180
+ default:
181
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
182
+ _ = 0;
183
+ continue;
184
+ }
185
+
186
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
187
+ _.label = op[1];
188
+ break;
189
+ }
190
+
191
+ if (op[0] === 6 && _.label < t[1]) {
192
+ _.label = t[1];
193
+ t = op;
194
+ break;
195
+ }
196
+
197
+ if (t && _.label < t[2]) {
198
+ _.label = t[2];
199
+
200
+ _.ops.push(op);
201
+
202
+ break;
203
+ }
204
+
205
+ if (t[2]) _.ops.pop();
206
+
207
+ _.trys.pop();
208
+
209
+ continue;
210
+ }
211
+
212
+ op = body.call(thisArg, _);
213
+ } catch (e) {
214
+ op = [6, e];
215
+ y = 0;
216
+ } finally {
217
+ f = t = 0;
218
+ }
219
+ }
220
+
221
+ if (op[0] & 5) throw op[1];
222
+ return {
223
+ value: op[0] ? op[1] : void 0,
224
+ done: true
225
+ };
226
+ }
227
+ };
228
+
229
+ var Search = _antd.Input.Search;
230
+
231
+ var AiImageGenerator =
232
+ /** @class */
233
+ function (_super) {
234
+ __extends(AiImageGenerator, _super);
235
+
236
+ function AiImageGenerator() {
237
+ var _this = _super !== null && _super.apply(this, arguments) || this;
238
+
239
+ _this.state = {
240
+ loading: false,
241
+ selected: [],
242
+ prompt: '',
243
+ history: [],
244
+ hisCursor: 0
245
+ };
246
+ _this.formRef = /*#__PURE__*/_react["default"].createRef();
247
+
248
+ _this.onHisConfigClick = function () {};
249
+
250
+ _this.historyChange = function (newHis, newIndex) {
251
+ if (newIndex === void 0) {
252
+ newIndex = null;
253
+ }
254
+
255
+ (0, _storeUtil.setSessionStore)(_constants.STORAGE_KEY.FONIXTREE_AI_IMG_HIS, newHis);
256
+
257
+ _this.setState({
258
+ history: newHis
259
+ });
260
+
261
+ if (newIndex !== null) {
262
+ _this.setState({
263
+ hisCursor: newIndex
264
+ });
265
+ }
266
+ };
267
+
268
+ _this.getColumnNum = function (num) {
269
+ if (num <= 1) {
270
+ return 1;
271
+ } else if (num > 1 && num <= 4) {
272
+ return 2;
273
+ } else {
274
+ return 3;
275
+ }
276
+ };
277
+
278
+ _this.onCloseDrawer = function () {
279
+ _this.props.onClose();
280
+ };
281
+
282
+ _this.onConfirm = function () {
283
+ return __awaiter(_this, void 0, void 0, function () {
284
+ var _a, history, hisCursor, selected, images, imageList, result;
285
+
286
+ return __generator(this, function (_b) {
287
+ switch (_b.label) {
288
+ case 0:
289
+ _a = this.state, history = _a.history, hisCursor = _a.hisCursor, selected = _a.selected;
290
+
291
+ if (!selected.length) {
292
+ return [2
293
+ /*return*/
294
+ ];
295
+ }
296
+
297
+ images = history[hisCursor].images;
298
+ imageList = selected.map(function (sel) {
299
+ return images[sel];
300
+ });
301
+ return [4
302
+ /*yield*/
303
+ , (0, _commonUtil.commonFetch)('/designer/v1/uploadImage', {
304
+ base64Images: imageList
305
+ }, 'POST')];
306
+
307
+ case 1:
308
+ result = _b.sent();
309
+ this.props.onConfirm(result[0]);
310
+ return [2
311
+ /*return*/
312
+ ];
313
+ }
314
+ });
315
+ });
316
+ };
317
+
318
+ _this.onGenarate = function (prompt) {
319
+ return __awaiter(_this, void 0, void 0, function () {
320
+ var history, formVal, params, result, e_1;
321
+ return __generator(this, function (_a) {
322
+ switch (_a.label) {
323
+ case 0:
324
+ history = this.state.history;
325
+
326
+ if (!prompt) {
327
+ return [2
328
+ /*return*/
329
+ ];
330
+ }
331
+
332
+ formVal = this.formRef.current.getFieldsValue(true);
333
+ params = {
334
+ prompt: prompt,
335
+ n: formVal.number || 1,
336
+ height: 256,
337
+ width: 256
338
+ };
339
+ _a.label = 1;
340
+
341
+ case 1:
342
+ _a.trys.push([1, 3,, 4]);
343
+
344
+ this.setState({
345
+ prompt: prompt,
346
+ loading: true
347
+ });
348
+ return [4
349
+ /*yield*/
350
+ , (0, _commonUtil.commonFetch)('/designer/v1/ai/create-image', params, 'POST')];
351
+
352
+ case 2:
353
+ result = _a.sent();
354
+
355
+ if (!result || !result.imageList) {
356
+ this.setState({
357
+ loading: false
358
+ });
359
+ return [2
360
+ /*return*/
361
+ ];
362
+ }
363
+
364
+ history.push({
365
+ key: (0, _uuid.v4)(),
366
+ images: result.imageList,
367
+ params: params
368
+ });
369
+ this.historyChange(history);
370
+ this.setState({
371
+ loading: false,
372
+ hisCursor: history.length - 1
373
+ });
374
+ return [3
375
+ /*break*/
376
+ , 4];
377
+
378
+ case 3:
379
+ e_1 = _a.sent();
380
+ this.setState({
381
+ loading: false
382
+ });
383
+ return [3
384
+ /*break*/
385
+ , 4];
386
+
387
+ case 4:
388
+ return [2
389
+ /*return*/
390
+ ];
391
+ }
392
+ });
393
+ });
394
+ };
395
+
396
+ _this.onRegenerate = function () {
397
+ return __awaiter(_this, void 0, void 0, function () {
398
+ var _a, history, hisCursor, _b, params, key, result, e_2;
399
+
400
+ return __generator(this, function (_c) {
401
+ switch (_c.label) {
402
+ case 0:
403
+ _a = this.state, history = _a.history, hisCursor = _a.hisCursor;
404
+ _b = history[hisCursor], params = _b.params, key = _b.key;
405
+ _c.label = 1;
406
+
407
+ case 1:
408
+ _c.trys.push([1, 3,, 4]);
409
+
410
+ this.setState({
411
+ loading: true
412
+ });
413
+ return [4
414
+ /*yield*/
415
+ , (0, _commonUtil.commonFetch)('/designer/v1/ai/create-image', params, 'POST')];
416
+
417
+ case 2:
418
+ result = _c.sent();
419
+
420
+ if (!result || !result.imageList) {
421
+ this.setState({
422
+ loading: false
423
+ });
424
+ return [2
425
+ /*return*/
426
+ ];
427
+ }
428
+
429
+ history[hisCursor] = {
430
+ key: key,
431
+ images: result.imageList,
432
+ params: params
433
+ };
434
+ this.historyChange(history);
435
+ this.setState({
436
+ loading: false
437
+ });
438
+ return [3
439
+ /*break*/
440
+ , 4];
441
+
442
+ case 3:
443
+ e_2 = _c.sent();
444
+ this.setState({
445
+ loading: false
446
+ });
447
+ return [3
448
+ /*break*/
449
+ , 4];
450
+
451
+ case 4:
452
+ return [2
453
+ /*return*/
454
+ ];
455
+ }
456
+ });
457
+ });
458
+ };
459
+
460
+ _this.getImageList = function (images) {
461
+ var selected = _this.state.selected;
462
+ return images.map(function (img, index) {
463
+ return /*#__PURE__*/_react["default"].createElement("div", {
464
+ className: "aiImageItem"
465
+ }, /*#__PURE__*/_react["default"].createElement("img", {
466
+ alt: "",
467
+ src: img
468
+ }), /*#__PURE__*/_react["default"].createElement("div", {
469
+ className: "imgHandleBtnWrap"
470
+ }, /*#__PURE__*/_react["default"].createElement("div", {
471
+ className: "refreshBtnWrap"
472
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
473
+ color: "#232F46",
474
+ onClick: function onClick() {
475
+ return _this.onRefresh(index);
476
+ },
477
+ size: 16,
478
+ type: "icon-refresh"
479
+ })), /*#__PURE__*/_react["default"].createElement("div", {
480
+ className: "downloadBtnWrap"
481
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
482
+ color: "#232F46",
483
+ onClick: function onClick() {
484
+ return _this.onDownload(index);
485
+ },
486
+ size: 16,
487
+ type: "icon-download1"
488
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
489
+ className: "imgSelectBtnWrap"
490
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
491
+ color: "#2F54EB",
492
+ onClick: function onClick() {
493
+ return _this.onSelectClick(index);
494
+ },
495
+ size: 22,
496
+ style: {
497
+ cursor: 'pointer'
498
+ },
499
+ type: selected.includes(index) ? 'icon-select1' : 'icon-uncheck'
500
+ })));
501
+ });
502
+ };
503
+
504
+ _this.onRefresh = function (index) {
505
+ return __awaiter(_this, void 0, void 0, function () {
506
+ var _a, history, hisCursor, _b, images, params, result, e_3;
507
+
508
+ return __generator(this, function (_c) {
509
+ switch (_c.label) {
510
+ case 0:
511
+ _a = this.state, history = _a.history, hisCursor = _a.hisCursor;
512
+ _b = history[hisCursor], images = _b.images, params = _b.params;
513
+ _c.label = 1;
514
+
515
+ case 1:
516
+ _c.trys.push([1, 3,, 4]);
517
+
518
+ this.setState({
519
+ loading: true
520
+ });
521
+ return [4
522
+ /*yield*/
523
+ , (0, _commonUtil.commonFetch)('/designer/v1/ai/create-image', __assign(__assign({}, params), {
524
+ n: 1
525
+ }), 'POST')];
526
+
527
+ case 2:
528
+ result = _c.sent();
529
+
530
+ if (!result || !result.imageList) {
531
+ this.setState({
532
+ loading: false
533
+ });
534
+ return [2
535
+ /*return*/
536
+ ];
537
+ }
538
+
539
+ images[index] = result.imageList[0];
540
+ this.historyChange(history);
541
+ this.setState({
542
+ loading: false
543
+ });
544
+ return [3
545
+ /*break*/
546
+ , 4];
547
+
548
+ case 3:
549
+ e_3 = _c.sent();
550
+ this.setState({
551
+ loading: false
552
+ });
553
+ return [3
554
+ /*break*/
555
+ , 4];
556
+
557
+ case 4:
558
+ return [2
559
+ /*return*/
560
+ ];
561
+ }
562
+ });
563
+ });
564
+ };
565
+
566
+ _this.onDownload = function (index) {
567
+ var _a = _this.state,
568
+ prompt = _a.prompt,
569
+ history = _a.history,
570
+ hisCursor = _a.hisCursor;
571
+ var images = history[hisCursor].images;
572
+ (0, _commonUtil.downloadBase64Image)(images[index], prompt + ".png");
573
+ };
574
+
575
+ _this.onSelectClick = function (index) {
576
+ var selected = _this.state.selected;
577
+ var single = _this.props.single; // 单选模式下,智能选中一个
578
+
579
+ if (single) {
580
+ _this.setState({
581
+ selected: [index]
582
+ });
583
+
584
+ return;
585
+ } // 多选模式,可以选择多个
586
+
587
+
588
+ if (selected.includes(index)) {
589
+ var newSelected = selected.filter(function (sel) {
590
+ return sel !== index;
591
+ });
592
+
593
+ _this.setState({
594
+ selected: newSelected
595
+ });
596
+ } else {
597
+ selected.push(index);
598
+
599
+ _this.setState({
600
+ selected: selected
601
+ });
602
+ }
603
+ };
604
+
605
+ _this.onHistoryClick = function (index) {
606
+ _this.setState({
607
+ hisCursor: index
608
+ });
609
+ };
610
+
611
+ return _this;
612
+ }
613
+
614
+ AiImageGenerator.prototype.componentDidMount = function () {
615
+ var history = (0, _storeUtil.getSessionStore)(_constants.STORAGE_KEY.FONIXTREE_AI_IMG_HIS) || [];
616
+ this.setState({
617
+ history: history
618
+ });
619
+ };
620
+
621
+ AiImageGenerator.prototype.componentWillUnmount = function () {
622
+ if (this.destory) this.destory();
623
+ };
624
+
625
+ AiImageGenerator.prototype.render = function () {
626
+ var _a = this.state,
627
+ loading = _a.loading,
628
+ history = _a.history,
629
+ hisCursor = _a.hisCursor;
630
+ var visible = this.props.visible;
631
+
632
+ var _b = history[hisCursor] || {},
633
+ _c = _b.images,
634
+ images = _c === void 0 ? [] : _c,
635
+ _d = _b.key,
636
+ key = _d === void 0 ? '' : _d;
637
+
638
+ var columnNum = this.getColumnNum(images.length || []);
639
+ return /*#__PURE__*/_react["default"].createElement(_antd.Drawer, {
640
+ bodyStyle: {
641
+ padding: 16,
642
+ background: '#F5F6F7'
643
+ },
644
+ className: "generate_drawer",
645
+ closable: false,
646
+ headerStyle: {
647
+ padding: '12px 24px'
648
+ },
649
+ onClose: this.onCloseDrawer,
650
+ open: visible,
651
+ placement: "right",
652
+ title: /*#__PURE__*/_react["default"].createElement("div", {
653
+ className: "dialog_head"
654
+ }, /*#__PURE__*/_react["default"].createElement("div", {
655
+ className: "dialog_title"
656
+ }, "Text to Image"), /*#__PURE__*/_react["default"].createElement("div", {
657
+ className: "btn_group"
658
+ }, /*#__PURE__*/_react["default"].createElement(_common.Button, {
659
+ onClick: this.onCloseDrawer,
660
+ size: "small",
661
+ type: "light"
662
+ }, "Cancel"), /*#__PURE__*/_react["default"].createElement(_common.Button, {
663
+ className: "ml8",
664
+ onClick: this.onConfirm,
665
+ size: "small",
666
+ type: "primary"
667
+ }, "Confirm"))),
668
+ width: 1084
669
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
670
+ spinning: loading
671
+ }, /*#__PURE__*/_react["default"].createElement("div", {
672
+ className: "drawer_content"
673
+ }, /*#__PURE__*/_react["default"].createElement("div", {
674
+ className: "left_wrap"
675
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
676
+ ref: this.formRef,
677
+ initialValues: {
678
+ number: 4
679
+ },
680
+ layout: "vertical"
681
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
682
+ label: "Choose an AI artist",
683
+ name: "size"
684
+ }, /*#__PURE__*/_react["default"].createElement(_GenerateArtist["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
685
+ label: "Upload reference images",
686
+ name: "ref"
687
+ }, /*#__PURE__*/_react["default"].createElement(_UploadReference["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
688
+ label: "Size",
689
+ name: "size"
690
+ }, /*#__PURE__*/_react["default"].createElement(_GenerateSize["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
691
+ label: "Number",
692
+ name: "number"
693
+ }, /*#__PURE__*/_react["default"].createElement(_NumberSlider["default"], null)), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
694
+ label: "Style",
695
+ name: "style"
696
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
697
+ mode: "tags"
698
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
699
+ label: "Modifier",
700
+ name: "modifier"
701
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
702
+ mode: "tags"
703
+ })), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
704
+ label: "Do not appear",
705
+ name: "notAppear"
706
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
707
+ mode: "tags"
708
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
709
+ className: "middle_wrap"
710
+ }, /*#__PURE__*/_react["default"].createElement("div", {
711
+ className: "img_wrap",
712
+ style: {
713
+ gridTemplateColumns: "repeat(" + columnNum + ", 1fr)",
714
+ gridTemplateRows: "repeat(" + columnNum + ", 1fr)"
715
+ }
716
+ }, images.length > 0 ? this.getImageList(images) : /*#__PURE__*/_react["default"].createElement("div", {
717
+ className: "noDataWrap"
718
+ }, /*#__PURE__*/_react["default"].createElement("img", {
719
+ alt: "",
720
+ className: "no_data",
721
+ src: _nodata["default"]
722
+ })), /*#__PURE__*/_react["default"].createElement("div", null)), /*#__PURE__*/_react["default"].createElement("div", {
723
+ className: "btn_wrap"
724
+ }, /*#__PURE__*/_react["default"].createElement("div", {
725
+ className: "regenerate_btn",
726
+ onClick: this.onRegenerate
727
+ }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
728
+ color: "#232F46",
729
+ size: 16,
730
+ style: {
731
+ marginRight: 5
732
+ },
733
+ type: "icon-refresh"
734
+ }), "Regenerate Response")), /*#__PURE__*/_react["default"].createElement("div", {
735
+ className: "search_wrap"
736
+ }, /*#__PURE__*/_react["default"].createElement(Search, {
737
+ enterButton: "Generate",
738
+ onSearch: this.onGenarate,
739
+ size: "large"
740
+ }))), /*#__PURE__*/_react["default"].createElement(_History["default"], {
741
+ onChange: this.historyChange,
742
+ onClick: this.onHistoryClick,
743
+ selectKey: key,
744
+ source: history
745
+ }))));
746
+ };
747
+
748
+ return AiImageGenerator;
749
+ }(_react.Component);
750
+
751
+ var _default = AiImageGenerator;
752
+ exports["default"] = _default;