bitboss-ui 0.2.13 → 0.2.15

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 (141) hide show
  1. package/dist/composables/useWizard.d.ts +21 -21
  2. package/dist/index101.js +3 -3
  3. package/dist/index103.js +2 -2
  4. package/dist/index109.js +1 -1
  5. package/dist/index11.js +2 -2
  6. package/dist/index111.js +2 -2
  7. package/dist/index113.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index119.js +1 -1
  10. package/dist/index121.js +1 -1
  11. package/dist/index125.js +1 -1
  12. package/dist/index126.js +1 -1
  13. package/dist/index127.js +1 -1
  14. package/dist/index131.js +2 -2
  15. package/dist/index15.js +7 -7
  16. package/dist/index17.js +8 -8
  17. package/dist/index196.js +2 -2
  18. package/dist/index196.js.map +1 -1
  19. package/dist/index197.js +378 -4
  20. package/dist/index197.js.map +1 -1
  21. package/dist/index198.js +133 -234
  22. package/dist/index198.js.map +1 -1
  23. package/dist/index199.js +295 -5
  24. package/dist/index199.js.map +1 -1
  25. package/dist/index200.js +18 -15
  26. package/dist/index200.js.map +1 -1
  27. package/dist/index201.js +2 -16
  28. package/dist/index201.js.map +1 -1
  29. package/dist/index202.js +2 -19
  30. package/dist/index202.js.map +1 -1
  31. package/dist/index203.js +172 -18
  32. package/dist/index203.js.map +1 -1
  33. package/dist/index204.js +23 -29
  34. package/dist/index204.js.map +1 -1
  35. package/dist/index205.js +373 -8
  36. package/dist/index205.js.map +1 -1
  37. package/dist/index206.js +2 -2
  38. package/dist/index206.js.map +1 -1
  39. package/dist/index207.js +4 -2
  40. package/dist/index207.js.map +1 -1
  41. package/dist/index208.js +8 -376
  42. package/dist/index208.js.map +1 -1
  43. package/dist/index209.js +13 -131
  44. package/dist/index209.js.map +1 -1
  45. package/dist/index210.js +16 -2
  46. package/dist/index210.js.map +1 -1
  47. package/dist/index211.js +18 -172
  48. package/dist/index211.js.map +1 -1
  49. package/dist/index212.js +29 -23
  50. package/dist/index212.js.map +1 -1
  51. package/dist/index213.js +8 -373
  52. package/dist/index213.js.map +1 -1
  53. package/dist/index214.js +1 -1
  54. package/dist/index215.js +2 -2
  55. package/dist/index217.js +233 -8
  56. package/dist/index217.js.map +1 -1
  57. package/dist/index218.js +1 -1
  58. package/dist/index219.js +1 -1
  59. package/dist/index220.js +2 -2
  60. package/dist/index220.js.map +1 -1
  61. package/dist/index221.js +2 -2
  62. package/dist/index221.js.map +1 -1
  63. package/dist/index222.js +8 -27
  64. package/dist/index222.js.map +1 -1
  65. package/dist/index223.js +120 -12
  66. package/dist/index223.js.map +1 -1
  67. package/dist/index224.js +27 -8
  68. package/dist/index224.js.map +1 -1
  69. package/dist/index225.js +12 -120
  70. package/dist/index225.js.map +1 -1
  71. package/dist/index226.js +1 -1
  72. package/dist/index227.js +6 -4
  73. package/dist/index227.js.map +1 -1
  74. package/dist/index228.js +2 -2
  75. package/dist/index228.js.map +1 -1
  76. package/dist/index229.js +2 -6
  77. package/dist/index229.js.map +1 -1
  78. package/dist/index23.js +1 -1
  79. package/dist/index230.js +2 -2
  80. package/dist/index231.js +116 -294
  81. package/dist/index231.js.map +1 -1
  82. package/dist/index232.js +106 -2
  83. package/dist/index232.js.map +1 -1
  84. package/dist/index233.js +4 -2
  85. package/dist/index233.js.map +1 -1
  86. package/dist/index234.js +2 -117
  87. package/dist/index234.js.map +1 -1
  88. package/dist/index235.js +2 -106
  89. package/dist/index235.js.map +1 -1
  90. package/dist/index238.js +435 -2
  91. package/dist/index238.js.map +1 -1
  92. package/dist/index239.js +89 -2
  93. package/dist/index239.js.map +1 -1
  94. package/dist/index240.js +197 -159
  95. package/dist/index240.js.map +1 -1
  96. package/dist/index241.js +2 -2
  97. package/dist/index241.js.map +1 -1
  98. package/dist/index242.js +224 -2
  99. package/dist/index242.js.map +1 -1
  100. package/dist/index243.js +257 -68
  101. package/dist/index243.js.map +1 -1
  102. package/dist/index244.js +2 -2
  103. package/dist/index244.js.map +1 -1
  104. package/dist/index245.js +69 -224
  105. package/dist/index245.js.map +1 -1
  106. package/dist/index246.js +12 -255
  107. package/dist/index246.js.map +1 -1
  108. package/dist/index247.js +153 -426
  109. package/dist/index247.js.map +1 -1
  110. package/dist/index248.js +2 -89
  111. package/dist/index248.js.map +1 -1
  112. package/dist/index249.js +33 -195
  113. package/dist/index249.js.map +1 -1
  114. package/dist/index25.js +2 -2
  115. package/dist/index250.js +2 -38
  116. package/dist/index250.js.map +1 -1
  117. package/dist/index251.js +2 -2
  118. package/dist/index251.js.map +1 -1
  119. package/dist/index252.js +2 -2
  120. package/dist/index252.js.map +1 -1
  121. package/dist/index253.js +2 -15
  122. package/dist/index253.js.map +1 -1
  123. package/dist/index254.js +2 -2
  124. package/dist/index255.js +2 -2
  125. package/dist/index255.js.map +1 -1
  126. package/dist/index29.js +3 -3
  127. package/dist/index31.js +5 -5
  128. package/dist/index33.js +2 -2
  129. package/dist/index35.js +2 -2
  130. package/dist/index47.js +1 -1
  131. package/dist/index49.js +1 -1
  132. package/dist/index65.js +5 -5
  133. package/dist/index69.js +2 -2
  134. package/dist/index79.js +3 -3
  135. package/dist/index8.js +85 -104
  136. package/dist/index8.js.map +1 -1
  137. package/dist/index81.js +1 -1
  138. package/dist/style.css +1 -1
  139. package/package.json +1 -1
  140. package/dist/index256.js +0 -5
  141. package/dist/index256.js.map +0 -1
@@ -17,7 +17,7 @@ export type Step<U> = {
17
17
  condition?: (state: U) => boolean;
18
18
  [key: string]: any;
19
19
  };
20
- export type WizardState<T extends Record<string, any>> = Pick<ReturnType<typeof useWizard<T>>, "data" | "goToNext" | "goToPrevious" | "current" | "steps" | "at" | "get" | "goBackTo" | "isAfter" | "isBefore" | "isCurrent" | "isFirst" | "isLast" | "isNext" | "isPrevious" | "next" | "previous" | "stepNames">;
20
+ export type WizardState<T extends Record<string, any>> = ReturnType<typeof useWizard<T>>;
21
21
  export declare const useWizard: <T extends object>(params: {
22
22
  /**
23
23
  * The steps definition for the wizard
@@ -45,26 +45,6 @@ export declare const useWizard: <T extends object>(params: {
45
45
  */
46
46
  persist?: boolean | undefined;
47
47
  }) => {
48
- steps: Readonly<import("vue").Ref<{
49
- [x: string]: {
50
- isValid: boolean;
51
- /**
52
- * Function that accepts a state object and returns a boolean.
53
- * When step are accessed at the end of the pipeline the result
54
- * is provided so you don't have to run the function yourself.
55
- * Steps that do not pass the condition are removed.
56
- */
57
- condition?: ((state: T) => boolean) | undefined;
58
- };
59
- }>>;
60
- current: ComputedRef<Step<T> & {
61
- isValid: boolean;
62
- }>;
63
- goToNext: () => void;
64
- goToPrevious: () => void;
65
- goTo: (step: string) => void;
66
- key: ComputedRef<string>;
67
- data: import("vue").UnwrapNestedRefs<T>;
68
48
  at: (index: number) => {
69
49
  isValid: boolean;
70
50
  /**
@@ -75,6 +55,10 @@ export declare const useWizard: <T extends object>(params: {
75
55
  */
76
56
  condition?: ((state: T) => boolean) | undefined;
77
57
  } | undefined;
58
+ current: ComputedRef<Step<T> & {
59
+ isValid: boolean;
60
+ }>;
61
+ data: import("vue").UnwrapNestedRefs<T>;
78
62
  get: (step: string) => {
79
63
  isValid: boolean;
80
64
  /**
@@ -86,6 +70,9 @@ export declare const useWizard: <T extends object>(params: {
86
70
  condition?: ((state: T) => boolean) | undefined;
87
71
  } | undefined;
88
72
  goBackTo: (step: string) => void;
73
+ goTo: (step: string) => void;
74
+ goToNext: () => void;
75
+ goToPrevious: () => void;
89
76
  isAfter: (step: string) => boolean;
90
77
  isBefore: (step: string) => boolean;
91
78
  isCurrent: (step: string) => boolean;
@@ -93,7 +80,20 @@ export declare const useWizard: <T extends object>(params: {
93
80
  isLast: ComputedRef<boolean>;
94
81
  isNext: (step: string) => boolean;
95
82
  isPrevious: (step: string) => boolean;
83
+ key: ComputedRef<string>;
96
84
  next: ComputedRef<string | undefined>;
97
85
  previous: ComputedRef<string | undefined>;
98
86
  stepNames: Readonly<import("vue").Ref<string[]>>;
87
+ steps: Readonly<import("vue").Ref<{
88
+ [x: string]: {
89
+ isValid: boolean;
90
+ /**
91
+ * Function that accepts a state object and returns a boolean.
92
+ * When step are accessed at the end of the pipeline the result
93
+ * is provided so you don't have to run the function yourself.
94
+ * Steps that do not pass the condition are removed.
95
+ */
96
+ condition?: ((state: T) => boolean) | undefined;
97
+ };
98
+ }>>;
99
99
  };
package/dist/index101.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, ref as O, computed as p, onMounted as de, watch as q, openBlock as c, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as pe, mergeProps as fe } from "vue";
2
- import { add as me } from "./index228.js";
3
- import { clamp as ye } from "./index207.js";
2
+ import { add as me } from "./index241.js";
3
+ import { clamp as ye } from "./index196.js";
4
4
  import { deepEqual as he } from "./index123.js";
5
5
  import { isNil as j } from "./index120.js";
6
6
  import { isNotNil as _e } from "./index124.js";
7
7
  import { useId as ke } from "./index7.js";
8
8
  import { useItemValue as ge } from "./index126.js";
9
- import { when as ve } from "./index197.js";
9
+ import { when as ve } from "./index207.js";
10
10
  import G from "./index11.js";
11
11
  import "./index12.js";
12
12
  import Ce from "./index25.js";
package/dist/index103.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as m, openBlock as c, createBlock as b, withCtx as a, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as h, mergeProps as y } from "vue";
2
2
  import f from "./index21.js";
3
3
  import "./index22.js";
4
- import v from "./index240.js";
5
- import "./index241.js";
4
+ import v from "./index247.js";
5
+ import "./index248.js";
6
6
  const w = /* @__PURE__ */ m({
7
7
  __name: "BbTag",
8
8
  props: {
package/dist/index109.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index5.js";
3
- import B from "./index243.js";
3
+ import B from "./index245.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index11.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as B, ref as h, computed as n, watch as L, openBlock as c, createElementBlock as i, normalizeClass as E, normalizeProps as p, mergeProps as d, createCommentVNode as I, createElementVNode as l, renderSlot as F, guardReactiveProps as M } from "vue";
2
- import { isCssColor as f } from "./index196.js";
3
- import { when as N } from "./index197.js";
2
+ import { isCssColor as f } from "./index206.js";
3
+ import { when as N } from "./index207.js";
4
4
  const A = {
5
5
  class: "bb-base-checkbox-container",
6
6
  "aria-hidden": "true"
package/dist/index111.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as A, ref as o, computed as E, openBlock as b, createElementBlock as $, mergeProps as D, createElementVNode as i, renderSlot as L, normalizeProps as H, guardReactiveProps as I, unref as s, createBlock as M, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as q, createCommentVNode as O } from "vue";
2
- import { useFloating as G, arrow as J } from "./index225.js";
2
+ import { useFloating as G, arrow as J } from "./index223.js";
3
3
  import { useId as K } from "./index7.js";
4
4
  import { wait as P } from "./index122.js";
5
5
  import Q from "./index9.js";
6
6
  import "./index10.js";
7
7
  import { throttle as v } from "./index214.js";
8
8
  import { waitFor as W } from "./index216.js";
9
- import { autoUpdate as X, flip as Y, shift as Z } from "./index208.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z } from "./index197.js";
10
10
  const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
11
11
  viewBox: "0 0 24 24",
12
12
  fill: "none",
package/dist/index113.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index242.js";
2
+ import { flattenTree as P } from "./index244.js";
3
3
  const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index117.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index196.js";
2
+ import { isCssColor as z } from "./index206.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index119.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index196.js";
2
+ import { isCssColor as f } from "./index206.js";
3
3
  const _ = /* @__PURE__ */ c("svg", {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 512 512"
package/dist/index121.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index207.js";
1
+ import { clamp as o } from "./index196.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index125.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index198.js";
1
+ import t from "./index217.js";
2
2
  const e = () => ({
3
3
  getItemText(r, n) {
4
4
  if (typeof r == "string" && !n)
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index198.js";
1
+ import o from "./index217.js";
2
2
  const e = () => ({
3
3
  getItemValue(n, f) {
4
4
  if (typeof f > "u")
package/dist/index127.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isArray as b, isPlainObject as m } from "./index253.js";
1
+ import { isArray as b, isPlainObject as m } from "./index246.js";
2
2
  function i(e, n, l, o, r) {
3
3
  const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
4
  u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index131.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as B } from "./index217.js";
2
- import { tryOnScopeDispose as E } from "./index217.js";
1
+ import { toValue as B } from "./index208.js";
2
+ import { tryOnScopeDispose as E } from "./index208.js";
3
3
  import { ref as c, computed as t } from "vue";
4
4
  function h(a) {
5
5
  var l;
package/dist/index15.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as de, ref as k, computed as h, watch as ue, openBlock as d, createElementBlock as u, mergeProps as ce, createElementVNode as i, createTextVNode as be, toDisplayString as f, unref as p, withDirectives as L, createVNode as g, Transition as V, withCtx as w, vShow as z, createCommentVNode as A, normalizeClass as x, Fragment as O, renderList as S, renderSlot as R, nextTick as me } from "vue";
2
2
  import c from "./index199.js";
3
- import fe from "./index200.js";
4
- import pe from "./index201.js";
5
- import he from "./index202.js";
6
- import ye from "./index203.js";
7
- import _e from "./index204.js";
8
- import { groupBy as W } from "./index205.js";
3
+ import fe from "./index209.js";
4
+ import pe from "./index210.js";
5
+ import he from "./index200.js";
6
+ import ye from "./index211.js";
7
+ import _e from "./index212.js";
8
+ import { groupBy as W } from "./index213.js";
9
9
  import { isNil as ve } from "./index120.js";
10
- import { last as $ } from "./index206.js";
10
+ import { last as $ } from "./index202.js";
11
11
  const ke = { class: "bb-base-date-picker__header" }, ge = ["disabled"], Ve = /* @__PURE__ */ i("span", null, null, -1), we = {
12
12
  class: "bb-base-date-picker__selected-day-label",
13
13
  "aria-live": "polite"
package/dist/index17.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as R, ref as l, computed as Y, watch as J, onMounted as Q, onBeforeUnmount as X, openBlock as B, createElementBlock as Z, normalizeClass as C, renderSlot as u, createElementVNode as g, withDirectives as x, mergeProps as T, unref as d, toDisplayString as ee, createBlock as ae, Teleport as te, createVNode as ne, createSlots as oe, renderList as le, withCtx as ie, normalizeProps as re, guardReactiveProps as se } from "vue";
2
- import { autoUpdate as ue, computePosition as de, flip as ce, shift as fe } from "./index208.js";
3
- import pe from "./index209.js";
2
+ import { autoUpdate as ue, computePosition as de, flip as ce, shift as fe } from "./index197.js";
3
+ import pe from "./index198.js";
4
4
  import c from "./index199.js";
5
- import me from "./index202.js";
6
- import { identity as be } from "./index210.js";
7
- import { last as ve } from "./index206.js";
5
+ import me from "./index200.js";
6
+ import { identity as be } from "./index201.js";
7
+ import { last as ve } from "./index202.js";
8
8
  import { useId as ye } from "./index7.js";
9
- import { vMaska as ge } from "./index211.js";
9
+ import { vMaska as ge } from "./index203.js";
10
10
  import { wait as I } from "./index122.js";
11
11
  import he from "./index15.js";
12
12
  import "./index16.js";
13
- import O from "./index212.js";
14
- import { offset as ke } from "./index213.js";
13
+ import O from "./index204.js";
14
+ import { offset as ke } from "./index205.js";
15
15
  const we = ["autocomplete", "autofocus", "data-maska", "disabled", "id", "name", "placeholder", "readonly", "value", "aria-describedby"], Ee = ["id"], Pe = /* @__PURE__ */ R({
16
16
  __name: "BaseDatePickerInput",
17
17
  props: {
package/dist/index196.js CHANGED
@@ -1,5 +1,5 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- s as isCssColor
3
+ n as clamp
4
4
  };
5
5
  //# sourceMappingURL=index196.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index196.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n return !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MAClB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
1
+ {"version":3,"file":"index196.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns \n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n return Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MACzC,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
package/dist/index197.js CHANGED
@@ -1,7 +1,381 @@
1
- import { curry as e } from "./index227.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { shift as tt, flip as et, computePosition as ot, arrow as nt } from "./index205.js";
2
+ import { detectOverflow as At, offset as It } from "./index205.js";
3
+ import { createCoords as v, rectToClientRect as q, round as A, max as O, min as D, floor as B } from "./index231.js";
4
+ import { getOverflowAncestors as H, isElement as x, getWindow as T, getComputedStyle as w, getDocumentElement as L, isHTMLElement as b, isWebKit as U, getNodeName as W, isOverflowElement as z, getNodeScroll as I, isTableElement as it, isContainingBlock as X, getContainingBlock as K, getParentNode as V, isLastTraversableNode as Y } from "./index232.js";
5
+ function j(t) {
6
+ const e = w(t);
7
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
8
+ const s = b(t), c = s ? t.offsetWidth : n, i = s ? t.offsetHeight : o, r = A(n) !== c || A(o) !== i;
9
+ return r && (n = c, o = i), {
10
+ width: n,
11
+ height: o,
12
+ $: r
13
+ };
14
+ }
15
+ function S(t) {
16
+ return x(t) ? t : t.contextElement;
17
+ }
18
+ function F(t) {
19
+ const e = S(t);
20
+ if (!b(e))
21
+ return v(1);
22
+ const n = e.getBoundingClientRect(), {
23
+ width: o,
24
+ height: s,
25
+ $: c
26
+ } = j(e);
27
+ let i = (c ? A(n.width) : n.width) / o, r = (c ? A(n.height) : n.height) / s;
28
+ return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
29
+ x: i,
30
+ y: r
31
+ };
32
+ }
33
+ const st = /* @__PURE__ */ v(0);
34
+ function G(t) {
35
+ const e = T(t);
36
+ return !U() || !e.visualViewport ? st : {
37
+ x: e.visualViewport.offsetLeft,
38
+ y: e.visualViewport.offsetTop
39
+ };
40
+ }
41
+ function rt(t, e, n) {
42
+ return e === void 0 && (e = !1), !n || e && n !== T(t) ? !1 : e;
43
+ }
44
+ function E(t, e, n, o) {
45
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
46
+ const s = t.getBoundingClientRect(), c = S(t);
47
+ let i = v(1);
48
+ e && (o ? x(o) && (i = F(o)) : i = F(t));
49
+ const r = rt(c, n, o) ? G(c) : v(0);
50
+ let l = (s.left + r.x) / i.x, f = (s.top + r.y) / i.y, a = s.width / i.x, u = s.height / i.y;
51
+ if (c) {
52
+ const m = T(c), p = o && x(o) ? T(o) : o;
53
+ let g = m.frameElement;
54
+ for (; g && o && p !== m; ) {
55
+ const h = F(g), R = g.getBoundingClientRect(), d = w(g), y = R.left + (g.clientLeft + parseFloat(d.paddingLeft)) * h.x, C = R.top + (g.clientTop + parseFloat(d.paddingTop)) * h.y;
56
+ l *= h.x, f *= h.y, a *= h.x, u *= h.y, l += y, f += C, g = T(g).frameElement;
57
+ }
58
+ }
59
+ return q({
60
+ width: a,
61
+ height: u,
62
+ x: l,
63
+ y: f
64
+ });
65
+ }
66
+ const ct = [":popover-open", ":modal"];
67
+ function J(t) {
68
+ let e = !1, n = 0, o = 0;
69
+ function s(i) {
70
+ try {
71
+ e = e || t.matches(i);
72
+ } catch {
73
+ }
74
+ }
75
+ ct.forEach((i) => {
76
+ s(i);
77
+ });
78
+ const c = K(t);
79
+ if (e && c) {
80
+ const i = c.getBoundingClientRect();
81
+ n = i.x, o = i.y;
82
+ }
83
+ return [e, n, o];
84
+ }
85
+ function lt(t) {
86
+ let {
87
+ elements: e,
88
+ rect: n,
89
+ offsetParent: o,
90
+ strategy: s
91
+ } = t;
92
+ const c = L(o), [i] = e ? J(e.floating) : [!1];
93
+ if (o === c || i)
94
+ return n;
95
+ let r = {
96
+ scrollLeft: 0,
97
+ scrollTop: 0
98
+ }, l = v(1);
99
+ const f = v(0), a = b(o);
100
+ if ((a || !a && s !== "fixed") && ((W(o) !== "body" || z(c)) && (r = I(o)), b(o))) {
101
+ const u = E(o);
102
+ l = F(o), f.x = u.x + o.clientLeft, f.y = u.y + o.clientTop;
103
+ }
104
+ return {
105
+ width: n.width * l.x,
106
+ height: n.height * l.y,
107
+ x: n.x * l.x - r.scrollLeft * l.x + f.x,
108
+ y: n.y * l.y - r.scrollTop * l.y + f.y
109
+ };
110
+ }
111
+ function ft(t) {
112
+ return Array.from(t.getClientRects());
113
+ }
114
+ function Q(t) {
115
+ return E(L(t)).left + I(t).scrollLeft;
116
+ }
117
+ function ut(t) {
118
+ const e = L(t), n = I(t), o = t.ownerDocument.body, s = O(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), c = O(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
119
+ let i = -n.scrollLeft + Q(t);
120
+ const r = -n.scrollTop;
121
+ return w(o).direction === "rtl" && (i += O(e.clientWidth, o.clientWidth) - s), {
122
+ width: s,
123
+ height: c,
124
+ x: i,
125
+ y: r
126
+ };
127
+ }
128
+ function at(t, e) {
129
+ const n = T(t), o = L(t), s = n.visualViewport;
130
+ let c = o.clientWidth, i = o.clientHeight, r = 0, l = 0;
131
+ if (s) {
132
+ c = s.width, i = s.height;
133
+ const f = U();
134
+ (!f || f && e === "fixed") && (r = s.offsetLeft, l = s.offsetTop);
135
+ }
136
+ return {
137
+ width: c,
138
+ height: i,
139
+ x: r,
140
+ y: l
141
+ };
142
+ }
143
+ function ht(t, e) {
144
+ const n = E(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, c = b(t) ? F(t) : v(1), i = t.clientWidth * c.x, r = t.clientHeight * c.y, l = s * c.x, f = o * c.y;
145
+ return {
146
+ width: i,
147
+ height: r,
148
+ x: l,
149
+ y: f
150
+ };
151
+ }
152
+ function _(t, e, n) {
153
+ let o;
154
+ if (e === "viewport")
155
+ o = at(t, n);
156
+ else if (e === "document")
157
+ o = ut(L(t));
158
+ else if (x(e))
159
+ o = ht(e, n);
160
+ else {
161
+ const s = G(t);
162
+ o = {
163
+ ...e,
164
+ x: e.x - s.x,
165
+ y: e.y - s.y
166
+ };
167
+ }
168
+ return q(o);
169
+ }
170
+ function Z(t, e) {
171
+ const n = V(t);
172
+ return n === e || !x(n) || Y(n) ? !1 : w(n).position === "fixed" || Z(n, e);
173
+ }
174
+ function dt(t, e) {
175
+ const n = e.get(t);
176
+ if (n)
177
+ return n;
178
+ let o = H(t, [], !1).filter((r) => x(r) && W(r) !== "body"), s = null;
179
+ const c = w(t).position === "fixed";
180
+ let i = c ? V(t) : t;
181
+ for (; x(i) && !Y(i); ) {
182
+ const r = w(i), l = X(i);
183
+ !l && r.position === "fixed" && (s = null), (c ? !l && !s : !l && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || z(i) && !l && Z(t, i)) ? o = o.filter((a) => a !== i) : s = r, i = V(i);
184
+ }
185
+ return e.set(t, o), o;
186
+ }
187
+ function gt(t) {
188
+ let {
189
+ element: e,
190
+ boundary: n,
191
+ rootBoundary: o,
192
+ strategy: s
193
+ } = t;
194
+ const i = [...n === "clippingAncestors" ? dt(e, this._c) : [].concat(n), o], r = i[0], l = i.reduce((f, a) => {
195
+ const u = _(e, a, s);
196
+ return f.top = O(u.top, f.top), f.right = D(u.right, f.right), f.bottom = D(u.bottom, f.bottom), f.left = O(u.left, f.left), f;
197
+ }, _(e, r, s));
198
+ return {
199
+ width: l.right - l.left,
200
+ height: l.bottom - l.top,
201
+ x: l.left,
202
+ y: l.top
203
+ };
204
+ }
205
+ function pt(t) {
206
+ const {
207
+ width: e,
208
+ height: n
209
+ } = j(t);
210
+ return {
211
+ width: e,
212
+ height: n
213
+ };
214
+ }
215
+ function mt(t, e, n, o) {
216
+ const s = b(e), c = L(e), i = n === "fixed", r = E(t, !0, i, e);
217
+ let l = {
218
+ scrollLeft: 0,
219
+ scrollTop: 0
220
+ };
221
+ const f = v(0);
222
+ if (s || !s && !i)
223
+ if ((W(e) !== "body" || z(c)) && (l = I(e)), s) {
224
+ const h = E(e, !0, i, e);
225
+ f.x = h.x + e.clientLeft, f.y = h.y + e.clientTop;
226
+ } else
227
+ c && (f.x = Q(c));
228
+ let a = r.left + l.scrollLeft - f.x, u = r.top + l.scrollTop - f.y;
229
+ const [m, p, g] = J(o);
230
+ return m && (a += p, u += g, s && (a += e.clientLeft, u += e.clientTop)), {
231
+ x: a,
232
+ y: u,
233
+ width: r.width,
234
+ height: r.height
235
+ };
236
+ }
237
+ function k(t, e) {
238
+ return !b(t) || w(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
239
+ }
240
+ function P(t, e) {
241
+ const n = T(t);
242
+ if (!b(t))
243
+ return n;
244
+ let o = k(t, e);
245
+ for (; o && it(o) && w(o).position === "static"; )
246
+ o = k(o, e);
247
+ return o && (W(o) === "html" || W(o) === "body" && w(o).position === "static" && !X(o)) ? n : o || K(t) || n;
248
+ }
249
+ const yt = async function(t) {
250
+ const e = this.getOffsetParent || P, n = this.getDimensions;
251
+ return {
252
+ reference: mt(t.reference, await e(t.floating), t.strategy, t.floating),
253
+ floating: {
254
+ x: 0,
255
+ y: 0,
256
+ ...await n(t.floating)
257
+ }
258
+ };
259
+ };
260
+ function wt(t) {
261
+ return w(t).direction === "rtl";
262
+ }
263
+ const vt = {
264
+ convertOffsetParentRelativeRectToViewportRelativeRect: lt,
265
+ getDocumentElement: L,
266
+ getClippingRect: gt,
267
+ getOffsetParent: P,
268
+ getElementRects: yt,
269
+ getClientRects: ft,
270
+ getDimensions: pt,
271
+ getScale: F,
272
+ isElement: x,
273
+ isRTL: wt
274
+ };
275
+ function xt(t, e) {
276
+ let n = null, o;
277
+ const s = L(t);
278
+ function c() {
279
+ var r;
280
+ clearTimeout(o), (r = n) == null || r.disconnect(), n = null;
281
+ }
282
+ function i(r, l) {
283
+ r === void 0 && (r = !1), l === void 0 && (l = 1), c();
284
+ const {
285
+ left: f,
286
+ top: a,
287
+ width: u,
288
+ height: m
289
+ } = t.getBoundingClientRect();
290
+ if (r || e(), !u || !m)
291
+ return;
292
+ const p = B(a), g = B(s.clientWidth - (f + u)), h = B(s.clientHeight - (a + m)), R = B(f), y = {
293
+ rootMargin: -p + "px " + -g + "px " + -h + "px " + -R + "px",
294
+ threshold: O(0, D(1, l)) || 1
295
+ };
296
+ let C = !0;
297
+ function $(M) {
298
+ const N = M[0].intersectionRatio;
299
+ if (N !== l) {
300
+ if (!C)
301
+ return i();
302
+ N ? i(!1, N) : o = setTimeout(() => {
303
+ i(!1, 1e-7);
304
+ }, 100);
305
+ }
306
+ C = !1;
307
+ }
308
+ try {
309
+ n = new IntersectionObserver($, {
310
+ ...y,
311
+ // Handle <iframe>s
312
+ root: s.ownerDocument
313
+ });
314
+ } catch {
315
+ n = new IntersectionObserver($, y);
316
+ }
317
+ n.observe(t);
318
+ }
319
+ return i(!0), c;
320
+ }
321
+ function Ct(t, e, n, o) {
322
+ o === void 0 && (o = {});
323
+ const {
324
+ ancestorScroll: s = !0,
325
+ ancestorResize: c = !0,
326
+ elementResize: i = typeof ResizeObserver == "function",
327
+ layoutShift: r = typeof IntersectionObserver == "function",
328
+ animationFrame: l = !1
329
+ } = o, f = S(t), a = s || c ? [...f ? H(f) : [], ...H(e)] : [];
330
+ a.forEach((d) => {
331
+ s && d.addEventListener("scroll", n, {
332
+ passive: !0
333
+ }), c && d.addEventListener("resize", n);
334
+ });
335
+ const u = f && r ? xt(f, n) : null;
336
+ let m = -1, p = null;
337
+ i && (p = new ResizeObserver((d) => {
338
+ let [y] = d;
339
+ y && y.target === f && p && (p.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
340
+ var C;
341
+ (C = p) == null || C.observe(e);
342
+ })), n();
343
+ }), f && !l && p.observe(f), p.observe(e));
344
+ let g, h = l ? E(t) : null;
345
+ l && R();
346
+ function R() {
347
+ const d = E(t);
348
+ h && (d.x !== h.x || d.y !== h.y || d.width !== h.width || d.height !== h.height) && n(), h = d, g = requestAnimationFrame(R);
349
+ }
350
+ return n(), () => {
351
+ var d;
352
+ a.forEach((y) => {
353
+ s && y.removeEventListener("scroll", n), c && y.removeEventListener("resize", n);
354
+ }), u == null || u(), (d = p) == null || d.disconnect(), p = null, l && cancelAnimationFrame(g);
355
+ };
356
+ }
357
+ const Tt = tt, Et = et, Ot = nt, Ft = (t, e, n) => {
358
+ const o = /* @__PURE__ */ new Map(), s = {
359
+ platform: vt,
360
+ ...n
361
+ }, c = {
362
+ ...s.platform,
363
+ _c: o
364
+ };
365
+ return ot(t, e, {
366
+ ...s,
367
+ platform: c
368
+ });
369
+ };
3
370
  export {
4
- t as baseWhen,
5
- s as when
371
+ Ot as arrow,
372
+ Ct as autoUpdate,
373
+ Ft as computePosition,
374
+ At as detectOverflow,
375
+ Et as flip,
376
+ H as getOverflowAncestors,
377
+ It as offset,
378
+ vt as platform,
379
+ Tt as shift
6
380
  };
7
381
  //# sourceMappingURL=index197.js.map