@kong-ui-public/page-layout 1.2.4-pr.3950.d754871d7.0 → 1.3.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,4 +1,4 @@
1
- import { shallowRef as Ie, shallowReadonly as Be, getCurrentScope as Ne, onScopeDispose as Oe, toValue as te, watch as re, computed as w, getCurrentInstance as ze, onMounted as ye, defineComponent as ue, inject as ee, useTemplateRef as ie, ref as F, onBeforeUnmount as Ee, resolveComponent as R, openBlock as s, createElementBlock as d, createElementVNode as y, 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 b, nextTick as pe, provide as Fe, onUnmounted as He, createSlots as ge, normalizeProps as xe, guardReactiveProps as We } from "vue";
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
2
  import { useRouter as De, useRoute as Me } from "vue-router";
3
3
  import { createI18n as Ve, i18nTComponent as je } from "@kong-ui-public/i18n";
4
4
  import { ChevronDownIcon as Re, ChevronRightIcon as Ge, ArrowTopLeftIcon as Ue, StarFillIcon as qe, StarIcon as Ye, InfoIcon as Ze } from "@kong/icons";
@@ -16,24 +16,24 @@ function at() {
16
16
  // Translation component <i18n-t>
17
17
  };
18
18
  }
19
- const be = {
19
+ const me = {
20
20
  useI18n: at
21
21
  }, ot = "12px", ae = "16px", nt = "2px", Le = "16px";
22
- function st(e, l) {
23
- return Ne() ? (Oe(e, l), !0) : !1;
22
+ function it(e, r) {
23
+ return Ne() ? (Oe(e, r), !0) : !1;
24
24
  }
25
- const it = typeof window < "u" && typeof document < "u";
25
+ const st = typeof window < "u" && typeof document < "u";
26
26
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
27
  const J = () => {
28
28
  };
29
- function lt(e, l) {
29
+ function lt(e, r) {
30
30
  function a(...o) {
31
- return new Promise((r, c) => {
32
- Promise.resolve(e(() => l.apply(this, o), {
33
- fn: l,
31
+ return new Promise((l, c) => {
32
+ Promise.resolve(e(() => r.apply(this, o), {
33
+ fn: r,
34
34
  thisArg: this,
35
35
  args: o
36
- })).then(r).catch(c);
36
+ })).then(l).catch(c);
37
37
  });
38
38
  }
39
39
  return "cancel" in e && Object.assign(a, {
@@ -42,18 +42,18 @@ function lt(e, l) {
42
42
  isPending: e.isPending
43
43
  }), a;
44
44
  }
45
- function rt(e, l = {}) {
46
- let a, o, r = J, c = J;
47
- const v = Ie(!1), n = (h) => {
48
- clearTimeout(h), r(), r = J;
45
+ function rt(e, r = {}) {
46
+ let a, o, l = J, c = J;
47
+ const v = Ce(!1), n = (h) => {
48
+ clearTimeout(h), l(), l = J;
49
49
  };
50
- let m;
50
+ let y;
51
51
  return Object.assign((h) => {
52
- const p = te(e), C = te(l.maxWait);
53
- return a && n(a), p <= 0 || C !== void 0 && C <= 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, m = h, C && !o && (o = setTimeout(() => {
55
- a && n(a), o = void 0, v.value = !1, S(m());
56
- }, C)), a = setTimeout(() => {
52
+ const p = te(e), I = te(r.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
+ l = r.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
57
  o && n(o), o = void 0, v.value = !1, S(h());
58
58
  }, p);
59
59
  }));
@@ -65,53 +65,53 @@ function rt(e, l = {}) {
65
65
  if (v.value) {
66
66
  a && (clearTimeout(a), a = void 0), o && (clearTimeout(o), o = void 0), v.value = !1;
67
67
  const h = c;
68
- r = J, c = J, h(m());
68
+ l = J, c = J, h(y());
69
69
  }
70
70
  },
71
71
  isPending: Be(v)
72
72
  });
73
73
  }
74
- function ut(e, l = 200, a = {}) {
75
- return lt(rt(l, a), e);
74
+ function ut(e, r = 200, a = {}) {
75
+ return lt(rt(r, a), e);
76
76
  }
77
- const ct = it ? window : void 0;
77
+ const ct = st ? window : void 0;
78
78
  function Te(e) {
79
- var l;
79
+ var r;
80
80
  const a = te(e);
81
- return (l = a?.$el) !== null && l !== void 0 ? l : a;
81
+ return (r = a?.$el) !== null && r !== void 0 ? r : a;
82
82
  }
83
83
  // @__NO_SIDE_EFFECTS__
84
84
  function dt() {
85
- const e = Ie(!1), l = ze();
86
- return l && ye(() => {
85
+ const e = Ce(!1), r = ze();
86
+ return r && be(() => {
87
87
  e.value = !0;
88
- }, l), e;
88
+ }, r), e;
89
89
  }
90
90
  // @__NO_SIDE_EFFECTS__
91
91
  function vt(e) {
92
- const l = /* @__PURE__ */ dt();
93
- return w(() => (l.value, !!e()));
92
+ const r = /* @__PURE__ */ dt();
93
+ return w(() => (r.value, !!e()));
94
94
  }
95
- function Pe(e, l, a = {}) {
96
- const { window: o = ct, ...r } = a;
95
+ function Pe(e, r, a = {}) {
96
+ const { window: o = ct, ...l } = a;
97
97
  let c;
98
98
  const v = /* @__PURE__ */ vt(() => o && "ResizeObserver" in o), n = () => {
99
99
  c && (c.disconnect(), c = void 0);
100
- }, m = re(w(() => {
100
+ }, y = re(w(() => {
101
101
  const h = te(e);
102
102
  return Array.isArray(h) ? h.map((p) => Te(p)) : [Te(h)];
103
103
  }), (h) => {
104
104
  if (n(), v.value && o) {
105
- c = new ResizeObserver(l);
106
- for (const p of h) p && c.observe(p, r);
105
+ c = new ResizeObserver(r);
106
+ for (const p of h) p && c.observe(p, l);
107
107
  }
108
108
  }, {
109
109
  immediate: !0,
110
110
  flush: "post"
111
111
  }), k = () => {
112
- n(), m();
112
+ n(), y();
113
113
  };
114
- return st(k), {
114
+ return it(k), {
115
115
  isSupported: v,
116
116
  stop: k
117
117
  };
@@ -123,13 +123,13 @@ const ht = {
123
123
  }, ft = { key: 0 }, pt = ["aria-label"], gt = {
124
124
  key: 0,
125
125
  class: "layout-loader-container"
126
- }, yt = /* @__PURE__ */ ue({
126
+ }, bt = /* @__PURE__ */ ue({
127
127
  __name: "PageLayoutTabs",
128
128
  props: {
129
129
  tabs: { default: () => [] }
130
130
  },
131
131
  setup(e) {
132
- const { i18n: { t: l } } = be.useI18n(), a = De(), o = ee("app:navigateTo", null), r = (g) => {
132
+ const { i18n: { t: r } } = me.useI18n(), a = De(), o = ee("app:navigateTo", null), l = (g) => {
133
133
  if (typeof g.to != "string") {
134
134
  a.push(g.to);
135
135
  return;
@@ -139,91 +139,91 @@ const ht = {
139
139
  return;
140
140
  }
141
141
  o(g.to);
142
- }, c = ie("page-layout-tabs"), v = ie("page-layout-tabs-list"), n = F(e.tabs.length), m = F(!1), k = w(() => e.tabs.slice(0, n.value)), h = w(() => e.tabs.slice(n.value)), p = async () => {
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
143
  if (!c.value || !v.value)
144
144
  return;
145
- m.value = !1, n.value = e.tabs.length, await pe();
145
+ y.value = !1, n.value = e.tabs.length, await pe();
146
146
  const g = c.value?.getBoundingClientRect().width - parseInt(Le) * 2;
147
147
  let O = v.value?.getBoundingClientRect().width;
148
148
  if (!g || !O) {
149
- m.value = !0;
149
+ y.value = !0;
150
150
  return;
151
151
  }
152
152
  const P = 50;
153
153
  for (; O + P > g && n.value > 1; )
154
154
  n.value--, await pe(), O = v.value?.getBoundingClientRect().width || 0;
155
- m.value = !0;
155
+ y.value = !0;
156
156
  };
157
- let C = null;
157
+ let I = null;
158
158
  const S = () => {
159
- C && clearTimeout(C), C = setTimeout(() => {
159
+ I && clearTimeout(I), I = setTimeout(() => {
160
160
  p();
161
161
  }, 150);
162
162
  };
163
- return ye(() => {
163
+ return be(() => {
164
164
  p(), Pe(c, S);
165
165
  }), Ee(() => {
166
- C && clearTimeout(C);
166
+ I && clearTimeout(I);
167
167
  }), re(() => e.tabs, () => {
168
168
  p();
169
169
  }, { deep: !0 }), (g, O) => {
170
170
  const P = R("KDropdownItem"), H = R("KDropdown"), U = R("KSkeletonBox");
171
- return s(), d("nav", ht, [
172
- y("ul", {
171
+ return i(), d("nav", ht, [
172
+ b("ul", {
173
173
  ref: "page-layout-tabs-list",
174
- class: j({ "layout-computing": !m.value })
174
+ class: j({ "layout-computing": !y.value })
175
175
  }, [
176
- (s(!0), d(G, null, M(k.value, (i) => (s(), d("li", {
177
- key: `${i.key}-tab`
176
+ (i(!0), d(G, null, M(k.value, (s) => (i(), d("li", {
177
+ key: `${s.key}-tab`
178
178
  }, [
179
- (s(), D(fe(typeof i.to == "string" ? "a" : "router-link"), Se({ ref_for: !0 }, typeof i.to == "string" ? { href: i.to } : { to: i.to }, {
180
- "aria-current": i.active ? "page" : void 0,
181
- class: ["tab-link", { active: i.active }],
182
- "data-testid": i.dataTestId ? i.dataTestId : `page-layout-tab-${i.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}`,
183
183
  tabindex: "0",
184
- onClick: le((z) => r(i), ["prevent"]),
185
- onKeydown: Ae(le((z) => r(i), ["prevent"]), ["enter"])
184
+ onClick: le((z) => l(s), ["prevent"]),
185
+ onKeydown: Ae(le((z) => l(s), ["prevent"]), ["enter"])
186
186
  }), {
187
187
  default: T(() => [
188
- E(g.$slots, `tab-${i.key}`, { tab: i }, () => [
189
- X(B(i.label), 1)
188
+ E(g.$slots, `tab-${s.key}`, { tab: s }, () => [
189
+ X(B(s.label), 1)
190
190
  ], !0)
191
191
  ]),
192
192
  _: 2
193
193
  }, 1040, ["aria-current", "class", "data-testid", "onClick", "onKeydown"]))
194
194
  ]))), 128)),
195
- e.tabs.length > n.value ? (s(), d("li", ft, [
195
+ e.tabs.length > n.value ? (i(), d("li", ft, [
196
196
  N(H, { "kpop-attributes": {
197
197
  placement: "bottom-end",
198
198
  popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
199
199
  } }, {
200
200
  items: T(() => [
201
- (s(!0), d(G, null, M(h.value, (i) => (s(), D(P, {
202
- key: `${i.key}-dropdown-item`,
203
- "aria-current": i.active ? "page" : void 0,
204
- "data-testid": i.dataTestId ? i.dataTestId : `page-layout-tab-${i.key}`,
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}`,
205
205
  item: {
206
- label: i.label,
207
- value: i.key,
208
- to: i.to
206
+ label: s.label,
207
+ value: s.key,
208
+ to: s.to
209
209
  },
210
- selected: i.active
210
+ selected: s.active
211
211
  }, {
212
212
  default: T(() => [
213
- E(g.$slots, `tab-${i.key}`, { tab: i }, () => [
214
- X(B(i.label), 1)
213
+ E(g.$slots, `tab-${s.key}`, { tab: s }, () => [
214
+ X(B(s.label), 1)
215
215
  ], !0)
216
216
  ]),
217
217
  _: 2
218
218
  }, 1032, ["aria-current", "data-testid", "item", "selected"]))), 128))
219
219
  ]),
220
220
  default: T(() => [
221
- y("button", {
222
- "aria-label": f(l)("tabs.more_button.aria_label"),
223
- class: j(["tab-link", { active: h.value.find((i) => i.active) }]),
221
+ b("button", {
222
+ "aria-label": f(r)("tabs.more_button.aria_label"),
223
+ class: j(["tab-link", { active: h.value.find((s) => s.active) }]),
224
224
  "data-testid": "tabs-overflow-dropdown-button"
225
225
  }, [
226
- X(B(f(l)("tabs.more_button.label")) + " ", 1),
226
+ X(B(f(r)("tabs.more_button.label")) + " ", 1),
227
227
  N(f(Re), {
228
228
  decorative: "",
229
229
  size: `var(--kui-icon-size-30, ${f(ae)})`
@@ -232,11 +232,11 @@ const ht = {
232
232
  ]),
233
233
  _: 3
234
234
  })
235
- ])) : b("", !0)
235
+ ])) : m("", !0)
236
236
  ], 2),
237
- m.value ? b("", !0) : (s(), d("div", gt, [
238
- (s(), d(G, null, M(3, (i) => N(U, {
239
- key: `layout-loader-${i}`,
237
+ y.value ? m("", !0) : (i(), d("div", gt, [
238
+ (i(), d(G, null, M(3, (s) => N(U, {
239
+ key: `layout-loader-${s}`,
240
240
  height: "1",
241
241
  width: "5"
242
242
  })), 64))
@@ -244,12 +244,12 @@ const ht = {
244
244
  ], 512);
245
245
  };
246
246
  }
247
- }), ce = (e, l) => {
247
+ }), ce = (e, r) => {
248
248
  const a = e.__vccOpts || e;
249
- for (const [o, r] of l)
250
- a[o] = r;
249
+ for (const [o, l] of r)
250
+ a[o] = l;
251
251
  return a;
252
- }, bt = /* @__PURE__ */ ce(yt, [["__scopeId", "data-v-02891bc1"]]), mt = ["aria-label", "data-fit"], kt = {
252
+ }, mt = /* @__PURE__ */ ce(bt, [["__scopeId", "data-v-02891bc1"]]), yt = ["aria-label", "data-fit"], kt = {
253
253
  key: 0,
254
254
  "aria-hidden": "true",
255
255
  class: "anchor-ellipsis",
@@ -265,18 +265,18 @@ const ht = {
265
265
  anchors: { default: () => [] }
266
266
  },
267
267
  setup(e) {
268
- const { i18n: { t: l } } = be.useI18n(), a = ie("page-layout-anchor-navigation"), o = ie("page-layout-anchor-navigation-list"), r = F("all"), c = F(""), v = F([]), n = w(() => e.anchors.filter((t) => v.value.includes(t.key))), m = w(() => {
269
- const t = n.value.findIndex((u) => u.key === c.value);
268
+ const { i18n: { t: r } } = me.useI18n(), a = se("page-layout-anchor-navigation"), o = se("page-layout-anchor-navigation-list"), l = 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
270
  return t === -1 ? 0 : t;
271
271
  }), k = w(() => {
272
- const t = n.value, u = t.length, _ = m.value;
273
- if (r.value === "all")
272
+ const t = n.value, u = t.length, _ = y.value;
273
+ if (l.value === "all")
274
274
  return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
275
- if (r.value === "hidden")
275
+ if (l.value === "hidden")
276
276
  return { anchors: [], hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
277
- if (r.value === "active-only")
277
+ if (l.value === "active-only")
278
278
  return { anchors: t.slice(_, _ + 1), hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
279
- const $ = r.value === "window-3" ? 3 : 2;
279
+ const $ = l.value === "window-3" ? 3 : 2;
280
280
  if (u <= $)
281
281
  return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
282
282
  const x = _ < $ ? 0 : _ >= u - $ ? u - $ : _ - 1;
@@ -286,7 +286,7 @@ const ht = {
286
286
  hasTrailingEllipsis: x + $ < u,
287
287
  hasOverflowDropdown: !0
288
288
  };
289
- }), h = (t) => t.dataTestId ?? `page-layout-anchor-${t.key}`, p = F(null), C = () => {
289
+ }), h = (t) => t.dataTestId ?? `page-layout-anchor-${t.id.replace(/[^\w-]+/g, "-").replace(/^-+|-+$/g, "")}`, p = F(null), I = () => {
290
290
  let t = a.value?.parentElement ?? null;
291
291
  for (; t; ) {
292
292
  const { overflowY: u } = getComputedStyle(t);
@@ -298,24 +298,24 @@ const ht = {
298
298
  }, S = (t) => {
299
299
  if (t.element)
300
300
  return t.element.isConnected ? t.element : null;
301
- if (!t.selector)
302
- return null;
303
301
  const u = p.value ?? document;
304
302
  try {
305
- return u.querySelector(t.selector);
303
+ return u.querySelector(t.id) ?? u.querySelector(`#${CSS.escape(t.id)}`);
306
304
  } catch {
307
305
  return null;
308
306
  }
309
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;
310
- let i = 0;
308
+ let s = 0;
311
309
  const z = async () => {
312
- if (!n.value.length)
310
+ if (!n.value.length) {
311
+ l.value = "hidden";
313
312
  return;
314
- const t = ++i;
315
- if (r.value = "all", await pe(), t !== i || !a.value || !o.value)
313
+ }
314
+ const t = ++s;
315
+ if (l.value = "all", await pe(), t !== s || !a.value || !o.value)
316
316
  return;
317
317
  const u = a.value.getBoundingClientRect().width, _ = o.value.getBoundingClientRect().width;
318
- 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");
318
+ u <= 0 || _ <= 0 || _ + he <= u || (H(3) <= u ? l.value = "window-3" : H(2) <= u ? l.value = "window-2" : U() <= u ? l.value = "active-only" : l.value = "hidden");
319
319
  };
320
320
  let V = null;
321
321
  Pe(a, () => {
@@ -341,17 +341,17 @@ const ht = {
341
341
  scrollHeight: t ? t.scrollHeight : document.documentElement.scrollHeight
342
342
  };
343
343
  }, Q = () => {
344
- const { top: t, scrollTop: u, clientHeight: _, scrollHeight: $ } = de(), x = g(), I = [];
344
+ const { top: t, scrollTop: u, clientHeight: _, scrollHeight: $ } = de(), x = g(), C = [];
345
345
  let A = null, ne = null;
346
346
  for (const W of e.anchors) {
347
- const se = S(W);
348
- se && (I.push(W.key), ne = W.key, A ??= W.key, se.getBoundingClientRect().top - t <= (W.offset ?? x) + 8 && (A = W.key));
347
+ const ie = S(W);
348
+ ie && (C.push(W.id), ne = W.id, A ??= W.id, ie.getBoundingClientRect().top - t <= (W.offset ?? x) + 8 && (A = W.id));
349
349
  }
350
- const we = I.length !== v.value.length || I.some((W, se) => W !== v.value[se]);
351
- return we && (v.value = I), q || (ne && u > 0 && u + _ >= $ - 2 && (A = ne), c.value = A ?? ""), we;
350
+ const we = C.length !== v.value.length || C.some((W, ie) => W !== v.value[ie]);
351
+ return we && (v.value = C), q || (ne && u > 0 && u + _ >= $ - 2 && (A = ne), c.value = A ?? ""), we;
352
352
  };
353
353
  let ve = !1;
354
- const me = () => {
354
+ const ye = () => {
355
355
  ve || (ve = !0, requestAnimationFrame(() => {
356
356
  ve = !1, Q() && z();
357
357
  }));
@@ -359,7 +359,7 @@ const ht = {
359
359
  const u = S(t);
360
360
  if (!u)
361
361
  return;
362
- c.value = t.key, oe(t.key);
362
+ c.value = t.id, oe(t.id);
363
363
  const _ = t.offset ?? g(), $ = p.value;
364
364
  if ($) {
365
365
  $.scrollTo({ behavior: "smooth", top: u.getBoundingClientRect().top - $.getBoundingClientRect().top + $.scrollTop - _ });
@@ -369,53 +369,53 @@ const ht = {
369
369
  }, Ke = (t, u) => {
370
370
  u(), ke(t);
371
371
  };
372
- return ye(() => {
373
- p.value = C(), Z().addEventListener("scroll", me, { passive: !0 }), Q(), z(), requestAnimationFrame(() => {
372
+ return be(() => {
373
+ p.value = I(), Z().addEventListener("scroll", ye, { passive: !0 }), Q(), z(), requestAnimationFrame(() => {
374
374
  Q(), z();
375
375
  });
376
376
  }), Ee(() => {
377
- Z().removeEventListener("scroll", me), L(), V && clearTimeout(V);
377
+ Z().removeEventListener("scroll", ye), L(), V && clearTimeout(V);
378
378
  }), re(() => e.anchors, () => {
379
- e.anchors.some((t) => t.key === c.value) || (c.value = ""), Q(), z();
379
+ e.anchors.some((t) => t.id === c.value) || (c.value = ""), Q(), z();
380
380
  }, { deep: !0 }), (t, u) => {
381
381
  const _ = R("KButton"), $ = R("KDropdownItem"), x = R("KDropdown");
382
- return s(), d("nav", {
382
+ return i(), d("nav", {
383
383
  ref: "page-layout-anchor-navigation",
384
- "aria-label": f(l)("anchor_navigation.aria_label"),
384
+ "aria-label": f(r)("anchor_navigation.aria_label"),
385
385
  class: "page-layout-anchor-navigation",
386
- "data-fit": r.value,
386
+ "data-fit": l.value,
387
387
  "data-testid": "page-layout-anchor-navigation"
388
388
  }, [
389
- y("ul", {
389
+ b("ul", {
390
390
  ref: "page-layout-anchor-navigation-list",
391
- class: j({ "layout-hidden": r.value === "hidden" })
391
+ class: j({ "layout-hidden": l.value === "hidden" })
392
392
  }, [
393
- k.value.hasLeadingEllipsis ? (s(), d("li", kt, " … ")) : b("", !0),
394
- (s(!0), d(G, null, M(k.value.anchors, (I) => (s(), d("li", {
395
- key: `${I.key}-anchor`
393
+ k.value.hasLeadingEllipsis ? (i(), d("li", kt, " … ")) : m("", !0),
394
+ (i(!0), d(G, null, M(k.value.anchors, (C) => (i(), d("li", {
395
+ key: `${C.id}-anchor`
396
396
  }, [
397
- y("button", {
398
- "aria-current": I.key === c.value ? "location" : void 0,
399
- class: j(["anchor-link", { active: I.key === c.value }]),
400
- "data-testid": h(I),
401
- title: I.label,
397
+ b("button", {
398
+ "aria-current": C.id === c.value ? "location" : void 0,
399
+ class: j(["anchor-link", { active: C.id === c.value }]),
400
+ "data-testid": h(C),
401
+ title: C.label,
402
402
  type: "button",
403
- onClick: (A) => ke(I)
404
- }, B(I.label), 11, wt)
403
+ onClick: (A) => ke(C)
404
+ }, B(C.label), 11, wt)
405
405
  ]))), 128)),
406
- k.value.hasTrailingEllipsis ? (s(), d("li", Tt, " … ")) : b("", !0),
407
- k.value.hasOverflowDropdown ? (s(), d("li", _t, [
406
+ k.value.hasTrailingEllipsis ? (i(), d("li", Tt, " … ")) : m("", !0),
407
+ k.value.hasOverflowDropdown ? (i(), d("li", _t, [
408
408
  N(x, { "kpop-attributes": {
409
409
  placement: "bottom-end",
410
410
  popoverElementAttributes: { "data-testid": "anchor-navigation-overflow-dropdown-popover" }
411
411
  } }, {
412
- items: T(({ closeDropdown: I }) => [
413
- (s(!0), d(G, null, M(n.value, (A) => (s(), D($, {
414
- key: `${A.key}-dropdown-item`,
415
- "aria-current": A.key === c.value ? "location" : void 0,
412
+ items: T(({ closeDropdown: C }) => [
413
+ (i(!0), d(G, null, M(n.value, (A) => (i(), D($, {
414
+ key: `${A.id}-dropdown-item`,
415
+ "aria-current": A.id === c.value ? "location" : void 0,
416
416
  "data-testid": h(A),
417
- selected: A.key === c.value,
418
- onClick: (ne) => Ke(A, I)
417
+ selected: A.id === c.value,
418
+ onClick: (ne) => Ke(A, C)
419
419
  }, {
420
420
  default: T(() => [
421
421
  X(B(A.label), 1)
@@ -426,7 +426,7 @@ const ht = {
426
426
  default: T(() => [
427
427
  N(_, {
428
428
  appearance: "tertiary",
429
- "aria-label": f(l)("anchor_navigation.more_button.aria_label"),
429
+ "aria-label": f(r)("anchor_navigation.more_button.aria_label"),
430
430
  class: "anchor-overflow-button",
431
431
  "data-testid": "anchor-navigation-overflow-dropdown-button",
432
432
  icon: "",
@@ -443,12 +443,12 @@ const ht = {
443
443
  ]),
444
444
  _: 1
445
445
  })
446
- ])) : b("", !0)
446
+ ])) : m("", !0)
447
447
  ], 2)
448
- ], 8, mt);
448
+ ], 8, yt);
449
449
  };
450
450
  }
451
- }), Ct = /* @__PURE__ */ ce($t, [["__scopeId", "data-v-6ab1d1c1"]]), Ce = /* @__PURE__ */ Symbol("nested-page-layout-detection"), It = "page-layout:new-appearance", Et = {
451
+ }), It = /* @__PURE__ */ ce($t, [["__scopeId", "data-v-f9770830"]]), Ie = /* @__PURE__ */ Symbol("nested-page-layout-detection"), Ct = "page-layout:new-appearance", Et = {
452
452
  key: 0,
453
453
  class: "page-layout-header",
454
454
  "data-testid": "page-layout-header"
@@ -476,29 +476,29 @@ const ht = {
476
476
  pageShortcutData: {}
477
477
  },
478
478
  setup(e) {
479
- const l = ee("app:navigateTo", null), a = ee(It, null), o = ee("app:pageShortcutsContext", null), { i18n: { t: r } } = be.useI18n(), c = De(), v = Me(), n = w(() => !!(e.tabs && e.tabs.length)), m = 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), C = 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 () => {
479
+ const r = ee("app:navigateTo", null), a = ee(Ct, null), o = ee("app:pageShortcutsContext", null), { i18n: { t: l } } = 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 () => {
480
480
  if (e.backTo) {
481
481
  if (typeof e.backTo == "object") {
482
482
  c.push(e.backTo);
483
483
  return;
484
484
  }
485
- if (typeof l != "function") {
485
+ if (typeof r != "function") {
486
486
  window.location.href = e.backTo;
487
487
  return;
488
488
  }
489
- await l(e.backTo);
489
+ await r(e.backTo);
490
490
  }
491
491
  }, P = F(0), H = w(() => P.value > 0);
492
- Fe(Ce, () => (P.value++, () => {
492
+ Fe(Ie, () => (P.value++, () => {
493
493
  P.value--;
494
494
  }));
495
- const U = ee(Ce, null), i = F(null);
496
- typeof U == "function" && (i.value = U());
495
+ const U = ee(Ie, null), s = F(null);
496
+ typeof U == "function" && (s.value = U());
497
497
  const z = () => {
498
498
  o.onFavoriteToggle({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v.fullPath });
499
499
  };
500
500
  He(() => {
501
- i.value?.();
501
+ s.value?.();
502
502
  });
503
503
  const V = ut(() => {
504
504
  !H.value && p.value && o && "onEntityPageVisit" in o && typeof o.onEntityPageVisit == "function" && (o.onEntityPageVisit({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v?.fullPath }), S.value++);
@@ -507,14 +507,14 @@ const ht = {
507
507
  V();
508
508
  }, { immediate: !0, deep: !0 }), (K, q) => {
509
509
  const Y = R("KBreadcrumbs"), Z = R("KTooltip"), L = R("router-view");
510
- return s(), d("div", {
510
+ return i(), d("div", {
511
511
  class: j(["kong-ui-public-page-layout", { "new-appearance": k.value }]),
512
512
  "data-testid": "kong-ui-public-page-layout"
513
513
  }, [
514
- H.value ? b("", !0) : (s(), d("div", Et, [
515
- y("div", St, [
516
- y("div", At, [
517
- e.breadcrumbs && e.breadcrumbs.length ? (s(), D(Y, {
514
+ H.value ? m("", !0) : (i(), d("div", Et, [
515
+ b("div", St, [
516
+ b("div", At, [
517
+ e.breadcrumbs && e.breadcrumbs.length ? (i(), D(Y, {
518
518
  key: 0,
519
519
  class: "header-breadcrumbs",
520
520
  "data-testid": "page-layout-breadcrumbs",
@@ -528,10 +528,10 @@ const ht = {
528
528
  ]),
529
529
  key: "0"
530
530
  } : void 0
531
- ]), 1032, ["items"])) : b("", !0),
532
- y("div", Dt, [
533
- e.backTo && !k.value ? (s(), D(fe(m.value ? "a" : "router-link"), Se({ key: 0 }, m.value ? { href: e.backTo } : { to: e.backTo }, {
534
- "aria-label": f(r)("back_button"),
531
+ ]), 1032, ["items"])) : m("", !0),
532
+ b("div", Dt, [
533
+ e.backTo && !k.value ? (i(), D(fe(y.value ? "a" : "router-link"), Se({ key: 0 }, y.value ? { href: e.backTo } : { to: e.backTo }, {
534
+ "aria-label": f(l)("back_button"),
535
535
  class: "navigate-back",
536
536
  "data-testid": "page-layout-navigate-back",
537
537
  tabindex: "0",
@@ -545,29 +545,29 @@ const ht = {
545
545
  }, null, 8, ["size"])
546
546
  ]),
547
547
  _: 1
548
- }, 16, ["aria-label", "onKeydown"])) : b("", !0),
549
- e.title || K.$slots.title ? (s(), d("span", Rt, [
548
+ }, 16, ["aria-label", "onKeydown"])) : m("", !0),
549
+ e.title || K.$slots.title ? (i(), d("span", Rt, [
550
550
  E(K.$slots, "title", {}, () => [
551
- y("h1", Lt, B(e.title), 1)
551
+ b("h1", Lt, B(e.title), 1)
552
552
  ], !0)
553
- ])) : b("", !0),
554
- C.value ? (s(), d("div", {
553
+ ])) : m("", !0),
554
+ I.value ? (i(), d("div", {
555
555
  key: S.value,
556
556
  class: "favorite-button-container"
557
557
  }, [
558
558
  N(Z, {
559
559
  placement: "right",
560
- text: g.value ? f(r)("favorite_button.remove_shortcut") : f(r)("favorite_button.save_shortcut")
560
+ text: g.value ? f(l)("favorite_button.remove_shortcut") : f(l)("favorite_button.save_shortcut")
561
561
  }, {
562
562
  default: T(() => [
563
- y("button", {
564
- "aria-label": g.value ? f(r)("favorite_button.remove_shortcut") : f(r)("favorite_button.save_shortcut"),
563
+ b("button", {
564
+ "aria-label": g.value ? f(l)("favorite_button.remove_shortcut") : f(l)("favorite_button.save_shortcut"),
565
565
  class: j(["favorite-button", { active: g.value }]),
566
566
  "data-testid": "page-layout-favorite-button",
567
567
  type: "button",
568
568
  onClick: z
569
569
  }, [
570
- (s(), D(fe(g.value ? f(qe) : f(Ye)), {
570
+ (i(), D(fe(g.value ? f(qe) : f(Ye)), {
571
571
  decorative: "",
572
572
  size: `var(--kui-icon-size-30, ${f(ae)})`
573
573
  }, null, 8, ["size"]))
@@ -575,22 +575,22 @@ const ht = {
575
575
  ]),
576
576
  _: 1
577
577
  }, 8, ["text"])
578
- ])) : b("", !0),
579
- K.$slots["title-after"] ? (s(), d("div", Kt, [
578
+ ])) : m("", !0),
579
+ K.$slots["title-after"] ? (i(), d("div", Kt, [
580
580
  E(K.$slots, "title-after", {}, void 0, !0)
581
- ])) : b("", !0)
581
+ ])) : m("", !0)
582
582
  ])
583
583
  ]),
584
- h.value ? (s(), D(Ct, {
584
+ h.value ? (i(), D(It, {
585
585
  key: 0,
586
586
  anchors: e.anchors
587
- }, null, 8, ["anchors"])) : b("", !0),
588
- y("div", Bt, [
587
+ }, null, 8, ["anchors"])) : m("", !0),
588
+ b("div", Bt, [
589
589
  E(K.$slots, "actions", {}, void 0, !0),
590
- q[0] || (q[0] = y("div", { "data-teleport-target": "ask-kai" }, null, -1))
590
+ q[0] || (q[0] = b("div", { "data-teleport-target": "ask-kai" }, null, -1))
591
591
  ])
592
592
  ]),
593
- n.value ? (s(), D(bt, {
593
+ n.value ? (i(), D(mt, {
594
594
  key: 0,
595
595
  tabs: e.tabs
596
596
  }, ge({ _: 2 }, [
@@ -600,16 +600,16 @@ const ht = {
600
600
  E(K.$slots, `tab-${oe.key}`, xe(We(de)), void 0, !0)
601
601
  ])
602
602
  }))
603
- ]), 1032, ["tabs"])) : b("", !0)
603
+ ]), 1032, ["tabs"])) : m("", !0)
604
604
  ])),
605
- y("div", {
605
+ b("div", {
606
606
  class: j(["page-layout-content-container", { "has-nested-page-layout": H.value }])
607
607
  }, [
608
- k.value && K.$slots.aside ? (s(), d("div", Nt, [
608
+ k.value && K.$slots.aside ? (i(), d("div", Nt, [
609
609
  E(K.$slots, "aside", {}, void 0, !0)
610
- ])) : b("", !0),
611
- y("div", Ot, [
612
- n.value ? (s(), D(L, { key: 0 })) : E(K.$slots, "default", {}, void 0, !0, 1)
610
+ ])) : m("", !0),
611
+ b("div", Ot, [
612
+ n.value ? (i(), D(L, { key: 0 })) : E(K.$slots, "default", {}, void 0, !0, 1)
613
613
  ])
614
614
  ], 2)
615
615
  ], 2);
@@ -641,42 +641,42 @@ const ht = {
641
641
  isLoading: { type: Boolean, default: !1 }
642
642
  },
643
643
  setup(e) {
644
- const l = w(() => e.rows.length || 4);
644
+ const r = w(() => e.rows.length || 4);
645
645
  return (a, o) => {
646
- const r = R("KSkeletonBox"), c = R("KTooltip"), v = R("KCard");
647
- return s(), D(v, {
646
+ const l = R("KSkeletonBox"), c = R("KTooltip"), v = R("KCard");
647
+ return i(), D(v, {
648
648
  class: "kong-ui-public-about-card",
649
649
  title: e.title,
650
650
  "title-tag": e.titleTag
651
651
  }, ge({
652
652
  default: T(() => [
653
- a.$slots.description || e.description ? (s(), d("p", Ft, [
653
+ a.$slots.description || e.description ? (i(), d("p", Ft, [
654
654
  E(a.$slots, "description", {}, () => [
655
655
  X(B(e.description), 1)
656
656
  ], !0)
657
- ])) : b("", !0),
658
- e.isLoading ? (s(), d("div", Ht, [
659
- (s(!0), d(G, null, M(l.value, (n) => (s(), D(r, {
657
+ ])) : m("", !0),
658
+ e.isLoading ? (i(), d("div", Ht, [
659
+ (i(!0), d(G, null, M(r.value, (n) => (i(), D(l, {
660
660
  key: n,
661
661
  height: "2",
662
662
  width: "100"
663
663
  }))), 128))
664
- ])) : e.rows.length ? (s(), d("dl", xt, [
665
- (s(!0), d(G, null, M(e.rows, (n) => (s(), d("div", {
664
+ ])) : e.rows.length ? (i(), d("dl", xt, [
665
+ (i(!0), d(G, null, M(e.rows, (n) => (i(), d("div", {
666
666
  key: n.key,
667
667
  class: "about-card-row",
668
668
  "data-testid": `about-card-row-${n.key}`
669
669
  }, [
670
- y("dt", Mt, [
670
+ b("dt", Mt, [
671
671
  E(a.$slots, `label-${n.key}`, { row: n }, () => [
672
- y("span", Vt, B(n.label), 1)
672
+ b("span", Vt, B(n.label), 1)
673
673
  ], !0),
674
- n.tooltip ? (s(), D(c, {
674
+ n.tooltip ? (i(), D(c, {
675
675
  key: 0,
676
676
  text: n.tooltip
677
677
  }, {
678
678
  default: T(() => [
679
- y("button", {
679
+ b("button", {
680
680
  "aria-label": n.tooltip,
681
681
  class: "about-card-row-tooltip-trigger",
682
682
  "data-testid": `about-card-row-${n.key}-tooltip`,
@@ -688,18 +688,18 @@ const ht = {
688
688
  ], 8, jt)
689
689
  ]),
690
690
  _: 2
691
- }, 1032, ["text"])) : b("", !0)
691
+ }, 1032, ["text"])) : m("", !0)
692
692
  ]),
693
- y("dd", Gt, [
693
+ b("dd", Gt, [
694
694
  E(a.$slots, `row-${n.key}`, { row: n }, () => [
695
- y("span", Ut, B(n.value), 1)
695
+ b("span", Ut, B(n.value), 1)
696
696
  ], !0)
697
697
  ])
698
698
  ], 8, Wt))), 128))
699
- ])) : b("", !0),
700
- a.$slots.default ? (s(), d("div", qt, [
699
+ ])) : m("", !0),
700
+ a.$slots.default ? (i(), d("div", qt, [
701
701
  E(a.$slots, "default", {}, void 0, !0)
702
- ])) : b("", !0)
702
+ ])) : m("", !0)
703
703
  ]),
704
704
  _: 2
705
705
  }, [
@@ -725,6 +725,6 @@ const ht = {
725
725
  }), ta = /* @__PURE__ */ ce(Yt, [["__scopeId", "data-v-0316c887"]]);
726
726
  export {
727
727
  ta as AboutCard,
728
- It as NEW_APPEARANCE_INJECTION_KEY,
728
+ Ct as NEW_APPEARANCE_INJECTION_KEY,
729
729
  ea as PageLayout
730
730
  };
@@ -1 +1 @@
1
- (function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C["kong-ui-public-page-layout"]={},C.Vue,C.VueRouter,C["kong-ui-public-i18n"],C.KongIcons))})(this,(function(C,e,q,J,L){"use strict";const re={back_button:"Go back",favorite_button:{save_shortcut:"Save page to shortcuts",remove_shortcut:"Remove page from shortcuts"},tabs:{more_button:{label:"More",aria_label:"More tabs"}},anchor_navigation:{aria_label:"Page sections",more_button:{aria_label:"More page sections"}}};function se(){const t=J.createI18n("en-us",re);return{i18n:t,i18nT:J.i18nTComponent(t)}}const G={useI18n:se},ce="12px",O="16px",de="2px",Z="16px";function ue(t,r){return e.getCurrentScope()?(e.onScopeDispose(t,r),!0):!1}const pe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const A=()=>{};function me(t,r){function n(...a){return new Promise((s,d)=>{Promise.resolve(t(()=>r.apply(this,a),{fn:r,thisArg:this,args:a})).then(s).catch(d)})}return"cancel"in t&&Object.assign(n,{cancel:t.cancel,flush:t.flush,isPending:t.isPending}),n}function fe(t,r={}){let n,a,s=A,d=A;const u=e.shallowRef(!1),l=p=>{clearTimeout(p),s(),s=A};let h;return Object.assign(p=>{const m=e.toValue(t),b=e.toValue(r.maxWait);return n&&l(n),m<=0||b!==void 0&&b<=0?(a&&(l(a),a=void 0),u.value=!1,Promise.resolve(p())):(u.value=!0,new Promise((B,f)=>{s=r.rejectOnCancel?f:B,d=B,h=p,b&&!a&&(a=setTimeout(()=>{n&&l(n),a=void 0,u.value=!1,B(h())},b)),n=setTimeout(()=>{a&&l(a),a=void 0,u.value=!1,B(p())},m)}))},{cancel:()=>{n&&(l(n),n=void 0),a&&(l(a),a=void 0),u.value=!1,d=A},flush:()=>{if(u.value){n&&(clearTimeout(n),n=void 0),a&&(clearTimeout(a),a=void 0),u.value=!1;const p=d;s=A,d=A,p(h())}},isPending:e.shallowReadonly(u)})}function he(t,r=200,n={}){return me(fe(r,n),t)}const ge=pe?window:void 0;function X(t){var r;const n=e.toValue(t);return(r=n?.$el)!==null&&r!==void 0?r:n}function ke(){const t=e.shallowRef(!1),r=e.getCurrentInstance();return r&&e.onMounted(()=>{t.value=!0},r),t}function ye(t){const r=ke();return e.computed(()=>(r.value,!!t()))}function Q(t,r,n={}){const{window:a=ge,...s}=n;let d;const u=ye(()=>a&&"ResizeObserver"in a),l=()=>{d&&(d.disconnect(),d=void 0)},h=e.watch(e.computed(()=>{const p=e.toValue(t);return Array.isArray(p)?p.map(m=>X(m)):[X(p)]}),p=>{if(l(),u.value&&a){d=new ResizeObserver(r);for(const m of p)m&&d.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{l(),h()};return ue(g),{isSupported:u,stop:g}}const be={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},we={key:0},Ce=["aria-label"],Be={key:0,class:"layout-loader-container"},Ee=e.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(t){const{i18n:{t:r}}=G.useI18n(),n=q.useRouter(),a=e.inject("app:navigateTo",null),s=f=>{if(typeof f.to!="string"){n.push(f.to);return}if(typeof a!="function"){window.location.href=f.to;return}a(f.to)},d=e.useTemplateRef("page-layout-tabs"),u=e.useTemplateRef("page-layout-tabs-list"),l=e.ref(t.tabs.length),h=e.ref(!1),g=e.computed(()=>t.tabs.slice(0,l.value)),p=e.computed(()=>t.tabs.slice(l.value)),m=async()=>{if(!d.value||!u.value)return;h.value=!1,l.value=t.tabs.length,await e.nextTick();const f=d.value?.getBoundingClientRect().width-parseInt(Z)*2;let $=u.value?.getBoundingClientRect().width;if(!f||!$){h.value=!0;return}const _=50;for(;$+_>f&&l.value>1;)l.value--,await e.nextTick(),$=u.value?.getBoundingClientRect().width||0;h.value=!0};let b=null;const B=()=>{b&&clearTimeout(b),b=setTimeout(()=>{m()},150)};return e.onMounted(()=>{m(),Q(d,B)}),e.onBeforeUnmount(()=>{b&&clearTimeout(b)}),e.watch(()=>t.tabs,()=>{m()},{deep:!0}),(f,$)=>{const _=e.resolveComponent("KDropdownItem"),V=e.resolveComponent("KDropdown"),P=e.resolveComponent("KSkeletonBox");return e.openBlock(),e.createElementBlock("nav",be,[e.createElementVNode("ul",{ref:"page-layout-tabs-list",class:e.normalizeClass({"layout-computing":!h.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,i=>(e.openBlock(),e.createElementBlock("li",{key:`${i.key}-tab`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(typeof i.to=="string"?"a":"router-link"),e.mergeProps({ref_for:!0},typeof i.to=="string"?{href:i.to}:{to:i.to},{"aria-current":i.active?"page":void 0,class:["tab-link",{active:i.active}],"data-testid":i.dataTestId?i.dataTestId:`page-layout-tab-${i.key}`,tabindex:"0",onClick:e.withModifiers(S=>s(i),["prevent"]),onKeydown:e.withKeys(e.withModifiers(S=>s(i),["prevent"]),["enter"])}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,`tab-${i.key}`,{tab:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1040,["aria-current","class","data-testid","onClick","onKeydown"]))]))),128)),t.tabs.length>l.value?(e.openBlock(),e.createElementBlock("li",we,[e.createVNode(V,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,i=>(e.openBlock(),e.createBlock(_,{key:`${i.key}-dropdown-item`,"aria-current":i.active?"page":void 0,"data-testid":i.dataTestId?i.dataTestId:`page-layout-tab-${i.key}`,item:{label:i.label,value:i.key,to:i.to},selected:i.active},{default:e.withCtx(()=>[e.renderSlot(f.$slots,`tab-${i.key}`,{tab:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1032,["aria-current","data-testid","item","selected"]))),128))]),default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":e.unref(r)("tabs.more_button.aria_label"),class:e.normalizeClass(["tab-link",{active:p.value.find(i=>i.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[e.createTextVNode(e.toDisplayString(e.unref(r)("tabs.more_button.label"))+" ",1),e.createVNode(e.unref(L.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])],10,Ce)]),_:3})])):e.createCommentVNode("",!0)],2),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,i=>e.createVNode(P,{key:`layout-loader-${i}`,height:"1",width:"5"})),64))]))],512)}}}),M=(t,r)=>{const n=t.__vccOpts||t;for(const[a,s]of r)n[a]=s;return n},Te=M(Ee,[["__scopeId","data-v-02891bc1"]]),_e=["aria-label","data-fit"],Ne={key:0,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-leading-ellipsis"},$e=["aria-current","data-testid","title","onClick"],Se={key:1,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-trailing-ellipsis"},Ve={key:2},ee=140,te=22,U=16,Ie=M(e.defineComponent({__name:"PageLayoutAnchorNavigation",props:{anchors:{default:()=>[]}},setup(t){const{i18n:{t:r}}=G.useI18n(),n=e.useTemplateRef("page-layout-anchor-navigation"),a=e.useTemplateRef("page-layout-anchor-navigation-list"),s=e.ref("all"),d=e.ref(""),u=e.ref([]),l=e.computed(()=>t.anchors.filter(o=>u.value.includes(o.key))),h=e.computed(()=>{const o=l.value.findIndex(c=>c.key===d.value);return o===-1?0:o}),g=e.computed(()=>{const o=l.value,c=o.length,k=h.value;if(s.value==="all")return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="hidden")return{anchors:[],hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="active-only")return{anchors:o.slice(k,k+1),hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const y=s.value==="window-3"?3:2;if(c<=y)return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const I=k<y?0:k>=c-y?c-y:k-1;return{anchors:o.slice(I,I+y),hasLeadingEllipsis:I>0,hasTrailingEllipsis:I+y<c,hasOverflowDropdown:!0}}),p=o=>o.dataTestId??`page-layout-anchor-${o.key}`,m=e.ref(null),b=()=>{let o=n.value?.parentElement??null;for(;o;){const{overflowY:c}=getComputedStyle(o);if(c==="auto"||c==="scroll"||c==="overlay")return o;o=o.parentElement}return null},B=o=>{if(o.element)return o.element.isConnected?o.element:null;if(!o.selector)return null;const c=m.value??document;try{return c.querySelector(o.selector)}catch{return null}},f=()=>(n.value?.closest(".page-layout-header")?.getBoundingClientRect().height??0)+parseInt(Z,10),$=parseInt(O,10),_=parseInt(de,10),V=o=>o*ee+2*$+te+(o+2)*_+U,P=()=>ee+te+_+U;let i=0;const S=async()=>{if(!l.value.length)return;const o=++i;if(s.value="all",await e.nextTick(),o!==i||!n.value||!a.value)return;const c=n.value.getBoundingClientRect().width,k=a.value.getBoundingClientRect().width;c<=0||k<=0||k+U<=c||(V(3)<=c?s.value="window-3":V(2)<=c?s.value="window-2":P()<=c?s.value="active-only":s.value="hidden")};let R=null;Q(n,()=>{R&&clearTimeout(R),R=setTimeout(()=>{F(),S()},150)});let K=null,x=null;const z=()=>m.value??window,T=()=>{K=null,x&&(clearTimeout(x),x=null);const o=z();o.removeEventListener("scrollend",T),o.removeEventListener("wheel",T),o.removeEventListener("touchstart",T)},H=o=>{T(),K=o;const c=z();c.addEventListener("scrollend",T,{once:!0}),c.addEventListener("wheel",T,{passive:!0}),c.addEventListener("touchstart",T,{passive:!0}),x=setTimeout(T,1e3)},Y=()=>{const o=m.value;return{top:o?o.getBoundingClientRect().top:0,scrollTop:o?o.scrollTop:window.scrollY,clientHeight:o?o.clientHeight:window.innerHeight,scrollHeight:o?o.scrollHeight:document.documentElement.scrollHeight}},F=()=>{const{top:o,scrollTop:c,clientHeight:k,scrollHeight:y}=Y(),I=f(),w=[];let E=null,j=null;for(const D of t.anchors){const W=B(D);W&&(w.push(D.key),j=D.key,E??=D.key,W.getBoundingClientRect().top-o<=(D.offset??I)+8&&(E=D.key))}const ie=w.length!==u.value.length||w.some((D,W)=>D!==u.value[W]);return ie&&(u.value=w),K||(j&&c>0&&c+k>=y-2&&(E=j),d.value=E??""),ie};let v=!1;const ae=()=>{v||(v=!0,requestAnimationFrame(()=>{v=!1,F()&&S()}))},le=o=>{const c=B(o);if(!c)return;d.value=o.key,H(o.key);const k=o.offset??f(),y=m.value;if(y){y.scrollTo({behavior:"smooth",top:c.getBoundingClientRect().top-y.getBoundingClientRect().top+y.scrollTop-k});return}window.scrollTo({behavior:"smooth",top:c.getBoundingClientRect().top+window.scrollY-k})},et=(o,c)=>{c(),le(o)};return e.onMounted(()=>{m.value=b(),z().addEventListener("scroll",ae,{passive:!0}),F(),S(),requestAnimationFrame(()=>{F(),S()})}),e.onBeforeUnmount(()=>{z().removeEventListener("scroll",ae),T(),R&&clearTimeout(R)}),e.watch(()=>t.anchors,()=>{t.anchors.some(o=>o.key===d.value)||(d.value=""),F(),S()},{deep:!0}),(o,c)=>{const k=e.resolveComponent("KButton"),y=e.resolveComponent("KDropdownItem"),I=e.resolveComponent("KDropdown");return e.openBlock(),e.createElementBlock("nav",{ref:"page-layout-anchor-navigation","aria-label":e.unref(r)("anchor_navigation.aria_label"),class:"page-layout-anchor-navigation","data-fit":s.value,"data-testid":"page-layout-anchor-navigation"},[e.createElementVNode("ul",{ref:"page-layout-anchor-navigation-list",class:e.normalizeClass({"layout-hidden":s.value==="hidden"})},[g.value.hasLeadingEllipsis?(e.openBlock(),e.createElementBlock("li",Ne," … ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.anchors,w=>(e.openBlock(),e.createElementBlock("li",{key:`${w.key}-anchor`},[e.createElementVNode("button",{"aria-current":w.key===d.value?"location":void 0,class:e.normalizeClass(["anchor-link",{active:w.key===d.value}]),"data-testid":p(w),title:w.label,type:"button",onClick:E=>le(w)},e.toDisplayString(w.label),11,$e)]))),128)),g.value.hasTrailingEllipsis?(e.openBlock(),e.createElementBlock("li",Se," … ")):e.createCommentVNode("",!0),g.value.hasOverflowDropdown?(e.openBlock(),e.createElementBlock("li",Ve,[e.createVNode(I,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"anchor-navigation-overflow-dropdown-popover"}}},{items:e.withCtx(({closeDropdown:w})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,E=>(e.openBlock(),e.createBlock(y,{key:`${E.key}-dropdown-item`,"aria-current":E.key===d.value?"location":void 0,"data-testid":p(E),selected:E.key===d.value,onClick:j=>et(E,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["aria-current","data-testid","selected","onClick"]))),128))]),default:e.withCtx(()=>[e.createVNode(k,{appearance:"tertiary","aria-label":e.unref(r)("anchor_navigation.more_button.aria_label"),class:"anchor-overflow-button","data-testid":"anchor-navigation-overflow-dropdown-button",icon:"",size:"small"},{default:e.withCtx(()=>[e.createVNode(e.unref(L.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])]),_:1},8,["aria-label"])]),_:1})])):e.createCommentVNode("",!0)],2)],8,_e)}}}),[["__scopeId","data-v-6ab1d1c1"]]),oe=Symbol("nested-page-layout-detection"),ne="page-layout:new-appearance",De={key:0,class:"page-layout-header","data-testid":"page-layout-header"},Le={class:"page-header-container"},Re={class:"page-header-start"},Ae={class:"title-container"},Pe={key:1,class:"page-layout-title-wrapper"},Ke={class:"page-layout-title","data-testid":"page-layout-title"},xe=["aria-label"],ze={key:3,class:"title-after-container"},Oe={class:"page-header-actions-container"},Fe={key:0,class:"page-layout-aside-container","data-testid":"page-layout-aside"},Me={class:"page-layout-content"},He=M(e.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]},anchors:{default:()=>[]},pageShortcutData:{}},setup(t){const r=e.inject("app:navigateTo",null),n=e.inject(ne,null),a=e.inject("app:pageShortcutsContext",null),{i18n:{t:s}}=G.useI18n(),d=q.useRouter(),u=q.useRoute(),l=e.computed(()=>!!(t.tabs&&t.tabs.length)),h=e.computed(()=>typeof t.backTo=="string"),g=e.computed(()=>e.toValue(n)===!0),p=e.computed(()=>g.value&&!l.value&&!!(t.anchors&&t.anchors.length)),m=e.computed(()=>!!t.pageShortcutData&&!!t.pageShortcutData.entityType&&!!t.pageShortcutData.label),b=e.computed(()=>m.value&&!!a&&"onFavoriteToggle"in a&&typeof a.onFavoriteToggle=="function"),B=e.ref(0),f=e.computed(()=>!!a&&"isFavorite"in a&&typeof a.isFavorite=="function"&&a.isFavorite(t.pageShortcutData)===!0),$=async()=>{if(t.backTo){if(typeof t.backTo=="object"){d.push(t.backTo);return}if(typeof r!="function"){window.location.href=t.backTo;return}await r(t.backTo)}},_=e.ref(0),V=e.computed(()=>_.value>0);e.provide(oe,()=>(_.value++,()=>{_.value--}));const P=e.inject(oe,null),i=e.ref(null);typeof P=="function"&&(i.value=P());const S=()=>{a.onFavoriteToggle({...t.pageShortcutData,path:t.pageShortcutData?.path||u.fullPath})};e.onUnmounted(()=>{i.value?.()});const R=he(()=>{!V.value&&m.value&&a&&"onEntityPageVisit"in a&&typeof a.onEntityPageVisit=="function"&&(a.onEntityPageVisit({...t.pageShortcutData,path:t.pageShortcutData?.path||u?.fullPath}),B.value++)},500);return e.watch([()=>t.pageShortcutData,()=>u?.fullPath],()=>{R()},{immediate:!0,deep:!0}),(N,K)=>{const x=e.resolveComponent("KBreadcrumbs"),z=e.resolveComponent("KTooltip"),T=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-public-page-layout",{"new-appearance":g.value}]),"data-testid":"kong-ui-public-page-layout"},[V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",Le,[e.createElementVNode("div",Re,[t.breadcrumbs&&t.breadcrumbs.length?(e.openBlock(),e.createBlock(x,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:t.breadcrumbs},e.createSlots({_:2},[g.value?{name:"divider",fn:e.withCtx(()=>[e.createVNode(e.unref(L.ChevronRightIcon),{decorative:""})]),key:"0"}:void 0]),1032,["items"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ae,[t.backTo&&!g.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value?"a":"router-link"),e.mergeProps({key:0},h.value?{href:t.backTo}:{to:t.backTo},{"aria-label":e.unref(s)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",tabindex:"0",onClick:e.withModifiers($,["prevent"]),onKeydown:e.withKeys(e.withModifiers($,["prevent"]),["enter"])}),{default:e.withCtx(()=>[e.createVNode(e.unref(L.ArrowTopLeftIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])]),_:1},16,["aria-label","onKeydown"])):e.createCommentVNode("",!0),t.title||N.$slots.title?(e.openBlock(),e.createElementBlock("span",Pe,[e.renderSlot(N.$slots,"title",{},()=>[e.createElementVNode("h1",Ke,e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",{key:B.value,class:"favorite-button-container"},[e.createVNode(z,{placement:"right",text:f.value?e.unref(s)("favorite_button.remove_shortcut"):e.unref(s)("favorite_button.save_shortcut")},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":f.value?e.unref(s)("favorite_button.remove_shortcut"):e.unref(s)("favorite_button.save_shortcut"),class:e.normalizeClass(["favorite-button",{active:f.value}]),"data-testid":"page-layout-favorite-button",type:"button",onClick:S},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(L.StarFillIcon):e.unref(L.StarIcon)),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"]))],10,xe)]),_:1},8,["text"])])):e.createCommentVNode("",!0),N.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(N.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)])]),p.value?(e.openBlock(),e.createBlock(Ie,{key:0,anchors:t.anchors},null,8,["anchors"])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[e.renderSlot(N.$slots,"actions",{},void 0,!0),K[0]||(K[0]=e.createElementVNode("div",{"data-teleport-target":"ask-kai"},null,-1))])]),l.value?(e.openBlock(),e.createBlock(Te,{key:0,tabs:t.tabs},e.createSlots({_:2},[e.renderList(t.tabs,H=>({name:`tab-${H.key}`,fn:e.withCtx(Y=>[e.renderSlot(N.$slots,`tab-${H.key}`,e.normalizeProps(e.guardReactiveProps(Y)),void 0,!0)])}))]),1032,["tabs"])):e.createCommentVNode("",!0)])),e.createElementVNode("div",{class:e.normalizeClass(["page-layout-content-container",{"has-nested-page-layout":V.value}])},[g.value&&N.$slots.aside?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(N.$slots,"aside",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[l.value?(e.openBlock(),e.createBlock(T,{key:0})):e.renderSlot(N.$slots,"default",{},void 0,!0,1)])],2)],2)}}}),[["__scopeId","data-v-b57669c9"]]),je={key:0,class:"about-card-description","data-testid":"about-card-description"},We={key:1,class:"about-card-skeleton","data-testid":"about-card-skeleton"},qe={key:2,class:"about-card-rows","data-testid":"about-card-rows"},Ge=["data-testid"],Ue={class:"about-card-row-label"},Ye={class:"about-card-row-text"},ve=["aria-label","data-testid"],Je={class:"about-card-row-value"},Ze={class:"about-card-row-text"},Xe={key:3,class:"about-card-content","data-testid":"about-card-content"},Qe=M(e.defineComponent({__name:"AboutCard",props:{title:{default:""},titleTag:{default:"h2"},description:{default:""},rows:{default:()=>[]},isLoading:{type:Boolean,default:!1}},setup(t){const r=e.computed(()=>t.rows.length||4);return(n,a)=>{const s=e.resolveComponent("KSkeletonBox"),d=e.resolveComponent("KTooltip"),u=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(u,{class:"kong-ui-public-about-card",title:t.title,"title-tag":t.titleTag},e.createSlots({default:e.withCtx(()=>[n.$slots.description||t.description?(e.openBlock(),e.createElementBlock("p",je,[e.renderSlot(n.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),t.isLoading?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,l=>(e.openBlock(),e.createBlock(s,{key:l,height:"2",width:"100"}))),128))])):t.rows.length?(e.openBlock(),e.createElementBlock("dl",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,l=>(e.openBlock(),e.createElementBlock("div",{key:l.key,class:"about-card-row","data-testid":`about-card-row-${l.key}`},[e.createElementVNode("dt",Ue,[e.renderSlot(n.$slots,`label-${l.key}`,{row:l},()=>[e.createElementVNode("span",Ye,e.toDisplayString(l.label),1)],!0),l.tooltip?(e.openBlock(),e.createBlock(d,{key:0,text:l.tooltip},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":l.tooltip,class:"about-card-row-tooltip-trigger","data-testid":`about-card-row-${l.key}-tooltip`,type:"button"},[e.createVNode(e.unref(L.InfoIcon),{size:`var(--kui-icon-size-20, ${e.unref(ce)})`},null,8,["size"])],8,ve)]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),e.createElementVNode("dd",Je,[e.renderSlot(n.$slots,`row-${l.key}`,{row:l},()=>[e.createElementVNode("span",Ze,e.toDisplayString(l.value),1)],!0)])],8,Ge))),128))])):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(n.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:2},[n.$slots.title||t.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),key:"0"}:void 0,n.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"actions",{},void 0,!0)]),key:"1"}:void 0]),1032,["title","title-tag"])}}}),[["__scopeId","data-v-0316c887"]]);C.AboutCard=Qe,C.NEW_APPEARANCE_INJECTION_KEY=ne,C.PageLayout=He,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C["kong-ui-public-page-layout"]={},C.Vue,C.VueRouter,C["kong-ui-public-i18n"],C.KongIcons))})(this,(function(C,e,q,J,L){"use strict";const re={back_button:"Go back",favorite_button:{save_shortcut:"Save page to shortcuts",remove_shortcut:"Remove page from shortcuts"},tabs:{more_button:{label:"More",aria_label:"More tabs"}},anchor_navigation:{aria_label:"Page sections",more_button:{aria_label:"More page sections"}}};function se(){const t=J.createI18n("en-us",re);return{i18n:t,i18nT:J.i18nTComponent(t)}}const G={useI18n:se},ce="12px",O="16px",de="2px",Z="16px";function ue(t,s){return e.getCurrentScope()?(e.onScopeDispose(t,s),!0):!1}const pe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const A=()=>{};function me(t,s){function n(...a){return new Promise((r,d)=>{Promise.resolve(t(()=>s.apply(this,a),{fn:s,thisArg:this,args:a})).then(r).catch(d)})}return"cancel"in t&&Object.assign(n,{cancel:t.cancel,flush:t.flush,isPending:t.isPending}),n}function fe(t,s={}){let n,a,r=A,d=A;const u=e.shallowRef(!1),l=p=>{clearTimeout(p),r(),r=A};let h;return Object.assign(p=>{const m=e.toValue(t),y=e.toValue(s.maxWait);return n&&l(n),m<=0||y!==void 0&&y<=0?(a&&(l(a),a=void 0),u.value=!1,Promise.resolve(p())):(u.value=!0,new Promise((B,f)=>{r=s.rejectOnCancel?f:B,d=B,h=p,y&&!a&&(a=setTimeout(()=>{n&&l(n),a=void 0,u.value=!1,B(h())},y)),n=setTimeout(()=>{a&&l(a),a=void 0,u.value=!1,B(p())},m)}))},{cancel:()=>{n&&(l(n),n=void 0),a&&(l(a),a=void 0),u.value=!1,d=A},flush:()=>{if(u.value){n&&(clearTimeout(n),n=void 0),a&&(clearTimeout(a),a=void 0),u.value=!1;const p=d;r=A,d=A,p(h())}},isPending:e.shallowReadonly(u)})}function he(t,s=200,n={}){return me(fe(s,n),t)}const ge=pe?window:void 0;function X(t){var s;const n=e.toValue(t);return(s=n?.$el)!==null&&s!==void 0?s:n}function ke(){const t=e.shallowRef(!1),s=e.getCurrentInstance();return s&&e.onMounted(()=>{t.value=!0},s),t}function be(t){const s=ke();return e.computed(()=>(s.value,!!t()))}function Q(t,s,n={}){const{window:a=ge,...r}=n;let d;const u=be(()=>a&&"ResizeObserver"in a),l=()=>{d&&(d.disconnect(),d=void 0)},h=e.watch(e.computed(()=>{const p=e.toValue(t);return Array.isArray(p)?p.map(m=>X(m)):[X(p)]}),p=>{if(l(),u.value&&a){d=new ResizeObserver(s);for(const m of p)m&&d.observe(m,r)}},{immediate:!0,flush:"post"}),g=()=>{l(),h()};return ue(g),{isSupported:u,stop:g}}const ye={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},we={key:0},Ce=["aria-label"],Be={key:0,class:"layout-loader-container"},Ee=e.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(t){const{i18n:{t:s}}=G.useI18n(),n=q.useRouter(),a=e.inject("app:navigateTo",null),r=f=>{if(typeof f.to!="string"){n.push(f.to);return}if(typeof a!="function"){window.location.href=f.to;return}a(f.to)},d=e.useTemplateRef("page-layout-tabs"),u=e.useTemplateRef("page-layout-tabs-list"),l=e.ref(t.tabs.length),h=e.ref(!1),g=e.computed(()=>t.tabs.slice(0,l.value)),p=e.computed(()=>t.tabs.slice(l.value)),m=async()=>{if(!d.value||!u.value)return;h.value=!1,l.value=t.tabs.length,await e.nextTick();const f=d.value?.getBoundingClientRect().width-parseInt(Z)*2;let $=u.value?.getBoundingClientRect().width;if(!f||!$){h.value=!0;return}const _=50;for(;$+_>f&&l.value>1;)l.value--,await e.nextTick(),$=u.value?.getBoundingClientRect().width||0;h.value=!0};let y=null;const B=()=>{y&&clearTimeout(y),y=setTimeout(()=>{m()},150)};return e.onMounted(()=>{m(),Q(d,B)}),e.onBeforeUnmount(()=>{y&&clearTimeout(y)}),e.watch(()=>t.tabs,()=>{m()},{deep:!0}),(f,$)=>{const _=e.resolveComponent("KDropdownItem"),I=e.resolveComponent("KDropdown"),P=e.resolveComponent("KSkeletonBox");return e.openBlock(),e.createElementBlock("nav",ye,[e.createElementVNode("ul",{ref:"page-layout-tabs-list",class:e.normalizeClass({"layout-computing":!h.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,i=>(e.openBlock(),e.createElementBlock("li",{key:`${i.key}-tab`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(typeof i.to=="string"?"a":"router-link"),e.mergeProps({ref_for:!0},typeof i.to=="string"?{href:i.to}:{to:i.to},{"aria-current":i.active?"page":void 0,class:["tab-link",{active:i.active}],"data-testid":i.dataTestId?i.dataTestId:`page-layout-tab-${i.key}`,tabindex:"0",onClick:e.withModifiers(S=>r(i),["prevent"]),onKeydown:e.withKeys(e.withModifiers(S=>r(i),["prevent"]),["enter"])}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,`tab-${i.key}`,{tab:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1040,["aria-current","class","data-testid","onClick","onKeydown"]))]))),128)),t.tabs.length>l.value?(e.openBlock(),e.createElementBlock("li",we,[e.createVNode(I,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,i=>(e.openBlock(),e.createBlock(_,{key:`${i.key}-dropdown-item`,"aria-current":i.active?"page":void 0,"data-testid":i.dataTestId?i.dataTestId:`page-layout-tab-${i.key}`,item:{label:i.label,value:i.key,to:i.to},selected:i.active},{default:e.withCtx(()=>[e.renderSlot(f.$slots,`tab-${i.key}`,{tab:i},()=>[e.createTextVNode(e.toDisplayString(i.label),1)],!0)]),_:2},1032,["aria-current","data-testid","item","selected"]))),128))]),default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":e.unref(s)("tabs.more_button.aria_label"),class:e.normalizeClass(["tab-link",{active:p.value.find(i=>i.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[e.createTextVNode(e.toDisplayString(e.unref(s)("tabs.more_button.label"))+" ",1),e.createVNode(e.unref(L.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])],10,Ce)]),_:3})])):e.createCommentVNode("",!0)],2),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,i=>e.createVNode(P,{key:`layout-loader-${i}`,height:"1",width:"5"})),64))]))],512)}}}),M=(t,s)=>{const n=t.__vccOpts||t;for(const[a,r]of s)n[a]=r;return n},Te=M(Ee,[["__scopeId","data-v-02891bc1"]]),_e=["aria-label","data-fit"],Ne={key:0,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-leading-ellipsis"},$e=["aria-current","data-testid","title","onClick"],Se={key:1,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-trailing-ellipsis"},Ie={key:2},ee=140,te=22,U=16,Ve=M(e.defineComponent({__name:"PageLayoutAnchorNavigation",props:{anchors:{default:()=>[]}},setup(t){const{i18n:{t:s}}=G.useI18n(),n=e.useTemplateRef("page-layout-anchor-navigation"),a=e.useTemplateRef("page-layout-anchor-navigation-list"),r=e.ref("all"),d=e.ref(""),u=e.ref([]),l=e.computed(()=>t.anchors.filter(o=>u.value.includes(o.id))),h=e.computed(()=>{const o=l.value.findIndex(c=>c.id===d.value);return o===-1?0:o}),g=e.computed(()=>{const o=l.value,c=o.length,k=h.value;if(r.value==="all")return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(r.value==="hidden")return{anchors:[],hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(r.value==="active-only")return{anchors:o.slice(k,k+1),hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const b=r.value==="window-3"?3:2;if(c<=b)return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const V=k<b?0:k>=c-b?c-b:k-1;return{anchors:o.slice(V,V+b),hasLeadingEllipsis:V>0,hasTrailingEllipsis:V+b<c,hasOverflowDropdown:!0}}),p=o=>o.dataTestId??`page-layout-anchor-${o.id.replace(/[^\w-]+/g,"-").replace(/^-+|-+$/g,"")}`,m=e.ref(null),y=()=>{let o=n.value?.parentElement??null;for(;o;){const{overflowY:c}=getComputedStyle(o);if(c==="auto"||c==="scroll"||c==="overlay")return o;o=o.parentElement}return null},B=o=>{if(o.element)return o.element.isConnected?o.element:null;const c=m.value??document;try{return c.querySelector(o.id)??c.querySelector(`#${CSS.escape(o.id)}`)}catch{return null}},f=()=>(n.value?.closest(".page-layout-header")?.getBoundingClientRect().height??0)+parseInt(Z,10),$=parseInt(O,10),_=parseInt(de,10),I=o=>o*ee+2*$+te+(o+2)*_+U,P=()=>ee+te+_+U;let i=0;const S=async()=>{if(!l.value.length){r.value="hidden";return}const o=++i;if(r.value="all",await e.nextTick(),o!==i||!n.value||!a.value)return;const c=n.value.getBoundingClientRect().width,k=a.value.getBoundingClientRect().width;c<=0||k<=0||k+U<=c||(I(3)<=c?r.value="window-3":I(2)<=c?r.value="window-2":P()<=c?r.value="active-only":r.value="hidden")};let R=null;Q(n,()=>{R&&clearTimeout(R),R=setTimeout(()=>{F(),S()},150)});let K=null,x=null;const z=()=>m.value??window,T=()=>{K=null,x&&(clearTimeout(x),x=null);const o=z();o.removeEventListener("scrollend",T),o.removeEventListener("wheel",T),o.removeEventListener("touchstart",T)},H=o=>{T(),K=o;const c=z();c.addEventListener("scrollend",T,{once:!0}),c.addEventListener("wheel",T,{passive:!0}),c.addEventListener("touchstart",T,{passive:!0}),x=setTimeout(T,1e3)},v=()=>{const o=m.value;return{top:o?o.getBoundingClientRect().top:0,scrollTop:o?o.scrollTop:window.scrollY,clientHeight:o?o.clientHeight:window.innerHeight,scrollHeight:o?o.scrollHeight:document.documentElement.scrollHeight}},F=()=>{const{top:o,scrollTop:c,clientHeight:k,scrollHeight:b}=v(),V=f(),w=[];let E=null,j=null;for(const D of t.anchors){const W=B(D);W&&(w.push(D.id),j=D.id,E??=D.id,W.getBoundingClientRect().top-o<=(D.offset??V)+8&&(E=D.id))}const ie=w.length!==u.value.length||w.some((D,W)=>D!==u.value[W]);return ie&&(u.value=w),K||(j&&c>0&&c+k>=b-2&&(E=j),d.value=E??""),ie};let Y=!1;const ae=()=>{Y||(Y=!0,requestAnimationFrame(()=>{Y=!1,F()&&S()}))},le=o=>{const c=B(o);if(!c)return;d.value=o.id,H(o.id);const k=o.offset??f(),b=m.value;if(b){b.scrollTo({behavior:"smooth",top:c.getBoundingClientRect().top-b.getBoundingClientRect().top+b.scrollTop-k});return}window.scrollTo({behavior:"smooth",top:c.getBoundingClientRect().top+window.scrollY-k})},et=(o,c)=>{c(),le(o)};return e.onMounted(()=>{m.value=y(),z().addEventListener("scroll",ae,{passive:!0}),F(),S(),requestAnimationFrame(()=>{F(),S()})}),e.onBeforeUnmount(()=>{z().removeEventListener("scroll",ae),T(),R&&clearTimeout(R)}),e.watch(()=>t.anchors,()=>{t.anchors.some(o=>o.id===d.value)||(d.value=""),F(),S()},{deep:!0}),(o,c)=>{const k=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem"),V=e.resolveComponent("KDropdown");return e.openBlock(),e.createElementBlock("nav",{ref:"page-layout-anchor-navigation","aria-label":e.unref(s)("anchor_navigation.aria_label"),class:"page-layout-anchor-navigation","data-fit":r.value,"data-testid":"page-layout-anchor-navigation"},[e.createElementVNode("ul",{ref:"page-layout-anchor-navigation-list",class:e.normalizeClass({"layout-hidden":r.value==="hidden"})},[g.value.hasLeadingEllipsis?(e.openBlock(),e.createElementBlock("li",Ne," … ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.anchors,w=>(e.openBlock(),e.createElementBlock("li",{key:`${w.id}-anchor`},[e.createElementVNode("button",{"aria-current":w.id===d.value?"location":void 0,class:e.normalizeClass(["anchor-link",{active:w.id===d.value}]),"data-testid":p(w),title:w.label,type:"button",onClick:E=>le(w)},e.toDisplayString(w.label),11,$e)]))),128)),g.value.hasTrailingEllipsis?(e.openBlock(),e.createElementBlock("li",Se," … ")):e.createCommentVNode("",!0),g.value.hasOverflowDropdown?(e.openBlock(),e.createElementBlock("li",Ie,[e.createVNode(V,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"anchor-navigation-overflow-dropdown-popover"}}},{items:e.withCtx(({closeDropdown:w})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,E=>(e.openBlock(),e.createBlock(b,{key:`${E.id}-dropdown-item`,"aria-current":E.id===d.value?"location":void 0,"data-testid":p(E),selected:E.id===d.value,onClick:j=>et(E,w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["aria-current","data-testid","selected","onClick"]))),128))]),default:e.withCtx(()=>[e.createVNode(k,{appearance:"tertiary","aria-label":e.unref(s)("anchor_navigation.more_button.aria_label"),class:"anchor-overflow-button","data-testid":"anchor-navigation-overflow-dropdown-button",icon:"",size:"small"},{default:e.withCtx(()=>[e.createVNode(e.unref(L.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])]),_:1},8,["aria-label"])]),_:1})])):e.createCommentVNode("",!0)],2)],8,_e)}}}),[["__scopeId","data-v-f9770830"]]),oe=Symbol("nested-page-layout-detection"),ne="page-layout:new-appearance",De={key:0,class:"page-layout-header","data-testid":"page-layout-header"},Le={class:"page-header-container"},Re={class:"page-header-start"},Ae={class:"title-container"},Pe={key:1,class:"page-layout-title-wrapper"},Ke={class:"page-layout-title","data-testid":"page-layout-title"},xe=["aria-label"],ze={key:3,class:"title-after-container"},Oe={class:"page-header-actions-container"},Fe={key:0,class:"page-layout-aside-container","data-testid":"page-layout-aside"},Me={class:"page-layout-content"},He=M(e.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]},anchors:{default:()=>[]},pageShortcutData:{}},setup(t){const s=e.inject("app:navigateTo",null),n=e.inject(ne,null),a=e.inject("app:pageShortcutsContext",null),{i18n:{t:r}}=G.useI18n(),d=q.useRouter(),u=q.useRoute(),l=e.computed(()=>!!(t.tabs&&t.tabs.length)),h=e.computed(()=>typeof t.backTo=="string"),g=e.computed(()=>e.toValue(n)===!0),p=e.computed(()=>g.value&&!l.value&&!!(t.anchors&&t.anchors.length)),m=e.computed(()=>!!t.pageShortcutData&&!!t.pageShortcutData.entityType&&!!t.pageShortcutData.label),y=e.computed(()=>m.value&&!!a&&"onFavoriteToggle"in a&&typeof a.onFavoriteToggle=="function"),B=e.ref(0),f=e.computed(()=>!!a&&"isFavorite"in a&&typeof a.isFavorite=="function"&&a.isFavorite(t.pageShortcutData)===!0),$=async()=>{if(t.backTo){if(typeof t.backTo=="object"){d.push(t.backTo);return}if(typeof s!="function"){window.location.href=t.backTo;return}await s(t.backTo)}},_=e.ref(0),I=e.computed(()=>_.value>0);e.provide(oe,()=>(_.value++,()=>{_.value--}));const P=e.inject(oe,null),i=e.ref(null);typeof P=="function"&&(i.value=P());const S=()=>{a.onFavoriteToggle({...t.pageShortcutData,path:t.pageShortcutData?.path||u.fullPath})};e.onUnmounted(()=>{i.value?.()});const R=he(()=>{!I.value&&m.value&&a&&"onEntityPageVisit"in a&&typeof a.onEntityPageVisit=="function"&&(a.onEntityPageVisit({...t.pageShortcutData,path:t.pageShortcutData?.path||u?.fullPath}),B.value++)},500);return e.watch([()=>t.pageShortcutData,()=>u?.fullPath],()=>{R()},{immediate:!0,deep:!0}),(N,K)=>{const x=e.resolveComponent("KBreadcrumbs"),z=e.resolveComponent("KTooltip"),T=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-public-page-layout",{"new-appearance":g.value}]),"data-testid":"kong-ui-public-page-layout"},[I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",Le,[e.createElementVNode("div",Re,[t.breadcrumbs&&t.breadcrumbs.length?(e.openBlock(),e.createBlock(x,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:t.breadcrumbs},e.createSlots({_:2},[g.value?{name:"divider",fn:e.withCtx(()=>[e.createVNode(e.unref(L.ChevronRightIcon),{decorative:""})]),key:"0"}:void 0]),1032,["items"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ae,[t.backTo&&!g.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value?"a":"router-link"),e.mergeProps({key:0},h.value?{href:t.backTo}:{to:t.backTo},{"aria-label":e.unref(r)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",tabindex:"0",onClick:e.withModifiers($,["prevent"]),onKeydown:e.withKeys(e.withModifiers($,["prevent"]),["enter"])}),{default:e.withCtx(()=>[e.createVNode(e.unref(L.ArrowTopLeftIcon),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"])]),_:1},16,["aria-label","onKeydown"])):e.createCommentVNode("",!0),t.title||N.$slots.title?(e.openBlock(),e.createElementBlock("span",Pe,[e.renderSlot(N.$slots,"title",{},()=>[e.createElementVNode("h1",Ke,e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("div",{key:B.value,class:"favorite-button-container"},[e.createVNode(z,{placement:"right",text:f.value?e.unref(r)("favorite_button.remove_shortcut"):e.unref(r)("favorite_button.save_shortcut")},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":f.value?e.unref(r)("favorite_button.remove_shortcut"):e.unref(r)("favorite_button.save_shortcut"),class:e.normalizeClass(["favorite-button",{active:f.value}]),"data-testid":"page-layout-favorite-button",type:"button",onClick:S},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?e.unref(L.StarFillIcon):e.unref(L.StarIcon)),{decorative:"",size:`var(--kui-icon-size-30, ${e.unref(O)})`},null,8,["size"]))],10,xe)]),_:1},8,["text"])])):e.createCommentVNode("",!0),N.$slots["title-after"]?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(N.$slots,"title-after",{},void 0,!0)])):e.createCommentVNode("",!0)])]),p.value?(e.openBlock(),e.createBlock(Ve,{key:0,anchors:t.anchors},null,8,["anchors"])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[e.renderSlot(N.$slots,"actions",{},void 0,!0),K[0]||(K[0]=e.createElementVNode("div",{"data-teleport-target":"ask-kai"},null,-1))])]),l.value?(e.openBlock(),e.createBlock(Te,{key:0,tabs:t.tabs},e.createSlots({_:2},[e.renderList(t.tabs,H=>({name:`tab-${H.key}`,fn:e.withCtx(v=>[e.renderSlot(N.$slots,`tab-${H.key}`,e.normalizeProps(e.guardReactiveProps(v)),void 0,!0)])}))]),1032,["tabs"])):e.createCommentVNode("",!0)])),e.createElementVNode("div",{class:e.normalizeClass(["page-layout-content-container",{"has-nested-page-layout":I.value}])},[g.value&&N.$slots.aside?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(N.$slots,"aside",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[l.value?(e.openBlock(),e.createBlock(T,{key:0})):e.renderSlot(N.$slots,"default",{},void 0,!0,1)])],2)],2)}}}),[["__scopeId","data-v-b57669c9"]]),je={key:0,class:"about-card-description","data-testid":"about-card-description"},We={key:1,class:"about-card-skeleton","data-testid":"about-card-skeleton"},qe={key:2,class:"about-card-rows","data-testid":"about-card-rows"},Ge=["data-testid"],Ue={class:"about-card-row-label"},ve={class:"about-card-row-text"},Ye=["aria-label","data-testid"],Je={class:"about-card-row-value"},Ze={class:"about-card-row-text"},Xe={key:3,class:"about-card-content","data-testid":"about-card-content"},Qe=M(e.defineComponent({__name:"AboutCard",props:{title:{default:""},titleTag:{default:"h2"},description:{default:""},rows:{default:()=>[]},isLoading:{type:Boolean,default:!1}},setup(t){const s=e.computed(()=>t.rows.length||4);return(n,a)=>{const r=e.resolveComponent("KSkeletonBox"),d=e.resolveComponent("KTooltip"),u=e.resolveComponent("KCard");return e.openBlock(),e.createBlock(u,{class:"kong-ui-public-about-card",title:t.title,"title-tag":t.titleTag},e.createSlots({default:e.withCtx(()=>[n.$slots.description||t.description?(e.openBlock(),e.createElementBlock("p",je,[e.renderSlot(n.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0),t.isLoading?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createBlock(r,{key:l,height:"2",width:"100"}))),128))])):t.rows.length?(e.openBlock(),e.createElementBlock("dl",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,l=>(e.openBlock(),e.createElementBlock("div",{key:l.key,class:"about-card-row","data-testid":`about-card-row-${l.key}`},[e.createElementVNode("dt",Ue,[e.renderSlot(n.$slots,`label-${l.key}`,{row:l},()=>[e.createElementVNode("span",ve,e.toDisplayString(l.label),1)],!0),l.tooltip?(e.openBlock(),e.createBlock(d,{key:0,text:l.tooltip},{default:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":l.tooltip,class:"about-card-row-tooltip-trigger","data-testid":`about-card-row-${l.key}-tooltip`,type:"button"},[e.createVNode(e.unref(L.InfoIcon),{size:`var(--kui-icon-size-20, ${e.unref(ce)})`},null,8,["size"])],8,Ye)]),_:2},1032,["text"])):e.createCommentVNode("",!0)]),e.createElementVNode("dd",Je,[e.renderSlot(n.$slots,`row-${l.key}`,{row:l},()=>[e.createElementVNode("span",Ze,e.toDisplayString(l.value),1)],!0)])],8,Ge))),128))])):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(n.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:2},[n.$slots.title||t.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)]),key:"0"}:void 0,n.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"actions",{},void 0,!0)]),key:"1"}:void 0]),1032,["title","title-tag"])}}}),[["__scopeId","data-v-0316c887"]]);C.AboutCard=Qe,C.NEW_APPEARANCE_INJECTION_KEY=ne,C.PageLayout=He,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .page-layout-tabs[data-v-02891bc1]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0 16px;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px);position:relative;width:100%}.page-layout-tabs a[data-v-02891bc1],.page-layout-tabs button[data-v-02891bc1]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;color:inherit;cursor:pointer;font:inherit;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-02891bc1]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-02891bc1]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-02891bc1]{display:flex}.page-layout-tabs ul li .tab-link[data-v-02891bc1]{align-items:center;border-bottom:2px solid rgba(0,0,0,0);border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, rgba(0, 0, 0, 0));border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);text-decoration:none;transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#0d0e14;color:var(--kui-color-text, #0d0e14);text-decoration:none}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2));text-decoration:none}.page-layout-tabs ul li .tab-link.active[data-v-02891bc1]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);text-decoration:none}.page-layout-tabs .layout-loader-container[data-v-02891bc1]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;inset:0 0 0 16px;left:var(--kui-space-60, 16px);position:absolute}.page-layout-anchor-navigation[data-v-6ab1d1c1]{display:flex;flex:1 1 0;justify-content:center;min-width:0;overflow-x:clip}.page-layout-anchor-navigation ul[data-v-6ab1d1c1]{align-items:center;display:flex;flex-shrink:0;gap:2px;gap:var(--kui-space-10, 2px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px)}.page-layout-anchor-navigation ul.layout-hidden[data-v-6ab1d1c1]{display:none}.page-layout-anchor-navigation ul li[data-v-6ab1d1c1]{display:flex}.page-layout-anchor-navigation .anchor-link[data-v-6ab1d1c1]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-sizing:border-box;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px);max-width:140px;outline:none;overflow:hidden;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);text-overflow:ellipsis;transition:background-color .2s ease-in,color .2s ease-in;transition:background-color var(--kui-animation-duration-20, .2s) ease-in,color var(--kui-animation-duration-20, .2s) ease-in;white-space:nowrap}.page-layout-anchor-navigation .anchor-link[data-v-6ab1d1c1]:hover{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-link[data-v-6ab1d1c1]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-anchor-navigation .anchor-link.active[data-v-6ab1d1c1]{background-color:#0044f4;background-color:var(--kui-color-brand, #0044f4);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-ellipsis[data-v-6ab1d1c1]{align-items:center;color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);font-size:12px;font-size:var(--kui-font-size-20, 12px);justify-content:center;line-height:16px;line-height:var(--kui-line-height-20, 16px);-webkit-user-select:none;user-select:none;width:16px;width:var(--kui-icon-size-30, 16px)}.page-layout-anchor-navigation .anchor-overflow-button[data-v-6ab1d1c1]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout[data-v-b57669c9]{box-sizing:border-box;container-name:page-layout;container-type:inline-size;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-b57669c9]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start[data-v-b57669c9]{min-width:0}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9],.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9]:hover,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]:hover{color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9]:focus-visible,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]{min-width:0;overflow:hidden}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]>*{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container[data-v-b57669c9]{align-self:center;display:flex;margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-b57669c9]{color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-b57669c9]:hover{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button.active[data-v-b57669c9]{color:#ffc400;color:var(--kui-color-text-warning-weak, #ffc400)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-b57669c9]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-b57669c9]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header[data-v-b57669c9]{position:sticky;top:0;z-index:3}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container[data-v-b57669c9]{align-items:center;padding:8px 16px 0;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start[data-v-b57669c9]{align-items:center;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container[data-v-b57669c9]{align-items:center;min-width:0}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]>*{font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9],.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-after-container[data-v-b57669c9]{flex-shrink:0}.kong-ui-public-page-layout.new-appearance .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-b57669c9]{box-sizing:border-box;height:44px;padding:8px 16px;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container[data-v-b57669c9]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);display:flex;flex-direction:column-reverse;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container.has-nested-page-layout[data-v-b57669c9]{padding:0;padding:var(--kui-space-0, 0px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container[data-v-b57669c9]{flex-direction:row-reverse;gap:8px;gap:var(--kui-space-40, 8px)}}.kong-ui-public-page-layout .page-layout-content-container .page-layout-content[data-v-b57669c9]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);min-width:0;width:100%}.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-b57669c9]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-b57669c9]{flex-shrink:0;width:400px}}.kong-ui-public-about-card[data-v-0316c887]{--kui-card-gap: var(--kui-space-50, 12px);--kui-card-title-font-size: var(--kui-font-size-30, 14px);container-type:inline-size}.kong-ui-public-about-card .about-card-description[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0 0 16px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-about-card .about-card-skeleton[data-v-0316c887]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-about-card .about-card-rows[data-v-0316c887]{display:flex;flex-direction:column;margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:last-child{border-bottom:none;padding-bottom:0;padding-bottom:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:first-child{padding-top:0;padding-top:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;flex:0 0 auto;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:4px;gap:var(--kui-space-20, 4px);line-height:16px;line-height:var(--kui-line-height-20, 16px);width:140px}.kong-ui-public-about-card .about-card-row-text[data-v-0316c887]{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-row-tooltip-trigger[data-v-0316c887]{align-items:center;background:none;border:none;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;display:flex;padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-value[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);flex:1 1 0;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px);min-width:0;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-content[data-v-0316c887]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}@container (max-width: 320px){.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:flex-start;flex-direction:column;gap:2px;gap:var(--kui-space-10, 2px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{width:auto}}
1
+ .page-layout-tabs[data-v-02891bc1]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0 16px;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px);position:relative;width:100%}.page-layout-tabs a[data-v-02891bc1],.page-layout-tabs button[data-v-02891bc1]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;color:inherit;cursor:pointer;font:inherit;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-02891bc1]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-02891bc1]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-02891bc1]{display:flex}.page-layout-tabs ul li .tab-link[data-v-02891bc1]{align-items:center;border-bottom:2px solid rgba(0,0,0,0);border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, rgba(0, 0, 0, 0));border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);text-decoration:none;transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#0d0e14;color:var(--kui-color-text, #0d0e14);text-decoration:none}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2));text-decoration:none}.page-layout-tabs ul li .tab-link.active[data-v-02891bc1]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);text-decoration:none}.page-layout-tabs .layout-loader-container[data-v-02891bc1]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;inset:0 0 0 16px;left:var(--kui-space-60, 16px);position:absolute}.page-layout-anchor-navigation[data-v-f9770830]{display:flex;flex:1 1 0;justify-content:center;min-width:0;overflow-x:clip}.page-layout-anchor-navigation ul[data-v-f9770830]{align-items:center;display:flex;flex-shrink:0;gap:2px;gap:var(--kui-space-10, 2px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px)}.page-layout-anchor-navigation ul.layout-hidden[data-v-f9770830]{display:none}.page-layout-anchor-navigation ul li[data-v-f9770830]{display:flex}.page-layout-anchor-navigation .anchor-link[data-v-f9770830]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-sizing:border-box;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px);max-width:140px;outline:none;overflow:hidden;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);text-overflow:ellipsis;transition:background-color .2s ease-in,color .2s ease-in;transition:background-color var(--kui-animation-duration-20, .2s) ease-in,color var(--kui-animation-duration-20, .2s) ease-in;white-space:nowrap}.page-layout-anchor-navigation .anchor-link[data-v-f9770830]:hover{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-link[data-v-f9770830]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-anchor-navigation .anchor-link.active[data-v-f9770830]{background-color:#0044f4;background-color:var(--kui-color-brand, #0044f4);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-ellipsis[data-v-f9770830]{align-items:center;color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);font-size:12px;font-size:var(--kui-font-size-20, 12px);justify-content:center;line-height:16px;line-height:var(--kui-line-height-20, 16px);-webkit-user-select:none;user-select:none;width:16px;width:var(--kui-icon-size-30, 16px)}.page-layout-anchor-navigation .anchor-overflow-button[data-v-f9770830]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout[data-v-b57669c9]{box-sizing:border-box;container-name:page-layout;container-type:inline-size;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-b57669c9]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start[data-v-b57669c9]{min-width:0}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9],.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9]:hover,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]:hover{color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-b57669c9]:focus-visible,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-b57669c9]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]{min-width:0;overflow:hidden}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]>*{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container[data-v-b57669c9]{align-self:center;display:flex;margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-b57669c9]{color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-b57669c9]:hover{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button.active[data-v-b57669c9]{color:#ffc400;color:var(--kui-color-text-warning-weak, #ffc400)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-b57669c9]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-b57669c9]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-b57669c9]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header[data-v-b57669c9]{position:sticky;top:0;z-index:3}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container[data-v-b57669c9]{align-items:center;padding:8px 16px 0;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start[data-v-b57669c9]{align-items:center;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container[data-v-b57669c9]{align-items:center;min-width:0}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-b57669c9]>*{font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-b57669c9],.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-after-container[data-v-b57669c9]{flex-shrink:0}.kong-ui-public-page-layout.new-appearance .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-b57669c9]{box-sizing:border-box;height:44px;padding:8px 16px;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container[data-v-b57669c9]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);display:flex;flex-direction:column-reverse;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container.has-nested-page-layout[data-v-b57669c9]{padding:0;padding:var(--kui-space-0, 0px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container[data-v-b57669c9]{flex-direction:row-reverse;gap:8px;gap:var(--kui-space-40, 8px)}}.kong-ui-public-page-layout .page-layout-content-container .page-layout-content[data-v-b57669c9]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);min-width:0;width:100%}.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-b57669c9]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-b57669c9]{flex-shrink:0;width:400px}}.kong-ui-public-about-card[data-v-0316c887]{--kui-card-gap: var(--kui-space-50, 12px);--kui-card-title-font-size: var(--kui-font-size-30, 14px);container-type:inline-size}.kong-ui-public-about-card .about-card-description[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0 0 16px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-about-card .about-card-skeleton[data-v-0316c887]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-about-card .about-card-rows[data-v-0316c887]{display:flex;flex-direction:column;margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:last-child{border-bottom:none;padding-bottom:0;padding-bottom:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:first-child{padding-top:0;padding-top:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;flex:0 0 auto;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:4px;gap:var(--kui-space-20, 4px);line-height:16px;line-height:var(--kui-line-height-20, 16px);width:140px}.kong-ui-public-about-card .about-card-row-text[data-v-0316c887]{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-row-tooltip-trigger[data-v-0316c887]{align-items:center;background:none;border:none;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;display:flex;padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-value[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);flex:1 1 0;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px);min-width:0;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-content[data-v-0316c887]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}@container (max-width: 320px){.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:flex-start;flex-direction:column;gap:2px;gap:var(--kui-space-10, 2px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{width:auto}}
@@ -1 +1 @@
1
- {"version":3,"file":"PageLayoutAnchorNavigation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutAnchorNavigation.vue"],"names":[],"mappings":"AAgoBA,OAAO,KAAK,EAAoB,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAwoBjF,QAAA,MAAM,YAAY,0UAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"PageLayoutAnchorNavigation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutAnchorNavigation.vue"],"names":[],"mappings":"AAooBA,OAAO,KAAK,EAAoB,+BAA+B,EAAE,MAAM,UAAU,CAAA;AA4oBjF,QAAA,MAAM,YAAY,0UAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,17 +1,15 @@
1
1
  export interface PageLayoutAnchor {
2
- /** The unique kebab-case key of the anchor */
3
- key: string;
4
- /** The display text of the navigation item */
5
- label: string;
6
2
  /**
7
- * A CSS selector matching the section this item scrolls to, e.g. `#usage` or
8
- * `[data-anchor="usage"]`. Ignored when `element` is set; one of the two must be provided for
9
- * the item to resolve to anything.
3
+ * A CSS selector matching the section this item scrolls to (`#usage`, `[data-anchor="usage"]`, ...).
4
+ * A bare identifier (`usage`) is also accepted and looked up as `#usage`.
5
+ * Doubles as the item's unique key, so it must be unique within the list.
10
6
  */
11
- selector?: string;
7
+ id: string;
8
+ /** The display text of the navigation item */
9
+ label: string;
12
10
  /**
13
11
  * The section element itself, for pages that hold a template ref rather than a selector.
14
- * Takes precedence over `selector`.
12
+ * Takes precedence over `id`, which is then only used as the item's key.
15
13
  */
16
14
  element?: HTMLElement | null;
17
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"page-layout-anchor-navigation.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-anchor-navigation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,GAAG,EAAE,MAAM,CAAA;IACX,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B"}
1
+ {"version":3,"file":"page-layout-anchor-navigation.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-anchor-navigation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/page-layout",
3
- "version": "1.2.4-pr.3950.d754871d7.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/page-layout.umd.js",
6
6
  "module": "./dist/page-layout.es.js",