@prozorro/prozorro-ui 0.0.7-beta → 0.0.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 (152) hide show
  1. package/dist/app/assets/{Color-FRDS63T2-D7DceWd3.js → Color-FRDS63T2-C5bQ2Iuy.js} +1 -1
  2. package/dist/app/assets/{Colors.stories-oSXYJENR.js → Colors.stories-B6EPF0nC.js} +1 -1
  3. package/dist/app/assets/{DocsRenderer-LL677BLK-CSnojeph.js → DocsRenderer-LL677BLK-6m2x0Slf.js} +200 -200
  4. package/dist/app/assets/{Grid.stories-Bs3kySs1.js → Grid.stories-DCpTvq1h.js} +1 -1
  5. package/dist/app/assets/PzArrayClamp-K4ObvvOV.css +1 -0
  6. package/dist/app/assets/PzArrayClamp.stories-DYjTyM_w.js +148 -0
  7. package/dist/app/assets/PzBreadcrumb-Dcs3weae.css +1 -0
  8. package/dist/app/assets/PzBreadcrumb.stories-b4V3GARM.js +120 -0
  9. package/dist/app/assets/PzBtn-Brjbpw1b.js +1 -0
  10. package/dist/app/assets/PzBtn-CzokGN-c.css +1 -0
  11. package/dist/app/assets/PzBtn-L_RpjK-U.css +1 -0
  12. package/dist/app/assets/PzBtn.stories-Bu5qPhtp.js +84 -0
  13. package/dist/app/assets/PzDomHandler-CRMzxUFs.css +1 -0
  14. package/dist/app/assets/PzDomHandler.stories-DqW3Mfem.js +170 -0
  15. package/dist/app/assets/PzDropdown-BnwR1ooa.css +1 -0
  16. package/dist/app/assets/PzDropdown.stories-CPjzWBvH.js +59 -0
  17. package/dist/app/assets/{PzGrid.stories-DHYDe1eo.js → PzGrid.stories-C1Y3nz5O.js} +2 -2
  18. package/dist/app/assets/PzHint-BSVVXtVq.css +1 -0
  19. package/dist/app/assets/PzHint-BwKGDkUu.js +1 -0
  20. package/dist/app/assets/PzHint-kEBemRXE.css +1 -0
  21. package/dist/app/assets/PzHint.stories-B6l3Ocr8.js +75 -0
  22. package/dist/app/assets/PzIcon-Don8TXO3.js +1 -0
  23. package/dist/app/assets/PzIcon.stories-DE4e2be_.js +63 -0
  24. package/dist/app/assets/{PzImage.stories-3xf5vq8I.js → PzImage.stories-DoGwhzIO.js} +2 -2
  25. package/dist/app/assets/PzInfoHint-CtK7BZOs.css +1 -0
  26. package/dist/app/assets/PzInfoHint.stories-CWDV-k9d.js +38 -0
  27. package/dist/app/assets/PzLink-BkfNrG4H.js +1 -0
  28. package/dist/app/assets/PzLink-CLsit3uW.css +1 -0
  29. package/dist/app/assets/PzLink-pGUmpCAv.css +1 -0
  30. package/dist/app/assets/PzLink.stories-D1DLILnY.js +99 -0
  31. package/dist/app/assets/PzModal-X71wpoOT.css +1 -0
  32. package/dist/app/assets/PzModal.stories-GJIUTcxR.js +168 -0
  33. package/dist/app/assets/PzNav-DRAXqlz0.css +1 -0
  34. package/dist/app/assets/PzNav.stories-vqArvp6y.js +197 -0
  35. package/dist/app/assets/PzPagination-DJVeW9lu.css +1 -0
  36. package/dist/app/assets/PzPagination.stories-D-kZtPzf.js +83 -0
  37. package/dist/app/assets/PzRouterLink.stories-CRcNmODE.js +54 -0
  38. package/dist/app/assets/PzScrollTo-GAEPiQFO.css +1 -0
  39. package/dist/app/assets/PzScrollTo.stories-C0m8oG4O.js +81 -0
  40. package/dist/app/assets/PzStatus-DlvKjmG7.css +1 -0
  41. package/dist/app/assets/PzStatus.stories-u5QAVco_.js +95 -0
  42. package/dist/app/assets/PzTabs-Cko9ewqz.css +1 -0
  43. package/dist/app/assets/PzTabs.stories-CEoVVF4Z.js +594 -0
  44. package/dist/app/assets/PzTag-rwtmuhv6.css +1 -0
  45. package/dist/app/assets/PzTag.stories-B2WKURWu.js +70 -0
  46. package/dist/app/assets/{PzText-B1cefxtz.js → PzText-LfRr6NF7.js} +1 -1
  47. package/dist/app/assets/{PzText.stories-BFfwzgRO.js → PzText.stories-CJhqWJtS.js} +6 -6
  48. package/dist/app/assets/PzTextClamp-BnSHv0R0.css +1 -0
  49. package/dist/app/assets/PzTextClamp.stories-B-2pPs9u.js +149 -0
  50. package/dist/app/assets/PzValidatorXSS-B6WBrYex.css +1 -0
  51. package/dist/app/assets/PzValidatorXSS.stories-DqA_mla7.js +163 -0
  52. package/dist/app/assets/{Spacing.stories-DhCjLNK2.js → Spacing.stories-55zVSJ08.js} +1 -1
  53. package/dist/app/assets/{Typography.stories-CSj6NWZS.js → Typography.stories-DEgPTqUk.js} +1 -1
  54. package/dist/app/assets/{WithTooltip-65CFNBJE-CXtzAlgs.js → WithTooltip-65CFNBJE-D3ytr0gE.js} +1 -1
  55. package/dist/app/assets/floating-vue-ydzBnlRK.js +1 -0
  56. package/dist/app/assets/formatter-EIJCOSYU-Ca5EM9Pa.js +1 -0
  57. package/dist/app/assets/iframe-B97zFSkg.css +1 -0
  58. package/dist/app/assets/iframe-XnrfGA2g.js +1115 -0
  59. package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-C5g7sJvt.js → syntaxhighlighter-OH4MV7E3-meijqKce.js} +1 -1
  60. package/dist/app/iframe.html +2 -2
  61. package/dist/app/index.json +1 -1
  62. package/dist/app/project.json +1 -1
  63. package/dist/components/PzArrayClamp/PzArrayClamp.vue.d.ts +36 -0
  64. package/dist/components/PzArrayClamp/index.d.ts +2 -0
  65. package/dist/components/PzArrayClamp/types.d.ts +8 -0
  66. package/dist/components/PzBreadcrumb/PzBreadcrumb.vue.d.ts +35 -0
  67. package/dist/components/PzBreadcrumb/constants.d.ts +4 -0
  68. package/dist/components/PzBreadcrumb/index.d.ts +2 -0
  69. package/dist/components/PzBreadcrumb/types.d.ts +8 -0
  70. package/dist/components/PzBtn/PzBtn.vue.d.ts +24 -0
  71. package/dist/components/PzBtn/configs.d.ts +3 -0
  72. package/dist/components/PzBtn/index.d.ts +2 -0
  73. package/dist/components/PzBtn/types.d.ts +7 -0
  74. package/dist/components/PzDropdown/PzDropdown.vue.d.ts +18 -0
  75. package/dist/components/PzDropdown/index.d.ts +2 -0
  76. package/dist/components/PzDropdown/types.d.ts +1 -0
  77. package/dist/components/PzGrid/PzGrid.vue.d.ts +1 -1
  78. package/dist/components/PzGrid/PzGridItem.vue.d.ts +1 -1
  79. package/dist/components/PzGrid/configs.d.ts +2 -2
  80. package/dist/components/PzHint/PzHint.vue.d.ts +24 -0
  81. package/dist/components/PzHint/index.d.ts +2 -0
  82. package/dist/components/PzHint/types.d.ts +8 -0
  83. package/dist/components/PzIcon/PzIcon.vue.d.ts +1 -1
  84. package/dist/components/PzImage/configs.d.ts +1 -1
  85. package/dist/components/PzInfoHint/PzInfoHint.vue.d.ts +7 -0
  86. package/dist/components/PzInfoHint/index.d.ts +2 -0
  87. package/dist/components/PzInfoHint/types.d.ts +12 -0
  88. package/dist/components/PzLink/PzLink.vue.d.ts +29 -0
  89. package/dist/components/PzLink/configs.d.ts +2 -0
  90. package/dist/components/PzLink/constants.d.ts +1 -0
  91. package/dist/components/PzLink/index.d.ts +2 -0
  92. package/dist/components/PzLink/types.d.ts +13 -0
  93. package/dist/components/PzModal/PzModal.vue.d.ts +36 -0
  94. package/dist/components/PzModal/configs.d.ts +1 -0
  95. package/dist/components/PzModal/constants.d.ts +10 -0
  96. package/dist/components/PzModal/index.d.ts +2 -0
  97. package/dist/components/PzModal/types.d.ts +11 -0
  98. package/dist/components/PzNav/PzNav.vue.d.ts +23 -0
  99. package/dist/components/PzNav/index.d.ts +2 -0
  100. package/dist/components/PzNav/types.d.ts +9 -0
  101. package/dist/components/PzPagination/PzPagination.vue.d.ts +9 -0
  102. package/dist/components/PzPagination/index.d.ts +2 -0
  103. package/dist/components/PzPagination/types.d.ts +6 -0
  104. package/dist/components/PzRouterLink/PzRouterLink.vue.d.ts +30 -0
  105. package/dist/components/PzRouterLink/index.d.ts +2 -0
  106. package/dist/components/PzRouterLink/types.d.ts +7 -0
  107. package/dist/components/PzStatus/PzStatus.vue.d.ts +21 -0
  108. package/dist/components/PzStatus/configs.d.ts +2 -0
  109. package/dist/components/PzStatus/constants.d.ts +2 -0
  110. package/dist/components/PzStatus/index.d.ts +2 -0
  111. package/dist/components/PzStatus/types.d.ts +6 -0
  112. package/dist/components/PzTabs/PzTab.vue.d.ts +22 -0
  113. package/dist/components/PzTabs/PzTabs.vue.d.ts +21 -0
  114. package/dist/components/PzTabs/configs.d.ts +1 -0
  115. package/dist/components/PzTabs/constants.d.ts +5 -0
  116. package/dist/components/PzTabs/index.d.ts +3 -0
  117. package/dist/components/PzTabs/types.d.ts +14 -0
  118. package/dist/components/PzTag/PzTag.vue.d.ts +23 -0
  119. package/dist/components/PzTag/configs.d.ts +2 -0
  120. package/dist/components/PzTag/index.d.ts +2 -0
  121. package/dist/components/PzTag/types.d.ts +6 -0
  122. package/dist/components/PzText/configs.d.ts +1 -1
  123. package/dist/components/PzTextClamp/PzTextClamp.vue.d.ts +36 -0
  124. package/dist/components/PzTextClamp/constants.d.ts +2 -0
  125. package/dist/components/PzTextClamp/index.d.ts +2 -0
  126. package/dist/components/PzTextClamp/types.d.ts +10 -0
  127. package/dist/floating-vue.d.ts +1 -0
  128. package/dist/index.d.ts +18 -0
  129. package/dist/package.json +8 -2
  130. package/dist/prozorro-ui.cjs +1 -1
  131. package/dist/prozorro-ui.js +3379 -75
  132. package/dist/style.css +1 -1
  133. package/dist/utils/PzDomHandler/PzDomHandler.d.ts +19 -0
  134. package/dist/utils/PzDomHandler/constants.d.ts +1 -0
  135. package/dist/utils/PzDomHandler/index.d.ts +2 -0
  136. package/dist/utils/PzDomHandler/types.d.ts +4 -0
  137. package/dist/utils/PzScrollTo/PzScrollTo.d.ts +9 -0
  138. package/dist/utils/PzScrollTo/configs.d.ts +1 -0
  139. package/dist/utils/PzScrollTo/constants.d.ts +3 -0
  140. package/dist/utils/PzScrollTo/index.d.ts +2 -0
  141. package/dist/utils/PzScrollTo/types.d.ts +8 -0
  142. package/dist/utils/PzValidatorXSS/PzValidatorXSS.d.ts +20 -0
  143. package/dist/utils/PzValidatorXSS/index.d.ts +2 -0
  144. package/dist/utils/PzValidatorXSS/types.d.ts +1 -0
  145. package/package.json +8 -2
  146. package/src/styles/abstract/_variables.scss +8 -2
  147. package/src/styles/main.scss +1 -0
  148. package/src/styles/vendors/_floating-vue.scss +59 -0
  149. package/dist/app/assets/PzIcon.stories-DnSfvny_.js +0 -63
  150. package/dist/app/assets/formatter-EIJCOSYU-BiTxXm4h.js +0 -1
  151. package/dist/app/assets/iframe-AHEBgGuT.js +0 -1107
  152. package/dist/app/assets/iframe-C7ls-B1-.css +0 -1
@@ -1,5 +1,189 @@
1
- import { defineComponent as i, computed as d, openBlock as r, createBlock as u, resolveDynamicComponent as p, normalizeClass as c, withCtx as f, renderSlot as m, createElementBlock as g, normalizeStyle as _, toDisplayString as v } from "vue";
2
- const $ = /* @__PURE__ */ i({
1
+ import { defineComponent as S, ref as be, watch as ie, computed as T, openBlock as h, createElementBlock as v, Fragment as ge, renderList as we, renderSlot as x, createTextVNode as se, toDisplayString as V, createElementVNode as P, normalizeClass as k, createCommentVNode as R, createVNode as de, unref as B, withCtx as A, createBlock as F, resolveDynamicComponent as ke, normalizeStyle as he, pushScopeId as _n, popScopeId as vn, nextTick as tt, normalizeProps as yn, guardReactiveProps as wn, resolveComponent as nt, withKeys as Ft, mergeProps as Wt, withScopeId as bn, useSlots as Vt, onBeforeUnmount as jt, Teleport as xn, withModifiers as qt, mergeDefaults as $n, useAttrs as zn, createSlots as Tn, reactive as Gt, provide as Ge, onMounted as Ut, getCurrentInstance as Cn, inject as Ue, onBeforeMount as Pn, withDirectives as Sn, vShow as An, onUnmounted as kn } from "vue";
2
+ import { useRoute as Xt, RouterLink as Re } from "vue-router";
3
+ const En = { class: "pz-array-clamp" }, On = {
4
+ key: 0,
5
+ class: "pz-array-clamp__item"
6
+ }, Ln = 3, Bn = /* @__PURE__ */ S({
7
+ name: "PzArrayClamp",
8
+ __name: "PzArrayClamp",
9
+ props: {
10
+ list: {},
11
+ count: { default: Ln },
12
+ expanded: { type: Boolean, default: !1 },
13
+ expandLabel: { default: "Показати більше" },
14
+ collapseLabel: { default: "Показати менше" },
15
+ btnClass: { default: "" }
16
+ },
17
+ emits: ["update:expanded"],
18
+ setup(e, { emit: t }) {
19
+ const n = e, o = t, i = be(n.expanded);
20
+ ie(
21
+ () => n.expanded,
22
+ (c) => {
23
+ i.value = c;
24
+ }
25
+ );
26
+ const r = T(() => i.value), s = T(() => r.value ? n.list : n.list.slice(0, n.count)), a = T(() => Math.max(n.list.length - n.count, 0)), l = T(() => a.value > 0), d = () => {
27
+ const c = !r.value;
28
+ i.value = c, o("update:expanded", c);
29
+ };
30
+ return (c, u) => (h(), v("ul", En, [
31
+ (h(!0), v(ge, null, we(s.value, (f, p) => (h(), v("li", {
32
+ key: `${String(f)}-${p}`,
33
+ class: "pz-array-clamp__item"
34
+ }, [
35
+ x(c.$slots, "default", {
36
+ item: f,
37
+ index: p
38
+ }, () => [
39
+ se(V(f), 1)
40
+ ], !0)
41
+ ]))), 128)),
42
+ l.value ? (h(), v("li", On, [
43
+ x(c.$slots, "toggle", {
44
+ toggle: d,
45
+ expanded: r.value,
46
+ hiddenCount: a.value
47
+ }, () => [
48
+ P("button", {
49
+ type: "button",
50
+ class: k(["pz-array-clamp__toggle", n.btnClass]),
51
+ onClick: d
52
+ }, V(r.value ? n.collapseLabel : n.expandLabel), 3)
53
+ ], !0)
54
+ ])) : R("", !0)
55
+ ]));
56
+ }
57
+ }), D = (e, t) => {
58
+ const n = e.__vccOpts || e;
59
+ for (const [o, i] of t)
60
+ n[o] = i;
61
+ return n;
62
+ }, ns = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-82bfa0b2"]]), Nn = ["type", "disabled"], Rn = {
63
+ key: 0,
64
+ class: "pz-btn-prefix"
65
+ }, Hn = {
66
+ key: 1,
67
+ class: "pz-btn-content"
68
+ }, Mn = {
69
+ key: 2,
70
+ class: "pz-btn-suffix"
71
+ }, Dn = /* @__PURE__ */ S({
72
+ name: "PzBtn",
73
+ __name: "PzBtn",
74
+ props: {
75
+ variant: { default: "primary" },
76
+ type: { default: "button" },
77
+ disabled: { type: Boolean, default: !1 }
78
+ },
79
+ setup(e) {
80
+ const t = e;
81
+ return (n, o) => (h(), v("button", {
82
+ type: t.type,
83
+ disabled: t.disabled,
84
+ class: k(["pz-btn", `pz-btn--${t.variant}`])
85
+ }, [
86
+ n.$slots.prefix ? (h(), v("span", Rn, [
87
+ x(n.$slots, "prefix", {}, void 0, !0)
88
+ ])) : R("", !0),
89
+ n.$slots.default ? (h(), v("span", Hn, [
90
+ x(n.$slots, "default", {}, void 0, !0)
91
+ ])) : R("", !0),
92
+ n.$slots.suffix ? (h(), v("span", Mn, [
93
+ x(n.$slots, "suffix", {}, void 0, !0)
94
+ ])) : R("", !0)
95
+ ], 10, Nn));
96
+ }
97
+ }), os = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-1c1e8351"]]), Xe = {
98
+ label: "Головна",
99
+ to: "/"
100
+ }, In = {
101
+ class: "pz-breadcrumb",
102
+ "aria-label": "Breadcrumb"
103
+ }, Fn = { class: "pz-breadcrumb__list" }, Wn = { class: "pz-breadcrumb__item" }, Vn = {
104
+ key: 0,
105
+ class: "pz-breadcrumb__link pz-breadcrumb__link--current",
106
+ "aria-current": "page"
107
+ }, jn = /* @__PURE__ */ S({
108
+ name: "PzBreadcrumb",
109
+ __name: "PzBreadcrumb",
110
+ props: {
111
+ items: {}
112
+ },
113
+ setup(e) {
114
+ const t = Xt(), n = e, o = (a) => typeof a != "string" ? a : a.split("/").map((l) => {
115
+ if (!l.startsWith(":"))
116
+ return l;
117
+ const d = t.params[l.slice(1)];
118
+ return Array.isArray(d) ? d.join("/") : d ?? l;
119
+ }).join("/"), i = T(() => {
120
+ const a = [];
121
+ return t.matched.forEach((l) => {
122
+ const d = l.meta, c = String(d.breadcrumb ?? d.name ?? l.name ?? "").trim();
123
+ !c || l.path === "/" || a.push({
124
+ label: c,
125
+ to: o(l.path)
126
+ });
127
+ }), a;
128
+ }), r = T(() => {
129
+ var a;
130
+ return (a = n.items) != null && a.length ? n.items.map((l) => ({
131
+ ...l,
132
+ to: o(l.to)
133
+ })) : i.value;
134
+ }), s = (a) => a === r.value.length - 1;
135
+ return (a, l) => (h(), v("nav", In, [
136
+ P("ul", Fn, [
137
+ P("li", Wn, [
138
+ de(B(Re), {
139
+ to: B(Xe).to,
140
+ class: "pz-breadcrumb__link"
141
+ }, {
142
+ default: A(() => [
143
+ x(a.$slots, "home", {
144
+ data: B(Xe),
145
+ index: -1,
146
+ isCurrent: !1
147
+ }, () => [
148
+ se(V(B(Xe).label), 1)
149
+ ], !0)
150
+ ]),
151
+ _: 3
152
+ }, 8, ["to"])
153
+ ]),
154
+ (h(!0), v(ge, null, we(r.value, (d, c) => (h(), v("li", {
155
+ key: `${d.label}-${c}`,
156
+ class: "pz-breadcrumb__item"
157
+ }, [
158
+ s(c) || !d.to ? (h(), v("span", Vn, [
159
+ x(a.$slots, "view", {
160
+ data: d,
161
+ isCurrent: s(c) || !d.to,
162
+ index: c
163
+ }, () => [
164
+ se(V(d.label), 1)
165
+ ], !0)
166
+ ])) : (h(), F(B(Re), {
167
+ key: 1,
168
+ to: d.to,
169
+ class: "pz-breadcrumb__link"
170
+ }, {
171
+ default: A(() => [
172
+ x(a.$slots, "view", {
173
+ data: d,
174
+ isCurrent: !1,
175
+ index: c
176
+ }, () => [
177
+ se(V(d.label), 1)
178
+ ], !0)
179
+ ]),
180
+ _: 2
181
+ }, 1032, ["to"]))
182
+ ]))), 128))
183
+ ])
184
+ ]));
185
+ }
186
+ }), is = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-121084ee"]]), ss = /* @__PURE__ */ S({
3
187
  name: "PzGrid",
4
188
  __name: "PzGrid",
5
189
  props: {
@@ -10,26 +194,26 @@ const $ = /* @__PURE__ */ i({
10
194
  fit: { type: Boolean, default: !1 },
11
195
  dense: { type: Boolean, default: !1 }
12
196
  },
13
- setup(l) {
14
- const a = l, t = d(() => [
197
+ setup(e) {
198
+ const t = e, n = T(() => [
15
199
  {
16
- "pz-container": a.container && !a.fluid,
17
- "pz-container-fluid": a.container && a.fluid,
18
- "pz-grid": a.grid,
19
- "pz-grid-fit": a.grid && a.fit,
20
- "pz-grid-dense": a.grid && a.dense
200
+ "pz-container": t.container && !t.fluid,
201
+ "pz-container-fluid": t.container && t.fluid,
202
+ "pz-grid": t.grid,
203
+ "pz-grid-fit": t.grid && t.fit,
204
+ "pz-grid-dense": t.grid && t.dense
21
205
  }
22
206
  ]);
23
- return (e, s) => (r(), u(p(a.as), {
24
- class: c(t.value)
207
+ return (o, i) => (h(), F(ke(t.as), {
208
+ class: k(n.value)
25
209
  }, {
26
- default: f(() => [
27
- m(e.$slots, "default")
210
+ default: A(() => [
211
+ x(o.$slots, "default")
28
212
  ]),
29
213
  _: 3
30
214
  }, 8, ["class"]));
31
215
  }
32
- }), I = /* @__PURE__ */ i({
216
+ }), rs = /* @__PURE__ */ S({
33
217
  name: "PzGridItem",
34
218
  __name: "PzGridItem",
35
219
  props: {
@@ -47,32 +231,32 @@ const $ = /* @__PURE__ */ i({
47
231
  startXl: { default: void 0 },
48
232
  startXxl: { default: void 0 }
49
233
  },
50
- setup(l) {
51
- const a = l, t = (n, o) => o ? o === "full" ? `pz-col-${n}full` : `pz-col-${n}${o}` : null, e = (n, o) => o ? `pz-start-${n}${o}` : null, s = d(() => [
234
+ setup(e) {
235
+ const t = e, n = (r, s) => s ? s === "full" ? `pz-col-${r}full` : `pz-col-${r}${s}` : null, o = (r, s) => s ? `pz-start-${r}${s}` : null, i = T(() => [
52
236
  "pz-grid-item",
53
- t("", a.span),
54
- t("sm-", a.sm),
55
- t("md-", a.md),
56
- t("lg-", a.lg),
57
- t("xl-", a.xl),
58
- t("xxl-", a.xxl),
59
- e("", a.start),
60
- e("sm-", a.startSm),
61
- e("md-", a.startMd),
62
- e("lg-", a.startLg),
63
- e("xl-", a.startXl),
64
- e("xxl-", a.startXxl)
237
+ n("", t.span),
238
+ n("sm-", t.sm),
239
+ n("md-", t.md),
240
+ n("lg-", t.lg),
241
+ n("xl-", t.xl),
242
+ n("xxl-", t.xxl),
243
+ o("", t.start),
244
+ o("sm-", t.startSm),
245
+ o("md-", t.startMd),
246
+ o("lg-", t.startLg),
247
+ o("xl-", t.startXl),
248
+ o("xxl-", t.startXxl)
65
249
  ]);
66
- return (n, o) => (r(), u(p(a.as), {
67
- class: c(s.value)
250
+ return (r, s) => (h(), F(ke(t.as), {
251
+ class: k(i.value)
68
252
  }, {
69
- default: f(() => [
70
- m(n.$slots, "default")
253
+ default: A(() => [
254
+ x(r.$slots, "default")
71
255
  ]),
72
256
  _: 3
73
257
  }, 8, ["class"]));
74
258
  }
75
- }), h = ["role", "aria-hidden", "aria-label"], B = /* @__PURE__ */ i({
259
+ }), qn = ["role", "aria-hidden", "aria-label"], He = /* @__PURE__ */ S({
76
260
  name: "PzIcon",
77
261
  __name: "PzIcon",
78
262
  props: {
@@ -81,21 +265,21 @@ const $ = /* @__PURE__ */ i({
81
265
  size: { default: "16" },
82
266
  label: { default: void 0 }
83
267
  },
84
- setup(l) {
85
- const a = l, t = d(
268
+ setup(e) {
269
+ const t = e, n = T(
86
270
  () => ({
87
- "--pz-icon-size": `var(--pz-font-size-${a.size})`
271
+ "--pz-icon-size": `var(--pz-font-size-${t.size})`
88
272
  })
89
- ), e = d(() => a.label ? "img" : void 0), s = d(() => a.label ? void 0 : "true");
90
- return (n, o) => (r(), g("span", {
91
- class: c([{ outlined: a.variant === "outlined" }, "pz-icon pz-material-icon"]),
92
- style: _(t.value),
93
- role: e.value,
94
- "aria-hidden": s.value,
95
- "aria-label": a.label
96
- }, v(a.name), 15, h));
97
- }
98
- }), x = ["src", "alt", "loading", "decoding"], b = /* @__PURE__ */ i({
273
+ ), o = T(() => t.label ? "img" : void 0), i = T(() => t.label ? void 0 : "true");
274
+ return (r, s) => (h(), v("span", {
275
+ class: k([{ outlined: t.variant === "outlined" }, "pz-icon pz-material-icon"]),
276
+ style: he(n.value),
277
+ role: o.value,
278
+ "aria-hidden": i.value,
279
+ "aria-label": t.label
280
+ }, V(t.name), 15, qn));
281
+ }
282
+ }), Gn = ["src", "alt", "loading", "decoding"], Un = /* @__PURE__ */ S({
99
283
  name: "PzImage",
100
284
  __name: "PzImage",
101
285
  props: {
@@ -105,35 +289,2330 @@ const $ = /* @__PURE__ */ i({
105
289
  loading: { default: void 0 },
106
290
  decoding: { default: "async" }
107
291
  },
108
- setup(l) {
109
- const a = l, t = d(
292
+ setup(e) {
293
+ const t = e, n = T(
110
294
  () => ({
111
- "--pz-image-fit": a.fit
295
+ "--pz-image-fit": t.fit
112
296
  })
113
297
  );
114
- return (e, s) => (r(), g("img", {
298
+ return (o, i) => (h(), v("img", {
115
299
  class: "pz-image",
116
- src: a.src,
117
- alt: a.alt,
118
- loading: a.loading,
119
- decoding: a.decoding,
120
- style: _(t.value)
121
- }, null, 12, x));
122
- }
123
- }), z = (l, a) => {
124
- const t = l.__vccOpts || l;
125
- for (const [e, s] of a)
126
- t[e] = s;
300
+ src: t.src,
301
+ alt: t.alt,
302
+ loading: t.loading,
303
+ decoding: t.decoding,
304
+ style: he(n.value)
305
+ }, null, 12, Gn));
306
+ }
307
+ }), as = /* @__PURE__ */ D(Un, [["__scopeId", "data-v-33d59ff0"]]), Xn = ["top", "right", "bottom", "left"], wt = ["start", "end"], bt = /* @__PURE__ */ Xn.reduce((e, t) => e.concat(t, t + "-" + wt[0], t + "-" + wt[1]), []), Ce = Math.min, fe = Math.max, Yn = {
308
+ left: "right",
309
+ right: "left",
310
+ bottom: "top",
311
+ top: "bottom"
312
+ };
313
+ function ot(e, t, n) {
314
+ return fe(e, Ce(t, n));
315
+ }
316
+ function _e(e, t) {
317
+ return typeof e == "function" ? e(t) : e;
318
+ }
319
+ function Q(e) {
320
+ return e.split("-")[0];
321
+ }
322
+ function Y(e) {
323
+ return e.split("-")[1];
324
+ }
325
+ function Yt(e) {
326
+ return e === "x" ? "y" : "x";
327
+ }
328
+ function ft(e) {
329
+ return e === "y" ? "height" : "width";
330
+ }
331
+ function ee(e) {
332
+ const t = e[0];
333
+ return t === "t" || t === "b" ? "y" : "x";
334
+ }
335
+ function ht(e) {
336
+ return Yt(ee(e));
337
+ }
338
+ function Zt(e, t, n) {
339
+ n === void 0 && (n = !1);
340
+ const o = Y(e), i = ht(e), r = ft(i);
341
+ let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
342
+ return t.reference[r] > t.floating[r] && (s = De(s)), [s, De(s)];
343
+ }
344
+ function Zn(e) {
345
+ const t = De(e);
346
+ return [Me(e), t, Me(t)];
347
+ }
348
+ function Me(e) {
349
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
350
+ }
351
+ const xt = ["left", "right"], $t = ["right", "left"], Kn = ["top", "bottom"], Qn = ["bottom", "top"];
352
+ function Jn(e, t, n) {
353
+ switch (e) {
354
+ case "top":
355
+ case "bottom":
356
+ return n ? t ? $t : xt : t ? xt : $t;
357
+ case "left":
358
+ case "right":
359
+ return t ? Kn : Qn;
360
+ default:
361
+ return [];
362
+ }
363
+ }
364
+ function eo(e, t, n, o) {
365
+ const i = Y(e);
366
+ let r = Jn(Q(e), n === "start", o);
367
+ return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Me)))), r;
368
+ }
369
+ function De(e) {
370
+ const t = Q(e);
371
+ return Yn[t] + e.slice(t.length);
372
+ }
373
+ function to(e) {
374
+ return {
375
+ top: 0,
376
+ right: 0,
377
+ bottom: 0,
378
+ left: 0,
379
+ ...e
380
+ };
381
+ }
382
+ function Kt(e) {
383
+ return typeof e != "number" ? to(e) : {
384
+ top: e,
385
+ right: e,
386
+ bottom: e,
387
+ left: e
388
+ };
389
+ }
390
+ function xe(e) {
391
+ const {
392
+ x: t,
393
+ y: n,
394
+ width: o,
395
+ height: i
396
+ } = e;
397
+ return {
398
+ width: o,
399
+ height: i,
400
+ top: n,
401
+ left: t,
402
+ right: t + o,
403
+ bottom: n + i,
404
+ x: t,
405
+ y: n
406
+ };
407
+ }
408
+ function zt(e, t, n) {
409
+ let {
410
+ reference: o,
411
+ floating: i
412
+ } = e;
413
+ const r = ee(t), s = ht(t), a = ft(s), l = Q(t), d = r === "y", c = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, f = o[a] / 2 - i[a] / 2;
414
+ let p;
415
+ switch (l) {
416
+ case "top":
417
+ p = {
418
+ x: c,
419
+ y: o.y - i.height
420
+ };
421
+ break;
422
+ case "bottom":
423
+ p = {
424
+ x: c,
425
+ y: o.y + o.height
426
+ };
427
+ break;
428
+ case "right":
429
+ p = {
430
+ x: o.x + o.width,
431
+ y: u
432
+ };
433
+ break;
434
+ case "left":
435
+ p = {
436
+ x: o.x - i.width,
437
+ y: u
438
+ };
439
+ break;
440
+ default:
441
+ p = {
442
+ x: o.x,
443
+ y: o.y
444
+ };
445
+ }
446
+ switch (Y(t)) {
447
+ case "start":
448
+ p[s] -= f * (n && d ? -1 : 1);
449
+ break;
450
+ case "end":
451
+ p[s] += f * (n && d ? -1 : 1);
452
+ break;
453
+ }
454
+ return p;
455
+ }
456
+ async function no(e, t) {
457
+ var n;
458
+ t === void 0 && (t = {});
459
+ const {
460
+ x: o,
461
+ y: i,
462
+ platform: r,
463
+ rects: s,
464
+ elements: a,
465
+ strategy: l
466
+ } = e, {
467
+ boundary: d = "clippingAncestors",
468
+ rootBoundary: c = "viewport",
469
+ elementContext: u = "floating",
470
+ altBoundary: f = !1,
471
+ padding: p = 0
472
+ } = _e(t, e), m = Kt(p), b = a[f ? u === "floating" ? "reference" : "floating" : u], y = xe(await r.getClippingRect({
473
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(b))) == null || n ? b : b.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
474
+ boundary: d,
475
+ rootBoundary: c,
476
+ strategy: l
477
+ })), w = u === "floating" ? {
478
+ x: o,
479
+ y: i,
480
+ width: s.floating.width,
481
+ height: s.floating.height
482
+ } : s.reference, $ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), C = await (r.isElement == null ? void 0 : r.isElement($)) ? await (r.getScale == null ? void 0 : r.getScale($)) || {
483
+ x: 1,
484
+ y: 1
485
+ } : {
486
+ x: 1,
487
+ y: 1
488
+ }, L = xe(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
489
+ elements: a,
490
+ rect: w,
491
+ offsetParent: $,
492
+ strategy: l
493
+ }) : w);
494
+ return {
495
+ top: (y.top - L.top + m.top) / C.y,
496
+ bottom: (L.bottom - y.bottom + m.bottom) / C.y,
497
+ left: (y.left - L.left + m.left) / C.x,
498
+ right: (L.right - y.right + m.right) / C.x
499
+ };
500
+ }
501
+ const oo = 50, io = async (e, t, n) => {
502
+ const {
503
+ placement: o = "bottom",
504
+ strategy: i = "absolute",
505
+ middleware: r = [],
506
+ platform: s
507
+ } = n, a = s.detectOverflow ? s : {
508
+ ...s,
509
+ detectOverflow: no
510
+ }, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
511
+ let d = await s.getElementRects({
512
+ reference: e,
513
+ floating: t,
514
+ strategy: i
515
+ }), {
516
+ x: c,
517
+ y: u
518
+ } = zt(d, o, l), f = o, p = 0;
519
+ const m = {};
520
+ for (let g = 0; g < r.length; g++) {
521
+ const b = r[g];
522
+ if (!b)
523
+ continue;
524
+ const {
525
+ name: y,
526
+ fn: w
527
+ } = b, {
528
+ x: $,
529
+ y: C,
530
+ data: L,
531
+ reset: E
532
+ } = await w({
533
+ x: c,
534
+ y: u,
535
+ initialPlacement: o,
536
+ placement: f,
537
+ strategy: i,
538
+ middlewareData: m,
539
+ rects: d,
540
+ platform: a,
541
+ elements: {
542
+ reference: e,
543
+ floating: t
544
+ }
545
+ });
546
+ c = $ ?? c, u = C ?? u, m[y] = {
547
+ ...m[y],
548
+ ...L
549
+ }, E && p < oo && (p++, typeof E == "object" && (E.placement && (f = E.placement), E.rects && (d = E.rects === !0 ? await s.getElementRects({
550
+ reference: e,
551
+ floating: t,
552
+ strategy: i
553
+ }) : E.rects), {
554
+ x: c,
555
+ y: u
556
+ } = zt(d, f, l)), g = -1);
557
+ }
558
+ return {
559
+ x: c,
560
+ y: u,
561
+ placement: f,
562
+ strategy: i,
563
+ middlewareData: m
564
+ };
565
+ }, so = (e) => ({
566
+ name: "arrow",
567
+ options: e,
568
+ async fn(t) {
569
+ const {
570
+ x: n,
571
+ y: o,
572
+ placement: i,
573
+ rects: r,
574
+ platform: s,
575
+ elements: a,
576
+ middlewareData: l
577
+ } = t, {
578
+ element: d,
579
+ padding: c = 0
580
+ } = _e(e, t) || {};
581
+ if (d == null)
582
+ return {};
583
+ const u = Kt(c), f = {
584
+ x: n,
585
+ y: o
586
+ }, p = ht(i), m = ft(p), g = await s.getDimensions(d), b = p === "y", y = b ? "top" : "left", w = b ? "bottom" : "right", $ = b ? "clientHeight" : "clientWidth", C = r.reference[m] + r.reference[p] - f[p] - r.floating[m], L = f[p] - r.reference[p], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
587
+ let H = E ? E[$] : 0;
588
+ (!H || !await (s.isElement == null ? void 0 : s.isElement(E))) && (H = a.floating[$] || r.floating[m]);
589
+ const j = C / 2 - L / 2, I = H / 2 - g[m] / 2 - 1, _ = Ce(u[y], I), O = Ce(u[w], I), N = _, M = H - g[m] - O, W = H / 2 - g[m] / 2 + j, ue = ot(N, W, M), J = !l.arrow && Y(i) != null && W !== ue && r.reference[m] / 2 - (W < N ? _ : O) - g[m] / 2 < 0, G = J ? W < N ? W - N : W - M : 0;
590
+ return {
591
+ [p]: f[p] + G,
592
+ data: {
593
+ [p]: ue,
594
+ centerOffset: W - ue - G,
595
+ ...J && {
596
+ alignmentOffset: G
597
+ }
598
+ },
599
+ reset: J
600
+ };
601
+ }
602
+ });
603
+ function ro(e, t, n) {
604
+ return (e ? [...n.filter((i) => Y(i) === e), ...n.filter((i) => Y(i) !== e)] : n.filter((i) => Q(i) === i)).filter((i) => e ? Y(i) === e || (t ? Me(i) !== i : !1) : !0);
605
+ }
606
+ const ao = function(e) {
607
+ return e === void 0 && (e = {}), {
608
+ name: "autoPlacement",
609
+ options: e,
610
+ async fn(t) {
611
+ var n, o, i;
612
+ const {
613
+ rects: r,
614
+ middlewareData: s,
615
+ placement: a,
616
+ platform: l,
617
+ elements: d
618
+ } = t, {
619
+ crossAxis: c = !1,
620
+ alignment: u,
621
+ allowedPlacements: f = bt,
622
+ autoAlignment: p = !0,
623
+ ...m
624
+ } = _e(e, t), g = u !== void 0 || f === bt ? ro(u || null, p, f) : f, b = await l.detectOverflow(t, m), y = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, w = g[y];
625
+ if (w == null)
626
+ return {};
627
+ const $ = Zt(w, r, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
628
+ if (a !== w)
629
+ return {
630
+ reset: {
631
+ placement: g[0]
632
+ }
633
+ };
634
+ const C = [b[Q(w)], b[$[0]], b[$[1]]], L = [...((o = s.autoPlacement) == null ? void 0 : o.overflows) || [], {
635
+ placement: w,
636
+ overflows: C
637
+ }], E = g[y + 1];
638
+ if (E)
639
+ return {
640
+ data: {
641
+ index: y + 1,
642
+ overflows: L
643
+ },
644
+ reset: {
645
+ placement: E
646
+ }
647
+ };
648
+ const H = L.map((_) => {
649
+ const O = Y(_.placement);
650
+ return [_.placement, O && c ? (
651
+ // Check along the mainAxis and main crossAxis side.
652
+ _.overflows.slice(0, 2).reduce((N, M) => N + M, 0)
653
+ ) : (
654
+ // Check only the mainAxis.
655
+ _.overflows[0]
656
+ ), _.overflows];
657
+ }).sort((_, O) => _[1] - O[1]), I = ((i = H.filter((_) => _[2].slice(
658
+ 0,
659
+ // Aligned placements should not check their opposite crossAxis
660
+ // side.
661
+ Y(_[0]) ? 2 : 3
662
+ ).every((O) => O <= 0))[0]) == null ? void 0 : i[0]) || H[0][0];
663
+ return I !== a ? {
664
+ data: {
665
+ index: y + 1,
666
+ overflows: L
667
+ },
668
+ reset: {
669
+ placement: I
670
+ }
671
+ } : {};
672
+ }
673
+ };
674
+ }, lo = function(e) {
675
+ return e === void 0 && (e = {}), {
676
+ name: "flip",
677
+ options: e,
678
+ async fn(t) {
679
+ var n, o;
680
+ const {
681
+ placement: i,
682
+ middlewareData: r,
683
+ rects: s,
684
+ initialPlacement: a,
685
+ platform: l,
686
+ elements: d
687
+ } = t, {
688
+ mainAxis: c = !0,
689
+ crossAxis: u = !0,
690
+ fallbackPlacements: f,
691
+ fallbackStrategy: p = "bestFit",
692
+ fallbackAxisSideDirection: m = "none",
693
+ flipAlignment: g = !0,
694
+ ...b
695
+ } = _e(e, t);
696
+ if ((n = r.arrow) != null && n.alignmentOffset)
697
+ return {};
698
+ const y = Q(i), w = ee(a), $ = Q(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), L = f || ($ || !g ? [De(a)] : Zn(a)), E = m !== "none";
699
+ !f && E && L.push(...eo(a, g, m, C));
700
+ const H = [a, ...L], j = await l.detectOverflow(t, b), I = [];
701
+ let _ = ((o = r.flip) == null ? void 0 : o.overflows) || [];
702
+ if (c && I.push(j[y]), u) {
703
+ const W = Zt(i, s, C);
704
+ I.push(j[W[0]], j[W[1]]);
705
+ }
706
+ if (_ = [..._, {
707
+ placement: i,
708
+ overflows: I
709
+ }], !I.every((W) => W <= 0)) {
710
+ var O, N;
711
+ const W = (((O = r.flip) == null ? void 0 : O.index) || 0) + 1, ue = H[W];
712
+ if (ue && (!(u === "alignment" ? w !== ee(ue) : !1) || // We leave the current main axis only if every placement on that axis
713
+ // overflows the main axis.
714
+ _.every((U) => ee(U.placement) === w ? U.overflows[0] > 0 : !0)))
715
+ return {
716
+ data: {
717
+ index: W,
718
+ overflows: _
719
+ },
720
+ reset: {
721
+ placement: ue
722
+ }
723
+ };
724
+ let J = (N = _.filter((G) => G.overflows[0] <= 0).sort((G, U) => G.overflows[1] - U.overflows[1])[0]) == null ? void 0 : N.placement;
725
+ if (!J)
726
+ switch (p) {
727
+ case "bestFit": {
728
+ var M;
729
+ const G = (M = _.filter((U) => {
730
+ if (E) {
731
+ const te = ee(U.placement);
732
+ return te === w || // Create a bias to the `y` side axis due to horizontal
733
+ // reading directions favoring greater width.
734
+ te === "y";
735
+ }
736
+ return !0;
737
+ }).map((U) => [U.placement, U.overflows.filter((te) => te > 0).reduce((te, gn) => te + gn, 0)]).sort((U, te) => U[1] - te[1])[0]) == null ? void 0 : M[0];
738
+ G && (J = G);
739
+ break;
740
+ }
741
+ case "initialPlacement":
742
+ J = a;
743
+ break;
744
+ }
745
+ if (i !== J)
746
+ return {
747
+ reset: {
748
+ placement: J
749
+ }
750
+ };
751
+ }
752
+ return {};
753
+ }
754
+ };
755
+ }, co = /* @__PURE__ */ new Set(["left", "top"]);
756
+ async function uo(e, t) {
757
+ const {
758
+ placement: n,
759
+ platform: o,
760
+ elements: i
761
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Q(n), a = Y(n), l = ee(n) === "y", d = co.has(s) ? -1 : 1, c = r && l ? -1 : 1, u = _e(t, e);
762
+ let {
763
+ mainAxis: f,
764
+ crossAxis: p,
765
+ alignmentAxis: m
766
+ } = typeof u == "number" ? {
767
+ mainAxis: u,
768
+ crossAxis: 0,
769
+ alignmentAxis: null
770
+ } : {
771
+ mainAxis: u.mainAxis || 0,
772
+ crossAxis: u.crossAxis || 0,
773
+ alignmentAxis: u.alignmentAxis
774
+ };
775
+ return a && typeof m == "number" && (p = a === "end" ? m * -1 : m), l ? {
776
+ x: p * c,
777
+ y: f * d
778
+ } : {
779
+ x: f * d,
780
+ y: p * c
781
+ };
782
+ }
783
+ const po = function(e) {
784
+ return e === void 0 && (e = 0), {
785
+ name: "offset",
786
+ options: e,
787
+ async fn(t) {
788
+ var n, o;
789
+ const {
790
+ x: i,
791
+ y: r,
792
+ placement: s,
793
+ middlewareData: a
794
+ } = t, l = await uo(t, e);
795
+ return s === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
796
+ x: i + l.x,
797
+ y: r + l.y,
798
+ data: {
799
+ ...l,
800
+ placement: s
801
+ }
802
+ };
803
+ }
804
+ };
805
+ }, fo = function(e) {
806
+ return e === void 0 && (e = {}), {
807
+ name: "shift",
808
+ options: e,
809
+ async fn(t) {
810
+ const {
811
+ x: n,
812
+ y: o,
813
+ placement: i,
814
+ platform: r
815
+ } = t, {
816
+ mainAxis: s = !0,
817
+ crossAxis: a = !1,
818
+ limiter: l = {
819
+ fn: (y) => {
820
+ let {
821
+ x: w,
822
+ y: $
823
+ } = y;
824
+ return {
825
+ x: w,
826
+ y: $
827
+ };
828
+ }
829
+ },
830
+ ...d
831
+ } = _e(e, t), c = {
832
+ x: n,
833
+ y: o
834
+ }, u = await r.detectOverflow(t, d), f = ee(Q(i)), p = Yt(f);
835
+ let m = c[p], g = c[f];
836
+ if (s) {
837
+ const y = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", $ = m + u[y], C = m - u[w];
838
+ m = ot($, m, C);
839
+ }
840
+ if (a) {
841
+ const y = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", $ = g + u[y], C = g - u[w];
842
+ g = ot($, g, C);
843
+ }
844
+ const b = l.fn({
845
+ ...t,
846
+ [p]: m,
847
+ [f]: g
848
+ });
849
+ return {
850
+ ...b,
851
+ data: {
852
+ x: b.x - n,
853
+ y: b.y - o,
854
+ enabled: {
855
+ [p]: s,
856
+ [f]: a
857
+ }
858
+ }
859
+ };
860
+ }
861
+ };
862
+ }, ho = function(e) {
863
+ return e === void 0 && (e = {}), {
864
+ name: "size",
865
+ options: e,
866
+ async fn(t) {
867
+ var n, o;
868
+ const {
869
+ placement: i,
870
+ rects: r,
871
+ platform: s,
872
+ elements: a
873
+ } = t, {
874
+ apply: l = () => {
875
+ },
876
+ ...d
877
+ } = _e(e, t), c = await s.detectOverflow(t, d), u = Q(i), f = Y(i), p = ee(i) === "y", {
878
+ width: m,
879
+ height: g
880
+ } = r.floating;
881
+ let b, y;
882
+ u === "top" || u === "bottom" ? (b = u, y = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = u, b = f === "end" ? "top" : "bottom");
883
+ const w = g - c.top - c.bottom, $ = m - c.left - c.right, C = Ce(g - c[b], w), L = Ce(m - c[y], $), E = !t.middlewareData.shift;
884
+ let H = C, j = L;
885
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = $), (o = t.middlewareData.shift) != null && o.enabled.y && (H = w), E && !f) {
886
+ const _ = fe(c.left, 0), O = fe(c.right, 0), N = fe(c.top, 0), M = fe(c.bottom, 0);
887
+ p ? j = m - 2 * (_ !== 0 || O !== 0 ? _ + O : fe(c.left, c.right)) : H = g - 2 * (N !== 0 || M !== 0 ? N + M : fe(c.top, c.bottom));
888
+ }
889
+ await l({
890
+ ...t,
891
+ availableWidth: j,
892
+ availableHeight: H
893
+ });
894
+ const I = await s.getDimensions(a.floating);
895
+ return m !== I.width || g !== I.height ? {
896
+ reset: {
897
+ rects: !0
898
+ }
899
+ } : {};
900
+ }
901
+ };
902
+ };
903
+ function q(e) {
904
+ var t;
905
+ return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
906
+ }
907
+ function Z(e) {
908
+ return q(e).getComputedStyle(e);
909
+ }
910
+ const Tt = Math.min, $e = Math.max, Ie = Math.round;
911
+ function Qt(e) {
912
+ const t = Z(e);
913
+ let n = parseFloat(t.width), o = parseFloat(t.height);
914
+ const i = e.offsetWidth, r = e.offsetHeight, s = Ie(n) !== i || Ie(o) !== r;
915
+ return s && (n = i, o = r), { width: n, height: o, fallback: s };
916
+ }
917
+ function ce(e) {
918
+ return en(e) ? (e.nodeName || "").toLowerCase() : "";
919
+ }
920
+ let Ee;
921
+ function Jt() {
922
+ if (Ee) return Ee;
923
+ const e = navigator.userAgentData;
924
+ return e && Array.isArray(e.brands) ? (Ee = e.brands.map((t) => t.brand + "/" + t.version).join(" "), Ee) : navigator.userAgent;
925
+ }
926
+ function K(e) {
927
+ return e instanceof q(e).HTMLElement;
928
+ }
929
+ function re(e) {
930
+ return e instanceof q(e).Element;
931
+ }
932
+ function en(e) {
933
+ return e instanceof q(e).Node;
934
+ }
935
+ function Ct(e) {
936
+ return typeof ShadowRoot > "u" ? !1 : e instanceof q(e).ShadowRoot || e instanceof ShadowRoot;
937
+ }
938
+ function Ve(e) {
939
+ const { overflow: t, overflowX: n, overflowY: o, display: i } = Z(e);
940
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
941
+ }
942
+ function mo(e) {
943
+ return ["table", "td", "th"].includes(ce(e));
944
+ }
945
+ function it(e) {
946
+ const t = /firefox/i.test(Jt()), n = Z(e), o = n.backdropFilter || n.WebkitBackdropFilter;
947
+ return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some((i) => n.willChange.includes(i)) || ["paint", "layout", "strict", "content"].some((i) => {
948
+ const r = n.contain;
949
+ return r != null && r.includes(i);
950
+ });
951
+ }
952
+ function tn() {
953
+ return !/^((?!chrome|android).)*safari/i.test(Jt());
954
+ }
955
+ function mt(e) {
956
+ return ["html", "body", "#document"].includes(ce(e));
957
+ }
958
+ function nn(e) {
959
+ return re(e) ? e : e.contextElement;
960
+ }
961
+ const on = { x: 1, y: 1 };
962
+ function ye(e) {
963
+ const t = nn(e);
964
+ if (!K(t)) return on;
965
+ const n = t.getBoundingClientRect(), { width: o, height: i, fallback: r } = Qt(t);
966
+ let s = (r ? Ie(n.width) : n.width) / o, a = (r ? Ie(n.height) : n.height) / i;
967
+ return s && Number.isFinite(s) || (s = 1), a && Number.isFinite(a) || (a = 1), { x: s, y: a };
968
+ }
969
+ function Pe(e, t, n, o) {
970
+ var i, r;
971
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
972
+ const s = e.getBoundingClientRect(), a = nn(e);
973
+ let l = on;
974
+ t && (o ? re(o) && (l = ye(o)) : l = ye(e));
975
+ const d = a ? q(a) : window, c = !tn() && n;
976
+ let u = (s.left + (c && ((i = d.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / l.x, f = (s.top + (c && ((r = d.visualViewport) == null ? void 0 : r.offsetTop) || 0)) / l.y, p = s.width / l.x, m = s.height / l.y;
977
+ if (a) {
978
+ const g = q(a), b = o && re(o) ? q(o) : o;
979
+ let y = g.frameElement;
980
+ for (; y && o && b !== g; ) {
981
+ const w = ye(y), $ = y.getBoundingClientRect(), C = getComputedStyle(y);
982
+ $.x += (y.clientLeft + parseFloat(C.paddingLeft)) * w.x, $.y += (y.clientTop + parseFloat(C.paddingTop)) * w.y, u *= w.x, f *= w.y, p *= w.x, m *= w.y, u += $.x, f += $.y, y = q(y).frameElement;
983
+ }
984
+ }
985
+ return { width: p, height: m, top: f, right: u + p, bottom: f + m, left: u, x: u, y: f };
986
+ }
987
+ function ae(e) {
988
+ return ((en(e) ? e.ownerDocument : e.document) || window.document).documentElement;
989
+ }
990
+ function je(e) {
991
+ return re(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
992
+ }
993
+ function sn(e) {
994
+ return Pe(ae(e)).left + je(e).scrollLeft;
995
+ }
996
+ function Se(e) {
997
+ if (ce(e) === "html") return e;
998
+ const t = e.assignedSlot || e.parentNode || Ct(e) && e.host || ae(e);
999
+ return Ct(t) ? t.host : t;
1000
+ }
1001
+ function rn(e) {
1002
+ const t = Se(e);
1003
+ return mt(t) ? t.ownerDocument.body : K(t) && Ve(t) ? t : rn(t);
1004
+ }
1005
+ function Fe(e, t) {
1006
+ var n;
1007
+ t === void 0 && (t = []);
1008
+ const o = rn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = q(o);
1009
+ return i ? t.concat(r, r.visualViewport || [], Ve(o) ? o : []) : t.concat(o, Fe(o));
1010
+ }
1011
+ function Pt(e, t, n) {
1012
+ return t === "viewport" ? xe(function(o, i) {
1013
+ const r = q(o), s = ae(o), a = r.visualViewport;
1014
+ let l = s.clientWidth, d = s.clientHeight, c = 0, u = 0;
1015
+ if (a) {
1016
+ l = a.width, d = a.height;
1017
+ const f = tn();
1018
+ (f || !f && i === "fixed") && (c = a.offsetLeft, u = a.offsetTop);
1019
+ }
1020
+ return { width: l, height: d, x: c, y: u };
1021
+ }(e, n)) : re(t) ? xe(function(o, i) {
1022
+ const r = Pe(o, !0, i === "fixed"), s = r.top + o.clientTop, a = r.left + o.clientLeft, l = K(o) ? ye(o) : { x: 1, y: 1 };
1023
+ return { width: o.clientWidth * l.x, height: o.clientHeight * l.y, x: a * l.x, y: s * l.y };
1024
+ }(t, n)) : xe(function(o) {
1025
+ const i = ae(o), r = je(o), s = o.ownerDocument.body, a = $e(i.scrollWidth, i.clientWidth, s.scrollWidth, s.clientWidth), l = $e(i.scrollHeight, i.clientHeight, s.scrollHeight, s.clientHeight);
1026
+ let d = -r.scrollLeft + sn(o);
1027
+ const c = -r.scrollTop;
1028
+ return Z(s).direction === "rtl" && (d += $e(i.clientWidth, s.clientWidth) - a), { width: a, height: l, x: d, y: c };
1029
+ }(ae(e)));
1030
+ }
1031
+ function St(e) {
1032
+ return K(e) && Z(e).position !== "fixed" ? e.offsetParent : null;
1033
+ }
1034
+ function At(e) {
1035
+ const t = q(e);
1036
+ let n = St(e);
1037
+ for (; n && mo(n) && Z(n).position === "static"; ) n = St(n);
1038
+ return n && (ce(n) === "html" || ce(n) === "body" && Z(n).position === "static" && !it(n)) ? t : n || function(o) {
1039
+ let i = Se(o);
1040
+ for (; K(i) && !mt(i); ) {
1041
+ if (it(i)) return i;
1042
+ i = Se(i);
1043
+ }
1044
+ return null;
1045
+ }(e) || t;
1046
+ }
1047
+ function go(e, t, n) {
1048
+ const o = K(t), i = ae(t), r = Pe(e, !0, n === "fixed", t);
1049
+ let s = { scrollLeft: 0, scrollTop: 0 };
1050
+ const a = { x: 0, y: 0 };
1051
+ if (o || !o && n !== "fixed") if ((ce(t) !== "body" || Ve(i)) && (s = je(t)), K(t)) {
1052
+ const l = Pe(t, !0);
1053
+ a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
1054
+ } else i && (a.x = sn(i));
1055
+ return { x: r.left + s.scrollLeft - a.x, y: r.top + s.scrollTop - a.y, width: r.width, height: r.height };
1056
+ }
1057
+ const _o = { getClippingRect: function(e) {
1058
+ let { element: t, boundary: n, rootBoundary: o, strategy: i } = e;
1059
+ const r = n === "clippingAncestors" ? function(d, c) {
1060
+ const u = c.get(d);
1061
+ if (u) return u;
1062
+ let f = Fe(d).filter((b) => re(b) && ce(b) !== "body"), p = null;
1063
+ const m = Z(d).position === "fixed";
1064
+ let g = m ? Se(d) : d;
1065
+ for (; re(g) && !mt(g); ) {
1066
+ const b = Z(g), y = it(g);
1067
+ (m ? y || p : y || b.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = b : f = f.filter((w) => w !== g), g = Se(g);
1068
+ }
1069
+ return c.set(d, f), f;
1070
+ }(t, this._c) : [].concat(n), s = [...r, o], a = s[0], l = s.reduce((d, c) => {
1071
+ const u = Pt(t, c, i);
1072
+ return d.top = $e(u.top, d.top), d.right = Tt(u.right, d.right), d.bottom = Tt(u.bottom, d.bottom), d.left = $e(u.left, d.left), d;
1073
+ }, Pt(t, a, i));
1074
+ return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
1075
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
1076
+ let { rect: t, offsetParent: n, strategy: o } = e;
1077
+ const i = K(n), r = ae(n);
1078
+ if (n === r) return t;
1079
+ let s = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
1080
+ const l = { x: 0, y: 0 };
1081
+ if ((i || !i && o !== "fixed") && ((ce(n) !== "body" || Ve(r)) && (s = je(n)), K(n))) {
1082
+ const d = Pe(n);
1083
+ a = ye(n), l.x = d.x + n.clientLeft, l.y = d.y + n.clientTop;
1084
+ }
1085
+ return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - s.scrollLeft * a.x + l.x, y: t.y * a.y - s.scrollTop * a.y + l.y };
1086
+ }, isElement: re, getDimensions: function(e) {
1087
+ return K(e) ? Qt(e) : e.getBoundingClientRect();
1088
+ }, getOffsetParent: At, getDocumentElement: ae, getScale: ye, async getElementRects(e) {
1089
+ let { reference: t, floating: n, strategy: o } = e;
1090
+ const i = this.getOffsetParent || At, r = this.getDimensions;
1091
+ return { reference: go(t, await i(n), o), floating: { x: 0, y: 0, ...await r(n) } };
1092
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => Z(e).direction === "rtl" }, vo = (e, t, n) => {
1093
+ const o = /* @__PURE__ */ new Map(), i = { platform: _o, ...n }, r = { ...i.platform, _c: o };
1094
+ return io(e, t, { ...i, platform: r });
1095
+ }, le = {
1096
+ // Disable popper components
1097
+ disabled: !1,
1098
+ // Default position offset along main axis (px)
1099
+ distance: 5,
1100
+ // Default position offset along cross axis (px)
1101
+ skidding: 0,
1102
+ // Default container where the tooltip will be appended
1103
+ container: "body",
1104
+ // Element used to compute position and size boundaries
1105
+ boundary: void 0,
1106
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
1107
+ instantMove: !1,
1108
+ // Auto destroy tooltip DOM nodes (ms)
1109
+ disposeTimeout: 150,
1110
+ // Triggers on the popper itself
1111
+ popperTriggers: [],
1112
+ // Positioning strategy
1113
+ strategy: "absolute",
1114
+ // Prevent overflow
1115
+ preventOverflow: !0,
1116
+ // Flip to the opposite placement if needed
1117
+ flip: !0,
1118
+ // Shift on the cross axis to prevent the popper from overflowing
1119
+ shift: !0,
1120
+ // Overflow padding (px)
1121
+ overflowPadding: 0,
1122
+ // Arrow padding (px)
1123
+ arrowPadding: 0,
1124
+ // Compute arrow overflow (useful to hide it)
1125
+ arrowOverflow: !0,
1126
+ /**
1127
+ * By default, compute autohide on 'click'.
1128
+ */
1129
+ autoHideOnMousedown: !1,
1130
+ // Themes
1131
+ themes: {
1132
+ tooltip: {
1133
+ // Default tooltip placement relative to target element
1134
+ placement: "top",
1135
+ // Default events that trigger the tooltip
1136
+ triggers: ["hover", "focus", "touch"],
1137
+ // Close tooltip on click on tooltip target
1138
+ hideTriggers: (e) => [...e, "click"],
1139
+ // Delay (ms)
1140
+ delay: {
1141
+ show: 200,
1142
+ hide: 0
1143
+ },
1144
+ // Update popper on content resize
1145
+ handleResize: !1,
1146
+ // Enable HTML content in directive
1147
+ html: !1,
1148
+ // Displayed when tooltip content is loading
1149
+ loadingContent: "..."
1150
+ },
1151
+ dropdown: {
1152
+ // Default dropdown placement relative to target element
1153
+ placement: "bottom",
1154
+ // Default events that trigger the dropdown
1155
+ triggers: ["click"],
1156
+ // Delay (ms)
1157
+ delay: 0,
1158
+ // Update popper on content resize
1159
+ handleResize: !0,
1160
+ // Hide on clock outside
1161
+ autoHide: !0
1162
+ },
1163
+ menu: {
1164
+ $extend: "dropdown",
1165
+ triggers: ["hover", "focus"],
1166
+ popperTriggers: ["hover"],
1167
+ delay: {
1168
+ show: 0,
1169
+ hide: 400
1170
+ }
1171
+ }
1172
+ }
1173
+ };
1174
+ function st(e, t) {
1175
+ let n = le.themes[e] || {}, o;
1176
+ do
1177
+ o = n[t], typeof o > "u" ? n.$extend ? n = le.themes[n.$extend] || {} : (n = null, o = le[t]) : n = null;
1178
+ while (n);
1179
+ return o;
1180
+ }
1181
+ function yo(e) {
1182
+ const t = [e];
1183
+ let n = le.themes[e] || {};
1184
+ do
1185
+ n.$extend && !n.$resetCss ? (t.push(n.$extend), n = le.themes[n.$extend] || {}) : n = null;
1186
+ while (n);
1187
+ return t.map((o) => `v-popper--theme-${o}`);
1188
+ }
1189
+ function kt(e) {
1190
+ const t = [e];
1191
+ let n = le.themes[e] || {};
1192
+ do
1193
+ n.$extend ? (t.push(n.$extend), n = le.themes[n.$extend] || {}) : n = null;
1194
+ while (n);
127
1195
  return t;
128
- }, C = /* @__PURE__ */ z(b, [["__scopeId", "data-v-33d59ff0"]]), y = /* @__PURE__ */ i({
1196
+ }
1197
+ let Ae = !1;
1198
+ if (typeof window < "u") {
1199
+ Ae = !1;
1200
+ try {
1201
+ const e = Object.defineProperty({}, "passive", {
1202
+ get() {
1203
+ Ae = !0;
1204
+ }
1205
+ });
1206
+ window.addEventListener("test", null, e);
1207
+ } catch {
1208
+ }
1209
+ }
1210
+ let an = !1;
1211
+ typeof window < "u" && typeof navigator < "u" && (an = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1212
+ const wo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1213
+ t,
1214
+ `${t}-start`,
1215
+ `${t}-end`
1216
+ ]), []), Et = {
1217
+ hover: "mouseenter",
1218
+ focus: "focus",
1219
+ click: "click",
1220
+ touch: "touchstart",
1221
+ pointer: "pointerdown"
1222
+ }, Ot = {
1223
+ hover: "mouseleave",
1224
+ focus: "blur",
1225
+ click: "click",
1226
+ touch: "touchend",
1227
+ pointer: "pointerup"
1228
+ };
1229
+ function Lt(e, t) {
1230
+ const n = e.indexOf(t);
1231
+ n !== -1 && e.splice(n, 1);
1232
+ }
1233
+ function Ye() {
1234
+ return new Promise((e) => requestAnimationFrame(() => {
1235
+ requestAnimationFrame(e);
1236
+ }));
1237
+ }
1238
+ const X = [];
1239
+ let pe = null;
1240
+ const Bt = {};
1241
+ function Nt(e) {
1242
+ let t = Bt[e];
1243
+ return t || (t = Bt[e] = []), t;
1244
+ }
1245
+ let rt = function() {
1246
+ };
1247
+ typeof window < "u" && (rt = window.Element);
1248
+ function z(e) {
1249
+ return function(t) {
1250
+ return st(t.theme, e);
1251
+ };
1252
+ }
1253
+ const Ze = "__floating-vue__popper", ln = () => S({
1254
+ name: "VPopper",
1255
+ provide() {
1256
+ return {
1257
+ [Ze]: {
1258
+ parentPopper: this
1259
+ }
1260
+ };
1261
+ },
1262
+ inject: {
1263
+ [Ze]: { default: null }
1264
+ },
1265
+ props: {
1266
+ theme: {
1267
+ type: String,
1268
+ required: !0
1269
+ },
1270
+ targetNodes: {
1271
+ type: Function,
1272
+ required: !0
1273
+ },
1274
+ referenceNode: {
1275
+ type: Function,
1276
+ default: null
1277
+ },
1278
+ popperNode: {
1279
+ type: Function,
1280
+ required: !0
1281
+ },
1282
+ shown: {
1283
+ type: Boolean,
1284
+ default: !1
1285
+ },
1286
+ showGroup: {
1287
+ type: String,
1288
+ default: null
1289
+ },
1290
+ // eslint-disable-next-line vue/require-prop-types
1291
+ ariaId: {
1292
+ default: null
1293
+ },
1294
+ disabled: {
1295
+ type: Boolean,
1296
+ default: z("disabled")
1297
+ },
1298
+ positioningDisabled: {
1299
+ type: Boolean,
1300
+ default: z("positioningDisabled")
1301
+ },
1302
+ placement: {
1303
+ type: String,
1304
+ default: z("placement"),
1305
+ validator: (e) => wo.includes(e)
1306
+ },
1307
+ delay: {
1308
+ type: [String, Number, Object],
1309
+ default: z("delay")
1310
+ },
1311
+ distance: {
1312
+ type: [Number, String],
1313
+ default: z("distance")
1314
+ },
1315
+ skidding: {
1316
+ type: [Number, String],
1317
+ default: z("skidding")
1318
+ },
1319
+ triggers: {
1320
+ type: Array,
1321
+ default: z("triggers")
1322
+ },
1323
+ showTriggers: {
1324
+ type: [Array, Function],
1325
+ default: z("showTriggers")
1326
+ },
1327
+ hideTriggers: {
1328
+ type: [Array, Function],
1329
+ default: z("hideTriggers")
1330
+ },
1331
+ popperTriggers: {
1332
+ type: Array,
1333
+ default: z("popperTriggers")
1334
+ },
1335
+ popperShowTriggers: {
1336
+ type: [Array, Function],
1337
+ default: z("popperShowTriggers")
1338
+ },
1339
+ popperHideTriggers: {
1340
+ type: [Array, Function],
1341
+ default: z("popperHideTriggers")
1342
+ },
1343
+ container: {
1344
+ type: [String, Object, rt, Boolean],
1345
+ default: z("container")
1346
+ },
1347
+ boundary: {
1348
+ type: [String, rt],
1349
+ default: z("boundary")
1350
+ },
1351
+ strategy: {
1352
+ type: String,
1353
+ validator: (e) => ["absolute", "fixed"].includes(e),
1354
+ default: z("strategy")
1355
+ },
1356
+ autoHide: {
1357
+ type: [Boolean, Function],
1358
+ default: z("autoHide")
1359
+ },
1360
+ handleResize: {
1361
+ type: Boolean,
1362
+ default: z("handleResize")
1363
+ },
1364
+ instantMove: {
1365
+ type: Boolean,
1366
+ default: z("instantMove")
1367
+ },
1368
+ eagerMount: {
1369
+ type: Boolean,
1370
+ default: z("eagerMount")
1371
+ },
1372
+ popperClass: {
1373
+ type: [String, Array, Object],
1374
+ default: z("popperClass")
1375
+ },
1376
+ computeTransformOrigin: {
1377
+ type: Boolean,
1378
+ default: z("computeTransformOrigin")
1379
+ },
1380
+ /**
1381
+ * @deprecated
1382
+ */
1383
+ autoMinSize: {
1384
+ type: Boolean,
1385
+ default: z("autoMinSize")
1386
+ },
1387
+ autoSize: {
1388
+ type: [Boolean, String],
1389
+ default: z("autoSize")
1390
+ },
1391
+ /**
1392
+ * @deprecated
1393
+ */
1394
+ autoMaxSize: {
1395
+ type: Boolean,
1396
+ default: z("autoMaxSize")
1397
+ },
1398
+ autoBoundaryMaxSize: {
1399
+ type: Boolean,
1400
+ default: z("autoBoundaryMaxSize")
1401
+ },
1402
+ preventOverflow: {
1403
+ type: Boolean,
1404
+ default: z("preventOverflow")
1405
+ },
1406
+ overflowPadding: {
1407
+ type: [Number, String],
1408
+ default: z("overflowPadding")
1409
+ },
1410
+ arrowPadding: {
1411
+ type: [Number, String],
1412
+ default: z("arrowPadding")
1413
+ },
1414
+ arrowOverflow: {
1415
+ type: Boolean,
1416
+ default: z("arrowOverflow")
1417
+ },
1418
+ flip: {
1419
+ type: Boolean,
1420
+ default: z("flip")
1421
+ },
1422
+ shift: {
1423
+ type: Boolean,
1424
+ default: z("shift")
1425
+ },
1426
+ shiftCrossAxis: {
1427
+ type: Boolean,
1428
+ default: z("shiftCrossAxis")
1429
+ },
1430
+ noAutoFocus: {
1431
+ type: Boolean,
1432
+ default: z("noAutoFocus")
1433
+ },
1434
+ disposeTimeout: {
1435
+ type: Number,
1436
+ default: z("disposeTimeout")
1437
+ }
1438
+ },
1439
+ emits: {
1440
+ show: () => !0,
1441
+ hide: () => !0,
1442
+ "update:shown": (e) => !0,
1443
+ "apply-show": () => !0,
1444
+ "apply-hide": () => !0,
1445
+ "close-group": () => !0,
1446
+ "close-directive": () => !0,
1447
+ "auto-hide": () => !0,
1448
+ resize: () => !0
1449
+ },
1450
+ data() {
1451
+ return {
1452
+ isShown: !1,
1453
+ isMounted: !1,
1454
+ skipTransition: !1,
1455
+ classes: {
1456
+ showFrom: !1,
1457
+ showTo: !1,
1458
+ hideFrom: !1,
1459
+ hideTo: !0
1460
+ },
1461
+ result: {
1462
+ x: 0,
1463
+ y: 0,
1464
+ placement: "",
1465
+ strategy: this.strategy,
1466
+ arrow: {
1467
+ x: 0,
1468
+ y: 0,
1469
+ centerOffset: 0
1470
+ },
1471
+ transformOrigin: null
1472
+ },
1473
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
1474
+ shownChildren: /* @__PURE__ */ new Set(),
1475
+ lastAutoHide: !0,
1476
+ pendingHide: !1,
1477
+ containsGlobalTarget: !1,
1478
+ isDisposed: !0,
1479
+ mouseDownContains: !1
1480
+ };
1481
+ },
1482
+ computed: {
1483
+ popperId() {
1484
+ return this.ariaId != null ? this.ariaId : this.randomId;
1485
+ },
1486
+ shouldMountContent() {
1487
+ return this.eagerMount || this.isMounted;
1488
+ },
1489
+ slotData() {
1490
+ return {
1491
+ popperId: this.popperId,
1492
+ isShown: this.isShown,
1493
+ shouldMountContent: this.shouldMountContent,
1494
+ skipTransition: this.skipTransition,
1495
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1496
+ show: this.show,
1497
+ hide: this.hide,
1498
+ handleResize: this.handleResize,
1499
+ onResize: this.onResize,
1500
+ classes: {
1501
+ ...this.classes,
1502
+ popperClass: this.popperClass
1503
+ },
1504
+ result: this.positioningDisabled ? null : this.result,
1505
+ attrs: this.$attrs
1506
+ };
1507
+ },
1508
+ parentPopper() {
1509
+ var e;
1510
+ return (e = this[Ze]) == null ? void 0 : e.parentPopper;
1511
+ },
1512
+ hasPopperShowTriggerHover() {
1513
+ var e, t;
1514
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1515
+ }
1516
+ },
1517
+ watch: {
1518
+ shown: "$_autoShowHide",
1519
+ disabled(e) {
1520
+ e ? this.dispose() : this.init();
1521
+ },
1522
+ async container() {
1523
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1524
+ },
1525
+ triggers: {
1526
+ handler: "$_refreshListeners",
1527
+ deep: !0
1528
+ },
1529
+ positioningDisabled: "$_refreshListeners",
1530
+ ...[
1531
+ "placement",
1532
+ "distance",
1533
+ "skidding",
1534
+ "boundary",
1535
+ "strategy",
1536
+ "overflowPadding",
1537
+ "arrowPadding",
1538
+ "preventOverflow",
1539
+ "shift",
1540
+ "shiftCrossAxis",
1541
+ "flip"
1542
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1543
+ },
1544
+ created() {
1545
+ this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1546
+ },
1547
+ mounted() {
1548
+ this.init(), this.$_detachPopperNode();
1549
+ },
1550
+ activated() {
1551
+ this.$_autoShowHide();
1552
+ },
1553
+ deactivated() {
1554
+ this.hide();
1555
+ },
1556
+ beforeUnmount() {
1557
+ this.dispose();
1558
+ },
1559
+ methods: {
1560
+ show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
1561
+ var o, i;
1562
+ (o = this.parentPopper) != null && o.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (n || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1563
+ this.$_showFrameLocked = !1;
1564
+ })), this.$emit("update:shown", !0));
1565
+ },
1566
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
1567
+ var n;
1568
+ if (!this.$_hideInProgress) {
1569
+ if (this.shownChildren.size > 0) {
1570
+ this.pendingHide = !0;
1571
+ return;
1572
+ }
1573
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1574
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1575
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1576
+ }, 1e3));
1577
+ return;
1578
+ }
1579
+ ((n = this.parentPopper) == null ? void 0 : n.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1580
+ }
1581
+ },
1582
+ init() {
1583
+ var e;
1584
+ this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1585
+ },
1586
+ dispose() {
1587
+ this.isDisposed || (this.isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
1588
+ },
1589
+ async onResize() {
1590
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1591
+ },
1592
+ async $_computePosition() {
1593
+ if (this.isDisposed || this.positioningDisabled)
1594
+ return;
1595
+ const e = {
1596
+ strategy: this.strategy,
1597
+ middleware: []
1598
+ };
1599
+ (this.distance || this.skidding) && e.middleware.push(po({
1600
+ mainAxis: this.distance,
1601
+ crossAxis: this.skidding
1602
+ }));
1603
+ const t = this.placement.startsWith("auto");
1604
+ if (t ? e.middleware.push(ao({
1605
+ alignment: this.placement.split("-")[1] ?? ""
1606
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(fo({
1607
+ padding: this.overflowPadding,
1608
+ boundary: this.boundary,
1609
+ crossAxis: this.shiftCrossAxis
1610
+ })), !t && this.flip && e.middleware.push(lo({
1611
+ padding: this.overflowPadding,
1612
+ boundary: this.boundary
1613
+ }))), e.middleware.push(so({
1614
+ element: this.$_arrowNode,
1615
+ padding: this.arrowPadding
1616
+ })), this.arrowOverflow && e.middleware.push({
1617
+ name: "arrowOverflow",
1618
+ fn: ({ placement: o, rects: i, middlewareData: r }) => {
1619
+ let s;
1620
+ const { centerOffset: a } = r.arrow;
1621
+ return o.startsWith("top") || o.startsWith("bottom") ? s = Math.abs(a) > i.reference.width / 2 : s = Math.abs(a) > i.reference.height / 2, {
1622
+ data: {
1623
+ overflow: s
1624
+ }
1625
+ };
1626
+ }
1627
+ }), this.autoMinSize || this.autoSize) {
1628
+ const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1629
+ e.middleware.push({
1630
+ name: "autoSize",
1631
+ fn: ({ rects: i, placement: r, middlewareData: s }) => {
1632
+ var a;
1633
+ if ((a = s.autoSize) != null && a.skip)
1634
+ return {};
1635
+ let l, d;
1636
+ return r.startsWith("top") || r.startsWith("bottom") ? l = i.reference.width : d = i.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = l != null ? `${l}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
1637
+ data: {
1638
+ skip: !0
1639
+ },
1640
+ reset: {
1641
+ rects: !0
1642
+ }
1643
+ };
1644
+ }
1645
+ });
1646
+ }
1647
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(ho({
1648
+ boundary: this.boundary,
1649
+ padding: this.overflowPadding,
1650
+ apply: ({ availableWidth: o, availableHeight: i }) => {
1651
+ this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
1652
+ }
1653
+ })));
1654
+ const n = await vo(this.$_referenceNode, this.$_popperNode, e);
1655
+ Object.assign(this.result, {
1656
+ x: n.x,
1657
+ y: n.y,
1658
+ placement: n.placement,
1659
+ strategy: n.strategy,
1660
+ arrow: {
1661
+ ...n.middlewareData.arrow,
1662
+ ...n.middlewareData.arrowOverflow
1663
+ }
1664
+ });
1665
+ },
1666
+ $_scheduleShow(e, t = !1) {
1667
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), pe && this.instantMove && pe.instantMove && pe !== this.parentPopper) {
1668
+ pe.$_applyHide(!0), this.$_applyShow(!0);
1669
+ return;
1670
+ }
1671
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1672
+ },
1673
+ $_scheduleHide(e, t = !1) {
1674
+ if (this.shownChildren.size > 0) {
1675
+ this.pendingHide = !0;
1676
+ return;
1677
+ }
1678
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (pe = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1679
+ },
1680
+ $_computeDelay(e) {
1681
+ const t = this.delay;
1682
+ return parseInt(t && t[e] || t || 0);
1683
+ },
1684
+ async $_applyShow(e = !1) {
1685
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Ye(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1686
+ ...Fe(this.$_referenceNode),
1687
+ ...Fe(this.$_popperNode)
1688
+ ], "scroll", () => {
1689
+ this.$_computePosition();
1690
+ }));
1691
+ },
1692
+ async $_applyShowEffect() {
1693
+ if (this.$_hideInProgress)
1694
+ return;
1695
+ if (this.computeTransformOrigin) {
1696
+ const t = this.$_referenceNode.getBoundingClientRect(), n = this.$_popperNode.querySelector(".v-popper__wrapper"), o = n.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (o.left + n.offsetLeft), r = t.y + t.height / 2 - (o.top + n.offsetTop);
1697
+ this.result.transformOrigin = `${i}px ${r}px`;
1698
+ }
1699
+ this.isShown = !0, this.$_applyAttrsToTarget({
1700
+ "aria-describedby": this.popperId,
1701
+ "data-popper-shown": ""
1702
+ });
1703
+ const e = this.showGroup;
1704
+ if (e) {
1705
+ let t;
1706
+ for (let n = 0; n < X.length; n++)
1707
+ t = X[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1708
+ }
1709
+ X.push(this), document.body.classList.add("v-popper--some-open");
1710
+ for (const t of kt(this.theme))
1711
+ Nt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1712
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Ye(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1713
+ },
1714
+ async $_applyHide(e = !1) {
1715
+ if (this.shownChildren.size > 0) {
1716
+ this.pendingHide = !0, this.$_hideInProgress = !1;
1717
+ return;
1718
+ }
1719
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
1720
+ return;
1721
+ this.skipTransition = e, Lt(X, this), X.length === 0 && document.body.classList.remove("v-popper--some-open");
1722
+ for (const n of kt(this.theme)) {
1723
+ const o = Nt(n);
1724
+ Lt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
1725
+ }
1726
+ pe === this && (pe = null), this.isShown = !1, this.$_applyAttrsToTarget({
1727
+ "aria-describedby": void 0,
1728
+ "data-popper-shown": void 0
1729
+ }), clearTimeout(this.$_disposeTimer);
1730
+ const t = this.disposeTimeout;
1731
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
1732
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
1733
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Ye(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1734
+ },
1735
+ $_autoShowHide() {
1736
+ this.shown ? this.show() : this.hide();
1737
+ },
1738
+ $_ensureTeleport() {
1739
+ if (this.isDisposed)
1740
+ return;
1741
+ let e = this.container;
1742
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
1743
+ throw new Error("No container for popover: " + this.container);
1744
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
1745
+ },
1746
+ $_addEventListeners() {
1747
+ const e = (n) => {
1748
+ this.isShown && !this.$_hideInProgress || (n.usedByTooltip = !0, !this.$_preventShow && this.show({ event: n }));
1749
+ };
1750
+ this.$_registerTriggerListeners(this.$_targetNodes, Et, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], Et, this.popperTriggers, this.popperShowTriggers, e);
1751
+ const t = (n) => {
1752
+ n.usedByTooltip || this.hide({ event: n });
1753
+ };
1754
+ this.$_registerTriggerListeners(this.$_targetNodes, Ot, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], Ot, this.popperTriggers, this.popperHideTriggers, t);
1755
+ },
1756
+ $_registerEventListeners(e, t, n) {
1757
+ this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, Ae ? {
1758
+ passive: !0
1759
+ } : void 0));
1760
+ },
1761
+ $_registerTriggerListeners(e, t, n, o, i) {
1762
+ let r = n;
1763
+ o != null && (r = typeof o == "function" ? o(r) : o), r.forEach((s) => {
1764
+ const a = t[s];
1765
+ a && this.$_registerEventListeners(e, a, i);
1766
+ });
1767
+ },
1768
+ $_removeEventListeners(e) {
1769
+ const t = [];
1770
+ this.$_events.forEach((n) => {
1771
+ const { targetNodes: o, eventType: i, handler: r } = n;
1772
+ !e || e === i ? o.forEach((s) => s.removeEventListener(i, r)) : t.push(n);
1773
+ }), this.$_events = t;
1774
+ },
1775
+ $_refreshListeners() {
1776
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1777
+ },
1778
+ $_handleGlobalClose(e, t = !1) {
1779
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
1780
+ this.$_preventShow = !1;
1781
+ }, 300)));
1782
+ },
1783
+ $_detachPopperNode() {
1784
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
1785
+ },
1786
+ $_swapTargetAttrs(e, t) {
1787
+ for (const n of this.$_targetNodes) {
1788
+ const o = n.getAttribute(e);
1789
+ o && (n.removeAttribute(e), n.setAttribute(t, o));
1790
+ }
1791
+ },
1792
+ $_applyAttrsToTarget(e) {
1793
+ for (const t of this.$_targetNodes)
1794
+ for (const n in e) {
1795
+ const o = e[n];
1796
+ o == null ? t.removeAttribute(n) : t.setAttribute(n, o);
1797
+ }
1798
+ },
1799
+ $_updateParentShownChildren(e) {
1800
+ let t = this.parentPopper;
1801
+ for (; t; )
1802
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
1803
+ },
1804
+ $_isAimingPopper() {
1805
+ const e = this.$_referenceNode.getBoundingClientRect();
1806
+ if (ze >= e.left && ze <= e.right && Te >= e.top && Te <= e.bottom) {
1807
+ const t = this.$_popperNode.getBoundingClientRect(), n = ze - ne, o = Te - oe, i = t.left + t.width / 2 - ne + (t.top + t.height / 2) - oe + t.width + t.height, r = ne + n * i, s = oe + o * i;
1808
+ return Oe(ne, oe, r, s, t.left, t.top, t.left, t.bottom) || // Left edge
1809
+ Oe(ne, oe, r, s, t.left, t.top, t.right, t.top) || // Top edge
1810
+ Oe(ne, oe, r, s, t.right, t.top, t.right, t.bottom) || // Right edge
1811
+ Oe(ne, oe, r, s, t.left, t.bottom, t.right, t.bottom);
1812
+ }
1813
+ return !1;
1814
+ }
1815
+ },
1816
+ render() {
1817
+ return this.$slots.default(this.slotData);
1818
+ }
1819
+ });
1820
+ if (typeof document < "u" && typeof window < "u") {
1821
+ if (an) {
1822
+ const e = Ae ? {
1823
+ passive: !0,
1824
+ capture: !0
1825
+ } : !0;
1826
+ document.addEventListener("touchstart", (t) => Rt(t), e), document.addEventListener("touchend", (t) => Ht(t, !0), e);
1827
+ } else
1828
+ window.addEventListener("mousedown", (e) => Rt(e), !0), window.addEventListener("click", (e) => Ht(e, !1), !0);
1829
+ window.addEventListener("resize", $o);
1830
+ }
1831
+ function Rt(e, t) {
1832
+ for (let n = 0; n < X.length; n++) {
1833
+ const o = X[n];
1834
+ try {
1835
+ o.mouseDownContains = o.popperNode().contains(e.target);
1836
+ } catch {
1837
+ }
1838
+ }
1839
+ }
1840
+ function Ht(e, t) {
1841
+ bo(e, t);
1842
+ }
1843
+ function bo(e, t) {
1844
+ const n = {};
1845
+ for (let o = X.length - 1; o >= 0; o--) {
1846
+ const i = X[o];
1847
+ try {
1848
+ const r = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target);
1849
+ i.pendingHide = !1, requestAnimationFrame(() => {
1850
+ if (i.pendingHide = !1, !n[i.randomId] && Mt(i, r, e)) {
1851
+ if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
1852
+ let a = i.parentPopper;
1853
+ for (; a; )
1854
+ n[a.randomId] = !0, a = a.parentPopper;
1855
+ return;
1856
+ }
1857
+ let s = i.parentPopper;
1858
+ for (; s && Mt(s, s.containsGlobalTarget, e); )
1859
+ s.$_handleGlobalClose(e, t), s = s.parentPopper;
1860
+ }
1861
+ });
1862
+ } catch {
1863
+ }
1864
+ }
1865
+ }
1866
+ function Mt(e, t, n) {
1867
+ return n.closeAllPopover || n.closePopover && t || xo(e, n) && !t;
1868
+ }
1869
+ function xo(e, t) {
1870
+ if (typeof e.autoHide == "function") {
1871
+ const n = e.autoHide(t);
1872
+ return e.lastAutoHide = n, n;
1873
+ }
1874
+ return e.autoHide;
1875
+ }
1876
+ function $o() {
1877
+ for (let e = 0; e < X.length; e++)
1878
+ X[e].$_computePosition();
1879
+ }
1880
+ let ne = 0, oe = 0, ze = 0, Te = 0;
1881
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
1882
+ ne = ze, oe = Te, ze = e.clientX, Te = e.clientY;
1883
+ }, Ae ? {
1884
+ passive: !0
1885
+ } : void 0);
1886
+ function Oe(e, t, n, o, i, r, s, a) {
1887
+ const l = ((s - i) * (t - r) - (a - r) * (e - i)) / ((a - r) * (n - e) - (s - i) * (o - t)), d = ((n - e) * (t - r) - (o - t) * (e - i)) / ((a - r) * (n - e) - (s - i) * (o - t));
1888
+ return l >= 0 && l <= 1 && d >= 0 && d <= 1;
1889
+ }
1890
+ const zo = {
1891
+ extends: ln()
1892
+ }, gt = (e, t) => {
1893
+ const n = e.__vccOpts || e;
1894
+ for (const [o, i] of t)
1895
+ n[o] = i;
1896
+ return n;
1897
+ };
1898
+ function To(e, t, n, o, i, r) {
1899
+ return h(), v("div", {
1900
+ ref: "reference",
1901
+ class: k(["v-popper", {
1902
+ "v-popper--shown": e.slotData.isShown
1903
+ }])
1904
+ }, [
1905
+ x(e.$slots, "default", yn(wn(e.slotData)))
1906
+ ], 2);
1907
+ }
1908
+ const Co = /* @__PURE__ */ gt(zo, [["render", To]]);
1909
+ function Po() {
1910
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1911
+ if (t > 0)
1912
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1913
+ var n = e.indexOf("Trident/");
1914
+ if (n > 0) {
1915
+ var o = e.indexOf("rv:");
1916
+ return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
1917
+ }
1918
+ var i = e.indexOf("Edge/");
1919
+ return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
1920
+ }
1921
+ let Be;
1922
+ function at() {
1923
+ at.init || (at.init = !0, Be = Po() !== -1);
1924
+ }
1925
+ var qe = {
1926
+ name: "ResizeObserver",
1927
+ props: {
1928
+ emitOnMount: {
1929
+ type: Boolean,
1930
+ default: !1
1931
+ },
1932
+ ignoreWidth: {
1933
+ type: Boolean,
1934
+ default: !1
1935
+ },
1936
+ ignoreHeight: {
1937
+ type: Boolean,
1938
+ default: !1
1939
+ }
1940
+ },
1941
+ emits: [
1942
+ "notify"
1943
+ ],
1944
+ mounted() {
1945
+ at(), tt(() => {
1946
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1947
+ });
1948
+ const e = document.createElement("object");
1949
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Be && this.$el.appendChild(e), e.data = "about:blank", Be || this.$el.appendChild(e);
1950
+ },
1951
+ beforeUnmount() {
1952
+ this.removeResizeHandlers();
1953
+ },
1954
+ methods: {
1955
+ compareAndNotify() {
1956
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1957
+ },
1958
+ emitSize() {
1959
+ this.$emit("notify", {
1960
+ width: this._w,
1961
+ height: this._h
1962
+ });
1963
+ },
1964
+ addResizeHandlers() {
1965
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1966
+ },
1967
+ removeResizeHandlers() {
1968
+ this._resizeObject && this._resizeObject.onload && (!Be && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1969
+ }
1970
+ }
1971
+ };
1972
+ const So = /* @__PURE__ */ bn("data-v-b329ee4c");
1973
+ _n("data-v-b329ee4c");
1974
+ const Ao = {
1975
+ class: "resize-observer",
1976
+ tabindex: "-1"
1977
+ };
1978
+ vn();
1979
+ const ko = /* @__PURE__ */ So((e, t, n, o, i, r) => (h(), F("div", Ao)));
1980
+ qe.render = ko;
1981
+ qe.__scopeId = "data-v-b329ee4c";
1982
+ qe.__file = "src/components/ResizeObserver.vue";
1983
+ const dn = (e = "theme") => ({
1984
+ computed: {
1985
+ themeClass() {
1986
+ return yo(this[e]);
1987
+ }
1988
+ }
1989
+ }), Eo = S({
1990
+ name: "VPopperContent",
1991
+ components: {
1992
+ ResizeObserver: qe
1993
+ },
1994
+ mixins: [
1995
+ dn()
1996
+ ],
1997
+ props: {
1998
+ popperId: String,
1999
+ theme: String,
2000
+ shown: Boolean,
2001
+ mounted: Boolean,
2002
+ skipTransition: Boolean,
2003
+ autoHide: Boolean,
2004
+ handleResize: Boolean,
2005
+ classes: Object,
2006
+ result: Object
2007
+ },
2008
+ emits: [
2009
+ "hide",
2010
+ "resize"
2011
+ ],
2012
+ methods: {
2013
+ toPx(e) {
2014
+ return e != null && !isNaN(e) ? `${e}px` : null;
2015
+ }
2016
+ }
2017
+ }), Oo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Lo = {
2018
+ ref: "inner",
2019
+ class: "v-popper__inner"
2020
+ }, Bo = /* @__PURE__ */ P("div", { class: "v-popper__arrow-outer" }, null, -1), No = /* @__PURE__ */ P("div", { class: "v-popper__arrow-inner" }, null, -1), Ro = [
2021
+ Bo,
2022
+ No
2023
+ ];
2024
+ function Ho(e, t, n, o, i, r) {
2025
+ const s = nt("ResizeObserver");
2026
+ return h(), v("div", {
2027
+ id: e.popperId,
2028
+ ref: "popover",
2029
+ class: k(["v-popper__popper", [
2030
+ e.themeClass,
2031
+ e.classes.popperClass,
2032
+ {
2033
+ "v-popper__popper--shown": e.shown,
2034
+ "v-popper__popper--hidden": !e.shown,
2035
+ "v-popper__popper--show-from": e.classes.showFrom,
2036
+ "v-popper__popper--show-to": e.classes.showTo,
2037
+ "v-popper__popper--hide-from": e.classes.hideFrom,
2038
+ "v-popper__popper--hide-to": e.classes.hideTo,
2039
+ "v-popper__popper--skip-transition": e.skipTransition,
2040
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
2041
+ "v-popper__popper--no-positioning": !e.result
2042
+ }
2043
+ ]]),
2044
+ style: he(e.result ? {
2045
+ position: e.result.strategy,
2046
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
2047
+ } : void 0),
2048
+ "aria-hidden": e.shown ? "false" : "true",
2049
+ tabindex: e.autoHide ? 0 : void 0,
2050
+ "data-popper-placement": e.result ? e.result.placement : void 0,
2051
+ onKeyup: t[2] || (t[2] = Ft((a) => e.autoHide && e.$emit("hide"), ["esc"]))
2052
+ }, [
2053
+ P("div", {
2054
+ class: "v-popper__backdrop",
2055
+ onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
2056
+ }),
2057
+ P("div", {
2058
+ class: "v-popper__wrapper",
2059
+ style: he(e.result ? {
2060
+ transformOrigin: e.result.transformOrigin
2061
+ } : void 0)
2062
+ }, [
2063
+ P("div", Lo, [
2064
+ e.mounted ? (h(), v(ge, { key: 0 }, [
2065
+ P("div", null, [
2066
+ x(e.$slots, "default")
2067
+ ]),
2068
+ e.handleResize ? (h(), F(s, {
2069
+ key: 0,
2070
+ onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
2071
+ })) : R("", !0)
2072
+ ], 64)) : R("", !0)
2073
+ ], 512),
2074
+ P("div", {
2075
+ ref: "arrow",
2076
+ class: "v-popper__arrow-container",
2077
+ style: he(e.result ? {
2078
+ left: e.toPx(e.result.arrow.x),
2079
+ top: e.toPx(e.result.arrow.y)
2080
+ } : void 0)
2081
+ }, Ro, 4)
2082
+ ], 4)
2083
+ ], 46, Oo);
2084
+ }
2085
+ const cn = /* @__PURE__ */ gt(Eo, [["render", Ho]]), un = {
2086
+ methods: {
2087
+ show(...e) {
2088
+ return this.$refs.popper.show(...e);
2089
+ },
2090
+ hide(...e) {
2091
+ return this.$refs.popper.hide(...e);
2092
+ },
2093
+ dispose(...e) {
2094
+ return this.$refs.popper.dispose(...e);
2095
+ },
2096
+ onResize(...e) {
2097
+ return this.$refs.popper.onResize(...e);
2098
+ }
2099
+ }
2100
+ };
2101
+ let lt = function() {
2102
+ };
2103
+ typeof window < "u" && (lt = window.Element);
2104
+ const Mo = S({
2105
+ name: "VPopperWrapper",
2106
+ components: {
2107
+ Popper: Co,
2108
+ PopperContent: cn
2109
+ },
2110
+ mixins: [
2111
+ un,
2112
+ dn("finalTheme")
2113
+ ],
2114
+ props: {
2115
+ theme: {
2116
+ type: String,
2117
+ default: null
2118
+ },
2119
+ referenceNode: {
2120
+ type: Function,
2121
+ default: null
2122
+ },
2123
+ shown: {
2124
+ type: Boolean,
2125
+ default: !1
2126
+ },
2127
+ showGroup: {
2128
+ type: String,
2129
+ default: null
2130
+ },
2131
+ // eslint-disable-next-line vue/require-prop-types
2132
+ ariaId: {
2133
+ default: null
2134
+ },
2135
+ disabled: {
2136
+ type: Boolean,
2137
+ default: void 0
2138
+ },
2139
+ positioningDisabled: {
2140
+ type: Boolean,
2141
+ default: void 0
2142
+ },
2143
+ placement: {
2144
+ type: String,
2145
+ default: void 0
2146
+ },
2147
+ delay: {
2148
+ type: [String, Number, Object],
2149
+ default: void 0
2150
+ },
2151
+ distance: {
2152
+ type: [Number, String],
2153
+ default: void 0
2154
+ },
2155
+ skidding: {
2156
+ type: [Number, String],
2157
+ default: void 0
2158
+ },
2159
+ triggers: {
2160
+ type: Array,
2161
+ default: void 0
2162
+ },
2163
+ showTriggers: {
2164
+ type: [Array, Function],
2165
+ default: void 0
2166
+ },
2167
+ hideTriggers: {
2168
+ type: [Array, Function],
2169
+ default: void 0
2170
+ },
2171
+ popperTriggers: {
2172
+ type: Array,
2173
+ default: void 0
2174
+ },
2175
+ popperShowTriggers: {
2176
+ type: [Array, Function],
2177
+ default: void 0
2178
+ },
2179
+ popperHideTriggers: {
2180
+ type: [Array, Function],
2181
+ default: void 0
2182
+ },
2183
+ container: {
2184
+ type: [String, Object, lt, Boolean],
2185
+ default: void 0
2186
+ },
2187
+ boundary: {
2188
+ type: [String, lt],
2189
+ default: void 0
2190
+ },
2191
+ strategy: {
2192
+ type: String,
2193
+ default: void 0
2194
+ },
2195
+ autoHide: {
2196
+ type: [Boolean, Function],
2197
+ default: void 0
2198
+ },
2199
+ handleResize: {
2200
+ type: Boolean,
2201
+ default: void 0
2202
+ },
2203
+ instantMove: {
2204
+ type: Boolean,
2205
+ default: void 0
2206
+ },
2207
+ eagerMount: {
2208
+ type: Boolean,
2209
+ default: void 0
2210
+ },
2211
+ popperClass: {
2212
+ type: [String, Array, Object],
2213
+ default: void 0
2214
+ },
2215
+ computeTransformOrigin: {
2216
+ type: Boolean,
2217
+ default: void 0
2218
+ },
2219
+ /**
2220
+ * @deprecated
2221
+ */
2222
+ autoMinSize: {
2223
+ type: Boolean,
2224
+ default: void 0
2225
+ },
2226
+ autoSize: {
2227
+ type: [Boolean, String],
2228
+ default: void 0
2229
+ },
2230
+ /**
2231
+ * @deprecated
2232
+ */
2233
+ autoMaxSize: {
2234
+ type: Boolean,
2235
+ default: void 0
2236
+ },
2237
+ autoBoundaryMaxSize: {
2238
+ type: Boolean,
2239
+ default: void 0
2240
+ },
2241
+ preventOverflow: {
2242
+ type: Boolean,
2243
+ default: void 0
2244
+ },
2245
+ overflowPadding: {
2246
+ type: [Number, String],
2247
+ default: void 0
2248
+ },
2249
+ arrowPadding: {
2250
+ type: [Number, String],
2251
+ default: void 0
2252
+ },
2253
+ arrowOverflow: {
2254
+ type: Boolean,
2255
+ default: void 0
2256
+ },
2257
+ flip: {
2258
+ type: Boolean,
2259
+ default: void 0
2260
+ },
2261
+ shift: {
2262
+ type: Boolean,
2263
+ default: void 0
2264
+ },
2265
+ shiftCrossAxis: {
2266
+ type: Boolean,
2267
+ default: void 0
2268
+ },
2269
+ noAutoFocus: {
2270
+ type: Boolean,
2271
+ default: void 0
2272
+ },
2273
+ disposeTimeout: {
2274
+ type: Number,
2275
+ default: void 0
2276
+ }
2277
+ },
2278
+ emits: {
2279
+ show: () => !0,
2280
+ hide: () => !0,
2281
+ "update:shown": (e) => !0,
2282
+ "apply-show": () => !0,
2283
+ "apply-hide": () => !0,
2284
+ "close-group": () => !0,
2285
+ "close-directive": () => !0,
2286
+ "auto-hide": () => !0,
2287
+ resize: () => !0
2288
+ },
2289
+ computed: {
2290
+ finalTheme() {
2291
+ return this.theme ?? this.$options.vPopperTheme;
2292
+ }
2293
+ },
2294
+ methods: {
2295
+ getTargetNodes() {
2296
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
2297
+ }
2298
+ }
2299
+ });
2300
+ function Do(e, t, n, o, i, r) {
2301
+ const s = nt("PopperContent"), a = nt("Popper");
2302
+ return h(), F(a, Wt({ ref: "popper" }, e.$props, {
2303
+ theme: e.finalTheme,
2304
+ "target-nodes": e.getTargetNodes,
2305
+ "popper-node": () => e.$refs.popperContent.$el,
2306
+ class: [
2307
+ e.themeClass
2308
+ ],
2309
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
2310
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
2311
+ "onUpdate:shown": t[2] || (t[2] = (l) => e.$emit("update:shown", l)),
2312
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2313
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2314
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2315
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2316
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2317
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
2318
+ }), {
2319
+ default: A(({
2320
+ popperId: l,
2321
+ isShown: d,
2322
+ shouldMountContent: c,
2323
+ skipTransition: u,
2324
+ autoHide: f,
2325
+ show: p,
2326
+ hide: m,
2327
+ handleResize: g,
2328
+ onResize: b,
2329
+ classes: y,
2330
+ result: w
2331
+ }) => [
2332
+ x(e.$slots, "default", {
2333
+ shown: d,
2334
+ show: p,
2335
+ hide: m
2336
+ }),
2337
+ de(s, {
2338
+ ref: "popperContent",
2339
+ "popper-id": l,
2340
+ theme: e.finalTheme,
2341
+ shown: d,
2342
+ mounted: c,
2343
+ "skip-transition": u,
2344
+ "auto-hide": f,
2345
+ "handle-resize": g,
2346
+ classes: y,
2347
+ result: w,
2348
+ onHide: m,
2349
+ onResize: b
2350
+ }, {
2351
+ default: A(() => [
2352
+ x(e.$slots, "popper", {
2353
+ shown: d,
2354
+ hide: m
2355
+ })
2356
+ ]),
2357
+ _: 2
2358
+ }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2359
+ ]),
2360
+ _: 3
2361
+ }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2362
+ }
2363
+ const _t = /* @__PURE__ */ gt(Mo, [["render", Do]]), Io = {
2364
+ ..._t,
2365
+ name: "VDropdown",
2366
+ vPopperTheme: "dropdown"
2367
+ };
2368
+ ({
2369
+ ..._t
2370
+ });
2371
+ const Fo = {
2372
+ ..._t,
2373
+ name: "VTooltip",
2374
+ vPopperTheme: "tooltip"
2375
+ };
2376
+ S({
2377
+ name: "VTooltipDirective",
2378
+ components: {
2379
+ Popper: ln(),
2380
+ PopperContent: cn
2381
+ },
2382
+ mixins: [
2383
+ un
2384
+ ],
2385
+ inheritAttrs: !1,
2386
+ props: {
2387
+ theme: {
2388
+ type: String,
2389
+ default: "tooltip"
2390
+ },
2391
+ html: {
2392
+ type: Boolean,
2393
+ default: (e) => st(e.theme, "html")
2394
+ },
2395
+ content: {
2396
+ type: [String, Number, Function],
2397
+ default: null
2398
+ },
2399
+ loadingContent: {
2400
+ type: String,
2401
+ default: (e) => st(e.theme, "loadingContent")
2402
+ },
2403
+ targetNodes: {
2404
+ type: Function,
2405
+ required: !0
2406
+ }
2407
+ },
2408
+ data() {
2409
+ return {
2410
+ asyncContent: null
2411
+ };
2412
+ },
2413
+ computed: {
2414
+ isContentAsync() {
2415
+ return typeof this.content == "function";
2416
+ },
2417
+ loading() {
2418
+ return this.isContentAsync && this.asyncContent == null;
2419
+ },
2420
+ finalContent() {
2421
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2422
+ }
2423
+ },
2424
+ watch: {
2425
+ content: {
2426
+ handler() {
2427
+ this.fetchContent(!0);
2428
+ },
2429
+ immediate: !0
2430
+ },
2431
+ async finalContent() {
2432
+ await this.$nextTick(), this.$refs.popper.onResize();
2433
+ }
2434
+ },
2435
+ created() {
2436
+ this.$_fetchId = 0;
2437
+ },
2438
+ methods: {
2439
+ fetchContent(e) {
2440
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2441
+ this.asyncContent = null, this.$_loading = !0;
2442
+ const t = ++this.$_fetchId, n = this.content(this);
2443
+ n.then ? n.then((o) => this.onResult(t, o)) : this.onResult(t, n);
2444
+ }
2445
+ },
2446
+ onResult(e, t) {
2447
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2448
+ },
2449
+ onShow() {
2450
+ this.$_isShown = !0, this.fetchContent();
2451
+ },
2452
+ onHide() {
2453
+ this.$_isShown = !1;
2454
+ }
2455
+ }
2456
+ });
2457
+ const pn = le, Wo = Io, Vo = Fo, jo = /* @__PURE__ */ S({
2458
+ name: "PzDropdown",
2459
+ __name: "PzDropdown",
2460
+ setup(e) {
2461
+ return (t, n) => (h(), F(B(Wo), {
2462
+ class: "pz-dropdown",
2463
+ theme: "dropdown"
2464
+ }, {
2465
+ popper: A(() => [
2466
+ x(t.$slots, "content", {}, void 0, !0)
2467
+ ]),
2468
+ default: A(() => [
2469
+ x(t.$slots, "default", {}, void 0, !0)
2470
+ ]),
2471
+ _: 3
2472
+ }));
2473
+ }
2474
+ }), ls = /* @__PURE__ */ D(jo, [["__scopeId", "data-v-a2315284"]]), dt = pn.themes ?? {};
2475
+ dt["dark-tooltip"] || (dt["dark-tooltip"] = {
2476
+ $extend: "tooltip"
2477
+ });
2478
+ pn.themes = dt;
2479
+ const qo = /* @__PURE__ */ S({
2480
+ name: "PzHint",
2481
+ __name: "PzHint",
2482
+ props: {
2483
+ wrapperClass: { default: "" },
2484
+ containerWrapperClass: { default: "" },
2485
+ placement: { default: "top" },
2486
+ theme: { default: "tooltip" }
2487
+ },
2488
+ setup(e) {
2489
+ return (t, n) => (h(), v("span", {
2490
+ class: k(["pz-hint-container", e.containerWrapperClass])
2491
+ }, [
2492
+ de(B(Vo), {
2493
+ class: k(["pz-hint", e.wrapperClass]),
2494
+ theme: e.theme,
2495
+ placement: e.placement
2496
+ }, {
2497
+ popper: A(() => [
2498
+ x(t.$slots, "content", {}, void 0, !0)
2499
+ ]),
2500
+ default: A(() => [
2501
+ x(t.$slots, "default", {}, void 0, !0)
2502
+ ]),
2503
+ _: 3
2504
+ }, 8, ["class", "theme", "placement"])
2505
+ ], 2));
2506
+ }
2507
+ }), Go = /* @__PURE__ */ D(qo, [["__scopeId", "data-v-19cc0b71"]]), Uo = {
2508
+ type: "button",
2509
+ "aria-label": "Information",
2510
+ class: "pz-info-hint-trigger"
2511
+ }, Xo = /* @__PURE__ */ S({
2512
+ name: "PzInfoHint",
2513
+ __name: "PzInfoHint",
2514
+ props: {
2515
+ infoContent: {},
2516
+ wrapperClass: { default: "" },
2517
+ containerWrapperClass: { default: "" },
2518
+ placement: { default: "top" }
2519
+ },
2520
+ setup(e) {
2521
+ return (t, n) => (h(), F(Go, {
2522
+ "wrapper-class": e.wrapperClass,
2523
+ "container-wrapper-class": e.containerWrapperClass,
2524
+ placement: e.placement,
2525
+ theme: "dark-tooltip"
2526
+ }, {
2527
+ content: A(() => [
2528
+ (h(!0), v(ge, null, we(e.infoContent, (o) => (h(), v("p", {
2529
+ key: o.id
2530
+ }, [
2531
+ P("b", null, V(o.title ?? ""), 1),
2532
+ se(" " + V(o.text ?? ""), 1)
2533
+ ]))), 128))
2534
+ ]),
2535
+ default: A(() => [
2536
+ P("button", Uo, [
2537
+ de(He, {
2538
+ name: "help",
2539
+ size: "16",
2540
+ class: "pz-info-hint-icon"
2541
+ })
2542
+ ])
2543
+ ]),
2544
+ _: 1
2545
+ }, 8, ["wrapper-class", "container-wrapper-class", "placement"]));
2546
+ }
2547
+ }), ds = /* @__PURE__ */ D(Xo, [["__scopeId", "data-v-540d7970"]]), Yo = "noopener noreferrer", Zo = ["href", "target", "rel", "aria-disabled", "tabindex"], Ko = {
2548
+ key: 0,
2549
+ class: "pz-link-prefix"
2550
+ }, Qo = {
2551
+ key: 1,
2552
+ class: "pz-link-content"
2553
+ }, Jo = {
2554
+ key: 2,
2555
+ class: "pz-link-suffix"
2556
+ }, ei = /* @__PURE__ */ S({
2557
+ name: "PzLink",
2558
+ __name: "PzLink",
2559
+ props: {
2560
+ href: {},
2561
+ variant: { default: "primary" },
2562
+ target: { default: "_self" },
2563
+ rel: { default: void 0 },
2564
+ disabled: { type: Boolean, default: !1 },
2565
+ inline: { type: Boolean, default: !0 },
2566
+ bold: { type: Boolean, default: !1 },
2567
+ italic: { type: Boolean, default: !1 },
2568
+ lineThrough: { type: Boolean, default: !1 }
2569
+ },
2570
+ setup(e) {
2571
+ const t = Vt(), n = e, o = T(() => !!t.default), i = T(
2572
+ () => n.rel ? n.rel : n.target === "_blank" ? Yo : void 0
2573
+ ), r = T(() => [
2574
+ `pz-link--${n.variant}`,
2575
+ {
2576
+ "pz-link--inline": n.inline,
2577
+ "pz-link--block": !n.inline,
2578
+ "pz-link--disabled": n.disabled,
2579
+ "pz-link--bold": n.bold,
2580
+ "pz-link--italic": n.italic,
2581
+ "pz-link--line-through": n.lineThrough,
2582
+ "pz-link--icon-only": n.variant === "icon" && !o.value
2583
+ }
2584
+ ]), s = (a) => {
2585
+ n.disabled && (a.preventDefault(), a.stopPropagation());
2586
+ };
2587
+ return (a, l) => (h(), v("a", {
2588
+ href: n.href,
2589
+ target: n.target,
2590
+ rel: i.value,
2591
+ "aria-disabled": n.disabled || void 0,
2592
+ tabindex: n.disabled ? -1 : void 0,
2593
+ class: k(["pz-link", r.value]),
2594
+ onClick: s
2595
+ }, [
2596
+ a.$slots.prefix ? (h(), v("span", Ko, [
2597
+ x(a.$slots, "prefix", {}, void 0, !0)
2598
+ ])) : R("", !0),
2599
+ a.$slots.default ? (h(), v("span", Qo, [
2600
+ x(a.$slots, "default", {}, void 0, !0)
2601
+ ])) : R("", !0),
2602
+ a.$slots.suffix ? (h(), v("span", Jo, [
2603
+ x(a.$slots, "suffix", {}, void 0, !0)
2604
+ ])) : R("", !0)
2605
+ ], 10, Zo));
2606
+ }
2607
+ }), ti = /* @__PURE__ */ D(ei, [["__scopeId", "data-v-568cb8cc"]]), ni = /* @__PURE__ */ S({
129
2608
  name: "PzText",
130
2609
  __name: "PzText",
131
2610
  props: {
132
2611
  variant: {},
133
2612
  as: { default: void 0 }
134
2613
  },
135
- setup(l) {
136
- const a = {
2614
+ setup(e) {
2615
+ const t = {
137
2616
  "h1-bold": "h1",
138
2617
  "h1-regular": "h1",
139
2618
  "h2-bold": "h2",
@@ -154,21 +2633,846 @@ const $ = /* @__PURE__ */ i({
154
2633
  "small-bold": "span",
155
2634
  link: "a",
156
2635
  document: "p"
157
- }, t = l, e = d(() => t.as ?? a[t.variant] ?? "span");
158
- return (s, n) => (r(), u(p(e.value), {
159
- class: c(["pz-text", `pz-text--${l.variant}`])
2636
+ }, n = e, o = T(() => n.as ?? t[n.variant] ?? "span");
2637
+ return (i, r) => (h(), F(ke(o.value), {
2638
+ class: k(["pz-text", `pz-text--${e.variant}`])
160
2639
  }, {
161
- default: f(() => [
162
- m(s.$slots, "default", {}, void 0, !0)
2640
+ default: A(() => [
2641
+ x(i.$slots, "default", {}, void 0, !0)
163
2642
  ]),
164
2643
  _: 3
165
2644
  }, 8, ["class"]));
166
2645
  }
167
- }), S = /* @__PURE__ */ z(y, [["__scopeId", "data-v-bd3b2150"]]);
2646
+ }), oi = /* @__PURE__ */ D(ni, [["__scopeId", "data-v-bd3b2150"]]), ii = "close", si = {
2647
+ id: "default",
2648
+ title: "",
2649
+ size: "regular",
2650
+ closeOnOverlay: !0,
2651
+ closeOnEscape: !0,
2652
+ showCloseButton: !0,
2653
+ closeLabel: "Close modal"
2654
+ }, ri = ["aria-labelledby", "aria-describedby"], ai = ["id"], li = ["aria-label"], di = ["id"], ci = {
2655
+ key: 1,
2656
+ class: "pz-modal-footer"
2657
+ }, ui = /* @__PURE__ */ S({
2658
+ name: "PzModal",
2659
+ __name: "PzModal",
2660
+ props: /* @__PURE__ */ $n({
2661
+ id: {},
2662
+ isOpen: { type: Boolean },
2663
+ title: {},
2664
+ size: {},
2665
+ closeOnOverlay: { type: Boolean },
2666
+ closeOnEscape: { type: Boolean },
2667
+ showCloseButton: { type: Boolean },
2668
+ closeLabel: {}
2669
+ }, si),
2670
+ setup(e, { emit: t }) {
2671
+ const n = Vt(), o = e, i = t, r = T(() => `pz-modal-title-${o.id}`), s = T(() => `pz-modal-description-${o.id}`), a = T(() => !!(o.title || n.header)), l = T(() => a.value || o.showCloseButton), d = T(() => [`pz-modal-dialog--${o.size}`]);
2672
+ let c = "";
2673
+ const u = (g) => {
2674
+ if (!(typeof document > "u")) {
2675
+ if (g) {
2676
+ c = document.body.style.overflow, document.body.style.overflow = "hidden";
2677
+ return;
2678
+ }
2679
+ document.body.style.overflow = c;
2680
+ }
2681
+ }, f = () => {
2682
+ i(ii);
2683
+ }, p = () => {
2684
+ o.closeOnOverlay && f();
2685
+ }, m = () => {
2686
+ o.closeOnEscape && f();
2687
+ };
2688
+ return ie(
2689
+ () => o.isOpen,
2690
+ (g) => {
2691
+ u(g);
2692
+ },
2693
+ { immediate: !0 }
2694
+ ), jt(() => {
2695
+ u(!1);
2696
+ }), (g, b) => (h(), F(xn, { to: "body" }, [
2697
+ o.isOpen ? (h(), v("div", {
2698
+ key: 0,
2699
+ class: "pz-modal",
2700
+ onKeydown: Ft(m, ["esc"])
2701
+ }, [
2702
+ P("div", {
2703
+ class: "pz-modal-overlay",
2704
+ onClick: p
2705
+ }, [
2706
+ P("div", {
2707
+ ref: "dialogRef",
2708
+ class: k(["pz-modal-dialog", d.value]),
2709
+ role: "dialog",
2710
+ "aria-modal": !0,
2711
+ "aria-labelledby": r.value,
2712
+ "aria-describedby": s.value,
2713
+ onClick: b[0] || (b[0] = qt(() => {
2714
+ }, ["stop"]))
2715
+ }, [
2716
+ l.value ? (h(), v("header", {
2717
+ key: 0,
2718
+ class: k(["pz-modal-header", { "pz-modal-header--between": a.value }])
2719
+ }, [
2720
+ a.value ? (h(), v("div", {
2721
+ key: 0,
2722
+ id: r.value,
2723
+ class: "pz-modal-title"
2724
+ }, [
2725
+ x(g.$slots, "header", {}, () => [
2726
+ o.title ? (h(), F(B(oi), {
2727
+ key: 0,
2728
+ variant: "h4-bold",
2729
+ as: "h2"
2730
+ }, {
2731
+ default: A(() => [
2732
+ se(V(o.title), 1)
2733
+ ]),
2734
+ _: 1
2735
+ })) : R("", !0)
2736
+ ], !0)
2737
+ ], 8, ai)) : R("", !0),
2738
+ o.showCloseButton ? (h(), v("button", {
2739
+ key: 1,
2740
+ type: "button",
2741
+ class: "pz-modal-close",
2742
+ "aria-label": o.closeLabel,
2743
+ onClick: f
2744
+ }, [
2745
+ de(B(He), {
2746
+ name: "close",
2747
+ size: "24",
2748
+ label: "Close modal"
2749
+ })
2750
+ ], 8, li)) : R("", !0)
2751
+ ], 2)) : R("", !0),
2752
+ P("div", {
2753
+ id: s.value,
2754
+ class: "pz-modal-body"
2755
+ }, [
2756
+ x(g.$slots, "default", {}, void 0, !0)
2757
+ ], 8, di),
2758
+ g.$slots.footer ? (h(), v("footer", ci, [
2759
+ x(g.$slots, "footer", {}, void 0, !0)
2760
+ ])) : R("", !0)
2761
+ ], 10, ri)
2762
+ ])
2763
+ ], 32)) : R("", !0)
2764
+ ]));
2765
+ }
2766
+ }), cs = /* @__PURE__ */ D(ui, [["__scopeId", "data-v-8dc1c00e"]]), pi = { class: "pz-nav" }, fi = /* @__PURE__ */ S({
2767
+ name: "PzNav",
2768
+ __name: "PzNav",
2769
+ props: {
2770
+ config: {}
2771
+ },
2772
+ setup(e) {
2773
+ const t = Xt(), n = e, o = (a) => {
2774
+ const [l = ""] = a.split("#");
2775
+ return l ? l.startsWith("/") ? l : `/${l}` : "/";
2776
+ }, i = (a) => a.startsWith("#") ? a : o(a), r = T(
2777
+ () => !n.config.some((a) => o(a.path) === t.path)
2778
+ ), s = (a) => o(a.path) === t.path || r.value && !!a.isDefault;
2779
+ return (a, l) => (h(), v("ul", pi, [
2780
+ (h(!0), v(ge, null, we(n.config, (d, c) => (h(), v("li", {
2781
+ key: `${d.path}-${c}`,
2782
+ class: k(["pz-nav__item", [{ disabled: d.disabled }, { active: s(d) }]])
2783
+ }, [
2784
+ d.disabled ? (h(), v("span", {
2785
+ key: 1,
2786
+ class: k(["pz-nav__text", { active: s(d) }])
2787
+ }, [
2788
+ x(a.$slots, "view", { data: d }, () => [
2789
+ se(V(d.text), 1)
2790
+ ], !0)
2791
+ ], 2)) : (h(), F(B(Re), {
2792
+ key: 0,
2793
+ to: i(d.path),
2794
+ class: k(["pz-nav__text", { active: s(d) }])
2795
+ }, {
2796
+ default: A(() => [
2797
+ x(a.$slots, "view", { data: d }, () => [
2798
+ se(V(d.text), 1)
2799
+ ], !0)
2800
+ ]),
2801
+ _: 2
2802
+ }, 1032, ["to", "class"]))
2803
+ ], 2))), 128))
2804
+ ]));
2805
+ }
2806
+ }), us = /* @__PURE__ */ D(fi, [["__scopeId", "data-v-23082985"]]), hi = {
2807
+ class: "pz-pagination",
2808
+ "aria-label": "Pagination"
2809
+ }, mi = { class: "pz-pagination__list" }, gi = ["disabled"], _i = {
2810
+ key: 0,
2811
+ class: "pz-pagination__dots",
2812
+ "aria-hidden": "true"
2813
+ }, vi = ["aria-current", "onClick"], yi = ["disabled"], Ke = 1, wi = /* @__PURE__ */ S({
2814
+ name: "PzPagination",
2815
+ __name: "PzPagination",
2816
+ props: {
2817
+ modelValue: {},
2818
+ total: {},
2819
+ perPage: {},
2820
+ radius: { default: 2 }
2821
+ },
2822
+ emits: ["update:modelValue"],
2823
+ setup(e, { emit: t }) {
2824
+ const n = e, o = t, i = T(() => Math.ceil(n.total / n.perPage)), r = T(() => n.modelValue <= 1), s = T(() => n.modelValue >= i.value), a = T(() => {
2825
+ const u = i.value;
2826
+ if (u <= 0)
2827
+ return [];
2828
+ if (u === 1)
2829
+ return [{ type: "page", page: Ke }];
2830
+ const f = n.modelValue, p = n.radius, m = Ke + 1, g = u - 1, b = Math.max(m, f - p), y = Math.min(g, f + p), w = [{ type: "page", page: Ke }];
2831
+ b > m && w.push({ type: "dots", side: "left" });
2832
+ for (let $ = b; $ <= y; $++)
2833
+ w.push({ type: "page", page: $ });
2834
+ return y < g && w.push({ type: "dots", side: "right" }), w.push({ type: "page", page: u }), w;
2835
+ }), l = (u) => {
2836
+ u !== n.modelValue && o("update:modelValue", u);
2837
+ }, d = () => {
2838
+ r.value || o("update:modelValue", n.modelValue - 1);
2839
+ }, c = () => {
2840
+ s.value || o("update:modelValue", n.modelValue + 1);
2841
+ };
2842
+ return (u, f) => (h(), v("nav", hi, [
2843
+ P("ul", mi, [
2844
+ P("li", null, [
2845
+ P("button", {
2846
+ type: "button",
2847
+ class: "pz-pagination__btn pz-pagination__btn--nav",
2848
+ disabled: r.value,
2849
+ "aria-label": "Попередня сторінка",
2850
+ onClick: d
2851
+ }, [
2852
+ de(B(He), {
2853
+ name: "chevron_left",
2854
+ size: "24"
2855
+ })
2856
+ ], 8, gi)
2857
+ ]),
2858
+ (h(!0), v(ge, null, we(a.value, (p) => (h(), v("li", {
2859
+ key: p.type === "page" ? `p-${p.page}` : `d-${p.side}`,
2860
+ class: "pz-pagination__item"
2861
+ }, [
2862
+ p.type === "dots" ? (h(), v("span", _i, " … ")) : (h(), v("button", {
2863
+ key: 1,
2864
+ type: "button",
2865
+ class: k(["pz-pagination__btn", { "pz-pagination__btn--active": p.page === e.modelValue }]),
2866
+ "aria-current": p.page === e.modelValue ? "page" : void 0,
2867
+ onClick: (m) => l(p.page)
2868
+ }, V(p.page), 11, vi))
2869
+ ]))), 128)),
2870
+ P("li", null, [
2871
+ P("button", {
2872
+ type: "button",
2873
+ class: "pz-pagination__btn pz-pagination__btn--nav",
2874
+ disabled: s.value,
2875
+ "aria-label": "Наступна сторінка",
2876
+ onClick: c
2877
+ }, [
2878
+ de(B(He), {
2879
+ name: "chevron_right",
2880
+ size: "24"
2881
+ })
2882
+ ], 8, yi)
2883
+ ])
2884
+ ])
2885
+ ]));
2886
+ }
2887
+ }), ps = /* @__PURE__ */ D(wi, [["__scopeId", "data-v-6295b1b5"]]), fs = /* @__PURE__ */ S({
2888
+ name: "PzRouterLink",
2889
+ inheritAttrs: !1,
2890
+ __name: "PzRouterLink",
2891
+ props: {
2892
+ to: {},
2893
+ replace: { type: Boolean, default: !1 },
2894
+ variant: { default: "primary" },
2895
+ target: { default: "_self" },
2896
+ rel: { default: void 0 },
2897
+ disabled: { type: Boolean, default: !1 },
2898
+ inline: { type: Boolean, default: !0 },
2899
+ bold: { type: Boolean, default: !1 },
2900
+ italic: { type: Boolean, default: !1 },
2901
+ lineThrough: { type: Boolean, default: !1 }
2902
+ },
2903
+ setup(e) {
2904
+ const t = e, n = zn(), o = (i, r) => {
2905
+ t.disabled || t.target !== "_self" || r(i);
2906
+ };
2907
+ return (i, r) => (h(), F(B(Re), {
2908
+ custom: "",
2909
+ to: t.to,
2910
+ replace: t.replace
2911
+ }, {
2912
+ default: A(({ href: s, navigate: a }) => [
2913
+ de(B(ti), Wt(B(n), {
2914
+ href: s,
2915
+ variant: t.variant,
2916
+ target: t.target,
2917
+ rel: t.rel,
2918
+ disabled: t.disabled,
2919
+ inline: t.inline,
2920
+ bold: t.bold,
2921
+ italic: t.italic,
2922
+ "line-through": t.lineThrough,
2923
+ onClick: (l) => o(l, a)
2924
+ }), Tn({
2925
+ default: A(() => [
2926
+ x(i.$slots, "default")
2927
+ ]),
2928
+ _: 2
2929
+ }, [
2930
+ i.$slots.prefix ? {
2931
+ name: "prefix",
2932
+ fn: A(() => [
2933
+ x(i.$slots, "prefix")
2934
+ ]),
2935
+ key: "0"
2936
+ } : void 0,
2937
+ i.$slots.suffix ? {
2938
+ name: "suffix",
2939
+ fn: A(() => [
2940
+ x(i.$slots, "suffix")
2941
+ ]),
2942
+ key: "1"
2943
+ } : void 0
2944
+ ]), 1040, ["href", "variant", "target", "rel", "disabled", "inline", "bold", "italic", "line-through", "onClick"])
2945
+ ]),
2946
+ _: 3
2947
+ }, 8, ["to", "replace"]));
2948
+ }
2949
+ }), bi = [
2950
+ "auction-progress",
2951
+ "auction-waiting",
2952
+ "auction-success"
2953
+ ], xi = { class: "pz-status__label" }, $i = /* @__PURE__ */ S({
2954
+ name: "PzStatus",
2955
+ __name: "PzStatus",
2956
+ props: {
2957
+ variant: { default: "progress" },
2958
+ as: { default: "span" }
2959
+ },
2960
+ setup(e) {
2961
+ const t = e, n = T(() => [
2962
+ `pz-status--${t.variant}`,
2963
+ {
2964
+ "pz-status--gradient": bi.includes(t.variant)
2965
+ }
2966
+ ]);
2967
+ return (o, i) => (h(), F(ke(t.as), {
2968
+ class: k(["pz-status", n.value])
2969
+ }, {
2970
+ default: A(() => [
2971
+ P("span", xi, [
2972
+ x(o.$slots, "default", {}, void 0, !0)
2973
+ ])
2974
+ ]),
2975
+ _: 3
2976
+ }, 8, ["class"]));
2977
+ }
2978
+ }), hs = /* @__PURE__ */ D($i, [["__scopeId", "data-v-c3b8f015"]]), zi = {
2979
+ key: 0,
2980
+ class: "pz-tag-prefix"
2981
+ }, Ti = { class: "pz-tag-label" }, Ci = {
2982
+ key: 1,
2983
+ class: "pz-tag-suffix"
2984
+ }, Pi = /* @__PURE__ */ S({
2985
+ name: "PzTag",
2986
+ __name: "PzTag",
2987
+ props: {
2988
+ variant: { default: "grey" },
2989
+ as: { default: "span" }
2990
+ },
2991
+ setup(e) {
2992
+ const t = e;
2993
+ return (n, o) => (h(), F(ke(t.as), {
2994
+ class: k(["pz-tag", `pz-tag--${t.variant}`])
2995
+ }, {
2996
+ default: A(() => [
2997
+ n.$slots.prefix ? (h(), v("span", zi, [
2998
+ x(n.$slots, "prefix", {}, void 0, !0)
2999
+ ])) : R("", !0),
3000
+ P("span", Ti, [
3001
+ x(n.$slots, "default", {}, void 0, !0)
3002
+ ]),
3003
+ n.$slots.suffix ? (h(), v("span", Ci, [
3004
+ x(n.$slots, "suffix", {}, void 0, !0)
3005
+ ])) : R("", !0)
3006
+ ]),
3007
+ _: 3
3008
+ }, 8, ["class"]));
3009
+ }
3010
+ }), ms = /* @__PURE__ */ D(Pi, [["__scopeId", "data-v-7a827d32"]]);
3011
+ var me = /* @__PURE__ */ ((e) => (e.INIT_TAB = "init-tab", e.TABS_STATE = "tabs-state", e.REMOVE_TAB = "remove-tab", e))(me || {});
3012
+ const Si = { class: "pz-tabs__nav" }, Ai = ["onClick"], ki = { class: "pz-tabs__content" }, Ei = /* @__PURE__ */ S({
3013
+ name: "PzTabs",
3014
+ __name: "PzTabs",
3015
+ props: {
3016
+ skin: { default: "" },
3017
+ maxWidth: { default: "" }
3018
+ },
3019
+ setup(e) {
3020
+ const t = Gt({
3021
+ tabs: [],
3022
+ activeTab: ""
3023
+ }), n = e, o = T(() => n.skin ? `pz-tabs--${n.skin}` : "");
3024
+ Ge(me.TABS_STATE, t), Ge(me.INIT_TAB, (r) => t.tabs.push(r)), Ge(me.REMOVE_TAB, (r) => {
3025
+ t.tabs = t.tabs.filter((s) => s.id !== r.id), i();
3026
+ }), Ut(() => i());
3027
+ const i = () => {
3028
+ var s;
3029
+ const [{ name: r } = { name: "" }] = t.tabs.filter(({ selected: a }) => a);
3030
+ t.activeTab = r || ((s = t.tabs[0]) == null ? void 0 : s.name) || "";
3031
+ };
3032
+ return (r, s) => (h(), v("div", {
3033
+ class: k(["pz-tabs", o.value]),
3034
+ style: he({ maxWidth: e.maxWidth })
3035
+ }, [
3036
+ P("ul", Si, [
3037
+ (h(!0), v(ge, null, we(t.tabs, (a) => (h(), v("li", {
3038
+ key: a.id,
3039
+ class: k(["pz-tabs__item", { active: t.activeTab === a.name }]),
3040
+ onClick: (l) => t.activeTab = a.name || ""
3041
+ }, V(a.name), 11, Ai))), 128))
3042
+ ]),
3043
+ P("div", ki, [
3044
+ x(r.$slots, "default", {}, void 0, !0)
3045
+ ])
3046
+ ], 6));
3047
+ }
3048
+ }), gs = /* @__PURE__ */ D(Ei, [["__scopeId", "data-v-f64a88aa"]]), Oi = { class: "pz-tab" }, Li = /* @__PURE__ */ S({
3049
+ name: "PzTab",
3050
+ __name: "PzTab",
3051
+ props: {
3052
+ name: { default: "Tab" },
3053
+ selected: { type: Boolean, default: !1 },
3054
+ id: { default: void 0 }
3055
+ },
3056
+ setup(e) {
3057
+ const t = e, n = Cn(), o = be(!1), i = Ue(me.REMOVE_TAB, void 0), r = Ue(me.TABS_STATE, void 0), s = Ue(me.INIT_TAB, void 0), a = {
3058
+ get id() {
3059
+ return t.id ?? `pz-tab-${(n == null ? void 0 : n.uid) ?? t.name}`;
3060
+ },
3061
+ get name() {
3062
+ return t.name;
3063
+ }
3064
+ };
3065
+ return ie(
3066
+ () => r == null ? void 0 : r.activeTab,
3067
+ (l) => {
3068
+ o.value = t.name === l;
3069
+ }
3070
+ ), Pn(() => {
3071
+ s == null || s(a), o.value = t.selected;
3072
+ }), jt(() => i == null ? void 0 : i(a)), (l, d) => Sn((h(), v("div", Oi, [
3073
+ x(l.$slots, "default", {}, void 0, !0)
3074
+ ], 512)), [
3075
+ [An, o.value]
3076
+ ]);
3077
+ }
3078
+ }), _s = /* @__PURE__ */ D(Li, [["__scopeId", "data-v-2cffa4a1"]]);
3079
+ var Qe = null;
3080
+ function Bi(e) {
3081
+ return Qe || (Qe = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(t) {
3082
+ return setTimeout(t, 16);
3083
+ }).bind(window)), Qe(e);
3084
+ }
3085
+ var Je = null;
3086
+ function Ni(e) {
3087
+ Je || (Je = (window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(t) {
3088
+ clearTimeout(t);
3089
+ }).bind(window)), Je(e);
3090
+ }
3091
+ function Ri(e) {
3092
+ var t = document.createElement("style");
3093
+ return t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)), (document.querySelector("head") || document.body).appendChild(t), t;
3094
+ }
3095
+ function Le(e, t) {
3096
+ t === void 0 && (t = {});
3097
+ var n = document.createElement(e);
3098
+ return Object.keys(t).forEach(function(o) {
3099
+ n[o] = t[o];
3100
+ }), n;
3101
+ }
3102
+ function fn(e, t, n) {
3103
+ var o = window.getComputedStyle(e, null) || {
3104
+ display: "none"
3105
+ };
3106
+ return o[t];
3107
+ }
3108
+ function ct(e) {
3109
+ if (!document.documentElement.contains(e))
3110
+ return {
3111
+ detached: !0,
3112
+ rendered: !1
3113
+ };
3114
+ for (var t = e; t !== document; ) {
3115
+ if (fn(t, "display") === "none")
3116
+ return {
3117
+ detached: !1,
3118
+ rendered: !1
3119
+ };
3120
+ t = t.parentNode;
3121
+ }
3122
+ return {
3123
+ detached: !1,
3124
+ rendered: !0
3125
+ };
3126
+ }
3127
+ var Hi = '.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}', ut = 0, Ne = null;
3128
+ function Mi(e, t) {
3129
+ e.__resize_mutation_handler__ || (e.__resize_mutation_handler__ = Fi.bind(e));
3130
+ var n = e.__resize_listeners__;
3131
+ if (!n) {
3132
+ if (e.__resize_listeners__ = [], window.ResizeObserver) {
3133
+ var o = e.offsetWidth, i = e.offsetHeight, r = new ResizeObserver(function() {
3134
+ !e.__resize_observer_triggered__ && (e.__resize_observer_triggered__ = !0, e.offsetWidth === o && e.offsetHeight === i) || We(e);
3135
+ }), s = ct(e), a = s.detached, l = s.rendered;
3136
+ e.__resize_observer_triggered__ = a === !1 && l === !1, e.__resize_observer__ = r, r.observe(e);
3137
+ } else if (e.attachEvent && e.addEventListener)
3138
+ e.__resize_legacy_resize_handler__ = function() {
3139
+ We(e);
3140
+ }, e.attachEvent("onresize", e.__resize_legacy_resize_handler__), document.addEventListener("DOMSubtreeModified", e.__resize_mutation_handler__);
3141
+ else if (ut || (Ne = Ri(Hi)), Wi(e), e.__resize_rendered__ = ct(e).rendered, window.MutationObserver) {
3142
+ var d = new MutationObserver(e.__resize_mutation_handler__);
3143
+ d.observe(document, {
3144
+ attributes: !0,
3145
+ childList: !0,
3146
+ characterData: !0,
3147
+ subtree: !0
3148
+ }), e.__resize_mutation_observer__ = d;
3149
+ }
3150
+ }
3151
+ e.__resize_listeners__.push(t), ut++;
3152
+ }
3153
+ function Di(e, t) {
3154
+ var n = e.__resize_listeners__;
3155
+ if (n) {
3156
+ if (t && n.splice(n.indexOf(t), 1), !n.length || !t) {
3157
+ if (e.detachEvent && e.removeEventListener) {
3158
+ e.detachEvent("onresize", e.__resize_legacy_resize_handler__), document.removeEventListener("DOMSubtreeModified", e.__resize_mutation_handler__);
3159
+ return;
3160
+ }
3161
+ e.__resize_observer__ ? (e.__resize_observer__.unobserve(e), e.__resize_observer__.disconnect(), e.__resize_observer__ = null) : (e.__resize_mutation_observer__ && (e.__resize_mutation_observer__.disconnect(), e.__resize_mutation_observer__ = null), e.removeEventListener("scroll", vt), e.removeChild(e.__resize_triggers__.triggers), e.__resize_triggers__ = null), e.__resize_listeners__ = null;
3162
+ }
3163
+ !--ut && Ne && Ne.parentNode.removeChild(Ne);
3164
+ }
3165
+ }
3166
+ function Ii(e) {
3167
+ var t = e.__resize_last__, n = t.width, o = t.height, i = e.offsetWidth, r = e.offsetHeight;
3168
+ return i !== n || r !== o ? {
3169
+ width: i,
3170
+ height: r
3171
+ } : null;
3172
+ }
3173
+ function Fi() {
3174
+ var e = ct(this), t = e.rendered, n = e.detached;
3175
+ t !== this.__resize_rendered__ && (!n && this.__resize_triggers__ && (yt(this), this.addEventListener("scroll", vt, !0)), this.__resize_rendered__ = t, We(this));
3176
+ }
3177
+ function vt() {
3178
+ var e = this;
3179
+ yt(this), this.__resize_raf__ && Ni(this.__resize_raf__), this.__resize_raf__ = Bi(function() {
3180
+ var t = Ii(e);
3181
+ t && (e.__resize_last__ = t, We(e));
3182
+ });
3183
+ }
3184
+ function We(e) {
3185
+ !e || !e.__resize_listeners__ || e.__resize_listeners__.forEach(function(t) {
3186
+ t.call(e, e);
3187
+ });
3188
+ }
3189
+ function Wi(e) {
3190
+ var t = fn(e, "position");
3191
+ (!t || t === "static") && (e.style.position = "relative"), e.__resize_old_position__ = t, e.__resize_last__ = {};
3192
+ var n = Le("div", {
3193
+ className: "resize-triggers"
3194
+ }), o = Le("div", {
3195
+ className: "resize-expand-trigger"
3196
+ }), i = Le("div"), r = Le("div", {
3197
+ className: "resize-contract-trigger"
3198
+ });
3199
+ o.appendChild(i), n.appendChild(o), n.appendChild(r), e.appendChild(n), e.__resize_triggers__ = {
3200
+ triggers: n,
3201
+ expand: o,
3202
+ expandChild: i,
3203
+ contract: r
3204
+ }, yt(e), e.addEventListener("scroll", vt, !0), e.__resize_last__ = {
3205
+ width: e.offsetWidth,
3206
+ height: e.offsetHeight
3207
+ };
3208
+ }
3209
+ function yt(e) {
3210
+ var t = e.__resize_triggers__, n = t.expand, o = t.expandChild, i = t.contract, r = i.scrollWidth, s = i.scrollHeight, a = n.offsetWidth, l = n.offsetHeight, d = n.scrollWidth, c = n.scrollHeight;
3211
+ i.scrollLeft = r, i.scrollTop = s, o.style.width = a + 1 + "px", o.style.height = l + 1 + "px", n.scrollLeft = d, n.scrollTop = c;
3212
+ }
3213
+ const Vi = ["aria-label"];
3214
+ var hn = S({ __name: "text-clamp", props: { text: { type: String, required: !0 }, maxHeight: { type: [String, Number], required: !1 }, maxLines: { type: Number, required: !1 }, expanded: { type: Boolean, required: !1, default: !1 }, location: { type: String, required: !1, default: "end" }, ellipsis: { type: String, required: !1, default: "…" }, autoResize: { type: Boolean, required: !1, default: !1 } }, emits: ["clamp-change", "update:expanded"], setup(e, { emit: t }) {
3215
+ const n = e, o = be(null), i = be(null), r = be(null), s = Gt({ offset: 0, localExpanded: !!n.expanded, unregisterResizeCallback: null }), a = T(() => {
3216
+ if (!s.localExpanded && n.maxHeight) return typeof (n == null ? void 0 : n.maxHeight) == "number" ? `${n == null ? void 0 : n.maxHeight}px` : n == null ? void 0 : n.maxHeight;
3217
+ }), l = () => {
3218
+ r.value && (r.value.textContent = L.value);
3219
+ }, d = () => {
3220
+ s.localExpanded || (l(), (f() || C.value) && m());
3221
+ }, c = () => {
3222
+ n.text && (s.offset = n.text.length, u(), n.autoResize && o.value && (Mi(o.value, d), s.unregisterResizeCallback = () => {
3223
+ o.value && Di(o.value, d);
3224
+ }), d());
3225
+ }, u = () => {
3226
+ var _;
3227
+ (_ = s.unregisterResizeCallback) == null || _.call(s);
3228
+ }, f = () => !(!n.maxLines && !n.maxHeight) && !!o.value && (!!(n.maxLines && p() > n.maxLines) || !!(n.maxHeight && o.value.scrollHeight > o.value.offsetHeight)), p = () => i.value ? Object.keys(Array.prototype.slice.call(i.value.getClientRects()).reduce((_, { top: O, bottom: N }) => {
3229
+ const M = `${O}/${N}`;
3230
+ return _[M] || (_[M] = !0), _;
3231
+ }, {})).length : 0, m = (..._) => {
3232
+ const [O = 0, N = s.offset] = _;
3233
+ if (N - O <= 3) return void b();
3234
+ const M = Math.floor((N + O) / 2);
3235
+ g(M), f() ? m(O, M) : m(M, N);
3236
+ }, g = (_) => {
3237
+ s.offset = _, l();
3238
+ }, b = () => {
3239
+ y(), w();
3240
+ }, y = () => {
3241
+ for (; (!f() || p() < 2) && s.offset < n.text.length; ) $(1);
3242
+ }, w = () => {
3243
+ for (; f() && p() > 1 && s.offset > 0; ) $(-1);
3244
+ }, $ = (_) => {
3245
+ g(s.offset + _);
3246
+ }, C = T(() => !!n.text && s.offset !== n.text.length);
3247
+ ie(() => C.value, (_) => {
3248
+ setTimeout(() => {
3249
+ t("clamp-change", _);
3250
+ }, 0);
3251
+ }, { immediate: !0 });
3252
+ const L = T(() => C.value ? E.value : n.text), E = T(() => {
3253
+ if (n.location === "start") return n.ellipsis + (n.text.slice(-s.offset) || "").trim();
3254
+ if (n.location === "middle") {
3255
+ const _ = Math.floor(s.offset / 2);
3256
+ return (n.text.slice(0, _) || "").trim() + n.ellipsis + (n.text.slice(-_) || "").trim();
3257
+ }
3258
+ return (n.text.slice(0, s.offset) || "").trim() + n.ellipsis;
3259
+ }), H = () => {
3260
+ s.localExpanded = !0;
3261
+ }, j = () => {
3262
+ s.localExpanded = !1;
3263
+ }, I = () => {
3264
+ s.localExpanded = !s.localExpanded;
3265
+ };
3266
+ return ie(() => n.expanded, (_) => {
3267
+ s.localExpanded = _;
3268
+ }), ie(() => s.localExpanded, (_) => {
3269
+ _ ? g(n.text.length) : d(), n.expanded !== _ && t("update:expanded", _);
3270
+ }), ie(() => [n.maxLines, n.maxHeight, n.ellipsis, n.location, C.value].join(), () => {
3271
+ tt(() => {
3272
+ d();
3273
+ });
3274
+ }), ie(() => [n.text, n.autoResize].join(), () => {
3275
+ tt(() => {
3276
+ c();
3277
+ });
3278
+ }), kn(() => {
3279
+ u();
3280
+ }), Ut(() => {
3281
+ c();
3282
+ }), (_, O) => (h(), v("div", { ref_key: "textClampRef", ref: o, class: "text-clamp", style: he({ overflow: "hidden", maxHeight: B(a) }) }, [P("span", { ref_key: "contentRef", ref: i }, [x(_.$slots, "before", { expand: H, collapse: j, toggle: I, clamped: B(C), expanded: s.localExpanded }), P("span", { ref_key: "textRef", ref: r, "aria-label": e.text }, null, 8, Vi), x(_.$slots, "after", { expand: H, collapse: j, toggle: I, clamped: B(C), expanded: s.localExpanded })], 512)], 4));
3283
+ } });
3284
+ hn.__file = "package/text-clamp.vue";
3285
+ const ji = (e) => (e.install = function(t) {
3286
+ t.component(e.__name, e);
3287
+ }, e), qi = ji(hn), Gi = 3, Ui = "... ", Xi = ["aria-expanded", "onClick"], Yi = /* @__PURE__ */ S({
3288
+ name: "PzTextClamp",
3289
+ __name: "PzTextClamp",
3290
+ props: {
3291
+ text: {},
3292
+ maxContentLines: { default: Gi },
3293
+ clampPostfix: { default: Ui },
3294
+ btnClass: { default: "" },
3295
+ autoResize: { type: Boolean, default: !0 },
3296
+ expanded: { type: Boolean, default: !1 },
3297
+ expandLabel: { default: "Show more" },
3298
+ collapseLabel: { default: "Collapse" }
3299
+ },
3300
+ emits: ["update:expanded", "clamp-change"],
3301
+ setup(e, { emit: t }) {
3302
+ const n = e, o = t, i = (s) => {
3303
+ o("update:expanded", s);
3304
+ }, r = (s) => {
3305
+ o("clamp-change", s);
3306
+ };
3307
+ return (s, a) => (h(), F(B(qi), {
3308
+ text: n.text,
3309
+ "max-lines": n.maxContentLines,
3310
+ ellipsis: n.clampPostfix,
3311
+ expanded: n.expanded,
3312
+ "auto-resize": n.autoResize,
3313
+ class: "pz-text-clamp",
3314
+ "onUpdate:expanded": i,
3315
+ onClampChange: r
3316
+ }, {
3317
+ after: A(({ toggle: l, expanded: d, clamped: c }) => [
3318
+ x(s.$slots, "toggle", {
3319
+ toggle: l,
3320
+ expanded: d,
3321
+ clamped: c
3322
+ }, () => [
3323
+ c || d ? (h(), v("button", {
3324
+ key: 0,
3325
+ type: "button",
3326
+ class: k(["pz-text-clamp__toggle", n.btnClass]),
3327
+ "aria-expanded": d,
3328
+ onClick: qt(l, ["stop"])
3329
+ }, V(d ? n.collapseLabel : n.expandLabel), 11, Xi)) : R("", !0)
3330
+ ], !0)
3331
+ ]),
3332
+ _: 3
3333
+ }, 8, ["text", "max-lines", "ellipsis", "expanded", "auto-resize"]));
3334
+ }
3335
+ }), vs = /* @__PURE__ */ D(Yi, [["__scopeId", "data-v-17225f94"]]), Zi = 2e3, Ki = "pz-scroll-to-highlight", Qi = "smooth", et = (e) => typeof e == "number" ? { offsetTop: e } : e ?? {}, Dt = (e) => {
3336
+ if (typeof window > "u" || typeof document > "u")
3337
+ return null;
3338
+ if (typeof e == "number")
3339
+ return e;
3340
+ const t = typeof e == "string" ? document.querySelector(e) : e instanceof HTMLElement ? e : null;
3341
+ return t ? window.scrollY + t.getBoundingClientRect().top : null;
3342
+ }, It = (e, t) => {
3343
+ if (!e || typeof window > "u")
3344
+ return;
3345
+ const n = t.highlightClassName ?? Ki, o = t.highlightDuration ?? Zi;
3346
+ n && (e.classList.add(n), window.setTimeout(() => {
3347
+ e.classList.remove(n);
3348
+ }, o));
3349
+ };
3350
+ class ve {
3351
+ static moveById(t, n) {
3352
+ if (typeof document > "u")
3353
+ return !1;
3354
+ const o = document.getElementById(t);
3355
+ if (!o)
3356
+ return !1;
3357
+ const i = ve.moveToElement(o, n);
3358
+ return i && It(o, et(n)), i;
3359
+ }
3360
+ static moveToTop(t) {
3361
+ return ve.moveTo(0, t);
3362
+ }
3363
+ static moveTo(t, n) {
3364
+ if (typeof window > "u")
3365
+ return !1;
3366
+ const o = et(n);
3367
+ return window.scrollTo({
3368
+ top: Math.max(t - (o.offsetTop ?? 0), 0),
3369
+ left: 0,
3370
+ behavior: o.behavior ?? Qi
3371
+ }), !0;
3372
+ }
3373
+ static moveByQuerySelector(t, n) {
3374
+ if (typeof document > "u")
3375
+ return !1;
3376
+ const o = document.querySelector(t);
3377
+ if (!o)
3378
+ return !1;
3379
+ const i = ve.moveToElement(o, n);
3380
+ return i && It(o, et(n)), i;
3381
+ }
3382
+ static moveToElement(t, n) {
3383
+ const o = Dt(t);
3384
+ return o === null ? !1 : ve.moveTo(o, n);
3385
+ }
3386
+ static move(t, n) {
3387
+ const o = Dt(t);
3388
+ return o === null ? !1 : ve.moveTo(o, n);
3389
+ }
3390
+ }
3391
+ class pt {
3392
+ /**
3393
+ * Sanitizes a query object, removing HTML tags from all string values.
3394
+ *
3395
+ * @param query - The query object to sanitize.
3396
+ * @returns A new object with sanitized values.
3397
+ */
3398
+ static validQuery(t) {
3399
+ const n = {};
3400
+ return Object.keys(t).forEach((o) => {
3401
+ const i = t[o];
3402
+ Array.isArray(i) ? n[o] = i.map((r) => pt.validString(r)) : n[o] = pt.validString(i);
3403
+ }), n;
3404
+ }
3405
+ /**
3406
+ * Removes HTML tags from a string and trims the result.
3407
+ *
3408
+ * @param str - The string or number to sanitize.
3409
+ * @returns The sanitized string.
3410
+ */
3411
+ static validString(t) {
3412
+ return t == null ? "" : String(t).replace(/<[^>]*>/gim, "").trim();
3413
+ }
3414
+ }
3415
+ const Ji = [
3416
+ "rgba(0, 0, 0, 0)",
3417
+ "transparent",
3418
+ "initial",
3419
+ "inherit",
3420
+ "revert",
3421
+ "revert-layer",
3422
+ "unset"
3423
+ ];
3424
+ class mn {
3425
+ /**
3426
+ * Copies a string to the system clipboard.
3427
+ *
3428
+ * @param str - The string to copy.
3429
+ */
3430
+ static async copyToClipboard(t) {
3431
+ if (navigator.clipboard)
3432
+ try {
3433
+ await navigator.clipboard.writeText(t);
3434
+ return;
3435
+ } catch {
3436
+ }
3437
+ const n = document.createElement("textarea");
3438
+ n.value = t, n.setAttribute("readonly", ""), n.style.position = "absolute", n.style.left = "-9999px", document.body.appendChild(n), n.select(), document.execCommand("copy"), document.body.removeChild(n);
3439
+ }
3440
+ /**
3441
+ * Recursively finds the nearest parent with an opaque background color.
3442
+ *
3443
+ * @param el - The starting HTMLElement.
3444
+ * @returns The background color string (e.g., "rgb(255, 255, 255)").
3445
+ */
3446
+ static getParentNearestBackground(t) {
3447
+ if (!t || typeof window > "u")
3448
+ return "#fff";
3449
+ const n = window.getComputedStyle(t).backgroundColor;
3450
+ return Ji.includes(n) ? mn.getParentNearestBackground(t.parentElement) : n;
3451
+ }
3452
+ }
168
3453
  export {
169
- $ as PzGrid,
170
- I as PzGridItem,
171
- B as PzIcon,
172
- C as PzImage,
173
- S as PzText
3454
+ ns as PzArrayClamp,
3455
+ is as PzBreadcrumb,
3456
+ os as PzBtn,
3457
+ mn as PzDomHandler,
3458
+ ls as PzDropdown,
3459
+ ss as PzGrid,
3460
+ rs as PzGridItem,
3461
+ Go as PzHint,
3462
+ He as PzIcon,
3463
+ as as PzImage,
3464
+ ds as PzInfoHint,
3465
+ ti as PzLink,
3466
+ cs as PzModal,
3467
+ us as PzNav,
3468
+ ps as PzPagination,
3469
+ fs as PzRouterLink,
3470
+ ve as PzScrollTo,
3471
+ hs as PzStatus,
3472
+ _s as PzTab,
3473
+ gs as PzTabs,
3474
+ ms as PzTag,
3475
+ oi as PzText,
3476
+ vs as PzTextClamp,
3477
+ pt as PzValidatorXSS
174
3478
  };