@kne-components/components-core 0.3.29 → 0.3.31
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 +110 -106
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1248.64d9bb6d.chunk.css +2 -0
- package/build/static/css/{1248.9dd346e2.chunk.css.map → 1248.64d9bb6d.chunk.css.map} +1 -1
- package/build/static/css/{1996.0c1d2eb8.chunk.css → 1996.9f5f4ae7.chunk.css} +2 -2
- package/build/static/css/{1996.0c1d2eb8.chunk.css.map → 1996.9f5f4ae7.chunk.css.map} +1 -1
- package/build/static/css/206.bad88d8a.chunk.css +2 -0
- package/build/static/css/{206.255d4d1d.chunk.css.map → 206.bad88d8a.chunk.css.map} +1 -1
- package/build/static/css/254.3a18f854.chunk.css +2 -0
- package/build/static/css/{254.a7ba331a.chunk.css.map → 254.3a18f854.chunk.css.map} +1 -1
- package/build/static/css/2580.f86844e1.chunk.css +2 -0
- package/build/static/css/2580.f86844e1.chunk.css.map +1 -0
- package/build/static/css/2628.5ecad003.chunk.css +2 -0
- package/build/static/css/{1742.d0808083.chunk.css.map → 2628.5ecad003.chunk.css.map} +1 -1
- package/build/static/css/2716.17dd70c0.chunk.css +2 -0
- package/build/static/css/{2716.00218291.chunk.css.map → 2716.17dd70c0.chunk.css.map} +1 -1
- package/build/static/css/3771.c2d60a33.chunk.css +2 -0
- package/build/static/css/3771.c2d60a33.chunk.css.map +1 -0
- package/build/static/css/{3790.1c4a984b.chunk.css → 3790.a070b626.chunk.css} +2 -2
- package/build/static/css/{3790.1c4a984b.chunk.css.map → 3790.a070b626.chunk.css.map} +1 -1
- package/build/static/css/{4277.d46e46e1.chunk.css → 4277.1476a9f7.chunk.css} +2 -2
- package/build/static/css/{4277.d46e46e1.chunk.css.map → 4277.1476a9f7.chunk.css.map} +1 -1
- package/build/static/css/4741.637b9bdd.chunk.css +2 -0
- package/build/static/css/4741.637b9bdd.chunk.css.map +1 -0
- package/build/static/css/4832.1f20c29a.chunk.css +2 -0
- package/build/static/css/{3205.fa70c403.chunk.css.map → 4832.1f20c29a.chunk.css.map} +1 -1
- package/build/static/css/{4010.579f87a0.chunk.css → 4978.f2de2c65.chunk.css} +1 -1
- package/build/static/css/{4010.579f87a0.chunk.css.map → 4978.f2de2c65.chunk.css.map} +1 -1
- package/build/static/css/5195.ae841719.chunk.css +2 -0
- package/build/static/css/5195.ae841719.chunk.css.map +1 -0
- package/build/static/css/{2765.3212941b.chunk.css → 6178.23b76af4.chunk.css} +1 -1
- package/build/static/css/{2765.3212941b.chunk.css.map → 6178.23b76af4.chunk.css.map} +1 -1
- package/build/static/css/{6763.306109ad.chunk.css → 6763.22785095.chunk.css} +2 -2
- package/build/static/css/{6763.306109ad.chunk.css.map → 6763.22785095.chunk.css.map} +1 -1
- package/build/static/css/6980.9c762c87.chunk.css +12 -0
- package/build/static/css/{6980.de95ee58.chunk.css.map → 6980.9c762c87.chunk.css.map} +1 -1
- package/build/static/css/7227.427dad1f.chunk.css +2 -0
- package/build/static/css/{7227.819eb13b.chunk.css.map → 7227.427dad1f.chunk.css.map} +1 -1
- package/build/static/css/{760.4294a2cf.chunk.css → 760.d996529f.chunk.css} +2 -2
- package/build/static/css/{760.4294a2cf.chunk.css.map → 760.d996529f.chunk.css.map} +1 -1
- package/build/static/css/{3842.71de4d13.chunk.css → 8322.9f36eb3c.chunk.css} +1 -1
- package/build/static/css/{3842.71de4d13.chunk.css.map → 8322.9f36eb3c.chunk.css.map} +1 -1
- package/build/static/css/{8593.bf6ed3b3.chunk.css → 8593.e0bb864d.chunk.css} +2 -2
- package/build/static/css/{8593.bf6ed3b3.chunk.css.map → 8593.e0bb864d.chunk.css.map} +1 -1
- package/build/static/css/9556.3c7e51d8.chunk.css +2 -0
- package/build/static/css/{9556.7d7daaf2.chunk.css.map → 9556.3c7e51d8.chunk.css.map} +1 -1
- package/build/static/css/9772.7353d865.chunk.css +2 -0
- package/build/static/css/{9772.5ecc8053.chunk.css.map → 9772.7353d865.chunk.css.map} +1 -1
- package/build/static/js/{1248.410139ce.chunk.js → 1248.b553345a.chunk.js} +3 -3
- package/build/static/js/{1248.410139ce.chunk.js.map → 1248.b553345a.chunk.js.map} +1 -1
- package/build/static/js/1996.f87655a0.chunk.js +2 -0
- package/build/static/js/{1996.12ba12b1.chunk.js.map → 1996.f87655a0.chunk.js.map} +1 -1
- package/build/static/js/206.e4a85321.chunk.js +2 -0
- package/build/static/js/206.e4a85321.chunk.js.map +1 -0
- package/build/static/js/254.033a6b2c.chunk.js +2 -0
- package/build/static/js/254.033a6b2c.chunk.js.map +1 -0
- package/build/static/js/2580.783e0fcb.chunk.js +2 -0
- package/build/static/js/2580.783e0fcb.chunk.js.map +1 -0
- package/build/static/js/2628.d101fab3.chunk.js +2 -0
- package/build/static/js/2628.d101fab3.chunk.js.map +1 -0
- package/build/static/js/{2716.621d13f4.chunk.js → 2716.7f613701.chunk.js} +3 -3
- package/build/static/js/{2716.621d13f4.chunk.js.map → 2716.7f613701.chunk.js.map} +1 -1
- package/build/static/js/3771.17da985d.chunk.js +2 -0
- package/build/static/js/3771.17da985d.chunk.js.map +1 -0
- package/build/static/js/{3790.ce9c4e6c.chunk.js → 3790.bb02bbc3.chunk.js} +2 -2
- package/build/static/js/{3790.ce9c4e6c.chunk.js.map → 3790.bb02bbc3.chunk.js.map} +1 -1
- package/build/static/js/3856.2c46e978.chunk.js +2 -0
- package/build/static/js/3856.2c46e978.chunk.js.map +1 -0
- package/build/static/js/4277.dd7276ba.chunk.js +2 -0
- package/build/static/js/{4277.60d99f45.chunk.js.map → 4277.dd7276ba.chunk.js.map} +1 -1
- package/build/static/js/4279.45d71d01.chunk.js +2 -0
- package/build/static/js/4279.45d71d01.chunk.js.map +1 -0
- package/build/static/js/4474.a1655ead.chunk.js +2 -0
- package/build/static/js/{4474.d20c510d.chunk.js.map → 4474.a1655ead.chunk.js.map} +1 -1
- package/build/static/js/4613.89f86015.chunk.js +3 -0
- package/build/static/js/4613.89f86015.chunk.js.map +1 -0
- package/build/static/js/4741.59d5b7a0.chunk.js +2 -0
- package/build/static/js/4741.59d5b7a0.chunk.js.map +1 -0
- package/build/static/js/4832.faed8289.chunk.js +2 -0
- package/build/static/js/4832.faed8289.chunk.js.map +1 -0
- package/build/static/js/4978.69afaa16.chunk.js +2 -0
- package/build/static/js/4978.69afaa16.chunk.js.map +1 -0
- package/build/static/js/{5195.fd2ee0ee.chunk.js → 5195.a16fffa5.chunk.js} +2 -2
- package/build/static/js/{5195.fd2ee0ee.chunk.js.map → 5195.a16fffa5.chunk.js.map} +1 -1
- package/build/static/js/6178.300ad1a8.chunk.js +2 -0
- package/build/static/js/6178.300ad1a8.chunk.js.map +1 -0
- package/build/static/js/6235.432e035d.chunk.js +2 -0
- package/build/static/js/6235.432e035d.chunk.js.map +1 -0
- package/build/static/js/6629.f7a030c0.chunk.js +2 -0
- package/build/static/js/6629.f7a030c0.chunk.js.map +1 -0
- package/build/static/js/6763.119082d0.chunk.js +2 -0
- package/build/static/js/{6763.327683ec.chunk.js.map → 6763.119082d0.chunk.js.map} +1 -1
- package/build/static/js/{6980.aef1b013.chunk.js → 6980.c6a91575.chunk.js} +2 -2
- package/build/static/js/6980.c6a91575.chunk.js.map +1 -0
- package/build/static/js/{7227.1713c872.chunk.js → 7227.8afea629.chunk.js} +3 -3
- package/build/static/js/{7227.1713c872.chunk.js.map → 7227.8afea629.chunk.js.map} +1 -1
- package/build/static/js/760.730fb491.chunk.js +2 -0
- package/build/static/js/{760.0ce1056b.chunk.js.map → 760.730fb491.chunk.js.map} +1 -1
- package/build/static/js/8322.96f54925.chunk.js +2 -0
- package/build/static/js/8322.96f54925.chunk.js.map +1 -0
- package/build/static/js/8593.379fe695.chunk.js +2 -0
- package/build/static/js/{8593.786b467a.chunk.js.map → 8593.379fe695.chunk.js.map} +1 -1
- package/build/static/js/8601.1252d5d8.chunk.js +2 -0
- package/build/static/js/8601.1252d5d8.chunk.js.map +1 -0
- package/build/static/js/9556.c50fd35c.chunk.js +3 -0
- package/build/static/js/{9556.2df08637.chunk.js.map → 9556.c50fd35c.chunk.js.map} +1 -1
- package/build/static/js/{9772.b29a2d16.chunk.js → 9772.76428a79.chunk.js} +2 -2
- package/build/static/js/9772.76428a79.chunk.js.map +1 -0
- package/build/static/js/main.49d987b0.js +2 -0
- package/build/static/js/main.49d987b0.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1248.9dd346e2.chunk.css +0 -2
- package/build/static/css/1742.d0808083.chunk.css +0 -2
- package/build/static/css/206.255d4d1d.chunk.css +0 -2
- package/build/static/css/2307.0c628548.chunk.css +0 -2
- package/build/static/css/2307.0c628548.chunk.css.map +0 -1
- package/build/static/css/254.a7ba331a.chunk.css +0 -2
- package/build/static/css/2716.00218291.chunk.css +0 -2
- package/build/static/css/3205.fa70c403.chunk.css +0 -2
- package/build/static/css/3771.b63ba260.chunk.css +0 -2
- package/build/static/css/3771.b63ba260.chunk.css.map +0 -1
- package/build/static/css/5195.6158fffb.chunk.css +0 -2
- package/build/static/css/5195.6158fffb.chunk.css.map +0 -1
- package/build/static/css/6980.de95ee58.chunk.css +0 -12
- package/build/static/css/7227.819eb13b.chunk.css +0 -2
- package/build/static/css/9058.525ece58.chunk.css +0 -2
- package/build/static/css/9058.525ece58.chunk.css.map +0 -1
- package/build/static/css/9556.7d7daaf2.chunk.css +0 -2
- package/build/static/css/9772.5ecc8053.chunk.css +0 -2
- package/build/static/js/1742.4fc659cf.chunk.js +0 -2
- package/build/static/js/1742.4fc659cf.chunk.js.map +0 -1
- package/build/static/js/1996.12ba12b1.chunk.js +0 -2
- package/build/static/js/206.01785e03.chunk.js +0 -2
- package/build/static/js/206.01785e03.chunk.js.map +0 -1
- package/build/static/js/254.62f7eb14.chunk.js +0 -2
- package/build/static/js/254.62f7eb14.chunk.js.map +0 -1
- package/build/static/js/3205.9a61b7b6.chunk.js +0 -2
- package/build/static/js/3205.9a61b7b6.chunk.js.map +0 -1
- package/build/static/js/3771.a4718b4c.chunk.js +0 -2
- package/build/static/js/3771.a4718b4c.chunk.js.map +0 -1
- package/build/static/js/3842.35b13dba.chunk.js +0 -2
- package/build/static/js/3842.35b13dba.chunk.js.map +0 -1
- package/build/static/js/3856.f1095570.chunk.js +0 -2
- package/build/static/js/3856.f1095570.chunk.js.map +0 -1
- package/build/static/js/4010.065cf885.chunk.js +0 -2
- package/build/static/js/4010.065cf885.chunk.js.map +0 -1
- package/build/static/js/4277.60d99f45.chunk.js +0 -2
- package/build/static/js/4474.d20c510d.chunk.js +0 -2
- package/build/static/js/6763.327683ec.chunk.js +0 -2
- package/build/static/js/6980.aef1b013.chunk.js.map +0 -1
- package/build/static/js/7515.06e02d7f.chunk.js +0 -2
- package/build/static/js/7515.06e02d7f.chunk.js.map +0 -1
- package/build/static/js/760.0ce1056b.chunk.js +0 -2
- package/build/static/js/8593.786b467a.chunk.js +0 -2
- package/build/static/js/8601.5abc12e9.chunk.js +0 -2
- package/build/static/js/8601.5abc12e9.chunk.js.map +0 -1
- package/build/static/js/8945.7dbec83f.chunk.js +0 -3
- package/build/static/js/8945.7dbec83f.chunk.js.map +0 -1
- package/build/static/js/8969.d870d8fa.chunk.js +0 -2
- package/build/static/js/8969.d870d8fa.chunk.js.map +0 -1
- package/build/static/js/9058.49deb6ca.chunk.js +0 -2
- package/build/static/js/9058.49deb6ca.chunk.js.map +0 -1
- package/build/static/js/9556.2df08637.chunk.js +0 -3
- package/build/static/js/9772.b29a2d16.chunk.js.map +0 -1
- package/build/static/js/982.9f53c624.chunk.js +0 -2
- package/build/static/js/982.9f53c624.chunk.js.map +0 -1
- package/build/static/js/main.3e34b1ab.js +0 -2
- package/build/static/js/main.3e34b1ab.js.map +0 -1
- /package/build/static/js/{1248.410139ce.chunk.js.LICENSE.txt → 1248.b553345a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.621d13f4.chunk.js.LICENSE.txt → 2716.7f613701.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.1713c872.chunk.js.LICENSE.txt → 4613.89f86015.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8945.7dbec83f.chunk.js.LICENSE.txt → 7227.8afea629.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.2df08637.chunk.js.LICENSE.txt → 9556.c50fd35c.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/2716.621d13f4.chunk.js","mappings":";wLAEA,SAASA,EAAcC,GACrB,IAAIC,ECFN,SAAqBD,EAAGE,GACtB,GAAI,WAAY,OAAQF,KAAOA,EAAG,OAAOA,EACzC,IAAIG,EAAIH,EAAEI,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAIF,EAAIE,EAAEG,KAAKN,EAAGE,GAAK,WACvB,GAAI,WAAY,OAAQD,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAQ,WAAaL,EAAIM,OAASC,QAAQT,EAC5C,CDPUK,CAAYL,EAAG,UACvB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,C,kBEIa,IAAIS,EAAEC,EAAQ,OAASC,EAAER,OAAOS,IAAI,iBAAiBC,EAAEV,OAAOS,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAE7B,EAAE,KAAK8B,EAAE,KAAiF,IAAIF,UAAhF,IAASD,IAAI3B,EAAE,GAAG2B,QAAG,IAASD,EAAEN,MAAMpB,EAAE,GAAG0B,EAAEN,UAAK,IAASM,EAAEL,MAAMS,EAAEJ,EAAEL,KAAcK,EAAEd,EAAET,KAAKuB,EAAEE,KAAKT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,IAC/C,OAAeC,EAAGD,EAAGF,EAAEE,GACzB,GAAKc,OAAO0F,0BAA4B1F,OAAO2F,iBAAiBxG,EAAGa,OAAO0F,0BAA0B1G,IAAMiG,EAAQjF,OAAOhB,IAAIyG,QAAQ,SAAUvG,GAC7Ic,OAAOwE,eAAerF,EAAGD,EAAGc,OAAOoF,yBAAyBpG,EAAGE,GACjE,EACF,CACA,OAAOC,CACT,C","sources":["../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__hiFBw\",\"state-result-tag\":\"style_state-result-tag__CssDz__hiFBw\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__hiFBw\",\"event-tag\":\"style_event-tag__cg6SE__hiFBw\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__hiFBw\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__hiFBw\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__hiFBw\",\"show-bg\":\"style_show-bg__OcL+R__hiFBw\",\"tag-text\":\"style_tag-text__JHCt+__hiFBw\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__hiFBw\"};","import React, {useMemo} from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport {Space, Tag} from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\", borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder = false,\n text = \"\",\n type = \"default\",\n showBackground = true,\n className,\n filterName,\n ...props\n }) => {\n const tagColor = useMemo(() => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }), [type]);\n\n return (<Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(style[\"state-tag-wrapper\"], type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\")}\n align=\"center\"\n size={4}\n >\n {filterName ? (<span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(style[\"state-tag\"], className, type === \"result\" ? style[\"state-result-tag\"] : \"\", type === \"skill\" ? style[\"state-skill-tag\"] : \"\", style[`state-tag-${type}`], showBackground ? style[\"show-bg\"] : \"\", showBorder ? style[\"show-border\"] : \"\", props?.onClick ? style[\"event-tag\"] : \"\")}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>);\n};\n\nexport default StateTag;\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };"],"names":["toPropertyKey","t","i","r","e","Symbol","toPrimitive","call","TypeError","String","Number","f","require","k","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","h","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","_objectWithoutProperties","o","indexOf","getOwnPropertySymbols","length","propertyIsEnumerable","tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","_ref","showBorder","text","showBackground","className","filterName","_excluded","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","_objectSpread","background","border","concat","onClick","_defineProperty","defineProperty","value","enumerable","configurable","writable","module","_typeof","iterator","constructor","ownKeys","keys","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","forEach","getOwnPropertyDescriptors","defineProperties"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/2716.7f613701.chunk.js","mappings":";wLAEA,SAASA,EAAcC,GACrB,IAAIC,ECFN,SAAqBD,EAAGE,GACtB,GAAI,WAAY,OAAQF,KAAOA,EAAG,OAAOA,EACzC,IAAIG,EAAIH,EAAEI,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAIF,EAAIE,EAAEG,KAAKN,EAAGE,GAAK,WACvB,GAAI,WAAY,OAAQD,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAQ,WAAaL,EAAIM,OAASC,QAAQT,EAC5C,CDPUK,CAAYL,EAAG,UACvB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,C,kBEIa,IAAIS,EAAEC,EAAQ,OAASC,EAAER,OAAOS,IAAI,iBAAiBC,EAAEV,OAAOS,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAET,EAAEU,mDAAmDC,kBAAkBC,EAAE,CAACC,KAAI,EAAGC,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAE7B,EAAE,KAAK8B,EAAE,KAAiF,IAAIF,UAAhF,IAASD,IAAI3B,EAAE,GAAG2B,QAAG,IAASD,EAAEN,MAAMpB,EAAE,GAAG0B,EAAEN,UAAK,IAASM,EAAEL,MAAMS,EAAEJ,EAAEL,KAAcK,EAAEd,EAAET,KAAKuB,EAAEE,KAA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vG,IAC/C,OAAeC,EAAGD,EAAGF,EAAEE,GACzB,GAAKc,OAAO0F,0BAA4B1F,OAAO2F,iBAAiBxG,EAAGa,OAAO0F,0BAA0B1G,IAAMiG,EAAQjF,OAAOhB,IAAIyG,QAAQ,SAAUvG,GAC7Ic,OAAOwE,eAAerF,EAAGD,EAAGc,OAAOoF,yBAAyBpG,EAAGE,GACjE,EACF,CACA,OAAOC,CACT,C","sources":["../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://@kne-components/components-core/./src/components/StateTag/style.module.scss?5aff","components/StateTag/index.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","// extracted by mini-css-extract-plugin\nexport default {\"state-tag\":\"style_state-tag__Kx27z__WLZHg\",\"state-result-tag\":\"style_state-result-tag__CssDz__WLZHg\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__WLZHg\",\"event-tag\":\"style_event-tag__cg6SE__WLZHg\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__WLZHg\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__WLZHg\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__WLZHg\",\"show-bg\":\"style_show-bg__OcL+R__WLZHg\",\"tag-text\":\"style_tag-text__JHCt+__WLZHg\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__WLZHg\"};","import React, {useMemo} from \"react\";\nimport classnames from \"classnames\";\n\nimport style from \"./style.module.scss\";\nimport {Space, Tag} from \"antd\";\n\nconst tagTypeEnum = {\n default: \"#666666\",\n skill: {\n color: \"#666666\", borderColor: \"#EEEEEE\",\n },\n result: \"#666666\",\n filterResult: \"#5CB8B2\",\n success: \"#027A48\",\n progress: \"#F09700\",\n danger: \"#D14343\",\n info: \"#155ACF\",\n other: \"#6740C3\",\n};\n\nconst StateTag = ({\n showBorder = false,\n text = \"\",\n type = \"default\",\n showBackground = true,\n className,\n filterName,\n ...props\n }) => {\n const tagColor = useMemo(() => ({\n color: tagTypeEnum?.[type]?.color || tagTypeEnum[type],\n borderColor: tagTypeEnum?.[type]?.borderColor || tagTypeEnum[type],\n }), [type]);\n\n return (<Space\n data-testid={\"components-core-state-tag\"}\n className={classnames(style[\"state-tag-wrapper\"], type === \"filterResult\" ? style[\"state-tag-filter-result-wrapper\"] : \"\")}\n align=\"center\"\n size={4}\n >\n {filterName ? (<span className={style[\"state-tag-filter-name\"]}>{filterName}:</span>) : null}\n <Tag\n color={tagColor.color}\n {...props}\n style={{\n background: showBackground ? tagColor.color + \"0F\" : \"none\",\n color: tagColor.color,\n border: showBorder ? `1px solid ${tagColor.borderColor}` : \"none\",\n }}\n className={classnames(style[\"state-tag\"], className, type === \"result\" ? style[\"state-result-tag\"] : \"\", type === \"skill\" ? style[\"state-skill-tag\"] : \"\", style[`state-tag-${type}`], showBackground ? style[\"show-bg\"] : \"\", showBorder ? style[\"show-border\"] : \"\", props?.onClick ? style[\"event-tag\"] : \"\")}\n >\n <span className={style[\"tag-text\"]}>{text}</span>\n </Tag>\n </Space>);\n};\n\nexport default StateTag;\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };"],"names":["toPropertyKey","t","i","r","e","Symbol","toPrimitive","call","TypeError","String","Number","f","require","k","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","h","defaultProps","$$typeof","type","props","_owner","current","exports","Fragment","jsx","jsxs","_objectWithoutProperties","o","indexOf","getOwnPropertySymbols","length","propertyIsEnumerable","tagTypeEnum","default","skill","color","borderColor","result","filterResult","success","progress","danger","info","other","_ref","showBorder","text","showBackground","className","filterName","_excluded","tagColor","useMemo","_tagTypeEnum$type","_tagTypeEnum$type2","_jsxs","Space","classnames","style","align","size","children","_jsx","Tag","_objectSpread","background","border","concat","onClick","_defineProperty","defineProperty","value","enumerable","configurable","writable","module","_typeof","iterator","constructor","ownKeys","keys","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","forEach","getOwnPropertyDescriptors","defineProperties"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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:()=>T,TabsModal:()=>B,TabsModalButton:()=>F,default:()=>W,useConfirmModal:()=>H,useModal:()=>P,useTabsModal:()=>O});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__WLZHg",large:"style_large__iaqVE__WLZHg","modal-body-inner":"style_modal-body-inner__4PhpA__WLZHg","modal-title":"style_modal-title__dswaw__WLZHg","modal-outer":"style_modal-outer__r3SkX__WLZHg","modal-body":"style_modal-body__jQJSI__WLZHg","right-options-modal":"style_right-options-modal__FajDP__WLZHg","right-options-row":"style_right-options-row__-mPb9__WLZHg","right-options-col":"style_right-options-col__3ilee__WLZHg","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__WLZHg",content:"style_content__k6MIF__WLZHg","modal-footer":"style_modal-footer__-prbN__WLZHg","modal-close":"style_modal-close__Oa5Kl__WLZHg","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__WLZHg","is-danger":"style_is-danger__H5110__WLZHg",title:"style_title__orTym__WLZHg","has-title":"style_has-title__qy0Wp__WLZHg"},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"),N=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}}))})})})]})},v=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)(N,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:g})}):null]})},k=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)(v,{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({})},S=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,N=(0,n.A)(e,y);return(0,l.A)((0,l.A)((0,l.A)({},N),{},{icon:null,centered:!0,title:null,maskClosable:!!N.hasOwnProperty("maskClosable")&&N.maskClosable,destroyOnClose:!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:k({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})})})},P=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=S((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}},H=()=>{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}},W=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)({},S(Object.assign({},t,{size:o,childrenRef:r}))))},L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],R=["withDecorator"],Z=["children"],M=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,L);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,R);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,Z);return"function"===typeof o?o(t):o}})},B=e=>(0,f.jsx)(W,(0,l.A)({},M(e))),O=()=>{const e=P();return o=>e(M(o))};var D=t(73025);const z=["modalProps"],F=e=>{const o=O();return e.api?(0,f.jsx)(D.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)}}))},T=e=>{const o=P();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,z);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(D.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);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GAAM,IACV9G,QAASA,KACPiE,EAAM4C,MAId,CACA,OAAOrI,EAAAA,EAAAA,KAACmI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAW3C,K,oECf5C,QAAe1B,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__WLZHg\",\"large\":\"style_large__iaqVE__WLZHg\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__WLZHg\",\"modal-title\":\"style_modal-title__dswaw__WLZHg\",\"modal-outer\":\"style_modal-outer__r3SkX__WLZHg\",\"modal-body\":\"style_modal-body__jQJSI__WLZHg\",\"right-options-modal\":\"style_right-options-modal__FajDP__WLZHg\",\"right-options-row\":\"style_right-options-row__-mPb9__WLZHg\",\"right-options-col\":\"style_right-options-col__3ilee__WLZHg\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__WLZHg\",\"content\":\"style_content__k6MIF__WLZHg\",\"modal-footer\":\"style_modal-footer__-prbN__WLZHg\",\"modal-close\":\"style_modal-close__Oa5Kl__WLZHg\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__WLZHg\",\"is-danger\":\"style_is-danger__H5110__WLZHg\",\"title\":\"style_title__orTym__WLZHg\",\"has-title\":\"style_has-title__qy0Wp__WLZHg\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnClose","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,i
|
|
2
|
-
//# sourceMappingURL=3790.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.preset)({base:t()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>h});const s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var a=i(47458),l=i(64671),t=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__WLZHg",d="style_inner__bMKeU__WLZHg",u="style_content__xTfWZ__WLZHg",p="style_link__93j7O__WLZHg";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(a.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:c()(o,i),children:(0,_.jsxs)(t.Space,{className:d,children:[(0,_.jsx)(l.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3790.bb02bbc3.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3790.
|
|
1
|
+
{"version":3,"file":"static/js/3790.bb02bbc3.chunk.js","mappings":"qOAyHAA,EAAAA,EAAAA,QAAO,CACLC,KAAMC,IAvHY,CAClB,CACE,SACA,IAAM,CACJ,CAAEC,MAAO,IAAKC,YAAa,UAC3B,CACED,MAAO,IACPC,YAAa,YAInB,CACE,UACA,IAAM,CACJ,CAAEA,YAAa,eAAMD,MAAO,KAC5B,CACEC,YAAa,eACbD,MAAO,OAIb,CACE,UACA,IAAM,CACJ,CAAEC,YAAa,SAAKD,MAAO,KAC3B,CACEC,YAAa,SACbD,MAAO,OAIb,CACE,YACA,IAAM,CACJ,CAAEC,YAAa,2BAAQD,MAAO,4BAC9B,CACEC,YAAa,2BACbD,MAAO,4BAET,CAAEC,YAAa,eAAMD,MAAO,gBAC5B,CACEC,YAAa,2BACbD,MAAO,8BAIb,CACE,iBACA,IAAM,CACJ,CACEA,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,sBAEf,CACED,MAAO,EACPC,YAAa,wBAInB,CACE,aACA,IAAM,CACJ,CACEA,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,qBACbD,MAAO,IAET,CACEC,YAAa,2BACbD,MAAO,QASX,CAACE,EAAQF,KACPE,EAAOF,EAAM,IAAMA,EAAM,IAE3B,CAAC,I,gDC/HL,MAOA,EAPwBG,IACf,CACL,QAASC,IAAM,+BACf,QAASC,IAAM,iCACfF,M,yDCHJ,QAA+B,mCAA/B,EAA0E,4BAA1E,EAAgH,8BAAhH,EAAqJ,2B,0BCOrJ,MAgCA,EAhCoBG,IAA0B,IAAzB,KAAEC,EAAI,UAAEC,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKf,QACHS,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAeJ,SAAA,EAC/BJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACC,UAAQ,EAACC,KAAK,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__WLZHg\",\"inner\":\"style_inner__bMKeU__WLZHg\",\"content\":\"style_content__xTfWZ__WLZHg\",\"link\":\"style_link__93j7O__WLZHg\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n"],"names":["preset","base","transform","value","description","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","Icon","colorful","type","content","url","Typography","Link","href","target"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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:()=>E,TabsModal:()=>F,TabsModalButton:()=>D,default:()=>H,useConfirmModal:()=>O,useModal:()=>W,useTabsModal:()=>M});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__WLZHg",large:"style_large__iaqVE__WLZHg","modal-body-inner":"style_modal-body-inner__4PhpA__WLZHg","modal-title":"style_modal-title__dswaw__WLZHg","modal-outer":"style_modal-outer__r3SkX__WLZHg","modal-body":"style_modal-body__jQJSI__WLZHg","right-options-modal":"style_right-options-modal__FajDP__WLZHg","right-options-row":"style_right-options-row__-mPb9__WLZHg","right-options-col":"style_right-options-col__3ilee__WLZHg","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__WLZHg",content:"style_content__k6MIF__WLZHg","modal-footer":"style_modal-footer__-prbN__WLZHg","modal-close":"style_modal-close__Oa5Kl__WLZHg","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__WLZHg","is-danger":"style_is-danger__H5110__WLZHg",title:"style_title__orTym__WLZHg","has-title":"style_has-title__qy0Wp__WLZHg"},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),g=n(17342),_=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,_.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,_.jsx)(r.Col,{span:24-n,className:c["right-options-col"],children:a}),(0,_.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,_.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,_.jsx)(r.Col,{children:(0,_.jsx)(r.Space,{children:(n||[{children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,_.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:i},{type:"primary",children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,_.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}}))})})})]})},L=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,_.jsxs)("div",{className:i()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,_.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:i()(c["modal-close"],"modal-close"),type:"text",icon:(0,_.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,_.jsx)("div",{className:c["modal-title"],children:t}),(0,_.jsx)(g.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:a},"modal-body"),ref:x,children:(0,_.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==n||l?(0,_.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,_.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:g}=e;const f=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(L,{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,_.jsx)(j,{rightSpan:u,options:m(d,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),children:m(g,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r}))})}));return"function"===typeof t?t(f,{childrenRef:h,close:r}):f({})},w=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:g,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,destroyOnClose:!0,footer:null,closable:!1,onCancel:g,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,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:S({withDecorator:C,title:h,closable:y,onClose:g,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=w((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}},O=()=>{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:g,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,_.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,_.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,_.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,_.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,_.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,g]})}));n.close=t}return n}},H=e=>{let{size:t="default"}=e,n=(0,l.A)(e,A);const o=(0,s.useRef)(null);return(0,_.jsx)(r.Modal,(0,a.A)({},w(Object.assign({},n,{size:t,childrenRef:o}))))},P=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],Z=["withDecorator"],I=["children"],k=e=>{let{items:t,className:n,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,P);return(0,a.A)((0,a.A)({},u),{},{className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,_.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:a}=t,s=(0,l.A)(t,Z);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}})},F=e=>(0,_.jsx)(H,(0,a.A)({},k(e))),M=()=>{const e=W();return t=>e(k(t))};var T=n(73025);const R=["modalProps"],D=e=>{const t=M();return e.api?(0,_.jsx)(T.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t})):(0,_.jsx)(r.Button,(0,a.A)((0,a.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},E=e=>{const t=W();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,R);return(0,_.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,_.jsx)(T.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>B,Eo:()=>z,NR:()=>S,Ay:()=>K});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 g="create-list_scroll-loader__zoaS7__WLZHg",_="create-list_is-popup__t3d-G__WLZHg",f="create-list_is-not-full__FXtX1__WLZHg",x="create-list_search-input__tV3vf__WLZHg",A="create-list_left__EXr3i__WLZHg",y="create-list_list-header__3xeJa__WLZHg",v="create-list_is-modal__BMfya__WLZHg";var C=n(73161),j=n(47458),b=n(70579);const N=["extra"],L=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}=L(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),S=p()(r.requestParams,[N.paramsType,N.current],1),w=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:W}=(0,j.useIntl)({moduleName:"Common"}),O=u.dataFormat(r.data),{right:H,leftBottom:P,leftSpan:Z=24}=u,I=1===n.length&&"all"===n[0];return(0,b.jsxs)(a.Row,{wrap:!1,className:H?s()("is-not-full",f):"",children:[(0,b.jsxs)(a.Col,{span:Z,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:!O.total||S*w>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:S+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:n,setValue:l,list:O.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})()}),P&&P({fetchApi:r,value:n,mapping:m})]}),H&&H({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},w="list_list__TGynD__WLZHg",W="list_list-item__WSswf__WLZHg",O="list_is-selected__6Wkgt__WLZHg",H="list_item-label__bYzhe__WLZHg",P="list_item-des__2nsEn__WLZHg",Z="list_is-disabled__qxCvO__WLZHg",I="list_is-selected-all__Mp-hG__WLZHg";var k=n(40438),F=n(64671);const M="user_list-inner__V508e__WLZHg",T="user_list-info__y2nWo__WLZHg",R="user_selected-icon__9OQJL__WLZHg",D="user_item-des__o+7UR__WLZHg",E="user_is-selected-all__2q0VZ__WLZHg",z=S({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:o}=e;return(0,b.jsx)(a.List,{size:"small",className:s()(w,{[I]:o,[E]:o}),dataSource:t,renderItem:e=>{const t=l(e);return(0,b.jsx)(a.List.Item,{className:s()(W,{[O]:t}),onClick:()=>n(e),children:(0,b.jsxs)(a.Row,{wrap:!1,align:"middle",className:M,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:T,flex:1,children:(0,b.jsxs)(a.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:H,children:e.label}),e.description&&(0,b.jsx)("span",{className:D,children:e.description})]})}),(0,b.jsx)(a.Col,{children:o||t?(0,b.jsx)(F.default,{className:R,type:"icon-gouxuan"}):null})]})})}})}}),V={"is-selected-all":"table_is-selected-all__IwXUY__WLZHg"},B=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()(V.list,w,{[I]:c,[V["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)})})}}),K=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()(w,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,{[O]:t.single&&i,[Z]: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:H,children:e.label}),e.description&&(0,b.jsx)("span",{className:P,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(24818),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"],g=["className","multiple","accept","onChange","children"],_=["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,g);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,_);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),g=(0,s.useRef)(null),_=(0,s.useRef)(i),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>g.current),(0,s.useEffect)(()=>{const e=new(o())(h.current,_.current);return g.current=e.getScrollElement(),g.current.addEventListener("scroll",x),f(g.current),()=>{g.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__WLZHg","is-popup":"common_is-popup__fJq+g__WLZHg",list:"common_list__TKFzS__WLZHg","list-item":"common_list-item__ASse7__WLZHg","is-selected":"common_is-selected__-PU4Y__WLZHg","item-label":"common_item-label__u+qz1__WLZHg","item-des":"common_item-des__no2z0__WLZHg"}},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:()=>Q});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__WLZHg",overlay:"style_overlay__La5mO__WLZHg",input:"style_input__SpJTE__WLZHg","is-disabled":"style_is-disabled__joxdl__WLZHg","input-icon":"style_input-icon__vVd8R__WLZHg",large:"style_large__En6mL__WLZHg",small:"style_small__DY0AQ__WLZHg","input-inner":"style_input-inner__PWy27__WLZHg","input-custom":"style_input-custom__ktsWD__WLZHg","display-content":"style_display-content__hIKo+__WLZHg","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__WLZHg","selected-tag":"style_selected-tag__zXZZO__WLZHg","selected-tag-list":"style_selected-tag-list__xUIms__WLZHg","selected-tag-inner":"style_selected-tag-inner__Z5gPL__WLZHg","text-inner":"style_text-inner__H24hY__WLZHg",placeholder:"style_placeholder__x0ccE__WLZHg","is-modal":"style_is-modal__JU+uq__WLZHg","overlay-content":"style_overlay-content__WKqp+__WLZHg"};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),g=n(33097),_=n.n(g),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),L=n(74065),S=n.n(L),w=n(21485),W=n(96418),O=n.n(W),H=n(77964),P=n(91176),Z=n(47458),I=n(20492),k=n(27047),F=n(70579);const M=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],T=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],R=["setFetchApi","wrapClassName","getContentRef"],D=["api","className","displayItems","wrapClassName"],E=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)},z=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,F.jsx)("span",{className:s["text-inner"],children:_()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,F.jsx)("span",{className:s["text-inner"],children:r||(0,F.jsx)(Z.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=a.get(e);return(0,F.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,F.jsx)("span",{className:s["tag-inner"],children:_()(t,"label")||e})},e)}):null},V=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,M);const[m,h]=(0,u.useState)(n),g=(0,u.useRef)(n),{formatMessage:_}=(0,Z.useIntl)({moduleName:"Common"});g.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=E({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(_({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(g.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,F.jsx)(y.default,(0,a.A)((0,a.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{v(!1)},footer:(0,F.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,F.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}))}),B=(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:g,wrapClassName:_,overlayClassName:x,disabled:y}=e,v=(0,l.A)(e,T);const[C,j]=(0,u.useState)(!1),b=O()(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,F.jsx)("div",{className:s["input-inner"],children:p}):(0,F.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,F.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,F.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,F.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,F.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,F.jsx)("div",{className:s["input-inner"],children:p})}))}),K=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,R);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:g,props:_,inputWidth:x}=m,[y,C]=h,{formatMessage:j}=(0,Z.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:L,placeholder:S,isPopup:W,disabled:H,showSelectedTag:I,extra:k,inputContent:M,allowClear:T,overlayClassName:D}=_,E=(0,u.useRef)(r);E.current=r;const K=O()(a);(0,u.useEffect)(()=>{K(W?p:d)},[W,K]),(0,u.useEffect)(()=>{t(Object.assign({},E.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const U=z({single:b,value:y,mapping:g,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{C(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),q=e=>{let{value:t,setValue:n}=e;return(0,F.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(Z.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!_.single&&Number.isInteger(_.maxLength)&&_.maxLength>0?"(".concat(t.length,"/").concat(_.maxLength,")"):"",":"]}),(0,F.jsx)(w.A,{className:s["selected-tag-list"],children:(0,F.jsx)("div",{className:s["selected-tag-inner"],children:z({value:t,mapping:g,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},Q=M?M(m):(0,F.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,F.jsx)("div",{children:U||(0,F.jsx)("span",{className:s.placeholder,children:S||j({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!H&&T?(0,F.jsx)(v.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,F.jsx)(v.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return W?(0,F.jsx)(B,{ref:p,overlayWidth:(0,P.v)(Math.max(x,(0,P.j)(_.overlayWidth))),value:y,setValue:C,single:b,disabled:H,inputContent:Q,onOpenChange:_.onOpenChange,overlayClassName:D,extra:"function"===typeof k?k({close:()=>p.current.close(),context:m}):k,renderSelectedContent:q,showSelectedTag:I,trigger:"click",placement:N,getPopupContainer:L,children:_.children}):(0,F.jsxs)("div",{className:s["input-inner"],onClick:()=>{H||d.current.modalOpen()},children:[(0,F.jsx)(V,{size:_.modalSize,ref:d,single:_.single,maxLength:_.maxLength,onOpenChange:_.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],n),title:_.placeholder||j({id:"pleaseSelect"}),value:y,onChange:C,extra:"function"===typeof k?k({close:()=>d.current.close(),context:m}):k,showSelectedTag:I,renderSelectedContent:q,children:_.children}),Q]})}),U=e=>{let{api:t,className:n,displayItems:r,wrapClassName:o}=e,i=(0,l.A)(e,D);const{locale:d}=(0,k.A)(),[p,h]=(0,u.useState)(""),[g,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:y}=(0,Z.useIntl)({moduleName:"Common"}),[v,C]=(0,u.useState)(0),b=(0,H.A)(e=>{C(e.clientWidth)}),[L,w]=(0,u.useState)({}),{message:W}=f.App.useApp(),O=e=>{const t=e.filter(e=>g.get(e.value)!==e);0!==t.length&&x(e=>{const n=N()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},P=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||[],O,i.valueType),[I,M]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,g,i.valueType);i.onChange&&i.onChange(i.single?S()(t):t)}},"value"in i?{value:P(i.value)}:{defaultValue:P(i.defaultValue)})),T=E({maxLength:i.maxLength,single:i.single,setValue:M,value:I,message:()=>W.error(y({id:"maxSelectedCount"},{count:i.maxLength}))}),R=(0,u.useRef)(null);return(0,F.jsx)(c,{value:{inputWidth:v,mapping:g,searchText:p,setSearchText:h,appendMapping:O,setItems:e=>{L.setData(e),O(_()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>R.current,fetchApi:L,valueState:[I,T],props:i},children:(0,F.jsx)("div",{ref:b,className:A()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},n),children:(0,F.jsx)(K,(0,a.A)((0,a.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:w,getContentRef:e=>{e.current&&(R.current=e.current)},onRequestSuccess:e=>{O(_()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};U.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const q=(0,Z.createWithIntl)({importMessages:I.A,moduleName:"Common"})(U);q.useContext=i;const Q=q},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__WLZHg",g="style_img__PSExq__WLZHg",_="style_loading__WCOwA__WLZHg",f="style_error__+ECgZ__WLZHg";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:_}=e;const{staticUrl:f}=(0,A.usePreset)(),x=_||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,g),src:t}):(0,y.jsx)("img",{alt:a,className:d()(n,g),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:_}),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},L=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,g=(0,l.A)(e,v);return(0,y.jsx)("div",(0,a.A)((0,a.A)({},g),{},{"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})}))};L.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:g,children:_,shape:f,size:A=100,width:v,height:j,defaultAvatar:b=x.A,apis:L}=e,S=(0,l.A)(e,C);const w=(()=>{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:L,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:g,shape:f,size:A,src:b},e),{},{children:_}))})();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:w}))};const S=L},41654:(e,t,n)=>{n.d(t,{A:()=>f,K:()=>_});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},g=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)}))};g.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},g.defaultData=m;const _=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}}))};g.FunctionEnum=g.Enum=_;const f=g},43856:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>_.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:()=>g.Ay,SuperSelectTableListField:()=>g.e0,SuperSelectUserField:()=>g.$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:()=>_.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),g=n(60586),_=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:()=>_,Ay:()=>D});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),g=n.n(h);const _=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:g()(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(g()(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||g()(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__WLZHg",columns:"style_columns__FmtPF__WLZHg","content-item":"style_content-item__i6HCO__WLZHg","last-level-area":"style_last-level-area__2y7jQ__WLZHg","is-popup":"style_is-popup__+r3Mn__WLZHg",menu:"style_menu__WZUVE__WLZHg","scroll-plus-box":"style_scroll-plus-box__QcTst__WLZHg","menu-label":"style_menu-label__iGt0Z__WLZHg","menu-item":"style_menu-item__hXHfm__WLZHg","checkbox-hidden":"style_checkbox-hidden__Xpx7J__WLZHg",loading:"style_loading__ZwrVe__WLZHg"};var N=n(87558),L=n(47458),S=n(25438),w=n(70579),W=n(27047);const O=["data","name","type","cache","children","getLabel"],H=new Map,P=(0,N.withFetch)(e=>{let{data:t,name:n,type:s,cache:o,children:i,getLabel:c}=e,d=(0,a.A)(e,O);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 H.set("".concat(n,"_").concat(s),u),i(u,d)}),Z=e=>{const{locale:t}=(0,W.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=H.get(n);return a&&!e.force?e.children(a):(0,w.jsx)(P,(0,l.A)({},e))};Z.defaultProps={children:e=>m()(e,"label","")};const I=Z,k=["maxLength","nodeFormat","dataFormat"],F=s.A.useContext,M=(0,N.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,w.jsx)(v.A,{className:b["scroll-plus-box"],children:(0,w.jsx)(c.List,{className:S.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,w.jsx)(c.List.Item,{className:j()(S.A["list-item"],{[S.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,w.jsx)("span",{className:S.A["item-label"],children:e.label})})}})})}),T=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:o,props:p}=F(),[h,g]=(0,r.useState)(""),f=i()(p.dataFormat),{formatMessage:A}=(0,L.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)(()=>_(N),[N]),O=(0,r.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:W};const[H,P]=(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}=O.current;if(!e)return;const s=N.get(x()(H));if(!s)return;const r=l.getSelectedQueue(s.id);y()(H,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):P(r)},[H,N]);const Z=(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,T=k&&h&&(0,w.jsx)(M,{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)=>{Z(!t,e.id),!t&&P(W.getSelectedQueue(e.id,N)),g("")}});return(0,w.jsxs)("div",{className:j()(b.content,{[b["is-popup"]]:p.isPopup,[b["has-search"]]:k}),style:{"--menu-item-width":p.menuItemWidth},children:[k&&(0,w.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=>{g(e)}}),T||(0,w.jsx)("div",{children:(0,w.jsx)(v.A,{className:b.scroller,options:{autoHide:!1},children:(0,w.jsxs)("div",{className:b.columns,children:[H.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,w.jsx)(v.A,{className:j()(b["content-item"],{[b["last-level-area"]]:i}),children:i?(0,w.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=>Z(t.target.checked,e.id)}),e.label))}):(0,w.jsx)(c.Menu,{className:j()(b.menu),onSelect:e=>{const n=N.get(e.key);if(n)if(I(n.id))P(W.getSelectedQueue(n.id,N));else{const{checked:e}=W.computedCheckboxStatus(n.id,t);Z(!e,n.id)}},selectedKeys:n===H.length-1?[]:H,items:o.map(e=>({key:e.id,label:(0,w.jsxs)(c.Space,{className:j()(b["menu-item"],{[b["checkbox-hidden"]]:p.onlyAllowLastLevel&&I(e.id)}),children:[!p.onlyAllowLastLevel&&(0,w.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},W.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>Z(t.target.checked,e.id)})),(0,w.jsx)("div",{className:b["menu-label"],children:e.label}),I(e.id)&&(0,w.jsx)(d.default,{className:b["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},m()(o,"[0].id",n))}),o.isComplete?null:(0,w.jsx)("div",{className:b.loading,children:(0,w.jsx)(c.Spin,{size:"small"})})]})})})]})},R=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,o=(0,a.A)(e,k);return(0,w.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,w.jsx)(T,(0,l.A)((0,l.A)({},o),{},{size:t,value:n,setValue:a}))}}))};R.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 D=R},53392:(e,t,n)=>{n.d(t,{A:()=>_,W:()=>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={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 g=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=g;const _=h},55490:(e,t,n)=>{n.d(t,{A:()=>a.isNotEmpty});var a=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>f,$9:()=>x,Ay:()=>_});var a=n(89379),l=n(73884),s=n(21826),r=n.n(s),o=n(3382),i=n(40438),c=n(55199);const d="style_select-list-item-description__ndJSX__WLZHg",u="style_select-list-item-label__gyGnt__WLZHg";var p=n(83136),m=n.n(p),h=(n(96316),n(70579));const g=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,h.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,h.jsx)(o.default,{title:i,open:n,onClose:()=>{a(!1)},footer:d&&(0,h.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(l)},children:c(e)})}},e);return(0,h.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))}),_=g,f=(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,h.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,h.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),x=(0,l.forwardRef)((e,t)=>(0,h.jsx)(g,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l}=n;return(0,h.jsxs)(c.Flex,{gap:8,children:[(0,h.jsx)(i.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},t.avatar)),{},{size:32,gender:"M"})),(0,h.jsxs)(c.Flex,{vertical:!0,gap:8,align:"center",children:[(0,h.jsx)("div",{className:m()(u,"select-list-item-label"),children:t[l]}),t.description&&(0,h.jsx)("div",{className:m()(d,"select-list-item-description"),children:t.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__WLZHg",c="style_is-popup__L0973__WLZHg";var d=n(64671),u=n(73884),p=n(51941),m=n(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],g=e=>{let{value:t,debounce:n,onSearch:r,isPopup:g,placeholder:_,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]:g}),value:A,placeholder:_,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)}}))};g.defaultProps={debounce:500};const _=g},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(24818)},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:()=>E,TM:()=>te,LH:()=>F,Ay:()=>V,NY:()=>M,DF:()=>z});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),g=n.n(h),_=n(15797),f=n.n(_),x=n(33097),A=n.n(x);const y="style_address__DIuRX__WLZHg",v="style_is-popup__tqVvp__WLZHg",C="style_title__FAe12__WLZHg",j="style_scroll-box__JWiDl__WLZHg",b="style_scroll-plus-box__lidEW__WLZHg",N="style_content__lAARZ__WLZHg",L="style_col-left__WPfeS__WLZHg",S="style_col-right__z0e9-__WLZHg";var w=n(87558),W=n.n(w);const O=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var H=n(47458),P=n(70579);const Z=["name","data","getAddressApi","children"],I=["data"],k=s.A.useContext,F=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=g()(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}})})}},M=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),T={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)},R=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=k(),[s,c]=(0,p.useState)(""),[h,g]=(0,p.useState)("2"),{formatMessage:_}=(0,H.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,i.A)(),{getCity:x,getChinaCities:A,getCountries:w,getList:W,searchCities:O}=(0,p.useMemo)(()=>F(a.data),[a.data]),Z=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,P.jsx)(m.A,{className:b,children:(0,P.jsx)(o.List,{className:r.A.list,size:"small",dataSource:O(s),rowKey:"value",renderItem:e=>(0,P.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{Z(e.value),c("")},children:(0,P.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,P.jsxs)("div",{className:d()(y,{[v]:l.isPopup}),children:[(0,P.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||_({id:"searchCity"}),prefix:(0,P.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,P.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,P.jsx)("div",{className:N,children:I||(0,P.jsxs)(o.Row,{wrap:!1,children:[(0,P.jsx)(o.Col,{className:L,children:(0,P.jsx)(o.Tabs,{centered:!0,onChange:e=>{g(e)},items:[{key:"2",label:(0,P.jsx)(H.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,P.jsx)(m.A,{className:j,children:(0,P.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:A().map(e=>({label:M(e,f),key:e.id}))})})},{key:"1",label:(0,P.jsx)(H.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,P.jsx)(m.A,{className:j,children:(0,P.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:w().map(e=>({label:M(e,f),key:e.id}))})})}]})}),(0,P.jsxs)(o.Col,{flex:1,className:S,children:[(0,P.jsx)(o.Divider,{className:C,orientation:"left",children:M(x(h).city,f)}),(0,P.jsx)(m.A,{className:j,children:(0,P.jsx)(o.Space,{wrap:!0,children:W(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,P.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{Z(e.code)},children:M(e,f)},e.code))})})]})]})})]})},D=e=>(0,P.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,P.jsx)(H.IntlProvider,{moduleName:"AddressSelect",importMessages:O,children:(0,P.jsx)(R,{value:t,setValue:n})})}}));D.defaultProps={overlayWidth:"500px",isPopup:!0,api:T,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:M(e,a)}))}}};const E=(0,w.withFetch)(e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,Z);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)(()=>F(n),[n]);return l?s(c):(0,P.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}))}})});E.defaultProps=(0,l.A)((0,l.A)({},T),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(M(a,s),"\xb7").concat(M(n,s)):M(n,s)}});const z=e=>{const t=(0,w.withFetch)(t=>{let{data:n}=t,s=(0,a.A)(t,I);const r=(0,p.useMemo)(()=>F(n),[n]);return(0,P.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},T),t};D.AddressEnum=D.Enum=E,D.createAddressApi=F,D.withAddressApi=z,D.getLabelForLocal=M;const V=D;var B=n(10986),K=n.n(B),U=n(78491),q=n.n(U),Q=n(20492),X=n(22616),Y=n.n(X),G=n(1488),J=n.n(G);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]=K()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,H.useIntl)({moduleName:"Common"}),g=q()(e=>{i&&i(e)});return(0,P.jsx)("div",{ref:g,children:(0,P.jsxs)(o.Row,{gutter:10,children:[(0,P.jsx)(o.Col,{span:12,children:(0,P.jsx)(V,(0,l.A)((0,l.A)({},Y()(d,m)),{},{className:c,disabled:s,single:!0,size:n,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,P.jsx)(o.Col,{span:12,children:(0,P.jsx)(o.Input,(0,l.A)((0,l.A)({},J()(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,H.createWithIntl)({importMessages:Q.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(24818)}}]);
|
|
2
|
+
//# sourceMappingURL=3856.2c46e978.chunk.js.map
|