You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
98 KiB
1 line
98 KiB
4 years ago
|
var collect=function(t){var r={};function s(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=t,s.c=r,s.d=function(e,n,t){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(n,e){if(1&e&&(n=s(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)s.d(t,r,function(e){return n[e]}.bind(null,r));return t},s.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="",s(s.s="./dist/index.js")}({"./dist/helpers/clone.js":function(module,exports,__webpack_require__){"use strict";eval("\n\n/**\n * Clone helper\n *\n * Clone an array or object\n *\n * @param items\n * @returns {*}\n */\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function clone(items) {\n var cloned = void 0;\n\n if (Array.isArray(items)) {\n var _cloned;\n\n cloned = [];\n\n (_cloned = cloned).push.apply(_cloned, _toConsumableArray(items));\n } else {\n cloned = {};\n\n Object.keys(items).forEach(function (prop) {\n cloned[prop] = items[prop];\n });\n }\n\n return cloned;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/clone.js?")},"./dist/helpers/is.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = {\n /**\n * @returns {boolean}\n */\n isArray: function isArray(item) {\n return Array.isArray(item);\n },\n\n /**\n * @returns {boolean}\n */\n isObject: function isObject(item) {\n return (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && Array.isArray(item) === false && item !== null;\n },\n\n /**\n * @returns {boolean}\n */\n isFunction: function isFunction(item) {\n return typeof item === 'function';\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/is.js?")},"./dist/helpers/nestedValue.js":function(module,exports,__webpack_require__){"use strict";eval("\n\n/**\n * Get value of a nested property\n *\n * @param mainObject\n * @param key\n * @returns {*}\n */\n\nmodule.exports = function nestedValue(mainObject, key) {\n try {\n return key.split('.').reduce(function (obj, property) {\n return obj[property];\n }, mainObject);\n } catch (err) {\n // If we end up here, we're not working with an object, and @var mainObject is the value itself\n return mainObject;\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/nestedValue.js?")},"./dist/helpers/values.js":function(module,exports,__webpack_require__){"use strict";eval("\n\n\n/**\n * Values helper\n *\n * Retrieve values from [this.items] when it is an array, object or Collection\n *\n * @returns {*}\n * @param items\n */\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nmodule.exports = function values(items) {\n var valuesArray = [];\n\n if (Array.isArray(items)) {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items));\n } else if (items.constructor.name === 'Collection') {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items.all()));\n } else {\n Object.keys(items).forEach(function (
|