@kne-components/components-core 0.1.71 → 0.1.72

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 (161) hide show
  1. package/build/asset-manifest.json +118 -118
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/1151.286e6c5a.chunk.css +2 -0
  6. package/build/static/css/{1151.a4ba8032.chunk.css.map → 1151.286e6c5a.chunk.css.map} +1 -1
  7. package/build/static/css/1153.8975ce3f.chunk.css +2 -0
  8. package/build/static/css/{1153.d1082b1a.chunk.css.map → 1153.8975ce3f.chunk.css.map} +1 -1
  9. package/build/static/css/1454.e79c64ce.chunk.css +2 -0
  10. package/build/static/css/{1454.8aac0963.chunk.css.map → 1454.e79c64ce.chunk.css.map} +1 -1
  11. package/build/static/css/1554.537d0448.chunk.css +2 -0
  12. package/build/static/css/{1554.0dcfbc96.chunk.css.map → 1554.537d0448.chunk.css.map} +1 -1
  13. package/build/static/css/{2503.915f5f12.chunk.css → 2503.9938ffd1.chunk.css} +2 -2
  14. package/build/static/css/{2503.915f5f12.chunk.css.map → 2503.9938ffd1.chunk.css.map} +1 -1
  15. package/build/static/css/{2517.b161c8b3.chunk.css → 2517.551293f0.chunk.css} +2 -2
  16. package/build/static/css/{2517.b161c8b3.chunk.css.map → 2517.551293f0.chunk.css.map} +1 -1
  17. package/build/static/css/2716.1e49efde.chunk.css +2 -0
  18. package/build/static/css/{2716.5c4a1d81.chunk.css.map → 2716.1e49efde.chunk.css.map} +1 -1
  19. package/build/static/css/{2730.8db299e9.chunk.css → 2730.d17fb053.chunk.css} +2 -2
  20. package/build/static/css/{2730.8db299e9.chunk.css.map → 2730.d17fb053.chunk.css.map} +1 -1
  21. package/build/static/css/{289.2b5a215a.chunk.css → 289.6ce1d6d9.chunk.css} +2 -2
  22. package/build/static/css/{289.2b5a215a.chunk.css.map → 289.6ce1d6d9.chunk.css.map} +1 -1
  23. package/build/static/css/2999.05a68fd0.chunk.css +2 -0
  24. package/build/static/css/{2999.abe4e323.chunk.css.map → 2999.05a68fd0.chunk.css.map} +1 -1
  25. package/build/static/css/3040.b058302c.chunk.css +2 -0
  26. package/build/static/css/{3040.30a4e3e0.chunk.css.map → 3040.b058302c.chunk.css.map} +1 -1
  27. package/build/static/css/3333.221acea9.chunk.css +2 -0
  28. package/build/static/css/{3333.c5c05928.chunk.css.map → 3333.221acea9.chunk.css.map} +1 -1
  29. package/build/static/css/3801.86e21e2d.chunk.css +2 -0
  30. package/build/static/css/{3801.5420d459.chunk.css.map → 3801.86e21e2d.chunk.css.map} +1 -1
  31. package/build/static/css/{3843.821061a0.chunk.css → 3843.3211b057.chunk.css} +2 -2
  32. package/build/static/css/{3843.821061a0.chunk.css.map → 3843.3211b057.chunk.css.map} +1 -1
  33. package/build/static/css/4666.85254a0f.chunk.css +2 -0
  34. package/build/static/css/{4666.8ef147ae.chunk.css.map → 4666.85254a0f.chunk.css.map} +1 -1
  35. package/build/static/css/5600.0760bc2b.chunk.css +2 -0
  36. package/build/static/css/{5600.9abbcf07.chunk.css.map → 5600.0760bc2b.chunk.css.map} +1 -1
  37. package/build/static/css/5846.ba892c69.chunk.css +2 -0
  38. package/build/static/css/{5846.f70da470.chunk.css.map → 5846.ba892c69.chunk.css.map} +1 -1
  39. package/build/static/css/5868.8e8565da.chunk.css +2 -0
  40. package/build/static/css/{5868.1293f01d.chunk.css.map → 5868.8e8565da.chunk.css.map} +1 -1
  41. package/build/static/css/{5996.38d297f1.chunk.css → 5996.ba7b8a1d.chunk.css} +2 -2
  42. package/build/static/css/{5996.38d297f1.chunk.css.map → 5996.ba7b8a1d.chunk.css.map} +1 -1
  43. package/build/static/css/6779.e6c61849.chunk.css +2 -0
  44. package/build/static/css/{6779.3d6e3374.chunk.css.map → 6779.e6c61849.chunk.css.map} +1 -1
  45. package/build/static/css/7227.3363bbfd.chunk.css +2 -0
  46. package/build/static/css/{7227.008e44fc.chunk.css.map → 7227.3363bbfd.chunk.css.map} +1 -1
  47. package/build/static/css/8148.0d2e873c.chunk.css +2 -0
  48. package/build/static/css/{8148.26e0b9ea.chunk.css.map → 8148.0d2e873c.chunk.css.map} +1 -1
  49. package/build/static/css/8393.1c1529aa.chunk.css +2 -0
  50. package/build/static/css/{8393.48b9cc17.chunk.css.map → 8393.1c1529aa.chunk.css.map} +1 -1
  51. package/build/static/css/{8725.c1d260a2.chunk.css → 8725.d828e824.chunk.css} +2 -2
  52. package/build/static/css/{8725.c1d260a2.chunk.css.map → 8725.d828e824.chunk.css.map} +1 -1
  53. package/build/static/css/9053.2aea4287.chunk.css +2 -0
  54. package/build/static/css/{9053.36d9abfc.chunk.css.map → 9053.2aea4287.chunk.css.map} +1 -1
  55. package/build/static/css/931.97b829da.chunk.css +2 -0
  56. package/build/static/css/{931.74d85d63.chunk.css.map → 931.97b829da.chunk.css.map} +1 -1
  57. package/build/static/css/{9449.6cfac89d.chunk.css → 9449.8226e0b4.chunk.css} +2 -2
  58. package/build/static/css/{9449.6cfac89d.chunk.css.map → 9449.8226e0b4.chunk.css.map} +1 -1
  59. package/build/static/css/9689.6d4bc8d9.chunk.css +2 -0
  60. package/build/static/css/{9689.a7b572be.chunk.css.map → 9689.6d4bc8d9.chunk.css.map} +1 -1
  61. package/build/static/js/{1153.4edd3b5a.chunk.js → 1153.1f93c557.chunk.js} +3 -3
  62. package/build/static/js/{1153.4edd3b5a.chunk.js.map → 1153.1f93c557.chunk.js.map} +1 -1
  63. package/build/static/js/1454.094ba570.chunk.js +3 -0
  64. package/build/static/js/{1454.51669a88.chunk.js.map → 1454.094ba570.chunk.js.map} +1 -1
  65. package/build/static/js/1554.f1c12ddf.chunk.js +3 -0
  66. package/build/static/js/{1554.967455ab.chunk.js.map → 1554.f1c12ddf.chunk.js.map} +1 -1
  67. package/build/static/js/2503.ede77e35.chunk.js +2 -0
  68. package/build/static/js/{2503.b48318e5.chunk.js.map → 2503.ede77e35.chunk.js.map} +1 -1
  69. package/build/static/js/{2517.9ba568e5.chunk.js → 2517.a108d95b.chunk.js} +2 -2
  70. package/build/static/js/{2517.9ba568e5.chunk.js.map → 2517.a108d95b.chunk.js.map} +1 -1
  71. package/build/static/js/{2716.4c520e3c.chunk.js → 2716.09011697.chunk.js} +3 -3
  72. package/build/static/js/{2716.4c520e3c.chunk.js.map → 2716.09011697.chunk.js.map} +1 -1
  73. package/build/static/js/{2730.7c843784.chunk.js → 2730.491b8734.chunk.js} +2 -2
  74. package/build/static/js/{2730.7c843784.chunk.js.map → 2730.491b8734.chunk.js.map} +1 -1
  75. package/build/static/js/{289.350024a9.chunk.js → 289.2f1c9990.chunk.js} +2 -2
  76. package/build/static/js/{289.350024a9.chunk.js.map → 289.2f1c9990.chunk.js.map} +1 -1
  77. package/build/static/js/2999.719b84a8.chunk.js +2 -0
  78. package/build/static/js/{2999.637d07e7.chunk.js.map → 2999.719b84a8.chunk.js.map} +1 -1
  79. package/build/static/js/{3040.7bbacd65.chunk.js → 3040.be5efb45.chunk.js} +2 -2
  80. package/build/static/js/3040.be5efb45.chunk.js.map +1 -0
  81. package/build/static/js/{3333.f55aede1.chunk.js → 3333.40f9eb83.chunk.js} +2 -2
  82. package/build/static/js/{3333.f55aede1.chunk.js.map → 3333.40f9eb83.chunk.js.map} +1 -1
  83. package/build/static/js/36.b1211767.chunk.js +2 -0
  84. package/build/static/js/36.b1211767.chunk.js.map +1 -0
  85. package/build/static/js/3801.2ea3b884.chunk.js +2 -0
  86. package/build/static/js/{3801.8b7d737b.chunk.js.map → 3801.2ea3b884.chunk.js.map} +1 -1
  87. package/build/static/js/{3843.e071c30f.chunk.js → 3843.d5d0295a.chunk.js} +2 -2
  88. package/build/static/js/{3843.e071c30f.chunk.js.map → 3843.d5d0295a.chunk.js.map} +1 -1
  89. package/build/static/js/{4666.25d615d0.chunk.js → 4666.d5c72bfb.chunk.js} +3 -3
  90. package/build/static/js/{4666.25d615d0.chunk.js.map → 4666.d5c72bfb.chunk.js.map} +1 -1
  91. package/build/static/js/{5009.f819f46a.chunk.js → 5009.20c7aeda.chunk.js} +2 -2
  92. package/build/static/js/{5009.f819f46a.chunk.js.map → 5009.20c7aeda.chunk.js.map} +1 -1
  93. package/build/static/js/5600.70aadaa2.chunk.js +2 -0
  94. package/build/static/js/{5600.aff3f99a.chunk.js.map → 5600.70aadaa2.chunk.js.map} +1 -1
  95. package/build/static/js/5846.e5459fd8.chunk.js +2 -0
  96. package/build/static/js/{5846.b0ad9822.chunk.js.map → 5846.e5459fd8.chunk.js.map} +1 -1
  97. package/build/static/js/{5868.176927bd.chunk.js → 5868.882a38a3.chunk.js} +2 -2
  98. package/build/static/js/{5868.176927bd.chunk.js.map → 5868.882a38a3.chunk.js.map} +1 -1
  99. package/build/static/js/{5996.79be302a.chunk.js → 5996.92f04a8c.chunk.js} +2 -2
  100. package/build/static/js/{5996.79be302a.chunk.js.map → 5996.92f04a8c.chunk.js.map} +1 -1
  101. package/build/static/js/{6779.d5eca385.chunk.js → 6779.647ed03d.chunk.js} +2 -2
  102. package/build/static/js/{6779.d5eca385.chunk.js.map → 6779.647ed03d.chunk.js.map} +1 -1
  103. package/build/static/js/{7227.480a8c8c.chunk.js → 7227.3f532626.chunk.js} +3 -3
  104. package/build/static/js/{7227.480a8c8c.chunk.js.map → 7227.3f532626.chunk.js.map} +1 -1
  105. package/build/static/js/{7777.738469e4.chunk.js → 7777.deb7aab5.chunk.js} +2 -2
  106. package/build/static/js/{7777.738469e4.chunk.js.map → 7777.deb7aab5.chunk.js.map} +1 -1
  107. package/build/static/js/{8148.00c2bef0.chunk.js → 8148.be7a3bdf.chunk.js} +3 -3
  108. package/build/static/js/{8148.00c2bef0.chunk.js.map → 8148.be7a3bdf.chunk.js.map} +1 -1
  109. package/build/static/js/{8393.107c1ed7.chunk.js → 8393.c96a26be.chunk.js} +2 -2
  110. package/build/static/js/8393.c96a26be.chunk.js.map +1 -0
  111. package/build/static/js/{8725.6c15dcec.chunk.js → 8725.86a452ba.chunk.js} +2 -2
  112. package/build/static/js/{8725.6c15dcec.chunk.js.map → 8725.86a452ba.chunk.js.map} +1 -1
  113. package/build/static/js/{9053.c4929ae2.chunk.js → 9053.1e03fb5f.chunk.js} +3 -3
  114. package/build/static/js/{9053.c4929ae2.chunk.js.map → 9053.1e03fb5f.chunk.js.map} +1 -1
  115. package/build/static/js/{931.176943b9.chunk.js → 931.3ff56e68.chunk.js} +2 -2
  116. package/build/static/js/{931.176943b9.chunk.js.map → 931.3ff56e68.chunk.js.map} +1 -1
  117. package/build/static/js/9449.67f8a74a.chunk.js +2 -0
  118. package/build/static/js/{9449.8ffe7b33.chunk.js.map → 9449.67f8a74a.chunk.js.map} +1 -1
  119. package/build/static/js/{main.f16143b9.js → main.95bbfdfa.js} +2 -2
  120. package/build/static/js/{main.f16143b9.js.map → main.95bbfdfa.js.map} +1 -1
  121. package/package.json +1 -1
  122. package/build/static/css/1151.a4ba8032.chunk.css +0 -2
  123. package/build/static/css/1153.d1082b1a.chunk.css +0 -2
  124. package/build/static/css/1454.8aac0963.chunk.css +0 -2
  125. package/build/static/css/1554.0dcfbc96.chunk.css +0 -2
  126. package/build/static/css/2716.5c4a1d81.chunk.css +0 -2
  127. package/build/static/css/2999.abe4e323.chunk.css +0 -2
  128. package/build/static/css/3040.30a4e3e0.chunk.css +0 -2
  129. package/build/static/css/3333.c5c05928.chunk.css +0 -2
  130. package/build/static/css/3801.5420d459.chunk.css +0 -2
  131. package/build/static/css/4666.8ef147ae.chunk.css +0 -2
  132. package/build/static/css/5600.9abbcf07.chunk.css +0 -2
  133. package/build/static/css/5846.f70da470.chunk.css +0 -2
  134. package/build/static/css/5868.1293f01d.chunk.css +0 -2
  135. package/build/static/css/6779.3d6e3374.chunk.css +0 -2
  136. package/build/static/css/7227.008e44fc.chunk.css +0 -2
  137. package/build/static/css/8148.26e0b9ea.chunk.css +0 -2
  138. package/build/static/css/8393.48b9cc17.chunk.css +0 -2
  139. package/build/static/css/9053.36d9abfc.chunk.css +0 -2
  140. package/build/static/css/931.74d85d63.chunk.css +0 -2
  141. package/build/static/css/9689.a7b572be.chunk.css +0 -2
  142. package/build/static/js/1454.51669a88.chunk.js +0 -3
  143. package/build/static/js/1554.967455ab.chunk.js +0 -3
  144. package/build/static/js/2503.b48318e5.chunk.js +0 -2
  145. package/build/static/js/2999.637d07e7.chunk.js +0 -2
  146. package/build/static/js/3040.7bbacd65.chunk.js.map +0 -1
  147. package/build/static/js/36.683136ba.chunk.js +0 -2
  148. package/build/static/js/36.683136ba.chunk.js.map +0 -1
  149. package/build/static/js/3801.8b7d737b.chunk.js +0 -2
  150. package/build/static/js/5600.aff3f99a.chunk.js +0 -2
  151. package/build/static/js/5846.b0ad9822.chunk.js +0 -2
  152. package/build/static/js/8393.107c1ed7.chunk.js.map +0 -1
  153. package/build/static/js/9449.8ffe7b33.chunk.js +0 -2
  154. /package/build/static/js/{1153.4edd3b5a.chunk.js.LICENSE.txt → 1153.1f93c557.chunk.js.LICENSE.txt} +0 -0
  155. /package/build/static/js/{1454.51669a88.chunk.js.LICENSE.txt → 1454.094ba570.chunk.js.LICENSE.txt} +0 -0
  156. /package/build/static/js/{1554.967455ab.chunk.js.LICENSE.txt → 1554.f1c12ddf.chunk.js.LICENSE.txt} +0 -0
  157. /package/build/static/js/{2716.4c520e3c.chunk.js.LICENSE.txt → 2716.09011697.chunk.js.LICENSE.txt} +0 -0
  158. /package/build/static/js/{4666.25d615d0.chunk.js.LICENSE.txt → 4666.d5c72bfb.chunk.js.LICENSE.txt} +0 -0
  159. /package/build/static/js/{7227.480a8c8c.chunk.js.LICENSE.txt → 7227.3f532626.chunk.js.LICENSE.txt} +0 -0
  160. /package/build/static/js/{8148.00c2bef0.chunk.js.LICENSE.txt → 8148.be7a3bdf.chunk.js.LICENSE.txt} +0 -0
  161. /package/build/static/js/{9053.c4929ae2.chunk.js.LICENSE.txt → 9053.1e03fb5f.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"static/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,EAEV,IAAIkC,EAAQlC,EAAS,EAOrB,YANkB6C,IAAdH,IACFR,EAAQoB,EAAUZ,GAClBR,EAAQQ,EAAY,EAChBa,EAAUvD,EAASkC,EAAO,GAC1BwB,EAAUxB,EAAOlC,EAAS,IAEzBqD,EAAcvB,EAAOkB,EAAaP,EAAW,GAAIP,GAAO,EACjE,C,kBCxDA,IAAI0B,EAAkBxB,EAAQ,OAC1ByB,EAAmBzB,EAAQ,OAM3B0B,EAHcjG,OAAOkG,UAGQD,eAyB7BE,EAAUH,GAAiB,SAASjB,EAAQlB,EAAOY,GACjDwB,EAAeG,KAAKrB,EAAQN,GAC9BM,EAAON,GAAK4B,KAAKxC,GAEjBkC,EAAgBhB,EAAQN,EAAK,CAACZ,GAElC,IAEAE,EAAOC,QAAUmC,C,kBCxCjB,IAAIG,EAAa/B,EAAQ,OACrBgC,EAAehC,EAAQ,OAoC3BR,EAAOC,QALP,SAAkBH,GAChB,MAAuB,iBAATA,GACX0C,EAAa1C,IA9BF,mBA8BYyC,EAAWzC,EACvC,C,kBCnCA,IAAI2C,EAAUjC,EAAQ,MAkCtBR,EAAOC,QAJP,SAAayC,EAAQC,EAAM7C,GACzB,OAAiB,MAAV4C,EAAiBA,EAASD,EAAQC,EAAQC,EAAM7C,EACzD,C,kBChCA,IAAIsB,EAAeZ,EAAQ,MACvBoC,EAAUpC,EAAQ,OA+BtBR,EAAOC,QANP,SAAeC,EAAOE,GACpB,OAAQF,GAASA,EAAM9B,OACnBwE,EAAQ1C,EAAOkB,EAAahB,EAAU,IACtC,CACN,C,kBC9BA,IAAIyC,EAAWrC,EAAQ,OAmCvBR,EAAOC,QAPP,SAAmBH,GACjB,IAAIkB,EAAS6B,EAAS/C,GAClBgD,EAAY9B,EAAS,EAEzB,OAAOA,IAAWA,EAAU8B,EAAY9B,EAAS8B,EAAY9B,EAAU,CACzE,C","sources":["webpack://@kne-components/components-core/./src/common/components/Scroller/style.module.scss?7480","common/components/Scroller/index.js","components/Features/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_baseSum.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/findLastIndex.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/isNumber.js","../node_modules/lodash/set.js","../node_modules/lodash/sumBy.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"scroller\":\"style_scroller__EfuqR__RbYOD\",\"scroller-inner\":\"style_scroller-inner__NJSE0__RbYOD\",\"is-moving\":\"style_is-moving__jGuy0__RbYOD\"};","import { createPortal } from \"react-dom\";\nimport { useEffect, useRef, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst ScrollBar = ({ onScroll, getContainer, ...scrollerProps }) => {\n const startRef = useRef(0);\n const [moving, setMoving] = useState(false);\n const movingRef = useRef(moving);\n movingRef.current = moving;\n const onScrollRef = useRef(onScroll);\n onScrollRef.current = onScroll;\n const ratioRef = useRef(1);\n ratioRef.current = scrollerProps.width / scrollerProps.innerWidth;\n\n useEffect(() => {\n const moveHandler = (e) => {\n movingRef.current &&\n onScrollRef.current(ratioRef.current * (e.clientX - startRef.current));\n startRef.current = e.clientX;\n };\n const upHandler = () => {\n setMoving(false);\n };\n document.addEventListener(\"mousemove\", moveHandler, true);\n document.addEventListener(\"mouseup\", upHandler, true);\n return () => {\n document.removeEventListener(\"mousemove\", moveHandler, true);\n document.removeEventListener(\"mouseup\", upHandler, true);\n };\n }, []);\n return createPortal(\n scrollerProps.hasScroller ? (\n <div\n className={style[\"scroller\"]}\n style={{\n left: scrollerProps.left,\n width: scrollerProps.width,\n height: 15, //scrollerProps.height\n }}\n >\n <div\n className={classnames(style[\"scroller-inner\"], {\n [style[\"is-moving\"]]: moving,\n })}\n style={{\n width: scrollerProps.innerWidth,\n left: scrollerProps.innerLeft,\n }}\n onMouseDown={(e) => {\n e.preventDefault();\n startRef.current = e.clientX;\n setMoving(true);\n }}\n />\n </div>\n ) : null,\n getContainer() || document.body\n );\n};\n\nconst Scroller = ({ className, scroller, getScrollTarget, children }) => {\n const [scrollerProps, setScrollerProps] = useState({\n left: 0,\n width: 0,\n innerLeft: 0,\n innerWidth: 0,\n height: 0,\n hasScroller: false,\n });\n const ref = useRef(null);\n const getScrollEl = useRefCallback(() => {\n return ref.current && getScrollTarget(ref.current);\n });\n const getContainer = useRef();\n\n getContainer.current =\n typeof scroller === \"object\" && typeof scroller.getContainer === \"function\"\n ? scroller.getContainer\n : () => null;\n useEffect(() => {\n const container = getContainer.current() || document.documentElement;\n let scrollEl;\n const computed = () => {\n if (!scrollEl) {\n return;\n }\n const { left, width, top, height } = scrollEl.getBoundingClientRect();\n const scrollerHeight =\n scrollEl.offsetHeight - scrollEl.clientHeight || 15;\n const innerWidth =\n (width * scrollEl.clientWidth) / scrollEl.scrollWidth - 6;\n const innerLeft =\n (scrollEl.scrollLeft * scrollEl.clientWidth) / scrollEl.scrollWidth + 2;\n const containerRect = container.getBoundingClientRect();\n //console.log(endRef.current.vi);\n setScrollerProps((props) => {\n return Object.assign({}, props, {\n left,\n width,\n innerLeft,\n innerWidth,\n height: scrollerHeight,\n hasScroller:\n scrollEl.scrollWidth - scrollEl.clientWidth > 0 &&\n (container === document.documentElement\n ? top + height - container.offsetHeight > 0 &&\n top < container.offsetHeight\n : top < containerRect.top + containerRect.height &&\n top + height > containerRect.top + containerRect.height),\n });\n });\n };\n const resizeObserver = new ResizeObserver(computed);\n const refResizeObserver = new ResizeObserver(() => {\n scrollEl = getScrollEl();\n if (!scrollEl) {\n return;\n }\n resizeObserver.disconnect();\n computed();\n Array.from(scrollEl.children).forEach((item) => {\n resizeObserver.observe(item);\n });\n scrollEl.addEventListener(\"scroll\", computed);\n });\n\n refResizeObserver.observe(ref.current);\n\n window.addEventListener(\"scroll\", computed);\n container.addEventListener(\"scroll\", computed);\n return () => {\n window.removeEventListener(\"scroll\", computed);\n container.removeEventListener(\"scroll\", computed);\n };\n }, [getScrollEl]);\n if (!scroller) {\n return children;\n }\n return (\n <div\n className={classnames(style[\"scroller-outer\"], className)}\n ref={ref}\n style={{\n \"--scroller-bar-height\": scrollerProps?.hasScroller ? \"15px\" : \"0px\",\n }}\n >\n {children}\n <ScrollBar\n {...scrollerProps}\n getContainer={getContainer.current}\n onScroll={(x) => {\n const scrollEl = getScrollEl();\n scrollEl.scrollLeft += x;\n }}\n />\n </div>\n );\n};\n\nScroller.defaultProps = {\n scroller: true,\n getScrollTarget: () => document.querySelector(\".simplebar-content-wrapper\"),\n};\n\nexport default Scroller;\n","import { createContext, useContext, useEffect } from \"react\";\nimport { usePreset } from \"@components/Global\";\nimport get from \"lodash/get\";\nimport memoize from \"lodash/memoize\";\nimport omit from \"lodash/omit\";\n\nconst treeTraverse = (data, func, pId) => {\n if (!data) {\n return;\n }\n if (Array.isArray(data)) {\n data.forEach((item) => {\n treeTraverse(item, func, pId);\n });\n return;\n }\n func(Object.assign({}, omit(data, [\"children\"]), { parentId: pId }));\n treeTraverse(data.children, func, pId ? pId + \":\" + data.id : data.id);\n};\n\nconst parseProfile = memoize((profile) => {\n const profileMap = (() => {\n const output = new Map();\n treeTraverse(profile, (item) => {\n output.set(item.parentId ? item.parentId + \":\" + item.id : item.id, item);\n });\n return output;\n })();\n\n const features = ((profileMap) => {\n return Array.from(profileMap.keys()).filter((id) => {\n const item = profileMap.get(id);\n return !(\n Array.isArray(item.dependencies) &&\n item.dependencies.length > 0 &&\n item.dependencies.some((depId) => {\n return !profileMap.get(id);\n })\n );\n });\n })(profileMap);\n\n return { profile, features, profileMap };\n});\n\nconst useFeatures = () => {\n const preset = usePreset();\n const { profile, debug } = get(preset, \"features\", {\n debug: false,\n profile: {},\n });\n return Object.assign({}, parseProfile(profile), { debug });\n};\n\nconst computedIsPaas = (currentId, { profileMap, features }) => {\n const target = profileMap.get(currentId);\n return (\n features.indexOf(currentId) !== -1 &&\n target.close !== true &&\n get(target, \"dependencies\", []).every((id) => {\n const dependenciesTarget = profileMap.get(currentId);\n return features.indexOf(id) > -1 && dependenciesTarget.close !== true;\n })\n );\n};\n\nconst context = createContext(null);\n\nconst { Provider } = context;\n\nexport const useFeatureCall = (id) => {\n const { features, profile, profileMap, debug } = useFeatures();\n const systemId = profile.type === \"system\" ? profile.id : \"root\";\n const parentId = useContext(context);\n const currentId = parentId ? parentId + \":\" + id : systemId + \":\" + id;\n useEffect(() => {\n if (features && features.length > 0 && debug) {\n console.log(\n `[featureId] ${currentId},[state] ${computedIsPaas(currentId, {\n features,\n profileMap,\n })}`,\n profileMap.get(currentId)\n );\n }\n }, [features, profileMap, debug, currentId]);\n return {\n isPass:\n !(id && features && features.length > 0) ||\n computedIsPaas(currentId, { features, profileMap }),\n currentId,\n feature: profileMap.get(currentId),\n };\n};\n\nconst Features = ({ id, children }) => {\n const { isPass, feature, currentId } = useFeatureCall(id);\n return (\n <Provider value={currentId}>\n {typeof children === \"function\"\n ? children({\n isPass,\n options: isPass\n ? get(feature, \"options\")\n : get(feature, \"rejectedOptions\"),\n currentId,\n })\n : isPass && children}\n </Provider>\n );\n};\n\nexport default Features;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","/**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n}\n\nmodule.exports = baseSum;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\nfunction findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\n}\n\nmodule.exports = findLastIndex;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar numberTag = '[object Number]';\n\n/**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\nfunction isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n}\n\nmodule.exports = isNumber;\n","var baseSet = require('./_baseSet');\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\nfunction set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n}\n\nmodule.exports = set;\n","var baseIteratee = require('./_baseIteratee'),\n baseSum = require('./_baseSum');\n\n/**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\nfunction sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, baseIteratee(iteratee, 2))\n : 0;\n}\n\nmodule.exports = sumBy;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["ScrollBar","_ref","onScroll","getContainer","scrollerProps","startRef","useRef","moving","setMoving","useState","movingRef","current","onScrollRef","ratioRef","width","innerWidth","useEffect","moveHandler","e","clientX","upHandler","document","addEventListener","removeEventListener","createPortal","hasScroller","_jsx","className","style","left","height","children","classnames","innerLeft","onMouseDown","preventDefault","body","Scroller","_ref2","scroller","getScrollTarget","setScrollerProps","ref","getScrollEl","useRefCallback","container","documentElement","scrollEl","computed","top","getBoundingClientRect","scrollerHeight","offsetHeight","clientHeight","clientWidth","scrollWidth","scrollLeft","containerRect","props","Object","assign","resizeObserver","ResizeObserver","disconnect","Array","from","forEach","item","observe","window","_jsxs","x","defaultProps","querySelector","treeTraverse","data","func","pId","isArray","omit","parentId","id","parseProfile","memoize","profile","profileMap","output","Map","set","features","keys","filter","get","dependencies","length","some","depId","computedIsPaas","currentId","target","indexOf","close","every","dependenciesTarget","context","createContext","Provider","useFeatureCall","debug","useFeatures","preset","usePreset","systemId","type","useContext","console","log","concat","isPass","feature","value","options","module","exports","array","setter","iteratee","accumulator","index","baseEach","require","collection","key","baseForOwn","createBaseEach","predicate","fromIndex","fromRight","result","undefined","arrayAggregator","baseAggregator","baseIteratee","initializer","isArrayLike","eachFunc","iterable","baseFindIndex","toInteger","nativeMax","Math","max","nativeMin","min","baseAssignValue","createAggregator","hasOwnProperty","prototype","groupBy","call","push","baseGetTag","isObjectLike","baseSet","object","path","baseSum","toFinite","remainder"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5009.20c7aeda.chunk.js","mappings":"2OACA,SAAgB,SAAW,+BAA+B,iBAAiB,qCAAqC,YAAY,iC,eCK5H,MAAMA,EAAYC,IAAmD,IAAlD,SAAEC,EAAQ,aAAEC,KAAiBC,GAAeH,EAC7D,MAAMI,GAAWC,EAAAA,EAAAA,QAAO,IACjBC,EAAQC,IAAaC,EAAAA,EAAAA,WAAS,GAC/BC,GAAYJ,EAAAA,EAAAA,QAAOC,GACzBG,EAAUC,QAAUJ,EACpB,MAAMK,GAAcN,EAAAA,EAAAA,QAAOJ,GAC3BU,EAAYD,QAAUT,EACtB,MAAMW,GAAWP,EAAAA,EAAAA,QAAO,GAmBxB,OAlBAO,EAASF,QAAUP,EAAcU,MAAQV,EAAcW,YAEvDC,EAAAA,EAAAA,YAAU,KACR,MAAMC,EAAeC,IACnBR,EAAUC,SACRC,EAAYD,QAAQE,EAASF,SAAWO,EAAEC,QAAUd,EAASM,UAC/DN,EAASM,QAAUO,EAAEC,OAAO,EAExBC,EAAYA,KAChBZ,GAAU,EAAM,EAIlB,OAFAa,SAASC,iBAAiB,YAAaL,GAAa,GACpDI,SAASC,iBAAiB,UAAWF,GAAW,GACzC,KACLC,SAASE,oBAAoB,YAAaN,GAAa,GACvDI,SAASE,oBAAoB,UAAWH,GAAW,EAAK,CACzD,GACA,KACII,EAAAA,EAAAA,cACLpB,EAAcqB,aACZC,EAAAA,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,EAAOC,QANP,SAAeC,EAAOE,GACpB,OAAQF,GAASA,EAAM9B,OACnBwE,EAAQ1C,EAAOkB,EAAahB,EAAU,IACtC,CACN,C,kBC9BA,IAAIyC,EAAWrC,EAAQ,OAmCvBR,EAAOC,QAPP,SAAmBH,GACjB,IAAIkB,EAAS6B,EAAS/C,GAClBgD,EAAY9B,EAAS,EAEzB,OAAOA,IAAWA,EAAU8B,EAAY9B,EAAS8B,EAAY9B,EAAU,CACzE,C","sources":["webpack://@kne-components/components-core/./src/common/components/Scroller/style.module.scss?7480","common/components/Scroller/index.js","components/Features/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_baseSum.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/findLastIndex.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/isNumber.js","../node_modules/lodash/set.js","../node_modules/lodash/sumBy.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"scroller\":\"style_scroller__EfuqR__rDYyQ\",\"scroller-inner\":\"style_scroller-inner__NJSE0__rDYyQ\",\"is-moving\":\"style_is-moving__jGuy0__rDYyQ\"};","import { createPortal } from \"react-dom\";\nimport { useEffect, useRef, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst ScrollBar = ({ onScroll, getContainer, ...scrollerProps }) => {\n const startRef = useRef(0);\n const [moving, setMoving] = useState(false);\n const movingRef = useRef(moving);\n movingRef.current = moving;\n const onScrollRef = useRef(onScroll);\n onScrollRef.current = onScroll;\n const ratioRef = useRef(1);\n ratioRef.current = scrollerProps.width / scrollerProps.innerWidth;\n\n useEffect(() => {\n const moveHandler = (e) => {\n movingRef.current &&\n onScrollRef.current(ratioRef.current * (e.clientX - startRef.current));\n startRef.current = e.clientX;\n };\n const upHandler = () => {\n setMoving(false);\n };\n document.addEventListener(\"mousemove\", moveHandler, true);\n document.addEventListener(\"mouseup\", upHandler, true);\n return () => {\n document.removeEventListener(\"mousemove\", moveHandler, true);\n document.removeEventListener(\"mouseup\", upHandler, true);\n };\n }, []);\n return createPortal(\n scrollerProps.hasScroller ? (\n <div\n className={style[\"scroller\"]}\n style={{\n left: scrollerProps.left,\n width: scrollerProps.width,\n height: 15, //scrollerProps.height\n }}\n >\n <div\n className={classnames(style[\"scroller-inner\"], {\n [style[\"is-moving\"]]: moving,\n })}\n style={{\n width: scrollerProps.innerWidth,\n left: scrollerProps.innerLeft,\n }}\n onMouseDown={(e) => {\n e.preventDefault();\n startRef.current = e.clientX;\n setMoving(true);\n }}\n />\n </div>\n ) : null,\n getContainer() || document.body\n );\n};\n\nconst Scroller = ({ className, scroller, getScrollTarget, children }) => {\n const [scrollerProps, setScrollerProps] = useState({\n left: 0,\n width: 0,\n innerLeft: 0,\n innerWidth: 0,\n height: 0,\n hasScroller: false,\n });\n const ref = useRef(null);\n const getScrollEl = useRefCallback(() => {\n return ref.current && getScrollTarget(ref.current);\n });\n const getContainer = useRef();\n\n getContainer.current =\n typeof scroller === \"object\" && typeof scroller.getContainer === \"function\"\n ? scroller.getContainer\n : () => null;\n useEffect(() => {\n const container = getContainer.current() || document.documentElement;\n let scrollEl;\n const computed = () => {\n if (!scrollEl) {\n return;\n }\n const { left, width, top, height } = scrollEl.getBoundingClientRect();\n const scrollerHeight =\n scrollEl.offsetHeight - scrollEl.clientHeight || 15;\n const innerWidth =\n (width * scrollEl.clientWidth) / scrollEl.scrollWidth - 6;\n const innerLeft =\n (scrollEl.scrollLeft * scrollEl.clientWidth) / scrollEl.scrollWidth + 2;\n const containerRect = container.getBoundingClientRect();\n //console.log(endRef.current.vi);\n setScrollerProps((props) => {\n return Object.assign({}, props, {\n left,\n width,\n innerLeft,\n innerWidth,\n height: scrollerHeight,\n hasScroller:\n scrollEl.scrollWidth - scrollEl.clientWidth > 0 &&\n (container === document.documentElement\n ? top + height - container.offsetHeight > 0 &&\n top < container.offsetHeight\n : top < containerRect.top + containerRect.height &&\n top + height > containerRect.top + containerRect.height),\n });\n });\n };\n const resizeObserver = new ResizeObserver(computed);\n const refResizeObserver = new ResizeObserver(() => {\n scrollEl = getScrollEl();\n if (!scrollEl) {\n return;\n }\n resizeObserver.disconnect();\n computed();\n Array.from(scrollEl.children).forEach((item) => {\n resizeObserver.observe(item);\n });\n scrollEl.addEventListener(\"scroll\", computed);\n });\n\n refResizeObserver.observe(ref.current);\n\n window.addEventListener(\"scroll\", computed);\n container.addEventListener(\"scroll\", computed);\n return () => {\n window.removeEventListener(\"scroll\", computed);\n container.removeEventListener(\"scroll\", computed);\n };\n }, [getScrollEl]);\n if (!scroller) {\n return children;\n }\n return (\n <div\n className={classnames(style[\"scroller-outer\"], className)}\n ref={ref}\n style={{\n \"--scroller-bar-height\": scrollerProps?.hasScroller ? \"15px\" : \"0px\",\n }}\n >\n {children}\n <ScrollBar\n {...scrollerProps}\n getContainer={getContainer.current}\n onScroll={(x) => {\n const scrollEl = getScrollEl();\n scrollEl.scrollLeft += x;\n }}\n />\n </div>\n );\n};\n\nScroller.defaultProps = {\n scroller: true,\n getScrollTarget: () => document.querySelector(\".simplebar-content-wrapper\"),\n};\n\nexport default Scroller;\n","import { createContext, useContext, useEffect } from \"react\";\nimport { usePreset } from \"@components/Global\";\nimport get from \"lodash/get\";\nimport memoize from \"lodash/memoize\";\nimport omit from \"lodash/omit\";\n\nconst treeTraverse = (data, func, pId) => {\n if (!data) {\n return;\n }\n if (Array.isArray(data)) {\n data.forEach((item) => {\n treeTraverse(item, func, pId);\n });\n return;\n }\n func(Object.assign({}, omit(data, [\"children\"]), { parentId: pId }));\n treeTraverse(data.children, func, pId ? pId + \":\" + data.id : data.id);\n};\n\nconst parseProfile = memoize((profile) => {\n const profileMap = (() => {\n const output = new Map();\n treeTraverse(profile, (item) => {\n output.set(item.parentId ? item.parentId + \":\" + item.id : item.id, item);\n });\n return output;\n })();\n\n const features = ((profileMap) => {\n return Array.from(profileMap.keys()).filter((id) => {\n const item = profileMap.get(id);\n return !(\n Array.isArray(item.dependencies) &&\n item.dependencies.length > 0 &&\n item.dependencies.some((depId) => {\n return !profileMap.get(id);\n })\n );\n });\n })(profileMap);\n\n return { profile, features, profileMap };\n});\n\nconst useFeatures = () => {\n const preset = usePreset();\n const { profile, debug } = get(preset, \"features\", {\n debug: false,\n profile: {},\n });\n return Object.assign({}, parseProfile(profile), { debug });\n};\n\nconst computedIsPaas = (currentId, { profileMap, features }) => {\n const target = profileMap.get(currentId);\n return (\n features.indexOf(currentId) !== -1 &&\n target.close !== true &&\n get(target, \"dependencies\", []).every((id) => {\n const dependenciesTarget = profileMap.get(currentId);\n return features.indexOf(id) > -1 && dependenciesTarget.close !== true;\n })\n );\n};\n\nconst context = createContext(null);\n\nconst { Provider } = context;\n\nexport const useFeatureCall = (id) => {\n const { features, profile, profileMap, debug } = useFeatures();\n const systemId = profile.type === \"system\" ? profile.id : \"root\";\n const parentId = useContext(context);\n const currentId = parentId ? parentId + \":\" + id : systemId + \":\" + id;\n useEffect(() => {\n if (features && features.length > 0 && debug) {\n console.log(\n `[featureId] ${currentId},[state] ${computedIsPaas(currentId, {\n features,\n profileMap,\n })}`,\n profileMap.get(currentId)\n );\n }\n }, [features, profileMap, debug, currentId]);\n return {\n isPass:\n !(id && features && features.length > 0) ||\n computedIsPaas(currentId, { features, profileMap }),\n currentId,\n feature: profileMap.get(currentId),\n };\n};\n\nconst Features = ({ id, children }) => {\n const { isPass, feature, currentId } = useFeatureCall(id);\n return (\n <Provider value={currentId}>\n {typeof children === \"function\"\n ? children({\n isPass,\n options: isPass\n ? get(feature, \"options\")\n : get(feature, \"rejectedOptions\"),\n currentId,\n })\n : isPass && children}\n </Provider>\n );\n};\n\nexport default Features;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","/**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\nfunction baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n}\n\nmodule.exports = baseSum;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\nfunction findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index, true);\n}\n\nmodule.exports = findLastIndex;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar numberTag = '[object Number]';\n\n/**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\nfunction isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n}\n\nmodule.exports = isNumber;\n","var baseSet = require('./_baseSet');\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\nfunction set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n}\n\nmodule.exports = set;\n","var baseIteratee = require('./_baseIteratee'),\n baseSum = require('./_baseSum');\n\n/**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\nfunction sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, baseIteratee(iteratee, 2))\n : 0;\n}\n\nmodule.exports = sumBy;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["ScrollBar","_ref","onScroll","getContainer","scrollerProps","startRef","useRef","moving","setMoving","useState","movingRef","current","onScrollRef","ratioRef","width","innerWidth","useEffect","moveHandler","e","clientX","upHandler","document","addEventListener","removeEventListener","createPortal","hasScroller","_jsx","className","style","left","height","children","classnames","innerLeft","onMouseDown","preventDefault","body","Scroller","_ref2","scroller","getScrollTarget","setScrollerProps","ref","getScrollEl","useRefCallback","container","documentElement","scrollEl","computed","top","getBoundingClientRect","scrollerHeight","offsetHeight","clientHeight","clientWidth","scrollWidth","scrollLeft","containerRect","props","Object","assign","resizeObserver","ResizeObserver","disconnect","Array","from","forEach","item","observe","window","_jsxs","x","defaultProps","querySelector","treeTraverse","data","func","pId","isArray","omit","parentId","id","parseProfile","memoize","profile","profileMap","output","Map","set","features","keys","filter","get","dependencies","length","some","depId","computedIsPaas","currentId","target","indexOf","close","every","dependenciesTarget","context","createContext","Provider","useFeatureCall","debug","useFeatures","preset","usePreset","systemId","type","useContext","console","log","concat","isPass","feature","value","options","module","exports","array","setter","iteratee","accumulator","index","baseEach","require","collection","key","baseForOwn","createBaseEach","predicate","fromIndex","fromRight","result","undefined","arrayAggregator","baseAggregator","baseIteratee","initializer","isArrayLike","eachFunc","iterable","baseFindIndex","toInteger","nativeMax","Math","max","nativeMin","min","baseAssignValue","createAggregator","hasOwnProperty","prototype","groupBy","call","push","baseGetTag","isObjectLike","baseSet","object","path","baseSum","toFinite","remainder"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>y,ConfirmText:()=>g,default:()=>C,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),r=t(58609),i=t(3382),a=t(83136),c=t.n(a);const d="style_overlay__99t5t__rDYyQ",m="style_is-danger__gxyAB__rDYyQ",_="style_title__EEPu2__rDYyQ",h="style_content__mZZg5__rDYyQ",p="style_has-title__5+PEt__rDYyQ";var u=t(70579);const f=e=>{const o=(0,r.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:a=!0,onClick:f,onCancel:y,disabled:g,showCancel:C,cancelText:x,isModal:b,okText:j,placement:v,getContainer:N,...w}=o;const{formatMessage:k}=(0,r.useIntl)({moduleName:"ConfirmButton"}),D=(0,i.useConfirmModal)();return b?(0,u.jsx)(e,{...w,disabled:g,onClick:e=>{D({type:"confirm",title:t,getContainer:N,danger:a,message:l||k({id:"message"}),okText:j||k(a?{id:"delete"}:{id:"confirm"}),cancelText:x||k({id:"cancel"}),onCancel:y,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:_,children:[(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(h,{[p]:t}),children:[!t&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),l||k({id:"message"})]})]}),placement:v,onConfirm:f,okButtonProps:{danger:a},onCancel:y,overlayClassName:c()(d,{[m]:a}),getPopupContainer:N,disabled:g,showCancel:C,cancelText:x,okText:j||k(a?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...w,disabled:g})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},y=f(n.Typography.Link),g=f(n.Typography.Text),C=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>Y,TabsModal:()=>k,TabsModalButton:()=>Q,default:()=>N,useConfirmModal:()=>v,useModal:()=>j,useTabsModal:()=>D});var n=t(73884),l=t(55199),s=t(83136),r=t.n(s);const i={modal:"style_modal__Pm3cF__rDYyQ",large:"style_large__iaqVE__rDYyQ","modal-body-inner":"style_modal-body-inner__4PhpA__rDYyQ","modal-title":"style_modal-title__dswaw__rDYyQ","modal-outer":"style_modal-outer__r3SkX__rDYyQ","modal-body":"style_modal-body__jQJSI__rDYyQ","right-options-modal":"style_right-options-modal__FajDP__rDYyQ","right-options-col":"style_right-options-col__3ilee__rDYyQ","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__rDYyQ","modal-footer":"style_modal-footer__-prbN__rDYyQ","modal-close":"style_modal-close__Oa5Kl__rDYyQ","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__rDYyQ","is-danger":"style_is-danger__H5110__rDYyQ",title:"style_title__orTym__rDYyQ",content:"style_content__k6MIF__rDYyQ","has-title":"style_has-title__qy0Wp__rDYyQ"},a=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var _=t(81014),h=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,children:t}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,children:[(0,p.jsx)(l.Col,{span:18,className:i["right-options-col"],children:t}),(0,p.jsx)(l.Col,{span:6,className:i["right-options-col"],children:o})]}):t},y=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:r,onClose:i,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:r},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:r,...a}=e;const c=t||_.default;return(0,n.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&i&&i(),n}})}))})})]})},g=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:_,onCancel:u,children:f,targetProps:g}=e;const C=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:i["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:i["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:i["modal-title"],children:o}),(0,p.jsx)(h.A,{className:r()(i["modal-body"],{[i["is-disabled-scroller"]]:s},"modal-body"),ref:C,children:(0,p.jsx)("div",{className:r()(i["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||a?(0,p.jsx)("div",{className:r()(i["modal-footer"],"modal-footer"),children:(0,p.jsx)(y,{footer:t,footerButtons:a,onConfirm:_,onCancel:u,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:r,onCancel:i,footer:a,rightOptions:c,disabledScroller:d,childrenRef:_,children:h}=e;const u=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(g,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:i,footerButtons:m(t,{...e,close:s}),disabledScroller:d,footer:m(a,{...e,childrenRef:_,close:s}),targetProps:Object.assign({},e,{childrenRef:_,close:s}),children:(0,p.jsx)(f,{options:m(c,{...e,childrenRef:_,close:s}),children:m(h,{...e,childrenRef:_,close:s})})}));return"function"===typeof o?o(u):u({})},x=e=>{let{children:o,rightOptions:t,footer:n,footerButtons:l,className:s,size:d,title:m,onClose:_,onConfirm:h,onCancel:u,closable:f,disabledScroller:y,withDecorator:g,childrenRef:x,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:r()(s,i.modal,i[d],{[i["right-options-modal"]]:t}),...(j=d,"large"===j?{width:"".concat(Math.min(window.innerWidth-64,1500),"px")}:"small"===j?{width:"600px"}:{width:"1000px"}),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:g,title:m,closable:f,onClose:_,onConfirm:h,onCancel:u,footer:n,footerButtons:l,rightOptions:t,disabledScroller:y,children:o,childrenRef:x})})};var j},b=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...x(Object.assign({},e,{childrenRef:o}))})};b.defaultProps={size:"default"};const j=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=x({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:r}=e.info({...s,content:l});return n.close=r,n}},v=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:a,danger:c,wrapClassName:m,message:_,iconSetting:h={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:r()(i["confirm-modal-wrap"],m,{[i["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:i.title,children:[(0,p.jsx)(d.default,{className:r()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||y["confirm"===n?u:n]}),a]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:r()(i.content,{[i["has-title"]]:a}),children:[!a&&(0,p.jsx)(d.default,{className:r()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||y["confirm"===n?u:n]}),_]})});t.close=o}return t}},N=b,w=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:i,onChange:a,...c}=e;return{...c,className:r()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:i,onChange:a});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},k=e=>(0,p.jsx)(N,{...w(e)}),D=()=>{const e=j();return o=>e(w(o))};var P=t(73025);const Q=e=>{const o=D();return(0,p.jsx)(P.A,{...e,modalFunc:o})},Y=e=>{const o=j();return(0,p.jsx)(P.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
+ //# sourceMappingURL=5600.70aadaa2.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/5600.aff3f99a.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cAAEc,IAAkBC,EAAAA,EAAA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EAC7D,OAAO6C,OAAOC,OAAO,CAAC,EAAGlC,EAAM,CAC7BxC,SAC+B,oBAAtBiH,EACHA,GAAmBC,GACjBJ,EACErC,OAAOC,OAAO,CAAC,EAAG1F,EAAOkI,EAAY,CACnClH,SAAUwC,EAAKxC,cAIrB8G,EACErC,OAAOC,OAAO,CAAC,EAAG1F,EAAO,CAAEgB,SAAUwC,EAAKxC,aAElD,IAEJmH,wBAAsB,EACtBR,UAAWA,EACXC,iBAAkBA,EAClBC,SAAUA,IAGd,MAAgC,oBAAlBxC,EACVA,EAAc0C,GACdA,GAAa,EAEnB/G,SAAU2C,IAA6B,IAA5B,SAAE3C,KAAahB,GAAO2D,EAC/B,MAA2B,oBAAb3C,EAA0BA,EAAShB,GAASgB,CAAQ,EAErE,EAOH,EAJmBhB,IACVK,EAAAA,EAAAA,KAACmG,EAAK,IAAKZ,EAAoB5F,KAK3BoI,EAAeA,KAC1B,MAAMjI,EAAQuG,IACd,OAAQ1G,GAAUG,EAAMyF,EAAoB5F,GAAO,E,eCvDrD,MAKaqI,EAAmBrI,IAC9B,MAAMsI,EAAYF,IAClB,OAAO/H,EAAAA,EAAAA,KAACkI,EAAAA,EAAW,IAAKvI,EAAOwI,UAAWF,GAAa,EAEzD,EATqBtI,IACnB,MAAMG,EAAQuG,IACd,OAAOrG,EAAAA,EAAAA,KAACkI,EAAAA,EAAW,IAAKvI,EAAOwI,UAAWrI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__RbYOD\",\"is-danger\":\"style_is-danger__gxyAB__RbYOD\",\"title\":\"style_title__EEPu2__RbYOD\",\"content\":\"style_content__mZZg5__RbYOD\",\"has-title\":\"style_has-title__5+PEt__RbYOD\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__RbYOD\",\"large\":\"style_large__iaqVE__RbYOD\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__RbYOD\",\"modal-title\":\"style_modal-title__dswaw__RbYOD\",\"modal-outer\":\"style_modal-outer__r3SkX__RbYOD\",\"modal-body\":\"style_modal-body__jQJSI__RbYOD\",\"right-options-modal\":\"style_right-options-modal__FajDP__RbYOD\",\"right-options-col\":\"style_right-options-col__3ilee__RbYOD\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__RbYOD\",\"modal-footer\":\"style_modal-footer__-prbN__RbYOD\",\"modal-close\":\"style_modal-close__Oa5Kl__RbYOD\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__RbYOD\",\"is-danger\":\"style_is-danger__H5110__RbYOD\",\"title\":\"style_title__orTym__RbYOD\",\"content\":\"style_content__k6MIF__RbYOD\",\"has-title\":\"style_has-title__qy0Wp__RbYOD\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n )}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","Row","wrap","Col","span","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","concat","Math","min","window","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5600.70aadaa2.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cAAEc,IAAkBC,EAAAA,EAAAA,SAAQ,CAAEjB,WAAY,kBAC1CkB,GAAQC,EAAAA,EAAAA,mBACd,OAAIR,GAEAS,EAAAA,EAAAA,KAACvB,EAAgB,IACXkB,EACJP,SAAUA,EACVF,QAAUe,IACRH,EAAM,CACJI,KAAM,UACNnB,MAAOA,EACPW,eACAS,OAAQlB,EACRD,QAASA,GAAWY,EAAc,CAAEQ,GAAI,YACxCZ,OAAQA,GAGJ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H,wBAAsB,EACtBR,UAAWA,EACXC,iBAAkBA,EAClBC,SAAUA,IAGd,MAAgC,oBAAlBxC,EACVA,EAAc0C,GACdA,GAAa,EAEnB/G,SAAU2C,IAA6B,IAA5B,SAAE3C,KAAahB,GAAO2D,EAC/B,MAA2B,oBAAb3C,EAA0BA,EAAShB,GAASgB,CAAQ,EAErE,EAOH,EAJmBhB,IACVK,EAAAA,EAAAA,KAACmG,EAAK,IAAKZ,EAAoB5F,KAK3BoI,EAAeA,KAC1B,MAAMjI,EAAQuG,IACd,OAAQ1G,GAAUG,EAAMyF,EAAoB5F,GAAO,E,eCvDrD,MAKaqI,EAAmBrI,IAC9B,MAAMsI,EAAYF,IAClB,OAAO/H,EAAAA,EAAAA,KAACkI,EAAAA,EAAW,IAAKvI,EAAOwI,UAAWF,GAAa,EAEzD,EATqBtI,IACnB,MAAMG,EAAQuG,IACd,OAAOrG,EAAAA,EAAAA,KAACkI,EAAAA,EAAW,IAAKvI,EAAOwI,UAAWrI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__rDYyQ\",\"is-danger\":\"style_is-danger__gxyAB__rDYyQ\",\"title\":\"style_title__EEPu2__rDYyQ\",\"content\":\"style_content__mZZg5__rDYyQ\",\"has-title\":\"style_has-title__5+PEt__rDYyQ\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__rDYyQ\",\"large\":\"style_large__iaqVE__rDYyQ\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__rDYyQ\",\"modal-title\":\"style_modal-title__dswaw__rDYyQ\",\"modal-outer\":\"style_modal-outer__r3SkX__rDYyQ\",\"modal-body\":\"style_modal-body__jQJSI__rDYyQ\",\"right-options-modal\":\"style_right-options-modal__FajDP__rDYyQ\",\"right-options-col\":\"style_right-options-col__3ilee__rDYyQ\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__rDYyQ\",\"modal-footer\":\"style_modal-footer__-prbN__rDYyQ\",\"modal-close\":\"style_modal-close__Oa5Kl__rDYyQ\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__rDYyQ\",\"is-danger\":\"style_is-danger__H5110__rDYyQ\",\"title\":\"style_title__orTym__rDYyQ\",\"content\":\"style_content__k6MIF__rDYyQ\",\"has-title\":\"style_has-title__qy0Wp__rDYyQ\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n )}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","Row","wrap","Col","span","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","concat","Math","min","window","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5846],{58407:(e,t,n)=>{n.r(t),n.d(t,{ConfirmLink:()=>_,ConfirmText:()=>x,default:()=>y,withConfirm:()=>g});n(73884);var r=n(55199);const a=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var s=n(64671),l=n(58609),o=n(3382),i=n(83136),c=n.n(i);const d="style_overlay__99t5t__rDYyQ",u="style_is-danger__gxyAB__rDYyQ",p="style_title__EEPu2__rDYyQ",m="style_content__mZZg5__rDYyQ",h="style_has-title__5+PEt__rDYyQ";var f=n(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:a})((t=>{let{title:n,message:a,isDelete:i=!0,onClick:g,onCancel:_,disabled:x,showCancel:y,cancelText:v,isModal:j,okText:b,placement:N,getContainer:A,...C}=t;const{formatMessage:w}=(0,l.useIntl)({moduleName:"ConfirmButton"}),S=(0,o.useConfirmModal)();return j?(0,f.jsx)(e,{...C,disabled:x,onClick:e=>{S({type:"confirm",title:n,getContainer:A,danger:i,message:a||w({id:"message"}),okText:b||w(i?{id:"delete"}:{id:"confirm"}),cancelText:v||w({id:"cancel"}),onCancel:_,onOk:g})}}):(0,f.jsx)(r.Popconfirm,{title:(0,f.jsxs)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:p,children:[(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,f.jsxs)(r.Space,{size:0,align:"start",className:c()(m,{[h]:n}),children:[!n&&(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),a||w({id:"message"})]})]}),placement:N,onConfirm:g,okButtonProps:{danger:i},onCancel:_,overlayClassName:c()(d,{[u]:i}),getPopupContainer:A,disabled:x,showCancel:y,cancelText:v,okText:b||w(i?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...C,disabled:x})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},_=g(r.Typography.Link),x=g(r.Typography.Text),y=g(r.Button)},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(73884),a=n(87558),s=n(76329),l=n(15797),o=n.n(l),i=n(79686),c=n.n(i),d=n(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,a.withFetch)((e=>{let{data:t,children:n}=e;return"function"===typeof n?n(t):n||(null===t||void 0===t?void 0:t.description)})),m=o()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),h=e=>{let{loader:t,...n}=e;const{global:{enumsRef:a}}=(0,s.useGlobalContext)(),l=(0,r.useRef)(null);return(0,d.jsx)(p,{...n,loader:async function(){const e=m(await t(...arguments)),{params:n}=arguments.length<=0?void 0:arguments[0],{moduleName:r,name:s,force:o,locale:i}=n,d=async t=>!0!==o&&l.current===i&&a.current.get(t)||await(async()=>{const n=e.get(t),r=await(async()=>"function"===typeof n?new Map((await n({locale:i})).map((e=>[e.value.toString(),e]))):Array.isArray(n)?new Map(n.map((e=>[e.value.toString(),e]))):"object"===typeof n?new Map(Object.keys(n).map((e=>[e.toString(),n[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return a.current.set(t,r),l.current=i,r})();if(Array.isArray(r))return await Promise.all(r.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(r);return c()(s)?Array.from(u.values()):u.get(s.toString())}})},f=e=>{let{moduleName:t,name:n,force:r,children:a,...l}=e;const o=(0,s.usePreset)();return(0,d.jsx)(h,{...l,params:{moduleName:t,locale:null===o||void 0===o?void 0:o.locale,enums:null===o||void 0===o?void 0:o.enums,name:n,force:r},loader:e=>{let{params:t}=e;return t.enums},children:a})};f.defaultProps={force:!1};const g=f},67390:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>x,FileLink:()=>q,List:()=>V,OptionButtons:()=>O,default:()=>H,downloadBlobFile:()=>f,useDownload:()=>g,useFileModal:()=>M});var r=n(33097),a=n.n(r),s=n(89946),l=n.n(s),o=n(55199),i=n(76329),c=n(64671),d=n(87558),u=n(73884),p=n(96418),m=n.n(p),h=n(70579);const f=async(e,t)=>{const n=e=>{const n=document.createElement("a"),r=new MouseEvent("click");n.download=t,n.href=e,n.dispatchEvent(r)};if(!e)throw new Error("\u672a\u83b7\u53d6\u5230\u4e0b\u8f7d\u7684\u6587\u4ef6\u4fe1\u606f");if("string"===typeof e&&/blob:http(s)?:/.test(e))return void n(e);if("[object Blob]"===Object.prototype.toString.call(e)){const t=new Blob([e],{type:a()(e,"type")});return void n(URL.createObjectURL(t))}const{data:r}=await l()({url:e,responseType:"blob"});n(URL.createObjectURL(new Blob([r],{type:a()(r,"type")})))},g=e=>{let{id:t,filename:n,apis:r,onError:a,onSuccess:s}=e;const{message:l}=o.App.useApp(),{apis:c}=(0,i.usePreset)(),p=Object.assign({},c,r),[h,g]=(0,u.useState)(!1),{paramsType:_,paramsName:x,...y}=Object.assign({paramsType:"params",paramsName:"id"},p.oss),v={};v[_]={[x]:t};const{isLoading:j,data:b,error:N,refresh:A,...C}=(0,d.useFetch)(Object.assign({},y,v,{auto:!1})),w=m()(a||l.error),S=m()(s);return(0,u.useEffect)((()=>{j||(N?w(N):b&&(g(!0),f(b,n).then(S).catch((e=>{w(e.message)})).then((()=>{g(!1)}))))}),[j,N,b,n,w,S]),{...C,isLoading:j||h,download:()=>A(t&&v)}},_=e=>{let{id:t,filename:n,api:r,onSuccess:a,onError:s,onClick:l,...i}=e;const{isLoading:d,download:u}=g({id:t,filename:n,api:r,onError:s,onSuccess:a});return(0,h.jsx)(o.Button,{icon:(0,h.jsx)(c.default,{type:"icon-xiazai"}),...i,loading:d,onClick:function(){l&&l(...arguments),u()}})};_.defaultProps={filename:"\u672a\u547d\u540d\u4e0b\u8f7d\u6587\u4ef6"},_.useDownload=g,_.downloadBlobFile=f;const x=_;var y=n(75087),v=n.n(y),j=n(58407),b=n(96252),N=n(58609),A=n(74065),C=n.n(A),w=n(26304),S=n.n(w),D=n(3382),P=n(10419);const F="style_file-modal-outer__1guNh__rDYyQ",I="style_file-title__8bnUq__rDYyQ",k="style_ellipse__kDaLC__rDYyQ",M=()=>{const e=(0,D.useModal)(),{message:t}=o.App.useApp();return(0,u.useCallback)((n=>{let{title:r,id:a,originName:s,apis:l,openDownload:i=!0,...c}=n;return e(Object.assign({footer:null},c,{title:(0,h.jsxs)(o.Space,{size:10,className:I,children:[(0,h.jsx)("span",{className:k,children:r||s}),i&&(0,h.jsx)(x,{className:"btn-no-padding",type:"link",id:a,apis:l,filename:s,onSuccess:()=>{t.success("\u4e0b\u8f7d\u6210\u529f")}})]}),children:(0,h.jsx)("div",{className:F,children:(0,h.jsx)(P.default,{id:a,originName:s,apis:l})})}))}),[e,t])},T=e=>({"en-US":()=>n.e(5645).then(n.bind(n,75645)),"zh-CN":()=>n.e(6707).then(n.bind(n,26707))}[e]()),E=(0,N.createWithIntl)({moduleName:"File",importMessages:T})((e=>{let{item:t,hasPreview:n,getPermission:r,apis:a}=e;const{filename:s,id:l}=t,{formatMessage:i}=(0,N.useIntl)({moduleName:"File"}),d=(0,b.useFormModal)(),u=M();return(0,h.jsxs)(o.Space,{size:0,children:[n&&r("preview",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-yulan"}),onClick:()=>{a.onPreview?a.onPreview(t):u({id:l,originName:s,apis:a})}}),r("edit",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-bianji"}),onClick:()=>{const e=d({size:"small",title:i({id:"editDocumentName"}),formProps:{data:{name:S()(t.filename.split(".")).join(".")},onSubmit:async n=>{!1!==(a.onEdit&&await a.onEdit({formData:Object.assign({},n,{name:"".concat(n.name,".").concat(C()(t.filename.split(".")))}),item:t}))&&e.close()}},children:(0,h.jsx)(b.default,{column:1,list:[(0,h.jsx)(b.Input,{name:"name",label:i({id:"documentName"}),rule:"REQ LEN-0-100"})]})})}}),r("download",t)&&(0,h.jsx)(x,{type:"text",id:l,filename:s}),r("delete",t)&&(0,h.jsx)(j.default,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-shanchu"}),onClick:()=>a.onDelete&&a.onDelete(t)})]})}));E.defaultProps={hasPreview:!0,apis:{},getPermission:(e,t)=>!0};const O=E;var R=n(57469),Q=n.n(R);const L="style_list-item-outer__0jlCN__rDYyQ",Y="style_list-item__nmPCB__rDYyQ",B="style_split__kgSlH__rDYyQ",z="style_loading__kQUX5__rDYyQ",U="style_list-options__aEila__rDYyQ",W=e=>{let{className:t,dataSource:n,getPermission:r,infoItemRenders:a,apis:s}=e;return(0,h.jsx)(N.IntlProvider,{importMessages:T,moduleName:"File",children:(0,h.jsx)(o.List,{className:t,dataSource:n.map(((e,t)=>(e.index=t,e))),rowKey:e=>"item_".concat(e.uuid&&"uuid_".concat(e.uuid)||e.id&&"id_".concat(e.id)||e.ossId&&"id_".concat(e.ossId)),renderItem:e=>{const{type:t,filename:n}=e;return(0,h.jsx)(o.List.Item,{className:L,children:(0,h.jsxs)(o.Row,{justify:"space-between",wrap:!1,className:Y,children:[(0,h.jsxs)(o.Col,{flex:1,children:[(0,h.jsx)("div",{className:B}),(0,h.jsxs)(o.Space,{className:"is-block",align:"start",size:4,children:[(0,h.jsx)(v(),{type:C()(null===n||void 0===n?void 0:n.split(".")),size:14}),n]})]}),a&&a.map(((n,r)=>(0,h.jsxs)(o.Col,{span:n.span||4,children:["uploading"!==t&&("function"===typeof n?n:n.render)(e),(0,h.jsx)("div",{className:B})]},r))),(0,h.jsx)(o.Col,{className:U,children:"uploading"!==t?(0,h.jsx)(O,{getPermission:r,item:e,apis:s}):(0,h.jsxs)(o.Space,{className:z,children:[(0,h.jsx)(o.Spin,{size:"small"}),(0,h.jsx)(o.Typography.Link,{children:(0,h.jsx)(N.FormattedMessage,{id:"uploading",moduleName:"File"})})]})})]})})},bordered:!0})})};W.defaultProps={infoItemRenders:[e=>e.userName?(0,h.jsx)(o.Typography.Text,{children:e.userName}):null,e=>e.date?(0,h.jsx)(o.Typography.Text,{children:Q()(e.date).format("YYYY-MM-DD HH:mm:ss")}):null]};const V=W;const H=(0,n(97211).A)((e=>{let{data:t,children:n,...r}=e;return n({url:t,...r})})),G=e=>{let{id:t,originName:n,openDownload:r,children:a,modalProps:s,...l}=e;const i=M();return(0,h.jsx)(o.Typography.Link,{...l,onClick:()=>{i({...s,id:t,originName:n,openDownload:r})},children:a||n})};G.defaultProps={openDownload:!0};const q=G},10419:(e,t,n)=>{n.r(t),n.d(t,{HtmlPreview:()=>g,ImagePreview:()=>I,OSSFilePreview:()=>E,OfficePreview:()=>y,PdfPreview:()=>A,TextPreview:()=>P,UnknownPreview:()=>F,default:()=>O});var r=n(63114),a=n.n(r),s=n(73884),l=n(13050),o=n(83136),i=n.n(o);const c="style_container__9Fu-3__rDYyQ",d="style_loading__r3aiE__rDYyQ",u="style_text-outer__TzhuG__rDYyQ",p="style_error__wSaxt__rDYyQ";var m=n(87558),h=n(70579);const f=(0,m.createWithFetch)({transformResponse:e=>{let{data:t}=e;return{data:{code:200,results:t}}}})((e=>{let{data:t}=e;const n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script").forEach((e=>{e.parentElement.removeChild(e)}));const r=(0,l.getPublicPath)("components-core")+"/iframeResizer.contentWindow.js",a=document.createElement("script");a.src=r,e.head.appendChild(a);const s=document.createElement("style");s.innerText="html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}",e.head.appendChild(s),n.current.srcdoc=e.documentElement.outerHTML}),[t]),(0,s.useEffect)((()=>{a().iframeResize({checkOrigin:!1},n.current)}),[]),(0,h.jsx)("iframe",{title:"\u7b80\u5386\u9884\u89c8",frameBorder:"0",width:"100%",ref:n})})),g=e=>{let{className:t,url:n,maxWidth:r}=e;return(0,h.jsx)("div",{className:i()(t,c),style:{maxWidth:r},children:(0,h.jsx)(f,{url:n})})};var _=n(76329);const x=(0,m.createWithFetch)({cache:"office-preview"})((e=>{let{data:t,className:n,...r}=e;const{data:a}=t;return a.map((e=>{let{url:t}=e;const a=T(t);return(0,s.createElement)(a,{...r,url:t,key:t,className:n})}))})),y=e=>{let{id:t,apis:n,className:r,...a}=e;const{apis:s}=(0,_.usePreset)(),l=Object.assign({},s,n);return(0,h.jsx)(x,{...a,...l.previewOffice,data:{id:t},className:r})};var v=n(55199),j=n(39165),b=(n(71975),n(36));const N=(0,s.memo)((e=>{let{url:t,maxWidth:n,scale:r,rotate:a,className:o}=e;const[u,p]=(0,s.useState)(0);j.pdfjs.GlobalWorkerOptions.workerSrc=(0,l.getPublicPath)("components-core")+"/pdfjs/build/pdf.worker.js";const[m,f]=(0,s.useState)(n),g=(0,b.useResize)((()=>{g.current&&g.current.clientWidth&&f(Math.min(g.current.clientWidth,n))}));return(0,h.jsx)("div",{ref:g,className:i()(o,c),style:{maxWidth:n},children:(0,h.jsx)(j.Document,{file:{url:t},options:{standardFontDataUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/standard_fonts/",cMapUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/cmaps/",cMapPacked:!0},error:"PDF\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25",loading:(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}),noData:"\u672a\u6307\u5b9aPDF\u6587\u4ef6",onLoadSuccess:e=>{let{numPages:t}=e;p(t),console.log("onLoadSuccess")},onLoadError:e=>{console.log("onLoadError",e)},onSourceError:e=>{console.log("onSourceError",e)},children:(0,h.jsx)(v.Space,{direction:"vertical",children:u>=1&&Array.from(new Array(u),((e,t)=>(0,h.jsx)(j.Page,{className:"preview-item",scale:r/100,rotate:a,pageNumber:t+1,width:m,loading:null,renderAnnotationLayer:!1,renderTextLayer:!0,noData:"\u672a\u6307\u5b9a\u9875\u9762"},"page_".concat(t))))})})})}));N.defaultProps={autoSize:!0,renderTextLayer:!1,scale:100,rotate:0,maxWidth:1200};const A=N;var C=n(91409),w=n.n(C),S=n(89946),D=n.n(S);const P=e=>{let{url:t,className:n,maxWidth:r}=e;const[a,l]=(0,s.useState)(""),[o,m]=(0,s.useState)(!0),[f,g]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{D().get(t).then((e=>{let{data:t}=e;l(t),m(!1)}),(()=>{m(!1),g(!0)}))}),[t]),(0,h.jsxs)("div",{className:i()(n,c),style:{maxWidth:r},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,(0,h.jsx)("div",{className:u,children:f?(0,h.jsx)("div",{className:p,children:"\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)(w(),{text:a})})]})},F=e=>{let{maxWidth:t}=e;return(0,h.jsx)("div",{className:c,style:{maxWidth:t},children:(0,h.jsx)("div",{className:u,children:(0,h.jsx)(v.Result,{status:"500",title:"\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b",subTitle:"\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u6587\u4ef6\u7c7b\u578b\u9884\u89c8\uff0c\u8bf7\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u8fdb\u884c\u9884\u89c8"})})})},I=e=>{let{url:t,scale:n,rotate:r,className:a,maxWidth:l}=e;const[o,u]=(0,s.useState)(!0),[m,f]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=new Image;e.src=t;const n=()=>{u(!1)},r=()=>{u(!1),f(!0)};return e.addEventListener("load",n),e.addEventListener("error",r),()=>{e.removeEventListener("load",n),e.removeEventListener("error",r)}}),[t,n,r]),(0,h.jsxs)("div",{className:i()(a,c),style:{maxWidth:l},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,m?(0,h.jsx)("div",{className:p,children:"\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)("img",{src:t,alt:"\u7b80\u5386\u9884\u89c8"})]})},k=e=>{const t=(e||"").split("?")[0].toLowerCase();return/.txt$/.test(t)?"txt":/.pdf$/.test(t)?"pdf":/.(png|jpg|jpeg)$/.test(t)?"image":/.(html|htm)$/.test(t)?"html":/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(t)?"office":"unknown"},M=k,T=e=>({txt:P,pdf:A,image:I,html:g,office:y,unknown:F}[k(e)]);const E=(0,n(97211).A)((e=>{let{data:t,id:n,className:r,...a}=e;const s=T(t);return"office"===M(t)?(0,h.jsx)(y,{...a,id:n,className:r}):(0,h.jsx)(s,{...a,className:r,url:t})})),O=e=>{let{id:t,originName:n,...r}=e;return"office"===M(n)?(0,h.jsx)(y,{...r,id:t,originName:n}):(0,h.jsx)(E,{...r,id:t,originName:n})}},330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y,useFlexBox:()=>g});var r=n(77964),a=n(74065),s=n.n(a),l=n(73884),o=n(55199),i=n(87558),c=n.n(i),d=n(19853),u=n.n(d),p=n(83136),m=n.n(p),h=n(70579);const f=[{width:786,col:1,size:15},{width:960,col:2,size:12},{width:1360,col:3,size:12},{width:1680,col:4,size:12},{width:1920,col:5,size:15}],g=e=>{const{columns:t,onChange:n}=Object.assign({},{columns:f},e),[a,o]=(0,l.useState)(null),i=(0,l.useRef)(null),c=(0,r.A)((e=>{const r=e.clientWidth,a=t.find(((e,t)=>e.width>=r))||s()(t);u()(a,i.current)||(o(a),i.current&&n&&n(a),i.current=a)}));return{ref:c,column:a}},_=e=>{let{columns:t,outerClassName:n,gutter:r,...a}=e;const{ref:s,column:l}=g({columns:t});return(0,h.jsx)("div",{ref:s,className:n,children:l&&(0,h.jsx)(o.List,{...a,grid:{gutter:r,column:l.col}})})};_.defaultProps={gutter:16,columns:f},_.Item=o.List.Item;const x=(0,l.forwardRef)(((e,t)=>{let{columns:n,api:r,getFetchApi:a,outerClassName:s,className:l,gutter:i,dataFormat:d,...u}=e;const{ref:p,column:f}=g({columns:n});return(0,h.jsx)("div",{ref:p,className:s,children:f&&(0,h.jsx)(c(),{...r||a(f),ref:t,render:e=>{let{data:t,isComplete:n}=e;return(0,h.jsx)(o.List,{...u,className:m()(l,"loading-container",{"is-loading":!n}),dataSource:d(t),grid:{gutter:i,column:f.col}})}})})}));x.defaultProps={gutter:16,columns:f,dataFormat:e=>e.pageData},_.Fetch=x;const y=_},45053:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(98434),a=n(55199),s=n(73884),l=n(83136),o=n.n(l),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:l,errorRender:i,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:a}=e;const{emitter:l,formState:o}=(0,r.useFormContext)(),i=(0,s.useRef)({name:t,groupName:n,groupIndex:a});i.current={name:t,groupName:n,groupIndex:a};const c=(0,s.useRef)(o);c.current=o;const[d,u]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=l.addListener("form-field-validate-complete",(e=>{let{id:t,validate:n}=e;const a=c.current[t];if(!a)return;const s=i.current;a.name!==s.name||s.groupName&&(a.groupName!==s.groupName||a.groupIndex!==s.groupIndex)||u(2===n.status?Object.assign({},n,{label:a.label,errMsg:r.util.compileErrMsg(n.msg,a.label)}):null)}));return()=>{e&&e.remove()}}),[l]),d})({name:t,groupName:n,groupIndex:p}),[f,g]=(0,s.useState)(!1),_=h&&f&&i(Object.assign({},h,{closeHover:()=>g(!1)})),x=(0,s.useRef)(null),y=(0,s.useRef)(null);c()((()=>{g(!1)})).current={contains:e=>x.current.contains(e)||y.current&&y.current.contains(e)};const[v,j]=(0,s.useState)(0);return(0,s.useLayoutEffect)((()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&j(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const n=new MutationObserver(e);return n.observe(x.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}}),[]),(0,u.jsx)(a.Popover,{open:!!_,overlayClassName:o()(l,d.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:y,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{g(!0)},children:m})})};p.defaultProps={errorRender:()=>null};const m=p},83560:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(55199),a=n(98434),s=n(63361),l=n(73884),o=n(10486),i=n(21554),c=n(64671),d=n(83136),u=n.n(d),p=n(47094),m=n(70579);const h=e=>{let{list:t,groupArgs:n,itemRender:d}=e;const h=(0,a.useFormContext)(),f=Object.assign({},h,n?{groupArgs:n}:{}),g=(0,l.useRef)(null),[_,x]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{x(!0)}),[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{ref:g,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(f):!1!==e.props.display)).map(((e,a)=>{const h=e.props.name+a||n&&n[0]+a||a,x={key:h,list:t,props:e.props},y=Object.assign({},e.props),v=e.type;["display","block","hidden","setExtraProps","isBlock","featureId"].forEach((t=>{e.props.hasOwnProperty(t)&&(x[t]=e.props[t]),delete y[t]})),x.hasOwnProperty("isBlock")&&(y.block=x.isBlock);const j=(0,m.jsx)(v,{...Object.assign({},y,"function"===typeof x.setExtraProps?x.setExtraProps({props:y,contextApi:f}):{}),onChange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onChange&&e.props.onChange(...n,f)}}),b=x.hidden?_&&(0,o.createPortal)(j,g.current):d(x.tips?(0,m.jsxs)(r.Row,{gutter:8,align:"top",children:[(0,m.jsx)(r.Col,{flex:1,children:j}),(0,m.jsx)(r.Col,{children:(0,m.jsx)(i.default,{content:x.tips,children:(0,m.jsx)("span",{className:u()(p.A["field-tips"],{[p.A["label-hidden"]]:y.labelHidden}),children:(0,m.jsx)(c.default,{type:"icon-xinxi-miaobian"})})})})]}):j,x);return(0,m.jsx)(l.Fragment,{children:x.hasOwnProperty("featureId")?(0,m.jsx)(s.default,{id:x.featureId,children:b},h):b},h)}))]})}},85696:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(73884),a=n(76329),s=n(33097),l=n.n(s),o=n(64261),i=n(58609),c=n(55431),d=n(46237),u=n(1454),p=n(46732),m=n(98434),h=n(83136),f=n.n(h),g=n(47094),_=n(70579);const x=e=>{let{children:t}=e;const[n,s]=(0,r.useState)(!1),i=(0,a.usePreset)(),c=l()(i,"formInfo",{}),d=l()(i,"locale");return(0,r.useEffect)((()=>{Promise.resolve((0,o.A)(c,{locale:d})).then((()=>{s(!0)}))}),[c,d]),n?t:null},y=(0,r.forwardRef)(((e,t)=>{let{className:n,helperGuideName:r,children:a,lang:s,...l}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:c.A,moduleName:"FormInfo",children:(0,_.jsx)(d.Ay,{value:s,children:(0,_.jsx)(u.default,{children:(0,_.jsx)(p.K,{value:r,children:(0,_.jsx)(m.FormAntd,{...l,ref:t,className:f()(n,g.A["form-outer"]),children:(0,_.jsx)(x,{children:a})})})})})})}));y.defaultProps={type:"inner"};const v=y},35774:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(98434),a=n(81014),s=n(70579);const l=e=>{let{onClick:t,...n}=e;const l=(0,r.useFormContext)();return(0,s.jsx)(a.default,{...n,onClick:e=>t(l,e)})}},48221:(e,t,n)=>{n.d(t,{Ay:()=>h,WJ:()=>g,Xy:()=>f});var r=n(25963),a=n(83136),s=n.n(a),l=n(98434),o=n(73025),i=n(58609),c=n(47094),d=n(55431),u=n(70579);const p=[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:"\u4fdd\u5b58",ButtonComponent:l.SubmitButton,autoClose:!1}],m=e=>{let{className:t,withDecorator:n,footerButtons:r=p,formProps:a,...o}=e;return{...o,footerButtons:r,className:s()(t,c.A["form-outer"],c.A["form-drawer"]),withDecorator:e=>{const t=t=>{const n="function"===typeof a?a(t):a;return(0,u.jsx)(l.FormAntd,{...n,children:(0,u.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},h=e=>(0,u.jsx)(r.default,{...m(e)}),f=()=>{const e=(0,r.useDrawer)();return t=>e(m(t))},g=e=>{const t=f();return(0,u.jsx)(o.A,{...e,modalFunc:t})}},2196:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(55199),a=n(1454),s=n(330),l=n(83560),o=n(47094),i=n(83136),c=n.n(i),d=n(70579);const u=e=>{let{list:t,groupArgs:n,column:i,gap:u,className:p,...m}=e;const h=!(Number.isInteger(i)&&i>0),{ref:f,column:g}=(0,s.useFlexBox)(h?i:{}),_=(e,a)=>(0,d.jsx)(r.Row,{gutter:[u||24,0],className:c()({[o.A["column-not-layout"]]:a}),children:(0,d.jsx)(l.A,{list:t,groupArgs:n,itemRender:(t,n)=>(0,d.jsx)(r.Col,{span:!0===n.block?24:Math.round(24/(e||1)),children:t})})});return(0,d.jsxs)(a.default.Part,{...m,className:c()(p,o.A["form-info"]),children:[(0,d.jsx)("div",{ref:f}),h?g?_(g.col):_(2,!0):_(i)]})};u.defaultProps={column:2,list:[]};const p=u},30891:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(98434);const a=e=>{let{children:t}=e;const{openApi:n,formData:a}=(0,r.useFormContext)();return t({...n,formData:a})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var r=n(73884);const a=(0,r.createContext)([]),{Provider:s,Consumer:l}=a,o=()=>(0,r.useContext)(a),i=s},5995:(e,t,n)=>{n.d(t,{Ay:()=>f,Vl:()=>g,W6:()=>_});var r=n(3382),a=n(83136),s=n.n(a),l=n(98434),o=n(83799),i=n(73025),c=n(58609),d=n(47094),u=n(55431),p=n(70579);const m="FormInfo",h=e=>{let{className:t,withDecorator:n,footerButtons:r,formProps:a,...i}=e;return{...i,footerButtons:r||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Save",moduleName:m})}),ButtonComponent:l.SubmitButton,autoClose:!1}],className:s()(t,d.A["form-outer"],d.A["form-modal"]),withDecorator:e=>{const t=t=>{const n="function"===typeof a?a(t):a;return(0,p.jsx)(o.lV,{...n,children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},f=e=>(0,p.jsx)(r.default,{...h(e)}),g=()=>{const e=(0,r.useModal)();return t=>e(h(t))},_=e=>{const t=g();return(0,p.jsx)(i.A,{...e,modalFunc:t})}},94005:(e,t,n)=>{n.d(t,{$X:()=>u,Ay:()=>d,Wp:()=>p});var r=n(5995),a=n(55199),s=n(73884),l=n(98434),o=n(70579);const i=e=>{let{setCurrent:t,current:n,items:r,setStepData:s,stepData:i}=e;const c=r[n],{formData:d}=(0,l.useFormContext)();return(0,o.jsxs)(a.Space,{className:"full-space",direction:"vertical",children:[(0,o.jsx)(a.Steps,{current:n,onChange:e=>{s((t=>{const n=t.slice(0);return n[e]=d,n})),t(e)},items:r}),c.children]})},c=()=>{const[e,t]=(0,s.useState)([]),[n,r]=(0,s.useState)(0);return a=>{var s;let{items:c,formProps:d}=a;const u=n===c.length-1;return{stepData:e,formProps:Object.assign({},d,{data:Object.assign({},null===(s=d.data)||void 0===s?void 0:s[n],e[n]),onSubmit:a=>{const s=e.slice(0);if(s[n]=a,t(s),u)return null===d||void 0===d?void 0:d.onSubmit(e);r(n+1)}}),children:(0,o.jsx)(i,{items:c,current:n,setCurrent:r,stepData:e,setStepData:t}),footerButtons:[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:u?"\u4fdd\u5b58":"\u4e0b\u4e00\u6b65",ButtonComponent:l.SubmitButton,autoClose:!1}]}}},d=e=>{const t=c(),{footerButtons:n,children:a,formProps:s}=t(e);return(0,o.jsx)(r.Ay,{...e,formProps:s,footerButtons:n,children:a})},u=()=>{const e=(0,r.Vl)(),t=c();return n=>{const{footerButtons:r,children:a,formProps:s}=t(n);return e({...n,formProps:s,footerButtons:r,children:a})}},p=e=>{let{modalProps:t,...n}=e;const a=c(),{footerButtons:s,children:l,formProps:i}=a(t);return(0,o.jsx)(r.W6,{...n,modalProps:Object.assign({},t,{formProps:i,footerButtons:s,children:l})})}},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var r=n(75363),a=n(73884),s=n(98434),l=n(47094),o=n(70579);const i=(0,a.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,a.useContext)(i),c=(0,s.useGroup)();return n&&(0,o.jsx)(r.default,{className:l.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},85846:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(73884),a=n(55199),s=n(58407),l=n(64671),o=n(1454),i=n(98434),c=n(2196),d=n(83136),u=n.n(d),p=n(55431),m=n(58609),h=n(33097),f=n.n(h),g=n(47094),_=n(70579);const x=(0,m.createWithIntl)({moduleName:"FormInfo",importMessages:p.A})((e=>{let{title:t,addText:n,minLength:o,isUnshift:d,maxLength:p,defaultLength:h,label:x,name:y,beforeAdd:v,afterDelete:j,column:b,list:N,listRender:A,itemTitle:C,outer:w,renderChildren:S,className:D,important:P,deleteButtonProps:F}=e;const I=(0,r.useRef)(null),k=(0,i.useFormContext)(),{formData:M}=k,T=!(p&&p<=f()(M,"".concat(y,".length"),0)),{formatMessage:E}=(0,m.useIntl)({moduleName:"FormInfo"}),O=()=>{"function"===typeof v&&!1===v(y,k,{isUnshift:d,group:I.current})||I.current.onAdd({isUnshift:d})};return(0,_.jsxs)(_.Fragment,{children:[(0,r.cloneElement)(w,{title:t,addText:n,className:u()(D,g.A["list-part"]),allowAdd:d&&T,add:O},S((0,_.jsx)(i.GroupList,{name:y,defaultLength:h,ref:I,children:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const[i,{index:d,onRemove:p,length:h}]=n,f={key:i,column:b,list:"function"===typeof N?N(...n,k):N,title:"function"===typeof C?C({index:d,key:i,onRemove:p}):C,groupArgs:n,extra:(0,_.jsx)(m.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>o&&o>=h?null:(0,_.jsx)(s.default,{danger:!0,className:"btn-no-padding",message:E({id:"delConfirm"},{name:x||t}),type:"link",onClick:()=>{p(i),j&&j(...n,k)},...Object.assign({},F),children:null!==F&&void 0!==F&&F.children?null===F||void 0===F?void 0:F.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.default,{type:"icon-shanchu"}),e]})})})};return(0,_.jsxs)("div",{className:u()(g.A["list-item"],{[g.A["is-important"]]:P}),children:["function"===typeof A?A(f):(0,_.jsx)(c.A,{...f,className:g.A["list-item-part"],gap:16}),(0,_.jsx)(a.Divider,{})]},i)}}))),!d&&T?(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(a.Button,{onClick:O,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})}):null]})}));x.defaultProps={minLength:0,isUnshift:!0,defaultLength:1,outer:(0,_.jsx)((e=>{let{add:t,addText:n,className:r,allowAdd:s,...i}=e;return(0,_.jsx)(o.default.Part,{...i,className:r,extra:s&&(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(a.Typography.Text,{className:g.A["list-btn"],onClick:t,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})})})}),{}),renderChildren:e=>e};const y=x},97949:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(73884),a=n(55199),s=n(98434),l=n(64671),o=n(33097),i=n.n(o),c=n(47094),d=n(83136),u=n.n(d),p=n(70579);const m=e=>{let{name:t,label:n,rule:o,field:d,defaultLength:m,minLength:h,maxLength:f,...g}=e;const _=(0,r.useRef)(null),x=d,y=(0,s.useFormContext)(),{formData:v}=y,j=!(f&&f<=i()(v,"".concat(t,".length"),0));return(0,p.jsxs)("div",{className:u()(c.A["mult-field"],"mult-field"),children:[(0,p.jsx)(s.GroupList,{ref:_,name:t,defaultLength:Math.max(m,h,1),children:(e,r)=>{let{index:s,onRemove:i,length:d}=r;return(0,p.jsxs)("div",{className:u()(c.A["mult-field-item"],"mult-field-item",{[c.A["first-item"]]:0===s}),children:[(0,p.jsx)(x,{...g,name:t,label:n,rule:o}),(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"react-form__field-label"}),(0,p.jsx)(a.Button,{icon:(0,p.jsx)(l.default,{type:"shanchu"}),onClick:i,disabled:d<=Math.max(h,1)})]})]},e)}}),j&&(0,p.jsxs)(a.Button,{className:c.A["mult-field-add-btn"],type:"dashed",onClick:()=>_.current.onAdd(),children:[(0,p.jsx)(l.default,{type:"tianjia"}),"\u6dfb\u52a0",n]})]})};m.defaultProps={minLength:1,defaultLength:1};const h=m},18936:(e,t,n)=>{n.d(t,{A:()=>T});const r={"ant-tag":"style_ant-tag__7ct2q__rDYyQ",overlay:"style_overlay__CXfU5__rDYyQ",input:"style_input__+OpvV__rDYyQ","is-disabled":"style_is-disabled__uX4qq__rDYyQ","input-icon":"style_input-icon__E3NjK__rDYyQ",large:"style_large__vMozz__rDYyQ",small:"style_small__ubqQ+__rDYyQ","input-inner":"style_input-inner__sY-6k__rDYyQ","input-custom":"style_input-custom__Kxq3n__rDYyQ","display-content":"style_display-content__qA1jn__rDYyQ","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__rDYyQ","selected-tag":"style_selected-tag__BZsMM__rDYyQ","selected-tag-list":"style_selected-tag-list__As0ho__rDYyQ","selected-tag-inner":"style_selected-tag-inner__2NH59__rDYyQ","text-inner":"style_text-inner__Bq2Ji__rDYyQ",placeholder:"style_placeholder__odotY__rDYyQ","is-modal":"style_is-modal__4cj8L__rDYyQ","overlay-content":"style_overlay-content__kpGRn__rDYyQ"};var a=n(74981);const{context:s,useContext:l,Provider:o,Consumer:i}=(0,a.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),f=n(55199),g=n(83136),_=n.n(g),x=n(3382),y=n(64671),v=n(79686),j=n.n(v),b=n(41740),N=n.n(b),A=n(74065),C=n.n(A),w=n(17342),S=n(70579);const D=e=>{let{maxLength:t,single:n,setValue:r,value:a,message:s}=e;return e=>r(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),a):e)},P=e=>{let{single:t,value:n,mapping:a,onClose:s}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,S.jsx)("span",{className:r["text-inner"],children:h()(a.get(n[0]),"label")||n[0]}):n.map((e=>{const t=a.get(e);return(0,S.jsx)(f.Tag,{className:r["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),s(e,t)},children:(0,S.jsx)("span",{className:r["tag-inner"],children:h()(t,"label")||e})},e)})):null},F=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:a,extra:s,showSelectedTag:l,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n);m.current=n;const[h,g]=(0,c.useState)(!1),{message:_}=f.App.useApp(),y=D({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:_.error});return(0,c.useEffect)((()=>{h&&p(m.current)}),[h]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{g(!0)},close:()=>{g(!1)}}))),(0,S.jsx)(x.default,{...d,open:h,onConfirm:()=>{a(u)},onClose:()=>{g(!1)},footer:(l||s)&&(0,S.jsxs)(f.Space,{direction:"vertical",className:r["overlay-footer"],children:[s&&(0,S.jsx)("div",{className:r["overlay-footer-extra"],children:s}),l&&o({value:u,setValue:y})]}),children:"function"===typeof i?i({value:u,setValue:y}):i})})),I=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:a,children:s,renderSelectedContent:l,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,...g}=e;const[_,x]=(0,c.useState)(!1);return(0,c.useImperativeHandle)(t,(()=>({close:()=>{x(!1)}})),[]),(0,S.jsx)(f.Popover,{...g,open:_,onOpenChange:x,overlayClassName:r.overlay,arrow:!1,content:(0,S.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:r["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,S.jsx)("div",{className:r["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&a(e),u&&x(!1)}}):s}),(o||p)&&(0,S.jsxs)("div",{className:r["overlay-footer"],children:[p&&(0,S.jsx)("div",{className:r["overlay-footer-extra"],children:p}),o&&l({value:n,setValue:a})]})]}),trigger:"click",placement:i,children:(0,S.jsx)("div",{className:r["input-inner"],children:d})})})),k=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,...a}=e;const[s,o]=(0,c.useState)(!1),i=(0,c.useRef)(null),d=(0,c.useRef)(null),u=l(),{valueState:p,mapping:m,props:h}=u,[g,x]=p,{single:v,placement:j,getPopupContainer:b,placeholder:N,isPopup:A,disabled:C,showSelectedTag:D,extra:k,inputContent:M}=h,T=(0,c.useRef)(a);T.current=a,(0,c.useEffect)((()=>{t(Object.assign({},T.current,{data:a.data,isComplete:a.isComplete}))}),[a.data,t,a.isComplete]);const E=P({single:v,value:g,mapping:m,onClose:e=>{x((t=>{const n=t.slice(0),r=t.indexOf(e);return r>-1&&n.splice(r,1),n}))}}),O=e=>{let{value:t,setValue:n}=e;return(0,S.jsxs)(f.Space,{className:r["selected-tag"],align:"center",wrap:!0,children:[(0,S.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?"(".concat(t.length,"/").concat(h.maxLength,")"):"",":"]}),(0,S.jsx)(w.A,{className:r["selected-tag-list"],children:(0,S.jsx)("div",{className:r["selected-tag-inner"],children:P({value:t,mapping:m,onClose:e=>{n((t=>{const n=t.slice(0),r=t.indexOf(e);return r>-1&&n.splice(r,1),n}))}})})})]})},R=M?M(u):(0,S.jsxs)(f.Space,{className:r["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,S.jsx)("div",{children:E||(0,S.jsx)("span",{className:r.placeholder,children:N})}),s&&g&&g.length>0&&!C?(0,S.jsx)(y.default,{className:_()(r.close,r["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,S.jsx)(y.default,{className:_()(r["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return A?(0,S.jsx)(I,{ref:d,overlayWidth:h.overlayWidth,value:g,setValue:x,single:v,inputContent:R,extra:"function"===typeof k?k({close:()=>d.current.close(),context:u}):k,renderSelectedContent:O,showSelectedTag:D,trigger:"click",placement:j,getPopupContainer:b,children:h.children}):(0,S.jsxs)("div",{className:r["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,S.jsx)(F,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(r.overlay,r["is-modal"],n),title:h.placeholder,value:g,onChange:x,extra:"function"===typeof k?k({close:()=>i.current.close(),context:u}):k,showSelectedTag:D,renderSelectedContent:O,children:h.children}),R]})})),M=e=>{let{api:t,className:n,displayItems:a,wrapClassName:s,...l}=e;const[i,d]=(0,c.useState)(""),[p,m]=(0,c.useState)(new Map(a.map((e=>[e.value,e])))),[g,x]=(0,c.useState)({}),{message:y}=f.App.useApp(),v=e=>{const t=e.filter((e=>p.get(e.value)!==e));0!==t.length&&m((e=>{const n=N()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},b=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map((e=>e.value))))(l.single?j()(e)?[]:[e]:e||[],v,l.valueType),[A,w]=u()(Object.assign({},l,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))))(e,p,l.valueType);l.onChange&&l.onChange(l.single?C()(t):t)}},"value"in l?{value:b(l.value)}:{defaultValue:b(l.defaultValue)})),P=D({maxLength:l.maxLength,single:l.single,setValue:w,value:A,message:y.error});return(0,S.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:d,appendMapping:v,setItems:e=>{g.setData(e),v(h()(l.dataFormat(e),"list",[]))},fetchApi:g,valueState:[A,P],props:l},children:(0,S.jsx)("div",{className:_()(r["input".concat(l.inputContent&&"function"===typeof l.inputContent?"-custom":"")],n),children:(0,S.jsx)(k,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{v(h()(l.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};M.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},M.useContext=l;const T=M},97056:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(85846),a=n(83560),s=n(55199),l=n(41740),o=n.n(l),i=n(73884),c=n(83136),d=n.n(c),u=n(47094),p=n(70579);const m=(0,i.forwardRef)(((e,t)=>{const[n,r]=(0,i.useState)(new Map);return(0,i.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{r((t=>{if(t.has(e.key))return t;const n=o()(t);return n.set(e.key,e.props),n}))}))}),[]),(0,p.jsxs)(s.Row,{wrap:!1,className:u.A["table-list-header"],style:{"--col-width":"".concat(100/n.size,"%")},children:[Array.from(n).map((e=>{let[t,{label:n,rule:r}]=e;return(0,p.jsx)(s.Col,{className:d()({[u.A["is-req"]]:0===(r||"").split(" ").indexOf("REQ")}),children:n},t)})),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"]})]})})),h=e=>{let{list:t,className:n,...l}=e;const o=(0,i.useRef)(null);return(0,p.jsx)(r.A,{...l,className:d()(n,u.A["table-list"]),list:t,renderChildren:e=>(0,p.jsxs)("div",{className:u.A["table-list-inner"],children:[(0,p.jsx)(m,{ref:o}),e]}),listRender:e=>{let{list:t,groupArgs:n,extra:r,key:l}=e;return(0,p.jsxs)(s.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,p.jsx)(a.A,{list:t,groupArgs:n,itemRender:(e,t)=>(o.current(t),(0,p.jsx)(s.Col,{className:u.A["table-list-field"],flex:1,children:e}))}),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"],children:r})]},l)}})}},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var r=n(98434),a=n(36);const{useOnChange:s,useDecorator:l}=r.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.AddressSelectField);o.Field=a.AddressSelectField,o.AddressEnum=a.AddressSelectField.AddressEnum,o.createAddressApi=a.AddressSelectField.createAddressApi,o.withAddressApi=a.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(a.AddressInputField);c.Field=a.AddressInputField},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var r=n(98434),a=n(36);const{useOnChange:s}=r.hooks,l=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(a.UserField),i=l(a.TableField),c=l(a.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return l((0,a.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},96339:(e,t,n)=>{n.d(t,{A:()=>L});var r=n(73884),a=n(29574),s=n(40438),l=n(76329),o=n(3382),i=n(64671),c=n(55199),d=n(53202),u=n.n(d),p=n(33097),m=n.n(p),h=n(83136),f=n.n(h),g=n(51941),_=n(98434),x=n(34677),y=n.n(x);const v="style_upload-btn__-6XtP__rDYyQ",j="style_square__UPkfA__rDYyQ",b="style_is-loading__wx6Pd__rDYyQ",N="style_upload-btn-tips__YtxWz__rDYyQ",A="style_drop-tips__N-v59__rDYyQ",C="style_preview-area__aV3SN__rDYyQ";var w=n(18411),S=n(58609),D=n(55431),P=n(70579);const{useOnChange:F}=_.hooks,I=s.default.Avatar,k="FormInfo",M=(0,a.Ay)((e=>{let{className:t,icon:n,loading:r,value:a,gender:s,width:l,height:o,children:d,shape:u,defaultAvatar:p,apis:h}=e;const g=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(I,{id:m()(a,"id"),gender:s,width:64*l/o,height:64,shape:u,defaultAvatar:p,apis:h}),(0,P.jsx)("div",{className:N,children:n||(0,P.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),d]});return(0,P.jsx)("div",{className:f()(t,v,{[b]:r,[j]:"square"===u||!(l&&l===o)}),style:{width:64*l/o},children:r?(0,P.jsx)(c.Spin,{children:g}):g})})),T=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),r=t[0].match(/:(.*?);/)[1],a=atob(n),s=a.length,l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);return new Blob([l],{type:r})},E=(0,r.forwardRef)(((e,t)=>{let{image:n,width:s,height:l,borderRadius:o,preview:d,fileSize:p,accept:m,renderTips:h,getApi:f,shape:_,border:x,...y}=e;const v=(0,S.useIntl)({moduleName:k}),[j,b]=(0,r.useState)(0),N=(0,r.useRef)(null),[w,D]=(0,r.useState)(n),[F,I]=(0,r.useState)(1),[M,E]=(0,r.useState)(0),[O,R]=(0,r.useState)(""),Q=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{b(2*N.current.clientWidth/3)}),[]),f({getImage:()=>{const e=Q.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=s,t.height=l,n.drawImage(e,0,0,t.width,t.height),new window.File([T(t.toDataURL())],w.name,{type:w.type})}});const L=()=>{R(Q.current.getImage().toDataURL())},Y=(0,g.useDebouncedCallback)(L,500);return(0,P.jsx)("div",{ref:N,children:(0,P.jsxs)(c.Row,{wrap:!1,align:"middle",children:[(0,P.jsx)(c.Col,{span:d?16:24,children:j&&(0,P.jsxs)(c.Space,{direction:"vertical",children:[(0,P.jsx)(u(),{...y,ref:Q,image:w,scale:F,rotate:M,width:j-2*x,height:l*j/s-2*x*l/s,border:x,color:[0,0,0,.6],borderRadius:o*j/s,onImageReady:L,onImageChange:Y}),(0,P.jsx)("div",{className:A,children:h("".concat(v.formatMessage({id:"PictureFormat"})).concat(m.map((e=>e.replace(/^\./,""))).join(" ")," ").concat(v.formatMessage({id:"ImageSize"})).concat(v.formatMessage({id:"NotExceeding"},{size:p})),{accept:m,fileSize:p})}),(0,P.jsxs)(c.Row,{gutter:14,align:"middle",children:[(0,P.jsx)(c.Col,{children:(0,P.jsx)(c.Tooltip,{title:v.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,P.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{E((e=>(e-90)%360))}})})}),(0,P.jsx)(c.Col,{children:(0,P.jsx)(c.Tooltip,{title:v.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,P.jsx)(i.default,{type:"icon-chongman",onClick:()=>{I(1)}})})}),(0,P.jsx)(c.Col,{flex:1,children:(0,P.jsx)(c.Slider,{tooltip:{placement:"bottom",formatter:()=>v.formatMessage({id:"Size"})},value:F,step:.05,min:.2,max:3,onChange:I})}),(0,P.jsx)(c.Col,{children:(0,P.jsx)(a.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?c.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(E(0),I(1),D(e[0]))},children:(0,P.jsx)(S.FormattedMessage,{id:"ReUpload",moduleName:k})})})]})]})}),d&&(0,P.jsx)(c.Col,{span:8,children:(0,P.jsx)("div",{className:C,children:(0,P.jsxs)(c.Space,{direction:"vertical",children:[(0,P.jsx)(c.Avatar,{src:O,shape:_,style:{width:j/2-36,height:(j/2-36)*l/s}}),(0,P.jsx)("div",{style:{textAlign:"center"},children:(0,P.jsx)(S.FormattedMessage,{id:"Preview",moduleName:k})})]})})})]})})}));E.defaultProps={border:1};const O=()=>{const e=(0,o.useModal)();return t=>{const{image:n,width:r,height:a,borderRadius:s,getApi:l,preview:o,fileSize:i,accept:c,renderTips:d,border:u,dropModalSize:p,...m}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...m,size:p,children:(0,P.jsx)(E,{preview:o,fileSize:i,accept:c,getApi:l,renderTips:d,width:r,height:a,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:n,border:u,scale:1,rotate:0})})}},R=e=>{let{value:t,gender:n,fileSize:a,accept:s,openEditor:o,apis:i,renderTips:d,onChange:u,shape:p,width:m,height:h,title:f,border:g,icon:_,dropModalSize:x,defaultAvatar:v}=e;const[j,b]=(0,r.useState)(!1),{apis:N}=(0,l.usePreset)(),A=y()({},N,i),{ossUpload:C}=A,w=(0,r.useRef)(null),D=O(),F=(0,S.useIntl)({moduleName:k});return(0,P.jsx)(M,{value:t,gender:n,accept:s,width:m,height:h,shape:p,icon:_,loading:j,defaultAvatar:v,apis:A,onChange:e=>{if(e[0].size>1024*a*1024)return void c.message.error(F.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:a}));const t=e=>(b(!0),C({file:e}).then((e=>{let{data:t}=e;0===t.code?u(t.data):c.message.error(F.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{b(!1)})));o?D({image:e[0],width:m,height:h,title:f,shape:p,border:g,dropModalSize:x,getApi:e=>w.current=e,fileSize:a,accept:s,renderTips:d,onConfirm:()=>{t(w.current.getImage())}}):t(e[0])}})};R.defaultProps={defaultAvatar:w.A,openEditor:!0,fileSize:2,width:200,height:200,dropModalSize:"small",border:1,title:(0,P.jsx)(S.IntlProvider,{importMessages:D.A,moduleName:"FormInfo",children:(0,P.jsx)(S.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),accept:[".jpg",".png",".jpeg"],renderTips:e=>e,shape:"circle"};const Q=e=>F(e)(R);Q.defaultProps={},Q.Field=Q,Q.useDropModal=O;const L=Q},83230:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(98434),a=n(36);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.CascaderField);l.Field=a.CascaderField,l.createTreeUtils=a.createTreeUtils;const o=l},81026:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(36),a=n(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.FunctionSelectField);l.Field=r.FunctionSelectField,l.Enum=r.FunctionSelectField.Enum;const o=l},78756:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(36),a=n(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.IndustrySelectField);l.Field=r.IndustrySelectField,l.Enum=r.IndustrySelectField.Enum;const o=l},15209:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(55199),a=n(10986),s=n.n(a),l=n(13050),o=n(70579);const i=e=>{let{...t}=e;const[n,a]=s()(t);return(0,o.jsx)(r.Input,{...t,value:n,onChange:e=>{a(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},c=(0,l.createWithRemoteLoader)({modules:["FormInfo@formModule"]})((e=>{let{remoteModules:t,...n}=e;const[r]=t,{hooks:a}=r,{useDecorator:s}=a;return s(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(i)}));c.field=i;const d=c},92328:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(10986),a=n.n(r),s=n(98434),l=n(55199),o=n(69484);const i="style_money-input__Pyur7__rDYyQ",c="style_money-description__9pFk4__rDYyQ";var d=n(83136),u=n.n(d),p=n(34677),m=n.n(p),h=n(73884),f=n(70579);const{isNotEmpty:g}=s.util,{useOnChange:_}=s.hooks,x=e=>{let{chineseEmpty:t,className:n,showError:r,errorDesc:s,transformMoneyToChinese:d,onBlur:p,moneyFormat:_,...x}=e;const[y,v]=(0,h.useState)(""),[j,b]=a()(x),N=m()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:g(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,f.jsxs)("div",{className:u()(n,"money-input",i),children:[(0,f.jsx)(l.InputNumber,{...N,status:y,formatter:_?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return g(t)?(Number(t)>Number(N.max)||g(N.min)&&Number(t)<Number(N.min))&&v("error"):v(""),g(t)?Number(t):null},onChange:e=>{b(e)},onBlur:e=>{p&&p(e,v)}}),(0,f.jsx)("div",{className:u()(c),children:"error"===y&&r?s:g(j)?(0,o.A)(d?d(j):j):t})]})},y=e=>_(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(x);y.Field=x,y.toChineseCharacter=o.A;const v=y},88893:(e,t,n)=>{n.d(t,{N:()=>y,A:()=>v});var r=n(88701),a=n(55199),s=n(98434),l=n(78491),o=n.n(l),i=n(10986),c=n.n(i),d=n(33097),u=n.n(d);const p={"country-select":"style_country-select__Ztf-V__rDYyQ","flag-img":"style_flag-img__RGhcM__rDYyQ"};var m=n(13050),h=n(70579);const{useDecorator:f}=s.hooks,g=(0,m.createWithRemoteLoader)({modules:["components-iconfont:CountyFlag"]})((e=>{let{remoteModules:t,value:n,onChange:r}=e;const[s]=t;return(0,h.jsx)(s,{children:e=>{let{list:t}=e;return(0,h.jsx)(a.Select,{popupMatchSelectWidth:300,className:p["country-select"],value:n||"CN",onChange:r,placeholder:"\u8bf7\u9009\u62e9\u56fd\u5bb6",showSearch:!0,filterOption:(e,t)=>t.name.indexOf(e)>-1,optionLabelProp:"code",options:t.map((e=>{let{country_name_cn:t,country_code:n,ab:r}=e;return{value:r,code:"(+".concat(n,")"),name:t,label:(0,h.jsxs)(a.Space,{align:"center",children:[(0,h.jsx)("span",{className:p["country-name"],children:t}),(0,h.jsxs)("div",{children:["(+",n,")"]})]})}}))})}})})),_=e=>{const{className:t,onBlur:n,name:s,...l}=e,[i,d]=c()(e),p=o()(n||(()=>{})),m=e=>new r.AsYouType(u()(e,"code","CN")).input(u()(e,"value",""));return(0,h.jsx)("div",{className:t,ref:p,children:(0,h.jsx)(a.Input,{...l,addonBefore:(0,h.jsx)(g,{value:u()(i,"code","CN"),onChange:e=>{d&&d(Object.assign({},i,{code:e,value:m({code:e,value:u()(i,"value","")})})),n&&n()}}),value:u()(i,"value",""),onChange:e=>{d&&d(Object.assign({code:"CN"},i,{value:e.target.value,code:u()(i,"code","CN")}))},onBlur:e=>{d&&d(Object.assign({code:"CN"},i,{value:m({value:e.target.value,code:u()(i,"code","CN")})})),n&&n()}})})},x=e=>{let{rule:t,...n}=e;const r=f(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||""),rule:(e=>{const t=(e||"").split(" "),n=t.indexOf("REQ");return n>-1?t.splice(n+1,0,"PHONE_NUMBER"):t.unshift("PHONE_NUMBER"),t.join(" ")})(t)},n));return r(_)};x.Field=_,x.defaultProps={},x.format=e=>{let{code:t,value:n}=e;const a=t?(0,r.getCountryCallingCode)(t):null;return a&&n?"+".concat(a," ").concat(n):""},x.parsePhoneNumber=e=>{let{phoneNumber:t}=e;const{country:n,countryCallingCode:a,nationalNumber:s}=t?(0,r.parsePhoneNumber)(t):null;return s&&t?{country:n,countryCallingCode:a,nationalNumber:s}:""};const y=async(e,t)=>{let{field:r}=t;if((r.rule||"").split(" ").indexOf("REQ")>-1&&!u()(e,"value"))return{result:!1,errMsg:"%s\u4e0d\u80fd\u4e3a\u7a7a"};if(!u()(e,"value"))return{result:!0};return{result:await Promise.all([n.e(8481),n.e(6900)]).then(n.bind(n,6900)).then((t=>{let{isValidPhoneNumber:n}=t;return n(u()(e,"value",""),{defaultCountry:u()(e,"code","CN"),extract:!0})})),errMsg:"%s\u683c\u5f0f\u4e0d\u6b63\u786e"}},v=x},36972:(e,t,n)=>{n.d(t,{A:()=>P});var r=n(73884),a=n(98434),s=n(78491),l=n.n(s),o=n(55199);const i="style_salary__sUOtT__rDYyQ",c="style_salary-type__Sl1LC__rDYyQ",d="style_input-number__eoEZr__rDYyQ",u="style_full__NPqJm__rDYyQ",p="style_input-group__toLB7__rDYyQ",m="style_input-group-no-mb__C4nzh__rDYyQ";var h=n(58609),f=n(55431),g=n(48731),_=n(10986),x=n.n(_),y=n(21079),v=n(70579);const{field:j}=a.Select.Fetch,{useDecorator:b,useUIDecorator:N}=a.hooks,A=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},C=e=>{let{children:t,isError:n}=e;return(0,v.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,v.jsx)("div",{className:"react-form__field-main",children:(0,v.jsx)("div",{className:"react-form__field-input",children:(0,r.cloneElement)(t,{className:"react-form__field-component"})})})})},w=e=>{let{getPopupContainer:t,onBlur:n,api:r,isRange:a=!0,placeholder:s,disabled:f,showMonth:_,remindUnit:b,req:N,...w}=e;const[S,D]=x()(w),{formatMessage:P}=(0,h.useIntl)({moduleName:"FormInfo"}),F=P({id:"defaultSelectPlaceholder"},{label:""}),I=P({id:"defaultInputPlaceholder"},{label:""}),k=[6].indexOf((0,y.get)(S,"type"))>-1,M=1===(0,y.get)(S,"type"),T=7===(0,y.get)(S,"type"),E=e=>{if(e)return k?e/1e4:e},O=l()(n||(()=>{}));return(0,v.jsx)("div",{ref:O,className:i,children:(0,v.jsxs)(o.Row,{wrap:!1,gutter:10,children:[(0,v.jsx)(o.Col,{children:(0,v.jsx)(j,{className:c,...r,value:(0,y.get)(S,"type"),onChange:e=>{D&&D(Object.assign({},M?{}:S,{type:e,min:"",max:""}))},placeholder:s||F,getPopupContainer:t,disabled:f,children:e=>{let{data:t}=e;return{options:t||[]}}})}),M?null:(0,v.jsxs)(o.Col,{flex:1,children:[a&&(0,v.jsxs)(o.Row,{className:b&&[5,6].includes(null===S||void 0===S?void 0:S.type)?p:m,wrap:!1,children:[(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(C,{isError:!(0,y.get)(S,"min")&&N,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:I,formatter:A,value:E((0,y.get)(S,"min")),style:{textAlign:"center"},onChange:e=>{D(Object.assign({},S,{min:k?1e4*e:e}))},description:b&&[5,6].includes(null===S||void 0===S?void 0:S.type)?(0,v.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,v.jsx)(g.default,{name:null===S||void 0===S?void 0:S.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",k?P({id:"thousand"}):T?"":P({id:"yuan"})]}):null})})}),(0,v.jsx)(o.Col,{children:(0,v.jsx)(o.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(C,{isError:!(0,y.get)(S,"max")&&N,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:I,formatter:A,value:E((0,y.get)(S,"max")),style:{textAlign:"center"},addonAfter:k?P({id:"thousand"}):T?"":P({id:"yuan"}),onChange:e=>{D(Object.assign({},S,{max:k?1e4*e:e}))}})})}),5===(0,y.get)(S,"type")&&_&&(0,v.jsx)(o.Col,{children:(0,v.jsxs)("span",{className:(0,y.get)(S,"max")&&(0,y.get)(S,"min")&&!(0,y.get)(S,"month")&&N?"error":"",children:[(0,v.jsx)("span",{className:d,children:"X"}),(0,v.jsx)(o.InputNumber,{min:12,disabled:f,value:(0,y.get)(S,"month"),onChange:e=>{D(Object.assign({},S,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!a&&!T&&(0,v.jsx)(o.InputNumber,{disabled:f,min:0,max:1e8,placeholder:I,className:u,formatter:A,value:E((0,y.get)(S,"max")),style:{textAlign:"center"},addonAfter:k?P({id:"thousand"}):T?"":P({id:"yuan"}),onChange:e=>{D(Object.assign({},S,{max:k?1e4*e:e}))}}),!a&&T&&(0,v.jsx)(o.Input,{disabled:f,placeholder:I,className:u,onChange:e=>{D(Object.assign({},S,{max:e.target.value}))},value:(0,y.get)(S,"max"),style:{textAlign:"center"}})]})]})})},S=e=>(0,v.jsx)(h.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,v.jsx)(w,{...e})});S.defaultProps={api:{loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},defaultValue:{type:5,min:"",max:"",month:12}};const D=e=>{var t;return b({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(S)};D.Field=S;const P=D},50192:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(87558),a=n(83136),s=n.n(a);const l="style_table__A9nBK__rDYyQ";var o=n(21079),i=n(27777),c=n(98434),d=n(10986),u=n.n(d),p=n(73884),m=n(70579);const{useOnChange:h}=c.hooks,f=(0,r.withFetch)((e=>{let{...t}=e;const[n,r]=u()(t),a=["isLoading","isComplete","data","requestParams","error","send","refresh","reload","loadMore","setData"],c=(0,o.pick)(t,a),d=(0,o.omit)(t,a),{rowKey:h="id",columns:f,className:g,innerName:_,headerRender:x,footerRender:y}=d,v=t.dataFormat(c.data),j=(e,t,n)=>{let{current:a,rowKeyValue:s,dataIndex:l}=n;const o={},i=e.slice(0).map((e=>{if(e[h]===s)return o[e[h]]={...e,[l]:a},{...e,[l]:a};{const n=t[e[h]];return o[e[h]]=Object.assign({},e,n),Object.assign({},e,n)}})),d={pageData:i,totalCount:i.length};c.setData(d),r&&r(o)},b=(0,p.useRef)(null);return b.current=j,(0,p.useEffect)((()=>{v.list.every((e=>{const t=n[e[h]]||{};return Object.keys(e).every((e=>t.hasOwnProperty(e)))}))&&Object.keys(n).length===v.list.length||!c.isComplete||b.current(v.list,n,{})}),[c.isComplete,n,v.list,h]),(0,m.jsxs)("div",{children:[x&&x(c),(0,m.jsx)(i.Table,{...d,className:s()(l,g),rowKey:h,dataSource:v.list,pagination:!1,columns:f.map((e=>{const t={...e};return t.dataIndex?Object.assign({},t,{render:(e,r,a)=>{const s=!t.editable||("function"===typeof t.editable?t.editable(e,r,a,v.list):t.editable),l=r[h],i=n[l],d=(0,o.get)(i,t.dataIndex)||e;if(s&&t.field){var u,p;if(null!==(u=t.field)&&void 0!==u&&u.render)return(0,m.jsx)(m.Fragment,{children:t.field.render({value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(a[0]):a[0];return j(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...a,c)}},r,a,c)});const e=null===(p=t.field)||void 0===p?void 0:p.type;return(0,m.jsx)(e,{...(0,o.omit)(t.field,["type","getValue"]),value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(a[0]):a[0];return j(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...a,c)}})}return t.render?t.render(d,r,a):d}}):t}))}),y&&y(c)]})}));f.defaultProps={mergeList:(e,t)=>Object.assign({},t,{pageData:(e.pageData||[]).concat(t.pageData||[])}),dataFormat:e=>({list:e.pageData,total:e.totalCount})};const g=e=>{let{api:t,...n}=e;return(0,m.jsx)(f,{...n,...t})};g.defaultProps={api:{},value:{}};const _=e=>h(Object.assign({placeholder:"\u8bf7\u9009\u62e9".concat(e.label),innerName:e.name},e))(g);_.Field=g;const x=_},56259:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(89319),a=n(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{},e))(r.A);l.Field=r.A;const o=l},89099:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(55199),a=n(83136),s=n.n(a),l=n(10986),o=n.n(l);const i="style_upload__t422Q__rDYyQ",c="style_upload-list__Q9HDc__rDYyQ",d="style_tips__3Gpnu__rDYyQ";var u=n(64671),p=n(67390),m=n(98434),h=n(1488),f=n.n(h),g=n(29574),_=n(70579);const{useOnChange:x}=m.hooks,y=e=>{let{className:t,fileSize:n,maxLength:a,multiple:l,size:u,accept:m,children:h,renderTips:x,showUploadList:y,onSave:v,ossUpload:j,getPermission:b,...N}=e;const[A,C]=o()(N),w=A||[],{fileList:S,onFileSelected:D}=(0,g.lN)({multiple:l,onSave:v,ossUpload:j,fileSize:n,maxLength:a,value:w,onChange:C,concurrentCount:10}),P=[...S,...w],F=x("\u652f\u6301\u6269\u5c55\u540d".concat(m.map((e=>e.replace(/^\./,""))).join("\u3001"),",\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7").concat(n,"M\uff0c\u6700\u591a\u4e0a\u4f20").concat(a,"\u4e2a\u9644\u4ef6"),{fileSize:n,maxLength:a,accept:m});return(0,_.jsxs)(r.Space,{direction:"vertical",children:[(0,_.jsxs)(r.Space,{children:[(0,_.jsx)(g.Zi,{...f()(N,["value","onChange"]),size:u,multiple:l,accept:m,className:s()(i,t),onChange:D,children:h}),F&&(0,_.jsx)("div",{className:d,children:F})]}),y&&P.length>0&&(0,_.jsx)(p.List,{className:c,dataSource:P,infoItemRenders:[],getPermission:b||(e=>"delete"===e),apis:{onDelete:e=>{const t=w.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),C(t)}}})]})};y.defaultProps={defaultValue:[],children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u.default,{type:"icon-shangchuanfujian"}),"\u4e0a\u4f20\u9644\u4ef6"]}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30};const v=e=>x(e)(y);v.defaultProps={interceptor:"file-format"},v.Field=y;const j=v},10328:(e,t,n)=>{n.d(t,{A:()=>Y,E:()=>B});var r=n(98434),a=n(30096),s=n(1904),l=n(83230),o=n(81026),i=n(78756),c=n(92328),d=n(88893),u=n(89099),p=n(96339),m=n(36972),h=n(15209),f=n(50192),g=n(74529),_=n.n(g),x=n(73884),y=n(58609),v=n(33097),j=n.n(v),b=n(21079),N=n(46237),A=n(56259),C=n(21554),w=n(64671),S=n(55199),D=n(83136),P=n.n(D),F=n(47094),I=n(70579);const k=e=>t=>{const n=_()(...e)((e=>{let{forwardedRef:n,label:r,placeholder:a,...s}=e;return(0,I.jsx)(t,{...s,label:r,labelRender:()=>s.tips?(0,I.jsxs)(S.Space,{children:[r,(0,I.jsx)(C.default,{content:s.tips,children:(0,I.jsx)("span",{className:P()(F.A["field-tips"],{[F.A["label-hidden"]]:s.labelHidden}),children:(0,I.jsx)(w.default,{type:"icon-xinxi-miaobian"})})})]}):r,ref:n})})),r=(0,x.forwardRef)(((e,t)=>(0,I.jsx)(n,{...e,forwardedRef:t})));return Object.keys(t).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((e=>{r[e]=t[e]})),r},M=e=>t=>{let{placeholder:n,label:r,...a}=t;return(0,I.jsx)(y.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,I.jsx)(e,{...a,label:r,placeholder:n||t})})},T=e=>t=>{let{placeholder:n,label:r,...a}=t;return(0,I.jsx)(y.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,I.jsx)(e,{...a,label:r,placeholder:n||t})})},E=e=>t=>{const n=(0,r.useGroup)(),a=j()(n,"name"),s=(0,b.get)(n,"index"),l=(0,N.oc)();return l&&Array.isArray(l)&&l.length>0?l.map((n=>{if("string"===typeof n)return(0,x.createElement)(e,{...t,key:n});const{name:r,label:l,options:o}=n,i=j()(o,"ignore",[]),c=j()(o,"disabled",[]),d=j()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==a)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(d.length>0&&!d.find(u))return null;let p=Object.assign({},t,{name:j()(o,"nameTransform",((e,t)=>"".concat(e).concat(t)))(t.name,r),label:j()(o,"labelTransform",((e,t)=>e&&"".concat(e).concat(t)))(t.label,l)});return c.length>0&&c.find(u)&&(p.disabled=!0,p.rule=""),(0,x.createElement)(e,{...p,key:r})})):(0,I.jsx)(e,{...t})},O=k([E,M])(r.Input),R=k([E,M])(r.InputNumber);O.Password=k([E,M])(r.Input.Password);const Q=k([E,T])(r.DatePicker);Q.MonthPicker=k([E,T])(r.DatePicker.MonthPicker),Q.RangePicker=k([E,T])(r.DatePicker.RangePicker),Q.WeekPicker=k([E,T])(r.DatePicker.WeekPicker);const L=k([E,T])(r.TimePicker);L.RangePicker=k([E,T])(r.TimePicker.RangePicker);const Y={Input:O,InputNumber:R,DatePicker:Q,TimePicker:L,DatePickerToday:k([E])((e=>{let{placeholder:t,label:n,soFarText:a,...s}=e;const{formatMessage:l}=(0,y.useIntl)({moduleName:"FormInfo"});return(0,I.jsx)(r.DatePickerToday,{...s,label:n,placeholder:[l({id:"startDate"}),l({id:"endDate"})],soFarText:a||l({id:"soFarText"})})})),RadioGroup:k([E])(r.RadioGroup),CheckboxGroup:k([E])(r.CheckboxGroup),Rate:k([E])(r.Rate),Switch:k([E])(r.Switch),Slider:k([E])(r.Slider),TableInput:k([E])(f.A),SalaryInput:k([E])(m.A),TypeDateRangePicker:k([E])(A.A),MoneyInput:k([E])(c.A),PhoneNumber:k([E])(d.A),Upload:k([E])(u.A),Avatar:k([E])(p.A),FunctionSelect:k([E,T])(o.A),IndustrySelect:k([E,T])(i.A),Cascader:k([E,T])(l.A),AddressSelect:k([E,T])(s.A),AddressInput:k([E,T])(s.N),TreeSelect:k([E,T])(r.TreeSelect),ReactInputNumber:k([E,M])(r.InputNumber),InputUpperCase:k([E,M])(h.A),Select:k([E,T])(r.Select),TextArea:k([E,M])(r.TextArea),AdvancedSelect:k([E,T])(a.Ay)},B={createWithFieldDecorator:k,withInputDefaultPlaceholder:M,withSelectDefaultPlaceholder:T,withLang:E}},83799:(e,t,n)=>{n.d(t,{NI:()=>T,TQ:()=>d.A,JL:()=>M,eu:()=>_.A,vx:()=>u.A,lr:()=>U,s3:()=>W,lV:()=>a.A,d4:()=>p.A,ZN:()=>m.A,pd:()=>O,YI:()=>Y,h2:()=>E,F0:()=>h.A,go:()=>f.A,tt:()=>r.Rate,lu:()=>x.A,l6:()=>L,Ap:()=>r.Slider,dO:()=>r.Switch,N:()=>j.A,EY:()=>P,fs:()=>R,AG:()=>z,f7:()=>B,w5:()=>v.A,_O:()=>g.A,nk:()=>V});var r=n(98434),a=n(85696),s=n(58609),l=n(73884),o=n(30891),i=n(47094),c=n(30096),d=n(1904),u=n(83230),p=n(81026),m=n(78756),h=n(92328),f=n(88893),g=n(89099),_=n(96339),x=n(36972),y=n(15209),v=n(56259),j=n(50192),b=n(55199),N=n(10986),A=n.n(N),C=n(70579);const{useDecorator:w}=r.hooks,S=e=>{let{children:t,...n}=e;const[r]=A()(n);return(0,C.jsxs)(b.Typography.Text,{...n,children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(b.Input,{value:r})}),t||r]})},D=e=>w(e)(S);D.Field=S;const P=D;var F=n(45053);const I=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:r,label:a,...l}=t;return(0,C.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,C.jsx)(e,{...l,ref:n,label:a,placeholder:r||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},k=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:r,label:a,...l}=t;return(0,C.jsx)(s.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,C.jsx)(e,{...l,ref:n,label:a,placeholder:r||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},M=k(c.Ay),T=k(d.N),E=I(y.A),O=I(r.Input);O.Password=I(r.Input.Password);const R=(Q=r.TextArea,e=>{let{placeholder:t,label:n,className:r,...a}=e;return(0,C.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,C.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,C.jsx)(Q,{...a,label:n,placeholder:t||e})})})});var Q;const L=k(r.Select);L.Fetch=k(r.Select.Fetch),L.Fetch.field=r.Select.Fetch.field;const Y=I(r.InputNumber),B=k(r.TreeSelect);B.Fetch=k(r.TreeSelect.Fetch),B.Fetch.field=r.TreeSelect.Fetch.field;const z=k(r.TimePicker);z.RangePicker=k(r.TimePicker.RangePicker);const U=k(r.DatePicker);U.MonthPicker=k(r.DatePicker.MonthPicker),U.RangePicker=k(r.DatePicker.RangePicker),U.WeekPicker=k(r.DatePicker.WeekPicker);const W=e=>{let{placeholder:t,label:n,soFarText:a,...l}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(r.DatePickerToday,{...l,label:n,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:a||o({id:"soFarText"})})},V=Object.assign({},r,{Input:O,InputUpperCase:E,TextArea:R,Select:L,InputNumber:Y,TreeSelect:B,TimePicker:z,DatePicker:U,DatePickerToday:W,Form:a.A,FormItem:o.A,AdvancedSelect:M,AddressSelect:d.A,AddressInput:T,MoneyInput:h.A,PhoneNumber:f.A,Cascader:u.A,FunctionSelect:p.A,IndustrySelect:m.A,TypeDateRangePicker:v.A,Upload:g.A,Avatar:_.A,SalaryInput:x.A,TableInput:j.A,Text:P,Rate:r.Rate,Switch:r.Switch,Slider:r.Slider,ErrorTip:F.A})},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>l.A,MoneyInput:()=>x.F0,MultiField:()=>f.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>y.A,Slider:()=>x.Ap,Switch:()=>x.dO,TableInput:()=>x.N,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>v,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var r=n(64261),a=n(2196),s=n(10328),l=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),p=n(85696),m=n(30891),h=n(45053),f=n(97949),g=n(98434),_={};for(const j in g)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(j)<0&&(_[j]=()=>g[j]);n.d(t,_);var x=n(83799),y=n(18936);(0,r.A)(),a.A.fields=s.A,a.A.List=l.A,a.A.TableList=o.A,a.A.FormApiButton=i.A,a.A.FormModal=c.Ay,a.A.useFormModal=c.Vl,a.A.FormModalButton=c.W6,a.A.FormStepModal=d.Ay,a.A.useFormStepModal=d.$X,a.A.FormStepModalButton=d.Wp,a.A.FormDrawer=u.Ay,a.A.useFormDrawer=u.Xy,a.A.FormDrawerButton=u.WJ,a.A.Form=p.A,a.A.FormItem=m.A,a.A.ErrorTip=h.A,a.A.SubmitButton=g.SubmitButton,a.A.CancelButton=g.CancelButton,a.A.fieldDecorator=s.E,a.A.MultiField=f.A;const v=a.A},55431:(e,t,n)=>{n.d(t,{A:()=>r});const r=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},64261:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(98434),a=n(57469),s=n.n(a),l=n(34677),o=n.n(l),i=n(33097),c=n.n(i),d=(n(17448),n(88893)),u=n(46732),p=n(13050),m=n(70579);const h=async(e,t)=>{const{locale:n}=Object.assign({},t);r.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),r.interceptors.output.use("photo-string",(e=>{var t,n;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(n=t.split("?"))||void 0===n?void 0:n[0])||e.id:e})),r.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),r.interceptors.output.use("to-array",(e=>[e])),r.interceptors.input.use("array-single",(e=>e?[e]:[])),r.interceptors.output.use("array-single",(e=>e?e[0]:null)),r.interceptors.input.use("boolean-number",(e=>1===e||"1"===e)),r.interceptors.output.use("boolean-number",(e=>e?1:0)),r.interceptors.input.use("un-boolean",(e=>!e)),r.interceptors.output.use("un-boolean",(e=>!e)),r.interceptors.output.use("object-output-value",(e=>e?e.value||e.id:e)),r.interceptors.input.use("date-string",(e=>e?s()(e):null)),r.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),r.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t})),r.interceptors.output.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t})),r.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),r.interceptors.input.use("file-format",(e=>Array.isArray(e)?e.map((e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename}))):[]));const{default:a}=await(0,p.loadModule)("components-iconfont:CountyFlag@load"),l=await a(),i=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[t,n]}))),h=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[n,t]})));r.interceptors.output.use("phone-number-string",(e=>e.code&&e.value?"+".concat(i.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):"")),r.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t.length<3?{}:{code:h.get(Number(t[1])),value:t[2]}}));const f=r.RULES.REQ,g=r.RULES.LEN,_=(e,t)=>{t=Object.assign({},t);const r={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},a=c()(r,"".concat(e,".").concat(n));return a||c()(r,"".concat(e,".zh-CN"))};(0,r.preset)(o()({},{rules:{REQ:function(){return Object.assign({},f(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,a,s]=t;let l="";return s===a&&r.length!==Number(s)&&(l="LENGTH_EQUAL"),r.length<a&&(l="LENGTH_MORE"),s&&r.length>s&&(l="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(l,{start:a,end:s})})},PHONE_NUMBER:d.N,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,m.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:r.interceptors,RULES:r.RULES}):e))}},75363:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});const r=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var a=n(58609),s=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__rDYyQ",d="style_inner__bMKeU__rDYyQ",u="style_content__xTfWZ__rDYyQ",p="style_link__93j7O__rDYyQ";var m=n(48731),h=n(70579);const f=e=>{let{name:t,className:n}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:r,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:d,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},1454:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(55199),a=n(83136),s=n.n(a),l=n(64671);const o="style_part__+Vw3+__rDYyQ",i="style_part-title__Uw+4K__rDYyQ",c="style_collapse__ARl-O__rDYyQ",d="style_is-active__i1zHH__rDYyQ",u="style_part-title-sub__fcxT7__rDYyQ";var p=n(70579);const m=e=>{let{children:t,className:n,...a}=e;return(0,p.jsx)(r.Collapse,{...a,className:s()(c,"collapse",n),expandIcon:e=>{let{isActive:t}=e;return(0,p.jsx)(l.default,{size:12,className:s()({[d]:t,"is-active":t}),type:"icon-triangle-right"})},children:t})};m.Panel=r.Collapse.Panel;const h=m,f=e=>{let{className:t,children:n,...a}=e;return(0,p.jsx)(r.Space,{...a,className:t,direction:"vertical",size:24,children:n})};f.Part=e=>{let{className:t,title:n,subTitle:a,extra:l,children:c,...d}=e;return(0,p.jsx)(r.Card,{className:s()(o,"part",t,{"no-title":!n}),bordered:!1,title:n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:s()("part-title",i),children:n}),a&&(0,p.jsx)("div",{className:s()("part-title-sub",u),children:a})]}),extra:l,...d,children:c})},f.Collapse=h;const g=f},21554:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>P,TooltipInfoLabel:()=>C,default:()=>N});var r=n(55199),a=n(83136),s=n.n(a);const l="style_tooltip__zHGMI__rDYyQ",o="style_large__lvmsm__rDYyQ",i="style_small__nUt0r__rDYyQ",c="style_popup-content__-rKQN__rDYyQ",d="style_title__1EQPq__rDYyQ",u="style_important-info__qTSZY__rDYyQ",p="style_error__yTTq3__rDYyQ",m="style_warning__CMJxz__rDYyQ",h="style_success__AvJVx__rDYyQ",f="style_sub-title__uD8CH__rDYyQ",g="style_content__lzgUz__rDYyQ",_="style_alone__q6q82__rDYyQ",x="style_fetch-content__tEOEV__rDYyQ",y="style_fetch-loading__tN-WB__rDYyQ",v="style_title-info-icon__iY8Q+__rDYyQ";var j=n(70579);const b=e=>{let{overlayClassName:t,title:n,size:a,subtitle:x,content:y,importantInfo:v,importantInfoType:b,moreInfo:N,...A}=e;return(0,j.jsx)(r.Tooltip,{...A,overlayClassName:s()(t,l,{[i]:"small"===a,[o]:"large"===a}),title:(0,j.jsxs)(r.Space,{direction:"vertical",className:c,children:[n&&(0,j.jsx)("div",{className:d,children:n}),v&&(0,j.jsx)("div",{className:s()(u,{[h]:"success"===b,[m]:"warning"===b,[p]:"error"===b}),children:v}),x&&(0,j.jsx)("div",{className:f,children:x}),y&&(0,j.jsx)("div",{className:s()(g,{[_]:[n,x,v,N].every((e=>!e))}),children:y}),N&&(0,j.jsx)("div",{children:N})]})})};b.defaultProps={};const N=b;var A=n(64671);const C=e=>{let{title:t,tooltipTitle:n}=e;return(0,j.jsxs)("div",{children:[t,n?(0,j.jsx)(N,{...n,children:(0,j.jsx)("span",{children:(0,j.jsx)(A.default,{type:"icon-xinxi-miaobian",className:v,size:14})})}):null]})};var w=n(73884),S=n(87558);const D=e=>{let{api:t,children:n,fetchContent:a,showLoading:l,loadingClassName:o,force:i,...c}=e;const[d,u]=(0,w.useState)(!1),p=(0,S.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:m,isLoading:h,data:f,send:g}=p;return(0,j.jsx)(N,{...Object.assign({},c,m?a(f,p):{}),open:d,onOpenChange:async e=>{!e||m&&!i||await g({type:"refresh"}),u(e)},children:(0,j.jsxs)("span",{className:x,children:[n,l&&h?(0,j.jsx)(r.Spin,{size:"small",className:s()(o,y)}):null]})})};D.defaultProps={showLoading:!0};const P=D},47094:(e,t,n)=>{n.d(t,{A:()=>r});const r={"form-outer":"style_form-outer__IWUs0__rDYyQ","form-drawer":"style_form-drawer__uYDXS__rDYyQ","table-list":"style_table-list__6lp-A__rDYyQ","list-item":"style_list-item__hVzQa__rDYyQ","table-list-inner":"style_table-list-inner__uc8DK__rDYyQ","table-list-field":"style_table-list-field__JSJfB__rDYyQ","table-list-header":"style_table-list-header__KXvKa__rDYyQ","is-req":"style_is-req__LfXQf__rDYyQ","table-list-extra":"style_table-list-extra__faYTK__rDYyQ","list-btn":"style_list-btn__WKYkm__rDYyQ","form-info":"style_form-info__B8bAP__rDYyQ","list-part":"style_list-part__Ld0GA__rDYyQ","is-important":"style_is-important__vaBk1__rDYyQ","list-item-part":"style_list-item-part__MzKP7__rDYyQ","money-input":"style_money-input__J86Pb__rDYyQ","money-description":"style_money-description__Gz3p7__rDYyQ","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__rDYyQ","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__rDYyQ","helper-guide-field":"style_helper-guide-field__Wke3w__rDYyQ","error-tip-overlay":"style_error-tip-overlay__aNCGc__rDYyQ","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__rDYyQ","column-not-layout":"style_column-not-layout__+SXC+__rDYyQ","mult-field-item":"style_mult-field-item__eS0nJ__rDYyQ","first-item":"style_first-item__fLirI__rDYyQ","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__rDYyQ"}}}]);
2
+ //# sourceMappingURL=5846.e5459fd8.chunk.js.map