@kne-components/components-core 0.4.17 → 0.4.18
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 +104 -104
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{9970.02c9a230.chunk.css → 1459.9c88e088.chunk.css} +1 -1
- package/build/static/css/{9970.02c9a230.chunk.css.map → 1459.9c88e088.chunk.css.map} +1 -1
- package/build/static/css/1996.7de1c377.chunk.css +2 -0
- package/build/static/css/{1996.73c1014c.chunk.css.map → 1996.7de1c377.chunk.css.map} +1 -1
- package/build/static/css/206.ceece11f.chunk.css +2 -0
- package/build/static/css/206.ceece11f.chunk.css.map +1 -0
- package/build/static/css/254.51a666f0.chunk.css +2 -0
- package/build/static/css/{254.6dec53cd.chunk.css.map → 254.51a666f0.chunk.css.map} +1 -1
- package/build/static/css/2628.ec2e929a.chunk.css +2 -0
- package/build/static/css/{2628.d136a46c.chunk.css.map → 2628.ec2e929a.chunk.css.map} +1 -1
- package/build/static/css/3652.3ceea0bd.chunk.css +2 -0
- package/build/static/css/{3652.013c22d2.chunk.css.map → 3652.3ceea0bd.chunk.css.map} +1 -1
- package/build/static/css/3771.18c49899.chunk.css +2 -0
- package/build/static/css/{3771.b1c03973.chunk.css.map → 3771.18c49899.chunk.css.map} +1 -1
- package/build/static/css/{3790.bee0fa01.chunk.css → 3790.52f4c06a.chunk.css} +2 -2
- package/build/static/css/{3790.bee0fa01.chunk.css.map → 3790.52f4c06a.chunk.css.map} +1 -1
- package/build/static/css/3874.0b4d654b.chunk.css +2 -0
- package/build/static/css/{3874.7ae6ce5f.chunk.css.map → 3874.0b4d654b.chunk.css.map} +1 -1
- package/build/static/css/4244.4dc0127a.chunk.css +2 -0
- package/build/static/css/4244.4dc0127a.chunk.css.map +1 -0
- package/build/static/css/{4277.09d8c5d3.chunk.css → 4277.9dcfa38f.chunk.css} +2 -2
- package/build/static/css/{4277.09d8c5d3.chunk.css.map → 4277.9dcfa38f.chunk.css.map} +1 -1
- package/build/static/css/4666.9102336e.chunk.css +2 -0
- package/build/static/css/{4666.7c8684be.chunk.css.map → 4666.9102336e.chunk.css.map} +1 -1
- package/build/static/css/4741.475a4f43.chunk.css +2 -0
- package/build/static/css/{4741.00a83f14.chunk.css.map → 4741.475a4f43.chunk.css.map} +1 -1
- package/build/static/css/5195.71cca503.chunk.css +2 -0
- package/build/static/css/5195.71cca503.chunk.css.map +1 -0
- package/build/static/css/6763.2d2f31d2.chunk.css +2 -0
- package/build/static/css/{6763.eff867ac.chunk.css.map → 6763.2d2f31d2.chunk.css.map} +1 -1
- package/build/static/css/6980.953992f0.chunk.css +12 -0
- package/build/static/css/{6980.5d03c062.chunk.css.map → 6980.953992f0.chunk.css.map} +1 -1
- package/build/static/css/7227.2b627433.chunk.css +2 -0
- package/build/static/css/{7227.7b15d7f0.chunk.css.map → 7227.2b627433.chunk.css.map} +1 -1
- package/build/static/css/760.05339a6d.chunk.css +2 -0
- package/build/static/css/{760.9defadb0.chunk.css.map → 760.05339a6d.chunk.css.map} +1 -1
- package/build/static/css/8593.9e071d51.chunk.css +2 -0
- package/build/static/css/{8593.af2c0738.chunk.css.map → 8593.9e071d51.chunk.css.map} +1 -1
- package/build/static/css/9556.70a3cd1e.chunk.css +2 -0
- package/build/static/css/{9556.03a44119.chunk.css.map → 9556.70a3cd1e.chunk.css.map} +1 -1
- package/build/static/css/9772.8d2751e2.chunk.css +2 -0
- package/build/static/css/{9772.5679d8ff.chunk.css.map → 9772.8d2751e2.chunk.css.map} +1 -1
- package/build/static/js/{9970.e2e61d37.chunk.js → 1459.8414a709.chunk.js} +2 -2
- package/build/static/js/1459.8414a709.chunk.js.map +1 -0
- package/build/static/js/1873.97366266.chunk.js +2 -0
- package/build/static/js/1873.97366266.chunk.js.map +1 -0
- package/build/static/js/1996.43c56583.chunk.js +2 -0
- package/build/static/js/{1996.4e9f548a.chunk.js.map → 1996.43c56583.chunk.js.map} +1 -1
- package/build/static/js/{206.3de15e94.chunk.js → 206.e45bcafe.chunk.js} +2 -2
- package/build/static/js/{206.3de15e94.chunk.js.map → 206.e45bcafe.chunk.js.map} +1 -1
- package/build/static/js/254.63aae880.chunk.js +2 -0
- package/build/static/js/254.63aae880.chunk.js.map +1 -0
- package/build/static/js/{2628.d29d9c42.chunk.js → 2628.fe190305.chunk.js} +2 -2
- package/build/static/js/{2628.d29d9c42.chunk.js.map → 2628.fe190305.chunk.js.map} +1 -1
- package/build/static/js/{3652.944d30b5.chunk.js → 3652.b9371077.chunk.js} +2 -2
- package/build/static/js/{3652.944d30b5.chunk.js.map → 3652.b9371077.chunk.js.map} +1 -1
- package/build/static/js/3771.ec95465a.chunk.js +2 -0
- package/build/static/js/{3771.a54f2121.chunk.js.map → 3771.ec95465a.chunk.js.map} +1 -1
- package/build/static/js/{3790.6d55e2e6.chunk.js → 3790.060aa7a3.chunk.js} +2 -2
- package/build/static/js/{3790.6d55e2e6.chunk.js.map → 3790.060aa7a3.chunk.js.map} +1 -1
- package/build/static/js/3856.432dc814.chunk.js +2 -0
- package/build/static/js/3856.432dc814.chunk.js.map +1 -0
- package/build/static/js/{3874.f2b57404.chunk.js → 3874.a5dec826.chunk.js} +3 -3
- package/build/static/js/{3874.f2b57404.chunk.js.map → 3874.a5dec826.chunk.js.map} +1 -1
- package/build/static/js/3880.a1d199f0.chunk.js +3 -0
- package/build/static/js/3880.a1d199f0.chunk.js.map +1 -0
- package/build/static/js/{4244.97f18548.chunk.js → 4244.0be65c8a.chunk.js} +2 -2
- package/build/static/js/{4244.97f18548.chunk.js.map → 4244.0be65c8a.chunk.js.map} +1 -1
- package/build/static/js/{4277.cd72ea5a.chunk.js → 4277.11b10227.chunk.js} +2 -2
- package/build/static/js/{4277.cd72ea5a.chunk.js.map → 4277.11b10227.chunk.js.map} +1 -1
- package/build/static/js/4474.96023b8f.chunk.js +2 -0
- package/build/static/js/4474.96023b8f.chunk.js.map +1 -0
- package/build/static/js/{4666.16483cd2.chunk.js → 4666.4a8f5ff8.chunk.js} +3 -3
- package/build/static/js/{4666.16483cd2.chunk.js.map → 4666.4a8f5ff8.chunk.js.map} +1 -1
- package/build/static/js/5050.54a71fc5.chunk.js +2 -0
- package/build/static/js/5050.54a71fc5.chunk.js.map +1 -0
- package/build/static/js/5195.a3379c71.chunk.js +2 -0
- package/build/static/js/{5195.5958f585.chunk.js.map → 5195.a3379c71.chunk.js.map} +1 -1
- package/build/static/js/{6763.6ecec794.chunk.js → 6763.72b945ab.chunk.js} +2 -2
- package/build/static/js/{6763.6ecec794.chunk.js.map → 6763.72b945ab.chunk.js.map} +1 -1
- package/build/static/js/{6980.2d8d9b05.chunk.js → 6980.705a3c6b.chunk.js} +2 -2
- package/build/static/js/6980.705a3c6b.chunk.js.map +1 -0
- package/build/static/js/{7227.817dca51.chunk.js → 7227.431972d7.chunk.js} +3 -3
- package/build/static/js/{7227.817dca51.chunk.js.map → 7227.431972d7.chunk.js.map} +1 -1
- package/build/static/js/7451.ce7c7b67.chunk.js +2 -0
- package/build/static/js/7451.ce7c7b67.chunk.js.map +1 -0
- package/build/static/js/{760.aa502ab7.chunk.js → 760.7902a1fa.chunk.js} +2 -2
- package/build/static/js/{760.aa502ab7.chunk.js.map → 760.7902a1fa.chunk.js.map} +1 -1
- package/build/static/js/8593.e449163b.chunk.js +2 -0
- package/build/static/js/{8593.c71fdb1b.chunk.js.map → 8593.e449163b.chunk.js.map} +1 -1
- package/build/static/js/8601.80fb78c5.chunk.js +2 -0
- package/build/static/js/{8601.59faf931.chunk.js.map → 8601.80fb78c5.chunk.js.map} +1 -1
- package/build/static/js/8985.91d0d311.chunk.js +2 -0
- package/build/static/js/8985.91d0d311.chunk.js.map +1 -0
- package/build/static/js/{9556.2e156d19.chunk.js → 9556.42c26cc9.chunk.js} +3 -3
- package/build/static/js/{9556.2e156d19.chunk.js.map → 9556.42c26cc9.chunk.js.map} +1 -1
- package/build/static/js/9772.a0ee20e4.chunk.js +2 -0
- package/build/static/js/9772.a0ee20e4.chunk.js.map +1 -0
- package/build/static/js/982.bc112982.chunk.js +2 -0
- package/build/static/js/982.bc112982.chunk.js.map +1 -0
- package/build/static/js/main.6d932b9d.js +2 -0
- package/build/static/js/main.6d932b9d.js.map +1 -0
- package/package.json +3 -3
- package/build/static/css/1996.73c1014c.chunk.css +0 -2
- package/build/static/css/206.c1bdf843.chunk.css +0 -2
- package/build/static/css/206.c1bdf843.chunk.css.map +0 -1
- package/build/static/css/254.6dec53cd.chunk.css +0 -2
- package/build/static/css/2628.d136a46c.chunk.css +0 -2
- package/build/static/css/3652.013c22d2.chunk.css +0 -2
- package/build/static/css/3771.b1c03973.chunk.css +0 -2
- package/build/static/css/3874.7ae6ce5f.chunk.css +0 -2
- package/build/static/css/4244.5f6cbbe4.chunk.css +0 -2
- package/build/static/css/4244.5f6cbbe4.chunk.css.map +0 -1
- package/build/static/css/4666.7c8684be.chunk.css +0 -2
- package/build/static/css/4741.00a83f14.chunk.css +0 -2
- package/build/static/css/5195.e9ba9346.chunk.css +0 -2
- package/build/static/css/5195.e9ba9346.chunk.css.map +0 -1
- package/build/static/css/6763.eff867ac.chunk.css +0 -2
- package/build/static/css/6980.5d03c062.chunk.css +0 -12
- package/build/static/css/7227.7b15d7f0.chunk.css +0 -2
- package/build/static/css/760.9defadb0.chunk.css +0 -2
- package/build/static/css/8593.af2c0738.chunk.css +0 -2
- package/build/static/css/9556.03a44119.chunk.css +0 -2
- package/build/static/css/9772.5679d8ff.chunk.css +0 -2
- package/build/static/js/1873.9c07c301.chunk.js +0 -2
- package/build/static/js/1873.9c07c301.chunk.js.map +0 -1
- package/build/static/js/1996.4e9f548a.chunk.js +0 -2
- package/build/static/js/254.7b6e3737.chunk.js +0 -2
- package/build/static/js/254.7b6e3737.chunk.js.map +0 -1
- package/build/static/js/2658.a16b6521.chunk.js +0 -3
- package/build/static/js/2658.a16b6521.chunk.js.map +0 -1
- package/build/static/js/3363.2494939f.chunk.js +0 -2
- package/build/static/js/3363.2494939f.chunk.js.map +0 -1
- package/build/static/js/3771.a54f2121.chunk.js +0 -2
- package/build/static/js/3856.ff96180c.chunk.js +0 -2
- package/build/static/js/3856.ff96180c.chunk.js.map +0 -1
- package/build/static/js/4474.c44a62f4.chunk.js +0 -2
- package/build/static/js/4474.c44a62f4.chunk.js.map +0 -1
- package/build/static/js/5050.68be25a3.chunk.js +0 -2
- package/build/static/js/5050.68be25a3.chunk.js.map +0 -1
- package/build/static/js/5195.5958f585.chunk.js +0 -2
- package/build/static/js/6980.2d8d9b05.chunk.js.map +0 -1
- package/build/static/js/7451.884b870f.chunk.js +0 -2
- package/build/static/js/7451.884b870f.chunk.js.map +0 -1
- package/build/static/js/8593.c71fdb1b.chunk.js +0 -2
- package/build/static/js/8601.59faf931.chunk.js +0 -2
- package/build/static/js/8985.5c4702fd.chunk.js +0 -2
- package/build/static/js/8985.5c4702fd.chunk.js.map +0 -1
- package/build/static/js/9772.534baf7f.chunk.js +0 -2
- package/build/static/js/9772.534baf7f.chunk.js.map +0 -1
- package/build/static/js/9970.e2e61d37.chunk.js.map +0 -1
- package/build/static/js/main.88573d18.js +0 -2
- package/build/static/js/main.88573d18.js.map +0 -1
- /package/build/static/js/{3874.f2b57404.chunk.js.LICENSE.txt → 3874.a5dec826.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2658.a16b6521.chunk.js.LICENSE.txt → 3880.a1d199f0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.16483cd2.chunk.js.LICENSE.txt → 4666.4a8f5ff8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.817dca51.chunk.js.LICENSE.txt → 7227.431972d7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.2e156d19.chunk.js.LICENSE.txt → 9556.42c26cc9.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3363],{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=3363.2494939f.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3363.2494939f.chunk.js","mappings":"qIAAA,IAAIA,EAAQC,EAAQ,OAChBC,EAAWD,EAAQ,OACnBE,EAAU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AAQC,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":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>H,TabsModal:()=>B,TabsModalButton:()=>I,default:()=>S,useConfirmModal:()=>k,useModal:()=>K,useTabsModal:()=>D});var l=t(89379),n=t(53986),s=t(73884),i=t(55199),r=t(83136),a=t.n(r);const c={modal:"style_modal__Pm3cF__WOFK8",large:"style_large__iaqVE__WOFK8","modal-body-inner":"style_modal-body-inner__4PhpA__WOFK8","modal-title":"style_modal-title__dswaw__WOFK8","modal-outer":"style_modal-outer__r3SkX__WOFK8","modal-body":"style_modal-body__jQJSI__WOFK8","right-options-modal":"style_right-options-modal__FajDP__WOFK8","right-options-row":"style_right-options-row__-mPb9__WOFK8","right-options-col":"style_right-options-col__3ilee__WOFK8","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__WOFK8",content:"style_content__k6MIF__WOFK8","modal-footer":"style_modal-footer__-prbN__WOFK8","modal-close":"style_modal-close__Oa5Kl__WOFK8","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__WOFK8","is-danger":"style_is-danger__H5110__WOFK8",title:"style_title__orTym__WOFK8","has-title":"style_has-title__qy0Wp__WOFK8"},d=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var m=t(47458),h=t(64671);const p=(e,o)=>"function"===typeof e?e(o):e;var u=t(81014),_=t(17342),f=t(70579);const g=["ButtonComponent","onClick","autoClose","display"],y=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],C=["size"],A=["children"],b=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],j="Modal",x=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,f.jsxs)(i.Row,{wrap:!1,className:c["right-options-row"],children:[(0,f.jsx)(i.Col,{span:24-t,className:c["right-options-col"],children:l}),(0,f.jsx)(i.Col,{span:t,className:c["right-options-col"],children:o})]}):l},w=(e,o)=>"".concat(e-48-(o?58:0),"px"),O=e=>{let{footer:o,footerButtons:t,onConfirm:r,onCancel:a,onClose:c,targetProps:h}=e;return(0,f.jsxs)(i.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(i.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,f.jsx)(i.Col,{children:(0,f.jsx)(i.Space,{children:(t||[{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:j,children:(0,f.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:j})}),onClick:a},{type:"primary",children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:j,children:(0,f.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:j})}),onClick:r}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,o)=>{let{ButtonComponent:t,onClick:i,autoClose:r=!0,display:a}=e,d=(0,n.A)(e,g);const m=t||u.default;return(0,s.createElement)(m,(0,l.A)((0,l.A)({},d),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(i&&i(...o,h));return r&&!1!==l&&c&&c(),l}}))})})})]})},N=e=>{let{title:o,footer:t,disabledScroller:l,footerButtons:n,onClose:r,closable:d,onConfirm:m,onCancel:p,children:u,targetProps:g}=e;const y=(0,s.useRef)(null);return(0,f.jsxs)("div",{className:a()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,f.jsx)(i.Button,{"data-testid":"components-core-modal-close-btn",className:a()(c["modal-close"],"modal-close"),type:"text",icon:(0,f.jsx)(h.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),r&&r()}}),o&&(0,f.jsx)("div",{className:c["modal-title"],children:o}),(0,f.jsx)(_.A,{className:a()(c["modal-body"],{[c["is-disabled-scroller"]]:l},"modal-body"),ref:y,children:(0,f.jsx)("div",{className:a()(c["modal-body-inner"],"modal-body-inner"),children:u})}),null!==t||n?(0,f.jsx)("div",{className:a()(c["modal-footer"],"modal-footer"),children:(0,f.jsx)(O,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:g})}):null]})},v=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:s,onClose:i,onConfirm:r,onCancel:a,footer:c,rightOptions:d,rightSpan:m,disabledScroller:h,childrenRef:u,children:_}=e;const g=e=>(e=Object.assign({},{title:n},e),(0,f.jsx)(N,{title:p(e.title,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),closable:s,onClose:i,onConfirm:r,onCancel:a,footerButtons:p(t,(0,l.A)((0,l.A)({},e),{},{close:i})),disabledScroller:h,footer:p(c,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),targetProps:Object.assign({},e,{childrenRef:u,close:i}),children:(0,f.jsx)(x,{rightSpan:m,options:p(d,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),children:p(_,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i}))})}));return"function"===typeof o?o(g,{childrenRef:u,close:i}):g({})},F=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:i,footerButtons:r,className:h,size:p,title:u,onClose:_,onConfirm:g,onCancel:C,closable:A,disabledScroller:b,withDecorator:j,childrenRef:x}=e,O=(0,n.A)(e,y);return(0,l.A)((0,l.A)((0,l.A)({},O),{},{icon:null,centered:!0,title:null,maskClosable:!!O.hasOwnProperty("maskClosable")&&O.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:_,className:a()(h,c.modal,c[p],{[c["right-options-modal"]]:t})},((e,o)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":w(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":w(300,o)}}:{width:"1000px",style:{"--min-modal-height":w(500,o)}})(p,!(null===i&&!r))),{},{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:"Modal",children:v({withDecorator:j,title:u,closable:A,onClose:_,onConfirm:g,onCancel:C,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:b,children:o,childrenRef:x})})})},K=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=F((0,l.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,n.A)(i,A),{destroy:c}=e.info((0,l.A)((0,l.A)({},a),{},{content:r}));return s.close=c,s}},k=()=>{const{modal:e}=i.App.useApp();return o=>{const t={},s=(0,l.A)({onClose:()=>t.close(),maskClosable:!1},o),{type:r,icon:d,title:m,danger:p,wrapClassName:u,message:_,iconSetting:g={},confirmType:y="info"}=s,C=(0,n.A)(s,b),A=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},g);if(e[r]){const{destroy:o}=e[r]((0,l.A)((0,l.A)({},C),{},{icon:null,wrapClassName:a()(c["confirm-modal-wrap"],u,{[c["is-danger"]]:p}),title:(0,f.jsx)(i.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:m&&(0,f.jsxs)(i.Space,{size:0,align:"start",className:c.title,children:[p?(0,f.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||A["confirm"===r?y:r]}):null,m]})}),content:(0,f.jsxs)(i.Space,{size:0,align:"start",className:a()(c.content,{[c["has-title"]]:m}),children:[!m&&p?(0,f.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||A["confirm"===r?y:r]}):null,_]})}));t.close=o}return t}},S=e=>{let{size:o="default"}=e,t=(0,n.A)(e,C);const r=(0,s.useRef)(null);return(0,f.jsx)(i.Modal,(0,l.A)({},F(Object.assign({},t,{size:o,childrenRef:r}))))},P=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],W=["withDecorator"],R=["children"],M=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,P);return(0,l.A)((0,l.A)({},m),{},{className:a()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,f.jsx)(i.Tabs,{items:o.map(o=>{let{withDecorator:l}=o,s=(0,n.A)(o,W);return Object.assign({},s,{children:"function"===typeof l?l(o=>e(Object.assign({},t,o,{children:s.children}))):e(Object.assign({},t,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof r?r(t):t()},children:e=>{let{children:o}=e,t=(0,n.A)(e,R);return"function"===typeof o?o(t):o}})},B=e=>(0,f.jsx)(S,(0,l.A)({},M(e))),D=()=>{const e=K();return o=>e(M(o))};var z=t(73025);const T=["modalProps"],I=e=>{const o=D();return e.api?(0,f.jsx)(z.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o})):(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},e),{},{onClick:()=>{o(e.modalProps)}}))},H=e=>{const o=K();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,T);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(z.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o}))}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(34581),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=3771.a54f2121.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>z,TabsModal:()=>M,TabsModalButton:()=>E,default:()=>K,useConfirmModal:()=>W,useModal:()=>w,useTabsModal:()=>T});var a=n(89379),l=n(53986),s=n(73884),r=n(55199),o=n(83136),i=n.n(o);const c={modal:"style_modal__Pm3cF__WOFK8",large:"style_large__iaqVE__WOFK8","modal-body-inner":"style_modal-body-inner__4PhpA__WOFK8","modal-title":"style_modal-title__dswaw__WOFK8","modal-outer":"style_modal-outer__r3SkX__WOFK8","modal-body":"style_modal-body__jQJSI__WOFK8","right-options-modal":"style_right-options-modal__FajDP__WOFK8","right-options-row":"style_right-options-row__-mPb9__WOFK8","right-options-col":"style_right-options-col__3ilee__WOFK8","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__WOFK8",content:"style_content__k6MIF__WOFK8","modal-footer":"style_modal-footer__-prbN__WOFK8","modal-close":"style_modal-close__Oa5Kl__WOFK8","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__WOFK8","is-danger":"style_is-danger__H5110__WOFK8",title:"style_title__orTym__WOFK8","has-title":"style_has-title__qy0Wp__WOFK8"},d=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var u=n(47458),p=n(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=n(81014),_=n(17342),g=n(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],A=["size"],y=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],C="Modal",j=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-n,className:c["right-options-col"],children:a}),(0,g.jsx)(r.Col,{span:n,className:c["right-options-col"],children:t})]}):a},b=(e,t)=>"".concat(e-48-(t?58:0),"px"),N=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:i,onClose:c,targetProps:p}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(n||[{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:i},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:C})}),onClick:o}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:o=!0,display:i}=e,d=(0,l.A)(e,f);const u=n||h.default;return(0,s.createElement)(u,(0,a.A)((0,a.A)({},d),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(r&&r(...t,p));return o&&!1!==a&&c&&c(),a}}))})})})]})},O=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:l,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:f}=e;const x=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:i()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:i()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(_.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:a},"modal-body"),ref:x,children:(0,g.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==n||l?(0,g.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(N,{footer:n,footerButtons:l,onConfirm:u,onCancel:m,onClose:o,targetProps:f})}):null]})},S=e=>{let{withDecorator:t,footerButtons:n,title:l,closable:s,onClose:r,onConfirm:o,onCancel:i,footer:c,rightOptions:d,rightSpan:u,disabledScroller:p,childrenRef:h,children:_}=e;const f=e=>(e=Object.assign({},{title:l},e),(0,g.jsx)(O,{title:m(e.title,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),closable:s,onClose:r,onConfirm:o,onCancel:i,footerButtons:m(n,(0,a.A)((0,a.A)({},e),{},{close:r})),disabledScroller:p,footer:m(c,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),targetProps:Object.assign({},e,{childrenRef:h,close:r}),children:(0,g.jsx)(j,{rightSpan:u,options:m(d,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),children:m(_,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r}))})}));return"function"===typeof t?t(f,{childrenRef:h,close:r}):f({})},F=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:_,onConfirm:f,onCancel:A,closable:y,disabledScroller:v,withDecorator:C,childrenRef:j}=e,N=(0,l.A)(e,x);return(0,a.A)((0,a.A)((0,a.A)({},N),{},{icon:null,centered:!0,title:null,maskClosable:!!N.hasOwnProperty("maskClosable")&&N.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:_,className:i()(p,c.modal,c[m],{[c["right-options-modal"]]:n})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":b(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":b(300,t)}}:{width:"1000px",style:{"--min-modal-height":b(500,t)}})(m,!(null===r&&!o))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:S({withDecorator:C,title:h,closable:y,onClose:_,onConfirm:f,onCancel:A,footer:r,footerButtons:o,rightOptions:n,rightSpan:s,disabledScroller:v,children:t,childrenRef:j})})})},w=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},r=F((0,a.A)({onClose:()=>s.close(),childrenRef:t},n)),{children:o}=r,i=(0,l.A)(r,y),{destroy:c}=e.info((0,a.A)((0,a.A)({},i),{},{content:o}));return s.close=c,s}},W=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},s=(0,a.A)({onClose:()=>n.close(),maskClosable:!1},t),{type:o,icon:d,title:u,danger:m,wrapClassName:h,message:_,iconSetting:f={},confirmType:x="info"}=s,A=(0,l.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]((0,a.A)((0,a.A)({},A),{},{icon:null,wrapClassName:i()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,g.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,_]})}));n.close=t}return n}},K=e=>{let{size:t="default"}=e,n=(0,l.A)(e,A);const o=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,a.A)({},F(Object.assign({},n,{size:t,childrenRef:o}))))},L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],P=["withDecorator"],I=["children"],k=e=>{let{items:t,className:n,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,L);return(0,a.A)((0,a.A)({},u),{},{className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:a}=t,s=(0,l.A)(t,P);return Object.assign({},s,{children:"function"===typeof a?a(t=>e(Object.assign({},n,t,{children:s.children}))):e(Object.assign({},n,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof o?o(n):n()},children:e=>{let{children:t}=e,n=(0,l.A)(e,I);return"function"===typeof t?t(n):t}})},M=e=>(0,g.jsx)(K,(0,a.A)({},k(e))),T=()=>{const e=w();return t=>e(k(t))};var R=n(73025);const D=["modalProps"],E=e=>{const t=T();return e.api?(0,g.jsx)(R.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},z=e=>{const t=w();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,D);return(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,g.jsx)(R.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>U,Eo:()=>V,NR:()=>S,Ay:()=>q});var a=n(55199),l=n(83136),s=n.n(l),r=n(89379),o=n(53986),i=n(30509),c=n(25438),d=n(78784),u=n(33097),p=n.n(u),m=n(34677),h=n.n(m);const _="create-list_scroll-loader__zoaS7__WOFK8",g="create-list_is-popup__t3d-G__WOFK8",f="create-list_is-not-full__FXtX1__WOFK8",x="create-list_search-input__tV3vf__WOFK8",A="create-list_left__EXr3i__WOFK8",y="create-list_list-header__3xeJa__WOFK8",v="create-list_is-modal__BMfya__WOFK8";var C=n(73161),j=n(47458),b=n(70579);const N=["extra"],O=i.A.useContext,S=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:o,setSearchText:i,props:u,mapping:m}=O(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),S=p()(r.requestParams,[N.paramsType,N.current],1),F=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:w}=(0,j.useIntl)({moduleName:"Common"}),W=u.dataFormat(r.data),{right:K,leftBottom:L,leftSpan:P=24}=u,I=1===n.length&&"all"===n[0];return(0,b.jsxs)(a.Row,{wrap:!1,className:K?s()("is-not-full",f):"",children:[(0,b.jsxs)(a.Col,{span:P,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,b.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||w({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,b.jsxs)(a.Flex,{className:s()(y,{[v]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,b.jsxs)(a.Space,{children:[(0,b.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,b.jsx)(a.Typography.Link,{children:I?u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(n.length).concat(u.countUnit||w({id:"items"}))})]}):(0,b.jsx)("div",{}),u.allowSelectAll?(0,b.jsx)("div",{children:(0,b.jsx)(a.Checkbox,{checked:I,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,b.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,b.jsx)("div",{})]}),(0,b.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(_,{[g]:u.isPopup}),noMore:!W.total||S*F>=W.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:F,[N.current]:S+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:n,setValue:l,list:W.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:I,onSelect:e=>{if(u.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}},a=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:a})):a})()}),L&&L({fetchApi:r,value:n,mapping:m})]}),K&&K({value:n,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,n=(0,o.A)(e,N);return(0,b.jsx)(i.A,(0,r.A)((0,r.A)({},n),{},{extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,b.jsx)(l,{value:t,setValue:n})}}))};return u.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),u},F="list_list__TGynD__WOFK8",w="list_list-item__WSswf__WOFK8",W="list_is-selected__6Wkgt__WOFK8",K="list_item-label__bYzhe__WOFK8",L="list_item-des__2nsEn__WOFK8",P="list_is-disabled__qxCvO__WOFK8",I="list_is-selected-all__Mp-hG__WOFK8";var k=n(40438),M=n(64671);const T="user_list-inner__V508e__WOFK8",R="user_list-info__y2nWo__WOFK8",D="user_selected-icon__9OQJL__WOFK8",E="user_item-des__o+7UR__WOFK8",z="user_is-selected-all__2q0VZ__WOFK8",V=S({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:o}=e;return(0,b.jsx)(a.List,{size:"small",className:s()(F,{[I]:o,[z]:o}),dataSource:t,renderItem:e=>{const t=l(e);return(0,b.jsx)(a.List.Item,{className:s()(w,{[W]:t}),onClick:()=>n(e),children:(0,b.jsxs)(a.Row,{wrap:!1,align:"middle",className:T,children:[(0,b.jsx)(a.Col,{children:(0,b.jsx)(k.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,b.jsx)(a.Col,{className:R,flex:1,children:(0,b.jsxs)(a.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:K,children:e.label}),e.description&&(0,b.jsx)("span",{className:E,children:e.description})]})}),(0,b.jsx)(a.Col,{children:o||t?(0,b.jsx)(M.default,{className:D,type:"icon-gouxuan"}):null})]})})}})}}),B={"is-selected-all":"table_is-selected-all__IwXUY__WOFK8"},U=S({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,b.jsx)(a.Table,{className:s()(B.list,F,{[I]:c,[B["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=S({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,b.jsx)(a.List,{className:s()(F,i,{[I]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,b.jsxs)(a.List.Item,{className:s()(w,{[W]:t.single&&i,[P]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,b.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,b.jsx)(a.Col,{children:(0,b.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,b.jsx)(a.Col,{children:(0,b.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,b.jsx)("span",{className:K,children:e.label}),e.description&&(0,b.jsx)("span",{className:L,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(34581),l=n.n(a);n(46733);const s=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>y,Ay:()=>f,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var a=n(89379),l=n(53986),s=n(68827),r=n(55199),o=n(83136),i=n.n(o),c=n(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],_=["className","multiple","accept","onChange","children"],g=["children"],f=e=>t=>{let{className:n,multiple:r,accept:o,onChange:i,children:p}=t,m=(0,l.A)(t,d);return(0,c.jsx)(s.FileInput,{className:n,multiple:r,accept:o,onChange:i,children:t=>{let{children:n}=t,s=(0,l.A)(t,u);return(0,c.jsxs)(e,(0,a.A)((0,a.A)({},Object.assign({},m,s)),{},{children:[p,n]}))}})},x=e=>{let{children:t}=e,n=(0,l.A)(e,p);return(0,c.jsx)(s.FileInput,(0,a.A)((0,a.A)({},n),{},{buttonText:t}))},A=e=>{let{className:t,multiple:n,accept:o,onChange:i,children:d}=e,u=(0,l.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:n,accept:o,onChange:i,children:e=>{let{children:t}=e,n=(0,l.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,a.A)((0,a.A)({},Object.assign({},u,n)),{},{children:[d,t]}))}})},y=e=>{let{className:t,multiple:n,accept:o,onChange:d,children:u}=e,p=(0,l.A)(e,_);return(0,c.jsx)(s.FileInput,{className:i()(t,"ant-btn"),multiple:n,accept:o,onChange:d,children:e=>{let{children:t}=e,n=(0,l.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,a.A)((0,a.A)({},Object.assign({},p,n)),{},{children:[u,t]}))}})}},18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},21485:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(89379),l=n(53986),s=n(73884),r=n(71298),o=n.n(r),i=n(96418),c=n.n(i),d=n(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)((e,t)=>{let{children:n,onScroll:r,options:i,onReady:p}=e,m=(0,l.A)(e,u);const h=(0,s.useRef)(null),_=(0,s.useRef)(null),g=(0,s.useRef)(i),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>_.current),(0,s.useEffect)(()=>{const e=new(o())(h.current,g.current);return _.current=e.getScrollElement(),_.current.addEventListener("scroll",x),f(_.current),()=>{_.current.removeEventListener("scroll",x)}},[x,f,n]),(0,d.jsx)("div",(0,a.A)((0,a.A)({},m),{},{ref:h,children:n}))})},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__WOFK8","is-popup":"common_is-popup__fJq+g__WOFK8",list:"common_list__TKFzS__WOFK8","list-item":"common_list-item__ASse7__WOFK8","is-selected":"common_is-selected__-PU4Y__WOFK8","item-label":"common_item-label__u+qz1__WOFK8","item-des":"common_item-des__no2z0__WOFK8"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>X});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__WOFK8",overlay:"style_overlay__La5mO__WOFK8",input:"style_input__SpJTE__WOFK8","is-disabled":"style_is-disabled__joxdl__WOFK8","input-icon":"style_input-icon__vVd8R__WOFK8",large:"style_large__En6mL__WOFK8",small:"style_small__DY0AQ__WOFK8","input-inner":"style_input-inner__PWy27__WOFK8","input-custom":"style_input-custom__ktsWD__WOFK8","display-content":"style_display-content__hIKo+__WOFK8","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__WOFK8","selected-tag":"style_selected-tag__zXZZO__WOFK8","selected-tag-list":"style_selected-tag-list__xUIms__WOFK8","selected-tag-inner":"style_selected-tag-inner__Z5gPL__WOFK8","text-inner":"style_text-inner__H24hY__WOFK8",placeholder:"style_placeholder__x0ccE__WOFK8","is-modal":"style_is-modal__JU+uq__WOFK8","overlay-content":"style_overlay-content__WKqp+__WOFK8"};var r=n(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),_=n(33097),g=n.n(_),f=n(55199),x=n(83136),A=n.n(x),y=n(3382),v=n(64671),C=n(79686),j=n.n(C),b=n(41740),N=n.n(b),O=n(74065),S=n.n(O),F=n(21485),w=n(96418),W=n.n(w),K=n(77964),L=n(91176),P=n(47458),I=n(20492),k=n(27047),M=n(70579);const T=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],R=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],D=["setFetchApi","wrapClassName","getContentRef"],E=["api","className","displayItems","wrapClassName"],z=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},V=e=>{let{single:t,value:n,mapping:a,allValue:l,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,M.jsx)("span",{className:s["text-inner"],children:g()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,M.jsx)("span",{className:s["text-inner"],children:r||(0,M.jsx)(P.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=a.get(e);return(0,M.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,M.jsx)("span",{className:s["tag-inner"],children:g()(t,"label")||e})},e)}):null},B=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,T);const[m,h]=(0,u.useState)(n),_=(0,u.useRef)(n),{formatMessage:g}=(0,P.useIntl)({moduleName:"Common"});_.current=n;const[x,A]=(0,u.useState)(!1),v=e=>{var t;A(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=f.App.useApp(),j=z({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(g({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(_.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,M.jsx)(y.default,(0,a.A)((0,a.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{v(!1)},footer:(0,M.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,M.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))}),U=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:_,wrapClassName:g,overlayClassName:x,disabled:y}=e,v=(0,l.A)(e,R);const[C,j]=(0,u.useState)(!1),b=W()(e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{b(!1)}}),[b]),y?(0,M.jsx)("div",{className:s["input-inner"],children:p}):(0,M.jsx)(f.Popover,(0,a.A)((0,a.A)({},v),{},{open:C,onOpenChange:b,transitionName:"ant-slide-up",overlayClassName:A()(s.overlay,x),arrow:!1,content:(0,M.jsxs)("div",{style:_?{"--overlay-width":_}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,M.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&r(e),m&&b(!1)}}):o}),(c||h)&&(0,M.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,M.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,M.jsx)("div",{className:s["input-inner"],children:p})}))}),q=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,D);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:_,props:g,inputWidth:x}=m,[y,C]=h,{formatMessage:j}=(0,P.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:O,placeholder:S,isPopup:w,disabled:K,showSelectedTag:I,extra:k,inputContent:T,allowClear:R,overlayClassName:E}=g,z=(0,u.useRef)(r);z.current=r;const q=W()(a);(0,u.useEffect)(()=>{q(w?p:d)},[w,q]),(0,u.useEffect)(()=>{t(Object.assign({},z.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=V({single:b,value:y,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{C(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),H=e=>{let{value:t,setValue:n}=e;return(0,M.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(P.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,M.jsx)(F.A,{className:s["selected-tag-list"],children:(0,M.jsx)("div",{className:s["selected-tag-inner"],children:V({value:t,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},X=T?T(m):(0,M.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,M.jsx)("div",{children:Q||(0,M.jsx)("span",{className:s.placeholder,children:S||j({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!K&&R?(0,M.jsx)(v.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,M.jsx)(v.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return w?(0,M.jsx)(U,{ref:p,overlayWidth:(0,L.v)(Math.max(x,(0,L.j)(g.overlayWidth))),value:y,setValue:C,single:b,disabled:K,inputContent:X,onOpenChange:g.onOpenChange,overlayClassName:E,extra:"function"===typeof k?k({close:()=>p.current.close(),context:m}):k,renderSelectedContent:H,showSelectedTag:I,trigger:"click",placement:N,getPopupContainer:O,children:g.children}):(0,M.jsxs)("div",{className:s["input-inner"],onClick:()=>{K||d.current.modalOpen()},children:[(0,M.jsx)(B,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],n),title:g.placeholder||j({id:"pleaseSelect"}),value:y,onChange:C,extra:"function"===typeof k?k({close:()=>d.current.close(),context:m}):k,showSelectedTag:I,renderSelectedContent:H,children:g.children}),X]})}),Q=e=>{let{api:t,className:n,displayItems:r,wrapClassName:o}=e,i=(0,l.A)(e,E);const{locale:d}=(0,k.A)(),[p,h]=(0,u.useState)(""),[_,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:y}=(0,P.useIntl)({moduleName:"Common"}),[v,C]=(0,u.useState)(0),b=(0,K.A)(e=>{C(e.clientWidth)}),[O,F]=(0,u.useState)({}),{message:w}=f.App.useApp(),W=e=>{const t=e.filter(e=>_.get(e.value)!==e);0!==t.length&&x(e=>{const n=N()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},L=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(i.single?j()(e)?[]:[e]:e||[],W,i.valueType),[I,T]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,_,i.valueType);i.onChange&&i.onChange(i.single?S()(t):t)}},"value"in i?{value:L(i.value)}:{defaultValue:L(i.defaultValue)})),R=z({maxLength:i.maxLength,single:i.single,setValue:T,value:I,message:()=>w.error(y({id:"maxSelectedCount"},{count:i.maxLength}))}),D=(0,u.useRef)(null);return(0,M.jsx)(c,{value:{inputWidth:v,mapping:_,searchText:p,setSearchText:h,appendMapping:W,setItems:e=>{O.setData(e),W(g()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>D.current,fetchApi:O,valueState:[I,R],props:i},children:(0,M.jsx)("div",{ref:b,className:A()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},n),children:(0,M.jsx)(q,(0,a.A)((0,a.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:F,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{W(g()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,P.createWithIntl)({importMessages:I.A,moduleName:"Common"})(Q);H.useContext=i;const X=H},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(89379),l=n(53986),s=n(87558),r=n.n(s),o=n(97211),i=n(64671),c=n(83136),d=n.n(c),u=n(55199),p=n(73884);const m=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",()=>{e(n)}),a.addEventListener("error",e=>{t(e)})})},h="style_img-outer__4QLY5__WOFK8",_="style_img__PSExq__WOFK8",g="style_loading__WCOwA__WOFK8",f="style_error__+ECgZ__WOFK8";var x=n(18411),A=n(63743),y=n(70579);const v=["id","src","alt","onClick","loading","error","className","apis"],C=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:t,className:n,alt:a,innerLoading:l,loading:s=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:h,staticUrl:g}=e;const{staticUrl:f}=(0,A.usePreset)(),x=g||f||"";return(0,y.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:x+t},error:c||o,loading:l||s,render:e=>{let{data:t}=e;return"function"===typeof p?p({alt:a,className:d()(n,_),src:t}):(0,y.jsx)("img",{alt:a,className:d()(n,_),src:t,onClick:h})}})},b=(0,o.A)(j),N=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:g}),u=n&&(0,p.cloneElement)(n,{className:f});return a?(0,y.jsx)(j,{alt:s,className:r,data:a,loading:d,error:u,onClick:c,children:o}):l?(0,y.jsx)(b,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:u,innerError:u,apis:i,onClick:c,children:o}):u},O=e=>{let{id:t,src:n,alt:s,onClick:r,loading:o=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:m}=e,_=(0,l.A)(e,v);return(0,y.jsx)("div",(0,a.A)((0,a.A)({},_),{},{"data-testid":"components-core-image",className:d()(p,h),children:N({loading:o,error:c,src:n,id:t,alt:s,className:p,apis:m,onClick:r})}))};O.Avatar=e=>{let{id:t,src:n,alt:s,gender:r,loading:o=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:m,icon:_,children:g,shape:f,size:A=100,width:v,height:j,defaultAvatar:b=x.A,apis:O}=e,S=(0,l.A)(e,C);const F=(()=>{const e=v&&j?{style:{width:v,height:j}}:{size:A};if(v&&v!==j&&(f="square"),t||n)return N({loading:o,error:c,src:n,defaultAvatar:b,id:t,alt:s,className:p,apis:O,children:t=>(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},t),{},{gap:m,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},S),{},{src:(0,y.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:f},e))}return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)((0,a.A)({},S),{},{gap:m,icon:_,shape:f,size:A,src:b},e),{},{children:g}))})();return(0,y.jsx)("div",(0,a.A)((0,a.A)({},S),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:v&&j?v:A,height:v&&j?j:A},children:F}))};const S=O},41654:(e,t,n)=>{n.d(t,{A:()=>f,K:()=>g});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),o=n(33097),i=n.n(o),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m=()=>n.e(719).then(n.t.bind(n,10719,19)).then(e=>e.__esModule?e.default:e),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},_=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return n}},u.functionData)}))};_.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},_.defaultData=m;const g=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.functionData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};_.FunctionEnum=_.Enum=g;const f=_},43856:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>A.A,UserField:()=>h.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>m.LH,createDeferred:()=>j(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>b.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>y.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(78784),i=n(73025),c=n(17342),d=n(73161),u=n(30509),p=n(17508),m=n(93761),h=n(12392),_=n(60586),g=n(45776),f=n(41654),x=n(53392),A=n(89319),y=n(77964),v=n(81348),C=n(1582),j=n.n(C),b=n(55490),N=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>I,ON:()=>g,Ay:()=>E});var a=n(53986),l=n(89379),s=n(30509),r=n(73884),o=n(96418),i=n.n(o),c=n(55199),d=n(64671),u=n(73161),p=n(33097),m=n.n(p),h=n(79686),_=n.n(h);const g=e=>{const t=Array.from(e.values()),n=t.filter(e=>null===e.parentId),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach(e=>{a(e.id)}))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:_()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(_()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map(n=>{const a=t.filter(e=>e.parentId===n.id);return Object.assign({},n,{children:e(a)})}):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find(t=>t.children&&e.children.length>0)||m()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||_()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(m()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>n.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!a(e.id)):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach(e=>{a(n,e.id)});const i=r(t),c=i.every(e=>n.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{a(n,e.id)}),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&n.push(e.id)}),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var f=n(74065),x=n.n(f),A=n(19853),y=n.n(A),v=n(17342),C=n(83136),j=n.n(C);const b={content:"style_content__Hxlt9__WOFK8",columns:"style_columns__FmtPF__WOFK8","content-item":"style_content-item__i6HCO__WOFK8","last-level-area":"style_last-level-area__2y7jQ__WOFK8","is-popup":"style_is-popup__+r3Mn__WOFK8",menu:"style_menu__WZUVE__WOFK8","scroll-plus-box":"style_scroll-plus-box__QcTst__WOFK8","menu-label":"style_menu-label__iGt0Z__WOFK8","menu-item":"style_menu-item__hXHfm__WOFK8","checkbox-hidden":"style_checkbox-hidden__Xpx7J__WOFK8",loading:"style_loading__ZwrVe__WOFK8"};var N=n(87558),O=n(47458),S=n(25438),F=n(70579),w=n(27047);const W=["data","name","type","cache","children","getLabel"],K=new Map,L=(0,N.withFetch)(e=>{let{data:t,name:n,type:s,cache:o,children:i,getLabel:c}=e,d=(0,a.A)(e,W);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(n);return K.set("".concat(n,"_").concat(s),u),i(u,d)}),P=e=>{const{locale:t}=(0,w.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=K.get(n);return a&&!e.force?e.children(a):(0,F.jsx)(L,(0,l.A)({},e))};P.defaultProps={children:e=>m()(e,"label","")};const I=P,k=["maxLength","nodeFormat","dataFormat"],M=s.A.useContext,T=(0,N.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,F.jsx)(v.A,{className:b["scroll-plus-box"],children:(0,F.jsx)(c.List,{className:S.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,F.jsx)(c.List.Item,{className:j()(S.A["list-item"],{[S.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,F.jsx)("span",{className:S.A["item-label"],children:e.label})})}})})}),R=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:o,props:p}=M(),[h,_]=(0,r.useState)(""),f=i()(p.dataFormat),{formatMessage:A}=(0,O.useIntl)({moduleName:"Common"}),C=o.data,N=(0,r.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),w=(0,r.useMemo)(()=>g(N),[N]),W=(0,r.useRef)({});W.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[K,L]=(0,r.useState)(()=>{const e=t.find(e=>!!N.get(e));return w.getSelectedQueue(e||m()(o.data.find(e=>e.children&&e.children.length>0),"id")||m()(o.data,"[0].id"),N)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=W.current;if(!e)return;const s=N.get(x()(K));if(!s)return;const r=l.getSelectedQueue(s.id);y()(K,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):L(r)},[K,N]);const P=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();s.length>a?c.message.error(A({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[x()(s)]:s)},I=e=>{const t=N.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},k=!p.openLoadData&&"function"===typeof p.onSearch,R=k&&h&&(0,F.jsx)(T,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:N})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{P(!t,e.id),!t&&L(w.getSelectedQueue(e.id,N)),_("")}});return(0,F.jsxs)("div",{className:j()(b.content,{[b["is-popup"]]:p.isPopup,[b["has-search"]]:k}),style:{"--menu-item-width":p.menuItemWidth},children:[k&&(0,F.jsx)(u.A,{isPopup:p.isPopup,className:j()(S.A["search-input"],{[S.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||A({id:"search"}),value:h,onSearch:e=>{_(e)}}),R||(0,F.jsx)("div",{children:(0,F.jsx)(v.A,{className:b.scroller,options:{autoHide:!1},children:(0,F.jsxs)("div",{className:b.columns,children:[K.map((e,n)=>{const a=N.get(e),o=w.getSiblingNode(e),i=!I(null===a||void 0===a?void 0:a.id)&&n>0;return(0,F.jsx)(v.A,{className:j()(b["content-item"],{[b["last-level-area"]]:i}),children:i?(0,F.jsx)(c.Space,{wrap:!0,children:o.map(e=>(0,r.createElement)(c.Checkbox,(0,l.A)((0,l.A)({},w.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>P(t.target.checked,e.id)}),e.label))}):(0,F.jsx)(c.Menu,{className:j()(b.menu),onSelect:e=>{const n=N.get(e.key);if(n)if(I(n.id))L(w.getSelectedQueue(n.id,N));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);P(!e,n.id)}},selectedKeys:n===K.length-1?[]:K,items:o.map(e=>({key:e.id,label:(0,F.jsxs)(c.Space,{className:j()(b["menu-item"],{[b["checkbox-hidden"]]:p.onlyAllowLastLevel&&I(e.id)}),children:[!p.onlyAllowLastLevel&&(0,F.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},w.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>P(t.target.checked,e.id)})),(0,F.jsx)("div",{className:b["menu-label"],children:e.label}),I(e.id)&&(0,F.jsx)(d.default,{className:b["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},m()(o,"[0].id",n))}),o.isComplete?null:(0,F.jsx)("div",{className:b.loading,children:(0,F.jsx)(c.Spin,{size:"small"})})]})})})]})},D=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,o=(0,a.A)(e,k);return(0,F.jsx)(s.A,(0,l.A)((0,l.A)({},o),{},{dataFormat:e=>r(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,F.jsx)(R,(0,l.A)((0,l.A)({},o),{},{size:t,value:n,setValue:a}))}}))};D.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a})))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map(t=>t.id===e?Object.assign({},t,{children:n&&n.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t);return a(t)}};const E=D},53392:(e,t,n)=>{n.d(t,{A:()=>g,W:()=>_});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),o=n(33097),i=n.n(o),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then(e=>e.__esModule?e.default:e)},h=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return n}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const _=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.industryData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=_;const g=h},55490:(e,t,n)=>{n.d(t,{A:()=>a.isNotEmpty});var a=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>x,$9:()=>A,Ay:()=>f});var a=n(89379),l=n(73884),s=n(37705),r=n.n(s),o=n(3382),i=n(40438),c=n(55199);const d="style_select-list-item-description__ndJSX__WOFK8",u="style_select-list-item-label__gyGnt__WOFK8",p="style_select-list-item-content__2VJnt__WOFK8";var m=n(83136),h=n.n(m),_=(n(96316),n(70579));const g=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,_.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==n.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:n,onOpenChange:a,value:l,onComplete:r}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,_.jsx)(o.default,{title:i,open:n,onClose:()=>{a(!1)},footer:d&&(0,_.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(l)},children:c(e)})}},e);return(0,_.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))}),f=g,x=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:e=>{const{props:t,open:n,value:a,onOpenChange:l,onComplete:s}=e,{placeholder:r,children:i,onConfirm:c}=t;return(0,_.jsx)(o.default,{title:r,open:n,onClose:()=>{l(!1)},onConfirm:()=>{if(s(),"function"===typeof c)return c(a)},children:i(e)})}},e);return(0,_.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),A=(0,l.forwardRef)((e,t)=>(0,_.jsx)(g,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l,avatarKey:s,descriptionKey:r}=n,o=t[s||"avatar"];return(0,_.jsxs)(c.Flex,{gap:8,children:[(0,_.jsx)(i.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},"string"===typeof o?{id:o}:o)),{},{size:32,gender:"M"})),(0,_.jsxs)(c.Flex,{vertical:!0,gap:8,className:p,children:[(0,_.jsx)("div",{className:h()(u,"select-list-item-label"),children:t[l]}),t[r||"description"]&&(0,_.jsx)("div",{className:h()(d,"select-list-item-description"),children:t[r||"description"]})]})]})}})))},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(89379),l=n(53986),s=n(55199),r=n(83136),o=n.n(r);const i="style_search-input__8aH1G__WOFK8",c="style_is-popup__L0973__WOFK8";var d=n(64671),u=n(73884),p=n(51941),m=n(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],_=e=>{let{value:t,debounce:n=500,onSearch:r,isPopup:_,placeholder:g,className:f}=e,x=(0,l.A)(e,h);const[A,y]=(0,u.useState)(t),v=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,n);return(0,u.useEffect)(()=>{t!==v.current&&(y(t),v.current=t)},[t]),(0,m.jsx)(s.Input.Search,(0,a.A)((0,a.A)({},x),{},{allowClear:!0,className:o()(f,i,{[c]:_}),value:A,placeholder:g,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;v.current=t,y(t),C(t)},onSearch:e=>{C(e)}}))}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}},[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var a=n(95183),l=n.n(a);n.o(a,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return a.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>a.computedAccept});var a=n(68827)},89319:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(89379),l=n(20454),s=n(55199),r=n(10986),o=n.n(r),i=n(57469),c=n.n(i),d=n(20492),u=n(47458),p=n(70579);const m=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,l.A)(e),e));const{formatMessage:n}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[i,d]=o()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===i||void 0===i?void 0:i.type)||"date",onChange:e=>{d(t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(r).map(e=>{let[t,n]=e;return{label:n,value:t}})}),(0,p.jsx)(s.DatePicker.RangePicker,(0,a.A)((0,a.A)({},t),{},{picker:(null===i||void 0===i?void 0:i.type)||"date",value:Array.isArray(null===i||void 0===i?void 0:i.value)&&2===i.value.length&&i.value.map(e=>e&&c()(e)),onChange:e=>{d(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?"".concat(e,"px"):e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,n)=>{n.d(t,{qn:()=>z,TM:()=>te,LH:()=>M,Ay:()=>B,NY:()=>T,DF:()=>V});var a=n(53986),l=n(89379),s=n(30509),r=n(25438),o=n(55199),i=n(27047),c=n(83136),d=n.n(c),u=n(64671),p=n(73884),m=n(21485),h=n(56434),_=n.n(h),g=n(15797),f=n.n(g),x=n(33097),A=n.n(x);const y="style_address__DIuRX__WOFK8",v="style_is-popup__tqVvp__WOFK8",C="style_title__FAe12__WOFK8",j="style_scroll-box__JWiDl__WOFK8",b="style_scroll-plus-box__lidEW__WOFK8",N="style_content__lAARZ__WOFK8",O="style_col-left__WPfeS__WOFK8",S="style_col-right__z0e9-__WOFK8";var F=n(87558),w=n.n(F);const W=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var K=n(47458),L=n(70579);const P=["name","data","getAddressApi","children"],I=["data"],k=s.A.useContext,M=e=>{let{city:t,province:n,country:a}=e;const l=f()(()=>{const e=[];return["gangaotai","municipality"].forEach(n=>{e.push(...t.relations[n])}),["provinces","continents"].forEach(n=>{t.relations[n].forEach(n=>{e.push(n),e.push(...t.relations[n])})}),e.map(e=>t.list[e])});return{getCity:f()(e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:f()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:f()(()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:f()(()=>["1",...a.relations.continents].map(e=>Object.assign({id:e},a.list[e]))),getList:f()((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name="".concat(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:f()(e=>{let n=_()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter(e=>n.list[e]).map(e=>n.list[e])}),getCityByName:f()(e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(n=t.find(e),n)),n}),combineCities:f()((e,n)=>[...n.filter(n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n),e]),searchCities:f()(e=>{if(!e)return[];return l().filter(t=>["pinyin","name","enName","spelling"].some(n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?"".concat(n.name,"\xb7").concat(e.name):e.name,value:e.code}})})}},T=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),R={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then(e=>e.__esModule?e.default:e)},D=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=k(),[s,c]=(0,p.useState)(""),[h,_]=(0,p.useState)("2"),{formatMessage:g}=(0,K.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,i.A)(),{getCity:x,getChinaCities:A,getCountries:F,getList:w,searchCities:W}=(0,p.useMemo)(()=>M(a.data),[a.data]),P=e=>{if(l.single)return void n([e]);const a=t.slice(0),s=a.indexOf(e);s>-1?a.splice(s,1):a.push(e),n(a)},I=s&&(0,L.jsx)(m.A,{className:b,children:(0,L.jsx)(o.List,{className:r.A.list,size:"small",dataSource:W(s),rowKey:"value",renderItem:e=>(0,L.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{P(e.value),c("")},children:(0,L.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,L.jsxs)("div",{className:d()(y,{[v]:l.isPopup}),children:[(0,L.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||g({id:"searchCity"}),prefix:(0,L.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,L.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,L.jsx)("div",{className:N,children:I||(0,L.jsxs)(o.Row,{wrap:!1,children:[(0,L.jsx)(o.Col,{className:O,children:(0,L.jsx)(o.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,L.jsx)(K.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:A().map(e=>({label:T(e,f),key:e.id}))})})},{key:"1",label:(0,L.jsx)(K.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:F().map(e=>({label:T(e,f),key:e.id}))})})}]})}),(0,L.jsxs)(o.Col,{flex:1,className:S,children:[(0,L.jsx)(o.Divider,{className:C,orientation:"left",children:T(x(h).city,f)}),(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Space,{wrap:!0,children:w(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,L.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{P(e.code)},children:T(e,f)},e.code))})})]})]})})]})},E=e=>(0,L.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,L.jsx)(K.IntlProvider,{moduleName:"AddressSelect",importMessages:W,children:(0,L.jsx)(D,{value:t,setValue:n})})}}));E.defaultProps={overlayWidth:"500px",isPopup:!0,api:R,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map(e=>Object.assign({},e,{value:e.code,label:T(e,a)}))}}};const z=(0,F.withFetch)(e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,P);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)(()=>M(n),[n]);return l?s(c):(0,L.jsx)(w(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(n))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:o}))}})});z.defaultProps=(0,l.A)((0,l.A)({},R),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(T(a,s),"\xb7").concat(T(n,s)):T(n,s)}});const V=e=>{const t=(0,F.withFetch)(t=>{let{data:n}=t,s=(0,a.A)(t,I);const r=(0,p.useMemo)(()=>M(n),[n]);return(0,L.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},R),t};E.AddressEnum=E.Enum=z,E.createAddressApi=M,E.withAddressApi=V,E.getLabelForLocal=T;const B=E;var U=n(10986),q=n.n(U),Q=n(78491),H=n.n(Q),X=n(20492),Z=n(22616),J=n.n(Z),Y=n(1488),G=n.n(Y);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:r,onBlur:i,className:c}=e,d=(0,a.A)(e,$),[u,p]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,K.useIntl)({moduleName:"Common"}),_=H()(e=>{i&&i(e)});return(0,L.jsx)("div",{ref:_,children:(0,L.jsxs)(o.Row,{gutter:10,children:[(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(B,(0,l.A)((0,l.A)({},J()(d,m)),{},{className:c,disabled:s,single:!0,size:n,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(o.Input,(0,l.A)((0,l.A)({},G()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:n,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,K.createWithIntl)({importMessages:X.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(68827)}}]);
|
|
2
|
-
//# sourceMappingURL=3856.ff96180c.chunk.js.map
|