@kne-components/components-core 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +98 -98
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1996.f5a1a668.chunk.css → 1996.2ba1f501.chunk.css} +2 -2
- package/build/static/css/{1996.f5a1a668.chunk.css.map → 1996.2ba1f501.chunk.css.map} +1 -1
- package/build/static/css/206.38c32379.chunk.css +2 -0
- package/build/static/css/206.38c32379.chunk.css.map +1 -0
- package/build/static/css/254.2c2ac186.chunk.css +2 -0
- package/build/static/css/254.2c2ac186.chunk.css.map +1 -0
- package/build/static/css/2628.c5c0052d.chunk.css +2 -0
- package/build/static/css/2628.c5c0052d.chunk.css.map +1 -0
- package/build/static/css/2716.b8fef958.chunk.css +2 -0
- package/build/static/css/{2716.8d69a6ae.chunk.css.map → 2716.b8fef958.chunk.css.map} +1 -1
- package/build/static/css/3652.496f571a.chunk.css +2 -0
- package/build/static/css/3652.496f571a.chunk.css.map +1 -0
- package/build/static/css/{3771.9419317b.chunk.css → 3771.2f112ca8.chunk.css} +2 -2
- package/build/static/css/{3771.9419317b.chunk.css.map → 3771.2f112ca8.chunk.css.map} +1 -1
- package/build/static/css/{3790.0ca6e888.chunk.css → 3790.e353183b.chunk.css} +2 -2
- package/build/static/css/{3790.0ca6e888.chunk.css.map → 3790.e353183b.chunk.css.map} +1 -1
- package/build/static/css/{4277.9d7d4aee.chunk.css → 4277.1b23cb52.chunk.css} +2 -2
- package/build/static/css/{4277.9d7d4aee.chunk.css.map → 4277.1b23cb52.chunk.css.map} +1 -1
- package/build/static/css/4741.dd576c21.chunk.css +2 -0
- package/build/static/css/4741.dd576c21.chunk.css.map +1 -0
- package/build/static/css/4832.d968c310.chunk.css +2 -0
- package/build/static/css/4832.d968c310.chunk.css.map +1 -0
- package/build/static/css/4978.3a60cf80.chunk.css +2 -0
- package/build/static/css/4978.3a60cf80.chunk.css.map +1 -0
- package/build/static/css/4982.624f9021.chunk.css +2 -0
- package/build/static/css/{4982.3c83f069.chunk.css.map → 4982.624f9021.chunk.css.map} +1 -1
- package/build/static/css/5195.004535a9.chunk.css +2 -0
- package/build/static/css/5195.004535a9.chunk.css.map +1 -0
- package/build/static/css/6178.b91f65e7.chunk.css +2 -0
- package/build/static/css/6178.b91f65e7.chunk.css.map +1 -0
- package/build/static/css/{6763.32713698.chunk.css → 6763.09df98bc.chunk.css} +2 -2
- package/build/static/css/{6763.32713698.chunk.css.map → 6763.09df98bc.chunk.css.map} +1 -1
- package/build/static/css/6980.acfaa6aa.chunk.css +12 -0
- package/build/static/css/6980.acfaa6aa.chunk.css.map +1 -0
- package/build/static/css/7227.f076aeeb.chunk.css +2 -0
- package/build/static/css/{7227.a29d5069.chunk.css.map → 7227.f076aeeb.chunk.css.map} +1 -1
- package/build/static/css/{760.9fd33191.chunk.css → 760.d44bde34.chunk.css} +2 -2
- package/build/static/css/{760.9fd33191.chunk.css.map → 760.d44bde34.chunk.css.map} +1 -1
- package/build/static/css/{8593.033eda9f.chunk.css → 8593.e78c0888.chunk.css} +2 -2
- package/build/static/css/{8593.033eda9f.chunk.css.map → 8593.e78c0888.chunk.css.map} +1 -1
- package/build/static/css/9556.6f405e35.chunk.css +2 -0
- package/build/static/css/{9556.ca2d7a30.chunk.css.map → 9556.6f405e35.chunk.css.map} +1 -1
- package/build/static/css/9772.840dec80.chunk.css +2 -0
- package/build/static/css/9772.840dec80.chunk.css.map +1 -0
- package/build/static/js/1996.6cbcaf6d.chunk.js +2 -0
- package/build/static/js/{1996.0c4ef447.chunk.js.map → 1996.6cbcaf6d.chunk.js.map} +1 -1
- package/build/static/js/206.3e1312cd.chunk.js +2 -0
- package/build/static/js/{206.b5c95f94.chunk.js.map → 206.3e1312cd.chunk.js.map} +1 -1
- package/build/static/js/254.858b017f.chunk.js +2 -0
- package/build/static/js/254.858b017f.chunk.js.map +1 -0
- package/build/static/js/257.8e2ec6bc.chunk.js +2 -0
- package/build/static/js/257.8e2ec6bc.chunk.js.map +1 -0
- package/build/static/js/2628.b17506a2.chunk.js +2 -0
- package/build/static/js/{2628.b5fa1bcf.chunk.js.map → 2628.b17506a2.chunk.js.map} +1 -1
- package/build/static/js/2716.ab4ae1fc.chunk.js +3 -0
- package/build/static/js/{2716.41b143cc.chunk.js.map → 2716.ab4ae1fc.chunk.js.map} +1 -1
- package/build/static/js/3549.2b927ef3.chunk.js +2 -0
- package/build/static/js/3549.2b927ef3.chunk.js.map +1 -0
- package/build/static/js/{3652.7f7b43bb.chunk.js → 3652.3e571bf0.chunk.js} +2 -2
- package/build/static/js/{3652.7f7b43bb.chunk.js.map → 3652.3e571bf0.chunk.js.map} +1 -1
- package/build/static/js/3771.42892744.chunk.js +2 -0
- package/build/static/js/{3771.529334ca.chunk.js.map → 3771.42892744.chunk.js.map} +1 -1
- package/build/static/js/{3790.17a95f1c.chunk.js → 3790.86869809.chunk.js} +2 -2
- package/build/static/js/{3790.17a95f1c.chunk.js.map → 3790.86869809.chunk.js.map} +1 -1
- package/build/static/js/3856.5362d105.chunk.js +2 -0
- package/build/static/js/3856.5362d105.chunk.js.map +1 -0
- package/build/static/js/4277.bc98e2c3.chunk.js +2 -0
- package/build/static/js/{4277.9a17b6c8.chunk.js.map → 4277.bc98e2c3.chunk.js.map} +1 -1
- package/build/static/js/4474.10b945a7.chunk.js +2 -0
- package/build/static/js/4474.10b945a7.chunk.js.map +1 -0
- package/build/static/js/4832.65a395f2.chunk.js +2 -0
- package/build/static/js/{4832.bfc5431d.chunk.js.map → 4832.65a395f2.chunk.js.map} +1 -1
- package/build/static/js/{4982.2086476d.chunk.js → 4982.b944c65e.chunk.js} +3 -3
- package/build/static/js/{4982.2086476d.chunk.js.map → 4982.b944c65e.chunk.js.map} +1 -1
- package/build/static/js/5195.c6d01918.chunk.js +2 -0
- package/build/static/js/5195.c6d01918.chunk.js.map +1 -0
- package/build/static/js/5671.f3ea92fe.chunk.js +2 -0
- package/build/static/js/5671.f3ea92fe.chunk.js.map +1 -0
- package/build/static/js/6763.da67ca07.chunk.js +2 -0
- package/build/static/js/{6763.3b6dfcb7.chunk.js.map → 6763.da67ca07.chunk.js.map} +1 -1
- package/build/static/js/{6980.772ceb5e.chunk.js → 6980.52c81a1c.chunk.js} +2 -2
- package/build/static/js/{6980.772ceb5e.chunk.js.map → 6980.52c81a1c.chunk.js.map} +1 -1
- package/build/static/js/7227.30b4cad4.chunk.js +3 -0
- package/build/static/js/{7227.04a5fcfb.chunk.js.map → 7227.30b4cad4.chunk.js.map} +1 -1
- package/build/static/js/{760.7d5a6fb5.chunk.js → 760.1930cccc.chunk.js} +2 -2
- package/build/static/js/{760.7d5a6fb5.chunk.js.map → 760.1930cccc.chunk.js.map} +1 -1
- package/build/static/js/8593.b9b31b3d.chunk.js +2 -0
- package/build/static/js/{8593.edc74321.chunk.js.map → 8593.b9b31b3d.chunk.js.map} +1 -1
- package/build/static/js/{8985.4996c2be.chunk.js → 8985.e380cabb.chunk.js} +2 -2
- package/build/static/js/8985.e380cabb.chunk.js.map +1 -0
- package/build/static/js/9556.617fe1c8.chunk.js +3 -0
- package/build/static/js/{9556.40da738c.chunk.js.map → 9556.617fe1c8.chunk.js.map} +1 -1
- package/build/static/js/{9772.928d3ea5.chunk.js → 9772.69ecc455.chunk.js} +2 -2
- package/build/static/js/{9772.928d3ea5.chunk.js.map → 9772.69ecc455.chunk.js.map} +1 -1
- package/build/static/js/main.dea7e06d.js +2 -0
- package/build/static/js/main.dea7e06d.js.map +1 -0
- package/package.json +3 -3
- package/build/static/css/206.91e30d2d.chunk.css +0 -2
- package/build/static/css/206.91e30d2d.chunk.css.map +0 -1
- package/build/static/css/254.c86a0ec7.chunk.css +0 -2
- package/build/static/css/254.c86a0ec7.chunk.css.map +0 -1
- package/build/static/css/2628.b3426ae5.chunk.css +0 -2
- package/build/static/css/2628.b3426ae5.chunk.css.map +0 -1
- package/build/static/css/2716.8d69a6ae.chunk.css +0 -2
- package/build/static/css/3652.9451c2a3.chunk.css +0 -2
- package/build/static/css/3652.9451c2a3.chunk.css.map +0 -1
- package/build/static/css/4741.635362c6.chunk.css +0 -2
- package/build/static/css/4741.635362c6.chunk.css.map +0 -1
- package/build/static/css/4832.6d2fa3f9.chunk.css +0 -2
- package/build/static/css/4832.6d2fa3f9.chunk.css.map +0 -1
- package/build/static/css/4978.1e4fbd81.chunk.css +0 -2
- package/build/static/css/4978.1e4fbd81.chunk.css.map +0 -1
- package/build/static/css/4982.3c83f069.chunk.css +0 -2
- package/build/static/css/5195.f217e730.chunk.css +0 -2
- package/build/static/css/5195.f217e730.chunk.css.map +0 -1
- package/build/static/css/6178.e2cc2996.chunk.css +0 -2
- package/build/static/css/6178.e2cc2996.chunk.css.map +0 -1
- package/build/static/css/6980.b3c3735e.chunk.css +0 -12
- package/build/static/css/6980.b3c3735e.chunk.css.map +0 -1
- package/build/static/css/7227.a29d5069.chunk.css +0 -2
- package/build/static/css/9556.ca2d7a30.chunk.css +0 -2
- package/build/static/css/9772.60d15010.chunk.css +0 -2
- package/build/static/css/9772.60d15010.chunk.css.map +0 -1
- package/build/static/js/1996.0c4ef447.chunk.js +0 -2
- package/build/static/js/206.b5c95f94.chunk.js +0 -2
- package/build/static/js/254.7270c9e9.chunk.js +0 -2
- package/build/static/js/254.7270c9e9.chunk.js.map +0 -1
- package/build/static/js/257.c4c6912e.chunk.js +0 -2
- package/build/static/js/257.c4c6912e.chunk.js.map +0 -1
- package/build/static/js/2628.b5fa1bcf.chunk.js +0 -2
- package/build/static/js/2716.41b143cc.chunk.js +0 -3
- package/build/static/js/3549.4b451ae1.chunk.js +0 -2
- package/build/static/js/3549.4b451ae1.chunk.js.map +0 -1
- package/build/static/js/3771.529334ca.chunk.js +0 -2
- package/build/static/js/3856.968507b9.chunk.js +0 -2
- package/build/static/js/3856.968507b9.chunk.js.map +0 -1
- package/build/static/js/4277.9a17b6c8.chunk.js +0 -2
- package/build/static/js/4474.98842d62.chunk.js +0 -2
- package/build/static/js/4474.98842d62.chunk.js.map +0 -1
- package/build/static/js/4832.bfc5431d.chunk.js +0 -2
- package/build/static/js/5195.370dd5fd.chunk.js +0 -2
- package/build/static/js/5195.370dd5fd.chunk.js.map +0 -1
- package/build/static/js/5671.bf2cd7fb.chunk.js +0 -2
- package/build/static/js/5671.bf2cd7fb.chunk.js.map +0 -1
- package/build/static/js/6763.3b6dfcb7.chunk.js +0 -2
- package/build/static/js/7227.04a5fcfb.chunk.js +0 -3
- package/build/static/js/8593.edc74321.chunk.js +0 -2
- package/build/static/js/8985.4996c2be.chunk.js.map +0 -1
- package/build/static/js/9556.40da738c.chunk.js +0 -3
- package/build/static/js/main.75ff5c60.js +0 -2
- package/build/static/js/main.75ff5c60.js.map +0 -1
- /package/build/static/js/{2716.41b143cc.chunk.js.LICENSE.txt → 2716.ab4ae1fc.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4982.2086476d.chunk.js.LICENSE.txt → 4982.b944c65e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.04a5fcfb.chunk.js.LICENSE.txt → 7227.30b4cad4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.40da738c.chunk.js.LICENSE.txt → 9556.617fe1c8.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4277.9a17b6c8.chunk.js","mappings":"+MAGA,QAAeA,G,kBCHf,IAAIC,EAAkBC,EAAQ,OAC1BC,EAAiBD,EAAQ,OACzBE,EAAeF,EAAQ,MACvBG,EAAUH,EAAQ,OAmBtBI,EAAOC,QATP,SAA0BC,EAAQC,GAChC,OAAO,SAASC,EAAYC,GAC1B,IAAIC,EAAOP,EAAQK,GAAcT,EAAkBE,EAC/CU,EAAcJ,EAAcA,IAAgB,CAAC,EAEjD,OAAOG,EAAKF,EAAYF,EAAQJ,EAAaO,EAAU,GAAIE,EAC7D,CACF,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ACTD,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,SAE9BC,EAAQD,GAAQ,CACvB,IAAIG,EAAQN,EAAMI,GAClBf,EAAOK,EAAaY,EAAOd,EAASc,GAAQN,EAC9C,CACA,OAAON,CACT,C,YCGAP,EAAOC,QAJP,SAAcY,GACZ,OAAQA,GAASA,EAAMG,OAAUH,EAAM,QAAKqH,CAC9C,C,kBCpBA,IAAIC,EAAWvI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAASwG,EAAShH,GAClBiH,EAAYzG,EAAS,EAEzB,OAAOA,IAAWA,EAAUyG,EAAYzG,EAASyG,EAAYzG,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/first.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/head.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","module.exports = require('./head');\n","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__3soqB\",\"list\":\"style_list__l8KOo__3soqB\",\"header\":\"style_header__3dcv8__3soqB\",\"item\":\"style_item__d92RS__3soqB\",\"item-box\":\"style_item-box__dd-Lk__3soqB\",\"index-1\":\"style_index-1__f97L0__3soqB\",\"index-2\":\"style_index-2__04vAw__3soqB\",\"item-box-main\":\"style_item-box-main__lnSak__3soqB\",\"item-title\":\"style_item-title__mArMd__3soqB\",\"level-high\":\"style_level-high__Uys7Y__3soqB\",\"level-middle\":\"style_level-middle__EewyC__3soqB\",\"level-low\":\"style_level-low__8kVyL__3soqB\",\"title-icon\":\"style_title-icon__1EoAG__3soqB\",\"item-subtitle\":\"style_item-subtitle__xeFJs__3soqB\",\"close-btn\":\"style_close-btn__7qpG3__3soqB\",\"is-loading\":\"style_is-loading__upVL+__3soqB\",\"item-content\":\"style_item-content__8MlsG__3soqB\",\"link-outer\":\"style_link-outer__kegyZ__3soqB\",\"link\":\"style_link__F2CO-__3soqB\",\"is-last-item\":\"style_is-last-item__MytRl__3soqB\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/4277.bc98e2c3.chunk.js","mappings":"+MAGA,QAAe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AAW,CAClB,CAACC,EAAM,kBAA2B,OAATkC,QAAS,IAATA,OAAS,EAATA,EAAW3F,UAAW6G,EAAW,IAAMlH,KAAK+D,IAAmD,QAAhDoD,EAACnB,EAAUa,OAAQnD,GAASA,GAAQA,EAAKrD,eAAO,IAAA8G,OAAA,EAA/CA,EAAiD9G,OAAQ,IACnI+E,MANO,SAAS8B,gB,YC9JnD7H,EAAOC,QAXP,SAAyBY,EAAOX,EAAQG,EAAUE,GAIhD,IAHA,IAAIU,GAAS,EACTD,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,SAE9BC,EAAQD,GAAQ,CACvB,IAAIG,EAAQN,EAAMI,GAClBf,EAAOK,EAAaY,EAAOd,EAASc,GAAQN,EAC9C,CACA,OAAON,CACT,C,YCGAP,EAAOC,QAJP,SAAcY,GACZ,OAAQA,GAASA,EAAMG,OAAUH,EAAM,QAAKqH,CAC9C,C,kBCpBA,IAAIC,EAAWvI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAASwG,EAAShH,GAClBiH,EAAYzG,EAAS,EAEzB,OAAOA,IAAWA,EAAUyG,EAAYzG,EAASyG,EAAYzG,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/first.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/head.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","module.exports = require('./head');\n","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__1mcnM\",\"list\":\"style_list__l8KOo__1mcnM\",\"header\":\"style_header__3dcv8__1mcnM\",\"item\":\"style_item__d92RS__1mcnM\",\"item-box\":\"style_item-box__dd-Lk__1mcnM\",\"index-1\":\"style_index-1__f97L0__1mcnM\",\"index-2\":\"style_index-2__04vAw__1mcnM\",\"item-box-main\":\"style_item-box-main__lnSak__1mcnM\",\"item-title\":\"style_item-title__mArMd__1mcnM\",\"level-high\":\"style_level-high__Uys7Y__1mcnM\",\"level-middle\":\"style_level-middle__EewyC__1mcnM\",\"level-low\":\"style_level-low__8kVyL__1mcnM\",\"title-icon\":\"style_title-icon__1EoAG__1mcnM\",\"item-subtitle\":\"style_item-subtitle__xeFJs__1mcnM\",\"close-btn\":\"style_close-btn__7qpG3__1mcnM\",\"is-loading\":\"style_is-loading__upVL+__1mcnM\",\"item-content\":\"style_item-content__8MlsG__1mcnM\",\"link-outer\":\"style_link-outer__kegyZ__1mcnM\",\"link\":\"style_link__F2CO-__1mcnM\",\"is-last-item\":\"style_is-last-item__MytRl__1mcnM\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[330,4474],{330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var s=n(29871),l=n.n(s),r={};for(const o in s)"default"!==o&&(r[o]=()=>s[o]);n.d(t,r),l().Fetch=s.FlexBoxFetch;const a=l()},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var s=n(98434),l=n(43856);const{useOnChange:r,useDecorator:a}=s.hooks,o=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(l.AddressSelectField);o.Field=l.AddressSelectField,o.AddressEnum=l.AddressSelectField.AddressEnum,o.createAddressApi=l.AddressSelectField.createAddressApi,o.withAddressApi=l.AddressSelectField.withAddressApi;const i=o,c=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(l.AddressInputField);c.Field=l.AddressInputField},2196:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(55199),l=n(73884),r=n(41381),a=n(330),o=n(894),i=n(47094),c=n(83136),d=n.n(c),u=n(70579);const m=e=>{let{list:t=[],groupArgs:n,itemRender:c,column:m=2,gap:p,className:h,outer:g=(0,u.jsx)(r.default.Part,{}),children:f,..._}=e;const x=!(Number.isInteger(m)&&m>0),{ref:v,column:j}=(0,a.useFlexBox)(x?m:{}),y=(e,l)=>(0,u.jsx)(o.FormInfo,{list:t,column:e,groupArgs:n,itemRender:(e,t)=>"function"===typeof c?c(e,t):(0,u.jsx)(s.Col,{span:t.span,children:e}),children:(e,t)=>(0,u.jsx)(s.Row,{gutter:[p||24,0],className:d()({[i.A["column-not-layout"]]:l}),children:"function"===typeof f?f(e,t):e})});return(0,l.cloneElement)(g,Object.assign({},_,{className:d()(h,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:v}),x?j?y(j.col):y(2,!0):y(m)]}))}},2842:(e,t,n)=>{n.d(t,{default:()=>l.a});n(2885);var s=n(22986),l=n.n(s);n.o(s,"PHONE_NUMBER_INPUT")&&n.d(t,{PHONE_NUMBER_INPUT:function(){return s.PHONE_NUMBER_INPUT}})},5995:(e,t,n)=>{n.d(t,{Ay:()=>c,Vl:()=>d,W6:()=>u});var s=n(3382),l=n(73025),r=n(55199),a=n(76995),o=n(47094),i=n(70579);const c=e=>(0,i.jsx)(s.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),d=()=>{const e=(0,s.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...n}=e;const s=d();if(!n.api){const{modalProps:e,...t}=n;return(0,i.jsx)(r.Button,{...t,onClick:()=>{s(e)}})}return(0,i.jsx)(l.A,{...n,modalFunc:s})}},15209:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(55199),l=n(10986),r=n.n(l),a=n(13050),o=n(70579);const i=e=>{let{...t}=e;const[n,l]=r()(t);return(0,o.jsx)(s.Input,{...t,value:n,onChange:e=>{l(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},c=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...n}=e;const[s]=t,{hooks:l}=s,{useDecorator:r}=l;return r(Object.assign({placeholder:`\u8bf7\u8f93\u5165${n.label||""}`},n))(i)});c.field=i;const d=c},15445:(e,t,n)=>{n.d(t,{A:()=>J,E:()=>K});var s=n(98434),l=n(30096),r=n(34643),a=n(1904),o=n(83230),i=n(55199),c=n(70579);const{useOnChange:d}=s.hooks,u=e=>(0,c.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),m=e=>d(Object.assign({},e))(u);m.Field=m;const p=m;var h=n(81026),g=n(78756),f=n(92328),_=n(2842);const{useOnChange:x,useCheckedToValue:v}=s.hooks,{withChecked:j}=s.hoc,y=j(e=>{let{checked:t,children:n=null,...s}=e;return(0,c.jsxs)(i.Space,{children:[(0,c.jsx)(i.Switch,{checked:t,...s}),"function"===typeof n?n({checked:t}):n]})}),A=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=v(e);return x(t)(y)};A.Field=i.Switch;const b=A;var N=n(89099),S=n(96339),M=n(36972),w=n(15209),C=n(74529),F=n.n(C),P=n(73884),I=n(47458),T=n(33097),k=n.n(T),O=n(21079),L=n(46237),E=n(56259),R=n(29556),D=n(64671),z=n(83136),U=n.n(z),B=n(47094);const $=e=>t=>{const n=F()(...e)(e=>{let{forwardedRef:n,label:s,placeholder:l,...r}=e;return(0,c.jsx)(t,{...r,label:s,placeholder:l,labelRender:()=>r.tips?(0,c.jsxs)(i.Space,{children:[s,(0,c.jsx)(R.default,{content:r.tips,children:(0,c.jsx)("span",{className:U()(B.A["field-tips"],{[B.A["label-hidden"]]:r.labelHidden}),children:(0,c.jsx)(D.default,{type:"icon-xinxi-miaobian"})})})]}):s,ref:n})}),s=(0,P.forwardRef)((e,t)=>(0,c.jsx)(n,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{s[e]=t[e]}),s},W=e=>t=>{let{placeholder:n,label:s,...l}=t;return(0,c.jsx)(I.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,c.jsx)(e,{...l,label:s,placeholder:n||t})})},V=e=>t=>{let{placeholder:n,label:s,...l}=t;return(0,c.jsx)(I.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,c.jsx)(e,{...l,label:s,placeholder:n||t})})},H=e=>t=>{const n=(0,s.useGroup)(),l=k()(n,"name"),r=(0,O.get)(n,"index"),a=(0,L.oc)();return a&&Array.isArray(a)&&a.length>0?a.map(n=>{if("string"===typeof n)return(0,P.createElement)(e,{...t,key:n});const{name:s,label:a,options:o}=n,i=k()(o,"ignore",[]),c=k()(o,"disabled",[]),d=k()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==l)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(i.length>0&&i.find(u))return null;if(d.length>0&&!d.find(u))return null;let m=Object.assign({},t,{name:k()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,s),label:k()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,a)});return c.length>0&&c.find(u)&&(m.disabled=!0,m.rule=""),(0,P.createElement)(e,{...m,key:s})}):(0,c.jsx)(e,{...t})},q=$([H,W])(s.Input),G=$([H,W])(s.InputNumber);q.Password=$([H,W])(s.Input.Password);const Q=$([H,V])(s.DatePicker);Q.MonthPicker=$([H,V])(s.DatePicker.MonthPicker),Q.RangePicker=$([H,V])(s.DatePicker.RangePicker),Q.WeekPicker=$([H,V])(s.DatePicker.WeekPicker);const X=$([H,V])(s.TimePicker);X.RangePicker=$([H,V])(s.TimePicker.RangePicker);const Y=$([H])(e=>{let{placeholder:t,label:n,soFarText:l,...r}=e;const{formatMessage:a}=(0,I.useIntl)({moduleName:"FormInfo"});return(0,c.jsx)(s.DatePickerToday,{...r,label:n,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:l||a({id:"soFarText"})})}),J={Input:q,Checkbox:s.Checkbox,Password:q.Password,InputNumber:G,DatePicker:Q,MonthPicker:Q.MonthPicker,WeekPicker:Q.WeekPicker,DateRangePicker:Q.RangePicker,TimeRangePicker:X.RangePicker,TimePicker:X,DatePickerToday:Y,RadioGroup:$([H])(s.RadioGroup),CheckboxGroup:$([H])(s.CheckboxGroup),Rate:$([H])(s.Rate),Switch:$([H])(b),Slider:$([H])(s.Slider),SalaryInput:$([H,W])(M.A),TypeDateRangePicker:$([H])(E.A),MoneyInput:$([H,W])(f.A),PhoneNumber:$([H,W])(_.default),Upload:$([H])(N.A),Avatar:$([H])(S.A),FunctionSelect:$([H,V])(h.A),IndustrySelect:$([H,V])(g.A),Cascader:$([H,V])(o.A),ColorPicker:$([H,V])(p),AddressSelect:$([H,V])(a.A),AddressInput:$([H,V])(a.N),TreeSelect:$([H,V])(s.TreeSelect),ReactInputNumber:$([H,W])(s.InputNumber),InputUpperCase:$([H,W])(w.A),Select:$([H,V])(s.Select),TextArea:$([H,W])(s.TextArea),AdvancedSelect:$([H,V])(l.Ay),SuperSelect:$([H,V])(r.Ay),SuperSelectTableList:$([H,V])(r.eM),SuperSelectUser:$([H,V])(r.Pg)},K={createWithFieldDecorator:$,withInputDefaultPlaceholder:W,withSelectDefaultPlaceholder:V,withLang:H}},18936:(e,t,n)=>{n.d(t,{A:()=>O});const s={"ant-tag":"style_ant-tag__7ct2q__1mcnM",overlay:"style_overlay__CXfU5__1mcnM",input:"style_input__+OpvV__1mcnM","is-disabled":"style_is-disabled__uX4qq__1mcnM","input-icon":"style_input-icon__E3NjK__1mcnM",large:"style_large__vMozz__1mcnM",small:"style_small__ubqQ+__1mcnM","input-inner":"style_input-inner__sY-6k__1mcnM","input-custom":"style_input-custom__Kxq3n__1mcnM","display-content":"style_display-content__qA1jn__1mcnM","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__1mcnM","selected-tag":"style_selected-tag__BZsMM__1mcnM","selected-tag-list":"style_selected-tag-list__As0ho__1mcnM","selected-tag-inner":"style_selected-tag-inner__2NH59__1mcnM","text-inner":"style_text-inner__Bq2Ji__1mcnM",placeholder:"style_placeholder__odotY__1mcnM","is-modal":"style_is-modal__4cj8L__1mcnM","overlay-content":"style_overlay-content__kpGRn__1mcnM"};var l=n(74981);const{context:r,useContext:a,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),m=n(87558),p=n(33097),h=n.n(p),g=n(55199),f=n(83136),_=n.n(f),x=n(3382),v=n(64671),j=n(79686),y=n.n(j),A=n(41740),b=n.n(A),N=n(74065),S=n.n(N),M=n(17342),w=n(70579);const C=e=>{let{maxLength:t,single:n,setValue:s,value:l,message:r}=e;return e=>s(!n&&Number.isInteger(t)&&t>0&&e.length>t?(r(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),l):e)},F=e=>{let{single:t,value:n,mapping:l,onClose:r}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,w.jsx)("span",{className:s["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):n.map(e=>{const t=l.get(e);return(0,w.jsx)(g.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),r(e,t)},children:(0,w.jsx)("span",{className:s["tag-inner"],children:h()(t,"label")||e})},e)}):null},P=(0,c.forwardRef)((e,t)=>{let{value:n,onChange:l,extra:r,showSelectedTag:a,renderSelectedContent:o,children:i,...d}=e;const[u,m]=(0,c.useState)(n),p=(0,c.useRef)(n);p.current=n;const[h,f]=(0,c.useState)(!1),{message:_}=g.App.useApp(),v=C({maxLength:d.maxLength,single:d.single,setValue:m,value:u,message:_.error});return(0,c.useEffect)(()=>{h&&m(p.current)},[h]),(0,c.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,w.jsx)(x.default,{...d,open:h,onConfirm:()=>{l(u)},onClose:()=>{f(!1)},footer:(a||r)&&(0,w.jsxs)(g.Space,{direction:"vertical",className:s["overlay-footer"],children:[r&&(0,w.jsx)("div",{className:s["overlay-footer-extra"],children:r}),a&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})}),I=(0,c.forwardRef)((e,t)=>{let{value:n,setValue:l,children:r,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:m,overlayWidth:p,wrapClassName:h,...f}=e;const[_,x]=(0,c.useState)(!1);return(0,c.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,w.jsx)(g.Popover,{...f,open:_,onOpenChange:x,overlayClassName:s.overlay,arrow:!1,content:(0,w.jsxs)("div",{style:p?{"--overlay-width":p}:{},className:s["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,w.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof r?r({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&x(!1)}}):r}),(o||m)&&(0,w.jsxs)("div",{className:s["overlay-footer"],children:[m&&(0,w.jsx)("div",{className:s["overlay-footer-extra"],children:m}),o&&a({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,w.jsx)("div",{className:s["input-inner"],children:d})})}),T=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,...l}=e;const[r,o]=(0,c.useState)(!1),i=(0,c.useRef)(null),d=(0,c.useRef)(null),u=a(),{valueState:m,mapping:p,props:h}=u,[f,x]=m,{single:j,placement:y,getPopupContainer:A,placeholder:b,isPopup:N,disabled:S,showSelectedTag:C,extra:T,inputContent:k}=h,O=(0,c.useRef)(l);O.current=l,(0,c.useEffect)(()=>{t(Object.assign({},O.current,{data:l.data,isComplete:l.isComplete}))},[l.data,t,l.isComplete]);const L=F({single:j,value:f,mapping:p,onClose:e=>{x(t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n})}}),E=e=>{let{value:t,setValue:n}=e;return(0,w.jsxs)(g.Space,{className:s["selected-tag"],align:"center",wrap:!0,children:[(0,w.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,w.jsx)(M.A,{className:s["selected-tag-list"],children:(0,w.jsx)("div",{className:s["selected-tag-inner"],children:F({value:t,mapping:p,onClose:e=>{n(t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n})}})})})]})},R=k?k(u):(0,w.jsxs)(g.Space,{className:s["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,w.jsx)("div",{children:L||(0,w.jsx)("span",{className:s.placeholder,children:b})}),r&&f&&f.length>0&&!S?(0,w.jsx)(v.default,{className:_()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,w.jsx)(v.default,{className:_()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,w.jsx)(I,{ref:d,overlayWidth:h.overlayWidth,value:f,setValue:x,single:j,inputContent:R,extra:"function"===typeof T?T({close:()=>d.current.close(),context:u}):T,renderSelectedContent:E,showSelectedTag:C,trigger:"click",placement:y,getPopupContainer:A,children:h.children}):(0,w.jsxs)("div",{className:s["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,w.jsx)(P,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(s.overlay,s["is-modal"],n),title:h.placeholder,value:f,onChange:x,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:C,renderSelectedContent:E,children:h.children}),R]})}),k=e=>{let{api:t,className:n,displayItems:l,wrapClassName:r,...a}=e;const[i,d]=(0,c.useState)(""),[m,p]=(0,c.useState)(new Map(l.map(e=>[e.value,e]))),[f,x]=(0,c.useState)({}),{message:v}=g.App.useApp(),j=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&p(e=>{const n=b()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},A=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map(e=>e.value)))(a.single?y()(e)?[]:[e]:e||[],j,a.valueType),[N,M]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)))(e,m,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:A(a.value)}:{defaultValue:A(a.defaultValue)})),F=C({maxLength:a.maxLength,single:a.single,setValue:M,value:N,message:v.error});return(0,w.jsx)(o,{value:{mapping:m,searchText:i,setSearchText:d,appendMapping:j,setItems:e=>{f.setData(e),j(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,F],props:a},children:(0,w.jsx)("div",{className:_()(s["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],n),children:(0,w.jsx)(T,{...t,wrapClassName:r,loading:null,setFetchApi:x,onRequestSuccess:e=>{j(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};k.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},k.useContext=a;const O=k},19343:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>u,FileButton:()=>j,FileLink:()=>y,List:()=>v,OptionButtons:()=>x,PrintButton:()=>r.PrintButton,default:()=>a(),download:()=>r.download,downloadBlobFile:()=>r.downloadBlobFile,useDownload:()=>r.useDownload,useFileModal:()=>A});n(64674);var s=n(96418),l=n.n(s),r=n(24818),a=n.n(r),o=n(3382),i=n(83136),c=n.n(i),d=n(70579);r.Download.useDownload=r.useDownload,r.Download.downloadBlobFile=r.downloadBlobFile;const u=r.Download;var m=n(26304),p=n.n(m),h=n(74065),g=n.n(h),f=n(96252);const _=e=>{let{apis:t}=e;const n=(0,f.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const s=n({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:p()(e.filename.split(".")).join(".")},onSubmit:async n=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},n,{name:`${n.name}.${g()(e.filename.split("."))}`}),item:e})))&&s.close()}},children:(0,d.jsx)(f.default,{column:1,list:[(0,d.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const n=_({apis:e.apis});return(0,d.jsx)(r.FileListOptionButtons,{...e,onEdit:t=>n(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t,...n}=e;return(0,d.jsx)(o.default,{...Object.assign({},n),onClose:t})}})},v=e=>{let{apis:t,...n}=e;const s=_({apis:t});return(0,d.jsx)(r.FileList,{...n,apis:t,onEdit:e=>s(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof n.renderModal?n.renderModal:e=>{let{onCancel:t,...n}=e;return(0,d.jsx)(o.default,{...Object.assign({},n),onClose:t})}})},j=e=>(0,d.jsx)(r.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...n}=e;return(0,d.jsx)(o.default,{...Object.assign({},n),onClose:t})}}})}),y=e=>{const{className:t,...n}=Object.assign({},e);return(0,d.jsx)(j,{...n,className:c()(t,"btn-no-padding"),type:"link",children:n.children||n.filename||n.originName})},A=e=>{const{title:t,children:n,footer:s}=(0,r.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return l()(()=>a({title:t,children:n,footer:s}))}},24474:(e,t,n)=>{n.r(t),n.d(t,{DragArea:()=>Y,DragAreaOuter:()=>Q,DragButton:()=>q,FileUpload:()=>se,Title:()=>R,UploadButton:()=>G,UploadTips:()=>X,default:()=>ee});var s=n(73884),l=n(33097),r=n.n(l),a=n(55199);const o="style_file-list-outer__wPhbb__1mcnM",i="style_file-list-title__zXM5r__1mcnM",c="style_container__P4RaF__1mcnM",d="style_file-preview-inner__cvE72__1mcnM",u="style_file-preview__M-Asq__1mcnM",m="style_drag-area__Q+lm7__1mcnM",p="style_upload-drag-close__u5o8W__1mcnM",h="style_upload-drag-tips__z7puZ__1mcnM",g="style_upload-drag-icon__sGGoS__1mcnM",f="style_upload-drag-title__9Afmb__1mcnM",_="style_upload-drag-text__o38vS__1mcnM",x="style_title-group__8IJkS__1mcnM",v="style_upload-btn__Q+Jxn__1mcnM",j="style_total-count__z1fyd__1mcnM",y="style_file-select__mHqyI__1mcnM",A="style_file-name__QkvMn__1mcnM",b="style_file-select-info__fOLiM__1mcnM",N="style_file-select-option__AbDrD__1mcnM";var S=n(75087),M=n.n(S),w=n(74065),C=n.n(w),F=n(57469),P=n.n(F),I=n(64671),T=n(19343),k=n(47458),O=n(83136),L=n.n(O),E=n(70579);const R=e=>{let{currentTab:t,setCurrentTab:n,previewMap:s,previewList:l,getPermission:r,currentPreviewFileId:o,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:m=260,getPopupContainer:p}=e;return(0,E.jsx)("div",{className:i,children:(0,E.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(a.Col,{children:(0,E.jsxs)(a.Space,{className:L()(x,"core-file-list-title-group"),size:4,children:[(0,E.jsx)(a.Segmented,{value:t,onChange:n,options:[{label:(0,E.jsxs)(a.Space,{size:4,children:[(0,E.jsx)(I.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(k.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(a.Space,{size:4,children:[(0,E.jsx)(I.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(k.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&o&&s.get(o)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:o,onChange:c,getPopupContainer:p,children:l.map(e=>{let{filename:t,userName:n,date:s,id:l}=e;return(0,E.jsx)(a.Select.Option,{className:N,value:l,children:(0,E.jsxs)(a.Space,{direction:"vertical",children:[(0,E.jsxs)(a.Space,{size:4,align:"start",children:[(0,E.jsx)(M(),{type:C()(t.split(".")),size:14}),(0,E.jsx)(a.Typography.Text,{className:A,ellipsis:!0,style:{"--max-width":`${m}px`},children:t})]}),n||s?(0,E.jsxs)(a.Space,{className:b,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(k.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",n]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(k.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",s&&P()(s).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},l)})}),(0,E.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:r,item:s.get(o),apis:d}),(0,E.jsx)("div",{className:j,children:(0,E.jsx)(k.FormattedMessage,{id:"totalCount",values:{count:l.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(a.Col,{children:u})]})})},D=e=>({"en-US":()=>n.e(3333).then(n.bind(n,63333)),"zh-CN":()=>n.e(8795).then(n.bind(n,48795))}[e]());var z=n(70720),U=n.n(z);const B=(0,s.createContext)({}),{Provider:$}=B,W=()=>(0,s.useContext)(B);var V=n(24818),H=n(81348);const q=e=>{let{children:t}=e;const{onOpenChange:n,getDragButtonEl:s}=W();return(0,E.jsx)("div",{ref:s,className:v,onClick:()=>{n(e=>!e)},children:(0,E.jsxs)(a.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(I.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(k.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},G=e=>{let{children:t}=e;const{accept:n,onFileSelected:s}=W();return(0,E.jsx)(V.FileInput,{className:L()(v,"btn-no-padding"),accept:n,multiple:!0,onChange:s,children:e=>{let{children:n,...s}=e;return(0,E.jsxs)(a.Button,{...s,type:"text",children:[(0,E.jsx)(I.default,{type:"icon-tianjia"}),t,n]})}})},Q=e=>{let{title:t,accept:n=[".png",".jpg",".pdf",".docx",".doc"],fileSize:l=20,maxLength:r,onFileSelected:i,children:d,className:u,defaultOpen:m=!1}=e;const[p,h]=(0,s.useState)(m),g=(0,s.useRef)(null),f=U()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,E.jsx)(k.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)($,{value:{open:p,onOpenChange:h,accept:n,fileSize:l,maxLength:r,onFileSelected:i,getDragButtonEl:e=>{g.current=e}},children:(0,E.jsxs)(a.Space,{className:o,direction:"vertical",children:[t,(0,E.jsx)("div",{className:L()(c,u),ref:f,onDragEnter:()=>{h(!0)},children:d})]})})})},X=e=>{let{icon:t,title:n,renderTips:s=e=>e}=e;const{accept:l,fileSize:r,maxLength:a}=W(),o=s((0,k.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:l.map(e=>e.replace(/^\./,"")).join("\u3001"),size:r}),{fileSize:r,maxLength:a,accept:l});return(0,E.jsxs)("div",{className:L()(h,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:g,children:t||(0,E.jsx)(I.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:f,children:n||(0,E.jsx)(k.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:_,children:o})]})},Y=e=>{let{children:t=(0,E.jsx)(X,{}),className:n}=e;const{open:s,accept:l,onOpenChange:r,onFileSelected:o}=W();return s?(0,E.jsxs)("div",{className:L()(m,n),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;r(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,H.A)(e,l));o(t)},onDragEnd:()=>{r(!1)},children:[(0,E.jsx)(a.Button,{className:p,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(I.default,{type:"icon-close-bold"}),onClick:()=>{r(!1)}}),t]}):null};var J=n(50196),K=n(63743);const Z=e=>{var t,n;let{className:l,maxLength:o=Number.MAX_VALUE,list:i,setList:c,infoItemRenders:m,defaultTab:p="list",defaultPreviewFileId:h,apis:g,getPermission:f=()=>!0,titleExtra:_=null,fileSize:x=20,accept:v=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:j}=e;const{apis:y}=(0,K.usePreset)(),A=Object.assign({},y,g),b=(i||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:N,onFileSelected:S}=(0,V.useFileUpload)({maxLength:o,multiple:!0,value:b,onChange:c,concurrentCount:1,onAdd:()=>{w("list")},onSave:async function(e){if("function"===typeof A.onSave){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];const l=await A.onSave(e,...n);return Object.assign({},{id:null===l||void 0===l?void 0:l.ossId},l)}return r()(e,"data")||{}},onUpload:A.onUpload||A.ossUpload}),[M,w]=(0,s.useState)(p),{formatMessage:C}=(0,k.useIntl)({moduleName:"FileList"}),{message:F}=a.App.useApp(),P=(0,s.useMemo)(()=>new Map(b.map(e=>[e.id,e])),[b]),[I,O]=(0,s.useState)(h||r()(b,"[0].id",null));(0,s.useEffect)(()=>{I&&P.get(I)||O(r()(b,"[0].id",null))},[b,P,I]);const L={...A,onPreview:e=>{O(e.id),w("preview")},onDelete:async e=>{A.onDelete&&!1===await A.onDelete(e)||(c(t=>{const n=t.slice(0),s=t.findIndex(t=>{let{id:n}=t;return n===e.id});return s>-1&&n.splice(s,1),n}),F.success(C({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:n}=e;const s=A.onEdit&&await A.onEdit({formData:t,item:n});return!1!==s&&(c(e=>{const s=e.slice(0),l=e.findIndex(e=>{let{id:t}=e;return t===n.id});return l>-1&&s.splice(l,1,Object.assign({},n,{filename:t.name})),s}),F.success(C({id:"successEditFileName"},{name:n.filename}))),s}},D="function"===typeof _?_({currentPreviewFileId:I,currentTab:M}):_;return(0,E.jsx)("div",{className:l,children:(0,E.jsxs)(Q,{title:(0,E.jsx)(R,{currentTab:M,setCurrentTab:w,previewMap:P,previewList:b,getPermission:f,currentPreviewFileId:I,setCurrentPreviewFileId:O,itemApis:L,getPopupContainer:j,children:(0,E.jsxs)(a.Space,{split:(0,E.jsx)(a.Divider,{type:"vertical"}),children:[D,f("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(q,{children:C({id:"dragText"})}),(0,E.jsx)(G,{children:C({id:"uploadFile"})})]}):null]})}),fileSize:x,maxLength:o,onFileSelected:S,accept:v,defaultOpen:0===b.length,children:["list"===M?(0,E.jsx)(T.List,{dataSource:[...b,...N],getPermission:f,apis:L,infoItemRenders:m}):null,"preview"===M?I?(0,E.jsx)("div",{className:d,children:(0,E.jsx)(J.default,{className:u,src:null===(t=P.get(I))||void 0===t?void 0:t.src,id:I,apis:A,filename:null===(n=P.get(I))||void 0===n?void 0:n.filename})}):(0,E.jsx)(a.Empty,{image:a.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)(Y,{})]})})},ee=e=>(0,E.jsx)(k.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(Z,{...e})});var te=n(10986),ne=n.n(te);const se=e=>{let{maxLength:t=Number.MAX_VALUE,apis:n,getPermission:s=()=>!0,fileSize:l=20,accept:o=[".png",".jpg",".pdf",".docx",".doc"],defaultList:i=[],...c}=e;const{apis:d}=(0,K.usePreset)(),u=Object.assign({},d,n),[m,p]=ne()({defaultList:i,...c},{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:h,onFileSelected:g}=(0,V.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:p,concurrentCount:1,onSave:async function(e){if("function"===typeof u.onSave){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];const l=await u.onSave(e,...n);return Object.assign({},{id:null===l||void 0===l?void 0:l.ossId},l)}return r()(e,"data")||{}},onUpload:u.ossUpload});return(0,E.jsxs)(Q,{title:(0,E.jsxs)(a.Row,{children:[(0,E.jsx)(a.Col,{flex:1}),(0,E.jsx)(a.Col,{children:(0,E.jsxs)(a.Space,{split:(0,E.jsx)(a.Divider,{type:"vertical"}),children:[(0,E.jsx)(q,{}),(0,E.jsx)(G,{children:"\u4e0a\u4f20"})]})})]}),fileSize:l,maxLength:t,onFileSelected:g,accept:o,children:[(0,E.jsx)(T.List,{dataSource:[...h,...m],getPermission:s,apis:u}),(0,E.jsx)(Y,{})]})}},29556:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>w,TooltipInfoLabel:()=>N,default:()=>A});var s=n(55199),l=n(83136),r=n.n(l);const a="style_tooltip__zHGMI__1mcnM",o="style_large__lvmsm__1mcnM",i="style_small__nUt0r__1mcnM",c="style_popup-content__-rKQN__1mcnM",d="style_title__1EQPq__1mcnM",u="style_important-info__qTSZY__1mcnM",m="style_error__yTTq3__1mcnM",p="style_warning__CMJxz__1mcnM",h="style_success__AvJVx__1mcnM",g="style_sub-title__uD8CH__1mcnM",f="style_content__lzgUz__1mcnM",_="style_alone__q6q82__1mcnM",x="style_fetch-content__tEOEV__1mcnM",v="style_fetch-loading__tN-WB__1mcnM",j="style_title-info-icon__iY8Q+__1mcnM";var y=n(70579);const A=e=>{let{overlayClassName:t,title:n,size:l,subtitle:x,content:v,importantInfo:j,importantInfoType:A,moreInfo:b,...N}=e;return(0,y.jsx)(s.Tooltip,{...N,rootClassName:r()(t,a,{[i]:"small"===l,[o]:"large"===l}),title:(0,y.jsxs)(s.Space,{direction:"vertical",className:c,children:[n&&(0,y.jsx)("div",{className:d,children:n}),j&&(0,y.jsx)("div",{className:r()(u,{[h]:"success"===A,[p]:"warning"===A,[m]:"error"===A}),children:j}),x&&(0,y.jsx)("div",{className:g,children:x}),v&&(0,y.jsx)("div",{className:r()(f,{[_]:[n,x,j,b].every(e=>!e)}),children:v}),b&&(0,y.jsx)("div",{children:b})]})})};var b=n(64671);const N=e=>{let{title:t,tooltipTitle:n}=e;return(0,y.jsxs)("div",{children:[t,n?(0,y.jsx)(A,{...n,children:(0,y.jsx)("span",{children:(0,y.jsx)(b.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var S=n(73884),M=n(87558);const w=e=>{let{api:t,children:n,fetchContent:l,showLoading:a=!0,loadingClassName:o,force:i,...c}=e;const[d,u]=(0,S.useState)(!1),m=(0,M.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:h,data:g,send:f}=m;return(0,y.jsx)(A,{...Object.assign({},c,p?l(g,m):{}),open:d,onOpenChange:async e=>{!e||p&&!i||await f({type:"refresh"}),u(e)},children:(0,y.jsxs)("span",{className:x,children:[n,a&&h?(0,y.jsx)(s.Spin,{size:"small",className:r()(o,v)}):null]})})}},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var s=n(98434),l=n(43856);const{useOnChange:r}=s.hooks,a=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(l.UserField),i=a(l.TableField),c=a(l.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return a((0,l.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},30891:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(98434);const l=e=>{let{children:t}=e;const{openApi:n,formData:l}=(0,s.useFormContext)();return t({...n,formData:l})}},34643:(e,t,n)=>{n.d(t,{Ay:()=>u,Pg:()=>c,eM:()=>d});var s=n(98434),l=n(43856),r=n(60586);const{useOnChange:a}=s.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(l.SuperSelectField),c=o(r.$9),d=o(l.SuperSelectTableListField),u=i},35774:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(98434),l=n(81014),r=n(70579);const a=e=>{let{onClick:t,...n}=e;const a=(0,s.useFormContext)();return(0,r.jsx)(l.default,{...n,onClick:e=>t(a,e)})}},36972:(e,t,n)=>{n.d(t,{A:()=>T});var s=n(73884),l=n(87558),r=n(98434),a=n(78491),o=n.n(a),i=n(55199);const c="style_salary__sUOtT__1mcnM",d="style_salary-type__Sl1LC__1mcnM",u="style_input-number__eoEZr__1mcnM",m="style_full__NPqJm__1mcnM",p="style_input-group__toLB7__1mcnM",h="style_input-group-no-mb__C4nzh__1mcnM";var g=n(47458),f=n(55431),_=n(48731),x=n(10986),v=n.n(x),j=n(21079),y=n(70579);const A=(0,l.withFetch)(e=>{let{data:t,...n}=e;return(0,y.jsx)(i.Select,{...n,options:t})}),{useDecorator:b,useUIDecorator:N}=r.hooks,S=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},M=e=>{let{children:t,isError:n}=e;return(0,y.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(n?"is-error":""),children:(0,y.jsx)("div",{className:"react-form__field-main",children:(0,y.jsx)("div",{className:"react-form__field-input",children:(0,s.cloneElement)(t,{className:"react-form__field-component"})})})})},w=e=>{let{getPopupContainer:t,onBlur:n,api:s,isRange:l=!0,placeholder:r,disabled:a,showMonth:f,remindUnit:x,req:b,...N}=e;const[w,C]=v()(N),{formatMessage:F}=(0,g.useIntl)({moduleName:"FormInfo"}),P=F({id:"defaultSelectPlaceholder"},{label:""}),I=F({id:"defaultInputPlaceholder"},{label:""}),T=[6].indexOf((0,j.get)(w,"type"))>-1,k=1===(0,j.get)(w,"type"),O=7===(0,j.get)(w,"type"),L=e=>{if(e)return T?e/1e4:e},E=o()(n||(()=>{}));return(0,y.jsx)("div",{ref:E,className:c,children:(0,y.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,y.jsx)(i.Col,{children:(0,y.jsx)(A,{className:d,...s,value:(0,j.get)(w,"type"),onChange:e=>{C&&C(Object.assign({},k?{}:w,{type:e,min:"",max:""}))},placeholder:r||P,getPopupContainer:t,disabled:a})}),k?null:(0,y.jsxs)(i.Col,{flex:1,children:[l&&(0,y.jsxs)(i.Row,{className:x&&[5,6].includes(null===w||void 0===w?void 0:w.type)?p:h,wrap:!1,children:[(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(M,{isError:!(0,j.get)(w,"min")&&b,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:L((0,j.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{C(Object.assign({},w,{min:T?1e4*e:e}))},description:x&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,y.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,y.jsx)(_.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",T?F({id:"thousand"}):O?"":F({id:"yuan"})]}):null})})}),(0,y.jsx)(i.Col,{children:(0,y.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(M,{isError:!(0,j.get)(w,"max")&&b,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:L((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):O?"":F({id:"yuan"}),onChange:e=>{C(Object.assign({},w,{max:T?1e4*e:e}))}})})}),5===(0,j.get)(w,"type")&&f&&(0,y.jsx)(i.Col,{children:(0,y.jsxs)("span",{className:(0,j.get)(w,"max")&&(0,j.get)(w,"min")&&!(0,j.get)(w,"month")&&b?"error":"",children:[(0,y.jsx)("span",{className:u,children:"X"}),(0,y.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,j.get)(w,"month"),onChange:e=>{C(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!O&&(0,y.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:I,className:m,formatter:S,value:L((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):O?"":F({id:"yuan"}),onChange:e=>{C(Object.assign({},w,{max:T?1e4*e:e}))}}),!l&&O&&(0,y.jsx)(i.Input,{disabled:a,placeholder:I,className:m,onChange:e=>{C(Object.assign({},w,{max:e.target.value}))},value:(0,j.get)(w,"max"),style:{textAlign:"center"}})]})]})})},C={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},F={type:5,min:"",max:"",month:12},P=e=>{let{api:t=C,defaultValue:n=F,...s}=e;return(0,y.jsx)(g.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,y.jsx)(w,{...s,api:t,defaultValue:n})})},I=e=>{var t;return b({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(P)};I.Field=P;const T=I},41381:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l.a});n(55664);var s=n(46203),l=n.n(s),r={};for(const a in s)"default"!==a&&(r[a]=()=>s[a]);n.d(t,r)},45053:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(98434),l=n(55199),r=n(73884),a=n(83136),o=n.n(a),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const m=e=>{let{name:t,groupName:n,overlayClassName:a,errorRender:i=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:l}=e;const{emitter:a,formState:o}=(0,s.useFormContext)(),i=(0,r.useRef)({name:t,groupName:n,groupIndex:l});i.current={name:t,groupName:n,groupIndex:l};const c=(0,r.useRef)(o);c.current=o;const[d,u]=(0,r.useState)(null);return(0,r.useEffect)(()=>{const e=a.addListener("form-field-validate-complete",e=>{let{id:t,validate:n}=e;const l=c.current[t];if(!l)return;const r=i.current;l.name!==r.name||r.groupName&&(l.groupName!==r.groupName||l.groupIndex!==r.groupIndex)||u(2===n.status?Object.assign({},n,{label:l.label,errMsg:s.util.compileErrMsg(n.msg,l.label)}):null)});return()=>{e&&e.remove()}},[a]),d})({name:t,groupName:n,groupIndex:m}),[g,f]=(0,r.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,r.useRef)(null),v=(0,r.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||v.current&&v.current.contains(e)};const[j,y]=(0,r.useState)(0);return(0,r.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const n=new MutationObserver(e);return n.observe(x.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}},[]),(0,u.jsx)(l.Popover,{open:!!_,rootClassName:o()(a,d.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:v,style:{width:j},className:o()(d.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var s=n(73884);const l=(0,s.createContext)([]),{Provider:r,Consumer:a}=l,o=()=>(0,s.useContext)(l),i=r},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var s=n(75363),l=n(73884),r=n(98434),a=n(47094),o=n(70579);const i=(0,l.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,l.useContext)(i),c=(0,r.useGroup)();return n&&(0,o.jsx)(s.default,{className:a.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,n)=>{n.d(t,{A:()=>s});const s={"form-outer":"style_form-outer__IWUs0__1mcnM","form-drawer":"style_form-drawer__uYDXS__1mcnM","table-list":"style_table-list__6lp-A__1mcnM","list-item":"style_list-item__hVzQa__1mcnM","table-list-inner":"style_table-list-inner__uc8DK__1mcnM","table-list-field":"style_table-list-field__JSJfB__1mcnM","table-list-header":"style_table-list-header__KXvKa__1mcnM","is-req":"style_is-req__LfXQf__1mcnM","table-list-extra":"style_table-list-extra__faYTK__1mcnM","list-btn":"style_list-btn__WKYkm__1mcnM","form-info":"style_form-info__B8bAP__1mcnM","list-part":"style_list-part__Ld0GA__1mcnM","is-important":"style_is-important__vaBk1__1mcnM","list-item-part":"style_list-item-part__MzKP7__1mcnM","money-input":"style_money-input__J86Pb__1mcnM","money-description":"style_money-description__Gz3p7__1mcnM","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__1mcnM","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__1mcnM","helper-guide-field":"style_helper-guide-field__Wke3w__1mcnM","error-tip-overlay":"style_error-tip-overlay__aNCGc__1mcnM","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__1mcnM","column-not-layout":"style_column-not-layout__+SXC+__1mcnM","mult-field-item":"style_mult-field-item__eS0nJ__1mcnM","react-form__field-label":"style_react-form__field-label__2U91E__1mcnM","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__1mcnM","form-step-section":"style_form-step-section__RvkHy__1mcnM"}},47338:(e,t,n)=>{n.r(t),n.d(t,{ConfirmButton:()=>s.ConfirmButton,ConfirmLink:()=>s.ConfirmLink,ConfirmText:()=>s.ConfirmText,default:()=>l,withConfirm:()=>s.withConfirm});n(9056);var s=n(86300);const l=s.ConfirmButton},48221:(e,t,n)=>{n.d(t,{Ay:()=>i,WJ:()=>d,Xy:()=>c});var s=n(25963),l=n(73025),r=n(47094),a=n(76995),o=n(70579);const i=e=>(0,o.jsx)(s.default,{...(0,a.A)(Object.assign({},e,{className:r.A["form-drawer"]}))}),c=()=>{const e=(0,s.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},d=e=>{const t=c();return(0,o.jsx)(l.A,{...e,modalFunc:t})}},50196:(e,t,n)=>{n.r(t),n.d(t,{AudioPreview:()=>s.AudioPreview,HtmlPreview:()=>s.HtmlPreview,ImagePreview:()=>s.ImagePreview,OSSFilePreview:()=>s.OSSFilePreview,OfficePreview:()=>s.OfficePreview,PdfPreview:()=>s.PdfPreview,TextPreview:()=>s.TextPreview,UnknownPreview:()=>s.UnknownPreview,VideoPreview:()=>s.VideoPreview,default:()=>s.FilePreview});n(64674);var s=n(24818)},55431:(e,t,n)=>{n.d(t,{A:()=>s});const s=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},56259:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(89319),l=n(98434);const{useOnChange:r}=l.hooks,a=e=>r(Object.assign({},{},e))(s.A);a.Field=s.A;const o=a},64261:(e,t,n)=>{n.d(t,{A:()=>f});var s=n(98434),l=n(57469),r=n.n(l),a=n(34677),o=n.n(a),i=n(33097),c=n.n(i),d=(n(17448),n(2842)),u=n(46732),m=n(13050),p=n(70579);const h=s.RULES.REQ,g=s.RULES.LEN,f=async(e,t)=>{const{locale:n}=Object.assign({},t);s.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),s.interceptors.output.use("photo-string",e=>{var t,n;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(n=t.split("?"))||void 0===n?void 0:n[0])||e.id:e}),s.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):e),s.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>null===e||void 0===e?void 0:e.id):e),s.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),s.interceptors.output.use("to-array",e=>[e]),s.interceptors.input.use("array-single",e=>e?[e]:[]),s.interceptors.output.use("array-single",e=>e?e[0]:null),s.interceptors.input.use("boolean-number",e=>1===e||"1"===e),s.interceptors.output.use("boolean-number",e=>e?1:0),s.interceptors.input.use("un-boolean",e=>!e),s.interceptors.output.use("un-boolean",e=>!e),s.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),s.interceptors.input.use("date-string",e=>e?r()(e):null),s.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),s.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(r()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(r()(e[1])),t}),s.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),s.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),s.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),a=await l(),i=new Map(a.map(e=>{let{ab:t,country_code:n}=e;return[t,n]})),f=new Map(a.map(e=>{let{ab:t,country_code:n}=e;return[n,t]}));s.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:""),s.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:f.get(Number(t[1])),value:t[2]}:{code:f.get(86),value:e}});const _=(e,t)=>{const s={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":`%s\u5fc5\u987b\u7b49\u4e8e${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`}},l=c()(s,`${e}.${n}`);return l||c()(s,`${e}.zh-CN`)};(0,s.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},h(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[s,l,r]=t;let a="";return r===l&&s.length!==Number(r)&&(a="LENGTH_EQUAL"),s.length<l&&(a="LENGTH_MORE"),r&&s.length>r&&(a="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(a,{start:l,end:r})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:d.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,p.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:s.interceptors,RULES:s.RULES}):e))}},76995:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(55431),l=n(98434),r=n(47458),a=n(83799),o=n(83136),i=n.n(o),c=n(47094),d=n(70579);const u="FormInfo",m=e=>{let{className:t,withDecorator:n,footerButtons:o,formProps:m,cancelText:p,saveText:h,autoClose:g,...f}=e;return{...f,footerButtons:o||[{children:(0,d.jsx)(r.IntlProvider,{importMessages:s.A,moduleName:u,children:p||(0,d.jsx)(r.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,d.jsx)(r.IntlProvider,{importMessages:s.A,moduleName:u,children:h||(0,d.jsx)(r.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const{onSubmit:n,...l}=Object.assign({},"function"===typeof m?m(t):m);return(0,d.jsx)(a.lV,{...l,onSubmit:async function(e){for(var s=arguments.length,l=new Array(s>1?s-1:0),r=1;r<s;r++)l[r-1]=arguments[r];!1!==(n&&await n(e,Object.assign({},t),...l))&&g&&t.close()},children:(0,d.jsx)(r.IntlProvider,{importMessages:s.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(l,t):l(t)},className:i()(t,c.A["form-outer"])}}},78756:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(43856),l=n(98434);const{useOnChange:r}=l.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.IndustrySelectField);a.Field=s.IndustrySelectField,a.Enum=s.IndustrySelectField.Enum;const o=a},81026:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(43856),l=n(98434);const{useOnChange:r}=l.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.FunctionSelectField);a.Field=s.FunctionSelectField,a.Enum=s.FunctionSelectField.Enum;const o=a},83230:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(98434),l=n(43856);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(l.CascaderField);a.Field=l.CascaderField,a.createTreeUtils=l.createTreeUtils;const o=a},83799:(e,t,n)=>{n.d(t,{NI:()=>R,TQ:()=>u.A,JL:()=>k,eu:()=>x.A,vx:()=>m.A,lr:()=>q,s3:()=>G,lV:()=>l.A,d4:()=>p.A,ZN:()=>h.A,pd:()=>z,YI:()=>W,h2:()=>D,F0:()=>g.A,go:()=>f.default,tt:()=>s.Rate,lu:()=>v.A,l6:()=>$,Ap:()=>s.Slider,wD:()=>O,eM:()=>L,Pg:()=>E,dO:()=>s.Switch,EY:()=>F,fs:()=>U,AG:()=>H,f7:()=>V,w5:()=>y.A,_O:()=>_.A,nk:()=>Q});var s=n(98434),l=n(85696),r=n(47458),a=n(73884),o=n(30891),i=n(47094),c=n(30096),d=n(34643),u=n(1904),m=n(83230),p=n(81026),h=n(78756),g=n(92328),f=n(2842),_=n(89099),x=n(96339),v=n(36972),j=n(15209),y=n(56259),A=n(55199),b=n(10986),N=n.n(b),S=n(70579);const{useDecorator:M}=s.hooks,w=e=>{let{children:t,...n}=e;const[s]=N()(n);return(0,S.jsxs)(A.Typography.Text,{...n,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(A.Input,{value:s})}),t||s]})},C=e=>M(e)(w);C.Field=w;const F=C;var P=n(45053);const I=e=>{const t=(0,a.forwardRef)((t,n)=>{let{placeholder:s,label:l,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,S.jsx)(e,{...a,ref:n,label:l,placeholder:s||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},T=e=>{const t=(0,a.forwardRef)((t,n)=>{let{placeholder:s,label:l,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,S.jsx)(e,{...a,ref:n,label:l,placeholder:s||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},k=T(c.Ay),O=T(d.Ay),L=T(d.eM),E=T(d.Pg),R=T(u.N),D=I(j.A),z=I(s.Input);z.Password=I(s.Input.Password);const U=(B=s.TextArea,e=>{let{placeholder:t,label:n,className:s,...l}=e;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(B,{...l,label:n,placeholder:t||e})})})});var B;const $=T(s.Select),W=I(s.InputNumber),V=T(s.TreeSelect),H=T(s.TimePicker);H.RangePicker=T(s.TimePicker.RangePicker);const q=T(s.DatePicker);q.MonthPicker=T(s.DatePicker.MonthPicker),q.RangePicker=T(s.DatePicker.RangePicker),q.WeekPicker=T(s.DatePicker.WeekPicker);const G=e=>{let{placeholder:t,label:n,soFarText:l,...a}=e;const{formatMessage:o}=(0,r.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(s.DatePickerToday,{...a,label:n,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:l||o({id:"soFarText"})})},Q=Object.assign({},s,{Input:z,InputUpperCase:D,TextArea:U,Select:$,InputNumber:W,TreeSelect:V,TimePicker:H,DatePicker:q,DatePickerToday:G,Form:l.A,FormItem:o.A,AdvancedSelect:k,SuperSelect:O,SuperSelectTableList:L,SuperSelectUser:E,AddressSelect:u.A,AddressInput:R,MoneyInput:g.A,PhoneNumber:f.default,Cascader:m.A,FunctionSelect:p.A,IndustrySelect:h.A,TypeDateRangePicker:y.A,Upload:_.A,Avatar:x.A,SalaryInput:v.A,Text:F,Rate:s.Rate,Switch:s.Switch,Slider:s.Slider,ErrorTip:P.A})},85696:(e,t,n)=>{n.d(t,{A:()=>v});var s=n(73884),l=n(63743),r=n(33097),a=n.n(r),o=n(64261),i=n(47458),c=n(55431),d=n(46237),u=n(41381),m=n(46732),p=n(98434),h=n(83136),g=n.n(h),f=n(47094),_=n(70579);const x=e=>{let{children:t}=e;const[n,r]=(0,s.useState)(!1),i=(0,l.usePreset)(),c=a()(i,"formInfo",{}),d=a()(i,"locale");return(0,s.useEffect)(()=>{Promise.resolve((0,o.A)(c,{locale:d})).then(()=>{r(!0)})},[c,d]),n?t:null},v=(0,s.forwardRef)((e,t)=>{let{className:n,helperGuideName:s,children:l,lang:r,...a}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:c.A,moduleName:"FormInfo",children:(0,_.jsx)(d.Ay,{value:r,children:(0,_.jsx)(m.K,{value:s,children:(0,_.jsx)(x,{children:(0,_.jsx)(p.FormAntd,{...a,ref:t,className:g()(n,f.A["form-outer"]),children:(0,_.jsx)(u.default,{children:l})})})})})})})},85846:(e,t,n)=>{n.d(t,{A:()=>x});var s=n(73884),l=n(894),r=n(55199),a=n(64671),o=n(41381),i=n(47338),c=n(2196),d=n(83136),u=n.n(d),m=n(55431),p=n(47458),h=n(47094),g=n(70579);const f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{addText:t,className:n,important:o,outer:d=(0,g.jsx)(_,{}),renderChildren:m=e=>e,deleteButtonProps:f,title:x,...v}=e;const{formatMessage:j}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(l.SubList,{...v,listRender:e=>{let{list:t,title:n,id:s,allowRemove:l,onRemove:d}=e;return(0,g.jsxs)("div",{className:u()(h.A["list-item"],{[h.A["is-important"]]:o}),children:[(0,g.jsx)(c.A,{title:n,list:t,className:h.A["list-item-part"],gap:16,extra:(0,g.jsx)(p.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>l?(0,g.jsx)(i.default,{danger:!0,className:"btn-no-padding",message:j({id:"delConfirm"},{name:n}),type:"link",onClick:()=>{d(s)},...Object.assign({},f),children:null!==f&&void 0!==f&&f.children?null===f||void 0===f?void 0:f.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})}):null})}),(0,g.jsx)(r.Divider,{})]},s)},children:(e,l)=>{let{allowAdd:r,onAdd:a}=l;return(0,s.cloneElement)(d,{title:x,addText:t,className:u()(n,h.A["list-part"]),allowAdd:r,add:()=>a({isUnshift:!1})},m(e))}})}),_=e=>{let{add:t,addText:n,className:s,allowAdd:l,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:s,extra:l&&(0,g.jsx)(p.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(r.Typography.Text,{className:h.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),n||e]})})})},x=f},89099:(e,t,n)=>{n.d(t,{A:()=>A});var s=n(55199),l=n(83136),r=n.n(l),a=n(10986),o=n.n(a);const i="style_upload__t422Q__1mcnM",c="style_upload-list__Q9HDc__1mcnM",d="style_tips__3Gpnu__1mcnM";var u=n(19343),m=n(98434),p=n(47458),h=n(1488),g=n.n(h),f=n(17508),_=n(55431),x=n(70579);const{useOnChange:v}=m.hooks,j=(0,p.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:n,fileSize:l,maxLength:a,multiple:m,size:h,accept:_,children:v,renderTips:j,showUploadList:y,onSave:A,ossUpload:b,onUpload:N,getPermission:S,concurrentCount:M,...w}=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),[C,F]=o()(w),P=C||[],{fileList:I,onFileSelected:T}=(0,f.lN)({multiple:m,onSave:A,onUpload:b||N,fileSize:l,maxLength:a,value:P,onChange:F,concurrentCount:M}),k=[...I,...P],O=j(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:a,fileSize:l}),{fileSize:l,maxLength:a,accept:_});return(0,x.jsxs)(s.Space,{direction:"vertical",children:[(0,x.jsxs)(s.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(f.Zi,{...g()(w,["value","onChange"]),size:h,multiple:m,accept:_,className:r()(i,n),onChange:T,children:v}),O&&(0,x.jsx)("div",{className:d,children:O})]}),y&&k.length>0&&(0,x.jsx)(u.List,{className:c,dataSource:k,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=P.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),F(t)}}})]})}),y=e=>{let{interceptor:t="file-format",...n}=e;return v({interceptor:t,...n})(j)};y.Field=j;const A=y},92328:(e,t,n)=>{n.d(t,{A:()=>j});var s=n(10986),l=n.n(s),r=n(98434),a=n(55199),o=n(69484);const i="style_money-input__Pyur7__1mcnM",c="style_money-description__9pFk4__1mcnM";var d=n(83136),u=n.n(d),m=n(34677),p=n.n(m),h=n(73884),g=n(70579);const{isNotEmpty:f}=r.util||r.formUtils,{useOnChange:_}=r.hooks,x=e=>{let{chineseEmpty:t,className:n,showError:s,errorDesc:r,transformMoneyToChinese:d,onBlur:m,moneyFormat:_,...x}=e;const[v,j]=(0,h.useState)(""),[y,A]=l()(x),b=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:f(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,g.jsxs)("div",{className:u()(n,"money-input",i),children:[(0,g.jsx)(a.InputNumber,{...b,status:v,formatter:_?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(b.max)||f(b.min)&&Number(t)<Number(b.min))&&j("error"):j(""),f(t)?Number(t):null},onChange:e=>{A(e)},onBlur:e=>{m&&m(e,j)}}),(0,g.jsx)("div",{className:u()(c),children:"error"===v&&s?r:f(y)?(0,o.A)(d?d(y):y):t})]})},v=e=>_(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);v.Field=x,v.toChineseCharacter=o.A;const j=v},94005:(e,t,n)=>{n.d(t,{$X:()=>_,Ay:()=>f,Wp:()=>x});var s=n(3382),l=n(73884),r=n(98434),a=n(73025),o=n(47458),i=n(47094),c=n(55431),d=n(55199),u=n(76995),m=n(70579);const p="FormInfo",h=e=>{let{items:t,children:n}=e;const[s,r]=(0,l.useState)(0);return n({currentIndex:s,setCurrentIndex:r,stepCacheRef:(0,l.useRef)({}),isLastStep:s===t.length-1,currentProps:Object.assign({},t[s])})},g=e=>{let{footerButtons:t,cancelText:n,completeText:s,nextText:l,items:a,withDecorator:g,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:d}=Object.assign({},a[t]);return d||[{children:(0,m.jsx)(o.IntlProvider,{importMessages:c.A,moduleName:p,children:n||(0,m.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:p})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,m.jsx)(o.IntlProvider,{importMessages:c.A,moduleName:p,children:i?s||(0,m.jsx)(o.FormattedMessage,{id:"Complete",moduleName:p}):l||(0,m.jsx)(o.FormattedMessage,{id:"Next",moduleName:p})}),ButtonComponent:r.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const n=t=>(0,m.jsx)(h,{items:a,children:n=>{var s;let{currentIndex:l,isLastStep:r,setCurrentIndex:o,currentProps:c,stepCacheRef:u}=n;const{formProps:p,title:h,...g}=c,{onSubmit:_,...x}="function"===typeof p?p(t):p,v=Object.assign({},x.data,null===(s=u.current[l])||void 0===s?void 0:s.data);return e(Object.assign({},t,g,{currentIndex:l,isLastStep:r,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,m.jsx)(d.Steps,{className:i.A["form-step-section"],current:l,items:a.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:l,data:v,onSubmit:async function(e){u.current[l]={data:e};for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];const i=_&&await _(e,Object.assign({},t,{currentIndex:l,isLastStep:r,setCurrentIndex:o,currentProps:c,stepCacheRef:u}),...s);return f.autoClose&&!r&&!1!==i&&o(e=>e+1),!!r&&i}})}))}});return"function"===typeof g?g(n,t):n(t)},formProps:e=>{let{formProps:t,...n}=e;return Object.assign({},n,t)},children:e=>{let{children:t,stepSection:n,...s}=e;return(0,m.jsxs)(d.Flex,{vertical:!0,gap:24,children:[(0,m.jsx)(d.Flex,{justify:"center",children:n}),"function"===typeof t?t(s):t]})}}))},f=e=>(0,m.jsx)(s.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),_=()=>{const e=(0,s.useModal)();return t=>e(g(Object.assign({},t,{className:i.A["form-modal"]})))},x=e=>{const t=_();if(!e.api){const{modalProps:n,...s}=e;return(0,m.jsx)(d.Button,{...s,onClick:()=>{t(n)}})}return(0,m.jsx)(a.A,{...e,modalFunc:t})}},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>a.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>v.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>j,fieldDecorator:()=>r.E,fields:()=>r.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var s=n(64261),l=n(2196),r=n(15445),a=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),m=n(85696),p=n(30891),h=n(45053),g=n(97949),f=n(98434),_={};for(const y in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(_[y]=()=>f[y]);n.d(t,_);var x=n(83799),v=n(18936);(0,s.A)(),l.A.fields=r.A,l.A.List=a.A,l.A.TableList=o.A,l.A.FormApiButton=i.A,l.A.FormModal=c.Ay,l.A.useFormModal=c.Vl,l.A.FormModalButton=c.W6,l.A.FormStepModal=d.Ay,l.A.useFormStepModal=d.$X,l.A.FormStepModalButton=d.Wp,l.A.FormDrawer=u.Ay,l.A.useFormDrawer=u.Xy,l.A.FormDrawerButton=u.WJ,l.A.Form=m.A,l.A.FormItem=p.A,l.A.ErrorTip=h.A,l.A.SubmitButton=f.SubmitButton,l.A.CancelButton=f.CancelButton,l.A.fieldDecorator=r.E,l.A.MultiField=g.A,l.A.useFormContext=f.useFormContext,l.A.hooks=f.hooks,l.A.widget=f.widget,l.A.utils=f.utils,l.A.formUtils=f.formUtils;const j=l.A},96339:(e,t,n)=>{n.d(t,{A:()=>z});var s=n(73884),l=n(17508),r=n(40438),a=n(63743),o=n(3382),i=n(64671),c=n(55199),d=n(53202),u=n.n(d),m=n(33097),p=n.n(m),h=n(83136),g=n.n(h),f=n(51941),_=n(98434),x=n(34677),v=n.n(x);const j="style_upload-btn__-6XtP__1mcnM",y="style_square__UPkfA__1mcnM",A="style_is-loading__wx6Pd__1mcnM",b="style_upload-btn-tips__YtxWz__1mcnM",N="style_drop-tips__N-v59__1mcnM",S="style_preview-area__aV3SN__1mcnM";var M=n(18411),w=n(47458),C=n(55431),F=n(70579);const{useOnChange:P}=_.hooks,I=r.default.Avatar,T="FormInfo",k=(0,l.Ay)(e=>{let{className:t,icon:n,loading:s,value:l,gender:r,width:a,height:o,children:d,shape:u,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(I,{...Object.assign({},"function"===typeof h?h(l):{id:p()(l,"id")}),gender:r,width:64*a/o,height:64,shape:u,defaultAvatar:m,apis:f}),(0,F.jsx)("div",{className:b,children:n||(0,F.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),d]});return(0,F.jsx)("div",{className:g()(t,j,{[A]:s,[y]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:s?(0,F.jsx)(c.Spin,{children:_}):_})}),O=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),s=t[0].match(/:(.*?);/)[1],l=atob(n),r=l.length,a=new Uint8Array(r);for(;r--;)a[r]=l.charCodeAt(r);return new Blob([a],{type:s})},L=(0,s.forwardRef)((e,t)=>{let{image:n,width:r,height:a,borderRadius:o,preview:d,fileSize:m,accept:p,renderTips:h,getApi:g,shape:_,border:x=1,...v}=e;const j=(0,w.useIntl)({moduleName:T}),[y,A]=(0,s.useState)(0),b=(0,s.useRef)(null),[M,C]=(0,s.useState)(n),[P,I]=(0,s.useState)(1),[k,L]=(0,s.useState)(0),[E,R]=(0,s.useState)(""),D=(0,s.useRef)(null);(0,s.useLayoutEffect)(()=>{A(2*b.current.clientWidth/3)},[]),g({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=r,t.height=a,n.drawImage(e,0,0,t.width,t.height),new window.File([O(t.toDataURL())],M.name,{type:M.type})}});const z=()=>{R(D.current.getImage().toDataURL())},U=(0,f.useDebouncedCallback)(z,500);return(0,F.jsx)("div",{ref:b,children:(0,F.jsxs)(c.Row,{wrap:!1,align:"middle",children:[(0,F.jsx)(c.Col,{span:d?16:24,children:y&&(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(u(),{...v,ref:D,image:M,scale:P,rotate:k,width:y-2*x,height:a*y/r-2*x*a/r,border:x,color:[0,0,0,.6],borderRadius:o*y/r,onImageReady:z,onImageChange:U}),(0,F.jsx)("div",{className:N,children:h(`${j.formatMessage({id:"PictureFormat"})}${p.map(e=>e.replace(/^\./,"")).join(" ")} ${j.formatMessage({id:"ImageSize"})}${j.formatMessage({id:"NotExceeding"},{size:m})}`,{accept:p,fileSize:m})}),(0,F.jsxs)(c.Row,{gutter:14,align:"middle",children:[(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{L(e=>(e-90)%360)}})})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-chongman",onClick:()=>{I(1)}})})}),(0,F.jsx)(c.Col,{flex:1,children:(0,F.jsx)(c.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:P,step:.05,min:.2,max:3,onChange:I})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(l.FI,{accept:p,onChange:e=>{e[0].size>1024*m*1024?c.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:m})):(L(0),I(1),C(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),d&&(0,F.jsx)(c.Col,{span:8,children:(0,F.jsx)("div",{className:S,children:(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(c.Avatar,{src:E,shape:_,style:{width:y/2-36,height:(y/2-36)*a/r}}),(0,F.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}),E=()=>{const e=(0,o.useModal)();return t=>{const{image:n,width:s,height:l,borderRadius:r,getApi:a,preview:o,fileSize:i,accept:c,renderTips:d,border:u,dropModalSize:m,...p}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...p,size:m,children:(0,F.jsx)(L,{preview:o,fileSize:i,accept:c,getApi:a,renderTips:d,width:s,height:l,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:r,image:n,border:u,scale:1,rotate:0})})}},R=(0,w.createWithIntl)({importMessages:C.A,moduleName:"FormInfo"})(e=>{var t;let{value:n,gender:l,fileSize:r=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:d,renderTips:u=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,F.jsx)(w.IntlProvider,{importMessages:C.A,moduleName:"FormInfo",children:(0,F.jsx)(w.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:j="small",defaultAvatar:y=M.A,displayAvatar:A}=e;const[b,N]=(0,s.useState)(!1),{apis:S}=(0,a.usePreset)(),P=v()({},S,d),I=P.ossUpload||P.upload||(null===(t=P.file)||void 0===t?void 0:t.upload),O=(0,s.useRef)(null),L=E(),R=(0,w.useIntl)({moduleName:T});return(0,F.jsx)(k,{value:n,gender:l,accept:o,width:h,height:g,shape:p,icon:x,loading:b,defaultAvatar:y,displayAvatar:A,apis:P,onChange:e=>{if(e[0].size>1024*r*1024)return void c.message.error(R.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(N(!0),I({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):c.message.error(R.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?L({image:e[0],width:h,height:g,title:f,shape:p,border:_,dropModalSize:j,getApi:e=>O.current=e,fileSize:r,accept:o,renderTips:u,onConfirm:()=>{t(O.current.getImage())}}):t(e[0])}})}),D=e=>P(e)(R);D.Field=R,D.useDropModal=E;const z=D},97056:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(55199),l=n(64671),r=n(83136),a=n.n(r),o=n(47094),i=n(894),c=n(41381),d=n(47458),u=n(55431),m=n(70579);const p=(0,d.createWithIntl)({moduleName:"FormInfo",importMessages:u.A})(e=>{let{className:t,...n}=e;const{formatMessage:r}=(0,d.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)("div",{className:a()(t,o.A["table-list"]),children:(0,m.jsx)(i.TableList,{...n,className:a()(t,o.A["table-list"]),headerRender:(e,t)=>{let{width:n}=t;return(0,m.jsxs)(s.Row,{wrap:!1,className:o.A["table-list-header"],style:{"--col-width":n},children:[e,(0,m.jsx)(s.Col,{className:o.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:n,isReq:l}=t;return(0,m.jsx)(s.Col,{className:a()({[o.A["is-req"]]:l}),children:e},n)},listRender:(e,t)=>{let{id:n,width:a,onRemove:i,allowRemove:c}=t;return(0,m.jsxs)(s.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,m.jsx)(s.Col,{className:o.A["table-list-extra"],children:(0,m.jsx)(s.Button,{type:"link",onClick:i,danger:!0,disabled:!c,children:(0,m.jsxs)("span",{children:[(0,m.jsx)(l.default,{type:"shanchu"}),r({id:"delText"})]})})})]},n)},itemRender:e=>(0,m.jsx)(s.Col,{className:o.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:n,allowAdd:i,onAdd:d}=t;return(0,m.jsx)(c.default.Part,{title:n,className:a()(o.A["table-list-inner"]),extra:i&&(0,m.jsxs)(s.Typography.Link,{className:o.A["list-btn"],onClick:()=>d({isUnshift:!1}),children:[(0,m.jsx)(l.default,{type:"tianjia"}),r({id:"addText"})]}),children:e})}})})})},97949:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(55199),l=n(47458),r=n(64671),a=n(47094),o=n(83136),i=n.n(o),c=n(55431),d=n(894),u=n(70579);const m=(0,l.createWithIntl)({moduleName:"FormInfo",importMessages:c.A})(e=>{const{formatMessage:t}=(0,l.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(d.MultiField,{...e,itemRender:(e,t)=>{let{id:n,index:l,allowRemove:o,onRemove:c}=t;return(0,u.jsxs)("div",{className:i()(a.A["mult-field-item"],"mult-field-item",{[a.A["first-item"]]:0===l}),children:[e,(0,u.jsxs)("div",{className:i()("form-info-mult-option"),children:[(0,u.jsx)("div",{className:i()(a.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,u.jsx)(s.Button,{icon:(0,u.jsx)(r.default,{type:"shanchu"}),onClick:c,disabled:!o})]})]},n)},children:(n,l)=>{let{allowAdd:o,onAdd:c}=l;return(0,u.jsxs)("div",{className:i()(a.A["mult-field"],"mult-field"),children:[n,o&&(0,u.jsx)("div",{className:i()("form-info-mult-add-btn"),children:(0,u.jsxs)(s.Button,{className:a.A["mult-field-add-btn"],type:"dashed",onClick:()=>c({isUnshift:!1}),children:[(0,u.jsx)(r.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}})})}}]);
|
|
2
|
+
//# sourceMappingURL=4474.10b945a7.chunk.js.map
|