@quoreadmin/ui 1.11.0 → 1.11.1

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 (201) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index142.js +1 -1
  3. package/dist/index189.js +4 -4
  4. package/dist/index196.js +8 -8
  5. package/dist/index198.js +8 -8
  6. package/dist/index201.js +17 -17
  7. package/dist/index204.js +26 -26
  8. package/dist/index205.js +1 -1
  9. package/dist/index206.js +1 -1
  10. package/dist/index209.js +2 -2
  11. package/dist/index211.js +14 -14
  12. package/dist/index212.js +1 -1
  13. package/dist/index213.js +1 -1
  14. package/dist/index214.js +3 -3
  15. package/dist/index215.js +6 -6
  16. package/dist/index219.js +2 -2
  17. package/dist/index220.js +1 -1
  18. package/dist/index222.js +4 -4
  19. package/dist/index224.js +1 -1
  20. package/dist/index225.js +1 -1
  21. package/dist/index226.js +1 -1
  22. package/dist/index227.js +4 -4
  23. package/dist/index229.js +1 -1
  24. package/dist/index230.js +2 -2
  25. package/dist/index231.js +2 -2
  26. package/dist/index232.js +1 -1
  27. package/dist/index233.js +156 -122
  28. package/dist/index234.js +225 -35
  29. package/dist/index235.js +37 -80
  30. package/dist/index236.js +10 -20
  31. package/dist/index237.js +126 -19
  32. package/dist/index238.js +34 -16
  33. package/dist/index239.js +80 -20
  34. package/dist/index240.js +9 -9
  35. package/dist/index241.js +19 -160
  36. package/dist/index242.js +11 -11
  37. package/dist/index243.js +13 -15
  38. package/dist/index244.js +19 -198
  39. package/dist/index245.js +140 -49
  40. package/dist/index246.js +20 -34
  41. package/dist/index247.js +21 -39
  42. package/dist/index248.js +184 -238
  43. package/dist/index249.js +70 -8
  44. package/dist/index250.js +32 -136
  45. package/dist/index251.js +39 -82
  46. package/dist/index252.js +247 -155
  47. package/dist/index253.js +7 -227
  48. package/dist/index254.js +137 -36
  49. package/dist/index255.js +83 -10
  50. package/dist/index256.js +2 -22
  51. package/dist/index257.js +78 -21
  52. package/dist/index258.js +15 -13
  53. package/dist/index259.js +22 -836
  54. package/dist/index260.js +19 -701
  55. package/dist/index261.js +835 -175
  56. package/dist/index262.js +701 -21
  57. package/dist/index263.js +176 -20
  58. package/dist/index264.js +13 -11
  59. package/dist/index265.js +20 -3
  60. package/dist/index266.js +19 -186
  61. package/dist/index267.js +3 -133
  62. package/dist/index268.js +107 -1143
  63. package/dist/index269.js +132 -19
  64. package/dist/index270.js +1223 -22
  65. package/dist/index271.js +13 -15
  66. package/dist/index272.js +13 -20
  67. package/dist/index273.js +15 -13
  68. package/dist/index274.js +21 -12
  69. package/dist/index275.js +20 -2
  70. package/dist/index276.js +20 -2
  71. package/dist/index277.js +2 -3709
  72. package/dist/index278.js +2 -60
  73. package/dist/index279.js +3686 -60
  74. package/dist/index280.js +37 -29
  75. package/dist/index281.js +51 -183
  76. package/dist/index282.js +51 -9
  77. package/dist/index283.js +197 -39
  78. package/dist/index284.js +9 -60
  79. package/dist/index285.js +43 -40
  80. package/dist/index286.js +44 -64
  81. package/dist/index287.js +33 -707
  82. package/dist/index288.js +63 -29
  83. package/dist/index289.js +696 -32
  84. package/dist/index290.js +46 -10
  85. package/dist/index291.js +55 -696
  86. package/dist/index292.js +10 -819
  87. package/dist/index293.js +705 -2
  88. package/dist/index294.js +814 -73
  89. package/dist/index295.js +1 -1
  90. package/dist/index296.js +1 -1
  91. package/dist/index297.js +1 -1
  92. package/dist/index298.js +1 -1
  93. package/dist/index299.js +1 -1
  94. package/dist/index300.js +1 -1
  95. package/dist/index301.js +1 -1
  96. package/dist/index302.js +3 -79
  97. package/dist/index303.js +26 -21
  98. package/dist/index304.js +52 -929
  99. package/dist/index305.js +36 -21
  100. package/dist/index306.js +234 -19
  101. package/dist/index307.js +5 -19
  102. package/dist/index308.js +128 -63
  103. package/dist/index309.js +68 -19
  104. package/dist/index310.js +85 -17
  105. package/dist/index311.js +28 -21
  106. package/dist/index312.js +7 -20
  107. package/dist/index313.js +75 -63
  108. package/dist/index314.js +3 -83
  109. package/dist/index315.js +2 -3
  110. package/dist/index316.js +81 -25
  111. package/dist/index317.js +49 -1529
  112. package/dist/index318.js +4 -384
  113. package/dist/index319.js +4 -2730
  114. package/dist/index320.js +170 -77
  115. package/dist/index321.js +55 -3790
  116. package/dist/index322.js +75 -60
  117. package/dist/index323.js +1533 -14
  118. package/dist/index324.js +371 -69
  119. package/dist/index325.js +2687 -158
  120. package/dist/index326.js +73 -233
  121. package/dist/index327.js +3789 -28
  122. package/dist/index328.js +51 -121
  123. package/dist/index329.js +14 -399
  124. package/dist/index330.js +75 -226
  125. package/dist/index331.js +200 -4
  126. package/dist/index332.js +236 -124
  127. package/dist/index333.js +77 -66
  128. package/dist/index334.js +21 -86
  129. package/dist/index335.js +932 -26
  130. package/dist/index336.js +21 -8
  131. package/dist/index337.js +19 -74
  132. package/dist/index338.js +19 -3
  133. package/dist/index339.js +69 -2
  134. package/dist/index340.js +18 -82
  135. package/dist/index341.js +17 -52
  136. package/dist/index342.js +21 -5
  137. package/dist/index343.js +21 -4
  138. package/dist/index344.js +62 -178
  139. package/dist/index345.js +123 -57
  140. package/dist/index346.js +398 -74
  141. package/dist/index347.js +8 -19
  142. package/dist/index348.js +12 -19
  143. package/dist/index349.js +51 -60
  144. package/dist/index350.js +12 -37
  145. package/dist/index351.js +13 -8
  146. package/dist/index352.js +57 -12
  147. package/dist/index353.js +48 -51
  148. package/dist/index354.js +28 -9
  149. package/dist/index355.js +2 -14
  150. package/dist/index356.js +5 -58
  151. package/dist/index357.js +2 -52
  152. package/dist/index358.js +22 -30
  153. package/dist/index359.js +41 -2
  154. package/dist/index360.js +2 -5
  155. package/dist/index361.js +11 -2
  156. package/dist/index362.js +19 -22
  157. package/dist/index363.js +9 -40
  158. package/dist/index364.js +10 -2
  159. package/dist/index365.js +16 -10
  160. package/dist/index366.js +2 -20
  161. package/dist/index367.js +8 -9
  162. package/dist/index368.js +10 -10
  163. package/dist/index369.js +12 -15
  164. package/dist/index370.js +21 -2
  165. package/dist/index371.js +56 -9
  166. package/dist/index372.js +28 -9
  167. package/dist/index373.js +7 -14
  168. package/dist/index374.js +49 -18
  169. package/dist/index375.js +6 -56
  170. package/dist/index376.js +10 -27
  171. package/dist/index377.js +7 -7
  172. package/dist/index378.js +27 -51
  173. package/dist/index379.js +2 -6
  174. package/dist/index380.js +69 -11
  175. package/dist/index381.js +166 -6
  176. package/dist/index382.js +20 -28
  177. package/dist/index383.js +20 -2
  178. package/dist/index384.js +61 -67
  179. package/dist/index385.js +36 -166
  180. package/dist/index387.js +31 -17
  181. package/dist/index388.js +10 -100
  182. package/dist/index389.js +3 -90
  183. package/dist/index390.js +4 -98
  184. package/dist/index391.js +12 -30
  185. package/dist/index392.js +7 -11
  186. package/dist/index393.js +11 -3
  187. package/dist/index394.js +4 -3
  188. package/dist/index395.js +33 -13
  189. package/dist/index396.js +31 -7
  190. package/dist/index397.js +28 -12
  191. package/dist/index398.js +61 -5
  192. package/dist/index399.js +101 -33
  193. package/dist/index400.js +91 -31
  194. package/dist/index401.js +97 -27
  195. package/dist/index402.js +16 -60
  196. package/dist/index403.js +240 -281
  197. package/dist/index405.js +1 -1
  198. package/dist/index410.js +1 -1
  199. package/dist/index411.js +2 -2
  200. package/dist/index42.js +2 -2
  201. package/package.json +1 -1
package/dist/index403.js CHANGED
@@ -1,273 +1,273 @@
1
- import { evaluate as _, getSide as W, getSideAxis as F, getOppositePlacement as K, getExpandedPlacements as Q, getOppositeAxisPlacements as Z, getAlignmentSides as ee, clamp as Y, getAlignment as B, min as j, max as $, getOppositeAxis as te, sides as ne, getPaddingObject as U, getAlignmentAxis as q, getAxisLength as G, rectToClientRect as z } from "./index404.js";
2
- function X(t, e, d) {
1
+ import { evaluate as M, getSide as B, getSideAxis as F, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, clamp as _, getAlignment as $, getOppositeAxis as ee, sides as te, getPaddingObject as N, getAlignmentAxis as U, getAxisLength as q, min as X, rectToClientRect as Y } from "./index404.js";
2
+ function W(t, e, m) {
3
3
  let {
4
- reference: o,
5
- floating: f
4
+ reference: i,
5
+ floating: r
6
6
  } = t;
7
- const n = F(e), i = q(e), s = G(i), g = W(e), x = n === "y", c = o.x + o.width / 2 - f.width / 2, r = o.y + o.height / 2 - f.height / 2, m = o[s] / 2 - f[s] / 2;
7
+ const n = F(e), s = U(e), o = q(s), d = B(e), u = n === "y", g = i.x + i.width / 2 - r.width / 2, l = i.y + i.height / 2 - r.height / 2, f = i[o] / 2 - r[o] / 2;
8
8
  let a;
9
- switch (g) {
9
+ switch (d) {
10
10
  case "top":
11
11
  a = {
12
- x: c,
13
- y: o.y - f.height
12
+ x: g,
13
+ y: i.y - r.height
14
14
  };
15
15
  break;
16
16
  case "bottom":
17
17
  a = {
18
- x: c,
19
- y: o.y + o.height
18
+ x: g,
19
+ y: i.y + i.height
20
20
  };
21
21
  break;
22
22
  case "right":
23
23
  a = {
24
- x: o.x + o.width,
25
- y: r
24
+ x: i.x + i.width,
25
+ y: l
26
26
  };
27
27
  break;
28
28
  case "left":
29
29
  a = {
30
- x: o.x - f.width,
31
- y: r
30
+ x: i.x - r.width,
31
+ y: l
32
32
  };
33
33
  break;
34
34
  default:
35
35
  a = {
36
- x: o.x,
37
- y: o.y
36
+ x: i.x,
37
+ y: i.y
38
38
  };
39
39
  }
40
- switch (B(e)) {
40
+ switch ($(e)) {
41
41
  case "start":
42
- a[i] -= m * (d && x ? -1 : 1);
42
+ a[s] -= f * (m && u ? -1 : 1);
43
43
  break;
44
44
  case "end":
45
- a[i] += m * (d && x ? -1 : 1);
45
+ a[s] += f * (m && u ? -1 : 1);
46
46
  break;
47
47
  }
48
48
  return a;
49
49
  }
50
- async function ie(t, e) {
51
- var d;
50
+ async function ne(t, e) {
51
+ var m;
52
52
  e === void 0 && (e = {});
53
53
  const {
54
- x: o,
55
- y: f,
54
+ x: i,
55
+ y: r,
56
56
  platform: n,
57
- rects: i,
58
- elements: s,
59
- strategy: g
57
+ rects: s,
58
+ elements: o,
59
+ strategy: d
60
60
  } = t, {
61
- boundary: x = "clippingAncestors",
62
- rootBoundary: c = "viewport",
63
- elementContext: r = "floating",
64
- altBoundary: m = !1,
61
+ boundary: u = "clippingAncestors",
62
+ rootBoundary: g = "viewport",
63
+ elementContext: l = "floating",
64
+ altBoundary: f = !1,
65
65
  padding: a = 0
66
- } = _(e, t), l = U(a), h = s[m ? r === "floating" ? "reference" : "floating" : r], w = z(await n.getClippingRect({
67
- element: (d = await (n.isElement == null ? void 0 : n.isElement(h))) == null || d ? h : h.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(s.floating)),
68
- boundary: x,
69
- rootBoundary: c,
70
- strategy: g
71
- })), v = r === "floating" ? {
72
- x: o,
73
- y: f,
74
- width: i.floating.width,
75
- height: i.floating.height
76
- } : i.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(s.floating)), y = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
66
+ } = M(e, t), c = N(a), h = o[f ? l === "floating" ? "reference" : "floating" : l], w = Y(await n.getClippingRect({
67
+ element: (m = await (n.isElement == null ? void 0 : n.isElement(h))) == null || m ? h : h.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(o.floating)),
68
+ boundary: u,
69
+ rootBoundary: g,
70
+ strategy: d
71
+ })), y = l === "floating" ? {
72
+ x: i,
73
+ y: r,
74
+ width: s.floating.width,
75
+ height: s.floating.height
76
+ } : s.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(o.floating)), v = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
77
77
  x: 1,
78
78
  y: 1
79
79
  } : {
80
80
  x: 1,
81
81
  y: 1
82
- }, O = z(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
83
- elements: s,
84
- rect: v,
82
+ }, O = Y(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
83
+ elements: o,
84
+ rect: y,
85
85
  offsetParent: p,
86
- strategy: g
87
- }) : v);
86
+ strategy: d
87
+ }) : y);
88
88
  return {
89
- top: (w.top - O.top + l.top) / y.y,
90
- bottom: (O.bottom - w.bottom + l.bottom) / y.y,
91
- left: (w.left - O.left + l.left) / y.x,
92
- right: (O.right - w.right + l.right) / y.x
89
+ top: (w.top - O.top + c.top) / v.y,
90
+ bottom: (O.bottom - w.bottom + c.bottom) / v.y,
91
+ left: (w.left - O.left + c.left) / v.x,
92
+ right: (O.right - w.right + c.right) / v.x
93
93
  };
94
94
  }
95
- const oe = 50, ce = async (t, e, d) => {
95
+ const ie = 50, ce = async (t, e, m) => {
96
96
  const {
97
- placement: o = "bottom",
98
- strategy: f = "absolute",
97
+ placement: i = "bottom",
98
+ strategy: r = "absolute",
99
99
  middleware: n = [],
100
- platform: i
101
- } = d, s = i.detectOverflow ? i : {
102
- ...i,
103
- detectOverflow: ie
104
- }, g = await (i.isRTL == null ? void 0 : i.isRTL(e));
105
- let x = await i.getElementRects({
100
+ platform: s
101
+ } = m, o = s.detectOverflow ? s : {
102
+ ...s,
103
+ detectOverflow: ne
104
+ }, d = await (s.isRTL == null ? void 0 : s.isRTL(e));
105
+ let u = await s.getElementRects({
106
106
  reference: t,
107
107
  floating: e,
108
- strategy: f
108
+ strategy: r
109
109
  }), {
110
- x: c,
111
- y: r
112
- } = X(x, o, g), m = o, a = 0;
113
- const l = {};
114
- for (let u = 0; u < n.length; u++) {
115
- const h = n[u];
110
+ x: g,
111
+ y: l
112
+ } = W(u, i, d), f = i, a = 0;
113
+ const c = {};
114
+ for (let x = 0; x < n.length; x++) {
115
+ const h = n[x];
116
116
  if (!h)
117
117
  continue;
118
118
  const {
119
119
  name: w,
120
- fn: v
120
+ fn: y
121
121
  } = h, {
122
122
  x: p,
123
- y,
123
+ y: v,
124
124
  data: O,
125
- reset: A
126
- } = await v({
127
- x: c,
128
- y: r,
129
- initialPlacement: o,
130
- placement: m,
131
- strategy: f,
132
- middlewareData: l,
133
- rects: x,
134
- platform: s,
125
+ reset: b
126
+ } = await y({
127
+ x: g,
128
+ y: l,
129
+ initialPlacement: i,
130
+ placement: f,
131
+ strategy: r,
132
+ middlewareData: c,
133
+ rects: u,
134
+ platform: o,
135
135
  elements: {
136
136
  reference: t,
137
137
  floating: e
138
138
  }
139
139
  });
140
- c = p ?? c, r = y ?? r, l[w] = {
141
- ...l[w],
140
+ g = p ?? g, l = v ?? l, c[w] = {
141
+ ...c[w],
142
142
  ...O
143
- }, A && a < oe && (a++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (x = A.rects === !0 ? await i.getElementRects({
143
+ }, b && a < ie && (a++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (u = b.rects === !0 ? await s.getElementRects({
144
144
  reference: t,
145
145
  floating: e,
146
- strategy: f
147
- }) : A.rects), {
148
- x: c,
149
- y: r
150
- } = X(x, m, g)), u = -1);
146
+ strategy: r
147
+ }) : b.rects), {
148
+ x: g,
149
+ y: l
150
+ } = W(u, f, d)), x = -1);
151
151
  }
152
152
  return {
153
- x: c,
154
- y: r,
155
- placement: m,
156
- strategy: f,
157
- middlewareData: l
153
+ x: g,
154
+ y: l,
155
+ placement: f,
156
+ strategy: r,
157
+ middlewareData: c
158
158
  };
159
- }, re = (t) => ({
159
+ }, le = (t) => ({
160
160
  name: "arrow",
161
161
  options: t,
162
162
  async fn(e) {
163
163
  const {
164
- x: d,
165
- y: o,
166
- placement: f,
164
+ x: m,
165
+ y: i,
166
+ placement: r,
167
167
  rects: n,
168
- platform: i,
169
- elements: s,
170
- middlewareData: g
168
+ platform: s,
169
+ elements: o,
170
+ middlewareData: d
171
171
  } = e, {
172
- element: x,
173
- padding: c = 0
174
- } = _(t, e) || {};
175
- if (x == null)
172
+ element: u,
173
+ padding: g = 0
174
+ } = M(t, e) || {};
175
+ if (u == null)
176
176
  return {};
177
- const r = U(c), m = {
178
- x: d,
179
- y: o
180
- }, a = q(f), l = G(a), u = await i.getDimensions(x), h = a === "y", w = h ? "top" : "left", v = h ? "bottom" : "right", p = h ? "clientHeight" : "clientWidth", y = n.reference[l] + n.reference[a] - m[a] - n.floating[l], O = m[a] - n.reference[a], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(x));
181
- let R = A ? A[p] : 0;
182
- (!R || !await (i.isElement == null ? void 0 : i.isElement(A))) && (R = s.floating[p] || n.floating[l]);
183
- const E = y / 2 - O / 2, D = R / 2 - u[l] / 2 - 1, P = j(r[w], D), L = j(r[v], D), k = P, M = R - u[l] - L, b = R / 2 - u[l] / 2 + E, V = Y(k, b, M), T = !g.arrow && B(f) != null && b !== V && n.reference[l] / 2 - (b < k ? P : L) - u[l] / 2 < 0, S = T ? b < k ? b - k : b - M : 0;
177
+ const l = N(g), f = {
178
+ x: m,
179
+ y: i
180
+ }, a = U(r), c = q(a), x = await s.getDimensions(u), h = a === "y", w = h ? "top" : "left", y = h ? "bottom" : "right", p = h ? "clientHeight" : "clientWidth", v = n.reference[c] + n.reference[a] - f[a] - n.floating[c], O = f[a] - n.reference[a], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
181
+ let D = b ? b[p] : 0;
182
+ (!D || !await (s.isElement == null ? void 0 : s.isElement(b))) && (D = o.floating[p] || n.floating[c]);
183
+ const V = v / 2 - O / 2, E = D / 2 - x[c] / 2 - 1, C = X(l[w], E), H = X(l[y], E), T = C, j = D - x[c] - H, A = D / 2 - x[c] / 2 + V, L = _(T, A, j), S = !d.arrow && $(r) != null && A !== L && n.reference[c] / 2 - (A < T ? C : H) - x[c] / 2 < 0, P = S ? A < T ? A - T : A - j : 0;
184
184
  return {
185
- [a]: m[a] + S,
185
+ [a]: f[a] + P,
186
186
  data: {
187
- [a]: V,
188
- centerOffset: b - V - S,
189
- ...T && {
190
- alignmentOffset: S
187
+ [a]: L,
188
+ centerOffset: A - L - P,
189
+ ...S && {
190
+ alignmentOffset: P
191
191
  }
192
192
  },
193
- reset: T
193
+ reset: S
194
194
  };
195
195
  }
196
- }), fe = function(t) {
196
+ }), re = function(t) {
197
197
  return t === void 0 && (t = {}), {
198
198
  name: "flip",
199
199
  options: t,
200
200
  async fn(e) {
201
- var d, o;
201
+ var m, i;
202
202
  const {
203
- placement: f,
203
+ placement: r,
204
204
  middlewareData: n,
205
- rects: i,
206
- initialPlacement: s,
207
- platform: g,
208
- elements: x
205
+ rects: s,
206
+ initialPlacement: o,
207
+ platform: d,
208
+ elements: u
209
209
  } = e, {
210
- mainAxis: c = !0,
211
- crossAxis: r = !0,
212
- fallbackPlacements: m,
210
+ mainAxis: g = !0,
211
+ crossAxis: l = !0,
212
+ fallbackPlacements: f,
213
213
  fallbackStrategy: a = "bestFit",
214
- fallbackAxisSideDirection: l = "none",
215
- flipAlignment: u = !0,
214
+ fallbackAxisSideDirection: c = "none",
215
+ flipAlignment: x = !0,
216
216
  ...h
217
- } = _(t, e);
218
- if ((d = n.arrow) != null && d.alignmentOffset)
217
+ } = M(t, e);
218
+ if ((m = n.arrow) != null && m.alignmentOffset)
219
219
  return {};
220
- const w = W(f), v = F(s), p = W(s) === s, y = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), O = m || (p || !u ? [K(s)] : Q(s)), A = l !== "none";
221
- !m && A && O.push(...Z(s, u, l, y));
222
- const R = [s, ...O], E = await g.detectOverflow(e, h), D = [];
223
- let P = ((o = n.flip) == null ? void 0 : o.overflows) || [];
224
- if (c && D.push(E[w]), r) {
225
- const b = ee(f, i, y);
226
- D.push(E[b[0]], E[b[1]]);
220
+ const w = B(r), y = F(o), p = B(o) === o, v = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), O = f || (p || !x ? [J(o)] : K(o)), b = c !== "none";
221
+ !f && b && O.push(...Q(o, x, c, v));
222
+ const D = [o, ...O], V = await d.detectOverflow(e, h), E = [];
223
+ let C = ((i = n.flip) == null ? void 0 : i.overflows) || [];
224
+ if (g && E.push(V[w]), l) {
225
+ const A = Z(r, s, v);
226
+ E.push(V[A[0]], V[A[1]]);
227
227
  }
228
- if (P = [...P, {
229
- placement: f,
230
- overflows: D
231
- }], !D.every((b) => b <= 0)) {
232
- var L, k;
233
- const b = (((L = n.flip) == null ? void 0 : L.index) || 0) + 1, V = R[b];
234
- if (V && (!(r === "alignment" ? v !== F(V) : !1) || // We leave the current main axis only if every placement on that axis
228
+ if (C = [...C, {
229
+ placement: r,
230
+ overflows: E
231
+ }], !E.every((A) => A <= 0)) {
232
+ var H, T;
233
+ const A = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, L = D[A];
234
+ if (L && (!(l === "alignment" ? y !== F(L) : !1) || // We leave the current main axis only if every placement on that axis
235
235
  // overflows the main axis.
236
- P.every((C) => F(C.placement) === v ? C.overflows[0] > 0 : !0)))
236
+ C.every((R) => F(R.placement) === y ? R.overflows[0] > 0 : !0)))
237
237
  return {
238
238
  data: {
239
- index: b,
240
- overflows: P
239
+ index: A,
240
+ overflows: C
241
241
  },
242
242
  reset: {
243
- placement: V
243
+ placement: L
244
244
  }
245
245
  };
246
- let T = (k = P.filter((S) => S.overflows[0] <= 0).sort((S, C) => S.overflows[1] - C.overflows[1])[0]) == null ? void 0 : k.placement;
247
- if (!T)
246
+ let S = (T = C.filter((P) => P.overflows[0] <= 0).sort((P, R) => P.overflows[1] - R.overflows[1])[0]) == null ? void 0 : T.placement;
247
+ if (!S)
248
248
  switch (a) {
249
249
  case "bestFit": {
250
- var M;
251
- const S = (M = P.filter((C) => {
252
- if (A) {
253
- const H = F(C.placement);
254
- return H === v || // Create a bias to the `y` side axis due to horizontal
250
+ var j;
251
+ const P = (j = C.filter((R) => {
252
+ if (b) {
253
+ const k = F(R.placement);
254
+ return k === y || // Create a bias to the `y` side axis due to horizontal
255
255
  // reading directions favoring greater width.
256
- H === "y";
256
+ k === "y";
257
257
  }
258
258
  return !0;
259
- }).map((C) => [C.placement, C.overflows.filter((H) => H > 0).reduce((H, J) => H + J, 0)]).sort((C, H) => C[1] - H[1])[0]) == null ? void 0 : M[0];
260
- S && (T = S);
259
+ }).map((R) => [R.placement, R.overflows.filter((k) => k > 0).reduce((k, G) => k + G, 0)]).sort((R, k) => R[1] - k[1])[0]) == null ? void 0 : j[0];
260
+ P && (S = P);
261
261
  break;
262
262
  }
263
263
  case "initialPlacement":
264
- T = s;
264
+ S = o;
265
265
  break;
266
266
  }
267
- if (f !== T)
267
+ if (r !== S)
268
268
  return {
269
269
  reset: {
270
- placement: T
270
+ placement: S
271
271
  }
272
272
  };
273
273
  }
@@ -275,7 +275,7 @@ const oe = 50, ce = async (t, e, d) => {
275
275
  }
276
276
  };
277
277
  };
278
- function I(t, e) {
278
+ function z(t, e) {
279
279
  return {
280
280
  top: t.top - e.height,
281
281
  right: t.right - e.width,
@@ -283,43 +283,43 @@ function I(t, e) {
283
283
  left: t.left - e.width
284
284
  };
285
285
  }
286
- function N(t) {
287
- return ne.some((e) => t[e] >= 0);
286
+ function I(t) {
287
+ return te.some((e) => t[e] >= 0);
288
288
  }
289
- const me = function(t) {
289
+ const fe = function(t) {
290
290
  return t === void 0 && (t = {}), {
291
291
  name: "hide",
292
292
  options: t,
293
293
  async fn(e) {
294
294
  const {
295
- rects: d,
296
- platform: o
295
+ rects: m,
296
+ platform: i
297
297
  } = e, {
298
- strategy: f = "referenceHidden",
298
+ strategy: r = "referenceHidden",
299
299
  ...n
300
- } = _(t, e);
301
- switch (f) {
300
+ } = M(t, e);
301
+ switch (r) {
302
302
  case "referenceHidden": {
303
- const i = await o.detectOverflow(e, {
303
+ const s = await i.detectOverflow(e, {
304
304
  ...n,
305
305
  elementContext: "reference"
306
- }), s = I(i, d.reference);
306
+ }), o = z(s, m.reference);
307
307
  return {
308
308
  data: {
309
- referenceHiddenOffsets: s,
310
- referenceHidden: N(s)
309
+ referenceHiddenOffsets: o,
310
+ referenceHidden: I(o)
311
311
  }
312
312
  };
313
313
  }
314
314
  case "escaped": {
315
- const i = await o.detectOverflow(e, {
315
+ const s = await i.detectOverflow(e, {
316
316
  ...n,
317
317
  altBoundary: !0
318
- }), s = I(i, d.floating);
318
+ }), o = z(s, m.floating);
319
319
  return {
320
320
  data: {
321
- escapedOffsets: s,
322
- escaped: N(s)
321
+ escapedOffsets: o,
322
+ escaped: I(o)
323
323
  }
324
324
  };
325
325
  }
@@ -329,161 +329,120 @@ const me = function(t) {
329
329
  }
330
330
  };
331
331
  }, se = /* @__PURE__ */ new Set(["left", "top"]);
332
- async function ae(t, e) {
332
+ async function oe(t, e) {
333
333
  const {
334
- placement: d,
335
- platform: o,
336
- elements: f
337
- } = t, n = await (o.isRTL == null ? void 0 : o.isRTL(f.floating)), i = W(d), s = B(d), g = F(d) === "y", x = se.has(i) ? -1 : 1, c = n && g ? -1 : 1, r = _(e, t);
334
+ placement: m,
335
+ platform: i,
336
+ elements: r
337
+ } = t, n = await (i.isRTL == null ? void 0 : i.isRTL(r.floating)), s = B(m), o = $(m), d = F(m) === "y", u = se.has(s) ? -1 : 1, g = n && d ? -1 : 1, l = M(e, t);
338
338
  let {
339
- mainAxis: m,
339
+ mainAxis: f,
340
340
  crossAxis: a,
341
- alignmentAxis: l
342
- } = typeof r == "number" ? {
343
- mainAxis: r,
341
+ alignmentAxis: c
342
+ } = typeof l == "number" ? {
343
+ mainAxis: l,
344
344
  crossAxis: 0,
345
345
  alignmentAxis: null
346
346
  } : {
347
- mainAxis: r.mainAxis || 0,
348
- crossAxis: r.crossAxis || 0,
349
- alignmentAxis: r.alignmentAxis
347
+ mainAxis: l.mainAxis || 0,
348
+ crossAxis: l.crossAxis || 0,
349
+ alignmentAxis: l.alignmentAxis
350
350
  };
351
- return s && typeof l == "number" && (a = s === "end" ? l * -1 : l), g ? {
352
- x: a * c,
353
- y: m * x
351
+ return o && typeof c == "number" && (a = o === "end" ? c * -1 : c), d ? {
352
+ x: a * g,
353
+ y: f * u
354
354
  } : {
355
- x: m * x,
356
- y: a * c
355
+ x: f * u,
356
+ y: a * g
357
357
  };
358
358
  }
359
- const de = function(t) {
359
+ const me = function(t) {
360
360
  return t === void 0 && (t = 0), {
361
361
  name: "offset",
362
362
  options: t,
363
363
  async fn(e) {
364
- var d, o;
364
+ var m, i;
365
365
  const {
366
- x: f,
366
+ x: r,
367
367
  y: n,
368
- placement: i,
369
- middlewareData: s
370
- } = e, g = await ae(e, t);
371
- return i === ((d = s.offset) == null ? void 0 : d.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
372
- x: f + g.x,
373
- y: n + g.y,
368
+ placement: s,
369
+ middlewareData: o
370
+ } = e, d = await oe(e, t);
371
+ return s === ((m = o.offset) == null ? void 0 : m.placement) && (i = o.arrow) != null && i.alignmentOffset ? {} : {
372
+ x: r + d.x,
373
+ y: n + d.y,
374
374
  data: {
375
- ...g,
376
- placement: i
375
+ ...d,
376
+ placement: s
377
377
  }
378
378
  };
379
379
  }
380
380
  };
381
- }, ge = function(t) {
381
+ }, de = function(t) {
382
382
  return t === void 0 && (t = {}), {
383
383
  name: "shift",
384
384
  options: t,
385
385
  async fn(e) {
386
386
  const {
387
- x: d,
388
- y: o,
389
- placement: f,
387
+ x: m,
388
+ y: i,
389
+ placement: r,
390
390
  platform: n
391
391
  } = e, {
392
- mainAxis: i = !0,
393
- crossAxis: s = !1,
394
- limiter: g = {
392
+ mainAxis: s = !0,
393
+ crossAxis: o = !1,
394
+ limiter: d = {
395
395
  fn: (w) => {
396
396
  let {
397
- x: v,
397
+ x: y,
398
398
  y: p
399
399
  } = w;
400
400
  return {
401
- x: v,
401
+ x: y,
402
402
  y: p
403
403
  };
404
404
  }
405
405
  },
406
- ...x
407
- } = _(t, e), c = {
408
- x: d,
409
- y: o
410
- }, r = await n.detectOverflow(e, x), m = F(W(f)), a = te(m);
411
- let l = c[a], u = c[m];
412
- if (i) {
413
- const w = a === "y" ? "top" : "left", v = a === "y" ? "bottom" : "right", p = l + r[w], y = l - r[v];
414
- l = Y(p, l, y);
415
- }
406
+ ...u
407
+ } = M(t, e), g = {
408
+ x: m,
409
+ y: i
410
+ }, l = await n.detectOverflow(e, u), f = F(B(r)), a = ee(f);
411
+ let c = g[a], x = g[f];
416
412
  if (s) {
417
- const w = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", p = u + r[w], y = u - r[v];
418
- u = Y(p, u, y);
413
+ const w = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", p = c + l[w], v = c - l[y];
414
+ c = _(p, c, v);
415
+ }
416
+ if (o) {
417
+ const w = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", p = x + l[w], v = x - l[y];
418
+ x = _(p, x, v);
419
419
  }
420
- const h = g.fn({
420
+ const h = d.fn({
421
421
  ...e,
422
- [a]: l,
423
- [m]: u
422
+ [a]: c,
423
+ [f]: x
424
424
  });
425
425
  return {
426
426
  ...h,
427
427
  data: {
428
- x: h.x - d,
429
- y: h.y - o,
428
+ x: h.x - m,
429
+ y: h.y - i,
430
430
  enabled: {
431
- [a]: i,
432
- [m]: s
431
+ [a]: s,
432
+ [f]: o
433
433
  }
434
434
  }
435
435
  };
436
436
  }
437
437
  };
438
- }, ue = function(t) {
439
- return t === void 0 && (t = {}), {
440
- name: "size",
441
- options: t,
442
- async fn(e) {
443
- var d, o;
444
- const {
445
- placement: f,
446
- rects: n,
447
- platform: i,
448
- elements: s
449
- } = e, {
450
- apply: g = () => {
451
- },
452
- ...x
453
- } = _(t, e), c = await i.detectOverflow(e, x), r = W(f), m = B(f), a = F(f) === "y", {
454
- width: l,
455
- height: u
456
- } = n.floating;
457
- let h, w;
458
- r === "top" || r === "bottom" ? (h = r, w = m === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = r, h = m === "end" ? "top" : "bottom");
459
- const v = u - c.top - c.bottom, p = l - c.left - c.right, y = j(u - c[h], v), O = j(l - c[w], p), A = !e.middlewareData.shift;
460
- let R = y, E = O;
461
- if ((d = e.middlewareData.shift) != null && d.enabled.x && (E = p), (o = e.middlewareData.shift) != null && o.enabled.y && (R = v), A && !m) {
462
- const P = $(c.left, 0), L = $(c.right, 0), k = $(c.top, 0), M = $(c.bottom, 0);
463
- a ? E = l - 2 * (P !== 0 || L !== 0 ? P + L : $(c.left, c.right)) : R = u - 2 * (k !== 0 || M !== 0 ? k + M : $(c.top, c.bottom));
464
- }
465
- await g({
466
- ...e,
467
- availableWidth: E,
468
- availableHeight: R
469
- });
470
- const D = await i.getDimensions(s.floating);
471
- return l !== D.width || u !== D.height ? {
472
- reset: {
473
- rects: !0
474
- }
475
- } : {};
476
- }
477
- };
478
438
  };
479
439
  export {
480
- re as arrow,
440
+ le as arrow,
481
441
  ce as computePosition,
482
- ie as detectOverflow,
483
- fe as flip,
484
- me as hide,
485
- de as offset,
486
- z as rectToClientRect,
487
- ge as shift,
488
- ue as size
442
+ ne as detectOverflow,
443
+ re as flip,
444
+ fe as hide,
445
+ me as offset,
446
+ Y as rectToClientRect,
447
+ de as shift
489
448
  };