bitboss-ui 2.0.4 → 2.0.5

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 (222) hide show
  1. package/dist/index105.js +5 -5
  2. package/dist/index113.js +1 -1
  3. package/dist/index115.js +4 -4
  4. package/dist/index117.js +1 -1
  5. package/dist/index12.js +1 -1
  6. package/dist/index121.js +1 -1
  7. package/dist/index122.js +1 -1
  8. package/dist/index123.js +1 -1
  9. package/dist/index125.js +1 -1
  10. package/dist/index127.js +2 -2
  11. package/dist/index14.js +3 -3
  12. package/dist/index16.js +2 -2
  13. package/dist/index18.js +14 -14
  14. package/dist/index197.js +81 -2
  15. package/dist/index197.js.map +1 -1
  16. package/dist/index198.js +3 -158
  17. package/dist/index198.js.map +1 -1
  18. package/dist/index199.js +5 -84
  19. package/dist/index199.js.map +1 -1
  20. package/dist/index20.js +15 -15
  21. package/dist/{index209.js → index200.js} +3 -3
  22. package/dist/{index209.js.map → index200.js.map} +1 -1
  23. package/dist/index201.js +16 -2
  24. package/dist/index201.js.map +1 -1
  25. package/dist/index202.js +19 -4
  26. package/dist/index202.js.map +1 -1
  27. package/dist/index203.js +19 -2
  28. package/dist/index203.js.map +1 -1
  29. package/dist/index204.js +27 -81
  30. package/dist/index204.js.map +1 -1
  31. package/dist/index205.js +3 -126
  32. package/dist/index205.js.map +1 -1
  33. package/dist/index206.js +2 -5
  34. package/dist/index206.js.map +1 -1
  35. package/dist/index207.js +8 -123
  36. package/dist/index207.js.map +1 -1
  37. package/dist/index208.js +249 -19
  38. package/dist/index208.js.map +1 -1
  39. package/dist/index210.js +51 -15
  40. package/dist/index210.js.map +1 -1
  41. package/dist/index211.js +37 -2
  42. package/dist/index211.js.map +1 -1
  43. package/dist/index212.js +5 -2
  44. package/dist/index212.js.map +1 -1
  45. package/dist/index213.js +41 -35
  46. package/dist/index213.js.map +1 -1
  47. package/dist/index214.js +2 -174
  48. package/dist/index214.js.map +1 -1
  49. package/dist/index215.js +4 -6
  50. package/dist/index215.js.map +1 -1
  51. package/dist/index216.js +2 -42
  52. package/dist/index216.js.map +1 -1
  53. package/dist/index217.js +5 -0
  54. package/dist/index217.js.map +1 -0
  55. package/dist/index218.js +41 -12
  56. package/dist/index218.js.map +1 -1
  57. package/dist/index22.js +5 -5
  58. package/dist/index220.js +13 -369
  59. package/dist/index220.js.map +1 -1
  60. package/dist/index221.js +158 -8
  61. package/dist/index221.js.map +1 -1
  62. package/dist/index222.js +84 -3
  63. package/dist/index222.js.map +1 -1
  64. package/dist/index224.js +3 -19
  65. package/dist/index224.js.map +1 -1
  66. package/dist/index225.js +34 -26
  67. package/dist/index225.js.map +1 -1
  68. package/dist/index226.js +6 -3
  69. package/dist/index226.js.map +1 -1
  70. package/dist/index227.js +7 -249
  71. package/dist/index227.js.map +1 -1
  72. package/dist/index228.js +129 -0
  73. package/dist/index228.js.map +1 -0
  74. package/dist/index229.js +122 -51
  75. package/dist/index229.js.map +1 -1
  76. package/dist/index230.js +2 -37
  77. package/dist/index230.js.map +1 -1
  78. package/dist/index231.js +174 -5
  79. package/dist/index231.js.map +1 -1
  80. package/dist/index232.js +5 -41
  81. package/dist/index232.js.map +1 -1
  82. package/dist/index233.js +369 -3
  83. package/dist/index233.js.map +1 -1
  84. package/dist/index234.js +3 -2
  85. package/dist/index234.js.map +1 -1
  86. package/dist/index235.js +18 -3
  87. package/dist/index235.js.map +1 -1
  88. package/dist/index236.js +105 -17
  89. package/dist/index236.js.map +1 -1
  90. package/dist/{index239.js → index238.js} +2 -2
  91. package/dist/{index239.js.map → index238.js.map} +1 -1
  92. package/dist/index24.js +1 -1
  93. package/dist/index240.js +5 -0
  94. package/dist/index240.js.map +1 -0
  95. package/dist/index243.js +224 -4
  96. package/dist/index243.js.map +1 -1
  97. package/dist/index244.js +281 -6
  98. package/dist/index244.js.map +1 -1
  99. package/dist/index245.js +6 -16
  100. package/dist/index245.js.map +1 -1
  101. package/dist/index246.js +2 -9
  102. package/dist/index246.js.map +1 -1
  103. package/dist/index247.js +2 -23
  104. package/dist/index247.js.map +1 -1
  105. package/dist/index248.js +2 -3
  106. package/dist/index248.js.map +1 -1
  107. package/dist/index249.js +2 -12
  108. package/dist/index249.js.map +1 -1
  109. package/dist/index250.js +2 -9
  110. package/dist/index250.js.map +1 -1
  111. package/dist/index251.js +2 -9
  112. package/dist/index251.js.map +1 -1
  113. package/dist/index252.js +3 -17
  114. package/dist/index252.js.map +1 -1
  115. package/dist/index253.js +2 -281
  116. package/dist/index253.js.map +1 -1
  117. package/dist/index254.js +2 -6
  118. package/dist/index254.js.map +1 -1
  119. package/dist/index255.js +2 -2
  120. package/dist/index256.js +28 -2
  121. package/dist/index256.js.map +1 -1
  122. package/dist/index257.js +22 -2
  123. package/dist/index257.js.map +1 -1
  124. package/dist/index259.js +7 -2
  125. package/dist/index259.js.map +1 -1
  126. package/dist/index26.js +3 -3
  127. package/dist/index260.js +4 -126
  128. package/dist/index260.js.map +1 -1
  129. package/dist/index261.js +7 -429
  130. package/dist/index261.js.map +1 -1
  131. package/dist/index262.js +23 -3
  132. package/dist/index262.js.map +1 -1
  133. package/dist/index263.js +6 -0
  134. package/dist/index263.js.map +1 -0
  135. package/dist/index265.js +5 -21
  136. package/dist/index265.js.map +1 -1
  137. package/dist/index266.js +19 -0
  138. package/dist/index266.js.map +1 -0
  139. package/dist/index268.js +3 -200
  140. package/dist/index268.js.map +1 -1
  141. package/dist/index269.js +11 -435
  142. package/dist/index269.js.map +1 -1
  143. package/dist/index270.js +7 -125
  144. package/dist/index270.js.map +1 -1
  145. package/dist/index271.js +9 -89
  146. package/dist/index271.js.map +1 -1
  147. package/dist/index272.js +17 -2
  148. package/dist/index272.js.map +1 -1
  149. package/dist/index273.js +431 -2
  150. package/dist/index273.js.map +1 -1
  151. package/dist/index274.js +89 -3
  152. package/dist/index274.js.map +1 -1
  153. package/dist/index275.js +2 -2
  154. package/dist/index275.js.map +1 -1
  155. package/dist/index276.js +69 -2
  156. package/dist/index276.js.map +1 -1
  157. package/dist/index277.js +5 -2
  158. package/dist/index277.js.map +1 -1
  159. package/dist/index278.js +197 -25
  160. package/dist/index278.js.map +1 -1
  161. package/dist/index279.js +2 -22
  162. package/dist/index279.js.map +1 -1
  163. package/dist/index28.js +2 -2
  164. package/dist/index280.js +129 -0
  165. package/dist/index280.js.map +1 -0
  166. package/dist/index281.js +22 -2
  167. package/dist/index281.js.map +1 -1
  168. package/dist/index283.js +434 -67
  169. package/dist/index283.js.map +1 -1
  170. package/dist/index284.js +121 -218
  171. package/dist/index284.js.map +1 -1
  172. package/dist/index285.js +1 -1
  173. package/dist/index286.js +1 -1
  174. package/dist/index287.js +1 -1
  175. package/dist/index290.js +7 -4
  176. package/dist/index290.js.map +1 -1
  177. package/dist/index291.js +19 -4
  178. package/dist/index291.js.map +1 -1
  179. package/dist/index292.js +6 -58
  180. package/dist/index292.js.map +1 -1
  181. package/dist/index293.js +4 -11
  182. package/dist/index293.js.map +1 -1
  183. package/dist/index294.js +4 -35
  184. package/dist/index294.js.map +1 -1
  185. package/dist/index295.js +58 -6
  186. package/dist/index295.js.map +1 -1
  187. package/dist/index296.js +34 -18
  188. package/dist/index296.js.map +1 -1
  189. package/dist/index297.js +10 -6
  190. package/dist/index297.js.map +1 -1
  191. package/dist/index298.js +1 -1
  192. package/dist/index30.js +2 -2
  193. package/dist/index32.js +3 -3
  194. package/dist/index34.js +13 -13
  195. package/dist/index36.js +4 -4
  196. package/dist/index38.js +2 -2
  197. package/dist/index40.js +2 -2
  198. package/dist/index42.js +6 -6
  199. package/dist/index44.js +2 -2
  200. package/dist/index46.js +2 -2
  201. package/dist/index52.js +1 -1
  202. package/dist/index54.js +1 -1
  203. package/dist/index70.js +4 -4
  204. package/dist/index74.js +2 -2
  205. package/dist/index76.js +1 -1
  206. package/dist/index79.js +2 -2
  207. package/dist/index83.js +3 -3
  208. package/dist/index85.js +1 -1
  209. package/dist/style.css +1 -1
  210. package/package.json +2 -2
  211. package/dist/index219.js +0 -8
  212. package/dist/index219.js.map +0 -1
  213. package/dist/index223.js +0 -10
  214. package/dist/index223.js.map +0 -1
  215. package/dist/index237.js +0 -109
  216. package/dist/index237.js.map +0 -1
  217. package/dist/index258.js +0 -5
  218. package/dist/index258.js.map +0 -1
  219. package/dist/index264.js +0 -10
  220. package/dist/index264.js.map +0 -1
  221. package/dist/index282.js +0 -8
  222. package/dist/index282.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -89,4 +89,4 @@
89
89
  "lint-staged": {
90
90
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
91
91
  }
92
- }
92
+ }
package/dist/index219.js DELETED
@@ -1,8 +0,0 @@
1
- import o from "./index265.js";
2
- /* empty css */
3
- import t from "./index264.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a647bc7"]]);
5
- export {
6
- m as default
7
- };
8
- //# sourceMappingURL=index219.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index219.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index223.js DELETED
@@ -1,10 +0,0 @@
1
- import { ref as e } from "vue";
2
- const o = e(0), s = () => {
3
- o.value++;
4
- }, a = () => {
5
- o.value--;
6
- }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
7
- export {
8
- d as useModalsState
9
- };
10
- //# sourceMappingURL=index223.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index223.js","sources":["../src/composables/useModalsState.ts"],"sourcesContent":["import { ref } from 'vue';\n\nconst openedModals = ref(0);\n\nconst modalHasOpened = () => {\n\topenedModals.value++;\n};\n\nconst modalHasClosed = () => {\n\topenedModals.value--;\n};\nexport const useModalsState = () => {\n\treturn { openedModals, modalHasOpened, modalHasClosed };\n};\n"],"names":["openedModals","ref","modalHasOpened","modalHasClosed","useModalsState"],"mappings":";AAEA,MAAMA,IAAeC,EAAI,CAAC,GAEpBC,IAAiB,MAAM;AACf,EAAAF,EAAA;AACd,GAEMG,IAAiB,MAAM;AACf,EAAAH,EAAA;AACd,GACaI,IAAiB,OACtB,EAAE,cAAAJ,GAAc,gBAAAE,GAAgB,gBAAAC;"}
package/dist/index237.js DELETED
@@ -1,109 +0,0 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index226.js";
3
- import { isNil as l } from "./index124.js";
4
- import E from "./index119.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: O({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": P((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
- }
105
- });
106
- export {
107
- K as default
108
- };
109
- //# sourceMappingURL=index237.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index237.js","sources":["../src/components/ChipsBox.vue"],"sourcesContent":["<template>\n\t<BbChip\n\t\tv-for=\"(item, index) in options\"\n\t\t:key=\"item.valueHash\"\n\t\t:class=\"{\n\t\t\t'bb-chipsbox-item': true,\n\t\t\t'bb-chipsbox-item--focused': index === focusedIndex,\n\t\t}\"\n\t\t:clearable=\"true\"\n\t\t:text=\"item.text\"\n\t\t@click:clear.stop=\"emit('option:unselected', item)\"\n\t\t>{{ item.text }}</BbChip\n\t>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { hash } from '@/utilities/functions/hash';\nimport { isNil } from '@/utilities/functions/isNil';\nimport { ref } from 'vue';\nimport { watch } from 'vue';\nimport BbChip from './BbChip/BbChip.vue';\nimport type { Option } from '@/types/Option';\n\ntype Props = {\n\toptions: Option[];\n};\nconst props = defineProps<Props>();\n\nconst emit = defineEmits<{\n\t(e: 'option:unselected', option: Option): void;\n}>();\n\n/**\n * START FOCUS HANDLING\n */\n\nconst focusedIndex = ref<null | number>(null);\n\nconst canFocus = computed(() => props.options.some((o) => !o.disabled));\n\nconst findNextAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? -1 : focusedIndex.value!;\n\tlet newIndex = (initialValue + offset) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findNextAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\n\nconst focusNext = () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findNextAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\nconst findPreviousAvailableIndex = (offset = 1) => {\n\tconst initialValue = isNil(focusedIndex.value) ? 0 : focusedIndex.value!;\n\tlet newIndex =\n\t\t(initialValue - offset + props.options.length) % props.options.length;\n\twhile (props.options[newIndex].disabled && newIndex !== initialValue) {\n\t\tnewIndex = findPreviousAvailableIndex(offset + 1);\n\t}\n\treturn newIndex;\n};\nconst focusPrevious = async () => {\n\tif (!canFocus.value) return;\n\tconst newIndex = findPreviousAvailableIndex();\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusFirst = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (props.options[newIndex].disabled) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusLast = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].disabled && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusFirstSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = 0;\n\twhile (\n\t\t!props.options[newIndex].selected &&\n\t\tprops.options.length !== newIndex\n\t) {\n\t\tnewIndex++;\n\t}\n\tfocusedIndex.value = newIndex;\n};\nconst focusLastSelected = () => {\n\tif (!canFocus.value) return;\n\tlet newIndex = props.options.length - 1;\n\twhile (props.options[newIndex].selected && newIndex !== 0) {\n\t\tnewIndex--;\n\t}\n\tfocusedIndex.value = newIndex;\n};\n\nconst focusByHash = (hash: Option['valueHash']) => {\n\tif (!canFocus.value) return;\n\tconst linkedOptionIndex = props.options.findIndex(\n\t\t(o) => o.valueHash === hash\n\t);\n\tif (linkedOptionIndex >= 0) {\n\t\tfocusedIndex.value = linkedOptionIndex;\n\t}\n};\n\nconst blur = () => {\n\tfocusedIndex.value = null;\n};\n\n/**\n * END FOCUS HANDLING\n */\n\nconst confirmOption = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\tif (option.selected) {\n\t\temit('option:unselected', option);\n\t}\n};\n\nconst getHighlighted = () => {\n\tif (isNil(focusedIndex.value)) return;\n\tconst option = props.options[focusedIndex.value!];\n\treturn option;\n};\n\nwatch(\n\t() => props.options,\n\t(value, previous) => {\n\t\tif (hash(value) !== hash(previous)) {\n\t\t\tblur();\n\t\t}\n\t},\n\t{\n\t\tflush: 'post',\n\t}\n);\n\ndefineExpose({\n\tfocusNext,\n\tfocusPrevious,\n\tfocusFirst,\n\tfocusFirstSelected,\n\tfocusLast,\n\tfocusLastSelected,\n\tblur,\n\tconfirmOption,\n\tfocusByHash,\n\tgetHighlighted,\n});\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/ChipsBox';\n</style>\n"],"names":["props","__props","emit","__emit","focusedIndex","ref","canFocus","computed","o","findNextAvailableIndex","offset","initialValue","isNil","newIndex","focusNext","findPreviousAvailableIndex","focusPrevious","focusFirst","focusLast","focusFirstSelected","focusLastSelected","focusByHash","hash","linkedOptionIndex","blur","confirmOption","option","getHighlighted","watch","value","previous","__expose"],"mappings":"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"}
package/dist/index258.js DELETED
@@ -1,5 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
5
- //# sourceMappingURL=index258.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index258.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index264.js DELETED
@@ -1,10 +0,0 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
7
- export {
8
- s as default
9
- };
10
- //# sourceMappingURL=index264.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index264.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/index282.js DELETED
@@ -1,8 +0,0 @@
1
- const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
2
- f(r, u),
3
- ...o(r[n], n, f, f(r, u))
4
- ] : [f(r, u)]).flat();
5
- export {
6
- o as flattenTree
7
- };
8
- //# sourceMappingURL=index282.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index282.js","sources":["../src/utilities/functions/flattenTree.ts"],"sourcesContent":["export const flattenTree = <T extends Record<string, any>, U>(\n\titems: T[],\n\tkeyName: keyof T,\n\tmapper: (item: T, parent?: U) => U = (x: any) => x,\n\tparent?: ReturnType<typeof mapper>\n): ReturnType<typeof mapper>[] => {\n\treturn items\n\t\t.map((item) => {\n\t\t\tif (Array.isArray(item[keyName])) {\n\t\t\t\treturn [\n\t\t\t\t\tmapper(item, parent),\n\t\t\t\t\t...flattenTree(item[keyName], keyName, mapper, mapper(item, parent)),\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn [mapper(item, parent)];\n\t\t})\n\t\t.flat();\n};\n"],"names":["flattenTree","items","keyName","mapper","x","parent","item"],"mappings":"AAAa,MAAAA,IAAc,CAC1BC,GACAC,GACAC,IAAqC,CAACC,MAAWA,GACjDC,MAEOJ,EACL,IAAI,CAACK,MACD,MAAM,QAAQA,EAAKJ,CAAO,CAAC,IACvB;AAAA,EACNC,EAAOG,GAAMD,CAAM;AAAA,EACnB,GAAGL,EAAYM,EAAKJ,CAAO,GAAGA,GAASC,GAAQA,EAAOG,GAAMD,CAAM,CAAC;AAAA,IAG9D,CAACF,EAAOG,GAAMD,CAAM,CAAC,CAC5B,EACA,KAAK;"}