@kong-ui-public/page-layout 1.2.3 → 1.2.4-pr.3950.6d61e1ac6.0

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.
@@ -1,241 +1,242 @@
1
- import { shallowRef as et, shallowReadonly as dt, getCurrentScope as vt, onScopeDispose as ft, toValue as F, watch as G, computed as k, getCurrentInstance as bt, onMounted as at, defineComponent as Z, inject as z, useTemplateRef as H, ref as E, onBeforeUnmount as pt, resolveComponent as I, openBlock as i, createElementBlock as c, createElementVNode as f, normalizeClass as L, Fragment as N, renderList as R, createBlock as _, resolveDynamicComponent as x, mergeProps as ot, withKeys as nt, withModifiers as W, withCtx as $, renderSlot as h, createTextVNode as A, toDisplayString as P, createVNode as D, unref as v, createCommentVNode as y, nextTick as Q, provide as yt, onUnmounted as ht, createSlots as M, normalizeProps as gt, guardReactiveProps as mt } from "vue";
2
- import { useRouter as st, useRoute as kt } from "vue-router";
3
- import { createI18n as $t, i18nTComponent as wt } from "@kong-ui-public/i18n";
4
- import { ChevronDownIcon as Tt, ChevronRightIcon as _t, ArrowTopLeftIcon as Ct, StarFillIcon as It, StarIcon as St, InfoIcon as Pt } from "@kong/icons";
5
- const Kt = "Go back", Dt = { save_shortcut: "Save page to shortcuts", remove_shortcut: "Remove page from shortcuts" }, Bt = { more_button: { label: "More", aria_label: "More tabs" } }, Rt = {
6
- back_button: Kt,
7
- favorite_button: Dt,
8
- tabs: Bt
1
+ import { shallowRef as Ce, shallowReadonly as Be, getCurrentScope as Ne, onScopeDispose as Oe, toValue as te, watch as re, computed as w, getCurrentInstance as ze, onMounted as be, defineComponent as ue, inject as ee, useTemplateRef as se, ref as F, onBeforeUnmount as Ee, resolveComponent as R, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeClass as j, Fragment as G, renderList as M, createBlock as D, resolveDynamicComponent as fe, mergeProps as Se, withKeys as Ae, withModifiers as le, withCtx as T, renderSlot as E, createTextVNode as X, toDisplayString as B, createVNode as N, unref as f, createCommentVNode as m, nextTick as pe, provide as Fe, onUnmounted as He, createSlots as ge, normalizeProps as xe, guardReactiveProps as We } from "vue";
2
+ import { useRouter as De, useRoute as Me } from "vue-router";
3
+ import { createI18n as Ve, i18nTComponent as je } from "@kong-ui-public/i18n";
4
+ import { ChevronDownIcon as Re, ChevronRightIcon as Ge, ArrowTopLeftIcon as Ue, StarFillIcon as qe, StarIcon as Ye, InfoIcon as Ze } from "@kong/icons";
5
+ const Je = "Go back", Xe = { save_shortcut: "Save page to shortcuts", remove_shortcut: "Remove page from shortcuts" }, Qe = { more_button: { label: "More", aria_label: "More tabs" } }, et = { aria_label: "Page sections", more_button: { aria_label: "More page sections" } }, tt = {
6
+ back_button: Je,
7
+ favorite_button: Xe,
8
+ tabs: Qe,
9
+ anchor_navigation: et
9
10
  };
10
- function zt() {
11
- const t = $t("en-us", Rt);
11
+ function at() {
12
+ const e = Ve("en-us", tt);
12
13
  return {
13
- i18n: t,
14
- i18nT: wt(t)
14
+ i18n: e,
15
+ i18nT: je(e)
15
16
  // Translation component <i18n-t>
16
17
  };
17
18
  }
18
- const it = {
19
- useI18n: zt
20
- }, Et = "12px", U = "16px", Lt = "16px";
21
- function Nt(t, s) {
22
- return vt() ? (ft(t, s), !0) : !1;
19
+ const me = {
20
+ useI18n: at
21
+ }, ot = "12px", ae = "16px", nt = "2px", Le = "16px";
22
+ function it(e, l) {
23
+ return Ne() ? (Oe(e, l), !0) : !1;
23
24
  }
24
- const At = typeof window < "u" && typeof document < "u";
25
+ const st = typeof window < "u" && typeof document < "u";
25
26
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
26
- const B = () => {
27
+ const J = () => {
27
28
  };
28
- function Ft(t, s) {
29
- function e(...a) {
30
- return new Promise((l, r) => {
31
- Promise.resolve(t(() => s.apply(this, a), {
32
- fn: s,
29
+ function lt(e, l) {
30
+ function a(...o) {
31
+ return new Promise((r, c) => {
32
+ Promise.resolve(e(() => l.apply(this, o), {
33
+ fn: l,
33
34
  thisArg: this,
34
- args: a
35
- })).then(l).catch(r);
35
+ args: o
36
+ })).then(r).catch(c);
36
37
  });
37
38
  }
38
- return "cancel" in t && Object.assign(e, {
39
- cancel: t.cancel,
40
- flush: t.flush,
41
- isPending: t.isPending
42
- }), e;
39
+ return "cancel" in e && Object.assign(a, {
40
+ cancel: e.cancel,
41
+ flush: e.flush,
42
+ isPending: e.isPending
43
+ }), a;
43
44
  }
44
- function Ot(t, s = {}) {
45
- let e, a, l = B, r = B;
46
- const u = et(!1), o = (d) => {
47
- clearTimeout(d), l(), l = B;
45
+ function rt(e, l = {}) {
46
+ let a, o, r = J, c = J;
47
+ const v = Ce(!1), n = (h) => {
48
+ clearTimeout(h), r(), r = J;
48
49
  };
49
- let p;
50
- return Object.assign((d) => {
51
- const g = F(t), m = F(s.maxWait);
52
- return e && o(e), g <= 0 || m !== void 0 && m <= 0 ? (a && (o(a), a = void 0), u.value = !1, Promise.resolve(d())) : (u.value = !0, new Promise((w, b) => {
53
- l = s.rejectOnCancel ? b : w, r = w, p = d, m && !a && (a = setTimeout(() => {
54
- e && o(e), a = void 0, u.value = !1, w(p());
55
- }, m)), e = setTimeout(() => {
56
- a && o(a), a = void 0, u.value = !1, w(d());
57
- }, g);
50
+ let y;
51
+ return Object.assign((h) => {
52
+ const p = te(e), I = te(l.maxWait);
53
+ return a && n(a), p <= 0 || I !== void 0 && I <= 0 ? (o && (n(o), o = void 0), v.value = !1, Promise.resolve(h())) : (v.value = !0, new Promise((S, g) => {
54
+ r = l.rejectOnCancel ? g : S, c = S, y = h, I && !o && (o = setTimeout(() => {
55
+ a && n(a), o = void 0, v.value = !1, S(y());
56
+ }, I)), a = setTimeout(() => {
57
+ o && n(o), o = void 0, v.value = !1, S(h());
58
+ }, p);
58
59
  }));
59
60
  }, {
60
61
  cancel: () => {
61
- e && (o(e), e = void 0), a && (o(a), a = void 0), u.value = !1, r = B;
62
+ a && (n(a), a = void 0), o && (n(o), o = void 0), v.value = !1, c = J;
62
63
  },
63
64
  flush: () => {
64
- if (u.value) {
65
- e && (clearTimeout(e), e = void 0), a && (clearTimeout(a), a = void 0), u.value = !1;
66
- const d = r;
67
- l = B, r = B, d(p());
65
+ if (v.value) {
66
+ a && (clearTimeout(a), a = void 0), o && (clearTimeout(o), o = void 0), v.value = !1;
67
+ const h = c;
68
+ r = J, c = J, h(y());
68
69
  }
69
70
  },
70
- isPending: dt(u)
71
+ isPending: Be(v)
71
72
  });
72
73
  }
73
- function Vt(t, s = 200, e = {}) {
74
- return Ft(Ot(s, e), t);
74
+ function ut(e, l = 200, a = {}) {
75
+ return lt(rt(l, a), e);
75
76
  }
76
- const Wt = At ? window : void 0;
77
- function X(t) {
78
- var s;
79
- const e = F(t);
80
- return (s = e?.$el) !== null && s !== void 0 ? s : e;
77
+ const ct = st ? window : void 0;
78
+ function Te(e) {
79
+ var l;
80
+ const a = te(e);
81
+ return (l = a?.$el) !== null && l !== void 0 ? l : a;
81
82
  }
82
83
  // @__NO_SIDE_EFFECTS__
83
- function jt() {
84
- const t = et(!1), s = bt();
85
- return s && at(() => {
86
- t.value = !0;
87
- }, s), t;
84
+ function dt() {
85
+ const e = Ce(!1), l = ze();
86
+ return l && be(() => {
87
+ e.value = !0;
88
+ }, l), e;
88
89
  }
89
90
  // @__NO_SIDE_EFFECTS__
90
- function xt(t) {
91
- const s = /* @__PURE__ */ jt();
92
- return k(() => (s.value, !!t()));
91
+ function vt(e) {
92
+ const l = /* @__PURE__ */ dt();
93
+ return w(() => (l.value, !!e()));
93
94
  }
94
- function Mt(t, s, e = {}) {
95
- const { window: a = Wt, ...l } = e;
96
- let r;
97
- const u = /* @__PURE__ */ xt(() => a && "ResizeObserver" in a), o = () => {
98
- r && (r.disconnect(), r = void 0);
99
- }, p = G(k(() => {
100
- const d = F(t);
101
- return Array.isArray(d) ? d.map((g) => X(g)) : [X(d)];
102
- }), (d) => {
103
- if (o(), u.value && a) {
104
- r = new ResizeObserver(s);
105
- for (const g of d) g && r.observe(g, l);
95
+ function Pe(e, l, a = {}) {
96
+ const { window: o = ct, ...r } = a;
97
+ let c;
98
+ const v = /* @__PURE__ */ vt(() => o && "ResizeObserver" in o), n = () => {
99
+ c && (c.disconnect(), c = void 0);
100
+ }, y = re(w(() => {
101
+ const h = te(e);
102
+ return Array.isArray(h) ? h.map((p) => Te(p)) : [Te(h)];
103
+ }), (h) => {
104
+ if (n(), v.value && o) {
105
+ c = new ResizeObserver(l);
106
+ for (const p of h) p && c.observe(p, r);
106
107
  }
107
108
  }, {
108
109
  immediate: !0,
109
110
  flush: "post"
110
- }), T = () => {
111
- o(), p();
111
+ }), k = () => {
112
+ n(), y();
112
113
  };
113
- return Nt(T), {
114
- isSupported: u,
115
- stop: T
114
+ return it(k), {
115
+ isSupported: v,
116
+ stop: k
116
117
  };
117
118
  }
118
- const Ut = {
119
+ const ht = {
119
120
  ref: "page-layout-tabs",
120
121
  class: "page-layout-tabs",
121
122
  "data-testid": "page-layout-tabs"
122
- }, Gt = { key: 0 }, Zt = ["aria-label"], Jt = {
123
+ }, ft = { key: 0 }, pt = ["aria-label"], gt = {
123
124
  key: 0,
124
125
  class: "layout-loader-container"
125
- }, Yt = /* @__PURE__ */ Z({
126
+ }, bt = /* @__PURE__ */ ue({
126
127
  __name: "PageLayoutTabs",
127
128
  props: {
128
129
  tabs: { default: () => [] }
129
130
  },
130
- setup(t) {
131
- const { i18n: { t: s } } = it.useI18n(), e = st(), a = z("app:navigateTo", null), l = (b) => {
132
- if (typeof b.to != "string") {
133
- e.push(b.to);
131
+ setup(e) {
132
+ const { i18n: { t: l } } = me.useI18n(), a = De(), o = ee("app:navigateTo", null), r = (g) => {
133
+ if (typeof g.to != "string") {
134
+ a.push(g.to);
134
135
  return;
135
136
  }
136
- if (typeof a != "function") {
137
- window.location.href = b.to;
137
+ if (typeof o != "function") {
138
+ window.location.href = g.to;
138
139
  return;
139
140
  }
140
- a(b.to);
141
- }, r = H("page-layout-tabs"), u = H("page-layout-tabs-list"), o = E(t.tabs.length), p = E(!1), T = k(() => t.tabs.slice(0, o.value)), d = k(() => t.tabs.slice(o.value)), g = async () => {
142
- if (!r.value || !u.value)
141
+ o(g.to);
142
+ }, c = se("page-layout-tabs"), v = se("page-layout-tabs-list"), n = F(e.tabs.length), y = F(!1), k = w(() => e.tabs.slice(0, n.value)), h = w(() => e.tabs.slice(n.value)), p = async () => {
143
+ if (!c.value || !v.value)
143
144
  return;
144
- p.value = !1, o.value = t.tabs.length, await Q();
145
- const b = r.value?.getBoundingClientRect().width - parseInt(Lt) * 2;
146
- let S = u.value?.getBoundingClientRect().width;
147
- if (!b || !S) {
148
- p.value = !0;
145
+ y.value = !1, n.value = e.tabs.length, await pe();
146
+ const g = c.value?.getBoundingClientRect().width - parseInt(Le) * 2;
147
+ let O = v.value?.getBoundingClientRect().width;
148
+ if (!g || !O) {
149
+ y.value = !0;
149
150
  return;
150
151
  }
151
- const K = 50;
152
- for (; S + K > b && o.value > 1; )
153
- o.value--, await Q(), S = u.value?.getBoundingClientRect().width || 0;
154
- p.value = !0;
152
+ const P = 50;
153
+ for (; O + P > g && n.value > 1; )
154
+ n.value--, await pe(), O = v.value?.getBoundingClientRect().width || 0;
155
+ y.value = !0;
155
156
  };
156
- let m = null;
157
- const w = () => {
158
- m && clearTimeout(m), m = setTimeout(() => {
159
- g();
157
+ let I = null;
158
+ const S = () => {
159
+ I && clearTimeout(I), I = setTimeout(() => {
160
+ p();
160
161
  }, 150);
161
162
  };
162
- return at(() => {
163
- g(), Mt(r, w);
164
- }), pt(() => {
165
- m && clearTimeout(m);
166
- }), G(() => t.tabs, () => {
167
- g();
168
- }, { deep: !0 }), (b, S) => {
169
- const K = I("KDropdownItem"), O = I("KDropdown"), V = I("KSkeletonBox");
170
- return i(), c("nav", Ut, [
171
- f("ul", {
163
+ return be(() => {
164
+ p(), Pe(c, S);
165
+ }), Ee(() => {
166
+ I && clearTimeout(I);
167
+ }), re(() => e.tabs, () => {
168
+ p();
169
+ }, { deep: !0 }), (g, O) => {
170
+ const P = R("KDropdownItem"), H = R("KDropdown"), U = R("KSkeletonBox");
171
+ return i(), d("nav", ht, [
172
+ b("ul", {
172
173
  ref: "page-layout-tabs-list",
173
- class: L({ "layout-computing": !p.value })
174
+ class: j({ "layout-computing": !y.value })
174
175
  }, [
175
- (i(!0), c(N, null, R(T.value, (n) => (i(), c("li", {
176
- key: `${n.key}-tab`
176
+ (i(!0), d(G, null, M(k.value, (s) => (i(), d("li", {
177
+ key: `${s.key}-tab`
177
178
  }, [
178
- (i(), _(x(typeof n.to == "string" ? "a" : "router-link"), ot({ ref_for: !0 }, typeof n.to == "string" ? { href: n.to } : { to: n.to }, {
179
- "aria-current": n.active ? "page" : void 0,
180
- class: ["tab-link", { active: n.active }],
181
- "data-testid": n.dataTestId ? n.dataTestId : `page-layout-tab-${n.key}`,
179
+ (i(), D(fe(typeof s.to == "string" ? "a" : "router-link"), Se({ ref_for: !0 }, typeof s.to == "string" ? { href: s.to } : { to: s.to }, {
180
+ "aria-current": s.active ? "page" : void 0,
181
+ class: ["tab-link", { active: s.active }],
182
+ "data-testid": s.dataTestId ? s.dataTestId : `page-layout-tab-${s.key}`,
182
183
  tabindex: "0",
183
- onClick: W((j) => l(n), ["prevent"]),
184
- onKeydown: nt(W((j) => l(n), ["prevent"]), ["enter"])
184
+ onClick: le((z) => r(s), ["prevent"]),
185
+ onKeydown: Ae(le((z) => r(s), ["prevent"]), ["enter"])
185
186
  }), {
186
- default: $(() => [
187
- h(b.$slots, `tab-${n.key}`, { tab: n }, () => [
188
- A(P(n.label), 1)
187
+ default: T(() => [
188
+ E(g.$slots, `tab-${s.key}`, { tab: s }, () => [
189
+ X(B(s.label), 1)
189
190
  ], !0)
190
191
  ]),
191
192
  _: 2
192
193
  }, 1040, ["aria-current", "class", "data-testid", "onClick", "onKeydown"]))
193
194
  ]))), 128)),
194
- t.tabs.length > o.value ? (i(), c("li", Gt, [
195
- D(O, { "kpop-attributes": {
195
+ e.tabs.length > n.value ? (i(), d("li", ft, [
196
+ N(H, { "kpop-attributes": {
196
197
  placement: "bottom-end",
197
198
  popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
198
199
  } }, {
199
- items: $(() => [
200
- (i(!0), c(N, null, R(d.value, (n) => (i(), _(K, {
201
- key: `${n.key}-dropdown-item`,
202
- "aria-current": n.active ? "page" : void 0,
203
- "data-testid": n.dataTestId ? n.dataTestId : `page-layout-tab-${n.key}`,
200
+ items: T(() => [
201
+ (i(!0), d(G, null, M(h.value, (s) => (i(), D(P, {
202
+ key: `${s.key}-dropdown-item`,
203
+ "aria-current": s.active ? "page" : void 0,
204
+ "data-testid": s.dataTestId ? s.dataTestId : `page-layout-tab-${s.key}`,
204
205
  item: {
205
- label: n.label,
206
- value: n.key,
207
- to: n.to
206
+ label: s.label,
207
+ value: s.key,
208
+ to: s.to
208
209
  },
209
- selected: n.active
210
+ selected: s.active
210
211
  }, {
211
- default: $(() => [
212
- h(b.$slots, `tab-${n.key}`, { tab: n }, () => [
213
- A(P(n.label), 1)
212
+ default: T(() => [
213
+ E(g.$slots, `tab-${s.key}`, { tab: s }, () => [
214
+ X(B(s.label), 1)
214
215
  ], !0)
215
216
  ]),
216
217
  _: 2
217
218
  }, 1032, ["aria-current", "data-testid", "item", "selected"]))), 128))
218
219
  ]),
219
- default: $(() => [
220
- f("button", {
221
- "aria-label": v(s)("tabs.more_button.aria_label"),
222
- class: L(["tab-link", { active: d.value.find((n) => n.active) }]),
220
+ default: T(() => [
221
+ b("button", {
222
+ "aria-label": f(l)("tabs.more_button.aria_label"),
223
+ class: j(["tab-link", { active: h.value.find((s) => s.active) }]),
223
224
  "data-testid": "tabs-overflow-dropdown-button"
224
225
  }, [
225
- A(P(v(s)("tabs.more_button.label")) + " ", 1),
226
- D(v(Tt), {
226
+ X(B(f(l)("tabs.more_button.label")) + " ", 1),
227
+ N(f(Re), {
227
228
  decorative: "",
228
- size: `var(--kui-icon-size-30, ${v(U)})`
229
+ size: `var(--kui-icon-size-30, ${f(ae)})`
229
230
  }, null, 8, ["size"])
230
- ], 10, Zt)
231
+ ], 10, pt)
231
232
  ]),
232
233
  _: 3
233
234
  })
234
- ])) : y("", !0)
235
+ ])) : m("", !0)
235
236
  ], 2),
236
- p.value ? y("", !0) : (i(), c("div", Jt, [
237
- (i(), c(N, null, R(3, (n) => D(V, {
238
- key: `layout-loader-${n}`,
237
+ y.value ? m("", !0) : (i(), d("div", gt, [
238
+ (i(), d(G, null, M(3, (s) => N(U, {
239
+ key: `layout-loader-${s}`,
239
240
  height: "1",
240
241
  width: "5"
241
242
  })), 64))
@@ -243,190 +244,392 @@ const Ut = {
243
244
  ], 512);
244
245
  };
245
246
  }
246
- }), J = (t, s) => {
247
- const e = t.__vccOpts || t;
248
- for (const [a, l] of s)
249
- e[a] = l;
250
- return e;
251
- }, qt = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-02891bc1"]]), tt = /* @__PURE__ */ Symbol("nested-page-layout-detection"), Ht = "page-layout:new-appearance", Qt = {
247
+ }), ce = (e, l) => {
248
+ const a = e.__vccOpts || e;
249
+ for (const [o, r] of l)
250
+ a[o] = r;
251
+ return a;
252
+ }, mt = /* @__PURE__ */ ce(bt, [["__scopeId", "data-v-02891bc1"]]), yt = ["aria-label", "data-fit"], kt = {
253
+ key: 0,
254
+ "aria-hidden": "true",
255
+ class: "anchor-ellipsis",
256
+ "data-testid": "anchor-navigation-leading-ellipsis"
257
+ }, wt = ["aria-current", "data-testid", "title", "onClick"], Tt = {
258
+ key: 1,
259
+ "aria-hidden": "true",
260
+ class: "anchor-ellipsis",
261
+ "data-testid": "anchor-navigation-trailing-ellipsis"
262
+ }, _t = { key: 2 }, _e = 140, $e = 22, he = 16, $t = /* @__PURE__ */ ue({
263
+ __name: "PageLayoutAnchorNavigation",
264
+ props: {
265
+ anchors: { default: () => [] }
266
+ },
267
+ setup(e) {
268
+ const { i18n: { t: l } } = me.useI18n(), a = se("page-layout-anchor-navigation"), o = se("page-layout-anchor-navigation-list"), r = F("all"), c = F(""), v = F([]), n = w(() => e.anchors.filter((t) => v.value.includes(t.id))), y = w(() => {
269
+ const t = n.value.findIndex((u) => u.id === c.value);
270
+ return t === -1 ? 0 : t;
271
+ }), k = w(() => {
272
+ const t = n.value, u = t.length, _ = y.value;
273
+ if (r.value === "all")
274
+ return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
275
+ if (r.value === "hidden")
276
+ return { anchors: [], hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
277
+ if (r.value === "active-only")
278
+ return { anchors: t.slice(_, _ + 1), hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
279
+ const $ = r.value === "window-3" ? 3 : 2;
280
+ if (u <= $)
281
+ return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
282
+ const x = _ < $ ? 0 : _ >= u - $ ? u - $ : _ - 1;
283
+ return {
284
+ anchors: t.slice(x, x + $),
285
+ hasLeadingEllipsis: x > 0,
286
+ hasTrailingEllipsis: x + $ < u,
287
+ hasOverflowDropdown: !0
288
+ };
289
+ }), h = (t) => t.dataTestId ?? `page-layout-anchor-${t.id.replace(/[^\w-]+/g, "-").replace(/^-+|-+$/g, "")}`, p = F(null), I = () => {
290
+ let t = a.value?.parentElement ?? null;
291
+ for (; t; ) {
292
+ const { overflowY: u } = getComputedStyle(t);
293
+ if (u === "auto" || u === "scroll" || u === "overlay")
294
+ return t;
295
+ t = t.parentElement;
296
+ }
297
+ return null;
298
+ }, S = (t) => {
299
+ if (t.element)
300
+ return t.element.isConnected ? t.element : null;
301
+ const u = p.value ?? document;
302
+ try {
303
+ return u.querySelector(t.id) ?? u.querySelector(`#${CSS.escape(t.id)}`);
304
+ } catch {
305
+ return null;
306
+ }
307
+ }, g = () => (a.value?.closest(".page-layout-header")?.getBoundingClientRect().height ?? 0) + parseInt(Le, 10), O = parseInt(ae, 10), P = parseInt(nt, 10), H = (t) => t * _e + 2 * O + $e + (t + 2) * P + he, U = () => _e + $e + P + he;
308
+ let s = 0;
309
+ const z = async () => {
310
+ if (!n.value.length)
311
+ return;
312
+ const t = ++s;
313
+ if (r.value = "all", await pe(), t !== s || !a.value || !o.value)
314
+ return;
315
+ const u = a.value.getBoundingClientRect().width, _ = o.value.getBoundingClientRect().width;
316
+ u <= 0 || _ <= 0 || _ + he <= u || (H(3) <= u ? r.value = "window-3" : H(2) <= u ? r.value = "window-2" : U() <= u ? r.value = "active-only" : r.value = "hidden");
317
+ };
318
+ let V = null;
319
+ Pe(a, () => {
320
+ V && clearTimeout(V), V = setTimeout(() => {
321
+ Q(), z();
322
+ }, 150);
323
+ });
324
+ let q = null, Y = null;
325
+ const Z = () => p.value ?? window, L = () => {
326
+ q = null, Y && (clearTimeout(Y), Y = null);
327
+ const t = Z();
328
+ t.removeEventListener("scrollend", L), t.removeEventListener("wheel", L), t.removeEventListener("touchstart", L);
329
+ }, oe = (t) => {
330
+ L(), q = t;
331
+ const u = Z();
332
+ u.addEventListener("scrollend", L, { once: !0 }), u.addEventListener("wheel", L, { passive: !0 }), u.addEventListener("touchstart", L, { passive: !0 }), Y = setTimeout(L, 1e3);
333
+ }, de = () => {
334
+ const t = p.value;
335
+ return {
336
+ top: t ? t.getBoundingClientRect().top : 0,
337
+ scrollTop: t ? t.scrollTop : window.scrollY,
338
+ clientHeight: t ? t.clientHeight : window.innerHeight,
339
+ scrollHeight: t ? t.scrollHeight : document.documentElement.scrollHeight
340
+ };
341
+ }, Q = () => {
342
+ const { top: t, scrollTop: u, clientHeight: _, scrollHeight: $ } = de(), x = g(), C = [];
343
+ let A = null, ne = null;
344
+ for (const W of e.anchors) {
345
+ const ie = S(W);
346
+ ie && (C.push(W.id), ne = W.id, A ??= W.id, ie.getBoundingClientRect().top - t <= (W.offset ?? x) + 8 && (A = W.id));
347
+ }
348
+ const we = C.length !== v.value.length || C.some((W, ie) => W !== v.value[ie]);
349
+ return we && (v.value = C), q || (ne && u > 0 && u + _ >= $ - 2 && (A = ne), c.value = A ?? ""), we;
350
+ };
351
+ let ve = !1;
352
+ const ye = () => {
353
+ ve || (ve = !0, requestAnimationFrame(() => {
354
+ ve = !1, Q() && z();
355
+ }));
356
+ }, ke = (t) => {
357
+ const u = S(t);
358
+ if (!u)
359
+ return;
360
+ c.value = t.id, oe(t.id);
361
+ const _ = t.offset ?? g(), $ = p.value;
362
+ if ($) {
363
+ $.scrollTo({ behavior: "smooth", top: u.getBoundingClientRect().top - $.getBoundingClientRect().top + $.scrollTop - _ });
364
+ return;
365
+ }
366
+ window.scrollTo({ behavior: "smooth", top: u.getBoundingClientRect().top + window.scrollY - _ });
367
+ }, Ke = (t, u) => {
368
+ u(), ke(t);
369
+ };
370
+ return be(() => {
371
+ p.value = I(), Z().addEventListener("scroll", ye, { passive: !0 }), Q(), z(), requestAnimationFrame(() => {
372
+ Q(), z();
373
+ });
374
+ }), Ee(() => {
375
+ Z().removeEventListener("scroll", ye), L(), V && clearTimeout(V);
376
+ }), re(() => e.anchors, () => {
377
+ e.anchors.some((t) => t.id === c.value) || (c.value = ""), Q(), z();
378
+ }, { deep: !0 }), (t, u) => {
379
+ const _ = R("KButton"), $ = R("KDropdownItem"), x = R("KDropdown");
380
+ return i(), d("nav", {
381
+ ref: "page-layout-anchor-navigation",
382
+ "aria-label": f(l)("anchor_navigation.aria_label"),
383
+ class: "page-layout-anchor-navigation",
384
+ "data-fit": r.value,
385
+ "data-testid": "page-layout-anchor-navigation"
386
+ }, [
387
+ b("ul", {
388
+ ref: "page-layout-anchor-navigation-list",
389
+ class: j({ "layout-hidden": r.value === "hidden" })
390
+ }, [
391
+ k.value.hasLeadingEllipsis ? (i(), d("li", kt, " … ")) : m("", !0),
392
+ (i(!0), d(G, null, M(k.value.anchors, (C) => (i(), d("li", {
393
+ key: `${C.id}-anchor`
394
+ }, [
395
+ b("button", {
396
+ "aria-current": C.id === c.value ? "location" : void 0,
397
+ class: j(["anchor-link", { active: C.id === c.value }]),
398
+ "data-testid": h(C),
399
+ title: C.label,
400
+ type: "button",
401
+ onClick: (A) => ke(C)
402
+ }, B(C.label), 11, wt)
403
+ ]))), 128)),
404
+ k.value.hasTrailingEllipsis ? (i(), d("li", Tt, " … ")) : m("", !0),
405
+ k.value.hasOverflowDropdown ? (i(), d("li", _t, [
406
+ N(x, { "kpop-attributes": {
407
+ placement: "bottom-end",
408
+ popoverElementAttributes: { "data-testid": "anchor-navigation-overflow-dropdown-popover" }
409
+ } }, {
410
+ items: T(({ closeDropdown: C }) => [
411
+ (i(!0), d(G, null, M(n.value, (A) => (i(), D($, {
412
+ key: `${A.id}-dropdown-item`,
413
+ "aria-current": A.id === c.value ? "location" : void 0,
414
+ "data-testid": h(A),
415
+ selected: A.id === c.value,
416
+ onClick: (ne) => Ke(A, C)
417
+ }, {
418
+ default: T(() => [
419
+ X(B(A.label), 1)
420
+ ]),
421
+ _: 2
422
+ }, 1032, ["aria-current", "data-testid", "selected", "onClick"]))), 128))
423
+ ]),
424
+ default: T(() => [
425
+ N(_, {
426
+ appearance: "tertiary",
427
+ "aria-label": f(l)("anchor_navigation.more_button.aria_label"),
428
+ class: "anchor-overflow-button",
429
+ "data-testid": "anchor-navigation-overflow-dropdown-button",
430
+ icon: "",
431
+ size: "small"
432
+ }, {
433
+ default: T(() => [
434
+ N(f(Re), {
435
+ decorative: "",
436
+ size: `var(--kui-icon-size-30, ${f(ae)})`
437
+ }, null, 8, ["size"])
438
+ ]),
439
+ _: 1
440
+ }, 8, ["aria-label"])
441
+ ]),
442
+ _: 1
443
+ })
444
+ ])) : m("", !0)
445
+ ], 2)
446
+ ], 8, yt);
447
+ };
448
+ }
449
+ }), It = /* @__PURE__ */ ce($t, [["__scopeId", "data-v-6474f077"]]), Ie = /* @__PURE__ */ Symbol("nested-page-layout-detection"), Ct = "page-layout:new-appearance", Et = {
252
450
  key: 0,
253
451
  class: "page-layout-header",
254
452
  "data-testid": "page-layout-header"
255
- }, Xt = { class: "page-header-container" }, te = { class: "page-header-start" }, ee = { class: "title-container" }, ae = {
453
+ }, St = { class: "page-header-container" }, At = { class: "page-header-start" }, Dt = { class: "title-container" }, Rt = {
256
454
  key: 1,
257
455
  class: "page-layout-title-wrapper"
258
- }, oe = {
456
+ }, Lt = {
259
457
  class: "page-layout-title",
260
458
  "data-testid": "page-layout-title"
261
- }, ne = ["aria-label"], se = {
459
+ }, Pt = ["aria-label"], Kt = {
262
460
  key: 3,
263
461
  class: "title-after-container"
264
- }, ie = { class: "page-header-actions-container" }, le = {
462
+ }, Bt = { class: "page-header-actions-container" }, Nt = {
265
463
  key: 0,
266
464
  class: "page-layout-aside-container",
267
465
  "data-testid": "page-layout-aside"
268
- }, ue = { class: "page-layout-content" }, re = /* @__PURE__ */ Z({
466
+ }, Ot = { class: "page-layout-content" }, zt = /* @__PURE__ */ ue({
269
467
  __name: "PageLayout",
270
468
  props: {
271
469
  breadcrumbs: { default: () => [] },
272
470
  title: {},
273
471
  backTo: {},
274
472
  tabs: { default: () => [] },
473
+ anchors: { default: () => [] },
275
474
  pageShortcutData: {}
276
475
  },
277
- setup(t) {
278
- const s = z("app:navigateTo", null), e = z(Ht, null), a = z("app:pageShortcutsContext", null), { i18n: { t: l } } = it.useI18n(), r = st(), u = kt(), o = k(() => !!(t.tabs && t.tabs.length)), p = k(() => typeof t.backTo == "string"), T = k(() => F(e) === !0), d = k(() => !!t.pageShortcutData && !!t.pageShortcutData.entityType && !!t.pageShortcutData.label), g = k(() => d.value && !!a && "onFavoriteToggle" in a && typeof a.onFavoriteToggle == "function"), m = E(0), w = k(() => !!a && "isFavorite" in a && typeof a.isFavorite == "function" && a.isFavorite(t.pageShortcutData) === !0), b = async () => {
279
- if (t.backTo) {
280
- if (typeof t.backTo == "object") {
281
- r.push(t.backTo);
476
+ setup(e) {
477
+ const l = ee("app:navigateTo", null), a = ee(Ct, null), o = ee("app:pageShortcutsContext", null), { i18n: { t: r } } = me.useI18n(), c = De(), v = Me(), n = w(() => !!(e.tabs && e.tabs.length)), y = w(() => typeof e.backTo == "string"), k = w(() => te(a) === !0), h = w(() => k.value && !n.value && !!(e.anchors && e.anchors.length)), p = w(() => !!e.pageShortcutData && !!e.pageShortcutData.entityType && !!e.pageShortcutData.label), I = w(() => p.value && !!o && "onFavoriteToggle" in o && typeof o.onFavoriteToggle == "function"), S = F(0), g = w(() => !!o && "isFavorite" in o && typeof o.isFavorite == "function" && o.isFavorite(e.pageShortcutData) === !0), O = async () => {
478
+ if (e.backTo) {
479
+ if (typeof e.backTo == "object") {
480
+ c.push(e.backTo);
282
481
  return;
283
482
  }
284
- if (typeof s != "function") {
285
- window.location.href = t.backTo;
483
+ if (typeof l != "function") {
484
+ window.location.href = e.backTo;
286
485
  return;
287
486
  }
288
- await s(t.backTo);
487
+ await l(e.backTo);
289
488
  }
290
- }, S = E(0), K = k(() => S.value > 0);
291
- yt(tt, () => (S.value++, () => {
292
- S.value--;
489
+ }, P = F(0), H = w(() => P.value > 0);
490
+ Fe(Ie, () => (P.value++, () => {
491
+ P.value--;
293
492
  }));
294
- const O = z(tt, null), V = E(null);
295
- typeof O == "function" && (V.value = O());
296
- const n = () => {
297
- a.onFavoriteToggle({ ...t.pageShortcutData, path: t.pageShortcutData?.path || u.fullPath });
493
+ const U = ee(Ie, null), s = F(null);
494
+ typeof U == "function" && (s.value = U());
495
+ const z = () => {
496
+ o.onFavoriteToggle({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v.fullPath });
298
497
  };
299
- ht(() => {
300
- V.value?.();
498
+ He(() => {
499
+ s.value?.();
301
500
  });
302
- const j = Vt(() => {
303
- !K.value && d.value && a && "onEntityPageVisit" in a && typeof a.onEntityPageVisit == "function" && (a.onEntityPageVisit({ ...t.pageShortcutData, path: t.pageShortcutData?.path || u?.fullPath }), m.value++);
501
+ const V = ut(() => {
502
+ !H.value && p.value && o && "onEntityPageVisit" in o && typeof o.onEntityPageVisit == "function" && (o.onEntityPageVisit({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v?.fullPath }), S.value++);
304
503
  }, 500);
305
- return G([() => t.pageShortcutData, () => u?.fullPath], () => {
306
- j();
307
- }, { immediate: !0, deep: !0 }), (C, Y) => {
308
- const lt = I("KBreadcrumbs"), ut = I("KTooltip"), rt = I("router-view");
309
- return i(), c("div", {
310
- class: L(["kong-ui-public-page-layout", { "new-appearance": T.value }]),
504
+ return re([() => e.pageShortcutData, () => v?.fullPath], () => {
505
+ V();
506
+ }, { immediate: !0, deep: !0 }), (K, q) => {
507
+ const Y = R("KBreadcrumbs"), Z = R("KTooltip"), L = R("router-view");
508
+ return i(), d("div", {
509
+ class: j(["kong-ui-public-page-layout", { "new-appearance": k.value }]),
311
510
  "data-testid": "kong-ui-public-page-layout"
312
511
  }, [
313
- K.value ? y("", !0) : (i(), c("div", Qt, [
314
- f("div", Xt, [
315
- f("div", te, [
316
- t.breadcrumbs && t.breadcrumbs.length ? (i(), _(lt, {
512
+ H.value ? m("", !0) : (i(), d("div", Et, [
513
+ b("div", St, [
514
+ b("div", At, [
515
+ e.breadcrumbs && e.breadcrumbs.length ? (i(), D(Y, {
317
516
  key: 0,
318
517
  class: "header-breadcrumbs",
319
518
  "data-testid": "page-layout-breadcrumbs",
320
519
  "item-max-width": "25ch",
321
- items: t.breadcrumbs
322
- }, M({ _: 2 }, [
323
- T.value ? {
520
+ items: e.breadcrumbs
521
+ }, ge({ _: 2 }, [
522
+ k.value ? {
324
523
  name: "divider",
325
- fn: $(() => [
326
- D(v(_t), { decorative: "" })
524
+ fn: T(() => [
525
+ N(f(Ge), { decorative: "" })
327
526
  ]),
328
527
  key: "0"
329
528
  } : void 0
330
- ]), 1032, ["items"])) : y("", !0),
331
- f("div", ee, [
332
- t.backTo && !T.value ? (i(), _(x(p.value ? "a" : "router-link"), ot({ key: 0 }, p.value ? { href: t.backTo } : { to: t.backTo }, {
333
- "aria-label": v(l)("back_button"),
529
+ ]), 1032, ["items"])) : m("", !0),
530
+ b("div", Dt, [
531
+ e.backTo && !k.value ? (i(), D(fe(y.value ? "a" : "router-link"), Se({ key: 0 }, y.value ? { href: e.backTo } : { to: e.backTo }, {
532
+ "aria-label": f(r)("back_button"),
334
533
  class: "navigate-back",
335
534
  "data-testid": "page-layout-navigate-back",
336
535
  tabindex: "0",
337
- onClick: W(b, ["prevent"]),
338
- onKeydown: nt(W(b, ["prevent"]), ["enter"])
536
+ onClick: le(O, ["prevent"]),
537
+ onKeydown: Ae(le(O, ["prevent"]), ["enter"])
339
538
  }), {
340
- default: $(() => [
341
- D(v(Ct), {
539
+ default: T(() => [
540
+ N(f(Ue), {
342
541
  decorative: "",
343
- size: `var(--kui-icon-size-30, ${v(U)})`
542
+ size: `var(--kui-icon-size-30, ${f(ae)})`
344
543
  }, null, 8, ["size"])
345
544
  ]),
346
545
  _: 1
347
- }, 16, ["aria-label", "onKeydown"])) : y("", !0),
348
- t.title || C.$slots.title ? (i(), c("span", ae, [
349
- h(C.$slots, "title", {}, () => [
350
- f("h1", oe, P(t.title), 1)
546
+ }, 16, ["aria-label", "onKeydown"])) : m("", !0),
547
+ e.title || K.$slots.title ? (i(), d("span", Rt, [
548
+ E(K.$slots, "title", {}, () => [
549
+ b("h1", Lt, B(e.title), 1)
351
550
  ], !0)
352
- ])) : y("", !0),
353
- g.value ? (i(), c("div", {
354
- key: m.value,
551
+ ])) : m("", !0),
552
+ I.value ? (i(), d("div", {
553
+ key: S.value,
355
554
  class: "favorite-button-container"
356
555
  }, [
357
- D(ut, {
556
+ N(Z, {
358
557
  placement: "right",
359
- text: w.value ? v(l)("favorite_button.remove_shortcut") : v(l)("favorite_button.save_shortcut")
558
+ text: g.value ? f(r)("favorite_button.remove_shortcut") : f(r)("favorite_button.save_shortcut")
360
559
  }, {
361
- default: $(() => [
362
- f("button", {
363
- "aria-label": w.value ? v(l)("favorite_button.remove_shortcut") : v(l)("favorite_button.save_shortcut"),
364
- class: L(["favorite-button", { active: w.value }]),
560
+ default: T(() => [
561
+ b("button", {
562
+ "aria-label": g.value ? f(r)("favorite_button.remove_shortcut") : f(r)("favorite_button.save_shortcut"),
563
+ class: j(["favorite-button", { active: g.value }]),
365
564
  "data-testid": "page-layout-favorite-button",
366
565
  type: "button",
367
- onClick: n
566
+ onClick: z
368
567
  }, [
369
- (i(), _(x(w.value ? v(It) : v(St)), {
568
+ (i(), D(fe(g.value ? f(qe) : f(Ye)), {
370
569
  decorative: "",
371
- size: `var(--kui-icon-size-30, ${v(U)})`
570
+ size: `var(--kui-icon-size-30, ${f(ae)})`
372
571
  }, null, 8, ["size"]))
373
- ], 10, ne)
572
+ ], 10, Pt)
374
573
  ]),
375
574
  _: 1
376
575
  }, 8, ["text"])
377
- ])) : y("", !0),
378
- C.$slots["title-after"] ? (i(), c("div", se, [
379
- h(C.$slots, "title-after", {}, void 0, !0)
380
- ])) : y("", !0)
576
+ ])) : m("", !0),
577
+ K.$slots["title-after"] ? (i(), d("div", Kt, [
578
+ E(K.$slots, "title-after", {}, void 0, !0)
579
+ ])) : m("", !0)
381
580
  ])
382
581
  ]),
383
- f("div", ie, [
384
- h(C.$slots, "actions", {}, void 0, !0),
385
- Y[0] || (Y[0] = f("div", { "data-teleport-target": "ask-kai" }, null, -1))
582
+ h.value ? (i(), D(It, {
583
+ key: 0,
584
+ anchors: e.anchors
585
+ }, null, 8, ["anchors"])) : m("", !0),
586
+ b("div", Bt, [
587
+ E(K.$slots, "actions", {}, void 0, !0),
588
+ q[0] || (q[0] = b("div", { "data-teleport-target": "ask-kai" }, null, -1))
386
589
  ])
387
590
  ]),
388
- o.value ? (i(), _(qt, {
591
+ n.value ? (i(), D(mt, {
389
592
  key: 0,
390
- tabs: t.tabs
391
- }, M({ _: 2 }, [
392
- R(t.tabs, (q) => ({
393
- name: `tab-${q.key}`,
394
- fn: $((ct) => [
395
- h(C.$slots, `tab-${q.key}`, gt(mt(ct)), void 0, !0)
593
+ tabs: e.tabs
594
+ }, ge({ _: 2 }, [
595
+ M(e.tabs, (oe) => ({
596
+ name: `tab-${oe.key}`,
597
+ fn: T((de) => [
598
+ E(K.$slots, `tab-${oe.key}`, xe(We(de)), void 0, !0)
396
599
  ])
397
600
  }))
398
- ]), 1032, ["tabs"])) : y("", !0)
601
+ ]), 1032, ["tabs"])) : m("", !0)
399
602
  ])),
400
- f("div", {
401
- class: L(["page-layout-content-container", { "has-nested-page-layout": K.value }])
603
+ b("div", {
604
+ class: j(["page-layout-content-container", { "has-nested-page-layout": H.value }])
402
605
  }, [
403
- T.value && C.$slots.aside ? (i(), c("div", le, [
404
- h(C.$slots, "aside", {}, void 0, !0)
405
- ])) : y("", !0),
406
- f("div", ue, [
407
- o.value ? (i(), _(rt, { key: 0 })) : h(C.$slots, "default", {}, void 0, !0, 1)
606
+ k.value && K.$slots.aside ? (i(), d("div", Nt, [
607
+ E(K.$slots, "aside", {}, void 0, !0)
608
+ ])) : m("", !0),
609
+ b("div", Ot, [
610
+ n.value ? (i(), D(L, { key: 0 })) : E(K.$slots, "default", {}, void 0, !0, 1)
408
611
  ])
409
612
  ], 2)
410
613
  ], 2);
411
614
  };
412
615
  }
413
- }), Ce = /* @__PURE__ */ J(re, [["__scopeId", "data-v-33657beb"]]), ce = {
616
+ }), ea = /* @__PURE__ */ ce(zt, [["__scopeId", "data-v-b57669c9"]]), Ft = {
414
617
  key: 0,
415
618
  class: "about-card-description",
416
619
  "data-testid": "about-card-description"
417
- }, de = {
620
+ }, Ht = {
418
621
  key: 1,
419
622
  class: "about-card-skeleton",
420
623
  "data-testid": "about-card-skeleton"
421
- }, ve = {
624
+ }, xt = {
422
625
  key: 2,
423
626
  class: "about-card-rows",
424
627
  "data-testid": "about-card-rows"
425
- }, fe = ["data-testid"], be = { class: "about-card-row-label" }, pe = { class: "about-card-row-text" }, ye = ["aria-label", "data-testid"], he = { class: "about-card-row-value" }, ge = { class: "about-card-row-text" }, me = {
628
+ }, Wt = ["data-testid"], Mt = { class: "about-card-row-label" }, Vt = { class: "about-card-row-text" }, jt = ["aria-label", "data-testid"], Gt = { class: "about-card-row-value" }, Ut = { class: "about-card-row-text" }, qt = {
426
629
  key: 3,
427
630
  class: "about-card-content",
428
631
  "data-testid": "about-card-content"
429
- }, ke = /* @__PURE__ */ Z({
632
+ }, Yt = /* @__PURE__ */ ue({
430
633
  __name: "AboutCard",
431
634
  props: {
432
635
  title: { default: "" },
@@ -435,91 +638,91 @@ const Ut = {
435
638
  rows: { default: () => [] },
436
639
  isLoading: { type: Boolean, default: !1 }
437
640
  },
438
- setup(t) {
439
- const s = k(() => t.rows.length || 4);
440
- return (e, a) => {
441
- const l = I("KSkeletonBox"), r = I("KTooltip"), u = I("KCard");
442
- return i(), _(u, {
641
+ setup(e) {
642
+ const l = w(() => e.rows.length || 4);
643
+ return (a, o) => {
644
+ const r = R("KSkeletonBox"), c = R("KTooltip"), v = R("KCard");
645
+ return i(), D(v, {
443
646
  class: "kong-ui-public-about-card",
444
- title: t.title,
445
- "title-tag": t.titleTag
446
- }, M({
447
- default: $(() => [
448
- e.$slots.description || t.description ? (i(), c("p", ce, [
449
- h(e.$slots, "description", {}, () => [
450
- A(P(t.description), 1)
647
+ title: e.title,
648
+ "title-tag": e.titleTag
649
+ }, ge({
650
+ default: T(() => [
651
+ a.$slots.description || e.description ? (i(), d("p", Ft, [
652
+ E(a.$slots, "description", {}, () => [
653
+ X(B(e.description), 1)
451
654
  ], !0)
452
- ])) : y("", !0),
453
- t.isLoading ? (i(), c("div", de, [
454
- (i(!0), c(N, null, R(s.value, (o) => (i(), _(l, {
455
- key: o,
655
+ ])) : m("", !0),
656
+ e.isLoading ? (i(), d("div", Ht, [
657
+ (i(!0), d(G, null, M(l.value, (n) => (i(), D(r, {
658
+ key: n,
456
659
  height: "2",
457
660
  width: "100"
458
661
  }))), 128))
459
- ])) : t.rows.length ? (i(), c("dl", ve, [
460
- (i(!0), c(N, null, R(t.rows, (o) => (i(), c("div", {
461
- key: o.key,
662
+ ])) : e.rows.length ? (i(), d("dl", xt, [
663
+ (i(!0), d(G, null, M(e.rows, (n) => (i(), d("div", {
664
+ key: n.key,
462
665
  class: "about-card-row",
463
- "data-testid": `about-card-row-${o.key}`
666
+ "data-testid": `about-card-row-${n.key}`
464
667
  }, [
465
- f("dt", be, [
466
- h(e.$slots, `label-${o.key}`, { row: o }, () => [
467
- f("span", pe, P(o.label), 1)
668
+ b("dt", Mt, [
669
+ E(a.$slots, `label-${n.key}`, { row: n }, () => [
670
+ b("span", Vt, B(n.label), 1)
468
671
  ], !0),
469
- o.tooltip ? (i(), _(r, {
672
+ n.tooltip ? (i(), D(c, {
470
673
  key: 0,
471
- text: o.tooltip
674
+ text: n.tooltip
472
675
  }, {
473
- default: $(() => [
474
- f("button", {
475
- "aria-label": o.tooltip,
676
+ default: T(() => [
677
+ b("button", {
678
+ "aria-label": n.tooltip,
476
679
  class: "about-card-row-tooltip-trigger",
477
- "data-testid": `about-card-row-${o.key}-tooltip`,
680
+ "data-testid": `about-card-row-${n.key}-tooltip`,
478
681
  type: "button"
479
682
  }, [
480
- D(v(Pt), {
481
- size: `var(--kui-icon-size-20, ${v(Et)})`
683
+ N(f(Ze), {
684
+ size: `var(--kui-icon-size-20, ${f(ot)})`
482
685
  }, null, 8, ["size"])
483
- ], 8, ye)
686
+ ], 8, jt)
484
687
  ]),
485
688
  _: 2
486
- }, 1032, ["text"])) : y("", !0)
689
+ }, 1032, ["text"])) : m("", !0)
487
690
  ]),
488
- f("dd", he, [
489
- h(e.$slots, `row-${o.key}`, { row: o }, () => [
490
- f("span", ge, P(o.value), 1)
691
+ b("dd", Gt, [
692
+ E(a.$slots, `row-${n.key}`, { row: n }, () => [
693
+ b("span", Ut, B(n.value), 1)
491
694
  ], !0)
492
695
  ])
493
- ], 8, fe))), 128))
494
- ])) : y("", !0),
495
- e.$slots.default ? (i(), c("div", me, [
496
- h(e.$slots, "default", {}, void 0, !0)
497
- ])) : y("", !0)
696
+ ], 8, Wt))), 128))
697
+ ])) : m("", !0),
698
+ a.$slots.default ? (i(), d("div", qt, [
699
+ E(a.$slots, "default", {}, void 0, !0)
700
+ ])) : m("", !0)
498
701
  ]),
499
702
  _: 2
500
703
  }, [
501
- e.$slots.title || t.title ? {
704
+ a.$slots.title || e.title ? {
502
705
  name: "title",
503
- fn: $(() => [
504
- h(e.$slots, "title", {}, () => [
505
- A(P(t.title), 1)
706
+ fn: T(() => [
707
+ E(a.$slots, "title", {}, () => [
708
+ X(B(e.title), 1)
506
709
  ], !0)
507
710
  ]),
508
711
  key: "0"
509
712
  } : void 0,
510
- e.$slots.actions ? {
713
+ a.$slots.actions ? {
511
714
  name: "actions",
512
- fn: $(() => [
513
- h(e.$slots, "actions", {}, void 0, !0)
715
+ fn: T(() => [
716
+ E(a.$slots, "actions", {}, void 0, !0)
514
717
  ]),
515
718
  key: "1"
516
719
  } : void 0
517
720
  ]), 1032, ["title", "title-tag"]);
518
721
  };
519
722
  }
520
- }), Ie = /* @__PURE__ */ J(ke, [["__scopeId", "data-v-0316c887"]]);
723
+ }), ta = /* @__PURE__ */ ce(Yt, [["__scopeId", "data-v-0316c887"]]);
521
724
  export {
522
- Ie as AboutCard,
523
- Ht as NEW_APPEARANCE_INJECTION_KEY,
524
- Ce as PageLayout
725
+ ta as AboutCard,
726
+ Ct as NEW_APPEARANCE_INJECTION_KEY,
727
+ ea as PageLayout
525
728
  };