@kne-components/components-core 0.2.19 → 0.2.20

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 (179) 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.c5bf4295.chunk.css +2 -0
  6. package/build/static/css/{1151.b62a0a46.chunk.css.map → 1151.c5bf4295.chunk.css.map} +1 -1
  7. package/build/static/css/1153.e1136bb7.chunk.css +2 -0
  8. package/build/static/css/1153.e1136bb7.chunk.css.map +1 -0
  9. package/build/static/css/1154.6ec816e9.chunk.css +2 -0
  10. package/build/static/css/{1154.6ce4d1ce.chunk.css.map → 1154.6ec816e9.chunk.css.map} +1 -1
  11. package/build/static/css/1454.70aff5cc.chunk.css +2 -0
  12. package/build/static/css/{1454.1ce92048.chunk.css.map → 1454.70aff5cc.chunk.css.map} +1 -1
  13. package/build/static/css/1554.09f99760.chunk.css +2 -0
  14. package/build/static/css/{1554.6bdfd8b6.chunk.css.map → 1554.09f99760.chunk.css.map} +1 -1
  15. package/build/static/css/2503.bcfba63d.chunk.css +2 -0
  16. package/build/static/css/{2503.9dcf8e36.chunk.css.map → 2503.bcfba63d.chunk.css.map} +1 -1
  17. package/build/static/css/2517.24af23f9.chunk.css +2 -0
  18. package/build/static/css/{2517.c1ea5948.chunk.css.map → 2517.24af23f9.chunk.css.map} +1 -1
  19. package/build/static/css/2716.e46dcd15.chunk.css +2 -0
  20. package/build/static/css/{2716.f501e646.chunk.css.map → 2716.e46dcd15.chunk.css.map} +1 -1
  21. package/build/static/css/2730.9d5b19ce.chunk.css +2 -0
  22. package/build/static/css/{2730.ed9213b5.chunk.css.map → 2730.9d5b19ce.chunk.css.map} +1 -1
  23. package/build/static/css/289.7c187ff7.chunk.css +2 -0
  24. package/build/static/css/{289.e0ea33d4.chunk.css.map → 289.7c187ff7.chunk.css.map} +1 -1
  25. package/build/static/css/3142.3c420caf.chunk.css +2 -0
  26. package/build/static/css/{3142.bd58b245.chunk.css.map → 3142.3c420caf.chunk.css.map} +1 -1
  27. package/build/static/css/3333.1b58c0aa.chunk.css +2 -0
  28. package/build/static/css/{3333.f73580a7.chunk.css.map → 3333.1b58c0aa.chunk.css.map} +1 -1
  29. package/build/static/css/{3843.e194fb98.chunk.css → 3843.ba90a8f5.chunk.css} +2 -2
  30. package/build/static/css/{3843.e194fb98.chunk.css.map → 3843.ba90a8f5.chunk.css.map} +1 -1
  31. package/build/static/css/4029.072027ce.chunk.css +2 -0
  32. package/build/static/css/4029.072027ce.chunk.css.map +1 -0
  33. package/build/static/css/4265.321acd22.chunk.css +2 -0
  34. package/build/static/css/4265.321acd22.chunk.css.map +1 -0
  35. package/build/static/css/4666.e331554d.chunk.css +2 -0
  36. package/build/static/css/{4666.bbdf0532.chunk.css.map → 4666.e331554d.chunk.css.map} +1 -1
  37. package/build/static/css/5443.02545310.chunk.css +2 -0
  38. package/build/static/css/5443.02545310.chunk.css.map +1 -0
  39. package/build/static/css/5600.84a76396.chunk.css +2 -0
  40. package/build/static/css/{5600.6e93098d.chunk.css.map → 5600.84a76396.chunk.css.map} +1 -1
  41. package/build/static/css/5873.9f3477b5.chunk.css +2 -0
  42. package/build/static/css/{5873.53c523b7.chunk.css.map → 5873.9f3477b5.chunk.css.map} +1 -1
  43. package/build/static/css/{5996.7dffc103.chunk.css → 5996.0620077d.chunk.css} +2 -2
  44. package/build/static/css/{5996.7dffc103.chunk.css.map → 5996.0620077d.chunk.css.map} +1 -1
  45. package/build/static/css/6611.b88ef3ff.chunk.css +2 -0
  46. package/build/static/css/{6611.d8476515.chunk.css.map → 6611.b88ef3ff.chunk.css.map} +1 -1
  47. package/build/static/css/6779.3cfa629d.chunk.css +2 -0
  48. package/build/static/css/{6779.2e724d89.chunk.css.map → 6779.3cfa629d.chunk.css.map} +1 -1
  49. package/build/static/css/7121.a0adccf8.chunk.css +2 -0
  50. package/build/static/css/{7121.eed5972d.chunk.css.map → 7121.a0adccf8.chunk.css.map} +1 -1
  51. package/build/static/css/7227.2b968bc6.chunk.css +2 -0
  52. package/build/static/css/{7227.ca6e7f8b.chunk.css.map → 7227.2b968bc6.chunk.css.map} +1 -1
  53. package/build/static/css/8017.9290aea6.chunk.css +2 -0
  54. package/build/static/css/8017.9290aea6.chunk.css.map +1 -0
  55. package/build/static/css/{8725.4bf25476.chunk.css → 8725.63f5c01d.chunk.css} +2 -2
  56. package/build/static/css/{8725.4bf25476.chunk.css.map → 8725.63f5c01d.chunk.css.map} +1 -1
  57. package/build/static/css/9968.8205089a.chunk.css +2 -0
  58. package/build/static/css/9968.8205089a.chunk.css.map +1 -0
  59. package/build/static/js/{1106.ea4beed9.chunk.js → 1106.7e84f0e8.chunk.js} +2 -2
  60. package/build/static/js/{1106.ea4beed9.chunk.js.map → 1106.7e84f0e8.chunk.js.map} +1 -1
  61. package/build/static/js/{1153.c6ac48e2.chunk.js → 1153.6af03d54.chunk.js} +3 -3
  62. package/build/static/js/{1153.c6ac48e2.chunk.js.map → 1153.6af03d54.chunk.js.map} +1 -1
  63. package/build/static/js/1154.ed937d28.chunk.js +2 -0
  64. package/build/static/js/1154.ed937d28.chunk.js.map +1 -0
  65. package/build/static/js/1454.f07e6f93.chunk.js +3 -0
  66. package/build/static/js/{1454.fa2294da.chunk.js.map → 1454.f07e6f93.chunk.js.map} +1 -1
  67. package/build/static/js/1554.47b37595.chunk.js +3 -0
  68. package/build/static/js/{1554.5dad89e6.chunk.js.map → 1554.47b37595.chunk.js.map} +1 -1
  69. package/build/static/js/2503.1da25d3a.chunk.js +2 -0
  70. package/build/static/js/{2503.a07ff447.chunk.js.map → 2503.1da25d3a.chunk.js.map} +1 -1
  71. package/build/static/js/2517.968ce983.chunk.js +2 -0
  72. package/build/static/js/{2517.d13df720.chunk.js.map → 2517.968ce983.chunk.js.map} +1 -1
  73. package/build/static/js/2716.6d68d7db.chunk.js +3 -0
  74. package/build/static/js/{2716.6151f538.chunk.js.map → 2716.6d68d7db.chunk.js.map} +1 -1
  75. package/build/static/js/2730.671e63e6.chunk.js +2 -0
  76. package/build/static/js/{2730.53414d5e.chunk.js.map → 2730.671e63e6.chunk.js.map} +1 -1
  77. package/build/static/js/2814.fde668d0.chunk.js +2 -0
  78. package/build/static/js/{2814.24db70f4.chunk.js.map → 2814.fde668d0.chunk.js.map} +1 -1
  79. package/build/static/js/{289.18f2b53a.chunk.js → 289.8f2e287e.chunk.js} +2 -2
  80. package/build/static/js/{289.18f2b53a.chunk.js.map → 289.8f2e287e.chunk.js.map} +1 -1
  81. package/build/static/js/{3142.48308dbb.chunk.js → 3142.24199eba.chunk.js} +2 -2
  82. package/build/static/js/{3142.48308dbb.chunk.js.map → 3142.24199eba.chunk.js.map} +1 -1
  83. package/build/static/js/{3333.5f2df437.chunk.js → 3333.26eda487.chunk.js} +2 -2
  84. package/build/static/js/{3333.5f2df437.chunk.js.map → 3333.26eda487.chunk.js.map} +1 -1
  85. package/build/static/js/36.ec11950f.chunk.js +2 -0
  86. package/build/static/js/{36.4ae1c1f1.chunk.js.map → 36.ec11950f.chunk.js.map} +1 -1
  87. package/build/static/js/{3843.e1ad2ca0.chunk.js → 3843.ee7f001a.chunk.js} +2 -2
  88. package/build/static/js/{3843.e1ad2ca0.chunk.js.map → 3843.ee7f001a.chunk.js.map} +1 -1
  89. package/build/static/js/{4029.6461d512.chunk.js → 4029.62b6ec9d.chunk.js} +2 -2
  90. package/build/static/js/4029.62b6ec9d.chunk.js.map +1 -0
  91. package/build/static/js/4265.a85b8e8d.chunk.js +2 -0
  92. package/build/static/js/{4265.48fd8a97.chunk.js.map → 4265.a85b8e8d.chunk.js.map} +1 -1
  93. package/build/static/js/{4666.90aad599.chunk.js → 4666.0cbf32b3.chunk.js} +3 -3
  94. package/build/static/js/{4666.90aad599.chunk.js.map → 4666.0cbf32b3.chunk.js.map} +1 -1
  95. package/build/static/js/5443.376b47b4.chunk.js +2 -0
  96. package/build/static/js/{5443.5fc68fc4.chunk.js.map → 5443.376b47b4.chunk.js.map} +1 -1
  97. package/build/static/js/5600.0d345385.chunk.js +2 -0
  98. package/build/static/js/{5600.2e0c1827.chunk.js.map → 5600.0d345385.chunk.js.map} +1 -1
  99. package/build/static/js/{5873.1a59f898.chunk.js → 5873.8f470e43.chunk.js} +2 -2
  100. package/build/static/js/{5873.1a59f898.chunk.js.map → 5873.8f470e43.chunk.js.map} +1 -1
  101. package/build/static/js/{5996.d9e6b139.chunk.js → 5996.faeee14d.chunk.js} +2 -2
  102. package/build/static/js/{5996.d9e6b139.chunk.js.map → 5996.faeee14d.chunk.js.map} +1 -1
  103. package/build/static/js/{6569.abfd3311.chunk.js → 6569.913e09b0.chunk.js} +2 -2
  104. package/build/static/js/{6569.abfd3311.chunk.js.map → 6569.913e09b0.chunk.js.map} +1 -1
  105. package/build/static/js/{6611.1f171d6f.chunk.js → 6611.32ab972c.chunk.js} +2 -2
  106. package/build/static/js/{6611.1f171d6f.chunk.js.map → 6611.32ab972c.chunk.js.map} +1 -1
  107. package/build/static/js/6779.2e08f473.chunk.js +2 -0
  108. package/build/static/js/{6779.36115c53.chunk.js.map → 6779.2e08f473.chunk.js.map} +1 -1
  109. package/build/static/js/6915.c62232e0.chunk.js +2 -0
  110. package/build/static/js/{6915.bc30742e.chunk.js.map → 6915.c62232e0.chunk.js.map} +1 -1
  111. package/build/static/js/7121.6a1f5220.chunk.js +2 -0
  112. package/build/static/js/{7121.e32ec3f6.chunk.js.map → 7121.6a1f5220.chunk.js.map} +1 -1
  113. package/build/static/js/7227.542429d0.chunk.js +3 -0
  114. package/build/static/js/{7227.5e62b993.chunk.js.map → 7227.542429d0.chunk.js.map} +1 -1
  115. package/build/static/js/{7790.b13a7921.chunk.js → 7790.4e0ecb9c.chunk.js} +2 -2
  116. package/build/static/js/{7790.b13a7921.chunk.js.map → 7790.4e0ecb9c.chunk.js.map} +1 -1
  117. package/build/static/js/{8017.58ebd894.chunk.js → 8017.850296f4.chunk.js} +2 -2
  118. package/build/static/js/{8017.58ebd894.chunk.js.map → 8017.850296f4.chunk.js.map} +1 -1
  119. package/build/static/js/{8725.0b820018.chunk.js → 8725.19452b01.chunk.js} +2 -2
  120. package/build/static/js/{8725.0b820018.chunk.js.map → 8725.19452b01.chunk.js.map} +1 -1
  121. package/build/static/js/{9968.f5340652.chunk.js → 9968.692d3e83.chunk.js} +2 -2
  122. package/build/static/js/{9968.f5340652.chunk.js.map → 9968.692d3e83.chunk.js.map} +1 -1
  123. package/build/static/js/{main.08c1ed8c.js → main.a062cc0d.js} +2 -2
  124. package/build/static/js/{main.08c1ed8c.js.map → main.a062cc0d.js.map} +1 -1
  125. package/package.json +1 -1
  126. package/build/static/css/1151.b62a0a46.chunk.css +0 -2
  127. package/build/static/css/1153.26b68e3d.chunk.css +0 -2
  128. package/build/static/css/1153.26b68e3d.chunk.css.map +0 -1
  129. package/build/static/css/1154.6ce4d1ce.chunk.css +0 -2
  130. package/build/static/css/1454.1ce92048.chunk.css +0 -2
  131. package/build/static/css/1554.6bdfd8b6.chunk.css +0 -2
  132. package/build/static/css/2503.9dcf8e36.chunk.css +0 -2
  133. package/build/static/css/2517.c1ea5948.chunk.css +0 -2
  134. package/build/static/css/2716.f501e646.chunk.css +0 -2
  135. package/build/static/css/2730.ed9213b5.chunk.css +0 -2
  136. package/build/static/css/289.e0ea33d4.chunk.css +0 -2
  137. package/build/static/css/3142.bd58b245.chunk.css +0 -2
  138. package/build/static/css/3333.f73580a7.chunk.css +0 -2
  139. package/build/static/css/4029.34ed89fc.chunk.css +0 -2
  140. package/build/static/css/4029.34ed89fc.chunk.css.map +0 -1
  141. package/build/static/css/4265.9dd523a1.chunk.css +0 -2
  142. package/build/static/css/4265.9dd523a1.chunk.css.map +0 -1
  143. package/build/static/css/4666.bbdf0532.chunk.css +0 -2
  144. package/build/static/css/5443.3b77faae.chunk.css +0 -2
  145. package/build/static/css/5443.3b77faae.chunk.css.map +0 -1
  146. package/build/static/css/5600.6e93098d.chunk.css +0 -2
  147. package/build/static/css/5873.53c523b7.chunk.css +0 -2
  148. package/build/static/css/6611.d8476515.chunk.css +0 -2
  149. package/build/static/css/6779.2e724d89.chunk.css +0 -2
  150. package/build/static/css/7121.eed5972d.chunk.css +0 -2
  151. package/build/static/css/7227.ca6e7f8b.chunk.css +0 -2
  152. package/build/static/css/8017.897324af.chunk.css +0 -2
  153. package/build/static/css/8017.897324af.chunk.css.map +0 -1
  154. package/build/static/css/9968.16bbe983.chunk.css +0 -2
  155. package/build/static/css/9968.16bbe983.chunk.css.map +0 -1
  156. package/build/static/js/1154.5b9402d8.chunk.js +0 -2
  157. package/build/static/js/1154.5b9402d8.chunk.js.map +0 -1
  158. package/build/static/js/1454.fa2294da.chunk.js +0 -3
  159. package/build/static/js/1554.5dad89e6.chunk.js +0 -3
  160. package/build/static/js/2503.a07ff447.chunk.js +0 -2
  161. package/build/static/js/2517.d13df720.chunk.js +0 -2
  162. package/build/static/js/2716.6151f538.chunk.js +0 -3
  163. package/build/static/js/2730.53414d5e.chunk.js +0 -2
  164. package/build/static/js/2814.24db70f4.chunk.js +0 -2
  165. package/build/static/js/36.4ae1c1f1.chunk.js +0 -2
  166. package/build/static/js/4029.6461d512.chunk.js.map +0 -1
  167. package/build/static/js/4265.48fd8a97.chunk.js +0 -2
  168. package/build/static/js/5443.5fc68fc4.chunk.js +0 -2
  169. package/build/static/js/5600.2e0c1827.chunk.js +0 -2
  170. package/build/static/js/6779.36115c53.chunk.js +0 -2
  171. package/build/static/js/6915.bc30742e.chunk.js +0 -2
  172. package/build/static/js/7121.e32ec3f6.chunk.js +0 -2
  173. package/build/static/js/7227.5e62b993.chunk.js +0 -3
  174. /package/build/static/js/{1153.c6ac48e2.chunk.js.LICENSE.txt → 1153.6af03d54.chunk.js.LICENSE.txt} +0 -0
  175. /package/build/static/js/{1454.fa2294da.chunk.js.LICENSE.txt → 1454.f07e6f93.chunk.js.LICENSE.txt} +0 -0
  176. /package/build/static/js/{1554.5dad89e6.chunk.js.LICENSE.txt → 1554.47b37595.chunk.js.LICENSE.txt} +0 -0
  177. /package/build/static/js/{2716.6151f538.chunk.js.LICENSE.txt → 2716.6d68d7db.chunk.js.LICENSE.txt} +0 -0
  178. /package/build/static/js/{4666.90aad599.chunk.js.LICENSE.txt → 4666.0cbf32b3.chunk.js.LICENSE.txt} +0 -0
  179. /package/build/static/js/{7227.5e62b993.chunk.js.LICENSE.txt → 7227.542429d0.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>f});const n={menu:"style_menu__gvIvn__Cwdbl","all-no-start-icon":"style_all-no-start-icon__CA+zR__Cwdbl","no-start-icon":"style_no-start-icon__LnC1S__Cwdbl","has-children":"style_has-children__m9tce__Cwdbl","has-children-node":"style_has-children-node__2bhEB__Cwdbl","is-root":"style_is-root__4hhOc__Cwdbl",title:"style_title__+Hcar__Cwdbl",active:"style_active__WU49K__Cwdbl","no-collapse":"style_no-collapse__aIZBM__Cwdbl","title-content":"style_title-content__cQXpK__Cwdbl",loading:"style_loading__1pU4P__Cwdbl"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:C,onOpenChange:f,children:b,fetchOptions:K,depth:O,onLoad:v,allowCollapsed:w}=e,j=Array.isArray(b)&&b.length>0||K,{refresh:k,isLoading:x}=(0,y.useFetch)(Object.assign({},K,{auto:!w&&K,onRequestSuccess:e=>{v(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:C,[n["has-children"]]:j,[n["no-collapse"]]:j&&!w,[n["no-start-icon"]]:!d,[n["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),j||!h?j||K?w&&(K&&k({}),f(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),j&&w&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),j?!w||g&&b?(0,m.jsx)("div",{className:n["children-list"],children:b}):!w||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},C=e=>{let{className:s,allowCollapsed:t,...l}=e;const{pathname:r,search:i}=(0,o.useLocation)(),[c,p]=d()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[u,y]=d()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:C,defaultOpenKeys:f,links:b,childrenKeys:K,hasStartIcon:O,hasChildren:v}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(l));s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(u);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[u]);(0,h.useEffect)((()=>{const e=b.find((e=>{let{path:s}=e;return _()(r.replace(/[#,?].*/,""))===_()(s)||_()(r+i)===_()(s)}));e&&p(e.key)}),[b,r,i,p]);const[w,j]=d()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||f}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),k=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||K[i]&&K[i].indexOf(a)>-1,onClick:p,onLoad:e=>{y((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{j((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},k(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[y,j,p,K,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!O,[n["has-children-node"]]:v}),children:k(C,{selectedKey:c,openKeys:w})})};C.defaultProps={defaultItems:[],allowCollapsed:!0};const f=C},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__Cwdbl";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
2
- //# sourceMappingURL=6611.1f171d6f.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>f});const n={menu:"style_menu__gvIvn__+Svgs","all-no-start-icon":"style_all-no-start-icon__CA+zR__+Svgs","no-start-icon":"style_no-start-icon__LnC1S__+Svgs","has-children":"style_has-children__m9tce__+Svgs","has-children-node":"style_has-children-node__2bhEB__+Svgs","is-root":"style_is-root__4hhOc__+Svgs",title:"style_title__+Hcar__+Svgs",active:"style_active__WU49K__+Svgs","no-collapse":"style_no-collapse__aIZBM__+Svgs","title-content":"style_title-content__cQXpK__+Svgs",loading:"style_loading__1pU4P__+Svgs"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:v,onOpenChange:f,children:K,fetchOptions:O,depth:C,onLoad:j,allowCollapsed:k}=e,S=Array.isArray(K)&&K.length>0||O,{refresh:b,isLoading:x}=(0,y.useFetch)(Object.assign({},O,{auto:!k&&O,onRequestSuccess:e=>{j(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:v,[n["has-children"]]:S,[n["no-collapse"]]:S&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),S||!h?S||O?k&&(O&&b({}),f(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),S&&k&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),S?!k||g&&K?(0,m.jsx)("div",{className:n["children-list"],children:K}):!k||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},v=e=>{let{className:s,allowCollapsed:t,...l}=e;const{pathname:r,search:i}=(0,o.useLocation)(),[c,p]=d()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[u,y]=d()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:v,defaultOpenKeys:f,links:K,childrenKeys:O,hasStartIcon:C,hasChildren:j}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(l));s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(u);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[u]);(0,h.useEffect)((()=>{const e=K.find((e=>{let{path:s}=e;return _()(r.replace(/[#,?].*/,""))===_()(s)||_()(r+i)===_()(s)}));e&&p(e.key)}),[K,r,i,p]);const[k,S]=d()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||f}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),b=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||O[i]&&O[i].indexOf(a)>-1,onClick:p,onLoad:e=>{y((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{S((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},b(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[y,S,p,O,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!C,[n["has-children-node"]]:j}),children:b(v,{selectedKey:c,openKeys:k})})};v.defaultProps={defaultItems:[],allowCollapsed:!0};const f=v},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__+Svgs";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
2
+ //# sourceMappingURL=6611.32ab972c.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/6611.1f171d6f.chunk.js","mappings":"2LACA,SAAgB,KAAO,2BAA2B,oBAAoB,wCAAwC,gBAAgB,oCAAoC,eAAe,mCAAmC,oBAAoB,wCAAwC,UAAU,8BAA8B,MAAQ,4BAA4B,OAAS,6BAA6B,cAAc,kCAAkC,gBAAgB,oCAAoC,QAAU,+B,6ICUhf,MA6CMA,EAAYC,IAChB,MAAMC,GAAaC,EAAAA,EAAAA,gBACb,GACJC,EAAE,UACFC,EAAS,MACTC,EAAK,SACLC,EAAQ,KACRC,EAAI,QACJC,EAAO,QACPC,EAAO,OACPC,EAAM,WACNC,EAAU,aACVC,EAAY,SACZC,EAAQ,aACRC,EAAY,MACZC,EAAK,OACLC,EAAM,eACNC,GACEjB,EAEEkB,EACHC,MAAMC,QAAQP,IAAaA,EAASQ,OAAS,GAAMP,GAChD,QAAEQ,EAAO,UAAEC,IAAcC,EAAAA,EAAAA,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B,MAAMC,QAAQZ,IAAYA,EAAQa,OAAS,IAC9Cb,EAAQ4F,MAAM/B,IAAgB8B,GAAe,IAAIR,QAAQtB,IAAe,GACpE,EAGGgC,EAAiBA,KAC5B,MAAM,OAAEC,IAAWC,EAAAA,EAAAA,qBACb,YAAEJ,EAAW,gBAAEK,IAAoBC,EAAAA,EAAAA,aACzC,MAAO,CACLN,YACEG,EAAOH,aACPA,GACCK,GAAmBE,IAAIJ,EAAQE,IAChC,GACH,EAGUG,EAAqB1B,IAAkB,IAAjB,QAAEzE,GAASyE,EAC5C,MAAM,YAAEkB,GAAgBE,IACxB,OAAOH,EAAe,CAAEC,cAAa3F,WAAU,EAG3CuB,EAAcyD,IAQb,IARc,KACnBlD,EAAI,UACJlC,EAAS,QACTwG,EAAO,QACPC,EAAO,QACPrG,EAAO,SACPK,KACGb,GACJwF,EACC,MAAMsB,EAASH,EAAmB,CAAEnG,YACpC,MAAwB,oBAAbK,EACFA,EAAS,CAAEiG,SAAQxE,OAAM9B,aAGnB,IAAXsG,EACKjG,EAGI,UAATyB,GACKR,EAAAA,EAAAA,KAACiF,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUJ,IAG3B,YAATvE,GAEAR,EAAAA,EAAAA,KAACoF,EAAAA,QAAO,CAACC,MAAON,EAAQhG,UACrBuG,EAAAA,EAAAA,eACCR,EACA,IAAK5G,EAAOI,UAAW6B,IAAWC,EAAgB9B,IAClDS,KAMD,IAAI,EAGbkB,EAAYiE,aAAe,CACzB1D,KAAM,SACNsE,QAAS,OACTC,QAAS,4EAGX,S","sources":["webpack://@kne-components/components-core/./src/components/Menu/style.module.scss?ca16","components/Menu/index.js","webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"menu\":\"style_menu__gvIvn__Cwdbl\",\"all-no-start-icon\":\"style_all-no-start-icon__CA+zR__Cwdbl\",\"no-start-icon\":\"style_no-start-icon__LnC1S__Cwdbl\",\"has-children\":\"style_has-children__m9tce__Cwdbl\",\"has-children-node\":\"style_has-children-node__2bhEB__Cwdbl\",\"is-root\":\"style_is-root__4hhOc__Cwdbl\",\"title\":\"style_title__+Hcar__Cwdbl\",\"active\":\"style_active__WU49K__Cwdbl\",\"no-collapse\":\"style_no-collapse__aIZBM__Cwdbl\",\"title-content\":\"style_title-content__cQXpK__Cwdbl\",\"loading\":\"style_loading__1pU4P__Cwdbl\"};","import style from \"./style.module.scss\";\nimport classnames from \"classnames\";\nimport { Spin } from \"antd\";\nimport { useLocation, useNavigate } from \"react-router-dom\";\nimport Permissions from \"@components/Permissions\";\nimport useControlValue from \"@kne/use-control-value\";\nimport Icon from \"@components/Icon\";\nimport { useCallback, useEffect, useMemo } from \"react\";\nimport ensureSlash from \"@kne/ensure-slash\";\nimport { useFetch } from \"@kne/react-fetch\";\n\nconst treeEnhance = (items) => {\n const childrenKeys = {},\n nodeMapping = [];\n const traversal = (children, options) => {\n const { parentKey, depth } = Object.assign(\n {\n parentKey: \"root\",\n depth: 0,\n paths: [],\n },\n options\n );\n if (!(Array.isArray(children) && children.length > 0)) {\n return null;\n }\n return children.map((item, index) => {\n const currentKey = `${\n item.key ||\n `${parentKey !== \"root\" ? `${parentKey}-` : \"\"}node-${index}`\n }`;\n if (!childrenKeys[parentKey]) {\n childrenKeys[parentKey] = [];\n }\n childrenKeys[parentKey].push(currentKey);\n const children = traversal(item.children, {\n parentKey: currentKey,\n depth: depth + 1,\n });\n childrenKeys[currentKey] &&\n childrenKeys[parentKey].push(...childrenKeys[currentKey]);\n const targetItem = Object.assign({}, item, {\n key: currentKey,\n parentKey,\n depth,\n children: children,\n originItem: item,\n });\n nodeMapping[currentKey] = targetItem;\n return targetItem;\n });\n };\n\n return { items: traversal(items), childrenKeys, nodeMapping };\n};\n\nconst MenuItem = (props) => {\n const navigation = useNavigate();\n const {\n id,\n className,\n label,\n iconType,\n path,\n request,\n onClick,\n isOpen,\n isSelected,\n onOpenChange,\n children,\n fetchOptions,\n depth,\n onLoad,\n allowCollapsed,\n } = props;\n\n const hasChildren =\n (Array.isArray(children) && children.length > 0) || fetchOptions;\n const { refresh, isLoading } = useFetch(\n Object.assign({}, fetchOptions, {\n auto: !allowCollapsed && fetchOptions,\n onRequestSuccess: (data) => {\n onLoad(data);\n },\n })\n );\n\n const renderChildren = () => {\n if (!hasChildren) {\n return null;\n }\n if (!allowCollapsed || (isOpen && children)) {\n return <div className={style[\"children-list\"]}>{children}</div>;\n }\n\n if (!allowCollapsed || (isOpen && isLoading)) {\n return (\n <div className={style[\"children-list\"]}>\n <Spin className={style[\"loading\"]} size=\"small\" />\n </div>\n );\n }\n };\n return (\n <Permissions request={request}>\n <div className={classnames(className, style[\"menu-item\"])}>\n <div\n className={classnames(style[\"title\"], {\n [style[\"active\"]]: isSelected,\n [style[\"has-children\"]]: hasChildren,\n [style[\"no-collapse\"]]: hasChildren && !allowCollapsed,\n [style[\"no-start-icon\"]]: !iconType,\n [style[\"is-root\"]]: depth === 0,\n })}\n onClick={(e) => {\n e.stopPropagation();\n if (!hasChildren && path) {\n navigation(path);\n return;\n }\n if (!hasChildren && !fetchOptions) {\n onClick?.(id, props);\n return;\n }\n if (!allowCollapsed) {\n return;\n }\n fetchOptions && refresh({});\n onOpenChange(!isOpen);\n }}\n >\n {iconType && <Icon type={iconType} />}\n <span className={style[\"title-content\"]}>{label}</span>\n {hasChildren && allowCollapsed && (\n <Icon\n type={isOpen ? \"icon-arrow-bold-down\" : \"icon-arrow-bold-right\"}\n />\n )}\n </div>\n {renderChildren()}\n </div>\n </Permissions>\n );\n};\n\nconst Menu = ({ className, allowCollapsed, ...props }) => {\n const { pathname, search } = useLocation();\n const [selectedKey, setSelectKeyChange] = useControlValue(props, {\n value: \"currentKey\",\n defaultValue: \"defaultCurrentKey\",\n });\n\n const [items, setItems] = useControlValue(props, {\n defaultValue: \"defaultItems\",\n value: \"items\",\n onChange: \"onItemsChange\",\n });\n\n const {\n items: targetItems,\n defaultOpenKeys,\n links,\n childrenKeys,\n hasStartIcon,\n hasChildren,\n } = useMemo(() => {\n const {\n items: targetItems,\n childrenKeys,\n nodeMapping,\n } = treeEnhance(items);\n let hasStartIcon = false,\n hasChildren = false;\n const links = [],\n defaultOpenKeys = [];\n childrenKeys?.[\"root\"]?.forEach((key) => {\n const node = nodeMapping[key];\n if (node.iconType) {\n hasStartIcon = true;\n }\n node.path && links.push({ path: node.path, key });\n if (Array.isArray(node.children) && node.children.length > 0) {\n hasChildren = true;\n defaultOpenKeys.push(node.key);\n }\n });\n return {\n defaultOpenKeys,\n links,\n items: targetItems,\n childrenKeys,\n hasStartIcon,\n hasChildren,\n };\n }, [items]);\n useEffect(() => {\n const matchedPath = links.find(({ path }) => {\n return (\n ensureSlash(pathname.replace(/[#,?].*/, \"\")) === ensureSlash(path) ||\n ensureSlash(pathname + search) === ensureSlash(path)\n );\n });\n if (matchedPath) {\n setSelectKeyChange(matchedPath.key);\n }\n }, [links, pathname, search, setSelectKeyChange]);\n\n const [openKeys, setOpenKeys] = useControlValue(\n Object.assign({}, props, {\n defaultOpenKeys: props.defaultOpenKeys || defaultOpenKeys,\n }),\n {\n value: \"openKeys\",\n defaultValue: \"defaultOpenKeys\",\n onChange: \"onOpenChange\",\n }\n );\n\n const renderChildren = useCallback(\n (children, options) => {\n const { parentKey, depth, selectedKey, openKeys, paths } = Object.assign(\n {\n parentKey: null,\n depth: 0,\n paths: [],\n },\n options\n );\n if (Array.isArray(children) && children.length > 0) {\n return children.map(\n ({ children, key: currentKey, originItem, ...item }) => {\n return (\n <MenuItem\n {...Object.assign({}, item)}\n id={currentKey}\n parentId={parentKey}\n depth={depth}\n allowCollapsed={allowCollapsed}\n isSelected={\n currentKey === selectedKey ||\n (childrenKeys[currentKey] &&\n childrenKeys[currentKey].indexOf(selectedKey) > -1)\n }\n onClick={setSelectKeyChange}\n onLoad={(data) => {\n setItems((items) => {\n const core = (children) => {\n if (Array.isArray(children) && children.length > 0) {\n return children.map((item) => {\n return Object.assign({}, item, {\n children:\n originItem === item ? data : core(item.children),\n });\n });\n }\n return null;\n };\n\n return core(items);\n });\n }}\n isOpen={(openKeys || []).indexOf(currentKey) > -1}\n key={currentKey}\n onOpenChange={() => {\n setOpenKeys((openKeys) => {\n const newOpenKeys = openKeys.slice(0);\n if (openKeys.indexOf(currentKey) > -1) {\n newOpenKeys.splice(openKeys.indexOf(currentKey), 1);\n } else {\n newOpenKeys.push(currentKey);\n }\n return newOpenKeys;\n });\n }}\n >\n {renderChildren(children, {\n parentKey,\n depth: depth + 1,\n selectedKey,\n openKeys,\n paths: [...paths, currentKey],\n })}\n </MenuItem>\n );\n }\n );\n }\n return null;\n },\n [setItems, setOpenKeys, setSelectKeyChange, childrenKeys, allowCollapsed]\n );\n\n return (\n <div\n className={classnames(className, style[\"menu\"], {\n [style[\"all-no-start-icon\"]]: !hasStartIcon,\n [style[\"has-children-node\"]]: hasChildren,\n })}\n >\n {renderChildren(targetItems, { selectedKey, openKeys })}\n </div>\n );\n};\n\nMenu.defaultProps = {\n defaultItems: [],\n allowCollapsed: true,\n};\n\nexport default Menu;\n","// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__Cwdbl\"};","import { createElement } from \"react\";\nimport { Result, Tooltip } from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { useGlobalContext, usePreset } from \"@components/Global\";\n\nexport const computedIsPass = ({ permissions, request }) => {\n return Array.isArray(request) && request.length > 0\n ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1)\n : true;\n};\n\nexport const usePermissions = () => {\n const { global } = useGlobalContext();\n const { permissions, permissionsPath } = usePreset();\n return {\n permissions:\n global.permissions ||\n permissions ||\n (permissionsPath && get(global, permissionsPath)) ||\n [],\n };\n};\n\nexport const usePermissionsPass = ({ request }) => {\n const { permissions } = usePermissions();\n return computedIsPass({ permissions, request });\n};\n\nconst Permissions = ({\n type,\n className,\n tagName,\n message,\n request,\n children,\n ...props\n}) => {\n const isPass = usePermissionsPass({ request });\n if (typeof children === \"function\") {\n return children({ isPass, type, request });\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message} />;\n }\n\n if (type === \"tooltip\") {\n return (\n <Tooltip title={message}>\n {createElement(\n tagName,\n { ...props, className: classnames(style[\"outer\"], className) },\n children\n )}\n </Tooltip>\n );\n }\n\n return null;\n};\n\nPermissions.defaultProps = {\n type: \"hidden\",\n tagName: \"span\",\n message: \"您暂无权限,请联系管理员\",\n};\n\nexport default Permissions;\n"],"names":["MenuItem","props","navigation","useNavigate","id","className","label","iconType","path","request","onClick","isOpen","isSelected","onOpenChange","children","fetchOptions","depth","onLoad","allowCollapsed","hasChildren","Array","isArray","length","refresh","isLoading","useFetch","Object","assign","auto","onRequestSuccess","data","_jsx","Permissions","_jsxs","classnames","style","e","stopPropagation","Icon","type","Spin","size","Menu","_ref","pathname","search","useLocation","selectedKey","setSelectKeyChange","useControlValue","value","defaultValue","items","setItems","onChange","targetItems","defaultOpenKeys","links","childrenKeys","hasStartIcon","useMemo","_childrenKeys$root","nodeMapping","traversal","options","parentKey","paths","map","item","index","currentKey","concat","key","push","targetItem","originItem","treeEnhance","forEach","node","useEffect","matchedPath","find","_ref2","ensureSlash","replace","openKeys","setOpenKeys","renderChildren","useCallback","_ref3","_createElement","parentId","indexOf","core","newOpenKeys","slice","splice","defaultProps","defaultItems","computedIsPass","permissions","some","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","tagName","message","isPass","Result","status","subTitle","Tooltip","title","createElement"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/6611.32ab972c.chunk.js","mappings":"2LACA,SAAgB,KAAO,2BAA2B,oBAAoB,wCAAwC,gBAAgB,oCAAoC,eAAe,mCAAmC,oBAAoB,wCAAwC,UAAU,8BAA8B,MAAQ,4BAA4B,OAAS,6BAA6B,cAAc,kCAAkC,gBAAgB,oCAAoC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AWC,EAAgB9B,IAClDS,KAMD,IAAI,EAGbkB,EAAYiE,aAAe,CACzB1D,KAAM,SACNsE,QAAS,OACTC,QAAS,4EAGX,S","sources":["webpack://@kne-components/components-core/./src/components/Menu/style.module.scss?ca16","components/Menu/index.js","webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"menu\":\"style_menu__gvIvn__+Svgs\",\"all-no-start-icon\":\"style_all-no-start-icon__CA+zR__+Svgs\",\"no-start-icon\":\"style_no-start-icon__LnC1S__+Svgs\",\"has-children\":\"style_has-children__m9tce__+Svgs\",\"has-children-node\":\"style_has-children-node__2bhEB__+Svgs\",\"is-root\":\"style_is-root__4hhOc__+Svgs\",\"title\":\"style_title__+Hcar__+Svgs\",\"active\":\"style_active__WU49K__+Svgs\",\"no-collapse\":\"style_no-collapse__aIZBM__+Svgs\",\"title-content\":\"style_title-content__cQXpK__+Svgs\",\"loading\":\"style_loading__1pU4P__+Svgs\"};","import style from \"./style.module.scss\";\nimport classnames from \"classnames\";\nimport { Spin } from \"antd\";\nimport { useLocation, useNavigate } from \"react-router-dom\";\nimport Permissions from \"@components/Permissions\";\nimport useControlValue from \"@kne/use-control-value\";\nimport Icon from \"@components/Icon\";\nimport { useCallback, useEffect, useMemo } from \"react\";\nimport ensureSlash from \"@kne/ensure-slash\";\nimport { useFetch } from \"@kne/react-fetch\";\n\nconst treeEnhance = (items) => {\n const childrenKeys = {},\n nodeMapping = [];\n const traversal = (children, options) => {\n const { parentKey, depth } = Object.assign(\n {\n parentKey: \"root\",\n depth: 0,\n paths: [],\n },\n options\n );\n if (!(Array.isArray(children) && children.length > 0)) {\n return null;\n }\n return children.map((item, index) => {\n const currentKey = `${\n item.key ||\n `${parentKey !== \"root\" ? `${parentKey}-` : \"\"}node-${index}`\n }`;\n if (!childrenKeys[parentKey]) {\n childrenKeys[parentKey] = [];\n }\n childrenKeys[parentKey].push(currentKey);\n const children = traversal(item.children, {\n parentKey: currentKey,\n depth: depth + 1,\n });\n childrenKeys[currentKey] &&\n childrenKeys[parentKey].push(...childrenKeys[currentKey]);\n const targetItem = Object.assign({}, item, {\n key: currentKey,\n parentKey,\n depth,\n children: children,\n originItem: item,\n });\n nodeMapping[currentKey] = targetItem;\n return targetItem;\n });\n };\n\n return { items: traversal(items), childrenKeys, nodeMapping };\n};\n\nconst MenuItem = (props) => {\n const navigation = useNavigate();\n const {\n id,\n className,\n label,\n iconType,\n path,\n request,\n onClick,\n isOpen,\n isSelected,\n onOpenChange,\n children,\n fetchOptions,\n depth,\n onLoad,\n allowCollapsed,\n } = props;\n\n const hasChildren =\n (Array.isArray(children) && children.length > 0) || fetchOptions;\n const { refresh, isLoading } = useFetch(\n Object.assign({}, fetchOptions, {\n auto: !allowCollapsed && fetchOptions,\n onRequestSuccess: (data) => {\n onLoad(data);\n },\n })\n );\n\n const renderChildren = () => {\n if (!hasChildren) {\n return null;\n }\n if (!allowCollapsed || (isOpen && children)) {\n return <div className={style[\"children-list\"]}>{children}</div>;\n }\n\n if (!allowCollapsed || (isOpen && isLoading)) {\n return (\n <div className={style[\"children-list\"]}>\n <Spin className={style[\"loading\"]} size=\"small\" />\n </div>\n );\n }\n };\n return (\n <Permissions request={request}>\n <div className={classnames(className, style[\"menu-item\"])}>\n <div\n className={classnames(style[\"title\"], {\n [style[\"active\"]]: isSelected,\n [style[\"has-children\"]]: hasChildren,\n [style[\"no-collapse\"]]: hasChildren && !allowCollapsed,\n [style[\"no-start-icon\"]]: !iconType,\n [style[\"is-root\"]]: depth === 0,\n })}\n onClick={(e) => {\n e.stopPropagation();\n if (!hasChildren && path) {\n navigation(path);\n return;\n }\n if (!hasChildren && !fetchOptions) {\n onClick?.(id, props);\n return;\n }\n if (!allowCollapsed) {\n return;\n }\n fetchOptions && refresh({});\n onOpenChange(!isOpen);\n }}\n >\n {iconType && <Icon type={iconType} />}\n <span className={style[\"title-content\"]}>{label}</span>\n {hasChildren && allowCollapsed && (\n <Icon\n type={isOpen ? \"icon-arrow-bold-down\" : \"icon-arrow-bold-right\"}\n />\n )}\n </div>\n {renderChildren()}\n </div>\n </Permissions>\n );\n};\n\nconst Menu = ({ className, allowCollapsed, ...props }) => {\n const { pathname, search } = useLocation();\n const [selectedKey, setSelectKeyChange] = useControlValue(props, {\n value: \"currentKey\",\n defaultValue: \"defaultCurrentKey\",\n });\n\n const [items, setItems] = useControlValue(props, {\n defaultValue: \"defaultItems\",\n value: \"items\",\n onChange: \"onItemsChange\",\n });\n\n const {\n items: targetItems,\n defaultOpenKeys,\n links,\n childrenKeys,\n hasStartIcon,\n hasChildren,\n } = useMemo(() => {\n const {\n items: targetItems,\n childrenKeys,\n nodeMapping,\n } = treeEnhance(items);\n let hasStartIcon = false,\n hasChildren = false;\n const links = [],\n defaultOpenKeys = [];\n childrenKeys?.[\"root\"]?.forEach((key) => {\n const node = nodeMapping[key];\n if (node.iconType) {\n hasStartIcon = true;\n }\n node.path && links.push({ path: node.path, key });\n if (Array.isArray(node.children) && node.children.length > 0) {\n hasChildren = true;\n defaultOpenKeys.push(node.key);\n }\n });\n return {\n defaultOpenKeys,\n links,\n items: targetItems,\n childrenKeys,\n hasStartIcon,\n hasChildren,\n };\n }, [items]);\n useEffect(() => {\n const matchedPath = links.find(({ path }) => {\n return (\n ensureSlash(pathname.replace(/[#,?].*/, \"\")) === ensureSlash(path) ||\n ensureSlash(pathname + search) === ensureSlash(path)\n );\n });\n if (matchedPath) {\n setSelectKeyChange(matchedPath.key);\n }\n }, [links, pathname, search, setSelectKeyChange]);\n\n const [openKeys, setOpenKeys] = useControlValue(\n Object.assign({}, props, {\n defaultOpenKeys: props.defaultOpenKeys || defaultOpenKeys,\n }),\n {\n value: \"openKeys\",\n defaultValue: \"defaultOpenKeys\",\n onChange: \"onOpenChange\",\n }\n );\n\n const renderChildren = useCallback(\n (children, options) => {\n const { parentKey, depth, selectedKey, openKeys, paths } = Object.assign(\n {\n parentKey: null,\n depth: 0,\n paths: [],\n },\n options\n );\n if (Array.isArray(children) && children.length > 0) {\n return children.map(\n ({ children, key: currentKey, originItem, ...item }) => {\n return (\n <MenuItem\n {...Object.assign({}, item)}\n id={currentKey}\n parentId={parentKey}\n depth={depth}\n allowCollapsed={allowCollapsed}\n isSelected={\n currentKey === selectedKey ||\n (childrenKeys[currentKey] &&\n childrenKeys[currentKey].indexOf(selectedKey) > -1)\n }\n onClick={setSelectKeyChange}\n onLoad={(data) => {\n setItems((items) => {\n const core = (children) => {\n if (Array.isArray(children) && children.length > 0) {\n return children.map((item) => {\n return Object.assign({}, item, {\n children:\n originItem === item ? data : core(item.children),\n });\n });\n }\n return null;\n };\n\n return core(items);\n });\n }}\n isOpen={(openKeys || []).indexOf(currentKey) > -1}\n key={currentKey}\n onOpenChange={() => {\n setOpenKeys((openKeys) => {\n const newOpenKeys = openKeys.slice(0);\n if (openKeys.indexOf(currentKey) > -1) {\n newOpenKeys.splice(openKeys.indexOf(currentKey), 1);\n } else {\n newOpenKeys.push(currentKey);\n }\n return newOpenKeys;\n });\n }}\n >\n {renderChildren(children, {\n parentKey,\n depth: depth + 1,\n selectedKey,\n openKeys,\n paths: [...paths, currentKey],\n })}\n </MenuItem>\n );\n }\n );\n }\n return null;\n },\n [setItems, setOpenKeys, setSelectKeyChange, childrenKeys, allowCollapsed]\n );\n\n return (\n <div\n className={classnames(className, style[\"menu\"], {\n [style[\"all-no-start-icon\"]]: !hasStartIcon,\n [style[\"has-children-node\"]]: hasChildren,\n })}\n >\n {renderChildren(targetItems, { selectedKey, openKeys })}\n </div>\n );\n};\n\nMenu.defaultProps = {\n defaultItems: [],\n allowCollapsed: true,\n};\n\nexport default Menu;\n","// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__+Svgs\"};","import { createElement } from \"react\";\nimport { Result, Tooltip } from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { useGlobalContext, usePreset } from \"@components/Global\";\n\nexport const computedIsPass = ({ permissions, request }) => {\n return Array.isArray(request) && request.length > 0\n ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1)\n : true;\n};\n\nexport const usePermissions = () => {\n const { global } = useGlobalContext();\n const { permissions, permissionsPath } = usePreset();\n return {\n permissions:\n global.permissions ||\n permissions ||\n (permissionsPath && get(global, permissionsPath)) ||\n [],\n };\n};\n\nexport const usePermissionsPass = ({ request }) => {\n const { permissions } = usePermissions();\n return computedIsPass({ permissions, request });\n};\n\nconst Permissions = ({\n type,\n className,\n tagName,\n message,\n request,\n children,\n ...props\n}) => {\n const isPass = usePermissionsPass({ request });\n if (typeof children === \"function\") {\n return children({ isPass, type, request });\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message} />;\n }\n\n if (type === \"tooltip\") {\n return (\n <Tooltip title={message}>\n {createElement(\n tagName,\n { ...props, className: classnames(style[\"outer\"], className) },\n children\n )}\n </Tooltip>\n );\n }\n\n return null;\n};\n\nPermissions.defaultProps = {\n type: \"hidden\",\n tagName: \"span\",\n message: \"您暂无权限,请联系管理员\",\n};\n\nexport default Permissions;\n"],"names":["MenuItem","props","navigation","useNavigate","id","className","label","iconType","path","request","onClick","isOpen","isSelected","onOpenChange","children","fetchOptions","depth","onLoad","allowCollapsed","hasChildren","Array","isArray","length","refresh","isLoading","useFetch","Object","assign","auto","onRequestSuccess","data","_jsx","Permissions","_jsxs","classnames","style","e","stopPropagation","Icon","type","Spin","size","Menu","_ref","pathname","search","useLocation","selectedKey","setSelectKeyChange","useControlValue","value","defaultValue","items","setItems","onChange","targetItems","defaultOpenKeys","links","childrenKeys","hasStartIcon","useMemo","_childrenKeys$root","nodeMapping","traversal","options","parentKey","paths","map","item","index","currentKey","concat","key","push","targetItem","originItem","treeEnhance","forEach","node","useEffect","matchedPath","find","_ref2","ensureSlash","replace","openKeys","setOpenKeys","renderChildren","useCallback","_ref3","_createElement","parentId","indexOf","core","newOpenKeys","slice","splice","defaultProps","defaultItems","computedIsPass","permissions","some","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","tagName","message","isPass","Result","status","subTitle","Tooltip","title","createElement"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(8762),s=n.n(o);n(46733);const r=s()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),s=n(79889),r=n.n(s),i=n(93950),l=n.n(i),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const s=(0,o.useRef)(null),i=c()(e);return(0,o.useLayoutEffect)((()=>{const e=s.current,t=()=>window.requestAnimationFrame((()=>{e&&i(e)}));t();const o=new ResizeObserver((n.current.isDebounce?l():r())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[i]),s}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=n(73884),s=n(96418),r=n.n(s),i=n(55199),l=n(83136),a=n.n(l),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),h=n.n(f);const p="style_width-container__JfEbg__+Svgs",_="style_hidden-container__EdySA__+Svgs",g="style_hidden-inner__vAN59__+Svgs",v="style_menu-list__VDttR__+Svgs",y="style_btn-item__mp5MQ__+Svgs";var x=n(15797),C=n.n(x),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:s,compact:r}=e;const i=r?0:["small","middle","large"].indexOf(s.size)>-1?8*(["small","middle","large"].indexOf(s.size)+1):Number.isInteger(s.size)?s.size:8;let l=0,a=0;for(;t>=a+o[l]+l*i&&l<o.length;)a+=o[l],l+=1;for(;t<a+(l-1)*i+(l<o.length?n+i:0)&&l>0;)a-=o[l-1],l-=1;return l}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:s,compact:r}=e;return"".concat(t).concat(n).concat(o.join(",")).concat(Object.values(s).join(",")).concat(r&&r.toString())})),S=e=>{let{list:t,more:n,compact:s,...l}=e;const c=h()(l,["size","split","align","style"]),[f,x]=(0,o.useState)(t.length&&1),C=r()((()=>{const e=w.current,t=N.current,n=S.current;if(!e)return;const r=e.querySelectorAll(".button-group-item");if(!r)return;if(0===r.length)return;const i=n.clientWidth,l=t.clientWidth,a=[].map.call(r,(e=>e.offsetWidth)),d=j({amountWidth:i,moreBtnWidth:l,buttonWidthList:a,spaceProps:c,compact:s});(0,o.startTransition)((()=>{x(d)}))})),S=(0,m.A)(C),w=(0,m.A)(C),N=(0,m.A)(C),k=t.slice(f),P=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:s,confirm:r,buttonComponent:i,...l}=e,c=r||l.message,m=c?u.default:i||d.default;return(0,o.createElement)(m,{danger:c&&!1!==l.isDelete,...Object.assign({},l,c&&(l.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,s)})},T=s?i.Space.Compact:i.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:p,ref:S}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:N,children:n}),(0,b.jsx)("div",{className:g,ref:w,children:(0,b.jsx)(T,{...c,children:t.map(P)})})]}),(0,b.jsxs)(T,{...c,children:[t.slice(0,f).map(((e,t)=>P(e,t,!1))),k.length>0&&(0,b.jsx)(i.Dropdown,{overlayClassName:v,menu:{items:k.map(((e,t)=>({key:t,label:P(e,t,!0)})))},children:n})]})]})};S.defaultProps={more:(0,b.jsxs)(i.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=S},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>v,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const s=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var r=n(64671),i=n(58609),l=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__+Svgs",u="style_is-danger__gxyAB__+Svgs",m="style_title__EEPu2__+Svgs",f="style_content__mZZg5__+Svgs",h="style_has-title__5+PEt__+Svgs";var p=n(70579);const _=e=>{const t=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:s})((t=>{let{title:n,message:s,isDelete:a=!0,onClick:_,onCancel:g,disabled:v,showCancel:y,cancelText:x,isModal:C,okText:b,placement:j,getContainer:S,...w}=t;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,l.useConfirmModal)();return C?(0,p.jsx)(e,{...w,disabled:v,onClick:e=>{k({type:"confirm",title:n,getContainer:S,danger:a,confirmType:a?"warning":"info",message:s||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:g,onOk:_})}}):(0,p.jsx)(o.Popconfirm,{title:(0,p.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,p.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,p.jsx)(r.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,p.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[h]:n}),children:[!n&&a?(0,p.jsx)(r.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,s||N({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:S,disabled:v,showCancel:y,cancelText:x,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,p.jsx)(e,{...w,disabled:v})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),v=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>B,TabsModal:()=>P,TabsModalButton:()=>A,default:()=>N,useConfirmModal:()=>w,useModal:()=>S,useTabsModal:()=>T});var o=n(73884),s=n(55199),r=n(83136),i=n.n(r);const l={modal:"style_modal__Pm3cF__+Svgs",large:"style_large__iaqVE__+Svgs","modal-body-inner":"style_modal-body-inner__4PhpA__+Svgs","modal-title":"style_modal-title__dswaw__+Svgs","modal-outer":"style_modal-outer__r3SkX__+Svgs","modal-body":"style_modal-body__jQJSI__+Svgs","right-options-modal":"style_right-options-modal__FajDP__+Svgs","right-options-row":"style_right-options-row__-mPb9__+Svgs","right-options-col":"style_right-options-col__3ilee__+Svgs","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__+Svgs",content:"style_content__k6MIF__+Svgs","modal-footer":"style_modal-footer__-prbN__+Svgs","modal-close":"style_modal-close__Oa5Kl__+Svgs","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__+Svgs","is-danger":"style_is-danger__H5110__+Svgs",title:"style_title__orTym__+Svgs","has-title":"style_has-title__qy0Wp__+Svgs"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),f=n(17342),h=n(70579);const p="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,h.jsxs)(s.Row,{wrap:!1,className:l["right-options-row"],children:[(0,h.jsx)(s.Col,{span:18,className:l["right-options-col"],children:n}),(0,h.jsx)(s.Col,{span:6,className:l["right-options-col"],children:t})]}):n},g=(e,t)=>"".concat(e-48-(t?58:0),"px"),v=(e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:r,onCancel:i,onClose:l,targetProps:d}=e;return(0,h.jsxs)(s.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(s.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(s.Col,{children:(0,h.jsx)(s.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:p})}),onClick:i},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:p})}),onClick:r}]).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,t)=>{let{ButtonComponent:n,onClick:s,autoClose:r=!0,display:i,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(s&&s(...t,d));return r&&!1!==o&&l&&l(),o}})}))})})]})},x=e=>{let{title:t,footer:n,disabledScroller:r,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:p,children:_,targetProps:g}=e;const v=(0,o.useRef)(null);return(0,h.jsxs)("div",{className:l["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(s.Button,{"data-testid":"components-core-modal-close-btn",className:l["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:l["modal-title"],children:t}),(0,h.jsx)(f.A,{className:i()(l["modal-body"],{[l["is-disabled-scroller"]]:r},"modal-body"),ref:v,children:(0,h.jsx)("div",{className:i()(l["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,h.jsx)("div",{className:i()(l["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:p,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:s,onClose:r,onConfirm:i,onCancel:l,footer:a,rightOptions:c,disabledScroller:d,childrenRef:m,children:f}=e;const p=e=>(e=Object.assign({},{title:o},e),(0,h.jsx)(x,{title:u(e.title,{...e,childrenRef:m,close:r}),closable:s,onClose:r,onConfirm:i,onCancel:l,footerButtons:u(n,{...e,close:r}),disabledScroller:d,footer:u(a,{...e,childrenRef:m,close:r}),targetProps:Object.assign({},e,{childrenRef:m,close:r}),children:(0,h.jsx)(_,{options:u(c,{...e,childrenRef:m,close:r}),children:u(f,{...e,childrenRef:m,close:r})})}));return"function"===typeof t?t(p):p({})},b=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:s,className:r,size:d,title:u,onClose:m,onConfirm:f,onCancel:p,closable:_,disabledScroller:g,withDecorator:y,childrenRef:x,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:i()(r,l.modal,l[d],{[l["right-options-modal"]]:n}),...v(d,!(null===o&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:y,title:u,closable:_,onClose:m,onConfirm:f,onCancel:p,footer:o,footerButtons:s,rightOptions:n,disabledScroller:g,children:t,childrenRef:x})})}},j=e=>{const t=(0,o.useRef)(null);return(0,h.jsx)(s.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const S=()=>{const{modal:e}=s.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:s,...r}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:i}=e.info({...r,content:s});return o.close=i,o}},w=()=>{const{modal:e}=s.App.useApp();return t=>{const n={},{type:o,icon:r,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:p="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:i()(l["confirm-modal-wrap"],u,{[l["is-danger"]]:c}),title:(0,h.jsx)(s.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,h.jsxs)(s.Space,{size:0,align:"start",className:l.title,children:[c?(0,h.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?p:o)),type:r||g["confirm"===o?p:o]}):null,a]})}),content:(0,h.jsxs)(s.Space,{size:0,align:"start",className:i()(l.content,{[l["has-title"]]:a}),children:[!a&&c?(0,h.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?p:o)),type:r||g["confirm"===o?p:o]}):null,m]})});n.close=t}return n}},N=j,k=e=>{let{items:t,className:n,activeKey:o,withDecorator:r,defaultActiveKey:l,onChange:a,...c}=e;return{...c,className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(s.Tabs,{items:t.map((t=>{let{withDecorator:o,...s}=t;return Object.assign({},s,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:s.children})))):e(Object.assign({},n,{children:s.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:l,onChange:a});return"function"===typeof r?r(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},P=e=>(0,h.jsx)(N,{...k(e)}),T=()=>{const e=S();return t=>e(k(t))};var M=n(73025);const A=e=>{const t=T();return(0,h.jsx)(M.A,{...e,modalFunc:t})},B=e=>{const t=S();return(0,h.jsx)(M.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),s=n(77116);e.exports=function e(t,n,r,i,l){var a=-1,c=t.length;for(r||(r=s),l||(l=[]);++a<c;){var d=t[a];n>0&&r(d)?n>1?e(d,n-1,r,i,l):o(l,d):i||(l[l.length]=d)}return l}},94008:(e,t,n)=>{var o=n(27449),s=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return s(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),s=n(9261),r=n(35324);e.exports=function(e,t,n){for(var i=-1,l=t.length,a={};++i<l;){var c=t[i],d=o(e,c);n(d,c)&&s(a,r(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),s=n(35324),r=n(69194),i=n(46686),l=n(70914);e.exports=function(e,t,n,a){if(!i(e))return e;for(var c=-1,d=(t=s(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=l(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var p=m[f];void 0===(h=a?a(p,f,m):void 0)&&(h=i(p)?p:r(t[c+1])?[]:{})}o(m,f,h),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),s=n(55636),r=n(46350);e.exports=function(e){return r(s(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),s=n(22777),r=n(54052),i=o?o.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||s(e)||!!(i&&e&&e[i])}},93950:(e,t,n)=>{var o=n(46686),s=n(4757),r=n(40801),i=Math.max,l=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,h=0,p=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=a,o=c;return a=c=void 0,h=t,u=e.apply(o,n)}function y(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-h>=d}function x(){var e=s();if(y(e))return C(e);m=setTimeout(x,function(e){var n=t-(e-f);return _?l(n,d-(e-h)):n}(e))}function C(e){return m=void 0,g&&a?v(e):(a=c=void 0,u)}function b(){var e=s(),n=y(e);if(a=arguments,c=this,f=e,n){if(void 0===m)return function(e){return h=e,m=setTimeout(x,t),p?v(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(x,t),v(f)}return void 0===m&&(m=setTimeout(x,t)),u}return t=r(t)||0,o(n)&&(p=!!n.leading,d=(_="maxWait"in n)?i(r(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),h=0,a=f=c=m=void 0},b.flush=function(){return void 0===m?u:C(s())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),s=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=s},79889:(e,t,n)=>{var o=n(93950),s=n(46686);e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),o(e,t,{leading:r,maxWait:t,trailing:i})}},46733:()=>{}}]);
2
+ //# sourceMappingURL=6779.2e08f473.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/6779.36115c53.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkBC,IAAeX,GAoBvC,OAnBAY,EAAAA,EAAAA,kBAAgB,KACd,MAAMC,EAAKJ,EAAIL,QACTU,EAAWA,IACRC,OAAOC,uBAAsB,KAClCH,GAAMH,EAAgBG,EAAG,IAG7BC,IACA,MAAMG,EAAiB,IAAIC,gBACxBhB,EAAWE,QAAQI,WAAaW,IAAWC,KAC1CN,EACAZ,EAAWE,QAAQG,OAIvB,OADAM,GAAMI,EAAeI,QAAQR,GACtB,KACLI,EAAeK,YAAY,CAC5B,GACA,CAACZ,IACGD,CAAG,C,+LChCZ,QAAkC,sCAAlC,EAA2F,uCAA3F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,EAASI,IAAS,EACrBrB,EAASxP,KACXoR,IAAYpR,EAAQoR,QAEpBJ,GADAK,EAAS,YAAarR,GACH0Q,EAAUD,EAASzQ,EAAQgR,UAAY,EAAGH,GAAQG,EACrEM,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAoG1DY,EAAUK,OApCV,gBACkBxC,IAAZkB,GACFqB,aAAarB,GAEfE,EAAiB,EACjBL,EAAWI,EAAeH,EAAWE,OAAUlB,CACjD,EA+BAmC,EAAUM,MA7BV,WACE,YAAmBzC,IAAZkB,EAAwBrC,EAASkD,EAAatB,IACvD,EA4BO0B,CACT,C,kBC5LA,IAAI3D,EAAcJ,EAAQ,OAqB1BE,EAAOC,QALP,SAAiBE,GAEf,OADsB,MAATA,EAAgB,EAAIA,EAAMnM,QACvBkM,EAAYC,EAAO,GAAK,EAC1C,C,iBCnBA,IAAIiE,EAAOtE,EAAQ,OAsBnBE,EAAOC,QAJG,WACR,OAAOmE,EAAKC,KAAKlC,KACnB,C,kBCpBA,IAAImC,EAAWxE,EAAQ,OAoBnBnL,EAnBWmL,EAAQ,MAmBZyE,EAAS,SAAS5D,EAAQC,GACnC,OAAiB,MAAVD,EAAiB,CAAC,EAAI2D,EAAS3D,EAAQC,EAChD,IAEAZ,EAAOC,QAAUtL,C,kBCxBjB,IAAI9B,EAAWiN,EAAQ,OACnBqB,EAAWrB,EAAQ,OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM7Q,GAC5B,IAAIoR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASxP,KACXoR,EAAU,YAAapR,IAAYA,EAAQoR,QAAUA,EACrDE,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAEnDpQ,EAASiP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__Cwdbl\",\"hidden-container\":\"style_hidden-container__EdySA__Cwdbl\",\"hidden-inner\":\"style_hidden-inner__vAN59__Cwdbl\",\"menu-list\":\"style_menu-list__VDttR__Cwdbl\",\"btn-item\":\"style_btn-item__mp5MQ__Cwdbl\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__Cwdbl\",\"is-danger\":\"style_is-danger__gxyAB__Cwdbl\",\"title\":\"style_title__EEPu2__Cwdbl\",\"content\":\"style_content__mZZg5__Cwdbl\",\"has-title\":\"style_has-title__5+PEt__Cwdbl\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__Cwdbl\",\"large\":\"style_large__iaqVE__Cwdbl\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__Cwdbl\",\"modal-title\":\"style_modal-title__dswaw__Cwdbl\",\"modal-outer\":\"style_modal-outer__r3SkX__Cwdbl\",\"modal-body\":\"style_modal-body__jQJSI__Cwdbl\",\"right-options-modal\":\"style_right-options-modal__FajDP__Cwdbl\",\"right-options-row\":\"style_right-options-row__-mPb9__Cwdbl\",\"right-options-col\":\"style_right-options-col__3ilee__Cwdbl\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__Cwdbl\",\"content\":\"style_content__k6MIF__Cwdbl\",\"modal-footer\":\"style_modal-footer__-prbN__Cwdbl\",\"modal-close\":\"style_modal-close__Oa5Kl__Cwdbl\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__Cwdbl\",\"is-danger\":\"style_is-danger__H5110__Cwdbl\",\"title\":\"style_title__orTym__Cwdbl\",\"has-title\":\"style_has-title__qy0Wp__Cwdbl\"};","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","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 basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\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 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 isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\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 root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\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 pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["SimpleBar","useResize","callback","options","optionsRef","useRef","current","Object","assign","time","isDebounce","ref","callbackHandler","useRefCallback","useLayoutEffect","el","computed","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","arrayPush","require","isFlattenable","module","exports","baseFlatten","array","depth","predicate","isStrict","result","value","basePickBy","hasIn","object","paths","path","baseGet","baseSet","castPath","assignValue","isIndex","isObject","toKey","customizer","lastIndex","nested","newValue","objValue","undefined","flatten","overRest","setToString","func","Symbol","isArguments","spreadableSymbol","isConcatSpreadable","now","toNumber","nativeMax","max","nativeMin","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","this","leadingEdge","clearTimeout","cancel","flush","root","Date","basePick","flatRest"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/6779.2e08f473.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkB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OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM7Q,GAC5B,IAAIoR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASxP,KACXoR,EAAU,YAAapR,IAAYA,EAAQoR,QAAUA,EACrDE,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAEnDpQ,EAASiP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__+Svgs\",\"hidden-container\":\"style_hidden-container__EdySA__+Svgs\",\"hidden-inner\":\"style_hidden-inner__vAN59__+Svgs\",\"menu-list\":\"style_menu-list__VDttR__+Svgs\",\"btn-item\":\"style_btn-item__mp5MQ__+Svgs\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__+Svgs\",\"is-danger\":\"style_is-danger__gxyAB__+Svgs\",\"title\":\"style_title__EEPu2__+Svgs\",\"content\":\"style_content__mZZg5__+Svgs\",\"has-title\":\"style_has-title__5+PEt__+Svgs\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__+Svgs\",\"large\":\"style_large__iaqVE__+Svgs\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__+Svgs\",\"modal-title\":\"style_modal-title__dswaw__+Svgs\",\"modal-outer\":\"style_modal-outer__r3SkX__+Svgs\",\"modal-body\":\"style_modal-body__jQJSI__+Svgs\",\"right-options-modal\":\"style_right-options-modal__FajDP__+Svgs\",\"right-options-row\":\"style_right-options-row__-mPb9__+Svgs\",\"right-options-col\":\"style_right-options-col__3ilee__+Svgs\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__+Svgs\",\"content\":\"style_content__k6MIF__+Svgs\",\"modal-footer\":\"style_modal-footer__-prbN__+Svgs\",\"modal-close\":\"style_modal-close__Oa5Kl__+Svgs\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__+Svgs\",\"is-danger\":\"style_is-danger__H5110__+Svgs\",\"title\":\"style_title__orTym__+Svgs\",\"has-title\":\"style_has-title__qy0Wp__+Svgs\"};","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","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 basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\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 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 isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\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 root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\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 pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["SimpleBar","useResize","callback","options","optionsRef","useRef","current","Object","assign","time","isDebounce","ref","callbackHandler","useRefCallback","useLayoutEffect","el","computed","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","arrayPush","require","isFlattenable","module","exports","baseFlatten","array","depth","predicate","isStrict","result","value","basePickBy","hasIn","object","paths","path","baseGet","baseSet","castPath","assignValue","isIndex","isObject","toKey","customizer","lastIndex","nested","newValue","objValue","undefined","flatten","overRest","setToString","func","Symbol","isArguments","spreadableSymbol","isConcatSpreadable","now","toNumber","nativeMax","max","nativeMin","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","this","leadingEdge","clearTimeout","cancel","flush","root","Date","basePick","flatRest"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6915],{16915:(e,l,t)=>{t.r(l),t.d(l,{AdvancedFilter:()=>Ke,AdvancedSelectFilterItem:()=>ge,CascaderFilterItem:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>z,FilterItemContainer:()=>Xe,FilterLines:()=>j,FilterValueDisplay:()=>C,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Fe,NumberRangeFilterItem:()=>be,PopoverItem:()=>le,SearchInput:()=>ke,TreeFilterItem:()=>Ce,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>he,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Ie,useFilter:()=>v,withFieldItem:()=>D,withFilterValue:()=>Me});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>ge,CascaderFilterItem:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Fe,NumberRangeFilterItem:()=>be,TreeFilterItem:()=>Ce,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>he});var n=t(83136),s=t.n(n),i=t(73884),r=t(64671);const o={filter:"style_filter__Xml45__+Svgs","filter-item-icon":"style_filter-item-icon__kVCRK__+Svgs","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__+Svgs","filter-title":"style_filter-title__PlIpS__+Svgs","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__+Svgs","ad-filter-title":"style_ad-filter-title__5-OzD__+Svgs","ad-filter-line":"style_ad-filter-line__ga6UH__+Svgs","filter-line":"style_filter-line__E+cRh__+Svgs","clean-btn":"style_clean-btn__oSEvm__+Svgs","filter-item":"style_filter-item__Q2ncE__+Svgs","un-expand":"style_un-expand__4PFY8__+Svgs","ad-filter-selected":"style_ad-filter-selected__KbLfG__+Svgs","filter-label":"style_filter-label__qu26i__+Svgs","filter-item-wrap":"style_filter-item-wrap__rOq7H__+Svgs",option:"style_option__rd5Qo__+Svgs","is-active":"style_is-active__OArQI__+Svgs","is-visited":"style_is-visited__gZ5ni__+Svgs","un-expand-shadow":"style_un-expand-shadow__fj92e__+Svgs","filter-item-label":"style_filter-item-label__C781J__+Svgs","filter-item-field":"style_filter-item-field__Ltfr8__+Svgs","filter-drop-tag":"style_filter-drop-tag__DD-2P__+Svgs","filter-list-tag":"style_filter-list-tag__Qt5hA__+Svgs","filter-tag":"style_filter-tag__dUGfu__+Svgs","filter-tag-value":"style_filter-tag-value__p-SFv__+Svgs","pop-util-content":"style_pop-util-content__bx5zP__+Svgs","pop-util-overlay":"style_pop-util-overlay__LEASt__+Svgs","pop-util-footer":"style_pop-util-footer__Xat1s__+Svgs","pop-util-text":"style_pop-util-text__pzeUy__+Svgs","filter-item-inner":"style_filter-item-inner__LVXgh__+Svgs","filter-item-text":"style_filter-item-text__MA8tU__+Svgs","filter-item-number-range":"style_filter-item-number-range__U-OgQ__+Svgs","filter-item-custom":"style_filter-item-custom__UusRa__+Svgs","filter-item-custom-active":"style_filter-item-custom-active__uFtny__+Svgs","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__+Svgs","filter-item-number-input":"style_filter-item-number-input__YPO6K__+Svgs","range-picker":"style_range-picker__c6ngq__+Svgs","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__+Svgs","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__+Svgs","filter-advanced":"style_filter-advanced__4cyDy__+Svgs","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__+Svgs","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__+Svgs","filter-advanced-more":"style_filter-advanced-more__OFXq4__+Svgs"};var c=t(55199),u=t(58609);const d=e=>({"en-US":()=>t.e(8869).then(t.bind(t,18869)),"zh-CN":()=>t.e(2363).then(t.bind(t,92363))}[e]()),m=(0,i.createContext)({}),{Provider:p}=m,v=()=>(0,i.useContext)(m);var _=t(33097),g=t.n(_),h=t(70579);const f=e=>{let{list:l,children:t}=e;const{value:a,onChange:n}=v();return(0,h.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,l)=>{if("function"===typeof e)return e((e=>({index:l,value:a?g()(a.get(null===e||void 0===e?void 0:e.name),"value"):null===e||void 0===e?void 0:e.value,onChange:n?l=>n({name:null===e||void 0===e?void 0:e.name,label:null===e||void 0===e?void 0:e.label,value:l}):null===e||void 0===e?void 0:e.onChange})));const t=e.type;return(0,h.jsx)(t,{...Object.assign({},e.props,{key:e.key||e.props.name||l,value:a?g()(a.get(e.props.name),"value"):e.props.value,onChange:n?l=>n({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})})),t]})},x=e=>{let{className:l,list:t,displayLine:a,label:n,extra:m,children:p}=e;const v=t.length>a,[_,g]=(0,i.useState)(!1);return(0,h.jsxs)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,h.jsxs)(c.Space,{className:s()(o["filter-title"],l),align:"top",size:16,children:[(0,h.jsx)("span",{className:o["filter-label"],children:n||(0,h.jsx)(u.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,h.jsxs)(c.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,h.jsx)(c.Col,{className:o["filter-list"],flex:1,children:t.slice(0,a).map(((e,l)=>(0,h.jsx)(f,{list:e,children:v&&!1===_&&l===a-1?(0,h.jsxs)(c.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{g((e=>!e))},children:[(0,h.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,h.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,h.jsx)(c.Col,{children:m})]})]}),(0,h.jsx)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,h.jsxs)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap",{[o["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,h.jsx)("span",{className:o["filter-label"],children:(0,h.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,h.jsx)("div",{className:o["filter-list"],children:t.slice(a).map(((e,l)=>(0,h.jsx)(f,{list:e,children:l===t.length-a-1&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,h.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,h.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,h.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,h.jsx)(c.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{g((e=>!e))},children:(0,h.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,h.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,h.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};x.defaultProps={displayLine:1};const j=x;var y=t(62716);const C=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,h.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,h.jsxs)(c.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,h.jsx)("span",{className:o["filter-label"],children:(0,h.jsx)(u.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,h.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,t)=>{let{name:n,label:s,value:i}=e;return(0,h.jsx)(y.default,{type:"filterResult",filterName:s,text:Array.isArray(i)?i.map((e=>e.label)).join("\uff0c"):i.label,closable:!0,onClose:()=>{const e=l.slice(0);e.splice(t,1),a(e)}},n)})),(0,h.jsxs)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,h.jsx)(c.Button,{size:"small",children:(0,h.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,h.jsxs)(c.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,h.jsx)(c.Button,{size:"small",onClick:()=>{a([])},children:(0,h.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var F=t(10986),b=t.n(F),N=t(41740),S=t.n(N),I=t(36);const M=e=>{let{children:l,className:t,...a}=e;const[n,r]=b()(a),c=(0,i.useMemo)((()=>n.filter((e=>(0,I.isNotEmpty)(e.value)))),[n]),m=(0,i.useMemo)((()=>new Map(c.map((e=>[e.name,e])))),[c]);return(0,h.jsx)(u.IntlProvider,{moduleName:"Filter",importMessages:d,children:(0,h.jsx)(p,{value:{value:m,onChange:e=>{const l=S()(m);e.value?l.set(e.name,e):l.delete(e.name),null===r||void 0===r||r(Array.from(l.values()))}},children:(0,h.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:c,onChange:r})})})})};M.defaultProps={defaultValue:[]};const k=M,A=e=>(0,h.jsx)(k,{...e,children:e=>{let{props:l,value:t,onChange:a}=e;const{extraExpand:n,...s}=l;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(j,{...s}),t&&t.length>0&&(0,h.jsx)(C,{value:t,onChange:a,extraExpand:n})]})}});A.defaultProps={defaultValue:[]};const P=A;var w=t(55490);const z=e=>{let{open:l,active:t,label:a,children:n}=e;return(0,h.jsx)(c.Space,{className:o["filter-item-wrap"],children:(0,h.jsxs)("div",{className:s()(o["filter-item"],{[o["is-active"]]:t,[o["is-visited"]]:l}),children:[(0,h.jsxs)(c.Space,{className:o["filter-item-label"],size:4,children:[(0,h.jsx)("div",{children:a}),(0,h.jsx)(r.default,{className:o["filter-item-icon"],type:"icon-triangle-down"})]}),(0,h.jsx)("div",{className:o["filter-item-field"],children:n})]})})},D=e=>l=>{let{value:t,onChange:a,interceptor:n,label:s,...r}=l;const[c,u]=(0,i.useState)(!1);return(0,h.jsx)(z,{label:s,open:c,active:(0,w.A)(t),children:(0,h.jsx)(e,{allowClear:!1,...r,className:o["filter-item-inner"],value:"function"===typeof(null===n||void 0===n?void 0:n.input)?n.input(t):t,onChange:"function"===typeof(null===n||void 0===n?void 0:n.output)?function(){return a(n.output(...arguments))}:a,valueType:"all",onOpenChange:u})})};var O=t(12392),T=t(41654),V=t(93761),L=t(53392),R=t(45776),E=t(30509),Y=t(96418),U=t.n(Y);const B="style_scroll-loader__Rcuti__+Svgs",K="style_is-popup__pCRv2__+Svgs";var X=t(17342),q=t(1488),Q=t.n(q),H=t(15797),G=t.n(H);const J=E.A.useContext,Z=e=>{let{value:l,setValue:t,size:a}=e;const{fetchApi:n,props:r}=J(),o=U()(r.dataFormat),{single:u,isPopup:d,searchPlaceholder:m,...p}=r,v=(0,i.useRef)(r.fieldNames);v.current=r.fieldNames;const _=n.data,{treeData:g}=(0,i.useMemo)((()=>o(_,{fieldNames:v.current})),[o,_]);return(0,h.jsx)(c.Space,{direction:"vertical",size:16,children:(0,h.jsx)(X.A,{className:s()(B,{[K]:r.isPopup}),children:(0,h.jsx)(c.Tree,{...Q()(p,["value","valueType","children","dataFormat"]),size:a,checkable:!u,treeData:g,onCheck:t,checkedKeys:l,onSelect:u?t:e=>{const l=e[0];void 0!==l&&t((e=>{const t=e.slice(0),a=t.indexOf(l);return a>-1?t.splice(a,1):t.push(l),t}))},selectedKeys:u?l:void 0})})})},W=e=>{let{maxLength:l,dataFormat:t,...a}=e;return(0,h.jsx)(E.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,h.jsx)(Z,{size:l,value:t,setValue:a})}})};W.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,l)=>{let{fieldNames:t}=l;const a=G()(((e,l)=>{let{fieldNames:t}=l;const a=[],n=e=>{Array.isArray(e)&&e.length>0&&e.forEach((e=>{const l=e[g()(t,"key","key")],s=e[g()(t,"title","title")],i=e[g()(t,"children","children")];a.push({id:l,value:l,label:s}),n(i)}))};return n(e),a}));return{treeData:e,list:a(e,{fieldNames:t})}}};const $=W,ee=e=>{let{value:l,label:t,onValidate:a,overlayClassName:n,placement:r,onOpenChange:d,onChange:m,children:p}=e;const[v,_]=(0,i.useState)(l),[g,f]=(0,i.useState)(!1),x=(0,i.useMemo)((()=>a&&!a(v)),[a,v]);return(0,h.jsx)(c.Popover,{open:g,trigger:"click",placement:r,overlayClassName:s()(o["pop-util-overlay"],n),onOpenChange:e=>{f(e),_(l),d&&d(e)},content:(0,h.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,h.jsx)("div",{className:o["pop-util-content"],children:p({value:v,onChange:_})}),(0,h.jsxs)(c.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,h.jsx)(c.Col,{children:(0,h.jsx)(c.Button,{size:"small",onClick:()=>{f(!1),d&&d(!1)},children:(0,h.jsx)(u.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,h.jsx)(c.Col,{children:(0,h.jsx)(c.Button,{size:"small",type:"primary",disabled:x,onClick:()=>{f(!1),d&&d(!1),m&&m(v)},children:(0,h.jsx)(u.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,h.jsx)("span",{children:(0,h.jsx)(z,{open:g,active:(0,w.A)(l),label:t})})})};ee.defaultProps={placeholder:"\u8bf7\u9009\u62e9",placement:"bottomLeft"};const le=ee,te=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:i,placement:r,onOpenChange:u,...d}=e;return(0,h.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:i,placement:r,onOpenChange:u,children:e=>{let{value:t,onChange:a}=e;return(0,h.jsx)(c.Input,{...d,placeholder:n||"\u8bf7\u8f93\u5165".concat(l),className:o["filter-item-text"],value:g()(t,"value",""),onChange:e=>a(e.target.value?{label:e.target.value,value:e.target.value}:null)})}})};var ae=t(79160),ne=t.n(ae);const se=(e,l,t)=>ne()(e[0])||ne()(e[1])?{label:(e=>ne()(e[0])&&ne()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(l||""):ne()(e[0])?t({id:"over"},{count:e[0],unit:l}):ne()(e[1])?t({id:"lessThan"},{count:e[1],unit:l}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,ie=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:i,placement:r,onOpenChange:d,unit:m,...p}=e;const{formatMessage:v}=(0,u.useIntl)({moduleName:"Filter"});return(0,h.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:i,placement:r,onOpenChange:d,children:e=>{let{value:t,onChange:a}=e;return(0,h.jsxs)(c.Space.Compact,{children:[(0,h.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:g()(t,"value[0]",""),onChange:e=>{a(se([e,g()(t,"value[1]")],m,v))}}),(0,h.jsx)(c.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,h.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:g()(t,"value[1]",""),onChange:e=>{a(se([g()(t,"value[0]"),e],m,v))}}),m&&(0,h.jsx)(c.Input,{style:{width:50,borderLeft:0},value:m,disabled:!0})]})}})};ie.defaultProps={onValidate:e=>{const l=g()(e,"value");return!(l&&ne()(l[0])&&ne()(l[1])&&l[1]<l[0])}};const re=ie;var oe=t(57469),ce=t.n(oe);const ue=D((e=>{let{value:l,onChange:t,picker:a,...n}=e;return(0,h.jsx)(c.DatePicker,{...n,picker:a,value:l&&ce()(l.value),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n);e&&t({label:"date"!==a?"".concat(e.startOf(a).format(l),"~").concat(e.endOf(a).format(l)):e.format(l),value:new Date(e.startOf(a).valueOf())})}})}));ue.defaultProps="date";const de=ue,me=D((e=>{let{value:l,onChange:t,...a}=e;return(0,h.jsx)(c.DatePicker.RangePicker,{...a,allowEmpty:[!1,!1],value:l&&Array.isArray(l.value)&&2===l.value.length&&l.value.map((e=>ce()(e))),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},a);t({label:e.map((e=>e.format(l))).join("~"),value:e.map((e=>new Date(e.valueOf())))})}})}));var pe=t(89319);const ve=e=>{let{label:l,value:t,onChange:a,...n}=e;return(0,h.jsx)(le,{label:l,value:t,onChange:a,onValidate:e=>{const l=null===e||void 0===e?void 0:e.value;return(null===l||void 0===l?void 0:l.type)&&Array.isArray(null===l||void 0===l?void 0:l.value)&&2===l.value.length},children:e=>{let{value:l,onChange:t}=e;return(0,h.jsx)(pe.A,{...n,className:o["filter-item-text"],value:g()(l,"value"),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n),a=(null===e||void 0===e?void 0:e.value)||[];t({label:a[0]&&!a[1]?"".concat(ce()(a[0]).format(l),"\u4ee5\u540e"):!a[0]&&a[1]?"".concat(ce()(a[1]).format(l),"\u4ee5\u524d"):a[0]&&a[1]?"".concat(ce()(a[0]).format(l),"~").concat(ce()(a[1]).format(l)):"",value:e})}})}})},_e=e=>l=>{let{placeholder:t,label:a,...n}=l;return(0,h.jsx)(u.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:l=>(0,h.jsx)(e,{...n,label:a,placeholder:t||l})})},ge=D(O.Ay),he=D(O.Eo),fe=D(T.A),xe=D(L.A),je=D(V.Ay),ye=D(R.Ay),Ce=D($),Fe=_e(te),be=_e(re);var Ne=t(22717),Se=t.n(Ne);const Ie=e=>Se()(e,((e,l)=>{let{name:t,value:a}=l;e[t]=Array.isArray(a)?a.map((e=>{let{value:l}=e;return l})):null===a||void 0===a?void 0:a.value}),{}),Me=e=>l=>{let{name:t,label:a,...n}=l;const{value:s,onChange:i}=v();return(0,h.jsx)(e,{...n,label:a,onChange:i?e=>i({name:t,label:a,value:e}):n.onChange,value:s?g()(s.get(t),"value"):n.value})},ke=Me((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,h.jsx)(I.SearchInput,{...n,placeholder:"\u8bf7\u8f93\u5165".concat(l),value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{t({label:e,value:e})}})}));var Ae=t(63908);const{CheckableTag:Pe}=c.Tag,we=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...r}=e;const{message:d}=c.App.useApp(),{locale:m}=(0,Ae.usePreset)(),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=(0,i.useMemo)((()=>s.getChinaHotCities()),[s]);return(0,h.jsxs)(h.Fragment,{children:[v.map((e=>{const{code:s}=e,i=(0,V.NY)(e,m);return(0,h.jsx)(Pe,{size:"small",checked:a?(null===l||void 0===l?void 0:l.value)===s:!!(l||[]).find((e=>{let{value:l}=e;return l===s})),onChange:e=>{if(a)return void t(e?{value:s,label:i}:null);const r=(l||[]).slice(0);e?r.push({value:s,label:i}):(()=>{const e=r.findIndex((e=>{let{value:l}=e;return l===s}));r.splice(e,1)})(),r.length>n?d.error(p({id:"maxSelectedCount"},{count:n})):t(r)},children:i},s)})),(0,h.jsxs)(Pe,{className:o["filter-advanced-item-other"],size:"small",checked:(a?null===l||void 0===l?void 0:l.value:(null===l||void 0===l?void 0:l.value)&&l.value.length>0)&&!v.find((e=>{let{code:t}=e;return a?(null===l||void 0===l?void 0:l.value)===t:!!(l||[]).find((e=>{let{value:l}=e;return l===t}))})),children:[(0,h.jsx)(u.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,h.jsx)(V.Ay,{...r,className:o["filter-advanced-item-other-inner"],maxLength:n,value:a?null===l||void 0===l?void 0:l.value:(l||[]).map((e=>{let{value:l}=e;return l})),single:a,onChange:function(e){const l=e=>{const{city:l}=s.getCity(e);return{value:null===l||void 0===l?void 0:l.code,label:null===l||void 0===l?void 0:l.name}};t(a?l(e):e.map((e=>l(e))))}})]})]})};we.defaultProps={single:!1,maxLength:5};const ze=(0,V.DF)(we);var De=t(19853),Oe=t.n(De);const{CheckableTag:Te}=c.Tag,Ve=e=>{let{value:l,onChange:t,label:n,single:s,maxLength:i,items:r,custom:o}=e;const{message:d}=c.App.useApp(),{formatMessage:m}=(0,u.useIntl)({moduleName:"Filter"});return(0,h.jsxs)(h.Fragment,{children:[r.map((e=>{let{label:a,value:n}=e;return(0,h.jsx)(Te,{size:"small",checked:s?Oe()(n,null===l||void 0===l?void 0:l.value):!!(l||[]).find((e=>{let{value:l}=e;return Oe()(n,l)})),onChange:e=>{if(s)return void t(e?{value:n,label:a}:null);const r=(l||[]).slice(0);e?r.push({value:n,label:a}):(()=>{const e=r.find((e=>{let{value:l}=e;return Oe()(n,l)}));r.splice(e,1)})(),r.length>i?d.error(m({id:"maxSelectedCount"},{count:i})):t(r)},children:a},a)})),o&&(()=>{const e=Object.values(a).find((e=>e===o.type));return e?(0,h.jsx)(e,{...o.props,value:l,placeholder:"".concat(m({id:"pleaseInput"})).concat(n),onChange:t}):null})()]})};Ve.defaultProps={single:!1,maxLength:5,items:[]};const Le=Ve;var Re=t(78491),Ee=t.n(Re);const Ye={CityFilterItem:ze,ListFilterItem:Le,InputFilterItem:e=>{let{value:l,label:t,onChange:a,...n}=e;const s=null===l||void 0===l?void 0:l.value,[r,o]=(0,i.useState)(s||""),[d,m]=(0,i.useState)(!1),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=()=>{a(r?{label:r,value:r}:null)},_=Ee()((()=>{m(!1),v()})),g=(0,i.useRef)("");return g.current=r,(0,i.useEffect)((()=>{s!==g.current&&o(s)}),[s]),(0,h.jsx)("span",{ref:_,children:(0,h.jsxs)(c.Space.Compact,{children:[(0,h.jsx)(c.Input,{placeholder:"".concat(p({id:"pleaseInput"})).concat(t),...n,size:"small",value:r,onFocus:()=>{m(!0)},onChange:e=>{o(e.target.value)},onPressEnter:v}),d&&(0,h.jsx)(c.Button,{size:"small",type:"primary",onClick:v,children:p({id:"search"})})]})})}},Ue=e=>{let{list:l}=e;const{value:t,onChange:a}=v();return(0,h.jsx)(c.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,h.jsxs)(c.Flex,{gap:16,align:"center",children:[(0,h.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,h.jsx)(c.Flex,{wrap:!0,align:"center",children:(0,h.jsx)(n,{...e.props,value:t?g()(t.get(e.props.name),"value"):e.props.value,onChange:a?l=>a({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})]},e.key||e.props.name||l)}))})},Be=(0,u.createWithIntl)({importMessages:d,moduleName:"Filter"})((e=>{const{formatMessage:l}=(0,u.useIntl)({moduleName:"Filter"});return(0,h.jsx)(k,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:i}=n;return(0,h.jsxs)("div",{children:[(0,h.jsxs)(c.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,h.jsx)(Ue,{list:e},l))),i&&(0,h.jsx)(j,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[i]})]}),t&&t.length>0&&(0,h.jsx)(C,{value:t,onChange:a})]})}})}));Be.fields=Ye;const Ke=Be,Xe=e=>{let{children:l,...t}=e;return l(t)};P.fields=a,P.getFilterValue=Ie,P.useFilter=v,P.SearchInput=ke,P.withFilterValue=Me;const qe=P}}]);
2
+ //# sourceMappingURL=6915.c62232e0.chunk.js.map