@kne-components/components-core 0.4.18 → 0.4.19
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 +128 -126
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1996.2e5446bd.chunk.css +2 -0
- package/build/static/css/{1996.7de1c377.chunk.css.map → 1996.2e5446bd.chunk.css.map} +1 -1
- package/build/static/css/2004.5a5f5050.chunk.css +2 -0
- package/build/static/css/{4666.9102336e.chunk.css.map → 2004.5a5f5050.chunk.css.map} +1 -1
- package/build/static/css/206.87cc50f7.chunk.css +2 -0
- package/build/static/css/206.87cc50f7.chunk.css.map +1 -0
- package/build/static/css/{1459.9c88e088.chunk.css → 2109.e4a9d518.chunk.css} +1 -1
- package/build/static/css/{1459.9c88e088.chunk.css.map → 2109.e4a9d518.chunk.css.map} +1 -1
- package/build/static/css/254.7e1a9cae.chunk.css +2 -0
- package/build/static/css/{254.51a666f0.chunk.css.map → 254.7e1a9cae.chunk.css.map} +1 -1
- package/build/static/css/2628.4b2fa5e7.chunk.css +2 -0
- package/build/static/css/{2628.ec2e929a.chunk.css.map → 2628.4b2fa5e7.chunk.css.map} +1 -1
- package/build/static/css/3404.ab96a91e.chunk.css +2 -0
- package/build/static/css/{3874.0b4d654b.chunk.css.map → 3404.ab96a91e.chunk.css.map} +1 -1
- package/build/static/css/3652.94c4a057.chunk.css +2 -0
- package/build/static/css/{3652.3ceea0bd.chunk.css.map → 3652.94c4a057.chunk.css.map} +1 -1
- package/build/static/css/3771.848b3542.chunk.css +2 -0
- package/build/static/css/{3771.18c49899.chunk.css.map → 3771.848b3542.chunk.css.map} +1 -1
- package/build/static/css/{3790.52f4c06a.chunk.css → 3790.cbbb1d11.chunk.css} +2 -2
- package/build/static/css/{3790.52f4c06a.chunk.css.map → 3790.cbbb1d11.chunk.css.map} +1 -1
- package/build/static/css/4244.e15399ee.chunk.css +2 -0
- package/build/static/css/4244.e15399ee.chunk.css.map +1 -0
- package/build/static/css/{4277.9dcfa38f.chunk.css → 4277.224c3e71.chunk.css} +2 -2
- package/build/static/css/{4277.9dcfa38f.chunk.css.map → 4277.224c3e71.chunk.css.map} +1 -1
- package/build/static/css/4741.92851600.chunk.css +2 -0
- package/build/static/css/{4741.475a4f43.chunk.css.map → 4741.92851600.chunk.css.map} +1 -1
- package/build/static/css/5195.fe9e1bec.chunk.css +2 -0
- package/build/static/css/5195.fe9e1bec.chunk.css.map +1 -0
- package/build/static/css/6763.bf02c54a.chunk.css +2 -0
- package/build/static/css/{6763.2d2f31d2.chunk.css.map → 6763.bf02c54a.chunk.css.map} +1 -1
- package/build/static/css/6980.130af877.chunk.css +12 -0
- package/build/static/css/{6980.953992f0.chunk.css.map → 6980.130af877.chunk.css.map} +1 -1
- package/build/static/css/{3980.f90485a5.chunk.css → 7055.10770951.chunk.css} +1 -1
- package/build/static/css/{3980.f90485a5.chunk.css.map → 7055.10770951.chunk.css.map} +1 -1
- package/build/static/css/7227.b7452b3a.chunk.css +2 -0
- package/build/static/css/{7227.2b627433.chunk.css.map → 7227.b7452b3a.chunk.css.map} +1 -1
- package/build/static/css/760.8472541b.chunk.css +2 -0
- package/build/static/css/{760.05339a6d.chunk.css.map → 760.8472541b.chunk.css.map} +1 -1
- package/build/static/css/8593.f35a8aa6.chunk.css +2 -0
- package/build/static/css/{8593.9e071d51.chunk.css.map → 8593.f35a8aa6.chunk.css.map} +1 -1
- package/build/static/css/9556.cf902901.chunk.css +2 -0
- package/build/static/css/{9556.70a3cd1e.chunk.css.map → 9556.cf902901.chunk.css.map} +1 -1
- package/build/static/css/9772.4a475b09.chunk.css +2 -0
- package/build/static/css/{9772.8d2751e2.chunk.css.map → 9772.4a475b09.chunk.css.map} +1 -1
- package/build/static/js/1064.d41264f2.chunk.js +2 -0
- package/build/static/js/1064.d41264f2.chunk.js.map +1 -0
- package/build/static/js/1125.d38aa30f.chunk.js +2 -0
- package/build/static/js/{1125.7d918f7c.chunk.js.map → 1125.d38aa30f.chunk.js.map} +1 -1
- package/build/static/js/1996.ca9b00d5.chunk.js +2 -0
- package/build/static/js/{1996.43c56583.chunk.js.map → 1996.ca9b00d5.chunk.js.map} +1 -1
- package/build/static/js/2004.085d943f.chunk.js +3 -0
- package/build/static/js/2004.085d943f.chunk.js.map +1 -0
- package/build/static/js/206.92fa9c1f.chunk.js +2 -0
- package/build/static/js/{206.e45bcafe.chunk.js.map → 206.92fa9c1f.chunk.js.map} +1 -1
- package/build/static/js/2097.d1ea6fca.chunk.js +2 -0
- package/build/static/js/2097.d1ea6fca.chunk.js.map +1 -0
- package/build/static/js/2109.f0e29277.chunk.js +2 -0
- package/build/static/js/2109.f0e29277.chunk.js.map +1 -0
- package/build/static/js/254.11755151.chunk.js +2 -0
- package/build/static/js/{254.63aae880.chunk.js.map → 254.11755151.chunk.js.map} +1 -1
- package/build/static/js/2628.8834a75f.chunk.js +2 -0
- package/build/static/js/{2628.fe190305.chunk.js.map → 2628.8834a75f.chunk.js.map} +1 -1
- package/build/static/js/3201.971909e0.chunk.js +2 -0
- package/build/static/js/3201.971909e0.chunk.js.map +1 -0
- package/build/static/js/3404.77db51dc.chunk.js +3 -0
- package/build/static/js/3404.77db51dc.chunk.js.map +1 -0
- package/build/static/js/{8731.5006d9f7.chunk.js → 3652.7e815933.chunk.js} +2 -2
- package/build/static/js/{3790.060aa7a3.chunk.js.map → 3652.7e815933.chunk.js.map} +1 -1
- package/build/static/js/3771.6baa72b9.chunk.js +2 -0
- package/build/static/js/{3771.ec95465a.chunk.js.map → 3771.6baa72b9.chunk.js.map} +1 -1
- package/build/static/js/{3652.b9371077.chunk.js → 3790.435a94b8.chunk.js} +2 -2
- package/build/static/js/{3652.b9371077.chunk.js.map → 3790.435a94b8.chunk.js.map} +1 -1
- package/build/static/js/3856.69b5b484.chunk.js +2 -0
- package/build/static/js/3856.69b5b484.chunk.js.map +1 -0
- package/build/static/js/3980.2b1d7c6a.chunk.js +2 -0
- package/build/static/js/3980.2b1d7c6a.chunk.js.map +1 -0
- package/build/static/js/4244.d1666f2b.chunk.js +2 -0
- package/build/static/js/{4244.0be65c8a.chunk.js.map → 4244.d1666f2b.chunk.js.map} +1 -1
- package/build/static/js/4277.f953fa5c.chunk.js +2 -0
- package/build/static/js/{4277.11b10227.chunk.js.map → 4277.f953fa5c.chunk.js.map} +1 -1
- package/build/static/js/4297.8a8bbb22.chunk.js +2 -0
- package/build/static/js/4297.8a8bbb22.chunk.js.map +1 -0
- package/build/static/js/4474.bd07c69e.chunk.js +2 -0
- package/build/static/js/{4474.96023b8f.chunk.js.map → 4474.bd07c69e.chunk.js.map} +1 -1
- package/build/static/js/473.2d0c0c37.chunk.js +2 -0
- package/build/static/js/473.2d0c0c37.chunk.js.map +1 -0
- package/build/static/js/5195.ff2ecd55.chunk.js +2 -0
- package/build/static/js/{5195.a3379c71.chunk.js.map → 5195.ff2ecd55.chunk.js.map} +1 -1
- package/build/static/js/5361.f58a43d8.chunk.js +2 -0
- package/build/static/js/5361.f58a43d8.chunk.js.map +1 -0
- package/build/static/js/6075.4cb6c645.chunk.js +2 -0
- package/build/static/js/6075.4cb6c645.chunk.js.map +1 -0
- package/build/static/js/6125.653d9b74.chunk.js +2 -0
- package/build/static/js/6125.653d9b74.chunk.js.map +1 -0
- package/build/static/js/6235.79f6bb66.chunk.js +2 -0
- package/build/static/js/6235.79f6bb66.chunk.js.map +1 -0
- package/build/static/js/6629.53af71ca.chunk.js +2 -0
- package/build/static/js/6629.53af71ca.chunk.js.map +1 -0
- package/build/static/js/6763.4a72ce83.chunk.js +2 -0
- package/build/static/js/{6763.72b945ab.chunk.js.map → 6763.4a72ce83.chunk.js.map} +1 -1
- package/build/static/js/{6980.705a3c6b.chunk.js → 6980.4c035b4e.chunk.js} +2 -2
- package/build/static/js/6980.4c035b4e.chunk.js.map +1 -0
- package/build/static/js/7055.4de6757f.chunk.js +2 -0
- package/build/static/js/7055.4de6757f.chunk.js.map +1 -0
- package/build/static/js/{7227.431972d7.chunk.js → 7227.5563cb7e.chunk.js} +3 -3
- package/build/static/js/{7227.431972d7.chunk.js.map → 7227.5563cb7e.chunk.js.map} +1 -1
- package/build/static/js/{760.7902a1fa.chunk.js → 760.d53179f5.chunk.js} +2 -2
- package/build/static/js/{760.7902a1fa.chunk.js.map → 760.d53179f5.chunk.js.map} +1 -1
- package/build/static/js/7991.473db031.chunk.js +3 -0
- package/build/static/js/7991.473db031.chunk.js.map +1 -0
- package/build/static/js/8593.b8fbccf4.chunk.js +2 -0
- package/build/static/js/{8593.e449163b.chunk.js.map → 8593.b8fbccf4.chunk.js.map} +1 -1
- package/build/static/js/8601.b68e855d.chunk.js +2 -0
- package/build/static/js/8601.b68e855d.chunk.js.map +1 -0
- package/build/static/js/8742.b63f3196.chunk.js +2 -0
- package/build/static/js/8742.b63f3196.chunk.js.map +1 -0
- package/build/static/js/8985.d66727fd.chunk.js +2 -0
- package/build/static/js/8985.d66727fd.chunk.js.map +1 -0
- package/build/static/js/{9556.42c26cc9.chunk.js → 9556.4b2d6baa.chunk.js} +3 -3
- package/build/static/js/{9556.42c26cc9.chunk.js.map → 9556.4b2d6baa.chunk.js.map} +1 -1
- package/build/static/js/9772.b80d84c8.chunk.js +2 -0
- package/build/static/js/9772.b80d84c8.chunk.js.map +1 -0
- package/build/static/js/main.74e21614.js +2 -0
- package/build/static/js/main.74e21614.js.map +1 -0
- package/package.json +2 -2
- package/build/static/css/1996.7de1c377.chunk.css +0 -2
- package/build/static/css/206.ceece11f.chunk.css +0 -2
- package/build/static/css/206.ceece11f.chunk.css.map +0 -1
- package/build/static/css/254.51a666f0.chunk.css +0 -2
- package/build/static/css/2628.ec2e929a.chunk.css +0 -2
- package/build/static/css/3652.3ceea0bd.chunk.css +0 -2
- package/build/static/css/3771.18c49899.chunk.css +0 -2
- package/build/static/css/3874.0b4d654b.chunk.css +0 -2
- package/build/static/css/4244.4dc0127a.chunk.css +0 -2
- package/build/static/css/4244.4dc0127a.chunk.css.map +0 -1
- package/build/static/css/4666.9102336e.chunk.css +0 -2
- package/build/static/css/4741.475a4f43.chunk.css +0 -2
- package/build/static/css/5195.71cca503.chunk.css +0 -2
- package/build/static/css/5195.71cca503.chunk.css.map +0 -1
- package/build/static/css/6763.2d2f31d2.chunk.css +0 -2
- package/build/static/css/6980.953992f0.chunk.css +0 -12
- package/build/static/css/7227.2b627433.chunk.css +0 -2
- package/build/static/css/760.05339a6d.chunk.css +0 -2
- package/build/static/css/8593.9e071d51.chunk.css +0 -2
- package/build/static/css/9556.70a3cd1e.chunk.css +0 -2
- package/build/static/css/9772.8d2751e2.chunk.css +0 -2
- package/build/static/js/1064.008d70dd.chunk.js +0 -2
- package/build/static/js/1064.008d70dd.chunk.js.map +0 -1
- package/build/static/js/1125.7d918f7c.chunk.js +0 -2
- package/build/static/js/1452.81983808.chunk.js +0 -2
- package/build/static/js/1452.81983808.chunk.js.map +0 -1
- package/build/static/js/1459.8414a709.chunk.js +0 -2
- package/build/static/js/1459.8414a709.chunk.js.map +0 -1
- package/build/static/js/1599.e690f0c9.chunk.js +0 -2
- package/build/static/js/1599.e690f0c9.chunk.js.map +0 -1
- package/build/static/js/1996.43c56583.chunk.js +0 -2
- package/build/static/js/206.e45bcafe.chunk.js +0 -2
- package/build/static/js/2097.6c785a20.chunk.js +0 -2
- package/build/static/js/2097.6c785a20.chunk.js.map +0 -1
- package/build/static/js/254.63aae880.chunk.js +0 -2
- package/build/static/js/2628.fe190305.chunk.js +0 -2
- package/build/static/js/3201.fcf44d18.chunk.js +0 -2
- package/build/static/js/3201.fcf44d18.chunk.js.map +0 -1
- package/build/static/js/3771.ec95465a.chunk.js +0 -2
- package/build/static/js/3790.060aa7a3.chunk.js +0 -2
- package/build/static/js/3856.432dc814.chunk.js +0 -2
- package/build/static/js/3856.432dc814.chunk.js.map +0 -1
- package/build/static/js/3874.a5dec826.chunk.js +0 -3
- package/build/static/js/3874.a5dec826.chunk.js.map +0 -1
- package/build/static/js/3927.52a01c4a.chunk.js +0 -3
- package/build/static/js/3927.52a01c4a.chunk.js.map +0 -1
- package/build/static/js/3980.7d2ef712.chunk.js +0 -2
- package/build/static/js/3980.7d2ef712.chunk.js.map +0 -1
- package/build/static/js/4244.0be65c8a.chunk.js +0 -2
- package/build/static/js/4277.11b10227.chunk.js +0 -2
- package/build/static/js/4474.96023b8f.chunk.js +0 -2
- package/build/static/js/4666.4a8f5ff8.chunk.js +0 -3
- package/build/static/js/4666.4a8f5ff8.chunk.js.map +0 -1
- package/build/static/js/4677.d8589059.chunk.js +0 -2
- package/build/static/js/4677.d8589059.chunk.js.map +0 -1
- package/build/static/js/473.ecfef7b7.chunk.js +0 -2
- package/build/static/js/473.ecfef7b7.chunk.js.map +0 -1
- package/build/static/js/5195.a3379c71.chunk.js +0 -2
- package/build/static/js/5971.31f605dc.chunk.js +0 -2
- package/build/static/js/5971.31f605dc.chunk.js.map +0 -1
- package/build/static/js/6763.72b945ab.chunk.js +0 -2
- package/build/static/js/6980.705a3c6b.chunk.js.map +0 -1
- package/build/static/js/8593.e449163b.chunk.js +0 -2
- package/build/static/js/8601.80fb78c5.chunk.js +0 -2
- package/build/static/js/8601.80fb78c5.chunk.js.map +0 -1
- package/build/static/js/8731.5006d9f7.chunk.js.map +0 -1
- package/build/static/js/8742.8ce985d0.chunk.js +0 -2
- package/build/static/js/8742.8ce985d0.chunk.js.map +0 -1
- package/build/static/js/8985.91d0d311.chunk.js +0 -2
- package/build/static/js/8985.91d0d311.chunk.js.map +0 -1
- package/build/static/js/9772.a0ee20e4.chunk.js +0 -2
- package/build/static/js/9772.a0ee20e4.chunk.js.map +0 -1
- package/build/static/js/982.bc112982.chunk.js +0 -2
- package/build/static/js/982.bc112982.chunk.js.map +0 -1
- package/build/static/js/main.6d932b9d.js +0 -2
- package/build/static/js/main.6d932b9d.js.map +0 -1
- /package/build/static/js/{3874.a5dec826.chunk.js.LICENSE.txt → 2004.085d943f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3927.52a01c4a.chunk.js.LICENSE.txt → 3404.77db51dc.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.4a8f5ff8.chunk.js.LICENSE.txt → 7227.5563cb7e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.431972d7.chunk.js.LICENSE.txt → 7991.473db031.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.42c26cc9.chunk.js.LICENSE.txt → 9556.4b2d6baa.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/8593.e449163b.chunk.js","mappings":"oNACA,SAAgB,KAAO,2BAA2B,oBAAoB,wCAAwC,gBAAgB,oCAAoC,eAAe,mCAAmC,oBAAoB,wCAAwC,UAAU,8BAA8B,MAAQ,4BAA4B,OAAS,6BAA6B,cAAc,kCAAkC,gBAAgB,oCAAoC,QAAU,+B,iPCwC1eA,EAAYC,IACd,MAAMC,GAAaC,EAAAA,EAAAA,gBACb,GACFC,EAAE,UACFC,EAAS,MACTC,EAAK,SACLC,EAAQ,KACRC,EAAI,KACJC,EAAI,QACJC,EAAO,QACPC,EAAO,OACPC,EAAM,WACNC,EAAU,aACVC,EAAY,SACZC,EAAQ,aACRC,EAAY,MACZC,EAAK,OACLC,EAAM,eACNC,GACAlB,EAEEmB,EAAeC,MAAMC,QAAQP,IAAaA,EAASQ,OAAS,GAAMP,GAClE,QAACQ,EAAO,UAAEC,IAAaC,EAAAA,EAAAA,UAASC,OAAOC,OAAO,CAAC,EAAGZ,EAAc,CAClEa,MAAOV,GAAkBH,EAAcc,iBAAmBC,IACtDb,EAAOa,OAkBf,OAAQC,EAAAA,EAAAA,KAACC,EAAAA,QAAW,CAACvB,QAASA,EAAQK,UAClCmB,EAAAA,EAAAA,MAAA,OAAK7B,UAAW8B,IAAW9B,EAAW+B,EAAM,cAAcrB,SAAA,EACtDmB,EAAAA,EAAAA,MAAA,OACI7B,UAAW8B,IAAWC,EAAa,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AGrH+B,EAAiBA,KAC1B,MAAM,OAACC,IAAUC,EAAAA,EAAAA,qBACX,YAACJ,EAAW,gBAAEK,IAAmBC,EAAAA,EAAAA,aACvC,MAAO,CACHN,YAAaG,EAAOH,aAAeA,GAAgBK,GAAmBE,IAAIJ,EAAQE,IAAqB,KAIlGG,EAAqBzB,IAAgB,IAAf,QAAC7E,GAAQ6E,EACxC,MAAM,YAACiB,GAAeE,IACtB,OAAOH,EAAe,CAACC,cAAa9F,aAkCxC,EA/BoBoF,IAQQ,IARP,KACItD,EAAO,SAAQ,UACfnC,EAAS,QACT4G,EAAU,OAAM,QAChBC,EAAU,2EAAc,QACxBxG,EAAO,SACPK,GAEH+E,EADM7F,GAAK6C,EAAAA,EAAAA,GAAAgD,EAAA/C,GAE7B,MAAMoE,EAASH,EAAmB,CAACtG,YACnC,MAAwB,oBAAbK,EACAA,EAAS,CAACoG,SAAQ3E,OAAM9B,aAGpB,IAAXyG,EACOpG,EAGE,UAATyB,GACOR,EAAAA,EAAAA,KAACoF,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUJ,IAG7B,YAAT1E,GACQR,EAAAA,EAAAA,KAACuF,EAAAA,QAAO,CAACC,MAAON,EAAQnG,UAC3B0G,EAAAA,EAAAA,eAAcR,GAAOvD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAMzD,GAAK,IAAEI,UAAW8B,IAAWC,EAAgB/B,KAAaU,KAIvF,K","sources":["webpack://@kne-components/components-core/./src/components/Menu/style.module.scss?ca16","components/Menu/index.js","webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"menu\":\"style_menu__gvIvn__3rHN+\",\"all-no-start-icon\":\"style_all-no-start-icon__CA+zR__3rHN+\",\"no-start-icon\":\"style_no-start-icon__LnC1S__3rHN+\",\"has-children\":\"style_has-children__m9tce__3rHN+\",\"has-children-node\":\"style_has-children-node__2bhEB__3rHN+\",\"is-root\":\"style_is-root__4hhOc__3rHN+\",\"title\":\"style_title__+Hcar__3rHN+\",\"active\":\"style_active__WU49K__3rHN+\",\"no-collapse\":\"style_no-collapse__aIZBM__3rHN+\",\"title-content\":\"style_title-content__cQXpK__3rHN+\",\"loading\":\"style_loading__1pU4P__3rHN+\"};","import style from \"./style.module.scss\";\nimport classnames from \"classnames\";\nimport {Spin} from \"antd\";\nimport {useLocation, useNavigate} from \"react-router-dom\";\nimport Permissions from \"@components/Permissions\";\nimport useControlValue from \"@kne/use-control-value\";\nimport Icon from \"@components/Icon\";\nimport {useCallback, useEffect, useMemo} from \"react\";\nimport ensureSlash from \"@kne/ensure-slash\";\nimport {useFetch} from \"@kne/react-fetch\";\n\nconst treeEnhance = (items) => {\n const childrenKeys = {}, nodeMapping = [];\n const traversal = (children, options) => {\n const {parentKey, depth} = Object.assign({\n parentKey: \"root\", depth: 0, paths: [],\n }, options);\n if (!(Array.isArray(children) && children.length > 0)) {\n return null;\n }\n return children.map((item, index) => {\n const currentKey = `${item.key || `${parentKey !== \"root\" ? `${parentKey}-` : \"\"}node-${index}`}`;\n if (!childrenKeys[parentKey]) {\n childrenKeys[parentKey] = [];\n }\n childrenKeys[parentKey].push(currentKey);\n const children = traversal(item.children, {\n parentKey: currentKey, depth: depth + 1,\n });\n childrenKeys[currentKey] && childrenKeys[parentKey].push(...childrenKeys[currentKey]);\n const targetItem = Object.assign({}, item, {\n key: currentKey, parentKey, depth, children: children, originItem: item,\n });\n nodeMapping[currentKey] = targetItem;\n return targetItem;\n });\n };\n\n return {items: traversal(items), childrenKeys, nodeMapping};\n};\n\nconst MenuItem = (props) => {\n const navigation = useNavigate();\n const {\n id,\n className,\n label,\n iconType,\n icon,\n path,\n request,\n onClick,\n isOpen,\n isSelected,\n onOpenChange,\n children,\n fetchOptions,\n depth,\n onLoad,\n allowCollapsed,\n } = props;\n\n const hasChildren = (Array.isArray(children) && children.length > 0) || fetchOptions;\n const {refresh, isLoading} = useFetch(Object.assign({}, fetchOptions, {\n auto: !allowCollapsed && fetchOptions, onRequestSuccess: (data) => {\n onLoad(data);\n },\n }));\n\n const renderChildren = () => {\n if (!hasChildren) {\n return null;\n }\n if (!allowCollapsed || (isOpen && children)) {\n return <div className={style[\"children-list\"]}>{children}</div>;\n }\n\n if (!allowCollapsed || (isOpen && isLoading)) {\n return (<div className={style[\"children-list\"]}>\n <Spin className={style[\"loading\"]} size=\"small\"/>\n </div>);\n }\n };\n return (<Permissions request={request}>\n <div className={classnames(className, style[\"menu-item\"])}>\n <div\n className={classnames(style[\"title\"], {\n [style[\"active\"]]: isSelected,\n [style[\"has-children\"]]: hasChildren,\n [style[\"no-collapse\"]]: hasChildren && !allowCollapsed,\n [style[\"no-start-icon\"]]: !iconType && !icon,\n [style[\"is-root\"]]: depth === 0,\n })}\n onClick={(e) => {\n e.stopPropagation();\n if (!hasChildren && path) {\n navigation(path);\n return;\n }\n if (!hasChildren && !fetchOptions) {\n onClick?.(id, props);\n return;\n }\n if (!allowCollapsed) {\n return;\n }\n fetchOptions && refresh({});\n onOpenChange(!isOpen);\n }}\n >\n {iconType && !icon && <Icon type={iconType}/>}\n {icon || null}\n <span className={style[\"title-content\"]}>{label}</span>\n {hasChildren && allowCollapsed && (<Icon\n type={isOpen ? \"icon-arrow-bold-down\" : \"icon-arrow-bold-right\"}\n />)}\n </div>\n {renderChildren()}\n </div>\n </Permissions>);\n};\n\nconst Menu = ({className, allowCollapsed = true, pathMatch, defaultItems = [], ...props}) => {\n const {pathname, search} = useLocation();\n const [selectedKey, setSelectKeyChange] = useControlValue(props, {\n value: \"currentKey\", defaultValue: \"defaultCurrentKey\",\n });\n\n const [items, setItems] = useControlValue({defaultItems, ...props}, {\n defaultValue: \"defaultItems\", value: \"items\", onChange: \"onItemsChange\",\n });\n\n const {\n items: targetItems, defaultOpenKeys, links, childrenKeys, hasStartIcon, hasChildren,\n } = useMemo(() => {\n const {\n items: targetItems, childrenKeys, nodeMapping,\n } = treeEnhance(items);\n let hasStartIcon = false, hasChildren = false;\n const links = [], defaultOpenKeys = [];\n childrenKeys?.[\"root\"]?.forEach((key) => {\n const node = nodeMapping[key];\n if (node.iconType || node.icon) {\n hasStartIcon = true;\n }\n node.path && links.push({path: node.path, key});\n if (Array.isArray(node.children) && node.children.length > 0) {\n hasChildren = true;\n defaultOpenKeys.push(node.key);\n }\n });\n return {\n defaultOpenKeys, links, items: targetItems, childrenKeys, hasStartIcon, hasChildren,\n };\n }, [items]);\n useEffect(() => {\n const matchedPath = links.find(({path}) => {\n if (typeof pathMatch === \"function\") {\n return pathMatch(path, {pathname, search});\n }\n return (ensureSlash(pathname.replace(/[#,?].*/, \"\")) === ensureSlash(path) || ensureSlash(pathname + search) === ensureSlash(path));\n });\n if (matchedPath) {\n setSelectKeyChange(matchedPath.key);\n }\n }, [links, pathname, search, setSelectKeyChange, pathMatch]);\n\n const [openKeys, setOpenKeys] = useControlValue(Object.assign({}, props, {\n defaultOpenKeys: props.defaultOpenKeys || defaultOpenKeys,\n }), {\n value: \"openKeys\", defaultValue: \"defaultOpenKeys\", onChange: \"onOpenChange\",\n });\n\n const renderChildren = useCallback((children, options) => {\n const {parentKey, depth, selectedKey, openKeys, paths} = Object.assign({\n parentKey: null, depth: 0, paths: [],\n }, options);\n if (Array.isArray(children) && children.length > 0) {\n return children.map(({children, key: currentKey, originItem, ...item}) => {\n return (<MenuItem\n {...Object.assign({}, item)}\n id={currentKey}\n parentId={parentKey}\n depth={depth}\n allowCollapsed={allowCollapsed}\n isSelected={currentKey === selectedKey || (childrenKeys[currentKey] && childrenKeys[currentKey].indexOf(selectedKey) > -1)}\n onClick={setSelectKeyChange}\n onLoad={(data) => {\n setItems((items) => {\n const core = (children) => {\n if (Array.isArray(children) && children.length > 0) {\n return children.map((item) => {\n return Object.assign({}, item, {\n children: originItem === item ? data : core(item.children),\n });\n });\n }\n return null;\n };\n\n return core(items);\n });\n }}\n isOpen={(openKeys || []).indexOf(currentKey) > -1}\n key={currentKey}\n onOpenChange={() => {\n setOpenKeys((openKeys) => {\n const newOpenKeys = openKeys.slice(0);\n if (openKeys.indexOf(currentKey) > -1) {\n newOpenKeys.splice(openKeys.indexOf(currentKey), 1);\n } else {\n newOpenKeys.push(currentKey);\n }\n return newOpenKeys;\n });\n }}\n >\n {renderChildren(children, {\n parentKey, depth: depth + 1, selectedKey, openKeys, paths: [...paths, currentKey],\n })}\n </MenuItem>);\n });\n }\n return null;\n }, [setItems, setOpenKeys, setSelectKeyChange, childrenKeys, allowCollapsed]);\n\n return (<div\n className={classnames(className, style[\"menu\"], {\n [style[\"all-no-start-icon\"]]: !hasStartIcon, [style[\"has-children-node\"]]: hasChildren,\n })}\n >\n {renderChildren(targetItems, {selectedKey, openKeys})}\n </div>);\n};\n\nexport default Menu;\n","// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__3rHN+\"};","import {createElement} from \"react\";\nimport {Result, Tooltip} from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\n\nexport const computedIsPass = ({permissions, request}) => {\n return Array.isArray(request) && request.length > 0 ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1) : true;\n};\n\nexport const usePermissions = () => {\n const {global} = useGlobalContext();\n const {permissions, permissionsPath} = usePreset();\n return {\n permissions: global.permissions || permissions || (permissionsPath && get(global, permissionsPath)) || [],\n };\n};\n\nexport const usePermissionsPass = ({request}) => {\n const {permissions} = usePermissions();\n return computedIsPass({permissions, request});\n};\n\nconst Permissions = ({\n type = 'hidden',\n className,\n tagName = 'span',\n message = '您暂无权限,请联系管理员',\n request,\n children,\n ...props\n }) => {\n const isPass = usePermissionsPass({request});\n if (typeof children === \"function\") {\n return children({isPass, type, request});\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message}/>;\n }\n\n if (type === \"tooltip\") {\n return (<Tooltip title={message}>\n {createElement(tagName, {...props, className: classnames(style[\"outer\"], className)}, children)}\n </Tooltip>);\n }\n\n return null;\n};\n\nexport default Permissions;\n"],"names":["MenuItem","props","navigation","useNavigate","id","className","label","iconType","icon","path","request","onClick","isOpen","isSelected","onOpenChange","children","fetchOptions","depth","onLoad","allowCollapsed","hasChildren","Array","isArray","length","refresh","isLoading","useFetch","Object","assign","auto","onRequestSuccess","data","_jsx","Permissions","_jsxs","classnames","style","e","stopPropagation","Icon","type","Spin","size","_ref","pathMatch","defaultItems","_objectWithoutProperties","_excluded","pathname","search","useLocation","selectedKey","setSelectKeyChange","useControlValue","value","defaultValue","items","setItems","_objectSpread","onChange","targetItems","defaultOpenKeys","links","childrenKeys","hasStartIcon","useMemo","_childrenKeys$root","nodeMapping","traversal","options","parentKey","paths","map","item","index","currentKey","concat","key","push","targetItem","originItem","treeEnhance","forEach","node","useEffect","matchedPath","find","_ref2","ensureSlash","replace","openKeys","setOpenKeys","renderChildren","useCallback","_ref3","_excluded2","_createElement","parentId","indexOf","core","newOpenKeys","slice","splice","computedIsPass","permissions","some","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","tagName","message","isPass","Result","status","subTitle","Tooltip","title","createElement"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/8593.b8fbccf4.chunk.js","mappings":"oNACA,SAAgB,KAAO,2BAA2B,oBAAoB,wCAAwC,gBAAgB,oCAAoC,eAAe,mCAAmC,oBAAoB,wCAAwC,UAAU,8BAA8B,MAAQ,4BAA4B,OAAS,6BAA6B,cAAc,kCAAkC,gBAAgB,oCAAoC,QAAU,+B,iPCwC1eA,EAAYC,IACd,MAAMC,GAAaC,EAAAA,EAAAA,gBACb,GACFC,EAAE,UACFC,EAAS,MACTC,EAAK,SACLC,EAAQ,KACRC,EAAI,KACJC,EAAI,QACJC,EAAO,QACPC,EAAO,OACPC,EAAM,WACNC,EAAU,aACVC,EAAY,SACZC,EAAQ,aACRC,EAAY,MACZC,EAAK,OACLC,E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A,IAAAA,EAAAA,EAAAA,GAAA,GAAMzD,GAAK,IAAEI,UAAW8B,IAAWC,EAAgB/B,KAAaU,KAIvF,K","sources":["webpack://@kne-components/components-core/./src/components/Menu/style.module.scss?ca16","components/Menu/index.js","webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"menu\":\"style_menu__gvIvn__bxpL6\",\"all-no-start-icon\":\"style_all-no-start-icon__CA+zR__bxpL6\",\"no-start-icon\":\"style_no-start-icon__LnC1S__bxpL6\",\"has-children\":\"style_has-children__m9tce__bxpL6\",\"has-children-node\":\"style_has-children-node__2bhEB__bxpL6\",\"is-root\":\"style_is-root__4hhOc__bxpL6\",\"title\":\"style_title__+Hcar__bxpL6\",\"active\":\"style_active__WU49K__bxpL6\",\"no-collapse\":\"style_no-collapse__aIZBM__bxpL6\",\"title-content\":\"style_title-content__cQXpK__bxpL6\",\"loading\":\"style_loading__1pU4P__bxpL6\"};","import style from \"./style.module.scss\";\nimport classnames from \"classnames\";\nimport {Spin} from \"antd\";\nimport {useLocation, useNavigate} from \"react-router-dom\";\nimport Permissions from \"@components/Permissions\";\nimport useControlValue from \"@kne/use-control-value\";\nimport Icon from \"@components/Icon\";\nimport {useCallback, useEffect, useMemo} from \"react\";\nimport ensureSlash from \"@kne/ensure-slash\";\nimport {useFetch} from \"@kne/react-fetch\";\n\nconst treeEnhance = (items) => {\n const childrenKeys = {}, nodeMapping = [];\n const traversal = (children, options) => {\n const {parentKey, depth} = Object.assign({\n parentKey: \"root\", depth: 0, paths: [],\n }, options);\n if (!(Array.isArray(children) && children.length > 0)) {\n return null;\n }\n return children.map((item, index) => {\n const currentKey = `${item.key || `${parentKey !== \"root\" ? `${parentKey}-` : \"\"}node-${index}`}`;\n if (!childrenKeys[parentKey]) {\n childrenKeys[parentKey] = [];\n }\n childrenKeys[parentKey].push(currentKey);\n const children = traversal(item.children, {\n parentKey: currentKey, depth: depth + 1,\n });\n childrenKeys[currentKey] && childrenKeys[parentKey].push(...childrenKeys[currentKey]);\n const targetItem = Object.assign({}, item, {\n key: currentKey, parentKey, depth, children: children, originItem: item,\n });\n nodeMapping[currentKey] = targetItem;\n return targetItem;\n });\n };\n\n return {items: traversal(items), childrenKeys, nodeMapping};\n};\n\nconst MenuItem = (props) => {\n const navigation = useNavigate();\n const {\n id,\n className,\n label,\n iconType,\n icon,\n path,\n request,\n onClick,\n isOpen,\n isSelected,\n onOpenChange,\n children,\n fetchOptions,\n depth,\n onLoad,\n allowCollapsed,\n } = props;\n\n const hasChildren = (Array.isArray(children) && children.length > 0) || fetchOptions;\n const {refresh, isLoading} = useFetch(Object.assign({}, fetchOptions, {\n auto: !allowCollapsed && fetchOptions, onRequestSuccess: (data) => {\n onLoad(data);\n },\n }));\n\n const renderChildren = () => {\n if (!hasChildren) {\n return null;\n }\n if (!allowCollapsed || (isOpen && children)) {\n return <div className={style[\"children-list\"]}>{children}</div>;\n }\n\n if (!allowCollapsed || (isOpen && isLoading)) {\n return (<div className={style[\"children-list\"]}>\n <Spin className={style[\"loading\"]} size=\"small\"/>\n </div>);\n }\n };\n return (<Permissions request={request}>\n <div className={classnames(className, style[\"menu-item\"])}>\n <div\n className={classnames(style[\"title\"], {\n [style[\"active\"]]: isSelected,\n [style[\"has-children\"]]: hasChildren,\n [style[\"no-collapse\"]]: hasChildren && !allowCollapsed,\n [style[\"no-start-icon\"]]: !iconType && !icon,\n [style[\"is-root\"]]: depth === 0,\n })}\n onClick={(e) => {\n e.stopPropagation();\n if (!hasChildren && path) {\n navigation(path);\n return;\n }\n if (!hasChildren && !fetchOptions) {\n onClick?.(id, props);\n return;\n }\n if (!allowCollapsed) {\n return;\n }\n fetchOptions && refresh({});\n onOpenChange(!isOpen);\n }}\n >\n {iconType && !icon && <Icon type={iconType}/>}\n {icon || null}\n <span className={style[\"title-content\"]}>{label}</span>\n {hasChildren && allowCollapsed && (<Icon\n type={isOpen ? \"icon-arrow-bold-down\" : \"icon-arrow-bold-right\"}\n />)}\n </div>\n {renderChildren()}\n </div>\n </Permissions>);\n};\n\nconst Menu = ({className, allowCollapsed = true, pathMatch, defaultItems = [], ...props}) => {\n const {pathname, search} = useLocation();\n const [selectedKey, setSelectKeyChange] = useControlValue(props, {\n value: \"currentKey\", defaultValue: \"defaultCurrentKey\",\n });\n\n const [items, setItems] = useControlValue({defaultItems, ...props}, {\n defaultValue: \"defaultItems\", value: \"items\", onChange: \"onItemsChange\",\n });\n\n const {\n items: targetItems, defaultOpenKeys, links, childrenKeys, hasStartIcon, hasChildren,\n } = useMemo(() => {\n const {\n items: targetItems, childrenKeys, nodeMapping,\n } = treeEnhance(items);\n let hasStartIcon = false, hasChildren = false;\n const links = [], defaultOpenKeys = [];\n childrenKeys?.[\"root\"]?.forEach((key) => {\n const node = nodeMapping[key];\n if (node.iconType || node.icon) {\n hasStartIcon = true;\n }\n node.path && links.push({path: node.path, key});\n if (Array.isArray(node.children) && node.children.length > 0) {\n hasChildren = true;\n defaultOpenKeys.push(node.key);\n }\n });\n return {\n defaultOpenKeys, links, items: targetItems, childrenKeys, hasStartIcon, hasChildren,\n };\n }, [items]);\n useEffect(() => {\n const matchedPath = links.find(({path}) => {\n if (typeof pathMatch === \"function\") {\n return pathMatch(path, {pathname, search});\n }\n return (ensureSlash(pathname.replace(/[#,?].*/, \"\")) === ensureSlash(path) || ensureSlash(pathname + search) === ensureSlash(path));\n });\n if (matchedPath) {\n setSelectKeyChange(matchedPath.key);\n }\n }, [links, pathname, search, setSelectKeyChange, pathMatch]);\n\n const [openKeys, setOpenKeys] = useControlValue(Object.assign({}, props, {\n defaultOpenKeys: props.defaultOpenKeys || defaultOpenKeys,\n }), {\n value: \"openKeys\", defaultValue: \"defaultOpenKeys\", onChange: \"onOpenChange\",\n });\n\n const renderChildren = useCallback((children, options) => {\n const {parentKey, depth, selectedKey, openKeys, paths} = Object.assign({\n parentKey: null, depth: 0, paths: [],\n }, options);\n if (Array.isArray(children) && children.length > 0) {\n return children.map(({children, key: currentKey, originItem, ...item}) => {\n return (<MenuItem\n {...Object.assign({}, item)}\n id={currentKey}\n parentId={parentKey}\n depth={depth}\n allowCollapsed={allowCollapsed}\n isSelected={currentKey === selectedKey || (childrenKeys[currentKey] && childrenKeys[currentKey].indexOf(selectedKey) > -1)}\n onClick={setSelectKeyChange}\n onLoad={(data) => {\n setItems((items) => {\n const core = (children) => {\n if (Array.isArray(children) && children.length > 0) {\n return children.map((item) => {\n return Object.assign({}, item, {\n children: originItem === item ? data : core(item.children),\n });\n });\n }\n return null;\n };\n\n return core(items);\n });\n }}\n isOpen={(openKeys || []).indexOf(currentKey) > -1}\n key={currentKey}\n onOpenChange={() => {\n setOpenKeys((openKeys) => {\n const newOpenKeys = openKeys.slice(0);\n if (openKeys.indexOf(currentKey) > -1) {\n newOpenKeys.splice(openKeys.indexOf(currentKey), 1);\n } else {\n newOpenKeys.push(currentKey);\n }\n return newOpenKeys;\n });\n }}\n >\n {renderChildren(children, {\n parentKey, depth: depth + 1, selectedKey, openKeys, paths: [...paths, currentKey],\n })}\n </MenuItem>);\n });\n }\n return null;\n }, [setItems, setOpenKeys, setSelectKeyChange, childrenKeys, allowCollapsed]);\n\n return (<div\n className={classnames(className, style[\"menu\"], {\n [style[\"all-no-start-icon\"]]: !hasStartIcon, [style[\"has-children-node\"]]: hasChildren,\n })}\n >\n {renderChildren(targetItems, {selectedKey, openKeys})}\n </div>);\n};\n\nexport default Menu;\n","// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__bxpL6\"};","import {createElement} from \"react\";\nimport {Result, Tooltip} from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\n\nexport const computedIsPass = ({permissions, request}) => {\n return Array.isArray(request) && request.length > 0 ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1) : true;\n};\n\nexport const usePermissions = () => {\n const {global} = useGlobalContext();\n const {permissions, permissionsPath} = usePreset();\n return {\n permissions: global.permissions || permissions || (permissionsPath && get(global, permissionsPath)) || [],\n };\n};\n\nexport const usePermissionsPass = ({request}) => {\n const {permissions} = usePermissions();\n return computedIsPass({permissions, request});\n};\n\nconst Permissions = ({\n type = 'hidden',\n className,\n tagName = 'span',\n message = '您暂无权限,请联系管理员',\n request,\n children,\n ...props\n }) => {\n const isPass = usePermissionsPass({request});\n if (typeof children === \"function\") {\n return children({isPass, type, request});\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message}/>;\n }\n\n if (type === \"tooltip\") {\n return (<Tooltip title={message}>\n {createElement(tagName, {...props, className: classnames(style[\"outer\"], className)}, children)}\n </Tooltip>);\n }\n\n return null;\n};\n\nexport default Permissions;\n"],"names":["MenuItem","props","navigation","useNavigate","id","className","label","iconType","icon","path","request","onClick","isOpen","isSelected","onOpenChange","children","fetchOptions","depth","onLoad","allowCollapsed","hasChildren","Array","isArray","length","refresh","isLoading","useFetch","Object","assign","auto","onRequestSuccess","data","_jsx","Permissions","_jsxs","classnames","style","e","stopPropagation","Icon","type","Spin","size","_ref","pathMatch","defaultItems","_objectWithoutProperties","_excluded","pathname","search","useLocation","selectedKey","setSelectKeyChange","useControlValue","value","defaultValue","items","setItems","_objectSpread","onChange","targetItems","defaultOpenKeys","links","childrenKeys","hasStartIcon","useMemo","_childrenKeys$root","nodeMapping","traversal","options","parentKey","paths","map","item","index","currentKey","concat","key","push","targetItem","originItem","treeEnhance","forEach","node","useEffect","matchedPath","find","_ref2","ensureSlash","replace","openKeys","setOpenKeys","renderChildren","useCallback","_ref3","_excluded2","_createElement","parentId","indexOf","core","newOpenKeys","slice","splice","computedIsPass","permissions","some","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","tagName","message","isPass","Result","status","subTitle","Tooltip","title","createElement"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[8601],{8668:(e,r,t)=>{var o=t(31170),n=t(55647),a=t(75031),u=n(function(e,r){try{return o(e,void 0,r)}catch(t){return a(t)?t:new Error(t)}});e.exports=u},12358:(e,r,t)=>{var o=t(95694),n=t(41069),a=/[&<>"']/g,u=RegExp(a.source);e.exports=function(e){return(e=n(e))&&u.test(e)?e.replace(a,o):e}},13754:(e,r,t)=>{var o=t(12358),n={escape:t(98514),evaluate:t(48886),interpolate:t(28742),variable:"",imports:{_:{escape:o}}};e.exports=n},17671:(e,r,t)=>{var o=t(96614),n=t(84570),a=t(30474),u=n(function(e,r,t,n){o(r,a(r),e,n)});e.exports=u},22410:e=>{var r={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=function(e){return"\\"+r[e]}},22555:(e,r,t)=>{var o=t(17671),n=t(8668),a=t(86983),u=t(91499),l=t(22410),s=t(75031),i=t(60929),m=t(28673),c=t(28742),d=t(13754),p=t(41069),f=/\b__p \+= '';/g,v=/\b(__p \+=) '' \+/g,_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g=/[()=,{}\[\]\/\s]/,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/($^)/,h=/['\n\r\u2028\u2029\\]/g,y=Object.prototype.hasOwnProperty;e.exports=function(e,r,t){var E=d.imports._.templateSettings||d;t&&i(e,r,t)&&(r=void 0),e=p(e),r=o({},r,E,u);var N,j,M=o({},r.imports,E.imports,u),x=m(M),L=a(M,x),k=0,O=r.interpolate||w,P="__p += '",R=RegExp((r.escape||w).source+"|"+O.source+"|"+(O===c?b:w).source+"|"+(r.evaluate||w).source+"|$","g"),S=y.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(R,function(r,t,o,n,a,u){return o||(o=n),P+=e.slice(k,u).replace(h,l),t&&(N=!0,P+="' +\n__e("+t+") +\n'"),a&&(j=!0,P+="';\n"+a+";\n__p += '"),o&&(P+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),k=u+r.length,r}),P+="';\n";var C=y.call(r,"variable")&&r.variable;if(C){if(g.test(C))throw new Error("Invalid `variable` option passed into `_.template`")}else P="with (obj) {\n"+P+"\n}\n";P=(j?P.replace(f,""):P).replace(v,"$1").replace(_,"$1;"),P="function("+(C||"obj")+") {\n"+(C?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(N?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+P+"return __p\n}";var V=n(function(){return Function(x,S+"return "+P).apply(void 0,L)});if(V.source=P,s(V))throw V;return V}},28742:e=>{e.exports=/<%=([\s\S]+?)%>/g},48886:e=>{e.exports=/<%([\s\S]+?)%>/g},72037:e=>{e.exports=function(e){return function(r){return null==e?void 0:e[r]}}},75031:(e,r,t)=>{var o=t(16913),n=t(22761),a=t(12322);e.exports=function(e){if(!n(e))return!1;var r=o(e);return"[object Error]"==r||"[object DOMException]"==r||"string"==typeof e.message&&"string"==typeof e.name&&!a(e)}},86983:(e,r,t)=>{var o=t(50149);e.exports=function(e,r){return o(r,function(r){return e[r]})}},88601:(e,r,t)=>{"use strict";t.r(r),t.d(r,{createWithRemoteLoader:()=>P,default:()=>V,getOrLoadRemote:()=>h,getPublicPath:()=>$,loadComponent:()=>y,loadModule:()=>N,parseToken:()=>w,preset:()=>b,useLoader:()=>M,withRemoteLoader:()=>O});var o=t(18081),n=t.n(o),a=t(22555),u=t.n(a),l=t(33097),s=t.n(l),i=t(96418),m=t.n(i),c=t(73884),d=t.n(c),p=t(19853),f=t.n(p),v=t(34677),_=t.n(v);const g={remotes:{},remoteEntryFileName:"remoteEntry.js",error:null,fallback:null},b=e=>Object.assign(g,e),w=e=>{const{url:r,remote:t,version:o}=(e=>{const r=(e=>{const r=e.match(/^(.*):.+/);return r&&r[1]?n()(r[1]):null})(e);if(!r)return{url:null,remote:null,version:null};const{addressList:t,origin:o}=(()=>{if(/^https?:\/\//.test(r)){const e=window.document.createElement("a");return e.href=r,{addressList:e.pathname.split("/").filter(e=>!!e),origin:e.origin}}return{addressList:r.split("/").filter(e=>!!e),origin:null}})();return 1===t.length?{url:/^https?:\/\//.test(r)?o:null,remote:t[0],version:null}:2===t.length&&/^https?:\/\//.test(r)?{url:o,remote:t[0],version:t[1]}:{url:/^https?:\/\//.test(r)?o:null,remote:t[t.length-2],version:t[t.length-1]}})(e),a=(e=>{const r=e.replace(/^.*:/,""),[t,o]=r.split("@").map(e=>{const[r,t]=e.split(".");return{name:r,propName:t}}),n={moduleName:t.name,modulePropName:t.propName};return o&&Object.assign(n,{subModuleName:o.name,subModulePropName:o.propName}),n})(e);return{url:r,remote:t,version:o,module:a}},h=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return new Promise((n,a)=>{if(window[e])n();else{const s=document.querySelector('[data-webpack="'.concat(e,'"]')),i=async o=>{o.setAttribute("data-status","success"),window[e]&&!window[e].__initialized&&(r&&t.S[r]&&await window[e].init(t.S[r]),window[e].__initialized=!0),n()},m=(e,r)=>{r.parentNode.removeChild(r),a(e.message)};if(s){if("success"===s.getAttribute("data-status"))return void i(s);s.addEventListener("load",()=>{i(s)}),s.addEventListener("error",e=>{m(e,s)})}else if(o){var u=document,l=u.createElement("script");l.type="text/javascript",l.setAttribute("data-webpack","".concat(e)),l.async=!0,l.addEventListener("error",e=>{m(e,l)}),l.addEventListener("load",()=>{i(l)}),l.src=o,u.getElementsByTagName("head")[0].appendChild(l)}else a("Cannot Find Remote ".concat(e," to inject"))}})},y=(e,r,t,o)=>async()=>{await h(e,r,o);const n=window[e];return(await n.get(t))()},E=e=>{let{url:r,remote:t,version:o,tpl:a}=e;const l=u()(a||"{{url}}/{{remote}}/{{version}}",{interpolate:/{{([\s\S]+?)}}/g});return n()(l({url:n()(r||""),remote:t||"",version:o||""}))},N=e=>{const r=g.remotes,t=g.remoteEntryFileName,o=w(e),{url:a,remote:u}=((e,r)=>{const t=e=>E(Object.assign({},e,{tpl:s()(r,"[".concat(e.remote||"default","].tpl"))}));return e.url&&e.remote&&e.version?{url:t({url:e.url,remote:e.remote,version:e.version}),remote:e.remote+"_"+e.version}:e.url&&e.remote?{url:t({url:e.url,remote:e.remote}),remote:e.remote}:e.remote&&r[e.remote]&&e.version?{url:t({url:r[e.remote].url,remote:r[e.remote].remote,version:e.version}),remote:r[e.remote].remote+"_"+e.version}:e.remote&&r[e.remote]&&r[e.remote].defaultVersion?{url:t({url:r[e.remote].url,remote:r[e.remote].remote,version:r[e.remote].defaultVersion}),remote:r[e.remote].remote+"_"+r[e.remote].defaultVersion}:e.remote&&r[e.remote]?{url:t({url:r[e.remote].url,remote:r[e.remote].remote}),remote:r[e.remote].remote}:r.default.defaultVersion?{url:t({url:r.default.url,remote:r.default.remote,version:r.default.defaultVersion}),remote:r.default.remote+"_"+r.default.defaultVersion}:{url:t({url:r.default.url,remote:r.default.remote}),remote:r.default.remote}})(o,r);return y((e=>e.replace(/[-/.@]/g,"_"))(u),"default","./"+o.module.moduleName,n()(a)+"/"+t)().then(e=>{const r=((e,r)=>e.subModuleName&&e.subModulePropName?r[e.subModuleName][e.subModulePropName]:e.subModuleName?r[e.subModuleName]:!e.subModuleName&&e.modulePropName?r.default[e.modulePropName]:r.default)(o.module,e);return{default:r}})},j=new Map,M=e=>{let{modules:r,onLoadComplete:t}=e;const[o,n]=(0,c.useState)(!r.every(e=>j.has(e))),[a,u]=(0,c.useState)(!1),l=m()(t),[s,i]=(0,c.useState)(()=>o?[]:r.map(e=>j.get(e))),d=(0,c.useRef)(s);return d.current=s,(0,c.useEffect)(()=>{Promise.all(r.map(async e=>{if(j.has(e))return j.get(e);const{default:r}=await N(e);return"function"===typeof r.moduleMounted&&await r.moduleMounted({token:e,module:r}),j.set(e,r),r})).then(async e=>(l&&await l(e),f()(d.current,e)||i(e),n(!1),e),e=>{console.error(e.stack),u(!0)})},[r]),{loading:o,error:a,remoteModules:s}};function x(){return x=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},x.apply(null,arguments)}function L(e,r){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==r.indexOf(o))continue;t[o]=e[o]}return t}const k=["modules","remoteError","onLoadComplete","fallback"],O=e=>(0,c.forwardRef)((r,t)=>{let{modules:o,remoteError:n,onLoadComplete:a,fallback:u}=r,l=L(r,k);const{loading:s,error:i,remoteModules:m}=M({modules:o,onLoadComplete:a});return s?u||g.fallback:i?n||g.error:d().createElement(e,x({},l,{ref:t,remoteModules:m}))}),P=e=>r=>{const t=O(r);return(0,c.forwardRef)((r,o)=>d().createElement(t,x({},_()({},e,r),{ref:o})))},R=["remoteModules"],S=["module"],C=O((0,c.forwardRef)((e,r)=>{let{remoteModules:t}=e,o=L(e,R);const[n]=t;return d().createElement(n,x({},o,{ref:r}))})),V=(0,c.forwardRef)((e,r)=>{let{module:t}=e,o=L(e,S);const n=(0,c.useMemo)(()=>[t],[t]);return d().createElement(C,x({},o,{modules:n,key:t,ref:r}))}),$=(e,r)=>{const{remotes:t,version:o}=Object.assign({},{remotes:g.remotes},r),n=e&&t[e]||t.default,a=o||n.defaultVersion;return E({url:n.url,remote:n.remote,version:a,tpl:n.tpl})}},91499:(e,r,t)=>{var o=t(93211),n=Object.prototype,a=n.hasOwnProperty;e.exports=function(e,r,t,u){return void 0===e||o(e,n[t])&&!a.call(u,t)?r:e}},95694:(e,r,t)=>{var o=t(72037)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=o},98514:e=>{e.exports=/<%-([\s\S]+?)%>/g}}]);
|
|
2
|
+
//# sourceMappingURL=8601.b68e855d.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/8601.b68e855d.chunk.js","mappings":"qIAAA,IAAIA,EAAQC,EAAQ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H,EAAOtH,IAAKC,OAAQqH,EAAOrH,OAAQC,QAASqH,EAAe9D,IAAK6D,EAAO7D,M,kBCRpF,IAAI+D,EAAKpN,EAAQ,OAGbqN,EAAcxK,OAAOC,UAGrBF,EAAiByK,EAAYzK,eAsBjCnC,EAAOC,QARP,SAAgC4M,EAAUC,EAAU9I,EAAK/C,GACvD,YAAiBpB,IAAbgN,GACCF,EAAGE,EAAUD,EAAY5I,MAAU7B,EAAeiB,KAAKnC,EAAQ+C,GAC3D8I,EAEFD,CACT,C,kBC1BA,IAkBI3M,EAlBiBX,EAAQ,MAkBRwN,CAfH,CAChB,IAAK,QACL,IAAK,OACL,IAAK,OACL,IAAK,SACL,IAAK,UAYP/M,EAAOC,QAAUC,C,YCjBjBF,EAAOC,QAFQ,kB","sources":["../node_modules/lodash/attempt.js","../node_modules/lodash/escape.js","../node_modules/lodash/templateSettings.js","../node_modules/lodash/assignInWith.js","../node_modules/lodash/_escapeStringChar.js","../node_modules/lodash/template.js","../node_modules/lodash/_reInterpolate.js","../node_modules/lodash/_reEvaluate.js","../node_modules/lodash/_basePropertyOf.js","../node_modules/lodash/isError.js","../node_modules/lodash/_baseValues.js","../node_modules/@kne/remote-loader/src/preset.js","../node_modules/@kne/remote-loader/src/parseToken.js","../node_modules/@kne/remote-loader/src/getOrLoadRemote.js","../node_modules/@kne/remote-loader/src/loadComponent.js","../node_modules/@kne/remote-loader/src/getStaticPath.js","../node_modules/@kne/remote-loader/src/loadModule.js","../node_modules/@kne/remote-loader/src/useLoader.js","../node_modules/@kne/remote-loader/src/withRemoteLoader.js","../node_modules/@kne/remote-loader/src/RemoteLoader.js","../node_modules/@kne/remote-loader/src/getPublicPath.js","../node_modules/lodash/_customDefaultsAssignIn.js","../node_modules/lodash/_escapeHtmlChar.js","../node_modules/lodash/_reEscape.js"],"sourcesContent":["var apply = require('./_apply'),\n baseRest = require('./_baseRest'),\n isError = require('./isError');\n\n/**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Function} func The function to attempt.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // Avoid throwing errors for invalid selectors.\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\nvar attempt = baseRest(function(func, args) {\n try {\n return apply(func, undefined, args);\n } catch (e) {\n return isError(e) ? e : new Error(e);\n }\n});\n\nmodule.exports = attempt;\n","var escapeHtmlChar = require('./_escapeHtmlChar'),\n toString = require('./toString');\n\n/** Used to match HTML entities and HTML characters. */\nvar reUnescapedHtml = /[&<>\"']/g,\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n/**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\nfunction escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n}\n\nmodule.exports = escape;\n","var escape = require('./escape'),\n reEscape = require('./_reEscape'),\n reEvaluate = require('./_reEvaluate'),\n reInterpolate = require('./_reInterpolate');\n\n/**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\nvar templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': { 'escape': escape }\n }\n};\n\nmodule.exports = templateSettings;\n","var copyObject = require('./_copyObject'),\n createAssigner = require('./_createAssigner'),\n keysIn = require('./keysIn');\n\n/**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n});\n\nmodule.exports = assignInWith;\n","/** Used to escape characters for inclusion in compiled string literals. */\nvar stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\n/**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\nfunction escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n}\n\nmodule.exports = escapeStringChar;\n","var assignInWith = require('./assignInWith'),\n attempt = require('./attempt'),\n baseValues = require('./_baseValues'),\n customDefaultsAssignIn = require('./_customDefaultsAssignIn'),\n escapeStringChar = require('./_escapeStringChar'),\n isError = require('./isError'),\n isIterateeCall = require('./_isIterateeCall'),\n keys = require('./keys'),\n reInterpolate = require('./_reInterpolate'),\n templateSettings = require('./templateSettings'),\n toString = require('./toString');\n\n/** Error message constants. */\nvar INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n/** Used to match empty string literals in compiled template source. */\nvar reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n/**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\nvar reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n/**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\nvar reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n/** Used to ensure capturing order of template delimiters. */\nvar reNoMatch = /($^)/;\n\n/** Used to match unescaped characters in compiled string literals. */\nvar reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b><script></b>'\n *\n * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the internal `print` function in \"evaluate\" delimiters.\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n * // Disable support by replacing the \"interpolate\" delimiter.\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // Use backslashes to treat delimiters as plain text.\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // Use the `imports` option to import `jQuery` as `jq`.\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n *\n * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // Use custom template delimiters.\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // Use the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and stack traces.\n * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\nfunction template(string, options, guard) {\n // Based on John Resig's `tmpl` implementation\n // (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = templateSettings.imports._.templateSettings || templateSettings;\n\n if (guard && isIterateeCall(string, options, guard)) {\n options = undefined;\n }\n string = toString(string);\n options = assignInWith({}, options, settings, customDefaultsAssignIn);\n\n var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n // The sourceURL gets injected into the source that's eval-ed, so be careful\n // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in\n // and escape the comment, thus injecting code that gets evaled.\n var sourceURL = hasOwnProperty.call(options, 'sourceURL')\n ? ('//# sourceURL=' +\n (options.sourceURL + '').replace(/\\s/g, ' ') +\n '\\n')\n : '';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products needs `match` returned in\n // order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n var variable = hasOwnProperty.call(options, 'variable') && options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Throw an error if a forbidden character was found in `variable`, to prevent\n // potential command injection attacks.\n else if (reForbiddenIdentifierChars.test(variable)) {\n throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);\n }\n\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source)\n .apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n}\n\nmodule.exports = template;\n","/** Used to match template delimiters. */\nvar reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\nmodule.exports = reInterpolate;\n","/** Used to match template delimiters. */\nvar reEvaluate = /<%([\\s\\S]+?)%>/g;\n\nmodule.exports = reEvaluate;\n","/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = basePropertyOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike'),\n isPlainObject = require('./isPlainObject');\n\n/** `Object#toString` result references. */\nvar domExcTag = '[object DOMException]',\n errorTag = '[object Error]';\n\n/**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\nfunction isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n}\n\nmodule.exports = isError;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","export const global = {\n remotes: {}, remoteEntryFileName: 'remoteEntry.js', error: null, fallback: null\n};\n\nexport const preset = (options) => {\n return Object.assign(global, options);\n};\n\nexport default preset;\n","import ensureSlash from '@kne/ensure-slash'\n// token: [模块地址/remote/version:]模块名[@子模块][.模块属性]\n\nconst parseToken = (token) => {\n const {url, remote, version} = ((token) => {\n\n const address = ((token) => {\n const res = token.match(/^(.*):.+/);\n if (res && res[1]) {\n return ensureSlash(res[1]);\n }\n return null;\n })(token);\n\n if (!address) {\n return {url: null, remote: null, version: null};\n }\n\n const {addressList, origin} = (() => {\n if (/^https?:\\/\\//.test(address)) {\n const tag = window.document.createElement('a');\n tag.href = address;\n return {addressList: tag.pathname.split('/').filter((name) => !!name), origin: tag.origin};\n }\n\n return {addressList: address.split('/').filter((name) => !!name), origin: null};\n })();\n\n if (addressList.length === 1) {\n return {url: /^https?:\\/\\//.test(address) ? origin : null, remote: addressList[0], version: null}\n }\n\n if (addressList.length === 2 && /^https?:\\/\\//.test(address)) {\n return {url: origin, remote: addressList[0], version: addressList[1]}\n }\n\n return {\n url: /^https?:\\/\\//.test(address) ? origin : null,\n remote: addressList[addressList.length - 2],\n version: addressList[addressList.length - 1]\n };\n })(token);\n\n const module = ((token) => {\n const moduleStr = token.replace(/^.*:/, '');\n const [module, subModule] = moduleStr.split('@').map((module) => {\n const [name, propName] = module.split('.');\n return {name, propName};\n });\n const output = {\n moduleName: module.name, modulePropName: module.propName\n };\n\n if (subModule) {\n Object.assign(output, {\n subModuleName: subModule.name, subModulePropName: subModule.propName\n })\n }\n\n return output;\n })(token);\n\n return {url, remote, version, module};\n};\n\nexport default parseToken;\n","/*eslint-disable*/\n/**\n * The Right Way to Load Dynamic Remotes\n * @author ScriptedAlchemy <zackary.l.jackson@gmail.com>\n * @see {@link https://gist.github.com/ScriptedAlchemy/3a24008ef60adc47fad1af7d3299a063}\n *\n * @param {string} remote - the remote global name\n * @param {object | string} shareScope - the shareScope Object OR scope key\n * @param {string} remoteFallbackUrl - fallback url for remote module\n * @returns {Promise<object>} - Federated Module Container\n */\nexport const getOrLoadRemote = (remote, shareScope, remoteFallbackUrl = undefined) => new Promise((resolve, reject) => {\n // check if remote exists on window\n if (!window[remote]) {\n // search dom to see if remote tag exists, but might still be loading (async)\n const existingRemote = document.querySelector(`[data-webpack=\"${remote}\"]`);\n // when remote is loaded..\n const onload = async (script) => {\n script.setAttribute('data-status', 'success');\n // check if it was initialized\n if (window[remote] && !window[remote].__initialized) {\n if (typeof __webpack_share_scopes__ !== 'undefined' && shareScope) {\n // otherwise, init share scope as usual\n __webpack_share_scopes__[shareScope] && await window[remote].init(__webpack_share_scopes__[shareScope]);\n }\n // mark remote as initialized\n window[remote].__initialized = true;\n }\n // resolve promise so marking remote as loaded\n resolve();\n };\n\n const onerror = (e, script) => {\n script.parentNode.removeChild(script);\n reject(e.message);\n };\n if (existingRemote) {\n // if existing remote but not loaded, hook into its onload and wait for it to be ready\n //existingRemote.onload = onload;\n if (existingRemote.getAttribute('data-status') === 'success') {\n onload(existingRemote);\n return;\n }\n existingRemote.addEventListener('load', () => {\n onload(existingRemote);\n });\n //existingRemote.onerror = reject;\n existingRemote.addEventListener('error', (e) => {\n onerror(e, existingRemote);\n });\n // check if remote fallback exists as param passed to function\n // TODO: should scan public config for a matching key if no override exists\n } else if (remoteFallbackUrl) {\n // inject remote if a fallback exists and call the same onload function\n var d = document, script = d.createElement('script');\n script.type = 'text/javascript';\n // mark as data-webpack so runtime can track it internally\n script.setAttribute('data-webpack', `${remote}`);\n script.async = true;\n //script.onerror = reject;\n script.addEventListener('error', (e) => {\n onerror(e, script);\n });\n //script.onload = onload;\n script.addEventListener('load', () => {\n onload(script);\n });\n script.src = remoteFallbackUrl;\n d.getElementsByTagName('head')[0].appendChild(script);\n } else {\n // no remote and no fallback exist, reject\n reject(`Cannot Find Remote ${remote} to inject`);\n }\n } else {\n // remote already instantiated, resolve\n resolve();\n }\n});\n","import {getOrLoadRemote} from './getOrLoadRemote';\n\nexport const loadComponent = (remote, sharedScope, module, url) => {\n return async () => {\n await getOrLoadRemote(remote, sharedScope, url);\n const container = window[remote];\n const factory = await container.get(module);\n return factory();\n };\n};\n","import template from 'lodash/template';\nimport ensureSlash from '@kne/ensure-slash';\n\nconst getStaticPath = ({url, remote, version, tpl}) => {\n const compiled = template(tpl || '{{url}}/{{remote}}/{{version}}', {interpolate: /{{([\\s\\S]+?)}}/g});\n return ensureSlash(compiled({url: ensureSlash(url || ''), remote: remote || '', version: version || ''}));\n};\n\nexport default getStaticPath;\n","import {global} from './preset';\nimport parseToken from './parseToken';\nimport ensureSlash from '@kne/ensure-slash'\nimport {loadComponent} from \"./loadComponent\";\nimport getStaticPath from './getStaticPath';\nimport get from 'lodash/get';\n\nconst formatRemote = (remote) => {\n return remote.replace(/[-/.@]/g, '_');\n};\n\nconst loadModule = (token) => {\n const remotes = global.remotes;\n const remoteEntryFileName = global.remoteEntryFileName;\n const tokenObject = parseToken(token);\n\n const {url, remote} = ((tokenObject, remotes) => {\n const getStaticPathWithTpl = (options) => getStaticPath(Object.assign({}, options, {\n tpl: get(remotes, `[${options.remote || 'default'}].tpl`)\n }));\n if (tokenObject.url && tokenObject.remote && tokenObject.version) {\n return {\n url: getStaticPathWithTpl({\n url: tokenObject.url,\n remote: tokenObject.remote,\n version: tokenObject.version\n }), remote: tokenObject.remote + '_' + tokenObject.version\n }\n }\n if (tokenObject.url && tokenObject.remote) {\n return {\n url: getStaticPathWithTpl({url: tokenObject.url, remote: tokenObject.remote}),\n remote: tokenObject.remote\n }\n }\n if (tokenObject.remote && remotes[tokenObject.remote] && tokenObject.version) {\n return {\n url: getStaticPathWithTpl({\n url: remotes[tokenObject.remote].url,\n remote: remotes[tokenObject.remote].remote,\n version: tokenObject.version\n }), remote: remotes[tokenObject.remote].remote + '_' + tokenObject.version\n };\n }\n\n if (tokenObject.remote && remotes[tokenObject.remote] && remotes[tokenObject.remote].defaultVersion) {\n return {\n url: getStaticPathWithTpl({\n url: remotes[tokenObject.remote].url,\n remote: remotes[tokenObject.remote].remote,\n version: remotes[tokenObject.remote].defaultVersion\n }), remote: remotes[tokenObject.remote].remote + '_' + remotes[tokenObject.remote].defaultVersion\n };\n }\n\n if (tokenObject.remote && remotes[tokenObject.remote]) {\n return {\n url: getStaticPathWithTpl({\n url: remotes[tokenObject.remote].url, remote: remotes[tokenObject.remote].remote\n }), remote: remotes[tokenObject.remote].remote\n };\n }\n\n if (remotes['default'].defaultVersion) {\n return {\n url: getStaticPathWithTpl({\n url: remotes['default'].url,\n remote: remotes['default'].remote,\n version: remotes['default'].defaultVersion\n }), remote: remotes['default'].remote + '_' + remotes['default'].defaultVersion\n };\n }\n\n return {\n url: getStaticPathWithTpl({url: remotes['default'].url, remote: remotes['default'].remote}),\n remote: remotes['default'].remote\n };\n })(tokenObject, remotes);\n return loadComponent(formatRemote(remote), \"default\", './' + tokenObject.module.moduleName, ensureSlash(url) + '/' + remoteEntryFileName)().then((module) => {\n const Component = ((tokenModule, module) => {\n if (tokenModule.subModuleName && tokenModule.subModulePropName) {\n return module[tokenModule.subModuleName][tokenModule.subModulePropName];\n }\n if (tokenModule.subModuleName) {\n return module[tokenModule.subModuleName];\n }\n if (!tokenModule.subModuleName && tokenModule.modulePropName) {\n return module['default'][tokenModule.modulePropName];\n }\n return module['default'];\n })(tokenObject.module, module);\n return {\n default: Component\n };\n });\n};\n\nexport default loadModule;\n","import useRefCallback from \"@kne/use-ref-callback\";\nimport loadModule from './loadModule';\nimport {useEffect, useRef, useState} from \"react\";\nimport isEqual from \"lodash/isEqual\";\n\nconst cache = new Map();\n\nconst useLoader = ({modules, onLoadComplete}) => {\n const [loading, setLoading] = useState(!modules.every((token) => cache.has(token)));\n const [error, setError] = useState(false);\n const loadComplete = useRefCallback(onLoadComplete);\n const [remotes, setRemotes] = useState(() => {\n if (loading) {\n return [];\n }\n return modules.map((token) => cache.get(token));\n });\n\n const remotesRef = useRef(remotes);\n remotesRef.current = remotes;\n\n useEffect(() => {\n Promise.all(modules.map(async (token) => {\n if (cache.has(token)) {\n return cache.get(token);\n }\n const {default: defaultModal} = await loadModule(token);\n typeof defaultModal.moduleMounted === 'function' && await defaultModal.moduleMounted({\n token, module: defaultModal\n });\n cache.set(token, defaultModal);\n return defaultModal;\n })).then(async (modules) => {\n loadComplete && await loadComplete(modules);\n if (!isEqual(remotesRef.current, modules)) {\n setRemotes(modules);\n }\n setLoading(false);\n return modules;\n }, (e) => {\n console.error(e.stack);\n setError(true);\n });\n }, [modules]);\n return {\n loading, error, remoteModules: remotes\n };\n};\n\nexport default useLoader;\n","import React, {forwardRef} from \"react\";\nimport useLoader from './useLoader';\nimport {global} from \"./preset\";\nimport merge from \"lodash/merge\";\n\nconst withRemoteLoader = (WrappedComponent) => {\n return forwardRef(({modules, remoteError, onLoadComplete, fallback, ...props}, ref) => {\n const {loading, error, remoteModules} = useLoader({modules, onLoadComplete});\n if (loading) {\n return fallback || global.fallback;\n }\n if (error) {\n return remoteError || global.error;\n }\n return <WrappedComponent {...props} ref={ref} remoteModules={remoteModules}/>;\n });\n};\n\nexport const createWithRemoteLoader = (params) => (WrappedComponent) => {\n const RemoteComponent = withRemoteLoader(WrappedComponent);\n return forwardRef((props, ref) => <RemoteComponent {...merge({}, params, props)} ref={ref}/>);\n};\n\nexport default withRemoteLoader;\n","import React, {useMemo, forwardRef} from \"react\";\nimport withRemoteLoader from \"./withRemoteLoader\";\n\nconst RemoteLoaders = withRemoteLoader(forwardRef(({remoteModules, ...others}, ref) => {\n const [Component] = remoteModules;\n return <Component {...others} ref={ref}/>;\n}));\n\nconst RemoteLoader = forwardRef(({module, ...props}, ref) => {\n const modules = useMemo(() => {\n return [module];\n }, [module]);\n return <RemoteLoaders {...props} modules={modules} key={module} ref={ref}/>\n});\n\nexport default RemoteLoader;\n\n","import {global} from \"./preset\";\nimport getStaticPath from './getStaticPath';\n\nconst getPublicPath = (name, options) => {\n const {remotes, version} = Object.assign({}, {remotes: global.remotes}, options)\n const config = name && remotes[name] || remotes['default'];\n const currentVision = version || config.defaultVersion;\n return getStaticPath({\n url: config.url, remote: config.remote, version: currentVision, tpl: config.tpl\n });\n};\n\nexport default getPublicPath;\n","var eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\nfunction customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n}\n\nmodule.exports = customDefaultsAssignIn;\n","var basePropertyOf = require('./_basePropertyOf');\n\n/** Used to map characters to HTML entities. */\nvar htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n};\n\n/**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\nvar escapeHtmlChar = basePropertyOf(htmlEscapes);\n\nmodule.exports = escapeHtmlChar;\n","/** Used to match template delimiters. */\nvar reEscape = /<%-([\\s\\S]+?)%>/g;\n\nmodule.exports = reEscape;\n"],"names":["apply","require","baseRest","isError","attempt","func","args","undefined","e","Error","module","exports","escapeHtmlChar","toString","reUnescapedHtml","reHasUnescapedHtml","RegExp","source","string","test","replace","escape","templateSettings","copyObject","createAssigner","keysIn","assignInWith","object","srcIndex","customizer","stringEscapes","chr","baseValues","customDefaultsAssignIn","escapeStringChar","isIterateeCall","keys","reInterpolate","reEmptyStringLeading","reEmptyStringMiddle","reEmptyStringTrailing","reForbiddenIdentifierChars","reEsTemplate","reNoMatch","reUnescapedString","hasOwnProperty","Object","prototype","options","guard","settings","imports","_","isEscaping","isEvaluating","importsKeys","importsValues","index","interpolate","reDelimiters","evaluate","sourceURL","call","match","escapeValue","interpolateValue","esTemplateValue","evaluateValue","offset","slice","length","variable","result","Function","key","baseGetTag","isObjectLike","isPlainObject","value","tag","message","name","arrayMap","props","global","remotes","remoteEntryFileName","error","fallback","preset","assign","parseToken","token","url","remote","version","address","res","ensureSlash","addressList","origin","window","document","createElement","href","pathname","split","filter","moduleStr","subModule","map","propName","output","moduleName","modulePropName","subModuleName","subModulePropName","getOrLoadRemote","shareScope","remoteFallbackUrl","arguments","Promise","resolve","reject","existingRemote","querySelector","concat","onload","async","script","setAttribute","__initialized","__webpack_share_scopes__","init","onerror","parentNode","removeChild","getAttribute","addEventListener","d","type","src","getElementsByTagName","appendChild","loadComponent","sharedScope","container","get","getStaticPath","_ref3","tpl","compiled","template","loadModule","tokenObject","getStaticPathWithTpl","defaultVersion","formatRemote","then","Component","tokenModule","default","cache","Map","useLoader","_ref4","modules","onLoadComplete","loading","setLoading","useState","every","has","setError","loadComplete","useRefCallback","setRemotes","remotesRef","useRef","current","useEffect","all","defaultModal","moduleMounted","set","isEqual","console","stack","remoteModules","withRemoteLoader","WrappedComponent","forwardRef","_ref","ref","remoteError","_objectWithoutPropertiesLoose","_excluded$1","React","_extends","createWithRemoteLoader","params","RemoteComponent","merge","RemoteLoaders","others","_excluded","RemoteLoader","_ref2","_excluded2","useMemo","getPublicPath","config","currentVision","eq","objectProto","objValue","srcValue","basePropertyOf"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[8742],{12322:(t,r,e)=>{var n=e(16913),o=e(85990),c=e(22761),u=Function.prototype,s=Object.prototype,p=u.toString,i=s.hasOwnProperty,f=p.call(Object);t.exports=function(t){if(!c(t)||"[object Object]"!=n(t))return!1;var r=o(t);if(null===r)return!0;var e=i.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&p.call(e)==f}},26727:(t,r,e)=>{var n=e(86983),o=e(28673);t.exports=function(t){return null==t?[]:n(t,o(t))}},28673:(t,r,e)=>{var n=e(73204),o=e(83713),c=e(6571);t.exports=function(t){return c(t)?n(t):o(t)}},61143:(t,r,e)=>{var n=e(13028)(Object.keys,Object);t.exports=n},66361:(t,r,e)=>{const n=e(12322),o=e(26727),c=e(54052),u=t=>{if(n(t)){const r=o(t);return r.length>0&&r.some(t=>u(t))}return c(t)?t.length>0&&t.some(t=>u(t)):"number"===typeof t?!isNaN(t):!(void 0===t||null===t||""===t||0===t.length)},s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(t))return t.map(t=>s(t)).filter(u);if(n(t)){const r={};return Object.keys(t).forEach(e=>{const n=s(t[e]);u(n)&&(r[e]=n)}),r}return t};t.exports={isEmpty:t=>!u(t),isNotEmpty:u,filterEmpty:s}},83713:(t,r,e)=>{var n=e(36140),o=e(61143),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))c.call(t,e)&&"constructor"!=e&&r.push(e);return r}},85990:(t,r,e)=>{var n=e(13028)(Object.getPrototypeOf,Object);t.exports=n},86983:(t,r,e)=>{var n=e(50149);t.exports=function(t,r){return n(r,function(r){return t[r]})}}}]);
|
|
2
|
+
//# sourceMappingURL=8742.b63f3196.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/8742.b63f3196.chunk.js","mappings":"sIAAA,IAAIA,EAAaC,EAAQ,OACrBC,EAAeD,EAAQ,OACvBE,EAAeF,EAAQ,OAMvBG,EAAYC,SAASC,UACrBC,EAAcC,OAAOF,UAGrBG,EAAeL,EAAUM,SAGzBC,EAAiBJ,EAAYI,eAG7BC,EAAmBH,EAAaI,KAAKL,QA2CzCM,EAAOC,QAbP,SAAuBC,GACrB,IAAKb,EAAaa,IA5CJ,mBA4CchB,EAAWgB,GACrC,OAAO,EAET,IAAIC,EAAQf,EAAac,GACzB,GAAc,OAAVC,EACF,OAAO,EAET,IAAIC,EAAOP,EAAeE,KAAKI,EAAO,gBAAkBA,EAAME,YAC9D,MAAsB,mBAARD,GAAsBA,aAAgBA,GAClDT,EAAaI,KAAKK,IAASN,CAC/B,C,kBC3DA,IAAIQ,EAAanB,EAAQ,OACrBoB,EAAOpB,EAAQ,OAgCnBa,EAAOC,QAJP,SAAgBO,GACd,OAAiB,MAAVA,EAAiB,GAAKF,EAAWE,EAAQD,EAAKC,GACvD,C,kBC/BA,IAAIC,EAAgBtB,EAAQ,OACxBuB,EA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I0B,EAAS,GACb,IAAK,IAAIJ,KAAOpC,OAAOc,GACjBX,EAAeE,KAAKS,EAAQsB,IAAe,eAAPA,GACtCI,EAAOC,KAAKL,GAGhB,OAAOI,CACT,C,kBC3BA,IAGI9C,EAHUD,EAAQ,MAGH0B,CAAQnB,OAAO0C,eAAgB1C,QAElDM,EAAOC,QAAUb,C,kBCLjB,IAAIiD,EAAWlD,EAAQ,OAkBvBa,EAAOC,QANP,SAAoBO,EAAQ8B,GAC1B,OAAOD,EAASC,EAAO,SAASR,GAC9B,OAAOtB,EAAOsB,EAChB,EACF,C","sources":["../node_modules/lodash/isPlainObject.js","../node_modules/lodash/values.js","../node_modules/lodash/keys.js","../node_modules/lodash/_nativeKeys.js","../node_modules/@kne/is-empty/index.js","../node_modules/lodash/_baseKeys.js","../node_modules/lodash/_getPrototype.js","../node_modules/lodash/_baseValues.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","const isPlainObject = require('lodash/isPlainObject');\nconst getValues = require('lodash/values');\nconst isArray = require('lodash/isArray');\n\nconst isNotEmpty = value => {\n if (isPlainObject(value)) {\n const values = getValues(value);\n return values.length > 0 && values.some(item => isNotEmpty(item));\n } else if (isArray(value)) {\n return value.length > 0 && value.some(item => isNotEmpty(item));\n } else if (typeof value === 'number') {\n return !isNaN(value);\n } else {\n return !(value === undefined || value === null || value === '' || value.length === 0);\n }\n};\n\nconst filterEmpty = (value = {}) => {\n if (isArray(value)) {\n return value.map(item => filterEmpty(item)).filter(isNotEmpty);\n }\n if (isPlainObject(value)) {\n const output = {};\n Object.keys(value).forEach(key => {\n const current = filterEmpty(value[key]);\n if (isNotEmpty(current)) {\n output[key] = current;\n }\n });\n return output;\n }\n return value;\n};\n\nconst isEmpty = value => !isNotEmpty(value);\n\nmodule.exports = { isEmpty, isNotEmpty, filterEmpty };\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n"],"names":["baseGetTag","require","getPrototype","isObjectLike","funcProto","Function","prototype","objectProto","Object","funcToString","toString","hasOwnProperty","objectCtorString","call","module","exports","value","proto","Ctor","constructor","baseValues","keys","object","arrayLikeKeys","baseKeys","isArrayLike","nativeKeys","overArg","isPlainObject","getValues","isArray","isNotEmpty","values","length","some","item","isNaN","undefined","filterEmpty","arguments","map","filter","output","forEach","key","current","isEmpty","isPrototype","result","push","getPrototypeOf","arrayMap","props"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[8985],{19155:(e,t,n)=>{n.d(t,{A:()=>u});var l=n(73884),a=n(79889),r=n.n(a),c=n(93950),o=n.n(c),s=n(96418),i=n.n(s);const u=(e,t)=>{const n=(0,l.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const a=(0,l.useRef)(null),c=i()(e);return(0,l.useLayoutEffect)(()=>{const e=a.current,t=()=>window.requestAnimationFrame(()=>{e&&c(e)});t();const l=new ResizeObserver((n.current.isDebounce?o():r())(t,n.current.time));return e&&l.observe(e),()=>{l.disconnect()}},[c]),a}},20794:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(73884);const a=(0,l.createContext)({})},22172:(e,t,n)=>{n.d(t,{A:()=>T});var l=n(58168),a=n(5544),r=n(64467),c=n(53986),o=n(73884),s=n.n(o),i=n(83136),u=n.n(i),d=n(8500),m=n(20794),p=n(89379),f=n(82284),h=n(80930),g=n(49134),v=n(97907);function b(e){return"object"===(0,f.A)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,f.A)(e.icon)||"function"===typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var l,a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(l=n,l.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=a;return t},{})}function C(e,t,n){return n?s().createElement(e.tag,(0,p.A)((0,p.A)({key:t},y(e.attrs)),n),(e.children||[]).map(function(n,l){return C(n,"".concat(t,"-").concat(e.tag,"-").concat(l))})):s().createElement(e.tag,(0,p.A)({key:t},y(e.attrs)),(e.children||[]).map(function(n,l){return C(n,"".concat(t,"-").concat(e.tag,"-").concat(l))}))}function E(e){return(0,d.generate)(e)[0]}function A(e){return e?Array.isArray(e)?e:[e]:[]}var N=["icon","className","onClick","style","primaryColor","secondaryColor"],w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var x=function(e){var t,n,l=e.icon,a=e.className,r=e.onClick,s=e.style,i=e.primaryColor,u=e.secondaryColor,d=(0,c.A)(e,N),f=o.useRef(),y=w;if(i&&(y={primaryColor:i,secondaryColor:u||E(i)}),function(e){var t=(0,o.useContext)(m.A),n=t.csp,l=t.prefixCls,a=t.layer,r="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";l&&(r=r.replace(/anticon/g,l)),a&&(r="@layer ".concat(a," {\n").concat(r,"\n}")),(0,o.useEffect)(function(){var t=e.current,l=(0,g.j)(t);(0,h.BD)(r,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])}(f),t=b(l),n="icon should be icon definiton, but got ".concat(l),(0,v.Ay)(t,"[@ant-design/icons] ".concat(n)),!b(l))return null;var A=l;return A&&"function"===typeof A.icon&&(A=(0,p.A)((0,p.A)({},A),{},{icon:A.icon(y.primaryColor,y.secondaryColor)})),C(A.icon,"svg-".concat(A.name),(0,p.A)((0,p.A)({className:a,onClick:r,style:s,"data-icon":A.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};x.displayName="IconReact",x.getTwoToneColors=function(){return(0,p.A)({},w)},x.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;w.primaryColor=t,w.secondaryColor=n||E(t),w.calculated=!!n};const S=x;function k(e){var t=A(e),n=(0,a.A)(t,2),l=n[0],r=n[1];return S.setTwoToneColors({primaryColor:l,secondaryColor:r})}var _=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(d.blue.primary);var O=o.forwardRef(function(e,t){var n=e.className,s=e.icon,i=e.spin,d=e.rotate,p=e.tabIndex,f=e.onClick,h=e.twoToneColor,g=(0,c.A)(e,_),v=o.useContext(m.A),b=v.prefixCls,y=void 0===b?"anticon":b,C=v.rootClassName,E=u()(C,y,(0,r.A)((0,r.A)({},"".concat(y,"-").concat(s.name),!!s.name),"".concat(y,"-spin"),!!i||"loading"===s.name),n),N=p;void 0===N&&f&&(N=-1);var w=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,x=A(h),k=(0,a.A)(x,2),O=k[0],T=k[1];return o.createElement("span",(0,l.A)({role:"img","aria-label":s.name},g,{ref:t,tabIndex:N,onClick:f,className:E}),o.createElement(S,{icon:s,primaryColor:O,secondaryColor:T,style:w}))});O.displayName="AntdIcon",O.getTwoToneColor=function(){var e=S.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},O.setTwoToneColor=k;const T=O},28369:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(58168),a=n(73884);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var c=n(22172);const o=a.forwardRef(function(e,t){return a.createElement(c.A,(0,l.A)({},e,{ref:t,icon:r}))})},49134:(e,t,n)=>{function l(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function a(e){return function(e){return l(e)instanceof ShadowRoot}(e)?l(e):null}n.d(t,{j:()=>a})},62058:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(58168),a=n(73884);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var c=n(22172);const o=a.forwardRef(function(e,t){return a.createElement(c.A,(0,l.A)({},e,{ref:t,icon:r}))})},63390:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(58168),a=n(73884);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var c=n(22172);const o=a.forwardRef(function(e,t){return a.createElement(c.A,(0,l.A)({},e,{ref:t,icon:r}))})},78528:(e,t,n)=>{n.d(t,{A:()=>o});var l=n(58168),a=n(73884);const r={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var c=n(22172);const o=a.forwardRef(function(e,t){return a.createElement(c.A,(0,l.A)({},e,{ref:t,icon:r}))})},98985:(e,t,n)=>{n.r(t),n.d(t,{SelectInput:()=>le,SelectTableList:()=>He,SelectTree:()=>ct,SelectedAll:()=>re,SelectedTagList:()=>pe,default:()=>ke});var l=n(73884),a=n.n(l),r=n(83694),c=n(19155),o=n(10986),s=n.n(o),i=n(83136),u=n.n(i),d=n(19853),m=n.n(d),p=n(74065),f=n.n(p),h=n(55199),g=n(78528),v=n(28369),b=n(63390),y=n(39129),C=n(52526),E=n(33097),A=n.n(E),N=n(34581),w=n.n(N),x=(n(46733),n(62058)),S=n(69859);function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},k.apply(null,arguments)}var _="_zHTh7",O="_-1Ymo";const T=["value","debounce","onSearch","simple","showSearchButton","placeholder","className"],P=e=>{const t=Object.assign({},{showSearchButton:!1,debounce:500,onSearch:()=>{}},e),{value:n,debounce:r,onSearch:c,simple:o,showSearchButton:s,placeholder:i,className:d}=t,m=function(e,t){if(null==e)return{};var n={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(t.includes(l))continue;n[l]=e[l]}return n}(t,T),[p,f]=(0,l.useState)(n),g=(0,l.useRef)(n),v=(0,S.useDebouncedCallback)(c,r);return(0,l.useEffect)(()=>{n!==g.current&&(f(n),g.current=n)},[n]),a().createElement(h.Space.Compact,{className:u()(d,_,{[O]:o})},a().createElement(h.Input,k({},m,{allowClear:!0,value:p,placeholder:i,onChange:e=>{const t=e.target.value;g.current=t,f(t),v(t)},prefix:a().createElement(x.A,null)})),s&&a().createElement(h.Button,{type:"primary",onClick:()=>{v(n)}},a().createElement(x.A,null)))};var I=n(95183),R=(n(21219),n(15797)),j=n.n(R),K=n(79686),L=n.n(K),z=n(87558),F=n.n(z);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},V.apply(null,arguments)}function M(e,t){if(null==e)return{};var n={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==t.indexOf(l))continue;n[l]=e[l]}return n}const D=(0,r.createContext)(),{Provider:B,useContext:W}=D;var U="_d8lGc",q="_3kjwO",H="_dsTM2",J="_NQoX9",Q="_g8QC-",X="_r3q69",Y="_zEqGe",Z="_ybN30",G="_4Pw75",$="_Wd4pE";const ee={placeholder:"\u8bf7\u9009\u62e9",selectAll:"\u5168\u9009",selected:"\u5df2\u9009",search:"\u641c\u7d22",numberOf:"{number}\u4e2a",maxLengthError:"\u6700\u5927\u6570\u91cf\u4e0d\u80fd\u8d85\u8fc7{maxLength}",defaultChildren:"\u4e0b\u62c9\u5185\u5bb9\uff0c\u9700\u8981\u8c03\u7528\u65b9\u5b9e\u73b0"},te=["children"],ne=e=>{let{children:t}=e,n=M(e,te);const{open:r,value:c}=n,[o,s]=(0,l.useState)(c);(0,l.useEffect)(()=>{r&&!m()(o,c)&&s(c)},[r]);const i=Object.assign({},n,{value:o,setValue:s,onComplete:()=>n.setValue(o),onAdd:e=>n.onAdd(e,s),onSelect:e=>n.onSelect(e,s),onRemove:e=>n.onRemove(e,s),children:t});return a().createElement(B,{value:i},t(i))},le=(0,C.createWithIntlProvider)({defaultLocale:"zh-CN",namespace:"super-select",messages:{"zh-CN":ee,"en-US":{placeholder:"Please select",selectAll:"Select All",selected:"Selected",search:"Search",numberOf:"{number} items",maxLengthError:"The maximum number cannot exceed {maxLength}",defaultChildren:"Dropdown content, to be implemented by the caller"}}})((0,l.forwardRef)((e,t)=>{const n=(0,C.useIntl)(),{formatMessage:r}=n,o=Object.assign({},{children:()=>r({id:"defaultChildren"}),maxLength:null,defaultOpen:!1,single:!1,disabled:!1,isPopup:!0,placeholder:r({id:"placeholder"}),searchPlaceholder:r({id:"search"}),completeTips:null,allowSelectedAll:!1,labelKey:"label",valueKey:"value",selectedAllValue:{value:"all",label:r({id:"selectAll"})},placement:"bottomLeft",labelWrap:!1,showSelectedTag:!1,allowClear:!0,prefix:null,suffix:null,extra:null,renderModal:e=>{const{props:t,open:n,onComplete:l,onOpenChange:r}=e,{placeholder:c,children:o}=t;return a().createElement(h.Modal,{width:1e3,open:n,title:c,onCancel:()=>{r(!1)},onOk:()=>{l(),r(!1)}},o(e))}},e);o.selectedAllValue={[o.valueKey]:o.selectedAllValue.value,[o.labelKey]:o.selectedAllValue.label};const{children:i,prefix:d,suffix:m,className:p,maxLength:b,overlayClassName:E,single:A,labelWrap:N,isPopup:w,allowClear:x,disabled:S,placeholder:k,selectedAllValue:_,overlayWidth:O,placement:T,renderModal:P,labelKey:I,valueKey:R}=o,j=e=>A?(0,y.isNotEmpty)(e)?[e]:[]:Array.isArray(e)?e:[],[K,L]=s()(Object.assign({},o,{onChange:e=>{o.onChange&&o.onChange(o.single?f()(e):e)}},"value"in o?{value:j(o.value)}:{defaultValue:j(o.defaultValue)})),[z,F]=(0,l.useState)({}),[M,D]=s()(o,{defaultValue:"defaultOpen",value:"open",onChange:"onOpenChange"}),[W,ee]=(0,l.useState)(!1),[te,le]=(0,l.useState)(0),ae=(0,c.A)(e=>{le(e.clientWidth)}),re=(ce=Math.max(te,(e=>{if(!e)return 0;if(Number.isInteger(e))return e;const t=e.toString().match(/^\d*(\.\d*)?/);return t?Number(t[0]):0})(O)),"number"===typeof ce?"".concat(ce,"px"):ce);var ce;const{message:oe}=h.App.useApp(),se=(e,t)=>!(Number.isInteger(t)&&t>0&&e.length>=t)||(oe.error(r({id:"maxLengthError"},{maxLength:t})),!1),ie=(e,t)=>{(t||L)(t=>{const n=t.slice(0),l=t.findIndex(t=>t[R]===e[R]);return l>-1&&n.splice(l,1),n})},ue={props:o,value:K,setValue:L,searchProps:z,setSearchProps:F,hover:W,inputWidth:te,onAdd:(e,t)=>{(t||L)(t=>{if(se(t,b))return t;const n=t.slice(0);return-1===t.findIndex(t=>t[R]===e[R])&&n.push(e),n})},onRemove:ie,onSelect:(e,t)=>{(t||L)(t=>{const n=(t||[]).slice(0),l=n.findIndex(t=>t[R]===e[R]);return-1!==l||se(n,b)?(-1===l?n.push(e):n.splice(l,1),n):t})},open:!S&&M,onOpenChange:D,children:i},de=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"===typeof ue.props.inputRender?ue.props.inputRender(e,ue):a().createElement(h.Flex,V({},e,{ref:ae,className:u()(p,U,"select-input",{[H]:N,[q]:S}),justify:"space-between",onMouseOver:()=>{ee(!0)},onMouseOut:()=>{ee(!1)}}),(()=>{const e="function"===typeof d?d(ue):d;return e&&a().createElement("span",{className:u()(G,"select-input-prefix"),onClick:e=>{e.stopPropagation()}},e)})(),a().createElement("div",{className:u()(J,"select-input-inner")},K.length>0?A||K[0][R]===_[R]?K[0][I]:K.map(e=>a().createElement(h.Tag,{key:e[R],closable:!0,bordered:!1,onClose:t=>{t.preventDefault(),ie(e)}},e[I])):a().createElement("span",{className:u()(X,"select-input-placeholder")},k)),a().createElement("div",{className:u()(Q,"select-input-icon")},!S&&x&&W&&K.length>0?a().createElement(g.A,{onClick:e=>{e.stopPropagation(),L([])}}):a().createElement(v.A,null)),(()=>{const e="function"===typeof m?m(ue):m;return e&&a().createElement("span",{className:u()($,"select-input-suffix"),onClick:e=>{e.stopPropagation()}},e)})())};return(0,l.useImperativeHandle)(t,()=>ue),a().createElement(B,{value:ue},w?a().createElement(h.Dropdown,{open:!S&&M,onOpenChange:D,placement:T,arrow:!1,overlayClassName:u()(Z,E),trigger:"click",popupRender:()=>a().createElement("div",{style:{"--overlay-width":re},className:u()(Y,"over-content"),onClick:e=>{e.stopPropagation()}},i(ue))},a().createElement("span",null,de())):a().createElement(a().Fragment,null,de({onClick:()=>{D(!0)}}),a().createElement(ne,ue,P)))}));var ae="_prlgN";const re=(0,C.createWithIntlProvider)("zh-CN",ee,"super-select")(()=>{const{formatMessage:e}=(0,C.useIntl)(),{props:t,value:n,setValue:l}=W(),{unit:r,selectedAllValue:c,valueKey:o}=Object.assign({},{unit:t=>e({id:"numberOf"},{number:t})},t),s=ce(n,c,o);return a().createElement(h.Flex,{justify:"space-between",className:u()(ae,"selected-all")},a().createElement(h.Flex,{gap:8},a().createElement("span",null,e({id:"selected"}),":"),a().createElement("span",null,s?c.label:"function"===typeof r?r(n.length):n.length)),a().createElement("span",null,a().createElement(h.Checkbox,{checked:s,onChange:e=>{const t=e.target.checked;l(t?[c]:[])}},e({id:"selectAll"}))))}),ce=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value";return 1===(null==e?void 0:e.length)&&A()(e,"[0][".concat(n,"]"))===t[n]};var oe="_l3KoW",se="_CCPzb",ie="_dKZHi",ue="_oijCI",de="_WmnnS",me="_TMcFl";const pe=(0,C.createWithIntlProvider)("zh-CN",ee,"super-select")(()=>{const{formatMessage:e}=(0,C.useIntl)(),{props:t,value:n,onRemove:l}=W(),{single:r,maxLength:c,labelKey:o,valueKey:s}=Object.assign({},t);return a().createElement(h.Flex,{className:u()(se,"selected-tag-list"),gap:8},a().createElement("div",{className:oe},e({id:"selected"}),!r&&n.length>0&&"(".concat(n.length).concat(Number.isInteger(c)?"/".concat(c):"",")"),":"),a().createElement(w(),{className:ie},a().createElement(h.Flex,{gap:8,wrap:!0,className:ue},n.map(e=>a().createElement(h.Tag,{className:de,key:e[s],closable:!0,bordered:!1,onClose:t=>{t.preventDefault(),l(e)}},a().createElement("span",{className:me},e[o]))))))});var fe="_IsXdU",he="_QD1Mz",ge="_M-mOy",ve="_KtOsz",be="_TQhBB",ye="_2rUrh",Ce="_NbwX5",Ee="_vN2Fx",Ae="_6oITk",Ne="_iAH9D",we="_TCkeJ",xe="_v3f23";const Se=["children"],ke=(0,l.forwardRef)((e,t)=>{let{children:n}=e,r=M(e,Se);const c=(0,l.useRef)(null),o=Object.assign({},{renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l}=n;return a().createElement(a().Fragment,null,a().createElement("div",{className:"select-list-item-label"},t[l]),t.description&&a().createElement("div",{className:u()(we,"select-list-item-description")},t.description))},renderItem:e=>{const{item:t,props:n,isSelectedAll:l,value:r,onSelect:c,setValue:o,onOpenChange:s}=e,{single:i,isPopup:d,renderItemContent:m,valueKey:p}=n,f=r.some(e=>e[p]===t[p]);return a().createElement(h.List.Item,{className:u()(ve,"select-list-item",{[be]:f,[Ce]:t.disabled}),key:t[p],onClick:()=>{t.disabled||l||(i?o([t]):c(t),d&&i&&s(!1))}},!i&&a().createElement(h.Flex,null,a().createElement(h.Checkbox,{checked:l||f,disabled:l||t.disabled})),a().createElement(h.Flex,{vertical:!0,gag:8,flex:1,className:"select-list-item-content"},m(e)),i&&a().createElement("div",{className:ye},f&&a().createElement(b.A,null)))},renderList:e=>{const{props:t,isSelectedAll:n,list:l}=e,{renderItem:r}=t;return a().createElement(h.List,{className:u()(he,{[ge]:n}),size:"small",dataSource:l,renderItem:t=>r(Object.assign({},e,{item:t}))})}},r);return a().createElement(le,V({},o,{ref:t}),e=>{const{props:t,value:l,searchProps:r,setSearchProps:o,onOpenChange:s}=e,{footer:i,isPopup:d,getSearchProps:m,getSearchCallback:p,searchPlaceholder:f,valueKey:g,single:v,allowSelectedAll:b,showSelectedTag:y,api:C,options:E,renderList:A,selectedAllValue:N}=t,w={search:(C&&"function"===typeof m||E&&"function"===typeof p)&&a().createElement(P,{className:u()(Ne,"select-list-search",{"is-popup":d}),placeholder:f,value:r.searchText,onSearch:e=>{o(t=>Object.assign({},t,{searchText:e}))},simple:d,showSearchButton:!d}),selectedAll:a().createElement("div",{className:u()(Ee,"select-list-selected-all",{"is-popup":d})},!v&&b&&a().createElement(re,null)),fetchList:a().createElement(I.FetchScrollLoader,V({},t,{className:u()(fe,"select-list-scroll-list",{"is-popup":d}),searchProps:r,getSearchProps:m,api:Object.assign({},E?{data:{options:E,searchProps:r},loader:e=>{let{data:t}=e;const{options:n,searchProps:l}=t;if("function"===typeof p){return{pageData:n.filter(e=>p(l,e))}}return{pageData:n}}}:C),ref:c}),t=>{const n=ce(l,N,g);return A(Object.assign({},t,e,{isSelectedAll:n}))}),selectedTag:y&&a().createElement("div",{className:u()(Ae,"select-list-selected-tag",{"is-popup":d})},a().createElement(pe,null))};return"function"===typeof n?n(Object.assign({},e,{components:w})):a().createElement(h.Flex,{vertical:!0},w.search,w.selectedAll,w.fetchList,i&&a().createElement("div",{className:u()(xe,"select-list-footer")},"function"===typeof i?i({reload:()=>{c.current&&c.current.reload()},close:()=>{s(!1)}}):i),w.selectedTag)})});var _e="_DrEYJ",Oe="_Vmbrg",Te="_dJmfs",Pe="_704J1",Ie="_qU5zU",Re="_MzyWg",je="_5luTv",Ke="_UXi-g",Le="_iaCir",ze="_JkYqS",Fe="_VZlBL",Ve="_Eiz-u",Me="_temy6",De="_7phL2",Be="_ttNK9",We="_xU-i7",Ue="_SvfzQ",qe="_lISfA";const He=(0,C.createWithIntlProvider)("zh-CN",ee,"super-select")((0,l.forwardRef)((e,t)=>{const{formatMessage:n}=(0,C.useIntl)(),[r,c]=(0,l.useState)(""),o=(0,l.useRef)(),s=Object.assign({},{overlayWidth:"600px",filterRender:e=>{const{props:t,searchProps:n,setSearchProps:l}=e,{isPopup:r,searchPlaceholder:c,api:o,getSearchProps:s,options:i,getSearchCallback:d,labelKey:m}=t;return o&&"function"===typeof s||i&&"function"===typeof d?a().createElement(P,{className:u()(Me,"select-list-search",{"is-popup":r}),placeholder:c,value:n.searchText||"",onSearch:e=>{l(t=>Object.assign({},t,{searchText:e}))},simple:r,showSearchButton:!r}):null},getTagSearchCallback:(e,t,n)=>{const{props:l}=n,{labelKey:a}=l;return!e||t[a].indexOf(e)>-1}},e),i=(0,l.useRef)(null);return a().createElement(le,V({},s,{ref:t}),e=>{const{props:t,value:s,setValue:d,onSelect:m,onRemove:p,onOpenChange:f}=e,{footer:g,filterRender:v,columns:y,options:C,getSearchCallback:E,getTagSearchCallback:N,api:x,selectedAllValue:S,isPopup:k,single:_,maxLength:O,getSearchProps:T,searchPlaceholder:R,allowSelectedAll:j,labelKey:K,valueKey:L,searchProps:z}=t,F=ce(s,S,L),M=g&&a().createElement("div",{className:u()(qe,"select-table-footer")},"function"===typeof g?g({reload:()=>{o.current&&o.current.reload()},close:()=>{f(!1)}}):g);return a().createElement(h.Row,{wrap:!1,ref:i},a().createElement(h.Col,{span:_?24:16},a().createElement("div",null,v(Object.assign({},e))),a().createElement(h.Row,{wrap:!1,className:u()(Oe,"select-table-list-header")},!_&&a().createElement(h.Col,{className:u()(Te,"select-table-list-col")},j?a().createElement(h.Checkbox,{checked:F,onChange:e=>{const t=e.target.checked;d(t?[S]:[])}}):a().createElement(h.Checkbox,{style:{visibility:"hidden"}})),a().createElement(h.Col,{flex:1},a().createElement(h.Row,{wrap:!1},y.map(e=>{const{name:t,title:n,span:l}=e;return a().createElement(h.Col,{key:t,span:l,className:u()(Te,"select-table-list-col")},n)})))),a().createElement(I.FetchScrollLoader,V({},t,{className:u()(_e,"select-table-list-scroll-list",{"is-popup":k}),searchProps:z,getSearchProps:T,api:Object.assign({},C?{data:{options:C,searchProps:z},loader:t=>{let{data:n}=t;const{options:l,searchProps:a}=n;if("function"===typeof E){return{pageData:l.filter(t=>E(a,t,e))}}return{pageData:l}}}:x),ref:o}),t=>{const{list:n}=t,l=Object.assign({},t,e,{isSelectedAll:F});return n.map(e=>{const t=s.some(t=>t[L]===e[L]);return a().createElement(h.Row,{wrap:!1,key:e[L],className:u()(Pe,"select-table-list-body",[{[Ie]:F,[Re]:t,[je]:e.disabled}]),onClick:()=>{e.disabled||F||(_?d([e]):m(e),k&&_&&f(!1))}},!_&&a().createElement(h.Col,{className:u()(Te,"select-table-list-col")},a().createElement(h.Checkbox,{disabled:e.disabled||F,checked:F||t})),a().createElement(h.Col,{flex:1},a().createElement(h.Row,{wrap:!1},y.map(t=>{const{name:n,span:r,getValueOf:c}=t;return a().createElement(h.Col,{key:n,span:r,className:u()(Te,"select-table-list-col")},"function"===typeof c?c(e,l):A()(e,n))}))),_&&a().createElement(h.Col,{className:u()(Te,Ve,"select-table-list-col")},t&&a().createElement(b.A,null)))})}),_&&M),!_&&a().createElement(h.Col,{className:u()(Ke,{"is-popup":k}),span:8},a().createElement(P,{className:De,placeholder:R,value:r,onSearch:e=>{c(e)},showSearchButton:!1}),a().createElement(h.Row,{wrap:!1,justify:"space-between",align:"middle"},a().createElement(h.Col,null,n({id:"selected"}),s.length>0&&"(".concat(s.length).concat(Number.isInteger(O)?"/".concat(O):"",")"),":"),a().createElement(h.Col,null,a().createElement(h.Button,{className:Le,type:"link",onClick:()=>{d([])}},"\u79fb\u9664\u5168\u90e8"))),a().createElement(w(),null,a().createElement(h.Flex,{wrap:!0,gap:8},s.filter(t=>N(r,t,e)).map(t=>a().createElement(h.Tag,{className:ze,key:t[L],closable:!0,bordered:!1,onClose:e=>{e.preventDefault(),p(t)}},a().createElement(h.Popover,{getPopupContainer:()=>i.current,content:a().createElement(h.Row,{className:Be},y.map(n=>{let{name:r,title:c,getValueOf:o}=n;return a().createElement(l.Fragment,{key:r},a().createElement(h.Col,{span:8,className:We},c),a().createElement(h.Col,{className:Ue,span:16},"function"===typeof o?o(t,e):A()(t,r)))}))},a().createElement("span",{className:Fe},t[K])))))),M))})}));var Je="_YTqxA",Qe="_IZN7r",Xe="_GCIMn",Ye="_AYi0i",Ze="_eovZv",Ge="_Tr-bO",$e="_T-hri",et="_4XFtm",tt="_Whlzr",nt="_PjlnR";const lt=["children"],at=["data"],rt=j()(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{parentKey:t,valueKey:n,childrenKey:l}=arguments.length>1?arguments[1]:void 0;const a=r=>r.map(r=>{const c=e.filter(e=>!L()(r[n])&&e[t]===r[n]);return Object.assign({},r,{[l]:a(c)})});return{treeData:a(e.filter(e=>!e[t])),ids:e.map(e=>e.id)}}),ct=(0,l.forwardRef)((e,t)=>{let{children:n}=e,r=M(e,lt);const c=(0,l.useRef)(null),[o,s]=(0,l.useState)([]),i=Object.assign({},{parentKey:"parentId",childrenKey:"children",renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l}=n;return a().createElement(a().Fragment,null,a().createElement("div",{className:"select-tree-item-label"},t[l]))},renderItem:e=>{const{item:t,props:n,isSelectedAll:l,value:r,onSelect:c,setValue:o,onOpenChange:s}=e,{single:i,isPopup:d,renderItemContent:m,valueKey:p}=n,f=r.some(e=>e[p]===t[p]);return a().createElement(h.Flex,{className:u()(Ye,"select-tree-item",{[Ze]:f,[$e]:t.disabled}),key:t[p],onClick:()=>{t.disabled||l||(i?o([t]):c(t),d&&i&&s(!1))}},!i&&a().createElement(h.Flex,null,a().createElement(h.Checkbox,{checked:l||f,disabled:l||t.disabled})),a().createElement(h.Flex,{vertical:!0,gag:8,flex:1,className:"select-tree-item-content"},m(e)),i&&a().createElement("div",{className:Ge},f&&a().createElement(b.A,null)))},renderTree:e=>{const{props:t,isSelectedAll:n,data:l}=e,{renderItem:r,valueKey:c,labelKey:i,childrenKey:d,parentKey:m}=t,{treeData:p,ids:f}=rt(l,{valueKey:c,parentKey:m,childrenKey:d});return a().createElement(h.Tree,{className:u()(Qe,{[Xe]:n}),showIcon:!0,selectable:!1,expandedKeys:o,fieldNames:{title:i,key:c,children:d},treeData:p,onExpand:e=>{s(e)},titleRender:t=>r(Object.assign({},e,{item:t}))})}},r);return a().createElement(le,V({},i,{ref:t}),e=>{const{props:t,value:l,onOpenChange:r}=e,{footer:o,isPopup:s,valueKey:i,single:d,allowSelectedAll:m,showSelectedTag:p,api:f,options:g,renderTree:v,selectedAllValue:b}=t,y={selectedAll:a().createElement("div",{className:u()(et,"select-tree-selected-all",{"is-popup":s})},!d&&m&&a().createElement(re,null)),treeList:a().createElement(F(),V({},Object.assign({},g?{data:{options:g},loader:e=>{let{data:t}=e;return t.options}}:f),{ref:c,render:t=>{let{data:n}=t,r=M(t,at);const c=ce(l,b,i);return a().createElement(w(),{className:u()(Je,"select-tree-scroll-list",{"is-popup":s})},v(Object.assign({},r,e,{isSelectedAll:c,data:n})))}})),selectedTag:p&&a().createElement("div",{className:u()(tt,"select-tree-selected-tag",{"is-popup":s})},a().createElement(pe,null))};return"function"===typeof n?n(Object.assign({},e,{components:y})):a().createElement(h.Flex,{vertical:!0},y.search,y.selectedAll,y.treeList,o&&a().createElement("div",{className:u()(nt,"select-tree-footer")},"function"===typeof o?o({reload:()=>{c.current&&c.current.reload()},close:()=>{r(!1)}}):o),y.selectedTag)})})}}]);
|
|
2
|
+
//# sourceMappingURL=8985.d66727fd.chunk.js.map
|