@bit-sun/business-component 2.4.13 → 2.4.15-beta

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 (274) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/index.js +336 -265
  9. package/docs/index.md +21 -21
  10. package/lib/assets/drag.svg +17 -17
  11. package/lib/assets/exportFail.svg +37 -37
  12. package/lib/assets/exportProcessing.svg +28 -28
  13. package/lib/assets/exportSuccess.svg +34 -34
  14. package/lib/assets/label_icon_bottom.svg +25 -25
  15. package/lib/assets/upExport.svg +22 -22
  16. package/package.json +79 -79
  17. package/src/assets/32.svg +27 -27
  18. package/src/assets/addIcon.svg +17 -17
  19. package/src/assets/allfunc.svg +27 -27
  20. package/src/assets/arrowRight.svg +24 -24
  21. package/src/assets/btn-delete.svg +29 -29
  22. package/src/assets/btn-edit.svg +19 -19
  23. package/src/assets/btn-more.svg +17 -17
  24. package/src/assets/btn-submit.svg +19 -19
  25. package/src/assets/caidan.svg +11 -11
  26. package/src/assets/close.svg +26 -26
  27. package/src/assets/drag.svg +17 -17
  28. package/src/assets/exportFail.svg +37 -37
  29. package/src/assets/exportProcessing.svg +28 -28
  30. package/src/assets/exportSuccess.svg +34 -34
  31. package/src/assets/fixed-left-active.svg +11 -11
  32. package/src/assets/fixed-left.svg +15 -15
  33. package/src/assets/fixed-right-active.svg +11 -11
  34. package/src/assets/fixed-right.svg +15 -15
  35. package/src/assets/guanbi.svg +15 -15
  36. package/src/assets/icon-quanping.svg +15 -15
  37. package/src/assets/icon-shezhi.svg +17 -17
  38. package/src/assets/label_icon_bottom.svg +25 -25
  39. package/src/assets/list-no-img.svg +21 -21
  40. package/src/assets/morentouxiang-32.svg +23 -23
  41. package/src/assets/scanning.svg +24 -24
  42. package/src/assets/upExport.svg +22 -22
  43. package/src/common/ENUM.ts +41 -41
  44. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  45. package/src/components/Business/AddSelectBusiness/index.tsx +1061 -1061
  46. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  47. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  48. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  49. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  50. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  51. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  52. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  53. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  54. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  55. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  58. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  59. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  60. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  61. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  62. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  63. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  64. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  65. package/src/components/Business/BsLayouts/index.less +79 -79
  66. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  67. package/src/components/Business/BsLayouts/service.ts +10 -10
  68. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  69. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +566 -566
  70. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  71. package/src/components/Business/BsSulaQueryTable/index.tsx +538 -538
  72. package/src/components/Business/BsSulaQueryTable/setting.tsx +854 -854
  73. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  74. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
  75. package/src/components/Business/CommodityEntry/index.md +70 -70
  76. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  77. package/src/components/Business/CommonAlert/index.tsx +23 -23
  78. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  79. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  80. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  81. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  82. package/src/components/Business/DetailPageWrapper/index.tsx +315 -315
  83. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  84. package/src/components/Business/HomePageWrapper/index.less +33 -33
  85. package/src/components/Business/HomePageWrapper/index.md +45 -45
  86. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  87. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  88. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  89. package/src/components/Business/JsonQueryTable/components/Formula.tsx +206 -206
  90. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  91. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  92. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  93. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  94. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  95. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  96. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  97. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  98. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  99. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  100. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  101. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  102. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  103. package/src/components/Business/JsonQueryTable/index.less +16 -16
  104. package/src/components/Business/JsonQueryTable/index.md +328 -328
  105. package/src/components/Business/JsonQueryTable/index.tsx +537 -537
  106. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  107. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  108. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  109. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  110. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  111. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  112. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  113. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  114. package/src/components/Business/JsonQueryTable/static.ts +450 -450
  115. package/src/components/Business/SearchSelect/BusinessUtils.ts +1903 -1836
  116. package/src/components/Business/SearchSelect/common.ts +75 -75
  117. package/src/components/Business/SearchSelect/index.md +1387 -1387
  118. package/src/components/Business/SearchSelect/index.tsx +55 -55
  119. package/src/components/Business/SearchSelect/utils.ts +101 -101
  120. package/src/components/Business/StateFlow/index.less +130 -130
  121. package/src/components/Business/StateFlow/index.md +60 -60
  122. package/src/components/Business/StateFlow/index.tsx +29 -29
  123. package/src/components/Business/TreeSearchSelect/index.md +185 -185
  124. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  125. package/src/components/Business/TreeSearchSelect/utils.ts +104 -104
  126. package/src/components/Business/columnSettingTable/columnSetting.tsx +766 -766
  127. package/src/components/Business/columnSettingTable/index.less +247 -247
  128. package/src/components/Business/columnSettingTable/index.md +357 -357
  129. package/src/components/Business/columnSettingTable/index.tsx +234 -234
  130. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +242 -242
  131. package/src/components/Business/columnSettingTable/utils.tsx +71 -71
  132. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
  133. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  134. package/src/components/Business/moreTreeTable/index.less +99 -99
  135. package/src/components/Business/moreTreeTable/index.md +448 -448
  136. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  137. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  138. package/src/components/Functional/AddSelect/helps.ts +80 -80
  139. package/src/components/Functional/AddSelect/index.less +367 -367
  140. package/src/components/Functional/AddSelect/index.md +155 -155
  141. package/src/components/Functional/AddSelect/index.tsx +1171 -1171
  142. package/src/components/Functional/BillEntry/index.less +371 -371
  143. package/src/components/Functional/BillEntry/index.md +39 -39
  144. package/src/components/Functional/BillEntry/index.tsx +773 -773
  145. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  146. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  147. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  148. package/src/components/Functional/DataImport/index.less +63 -63
  149. package/src/components/Functional/DataImport/index.md +44 -44
  150. package/src/components/Functional/DataImport/index.tsx +696 -696
  151. package/src/components/Functional/DataValidation/index.less +63 -63
  152. package/src/components/Functional/DataValidation/index.md +39 -39
  153. package/src/components/Functional/DataValidation/index.tsx +688 -688
  154. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  155. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  156. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  157. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  158. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +60 -60
  159. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  160. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  161. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  162. package/src/components/Functional/SearchSelect/index.less +115 -115
  163. package/src/components/Functional/SearchSelect/index.md +141 -141
  164. package/src/components/Functional/SearchSelect/index.tsx +896 -896
  165. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  166. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  167. package/src/components/Functional/TreeSearchSelect/index.tsx +204 -201
  168. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  169. package/src/components/Solution/RuleComponent/InnerSelect.tsx +62 -62
  170. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  171. package/src/components/Solution/RuleComponent/index.js +2073 -2073
  172. package/src/components/Solution/RuleComponent/index.less +230 -230
  173. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  174. package/src/components/Solution/RuleComponent/ruleFiled.js +2281 -2281
  175. package/src/components/Solution/RuleComponent/services.ts +13 -13
  176. package/src/components/Solution/RuleComponent/util.js +143 -143
  177. package/src/index.ts +38 -38
  178. package/src/plugin/TableColumnSetting/index.less +247 -247
  179. package/src/plugin/TableColumnSetting/index.md +50 -50
  180. package/src/plugin/TableColumnSetting/index.tsx +725 -725
  181. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  182. package/src/styles/bsDefault.less +1912 -1912
  183. package/src/utils/CheckOneUser/index.md +39 -39
  184. package/src/utils/CheckOneUser/index.ts +51 -51
  185. package/src/utils/CustomLoginInfo.ts +55 -55
  186. package/src/utils/LocalstorageUtils.ts +95 -95
  187. package/src/utils/TableUtils.tsx +18 -18
  188. package/src/utils/checkUtils.ts +39 -39
  189. package/src/utils/enumConfig.ts +11 -11
  190. package/src/utils/getFormMode.js +12 -12
  191. package/src/utils/index.ts +4 -4
  192. package/src/utils/requestUtils.ts +166 -166
  193. package/src/utils/serialize.js +7 -7
  194. package/src/utils/utils.ts +195 -195
  195. package/tsconfig.json +29 -29
  196. package/typings.d.ts +4 -4
  197. package/dist/common/ENUM.d.ts +0 -40
  198. package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -4
  199. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +0 -5
  200. package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +0 -4
  201. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +0 -4
  202. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +0 -17
  203. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +0 -30
  204. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +0 -4
  205. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +0 -3
  206. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +0 -4
  207. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +0 -5
  208. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +0 -3
  209. package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +0 -8
  210. package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +0 -8
  211. package/dist/components/Business/BsLayouts/index.d.ts +0 -18
  212. package/dist/components/Business/BsLayouts/service.d.ts +0 -1
  213. package/dist/components/Business/BsLayouts/utils.d.ts +0 -10
  214. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +0 -60
  215. package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -3
  216. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +0 -60
  217. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -99
  218. package/dist/components/Business/CommodityEntry/index.d.ts +0 -3
  219. package/dist/components/Business/CommonAlert/index.d.ts +0 -4
  220. package/dist/components/Business/CommonGuideWrapper/index.d.ts +0 -6
  221. package/dist/components/Business/DetailPageWrapper/index.d.ts +0 -10
  222. package/dist/components/Business/DetailPageWrapper/utils.d.ts +0 -8
  223. package/dist/components/Business/HomePageWrapper/index.d.ts +0 -4
  224. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +0 -3
  225. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +0 -3
  226. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +0 -7
  227. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +0 -3
  228. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +0 -3
  229. package/dist/components/Business/JsonQueryTable/function.d.ts +0 -37
  230. package/dist/components/Business/JsonQueryTable/index.d.ts +0 -4
  231. package/dist/components/Business/JsonQueryTable/static.d.ts +0 -44
  232. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +0 -5
  233. package/dist/components/Business/SearchSelect/common.d.ts +0 -25
  234. package/dist/components/Business/SearchSelect/index.d.ts +0 -3
  235. package/dist/components/Business/SearchSelect/utils.d.ts +0 -5
  236. package/dist/components/Business/StateFlow/index.d.ts +0 -4
  237. package/dist/components/Business/TreeSearchSelect/index.d.ts +0 -3
  238. package/dist/components/Business/TreeSearchSelect/utils.d.ts +0 -4
  239. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +0 -54
  240. package/dist/components/Business/columnSettingTable/index.d.ts +0 -16
  241. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +0 -17
  242. package/dist/components/Business/columnSettingTable/utils.d.ts +0 -9
  243. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +0 -3
  244. package/dist/components/Business/moreTreeTable/hooks/useSticky.d.ts +0 -8
  245. package/dist/components/Business/moreTreeTable/index.d.ts +0 -4
  246. package/dist/components/Business/moreTreeTable/utils.d.ts +0 -9
  247. package/dist/components/Functional/AddSelect/helps.d.ts +0 -14
  248. package/dist/components/Functional/AddSelect/index.d.ts +0 -4
  249. package/dist/components/Functional/BillEntry/index.d.ts +0 -4
  250. package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +0 -18
  251. package/dist/components/Functional/BsAntdSula/index.d.ts +0 -1
  252. package/dist/components/Functional/DataImport/index.d.ts +0 -144
  253. package/dist/components/Functional/DataValidation/index.d.ts +0 -144
  254. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -13
  255. package/dist/components/Functional/QueryMutipleInput/index.d.ts +0 -6
  256. package/dist/components/Functional/SearchSelect/index.d.ts +0 -4
  257. package/dist/components/Functional/SearchSelect/utils.d.ts +0 -1
  258. package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -3
  259. package/dist/components/Solution/RuleComponent/Formula.d.ts +0 -9
  260. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +0 -12
  261. package/dist/components/Solution/RuleComponent/services.d.ts +0 -1
  262. package/dist/index.d.ts +0 -28
  263. package/dist/index.esm.js +0 -31379
  264. package/dist/plugin/TableColumnSetting/index.d.ts +0 -64
  265. package/dist/plugin/TableColumnSetting/utils.d.ts +0 -1
  266. package/dist/utils/CheckOneUser/index.d.ts +0 -2
  267. package/dist/utils/CustomLoginInfo.d.ts +0 -11
  268. package/dist/utils/LocalstorageUtils.d.ts +0 -17
  269. package/dist/utils/TableUtils.d.ts +0 -11
  270. package/dist/utils/checkUtils.d.ts +0 -3
  271. package/dist/utils/enumConfig.d.ts +0 -12
  272. package/dist/utils/index.d.ts +0 -4
  273. package/dist/utils/requestUtils.d.ts +0 -29
  274. package/dist/utils/utils.d.ts +0 -17
package/dist/index.js CHANGED
@@ -46,363 +46,363 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
46
46
  var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
47
47
  var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
48
48
 
49
- function _iterableToArrayLimit(r, l) {
50
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
51
- if (null != t) {
52
- var e,
53
- n,
54
- i,
55
- u,
56
- a = [],
57
- f = !0,
58
- o = !1;
49
+ function _iterableToArrayLimit(arr, i) {
50
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
51
+ if (null != _i) {
52
+ var _s,
53
+ _e,
54
+ _x,
55
+ _r,
56
+ _arr = [],
57
+ _n = !0,
58
+ _d = !1;
59
59
  try {
60
- if (i = (t = t.call(r)).next, 0 === l) {
61
- if (Object(t) !== t) return;
62
- f = !1;
63
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
64
- } catch (r) {
65
- o = !0, n = r;
60
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
61
+ if (Object(_i) !== _i) return;
62
+ _n = !1;
63
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
64
+ } catch (err) {
65
+ _d = !0, _e = err;
66
66
  } finally {
67
67
  try {
68
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
68
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
69
69
  } finally {
70
- if (o) throw n;
70
+ if (_d) throw _e;
71
71
  }
72
72
  }
73
- return a;
73
+ return _arr;
74
74
  }
75
75
  }
76
- function ownKeys(e, r) {
77
- var t = Object.keys(e);
76
+ function ownKeys(object, enumerableOnly) {
77
+ var keys = Object.keys(object);
78
78
  if (Object.getOwnPropertySymbols) {
79
- var o = Object.getOwnPropertySymbols(e);
80
- r && (o = o.filter(function (r) {
81
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
82
- })), t.push.apply(t, o);
79
+ var symbols = Object.getOwnPropertySymbols(object);
80
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
81
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
82
+ })), keys.push.apply(keys, symbols);
83
83
  }
84
- return t;
84
+ return keys;
85
85
  }
86
- function _objectSpread2(e) {
87
- for (var r = 1; r < arguments.length; r++) {
88
- var t = null != arguments[r] ? arguments[r] : {};
89
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
90
- _defineProperty(e, r, t[r]);
91
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
92
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
86
+ function _objectSpread2(target) {
87
+ for (var i = 1; i < arguments.length; i++) {
88
+ var source = null != arguments[i] ? arguments[i] : {};
89
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
90
+ _defineProperty(target, key, source[key]);
91
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
92
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
93
93
  });
94
94
  }
95
- return e;
95
+ return target;
96
96
  }
97
97
  function _regeneratorRuntime() {
98
98
  _regeneratorRuntime = function () {
99
- return e;
99
+ return exports;
100
100
  };
101
- var t,
102
- e = {},
103
- r = Object.prototype,
104
- n = r.hasOwnProperty,
105
- o = Object.defineProperty || function (t, e, r) {
106
- t[e] = r.value;
101
+ var exports = {},
102
+ Op = Object.prototype,
103
+ hasOwn = Op.hasOwnProperty,
104
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
105
+ obj[key] = desc.value;
107
106
  },
108
- i = "function" == typeof Symbol ? Symbol : {},
109
- a = i.iterator || "@@iterator",
110
- c = i.asyncIterator || "@@asyncIterator",
111
- u = i.toStringTag || "@@toStringTag";
112
- function define(t, e, r) {
113
- return Object.defineProperty(t, e, {
114
- value: r,
107
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
108
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
109
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
110
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
111
+ function define(obj, key, value) {
112
+ return Object.defineProperty(obj, key, {
113
+ value: value,
115
114
  enumerable: !0,
116
115
  configurable: !0,
117
116
  writable: !0
118
- }), t[e];
117
+ }), obj[key];
119
118
  }
120
119
  try {
121
120
  define({}, "");
122
- } catch (t) {
123
- define = function (t, e, r) {
124
- return t[e] = r;
121
+ } catch (err) {
122
+ define = function (obj, key, value) {
123
+ return obj[key] = value;
125
124
  };
126
125
  }
127
- function wrap(t, e, r, n) {
128
- var i = e && e.prototype instanceof Generator ? e : Generator,
129
- a = Object.create(i.prototype),
130
- c = new Context(n || []);
131
- return o(a, "_invoke", {
132
- value: makeInvokeMethod(t, r, c)
133
- }), a;
126
+ function wrap(innerFn, outerFn, self, tryLocsList) {
127
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
128
+ generator = Object.create(protoGenerator.prototype),
129
+ context = new Context(tryLocsList || []);
130
+ return defineProperty(generator, "_invoke", {
131
+ value: makeInvokeMethod(innerFn, self, context)
132
+ }), generator;
134
133
  }
135
- function tryCatch(t, e, r) {
134
+ function tryCatch(fn, obj, arg) {
136
135
  try {
137
136
  return {
138
137
  type: "normal",
139
- arg: t.call(e, r)
138
+ arg: fn.call(obj, arg)
140
139
  };
141
- } catch (t) {
140
+ } catch (err) {
142
141
  return {
143
142
  type: "throw",
144
- arg: t
143
+ arg: err
145
144
  };
146
145
  }
147
146
  }
148
- e.wrap = wrap;
149
- var h = "suspendedStart",
150
- l = "suspendedYield",
151
- f = "executing",
152
- s = "completed",
153
- y = {};
147
+ exports.wrap = wrap;
148
+ var ContinueSentinel = {};
154
149
  function Generator() {}
155
150
  function GeneratorFunction() {}
156
151
  function GeneratorFunctionPrototype() {}
157
- var p = {};
158
- define(p, a, function () {
152
+ var IteratorPrototype = {};
153
+ define(IteratorPrototype, iteratorSymbol, function () {
159
154
  return this;
160
155
  });
161
- var d = Object.getPrototypeOf,
162
- v = d && d(d(values([])));
163
- v && v !== r && n.call(v, a) && (p = v);
164
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
165
- function defineIteratorMethods(t) {
166
- ["next", "throw", "return"].forEach(function (e) {
167
- define(t, e, function (t) {
168
- return this._invoke(e, t);
156
+ var getProto = Object.getPrototypeOf,
157
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
158
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
159
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
160
+ function defineIteratorMethods(prototype) {
161
+ ["next", "throw", "return"].forEach(function (method) {
162
+ define(prototype, method, function (arg) {
163
+ return this._invoke(method, arg);
169
164
  });
170
165
  });
171
166
  }
172
- function AsyncIterator(t, e) {
173
- function invoke(r, o, i, a) {
174
- var c = tryCatch(t[r], t, o);
175
- if ("throw" !== c.type) {
176
- var u = c.arg,
177
- h = u.value;
178
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
179
- invoke("next", t, i, a);
180
- }, function (t) {
181
- invoke("throw", t, i, a);
182
- }) : e.resolve(h).then(function (t) {
183
- u.value = t, i(u);
184
- }, function (t) {
185
- return invoke("throw", t, i, a);
167
+ function AsyncIterator(generator, PromiseImpl) {
168
+ function invoke(method, arg, resolve, reject) {
169
+ var record = tryCatch(generator[method], generator, arg);
170
+ if ("throw" !== record.type) {
171
+ var result = record.arg,
172
+ value = result.value;
173
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
174
+ invoke("next", value, resolve, reject);
175
+ }, function (err) {
176
+ invoke("throw", err, resolve, reject);
177
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
178
+ result.value = unwrapped, resolve(result);
179
+ }, function (error) {
180
+ return invoke("throw", error, resolve, reject);
186
181
  });
187
182
  }
188
- a(c.arg);
183
+ reject(record.arg);
189
184
  }
190
- var r;
191
- o(this, "_invoke", {
192
- value: function (t, n) {
185
+ var previousPromise;
186
+ defineProperty(this, "_invoke", {
187
+ value: function (method, arg) {
193
188
  function callInvokeWithMethodAndArg() {
194
- return new e(function (e, r) {
195
- invoke(t, n, e, r);
189
+ return new PromiseImpl(function (resolve, reject) {
190
+ invoke(method, arg, resolve, reject);
196
191
  });
197
192
  }
198
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
193
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
199
194
  }
200
195
  });
201
196
  }
202
- function makeInvokeMethod(e, r, n) {
203
- var o = h;
204
- return function (i, a) {
205
- if (o === f) throw new Error("Generator is already running");
206
- if (o === s) {
207
- if ("throw" === i) throw a;
208
- return {
209
- value: t,
210
- done: !0
211
- };
212
- }
213
- for (n.method = i, n.arg = a;;) {
214
- var c = n.delegate;
215
- if (c) {
216
- var u = maybeInvokeDelegate(c, n);
217
- if (u) {
218
- if (u === y) continue;
219
- return u;
197
+ function makeInvokeMethod(innerFn, self, context) {
198
+ var state = "suspendedStart";
199
+ return function (method, arg) {
200
+ if ("executing" === state) throw new Error("Generator is already running");
201
+ if ("completed" === state) {
202
+ if ("throw" === method) throw arg;
203
+ return doneResult();
204
+ }
205
+ for (context.method = method, context.arg = arg;;) {
206
+ var delegate = context.delegate;
207
+ if (delegate) {
208
+ var delegateResult = maybeInvokeDelegate(delegate, context);
209
+ if (delegateResult) {
210
+ if (delegateResult === ContinueSentinel) continue;
211
+ return delegateResult;
220
212
  }
221
213
  }
222
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
223
- if (o === h) throw o = s, n.arg;
224
- n.dispatchException(n.arg);
225
- } else "return" === n.method && n.abrupt("return", n.arg);
226
- o = f;
227
- var p = tryCatch(e, r, n);
228
- if ("normal" === p.type) {
229
- if (o = n.done ? s : l, p.arg === y) continue;
214
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
215
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
216
+ context.dispatchException(context.arg);
217
+ } else "return" === context.method && context.abrupt("return", context.arg);
218
+ state = "executing";
219
+ var record = tryCatch(innerFn, self, context);
220
+ if ("normal" === record.type) {
221
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
230
222
  return {
231
- value: p.arg,
232
- done: n.done
223
+ value: record.arg,
224
+ done: context.done
233
225
  };
234
226
  }
235
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
227
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
236
228
  }
237
229
  };
238
230
  }
239
- function maybeInvokeDelegate(e, r) {
240
- var n = r.method,
241
- o = e.iterator[n];
242
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
243
- var i = tryCatch(o, e.iterator, r.arg);
244
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
245
- var a = i.arg;
246
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
247
- }
248
- function pushTryEntry(t) {
249
- var e = {
250
- tryLoc: t[0]
231
+ function maybeInvokeDelegate(delegate, context) {
232
+ var methodName = context.method,
233
+ method = delegate.iterator[methodName];
234
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
235
+ var record = tryCatch(method, delegate.iterator, context.arg);
236
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
237
+ var info = record.arg;
238
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
239
+ }
240
+ function pushTryEntry(locs) {
241
+ var entry = {
242
+ tryLoc: locs[0]
251
243
  };
252
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
244
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
253
245
  }
254
- function resetTryEntry(t) {
255
- var e = t.completion || {};
256
- e.type = "normal", delete e.arg, t.completion = e;
246
+ function resetTryEntry(entry) {
247
+ var record = entry.completion || {};
248
+ record.type = "normal", delete record.arg, entry.completion = record;
257
249
  }
258
- function Context(t) {
250
+ function Context(tryLocsList) {
259
251
  this.tryEntries = [{
260
252
  tryLoc: "root"
261
- }], t.forEach(pushTryEntry, this), this.reset(!0);
262
- }
263
- function values(e) {
264
- if (e || "" === e) {
265
- var r = e[a];
266
- if (r) return r.call(e);
267
- if ("function" == typeof e.next) return e;
268
- if (!isNaN(e.length)) {
269
- var o = -1,
270
- i = function next() {
271
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
272
- return next.value = t, next.done = !0, next;
253
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
254
+ }
255
+ function values(iterable) {
256
+ if (iterable) {
257
+ var iteratorMethod = iterable[iteratorSymbol];
258
+ if (iteratorMethod) return iteratorMethod.call(iterable);
259
+ if ("function" == typeof iterable.next) return iterable;
260
+ if (!isNaN(iterable.length)) {
261
+ var i = -1,
262
+ next = function next() {
263
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
264
+ return next.value = undefined, next.done = !0, next;
273
265
  };
274
- return i.next = i;
266
+ return next.next = next;
275
267
  }
276
268
  }
277
- throw new TypeError(typeof e + " is not iterable");
269
+ return {
270
+ next: doneResult
271
+ };
272
+ }
273
+ function doneResult() {
274
+ return {
275
+ value: undefined,
276
+ done: !0
277
+ };
278
278
  }
279
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
279
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
280
280
  value: GeneratorFunctionPrototype,
281
281
  configurable: !0
282
- }), o(GeneratorFunctionPrototype, "constructor", {
282
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
283
283
  value: GeneratorFunction,
284
284
  configurable: !0
285
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
286
- var e = "function" == typeof t && t.constructor;
287
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
288
- }, e.mark = function (t) {
289
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
290
- }, e.awrap = function (t) {
285
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
286
+ var ctor = "function" == typeof genFun && genFun.constructor;
287
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
288
+ }, exports.mark = function (genFun) {
289
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
290
+ }, exports.awrap = function (arg) {
291
291
  return {
292
- __await: t
292
+ __await: arg
293
293
  };
294
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
294
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
295
295
  return this;
296
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
297
- void 0 === i && (i = Promise);
298
- var a = new AsyncIterator(wrap(t, r, n, o), i);
299
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
300
- return t.done ? t.value : a.next();
296
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
297
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
298
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
299
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
300
+ return result.done ? result.value : iter.next();
301
301
  });
302
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
302
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
303
303
  return this;
304
- }), define(g, "toString", function () {
304
+ }), define(Gp, "toString", function () {
305
305
  return "[object Generator]";
306
- }), e.keys = function (t) {
307
- var e = Object(t),
308
- r = [];
309
- for (var n in e) r.push(n);
310
- return r.reverse(), function next() {
311
- for (; r.length;) {
312
- var t = r.pop();
313
- if (t in e) return next.value = t, next.done = !1, next;
306
+ }), exports.keys = function (val) {
307
+ var object = Object(val),
308
+ keys = [];
309
+ for (var key in object) keys.push(key);
310
+ return keys.reverse(), function next() {
311
+ for (; keys.length;) {
312
+ var key = keys.pop();
313
+ if (key in object) return next.value = key, next.done = !1, next;
314
314
  }
315
315
  return next.done = !0, next;
316
316
  };
317
- }, e.values = values, Context.prototype = {
317
+ }, exports.values = values, Context.prototype = {
318
318
  constructor: Context,
319
- reset: function (e) {
320
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
319
+ reset: function (skipTempReset) {
320
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
321
321
  },
322
322
  stop: function () {
323
323
  this.done = !0;
324
- var t = this.tryEntries[0].completion;
325
- if ("throw" === t.type) throw t.arg;
324
+ var rootRecord = this.tryEntries[0].completion;
325
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
326
326
  return this.rval;
327
327
  },
328
- dispatchException: function (e) {
329
- if (this.done) throw e;
330
- var r = this;
331
- function handle(n, o) {
332
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
333
- }
334
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
335
- var i = this.tryEntries[o],
336
- a = i.completion;
337
- if ("root" === i.tryLoc) return handle("end");
338
- if (i.tryLoc <= this.prev) {
339
- var c = n.call(i, "catchLoc"),
340
- u = n.call(i, "finallyLoc");
341
- if (c && u) {
342
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
343
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
344
- } else if (c) {
345
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
328
+ dispatchException: function (exception) {
329
+ if (this.done) throw exception;
330
+ var context = this;
331
+ function handle(loc, caught) {
332
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
333
+ }
334
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
+ var entry = this.tryEntries[i],
336
+ record = entry.completion;
337
+ if ("root" === entry.tryLoc) return handle("end");
338
+ if (entry.tryLoc <= this.prev) {
339
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
340
+ hasFinally = hasOwn.call(entry, "finallyLoc");
341
+ if (hasCatch && hasFinally) {
342
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
343
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
344
+ } else if (hasCatch) {
345
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
346
346
  } else {
347
- if (!u) throw new Error("try statement without catch or finally");
348
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
347
+ if (!hasFinally) throw new Error("try statement without catch or finally");
348
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
349
349
  }
350
350
  }
351
351
  }
352
352
  },
353
- abrupt: function (t, e) {
354
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
355
- var o = this.tryEntries[r];
356
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
357
- var i = o;
353
+ abrupt: function (type, arg) {
354
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
355
+ var entry = this.tryEntries[i];
356
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
357
+ var finallyEntry = entry;
358
358
  break;
359
359
  }
360
360
  }
361
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
362
- var a = i ? i.completion : {};
363
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
361
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
362
+ var record = finallyEntry ? finallyEntry.completion : {};
363
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
364
364
  },
365
- complete: function (t, e) {
366
- if ("throw" === t.type) throw t.arg;
367
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
365
+ complete: function (record, afterLoc) {
366
+ if ("throw" === record.type) throw record.arg;
367
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
368
368
  },
369
- finish: function (t) {
370
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
371
- var r = this.tryEntries[e];
372
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
369
+ finish: function (finallyLoc) {
370
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
371
+ var entry = this.tryEntries[i];
372
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
373
373
  }
374
374
  },
375
- catch: function (t) {
376
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
377
- var r = this.tryEntries[e];
378
- if (r.tryLoc === t) {
379
- var n = r.completion;
380
- if ("throw" === n.type) {
381
- var o = n.arg;
382
- resetTryEntry(r);
375
+ catch: function (tryLoc) {
376
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
377
+ var entry = this.tryEntries[i];
378
+ if (entry.tryLoc === tryLoc) {
379
+ var record = entry.completion;
380
+ if ("throw" === record.type) {
381
+ var thrown = record.arg;
382
+ resetTryEntry(entry);
383
383
  }
384
- return o;
384
+ return thrown;
385
385
  }
386
386
  }
387
387
  throw new Error("illegal catch attempt");
388
388
  },
389
- delegateYield: function (e, r, n) {
389
+ delegateYield: function (iterable, resultName, nextLoc) {
390
390
  return this.delegate = {
391
- iterator: values(e),
392
- resultName: r,
393
- nextLoc: n
394
- }, "next" === this.method && (this.arg = t), y;
391
+ iterator: values(iterable),
392
+ resultName: resultName,
393
+ nextLoc: nextLoc
394
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
395
395
  }
396
- }, e;
396
+ }, exports;
397
397
  }
398
- function _typeof(o) {
398
+ function _typeof(obj) {
399
399
  "@babel/helpers - typeof";
400
400
 
401
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
402
- return typeof o;
403
- } : function (o) {
404
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
405
- }, _typeof(o);
401
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
402
+ return typeof obj;
403
+ } : function (obj) {
404
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
405
+ }, _typeof(obj);
406
406
  }
407
407
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
408
408
  try {
@@ -8902,6 +8902,76 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8902
8902
  }]
8903
8903
  }, modalTableBusProps);
8904
8904
  }
8905
+ // 销售渠道选择器
8906
+ if (type === 'market-channel') {
8907
+ requestConfig = _objectSpread2({
8908
+ url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
8909
+ filter: 'qp-name,code-orGroup,like',
8910
+ mappingTextField: 'name',
8911
+ mappingTextShowKeyField: 'code',
8912
+ mappingValueField: 'code',
8913
+ otherParams: {
8914
+ 'qp-type-eq': 1,
8915
+ 'qp-isMain-eq': 1,
8916
+ 'qp-status-eq': 10,
8917
+ sorter: 'desc-id'
8918
+ },
8919
+ sourceName: 'marketChannelCode'
8920
+ }, requestConfigProp);
8921
+ tableSearchForm = [{
8922
+ name: 'qp-name-like',
8923
+ label: '销售渠道名称'
8924
+ }, {
8925
+ name: 'qp-code-like',
8926
+ label: '销售渠道编码'
8927
+ }, {
8928
+ name: 'qp-salesOrgCode-in',
8929
+ type: 'select',
8930
+ label: '所属销售组织',
8931
+ field: {
8932
+ type: 'select',
8933
+ props: {
8934
+ mode: 'multiple',
8935
+ notFoundContent: '暂无数据',
8936
+ allowClear: true,
8937
+ showSearch: true,
8938
+ showArrow: true,
8939
+ maxTagCount: 1,
8940
+ optionFilterProp: 'children',
8941
+ filterOption: function filterOption(input, option) {
8942
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8943
+ }
8944
+ }
8945
+ }
8946
+ }];
8947
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getTree/sales-organizational-view"), {
8948
+ 'qp-employeeCode-eq': getEmployeeCode(),
8949
+ 'qp-realOrg-eq': true,
8950
+ 'qp-status-eq': 10
8951
+ })]).then(function (x) {
8952
+ formatSource(x, 0, 2, tableSearchForm);
8953
+ });
8954
+ modalTableProps = _objectSpread2({
8955
+ modalTableTitle: '选择销售渠道',
8956
+ tableSearchForm: tableSearchForm,
8957
+ tableColumns: [{
8958
+ title: '销售渠道编码',
8959
+ dataIndex: 'code'
8960
+ }, {
8961
+ title: '销售渠道名称',
8962
+ dataIndex: 'name',
8963
+ render: function render(text) {
8964
+ return handleTextOverflow(text);
8965
+ }
8966
+ }, {
8967
+ title: '所属销售组织',
8968
+ dataIndex: 'salesOrgCodeName',
8969
+ render: function render(text) {
8970
+ return handleTextOverflow(text);
8971
+ }
8972
+ }]
8973
+ }, modalTableBusProps);
8974
+ }
8905
8975
  return {
8906
8976
  modalTableProps: modalTableProps,
8907
8977
  requestConfig: requestConfig,
@@ -10210,12 +10280,14 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
10210
10280
  _remoteSource$initial = remoteSource.initialParams,
10211
10281
  initialParams = _remoteSource$initial === void 0 ? {} : _remoteSource$initial,
10212
10282
  _remoteSource$treeChi = remoteSource.treeChildrenRoom,
10213
- treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi;
10283
+ treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
10284
+ _remoteSource$special = remoteSource.specialBracket,
10285
+ specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
10214
10286
  var mapSearchTree = function mapSearchTree(treeDataItem) {
10215
10287
  var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
10216
10288
  var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
10217
10289
  return {
10218
- title: treeDataItem[resKeyValue[1]],
10290
+ title: specialBracket ? "\u3010".concat(treeDataItem[resKeyValue[0]], "\u3011").concat(treeDataItem[resKeyValue[1]]) : treeDataItem[resKeyValue[1]],
10219
10291
  key: treeDataItem[resKeyValue[0]],
10220
10292
  value: treeDataItem[resKeyValue[0]],
10221
10293
  parentId: treeDataItem.parent,
@@ -14139,24 +14211,23 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
14139
14211
  var setMenuTreeData = function setMenuTreeData(routesData) {
14140
14212
  var authButton = localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES) ? JSON.parse(localStorage.getItem(ENUM.BROWSER_CACHE.MAIN_AUTH_CODES)) : [];
14141
14213
  var _loop = function _loop(i) {
14142
- if (routesData[i].hideInMenu) {
14143
- routesData.splice(i, 1);
14144
- return 0; // continue
14145
- }
14146
- if (routesData[i].code && authButton.every(function (item) {
14147
- return routesData[i].code != item;
14148
- })) {
14149
- routesData.splice(i, 1);
14150
- return 0; // continue
14151
- }
14152
- if (routesData[i].children) {
14153
- setMenuTreeData(routesData[i].children);
14154
- }
14155
- },
14156
- _ret;
14214
+ if (routesData[i].hideInMenu) {
14215
+ routesData.splice(i, 1);
14216
+ return "continue";
14217
+ }
14218
+ if (routesData[i].code && authButton.every(function (item) {
14219
+ return routesData[i].code != item;
14220
+ })) {
14221
+ routesData.splice(i, 1);
14222
+ return "continue";
14223
+ }
14224
+ if (routesData[i].children) {
14225
+ setMenuTreeData(routesData[i].children);
14226
+ }
14227
+ };
14157
14228
  for (var i = routesData.length - 1; i >= 0; i--) {
14158
- _ret = _loop(i);
14159
- if (_ret === 0) continue;
14229
+ var _ret = _loop(i);
14230
+ if (_ret === "continue") continue;
14160
14231
  }
14161
14232
  };
14162
14233
  var setLoginOutPath = function setLoginOutPath() {