@kne-components/components-core 0.2.27 → 0.2.28

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 (155) hide show
  1. package/build/asset-manifest.json +122 -122
  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.f4c49b34.chunk.css +2 -0
  6. package/build/static/css/{1151.0b77a22f.chunk.css.map → 1151.f4c49b34.chunk.css.map} +1 -1
  7. package/build/static/css/1153.5755c9dc.chunk.css +2 -0
  8. package/build/static/css/{1153.7e2b4a31.chunk.css.map → 1153.5755c9dc.chunk.css.map} +1 -1
  9. package/build/static/css/1154.5a8145c4.chunk.css +2 -0
  10. package/build/static/css/{1154.2d0d02c8.chunk.css.map → 1154.5a8145c4.chunk.css.map} +1 -1
  11. package/build/static/css/1454.8e9570d5.chunk.css +2 -0
  12. package/build/static/css/{1454.3093f2db.chunk.css.map → 1454.8e9570d5.chunk.css.map} +1 -1
  13. package/build/static/css/1554.b6b284c6.chunk.css +2 -0
  14. package/build/static/css/{1554.849e8cbe.chunk.css.map → 1554.b6b284c6.chunk.css.map} +1 -1
  15. package/build/static/css/{2503.3251597d.chunk.css → 2503.4ea4d2f7.chunk.css} +2 -2
  16. package/build/static/css/{2503.3251597d.chunk.css.map → 2503.4ea4d2f7.chunk.css.map} +1 -1
  17. package/build/static/css/{2517.b2470b06.chunk.css → 2517.560572dc.chunk.css} +2 -2
  18. package/build/static/css/{2517.b2470b06.chunk.css.map → 2517.560572dc.chunk.css.map} +1 -1
  19. package/build/static/css/2716.4b2f6373.chunk.css +2 -0
  20. package/build/static/css/{2716.5be88fbd.chunk.css.map → 2716.4b2f6373.chunk.css.map} +1 -1
  21. package/build/static/css/{2730.f4772a6b.chunk.css → 2730.c84c06a0.chunk.css} +2 -2
  22. package/build/static/css/{2730.f4772a6b.chunk.css.map → 2730.c84c06a0.chunk.css.map} +1 -1
  23. package/build/static/css/{289.4cea53e4.chunk.css → 289.d18c3ecb.chunk.css} +2 -2
  24. package/build/static/css/{289.4cea53e4.chunk.css.map → 289.d18c3ecb.chunk.css.map} +1 -1
  25. package/build/static/css/{3142.881432f2.chunk.css → 3142.dfeede75.chunk.css} +2 -2
  26. package/build/static/css/{3142.881432f2.chunk.css.map → 3142.dfeede75.chunk.css.map} +1 -1
  27. package/build/static/css/{3843.4ee394cc.chunk.css → 3843.a73ca07a.chunk.css} +2 -2
  28. package/build/static/css/{3843.4ee394cc.chunk.css.map → 3843.a73ca07a.chunk.css.map} +1 -1
  29. package/build/static/css/4029.c9db0f1a.chunk.css +2 -0
  30. package/build/static/css/{4029.aba10b6e.chunk.css.map → 4029.c9db0f1a.chunk.css.map} +1 -1
  31. package/build/static/css/4265.42dec688.chunk.css +2 -0
  32. package/build/static/css/{4265.e5e1f022.chunk.css.map → 4265.42dec688.chunk.css.map} +1 -1
  33. package/build/static/css/4666.548f897d.chunk.css +2 -0
  34. package/build/static/css/{4666.da19b0fb.chunk.css.map → 4666.548f897d.chunk.css.map} +1 -1
  35. package/build/static/css/5443.2bccaa12.chunk.css +2 -0
  36. package/build/static/css/{5443.284d0ad5.chunk.css.map → 5443.2bccaa12.chunk.css.map} +1 -1
  37. package/build/static/css/5600.2136e4b2.chunk.css +2 -0
  38. package/build/static/css/{5600.e0bf041b.chunk.css.map → 5600.2136e4b2.chunk.css.map} +1 -1
  39. package/build/static/css/{5873.9d84f7ff.chunk.css → 5873.ebfa408a.chunk.css} +2 -2
  40. package/build/static/css/{5873.9d84f7ff.chunk.css.map → 5873.ebfa408a.chunk.css.map} +1 -1
  41. package/build/static/css/{5996.444a2dd9.chunk.css → 5996.31bec633.chunk.css} +2 -2
  42. package/build/static/css/{5996.444a2dd9.chunk.css.map → 5996.31bec633.chunk.css.map} +1 -1
  43. package/build/static/css/{6611.c730e857.chunk.css → 6611.f9fed565.chunk.css} +2 -2
  44. package/build/static/css/{6611.c730e857.chunk.css.map → 6611.f9fed565.chunk.css.map} +1 -1
  45. package/build/static/css/6779.d6e4cba8.chunk.css +2 -0
  46. package/build/static/css/{6779.ea695718.chunk.css.map → 6779.d6e4cba8.chunk.css.map} +1 -1
  47. package/build/static/css/7121.89ff6b9c.chunk.css +2 -0
  48. package/build/static/css/{7121.9314086d.chunk.css.map → 7121.89ff6b9c.chunk.css.map} +1 -1
  49. package/build/static/css/7227.4f2bd993.chunk.css +2 -0
  50. package/build/static/css/{7227.449065e7.chunk.css.map → 7227.4f2bd993.chunk.css.map} +1 -1
  51. package/build/static/css/8017.510cf72d.chunk.css +2 -0
  52. package/build/static/css/{8017.6b0a76a7.chunk.css.map → 8017.510cf72d.chunk.css.map} +1 -1
  53. package/build/static/css/8332.1b5ad220.chunk.css +2 -0
  54. package/build/static/css/{8332.8063f976.chunk.css.map → 8332.1b5ad220.chunk.css.map} +1 -1
  55. package/build/static/css/{8725.c5995423.chunk.css → 8725.e6bf595a.chunk.css} +2 -2
  56. package/build/static/css/{8725.c5995423.chunk.css.map → 8725.e6bf595a.chunk.css.map} +1 -1
  57. package/build/static/css/9968.47f58d49.chunk.css +2 -0
  58. package/build/static/css/{9968.eee4719e.chunk.css.map → 9968.47f58d49.chunk.css.map} +1 -1
  59. package/build/static/js/{1106.1b4bf619.chunk.js → 1106.cba94cd2.chunk.js} +2 -2
  60. package/build/static/js/{1106.1b4bf619.chunk.js.map → 1106.cba94cd2.chunk.js.map} +1 -1
  61. package/build/static/js/{1153.997f8c45.chunk.js → 1153.12ffa226.chunk.js} +3 -3
  62. package/build/static/js/{1153.997f8c45.chunk.js.map → 1153.12ffa226.chunk.js.map} +1 -1
  63. package/build/static/js/{1154.02b15254.chunk.js → 1154.4ba565be.chunk.js} +2 -2
  64. package/build/static/js/{1154.02b15254.chunk.js.map → 1154.4ba565be.chunk.js.map} +1 -1
  65. package/build/static/js/{1454.1e16f55e.chunk.js → 1454.9a5b2db4.chunk.js} +3 -3
  66. package/build/static/js/{1454.1e16f55e.chunk.js.map → 1454.9a5b2db4.chunk.js.map} +1 -1
  67. package/build/static/js/1554.bf4e1c34.chunk.js +3 -0
  68. package/build/static/js/{1554.36914fa3.chunk.js.map → 1554.bf4e1c34.chunk.js.map} +1 -1
  69. package/build/static/js/2503.5913f925.chunk.js +2 -0
  70. package/build/static/js/2503.5913f925.chunk.js.map +1 -0
  71. package/build/static/js/2517.d307103f.chunk.js +2 -0
  72. package/build/static/js/{2517.96913b93.chunk.js.map → 2517.d307103f.chunk.js.map} +1 -1
  73. package/build/static/js/{2716.f76d82b5.chunk.js → 2716.9908ad0f.chunk.js} +3 -3
  74. package/build/static/js/{2716.f76d82b5.chunk.js.map → 2716.9908ad0f.chunk.js.map} +1 -1
  75. package/build/static/js/{2730.719d8b5a.chunk.js → 2730.b7606d77.chunk.js} +2 -2
  76. package/build/static/js/{2730.719d8b5a.chunk.js.map → 2730.b7606d77.chunk.js.map} +1 -1
  77. package/build/static/js/{2814.6ee6b9ed.chunk.js → 2814.44d311d3.chunk.js} +2 -2
  78. package/build/static/js/{2814.6ee6b9ed.chunk.js.map → 2814.44d311d3.chunk.js.map} +1 -1
  79. package/build/static/js/{289.90c57076.chunk.js → 289.6c924afe.chunk.js} +2 -2
  80. package/build/static/js/{289.90c57076.chunk.js.map → 289.6c924afe.chunk.js.map} +1 -1
  81. package/build/static/js/{3142.0e8ca696.chunk.js → 3142.94d29aa7.chunk.js} +2 -2
  82. package/build/static/js/{3142.0e8ca696.chunk.js.map → 3142.94d29aa7.chunk.js.map} +1 -1
  83. package/build/static/js/{36.7f770ad7.chunk.js → 36.5aba5cce.chunk.js} +2 -2
  84. package/build/static/js/{36.7f770ad7.chunk.js.map → 36.5aba5cce.chunk.js.map} +1 -1
  85. package/build/static/js/{3843.c46bd764.chunk.js → 3843.4b7781ba.chunk.js} +2 -2
  86. package/build/static/js/{3843.c46bd764.chunk.js.map → 3843.4b7781ba.chunk.js.map} +1 -1
  87. package/build/static/js/{4029.265928de.chunk.js → 4029.6d5521dc.chunk.js} +2 -2
  88. package/build/static/js/{4029.265928de.chunk.js.map → 4029.6d5521dc.chunk.js.map} +1 -1
  89. package/build/static/js/{4265.304283f8.chunk.js → 4265.d1bdfc8c.chunk.js} +2 -2
  90. package/build/static/js/{4265.304283f8.chunk.js.map → 4265.d1bdfc8c.chunk.js.map} +1 -1
  91. package/build/static/js/{4666.7a20c768.chunk.js → 4666.60cc27df.chunk.js} +3 -3
  92. package/build/static/js/{4666.7a20c768.chunk.js.map → 4666.60cc27df.chunk.js.map} +1 -1
  93. package/build/static/js/{5443.8df19218.chunk.js → 5443.ba229912.chunk.js} +2 -2
  94. package/build/static/js/{5443.8df19218.chunk.js.map → 5443.ba229912.chunk.js.map} +1 -1
  95. package/build/static/js/5600.67e74e25.chunk.js +2 -0
  96. package/build/static/js/{5600.e1d0e4ef.chunk.js.map → 5600.67e74e25.chunk.js.map} +1 -1
  97. package/build/static/js/{5873.b3f8d23c.chunk.js → 5873.cd1ed1e7.chunk.js} +2 -2
  98. package/build/static/js/{5873.b3f8d23c.chunk.js.map → 5873.cd1ed1e7.chunk.js.map} +1 -1
  99. package/build/static/js/{5996.ed707177.chunk.js → 5996.86288674.chunk.js} +2 -2
  100. package/build/static/js/{5996.ed707177.chunk.js.map → 5996.86288674.chunk.js.map} +1 -1
  101. package/build/static/js/{6569.38e27adf.chunk.js → 6569.1c942752.chunk.js} +2 -2
  102. package/build/static/js/{6569.38e27adf.chunk.js.map → 6569.1c942752.chunk.js.map} +1 -1
  103. package/build/static/js/6611.807344e6.chunk.js +2 -0
  104. package/build/static/js/{6611.a906724a.chunk.js.map → 6611.807344e6.chunk.js.map} +1 -1
  105. package/build/static/js/{6779.8ba15cc1.chunk.js → 6779.5a8cbf1b.chunk.js} +2 -2
  106. package/build/static/js/{6779.8ba15cc1.chunk.js.map → 6779.5a8cbf1b.chunk.js.map} +1 -1
  107. package/build/static/js/{6915.9cec5f64.chunk.js → 6915.cd6f843c.chunk.js} +2 -2
  108. package/build/static/js/{6915.9cec5f64.chunk.js.map → 6915.cd6f843c.chunk.js.map} +1 -1
  109. package/build/static/js/7121.e2c2ae61.chunk.js +2 -0
  110. package/build/static/js/{7121.81222779.chunk.js.map → 7121.e2c2ae61.chunk.js.map} +1 -1
  111. package/build/static/js/{7227.52125a8b.chunk.js → 7227.b4b0d9d6.chunk.js} +3 -3
  112. package/build/static/js/{7227.52125a8b.chunk.js.map → 7227.b4b0d9d6.chunk.js.map} +1 -1
  113. package/build/static/js/{7790.83225419.chunk.js → 7790.5e2f4e05.chunk.js} +2 -2
  114. package/build/static/js/{7790.83225419.chunk.js.map → 7790.5e2f4e05.chunk.js.map} +1 -1
  115. package/build/static/js/{8017.306e08e7.chunk.js → 8017.737e2936.chunk.js} +2 -2
  116. package/build/static/js/{8017.306e08e7.chunk.js.map → 8017.737e2936.chunk.js.map} +1 -1
  117. package/build/static/js/{8332.f432be55.chunk.js → 8332.0419e33c.chunk.js} +2 -2
  118. package/build/static/js/{8332.f432be55.chunk.js.map → 8332.0419e33c.chunk.js.map} +1 -1
  119. package/build/static/js/{8725.d4097ce5.chunk.js → 8725.505ca68d.chunk.js} +2 -2
  120. package/build/static/js/{8725.d4097ce5.chunk.js.map → 8725.505ca68d.chunk.js.map} +1 -1
  121. package/build/static/js/{9968.79e52d50.chunk.js → 9968.e60952f0.chunk.js} +2 -2
  122. package/build/static/js/{9968.79e52d50.chunk.js.map → 9968.e60952f0.chunk.js.map} +1 -1
  123. package/build/static/js/{main.692134e5.js → main.e25f1730.js} +2 -2
  124. package/build/static/js/{main.692134e5.js.map → main.e25f1730.js.map} +1 -1
  125. package/package.json +1 -1
  126. package/build/static/css/1151.0b77a22f.chunk.css +0 -2
  127. package/build/static/css/1153.7e2b4a31.chunk.css +0 -2
  128. package/build/static/css/1154.2d0d02c8.chunk.css +0 -2
  129. package/build/static/css/1454.3093f2db.chunk.css +0 -2
  130. package/build/static/css/1554.849e8cbe.chunk.css +0 -2
  131. package/build/static/css/2716.5be88fbd.chunk.css +0 -2
  132. package/build/static/css/4029.aba10b6e.chunk.css +0 -2
  133. package/build/static/css/4265.e5e1f022.chunk.css +0 -2
  134. package/build/static/css/4666.da19b0fb.chunk.css +0 -2
  135. package/build/static/css/5443.284d0ad5.chunk.css +0 -2
  136. package/build/static/css/5600.e0bf041b.chunk.css +0 -2
  137. package/build/static/css/6779.ea695718.chunk.css +0 -2
  138. package/build/static/css/7121.9314086d.chunk.css +0 -2
  139. package/build/static/css/7227.449065e7.chunk.css +0 -2
  140. package/build/static/css/8017.6b0a76a7.chunk.css +0 -2
  141. package/build/static/css/8332.8063f976.chunk.css +0 -2
  142. package/build/static/css/9968.eee4719e.chunk.css +0 -2
  143. package/build/static/js/1554.36914fa3.chunk.js +0 -3
  144. package/build/static/js/2503.aa052978.chunk.js +0 -2
  145. package/build/static/js/2503.aa052978.chunk.js.map +0 -1
  146. package/build/static/js/2517.96913b93.chunk.js +0 -2
  147. package/build/static/js/5600.e1d0e4ef.chunk.js +0 -2
  148. package/build/static/js/6611.a906724a.chunk.js +0 -2
  149. package/build/static/js/7121.81222779.chunk.js +0 -2
  150. /package/build/static/js/{1153.997f8c45.chunk.js.LICENSE.txt → 1153.12ffa226.chunk.js.LICENSE.txt} +0 -0
  151. /package/build/static/js/{1454.1e16f55e.chunk.js.LICENSE.txt → 1454.9a5b2db4.chunk.js.LICENSE.txt} +0 -0
  152. /package/build/static/js/{1554.36914fa3.chunk.js.LICENSE.txt → 1554.bf4e1c34.chunk.js.LICENSE.txt} +0 -0
  153. /package/build/static/js/{2716.f76d82b5.chunk.js.LICENSE.txt → 2716.9908ad0f.chunk.js.LICENSE.txt} +0 -0
  154. /package/build/static/js/{4666.7a20c768.chunk.js.LICENSE.txt → 4666.60cc27df.chunk.js.LICENSE.txt} +0 -0
  155. /package/build/static/js/{7227.52125a8b.chunk.js.LICENSE.txt → 7227.b4b0d9d6.chunk.js.LICENSE.txt} +0 -0
@@ -1,3 +1,3 @@
1
- /*! For license information please see 1454.1e16f55e.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1454,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});s(73884);var r=s(83136),l=s.n(r),n=s(70579);const o=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),c=e=>{let{type:t,colorful:s,className:r,size:c,style:a,prefix:i,..._}=e;const p=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,i,s),d=l()(r,{iconfont:!s,"iconfont--color":s},p),f=Object.assign({},a,c?{fontSize:o(c)}:{});return s?(0,n.jsx)("svg",{..._,"data-testid":"components-core-iconfont",className:d,style:f,children:(0,n.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,n.jsx)("i",{..._,"data-testid":"components-core-iconfont",className:d,style:f})};c.defaultProps={colorful:!1,prefix:""};const a=c},1454:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var r=s(55199),l=s(83136),n=s.n(l),o=s(64671);const c="style_part__+Vw3+__F3OJD",a="style_no-title__nO8sX__F3OJD",i="style_part-title__Uw+4K__F3OJD",_="style_collapse__ARl-O__F3OJD",p="style_is-active__i1zHH__F3OJD",d="style_part-title-sub__fcxT7__F3OJD";var f=s(70579);const u=e=>{let{children:t,className:s,...l}=e;return(0,f.jsx)(r.Collapse,{...l,className:n()(_,"collapse",s),expandIcon:e=>{let{isActive:t}=e;return(0,f.jsx)(o.default,{size:12,className:n()({[p]:t,"is-active":t}),type:"icon-triangle-right"})},children:t})};u.Panel=r.Collapse.Panel;const m=u,y=e=>{let{className:t,children:s,...l}=e;return(0,f.jsx)(r.Space,{...l,className:t,direction:"vertical",size:24,children:s})};y.Part=e=>{let{className:t,title:s,subTitle:l,extra:o,children:_,...p}=e;return(0,f.jsx)(r.Card,{className:n()(c,"part",t,{"no-title":!s,[a]:!s}),bordered:!1,title:s&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:n()("part-title",i),children:s}),l&&(0,f.jsx)("div",{className:n()("part-title-sub",d),children:l})]}),extra:o,...p,children:_})},y.Collapse=m;const x=y},51153:(e,t,s)=>{var r=s(73884),l=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,s){var r,n={},i=null,_=null;for(r in void 0!==s&&(i=""+s),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(_=t.ref),t)o.call(t,r)&&!a.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:l,type:e,key:i,ref:_,props:n,_owner:c.current}}t.Fragment=n,t.jsx=i,t.jsxs=i},70579:(e,t,s)=>{e.exports=s(51153)}}]);
3
- //# sourceMappingURL=1454.1e16f55e.chunk.js.map
1
+ /*! For license information please see 1454.9a5b2db4.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1454,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});s(73884);var r=s(83136),l=s.n(r),n=s(70579);const o=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),c=e=>{let{type:t,colorful:s,className:r,size:c,style:a,prefix:i,..._}=e;const p=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,i,s),d=l()(r,{iconfont:!s,"iconfont--color":s},p),u=Object.assign({},a,c?{fontSize:o(c)}:{});return s?(0,n.jsx)("svg",{..._,"data-testid":"components-core-iconfont",className:d,style:u,children:(0,n.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,n.jsx)("i",{..._,"data-testid":"components-core-iconfont",className:d,style:u})};c.defaultProps={colorful:!1,prefix:""};const a=c},1454:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var r=s(55199),l=s(83136),n=s.n(l),o=s(64671);const c="style_part__+Vw3+__1KduF",a="style_no-title__nO8sX__1KduF",i="style_part-title__Uw+4K__1KduF",_="style_collapse__ARl-O__1KduF",p="style_is-active__i1zHH__1KduF",d="style_part-title-sub__fcxT7__1KduF";var u=s(70579);const f=e=>{let{children:t,className:s,...l}=e;return(0,u.jsx)(r.Collapse,{...l,className:n()(_,"collapse",s),expandIcon:e=>{let{isActive:t}=e;return(0,u.jsx)(o.default,{size:12,className:n()({[p]:t,"is-active":t}),type:"icon-triangle-right"})},children:t})};f.Panel=r.Collapse.Panel;const m=f,y=e=>{let{className:t,children:s,...l}=e;return(0,u.jsx)(r.Space,{...l,className:t,direction:"vertical",size:24,children:s})};y.Part=e=>{let{className:t,title:s,subTitle:l,extra:o,children:_,...p}=e;return(0,u.jsx)(r.Card,{className:n()(c,"part",t,{"no-title":!s,[a]:!s}),bordered:!1,title:s&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:n()("part-title",i),children:s}),l&&(0,u.jsx)("div",{className:n()("part-title-sub",d),children:l})]}),extra:o,...p,children:_})},y.Collapse=m;const x=y},51153:(e,t,s)=>{var r=s(73884),l=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,s){var r,n={},i=null,_=null;for(r in void 0!==s&&(i=""+s),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(_=t.ref),t)o.call(t,r)&&!a.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:l,type:e,key:i,ref:_,props:n,_owner:c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,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEtC,aAAa,IAAIyC,KAAKF,EAAED,EAAEtC,kBAAe,IAAS0C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAE3C,KAAK2D,EAAEL,IAAIU,EAAET,IAAIU,EAAE1C,MAAMwC,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,mBCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["components/Icon/index.js","webpack://@kne-components/components-core/./src/components/InfoPage/style.module.scss?d163","components/InfoPage/Collapse.js","components/InfoPage/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nconst calculateSize = (size) => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += \"px\";\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === \"icon-\" || prefix === \"\") {\n return (\n (colorful ? \"icon-color-\" : \"icon-\") +\n prefixType.replace(/^icon-(color-)?/, \"\")\n );\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({\n type,\n colorful,\n className,\n size,\n style,\n prefix,\n ...other\n}) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n \"iconfont--color\": colorful,\n },\n fontClass\n ),\n computedStyle = Object.assign(\n {},\n style,\n size ? { fontSize: calculateSize(size) } : {}\n );\n return colorful ? (\n <svg\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n >\n <use xlinkHref={`#${type}`} style={{ pointerEvents: \"none\" }} />\n </svg>\n ) : (\n <i\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n />\n );\n};\n\nIconfont.defaultProps = {\n colorful: false,\n prefix: \"\",\n};\n\nIconfont.propTypes = {\n colorful: PropTypes.bool,\n prefix: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n type: PropTypes.string.isRequired,\n style: PropTypes.object,\n className: PropTypes.string,\n};\n\nexport default Iconfont;\n","// extracted by mini-css-extract-plugin\nexport default {\"part\":\"style_part__+Vw3+__F3OJD\",\"no-title\":\"style_no-title__nO8sX__F3OJD\",\"part-title\":\"style_part-title__Uw+4K__F3OJD\",\"collapse\":\"style_collapse__ARl-O__F3OJD\",\"is-active\":\"style_is-active__i1zHH__F3OJD\",\"part-title-sub\":\"style_part-title-sub__fcxT7__F3OJD\"};","import { Collapse as CollapseAntd } from \"antd\";\nimport Icon from \"@components/Icon\";\nimport style from \"./style.module.scss\";\nimport classnames from \"classnames\";\n\nconst Collapse = ({ children, className, ...props }) => {\n return (\n <CollapseAntd\n {...props}\n className={classnames(style[\"collapse\"], \"collapse\", className)}\n expandIcon={({ isActive }) => (\n <Icon\n size={12}\n className={classnames({\n [style[\"is-active\"]]: isActive,\n \"is-active\": isActive,\n })}\n type=\"icon-triangle-right\"\n />\n )}\n >\n {children}\n </CollapseAntd>\n );\n};\n\nCollapse.Panel = CollapseAntd.Panel;\n\nexport default Collapse;\n","import { Card, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Collapse from \"./Collapse\";\nimport style from \"./style.module.scss\";\n\nconst Part = ({ className, title, subTitle, extra, children, ...props }) => {\n return (\n <Card\n className={classnames(style[\"part\"], \"part\", className, {\n \"no-title\": !title,\n [style[\"no-title\"]]: !title,\n })}\n bordered={false}\n title={\n title && (\n <>\n <div className={classnames(\"part-title\", style[\"part-title\"])}>\n {title}\n </div>\n {subTitle && (\n <div\n className={classnames(\n \"part-title-sub\",\n style[\"part-title-sub\"]\n )}\n >\n {subTitle}\n </div>\n )}\n </>\n )\n }\n extra={extra}\n {...props}\n >\n {children}\n </Card>\n );\n};\n\nconst InfoPage = ({ className, children, ...props }) => {\n return (\n <Space {...props} className={className} direction=\"vertical\" size={24}>\n {children}\n </Space>\n );\n};\n\nInfoPage.Part = Part;\nInfoPage.Collapse = Collapse;\nexport default InfoPage;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","_jsx","children","xlinkHref","pointerEvents","defaultProps","Collapse","props","CollapseAntd","expandIcon","_ref2","isActive","Icon","Panel","InfoPage","Space","direction","Part","title","subTitle","extra","Card","bordered","_jsxs","_Fragment","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/1454.9a5b2db4.chunk.js","mappings":";kOAIA,MAAMA,EAAiBC,IACjB,mBAAmBC,KAAKD,EAAKE,cAC/BF,GAAQ,MAEHA,GAaHG,EAAWC,IAQV,IARW,KAChBC,EAAI,SACJC,EAAQ,UACRC,EAAS,KACTP,EAAI,MACJQ,EAAK,OACLC,KACGC,GACJN,EACC,MAAMO,EAnBcC,EAACC,EAAYJ,EAAQH,IAC1B,UAAXG,GAAiC,KAAXA,GAErBH,EAAW,cAAgB,SAC5BO,EAAWC,QAAQ,kBAAmB,IAGnCL,EAASI,EAYED,CAAcP,EAAMI,EAAQH,GAC5CS,EAAoBC,IAClBT,EACA,CACEU,UAAWX,EACX,kBAAmBA,GAErBK,GAEFO,EAAgBC,OAAOC,OACrB,CAAC,EACDZ,EACAR,EAAO,CAAEqB,SAAUtB,EAAcC,IAAU,CAAC,GAEhD,OAAOM,GACLgB,EAAAA,EAAAA,KAAA,UACMZ,EACJ,cAAY,2BACZH,UAAWQ,EACXP,MAAOU,EAAcK,UAErBD,EAAAA,EAAAA,KAAA,OAAKE,UAAW,IAAInB,IAAQG,MAAO,CAAEiB,cAAe,aAGtDH,EAAAA,EAAAA,KAAA,QACMZ,EACJ,cAAY,2BACZH,UAAWQ,EACXP,MAAOU,GAEV,EAGHf,EAASuB,aAAe,CACtBpB,UAAU,EACVG,OAAQ,IAYV,sGC5EA,QAAuB,2BAAvB,EAA6D,+BAA7D,EAAyG,iCAAzG,EAAqJ,+BAArJ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I,kBAAkBE,EAAEjC,OAAOkC,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEtC,aAAa,IAAIyC,KAAKF,EAAED,EAAEtC,kBAAe,IAAS0C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAE3C,KAAK2D,EAAEL,IAAIU,EAAET,IAAIU,EAAE1C,MAAMwC,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,mBCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["components/Icon/index.js","webpack://@kne-components/components-core/./src/components/InfoPage/style.module.scss?d163","components/InfoPage/Collapse.js","components/InfoPage/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nconst calculateSize = (size) => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += \"px\";\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === \"icon-\" || prefix === \"\") {\n return (\n (colorful ? \"icon-color-\" : \"icon-\") +\n prefixType.replace(/^icon-(color-)?/, \"\")\n );\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({\n type,\n colorful,\n className,\n size,\n style,\n prefix,\n ...other\n}) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n \"iconfont--color\": colorful,\n },\n fontClass\n ),\n computedStyle = Object.assign(\n {},\n style,\n size ? { fontSize: calculateSize(size) } : {}\n );\n return colorful ? (\n <svg\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n >\n <use xlinkHref={`#${type}`} style={{ pointerEvents: \"none\" }} />\n </svg>\n ) : (\n <i\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n />\n );\n};\n\nIconfont.defaultProps = {\n colorful: false,\n prefix: \"\",\n};\n\nIconfont.propTypes = {\n colorful: PropTypes.bool,\n prefix: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n type: PropTypes.string.isRequired,\n style: PropTypes.object,\n className: PropTypes.string,\n};\n\nexport default Iconfont;\n","// extracted by mini-css-extract-plugin\nexport default {\"part\":\"style_part__+Vw3+__1KduF\",\"no-title\":\"style_no-title__nO8sX__1KduF\",\"part-title\":\"style_part-title__Uw+4K__1KduF\",\"collapse\":\"style_collapse__ARl-O__1KduF\",\"is-active\":\"style_is-active__i1zHH__1KduF\",\"part-title-sub\":\"style_part-title-sub__fcxT7__1KduF\"};","import { Collapse as CollapseAntd } from \"antd\";\nimport Icon from \"@components/Icon\";\nimport style from \"./style.module.scss\";\nimport classnames from \"classnames\";\n\nconst Collapse = ({ children, className, ...props }) => {\n return (\n <CollapseAntd\n {...props}\n className={classnames(style[\"collapse\"], \"collapse\", className)}\n expandIcon={({ isActive }) => (\n <Icon\n size={12}\n className={classnames({\n [style[\"is-active\"]]: isActive,\n \"is-active\": isActive,\n })}\n type=\"icon-triangle-right\"\n />\n )}\n >\n {children}\n </CollapseAntd>\n );\n};\n\nCollapse.Panel = CollapseAntd.Panel;\n\nexport default Collapse;\n","import { Card, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Collapse from \"./Collapse\";\nimport style from \"./style.module.scss\";\n\nconst Part = ({ className, title, subTitle, extra, children, ...props }) => {\n return (\n <Card\n className={classnames(style[\"part\"], \"part\", className, {\n \"no-title\": !title,\n [style[\"no-title\"]]: !title,\n })}\n bordered={false}\n title={\n title && (\n <>\n <div className={classnames(\"part-title\", style[\"part-title\"])}>\n {title}\n </div>\n {subTitle && (\n <div\n className={classnames(\n \"part-title-sub\",\n style[\"part-title-sub\"]\n )}\n >\n {subTitle}\n </div>\n )}\n </>\n )\n }\n extra={extra}\n {...props}\n >\n {children}\n </Card>\n );\n};\n\nconst InfoPage = ({ className, children, ...props }) => {\n return (\n <Space {...props} className={className} direction=\"vertical\" size={24}>\n {children}\n </Space>\n );\n};\n\nInfoPage.Part = Part;\nInfoPage.Collapse = Collapse;\nexport default InfoPage;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","_jsx","children","xlinkHref","pointerEvents","defaultProps","Collapse","props","CollapseAntd","expandIcon","_ref2","isActive","Icon","Panel","InfoPage","Space","direction","Part","title","subTitle","extra","Card","bordered","_jsxs","_Fragment","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 1554.bf4e1c34.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1554,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});s(73884);var n=s(83136),o=s.n(n),l=s(70579);const r=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),_=e=>{let{type:t,colorful:s,className:n,size:_,style:a,prefix:c,...i}=e;const d=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,c,s),u=o()(n,{iconfont:!s,"iconfont--color":s},d),p=Object.assign({},a,_?{fontSize:r(_)}:{});return s?(0,l.jsx)("svg",{...i,"data-testid":"components-core-iconfont",className:u,style:p,children:(0,l.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,l.jsx)("i",{...i,"data-testid":"components-core-iconfont",className:u,style:p})};_.defaultProps={colorful:!1,prefix:""};const a=_},21554:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>w,TooltipInfoLabel:()=>O,default:()=>g});var n=s(55199),o=s(83136),l=s.n(o);const r="style_tooltip__zHGMI__1KduF",_="style_large__lvmsm__1KduF",a="style_small__nUt0r__1KduF",c="style_popup-content__-rKQN__1KduF",i="style_title__1EQPq__1KduF",d="style_important-info__qTSZY__1KduF",u="style_error__yTTq3__1KduF",p="style_warning__CMJxz__1KduF",f="style_success__AvJVx__1KduF",y="style_sub-title__uD8CH__1KduF",m="style_content__lzgUz__1KduF",x="style_alone__q6q82__1KduF",h="style_fetch-content__tEOEV__1KduF",v="style_fetch-loading__tN-WB__1KduF",j="style_title-info-icon__iY8Q+__1KduF";var F=s(70579);const N=e=>{let{overlayClassName:t,title:s,size:o,subtitle:h,content:v,importantInfo:j,importantInfoType:N,moreInfo:g,...K}=e;return(0,F.jsx)(n.Tooltip,{...K,overlayClassName:l()(t,r,{[a]:"small"===o,[_]:"large"===o}),title:(0,F.jsxs)(n.Space,{direction:"vertical",className:c,children:[s&&(0,F.jsx)("div",{className:i,children:s}),j&&(0,F.jsx)("div",{className:l()(d,{[f]:"success"===N,[p]:"warning"===N,[u]:"error"===N}),children:j}),h&&(0,F.jsx)("div",{className:y,children:h}),v&&(0,F.jsx)("div",{className:l()(m,{[x]:[s,h,j,g].every((e=>!e))}),children:v}),g&&(0,F.jsx)("div",{children:g})]})})};N.defaultProps={};const g=N;var K=s(64671);const O=e=>{let{title:t,tooltipTitle:s}=e;return(0,F.jsxs)("div",{children:[t,s?(0,F.jsx)(g,{...s,children:(0,F.jsx)("span",{children:(0,F.jsx)(K.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var b=s(73884),C=s(87558);const k=e=>{let{api:t,children:s,fetchContent:o,showLoading:r,loadingClassName:_,force:a,...c}=e;const[i,d]=(0,b.useState)(!1),u=(0,C.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:f,data:y,send:m}=u;return(0,F.jsx)(g,{...Object.assign({},c,p?o(y,u):{}),open:i,onOpenChange:async e=>{!e||p&&!a||await m({type:"refresh"}),d(e)},children:(0,F.jsxs)("span",{className:h,children:[s,r&&f?(0,F.jsx)(n.Spin,{size:"small",className:l()(_,v)}):null]})})};k.defaultProps={showLoading:!0};const w=k},51153:(e,t,s)=>{var n=s(73884),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,_=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,s){var n,l={},c=null,i=null;for(n in void 0!==s&&(c=""+s),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(i=t.ref),t)r.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:i,props:l,_owner:_.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},70579:(e,t,s)=>{e.exports=s(51153)}}]);
3
+ //# sourceMappingURL=1554.bf4e1c34.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/1554.36914fa3.chunk.js","mappings":";kOAIA,MAAMA,EAAiBC,IACjB,mBAAmBC,KAAKD,EAAKE,cAC/BF,GAAQ,MAEHA,GAaHG,EAAWC,IAQV,IARW,KAChBC,EAAI,SACJC,EAAQ,UACRC,EAAS,KACTP,EAAI,MACJQ,EAAK,OACLC,KACGC,GACJN,EACC,MAAMO,EAnBcC,EAACC,EAAYJ,EAAQH,IAC1B,UAAXG,GAAiC,KAAXA,GAErBH,EAAW,cAAgB,SAC5BO,EAAWC,QAAQ,kBAAmB,IAGnCL,EAASI,EAYED,CAAcP,EAAMI,EAAQH,GAC5CS,EAAoBC,IAClBT,EACA,CACEU,UAAWX,EACX,kBAAmBA,GAErBK,GAEFO,EAAgBC,OAAOC,OACrB,CAAC,EACDZ,EACAR,EAAO,CAAEqB,SAAUtB,EAAcC,IAAU,CAAC,GAEhD,OAAOM,GACLgB,EAAAA,EAAAA,KAAA,UACMZ,EACJ,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AGf,2BC1Ca,IAAIgB,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAElD,OAAOmD,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEvD,aAAa,IAAI0D,KAAKF,EAAED,EAAEvD,kBAAe,IAAS2D,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAE5D,KAAK4E,EAAEL,IAAIU,EAAET,IAAIU,EAAEpD,MAAMkD,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,mBCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["components/Icon/index.js","webpack://@kne-components/components-core/./src/components/Tooltip/style.module.scss?c30c","components/Tooltip/tooltip.js","components/Tooltip/tooltipInfoLabel.js","components/Tooltip/tooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nconst calculateSize = (size) => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += \"px\";\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === \"icon-\" || prefix === \"\") {\n return (\n (colorful ? \"icon-color-\" : \"icon-\") +\n prefixType.replace(/^icon-(color-)?/, \"\")\n );\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({\n type,\n colorful,\n className,\n size,\n style,\n prefix,\n ...other\n}) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n \"iconfont--color\": colorful,\n },\n fontClass\n ),\n computedStyle = Object.assign(\n {},\n style,\n size ? { fontSize: calculateSize(size) } : {}\n );\n return colorful ? (\n <svg\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n >\n <use xlinkHref={`#${type}`} style={{ pointerEvents: \"none\" }} />\n </svg>\n ) : (\n <i\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n />\n );\n};\n\nIconfont.defaultProps = {\n colorful: false,\n prefix: \"\",\n};\n\nIconfont.propTypes = {\n colorful: PropTypes.bool,\n prefix: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n type: PropTypes.string.isRequired,\n style: PropTypes.object,\n className: PropTypes.string,\n};\n\nexport default Iconfont;\n","// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__F3OJD\",\"large\":\"style_large__lvmsm__F3OJD\",\"small\":\"style_small__nUt0r__F3OJD\",\"popup-content\":\"style_popup-content__-rKQN__F3OJD\",\"title\":\"style_title__1EQPq__F3OJD\",\"important-info\":\"style_important-info__qTSZY__F3OJD\",\"error\":\"style_error__yTTq3__F3OJD\",\"warning\":\"style_warning__CMJxz__F3OJD\",\"success\":\"style_success__AvJVx__F3OJD\",\"sub-title\":\"style_sub-title__uD8CH__F3OJD\",\"content\":\"style_content__lzgUz__F3OJD\",\"alone\":\"style_alone__q6q82__F3OJD\",\"fetch-content\":\"style_fetch-content__tEOEV__F3OJD\",\"fetch-loading\":\"style_fetch-loading__tN-WB__F3OJD\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__F3OJD\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n overlayClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nTooltip.defaultProps = {};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import { useState } from \"react\";\nimport { useFetch } from \"@kne/react-fetch\";\nimport { Spin } from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api,\n children,\n fetchContent,\n showLoading,\n loadingClassName,\n force,\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, { auto: false }));\n const { isComplete, isLoading, data, send } = fetchApi;\n return (\n <Tooltip\n {...Object.assign(\n {},\n props,\n isComplete ? fetchContent(data, fetchApi) : {}\n )}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({ type: \"refresh\" });\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (\n <Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />\n ) : null}\n </span>\n </Tooltip>\n );\n};\n\nTooltipFetch.defaultProps = {\n showLoading: true,\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","_jsx","children","xlinkHref","pointerEvents","defaultProps","Tooltip","overlayClassName","title","subtitle","content","importantInfo","importantInfoType","moreInfo","props","AntdTooltip","_jsxs","Space","direction","every","item","tooltipTitle","Icon","TooltipFetch","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/1554.bf4e1c34.chunk.js","mappings":";kOAIA,MAAMA,EAAiBC,IACjB,mBAAmBC,KAAKD,EAAKE,cAC/BF,GAAQ,MAEHA,GAaHG,EAAWC,IAQV,IARW,KAChBC,EAAI,SACJC,EAAQ,UACRC,EAAS,KACTP,EAAI,MACJQ,EAAK,OACLC,KACGC,GACJN,EACC,MAAMO,EAnBcC,EAACC,EAAYJ,EAAQH,IAC1B,UAAXG,GAAiC,KAAXA,GAErBH,EAAW,cAAgB,SAC5BO,EAAWC,QAAQ,kBAAmB,IAGnCL,EAASI,EAYED,CAAcP,EAAMI,EAAQH,GAC5CS,EAAoBC,IAClBT,EACA,CACEU,UAAWX,EACX,kBAAmBA,GAErBK,GAEFO,EAAgBC,OAAOC,OACrB,CAAC,EACDZ,EACAR,EAAO,CAAEqB,SAAUtB,EAAcC,IAAU,CAAC,GAEhD,OAAOM,GACLgB,EAAAA,EAAAA,KAAA,UACMZ,EACJ,cAAY,2BACZH,UAAWQ,EACXP,MAAOU,EAAcK,UAErBD,EAAAA,EAAAA,KAAA,OAAKE,UAAW,IAAInB,IAAQG,MAAO,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EAAElD,OAAOmD,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEvD,aAAa,IAAI0D,KAAKF,EAAED,EAAEvD,kBAAe,IAAS2D,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAE5D,KAAK4E,EAAEL,IAAIU,EAAET,IAAIU,EAAEpD,MAAMkD,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,mBCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["components/Icon/index.js","webpack://@kne-components/components-core/./src/components/Tooltip/style.module.scss?c30c","components/Tooltip/tooltip.js","components/Tooltip/tooltipInfoLabel.js","components/Tooltip/tooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nconst calculateSize = (size) => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += \"px\";\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === \"icon-\" || prefix === \"\") {\n return (\n (colorful ? \"icon-color-\" : \"icon-\") +\n prefixType.replace(/^icon-(color-)?/, \"\")\n );\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({\n type,\n colorful,\n className,\n size,\n style,\n prefix,\n ...other\n}) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n \"iconfont--color\": colorful,\n },\n fontClass\n ),\n computedStyle = Object.assign(\n {},\n style,\n size ? { fontSize: calculateSize(size) } : {}\n );\n return colorful ? (\n <svg\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n >\n <use xlinkHref={`#${type}`} style={{ pointerEvents: \"none\" }} />\n </svg>\n ) : (\n <i\n {...other}\n data-testid=\"components-core-iconfont\"\n className={computedClassName}\n style={computedStyle}\n />\n );\n};\n\nIconfont.defaultProps = {\n colorful: false,\n prefix: \"\",\n};\n\nIconfont.propTypes = {\n colorful: PropTypes.bool,\n prefix: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n type: PropTypes.string.isRequired,\n style: PropTypes.object,\n className: PropTypes.string,\n};\n\nexport default Iconfont;\n","// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__1KduF\",\"large\":\"style_large__lvmsm__1KduF\",\"small\":\"style_small__nUt0r__1KduF\",\"popup-content\":\"style_popup-content__-rKQN__1KduF\",\"title\":\"style_title__1EQPq__1KduF\",\"important-info\":\"style_important-info__qTSZY__1KduF\",\"error\":\"style_error__yTTq3__1KduF\",\"warning\":\"style_warning__CMJxz__1KduF\",\"success\":\"style_success__AvJVx__1KduF\",\"sub-title\":\"style_sub-title__uD8CH__1KduF\",\"content\":\"style_content__lzgUz__1KduF\",\"alone\":\"style_alone__q6q82__1KduF\",\"fetch-content\":\"style_fetch-content__tEOEV__1KduF\",\"fetch-loading\":\"style_fetch-loading__tN-WB__1KduF\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__1KduF\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n overlayClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nTooltip.defaultProps = {};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import { useState } from \"react\";\nimport { useFetch } from \"@kne/react-fetch\";\nimport { Spin } from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api,\n children,\n fetchContent,\n showLoading,\n loadingClassName,\n force,\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, { auto: false }));\n const { isComplete, isLoading, data, send } = fetchApi;\n return (\n <Tooltip\n {...Object.assign(\n {},\n props,\n isComplete ? fetchContent(data, fetchApi) : {}\n )}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({ type: \"refresh\" });\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (\n <Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />\n ) : null}\n </span>\n </Tooltip>\n );\n};\n\nTooltipFetch.defaultProps = {\n showLoading: true,\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","_jsx","children","xlinkHref","pointerEvents","defaultProps","Tooltip","overlayClassName","title","subtitle","content","importantInfo","importantInfoType","moreInfo","props","AntdTooltip","_jsxs","Space","direction","every","item","tooltipTitle","Icon","TooltipFetch","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2503,289,9034,7050],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8762),s=n.n(r);n(46733);const i=s()},45362:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Label:()=>v,default:()=>x});var r=n(73884),s=n(55199),i=n(83136),o=n.n(i);const a="style_content__KHqQn__1KduF",l="style_size-small__RwAEB__1KduF",c="style_label__EG-qx__1KduF",u="style_content-content__AkJj-__1KduF",d="style_item__WV0-i__1KduF";var f=n(63361),p=n(70579);const v=e=>{let{className:t,children:n,setWidth:s}=e;const i=(0,r.useRef)(null);return(0,r.useRef)(s).current=s,(0,r.useLayoutEffect)((()=>{const e=()=>{if(!i.current)return;const{width:e}=i.current.getBoundingClientRect();s(e)},t=new ResizeObserver(e);return t.observe(i.current),e(),()=>{t.disconnect()}}),[s]),(0,p.jsxs)("div",{ref:i,className:t,children:[n,"\uff1a"]})},_=e=>{let{list:t,labelAlign:n,col:i,gutter:_,className:x,size:b}=e;const h=(0,r.useRef)([]),[j,m]=(0,r.useState)(0);return(0,p.jsx)(s.Row,{"data-testid":"components-core-content",className:o()(a,"content",x,{[l]:"small"===b}),gutter:_,children:t.filter((e=>"function"===typeof e.display?e.display():!1!==e.display)).map(((e,t)=>{let{label:r,content:a,block:l,featureId:_}=e;const x=(0,p.jsx)(s.Col,{span:!0===l?24:24/i,className:d,children:(0,p.jsxs)(s.Space,{className:o()(d,"content-item"),children:[r?(0,p.jsx)("div",{style:j&&"auto"!==n?{minWidth:j,textAlign:n}:null,children:(0,p.jsx)(v,{className:o()(c,"content-label"),setWidth:e=>{h.current[t]=e,m(Math.max(...h.current))},children:r})}):null,(0,p.jsx)("div",{className:o()(u,"content-content"),children:a})]},t)},t);return _?(0,p.jsx)(f.default,{id:_,children:x}):x}))})};_.defaultProps={labelAlign:"left",col:1,gutter:0,list:[]};const x=_},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h,useFeatureCall:()=>b});var r=n(73884),s=n(63908),i=n(33097),o=n.n(i),a=n(15797),l=n.n(a),c=n(1488),u=n.n(c),d=n(70579);const f=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{f(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),f(e.children,t,n?n+":"+e.id:e.id)))},p=l()((e=>{const t=(()=>{const t=new Map;return f(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),v=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&o()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},_=(0,r.createContext)(null),{Provider:x}=_,b=e=>{const{features:t,profile:n,profileMap:i,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=o()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),l="system"===n.type?n.id:"root",c=(0,r.useContext)(_),u=c?c+":"+e:l+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log(`[featureId] ${u},[state] ${v(u,{features:t,profileMap:i})}`,i.get(u))}),[t,i,a,u]),{isPass:!(e&&t&&t.length>0)||v(u,{features:t,profileMap:i}),currentId:u,feature:i.get(u)}},h=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:i}=b(t);return(0,d.jsx)(x,{value:i,children:"function"===typeof n?n({isPass:r,options:r?o()(s,"options"):o()(s,"rejectedOptions"),currentId:i}):r&&n})}},89384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(55199),s=n(53984),i=n.n(s),o=n(83136),a=n.n(o),l=n(17342),c=n(63908),u=n(64671),d=n(45362);const f={notification:"style_notification__Vv-MM__1KduF",list:"style_list__l8KOo__1KduF",header:"style_header__3dcv8__1KduF",item:"style_item__d92RS__1KduF","item-box":"style_item-box__dd-Lk__1KduF","index-1":"style_index-1__f97L0__1KduF","index-2":"style_index-2__04vAw__1KduF","item-box-main":"style_item-box-main__lnSak__1KduF","item-title":"style_item-title__mArMd__1KduF","level-high":"style_level-high__Uys7Y__1KduF","level-middle":"style_level-middle__EewyC__1KduF","level-low":"style_level-low__8kVyL__1KduF","title-icon":"style_title-icon__1EoAG__1KduF","item-subtitle":"style_item-subtitle__xeFJs__1KduF","close-btn":"style_close-btn__7qpG3__1KduF","is-loading":"style_is-loading__upVL+__1KduF","item-content":"style_item-content__8MlsG__1KduF","link-outer":"style_link-outer__kegyZ__1KduF",link:"style_link__F2CO-__1KduF","is-last-item":"style_is-last-item__MytRl__1KduF"};var p=n(73884),v=n(39835),_=n.n(v),x=n(85855),b=n.n(x),h=n(96604),j=n.n(h),m=n(81014),y=n(32520),g=n.n(y),A=n(70579);const w=["high","middle","low"],F=e=>{let{level:t,title:n,groupLength:s,subtitle:i,content:o,link:l,id:p,children:v,className:_}=e;const{setGlobal:x}=(0,c.useGlobalContext)("notification"),{apis:b,ajax:h}=(0,c.usePreset)(),{isLoading:y,callback:w}=(0,m.useLoading)((async()=>{var e;const{data:t}=null!==b&&void 0!==b&&null!==(e=b.notification)&&void 0!==e&&e.read?await h(Object.assign({},b.notification.read,{data:{ids:[p]}})):{data:{code:0}};0===t.code&&x((e=>{const t=((null===e||void 0===e?void 0:e.list)||[]).slice(0),n=g()(t,(e=>p===e.id));return n>-1&&t.splice(n,1),Object.assign({},e,{list:t})}))}));return(0,A.jsxs)("div",{className:a()(f.item,_),style:{"--group-length":Math.min(s,3)||1},children:[s&&s>1&&j()(1,Math.min(s,3)).reverse().map((e=>(0,A.jsx)("div",{className:a()(f["item-box"],f[`index-${e}`])},e))),(0,A.jsxs)("div",{className:a()(f["item-box"],f["item-box-main"]),children:[(0,A.jsxs)("div",{className:a()(f["item-title"],f[`level-${t}`]),children:[(0,A.jsx)(u.default,{className:f["title-icon"],type:"high"===t?"icon-tishi":"icon-daiwochuli"}),(0,A.jsx)(r.Typography.Text,{ellipsis:!0,children:n})]}),(0,A.jsxs)("div",{className:f["item-content"],children:[(0,A.jsxs)("div",{className:f["item-subtitle"],children:[(0,A.jsx)(r.Typography.Text,{ellipsis:!0,children:i||""}),(0,A.jsx)(u.default,{className:a()(f["close-btn"],{[f["is-loading"]]:y}),type:"icon-close-thin",onClick:()=>{y||p&&w()}})]}),Array.isArray(o)?(0,A.jsx)(d.default,{list:o,labelAlign:"auto",size:"small"}):v]}),l&&(0,A.jsx)("div",{className:f["link-outer"],children:(0,A.jsx)(m.default,{className:f.link,size:"small",onClick:async()=>{var e;const{data:t}=null!==b&&void 0!==b&&null!==(e=b.notification)&&void 0!==e&&e.read?await h(Object.assign({},b.notification.read,{data:{ids:[p]}})):{data:{code:0}};0===t.code&&window.open(l)},children:"\u67e5\u770b\u8be6\u60c5"})})]})]})};F.defaultProps={level:"low"};const O=e=>{let{itemClassName:t}=e;const{global:n,setGlobal:s}=(0,c.useGlobalContext)("notification"),o=(0,p.useRef)(),{apis:u,ajax:d}=(0,c.usePreset)(),[v,x]=(0,p.useState)(32);(0,p.useEffect)((()=>{var e;o.current&&x(null===(e=o.current)||void 0===e?void 0:e.clientHeight)}),[]);const{list:h,expand:j}=Object.assign({},{expand:!1,list:[]},n),y=(0,p.useMemo)((()=>{const e=_()(h,(e=>e.level||"low"));return w.map((t=>e[t]||[]))}),[h]);return 0===h.length?null:(0,A.jsxs)("div",{className:a()({},f.notification,"notification"),style:{"--head-option-height":`${v}px`},children:[(0,A.jsx)("div",{ref:o,children:(0,A.jsxs)(r.Row,{justify:"end",wrap:!1,className:f.header,gutter:8,children:[y.some((e=>e.length>1))&&(0,A.jsx)(r.Col,{children:(0,A.jsx)(r.Button,{size:"small",onClick:()=>{s(Object.assign({},n,{expand:!j}))},children:j?"\u5168\u90e8\u6298\u53e0":"\u5168\u90e8\u5c55\u5f00"})}),(0,A.jsx)(r.Col,{children:(0,A.jsx)(m.default,{type:"primary",size:"small",onClick:async()=>{var e;const{data:t}=null!==u&&void 0!==u&&null!==(e=u.notification)&&void 0!==e&&e.read?await d(Object.assign({},u.notification.read,{data:{ids:h.map((e=>e.id)).filter((e=>!!e))}})):{data:{code:0}};0===t.code&&s(Object.assign({},n,{list:[]}))},children:"\u5168\u90e8\u6e05\u9664"})})]})}),(0,A.jsx)(l.A,{className:f.list,children:(0,A.jsx)(i(),{leaveReverse:!0,duration:200,interval:20,children:y.filter((e=>e&&e.length>0)).map(((e,n)=>{var r;if(j)return e.map(((t,r)=>{var s;return t&&(0,A.jsx)("div",{children:(0,A.jsx)(F,{...Object.assign({},t),className:a()({[f["is-last-item"]]:+n+1===Math.min(null===(s=y.filter((e=>e&&e.length)))||void 0===s?void 0:s.length,3)&&r===(null===e||void 0===e?void 0:e.length)-1})})},`group-${n}-${r}`)}));const s=b()(e);return(0,A.jsx)("div",{children:(0,A.jsx)(F,{...Object.assign({},s),groupLength:e.length,className:a()({[f["is-last-item"]]:(null===y||void 0===y?void 0:y.length)&&+n+1===Math.min(null===(r=y.filter((e=>e&&e.length)))||void 0===r?void 0:r.length,3)},t)})},`group-${n}-0`)}))})})]})}},94710:e=>{e.exports=function(e,t,n,r){for(var s=-1,i=null==e?0:e.length;++s<i;){var o=e[s];t(r,o,n(o),e)}return r}},32952:(e,t,n)=>{var r=n(45652);e.exports=function(e,t,n,s){return r(e,(function(e,r,i){t(s,e,n(e),i)})),s}},51104:(e,t,n)=>{var r=n(96614),s=n(28673);e.exports=function(e,t){return e&&r(t,s(t),e)}},55119:(e,t,n)=>{var r=n(96614),s=n(30474);e.exports=function(e,t){return e&&r(t,s(t),e)}},97132:(e,t,n)=>{var r=n(5538),s=n(80726),i=n(78420),o=n(51104),a=n(55119),l=n(44353),c=n(91980),u=n(98124),d=n(29075),f=n(59395),p=n(68592),v=n(26924),_=n(38268),x=n(18630),b=n(20310),h=n(54052),j=n(44543),m=n(57887),y=n(46686),g=n(45921),A=n(28673),w=n(30474),F="[object Arguments]",O="[object Function]",K="[object Object]",N={};N[F]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[K]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[O]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,k,M,C,I){var S,R=1&n,E=2&n,P=4&n;if(k&&(S=C?k(t,M,C,I):k(t)),void 0!==S)return S;if(!y(t))return t;var L=h(t);if(L){if(S=_(t),!R)return c(t,S)}else{var G=v(t),U=G==O||"[object GeneratorFunction]"==G;if(j(t))return l(t,R);if(G==K||G==F||U&&!C){if(S=E||U?{}:b(t),!R)return E?d(t,a(S,t)):u(t,o(S,t))}else{if(!N[G])return C?t:{};S=x(t,G,R)}}I||(I=new r);var $=I.get(t);if($)return $;I.set(t,S),g(t)?t.forEach((function(r){S.add(e(r,n,k,r,t,I))})):m(t)&&t.forEach((function(r,s){S.set(s,e(r,n,k,s,t,I))}));var z=L?void 0:(P?E?p:f:E?w:A)(t);return s(z||t,(function(r,s){z&&(r=t[s=r]),i(S,s,e(r,n,k,s,t,I))})),S}},45652:(e,t,n)=>{var r=n(94664),s=n(76516)(r);e.exports=s},75816:e=>{e.exports=function(e,t,n,r){for(var s=e.length,i=n+(r?1:-1);r?i--:++i<s;)if(t(e[i],i,e))return i;return-1}},80755:(e,t,n)=>{var r=n(48895),s=n(77116);e.exports=function e(t,n,i,o,a){var l=-1,c=t.length;for(i||(i=s),a||(a=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,o,a):r(a,u):o||(a[a.length]=u)}return a}},5791:(e,t,n)=>{var r=n(26924),s=n(22761);e.exports=function(e){return s(e)&&"[object Map]"==r(e)}},20449:(e,t,n)=>{var r=n(26924),s=n(22761);e.exports=function(e){return s(e)&&"[object Set]"==r(e)}},53871:e=>{e.exports=function(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}},88140:(e,t,n)=>{var r=n(35324),s=n(74065),i=n(21676),o=n(70914);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[o(s(t))]}},6806:(e,t,n)=>{var r=n(61516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},18962:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},11295:(e,t,n)=>{var r=n(9812),s=r?r.prototype:void 0,i=s?s.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},98124:(e,t,n)=>{var r=n(96614),s=n(69621);e.exports=function(e,t){return r(e,s(e),t)}},29075:(e,t,n)=>{var r=n(96614),s=n(56326);e.exports=function(e,t){return r(e,s(e),t)}},19449:(e,t,n)=>{var r=n(94710),s=n(32952),i=n(9096),o=n(54052);e.exports=function(e,t){return function(n,a){var l=o(n)?r:s,c=t?t():{};return l(n,e,i(a,2),c)}}},76516:(e,t,n)=>{var r=n(6571);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!r(n))return e(n,s);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==s(a[o],o,a););return n}}},96761:(e,t,n)=>{var r=n(12322);e.exports=function(e){return r(e)?void 0:e}},15857:(e,t,n)=>{var r=n(20819),s=n(55636),i=n(46350);e.exports=function(e){return i(s(e,void 0,r),e+"")}},68592:(e,t,n)=>{var r=n(4262),s=n(56326),i=n(30474);e.exports=function(e){return r(e,i,s)}},56326:(e,t,n)=>{var r=n(48895),s=n(85990),i=n(69621),o=n(57828),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=s(e);return t}:o;e.exports=a},38268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},18630:(e,t,n)=>{var r=n(61516),s=n(6806),i=n(18962),o=n(11295),a=n(38710);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return s(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return o(e)}}},77116:(e,t,n)=>{var r=n(9812),s=n(22777),i=n(54052),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||s(e)||!!(o&&e&&e[o])}},21676:(e,t,n)=>{var r=n(52969),s=n(53871);e.exports=function(e,t){return t.length<2?e:r(e,s(t,0,-1))}},32520:(e,t,n)=>{var r=n(75816),s=n(9096),i=n(99140),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:i(n);return l<0&&(l=o(a+l,0)),r(e,s(t,3),l)}},85855:(e,t,n)=>{e.exports=n(96483)},20819:(e,t,n)=>{var r=n(80755);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},39835:(e,t,n)=>{var r=n(71775),s=n(19449),i=Object.prototype.hasOwnProperty,o=s((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=o},96483:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},57887:(e,t,n)=>{var r=n(5791),s=n(47574),i=n(56832),o=i&&i.isMap,a=o?s(o):r;e.exports=a},45921:(e,t,n)=>{var r=n(20449),s=n(47574),i=n(56832),o=i&&i.isSet,a=o?s(o):r;e.exports=a},74065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},1488:(e,t,n)=>{var r=n(50149),s=n(97132),i=n(88140),o=n(35324),a=n(96614),l=n(96761),c=n(15857),u=n(68592),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=o(t,e),c||(c=t.length>1),t})),a(e,u(e),n),c&&(n=s(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},99140:(e,t,n)=>{var r=n(37303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},46733:()=>{}}]);
2
+ //# sourceMappingURL=2503.5913f925.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/2503.5913f925.chunk.js","mappings":"kNAGA,QAAeA,G,uHCFf,QAA0B,8BAA1B,EAAqE,iCAArE,EAA8G,4BAA9G,EAA4J,sCAA5J,EAAyM,2B,0BCKlM,MAAMC,EAAQC,IAAwC,IAAvC,UAAEC,EAAS,SAAEC,E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AI2G,EAAS8F,EAASzM,GAClB0M,EAAY/F,EAAS,EAEzB,OAAOA,IAAWA,EAAU+F,EAAY/F,EAAS+F,EAAY/F,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","webpack://@kne-components/components-core/./src/components/Content/style.module.scss?6a0e","components/Content/index.js","components/Features/index.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/_baseAssign.js","../node_modules/lodash/_baseAssignIn.js","../node_modules/lodash/_baseClone.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_baseIsMap.js","../node_modules/lodash/_baseIsSet.js","../node_modules/lodash/_baseSlice.js","../node_modules/lodash/_baseUnset.js","../node_modules/lodash/_cloneDataView.js","../node_modules/lodash/_cloneRegExp.js","../node_modules/lodash/_cloneSymbol.js","../node_modules/lodash/_copySymbols.js","../node_modules/lodash/_copySymbolsIn.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/_customOmitClone.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_getAllKeysIn.js","../node_modules/lodash/_getSymbolsIn.js","../node_modules/lodash/_initCloneArray.js","../node_modules/lodash/_initCloneByTag.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/_parent.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/first.js","../node_modules/lodash/flatten.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/head.js","../node_modules/lodash/isMap.js","../node_modules/lodash/isSet.js","../node_modules/lodash/last.js","../node_modules/lodash/omit.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"content\":\"style_content__KHqQn__1KduF\",\"size-small\":\"style_size-small__RwAEB__1KduF\",\"label\":\"style_label__EG-qx__1KduF\",\"content-content\":\"style_content-content__AkJj-__1KduF\",\"item\":\"style_item__WV0-i__1KduF\"};","import { useLayoutEffect, useRef, useState } from \"react\";\nimport { Col, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Features from \"@components/Features\";\n\nexport const Label = ({ className, children, setWidth }) => {\n const ref = useRef(null);\n const setWidthRef = useRef(setWidth);\n setWidthRef.current = setWidth;\n useLayoutEffect(() => {\n const computed = () => {\n if (!ref.current) {\n return;\n }\n const { width } = ref.current.getBoundingClientRect();\n setWidth(width);\n };\n const resizeObserver = new ResizeObserver(computed);\n resizeObserver.observe(ref.current);\n computed();\n return () => {\n resizeObserver.disconnect();\n };\n }, [setWidth]);\n return (\n <div ref={ref} className={className}>\n {children}:\n </div>\n );\n};\n\nconst Content = ({ list, labelAlign, col, gutter, className, size }) => {\n const labelWidthListRef = useRef([]);\n const [maxLabelWidth, setMaxLabelWidth] = useState(0);\n return (\n <Row\n data-testid=\"components-core-content\"\n className={classnames(style[\"content\"], \"content\", className, {\n [style[\"size-small\"]]: size === \"small\",\n })}\n gutter={gutter}\n >\n {list\n .filter((item) => {\n if (typeof item.display === \"function\") {\n return item.display();\n }\n return item.display !== false;\n })\n .map(({ label, content, block, featureId }, index) => {\n const render = (\n <Col\n span={block === true ? 24 : 24 / col}\n key={index}\n className={style[\"item\"]}\n >\n <Space\n key={index}\n className={classnames(style[\"item\"], \"content-item\")}\n >\n {label ? (\n <div\n style={\n maxLabelWidth && labelAlign !== \"auto\"\n ? {\n minWidth: maxLabelWidth,\n textAlign: labelAlign,\n }\n : null\n }\n >\n <Label\n className={classnames(style[\"label\"], \"content-label\")}\n setWidth={(width) => {\n labelWidthListRef.current[index] = width;\n setMaxLabelWidth(\n Math.max(...labelWidthListRef.current)\n );\n }}\n >\n {label}\n </Label>\n </div>\n ) : null}\n <div\n className={classnames(\n style[\"content-content\"],\n \"content-content\"\n )}\n >\n {content}\n </div>\n </Space>\n </Col>\n );\n return featureId ? (\n <Features id={featureId}>{render}</Features>\n ) : (\n render\n );\n })}\n </Row>\n );\n};\n\nContent.defaultProps = {\n labelAlign: \"left\",\n col: 1,\n gutter: 0,\n list: [],\n};\n\nexport default Content;\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","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__1KduF\",\"list\":\"style_list__l8KOo__1KduF\",\"header\":\"style_header__3dcv8__1KduF\",\"item\":\"style_item__d92RS__1KduF\",\"item-box\":\"style_item-box__dd-Lk__1KduF\",\"index-1\":\"style_index-1__f97L0__1KduF\",\"index-2\":\"style_index-2__04vAw__1KduF\",\"item-box-main\":\"style_item-box-main__lnSak__1KduF\",\"item-title\":\"style_item-title__mArMd__1KduF\",\"level-high\":\"style_level-high__Uys7Y__1KduF\",\"level-middle\":\"style_level-middle__EewyC__1KduF\",\"level-low\":\"style_level-low__8kVyL__1KduF\",\"title-icon\":\"style_title-icon__1EoAG__1KduF\",\"item-subtitle\":\"style_item-subtitle__xeFJs__1KduF\",\"close-btn\":\"style_close-btn__7qpG3__1KduF\",\"is-loading\":\"style_is-loading__upVL+__1KduF\",\"item-content\":\"style_item-content__8MlsG__1KduF\",\"link-outer\":\"style_link-outer__kegyZ__1KduF\",\"link\":\"style_link__F2CO-__1KduF\",\"is-last-item\":\"style_is-last-item__MytRl__1KduF\"};","import { Row, Col, Button, Typography } from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport { useGlobalContext, usePreset } from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport { useMemo, useRef, useState, useEffect } from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, { useLoading } from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level,\n title,\n groupLength,\n subtitle,\n content,\n link,\n id,\n children,\n className,\n}) => {\n const { setGlobal } = useGlobalContext(\"notification\");\n const { apis, ajax } = usePreset();\n const { isLoading, callback } = useLoading(async () => {\n const { data: resData } = apis?.notification?.read\n ? await ajax(\n Object.assign({}, apis.notification.read, {\n data: { ids: [id] },\n })\n )\n : { data: { code: 0 } };\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, { list: newList });\n });\n }\n });\n return (\n <div\n className={classnames(style[\"item\"], className)}\n style={{ \"--group-length\": Math.min(groupLength, 3) || 1 }}\n >\n {groupLength &&\n groupLength > 1 &&\n range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (\n <div\n className={classnames(\n style[\"item-box\"],\n style[`index-${number}`]\n )}\n key={number}\n />\n ))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (\n <Content list={content} labelAlign=\"auto\" size=\"small\" />\n ) : (\n children\n )}\n </div>\n {link && (\n <div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const { data: resData } = apis?.notification?.read\n ? await ajax(\n Object.assign({}, apis.notification.read, {\n data: { ids: [id] },\n })\n )\n : { data: { code: 0 } };\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nNotificationItem.defaultProps = {\n level: \"low\",\n};\n\nconst Notification = ({ itemClassName }) => {\n const { global: notification, setGlobal } = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const { apis, ajax } = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current &&\n setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const { list, expand } = Object.assign(\n {},\n {\n expand: false,\n list: [],\n },\n notification\n );\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (\n <div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (\n <Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(\n Object.assign({}, notification, { expand: !expand })\n );\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>\n )}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const { data: resData } = apis?.notification?.read\n ? await ajax(\n Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })\n )\n : { data: { code: 0 } };\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, { list: [] }));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map(\n (notification, index) =>\n notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]:\n +groupKey + 1 ===\n Math.min(\n groupList.filter(\n (item) => item && item.length\n )?.length,\n 3\n ) && index === item?.length - 1,\n })}\n />\n </div>\n )\n );\n }\n const firstItem = first(item);\n return (\n <div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames(\n {\n [style[\"is-last-item\"]]:\n groupList?.length &&\n +groupKey + 1 ===\n Math.min(\n groupList.filter((item) => item && item.length)\n ?.length,\n 3\n ),\n },\n itemClassName\n )}\n />\n </div>\n );\n })}\n </QueueAnim>\n </SimpleBar>\n </div>\n );\n};\n\nexport default Notification;\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 copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\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","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","var castPath = require('./_castPath'),\n last = require('./last'),\n parent = require('./_parent'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\n\nmodule.exports = baseUnset;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\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 isPlainObject = require('./isPlainObject');\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n}\n\nmodule.exports = customOmitClone;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\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 * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var baseGet = require('./_baseGet'),\n baseSlice = require('./_baseSlice');\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nmodule.exports = parent;\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\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.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=0] 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': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","module.exports = require('./head');\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\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","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var arrayMap = require('./_arrayMap'),\n baseClone = require('./_baseClone'),\n baseUnset = require('./_baseUnset'),\n castPath = require('./_castPath'),\n copyObject = require('./_copyObject'),\n customOmitClone = require('./_customOmitClone'),\n flatRest = require('./_flatRest'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n});\n\nmodule.exports = omit;\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":["SimpleBar","Label","_ref","className","children","setWidth","ref","useRef","current","useLayoutEffect","computed","width","getBoundingClientRect","resizeObserver","ResizeObserver","observe","disconnect","_jsxs","Content","_ref2","list","labelAlign","col","gutter","size","labelWidthListRef","maxLabelWidth","setMaxLabelWidth","useState","_jsx","Row","classnames","style","filter","item","display","map","_ref3","index","label","content","block","featureId","render","Col","span","Space","minWidth","textAlign","Math","max","Features","id","defaultProps","treeTraverse","data","func","pId","Array","isArray","forEach","Object","assign","omit","parentId","parseProfile","memoize","profile","profileMap","output","Map","set","features","from","keys","get","dependencies","length","some","depId","computedIsPaas","currentId","target","indexOf","close","every","dependenciesTarget","context","createContext","Provider","useFeatureCall","debug","useFeatures","preset","usePreset","systemId","type","useContext","useEffect","console","log","isPass","feature","value","options","LEVEL","NotificationItem","level","title","groupLength","subtitle","link","setGlobal","useGlobalContext","apis","ajax","isLoading","callback","useLoading","async","_apis$notification","resData","notification","read","ids","code","newList","slice","findIndex","splice","min","range","reverse","number","Icon","Typography","Text","ellipsis","onClick","LoadingButton","_apis$notification2","window","open","itemClassName","global","headOptionRef","headOptionHeight","setHeadOptionHeight","_headOptionRef$curren","clientHeight","expand","groupList","useMemo","group","groupBy","name","justify","wrap","Button","_apis$notification3","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","firstItem","first","module","exports","array","setter","iteratee","accumulator","baseEach","require","collection","key","copyObject","object","source","keysIn","Stack","arrayEach","assignValue","baseAssign","baseAssignIn","cloneBuffer","copyArray","copySymbols","copySymbolsIn","getAllKeys","getAllKeysIn","getTag","initCloneArray","initCloneByTag","initCloneObject","isBuffer","isMap","isObject","isSet","argsTag","funcTag","objectTag","cloneableTags","baseClone","bitmask","customizer","stack","result","isDeep","isFlat","isFull","undefined","isArr","tag","isFunc","stacked","subValue","add","props","baseForOwn","createBaseEach","predicate","fromIndex","fromRight","arrayPush","isFlattenable","baseFlatten","depth","isStrict","isObjectLike","start","end","castPath","last","parent","toKey","path","cloneArrayBuffer","dataView","buffer","constructor","byteOffset","byteLength","reFlags","regexp","exec","lastIndex","Symbol","symbolProto","prototype","symbolValueOf","valueOf","symbol","call","getSymbols","getSymbolsIn","arrayAggregator","baseAggregator","baseIteratee","initializer","isArrayLike","eachFunc","iterable","isPlainObject","flatten","overRest","setToString","baseGetAllKeys","getPrototype","stubArray","getOwnPropertySymbols","hasOwnProperty","input","cloneDataView","cloneRegExp","cloneSymbol","cloneTypedArray","Ctor","isArguments","spreadableSymbol","isConcatSpreadable","baseGet","baseSlice","baseFindIndex","toInteger","nativeMax","baseAssignValue","createAggregator","push","baseIsMap","baseUnary","nodeUtil","nodeIsMap","baseIsSet","nodeIsSet","arrayMap","baseUnset","customOmitClone","flatRest","paths","CLONE_DEEP_FLAG","toFinite","remainder"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2517,9034],{17342:(e,o,l)=>{l.d(o,{A:()=>s});var t=l(8762),n=l.n(t);l(46733);const s=n()},3382:(e,o,l)=>{l.r(o),l.d(o,{ModalButton:()=>A,TabsModal:()=>k,TabsModalButton:()=>R,default:()=>F,useConfirmModal:()=>N,useModal:()=>v,useTabsModal:()=>P});var t=l(73884),n=l(55199),s=l(83136),i=l.n(s);const r={modal:"style_modal__Pm3cF__1KduF",large:"style_large__iaqVE__1KduF","modal-body-inner":"style_modal-body-inner__4PhpA__1KduF","modal-title":"style_modal-title__dswaw__1KduF","modal-outer":"style_modal-outer__r3SkX__1KduF","modal-body":"style_modal-body__jQJSI__1KduF","right-options-modal":"style_right-options-modal__FajDP__1KduF","right-options-row":"style_right-options-row__-mPb9__1KduF","right-options-col":"style_right-options-col__3ilee__1KduF","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__1KduF",content:"style_content__k6MIF__1KduF","modal-footer":"style_modal-footer__-prbN__1KduF","modal-close":"style_modal-close__Oa5Kl__1KduF","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__1KduF","is-danger":"style_is-danger__H5110__1KduF",title:"style_title__orTym__1KduF","has-title":"style_has-title__qy0Wp__1KduF"},a=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var c=l(58609),d=l(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var u=l(81014),h=l(17342),_=l(70579);const p="Modal",f=e=>{let{options:o,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:18,className:r["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:6,className:r["right-options-col"],children:o})]}):l},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:l,onConfirm:s,onCancel:i,onClose:r,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(l)&&0===l.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(l||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:p})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:p})}),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:l,onClick:n,autoClose:s=!0,display:i,...a}=e;const c=l||u.default;return(0,t.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];const t=await Promise.resolve(n&&n(...o,d));return s&&!1!==t&&r&&r(),t}})}))})})]})},b=e=>{let{title:o,footer:l,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:u,onCancel:p,children:f,targetProps:y}=e;const g=(0,t.useRef)(null);return(0,_.jsxs)("div",{className:r["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:r["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==l||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:l,footerButtons:a,onConfirm:u,onCancel:p,onClose:c,targetProps:y})}):null]})},j=e=>{let{withDecorator:o,footerButtons:l,title:t,closable:n,onClose:s,onConfirm:i,onCancel:r,footer:a,rightOptions:c,disabledScroller:d,childrenRef:u,children:h}=e;const p=e=>(e=Object.assign({},{title:t},e),(0,_.jsx)(b,{title:m(e.title,{...e,childrenRef:u,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:r,footerButtons:m(l,{...e,close:s}),disabledScroller:d,footer:m(a,{...e,childrenRef:u,close:s}),targetProps:Object.assign({},e,{childrenRef:u,close:s}),children:(0,_.jsx)(f,{options:m(c,{...e,childrenRef:u,close:s}),children:m(h,{...e,childrenRef:u,close:s})})}));return"function"===typeof o?o(p):p({})},x=e=>{let{children:o,rightOptions:l,footer:t,footerButtons:n,className:s,size:d,title:m,onClose:u,onConfirm:h,onCancel:p,closable:f,disabledScroller:y,withDecorator:C,childrenRef:b,...x}=e;return{...x,icon:null,centered:!0,title:null,maskClosable:!!x.hasOwnProperty("maskClosable")&&x.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:u,className:i()(s,r.modal,r[d],{[r["right-options-modal"]]:l}),...g(d,!(null===t&&!n)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:j({withDecorator:C,title:m,closable:f,onClose:u,onConfirm:h,onCancel:p,footer:t,footerButtons:n,rightOptions:l,disabledScroller:y,children:o,childrenRef:b})})}},w=e=>{const o=(0,t.useRef)(null);return(0,_.jsx)(n.Modal,{...x(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const v=()=>{const{modal:e}=n.App.useApp(),o=(0,t.useRef)(null);return l=>{const t={},{children:n,...s}=x({onClose:()=>t.close(),childrenRef:o,...l}),{destroy:i}=e.info({...s,content:n});return t.close=i,t}},N=()=>{const{modal:e}=n.App.useApp();return o=>{const l={},{type:t,icon:s,title:a,danger:c,wrapClassName:m,message:u,iconSetting:h={},confirmType:p="info",...f}={onClose:()=>l.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[t]){const{destroy:o}=e[t]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?p:t}`),type:s||y["confirm"===t?p:t]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===t?p:t}`),type:s||y["confirm"===t?p:t]}):null,u]})});l.close=o}return l}},F=w,K=e=>{let{items:o,className:l,activeKey:t,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,_.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:t,...n}=o;return Object.assign({},n,{children:"function"===typeof t?t((o=>e(Object.assign({},l,o,{children:n.children})))):e(Object.assign({},l,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:t,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(l):l()},children:e=>{let{children:o,...l}=e;return"function"===typeof o?o(l):o}}},k=e=>(0,_.jsx)(F,{...K(e)}),P=()=>{const e=v();return o=>e(K(o))};var M=l(73025);const R=e=>{const o=P();return(0,_.jsx)(M.A,{...e,modalFunc:o})},A=e=>{const o=v();return(0,_.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
+ //# sourceMappingURL=2517.d307103f.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2517.96913b93.chunk.js","mappings":"yMAGA,QAAeA,G,6MCFf,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBC,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB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J,EAC/B,MAA2B,oBAAbzC,EAA0BA,EAAS6C,GAAS7C,CAAQ,EAErE,EAOH,EAJmB6C,IACVvC,EAAAA,EAAAA,KAACkF,EAAK,IAAKP,EAAoBpC,KAK3B8E,EAAeA,KAC1B,MAAM/B,EAAQD,IACd,OAAQ9C,GAAU+C,EAAMX,EAAoBpC,GAAO,E,eCvDrD,MAKa+E,EAAmB/E,IAC9B,MAAMgF,EAAYF,IAClB,OAAOrH,EAAAA,EAAAA,KAACwH,EAAAA,EAAW,IAAKjF,EAAOkF,UAAWF,GAAa,EAEzD,EATqBhF,IACnB,MAAM+C,EAAQD,IACd,OAAOrF,EAAAA,EAAAA,KAACwH,EAAAA,EAAW,IAAKjF,EAAOkF,UAAWnC,GAAS,C","sources":["common/components/SimpleBar.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","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__F3OJD\",\"large\":\"style_large__iaqVE__F3OJD\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__F3OJD\",\"modal-title\":\"style_modal-title__dswaw__F3OJD\",\"modal-outer\":\"style_modal-outer__r3SkX__F3OJD\",\"modal-body\":\"style_modal-body__jQJSI__F3OJD\",\"right-options-modal\":\"style_right-options-modal__FajDP__F3OJD\",\"right-options-row\":\"style_right-options-row__-mPb9__F3OJD\",\"right-options-col\":\"style_right-options-col__3ilee__F3OJD\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__F3OJD\",\"content\":\"style_content__k6MIF__F3OJD\",\"modal-footer\":\"style_modal-footer__-prbN__F3OJD\",\"modal-close\":\"style_modal-close__Oa5Kl__F3OJD\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__F3OJD\",\"is-danger\":\"style_is-danger__H5110__F3OJD\",\"title\":\"style_title__orTym__F3OJD\",\"has-title\":\"style_has-title__qy0Wp__F3OJD\"};","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} className={style[\"right-options-row\"]}>\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 calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\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, !(footer === null && !footerButtons)),\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 {danger ? (\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 ) : null}\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 && danger ? (\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 ) : null}\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","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/2517.d307103f.chunk.js","mappings":"yMAGA,QAAeA,G,6MCFf,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBC,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB,QAEZC,EAAeC,IAA4B,IAA3B,QAAEH,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AAS6C,GAAS7C,CAAQ,EAErE,EAOH,EAJmB6C,IACVvC,EAAAA,EAAAA,KAACkF,EAAK,IAAKP,EAAoBpC,KAK3B8E,EAAeA,KAC1B,MAAM/B,EAAQD,IACd,OAAQ9C,GAAU+C,EAAMX,EAAoBpC,GAAO,E,eCvDrD,MAKa+E,EAAmB/E,IAC9B,MAAMgF,EAAYF,IAClB,OAAOrH,EAAAA,EAAAA,KAACwH,EAAAA,EAAW,IAAKjF,EAAOkF,UAAWF,GAAa,EAEzD,EATqBhF,IACnB,MAAM+C,EAAQD,IACd,OAAOrF,EAAAA,EAAAA,KAACwH,EAAAA,EAAW,IAAKjF,EAAOkF,UAAWnC,GAAS,C","sources":["common/components/SimpleBar.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","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__1KduF\",\"large\":\"style_large__iaqVE__1KduF\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__1KduF\",\"modal-title\":\"style_modal-title__dswaw__1KduF\",\"modal-outer\":\"style_modal-outer__r3SkX__1KduF\",\"modal-body\":\"style_modal-body__jQJSI__1KduF\",\"right-options-modal\":\"style_right-options-modal__FajDP__1KduF\",\"right-options-row\":\"style_right-options-row__-mPb9__1KduF\",\"right-options-col\":\"style_right-options-col__3ilee__1KduF\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__1KduF\",\"content\":\"style_content__k6MIF__1KduF\",\"modal-footer\":\"style_modal-footer__-prbN__1KduF\",\"modal-close\":\"style_modal-close__Oa5Kl__1KduF\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__1KduF\",\"is-danger\":\"style_is-danger__H5110__1KduF\",\"title\":\"style_title__orTym__1KduF\",\"has-title\":\"style_has-title__qy0Wp__1KduF\"};","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} className={style[\"right-options-row\"]}>\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 calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\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, !(footer === null && !footerButtons)),\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 {danger ? (\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 ) : null}\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 && danger ? (\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 ) : null}\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","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- /*! For license information please see 2716.f76d82b5.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>u});var s=r(73884),a=r(83136),o=r.n(a);const l={"state-tag":"style_state-tag__Kx27z__F3OJD","state-result-tag":"style_state-result-tag__CssDz__F3OJD","state-skill-tag":"style_state-skill-tag__k0bQE__F3OJD","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__F3OJD","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__F3OJD","state-tag-filterResult":"style_state-tag-filterResult__KTkot__F3OJD","show-bg":"style_show-bg__OcL+R__F3OJD","tag-text":"style_tag-text__JHCt+__F3OJD","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__F3OJD"};var _=r(55199),n=r(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},i=t=>{let{showBorder:e,text:r,type:a,showBackground:i,className:u,filterName:p,...g}=t;const d=(0,s.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[a])||void 0===t?void 0:t.color)||c[a],borderColor:(null===c||void 0===c||null===(e=c[a])||void 0===e?void 0:e.borderColor)||c[a]}}),[a]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:o()(l["state-tag-wrapper"],"filterResult"===a?l["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[p?(0,n.jsxs)("span",{className:l["state-tag-filter-name"],children:[p,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...g,style:{background:i?d.color+"0F":"none",color:d.color,border:e?`1px solid ${d.borderColor}`:"none"},className:o()(l["state-tag"],u,"result"===a?l["state-result-tag"]:"","skill"===a?l["state-skill-tag"]:"",l[`state-tag-${a}`],i?l["show-bg"]:"",e?l["show-border"]:""),children:(0,n.jsx)("span",{className:l["tag-text"],children:r})})]})};i.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const u=i},51153:(t,e,r)=>{var s=r(73884),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,_=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var s,o={},c=null,i=null;for(s in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(i=e.ref),e)l.call(e,s)&&!n.hasOwnProperty(s)&&(o[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===o[s]&&(o[s]=e[s]);return{$$typeof:a,type:t,key:c,ref:i,props:o,_owner:_.current}}e.Fragment=o,e.jsx=c,e.jsxs=c},70579:(t,e,r)=>{t.exports=r(51153)}}]);
3
- //# sourceMappingURL=2716.f76d82b5.chunk.js.map
1
+ /*! For license information please see 2716.9908ad0f.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>d});var s=r(73884),a=r(83136),o=r.n(a);const l={"state-tag":"style_state-tag__Kx27z__1KduF","state-result-tag":"style_state-result-tag__CssDz__1KduF","state-skill-tag":"style_state-skill-tag__k0bQE__1KduF","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__1KduF","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__1KduF","state-tag-filterResult":"style_state-tag-filterResult__KTkot__1KduF","show-bg":"style_show-bg__OcL+R__1KduF","tag-text":"style_tag-text__JHCt+__1KduF","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__1KduF"};var _=r(55199),n=r(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},u=t=>{let{showBorder:e,text:r,type:a,showBackground:u,className:d,filterName:i,...p}=t;const g=(0,s.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[a])||void 0===t?void 0:t.color)||c[a],borderColor:(null===c||void 0===c||null===(e=c[a])||void 0===e?void 0:e.borderColor)||c[a]}}),[a]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:o()(l["state-tag-wrapper"],"filterResult"===a?l["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[i?(0,n.jsxs)("span",{className:l["state-tag-filter-name"],children:[i,":"]}):null,(0,n.jsx)(_.Tag,{color:g.color,...p,style:{background:u?g.color+"0F":"none",color:g.color,border:e?`1px solid ${g.borderColor}`:"none"},className:o()(l["state-tag"],d,"result"===a?l["state-result-tag"]:"","skill"===a?l["state-skill-tag"]:"",l[`state-tag-${a}`],u?l["show-bg"]:"",e?l["show-border"]:""),children:(0,n.jsx)("span",{className:l["tag-text"],children:r})})]})};u.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const d=u},51153:(t,e,r)=>{var s=r(73884),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,_=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var s,o={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)l.call(e,s)&&!n.hasOwnProperty(s)&&(o[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===o[s]&&(o[s]=e[s]);return{$$typeof:a,type:t,key:c,ref:u,props:o,_owner:_.current}}e.Fragment=o,e.jsx=c,e.jsxs=c},70579:(t,e,r)=>{t.exports=r(51153)}}]);
3
+ //# sourceMappingURL=2716.9908ad0f.chunk.js.map