UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

63 lines (62 loc) 2.95 kB
; (function () { System.register(["./chunk-legacy-Re9CbdfL.js", "./_MapCache-legacy-DlYNX_X1.js", "./_baseOrderBy-legacy-CB2Dh5d_.js"], function (_export, _context) { "use strict"; var __commonJS, require_isArray, require__baseOrderBy, require_orderBy; return { setters: [function (_chunkLegacy001Js) { __commonJS = _chunkLegacy001Js.t; }, function (_MapCacheLegacy005Js) { require_isArray = _MapCacheLegacy005Js.m; }, function (_baseOrderByLegacy00ZJs) { require__baseOrderBy = _baseOrderByLegacy00ZJs.t; }], execute: function () { //#region ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js _export("t", require_orderBy = /* @__PURE__ */__commonJS({ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js": (exports, module) => { var baseOrderBy = require__baseOrderBy(), isArray = require_isArray(); /** * This method is like `_.sortBy` except that it allows specifying the sort * orders of the iteratees to sort by. If `orders` is unspecified, all values * are sorted in ascending order. Otherwise, specify an order of "desc" for * descending or "asc" for ascending sort order of corresponding values. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] * The iteratees to sort by. * @param {string[]} [orders] The sort orders of `iteratees`. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {Array} Returns the new sorted array. * @example * * var users = [ * { 'user': 'fred', 'age': 48 }, * { 'user': 'barney', 'age': 34 }, * { 'user': 'fred', 'age': 40 }, * { 'user': 'barney', 'age': 36 } * ]; * * // Sort by `user` in ascending order and by `age` in descending order. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ function orderBy(collection, iteratees, orders, guard) { if (collection == null) return []; if (!isArray(iteratees)) iteratees = iteratees == null ? [] : [iteratees]; orders = guard ? void 0 : orders; if (!isArray(orders)) orders = orders == null ? [] : [orders]; return baseOrderBy(collection, iteratees, orders); } module.exports = orderBy; } })); //#endregion } }; }); })();