@fonixtree/magic-design 2.0.189 → 3.0.2

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 (293) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +3 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
  3. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  4. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  6. package/es/assets/images/base64/index.js +2 -8
  7. package/es/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  8. package/es/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  9. package/es/assets/images/layout-icon/bundleLayout1.png +0 -0
  10. package/es/assets/images/layout-icon/center.png +0 -0
  11. package/es/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
  12. package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  13. package/es/assets/images/layout-icon/imageTextLeft.svg +6 -0
  14. package/es/assets/images/layout-icon/imageTextRight.svg +6 -0
  15. package/es/assets/images/layout-icon/interestLayout1.png +0 -0
  16. package/es/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
  17. package/es/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
  18. package/es/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
  19. package/es/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
  20. package/es/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
  21. package/es/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
  22. package/es/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
  23. package/es/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
  24. package/es/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
  25. package/es/assets/images/layout-icon/layout-recommend-2.png +0 -0
  26. package/es/assets/images/layout-icon/layout-recommend-3.png +0 -0
  27. package/es/assets/images/layout-icon/layout-recommend-4.png +0 -0
  28. package/es/assets/images/layout-icon/layout-recommend-5.png +0 -0
  29. package/es/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  30. package/es/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  31. package/es/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  32. package/es/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  33. package/es/assets/images/layout-icon/layout-search.png +0 -0
  34. package/es/assets/images/layout-icon/left.png +0 -0
  35. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  36. package/es/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
  37. package/es/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
  38. package/es/assets/images/layout-icon/right.png +0 -0
  39. package/es/assets/images/layout-icon/textLayout1.png +0 -0
  40. package/es/assets/less/common.less +3 -40
  41. package/es/common/Field/index.js +2 -5
  42. package/es/common/Field/index.less +0 -5
  43. package/es/common/LinkModal/index.js +0 -7
  44. package/es/common/MyModal/index.less +4 -12
  45. package/es/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  46. package/{lib/composite-comp/public → es/composite-comp/bol}/components/Location/index.js +20 -4
  47. package/es/composite-comp/bol/components/Location/index.less +15 -0
  48. package/{lib/composite-comp/ashita/components/WalletAshita → es/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
  49. package/{lib/composite-comp/public → es/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
  50. package/{lib/composite-comp/ashita/config-panels/WalletAshitaConfig → es/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
  51. package/es/composite-comp/common/components/MonpayProductItem/index.js +3 -3
  52. package/es/composite-comp/common/components/MonpayProductItem/index.less +12 -8
  53. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  54. package/es/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
  55. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +30 -5
  56. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  57. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  58. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  59. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  60. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +584 -0
  61. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  62. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
  63. package/es/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
  64. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
  65. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
  66. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
  67. package/es/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
  68. package/es/constants/component-types.js +13 -23
  69. package/es/constants/index.js +2 -12
  70. package/es/constants/layout.js +16 -29
  71. package/es/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
  72. package/es/core/Designer/QuickMenuBar/index.js +1 -1
  73. package/es/decorator/compositeDecorator.js +0 -29
  74. package/es/locale/en/en.json +1 -16
  75. package/es/locale/es/es.json +1 -16
  76. package/es/locale/index.js +1 -5
  77. package/es/locale/mn/mn.json +2 -17
  78. package/es/meta-comp/components/Text/index.less +0 -6
  79. package/es/meta-comp/config-panels/ButtonConfig/index.js +8 -7
  80. package/es/utils/androidUtil.js +1 -2
  81. package/es/utils/businessUtil.js +2 -27
  82. package/es/utils/commonUtil.js +10 -26
  83. package/es/utils/coreUtil.js +1 -3
  84. package/es/utils/dateUtil.js +14 -0
  85. package/lib/assets/fonts/magic-box-iconfont.css +3 -3
  86. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
  87. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  88. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  89. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  90. package/lib/assets/images/base64/index.js +2 -8
  91. package/lib/assets/images/layout-icon/banner-slide-layout1.png +0 -0
  92. package/lib/assets/images/layout-icon/banner-slide-layout2.png +0 -0
  93. package/lib/assets/images/layout-icon/bundleLayout1.png +0 -0
  94. package/lib/assets/images/layout-icon/center.png +0 -0
  95. package/lib/assets/images/layout-icon/imageGalleryLayout2.png +0 -0
  96. package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  97. package/lib/assets/images/layout-icon/imageTextLeft.svg +6 -0
  98. package/lib/assets/images/layout-icon/imageTextRight.svg +6 -0
  99. package/lib/assets/images/layout-icon/interestLayout1.png +0 -0
  100. package/lib/assets/images/layout-icon/layout-imagetext-m1-1.png +0 -0
  101. package/lib/assets/images/layout-icon/layout-imagetext-m1-2.png +0 -0
  102. package/lib/assets/images/layout-icon/layout-imagetext-m1-3.png +0 -0
  103. package/lib/assets/images/layout-icon/layout-imagetext-m2.png +0 -0
  104. package/lib/assets/images/layout-icon/layout-imagetext-m3.png +0 -0
  105. package/lib/assets/images/layout-icon/layout-imagetext-p1.png +0 -0
  106. package/lib/assets/images/layout-icon/layout-imagetext-p2.png +0 -0
  107. package/lib/assets/images/layout-icon/layout-imagetext-p3.png +0 -0
  108. package/lib/assets/images/layout-icon/layout-imagetext-p4.png +0 -0
  109. package/lib/assets/images/layout-icon/layout-recommend-2.png +0 -0
  110. package/lib/assets/images/layout-icon/layout-recommend-3.png +0 -0
  111. package/lib/assets/images/layout-icon/layout-recommend-4.png +0 -0
  112. package/lib/assets/images/layout-icon/layout-recommend-5.png +0 -0
  113. package/lib/assets/images/layout-icon/layout-recommend-mobile-1.png +0 -0
  114. package/lib/assets/images/layout-icon/layout-recommend-mobile-2.png +0 -0
  115. package/lib/assets/images/layout-icon/layout-recommend-mobile-3.png +0 -0
  116. package/lib/assets/images/layout-icon/layout-recommend-mobile-4.png +0 -0
  117. package/lib/assets/images/layout-icon/layout-search.png +0 -0
  118. package/lib/assets/images/layout-icon/left.png +0 -0
  119. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  120. package/lib/assets/images/layout-icon/merchantSalesLayout1.png +0 -0
  121. package/lib/assets/images/layout-icon/monpaySignBoardLayout1.png +0 -0
  122. package/lib/assets/images/layout-icon/right.png +0 -0
  123. package/lib/assets/images/layout-icon/textLayout1.png +0 -0
  124. package/lib/assets/less/common.less +3 -40
  125. package/lib/common/Field/index.js +2 -5
  126. package/lib/common/Field/index.less +0 -5
  127. package/lib/common/LinkModal/index.js +0 -7
  128. package/lib/common/MyModal/index.less +4 -12
  129. package/lib/composite-comp/bol/components/Location/defaultJSON.js +60 -0
  130. package/{es/composite-comp/public → lib/composite-comp/bol}/components/Location/index.js +20 -4
  131. package/lib/composite-comp/bol/components/Location/index.less +15 -0
  132. package/{es/composite-comp/ashita/components/WalletAshita → lib/composite-comp/bol/components/Wallet}/defaultJSON.js +1 -1
  133. package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/LocationConfig/index.js +52 -10
  134. package/{es/composite-comp/ashita/config-panels/WalletAshitaConfig → lib/composite-comp/bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.js +1 -1
  135. package/lib/composite-comp/common/components/MonpayProductItem/index.js +3 -3
  136. package/lib/composite-comp/common/components/MonpayProductItem/index.less +12 -8
  137. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +1 -1
  138. package/lib/composite-comp/monpay/components/MonpayFlashDeal/index.js +5 -1
  139. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +30 -5
  140. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg.png +0 -0
  141. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg1.png +0 -0
  142. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg2.png +0 -0
  143. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/imgs/defImg3.png +0 -0
  144. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +584 -0
  145. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.less +150 -0
  146. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +8 -8
  147. package/lib/composite-comp/monpay/components/MonpayRecommend/index.js +5 -1
  148. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +14 -15
  149. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.less +0 -11
  150. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.js +809 -0
  151. package/lib/composite-comp/monpay/components/MonpayRecommend/pc/index.less +129 -0
  152. package/lib/constants/component-types.js +13 -23
  153. package/lib/constants/index.js +2 -12
  154. package/lib/constants/layout.js +16 -29
  155. package/lib/core/Designer/ConfigPanel/TerminalSelect/index.js +1 -1
  156. package/lib/core/Designer/QuickMenuBar/index.js +1 -1
  157. package/lib/decorator/compositeDecorator.js +0 -29
  158. package/lib/locale/en/en.json +1 -16
  159. package/lib/locale/es/es.json +1 -16
  160. package/lib/locale/index.js +1 -5
  161. package/lib/locale/mn/mn.json +2 -17
  162. package/lib/meta-comp/components/Text/index.less +0 -6
  163. package/lib/meta-comp/config-panels/ButtonConfig/index.js +8 -7
  164. package/lib/utils/androidUtil.js +1 -2
  165. package/lib/utils/businessUtil.js +2 -27
  166. package/lib/utils/commonUtil.js +10 -26
  167. package/lib/utils/coreUtil.js +1 -3
  168. package/lib/utils/dateUtil.js +14 -0
  169. package/package.json +2 -2
  170. package/es/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
  171. package/es/assets/images/layout-icon/storesLayout1.png +0 -0
  172. package/es/assets/images/layout-icon/storesLayout2.png +0 -0
  173. package/es/common/LinkModal/BizType/index.js +0 -274
  174. package/es/composite-comp/ashita/components/WalletAshita/index.js +0 -84
  175. package/es/composite-comp/public/components/Location/defaultJSON.js +0 -104
  176. package/es/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  177. package/es/composite-comp/public/components/Location/mobile/index.js +0 -133
  178. package/es/composite-comp/public/components/Location/mobile/index.less +0 -21
  179. package/es/composite-comp/public/components/Stores/defaultJSON.js +0 -348
  180. package/es/composite-comp/public/components/Stores/index.js +0 -86
  181. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
  182. package/es/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
  183. package/es/composite-comp/public/components/Stores/mobile/index.js +0 -335
  184. package/es/composite-comp/public/components/Stores/mobile/index.less +0 -33
  185. package/es/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
  186. package/es/composite-comp/public/components/Wallet/mobile/index.js +0 -350
  187. package/es/composite-comp/public/components/Wallet/mobile/index.less +0 -22
  188. package/es/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
  189. package/es/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
  190. package/es/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
  191. package/es/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
  192. package/es/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
  193. package/es/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
  194. package/es/locale/ar/ar.json +0 -362
  195. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
  196. package/es/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
  197. package/lib/assets/images/layout-icon/layout-imagetext-p5.png +0 -0
  198. package/lib/assets/images/layout-icon/storesLayout1.png +0 -0
  199. package/lib/assets/images/layout-icon/storesLayout2.png +0 -0
  200. package/lib/common/LinkModal/BizType/index.js +0 -274
  201. package/lib/composite-comp/ashita/components/WalletAshita/index.js +0 -84
  202. package/lib/composite-comp/ashita/config-panels/WalletAshitaConfig/WalletConfigImageGroup/index.less +0 -0
  203. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  204. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  205. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  206. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  207. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  208. package/lib/composite-comp/nuri/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  209. package/lib/composite-comp/nuri/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  210. package/lib/composite-comp/public/components/Location/defaultJSON.js +0 -104
  211. package/lib/composite-comp/public/components/Location/mobile/img/img-circle.png +0 -0
  212. package/lib/composite-comp/public/components/Location/mobile/index.js +0 -133
  213. package/lib/composite-comp/public/components/Location/mobile/index.less +0 -21
  214. package/lib/composite-comp/public/components/Stores/defaultJSON.js +0 -348
  215. package/lib/composite-comp/public/components/Stores/index.js +0 -86
  216. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.js +0 -250
  217. package/lib/composite-comp/public/components/Stores/mobile/StoreItem/index.less +0 -81
  218. package/lib/composite-comp/public/components/Stores/mobile/index.js +0 -335
  219. package/lib/composite-comp/public/components/Stores/mobile/index.less +0 -33
  220. package/lib/composite-comp/public/components/Wallet/defaultJSON.js +0 -149
  221. package/lib/composite-comp/public/components/Wallet/mobile/index.js +0 -350
  222. package/lib/composite-comp/public/components/Wallet/mobile/index.less +0 -22
  223. package/lib/composite-comp/public/config-panels/LocationConfig/ConfigContent/index.js +0 -153
  224. package/lib/composite-comp/public/config-panels/LocationConfig/index.less +0 -17
  225. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.js +0 -176
  226. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigContent/index.less +0 -0
  227. package/lib/composite-comp/public/config-panels/StoresConfig/ConfigTitle/index.js +0 -103
  228. package/lib/composite-comp/public/config-panels/StoresConfig/index.js +0 -134
  229. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/defaultImg.png +0 -0
  230. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.js +0 -100
  231. package/lib/composite-comp/public/config-panels/WalletConfig/GroupList/index.less +0 -72
  232. package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.js +0 -123
  233. package/lib/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
  234. package/lib/composite-comp/public/config-panels/WalletConfig/imgs/defaultImg.png +0 -0
  235. package/lib/composite-comp/public/config-panels/WalletConfig/index.js +0 -61
  236. package/lib/composite-comp/public/second-config-panels/WalletSecondConfig/index.js +0 -152
  237. package/lib/locale/ar/ar.json +0 -362
  238. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.js +0 -207
  239. package/lib/meta-comp/config-panels/ButtonConfig/BorderRadiusInput/index.less +0 -81
  240. /package/es/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
  241. /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
  242. /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
  243. /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
  244. /package/es/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
  245. /package/es/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
  246. /package/es/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
  247. /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
  248. /package/es/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
  249. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
  250. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.less +0 -0
  251. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigImageGroup/index.less +0 -0
  252. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
  253. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
  254. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/imgs/defaultImg.png +0 -0
  255. /package/es/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
  256. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  257. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.js +0 -0
  258. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/GroupList/index.less +0 -0
  259. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -0
  260. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  261. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  262. /package/es/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
  263. /package/es/composite-comp/{nuri → bol}/second-config-panels/WalletNuriSecondConfig/index.js +0 -0
  264. /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
  265. /package/es/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
  266. /package/es/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
  267. /package/lib/composite-comp/{public → bol}/components/Wallet/index.js +0 -0
  268. /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.js +0 -0
  269. /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/mobile/index.less +0 -0
  270. /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.js +0 -0
  271. /package/lib/composite-comp/{ashita/components/WalletAshita → bol/components/Wallet}/pc/index.less +0 -0
  272. /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/defaultJSON.js +0 -0
  273. /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/index.js +0 -0
  274. /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.js +0 -0
  275. /package/lib/composite-comp/{nuri → bol}/components/WalletNuri/mobile/index.less +0 -0
  276. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigContent/index.js +0 -0
  277. /package/{es/composite-comp/public/config-panels/StoresConfig/ConfigContent → lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigContent}/index.less +0 -0
  278. /package/{es/composite-comp/public → lib/composite-comp/bol}/config-panels/WalletConfig/WalletConfigImageGroup/index.less +0 -0
  279. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.js +0 -0
  280. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/WalletConfigSetting/index.less +0 -0
  281. /package/{es/composite-comp/public/config-panels/WalletConfig/GroupList → lib/composite-comp/bol/config-panels/WalletConfig/imgs}/defaultImg.png +0 -0
  282. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletConfig}/index.js +0 -0
  283. /package/{es/composite-comp/public/config-panels/WalletConfig/imgs → lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList}/defaultImg.png +0 -0
  284. /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.js +0 -0
  285. /package/{es/composite-comp/public/config-panels/WalletConfig → lib/composite-comp/bol/config-panels/WalletNuriConfig}/GroupList/index.less +0 -0
  286. /package/{es/composite-comp/public/config-panels/WalletConfig/WalletConfigImageGroup → lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.js +0 -0
  287. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig/WalletConfigContent → bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup}/index.less +0 -0
  288. /package/lib/composite-comp/{ashita/config-panels/WalletAshitaConfig → bol/config-panels/WalletNuriConfig}/imgs/defaultImg.png +0 -0
  289. /package/lib/composite-comp/{nuri → bol}/config-panels/WalletNuriConfig/index.js +0 -0
  290. /package/{es/composite-comp/public/second-config-panels/WalletSecondConfig → lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig}/index.js +0 -0
  291. /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.js +0 -0
  292. /package/lib/composite-comp/{ashita/second-config-panels/WalletAshitaSecondConfig → bol/second-config-panels/WalletSecondConfig}/index.less +0 -0
  293. /package/lib/{assets/images/common/product.png → composite-comp/monpay/components/MonpayRecommend/pc/imgs/card.png} +0 -0
@@ -1,274 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = AffiliatePlatform;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _antd = require("antd4");
13
-
14
- var _locale = require("../../../locale");
15
-
16
- 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); }
17
-
18
- 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; }
19
-
20
- var __assign = void 0 && (void 0).__assign || function () {
21
- __assign = Object.assign || function (t) {
22
- for (var s, i = 1, n = arguments.length; i < n; i++) {
23
- s = arguments[i];
24
-
25
- for (var p in s) {
26
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
- }
28
- }
29
-
30
- return t;
31
- };
32
-
33
- return __assign.apply(this, arguments);
34
- };
35
-
36
- var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) {
38
- return value instanceof P ? value : new P(function (resolve) {
39
- resolve(value);
40
- });
41
- }
42
-
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) {
45
- try {
46
- step(generator.next(value));
47
- } catch (e) {
48
- reject(e);
49
- }
50
- }
51
-
52
- function rejected(value) {
53
- try {
54
- step(generator["throw"](value));
55
- } catch (e) {
56
- reject(e);
57
- }
58
- }
59
-
60
- function step(result) {
61
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62
- }
63
-
64
- step((generator = generator.apply(thisArg, _arguments || [])).next());
65
- });
66
- };
67
-
68
- var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
69
- var _ = {
70
- label: 0,
71
- sent: function sent() {
72
- if (t[0] & 1) throw t[1];
73
- return t[1];
74
- },
75
- trys: [],
76
- ops: []
77
- },
78
- f,
79
- y,
80
- t,
81
- g;
82
- return g = {
83
- next: verb(0),
84
- "throw": verb(1),
85
- "return": verb(2)
86
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
87
- return this;
88
- }), g;
89
-
90
- function verb(n) {
91
- return function (v) {
92
- return step([n, v]);
93
- };
94
- }
95
-
96
- function step(op) {
97
- if (f) throw new TypeError("Generator is already executing.");
98
-
99
- while (_) {
100
- try {
101
- 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;
102
- if (y = 0, t) op = [op[0] & 2, t.value];
103
-
104
- switch (op[0]) {
105
- case 0:
106
- case 1:
107
- t = op;
108
- break;
109
-
110
- case 4:
111
- _.label++;
112
- return {
113
- value: op[1],
114
- done: false
115
- };
116
-
117
- case 5:
118
- _.label++;
119
- y = op[1];
120
- op = [0];
121
- continue;
122
-
123
- case 7:
124
- op = _.ops.pop();
125
-
126
- _.trys.pop();
127
-
128
- continue;
129
-
130
- default:
131
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
132
- _ = 0;
133
- continue;
134
- }
135
-
136
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
137
- _.label = op[1];
138
- break;
139
- }
140
-
141
- if (op[0] === 6 && _.label < t[1]) {
142
- _.label = t[1];
143
- t = op;
144
- break;
145
- }
146
-
147
- if (t && _.label < t[2]) {
148
- _.label = t[2];
149
-
150
- _.ops.push(op);
151
-
152
- break;
153
- }
154
-
155
- if (t[2]) _.ops.pop();
156
-
157
- _.trys.pop();
158
-
159
- continue;
160
- }
161
-
162
- op = body.call(thisArg, _);
163
- } catch (e) {
164
- op = [6, e];
165
- y = 0;
166
- } finally {
167
- f = t = 0;
168
- }
169
- }
170
-
171
- if (op[0] & 5) throw op[1];
172
- return {
173
- value: op[0] ? op[1] : void 0,
174
- done: true
175
- };
176
- }
177
- };
178
-
179
- var paginationParams = {
180
- pageSize: 50,
181
- pageIndex: 1
182
- };
183
-
184
- function AffiliatePlatform(props) {
185
- var _this = this;
186
-
187
- var _onChange = props.onChange,
188
- _fetch = props._fetch;
189
-
190
- var _a = (0, _react.useState)([]),
191
- list = _a[0],
192
- setList = _a[1];
193
-
194
- var _b = (0, _react.useState)(false),
195
- loading = _b[0],
196
- setLoading = _b[1];
197
-
198
- var queryBizType = function queryBizType(params) {
199
- return __awaiter(_this, void 0, void 0, function () {
200
- var res;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
203
- case 0:
204
- setLoading(true);
205
- return [4
206
- /*yield*/
207
- , _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/biztype/list", params, 'GET')];
208
-
209
- case 1:
210
- res = _a.sent();
211
- paginationParams.total = 50;
212
- setList(res || []);
213
- setLoading(false);
214
- return [2
215
- /*return*/
216
- ];
217
- }
218
- });
219
- });
220
- };
221
-
222
- (0, _react.useEffect)(function () {
223
- queryBizType(paginationParams);
224
- }, []);
225
- var columns = [{
226
- title: (0, _locale.i18n)('NAME'),
227
- dataIndex: 'bizTypeName'
228
- }, {
229
- title: (0, _locale.i18n)('LOGO'),
230
- dataIndex: 'logo',
231
- render: function render(val) {
232
- return /*#__PURE__*/_react["default"].createElement("img", {
233
- alt: "",
234
- src: (val === null || val === void 0 ? void 0 : val.url) || '',
235
- style: {
236
- maxWidth: '50px',
237
- maxHeight: '50px'
238
- }
239
- });
240
- }
241
- }];
242
- var rowSelection = {
243
- onChange: function onChange(selectedRowKeys, selectedRow) {
244
- _onChange({
245
- value: selectedRow[0].storeBizTypeId,
246
- name: selectedRow[0].bizTypeName
247
- });
248
- },
249
- type: 'radio'
250
- };
251
- return /*#__PURE__*/_react["default"].createElement("div", {
252
- style: {
253
- height: 450
254
- }
255
- }, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
256
- bordered: false,
257
- columns: columns,
258
- dataSource: list,
259
- defaultExpandAllRows: true,
260
- loading: loading,
261
- pagination: __assign(__assign({}, paginationParams), {
262
- onChange: function onChange(page) {
263
- paginationParams.pageIndex = page;
264
- queryBizType(paginationParams);
265
- },
266
- showSizeChanger: false
267
- }),
268
- rowKey: "storeBizTypeId",
269
- rowSelection: rowSelection,
270
- scroll: {
271
- y: 350
272
- }
273
- }));
274
- }
@@ -1,84 +0,0 @@
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 _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- 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); }
19
-
20
- 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; }
21
-
22
- 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); }
23
-
24
- var __extends = void 0 && (void 0).__extends || function () {
25
- var _extendStatics = function extendStatics(d, b) {
26
- _extendStatics = Object.setPrototypeOf || {
27
- __proto__: []
28
- } instanceof Array && function (d, b) {
29
- d.__proto__ = b;
30
- } || function (d, b) {
31
- for (var p in b) {
32
- if (b.hasOwnProperty(p)) d[p] = b[p];
33
- }
34
- };
35
-
36
- return _extendStatics(d, b);
37
- };
38
-
39
- return function (d, b) {
40
- _extendStatics(d, b);
41
-
42
- function __() {
43
- this.constructor = d;
44
- }
45
-
46
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
- };
48
- }();
49
-
50
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
51
- var c = arguments.length,
52
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
53
- d;
54
- 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--) {
55
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
56
- }
57
- return c > 3 && r && Object.defineProperty(target, key, r), r;
58
- };
59
-
60
- var Wallet =
61
- /** @class */
62
- function (_super) {
63
- __extends(Wallet, _super);
64
-
65
- function Wallet() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
-
69
- Wallet.prototype.render = function () {
70
- var nodeData = this.props.nodeData;
71
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? null : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
- data: nodeData
73
- }));
74
- };
75
-
76
- Wallet.defaultProps = {};
77
- Wallet.type = 'WALLET_ASHITA';
78
- Wallet.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
- Wallet = __decorate([_compositeDecorator["default"]], Wallet);
80
- return Wallet;
81
- }(_react.Component);
82
-
83
- var _default = Wallet;
84
- exports["default"] = _default;
@@ -1,100 +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 _common = require("../../../../../common");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- var __extends = void 0 && (void 0).__extends || function () {
17
- var _extendStatics = function extendStatics(d, b) {
18
- _extendStatics = Object.setPrototypeOf || {
19
- __proto__: []
20
- } instanceof Array && function (d, b) {
21
- d.__proto__ = b;
22
- } || function (d, b) {
23
- for (var p in b) {
24
- if (b.hasOwnProperty(p)) d[p] = b[p];
25
- }
26
- };
27
-
28
- return _extendStatics(d, b);
29
- };
30
-
31
- return function (d, b) {
32
- _extendStatics(d, b);
33
-
34
- function __() {
35
- this.constructor = d;
36
- }
37
-
38
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
39
- };
40
- }();
41
-
42
- var GroupList =
43
- /** @class */
44
- function (_super) {
45
- __extends(GroupList, _super);
46
-
47
- function GroupList() {
48
- var _this = _super !== null && _super.apply(this, arguments) || this;
49
-
50
- _this.renderCard = function (src) {
51
- return /*#__PURE__*/_react["default"].createElement("div", {
52
- className: "card_wrap"
53
- }, /*#__PURE__*/_react["default"].createElement("div", {
54
- className: "name"
55
- }, src.title.text));
56
- };
57
-
58
- return _this;
59
- }
60
-
61
- GroupList.prototype.render = function () {
62
- var _this = this;
63
-
64
- var _a = this.props,
65
- source = _a.source,
66
- onClickItem = _a.onClickItem;
67
- return /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "group_list"
69
- }, source.length > 0 && source.map(function (src, index) {
70
- return /*#__PURE__*/_react["default"].createElement("div", {
71
- key: "card" + src.id,
72
- className: "group_item",
73
- "data-nodeid": src.id,
74
- id: "card" + src.id,
75
- onClick: function onClick() {
76
- return onClickItem(src);
77
- }
78
- }, /*#__PURE__*/_react["default"].createElement("div", {
79
- className: "left"
80
- }, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
81
- className: "drag-icon",
82
- color: "#C4C4C4",
83
- size: "20px",
84
- type: "icon-drag"
85
- }), /*#__PURE__*/_react["default"].createElement("span", {
86
- className: "middle_info ml8"
87
- }, _this.renderCard(src, index) || 'image name')));
88
- }));
89
- };
90
-
91
- GroupList.defaultProps = {
92
- source: [],
93
- onClickItem: function onClickItem() {},
94
- reRender: function reRender() {}
95
- };
96
- return GroupList;
97
- }(_react["default"].Component);
98
-
99
- var _default = GroupList;
100
- exports["default"] = _default;
@@ -1,72 +0,0 @@
1
- .group_list {
2
- margin-bottom: 12px;
3
-
4
- .group_item {
5
- position: relative;
6
- display: flex;
7
- padding: 12px;
8
- border-radius: 8px;
9
- justify-content: space-between;
10
- cursor: move;
11
-
12
- &::after {
13
- content: ' ';
14
- position: absolute;
15
- bottom: 0;
16
- right: 0;
17
- left: 0;
18
- height: 1px;
19
- background-color: #EDF0F4;
20
- }
21
-
22
- .left {
23
- display: flex;
24
- align-items: center;
25
-
26
- .middle_info {
27
- width: 260px;
28
-
29
- .card_wrap {
30
- display: flex;
31
- align-items: center;
32
- height: 40px;
33
-
34
- img {
35
- height: 40px;
36
- width: 40px;
37
- border-radius: 8px;
38
- object-fit: cover;
39
- background-color: #EDF0F4;
40
- }
41
-
42
- .name {
43
- margin-left: 8px;
44
- font-family: 'Open Sans';
45
- font-style: normal;
46
- font-weight: 600;
47
- font-size: 16px;
48
- line-height: 24px;
49
- color: #232F46;
50
- overflow: hidden;
51
- text-overflow: ellipsis;
52
- white-space: nowrap;
53
- p {
54
- margin-bottom: 0;
55
- }
56
- }
57
- }
58
- }
59
- }
60
-
61
-
62
- &:hover {
63
- background-color: #E9F0FF;
64
-
65
- .left {
66
- .middle_info {
67
- width: 200px;
68
- }
69
- }
70
- }
71
- }
72
- }
@@ -1,123 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _mobxReact = require("mobx-react");
11
-
12
- var _coreUtil = require("../../../../../utils/coreUtil");
13
-
14
- var _decorator = require("../../../../../decorator");
15
-
16
- var _GroupList = _interopRequireDefault(require("../GroupList"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- 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); }
21
-
22
- var __extends = void 0 && (void 0).__extends || function () {
23
- var _extendStatics = function extendStatics(d, b) {
24
- _extendStatics = Object.setPrototypeOf || {
25
- __proto__: []
26
- } instanceof Array && function (d, b) {
27
- d.__proto__ = b;
28
- } || function (d, b) {
29
- for (var p in b) {
30
- if (b.hasOwnProperty(p)) d[p] = b[p];
31
- }
32
- };
33
-
34
- return _extendStatics(d, b);
35
- };
36
-
37
- return function (d, b) {
38
- _extendStatics(d, b);
39
-
40
- function __() {
41
- this.constructor = d;
42
- }
43
-
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- };
46
- }();
47
-
48
- var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
49
- var c = arguments.length,
50
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
51
- d;
52
- 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--) {
53
- if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
54
- }
55
- return c > 3 && r && Object.defineProperty(target, key, r), r;
56
- };
57
-
58
- var notice = 'error';
59
-
60
- var WalletNuriConfigImageGroup =
61
- /** @class */
62
- function (_super) {
63
- __extends(WalletNuriConfigImageGroup, _super);
64
-
65
- function WalletNuriConfigImageGroup() {
66
- var _this = _super !== null && _super.apply(this, arguments) || this;
67
-
68
- _this.state = {};
69
-
70
- _this.onClickItem = function (node) {
71
- _this.props.store.setState({
72
- clickedGroup: node.id
73
- });
74
- };
75
-
76
- _this.reRender = function () {
77
- (0, _coreUtil.renderPreview)();
78
-
79
- _this.setState({});
80
- };
81
-
82
- return _this;
83
- }
84
-
85
- WalletNuriConfigImageGroup.prototype.render = function () {
86
- var _a = this.props.source,
87
- source = _a === void 0 ? [] : _a;
88
-
89
- var _renderCard = function renderCard(src) {
90
- var _a;
91
-
92
- return /*#__PURE__*/_react["default"].createElement("div", {
93
- className: "card_wrap"
94
- }, /*#__PURE__*/_react["default"].createElement("div", {
95
- className: "name"
96
- }, (_a = src.title) === null || _a === void 0 ? void 0 : _a.text));
97
- };
98
-
99
- return /*#__PURE__*/_react["default"].createElement("div", {
100
- className: "WALLET_image"
101
- }, /*#__PURE__*/_react["default"].createElement("div", {
102
- className: "node_list"
103
- }, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
104
- className: "notice"
105
- }, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
106
- onClickItem: this.onClickItem,
107
- renderCard: function renderCard(v) {
108
- return _renderCard(v);
109
- },
110
- reRender: this.reRender,
111
- source: source
112
- })));
113
- };
114
-
115
- WalletNuriConfigImageGroup.defaultProps = {
116
- source: []
117
- };
118
- WalletNuriConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
119
- return WalletNuriConfigImageGroup;
120
- }(_react["default"].Component);
121
-
122
- var _default = WalletNuriConfigImageGroup;
123
- exports["default"] = _default;