@kne-components/components-core 0.3.23 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +101 -101
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1248.67931b10.chunk.css +2 -0
- package/build/static/css/{1248.420f95be.chunk.css.map → 1248.67931b10.chunk.css.map} +1 -1
- package/build/static/css/1559.7b8768bb.chunk.css +2 -0
- package/build/static/css/1559.7b8768bb.chunk.css.map +1 -0
- package/build/static/css/196.8c09be8b.chunk.css +2 -0
- package/build/static/css/196.8c09be8b.chunk.css.map +1 -0
- package/build/static/css/{1996.ad6ff799.chunk.css → 1996.211ac13b.chunk.css} +2 -2
- package/build/static/css/{1996.ad6ff799.chunk.css.map → 1996.211ac13b.chunk.css.map} +1 -1
- package/build/static/css/206.fcad2b2a.chunk.css +2 -0
- package/build/static/css/{206.3b192e68.chunk.css.map → 206.fcad2b2a.chunk.css.map} +1 -1
- package/build/static/css/2309.a68da376.chunk.css +2 -0
- package/build/static/css/2309.a68da376.chunk.css.map +1 -0
- package/build/static/css/2630.d4c9ee14.chunk.css +2 -0
- package/build/static/css/2630.d4c9ee14.chunk.css.map +1 -0
- package/build/static/css/2716.fcbeceb6.chunk.css +2 -0
- package/build/static/css/{2716.22bb4fae.chunk.css.map → 2716.fcbeceb6.chunk.css.map} +1 -1
- package/build/static/css/2765.ce93154a.chunk.css +2 -0
- package/build/static/css/2765.ce93154a.chunk.css.map +1 -0
- package/build/static/css/{3771.a69d0a04.chunk.css → 3771.a75832db.chunk.css} +2 -2
- package/build/static/css/{3771.a69d0a04.chunk.css.map → 3771.a75832db.chunk.css.map} +1 -1
- package/build/static/css/{3790.c883c3e8.chunk.css → 3790.f182dca9.chunk.css} +2 -2
- package/build/static/css/{3790.c883c3e8.chunk.css.map → 3790.f182dca9.chunk.css.map} +1 -1
- package/build/static/css/{4010.30ee21c7.chunk.css → 4010.579f87a0.chunk.css} +2 -2
- package/build/static/css/4010.579f87a0.chunk.css.map +1 -0
- package/build/static/css/{4277.cf236e3f.chunk.css → 4277.dcdff215.chunk.css} +2 -2
- package/build/static/css/{4277.cf236e3f.chunk.css.map → 4277.dcdff215.chunk.css.map} +1 -1
- package/build/static/css/5422.a46cc205.chunk.css +2 -0
- package/build/static/css/{5422.3fba146d.chunk.css.map → 5422.a46cc205.chunk.css.map} +1 -1
- package/build/static/css/{6763.60886b75.chunk.css → 6763.b640b8ab.chunk.css} +2 -2
- package/build/static/css/{6763.60886b75.chunk.css.map → 6763.b640b8ab.chunk.css.map} +1 -1
- package/build/static/css/6980.06771633.chunk.css +12 -0
- package/build/static/css/{6980.565a5873.chunk.css.map → 6980.06771633.chunk.css.map} +1 -1
- package/build/static/css/7227.ec5d25fb.chunk.css +2 -0
- package/build/static/css/{7227.f4fd739b.chunk.css.map → 7227.ec5d25fb.chunk.css.map} +1 -1
- package/build/static/css/{760.b6f1ffe9.chunk.css → 760.2465a5e0.chunk.css} +2 -2
- package/build/static/css/{760.b6f1ffe9.chunk.css.map → 760.2465a5e0.chunk.css.map} +1 -1
- package/build/static/css/8278.9e1f3b06.chunk.css +2 -0
- package/build/static/css/{8278.ae2486d0.chunk.css.map → 8278.9e1f3b06.chunk.css.map} +1 -1
- package/build/static/css/{8593.1131ec48.chunk.css → 8593.2b6148ba.chunk.css} +2 -2
- package/build/static/css/{8593.1131ec48.chunk.css.map → 8593.2b6148ba.chunk.css.map} +1 -1
- package/build/static/css/9119.624f3f8d.chunk.css +2 -0
- package/build/static/css/{9119.806ab331.chunk.css.map → 9119.624f3f8d.chunk.css.map} +1 -1
- package/build/static/css/9556.dadf736a.chunk.css +2 -0
- package/build/static/css/{9556.60bfb7c6.chunk.css.map → 9556.dadf736a.chunk.css.map} +1 -1
- package/build/static/css/9772.7d2ae4ee.chunk.css +2 -0
- package/build/static/css/{9772.40db844e.chunk.css.map → 9772.7d2ae4ee.chunk.css.map} +1 -1
- package/build/static/js/{1248.e04383c7.chunk.js → 1248.09f57a8e.chunk.js} +3 -3
- package/build/static/js/{1248.e04383c7.chunk.js.map → 1248.09f57a8e.chunk.js.map} +1 -1
- package/build/static/js/{196.cb3c0c0f.chunk.js → 196.fd24ea9b.chunk.js} +1 -1
- package/build/static/js/1996.af00b183.chunk.js +2 -0
- package/build/static/js/{1996.977f3d73.chunk.js.map → 1996.af00b183.chunk.js.map} +1 -1
- package/build/static/js/{206.4fca34c5.chunk.js → 206.8a2f2de2.chunk.js} +2 -2
- package/build/static/js/{206.4fca34c5.chunk.js.map → 206.8a2f2de2.chunk.js.map} +1 -1
- package/build/static/js/2084.e6825fae.chunk.js +2 -0
- package/build/static/js/2084.e6825fae.chunk.js.map +1 -0
- package/build/static/js/2309.1bfa9aa6.chunk.js +2 -0
- package/build/static/js/{2309.1942d3a5.chunk.js.map → 2309.1bfa9aa6.chunk.js.map} +1 -1
- package/build/static/js/2630.c82c6dca.chunk.js +2 -0
- package/build/static/js/{2630.fae65a5f.chunk.js.map → 2630.c82c6dca.chunk.js.map} +1 -1
- package/build/static/js/{2716.db48e70e.chunk.js → 2716.644519c6.chunk.js} +3 -3
- package/build/static/js/{2716.db48e70e.chunk.js.map → 2716.644519c6.chunk.js.map} +1 -1
- package/build/static/js/3735.b66b9f08.chunk.js +2 -0
- package/build/static/js/3735.b66b9f08.chunk.js.map +1 -0
- package/build/static/js/{3771.b35db118.chunk.js → 3771.0a40e214.chunk.js} +2 -2
- package/build/static/js/{3771.b35db118.chunk.js.map → 3771.0a40e214.chunk.js.map} +1 -1
- package/build/static/js/{3790.7fe81760.chunk.js → 3790.da31c709.chunk.js} +2 -2
- package/build/static/js/{3790.7fe81760.chunk.js.map → 3790.da31c709.chunk.js.map} +1 -1
- package/build/static/js/3856.e385fe24.chunk.js +2 -0
- package/build/static/js/3856.e385fe24.chunk.js.map +1 -0
- package/build/static/js/4277.3e65cd72.chunk.js +2 -0
- package/build/static/js/{4277.5999c2e5.chunk.js.map → 4277.3e65cd72.chunk.js.map} +1 -1
- package/build/static/js/4474.0bf10705.chunk.js +2 -0
- package/build/static/js/4474.0bf10705.chunk.js.map +1 -0
- package/build/static/js/{5422.e9ae0d22.chunk.js → 5422.b9e41056.chunk.js} +2 -2
- package/build/static/js/{5422.e9ae0d22.chunk.js.map → 5422.b9e41056.chunk.js.map} +1 -1
- package/build/static/js/6116.1d428c3f.chunk.js +2 -0
- package/build/static/js/6116.1d428c3f.chunk.js.map +1 -0
- package/build/static/js/6763.905b0cbf.chunk.js +2 -0
- package/build/static/js/{6763.22216403.chunk.js.map → 6763.905b0cbf.chunk.js.map} +1 -1
- package/build/static/js/{6980.d67616cd.chunk.js → 6980.b188f436.chunk.js} +2 -2
- package/build/static/js/6980.b188f436.chunk.js.map +1 -0
- package/build/static/js/{7227.2044244e.chunk.js → 7227.dba68e64.chunk.js} +3 -3
- package/build/static/js/{7227.2044244e.chunk.js.map → 7227.dba68e64.chunk.js.map} +1 -1
- package/build/static/js/{760.f16a43aa.chunk.js → 760.75823b64.chunk.js} +2 -2
- package/build/static/js/{760.f16a43aa.chunk.js.map → 760.75823b64.chunk.js.map} +1 -1
- package/build/static/js/8278.a280389c.chunk.js +2 -0
- package/build/static/js/8278.a280389c.chunk.js.map +1 -0
- package/build/static/js/8593.cbbcd335.chunk.js +2 -0
- package/build/static/js/{8593.f380ac2a.chunk.js.map → 8593.cbbcd335.chunk.js.map} +1 -1
- package/build/static/js/8985.58ef32fd.chunk.js +2 -0
- package/build/static/js/8985.58ef32fd.chunk.js.map +1 -0
- package/build/static/js/9119.920424d3.chunk.js +2 -0
- package/build/static/js/{9119.cc873032.chunk.js.map → 9119.920424d3.chunk.js.map} +1 -1
- package/build/static/js/9556.d33bd444.chunk.js +3 -0
- package/build/static/js/{9556.283ac73f.chunk.js.map → 9556.d33bd444.chunk.js.map} +1 -1
- package/build/static/js/{9772.21874f13.chunk.js → 9772.3dc17a4a.chunk.js} +2 -2
- package/build/static/js/{9772.21874f13.chunk.js.map → 9772.3dc17a4a.chunk.js.map} +1 -1
- package/build/static/js/main.b9f5f79d.js +2 -0
- package/build/static/js/main.b9f5f79d.js.map +1 -0
- package/package.json +3 -3
- package/build/static/css/1248.420f95be.chunk.css +0 -2
- package/build/static/css/1559.10a05420.chunk.css +0 -2
- package/build/static/css/1559.10a05420.chunk.css.map +0 -1
- package/build/static/css/196.9a790e32.chunk.css +0 -2
- package/build/static/css/196.9a790e32.chunk.css.map +0 -1
- package/build/static/css/206.3b192e68.chunk.css +0 -2
- package/build/static/css/2309.d47b23b4.chunk.css +0 -2
- package/build/static/css/2309.d47b23b4.chunk.css.map +0 -1
- package/build/static/css/2630.e3e8f1f9.chunk.css +0 -2
- package/build/static/css/2630.e3e8f1f9.chunk.css.map +0 -1
- package/build/static/css/2716.22bb4fae.chunk.css +0 -2
- package/build/static/css/2765.41472873.chunk.css +0 -2
- package/build/static/css/2765.41472873.chunk.css.map +0 -1
- package/build/static/css/4010.30ee21c7.chunk.css.map +0 -1
- package/build/static/css/5422.3fba146d.chunk.css +0 -2
- package/build/static/css/6980.565a5873.chunk.css +0 -12
- package/build/static/css/7227.f4fd739b.chunk.css +0 -2
- package/build/static/css/8278.ae2486d0.chunk.css +0 -2
- package/build/static/css/9119.806ab331.chunk.css +0 -2
- package/build/static/css/9556.60bfb7c6.chunk.css +0 -2
- package/build/static/css/9772.40db844e.chunk.css +0 -2
- package/build/static/js/1996.977f3d73.chunk.js +0 -2
- package/build/static/js/2084.a0409a1c.chunk.js +0 -2
- package/build/static/js/2084.a0409a1c.chunk.js.map +0 -1
- package/build/static/js/2309.1942d3a5.chunk.js +0 -2
- package/build/static/js/2630.fae65a5f.chunk.js +0 -2
- package/build/static/js/3735.f7e99525.chunk.js +0 -2
- package/build/static/js/3735.f7e99525.chunk.js.map +0 -1
- package/build/static/js/3856.308647b4.chunk.js +0 -2
- package/build/static/js/3856.308647b4.chunk.js.map +0 -1
- package/build/static/js/4277.5999c2e5.chunk.js +0 -2
- package/build/static/js/4474.a13d3bee.chunk.js +0 -2
- package/build/static/js/4474.a13d3bee.chunk.js.map +0 -1
- package/build/static/js/6116.298a91a4.chunk.js +0 -2
- package/build/static/js/6116.298a91a4.chunk.js.map +0 -1
- package/build/static/js/6763.22216403.chunk.js +0 -2
- package/build/static/js/6980.d67616cd.chunk.js.map +0 -1
- package/build/static/js/8278.223ea344.chunk.js +0 -2
- package/build/static/js/8278.223ea344.chunk.js.map +0 -1
- package/build/static/js/8593.f380ac2a.chunk.js +0 -2
- package/build/static/js/8985.efc93c05.chunk.js +0 -2
- package/build/static/js/8985.efc93c05.chunk.js.map +0 -1
- package/build/static/js/9119.cc873032.chunk.js +0 -2
- package/build/static/js/9556.283ac73f.chunk.js +0 -3
- package/build/static/js/main.9ecd33da.js +0 -2
- package/build/static/js/main.9ecd33da.js.map +0 -1
- /package/build/static/js/{1248.e04383c7.chunk.js.LICENSE.txt → 1248.09f57a8e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.db48e70e.chunk.js.LICENSE.txt → 2716.644519c6.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.2044244e.chunk.js.LICENSE.txt → 7227.dba68e64.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.283ac73f.chunk.js.LICENSE.txt → 9556.d33bd444.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4277.5999c2e5.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,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AQpD,GAASA,GAAQA,EAAKrD,gBAAO,IAAA+G,OAAA,EAA/CA,EAAiD/G,OAAQ,IACnIgF,OACL,SAAAhB,OAPqB8C,EAAQ,iB,YC9J3D9H,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,QAAKuH,CAC9C,C,kBCpBA,IAAIC,EAAWzI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAAS0G,EAASlH,GAClBmH,EAAY3G,EAAS,EAEzB,OAAOA,IAAWA,EAAU2G,EAAY3G,EAAS2G,EAAY3G,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__4FixO\",\"list\":\"style_list__l8KOo__4FixO\",\"header\":\"style_header__3dcv8__4FixO\",\"item\":\"style_item__d92RS__4FixO\",\"item-box\":\"style_item-box__dd-Lk__4FixO\",\"index-1\":\"style_index-1__f97L0__4FixO\",\"index-2\":\"style_index-2__04vAw__4FixO\",\"item-box-main\":\"style_item-box-main__lnSak__4FixO\",\"item-title\":\"style_item-title__mArMd__4FixO\",\"level-high\":\"style_level-high__Uys7Y__4FixO\",\"level-middle\":\"style_level-middle__EewyC__4FixO\",\"level-low\":\"style_level-low__8kVyL__4FixO\",\"title-icon\":\"style_title-icon__1EoAG__4FixO\",\"item-subtitle\":\"style_item-subtitle__xeFJs__4FixO\",\"close-btn\":\"style_close-btn__7qpG3__4FixO\",\"is-loading\":\"style_is-loading__upVL+__4FixO\",\"item-content\":\"style_item-content__8MlsG__4FixO\",\"link-outer\":\"style_link-outer__kegyZ__4FixO\",\"link\":\"style_link__F2CO-__4FixO\",\"is-last-item\":\"style_is-last-item__MytRl__4FixO\"};","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","concat","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","_objectSpread","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/4277.3e65cd72.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,C,kBCpBA,IAAIC,EAAgBZ,EAAQ,OACxBE,EAAeF,EAAQ,MACvBa,EAAYb,EAAQ,OAGpBc,EAAYC,KAAKC,IAiDrBZ,EAAOC,QAZP,SAAmBY,EAAOC,EAAWC,GACnC,IAAIC,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,OACvC,IAAKA,EACH,OAAQ,EAEV,IAAIC,EAAqB,MAAbF,EAAoB,EAAIN,EAAUM,GAI9C,OAHIE,EAAQ,IACVA,EAAQP,EAAUM,EAASC,EAAO,IAE7BT,EAAcK,EAAOf,EAAagB,EAAW,GAAIG,EAC1D,C,kBCpDA,IAAIC,EAAWtB,EAAQ,OAoBvBI,EAAOC,QAPP,SAAwBG,EAAYF,EAAQG,EAAUE,GAIpD,OAHAW,EAASd,GAAY,SAASe,EAAOC,EAAKhB,GACxCF,EAAOK,EAAaY,EAAOd,EAASc,GAAQf,EAC9C,IACOG,CACT,C,kBClBA,IAAIc,EAAkBzB,EAAQ,OAC1B0B,EAAmB1B,EAAQ,OAM3B2B,EAHcC,OAAOC,UAGQF,eAyB7BG,EAAUJ,GAAiB,SAASK,EAAQR,EAA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,EAAiDhH,OAAQ,IAAMC,KAAc,OAAJoD,QAAI,IAAJA,OAAI,EAAJA,EAAMrD,QAAS,QAElJ,SAAAgE,OANa8C,EAAQ,KAAA9C,OAAI/D,OASvC,MAAMiH,EAAYC,IAAM9D,GACxB,OAAQU,EAAAA,EAAAA,KAAA,OAAAjC,UACJiC,EAAAA,EAAAA,KAAC1C,GAAgB4F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACTzG,OAAOsC,OAAO,CAAC,EAAGoE,IAAU,IAChCzF,YAAa4B,EAAKrD,OAClB+B,UAAWyB,IAAW,CAClB,CAACC,EAAM,kBAA2B,OAATmC,QAAS,IAATA,OAAS,EAATA,EAAW5F,UAAW8G,EAAW,IAAMnH,KAAK+D,IAAmD,QAAhDqD,EAACnB,EAAUa,QAAQpD,GAASA,GAAQA,EAAKrD,gBAAO,IAAA+G,OAAA,EAA/CA,EAAiD/G,OAAQ,IACnIgF,OACL,SAAAhB,OAPqB8C,EAAQ,iB,YC9J3D9H,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,QAAKuH,CAC9C,C,kBCpBA,IAAIC,EAAWzI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAAS0G,EAASlH,GAClBmH,EAAY3G,EAAS,EAEzB,OAAOA,IAAWA,EAAU2G,EAAY3G,EAAS2G,EAAY3G,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__kw4DA\",\"list\":\"style_list__l8KOo__kw4DA\",\"header\":\"style_header__3dcv8__kw4DA\",\"item\":\"style_item__d92RS__kw4DA\",\"item-box\":\"style_item-box__dd-Lk__kw4DA\",\"index-1\":\"style_index-1__f97L0__kw4DA\",\"index-2\":\"style_index-2__04vAw__kw4DA\",\"item-box-main\":\"style_item-box-main__lnSak__kw4DA\",\"item-title\":\"style_item-title__mArMd__kw4DA\",\"level-high\":\"style_level-high__Uys7Y__kw4DA\",\"level-middle\":\"style_level-middle__EewyC__kw4DA\",\"level-low\":\"style_level-low__8kVyL__kw4DA\",\"title-icon\":\"style_title-icon__1EoAG__kw4DA\",\"item-subtitle\":\"style_item-subtitle__xeFJs__kw4DA\",\"close-btn\":\"style_close-btn__7qpG3__kw4DA\",\"is-loading\":\"style_is-loading__upVL+__kw4DA\",\"item-content\":\"style_item-content__8MlsG__kw4DA\",\"link-outer\":\"style_link-outer__kegyZ__kw4DA\",\"link\":\"style_link__F2CO-__kw4DA\",\"is-last-item\":\"style_is-last-item__MytRl__kw4DA\"};","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","concat","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","_objectSpread","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:()=>l});var s=n(29871),a=n.n(s),r={};for(const o in s)"default"!==o&&(r[o]=()=>s[o]);n.d(t,r),a().Fetch=s.FlexBoxFetch;const l=a()},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var s=n(98434),a=n(43856);const{useOnChange:r,useDecorator:l}=s.hooks,o=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.AddressSelectField);o.Field=a.AddressSelectField,o.AddressEnum=a.AddressSelectField.AddressEnum,o.createAddressApi=a.AddressSelectField.createAddressApi,o.withAddressApi=a.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(a.AddressInputField);c.Field=a.AddressInputField},2196:(e,t,n)=>{n.d(t,{A:()=>h});var s=n(53986),a=n(55199),r=n(73884),l=n(41381),o=n(330),i=n(83560),c=n(47094),d=n(83136),u=n.n(d),p=n(70579);const m=["list","groupArgs","column","gap","className","outer"],h=e=>{let{list:t=[],groupArgs:n,column:d=2,gap:h,className:g,outer:f=(0,p.jsx)(l.default.Part,{})}=e,A=(0,s.A)(e,m);const x=!(Number.isInteger(d)&&d>0),{ref:_,column:v}=(0,o.useFlexBox)(x?d:{}),j=(e,s)=>(0,p.jsx)(a.Row,{gutter:[h||24,0],className:u()({[c.A["column-not-layout"]]:s}),children:(0,p.jsx)(i.A,{list:t,groupArgs:n,itemRender:(t,n)=>(0,p.jsx)(a.Col,{span:!0===n.block?24:Math.round(24/(e||1)),children:t})})});return(0,r.cloneElement)(f,Object.assign({},A,{className:u()(g,c.A["form-info"])}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:_}),x?v?j(v.col):j(2,!0):j(d)]}))}},2842:(e,t,n)=>{n.d(t,{default:()=>a.a});n(2885);var s=n(22986),a=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:()=>m,Vl:()=>h,W6:()=>g});var s=n(53986),a=n(89379),r=n(3382),l=n(73025),o=n(55199),i=n(76995),c=n(47094),d=n(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(r.default,(0,a.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,r.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,n=(0,s.A)(e,u);const r=h();if(!n.api){const{modalProps:e}=n,t=(0,s.A)(n,p);return(0,d.jsx)(o.Button,(0,a.A)((0,a.A)({},t),{},{onClick:()=>{r(e)}}))}return(0,d.jsx)(l.A,(0,a.A)((0,a.A)({},n),{},{modalFunc:r}))}},15209:(e,t,n)=>{n.d(t,{A:()=>h});var s=n(53986),a=n(89379),r=n(20454),l=n(55199),o=n(10986),i=n.n(o),c=n(13050),d=n(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,r.A)(e),e));const[n,s]=i()(t);return(0,d.jsx)(l.Input,(0,a.A)((0,a.A)({},t),{},{value:n,onChange:e=>{s(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})((e=>{let{remoteModules:t}=e,n=(0,s.A)(e,u);const[a]=t,{hooks:r}=a,{useDecorator:l}=r;return l(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(p)}));m.field=p;const h=m},18936:(e,t,n)=>{n.d(t,{A:()=>B});var s=n(89379),a=n(53986);const r={"ant-tag":"style_ant-tag__7ct2q__kw4DA",overlay:"style_overlay__CXfU5__kw4DA",input:"style_input__+OpvV__kw4DA","is-disabled":"style_is-disabled__uX4qq__kw4DA","input-icon":"style_input-icon__E3NjK__kw4DA",large:"style_large__vMozz__kw4DA",small:"style_small__ubqQ+__kw4DA","input-inner":"style_input-inner__sY-6k__kw4DA","input-custom":"style_input-custom__Kxq3n__kw4DA","display-content":"style_display-content__qA1jn__kw4DA","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__kw4DA","selected-tag":"style_selected-tag__BZsMM__kw4DA","selected-tag-list":"style_selected-tag-list__As0ho__kw4DA","selected-tag-inner":"style_selected-tag-inner__2NH59__kw4DA","text-inner":"style_text-inner__Bq2Ji__kw4DA",placeholder:"style_placeholder__odotY__kw4DA","is-modal":"style_is-modal__4cj8L__kw4DA","overlay-content":"style_overlay-content__kpGRn__kw4DA"};var l=n(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,l.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),g=n(33097),f=n.n(g),A=n(55199),x=n(83136),_=n.n(x),v=n(3382),j=n(64671),y=n(79686),w=n.n(y),b=n(41740),N=n.n(b),S=n(74065),C=n.n(S),k=n(17342),F=n(70579);const P=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],D=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],I=["setFetchApi","wrapClassName"],M=["api","className","displayItems","wrapClassName"],T=e=>{let{maxLength:t,single:n,setValue:s,value:a,message:r}=e;return e=>s(!n&&Number.isInteger(t)&&t>0&&e.length>t?(r("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),a):e)},L=e=>{let{single:t,value:n,mapping:s,onClose:a}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,F.jsx)("span",{className:r["text-inner"],children:f()(s.get(n[0]),"label")||n[0]}):n.map((e=>{const t=s.get(e);return(0,F.jsx)(A.Tag,{className:r["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),a(e,t)},children:(0,F.jsx)("span",{className:r["tag-inner"],children:f()(t,"label")||e})},e)})):null},O=(0,u.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,a.A)(e,P);const[m,h]=(0,u.useState)(n),g=(0,u.useRef)(n);g.current=n;const[f,x]=(0,u.useState)(!1),{message:_}=A.App.useApp(),j=T({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:_.error});return(0,u.useEffect)((()=>{f&&h(g.current)}),[f]),(0,u.useImperativeHandle)(t,(()=>({modalOpen:()=>{x(!0)},close:()=>{x(!1)}}))),(0,F.jsx)(v.default,(0,s.A)((0,s.A)({},p),{},{open:f,onConfirm:()=>{l(m)},onClose:()=>{x(!1)},footer:(i||o)&&(0,F.jsxs)(A.Space,{direction:"vertical",className:r["overlay-footer"],children:[o&&(0,F.jsx)("div",{className:r["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))})),E=(0,u.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,x=(0,a.A)(e,D);const[_,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,(()=>({close:()=>{v(!1)}})),[]),(0,F.jsx)(A.Popover,(0,s.A)((0,s.A)({},x),{},{open:_,onOpenChange:v,overlayClassName:r.overlay,arrow:!1,content:(0,F.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:r["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:r["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&l(e),m&&v(!1)}}):o}),(c||h)&&(0,F.jsxs)("div",{className:r["overlay-footer"],children:[h&&(0,F.jsx)("div",{className:r["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:l})]})]}),trigger:"click",placement:d,children:(0,F.jsx)("div",{className:r["input-inner"],children:p})}))})),R=(0,h.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n}=e,s=(0,a.A)(e,I);const[l,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,x]=m,{single:v,placement:y,getPopupContainer:w,placeholder:b,isPopup:N,disabled:S,showSelectedTag:C,extra:P,inputContent:D}=g,M=(0,u.useRef)(s);M.current=s,(0,u.useEffect)((()=>{t(Object.assign({},M.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const T=L({single:v,value:f,mapping:h,onClose:e=>{x((t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n}))}}),R=e=>{let{value:t,setValue:n}=e;return(0,F.jsxs)(A.Space,{className:r["selected-tag"],align:"center",wrap:!0,children:[(0,F.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,F.jsx)(k.A,{className:r["selected-tag-list"],children:(0,F.jsx)("div",{className:r["selected-tag-inner"],children:L({value:t,mapping:h,onClose:e=>{n((t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n}))}})})})]})},z=D?D(p):(0,F.jsxs)(A.Space,{className:r["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,F.jsx)("div",{children:T||(0,F.jsx)("span",{className:r.placeholder,children:b})}),l&&f&&f.length>0&&!S?(0,F.jsx)(j.default,{className:_()(r.close,r["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,F.jsx)(j.default,{className:_()(r["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,F.jsx)(E,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:x,single:v,inputContent:z,extra:"function"===typeof P?P({close:()=>d.current.close(),context:p}):P,renderSelectedContent:R,showSelectedTag:C,trigger:"click",placement:y,getPopupContainer:w,children:g.children}):(0,F.jsxs)("div",{className:r["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,F.jsx)(O,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:_()(r.overlay,r["is-modal"],n),title:g.placeholder,value:f,onChange:x,extra:"function"===typeof P?P({close:()=>c.current.close(),context:p}):P,showSelectedTag:C,renderSelectedContent:R,children:g.children}),z]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:o}=e,i=(0,a.A)(e,M);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(l.map((e=>[e.value,e])))),[x,v]=(0,u.useState)({}),{message:j}=A.App.useApp(),y=e=>{const t=e.filter((e=>h.get(e.value)!==e));0!==t.length&&g((e=>{const n=N()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},b=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map((e=>e.value))))(i.single?w()(e)?[]:[e]:e||[],y,i.valueType),[S,k]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))))(e,h,i.valueType);i.onChange&&i.onChange(i.single?C()(t):t)}},"value"in i?{value:b(i.value)}:{defaultValue:b(i.defaultValue)})),P=T({maxLength:i.maxLength,single:i.single,setValue:k,value:S,message:j.error});return(0,F.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:y,setItems:e=>{x.setData(e),y(f()(i.dataFormat(e),"list",[]))},fetchApi:x,valueState:[S,P],props:i},children:(0,F.jsx)("div",{className:_()(r["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],n),children:(0,F.jsx)(R,(0,s.A)((0,s.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{y(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};z.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},z.useContext=i;const B=z},19343:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>m,FileButton:()=>C,FileLink:()=>k,List:()=>b,OptionButtons:()=>w,PrintButton:()=>o.PrintButton,default:()=>i(),downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>F});var s=n(89379),a=n(53986),r=(n(64674),n(96418)),l=n.n(r),o=n(24818),i=n.n(o),c=n(3382),d=n(83136),u=n.n(d),p=n(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=n(26304),g=n.n(h),f=n(74065),A=n.n(f),x=n(96252);const _=["apis"],v=["onCancel"],j=["onCancel"],y=e=>{let{apis:t}=e;const n=(0,x.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:g()(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:"".concat(n.name,".").concat(A()(e.filename.split(".")))}),item:e})))&&s.close()}},children:(0,p.jsx)(x.default,{column:1,list:[(0,p.jsx)(x.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},w=e=>{var t;const n=y({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,s.A)((0,s.A)({},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}=e,n=(0,a.A)(e,j);return(0,p.jsx)(c.default,(0,s.A)((0,s.A)({},Object.assign({},n)),{},{onClose:t}))}}))},b=e=>{let{apis:t}=e,n=(0,a.A)(e,_);const r=y({apis:t});return(0,p.jsx)(o.FileList,(0,s.A)((0,s.A)({},n),{},{apis:t,onEdit:e=>r(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof n.renderModal?n.renderModal:e=>{let{onCancel:t}=e,n=(0,a.A)(e,v);return(0,p.jsx)(c.default,(0,s.A)((0,s.A)({},Object.assign({},n)),{},{onClose:t}))}}))},N=["onCancel"],S=["className"],C=e=>(0,p.jsx)(o.FileButton,(0,s.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,n=(0,a.A)(e,N);return(0,p.jsx)(c.default,(0,s.A)((0,s.A)({},Object.assign({},n)),{},{onClose:t}))}}}))),k=e=>{const t=Object.assign({},e),{className:n}=t,r=(0,a.A)(t,S);return(0,p.jsx)(C,(0,s.A)((0,s.A)({},r),{},{className:u()(n,"btn-no-padding"),type:"link",children:r.children||r.filename||r.originName}))},F=e=>{const{title:t,children:n,footer:s}=(0,o.useFileModalProps)(Object.assign({},e)),a=(0,c.useModal)();return l()((()=>a({title:t,children:n,footer:s})))}},24474:(e,t,n)=>{n.r(t),n.d(t,{DragArea:()=>Z,DragAreaOuter:()=>K,DragButton:()=>Y,FileUpload:()=>oe,Title:()=>R,UploadButton:()=>J,UploadTips:()=>$,default:()=>se});var s=n(89379),a=n(73884),r=n(33097),l=n.n(r),o=n(55199);const i="style_file-list-outer__wPhbb__kw4DA",c="style_file-list-title__zXM5r__kw4DA",d="style_container__P4RaF__kw4DA",u="style_file-preview-inner__cvE72__kw4DA",p="style_file-preview__M-Asq__kw4DA",m="style_drag-area__Q+lm7__kw4DA",h="style_upload-drag-close__u5o8W__kw4DA",g="style_upload-drag-tips__z7puZ__kw4DA",f="style_upload-drag-icon__sGGoS__kw4DA",A="style_upload-drag-title__9Afmb__kw4DA",x="style_upload-drag-text__o38vS__kw4DA",_="style_title-group__8IJkS__kw4DA",v="style_upload-btn__Q+Jxn__kw4DA",j="style_total-count__z1fyd__kw4DA",y="style_file-select__mHqyI__kw4DA",w="style_file-name__QkvMn__kw4DA",b="style_file-select-info__fOLiM__kw4DA",N="style_file-select-option__AbDrD__kw4DA";var S=n(75087),C=n.n(S),k=n(74065),F=n.n(k),P=n(57469),D=n.n(P),I=n(64671),M=n(19343),T=n(47458),L=n(83136),O=n.n(L),E=n(70579);const R=e=>{let{currentTab:t,setCurrentTab:n,previewMap:s,previewList:a,getPermission:r,currentPreviewFileId:l,setCurrentPreviewFileId:i,itemApis:d,children:u,maxWidth:p=260,getPopupContainer:m}=e;return(0,E.jsx)("div",{className:c,children:(0,E.jsxs)(o.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(o.Col,{children:(0,E.jsxs)(o.Space,{className:O()(_,"core-file-list-title-group"),size:4,children:[(0,E.jsx)(o.Segmented,{value:t,onChange:n,options:[{label:(0,E.jsxs)(o.Space,{size:4,children:[(0,E.jsx)(I.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(o.Space,{size:4,children:[(0,E.jsx)(I.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&l&&s.get(l)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:l,onChange:i,getPopupContainer:m,children:a.map((e=>{let{filename:t,userName:n,date:s,id:a}=e;return(0,E.jsx)(o.Select.Option,{className:N,value:a,children:(0,E.jsxs)(o.Space,{direction:"vertical",children:[(0,E.jsxs)(o.Space,{size:4,align:"start",children:[(0,E.jsx)(C(),{type:F()(t.split(".")),size:14}),(0,E.jsx)(o.Typography.Text,{className:w,ellipsis:!0,style:{"--max-width":"".concat(p,"px")},children:t})]}),n||s?(0,E.jsxs)(o.Space,{className:b,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",n]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",s&&D()(s).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},a)}))}),(0,E.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:r,item:s.get(l),apis:d}),(0,E.jsx)("div",{className:j,children:(0,E.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:a.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(o.Col,{children:u})]})})};var z=n(53986);const B=e=>({"en-US":()=>n.e(3333).then(n.bind(n,63333)),"zh-CN":()=>n.e(8795).then(n.bind(n,48795))}[e]());var U=n(70720),W=n.n(U);const V=(0,a.createContext)({}),{Provider:G}=V,H=()=>(0,a.useContext)(V);var q=n(24818),Q=n(81348);const X=["children"],Y=e=>{let{children:t}=e;const{onOpenChange:n,getDragButtonEl:s}=H();return(0,E.jsx)("div",{ref:s,className:v,onClick:()=>{n((e=>!e))},children:(0,E.jsxs)(o.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(I.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},J=e=>{let{children:t}=e;const{accept:n,onFileSelected:a}=H();return(0,E.jsx)(q.FileInput,{className:O()(v,"btn-no-padding"),accept:n,multiple:!0,onChange:a,children:e=>{let{children:n}=e,a=(0,z.A)(e,X);return(0,E.jsxs)(o.Button,(0,s.A)((0,s.A)({},a),{},{type:"text",children:[(0,E.jsx)(I.default,{type:"icon-tianjia"}),t,n]}))}})},K=e=>{let{title:t,accept:n=[".png",".jpg",".pdf",".docx",".doc"],fileSize:s=20,maxLength:r,onFileSelected:l,children:c,className:u,defaultOpen:p=!1}=e;const[m,h]=(0,a.useState)(p),g=(0,a.useRef)(null),f=W()((e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))}));return(0,E.jsx)(T.IntlProvider,{importMessages:B,moduleName:"FileList",children:(0,E.jsx)(G,{value:{open:m,onOpenChange:h,accept:n,fileSize:s,maxLength:r,onFileSelected:l,getDragButtonEl:e=>{g.current=e}},children:(0,E.jsxs)(o.Space,{className:i,direction:"vertical",children:[t,(0,E.jsx)("div",{className:O()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},$=e=>{let{icon:t,title:n,renderTips:s=e=>e}=e;const{accept:a,fileSize:r,maxLength:l}=H(),o=s((0,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:a.map((e=>e.replace(/^\./,""))).join("\u3001"),size:r}),{fileSize:r,maxLength:l,accept:a});return(0,E.jsxs)("div",{className:O()(g,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:f,children:t||(0,E.jsx)(I.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:A,children:n||(0,E.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:x,children:o})]})},Z=e=>{let{children:t=(0,E.jsx)($,{}),className:n}=e;const{open:s,accept:a,onOpenChange:r,onFileSelected:l}=H();return s?(0,E.jsxs)("div",{className:O()(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,Q.A)(e,a)));l(t)},onDragEnd:()=>{r(!1)},children:[(0,E.jsx)(o.Button,{className:h,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(I.default,{type:"icon-close-bold"}),onClick:()=>{r(!1)}}),t]}):null};var ee=n(50196),te=n(63743);const ne=e=>{var t,n;let{className:r,maxLength:i=Number.MAX_VALUE,list:c,setList:d,infoItemRenders:m,defaultTab:h="list",defaultPreviewFileId:g,apis:f,getPermission:A=()=>!0,titleExtra:x=null,fileSize:_=20,accept:v=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:j}=e;const{apis:y}=(0,te.usePreset)(),w=Object.assign({},y,f),b=(c||[]).map((e=>Object.assign({},{id:e.ossId},e))),{fileList:N,onFileSelected:S}=(0,q.useFileUpload)({maxLength:i,multiple:!0,value:b,onChange:d,concurrentCount:1,onAdd:()=>{k("list")},onSave:async function(e){if("function"===typeof w.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 a=await w.onSave(e,...n);return Object.assign({},{id:null===a||void 0===a?void 0:a.ossId},a)}return l()(e,"data")||{}},onUpload:w.onUpload||w.ossUpload}),[C,k]=(0,a.useState)(h),{formatMessage:F}=(0,T.useIntl)({moduleName:"FileList"}),{message:P}=o.App.useApp(),D=(0,a.useMemo)((()=>new Map(b.map((e=>[e.id,e])))),[b]),[I,L]=(0,a.useState)(g||l()(b,"[0].id",null));(0,a.useEffect)((()=>{I&&D.get(I)||L(l()(b,"[0].id",null))}),[b,D,I]);const O=(0,s.A)((0,s.A)({},w),{},{onPreview:e=>{L(e.id),k("preview")},onDelete:async e=>{w.onDelete&&!1===await w.onDelete(e)||(d((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})),P.success(F({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:n}=e;const s=w.onEdit&&await w.onEdit({formData:t,item:n});return!1!==s&&(d((e=>{const s=e.slice(0),a=e.findIndex((e=>{let{id:t}=e;return t===n.id}));return a>-1&&s.splice(a,1,Object.assign({},n,{filename:t.name})),s})),P.success(F({id:"successEditFileName"},{name:n.filename}))),s}}),z="function"===typeof x?x({currentPreviewFileId:I,currentTab:C}):x;return(0,E.jsx)("div",{className:r,children:(0,E.jsxs)(K,{title:(0,E.jsx)(R,{currentTab:C,setCurrentTab:k,previewMap:D,previewList:b,getPermission:A,currentPreviewFileId:I,setCurrentPreviewFileId:L,itemApis:O,getPopupContainer:j,children:(0,E.jsxs)(o.Space,{split:(0,E.jsx)(o.Divider,{type:"vertical"}),children:[z,A("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Y,{children:F({id:"dragText"})}),(0,E.jsx)(J,{children:F({id:"uploadFile"})})]}):null]})}),fileSize:_,maxLength:i,onFileSelected:S,accept:v,defaultOpen:0===b.length,children:["list"===C?(0,E.jsx)(M.List,{dataSource:[...b,...N],getPermission:A,apis:O,infoItemRenders:m}):null,"preview"===C?I?(0,E.jsx)("div",{className:u,children:(0,E.jsx)(ee.default,{className:p,src:null===(t=D.get(I))||void 0===t?void 0:t.src,id:I,apis:w,filename:null===(n=D.get(I))||void 0===n?void 0:n.filename})}):(0,E.jsx)(o.Empty,{image:o.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)(Z,{})]})})},se=e=>(0,E.jsx)(T.IntlProvider,{importMessages:B,moduleName:"FileList",children:(0,E.jsx)(ne,(0,s.A)({},e))});var ae=n(10986),re=n.n(ae);const le=["maxLength","apis","getPermission","fileSize","accept","defaultList"],oe=e=>{let{maxLength:t=Number.MAX_VALUE,apis:n,getPermission:a=()=>!0,fileSize:r=20,accept:i=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,z.A)(e,le);const{apis:u}=(0,te.usePreset)(),p=Object.assign({},u,n),[m,h]=re()((0,s.A)({defaultList:c},d),{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:g,onFileSelected:f}=(0,q.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:h,concurrentCount:1,onSave:async function(e){if("function"===typeof p.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 a=await p.onSave(e,...n);return Object.assign({},{id:null===a||void 0===a?void 0:a.ossId},a)}return l()(e,"data")||{}},onUpload:p.ossUpload});return(0,E.jsxs)(K,{title:(0,E.jsxs)(o.Row,{children:[(0,E.jsx)(o.Col,{flex:1}),(0,E.jsx)(o.Col,{children:(0,E.jsxs)(o.Space,{split:(0,E.jsx)(o.Divider,{type:"vertical"}),children:[(0,E.jsx)(Y,{}),(0,E.jsx)(J,{children:"\u4e0a\u4f20"})]})})]}),fileSize:r,maxLength:t,onFileSelected:f,accept:i,children:[(0,E.jsx)(M.List,{dataSource:[...g,...m],getPermission:a,apis:p}),(0,E.jsx)(Z,{})]})}},29556:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>D,TooltipInfoLabel:()=>C,default:()=>N});var s=n(89379),a=n(53986),r=n(55199),l=n(83136),o=n.n(l);const i="style_tooltip__zHGMI__kw4DA",c="style_large__lvmsm__kw4DA",d="style_small__nUt0r__kw4DA",u="style_popup-content__-rKQN__kw4DA",p="style_title__1EQPq__kw4DA",m="style_important-info__qTSZY__kw4DA",h="style_error__yTTq3__kw4DA",g="style_warning__CMJxz__kw4DA",f="style_success__AvJVx__kw4DA",A="style_sub-title__uD8CH__kw4DA",x="style_content__lzgUz__kw4DA",_="style_alone__q6q82__kw4DA",v="style_fetch-content__tEOEV__kw4DA",j="style_fetch-loading__tN-WB__kw4DA",y="style_title-info-icon__iY8Q+__kw4DA";var w=n(70579);const b=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],N=e=>{let{overlayClassName:t,title:n,size:l,subtitle:v,content:j,importantInfo:y,importantInfoType:N,moreInfo:S}=e,C=(0,a.A)(e,b);return(0,w.jsx)(r.Tooltip,(0,s.A)((0,s.A)({},C),{},{rootClassName:o()(t,i,{[d]:"small"===l,[c]:"large"===l}),title:(0,w.jsxs)(r.Space,{direction:"vertical",className:u,children:[n&&(0,w.jsx)("div",{className:p,children:n}),y&&(0,w.jsx)("div",{className:o()(m,{[f]:"success"===N,[g]:"warning"===N,[h]:"error"===N}),children:y}),v&&(0,w.jsx)("div",{className:A,children:v}),j&&(0,w.jsx)("div",{className:o()(x,{[_]:[n,v,y,S].every((e=>!e))}),children:j}),S&&(0,w.jsx)("div",{children:S})]})}))};var S=n(64671);const C=e=>{let{title:t,tooltipTitle:n}=e;return(0,w.jsxs)("div",{children:[t,n?(0,w.jsx)(N,(0,s.A)((0,s.A)({},n),{},{children:(0,w.jsx)("span",{children:(0,w.jsx)(S.default,{type:"icon-xinxi-miaobian",className:y,size:14})})})):null]})};var k=n(73884),F=n(87558);const P=["api","children","fetchContent","showLoading","loadingClassName","force"],D=e=>{let{api:t,children:n,fetchContent:l,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,a.A)(e,P);const[p,m]=(0,k.useState)(!1),h=(0,F.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:A,send:x}=h;return(0,w.jsx)(N,(0,s.A)((0,s.A)({},Object.assign({},u,g?l(A,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await x({type:"refresh"}),m(e)},children:(0,w.jsxs)("span",{className:v,children:[n,i&&f?(0,w.jsx)(r.Spin,{size:"small",className:o()(c,j)}):null]})}))}},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var s=n(98434),a=n(43856);const{useOnChange:r}=s.hooks,l=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(a.UserField),i=l(a.TableField),c=l(a.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return l((0,a.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},30891:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(89379),a=n(98434);const r=e=>{let{children:t}=e;const{openApi:n,formData:r}=(0,a.useFormContext)();return t((0,s.A)((0,s.A)({},n),{},{formData:r}))}},34643:(e,t,n)=>{n.d(t,{Ay:()=>u,Pg:()=>c,eM:()=>d});var s=n(98434),a=n(43856),r=n(35063);const{useOnChange:l}=s.hooks,o=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(a.SuperSelectField),c=o(r.$9),d=o(a.SuperSelectTableListField),u=i},35774:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(89379),a=n(53986),r=n(98434),l=n(81014),o=n(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,n=(0,a.A)(e,i);const c=(0,r.useFormContext)();return(0,o.jsx)(l.default,(0,s.A)((0,s.A)({},n),{},{onClick:e=>t(c,e)}))}},36972:(e,t,n)=>{n.d(t,{A:()=>E});var s=n(89379),a=n(53986),r=n(73884),l=n(87558),o=n(98434),i=n(78491),c=n.n(i),d=n(55199);const u="style_salary__sUOtT__kw4DA",p="style_salary-type__Sl1LC__kw4DA",m="style_input-number__eoEZr__kw4DA",h="style_full__NPqJm__kw4DA",g="style_input-group__toLB7__kw4DA",f="style_input-group-no-mb__C4nzh__kw4DA";var A=n(47458),x=n(55431),_=n(48731),v=n(10986),j=n.n(v),y=n(21079),w=n(70579);const b=["data"],N=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],S=["api","defaultValue"],C=(0,l.withFetch)((e=>{let{data:t}=e,n=(0,a.A)(e,b);return(0,w.jsx)(d.Select,(0,s.A)((0,s.A)({},n),{},{options:t}))})),{useDecorator:k,useUIDecorator:F}=o.hooks,P=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},D=e=>{let{children:t,isError:n}=e;return(0,w.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,w.jsx)("div",{className:"react-form__field-main",children:(0,w.jsx)("div",{className:"react-form__field-input",children:(0,r.cloneElement)(t,{className:"react-form__field-component"})})})})},I=e=>{let{getPopupContainer:t,onBlur:n,api:r,isRange:l=!0,placeholder:o,disabled:i,showMonth:x,remindUnit:v,req:b}=e,S=(0,a.A)(e,N);const[k,F]=j()(S),{formatMessage:I}=(0,A.useIntl)({moduleName:"FormInfo"}),M=I({id:"defaultSelectPlaceholder"},{label:""}),T=I({id:"defaultInputPlaceholder"},{label:""}),L=[6].indexOf((0,y.get)(k,"type"))>-1,O=1===(0,y.get)(k,"type"),E=7===(0,y.get)(k,"type"),R=e=>{if(e)return L?e/1e4:e},z=c()(n||(()=>{}));return(0,w.jsx)("div",{ref:z,className:u,children:(0,w.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,w.jsx)(d.Col,{children:(0,w.jsx)(C,(0,s.A)((0,s.A)({className:p},r),{},{value:(0,y.get)(k,"type"),onChange:e=>{F&&F(Object.assign({},O?{}:k,{type:e,min:"",max:""}))},placeholder:o||M,getPopupContainer:t,disabled:i}))}),O?null:(0,w.jsxs)(d.Col,{flex:1,children:[l&&(0,w.jsxs)(d.Row,{className:v&&[5,6].includes(null===k||void 0===k?void 0:k.type)?g:f,wrap:!1,children:[(0,w.jsx)(d.Col,{flex:1,children:(0,w.jsx)(D,{isError:!(0,y.get)(k,"min")&&b,children:(0,w.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:P,value:R((0,y.get)(k,"min")),style:{textAlign:"center"},onChange:e=>{F(Object.assign({},k,{min:L?1e4*e:e}))},description:v&&[5,6].includes(null===k||void 0===k?void 0:k.type)?(0,w.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,w.jsx)(_.default,{name:null===k||void 0===k?void 0:k.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",L?I({id:"thousand"}):E?"":I({id:"yuan"})]}):null})})}),(0,w.jsx)(d.Col,{children:(0,w.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,w.jsx)(d.Col,{flex:1,children:(0,w.jsx)(D,{isError:!(0,y.get)(k,"max")&&b,children:(0,w.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:P,value:R((0,y.get)(k,"max")),style:{textAlign:"center"},addonAfter:L?I({id:"thousand"}):E?"":I({id:"yuan"}),onChange:e=>{F(Object.assign({},k,{max:L?1e4*e:e}))}})})}),5===(0,y.get)(k,"type")&&x&&(0,w.jsx)(d.Col,{children:(0,w.jsxs)("span",{className:(0,y.get)(k,"max")&&(0,y.get)(k,"min")&&!(0,y.get)(k,"month")&&b?"error":"",children:[(0,w.jsx)("span",{className:m,children:"X"}),(0,w.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,y.get)(k,"month"),onChange:e=>{F(Object.assign({},k,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!E&&(0,w.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:T,className:h,formatter:P,value:R((0,y.get)(k,"max")),style:{textAlign:"center"},addonAfter:L?I({id:"thousand"}):E?"":I({id:"yuan"}),onChange:e=>{F(Object.assign({},k,{max:L?1e4*e:e}))}}),!l&&E&&(0,w.jsx)(d.Input,{disabled:i,placeholder:T,className:h,onChange:e=>{F(Object.assign({},k,{max:e.target.value}))},value:(0,y.get)(k,"max"),style:{textAlign:"center"}})]})]})})},M={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"}]},T={type:5,min:"",max:"",month:12},L=e=>{let{api:t=M,defaultValue:n=T}=e,r=(0,a.A)(e,S);return(0,w.jsx)(A.IntlProvider,{moduleName:"FormInfo",importMessages:x.A,children:(0,w.jsx)(I,(0,s.A)((0,s.A)({},r),{},{api:t,defaultValue:n}))})},O=e=>{var t;return k((0,s.A)((0,s.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(L)};O.Field=L;const E=O},41381:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a.a});n(55664);var s=n(40094),a=n.n(s),r={};for(const l in s)"default"!==l&&(r[l]=()=>s[l]);n.d(t,r)},45053:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(98434),a=n(55199),r=n(73884),l=n(83136),o=n.n(l),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:l,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:a}=e;const{emitter:l,formState:o}=(0,s.useFormContext)(),i=(0,r.useRef)({name:t,groupName:n,groupIndex:a});i.current={name:t,groupName:n,groupIndex:a};const c=(0,r.useRef)(o);c.current=o;const[d,u]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=l.addListener("form-field-validate-complete",(e=>{let{id:t,validate:n}=e;const a=c.current[t];if(!a)return;const r=i.current;a.name!==r.name||r.groupName&&(a.groupName!==r.groupName||a.groupIndex!==r.groupIndex)||u(2===n.status?Object.assign({},n,{label:a.label,errMsg:s.util.compileErrMsg(n.msg,a.label)}):null)}));return()=>{e&&e.remove()}}),[l]),d})({name:t,groupName:n,groupIndex:p}),[g,f]=(0,r.useState)(!1),A=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,r.useRef)(null),_=(0,r.useRef)(null);c()((()=>{f(!1)})).current={contains:e=>x.current.contains(e)||_.current&&_.current.contains(e)};const[v,j]=(0,r.useState)(0);return(0,r.useLayoutEffect)((()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&j(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)(a.Popover,{open:!!A,rootClassName:o()(l,d.A["error-tip-overlay"]),content:A&&(0,u.jsx)("div",{ref:_,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:A}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:m})})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var s=n(73884);const a=(0,s.createContext)([]),{Provider:r,Consumer:l}=a,o=()=>(0,s.useContext)(a),i=r},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var s=n(75363),a=n(73884),r=n(98434),l=n(47094),o=n(70579);const i=(0,a.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,a.useContext)(i),c=(0,r.useGroup)();return n&&(0,o.jsx)(s.default,{className:l.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__kw4DA","form-drawer":"style_form-drawer__uYDXS__kw4DA","table-list":"style_table-list__6lp-A__kw4DA","list-item":"style_list-item__hVzQa__kw4DA","table-list-inner":"style_table-list-inner__uc8DK__kw4DA","table-list-field":"style_table-list-field__JSJfB__kw4DA","table-list-header":"style_table-list-header__KXvKa__kw4DA","is-req":"style_is-req__LfXQf__kw4DA","table-list-extra":"style_table-list-extra__faYTK__kw4DA","list-btn":"style_list-btn__WKYkm__kw4DA","form-info":"style_form-info__B8bAP__kw4DA","list-part":"style_list-part__Ld0GA__kw4DA","is-important":"style_is-important__vaBk1__kw4DA","list-item-part":"style_list-item-part__MzKP7__kw4DA","money-input":"style_money-input__J86Pb__kw4DA","money-description":"style_money-description__Gz3p7__kw4DA","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__kw4DA","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__kw4DA","helper-guide-field":"style_helper-guide-field__Wke3w__kw4DA","error-tip-overlay":"style_error-tip-overlay__aNCGc__kw4DA","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__kw4DA","column-not-layout":"style_column-not-layout__+SXC+__kw4DA","mult-field-item":"style_mult-field-item__eS0nJ__kw4DA","react-form__field-label":"style_react-form__field-label__2U91E__kw4DA","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__kw4DA","form-step-section":"style_form-step-section__RvkHy__kw4DA"}},47338:(e,t,n)=>{n.r(t),n.d(t,{ConfirmButton:()=>s.ConfirmButton,ConfirmLink:()=>s.ConfirmLink,ConfirmText:()=>s.ConfirmText,default:()=>a,withConfirm:()=>s.withConfirm});n(9056);var s=n(86300);const a=s.ConfirmButton},48221:(e,t,n)=>{n.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var s=n(89379),a=n(25963),r=n(73025),l=n(47094),o=n(76995),i=n(70579);const c=e=>(0,i.jsx)(a.default,(0,s.A)({},(0,o.A)(Object.assign({},e,{className:l.A["form-drawer"]})))),d=()=>{const e=(0,a.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:l.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(r.A,(0,s.A)((0,s.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),a=n(98434);const{useOnChange:r}=a.hooks,l=e=>r(Object.assign({},{},e))(s.A);l.Field=s.A;const o=l},64261:(e,t,n)=>{n.d(t,{A:()=>g});var s=n(89379),a=n(98434),r=n(57469),l=n.n(r),o=n(34677),i=n.n(o),c=n(33097),d=n.n(c),u=(n(17448),n(2842)),p=n(46732),m=n(13050),h=n(70579);const g=async(e,t)=>{const{locale:n}=Object.assign({},t);a.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),a.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})),a.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),a.interceptors.output.use("to-array",(e=>[e])),a.interceptors.input.use("array-single",(e=>e?[e]:[])),a.interceptors.output.use("array-single",(e=>e?e[0]:null)),a.interceptors.input.use("boolean-number",(e=>1===e||"1"===e)),a.interceptors.output.use("boolean-number",(e=>e?1:0)),a.interceptors.input.use("un-boolean",(e=>!e)),a.interceptors.output.use("un-boolean",(e=>!e)),a.interceptors.output.use("object-output-value",(e=>e?e.value||e.id:e)),a.interceptors.input.use("date-string",(e=>e?l()(e):null)),a.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),a.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(l()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(l()(e[1])),t})),a.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})),a.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),a.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:r}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),o=await r(),c=new Map(o.map((e=>{let{ab:t,country_code:n}=e;return[t,n]}))),g=new Map(o.map((e=>{let{ab:t,country_code:n}=e;return[n,t]})));a.interceptors.output.use("phone-number-string",(e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):"")),a.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:g.get(Number(t[1])),value:t[2]}:{code:g.get(86),value:e}}));const f=a.RULES.REQ,A=a.RULES.LEN,x=(e,t)=>{t=Object.assign({},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".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},a=d()(s,"".concat(e,".").concat(n));return a||d()(s,"".concat(e,".zh-CN"))};(0,a.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},f(...arguments),{errMsg:x("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[s,a,r]=t;let l="";return r===a&&s.length!==Number(r)&&(l="LENGTH_EQUAL"),s.length<a&&(l="LENGTH_MORE"),r&&s.length>r&&(l="LENGTH_LESS"),Object.assign({},A(...t),{errMsg:x(l,{start:a,end:r})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:x("EMAIL")}},PHONE_NUMBER_INPUT:u.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:x("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:x("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:x("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,h.jsx)(p.A,(0,s.A)({},e))}},"function"===typeof e?e({interceptors:a.interceptors,RULES:a.RULES}):e))}},72297:(e,t,n)=>{n.d(t,{A:()=>ee,E:()=>te});var s=n(89379),a=n(53986),r=n(98434),l=n(30096),o=n(34643),i=n(1904),c=n(83230),d=n(81026),u=n(78756),p=n(92328),m=n(2842),h=n(55199),g=n(70579);const f=["checked","children"],{useOnChange:A,useCheckedToValue:x}=r.hooks,{withChecked:_}=r.hoc,v=_((e=>{let{checked:t,children:n=null}=e,r=(0,a.A)(e,f);return(0,g.jsxs)(h.Space,{children:[(0,g.jsx)(h.Switch,(0,s.A)({checked:t},r)),"function"===typeof n?n({checked:t}):n]})})),j=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=x(e);return A(t)(v)};j.Field=h.Switch;const y=j;var w=n(89099),b=n(96339),N=n(36972),S=n(15209),C=n(74529),k=n.n(C),F=n(73884),P=n(47458),D=n(33097),I=n.n(D),M=n(21079),T=n(46237),L=n(56259),O=n(29556),E=n(64671),R=n(83136),z=n.n(R),B=n(47094);const U=["forwardedRef","label","placeholder"],W=["placeholder","label"],V=["placeholder","label"],G=["placeholder","label","soFarText"],H=e=>t=>{const n=k()(...e)((e=>{let{forwardedRef:n,label:r,placeholder:l}=e,o=(0,a.A)(e,U);return(0,g.jsx)(t,(0,s.A)((0,s.A)({},o),{},{label:r,placeholder:l,labelRender:()=>o.tips?(0,g.jsxs)(h.Space,{children:[r,(0,g.jsx)(O.default,{content:o.tips,children:(0,g.jsx)("span",{className:z()(B.A["field-tips"],{[B.A["label-hidden"]]:o.labelHidden}),children:(0,g.jsx)(E.default,{type:"icon-xinxi-miaobian"})})})]}):r,ref:n}))})),r=(0,F.forwardRef)(((e,t)=>(0,g.jsx)(n,(0,s.A)((0,s.A)({},e),{},{forwardedRef:t}))));return Object.keys(t).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((e=>{r[e]=t[e]})),r},q=e=>t=>{let{placeholder:n,label:r}=t,l=(0,a.A)(t,W);return(0,g.jsx)(P.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,g.jsx)(e,(0,s.A)((0,s.A)({},l),{},{label:r,placeholder:n||t}))})},Q=e=>t=>{let{placeholder:n,label:r}=t,l=(0,a.A)(t,V);return(0,g.jsx)(P.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,g.jsx)(e,(0,s.A)((0,s.A)({},l),{},{label:r,placeholder:n||t}))})},X=e=>t=>{const n=(0,r.useGroup)(),a=I()(n,"name"),l=(0,M.get)(n,"index"),o=(0,T.oc)();return o&&Array.isArray(o)&&o.length>0?o.map((n=>{if("string"===typeof n)return(0,F.createElement)(e,(0,s.A)((0,s.A)({},t),{},{key:n}));const{name:r,label:o,options:i}=n,c=I()(i,"ignore",[]),d=I()(i,"disabled",[]),u=I()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==a)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==l);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:I()(i,"nameTransform",((e,t)=>"".concat(e).concat(t)))(t.name,r),label:I()(i,"labelTransform",((e,t)=>e&&"".concat(e).concat(t)))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,F.createElement)(e,(0,s.A)((0,s.A)({},m),{},{key:r}))})):(0,g.jsx)(e,(0,s.A)({},t))},Y=H([X,q])(r.Input),J=H([X,q])(r.InputNumber);Y.Password=H([X,q])(r.Input.Password);const K=H([X,Q])(r.DatePicker);K.MonthPicker=H([X,Q])(r.DatePicker.MonthPicker),K.RangePicker=H([X,Q])(r.DatePicker.RangePicker),K.WeekPicker=H([X,Q])(r.DatePicker.WeekPicker);const $=H([X,Q])(r.TimePicker);$.RangePicker=H([X,Q])(r.TimePicker.RangePicker);const Z=H([X])((e=>{let{placeholder:t,label:n,soFarText:l}=e,o=(0,a.A)(e,G);const{formatMessage:i}=(0,P.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(r.DatePickerToday,(0,s.A)((0,s.A)({},o),{},{label:n,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:l||i({id:"soFarText"})}))})),ee={Input:Y,Checkbox:r.Checkbox,Password:Y.Password,InputNumber:J,DatePicker:K,MonthPicker:K.MonthPicker,WeekPicker:K.WeekPicker,DateRangePicker:K.RangePicker,TimeRangePicker:$.RangePicker,TimePicker:$,DatePickerToday:Z,RadioGroup:H([X])(r.RadioGroup),CheckboxGroup:H([X])(r.CheckboxGroup),Rate:H([X])(r.Rate),Switch:H([X])(y),Slider:H([X])(r.Slider),SalaryInput:H([X,q])(N.A),TypeDateRangePicker:H([X])(L.A),MoneyInput:H([X,q])(p.A),PhoneNumber:H([X,q])(m.default),Upload:H([X])(w.A),Avatar:H([X])(b.A),FunctionSelect:H([X,Q])(d.A),IndustrySelect:H([X,Q])(u.A),Cascader:H([X,Q])(c.A),AddressSelect:H([X,Q])(i.A),AddressInput:H([X,Q])(i.N),TreeSelect:H([X,Q])(r.TreeSelect),ReactInputNumber:H([X,q])(r.InputNumber),InputUpperCase:H([X,q])(S.A),Select:H([X,Q])(r.Select),TextArea:H([X,q])(r.TextArea),AdvancedSelect:H([X,Q])(l.Ay),SuperSelect:H([X,Q])(o.Ay),SuperSelectTableList:H([X,Q])(o.eM),SuperSelectUser:H([X,Q])(o.Pg)},te={createWithFieldDecorator:H,withInputDefaultPlaceholder:q,withSelectDefaultPlaceholder:Q,withLang:X}},76995:(e,t,n)=>{n.d(t,{A:()=>f});var s=n(89379),a=n(53986),r=n(55431),l=n(98434),o=n(47458),i=n(83799),c=n(83136),d=n.n(c),u=n(47094),p=n(70579);const m=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],h=["onSubmit"],g="FormInfo",f=e=>{let{className:t,withDecorator:n,footerButtons:c,formProps:f,cancelText:A,saveText:x,autoClose:_}=e,v=(0,a.A)(e,m);return(0,s.A)((0,s.A)({},v),{},{footerButtons:c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:r.A,moduleName:g,children:A||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:g})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:r.A,moduleName:g,children:x||(0,p.jsx)(o.FormattedMessage,{id:"Save",moduleName:g})}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const n=Object.assign({},"function"===typeof f?f(t):f),{onSubmit:l}=n,c=(0,a.A)(n,h);return(0,p.jsx)(i.lV,(0,s.A)((0,s.A)({},c),{},{onSubmit:async function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];!1!==(l&&await l(e,Object.assign({},t),...s))&&_&&t.close()},children:(0,p.jsx)(o.IntlProvider,{importMessages:r.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof n?n(l,t):l(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(43856),a=n(98434);const{useOnChange:r}=a.hooks,l=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.IndustrySelectField);l.Field=s.IndustrySelectField,l.Enum=s.IndustrySelectField.Enum;const o=l},81026:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(43856),a=n(98434);const{useOnChange:r}=a.hooks,l=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.FunctionSelectField);l.Field=s.FunctionSelectField,l.Enum=s.FunctionSelectField.Enum;const o=l},83230:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(98434),a=n(43856);const{useOnChange:r}=s.hooks,l=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.CascaderField);l.Field=a.CascaderField,l.createTreeUtils=a.createTreeUtils;const o=l},83560:(e,t,n)=>{n.d(t,{A:()=>g});var s=n(89379),a=n(55199),r=n(98434),l=n(63361),o=n(73884),i=n(10486),c=n(29556),d=n(64671),u=n(83136),p=n.n(u),m=n(47094),h=n(70579);const g=e=>{let{list:t,groupArgs:n,itemRender:u}=e;const g=(0,r.useFormContext)(),f=Object.assign({},g,n?{groupArgs:n}:{}),A=(0,o.useRef)(null),[x,_]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{_(!0)}),[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{ref:A,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(f):!1!==e.props.display)).map(((e,r)=>{const g=e.props.name+r||n&&n[0]+r||r,_={key:g,list:t,props:e.props},v=Object.assign({},e.props),j=e.type;["display","block","hidden","setExtraProps","isBlock","featureId"].forEach((t=>{e.props.hasOwnProperty(t)&&(_[t]=e.props[t]),delete v[t]})),_.hasOwnProperty("isBlock")&&(v.block=_.isBlock);const y=(0,h.jsx)(j,(0,s.A)((0,s.A)({},Object.assign({},v,"function"===typeof _.setExtraProps?_.setExtraProps({props:v,contextApi:f}):{})),{},{onChange:function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.props.onChange&&e.props.onChange(...n,f)}})),w=_.hidden?x&&(0,i.createPortal)(y,A.current):u(_.tips?(0,h.jsxs)(a.Row,{gutter:8,align:"top",children:[(0,h.jsx)(a.Col,{flex:1,children:y}),(0,h.jsx)(a.Col,{children:(0,h.jsx)(c.default,{content:_.tips,children:(0,h.jsx)("span",{className:p()(m.A["field-tips"],{[m.A["label-hidden"]]:v.labelHidden}),children:(0,h.jsx)(d.default,{type:"icon-xinxi-miaobian"})})})})]}):y,_);return(0,h.jsx)(o.Fragment,{children:_.hasOwnProperty("featureId")?(0,h.jsx)(l.default,{id:_.featureId,children:w},g):w},g)}))]})}},83799:(e,t,n)=>{n.d(t,{NI:()=>G,TQ:()=>m.A,JL:()=>B,eu:()=>v.A,vx:()=>h.A,lr:()=>Z,s3:()=>ee,lV:()=>l.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>q,YI:()=>J,h2:()=>H,F0:()=>A.A,go:()=>x.default,tt:()=>r.Rate,lu:()=>j.A,l6:()=>Y,Ap:()=>r.Slider,wD:()=>U,eM:()=>W,Pg:()=>V,dO:()=>r.Switch,EY:()=>I,fs:()=>Q,AG:()=>$,f7:()=>K,w5:()=>w.A,_O:()=>_.A,nk:()=>te});var s=n(89379),a=n(53986),r=n(98434),l=n(85696),o=n(47458),i=n(73884),c=n(30891),d=n(47094),u=n(30096),p=n(34643),m=n(1904),h=n(83230),g=n(81026),f=n(78756),A=n(92328),x=n(2842),_=n(89099),v=n(96339),j=n(36972),y=n(15209),w=n(56259),b=n(55199),N=n(10986),S=n.n(N),C=n(70579);const k=["children"],{useDecorator:F}=r.hooks,P=e=>{let{children:t}=e,n=(0,a.A)(e,k);const[r]=S()(n);return(0,C.jsxs)(b.Typography.Text,(0,s.A)((0,s.A)({},n),{},{children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(b.Input,{value:r})}),t||r]}))},D=e=>F(e)(P);D.Field=P;const I=D;var M=n(45053);const T=["placeholder","label"],L=["placeholder","label","className"],O=["placeholder","label"],E=["placeholder","label","soFarText"],R=e=>{const t=(0,i.forwardRef)(((t,n)=>{let{placeholder:r,label:l}=t,i=(0,a.A)(t,T);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,C.jsx)(e,(0,s.A)((0,s.A)({},i),{},{ref:n,label:l,placeholder:r||t}))})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},z=e=>{const t=(0,i.forwardRef)(((t,n)=>{let{placeholder:r,label:l}=t,i=(0,a.A)(t,O);return(0,C.jsx)(o.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,C.jsx)(e,(0,s.A)((0,s.A)({},i),{},{ref:n,label:l,placeholder:r||t}))})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},B=z(u.Ay),U=z(p.Ay),W=z(p.eM),V=z(p.Pg),G=z(m.N),H=R(y.A),q=R(r.Input);q.Password=R(r.Input.Password);const Q=(X=r.TextArea,e=>{let{placeholder:t,label:n,className:r}=e,l=(0,a.A)(e,L);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,C.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,C.jsx)(X,(0,s.A)((0,s.A)({},l),{},{label:n,placeholder:t||e}))})})});var X;const Y=z(r.Select),J=R(r.InputNumber),K=z(r.TreeSelect),$=z(r.TimePicker);$.RangePicker=z(r.TimePicker.RangePicker);const Z=z(r.DatePicker);Z.MonthPicker=z(r.DatePicker.MonthPicker),Z.RangePicker=z(r.DatePicker.RangePicker),Z.WeekPicker=z(r.DatePicker.WeekPicker);const ee=e=>{let{placeholder:t,label:n,soFarText:l}=e,i=(0,a.A)(e,E);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(r.DatePickerToday,(0,s.A)((0,s.A)({},i),{},{label:n,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:l||c({id:"soFarText"})}))},te=Object.assign({},r,{Input:q,InputUpperCase:H,TextArea:Q,Select:Y,InputNumber:J,TreeSelect:K,TimePicker:$,DatePicker:Z,DatePickerToday:ee,Form:l.A,FormItem:c.A,AdvancedSelect:B,SuperSelect:U,SuperSelectTableList:W,SuperSelectUser:V,AddressSelect:m.A,AddressInput:G,MoneyInput:A.A,PhoneNumber:x.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:w.A,Upload:_.A,Avatar:v.A,SalaryInput:j.A,Text:I,Rate:r.Rate,Switch:r.Switch,Slider:r.Slider,ErrorTip:M.A})},85696:(e,t,n)=>{n.d(t,{A:()=>y});var s=n(89379),a=n(53986),r=n(73884),l=n(63743),o=n(33097),i=n.n(o),c=n(64261),d=n(47458),u=n(55431),p=n(46237),m=n(41381),h=n(46732),g=n(98434),f=n(83136),A=n.n(f),x=n(47094),_=n(70579);const v=["className","helperGuideName","children","lang"],j=e=>{let{children:t}=e;const[n,s]=(0,r.useState)(!1),a=(0,l.usePreset)(),o=i()(a,"formInfo",{}),d=i()(a,"locale");return(0,r.useEffect)((()=>{Promise.resolve((0,c.A)(o,{locale:d})).then((()=>{s(!0)}))}),[o,d]),n?t:null},y=(0,r.forwardRef)(((e,t)=>{let{className:n,helperGuideName:r,children:l,lang:o}=e,i=(0,a.A)(e,v);return(0,_.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,_.jsx)(p.Ay,{value:o,children:(0,_.jsx)(h.K,{value:r,children:(0,_.jsx)(j,{children:(0,_.jsx)(g.FormAntd,(0,s.A)((0,s.A)({},i),{},{ref:t,className:A()(n,x.A["form-outer"]),children:(0,_.jsx)(m.default,{children:l})}))})})})})}))},85846:(e,t,n)=>{n.d(t,{A:()=>w});var s=n(53986),a=n(89379),r=n(73884),l=n(55199),o=n(47338),i=n(64671),c=n(41381),d=n(98434),u=n(2196),p=n(83136),m=n.n(p),h=n(55431),g=n(47458),f=n(33097),A=n.n(f),x=n(47094),_=n(70579);const v=["add","addText","className","allowAdd"],j=(0,g.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})((e=>{let{title:t,addText:n,minLength:s=0,isUnshift:c=!0,maxLength:p,defaultLength:h=1,label:f,name:v,beforeAdd:j,afterDelete:w,column:b,list:N,listRender:S,itemTitle:C,outer:k=(0,_.jsx)(y,{}),renderChildren:F=e=>e,className:P,important:D,deleteButtonProps:I}=e;const M=(0,r.useRef)(null),T=(0,d.useFormContext)(),{formData:L}=T,O=!(p&&p<=A()(L,"".concat(v,".length"),0)),{formatMessage:E}=(0,g.useIntl)({moduleName:"FormInfo"}),R=()=>{"function"===typeof j&&!1===j(v,T,{isUnshift:c,group:M.current})||M.current.onAdd({isUnshift:c})};return(0,_.jsxs)(_.Fragment,{children:[(0,r.cloneElement)(k,{title:t,addText:n,className:m()(P,x.A["list-part"]),allowAdd:c&&O,add:R},F((0,_.jsx)(d.GroupList,{name:v,defaultLength:h,ref:M,children:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const{id:c,index:d,onRemove:p,length:h}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:n,onRemove:s,length:a}]=e;return{id:t,index:n,onRemove:s,length:a}})(n),A={column:b,list:"function"===typeof N?N(...n,T):N,title:"function"===typeof C?C({index:d,key:c,onRemove:p}):C,groupArgs:n,extra:(0,_.jsx)(g.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>s&&s>=h?null:(0,_.jsx)(o.default,(0,a.A)((0,a.A)({danger:!0,className:"btn-no-padding",message:E({id:"delConfirm"},{name:f||t}),type:"link",onClick:()=>{p(c),w&&w(...n,T)}},Object.assign({},I)),{},{children:null!==I&&void 0!==I&&I.children?null===I||void 0===I?void 0:I.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.default,{type:"icon-shanchu"}),e]})}))})};return(0,_.jsxs)("div",{className:m()(x.A["list-item"],{[x.A["is-important"]]:D}),children:["function"===typeof S?S(A):(0,_.jsx)(u.A,(0,a.A)((0,a.A)({},A),{},{className:x.A["list-item-part"],gap:16})),(0,_.jsx)(l.Divider,{})]},c)}}))),!c&&O?(0,_.jsx)(g.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsx)("div",{className:m()("form-info-list-add-btn"),children:(0,_.jsxs)(l.Button,{onClick:R,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),n||e]})})}):null]})})),y=e=>{let{add:t,addText:n,className:r,allowAdd:o}=e,d=(0,s.A)(e,v);return(0,_.jsx)(c.default.Part,(0,a.A)((0,a.A)({},d),{},{className:r,extra:o&&(0,_.jsx)(g.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(l.Typography.Text,{className:x.A["list-btn"],onClick:t,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),n||e]})})}))},w=j},89099:(e,t,n)=>{n.d(t,{A:()=>S});var s=n(89379),a=n(53986),r=n(55199),l=n(83136),o=n.n(l),i=n(10986),c=n.n(i);const d="style_upload__t422Q__kw4DA",u="style_upload-list__Q9HDc__kw4DA",p="style_tips__3Gpnu__kw4DA";var m=n(19343),h=n(98434),g=n(47458),f=n(1488),A=n.n(f),x=n(17508),_=n(55431),v=n(70579);const j=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],y=["interceptor"],{useOnChange:w}=h.hooks,b=(0,g.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})((e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),n=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),{className:l,fileSize:i,maxLength:h,multiple:f,size:_,accept:y,children:w,renderTips:b,showUploadList:N,onSave:S,ossUpload:C,onUpload:k,getPermission:F,concurrentCount:P}=n,D=(0,a.A)(n,j),[I,M]=c()(D),T=I||[],{fileList:L,onFileSelected:O}=(0,x.lN)({multiple:f,onSave:S,onUpload:C||k,fileSize:i,maxLength:h,value:T,onChange:M,concurrentCount:P}),E=[...L,...T],R=b(t({id:"uploadTips"},{extensionNames:y.map((e=>e.replace(/^\./,""))).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:y});return(0,v.jsxs)(r.Space,{direction:"vertical",children:[(0,v.jsxs)(r.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(x.Zi,(0,s.A)((0,s.A)({},A()(D,["value","onChange"])),{},{size:_,multiple:f,accept:y,className:o()(d,l),onChange:O,children:w})),R&&(0,v.jsx)("div",{className:p,children:R})]}),N&&E.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:E,infoItemRenders:[],getPermission:F||(e=>"delete"===e),apis:{onDelete:e=>{const t=T.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),M(t)}}})]})})),N=e=>{let{interceptor:t="file-format"}=e,n=(0,a.A)(e,y);return w((0,s.A)({interceptor:t},n))(b)};N.Field=b;const S=N},92328:(e,t,n)=>{n.d(t,{A:()=>w});var s=n(89379),a=n(53986),r=n(10986),l=n.n(r),o=n(98434),i=n(55199),c=n(69484);const d="style_money-input__Pyur7__kw4DA",u="style_money-description__9pFk4__kw4DA";var p=n(83136),m=n.n(p),h=n(34677),g=n.n(h),f=n(73884),A=n(70579);const x=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:_}=o.util||o.formUtils,{useOnChange:v}=o.hooks,j=e=>{let{chineseEmpty:t,className:n,showError:r,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,j=(0,a.A)(e,x);const[y,w]=(0,f.useState)(""),[b,N]=l()(j),S=g()({controls:!1,precision:2,addonAfter:"\u5143"},j,{max:_(j.max)?j.max>c.e?c.e:j.max:c.e});return(0,A.jsxs)("div",{className:m()(n,"money-input",d),children:[(0,A.jsx)(i.InputNumber,(0,s.A)((0,s.A)({},S),{},{status:y,formatter:v?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=v?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return _(t)?(Number(t)>Number(S.max)||_(S.min)&&Number(t)<Number(S.min))&&w("error"):w(""),_(t)?Number(t):null},onChange:e=>{N(e)},onBlur:e=>{h&&h(e,w)}})),(0,A.jsx)("div",{className:m()(u),children:"error"===y&&r?o:_(b)?(0,c.A)(p?p(b):b):t})]})},y=e=>v(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(j);y.Field=j,y.toChineseCharacter=c.A;const w=y},94005:(e,t,n)=>{n.d(t,{$X:()=>N,Ay:()=>b,Wp:()=>S});var s=n(89379),a=n(53986),r=n(3382),l=n(73884),o=n(98434),i=n(73025),c=n(47458),d=n(47094),u=n(55431),p=n(55199),m=n(76995),h=n(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator"],f=["formProps","title"],A=["onSubmit"],x=["formProps"],_=["children","stepSection"],v=["modalProps"],j="FormInfo",y=e=>{let{items:t,children:n}=e;const[s,a]=(0,l.useState)(0);return n({currentIndex:s,setCurrentIndex:a,stepCacheRef:(0,l.useRef)({}),isLastStep:s===t.length-1,currentProps:Object.assign({},t[s])})},w=e=>{let{footerButtons:t,cancelText:n,completeText:s,nextText:r,items:l,withDecorator:i}=e,v=(0,a.A)(e,g);return(0,m.A)(Object.assign({},v,{footerButtons:e=>{let{currentIndex:t,isLastStep:a}=e;const{footerButtons:i}=Object.assign({},l[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:j,children:n||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:j})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:j,children:a?s||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:j}):r||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:j})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const n=t=>(0,h.jsx)(y,{items:l,children:n=>{var s;let{currentIndex:r,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=n;const{formProps:m,title:g}=c,x=(0,a.A)(c,f),_="function"===typeof m?m(t):m,{onSubmit:j}=_,y=(0,a.A)(_,A),w=Object.assign({},y.data,null===(s=u.current[r])||void 0===s?void 0:s.data);return e(Object.assign({},t,x,{currentIndex:r,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:r,items:l.map((e=>{let{title:t}=e;return{title:t}}))}),formProps:Object.assign({},y,{key:r,data:w,onSubmit:async function(e){u.current[r]={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 l=j&&await j(e,Object.assign({},t,{currentIndex:r,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...s);return v.autoClose&&!o&&!1!==l&&i((e=>e+1)),!!o&&l}})}))}});return"function"===typeof i?i(n,t):n(t)},formProps:e=>{let{formProps:t}=e,n=(0,a.A)(e,x);return Object.assign({},n,t)},children:e=>{let{children:t,stepSection:n}=e,s=(0,a.A)(e,_);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:n}),"function"===typeof t?t(s):t]})}}))},b=e=>(0,h.jsx)(r.default,(0,s.A)({},w(Object.assign({},e,{className:d.A["form-modal"]})))),N=()=>{const e=(0,r.useModal)();return t=>e(w(Object.assign({},t,{className:d.A["form-modal"]})))},S=e=>{const t=N();if(!e.api){const{modalProps:n}=e,r=(0,a.A)(e,v);return(0,h.jsx)(p.Button,(0,s.A)((0,s.A)({},r),{},{onClick:()=>{t(n)}}))}return(0,h.jsx)(i.A,(0,s.A)((0,s.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:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.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:()=>l.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>_.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:()=>v,fieldDecorator:()=>r.E,fields:()=>r.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var s=n(64261),a=n(2196),r=n(72297),l=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),p=n(85696),m=n(30891),h=n(45053),g=n(97949),f=n(98434),A={};for(const j in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(j)<0&&(A[j]=()=>f[j]);n.d(t,A);var x=n(83799),_=n(18936);(0,s.A)(),a.A.fields=r.A,a.A.List=l.A,a.A.TableList=o.A,a.A.FormApiButton=i.A,a.A.FormModal=c.Ay,a.A.useFormModal=c.Vl,a.A.FormModalButton=c.W6,a.A.FormStepModal=d.Ay,a.A.useFormStepModal=d.$X,a.A.FormStepModalButton=d.Wp,a.A.FormDrawer=u.Ay,a.A.useFormDrawer=u.Xy,a.A.FormDrawerButton=u.WJ,a.A.Form=p.A,a.A.FormItem=m.A,a.A.ErrorTip=h.A,a.A.SubmitButton=f.SubmitButton,a.A.CancelButton=f.CancelButton,a.A.fieldDecorator=r.E,a.A.MultiField=g.A,a.A.useFormContext=f.useFormContext,a.A.hooks=f.hooks,a.A.widget=f.widget,a.A.utils=f.utils,a.A.formUtils=f.formUtils;const v=a.A},96339:(e,t,n)=>{n.d(t,{A:()=>V});var s=n(53986),a=n(89379),r=n(73884),l=n(17508),o=n(40438),i=n(63743),c=n(3382),d=n(64671),u=n(55199),p=n(53202),m=n.n(p),h=n(33097),g=n.n(h),f=n(83136),A=n.n(f),x=n(51941),_=n(98434),v=n(34677),j=n.n(v);const y="style_upload-btn__-6XtP__kw4DA",w="style_square__UPkfA__kw4DA",b="style_is-loading__wx6Pd__kw4DA",N="style_upload-btn-tips__YtxWz__kw4DA",S="style_drop-tips__N-v59__kw4DA",C="style_preview-area__aV3SN__kw4DA";var k=n(18411),F=n(47458),P=n(55431),D=n(70579);const I=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],M=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:T}=_.hooks,L=o.default.Avatar,O="FormInfo",E=(0,l.Ay)((e=>{let{className:t,icon:n,loading:s,value:r,gender:l,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const x=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(L,(0,a.A)((0,a.A)({},Object.assign({},"function"===typeof h?h(r):{id:g()(r,"id")})),{},{gender:l,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,D.jsx)("div",{className:N,children:n||(0,D.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,D.jsx)("div",{className:A()(t,y,{[b]:s,[w]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:s?(0,D.jsx)(u.Spin,{children:x}):x})})),R=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),s=t[0].match(/:(.*?);/)[1],a=atob(n),r=a.length,l=new Uint8Array(r);for(;r--;)l[r]=a.charCodeAt(r);return new Blob([l],{type:s})},z=(0,r.forwardRef)(((e,t)=>{let{image:n,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:A,shape:_,border:v=1}=e,j=(0,s.A)(e,I);const y=(0,F.useIntl)({moduleName:O}),[w,b]=(0,r.useState)(0),N=(0,r.useRef)(null),[k,P]=(0,r.useState)(n),[M,T]=(0,r.useState)(1),[L,E]=(0,r.useState)(0),[z,B]=(0,r.useState)(""),U=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{b(2*N.current.clientWidth/3)}),[]),A({getImage:()=>{const e=U.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=o,t.height=i,n.drawImage(e,0,0,t.width,t.height),new window.File([R(t.toDataURL())],k.name,{type:k.type})}});const W=()=>{B(U.current.getImage().toDataURL())},V=(0,x.useDebouncedCallback)(W,500);return(0,D.jsx)("div",{ref:N,children:(0,D.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,D.jsx)(u.Col,{span:p?16:24,children:w&&(0,D.jsxs)(u.Space,{direction:"vertical",children:[(0,D.jsx)(m(),(0,a.A)((0,a.A)({},j),{},{ref:U,image:k,scale:M,rotate:L,width:w-2*v,height:i*w/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*w/o,onImageReady:W,onImageChange:V})),(0,D.jsx)("div",{className:S,children:f("".concat(y.formatMessage({id:"PictureFormat"})).concat(g.map((e=>e.replace(/^\./,""))).join(" ")," ").concat(y.formatMessage({id:"ImageSize"})).concat(y.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,D.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,D.jsx)(u.Col,{children:(0,D.jsx)(u.Tooltip,{title:y.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,D.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{E((e=>(e-90)%360))}})})}),(0,D.jsx)(u.Col,{children:(0,D.jsx)(u.Tooltip,{title:y.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,D.jsx)(d.default,{type:"icon-chongman",onClick:()=>{T(1)}})})}),(0,D.jsx)(u.Col,{flex:1,children:(0,D.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>y.formatMessage({id:"Size"})},value:M,step:.05,min:.2,max:3,onChange:T})}),(0,D.jsx)(u.Col,{children:(0,D.jsx)(l.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(y.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(E(0),T(1),P(e[0]))},children:y.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,D.jsx)(u.Col,{span:8,children:(0,D.jsx)("div",{className:C,children:(0,D.jsxs)(u.Space,{direction:"vertical",children:[(0,D.jsx)(u.Avatar,{src:z,shape:_,style:{width:w/2-36,height:(w/2-36)*i/o}}),(0,D.jsx)("div",{style:{textAlign:"center"},children:y.formatMessage({id:"Preview"})})]})})})]})})})),B=()=>{const e=(0,c.useModal)();return t=>{const n=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),{image:r,width:l,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=n,f=(0,s.A)(n,M);return e((0,a.A)((0,a.A)({},f),{},{size:g,children:(0,D.jsx)(z,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:l,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:r,border:h,scale:1,rotate:0})}))}},U=(0,F.createWithIntl)({importMessages:P.A,moduleName:"FormInfo"})((e=>{var t;let{value:n,gender:s,fileSize:a=2,accept:l=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,D.jsx)(F.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,D.jsx)(F.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:A=1,icon:x,dropModalSize:_="small",defaultAvatar:v=k.A,displayAvatar:y}=e;const[w,b]=(0,r.useState)(!1),{apis:N}=(0,i.usePreset)(),S=j()({},N,c),C=S.ossUpload||S.upload||(null===(t=S.file)||void 0===t?void 0:t.upload),I=(0,r.useRef)(null),M=B(),T=(0,F.useIntl)({moduleName:O});return(0,D.jsx)(E,{value:n,gender:s,accept:l,width:h,height:g,shape:m,icon:x,loading:w,defaultAvatar:v,displayAvatar:y,apis:S,onChange:e=>{if(e[0].size>1024*a*1024)return void u.message.error(T.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:a}));const t=e=>(b(!0),C({file:e}).then((e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(T.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{b(!1)})));o?M({image:e[0],width:h,height:g,title:f,shape:m,border:A,dropModalSize:_,getApi:e=>I.current=e,fileSize:a,accept:l,renderTips:d,onConfirm:()=>{t(I.current.getImage())}}):t(e[0])}})})),W=e=>T(e)(U);W.Field=U,W.useDropModal=B;const V=W},97056:(e,t,n)=>{n.d(t,{A:()=>A});var s=n(89379),a=n(53986),r=n(85846),l=n(83560),o=n(55199),i=n(41740),c=n.n(i),d=n(73884),u=n(83136),p=n.n(u),m=n(47094),h=n(70579);const g=["list","className"],f=(0,d.forwardRef)(((e,t)=>{const[n,s]=(0,d.useState)(new Map);return(0,d.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{s((t=>{if(t.has(e.key))return t;const n=c()(t);return n.set(e.key,e.props),n}))}))}),[]),(0,h.jsxs)(o.Row,{wrap:!1,className:m.A["table-list-header"],style:{"--col-width":"".concat(100/n.size,"%")},children:[Array.from(n).map((e=>{let[t,{label:n,rule:s}]=e;return(0,h.jsx)(o.Col,{className:p()({[m.A["is-req"]]:0===(s||"").split(" ").indexOf("REQ")}),children:n},t)})),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"]})]})})),A=e=>{let{list:t,className:n}=e,i=(0,a.A)(e,g);const c=(0,d.useRef)(null);return(0,h.jsx)(r.A,(0,s.A)((0,s.A)({},i),{},{className:p()(n,m.A["table-list"]),list:t,renderChildren:e=>(0,h.jsxs)("div",{className:m.A["table-list-inner"],children:[(0,h.jsx)(f,{ref:c}),e]}),listRender:e=>{let{list:t,groupArgs:n,extra:s,key:a}=e;return(0,h.jsxs)(o.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,h.jsx)(l.A,{list:t,groupArgs:n,itemRender:(e,t)=>(c.current(t),(0,h.jsx)(o.Col,{className:m.A["table-list-field"],flex:1,children:e}))}),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"],children:s})]},a)}}))}},97949:(e,t,n)=>{n.d(t,{A:()=>x});var s=n(89379),a=n(53986),r=n(73884),l=n(55199),o=n(98434),i=n(47458),c=n(64671),d=n(33097),u=n.n(d),p=n(47094),m=n(83136),h=n.n(m),g=n(55431),f=n(70579);const A=["name","label","rule","field","defaultLength","minLength","maxLength"],x=(0,i.createWithIntl)({moduleName:"FormInfo",importMessages:g.A})((e=>{let{name:t,label:n,rule:d,field:m,defaultLength:g=1,minLength:x=1,maxLength:_}=e,v=(0,a.A)(e,A);const j=(0,r.useRef)(null),y=m,w=(0,o.useFormContext)(),{formData:b}=w,N=!(_&&_<=u()(b,"".concat(t,".length"),0)),{formatMessage:S}=(0,i.useIntl)({moduleName:"FormInfo"});return(0,f.jsxs)("div",{className:h()(p.A["mult-field"],"mult-field"),children:[(0,f.jsx)(o.GroupList,{ref:j,name:t,defaultLength:Math.max(g,x,1),children:function(){for(var e=arguments.length,a=new Array(e),r=0;r<e;r++)a[r]=arguments[r];const{id:o,index:i,onRemove:u,length:m}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:n,onRemove:s,length:a}]=e;return{id:t,index:n,onRemove:s,length:a}})(a);return(0,f.jsxs)("div",{className:h()(p.A["mult-field-item"],"mult-field-item",{[p.A["first-item"]]:0===i}),children:[(0,f.jsx)(y,(0,s.A)((0,s.A)({},v),{},{name:t,label:n,rule:d})),(0,f.jsxs)("div",{className:h()("form-info-mult-option"),children:[(0,f.jsx)("div",{className:h()(p.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,f.jsx)(l.Button,{icon:(0,f.jsx)(c.default,{type:"shanchu"}),onClick:u,disabled:m<=Math.max(x,1)})]})]},o)}}),N&&(0,f.jsx)("div",{className:h()("form-info-mult-add-btn"),children:(0,f.jsxs)(l.Button,{className:p.A["mult-field-add-btn"],type:"dashed",onClick:()=>j.current.onAdd(),children:[(0,f.jsx)(c.default,{type:"tianjia"}),S({id:"addSomeThing"},{label:n})]})})]})}))}}]);
|
|
2
|
+
//# sourceMappingURL=4474.0bf10705.chunk.js.map
|