bitboss-ui 0.2.23 → 0.2.24

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.
Files changed (134) hide show
  1. package/dist/composables/useConfirm.d.ts +9 -9
  2. package/dist/index101.js +3 -3
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +2 -2
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index131.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +9 -9
  17. package/dist/index19.js +2 -2
  18. package/dist/index196.js +2 -378
  19. package/dist/index196.js.map +1 -1
  20. package/dist/index197.js +4 -134
  21. package/dist/index197.js.map +1 -1
  22. package/dist/index198.js +2 -5
  23. package/dist/index198.js.map +1 -1
  24. package/dist/index199.js +5 -19
  25. package/dist/index199.js.map +1 -1
  26. package/dist/index200.js +16 -2
  27. package/dist/index200.js.map +1 -1
  28. package/dist/index201.js +16 -2
  29. package/dist/index201.js.map +1 -1
  30. package/dist/index202.js +17 -172
  31. package/dist/index202.js.map +1 -1
  32. package/dist/index203.js +20 -23
  33. package/dist/index203.js.map +1 -1
  34. package/dist/index204.js +27 -371
  35. package/dist/index204.js.map +1 -1
  36. package/dist/index205.js +8 -16
  37. package/dist/index205.js.map +1 -1
  38. package/dist/index206.js +2 -16
  39. package/dist/index206.js.map +1 -1
  40. package/dist/index207.js +3 -20
  41. package/dist/index207.js.map +1 -1
  42. package/dist/index208.js +3 -29
  43. package/dist/index208.js.map +1 -1
  44. package/dist/index209.js +378 -8
  45. package/dist/index209.js.map +1 -1
  46. package/dist/index21.js +2 -2
  47. package/dist/index210.js +134 -3
  48. package/dist/index210.js.map +1 -1
  49. package/dist/index211.js +2 -3
  50. package/dist/index211.js.map +1 -1
  51. package/dist/index212.js +174 -2
  52. package/dist/index212.js.map +1 -1
  53. package/dist/index213.js +23 -4
  54. package/dist/index213.js.map +1 -1
  55. package/dist/index214.js +373 -2
  56. package/dist/index214.js.map +1 -1
  57. package/dist/index215.js +2 -235
  58. package/dist/index215.js.map +1 -1
  59. package/dist/index216.js +3 -2
  60. package/dist/index216.js.map +1 -1
  61. package/dist/index217.js +35 -2
  62. package/dist/index217.js.map +1 -1
  63. package/dist/index219.js +233 -8
  64. package/dist/index219.js.map +1 -1
  65. package/dist/index220.js +10 -3
  66. package/dist/index220.js.map +1 -1
  67. package/dist/index221.js +2 -35
  68. package/dist/index221.js.map +1 -1
  69. package/dist/index222.js +78 -8
  70. package/dist/index222.js.map +1 -1
  71. package/dist/index223.js +4 -4
  72. package/dist/index224.js +8 -27
  73. package/dist/index224.js.map +1 -1
  74. package/dist/index225.js +27 -12
  75. package/dist/index225.js.map +1 -1
  76. package/dist/index226.js +13 -79
  77. package/dist/index226.js.map +1 -1
  78. package/dist/index227.js +4 -6
  79. package/dist/index227.js.map +1 -1
  80. package/dist/index228.js +2 -2
  81. package/dist/index228.js.map +1 -1
  82. package/dist/index229.js +223 -294
  83. package/dist/index229.js.map +1 -1
  84. package/dist/index23.js +1 -1
  85. package/dist/index230.js +258 -2
  86. package/dist/index230.js.map +1 -1
  87. package/dist/index231.js +295 -2
  88. package/dist/index231.js.map +1 -1
  89. package/dist/index232.js +5 -116
  90. package/dist/index232.js.map +1 -1
  91. package/dist/index233.js +2 -106
  92. package/dist/index233.js.map +1 -1
  93. package/dist/index238.js +2 -224
  94. package/dist/index238.js.map +1 -1
  95. package/dist/index239.js +2 -258
  96. package/dist/index239.js.map +1 -1
  97. package/dist/index240.js +117 -2
  98. package/dist/index240.js.map +1 -1
  99. package/dist/index241.js +106 -4
  100. package/dist/index241.js.map +1 -1
  101. package/dist/index242.js +1 -1
  102. package/dist/index244.js +433 -67
  103. package/dist/index244.js.map +1 -1
  104. package/dist/index245.js +89 -2
  105. package/dist/index245.js.map +1 -1
  106. package/dist/index246.js +67 -433
  107. package/dist/index246.js.map +1 -1
  108. package/dist/index247.js +197 -86
  109. package/dist/index247.js.map +1 -1
  110. package/dist/index248.js +2 -200
  111. package/dist/index248.js.map +1 -1
  112. package/dist/index249.js +1 -1
  113. package/dist/index25.js +2 -2
  114. package/dist/index254.js +3 -2
  115. package/dist/index254.js.map +1 -1
  116. package/dist/index255.js +2 -3
  117. package/dist/index255.js.map +1 -1
  118. package/dist/index29.js +3 -3
  119. package/dist/index3.js +31 -28
  120. package/dist/index3.js.map +1 -1
  121. package/dist/index31.js +5 -5
  122. package/dist/index33.js +2 -2
  123. package/dist/index35.js +2 -2
  124. package/dist/index47.js +1 -1
  125. package/dist/index49.js +1 -1
  126. package/dist/index65.js +4 -4
  127. package/dist/index69.js +2 -2
  128. package/dist/index72.js +1 -1
  129. package/dist/index75.js +1 -1
  130. package/dist/index77.js +1 -1
  131. package/dist/index79.js +3 -3
  132. package/dist/index81.js +1 -1
  133. package/dist/style.css +1 -1
  134. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index225.js","sources":["../src/utilities/functions/findInTree.ts"],"sourcesContent":["/**\n * Find the eleemnt for which iteratee rfeturns true in a tree like structure\n */\nexport const findInTree = <T extends Record<string, any>>(\n items: T[],\n keyName: keyof T,\n iteratee: (item: T) => boolean\n): null | T => {\n return items.reduce((acc: null | T, curr) => {\n if (acc) return acc;\n if (iteratee(curr)) {\n return curr;\n }\n\n if (keyName in curr) {\n let fromChildren = findInTree([].concat(curr[keyName]), keyName, iteratee);\n if (fromChildren) {\n return fromChildren;\n }\n }\n return acc;\n }, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACxBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AACvC,MAAAD;AAAY,WAAAA;AACZ,MAAAD,EAASE,CAAI;AACR,WAAAA;AAGT,MAAIH,KAAWG,GAAM;AACf,QAAAC,IAAeN,EAAW,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC,GAAGA,GAASC,CAAQ;AACzE,QAAIG;AACK,aAAAA;AAAA,EAEX;AACO,SAAAF;GACN,IAAI;"}
1
+ {"version":3,"file":"index225.js","sources":["../node_modules/mime/index.js"],"sourcesContent":["'use strict';\n\nlet Mime = require('./Mime');\nmodule.exports = new Mime(require('./types/standard'), require('./types/other'));\n"],"names":["Mime","require$$0","mime","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,IAAIA,IAAOC;AACX,IAAAC,IAAiB,IAAIF,EAAKG,GAA6BC,CAAwB;;;;;","x_google_ignoreList":[0]}
package/dist/index226.js CHANGED
@@ -1,82 +1,16 @@
1
- import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index227.js";
2
- var M = "Expected a function", S = 0 / 0, N = "[object Symbol]", W = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof g == "object" && g && g.Object === Object && g, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, T = function() {
3
- return P.Date.now();
4
- };
5
- function z(e, t, i) {
6
- var a, u, l, c, r, f, s = 0, x = !1, d = !1, y = !0;
7
- if (typeof e != "function")
8
- throw new TypeError(M);
9
- t = E(t) || 0, v(i) && (x = !!i.leading, d = "maxWait" in i, l = d ? X(E(i.maxWait) || 0, t) : l, y = "trailing" in i ? !!i.trailing : y);
10
- function p(n) {
11
- var o = a, m = u;
12
- return a = u = void 0, s = n, c = e.apply(m, o), c;
13
- }
14
- function k(n) {
15
- return s = n, r = setTimeout(b, t), x ? p(n) : c;
16
- }
17
- function C(n) {
18
- var o = n - f, m = n - s, h = t - o;
19
- return d ? q(h, l - m) : h;
20
- }
21
- function I(n) {
22
- var o = n - f, m = n - s;
23
- return f === void 0 || o >= t || o < 0 || d && m >= l;
24
- }
25
- function b() {
26
- var n = T();
27
- if (I(n))
28
- return O(n);
29
- r = setTimeout(b, C(n));
30
- }
31
- function O(n) {
32
- return r = void 0, y && a ? p(n) : (a = u = void 0, c);
33
- }
34
- function L() {
35
- r !== void 0 && clearTimeout(r), s = 0, a = f = u = r = void 0;
36
- }
37
- function $() {
38
- return r === void 0 ? c : O(T());
39
- }
40
- function j() {
41
- var n = T(), o = I(n);
42
- if (a = arguments, u = this, f = n, o) {
43
- if (r === void 0)
44
- return k(f);
45
- if (d)
46
- return r = setTimeout(b, t), p(f);
47
- }
48
- return r === void 0 && (r = setTimeout(b, t)), c;
49
- }
50
- return j.cancel = L, j.flush = $, j;
51
- }
52
- function v(e) {
53
- var t = typeof e;
54
- return !!e && (t == "object" || t == "function");
55
- }
56
- function J(e) {
57
- return !!e && typeof e == "object";
58
- }
59
- function K(e) {
60
- return typeof e == "symbol" || J(e) && U.call(e) == N;
61
- }
62
- function E(e) {
63
- if (typeof e == "number")
64
- return e;
65
- if (K(e))
66
- return S;
67
- if (v(e)) {
68
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
69
- e = v(t) ? t + "" : t;
70
- }
71
- if (typeof e != "string")
72
- return e === 0 ? e : +e;
73
- e = e.replace(W, "");
74
- var i = B.test(e);
75
- return i || R.test(e) ? _(e.slice(2), i ? 2 : 8) : A.test(e) ? S : +e;
76
- }
77
- var Q = z;
78
- const Y = /* @__PURE__ */ F(Q);
1
+ const l = (e, r, f) => e.reduce((t, n) => {
2
+ if (t)
3
+ return t;
4
+ if (f(n))
5
+ return n;
6
+ if (r in n) {
7
+ let i = l([].concat(n[r]), r, f);
8
+ if (i)
9
+ return i;
10
+ }
11
+ return t;
12
+ }, null);
79
13
  export {
80
- Y as default
14
+ l as findInTree
81
15
  };
82
16
  //# sourceMappingURL=index226.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index226.js","sources":["../node_modules/lodash.debounce/index.js"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n"],"names":["FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","freeGlobal","global","freeSelf","root","objectProto","objectToString","nativeMax","nativeMin","now","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","toNumber","isObject","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","value","type","isObjectLike","isSymbol","other","isBinary","lodash_debounce"],"mappings":";AAUA,IAAIA,IAAkB,uBAGlBC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C,EAAaF,GAAO;AAC3B,SAAO,CAAC,CAACA,KAAS,OAAOA,KAAS;AACpC;AAmBA,SAASG,EAASH,GAAO;AACvB,SAAO,OAAOA,KAAS,YACpBE,EAAaF,CAAK,KAAKnC,EAAe,KAAKmC,CAAK,KAAK9C;AAC1D;AAyBA,SAAS6B,EAASiB,GAAO;AACvB,MAAI,OAAOA,KAAS;AAClB,WAAOA;AAET,MAAIG,EAASH,CAAK;AAChB,WAAO/C;AAET,MAAI+B,EAASgB,CAAK,GAAG;AACnB,QAAII,IAAQ,OAAOJ,EAAM,WAAW,aAAaA,EAAM,QAAS,IAAGA;AACnE,IAAAA,IAAQhB,EAASoB,CAAK,IAAKA,IAAQ,KAAMA;AAAA,EAC1C;AACD,MAAI,OAAOJ,KAAS;AAClB,WAAOA,MAAU,IAAIA,IAAQ,CAACA;AAEhC,EAAAA,IAAQA,EAAM,QAAQ7C,GAAQ,EAAE;AAChC,MAAIkD,IAAWhD,EAAW,KAAK2C,CAAK;AACpC,SAAQK,KAAY/C,EAAU,KAAK0C,CAAK,IACpCzC,EAAayC,EAAM,MAAM,CAAC,GAAGK,IAAW,IAAI,CAAC,IAC5CjD,EAAW,KAAK4C,CAAK,IAAI/C,IAAM,CAAC+C;AACvC;AAEA,IAAAM,IAAiBrC;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index226.js","sources":["../src/utilities/functions/findInTree.ts"],"sourcesContent":["/**\n * Find the eleemnt for which iteratee rfeturns true in a tree like structure\n */\nexport const findInTree = <T extends Record<string, any>>(\n items: T[],\n keyName: keyof T,\n iteratee: (item: T) => boolean\n): null | T => {\n return items.reduce((acc: null | T, curr) => {\n if (acc) return acc;\n if (iteratee(curr)) {\n return curr;\n }\n\n if (keyName in curr) {\n let fromChildren = findInTree([].concat(curr[keyName]), keyName, iteratee);\n if (fromChildren) {\n return fromChildren;\n }\n }\n return acc;\n }, null);\n};\n"],"names":["findInTree","items","keyName","iteratee","acc","curr","fromChildren"],"mappings":"AAGO,MAAMA,IAAa,CACxBC,GACAC,GACAC,MAEOF,EAAM,OAAO,CAACG,GAAeC,MAAS;AACvC,MAAAD;AAAY,WAAAA;AACZ,MAAAD,EAASE,CAAI;AACR,WAAAA;AAGT,MAAIH,KAAWG,GAAM;AACf,QAAAC,IAAeN,EAAW,CAAA,EAAG,OAAOK,EAAKH,CAAO,CAAC,GAAGA,GAASC,CAAQ;AACzE,QAAIG;AACK,aAAAA;AAAA,EAEX;AACO,SAAAF;GACN,IAAI;"}
package/dist/index227.js CHANGED
@@ -1,9 +1,7 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
1
+ const e = function(t) {
2
+ return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
+ };
5
4
  export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
5
+ e as curry
8
6
  };
9
7
  //# sourceMappingURL=index227.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index227.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index227.js","sources":["../src/utilities/functions/curry.ts"],"sourcesContent":["export type Curried<A extends any[], R> =\n <P extends Partial<A>>(...args: P) => P extends A ? R :\n A extends [...SameLength<P>, ...infer S] ? S extends any[] ? Curried<S, R>\n : never : never;\n\ntype SameLength<T extends any[]> = Extract<{ [K in keyof T]: any }, any[]>\n\nexport const curry = function<A extends any[], R>(fn: (...args: A) => R): Curried<A, R> {\n return (...args: any[]): any =>\n args.length >= fn.length ? fn(...args as any) : curry((fn as any).bind(undefined, ...args));\n }"],"names":["curry","fn","args"],"mappings":"AAOa,MAAAA,IAAQ,SAA6BC,GAAsC;AACpF,SAAO,IAAIC,MACTA,EAAK,UAAUD,EAAG,SAASA,EAAG,GAAGC,CAAW,IAAIF,EAAOC,EAAW,KAAK,QAAW,GAAGC,CAAI,CAAC;AAC9F;"}
package/dist/index228.js CHANGED
@@ -1,5 +1,5 @@
1
- var o = { exports: {} };
1
+ const t = (d, o) => +d + +o;
2
2
  export {
3
- o as __module
3
+ t as add
4
4
  };
5
5
  //# sourceMappingURL=index228.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index228.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index228.js","sources":["../src/utilities/functions/add.ts"],"sourcesContent":["export const add = (a:number | string, b: number | string) => +a + +b;"],"names":["add","a","b"],"mappings":"AAAO,MAAMA,IAAM,CAACC,GAAmBC,MAAuB,CAACD,IAAI,CAACC;"}