@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
@@ -0,0 +1,348 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDefaultJSON = void 0;
7
+
8
+ var _uuid = require("uuid");
9
+
10
+ var _constants = require("../../../../constants");
11
+
12
+ var _index = require("../../../../assets/images/base64/index");
13
+
14
+ var getDefaultJSON = function getDefaultJSON() {
15
+ var _a;
16
+
17
+ var groupId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
19
+ return {
20
+ id: groupId,
21
+ type: 'STORES',
22
+ title: {
23
+ name: {
24
+ id: (0, _uuid.v4)(),
25
+ open: true,
26
+ type: 'TEXT',
27
+ specialContent: [],
28
+ text: 'Free Delivery',
29
+ content: {
30
+ sizeType: 'Customize font styles',
31
+ fontFamily: defaultFontFamily,
32
+ fontWeight: 600,
33
+ fontSize: 14,
34
+ color: '#1B1B1B'
35
+ },
36
+ underline: {
37
+ open: false,
38
+ textDecorationColor: '',
39
+ textDecorationStyle: 'solid'
40
+ },
41
+ vertical: {
42
+ open: false,
43
+ lineHeight: 18
44
+ }
45
+ },
46
+ seeAll: {
47
+ id: (0, _uuid.v4)(),
48
+ open: true,
49
+ type: 'BUTTON',
50
+ text: 'See All',
51
+ content: {
52
+ url: '',
53
+ backgroundColor: 'transparent'
54
+ },
55
+ buttonText: {
56
+ sizeType: 'Customize font styles',
57
+ fontFamily: defaultFontFamily,
58
+ fontWeight: 400,
59
+ fontSize: 14,
60
+ fontStyle: 'normal',
61
+ color: '#61096B'
62
+ },
63
+ buttonBorder: {
64
+ open: true,
65
+ borderColor: '',
66
+ borderRadius: 0
67
+ },
68
+ spacing: {
69
+ mobile: {
70
+ paddingTop: 0,
71
+ paddingBottom: 0,
72
+ paddingLeft: 5,
73
+ paddingRight: 5
74
+ }
75
+ },
76
+ buttonIcon: {
77
+ iconUrl: '',
78
+ layout: 'right'
79
+ },
80
+ hover: null
81
+ }
82
+ },
83
+ content: {
84
+ storeName: {
85
+ id: (0, _uuid.v4)(),
86
+ open: true,
87
+ type: 'TEXT',
88
+ specialContent: [],
89
+ text: '',
90
+ content: {
91
+ sizeType: 'Customize font styles',
92
+ fontFamily: defaultFontFamily,
93
+ fontWeight: 600,
94
+ fontSize: 14,
95
+ color: '#1B1B1B',
96
+ urlDisabled: true
97
+ },
98
+ underline: {
99
+ open: false,
100
+ textDecorationColor: '',
101
+ textDecorationStyle: 'solid'
102
+ },
103
+ vertical: {
104
+ open: false,
105
+ lineHeight: 18
106
+ }
107
+ },
108
+ storeDesc: {
109
+ id: (0, _uuid.v4)(),
110
+ open: true,
111
+ type: 'TEXT',
112
+ specialContent: [],
113
+ text: '',
114
+ content: {
115
+ sizeType: 'Customize font styles',
116
+ fontFamily: defaultFontFamily,
117
+ fontWeight: 400,
118
+ fontSize: 12,
119
+ color: '#545454',
120
+ urlDisabled: true
121
+ },
122
+ underline: {
123
+ open: false,
124
+ textDecorationColor: '',
125
+ textDecorationStyle: 'solid'
126
+ },
127
+ vertical: {
128
+ open: false,
129
+ lineHeight: 18
130
+ }
131
+ },
132
+ freeDeliveryLabel: {
133
+ id: (0, _uuid.v4)(),
134
+ open: true,
135
+ type: 'BUTTON',
136
+ text: 'Free delivery',
137
+ content: {
138
+ url: '',
139
+ backgroundColor: '#86BF31'
140
+ },
141
+ buttonText: {
142
+ sizeType: 'Customize font styles',
143
+ fontFamily: defaultFontFamily,
144
+ fontWeight: 600,
145
+ fontSize: 12,
146
+ fontStyle: 'normal',
147
+ color: '#fff'
148
+ },
149
+ buttonBorder: {
150
+ open: true,
151
+ borderColor: '',
152
+ borderRadius: '0px 5px 5px 0px'
153
+ },
154
+ spacing: {
155
+ mobile: {
156
+ paddingTop: 5,
157
+ paddingBottom: 5,
158
+ paddingLeft: 5,
159
+ paddingRight: 5
160
+ }
161
+ },
162
+ buttonIcon: {
163
+ iconUrl: '',
164
+ layout: 'right'
165
+ },
166
+ hover: null
167
+ },
168
+ minOrder: {
169
+ id: (0, _uuid.v4)(),
170
+ open: true,
171
+ type: 'TEXT',
172
+ specialContent: [],
173
+ text: '',
174
+ content: {
175
+ sizeType: 'Customize font styles',
176
+ fontFamily: defaultFontFamily,
177
+ fontWeight: 400,
178
+ fontSize: 12,
179
+ color: '#545454',
180
+ urlDisabled: true
181
+ },
182
+ underline: {
183
+ open: false,
184
+ textDecorationColor: '',
185
+ textDecorationStyle: 'solid'
186
+ },
187
+ vertical: {
188
+ open: false,
189
+ lineHeight: 18
190
+ }
191
+ },
192
+ evaluateScore: {
193
+ id: (0, _uuid.v4)(),
194
+ open: true,
195
+ type: 'BUTTON',
196
+ text: 'Button',
197
+ content: {
198
+ url: '',
199
+ backgroundColor: 'transparent'
200
+ },
201
+ buttonText: {
202
+ sizeType: 'Customize font styles',
203
+ fontFamily: defaultFontFamily,
204
+ fontWeight: 400,
205
+ fontSize: 12,
206
+ fontStyle: 'normal',
207
+ color: '#545454'
208
+ },
209
+ buttonBorder: {
210
+ open: true,
211
+ borderColor: '',
212
+ borderRadius: 0
213
+ },
214
+ spacing: {
215
+ mobile: {
216
+ paddingTop: 0,
217
+ paddingBottom: 0,
218
+ paddingLeft: 0,
219
+ paddingRight: 0
220
+ }
221
+ },
222
+ buttonIcon: {
223
+ iconUrl: _index.starIcon,
224
+ layout: 'left'
225
+ },
226
+ hover: null
227
+ },
228
+ sold: {
229
+ id: (0, _uuid.v4)(),
230
+ open: true,
231
+ type: 'TEXT',
232
+ specialContent: [],
233
+ text: '',
234
+ content: {
235
+ sizeType: 'Customize font styles',
236
+ fontFamily: defaultFontFamily,
237
+ fontWeight: 400,
238
+ fontSize: 12,
239
+ color: '#545454',
240
+ urlDisabled: true
241
+ },
242
+ underline: {
243
+ open: false,
244
+ textDecorationColor: '',
245
+ textDecorationStyle: 'solid'
246
+ },
247
+ vertical: {
248
+ open: false,
249
+ lineHeight: 18
250
+ }
251
+ },
252
+ deliveryTime: {
253
+ id: (0, _uuid.v4)(),
254
+ open: true,
255
+ type: 'BUTTON',
256
+ text: 'Button',
257
+ content: {
258
+ url: '',
259
+ backgroundColor: 'transparent'
260
+ },
261
+ buttonText: {
262
+ sizeType: 'Customize font styles',
263
+ fontFamily: defaultFontFamily,
264
+ fontWeight: 400,
265
+ fontSize: 12,
266
+ fontStyle: 'normal',
267
+ color: '#545454'
268
+ },
269
+ buttonBorder: {
270
+ open: true,
271
+ borderColor: '',
272
+ borderRadius: 0
273
+ },
274
+ spacing: {
275
+ mobile: {
276
+ paddingTop: 0,
277
+ paddingBottom: 0,
278
+ paddingLeft: 0,
279
+ paddingRight: 0
280
+ }
281
+ },
282
+ buttonIcon: {
283
+ iconUrl: _index.timeIcon,
284
+ layout: 'left'
285
+ },
286
+ hover: null
287
+ },
288
+ distance: {
289
+ id: (0, _uuid.v4)(),
290
+ open: true,
291
+ type: 'BUTTON',
292
+ text: 'Button',
293
+ content: {
294
+ url: '',
295
+ backgroundColor: 'transparent'
296
+ },
297
+ buttonText: {
298
+ sizeType: 'Customize font styles',
299
+ fontFamily: defaultFontFamily,
300
+ fontWeight: 400,
301
+ fontSize: 12,
302
+ fontStyle: 'normal',
303
+ color: '#545454'
304
+ },
305
+ buttonBorder: {
306
+ open: true,
307
+ borderColor: '',
308
+ borderRadius: 0
309
+ },
310
+ spacing: {
311
+ mobile: {
312
+ paddingTop: 0,
313
+ paddingBottom: 0,
314
+ paddingLeft: 0,
315
+ paddingRight: 0
316
+ }
317
+ },
318
+ buttonIcon: {
319
+ iconUrl: _index.bikeIcon,
320
+ layout: 'left'
321
+ },
322
+ hover: null
323
+ },
324
+ sourceType: '1',
325
+ maxProdNum: 5
326
+ },
327
+ spacing: {
328
+ mobile: {
329
+ paddingTop: 20,
330
+ paddingBottom: 20,
331
+ paddingLeft: 0,
332
+ paddingRight: 0,
333
+ marginBottom: window.magicDesign.compSpacing
334
+ }
335
+ },
336
+ customize: {
337
+ layout: 'layout1'
338
+ },
339
+ background: {
340
+ opacity: 100,
341
+ color: '#fff',
342
+ image: '',
343
+ bgType: 'color'
344
+ }
345
+ };
346
+ };
347
+
348
+ exports.getDefaultJSON = getDefaultJSON;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _mobile = _interopRequireDefault(require("./mobile"));
11
+
12
+ var _defaultJSON = require("./defaultJSON");
13
+
14
+ var _coreUtil = require("../../../../utils/coreUtil");
15
+
16
+ var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
25
+
26
+ var __extends = void 0 && (void 0).__extends || function () {
27
+ var _extendStatics = function extendStatics(d, b) {
28
+ _extendStatics = Object.setPrototypeOf || {
29
+ __proto__: []
30
+ } instanceof Array && function (d, b) {
31
+ d.__proto__ = b;
32
+ } || function (d, b) {
33
+ for (var p in b) {
34
+ if (b.hasOwnProperty(p)) d[p] = b[p];
35
+ }
36
+ };
37
+
38
+ return _extendStatics(d, b);
39
+ };
40
+
41
+ return function (d, b) {
42
+ _extendStatics(d, b);
43
+
44
+ function __() {
45
+ this.constructor = d;
46
+ }
47
+
48
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
49
+ };
50
+ }();
51
+
52
+ var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
53
+ var c = arguments.length,
54
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
55
+ d;
56
+ if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
57
+ if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
58
+ }
59
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+ };
61
+
62
+ var AComponent =
63
+ /** @class */
64
+ function (_super) {
65
+ __extends(AComponent, _super);
66
+
67
+ function AComponent() {
68
+ return _super !== null && _super.apply(this, arguments) || this;
69
+ }
70
+
71
+ AComponent.prototype.render = function () {
72
+ var nodeData = this.props.nodeData;
73
+ return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
74
+ panelProps: nodeData
75
+ }));
76
+ };
77
+
78
+ AComponent.defaultProps = {};
79
+ AComponent.type = 'STORES';
80
+ AComponent.getDefaultJSON = _defaultJSON.getDefaultJSON;
81
+ AComponent = __decorate([_compositeDecorator["default"]], AComponent);
82
+ return AComponent;
83
+ }(_react.Component);
84
+
85
+ var _default = AComponent;
86
+ exports["default"] = _default;
@@ -0,0 +1,275 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderDiscount = exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _commonUtil = require("../../../../../../utils/commonUtil");
13
+
14
+ var _currencyUtil = require("../../../../../../utils/currencyUtil");
15
+
16
+ var _common = require("../../../../../../common");
17
+
18
+ var _components = require("../../../../../../meta-comp/components");
19
+
20
+ var _locale = require("../../../../../../locale");
21
+
22
+ require("./index.less");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
+
28
+ var __extends = void 0 && (void 0).__extends || function () {
29
+ var _extendStatics = function extendStatics(d, b) {
30
+ _extendStatics = Object.setPrototypeOf || {
31
+ __proto__: []
32
+ } instanceof Array && function (d, b) {
33
+ d.__proto__ = b;
34
+ } || function (d, b) {
35
+ for (var p in b) {
36
+ if (b.hasOwnProperty(p)) d[p] = b[p];
37
+ }
38
+ };
39
+
40
+ return _extendStatics(d, b);
41
+ };
42
+
43
+ return function (d, b) {
44
+ _extendStatics(d, b);
45
+
46
+ function __() {
47
+ this.constructor = d;
48
+ }
49
+
50
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
51
+ };
52
+ }();
53
+
54
+ var __assign = void 0 && (void 0).__assign || function () {
55
+ __assign = Object.assign || function (t) {
56
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
57
+ s = arguments[i];
58
+
59
+ for (var p in s) {
60
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61
+ }
62
+ }
63
+
64
+ return t;
65
+ };
66
+
67
+ return __assign.apply(this, arguments);
68
+ };
69
+
70
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
71
+ var t = {};
72
+
73
+ for (var p in s) {
74
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
75
+ }
76
+
77
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
79
+ }
80
+ return t;
81
+ };
82
+
83
+ var renderDiscount = function renderDiscount(data) {
84
+ var AMT = data.discountMethod === 'AMT'; // 金额扣减
85
+
86
+ var DISC = data.discountMethod === 'DISC'; // 百分比
87
+
88
+ var text = '';
89
+
90
+ if (AMT) {
91
+ text = (0, _currencyUtil.formatCurrencyWithSymbol)(data.discountAmount);
92
+ } else if (DISC) {
93
+ var temp = (0, _currencyUtil.formatCurrency)(data.discountAmount, 2); // 折扣券处理:100 => 1%
94
+
95
+ text = parseInt(temp, 10) + "%";
96
+ }
97
+
98
+ return {
99
+ text: text,
100
+ isBig: text.length > 6 && text.length <= 9,
101
+ isHide: text.length > 9
102
+ };
103
+ };
104
+
105
+ exports.renderDiscount = renderDiscount;
106
+
107
+ var StoreItem =
108
+ /** @class */
109
+ function (_super) {
110
+ __extends(StoreItem, _super);
111
+
112
+ function StoreItem() {
113
+ var _this = _super !== null && _super.apply(this, arguments) || this;
114
+
115
+ _this.state = {};
116
+ return _this;
117
+ }
118
+
119
+ StoreItem.prototype.render = function () {
120
+ var _a = this.props,
121
+ data = _a.data,
122
+ panelProps = _a.panelProps,
123
+ onItemClick = _a.onItemClick,
124
+ layout = _a.layout,
125
+ rest = __rest(_a, ["data", "panelProps", "onItemClick", "layout"]);
126
+
127
+ var soldNumber = data.salesCnt > 250 ? data.salesCnt - data.salesCnt % 250 + "+" : data.salesCnt || 0;
128
+ console.log(panelProps);
129
+ var storeName = panelProps.storeName,
130
+ storeDesc = panelProps.storeDesc,
131
+ freeDeliveryLabel = panelProps.freeDeliveryLabel,
132
+ minOrder = panelProps.minOrder,
133
+ evaluateScore = panelProps.evaluateScore,
134
+ sold = panelProps.sold,
135
+ deliveryTime = panelProps.deliveryTime,
136
+ distance = panelProps.distance;
137
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layout === 'layout1' ? /*#__PURE__*/_react["default"].createElement("div", _extends({
138
+ className: (0, _classnames["default"])('m-store-item-wrap', {
139
+ horizontal: true
140
+ }),
141
+ onClick: function onClick() {
142
+ return onItemClick();
143
+ }
144
+ }, rest), /*#__PURE__*/_react["default"].createElement("div", {
145
+ className: "img-wrap"
146
+ }, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
147
+ className: "product-img",
148
+ lazy: true,
149
+ src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
150
+ }), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
151
+ className: "flag",
152
+ data: freeDeliveryLabel
153
+ })), /*#__PURE__*/_react["default"].createElement("div", {
154
+ className: "content-wrap"
155
+ }, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
156
+ className: "name",
157
+ data: __assign(__assign({}, storeName), {
158
+ text: data.offerName
159
+ }),
160
+ readonly: true
161
+ }), minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
162
+ className: "minOrder",
163
+ data: __assign(__assign({}, minOrder), {
164
+ text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('MIN_ORDER'), ':', (data.minOrder || 0) + " IQD"])
165
+ }),
166
+ readonly: true
167
+ }), /*#__PURE__*/_react["default"].createElement("div", {
168
+ className: "row"
169
+ }, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
170
+ className: "score",
171
+ data: __assign(__assign({}, evaluateScore), {
172
+ text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
173
+ }),
174
+ readonly: true
175
+ }), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
176
+ className: "line1"
177
+ }), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
178
+ className: "sold",
179
+ data: __assign(__assign({}, sold), {
180
+ text: (0, _commonUtil.reverseStrArr)([(0, _locale.i18n)('SOLD'), soldNumber, '+'])
181
+ }),
182
+ readonly: true
183
+ }), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
184
+ className: "time",
185
+ data: __assign(__assign({}, deliveryTime), {
186
+ text: '17 mins'
187
+ }),
188
+ readonly: true
189
+ }), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
190
+ className: "distance",
191
+ data: __assign(__assign({}, distance), {
192
+ text: '1 km'
193
+ }),
194
+ readonly: true
195
+ })))) : /*#__PURE__*/_react["default"].createElement("div", _extends({
196
+ className: (0, _classnames["default"])('m-store-item-wrap'),
197
+ onClick: function onClick() {
198
+ return onItemClick();
199
+ }
200
+ }, rest), /*#__PURE__*/_react["default"].createElement("div", {
201
+ className: "img-wrap"
202
+ }, /*#__PURE__*/_react["default"].createElement(_common.NewImg, {
203
+ className: "product-img",
204
+ lazy: true,
205
+ src: (0, _commonUtil.convertImageUrl)(data.productImg || data.imgUrlContent || data.productImageUrlContent)
206
+ }), freeDeliveryLabel.open && data.discountPercent && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
207
+ className: "flag",
208
+ data: freeDeliveryLabel
209
+ })), /*#__PURE__*/_react["default"].createElement("div", {
210
+ className: "content-wrap"
211
+ }, storeName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
212
+ className: "name",
213
+ data: __assign(__assign({}, storeName), {
214
+ text: data.offerName
215
+ }),
216
+ readonly: true
217
+ }), storeDesc.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
218
+ className: "desc",
219
+ data: __assign(__assign({}, storeDesc), {
220
+ text: data.offerName
221
+ }),
222
+ readonly: true
223
+ }), /*#__PURE__*/_react["default"].createElement("div", {
224
+ className: "row"
225
+ }, minOrder.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
226
+ className: "minOrder",
227
+ data: __assign(__assign({}, minOrder), {
228
+ text: (0, _locale.i18n)('MIN_ORDER') + ": " + data.minOrder
229
+ }),
230
+ readonly: true
231
+ }), minOrder.open && sold.open && /*#__PURE__*/_react["default"].createElement("div", {
232
+ className: "line1"
233
+ }), sold.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
234
+ className: "sold",
235
+ data: __assign(__assign({}, sold), {
236
+ text: (0, _locale.i18n)('SOLD') + " " + soldNumber
237
+ }),
238
+ readonly: true
239
+ })), /*#__PURE__*/_react["default"].createElement("div", {
240
+ className: "row"
241
+ }, evaluateScore.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
242
+ className: "score",
243
+ data: __assign(__assign({}, evaluateScore), {
244
+ text: (0, _currencyUtil.numberToFixed)(Number(data.evaluationAvg), 1)
245
+ }),
246
+ readonly: true
247
+ }), evaluateScore.open && deliveryTime.open && /*#__PURE__*/_react["default"].createElement("div", {
248
+ className: "line2"
249
+ }), deliveryTime.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
250
+ className: "time",
251
+ data: __assign(__assign({}, deliveryTime), {
252
+ text: '17 mins'
253
+ }),
254
+ readonly: true
255
+ }), deliveryTime.open && distance.open && /*#__PURE__*/_react["default"].createElement("div", {
256
+ className: "line2"
257
+ }), distance.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
258
+ className: "distance",
259
+ data: __assign(__assign({}, distance), {
260
+ text: '1km'
261
+ }),
262
+ readonly: true
263
+ })))));
264
+ };
265
+
266
+ StoreItem.defaultProps = {
267
+ data: {},
268
+ panelProps: {},
269
+ layout: 'vertical'
270
+ };
271
+ return StoreItem;
272
+ }(_react["default"].Component);
273
+
274
+ var _default = StoreItem;
275
+ exports["default"] = _default;