@fonixtree/magic-design 1.0.65 → 1.0.66

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 (419) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +6 -62
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
  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/images/base64/index.js +2 -36
  10. package/es/assets/less/button.less +0 -5
  11. package/es/assets/less/cylon-antd.less +1686 -7246
  12. package/es/assets/less/font.less +0 -22
  13. package/es/common/Button/index.less +1 -0
  14. package/es/common/CountDown/index.js +11 -20
  15. package/es/common/GroupList/index.js +2 -7
  16. package/es/common/ImagePicker/index.js +3 -1
  17. package/es/common/LinkModal/CouponTable/index.js +3 -3
  18. package/es/common/LinkModal/CustomTable/index.js +0 -1
  19. package/es/common/LinkModal/FunctionTable/index.js +1 -2
  20. package/es/common/LinkModal/index.js +2 -14
  21. package/es/common/MagicLink/index.js +2 -2
  22. package/es/common/ProductModal/index.js +3 -38
  23. package/es/common/ProductSource/index.js +18 -59
  24. package/es/common/UrlPicker/index.js +10 -62
  25. package/es/common/index.js +0 -24
  26. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  27. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  28. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  29. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  31. package/es/composite-comp/bol/components/Video/index.js +2 -1
  32. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  33. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  34. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  35. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  36. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  37. package/es/composite-comp/bol/components/Wallet/index.js +15 -11
  38. package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  40. package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  41. package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  42. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  43. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  44. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  47. package/es/composite-comp/common/components/ProductItem/index.js +20 -22
  48. package/es/composite-comp/common/components/ProductItem/index.less +12 -2
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  50. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  52. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  55. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  56. package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  62. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  63. package/es/constants/component-types.js +3 -45
  64. package/es/constants/index.js +5 -74
  65. package/es/constants/layout.js +1 -48
  66. package/es/core/Designer/ChatRobot/index.js +17 -84
  67. package/es/core/Designer/ChatRobot/index.less +28 -69
  68. package/es/core/Designer/ConfigPanel/index.js +3 -14
  69. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  70. package/es/core/Designer/PageCompList/index.js +5 -6
  71. package/es/core/Designer/QuickMenuBar/index.js +5 -11
  72. package/es/core/Designer/QuickMenuBar/index.less +0 -4
  73. package/es/core/Designer/RenderHtml/index.js +15 -18
  74. package/es/core/Designer/RenderHtml/index.less +1 -1
  75. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  76. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  77. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  78. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  79. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  80. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  81. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  82. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  84. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  85. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  86. package/es/core/Designer/ToolBarModal/index.js +27 -69
  87. package/es/core/Designer/ToolBarModal/index.less +2 -3
  88. package/es/core/Designer/index.js +2 -26
  89. package/es/core/Renderer/index.js +29 -74
  90. package/es/decorator/compositeDecorator.js +6 -33
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +3 -17
  93. package/es/locale/es/es.json +3 -17
  94. package/es/locale/id/id.json +3 -17
  95. package/es/meta-comp/components/Image/index.js +25 -31
  96. package/es/meta-comp/components/Text/index.js +1 -4
  97. package/es/meta-comp/components/Text/index.less +0 -8
  98. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
  99. package/es/mobx/Frame.js +2 -17
  100. package/es/mobx/index.js +3 -9
  101. package/es/utils/androidUtil.js +2 -13
  102. package/es/utils/businessUtil.js +3 -25
  103. package/es/utils/commonUtil.js +22 -177
  104. package/es/utils/coreUtil.js +2 -45
  105. package/es/utils/currencyUtil.js +2 -9
  106. package/lib/assets/fonts/.DS_Store +0 -0
  107. package/lib/assets/fonts/magic-box-iconfont.css +6 -62
  108. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
  109. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  110. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  111. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  112. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  113. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  114. package/lib/assets/images/base64/index.js +2 -36
  115. package/lib/assets/less/button.less +0 -5
  116. package/lib/assets/less/cylon-antd.less +1686 -7246
  117. package/lib/assets/less/font.less +0 -22
  118. package/lib/common/Button/index.less +1 -0
  119. package/lib/common/CountDown/index.js +11 -20
  120. package/lib/common/GroupList/index.js +2 -7
  121. package/lib/common/ImagePicker/index.js +3 -1
  122. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  123. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  124. package/lib/common/LinkModal/FunctionTable/index.js +1 -2
  125. package/lib/common/LinkModal/index.js +2 -14
  126. package/lib/common/MagicLink/index.js +2 -2
  127. package/lib/common/ProductModal/index.js +3 -38
  128. package/lib/common/ProductSource/index.js +18 -59
  129. package/lib/common/UrlPicker/index.js +10 -62
  130. package/lib/common/index.js +0 -24
  131. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  132. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  133. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  134. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  135. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  136. package/lib/composite-comp/bol/components/Video/index.js +2 -1
  137. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  138. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  139. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  140. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  141. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  142. package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
  143. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  144. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  145. package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  146. package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  147. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  148. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  149. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  150. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  151. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  152. package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
  153. package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
  154. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  155. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  156. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  157. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  158. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  159. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  160. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  161. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  162. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  163. package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  164. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  165. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  166. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  167. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  168. package/lib/constants/component-types.js +3 -45
  169. package/lib/constants/index.js +5 -74
  170. package/lib/constants/layout.js +1 -48
  171. package/lib/core/Designer/ChatRobot/index.js +17 -84
  172. package/lib/core/Designer/ChatRobot/index.less +28 -69
  173. package/lib/core/Designer/ConfigPanel/index.js +3 -14
  174. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  175. package/lib/core/Designer/PageCompList/index.js +5 -6
  176. package/lib/core/Designer/QuickMenuBar/index.js +5 -11
  177. package/lib/core/Designer/QuickMenuBar/index.less +0 -4
  178. package/lib/core/Designer/RenderHtml/index.js +15 -18
  179. package/lib/core/Designer/RenderHtml/index.less +1 -1
  180. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  181. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  182. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  183. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  184. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  185. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  186. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  187. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  188. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  189. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  190. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  191. package/lib/core/Designer/ToolBarModal/index.js +27 -69
  192. package/lib/core/Designer/ToolBarModal/index.less +2 -3
  193. package/lib/core/Designer/index.js +2 -26
  194. package/lib/core/Renderer/index.js +29 -74
  195. package/lib/decorator/compositeDecorator.js +6 -33
  196. package/lib/decorator/metaDecorator.js +1 -1
  197. package/lib/locale/en/en.json +3 -17
  198. package/lib/locale/es/es.json +3 -17
  199. package/lib/locale/id/id.json +3 -17
  200. package/lib/meta-comp/components/Image/index.js +25 -31
  201. package/lib/meta-comp/components/Text/index.js +1 -4
  202. package/lib/meta-comp/components/Text/index.less +0 -8
  203. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
  204. package/lib/mobx/Frame.js +2 -17
  205. package/lib/mobx/index.js +3 -9
  206. package/lib/utils/androidUtil.js +2 -13
  207. package/lib/utils/businessUtil.js +3 -25
  208. package/lib/utils/commonUtil.js +22 -177
  209. package/lib/utils/coreUtil.js +2 -45
  210. package/lib/utils/currencyUtil.js +2 -9
  211. package/package.json +1 -2
  212. package/es/assets/fonts/Trueno-Light.otf +0 -0
  213. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  214. package/es/assets/fonts/TruenoBd.otf +0 -0
  215. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  216. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  217. package/es/common/AffiliateProductModal/index.js +0 -582
  218. package/es/common/AffiliateProductModal/index.less +0 -146
  219. package/es/common/CardCarousel/index.js +0 -171
  220. package/es/common/CardCarousel/index.less +0 -28
  221. package/es/common/CropperModal/index.js +0 -126
  222. package/es/common/CropperModal/index.less +0 -29
  223. package/es/common/MyModal/index.js +0 -417
  224. package/es/common/MyModal/index.less +0 -74
  225. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  226. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  227. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  228. package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
  229. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  230. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  231. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  232. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  233. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  234. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  235. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  236. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  237. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  238. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  239. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  240. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  241. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  242. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  243. package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  244. package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  245. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  246. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  247. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  248. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  249. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  250. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  251. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  252. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  253. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  254. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  255. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  256. package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  257. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  258. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  259. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  260. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  261. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  262. package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  263. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  264. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  265. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  266. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  267. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  268. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  269. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  270. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  271. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  272. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  273. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  274. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  275. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  276. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  277. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  278. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  279. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  280. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  281. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  282. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  283. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  284. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  285. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  286. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  287. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  288. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  289. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  290. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  291. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  292. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  293. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  294. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  295. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  296. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  297. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  298. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  299. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  300. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  301. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  302. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  303. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  304. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  305. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  306. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  307. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  308. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  309. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  310. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  311. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  312. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  313. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  314. package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
  315. package/es/mobx/UserState.js +0 -144
  316. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  317. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  318. package/lib/assets/fonts/TruenoBd.otf +0 -0
  319. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  320. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  321. package/lib/common/AffiliateProductModal/index.js +0 -582
  322. package/lib/common/AffiliateProductModal/index.less +0 -146
  323. package/lib/common/CardCarousel/index.js +0 -171
  324. package/lib/common/CardCarousel/index.less +0 -28
  325. package/lib/common/CropperModal/index.js +0 -126
  326. package/lib/common/CropperModal/index.less +0 -29
  327. package/lib/common/MyModal/index.js +0 -417
  328. package/lib/common/MyModal/index.less +0 -74
  329. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  330. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  331. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  332. package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
  333. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  334. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  335. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  336. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  337. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  338. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  339. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  340. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  341. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  342. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  343. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  344. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  345. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  346. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  347. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  348. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  349. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  350. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  351. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  352. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  353. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  354. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  355. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  356. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  357. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  358. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  359. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  360. package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  361. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  362. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  363. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  364. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  365. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  366. package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  367. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  368. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  369. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  370. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  371. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  372. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  373. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  374. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  375. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  376. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  377. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  378. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  379. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  380. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  381. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  382. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  383. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  384. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  385. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  386. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  387. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  388. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  389. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  390. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  391. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  392. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  393. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  394. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  395. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  396. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  397. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  398. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  399. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  400. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  401. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  402. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  403. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  404. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  405. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  406. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  407. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  408. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  409. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  410. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  411. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  412. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  413. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  414. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  415. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  416. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  417. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  418. package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
  419. package/lib/mobx/UserState.js +0 -144
@@ -1,131 +0,0 @@
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 _mobxReact = require("mobx-react");
11
-
12
- var _GroupList = _interopRequireDefault(require("../../../../../common/GroupList"));
13
-
14
- var _coreUtil = require("../../../../../utils/coreUtil");
15
-
16
- var _Button = _interopRequireDefault(require("../../../../../common/Button"));
17
-
18
- var _defaultJSON = require("../../../components/PersonalInformation/defaultJSON");
19
-
20
- var _locale = require("../../../../../locale");
21
-
22
- var _decorator = require("../../../../../decorator");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
- 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); }
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
-
54
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
55
- var c = arguments.length,
56
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
57
- d;
58
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
59
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
- }
61
- return c > 3 && r && Object.defineProperty(target, key, r), r;
62
- };
63
-
64
- var notice = 'Please add some Item';
65
-
66
- var ConfigGroup =
67
- /** @class */
68
- function (_super) {
69
- __extends(ConfigGroup, _super);
70
-
71
- function ConfigGroup() {
72
- var _this = _super !== null && _super.apply(this, arguments) || this;
73
-
74
- _this.state = {};
75
-
76
- _this.onClickItem = function (node) {
77
- _this.props.store.setState({
78
- clickedGroup: node.id
79
- });
80
- };
81
-
82
- _this.onAddClick = function () {
83
- var json = (0, _defaultJSON.PersonalInfoGroupSourceJSON)();
84
-
85
- _this.props.source.push(json);
86
-
87
- _this.setState({});
88
-
89
- (0, _coreUtil.renderPreview)();
90
- };
91
-
92
- _this.reRender = function () {
93
- _this.setState({});
94
- };
95
-
96
- return _this;
97
- }
98
-
99
- ConfigGroup.prototype.render = function () {
100
- var _a = this.props,
101
- source = _a.source,
102
- maxNum = _a.maxNum;
103
- return /*#__PURE__*/_react["default"].createElement("div", {
104
- className: "banner_group"
105
- }, /*#__PURE__*/_react["default"].createElement("div", {
106
- className: "node_list"
107
- }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
108
- className: "notice"
109
- }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
110
- onClickItem: this.onClickItem,
111
- reRender: this.reRender,
112
- source: source
113
- })), /*#__PURE__*/_react["default"].createElement("div", {
114
- className: "btn_wrap"
115
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
116
- disabled: source.length >= maxNum,
117
- icon: "icon-add",
118
- onClick: this.onAddClick,
119
- type: "primary"
120
- }, (0, _locale.i18n)('ADD'))));
121
- };
122
-
123
- ConfigGroup.defaultProps = {
124
- source: []
125
- };
126
- ConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], ConfigGroup);
127
- return ConfigGroup;
128
- }(_react["default"].Component);
129
-
130
- var _default = ConfigGroup;
131
- exports["default"] = _default;
@@ -1,118 +0,0 @@
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 _ConfigGroup = _interopRequireDefault(require("./ConfigGroup"));
11
-
12
- var _locale = require("../../../../locale");
13
-
14
- var _common = require("../../../../common");
15
-
16
- var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
17
-
18
- var _coreUtil = require("../../../../utils/coreUtil");
19
-
20
- var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- var __extends = void 0 && (void 0).__extends || function () {
25
- var _extendStatics = function extendStatics(d, b) {
26
- _extendStatics = Object.setPrototypeOf || {
27
- __proto__: []
28
- } instanceof Array && function (d, b) {
29
- d.__proto__ = b;
30
- } || function (d, b) {
31
- for (var p in b) {
32
- if (b.hasOwnProperty(p)) d[p] = b[p];
33
- }
34
- };
35
-
36
- return _extendStatics(d, b);
37
- };
38
-
39
- return function (d, b) {
40
- _extendStatics(d, b);
41
-
42
- function __() {
43
- this.constructor = d;
44
- }
45
-
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
- };
48
- }();
49
-
50
- var PersonalInformationConfig =
51
- /** @class */
52
- function (_super) {
53
- __extends(PersonalInformationConfig, _super);
54
-
55
- function PersonalInformationConfig() {
56
- var _this = _super !== null && _super.apply(this, arguments) || this;
57
-
58
- _this.getContentPanel = function () {
59
- var data = _this.props.data;
60
- var source = [{
61
- key: 1,
62
- name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
63
- metaOption: data.login
64
- }];
65
- return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
66
- headerSize: "middle",
67
- onRefresh: function onRefresh() {
68
- return (0, _coreUtil.renderPreview)();
69
- },
70
- source: source,
71
- type: "switch"
72
- });
73
- };
74
-
75
- return _this;
76
- }
77
-
78
- PersonalInformationConfig.prototype.render = function () {
79
- var data = this.props.data;
80
- return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
81
- divider: "bold",
82
- headerSize: "large",
83
- source: [{
84
- key: 'PersonalInformation1',
85
- name: (0, _locale.i18n)('LOGIN_OR_REGISTER'),
86
- value: this.getContentPanel()
87
- }, {
88
- key: 'PersonalInformation2',
89
- name: (0, _locale.i18n)('Content'),
90
- value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
91
- maxNum: 4,
92
- source: data.groupSource
93
- }),
94
- metaOption: data.groupSource
95
- }, {
96
- key: 'PersonalInformation3',
97
- name: (0, _locale.i18n)('SPACING'),
98
- value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
99
- data: data.spacing
100
- })
101
- }, {
102
- key: 'PersonalInformation4',
103
- name: (0, _locale.i18n)('BACKGROUND'),
104
- value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
105
- data: data.background
106
- })
107
- }]
108
- }));
109
- };
110
-
111
- PersonalInformationConfig.defaultProps = {
112
- data: {}
113
- };
114
- return PersonalInformationConfig;
115
- }(_react["default"].Component);
116
-
117
- var _default = PersonalInformationConfig;
118
- exports["default"] = _default;
@@ -1,431 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _antd = require("antd");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _commonUtil = require("../../../../../utils/commonUtil");
13
-
14
- var _dataTreeUtils = _interopRequireDefault(require("../../../../../utils/dataTreeUtils"));
15
-
16
- var _common = require("../../../../../common");
17
-
18
- var _locale = require("../../../../../locale");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- var __extends = void 0 && (void 0).__extends || function () {
23
- var _extendStatics = function extendStatics(d, b) {
24
- _extendStatics = Object.setPrototypeOf || {
25
- __proto__: []
26
- } instanceof Array && function (d, b) {
27
- d.__proto__ = b;
28
- } || function (d, b) {
29
- for (var p in b) {
30
- if (b.hasOwnProperty(p)) d[p] = b[p];
31
- }
32
- };
33
-
34
- return _extendStatics(d, b);
35
- };
36
-
37
- return function (d, b) {
38
- _extendStatics(d, b);
39
-
40
- function __() {
41
- this.constructor = d;
42
- }
43
-
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- };
46
- }();
47
-
48
- var __assign = void 0 && (void 0).__assign || function () {
49
- __assign = Object.assign || function (t) {
50
- for (var s, i = 1, n = arguments.length; i < n; i++) {
51
- s = arguments[i];
52
-
53
- for (var p in s) {
54
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
55
- }
56
- }
57
-
58
- return t;
59
- };
60
-
61
- return __assign.apply(this, arguments);
62
- };
63
-
64
- var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
65
- function adopt(value) {
66
- return value instanceof P ? value : new P(function (resolve) {
67
- resolve(value);
68
- });
69
- }
70
-
71
- return new (P || (P = Promise))(function (resolve, reject) {
72
- function fulfilled(value) {
73
- try {
74
- step(generator.next(value));
75
- } catch (e) {
76
- reject(e);
77
- }
78
- }
79
-
80
- function rejected(value) {
81
- try {
82
- step(generator["throw"](value));
83
- } catch (e) {
84
- reject(e);
85
- }
86
- }
87
-
88
- function step(result) {
89
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
90
- }
91
-
92
- step((generator = generator.apply(thisArg, _arguments || [])).next());
93
- });
94
- };
95
-
96
- var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
97
- var _ = {
98
- label: 0,
99
- sent: function sent() {
100
- if (t[0] & 1) throw t[1];
101
- return t[1];
102
- },
103
- trys: [],
104
- ops: []
105
- },
106
- f,
107
- y,
108
- t,
109
- g;
110
- return g = {
111
- next: verb(0),
112
- "throw": verb(1),
113
- "return": verb(2)
114
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
115
- return this;
116
- }), g;
117
-
118
- function verb(n) {
119
- return function (v) {
120
- return step([n, v]);
121
- };
122
- }
123
-
124
- function step(op) {
125
- if (f) throw new TypeError("Generator is already executing.");
126
-
127
- while (_) {
128
- try {
129
- 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;
130
- if (y = 0, t) op = [op[0] & 2, t.value];
131
-
132
- switch (op[0]) {
133
- case 0:
134
- case 1:
135
- t = op;
136
- break;
137
-
138
- case 4:
139
- _.label++;
140
- return {
141
- value: op[1],
142
- done: false
143
- };
144
-
145
- case 5:
146
- _.label++;
147
- y = op[1];
148
- op = [0];
149
- continue;
150
-
151
- case 7:
152
- op = _.ops.pop();
153
-
154
- _.trys.pop();
155
-
156
- continue;
157
-
158
- default:
159
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
160
- _ = 0;
161
- continue;
162
- }
163
-
164
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
165
- _.label = op[1];
166
- break;
167
- }
168
-
169
- if (op[0] === 6 && _.label < t[1]) {
170
- _.label = t[1];
171
- t = op;
172
- break;
173
- }
174
-
175
- if (t && _.label < t[2]) {
176
- _.label = t[2];
177
-
178
- _.ops.push(op);
179
-
180
- break;
181
- }
182
-
183
- if (t[2]) _.ops.pop();
184
-
185
- _.trys.pop();
186
-
187
- continue;
188
- }
189
-
190
- op = body.call(thisArg, _);
191
- } catch (e) {
192
- op = [6, e];
193
- y = 0;
194
- } finally {
195
- f = t = 0;
196
- }
197
- }
198
-
199
- if (op[0] & 5) throw op[1];
200
- return {
201
- value: op[0] ? op[1] : void 0,
202
- done: true
203
- };
204
- }
205
- };
206
-
207
- var Option = _antd.Select.Option;
208
-
209
- var AIRecommendation =
210
- /** @class */
211
- function (_super) {
212
- __extends(AIRecommendation, _super);
213
-
214
- function AIRecommendation() {
215
- var _this = _super !== null && _super.apply(this, arguments) || this;
216
-
217
- _this.state = {
218
- intelligentType: 'Hot',
219
- intelligentValue: [],
220
- categoryData: [],
221
- brandData: [],
222
- labelData: []
223
- };
224
-
225
- _this.onChangeIntelligentType = function (type) {
226
- return __awaiter(_this, void 0, void 0, function () {
227
- return __generator(this, function (_a) {
228
- this.setState({
229
- intelligentType: type,
230
- intelligentValue: []
231
- }); // this.getTypeData(type);
232
-
233
- this.props.onChange({
234
- intelligentType: type,
235
- intelligentValue: []
236
- });
237
- return [2
238
- /*return*/
239
- ];
240
- });
241
- });
242
- };
243
-
244
- _this.getTypeData = function (type) {
245
- return __awaiter(_this, void 0, void 0, function () {
246
- var res, res, res;
247
- return __generator(this, function (_a) {
248
- switch (_a.label) {
249
- case 0:
250
- if (!(type === 'Category')) return [3
251
- /*break*/
252
- , 2];
253
- if (this.state.categoryData.length > 0) return [2
254
- /*return*/
255
- ];
256
- return [4
257
- /*yield*/
258
- , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/offercatgs/list")];
259
-
260
- case 1:
261
- res = _a.sent();
262
- this.setState({
263
- categoryData: _dataTreeUtils["default"].listToTree(res)
264
- });
265
- return [3
266
- /*break*/
267
- , 6];
268
-
269
- case 2:
270
- if (!(type === 'Brand')) return [3
271
- /*break*/
272
- , 4];
273
- if (this.state.brandData.length > 0) return [2
274
- /*return*/
275
- ];
276
- return [4
277
- /*yield*/
278
- , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/designer/resource/brand/list")];
279
-
280
- case 3:
281
- res = _a.sent();
282
- this.setState({
283
- brandData: res
284
- });
285
- return [3
286
- /*break*/
287
- , 6];
288
-
289
- case 4:
290
- if (!(type === 'Label')) return [3
291
- /*break*/
292
- , 6];
293
- if (this.state.labelData.length > 0) return [2
294
- /*return*/
295
- ];
296
- return [4
297
- /*yield*/
298
- , (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/labels/list")];
299
-
300
- case 5:
301
- res = _a.sent();
302
- this.setState({
303
- labelData: res
304
- });
305
- _a.label = 6;
306
-
307
- case 6:
308
- return [2
309
- /*return*/
310
- ];
311
- }
312
- });
313
- });
314
- };
315
-
316
- return _this;
317
- }
318
-
319
- AIRecommendation.prototype.componentDidMount = function () {
320
- var _a = this.props.value,
321
- intelligentType = _a.intelligentType,
322
- intelligentValue = _a.intelligentValue;
323
- this.getTypeData(intelligentType);
324
- this.setState({
325
- intelligentType: intelligentType,
326
- intelligentValue: intelligentValue
327
- });
328
- };
329
-
330
- AIRecommendation.prototype.componentWillReceiveProps = function (nextProps) {
331
- var _a = nextProps.value,
332
- intelligentType = _a.intelligentType,
333
- intelligentValue = _a.intelligentValue;
334
- this.getTypeData(intelligentType);
335
- this.setState({
336
- intelligentType: intelligentType,
337
- intelligentValue: intelligentValue
338
- });
339
- };
340
-
341
- AIRecommendation.prototype.render = function () {
342
- var _this = this;
343
-
344
- var _a = this.state,
345
- intelligentType = _a.intelligentType,
346
- intelligentValue = _a.intelligentValue,
347
- categoryData = _a.categoryData,
348
- brandData = _a.brandData,
349
- labelData = _a.labelData;
350
- var _onChange = this.props.onChange;
351
- return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
352
- split: "dashed",
353
- title: (0, _locale.i18n)('RECOMMENDED_RULES')
354
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
355
- onChange: this.onChangeIntelligentType,
356
- showSearch: true,
357
- value: intelligentType
358
- }, /*#__PURE__*/_react["default"].createElement(Option, {
359
- value: "Hot"
360
- }, (0, _locale.i18n)('HOT')), /*#__PURE__*/_react["default"].createElement(Option, {
361
- value: "Like"
362
- }, (0, _locale.i18n)('GUESS_YOU_LIKE')), /*#__PURE__*/_react["default"].createElement(Option, {
363
- value: "Category"
364
- }, (0, _locale.i18n)('CATEGORY')), /*#__PURE__*/_react["default"].createElement(Option, {
365
- value: "Brand"
366
- }, (0, _locale.i18n)('BRAND')), /*#__PURE__*/_react["default"].createElement(Option, {
367
- value: "Label"
368
- }, (0, _locale.i18n)('LABEL')))), intelligentType === 'Category' && /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_antd.TreeSelect, {
369
- allowClear: true,
370
- dropdownStyle: {
371
- maxHeight: 400,
372
- overflow: 'auto'
373
- },
374
- multiple: true,
375
- onChange: function onChange(value) {
376
- _this.setState({
377
- intelligentValue: value
378
- });
379
-
380
- _onChange(__assign(__assign({}, _this.props.value), {
381
- intelligentValue: value
382
- }));
383
- },
384
- placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
385
- treeData: categoryData,
386
- treeDefaultExpandAll: true,
387
- value: intelligentValue
388
- })), intelligentType === 'Brand' && /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
389
- mode: "multiple",
390
- onChange: function onChange(value) {
391
- _this.setState({
392
- intelligentValue: value
393
- });
394
-
395
- _onChange(__assign(__assign({}, _this.props.value), {
396
- intelligentValue: value
397
- }));
398
- },
399
- placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
400
- value: intelligentValue
401
- }, brandData && brandData.length > 0 && brandData.map(function (v) {
402
- return /*#__PURE__*/_react["default"].createElement(Option, {
403
- key: v.brandId,
404
- value: v.brandId
405
- }, v.brandName);
406
- }))), intelligentType === 'Label' && /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
407
- mode: "multiple",
408
- onChange: function onChange(value) {
409
- _this.setState({
410
- intelligentValue: value
411
- });
412
-
413
- _onChange(__assign(__assign({}, _this.props.value), {
414
- intelligentValue: value
415
- }));
416
- },
417
- placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
418
- value: intelligentValue
419
- }, labelData && labelData.length > 0 && labelData.map(function (v) {
420
- return /*#__PURE__*/_react["default"].createElement(Option, {
421
- key: v.labelId,
422
- value: v.labelId
423
- }, v.labelName);
424
- }))));
425
- };
426
-
427
- return AIRecommendation;
428
- }(_react["default"].Component);
429
-
430
- var _default = AIRecommendation;
431
- exports["default"] = _default;