@fonixtree/magic-design 2.0.109 → 2.0.111

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 (241) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +27 -7
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +71 -7
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/base64/index.js +3 -1
  9. package/es/common/AffiliateProductModal/index.js +1 -1
  10. package/es/common/Button/index.js +1 -1
  11. package/es/common/Collapse/index.js +1 -1
  12. package/es/common/ImageModal/CommonModal/index.js +1 -1
  13. package/es/common/ImageModal/CommonSelPicCard/index.js +1 -1
  14. package/es/common/ImageModal/index.js +52 -50
  15. package/es/common/ImageModal/utils.js +1 -1
  16. package/es/common/ImagePicker/index.js +1 -1
  17. package/es/common/InputNumber/index.js +1 -1
  18. package/es/common/LinkModal/AffiliatePlatform/index.js +325 -0
  19. package/es/common/LinkModal/AffiliateProductTable/index.js +15 -27
  20. package/es/common/LinkModal/AffiliateStore/index.js +11 -23
  21. package/es/common/LinkModal/BundleCampaign/index.js +15 -27
  22. package/es/common/LinkModal/CatgTable/index.js +3 -11
  23. package/es/common/LinkModal/CouponTable/index.js +3 -11
  24. package/es/common/LinkModal/CustomTable/index.js +3 -11
  25. package/es/common/LinkModal/FilteredProductModal/index.js +23 -37
  26. package/es/common/LinkModal/FunctionTable/index.js +4 -11
  27. package/es/common/LinkModal/MiniAppApi/index.js +4 -12
  28. package/es/common/LinkModal/MiniAppTable/index.js +3 -11
  29. package/es/common/LinkModal/ProductDetailPage/index.js +26 -38
  30. package/es/common/LinkModal/SelectVideoModal/index.js +10 -18
  31. package/es/common/LinkModal/ShareUrl/index.js +3 -11
  32. package/es/common/LinkModal/StoreCatgTable/index.js +3 -11
  33. package/es/common/LinkModal/StoreTable/index.js +11 -23
  34. package/es/common/LinkModal/index.js +15 -19
  35. package/es/common/ProductModal/index.js +1 -1
  36. package/es/common/Slider/index.js +1 -1
  37. package/es/common/SwitchCollapse/index.js +1 -1
  38. package/es/common/SystemNotification/Confirm/index.js +1 -1
  39. package/es/common/UrlPicker/AnchorModal/index.js +1 -1
  40. package/es/common/VideoUpload/index.js +1 -0
  41. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -1
  42. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -1
  43. package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
  44. package/es/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
  45. package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
  46. package/es/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
  47. package/es/composite-comp/common/components/ProductItem/index.js +1 -1
  48. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
  49. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
  50. package/es/composite-comp/common/config-panels/InputField/index.js +1 -1
  51. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
  52. package/es/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
  53. package/es/composite-comp/dito/components/Bargain/index.js +86 -0
  54. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
  55. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
  56. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
  57. package/es/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
  58. package/es/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
  59. package/es/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
  60. package/es/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
  61. package/es/composite-comp/dito/components/Orders/mobile/index.js +8 -6
  62. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
  63. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  64. package/es/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
  65. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  66. package/es/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
  67. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
  68. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
  69. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
  70. package/es/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
  71. package/es/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
  72. package/es/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
  73. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
  74. package/es/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
  75. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
  76. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
  77. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  78. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  79. package/es/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
  80. package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
  81. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  82. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
  83. package/es/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
  84. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
  85. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
  86. package/es/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
  87. package/es/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
  88. package/es/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
  89. package/es/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
  90. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
  91. package/es/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
  92. package/es/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
  93. package/es/constants/component-types.js +6 -2
  94. package/es/constants/index.js +27 -5
  95. package/es/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
  96. package/es/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
  97. package/es/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
  98. package/es/core/Designer/AiImageGenerator/index.js +1 -1
  99. package/es/core/Designer/AppointmentModal/index.js +1 -1
  100. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
  101. package/es/core/Designer/ChatRobot/index.js +1 -1
  102. package/es/core/Designer/PageCompList/index.js +1 -1
  103. package/es/core/Designer/QuickMenuBar/index.js +60 -11
  104. package/es/core/Designer/ToolBarModal/index.js +1 -1
  105. package/es/core/Designer/index.js +22 -4
  106. package/es/core/SelectUrl/index.js +0 -1
  107. package/es/index.js +0 -8
  108. package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
  109. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
  110. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
  111. package/es/meta-comp/config-panels/ImageConfig/index.js +1 -1
  112. package/es/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
  113. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
  114. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
  115. package/es/meta-comp/config-panels/TextConfig/index.js +1 -1
  116. package/es/utils/androidUtil.js +5 -2
  117. package/es/utils/businessUtil.js +18 -3
  118. package/es/utils/commonUtil.js +2 -2
  119. package/es/utils/coreUtil.js +35 -25
  120. package/lib/assets/fonts/magic-box-iconfont.css +27 -7
  121. package/lib/assets/fonts/magic-box-iconfont.css.bak +71 -7
  122. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  123. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  124. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  125. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  126. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  127. package/lib/assets/images/base64/index.js +3 -1
  128. package/lib/common/AffiliateProductModal/index.js +1 -1
  129. package/lib/common/Button/index.js +1 -1
  130. package/lib/common/Collapse/index.js +1 -1
  131. package/lib/common/ImageModal/CommonModal/index.js +1 -1
  132. package/lib/common/ImageModal/CommonSelPicCard/index.js +1 -1
  133. package/lib/common/ImageModal/index.js +52 -50
  134. package/lib/common/ImageModal/utils.js +1 -1
  135. package/lib/common/ImagePicker/index.js +1 -1
  136. package/lib/common/InputNumber/index.js +1 -1
  137. package/lib/common/LinkModal/AffiliatePlatform/index.js +325 -0
  138. package/lib/common/LinkModal/AffiliateProductTable/index.js +15 -27
  139. package/lib/common/LinkModal/AffiliateStore/index.js +11 -23
  140. package/lib/common/LinkModal/BundleCampaign/index.js +15 -27
  141. package/lib/common/LinkModal/CatgTable/index.js +3 -11
  142. package/lib/common/LinkModal/CouponTable/index.js +3 -11
  143. package/lib/common/LinkModal/CustomTable/index.js +3 -11
  144. package/lib/common/LinkModal/FilteredProductModal/index.js +23 -37
  145. package/lib/common/LinkModal/FunctionTable/index.js +4 -11
  146. package/lib/common/LinkModal/MiniAppApi/index.js +4 -12
  147. package/lib/common/LinkModal/MiniAppTable/index.js +3 -11
  148. package/lib/common/LinkModal/ProductDetailPage/index.js +26 -38
  149. package/lib/common/LinkModal/SelectVideoModal/index.js +10 -18
  150. package/lib/common/LinkModal/ShareUrl/index.js +3 -11
  151. package/lib/common/LinkModal/StoreCatgTable/index.js +3 -11
  152. package/lib/common/LinkModal/StoreTable/index.js +11 -23
  153. package/lib/common/LinkModal/index.js +15 -19
  154. package/lib/common/ProductModal/index.js +1 -1
  155. package/lib/common/Slider/index.js +1 -1
  156. package/lib/common/SwitchCollapse/index.js +1 -1
  157. package/lib/common/SystemNotification/Confirm/index.js +1 -1
  158. package/lib/common/UrlPicker/AnchorModal/index.js +1 -1
  159. package/lib/common/VideoUpload/index.js +1 -0
  160. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -1
  161. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -1
  162. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +1 -1
  163. package/lib/composite-comp/bol/config-panels/VideoConfig/VideoShareConfig/index.js +1 -1
  164. package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +1 -1
  165. package/lib/composite-comp/bol/second-config-panels/WalletSecondConfig/index.js +1 -1
  166. package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
  167. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +1 -1
  168. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
  169. package/lib/composite-comp/common/config-panels/InputField/index.js +1 -1
  170. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +1 -1
  171. package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +244 -0
  172. package/lib/composite-comp/dito/components/Bargain/index.js +86 -0
  173. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg.png +0 -0
  174. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg1.png +0 -0
  175. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg2.png +0 -0
  176. package/lib/composite-comp/dito/components/Bargain/mobile/imgs/defImg3.png +0 -0
  177. package/lib/composite-comp/dito/components/Bargain/mobile/index.js +370 -0
  178. package/lib/composite-comp/dito/components/Bargain/mobile/index.less +85 -0
  179. package/lib/composite-comp/dito/components/GroupBuy/mobile/index.less +3 -3
  180. package/lib/composite-comp/dito/components/Orders/mobile/index.js +8 -6
  181. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +9 -7
  182. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
  183. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +1 -1
  184. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  185. package/lib/composite-comp/dito/components/SignBoard/pc/index.js +1 -1
  186. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.js +157 -0
  187. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigContent/index.less +20 -0
  188. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.js +126 -0
  189. package/lib/composite-comp/dito/config-panels/BargainConfig/FlashDealConfigTitle/index.less +0 -0
  190. package/lib/composite-comp/dito/config-panels/BargainConfig/imgs/layout1.png +0 -0
  191. package/lib/composite-comp/dito/config-panels/BargainConfig/index.js +73 -0
  192. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +1 -1
  193. package/lib/composite-comp/dito/config-panels/GroupBuyConfig/GroupBuyConfigContent/index.js +1 -1
  194. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +1 -1
  195. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +1 -1
  196. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +1 -1
  197. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +1 -1
  198. package/lib/composite-comp/dito/second-config-panels/OrdersSecondConfig/index.js +1 -1
  199. package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondConfig/index.js +1 -1
  200. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
  201. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +1 -1
  202. package/lib/composite-comp/monpay/components/InterestProducts/mobile/index.js +11 -6
  203. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +5 -2
  204. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/SearchCondition/index.js +3 -3
  205. package/lib/composite-comp/monpay/config-panels/BundleConfig/ConfigContent/index.js +1 -1
  206. package/lib/composite-comp/monpay/config-panels/InterestProductsConfig/ConfigContent/index.js +1 -1
  207. package/lib/composite-comp/monpay/config-panels/MerchantSalesConfig/ConfigContent/index.js +1 -1
  208. package/lib/composite-comp/monpay/config-panels/MonpayFlashDealConfig/FlashDealConfigContent/index.js +1 -1
  209. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/AIRecommendation/index.js +1 -1
  210. package/lib/composite-comp/monpay/second-config-panels/MonpayRecommendSecondConfig/index.js +1 -1
  211. package/lib/composite-comp/nuri/second-config-panels/AffiliateRecommendSecondConfig/AIRecommendation/index.js +1 -1
  212. package/lib/constants/component-types.js +6 -2
  213. package/lib/constants/index.js +27 -5
  214. package/lib/core/Designer/AiImageGenerator/GenerateSize/index.js +1 -1
  215. package/lib/core/Designer/AiImageGenerator/NumberSlider/index.js +1 -1
  216. package/lib/core/Designer/AiImageGenerator/UploadReference/index.js +1 -1
  217. package/lib/core/Designer/AiImageGenerator/index.js +1 -1
  218. package/lib/core/Designer/AppointmentModal/index.js +1 -1
  219. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +1 -1
  220. package/lib/core/Designer/ChatRobot/index.js +1 -1
  221. package/lib/core/Designer/PageCompList/index.js +1 -1
  222. package/lib/core/Designer/QuickMenuBar/index.js +60 -11
  223. package/lib/core/Designer/ToolBarModal/index.js +1 -1
  224. package/lib/core/Designer/index.js +22 -4
  225. package/lib/core/SelectUrl/index.js +0 -1
  226. package/lib/index.js +0 -8
  227. package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
  228. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +1 -1
  229. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +1 -1
  230. package/lib/meta-comp/config-panels/ImageConfig/index.js +1 -1
  231. package/lib/meta-comp/config-panels/PlayIconConfig/index.js +1 -1
  232. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +1 -1
  233. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +1 -1
  234. package/lib/meta-comp/config-panels/TextConfig/index.js +1 -1
  235. package/lib/utils/androidUtil.js +5 -2
  236. package/lib/utils/businessUtil.js +18 -3
  237. package/lib/utils/commonUtil.js +2 -2
  238. package/lib/utils/coreUtil.js +35 -25
  239. package/package.json +1 -1
  240. package/es/assets/fonts/.DS_Store +0 -0
  241. package/lib/assets/fonts/.DS_Store +0 -0
@@ -3,11 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.walletVoucherIcon = exports.walletSaldoIcon = exports.walletKoinIcon = exports.tipIcon = exports.pcNavIcon = exports.menuHomeSelectedIcon = exports.menuHomeIcon = exports.menuCommunitySelectedIcon = exports.menuCommunityIcon = exports.menuCategorySelectedIcon = exports.menuCategoryIcon = exports.menuCartSelectedIcon = exports.menuCartIcon = exports.menuAccountSelectedIcon = exports.menuAccountIcon = exports.headInboxIcon = exports.headHomeIcon = exports.headAccountIcon = exports.flashIcon = void 0;
6
+ exports.walletVoucherIcon = exports.walletSaldoIcon = exports.walletKoinIcon = exports.tipIcon = exports.pcNavIcon = exports.menuHomeSelectedIcon = exports.menuHomeIcon = exports.menuCommunitySelectedIcon = exports.menuCommunityIcon = exports.menuCategorySelectedIcon = exports.menuCategoryIcon = exports.menuCartSelectedIcon = exports.menuCartIcon = exports.menuAccountSelectedIcon = exports.menuAccountIcon = exports.headInboxIcon = exports.headHomeIcon = exports.headAccountIcon = exports.flashIcon = exports.bargainIcon = void 0;
7
7
  var pcNavIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAbCAYAAAAdx42aAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABRSURBVHgB7dWxFUBQEAXR91YidERicmXIVYRSdKIUJWjA+VRhA3M7mGjcj9Nia9X3znCZq7YbDuVoiqOOt35Tjsu6dwFANvMCXgDg93hB+gsemfAbHEJkq40AAAAASUVORK5CYII=';
8
8
  exports.pcNavIcon = pcNavIcon;
9
9
  var flashIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAlCAYAAAAqXEs9AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMoSURBVHgB5VhdbtNAEP5sJxKP6RsS/dmeoIlIkHginKThBNATJDlB4QSkJyA9AelTpdCq5QQsBZ5rXknjZcb1Oht34+ySRKrEJ1lZr2fX45lvv9kN8L/h/KkQVzVRw2PBxY747GMfYoMY74gOFLyiszGHOFU0eVcF+O4zrlLsoBB/sxnSxCetG9mDI6pVsK0IFE7hgYqlT1gtFepwxFiIOqY4TIcpSHjAOWUB8MrVNpziUz4uXNGh5g8Z6GsSYd94VDsXQmAJLrdFF0aUk2iNEXoppaTQxPo+mqBdZs9EJq71zL5qvOaUEQfOcuOgnEcZkU3EjVjGWKdDFKGR0T5YZJZqDu6JbOAanljuUDI3qTVCWnOK/Qr4DU8ExQ5Th4gPHyohBtMpbnP/IjReSDn35Ze74phS+w7uGJF9PwjwMbuXtIhec8MWIaGvUOGgIYkDwSxKQYHYKZH9nAGt3jfkTCd/l8JX/aw0ZUqLoTkgnOcREdmreFJK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DJ9tS7qkGXGDopW0DjYjG/XTlnnIuVmuVBY7AB6BjtChgFqY/mcpTzTCtOjcjVExHVSs5qx09bdVY47UzHxlTq3eESewtRFV/1bpHZ4o3slIkschyNeeUCXPYb4SPYnnV8b9sBvk8VHhEBZBnI2q3VXSVzuvlCBOFG/qUXaaLQccPqJmoXboUTXW67voPOdmu0jiUdAdCOuxElMjpFtVqmNtKoQF51y4lfCMN6IeriJeCrrfRoHMW7MqtmXAIqY3MSWgwuZPn9BlSYjdQjSki3Tad78ymUinXDTEZMjeJrYSZe/IxiXFT9oLb/5kocMr1a91VjEdEstjnmfj58QKjX/BG7f7XlQAAAABJRU5ErkJggg==';
12
14
  exports.tipIcon = tipIcon;
13
15
  var walletSaldoIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOtSURBVHgB7ZhNbBNHFMf/bzebKqhRfOgnPTChJE1Nqyzqpe2lplE59JJwqNSqh8ZKey2k1x5whOBKFJCQEMgJAk5ISYQ4AkbiwoeEI1vgEFAGuCCQwEgoCiHs8GZRgJhdZ5PddS77k1Ze79sZv/+8mTdvDCQkJCQkJDQYcbhLiLxIIQIIMaEdtF5sEDBNG/TSJmVsUgTBPyjYzM4ruUDWNpktVhGCJoREj6ZpWXYTOcIBukFku04qdtLtXfFluEO1fLRIWM6LPXwziBAEjkDHkbRNlinIIeGws/yom91qR0iUQ7tv/V2awBqpK0BPA/Nla8YgRDJf/XAUqqRU9fY/5QJWia+AL49+3WcaZh6I1/nlKOkoGr09UB4K2sLwM5iGcQANdV5DgqOd6zi2NR+0haeArrwtdGdYJ4iov+NYuj/Iu6Gz0OqgqoIaM4mKvzyonz1/eDJX/eN3ZDCPIk3A9+UGCSCZfjo3OH71DqdZdgrYFaiZydcGSPUncnQSY16vNEAAjV24ND278flCHmvJZuRufMN8eQowECeKJqbPl7TzOYRLCCnV790+RgEkx67PTvFGnEN4JI16r4PYppBSGPr+8bM9q6q2iJ1UeLq8I0g0o9+vSWwChkv3l+Yvahy6WGprHv5va7u429LsjqoBJ6VA702RBaNpeKViL3IBrc2t2LGpp/jrzJle1Eado9LZ820bkRrXX8kt9PRjnzDNz48CaJyALz7ciMne01qEja8GbPy/DZh78/vVzp60ZOcD77JBiHQR79zS60bA5WMBfNf31qgwRWRmEDGRCrjy4NryB5XC23tCG2IgYgFX0Tf5G47fOCWxb3sBj+S7ZrHl2XwBERP5PnDzcQX7Lu/nm8JkjSl19vJMt17IuiZCRMSURkmMtH+S+nf2Ya1h9/S5suTPwb1dn6ceWU11hYxM3Rfo48NOnWLOM3/pctpRi7MIA4/09PnyT3yXQRj0RmYgSydQ8DLHVkrwPxC7DrV/pE9W4aYLuX8QjPuZYxPAoU2NbP7sgGz5IPDxsA7rUcy5IuwdP3b8xZHYzl8l1k7Rr5iLt5zGaxEHN3+a7/w5PXSvxRrk6aCz01SApnfdi2snWNhZp//3iWQR+8DVT4HYKa5/pJd9qbDT9pmB0uhK/TX4TOyOWEYfK5cKuVreFHYKWQTAcwpVskXJH0WsF5yCg4y+xncNqEUnC58wx0hRKcreGijngjZY8bzUlf8mg4awKCvZikRCQkJCQsIqeAVyQiD1CWbbAgAAAABJRU5ErkJggg==';
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _antd = require("antd");
10
+ var _antd = require("antd4");
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
@@ -11,7 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
 
14
- var _antd = require("antd");
14
+ var _antd = require("antd4");
15
15
 
16
16
  var _Iconfont = _interopRequireDefault(require("../Iconfont"));
17
17
 
@@ -9,7 +9,7 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
12
- var _antd = require("antd");
12
+ var _antd = require("antd4");
13
13
 
14
14
  var _mobx = require("../../mobx");
15
15
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _antd = require("antd");
8
+ var _antd = require("antd4");
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _antd = require("antd");
8
+ var _antd = require("antd4");
9
9
 
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
 
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
 
10
- var _antd = require("antd");
10
+ var _antd = require("antd4");
11
11
 
12
12
  var _findIndex = _interopRequireDefault(require("lodash/findIndex"));
13
13
 
@@ -231,67 +231,69 @@ function ImageModal(_a) {
231
231
  _b = _a.maxCount,
232
232
  maxCount = _b === void 0 ? 1 : _b,
233
233
  _c = _a.type,
234
- type = _c === void 0 ? _const2.contentCatgTypeMap.PICTURE : _c;
234
+ type = _c === void 0 ? _const2.contentCatgTypeMap.PICTURE : _c,
235
+ _d = _a._fetch,
236
+ _fetch = _d === void 0 ? _commonUtil.commonFetch : _d;
235
237
 
236
- var _d = (0, _react.useState)([]),
237
- treeData = _d[0],
238
- setTreeData = _d[1];
238
+ var _e = (0, _react.useState)([]),
239
+ treeData = _e[0],
240
+ setTreeData = _e[1];
239
241
 
240
- var _e = (0, _react.useState)(['-1']),
241
- selectedKeys = _e[0],
242
- setSelectedKeys = _e[1];
242
+ var _f = (0, _react.useState)(['-1']),
243
+ selectedKeys = _f[0],
244
+ setSelectedKeys = _f[1];
243
245
 
244
- var _f = (0, _react.useState)([]),
245
- selectedPics = _f[0],
246
- setSelectedPics = _f[1];
246
+ var _g = (0, _react.useState)([]),
247
+ selectedPics = _g[0],
248
+ setSelectedPics = _g[1];
247
249
 
248
- var _g = (0, _react.useState)(''),
249
- wapUrl = _g[0],
250
- setWapUrl = _g[1];
250
+ var _h = (0, _react.useState)(''),
251
+ wapUrl = _h[0],
252
+ setWapUrl = _h[1];
251
253
 
252
- var _h = (0, _react.useState)([]),
253
- contents = _h[0],
254
- setContents = _h[1];
254
+ var _j = (0, _react.useState)([]),
255
+ contents = _j[0],
256
+ setContents = _j[1];
255
257
 
256
- var _j = (0, _react.useState)(0),
257
- total = _j[0],
258
- setTotal = _j[1];
258
+ var _k = (0, _react.useState)(0),
259
+ total = _k[0],
260
+ setTotal = _k[1];
259
261
 
260
- var _k = (0, _react.useState)(1),
261
- pageIndex = _k[0],
262
- setPageIndex = _k[1];
262
+ var _l = (0, _react.useState)(1),
263
+ pageIndex = _l[0],
264
+ setPageIndex = _l[1];
263
265
 
264
- var _l = (0, _react.useState)(20),
265
- pageSize = _l[0],
266
- setPageSize = _l[1];
266
+ var _m = (0, _react.useState)(20),
267
+ pageSize = _m[0],
268
+ setPageSize = _m[1];
267
269
 
268
- var _m = (0, _react.useState)(false),
269
- spinning = _m[0],
270
- setSpinning = _m[1];
270
+ var _o = (0, _react.useState)(false),
271
+ spinning = _o[0],
272
+ setSpinning = _o[1];
271
273
 
272
- var _o = (0, _react.useState)(null),
273
- process = _o[0],
274
- setProcess = _o[1];
274
+ var _p = (0, _react.useState)(null),
275
+ process = _p[0],
276
+ setProcess = _p[1];
275
277
 
276
- var _p = (0, _react.useState)(''),
277
- name = _p[0],
278
- setName = _p[1];
278
+ var _q = (0, _react.useState)(''),
279
+ name = _q[0],
280
+ setName = _q[1];
279
281
 
280
- var _q = (0, _react.useState)([]),
281
- contentcatgsList = _q[0],
282
- setContentcatgsList = _q[1];
282
+ var _r = (0, _react.useState)([]),
283
+ contentcatgsList = _r[0],
284
+ setContentcatgsList = _r[1];
283
285
 
284
- var _r = (0, _react.useState)(''),
285
- searchValue = _r[0],
286
- setSearchValue = _r[1];
286
+ var _s = (0, _react.useState)(''),
287
+ searchValue = _s[0],
288
+ setSearchValue = _s[1];
287
289
 
288
- var _s = (0, _react.useState)([]),
289
- expandedKeys = _s[0],
290
- setExpandedKeys = _s[1];
290
+ var _t = (0, _react.useState)([]),
291
+ expandedKeys = _t[0],
292
+ setExpandedKeys = _t[1];
291
293
 
292
- var _t = (0, _react.useState)(true),
293
- autoExpandParent = _t[0],
294
- setAutoExpandParent = _t[1]; // const currentUser = sessionUtil.getUser() || {};
294
+ var _u = (0, _react.useState)(true),
295
+ autoExpandParent = _u[0],
296
+ setAutoExpandParent = _u[1]; // const currentUser = sessionUtil.getUser() || {};
295
297
  // const { _csrf } = currentUser;
296
298
  // const headers = {};
297
299
  // if (_csrf && _csrf.headerName) {
@@ -319,7 +321,7 @@ function ImageModal(_a) {
319
321
 
320
322
  return [4
321
323
  /*yield*/
322
- , (0, _commonUtil.commonFetch)('/designer/v1/contents', __assign(__assign({
324
+ , _fetch('/designer/v1/contents', __assign(__assign({
323
325
  pageIndex: pageIndex,
324
326
  pageSize: pageSize,
325
327
  pageTotal: false,
@@ -403,7 +405,7 @@ function ImageModal(_a) {
403
405
  case 0:
404
406
  return [4
405
407
  /*yield*/
406
- , (0, _commonUtil.commonFetch)('/designer/v1/contentcatgs', {
408
+ , _fetch('/designer/v1/contentcatgs', {
407
409
  catgType: type === _const2.contentCatgTypeMap.PICTURE ? _const2.catgType.PICTURE : _const2.catgType.VIDEO
408
410
  }, 'GET')];
409
411
 
@@ -482,7 +484,7 @@ function ImageModal(_a) {
482
484
  };
483
485
 
484
486
  var onUpload = function onUpload(data) {
485
- return (0, _commonUtil.commonFetch)('/designer/v1/upload/contents', data, 'POST').then(function () {
487
+ return _fetch('/designer/v1/upload/contents', data, 'POST').then(function () {
486
488
  setSpinning(false);
487
489
  });
488
490
  };
@@ -12,7 +12,7 @@ exports.sliceFn = sliceFn;
12
12
  exports.tellBackendMergeFn = tellBackendMergeFn;
13
13
  exports.uploadFileCheck = void 0;
14
14
 
15
- var _antd = require("antd");
15
+ var _antd = require("antd4");
16
16
 
17
17
  var _sparkMd = _interopRequireDefault(require("spark-md5"));
18
18
 
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  require("./index.less");
11
11
 
12
- var _antd = require("antd");
12
+ var _antd = require("antd4");
13
13
 
14
14
  var _locale = require("../../locale");
15
15
 
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _antd = require("antd");
10
+ var _antd = require("antd4");
11
11
 
12
12
  require("./index.less");
13
13
 
@@ -0,0 +1,325 @@
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: 20,
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
+ platformList = _a[0],
192
+ setPlatformList = _a[1];
193
+
194
+ var _b = (0, _react.useState)(false),
195
+ loading = _b[0],
196
+ setLoading = _b[1];
197
+
198
+ var _c = (0, _react.useState)(''),
199
+ platformName = _c[0],
200
+ setPlatformName = _c[1];
201
+
202
+ var queryPlatform = function queryPlatform(params) {
203
+ return __awaiter(_this, void 0, void 0, function () {
204
+ var res;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ case 0:
208
+ setLoading(true);
209
+ return [4
210
+ /*yield*/
211
+ , _fetch("/designer/v1/" + window.magicDesign.MBaseUrl + "/distribution/platform/page", params, 'GET')];
212
+
213
+ case 1:
214
+ res = _a.sent();
215
+ paginationParams.total = res.total;
216
+ setPlatformList(res.list);
217
+ setLoading(false);
218
+ return [2
219
+ /*return*/
220
+ ];
221
+ }
222
+ });
223
+ });
224
+ };
225
+
226
+ (0, _react.useEffect)(function () {
227
+ queryPlatform(paginationParams);
228
+ }, []);
229
+ var columns = [{
230
+ title: 'Platform Name',
231
+ dataIndex: 'platformName'
232
+ }, {
233
+ title: 'Logo',
234
+ dataIndex: 'logo',
235
+ render: function render(val) {
236
+ return /*#__PURE__*/_react["default"].createElement("img", {
237
+ alt: "",
238
+ src: val,
239
+ style: {
240
+ maxWidth: '50px',
241
+ maxHeight: '50px'
242
+ }
243
+ });
244
+ }
245
+ }];
246
+ var rowSelection = {
247
+ onChange: function onChange(selectedRowKeys, selectedRow) {
248
+ _onChange({
249
+ value: selectedRow[0].distributionPlatformId,
250
+ name: selectedRow[0].platformName
251
+ });
252
+ },
253
+ type: 'radio'
254
+ };
255
+
256
+ var reset = function reset() {
257
+ setPlatformName('');
258
+ queryPlatform(__assign({
259
+ platformName: ''
260
+ }, paginationParams));
261
+ };
262
+
263
+ return /*#__PURE__*/_react["default"].createElement("div", {
264
+ style: {
265
+ height: 550
266
+ }
267
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
268
+ labelCol: {
269
+ span: 6
270
+ },
271
+ layout: "horizontal"
272
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Row, {
273
+ gutter: 24
274
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Col, {
275
+ span: 16
276
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
277
+ label: "Platform Name"
278
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
279
+ onChange: function onChange(e) {
280
+ return setPlatformName(e.target.value);
281
+ },
282
+ size: "small",
283
+ value: platformName
284
+ }))), /*#__PURE__*/_react["default"].createElement(_antd.Col, {
285
+ span: 6
286
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
287
+ onClick: function onClick() {
288
+ setLoading(true);
289
+ paginationParams.pageIndex = 1;
290
+ queryPlatform(__assign({
291
+ platformName: platformName
292
+ }, paginationParams));
293
+ },
294
+ size: "small",
295
+ style: {
296
+ marginRight: 10
297
+ },
298
+ type: "primary"
299
+ }, (0, _locale.i18n)('QUERY')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
300
+ onClick: function onClick() {
301
+ reset();
302
+ },
303
+ size: "small"
304
+ }, (0, _locale.i18n)('CANCEL'))))), /*#__PURE__*/_react["default"].createElement(_antd.Table, {
305
+ bordered: false,
306
+ columns: columns,
307
+ dataSource: platformList,
308
+ defaultExpandAllRows: true,
309
+ loading: loading,
310
+ pagination: __assign(__assign({}, paginationParams), {
311
+ onChange: function onChange(page) {
312
+ paginationParams.pageIndex = page;
313
+ queryPlatform(__assign(__assign({}, paginationParams), {
314
+ platformName: platformName
315
+ }));
316
+ },
317
+ showSizeChanger: false
318
+ }),
319
+ rowKey: "distributionPlatformId",
320
+ rowSelection: rowSelection,
321
+ scroll: {
322
+ y: 400
323
+ }
324
+ }));
325
+ }