@fonixtree/magic-design 0.1.78 → 0.1.80

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 (317) hide show
  1. package/es/assets/fonts/Trueno-Light.otf +0 -0
  2. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  3. package/es/assets/fonts/TruenoBd.otf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.css +31 -3
  5. package/es/assets/fonts/magic-box-iconfont.css.bak +31 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  8. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  10. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  11. package/es/assets/images/base64/index.js +36 -2
  12. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  14. package/es/assets/less/cylon-antd.less +7246 -1686
  15. package/es/assets/less/font.less +22 -0
  16. package/es/common/AffiliateProductModal/index.js +582 -0
  17. package/es/common/AffiliateProductModal/index.less +146 -0
  18. package/es/common/CardCarousel/index.js +171 -0
  19. package/es/common/CardCarousel/index.less +28 -0
  20. package/es/common/GroupList/index.less +3 -0
  21. package/es/common/ImagePicker/index.js +1 -3
  22. package/es/common/LinkModal/FilteredProductModal/index.js +1 -1
  23. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  24. package/es/common/LinkModal/index.js +14 -2
  25. package/es/common/MyModal/index.js +417 -0
  26. package/es/common/MyModal/index.less +74 -0
  27. package/es/common/ProductModal/index.js +2 -3
  28. package/es/common/ProductSource/index.js +42 -10
  29. package/es/common/UrlPicker/index.js +3 -1
  30. package/es/common/index.js +16 -0
  31. package/es/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  32. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  33. package/es/composite-comp/bol/components/Video/index.js +1 -2
  34. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  35. package/es/composite-comp/bol/components/Wallet/index.js +11 -15
  36. package/es/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  37. package/es/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  38. package/es/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  39. package/es/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  40. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  41. package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
  42. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  43. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  44. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  45. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  46. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  47. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  48. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  49. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  50. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  51. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  52. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  53. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  54. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  55. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  56. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  57. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  58. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  59. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  60. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  61. package/es/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  62. package/es/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  63. package/es/composite-comp/common/components/ImageLabel/index.less +9 -3
  64. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  65. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  66. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  67. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  68. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  69. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  70. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  71. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  72. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  73. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  74. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  75. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  76. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  77. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  78. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  79. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  80. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  81. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  82. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  83. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  84. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  85. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  86. package/es/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  87. package/es/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  88. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  89. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  90. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  91. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  92. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  93. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  94. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  95. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  96. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  97. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  98. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  99. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  100. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  101. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  102. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  103. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  104. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  105. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  106. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  107. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  108. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  109. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  110. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  111. package/es/constants/component-types.js +27 -3
  112. package/es/constants/index.js +26 -1
  113. package/es/constants/layout.js +48 -1
  114. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  115. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  116. package/es/core/Designer/ChatRobot/index.js +36 -14
  117. package/es/core/Designer/ChatRobot/index.less +69 -28
  118. package/es/core/Designer/ConfigPanel/index.js +8 -3
  119. package/es/core/Designer/History/index.js +2 -2
  120. package/es/core/Designer/PageCompList/index.js +8 -5
  121. package/es/core/Designer/QuickMenuBar/index.js +5 -3
  122. package/es/core/Designer/QuickMenuBar/index.less +4 -0
  123. package/es/core/Designer/RenderHtml/index.js +18 -15
  124. package/es/core/Designer/RenderHtml/index.less +1 -1
  125. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  126. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  127. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  128. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  129. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  130. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  131. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  132. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  133. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  134. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  135. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  136. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  137. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  138. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  139. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  140. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  141. package/es/core/Designer/ToolBarModal/index.js +68 -22
  142. package/es/core/Designer/ToolBarModal/index.less +3 -2
  143. package/es/core/Designer/index.js +12 -1
  144. package/es/core/Renderer/index.js +55 -8
  145. package/es/decorator/compositeDecorator.js +23 -0
  146. package/es/locale/en/en.json +6 -1
  147. package/es/locale/es/es.json +6 -1
  148. package/es/locale/id/id.json +6 -1
  149. package/es/meta-comp/components/Image/index.js +31 -25
  150. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  151. package/es/meta-comp/components/Text/index.js +20 -1
  152. package/es/meta-comp/components/Text/index.less +8 -0
  153. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  154. package/es/meta-comp/config-panels/ImageConfig/index.js +48 -44
  155. package/es/mobx/Frame.js +17 -2
  156. package/es/utils/businessUtil.js +17 -6
  157. package/es/utils/commonUtil.js +54 -4
  158. package/es/utils/currencyUtil.js +9 -2
  159. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  160. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  161. package/lib/assets/fonts/TruenoBd.otf +0 -0
  162. package/lib/assets/fonts/magic-box-iconfont.css +31 -3
  163. package/lib/assets/fonts/magic-box-iconfont.css.bak +31 -3
  164. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  165. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  166. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  167. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  168. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  169. package/lib/assets/images/base64/index.js +36 -2
  170. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  171. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  172. package/lib/assets/less/cylon-antd.less +7246 -1686
  173. package/lib/assets/less/font.less +22 -0
  174. package/lib/common/AffiliateProductModal/index.js +582 -0
  175. package/lib/common/AffiliateProductModal/index.less +146 -0
  176. package/lib/common/CardCarousel/index.js +171 -0
  177. package/lib/common/CardCarousel/index.less +28 -0
  178. package/lib/common/GroupList/index.less +3 -0
  179. package/lib/common/ImagePicker/index.js +1 -3
  180. package/lib/common/LinkModal/FilteredProductModal/index.js +1 -1
  181. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  182. package/lib/common/LinkModal/index.js +14 -2
  183. package/lib/common/MyModal/index.js +417 -0
  184. package/lib/common/MyModal/index.less +74 -0
  185. package/lib/common/ProductModal/index.js +2 -3
  186. package/lib/common/ProductSource/index.js +42 -10
  187. package/lib/common/UrlPicker/index.js +3 -1
  188. package/lib/common/index.js +16 -0
  189. package/lib/composite-comp/bol/components/Banner/mobile/index.js +4 -1
  190. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  191. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  192. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +112 -88
  193. package/lib/composite-comp/bol/components/Wallet/index.js +11 -15
  194. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +314 -64
  195. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +89 -13
  196. package/lib/composite-comp/bol/components/Wallet/pc/index.js +0 -2
  197. package/lib/composite-comp/bol/components/Wallet/pc/index.less +1 -40
  198. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
  199. package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
  200. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
  201. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
  202. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +1 -6
  203. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +201 -0
  204. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +9 -0
  205. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +11 -2
  206. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  207. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  208. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  209. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  210. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  211. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  212. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
  213. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  214. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  215. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +58 -82
  216. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +2 -0
  217. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +9 -0
  218. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +40 -0
  219. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +177 -0
  220. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +129 -0
  221. package/lib/composite-comp/common/components/ImageLabel/index.less +9 -3
  222. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  223. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  224. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +13 -0
  225. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +3 -2
  226. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +243 -0
  227. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +90 -0
  228. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +660 -0
  229. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +84 -0
  230. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +728 -0
  231. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +124 -0
  232. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +8 -6
  233. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +8 -6
  234. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  235. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  236. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  237. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  238. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  239. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  240. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  241. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  242. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  243. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  244. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +10 -9
  245. package/lib/composite-comp/dito/components/Recommend/pc/index.js +12 -11
  246. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  247. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +102 -0
  248. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  249. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +148 -0
  250. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +16 -0
  251. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  252. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +141 -0
  253. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  254. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  255. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  256. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  257. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  258. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  259. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  260. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  261. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  262. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  263. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +15 -11
  264. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +431 -0
  265. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +214 -0
  266. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +15 -0
  267. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  268. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  269. package/lib/constants/component-types.js +27 -3
  270. package/lib/constants/index.js +26 -1
  271. package/lib/constants/layout.js +48 -1
  272. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  273. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  274. package/lib/core/Designer/ChatRobot/index.js +36 -14
  275. package/lib/core/Designer/ChatRobot/index.less +69 -28
  276. package/lib/core/Designer/ConfigPanel/index.js +8 -3
  277. package/lib/core/Designer/History/index.js +2 -2
  278. package/lib/core/Designer/PageCompList/index.js +8 -5
  279. package/lib/core/Designer/QuickMenuBar/index.js +5 -3
  280. package/lib/core/Designer/QuickMenuBar/index.less +4 -0
  281. package/lib/core/Designer/RenderHtml/index.js +18 -15
  282. package/lib/core/Designer/RenderHtml/index.less +1 -1
  283. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +19 -6
  284. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +19 -6
  285. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +19 -6
  286. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +27 -6
  287. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +4 -20
  288. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +77 -0
  289. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +27 -0
  290. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +36 -5
  291. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +17 -16
  292. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +27 -6
  293. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +4 -20
  294. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +40 -0
  295. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +40 -0
  296. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +40 -0
  297. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +28 -3
  298. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +2 -1
  299. package/lib/core/Designer/ToolBarModal/index.js +68 -22
  300. package/lib/core/Designer/ToolBarModal/index.less +3 -2
  301. package/lib/core/Designer/index.js +12 -1
  302. package/lib/core/Renderer/index.js +55 -8
  303. package/lib/decorator/compositeDecorator.js +23 -0
  304. package/lib/locale/en/en.json +6 -1
  305. package/lib/locale/es/es.json +6 -1
  306. package/lib/locale/id/id.json +6 -1
  307. package/lib/meta-comp/components/Image/index.js +31 -25
  308. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  309. package/lib/meta-comp/components/Text/index.js +20 -1
  310. package/lib/meta-comp/components/Text/index.less +8 -0
  311. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  312. package/lib/meta-comp/config-panels/ImageConfig/index.js +48 -44
  313. package/lib/mobx/Frame.js +17 -2
  314. package/lib/utils/businessUtil.js +17 -6
  315. package/lib/utils/commonUtil.js +54 -4
  316. package/lib/utils/currencyUtil.js +9 -2
  317. package/package.json +1 -1
@@ -0,0 +1,728 @@
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 _macy = _interopRequireDefault(require("macy"));
11
+
12
+ require("./index.less");
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _debounce = _interopRequireDefault(require("lodash/debounce"));
17
+
18
+ var _lodash = _interopRequireDefault(require("lodash.throttle"));
19
+
20
+ var _mobx = require("../../../../../mobx");
21
+
22
+ var _AffiliateProductItem = _interopRequireDefault(require("../../../../common/components/AffiliateProductItem"));
23
+
24
+ var _components = require("../../../../../meta-comp/components");
25
+
26
+ var _storeUtil = require("../../../../../utils/storeUtil");
27
+
28
+ var _commonUtil = require("../../../../../utils/commonUtil");
29
+
30
+ var _coreUtil = require("../../../../../utils/coreUtil");
31
+
32
+ var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
33
+
34
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
35
+
36
+ var __extends = void 0 && (void 0).__extends || function () {
37
+ var _extendStatics = function extendStatics(d, b) {
38
+ _extendStatics = Object.setPrototypeOf || {
39
+ __proto__: []
40
+ } instanceof Array && function (d, b) {
41
+ d.__proto__ = b;
42
+ } || function (d, b) {
43
+ for (var p in b) {
44
+ if (b.hasOwnProperty(p)) d[p] = b[p];
45
+ }
46
+ };
47
+
48
+ return _extendStatics(d, b);
49
+ };
50
+
51
+ return function (d, b) {
52
+ _extendStatics(d, b);
53
+
54
+ function __() {
55
+ this.constructor = d;
56
+ }
57
+
58
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
59
+ };
60
+ }();
61
+
62
+ var __assign = void 0 && (void 0).__assign || function () {
63
+ __assign = Object.assign || function (t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+
67
+ for (var p in s) {
68
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
69
+ }
70
+ }
71
+
72
+ return t;
73
+ };
74
+
75
+ return __assign.apply(this, arguments);
76
+ };
77
+
78
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
79
+ function adopt(value) {
80
+ return value instanceof P ? value : new P(function (resolve) {
81
+ resolve(value);
82
+ });
83
+ }
84
+
85
+ return new (P || (P = Promise))(function (resolve, reject) {
86
+ function fulfilled(value) {
87
+ try {
88
+ step(generator.next(value));
89
+ } catch (e) {
90
+ reject(e);
91
+ }
92
+ }
93
+
94
+ function rejected(value) {
95
+ try {
96
+ step(generator["throw"](value));
97
+ } catch (e) {
98
+ reject(e);
99
+ }
100
+ }
101
+
102
+ function step(result) {
103
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
104
+ }
105
+
106
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
107
+ });
108
+ };
109
+
110
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
111
+ var _ = {
112
+ label: 0,
113
+ sent: function sent() {
114
+ if (t[0] & 1) throw t[1];
115
+ return t[1];
116
+ },
117
+ trys: [],
118
+ ops: []
119
+ },
120
+ f,
121
+ y,
122
+ t,
123
+ g;
124
+ return g = {
125
+ next: verb(0),
126
+ "throw": verb(1),
127
+ "return": verb(2)
128
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
129
+ return this;
130
+ }), g;
131
+
132
+ function verb(n) {
133
+ return function (v) {
134
+ return step([n, v]);
135
+ };
136
+ }
137
+
138
+ function step(op) {
139
+ if (f) throw new TypeError("Generator is already executing.");
140
+
141
+ while (_) {
142
+ try {
143
+ 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;
144
+ if (y = 0, t) op = [op[0] & 2, t.value];
145
+
146
+ switch (op[0]) {
147
+ case 0:
148
+ case 1:
149
+ t = op;
150
+ break;
151
+
152
+ case 4:
153
+ _.label++;
154
+ return {
155
+ value: op[1],
156
+ done: false
157
+ };
158
+
159
+ case 5:
160
+ _.label++;
161
+ y = op[1];
162
+ op = [0];
163
+ continue;
164
+
165
+ case 7:
166
+ op = _.ops.pop();
167
+
168
+ _.trys.pop();
169
+
170
+ continue;
171
+
172
+ default:
173
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
174
+ _ = 0;
175
+ continue;
176
+ }
177
+
178
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
179
+ _.label = op[1];
180
+ break;
181
+ }
182
+
183
+ if (op[0] === 6 && _.label < t[1]) {
184
+ _.label = t[1];
185
+ t = op;
186
+ break;
187
+ }
188
+
189
+ if (t && _.label < t[2]) {
190
+ _.label = t[2];
191
+
192
+ _.ops.push(op);
193
+
194
+ break;
195
+ }
196
+
197
+ if (t[2]) _.ops.pop();
198
+
199
+ _.trys.pop();
200
+
201
+ continue;
202
+ }
203
+
204
+ op = body.call(thisArg, _);
205
+ } catch (e) {
206
+ op = [6, e];
207
+ y = 0;
208
+ } finally {
209
+ f = t = 0;
210
+ }
211
+ }
212
+
213
+ if (op[0] & 5) throw op[1];
214
+ return {
215
+ value: op[0] ? op[1] : void 0,
216
+ done: true
217
+ };
218
+ }
219
+ };
220
+
221
+ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
222
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
223
+ s += arguments[i].length;
224
+ }
225
+
226
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
227
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
228
+ r[k] = a[j];
229
+ }
230
+ }
231
+
232
+ return r;
233
+ };
234
+
235
+ var RecommendPc =
236
+ /** @class */
237
+ function (_super) {
238
+ __extends(RecommendPc, _super);
239
+
240
+ function RecommendPc() {
241
+ var _this = _super !== null && _super.apply(this, arguments) || this;
242
+
243
+ _this.preData = {};
244
+ _this.preLayout = '';
245
+ _this.preContent = '';
246
+ _this.preSpacing = '';
247
+ _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
248
+ return (0, _storeUtil.getMagicStore)("recommend_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
249
+ }, {});
250
+ _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
251
+ _this.state = __assign({
252
+ contentWidth: 0,
253
+ tabIndex: 0,
254
+ tabLeft: 0,
255
+ tabWidth: 0,
256
+ groupSource: [],
257
+ hideTabs: false,
258
+ scrollToLeftDisabled: true,
259
+ scrollToRightDisabled: true
260
+ }, _this._cache);
261
+
262
+ _this.listenWidth = function () {
263
+ setTimeout(function () {
264
+ var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id) || document.querySelector(".scrollContainer_" + _this.props.panelProps.id);
265
+ if (renderContainer) _this.setState({
266
+ contentWidth: renderContainer.offsetWidth
267
+ });
268
+ });
269
+ };
270
+
271
+ _this.setScrollDisabled = function (scrollDom) {
272
+ var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
273
+ var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
274
+
275
+ _this.setState({
276
+ scrollToLeftDisabled: scrollToLeftDisabled,
277
+ scrollToRightDisabled: scrollToRightDisabled
278
+ });
279
+ };
280
+
281
+ _this.initTab = function (index, hideTabs) {
282
+ var selectedTabDom = document.querySelector(".tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
283
+ var tabLeft = 0;
284
+ var tabWidth = 0;
285
+
286
+ if (selectedTabDom && !hideTabs) {
287
+ tabLeft = selectedTabDom.offsetLeft;
288
+ tabWidth = selectedTabDom.offsetWidth;
289
+ }
290
+
291
+ _this.setState({
292
+ tabLeft: tabLeft,
293
+ tabWidth: tabWidth
294
+ });
295
+ };
296
+
297
+ _this.getTabBarActiveColor = function (_panelProps) {
298
+ var tabIndex = _this.state.tabIndex;
299
+ return (0, _commonUtil.ensure)(function () {
300
+ return _panelProps.groupSource[tabIndex].hover.groupName.content.color;
301
+ }, '#1890ff');
302
+ };
303
+
304
+ _this.getProductList = function (index) {
305
+ return __awaiter(_this, void 0, void 0, function () {
306
+ var panelProps, groupSource, recommendId, pageId, cache, _a, prodIds, newData, res, e_1, _cache;
307
+
308
+ var _b, _c, _d;
309
+
310
+ var _this = this;
311
+
312
+ return __generator(this, function (_e) {
313
+ switch (_e.label) {
314
+ case 0:
315
+ panelProps = this.props.panelProps;
316
+ groupSource = this.state.groupSource;
317
+ recommendId = panelProps.id;
318
+ pageId = window.magicDesign.pageId || '';
319
+
320
+ if (!(0, _coreUtil.isDesignMode)()) {
321
+ cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
322
+
323
+ if (cache) {
324
+ if ("products" + index in cache) {
325
+ this.setState((_b = {}, _b["products" + index] = cache["products" + index], _b), function () {
326
+ _this.resetLayout();
327
+ });
328
+ /** 如果数据未过期 */
329
+
330
+ if (cache.endTime > Date.now()) return [2
331
+ /*return*/
332
+ ];
333
+ }
334
+ }
335
+ }
336
+
337
+ _a = (groupSource[index] || {}).prodIds, prodIds = _a === void 0 ? '' : _a;
338
+ newData = [];
339
+ _e.label = 1;
340
+
341
+ case 1:
342
+ _e.trys.push([1, 5,, 6]);
343
+
344
+ if (!(groupSource.length > 0)) return [3
345
+ /*break*/
346
+ , 3];
347
+
348
+ if (!prodIds) {
349
+ return [2
350
+ /*return*/
351
+ ];
352
+ }
353
+
354
+ return [4
355
+ /*yield*/
356
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
357
+ affiliateProductIds: prodIds,
358
+ pageIndex: 1,
359
+ pageSize: prodIds.split(',').length || 20
360
+ }, 'GET')];
361
+
362
+ case 2:
363
+ res = _e.sent();
364
+ newData = __spreadArrays(res.list);
365
+ return [3
366
+ /*break*/
367
+ , 4];
368
+
369
+ case 3:
370
+ newData = [];
371
+ _e.label = 4;
372
+
373
+ case 4:
374
+ return [3
375
+ /*break*/
376
+ , 6];
377
+
378
+ case 5:
379
+ e_1 = _e.sent();
380
+ newData = [];
381
+ return [3
382
+ /*break*/
383
+ , 6];
384
+
385
+ case 6:
386
+ if (!(0, _coreUtil.isDesignMode)()) {
387
+ _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
388
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_c = {}, _c["products" + index] = newData, _c.endTime = Date.now() + 3 * 60 * 1000, _c)));
389
+ }
390
+
391
+ this.setState((_d = {}, _d["products" + index] = newData, _d), function () {
392
+ _this.resetLayout();
393
+ });
394
+ return [2
395
+ /*return*/
396
+ ];
397
+ }
398
+ });
399
+ });
400
+ };
401
+
402
+ _this.resetLayout = function () {
403
+ var customize = _this.props.panelProps.customize;
404
+ if (customize.layout.pcLayout !== 'layout1') return;
405
+ setTimeout(function () {
406
+ if (document.querySelector(".macyContainer_" + _this.props.panelProps.id)) {
407
+ _this.getMacy(".macyContainer_" + _this.props.panelProps.id, customize.pcRowNum);
408
+ }
409
+ }, 10);
410
+ };
411
+
412
+ _this.getMacy = function (container, columns) {
413
+ var masonryNew = new _macy["default"]({
414
+ container: container,
415
+ trueOrder: false,
416
+ waitForImages: false,
417
+ useOwnImageLoader: false,
418
+ margin: {
419
+ x: 24,
420
+ y: 24
421
+ },
422
+ columns: columns
423
+ });
424
+ masonryNew.runOnImageLoad(function () {
425
+ masonryNew.recalculate(true);
426
+ }, true);
427
+ };
428
+
429
+ _this.onTabClick = function (e, index) {
430
+ var tabIndex = _this.state.tabIndex;
431
+ if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
432
+
433
+ _this.setState({
434
+ tabIndex: index
435
+ }, function () {
436
+ _this.resetLayout();
437
+
438
+ _this.initTab(index);
439
+ });
440
+
441
+ _this.getProductList(index);
442
+
443
+ setTimeout(function () {
444
+ var scrollDom = _this.scrollRef.current;
445
+
446
+ if (scrollDom) {
447
+ _this.setScrollDisabled(scrollDom);
448
+
449
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
450
+ _this.setScrollDisabled(scrollDom);
451
+ }, 500);
452
+ }
453
+ }, 0);
454
+ };
455
+
456
+ _this.scrollToRight = function () {
457
+ var scrollDom = _this.scrollRef.current;
458
+
459
+ if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
460
+ scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
461
+ }
462
+ };
463
+
464
+ _this.scrollToLeft = function () {
465
+ var scrollDom = _this.scrollRef.current;
466
+
467
+ if (scrollDom.scrollLeft > 0) {
468
+ scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
469
+ }
470
+ };
471
+
472
+ return _this;
473
+ }
474
+
475
+ RecommendPc.prototype.componentDidMount = function () {
476
+ var _this = this;
477
+
478
+ var panelProps = this.props.panelProps;
479
+ var source = [];
480
+ panelProps.groupSource.map(function (m) {
481
+ var show = m.image.open || m.groupName.open;
482
+ if (show) source.push(m);
483
+ });
484
+ this.setState({
485
+ groupSource: source
486
+ }, function () {
487
+ _this.initTab(0);
488
+
489
+ _this.getProductList(0);
490
+ });
491
+ setTimeout(function () {
492
+ var scrollDom = _this.scrollRef.current;
493
+
494
+ if (scrollDom) {
495
+ _this.setScrollDisabled(scrollDom);
496
+
497
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
498
+ _this.setScrollDisabled(scrollDom);
499
+ }, 500);
500
+ }
501
+ }, 0);
502
+ this.listenWidth();
503
+ window.addEventListener('resize', (0, _debounce["default"])(this.listenWidth));
504
+ };
505
+
506
+ RecommendPc.prototype.componentWillUnmount = function () {
507
+ window.removeEventListener('resize', this.listenWidth);
508
+ };
509
+
510
+ RecommendPc.prototype.componentWillReceiveProps = function (nextProps) {
511
+ var _this = this;
512
+
513
+ var tabIndex = this.state.tabIndex;
514
+ var panelProps = nextProps.panelProps;
515
+ var source = [];
516
+ var hideTabs = false;
517
+ panelProps.groupSource.map(function (m) {
518
+ var show = m.image.open || m.groupName.open;
519
+ if (show) source.push(m);
520
+ });
521
+
522
+ if (source.length === 0) {
523
+ if (panelProps.groupSource.length > 0) source.push(panelProps.groupSource[0]);
524
+ hideTabs = true;
525
+ }
526
+
527
+ this.setState({
528
+ groupSource: source
529
+ }, function () {
530
+ var groupSource = _this.state.groupSource;
531
+
532
+ if (JSON.stringify(groupSource) === _this.preData) {
533
+ return;
534
+ }
535
+
536
+ _this.preData = JSON.stringify(groupSource);
537
+ var newTabIndex = tabIndex;
538
+ if (tabIndex >= source.length) newTabIndex = 0;
539
+
540
+ _this.initTab(newTabIndex, hideTabs);
541
+
542
+ _this.getProductList(newTabIndex);
543
+
544
+ _this.setState({
545
+ tabIndex: newTabIndex,
546
+ hideTabs: hideTabs
547
+ });
548
+ });
549
+ var curLayout = JSON.stringify(panelProps.customize);
550
+
551
+ if (curLayout !== this.preLayout) {
552
+ this.resetLayout();
553
+ setTimeout(function () {
554
+ var scrollDom = _this.scrollRef.current;
555
+
556
+ if (scrollDom) {
557
+ _this.setScrollDisabled(scrollDom);
558
+
559
+ scrollDom.onscroll = (0, _lodash["default"])(function () {
560
+ _this.setScrollDisabled(scrollDom);
561
+ }, 500);
562
+ }
563
+ }, 0);
564
+ }
565
+
566
+ var curContent = JSON.stringify(panelProps.content);
567
+ var curSpacing = JSON.stringify(panelProps.spacing);
568
+
569
+ if (curLayout !== this.preLayout || curSpacing !== this.preSpacing) {
570
+ this.listenWidth();
571
+ }
572
+
573
+ if (curContent !== this.preContent || curSpacing !== this.preSpacing) {
574
+ this.resetLayout();
575
+ }
576
+
577
+ this.preLayout = curLayout;
578
+ this.preContent = curContent;
579
+ this.preSpacing = curSpacing;
580
+ };
581
+
582
+ RecommendPc.prototype.render = function () {
583
+ var _this = this;
584
+
585
+ var panelProps = this.props.panelProps;
586
+ var _a = this.state,
587
+ tabIndex = _a.tabIndex,
588
+ tabLeft = _a.tabLeft,
589
+ tabWidth = _a.tabWidth,
590
+ groupSource = _a.groupSource,
591
+ hideTabs = _a.hideTabs,
592
+ scrollToLeftDisabled = _a.scrollToLeftDisabled,
593
+ scrollToRightDisabled = _a.scrollToRightDisabled,
594
+ contentWidth = _a.contentWidth;
595
+ var products = this.state["products" + tabIndex] || [];
596
+ var isDivide = false;
597
+ var layout = panelProps.customize.layout.pcLayout;
598
+
599
+ var _seeAll = (0, _commonUtil.ensure)(function () {
600
+ return groupSource[tabIndex].seeAll;
601
+ }, '');
602
+
603
+ var imgSize = 140;
604
+ var otherWidth = layout === 'layout3' ? 100 : 0;
605
+ var colNumber = layout === 'layout1' ? panelProps.customize.pcRowNum : panelProps.customize.pcRowNum + 0.5;
606
+ var spaceNumber = layout === 'layout1' ? panelProps.customize.pcRowNum - 1 : panelProps.customize.pcRowNum;
607
+ if (contentWidth) imgSize = (contentWidth - 24 * spaceNumber - otherWidth) / colNumber;
608
+ return /*#__PURE__*/_react["default"].createElement("div", {
609
+ className: "m-recommend-pc"
610
+ }, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
611
+ className: "tab-select-wrap"
612
+ }, groupSource.map(function (tab, index) {
613
+ var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
614
+
615
+ var _groupName = index == tabIndex && tab.hover.open && tab.hover.groupName.open ? tab.hover.groupName : tab.groupName;
616
+
617
+ return /*#__PURE__*/_react["default"].createElement("div", {
618
+ key: tab.id,
619
+ className: "tabTitle",
620
+ onClick: function onClick(e) {
621
+ _this.onTabClick(e, index);
622
+
623
+ _mobx.store.setState({
624
+ clickedGroup: tab.id,
625
+ clickedFloor: _mobx.store.getFloorIdByGroupId(tab.id)
626
+ });
627
+ },
628
+ style: {
629
+ flex: ~~isDivide
630
+ }
631
+ }, tab.image.open && _image && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
632
+ data: _image
633
+ }), tab.groupName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
634
+ data: _groupName,
635
+ onTextInput: function onTextInput(text) {
636
+ tab.hover.groupName.text = text;
637
+ tab.groupName.text = text;
638
+ }
639
+ }));
640
+ }), /*#__PURE__*/_react["default"].createElement("div", {
641
+ className: "active-line",
642
+ style: {
643
+ width: tabWidth,
644
+ transform: "translateX(" + tabLeft + "px)",
645
+ background: this.getTabBarActiveColor(panelProps)
646
+ }
647
+ })), /*#__PURE__*/_react["default"].createElement("div", {
648
+ className: "tab-content"
649
+ }, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
650
+ className: "arrow-icon left",
651
+ onClick: function onClick() {
652
+ return _this.scrollToLeft();
653
+ }
654
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
655
+ color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
656
+ size: (0, _commonUtil.convertToRem)(20),
657
+ type: "icon-outlined-left"
658
+ })), layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", {
659
+ className: "tab-list"
660
+ }, /*#__PURE__*/_react["default"].createElement("div", {
661
+ key: "macyContainer",
662
+ ref: this.scrollRef,
663
+ className: "macyContainer macyContainer_" + panelProps.id
664
+ }, products.map(function (item) {
665
+ return /*#__PURE__*/_react["default"].createElement(_AffiliateProductItem["default"], {
666
+ key: item.productId,
667
+ data: item,
668
+ fixHeight: true,
669
+ imgHeight: imgSize,
670
+ imgWidth: "100%" // onItemClick={() => clickUrl(`/product/detail/${item.offerId}`)}
671
+ ,
672
+ onItemClick: function onItemClick() {
673
+ return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId);
674
+ },
675
+ panelProps: panelProps.content
676
+ });
677
+ })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
678
+ className: (0, _classnames["default"])('btnSeeAll', {
679
+ line: layout === 'layout1'
680
+ }),
681
+ data: _seeAll
682
+ })) : /*#__PURE__*/_react["default"].createElement("div", {
683
+ key: "scrollContainer",
684
+ ref: this.scrollRef,
685
+ className: (0, _classnames["default"])("scrollContainer scrollContainer_" + panelProps.id, {
686
+ pl_100: layout === 'layout3'
687
+ })
688
+ }, /*#__PURE__*/_react["default"].createElement("div", {
689
+ className: "scrollProductList"
690
+ }, products.map(function (item) {
691
+ return /*#__PURE__*/_react["default"].createElement("div", {
692
+ className: "productCard"
693
+ }, /*#__PURE__*/_react["default"].createElement(_AffiliateProductItem["default"], {
694
+ key: "scroll_" + item.productId,
695
+ data: item,
696
+ fixHeight: true,
697
+ imgHeight: imgSize,
698
+ imgWidth: imgSize // onItemClick={() => clickUrl(`/product/detail/${item.offerId}`)}
699
+ ,
700
+ onItemClick: function onItemClick() {
701
+ return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId);
702
+ },
703
+ panelProps: panelProps.content,
704
+ showProgress: false
705
+ }));
706
+ })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
707
+ className: "btnSeeAll",
708
+ data: _seeAll
709
+ })), layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
710
+ className: "arrow-icon right",
711
+ onClick: function onClick() {
712
+ return _this.scrollToRight();
713
+ }
714
+ }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
715
+ color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
716
+ size: (0, _commonUtil.convertToRem)(20),
717
+ type: "icon-outlined-right"
718
+ }))));
719
+ };
720
+
721
+ RecommendPc.defaultProps = {
722
+ panelProps: {}
723
+ };
724
+ return RecommendPc;
725
+ }(_react["default"].Component);
726
+
727
+ var _default = RecommendPc;
728
+ exports["default"] = _default;