@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,660 @@
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 _mobx = require("../../../../../mobx");
17
+
18
+ var _AffiliateProductItem = _interopRequireDefault(require("../../../../common/components/AffiliateProductItem"));
19
+
20
+ var _components = require("../../../../../meta-comp/components");
21
+
22
+ var _storeUtil = require("../../../../../utils/storeUtil");
23
+
24
+ var _commonUtil = require("../../../../../utils/commonUtil");
25
+
26
+ var _coreUtil = require("../../../../../utils/coreUtil");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
+
30
+ var __extends = void 0 && (void 0).__extends || function () {
31
+ var _extendStatics = function extendStatics(d, b) {
32
+ _extendStatics = Object.setPrototypeOf || {
33
+ __proto__: []
34
+ } instanceof Array && function (d, b) {
35
+ d.__proto__ = b;
36
+ } || function (d, b) {
37
+ for (var p in b) {
38
+ if (b.hasOwnProperty(p)) d[p] = b[p];
39
+ }
40
+ };
41
+
42
+ return _extendStatics(d, b);
43
+ };
44
+
45
+ return function (d, b) {
46
+ _extendStatics(d, b);
47
+
48
+ function __() {
49
+ this.constructor = d;
50
+ }
51
+
52
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
+ };
54
+ }();
55
+
56
+ var __assign = void 0 && (void 0).__assign || function () {
57
+ __assign = Object.assign || function (t) {
58
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
59
+ s = arguments[i];
60
+
61
+ for (var p in s) {
62
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
63
+ }
64
+ }
65
+
66
+ return t;
67
+ };
68
+
69
+ return __assign.apply(this, arguments);
70
+ };
71
+
72
+ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
73
+ function adopt(value) {
74
+ return value instanceof P ? value : new P(function (resolve) {
75
+ resolve(value);
76
+ });
77
+ }
78
+
79
+ return new (P || (P = Promise))(function (resolve, reject) {
80
+ function fulfilled(value) {
81
+ try {
82
+ step(generator.next(value));
83
+ } catch (e) {
84
+ reject(e);
85
+ }
86
+ }
87
+
88
+ function rejected(value) {
89
+ try {
90
+ step(generator["throw"](value));
91
+ } catch (e) {
92
+ reject(e);
93
+ }
94
+ }
95
+
96
+ function step(result) {
97
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
98
+ }
99
+
100
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
101
+ });
102
+ };
103
+
104
+ var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
105
+ var _ = {
106
+ label: 0,
107
+ sent: function sent() {
108
+ if (t[0] & 1) throw t[1];
109
+ return t[1];
110
+ },
111
+ trys: [],
112
+ ops: []
113
+ },
114
+ f,
115
+ y,
116
+ t,
117
+ g;
118
+ return g = {
119
+ next: verb(0),
120
+ "throw": verb(1),
121
+ "return": verb(2)
122
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
123
+ return this;
124
+ }), g;
125
+
126
+ function verb(n) {
127
+ return function (v) {
128
+ return step([n, v]);
129
+ };
130
+ }
131
+
132
+ function step(op) {
133
+ if (f) throw new TypeError("Generator is already executing.");
134
+
135
+ while (_) {
136
+ try {
137
+ 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;
138
+ if (y = 0, t) op = [op[0] & 2, t.value];
139
+
140
+ switch (op[0]) {
141
+ case 0:
142
+ case 1:
143
+ t = op;
144
+ break;
145
+
146
+ case 4:
147
+ _.label++;
148
+ return {
149
+ value: op[1],
150
+ done: false
151
+ };
152
+
153
+ case 5:
154
+ _.label++;
155
+ y = op[1];
156
+ op = [0];
157
+ continue;
158
+
159
+ case 7:
160
+ op = _.ops.pop();
161
+
162
+ _.trys.pop();
163
+
164
+ continue;
165
+
166
+ default:
167
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
168
+ _ = 0;
169
+ continue;
170
+ }
171
+
172
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
173
+ _.label = op[1];
174
+ break;
175
+ }
176
+
177
+ if (op[0] === 6 && _.label < t[1]) {
178
+ _.label = t[1];
179
+ t = op;
180
+ break;
181
+ }
182
+
183
+ if (t && _.label < t[2]) {
184
+ _.label = t[2];
185
+
186
+ _.ops.push(op);
187
+
188
+ break;
189
+ }
190
+
191
+ if (t[2]) _.ops.pop();
192
+
193
+ _.trys.pop();
194
+
195
+ continue;
196
+ }
197
+
198
+ op = body.call(thisArg, _);
199
+ } catch (e) {
200
+ op = [6, e];
201
+ y = 0;
202
+ } finally {
203
+ f = t = 0;
204
+ }
205
+ }
206
+
207
+ if (op[0] & 5) throw op[1];
208
+ return {
209
+ value: op[0] ? op[1] : void 0,
210
+ done: true
211
+ };
212
+ }
213
+ };
214
+
215
+ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
216
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
217
+ s += arguments[i].length;
218
+ }
219
+
220
+ for (var r = Array(s), k = 0, i = 0; i < il; i++) {
221
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
222
+ r[k] = a[j];
223
+ }
224
+ }
225
+
226
+ return r;
227
+ };
228
+
229
+ var LAYOUT_IMAGE_SIZE = {
230
+ layout1: {
231
+ w: '100%',
232
+ h: ''
233
+ },
234
+ layout2: {
235
+ w: 100,
236
+ h: 100
237
+ },
238
+ layout3: {
239
+ w: '100%',
240
+ h: ''
241
+ },
242
+ layout4: {
243
+ w: 152,
244
+ h: 152
245
+ },
246
+ layout5: {
247
+ w: 152,
248
+ h: 152
249
+ }
250
+ };
251
+
252
+ var RecommendMobile =
253
+ /** @class */
254
+ function (_super) {
255
+ __extends(RecommendMobile, _super);
256
+
257
+ function RecommendMobile() {
258
+ var _this = _super !== null && _super.apply(this, arguments) || this;
259
+
260
+ _this.preData = {};
261
+ _this.preLayout = '';
262
+ _this.preContent = '';
263
+ _this.preSpacing = '';
264
+ _this._cache = (0, _coreUtil.isDesignMode)() ? {} : (0, _commonUtil.ensure)(function () {
265
+ return (0, _storeUtil.getMagicStore)("recommend_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
266
+ }, {});
267
+ _this.state = __assign({
268
+ contentWidth: 0,
269
+ tabIndex: 0,
270
+ tabLeft: 0,
271
+ tabWidth: 0,
272
+ groupSource: [],
273
+ hideTabs: false
274
+ }, _this._cache);
275
+
276
+ _this.listenWidth = function () {
277
+ setTimeout(function () {
278
+ var renderContainer = document.querySelector(".macyContainer_" + _this.props.panelProps.id);
279
+ if (renderContainer) _this.setState({
280
+ contentWidth: renderContainer.offsetWidth
281
+ });
282
+ });
283
+ };
284
+
285
+ _this.initTab = function (index, hideTabs) {
286
+ var selectedTabDom = document.querySelector(".recommend_" + _this.props.panelProps.id + " .tab-select-wrap .tabTitle:nth-child(" + (index + 1) + ")");
287
+ var tabLeft = 0;
288
+ var tabWidth = 0;
289
+
290
+ if (selectedTabDom && !hideTabs) {
291
+ tabLeft = selectedTabDom.offsetLeft;
292
+ tabWidth = selectedTabDom.offsetWidth;
293
+ }
294
+
295
+ _this.setState({
296
+ tabLeft: tabLeft,
297
+ tabWidth: tabWidth
298
+ });
299
+ };
300
+
301
+ _this.getTabBarActiveColor = function (_panelProps) {
302
+ var tabIndex = _this.state.tabIndex;
303
+ var activeHoverGroupName = _panelProps.groupSource[tabIndex].hover;
304
+ return activeHoverGroupName.open ? (0, _commonUtil.ensure)(function () {
305
+ return activeHoverGroupName.groupName.content.color;
306
+ }, '#CE1126') : '#CE1126';
307
+ };
308
+
309
+ _this.getProductList = function (index) {
310
+ return __awaiter(_this, void 0, void 0, function () {
311
+ var panelProps, groupSource, recommendId, pageId, cache, _a, prodIds, newData, res, e_1, _cache;
312
+
313
+ var _b, _c, _d;
314
+
315
+ var _this = this;
316
+
317
+ return __generator(this, function (_e) {
318
+ switch (_e.label) {
319
+ case 0:
320
+ panelProps = this.props.panelProps;
321
+ groupSource = this.state.groupSource;
322
+ recommendId = panelProps.id;
323
+ pageId = window.magicDesign.pageId || '';
324
+
325
+ if (!(0, _coreUtil.isDesignMode)()) {
326
+ cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
327
+
328
+ if (cache) {
329
+ if ("products" + index in cache) {
330
+ this.setState((_b = {}, _b["products" + index] = cache["products" + index], _b), function () {
331
+ _this.resetLayout();
332
+ });
333
+ /** 如果数据未过期 */
334
+
335
+ if (cache.endTime > Date.now()) return [2
336
+ /*return*/
337
+ ];
338
+ }
339
+ }
340
+ }
341
+
342
+ _a = (groupSource[index] || {}).prodIds, prodIds = _a === void 0 ? '' : _a;
343
+ newData = [];
344
+ _e.label = 1;
345
+
346
+ case 1:
347
+ _e.trys.push([1, 5,, 6]);
348
+
349
+ if (!(groupSource.length > 0)) return [3
350
+ /*break*/
351
+ , 3];
352
+
353
+ if (!prodIds) {
354
+ return [2
355
+ /*return*/
356
+ ];
357
+ }
358
+
359
+ return [4
360
+ /*yield*/
361
+ , (0, _commonUtil.commonFetch)('/designer/v1/h5/nuri/distribute/product', {
362
+ affiliateProductIds: prodIds,
363
+ pageIndex: 1,
364
+ pageSize: prodIds.split(',').length || 20
365
+ }, 'GET')];
366
+
367
+ case 2:
368
+ res = _e.sent();
369
+ newData = __spreadArrays(res.list);
370
+ return [3
371
+ /*break*/
372
+ , 4];
373
+
374
+ case 3:
375
+ newData = [];
376
+ _e.label = 4;
377
+
378
+ case 4:
379
+ return [3
380
+ /*break*/
381
+ , 6];
382
+
383
+ case 5:
384
+ e_1 = _e.sent();
385
+ newData = [];
386
+ return [3
387
+ /*break*/
388
+ , 6];
389
+
390
+ case 6:
391
+ if (!(0, _coreUtil.isDesignMode)()) {
392
+ _cache = (0, _storeUtil.getMagicStore)("recommend_" + pageId + "_" + recommendId);
393
+ (0, _storeUtil.setMagicStore)("recommend_" + pageId + "_" + recommendId, __assign(__assign({}, _cache), (_c = {}, _c["products" + index] = newData, _c.endTime = Date.now() + 3 * 60 * 1000, _c)));
394
+ }
395
+
396
+ this.setState((_d = {}, _d["products" + index] = newData, _d), function () {
397
+ _this.resetLayout();
398
+ });
399
+ return [2
400
+ /*return*/
401
+ ];
402
+ }
403
+ });
404
+ });
405
+ };
406
+
407
+ _this.resetLayout = function () {
408
+ var layout = _this.props.panelProps.customize.layout.h5Layout;
409
+ var LAYOUT_COLUMN = {
410
+ layout1: 2,
411
+ layout2: 1,
412
+ layout3: 3
413
+ };
414
+ if (!LAYOUT_COLUMN[layout]) return;
415
+ setTimeout(function () {
416
+ if (document.querySelector(".macyContainer_" + _this.props.panelProps.id)) {
417
+ _this.getMacy(".macyContainer_" + _this.props.panelProps.id, LAYOUT_COLUMN[layout]);
418
+ }
419
+ });
420
+ };
421
+
422
+ _this.getMacy = function (container, columns) {
423
+ var masonryNew = new _macy["default"]({
424
+ container: container,
425
+ trueOrder: false,
426
+ waitForImages: false,
427
+ useOwnImageLoader: false,
428
+ margin: {
429
+ x: 12,
430
+ y: 12
431
+ },
432
+ columns: columns
433
+ });
434
+ masonryNew.runOnImageLoad(function () {
435
+ masonryNew.recalculate(true);
436
+ }, true);
437
+ };
438
+
439
+ _this.onTabClick = function (e, index) {
440
+ var tabIndex = _this.state.tabIndex;
441
+ if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
442
+
443
+ _this.setState({
444
+ tabIndex: index
445
+ }, function () {
446
+ _this.resetLayout();
447
+
448
+ _this.initTab(index);
449
+ });
450
+
451
+ _this.getProductList(index);
452
+ };
453
+
454
+ return _this;
455
+ }
456
+
457
+ RecommendMobile.prototype.componentDidMount = function () {// const { panelProps } = this.props;
458
+ // const source = [];
459
+ // panelProps.groupSource.map(m => {
460
+ // const show = m.image.open || m.groupName.open;
461
+ // if (show) source.push(m);
462
+ // });
463
+ // this.setState({ groupSource: source }, () => {
464
+ // this.initTab(0);
465
+ // this.getProductList(0);
466
+ // });
467
+ // this.listenWidth();
468
+ };
469
+
470
+ RecommendMobile.prototype.componentWillReceiveProps = function (nextProps) {
471
+ var _this = this;
472
+
473
+ var tabIndex = this.state.tabIndex;
474
+ var panelProps = nextProps.panelProps;
475
+ var source = [];
476
+ var hideTabs = false;
477
+ panelProps.groupSource.map(function (m) {
478
+ var show = m.image.open || m.groupName.open;
479
+ if (show) source.push(m);
480
+ });
481
+
482
+ if (source.length === 0) {
483
+ if (panelProps.groupSource.length > 0) source.push(panelProps.groupSource[0]);
484
+ hideTabs = true;
485
+ }
486
+
487
+ this.setState({
488
+ groupSource: source
489
+ }, function () {
490
+ var groupSource = _this.state.groupSource;
491
+
492
+ if (JSON.stringify(groupSource) === _this.preData) {
493
+ return;
494
+ }
495
+
496
+ _this.preData = JSON.stringify(groupSource);
497
+ var newTabIndex = tabIndex;
498
+ if (tabIndex >= source.length) newTabIndex = 0;
499
+
500
+ _this.initTab(newTabIndex, hideTabs);
501
+
502
+ _this.getProductList(newTabIndex);
503
+
504
+ _this.setState({
505
+ tabIndex: newTabIndex,
506
+ hideTabs: hideTabs
507
+ });
508
+ });
509
+ var curLayout = panelProps.customize.layout.h5Layout;
510
+ var curContent = JSON.stringify(panelProps.content);
511
+ var curSpacing = JSON.stringify(panelProps.spacing);
512
+
513
+ if (curLayout !== this.preLayout || curSpacing !== this.preSpacing) {
514
+ this.listenWidth();
515
+ }
516
+
517
+ if (curLayout !== this.preLayout || curContent !== this.preContent || curSpacing !== this.preSpacing) {
518
+ this.resetLayout();
519
+ }
520
+
521
+ this.preLayout = curLayout;
522
+ this.preContent = curContent;
523
+ this.preSpacing = curSpacing;
524
+ };
525
+
526
+ RecommendMobile.prototype.render = function () {
527
+ var _this = this;
528
+
529
+ var panelProps = this.props.panelProps;
530
+ var _a = this.state,
531
+ tabIndex = _a.tabIndex,
532
+ tabLeft = _a.tabLeft,
533
+ tabWidth = _a.tabWidth,
534
+ groupSource = _a.groupSource,
535
+ hideTabs = _a.hideTabs,
536
+ contentWidth = _a.contentWidth;
537
+ var products = this.state["products" + tabIndex] || [];
538
+ var isDivide = groupSource.length <= 3;
539
+ var layout = panelProps.customize.layout.h5Layout;
540
+
541
+ var _seeAll = (0, _commonUtil.ensure)(function () {
542
+ return groupSource[tabIndex].seeAll;
543
+ }, '');
544
+
545
+ var imgWidth = (0, _commonUtil.ensure)(function () {
546
+ return LAYOUT_IMAGE_SIZE[layout].w;
547
+ }, 140);
548
+ var imgHeight = (0, _commonUtil.ensure)(function () {
549
+ return LAYOUT_IMAGE_SIZE[layout].h;
550
+ }, 140);
551
+ if (layout === 'layout1' && contentWidth) imgHeight = (contentWidth - 12) / 2;
552
+ if (layout === 'layout3' && contentWidth) imgHeight = (contentWidth - 12 * 2) / 3;
553
+ return /*#__PURE__*/_react["default"].createElement("div", {
554
+ className: "m-recommend-mobile recommend_" + panelProps.id
555
+ }, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
556
+ className: "tab-select-wrap"
557
+ }, groupSource.map(function (tab, index) {
558
+ var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
559
+
560
+ var _groupName = index == tabIndex && tab.hover.open && tab.hover.groupName.open ? tab.hover.groupName : tab.groupName;
561
+
562
+ return /*#__PURE__*/_react["default"].createElement("div", {
563
+ key: tab.id,
564
+ className: "tabTitle",
565
+ onClick: function onClick(e) {
566
+ _this.onTabClick(e, index);
567
+
568
+ _mobx.store.setState({
569
+ clickedGroup: tab.id,
570
+ clickedFloor: _mobx.store.getFloorIdByGroupId(tab.id)
571
+ });
572
+ },
573
+ style: {
574
+ flex: ~~isDivide
575
+ }
576
+ }, tab.image.open && _image && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
577
+ data: _image
578
+ }), tab.groupName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
579
+ data: _groupName,
580
+ onTextInput: function onTextInput(text) {
581
+ tab.hover.groupName.text = text;
582
+ tab.groupName.text = text;
583
+ }
584
+ }));
585
+ }), groupSource.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
586
+ className: "active-line",
587
+ style: {
588
+ width: tabWidth,
589
+ transform: "translateX(" + tabLeft + "px)",
590
+ background: this.getTabBarActiveColor(panelProps)
591
+ }
592
+ })), ['layout1', 'layout2', 'layout3'].includes(layout) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
593
+ key: "macyContainer",
594
+ className: "macyContainer macyContainer_" + panelProps.id
595
+ }, products.map(function (item) {
596
+ return /*#__PURE__*/_react["default"].createElement(_AffiliateProductItem["default"], {
597
+ key: item.affiliateProductId,
598
+ data: item,
599
+ fixHeight: layout === 'layout3',
600
+ imgHeight: imgHeight,
601
+ imgWidth: imgWidth,
602
+ layout: layout === 'layout2' ? 'horizontal' : 'vertical' // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
603
+ ,
604
+ onItemClick: function onItemClick() {
605
+ /** PTO 定制GA */
606
+ if (window.magicDesign.pushGA) {
607
+ window.magicDesign.pushGA(item, 'select_item', {
608
+ event_action: 'Select Item'
609
+ });
610
+ }
611
+
612
+ (0, _coreUtil.clickUrl)("proDetail-" + (item === null || item === void 0 ? void 0 : item.offerId) + "-" + (item.sppProductId || item.affiliateProductId || ''));
613
+ },
614
+ panelProps: panelProps.content
615
+ });
616
+ })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
617
+ className: "btnSeeAll",
618
+ data: _seeAll
619
+ })) : /*#__PURE__*/_react["default"].createElement("div", {
620
+ key: "scrollContainer",
621
+ className: (0, _classnames["default"])('scrollContainer', {
622
+ pl_140: layout === 'layout5'
623
+ })
624
+ }, /*#__PURE__*/_react["default"].createElement("div", {
625
+ className: "scrollProductListRow"
626
+ }, products.map(function (item) {
627
+ return /*#__PURE__*/_react["default"].createElement("div", {
628
+ className: "productCardRow"
629
+ }, /*#__PURE__*/_react["default"].createElement(_AffiliateProductItem["default"], {
630
+ key: "scroll_" + item.productId,
631
+ customFont: true,
632
+ data: item,
633
+ fixHeight: true,
634
+ imgHeight: imgHeight // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId || item.productId || ''}`)}
635
+ ,
636
+ imgWidth: imgWidth,
637
+ onItemClick: function onItemClick() {
638
+ /** PTO 定制GA */
639
+ if (window.magicDesign.pushGA) {
640
+ window.magicDesign.pushGA({}, 'select_item', item);
641
+ }
642
+
643
+ (0, _coreUtil.clickUrl)("proDetail-" + (item === null || item === void 0 ? void 0 : item.offerId) + "-" + (item.sppProductId || item.affiliateProductId || ''));
644
+ },
645
+ panelProps: panelProps.content
646
+ }));
647
+ })), _seeAll.open && products.length > 0 && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
648
+ className: "btnSeeAll",
649
+ data: _seeAll
650
+ })));
651
+ };
652
+
653
+ RecommendMobile.defaultProps = {
654
+ panelProps: {}
655
+ };
656
+ return RecommendMobile;
657
+ }(_react["default"].Component);
658
+
659
+ var _default = RecommendMobile;
660
+ exports["default"] = _default;