@fonixtree/magic-design 2.0.169 → 2.0.171

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 (325) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +39 -3
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  7. package/es/assets/images/base64/index.js +8 -2
  8. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  9. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  10. package/es/assets/images/layout-icon/bundleLayout1.png +0 -0
  11. package/es/assets/images/layout-icon/center.png +0 -0
  12. package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
  13. package/es/assets/images/layout-icon/interestLayout1.png +0 -0
  14. package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
  15. package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
  16. package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
  17. package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
  18. package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
  19. package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
  20. package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
  21. package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
  22. package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
  23. package/es/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
  24. package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
  25. package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
  26. package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
  27. package/es/assets/images/layout-icon/layout-recommend-5.png +0 -0
  28. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  29. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  30. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  31. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  32. package/es/assets/images/layout-icon/layout-search.png +0 -0
  33. package/es/assets/images/layout-icon/left.png +0 -0
  34. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  35. package/es/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
  36. package/es/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
  37. package/es/assets/images/layout-icon/right.png +0 -0
  38. package/es/assets/images/layout-icon/storesLayout1.png +0 -0
  39. package/es/assets/images/layout-icon/storesLayout2.png +0 -0
  40. package/es/assets/images/layout-icon/textLayout1.png +0 -0
  41. package/es/assets/less/common.less +40 -3
  42. package/es/common/Field/index.js +5 -2
  43. package/es/common/Field/index.less +5 -0
  44. package/es/common/LayoutSelector/index.js +3 -21
  45. package/es/common/MyModal/index.less +12 -4
  46. package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/defaultJSON.js +1 -1
  47. package/es/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  48. package/{lib/composite-comp/bol/config-panels/WalletConfig → es/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  49. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
  50. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -13
  51. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +3 -7
  52. package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +3 -7
  53. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  54. package/es/composite-comp/dito/config-panels/BargainConfig/index.js +3 -7
  55. package/es/composite-comp/dito/config-panels/GroupBuyConfig/index.js +3 -7
  56. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +1 -5
  57. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +1 -5
  58. package/es/composite-comp/monpay/config-panels/BundleConfig/index.js +3 -7
  59. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +3 -7
  60. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +3 -7
  61. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +3 -7
  62. package/es/composite-comp/public/components/Location/defaultJSON.js +104 -0
  63. package/es/composite-comp/public/components/Location/index.js +86 -0
  64. package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  65. package/es/composite-comp/public/components/Location/mobile/index.js +353 -0
  66. package/es/composite-comp/public/components/Location/mobile/index.less +90 -0
  67. package/es/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  68. package/es/composite-comp/public/components/Stores/index.js +86 -0
  69. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  70. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  71. package/es/composite-comp/public/components/Stores/mobile/index.js +198 -0
  72. package/es/composite-comp/public/components/Stores/mobile/index.less +37 -0
  73. package/es/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  74. package/es/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  75. package/es/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  76. package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  77. package/{lib/composite-comp/bol → es/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  78. package/es/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  79. package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  80. package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  81. package/es/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  82. package/es/constants/component-types.js +23 -13
  83. package/es/constants/index.js +9 -1
  84. package/es/constants/layout.js +125 -16
  85. package/es/locale/en/en.json +15 -1
  86. package/es/locale/es/es.json +15 -1
  87. package/es/locale/index.js +5 -1
  88. package/es/locale/mn/mn.json +15 -1
  89. package/es/meta-comp/components/Text/index.less +6 -0
  90. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  91. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  92. package/es/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  93. package/es/utils/businessUtil.js +33 -7
  94. package/es/utils/commonUtil.js +21 -9
  95. package/lib/assets/fonts/.DS_Store +0 -0
  96. package/lib/assets/fonts/magic-box-iconfont.css +39 -3
  97. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  98. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  99. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  100. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  101. package/lib/assets/images/base64/index.js +8 -2
  102. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  103. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  104. package/lib/assets/images/layout-icon/bundleLayout1.png +0 -0
  105. package/lib/assets/images/layout-icon/center.png +0 -0
  106. package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
  107. package/lib/assets/images/layout-icon/interestLayout1.png +0 -0
  108. package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
  109. package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
  110. package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
  111. package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
  112. package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
  113. package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
  114. package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
  115. package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
  116. package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
  117. package/lib/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
  118. package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
  119. package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
  120. package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
  121. package/lib/assets/images/layout-icon/layout-recommend-5.png +0 -0
  122. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  123. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  124. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  125. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  126. package/lib/assets/images/layout-icon/layout-search.png +0 -0
  127. package/lib/assets/images/layout-icon/left.png +0 -0
  128. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  129. package/lib/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
  130. package/lib/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
  131. package/lib/assets/images/layout-icon/right.png +0 -0
  132. package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
  133. package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
  134. package/lib/assets/images/layout-icon/textLayout1.png +0 -0
  135. package/lib/assets/less/common.less +40 -3
  136. package/lib/common/Field/index.js +5 -2
  137. package/lib/common/Field/index.less +5 -0
  138. package/lib/common/LayoutSelector/index.js +3 -21
  139. package/lib/common/MyModal/index.less +12 -4
  140. package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/defaultJSON.js +1 -1
  141. package/lib/composite-comp/ashita/components/WalletAshita/index.js +84 -0
  142. package/{es/composite-comp/bol/config-panels/WalletConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.js +1 -1
  143. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  144. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +3 -0
  145. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +3 -13
  146. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +3 -7
  147. package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +3 -7
  148. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  149. package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +3 -7
  150. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/index.js +3 -7
  151. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +1 -5
  152. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +1 -5
  153. package/lib/composite-comp/monpay/config-panels/BundleConfig/index.js +3 -7
  154. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/index.js +3 -7
  155. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/index.js +3 -7
  156. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/index.js +3 -7
  157. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
  158. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
  159. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
  160. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  161. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/index.js +61 -0
  162. package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
  163. package/lib/composite-comp/public/components/Location/defaultJSON.js +104 -0
  164. package/lib/composite-comp/public/components/Location/index.js +86 -0
  165. package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  166. package/lib/composite-comp/public/components/Location/mobile/index.js +353 -0
  167. package/lib/composite-comp/public/components/Location/mobile/index.less +90 -0
  168. package/lib/composite-comp/public/components/Stores/defaultJSON.js +348 -0
  169. package/lib/composite-comp/public/components/Stores/index.js +86 -0
  170. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +275 -0
  171. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +81 -0
  172. package/lib/composite-comp/public/components/Stores/mobile/index.js +198 -0
  173. package/lib/composite-comp/public/components/Stores/mobile/index.less +37 -0
  174. package/lib/composite-comp/public/components/Wallet/defaultJSON.js +149 -0
  175. package/lib/composite-comp/public/components/Wallet/mobile/index.js +350 -0
  176. package/lib/composite-comp/public/components/Wallet/mobile/index.less +22 -0
  177. package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +153 -0
  178. package/{es/composite-comp/bol → lib/composite-comp/public}/config-panels/LocationConfig/index.js +10 -52
  179. package/lib/composite-comp/public/config-panels/LocationConfig/index.less +17 -0
  180. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +176 -0
  181. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
  182. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +103 -0
  183. package/lib/composite-comp/public/config-panels/StoresConfig/index.js +134 -0
  184. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +100 -0
  185. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +72 -0
  186. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.js +123 -0
  187. package/lib/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup/index.less +0 -0
  188. package/lib/composite-comp/public/config-panels/WalletConfig/index.js +61 -0
  189. package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +152 -0
  190. package/lib/constants/component-types.js +23 -13
  191. package/lib/constants/index.js +9 -1
  192. package/lib/constants/layout.js +125 -16
  193. package/lib/locale/en/en.json +15 -1
  194. package/lib/locale/es/es.json +15 -1
  195. package/lib/locale/index.js +5 -1
  196. package/lib/locale/mn/mn.json +15 -1
  197. package/lib/meta-comp/components/Text/index.less +6 -0
  198. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +207 -0
  199. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +81 -0
  200. package/lib/meta-comp/config-panels/ButtonConfig/index.js +7 -8
  201. package/lib/utils/businessUtil.js +33 -7
  202. package/lib/utils/commonUtil.js +21 -9
  203. package/package.json +1 -1
  204. package/es/assets/images/layout-icon/banner-slide-layout1.svg +0 -6
  205. package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  206. package/es/assets/images/layout-icon/imageTextLeft.svg +0 -6
  207. package/es/assets/images/layout-icon/imageTextRight.svg +0 -6
  208. package/es/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
  209. package/es/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
  210. package/es/common/LayoutSelector/imgs/center.png +0 -0
  211. package/es/common/LayoutSelector/imgs/left.png +0 -0
  212. package/es/common/LayoutSelector/imgs/right.png +0 -0
  213. package/es/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  214. package/es/composite-comp/bol/components/Location/index.js +0 -102
  215. package/es/composite-comp/bol/components/Location/index.less +0 -15
  216. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  217. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  218. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  219. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  220. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  221. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +0 -584
  222. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +0 -150
  223. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +0 -809
  224. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +0 -129
  225. package/es/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
  226. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
  227. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
  228. package/lib/assets/images/layout-icon/banner-slide-layout1.svg +0 -6
  229. package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  230. package/lib/assets/images/layout-icon/imageTextLeft.svg +0 -6
  231. package/lib/assets/images/layout-icon/imageTextRight.svg +0 -6
  232. package/lib/assets/images/layout-icon/layout-imagetext-m3-1.svg +0 -18
  233. package/lib/assets/images/layout-icon/layout-imagetext-m3-2.svg +0 -9
  234. package/lib/common/LayoutSelector/imgs/center.png +0 -0
  235. package/lib/common/LayoutSelector/imgs/left.png +0 -0
  236. package/lib/common/LayoutSelector/imgs/right.png +0 -0
  237. package/lib/composite-comp/bol/components/Location/defaultJSON.js +0 -60
  238. package/lib/composite-comp/bol/components/Location/index.js +0 -102
  239. package/lib/composite-comp/bol/components/Location/index.less +0 -15
  240. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
  241. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
  242. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  243. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  244. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  245. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  246. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  247. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  248. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  249. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +0 -584
  250. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +0 -150
  251. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +0 -809
  252. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +0 -129
  253. package/lib/composite-comp/monpay/config-panels/BundleConfig/imgs/layout.png +0 -0
  254. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/imgs/layout.png +0 -0
  255. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/imgs/layout.png +0 -0
  256. /package/es/{composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png → assets/images/common/product.png} +0 -0
  257. /package/es/{composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png → assets/images/layout-icon/bargainLayout1.png} +0 -0
  258. /package/es/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png → assets/images/layout-icon/buttonLayout1.png} +0 -0
  259. /package/es/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png → assets/images/layout-icon/buttonLayout2.png} +0 -0
  260. /package/es/{composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png → assets/images/layout-icon/groupBuyLayout1.png} +0 -0
  261. /package/es/{composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png → assets/images/layout-icon/tagLayout1.png} +0 -0
  262. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  263. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  264. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  265. /package/es/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  266. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  267. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.less +0 -0
  268. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigImageGroup/index.less +0 -0
  269. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  270. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  271. /package/es/composite-comp/{bol/config-panels/ButtonCompConfig → ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  272. /package/es/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  273. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  274. /package/es/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  275. /package/es/composite-comp/{monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png → dito/config-panels/GroupBuyConfig/imgs/groupBuyLayout1.png} +0 -0
  276. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  277. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  278. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  279. /package/es/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  280. /package/es/composite-comp/{bol/config-panels/TagCompConfig/imgs → nuri/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
  281. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
  282. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
  283. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
  284. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  285. /package/es/composite-comp/{bol/config-panels/TextCompConfig → nuri/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
  286. /package/es/composite-comp/{bol → nuri}/config-panels/WalletNuriConfig/index.js +0 -0
  287. /package/es/composite-comp/{bol → nuri}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
  288. /package/es/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
  289. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent → es/composite-comp/public/config-panels/StoresConfig/ConfigContent}/index.less +0 -0
  290. /package/es/composite-comp/{bol/config-panels/WalletConfig/imgs → public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
  291. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.js +0 -0
  292. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/GroupList/index.less +0 -0
  293. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/WalletNuriConfigImageGroup/index.js +0 -0
  294. /package/{lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup → es/composite-comp/public/config-panels/WalletConfig/WalletNuriConfigImageGroup}/index.less +0 -0
  295. /package/es/composite-comp/{bol/config-panels/WalletNuriConfig/GroupList → public/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
  296. /package/{lib/composite-comp/bol/config-panels/WalletNuriConfig → es/composite-comp/public/config-panels/WalletConfig}/index.js +0 -0
  297. /package/{lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig → es/composite-comp/public/second-config-panels/WalletSecondConfig}/index.js +0 -0
  298. /package/lib/{composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png → assets/images/common/product.png} +0 -0
  299. /package/lib/{composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png → assets/images/layout-icon/bargainLayout1.png} +0 -0
  300. /package/{es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png → lib/assets/images/layout-icon/buttonLayout1.png} +0 -0
  301. /package/lib/{composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png → assets/images/layout-icon/buttonLayout2.png} +0 -0
  302. /package/lib/{composite-comp/dito/config-panels/GroupBuyConfig/imgs/layout1.png → assets/images/layout-icon/groupBuyLayout1.png} +0 -0
  303. /package/lib/{composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png → assets/images/layout-icon/tagLayout1.png} +0 -0
  304. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.js +0 -0
  305. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/mobile/index.less +0 -0
  306. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.js +0 -0
  307. /package/lib/composite-comp/{bol/components/Wallet → ashita/components/WalletAshita}/pc/index.less +0 -0
  308. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigContent/index.js +0 -0
  309. /package/lib/composite-comp/{bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup → ashita/config-panels/WalletAshitaConfig/WalletConfigContent}/index.less +0 -0
  310. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.js +0 -0
  311. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/WalletConfigSetting/index.less +0 -0
  312. /package/{es/composite-comp/bol/config-panels/WalletNuriConfig → lib/composite-comp/ashita/config-panels/WalletAshitaConfig}/imgs/defaultImg.png +0 -0
  313. /package/lib/composite-comp/{bol/config-panels/WalletConfig → ashita/config-panels/WalletAshitaConfig}/index.js +0 -0
  314. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.js +0 -0
  315. /package/lib/composite-comp/{bol/second-config-panels/WalletSecondConfig → ashita/second-config-panels/WalletAshitaSecondConfig}/index.less +0 -0
  316. /package/lib/composite-comp/{monpay/config-panels/MonpayFlashDealConfig/imgs/layout1.png → dito/config-panels/GroupBuyConfig/imgs/groupBuyLayout1.png} +0 -0
  317. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/defaultJSON.js +0 -0
  318. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/index.js +0 -0
  319. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.js +0 -0
  320. /package/lib/composite-comp/{bol → nuri}/components/WalletNuri/mobile/index.less +0 -0
  321. /package/lib/composite-comp/{bol/config-panels/ButtonCompConfig/imgs → nuri/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
  322. /package/lib/composite-comp/{bol/config-panels/TagCompConfig → nuri/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
  323. /package/lib/composite-comp/{bol → public}/components/Wallet/index.js +0 -0
  324. /package/lib/composite-comp/{bol/config-panels/TextCompConfig/imgs → public/config-panels/WalletConfig/GroupList}/defaultImg.png +0 -0
  325. /package/lib/composite-comp/{bol → public}/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
@@ -1,584 +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
- require("./index.less");
11
-
12
- var _lodash = _interopRequireDefault(require("lodash.throttle"));
13
-
14
- var _defImg = _interopRequireDefault(require("./imgs/defImg.png"));
15
-
16
- var _locale = require("../../../../../locale");
17
-
18
- var _ProductItem = _interopRequireDefault(require("../../../../common/components/ProductItem"));
19
-
20
- var _coreUtil = require("../../../../../utils/coreUtil");
21
-
22
- var _components = require("../../../../../meta-comp/components");
23
-
24
- var _commonUtil = require("../../../../../utils/commonUtil");
25
-
26
- var _storeUtil = require("../../../../../utils/storeUtil");
27
-
28
- var _dateUtil = require("../../../../../utils/dateUtil");
29
-
30
- var _MonpayCountDown = _interopRequireDefault(require("../MonpayCountDown"));
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 defaultData = [{
222
- imgUrlContent: {
223
- url: _defImg["default"]
224
- },
225
- offerName: 'Product Name Long text',
226
- salesPrice: 18000000,
227
- specialPrice: 18000000,
228
- marketPrice: 19000000,
229
- discountPercent: 10,
230
- salePercent: 500,
231
- sppType: '2'
232
- }, {
233
- imgUrlContent: {
234
- url: _defImg["default"]
235
- },
236
- offerName: 'Product Name Long text',
237
- salesPrice: 18000000,
238
- specialPrice: 18000000,
239
- marketPrice: 19000000,
240
- discountPercent: 10,
241
- salePercent: 500,
242
- sppType: '2'
243
- }, {
244
- imgUrlContent: {
245
- url: _defImg["default"]
246
- },
247
- offerName: 'Product Name Long text',
248
- salesPrice: 18000000,
249
- specialPrice: 18000000,
250
- marketPrice: 19000000,
251
- discountPercent: 10,
252
- salePercent: 500,
253
- sppType: '2'
254
- }, {
255
- imgUrlContent: {
256
- url: _defImg["default"]
257
- },
258
- offerName: 'Product Name Long text',
259
- salesPrice: 18000000,
260
- specialPrice: 18000000,
261
- marketPrice: 19000000,
262
- discountPercent: 10,
263
- salePercent: 500,
264
- sppType: '2'
265
- }, {
266
- imgUrlContent: {
267
- url: _defImg["default"]
268
- },
269
- offerName: 'Product Name Long text',
270
- salesPrice: 18000000,
271
- specialPrice: 18000000,
272
- marketPrice: 19000000,
273
- discountPercent: 10,
274
- salePercent: 500,
275
- sppType: '2'
276
- }, {
277
- imgUrlContent: {
278
- url: _defImg["default"]
279
- },
280
- offerName: 'Product Name Long text',
281
- salesPrice: 18000000,
282
- specialPrice: 18000000,
283
- marketPrice: 19000000,
284
- discountPercent: 10,
285
- salePercent: 500,
286
- sppType: '2'
287
- }];
288
-
289
- var FlashDealPc =
290
- /** @class */
291
- function (_super) {
292
- __extends(FlashDealPc, _super);
293
-
294
- function FlashDealPc() {
295
- var _this = _super !== null && _super.apply(this, arguments) || this; // 商品列表排序方式
296
-
297
-
298
- _this.sortType = '';
299
- _this.pcRowNum = '';
300
- _this.scrollRef = /*#__PURE__*/_react["default"].createRef();
301
- _this.state = {
302
- times: [],
303
- list: (0, _coreUtil.isDesignMode)() ? [] : (0, _commonUtil.ensure)(function () {
304
- return (0, _storeUtil.getMagicStore)("flashSale_" + (window.magicDesign.pageId || '') + "_" + _this.props.panelProps.id);
305
- }, []),
306
- effDate: '',
307
- expDate: '',
308
- now: '',
309
- isWill: false,
310
- scrollToLeftDisabled: true,
311
- scrollToRightDisabled: true
312
- };
313
-
314
- _this.getFlashData = function (pageSize, campaign) {
315
- return __awaiter(_this, void 0, void 0, function () {
316
- var res, pageId;
317
- return __generator(this, function (_a) {
318
- switch (_a.label) {
319
- case 0:
320
- return [4
321
- /*yield*/
322
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/offer/page', {
323
- campaignId: campaign.campaignId,
324
- sortType: this.sortType,
325
- pageIndex: 1,
326
- pageSize: pageSize
327
- })];
328
-
329
- case 1:
330
- res = _a.sent();
331
- pageId = window.magicDesign.pageId || '';
332
-
333
- if (!res.list || res.list.length === 0) {
334
- // 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
335
- this.setState({
336
- list: []
337
- });
338
-
339
- if (!(0, _coreUtil.isDesignMode)()) {
340
- (0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, []);
341
- }
342
-
343
- return [2
344
- /*return*/
345
- ];
346
- }
347
-
348
- if (!(0, _coreUtil.isDesignMode)()) {
349
- (0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, res.list);
350
- }
351
-
352
- this.setState({
353
- now: +(0, _dateUtil.newDate)(campaign.now),
354
- effDate: +(0, _dateUtil.newDate)(campaign.effDate),
355
- expDate: +(0, _dateUtil.newDate)(campaign.expDate),
356
- isWill: campaign.cmpState === 'A',
357
- list: res.list
358
- });
359
- return [2
360
- /*return*/
361
- ];
362
- }
363
- });
364
- });
365
- };
366
-
367
- _this.getNextFlashSale = function () {
368
- return __awaiter(_this, void 0, void 0, function () {
369
- var data, pageId;
370
- return __generator(this, function (_a) {
371
- switch (_a.label) {
372
- case 0:
373
- return [4
374
- /*yield*/
375
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/flsale/next', {
376
- excludeExpireCmp: true
377
- }, 'GET')];
378
-
379
- case 1:
380
- data = _a.sent();
381
-
382
- if (data.length > 0) {
383
- this.getFlashData(30, data[0]);
384
- this.setState({
385
- times: data
386
- });
387
- } else {
388
- // 秒杀场次结束之后,清空列表数据,隐藏秒杀组件
389
- this.setState({
390
- times: [],
391
- list: []
392
- });
393
- pageId = window.magicDesign.pageId || '';
394
-
395
- if (!(0, _coreUtil.isDesignMode)()) {
396
- (0, _storeUtil.setMagicStore)("flashSale_" + pageId + "_" + this.props.panelProps.id, []);
397
- }
398
- }
399
-
400
- return [2
401
- /*return*/
402
- ];
403
- }
404
- });
405
- });
406
- };
407
-
408
- _this.setScrollDisabled = function (scrollDom) {
409
- var scrollToLeftDisabled = scrollDom.scrollLeft === 0;
410
- var scrollToRightDisabled = scrollDom.clientWidth + scrollDom.scrollLeft >= scrollDom.scrollWidth;
411
-
412
- _this.setState({
413
- scrollToLeftDisabled: scrollToLeftDisabled,
414
- scrollToRightDisabled: scrollToRightDisabled
415
- });
416
- };
417
-
418
- _this.scrollToRight = function () {
419
- var scrollDom = _this.scrollRef.current;
420
-
421
- if (scrollDom.clientWidth + scrollDom.scrollLeft < scrollDom.scrollWidth) {
422
- scrollDom.scrollTo(scrollDom.scrollLeft + scrollDom.clientWidth, 0);
423
- }
424
- };
425
-
426
- _this.scrollToLeft = function () {
427
- var scrollDom = _this.scrollRef.current;
428
-
429
- if (scrollDom.scrollLeft > 0) {
430
- scrollDom.scrollTo(scrollDom.scrollLeft - scrollDom.clientWidth, 0);
431
- }
432
- };
433
-
434
- return _this;
435
- }
436
-
437
- FlashDealPc.prototype.componentDidMount = function () {
438
- var _this = this;
439
-
440
- this.sortType = this.props.panelProps.content.sortType;
441
- this.getNextFlashSale();
442
- setTimeout(function () {
443
- var scrollDom = _this.scrollRef.current;
444
-
445
- if (scrollDom) {
446
- _this.setScrollDisabled(scrollDom);
447
-
448
- scrollDom.onscroll = (0, _lodash["default"])(function () {
449
- _this.setScrollDisabled(scrollDom);
450
- }, 500);
451
- }
452
- }, 0);
453
- };
454
-
455
- FlashDealPc.prototype.componentWillReceiveProps = function (nextProps) {
456
- var _this = this;
457
-
458
- if (nextProps.panelProps.content.sortType !== this.sortType) {
459
- this.sortType = nextProps.panelProps.content.sortType;
460
- this.getNextFlashSale();
461
- }
462
-
463
- if (this.pcRowNum != nextProps.panelProps.customize.pcRowNum) {
464
- setTimeout(function () {
465
- var scrollDom = _this.scrollRef.current;
466
-
467
- if (scrollDom) {
468
- _this.setScrollDisabled(scrollDom);
469
-
470
- scrollDom.onscroll = (0, _lodash["default"])(function () {
471
- _this.setScrollDisabled(scrollDom);
472
- }, 500);
473
- }
474
- }, 0);
475
- this.pcRowNum = nextProps.panelProps.customize.pcRowNum;
476
- }
477
- };
478
-
479
- FlashDealPc.prototype.render = function () {
480
- var _this = this;
481
-
482
- var panelProps = this.props.panelProps;
483
- var _a = this.state,
484
- list = _a.list,
485
- times = _a.times,
486
- effDate = _a.effDate,
487
- expDate = _a.expDate,
488
- now = _a.now,
489
- isWill = _a.isWill,
490
- scrollToLeftDisabled = _a.scrollToLeftDisabled,
491
- scrollToRightDisabled = _a.scrollToRightDisabled;
492
-
493
- var _list = list.length === 0 && (0, _coreUtil.isDesignMode)() ? defaultData : list;
494
-
495
- var imgHeight = panelProps.customize.pcRowNum === 6 ? 153 : 193;
496
- var imgWidth = panelProps.customize.pcRowNum === 6 ? 153 : 193;
497
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _list.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
498
- className: "monpay-flash-deal-pc"
499
- }, /*#__PURE__*/_react["default"].createElement("div", {
500
- className: "flash-deal-title"
501
- }, /*#__PURE__*/_react["default"].createElement("div", {
502
- className: "left"
503
- }, panelProps.title.icon.open && panelProps.title.icon.url && /*#__PURE__*/_react["default"].createElement("img", {
504
- alt: "",
505
- className: "icon",
506
- src: panelProps.title.icon.url
507
- }), panelProps.title.headline.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
508
- className: "title",
509
- data: panelProps.title.headline
510
- }), panelProps.title.countdown.open && /*#__PURE__*/_react["default"].createElement(_MonpayCountDown["default"], {
511
- bgColor: panelProps.title.countdown.backgroundColor,
512
- effDate: effDate,
513
- expDate: expDate,
514
- fontStyle: panelProps.title.countdown.number,
515
- now: now,
516
- refresh: this.getNextFlashSale
517
- })), /*#__PURE__*/_react["default"].createElement("div", {
518
- className: "right",
519
- onClick: function onClick() {
520
- return (0, _coreUtil.clickUrl)('/spike');
521
- }
522
- }, panelProps.title.button.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
523
- className: "btn",
524
- data: panelProps.title.button
525
- }))), panelProps.title.sessionTime.open && /*#__PURE__*/_react["default"].createElement("div", {
526
- className: "flash-deal-time"
527
- }, times.map(function (item) {
528
- return /*#__PURE__*/_react["default"].createElement("div", {
529
- className: "item"
530
- }, /*#__PURE__*/_react["default"].createElement("div", {
531
- className: "time"
532
- }, (0, _dateUtil.formatDayMonthTime)(item.effDate)), /*#__PURE__*/_react["default"].createElement("div", {
533
- className: "status"
534
- }, item.cmpState === 'A' ? (0, _locale.i18n)('COMING_SOON') : (0, _locale.i18n)('ON_GOING')));
535
- })), /*#__PURE__*/_react["default"].createElement("div", {
536
- className: "flash-deal-content"
537
- }, /*#__PURE__*/_react["default"].createElement("div", {
538
- className: "arrow-icon left",
539
- onClick: function onClick() {
540
- return _this.scrollToLeft();
541
- }
542
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
543
- color: scrollToLeftDisabled ? '#BDC1C8' : '#232F46',
544
- size: (0, _commonUtil.convertToRem)(20),
545
- type: "icon-outlined-left"
546
- })), /*#__PURE__*/_react["default"].createElement("div", {
547
- ref: this.scrollRef,
548
- className: "flash-deal-list"
549
- }, _list.map(function (item) {
550
- return /*#__PURE__*/_react["default"].createElement(_ProductItem["default"], {
551
- key: item.id,
552
- data: __assign(__assign({}, item), {
553
- salePercent: isWill ? 0 : item.salePercent
554
- }),
555
- fixHeight: true,
556
- imgHeight: imgHeight,
557
- imgWidth: imgWidth // onItemClick={() => clickUrl(`/product/detail/${item.offerId}?productId=${item.sppProductId ?? ''}`)}
558
- ,
559
- onItemClick: function onItemClick() {
560
- return (0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || ''));
561
- },
562
- panelProps: panelProps.content,
563
- unknownPrice: isWill
564
- });
565
- })), /*#__PURE__*/_react["default"].createElement("div", {
566
- className: "arrow-icon right",
567
- onClick: function onClick() {
568
- return _this.scrollToRight();
569
- }
570
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
571
- color: scrollToRightDisabled ? '#BDC1C8' : '#232F46',
572
- size: (0, _commonUtil.convertToRem)(20),
573
- type: "icon-outlined-right"
574
- })))));
575
- };
576
-
577
- FlashDealPc.defaultProps = {
578
- panelProps: {}
579
- };
580
- return FlashDealPc;
581
- }(_react["default"].Component);
582
-
583
- var _default = FlashDealPc;
584
- exports["default"] = _default;