@kne-components/components-core 0.4.10 → 0.4.12
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 +108 -108
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/196.5f0ce7a6.chunk.css +2 -0
- package/build/static/css/196.5f0ce7a6.chunk.css.map +1 -0
- package/build/static/css/{1996.aa6f5d0d.chunk.css → 1996.b1436cc8.chunk.css} +2 -2
- package/build/static/css/{1996.aa6f5d0d.chunk.css.map → 1996.b1436cc8.chunk.css.map} +1 -1
- package/build/static/css/2004.c035d26e.chunk.css +2 -0
- package/build/static/css/{2004.4a5cbde6.chunk.css.map → 2004.c035d26e.chunk.css.map} +1 -1
- package/build/static/css/206.c2648b4c.chunk.css +2 -0
- package/build/static/css/{206.dd5f61e8.chunk.css.map → 206.c2648b4c.chunk.css.map} +1 -1
- package/build/static/css/254.a12729ab.chunk.css +2 -0
- package/build/static/css/{254.3dbd0c4a.chunk.css.map → 254.a12729ab.chunk.css.map} +1 -1
- package/build/static/css/2628.3188c686.chunk.css +2 -0
- package/build/static/css/{2628.1116e838.chunk.css.map → 2628.3188c686.chunk.css.map} +1 -1
- package/build/static/css/3404.b9717d24.chunk.css +2 -0
- package/build/static/css/{3404.4d8903c0.chunk.css.map → 3404.b9717d24.chunk.css.map} +1 -1
- package/build/static/css/3652.86f3b6bb.chunk.css +2 -0
- package/build/static/css/3652.86f3b6bb.chunk.css.map +1 -0
- package/build/static/css/3771.446d3735.chunk.css +2 -0
- package/build/static/css/3771.446d3735.chunk.css.map +1 -0
- package/build/static/css/{3790.7a8f4cd7.chunk.css → 3790.d1b530a4.chunk.css} +2 -2
- package/build/static/css/{3790.7a8f4cd7.chunk.css.map → 3790.d1b530a4.chunk.css.map} +1 -1
- package/build/static/css/{4277.7a464159.chunk.css → 4277.3194c080.chunk.css} +2 -2
- package/build/static/css/{4277.7a464159.chunk.css.map → 4277.3194c080.chunk.css.map} +1 -1
- package/build/static/css/4741.5a84abe3.chunk.css +2 -0
- package/build/static/css/4741.5a84abe3.chunk.css.map +1 -0
- package/build/static/css/4832.ee29b4d5.chunk.css +2 -0
- package/build/static/css/{4832.974e8486.chunk.css.map → 4832.ee29b4d5.chunk.css.map} +1 -1
- package/build/static/css/5195.9d6bb120.chunk.css +2 -0
- package/build/static/css/5195.9d6bb120.chunk.css.map +1 -0
- package/build/static/css/{6178.c5793d83.chunk.css → 6178.a2a6d255.chunk.css} +2 -2
- package/build/static/css/6178.a2a6d255.chunk.css.map +1 -0
- package/build/static/css/{6763.55fbdd0e.chunk.css → 6763.42d76eb7.chunk.css} +2 -2
- package/build/static/css/{6763.55fbdd0e.chunk.css.map → 6763.42d76eb7.chunk.css.map} +1 -1
- package/build/static/css/6980.f5424a2c.chunk.css +12 -0
- package/build/static/css/{6980.eb55fb81.chunk.css.map → 6980.f5424a2c.chunk.css.map} +1 -1
- package/build/static/css/7227.e83fd744.chunk.css +2 -0
- package/build/static/css/{7227.cf7ece1c.chunk.css.map → 7227.e83fd744.chunk.css.map} +1 -1
- package/build/static/css/{760.94252ab2.chunk.css → 760.7efd69c3.chunk.css} +2 -2
- package/build/static/css/{760.94252ab2.chunk.css.map → 760.7efd69c3.chunk.css.map} +1 -1
- package/build/static/css/{8593.567480a8.chunk.css → 8593.df922b83.chunk.css} +2 -2
- package/build/static/css/{8593.567480a8.chunk.css.map → 8593.df922b83.chunk.css.map} +1 -1
- package/build/static/css/9556.3024763d.chunk.css +2 -0
- package/build/static/css/{9556.440a6f96.chunk.css.map → 9556.3024763d.chunk.css.map} +1 -1
- package/build/static/css/9772.e21859cf.chunk.css +2 -0
- package/build/static/css/{9772.345329b3.chunk.css.map → 9772.e21859cf.chunk.css.map} +1 -1
- package/build/static/js/{1014.6694d625.chunk.js → 1014.ac7e07be.chunk.js} +1 -1
- package/build/static/js/{1064.790d5547.chunk.js → 1064.7507f2b7.chunk.js} +2 -2
- package/build/static/js/1064.7507f2b7.chunk.js.map +1 -0
- package/build/static/js/{196.35f273fd.chunk.js → 196.56c2cd89.chunk.js} +1 -1
- package/build/static/js/{1996.56a71628.chunk.js → 1996.1779e813.chunk.js} +2 -2
- package/build/static/js/{1996.56a71628.chunk.js.map → 1996.1779e813.chunk.js.map} +1 -1
- package/build/static/js/{2004.3cd5c9c5.chunk.js → 2004.182c7c0f.chunk.js} +3 -3
- package/build/static/js/{2004.3cd5c9c5.chunk.js.map → 2004.182c7c0f.chunk.js.map} +1 -1
- package/build/static/js/206.870edee0.chunk.js +2 -0
- package/build/static/js/{206.fdafdeaa.chunk.js.map → 206.870edee0.chunk.js.map} +1 -1
- package/build/static/js/{2097.17021c85.chunk.js → 2097.0567ed2b.chunk.js} +2 -2
- package/build/static/js/2097.0567ed2b.chunk.js.map +1 -0
- package/build/static/js/254.238ab8af.chunk.js +2 -0
- package/build/static/js/254.238ab8af.chunk.js.map +1 -0
- package/build/static/js/{2628.5fab54cd.chunk.js → 2628.13f2cd3d.chunk.js} +2 -2
- package/build/static/js/{2628.5fab54cd.chunk.js.map → 2628.13f2cd3d.chunk.js.map} +1 -1
- package/build/static/js/{3404.1217b7c4.chunk.js → 3404.1b947536.chunk.js} +3 -3
- package/build/static/js/{3404.1217b7c4.chunk.js.map → 3404.1b947536.chunk.js.map} +1 -1
- package/build/static/js/{3652.707426a5.chunk.js → 3652.5d13bc4c.chunk.js} +2 -2
- package/build/static/js/{3652.707426a5.chunk.js.map → 3652.5d13bc4c.chunk.js.map} +1 -1
- package/build/static/js/3771.60b0504e.chunk.js +2 -0
- package/build/static/js/{3771.10914c71.chunk.js.map → 3771.60b0504e.chunk.js.map} +1 -1
- package/build/static/js/{3790.b9b0756b.chunk.js → 3790.72c7a465.chunk.js} +2 -2
- package/build/static/js/{3790.b9b0756b.chunk.js.map → 3790.72c7a465.chunk.js.map} +1 -1
- package/build/static/js/3856.29d5e528.chunk.js +2 -0
- package/build/static/js/3856.29d5e528.chunk.js.map +1 -0
- package/build/static/js/4277.de810104.chunk.js +2 -0
- package/build/static/js/{4277.7406d163.chunk.js.map → 4277.de810104.chunk.js.map} +1 -1
- package/build/static/js/4474.dfb83cf2.chunk.js +2 -0
- package/build/static/js/4474.dfb83cf2.chunk.js.map +1 -0
- package/build/static/js/{4832.1d4b6d35.chunk.js → 4832.cf55c52c.chunk.js} +2 -2
- package/build/static/js/{4832.1d4b6d35.chunk.js.map → 4832.cf55c52c.chunk.js.map} +1 -1
- package/build/static/js/5195.9ac8caa0.chunk.js +2 -0
- package/build/static/js/5195.9ac8caa0.chunk.js.map +1 -0
- package/build/static/js/{6183.b7c1076d.chunk.js → 6183.23d57d24.chunk.js} +2 -2
- package/build/static/js/6183.23d57d24.chunk.js.map +1 -0
- package/build/static/js/{6454.2d3bc0d5.chunk.js → 6454.d8a2bc1e.chunk.js} +1 -1
- package/build/static/js/{6617.5ff2d3a7.chunk.js → 6617.94f51cff.chunk.js} +1 -1
- package/build/static/js/{6629.f017e421.chunk.js → 6629.42f5a044.chunk.js} +2 -2
- package/build/static/js/6629.42f5a044.chunk.js.map +1 -0
- package/build/static/js/{6763.a4f7fc9c.chunk.js → 6763.97f4747b.chunk.js} +2 -2
- package/build/static/js/{6763.a4f7fc9c.chunk.js.map → 6763.97f4747b.chunk.js.map} +1 -1
- package/build/static/js/6980.5b98fb8f.chunk.js +2 -0
- package/build/static/js/6980.5b98fb8f.chunk.js.map +1 -0
- package/build/static/js/{7227.6bc944fe.chunk.js → 7227.65b21900.chunk.js} +3 -3
- package/build/static/js/{7227.6bc944fe.chunk.js.map → 7227.65b21900.chunk.js.map} +1 -1
- package/build/static/js/{7338.696be797.chunk.js → 7338.0c458623.chunk.js} +2 -2
- package/build/static/js/{7338.696be797.chunk.js.map → 7338.0c458623.chunk.js.map} +1 -1
- package/build/static/js/{760.2fe65d3d.chunk.js → 760.bc8726da.chunk.js} +2 -2
- package/build/static/js/{760.2fe65d3d.chunk.js.map → 760.bc8726da.chunk.js.map} +1 -1
- package/build/static/js/{8593.35a15f30.chunk.js → 8593.a7cfca38.chunk.js} +2 -2
- package/build/static/js/{8593.35a15f30.chunk.js.map → 8593.a7cfca38.chunk.js.map} +1 -1
- package/build/static/js/{8601.414f9621.chunk.js → 8601.05ca91fd.chunk.js} +2 -2
- package/build/static/js/8601.05ca91fd.chunk.js.map +1 -0
- package/build/static/js/8683.b6590c10.chunk.js +2 -0
- package/build/static/js/8683.b6590c10.chunk.js.map +1 -0
- package/build/static/js/9556.bd02b06f.chunk.js +3 -0
- package/build/static/js/{9556.770616c3.chunk.js.map → 9556.bd02b06f.chunk.js.map} +1 -1
- package/build/static/js/9772.8953d82a.chunk.js +2 -0
- package/build/static/js/9772.8953d82a.chunk.js.map +1 -0
- package/build/static/js/{main.ecea222c.js → main.83f21429.js} +2 -2
- package/build/static/js/{main.ecea222c.js.map → main.83f21429.js.map} +1 -1
- package/package.json +4 -4
- package/build/static/css/196.8c09be8b.chunk.css +0 -2
- package/build/static/css/196.8c09be8b.chunk.css.map +0 -1
- package/build/static/css/2004.4a5cbde6.chunk.css +0 -2
- package/build/static/css/206.dd5f61e8.chunk.css +0 -2
- package/build/static/css/254.3dbd0c4a.chunk.css +0 -2
- package/build/static/css/2628.1116e838.chunk.css +0 -2
- package/build/static/css/3404.4d8903c0.chunk.css +0 -2
- package/build/static/css/3652.4142dbe0.chunk.css +0 -2
- package/build/static/css/3652.4142dbe0.chunk.css.map +0 -1
- package/build/static/css/3771.61d6e394.chunk.css +0 -2
- package/build/static/css/3771.61d6e394.chunk.css.map +0 -1
- package/build/static/css/4741.ff9e2120.chunk.css +0 -2
- package/build/static/css/4741.ff9e2120.chunk.css.map +0 -1
- package/build/static/css/4832.974e8486.chunk.css +0 -2
- package/build/static/css/5195.371f4543.chunk.css +0 -2
- package/build/static/css/5195.371f4543.chunk.css.map +0 -1
- package/build/static/css/6178.c5793d83.chunk.css.map +0 -1
- package/build/static/css/6980.eb55fb81.chunk.css +0 -12
- package/build/static/css/7227.cf7ece1c.chunk.css +0 -2
- package/build/static/css/9556.440a6f96.chunk.css +0 -2
- package/build/static/css/9772.345329b3.chunk.css +0 -2
- package/build/static/js/1064.790d5547.chunk.js.map +0 -1
- package/build/static/js/206.fdafdeaa.chunk.js +0 -2
- package/build/static/js/2097.17021c85.chunk.js.map +0 -1
- package/build/static/js/254.b819cc37.chunk.js +0 -2
- package/build/static/js/254.b819cc37.chunk.js.map +0 -1
- package/build/static/js/3771.10914c71.chunk.js +0 -2
- package/build/static/js/3856.499ef4d7.chunk.js +0 -2
- package/build/static/js/3856.499ef4d7.chunk.js.map +0 -1
- package/build/static/js/4277.7406d163.chunk.js +0 -2
- package/build/static/js/4474.a6f64125.chunk.js +0 -2
- package/build/static/js/4474.a6f64125.chunk.js.map +0 -1
- package/build/static/js/5195.4063c73c.chunk.js +0 -2
- package/build/static/js/5195.4063c73c.chunk.js.map +0 -1
- package/build/static/js/6183.b7c1076d.chunk.js.map +0 -1
- package/build/static/js/6629.f017e421.chunk.js.map +0 -1
- package/build/static/js/6980.b8e66dd1.chunk.js +0 -2
- package/build/static/js/6980.b8e66dd1.chunk.js.map +0 -1
- package/build/static/js/8601.414f9621.chunk.js.map +0 -1
- package/build/static/js/8683.de4b667d.chunk.js +0 -2
- package/build/static/js/8683.de4b667d.chunk.js.map +0 -1
- package/build/static/js/9556.770616c3.chunk.js +0 -3
- package/build/static/js/9772.973df1f5.chunk.js +0 -2
- package/build/static/js/9772.973df1f5.chunk.js.map +0 -1
- /package/build/static/js/{2004.3cd5c9c5.chunk.js.LICENSE.txt → 2004.182c7c0f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.1217b7c4.chunk.js.LICENSE.txt → 3404.1b947536.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.6bc944fe.chunk.js.LICENSE.txt → 7227.65b21900.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.770616c3.chunk.js.LICENSE.txt → 9556.bd02b06f.ch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AAAA,EAAAA,KAAC1C,EAAgB,IACTb,OAAOsC,OAAO,CAAC,EAAGkE,GACtBvF,YAAa4B,EAAKrD,OAClB+B,UAAWyB,IAAW,CAClB,CAACC,EAAM,kBAA2B,OAATkC,QAAS,IAATA,OAAS,EAATA,EAAW3F,UAAW6G,EAAW,IAAMlH,KAAK+D,IAAmD,QAAhDoD,EAACnB,EAAUa,OAAQnD,GAASA,GAAQA,EAAKrD,eAAO,IAAA8G,OAAA,EAA/CA,EAAiD9G,OAAQ,IACnI+E,MANO,SAAS8B,gB,YC9JnD7H,EAAOC,QAXP,SAAyBY,EAAOX,EAAQG,EAAUE,GAIhD,IAHA,IAAIU,GAAS,EACTD,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,SAE9BC,EAAQD,GAAQ,CACvB,IAAIG,EAAQN,EAAMI,GAClBf,EAAOK,EAAaY,EAAOd,EAASc,GAAQN,EAC9C,CACA,OAAON,CACT,C,YCGAP,EAAOC,QAJP,SAAcY,GACZ,OAAQA,GAASA,EAAMG,OAAUH,EAAM,QAAKqH,CAC9C,C,kBCpBA,IAAIC,EAAWvI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAASwG,EAAShH,GAClBiH,EAAYzG,EAAS,EAEzB,OAAOA,IAAWA,EAAUyG,EAAYzG,EAASyG,EAAYzG,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/first.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/head.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","module.exports = require('./head');\n","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__FdtSJ\",\"list\":\"style_list__l8KOo__FdtSJ\",\"header\":\"style_header__3dcv8__FdtSJ\",\"item\":\"style_item__d92RS__FdtSJ\",\"item-box\":\"style_item-box__dd-Lk__FdtSJ\",\"index-1\":\"style_index-1__f97L0__FdtSJ\",\"index-2\":\"style_index-2__04vAw__FdtSJ\",\"item-box-main\":\"style_item-box-main__lnSak__FdtSJ\",\"item-title\":\"style_item-title__mArMd__FdtSJ\",\"level-high\":\"style_level-high__Uys7Y__FdtSJ\",\"level-middle\":\"style_level-middle__EewyC__FdtSJ\",\"level-low\":\"style_level-low__8kVyL__FdtSJ\",\"title-icon\":\"style_title-icon__1EoAG__FdtSJ\",\"item-subtitle\":\"style_item-subtitle__xeFJs__FdtSJ\",\"close-btn\":\"style_close-btn__7qpG3__FdtSJ\",\"is-loading\":\"style_is-loading__upVL+__FdtSJ\",\"item-content\":\"style_item-content__8MlsG__FdtSJ\",\"link-outer\":\"style_link-outer__kegyZ__FdtSJ\",\"link\":\"style_link__F2CO-__FdtSJ\",\"is-last-item\":\"style_is-last-item__MytRl__FdtSJ\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/4277.de810104.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,E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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__RltKb\",\"list\":\"style_list__l8KOo__RltKb\",\"header\":\"style_header__3dcv8__RltKb\",\"item\":\"style_item__d92RS__RltKb\",\"item-box\":\"style_item-box__dd-Lk__RltKb\",\"index-1\":\"style_index-1__f97L0__RltKb\",\"index-2\":\"style_index-2__04vAw__RltKb\",\"item-box-main\":\"style_item-box-main__lnSak__RltKb\",\"item-title\":\"style_item-title__mArMd__RltKb\",\"level-high\":\"style_level-high__Uys7Y__RltKb\",\"level-middle\":\"style_level-middle__EewyC__RltKb\",\"level-low\":\"style_level-low__8kVyL__RltKb\",\"title-icon\":\"style_title-icon__1EoAG__RltKb\",\"item-subtitle\":\"style_item-subtitle__xeFJs__RltKb\",\"close-btn\":\"style_close-btn__7qpG3__RltKb\",\"is-loading\":\"style_is-loading__upVL+__RltKb\",\"item-content\":\"style_item-content__8MlsG__RltKb\",\"link-outer\":\"style_link-outer__kegyZ__RltKb\",\"link\":\"style_link__F2CO-__RltKb\",\"is-last-item\":\"style_is-last-item__MytRl__RltKb\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[330,4474],{330:(e,t,l)=>{l.r(t),l.d(t,{default:()=>a});var n=l(29871),s=l.n(n),r={};for(const o in n)"default"!==o&&(r[o]=()=>n[o]);l.d(t,r),s().Fetch=n.FlexBoxFetch;const a=s()},1904:(e,t,l)=>{l.d(t,{A:()=>i,N:()=>d});var n=l(98434),s=l(43856);const{useOnChange:r,useDecorator:a}=n.hooks,o=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);o.Field=s.AddressSelectField,o.AddressEnum=s.AddressSelectField.AddressEnum,o.createAddressApi=s.AddressSelectField.createAddressApi,o.withAddressApi=s.AddressSelectField.withAddressApi;const i=o,d=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);d.Field=s.AddressInputField},2196:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),s=l(73884),r=l(41381),a=l(330),o=l(68532),i=l(47094),d=l(83136),c=l.n(d),u=l(70579);const m=e=>{let{list:t=[],groupArgs:l,itemRender:d,column:m=2,gap:p,className:h,outer:g=(0,u.jsx)(r.default.Part,{}),children:f,..._}=e;const x=!(Number.isInteger(m)&&m>0),{ref:v,column:b}=(0,a.useFlexBox)(x?m:{}),j=(e,s)=>(0,u.jsx)(o.FormInfo,{list:t,column:e,groupArgs:l,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,u.jsx)(n.Col,{span:t.span,children:e}),children:(e,t)=>(0,u.jsx)(n.Row,{gutter:[p||24,0],className:c()({[i.A["column-not-layout"]]:s}),children:"function"===typeof f?f(e,t):e})});return(0,s.cloneElement)(g,Object.assign({},_,{className:c()(h,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:v}),x?b?j(b.col):j(2,!0):j(m)]}))}},2842:(e,t,l)=>{l.d(t,{default:()=>s.a});l(2885);var n=l(22986),s=l.n(n);l.o(n,"PHONE_NUMBER_INPUT")&&l.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995:(e,t,l)=>{l.d(t,{Ay:()=>d,Vl:()=>c,W6:()=>u});var n=l(3382),s=l(73025),r=l(55199),a=l(76995),o=l(47094),i=l(70579);const d=e=>(0,i.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...l}=e;const n=c();if(!l.api){const{modalProps:e,...t}=l;return(0,i.jsx)(r.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(s.A,{...l,modalFunc:n})}},15209:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(55199),s=l(10986),r=l.n(s),a=l(13050),o=l(70579);const i=e=>{let{...t}=e;const[l,s]=r()(t);return(0,o.jsx)(n.Input,{...t,value:l,onChange:e=>{s(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},d=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...l}=e;const[n]=t,{hooks:s}=n,{useDecorator:r}=s;return r(Object.assign({placeholder:`\u8bf7\u8f93\u5165${l.label||""}`},l))(i)});d.field=i;const c=d},15445:(e,t,l)=>{l.d(t,{A:()=>Y,E:()=>J});var n=l(98434),s=l(30096),r=l(34643),a=l(1904),o=l(83230),i=l(55199),d=l(70579);const{useOnChange:c}=n.hooks,u=e=>(0,d.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),m=e=>c(Object.assign({},e))(u);m.Field=m;const p=m;var h=l(81026),g=l(78756),f=l(92328),_=l(2842);const{useOnChange:x,useCheckedToValue:v}=n.hooks,{withChecked:b}=n.hoc,j=b(e=>{let{checked:t,children:l=null,...n}=e;return(0,d.jsxs)(i.Space,{children:[(0,d.jsx)(i.Switch,{checked:t,...n}),"function"===typeof l?l({checked:t}):l]})}),y=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=v(e);return x(t)(j)};y.Field=i.Switch;const A=y;var N=l(89099),S=l(96339),w=l(36972),C=l(15209),F=l(74529),R=l.n(F),P=l(73884),I=l(47458),M=l(33097),T=l.n(M),k=l(21079),O=l(46237),L=l(56259),E=l(29556),D=l(64671),K=l(83136),z=l.n(K),U=l(47094);const B=e=>t=>{const l=R()(...e)(e=>{let{forwardedRef:l,label:n,placeholder:s,...r}=e;return(0,d.jsx)(t,{...r,label:n,placeholder:s,labelRender:()=>r.tips?(0,d.jsxs)(i.Space,{children:[n,(0,d.jsx)(E.default,{content:r.tips,children:(0,d.jsx)("span",{className:z()(U.A["field-tips"],{[U.A["label-hidden"]]:r.labelHidden}),children:(0,d.jsx)(D.default,{type:"icon-xinxi-miaobian"})})})]}):n,ref:l})}),n=(0,P.forwardRef)((e,t)=>(0,d.jsx)(l,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},$=e=>t=>{let{placeholder:l,label:n,...s}=t;return(0,d.jsx)(I.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...s,label:n,placeholder:l||t})})},W=e=>t=>{let{placeholder:l,label:n,...s}=t;return(0,d.jsx)(I.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...s,label:n,placeholder:l||t})})},V=e=>t=>{const l=(0,n.useGroup)(),s=T()(l,"name"),r=(0,k.get)(l,"index"),a=(0,O.oc)();return a&&Array.isArray(a)&&a.length>0?a.map(l=>{if("string"===typeof l)return(0,P.createElement)(e,{...t,key:l});const{name:n,label:a,options:o}=l,i=T()(o,"ignore",[]),d=T()(o,"disabled",[]),c=T()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let m=Object.assign({},t,{name:T()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:T()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,a)});return d.length>0&&d.find(u)&&(m.disabled=!0,m.rule=""),(0,P.createElement)(e,{...m,key:n})}):(0,d.jsx)(e,{...t})},H=B([V,$])(n.Input),q=B([V,$])(n.InputNumber);H.Password=B([V,$])(n.Input.Password);const G=B([V,W])(n.DatePicker);G.MonthPicker=B([V,W])(n.DatePicker.MonthPicker),G.RangePicker=B([V,W])(n.DatePicker.RangePicker),G.WeekPicker=B([V,W])(n.DatePicker.WeekPicker);const Q=B([V,W])(n.TimePicker);Q.RangePicker=B([V,W])(n.TimePicker.RangePicker);const X=B([V])(e=>{let{placeholder:t,label:l,soFarText:s,...r}=e;const{formatMessage:a}=(0,I.useIntl)({moduleName:"FormInfo"});return(0,d.jsx)(n.DatePickerToday,{...r,label:l,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:s||a({id:"soFarText"})})}),Y={Input:H,Checkbox:n.Checkbox,Password:H.Password,InputNumber:q,DatePicker:G,MonthPicker:G.MonthPicker,WeekPicker:G.WeekPicker,DateRangePicker:G.RangePicker,TimeRangePicker:Q.RangePicker,TimePicker:Q,DatePickerToday:X,RadioGroup:B([V])(n.RadioGroup),CheckboxGroup:B([V])(n.CheckboxGroup),Rate:B([V])(n.Rate),Switch:B([V])(A),Slider:B([V])(n.Slider),SalaryInput:B([V,$])(w.A),TypeDateRangePicker:B([V])(L.A),MoneyInput:B([V,$])(f.A),PhoneNumber:B([V,$])(_.default),Upload:B([V])(N.A),Avatar:B([V])(S.A),FunctionSelect:B([V,W])(h.A),IndustrySelect:B([V,W])(g.A),Cascader:B([V,W])(o.A),ColorPicker:B([V,W])(p),AddressSelect:B([V,W])(a.A),AddressInput:B([V,W])(a.N),TreeSelect:B([V,W])(n.TreeSelect),ReactInputNumber:B([V,$])(n.InputNumber),InputUpperCase:B([V,$])(C.A),Select:B([V,W])(n.Select),TextArea:B([V,$])(n.TextArea),AdvancedSelect:B([V,W])(s.Ay),SuperSelect:B([V,W])(r.Ay),SuperSelectTableList:B([V,W])(r.eM),SuperSelectUser:B([V,W])(r.Pg)},J={createWithFieldDecorator:B,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:W,withLang:V}},18936:(e,t,l)=>{l.d(t,{A:()=>k});const n={"ant-tag":"style_ant-tag__7ct2q__RltKb",overlay:"style_overlay__CXfU5__RltKb",input:"style_input__+OpvV__RltKb","is-disabled":"style_is-disabled__uX4qq__RltKb","input-icon":"style_input-icon__E3NjK__RltKb",large:"style_large__vMozz__RltKb",small:"style_small__ubqQ+__RltKb","input-inner":"style_input-inner__sY-6k__RltKb","input-custom":"style_input-custom__Kxq3n__RltKb","display-content":"style_display-content__qA1jn__RltKb","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RltKb","selected-tag":"style_selected-tag__BZsMM__RltKb","selected-tag-list":"style_selected-tag-list__As0ho__RltKb","selected-tag-inner":"style_selected-tag-inner__2NH59__RltKb","text-inner":"style_text-inner__Bq2Ji__RltKb",placeholder:"style_placeholder__odotY__RltKb","is-modal":"style_is-modal__4cj8L__RltKb","overlay-content":"style_overlay-content__kpGRn__RltKb"};var s=l(74981);const{context:r,useContext:a,Provider:o,Consumer:i}=(0,s.A)();var d=l(73884),c=l(10986),u=l.n(c),m=l(87558),p=l(33097),h=l.n(p),g=l(55199),f=l(83136),_=l.n(f),x=l(3382),v=l(64671),b=l(79686),j=l.n(b),y=l(41740),A=l.n(y),N=l(74065),S=l.n(N),w=l(17342),C=l(70579);const F=e=>{let{maxLength:t,single:l,setValue:n,value:s,message:r}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(r(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),s):e)},R=e=>{let{single:t,value:l,mapping:s,onClose:r}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,C.jsx)("span",{className:n["text-inner"],children:h()(s.get(l[0]),"label")||l[0]}):l.map(e=>{const t=s.get(e);return(0,C.jsx)(g.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),r(e,t)},children:(0,C.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},P=(0,d.forwardRef)((e,t)=>{let{value:l,onChange:s,extra:r,showSelectedTag:a,renderSelectedContent:o,children:i,...c}=e;const[u,m]=(0,d.useState)(l),p=(0,d.useRef)(l);p.current=l;const[h,f]=(0,d.useState)(!1),{message:_}=g.App.useApp(),v=F({maxLength:c.maxLength,single:c.single,setValue:m,value:u,message:_.error});return(0,d.useEffect)(()=>{h&&m(p.current)},[h]),(0,d.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,C.jsx)(x.default,{...c,open:h,onConfirm:()=>{s(u)},onClose:()=>{f(!1)},footer:(a||r)&&(0,C.jsxs)(g.Space,{direction:"vertical",className:n["overlay-footer"],children:[r&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:r}),a&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})}),I=(0,d.forwardRef)((e,t)=>{let{value:l,setValue:s,children:r,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:m,overlayWidth:p,wrapClassName:h,...f}=e;const[_,x]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,C.jsx)(g.Popover,{...f,open:_,onOpenChange:x,overlayClassName:n.overlay,arrow:!1,content:(0,C.jsxs)("div",{style:p?{"--overlay-width":p}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,C.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof r?r({value:l,setValue:e=>{(!u||l[0]!==e[0])&&s(e),u&&x(!1)}}):r}),(o||m)&&(0,C.jsxs)("div",{className:n["overlay-footer"],children:[m&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:m}),o&&a({value:l,setValue:s})]})]}),trigger:"click",placement:i,children:(0,C.jsx)("div",{className:n["input-inner"],children:c})})}),M=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,...s}=e;const[r,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=a(),{valueState:m,mapping:p,props:h}=u,[f,x]=m,{single:b,placement:j,getPopupContainer:y,placeholder:A,isPopup:N,disabled:S,showSelectedTag:F,extra:M,inputContent:T}=h,k=(0,d.useRef)(s);k.current=s,(0,d.useEffect)(()=>{t(Object.assign({},k.current,{data:s.data,isComplete:s.isComplete}))},[s.data,t,s.isComplete]);const O=R({single:b,value:f,mapping:p,onClose:e=>{x(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),L=e=>{let{value:t,setValue:l}=e;return(0,C.jsxs)(g.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,C.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,C.jsx)(w.A,{className:n["selected-tag-list"],children:(0,C.jsx)("div",{className:n["selected-tag-inner"],children:R({value:t,mapping:p,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},E=T?T(u):(0,C.jsxs)(g.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,C.jsx)("div",{children:O||(0,C.jsx)("span",{className:n.placeholder,children:A})}),r&&f&&f.length>0&&!S?(0,C.jsx)(v.default,{className:_()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,C.jsx)(v.default,{className:_()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,C.jsx)(I,{ref:c,overlayWidth:h.overlayWidth,value:f,setValue:x,single:b,inputContent:E,extra:"function"===typeof M?M({close:()=>c.current.close(),context:u}):M,renderSelectedContent:L,showSelectedTag:F,trigger:"click",placement:j,getPopupContainer:y,children:h.children}):(0,C.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,C.jsx)(P,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(n.overlay,n["is-modal"],l),title:h.placeholder,value:f,onChange:x,extra:"function"===typeof M?M({close:()=>i.current.close(),context:u}):M,showSelectedTag:F,renderSelectedContent:L,children:h.children}),E]})}),T=e=>{let{api:t,className:l,displayItems:s,wrapClassName:r,...a}=e;const[i,c]=(0,d.useState)(""),[m,p]=(0,d.useState)(new Map(s.map(e=>[e.value,e]))),[f,x]=(0,d.useState)({}),{message:v}=g.App.useApp(),b=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&p(e=>{const l=A()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},y=e=>((e,t,l)=>"all"!==l?e:(t(e),e.map(e=>e.value)))(a.single?j()(e)?[]:[e]:e||[],b,a.valueType),[N,w]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)))(e,m,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:y(a.value)}:{defaultValue:y(a.defaultValue)})),R=F({maxLength:a.maxLength,single:a.single,setValue:w,value:N,message:v.error});return(0,C.jsx)(o,{value:{mapping:m,searchText:i,setSearchText:c,appendMapping:b,setItems:e=>{f.setData(e),b(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,R],props:a},children:(0,C.jsx)("div",{className:_()(n["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],l),children:(0,C.jsx)(M,{...t,wrapClassName:r,loading:null,setFetchApi:x,onRequestSuccess:e=>{b(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};T.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},T.useContext=a;const k=T},19343:(e,t,l)=>{l.r(t),l.d(t,{Download:()=>u,FileButton:()=>b,FileLink:()=>j,List:()=>v,OptionButtons:()=>x,PrintButton:()=>r.PrintButton,default:()=>a(),download:()=>r.download,downloadBlobFile:()=>r.downloadBlobFile,useDownload:()=>r.useDownload,useFileModal:()=>y});l(64674);var n=l(96418),s=l.n(n),r=l(68827),a=l.n(r),o=l(3382),i=l(83136),d=l.n(i),c=l(70579);r.Download.useDownload=r.useDownload,r.Download.downloadBlobFile=r.downloadBlobFile;const u=r.Download;var m=l(26304),p=l.n(m),h=l(74065),g=l.n(h),f=l(96252);const _=e=>{let{apis:t}=e;const l=(0,f.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=l({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:p()(e.filename.split(".")).join(".")},onSubmit:async l=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},l,{name:`${l.name}.${g()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,c.jsx)(f.default,{column:1,list:[(0,c.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const l=_({apis:e.apis});return(0,c.jsx)(r.FileListOptionButtons,{...e,onEdit:t=>l(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,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},v=e=>{let{apis:t,...l}=e;const n=_({apis:t});return(0,c.jsx)(r.FileList,{...l,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof l.renderModal?l.renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},b=e=>(0,c.jsx)(r.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}}})}),j=e=>{const{className:t,...l}=Object.assign({},e);return(0,c.jsx)(b,{...l,className:d()(t,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName})},y=e=>{const{title:t,children:l,footer:n}=(0,r.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return s()(()=>a({title:t,children:l,footer:n}))}},24474:(e,t,l)=>{l.r(t),l.d(t,{DragArea:()=>X,DragAreaOuter:()=>G,DragButton:()=>H,FileUpload:()=>ne,Title:()=>E,UploadButton:()=>q,UploadTips:()=>Q,default:()=>ee});var n=l(73884),s=l(33097),r=l.n(s),a=l(55199);const o="style_file-list-outer__wPhbb__RltKb",i="style_file-list-title__zXM5r__RltKb",d="style_container__P4RaF__RltKb",c="style_file-preview-inner__cvE72__RltKb",u="style_file-preview__M-Asq__RltKb",m="style_drag-area__Q+lm7__RltKb",p="style_upload-drag-close__u5o8W__RltKb",h="style_upload-drag-tips__z7puZ__RltKb",g="style_upload-drag-icon__sGGoS__RltKb",f="style_upload-drag-title__9Afmb__RltKb",_="style_upload-drag-text__o38vS__RltKb",x="style_title-group__8IJkS__RltKb",v="style_upload-btn__Q+Jxn__RltKb",b="style_total-count__z1fyd__RltKb",j="style_file-select__mHqyI__RltKb",y="style_file-name__QkvMn__RltKb",A="style_file-select-info__fOLiM__RltKb",N="style_file-select-option__AbDrD__RltKb";var S=l(75087),w=l.n(S),C=l(74065),F=l.n(C),R=l(57469),P=l.n(R),I=l(64671),M=l(19343),T=l(47458),k=l(83136),O=l.n(k),L=l(70579);const E=e=>{let{currentTab:t,setCurrentTab:l,previewMap:n,previewList:s,getPermission:r,currentPreviewFileId:o,setCurrentPreviewFileId:d,itemApis:c,children:u,maxWidth:m=260,getPopupContainer:p}=e;return(0,L.jsx)("div",{className:i,children:(0,L.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,L.jsx)(a.Col,{children:(0,L.jsxs)(a.Space,{className:O()(x,"core-file-list-title-group"),size:4,children:[(0,L.jsx)(a.Segmented,{value:t,onChange:l,options:[{label:(0,L.jsxs)(a.Space,{size:4,children:[(0,L.jsx)(I.default,{type:"icon-shitu-liebiao"}),(0,L.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,L.jsxs)(a.Space,{size:4,children:[(0,L.jsx)(I.default,{type:"icon-shitu-yulan"}),(0,L.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&o&&n.get(o)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(a.Select,{className:j,variant:"borderless",popupMatchSelectWidth:!1,value:o,onChange:d,getPopupContainer:p,children:s.map(e=>{let{filename:t,userName:l,date:n,id:s}=e;return(0,L.jsx)(a.Select.Option,{className:N,value:s,children:(0,L.jsxs)(a.Space,{direction:"vertical",children:[(0,L.jsxs)(a.Space,{size:4,align:"start",children:[(0,L.jsx)(w(),{type:F()(t.split(".")),size:14}),(0,L.jsx)(a.Typography.Text,{className:y,ellipsis:!0,style:{"--max-width":`${m}px`},children:t})]}),l||n?(0,L.jsxs)(a.Space,{className:A,size:24,children:[(0,L.jsxs)("div",{children:[(0,L.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",l]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&P()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},s)})}),(0,L.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:r,item:n.get(o),apis:c}),(0,L.jsx)("div",{className:b,children:(0,L.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:s.length},moduleName:"FileList"})})]})]})}),(0,L.jsx)(a.Col,{children:u})]})})},D=e=>({"en-US":()=>l.e(3333).then(l.bind(l,63333)),"zh-CN":()=>l.e(8795).then(l.bind(l,48795))}[e]());var K=l(70720),z=l.n(K);const U=(0,n.createContext)({}),{Provider:B}=U,$=()=>(0,n.useContext)(U);var W=l(68827),V=l(81348);const H=e=>{let{children:t}=e;const{onOpenChange:l,getDragButtonEl:n}=$();return(0,L.jsx)("div",{ref:n,className:v,onClick:()=>{l(e=>!e)},children:(0,L.jsxs)(a.Typography.Text,{className:"ant-btn",children:[(0,L.jsx)(I.default,{type:"icon-tuozhuaishangchuan"}),t||(0,L.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},q=e=>{let{children:t}=e;const{accept:l,onFileSelected:n}=$();return(0,L.jsx)(W.FileInput,{className:O()(v,"btn-no-padding"),accept:l,multiple:!0,onChange:n,children:e=>{let{children:l,...n}=e;return(0,L.jsxs)(a.Button,{...n,type:"text",children:[(0,L.jsx)(I.default,{type:"icon-tianjia"}),t,l]})}})},G=e=>{let{title:t,accept:l=[".png",".jpg",".pdf",".docx",".doc"],fileSize:s=20,maxLength:r,onFileSelected:i,children:c,className:u,defaultOpen:m=!1}=e;const[p,h]=(0,n.useState)(m),g=(0,n.useRef)(null),f=z()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,L.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,L.jsx)(B,{value:{open:p,onOpenChange:h,accept:l,fileSize:s,maxLength:r,onFileSelected:i,getDragButtonEl:e=>{g.current=e}},children:(0,L.jsxs)(a.Space,{className:o,direction:"vertical",children:[t,(0,L.jsx)("div",{className:O()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},Q=e=>{let{icon:t,title:l,renderTips:n=e=>e}=e;const{accept:s,fileSize:r,maxLength:a}=$(),o=n((0,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:s.map(e=>e.replace(/^\./,"")).join("\u3001"),size:r}),{fileSize:r,maxLength:a,accept:s});return(0,L.jsxs)("div",{className:O()(h,"upload-drag-tips"),children:[(0,L.jsx)("div",{className:g,children:t||(0,L.jsx)(I.default,{type:"icon-shangchuan",size:64})}),(0,L.jsx)("div",{className:f,children:l||(0,L.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,L.jsx)("div",{className:_,children:o})]})},X=e=>{let{children:t=(0,L.jsx)(Q,{}),className:l}=e;const{open:n,accept:s,onOpenChange:r,onFileSelected:o}=$();return n?(0,L.jsxs)("div",{className:O()(m,l),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,V.A)(e,s));o(t)},onDragEnd:()=>{r(!1)},children:[(0,L.jsx)(a.Button,{className:p,type:"text",shape:"circle",size:"small",icon:(0,L.jsx)(I.default,{type:"icon-close-bold"}),onClick:()=>{r(!1)}}),t]}):null};var Y=l(50196),J=l(63743);const Z=e=>{var t,l;let{className:s,maxLength:o=Number.MAX_VALUE,list:i,setList:d,infoItemRenders:m,defaultTab:p="list",defaultPreviewFileId:h,apis:g,getPermission:f=()=>!0,titleExtra:_=null,fileSize:x=20,accept:v=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:b}=e;const{apis:j}=(0,J.usePreset)(),y=Object.assign({},j,g),A=(i||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:N,onFileSelected:S}=(0,W.useFileUpload)({maxLength:o,multiple:!0,value:A,onChange:d,concurrentCount:1,onAdd:()=>{C("list")},onSave:async function(e){if("function"===typeof y.onSave){for(var t=arguments.length,l=new Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];const s=await y.onSave(e,...l);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:y.onUpload||y.ossUpload}),[w,C]=(0,n.useState)(p),{formatMessage:F}=(0,T.useIntl)({moduleName:"FileList"}),{message:R}=a.App.useApp(),P=(0,n.useMemo)(()=>new Map(A.map(e=>[e.id,e])),[A]),[I,k]=(0,n.useState)(h||r()(A,"[0].id",null));(0,n.useEffect)(()=>{I&&P.get(I)||k(r()(A,"[0].id",null))},[A,P,I]);const O={...y,onPreview:e=>{k(e.id),C("preview")},onDelete:async e=>{y.onDelete&&!1===await y.onDelete(e)||(d(t=>{const l=t.slice(0),n=t.findIndex(t=>{let{id:l}=t;return l===e.id});return n>-1&&l.splice(n,1),l}),R.success(F({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:l}=e;const n=y.onEdit&&await y.onEdit({formData:t,item:l});return!1!==n&&(d(e=>{const n=e.slice(0),s=e.findIndex(e=>{let{id:t}=e;return t===l.id});return s>-1&&n.splice(s,1,Object.assign({},l,{filename:t.name})),n}),R.success(F({id:"successEditFileName"},{name:l.filename}))),n}},D="function"===typeof _?_({currentPreviewFileId:I,currentTab:w}):_;return(0,L.jsx)("div",{className:s,children:(0,L.jsxs)(G,{title:(0,L.jsx)(E,{currentTab:w,setCurrentTab:C,previewMap:P,previewList:A,getPermission:f,currentPreviewFileId:I,setCurrentPreviewFileId:k,itemApis:O,getPopupContainer:b,children:(0,L.jsxs)(a.Space,{split:(0,L.jsx)(a.Divider,{type:"vertical"}),children:[D,f("add",{})?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(H,{children:F({id:"dragText"})}),(0,L.jsx)(q,{children:F({id:"uploadFile"})})]}):null]})}),fileSize:x,maxLength:o,onFileSelected:S,accept:v,defaultOpen:0===A.length,children:["list"===w?(0,L.jsx)(M.List,{dataSource:[...A,...N],getPermission:f,apis:O,infoItemRenders:m}):null,"preview"===w?I?(0,L.jsx)("div",{className:c,children:(0,L.jsx)(Y.default,{className:u,src:null===(t=P.get(I))||void 0===t?void 0:t.src,id:I,apis:y,filename:null===(l=P.get(I))||void 0===l?void 0:l.filename})}):(0,L.jsx)(a.Empty,{image:a.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,L.jsx)(X,{})]})})},ee=e=>(0,L.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,L.jsx)(Z,{...e})});var te=l(10986),le=l.n(te);const ne=e=>{let{maxLength:t=Number.MAX_VALUE,apis:l,getPermission:n=()=>!0,fileSize:s=20,accept:o=[".png",".jpg",".pdf",".docx",".doc"],defaultList:i=[],...d}=e;const{apis:c}=(0,J.usePreset)(),u=Object.assign({},c,l),[m,p]=le()({defaultList:i,...d},{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:h,onFileSelected:g}=(0,W.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:p,concurrentCount:1,onSave:async function(e){if("function"===typeof u.onSave){for(var t=arguments.length,l=new Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];const s=await u.onSave(e,...l);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:u.ossUpload});return(0,L.jsxs)(G,{title:(0,L.jsxs)(a.Row,{children:[(0,L.jsx)(a.Col,{flex:1}),(0,L.jsx)(a.Col,{children:(0,L.jsxs)(a.Space,{split:(0,L.jsx)(a.Divider,{type:"vertical"}),children:[(0,L.jsx)(H,{}),(0,L.jsx)(q,{children:"\u4e0a\u4f20"})]})})]}),fileSize:s,maxLength:t,onFileSelected:g,accept:o,children:[(0,L.jsx)(M.List,{dataSource:[...h,...m],getPermission:n,apis:u}),(0,L.jsx)(X,{})]})}},29556:(e,t,l)=>{l.r(t),l.d(t,{TooltipFetch:()=>C,TooltipInfoLabel:()=>N,default:()=>y});var n=l(55199),s=l(83136),r=l.n(s);const a="style_tooltip__zHGMI__RltKb",o="style_large__lvmsm__RltKb",i="style_small__nUt0r__RltKb",d="style_popup-content__-rKQN__RltKb",c="style_title__1EQPq__RltKb",u="style_important-info__qTSZY__RltKb",m="style_error__yTTq3__RltKb",p="style_warning__CMJxz__RltKb",h="style_success__AvJVx__RltKb",g="style_sub-title__uD8CH__RltKb",f="style_content__lzgUz__RltKb",_="style_alone__q6q82__RltKb",x="style_fetch-content__tEOEV__RltKb",v="style_fetch-loading__tN-WB__RltKb",b="style_title-info-icon__iY8Q+__RltKb";var j=l(70579);const y=e=>{let{overlayClassName:t,title:l,size:s,subtitle:x,content:v,importantInfo:b,importantInfoType:y,moreInfo:A,...N}=e;return(0,j.jsx)(n.Tooltip,{...N,rootClassName:r()(t,a,{[i]:"small"===s,[o]:"large"===s}),title:(0,j.jsxs)(n.Space,{direction:"vertical",className:d,children:[l&&(0,j.jsx)("div",{className:c,children:l}),b&&(0,j.jsx)("div",{className:r()(u,{[h]:"success"===y,[p]:"warning"===y,[m]:"error"===y}),children:b}),x&&(0,j.jsx)("div",{className:g,children:x}),v&&(0,j.jsx)("div",{className:r()(f,{[_]:[l,x,b,A].every(e=>!e)}),children:v}),A&&(0,j.jsx)("div",{children:A})]})})};var A=l(64671);const N=e=>{let{title:t,tooltipTitle:l}=e;return(0,j.jsxs)("div",{children:[t,l?(0,j.jsx)(y,{...l,children:(0,j.jsx)("span",{children:(0,j.jsx)(A.default,{type:"icon-xinxi-miaobian",className:b,size:14})})}):null]})};var S=l(73884),w=l(87558);const C=e=>{let{api:t,children:l,fetchContent:s,showLoading:a=!0,loadingClassName:o,force:i,...d}=e;const[c,u]=(0,S.useState)(!1),m=(0,w.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:h,data:g,send:f}=m;return(0,j.jsx)(y,{...Object.assign({},d,p?s(g,m):{}),open:c,onOpenChange:async e=>{!e||p&&!i||await f({type:"refresh"}),u(e)},children:(0,j.jsxs)("span",{className:x,children:[l,a&&h?(0,j.jsx)(n.Spin,{size:"small",className:r()(o,v)}):null]})})}},30096:(e,t,l)=>{l.d(t,{Ay:()=>c});var n=l(98434),s=l(43856);const{useOnChange:r}=n.hooks,a=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(s.UserField),i=a(s.TableField),d=a(s.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:l}=e;return a((0,s.createListField)({renderList:t,defaultProps:l}))},d.User=o,d.Table=i;const c=d},30891:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(98434);const s=e=>{let{children:t}=e;const{openApi:l,formData:s}=(0,n.useFormContext)();return t({...l,formData:s})}},34643:(e,t,l)=>{l.d(t,{Ay:()=>u,Pg:()=>d,eM:()=>c});var n=l(98434),s=l(43856),r=l(60586);const{useOnChange:a}=n.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),d=o(r.$9),c=o(s.SuperSelectTableListField),u=i},35774:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(98434),s=l(81014),r=l(70579);const a=e=>{let{onClick:t,...l}=e;const a=(0,n.useFormContext)();return(0,r.jsx)(s.default,{...l,onClick:e=>t(a,e)})}},36972:(e,t,l)=>{l.d(t,{A:()=>M});var n=l(73884),s=l(87558),r=l(98434),a=l(78491),o=l.n(a),i=l(55199);const d="style_salary__sUOtT__RltKb",c="style_salary-type__Sl1LC__RltKb",u="style_input-number__eoEZr__RltKb",m="style_full__NPqJm__RltKb",p="style_input-group__toLB7__RltKb",h="style_input-group-no-mb__C4nzh__RltKb";var g=l(47458),f=l(55431),_=l(48731),x=l(10986),v=l.n(x),b=l(21079),j=l(70579);const y=(0,s.withFetch)(e=>{let{data:t,...l}=e;return(0,j.jsx)(i.Select,{...l,options:t})}),{useDecorator:A,useUIDecorator:N}=r.hooks,S=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},w=e=>{let{children:t,isError:l}=e;return(0,j.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(l?"is-error":""),children:(0,j.jsx)("div",{className:"react-form__field-main",children:(0,j.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},C=e=>{let{getPopupContainer:t,onBlur:l,api:n,isRange:s=!0,placeholder:r,disabled:a,showMonth:f,remindUnit:x,req:A,...N}=e;const[C,F]=v()(N),{formatMessage:R}=(0,g.useIntl)({moduleName:"FormInfo"}),P=R({id:"defaultSelectPlaceholder"},{label:""}),I=R({id:"defaultInputPlaceholder"},{label:""}),M=[6].indexOf((0,b.get)(C,"type"))>-1,T=1===(0,b.get)(C,"type"),k=7===(0,b.get)(C,"type"),O=e=>{if(e)return M?e/1e4:e},L=o()(l||(()=>{}));return(0,j.jsx)("div",{ref:L,className:d,children:(0,j.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,j.jsx)(i.Col,{children:(0,j.jsx)(y,{className:c,...n,value:(0,b.get)(C,"type"),onChange:e=>{F&&F(Object.assign({},T?{}:C,{type:e,min:"",max:""}))},placeholder:r||P,getPopupContainer:t,disabled:a})}),T?null:(0,j.jsxs)(i.Col,{flex:1,children:[s&&(0,j.jsxs)(i.Row,{className:x&&[5,6].includes(null===C||void 0===C?void 0:C.type)?p:h,wrap:!1,children:[(0,j.jsx)(i.Col,{flex:1,children:(0,j.jsx)(w,{isError:!(0,b.get)(C,"min")&&A,children:(0,j.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:O((0,b.get)(C,"min")),style:{textAlign:"center"},onChange:e=>{F(Object.assign({},C,{min:M?1e4*e:e}))},description:x&&[5,6].includes(null===C||void 0===C?void 0:C.type)?(0,j.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,j.jsx)(_.default,{name:null===C||void 0===C?void 0:C.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",M?R({id:"thousand"}):k?"":R({id:"yuan"})]}):null})})}),(0,j.jsx)(i.Col,{children:(0,j.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,j.jsx)(i.Col,{flex:1,children:(0,j.jsx)(w,{isError:!(0,b.get)(C,"max")&&A,children:(0,j.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:O((0,b.get)(C,"max")),style:{textAlign:"center"},addonAfter:M?R({id:"thousand"}):k?"":R({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:M?1e4*e:e}))}})})}),5===(0,b.get)(C,"type")&&f&&(0,j.jsx)(i.Col,{children:(0,j.jsxs)("span",{className:(0,b.get)(C,"max")&&(0,b.get)(C,"min")&&!(0,b.get)(C,"month")&&A?"error":"",children:[(0,j.jsx)("span",{className:u,children:"X"}),(0,j.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,b.get)(C,"month"),onChange:e=>{F(Object.assign({},C,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!s&&!k&&(0,j.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:I,className:m,formatter:S,value:O((0,b.get)(C,"max")),style:{textAlign:"center"},addonAfter:M?R({id:"thousand"}):k?"":R({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:M?1e4*e:e}))}}),!s&&k&&(0,j.jsx)(i.Input,{disabled:a,placeholder:I,className:m,onChange:e=>{F(Object.assign({},C,{max:e.target.value}))},value:(0,b.get)(C,"max"),style:{textAlign:"center"}})]})]})})},F={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"}]},R={type:5,min:"",max:"",month:12},P=e=>{let{api:t=F,defaultValue:l=R,...n}=e;return(0,j.jsx)(g.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,j.jsx)(C,{...n,api:t,defaultValue:l})})},I=e=>{var t;return A({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(P)};I.Field=P;const M=I},41381:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s.a});l(55664);var n=l(22436),s=l.n(n),r={};for(const a in n)"default"!==a&&(r[a]=()=>n[a]);l.d(t,r)},45053:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(98434),s=l(55199),r=l(73884),a=l(83136),o=l.n(a),i=l(70720),d=l.n(i),c=l(47094),u=l(70579);const m=e=>{let{name:t,groupName:l,overlayClassName:a,errorRender:i=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:l,groupIndex:s}=e;const{emitter:a,formState:o}=(0,n.useFormContext)(),i=(0,r.useRef)({name:t,groupName:l,groupIndex:s});i.current={name:t,groupName:l,groupIndex:s};const d=(0,r.useRef)(o);d.current=o;const[c,u]=(0,r.useState)(null);return(0,r.useEffect)(()=>{const e=a.addListener("form-field-validate-complete",e=>{let{id:t,validate:l}=e;const s=d.current[t];if(!s)return;const r=i.current;s.name!==r.name||r.groupName&&(s.groupName!==r.groupName||s.groupIndex!==r.groupIndex)||u(2===l.status?Object.assign({},l,{label:s.label,errMsg:n.util.compileErrMsg(l.msg,s.label)}):null)});return()=>{e&&e.remove()}},[a]),c})({name:t,groupName:l,groupIndex:m}),[g,f]=(0,r.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,r.useRef)(null),v=(0,r.useRef)(null);d()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||v.current&&v.current.contains(e)};const[b,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 l=new MutationObserver(e);return l.observe(x.current,{subtree:!0,childList:!0}),()=>{l.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!_,rootClassName:o()(a,c.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:v,style:{width:b},className:o()(c.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,l)=>{l.d(t,{Ay:()=>i,oc:()=>o});var n=l(73884);const s=(0,n.createContext)([]),{Provider:r,Consumer:a}=s,o=()=>(0,n.useContext)(s),i=r},46732:(e,t,l)=>{l.d(t,{A:()=>c,K:()=>d});var n=l(75363),s=l(73884),r=l(98434),a=l(47094),o=l(70579);const i=(0,s.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const l=(0,s.useContext)(i),d=(0,r.useGroup)();return l&&(0,o.jsx)(n.default,{className:a.A["helper-guide-field"],name:l+"-"+(d.name?d.name+"-":"")+t})}},47094:(e,t,l)=>{l.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__RltKb","form-drawer":"style_form-drawer__uYDXS__RltKb","table-list":"style_table-list__6lp-A__RltKb","list-item":"style_list-item__hVzQa__RltKb","table-list-inner":"style_table-list-inner__uc8DK__RltKb","table-list-field":"style_table-list-field__JSJfB__RltKb","table-list-header":"style_table-list-header__KXvKa__RltKb","is-req":"style_is-req__LfXQf__RltKb","table-list-extra":"style_table-list-extra__faYTK__RltKb","list-btn":"style_list-btn__WKYkm__RltKb","form-info":"style_form-info__B8bAP__RltKb","list-part":"style_list-part__Ld0GA__RltKb","is-important":"style_is-important__vaBk1__RltKb","list-item-part":"style_list-item-part__MzKP7__RltKb","money-input":"style_money-input__J86Pb__RltKb","money-description":"style_money-description__Gz3p7__RltKb","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__RltKb","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__RltKb","helper-guide-field":"style_helper-guide-field__Wke3w__RltKb","error-tip-overlay":"style_error-tip-overlay__aNCGc__RltKb","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__RltKb","column-not-layout":"style_column-not-layout__+SXC+__RltKb","mult-field-item":"style_mult-field-item__eS0nJ__RltKb","react-form__field-label":"style_react-form__field-label__2U91E__RltKb","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__RltKb","form-step-section":"style_form-step-section__RvkHy__RltKb"}},47338:(e,t,l)=>{l.r(t),l.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>s,withConfirm:()=>n.withConfirm});l(9056);var n=l(48686);const s=n.ConfirmButton},48221:(e,t,l)=>{l.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=l(25963),s=l(73025),r=l(47094),a=l(76995),o=l(70579);const i=e=>(0,o.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:r.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},c=e=>{const t=d();return(0,o.jsx)(s.A,{...e,modalFunc:t})}},50196:(e,t,l)=>{l.r(t),l.d(t,{AudioPreview:()=>n.AudioPreview,HtmlPreview:()=>n.HtmlPreview,ImagePreview:()=>n.ImagePreview,OSSFilePreview:()=>n.OSSFilePreview,OfficePreview:()=>n.OfficePreview,PdfPreview:()=>n.PdfPreview,TextPreview:()=>n.TextPreview,UnknownPreview:()=>n.UnknownPreview,VideoPreview:()=>n.VideoPreview,default:()=>n.FilePreview});l(64674);var n=l(68827)},55431:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(1649).then(l.bind(l,21649)),"zh-CN":()=>l.e(711).then(l.bind(l,80711))}[e]())},56259:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(89319),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{},e))(n.A);a.Field=n.A;const o=a},64261:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(98434),s=l(57469),r=l.n(s),a=l(34677),o=l.n(a),i=l(33097),d=l.n(i),c=(l(17448),l(2842)),u=l(46732),m=l(13050),p=l(70579);const h=n.RULES.REQ,g=n.RULES.LEN,f=async(e,t)=>{const{locale:l}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),n.interceptors.output.use("photo-string",e=>{var t,l;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(l=t.split("?"))||void 0===l?void 0:l[0])||e.id:e}),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):e),n.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>null===e||void 0===e?void 0:e.id):e),n.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),n.interceptors.output.use("to-array",e=>[e]),n.interceptors.input.use("array-single",e=>e?[e]:[]),n.interceptors.output.use("array-single",e=>e?e[0]:null),n.interceptors.input.use("boolean-number",e=>1===e||"1"===e),n.interceptors.output.use("boolean-number",e=>e?1:0),n.interceptors.input.use("un-boolean",e=>!e),n.interceptors.output.use("un-boolean",e=>!e),n.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),n.interceptors.input.use("date-string",e=>e?r()(e):null),n.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),n.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(r()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(r()(e[1])),t}),n.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}),n.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),n.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:s}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),a=await s(),i=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[t,l]})),f=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[l,t]}));n.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:""),n.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:f.get(Number(t[1])),value:t[2]}:{code:f.get(86),value:e}});const _=(e,t)=>{const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":`%s\u5fc5\u987b\u7b49\u4e8e${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`}},s=d()(n,`${e}.${l}`);return s||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},h(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const[n,s,r]=t;let a="";return r===s&&n.length!==Number(r)&&(a="LENGTH_EQUAL"),n.length<s&&(a="LENGTH_MORE"),r&&n.length>r&&(a="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(a,{start:s,end:r})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:c.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,l)=>l===t&&e.length!==Number(l)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:l})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:l})}:l&&e.length>l?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:l})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,p.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},76995:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55431),s=l(98434),r=l(47458),a=l(83799),o=l(83136),i=l.n(o),d=l(47094),c=l(70579);const u="FormInfo",m=e=>{let{className:t,withDecorator:l,footerButtons:o,formProps:m,cancelText:p,saveText:h,autoClose:g=!0,...f}=e;return{...f,footerButtons:o||[{children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:u,children:p||(0,c.jsx)(r.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:u,children:h||(0,c.jsx)(r.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:s.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const s=t=>{const{onSubmit:l,...s}=Object.assign({},"function"===typeof m?m(t):m);return(0,c.jsx)(a.lV,{...s,onSubmit:async function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];!1!==(l&&await l(e,Object.assign({},t),...s))&&g&&t.close()},children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof l?l(s,t):s(t)},className:i()(t,d.A["form-outer"])}}},78756:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);a.Field=n.IndustrySelectField,a.Enum=n.IndustrySelectField.Enum;const o=a},81026:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);a.Field=n.FunctionSelectField,a.Enum=n.FunctionSelectField.Enum;const o=a},83230:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(98434),s=l(43856);const{useOnChange:r}=n.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);a.Field=s.CascaderField,a.createTreeUtils=s.createTreeUtils;const o=a},83799:(e,t,l)=>{l.d(t,{NI:()=>E,TQ:()=>u.A,JL:()=>T,eu:()=>x.A,vx:()=>m.A,lr:()=>H,s3:()=>q,lV:()=>s.A,d4:()=>p.A,ZN:()=>h.A,pd:()=>K,YI:()=>$,h2:()=>D,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>v.A,l6:()=>B,Ap:()=>n.Slider,wD:()=>k,eM:()=>O,Pg:()=>L,dO:()=>n.Switch,EY:()=>R,fs:()=>z,AG:()=>V,f7:()=>W,w5:()=>j.A,_O:()=>_.A,nk:()=>G});var n=l(98434),s=l(85696),r=l(47458),a=l(73884),o=l(30891),i=l(47094),d=l(30096),c=l(34643),u=l(1904),m=l(83230),p=l(81026),h=l(78756),g=l(92328),f=l(2842),_=l(89099),x=l(96339),v=l(36972),b=l(15209),j=l(56259),y=l(55199),A=l(10986),N=l.n(A),S=l(70579);const{useDecorator:w}=n.hooks,C=e=>{let{children:t,...l}=e;const[n]=N()(l);return(0,S.jsxs)(y.Typography.Text,{...l,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(y.Input,{value:n})}),t||n]})},F=e=>w(e)(C);F.Field=C;const R=F;var P=l(45053);const I=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:s,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,S.jsx)(e,{...a,ref:l,label:s,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},M=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:s,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,S.jsx)(e,{...a,ref:l,label:s,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},T=M(d.Ay),k=M(c.Ay),O=M(c.eM),L=M(c.Pg),E=M(u.N),D=I(b.A),K=I(n.Input);K.Password=I(n.Input.Password);const z=(U=n.TextArea,e=>{let{placeholder:t,label:l,className:n,...s}=e;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(U,{...s,label:l,placeholder:t||e})})})});var U;const B=M(n.Select),$=I(n.InputNumber),W=M(n.TreeSelect),V=M(n.TimePicker);V.RangePicker=M(n.TimePicker.RangePicker);const H=M(n.DatePicker);H.MonthPicker=M(n.DatePicker.MonthPicker),H.RangePicker=M(n.DatePicker.RangePicker),H.WeekPicker=M(n.DatePicker.WeekPicker);const q=e=>{let{placeholder:t,label:l,soFarText:s,...a}=e;const{formatMessage:o}=(0,r.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(n.DatePickerToday,{...a,label:l,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:s||o({id:"soFarText"})})},G=Object.assign({},n,{Input:K,InputUpperCase:D,TextArea:z,Select:B,InputNumber:$,TreeSelect:W,TimePicker:V,DatePicker:H,DatePickerToday:q,Form:s.A,FormItem:o.A,AdvancedSelect:T,SuperSelect:k,SuperSelectTableList:O,SuperSelectUser:L,AddressSelect:u.A,AddressInput:E,MoneyInput:g.A,PhoneNumber:f.default,Cascader:m.A,FunctionSelect:p.A,IndustrySelect:h.A,TypeDateRangePicker:j.A,Upload:_.A,Avatar:x.A,SalaryInput:v.A,Text:R,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:P.A})},85696:(e,t,l)=>{l.d(t,{A:()=>v});var n=l(73884),s=l(63743),r=l(33097),a=l.n(r),o=l(64261),i=l(47458),d=l(55431),c=l(46237),u=l(41381),m=l(46732),p=l(98434),h=l(83136),g=l.n(h),f=l(47094),_=l(70579);const x=e=>{let{children:t}=e;const[l,r]=(0,n.useState)(!1),i=(0,s.usePreset)(),d=a()(i,"formInfo",{}),c=a()(i,"locale");return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(d,{locale:c})).then(()=>{r(!0)})},[d,c]),l?t:null},v=(0,n.forwardRef)((e,t)=>{let{className:l,helperGuideName:n,children:s,lang:r,...a}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:(0,_.jsx)(c.Ay,{value:r,children:(0,_.jsx)(m.K,{value:n,children:(0,_.jsx)(x,{children:(0,_.jsx)(p.FormAntd,{...a,ref:t,className:g()(l,f.A["form-outer"]),children:(0,_.jsx)(u.default,{children:s})})})})})})})},85846:(e,t,l)=>{l.d(t,{A:()=>x});var n=l(73884),s=l(68532),r=l(55199),a=l(64671),o=l(41381),i=l(47338),d=l(2196),c=l(83136),u=l.n(c),m=l(55431),p=l(47458),h=l(47094),g=l(70579);const f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{addText:t,className:l,important:o,outer:c=(0,g.jsx)(_,{}),renderChildren:m=e=>e,deleteButtonProps:f,title:x,...v}=e;const{formatMessage:b}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(s.SubList,{...v,listRender:e=>{let{list:t,title:l,id:n,allowRemove:s,onRemove:c,...m}=e;return(0,g.jsxs)("div",{className:u()(h.A["list-item"],{[h.A["is-important"]]:o}),children:[(0,g.jsx)(d.A,{...m,title:l,list:t,className:h.A["list-item-part"],gap:16,extra:(0,g.jsx)(p.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>s?(0,g.jsx)(i.default,{danger:!0,className:"btn-no-padding",message:b({id:"delConfirm"},{name:l}),type:"link",onClick:()=>{c(n)},...Object.assign({},f),children:null!==f&&void 0!==f&&f.children?null===f||void 0===f?void 0:f.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})}):null})}),(0,g.jsx)(r.Divider,{})]},n)},children:(e,s)=>{let{allowAdd:r,onAdd:a}=s;return(0,n.cloneElement)(c,{title:x,addText:t,className:u()(l,h.A["list-part"]),allowAdd:r,add:()=>a({isUnshift:!1})},m(e))}})}),_=e=>{let{add:t,addText:l,className:n,allowAdd:s,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:n,extra:s&&(0,g.jsx)(p.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(r.Typography.Text,{className:h.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),l||e]})})})},x=f},89099:(e,t,l)=>{l.d(t,{A:()=>y});var n=l(55199),s=l(83136),r=l.n(s),a=l(10986),o=l.n(a);const i="style_upload__t422Q__RltKb",d="style_upload-list__Q9HDc__RltKb",c="style_tips__3Gpnu__RltKb";var u=l(19343),m=l(98434),p=l(47458),h=l(1488),g=l.n(h),f=l(17508),_=l(55431),x=l(70579);const{useOnChange:v}=m.hooks,b=(0,p.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:l,fileSize:s,maxLength:a,multiple:m,size:h,accept:_,children:v,renderTips:b,showUploadList:j,onSave:y,ossUpload:A,onUpload:N,getPermission:S,concurrentCount:w,...C}=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),[F,R]=o()(C),P=F||[],{fileList:I,onFileSelected:M}=(0,f.lN)({multiple:m,onSave:y,onUpload:A||N,fileSize:s,maxLength:a,value:P,onChange:R,concurrentCount:w}),T=[...I,...P],k=b(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:a,fileSize:s}),{fileSize:s,maxLength:a,accept:_});return(0,x.jsxs)(n.Space,{direction:"vertical",children:[(0,x.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(f.Zi,{...g()(C,["value","onChange"]),size:h,multiple:m,accept:_,className:r()(i,l),onChange:M,children:v}),k&&(0,x.jsx)("div",{className:c,children:k})]}),j&&T.length>0&&(0,x.jsx)(u.List,{className:d,dataSource:T,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=P.slice(0),l=t.indexOf(e);l>-1&&t.splice(l,1),R(t)}}})]})}),j=e=>{let{interceptor:t="file-format",...l}=e;return v({interceptor:t,...l})(b)};j.Field=b;const y=j},92328:(e,t,l)=>{l.d(t,{A:()=>b});var n=l(10986),s=l.n(n),r=l(98434),a=l(55199),o=l(69484);const i="style_money-input__Pyur7__RltKb",d="style_money-description__9pFk4__RltKb";var c=l(83136),u=l.n(c),m=l(34677),p=l.n(m),h=l(73884),g=l(70579);const{isNotEmpty:f}=r.util||r.formUtils,{useOnChange:_}=r.hooks,x=e=>{let{chineseEmpty:t,className:l,showError:n,errorDesc:r,transformMoneyToChinese:c,onBlur:m,moneyFormat:_,...x}=e;const[v,b]=(0,h.useState)(""),[j,y]=s()(x),A=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:f(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,g.jsxs)("div",{className:u()(l,"money-input",i),children:[(0,g.jsx)(a.InputNumber,{...A,status:v,formatter:_?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(A.max)||f(A.min)&&Number(t)<Number(A.min))&&b("error"):b(""),f(t)?Number(t):null},onChange:e=>{y(e)},onBlur:e=>{m&&m(e,b)}}),(0,g.jsx)("div",{className:u()(d),children:"error"===v&&n?r:f(j)?(0,o.A)(c?c(j):j):t})]})},v=e=>_(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);v.Field=x,v.toChineseCharacter=o.A;const b=v},94005:(e,t,l)=>{l.d(t,{$X:()=>_,Ay:()=>f,Wp:()=>x});var n=l(3382),s=l(73884),r=l(98434),a=l(73025),o=l(47458),i=l(47094),d=l(55431),c=l(55199),u=l(76995),m=l(70579);const p="FormInfo",h=e=>{let{items:t,children:l}=e;const[n,r]=(0,s.useState)(0);return l({currentIndex:n,setCurrentIndex:r,stepCacheRef:(0,s.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:l,completeText:n,nextText:s,items:a,withDecorator:g,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},a[t]);return c||[{children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:l||(0,m.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:p})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:i?n||(0,m.jsx)(o.FormattedMessage,{id:"Complete",moduleName:p}):s||(0,m.jsx)(o.FormattedMessage,{id:"Next",moduleName:p})}),ButtonComponent:r.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const l=t=>(0,m.jsx)(h,{items:a,children:l=>{var n;let{currentIndex:s,isLastStep:r,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=l;const{formProps:p,title:h,...g}=d,{onSubmit:_,...x}="function"===typeof p?p(t):p,v=Object.assign({},x.data,null===(n=u.current[s])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:s,isLastStep:r,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,m.jsx)(c.Steps,{className:i.A["form-step-section"],current:s,items:a.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:s,data:v,onSubmit:async function(e){u.current[s]={data:e};for(var l=arguments.length,n=new Array(l>1?l-1:0),a=1;a<l;a++)n[a-1]=arguments[a];const i=_&&await _(e,Object.assign({},t,{currentIndex:s,isLastStep:r,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return f.autoClose&&!r&&!1!==i&&o(e=>e+1),!!r&&i}})}))}});return"function"===typeof g?g(l,t):l(t)},formProps:e=>{let{formProps:t,...l}=e;return Object.assign({},l,t)},children:e=>{let{children:t,stepSection:l,...n}=e;return(0,m.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,m.jsx)(c.Flex,{justify:"center",children:l}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,m.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),_=()=>{const e=(0,n.useModal)();return t=>e(g(Object.assign({},t,{className:i.A["form-modal"]})))},x=e=>{const t=_();if(!e.api){const{modalProps:l,...n}=e;return(0,m.jsx)(c.Button,{...n,onClick:()=>{t(l)}})}return(0,m.jsx)(a.A,{...e,modalFunc:t})}},96252:(e,t,l)=>{l.r(t),l.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>d.Ay,FormModalButton:()=>d.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>a.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>v.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>b,fieldDecorator:()=>r.E,fields:()=>r.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>d.Vl,useFormStepModal:()=>c.$X});var n=l(64261),s=l(2196),r=l(15445),a=l(85846),o=l(97056),i=l(35774),d=l(5995),c=l(94005),u=l(48221),m=l(85696),p=l(30891),h=l(45053),g=l(97949),f=l(98434),_={};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&&(_[j]=()=>f[j]);l.d(t,_);var x=l(83799),v=l(18936);(0,n.A)(),s.A.fields=r.A,s.A.List=a.A,s.A.TableList=o.A,s.A.FormApiButton=i.A,s.A.FormModal=d.Ay,s.A.useFormModal=d.Vl,s.A.FormModalButton=d.W6,s.A.FormStepModal=c.Ay,s.A.useFormStepModal=c.$X,s.A.FormStepModalButton=c.Wp,s.A.FormDrawer=u.Ay,s.A.useFormDrawer=u.Xy,s.A.FormDrawerButton=u.WJ,s.A.Form=m.A,s.A.FormItem=p.A,s.A.ErrorTip=h.A,s.A.SubmitButton=f.SubmitButton,s.A.CancelButton=f.CancelButton,s.A.fieldDecorator=r.E,s.A.MultiField=g.A,s.A.useFormContext=f.useFormContext,s.A.hooks=f.hooks,s.A.widget=f.widget,s.A.utils=f.utils,s.A.formUtils=f.formUtils;const b=s.A},96339:(e,t,l)=>{l.d(t,{A:()=>K});var n=l(73884),s=l(17508),r=l(40438),a=l(63743),o=l(3382),i=l(64671),d=l(55199),c=l(53202),u=l.n(c),m=l(33097),p=l.n(m),h=l(83136),g=l.n(h),f=l(51941),_=l(98434),x=l(34677),v=l.n(x);const b="style_upload-btn__-6XtP__RltKb",j="style_square__UPkfA__RltKb",y="style_is-loading__wx6Pd__RltKb",A="style_upload-btn-tips__YtxWz__RltKb",N="style_drop-tips__N-v59__RltKb",S="style_preview-area__aV3SN__RltKb";var w=l(18411),C=l(47458),F=l(55431),R=l(70579);const{useOnChange:P}=_.hooks,I=r.default.Avatar,M="FormInfo",T=(0,s.Ay)(e=>{let{className:t,icon:l,loading:n,value:s,gender:r,width:a,height:o,children:c,shape:u,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(I,{...Object.assign({},"function"===typeof h?h(s):{id:p()(s,"id")}),gender:r,width:64*a/o,height:64,shape:u,defaultAvatar:m,apis:f}),(0,R.jsx)("div",{className:A,children:l||(0,R.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,R.jsx)("div",{className:g()(t,b,{[y]:n,[j]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:n?(0,R.jsx)(d.Spin,{children:_}):_})}),k=e=>{let t=e.split(","),l=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],s=atob(l),r=s.length,a=new Uint8Array(r);for(;r--;)a[r]=s.charCodeAt(r);return new Blob([a],{type:n})},O=(0,n.forwardRef)((e,t)=>{let{image:l,width:r,height:a,borderRadius:o,preview:c,fileSize:m,accept:p,renderTips:h,getApi:g,shape:_,border:x=1,...v}=e;const b=(0,C.useIntl)({moduleName:M}),[j,y]=(0,n.useState)(0),A=(0,n.useRef)(null),[w,F]=(0,n.useState)(l),[P,I]=(0,n.useState)(1),[T,O]=(0,n.useState)(0),[L,E]=(0,n.useState)(""),D=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{y(2*A.current.clientWidth/3)},[]),g({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),l=t.getContext("2d");return t.width=r,t.height=a,l.drawImage(e,0,0,t.width,t.height),new window.File([k(t.toDataURL())],w.name,{type:w.type})}});const K=()=>{E(D.current.getImage().toDataURL())},z=(0,f.useDebouncedCallback)(K,500);return(0,R.jsx)("div",{ref:A,children:(0,R.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,R.jsx)(d.Col,{span:c?16:24,children:j&&(0,R.jsxs)(d.Space,{direction:"vertical",children:[(0,R.jsx)(u(),{...v,ref:D,image:w,scale:P,rotate:T,width:j-2*x,height:a*j/r-2*x*a/r,border:x,color:[0,0,0,.6],borderRadius:o*j/r,onImageReady:K,onImageChange:z}),(0,R.jsx)("div",{className:N,children:h(`${b.formatMessage({id:"PictureFormat"})}${p.map(e=>e.replace(/^\./,"")).join(" ")} ${b.formatMessage({id:"ImageSize"})}${b.formatMessage({id:"NotExceeding"},{size:m})}`,{accept:p,fileSize:m})}),(0,R.jsxs)(d.Row,{gutter:14,align:"middle",children:[(0,R.jsx)(d.Col,{children:(0,R.jsx)(d.Tooltip,{title:b.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,R.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O(e=>(e-90)%360)}})})}),(0,R.jsx)(d.Col,{children:(0,R.jsx)(d.Tooltip,{title:b.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,R.jsx)(i.default,{type:"icon-chongman",onClick:()=>{I(1)}})})}),(0,R.jsx)(d.Col,{flex:1,children:(0,R.jsx)(d.Slider,{tooltip:{placement:"bottom",formatter:()=>b.formatMessage({id:"Size"})},value:P,step:.05,min:.2,max:3,onChange:I})}),(0,R.jsx)(d.Col,{children:(0,R.jsx)(s.FI,{accept:p,onChange:e=>{e[0].size>1024*m*1024?d.message.error(b.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:m})):(O(0),I(1),F(e[0]))},children:b.formatMessage({id:"ReUpload"})})})]})]})}),c&&(0,R.jsx)(d.Col,{span:8,children:(0,R.jsx)("div",{className:S,children:(0,R.jsxs)(d.Space,{direction:"vertical",children:[(0,R.jsx)(d.Avatar,{src:L,shape:_,style:{width:j/2-36,height:(j/2-36)*a/r}}),(0,R.jsx)("div",{style:{textAlign:"center"},children:b.formatMessage({id:"Preview"})})]})})})]})})}),L=()=>{const e=(0,o.useModal)();return t=>{const{image:l,width:n,height:s,borderRadius:r,getApi:a,preview:o,fileSize:i,accept:d,renderTips:c,border:u,dropModalSize:m,...p}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...p,size:m,children:(0,R.jsx)(O,{preview:o,fileSize:i,accept:d,getApi:a,renderTips:c,width:n,height:s,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:r,image:l,border:u,scale:1,rotate:0})})}},E=(0,C.createWithIntl)({importMessages:F.A,moduleName:"FormInfo"})(e=>{var t;let{value:l,gender:s,fileSize:r=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:u=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,R.jsx)(C.IntlProvider,{importMessages:F.A,moduleName:"FormInfo",children:(0,R.jsx)(C.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:b="small",defaultAvatar:j=w.A,displayAvatar:y}=e;const[A,N]=(0,n.useState)(!1),{apis:S}=(0,a.usePreset)(),P=v()({},S,c),I=P.ossUpload||P.upload||(null===(t=P.file)||void 0===t?void 0:t.upload),k=(0,n.useRef)(null),O=L(),E=(0,C.useIntl)({moduleName:M});return(0,R.jsx)(T,{value:l,gender:s,accept:o,width:h,height:g,shape:p,icon:x,loading:A,defaultAvatar:j,displayAvatar:y,apis:P,onChange:e=>{if(e[0].size>1024*r*1024)return void d.message.error(E.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(N(!0),I({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):d.message.error(E.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?O({image:e[0],width:h,height:g,title:f,shape:p,border:_,dropModalSize:b,getApi:e=>k.current=e,fileSize:r,accept:o,renderTips:u,onConfirm:()=>{t(k.current.getImage())}}):t(e[0])}})}),D=e=>P(e)(E);D.Field=E,D.useDropModal=L;const K=D},97056:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),s=l(64671),r=l(83136),a=l.n(r),o=l(47094),i=l(68532),d=l(41381),c=l(47458),u=l(55431),m=l(70579);const p=(0,c.createWithIntl)({moduleName:"FormInfo",importMessages:u.A})(e=>{let{className:t,...l}=e;const{formatMessage:r}=(0,c.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)("div",{className:a()(t,o.A["table-list"]),children:(0,m.jsx)(i.TableList,{...l,className:a()(t,o.A["table-list"]),headerRender:(e,t)=>{let{width:l}=t;return(0,m.jsxs)(n.Row,{wrap:!1,className:o.A["table-list-header"],style:{"--col-width":l},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:l,isReq:s}=t;return(0,m.jsx)(n.Col,{className:a()({[o.A["is-req"]]:s}),children:e},l)},listRender:(e,t)=>{let{id:l,width:a,onRemove:i,allowRemove:d}=t;return(0,m.jsxs)(n.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"],children:(0,m.jsx)(n.Button,{type:"link",onClick:i,danger:!0,disabled:!d,children:(0,m.jsxs)("span",{children:[(0,m.jsx)(s.default,{type:"shanchu"}),r({id:"delText"})]})})})]},l)},itemRender:e=>(0,m.jsx)(n.Col,{className:o.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:l,allowAdd:i,onAdd:c}=t;return(0,m.jsx)(d.default.Part,{title:l,className:a()(o.A["table-list-inner"]),extra:i&&(0,m.jsxs)(n.Typography.Link,{className:o.A["list-btn"],onClick:()=>c({isUnshift:!1}),children:[(0,m.jsx)(s.default,{type:"tianjia"}),r({id:"addText"})]}),children:e})}})})})},97949:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),s=l(47458),r=l(64671),a=l(47094),o=l(83136),i=l.n(o),d=l(55431),c=l(68532),u=l(70579);const m=(0,s.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(c.MultiField,{...e,itemRender:(e,t)=>{let{id:l,index:s,allowRemove:o,onRemove:d}=t;return(0,u.jsxs)("div",{className:i()(a.A["mult-field-item"],"mult-field-item",{[a.A["first-item"]]:0===s}),children:[e,(0,u.jsxs)("div",{className:i()("form-info-mult-option"),children:[(0,u.jsx)("div",{className:i()(a.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,u.jsx)(n.Button,{icon:(0,u.jsx)(r.default,{type:"shanchu"}),onClick:d,disabled:!o})]})]},l)},children:(l,s)=>{let{allowAdd:o,onAdd:d}=s;return(0,u.jsxs)("div",{className:i()(a.A["mult-field"],"mult-field"),children:[l,o&&(0,u.jsx)("div",{className:i()("form-info-mult-add-btn"),children:(0,u.jsxs)(n.Button,{className:a.A["mult-field-add-btn"],type:"dashed",onClick:()=>d({isUnshift:!1}),children:[(0,u.jsx)(r.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}})})}}]);
|
|
2
|
+
//# sourceMappingURL=4474.dfb83cf2.chunk.js.map
|