@hortiview/shared-components 2.8.6 → 2.8.8

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 (133) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
  3. package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
  4. package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
  5. package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
  6. package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
  7. package/dist/_Map-BmafU0dj.js +113 -0
  8. package/dist/assets/FormSelect.css +1 -1
  9. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  10. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  11. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  12. package/dist/components/BaseView/BaseView.js +2 -2
  13. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  14. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  15. package/dist/components/BlockView/BlockView.js +1 -1
  16. package/dist/components/ChipCard/ChipCard.js +499 -390
  17. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  18. package/dist/components/DeleteModal/DeleteModal.js +5 -5
  19. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  21. package/dist/components/EmptyView/EmptyView.js +161 -125
  22. package/dist/components/Filter/Filter.js +11 -11
  23. package/dist/components/Filter/Filter.test.js +51 -35
  24. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  27. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  28. package/dist/components/FormComponents/FormSelect/FormSelect.js +53 -53
  29. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  30. package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
  31. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  32. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  33. package/dist/components/GenericTable/GenericTable.js +8246 -7153
  34. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  35. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  36. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  37. package/dist/components/HashTabView/HashTabView.js +552 -541
  38. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  39. package/dist/components/Iconify/Iconify.js +2 -2
  40. package/dist/components/InfoCard/InfoCard.js +4 -4
  41. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  42. package/dist/components/ListArea/ListArea.js +16 -16
  43. package/dist/components/ListArea/ListArea.test.js +20 -20
  44. package/dist/components/ListArea/ListAreaService.js +6 -6
  45. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  46. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  47. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
  48. package/dist/components/Modal/Modal.js +305 -312
  49. package/dist/components/ModulePadding/ModulePadding.js +8 -8
  50. package/dist/components/OfflineView/OfflineView.js +4 -4
  51. package/dist/components/OfflineView/OfflineView.test.js +1 -1
  52. package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
  53. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  54. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  55. package/dist/components/SearchBar/SearchBar.js +2 -2
  56. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  57. package/dist/components/Select/Select.js +2 -2
  58. package/dist/components/Stepper/Stepper.js +1 -1
  59. package/dist/components/Stepper/components/StepperButton.js +1 -1
  60. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  61. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  62. package/dist/defineProperty-CmuOyxyf.js +318 -0
  63. package/dist/es.string.iterator-DrqCBub-.js +581 -0
  64. package/dist/find-B-dm7n_F.js +88 -0
  65. package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
  66. package/dist/get-u1nFMLdT.js +377 -0
  67. package/dist/hooks/useHelperText.js +1 -1
  68. package/dist/identity-BIZAN_pL.js +213 -0
  69. package/dist/includes-Bt-Stz_B.js +110 -0
  70. package/dist/index-Cpb-8cAN.js +2465 -0
  71. package/dist/index.es-0QJC9VS2.js +325 -0
  72. package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
  73. package/dist/index.es-B6ZgiW2s.js +3790 -0
  74. package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
  75. package/dist/index.es-BRtk0Q33.js +42 -0
  76. package/dist/index.es-BXj90wb_.js +402 -0
  77. package/dist/index.es-Bg8hxXM8.js +912 -0
  78. package/dist/index.es-Bgjh6euR.js +292 -0
  79. package/dist/index.es-Bo1Rhtyb.js +80 -0
  80. package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
  81. package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
  82. package/dist/index.es-CmF6xAUJ.js +48 -0
  83. package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
  84. package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
  85. package/dist/index.es-DDYCugj-.js +166 -0
  86. package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
  87. package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
  88. package/dist/index.es-DeF-y7fd.js +122 -0
  89. package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
  90. package/dist/index.es-DqSY-ePE.js +4923 -0
  91. package/dist/index.es-DwzB1d7_.js +1061 -0
  92. package/dist/index.es-IXyb5F6n.js +457 -0
  93. package/dist/index.es-t7hFwQSs.js +67 -0
  94. package/dist/isArray-DN9s620O.js +83 -0
  95. package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
  97. package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
  98. package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
  99. package/dist/keyboard-B-WUULl-.js +173 -0
  100. package/dist/main.js +2 -2
  101. package/dist/map-Dbvlv_6y.js +707 -0
  102. package/dist/omit-uTAyrUTm.js +645 -0
  103. package/dist/orderBy-BXxEvUw6.js +571 -0
  104. package/dist/parse-int-qVAoFbOL.js +75 -0
  105. package/dist/services/UtilService.js +7 -7
  106. package/dist/slicedToArray-BWk2gTCn.js +436 -0
  107. package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
  108. package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
  109. package/package.json +3 -3
  110. package/dist/_baseIsEqual-Df2URKWm.js +0 -240
  111. package/dist/_getAllKeys-BQWmkEw5.js +0 -86
  112. package/dist/_getTag-BkGSRa18.js +0 -79
  113. package/dist/_setToString-B6E13pDg.js +0 -580
  114. package/dist/get-DQr2KQKm.js +0 -113
  115. package/dist/index-D5m--65X.js +0 -1491
  116. package/dist/index.es-8MVlRCi4.js +0 -1066
  117. package/dist/index.es-BbaCXS9-.js +0 -45
  118. package/dist/index.es-BikIx4uw.js +0 -3242
  119. package/dist/index.es-CDMu_yu0.js +0 -954
  120. package/dist/index.es-ChSlnpSq.js +0 -309
  121. package/dist/index.es-D66OkZJH.js +0 -4853
  122. package/dist/index.es-DFFyENnI.js +0 -63
  123. package/dist/index.es-DTMwaJ6B.js +0 -56
  124. package/dist/index.es-DgTJmbgD.js +0 -268
  125. package/dist/index.es-DmsyeHLO.js +0 -306
  126. package/dist/index.es-Dw1eih7R.js +0 -159
  127. package/dist/index.es-eKuwB1ll.js +0 -54
  128. package/dist/index.es-qxTN-Bb2.js +0 -107
  129. package/dist/index.es-xnSvM9b9.js +0 -444
  130. package/dist/isArray-DDZrq40X.js +0 -456
  131. package/dist/keyboard-Bpt0aBqQ.js +0 -107
  132. package/dist/omit-BN3qeeaj.js +0 -364
  133. package/dist/orderBy-D4LvP9Az.js +0 -316
@@ -1,1066 +0,0 @@
1
- import { c as vt, _ as mt, P as B } from "./index-D5m--65X.js";
2
- import gt, { forwardRef as ht, useRef as Ae, useImperativeHandle as yt } from "react";
3
- import { u as bt, c as wt, b as xt, d as Ot } from "./index.es-ChSlnpSq.js";
4
- var j = "top", S = "bottom", H = "right", $ = "left", ke = "auto", fe = [j, S, H, $], Z = "start", se = "end", Pt = "clippingParents", _e = "viewport", ae = "popper", At = "reference", qe = /* @__PURE__ */ fe.reduce(function(e, t) {
5
- return e.concat([t + "-" + Z, t + "-" + se]);
6
- }, []), et = /* @__PURE__ */ [].concat(fe, [ke]).reduce(function(e, t) {
7
- return e.concat([t, t + "-" + Z, t + "-" + se]);
8
- }, []), Et = "beforeRead", Rt = "read", kt = "afterRead", Dt = "beforeMain", Bt = "main", jt = "afterMain", $t = "beforeWrite", Tt = "write", Ct = "afterWrite", Lt = [Et, Rt, kt, Dt, Bt, jt, $t, Tt, Ct];
9
- function N(e) {
10
- return e ? (e.nodeName || "").toLowerCase() : null;
11
- }
12
- function C(e) {
13
- if (e == null)
14
- return window;
15
- if (e.toString() !== "[object Window]") {
16
- var t = e.ownerDocument;
17
- return t && t.defaultView || window;
18
- }
19
- return e;
20
- }
21
- function K(e) {
22
- var t = C(e).Element;
23
- return e instanceof t || e instanceof Element;
24
- }
25
- function L(e) {
26
- var t = C(e).HTMLElement;
27
- return e instanceof t || e instanceof HTMLElement;
28
- }
29
- function De(e) {
30
- if (typeof ShadowRoot > "u")
31
- return !1;
32
- var t = C(e).ShadowRoot;
33
- return e instanceof t || e instanceof ShadowRoot;
34
- }
35
- function St(e) {
36
- var t = e.state;
37
- Object.keys(t.elements).forEach(function(r) {
38
- var n = t.styles[r] || {}, a = t.attributes[r] || {}, o = t.elements[r];
39
- !L(o) || !N(o) || (Object.assign(o.style, n), Object.keys(a).forEach(function(c) {
40
- var l = a[c];
41
- l === !1 ? o.removeAttribute(c) : o.setAttribute(c, l === !0 ? "" : l);
42
- }));
43
- });
44
- }
45
- function Ht(e) {
46
- var t = e.state, r = {
47
- popper: {
48
- position: t.options.strategy,
49
- left: "0",
50
- top: "0",
51
- margin: "0"
52
- },
53
- arrow: {
54
- position: "absolute"
55
- },
56
- reference: {}
57
- };
58
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
59
- Object.keys(t.elements).forEach(function(n) {
60
- var a = t.elements[n], o = t.attributes[n] || {}, c = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), l = c.reduce(function(i, p) {
61
- return i[p] = "", i;
62
- }, {});
63
- !L(a) || !N(a) || (Object.assign(a.style, l), Object.keys(o).forEach(function(i) {
64
- a.removeAttribute(i);
65
- }));
66
- });
67
- };
68
- }
69
- const Mt = {
70
- name: "applyStyles",
71
- enabled: !0,
72
- phase: "write",
73
- fn: St,
74
- effect: Ht,
75
- requires: ["computeStyles"]
76
- };
77
- function I(e) {
78
- return e.split("-")[0];
79
- }
80
- var J = Math.max, ye = Math.min, _ = Math.round;
81
- function Ee() {
82
- var e = navigator.userAgentData;
83
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
84
- return t.brand + "/" + t.version;
85
- }).join(" ") : navigator.userAgent;
86
- }
87
- function tt() {
88
- return !/^((?!chrome|android).)*safari/i.test(Ee());
89
- }
90
- function ee(e, t, r) {
91
- t === void 0 && (t = !1), r === void 0 && (r = !1);
92
- var n = e.getBoundingClientRect(), a = 1, o = 1;
93
- t && L(e) && (a = e.offsetWidth > 0 && _(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && _(n.height) / e.offsetHeight || 1);
94
- var c = K(e) ? C(e) : window, l = c.visualViewport, i = !tt() && r, p = (n.left + (i && l ? l.offsetLeft : 0)) / a, f = (n.top + (i && l ? l.offsetTop : 0)) / o, m = n.width / a, b = n.height / o;
95
- return {
96
- width: m,
97
- height: b,
98
- top: f,
99
- right: p + m,
100
- bottom: f + b,
101
- left: p,
102
- x: p,
103
- y: f
104
- };
105
- }
106
- function Be(e) {
107
- var t = ee(e), r = e.offsetWidth, n = e.offsetHeight;
108
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
109
- x: e.offsetLeft,
110
- y: e.offsetTop,
111
- width: r,
112
- height: n
113
- };
114
- }
115
- function rt(e, t) {
116
- var r = t.getRootNode && t.getRootNode();
117
- if (e.contains(t))
118
- return !0;
119
- if (r && De(r)) {
120
- var n = t;
121
- do {
122
- if (n && e.isSameNode(n))
123
- return !0;
124
- n = n.parentNode || n.host;
125
- } while (n);
126
- }
127
- return !1;
128
- }
129
- function V(e) {
130
- return C(e).getComputedStyle(e);
131
- }
132
- function Wt(e) {
133
- return ["table", "td", "th"].indexOf(N(e)) >= 0;
134
- }
135
- function F(e) {
136
- return ((K(e) ? e.ownerDocument : (
137
- // $FlowFixMe[prop-missing]
138
- e.document
139
- )) || window.document).documentElement;
140
- }
141
- function be(e) {
142
- return N(e) === "html" ? e : (
143
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
144
- // $FlowFixMe[incompatible-return]
145
- // $FlowFixMe[prop-missing]
146
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
147
- e.parentNode || // DOM Element detected
148
- (De(e) ? e.host : null) || // ShadowRoot detected
149
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
150
- F(e)
151
- );
152
- }
153
- function Xe(e) {
154
- return !L(e) || // https://github.com/popperjs/popper-core/issues/837
155
- V(e).position === "fixed" ? null : e.offsetParent;
156
- }
157
- function It(e) {
158
- var t = /firefox/i.test(Ee()), r = /Trident/i.test(Ee());
159
- if (r && L(e)) {
160
- var n = V(e);
161
- if (n.position === "fixed")
162
- return null;
163
- }
164
- var a = be(e);
165
- for (De(a) && (a = a.host); L(a) && ["html", "body"].indexOf(N(a)) < 0; ) {
166
- var o = V(a);
167
- if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
168
- return a;
169
- a = a.parentNode;
170
- }
171
- return null;
172
- }
173
- function ce(e) {
174
- for (var t = C(e), r = Xe(e); r && Wt(r) && V(r).position === "static"; )
175
- r = Xe(r);
176
- return r && (N(r) === "html" || N(r) === "body" && V(r).position === "static") ? t : r || It(e) || t;
177
- }
178
- function je(e) {
179
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
180
- }
181
- function oe(e, t, r) {
182
- return J(e, ye(t, r));
183
- }
184
- function Nt(e, t, r) {
185
- var n = oe(e, t, r);
186
- return n > r ? r : n;
187
- }
188
- function nt() {
189
- return {
190
- top: 0,
191
- right: 0,
192
- bottom: 0,
193
- left: 0
194
- };
195
- }
196
- function at(e) {
197
- return Object.assign({}, nt(), e);
198
- }
199
- function ot(e, t) {
200
- return t.reduce(function(r, n) {
201
- return r[n] = e, r;
202
- }, {});
203
- }
204
- var Vt = function(t, r) {
205
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
206
- placement: r.placement
207
- })) : t, at(typeof t != "number" ? t : ot(t, fe));
208
- };
209
- function zt(e) {
210
- var t, r = e.state, n = e.name, a = e.options, o = r.elements.arrow, c = r.modifiersData.popperOffsets, l = I(r.placement), i = je(l), p = [$, H].indexOf(l) >= 0, f = p ? "height" : "width";
211
- if (!(!o || !c)) {
212
- var m = Vt(a.padding, r), b = Be(o), s = i === "y" ? j : $, x = i === "y" ? S : H, d = r.rects.reference[f] + r.rects.reference[i] - c[i] - r.rects.popper[f], v = c[i] - r.rects.reference[i], g = ce(o), w = g ? i === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, O = d / 2 - v / 2, u = m[s], h = w - b[f] - m[x], y = w / 2 - b[f] / 2 + O, P = oe(u, y, h), R = i;
213
- r.modifiersData[n] = (t = {}, t[R] = P, t.centerOffset = P - y, t);
214
- }
215
- }
216
- function Ft(e) {
217
- var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
218
- a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || rt(t.elements.popper, a) && (t.elements.arrow = a));
219
- }
220
- const qt = {
221
- name: "arrow",
222
- enabled: !0,
223
- phase: "main",
224
- fn: zt,
225
- effect: Ft,
226
- requires: ["popperOffsets"],
227
- requiresIfExists: ["preventOverflow"]
228
- };
229
- function te(e) {
230
- return e.split("-")[1];
231
- }
232
- var Xt = {
233
- top: "auto",
234
- right: "auto",
235
- bottom: "auto",
236
- left: "auto"
237
- };
238
- function Yt(e, t) {
239
- var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
240
- return {
241
- x: _(r * a) / a || 0,
242
- y: _(n * a) / a || 0
243
- };
244
- }
245
- function Ye(e) {
246
- var t, r = e.popper, n = e.popperRect, a = e.placement, o = e.variation, c = e.offsets, l = e.position, i = e.gpuAcceleration, p = e.adaptive, f = e.roundOffsets, m = e.isFixed, b = c.x, s = b === void 0 ? 0 : b, x = c.y, d = x === void 0 ? 0 : x, v = typeof f == "function" ? f({
247
- x: s,
248
- y: d
249
- }) : {
250
- x: s,
251
- y: d
252
- };
253
- s = v.x, d = v.y;
254
- var g = c.hasOwnProperty("x"), w = c.hasOwnProperty("y"), O = $, u = j, h = window;
255
- if (p) {
256
- var y = ce(r), P = "clientHeight", R = "clientWidth";
257
- if (y === C(r) && (y = F(r), V(y).position !== "static" && l === "absolute" && (P = "scrollHeight", R = "scrollWidth")), y = y, a === j || (a === $ || a === H) && o === se) {
258
- u = S;
259
- var E = m && y === h && h.visualViewport ? h.visualViewport.height : (
260
- // $FlowFixMe[prop-missing]
261
- y[P]
262
- );
263
- d -= E - n.height, d *= i ? 1 : -1;
264
- }
265
- if (a === $ || (a === j || a === S) && o === se) {
266
- O = H;
267
- var A = m && y === h && h.visualViewport ? h.visualViewport.width : (
268
- // $FlowFixMe[prop-missing]
269
- y[R]
270
- );
271
- s -= A - n.width, s *= i ? 1 : -1;
272
- }
273
- }
274
- var k = Object.assign({
275
- position: l
276
- }, p && Xt), M = f === !0 ? Yt({
277
- x: s,
278
- y: d
279
- }, C(r)) : {
280
- x: s,
281
- y: d
282
- };
283
- if (s = M.x, d = M.y, i) {
284
- var D;
285
- return Object.assign({}, k, (D = {}, D[u] = w ? "0" : "", D[O] = g ? "0" : "", D.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + s + "px, " + d + "px)" : "translate3d(" + s + "px, " + d + "px, 0)", D));
286
- }
287
- return Object.assign({}, k, (t = {}, t[u] = w ? d + "px" : "", t[O] = g ? s + "px" : "", t.transform = "", t));
288
- }
289
- function Ut(e) {
290
- var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, o = r.adaptive, c = o === void 0 ? !0 : o, l = r.roundOffsets, i = l === void 0 ? !0 : l, p = {
291
- placement: I(t.placement),
292
- variation: te(t.placement),
293
- popper: t.elements.popper,
294
- popperRect: t.rects.popper,
295
- gpuAcceleration: a,
296
- isFixed: t.options.strategy === "fixed"
297
- };
298
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ye(Object.assign({}, p, {
299
- offsets: t.modifiersData.popperOffsets,
300
- position: t.options.strategy,
301
- adaptive: c,
302
- roundOffsets: i
303
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ye(Object.assign({}, p, {
304
- offsets: t.modifiersData.arrow,
305
- position: "absolute",
306
- adaptive: !1,
307
- roundOffsets: i
308
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
309
- "data-popper-placement": t.placement
310
- });
311
- }
312
- const Gt = {
313
- name: "computeStyles",
314
- enabled: !0,
315
- phase: "beforeWrite",
316
- fn: Ut,
317
- data: {}
318
- };
319
- var ge = {
320
- passive: !0
321
- };
322
- function Jt(e) {
323
- var t = e.state, r = e.instance, n = e.options, a = n.scroll, o = a === void 0 ? !0 : a, c = n.resize, l = c === void 0 ? !0 : c, i = C(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
324
- return o && p.forEach(function(f) {
325
- f.addEventListener("scroll", r.update, ge);
326
- }), l && i.addEventListener("resize", r.update, ge), function() {
327
- o && p.forEach(function(f) {
328
- f.removeEventListener("scroll", r.update, ge);
329
- }), l && i.removeEventListener("resize", r.update, ge);
330
- };
331
- }
332
- const Kt = {
333
- name: "eventListeners",
334
- enabled: !0,
335
- phase: "write",
336
- fn: function() {
337
- },
338
- effect: Jt,
339
- data: {}
340
- };
341
- var Qt = {
342
- left: "right",
343
- right: "left",
344
- bottom: "top",
345
- top: "bottom"
346
- };
347
- function he(e) {
348
- return e.replace(/left|right|bottom|top/g, function(t) {
349
- return Qt[t];
350
- });
351
- }
352
- var Zt = {
353
- start: "end",
354
- end: "start"
355
- };
356
- function Ue(e) {
357
- return e.replace(/start|end/g, function(t) {
358
- return Zt[t];
359
- });
360
- }
361
- function $e(e) {
362
- var t = C(e), r = t.pageXOffset, n = t.pageYOffset;
363
- return {
364
- scrollLeft: r,
365
- scrollTop: n
366
- };
367
- }
368
- function Te(e) {
369
- return ee(F(e)).left + $e(e).scrollLeft;
370
- }
371
- function _t(e, t) {
372
- var r = C(e), n = F(e), a = r.visualViewport, o = n.clientWidth, c = n.clientHeight, l = 0, i = 0;
373
- if (a) {
374
- o = a.width, c = a.height;
375
- var p = tt();
376
- (p || !p && t === "fixed") && (l = a.offsetLeft, i = a.offsetTop);
377
- }
378
- return {
379
- width: o,
380
- height: c,
381
- x: l + Te(e),
382
- y: i
383
- };
384
- }
385
- function er(e) {
386
- var t, r = F(e), n = $e(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, o = J(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = J(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), l = -n.scrollLeft + Te(e), i = -n.scrollTop;
387
- return V(a || r).direction === "rtl" && (l += J(r.clientWidth, a ? a.clientWidth : 0) - o), {
388
- width: o,
389
- height: c,
390
- x: l,
391
- y: i
392
- };
393
- }
394
- function Ce(e) {
395
- var t = V(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
396
- return /auto|scroll|overlay|hidden/.test(r + a + n);
397
- }
398
- function it(e) {
399
- return ["html", "body", "#document"].indexOf(N(e)) >= 0 ? e.ownerDocument.body : L(e) && Ce(e) ? e : it(be(e));
400
- }
401
- function ie(e, t) {
402
- var r;
403
- t === void 0 && (t = []);
404
- var n = it(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = C(n), c = a ? [o].concat(o.visualViewport || [], Ce(n) ? n : []) : n, l = t.concat(c);
405
- return a ? l : (
406
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
407
- l.concat(ie(be(c)))
408
- );
409
- }
410
- function Re(e) {
411
- return Object.assign({}, e, {
412
- left: e.x,
413
- top: e.y,
414
- right: e.x + e.width,
415
- bottom: e.y + e.height
416
- });
417
- }
418
- function tr(e, t) {
419
- var r = ee(e, !1, t === "fixed");
420
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
421
- }
422
- function Ge(e, t, r) {
423
- return t === _e ? Re(_t(e, r)) : K(t) ? tr(t, r) : Re(er(F(e)));
424
- }
425
- function rr(e) {
426
- var t = ie(be(e)), r = ["absolute", "fixed"].indexOf(V(e).position) >= 0, n = r && L(e) ? ce(e) : e;
427
- return K(n) ? t.filter(function(a) {
428
- return K(a) && rt(a, n) && N(a) !== "body";
429
- }) : [];
430
- }
431
- function nr(e, t, r, n) {
432
- var a = t === "clippingParents" ? rr(e) : [].concat(t), o = [].concat(a, [r]), c = o[0], l = o.reduce(function(i, p) {
433
- var f = Ge(e, p, n);
434
- return i.top = J(f.top, i.top), i.right = ye(f.right, i.right), i.bottom = ye(f.bottom, i.bottom), i.left = J(f.left, i.left), i;
435
- }, Ge(e, c, n));
436
- return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
437
- }
438
- function st(e) {
439
- var t = e.reference, r = e.element, n = e.placement, a = n ? I(n) : null, o = n ? te(n) : null, c = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, i;
440
- switch (a) {
441
- case j:
442
- i = {
443
- x: c,
444
- y: t.y - r.height
445
- };
446
- break;
447
- case S:
448
- i = {
449
- x: c,
450
- y: t.y + t.height
451
- };
452
- break;
453
- case H:
454
- i = {
455
- x: t.x + t.width,
456
- y: l
457
- };
458
- break;
459
- case $:
460
- i = {
461
- x: t.x - r.width,
462
- y: l
463
- };
464
- break;
465
- default:
466
- i = {
467
- x: t.x,
468
- y: t.y
469
- };
470
- }
471
- var p = a ? je(a) : null;
472
- if (p != null) {
473
- var f = p === "y" ? "height" : "width";
474
- switch (o) {
475
- case Z:
476
- i[p] = i[p] - (t[f] / 2 - r[f] / 2);
477
- break;
478
- case se:
479
- i[p] = i[p] + (t[f] / 2 - r[f] / 2);
480
- break;
481
- }
482
- }
483
- return i;
484
- }
485
- function le(e, t) {
486
- t === void 0 && (t = {});
487
- var r = t, n = r.placement, a = n === void 0 ? e.placement : n, o = r.strategy, c = o === void 0 ? e.strategy : o, l = r.boundary, i = l === void 0 ? Pt : l, p = r.rootBoundary, f = p === void 0 ? _e : p, m = r.elementContext, b = m === void 0 ? ae : m, s = r.altBoundary, x = s === void 0 ? !1 : s, d = r.padding, v = d === void 0 ? 0 : d, g = at(typeof v != "number" ? v : ot(v, fe)), w = b === ae ? At : ae, O = e.rects.popper, u = e.elements[x ? w : b], h = nr(K(u) ? u : u.contextElement || F(e.elements.popper), i, f, c), y = ee(e.elements.reference), P = st({
488
- reference: y,
489
- element: O,
490
- placement: a
491
- }), R = Re(Object.assign({}, O, P)), E = b === ae ? R : y, A = {
492
- top: h.top - E.top + g.top,
493
- bottom: E.bottom - h.bottom + g.bottom,
494
- left: h.left - E.left + g.left,
495
- right: E.right - h.right + g.right
496
- }, k = e.modifiersData.offset;
497
- if (b === ae && k) {
498
- var M = k[a];
499
- Object.keys(A).forEach(function(D) {
500
- var q = [H, S].indexOf(D) >= 0 ? 1 : -1, X = [j, S].indexOf(D) >= 0 ? "y" : "x";
501
- A[D] += M[X] * q;
502
- });
503
- }
504
- return A;
505
- }
506
- function ar(e, t) {
507
- t === void 0 && (t = {});
508
- var r = t, n = r.placement, a = r.boundary, o = r.rootBoundary, c = r.padding, l = r.flipVariations, i = r.allowedAutoPlacements, p = i === void 0 ? et : i, f = te(n), m = f ? l ? qe : qe.filter(function(x) {
509
- return te(x) === f;
510
- }) : fe, b = m.filter(function(x) {
511
- return p.indexOf(x) >= 0;
512
- });
513
- b.length === 0 && (b = m);
514
- var s = b.reduce(function(x, d) {
515
- return x[d] = le(e, {
516
- placement: d,
517
- boundary: a,
518
- rootBoundary: o,
519
- padding: c
520
- })[I(d)], x;
521
- }, {});
522
- return Object.keys(s).sort(function(x, d) {
523
- return s[x] - s[d];
524
- });
525
- }
526
- function or(e) {
527
- if (I(e) === ke)
528
- return [];
529
- var t = he(e);
530
- return [Ue(e), t, Ue(t)];
531
- }
532
- function ir(e) {
533
- var t = e.state, r = e.options, n = e.name;
534
- if (!t.modifiersData[n]._skip) {
535
- for (var a = r.mainAxis, o = a === void 0 ? !0 : a, c = r.altAxis, l = c === void 0 ? !0 : c, i = r.fallbackPlacements, p = r.padding, f = r.boundary, m = r.rootBoundary, b = r.altBoundary, s = r.flipVariations, x = s === void 0 ? !0 : s, d = r.allowedAutoPlacements, v = t.options.placement, g = I(v), w = g === v, O = i || (w || !x ? [he(v)] : or(v)), u = [v].concat(O).reduce(function(Q, z) {
536
- return Q.concat(I(z) === ke ? ar(t, {
537
- placement: z,
538
- boundary: f,
539
- rootBoundary: m,
540
- padding: p,
541
- flipVariations: x,
542
- allowedAutoPlacements: d
543
- }) : z);
544
- }, []), h = t.rects.reference, y = t.rects.popper, P = /* @__PURE__ */ new Map(), R = !0, E = u[0], A = 0; A < u.length; A++) {
545
- var k = u[A], M = I(k), D = te(k) === Z, q = [j, S].indexOf(M) >= 0, X = q ? "width" : "height", T = le(t, {
546
- placement: k,
547
- boundary: f,
548
- rootBoundary: m,
549
- altBoundary: b,
550
- padding: p
551
- }), W = q ? D ? H : $ : D ? S : j;
552
- h[X] > y[X] && (W = he(W));
553
- var pe = he(W), Y = [];
554
- if (o && Y.push(T[M] <= 0), l && Y.push(T[W] <= 0, T[pe] <= 0), Y.every(function(Q) {
555
- return Q;
556
- })) {
557
- E = k, R = !1;
558
- break;
559
- }
560
- P.set(k, Y);
561
- }
562
- if (R)
563
- for (var ue = x ? 3 : 1, we = function(z) {
564
- var ne = u.find(function(ve) {
565
- var U = P.get(ve);
566
- if (U)
567
- return U.slice(0, z).every(function(xe) {
568
- return xe;
569
- });
570
- });
571
- if (ne)
572
- return E = ne, "break";
573
- }, re = ue; re > 0; re--) {
574
- var de = we(re);
575
- if (de === "break") break;
576
- }
577
- t.placement !== E && (t.modifiersData[n]._skip = !0, t.placement = E, t.reset = !0);
578
- }
579
- }
580
- const sr = {
581
- name: "flip",
582
- enabled: !0,
583
- phase: "main",
584
- fn: ir,
585
- requiresIfExists: ["offset"],
586
- data: {
587
- _skip: !1
588
- }
589
- };
590
- function Je(e, t, r) {
591
- return r === void 0 && (r = {
592
- x: 0,
593
- y: 0
594
- }), {
595
- top: e.top - t.height - r.y,
596
- right: e.right - t.width + r.x,
597
- bottom: e.bottom - t.height + r.y,
598
- left: e.left - t.width - r.x
599
- };
600
- }
601
- function Ke(e) {
602
- return [j, H, S, $].some(function(t) {
603
- return e[t] >= 0;
604
- });
605
- }
606
- function lr(e) {
607
- var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, o = t.modifiersData.preventOverflow, c = le(t, {
608
- elementContext: "reference"
609
- }), l = le(t, {
610
- altBoundary: !0
611
- }), i = Je(c, n), p = Je(l, a, o), f = Ke(i), m = Ke(p);
612
- t.modifiersData[r] = {
613
- referenceClippingOffsets: i,
614
- popperEscapeOffsets: p,
615
- isReferenceHidden: f,
616
- hasPopperEscaped: m
617
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
618
- "data-popper-reference-hidden": f,
619
- "data-popper-escaped": m
620
- });
621
- }
622
- const fr = {
623
- name: "hide",
624
- enabled: !0,
625
- phase: "main",
626
- requiresIfExists: ["preventOverflow"],
627
- fn: lr
628
- };
629
- function cr(e, t, r) {
630
- var n = I(e), a = [$, j].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
631
- placement: e
632
- })) : r, c = o[0], l = o[1];
633
- return c = c || 0, l = (l || 0) * a, [$, H].indexOf(n) >= 0 ? {
634
- x: l,
635
- y: c
636
- } : {
637
- x: c,
638
- y: l
639
- };
640
- }
641
- function pr(e) {
642
- var t = e.state, r = e.options, n = e.name, a = r.offset, o = a === void 0 ? [0, 0] : a, c = et.reduce(function(f, m) {
643
- return f[m] = cr(m, t.rects, o), f;
644
- }, {}), l = c[t.placement], i = l.x, p = l.y;
645
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += p), t.modifiersData[n] = c;
646
- }
647
- const ur = {
648
- name: "offset",
649
- enabled: !0,
650
- phase: "main",
651
- requires: ["popperOffsets"],
652
- fn: pr
653
- };
654
- function dr(e) {
655
- var t = e.state, r = e.name;
656
- t.modifiersData[r] = st({
657
- reference: t.rects.reference,
658
- element: t.rects.popper,
659
- placement: t.placement
660
- });
661
- }
662
- const vr = {
663
- name: "popperOffsets",
664
- enabled: !0,
665
- phase: "read",
666
- fn: dr,
667
- data: {}
668
- };
669
- function mr(e) {
670
- return e === "x" ? "y" : "x";
671
- }
672
- function gr(e) {
673
- var t = e.state, r = e.options, n = e.name, a = r.mainAxis, o = a === void 0 ? !0 : a, c = r.altAxis, l = c === void 0 ? !1 : c, i = r.boundary, p = r.rootBoundary, f = r.altBoundary, m = r.padding, b = r.tether, s = b === void 0 ? !0 : b, x = r.tetherOffset, d = x === void 0 ? 0 : x, v = le(t, {
674
- boundary: i,
675
- rootBoundary: p,
676
- padding: m,
677
- altBoundary: f
678
- }), g = I(t.placement), w = te(t.placement), O = !w, u = je(g), h = mr(u), y = t.modifiersData.popperOffsets, P = t.rects.reference, R = t.rects.popper, E = typeof d == "function" ? d(Object.assign({}, t.rects, {
679
- placement: t.placement
680
- })) : d, A = typeof E == "number" ? {
681
- mainAxis: E,
682
- altAxis: E
683
- } : Object.assign({
684
- mainAxis: 0,
685
- altAxis: 0
686
- }, E), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
687
- x: 0,
688
- y: 0
689
- };
690
- if (y) {
691
- if (o) {
692
- var D, q = u === "y" ? j : $, X = u === "y" ? S : H, T = u === "y" ? "height" : "width", W = y[u], pe = W + v[q], Y = W - v[X], ue = s ? -R[T] / 2 : 0, we = w === Z ? P[T] : R[T], re = w === Z ? -R[T] : -P[T], de = t.elements.arrow, Q = s && de ? Be(de) : {
693
- width: 0,
694
- height: 0
695
- }, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : nt(), ne = z[q], ve = z[X], U = oe(0, P[T], Q[T]), xe = O ? P[T] / 2 - ue - U - ne - A.mainAxis : we - U - ne - A.mainAxis, lt = O ? -P[T] / 2 + ue + U + ve + A.mainAxis : re + U + ve + A.mainAxis, Oe = t.elements.arrow && ce(t.elements.arrow), ft = Oe ? u === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, Se = (D = k?.[u]) != null ? D : 0, ct = W + xe - Se - ft, pt = W + lt - Se, He = oe(s ? ye(pe, ct) : pe, W, s ? J(Y, pt) : Y);
696
- y[u] = He, M[u] = He - W;
697
- }
698
- if (l) {
699
- var Me, ut = u === "x" ? j : $, dt = u === "x" ? S : H, G = y[h], me = h === "y" ? "height" : "width", We = G + v[ut], Ie = G - v[dt], Pe = [j, $].indexOf(g) !== -1, Ne = (Me = k?.[h]) != null ? Me : 0, Ve = Pe ? We : G - P[me] - R[me] - Ne + A.altAxis, ze = Pe ? G + P[me] + R[me] - Ne - A.altAxis : Ie, Fe = s && Pe ? Nt(Ve, G, ze) : oe(s ? Ve : We, G, s ? ze : Ie);
700
- y[h] = Fe, M[h] = Fe - G;
701
- }
702
- t.modifiersData[n] = M;
703
- }
704
- }
705
- const hr = {
706
- name: "preventOverflow",
707
- enabled: !0,
708
- phase: "main",
709
- fn: gr,
710
- requiresIfExists: ["offset"]
711
- };
712
- function yr(e) {
713
- return {
714
- scrollLeft: e.scrollLeft,
715
- scrollTop: e.scrollTop
716
- };
717
- }
718
- function br(e) {
719
- return e === C(e) || !L(e) ? $e(e) : yr(e);
720
- }
721
- function wr(e) {
722
- var t = e.getBoundingClientRect(), r = _(t.width) / e.offsetWidth || 1, n = _(t.height) / e.offsetHeight || 1;
723
- return r !== 1 || n !== 1;
724
- }
725
- function xr(e, t, r) {
726
- r === void 0 && (r = !1);
727
- var n = L(t), a = L(t) && wr(t), o = F(t), c = ee(e, a, r), l = {
728
- scrollLeft: 0,
729
- scrollTop: 0
730
- }, i = {
731
- x: 0,
732
- y: 0
733
- };
734
- return (n || !n && !r) && ((N(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
735
- Ce(o)) && (l = br(t)), L(t) ? (i = ee(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : o && (i.x = Te(o))), {
736
- x: c.left + l.scrollLeft - i.x,
737
- y: c.top + l.scrollTop - i.y,
738
- width: c.width,
739
- height: c.height
740
- };
741
- }
742
- function Or(e) {
743
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
744
- e.forEach(function(o) {
745
- t.set(o.name, o);
746
- });
747
- function a(o) {
748
- r.add(o.name);
749
- var c = [].concat(o.requires || [], o.requiresIfExists || []);
750
- c.forEach(function(l) {
751
- if (!r.has(l)) {
752
- var i = t.get(l);
753
- i && a(i);
754
- }
755
- }), n.push(o);
756
- }
757
- return e.forEach(function(o) {
758
- r.has(o.name) || a(o);
759
- }), n;
760
- }
761
- function Pr(e) {
762
- var t = Or(e);
763
- return Lt.reduce(function(r, n) {
764
- return r.concat(t.filter(function(a) {
765
- return a.phase === n;
766
- }));
767
- }, []);
768
- }
769
- function Ar(e) {
770
- var t;
771
- return function() {
772
- return t || (t = new Promise(function(r) {
773
- Promise.resolve().then(function() {
774
- t = void 0, r(e());
775
- });
776
- })), t;
777
- };
778
- }
779
- function Er(e) {
780
- var t = e.reduce(function(r, n) {
781
- var a = r[n.name];
782
- return r[n.name] = a ? Object.assign({}, a, n, {
783
- options: Object.assign({}, a.options, n.options),
784
- data: Object.assign({}, a.data, n.data)
785
- }) : n, r;
786
- }, {});
787
- return Object.keys(t).map(function(r) {
788
- return t[r];
789
- });
790
- }
791
- var Qe = {
792
- placement: "bottom",
793
- modifiers: [],
794
- strategy: "absolute"
795
- };
796
- function Ze() {
797
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
798
- t[r] = arguments[r];
799
- return !t.some(function(n) {
800
- return !(n && typeof n.getBoundingClientRect == "function");
801
- });
802
- }
803
- function Rr(e) {
804
- e === void 0 && (e = {});
805
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, o = a === void 0 ? Qe : a;
806
- return function(l, i, p) {
807
- p === void 0 && (p = o);
808
- var f = {
809
- placement: "bottom",
810
- orderedModifiers: [],
811
- options: Object.assign({}, Qe, o),
812
- modifiersData: {},
813
- elements: {
814
- reference: l,
815
- popper: i
816
- },
817
- attributes: {},
818
- styles: {}
819
- }, m = [], b = !1, s = {
820
- state: f,
821
- setOptions: function(g) {
822
- var w = typeof g == "function" ? g(f.options) : g;
823
- d(), f.options = Object.assign({}, o, f.options, w), f.scrollParents = {
824
- reference: K(l) ? ie(l) : l.contextElement ? ie(l.contextElement) : [],
825
- popper: ie(i)
826
- };
827
- var O = Pr(Er([].concat(n, f.options.modifiers)));
828
- return f.orderedModifiers = O.filter(function(u) {
829
- return u.enabled;
830
- }), x(), s.update();
831
- },
832
- // Sync update – it will always be executed, even if not necessary. This
833
- // is useful for low frequency updates where sync behavior simplifies the
834
- // logic.
835
- // For high frequency updates (e.g. `resize` and `scroll` events), always
836
- // prefer the async Popper#update method
837
- forceUpdate: function() {
838
- if (!b) {
839
- var g = f.elements, w = g.reference, O = g.popper;
840
- if (Ze(w, O)) {
841
- f.rects = {
842
- reference: xr(w, ce(O), f.options.strategy === "fixed"),
843
- popper: Be(O)
844
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {
845
- return f.modifiersData[A.name] = Object.assign({}, A.data);
846
- });
847
- for (var u = 0; u < f.orderedModifiers.length; u++) {
848
- if (f.reset === !0) {
849
- f.reset = !1, u = -1;
850
- continue;
851
- }
852
- var h = f.orderedModifiers[u], y = h.fn, P = h.options, R = P === void 0 ? {} : P, E = h.name;
853
- typeof y == "function" && (f = y({
854
- state: f,
855
- options: R,
856
- name: E,
857
- instance: s
858
- }) || f);
859
- }
860
- }
861
- }
862
- },
863
- // Async and optimistically optimized update – it will not be executed if
864
- // not necessary (debounced to run at most once-per-tick)
865
- update: Ar(function() {
866
- return new Promise(function(v) {
867
- s.forceUpdate(), v(f);
868
- });
869
- }),
870
- destroy: function() {
871
- d(), b = !0;
872
- }
873
- };
874
- if (!Ze(l, i))
875
- return s;
876
- s.setOptions(p).then(function(v) {
877
- !b && p.onFirstUpdate && p.onFirstUpdate(v);
878
- });
879
- function x() {
880
- f.orderedModifiers.forEach(function(v) {
881
- var g = v.name, w = v.options, O = w === void 0 ? {} : w, u = v.effect;
882
- if (typeof u == "function") {
883
- var h = u({
884
- state: f,
885
- name: g,
886
- instance: s,
887
- options: O
888
- }), y = function() {
889
- };
890
- m.push(h || y);
891
- }
892
- });
893
- }
894
- function d() {
895
- m.forEach(function(v) {
896
- return v();
897
- }), m = [];
898
- }
899
- return s;
900
- };
901
- }
902
- var kr = [Kt, vr, Gt, Mt, ur, sr, hr, qt, fr], Dr = /* @__PURE__ */ Rr({
903
- defaultModifiers: kr
904
- });
905
- const Br = {
906
- /**
907
- * Sets the `aria-hidden` attribute for the icon. If set to true, the icon will not be read by screen readers. Should be used if icon is purely decorative (such as when used in a button or textfield) or labeled by rendered text using `aria-labelledBy` or `aria-label`.
908
- *
909
- * Defaults to **null**.
910
- */
911
- ariaHidden: B.bool,
912
- /**
913
- * Accessibility label for assistive technologies.
914
- *
915
- * Defaults to **null**.
916
- */
917
- ariaLabel: B.string,
918
- /**
919
- * Id of the component being labeled for assistive technologies.
920
- *
921
- * Defaults to **null**.
922
- */
923
- ariaLabelledBy: B.string,
924
- /**
925
- * The custom icon notification badge to be rendered. The icon notification badge component prevents `xsmall` and `small` icon size
926
- *
927
- * Defaults to **undefined**.
928
- */
929
- badge: B.node,
930
- /**
931
- * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
932
- *
933
- * Defaults to **'right-start'**.
934
- */
935
- badgePlacement: B.oneOf(["right-start", "left-start"]),
936
- /**
937
- * The css class name to be passed through to the component markup.
938
- *
939
- * Defaults to **undefined**.
940
- */
941
- className: B.string,
942
- /**
943
- * Mostly commonly a string but accepts any valid markup or components. If a custom icon is used styles like color and size will need be handled with custom CSS.
944
- *
945
- * Defaults to **null**.
946
- */
947
- icon: B.oneOfType([B.string, B.node]),
948
- /**
949
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
950
- *
951
- * Defaults to **'medium'**.
952
- */
953
- iconSize: B.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
954
- /**
955
- * The icon type to be rendered. Not all icons have every type. To see which icons are available for different types see [Material Icons docs](https://material.io/tools/icons)
956
- *
957
- * Defaults to **'filled'**.
958
- */
959
- iconType: B.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
960
- /**
961
- * Add pointer icon style
962
- *
963
- * Defaults to **false**.
964
- */
965
- pointer: B.bool,
966
- /**
967
- * @deprecated _Renamed, see iconSize instead._
968
- *
969
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
970
- *
971
- * Defaults to **undefined**.
972
- */
973
- size: Ot(B.oneOf(["xsmall", "small", "medium", "large", "xlarge"]), "Icon", "Renamed, see iconSize instead."),
974
- /**
975
- * Color variations. Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
976
- *
977
- * Defaults to **empty string**.
978
- */
979
- variant: xt(B.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark", "color-on-unknown-black", "secondary-on-surface", "blue", "gray", "green", "orange", "purple", "red", "teal", "yellow"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger", "muted"], "Icon", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark','color-on-unknown-black','secondary-on-surface','blue','gray','green','orange','purple','red','teal','yellow'.")
980
- }, jr = {
981
- ariaHidden: null,
982
- ariaLabel: null,
983
- ariaLabelledBy: null,
984
- badge: void 0,
985
- badgePlacement: "right-start",
986
- className: void 0,
987
- icon: null,
988
- iconSize: "medium",
989
- iconType: "filled",
990
- pointer: !1,
991
- size: void 0,
992
- variant: ""
993
- }, Le = /* @__PURE__ */ ht((e, t) => {
994
- const {
995
- ariaHidden: r,
996
- ariaLabel: n,
997
- ariaLabelledBy: a,
998
- badge: o,
999
- badgePlacement: c,
1000
- className: l,
1001
- icon: i,
1002
- iconType: p,
1003
- pointer: f,
1004
- size: m,
1005
- iconSize: b,
1006
- variant: s,
1007
- ...x
1008
- } = e, d = Ae(), v = Ae(), g = Ae();
1009
- let w = m || b;
1010
- o && (w === "xsmall" || w === "small") && (w = "medium"), yt(t, () => d.current, []), bt(() => {
1011
- if (o) {
1012
- let u;
1013
- o.props.counter != null ? u = [{
1014
- name: "flip",
1015
- options: {
1016
- fallbackPlacements: ["right", "left"]
1017
- }
1018
- }, {
1019
- name: "offset",
1020
- options: {
1021
- offset: (h) => {
1022
- let {
1023
- placement: y
1024
- } = h;
1025
- return y === "right-start" ? [-5, -10] : [-7, -10];
1026
- }
1027
- }
1028
- }] : u = [{
1029
- name: "flip",
1030
- options: {
1031
- fallbackPlacements: ["right-start", "left-start"]
1032
- }
1033
- }, {
1034
- name: "offset",
1035
- options: {
1036
- offset: [0, -10]
1037
- }
1038
- }], g.current = Dr(d.current, v.current, {
1039
- placement: c,
1040
- modifiers: u
1041
- });
1042
- }
1043
- return () => {
1044
- var u;
1045
- g == null || (u = g.current) === null || u === void 0 || u.destroy();
1046
- };
1047
- }, [o, c]);
1048
- const O = vt("lmnt", "lmnt-icon", p === "filled" && "material-icons", p === "outlined" && "material-icons-outlined", p === "rounded" && "material-icons-round", p === "two-tone" && "material-icons-two-tone", p === "sharp" && "material-icons-sharp", f && "lmnt-icon-pointer", w && `lmnt-icon--${w}`, (s === "primary" || s === "primary-alt" || s === "muted" || s === "danger" || s === "danger-alt" || s === "filled-primary" || s === "filled-secondary" || s === "filled-muted" || s === "filled-danger" || s === "filled-danger-alt" || s === "blue" || s === "gray" || s === "green" || s === "orange" || s === "purple" || s === "red" || s === "teal" || s === "yellow") && "lmnt-icon--fill", (s === "danger-alt" || s === "filled-danger-alt") && "lmnt-icon--fill-danger-alt", (s === "danger" || s === "filled-danger") && "lmnt-icon--fill-danger", (s === "primary" || s === "filled-primary") && "lmnt-icon--fill-primary", (s === "primary-alt" || s === "filled-secondary") && "lmnt-icon--fill-secondary", (s === "muted" || s === "filled-muted") && "lmnt-icon--fill-muted", (s === "secondary-alt" || s === "color-on-dark") && "lmnt-icon--color-on-dark", s === "color-primary" && "lmnt-icon--color-primary", s === "color-secondary" && "lmnt-icon--color-secondary", s === "blue" && "lmnt-icon--utility-blue", s === "gray" && "lmnt-icon--utility-gray", s === "green" && "lmnt-icon--utility-green", s === "orange" && "lmnt-icon--utility-orange", s === "purple" && "lmnt-icon--utility-purple", s === "red" && "lmnt-icon--utility-red", s === "teal" && "lmnt-icon--utility-teal", s === "yellow" && "lmnt-icon--utility-yellow", s === "secondary-on-surface" && "lmnt-icon--secondary-on-surface", s === "color-on-unknown-black" && "lmnt-icon--on-unknown-black", l);
1049
- return /* @__PURE__ */ gt.createElement("i", mt({
1050
- className: O,
1051
- "aria-label": n,
1052
- "aria-labelledby": a,
1053
- "aria-hidden": n || a ? r : !1
1054
- }, x, {
1055
- ref: d
1056
- }), i, wt(o, {
1057
- ref: v
1058
- }));
1059
- });
1060
- Le.displayName = "Icon";
1061
- Le.propTypes = Br;
1062
- Le.defaultProps = jr;
1063
- export {
1064
- Le as I,
1065
- Dr as c
1066
- };