@kne-components/components-core 0.4.36 → 0.4.38

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 (133) hide show
  1. package/build/asset-manifest.json +88 -88
  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/{1996.627378ca.chunk.css → 1996.e687e314.chunk.css} +2 -2
  6. package/build/static/css/{1996.627378ca.chunk.css.map → 1996.e687e314.chunk.css.map} +1 -1
  7. package/build/static/css/2004.3db51dcf.chunk.css +2 -0
  8. package/build/static/css/{2004.76d11e23.chunk.css.map → 2004.3db51dcf.chunk.css.map} +1 -1
  9. package/build/static/css/206.81472fe2.chunk.css +2 -0
  10. package/build/static/css/206.81472fe2.chunk.css.map +1 -0
  11. package/build/static/css/254.7734d131.chunk.css +2 -0
  12. package/build/static/css/254.7734d131.chunk.css.map +1 -0
  13. package/build/static/css/2628.dcd11609.chunk.css +2 -0
  14. package/build/static/css/2628.dcd11609.chunk.css.map +1 -0
  15. package/build/static/css/3404.5a991789.chunk.css +2 -0
  16. package/build/static/css/{3404.5ca515aa.chunk.css.map → 3404.5a991789.chunk.css.map} +1 -1
  17. package/build/static/css/3771.d219f766.chunk.css +2 -0
  18. package/build/static/css/3771.d219f766.chunk.css.map +1 -0
  19. package/build/static/css/{3790.d7a30fbf.chunk.css → 3790.78a6834b.chunk.css} +2 -2
  20. package/build/static/css/{3790.d7a30fbf.chunk.css.map → 3790.78a6834b.chunk.css.map} +1 -1
  21. package/build/static/css/4741.a320fc92.chunk.css +2 -0
  22. package/build/static/css/4741.a320fc92.chunk.css.map +1 -0
  23. package/build/static/css/4834.17fc7ab1.chunk.css +2 -0
  24. package/build/static/css/4834.17fc7ab1.chunk.css.map +1 -0
  25. package/build/static/css/5195.355fb0e7.chunk.css +2 -0
  26. package/build/static/css/5195.355fb0e7.chunk.css.map +1 -0
  27. package/build/static/css/{6763.b075f749.chunk.css → 6763.759e950d.chunk.css} +2 -2
  28. package/build/static/css/{6763.b075f749.chunk.css.map → 6763.759e950d.chunk.css.map} +1 -1
  29. package/build/static/css/7227.9b91b316.chunk.css +2 -0
  30. package/build/static/css/{7227.5a618faf.chunk.css.map → 7227.9b91b316.chunk.css.map} +1 -1
  31. package/build/static/css/7371.3a1e5b71.chunk.css +2 -0
  32. package/build/static/css/{7371.7360f52a.chunk.css.map → 7371.3a1e5b71.chunk.css.map} +1 -1
  33. package/build/static/css/7548.a318f655.chunk.css +12 -0
  34. package/build/static/css/{7548.765e496c.chunk.css.map → 7548.a318f655.chunk.css.map} +1 -1
  35. package/build/static/css/{760.702493ae.chunk.css → 760.5c521048.chunk.css} +2 -2
  36. package/build/static/css/{760.702493ae.chunk.css.map → 760.5c521048.chunk.css.map} +1 -1
  37. package/build/static/css/833.de3cd5ec.chunk.css +2 -0
  38. package/build/static/css/833.de3cd5ec.chunk.css.map +1 -0
  39. package/build/static/css/{8593.dee83774.chunk.css → 8593.61dbbd0e.chunk.css} +2 -2
  40. package/build/static/css/{8593.dee83774.chunk.css.map → 8593.61dbbd0e.chunk.css.map} +1 -1
  41. package/build/static/css/9556.f82346c7.chunk.css +2 -0
  42. package/build/static/css/{9556.90b9dd3d.chunk.css.map → 9556.f82346c7.chunk.css.map} +1 -1
  43. package/build/static/js/1996.53c2b908.chunk.js +2 -0
  44. package/build/static/js/{1996.34dc8364.chunk.js.map → 1996.53c2b908.chunk.js.map} +1 -1
  45. package/build/static/js/{2004.c27aee24.chunk.js → 2004.61cd921f.chunk.js} +3 -3
  46. package/build/static/js/{2004.c27aee24.chunk.js.map → 2004.61cd921f.chunk.js.map} +1 -1
  47. package/build/static/js/{206.2aa20578.chunk.js → 206.445088b4.chunk.js} +2 -2
  48. package/build/static/js/{206.2aa20578.chunk.js.map → 206.445088b4.chunk.js.map} +1 -1
  49. package/build/static/js/2086.3ca70084.chunk.js +3 -0
  50. package/build/static/js/2086.3ca70084.chunk.js.map +1 -0
  51. package/build/static/js/{2242.33e5255e.chunk.js → 2242.a5c4c8d4.chunk.js} +2 -2
  52. package/build/static/js/2242.a5c4c8d4.chunk.js.map +1 -0
  53. package/build/static/js/{254.d1e31e83.chunk.js → 254.22d241d6.chunk.js} +2 -2
  54. package/build/static/js/{254.d1e31e83.chunk.js.map → 254.22d241d6.chunk.js.map} +1 -1
  55. package/build/static/js/2628.76c215c1.chunk.js +2 -0
  56. package/build/static/js/2628.76c215c1.chunk.js.map +1 -0
  57. package/build/static/js/{3404.697379e1.chunk.js → 3404.1d9f75da.chunk.js} +3 -3
  58. package/build/static/js/{3404.697379e1.chunk.js.map → 3404.1d9f75da.chunk.js.map} +1 -1
  59. package/build/static/js/3771.10f51054.chunk.js +2 -0
  60. package/build/static/js/{3771.9decbf22.chunk.js.map → 3771.10f51054.chunk.js.map} +1 -1
  61. package/build/static/js/{3790.d68a160b.chunk.js → 3790.2120f06c.chunk.js} +2 -2
  62. package/build/static/js/{3790.d68a160b.chunk.js.map → 3790.2120f06c.chunk.js.map} +1 -1
  63. package/build/static/js/3856.e4560d8f.chunk.js +2 -0
  64. package/build/static/js/3856.e4560d8f.chunk.js.map +1 -0
  65. package/build/static/js/{4474.f4d36987.chunk.js → 4474.3c6a07f0.chunk.js} +2 -2
  66. package/build/static/js/{4474.f4d36987.chunk.js.map → 4474.3c6a07f0.chunk.js.map} +1 -1
  67. package/build/static/js/{4834.6e580619.chunk.js → 4834.2cadee9d.chunk.js} +2 -2
  68. package/build/static/js/{4834.6e580619.chunk.js.map → 4834.2cadee9d.chunk.js.map} +1 -1
  69. package/build/static/js/5195.5abc9cff.chunk.js +2 -0
  70. package/build/static/js/5195.5abc9cff.chunk.js.map +1 -0
  71. package/build/static/js/6763.a139d223.chunk.js +2 -0
  72. package/build/static/js/{6763.e71b3538.chunk.js.map → 6763.a139d223.chunk.js.map} +1 -1
  73. package/build/static/js/{7227.8a26db50.chunk.js → 7227.34b70878.chunk.js} +3 -3
  74. package/build/static/js/{7227.8a26db50.chunk.js.map → 7227.34b70878.chunk.js.map} +1 -1
  75. package/build/static/js/{7371.c4233f7b.chunk.js → 7371.74bfc393.chunk.js} +2 -2
  76. package/build/static/js/{7371.c4233f7b.chunk.js.map → 7371.74bfc393.chunk.js.map} +1 -1
  77. package/build/static/js/{7548.9c9af522.chunk.js → 7548.026fa708.chunk.js} +2 -2
  78. package/build/static/js/{7548.9c9af522.chunk.js.map → 7548.026fa708.chunk.js.map} +1 -1
  79. package/build/static/js/{760.a5fe8a4c.chunk.js → 760.b2c2ea0d.chunk.js} +2 -2
  80. package/build/static/js/{760.a5fe8a4c.chunk.js.map → 760.b2c2ea0d.chunk.js.map} +1 -1
  81. package/build/static/js/{833.db006bcb.chunk.js → 833.61967330.chunk.js} +2 -2
  82. package/build/static/js/{833.db006bcb.chunk.js.map → 833.61967330.chunk.js.map} +1 -1
  83. package/build/static/js/8593.191e7e1c.chunk.js +2 -0
  84. package/build/static/js/{8593.0eda9c55.chunk.js.map → 8593.191e7e1c.chunk.js.map} +1 -1
  85. package/build/static/js/8706.afc736bd.chunk.js +2 -0
  86. package/build/static/js/8706.afc736bd.chunk.js.map +1 -0
  87. package/build/static/js/{9556.6a8f9a39.chunk.js → 9556.bfd357ce.chunk.js} +3 -3
  88. package/build/static/js/{9556.6a8f9a39.chunk.js.map → 9556.bfd357ce.chunk.js.map} +1 -1
  89. package/build/static/js/{main.3f0891a9.js → main.2106c26a.js} +2 -2
  90. package/build/static/js/{main.3f0891a9.js.map → main.2106c26a.js.map} +1 -1
  91. package/package.json +1 -1
  92. package/build/static/css/2004.76d11e23.chunk.css +0 -2
  93. package/build/static/css/206.da1349d4.chunk.css +0 -2
  94. package/build/static/css/206.da1349d4.chunk.css.map +0 -1
  95. package/build/static/css/254.ef8fe3f4.chunk.css +0 -2
  96. package/build/static/css/254.ef8fe3f4.chunk.css.map +0 -1
  97. package/build/static/css/2628.4ebdf8d4.chunk.css +0 -2
  98. package/build/static/css/2628.4ebdf8d4.chunk.css.map +0 -1
  99. package/build/static/css/3404.5ca515aa.chunk.css +0 -2
  100. package/build/static/css/3771.ceeb1eaf.chunk.css +0 -2
  101. package/build/static/css/3771.ceeb1eaf.chunk.css.map +0 -1
  102. package/build/static/css/4741.147e3343.chunk.css +0 -2
  103. package/build/static/css/4741.147e3343.chunk.css.map +0 -1
  104. package/build/static/css/4834.5da1174e.chunk.css +0 -2
  105. package/build/static/css/4834.5da1174e.chunk.css.map +0 -1
  106. package/build/static/css/5195.03cc5b91.chunk.css +0 -2
  107. package/build/static/css/5195.03cc5b91.chunk.css.map +0 -1
  108. package/build/static/css/7227.5a618faf.chunk.css +0 -2
  109. package/build/static/css/7371.7360f52a.chunk.css +0 -2
  110. package/build/static/css/7548.765e496c.chunk.css +0 -12
  111. package/build/static/css/833.57c025b8.chunk.css +0 -2
  112. package/build/static/css/833.57c025b8.chunk.css.map +0 -1
  113. package/build/static/css/9556.90b9dd3d.chunk.css +0 -2
  114. package/build/static/js/1996.34dc8364.chunk.js +0 -2
  115. package/build/static/js/2086.f6e8e976.chunk.js +0 -3
  116. package/build/static/js/2086.f6e8e976.chunk.js.map +0 -1
  117. package/build/static/js/2242.33e5255e.chunk.js.map +0 -1
  118. package/build/static/js/2628.d22d3218.chunk.js +0 -2
  119. package/build/static/js/2628.d22d3218.chunk.js.map +0 -1
  120. package/build/static/js/3771.9decbf22.chunk.js +0 -2
  121. package/build/static/js/3856.127066b2.chunk.js +0 -2
  122. package/build/static/js/3856.127066b2.chunk.js.map +0 -1
  123. package/build/static/js/5195.78da0f7e.chunk.js +0 -2
  124. package/build/static/js/5195.78da0f7e.chunk.js.map +0 -1
  125. package/build/static/js/6763.e71b3538.chunk.js +0 -2
  126. package/build/static/js/8593.0eda9c55.chunk.js +0 -2
  127. package/build/static/js/8706.a0af1423.chunk.js +0 -2
  128. package/build/static/js/8706.a0af1423.chunk.js.map +0 -1
  129. /package/build/static/js/{2004.c27aee24.chunk.js.LICENSE.txt → 2004.61cd921f.chunk.js.LICENSE.txt} +0 -0
  130. /package/build/static/js/{2086.f6e8e976.chunk.js.LICENSE.txt → 2086.3ca70084.chunk.js.LICENSE.txt} +0 -0
  131. /package/build/static/js/{3404.697379e1.chunk.js.LICENSE.txt → 3404.1d9f75da.chunk.js.LICENSE.txt} +0 -0
  132. /package/build/static/js/{7227.8a26db50.chunk.js.LICENSE.txt → 7227.34b70878.chunk.js.LICENSE.txt} +0 -0
  133. /package/build/static/js/{9556.6a8f9a39.chunk.js.LICENSE.txt → 9556.bfd357ce.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[206,4671],{3870:()=>{function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const n of[Array,String,t])Object.defineProperty(n.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppDrawer:()=>Y,DrawerButton:()=>Z,default:()=>W,useDrawer:()=>q});var o=n(20454),r=n(89379),l=n(53986),a=n(55199),s=n(83136),c=n.n(s);const i="style_drawer__hA8bn__bm2mY",d="style_drawer-outer__vuEIf__bm2mY",u="style_drawer-title__71eaW__bm2mY",m="style_drawer-body__frw9I__bm2mY",p="style_is-disabled-scroller__ZsITw__bm2mY",_="style_drawer-body-inner__lci9Z__bm2mY",h="style_drawer-footer__1g8o1__bm2mY",f="style_drawer-close__bpxnp__bm2mY",b=e=>({"en-US":()=>n.e(3172).then(n.bind(n,23172)),"zh-CN":()=>n.e(5254).then(n.bind(n,95254))}[e]());var g=n(47458),y=n(73884);const C=()=>{const[e,t]=(0,y.useState)([]);return[e,(0,y.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var x=n(70579);const w=(0,y.forwardRef)((e,t)=>{let{config:n}=e;const[o,l]=(0,y.useState)(!0),[s,c]=(0,y.useState)(n),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some(e=>e&&e.triggerCancel);s.onClose&&o&&s.onClose(()=>{},...t.slice(1))};return(0,y.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,x.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:o,onClose:i}))});let A=0;function j(e){return(0,r.A)({},e)}const v=[],k=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[n,o]=C();return(0,y.useImperativeHandle)(t,()=>({patchElement:o}),[o]),(0,x.jsx)(x.Fragment,{children:n})}));const P=function(){const e=(0,y.useRef)(null),[t,n]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),n([])}},[t]);const o=(0,y.useCallback)(t=>function(o){var r;A+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,x.jsx)(w,{config:t(o),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(A));return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&v.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():n(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():n(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>o(j),[o]),(0,x.jsx)(k,{ref:e},"drawer-holder")]},N=(0,y.createContext)({}),{Provider:S}=N,R=e=>{const{children:t}=e,[n,o]=P(),r=(0,y.useMemo)(()=>({drawer:n}),[n]);return(0,x.jsx)(S,{value:r,children:(0,x.jsxs)("div",{children:[o,t]})})};R.useAppDrawer=()=>(0,y.useContext)(N);const Y=R;var G=n(81014),L=n(71298),M=n.n(L),E=n(64671);const B=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],O=["size"],D=(e,t)=>"function"===typeof e?e(t):e,T=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:s,onClose:c}=e;return(0,x.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,x.jsx)(a.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,x.jsx)(a.Col,{children:(0,x.jsx)(a.Space,{children:(n||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:o}]).map((e,t)=>{let{ButtonComponent:n,onClick:o,autoClose:a=!0}=e,s=(0,l.A)(e,B);const i=n||G.default;return(0,y.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(o&&o(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},F=e=>{let{title:t,footer:n,disabledScroller:o,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!o&&new(M())(C.current)},[o]),(0,x.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,x.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(f,"drawer-close"),type:"text",icon:(0,x.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,x.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,x.jsx)("div",{className:c()(m,"drawer-body",{[p]:o}),ref:C,children:(0,x.jsx)("div",{className:c()(_,"drawer-body-inner"),children:g})}),null!==n||r?(0,x.jsx)("div",{className:c()(h,"drawer-footer"),children:(0,x.jsx)(T,{footer:n,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},z=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const m=e=>(e=Object.assign({},e),(0,x.jsx)(F,{title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:D(n,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:D(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:D(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(m):m({})},U=e=>{let{children:t,footer:n,footerButtons:o,className:a,size:s,title:d,onClose:u,onConfirm:m,onCancel:p,closable:_,disabledScroller:h,withDecorator:f}=e,y=(0,l.A)(e,I);return(0,r.A)((0,r.A)((0,r.A)({},y),{},{icon:null,title:null,maskClosable:!!y.hasOwnProperty("maskClosable")&&y.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(C=s)?{width:"calc(100vw - 64px)"}:"small"===C?{width:"600px"}:{width:"1000px"}),{},{children:(0,x.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:z({withDecorator:f,title:d,closable:_,onClose:u,onConfirm:m,onCancel:p,footer:n,footerButtons:o,disabledScroller:h,children:t})})});var C},q=()=>{const{drawer:e}=Y.useAppDrawer();return t=>{const n={},l=U((0,r.A)({onClose:()=>n.close()},t)),a=Object.assign({},((0,o.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return n.close=s,n}},W=e=>{let{size:t="small"}=e,n=(0,l.A)(e,O);return(0,x.jsx)(a.Drawer,(0,r.A)({},U((0,r.A)({size:t},n))))};var H=n(73025);const Z=e=>{const t=q();return(0,x.jsx)(H.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},47458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormattedMessage:()=>w,IntlProvider:()=>x,createWithIntl:()=>j,createWithLocale:()=>g,default:()=>v,useIntl:()=>A});var o=n(89379),r=n(53986),l=n(87558),a=n.n(l),s=n(61032),c=n(63743),i=n(73884),d=n(34677),u=n.n(d),m=n(22717),p=n.n(m),_=n(33097),h=n.n(_),f=n(70579);const b=new Map,g=e=>{let{moduleName:t,importMessages:n}=e;return e=>(0,i.forwardRef)((r,l)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,f.jsx)(a(),{params:{locale:i},loader:e=>{let{params:o}=e;const{locale:r}=o,l="".concat(t,"_").concat(r);return b.has(l)?b.get(l):Promise.resolve(n(r)).then(e=>{let{default:t}=e;return b.set(l,t),t})},render:t=>{let{data:n}=t;return(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{locale:n,ref:l}))}})})},y=["id","moduleName","children"],C=(0,l.withFetch)(e=>{let{children:t,data:n,locale:o}=e;return(0,f.jsx)(s.IntlProvider,{locale:o,messages:n,children:t})}),x=e=>{let{locale:t,importMessages:n=()=>({}),moduleName:o="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,f.jsx)(C,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(n(r)).then(e=>{let{default:t}=e;const n=u()({},l.current,p()(t,(e,t,n)=>{e["".concat(o,"_").concat(n)]=t}));return l.current=n,n})},children:r})},w=e=>{let{id:t,moduleName:n="Global",children:l}=e,a=(0,r.A)(e,y);const c="".concat(n,"_").concat(t);return"function"===typeof l?(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c,children:e=>l(e&&e.join(""))})):(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c}))},A=e=>{let t=h()(e,"moduleName")||"Global";const{formatMessage:n}=(0,s.useIntl)(),o=(0,i.useCallback)((e,o)=>(e.id="".concat(t,"_").concat(e.id),n(e,o)),[t,n]);return{formatMessage:o}},j=e=>{let{importMessages:t,moduleName:n}=e;return e=>(0,i.forwardRef)((r,l)=>(0,f.jsx)(x,{importMessages:t,moduleName:n,children:(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{ref:l}))}))},v=w},63743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GetGlobal:()=>X,GlobalInfo:()=>$,GlobalProvider:()=>K,PureGlobal:()=>J,SetGlobal:()=>V,default:()=>ee,useGlobalContext:()=>Q,usePreset:()=>p});var o=n(89379),r=n(53986),l=(n(3870),n(21683),n(83136)),a=n.n(l),s=n(83694),c=n(73884),i=n(70579);const d=(0,c.createContext)({}),{Provider:u}=d,m=e=>{let{value:t={},children:n}=e;const o=(0,c.useRef)(t);return o.current=t,(0,i.jsx)(u,{value:o,children:n})},p=()=>(0,c.useContext)(d).current||{};var _=n(55199),h=n(71298),f=n.n(h),b=n(36755),g=n(76801);const y=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var C=n(87558),x=n.n(C),w=n(57469),A=n.n(w),j=n(52526);const v=e=>{let{params:t}=e;const{locale:o}=t;return{"en-US":async()=>(await n.e(3513).then(n.t.bind(n,33513,23)),A().locale("en"),await n.e(2397).then(n.t.bind(n,62397,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"button-group")}),await n.e(9808).then(n.t.bind(n,79808,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"phone-number-input")}),await n.e(8670).then(n.t.bind(n,78670,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"scroll-loader")}),await n.e(9223).then(n.t.bind(n,99223,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"react-file")}),await n.e(7451).then(n.bind(n,47451)).then(e=>e.default)),"zh-CN":async()=>(await n.e(6484).then(n.t.bind(n,76484,23)),A().locale("zh-cn"),await n.e(4965).then(n.bind(n,64965)).then(e=>e.default))}[o]()},k={container:"style_container__k+uRt__bm2mY","is-not-init":"style_is-not-init__BZN0v__bm2mY","loading-rotate":"style_loading-rotate__kLLHV__bm2mY",total_text:"style_total_text__oNKMr__bm2mY","ant-pagination":"style_ant-pagination__4LRg7__bm2mY","ant-pagination-total-text":"style_ant-pagination-total-text__8HE6P__bm2mY","ant-pagination-options":"style_ant-pagination-options__mp-tz__bm2mY","ant-select-single":"style_ant-select-single__mL6Zt__bm2mY","ant-select-selector":"style_ant-select-selector__+111I__bm2mY","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__bm2mY","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__bm2mY","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__bm2mY","ant-pagination-item":"style_ant-pagination-item__i8udA__bm2mY","ant-pagination-prev":"style_ant-pagination-prev__d03DI__bm2mY","ant-pagination-next":"style_ant-pagination-next__lreJT__bm2mY","ant-pagination-item-link":"style_ant-pagination-item-link__qPOiQ__bm2mY","ant-pagination-jump-prev":"style_ant-pagination-jump-prev__Cdgxu__bm2mY","ant-pagination-jump-next":"style_ant-pagination-jump-next__vZW63__bm2mY","ant-pagination-item-active":"style_ant-pagination-item-active__uUJBI__bm2mY"};var P=n(33097),N=n.n(P),S=n(25963),R=n(64671),Y=n(96418),G=n.n(Y),L=n(22717),M=n.n(L),E=n(96604),B=n.n(E),I=n(25806),O=n.n(I),D=n(13050),T=n(19853),F=n.n(T);const z=["colorPrimary","components"],U=["preset","children","themeToken","init"],q=["children"],W=["children","className"];document.body.classList.add(k.container),y()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(f())(document.body),(0,g.h)().classList.add(k.container));const H=(0,C.withFetch)(e=>{let{data:t,themeToken:n={colorPrimary:"#4096ff"},children:o}=e;const[l,a]=(0,c.useState)(!1),s=Object.assign({},n),{colorPrimary:d,components:u}=s,m=(0,r.A)(s,z),p=(0,c.useMemo)(()=>O()(d),[d]);return(0,c.useEffect)(()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t={"--primary-color":d,"--primary-color-red":p.red(),"--primary-color-green":p.green(),"--primary-color-blue":p.blue(),"--primary-color-06":p.alpha(.06).string()};return B()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(k.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),"{").concat(M()(t,(e,t,n)=>{e.push("".concat(n,":").concat(t,";"))},[]).join(""),"}"),a(!0),()=>{}},[d,p]),l?(0,i.jsx)(_.ConfigProvider,{getTargetContainer:g.h,getPopupContainer:g.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:u,token:Object.assign({},{colorError:"#f53f3f",colorInfo:"#165dff",colorSuccess:"#00b42a",colorWarning:"#ff7d00",colorPrimary:d,colorPrimaryBg:p.alpha(.1).string(),colorLink:d,colorTextBase:"#222222",colorText:"#222222"},m)},children:o}):null}),Z=(0,D.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[n,o]=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R.FontLoader,{path:"".concat(n,"/iconfont.css")}),(0,i.jsx)(R.FontLoader,{path:"".concat(o,"/iconfont.js")})]})}),K=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:n,themeToken:l,init:a}=e,d=(0,r.A)(e,U);const u=N()(t,"locale","zh-CN"),p=(0,c.useRef)({}),h=(0,c.useRef)(new Map),[f,b]=(0,c.useState)(Object.assign({themeToken:l,localMessageRef:p,enumsRef:h,locale:u},N()(t,"global")));return(0,i.jsx)(s.Provider,{value:(0,o.A)((0,o.A)({},d),{},{preset:t,locale:f.locale,global:f,setGlobal:b}),children:(0,i.jsx)(m,{value:t,children:(0,i.jsxs)(H,{loader:v,params:{locale:f.locale},themeToken:f.themeToken,children:[(0,i.jsx)(_.App,{message:{top:100},children:(0,i.jsx)(S.AppDrawer,{children:"function"===typeof a?(0,i.jsx)(x(),{loader:()=>a({preset:t,global:f,setGlobal:b}),render:()=>n}):n})}),(0,i.jsx)(Z,{})]})})})},J=e=>{let{children:t}=e,n=(0,r.A)(e,q);const{global:l}=Q("themeToken");return(0,i.jsx)(K,(0,o.A)((0,o.A)({},n),{},{themeToken:n.themeToken||l,children:(0,i.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(k.container,"core-container-body"),children:t})}))},Q=e=>{const t=(0,s.useGlobalContext)(),n=G()(n=>{t.setGlobal(t=>"function"===typeof n?Object.assign({},t,{[e]:n(N()(t,e))}):Object.assign({},t,{[e]:n}))});return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:N()(t.global,e),setGlobal:n}:{})},V=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=Q(t),s=G()(a),i=(0,c.useRef)(null);return i.current=l,(0,c.useEffect)(()=>{F()(i.current,n)||(i.current=n,s(n))},[n,s]),o&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},X=e=>{let{globalKey:t,children:n}=e;const{global:o}=Q(t);return n({value:o})},$=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=Q(t),s=G()(a),i=(0,c.useRef)(null);return i.current=l,(0,c.useEffect)(()=>{F()(i.current,n)||(i.current=n,s(n))},[n,s]),o&&!l?null:r({global:l,setGlobal:a})},ee=e=>{let{children:t,className:n}=e,l=(0,r.A)(e,W);return(0,i.jsx)(b.A,{errorRender:()=>(0,i.jsx)(_.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,i.jsx)(K,(0,o.A)((0,o.A)({},l),{},{children:(0,i.jsx)("div",{"data-testid":"components-core-global",className:a()(k.container,"container-body",n),children:t})}))})}},64671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.a});var o=n(48781),r=n.n(o),l={};for(const a in o)"default"!==a&&(l[a]=()=>o[a]);n.d(t,l)},73025:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var o=n(89379),r=n(53986),l=n(73884),a=n(87558),s=n(96418),c=n.n(s),i=n(55199),d=n(70579);const u=["api","modalProps","modalFunc","onError"],m=e=>{let{api:t,modalProps:n={},modalFunc:s,onError:m}=e,p=(0,r.A)(e,u);const _=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:h,data:f,error:b,refresh:g}=_,y=c()(m),C=c()(()=>{const e=s("function"===typeof n?n({data:f,fetchApi:_,close:()=>{e.close()}}):n)});return(0,l.useEffect)(()=>{h||(b?y(b):f&&C())},[h,b,f,C,y]),(0,d.jsx)(i.Button,(0,o.A)((0,o.A)({},p),{},{loading:h,onClick:()=>{g({onSuccess:()=>{}})}}))}},76801:(e,t,n)=>{"use strict";n.d(t,{c:()=>r,h:()=>o});const o=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},81014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.LoadingButton,useLoading:()=>o.useLoading});n(9056);var o=n(61186)}}]);
2
- //# sourceMappingURL=206.2aa20578.chunk.js.map
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[206,4671],{3870:()=>{function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const n of[Array,String,t])Object.defineProperty(n.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppDrawer:()=>R,DrawerButton:()=>K,default:()=>H,useDrawer:()=>W});var o=n(20454),r=n(89379),l=n(53986),a=n(55199),s=n(83136),c=n.n(s);const i="style_drawer__hA8bn__2Npqm",d="style_drawer-outer__vuEIf__2Npqm",u="style_drawer-title__71eaW__2Npqm",p="style_drawer-body__frw9I__2Npqm",m="style_is-disabled-scroller__ZsITw__2Npqm",_="style_drawer-body-inner__lci9Z__2Npqm",h="style_drawer-footer__1g8o1__2Npqm",f="style_drawer-close__bpxnp__2Npqm",g=e=>({"en-US":()=>n.e(3172).then(n.bind(n,23172)),"zh-CN":()=>n.e(5254).then(n.bind(n,95254))}[e]());var b=n(47458),y=n(73884);const C=()=>{const[e,t]=(0,y.useState)([]);return[e,(0,y.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var x=n(70579);const w=(0,y.forwardRef)((e,t)=>{let{config:n}=e;const[o,l]=(0,y.useState)(!0),[s,c]=(0,y.useState)(n),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some(e=>e&&e.triggerCancel);s.onClose&&o&&s.onClose(()=>{},...t.slice(1))};return(0,y.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,x.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:o,onClose:i}))});let A=0;function j(e){return(0,r.A)({},e)}const v=[],N=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[n,o]=C();return(0,y.useImperativeHandle)(t,()=>({patchElement:o}),[o]),(0,x.jsx)(x.Fragment,{children:n})}));const k=function(){const e=(0,y.useRef)(null),[t,n]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),n([])}},[t]);const o=(0,y.useCallback)(t=>function(o){var r;A+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,x.jsx)(w,{config:t(o),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(A));return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&v.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():n(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():n(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>o(j),[o]),(0,x.jsx)(N,{ref:e},"drawer-holder")]},P=(0,y.createContext)({}),{Provider:q}=P,S=e=>{const{children:t}=e,[n,o]=k(),r=(0,y.useMemo)(()=>({drawer:n}),[n]);return(0,x.jsx)(q,{value:r,children:(0,x.jsxs)("div",{children:[o,t]})})};S.useAppDrawer=()=>(0,y.useContext)(P);const R=S;var G=n(81014),L=n(71298),M=n.n(L),E=n(64671);const B=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],O=["size"],D=(e,t)=>"function"===typeof e?e(t):e,T=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:s,onClose:c}=e;return(0,x.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,x.jsx)(a.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,x.jsx)(a.Col,{children:(0,x.jsx)(a.Space,{children:(n||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:o}]).map((e,t)=>{let{ButtonComponent:n,onClick:o,autoClose:a=!0}=e,s=(0,l.A)(e,B);const i=n||G.default;return(0,y.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(o&&o(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},F=e=>{let{title:t,footer:n,disabledScroller:o,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:g,children:b}=e;const C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!o&&new(M())(C.current)},[o]),(0,x.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,x.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(f,"drawer-close"),type:"text",icon:(0,x.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,x.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,x.jsx)("div",{className:c()(p,"drawer-body",{[m]:o}),ref:C,children:(0,x.jsx)("div",{className:c()(_,"drawer-body-inner"),children:b})}),null!==n||r?(0,x.jsx)("div",{className:c()(h,"drawer-footer"),children:(0,x.jsx)(T,{footer:n,footerButtons:r,onConfirm:i,onCancel:g,onClose:l})}):null]})},z=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const p=e=>(e=Object.assign({},e),(0,x.jsx)(F,{title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:D(n,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:D(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:D(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(p):p({})},U=e=>{let{children:t,footer:n,footerButtons:o,className:a,size:s,title:d,onClose:u,onConfirm:p,onCancel:m,closable:_,disabledScroller:h,withDecorator:f}=e,y=(0,l.A)(e,I);return(0,r.A)((0,r.A)((0,r.A)({},y),{},{icon:null,title:null,maskClosable:!!y.hasOwnProperty("maskClosable")&&y.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(C=s)?{width:"calc(100vw - 64px)"}:"small"===C?{width:"600px"}:{width:"1000px"}),{},{children:(0,x.jsx)(b.IntlProvider,{importMessages:g,moduleName:"Drawer",children:z({withDecorator:f,title:d,closable:_,onClose:u,onConfirm:p,onCancel:m,footer:n,footerButtons:o,disabledScroller:h,children:t})})});var C},W=()=>{const{drawer:e}=R.useAppDrawer();return t=>{const n={},l=U((0,r.A)({onClose:()=>n.close()},t)),a=Object.assign({},((0,o.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return n.close=s,n}},H=e=>{let{size:t="small"}=e,n=(0,l.A)(e,O);return(0,x.jsx)(a.Drawer,(0,r.A)({},U((0,r.A)({size:t},n))))};var Z=n(73025);const K=e=>{const t=W();return(0,x.jsx)(Z.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},47458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormattedMessage:()=>w,IntlProvider:()=>x,createWithIntl:()=>j,createWithLocale:()=>b,default:()=>v,useIntl:()=>A});var o=n(89379),r=n(53986),l=n(87558),a=n.n(l),s=n(61032),c=n(63743),i=n(73884),d=n(34677),u=n.n(d),p=n(22717),m=n.n(p),_=n(33097),h=n.n(_),f=n(70579);const g=new Map,b=e=>{let{moduleName:t,importMessages:n}=e;return e=>(0,i.forwardRef)((r,l)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,f.jsx)(a(),{params:{locale:i},loader:e=>{let{params:o}=e;const{locale:r}=o,l="".concat(t,"_").concat(r);return g.has(l)?g.get(l):Promise.resolve(n(r)).then(e=>{let{default:t}=e;return g.set(l,t),t})},render:t=>{let{data:n}=t;return(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{locale:n,ref:l}))}})})},y=["id","moduleName","children"],C=(0,l.withFetch)(e=>{let{children:t,data:n,locale:o}=e;return(0,f.jsx)(s.IntlProvider,{locale:o,messages:n,children:t})}),x=e=>{let{locale:t,importMessages:n=()=>({}),moduleName:o="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,f.jsx)(C,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(n(r)).then(e=>{let{default:t}=e;const n=u()({},l.current,m()(t,(e,t,n)=>{e["".concat(o,"_").concat(n)]=t}));return l.current=n,n})},children:r})},w=e=>{let{id:t,moduleName:n="Global",children:l}=e,a=(0,r.A)(e,y);const c="".concat(n,"_").concat(t);return"function"===typeof l?(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c,children:e=>l(e&&e.join(""))})):(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c}))},A=e=>{let t=h()(e,"moduleName")||"Global";const{formatMessage:n}=(0,s.useIntl)(),o=(0,i.useCallback)((e,o)=>(e.id="".concat(t,"_").concat(e.id),n(e,o)),[t,n]);return{formatMessage:o}},j=e=>{let{importMessages:t,moduleName:n}=e;return e=>(0,i.forwardRef)((r,l)=>(0,f.jsx)(x,{importMessages:t,moduleName:n,children:(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{ref:l}))}))},v=w},63743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GetGlobal:()=>Y,GlobalInfo:()=>$,GlobalProvider:()=>J,PureGlobal:()=>Q,SetGlobal:()=>X,default:()=>ee,useGlobalContext:()=>V,usePreset:()=>m});var o=n(89379),r=n(53986),l=(n(3870),n(21683),n(83136)),a=n.n(l),s=n(83694),c=n(73884),i=n(70579);const d=(0,c.createContext)({}),{Provider:u}=d,p=e=>{let{value:t={},children:n}=e;const o=(0,c.useRef)(t);return o.current=t,(0,i.jsx)(u,{value:o,children:n})},m=()=>(0,c.useContext)(d).current||{};var _=n(55199),h=n(71298),f=n.n(h),g=n(36755),b=n(76801);const y=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var C=n(87558),x=n.n(C),w=n(57469),A=n.n(w),j=n(52526);const v=e=>{let{params:t}=e;const{locale:o}=t;return{"en-US":async()=>(await n.e(3513).then(n.t.bind(n,33513,23)),A().locale("en"),await n.e(2397).then(n.t.bind(n,62397,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"button-group")}),await n.e(9808).then(n.t.bind(n,79808,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"phone-number-input")}),await n.e(8670).then(n.t.bind(n,78670,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"scroll-loader")}),await n.e(9223).then(n.t.bind(n,99223,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"react-file")}),await n.e(7451).then(n.bind(n,47451)).then(e=>e.default)),"zh-CN":async()=>(await n.e(6484).then(n.t.bind(n,76484,23)),A().locale("zh-cn"),await n.e(4965).then(n.bind(n,64965)).then(e=>e.default))}[o]()},N={container:"style_container__k+uRt__2Npqm","is-not-init":"style_is-not-init__BZN0v__2Npqm","loading-rotate":"style_loading-rotate__kLLHV__2Npqm",total_text:"style_total_text__oNKMr__2Npqm","ant-pagination":"style_ant-pagination__4LRg7__2Npqm","ant-pagination-total-text":"style_ant-pagination-total-text__8HE6P__2Npqm","ant-pagination-options":"style_ant-pagination-options__mp-tz__2Npqm","ant-select-single":"style_ant-select-single__mL6Zt__2Npqm","ant-select-selector":"style_ant-select-selector__+111I__2Npqm","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__2Npqm","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__2Npqm","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__2Npqm","ant-pagination-item":"style_ant-pagination-item__i8udA__2Npqm","ant-pagination-prev":"style_ant-pagination-prev__d03DI__2Npqm","ant-pagination-next":"style_ant-pagination-next__lreJT__2Npqm","ant-pagination-item-link":"style_ant-pagination-item-link__qPOiQ__2Npqm","ant-pagination-jump-prev":"style_ant-pagination-jump-prev__Cdgxu__2Npqm","ant-pagination-jump-next":"style_ant-pagination-jump-next__vZW63__2Npqm","ant-pagination-item-active":"style_ant-pagination-item-active__uUJBI__2Npqm"};var k=n(33097),P=n.n(k),q=n(25963),S=n(64671),R=n(96418),G=n.n(R),L=n(22717),M=n.n(L),E=n(96604),B=n.n(E),I=n(25806),O=n.n(I),D=n(13050),T=n(19853),F=n.n(T);const z=["colorPrimary","components"],U=["preset","children","themeToken","init"],W=["children"],H=["children","className"];document.body.classList.add(N.container),y()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(f())(document.body),(0,b.h)().classList.add(N.container));const Z=(0,C.withFetch)(e=>{let{data:t,themeToken:n={colorPrimary:"#4096ff"},children:o}=e;const[l,a]=(0,c.useState)(!1),s=Object.assign({},n),{colorPrimary:d,components:u}=s,p=(0,r.A)(s,z),m=(0,c.useMemo)(()=>O()(d),[d]);return(0,c.useEffect)(()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t={"--primary-color":d,"--primary-color-red":m.red(),"--primary-color-green":m.green(),"--primary-color-blue":m.blue(),"--primary-color-06":m.alpha(.06).string()};return B()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=m.alpha((e+1)/10).string()}),e.textContent=".".concat(N.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),"{").concat(M()(t,(e,t,n)=>{e.push("".concat(n,":").concat(t,";"))},[]).join(""),"}"),a(!0),()=>{}},[d,m]),l?(0,i.jsx)(_.ConfigProvider,{getTargetContainer:b.h,getPopupContainer:b.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:u,token:Object.assign({},{colorError:"#f53f3f",colorInfo:"#165dff",colorSuccess:"#00b42a",colorWarning:"#ff7d00",colorPrimary:d,colorPrimaryBg:m.alpha(.1).string(),colorLink:d,colorTextBase:"#222222",colorText:"#222222"},p)},children:o}):null}),K=(0,D.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[n,o]=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.FontLoader,{path:"".concat(n,"/iconfont.css")}),(0,i.jsx)(S.FontLoader,{path:"".concat(o,"/iconfont.js")})]})}),J=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:n,themeToken:l,init:a}=e,d=(0,r.A)(e,U);const u=P()(t,"locale","zh-CN"),m=(0,c.useRef)({}),h=(0,c.useRef)(new Map),[f,g]=(0,c.useState)(Object.assign({themeToken:l,localMessageRef:m,enumsRef:h,locale:u},P()(t,"global")));return(0,i.jsx)(s.Provider,{value:(0,o.A)((0,o.A)({},d),{},{preset:t,locale:f.locale,global:f,setGlobal:g}),children:(0,i.jsx)(p,{value:t,children:(0,i.jsxs)(Z,{loader:v,params:{locale:f.locale},themeToken:f.themeToken,children:[(0,i.jsx)(_.App,{message:{top:100},children:(0,i.jsx)(q.AppDrawer,{children:"function"===typeof a?(0,i.jsx)(x(),{loader:()=>a({preset:t,global:f,setGlobal:g}),render:()=>n}):n})}),(0,i.jsx)(K,{})]})})})},Q=e=>{let{children:t}=e,n=(0,r.A)(e,W);const{global:l}=V("themeToken");return(0,i.jsx)(J,(0,o.A)((0,o.A)({},n),{},{themeToken:n.themeToken||l,children:(0,i.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(N.container,"core-container-body"),children:t})}))},V=e=>{const t=(0,s.useGlobalContext)(),n=G()(n=>{t.setGlobal(t=>"function"===typeof n?Object.assign({},t,{[e]:n(P()(t,e))}):Object.assign({},t,{[e]:n}))});return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:P()(t.global,e),setGlobal:n}:{})},X=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=V(t),s=G()(a),i=(0,c.useRef)(null);return i.current=l,(0,c.useEffect)(()=>{F()(i.current,n)||(i.current=n,s(n))},[n,s]),o&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},Y=e=>{let{globalKey:t,children:n}=e;const{global:o}=V(t);return n({value:o})},$=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=V(t),s=G()(a),i=(0,c.useRef)(null);return i.current=l,(0,c.useEffect)(()=>{F()(i.current,n)||(i.current=n,s(n))},[n,s]),o&&!l?null:r({global:l,setGlobal:a})},ee=e=>{let{children:t,className:n}=e,l=(0,r.A)(e,H);return(0,i.jsx)(g.A,{errorRender:()=>(0,i.jsx)(_.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,i.jsx)(J,(0,o.A)((0,o.A)({},l),{},{children:(0,i.jsx)("div",{"data-testid":"components-core-global",className:a()(N.container,"container-body",n),children:t})}))})}},64671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.a});var o=n(48781),r=n.n(o),l={};for(const a in o)"default"!==a&&(l[a]=()=>o[a]);n.d(t,l)},73025:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(89379),r=n(53986),l=n(73884),a=n(87558),s=n(96418),c=n.n(s),i=n(55199),d=n(70579);const u=["api","modalProps","modalFunc","onError"],p=e=>{let{api:t,modalProps:n={},modalFunc:s,onError:p}=e,m=(0,r.A)(e,u);const _=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:h,data:f,error:g,refresh:b}=_,y=c()(p),C=c()(()=>{const e=s("function"===typeof n?n({data:f,fetchApi:_,close:()=>{e.close()}}):n)});return(0,l.useEffect)(()=>{h||(g?y(g):f&&C())},[h,g,f,C,y]),(0,d.jsx)(i.Button,(0,o.A)((0,o.A)({},m),{},{loading:h,onClick:()=>{b({onSuccess:()=>{}})}}))}},76801:(e,t,n)=>{"use strict";n.d(t,{c:()=>r,h:()=>o});const o=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},81014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.LoadingButton,useLoading:()=>o.useLoading});n(9056);var o=n(61186)}}]);
2
+ //# sourceMappingURL=206.445088b4.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/206.2aa20578.chunk.js","mappings":"oIAAA,SAASA,EAAGC,GAMV,IAJAA,EAAIC,KAAKC,MAAMF,IAAM,GAEb,IAAGA,GAAKG,KAAKC,UAEjBJ,EAAI,GAAKA,GAAKG,KAAKC,QAEvB,OAAOD,KAAKH,EACd,CAEA,MAAMK,EAAaC,QAAQC,eAAeC,WAC1C,IAAK,MAAMC,IAAK,CAACC,MAAOC,OAAQN,GAC9BO,OAAOC,eAAeJ,EAAEK,UAAW,KAAM,CACvCC,MAAOhB,EACPiB,UAAU,EACVC,YAAY,EACZC,cAAc,G,oLChBlB,QAAyB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IAAe,KACpC,MAAM2B,EAAWtJ,EAAgC,oBAAf4I,EAA4BA,EAAW,CACrE3H,OAAM6H,WAAUnR,MAAOA,KACnB2R,EAAS3R,WAEZiR,KAeT,OAbAlP,EAAAA,EAAAA,WAAU,KACFuP,IAGAC,EACAE,EAAaF,GAGZjI,GAGLoI,MACD,CAACJ,EAAWC,EAAOjI,EAAMoI,EAAkBD,KACtCzQ,EAAAA,EAAAA,KAACuF,EAAAA,QAAMxF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPK,GAAK,IACTwQ,QAASN,EACTzM,QAASA,KACL2M,EAAQ,CACJK,UAAWA,a,wDClCpB,MAAMhG,EAAcA,IAAMN,SAASoB,cAAc,8BAC3CmF,EAAmBA,IAAMvG,SAASoB,cAAc,kB","sources":["components/Global/polyfill.js","webpack://@kne-components/components-core/./src/components/Drawer/style.module.scss?33d4","components/Drawer/locale/index.js","components/Drawer/useDrawer/usePatchElement.js","components/Drawer/useDrawer/HookDrawer.js","components/Drawer/useDrawer/index.js","components/Drawer/AppDrawer.js","components/Drawer/Drawer.js","components/Drawer/DrawerButton.js","components/Intl/createWithLocale.js","components/Intl/index.js","components/Global/presetContext.js","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/index.js","common/components/FetchButton.js","common/utils/importantContainer.js"],"sourcesContent":["function at(n) {\n // ToInteger() abstract op\n n = Math.trunc(n) || 0;\n // Allow negative indexing from the end\n if (n < 0) n += this.length;\n // OOB access is guaranteed to return undefined\n if (n < 0 || n >= this.length) return undefined;\n // Otherwise, this is just normal property access\n return this[n];\n}\n\nconst TypedArray = Reflect.getPrototypeOf(Int8Array);\nfor (const C of [Array, String, TypedArray]) {\n Object.defineProperty(C.prototype, \"at\", {\n value: at,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__bm2mY\",\"drawer-outer\":\"style_drawer-outer__vuEIf__bm2mY\",\"drawer-title\":\"style_drawer-title__71eaW__bm2mY\",\"drawer-body\":\"style_drawer-body__frw9I__bm2mY\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__bm2mY\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__bm2mY\",\"drawer-footer\":\"style_drawer-footer__1g8o1__bm2mY\",\"drawer-close\":\"style_drawer-close__bpxnp__bm2mY\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","import { forwardRef } from \"react\";\nimport Fetch from \"@kne/react-fetch\";\nimport { useGlobalContext } from \"@components/Global\";\n\nconst localeCache = new Map();\n\nconst createWithLocale =\n ({ moduleName, importMessages }) =>\n (WrappedComponent) =>\n forwardRef((props, ref) => {\n const { global: locale } = useGlobalContext(\"locale\");\n const currentLocale = locale || \"zh-CN\";\n return (\n <Fetch\n params={{ locale: currentLocale }}\n loader={({ params }) => {\n const { locale } = params;\n const key = `${moduleName}_${locale}`;\n if (localeCache.has(key)) {\n return localeCache.get(key);\n }\n return Promise.resolve(importMessages(locale)).then(\n ({ default: localMessages }) => {\n localeCache.set(key, localMessages);\n return localMessages;\n }\n );\n }}\n render={({ data: messages }) => {\n return <WrappedComponent {...props} locale={messages} ref={ref} />;\n }}\n />\n );\n });\n\nexport default createWithLocale;\n","import {withFetch} from \"@kne/react-fetch\";\nimport {\n FormattedMessage as IntlFormattedMessage, IntlProvider as ReactIntlProvider, useIntl as useReactIntl,\n} from \"react-intl\";\nimport {useGlobalContext} from \"@components/Global\";\nimport {forwardRef, useCallback} from \"react\";\nimport merge from \"lodash/merge\";\nimport transform from \"lodash/transform\";\nimport get from \"lodash/get\";\n\nconst InnerProvider = withFetch(({children, data: messages, locale}) => {\n return (<ReactIntlProvider locale={locale} messages={messages}>\n {children}\n </ReactIntlProvider>);\n});\n\nexport const IntlProvider = ({\n locale: baseLocale, importMessages = () => ({}), moduleName = \"Global\", children,\n }) => {\n const {\n global: {localMessageRef, locale},\n } = useGlobalContext();\n const currentLocale = baseLocale || locale || \"zh-CN\";\n return (<InnerProvider\n locale={currentLocale}\n params={{locale: currentLocale}}\n loader={({params}) => {\n const {locale} = params;\n return Promise.resolve(importMessages(locale)).then(({default: localMessages}) => {\n const currentMessages = merge({}, localMessageRef.current, transform(localMessages, (results, value, key) => {\n results[`${moduleName}_${key}`] = value;\n }));\n localMessageRef.current = currentMessages;\n return currentMessages;\n });\n }}\n >\n {children}\n </InnerProvider>);\n};\n\nexport const FormattedMessage = ({id, moduleName = \"Global\", children, ...props}) => {\n const moduleId = `${moduleName}_${id}`;\n if (typeof children === \"function\") {\n return (<IntlFormattedMessage {...props} id={moduleId}>\n {(text) => {\n return children(text && text.join(\"\"));\n }}\n </IntlFormattedMessage>);\n }\n return <IntlFormattedMessage {...props} id={moduleId}/>;\n};\n\nexport const useIntl = (props) => {\n let moduleName = get(props, \"moduleName\") || \"Global\";\n const {formatMessage} = useReactIntl();\n const formatModuleMessage = useCallback((props, values) => {\n props.id = `${moduleName}_${props.id}`;\n return formatMessage(props, values);\n }, [moduleName, formatMessage]);\n return {\n formatMessage: formatModuleMessage,\n };\n};\n\nexport const createWithIntl = ({importMessages, moduleName}) => (WrappedComponent) => forwardRef((props, ref) => (\n <IntlProvider importMessages={importMessages} moduleName={moduleName}>\n <WrappedComponent {...props} ref={ref}/>\n </IntlProvider>));\n\nexport default FormattedMessage;\n\nexport {default as createWithLocale} from \"./createWithLocale\";\n","import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value = {}, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n","const isMobile = () => {\n return /iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);\n};\n\nexport default isMobile;\n","import dayjs from \"dayjs\";\nimport {localeLoader} from '@kne/react-intl';\n\nconst loadAntdLocale = ({params}) => {\n const {locale} = params;\n return {\n \"en-US\": async () => {\n await import(\"dayjs/locale/en\");\n dayjs.locale(\"en\");\n await import(\"@kne/button-group/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'button-group');\n });\n await import(\"@kne/phone-number-input/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'phone-number-input');\n });\n await import(\"@kne/scroll-loader/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'scroll-loader');\n });\n await import(\"@kne/react-file/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'react-file');\n });\n\n return await import(\"antd/es/locale/en_US\").then(module => module[\"default\"]);\n }, \"zh-CN\": async () => {\n await import(\"dayjs/locale/zh-cn\");\n dayjs.locale(\"zh-cn\");\n\n return await import(\"antd/es/locale/zh_CN\").then(module => module[\"default\"]);\n }\n }[locale]();\n};\n\nexport default loadAntdLocale;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__k+uRt__bm2mY\",\"is-not-init\":\"style_is-not-init__BZN0v__bm2mY\",\"loading-rotate\":\"style_loading-rotate__kLLHV__bm2mY\",\"total_text\":\"style_total_text__oNKMr__bm2mY\",\"ant-pagination\":\"style_ant-pagination__4LRg7__bm2mY\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__bm2mY\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__bm2mY\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__bm2mY\",\"ant-select-selector\":\"style_ant-select-selector__+111I__bm2mY\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__bm2mY\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__bm2mY\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__bm2mY\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__bm2mY\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__bm2mY\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__bm2mY\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__bm2mY\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__bm2mY\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__bm2mY\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__bm2mY\"};","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {Provider, useGlobalContext as useContext} from \"@kne/global-context\";\nimport {Provider as PresetProvider, usePreset} from \"./presetContext\";\nimport {App, ConfigProvider as AntdConfigProvider, Result, theme} from \"antd\";\nimport {useEffect, useState, useRef, useMemo} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from \"lodash/isEqual\";\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nconst ConfigProvider = withFetch(({data: message, themeToken = {colorPrimary: \"#4096ff\"}, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n useEffect(() => {\n let styleEl = document.head.querySelector(\"#component-core-theme\");\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = \"component-core-theme\";\n document.head.appendChild(styleEl);\n }\n const themeProps = {\n \"--primary-color\": colorPrimary,\n \"--primary-color-red\": colorPrimaryObject.red(),\n \"--primary-color-green\": colorPrimaryObject.green(),\n \"--primary-color-blue\": colorPrimaryObject.blue(),\n \"--primary-color-06\": colorPrimaryObject.alpha(0.06).string(),\n };\n range(0, 10).forEach((i) => {\n themeProps[`--primary-color-${i + 1}`] = colorPrimaryObject\n .alpha((i + 1) / 10)\n .string();\n });\n styleEl.textContent = `.${style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\")}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary, colorPrimaryObject]);\n //设置主题色成功再展示页面\n if (!isInit) {\n return null;\n }\n return (<AntdConfigProvider\n getTargetContainer={getScrollEl}\n getPopupContainer={getScrollEl}\n locale={message}\n wave={{disabled: true}}\n autoInsertSpace={false}\n warning={{strict: false}}\n theme={{\n components, token: Object.assign({}, {\n colorError: \"#f53f3f\",\n colorInfo: \"#165dff\",\n colorSuccess: \"#00b42a\",\n colorWarning: \"#ff7d00\",\n colorPrimary: colorPrimary,\n colorPrimaryBg: colorPrimaryObject.alpha(0.1).string(),\n colorLink: colorPrimary,\n colorTextBase: \"#222222\",\n colorText: \"#222222\"\n }, otherToken),\n }}\n >\n {children}\n </AntdConfigProvider>);\n});\n\nconst GlobalFontLoader = createWithRemoteLoader({\n modules: [\"components-iconfont:Font@path\", \"components-iconfont:ColorfulFont@path\",],\n})(({remoteModules}) => {\n const [fontPath, colorfulPath] = remoteModules;\n\n return <>\n <FontLoader path={`${fontPath}/iconfont.css`}/>\n <FontLoader path={`${colorfulPath}/iconfont.js`}/>\n </>;\n});\n\nexport const GlobalProvider = ({\n preset = {locale: \"zh-CN\", apis: {}}, children, themeToken, init, ...props\n }) => {\n const locale = get(preset, \"locale\", \"zh-CN\");\n const localMessageRef = useRef({});\n const enumsRef = useRef(new Map());\n const [global, setGlobal] = useState(Object.assign({\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\")));\n\n return (<Provider\n value={{\n ...props, preset, locale: global.locale, global, setGlobal,\n }}\n >\n <PresetProvider value={preset}>\n <ConfigProvider\n loader={loadAntdLocale}\n params={{locale: global.locale}}\n themeToken={global.themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init({\n preset, global, setGlobal,\n })}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>\n </PresetProvider>\n </Provider>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const {global: themeToken} = useGlobalContext(\"themeToken\");\n return (<GlobalProvider {...props} themeToken={props.themeToken || themeToken}>\n <div\n data-testid=\"components-core-pure-global\"\n className={classnames(style[\"container\"], \"core-container-body\")}\n >\n {children}\n </div>\n </GlobalProvider>);\n};\n\nexport {usePreset};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n const setGlobalHandler = useRefCallback((value) => {\n contextValue.setGlobal((global) => {\n return typeof value === \"function\" ? Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n }) : Object.assign({}, global, {\n [globalKey]: value,\n });\n });\n });\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: setGlobalHandler,\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n if (typeof children === 'function') {\n return children({global, setGlobal});\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\n};\n\nexport const GlobalInfo = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n return children({global, setGlobal});\n};\n\nconst Global = ({children, className, ...props}) => {\n return (<ErrorBoundary\n errorRender={() => {\n return (<Result\n status=\"500\"\n title=\"500\"\n subTitle=\"程序出现异常,请刷新后重试\"\n />);\n }}\n >\n <GlobalProvider {...props}>\n <div\n data-testid=\"components-core-global\"\n className={classnames(style[\"container\"], \"container-body\", className)}\n >\n {children}\n </div>\n </GlobalProvider>\n </ErrorBoundary>);\n};\n\nexport default Global;\n","import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n"],"names":["at","n","Math","trunc","this","length","TypedArray","Reflect","getPrototypeOf","Int8Array","C","Array","String","Object","defineProperty","prototype","value","writable","enumerable","configurable","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useEffect","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","concat","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","onClick","type","map","_ref2","index","ButtonComponent","autoClose","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","Button","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","assign","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","modalFunc","localeCache","Map","WrappedComponent","global","useGlobalContext","currentLocale","Fetch","params","loader","has","get","then","default","localMessages","set","render","data","messages","InnerProvider","withFetch","ReactIntlProvider","baseLocale","localMessageRef","currentMessages","merge","transform","results","FormattedMessage","id","moduleId","IntlFormattedMessage","text","join","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","ReactProvider","preset","usePreset","isMobile","test","navigator","userAgent","dayjs","module","localeLoader","document","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","getScrollEl","ConfigProvider","message","themeToken","colorPrimary","isInit","setIsInit","_Object$assign","components","otherToken","colorPrimaryObject","Color","styleEl","head","querySelector","createElement","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","replace","result","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorError","colorInfo","colorSuccess","colorWarning","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","globalKey","contextValue","setGlobalHandler","useRefCallback","console","warn","SetGlobal","needReady","prevValueRef","isEqual","GetGlobal","GlobalInfo","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","modalProps","onError","fetchApi","useFetch","auto","isLoading","error","refresh","errorHandler","modalFuncHandler","modalApi","loading","onSuccess","getContainerBody"],"ignoreList":[],"sourceRo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AAWF,EAAiB,UAAG,iBAAkBD,GAAW3E,SAEtEA,S,iVCzMjB,EApCoBjC,IAA2D,IAA1D,IAACoI,EAAG,WAAEoJ,EAAa,CAAC,EAAC,UAAE5I,EAAS,QAAE6I,GAAkBzR,EAAN2B,GAAKgE,EAAAA,EAAAA,GAAA3F,EAAA4F,GACpE,MAAM8L,GAAWC,EAAAA,EAAAA,UAAShT,OAAO6I,OAAO,CAAC,EAAGY,EAAK,CAACwJ,MAAM,MAClD,UAACC,EAAS,KAAEhI,EAAI,MAAEiI,EAAK,QAAEC,GAAWL,EACpCM,EAAezB,IAAekB,GAC9BQ,EAAmB1B,IAAe,KACpC,MAAM2B,EAAWtJ,EAAgC,oBAAf4I,EAA4BA,EAAW,CACrE3H,OAAM6H,WAAUnR,MAAOA,KACnB2R,EAAS3R,WAEZiR,KAeT,OAbAlP,EAAAA,EAAAA,WAAU,KACFuP,IAGAC,EACAE,EAAaF,GAGZjI,GAGLoI,MACD,CAACJ,EAAWC,EAAOjI,EAAMoI,EAAkBD,KACtCzQ,EAAAA,EAAAA,KAACuF,EAAAA,QAAMxF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPK,GAAK,IACTwQ,QAASN,EACTzM,QAASA,KACL2M,EAAQ,CACJK,UAAWA,a,wDClCpB,MAAMhG,EAAcA,IAAMN,SAASoB,cAAc,8BAC3CmF,EAAmBA,IAAMvG,SAASoB,cAAc,kB","sources":["components/Global/polyfill.js","webpack://@kne-components/components-core/./src/components/Drawer/style.module.scss?33d4","components/Drawer/locale/index.js","components/Drawer/useDrawer/usePatchElement.js","components/Drawer/useDrawer/HookDrawer.js","components/Drawer/useDrawer/index.js","components/Drawer/AppDrawer.js","components/Drawer/Drawer.js","components/Drawer/DrawerButton.js","components/Intl/createWithLocale.js","components/Intl/index.js","components/Global/presetContext.js","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/index.js","common/components/FetchButton.js","common/utils/importantContainer.js"],"sourcesContent":["function at(n) {\n // ToInteger() abstract op\n n = Math.trunc(n) || 0;\n // Allow negative indexing from the end\n if (n < 0) n += this.length;\n // OOB access is guaranteed to return undefined\n if (n < 0 || n >= this.length) return undefined;\n // Otherwise, this is just normal property access\n return this[n];\n}\n\nconst TypedArray = Reflect.getPrototypeOf(Int8Array);\nfor (const C of [Array, String, TypedArray]) {\n Object.defineProperty(C.prototype, \"at\", {\n value: at,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__2Npqm\",\"drawer-outer\":\"style_drawer-outer__vuEIf__2Npqm\",\"drawer-title\":\"style_drawer-title__71eaW__2Npqm\",\"drawer-body\":\"style_drawer-body__frw9I__2Npqm\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__2Npqm\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__2Npqm\",\"drawer-footer\":\"style_drawer-footer__1g8o1__2Npqm\",\"drawer-close\":\"style_drawer-close__bpxnp__2Npqm\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","import { forwardRef } from \"react\";\nimport Fetch from \"@kne/react-fetch\";\nimport { useGlobalContext } from \"@components/Global\";\n\nconst localeCache = new Map();\n\nconst createWithLocale =\n ({ moduleName, importMessages }) =>\n (WrappedComponent) =>\n forwardRef((props, ref) => {\n const { global: locale } = useGlobalContext(\"locale\");\n const currentLocale = locale || \"zh-CN\";\n return (\n <Fetch\n params={{ locale: currentLocale }}\n loader={({ params }) => {\n const { locale } = params;\n const key = `${moduleName}_${locale}`;\n if (localeCache.has(key)) {\n return localeCache.get(key);\n }\n return Promise.resolve(importMessages(locale)).then(\n ({ default: localMessages }) => {\n localeCache.set(key, localMessages);\n return localMessages;\n }\n );\n }}\n render={({ data: messages }) => {\n return <WrappedComponent {...props} locale={messages} ref={ref} />;\n }}\n />\n );\n });\n\nexport default createWithLocale;\n","import {withFetch} from \"@kne/react-fetch\";\nimport {\n FormattedMessage as IntlFormattedMessage, IntlProvider as ReactIntlProvider, useIntl as useReactIntl,\n} from \"react-intl\";\nimport {useGlobalContext} from \"@components/Global\";\nimport {forwardRef, useCallback} from \"react\";\nimport merge from \"lodash/merge\";\nimport transform from \"lodash/transform\";\nimport get from \"lodash/get\";\n\nconst InnerProvider = withFetch(({children, data: messages, locale}) => {\n return (<ReactIntlProvider locale={locale} messages={messages}>\n {children}\n </ReactIntlProvider>);\n});\n\nexport const IntlProvider = ({\n locale: baseLocale, importMessages = () => ({}), moduleName = \"Global\", children,\n }) => {\n const {\n global: {localMessageRef, locale},\n } = useGlobalContext();\n const currentLocale = baseLocale || locale || \"zh-CN\";\n return (<InnerProvider\n locale={currentLocale}\n params={{locale: currentLocale}}\n loader={({params}) => {\n const {locale} = params;\n return Promise.resolve(importMessages(locale)).then(({default: localMessages}) => {\n const currentMessages = merge({}, localMessageRef.current, transform(localMessages, (results, value, key) => {\n results[`${moduleName}_${key}`] = value;\n }));\n localMessageRef.current = currentMessages;\n return currentMessages;\n });\n }}\n >\n {children}\n </InnerProvider>);\n};\n\nexport const FormattedMessage = ({id, moduleName = \"Global\", children, ...props}) => {\n const moduleId = `${moduleName}_${id}`;\n if (typeof children === \"function\") {\n return (<IntlFormattedMessage {...props} id={moduleId}>\n {(text) => {\n return children(text && text.join(\"\"));\n }}\n </IntlFormattedMessage>);\n }\n return <IntlFormattedMessage {...props} id={moduleId}/>;\n};\n\nexport const useIntl = (props) => {\n let moduleName = get(props, \"moduleName\") || \"Global\";\n const {formatMessage} = useReactIntl();\n const formatModuleMessage = useCallback((props, values) => {\n props.id = `${moduleName}_${props.id}`;\n return formatMessage(props, values);\n }, [moduleName, formatMessage]);\n return {\n formatMessage: formatModuleMessage,\n };\n};\n\nexport const createWithIntl = ({importMessages, moduleName}) => (WrappedComponent) => forwardRef((props, ref) => (\n <IntlProvider importMessages={importMessages} moduleName={moduleName}>\n <WrappedComponent {...props} ref={ref}/>\n </IntlProvider>));\n\nexport default FormattedMessage;\n\nexport {default as createWithLocale} from \"./createWithLocale\";\n","import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value = {}, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n","const isMobile = () => {\n return /iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);\n};\n\nexport default isMobile;\n","import dayjs from \"dayjs\";\nimport {localeLoader} from '@kne/react-intl';\n\nconst loadAntdLocale = ({params}) => {\n const {locale} = params;\n return {\n \"en-US\": async () => {\n await import(\"dayjs/locale/en\");\n dayjs.locale(\"en\");\n await import(\"@kne/button-group/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'button-group');\n });\n await import(\"@kne/phone-number-input/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'phone-number-input');\n });\n await import(\"@kne/scroll-loader/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'scroll-loader');\n });\n await import(\"@kne/react-file/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'react-file');\n });\n\n return await import(\"antd/es/locale/en_US\").then(module => module[\"default\"]);\n }, \"zh-CN\": async () => {\n await import(\"dayjs/locale/zh-cn\");\n dayjs.locale(\"zh-cn\");\n\n return await import(\"antd/es/locale/zh_CN\").then(module => module[\"default\"]);\n }\n }[locale]();\n};\n\nexport default loadAntdLocale;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__k+uRt__2Npqm\",\"is-not-init\":\"style_is-not-init__BZN0v__2Npqm\",\"loading-rotate\":\"style_loading-rotate__kLLHV__2Npqm\",\"total_text\":\"style_total_text__oNKMr__2Npqm\",\"ant-pagination\":\"style_ant-pagination__4LRg7__2Npqm\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__2Npqm\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__2Npqm\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__2Npqm\",\"ant-select-selector\":\"style_ant-select-selector__+111I__2Npqm\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__2Npqm\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__2Npqm\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__2Npqm\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__2Npqm\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__2Npqm\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__2Npqm\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__2Npqm\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__2Npqm\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__2Npqm\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__2Npqm\"};","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {Provider, useGlobalContext as useContext} from \"@kne/global-context\";\nimport {Provider as PresetProvider, usePreset} from \"./presetContext\";\nimport {App, ConfigProvider as AntdConfigProvider, Result, theme} from \"antd\";\nimport {useEffect, useState, useRef, useMemo} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from \"lodash/isEqual\";\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nconst ConfigProvider = withFetch(({data: message, themeToken = {colorPrimary: \"#4096ff\"}, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n useEffect(() => {\n let styleEl = document.head.querySelector(\"#component-core-theme\");\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = \"component-core-theme\";\n document.head.appendChild(styleEl);\n }\n const themeProps = {\n \"--primary-color\": colorPrimary,\n \"--primary-color-red\": colorPrimaryObject.red(),\n \"--primary-color-green\": colorPrimaryObject.green(),\n \"--primary-color-blue\": colorPrimaryObject.blue(),\n \"--primary-color-06\": colorPrimaryObject.alpha(0.06).string(),\n };\n range(0, 10).forEach((i) => {\n themeProps[`--primary-color-${i + 1}`] = colorPrimaryObject\n .alpha((i + 1) / 10)\n .string();\n });\n styleEl.textContent = `.${style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\")}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary, colorPrimaryObject]);\n //设置主题色成功再展示页面\n if (!isInit) {\n return null;\n }\n return (<AntdConfigProvider\n getTargetContainer={getScrollEl}\n getPopupContainer={getScrollEl}\n locale={message}\n wave={{disabled: true}}\n autoInsertSpace={false}\n warning={{strict: false}}\n theme={{\n components, token: Object.assign({}, {\n colorError: \"#f53f3f\",\n colorInfo: \"#165dff\",\n colorSuccess: \"#00b42a\",\n colorWarning: \"#ff7d00\",\n colorPrimary: colorPrimary,\n colorPrimaryBg: colorPrimaryObject.alpha(0.1).string(),\n colorLink: colorPrimary,\n colorTextBase: \"#222222\",\n colorText: \"#222222\"\n }, otherToken),\n }}\n >\n {children}\n </AntdConfigProvider>);\n});\n\nconst GlobalFontLoader = createWithRemoteLoader({\n modules: [\"components-iconfont:Font@path\", \"components-iconfont:ColorfulFont@path\",],\n})(({remoteModules}) => {\n const [fontPath, colorfulPath] = remoteModules;\n\n return <>\n <FontLoader path={`${fontPath}/iconfont.css`}/>\n <FontLoader path={`${colorfulPath}/iconfont.js`}/>\n </>;\n});\n\nexport const GlobalProvider = ({\n preset = {locale: \"zh-CN\", apis: {}}, children, themeToken, init, ...props\n }) => {\n const locale = get(preset, \"locale\", \"zh-CN\");\n const localMessageRef = useRef({});\n const enumsRef = useRef(new Map());\n const [global, setGlobal] = useState(Object.assign({\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\")));\n\n return (<Provider\n value={{\n ...props, preset, locale: global.locale, global, setGlobal,\n }}\n >\n <PresetProvider value={preset}>\n <ConfigProvider\n loader={loadAntdLocale}\n params={{locale: global.locale}}\n themeToken={global.themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init({\n preset, global, setGlobal,\n })}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>\n </PresetProvider>\n </Provider>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const {global: themeToken} = useGlobalContext(\"themeToken\");\n return (<GlobalProvider {...props} themeToken={props.themeToken || themeToken}>\n <div\n data-testid=\"components-core-pure-global\"\n className={classnames(style[\"container\"], \"core-container-body\")}\n >\n {children}\n </div>\n </GlobalProvider>);\n};\n\nexport {usePreset};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n const setGlobalHandler = useRefCallback((value) => {\n contextValue.setGlobal((global) => {\n return typeof value === \"function\" ? Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n }) : Object.assign({}, global, {\n [globalKey]: value,\n });\n });\n });\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: setGlobalHandler,\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n if (typeof children === 'function') {\n return children({global, setGlobal});\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\n};\n\nexport const GlobalInfo = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n return children({global, setGlobal});\n};\n\nconst Global = ({children, className, ...props}) => {\n return (<ErrorBoundary\n errorRender={() => {\n return (<Result\n status=\"500\"\n title=\"500\"\n subTitle=\"程序出现异常,请刷新后重试\"\n />);\n }}\n >\n <GlobalProvider {...props}>\n <div\n data-testid=\"components-core-global\"\n className={classnames(style[\"container\"], \"container-body\", className)}\n >\n {children}\n </div>\n </GlobalProvider>\n </ErrorBoundary>);\n};\n\nexport default Global;\n","import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n"],"names":["at","n","Math","trunc","this","length","TypedArray","Reflect","getPrototypeOf","Int8Array","C","Array","String","Object","defineProperty","prototype","value","writable","enumerable","configurable","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useEffect","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","concat","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","onClick","type","map","_ref2","index","ButtonComponent","autoClose","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","Button","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","assign","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","modalFunc","localeCache","Map","WrappedComponent","global","useGlobalContext","currentLocale","Fetch","params","loader","has","get","then","default","localMessages","set","render","data","messages","InnerProvider","withFetch","ReactIntlProvider","baseLocale","localMessageRef","currentMessages","merge","transform","results","FormattedMessage","id","moduleId","IntlFormattedMessage","text","join","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","ReactProvider","preset","usePreset","isMobile","test","navigator","userAgent","dayjs","module","localeLoader","document","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","getScrollEl","ConfigProvider","message","themeToken","colorPrimary","isInit","setIsInit","_Object$assign","components","otherToken","colorPrimaryObject","Color","styleEl","head","querySelector","createElement","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","replace","result","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorError","colorInfo","colorSuccess","colorWarning","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","globalKey","contextValue","setGlobalHandler","useRefCallback","console","warn","SetGlobal","needReady","prevValueRef","isEqual","GetGlobal","GlobalInfo","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","modalProps","onError","fetchApi","useFetch","auto","isLoading","error","refresh","errorHandler","modalFuncHandler","modalApi","loading","onSuccess","getContainerBody"],"ignoreList":[],"sourceRoot":""}