@kne-components/components-core 0.3.23 → 0.3.25

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.
Files changed (154) hide show
  1. package/build/asset-manifest.json +101 -101
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/1248.67931b10.chunk.css +2 -0
  6. package/build/static/css/{1248.420f95be.chunk.css.map → 1248.67931b10.chunk.css.map} +1 -1
  7. package/build/static/css/1559.7b8768bb.chunk.css +2 -0
  8. package/build/static/css/1559.7b8768bb.chunk.css.map +1 -0
  9. package/build/static/css/196.8c09be8b.chunk.css +2 -0
  10. package/build/static/css/196.8c09be8b.chunk.css.map +1 -0
  11. package/build/static/css/{1996.ad6ff799.chunk.css → 1996.211ac13b.chunk.css} +2 -2
  12. package/build/static/css/{1996.ad6ff799.chunk.css.map → 1996.211ac13b.chunk.css.map} +1 -1
  13. package/build/static/css/206.fcad2b2a.chunk.css +2 -0
  14. package/build/static/css/{206.3b192e68.chunk.css.map → 206.fcad2b2a.chunk.css.map} +1 -1
  15. package/build/static/css/2309.a68da376.chunk.css +2 -0
  16. package/build/static/css/2309.a68da376.chunk.css.map +1 -0
  17. package/build/static/css/2630.d4c9ee14.chunk.css +2 -0
  18. package/build/static/css/2630.d4c9ee14.chunk.css.map +1 -0
  19. package/build/static/css/2716.fcbeceb6.chunk.css +2 -0
  20. package/build/static/css/{2716.22bb4fae.chunk.css.map → 2716.fcbeceb6.chunk.css.map} +1 -1
  21. package/build/static/css/2765.ce93154a.chunk.css +2 -0
  22. package/build/static/css/2765.ce93154a.chunk.css.map +1 -0
  23. package/build/static/css/{3771.a69d0a04.chunk.css → 3771.a75832db.chunk.css} +2 -2
  24. package/build/static/css/{3771.a69d0a04.chunk.css.map → 3771.a75832db.chunk.css.map} +1 -1
  25. package/build/static/css/{3790.c883c3e8.chunk.css → 3790.f182dca9.chunk.css} +2 -2
  26. package/build/static/css/{3790.c883c3e8.chunk.css.map → 3790.f182dca9.chunk.css.map} +1 -1
  27. package/build/static/css/{4010.30ee21c7.chunk.css → 4010.579f87a0.chunk.css} +2 -2
  28. package/build/static/css/4010.579f87a0.chunk.css.map +1 -0
  29. package/build/static/css/{4277.cf236e3f.chunk.css → 4277.dcdff215.chunk.css} +2 -2
  30. package/build/static/css/{4277.cf236e3f.chunk.css.map → 4277.dcdff215.chunk.css.map} +1 -1
  31. package/build/static/css/5422.a46cc205.chunk.css +2 -0
  32. package/build/static/css/{5422.3fba146d.chunk.css.map → 5422.a46cc205.chunk.css.map} +1 -1
  33. package/build/static/css/{6763.60886b75.chunk.css → 6763.b640b8ab.chunk.css} +2 -2
  34. package/build/static/css/{6763.60886b75.chunk.css.map → 6763.b640b8ab.chunk.css.map} +1 -1
  35. package/build/static/css/6980.06771633.chunk.css +12 -0
  36. package/build/static/css/{6980.565a5873.chunk.css.map → 6980.06771633.chunk.css.map} +1 -1
  37. package/build/static/css/7227.ec5d25fb.chunk.css +2 -0
  38. package/build/static/css/{7227.f4fd739b.chunk.css.map → 7227.ec5d25fb.chunk.css.map} +1 -1
  39. package/build/static/css/{760.b6f1ffe9.chunk.css → 760.2465a5e0.chunk.css} +2 -2
  40. package/build/static/css/{760.b6f1ffe9.chunk.css.map → 760.2465a5e0.chunk.css.map} +1 -1
  41. package/build/static/css/8278.9e1f3b06.chunk.css +2 -0
  42. package/build/static/css/{8278.ae2486d0.chunk.css.map → 8278.9e1f3b06.chunk.css.map} +1 -1
  43. package/build/static/css/{8593.1131ec48.chunk.css → 8593.2b6148ba.chunk.css} +2 -2
  44. package/build/static/css/{8593.1131ec48.chunk.css.map → 8593.2b6148ba.chunk.css.map} +1 -1
  45. package/build/static/css/9119.624f3f8d.chunk.css +2 -0
  46. package/build/static/css/{9119.806ab331.chunk.css.map → 9119.624f3f8d.chunk.css.map} +1 -1
  47. package/build/static/css/9556.dadf736a.chunk.css +2 -0
  48. package/build/static/css/{9556.60bfb7c6.chunk.css.map → 9556.dadf736a.chunk.css.map} +1 -1
  49. package/build/static/css/9772.7d2ae4ee.chunk.css +2 -0
  50. package/build/static/css/{9772.40db844e.chunk.css.map → 9772.7d2ae4ee.chunk.css.map} +1 -1
  51. package/build/static/js/{1248.e04383c7.chunk.js → 1248.09f57a8e.chunk.js} +3 -3
  52. package/build/static/js/{1248.e04383c7.chunk.js.map → 1248.09f57a8e.chunk.js.map} +1 -1
  53. package/build/static/js/{196.cb3c0c0f.chunk.js → 196.fd24ea9b.chunk.js} +1 -1
  54. package/build/static/js/1996.af00b183.chunk.js +2 -0
  55. package/build/static/js/{1996.977f3d73.chunk.js.map → 1996.af00b183.chunk.js.map} +1 -1
  56. package/build/static/js/{206.4fca34c5.chunk.js → 206.8a2f2de2.chunk.js} +2 -2
  57. package/build/static/js/{206.4fca34c5.chunk.js.map → 206.8a2f2de2.chunk.js.map} +1 -1
  58. package/build/static/js/2084.e6825fae.chunk.js +2 -0
  59. package/build/static/js/2084.e6825fae.chunk.js.map +1 -0
  60. package/build/static/js/2309.1bfa9aa6.chunk.js +2 -0
  61. package/build/static/js/{2309.1942d3a5.chunk.js.map → 2309.1bfa9aa6.chunk.js.map} +1 -1
  62. package/build/static/js/2630.c82c6dca.chunk.js +2 -0
  63. package/build/static/js/{2630.fae65a5f.chunk.js.map → 2630.c82c6dca.chunk.js.map} +1 -1
  64. package/build/static/js/{2716.db48e70e.chunk.js → 2716.644519c6.chunk.js} +3 -3
  65. package/build/static/js/{2716.db48e70e.chunk.js.map → 2716.644519c6.chunk.js.map} +1 -1
  66. package/build/static/js/3735.b66b9f08.chunk.js +2 -0
  67. package/build/static/js/3735.b66b9f08.chunk.js.map +1 -0
  68. package/build/static/js/{3771.b35db118.chunk.js → 3771.0a40e214.chunk.js} +2 -2
  69. package/build/static/js/{3771.b35db118.chunk.js.map → 3771.0a40e214.chunk.js.map} +1 -1
  70. package/build/static/js/{3790.7fe81760.chunk.js → 3790.da31c709.chunk.js} +2 -2
  71. package/build/static/js/{3790.7fe81760.chunk.js.map → 3790.da31c709.chunk.js.map} +1 -1
  72. package/build/static/js/3856.e385fe24.chunk.js +2 -0
  73. package/build/static/js/3856.e385fe24.chunk.js.map +1 -0
  74. package/build/static/js/4277.3e65cd72.chunk.js +2 -0
  75. package/build/static/js/{4277.5999c2e5.chunk.js.map → 4277.3e65cd72.chunk.js.map} +1 -1
  76. package/build/static/js/4474.0bf10705.chunk.js +2 -0
  77. package/build/static/js/4474.0bf10705.chunk.js.map +1 -0
  78. package/build/static/js/{5422.e9ae0d22.chunk.js → 5422.b9e41056.chunk.js} +2 -2
  79. package/build/static/js/{5422.e9ae0d22.chunk.js.map → 5422.b9e41056.chunk.js.map} +1 -1
  80. package/build/static/js/6116.1d428c3f.chunk.js +2 -0
  81. package/build/static/js/6116.1d428c3f.chunk.js.map +1 -0
  82. package/build/static/js/6763.905b0cbf.chunk.js +2 -0
  83. package/build/static/js/{6763.22216403.chunk.js.map → 6763.905b0cbf.chunk.js.map} +1 -1
  84. package/build/static/js/{6980.d67616cd.chunk.js → 6980.b188f436.chunk.js} +2 -2
  85. package/build/static/js/6980.b188f436.chunk.js.map +1 -0
  86. package/build/static/js/{7227.2044244e.chunk.js → 7227.dba68e64.chunk.js} +3 -3
  87. package/build/static/js/{7227.2044244e.chunk.js.map → 7227.dba68e64.chunk.js.map} +1 -1
  88. package/build/static/js/{760.f16a43aa.chunk.js → 760.75823b64.chunk.js} +2 -2
  89. package/build/static/js/{760.f16a43aa.chunk.js.map → 760.75823b64.chunk.js.map} +1 -1
  90. package/build/static/js/8278.a280389c.chunk.js +2 -0
  91. package/build/static/js/8278.a280389c.chunk.js.map +1 -0
  92. package/build/static/js/8593.cbbcd335.chunk.js +2 -0
  93. package/build/static/js/{8593.f380ac2a.chunk.js.map → 8593.cbbcd335.chunk.js.map} +1 -1
  94. package/build/static/js/8985.58ef32fd.chunk.js +2 -0
  95. package/build/static/js/8985.58ef32fd.chunk.js.map +1 -0
  96. package/build/static/js/9119.920424d3.chunk.js +2 -0
  97. package/build/static/js/{9119.cc873032.chunk.js.map → 9119.920424d3.chunk.js.map} +1 -1
  98. package/build/static/js/9556.d33bd444.chunk.js +3 -0
  99. package/build/static/js/{9556.283ac73f.chunk.js.map → 9556.d33bd444.chunk.js.map} +1 -1
  100. package/build/static/js/{9772.21874f13.chunk.js → 9772.3dc17a4a.chunk.js} +2 -2
  101. package/build/static/js/{9772.21874f13.chunk.js.map → 9772.3dc17a4a.chunk.js.map} +1 -1
  102. package/build/static/js/main.b9f5f79d.js +2 -0
  103. package/build/static/js/main.b9f5f79d.js.map +1 -0
  104. package/package.json +3 -3
  105. package/build/static/css/1248.420f95be.chunk.css +0 -2
  106. package/build/static/css/1559.10a05420.chunk.css +0 -2
  107. package/build/static/css/1559.10a05420.chunk.css.map +0 -1
  108. package/build/static/css/196.9a790e32.chunk.css +0 -2
  109. package/build/static/css/196.9a790e32.chunk.css.map +0 -1
  110. package/build/static/css/206.3b192e68.chunk.css +0 -2
  111. package/build/static/css/2309.d47b23b4.chunk.css +0 -2
  112. package/build/static/css/2309.d47b23b4.chunk.css.map +0 -1
  113. package/build/static/css/2630.e3e8f1f9.chunk.css +0 -2
  114. package/build/static/css/2630.e3e8f1f9.chunk.css.map +0 -1
  115. package/build/static/css/2716.22bb4fae.chunk.css +0 -2
  116. package/build/static/css/2765.41472873.chunk.css +0 -2
  117. package/build/static/css/2765.41472873.chunk.css.map +0 -1
  118. package/build/static/css/4010.30ee21c7.chunk.css.map +0 -1
  119. package/build/static/css/5422.3fba146d.chunk.css +0 -2
  120. package/build/static/css/6980.565a5873.chunk.css +0 -12
  121. package/build/static/css/7227.f4fd739b.chunk.css +0 -2
  122. package/build/static/css/8278.ae2486d0.chunk.css +0 -2
  123. package/build/static/css/9119.806ab331.chunk.css +0 -2
  124. package/build/static/css/9556.60bfb7c6.chunk.css +0 -2
  125. package/build/static/css/9772.40db844e.chunk.css +0 -2
  126. package/build/static/js/1996.977f3d73.chunk.js +0 -2
  127. package/build/static/js/2084.a0409a1c.chunk.js +0 -2
  128. package/build/static/js/2084.a0409a1c.chunk.js.map +0 -1
  129. package/build/static/js/2309.1942d3a5.chunk.js +0 -2
  130. package/build/static/js/2630.fae65a5f.chunk.js +0 -2
  131. package/build/static/js/3735.f7e99525.chunk.js +0 -2
  132. package/build/static/js/3735.f7e99525.chunk.js.map +0 -1
  133. package/build/static/js/3856.308647b4.chunk.js +0 -2
  134. package/build/static/js/3856.308647b4.chunk.js.map +0 -1
  135. package/build/static/js/4277.5999c2e5.chunk.js +0 -2
  136. package/build/static/js/4474.a13d3bee.chunk.js +0 -2
  137. package/build/static/js/4474.a13d3bee.chunk.js.map +0 -1
  138. package/build/static/js/6116.298a91a4.chunk.js +0 -2
  139. package/build/static/js/6116.298a91a4.chunk.js.map +0 -1
  140. package/build/static/js/6763.22216403.chunk.js +0 -2
  141. package/build/static/js/6980.d67616cd.chunk.js.map +0 -1
  142. package/build/static/js/8278.223ea344.chunk.js +0 -2
  143. package/build/static/js/8278.223ea344.chunk.js.map +0 -1
  144. package/build/static/js/8593.f380ac2a.chunk.js +0 -2
  145. package/build/static/js/8985.efc93c05.chunk.js +0 -2
  146. package/build/static/js/8985.efc93c05.chunk.js.map +0 -1
  147. package/build/static/js/9119.cc873032.chunk.js +0 -2
  148. package/build/static/js/9556.283ac73f.chunk.js +0 -3
  149. package/build/static/js/main.9ecd33da.js +0 -2
  150. package/build/static/js/main.9ecd33da.js.map +0 -1
  151. /package/build/static/js/{1248.e04383c7.chunk.js.LICENSE.txt → 1248.09f57a8e.chunk.js.LICENSE.txt} +0 -0
  152. /package/build/static/js/{2716.db48e70e.chunk.js.LICENSE.txt → 2716.644519c6.chunk.js.LICENSE.txt} +0 -0
  153. /package/build/static/js/{7227.2044244e.chunk.js.LICENSE.txt → 7227.dba68e64.chunk.js.LICENSE.txt} +0 -0
  154. /package/build/static/js/{9556.283ac73f.chunk.js.LICENSE.txt → 9556.d33bd444.chunk.js.LICENSE.txt}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ropertyKey.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__4FixO\",\"state-result-tag\":\"style_state-result-tag__CssDz__4FixO\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__4FixO\",\"event-tag\":\"style_event-tag__cg6SE__4FixO\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__4FixO\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__4FixO\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__4FixO\",\"show-bg\":\"style_show-bg__OcL+R__4FixO\",\"tag-text\":\"style_tag-text__JHCt+__4FixO\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__4FixO\"};","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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itive.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__kw4DA\",\"state-result-tag\":\"style_state-result-tag__CssDz__kw4DA\",\"state-skill-tag\":\"style_state-skill-tag__k0bQE__kw4DA\",\"event-tag\":\"style_event-tag__cg6SE__kw4DA\",\"state-tag-filter-result-wrapper\":\"style_state-tag-filter-result-wrapper__QYS5z__kw4DA\",\"state-tag-filter-name\":\"style_state-tag-filter-name__iJaJd__kw4DA\",\"state-tag-filterResult\":\"style_state-tag-filterResult__KTkot__kw4DA\",\"show-bg\":\"style_show-bg__OcL+R__kw4DA\",\"tag-text\":\"style_tag-text__JHCt+__kw4DA\",\"state-tag-wrapper\":\"style_state-tag-wrapper__A-gTE__kw4DA\"};","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([[3735,6116],{46116:(e,l,n)=>{n.r(l),n.d(l,{IntlProvider:()=>r.IntlProvider,createIntl:()=>p,createIntlProvider:()=>g,createWithIntlProvider:()=>m,default:()=>p,localeLoader:()=>i});var t=n(73884),a=n.n(t),r=n(61032),o={};for(const b in r)["default","IntlProvider","createIntl","createIntlProvider","createWithIntlProvider","localeLoader"].indexOf(b)<0&&(o[b]=()=>r[b]);n.d(l,o);var c=n(83694);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},s.apply(null,arguments)}const u={},i=(e,l,n)=>(u[e]||(u[e]={}),u[e][n||"global"]=Object.assign({},u[e][n||"global"],l),u),f=(e,l)=>{Object.keys(e).forEach((n=>{u[n]||(u[n]={}),u[n][l||"global"]=Object.assign({},u[n][l||"global"],e[n])}))},d=["locale"],v=function(){for(var e=arguments.length,l=new Array(e),n=0;n<e;n++)l[n]=arguments[n];return"object"===typeof l[0]&&"string"===typeof l[0].defaultLocale?Object.assign({},l[0]):{defaultLocale:l[0],defaultMessage:l[1],namespace:l[2]}},g=function(){const{defaultLocale:e,defaultMessage:l,namespace:n,messages:t}=v(...arguments);l&&i(e,l,n),t&&f(t,n);const o=e=>{let{children:l}=e;return l((0,r.useIntl)())};return l=>{let{locale:t,children:s}=l;var i;const f=(0,c.useContext)(),d=t||(null==f?void 0:f.locale)||e||"zh-CN";return a().createElement(r.IntlProvider,{messages:null==(i=u[d])?void 0:i[n||"global"],locale:d},"function"===typeof s?a().createElement(o,null,s):s)}},m=function(){const{defaultLocale:e,defaultMessage:l,namespace:n,messages:o}=v(...arguments);return l&&i(e,l,n),o&&f(o,n),l=>(0,t.forwardRef)(((t,o)=>{var i;let{locale:f}=t,v=function(e,l){if(null==e)return{};var n={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==l.indexOf(t))continue;n[t]=e[t]}return n}(t,d);const g=(0,c.useContext)(),m=f||(null==g?void 0:g.locale)||e||"zh-CN";return a().createElement(r.IntlProvider,{messages:null==(i=u[m])?void 0:i[n||"global"],locale:m},a().createElement(l,s({},v,{ref:o})))}))},p=e=>{let{locale:l="zh-CN",message:n,namespace:t}=e;var a;return n&&i(l,n,t),(0,r.createIntl)({locale:l,messages:null==(a=u[l])?void 0:a[t||"global"]})}}}]);
2
+ //# sourceMappingURL=3735.b66b9f08.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/3735.b66b9f08.chunk.js","mappings":"4tBAAO,MAAMA,EAAU,CAAC,EAElBC,EAASA,CAACC,EAAQC,EAAeC,KAChCJ,EAAQE,KACXF,EAAQE,GAAU,CAAC,GAErBF,EAAQE,GAAQE,GAAa,UAAYC,OAAOC,OAAO,CAAC,EAAGN,EAAQE,GAAQE,GAAa,UAAWD,GAC5FH,GAGIO,EAAiBA,CAACC,EAAUJ,KACvCC,OAAOI,KAAKD,GAAUE,SAAQR,IACvBF,EAAQE,KACXF,EAAQE,GAAU,CAAC,GAErBF,EAAQE,GAAQE,GAAa,UAAYC,OAAOC,OAAO,CAAC,EAAGN,EAAQE,GAAQE,GAAa,UAAWI,EAASN,Q,aCC1GS,EAAY,WAAa,QAAAC,EAAAC,UAAAC,OAATC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,GACxB,MAAuB,kBAAZF,EAAK,IAAoD,kBAA1BA,EAAK,GAAGG,cACzCb,OAAOC,OAAO,CAAC,EAAGS,EAAK,IAGzB,CAAEG,cAAeH,EAAK,GAAII,eAAgBJ,EAAK,GAAIX,UAAWW,EAAK,GAC5E,EAEaK,EAAqB,WAChC,MAAM,cAAEF,EAAa,eAAEC,EAAc,UAAEf,EAAS,SAAEI,GAAaG,KAAUE,WACzEM,GAAkBlB,EAAaiB,EAAeC,EAAgBf,GAC9DI,GAAYD,EAAe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AE7C,OAAA0C,EAAQpC,SAAyB,OAAjBsC,EAAE9C,EAAQ4C,SAAO,EAAfE,EAAkB1C,GAAa,Y","sources":["../node_modules/@kne/react-intl/src/loader.js","../node_modules/@kne/react-intl/src/index.js"],"sourcesContent":["export const message = {};\n\nconst loader = (locale, localeMessage, namespace) => {\n if (!message[locale]) {\n message[locale] = {};\n }\n message[locale][namespace || 'global'] = Object.assign({}, message[locale][namespace || 'global'], localeMessage);\n return message;\n};\n\nexport const messagesLoader = (messages, namespace) => {\n Object.keys(messages).forEach(locale => {\n if (!message[locale]) {\n message[locale] = {};\n }\n message[locale][namespace || 'global'] = Object.assign({}, message[locale][namespace || 'global'], messages[locale]);\n });\n};\n\nexport default loader;\n","import React, { forwardRef } from 'react';\nimport localeLoader, { message, messagesLoader } from './loader';\nimport { IntlProvider, createIntl as createIntlBase, useIntl } from 'react-intl';\nimport { useContext } from '@kne/global-context';\n\nconst withIntlProvider = WrappedComponents =>\n forwardRef(({ locale: propsLocale, namespace, ...props }, ref) => {\n const context = useContext();\n const locale = propsLocale || context?.locale || 'zh-CN';\n return (\n <IntlProvider messages={message[locale]?.[namespace || 'global']} locale={locale}>\n <WrappedComponents {...props} ref={ref} />\n </IntlProvider>\n );\n });\n\nconst argsParse = (...args) => {\n if (typeof args[0] === 'object' && typeof args[0].defaultLocale === 'string') {\n return Object.assign({}, args[0]);\n }\n\n return { defaultLocale: args[0], defaultMessage: args[1], namespace: args[2] };\n};\n\nexport const createIntlProvider = (...args) => {\n const { defaultLocale, defaultMessage, namespace, messages } = argsParse(...args);\n defaultMessage && localeLoader(defaultLocale, defaultMessage, namespace);\n messages && messagesLoader(messages, namespace);\n const InnerComponent = ({ children }) => {\n const intl = useIntl();\n return children(intl);\n };\n return ({ locale: propsLocale, children }) => {\n const context = useContext();\n const locale = propsLocale || context?.locale || defaultLocale || 'zh-CN';\n return (\n <IntlProvider messages={message[locale]?.[namespace || 'global']} locale={locale}>\n {typeof children === 'function' ? <InnerComponent>{children}</InnerComponent> : children}\n </IntlProvider>\n );\n };\n};\n\nexport const createWithIntlProvider = (...args) => {\n const { defaultLocale, defaultMessage, namespace, messages } = argsParse(...args);\n defaultMessage && localeLoader(defaultLocale, defaultMessage, namespace);\n messages && messagesLoader(messages, namespace);\n return WrappedComponents =>\n forwardRef(({ locale: propsLocale, ...props }, ref) => {\n const context = useContext();\n const locale = propsLocale || context?.locale || defaultLocale || 'zh-CN';\n return (\n <IntlProvider messages={message[locale]?.[namespace || 'global']} locale={locale}>\n <WrappedComponents {...props} ref={ref} />\n </IntlProvider>\n );\n });\n};\n\nexport * from 'react-intl';\n\nexport const createIntl = ({ locale = 'zh-CN', message: propsMessage, namespace }) => {\n propsMessage && localeLoader(locale, propsMessage, namespace);\n return createIntlBase({ locale, messages: message[locale]?.[namespace || 'global'] });\n};\n\nexport { localeLoader, IntlProvider };\n\nexport default createIntl;\n"],"names":["message","loader","locale","localeMessage","namespace","Object","assign","messagesLoader","messages","keys","forEach","argsParse","_len","arguments","length","args","Array","_key","defaultLocale","defaultMessage","createIntlProvider","InnerComponent","_ref","children","useIntl","_ref3","propsLocale","_message$locale2","context","useContext","React","IntlProvider","createWithIntlProvider","WrappedComponents","forwardRef","_ref2","ref","_message$locale3","props","_objectWithoutPropertiesLoose","_excluded2","_extends","createIntl","_ref4","_locale","propsMessage","_message$_locale","createIntl$1"],"sourceRoot":""}
@@ -1,2 +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:()=>E,TabsModal:()=>z,TabsModalButton:()=>q,default:()=>P,useConfirmModal:()=>S,useModal:()=>k,useTabsModal:()=>T});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__4FixO",large:"style_large__iaqVE__4FixO","modal-body-inner":"style_modal-body-inner__4PhpA__4FixO","modal-title":"style_modal-title__dswaw__4FixO","modal-outer":"style_modal-outer__r3SkX__4FixO","modal-body":"style_modal-body__jQJSI__4FixO","right-options-modal":"style_right-options-modal__FajDP__4FixO","right-options-row":"style_right-options-row__-mPb9__4FixO","right-options-col":"style_right-options-col__3ilee__4FixO","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__4FixO",content:"style_content__k6MIF__4FixO","modal-footer":"style_modal-footer__-prbN__4FixO","modal-close":"style_modal-close__Oa5Kl__4FixO","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__4FixO","is-danger":"style_is-danger__H5110__4FixO",title:"style_title__orTym__4FixO","has-title":"style_has-title__qy0Wp__4FixO"},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"],x=["children"],A=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],b="Modal",j=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,f.jsxs)(i.Row,{wrap:!1,className:c["right-options-row"],children:[(0,f.jsx)(i.Col,{span:24-t,className:c["right-options-col"],children:l}),(0,f.jsx)(i.Col,{span:t,className:c["right-options-col"],children:o})]}):l},w=(e,o)=>"".concat(e-48-(o?58:0),"px"),O=e=>{let{footer:o,footerButtons:t,onConfirm:r,onCancel:a,onClose:c,targetProps:h}=e;return(0,f.jsxs)(i.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(i.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,f.jsx)(i.Col,{children:(0,f.jsx)(i.Space,{children:(t||[{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:b})}),onClick:a},{type:"primary",children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:b})}),onClick:r}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:i,autoClose:r=!0,display:a}=e,d=(0,n.A)(e,g);const m=t||u.default;return(0,s.createElement)(m,(0,l.A)((0,l.A)({},d),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(i&&i(...o,h));return r&&!1!==l&&c&&c(),l}}))}))})})]})},N=e=>{let{title:o,footer:t,disabledScroller:l,footerButtons:n,onClose:r,closable:d,onConfirm:m,onCancel:p,children:u,targetProps:g}=e;const y=(0,s.useRef)(null);return(0,f.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,f.jsx)(i.Button,{"data-testid":"components-core-modal-close-btn",className:c["modal-close"],type:"text",icon:(0,f.jsx)(h.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),r&&r()}}),o&&(0,f.jsx)("div",{className:c["modal-title"],children:o}),(0,f.jsx)(_.A,{className:a()(c["modal-body"],{[c["is-disabled-scroller"]]:l},"modal-body"),ref:y,children:(0,f.jsx)("div",{className:a()(c["modal-body-inner"],"modal-body-inner"),children:u})}),null!==t||n?(0,f.jsx)("div",{className:a()(c["modal-footer"],"modal-footer"),children:(0,f.jsx)(O,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:g})}):null]})},v=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:s,onClose:i,onConfirm:r,onCancel:a,footer:c,rightOptions:d,rightSpan:m,disabledScroller:h,childrenRef:u,children:_}=e;const g=e=>(e=Object.assign({},{title:n},e),(0,f.jsx)(N,{title:p(e.title,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),closable:s,onClose:i,onConfirm:r,onCancel:a,footerButtons:p(t,(0,l.A)((0,l.A)({},e),{},{close:i})),disabledScroller:h,footer:p(c,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),targetProps:Object.assign({},e,{childrenRef:u,close:i}),children:(0,f.jsx)(j,{rightSpan:m,options:p(d,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),children:p(_,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i}))})}));return"function"===typeof o?o(g,{childrenRef:u,close:i}):g({})},F=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:i,footerButtons:r,className:h,size:p,title:u,onClose:_,onConfirm:g,onCancel:C,closable:x,disabledScroller:A,withDecorator:b,childrenRef:j}=e,O=(0,n.A)(e,y);return(0,l.A)((0,l.A)((0,l.A)({},O),{},{icon:null,centered:!0,title:null,maskClosable:!!O.hasOwnProperty("maskClosable")&&O.maskClosable,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:v({withDecorator:b,title:u,closable:x,onClose:_,onConfirm:g,onCancel:C,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:A,children:o,childrenRef:j})})})},k=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=F((0,l.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,n.A)(i,x),{destroy:c}=e.info((0,l.A)((0,l.A)({},a),{},{content:r}));return s.close=c,s}},S=()=>{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,A),x=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||x["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||x["confirm"===r?y:r]}):null,_]})}));t.close=o}return t}},P=e=>{let{size:o="default"}=e,t=(0,n.A)(e,C);const r=(0,s.useRef)(null);return(0,f.jsx)(i.Modal,(0,l.A)({},F(Object.assign({},t,{size:o,childrenRef:r}))))},R=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],M=["withDecorator"],B=["children"],D=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,R);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,M);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,B);return"function"===typeof o?o(t):o}})},z=e=>(0,f.jsx)(P,(0,l.A)({},D(e))),T=()=>{const e=k();return o=>e(D(o))};var I=t(73025);const K=["modalProps"],q=e=>{const o=T();return e.api?(0,f.jsx)(I.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)}}))},E=e=>{const o=k();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,K);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(I.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o}))}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(34581),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
2
- //# sourceMappingURL=3771.b35db118.chunk.js.map
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:()=>E,TabsModal:()=>F,TabsModalButton:()=>q,default:()=>R,useConfirmModal:()=>P,useModal:()=>S,useTabsModal:()=>T});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__kw4DA",large:"style_large__iaqVE__kw4DA","modal-body-inner":"style_modal-body-inner__4PhpA__kw4DA","modal-title":"style_modal-title__dswaw__kw4DA","modal-outer":"style_modal-outer__r3SkX__kw4DA","modal-body":"style_modal-body__jQJSI__kw4DA","right-options-modal":"style_right-options-modal__FajDP__kw4DA","right-options-row":"style_right-options-row__-mPb9__kw4DA","right-options-col":"style_right-options-col__3ilee__kw4DA","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__kw4DA",content:"style_content__k6MIF__kw4DA","modal-footer":"style_modal-footer__-prbN__kw4DA","modal-close":"style_modal-close__Oa5Kl__kw4DA","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__kw4DA","is-danger":"style_is-danger__H5110__kw4DA",title:"style_title__orTym__kw4DA","has-title":"style_has-title__qy0Wp__kw4DA"},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 A=["ButtonComponent","onClick","autoClose","display"],g=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],y=["size"],C=["children"],w=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],b="Modal",j=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},x=(e,o)=>"".concat(e-48-(o?58:0),"px"),k=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:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:b})}),onClick:a},{type:"primary",children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:b})}),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,A);const m=t||u.default;return(0,s.createElement)(m,(0,l.A)((0,l.A)({},d),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(i&&i(...o,h));return r&&!1!==l&&c&&c(),l}}))}))})})]})},N=e=>{let{title:o,footer:t,disabledScroller:l,footerButtons:n,onClose:r,closable:d,onConfirm:m,onCancel:p,children:u,targetProps:A}=e;const g=(0,s.useRef)(null);return(0,f.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,f.jsx)(i.Button,{"data-testid":"components-core-modal-close-btn",className:c["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:g,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)(k,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:A})}):null]})},v=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:s,onClose:i,onConfirm:r,onCancel:a,footer:c,rightOptions:d,rightSpan:m,disabledScroller:h,childrenRef:u,children:_}=e;const A=e=>(e=Object.assign({},{title:n},e),(0,f.jsx)(N,{title:p(e.title,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),closable:s,onClose:i,onConfirm:r,onCancel:a,footerButtons:p(t,(0,l.A)((0,l.A)({},e),{},{close:i})),disabledScroller:h,footer:p(c,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),targetProps:Object.assign({},e,{childrenRef:u,close:i}),children:(0,f.jsx)(j,{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(A,{childrenRef:u,close:i}):A({})},D=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:i,footerButtons:r,className:h,size:p,title:u,onClose:_,onConfirm:A,onCancel:y,closable:C,disabledScroller:w,withDecorator:b,childrenRef:j}=e,k=(0,n.A)(e,g);return(0,l.A)((0,l.A)((0,l.A)({},k),{},{icon:null,centered:!0,title:null,maskClosable:!!k.hasOwnProperty("maskClosable")&&k.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":x(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":x(300,o)}}:{width:"1000px",style:{"--min-modal-height":x(500,o)}})(p,!(null===i&&!r))),{},{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:"Modal",children:v({withDecorator:b,title:u,closable:C,onClose:_,onConfirm:A,onCancel:y,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:w,children:o,childrenRef:j})})})},S=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=D((0,l.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,n.A)(i,C),{destroy:c}=e.info((0,l.A)((0,l.A)({},a),{},{content:r}));return s.close=c,s}},P=()=>{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:A={},confirmType:g="info"}=s,y=(0,n.A)(s,w),C=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},A);if(e[r]){const{destroy:o}=e[r]((0,l.A)((0,l.A)({},y),{},{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?g:r)),type:d||C["confirm"===r?g: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?g:r)),type:d||C["confirm"===r?g:r]}):null,_]})}));t.close=o}return t}},R=e=>{let{size:o="default"}=e,t=(0,n.A)(e,y);const r=(0,s.useRef)(null);return(0,f.jsx)(i.Modal,(0,l.A)({},D(Object.assign({},t,{size:o,childrenRef:r}))))},M=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],B=["withDecorator"],O=["children"],z=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,M);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,B);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,O);return"function"===typeof o?o(t):o}})},F=e=>(0,f.jsx)(R,(0,l.A)({},z(e))),T=()=>{const e=S();return o=>e(z(o))};var I=t(73025);const K=["modalProps"],q=e=>{const o=T();return e.api?(0,f.jsx)(I.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)}}))},E=e=>{const o=S();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,K);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(I.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o}))}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(34581),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
2
+ //# sourceMappingURL=3771.0a40e214.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3771.b35db118.chunk.js","mappings":"yWACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,+YCOHE,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAASF,EAC3D,OAAKH,GAGGM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL,SAAA,EAC5DM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAM,GAAKT,EAAWK,UAAWC,EAAM,qBAAqBL,SAC5DA,KAELM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAMT,EAAWK,UAAWC,EAAM,qBAAqBL,SACvDL,OAPEK,GAYTS,EAAaA,CAACC,EAAQhB,IAClB,GAANiB,OAAUD,EAAS,IAAMhB,EAAS,GAAK,GAAE,MAoBvCkB,EAASC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A0BnG,EAAXoG,GAAMnG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACEpC,EAAAA,EAAAA,KAACyD,EAAAA,QAAMjB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,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,QAAe3B,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__4FixO\",\"large\":\"style_large__iaqVE__4FixO\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__4FixO\",\"modal-title\":\"style_modal-title__dswaw__4FixO\",\"modal-outer\":\"style_modal-outer__r3SkX__4FixO\",\"modal-body\":\"style_modal-body__jQJSI__4FixO\",\"right-options-modal\":\"style_right-options-modal__FajDP__4FixO\",\"right-options-row\":\"style_right-options-row__-mPb9__4FixO\",\"right-options-col\":\"style_right-options-col__3ilee__4FixO\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__4FixO\",\"content\":\"style_content__k6MIF__4FixO\",\"modal-footer\":\"style_modal-footer__-prbN__4FixO\",\"modal-close\":\"style_modal-close__Oa5Kl__4FixO\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__4FixO\",\"is-danger\":\"style_is-danger__H5110__4FixO\",\"title\":\"style_title__orTym__4FixO\",\"has-title\":\"style_has-title__qy0Wp__4FixO\"};","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={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"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 : (\n <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","Button","icon","Icon","e","stopPropagation","SimpleBar","classnames","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
+ {"version":3,"file":"static/js/3771.0a40e214.chunk.js","mappings":"yWACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,+YCOHE,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAASF,EAC3D,OAAKH,GAGGM,EAAAA,EAAAA,MAACC,EAAAA,IAA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D,KAUJ5F,EAAAA,EAAAA,KAACmI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAWF,MARtClI,EAAAA,EAAAA,KAACyD,EAAAA,QAAMjB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDN,GAAK,IACTV,QAASA,KACP0G,EAAUhG,EAAMmG,iBAO1B,EA9BqBnG,IACnB,MAAMuD,EAAQD,IACd,IAAKtD,EAAM0D,IAAK,CACd,MAAM,WAAEyC,GAA0BnG,EAAXoG,GAAMnG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACEpC,EAAAA,EAAAA,KAACyD,EAAAA,QAAMjB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,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,QAAe3B,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__kw4DA\",\"large\":\"style_large__iaqVE__kw4DA\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__kw4DA\",\"modal-title\":\"style_modal-title__dswaw__kw4DA\",\"modal-outer\":\"style_modal-outer__r3SkX__kw4DA\",\"modal-body\":\"style_modal-body__jQJSI__kw4DA\",\"right-options-modal\":\"style_right-options-modal__FajDP__kw4DA\",\"right-options-row\":\"style_right-options-row__-mPb9__kw4DA\",\"right-options-col\":\"style_right-options-col__3ilee__kw4DA\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__kw4DA\",\"content\":\"style_content__k6MIF__kw4DA\",\"modal-footer\":\"style_modal-footer__-prbN__kw4DA\",\"modal-close\":\"style_modal-close__Oa5Kl__kw4DA\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__kw4DA\",\"is-danger\":\"style_is-danger__H5110__kw4DA\",\"title\":\"style_title__orTym__kw4DA\",\"has-title\":\"style_has-title__qy0Wp__kw4DA\"};","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={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"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 : (\n <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","Button","icon","Icon","e","stopPropagation","SimpleBar","classnames","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,n)=>{n.r(i),n.d(i,{default:()=>a.a});var s=n(60922),a=n.n(s),l=n(22717),t=n.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,i)=>{e[i[0]]=i[1]}),{})})},75363:(e,i,n)=>{n.r(i),n.d(i,{default:()=>h});const s=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var a=n(47458),l=n(64671),t=n(55199),r=n(83136),c=n.n(r);const o="style_helper-guide__K5xFw__4FixO",d="style_inner__bMKeU__4FixO",u="style_content__xTfWZ__4FixO",p="style_link__93j7O__4FixO";var v=n(48731),_=n(70579);const h=e=>{let{name:i,className:n}=e;return(0,_.jsx)(a.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:i,children:e=>e&&e.value&&(0,_.jsx)("div",{className:c()(o,n),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.7fe81760.chunk.js.map
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__kw4DA",d="style_inner__bMKeU__kw4DA",u="style_content__xTfWZ__kw4DA",p="style_link__93j7O__kw4DA";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.da31c709.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3790.7fe81760.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,Y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C,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__4FixO\",\"inner\":\"style_inner__bMKeU__4FixO\",\"content\":\"style_content__xTfWZ__4FixO\",\"link\":\"style_link__93j7O__4FixO\"};","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":""}
1
+ {"version":3,"file":"static/js/3790.da31c709.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C,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__kw4DA\",\"inner\":\"style_inner__bMKeU__kw4DA\",\"content\":\"style_content__xTfWZ__kw4DA\",\"link\":\"style_link__93j7O__kw4DA\"};","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:()=>W,TabsModal:()=>T,TabsModalButton:()=>V,default:()=>P,useConfirmModal:()=>O,useModal:()=>D,useTabsModal:()=>R});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__kw4DA",large:"style_large__iaqVE__kw4DA","modal-body-inner":"style_modal-body-inner__4PhpA__kw4DA","modal-title":"style_modal-title__dswaw__kw4DA","modal-outer":"style_modal-outer__r3SkX__kw4DA","modal-body":"style_modal-body__jQJSI__kw4DA","right-options-modal":"style_right-options-modal__FajDP__kw4DA","right-options-row":"style_right-options-row__-mPb9__kw4DA","right-options-col":"style_right-options-col__3ilee__kw4DA","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__kw4DA",content:"style_content__k6MIF__kw4DA","modal-footer":"style_modal-footer__-prbN__kw4DA","modal-close":"style_modal-close__Oa5Kl__kw4DA","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__kw4DA","is-danger":"style_is-danger__H5110__kw4DA",title:"style_title__orTym__kw4DA","has-title":"style_has-title__qy0Wp__kw4DA"},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 A=["ButtonComponent","onClick","autoClose","display"],f=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],x=["size"],v=["children"],y=["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},w=(e,t)=>"".concat(e-48-(t?58:0),"px"),b=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,A);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}}))}))})})]})},N=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:l,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:A}=e;const f=(0,s.useRef)(null);return(0,_.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,_.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:c["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:f,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)(b,{footer:n,footerButtons:l,onConfirm:u,onCancel:m,onClose:o,targetProps:A})}):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 A=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(N,{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(A,{childrenRef:h,close:r}):A({})},k=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:g,onConfirm:A,onCancel:x,closable:v,disabledScroller:y,withDecorator:C,childrenRef:j}=e,b=(0,l.A)(e,f);return(0,a.A)((0,a.A)((0,a.A)({},b),{},{icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.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":w(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":w(300,t)}}:{width:"1000px",style:{"--min-modal-height":w(500,t)}})(m,!(null===r&&!o))),{},{children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:S({withDecorator:C,title:h,closable:v,onClose:g,onConfirm:A,onCancel:x,footer:r,footerButtons:o,rightOptions:n,rightSpan:s,disabledScroller:y,children:t,childrenRef:j})})})},D=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},r=k((0,a.A)({onClose:()=>s.close(),childrenRef:t},n)),{children:o}=r,i=(0,l.A)(r,v),{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:A={},confirmType:f="info"}=s,x=(0,l.A)(s,y),v=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},A);if(e[o]){const{destroy:t}=e[o]((0,a.A)((0,a.A)({},x),{},{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?f:o)),type:d||v["confirm"===o?f: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?f:o)),type:d||v["confirm"===o?f:o]}):null,g]})}));n.close=t}return n}},P=e=>{let{size:t="default"}=e,n=(0,l.A)(e,x);const o=(0,s.useRef)(null);return(0,_.jsx)(r.Modal,(0,a.A)({},k(Object.assign({},n,{size:t,childrenRef:o}))))},L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],I=["withDecorator"],F=["children"],M=e=>{let{items:t,className:n,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,L);return(0,a.A)((0,a.A)({},u),{},{className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,_.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:a}=t,s=(0,l.A)(t,I);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,F);return"function"===typeof t?t(n):t}})},T=e=>(0,_.jsx)(P,(0,a.A)({},M(e))),R=()=>{const e=D();return t=>e(M(t))};var E=n(73025);const z=["modalProps"],V=e=>{const t=R();return e.api?(0,_.jsx)(E.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)}}))},W=e=>{const t=D();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,z);return(0,_.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,_.jsx)(E.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>U,Eo:()=>B,NR:()=>S,Ay:()=>q});var a=n(55199),l=n(83136),s=n.n(l),r=n(89379),o=n(53986),i=n(30509),c=n(25438),d=n(78784),u=n(33097),p=n.n(u),m=n(34677),h=n.n(m);const g="create-list_scroll-loader__zoaS7__kw4DA",_="create-list_is-popup__t3d-G__kw4DA",A="create-list_is-not-full__FXtX1__kw4DA",f="create-list_search-input__tV3vf__kw4DA",x="create-list_left__EXr3i__kw4DA",v="create-list_list-header__3xeJa__kw4DA",y="create-list_is-modal__BMfya__kw4DA";var C=n(73161),j=n(47458),w=n(70579);const b=["extra"],N=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}=N(),b=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),S=p()(r.requestParams,[b.paramsType,b.current],1),k=p()(r.requestParams,[b.paramsType,b.pageSizeName])||b.pageSize,{formatMessage:D}=(0,j.useIntl)({moduleName:"Common"}),O=u.dataFormat(r.data),{right:P,leftBottom:L,leftSpan:I=24}=u,F=1===n.length&&"all"===n[0];return(0,w.jsxs)(a.Row,{wrap:!1,className:P?s()("is-not-full",A):"",children:[(0,w.jsxs)(a.Col,{span:I,className:s()(x,"advance-select-left"),children:[u.getSearchProps?(0,w.jsx)(C.A,{isPopup:u.isPopup,className:s()(f,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||D({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,w.jsxs)(a.Flex,{className:s()(v,{[y]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,w.jsxs)(a.Space,{children:[(0,w.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,w.jsx)(a.Typography.Link,{children:F?u.allLabel||(0,w.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(n.length).concat(u.countUnit||D({id:"items"}))})]}):(0,w.jsx)("div",{}),u.allowSelectAll?(0,w.jsx)("div",{children:(0,w.jsx)(a.Checkbox,{checked:F,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,w.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,w.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,w.jsx)("div",{})]}),(0,w.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(g,{[_]:u.isPopup}),noMore:!O.total||S*k>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[b.paramsType]:{[b.pageSizeName]:k,[b.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:F,onSelect:e=>{if(u.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}},a=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:a})):a})()}),L&&L({fetchApi:r,value:n,mapping:m})]}),P&&P({value:n,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,n=(0,o.A)(e,b);return(0,w.jsx)(i.A,(0,r.A)((0,r.A)({},n),{},{extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,w.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},k="list_list__TGynD__kw4DA",D="list_list-item__WSswf__kw4DA",O="list_is-selected__6Wkgt__kw4DA",P="list_item-label__bYzhe__kw4DA",L="list_item-des__2nsEn__kw4DA",I="list_is-disabled__qxCvO__kw4DA",F="list_is-selected-all__Mp-hG__kw4DA";var M=n(40438),T=n(64671);const R="user_list-inner__V508e__kw4DA",E="user_list-info__y2nWo__kw4DA",z="user_selected-icon__9OQJL__kw4DA",V="user_item-des__o+7UR__kw4DA",W="user_is-selected-all__2q0VZ__kw4DA",B=S({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:o}=e;return(0,w.jsx)(a.List,{size:"small",className:s()(k,{[F]:o,[W]:o}),dataSource:t,renderItem:e=>{const t=l(e);return(0,w.jsx)(a.List.Item,{className:s()(D,{[O]:t}),onClick:()=>n(e),children:(0,w.jsxs)(a.Row,{wrap:!1,align:"middle",className:R,children:[(0,w.jsx)(a.Col,{children:(0,w.jsx)(M.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,w.jsx)(a.Col,{className:E,flex:1,children:(0,w.jsxs)(a.Space,{direction:"vertical",children:[(0,w.jsx)("span",{className:P,children:e.label}),e.description&&(0,w.jsx)("span",{className:V,children:e.description})]})}),(0,w.jsx)(a.Col,{children:o||t?(0,w.jsx)(T.default,{className:z,type:"icon-gouxuan"}):null})]})})}})}}),K={"is-selected-all":"table_is-selected-all__IwXUY__kw4DA"},U=S({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,w.jsx)(a.Table,{className:s()(K.list,k,{[F]:c,[K["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=S({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,w.jsx)(a.List,{className:s()(k,i,{[F]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,w.jsxs)(a.List.Item,{className:s()(D,{[O]:t.single&&i,[I]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,w.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,w.jsx)(a.Col,{children:(0,w.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,w.jsx)(a.Col,{children:(0,w.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,w.jsx)("span",{className:P,children:e.label}),e.description&&(0,w.jsx)("span",{className:L,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(34581),l=n.n(a);n(46733);const s=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>v,Ay:()=>A,FI:()=>x,Zi:()=>f,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"],A=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]}))}})},f=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}))},x=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]}))}})},v=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),A=c()(p),f=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",f),A(g.current),()=>{g.current.removeEventListener("scroll",f)}}),[f,A,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__kw4DA","is-popup":"common_is-popup__fJq+g__kw4DA",list:"common_list__TKFzS__kw4DA","list-item":"common_list-item__ASse7__kw4DA","is-selected":"common_is-selected__-PU4Y__kw4DA","item-label":"common_item-label__u+qz1__kw4DA","item-des":"common_item-des__no2z0__kw4DA"}},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:()=>Z});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__kw4DA",overlay:"style_overlay__La5mO__kw4DA",input:"style_input__SpJTE__kw4DA","is-disabled":"style_is-disabled__joxdl__kw4DA","input-icon":"style_input-icon__vVd8R__kw4DA",large:"style_large__En6mL__kw4DA",small:"style_small__DY0AQ__kw4DA","input-inner":"style_input-inner__PWy27__kw4DA","input-custom":"style_input-custom__ktsWD__kw4DA","display-content":"style_display-content__hIKo+__kw4DA","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__kw4DA","selected-tag":"style_selected-tag__zXZZO__kw4DA","selected-tag-list":"style_selected-tag-list__xUIms__kw4DA","selected-tag-inner":"style_selected-tag-inner__Z5gPL__kw4DA","text-inner":"style_text-inner__H24hY__kw4DA",placeholder:"style_placeholder__x0ccE__kw4DA","is-modal":"style_is-modal__JU+uq__kw4DA","overlay-content":"style_overlay-content__WKqp+__kw4DA"};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),A=n(55199),f=n(83136),x=n.n(f),v=n(3382),y=n(64671),C=n(79686),j=n.n(C),w=n(41740),b=n.n(w),N=n(74065),S=n.n(N),k=n(21485),D=n(96418),O=n.n(D),P=n(77964),L=n(91176),I=n(47458),F=n(20492),M=n(27047),T=n(70579);const R=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],E=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],z=["setFetchApi","wrapClassName","getContentRef"],V=["api","className","displayItems","wrapClassName"],W=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)},B=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,T.jsx)("span",{className:s["text-inner"],children:_()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,T.jsx)("span",{className:s["text-inner"],children:r||(0,T.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=a.get(e);return(0,T.jsx)(A.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,T.jsx)("span",{className:s["tag-inner"],children:_()(t,"label")||e})},e)})):null},K=(0,u.forwardRef)(((e,t)=>{let{value:n,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,R);const[m,h]=(0,u.useState)(n),g=(0,u.useRef)(n),{formatMessage:_}=(0,I.useIntl)({moduleName:"Common"});g.current=n;const[f,x]=(0,u.useState)(!1),y=e=>{var t;x(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=A.App.useApp(),j=W({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(_({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)((()=>{f&&h(g.current)}),[f]),(0,u.useImperativeHandle)(t,(()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}}))),(0,T.jsx)(v.default,(0,a.A)((0,a.A)({},p),{},{open:f,onConfirm:()=>{r(m)},onClose:()=>{y(!1)},footer:(0,T.jsxs)(A.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,T.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))})),U=(0,u.forwardRef)(((e,t)=>{let{value:n,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:_,overlayClassName:f,disabled:v}=e,y=(0,l.A)(e,E);const[C,j]=(0,u.useState)(!1),w=O()((e=>{var t;j(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)}));return(0,u.useImperativeHandle)(t,(()=>({close:()=>{w(!1)}})),[w]),v?(0,T.jsx)("div",{className:s["input-inner"],children:p}):(0,T.jsx)(A.Popover,(0,a.A)((0,a.A)({},y),{},{open:C,onOpenChange:w,transitionName:"ant-slide-up",overlayClassName:x()(s.overlay,f),arrow:!1,content:(0,T.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:x()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,T.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&r(e),m&&w(!1)}}):o}),(c||h)&&(0,T.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,T.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,T.jsx)("div",{className:s["input-inner"],children:p})}))})),q=(0,h.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,z);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:f}=m,[v,C]=h,{formatMessage:j}=(0,I.useIntl)({moduleName:"Common"}),{single:w,placement:b,getPopupContainer:N,placeholder:S,isPopup:D,disabled:P,showSelectedTag:F,extra:M,inputContent:R,allowClear:E,overlayClassName:V}=_,W=(0,u.useRef)(r);W.current=r;const q=O()(a);(0,u.useEffect)((()=>{q(D?p:d)}),[D,q]),(0,u.useEffect)((()=>{t(Object.assign({},W.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const Q=B({single:w,value:v,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}))}}),H=e=>{let{value:t,setValue:n}=e;return(0,T.jsxs)(A.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!_.single&&Number.isInteger(_.maxLength)&&_.maxLength>0?"(".concat(t.length,"/").concat(_.maxLength,")"):"",":"]}),(0,T.jsx)(k.A,{className:s["selected-tag-list"],children:(0,T.jsx)("div",{className:s["selected-tag-inner"],children:B({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}))}})})})]})},Z=R?R(m):(0,T.jsxs)(A.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,T.jsx)("div",{children:Q||(0,T.jsx)("span",{className:s.placeholder,children:S||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!P&&E?(0,T.jsx)(y.default,{className:x()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,T.jsx)(y.default,{className:x()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return D?(0,T.jsx)(U,{ref:p,overlayWidth:(0,L.v)(Math.max(f,(0,L.j)(_.overlayWidth))),value:v,setValue:C,single:w,disabled:P,inputContent:Z,onOpenChange:_.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>p.current.close(),context:m}):M,renderSelectedContent:H,showSelectedTag:F,trigger:"click",placement:b,getPopupContainer:N,children:_.children}):(0,T.jsxs)("div",{className:s["input-inner"],onClick:()=>{P||d.current.modalOpen()},children:[(0,T.jsx)(K,{size:_.modalSize,ref:d,single:_.single,maxLength:_.maxLength,onOpenChange:_.onOpenChange,disabledScroller:!0,wrapClassName:x()(s.overlay,s["is-modal"],n),title:_.placeholder||j({id:"pleaseSelect"}),value:v,onChange:C,extra:"function"===typeof M?M({close:()=>d.current.close(),context:m}):M,showSelectedTag:F,renderSelectedContent:H,children:_.children}),Z]})})),Q=e=>{let{api:t,className:n,displayItems:r,wrapClassName:o}=e,i=(0,l.A)(e,V);const{locale:d}=(0,M.A)(),[p,h]=(0,u.useState)(""),[g,f]=(0,u.useState)(new Map(r.map((e=>[e.value,e])))),{formatMessage:v}=(0,I.useIntl)({moduleName:"Common"}),[y,C]=(0,u.useState)(0),w=(0,P.A)((e=>{C(e.clientWidth)})),[N,k]=(0,u.useState)({}),{message:D}=A.App.useApp(),O=e=>{const t=e.filter((e=>g.get(e.value)!==e));0!==t.length&&f((e=>{const n=b()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},L=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(i.single?j()(e)?[]:[e]:e||[],O,i.valueType),[F,R]=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:L(i.value)}:{defaultValue:L(i.defaultValue)})),E=W({maxLength:i.maxLength,single:i.single,setValue:R,value:F,message:()=>D.error(v({id:"maxSelectedCount"},{count:i.maxLength}))}),z=(0,u.useRef)(null);return(0,T.jsx)(c,{value:{inputWidth:y,mapping:g,searchText:p,setSearchText:h,appendMapping:O,setItems:e=>{N.setData(e),O(_()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>z.current,fetchApi:N,valueState:[F,E],props:i},children:(0,T.jsx)("div",{ref:w,className:x()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},n),children:(0,T.jsx)(q,(0,a.A)((0,a.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:k,getContentRef:e=>{e.current&&(z.current=e.current)},onRequestSuccess:e=>{O(_()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,I.createWithIntl)({importMessages:F.A,moduleName:"Common"})(Q);H.useContext=i;const Z=H},35063:(e,t,n)=>{n.d(t,{$9:()=>h,Ay:()=>p,e0:()=>m});var a=n(89379),l=n(73884),s=n(21826),r=n.n(s),o=n(3382),i=n(40438),c=n(55199),d=(n(96316),n(70579));const u=(0,l.forwardRef)(((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,d.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:u,onConfirm:p}=t;return(0,d.jsx)(o.default,{title:i,open:n,onClose:()=>{a(!1)},footer:u&&(0,d.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof p)return p(l)},children:c(e)})}},e);return(0,d.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))})),p=u,m=(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,d.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,d.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))})),h=(0,l.forwardRef)(((e,t)=>(0,d.jsx)(u,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l}=n;return(0,d.jsxs)(c.Flex,{gap:8,children:[(0,d.jsx)(i.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},t.avatar)),{},{size:40,gender:"M"})),(0,d.jsxs)(c.Flex,{vertical:!0,gap:8,align:"center",children:[(0,d.jsx)("div",{className:"select-list-item-label",children:t[l]}),t.description&&(0,d.jsx)("div",{className:"select-list-item-description",children:t.description})]})]})}}))))},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__kw4DA",g="style_img__PSExq__kw4DA",_="style_loading__WCOwA__kw4DA",A="style_error__+ECgZ__kw4DA";var f=n(18411),x=n(63743),v=n(70579);const y=["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,v.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,v.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:h,staticUrl:_}=e;const{staticUrl:A}=(0,x.usePreset)(),f=_||A||"";return(0,v.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:f+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,v.jsx)("img",{alt:a,className:d()(n,g),src:t,onClick:h})}})},w=(0,o.A)(j),b=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:A});return a?(0,v.jsx)(j,{alt:s,className:r,data:a,loading:d,error:u,onClick:c,children:o}):l?(0,v.jsx)(w,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:u,innerError:u,apis:i,onClick:c,children:o}):u},N=e=>{let{id:t,src:n,alt:s,onClick:r,loading:o=(0,v.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,v.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:m}=e,g=(0,l.A)(e,y);return(0,v.jsx)("div",(0,a.A)((0,a.A)({},g),{},{"data-testid":"components-core-image",className:d()(p,h),children:b({loading:o,error:c,src:n,id:t,alt:s,className:p,apis:m,onClick:r})}))};N.Avatar=e=>{let{id:t,src:n,alt:s,gender:r,loading:o=(0,v.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,v.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:m,icon:g,children:_,shape:A,size:x=100,width:y,height:j,defaultAvatar:w=f.A,apis:N}=e,S=(0,l.A)(e,C);const k=(()=>{const e=y&&j?{style:{width:y,height:j}}:{size:x};if(y&&y!==j&&(A="square"),t||n)return b({loading:o,error:c,src:n,defaultAvatar:w,id:t,alt:s,className:p,apis:N,children:t=>(0,v.jsx)(u.Avatar,(0,a.A)((0,a.A)({},t),{},{gap:m,shape:A},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,v.jsx)(u.Avatar,(0,a.A)((0,a.A)({},S),{},{src:(0,v.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:A},e))}return(0,v.jsx)(u.Avatar,(0,a.A)((0,a.A)((0,a.A)({},S),{},{gap:m,icon:g,shape:A,size:x,src:w},e),{},{children:_}))})();return(0,v.jsx)("div",(0,a.A)((0,a.A)({},S),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:y&&j?y:x,height:y&&j?j:x},children:k}))};const S=N},41654:(e,t,n)=>{n.d(t,{A:()=>A,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 A=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:()=>A.K,FunctionSelectField:()=>A.A,IndustryEnum:()=>f.W,IndustrySelectField:()=>f.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:()=>x.A,UserField:()=>h.Eo,accept:()=>y.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>m.LH,createDeferred:()=>j(),createListField:()=>h.NR,createTreeUtils:()=>_.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>w.A,numberToPx:()=>b.v,pxToNumber:()=>b.j,useFileUpload:()=>p.lN,useResize:()=>v.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(35063),_=n(45776),A=n(41654),f=n(53392),x=n(89319),v=n(77964),y=n(81348),C=n(1582),j=n.n(C),w=n(55490),b=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>F,ON:()=>_,Ay:()=>V});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 A=n(74065),f=n.n(A),x=n(19853),v=n.n(x),y=n(17342),C=n(83136),j=n.n(C);const w={content:"style_content__Hxlt9__kw4DA",columns:"style_columns__FmtPF__kw4DA","content-item":"style_content-item__i6HCO__kw4DA","last-level-area":"style_last-level-area__2y7jQ__kw4DA","is-popup":"style_is-popup__+r3Mn__kw4DA",menu:"style_menu__WZUVE__kw4DA","scroll-plus-box":"style_scroll-plus-box__QcTst__kw4DA","menu-label":"style_menu-label__iGt0Z__kw4DA","menu-item":"style_menu-item__hXHfm__kw4DA","checkbox-hidden":"style_checkbox-hidden__Xpx7J__kw4DA",loading:"style_loading__ZwrVe__kw4DA"};var b=n(87558),N=n(47458),S=n(25438),k=n(70579),D=n(27047);const O=["data","name","type","cache","children","getLabel"],P=new Map,L=(0,b.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 P.set("".concat(n,"_").concat(s),u),i(u,d)})),I=e=>{const{locale:t}=(0,D.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=P.get(n);return a&&!e.force?e.children(a):(0,k.jsx)(L,(0,l.A)({},e))};I.defaultProps={children:e=>m()(e,"label","")};const F=I,M=["maxLength","nodeFormat","dataFormat"],T=s.A.useContext,R=(0,b.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,k.jsx)(y.A,{className:w["scroll-plus-box"],children:(0,k.jsx)(c.List,{className:S.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,k.jsx)(c.List.Item,{className:j()(S.A["list-item"],{[S.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,k.jsx)("span",{className:S.A["item-label"],children:e.label})})}})})})),E=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:o,props:p}=T(),[h,g]=(0,r.useState)(""),A=i()(p.dataFormat),{formatMessage:x}=(0,N.useIntl)({moduleName:"Common"}),C=o.data,b=(0,r.useMemo)((()=>new Map(A(C).list.map((e=>[e.value,e])))),[C,A]),D=(0,r.useMemo)((()=>_(b)),[b]),O=(0,r.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:D};const[P,L]=(0,r.useState)((()=>{const e=t.find((e=>!!b.get(e)));return D.getSelectedQueue(e||m()(o.data.find((e=>e.children&&e.children.length>0)),"id")||m()(o.data,"[0].id"),b)}));(0,r.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=O.current;if(!e)return;const s=b.get(f()(P));if(!s)return;const r=l.getSelectedQueue(s.id);v()(P,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):L(r)}),[P,b]);const I=(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?D.setNodeChecked(l,t):D.setNodeUnchecked(l,t)})();s.length>a?c.message.error(x({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[f()(s)]:s)},F=e=>{const t=b.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,E=M&&h&&(0,k.jsx)(R,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:b})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{I(!t,e.id),!t&&L(D.getSelectedQueue(e.id,b)),g("")}});return(0,k.jsxs)("div",{className:j()(w.content,{[w["is-popup"]]:p.isPopup,[w["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,k.jsx)(u.A,{isPopup:p.isPopup,className:j()(S.A["search-input"],{[S.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||x({id:"search"}),value:h,onSearch:e=>{g(e)}}),E||(0,k.jsx)("div",{children:(0,k.jsx)(y.A,{className:w.scroller,options:{autoHide:!1},children:(0,k.jsxs)("div",{className:w.columns,children:[P.map(((e,n)=>{const a=b.get(e),o=D.getSiblingNode(e),i=!F(null===a||void 0===a?void 0:a.id)&&n>0;return(0,k.jsx)(y.A,{className:j()(w["content-item"],{[w["last-level-area"]]:i}),children:i?(0,k.jsx)(c.Space,{wrap:!0,children:o.map((e=>(0,r.createElement)(c.Checkbox,(0,l.A)((0,l.A)({},D.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=>I(t.target.checked,e.id)}),e.label)))}):(0,k.jsx)(c.Menu,{className:j()(w.menu),onSelect:e=>{const n=b.get(e.key);if(n)if(F(n.id))L(D.getSelectedQueue(n.id,b));else{const{checked:e}=D.computedCheckboxStatus(n.id,t);I(!e,n.id)}},selectedKeys:n===P.length-1?[]:P,items:o.map((e=>({key:e.id,label:(0,k.jsxs)(c.Space,{className:j()(w["menu-item"],{[w["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,k.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},D.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>I(t.target.checked,e.id)})),(0,k.jsx)("div",{className:w["menu-label"],children:e.label}),F(e.id)&&(0,k.jsx)(d.default,{className:w["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},m()(o,"[0].id",n))})),o.isComplete?null:(0,k.jsx)("div",{className:w.loading,children:(0,k.jsx)(c.Spin,{size:"small"})})]})})})]})},z=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,o=(0,a.A)(e,M);return(0,k.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,k.jsx)(E,(0,l.A)((0,l.A)({},o),{},{size:t,value:n,setValue:a}))}}))};z.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 V=z},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)},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__kw4DA",c="style_is-popup__L0973__kw4DA";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:A}=e,f=(0,l.A)(e,h);const[x,v]=(0,u.useState)(t),y=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,n);return(0,u.useEffect)((()=>{t!==y.current&&(v(t),y.current=t)}),[t]),(0,m.jsx)(s.Input.Search,(0,a.A)((0,a.A)({},f),{},{allowClear:!0,className:o()(A,i,{[c]:g}),value:x,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;y.current=t,v(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:()=>W,TM:()=>te,LH:()=>T,Ay:()=>K,NY:()=>R,DF:()=>B});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),A=n.n(_),f=n(33097),x=n.n(f);const v="style_address__DIuRX__kw4DA",y="style_is-popup__tqVvp__kw4DA",C="style_title__FAe12__kw4DA",j="style_scroll-box__JWiDl__kw4DA",w="style_scroll-plus-box__lidEW__kw4DA",b="style_content__lAARZ__kw4DA",N="style_col-left__WPfeS__kw4DA",S="style_col-right__z0e9-__kw4DA";var k=n(87558),D=n.n(k);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 P=n(47458),L=n(70579);const I=["name","data","getAddressApi","children"],F=["data"],M=s.A.useContext,T=e=>{let{city:t,province:n,country:a}=e;const l=A()((()=>{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:A()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:A()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:A()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:A()((()=>["1",...a.relations.continents].map((e=>Object.assign({id:e},a.list[e]))))),getList:A()(((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:A()((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:A()((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:A()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:A()((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}}))}))}},R=(e,t)=>"en-US"===t?x()(e,"enName"):x()(e,"name"),E={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))},z=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=M(),[s,c]=(0,p.useState)(""),[h,g]=(0,p.useState)("2"),{formatMessage:_}=(0,P.useIntl)({moduleName:"AddressSelect"}),{locale:A}=(0,i.A)(),{getCity:f,getChinaCities:x,getCountries:k,getList:D,searchCities:O}=(0,p.useMemo)((()=>T(a.data)),[a.data]),I=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)},F=s&&(0,L.jsx)(m.A,{className:w,children:(0,L.jsx)(o.List,{className:r.A.list,size:"small",dataSource:O(s),rowKey:"value",renderItem:e=>(0,L.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{I(e.value),c("")},children:(0,L.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,L.jsxs)("div",{className:d()(v,{[y]:l.isPopup}),children:[(0,L.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||_({id:"searchCity"}),prefix:(0,L.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,L.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,L.jsx)("div",{className:b,children:F||(0,L.jsxs)(o.Row,{wrap:!1,children:[(0,L.jsx)(o.Col,{className:N,children:(0,L.jsx)(o.Tabs,{centered:!0,onChange:e=>{g(e)},items:[{key:"2",label:(0,L.jsx)(P.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:x().map((e=>({label:R(e,A),key:e.id})))})})},{key:"1",label:(0,L.jsx)(P.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:k().map((e=>({label:R(e,A),key:e.id})))})})}]})}),(0,L.jsxs)(o.Col,{flex:1,className:S,children:[(0,L.jsx)(o.Divider,{className:C,orientation:"left",children:R(f(h).city,A)}),(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Space,{wrap:!0,children:D(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map((e=>(0,L.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{I(e.code)},children:R(e,A)},e.code)))})})]})]})})]})},V=e=>(0,L.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,L.jsx)(P.IntlProvider,{moduleName:"AddressSelect",importMessages:O,children:(0,L.jsx)(z,{value:t,setValue:n})})}}));V.defaultProps={overlayWidth:"500px",isPopup:!0,api:E,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:R(e,a)})))}}};const W=(0,k.withFetch)((e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,I);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)((()=>T(n)),[n]);return l?s(c):(0,L.jsx)(D(),{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}))}})}));W.defaultProps=(0,l.A)((0,l.A)({},E),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(R(a,s),"\xb7").concat(R(n,s)):R(n,s)}});const B=e=>{const t=(0,k.withFetch)((t=>{let{data:n}=t,s=(0,a.A)(t,F);const r=(0,p.useMemo)((()=>T(n)),[n]);return(0,L.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))}));return t.defaultProps=(0,l.A)({},E),t};V.AddressEnum=V.Enum=W,V.createAddressApi=T,V.withAddressApi=B,V.getLabelForLocal=R;const K=V;var U=n(10986),q=n.n(U),Q=n(78491),H=n.n(Q),Z=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]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,P.useIntl)({moduleName:"Common"}),g=H()((e=>{i&&i(e)}));return(0,L.jsx)("div",{ref:g,children:(0,L.jsxs)(o.Row,{gutter:10,children:[(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(K,(0,l.A)((0,l.A)({},Y()(d,m)),{},{className:c,disabled:s,single:!0,size:n,value:x()(u,"city"),onChange:e=>{p({city:e,detail:x()(u,"detail")})}}))}),(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(o.Input,(0,l.A)((0,l.A)({},J()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:n,value:x()(u,"detail"),onChange:e=>{p({city:x()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,P.createWithIntl)({importMessages:Z.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(24818)}}]);
2
+ //# sourceMappingURL=3856.e385fe24.chunk.js.map