@kne-components/components-core 0.4.63 → 0.4.64
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.
- package/build/asset-manifest.json +84 -84
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/2753.abbddab6.chunk.css +2 -0
- package/build/static/css/{2753.b8d1e9f2.chunk.css.map → 2753.abbddab6.chunk.css.map} +1 -1
- package/build/static/css/{3639.fa4e75df.chunk.css → 3639.fd65b57a.chunk.css} +2 -2
- package/build/static/css/{3639.fa4e75df.chunk.css.map → 3639.fd65b57a.chunk.css.map} +1 -1
- package/build/static/css/{3771.91c2425c.chunk.css → 3771.c7c8c5a3.chunk.css} +2 -2
- package/build/static/css/{3771.91c2425c.chunk.css.map → 3771.c7c8c5a3.chunk.css.map} +1 -1
- package/build/static/css/{3790.60d2ceb6.chunk.css → 3790.28edc00f.chunk.css} +2 -2
- package/build/static/css/{3790.60d2ceb6.chunk.css.map → 3790.28edc00f.chunk.css.map} +1 -1
- package/build/static/css/3841.219b9e91.chunk.css +2 -0
- package/build/static/css/{3841.ae72d7a4.chunk.css.map → 3841.219b9e91.chunk.css.map} +1 -1
- package/build/static/css/3874.61a60faa.chunk.css +2 -0
- package/build/static/css/{3874.f47ca7c9.chunk.css.map → 3874.61a60faa.chunk.css.map} +1 -1
- package/build/static/css/{4302.49525f40.chunk.css → 4302.b266e98f.chunk.css} +2 -2
- package/build/static/css/{4302.49525f40.chunk.css.map → 4302.b266e98f.chunk.css.map} +1 -1
- package/build/static/css/4666.83a4e505.chunk.css +2 -0
- package/build/static/css/{4666.e0fdafd4.chunk.css.map → 4666.83a4e505.chunk.css.map} +1 -1
- package/build/static/css/5834.9ab80940.chunk.css +2 -0
- package/build/static/css/{5834.409213d0.chunk.css.map → 5834.9ab80940.chunk.css.map} +1 -1
- package/build/static/css/{6763.787317f6.chunk.css → 6763.f66314c4.chunk.css} +2 -2
- package/build/static/css/{6763.787317f6.chunk.css.map → 6763.f66314c4.chunk.css.map} +1 -1
- package/build/static/css/6890.95408596.chunk.css +2 -0
- package/build/static/css/{6890.d6ccf9f2.chunk.css.map → 6890.95408596.chunk.css.map} +1 -1
- package/build/static/css/7227.e2335b57.chunk.css +2 -0
- package/build/static/css/{7227.8bcf95e0.chunk.css.map → 7227.e2335b57.chunk.css.map} +1 -1
- package/build/static/css/{760.c978e562.chunk.css → 760.063d2f98.chunk.css} +2 -2
- package/build/static/css/{760.c978e562.chunk.css.map → 760.063d2f98.chunk.css.map} +1 -1
- package/build/static/css/7854.1d89881f.chunk.css +2 -0
- package/build/static/css/{7854.81302b72.chunk.css.map → 7854.1d89881f.chunk.css.map} +1 -1
- package/build/static/css/8221.e14f1ecb.chunk.css +2 -0
- package/build/static/css/{8221.494387ff.chunk.css.map → 8221.e14f1ecb.chunk.css.map} +1 -1
- package/build/static/css/{8593.89a28a03.chunk.css → 8593.83a79053.chunk.css} +2 -2
- package/build/static/css/{8593.89a28a03.chunk.css.map → 8593.83a79053.chunk.css.map} +1 -1
- package/build/static/css/9556.ebd5a150.chunk.css +2 -0
- package/build/static/css/{9556.499ce3d6.chunk.css.map → 9556.ebd5a150.chunk.css.map} +1 -1
- package/build/static/css/9666.4cfca091.chunk.css +2 -0
- package/build/static/css/{9666.14ab373a.chunk.css.map → 9666.4cfca091.chunk.css.map} +1 -1
- package/build/static/css/9755.9fbf467d.chunk.css +2 -0
- package/build/static/css/{9755.a8331173.chunk.css.map → 9755.9fbf467d.chunk.css.map} +1 -1
- package/build/static/js/{2833.793511fa.chunk.js → 2833.10809f75.chunk.js} +2 -2
- package/build/static/js/2833.10809f75.chunk.js.map +1 -0
- package/build/static/js/{3639.8f72752d.chunk.js → 3639.d6ad4730.chunk.js} +2 -2
- package/build/static/js/{3639.8f72752d.chunk.js.map → 3639.d6ad4730.chunk.js.map} +1 -1
- package/build/static/js/3771.ff1dabb1.chunk.js +2 -0
- package/build/static/js/{3771.90459c25.chunk.js.map → 3771.ff1dabb1.chunk.js.map} +1 -1
- package/build/static/js/{3790.fa0bb2ec.chunk.js → 3790.522f81cb.chunk.js} +2 -2
- package/build/static/js/{3790.fa0bb2ec.chunk.js.map → 3790.522f81cb.chunk.js.map} +1 -1
- package/build/static/js/{3841.27a47188.chunk.js → 3841.a157ee0a.chunk.js} +2 -2
- package/build/static/js/{3841.27a47188.chunk.js.map → 3841.a157ee0a.chunk.js.map} +1 -1
- package/build/static/js/3856.6c6de252.chunk.js +2 -0
- package/build/static/js/3856.6c6de252.chunk.js.map +1 -0
- package/build/static/js/{3874.86802294.chunk.js → 3874.d84933e3.chunk.js} +3 -3
- package/build/static/js/{3874.86802294.chunk.js.map → 3874.d84933e3.chunk.js.map} +1 -1
- package/build/static/js/4302.70432be0.chunk.js +2 -0
- package/build/static/js/{4302.e10ccec5.chunk.js.map → 4302.70432be0.chunk.js.map} +1 -1
- package/build/static/js/{4474.9318d571.chunk.js → 4474.65aba3bd.chunk.js} +2 -2
- package/build/static/js/{4474.9318d571.chunk.js.map → 4474.65aba3bd.chunk.js.map} +1 -1
- package/build/static/js/{4666.64e67752.chunk.js → 4666.ca6b5d86.chunk.js} +3 -3
- package/build/static/js/{4666.64e67752.chunk.js.map → 4666.ca6b5d86.chunk.js.map} +1 -1
- package/build/static/js/5834.603b25c5.chunk.js +2 -0
- package/build/static/js/{5834.0ffdcc4a.chunk.js.map → 5834.603b25c5.chunk.js.map} +1 -1
- package/build/static/js/6763.f608e6c0.chunk.js +2 -0
- package/build/static/js/{6763.04d4503b.chunk.js.map → 6763.f608e6c0.chunk.js.map} +1 -1
- package/build/static/js/{7227.50b81d09.chunk.js → 7227.038e66d8.chunk.js} +3 -3
- package/build/static/js/{7227.50b81d09.chunk.js.map → 7227.038e66d8.chunk.js.map} +1 -1
- package/build/static/js/{760.b4c97d01.chunk.js → 760.3fe4c6d8.chunk.js} +2 -2
- package/build/static/js/{760.b4c97d01.chunk.js.map → 760.3fe4c6d8.chunk.js.map} +1 -1
- package/build/static/js/7854.f0785042.chunk.js +2 -0
- package/build/static/js/{7854.1ecd2ba7.chunk.js.map → 7854.f0785042.chunk.js.map} +1 -1
- package/build/static/js/{7857.0a1e8f3b.chunk.js → 7857.2c025dc4.chunk.js} +2 -2
- package/build/static/js/{7857.0a1e8f3b.chunk.js.map → 7857.2c025dc4.chunk.js.map} +1 -1
- package/build/static/js/{8221.92f02c77.chunk.js → 8221.0e92b082.chunk.js} +2 -2
- package/build/static/js/{8221.92f02c77.chunk.js.map → 8221.0e92b082.chunk.js.map} +1 -1
- package/build/static/js/8593.cc6d9db5.chunk.js +2 -0
- package/build/static/js/{8593.8f1d700a.chunk.js.map → 8593.cc6d9db5.chunk.js.map} +1 -1
- package/build/static/js/{9556.098e8cb7.chunk.js → 9556.af8681ad.chunk.js} +3 -3
- package/build/static/js/{9556.098e8cb7.chunk.js.map → 9556.af8681ad.chunk.js.map} +1 -1
- package/build/static/js/9666.8c801873.chunk.js +2 -0
- package/build/static/js/{9666.c58faba9.chunk.js.map → 9666.8c801873.chunk.js.map} +1 -1
- package/build/static/js/{9755.6427cfc7.chunk.js → 9755.a2c3d4b9.chunk.js} +2 -2
- package/build/static/js/{9755.6427cfc7.chunk.js.map → 9755.a2c3d4b9.chunk.js.map} +1 -1
- package/build/static/js/{main.e88e88ec.js → main.91a4f0fd.js} +2 -2
- package/build/static/js/{main.e88e88ec.js.map → main.91a4f0fd.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/2753.b8d1e9f2.chunk.css +0 -2
- package/build/static/css/3841.ae72d7a4.chunk.css +0 -2
- package/build/static/css/3874.f47ca7c9.chunk.css +0 -2
- package/build/static/css/4666.e0fdafd4.chunk.css +0 -2
- package/build/static/css/5834.409213d0.chunk.css +0 -2
- package/build/static/css/6890.d6ccf9f2.chunk.css +0 -2
- package/build/static/css/7227.8bcf95e0.chunk.css +0 -2
- package/build/static/css/7854.81302b72.chunk.css +0 -2
- package/build/static/css/8221.494387ff.chunk.css +0 -2
- package/build/static/css/9556.499ce3d6.chunk.css +0 -2
- package/build/static/css/9666.14ab373a.chunk.css +0 -2
- package/build/static/css/9755.a8331173.chunk.css +0 -2
- package/build/static/js/2833.793511fa.chunk.js.map +0 -1
- package/build/static/js/3771.90459c25.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js.map +0 -1
- package/build/static/js/4302.e10ccec5.chunk.js +0 -2
- package/build/static/js/5834.0ffdcc4a.chunk.js +0 -2
- package/build/static/js/6763.04d4503b.chunk.js +0 -2
- package/build/static/js/7854.1ecd2ba7.chunk.js +0 -2
- package/build/static/js/8593.8f1d700a.chunk.js +0 -2
- package/build/static/js/9666.c58faba9.chunk.js +0 -2
- /package/build/static/js/{3874.86802294.chunk.js.LICENSE.txt → 3874.d84933e3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.64e67752.chunk.js.LICENSE.txt → 4666.ca6b5d86.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.50b81d09.chunk.js.LICENSE.txt → 7227.038e66d8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.098e8cb7.chunk.js.LICENSE.txt → 9556.af8681ad.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,7857],{73025(e,t,o){"use strict";o.d(t,{A:()=>u});var n=o(89379),r=o(53986),l=o(73884),a=o(87558),s=o(96418),c=o(55199),i=o(70579);const d=["api","modalProps","modalFunc","onError"],u=e=>{let{api:t,modalProps:o={},modalFunc:u,onError:f}=e,m=(0,r.A)(e,d);const h=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:p,data:_,error:b,refresh:g}=h,y=(0,s.default)(f),C=(0,s.default)(()=>{const e=u("function"===typeof o?o({data:_,fetchApi:h,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{p||(b?y(b):_&&C())},[p,b,_,C,y]),(0,i.jsx)(c.Button,(0,n.A)((0,n.A)({},m),{},{loading:p,onClick:()=>{g({onSuccess:()=>{}})}}))}},76801(e,t,o){"use strict";o.d(t,{c:()=>r,h:()=>n});const n=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>R,DrawerButton:()=>H,default:()=>U,useDrawer:()=>q});var n=o(20454),r=o(89379),l=o(53986),a=o(55199),s=o(83136),c=o.n(s);const i="style_drawer__hA8bn__S130S",d="style_drawer-outer__vuEIf__S130S",u="style_drawer-title__71eaW__S130S",f="style_drawer-body__frw9I__S130S",m="style_is-disabled-scroller__ZsITw__S130S",h="style_drawer-body-inner__lci9Z__S130S",p="style_drawer-footer__1g8o1__S130S",_="style_drawer-close__bpxnp__S130S",b=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var g=o(47458),y=o(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 S=o(70579);const w=(0,y.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,y.useState)(!0),[s,c]=(0,y.useState)(o),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const n=t.some(e=>e&&e.triggerCancel);s.onClose&&n&&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,S.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:n,onClose:i}))});let A=0;function x(e){return(0,r.A)({},e)}const j=[],v=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[o,n]=C();return(0,y.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,S.jsx)(S.Fragment,{children:o})}));const P=function(){const e=(0,y.useRef)(null),[t,o]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,y.useCallback)(t=>function(n){var r;A+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,S.jsx)(w,{config:t(n),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&&j.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>n(x),[n]),(0,S.jsx)(v,{ref:e},"drawer-holder")]},k=(0,y.createContext)({}),{Provider:N}=k,G=e=>{const{children:t}=e,[o,n]=P(),r=(0,y.useMemo)(()=>({drawer:o}),[o]);return(0,S.jsx)(N,{value:r,children:(0,S.jsxs)("div",{children:[n,t]})})};G.useAppDrawer=()=>(0,y.useContext)(k);const R=G;var L=o(81014),M=o(71298),E=o(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,F=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:s,onClose:c}=e;return(0,S.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,S.jsx)(a.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,S.jsx)(a.Col,{children:(0,S.jsx)(a.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:n}]).map((e,t)=>{let{ButtonComponent:o,onClick:n,autoClose:a=!0}=e,s=(0,l.A)(e,B);const i=o||L.default;return(0,y.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(n&&n(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},T=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!n&&new M.default(C.current)},[n]),(0,S.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,S.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(_,"drawer-close"),type:"text",icon:(0,S.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,S.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,S.jsx)("div",{className:c()(f,"drawer-body",{[m]:n}),ref:C,children:(0,S.jsx)("div",{className:c()(h,"drawer-body-inner"),children:g})}),null!==o||r?(0,S.jsx)("div",{className:c()(p,"drawer-footer"),children:(0,S.jsx)(F,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},z=e=>{let{withDecorator:t,footerButtons:o,title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const f=e=>(e=Object.assign({},e),(0,S.jsx)(T,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:D(o,(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(f):f({})},V=e=>{let{children:t,footer:o,footerButtons:n,className:a,size:s,title:d,onClose:u,onConfirm:f,onCancel:m,closable:h,disabledScroller:p,withDecorator:_}=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,S.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:z({withDecorator:_,title:d,closable:h,onClose:u,onConfirm:f,onCancel:m,footer:o,footerButtons:n,disabledScroller:p,children:t})})});var C},q=()=>{const{drawer:e}=R.useAppDrawer();return t=>{const o={},l=V((0,r.A)({onClose:()=>o.close()},t)),a=Object.assign({},((0,n.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return o.close=s,o}},U=e=>{let{size:t="small"}=e,o=(0,l.A)(e,O);return(0,S.jsx)(a.Drawer,(0,r.A)({},V((0,r.A)({size:t},o))))};var W=o(73025);const H=e=>{const t=q();return(0,S.jsx)(W.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>K,GlobalProvider:()=>q,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>U,SetGlobal:()=>H,containerClassName:()=>T,default:()=>Z,useGlobalContext:()=>W,useGlobalValue:()=>s.useGlobalValue,usePreset:()=>s.usePreset});var n=o(89379),r=o(53986),l=(o(3870),o(21683),o(83136)),a=o.n(l),s=o(83694),c=o(55199),i=o(73884),d=o(71298),u=o(36755),f=o(76801);const m=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var h=o(87558),p=o(57469),_=o.n(p),b=o(52526);const g=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),_().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),_().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},y={container:"style_container__k+uRt__S130S","is-not-init":"style_is-not-init__BZN0v__S130S","loading-rotate":"style_loading-rotate__kLLHV__S130S",total_text:"style_total_text__oNKMr__S130S","ant-pagination":"style_ant-pagination__4LRg7__S130S","ant-pagination-options":"style_ant-pagination-options__mp-tz__S130S","ant-select-single":"style_ant-select-single__mL6Zt__S130S","ant-select-selector":"style_ant-select-selector__+111I__S130S","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__S130S","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__S130S","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__S130S"};var C=o(33097),S=o.n(C),w=o(25963),A=o(64671),x=o(96418),j=o(22717),v=o.n(j),P=o(96604),k=o.n(P),N=o(25806),G=o.n(N),R=o(13050),L=o(56641),M=o.n(L);const E=(e,t)=>M()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var B=o(70579);const I=["colorPrimary","components"],O=["preset","children","themeToken","init"],D=["children"],F=["children","className"];document.body.classList.add(y.container),m()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new d.default(document.body),(0,f.h)().classList.add(y.container));const T=y.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),z=(0,h.withFetch)(e=>{let{data:t,themeToken:o,children:l}=e;const[a,s]=(0,i.useState)(!1),d=Object.assign({},{colorPrimary:"#4096ff"},o),{colorPrimary:u,components:m}=d,h=(0,r.A)(d,I),p=(0,i.useMemo)(()=>G()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(T)),t=getComputedStyle(e);b({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,i.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":u,"--primary-color-red":p.red(),"--primary-color-green":p.green(),"--primary-color-blue":p.blue(),"--primary-color-06":p.alpha(.06).string()};return k()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(T,"{").concat(v()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,p]),a?(0,B.jsx)(c.ConfigProvider,{getTargetContainer:f.h,getPopupContainer:f.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:m,token:Object.assign({},(0,n.A)((0,n.A)({},_),{},{colorPrimary:u,colorPrimaryBg:p.alpha(.1).string(),colorLink:u,colorTextBase:"#222222",colorText:"#222222"}),h)},children:l}):null}),V=(0,R.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(A.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,B.jsx)(A.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),q=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,O);const d=S()(t,"locale","zh-CN"),u=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,B.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:f,locale:d},S()(t,"global")),children:(0,B.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,B.jsxs)(z,{loader:g,params:{locale:t},themeToken:n,children:[(0,B.jsx)(c.App,{message:{top:100},children:(0,B.jsx)(w.AppDrawer,{children:"function"===typeof l?(0,B.jsx)(h.default,{loader:()=>l(),render:()=>o}):o})}),(0,B.jsx)(V,{})]})}})})},U=e=>{let{children:t}=e,o=(0,r.A)(e,D);const l=(0,s.useGlobalValue)("themeToken");return(0,B.jsx)(q,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,B.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(y.container,"core-container-body"),children:t})}))},W=e=>{const t=(0,s.useGlobalContext)(),o=(0,x.default)(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(S()(t,e))}):Object.assign({},t,{[e]:o}))});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:S()(t.global,e),setGlobal:o}:{})},H=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=W(t),s=(0,x.default)(a),c=(0,i.useRef)(null);return c.current=l,(0,i.useEffect)(()=>{E(c.current,o)||(c.current=o,s(o))},[o,s]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},K=e=>{let{globalKey:t,children:o}=e;const{global:n}=W(t);return o({value:n})},Z=e=>{let{children:t,className:o}=e,l=(0,r.A)(e,F);return(0,B.jsx)(u.A,{errorRender:()=>(0,B.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,B.jsx)(q,(0,n.A)((0,n.A)({},l),{},{children:(0,B.jsx)("div",{"data-testid":"components-core-global",className:a()(y.container,"container-body",o),children:t})}))})}},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 o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.default});var n=o(48781),r={};for(const l in n)"default"!==l&&(r[l]=()=>n[l]);o.d(t,r)},47458(e,t,o){"use strict";o.r(t),o.d(t,{FormattedMessage:()=>S,IntlProvider:()=>C,createWithIntl:()=>A,createWithLocale:()=>b,default:()=>x,useIntl:()=>w});var n=o(89379),r=o(53986),l=o(87558),a=o(61032),s=o(72752),c=o(73884),i=o(34677),d=o.n(i),u=o(22717),f=o.n(u),m=o(33097),h=o.n(m),p=o(70579);const _=new Map,b=e=>{let{moduleName:t,importMessages:o}=e;return e=>(0,c.forwardRef)((r,a)=>{const{global:c}=(0,s.useGlobalContext)("locale"),i=c||"zh-CN";return(0,p.jsx)(l.default,{params:{locale:i},loader:e=>{let{params:n}=e;const{locale:r}=n,l="".concat(t,"_").concat(r);return _.has(l)?_.get(l):Promise.resolve(o(r)).then(e=>{let{default:t}=e;return _.set(l,t),t})},render:t=>{let{data:o}=t;return(0,p.jsx)(e,(0,n.A)((0,n.A)({},r),{},{locale:o,ref:a}))}})})},g=["id","moduleName","children"],y=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,p.jsx)(a.IntlProvider,{locale:n,messages:o,children:t})}),C=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,s.useGlobalContext)(),c=t||a||"zh-CN";return(0,p.jsx)(y,{locale:c,params:{locale:c},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=d()({},l.current,f()(t,(e,t,o)=>{e["".concat(n,"_").concat(o)]=t}));return l.current=o,o})},children:r})},S=e=>{let{id:t,moduleName:o="Global",children:l}=e,s=(0,r.A)(e,g);const c="".concat(o,"_").concat(t);return"function"===typeof l?(0,p.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c,children:e=>l(e&&e.join(""))})):(0,p.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c}))},w=e=>{let t=h()(e,"moduleName")||"Global";const{formatMessage:o}=(0,a.useIntl)(),n=(0,c.useCallback)((e,n)=>(e.id="".concat(t,"_").concat(e.id),o(e,n)),[t,o]);return{formatMessage:n}},A=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,c.forwardRef)((r,l)=>(0,p.jsx)(C,{importMessages:t,moduleName:o,children:(0,p.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))},x=S},81014(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.LoadingButton,useLoading:()=>n.useLoading});o(9056);var n=o(70703)},70579(e,t,o){"use strict";e.exports=o(51153)}}]);
|
|
2
|
-
//# sourceMappingURL=7857.
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,7857],{73025(e,t,o){"use strict";o.d(t,{A:()=>d});var n=o(89379),r=o(53986),l=o(73884),a=o(87558),s=o(96418),c=o(55199),i=o(70579);const u=["api","modalProps","modalFunc","onError"],d=e=>{let{api:t,modalProps:o={},modalFunc:d,onError:f}=e,m=(0,r.A)(e,u);const h=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:p,data:_,error:b,refresh:g}=h,y=(0,s.default)(f),C=(0,s.default)(()=>{const e=d("function"===typeof o?o({data:_,fetchApi:h,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{p||(b?y(b):_&&C())},[p,b,_,C,y]),(0,i.jsx)(c.Button,(0,n.A)((0,n.A)({},m),{},{loading:p,onClick:()=>{g({onSuccess:()=>{}})}}))}},76801(e,t,o){"use strict";o.d(t,{c:()=>r,h:()=>n});const n=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>G,DrawerButton:()=>H,default:()=>U,useDrawer:()=>q});var n=o(20454),r=o(89379),l=o(53986),a=o(55199),s=o(83136),c=o.n(s);const i="style_drawer__hA8bn__u6fDa",u="style_drawer-outer__vuEIf__u6fDa",d="style_drawer-title__71eaW__u6fDa",f="style_drawer-body__frw9I__u6fDa",m="style_is-disabled-scroller__ZsITw__u6fDa",h="style_drawer-body-inner__lci9Z__u6fDa",p="style_drawer-footer__1g8o1__u6fDa",_="style_drawer-close__bpxnp__u6fDa",b=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var g=o(47458),y=o(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 w=o(70579);const A=(0,y.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,y.useState)(!0),[s,c]=(0,y.useState)(o),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const n=t.some(e=>e&&e.triggerCancel);s.onClose&&n&&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,w.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:n,onClose:i}))});let x=0;function j(e){return(0,r.A)({},e)}const v=[],P=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[o,n]=C();return(0,y.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,w.jsx)(w.Fragment,{children:o})}));const k=function(){const e=(0,y.useRef)(null),[t,o]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,y.useCallback)(t=>function(n){var r;x+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,w.jsx)(A,{config:t(n),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(x));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():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>n(j),[n]),(0,w.jsx)(P,{ref:e},"drawer-holder")]},D=(0,y.createContext)({}),{Provider:S}=D,N=e=>{const{children:t}=e,[o,n]=k(),r=(0,y.useMemo)(()=>({drawer:o}),[o]);return(0,w.jsx)(S,{value:r,children:(0,w.jsxs)("div",{children:[n,t]})})};N.useAppDrawer=()=>(0,y.useContext)(D);const G=N;var R=o(81014),L=o(71298),M=o(64671);const E=["ButtonComponent","onClick","autoClose"],B=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],I=["size"],O=(e,t)=>"function"===typeof e?e(t):e,F=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:s,onClose:c}=e;return(0,w.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,w.jsx)(a.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,w.jsx)(a.Col,{children:(0,w.jsx)(a.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:n}]).map((e,t)=>{let{ButtonComponent:o,onClick:n,autoClose:a=!0}=e,s=(0,l.A)(e,E);const i=o||R.default;return(0,y.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(n&&n(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},T=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!n&&new L.default(C.current)},[n]),(0,w.jsxs)("div",{className:u,"data-testid":"components-core-drawer",children:[!1===s?null:(0,w.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(_,"drawer-close"),type:"text",icon:(0,w.jsx)(M.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,w.jsx)("div",{className:c()(d,"drawer-title"),children:t}),(0,w.jsx)("div",{className:c()(f,"drawer-body",{[m]:n}),ref:C,children:(0,w.jsx)("div",{className:c()(h,"drawer-body-inner"),children:g})}),null!==o||r?(0,w.jsx)("div",{className:c()(p,"drawer-footer"),children:(0,w.jsx)(F,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},z=e=>{let{withDecorator:t,footerButtons:o,title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:u,children:d}=e;const f=e=>(e=Object.assign({},e),(0,w.jsx)(T,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:O(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:u,footer:O(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:O(d,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(f):f({})},V=e=>{let{children:t,footer:o,footerButtons:n,className:a,size:s,title:u,onClose:d,onConfirm:f,onCancel:m,closable:h,disabledScroller:p,withDecorator:_}=e,y=(0,l.A)(e,B);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:d,className:c()(a,i)},"large"===(C=s)?{width:"calc(100vw - 64px)"}:"small"===C?{width:"600px"}:{width:"1000px"}),{},{children:(0,w.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:z({withDecorator:_,title:u,closable:h,onClose:d,onConfirm:f,onCancel:m,footer:o,footerButtons:n,disabledScroller:p,children:t})})});var C},q=()=>{const{drawer:e}=G.useAppDrawer();return t=>{const o={},l=V((0,r.A)({onClose:()=>o.close()},t)),a=Object.assign({},((0,n.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return o.close=s,o}},U=e=>{let{size:t="small"}=e,o=(0,l.A)(e,I);return(0,w.jsx)(a.Drawer,(0,r.A)({},V((0,r.A)({size:t},o))))};var W=o(73025);const H=e=>{const t=q();return(0,w.jsx)(W.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>K,GlobalProvider:()=>q,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>U,SetGlobal:()=>H,containerClassName:()=>T,default:()=>Z,useGlobalContext:()=>W,useGlobalValue:()=>s.useGlobalValue,usePreset:()=>s.usePreset});var n=o(89379),r=o(53986),l=(o(3870),o(21683),o(83136)),a=o.n(l),s=o(83694),c=o(55199),i=o(73884),u=o(71298),d=o(36755),f=o(76801);const m=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var h=o(87558),p=o(57469),_=o.n(p),b=o(52526);const g=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),_().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),_().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},y={container:"style_container__k+uRt__u6fDa","is-not-init":"style_is-not-init__BZN0v__u6fDa","loading-rotate":"style_loading-rotate__kLLHV__u6fDa",total_text:"style_total_text__oNKMr__u6fDa","ant-pagination":"style_ant-pagination__4LRg7__u6fDa","ant-pagination-options":"style_ant-pagination-options__mp-tz__u6fDa","ant-select-single":"style_ant-select-single__mL6Zt__u6fDa","ant-select-selector":"style_ant-select-selector__+111I__u6fDa","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__u6fDa","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__u6fDa","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__u6fDa"};var C=o(33097),w=o.n(C),A=o(25963),x=o(64671),j=o(96418),v=o(22717),P=o.n(v),k=o(96604),D=o.n(k),S=o(25806),N=o.n(S),G=o(13050),R=o(56641),L=o.n(R);const M=(e,t)=>L()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var E=o(70579);const B=["colorPrimary","components"],I=["preset","children","themeToken","init"],O=["children"],F=["children","className"];document.body.classList.add(y.container),m()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new u.default(document.body),(0,f.h)().classList.add(y.container));const T=y.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),z=(0,h.withFetch)(e=>{let{data:t,themeToken:o,children:l}=e;const[a,s]=(0,i.useState)(!1),u=Object.assign({},{colorPrimary:"#4096ff"},o),{colorPrimary:d,components:m}=u,h=(0,r.A)(u,B),p=(0,i.useMemo)(()=>N()(d),[d]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(T)),t=getComputedStyle(e);b({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,i.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 D()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(T,"{").concat(P()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[d,p]),a?(0,E.jsx)(c.ConfigProvider,{getTargetContainer:f.h,getPopupContainer:f.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:m,token:Object.assign({},(0,n.A)((0,n.A)({},_),{},{colorPrimary:d,colorPrimaryBg:p.alpha(.1).string(),colorLink:d,colorTextBase:"#222222",colorText:"#222222"}),h)},children:l}):null}),V=(0,G.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(x.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,E.jsx)(x.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),q=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,I);const u=w()(t,"locale","zh-CN"),d=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,E.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:d,enumsRef:f,locale:u},w()(t,"global")),children:(0,E.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,E.jsxs)(z,{loader:g,params:{locale:t},themeToken:n,children:[(0,E.jsx)(c.App,{message:{top:100},children:(0,E.jsx)(A.AppDrawer,{children:"function"===typeof l?(0,E.jsx)(h.default,{loader:()=>l(),render:()=>o}):o})}),(0,E.jsx)(V,{})]})}})})},U=e=>{let{children:t}=e,o=(0,r.A)(e,O);const l=(0,s.useGlobalValue)("themeToken");return(0,E.jsx)(q,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,E.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(y.container,"core-container-body"),children:t})}))},W=e=>{const t=(0,s.useGlobalContext)(),o=(0,j.default)(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(w()(t,e))}):Object.assign({},t,{[e]:o}))});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:w()(t.global,e),setGlobal:o}:{})},H=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=W(t),s=(0,j.default)(a),c=(0,i.useRef)(null);return c.current=l,(0,i.useEffect)(()=>{M(c.current,o)||(c.current=o,s(o))},[o,s]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},K=e=>{let{globalKey:t,children:o}=e;const{global:n}=W(t);return o({value:n})},Z=e=>{let{children:t,className:o}=e,l=(0,r.A)(e,F);return(0,E.jsx)(d.A,{errorRender:()=>(0,E.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,E.jsx)(q,(0,n.A)((0,n.A)({},l),{},{children:(0,E.jsx)("div",{"data-testid":"components-core-global",className:a()(y.container,"container-body",o),children:t})}))})}},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 o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.default});var n=o(48781),r={};for(const l in n)"default"!==l&&(r[l]=()=>n[l]);o.d(t,r)},47458(e,t,o){"use strict";o.r(t),o.d(t,{FormattedMessage:()=>w,IntlProvider:()=>C,createWithIntl:()=>x,createWithLocale:()=>b,default:()=>j,useIntl:()=>A});var n=o(89379),r=o(53986),l=o(87558),a=o(61032),s=o(72752),c=o(73884),i=o(34677),u=o.n(i),d=o(22717),f=o.n(d),m=o(33097),h=o.n(m),p=o(70579);const _=new Map,b=e=>{let{moduleName:t,importMessages:o}=e;return e=>(0,c.forwardRef)((r,a)=>{const{global:c}=(0,s.useGlobalContext)("locale"),i=c||"zh-CN";return(0,p.jsx)(l.default,{params:{locale:i},loader:e=>{let{params:n}=e;const{locale:r}=n,l="".concat(t,"_").concat(r);return _.has(l)?_.get(l):Promise.resolve(o(r)).then(e=>{let{default:t}=e;return _.set(l,t),t})},render:t=>{let{data:o}=t;return(0,p.jsx)(e,(0,n.A)((0,n.A)({},r),{},{locale:o,ref:a}))}})})},g=["id","moduleName","children"],y=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,p.jsx)(a.IntlProvider,{locale:n,messages:o,children:t})}),C=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,s.useGlobalContext)(),c=t||a||"zh-CN";return(0,p.jsx)(y,{locale:c,params:{locale:c},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=u()({},l.current,f()(t,(e,t,o)=>{e["".concat(n,"_").concat(o)]=t}));return l.current=o,o})},children:r})},w=e=>{let{id:t,moduleName:o="Global",children:l}=e,s=(0,r.A)(e,g);const c="".concat(o,"_").concat(t);return"function"===typeof l?(0,p.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c,children:e=>l(e&&e.join(""))})):(0,p.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c}))},A=e=>{let t=h()(e,"moduleName")||"Global";const{formatMessage:o}=(0,a.useIntl)(),n=(0,c.useCallback)((e,n)=>(e.id="".concat(t,"_").concat(e.id),o(e,n)),[t,o]);return{formatMessage:n}},x=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,c.forwardRef)((r,l)=>(0,p.jsx)(C,{importMessages:t,moduleName:o,children:(0,p.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))},j=w},81014(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.LoadingButton,useLoading:()=>n.useLoading});o(9056);var n=o(70703)},70579(e,t,o){"use strict";e.exports=o(51153)}}]);
|
|
2
|
+
//# sourceMappingURL=7857.2c025dc4.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/7857.0a1e8f3b.chunk.js","mappings":"0SAyCA,EApCoBA,IAA2D,IAA1D,IAACC,EAAG,WAAEC,EAAa,CAAC,EAAC,UAAEC,EAAS,QAAEC,GAAkBJ,EAANK,GAAKC,EAAAA,EAAAA,GAAAN,EAAAO,GACpE,MAAMC,GAAWC,EAAAA,EAAAA,UAASC,OAAOC,OAAO,CAAC,EAAGV,EAAK,CAACW,MAAM,MAClD,UAACC,EAAS,KAAEC,EAAI,MAAEC,EAAK,QAAEC,GAAWR,EACpCS,GAAeC,EAAAA,EAAAA,SAAed,GAC9Be,GAAmBD,EAAAA,EAAAA,SAAe,KACpC,MAAME,EAAWjB,EAAgC,oBAAfD,EAA4BA,EAAW,CACrEY,OAAMN,WAAUa,MAAOA,KACnBD,EAASC,WAEZnB,KAeT,OAbAoB,EAAAA,EAAAA,WAAU,KACFT,IAGAE,EACAE,EAAaF,GAGZD,GAGLK,MACD,CAACN,EAAWE,EAAOD,EAAMK,EAAkBF,KACtCM,EAAAA,EAAAA,KAACC,EAAAA,QAAMC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPpB,GAAK,IACTqB,QAASb,EACTc,QAASA,KACLX,EAAQ,CACJY,UAAWA,a,qDClCpB,MAAMC,EAAcA,IAAMC,SAASC,cAAc,8BAC3CC,EAAmBA,IAA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GAAKpB,GAAK,IAAE2N,GAAI0G,EAAS7P,SAChD+P,GACS/P,EAAS+P,GAAQA,EAAK/F,KAAK,SAIvCtN,EAAAA,EAAAA,KAACoT,EAAAA,kBAAoBlT,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKpB,GAAK,IAAE2N,GAAI0G,MAGnCG,EAAWxU,IACpB,IAAIqK,EAAa8F,IAAInQ,EAAO,eAAiB,SAC7C,MAAM,cAACyU,IAAiBC,EAAAA,EAAAA,WAClBC,GAAsBxS,EAAAA,EAAAA,aAAY,CAACnC,EAAO4U,KAC5C5U,EAAM2N,GAAE,GAAAnI,OAAM6E,EAAU,KAAA7E,OAAIxF,EAAM2N,IAC3B8G,EAAczU,EAAO4U,IAC7B,CAACvK,EAAYoK,IAChB,MAAO,CACHA,cAAeE,IAIVE,EAAiBpK,IAAA,IAAC,eAACL,EAAc,WAAEC,GAAWI,EAAA,OAAM8I,IAAqB/Q,EAAAA,EAAAA,YAAW,CAACxC,EAAO0C,KACrGxB,EAAAA,EAAAA,KAACiJ,EAAY,CAACC,eAAgBA,EAAgBC,WAAYA,EAAW7F,UACjEtD,EAAAA,EAAAA,KAACqS,GAAgBnS,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKpB,GAAK,IAAE0C,IAAKA,SAG1C,G,sJCnEE0I,EAAO0J,QAAU,EAAjB1J,M","sources":["common/components/FetchButton.js","common/utils/importantContainer.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","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/isEqual.js","components/Global/index.js","components/Global/polyfill.js","components/Intl/createWithLocale.js","components/Intl/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["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","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__S130S\",\"drawer-outer\":\"style_drawer-outer__vuEIf__S130S\",\"drawer-title\":\"style_drawer-title__71eaW__S130S\",\"drawer-body\":\"style_drawer-body__frw9I__S130S\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__S130S\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__S130S\",\"drawer-footer\":\"style_drawer-footer__1g8o1__S130S\",\"drawer-close\":\"style_drawer-close__bpxnp__S130S\"};","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","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__S130S\",\"is-not-init\":\"style_is-not-init__BZN0v__S130S\",\"loading-rotate\":\"style_loading-rotate__kLLHV__S130S\",\"total_text\":\"style_total_text__oNKMr__S130S\",\"ant-pagination\":\"style_ant-pagination__4LRg7__S130S\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__S130S\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__S130S\",\"ant-select-selector\":\"style_ant-select-selector__+111I__S130S\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__S130S\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__S130S\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__S130S\"};","import isEqualWith from \"lodash/isEqualWith\";\n\nconst isEqual = (value, other) => {\n return isEqualWith(value, other, (objValue, othValue) => {\n // 如果值是函数或 Symbol,认为相等(跳过比较)\n if (typeof objValue === 'function' || typeof othValue === 'function' || typeof objValue === 'symbol' || typeof othValue === 'symbol') {\n return true;\n }\n // 返回 undefined 让 lodash 使用默认比较\n return undefined;\n });\n}\n\nexport default isEqual;","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {\n Global as GlobalContext, useGlobalContext as useContext, usePreset, GlobalValue, useGlobalValue, GlobalSetting\n} from \"@kne/global-context\";\nimport {App, ConfigProvider as AntdConfigProvider, Result} 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 './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\nexport const containerClassName = style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\");\n\nconst ConfigProvider = withFetch(({data: message, themeToken, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, {colorPrimary: \"#4096ff\"}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n\n const [statusColors, setStatusColors] = useState({});\n\n useEffect(() => {\n const containerEl = document.querySelector(`.${containerClassName}`);\n const styles = getComputedStyle(containerEl);\n setStatusColors({\n colorSuccess: styles.getPropertyValue(\"--state-success-color\"),\n colorError: styles.getPropertyValue(\"--state-error-color\"),\n colorWarning: styles.getPropertyValue(\"--state-warning-color\"),\n colorInfo: styles.getPropertyValue(\"--state-info-color\"),\n });\n }, []);\n\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 = `.${containerClassName}{${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 ...statusColors,\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\n const localMessageRef = useRef(null);\n const enumsRef = useRef(null);\n\n return (<GlobalContext preset={preset} initValue={Object.assign({}, props, {\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\"))}>\n <GlobalValue globalKey=\"locale\">{({value: locale}) => {\n return <ConfigProvider\n loader={loadAntdLocale}\n params={{locale}}\n themeToken={themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init()}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>;\n }}</GlobalValue>\n </GlobalContext>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const themeToken = useGlobalValue(\"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, useGlobalValue, GlobalSetting, GlobalValue};\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\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","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","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","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["_ref","api","modalProps","modalFunc","onError","props","_objectWithoutProperties","_excluded","fetchApi","useFetch","Object","assign","auto","isLoading","data","error","refresh","errorHandler","useRefCallback","modalFuncHandler","modalApi","close","useEffect","_jsx","Button","_objectSpread","loading","onClick","onSuccess","getScrollEl","document","querySelector","getContainerBody","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","ref","config","open","setOpen","innerConfig","setInnerConfig","_len","arguments","length","args","Array","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","Drawer","uuid","withConfirm","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","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","value","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","type","map","_ref2","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","isMobile","test","navigator","userAgent","params","dayjs","then","module","localeLoader","isEqual","other","isEqualWith","objValue","othValue","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","containerClassName","replace","ConfigProvider","withFetch","message","themeToken","isInit","setIsInit","_Object$assign","colorPrimary","components","otherToken","colorPrimaryObject","Color","statusColors","setStatusColors","containerEl","styles","getComputedStyle","colorSuccess","getPropertyValue","colorError","colorWarning","colorInfo","styleEl","head","createElement","id","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","transform","result","join","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","preset","apis","init","get","localMessageRef","enumsRef","GlobalContext","initValue","GlobalValue","globalKey","loader","loadAntdLocale","App","top","Fetch","render","PureGlobal","useGlobalValue","useGlobalContext","contextValue","setGlobalHandler","setGlobal","global","console","warn","SetGlobal","needReady","prevValueRef","GetGlobal","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","at","n","Math","trunc","this","TypedArray","Reflect","getPrototypeOf","Int8Array","C","String","defineProperty","prototype","writable","enumerable","configurable","localeCache","Map","WrappedComponent","currentLocale","has","default","localMessages","set","messages","InnerProvider","ReactIntlProvider","baseLocale","currentMessages","merge","results","FormattedMessage","moduleId","IntlFormattedMessage","text","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","exports"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/7857.2c025dc4.chunk.js","mappings":"0SAyCA,EApCoBA,IAA2D,IAA1D,IAACC,EAAG,WAAEC,EAAa,CAAC,EAAC,UAAEC,EAAS,QAAEC,GAAkBJ,EAANK,GAAKC,EAAAA,EAAAA,GAAAN,EAAAO,GACpE,MAAMC,GAAWC,EAAAA,EAAAA,UAASC,OAAOC,OAAO,CAAC,EAAGV,EAAK,CAACW,MAAM,MAClD,UAACC,EAAS,KAAEC,EAAI,MAAEC,EAAK,QAAEC,GAAWR,EACpCS,GAAeC,EAAAA,EAAAA,SAAed,GAC9Be,GAAmBD,EAAAA,EAAAA,SAAe,KACpC,MAAME,EAAWjB,EAAgC,oBAAfD,EAA4BA,EAAW,CACrEY,OAAMN,WAAUa,MAAOA,KACnBD,EAASC,WAEZnB,KAeT,OAbAoB,EAAAA,EAAAA,WAAU,KACFT,IAGAE,EACAE,EAAaF,GAGZD,GAGLK,MACD,CAACN,EAAWE,EAAOD,EAAMK,EAAkBF,KACtCM,EAAAA,EAAAA,KAACC,EAAAA,QAAMC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPpB,GAAK,IACTqB,QAASb,EACTc,QAASA,KACLX,EAAQ,CACJY,UAAWA,a,qDClCpB,MAAMC,EAAcA,IAAMC,SAASC,cAAc,8BAC3CC,EAAmBA,IAAMF,SAASC,cAAc,kB,iLCA7D,QAAyB,6BAAzB,EAAqE,mCAArE,EAAuH,mCAAvH,EAAwK,kCAAxK,EAAiO,2CAAjO,EAAgS,wCAAhS,EAAwV,oCAAxV,EAA2Y,mCCM3Y,EAPwBE,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,0BCFJ,MAiBA,EAjBwBG,KACpB,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,UAAS,IAazC,MAAO,CAACF,GAXaG,EAAAA,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C,GAAsBxS,EAAAA,EAAAA,aAAY,CAACnC,EAAO4U,KAC5C5U,EAAM2N,GAAE,GAAAnI,OAAM6E,EAAU,KAAA7E,OAAIxF,EAAM2N,IAC3B8G,EAAczU,EAAO4U,IAC7B,CAACvK,EAAYoK,IAChB,MAAO,CACHA,cAAeE,IAIVE,EAAiBpK,IAAA,IAAC,eAACL,EAAc,WAAEC,GAAWI,EAAA,OAAM8I,IAAqB/Q,EAAAA,EAAAA,YAAW,CAACxC,EAAO0C,KACrGxB,EAAAA,EAAAA,KAACiJ,EAAY,CAACC,eAAgBA,EAAgBC,WAAYA,EAAW7F,UACjEtD,EAAAA,EAAAA,KAACqS,GAAgBnS,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKpB,GAAK,IAAE0C,IAAKA,SAG1C,G,sJCnEE0I,EAAO0J,QAAU,EAAjB1J,M","sources":["common/components/FetchButton.js","common/utils/importantContainer.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","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/isEqual.js","components/Global/index.js","components/Global/polyfill.js","components/Intl/createWithLocale.js","components/Intl/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["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","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__u6fDa\",\"drawer-outer\":\"style_drawer-outer__vuEIf__u6fDa\",\"drawer-title\":\"style_drawer-title__71eaW__u6fDa\",\"drawer-body\":\"style_drawer-body__frw9I__u6fDa\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__u6fDa\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__u6fDa\",\"drawer-footer\":\"style_drawer-footer__1g8o1__u6fDa\",\"drawer-close\":\"style_drawer-close__bpxnp__u6fDa\"};","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","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__u6fDa\",\"is-not-init\":\"style_is-not-init__BZN0v__u6fDa\",\"loading-rotate\":\"style_loading-rotate__kLLHV__u6fDa\",\"total_text\":\"style_total_text__oNKMr__u6fDa\",\"ant-pagination\":\"style_ant-pagination__4LRg7__u6fDa\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__u6fDa\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__u6fDa\",\"ant-select-selector\":\"style_ant-select-selector__+111I__u6fDa\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__u6fDa\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__u6fDa\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__u6fDa\"};","import isEqualWith from \"lodash/isEqualWith\";\n\nconst isEqual = (value, other) => {\n return isEqualWith(value, other, (objValue, othValue) => {\n // 如果值是函数或 Symbol,认为相等(跳过比较)\n if (typeof objValue === 'function' || typeof othValue === 'function' || typeof objValue === 'symbol' || typeof othValue === 'symbol') {\n return true;\n }\n // 返回 undefined 让 lodash 使用默认比较\n return undefined;\n });\n}\n\nexport default isEqual;","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {\n Global as GlobalContext, useGlobalContext as useContext, usePreset, GlobalValue, useGlobalValue, GlobalSetting\n} from \"@kne/global-context\";\nimport {App, ConfigProvider as AntdConfigProvider, Result} 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 './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\nexport const containerClassName = style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\");\n\nconst ConfigProvider = withFetch(({data: message, themeToken, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, {colorPrimary: \"#4096ff\"}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n\n const [statusColors, setStatusColors] = useState({});\n\n useEffect(() => {\n const containerEl = document.querySelector(`.${containerClassName}`);\n const styles = getComputedStyle(containerEl);\n setStatusColors({\n colorSuccess: styles.getPropertyValue(\"--state-success-color\"),\n colorError: styles.getPropertyValue(\"--state-error-color\"),\n colorWarning: styles.getPropertyValue(\"--state-warning-color\"),\n colorInfo: styles.getPropertyValue(\"--state-info-color\"),\n });\n }, []);\n\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 = `.${containerClassName}{${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 ...statusColors,\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\n const localMessageRef = useRef(null);\n const enumsRef = useRef(null);\n\n return (<GlobalContext preset={preset} initValue={Object.assign({}, props, {\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\"))}>\n <GlobalValue globalKey=\"locale\">{({value: locale}) => {\n return <ConfigProvider\n loader={loadAntdLocale}\n params={{locale}}\n themeToken={themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init()}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>;\n }}</GlobalValue>\n </GlobalContext>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const themeToken = useGlobalValue(\"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, useGlobalValue, GlobalSetting, GlobalValue};\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\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","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","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","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["_ref","api","modalProps","modalFunc","onError","props","_objectWithoutProperties","_excluded","fetchApi","useFetch","Object","assign","auto","isLoading","data","error","refresh","errorHandler","useRefCallback","modalFuncHandler","modalApi","close","useEffect","_jsx","Button","_objectSpread","loading","onClick","onSuccess","getScrollEl","document","querySelector","getContainerBody","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","ref","config","open","setOpen","innerConfig","setInnerConfig","_len","arguments","length","args","Array","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","Drawer","uuid","withConfirm","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","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","value","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","type","map","_ref2","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","isMobile","test","navigator","userAgent","params","dayjs","then","module","localeLoader","isEqual","other","isEqualWith","objValue","othValue","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","containerClassName","replace","ConfigProvider","withFetch","message","themeToken","isInit","setIsInit","_Object$assign","colorPrimary","components","otherToken","colorPrimaryObject","Color","statusColors","setStatusColors","containerEl","styles","getComputedStyle","colorSuccess","getPropertyValue","colorError","colorWarning","colorInfo","styleEl","head","createElement","id","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","transform","result","join","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","preset","apis","init","get","localMessageRef","enumsRef","GlobalContext","initValue","GlobalValue","globalKey","loader","loadAntdLocale","App","top","Fetch","render","PureGlobal","useGlobalValue","useGlobalContext","contextValue","setGlobalHandler","setGlobal","global","console","warn","SetGlobal","needReady","prevValueRef","GetGlobal","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","at","n","Math","trunc","this","TypedArray","Reflect","getPrototypeOf","Int8Array","C","String","defineProperty","prototype","writable","enumerable","configurable","localeCache","Map","WrappedComponent","currentLocale","has","default","localMessages","set","messages","InnerProvider","ReactIntlProvider","baseLocale","currentMessages","merge","results","FormattedMessage","moduleId","IntlFormattedMessage","text","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","exports"],"sourceRoot":""}
|