@kne-components/components-core 0.4.59 → 0.4.60
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/1461.56c7ba82.chunk.css +2 -0
- package/build/static/css/{1461.e03665dd.chunk.css.map → 1461.56c7ba82.chunk.css.map} +1 -1
- package/build/static/css/{1624.f27a3400.chunk.css → 1624.f07f4ae9.chunk.css} +2 -2
- package/build/static/css/{1624.f27a3400.chunk.css.map → 1624.f07f4ae9.chunk.css.map} +1 -1
- package/build/static/css/{1769.57d65587.chunk.css → 1769.a0e6f277.chunk.css} +2 -2
- package/build/static/css/{1769.57d65587.chunk.css.map → 1769.a0e6f277.chunk.css.map} +1 -1
- package/build/static/css/2004.7a5c6d58.chunk.css +2 -0
- package/build/static/css/{2004.7bd302b2.chunk.css.map → 2004.7a5c6d58.chunk.css.map} +1 -1
- package/build/static/css/{2837.8e933f1e.chunk.css → 2837.b48048df.chunk.css} +2 -2
- package/build/static/css/{2837.8e933f1e.chunk.css.map → 2837.b48048df.chunk.css.map} +1 -1
- package/build/static/css/2943.5bde51f5.chunk.css +2 -0
- package/build/static/css/{2943.f8f1cde5.chunk.css.map → 2943.5bde51f5.chunk.css.map} +1 -1
- package/build/static/css/{3043.ca2262a4.chunk.css → 3043.de0e34c0.chunk.css} +2 -2
- package/build/static/css/{3043.ca2262a4.chunk.css.map → 3043.de0e34c0.chunk.css.map} +1 -1
- package/build/static/css/3404.f1c244d7.chunk.css +2 -0
- package/build/static/css/{3404.1600d8e0.chunk.css.map → 3404.f1c244d7.chunk.css.map} +1 -1
- package/build/static/css/{3467.63b13981.chunk.css → 3467.0f767a84.chunk.css} +2 -2
- package/build/static/css/{3467.63b13981.chunk.css.map → 3467.0f767a84.chunk.css.map} +1 -1
- package/build/static/css/{3771.6758a427.chunk.css → 3771.4fe764d3.chunk.css} +2 -2
- package/build/static/css/{3771.6758a427.chunk.css.map → 3771.4fe764d3.chunk.css.map} +1 -1
- package/build/static/css/4551.48804867.chunk.css +2 -0
- package/build/static/css/{4551.3296842c.chunk.css.map → 4551.48804867.chunk.css.map} +1 -1
- package/build/static/css/5462.5c532604.chunk.css +2 -0
- package/build/static/css/{5462.d209fbe9.chunk.css.map → 5462.5c532604.chunk.css.map} +1 -1
- package/build/static/css/{5506.e8ccaa89.chunk.css → 5506.6e440bad.chunk.css} +2 -2
- package/build/static/css/{5506.e8ccaa89.chunk.css.map → 5506.6e440bad.chunk.css.map} +1 -1
- package/build/static/css/6499.f1f833f9.chunk.css +2 -0
- package/build/static/css/{6499.aae5e258.chunk.css.map → 6499.f1f833f9.chunk.css.map} +1 -1
- package/build/static/css/7227.47933f05.chunk.css +2 -0
- package/build/static/css/{7227.fc8d0c28.chunk.css.map → 7227.47933f05.chunk.css.map} +1 -1
- package/build/static/css/7857.93635aee.chunk.css +2 -0
- package/build/static/css/{7857.5c99f79b.chunk.css.map → 7857.93635aee.chunk.css.map} +1 -1
- package/build/static/css/9556.b3d01a10.chunk.css +2 -0
- package/build/static/css/{9556.19ec43f7.chunk.css.map → 9556.b3d01a10.chunk.css.map} +1 -1
- package/build/static/css/9666.0c21fbba.chunk.css +2 -0
- package/build/static/css/{9666.2ad14c5f.chunk.css.map → 9666.0c21fbba.chunk.css.map} +1 -1
- package/build/static/css/9755.ded79788.chunk.css +2 -0
- package/build/static/css/{9755.eb57e17c.chunk.css.map → 9755.ded79788.chunk.css.map} +1 -1
- package/build/static/js/1461.866b1f45.chunk.js +2 -0
- package/build/static/js/{1461.c4071f0c.chunk.js.map → 1461.866b1f45.chunk.js.map} +1 -1
- package/build/static/js/1624.58cb67d0.chunk.js +2 -0
- package/build/static/js/{1624.1882567b.chunk.js.map → 1624.58cb67d0.chunk.js.map} +1 -1
- package/build/static/js/{1769.f85e2046.chunk.js → 1769.553d8f84.chunk.js} +2 -2
- package/build/static/js/{1769.f85e2046.chunk.js.map → 1769.553d8f84.chunk.js.map} +1 -1
- package/build/static/js/{2004.b3863616.chunk.js → 2004.224d5924.chunk.js} +3 -3
- package/build/static/js/{2004.b3863616.chunk.js.map → 2004.224d5924.chunk.js.map} +1 -1
- package/build/static/js/{2837.04bc9c19.chunk.js → 2837.4e2ea690.chunk.js} +2 -2
- package/build/static/js/{2837.04bc9c19.chunk.js.map → 2837.4e2ea690.chunk.js.map} +1 -1
- package/build/static/js/2943.641b0e6e.chunk.js +2 -0
- package/build/static/js/2943.641b0e6e.chunk.js.map +1 -0
- package/build/static/js/3043.ef9a25fc.chunk.js +2 -0
- package/build/static/js/{3043.dc272bd8.chunk.js.map → 3043.ef9a25fc.chunk.js.map} +1 -1
- package/build/static/js/{3404.08af0011.chunk.js → 3404.0829b4e4.chunk.js} +3 -3
- package/build/static/js/{3404.08af0011.chunk.js.map → 3404.0829b4e4.chunk.js.map} +1 -1
- package/build/static/js/{3467.0250db76.chunk.js → 3467.7b34461a.chunk.js} +2 -2
- package/build/static/js/{3467.0250db76.chunk.js.map → 3467.7b34461a.chunk.js.map} +1 -1
- package/build/static/js/3771.44c78e92.chunk.js +2 -0
- package/build/static/js/{3771.9aae1e84.chunk.js.map → 3771.44c78e92.chunk.js.map} +1 -1
- package/build/static/js/3856.7797c2d3.chunk.js +2 -0
- package/build/static/js/{3856.96518e39.chunk.js.map → 3856.7797c2d3.chunk.js.map} +1 -1
- package/build/static/js/4474.543ad85e.chunk.js +2 -0
- package/build/static/js/{4474.8cb64e21.chunk.js.map → 4474.543ad85e.chunk.js.map} +1 -1
- package/build/static/js/4551.401ea5cc.chunk.js +2 -0
- package/build/static/js/{4551.d7b70f2a.chunk.js.map → 4551.401ea5cc.chunk.js.map} +1 -1
- package/build/static/js/{5462.82092ca8.chunk.js → 5462.62aec0cc.chunk.js} +2 -2
- package/build/static/js/{5462.82092ca8.chunk.js.map → 5462.62aec0cc.chunk.js.map} +1 -1
- package/build/static/js/5506.c294f8f5.chunk.js +2 -0
- package/build/static/js/{5506.e21819f8.chunk.js.map → 5506.c294f8f5.chunk.js.map} +1 -1
- package/build/static/js/{7227.65a94d74.chunk.js → 7227.6ad50956.chunk.js} +3 -3
- package/build/static/js/{7227.65a94d74.chunk.js.map → 7227.6ad50956.chunk.js.map} +1 -1
- package/build/static/js/7394.ad3cac60.chunk.js +2 -0
- package/build/static/js/7394.ad3cac60.chunk.js.map +1 -0
- package/build/static/js/{7857.ceaa17ca.chunk.js → 7857.84c2a11b.chunk.js} +2 -2
- package/build/static/js/{7857.ceaa17ca.chunk.js.map → 7857.84c2a11b.chunk.js.map} +1 -1
- package/build/static/js/9556.eeb7c165.chunk.js +3 -0
- package/build/static/js/{9556.067ea852.chunk.js.map → 9556.eeb7c165.chunk.js.map} +1 -1
- package/build/static/js/{9666.b926633e.chunk.js → 9666.a00a8493.chunk.js} +2 -2
- package/build/static/js/{9666.b926633e.chunk.js.map → 9666.a00a8493.chunk.js.map} +1 -1
- package/build/static/js/{9755.e7a024e2.chunk.js → 9755.dbfce192.chunk.js} +2 -2
- package/build/static/js/{9755.e7a024e2.chunk.js.map → 9755.dbfce192.chunk.js.map} +1 -1
- package/build/static/js/{main.da7df6a0.js → main.3836f95d.js} +2 -2
- package/build/static/js/{main.da7df6a0.js.map → main.3836f95d.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1461.e03665dd.chunk.css +0 -2
- package/build/static/css/2004.7bd302b2.chunk.css +0 -2
- package/build/static/css/2943.f8f1cde5.chunk.css +0 -2
- package/build/static/css/3404.1600d8e0.chunk.css +0 -2
- package/build/static/css/4551.3296842c.chunk.css +0 -2
- package/build/static/css/5462.d209fbe9.chunk.css +0 -2
- package/build/static/css/6499.aae5e258.chunk.css +0 -2
- package/build/static/css/7227.fc8d0c28.chunk.css +0 -2
- package/build/static/css/7857.5c99f79b.chunk.css +0 -2
- package/build/static/css/9556.19ec43f7.chunk.css +0 -2
- package/build/static/css/9666.2ad14c5f.chunk.css +0 -2
- package/build/static/css/9755.eb57e17c.chunk.css +0 -2
- package/build/static/js/1461.c4071f0c.chunk.js +0 -2
- package/build/static/js/1624.1882567b.chunk.js +0 -2
- package/build/static/js/2943.3898d509.chunk.js +0 -2
- package/build/static/js/2943.3898d509.chunk.js.map +0 -1
- package/build/static/js/3043.dc272bd8.chunk.js +0 -2
- package/build/static/js/3771.9aae1e84.chunk.js +0 -2
- package/build/static/js/3856.96518e39.chunk.js +0 -2
- package/build/static/js/4474.8cb64e21.chunk.js +0 -2
- package/build/static/js/4551.d7b70f2a.chunk.js +0 -2
- package/build/static/js/5506.e21819f8.chunk.js +0 -2
- package/build/static/js/7394.d52d668e.chunk.js +0 -2
- package/build/static/js/7394.d52d668e.chunk.js.map +0 -1
- package/build/static/js/9556.067ea852.chunk.js +0 -3
- /package/build/static/js/{2004.b3863616.chunk.js.LICENSE.txt → 2004.224d5924.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.08af0011.chunk.js.LICENSE.txt → 3404.0829b4e4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.65a94d74.chunk.js.LICENSE.txt → 7227.6ad50956.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.067ea852.chunk.js.LICENSE.txt → 9556.eeb7c165.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,C=(0,s.default)(f),y=(0,s.default)(()=>{const e=u("function"===typeof o?o({data:_,fetchApi:h,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{p||(b?C(b):_&&y())},[p,b,_,y,C]),(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:()=>q,DrawerButton:()=>H,default:()=>U,useDrawer:()=>V});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__CoAiq",d="style_drawer-outer__vuEIf__CoAiq",u="style_drawer-title__71eaW__CoAiq",f="style_drawer-body__frw9I__CoAiq",m="style_is-disabled-scroller__ZsITw__CoAiq",h="style_drawer-body-inner__lci9Z__CoAiq",p="style_drawer-footer__1g8o1__CoAiq",_="style_drawer-close__bpxnp__CoAiq",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),C=o(73884);const y=()=>{const[e,t]=(0,C.useState)([]);return[e,(0,C.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var A=o(70579);const w=(0,C.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,C.useState)(!0),[s,c]=(0,C.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,C.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,A.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,C.memo)((0,C.forwardRef)((e,t)=>{const[o,n]=y();return(0,C.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,A.jsx)(A.Fragment,{children:o})}));const k=function(){const e=(0,C.useRef)(null),[t,o]=(0,C.useState)([]);(0,C.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,C.useCallback)(t=>function(n){var r;x+=1;const l=(0,C.createRef)();let a=()=>{};const s=(0,A.jsx)(w,{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,C.useMemo)(()=>n(j),[n]),(0,A.jsx)(P,{ref:e},"drawer-holder")]},S=(0,C.createContext)({}),{Provider:N}=S,G=e=>{const{children:t}=e,[o,n]=k(),r=(0,C.useMemo)(()=>({drawer:o}),[o]);return(0,A.jsx)(N,{value:r,children:(0,A.jsxs)("div",{children:[n,t]})})};G.useAppDrawer=()=>(0,C.useContext)(S);const q=G;var R=o(81014),M=o(71298),E=o(64671);const L=["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,D=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:s,onClose:c}=e;return(0,A.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,A.jsx)(a.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,A.jsx)(a.Col,{children:(0,A.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,L);const i=o||R.default;return(0,C.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}}))})})})]})},F=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const y=(0,C.useRef)(null);return(0,C.useEffect)(()=>{!n&&new M.default(y.current)},[n]),(0,A.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,A.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(_,"drawer-close"),type:"text",icon:(0,A.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,A.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,A.jsx)("div",{className:c()(f,"drawer-body",{[m]:n}),ref:y,children:(0,A.jsx)("div",{className:c()(h,"drawer-body-inner"),children:g})}),null!==o||r?(0,A.jsx)("div",{className:c()(p,"drawer-footer"),children:(0,A.jsx)(D,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},T=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,A.jsx)(F,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:O(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:O(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:O(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(f):f({})},z=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,C=(0,l.A)(e,B);return(0,r.A)((0,r.A)((0,r.A)({},C),{},{icon:null,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(y=s)?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),{},{children:(0,A.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:T({withDecorator:_,title:d,closable:h,onClose:u,onConfirm:f,onCancel:m,footer:o,footerButtons:n,disabledScroller:p,children:t})})});var y},V=()=>{const{drawer:e}=q.useAppDrawer();return t=>{const o={},l=z((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,A.jsx)(a.Drawer,(0,r.A)({},z((0,r.A)({size:t},o))))};var W=o(73025);const H=e=>{const t=V();return(0,A.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:()=>V,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>U,SetGlobal:()=>H,containerClassName:()=>F,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]()},C={container:"style_container__k+uRt__CoAiq","is-not-init":"style_is-not-init__BZN0v__CoAiq","loading-rotate":"style_loading-rotate__kLLHV__CoAiq",total_text:"style_total_text__oNKMr__CoAiq","ant-pagination":"style_ant-pagination__4LRg7__CoAiq","ant-pagination-options":"style_ant-pagination-options__mp-tz__CoAiq","ant-select-single":"style_ant-select-single__mL6Zt__CoAiq","ant-select-selector":"style_ant-select-selector__+111I__CoAiq","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__CoAiq","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__CoAiq","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__CoAiq"};var y=o(33097),A=o.n(y),w=o(25963),x=o(64671),j=o(96418),v=o(22717),P=o.n(v),k=o(96604),S=o.n(k),N=o(25806),G=o.n(N),q=o(13050),R=o(56641),M=o.n(R);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 L=o(70579);const B=["colorPrimary","components"],I=["preset","children","themeToken","init"],O=["children"],D=["children","className"];document.body.classList.add(C.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(C.container));const F=C.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),T=(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,B),p=(0,i.useMemo)(()=>G()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(F)),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 S()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(F,"{").concat(P()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,p]),a?(0,L.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}),z=(0,q.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(x.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,L.jsx)(x.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),V=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,I);const d=A()(t,"locale","zh-CN"),u=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,L.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:f,locale:d},A()(t,"global")),children:(0,L.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,L.jsxs)(T,{loader:g,params:{locale:t},themeToken:n,children:[(0,L.jsx)(c.App,{message:{top:100},children:(0,L.jsx)(w.AppDrawer,{children:"function"===typeof l?(0,L.jsx)(h.default,{loader:()=>l(),render:()=>o}):o})}),(0,L.jsx)(z,{})]})}})})},U=e=>{let{children:t}=e,o=(0,r.A)(e,O);const l=(0,s.useGlobalValue)("themeToken");return(0,L.jsx)(V,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,L.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(C.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(A()(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:A()(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)(()=>{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,D);return(0,L.jsx)(u.A,{errorRender:()=>(0,L.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,L.jsx)(V,(0,n.A)((0,n.A)({},l),{},{children:(0,L.jsx)("div",{"data-testid":"components-core-global",className:a()(C.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:()=>A,IntlProvider:()=>y,createWithIntl:()=>x,createWithLocale:()=>b,default:()=>j,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"],C=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,p.jsx)(a.IntlProvider,{locale:n,messages:o,children:t})}),y=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)(C,{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})},A=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}},x=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,c.forwardRef)((r,l)=>(0,p.jsx)(y,{importMessages:t,moduleName:o,children:(0,p.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))},j=A}}]);
|
|
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:()=>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:()=>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__Vdk0n",d="style_drawer-outer__vuEIf__Vdk0n",u="style_drawer-title__71eaW__Vdk0n",f="style_drawer-body__frw9I__Vdk0n",m="style_is-disabled-scroller__ZsITw__Vdk0n",h="style_drawer-body-inner__lci9Z__Vdk0n",p="style_drawer-footer__1g8o1__Vdk0n",_="style_drawer-close__bpxnp__Vdk0n",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 k=[],v=(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 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;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&&k.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)(v,{ref:e},"drawer-holder")]},S=(0,y.createContext)({}),{Provider:N}=S,V=e=>{const{children:t}=e,[o,n]=P(),r=(0,y.useMemo)(()=>({drawer:o}),[o]);return(0,w.jsx)(N,{value:r,children:(0,w.jsxs)("div",{children:[n,t]})})};V.useAppDrawer=()=>(0,y.useContext)(S);const G=V;var R=o(81014),M=o(71298),E=o(64671);const L=["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,D=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,L);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}}))})})})]})},F=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,w.jsxs)("div",{className:d,"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)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,w.jsx)("div",{className:c()(u,"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)(D,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},T=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,w.jsx)(F,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:O(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:O(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:O(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(f):f({})},z=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,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:u,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:T({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}=G.useAppDrawer();return t=>{const o={},l=z((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)({},z((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:()=>F,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__Vdk0n","is-not-init":"style_is-not-init__BZN0v__Vdk0n","loading-rotate":"style_loading-rotate__kLLHV__Vdk0n",total_text:"style_total_text__oNKMr__Vdk0n","ant-pagination":"style_ant-pagination__4LRg7__Vdk0n","ant-pagination-options":"style_ant-pagination-options__mp-tz__Vdk0n","ant-select-single":"style_ant-select-single__mL6Zt__Vdk0n","ant-select-selector":"style_ant-select-selector__+111I__Vdk0n","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__Vdk0n","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__Vdk0n","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__Vdk0n"};var C=o(33097),w=o.n(C),A=o(25963),x=o(64671),j=o(96418),k=o(22717),v=o.n(k),P=o(96604),S=o.n(P),N=o(25806),V=o.n(N),G=o(13050),R=o(56641),M=o.n(R);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 L=o(70579);const B=["colorPrimary","components"],I=["preset","children","themeToken","init"],O=["children"],D=["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 F=y.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),T=(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,B),p=(0,i.useMemo)(()=>V()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(F)),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 S()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(F,"{").concat(v()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,p]),a?(0,L.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}),z=(0,G.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(x.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,L.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 d=w()(t,"locale","zh-CN"),u=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,L.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:f,locale:d},w()(t,"global")),children:(0,L.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,L.jsxs)(T,{loader:g,params:{locale:t},themeToken:n,children:[(0,L.jsx)(c.App,{message:{top:100},children:(0,L.jsx)(A.AppDrawer,{children:"function"===typeof l?(0,L.jsx)(h.default,{loader:()=>l(),render:()=>o}):o})}),(0,L.jsx)(z,{})]})}})})},U=e=>{let{children:t}=e,o=(0,r.A)(e,O);const l=(0,s.useGlobalValue)("themeToken");return(0,L.jsx)(q,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,L.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)(()=>{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,D);return(0,L.jsx)(u.A,{errorRender:()=>(0,L.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,L.jsx)(q,(0,n.A)((0,n.A)({},l),{},{children:(0,L.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),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})},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}}]);
|
|
2
|
+
//# sourceMappingURL=7857.84c2a11b.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/7857.ceaa17ca.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,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AAAA,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","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"],"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__CoAiq\",\"drawer-outer\":\"style_drawer-outer__vuEIf__CoAiq\",\"drawer-title\":\"style_drawer-title__71eaW__CoAiq\",\"drawer-body\":\"style_drawer-body__frw9I__CoAiq\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__CoAiq\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__CoAiq\",\"drawer-footer\":\"style_drawer-footer__1g8o1__CoAiq\",\"drawer-close\":\"style_drawer-close__bpxnp__CoAiq\"};","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__CoAiq\",\"is-not-init\":\"style_is-not-init__BZN0v__CoAiq\",\"loading-rotate\":\"style_loading-rotate__kLLHV__CoAiq\",\"total_text\":\"style_total_text__oNKMr__CoAiq\",\"ant-pagination\":\"style_ant-pagination__4LRg7__CoAiq\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__CoAiq\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__CoAiq\",\"ant-select-selector\":\"style_ant-select-selector__+111I__CoAiq\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__CoAiq\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__CoAiq\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__CoAiq\"};","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"],"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"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/7857.84c2a11b.chunk.js","mappings":"0SAyCA,EApCoBA,IAA2D,IAA1D,IAACC,EAAG,WAAEC,EAAa,CAAC,EAAC,UAAEC,EAAS,QAAEC,GAAkBJ,EAANK,GAAKC,EAAAA,EAAAA,GAAAN,EAAAO,GACpE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/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","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"],"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__Vdk0n\",\"drawer-outer\":\"style_drawer-outer__vuEIf__Vdk0n\",\"drawer-title\":\"style_drawer-title__71eaW__Vdk0n\",\"drawer-body\":\"style_drawer-body__frw9I__Vdk0n\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__Vdk0n\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__Vdk0n\",\"drawer-footer\":\"style_drawer-footer__1g8o1__Vdk0n\",\"drawer-close\":\"style_drawer-close__bpxnp__Vdk0n\"};","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__Vdk0n\",\"is-not-init\":\"style_is-not-init__BZN0v__Vdk0n\",\"loading-rotate\":\"style_loading-rotate__kLLHV__Vdk0n\",\"total_text\":\"style_total_text__oNKMr__Vdk0n\",\"ant-pagination\":\"style_ant-pagination__4LRg7__Vdk0n\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__Vdk0n\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__Vdk0n\",\"ant-select-selector\":\"style_ant-select-selector__+111I__Vdk0n\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__Vdk0n\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__Vdk0n\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__Vdk0n\"};","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"],"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"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 9556.eeb7c165.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,9379,9556],{64671(e,t,n){n.r(t),n.d(t,{default:()=>r.default});var r=n(48781),o={};for(const l in r)"default"!==l&&(o[l]=()=>r[l]);n.d(t,o)},29556(e,t,n){n.r(t),n.d(t,{TooltipFetch:()=>C,TooltipInfoLabel:()=>S,default:()=>x});var r=n(89379),o=n(53986),l=n(55199),s=n(83136),i=n.n(s);const a="style_tooltip__zHGMI__Vdk0n",c="style_large__lvmsm__Vdk0n",_="style_small__nUt0r__Vdk0n",f="style_popup-content__-rKQN__Vdk0n",u="style_title__1EQPq__Vdk0n",p="style_important-info__qTSZY__Vdk0n",d="style_error__yTTq3__Vdk0n",y="style_warning__CMJxz__Vdk0n",m="style_success__AvJVx__Vdk0n",b="style_sub-title__uD8CH__Vdk0n",v="style_content__lzgUz__Vdk0n",O="style_alone__q6q82__Vdk0n",h="style_fetch-content__tEOEV__Vdk0n",j="style_fetch-loading__tN-WB__Vdk0n",g="style_title-info-icon__iY8Q+__Vdk0n";var k=n(70579);const w=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],x=e=>{let{overlayClassName:t,title:n,size:s,subtitle:h,content:j,importantInfo:g,importantInfoType:x,moreInfo:A}=e,S=(0,o.A)(e,w);return(0,k.jsx)(l.Tooltip,(0,r.A)((0,r.A)({},S),{},{rootClassName:i()(t,a,{[_]:"small"===s,[c]:"large"===s}),title:(0,k.jsxs)(l.Space,{direction:"vertical",className:f,children:[n&&(0,k.jsx)("div",{className:u,children:n}),g&&(0,k.jsx)("div",{className:i()(p,{[m]:"success"===x,[y]:"warning"===x,[d]:"error"===x}),children:g}),h&&(0,k.jsx)("div",{className:b,children:h}),j&&(0,k.jsx)("div",{className:i()(v,{[O]:[n,h,g,A].every(e=>!e)}),children:j}),A&&(0,k.jsx)("div",{children:A})]})}))};var A=n(64671);const S=e=>{let{title:t,tooltipTitle:n}=e;return(0,k.jsxs)("div",{children:[t,n?(0,k.jsx)(x,(0,r.A)((0,r.A)({},n),{},{children:(0,k.jsx)("span",{children:(0,k.jsx)(A.default,{type:"icon-xinxi-miaobian",className:g,size:14})})})):null]})};var N=n(73884),P=n(87558);const V=["api","children","fetchContent","showLoading","loadingClassName","force"],C=e=>{let{api:t,children:n,fetchContent:s,showLoading:a=!0,loadingClassName:c,force:_}=e,f=(0,o.A)(e,V);const[u,p]=(0,N.useState)(!1),d=(0,P.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:y,isLoading:m,data:b,send:v}=d;return(0,k.jsx)(x,(0,r.A)((0,r.A)({},Object.assign({},f,y?s(b,d):{})),{},{open:u,onOpenChange:async e=>{!e||y&&!_||await v({type:"refresh"}),p(e)},children:(0,k.jsxs)("span",{className:h,children:[n,a&&m?(0,k.jsx)(l.Spin,{size:"small",className:i()(c,j)}):null]})}))}},51153(e,t,n){var r=n(73884),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,l={},c=null,_=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(_=t.ref),t)s.call(t,r)&&!a.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:_,props:l,_owner:i.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},70579(e,t,n){e.exports=n(51153)},64467(e,t,n){n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},89379(e,t,n){n.d(t,{A:()=>l});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},53986(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},20816(e,t,n){n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})}}]);
|
|
3
|
+
//# sourceMappingURL=9556.eeb7c165.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/9556.067ea852.chunk.js","mappings":";4ZACA,QAA0B,8BAA1B,EAAgE,4BAAhE,EAAoG,4BAApG,EAAgJ,oCAAhJ,EAA4L,4BAA5L,EAAyO,qCAAzO,EAAsR,4BAAtR,EAA4T,8BAA5T,EAAoW,8BAApW,EAA8Y,gCAA9Y,EAAwb,8BAAxb,EAA8d,4BAA9d,EAA0gB,oCAA1gB,EAA8jB,oCAA9jB,EAAonB,sC,+HCyDpnB,EAtDgBA,IAUT,IAVU,iBACfC,EAAgB,MAChBC,EAAK,KACLC,EAAI,SACJC,EAAQ,QACRC,EAAO,cACPC,EAAa,kBACbC,EAAiB,SACjBC,GAEDR,EADIS,GAAKC,EAAAA,EAAAA,GAAAV,EAAAW,GAER,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAWC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACNL,GAAK,IACTM,cAAeC,IAAWf,EAAkBgB,EAAkB,CAC5D,CAACA,GAA0B,UAATd,EAClB,CAACc,GAA0B,UAATd,IAEpBD,OACEgB,EAAAA,EAAAA,MA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","components/Tooltip/Tooltip.js","components/Tooltip/TooltipInfoLabel.js","components/Tooltip/TooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__CoAiq\",\"large\":\"style_large__lvmsm__CoAiq\",\"small\":\"style_small__nUt0r__CoAiq\",\"popup-content\":\"style_popup-content__-rKQN__CoAiq\",\"title\":\"style_title__1EQPq__CoAiq\",\"important-info\":\"style_important-info__qTSZY__CoAiq\",\"error\":\"style_error__yTTq3__CoAiq\",\"warning\":\"style_warning__CMJxz__CoAiq\",\"success\":\"style_success__AvJVx__CoAiq\",\"sub-title\":\"style_sub-title__uD8CH__CoAiq\",\"content\":\"style_content__lzgUz__CoAiq\",\"alone\":\"style_alone__q6q82__CoAiq\",\"fetch-content\":\"style_fetch-content__tEOEV__CoAiq\",\"fetch-loading\":\"style_fetch-loading__tN-WB__CoAiq\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__CoAiq\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n rootClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./Tooltip\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import {useState} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport {Spin} from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./Tooltip\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api, children, fetchContent, showLoading = true, loadingClassName, force, ...props\n }) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isComplete, isLoading, data, send} = fetchApi;\n return (<Tooltip\n {...Object.assign({}, props, isComplete ? fetchContent(data, fetchApi) : {})}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({type: \"refresh\"});\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (<Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />) : null}\n </span>\n </Tooltip>);\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };"],"names":["_ref","overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo","props","_objectWithoutProperties","_excluded","_jsx","AntdTooltip","_objectSpread","rootClassName","classnames","style","_jsxs","Space","direction","className","children","every","item","tooltipTitle","Tooltip","Icon","type","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","Object","assign","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module","_defineProperty","r","t","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","i","indexOf","propertyIsEnumerable","toPropertyKey","toPrimitive","TypeError","String","Number","_typeof","iterator","constructor"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/9556.eeb7c165.chunk.js","mappings":";4ZACA,QAA0B,8BAA1B,EAAgE,4BAAhE,EAAoG,4BAApG,EAAgJ,oCAAhJ,EAA4L,4BAA5L,EAAyO,qCAAzO,EAAsR,4BAAtR,EAA4T,8BAA5T,EAAoW,8BAApW,EAA8Y,gCAA9Y,EAAwb,8BAAxb,EAA8d,4BAA9d,EAA0gB,oCAA1gB,EAA8jB,oCAA9jB,EAAonB,sC,+HCyDpnB,EAtDgBA,IAUT,IAVU,iBACfC,EAAgB,MAChBC,EAAK,KACLC,EAAI,SACJC,EAAQ,QACRC,EAAO,cACPC,EAAa,kBACbC,EAAiB,SACjBC,GAEDR,EADIS,GAAKC,EAAAA,EAAAA,GAAAV,EAAAW,GAER,OACEC,EAAAA,EAAAA,KAACC,EAAAA,S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SAAUA,GACZ,OAAOA,GAAK,mBAAqB3C,QAAU2C,EAAEqB,cAAgBhE,QAAU2C,IAAM3C,OAAOI,UAAY,gBAAkBuC,CACpH,EAAGmB,EAAQnB,EACb,C","sources":["webpack://@kne-components/components-core/./src/components/Tooltip/style.module.scss?c30c","components/Tooltip/Tooltip.js","components/Tooltip/TooltipInfoLabel.js","components/Tooltip/TooltipFetch.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"tooltip\":\"style_tooltip__zHGMI__Vdk0n\",\"large\":\"style_large__lvmsm__Vdk0n\",\"small\":\"style_small__nUt0r__Vdk0n\",\"popup-content\":\"style_popup-content__-rKQN__Vdk0n\",\"title\":\"style_title__1EQPq__Vdk0n\",\"important-info\":\"style_important-info__qTSZY__Vdk0n\",\"error\":\"style_error__yTTq3__Vdk0n\",\"warning\":\"style_warning__CMJxz__Vdk0n\",\"success\":\"style_success__AvJVx__Vdk0n\",\"sub-title\":\"style_sub-title__uD8CH__Vdk0n\",\"content\":\"style_content__lzgUz__Vdk0n\",\"alone\":\"style_alone__q6q82__Vdk0n\",\"fetch-content\":\"style_fetch-content__tEOEV__Vdk0n\",\"fetch-loading\":\"style_fetch-loading__tN-WB__Vdk0n\",\"title-info-icon\":\"style_title-info-icon__iY8Q+__Vdk0n\"};","import { Space, Tooltip as AntdTooltip } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nconst Tooltip = ({\n overlayClassName,\n title,\n size,\n subtitle,\n content,\n importantInfo,\n importantInfoType,\n moreInfo,\n ...props\n}) => {\n return (\n <AntdTooltip\n {...props}\n rootClassName={classnames(overlayClassName, style[\"tooltip\"], {\n [style[\"small\"]]: size === \"small\",\n [style[\"large\"]]: size === \"large\",\n })}\n title={\n <Space direction=\"vertical\" className={style[\"popup-content\"]}>\n {title && <div className={style[\"title\"]}>{title}</div>}\n {importantInfo && (\n <div\n className={classnames(style[\"important-info\"], {\n [style[\"success\"]]: importantInfoType === \"success\",\n [style[\"warning\"]]: importantInfoType === \"warning\",\n [style[\"error\"]]: importantInfoType === \"error\",\n })}\n >\n {importantInfo}\n </div>\n )}\n {subtitle && <div className={style[\"sub-title\"]}>{subtitle}</div>}\n {content && (\n <div\n className={classnames(style[\"content\"], {\n [style[\"alone\"]]: [\n title,\n subtitle,\n importantInfo,\n moreInfo,\n ].every((item) => !item),\n })}\n >\n {content}\n </div>\n )}\n {moreInfo && <div>{moreInfo}</div>}\n </Space>\n }\n />\n );\n};\n\nexport default Tooltip;\n","import style from \"./style.module.scss\";\nimport Tooltip from \"./Tooltip\";\nimport Icon from \"@components/Icon\";\n\nconst TooltipInfoLabel = ({ title, tooltipTitle }) => {\n return (\n <div>\n {title}\n {tooltipTitle ? (\n <Tooltip {...tooltipTitle}>\n <span>\n <Icon\n type=\"icon-xinxi-miaobian\"\n className={style[\"title-info-icon\"]}\n size={14}\n />\n </span>\n </Tooltip>\n ) : null}\n </div>\n );\n};\n\nexport default TooltipInfoLabel;\n","import {useState} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport {Spin} from \"antd\";\nimport style from \"./style.module.scss\";\nimport Tooltip from \"./Tooltip\";\nimport classnames from \"classnames\";\n\nconst TooltipFetch = ({\n api, children, fetchContent, showLoading = true, loadingClassName, force, ...props\n }) => {\n const [open, setOpen] = useState(false);\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isComplete, isLoading, data, send} = fetchApi;\n return (<Tooltip\n {...Object.assign({}, props, isComplete ? fetchContent(data, fetchApi) : {})}\n open={open}\n onOpenChange={async (open) => {\n if (open && (!isComplete || force)) {\n await send({type: \"refresh\"});\n }\n setOpen(open);\n }}\n >\n <span className={style[\"fetch-content\"]}>\n {children}\n {showLoading && isLoading ? (<Spin\n size=\"small\"\n className={classnames(loadingClassName, style[\"fetch-loading\"])}\n />) : null}\n </span>\n </Tooltip>);\n};\n\nexport default TooltipFetch;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };"],"names":["_ref","overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo","props","_objectWithoutProperties","_excluded","_jsx","AntdTooltip","_objectSpread","rootClassName","classnames","style","_jsxs","Space","direction","className","children","every","item","tooltipTitle","Tooltip","Icon","type","api","fetchContent","showLoading","loadingClassName","force","open","setOpen","useState","fetchApi","useFetch","Object","assign","auto","isComplete","isLoading","data","send","onOpenChange","async","Spin","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module","_defineProperty","r","t","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","i","indexOf","propertyIsEnumerable","toPropertyKey","toPrimitive","TypeError","String","Number","_typeof","iterator","constructor"],"sourceRoot":""}
|