@kne-components/components-core 0.3.8 → 0.3.9

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 (131) hide show
  1. package/build/asset-manifest.json +95 -95
  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/{1045.accb2796.chunk.css → 1045.88c30095.chunk.css} +2 -2
  6. package/build/static/css/{1045.accb2796.chunk.css.map → 1045.88c30095.chunk.css.map} +1 -1
  7. package/build/static/css/1153.945cf7e6.chunk.css +2 -0
  8. package/build/static/css/{1153.f1d47d46.chunk.css.map → 1153.945cf7e6.chunk.css.map} +1 -1
  9. package/build/static/css/1554.51a32bba.chunk.css +2 -0
  10. package/build/static/css/{1554.1d55e556.chunk.css.map → 1554.51a32bba.chunk.css.map} +1 -1
  11. package/build/static/css/2716.70849cda.chunk.css +2 -0
  12. package/build/static/css/{2716.823de112.chunk.css.map → 2716.70849cda.chunk.css.map} +1 -1
  13. package/build/static/css/4200.b70f4cca.chunk.css +2 -0
  14. package/build/static/css/{4200.5c94106b.chunk.css.map → 4200.b70f4cca.chunk.css.map} +1 -1
  15. package/build/static/css/4666.26494bce.chunk.css +2 -0
  16. package/build/static/css/{4666.13dc9380.chunk.css.map → 4666.26494bce.chunk.css.map} +1 -1
  17. package/build/static/css/{5371.d0f7e06e.chunk.css → 5371.eaaea094.chunk.css} +2 -2
  18. package/build/static/css/{5371.d0f7e06e.chunk.css.map → 5371.eaaea094.chunk.css.map} +1 -1
  19. package/build/static/css/5422.1565baad.chunk.css +2 -0
  20. package/build/static/css/{5422.310e1746.chunk.css.map → 5422.1565baad.chunk.css.map} +1 -1
  21. package/build/static/css/5939.e820dc6e.chunk.css +2 -0
  22. package/build/static/css/{5939.3ca38e02.chunk.css.map → 5939.e820dc6e.chunk.css.map} +1 -1
  23. package/build/static/css/{624.7e444e52.chunk.css → 624.5c94244f.chunk.css} +2 -2
  24. package/build/static/css/{624.7e444e52.chunk.css.map → 624.5c94244f.chunk.css.map} +1 -1
  25. package/build/static/css/6401.11c50ba9.chunk.css +2 -0
  26. package/build/static/css/{6401.ad14a7de.chunk.css.map → 6401.11c50ba9.chunk.css.map} +1 -1
  27. package/build/static/css/663.7cf66cf1.chunk.css +12 -0
  28. package/build/static/css/{663.2b351b88.chunk.css.map → 663.7cf66cf1.chunk.css.map} +1 -1
  29. package/build/static/css/7227.5e916f38.chunk.css +2 -0
  30. package/build/static/css/{7227.512b1bd4.chunk.css.map → 7227.5e916f38.chunk.css.map} +1 -1
  31. package/build/static/css/{7253.b98e67c6.chunk.css → 7253.413e10d4.chunk.css} +2 -2
  32. package/build/static/css/{7253.b98e67c6.chunk.css.map → 7253.413e10d4.chunk.css.map} +1 -1
  33. package/build/static/css/7277.270c08ea.chunk.css +2 -0
  34. package/build/static/css/{7277.8c85618a.chunk.css.map → 7277.270c08ea.chunk.css.map} +1 -1
  35. package/build/static/css/{7334.caeed1d4.chunk.css → 7334.953916f0.chunk.css} +2 -2
  36. package/build/static/css/{7334.caeed1d4.chunk.css.map → 7334.953916f0.chunk.css.map} +1 -1
  37. package/build/static/css/{7866.dae33b92.chunk.css → 7866.fce61354.chunk.css} +2 -2
  38. package/build/static/css/{7866.dae33b92.chunk.css.map → 7866.fce61354.chunk.css.map} +1 -1
  39. package/build/static/css/8278.6382d2e7.chunk.css +2 -0
  40. package/build/static/css/{8278.fcb465e6.chunk.css.map → 8278.6382d2e7.chunk.css.map} +1 -1
  41. package/build/static/css/{8503.ebfee031.chunk.css → 8503.4d3c5da9.chunk.css} +2 -2
  42. package/build/static/css/{8503.ebfee031.chunk.css.map → 8503.4d3c5da9.chunk.css.map} +1 -1
  43. package/build/static/css/9119.e54bf070.chunk.css +2 -0
  44. package/build/static/css/{9119.e9ce052d.chunk.css.map → 9119.e54bf070.chunk.css.map} +1 -1
  45. package/build/static/css/9791.87133052.chunk.css +2 -0
  46. package/build/static/css/{9791.5bdbda51.chunk.css.map → 9791.87133052.chunk.css.map} +1 -1
  47. package/build/static/js/{1045.9e73f95d.chunk.js → 1045.a424dbdb.chunk.js} +2 -2
  48. package/build/static/js/{1045.9e73f95d.chunk.js.map → 1045.a424dbdb.chunk.js.map} +1 -1
  49. package/build/static/js/{1153.b9171501.chunk.js → 1153.77196558.chunk.js} +3 -3
  50. package/build/static/js/{1153.b9171501.chunk.js.map → 1153.77196558.chunk.js.map} +1 -1
  51. package/build/static/js/1554.19cd56c5.chunk.js +3 -0
  52. package/build/static/js/{1554.cf310150.chunk.js.map → 1554.19cd56c5.chunk.js.map} +1 -1
  53. package/build/static/js/2716.21ac3741.chunk.js +3 -0
  54. package/build/static/js/{2716.bf29712e.chunk.js.map → 2716.21ac3741.chunk.js.map} +1 -1
  55. package/build/static/js/{2818.73343977.chunk.js → 2818.7ecd7f1d.chunk.js} +2 -2
  56. package/build/static/js/{2818.73343977.chunk.js.map → 2818.7ecd7f1d.chunk.js.map} +1 -1
  57. package/build/static/js/3856.c3cb9417.chunk.js +2 -0
  58. package/build/static/js/{3856.1c4c0238.chunk.js.map → 3856.c3cb9417.chunk.js.map} +1 -1
  59. package/build/static/js/4200.bc8ff6dc.chunk.js +2 -0
  60. package/build/static/js/{4200.a0c7214c.chunk.js.map → 4200.bc8ff6dc.chunk.js.map} +1 -1
  61. package/build/static/js/4474.990b8320.chunk.js +2 -0
  62. package/build/static/js/{4474.b8b8989a.chunk.js.map → 4474.990b8320.chunk.js.map} +1 -1
  63. package/build/static/js/{4666.a2a6a63b.chunk.js → 4666.e42fff5c.chunk.js} +3 -3
  64. package/build/static/js/{4666.a2a6a63b.chunk.js.map → 4666.e42fff5c.chunk.js.map} +1 -1
  65. package/build/static/js/{4671.a8affe38.chunk.js → 4671.ae56180e.chunk.js} +1 -1
  66. package/build/static/js/{4982.248a99b8.chunk.js → 4982.c6e0af0e.chunk.js} +2 -2
  67. package/build/static/js/{4982.248a99b8.chunk.js.map → 4982.c6e0af0e.chunk.js.map} +1 -1
  68. package/build/static/js/5371.c558f92b.chunk.js +2 -0
  69. package/build/static/js/{5371.04d99a42.chunk.js.map → 5371.c558f92b.chunk.js.map} +1 -1
  70. package/build/static/js/5422.e5d1a77d.chunk.js +2 -0
  71. package/build/static/js/{5422.26676c80.chunk.js.map → 5422.e5d1a77d.chunk.js.map} +1 -1
  72. package/build/static/js/{5939.00b485f1.chunk.js → 5939.c22680b8.chunk.js} +2 -2
  73. package/build/static/js/5939.c22680b8.chunk.js.map +1 -0
  74. package/build/static/js/{624.02a5bf5e.chunk.js → 624.fcbf7a1d.chunk.js} +2 -2
  75. package/build/static/js/{624.02a5bf5e.chunk.js.map → 624.fcbf7a1d.chunk.js.map} +1 -1
  76. package/build/static/js/{663.c2a54511.chunk.js → 663.e20d14a6.chunk.js} +2 -2
  77. package/build/static/js/{663.c2a54511.chunk.js.map → 663.e20d14a6.chunk.js.map} +1 -1
  78. package/build/static/js/7227.da550474.chunk.js +3 -0
  79. package/build/static/js/{7227.ae0a1442.chunk.js.map → 7227.da550474.chunk.js.map} +1 -1
  80. package/build/static/js/7253.0b9c55f8.chunk.js +2 -0
  81. package/build/static/js/{7253.4af34e91.chunk.js.map → 7253.0b9c55f8.chunk.js.map} +1 -1
  82. package/build/static/js/{7277.42a3af18.chunk.js → 7277.4cdf9475.chunk.js} +2 -2
  83. package/build/static/js/{7277.42a3af18.chunk.js.map → 7277.4cdf9475.chunk.js.map} +1 -1
  84. package/build/static/js/7334.bd4445b1.chunk.js +2 -0
  85. package/build/static/js/{7334.84c039d3.chunk.js.map → 7334.bd4445b1.chunk.js.map} +1 -1
  86. package/build/static/js/{7866.c1ec7c03.chunk.js → 7866.e161b53e.chunk.js} +2 -2
  87. package/build/static/js/{7866.c1ec7c03.chunk.js.map → 7866.e161b53e.chunk.js.map} +1 -1
  88. package/build/static/js/8278.1663ecfd.chunk.js +2 -0
  89. package/build/static/js/{8278.c853ecb3.chunk.js.map → 8278.1663ecfd.chunk.js.map} +1 -1
  90. package/build/static/js/8503.321aaf69.chunk.js +2 -0
  91. package/build/static/js/{8503.98dd7b65.chunk.js.map → 8503.321aaf69.chunk.js.map} +1 -1
  92. package/build/static/js/9119.7d6d0e78.chunk.js +2 -0
  93. package/build/static/js/{9119.a1f1316a.chunk.js.map → 9119.7d6d0e78.chunk.js.map} +1 -1
  94. package/build/static/js/{9791.135c76d6.chunk.js → 9791.ab1f8f28.chunk.js} +2 -2
  95. package/build/static/js/{9791.135c76d6.chunk.js.map → 9791.ab1f8f28.chunk.js.map} +1 -1
  96. package/build/static/js/{main.e8d0bfdf.js → main.4ec49d16.js} +2 -2
  97. package/build/static/js/{main.e8d0bfdf.js.map → main.4ec49d16.js.map} +1 -1
  98. package/package.json +2 -2
  99. package/build/static/css/1153.f1d47d46.chunk.css +0 -2
  100. package/build/static/css/1554.1d55e556.chunk.css +0 -2
  101. package/build/static/css/2716.823de112.chunk.css +0 -2
  102. package/build/static/css/4200.5c94106b.chunk.css +0 -2
  103. package/build/static/css/4666.13dc9380.chunk.css +0 -2
  104. package/build/static/css/5422.310e1746.chunk.css +0 -2
  105. package/build/static/css/5939.3ca38e02.chunk.css +0 -2
  106. package/build/static/css/6401.ad14a7de.chunk.css +0 -2
  107. package/build/static/css/663.2b351b88.chunk.css +0 -12
  108. package/build/static/css/7227.512b1bd4.chunk.css +0 -2
  109. package/build/static/css/7277.8c85618a.chunk.css +0 -2
  110. package/build/static/css/8278.fcb465e6.chunk.css +0 -2
  111. package/build/static/css/9119.e9ce052d.chunk.css +0 -2
  112. package/build/static/css/9791.5bdbda51.chunk.css +0 -2
  113. package/build/static/js/1554.cf310150.chunk.js +0 -3
  114. package/build/static/js/2716.bf29712e.chunk.js +0 -3
  115. package/build/static/js/3856.1c4c0238.chunk.js +0 -2
  116. package/build/static/js/4200.a0c7214c.chunk.js +0 -2
  117. package/build/static/js/4474.b8b8989a.chunk.js +0 -2
  118. package/build/static/js/5371.04d99a42.chunk.js +0 -2
  119. package/build/static/js/5422.26676c80.chunk.js +0 -2
  120. package/build/static/js/5939.00b485f1.chunk.js.map +0 -1
  121. package/build/static/js/7227.ae0a1442.chunk.js +0 -3
  122. package/build/static/js/7253.4af34e91.chunk.js +0 -2
  123. package/build/static/js/7334.84c039d3.chunk.js +0 -2
  124. package/build/static/js/8278.c853ecb3.chunk.js +0 -2
  125. package/build/static/js/8503.98dd7b65.chunk.js +0 -2
  126. package/build/static/js/9119.a1f1316a.chunk.js +0 -2
  127. /package/build/static/js/{1153.b9171501.chunk.js.LICENSE.txt → 1153.77196558.chunk.js.LICENSE.txt} +0 -0
  128. /package/build/static/js/{1554.cf310150.chunk.js.LICENSE.txt → 1554.19cd56c5.chunk.js.LICENSE.txt} +0 -0
  129. /package/build/static/js/{2716.bf29712e.chunk.js.LICENSE.txt → 2716.21ac3741.chunk.js.LICENSE.txt} +0 -0
  130. /package/build/static/js/{4666.a2a6a63b.chunk.js.LICENSE.txt → 4666.e42fff5c.chunk.js.LICENSE.txt} +0 -0
  131. /package/build/static/js/{7227.ae0a1442.chunk.js.LICENSE.txt → 7227.da550474.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([[1045,7766],{3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>M,TabsModal:()=>D,TabsModalButton:()=>Y,default:()=>v,useConfirmModal:()=>w,useModal:()=>R,useTabsModal:()=>k});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const r={modal:"style_modal__Pm3cF__tRSYD",large:"style_large__iaqVE__tRSYD","modal-body-inner":"style_modal-body-inner__4PhpA__tRSYD","modal-title":"style_modal-title__dswaw__tRSYD","modal-outer":"style_modal-outer__r3SkX__tRSYD","modal-body":"style_modal-body__jQJSI__tRSYD","right-options-modal":"style_right-options-modal__FajDP__tRSYD","right-options-row":"style_right-options-row__-mPb9__tRSYD","right-options-col":"style_right-options-col__3ilee__tRSYD","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__tRSYD",content:"style_content__k6MIF__tRSYD","modal-footer":"style_modal-footer__-prbN__tRSYD","modal-close":"style_modal-close__Oa5Kl__tRSYD","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__tRSYD","is-danger":"style_is-danger__H5110__tRSYD",title:"style_title__orTym__tRSYD","has-title":"style_has-title__qy0Wp__tRSYD"},a=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(47458),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),p=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:24-t,className:r["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:t,className:r["right-options-col"],children:o})]}):l},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:r,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:n,autoClose:s=!0,display:i,...a}=e;const c=t||h.default;return(0,l.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,d));return s&&!1!==l&&r&&r(),l}})}))})})]})},b=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:y}=e;const g=(0,l.useRef)(null);return(0,_.jsxs)("div",{className:r["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:r["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(p.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:t,footerButtons:a,onConfirm:h,onCancel:u,onClose:c,targetProps:y})}):null]})},j=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,onCancel:r,footer:a,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:p,children:u}=e;const y=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(b,{title:m(e.title,{...e,childrenRef:p,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:r,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(a,{...e,childrenRef:p,close:s}),targetProps:Object.assign({},e,{childrenRef:p,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:p,close:s}),children:m(u,{...e,childrenRef:p,close:s})})}));return"function"===typeof o?o(y,{childrenRef:p,close:s}):y({})},x=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:p,onConfirm:u,onCancel:f,closable:y,disabledScroller:C,withDecorator:b,childrenRef:x,...S}=e;return{...S,icon:null,centered:!0,title:null,maskClosable:!!S.hasOwnProperty("maskClosable")&&S.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:i()(d,r.modal,r[m],{[r["right-options-modal"]]:t}),...g(m,!(null===n&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:j({withDecorator:b,title:h,closable:y,onClose:p,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:C,children:o,childrenRef:x})})}},S=e=>{const o=(0,l.useRef)(null);return(0,_.jsx)(n.Modal,{...x(Object.assign({},e,{childrenRef:o}))})};S.defaultProps={size:"default"};const R=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=x({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},w=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:a,danger:c,wrapClassName:m,message:h,iconSetting:p={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,h]})});t.close=o}return t}},v=S,N=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:n.children})))):e(Object.assign({},t,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},D=e=>(0,_.jsx)(v,{...N(e)}),k=()=>{const e=R();return o=>e(N(o))};var P=t(73025);const Y=e=>{const o=k();return e.api?(0,_.jsx)(P.A,{...e,modalFunc:o}):(0,_.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},M=e=>{const o=R();if(!e.api){const{modalProps:t,...l}=e;return(0,_.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,_.jsx)(P.A,{...e,modalFunc:o})}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(8762),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
2
- //# sourceMappingURL=1045.9e73f95d.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1045,7766],{3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>A,TabsModal:()=>S,TabsModalButton:()=>R,default:()=>k,useConfirmModal:()=>N,useModal:()=>v,useTabsModal:()=>X});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const r={modal:"style_modal__Pm3cF__psX7x",large:"style_large__iaqVE__psX7x","modal-body-inner":"style_modal-body-inner__4PhpA__psX7x","modal-title":"style_modal-title__dswaw__psX7x","modal-outer":"style_modal-outer__r3SkX__psX7x","modal-body":"style_modal-body__jQJSI__psX7x","right-options-modal":"style_right-options-modal__FajDP__psX7x","right-options-row":"style_right-options-row__-mPb9__psX7x","right-options-col":"style_right-options-col__3ilee__psX7x","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__psX7x",content:"style_content__k6MIF__psX7x","modal-footer":"style_modal-footer__-prbN__psX7x","modal-close":"style_modal-close__Oa5Kl__psX7x","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__psX7x","is-danger":"style_is-danger__H5110__psX7x",title:"style_title__orTym__psX7x","has-title":"style_has-title__qy0Wp__psX7x"},a=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(47458),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var p=t(81014),h=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:24-t,className:r["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:t,className:r["right-options-col"],children:o})]}):l},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},x=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:r,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:n,autoClose:s=!0,display:i,...a}=e;const c=t||p.default;return(0,l.createElement)(c,{...a,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,d));return s&&!1!==l&&r&&r(),l}})}))})})]})},C=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:p,onCancel:u,children:f,targetProps:y}=e;const g=(0,l.useRef)(null);return(0,_.jsxs)("div",{className:r["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:r["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(x,{footer:t,footerButtons:a,onConfirm:p,onCancel:u,onClose:c,targetProps:y})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,onCancel:r,footer:a,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:h,children:u}=e;const y=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(C,{title:m(e.title,{...e,childrenRef:h,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:r,footerButtons:m(t,{...e,close:s}),disabledScroller:p,footer:m(a,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:h,close:s}),children:m(u,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(y,{childrenRef:h,close:s}):y({})},j=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:p,onClose:h,onConfirm:u,onCancel:f,closable:y,disabledScroller:x,withDecorator:C,childrenRef:j,...w}=e;return{...w,icon:null,centered:!0,title:null,maskClosable:!!w.hasOwnProperty("maskClosable")&&w.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:i()(d,r.modal,r[m],{[r["right-options-modal"]]:t}),...g(m,!(null===n&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:b({withDecorator:C,title:p,closable:y,onClose:h,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:x,children:o,childrenRef:j})})}},w=e=>{const o=(0,l.useRef)(null);return(0,_.jsx)(n.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const v=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=j({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},N=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:a,danger:c,wrapClassName:m,message:p,iconSetting:h={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,p]})});t.close=o}return t}},k=w,P=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:n.children})))):e(Object.assign({},t,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},S=e=>(0,_.jsx)(k,{...P(e)}),X=()=>{const e=v();return o=>e(P(o))};var M=t(73025);const R=e=>{const o=X();return e.api?(0,_.jsx)(M.A,{...e,modalFunc:o}):(0,_.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},A=e=>{const o=v();if(!e.api){const{modalProps:t,...l}=e;return(0,_.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,_.jsx)(M.A,{...e,modalFunc:o})}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(8762),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
2
+ //# sourceMappingURL=1045.a424dbdb.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/1045.9e73f95d.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,m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WnC,GAAS,C,mECfrD,QAAevB,G","sources":["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","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__tRSYD\",\"large\":\"style_large__iaqVE__tRSYD\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__tRSYD\",\"modal-title\":\"style_modal-title__dswaw__tRSYD\",\"modal-outer\":\"style_modal-outer__r3SkX__tRSYD\",\"modal-body\":\"style_modal-body__jQJSI__tRSYD\",\"right-options-modal\":\"style_right-options-modal__FajDP__tRSYD\",\"right-options-row\":\"style_right-options-row__-mPb9__tRSYD\",\"right-options-col\":\"style_right-options-col__3ilee__tRSYD\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__tRSYD\",\"content\":\"style_content__k6MIF__tRSYD\",\"modal-footer\":\"style_modal-footer__-prbN__tRSYD\",\"modal-close\":\"style_modal-close__Oa5Kl__tRSYD\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__tRSYD\",\"is-danger\":\"style_is-danger__H5110__tRSYD\",\"title\":\"style_title__orTym__tRSYD\",\"has-title\":\"style_has-title__qy0Wp__tRSYD\"};","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, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} 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 rightSpan,\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 rightSpan={rightSpan}\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 childrenRef,\n close: onClose,\n })\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\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 rightSpan,\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\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","SimpleBar","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/1045.a424dbdb.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB,QAEZC,EAAeC,IAA2C,IAA1C,QAAEH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAAUF,EAC/D,OAAKH,GAIHM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL,SAAA,EACtDM,EAAAA,EAAAA,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,EAAAA,EAAAA,KAACmF,EAAK,IAAKP,EAAoBrC,KAK3B+E,EAAeA,KAC1B,MAAM/B,EAAQD,IACd,OAAQ/C,GAAUgD,EAAMX,EAAoBrC,GAAO,E,eCtDrD,MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMmD,KAUJ1F,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC2D,EAAAA,OAAM,IACDpB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,WAAW,GAKoB,EAEzD,EA9BqBpF,IACnB,MAAMgD,EAAQD,IACd,IAAK/C,EAAMmD,IAAK,CACd,MAAM,WAAEiC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC2D,EAAAA,OAAM,IACDiE,EACJ9F,QAASA,KACPyD,EAAMoC,EAAW,GAIzB,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWnC,GAAS,C,mECfrD,QAAevB,G","sources":["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","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__psX7x\",\"large\":\"style_large__iaqVE__psX7x\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__psX7x\",\"modal-title\":\"style_modal-title__dswaw__psX7x\",\"modal-outer\":\"style_modal-outer__r3SkX__psX7x\",\"modal-body\":\"style_modal-body__jQJSI__psX7x\",\"right-options-modal\":\"style_right-options-modal__FajDP__psX7x\",\"right-options-row\":\"style_right-options-row__-mPb9__psX7x\",\"right-options-col\":\"style_right-options-col__3ilee__psX7x\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__psX7x\",\"content\":\"style_content__k6MIF__psX7x\",\"modal-footer\":\"style_modal-footer__-prbN__psX7x\",\"modal-close\":\"style_modal-close__Oa5Kl__psX7x\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__psX7x\",\"is-danger\":\"style_is-danger__H5110__psX7x\",\"title\":\"style_title__orTym__psX7x\",\"has-title\":\"style_has-title__qy0Wp__psX7x\"};","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, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} 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 rightSpan,\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 rightSpan={rightSpan}\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 childrenRef,\n close: onClose,\n })\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\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 rightSpan,\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\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","SimpleBar","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- /*! For license information please see 1153.b9171501.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1153],{41153:(e,t,r)=>{r.r(t),r.d(t,{HighlightProvider:()=>a,default:()=>_});var n=r(73884);const o="style_high-color__-DN7m__tRSYD";var s=r(70579);const l=(0,n.createContext)({}),{Provider:i}=l,a=e=>{let{list:t,children:r,highlightClassName:n}=e;return(0,s.jsx)(i,{value:{list:t,highlightClassName:n},children:(0,s.jsx)("span",{"data-testid":"components-core-highlight",children:r})})};a.defaultProps={caseSensitive:!1,list:[],highlightClassName:""};const c=e=>{let{tagName:t,children:r}=e;const{list:s,caseSensitive:i,highlightClassName:a}=(0,n.useContext)(l),c=(0,n.useMemo)((()=>{if(!r)return;let e=null===r||void 0===r?void 0:r.toString();if(!s||0===s.length)return e;const t=s.map((function(e){return"("+(e.replace(/[`+~!@#_$%^*()=|{}':;,\\[\].<>/?\uff01\uffe5\u2026&\uff08\uff09\u2014\u3010\u3011\u2018\uff1b\uff1a\u201d\u201c\u3002\uff0c\u3001\uff1f\s]/g,(e=>"\\"+e))+")")})).join("|"),n=new RegExp(t,i?"gm":"gim");return e.replace(n,(e=>`<font class="${o} ${a}">${e}</font>`))}),[s,i,r,a]);return(0,n.createElement)(t,{dangerouslySetInnerHTML:{__html:c}})};c.defaultProps={tagName:"span",children:""};const _=c},51153:(e,t,r)=>{var n=r(73884),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,s={},c=null,_=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(_=t.ref),t)l.call(t,n)&&!a.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:_,props:s,_owner:i.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
3
- //# sourceMappingURL=1153.b9171501.chunk.js.map
1
+ /*! For license information please see 1153.77196558.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1153],{41153:(e,t,r)=>{r.r(t),r.d(t,{HighlightProvider:()=>a,default:()=>_});var n=r(73884);const o="style_high-color__-DN7m__psX7x";var s=r(70579);const l=(0,n.createContext)({}),{Provider:i}=l,a=e=>{let{list:t,children:r,highlightClassName:n}=e;return(0,s.jsx)(i,{value:{list:t,highlightClassName:n},children:(0,s.jsx)("span",{"data-testid":"components-core-highlight",children:r})})};a.defaultProps={caseSensitive:!1,list:[],highlightClassName:""};const c=e=>{let{tagName:t,children:r}=e;const{list:s,caseSensitive:i,highlightClassName:a}=(0,n.useContext)(l),c=(0,n.useMemo)((()=>{if(!r)return;let e=null===r||void 0===r?void 0:r.toString();if(!s||0===s.length)return e;const t=s.map((function(e){return"("+(e.replace(/[`+~!@#_$%^*()=|{}':;,\\[\].<>/?\uff01\uffe5\u2026&\uff08\uff09\u2014\u3010\u3011\u2018\uff1b\uff1a\u201d\u201c\u3002\uff0c\u3001\uff1f\s]/g,(e=>"\\"+e))+")")})).join("|"),n=new RegExp(t,i?"gm":"gim");return e.replace(n,(e=>`<font class="${o} ${a}">${e}</font>`))}),[s,i,r,a]);return(0,n.createElement)(t,{dangerouslySetInnerHTML:{__html:c}})};c.defaultProps={tagName:"span",children:""};const _=c},51153:(e,t,r)=>{var n=r(73884),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,s={},c=null,_=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(_=t.ref),t)l.call(t,n)&&!a.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:_,props:s,_owner:i.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
3
+ //# sourceMappingURL=1153.77196558.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/1153.b9171501.chunk.js","mappings":";wNACA,QAA6B,gDCE7B,MAAMA,GAAUC,EAAAA,EAAAA,eAAc,CAAC,IACzB,SAAEC,GAAaF,EAQRG,EAAoBC,IAA6C,IAA5C,KAAEC,EAAI,SAAEC,EAAQ,mBAAEC,GAAoBH,EACtE,OACEI,EAAAA,EAAAA,KAACN,EAAQ,CAACO,MAAO,CAAEJ,OAAME,sBAAqBD,UAC5CE,EAAAA,EAAAA,KAAA,QAAM,cAAY,4BAA2BF,SAAEA,KACtC,EAGfH,EAAkBO,aAAe,CAC/BC,eAAe,EACfN,KAAM,GACNE,mBAAoB,IAEtB,MAAMK,EAAYC,IAA4B,IAA3B,QAAEC,EAAO,SAAER,GAAUO,EACtC,MAAM,KAAER,EAAI,cAAEM,EAAa,mBAAEJ,IAAuBQ,EAAAA,EAAAA,YAAWf,GACzDgB,GAAYC,EAAAA,EAAAA,UAAQ,KACxB,IAAKX,EAAU,OACf,IAAIY,EAAiB,OAARZ,QAAQ,IAARA,OAAQ,EAARA,EAAUa,WACvB,IAAKd,GAAwB,IAAhBA,EAAKe,OAChB,OAAOF,EAET,MAAMG,EAAahB,EAChBiB,KAAI,SAAUC,GACb,MAAO,KAA6BA,EAzB/BC,QADT,+IAC2BC,GAAU,KAAOA,IAyBI,IAC9C,IACCC,KAAK,KAEFC,EAAS,IAAIC,OAAOP,EAAYV,EAAgB,KAAO,OAE7D,OAAOO,EAAOM,QAAQG,GAASE,GACtB,gBAAgBC,KAAuBvB,MAAuBsB,YACrE,GACD,CAACxB,EAAMM,EAAeL,EAAUC,IAEnC,OAAOwB,EAAAA,EAAAA,eAAcjB,EAAS,CAC5BkB,wBAAyB,CAAEC,OAAQjB,IACnC,EAEJJ,EAAUF,aAAe,CACvBI,QAAS,OACTR,SAAU,IAMZ,2BChDa,IAAI4B,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAEV,EAAEW,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEd,EAAEoB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAE3C,aAAa,IAAI8C,KAAKF,EAAED,EAAE3C,kBAAe,IAAS+C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASzB,EAAE0B,KAAKT,EAAEL,IAAIU,EAAET,IAAIU,EAAEI,MAAMN,EAAEO,OAAOpB,EAAEqB,QAAQ,CAACC,EAAQC,SAAS5B,EAAE2B,EAAQE,IAAIhB,EAAEc,EAAQG,KAAKjB,mBCPxWkB,EAAOJ,QAAU,EAAjBI","sources":["webpack://@kne-components/components-core/./src/components/Highlight/style.module.scss?a31a","components/Highlight/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"high-color\":\"style_high-color__-DN7m__tRSYD\"};","import { createContext, createElement, useContext, useMemo } from \"react\";\nimport style from \"./style.module.scss\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst escapeSpecialCharacter = (str) => {\n const pattern =\n /[`+~!@#_$%^*()=|{}':;,\\\\[\\].<>/?!¥…&()—【】‘;:”“。,、?\\s]/g;\n return str.replace(pattern, (match) => \"\\\\\" + match);\n};\n\nexport const HighlightProvider = ({ list, children, highlightClassName }) => {\n return (\n <Provider value={{ list, highlightClassName }}>\n <span data-testid=\"components-core-highlight\">{children}</span>\n </Provider>\n );\n};\nHighlightProvider.defaultProps = {\n caseSensitive: false,\n list: [],\n highlightClassName: \"\",\n};\nconst Highlight = ({ tagName, children }) => {\n const { list, caseSensitive, highlightClassName } = useContext(context);\n const renderStr = useMemo(() => {\n if (!children) return;\n let target = children?.toString();\n if (!list || list.length === 0) {\n return target;\n }\n const allWordsRe = list\n .map(function (word) {\n return \"(\" + escapeSpecialCharacter(word) + \")\";\n })\n .join(\"|\");\n\n const regExp = new RegExp(allWordsRe, caseSensitive ? \"gm\" : \"gim\");\n\n return target.replace(regExp, (innerMatch) => {\n return `<font class=\"${style[\"high-color\"]} ${highlightClassName}\">${innerMatch}</font>`;\n });\n }, [list, caseSensitive, children, highlightClassName]);\n\n return createElement(tagName, {\n dangerouslySetInnerHTML: { __html: renderStr },\n });\n};\nHighlight.defaultProps = {\n tagName: \"span\",\n children: \"\",\n};\n\n// Highlight.propTypes={\n// children:PropTypes.string\n// }\nexport default Highlight;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["context","createContext","Provider","HighlightProvider","_ref","list","children","highlightClassName","_jsx","value","defaultProps","caseSensitive","Highlight","_ref2","tagName","useContext","renderStr","useMemo","target","toString","length","allWordsRe","map","word","replace","match","join","regExp","RegExp","innerMatch","style","createElement","dangerouslySetInnerHTML","__html","f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/1153.77196558.chunk.js","mappings":";wNACA,QAA6B,gDCE7B,MAAMA,GAAUC,EAAAA,EAAAA,eAAc,CAAC,IACzB,SAAEC,GAAaF,EAQRG,EAAoBC,IAA6C,IAA5C,KAAEC,EAAI,SAAEC,EAAQ,mBAAEC,GAAoBH,EACtE,OACEI,EAAAA,EAAAA,KAACN,EAAQ,CAACO,MAAO,CAAEJ,OAAME,sBAAqBD,UAC5CE,EAAAA,EAAAA,KAAA,QAAM,cAAY,4BAA2BF,SAAEA,KACtC,EAGfH,EAAkBO,aAAe,CAC/BC,eAAe,EACfN,KAAM,GACNE,mBAAoB,IAEtB,MAAMK,EAA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F,EAAEE,IAAI,GAAGH,GAAGA,EAAE3C,aAAa,IAAI8C,KAAKF,EAAED,EAAE3C,kBAAe,IAAS+C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASzB,EAAE0B,KAAKT,EAAEL,IAAIU,EAAET,IAAIU,EAAEI,MAAMN,EAAEO,OAAOpB,EAAEqB,QAAQ,CAACC,EAAQC,SAAS5B,EAAE2B,EAAQE,IAAIhB,EAAEc,EAAQG,KAAKjB,mBCPxWkB,EAAOJ,QAAU,EAAjBI","sources":["webpack://@kne-components/components-core/./src/components/Highlight/style.module.scss?a31a","components/Highlight/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"high-color\":\"style_high-color__-DN7m__psX7x\"};","import { createContext, createElement, useContext, useMemo } from \"react\";\nimport style from \"./style.module.scss\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst escapeSpecialCharacter = (str) => {\n const pattern =\n /[`+~!@#_$%^*()=|{}':;,\\\\[\\].<>/?!¥…&()—【】‘;:”“。,、?\\s]/g;\n return str.replace(pattern, (match) => \"\\\\\" + match);\n};\n\nexport const HighlightProvider = ({ list, children, highlightClassName }) => {\n return (\n <Provider value={{ list, highlightClassName }}>\n <span data-testid=\"components-core-highlight\">{children}</span>\n </Provider>\n );\n};\nHighlightProvider.defaultProps = {\n caseSensitive: false,\n list: [],\n highlightClassName: \"\",\n};\nconst Highlight = ({ tagName, children }) => {\n const { list, caseSensitive, highlightClassName } = useContext(context);\n const renderStr = useMemo(() => {\n if (!children) return;\n let target = children?.toString();\n if (!list || list.length === 0) {\n return target;\n }\n const allWordsRe = list\n .map(function (word) {\n return \"(\" + escapeSpecialCharacter(word) + \")\";\n })\n .join(\"|\");\n\n const regExp = new RegExp(allWordsRe, caseSensitive ? \"gm\" : \"gim\");\n\n return target.replace(regExp, (innerMatch) => {\n return `<font class=\"${style[\"high-color\"]} ${highlightClassName}\">${innerMatch}</font>`;\n });\n }, [list, caseSensitive, children, highlightClassName]);\n\n return createElement(tagName, {\n dangerouslySetInnerHTML: { __html: renderStr },\n });\n};\nHighlight.defaultProps = {\n tagName: \"span\",\n children: \"\",\n};\n\n// Highlight.propTypes={\n// children:PropTypes.string\n// }\nexport default Highlight;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["context","createContext","Provider","HighlightProvider","_ref","list","children","highlightClassName","_jsx","value","defaultProps","caseSensitive","Highlight","_ref2","tagName","useContext","renderStr","useMemo","target","toString","length","allWordsRe","map","word","replace","match","join","regExp","RegExp","innerMatch","style","createElement","dangerouslySetInnerHTML","__html","f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 1554.19cd56c5.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1554,4671],{21554:(e,s,t)=>{t.r(s),t.d(s,{TooltipFetch:()=>k,TooltipInfoLabel:()=>O,default:()=>X});var n=t(55199),_=t(83136),l=t.n(_);const o="style_tooltip__zHGMI__psX7x",r="style_large__lvmsm__psX7x",a="style_small__nUt0r__psX7x",i="style_popup-content__-rKQN__psX7x",c="style_title__1EQPq__psX7x",p="style_important-info__qTSZY__psX7x",d="style_error__yTTq3__psX7x",x="style_warning__CMJxz__psX7x",y="style_success__AvJVx__psX7x",f="style_sub-title__uD8CH__psX7x",u="style_content__lzgUz__psX7x",m="style_alone__q6q82__psX7x",h="style_fetch-content__tEOEV__psX7x",v="style_fetch-loading__tN-WB__psX7x",j="style_title-info-icon__iY8Q+__psX7x";var N=t(70579);const g=e=>{let{overlayClassName:s,title:t,size:_,subtitle:h,content:v,importantInfo:j,importantInfoType:g,moreInfo:X,...C}=e;return(0,N.jsx)(n.Tooltip,{...C,overlayClassName:l()(s,o,{[a]:"small"===_,[r]:"large"===_}),title:(0,N.jsxs)(n.Space,{direction:"vertical",className:i,children:[t&&(0,N.jsx)("div",{className:c,children:t}),j&&(0,N.jsx)("div",{className:l()(p,{[y]:"success"===g,[x]:"warning"===g,[d]:"error"===g}),children:j}),h&&(0,N.jsx)("div",{className:f,children:h}),v&&(0,N.jsx)("div",{className:l()(u,{[m]:[t,h,j,X].every((e=>!e))}),children:v}),X&&(0,N.jsx)("div",{children:X})]})})};g.defaultProps={};const X=g;var C=t(64671);const O=e=>{let{title:s,tooltipTitle:t}=e;return(0,N.jsxs)("div",{children:[s,t?(0,N.jsx)(X,{...t,children:(0,N.jsx)("span",{children:(0,N.jsx)(C.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var b=t(73884),w=t(87558);const T=e=>{let{api:s,children:t,fetchContent:_,showLoading:o,loadingClassName:r,force:a,...i}=e;const[c,p]=(0,b.useState)(!1),d=(0,w.useFetch)(Object.assign({},s,{auto:!1})),{isComplete:x,isLoading:y,data:f,send:u}=d;return(0,N.jsx)(X,{...Object.assign({},i,x?_(f,d):{}),open:c,onOpenChange:async e=>{!e||x&&!a||await u({type:"refresh"}),p(e)},children:(0,N.jsxs)("span",{className:h,children:[t,o&&y?(0,N.jsx)(n.Spin,{size:"small",className:l()(r,v)}):null]})})};T.defaultProps={showLoading:!0};const k=T},51153:(e,s,t)=>{var n=t(73884),_=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,s,t){var n,l={},i=null,c=null;for(n in void 0!==t&&(i=""+t),void 0!==s.key&&(i=""+s.key),void 0!==s.ref&&(c=s.ref),s)o.call(s,n)&&!a.hasOwnProperty(n)&&(l[n]=s[n]);if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===l[n]&&(l[n]=s[n]);return{$$typeof:_,type:e,key:i,ref:c,props:l,_owner:r.current}}s.Fragment=l,s.jsx=i,s.jsxs=i},64671:(e,s,t)=>{t.r(s),t.d(s,{FontLoader:()=>n.FontLoader,default:()=>_.a});var n=t(48781),_=t.n(n)},70579:(e,s,t)=>{e.exports=t(51153)}}]);
3
+ //# sourceMappingURL=1554.19cd56c5.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/1554.cf310150.chunk.js","mappings":";mQACA,QAA0B,8BAA1B,EAAgE,4BAAhE,EAAoG,4BAApG,EAAgJ,oCAAhJ,EAA4L,4BAA5L,EAAyO,qCAAzO,EAAsR,4BAAtR,EAA4T,8BAA5T,EAAoW,8BAApW,EAA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ASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAE3C,aAAa,IAAI8C,KAAKF,EAAED,EAAE3C,kBAAe,IAAS+C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAExB,KAAKwC,EAAEL,IAAIU,EAAET,IAAIU,EAAE7D,MAAM2D,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,wHCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["webpack://@kne-components/components-core/./src/components/Tooltip/style.module.scss?c30c","components/Tooltip/tooltip.js","components/Tooltip/tooltipInfoLabel.js","components/Tooltip/tooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__tRSYD\",\"large\":\"style_large__lvmsm__tRSYD\",\"small\":\"style_small__nUt0r__tRSYD\",\"popup-content\":\"style_popup-content__-rKQN__tRSYD\",\"title\":\"style_title__1EQPq__tRSYD\",\"important-info\":\"style_important-info__qTSZY__tRSYD\",\"error\":\"style_error__yTTq3__tRSYD\",\"warning\":\"style_warning__CMJxz__tRSYD\",\"success\":\"style_success__AvJVx__tRSYD\",\"sub-title\":\"style_sub-title__uD8CH__tRSYD\",\"content\":\"style_content__lzgUz__tRSYD\",\"alone\":\"style_alone__q6q82__tRSYD\",\"fetch-content\":\"style_fetch-content__tEOEV__tRSYD\",\"fetch-loading\":\"style_fetch-loading__tN-WB__tRSYD\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__tRSYD\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n overlayClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nTooltip.defaultProps = {};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import { useState } from \"react\";\nimport { useFetch } from \"@kne/react-fetch\";\nimport { Spin } from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api,\n children,\n fetchContent,\n showLoading,\n loadingClassName,\n force,\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, { auto: false }));\n const { isComplete, isLoading, data, send } = fetchApi;\n return (\n <Tooltip\n {...Object.assign(\n {},\n props,\n isComplete ? fetchContent(data, fetchApi) : {}\n )}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({ type: \"refresh\" });\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (\n <Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />\n ) : null}\n </span>\n </Tooltip>\n );\n};\n\nTooltipFetch.defaultProps = {\n showLoading: true,\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["Tooltip","_ref","overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo","props","_jsx","AntdTooltip","classnames","style","_jsxs","Space","direction","className","children","every","item","defaultProps","tooltipTitle","Icon","type","TooltipFetch","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","Object","assign","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/1554.19cd56c5.chunk.js","mappings":";mQACA,QAA0B,8BAA1B,EAAgE,4BAAhE,EAAoG,4BAApG,EAAgJ,oCAAhJ,EAA4L,4BAA5L,EAAyO,qCAAzO,EAAsR,4BAAtR,EAA4T,8BAA5T,EAAoW,8BAApW,EAA8Y,gCAA9Y,EAAwb,8BAAxb,EAA8d,4BAA9d,EAA0gB,oCAA1gB,EAA8jB,oCAA9jB,EAAonB,qDCGpnB,MAAMA,EAAUC,IAUT,IAVU,iBACfC,EAAgB,MAChBC,EAAK,KACLC,EAAI,SACJC,EAAQ,QACRC,EAAO,cACPC,EAAa,kBACbC,EAAiB,SACjBC,KACGC,GACJT,EACC,OACEU,EAAAA,EAAAA,KAACC,EAAAA,QAAW,IACNF,EACJR,iBAAkBW,IAAWX,EAAkBY,EAAkB,CAC/D,CAACA,GAA0B,UAATV,EAClB,CAACU,GAA0B,UAATV,IAEpBD,OACEY,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACC,UAAU,WAAWC,UAAWJ,EAAuBK,SAAA,CAC3DhB,IAASQ,EAAAA,EAAAA,KAAA,OAAKO,UAAWJ,EAAeK,SAAEhB,IAC1CI,IACCI,EAAAA,EAAAA,KAAA,OACEO,UAAWL,IAAWC,EAAyB,CAC7C,CAACA,GAAyC,YAAtBN,EACpB,CAACM,GAAyC,YAAtBN,EACpB,CAACM,GAAuC,UAAtBN,IACjBW,SAEFZ,IAGJF,IAAYM,EAAAA,EAAAA,KAAA,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c,UAAWL,IAAWiB,EAAkBhB,KAExC,SAEE,EAIdY,EAAaJ,aAAe,CAC1BO,aAAa,GAGf,2BC1Ca,IAAIkB,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEhB,OAAOiB,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAE3C,aAAa,IAAI8C,KAAKF,EAAED,EAAE3C,kBAAe,IAAS+C,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACK,SAASxB,EAAExB,KAAKwC,EAAEL,IAAIU,EAAET,IAAIU,EAAE7D,MAAM2D,EAAEK,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAASzB,EAAEwB,EAAQE,IAAId,EAAEY,EAAQG,KAAKf,wHCPxWgB,EAAOJ,QAAU,EAAjBI","sources":["webpack://@kne-components/components-core/./src/components/Tooltip/style.module.scss?c30c","components/Tooltip/tooltip.js","components/Tooltip/tooltipInfoLabel.js","components/Tooltip/tooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__psX7x\",\"large\":\"style_large__lvmsm__psX7x\",\"small\":\"style_small__nUt0r__psX7x\",\"popup-content\":\"style_popup-content__-rKQN__psX7x\",\"title\":\"style_title__1EQPq__psX7x\",\"important-info\":\"style_important-info__qTSZY__psX7x\",\"error\":\"style_error__yTTq3__psX7x\",\"warning\":\"style_warning__CMJxz__psX7x\",\"success\":\"style_success__AvJVx__psX7x\",\"sub-title\":\"style_sub-title__uD8CH__psX7x\",\"content\":\"style_content__lzgUz__psX7x\",\"alone\":\"style_alone__q6q82__psX7x\",\"fetch-content\":\"style_fetch-content__tEOEV__psX7x\",\"fetch-loading\":\"style_fetch-loading__tN-WB__psX7x\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__psX7x\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n overlayClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nTooltip.defaultProps = {};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import { useState } from \"react\";\nimport { useFetch } from \"@kne/react-fetch\";\nimport { Spin } from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./index\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api,\n children,\n fetchContent,\n showLoading,\n loadingClassName,\n force,\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, { auto: false }));\n const { isComplete, isLoading, data, send } = fetchApi;\n return (\n <Tooltip\n {...Object.assign(\n {},\n props,\n isComplete ? fetchContent(data, fetchApi) : {}\n )}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({ type: \"refresh\" });\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (\n <Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />\n ) : null}\n </span>\n </Tooltip>\n );\n};\n\nTooltipFetch.defaultProps = {\n showLoading: true,\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["Tooltip","_ref","overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo","props","_jsx","AntdTooltip","classnames","style","_jsxs","Space","direction","className","children","every","item","defaultProps","tooltipTitle","Icon","type","TooltipFetch","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","Object","assign","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 2716.21ac3741.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{51153:(t,e,s)=>{var r=s(73884),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,_=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,s){var r,l={},c=null,p=null;for(r in void 0!==s&&(c=""+s),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(p=e.ref),e)o.call(e,r)&&!n.hasOwnProperty(r)&&(l[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===l[r]&&(l[r]=e[r]);return{$$typeof:a,type:t,key:c,ref:p,props:l,_owner:_.current}}e.Fragment=l,e.jsx=c,e.jsxs=c},62716:(t,e,s)=>{s.r(e),s.d(e,{default:()=>i});var r=s(73884),a=s(83136),l=s.n(a);const o={"state-tag":"style_state-tag__Kx27z__psX7x","state-result-tag":"style_state-result-tag__CssDz__psX7x","state-skill-tag":"style_state-skill-tag__k0bQE__psX7x","event-tag":"style_event-tag__cg6SE__psX7x","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__psX7x","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__psX7x","state-tag-filterResult":"style_state-tag-filterResult__KTkot__psX7x","show-bg":"style_show-bg__OcL+R__psX7x","tag-text":"style_tag-text__JHCt+__psX7x","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__psX7x"};var _=s(55199),n=s(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=t=>{let{showBorder:e,text:s,type:a,showBackground:p,className:i,filterName:g,...u}=t;const d=(0,r.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[a])||void 0===t?void 0:t.color)||c[a],borderColor:(null===c||void 0===c||null===(e=c[a])||void 0===e?void 0:e.borderColor)||c[a]}}),[a]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===a?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[g?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[g,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...u,style:{background:p?d.color+"0F":"none",color:d.color,border:e?`1px solid ${d.borderColor}`:"none"},className:l()(o["state-tag"],i,"result"===a?o["state-result-tag"]:"","skill"===a?o["state-skill-tag"]:"",o[`state-tag-${a}`],p?o["show-bg"]:"",e?o["show-border"]:"",null!==u&&void 0!==u&&u.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:s})})]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const i=p},70579:(t,e,s)=>{t.exports=s(51153)}}]);
3
+ //# sourceMappingURL=2716.21ac3741.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2716.bf29712e.chunk.js","mappings":";mJASa,IAAIA,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAEV,EAAEW,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEd,EAAEoB,KAAKN,EAAEE,KAAKT,EAAEJ,eAAea,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEQ,aAAa,IAAIL,KAAKF,EAAED,EAAEQ,kBAAe,IAASJ,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACM,SAAS1B,EAAE2B,KAAKV,EAAEL,IAAIU,EAAET,IAAIU,EAAEK,MAAMP,EAAEQ,OAAOrB,EAAEsB,QAAQ,CAACC,EAAQC,SAAS7B,EAAE4B,EAAQE,IAAIjB,EAAEe,EAAQG,KAAKlB,oFCT1W,SAAgB,YAAY,gCAAgC,mBAAmB,uCAAuC,kBAAkB,sCAAsC,YAAY,gCAAgC,kCAAkC,sD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aAAalC,KACnBwB,EAAiBU,EAAM,WAAa,GACpCZ,EAAaY,EAAM,eAAiB,GAC/B,OAALjC,QAAK,IAALA,GAAAA,EAAOyC,QAAUR,EAAM,aAAe,IACtCG,UAEFC,EAAAA,EAAAA,KAAA,QAAMb,UAAWS,EAAM,YAAYG,SAAEd,QAEjC,EAIZH,EAAStB,aAAe,CACtBa,MAAO,UACPX,KAAM,UACNsB,YAAY,EACZE,gBAAgB,EAChBD,KAAM,GACNE,UAAW,IAGb,2BClFEkB,EAAOvC,QAAU,EAAjBuC","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__tRSYD\",\"state-result-tag\":\"style_state-result-tag__CssDz__tRSYD\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__tRSYD\",\"event-tag\":\"style_event-tag__cg6SE__tRSYD\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__tRSYD\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__tRSYD\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__tRSYD\",\"show-bg\":\"style_show-bg__OcL+R__tRSYD\",\"tag-text\":\"style_tag-text__JHCt+__tRSYD\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__tRSYD\"};","import React, { useMemo } from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport { Space, Tag } from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\",\n borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder,\n text,\n type,\n showBackground,\n className,\n filterName,\n ...props\n}) => {\n const tagColor = useMemo(\n () => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }),\n [type]\n );\n\n return (\n <Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(\n style[\"state-tag-wrapper\"],\n type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\"\n )}\n align=\"center\"\n size={4}\n >\n {filterName ? (\n <span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>\n ) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(\n style[\"state-tag\"],\n className,\n type === \"result\" ? style[\"state-result-tag\"] : \"\",\n type === \"skill\" ? style[\"state-skill-tag\"] : \"\",\n style[`state-tag-${type}`],\n showBackground ? style[\"show-bg\"] : \"\",\n showBorder ? style[\"show-border\"] : \"\",\n props?.onClick ? style[\"event-tag\"] : \"\"\n )}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>\n );\n};\n\nStateTag.defaultProps = {\n color: \"#666666\",\n type: \"default\",\n showBorder: false,\n showBackground: true,\n text: \"\",\n className: \"\",\n};\n\nexport default StateTag;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","StateTag","_ref","showBorder","text","showBackground","className","filterName","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","background","border","onClick","module"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/2716.21ac3741.chunk.js","mappings":";mJASa,IAAIA,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAEV,EAAEW,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEN,MAAMU,EAAE,GAAGJ,EAAEN,UAAK,IAASM,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,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A0BkC,EAAM,mCAAqC,IAEvEC,MAAM,SACNC,KAAM,EAAEC,SAAA,CAEPX,GACCK,EAAAA,EAAAA,MAAA,QAAMN,UAAWS,EAAM,yBAAyBG,SAAA,CAAEX,EAAW,OAC3D,MACJY,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CACF5B,MAAOgB,EAAShB,SACZV,EACJiC,MAAO,CACLM,WAAYhB,EAAiBG,EAAShB,MAAQ,KAAO,OACrDA,MAAOgB,EAAShB,MAChB8B,OAAQnB,EAAa,aAAaK,EAASf,cAAgB,QAE7Da,UAAWQ,IACTC,EAAM,aACNT,EACS,WAATzB,EAAoBkC,EAAM,oBAAsB,GACvC,UAATlC,EAAmBkC,EAAM,mBAAqB,GAC9CA,EAAM,aAAalC,KACnBwB,EAAiBU,EAAM,WAAa,GACpCZ,EAAaY,EAAM,eAAiB,GAC/B,OAALjC,QAAK,IAALA,GAAAA,EAAOyC,QAAUR,EAAM,aAAe,IACtCG,UAEFC,EAAAA,EAAAA,KAAA,QAAMb,UAAWS,EAAM,YAAYG,SAAEd,QAEjC,EAIZH,EAAStB,aAAe,CACtBa,MAAO,UACPX,KAAM,UACNsB,YAAY,EACZE,gBAAgB,EAChBD,KAAM,GACNE,UAAW,IAGb,2BClFEkB,EAAOvC,QAAU,EAAjBuC","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__psX7x\",\"state-result-tag\":\"style_state-result-tag__CssDz__psX7x\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__psX7x\",\"event-tag\":\"style_event-tag__cg6SE__psX7x\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__psX7x\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__psX7x\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__psX7x\",\"show-bg\":\"style_show-bg__OcL+R__psX7x\",\"tag-text\":\"style_tag-text__JHCt+__psX7x\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__psX7x\"};","import React, { useMemo } from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport { Space, Tag } from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\",\n borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder,\n text,\n type,\n showBackground,\n className,\n filterName,\n ...props\n}) => {\n const tagColor = useMemo(\n () => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }),\n [type]\n );\n\n return (\n <Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(\n style[\"state-tag-wrapper\"],\n type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\"\n )}\n align=\"center\"\n size={4}\n >\n {filterName ? (\n <span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>\n ) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(\n style[\"state-tag\"],\n className,\n type === \"result\" ? style[\"state-result-tag\"] : \"\",\n type === \"skill\" ? style[\"state-skill-tag\"] : \"\",\n style[`state-tag-${type}`],\n showBackground ? style[\"show-bg\"] : \"\",\n showBorder ? style[\"show-border\"] : \"\",\n props?.onClick ? style[\"event-tag\"] : \"\"\n )}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>\n );\n};\n\nStateTag.defaultProps = {\n color: \"#666666\",\n type: \"default\",\n showBorder: false,\n showBackground: true,\n text: \"\",\n className: \"\",\n};\n\nexport default StateTag;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","StateTag","_ref","showBorder","text","showBackground","className","filterName","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","background","border","onClick","module"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2818],{2818:(e,t,n)=>{n.r(t),n.d(t,{FontLoader:()=>f,default:()=>u,loadFont:()=>d});var r=n(73884),o=n.n(r),s=n(83136),c=n.n(s);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const l=["type","colorful","className","size","style","prefix"],i=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),u=e=>{let{type:t,colorful:n=!1,className:r,size:s,style:u,prefix:d=""}=e,f=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,l);const p=((e,t,n)=>"icon-"===t||""===t?(n?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,d,n),m=c()(r,{iconfont:!n,"iconfont--color":n},p),h=Object.assign({},u,s?{fontSize:i(s)}:{});return n?o().createElement("svg",a({},f,{className:m,style:h}),o().createElement("use",{xlinkHref:`#${p}`,style:{pointerEvents:"none"}})):o().createElement("i",a({},f,{className:m,style:h}))},d=async(e,t)=>{if(!document.head.querySelector(`script[href*="${t||(e=>{const t=(e=e.replace(/\/+$/,"")).split("/").filter((e=>""!==e));return t[t.length-1]})(e)}"]`)){if(/.js$/.test(e)){const t=document.createElement("script");return t.src=e,await new Promise(((e,n)=>{t.addEventListener("load",(()=>{e()})),t.addEventListener("error",(e=>{n(e)})),document.head.append(t)})),()=>{document.head.removeChild(t)}}if(/.css$/.test(e)){const t=document.createElement("link");return t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),await new Promise(((e,n)=>{t.addEventListener("load",(()=>{e()})),t.addEventListener("error",(e=>{n(e)})),document.head.append(t)})),()=>{document.head.removeChild(t)}}throw new Error("Unable to load font type")}},f=e=>{let{path:t,name:n}=e;return(0,r.useCallback)((()=>{const e=d(t,n);return()=>{e.then((e=>{e&&e()}))}}),[t,n]),null}}}]);
2
- //# sourceMappingURL=2818.73343977.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2818],{2818:(e,t,n)=>{n.r(t),n.d(t,{FontLoader:()=>f,default:()=>u,loadFont:()=>d});var r=n(73884),o=n.n(r),s=n(83136),c=n.n(s);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const l=["type","colorful","className","size","style","prefix"],i=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),u=e=>{let{type:t,colorful:n=!1,className:r,size:s,style:u,prefix:d=""}=e,f=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,l);const p=((e,t,n)=>"icon-"===t||""===t?(n?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,d,n),m=c()(r,{iconfont:!n,"iconfont--color":n},p),h=Object.assign({},u,s?{fontSize:i(s)}:{});return n?o().createElement("svg",a({},f,{className:m,style:h}),o().createElement("use",{xlinkHref:`#${p}`,style:{pointerEvents:"none"}})):o().createElement("i",a({},f,{className:m,style:h}))},d=async(e,t)=>{if(!document.head.querySelector(`script[href*="${t||(e=>{const t=(e=e.replace(/\/+$/,"")).split("/").filter((e=>""!==e));return t[t.length-1]})(e)}"]`)){if(/.js$/.test(e)){const t=document.createElement("script");return t.src=e,await new Promise(((e,n)=>{t.addEventListener("load",(()=>{e()})),t.addEventListener("error",(e=>{n(e)})),document.head.append(t)})),()=>{document.head.removeChild(t)}}if(/.css$/.test(e)){const t=document.createElement("link");return t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),await new Promise(((e,n)=>{t.addEventListener("load",(()=>{e()})),t.addEventListener("error",(e=>{n(e)})),document.head.append(t)})),()=>{document.head.removeChild(t)}}throw new Error("Unable to load font type")}},f=e=>{let{path:t,name:n}=e;return(0,r.useEffect)((()=>{const e=d(t,n);return()=>{e.then((e=>{e&&e()}))}}),[t,n]),null}}}]);
2
+ //# sourceMappingURL=2818.7ecd7f1d.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2818.73343977.chunk.js","mappings":"ohBAGMA,EAAgBC,IAChB,mBAAmBC,KAAKD,EAAKE,cAC/BF,GAAQ,MAEHA,GAUHG,EAAWC,IAA+E,IAA9E,KAAEC,EAAI,SAAEC,GAAW,EAAK,UAAEC,EAAS,KAAEP,EAAI,MAAEQ,EAAK,OAAEC,EAAS,IAAcL,EAAPM,E,2IAAKC,CAAAP,EAAAQ,GACvF,MAAMC,EARcC,EAACC,EAAYN,EAAQH,IAC1B,UAAXG,GAAiC,KAAXA,GAChBH,EAAW,cAAgB,SAAWS,EAAWC,QAAQ,kBAAmB,IAE/EP,EAASM,EAIED,CAAcT,EAAMI,EAAQH,GAC5CW,EAAoBC,IAClBX,EACA,CACEY,UAAWb,EACX,kBAAmBA,GAErBO,GAEFO,EAAgBC,OAAOC,OAAO,CAAC,EAAGd,EAAOR,EAAO,CAAEuB,SAAUxB,EAAcC,IAAU,CAAC,GACvF,OAAOM,EACLkB,IAAAA,cAAA,MAAAC,EAAA,GAASf,EAAK,CAAEH,UAAWU,EAAmBT,MAAOY,IACnDI,IAAAA,cAAA,OAAKE,UAAW,IAAIb,IAAaL,MAAO,CAAEmB,cAAe,WAG3DH,IAAAA,cAAA,IAAAC,EAAA,GAAOf,EAAK,CAAEH,UAAWU,EAAmBT,MAAOY,IACpD,ECpBGQ,EAAWC,MAAOC,EAAMC,KAC5B,IAAIC,SAASC,KAAKC,cAAc,iBAAiBH,GAfxBD,KAKzB,MAGMK,GANNL,EAAOA,EAAKd,QAAQ,OAAQ,KAGToB,MAAM,KAGGC,QAAOC,GAAiB,KAATA,IAG3C,OAAOH,EAAcA,EAAcI,OAAS,EAAE,EAIWC,CAAkBV,QAA3E,CAGA,GAAI,OAAO7B,KAAK6B,GAAO,CACrB,MAAMW,EAAMT,SAASU,cAAc,UAWnC,OAVAD,EAAIE,IAAMb,QACJ,IAAIc,SAAQ,CAACC,EAASC,KAC1BL,EAAIM,iBAAiB,QAAQ,KAC3BF,GAAS,IAEXJ,EAAIM,iBAAiB,SAASC,IAC5BF,EAAOE,EAAE,IAEXhB,SAASC,KAAKgB,OAAOR,EAAI,IAEpB,KACLT,SAASC,KAAKiB,YAAYT,EAAI,CAElC,CACA,GAAI,QAAQxC,KAAK6B,GAAO,CACtB,MAAMW,EAAMT,SAASU,cAAc,QAYnC,OAXAD,EAAIU,aAAa,OAAQrB,GACzBW,EAAIU,aAAa,MAAO,oBAClB,IAAIP,SAAQ,CAACC,EAASC,KAC1BL,EAAIM,iBAAiB,QAAQ,KAC3BF,GAAS,IAEXJ,EAAIM,iBAAiB,SAASC,IAC5BF,EAAOE,EAAE,IAEXhB,SAASC,KAAKgB,OAAOR,EAAI,IAEpB,KACLT,SAASC,KAAKiB,YAAYT,EAAI,CAElC,CACA,MAAM,IAAIW,MAAM,2BAlChB,CAkC2C,EChDvCC,EAAaC,IAAoB,IAAnB,KAAExB,EAAI,KAAEC,GAAMuB,EAShC,OARAC,EAAAA,EAAAA,cAAY,KACV,MAAMC,EAAc5B,EAASE,EAAMC,GACnC,MAAO,KACLyB,EAAYC,MAAMC,IAChBA,GAAaA,GAAW,GACxB,CACH,GACA,CAAC5B,EAAMC,IACH,IAAI,C","sources":["../node_modules/@kne/react-icon/src/Iconfont.js","../node_modules/@kne/react-icon/src/loadFont.js","../node_modules/@kne/react-icon/src/FontLoader.js"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\n\nconst calculateSize = size => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += 'px';\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === 'icon-' || prefix === '') {\n return (colorful ? 'icon-color-' : 'icon-') + prefixType.replace(/^icon-(color-)?/, '');\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({ type, colorful = false, className, size, style, prefix = '', ...other }) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n 'iconfont--color': colorful\n },\n fontClass\n ),\n computedStyle = Object.assign({}, style, size ? { fontSize: calculateSize(size) } : {});\n return colorful ? (\n <svg {...other} className={computedClassName} style={computedStyle}>\n <use xlinkHref={`#${fontClass}`} style={{ pointerEvents: 'none' }} />\n </svg>\n ) : (\n <i {...other} className={computedClassName} style={computedStyle} />\n );\n};\n\nexport default Iconfont;\n","const getLastFolderName = (path) => {\n // 标准化路径,去除末尾的斜杠\n path = path.replace(/\\/+$/, '');\n\n // 按斜杠分割路径\n const parts = path.split('/');\n\n // 过滤掉空字符串\n const filteredParts = parts.filter(part => part !== '');\n\n // 获取最后一个部分\n return filteredParts[filteredParts.length - 1];\n};\n\nconst loadFont = async (path, name) => {\n if (document.head.querySelector(`script[href*=\"${name || getLastFolderName(path)}\"]`)) {\n return;\n }\n if (/.js$/.test(path)) {\n const dom = document.createElement('script');\n dom.src = path;\n await new Promise((resolve, reject) => {\n dom.addEventListener('load', () => {\n resolve();\n });\n dom.addEventListener('error', e => {\n reject(e);\n });\n document.head.append(dom);\n });\n return () => {\n document.head.removeChild(dom);\n };\n }\n if (/.css$/.test(path)) {\n const dom = document.createElement('link');\n dom.setAttribute('href', path);\n dom.setAttribute('rel', 'stylesheet');\n await new Promise((resolve, reject) => {\n dom.addEventListener('load', () => {\n resolve();\n });\n dom.addEventListener('error', e => {\n reject(e);\n });\n document.head.append(dom);\n });\n return () => {\n document.head.removeChild(dom);\n };\n }\n throw new Error('Unable to load font type');\n};\n\nexport default loadFont;","import { useCallback } from 'react';\nimport loadFont from './loadFont';\n\nconst FontLoader = ({ path, name }) => {\n useCallback(() => {\n const loadPromise = loadFont(path, name);\n return () => {\n loadPromise.then((uninstall) => {\n uninstall && uninstall();\n });\n };\n }, [path, name]);\n return null;\n};\n\nexport default FontLoader;"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","_objectWithoutPropertiesLoose","_excluded","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","React","_extends","xlinkHref","pointerEvents","loadFont","async","path","name","document","head","querySelector","filteredParts","split","filter","part","length","getLastFolderName","dom","createElement","src","Promise","resolve","reject","addEventListener","e","append","removeChild","setAttribute","Error","FontLoader","_ref2","useCallback","loadPromise","then","uninstall"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/2818.7ecd7f1d.chunk.js","mappings":"ohBAGMA,EAAgBC,IAChB,mBAAmBC,KAAKD,EAAKE,cAC/BF,GAAQ,MAEHA,GAUHG,EAAWC,IAA+E,IAA9E,KAAEC,EAAI,SAAEC,GAAW,EAAK,UAAEC,EAAS,KAAEP,EAAI,MAAEQ,EAAK,OAAEC,EAAS,IAAcL,EAAPM,E,2IAAKC,CAAAP,EAAAQ,GACvF,MAAMC,EARcC,EAACC,EAAYN,EAAQH,IAC1B,UAAXG,GAAiC,KAAXA,GAChBH,EAAW,cAAgB,SAAWS,EAAWC,QAAQ,kBAAmB,IAE/EP,EAASM,EAIED,CAAcT,EAAMI,EAAQH,GAC5CW,EAAoBC,IAClBX,EACA,CACEY,UAAWb,EACX,kBAAmBA,GAErBO,GAEFO,EAAgBC,OAAOC,OAAO,CAAC,EAAGd,EAAOR,EAAO,CAAEuB,SAAUxB,EAAcC,IAAU,CAAC,GACvF,OAAOM,EACLkB,IAAAA,cAAA,MAAAC,EAAA,GAASf,EAAK,CAAEH,UAAWU,EAAmBT,MAAOY,IACnDI,IAAAA,cAAA,OAAKE,UAAW,IAAIb,IAAaL,MAAO,CAAEmB,cAAe,WAG3DH,IAAAA,cAAA,IAAAC,EAAA,GAAOf,EAAK,CAAEH,UAAWU,EAAmBT,MAAOY,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kne/react-icon/src/FontLoader.js"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\n\nconst calculateSize = size => {\n if (/^[1-9]+[0-9]*]*$/.test(size.toString())) {\n size += 'px';\n }\n return size;\n};\n\nconst calculateType = (prefixType, prefix, colorful) => {\n if (prefix === 'icon-' || prefix === '') {\n return (colorful ? 'icon-color-' : 'icon-') + prefixType.replace(/^icon-(color-)?/, '');\n }\n return prefix + prefixType;\n};\n\nconst Iconfont = ({ type, colorful = false, className, size, style, prefix = '', ...other }) => {\n const fontClass = calculateType(type, prefix, colorful),\n computedClassName = classnames(\n className,\n {\n iconfont: !colorful,\n 'iconfont--color': colorful\n },\n fontClass\n ),\n computedStyle = Object.assign({}, style, size ? { fontSize: calculateSize(size) } : {});\n return colorful ? (\n <svg {...other} className={computedClassName} style={computedStyle}>\n <use xlinkHref={`#${fontClass}`} style={{ pointerEvents: 'none' }} />\n </svg>\n ) : (\n <i {...other} className={computedClassName} style={computedStyle} />\n );\n};\n\nexport default Iconfont;\n","const getLastFolderName = (path) => {\n // 标准化路径,去除末尾的斜杠\n path = path.replace(/\\/+$/, '');\n\n // 按斜杠分割路径\n const parts = path.split('/');\n\n // 过滤掉空字符串\n const filteredParts = parts.filter(part => part !== '');\n\n // 获取最后一个部分\n return filteredParts[filteredParts.length - 1];\n};\n\nconst loadFont = async (path, name) => {\n if (document.head.querySelector(`script[href*=\"${name || getLastFolderName(path)}\"]`)) {\n return;\n }\n if (/.js$/.test(path)) {\n const dom = document.createElement('script');\n dom.src = path;\n await new Promise((resolve, reject) => {\n dom.addEventListener('load', () => {\n resolve();\n });\n dom.addEventListener('error', e => {\n reject(e);\n });\n document.head.append(dom);\n });\n return () => {\n document.head.removeChild(dom);\n };\n }\n if (/.css$/.test(path)) {\n const dom = document.createElement('link');\n dom.setAttribute('href', path);\n dom.setAttribute('rel', 'stylesheet');\n await new Promise((resolve, reject) => {\n dom.addEventListener('load', () => {\n resolve();\n });\n dom.addEventListener('error', e => {\n reject(e);\n });\n document.head.append(dom);\n });\n return () => {\n document.head.removeChild(dom);\n };\n }\n throw new Error('Unable to load font type');\n};\n\nexport default loadFont;","import { useEffect } from 'react';\nimport loadFont from './loadFont';\n\nconst FontLoader = ({ path, name }) => {\n useEffect(() => {\n const loadPromise = loadFont(path, name);\n return () => {\n loadPromise.then((uninstall) => {\n uninstall && uninstall();\n });\n };\n }, [path, name]);\n return null;\n};\n\nexport default FontLoader;"],"names":["calculateSize","size","test","toString","Iconfont","_ref","type","colorful","className","style","prefix","other","_objectWithoutPropertiesLoose","_excluded","fontClass","calculateType","prefixType","replace","computedClassName","classnames","iconfont","computedStyle","Object","assign","fontSize","React","_extends","xlinkHref","pointerEvents","loadFont","async","path","name","document","head","querySelector","filteredParts","split","filter","part","length","getLastFolderName","dom","createElement","src","Promise","resolve","reject","addEventListener","e","append","removeChild","setAttribute","Error","FontLoader","_ref2","useEffect","loadPromise","then","uninstall"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>X,TabsModal:()=>O,TabsModalButton:()=>L,default:()=>S,useConfirmModal:()=>N,useModal:()=>A,useTabsModal:()=>P});var s=n(73884),l=n(55199),a=n(83136),r=n.n(a);const o={modal:"style_modal__Pm3cF__psX7x",large:"style_large__iaqVE__psX7x","modal-body-inner":"style_modal-body-inner__4PhpA__psX7x","modal-title":"style_modal-title__dswaw__psX7x","modal-outer":"style_modal-outer__r3SkX__psX7x","modal-body":"style_modal-body__jQJSI__psX7x","right-options-modal":"style_right-options-modal__FajDP__psX7x","right-options-row":"style_right-options-row__-mPb9__psX7x","right-options-col":"style_right-options-col__3ilee__psX7x","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__psX7x",content:"style_content__k6MIF__psX7x","modal-footer":"style_modal-footer__-prbN__psX7x","modal-close":"style_modal-close__Oa5Kl__psX7x","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__psX7x","is-danger":"style_is-danger__H5110__psX7x",title:"style_title__orTym__psX7x","has-title":"style_has-title__qy0Wp__psX7x"},i=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(47458),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:s}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:s}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):s},x=(e,t)=>e-48-(t?58:0)+"px",f=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":x(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":x(300,t)}}:{width:"1000px",style:{"--min-modal-height":x(500,t)}},v=e=>{let{footer:t,footerButtons:n,onConfirm:a,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:a}]).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:l,autoClose:a=!0,display:r,...i}=e;const c=n||p.default;return(0,s.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const s=await Promise.resolve(l&&l(...t,d));return a&&!1!==s&&o&&o(),s}})}))})})]})},y=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:x}=e;const f=(0,s.useRef)(null);return(0,h.jsxs)("div",{className:o["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:o["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:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:a},"modal-body"),ref:f,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(v,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:x})}):null]})},j=e=>{let{withDecorator:t,footerButtons:n,title:s,closable:l,onClose:a,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const x=e=>(e=Object.assign({},{title:s},e),(0,h.jsx)(y,{title:u(e.title,{...e,childrenRef:m,close:a}),closable:l,onClose:a,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:a}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:a}),targetProps:Object.assign({},e,{childrenRef:m,close:a}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:a}),children:u(_,{...e,childrenRef:m,close:a})})}));return"function"===typeof t?t(x,{childrenRef:m,close:a}):x({})},C=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:l,footerButtons:a,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:x,disabledScroller:v,withDecorator:y,childrenRef:C,...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:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...f(u,!(null===l&&!a)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:j({withDecorator:y,title:p,closable:x,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:a,rightOptions:n,rightSpan:s,disabledScroller:v,children:t,childrenRef:C})})}},b=e=>{const t=(0,s.useRef)(null);return(0,h.jsx)(l.Modal,{...C(Object.assign({},e,{childrenRef:t}))})};b.defaultProps={size:"default"};const A=()=>{const{modal:e}=l.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},{children:l,...a}=C({onClose:()=>s.close(),childrenRef:t,...n}),{destroy:r}=e.info({...a,content:l});return s.close=r,s}},N=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:s,icon:a,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},x=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[s]){const{destroy:t}=e[s]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===s?_:s}`),type:a||x["confirm"===s?_:s]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===s?_:s}`),type:a||x["confirm"===s?_:s]}):null,p]})});n.close=t}return n}},S=b,w=e=>{let{items:t,className:n,activeKey:s,withDecorator:a,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:s,...l}=t;return Object.assign({},l,{children:"function"===typeof s?s((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:o,onChange:i});return"function"===typeof a?a(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},O=e=>(0,h.jsx)(S,{...w(e)}),P=()=>{const e=A();return t=>e(w(t))};var I=n(73025);const L=e=>{const t=P();return e.api?(0,h.jsx)(I.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},X=e=>{const t=A();if(!e.api){const{modalProps:n,...s}=e;return(0,h.jsx)(l.Button,{...s,onClick:()=>{t(n)}})}return(0,h.jsx)(I.A,{...e,modalFunc:t})}},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>A,Ay:()=>W});var s=n(55199),l=n(83136),a=n.n(l),r=n(30509),o=n(25438),i=n(78784),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__psX7x",h="create-list_is-popup__t3d-G__psX7x",_="create-list_is-not-full__FXtX1__psX7x",g="create-list_search-input__tV3vf__psX7x",x="create-list_left__EXr3i__psX7x",f="create-list_list-header__3xeJa__psX7x",v="create-list_is-modal__BMfya__psX7x";var y=n(73161),j=n(47458),C=n(70579);const b=r.A.useContext,A=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:A,mapping:N}=b(),S=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},A.pagination),w=d()(r.requestParams,[S.paramsType,S.current],1),O=d()(r.requestParams,[S.paramsType,S.pageSizeName])||S.pageSize,{formatMessage:P}=(0,j.useIntl)({moduleName:"Common"}),I=A.dataFormat(r.data),{right:L,leftBottom:X,leftSpan:k=24}=A,F=1===n.length&&"all"===n[0];return(0,C.jsxs)(s.Row,{wrap:!1,className:L?a()("is-not-full",_):"",children:[(0,C.jsxs)(s.Col,{span:k,className:a()(x,"advance-select-left"),children:[A.getSearchProps?(0,C.jsx)(y.A,{isPopup:A.isPopup,className:a()(g,o.A["search-input"],{[o.A["is-popup"]]:A.isPopup}),placeholder:A.searchPlaceholder||P({id:"search"}),value:c,onSearch:e=>{r.reload(A.getSearchProps(e)),u(e)}}):null,A.single||!A.showSelectedCount&&!A.allowSelectAll?null:(0,C.jsxs)(s.Flex,{className:a()(f,{[v]:!A.isPopup}),justify:"space-between",children:[A.showSelectedCount?(0,C.jsxs)(s.Space,{children:[(0,C.jsx)(s.Typography,{children:"\u5df2\u9009:"}),(0,C.jsx)(s.Typography.Link,{children:F?A.allLabel||(0,C.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${A.countUnit||P({id:"items"})}`})]}):(0,C.jsx)("div",{}),A.allowSelectAll?(0,C.jsx)("div",{children:(0,C.jsx)(s.Checkbox,{checked:F,onChange:e=>{l(e.target.checked?[A.allValue||"all"]:[])},children:(0,C.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:A.allLabel||(0,C.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,C.jsx)("div",{})]}),(0,C.jsx)(i.default,{completeTips:"",isLoading:!r.isComplete,className:a()(m,{[h]:A.isPopup}),noMore:!I.total||w*O>=I.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[S.paramsType]:{[S.pageSizeName]:O,[S.current]:w+1}},A.getSearchProps&&A.getSearchProps(c)),A.mergeList)},children:(()=>{const e={props:A,value:n,setValue:l,list:I.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:F,onSelect:e=>{if(A.single)return void l([e.value]);const t=n.slice(0),s=t.indexOf(e.value);s>-1?t.splice(s,1):t.push(e.value),l(t)}},s=t(e);return"function"===typeof A.dropdownRender?A.dropdownRender(Object.assign({},e,{children:s})):s})()}),X&&X({fetchApi:r,value:n,mapping:N})]}),L&&L({value:n,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,C.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,C.jsx)(l,{value:t,setValue:n})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),c},N="list_list__TGynD__psX7x",S="list_list-item__WSswf__psX7x",w="list_is-selected__6Wkgt__psX7x",O="list_item-label__bYzhe__psX7x",P="list_item-des__2nsEn__psX7x",I="list_is-disabled__qxCvO__psX7x",L="list_is-selected-all__Mp-hG__psX7x";var X=n(40438),k=n(64671);const F="user_list-inner__V508e__psX7x",M="user_list-info__y2nWo__psX7x",T="user_selected-icon__9OQJL__psX7x",R="user_item-des__o+7UR__psX7x",D="user_is-selected-all__2q0VZ__psX7x",E=A({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,C.jsx)(s.List,{size:"small",className:a()(N,{[L]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,C.jsx)(s.List.Item,{className:a()(S,{[w]:t}),onClick:()=>n(e),children:(0,C.jsxs)(s.Row,{wrap:!1,align:"middle",className:F,children:[(0,C.jsx)(s.Col,{children:(0,C.jsx)(X.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,C.jsx)(s.Col,{className:M,flex:1,children:(0,C.jsxs)(s.Space,{direction:"vertical",children:[(0,C.jsx)("span",{className:O,children:e.label}),e.description&&(0,C.jsx)("span",{className:R,children:e.description})]})}),(0,C.jsx)(s.Col,{children:r||t?(0,C.jsx)(k.default,{className:T,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__psX7x"},V=A({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,C.jsx)(s.Table,{className:a()(z.list,N,{[L]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>a()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=A({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,C.jsx)(s.List,{className:a()(N,i,{[L]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,C.jsxs)(s.List.Item,{className:a()(S,{[w]:t.single&&i,[I]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,C.jsxs)(s.Row,{wrap:!1,children:[t.single?null:(0,C.jsx)(s.Col,{children:(0,C.jsx)(s.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,C.jsx)(s.Col,{children:(0,C.jsxs)(s.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,C.jsx)("span",{className:O,children:e.label}),e.description&&(0,C.jsx)("span",{className:P,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(8762),l=n.n(s);n(46733);const a=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>u,Ay:()=>i,FI:()=>d,Zi:()=>c,lN:()=>s.useFileUpload});var s=n(12212),l=n(55199),a=n(83136),r=n.n(a),o=n(70579);const i=e=>t=>{let{className:n,multiple:l,accept:a,onChange:r,children:i,...c}=t;return(0,o.jsx)(s.FileInput,{className:n,multiple:l,accept:a,onChange:r,children:t=>{let{children:n,...s}=t;return(0,o.jsxs)(e,{...Object.assign({},c,s),children:[i,n]})}})},c=e=>{let{children:t,...n}=e;return(0,o.jsx)(s.FileInput,{...n,buttonText:t})},d=e=>{let{className:t,multiple:n,accept:a,onChange:r,children:i,...c}=e;return(0,o.jsx)(s.FileInput,{className:t,multiple:n,accept:a,onChange:r,children:e=>{let{children:t,...n}=e;return(0,o.jsxs)(l.Typography.Link,{...Object.assign({},c,n),children:[i,t]})}})},u=e=>{let{className:t,multiple:n,accept:a,onChange:i,children:c,...d}=e;return(0,o.jsx)(s.FileInput,{className:r()(t,"ant-btn"),multiple:n,accept:a,onChange:i,children:e=>{let{children:t,...n}=e;return(0,o.jsxs)(l.Typography.Text,{...Object.assign({},d,n),children:[c,t]})}})}},18411:(e,t,n)=>{n.d(t,{A:()=>s});n(73884);const s=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>s});const s=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},21485:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(73884),l=n(44418),a=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,s.forwardRef)(((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,s.useRef)(null),p=(0,s.useRef)(null),m=(0,s.useRef)(r),h=o()(c),_=o()(l);return(0,s.useImperativeHandle)(t,(()=>p.current)),(0,s.useEffect)((()=>{const e=new(a())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}}),[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})}))},25438:(e,t,n)=>{n.d(t,{A:()=>s});const s={"search-input":"common_search-input__P6qLg__psX7x","is-popup":"common_is-popup__fJq+g__psX7x",list:"common_list__TKFzS__psX7x","list-item":"common_list-item__ASse7__psX7x","is-selected":"common_is-selected__-PU4Y__psX7x","item-label":"common_item-label__u+qz1__psX7x","item-des":"common_item-des__no2z0__psX7x"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(83694),l=n(33097),a=n.n(l);const r=()=>{const e=(0,s.useGlobalContext)();return a()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>W});const s={"ant-tag":"style_ant-tag__nNp8-__psX7x",overlay:"style_overlay__La5mO__psX7x",input:"style_input__SpJTE__psX7x","is-disabled":"style_is-disabled__joxdl__psX7x","input-icon":"style_input-icon__vVd8R__psX7x",large:"style_large__En6mL__psX7x",small:"style_small__DY0AQ__psX7x","input-inner":"style_input-inner__PWy27__psX7x","input-custom":"style_input-custom__ktsWD__psX7x","display-content":"style_display-content__hIKo+__psX7x","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__psX7x","selected-tag":"style_selected-tag__zXZZO__psX7x","selected-tag-list":"style_selected-tag-list__xUIms__psX7x","selected-tag-inner":"style_selected-tag-inner__Z5gPL__psX7x","text-inner":"style_text-inner__H24hY__psX7x",placeholder:"style_placeholder__x0ccE__psX7x","is-modal":"style_is-modal__JU+uq__psX7x","overlay-content":"style_overlay-content__WKqp+__psX7x"};var l=n(74981);const{context:a,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),x=n.n(g),f=n(3382),v=n(64671),y=n(79686),j=n.n(y),C=n(41740),b=n.n(C),A=n(74065),N=n.n(A),S=n(21485),w=n(96418),O=n.n(w),P=n(77964),I=n(91176),L=n(47458),X=n(20492),k=n(27047),F=n(70579);const M=e=>{let{maxLength:t,single:n,setValue:s,value:l,message:a}=e;return e=>s(!n&&Number.isInteger(t)&&t>0&&e.length>t?(a(),l):e)},T=e=>{let{single:t,value:n,mapping:l,allValue:a,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,F.jsx)("span",{className:s["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(a||"all")?(0,F.jsx)("span",{className:s["text-inner"],children:r||(0,F.jsx)(L.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,F.jsx)(_.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,F.jsx)("span",{className:s["tag-inner"],children:h()(t,"label")||e})},e)})):null},R=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:a,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,L.useIntl)({moduleName:"Common"});m.current=n;const[g,x]=(0,c.useState)(!1),v=e=>{var t;x(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:y}=_.App.useApp(),j=M({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>y.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}}))),(0,F.jsx)(f.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{v(!1)},footer:(0,F.jsxs)(_.Space,{direction:"vertical",className:s["overlay-footer"],children:[a&&(0,F.jsx)("div",{className:s["overlay-footer-extra"],children:a}),r&&o({value:u,setValue:j})]}),children:"function"===typeof i?i({value:u,setValue:j}):i})})),D=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:a,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:f,...v}=e;const[y,j]=(0,c.useState)(!1),C=O()((e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{C(!1)}})),[C]),f?(0,F.jsx)("div",{className:s["input-inner"],children:d}):(0,F.jsx)(_.Popover,{...v,open:y,onOpenChange:C,transitionName:"ant-slide-up",overlayClassName:x()(s.overlay,g),arrow:!1,content:(0,F.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:x()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof a?a({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&C(!1)}}):a}),(o||p)&&(0,F.jsxs)("div",{className:s["overlay-footer"],children:[p&&(0,F.jsx)("div",{className:s["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,F.jsx)("div",{className:s["input-inner"],children:d})})})),E=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...a}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:f}=p,[y,j]=m,{formatMessage:C}=(0,L.useIntl)({moduleName:"Common"}),{single:b,placement:A,getPopupContainer:N,placeholder:w,isPopup:P,disabled:X,showSelectedTag:k,extra:M,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(a);W.current=a;const U=O()(l);(0,c.useEffect)((()=>{U(P?u:d)}),[P,U]),(0,c.useEffect)((()=>{t(Object.assign({},W.current,{data:a.data,isComplete:a.isComplete}))}),[a.data,t,a.isComplete]);const K=T({single:b,value:y,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{j((t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n}))}}),B=e=>{let{value:t,setValue:n}=e;return(0,F.jsxs)(_.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(L.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,F.jsx)(S.A,{className:s["selected-tag-list"],children:(0,F.jsx)("div",{className:s["selected-tag-inner"],children:T({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n((t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n}))}})})})]})},q=E?E(p):(0,F.jsxs)(_.Space,{className:s["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,F.jsx)("div",{children:K||(0,F.jsx)("span",{className:s.placeholder,children:w||C({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!X&&z?(0,F.jsx)(v.default,{className:x()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),j([])}}):(0,F.jsx)(v.default,{className:x()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return P?(0,F.jsx)(D,{ref:u,overlayWidth:(0,I.v)(Math.max(f,(0,I.j)(g.overlayWidth))),value:y,setValue:j,single:b,disabled:X,inputContent:q,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>u.current.close(),context:p}):M,renderSelectedContent:B,showSelectedTag:k,trigger:"click",placement:A,getPopupContainer:N,children:g.children}):(0,F.jsxs)("div",{className:s["input-inner"],onClick:()=>{X||d.current.modalOpen()},children:[(0,F.jsx)(R,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:x()(s.overlay,s["is-modal"],n),title:g.placeholder||C({id:"pleaseSelect"}),value:y,onChange:j,extra:"function"===typeof M?M({close:()=>d.current.close(),context:p}):M,showSelectedTag:k,renderSelectedContent:B,children:g.children}),q]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:a,...r}=e;const{locale:i}=(0,k.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:f}=(0,L.useIntl)({moduleName:"Common"}),[v,y]=(0,c.useState)(0),C=(0,P.A)((e=>{y(e.clientWidth)})),[A,S]=(0,c.useState)({}),{message:w}=_.App.useApp(),O=e=>{const t=e.filter((e=>m.get(e.value)!==e));0!==t.length&&g((e=>{const n=b()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},I=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(r.single?j()(e)?[]:[e]:e||[],O,r.valueType),[X,T]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,m,r.valueType);r.onChange&&r.onChange(r.single?N()(t):t)}},"value"in r?{value:I(r.value)}:{defaultValue:I(r.defaultValue)})),R=M({maxLength:r.maxLength,single:r.single,setValue:T,value:X,message:()=>w.error(f({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,F.jsx)(o,{value:{inputWidth:v,mapping:m,searchText:d,setSearchText:p,appendMapping:O,setItems:e=>{A.setData(e),O(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:A,valueState:[X,R],props:r},children:(0,F.jsx)("div",{ref:C,className:x()(s["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,F.jsx)(E,{...t,wrapClassName:a,loading:null,setFetchApi:S,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{O(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,L.createWithIntl)({importMessages:X.A,moduleName:"Common"})(z);V.useContext=r;const W=V},35063:(e,t,n)=>{n.d(t,{$9:()=>m,Ay:()=>u,e0:()=>p});var s=n(73884),l=n(69319),a=n.n(l),r=n(3382),o=n(40438),i=n(55199),c=(n(96316),n(70579));const d=(0,s.forwardRef)(((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,c.jsxs)(i.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==n.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:n,onOpenChange:s,value:a,onComplete:o}=e,{placeholder:i,children:d,showSelectedTag:u,onConfirm:p}=t;return(0,c.jsx)(r.default,{title:i,open:n,onClose:()=>{s(!1)},footer:u&&(0,c.jsx)(l.SelectedTagList,{}),onConfirm:()=>{if(o(),"function"===typeof p)return p(a)},children:d(e)})}},e);return(0,c.jsx)(a(),{...n,ref:t})})),u=d,p=(0,s.forwardRef)(((e,t)=>{const n=Object.assign({},{renderModal:e=>{const{props:t,open:n,value:s,onOpenChange:l,onComplete:a}=e,{placeholder:o,children:i,onConfirm:d}=t;return(0,c.jsx)(r.default,{title:o,open:n,onClose:()=>{l(!1)},onConfirm:()=>{if(a(),"function"===typeof d)return d(s)},children:i(e)})}},e);return(0,c.jsx)(l.SelectTableList,{...n,ref:t})})),m=(0,s.forwardRef)(((e,t)=>(0,c.jsx)(d,{...e,ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:s}=n;return(0,c.jsxs)(i.Flex,{gap:8,children:[(0,c.jsx)(o.default.Avatar,{...Object.assign({},t.avatar),size:40,gender:"M"}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"select-list-item-label",children:t[s]}),t.description&&(0,c.jsx)("div",{className:"select-list-item-description",children:t.description})]})]})}})))},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var s=n(87558),l=n.n(s),a=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise(((e,t)=>{const s=new window.Image;s.src=n,s.addEventListener("load",(()=>{e(n)})),s.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__psX7x",m="style_img__PSExq__psX7x",h="style_loading__WCOwA__psX7x",_="style_error__+ECgZ__psX7x";var g=n(18411),x=n(63908),f=n(70579);const v=e=>{let{data:t,className:n,alt:s,innerLoading:a,loading:r,error:o,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,x.usePreset)(),g=h||_||"";return(0,f.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||o,loading:a||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:s,className:i()(n,m),src:t}):(0,f.jsx)("img",{alt:s,className:i()(n,m),src:t,onClick:p})}})},y=(0,a.A)(v),j=e=>{let{loading:t,error:n,src:s,id:l,alt:a,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return s?(0,f.jsx)(v,{alt:a,className:r,data:s,loading:u,error:p,onClick:c,children:o}):l?(0,f.jsx)(y,{alt:a,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},C=e=>{let{id:t,src:n,alt:s,onClick:l,loading:a,error:r,className:o,apis:c,...d}=e;return(0,f.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(o,p),children:j({loading:a,error:r,src:n,id:t,alt:s,className:o,apis:c,onClick:l})})};C.Avatar=e=>{let{id:t,src:n,alt:s,gender:l,loading:a,error:o,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:x,height:v,defaultAvatar:y,apis:C,...b}=e;const A=(()=>{const e=x&&v?{style:{width:x,height:v}}:{size:g};if(x&&x!==v&&(_="square"),t||n)return j({loading:a,error:o,src:n,defaultAvatar:y,id:t,alt:s,className:d,apis:C,children:t=>(0,f.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,f.jsx)(c.Avatar,{...b,src:(0,f.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,f.jsx)(c.Avatar,{...b,gap:u,icon:m,shape:_,size:g,src:y,...e,children:h})})();return(0,f.jsx)("div",{...b,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:x&&v?x:g,height:x&&v?v:g},children:A})};const b={error:(0,f.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,f.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};C.defaultProps=Object.assign({},b),C.Avatar.defaultProps=Object.assign({},b,{size:100,defaultAvatar:g.A});const A=C},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var s=n(45776),l=n(27047),a=n(33097),r=n.n(a),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then((e=>e.__esModule?e.default:e)),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},43856:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>x.K,FunctionSelectField:()=>x.A,IndustryEnum:()=>f.W,IndustrySelectField:()=>f.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>v.A,UserField:()=>h.Eo,accept:()=>j.A,changeMoneyToChinese:()=>s.A,createAddressApi:()=>m.LH,createDeferred:()=>b(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>a,getScrollEl:()=>l.h,isNotEmpty:()=>A.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>y.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var s=n(69484),l=n(76801);const a=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find((e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1))?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(78784),i=n(73025),c=n(17342),d=n(73161),u=n(30509),p=n(17508),m=n(93761),h=n(12392),_=n(35063),g=n(45776),x=n(41654),f=n(53392),v=n(89319),y=n(77964),j=n(81348),C=n(1582),b=n.n(C),A=n(55490),N=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>L,ON:()=>h,Ay:()=>T});var s=n(30509),l=n(73884),a=n(96418),r=n.n(a),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter((e=>null===e.parentId)),s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],s=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach((e=>{s(e.id)})))};return s(t),n},a=(t,n)=>{const s=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:s(l.parentId):null};return s(t)},r=t=>{const s=e.get(t);if(!s)return[];const l=s.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map((n=>{const s=t.filter((e=>e.parentId===n.id));return Object.assign({},n,{children:e(s)})})):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const s=e=>{if(e.children&&e.children.length>0)return s(e.children.find((t=>t.children&&e.children.length>0))||u()(e.children,"0"));const t=l(e.parentId).find((e=>e.children&&e.children.length>0));return t?s(t):e},a=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],s=e.get(t);return!s||m()(s.parentId)?n:a(s.parentId,n)},r=s(n);return a(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(a(t,(e=>n.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const s=(t=>{const s=t=>{const l=e.get(t);return l?(a=l,n.indexOf(a.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find((e=>!!s(e.id))):void 0):null;var a};return!!s(t)})(t);return s?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:a,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),a=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach((e=>{s(n,e.id)}));const i=r(t),c=i.every((e=>n.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{s(n,e.id)})),a(o.parentId))};return a(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const a=e.get(t);if(!a)return;if(n.indexOf(a.id)>-1)return void s(n,a.id);const o=r(t);a.parentId&&(o.forEach((e=>{t!==e.id&&n.push(e.id)})),l(a.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),x=n(19853),f=n.n(x),v=n(17342),y=n(83136),j=n.n(y);const C={content:"style_content__Hxlt9__psX7x",columns:"style_columns__FmtPF__psX7x","content-item":"style_content-item__i6HCO__psX7x","last-level-area":"style_last-level-area__2y7jQ__psX7x","is-popup":"style_is-popup__+r3Mn__psX7x",menu:"style_menu__WZUVE__psX7x","scroll-plus-box":"style_scroll-plus-box__QcTst__psX7x","menu-label":"style_menu-label__iGt0Z__psX7x","menu-item":"style_menu-item__hXHfm__psX7x","checkbox-hidden":"style_checkbox-hidden__Xpx7J__psX7x",loading:"style_loading__ZwrVe__psX7x"};var b=n(87558),A=n(47458),N=n(25438),S=n(70579),w=n(27047);const O=new Map,P=(0,b.withFetch)((e=>{let{data:t,name:n,type:s,cache:a,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])))),[t,o]).get(n);return O.set(`${n}_${s}`,c),r(c,i)})),I=e=>{const{locale:t}=(0,w.A)(),n=`${t}_${e.name}_${e.type}`,s=O.get(n);return s&&!e.force?e.children(s):(0,S.jsx)(P,{...e})};I.defaultProps={children:e=>u()(e,"label","")};const L=I,X=s.A.useContext,k=(0,b.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:s}=e;return(0,S.jsx)(v.A,{className:C["scroll-plus-box"],children:(0,S.jsx)(o.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,S.jsx)(o.List.Item,{className:j()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>s(e,t),children:(0,S.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})})),F=e=>{let{value:t,setValue:n,size:s,selectLevel:a}=e;const{fetchApi:d,props:p}=X(),[m,_]=(0,l.useState)(""),x=r()(p.dataFormat),{formatMessage:y}=(0,A.useIntl)({moduleName:"Common"}),b=d.data,w=(0,l.useMemo)((()=>new Map(x(b).list.map((e=>[e.value,e])))),[b,x]),O=(0,l.useMemo)((()=>h(w)),[w]),P=(0,l.useRef)({});P.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:O};const[I,L]=(0,l.useState)((()=>{const e=t.find((e=>!!w.get(e)));return O.getSelectedQueue(e||u()(d.data.find((e=>e.children&&e.children.length>0)),"id")||u()(d.data,"[0].id"),w)}));(0,l.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:s,treeUtils:l}=P.current;if(!e)return;const a=w.get(g()(I));if(!a)return;const r=l.getSelectedQueue(a.id);f()(I,r)?a.hasOwnProperty("children")||t({data:{[n]:a.id}},s(a.id)):L(r)}),[I,w]);const F=(e,l)=>{const a=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?O.setNodeChecked(l,t):O.setNodeUnchecked(l,t)})();a.length>s?o.message.error(y({id:"maxSelectedCount"},{count:s})):n(p.single&&a.length>0?[g()(a)]:a)},M=e=>{const t=w.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,R=T&&m&&(0,S.jsx)(k,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:w})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{F(!t,e.id),!t&&L(O.getSelectedQueue(e.id,w)),_("")}});return(0,S.jsxs)("div",{className:j()(C.content,{[C["is-popup"]]:p.isPopup,[C["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,S.jsx)(c.A,{isPopup:p.isPopup,className:j()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||y({id:"search"}),value:m,onSearch:e=>{_(e)}}),R||(0,S.jsx)("div",{children:(0,S.jsx)(v.A,{className:C.scroller,options:{autoHide:!1},children:(0,S.jsxs)("div",{className:C.columns,children:[I.map(((e,n)=>{const s=w.get(e),r=O.getSiblingNode(e),c=!M(null===s||void 0===s?void 0:s.id)&&n>0;return(0,S.jsx)(v.A,{className:j()(C["content-item"],{[C["last-level-area"]]:c}),children:c?(0,S.jsx)(o.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(o.Checkbox,{...O.computedCheckboxStatus(e.id,t),disabled:a>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>F(t.target.checked,e.id)},e.label)))}):(0,S.jsx)(o.Menu,{className:j()(C.menu),onSelect:e=>{const n=w.get(e.key);if(n)if(M(n.id))L(O.getSelectedQueue(n.id,w));else{const{checked:e}=O.computedCheckboxStatus(n.id,t);F(!e,n.id)}},selectedKeys:n===I.length-1?[]:I,items:r.map((e=>({key:e.id,label:(0,S.jsxs)(o.Space,{className:j()(C["menu-item"],{[C["checkbox-hidden"]]:p.onlyAllowLastLevel&&M(e.id)}),children:[!p.onlyAllowLastLevel&&(0,S.jsx)(o.Checkbox,{...O.computedCheckboxStatus(e.id,t),disabled:a>1&&t.indexOf(e.parentCode)>-1,onChange:t=>F(t.target.checked,e.id)}),(0,S.jsx)("div",{className:C["menu-label"],children:e.label}),M(e.id)&&(0,S.jsx)(i.default,{className:C["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,S.jsx)("div",{className:C.loading,children:(0,S.jsx)(o.Spin,{size:"small"})})]})})})]})},M=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...a}=e;return(0,S.jsx)(s.A,{...a,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:s}=e;return(0,S.jsx)(F,{...a,size:t,value:n,setValue:s})}})};M.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const n=(e,s)=>{const l=[];return l.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:s}))))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const s=t=>t.map((t=>t.id===e?Object.assign({},t,{children:n&&n.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:s(t.children)}):t));return s(t)}};const T=M},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var s=n(45776),l=n(27047),a=n(33097),r=n.n(a),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then((e=>e.__esModule?e.default:e))},d=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},55490:(e,t,n)=>{n.d(t,{A:()=>s.isNotEmpty});var s=n(39129)},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>s});const s=1e15,l=e=>{let t,n,l,a=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=s)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=a[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let s=0;s<n;s++){let l=t.substr(s,1),i=n-s-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=a[0]),e=0,c+=a[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=a[Number(e)]+i[t])}}return""===c?c+=a[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(55199),l=n(83136),a=n.n(l);const r="style_search-input__8aH1G__psX7x",o="style_is-popup__L0973__psX7x";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,x]=(0,c.useState)(t),f=(0,c.useRef)(t),v=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==f.current&&(x(t),f.current=t)}),[t]),(0,u.jsx)(s.Input.Search,{..._,allowClear:!0,className:a()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;f.current=t,x(t),v(t)},onSearch:e=>{v(e)}})};p.defaultProps={debounce:500};const m=p},74981:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,s.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,s.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(73884),l=n(79889),a=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,s.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,s.useRef)(null),r=c()(e);return(0,s.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const s=new ResizeObserver((n.current.isDebounce?o():a())(t,n.current.time));return e&&s.observe(e),()=>{s.disconnect()}}),[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var s=n(95183),l=n.n(s);n.o(s,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return s.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>s.computedAccept});var s=n(12212)},89319:(e,t,n)=>{n.d(t,{A:()=>u});var s=n(55199),l=n(10986),a=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(47458),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})((e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=a()(t);return(0,d.jsxs)(s.Space.Compact,{children:[(0,d.jsx)(s.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(l).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(0,d.jsx)(s.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map((e=>e&&o()(e))),onChange:e=>{i((t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]}))))}})]})}))},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>s});const s=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,n)=>{n.d(t,{qn:()=>R,TM:()=>Z,LH:()=>X,Ay:()=>E,NY:()=>k,DF:()=>D});var s=n(30509),l=n(25438),a=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),x=n.n(g);const f="style_address__DIuRX__psX7x",v="style_is-popup__tqVvp__psX7x",y="style_title__FAe12__psX7x",j="style_scroll-box__JWiDl__psX7x",C="style_scroll-plus-box__lidEW__psX7x",b="style_content__lAARZ__psX7x",A="style_col-left__WPfeS__psX7x",N="style_col-right__z0e9-__psX7x";var S=n(87558),w=n.n(S);const O=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var P=n(47458),I=n(70579);const L=s.A.useContext,X=e=>{let{city:t,province:n,country:s}=e;const l=_()((()=>{const e=[];return["gangaotai","municipality"].forEach((n=>{e.push(...t.relations[n])})),["provinces","continents"].forEach((n=>{t.relations[n].forEach((n=>{e.push(n),e.push(...t.relations[n])}))})),e.map((e=>t.list[e]))}));return{getCity:_()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:_()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:_()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:_()((()=>["1",...s.relations.continents].map((e=>Object.assign({id:e},s.list[e]))))),getList:_()(((e,l)=>{const{showChinaQuan:a,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(a?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&a&&(o.name="\u5168"+o.name,i.splice(0,0,o)),s.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:_()((e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter((e=>n.list[e])).map((e=>n.list[e]))})),getCityByName:_()((e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(n=t.find(e),n))),n})),combineCities:_()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:_()((e=>{if(!e)return[];return l().filter((t=>["pinyin","name","enName","spelling"].some((n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}}))}))}},k=(e,t)=>"en-US"===t?x()(e,"enName"):x()(e,"name"),F={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then((e=>e.__esModule?e.default:e))},M=e=>{let{value:t,setValue:n}=e;const{fetchApi:s,props:o}=L(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,P.useIntl)({moduleName:"AddressSelect"}),{locale:x}=(0,r.A)(),{getCity:S,getChinaCities:w,getCountries:O,getList:F,searchCities:M}=(0,d.useMemo)((()=>X(s.data)),[s.data]),T=e=>{if(o.single)return void n([e]);const s=t.slice(0),l=s.indexOf(e);l>-1?s.splice(l,1):s.push(e),n(s)},R=p&&(0,I.jsx)(u.A,{className:C,children:(0,I.jsx)(a.List,{className:l.A.list,size:"small",dataSource:M(p),rowKey:"value",renderItem:e=>(0,I.jsx)(a.List.Item,{className:l.A["list-item"],onClick:()=>{T(e.value),m("")},children:(0,I.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,I.jsxs)("div",{className:i()(f,{[v]:o.isPopup}),children:[(0,I.jsx)(a.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,I.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,I.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,I.jsx)("div",{className:b,children:R||(0,I.jsxs)(a.Row,{wrap:!1,children:[(0,I.jsx)(a.Col,{className:A,children:(0,I.jsx)(a.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,I.jsx)(P.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,I.jsx)(u.A,{className:j,children:(0,I.jsx)(a.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:k(e,x),key:e.id})))})})},{key:"1",label:(0,I.jsx)(P.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,I.jsx)(u.A,{className:j,children:(0,I.jsx)(a.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:O().map((e=>({label:k(e,x),key:e.id})))})})}]})}),(0,I.jsxs)(a.Col,{flex:1,className:N,children:[(0,I.jsx)(a.Divider,{className:y,orientation:"left",children:k(S(h).city,x)}),(0,I.jsx)(u.A,{className:j,children:(0,I.jsx)(a.Space,{wrap:!0,children:F(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map((e=>(0,I.jsx)(a.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{T(e.code)},children:k(e,x)},e.code)))})})]})]})})]})},T=e=>(0,I.jsx)(s.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,I.jsx)(P.IntlProvider,{moduleName:"AddressSelect",importMessages:O,children:(0,I.jsx)(M,{value:t,setValue:n})})}});T.defaultProps={overlayWidth:"500px",isPopup:!0,api:F,dataFormat:(e,t)=>{let{city:n}=e;const{locale:s}=Object.assign({},t);return{list:Object.values(n.list).map((e=>Object.assign({},e,{value:e.code,label:k(e,s)})))}}};const R=(0,S.withFetch)((e=>{let{name:t,data:n,getAddressApi:s,children:l,...a}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)((()=>X(n)),[n]);return s?l(i):(0,I.jsx)(w(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(i.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},a,{locale:o}))}})}));R.defaultProps={...F,displayParent:!1,children:(e,t)=>{let{city:n,parent:s}=e,{displayParent:l,locale:a}=t;return l&&s?`${k(s,a)}\xb7${k(n,a)}`:k(n,a)}};const D=e=>{const t=(0,S.withFetch)((t=>{let{data:n,...s}=t;const l=(0,d.useMemo)((()=>X(n)),[n]);return(0,I.jsx)(e,{...s,addressApi:l})}));return t.defaultProps={...F},t};T.AddressEnum=T.Enum=R,T.createAddressApi=X,T.withAddressApi=D,T.getLabelForLocal=k;const E=T;var z=n(10986),V=n.n(z),W=n(78491),U=n.n(W),K=n(20492),B=n(22616),q=n.n(B),$=n(1488),Q=n.n($);const H=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,P.useIntl)({moduleName:"Common"}),m=U()((e=>{r&&r(e)}));return(0,I.jsx)("div",{ref:m,children:(0,I.jsxs)(a.Row,{gutter:10,children:[(0,I.jsx)(a.Col,{span:12,children:(0,I.jsx)(E,{...q()(i,u),className:o,disabled:s,single:!0,size:n,value:x()(c,"city"),onChange:e=>{d({city:e,detail:x()(c,"detail")})}})}),(0,I.jsx)(a.Col,{span:12,children:(0,I.jsx)(a.Input,{...Q()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:s,size:n,value:x()(c,"detail"),onChange:e=>{d({city:x()(c,"city"),detail:e.target.value})}})})]})})};H.defaultProps={};const Z=(0,P.createWithIntl)({importMessages:K.A,moduleName:"Common"})(H)},97211:(e,t,n)=>{n.d(t,{A:()=>s.withOSSFile});var s=n(12212)}}]);
2
+ //# sourceMappingURL=3856.c3cb9417.chunk.js.map