@fonixtree/magic-design 1.0.65 → 1.0.67

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 (421) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +6 -62
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -35
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/base64/index.js +2 -36
  10. package/es/assets/less/button.less +0 -5
  11. package/es/assets/less/cylon-antd.less +1686 -7246
  12. package/es/assets/less/font.less +0 -22
  13. package/es/common/Button/index.less +1 -0
  14. package/es/common/CountDown/index.js +11 -20
  15. package/es/common/GroupList/index.js +2 -7
  16. package/es/common/ImagePicker/index.js +3 -1
  17. package/es/common/LinkModal/CouponTable/index.js +3 -3
  18. package/es/common/LinkModal/CustomTable/index.js +0 -1
  19. package/es/common/LinkModal/FunctionTable/index.js +1 -2
  20. package/es/common/LinkModal/index.js +2 -14
  21. package/es/common/MagicLink/index.js +2 -2
  22. package/es/common/ProductModal/index.js +3 -38
  23. package/es/common/ProductSource/index.js +18 -59
  24. package/es/common/UrlPicker/index.js +10 -62
  25. package/es/common/index.js +0 -24
  26. package/es/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  27. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  28. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  29. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  30. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  31. package/es/composite-comp/bol/components/Video/index.js +2 -1
  32. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  33. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  34. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  35. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  36. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  37. package/es/composite-comp/bol/components/Wallet/index.js +15 -11
  38. package/es/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  39. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  40. package/es/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  41. package/es/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  42. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  43. package/es/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  44. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  45. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  47. package/es/composite-comp/common/components/ProductItem/index.js +20 -22
  48. package/es/composite-comp/common/components/ProductItem/index.less +12 -2
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  50. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  52. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  53. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  54. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  55. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  56. package/es/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  57. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  58. package/es/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  59. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  60. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  61. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  62. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  63. package/es/constants/component-types.js +3 -45
  64. package/es/constants/index.js +5 -74
  65. package/es/constants/layout.js +1 -48
  66. package/es/core/Designer/ChatRobot/index.js +17 -84
  67. package/es/core/Designer/ChatRobot/index.less +28 -69
  68. package/es/core/Designer/ConfigPanel/index.js +3 -14
  69. package/es/core/Designer/FonixtreeGpt/index.js +29 -222
  70. package/es/core/Designer/PageCompList/index.js +5 -6
  71. package/es/core/Designer/QuickMenuBar/index.js +5 -11
  72. package/es/core/Designer/QuickMenuBar/index.less +0 -4
  73. package/es/core/Designer/RenderHtml/index.js +15 -18
  74. package/es/core/Designer/RenderHtml/index.less +1 -1
  75. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  76. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  77. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  78. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  79. package/es/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  80. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  81. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  82. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  83. package/es/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  84. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  85. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  86. package/es/core/Designer/ToolBarModal/index.js +27 -69
  87. package/es/core/Designer/ToolBarModal/index.less +2 -3
  88. package/es/core/Designer/index.js +2 -26
  89. package/es/core/Renderer/index.js +29 -74
  90. package/es/decorator/compositeDecorator.js +6 -33
  91. package/es/decorator/metaDecorator.js +1 -1
  92. package/es/locale/en/en.json +3 -17
  93. package/es/locale/es/es.json +3 -17
  94. package/es/locale/id/id.json +3 -17
  95. package/es/meta-comp/components/Image/index.js +25 -31
  96. package/es/meta-comp/components/Text/index.js +1 -4
  97. package/es/meta-comp/components/Text/index.less +0 -8
  98. package/es/meta-comp/config-panels/ImageConfig/index.js +44 -48
  99. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  100. package/es/mobx/Frame.js +2 -17
  101. package/es/mobx/index.js +3 -9
  102. package/es/utils/androidUtil.js +2 -13
  103. package/es/utils/businessUtil.js +3 -25
  104. package/es/utils/commonUtil.js +22 -177
  105. package/es/utils/coreUtil.js +2 -45
  106. package/es/utils/currencyUtil.js +2 -9
  107. package/lib/assets/fonts/.DS_Store +0 -0
  108. package/lib/assets/fonts/magic-box-iconfont.css +6 -62
  109. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -35
  110. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  111. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  112. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  113. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  114. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  115. package/lib/assets/images/base64/index.js +2 -36
  116. package/lib/assets/less/button.less +0 -5
  117. package/lib/assets/less/cylon-antd.less +1686 -7246
  118. package/lib/assets/less/font.less +0 -22
  119. package/lib/common/Button/index.less +1 -0
  120. package/lib/common/CountDown/index.js +11 -20
  121. package/lib/common/GroupList/index.js +2 -7
  122. package/lib/common/ImagePicker/index.js +3 -1
  123. package/lib/common/LinkModal/CouponTable/index.js +3 -3
  124. package/lib/common/LinkModal/CustomTable/index.js +0 -1
  125. package/lib/common/LinkModal/FunctionTable/index.js +1 -2
  126. package/lib/common/LinkModal/index.js +2 -14
  127. package/lib/common/MagicLink/index.js +2 -2
  128. package/lib/common/ProductModal/index.js +3 -38
  129. package/lib/common/ProductSource/index.js +18 -59
  130. package/lib/common/UrlPicker/index.js +10 -62
  131. package/lib/common/index.js +0 -24
  132. package/lib/composite-comp/bol/components/Banner/mobile/index.js +2 -1
  133. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  134. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  135. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  136. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  137. package/lib/composite-comp/bol/components/Video/index.js +2 -1
  138. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  139. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  140. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  141. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  142. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +88 -112
  143. package/lib/composite-comp/bol/components/Wallet/index.js +15 -11
  144. package/lib/composite-comp/bol/components/Wallet/mobile/index.js +64 -314
  145. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -103
  146. package/lib/composite-comp/bol/components/Wallet/pc/index.js +2 -0
  147. package/lib/composite-comp/bol/components/Wallet/pc/index.less +40 -1
  148. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigImageGroup/index.js +6 -1
  149. package/lib/composite-comp/bol/config-panels/WalletConfig/index.js +2 -11
  150. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +2 -2
  151. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +82 -58
  152. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.less +0 -2
  153. package/lib/composite-comp/common/components/ProductItem/index.js +20 -22
  154. package/lib/composite-comp/common/components/ProductItem/index.less +12 -2
  155. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +0 -13
  156. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -3
  157. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
  158. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +6 -8
  159. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  160. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +6 -8
  161. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  162. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +5 -6
  163. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  164. package/lib/composite-comp/dito/components/Recommend/pc/index.js +5 -6
  165. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  166. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +9 -6
  167. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  168. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +9 -10
  169. package/lib/constants/component-types.js +3 -45
  170. package/lib/constants/index.js +5 -74
  171. package/lib/constants/layout.js +1 -48
  172. package/lib/core/Designer/ChatRobot/index.js +17 -84
  173. package/lib/core/Designer/ChatRobot/index.less +28 -69
  174. package/lib/core/Designer/ConfigPanel/index.js +3 -14
  175. package/lib/core/Designer/FonixtreeGpt/index.js +29 -222
  176. package/lib/core/Designer/PageCompList/index.js +5 -6
  177. package/lib/core/Designer/QuickMenuBar/index.js +5 -11
  178. package/lib/core/Designer/QuickMenuBar/index.less +0 -4
  179. package/lib/core/Designer/RenderHtml/index.js +15 -18
  180. package/lib/core/Designer/RenderHtml/index.less +1 -1
  181. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +6 -19
  182. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +6 -19
  183. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +6 -19
  184. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.js +6 -27
  185. package/lib/core/Designer/ToolBarModal/ToolBtn/components/BulletPicker/index.less +20 -4
  186. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +5 -36
  187. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +16 -17
  188. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.js +6 -27
  189. package/lib/core/Designer/ToolBarModal/ToolBtn/components/OrderedPicker/index.less +20 -4
  190. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +3 -28
  191. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +1 -2
  192. package/lib/core/Designer/ToolBarModal/index.js +27 -69
  193. package/lib/core/Designer/ToolBarModal/index.less +2 -3
  194. package/lib/core/Designer/index.js +2 -26
  195. package/lib/core/Renderer/index.js +29 -74
  196. package/lib/decorator/compositeDecorator.js +6 -33
  197. package/lib/decorator/metaDecorator.js +1 -1
  198. package/lib/locale/en/en.json +3 -17
  199. package/lib/locale/es/es.json +3 -17
  200. package/lib/locale/id/id.json +3 -17
  201. package/lib/meta-comp/components/Image/index.js +25 -31
  202. package/lib/meta-comp/components/Text/index.js +1 -4
  203. package/lib/meta-comp/components/Text/index.less +0 -8
  204. package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -48
  205. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  206. package/lib/mobx/Frame.js +2 -17
  207. package/lib/mobx/index.js +3 -9
  208. package/lib/utils/androidUtil.js +2 -13
  209. package/lib/utils/businessUtil.js +3 -25
  210. package/lib/utils/commonUtil.js +22 -177
  211. package/lib/utils/coreUtil.js +2 -45
  212. package/lib/utils/currencyUtil.js +2 -9
  213. package/package.json +1 -2
  214. package/es/assets/fonts/Trueno-Light.otf +0 -0
  215. package/es/assets/fonts/Trueno-Regular.otf +0 -0
  216. package/es/assets/fonts/TruenoBd.otf +0 -0
  217. package/es/assets/images/layout-icon/walletLayout2.png +0 -0
  218. package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  219. package/es/common/AffiliateProductModal/index.js +0 -582
  220. package/es/common/AffiliateProductModal/index.less +0 -146
  221. package/es/common/CardCarousel/index.js +0 -171
  222. package/es/common/CardCarousel/index.less +0 -28
  223. package/es/common/CropperModal/index.js +0 -126
  224. package/es/common/CropperModal/index.less +0 -29
  225. package/es/common/MyModal/index.js +0 -417
  226. package/es/common/MyModal/index.less +0 -74
  227. package/es/common/UrlPicker/AnchorModal/index.js +0 -170
  228. package/es/common/UrlPicker/AnchorModal/index.less +0 -21
  229. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  230. package/es/composite-comp/bol/components/WalletNuri/index.js +0 -84
  231. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  232. package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  233. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  234. package/es/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  235. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  236. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  237. package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  238. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  239. package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  240. package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  241. package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  242. package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  243. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  244. package/es/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  245. package/es/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  246. package/es/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  247. package/es/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  248. package/es/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  249. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  250. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  251. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  252. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  253. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  254. package/es/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  255. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  256. package/es/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  257. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  258. package/es/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  259. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  260. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  261. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  262. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  263. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  264. package/es/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  265. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  266. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  267. package/es/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  268. package/es/composite-comp/dito/components/Orders/index.js +0 -84
  269. package/es/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  270. package/es/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  271. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  272. package/es/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  273. package/es/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  274. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  275. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  276. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  277. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  278. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  279. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  280. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  281. package/es/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  282. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  283. package/es/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  284. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  285. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  286. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  287. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  288. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  289. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  290. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  291. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  292. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  293. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  294. package/es/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  295. package/es/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  296. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  297. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  298. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  299. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  300. package/es/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  301. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  302. package/es/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  303. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  304. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  305. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  306. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  307. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  308. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  309. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  310. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  311. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  312. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  313. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  314. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  315. package/es/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  316. package/es/meta-comp/components/Text/formats/textAlign.js +0 -58
  317. package/es/mobx/UserState.js +0 -144
  318. package/lib/assets/fonts/Trueno-Light.otf +0 -0
  319. package/lib/assets/fonts/Trueno-Regular.otf +0 -0
  320. package/lib/assets/fonts/TruenoBd.otf +0 -0
  321. package/lib/assets/images/layout-icon/walletLayout2.png +0 -0
  322. package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
  323. package/lib/common/AffiliateProductModal/index.js +0 -582
  324. package/lib/common/AffiliateProductModal/index.less +0 -146
  325. package/lib/common/CardCarousel/index.js +0 -171
  326. package/lib/common/CardCarousel/index.less +0 -28
  327. package/lib/common/CropperModal/index.js +0 -126
  328. package/lib/common/CropperModal/index.less +0 -29
  329. package/lib/common/MyModal/index.js +0 -417
  330. package/lib/common/MyModal/index.less +0 -74
  331. package/lib/common/UrlPicker/AnchorModal/index.js +0 -170
  332. package/lib/common/UrlPicker/AnchorModal/index.less +0 -21
  333. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +0 -148
  334. package/lib/composite-comp/bol/components/WalletNuri/index.js +0 -84
  335. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +0 -366
  336. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +0 -22
  337. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.js +0 -201
  338. package/lib/composite-comp/bol/config-panels/WalletConfig/WalletConfigSetting/index.less +0 -9
  339. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
  340. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +0 -100
  341. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +0 -72
  342. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +0 -123
  343. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
  344. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
  345. package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +0 -61
  346. package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +0 -152
  347. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Balance2.svg +0 -9
  348. package/lib/composite-comp/common/components/AffiliateProductItem/imgs/icon-Koin.svg +0 -40
  349. package/lib/composite-comp/common/components/AffiliateProductItem/index.js +0 -168
  350. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +0 -129
  351. package/lib/composite-comp/dito/components/AffiliateRecommend/defaultJSON.js +0 -243
  352. package/lib/composite-comp/dito/components/AffiliateRecommend/index.js +0 -90
  353. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.js +0 -660
  354. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +0 -84
  355. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +0 -728
  356. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.less +0 -124
  357. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +0 -92
  358. package/lib/composite-comp/dito/components/CommonFunctions/index.js +0 -84
  359. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.js +0 -107
  360. package/lib/composite-comp/dito/components/CommonFunctions/mobile/index.less +0 -30
  361. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +0 -102
  362. package/lib/composite-comp/dito/components/HeadNavigation/index.js +0 -84
  363. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +0 -112
  364. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +0 -34
  365. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +0 -206
  366. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +0 -25
  367. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +0 -107
  368. package/lib/composite-comp/dito/components/MenuNavigation/index.js +0 -84
  369. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +0 -87
  370. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +0 -8
  371. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +0 -89
  372. package/lib/composite-comp/dito/components/Orders/index.js +0 -84
  373. package/lib/composite-comp/dito/components/Orders/mobile/index.js +0 -345
  374. package/lib/composite-comp/dito/components/Orders/mobile/index.less +0 -82
  375. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +0 -95
  376. package/lib/composite-comp/dito/components/PersonalInformation/index.js +0 -84
  377. package/lib/composite-comp/dito/components/PersonalInformation/mobile/images/avatar.png +0 -0
  378. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +0 -568
  379. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +0 -133
  380. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.js +0 -102
  381. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigContent/index.less +0 -0
  382. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.js +0 -148
  383. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/RecommendConfigGroup/index.less +0 -16
  384. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/imgs/defaultImg.png +0 -0
  385. package/lib/composite-comp/dito/config-panels/AffiliateRecommendConfig/index.js +0 -141
  386. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/ConfigGroup/index.js +0 -128
  387. package/lib/composite-comp/dito/config-panels/CommonFunctionsConfig/index.js +0 -113
  388. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +0 -203
  389. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +0 -72
  390. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +0 -142
  391. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +0 -121
  392. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +0 -23
  393. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +0 -203
  394. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +0 -72
  395. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +0 -137
  396. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +0 -6
  397. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +0 -40
  398. package/lib/composite-comp/dito/config-panels/OrdersConfig/ConfigGroup/index.js +0 -131
  399. package/lib/composite-comp/dito/config-panels/OrdersConfig/index.js +0 -114
  400. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigGroup/index.js +0 -131
  401. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +0 -118
  402. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +0 -431
  403. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.js +0 -214
  404. package/lib/composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig/index.less +0 -15
  405. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.js +0 -122
  406. package/lib/composite-comp/dito/second-config-panels/CommonFunctionsSecondConfig/index.less +0 -0
  407. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +0 -127
  408. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +0 -127
  409. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +0 -148
  410. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.less +0 -9
  411. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +0 -143
  412. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.less +0 -9
  413. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +0 -128
  414. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +0 -33
  415. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.js +0 -77
  416. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/UnderlineSelectPicker/index.less +0 -27
  417. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignCenterSVG.js +0 -40
  418. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignLeftSVG.js +0 -40
  419. package/lib/core/Designer/ToolBarModal/ToolBtn/images/AlignRightSVG.js +0 -40
  420. package/lib/meta-comp/components/Text/formats/textAlign.js +0 -58
  421. package/lib/mobx/UserState.js +0 -144
@@ -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 PersonalInformation =
61
- /** @class */
62
- function (_super) {
63
- __extends(PersonalInformation, _super);
64
-
65
- function PersonalInformation() {
66
- return _super !== null && _super.apply(this, arguments) || this;
67
- }
68
-
69
- PersonalInformation.prototype.render = function () {
70
- var nodeData = this.props.nodeData;
71
- return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
72
- data: nodeData
73
- }));
74
- };
75
-
76
- PersonalInformation.defaultProps = {};
77
- PersonalInformation.type = 'PERSONAL_INFOMATION';
78
- PersonalInformation.getDefaultJSON = _defaultJSON.getDefaultJSON;
79
- PersonalInformation = __decorate([_compositeDecorator["default"]], PersonalInformation);
80
- return PersonalInformation;
81
- }(_react.Component);
82
-
83
- var _default = PersonalInformation;
84
- exports["default"] = _default;
@@ -1,568 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.setAccountPageValue = exports.pInfoData = exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- var _lodash = require("lodash");
13
-
14
- var _antd = require("antd");
15
-
16
- var _avatar = _interopRequireDefault(require("./images/avatar.png"));
17
-
18
- var _components = require("../../../../../meta-comp/components");
19
-
20
- var _androidUtil = require("../../../../../utils/androidUtil");
21
-
22
- var _locale = require("../../../../../locale");
23
-
24
- var _Iconfont = _interopRequireDefault(require("../../../../../common/Iconfont"));
25
-
26
- var _commonUtil = require("../../../../../utils/commonUtil");
27
-
28
- var _index = require("../../../../../constants/index");
29
-
30
- var _storeUtil = require("../../../../../utils/storeUtil");
31
-
32
- var _common = require("../../../../../common");
33
-
34
- require("./index.less");
35
-
36
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
37
-
38
- var __extends = void 0 && (void 0).__extends || function () {
39
- var _extendStatics = function extendStatics(d, b) {
40
- _extendStatics = Object.setPrototypeOf || {
41
- __proto__: []
42
- } instanceof Array && function (d, b) {
43
- d.__proto__ = b;
44
- } || function (d, b) {
45
- for (var p in b) {
46
- if (b.hasOwnProperty(p)) d[p] = b[p];
47
- }
48
- };
49
-
50
- return _extendStatics(d, b);
51
- };
52
-
53
- return function (d, b) {
54
- _extendStatics(d, b);
55
-
56
- function __() {
57
- this.constructor = d;
58
- }
59
-
60
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
- };
62
- }();
63
-
64
- var __assign = void 0 && (void 0).__assign || function () {
65
- __assign = Object.assign || function (t) {
66
- for (var s, i = 1, n = arguments.length; i < n; i++) {
67
- s = arguments[i];
68
-
69
- for (var p in s) {
70
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
71
- }
72
- }
73
-
74
- return t;
75
- };
76
-
77
- return __assign.apply(this, arguments);
78
- };
79
-
80
- var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
81
- function adopt(value) {
82
- return value instanceof P ? value : new P(function (resolve) {
83
- resolve(value);
84
- });
85
- }
86
-
87
- return new (P || (P = Promise))(function (resolve, reject) {
88
- function fulfilled(value) {
89
- try {
90
- step(generator.next(value));
91
- } catch (e) {
92
- reject(e);
93
- }
94
- }
95
-
96
- function rejected(value) {
97
- try {
98
- step(generator["throw"](value));
99
- } catch (e) {
100
- reject(e);
101
- }
102
- }
103
-
104
- function step(result) {
105
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
106
- }
107
-
108
- step((generator = generator.apply(thisArg, _arguments || [])).next());
109
- });
110
- };
111
-
112
- var __generator = void 0 && (void 0).__generator || function (thisArg, body) {
113
- var _ = {
114
- label: 0,
115
- sent: function sent() {
116
- if (t[0] & 1) throw t[1];
117
- return t[1];
118
- },
119
- trys: [],
120
- ops: []
121
- },
122
- f,
123
- y,
124
- t,
125
- g;
126
- return g = {
127
- next: verb(0),
128
- "throw": verb(1),
129
- "return": verb(2)
130
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
131
- return this;
132
- }), g;
133
-
134
- function verb(n) {
135
- return function (v) {
136
- return step([n, v]);
137
- };
138
- }
139
-
140
- function step(op) {
141
- if (f) throw new TypeError("Generator is already executing.");
142
-
143
- while (_) {
144
- try {
145
- 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;
146
- if (y = 0, t) op = [op[0] & 2, t.value];
147
-
148
- switch (op[0]) {
149
- case 0:
150
- case 1:
151
- t = op;
152
- break;
153
-
154
- case 4:
155
- _.label++;
156
- return {
157
- value: op[1],
158
- done: false
159
- };
160
-
161
- case 5:
162
- _.label++;
163
- y = op[1];
164
- op = [0];
165
- continue;
166
-
167
- case 7:
168
- op = _.ops.pop();
169
-
170
- _.trys.pop();
171
-
172
- continue;
173
-
174
- default:
175
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
176
- _ = 0;
177
- continue;
178
- }
179
-
180
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
181
- _.label = op[1];
182
- break;
183
- }
184
-
185
- if (op[0] === 6 && _.label < t[1]) {
186
- _.label = t[1];
187
- t = op;
188
- break;
189
- }
190
-
191
- if (t && _.label < t[2]) {
192
- _.label = t[2];
193
-
194
- _.ops.push(op);
195
-
196
- break;
197
- }
198
-
199
- if (t[2]) _.ops.pop();
200
-
201
- _.trys.pop();
202
-
203
- continue;
204
- }
205
-
206
- op = body.call(thisArg, _);
207
- } catch (e) {
208
- op = [6, e];
209
- y = 0;
210
- } finally {
211
- f = t = 0;
212
- }
213
- }
214
-
215
- if (op[0] & 5) throw op[1];
216
- return {
217
- value: op[0] ? op[1] : void 0,
218
- done: true
219
- };
220
- }
221
- };
222
-
223
- var pInfoData = {
224
- Wishlist: {
225
- route: '/favourite/list'
226
- },
227
- Stores: {
228
- route: '/collect-store'
229
- },
230
- Vouchers: {
231
- route: '/my-coupon'
232
- },
233
- 'Recently Viewed': {
234
- route: '/review-list'
235
- }
236
- };
237
- exports.pInfoData = pInfoData;
238
- var LPObj = (0, _storeUtil.getSessionStore)('channelPurchase') || {};
239
- var currentUser = JSON.parse(localStorage.getItem('currentUser')) || {};
240
-
241
- var setAccountPageValue = function setAccountPageValue(obj) {
242
- var accountPageValue = JSON.parse(localStorage.getItem('accountPageValue'));
243
- localStorage.setItem('accountPageValue', JSON.stringify(__assign(__assign({}, accountPageValue), obj)));
244
- };
245
-
246
- exports.setAccountPageValue = setAccountPageValue;
247
-
248
- var PersonalInfoMobile =
249
- /** @class */
250
- function (_super) {
251
- __extends(PersonalInfoMobile, _super);
252
-
253
- function PersonalInfoMobile() {
254
- var _this = _super !== null && _super.apply(this, arguments) || this;
255
-
256
- _this.state = {
257
- messageNum: '',
258
- userInfo: currentUser,
259
- loading: false,
260
- selectedImgFile: {},
261
- editImgModalVisible: false
262
- };
263
-
264
- _this.getNum = function (v) {
265
- var userInfo = _this.state.userInfo;
266
-
267
- if (v === _index.personalInfoType.WISHLIST) {
268
- return userInfo.userCollectionNum || 0;
269
- } else if (v === _index.personalInfoType.STORES) {
270
- return userInfo.userCollectionStoreNum || 0;
271
- } else if (v === _index.personalInfoType.VOUCHERS) {
272
- return userInfo.couponNum || 0;
273
- } else if (v === _index.personalInfoType.VIEWED) {
274
- return userInfo.recentViewNum || 0;
275
- }
276
- };
277
-
278
- _this.handleFileChange = function (e) {
279
- var file = e.target.files[0];
280
-
281
- if (file) {
282
- if (file.name.length > 120) {
283
- _antd.message.error((0, _locale.i18n)('IMAGE_NAME_IS_TOO_LONG'));
284
-
285
- return;
286
- }
287
-
288
- _this.setState({
289
- editImgModalVisible: true,
290
- selectedImgFile: file
291
- });
292
- }
293
-
294
- e.target.value = '';
295
- };
296
-
297
- _this.goSettings = function () {
298
- if ((0, _commonUtil.checkLogin)()) {
299
- (0, _commonUtil.navigateTo)('/settings');
300
- }
301
- };
302
-
303
- _this.goMessageCenter = function () {
304
- if ((0, _commonUtil.checkLogin)(true)) {
305
- (0, _commonUtil.navigateTo)('/message-center');
306
- }
307
- };
308
-
309
- _this.clickName = function () {
310
- if (!(0, _lodash.isEmpty)(LPObj)) {
311
- return;
312
- }
313
-
314
- (0, _commonUtil.navigateTo)('/account/information');
315
- };
316
-
317
- _this.goLoginPage = function () {
318
- if ((0, _androidUtil.browserVersion)().isApp) {
319
- (0, _androidUtil.goToLoginApp)();
320
- } else {
321
- (0, _commonUtil.goLogin)();
322
- }
323
- };
324
-
325
- _this.getMessageNum = function () {
326
- return __awaiter(_this, void 0, void 0, function () {
327
- var num;
328
- return __generator(this, function (_a) {
329
- switch (_a.label) {
330
- case 0:
331
- return [4
332
- /*yield*/
333
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/users/inbox/unread/num', {}, 'GET')];
334
-
335
- case 1:
336
- num = _a.sent();
337
- if (num > 9) num = '9+';
338
- this.setState({
339
- messageNum: num
340
- });
341
- setAccountPageValue({
342
- messageNum: num
343
- });
344
- return [2
345
- /*return*/
346
- ];
347
- }
348
- });
349
- });
350
- };
351
-
352
- _this.getUserInfo = function () {
353
- return __awaiter(_this, void 0, void 0, function () {
354
- var info;
355
- return __generator(this, function (_a) {
356
- switch (_a.label) {
357
- case 0:
358
- return [4
359
- /*yield*/
360
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/users', {}, 'GET')];
361
-
362
- case 1:
363
- info = _a.sent();
364
- this.setState({
365
- userInfo: info
366
- });
367
- return [2
368
- /*return*/
369
- ];
370
- }
371
- });
372
- });
373
- };
374
-
375
- _this.modifyPhoto = function (params) {
376
- return __awaiter(_this, void 0, void 0, function () {
377
- return __generator(this, function (_a) {
378
- switch (_a.label) {
379
- case 0:
380
- return [4
381
- /*yield*/
382
- , (0, _commonUtil.commonFetch)('/designer/v1/h5/users/modify', params, 'POST')];
383
-
384
- case 1:
385
- _a.sent();
386
-
387
- this.setState(function (preState, props) {
388
- return {
389
- userInfo: __assign(__assign({}, preState.userInfo), {
390
- photo: params.photo
391
- }),
392
- loading: false,
393
- editImgModalVisible: false
394
- };
395
- });
396
- return [2
397
- /*return*/
398
- ];
399
- }
400
- });
401
- });
402
- };
403
-
404
- _this.onUploadImg = function (formData) {
405
- if (_this.state.loading) return;
406
-
407
- _this.setState({
408
- loading: true
409
- });
410
-
411
- fetch('/designer/v1/h5/image', {
412
- method: 'POST',
413
- body: formData
414
- }).then(function (response) {
415
- return response.json();
416
- }).then(function (responseData) {
417
- var _a;
418
-
419
- if (((_a = responseData === null || responseData === void 0 ? void 0 : responseData.fileUrl) === null || _a === void 0 ? void 0 : _a.length) > 120) {
420
- _antd.message.toast({
421
- type: 'error',
422
- message: (0, _locale.i18n)('IMAGE_NAME_IS_TOO_LONG'),
423
- duration: 3000
424
- });
425
-
426
- return;
427
- }
428
-
429
- _this.modifyPhoto({
430
- photo: responseData.fileUrl
431
- });
432
- })["catch"](function (err) {
433
- _antd.message.toast({
434
- type: 'error',
435
- message: err === null || err === void 0 ? void 0 : err.data,
436
- duration: 5000
437
- });
438
-
439
- _this.setState({
440
- loading: false
441
- });
442
- });
443
- };
444
-
445
- _this.onItemClick = function (v) {
446
- var _a;
447
-
448
- var routeUrl = (_a = pInfoData[v]) === null || _a === void 0 ? void 0 : _a.route;
449
- var selfUrl = (0, _commonUtil.ensure)(function () {
450
- return item.title.content.clickUrl.value || item.image.content.clickUrl.value;
451
- }, '');
452
- (0, _commonUtil.navigateTo)(routeUrl || selfUrl);
453
- };
454
-
455
- return _this;
456
- }
457
-
458
- PersonalInfoMobile.prototype.componentDidMount = function () {
459
- if ((0, _commonUtil.checkLogin)(false)) {
460
- this.getUserInfo();
461
- }
462
-
463
- this.getMessageNum();
464
- };
465
-
466
- PersonalInfoMobile.prototype.render = function () {
467
- var _this = this;
468
-
469
- var data = this.props.data;
470
- var _a = this.state,
471
- messageNum = _a.messageNum,
472
- userInfo = _a.userInfo,
473
- editImgModalVisible = _a.editImgModalVisible,
474
- selectedImgFile = _a.selectedImgFile;
475
- return /*#__PURE__*/_react["default"].createElement("div", {
476
- className: (0, _classnames["default"])('personal-information-mobile')
477
- }, /*#__PURE__*/_react["default"].createElement("div", {
478
- className: "top"
479
- }, /*#__PURE__*/_react["default"].createElement("div", {
480
- className: "pInfoWrap"
481
- }, (0, _commonUtil.isLogin)() ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
482
- className: "photoWrap"
483
- }, /*#__PURE__*/_react["default"].createElement("img", {
484
- alt: "",
485
- className: "photo",
486
- src: userInfo.photo || _avatar["default"],
487
- style: {
488
- height: 44,
489
- width: 44,
490
- background: userInfo.photo ? '#fff' : 'unset'
491
- }
492
- }), /*#__PURE__*/_react["default"].createElement("input", {
493
- accept: "image/*",
494
- id: "userPhoto",
495
- onChange: this.handleFileChange,
496
- type: "file"
497
- })), /*#__PURE__*/_react["default"].createElement("div", {
498
- className: "userInfo"
499
- }, /*#__PURE__*/_react["default"].createElement("p", {
500
- className: "name",
501
- onClick: this.clickName
502
- }, userInfo.firstName || userInfo.nickName), /*#__PURE__*/_react["default"].createElement("p", {
503
- className: "phone"
504
- }, userInfo.mobilePhone))) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
505
- className: "photo"
506
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
507
- color: "#fff",
508
- size: 32,
509
- type: "icon-account"
510
- })), data.login.open && /*#__PURE__*/_react["default"].createElement("span", {
511
- className: "btnLogin",
512
- onClick: this.goLoginPage
513
- }, (0, _locale.i18n)('LOGIN_OR_REGISTER')))), /*#__PURE__*/_react["default"].createElement("div", {
514
- className: "btnGroup"
515
- }, (0, _lodash.isEmpty)(LPObj) && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
516
- color: "#fff",
517
- onClick: this.goSettings,
518
- size: 24,
519
- type: "icon-set"
520
- }), /*#__PURE__*/_react["default"].createElement("div", {
521
- className: "iconWrap"
522
- }, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
523
- color: "#fff",
524
- onClick: this.goMessageCenter,
525
- size: 24,
526
- type: "icon-messages"
527
- }), !!messageNum && /*#__PURE__*/_react["default"].createElement("span", {
528
- className: "num"
529
- }, messageNum)))), /*#__PURE__*/_react["default"].createElement("div", {
530
- className: "bottom"
531
- }, data.groupSource.map(function (item) {
532
- return /*#__PURE__*/_react["default"].createElement("div", {
533
- className: "item",
534
- onClick: function onClick() {
535
- return _this.onItemClick(item.sourceType);
536
- }
537
- }, item.number.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
538
- className: "number",
539
- data: __assign(__assign({}, item.number), {
540
- text: (0, _commonUtil.isLogin)() ? _this.getNum(item.sourceType) : '- -'
541
- }),
542
- readonly: true
543
- }), item.title.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
544
- className: "title",
545
- data: item.title,
546
- onTextInput: function onTextInput(text) {
547
- item.title.text = text;
548
- }
549
- }));
550
- })), editImgModalVisible && /*#__PURE__*/_react["default"].createElement(_common.CropperModal, {
551
- onClose: function onClose() {
552
- return _this.setState({
553
- editImgModalVisible: false
554
- });
555
- },
556
- onSubmit: this.onUploadImg,
557
- uploadedImageFile: selectedImgFile
558
- }));
559
- };
560
-
561
- PersonalInfoMobile.defaultProps = {
562
- data: {}
563
- };
564
- return PersonalInfoMobile;
565
- }(_react["default"].Component);
566
-
567
- var _default = PersonalInfoMobile;
568
- exports["default"] = _default;