@kne-components/components-core 0.2.42 → 0.2.43
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 +151 -176
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.4de42b45.chunk.css +2 -0
- package/build/static/css/{1151.1f3022bf.chunk.css.map → 1151.4de42b45.chunk.css.map} +1 -1
- package/build/static/css/1153.bb4ac3a6.chunk.css +2 -0
- package/build/static/css/{1153.d61ce559.chunk.css.map → 1153.bb4ac3a6.chunk.css.map} +1 -1
- package/build/static/css/1554.4df98f31.chunk.css +2 -0
- package/build/static/css/{1554.9beb1662.chunk.css.map → 1554.4df98f31.chunk.css.map} +1 -1
- package/build/static/css/{2503.314aae1d.chunk.css → 2503.b81a8ac3.chunk.css} +2 -2
- package/build/static/css/{2503.314aae1d.chunk.css.map → 2503.b81a8ac3.chunk.css.map} +1 -1
- package/build/static/css/{2517.4e00df95.chunk.css → 2517.7a55b2d6.chunk.css} +2 -2
- package/build/static/css/{2517.4e00df95.chunk.css.map → 2517.7a55b2d6.chunk.css.map} +1 -1
- package/build/static/css/2716.7b031170.chunk.css +2 -0
- package/build/static/css/{2716.df120de0.chunk.css.map → 2716.7b031170.chunk.css.map} +1 -1
- package/build/static/css/{2730.802fda5a.chunk.css → 2730.789b24d5.chunk.css} +2 -2
- package/build/static/css/{2730.802fda5a.chunk.css.map → 2730.789b24d5.chunk.css.map} +1 -1
- package/build/static/css/{3142.54b858e2.chunk.css → 3142.dccff030.chunk.css} +2 -2
- package/build/static/css/{3142.54b858e2.chunk.css.map → 3142.dccff030.chunk.css.map} +1 -1
- package/build/static/css/4029.986cc830.chunk.css +2 -0
- package/build/static/css/{4029.47986b1c.chunk.css.map → 4029.986cc830.chunk.css.map} +1 -1
- package/build/static/css/4265.7c0bc7a4.chunk.css +2 -0
- package/build/static/css/{4265.78c20ac7.chunk.css.map → 4265.7c0bc7a4.chunk.css.map} +1 -1
- package/build/static/css/4319.4f3710fd.chunk.css +2 -0
- package/build/static/css/{4319.b931d4d9.chunk.css.map → 4319.4f3710fd.chunk.css.map} +1 -1
- package/build/static/css/4666.fa3483be.chunk.css +2 -0
- package/build/static/css/{4666.b0afc9b3.chunk.css.map → 4666.fa3483be.chunk.css.map} +1 -1
- package/build/static/css/5443.382d8e47.chunk.css +2 -0
- package/build/static/css/{5443.e9f00bae.chunk.css.map → 5443.382d8e47.chunk.css.map} +1 -1
- package/build/static/css/5600.daded1e6.chunk.css +2 -0
- package/build/static/css/{5600.dce4a944.chunk.css.map → 5600.daded1e6.chunk.css.map} +1 -1
- package/build/static/css/5962.fd066085.chunk.css +2 -0
- package/build/static/css/{5962.3802d3a9.chunk.css.map → 5962.fd066085.chunk.css.map} +1 -1
- package/build/static/css/{5996.22b46443.chunk.css → 5996.bb4216d8.chunk.css} +2 -2
- package/build/static/css/{5996.22b46443.chunk.css.map → 5996.bb4216d8.chunk.css.map} +1 -1
- package/build/static/css/{6611.61df97b4.chunk.css → 6611.1622b705.chunk.css} +2 -2
- package/build/static/css/{6611.61df97b4.chunk.css.map → 6611.1622b705.chunk.css.map} +1 -1
- package/build/static/css/6779.ab82ccbd.chunk.css +2 -0
- package/build/static/css/{6779.774ec289.chunk.css.map → 6779.ab82ccbd.chunk.css.map} +1 -1
- package/build/static/css/7121.fdf84e05.chunk.css +2 -0
- package/build/static/css/{7121.6d05bb7a.chunk.css.map → 7121.fdf84e05.chunk.css.map} +1 -1
- package/build/static/css/7227.013f99a9.chunk.css +2 -0
- package/build/static/css/{7227.d1a75756.chunk.css.map → 7227.013f99a9.chunk.css.map} +1 -1
- package/build/static/css/8017.4e6600a8.chunk.css +2 -0
- package/build/static/css/{8017.75cee043.chunk.css.map → 8017.4e6600a8.chunk.css.map} +1 -1
- package/build/static/css/8332.5337d614.chunk.css +2 -0
- package/build/static/css/{8332.dd4512a6.chunk.css.map → 8332.5337d614.chunk.css.map} +1 -1
- package/build/static/css/{8725.e135d3df.chunk.css → 8725.4ebcb56b.chunk.css} +2 -2
- package/build/static/css/{8725.e135d3df.chunk.css.map → 8725.4ebcb56b.chunk.css.map} +1 -1
- package/build/static/css/9968.f88faca8.chunk.css +2 -0
- package/build/static/css/{9968.8466d826.chunk.css.map → 9968.f88faca8.chunk.css.map} +1 -1
- package/build/static/js/{1153.434d4de1.chunk.js → 1153.b6ff505e.chunk.js} +3 -3
- package/build/static/js/{1153.434d4de1.chunk.js.map → 1153.b6ff505e.chunk.js.map} +1 -1
- package/build/static/js/1400.31ca0433.chunk.js +2 -0
- package/build/static/js/{1400.3a90f09a.chunk.js.map → 1400.31ca0433.chunk.js.map} +1 -1
- package/build/static/js/1554.bae12001.chunk.js +3 -0
- package/build/static/js/{1554.c1b883e9.chunk.js.map → 1554.bae12001.chunk.js.map} +1 -1
- package/build/static/js/1581.811ba84b.chunk.js +2 -0
- package/build/static/js/{1581.ebb0eb2e.chunk.js.map → 1581.811ba84b.chunk.js.map} +1 -1
- package/build/static/js/2331.b6f2a506.chunk.js +2 -0
- package/build/static/js/{4712.b3ce8808.chunk.js.map → 2331.b6f2a506.chunk.js.map} +1 -1
- package/build/static/js/2503.a8362b49.chunk.js +2 -0
- package/build/static/js/{2503.809ea331.chunk.js.map → 2503.a8362b49.chunk.js.map} +1 -1
- package/build/static/js/2517.3255de49.chunk.js +2 -0
- package/build/static/js/{2517.29bae06f.chunk.js.map → 2517.3255de49.chunk.js.map} +1 -1
- package/build/static/js/{2716.ca598c07.chunk.js → 2716.6975d095.chunk.js} +3 -3
- package/build/static/js/{2716.ca598c07.chunk.js.map → 2716.6975d095.chunk.js.map} +1 -1
- package/build/static/js/2730.1a859433.chunk.js +2 -0
- package/build/static/js/{2730.87112030.chunk.js.map → 2730.1a859433.chunk.js.map} +1 -1
- package/build/static/js/{2814.fe35bfd4.chunk.js → 2814.dd5df99c.chunk.js} +2 -2
- package/build/static/js/{2814.fe35bfd4.chunk.js.map → 2814.dd5df99c.chunk.js.map} +1 -1
- package/build/static/js/2970.cb5e7784.chunk.js +2 -0
- package/build/static/js/{2970.326287df.chunk.js.map → 2970.cb5e7784.chunk.js.map} +1 -1
- package/build/static/js/{3142.f0188353.chunk.js → 3142.b2c018df.chunk.js} +2 -2
- package/build/static/js/{3142.f0188353.chunk.js.map → 3142.b2c018df.chunk.js.map} +1 -1
- package/build/static/js/36.c8cda08b.chunk.js +2 -0
- package/build/static/js/{36.df9cff6b.chunk.js.map → 36.c8cda08b.chunk.js.map} +1 -1
- package/build/static/js/{4029.17e3d325.chunk.js → 4029.14ac6ed1.chunk.js} +2 -2
- package/build/static/js/{4029.17e3d325.chunk.js.map → 4029.14ac6ed1.chunk.js.map} +1 -1
- package/build/static/js/4106.8ff2b68d.chunk.js +2 -0
- package/build/static/js/{1725.bc60f755.chunk.js.map → 4106.8ff2b68d.chunk.js.map} +1 -1
- package/build/static/js/{4265.7b9b7816.chunk.js → 4265.9062620c.chunk.js} +2 -2
- package/build/static/js/{4265.7b9b7816.chunk.js.map → 4265.9062620c.chunk.js.map} +1 -1
- package/build/static/js/{4319.a8504fc9.chunk.js → 4319.f41624a0.chunk.js} +2 -2
- package/build/static/js/{4319.a8504fc9.chunk.js.map → 4319.f41624a0.chunk.js.map} +1 -1
- package/build/static/js/{4666.0b3f925c.chunk.js → 4666.d7833510.chunk.js} +3 -3
- package/build/static/js/{4666.0b3f925c.chunk.js.map → 4666.d7833510.chunk.js.map} +1 -1
- package/build/static/js/{5443.1ca71be9.chunk.js → 5443.7314913f.chunk.js} +2 -2
- package/build/static/js/{5443.1ca71be9.chunk.js.map → 5443.7314913f.chunk.js.map} +1 -1
- package/build/static/js/556.1fe51b22.chunk.js +2 -0
- package/build/static/js/{556.9e43bff7.chunk.js.map → 556.1fe51b22.chunk.js.map} +1 -1
- package/build/static/js/5600.44942680.chunk.js +2 -0
- package/build/static/js/{5600.71a7974a.chunk.js.map → 5600.44942680.chunk.js.map} +1 -1
- package/build/static/js/5786.fd6a0b33.chunk.js +2 -0
- package/build/static/js/{5786.4a032c0e.chunk.js.map → 5786.fd6a0b33.chunk.js.map} +1 -1
- package/build/static/js/5962.0da47a92.chunk.js +2 -0
- package/build/static/js/{5962.38d7efac.chunk.js.map → 5962.0da47a92.chunk.js.map} +1 -1
- package/build/static/js/{5996.252eb99a.chunk.js → 5996.86ac2f71.chunk.js} +2 -2
- package/build/static/js/{5996.252eb99a.chunk.js.map → 5996.86ac2f71.chunk.js.map} +1 -1
- package/build/static/js/628.78906eef.chunk.js +2 -0
- package/build/static/js/{628.4d54b21d.chunk.js.map → 628.78906eef.chunk.js.map} +1 -1
- package/build/static/js/6611.aa28eda7.chunk.js +2 -0
- package/build/static/js/{6611.c167c7bf.chunk.js.map → 6611.aa28eda7.chunk.js.map} +1 -1
- package/build/static/js/{6779.88dcd9ea.chunk.js → 6779.af16ee56.chunk.js} +2 -2
- package/build/static/js/{6779.88dcd9ea.chunk.js.map → 6779.af16ee56.chunk.js.map} +1 -1
- package/build/static/js/6908.b9d9e979.chunk.js +3 -0
- package/build/static/js/6908.b9d9e979.chunk.js.map +1 -0
- package/build/static/js/{6915.c480d18e.chunk.js → 6915.b7f0a418.chunk.js} +2 -2
- package/build/static/js/{6915.c480d18e.chunk.js.map → 6915.b7f0a418.chunk.js.map} +1 -1
- package/build/static/js/7060.fb665524.chunk.js +2 -0
- package/build/static/js/{4679.c9e2f109.chunk.js.map → 7060.fb665524.chunk.js.map} +1 -1
- package/build/static/js/{7121.a3af662f.chunk.js → 7121.c865a673.chunk.js} +2 -2
- package/build/static/js/{7121.a3af662f.chunk.js.map → 7121.c865a673.chunk.js.map} +1 -1
- package/build/static/js/7227.254ec5f8.chunk.js +3 -0
- package/build/static/js/{7227.ee737b01.chunk.js.map → 7227.254ec5f8.chunk.js.map} +1 -1
- package/build/static/js/7322.7509f0aa.chunk.js +2 -0
- package/build/static/js/{7322.dd5d9179.chunk.js.map → 7322.7509f0aa.chunk.js.map} +1 -1
- package/build/static/js/7617.69cfc4d5.chunk.js +2 -0
- package/build/static/js/{7617.e7bfe484.chunk.js.map → 7617.69cfc4d5.chunk.js.map} +1 -1
- package/build/static/js/{7967.22a1715b.chunk.js → 7967.3d26b043.chunk.js} +2 -2
- package/build/static/js/{7967.22a1715b.chunk.js.map → 7967.3d26b043.chunk.js.map} +1 -1
- package/build/static/js/{8017.59c87321.chunk.js → 8017.f6128e03.chunk.js} +2 -2
- package/build/static/js/{8017.59c87321.chunk.js.map → 8017.f6128e03.chunk.js.map} +1 -1
- package/build/static/js/{8151.d9ededc0.chunk.js → 8151.712d3f0a.chunk.js} +2 -2
- package/build/static/js/{8151.d9ededc0.chunk.js.map → 8151.712d3f0a.chunk.js.map} +1 -1
- package/build/static/js/{8332.b53aa4fb.chunk.js → 8332.0c378091.chunk.js} +2 -2
- package/build/static/js/{8332.b53aa4fb.chunk.js.map → 8332.0c378091.chunk.js.map} +1 -1
- package/build/static/js/8725.dd2e6691.chunk.js +2 -0
- package/build/static/js/{8725.6dc9ccd2.chunk.js.map → 8725.dd2e6691.chunk.js.map} +1 -1
- package/build/static/js/903.9e4ec4b4.chunk.js +1 -0
- package/build/static/js/9439.e8385e17.chunk.js +2 -0
- package/build/static/js/{1820.72fe029d.chunk.js.map → 9439.e8385e17.chunk.js.map} +1 -1
- package/build/static/js/{9968.e3128bbd.chunk.js → 9968.fb47c40a.chunk.js} +2 -2
- package/build/static/js/{9968.e3128bbd.chunk.js.map → 9968.fb47c40a.chunk.js.map} +1 -1
- package/build/static/js/main.6ab8b419.js +2 -0
- package/build/static/js/main.6ab8b419.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1151.1f3022bf.chunk.css +0 -2
- package/build/static/css/1153.d61ce559.chunk.css +0 -2
- package/build/static/css/1554.9beb1662.chunk.css +0 -2
- package/build/static/css/2716.df120de0.chunk.css +0 -2
- package/build/static/css/4029.47986b1c.chunk.css +0 -2
- package/build/static/css/4265.78c20ac7.chunk.css +0 -2
- package/build/static/css/4319.b931d4d9.chunk.css +0 -2
- package/build/static/css/4666.b0afc9b3.chunk.css +0 -2
- package/build/static/css/5443.e9f00bae.chunk.css +0 -2
- package/build/static/css/5600.dce4a944.chunk.css +0 -2
- package/build/static/css/5962.3802d3a9.chunk.css +0 -2
- package/build/static/css/6779.774ec289.chunk.css +0 -2
- package/build/static/css/7121.6d05bb7a.chunk.css +0 -2
- package/build/static/css/7227.d1a75756.chunk.css +0 -2
- package/build/static/css/8017.75cee043.chunk.css +0 -2
- package/build/static/css/8332.dd4512a6.chunk.css +0 -2
- package/build/static/css/9968.8466d826.chunk.css +0 -2
- package/build/static/js/1400.3a90f09a.chunk.js +0 -2
- package/build/static/js/1554.c1b883e9.chunk.js +0 -3
- package/build/static/js/1581.ebb0eb2e.chunk.js +0 -2
- package/build/static/js/1725.bc60f755.chunk.js +0 -2
- package/build/static/js/1820.72fe029d.chunk.js +0 -2
- package/build/static/js/2331.017c7318.chunk.js +0 -2
- package/build/static/js/2331.017c7318.chunk.js.map +0 -1
- package/build/static/js/2503.809ea331.chunk.js +0 -2
- package/build/static/js/2517.29bae06f.chunk.js +0 -2
- package/build/static/js/2730.87112030.chunk.js +0 -2
- package/build/static/js/2970.326287df.chunk.js +0 -2
- package/build/static/js/3284.8e2ca828.chunk.js +0 -1
- package/build/static/js/3405.8fab2c85.chunk.js +0 -2
- package/build/static/js/3405.8fab2c85.chunk.js.map +0 -1
- package/build/static/js/36.df9cff6b.chunk.js +0 -2
- package/build/static/js/3962.3e44db16.chunk.js +0 -2
- package/build/static/js/3962.3e44db16.chunk.js.map +0 -1
- package/build/static/js/4106.e972d67d.chunk.js +0 -2
- package/build/static/js/4106.e972d67d.chunk.js.map +0 -1
- package/build/static/js/4679.c9e2f109.chunk.js +0 -2
- package/build/static/js/4712.b3ce8808.chunk.js +0 -2
- package/build/static/js/4941.ae76674b.chunk.js +0 -2
- package/build/static/js/4941.ae76674b.chunk.js.map +0 -1
- package/build/static/js/556.9e43bff7.chunk.js +0 -2
- package/build/static/js/5600.71a7974a.chunk.js +0 -2
- package/build/static/js/5786.4a032c0e.chunk.js +0 -2
- package/build/static/js/589.89f94e63.chunk.js +0 -2
- package/build/static/js/589.89f94e63.chunk.js.map +0 -1
- package/build/static/js/5962.38d7efac.chunk.js +0 -2
- package/build/static/js/628.4d54b21d.chunk.js +0 -2
- package/build/static/js/6611.c167c7bf.chunk.js +0 -2
- package/build/static/js/6908.e4e20932.chunk.js +0 -3
- package/build/static/js/6908.e4e20932.chunk.js.map +0 -1
- package/build/static/js/7060.2de08549.chunk.js +0 -2
- package/build/static/js/7060.2de08549.chunk.js.map +0 -1
- package/build/static/js/7227.ee737b01.chunk.js +0 -3
- package/build/static/js/7322.dd5d9179.chunk.js +0 -2
- package/build/static/js/7617.e7bfe484.chunk.js +0 -2
- package/build/static/js/8175.61ab1d7e.chunk.js +0 -2
- package/build/static/js/8175.61ab1d7e.chunk.js.map +0 -1
- package/build/static/js/8247.aaa4ad4e.chunk.js +0 -2
- package/build/static/js/8247.aaa4ad4e.chunk.js.map +0 -1
- package/build/static/js/8725.6dc9ccd2.chunk.js +0 -2
- package/build/static/js/9019.b8dab87c.chunk.js +0 -2
- package/build/static/js/9019.b8dab87c.chunk.js.map +0 -1
- package/build/static/js/903.c384d9b6.chunk.js +0 -1
- package/build/static/js/9439.51dd3ec1.chunk.js +0 -2
- package/build/static/js/9439.51dd3ec1.chunk.js.map +0 -1
- package/build/static/js/9998.c5890abc.chunk.js +0 -2
- package/build/static/js/9998.c5890abc.chunk.js.map +0 -1
- package/build/static/js/main.71fd6553.js +0 -2
- package/build/static/js/main.71fd6553.js.map +0 -1
- /package/build/static/js/{1153.434d4de1.chunk.js.LICENSE.txt → 1153.b6ff505e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.c1b883e9.chunk.js.LICENSE.txt → 1554.bae12001.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.ca598c07.chunk.js.LICENSE.txt → 2716.6975d095.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.0b3f925c.chunk.js.LICENSE.txt → 4666.d7833510.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6908.e4e20932.chunk.js.LICENSE.txt → 6908.b9d9e979.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.ee737b01.chunk.js.LICENSE.txt → 7227.254ec5f8.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3962,1581],{21581:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C,preset:()=>d});var o=n(84391),r=n(74529),c=n.n(r),s=n(73884),a=n.n(s),l=n(96418),i=n.n(l);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const p={getContainer:null,withInstall:e=>t=>a().createElement(e,t)},d=e=>Object.assign(p,e),h=["onCancel","onDestroy","outRef","onMount","onOk"],m=["withInstall","getContainer"],y=e=>t=>{let{onCancel:n,onDestroy:o,outRef:r,onMount:c,onOk:l}=t,p=f(t,h);const[d,m]=(0,s.useState)(!1);(0,s.useImperativeHandle)(r,(()=>({close:()=>m(!1),setVisible:m,visible:d})),[d,m]);const y=i()(c);return(0,s.useEffect)((()=>{y(),m(!0)}),[y]),a().createElement(e,u({},p,{open:d,close:()=>m(!1),onOk:async()=>{if(!l)return void m(!1);!1!==await l()&&m(!1)},onCancel:function(){m(!1),n&&n(...arguments)},afterClose:o}))},C=e=>{const t=(0,s.createRef)(null);return n=>{const r=p.getContainer&&p.getContainer()||document.body,s=document.createElement("div"),l=Object.assign({},n),{withInstall:i,getContainer:d}=l,h=f(l,m);r.appendChild(s);const C=o.createRoot(s),b=new Promise((n=>{const o=c()(y,p.withInstall)("function"===typeof i?i(e):e);C.render(a().createElement(o,u({outRef:t},h,{getContainer:d||(()=>s),onDestroy:()=>{s.style.opacity="0",r.removeChild(s),setTimeout((()=>{C.unmount()}),0)},onMount:()=>{n({close:t.current.close})}})))})),g=()=>b.then((e=>{let{close:t}=e;t()}));return{close:g,current:{close:g}}}}},84391:(e,t,n)=>{var o=n(10486);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot}}]);
|
|
2
|
-
//# sourceMappingURL=3962.3e44db16.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3962.3e44db16.chunk.js","mappings":"wnBAEO,MAAMA,EAAS,CACpBC,aAAc,KACdC,YAAcC,GAAsBC,GAAUC,IAAAA,cAACF,EAAqBC,IAGzDE,EAAUC,GACdC,OAAOC,OAAOT,EAAQO,G,sFCFzBG,EAAYP,GACTQ,IAA8D,IAA7D,SAAEC,EAAQ,UAAEC,EAAS,OAAEC,EAAM,QAAEC,EAAO,KAAEC,GAAgBL,EAAPP,EAAKa,EAAAN,EAAAO,GAC5D,MAAOC,EAASC,IAAcC,EAAAA,EAAAA,WAAS,IACvCC,EAAAA,EAAAA,qBAAoBR,GAAQ,KACnB,CACLS,MAAOA,IAAMH,GAAW,GAAQA,aAAYD,aAE7C,CAACA,EAASC,IAEb,MAAMI,EAAQC,IAAeV,GAO7B,OALAW,EAAAA,EAAAA,YAAU,KACRF,IACAJ,GAAW,EAAK,GACf,CAACI,IAEInB,IAAAA,cAACF,EAAgBwB,EAAA,GACnBvB,EAAK,CACTwB,KAAMT,EACNI,MAAOA,IAAMH,GAAW,GACxBJ,KAAMa,UACJ,IAAKb,EAEH,YADAI,GAAW,IAID,UADMJ,KAEhBI,GAAW,EACb,EAEFR,SAAU,WACRQ,GAAW,GACXR,GAAYA,KAASkB,U,EAEvBC,WAAYlB,IACZ,EAIAmB,EAAkB7B,IACtB,MAAM8B,GAAMC,EAAAA,EAAAA,WAAU,MACtB,OAAQC,IACN,MAAMC,EAAOpC,EAAOC,cAAgBD,EAAOC,gBAAkBoC,SAASD,KAChEE,EAAOD,SAASE,cAAc,OACYC,EAAAhC,OAAOC,OAAO,CAAC,EAAG0B,IAA5D,YAAEjC,EAAW,aAAED,GAAwBuC,EAAPpC,EAAKa,EAAAuB,EAAAC,GAC3CL,EAAKM,YAAYJ,GACjB,MAAMK,EAAUC,EAAAA,WAAoBN,GAC9BO,EAAU,IAAIC,SAASC,IAC3B,MAAMC,EAAgBC,IAAQvC,EAAWV,EAAOE,YAA1B+C,CAA8D,oBAAhB/C,EAA6BA,EAAYC,GAAoBA,GACjIwC,EAAQO,OAAO7C,IAAAA,cAAC2C,EAAarB,EAAA,CAC3Bb,OAAQmB,GACJ7B,EAAK,CACTH,aAAcA,GAAgB,KAAOqC,GACrCzB,UAAWA,KACTyB,EAAKa,MAAMC,QAAU,IACrBhB,EAAKiB,YAAYf,GACjBgB,YAAW,KACTX,EAAQY,SAAS,GAChB,EAAE,EAEPxC,QAASA,KACPgC,EAAQ,CACNxB,MAAOU,EAAIuB,QAAQjC,OACnB,KAEH,IAGCA,EAAQA,IACLsB,EAAQY,MAAKC,IAAe,IAAd,MAAEnC,GAAOmC,EAC5BnC,GAAO,IAGX,MAAO,CACLA,QAAOiC,QAAS,CAAEjC,SACnB,CACF,C,kBChFH,IAAIoC,EAAIC,EAAQ,OAEdC,EAAQC,WAAaH,EAAEG,WACvBD,EAAQE,YAAcJ,EAAEI,W","sources":["../node_modules/@kne/with-layer/src/preset.js","../node_modules/@kne/with-layer/src/index.js","../node_modules/react-dom/client.js"],"sourcesContent":["import React from \"react\";\r\n\r\nexport const global = {\r\n getContainer: null,\r\n withInstall: (WrappedComponent) => (props) => <WrappedComponent {...props} />\r\n};\r\n\r\nexport const preset = (options) => {\r\n return Object.assign(global, options);\r\n};\r\n\r\nexport default preset;\r\n","import ReactDOM from \"react-dom/client\";\r\nimport compose from \"@kne/compose\";\r\nimport React, { createRef, useState, useImperativeHandle, useEffect } from \"react\";\r\nimport useRefCallback from \"@kne/use-ref-callback\";\r\nimport { global } from \"./preset\";\r\n\r\nconst withLayer = WrappedComponent => {\r\n return ({ onCancel, onDestroy, outRef, onMount, onOk, ...props }) => {\r\n const [visible, setVisible] = useState(false);\r\n useImperativeHandle(outRef, () => {\r\n return {\r\n close: () => setVisible(false), setVisible, visible\r\n };\r\n }, [visible, setVisible]);\r\n\r\n const mount = useRefCallback(onMount);\r\n\r\n useEffect(() => {\r\n mount();\r\n setVisible(true);\r\n }, [mount]);\r\n\r\n return (<WrappedComponent\r\n {...props}\r\n open={visible}\r\n close={() => setVisible(false)}\r\n onOk={async () => {\r\n if (!onOk) {\r\n setVisible(false);\r\n return;\r\n }\r\n const res = await onOk();\r\n if (res !== false) {\r\n setVisible(false);\r\n }\r\n }}\r\n onCancel={(...args) => {\r\n setVisible(false);\r\n onCancel && onCancel(...args);\r\n }}\r\n afterClose={onDestroy}\r\n />);\r\n };\r\n};\r\n\r\nconst createWithLayer = WrappedComponent => {\r\n const ref = createRef(null);\r\n return (args) => {\r\n const body = global.getContainer && global.getContainer() || document.body;\r\n const root = document.createElement(\"div\");\r\n const { withInstall, getContainer, ...props } = Object.assign({}, args);\r\n body.appendChild(root);\r\n const rootDom = ReactDOM.createRoot(root);\r\n const promise = new Promise((resolve) => {\r\n const LayerInstance = compose(withLayer, global.withInstall)(typeof withInstall === \"function\" ? withInstall(WrappedComponent) : WrappedComponent);\r\n rootDom.render(<LayerInstance\r\n outRef={ref}\r\n {...props}\r\n getContainer={getContainer || (() => root)}\r\n onDestroy={() => {\r\n root.style.opacity = \"0\";\r\n body.removeChild(root);\r\n setTimeout(() => {\r\n rootDom.unmount();\r\n }, 0);\r\n }}\r\n onMount={() => {\r\n resolve({\r\n close: ref.current.close\r\n });\r\n }}\r\n />);\r\n });\r\n\r\n const close = () => {\r\n return promise.then(({ close }) => {\r\n close();\r\n });\r\n };\r\n return {\r\n close, current: { close }\r\n };\r\n };\r\n};\r\n\r\nexport default createWithLayer;\r\nexport { preset } from \"./preset\";\r\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],"names":["global","getContainer","withInstall","WrappedComponent","props","React","preset","options","Object","assign","withLayer","_ref","onCancel","onDestroy","outRef","onMount","onOk","_objectWithoutPropertiesLoose","_excluded","visible","setVisible","useState","useImperativeHandle","close","mount","useRefCallback","useEffect","_extends","open","async","arguments","afterClose","createWithLayer","ref","createRef","args","body","document","root","createElement","_Object$assign","_excluded2","appendChild","rootDom","ReactDOM","promise","Promise","resolve","LayerInstance","compose","render","style","opacity","removeChild","setTimeout","unmount","current","then","_ref2","m","require","exports","createRoot","hydrateRoot"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4106,1725],{34106:(e,n,t)=>{t.r(n),t.d(n,{Provider:()=>u,context:()=>c,usePreset:()=>a});var r=t(73884),o=t.n(r);const c=(0,r.createContext)({}),{Provider:s}=c,u=e=>{let{value:n,children:t}=e;const c=(0,r.useRef)(n);return c.current=n,o().createElement(s,{value:c},t)};u.defaultProps={value:{}};const a=()=>(0,r.useContext)(c).current||{}}}]);
|
|
2
|
-
//# sourceMappingURL=4106.e972d67d.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4106.e972d67d.chunk.js","mappings":"mPAEaA,GAAUC,EAAAA,EAAAA,eAAc,CAAC,IAE/BC,SAAUC,GAAiBH,EAE5BE,EAAWE,IAAuB,IAAtB,MAACC,EAAK,SAAEC,GAASF,EAC/B,MAAMG,GAASC,EAAAA,EAAAA,QAAOH,GAEtB,OADAE,EAAOE,QAAUJ,EACVK,IAAAA,cAACP,EAAa,CAACE,MAAOE,GACxBD,EACW,EAGpBJ,EAASS,aAAe,CACpBN,MAAO,CAAC,GAGN,MAAAO,EAAYA,KACCC,EAAAA,EAAAA,YAAWb,GACZS,SAAW,CAAC,C","sources":["../node_modules/@kne/global-preset/src/index.js"],"sourcesContent":["import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nProvider.defaultProps = {\n value: {}\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n"],"names":["context","createContext","Provider","ReactProvider","_ref","value","children","preset","useRef","current","React","defaultProps","usePreset","useContext"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4679,7060],{47060:(t,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>c});var n=e(73884),s=e(26866),i=e.n(s);const{EventEmitter:o}=i();class u extends o{constructor(t){super();const{debug:r,name:e="event"}=Object.assign({},t);this.debug=r,this.name=e}emit(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];this.debug&&console.log(`[${this.name}][debug]:`,...r),super.emit(...r)}}const c=t=>{const r=(0,n.useRef)(t);return(0,n.useMemo)((()=>{const t=new u(r.current);return{addListener:function(){return t.addListener(...arguments)},emit:function(){return t.emit(...arguments)},removeAllListeners:function(){return t.removeAllListeners(...arguments)},listeners:function(){return t.listeners(...arguments)},once:function(){return t.once(...arguments)}}}),[])}},26866:(t,r,e)=>{var n={EventEmitter:e(42667),EmitterSubscription:e(52757)};t.exports=n},42667:(t,r,e)=>{"use strict";var n=e(52757),s=e(48053),i=e(36415),o=e(49534),u=function(){function t(){this._subscriber=new s,this._currentSubscription=null}var r=t.prototype;return r.addListener=function(t,r,e){return this._subscriber.addSubscription(t,new n(this._subscriber,r,e))},r.once=function(t,r,e){var n=this;return this.addListener(t,(function(){n.removeCurrentListener(),r.apply(e,arguments)}))},r.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},r.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},r.listeners=function(t){var r=this._subscriber.getSubscriptionsForType(t);return r?r.filter(o.thatReturnsTrue).map((function(t){return t.listener})):[]},r.emit=function(t){var r=this._subscriber.getSubscriptionsForType(t);if(r){for(var e=Object.keys(r),n=0;n<e.length;n++){var s=r[e[n]];s&&(this._currentSubscription=s,this.__emitToSubscription.apply(this,[s].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},r.__emitToSubscription=function(t,r){var e=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,e)},t}();t.exports=u},52757:(t,r,e)=>{"use strict";var n=function(t){var r,e;function n(r,e,n){var s;return(s=t.call(this,r)||this).listener=e,s.context=n,s}return e=t,(r=n).prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,n}(e(79171));t.exports=n},79171:t=>{"use strict";var r=function(){function t(t){this.subscriber=t}return t.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},48053:(t,r,e)=>{"use strict";var n=e(36415),s=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var r=t.prototype;return r.addSubscription=function(t,r){r.subscriber!==this&&n(!1),this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var e=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(r),r.eventType=t,r.key=e,r},r.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},r.removeSubscription=function(t){var r=t.eventType,e=t.key,n=this._subscriptionsForType[r];n&&delete n[e]},r.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=s},49534:t=>{"use strict";function r(t){return function(){return t}}var e=function(){};e.thatReturns=r,e.thatReturnsFalse=r(!1),e.thatReturnsTrue=r(!0),e.thatReturnsNull=r(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(t){return t},t.exports=e},36415:t=>{"use strict";var r=function(t){};t.exports=function(t,e){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];if(r(e),!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(o=new Error(e.replace(/%s/g,(function(){return String(s[u++])})))).name="Invariant Violation"}throw o.framesToPop=1,o}}}}]);
|
|
2
|
-
//# sourceMappingURL=4679.c9e2f109.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4712,2331],{72331:(e,n,r)=>{r.r(n),r.d(n,{default:()=>u});var t=r(5544),a=r(73884);const u=function(e,n){n=Object.assign({},{defaultValue:"defaultValue",value:"value",onChange:"onChange"},n);var r=(0,a.useRef)(n.value in e),u=(0,a.useState)(e[n.defaultValue]),o=(0,t.A)(u,2),l=o[0],c=o[1],i=(0,a.useRef)(null);return i.current=r.current?e[n.value]:l,[i.current,function(t){for(var a="function"===typeof t?i.current=t(i.current):t,u=arguments.length,o=new Array(u>1?u-1:0),l=1;l<u;l++)o[l-1]=arguments[l];e[n.onChange]&&e[n.onChange].apply(e,[a].concat(o)),r.current||c(a)}]}},43145:(e,n,r)=>{function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}r.d(n,{A:()=>t})},96369:(e,n,r)=>{function t(e){if(Array.isArray(e))return e}r.d(n,{A:()=>t})},76562:(e,n,r)=>{function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(n,{A:()=>t})},5544:(e,n,r)=>{r.d(n,{A:()=>o});var t=r(96369);var a=r(27800),u=r(76562);function o(e,n){return(0,t.A)(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,u,o,l=[],c=!0,i=!1;try{if(u=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=u.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){i=!0,a=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(i)throw a}}return l}}(e,n)||(0,a.A)(e,n)||(0,u.A)()}},27800:(e,n,r)=>{r.d(n,{A:()=>a});var t=r(43145);function a(e,n){if(e){if("string"==typeof e)return(0,t.A)(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,t.A)(e,n):void 0}}}}]);
|
|
2
|
-
//# sourceMappingURL=4712.b3ce8808.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4941,7322],{57322:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(73884),n=r(11287),c=function(){return c=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c.apply(this,arguments)};var l=a.forwardRef((function(e,t){var r=e.children,l=e.scrollableNodeProps,o=void 0===l?{}:l,s=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(e,["children","scrollableNodeProps"]),i=a.useRef(),p=a.useRef(),u=a.useRef(),f={},m={};Object.keys(s).forEach((function(e){Object.prototype.hasOwnProperty.call(n.A.defaultOptions,e)?f[e]=s[e]:m[e]=s[e]}));var d=c(c({},n.A.defaultOptions.classNames),f.classNames),b=c(c({},o),{className:"".concat(d.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:f.tabIndex||n.A.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||n.A.defaultOptions.ariaLabel});return a.useEffect((function(){var e;return p.current=b.ref?b.ref.current:p.current,i.current&&(e=new n.A(i.current,c(c(c({},f),p.current&&{scrollableNode:p.current}),u.current&&{contentNode:u.current})),"function"===typeof t?t(e):t&&(t.current=e)),function(){null===e||void 0===e||e.unMount(),e=null,"function"===typeof t&&t(null)}}),[]),a.createElement("div",c({"data-simplebar":"init",ref:i},m),a.createElement("div",{className:d.wrapper},a.createElement("div",{className:d.heightAutoObserverWrapperEl},a.createElement("div",{className:d.heightAutoObserverEl})),a.createElement("div",{className:d.mask},a.createElement("div",{className:d.offset},"function"===typeof r?r({scrollableNodeRef:p,scrollableNodeProps:c(c({},b),{ref:p}),contentNodeRef:u,contentNodeProps:{className:d.contentEl,ref:u}}):a.createElement("div",c({},b),a.createElement("div",{className:d.contentEl},r)))),a.createElement("div",{className:d.placeholder})),a.createElement("div",{className:"".concat(d.track," simplebar-horizontal")},a.createElement("div",{className:d.scrollbar})),a.createElement("div",{className:"".concat(d.track," simplebar-vertical")},a.createElement("div",{className:d.scrollbar})))}));l.displayName="SimpleBar"}}]);
|
|
2
|
-
//# sourceMappingURL=4941.ae76674b.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4941.ae76674b.chunk.js","mappings":"gNA2BIA,EAAW,WAQX,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACX,EACOH,EAASa,MAAMC,KAAMP,UAChC,EAcA,IAAIQ,EAAYC,EAAAA,YAAiB,SAAUC,EAAIC,GAC3C,IAAIC,EAAWF,EAAGE,SAAUC,EAAKH,EAAGI,oBAAqBA,OAA6B,IAAPD,EAAgB,CAAC,EAAIA,EAAIE,EAb5G,SAAgBlB,EAAGmB,GACf,IAAIpB,EAAI,CAAC,EACT,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMc,EAAEC,QAAQf,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,oBAAjCH,OAAOwB,sBACtB,KAAIpB,EAAI,EAAb,IAAgBI,EAAIR,OAAOwB,sBAAsBrB,GAAIC,EAAII,EAAED,OAAQH,IAC3DkB,EAAEC,QAAQf,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUgB,qBAAqBd,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,CAGyHwB,CAAOV,EAAI,CAAC,WAAY,wBACzIW,EAAQZ,EAAAA,SACRa,EAAoBb,EAAAA,SACpBc,EAAiBd,EAAAA,SACjBe,EAAU,CAAC,EACXC,EAAO,CAAC,EACZ/B,OAAOgC,KAAKX,GAAYY,SAAQ,SAAUC,GAClClC,OAAOS,UAAUC,eAAeC,KAAKwB,EAAAA,EAAcC,eAAgBF,GACnEJ,EAAQI,GAAOb,EAAWa,GAG1BH,EAAKG,GAAOb,EAAWa,EAE/B,IACA,IAAIG,EAAatC,EAASA,EAAS,CAAC,EAAGoC,EAAAA,EAAcC,eAAeC,YAAaP,EAAQO,YACrFC,EAA0BvC,EAASA,EAAS,CAAC,EAAGqB,GAAsB,CAAEmB,UAAW,GAAGC,OAAOH,EAAWI,gBAAgBD,OAAOpB,EAAoBmB,UAAY,IAAIC,OAAOpB,EAAoBmB,WAAa,IAAKG,SAAUZ,EAAQY,UAAYP,EAAAA,EAAcC,eAAeM,SAAUC,KAAM,SAAU,aAAcb,EAAQc,WAAaT,EAAAA,EAAcC,eAAeQ,YA2BzW,OA1BA7B,EAAAA,WAAgB,WACZ,IAAI8B,EAiBJ,OAhBAjB,EAAkBkB,QAAUR,EAAwBrB,IAC9CqB,EAAwBrB,IAAI6B,QAC5BlB,EAAkBkB,QACpBnB,EAAMmB,UACND,EAAW,IAAIV,EAAAA,EAAcR,EAAMmB,QAAS/C,EAASA,EAASA,EAAS,CAAC,EAAG+B,GAAWF,EAAkBkB,SAAW,CAC/GC,eAAgBnB,EAAkBkB,UAChCjB,EAAeiB,SAAW,CAC5BE,YAAanB,EAAeiB,WAEb,oBAAR7B,EACPA,EAAI4B,GAEC5B,IACLA,EAAI6B,QAAUD,IAGf,WACU,OAAbA,QAAkC,IAAbA,GAA+BA,EAASI,UAC7DJ,EAAW,KACQ,oBAAR5B,GACPA,EAAI,KAEZ,CACJ,GAAG,IACKF,EAAAA,cAAoB,MAAOhB,EAAS,CAAE,iBAAkB,OAAQkB,IAAKU,GAASI,GAClFhB,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWa,SAC/CnC,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWc,6BAC/CpC,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWe,wBACvDrC,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWgB,MAC/CtC,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWiB,QAA8B,oBAAbpC,EAA2BA,EAAS,CACpGU,kBAAmBA,EACnBR,oBAAqBrB,EAASA,EAAS,CAAC,EAAGuC,GAA0B,CAAErB,IAAKW,IAC5EC,eAAgBA,EAChB0B,iBAAkB,CACdhB,UAAWF,EAAWmB,UACtBvC,IAAKY,KAENd,EAAAA,cAAoB,MAAOhB,EAAS,CAAC,EAAGuC,GAC3CvB,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWmB,WAAatC,MACxEH,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWoB,eACvD1C,EAAAA,cAAoB,MAAO,CAAEwB,UAAW,GAAGC,OAAOH,EAAWqB,MAAO,0BAChE3C,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWsB,aACvD5C,EAAAA,cAAoB,MAAO,CAAEwB,UAAW,GAAGC,OAAOH,EAAWqB,MAAO,wBAChE3C,EAAAA,cAAoB,MAAO,CAAEwB,UAAWF,EAAWsB,aAC/D,IACA7C,EAAU8C,YAAc,W","sources":["../node_modules/simplebar-react/dist/index.mjs"],"sourcesContent":["/**\n * simplebar-react - v3.2.6\n * React component for SimpleBar\n * https://grsmto.github.io/simplebar/\n *\n * Made by Adrien Denat\n * Under MIT License\n */\n\nimport * as React from 'react';\nimport SimpleBarCore from 'simplebar-core';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nvar SimpleBar = React.forwardRef(function (_a, ref) {\n var children = _a.children, _b = _a.scrollableNodeProps, scrollableNodeProps = _b === void 0 ? {} : _b, otherProps = __rest(_a, [\"children\", \"scrollableNodeProps\"]);\n var elRef = React.useRef();\n var scrollableNodeRef = React.useRef();\n var contentNodeRef = React.useRef();\n var options = {};\n var rest = {};\n Object.keys(otherProps).forEach(function (key) {\n if (Object.prototype.hasOwnProperty.call(SimpleBarCore.defaultOptions, key)) {\n options[key] = otherProps[key];\n }\n else {\n rest[key] = otherProps[key];\n }\n });\n var classNames = __assign(__assign({}, SimpleBarCore.defaultOptions.classNames), options.classNames);\n var scrollableNodeFullProps = __assign(__assign({}, scrollableNodeProps), { className: \"\".concat(classNames.contentWrapper).concat(scrollableNodeProps.className ? \" \".concat(scrollableNodeProps.className) : ''), tabIndex: options.tabIndex || SimpleBarCore.defaultOptions.tabIndex, role: 'region', 'aria-label': options.ariaLabel || SimpleBarCore.defaultOptions.ariaLabel });\n React.useEffect(function () {\n var instance;\n scrollableNodeRef.current = scrollableNodeFullProps.ref\n ? scrollableNodeFullProps.ref.current\n : scrollableNodeRef.current;\n if (elRef.current) {\n instance = new SimpleBarCore(elRef.current, __assign(__assign(__assign({}, options), (scrollableNodeRef.current && {\n scrollableNode: scrollableNodeRef.current\n })), (contentNodeRef.current && {\n contentNode: contentNodeRef.current\n })));\n if (typeof ref === 'function') {\n ref(instance);\n }\n else if (ref) {\n ref.current = instance;\n }\n }\n return function () {\n instance === null || instance === void 0 ? void 0 : instance.unMount();\n instance = null;\n if (typeof ref === 'function') {\n ref(null);\n }\n };\n }, []);\n return (React.createElement(\"div\", __assign({ \"data-simplebar\": \"init\", ref: elRef }, rest),\n React.createElement(\"div\", { className: classNames.wrapper },\n React.createElement(\"div\", { className: classNames.heightAutoObserverWrapperEl },\n React.createElement(\"div\", { className: classNames.heightAutoObserverEl })),\n React.createElement(\"div\", { className: classNames.mask },\n React.createElement(\"div\", { className: classNames.offset }, typeof children === 'function' ? (children({\n scrollableNodeRef: scrollableNodeRef,\n scrollableNodeProps: __assign(__assign({}, scrollableNodeFullProps), { ref: scrollableNodeRef }),\n contentNodeRef: contentNodeRef,\n contentNodeProps: {\n className: classNames.contentEl,\n ref: contentNodeRef\n }\n })) : (React.createElement(\"div\", __assign({}, scrollableNodeFullProps),\n React.createElement(\"div\", { className: classNames.contentEl }, children))))),\n React.createElement(\"div\", { className: classNames.placeholder })),\n React.createElement(\"div\", { className: \"\".concat(classNames.track, \" simplebar-horizontal\") },\n React.createElement(\"div\", { className: classNames.scrollbar })),\n React.createElement(\"div\", { className: \"\".concat(classNames.track, \" simplebar-vertical\") },\n React.createElement(\"div\", { className: classNames.scrollbar }))));\n});\nSimpleBar.displayName = 'SimpleBar';\n\nexport { SimpleBar as default };\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SimpleBar","React","_a","ref","children","_b","scrollableNodeProps","otherProps","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__rest","elRef","scrollableNodeRef","contentNodeRef","options","rest","keys","forEach","key","SimpleBarCore","defaultOptions","classNames","scrollableNodeFullProps","className","concat","contentWrapper","tabIndex","role","ariaLabel","instance","current","scrollableNode","contentNode","unMount","wrapper","heightAutoObserverWrapperEl","heightAutoObserverEl","mask","offset","contentNodeProps","contentEl","placeholder","track","scrollbar","displayName"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[556,8175],{90556:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>a,useDebouncedCallback:()=>u,useThrottledCallback:()=>o});var t=e(73884);function u(r,n,e){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),a=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),l=(0,t.useRef)(),s=(0,t.useRef)(r),m=(0,t.useRef)(!0);(0,t.useEffect)((function(){s.current=r}),[r]);var v=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var d=!!(e=e||{}).leading,p=!("trailing"in e)||!!e.trailing,k="maxWait"in e,h=k?Math.max(+e.maxWait||0,n):null;(0,t.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,t.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){v&&cancelAnimationFrame(a.current),a.current=v?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||k&&r-i.current>=h},w=function(n){return a.current=null,p&&o.current?r(n):(o.current=f.current=null,l.current)},R=function r(){var u=Date.now();if(t(u))return w(u);if(m.current){var a=n-(u-c.current),o=k?Math.min(a,h-(u-i.current)):a;e(r,o)}},b=function(){var s=Date.now(),v=t(s);if(o.current=[].slice.call(arguments),f.current=u,c.current=s,v){if(!a.current&&m.current)return i.current=c.current,e(R,n),d?r(c.current):l.current;if(k)return e(R,n),r(c.current)}return a.current||e(R,n),l.current};return b.cancel=function(){a.current&&(v?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?w(Date.now()):l.current},b}),[d,k,n,h,p,v]);return w}function c(r,n){return r===n}function i(r){return"function"==typeof r?function(){return r}:r}function a(r,n,e){var a,o,f=e&&e.equalityFn||c,l=(a=(0,t.useState)(i(r)),o=a[1],[a[0],(0,t.useCallback)((function(r){return o(i(r))}),[])]),s=l[0],m=l[1],v=u((0,t.useCallback)((function(r){return m(r)}),[m]),n,e),d=(0,t.useRef)(r);return f(d.current,r)||(v(r),d.current=r),[s,v]}function o(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
|
|
2
|
-
//# sourceMappingURL=556.9e43bff7.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(8762),n=t.n(l);t(46733);const s=n()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>C,withConfirm:()=>f});t(73884);var l=t(55199);const n=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__8lUc4",m="style_is-danger__gxyAB__8lUc4",h="style_title__EEPu2__8lUc4",_="style_content__mZZg5__8lUc4",p="style_has-title__5+PEt__8lUc4";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:n})((o=>{let{title:t,message:n,isDelete:r=!0,onClick:f,onCancel:g,disabled:y,showCancel:C,cancelText:x,isModal:b,okText:j,placement:w,getContainer:N,...k}=o;const{formatMessage:v}=(0,i.useIntl)({moduleName:"ConfirmButton"}),P=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...k,disabled:y,onClick:e=>{P({type:"confirm",title:t,getContainer:N,danger:r,confirmType:r?"warning":"info",message:n||v({id:"message"}),okText:j||v(r?{id:"delete"}:{id:"confirm"}),cancelText:x||v({id:"cancel"}),onCancel:g,onOk:f})}}):(0,u.jsx)(l.Popconfirm,{title:(0,u.jsxs)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(l.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(l.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,n||v({id:"message"})]})]}),placement:w,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:N,disabled:y,showCancel:C,cancelText:x,okText:j||v(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...k,disabled:y})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(l.Typography.Link),y=f(l.Typography.Text),C=f(l.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>U,TabsModalButton:()=>B,default:()=>v,useConfirmModal:()=>k,useModal:()=>N,useTabsModal:()=>S});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__8lUc4",large:"style_large__iaqVE__8lUc4","modal-body-inner":"style_modal-body-inner__4PhpA__8lUc4","modal-title":"style_modal-title__dswaw__8lUc4","modal-outer":"style_modal-outer__r3SkX__8lUc4","modal-body":"style_modal-body__jQJSI__8lUc4","right-options-modal":"style_right-options-modal__FajDP__8lUc4","right-options-row":"style_right-options-row__-mPb9__8lUc4","right-options-col":"style_right-options-col__3ilee__8lUc4","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__8lUc4",content:"style_content__k6MIF__8lUc4","modal-footer":"style_modal-footer__-prbN__8lUc4","modal-close":"style_modal-close__Oa5Kl__8lUc4","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__8lUc4","is-danger":"style_is-danger__H5110__8lUc4",title:"style_title__orTym__8lUc4","has-title":"style_has-title__qy0Wp__8lUc4"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,p.jsxs)(n.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(n.Col,{span:24-t,className:a["right-options-col"],children:l}),(0,p.jsx)(n.Col,{span:t,className:a["right-options-col"],children:o})]}):l},g=(e,o)=>e-48-(o?58:0)+"px",y=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,p.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(n.Col,{children:(0,p.jsx)(n.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:n,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,l.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,d));return s&&!1!==l&&a&&a(),l}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g}=e;const y=(0,l.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:a["modal-title"],children:o}),(0,p.jsx)(_.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,p.jsx)(C,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:g})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:_,children:u}=e;const g=e=>(e=Object.assign({},{title:l},e),(0,p.jsx)(x,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(r,{...e,childrenRef:_,close:s}),targetProps:Object.assign({},e,{childrenRef:_,close:s}),children:(0,p.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:_,close:s}),children:m(u,{...e,childrenRef:_,close:s})})}));return"function"===typeof o?o(g):g({})},j=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:_,onConfirm:u,onCancel:f,closable:g,disabledScroller:C,withDecorator:x,childrenRef:j,...w}=e;return{...w,icon:null,centered:!0,title:null,maskClosable:!!w.hasOwnProperty("maskClosable")&&w.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...y(m,!(null===n&&!s)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:h,closable:g,onClose:_,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:C,children:o,childrenRef:j})})}},w=e=>{const o=(0,l.useRef)(null);return(0,p.jsx)(n.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const N=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=j({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},k=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(n.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,r]})}),content:(0,p.jsxs)(n.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,h]})});t.close=o}return t}},v=w,P=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:n.children})))):e(Object.assign({},t,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},U=e=>(0,p.jsx)(v,{...P(e)}),S=()=>{const e=N();return o=>e(P(o))};var M=t(73025);const B=e=>{const o=S();return e.api?(0,p.jsx)(M.A,{...e,modalFunc:o}):(0,p.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=N();if(!e.api){const{modalProps:t,...l}=e;return(0,p.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,p.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.71a7974a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5786,3405],{15786:(e,t,n)=>{var o=n(73766),s=n(76337),r=n(73884),l=n(85505);function i(e){return e&&e.__esModule?e.default:e}function a(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e){e.forEach((e=>c(e.element)))}function p(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function u(e,t){const n=f(e),o={parentElement:e.from};let s=[];switch(n){case"normal":s=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":s=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":s=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const r=function(e,t){const n=e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex));return n}(s,t);return r}function h(e,t){return m(e,b(e,t))}function b(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function m(e,t,n,o){const s=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);s.splice(e.newIndex,0,t||e.item)})),s}function f(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function x(e){const{list:t,setList:n,children:o,tag:s,style:r,className:l,clone:i,onAdd:a,onChange:c,onChoose:d,onClone:p,onEnd:u,onFilter:h,onRemove:b,onSort:m,onStart:f,onUnchoose:x,onUpdate:g,onMove:$,onSpill:I,onSelect:O,onDeselect:w,...E}=e;return E}a(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),a(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),a(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),a(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),a(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),a(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),a(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),a(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),a(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),a(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),a(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),a(e.exports,"ReactSortable",(()=>$));const g={dragging:null};class $ extends r.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,r.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),i(l)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();i(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,s={style:t,className:n,id:o},l=e&&null!==e?e:"div";return(0,r.createElement)(l,{ref:this.ref,...s},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:l="sortable-drag",fallbackClass:a="sortable-falback",ghostClass:c="sortable-ghost",swapClass:d="sortable-swap-highlight",filter:p="sortable-filter",list:u}=this.props;if(!e||null==e)return null;const h=t||"data-id";return r.Children.map(e,((e,t)=>{if(void 0===e)return;const l=u[t]||{},{className:a}=e.props,c="string"===typeof p&&{[p.replace(".","")]:!!l.filtered},d=i(s)(a,{[n]:l.selected,[o]:l.chosen,...c});return(0,r.cloneElement)(e,{[h]:e.key,className:d})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=x(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t)));return{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const s=n(e,t,this.sortable,g);return"undefined"!==typeof s&&s}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,s=u(e,[...g.dragging.props.list]);d(s);n(m(s,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,o=f(e),s=u(e,t);p(s);let r=[...t];if("clone"!==e.pullMode)r=b(s,r);else{let t=s;switch(o){case"multidrag":t=s.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=s.map((t=>({...t,element:e.clone})));break;default:i(l)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}d(t),s.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);r.splice(n,1,o)}))}r=r.map((e=>Object.assign(e,{selected:!1}))),n(r,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,o=u(e,t);d(o),p(o);return n(h(o,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,g)}}var I,O;I=e.exports,O={},Object.keys(O).forEach((function(e){"default"===e||"__esModule"===e||I.hasOwnProperty(e)||Object.defineProperty(I,e,{enumerable:!0,get:function(){return O[e]}})}))},85505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=!0,s="Invariant failed";function r(e,t){if(!e){if(o)throw new Error(s);var n="function"===typeof t?t():t;throw new Error(n?s+": "+n:s)}}}}]);
|
|
2
|
-
//# sourceMappingURL=5786.4a032c0e.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[589,2970],{2970:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>a,useDebouncedCallback:()=>u,useThrottledCallback:()=>o});var t=e(73884);function u(r,n,e){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),a=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),l=(0,t.useRef)(),s=(0,t.useRef)(r),m=(0,t.useRef)(!0);(0,t.useEffect)((function(){s.current=r}),[r]);var v=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var d=!!(e=e||{}).leading,p=!("trailing"in e)||!!e.trailing,k="maxWait"in e,h=k?Math.max(+e.maxWait||0,n):null;(0,t.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,t.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){v&&cancelAnimationFrame(a.current),a.current=v?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||k&&r-i.current>=h},w=function(n){return a.current=null,p&&o.current?r(n):(o.current=f.current=null,l.current)},R=function r(){var u=Date.now();if(t(u))return w(u);if(m.current){var a=n-(u-c.current),o=k?Math.min(a,h-(u-i.current)):a;e(r,o)}},b=function(){var s=Date.now(),v=t(s);if(o.current=[].slice.call(arguments),f.current=u,c.current=s,v){if(!a.current&&m.current)return i.current=c.current,e(R,n),d?r(c.current):l.current;if(k)return e(R,n),r(c.current)}return a.current||e(R,n),l.current};return b.cancel=function(){a.current&&(v?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?w(Date.now()):l.current},b}),[d,k,n,h,p,v]);return w}function c(r,n){return r===n}function i(r){return"function"==typeof r?function(){return r}:r}function a(r,n,e){var a,o,f=e&&e.equalityFn||c,l=(a=(0,t.useState)(i(r)),o=a[1],[a[0],(0,t.useCallback)((function(r){return o(i(r))}),[])]),s=l[0],m=l[1],v=u((0,t.useCallback)((function(r){return m(r)}),[m]),n,e),d=(0,t.useRef)(r);return f(d.current,r)||(v(r),d.current=r),[s,v]}function o(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
|
|
2
|
-
//# sourceMappingURL=589.89f94e63.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/589.89f94e63.chunk.js","mappings":"6PA6GwB,SAAAA,EACtBC,EACAC,EACAF,GAAA,IAAAG,EAAA,KAEMC,GAAeC,EAAAA,EAAAA,QAAO,MACtBC,GAAiBD,EAAAA,EAAAA,QAAO,GACxBE,GAAUF,EAAAA,EAAAA,QAAO,MACjBG,GAAWH,EAAAA,EAAAA,QAAkB,IAC7BI,GAAWJ,EAAAA,EAAAA,UACXK,GAASL,EAAAA,EAAAA,UACTM,GAAUN,EAAAA,EAAAA,QAAOJ,GACjBW,GAAUP,EAAAA,EAAAA,SAAA,IAEhBQ,EAAAA,EAAAA,YAAU,WACRF,EAAQG,QAAUb,CAAA,GACjB,CAACA,IAGJ,IAAMc,GAAUb,GAAiB,IAATA,GAAgC,oBAAXc,OAE7C,GAAoB,mBAATf,EACT,MAAM,IAAIgB,UAAU,uBAGtBf,GAAQA,GAAQ,EAGhB,IAAMgB,KAFNlB,EAAUA,GAAW,CAAC,GAEImB,QACpBC,IAAW,aAAcpB,MAAYA,EAAQqB,SAC7CC,EAAS,YAAatB,EACtBuB,EAAUD,EAASE,KAAKC,KAAKzB,EAAQ0B,SAAW,EAAGxB,GAAQ,MAEjEW,EAAAA,EAAAA,YAAU,WAER,OADAD,EAAQE,SAAA,EAAU,WAEhBF,EAAQE,SAAA,CAAU,IAEnB,IAYH,IAAMa,GAAYC,EAAAA,EAAAA,UAAQ,WACxB,IAAMvB,EAAa,SAACA,GAClB,IAAMQ,EAAOL,EAASM,QAChBc,EAAUnB,EAASK,QAIzB,OAFAN,EAASM,QAAUL,EAASK,QAAU,KACtCR,EAAeQ,QAAUT,EACjBK,EAAOI,QAAUH,EAAQG,QAAQe,MAAMD,EAASf,EAAA,EAGpDA,EAAa,SAACR,EAAyBQ,GACvCE,GAAQe,qBAAqBvB,EAAQO,SACzCP,EAAQO,QAAUC,EAASgB,sBAAsB1B,GAAe2B,WAAW3B,EAAaQ,EAAA,EAGpFe,EAAe,SAACvB,GACpB,IAAKO,EAAQE,QAAS,OAAO,EAE7B,IAAMD,EAAoBR,EAAOD,EAAaU,QAM9C,OACGV,EAAaU,SACdD,GAAqBX,GACrBW,EAAoB,GACnBS,GATyBjB,EAAOC,EAAeQ,SASdS,CAAA,EAIhCtB,EAAe,SAACY,GAKpB,OAJAN,EAAQO,QAAU,KAIdM,GAAYZ,EAASM,QAChBT,EAAWQ,IAEpBL,EAASM,QAAUL,EAASK,QAAU,KAC/BJ,EAAOI,QAAA,EAGVd,EAAe,SAAfK,IACJ,IAAML,EAAOiC,KAAKC,MAClB,GAAIN,EAAa5B,GACf,OAAOC,EAAaD,GAGtB,GAAKY,EAAQE,QAAb,CAIA,IAEMX,EAAcD,GAFMF,EAAOI,EAAaU,SAGxCP,EAAgBe,EAASE,KAAKW,IAAIhC,EAAaoB,GAFzBvB,EAAOM,EAAeQ,UAEoCX,EAGtFU,EAAWR,EAAcE,EAAA,GAGrBoB,EAA0B,WAC9B,IAAM1B,EAAOgC,KAAKC,MACZvB,EAAaiB,EAAa3B,GAMhC,GAJAO,EAASM,QAAT,GAAAsB,MAAAC,KAAAC,WACA7B,EAASK,QAAUX,EACnBC,EAAaU,QAAUb,EAEnBU,EAAY,CACd,IAAKJ,EAAQO,SAAWF,EAAQE,QAM9B,OAJAR,EAAeQ,QAAUV,EAAaU,QAEtCD,EAAWb,EAAcE,GAElBgB,EAAUb,EAAWD,EAAaU,SAAWJ,EAAOI,QAE7D,GAAIQ,EAGF,OADAT,EAAWb,EAAcE,GAClBG,EAAWD,EAAaU,QAAA,CAMnC,OAHKP,EAAQO,SACXD,EAAWb,EAAcE,GAEpBQ,EAAOI,OAAA,EAmBhB,OAhBAa,EAAKY,OAAS,WACRhC,EAAQO,UACVC,EAASe,qBAAqBvB,EAAQO,SAAW0B,aAAajC,EAAQO,UAExER,EAAeQ,QAAU,EACzBN,EAASM,QAAUV,EAAaU,QAAUL,EAASK,QAAUP,EAAQO,QAAU,MAGjFa,EAAKc,UAAY,WACf,QAASlC,EAAQO,OAAA,EAGnBa,EAAKe,MAAQ,WACX,OAAQnC,EAAQO,QAA2Bb,EAAagC,KAAKC,OAAnCxB,EAAOI,OAAA,EAG5Ba,CAAA,GACN,CAACT,EAASI,EAAQpB,EAAMqB,EAASH,EAAUL,IAE9C,OAAOY,CAAA,CC3QT,SAASxB,EAAiBE,EAASQ,GACjC,OAAOR,IAASQ,CAAA,CAGlB,SAAST,EAAiCC,GACxC,MAAwB,mBAAVA,EAAuB,kBAAMA,CAAA,EAAQA,CAAA,CAS7B,SAAAC,EACtBO,EACAe,EACAtB,GAEA,IAAAC,EAVcC,EAURC,EAAMH,GAAWA,EAAQqC,YAAexC,EAE9CO,GAAAH,GAZ0BL,EAAAA,EAAAA,UAASE,EAYcS,IAZnCL,EACdD,EAAA,GACO,CAFOA,EAAA,IACiBN,EAAAA,EAAAA,cAAY,SAACI,GAAD,OAAcG,EAASJ,EAA8BC,GAAA,GAAS,MAWlGM,EAAAD,EAAA,GAAOE,EAAdF,EAAA,GACMK,EAAYf,GAAqBC,EAAAA,EAAAA,cAAY,SAACI,GAAa,OAAAO,EAASP,EAAA,GAAQ,CAACO,IAAYgB,EAAOtB,GAChGY,GAAgBb,EAAAA,EAAAA,QAAOQ,GAO7B,OALKJ,EAAGS,EAAcJ,QAASD,KAC7BE,EAAUF,GACVK,EAAcJ,QAAUD,GAGnB,CAACF,EAAOI,EAAA,CCqBH,SAAUR,EACtBF,EACAQ,EAFYe,GAGuC,IAAA3B,OAAA,IAAA2B,EAAA,GAAjDA,EAAA1B,EAAAD,EAAAkB,QAAmDhB,EAAAF,EAAnCoB,SAElB,OAAOrB,EAAqBK,EAAMQ,EAAM,CACtCa,QAASb,EACTM,aAAA,IAJmDjB,GAAAA,EAKnDmB,cAAA,IAL2BlB,GAAAA,GAAA,C","sources":["../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","../node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => void;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function `debounced.callback` return the result of the last func invocation.\n * Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>> extends ControlFunctions {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait?: number,\n options?: Options\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n\n useEffect(() => {\n funcRef.current = func;\n }, [func]);\n\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && typeof window !== 'undefined';\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF ? requestAnimationFrame(pendingFunc) : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF ? cancelAnimationFrame(timerId.current) : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current = lastCallTime.current = lastThis.current = timerId.current = null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [leading, maxing, wait, maxWait, trailing, useRAF]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState, Dispatch } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nfunction adjustFunctionValueOfSetState<T>(value: T): T | (() => T) {\n return typeof value === 'function' ? () => value : value;\n}\n\nfunction useStateIgnoreCallback<T>(initialState: T): [T, Dispatch<T>] {\n const [state, setState] = useState(adjustFunctionValueOfSetState(initialState));\n const setStateIgnoreCallback = useCallback((value: T) => setState(adjustFunctionValueOfSetState(value)), []);\n return [state, setStateIgnoreCallback];\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: { maxWait?: number; leading?: boolean; trailing?: boolean; equalityFn?: (left: T, right: T) => boolean }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const [state, dispatch] = useStateIgnoreCallback(value);\n const debounced = useDebouncedCallback(useCallback((value: T) => dispatch(value), [dispatch]), delay, options);\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [state, debounced];\n}\n","import useDebouncedCallback, { CallOptions, DebouncedState } from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const { callback } = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={callback}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","u","e","i","a","r","o","f","l","m","v","d","p","n","current","g","window","TypeError","w","leading","s","trailing","x","y","Math","max","maxWait","h","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5962,2095],{24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>q,DragButton:()=>V,FileUpload:()=>ae,Title:()=>E,UploadButton:()=>X,UploadTips:()=>J,default:()=>se});var l=s(73884),i=s(33097),n=s.n(i),a=s(55199);const r="style_file-list-outer__wPhbb__8lUc4",o="style_file-list-title__zXM5r__8lUc4",c="style_container__P4RaF__8lUc4",d="style_file-preview-inner__cvE72__8lUc4",u="style_file-preview__M-Asq__8lUc4",p="style_drag-area__Q+lm7__8lUc4",m="style_upload-drag-close__u5o8W__8lUc4",x="style_upload-drag-tips__z7puZ__8lUc4",g="style_upload-drag-icon__sGGoS__8lUc4",f="style_upload-drag-title__9Afmb__8lUc4",_="style_upload-drag-text__o38vS__8lUc4",h="style_title-group__8IJkS__8lUc4",v="style_upload-btn__Q+Jxn__8lUc4",j="style_total-count__z1fyd__8lUc4",y="style_file-select__mHqyI__8lUc4",S="style_file-name__QkvMn__8lUc4",N="style_file-select-info__fOLiM__8lUc4",F="style_file-select-option__AbDrD__8lUc4";var L=s(75087),P=s.n(L),w=s(74065),C=s.n(w),b=s(57469),U=s.n(b),M=s(64671),T=s(67390),z=s(58609),I=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:l,previewList:i,getPermission:n,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,I.jsx)("div",{className:o,children:(0,I.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,I.jsx)(a.Col,{children:(0,I.jsxs)(a.Space,{className:h,size:4,children:[(0,I.jsx)(a.Segmented,{value:t,onChange:s,options:[{label:(0,I.jsxs)(a.Space,{size:4,children:[(0,I.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,I.jsx)(z.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,I.jsxs)(a.Space,{size:4,children:[(0,I.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,I.jsx)(z.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&l.get(r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(a.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:i.map((e=>{let{filename:t,userName:s,date:l,ossId:i}=e;return(0,I.jsx)(a.Select.Option,{className:F,value:i,children:(0,I.jsxs)(a.Space,{direction:"vertical",children:[(0,I.jsxs)(a.Space,{size:4,align:"start",children:[(0,I.jsx)(P(),{type:C()(t.split(".")),size:14}),(0,I.jsx)(a.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||l?(0,I.jsxs)(a.Space,{className:N,size:24,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(z.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",l&&U()(l).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},i)}))}),(0,I.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:n,item:l.get(r),apis:d}),(0,I.jsx)("div",{className:j,children:(0,I.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:i.length},moduleName:"FileList"})})]})]})}),(0,I.jsx)(a.Col,{children:u})]})})};D.defaultProps={maxWidth:260};const E=D,A=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),k=s.n(O),B=s(83136),R=s.n(B);const G=(0,l.createContext)({}),{Provider:W}=G,Y=()=>(0,l.useContext)(G);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:l}=Y();return(0,I.jsx)("div",{ref:l,className:v,onClick:()=>{s((e=>!e))},children:(0,I.jsxs)(a.Typography.Text,{className:"ant-btn",children:[(0,I.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,I.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:l}=Y();return(0,I.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:l,children:[(0,I.jsx)(M.default,{type:"icon-tianjia"}),t]})},q=e=>{let{title:t,accept:s,fileSize:i,maxLength:n,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,l.useState)(!1),x=(0,l.useRef)(null),g=k()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,I.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,I.jsx)(W,{value:{open:p,onOpenChange:m,accept:s,fileSize:i,maxLength:n,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,I.jsxs)(a.Space,{className:r,direction:"vertical",children:[t,(0,I.jsx)("div",{className:R()(c,u),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};q.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const J=e=>{let{icon:t,title:s,renderTips:l}=e;const{accept:i,fileSize:n,maxLength:a}=Y(),r=l((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:i.map((e=>e.replace(/^\./,""))).join("\u3001"),size:n}),{fileSize:n,maxLength:a,accept:i});return(0,I.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,I.jsx)("div",{className:g,children:t||(0,I.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,I.jsx)("div",{className:f,children:s||(0,I.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,I.jsx)("div",{className:_,children:r})]})};J.defaultProps={renderTips:e=>e};const Z=e=>{let{children:t,className:s}=e;const{open:l,accept:i,onOpenChange:n,onFileSelected:r}=Y();return l?(0,I.jsxs)("div",{className:R()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;n(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,i)));r(t)},onDragEnd:()=>{n(!1)},children:[(0,I.jsx)(a.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,I.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{n(!1)}}),t]}):null};Z.defaultProps={children:(0,I.jsx)(J,{})};const $=Z;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:i,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:i,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[S,N]=(0,l.useState)(o),{formatMessage:F}=(0,z.useIntl)({moduleName:"FileList"}),{message:L}=a.App.useApp(),P=(0,l.useMemo)((()=>new Map(i.map((e=>[e.ossId,e])))),[i]),[w,C]=(0,l.useState)(c||n()(i,"[0].ossId",null));(0,l.useEffect)((()=>{w&&P.get(w)||C(n()(i,"[0].ossId",null))}),[i,P,w]);const b={onPreview:e=>{C(e.ossId),N("preview")},onDelete:async e=>{v.onDelete&&await v.onDelete(e),r((t=>{const s=t.slice(0),l=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return l>-1&&s.splice(l,1),s})),L.success(F({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;v.onEdit&&await v.onEdit({formData:t,item:s}),r((e=>{const l=e.slice(0),i=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return i>-1&&l.splice(i,1,Object.assign({},s,{filename:t.name})),l})),L.success(F({id:"successEditFileName"},{name:s.filename}))}},U="function"===typeof x?x({currentPreviewFileId:w,currentTab:S}):x;return(0,I.jsxs)(q,{title:(0,I.jsx)(E,{currentTab:S,setCurrentTab:N,previewMap:P,previewList:i,getPermission:m,currentPreviewFileId:w,setCurrentPreviewFileId:C,itemApis:b,getPopupContainer:_,children:(0,I.jsxs)(a.Space,{split:(0,I.jsx)(a.Divider,{type:"vertical"}),children:[U,m("add",{})?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{children:(0,I.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,I.jsx)(X,{children:(0,I.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:f,children:["list"===S?(0,I.jsx)(T.List,{dataSource:[...j,...i],getPermission:m,apis:b}):null,"preview"===S?w?(0,I.jsx)("div",{className:d,children:(0,I.jsx)(K.default,{className:u,id:w,apis:v,originName:null===(t=P.get(w))||void 0===t?void 0:t.filename})}):(0,I.jsx)(a.Empty,{image:a.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,I.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,I.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,I.jsx)(te,{...e})});var le=s(10986),ie=s.n(le);const ne=e=>{let{maxLength:t,apis:s,getPermission:l,fileSize:i,accept:n,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ie()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,I.jsxs)(q,{title:(0,I.jsxs)(a.Row,{children:[(0,I.jsx)(a.Col,{flex:1}),(0,I.jsx)(a.Col,{children:(0,I.jsxs)(a.Space,{split:(0,I.jsx)(a.Divider,{type:"vertical"}),children:[(0,I.jsx)(V,{}),(0,I.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:i,maxLength:t,onFileSelected:m,accept:n,children:[(0,I.jsx)(T.List,{dataSource:[...p,...d],getPermission:l,apis:c}),(0,I.jsx)($,{})]})};ne.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const ae=ne},94710:e=>{e.exports=function(e,t,s,l){for(var i=-1,n=null==e?0:e.length;++i<n;){var a=e[i];t(l,a,s(a),e)}return l}},32952:(e,t,s)=>{var l=s(45652);e.exports=function(e,t,s,i){return l(e,(function(e,l,n){t(i,e,s(e),n)})),i}},45652:(e,t,s)=>{var l=s(94664),i=s(76516)(l);e.exports=i},99910:e=>{e.exports=function(e,t){for(var s,l=-1,i=e.length;++l<i;){var n=t(e[l]);void 0!==n&&(s=void 0===s?n:s+n)}return s}},19449:(e,t,s)=>{var l=s(94710),i=s(32952),n=s(9096),a=s(54052);e.exports=function(e,t){return function(s,r){var o=a(s)?l:i,c=t?t():{};return o(s,e,n(r,2),c)}}},76516:(e,t,s)=>{var l=s(6571);e.exports=function(e,t){return function(s,i){if(null==s)return s;if(!l(s))return e(s,i);for(var n=s.length,a=t?n:-1,r=Object(s);(t?a--:++a<n)&&!1!==i(r[a],a,r););return s}}},26304:(e,t,s)=>{var l=s(53871),i=s(99140);e.exports=function(e,t,s){var n=null==e?0:e.length;return n?(t=s||void 0===t?1:i(t),l(e,0,(t=n-t)<0?0:t)):[]}},39835:(e,t,s)=>{var l=s(71775),i=s(19449),n=Object.prototype.hasOwnProperty,a=i((function(e,t,s){n.call(e,s)?e[s].push(t):l(e,s,[t])}));e.exports=a},56641:(e,t,s)=>{var l=s(26989);e.exports=function(e,t,s){var i=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===i?l(e,t,void 0,s):!!i}},60262:(e,t,s)=>{var l=s(99910),i=s(33279);e.exports=function(e){return e&&e.length?l(e,i):0}},99140:(e,t,s)=>{var l=s(37303);e.exports=function(e){var t=l(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5962.38d7efac.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[628,8247],{20628:(e,o,n)=>{n.r(o),n.d(o,{Consumer:()=>r,Provider:()=>c,context:()=>s,default:()=>s,useGlobalContext:()=>u});var t=n(73884);const s=(0,t.createContext)({}),{Provider:c,Consumer:r}=s,u=()=>(0,t.useContext)(s)}}]);
|
|
2
|
-
//# sourceMappingURL=628.4d54b21d.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>K});const n={menu:"style_menu__gvIvn__8lUc4","all-no-start-icon":"style_all-no-start-icon__CA+zR__8lUc4","no-start-icon":"style_no-start-icon__LnC1S__8lUc4","has-children":"style_has-children__m9tce__8lUc4","has-children-node":"style_has-children-node__2bhEB__8lUc4","is-root":"style_is-root__4hhOc__8lUc4",title:"style_title__+Hcar__8lUc4",active:"style_active__WU49K__8lUc4","no-collapse":"style_no-collapse__aIZBM__8lUc4","title-content":"style_title-content__cQXpK__8lUc4",loading:"style_loading__1pU4P__8lUc4"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:K,children:O,fetchOptions:v,depth:C,onLoad:j,allowCollapsed:k}=e,b=Array.isArray(O)&&O.length>0||v,{refresh:x,isLoading:N}=(0,y.useFetch)(Object.assign({},v,{auto:!k&&v,onRequestSuccess:e=>{j(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:f,[n["has-children"]]:b,[n["no-collapse"]]:b&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),b||!h?b||v?k&&(v&&x({}),K(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),b&&k&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!k||g&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!k||g&&N?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[p,u]=d()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,f]=d()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:K,defaultOpenKeys:O,links:v,childrenKeys:C,hasStartIcon:j,hasChildren:k}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${l}`}`;s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(y);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[y]);(0,h.useEffect)((()=>{const e=v.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&u(e.key)}),[v,i,c,u,l]);const[b,x]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||O}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),N=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||C[i]&&C[i].indexOf(a)>-1,onClick:u,onLoad:e=>{f((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{x((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},N(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[f,x,u,C,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!j,[n["has-children-node"]]:k}),children:N(K,{selectedKey:p,openKeys:b})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const K=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__8lUc4";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.c167c7bf.chunk.js.map
|