@zealsolutions/zeal-ui 1.0.0-alpha.378 → 1.0.0-alpha.380

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,33 +1,33 @@
1
- import { openBlock as a, createElementBlock as i, createVNode as I, createElementVNode as r, createTextVNode as B, mergeModels as le, useModel as $e, getCurrentInstance as fe, ref as k, computed as C, watch as q, nextTick as se, onMounted as Se, onBeforeUnmount as Me, createBlock as A, Teleport as Ie, withModifiers as H, withDirectives as Y, vModelText as Te, createCommentVNode as v, normalizeClass as M, toDisplayString as b, Fragment as N, renderList as O, unref as W, normalizeStyle as G, pushScopeId as Ae, popScopeId as Ne, Transition as xe, withCtx as J, resolveDynamicComponent as he, vShow as ye, renderSlot as V } from "vue";
1
+ import { openBlock as r, createElementBlock as i, createVNode as L, createElementVNode as a, createTextVNode as G, mergeModels as se, useModel as Ee, getCurrentInstance as he, ref as b, computed as A, watch as Q, nextTick as ie, onMounted as ye, onBeforeUnmount as ve, createBlock as H, Teleport as Ie, withModifiers as D, withDirectives as te, vModelText as Ae, createCommentVNode as g, normalizeClass as T, toDisplayString as C, Fragment as O, renderList as P, unref as X, normalizeStyle as Z, pushScopeId as Te, popScopeId as Ne, Transition as me, withCtx as ne, resolveDynamicComponent as be, vShow as ke, renderSlot as Y } from "vue";
2
2
  import ze from "../../HouseIcon-BxmNyxvv.js";
3
- import He from "../../ArrowLeftIcon-Cgsy08pY.js";
4
- import { _ as Ee } from "../../Tooltip-BG8E8i-l.js";
5
- import ve from "../../MagnifyingGlassIcon-ChYNIA-H.js";
6
- import { _ as Le } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { o as me } from "../../index-2g68oy2H.js";
8
- import ie from "../../BellIcon-lK5EZXNf.js";
9
- import Oe from "../../CircleCheckIcon-CA15yXgI.js";
10
- import je from "../../XMarkIcon-DKJ_--uA.js";
11
- const De = /* @__PURE__ */ r("span", { class: "hidden whitespace-nowrap sm:inline" }, "Search", -1), Pe = /* @__PURE__ */ r("kbd", { class: "zui-search-kbd hidden items-center gap-px rounded border-[1px] border-white/40 bg-white/15 px-[5px] py-0.5 font-sans text-[11px] font-bold leading-none text-white/90 sm:inline-flex" }, [
12
- /* @__PURE__ */ r("span", null, "⌘"),
13
- /* @__PURE__ */ B("K ")
14
- ], -1), Ue = {
3
+ import Le from "../../ArrowLeftIcon-Cgsy08pY.js";
4
+ import { _ as He } from "../../Tooltip-BG8E8i-l.js";
5
+ import ge from "../../MagnifyingGlassIcon-ChYNIA-H.js";
6
+ import { _ as Oe } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { o as we } from "../../index-2g68oy2H.js";
8
+ import ce from "../../BellIcon-lK5EZXNf.js";
9
+ import je from "../../CircleCheckIcon-CA15yXgI.js";
10
+ import De from "../../XMarkIcon-DKJ_--uA.js";
11
+ const Re = /* @__PURE__ */ a("span", { class: "hidden whitespace-nowrap sm:inline" }, "Search", -1), Pe = /* @__PURE__ */ a("kbd", { class: "zui-search-kbd hidden items-center gap-px rounded border-[1px] border-white/40 bg-white/15 px-[5px] py-0.5 font-sans text-[11px] font-bold leading-none text-white/90 sm:inline-flex" }, [
12
+ /* @__PURE__ */ a("span", null, "⌘"),
13
+ /* @__PURE__ */ G("K ")
14
+ ], -1), Be = {
15
15
  __name: "GlobalSearchPill",
16
16
  emits: ["click"],
17
17
  setup(e) {
18
- return (l, n) => (a(), i("button", {
18
+ return (o, t) => (r(), i("button", {
19
19
  type: "button",
20
20
  class: "zui-search-pill inline-flex h-[34px] cursor-pointer items-center justify-center gap-[7px] rounded-lg border-[1px] border-solid border-proclusteal-900 bg-proclusteal-900 pl-[11px] pr-[9px] font-sans text-[13px] font-semibold text-white transition-[border-color,box-shadow] duration-150 hover:border-proclusteal-950 hover:shadow-[0_1px_3px_rgba(20,40,45,0.25)] focus:border-proclusteal-950 focus:outline-none",
21
21
  title: "Search (Ctrl K)",
22
22
  "aria-label": "Search (Ctrl K)",
23
- onClick: n[0] || (n[0] = (h) => l.$emit("click"))
23
+ onClick: t[0] || (t[0] = (f) => o.$emit("click"))
24
24
  }, [
25
- I(ve, { class: "!h-[15px] !w-[15px] flex-none text-white" }),
26
- De,
25
+ L(ge, { class: "!h-[15px] !w-[15px] flex-none text-white" }),
26
+ Re,
27
27
  Pe
28
28
  ]));
29
29
  }
30
- }, U = {
30
+ }, K = {
31
31
  Contact: { label: "Contacts", colour: "#1a8a7d", icon: '<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>' },
32
32
  Incident: { label: "Incidents", colour: "#cd5c5c", icon: '<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>' },
33
33
  Asset: { label: "Assets", colour: "#8b4789", icon: '<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/>' },
@@ -40,52 +40,52 @@ const De = /* @__PURE__ */ r("span", { class: "hidden whitespace-nowrap sm:inlin
40
40
  EDS: { label: "Equipment Data", colour: "#708090", icon: '<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><rect x="8" y="2" width="8" height="4" rx="1" ry="1"/><line x1="8" y1="12" x2="16" y2="12"/><line x1="8" y1="16" x2="14" y2="16"/>' },
41
41
  TIS: { label: "Training Sheets", colour: "#4682b4", icon: '<line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/>' },
42
42
  Training: { label: "Training", colour: "#3f7cac", icon: '<path d="M22 10 12 5 2 10l10 5 10-5z"/><path d="M6 12v5c0 1 2.7 3 6 3s6-2 6-3v-5"/>' }
43
- }, Be = {
43
+ }, Ue = {
44
44
  colour: "#9aa4ad",
45
45
  icon: '<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>'
46
46
  };
47
- function Re(e, l = {}) {
48
- const n = { ...U, ...l };
49
- return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : { ...Be, label: e };
47
+ function Ve(e, o = {}) {
48
+ const t = { ...K, ...o };
49
+ return Object.prototype.hasOwnProperty.call(t, e) ? t[e] : { ...Ue, label: e };
50
50
  }
51
- function Ve(e) {
52
- return (e == null ? "" : String(e)).replace(/[&<>"']/g, (l) => ({
51
+ function Ke(e) {
52
+ return (e == null ? "" : String(e)).replace(/[&<>"']/g, (o) => ({
53
53
  "&": "&amp;",
54
54
  "<": "&lt;",
55
55
  ">": "&gt;",
56
56
  '"': "&quot;",
57
57
  "'": "&#39;"
58
- })[l]);
58
+ })[o]);
59
59
  }
60
- function be(e) {
60
+ function Ce(e) {
61
61
  if (!e)
62
62
  return "";
63
- const l = String(e).trim();
64
- return /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(l) || /^(rgb|rgba|hsl|hsla)\([0-9.,%\s/]+\)$/i.test(l) || /^[a-z]{3,20}$/i.test(l) ? l : "";
63
+ const o = String(e).trim();
64
+ return /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(o) || /^(rgb|rgba|hsl|hsla)\([0-9.,%\s/]+\)$/i.test(o) || /^[a-z]{3,20}$/i.test(o) ? o : "";
65
65
  }
66
- function j(e) {
66
+ function B(e) {
67
67
  if (!e)
68
68
  return "";
69
- const l = String(e).trim();
70
- if (l.includes("\\"))
69
+ const o = String(e).trim();
70
+ if (o.includes("\\"))
71
71
  return "";
72
- let n;
72
+ let t;
73
73
  try {
74
- n = new URL(l, "https://url-check.invalid/");
74
+ t = new URL(o, "https://url-check.invalid/");
75
75
  } catch {
76
76
  return "";
77
77
  }
78
- return n.protocol === "http:" || n.protocol === "https:" ? l : "";
78
+ return t.protocol === "http:" || t.protocol === "https:" ? o : "";
79
79
  }
80
- function Ke(e) {
81
- return String(e || "").toLowerCase().split(/\s+/).filter((l) => l.length >= 2);
80
+ function Ge(e) {
81
+ return String(e || "").toLowerCase().split(/\s+/).filter((o) => o.length >= 2);
82
82
  }
83
- function ce(e, l) {
84
- const n = Ve(e);
85
- if (!l || !l.length)
86
- return n;
87
- const h = new RegExp(`(${l.map((f) => f.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, "ig");
88
- return n.replace(h, "<mark>$1</mark>");
83
+ function ue(e, o) {
84
+ const t = Ke(e);
85
+ if (!o || !o.length)
86
+ return t;
87
+ const f = new RegExp(`(${o.map((d) => d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, "ig");
88
+ return t.replace(f, "<mark>$1</mark>");
89
89
  }
90
90
  const We = {
91
91
  video: '<polygon points="23 7 16 12 23 17 23 7"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/>',
@@ -96,49 +96,49 @@ const We = {
96
96
  presentation: '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><rect x="8" y="12" width="8" height="5" rx="1"/>',
97
97
  document: '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/>'
98
98
  };
99
- function qe(e, l) {
100
- return typeof e != "string" ? l : We[e.toLowerCase()] || l;
99
+ function qe(e, o) {
100
+ return typeof e != "string" ? o : We[e.toLowerCase()] || o;
101
101
  }
102
- const Q = "zui.search.recent", ke = 5;
103
- function F() {
102
+ const oe = "zui.search.recent", _e = 5;
103
+ function ee() {
104
104
  try {
105
- const e = window.localStorage.getItem(Q);
105
+ const e = window.localStorage.getItem(oe);
106
106
  if (!e)
107
107
  return [];
108
- const l = JSON.parse(e);
109
- return Array.isArray(l) ? l.filter((n) => typeof n == "string" && n.trim().length > 0).slice(0, ke) : [];
108
+ const o = JSON.parse(e);
109
+ return Array.isArray(o) ? o.filter((t) => typeof t == "string" && t.trim().length > 0).slice(0, _e) : [];
110
110
  } catch {
111
111
  return [];
112
112
  }
113
113
  }
114
- function Ge(e) {
115
- const l = typeof e == "string" ? e.trim() : "";
116
- if (!l)
117
- return F();
118
- const n = [l, ...F().filter((h) => h.toLowerCase() !== l.toLowerCase())].slice(0, ke);
114
+ function Fe(e) {
115
+ const o = typeof e == "string" ? e.trim() : "";
116
+ if (!o)
117
+ return ee();
118
+ const t = [o, ...ee().filter((f) => f.toLowerCase() !== o.toLowerCase())].slice(0, _e);
119
119
  try {
120
- window.localStorage.setItem(Q, JSON.stringify(n));
120
+ window.localStorage.setItem(oe, JSON.stringify(t));
121
121
  } catch {
122
122
  }
123
- return n;
123
+ return t;
124
124
  }
125
- function Fe() {
125
+ function Ye() {
126
126
  try {
127
- window.localStorage.removeItem(Q);
127
+ window.localStorage.removeItem(oe);
128
128
  } catch {
129
129
  }
130
130
  return [];
131
131
  }
132
- const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-search-field flex items-center gap-2.5 border-b-[1px] border-proclusteal-200 dark:border-line px-4 py-3.5" }, Je = ["placeholder"], Qe = {
132
+ const re = (e) => (Te("data-v-7b7d8437"), e = e(), Ne(), e), Je = { class: "zui-search-field flex items-center gap-2.5 border-b-[1px] border-proclusteal-200 dark:border-line px-4 py-3.5" }, Qe = ["placeholder"], Xe = {
133
133
  key: 0,
134
134
  class: "px-[18px] pb-0.5 pt-3.5 text-[15px] font-extrabold text-[#1e262c] dark:text-content"
135
- }, Xe = {
135
+ }, Ze = {
136
136
  key: 1,
137
137
  class: "border-b-[1px] border-proclusteal-200 dark:border-line px-[18px] pb-3 pt-2.5"
138
- }, Ze = ["onClick"], et = {
138
+ }, et = ["onClick"], tt = {
139
139
  key: 0,
140
140
  class: "zui-search-recent py-1.5"
141
- }, tt = { class: "flex items-center justify-between px-[18px] py-2" }, nt = /* @__PURE__ */ X(() => /* @__PURE__ */ r("span", { class: "text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700 dark:text-content" }, "Recent searches", -1)), ot = ["onClick"], at = /* @__PURE__ */ X(() => /* @__PURE__ */ r("svg", {
141
+ }, nt = { class: "flex items-center justify-between px-[18px] py-2" }, ot = /* @__PURE__ */ re(() => /* @__PURE__ */ a("span", { class: "text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700 dark:text-content" }, "Recent searches", -1)), rt = ["onClick"], at = /* @__PURE__ */ re(() => /* @__PURE__ */ a("svg", {
142
142
  class: "h-4 w-4 flex-none text-[#9aa4ad]",
143
143
  viewBox: "0 0 24 24",
144
144
  fill: "none",
@@ -147,13 +147,13 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
147
147
  "stroke-linecap": "round",
148
148
  "stroke-linejoin": "round"
149
149
  }, [
150
- /* @__PURE__ */ r("circle", {
150
+ /* @__PURE__ */ a("circle", {
151
151
  cx: "12",
152
152
  cy: "12",
153
153
  r: "10"
154
154
  }),
155
- /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
156
- ], -1)), rt = { class: "min-w-0 flex-1 truncate" }, lt = { class: "zui-search-group sticky top-0 z-[1] border-t-[1px] border-proclusteal-200 dark:border-line bg-proclusteal-150 dark:bg-surface px-[18px] py-2 text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700 dark:text-content" }, st = { class: "ml-0.5 text-[#667079] dark:text-content-muted" }, it = ["href", "target", "rel", "data-row-idx", "onClick", "onMouseenter"], ct = ["innerHTML"], ut = { class: "min-w-0 flex-1" }, dt = { class: "flex min-w-0 items-center gap-[6px]" }, pt = ["aria-label", "innerHTML"], ft = ["innerHTML"], xt = ["innerHTML"], ht = /* @__PURE__ */ X(() => /* @__PURE__ */ r("svg", {
155
+ /* @__PURE__ */ a("polyline", { points: "12 6 12 12 16 14" })
156
+ ], -1)), lt = { class: "min-w-0 flex-1 truncate" }, st = { class: "zui-search-group sticky top-0 z-[1] border-t-[1px] border-proclusteal-200 dark:border-line bg-proclusteal-150 dark:bg-surface px-[18px] py-2 text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700 dark:text-content" }, it = { class: "ml-0.5 text-[#667079] dark:text-content-muted" }, ct = ["href", "target", "rel", "data-row-idx", "onClick", "onMouseenter"], ut = ["innerHTML"], dt = { class: "min-w-0 flex-1" }, pt = { class: "flex min-w-0 items-center gap-[6px]" }, ft = ["aria-label", "innerHTML"], xt = ["innerHTML"], ht = ["innerHTML"], yt = /* @__PURE__ */ re(() => /* @__PURE__ */ a("svg", {
157
157
  class: "h-4 w-4 flex-none text-[#c2cad1] dark:text-content-muted",
158
158
  viewBox: "0 0 24 24",
159
159
  fill: "none",
@@ -162,10 +162,10 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
162
162
  "stroke-linecap": "round",
163
163
  "stroke-linejoin": "round"
164
164
  }, [
165
- /* @__PURE__ */ r("polyline", { points: "9 18 15 12 9 6" })
166
- ], -1)), ue = "zui-search-chip mb-2 mr-2 inline-flex cursor-pointer items-center gap-[7px] rounded-[20px] border-[1px] border-[#dde3e8] dark:border-line bg-[#f4f6f8] dark:bg-surface px-3.5 py-1.5 text-[13px] font-bold text-proclusteal-700 dark:text-content hover:border-proclusteal-950 dark:hover:border-focus", de = "!border-proclusteal-950 !bg-proclusteal-950 !text-white", K = "zui-search-state px-5 py-[26px] text-center text-[13px] font-medium text-[#667079] dark:text-content-muted", yt = {
165
+ /* @__PURE__ */ a("polyline", { points: "9 18 15 12 9 6" })
166
+ ], -1)), de = "zui-search-chip mb-2 mr-2 inline-flex cursor-pointer items-center gap-[7px] rounded-[20px] border-[1px] border-[#dde3e8] dark:border-line bg-[#f4f6f8] dark:bg-surface px-3.5 py-1.5 text-[13px] font-bold text-proclusteal-700 dark:text-content hover:border-proclusteal-950 dark:hover:border-focus", pe = "!border-proclusteal-950 !bg-proclusteal-950 !text-white", J = "zui-search-state px-5 py-[26px] text-center text-[13px] font-medium text-[#667079] dark:text-content-muted", vt = {
167
167
  __name: "GlobalSearchModal",
168
- props: /* @__PURE__ */ le({
168
+ props: /* @__PURE__ */ se({
169
169
  searchProvider: {
170
170
  type: Function,
171
171
  required: !0
@@ -190,28 +190,28 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
190
190
  open: { type: Boolean, default: !1 },
191
191
  openModifiers: {}
192
192
  }),
193
- emits: /* @__PURE__ */ le(["navigate"], ["update:open"]),
194
- setup(e, { emit: l }) {
195
- const n = e, h = l, f = $e(e, "open"), y = fe(), w = k(null), $ = k(null), T = k(null), g = k(""), _ = k(""), m = k([]), x = k("all"), o = k("zero"), d = k(-1), p = k([]);
196
- let S = null, E = 0, D = null, z = null;
197
- const Z = C(() => Ke(_.value)), ee = (t) => Re(t, n.types), te = C(() => {
198
- let t = 0;
193
+ emits: /* @__PURE__ */ se(["navigate"], ["update:open"]),
194
+ setup(e, { emit: o }) {
195
+ const t = e, f = o, d = Ee(e, "open"), p = he(), _ = b(null), $ = b(null), M = b(null), w = b(""), E = b(""), m = b([]), x = b("all"), s = b("zero"), h = b(-1), y = b([]);
196
+ let z = null, N = 0, j = null, I = null;
197
+ const W = A(() => Ge(E.value)), q = (n) => Ve(n, t.types), F = A(() => {
198
+ let n = 0;
199
199
  return m.value.filter((u) => x.value === "all" || u.type === x.value).map((u) => {
200
- const s = ee(u.type);
200
+ const l = q(u.type);
201
201
  return {
202
202
  type: u.type,
203
- label: s.label,
203
+ label: l.label,
204
204
  items: u.items.map((c) => ({
205
- url: j(c.Url),
206
- titleHtml: ce(c.Title, Z.value),
207
- subtitleHtml: ce(c.Subtitle, Z.value),
208
- tileColour: be(c.Colour) || s.colour,
205
+ url: B(c.Url),
206
+ titleHtml: ue(c.Title, W.value),
207
+ subtitleHtml: ue(c.Subtitle, W.value),
208
+ tileColour: Ce(c.Colour) || l.colour,
209
209
  // #518, REVISED 2026-09-26 (user: "the main icon to be Ref Library and then a
210
210
  // small icon next to the name to show what type of document it is"). The tile
211
211
  // carries the GROUP icon again - it is what tells the reader which part of
212
212
  // Proclus a hit came from, and the first revision threw that away by putting the
213
213
  // file type there instead.
214
- tileIcon: s.icon,
214
+ tileIcon: l.icon,
215
215
  // The file type, as a small badge beside the title. `null` fallback rather than
216
216
  // the group icon: an item with no kind must render NO badge, not a second copy
217
217
  // of the tile icon next to its own name.
@@ -220,131 +220,131 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
220
220
  // #519: a file opens in a new tab so the search - and whatever the user was
221
221
  // doing behind it - is still there when they close the document. The ITEM may
222
222
  // override its group, because one group can hold both files and pages.
223
- newWindow: c.NewWindow === !0 || c.NewWindow !== !1 && s.newWindow === !0,
224
- flatIdx: t++
223
+ newWindow: c.NewWindow === !0 || c.NewWindow !== !1 && l.newWindow === !0,
224
+ flatIdx: n++
225
225
  }))
226
226
  };
227
227
  });
228
- }), ne = C(() => te.value.flatMap((t) => t.items)), ge = C(() => m.value.reduce((t, u) => t + u.items.length, 0));
229
- function R(t) {
230
- const u = ne.value;
228
+ }), v = A(() => F.value.flatMap((n) => n.items)), k = A(() => m.value.reduce((n, u) => n + u.items.length, 0));
229
+ function S(n) {
230
+ const u = v.value;
231
231
  if (!u.length) {
232
- d.value = -1;
232
+ h.value = -1;
233
233
  return;
234
234
  }
235
- d.value = Math.min(Math.max(t, 0), u.length - 1), se(() => {
235
+ h.value = Math.min(Math.max(n, 0), u.length - 1), ie(() => {
236
236
  var c;
237
- const s = (c = T.value) == null ? void 0 : c.querySelector(`[data-row-idx="${d.value}"]`);
238
- s == null || s.scrollIntoView({ block: "nearest" });
237
+ const l = (c = M.value) == null ? void 0 : c.querySelector(`[data-row-idx="${h.value}"]`);
238
+ l == null || l.scrollIntoView({ block: "nearest" });
239
239
  });
240
240
  }
241
- function oe(t) {
241
+ function U(n) {
242
242
  var u;
243
- x.value = t, R(0), (u = w.value) == null || u.focus();
243
+ x.value = n, S(0), (u = _.value) == null || u.focus();
244
244
  }
245
- function ae(t, u = !1) {
246
- var s, c;
247
- if (t) {
245
+ function ae(n, u = !1) {
246
+ var l, c;
247
+ if (n) {
248
248
  if (u) {
249
- window.open(t, "_blank", "noopener"), L();
249
+ window.open(n, "_blank", "noopener"), R();
250
250
  return;
251
251
  }
252
- h("navigate", t), (c = (s = y == null ? void 0 : y.vnode) == null ? void 0 : s.props) != null && c.onNavigate || (window.location.href = t), L();
252
+ f("navigate", n), (c = (l = p == null ? void 0 : p.vnode) == null ? void 0 : l.props) != null && c.onNavigate || (window.location.href = n), R();
253
253
  }
254
254
  }
255
- function L() {
256
- f.value = !1;
255
+ function R() {
256
+ d.value = !1;
257
257
  }
258
- async function we(t) {
259
- const u = ++E;
260
- _.value = t;
258
+ async function Se(n) {
259
+ const u = ++N;
260
+ E.value = n;
261
261
  try {
262
- const s = await n.searchProvider(t);
263
- if (u !== E || !f.value)
262
+ const l = await t.searchProvider(n);
263
+ if (u !== N || !d.value)
264
264
  return;
265
- m.value = s && s.groups || [], x.value = "all", o.value = m.value.length ? "results" : "empty", m.value.length && (p.value = Ge(t)), R(0);
265
+ m.value = l && l.groups || [], x.value = "all", s.value = m.value.length ? "results" : "empty", m.value.length && (y.value = Fe(n)), S(0);
266
266
  } catch {
267
- if (u !== E || !f.value)
267
+ if (u !== N || !d.value)
268
268
  return;
269
- m.value = [], o.value = "error", d.value = -1;
269
+ m.value = [], s.value = "error", h.value = -1;
270
270
  }
271
271
  }
272
- q(g, (t) => {
273
- clearTimeout(S);
274
- const u = t.trim();
275
- if (u.length < n.minChars) {
276
- E++, m.value = [], o.value = u.length ? "hint" : "zero", d.value = -1;
272
+ Q(w, (n) => {
273
+ clearTimeout(z);
274
+ const u = n.trim();
275
+ if (u.length < t.minChars) {
276
+ N++, m.value = [], s.value = u.length ? "hint" : "zero", h.value = -1;
277
277
  return;
278
278
  }
279
- S = setTimeout(() => we(u), n.debounce);
280
- }), q(f, (t) => {
281
- t ? (D = document.activeElement, p.value = F(), g.value = "", _.value = "", m.value = [], x.value = "all", o.value = "zero", d.value = -1, z = document.body.style.overflow, document.body.style.overflow = "hidden", se(() => {
279
+ z = setTimeout(() => Se(u), t.debounce);
280
+ }), Q(d, (n) => {
281
+ n ? (j = document.activeElement, y.value = ee(), w.value = "", E.value = "", m.value = [], x.value = "all", s.value = "zero", h.value = -1, I = document.body.style.overflow, document.body.style.overflow = "hidden", ie(() => {
282
282
  var u;
283
- return (u = w.value) == null ? void 0 : u.focus();
284
- })) : (clearTimeout(S), E++, z !== null && (document.body.style.overflow = z, z = null), D != null && D.focus && D.focus());
283
+ return (u = _.value) == null ? void 0 : u.focus();
284
+ })) : (clearTimeout(z), N++, I !== null && (document.body.style.overflow = I, I = null), j != null && j.focus && j.focus());
285
285
  }, { immediate: !0 });
286
- function Ce(t) {
286
+ function $e(n) {
287
287
  var u;
288
- if (t.key === "Escape") {
289
- t.preventDefault(), L();
288
+ if (n.key === "Escape") {
289
+ n.preventDefault(), R();
290
290
  return;
291
291
  }
292
- if (t.key === "ArrowDown") {
293
- t.preventDefault(), R(d.value + 1);
292
+ if (n.key === "ArrowDown") {
293
+ n.preventDefault(), S(h.value + 1);
294
294
  return;
295
295
  }
296
- if (t.key === "ArrowUp") {
297
- t.preventDefault(), R(d.value - 1);
296
+ if (n.key === "ArrowUp") {
297
+ n.preventDefault(), S(h.value - 1);
298
298
  return;
299
299
  }
300
- if (t.key === "Enter") {
301
- if (t.isComposing)
300
+ if (n.key === "Enter") {
301
+ if (n.isComposing)
302
302
  return;
303
- const s = ne.value;
304
- if (!s.length)
303
+ const l = v.value;
304
+ if (!l.length)
305
305
  return;
306
- t.preventDefault();
307
- const c = s[d.value >= 0 ? d.value : 0];
306
+ n.preventDefault();
307
+ const c = l[h.value >= 0 ? h.value : 0];
308
308
  ae(c.url, c.newWindow);
309
309
  return;
310
310
  }
311
- if (t.key === "Tab") {
312
- const s = (u = $.value) == null ? void 0 : u.querySelectorAll('input, button, a[href], [tabindex]:not([tabindex="-1"])');
313
- if (!(s != null && s.length))
311
+ if (n.key === "Tab") {
312
+ const l = (u = $.value) == null ? void 0 : u.querySelectorAll('input, button, a[href], [tabindex]:not([tabindex="-1"])');
313
+ if (!(l != null && l.length))
314
314
  return;
315
- const c = s[0], P = s[s.length - 1];
316
- t.shiftKey && document.activeElement === c ? (t.preventDefault(), P.focus()) : !t.shiftKey && document.activeElement === P && (t.preventDefault(), c.focus());
315
+ const c = l[0], V = l[l.length - 1];
316
+ n.shiftKey && document.activeElement === c ? (n.preventDefault(), V.focus()) : !n.shiftKey && document.activeElement === V && (n.preventDefault(), c.focus());
317
317
  }
318
318
  }
319
- function _e(t) {
320
- if (!t)
319
+ function Me(n) {
320
+ if (!n)
321
321
  return !1;
322
- const u = (t.tagName || "").toLowerCase();
323
- return u === "input" || u === "textarea" || u === "select" || t.isContentEditable;
322
+ const u = (n.tagName || "").toLowerCase();
323
+ return u === "input" || u === "textarea" || u === "select" || n.isContentEditable;
324
324
  }
325
- function re(t) {
326
- if (t.key === "Escape" && f.value) {
327
- t.preventDefault(), L();
325
+ function le(n) {
326
+ if (n.key === "Escape" && d.value) {
327
+ n.preventDefault(), R();
328
328
  return;
329
329
  }
330
- if ((t.ctrlKey || t.metaKey) && (t.key === "k" || t.key === "K")) {
331
- t.preventDefault(), f.value = !f.value;
330
+ if ((n.ctrlKey || n.metaKey) && (n.key === "k" || n.key === "K")) {
331
+ n.preventDefault(), d.value = !d.value;
332
332
  return;
333
333
  }
334
- t.key === "/" && !f.value && !_e(document.activeElement) && (t.preventDefault(), f.value = !0);
334
+ n.key === "/" && !d.value && !Me(document.activeElement) && (n.preventDefault(), d.value = !0);
335
335
  }
336
- return Se(() => {
337
- document.addEventListener("keydown", re);
338
- }), Me(() => {
339
- document.removeEventListener("keydown", re), clearTimeout(S), E++, z !== null && (document.body.style.overflow = z, z = null);
340
- }), (t, u) => (a(), A(Ie, { to: "body" }, [
341
- f.value ? (a(), i("div", {
336
+ return ye(() => {
337
+ document.addEventListener("keydown", le);
338
+ }), ve(() => {
339
+ document.removeEventListener("keydown", le), clearTimeout(z), N++, I !== null && (document.body.style.overflow = I, I = null);
340
+ }), (n, u) => (r(), H(Ie, { to: "body" }, [
341
+ d.value ? (r(), i("div", {
342
342
  key: 0,
343
343
  class: "zui-search-overlay fixed inset-0 z-[20000] flex items-start justify-center bg-[#11181c]/45",
344
- onMousedown: H(L, ["self"]),
345
- onKeydown: Ce
344
+ onMousedown: D(R, ["self"]),
345
+ onKeydown: $e
346
346
  }, [
347
- r("div", {
347
+ a("div", {
348
348
  ref_key: "panelEl",
349
349
  ref: $,
350
350
  class: "zui-search-panel mt-[4vh] flex max-h-[88vh] w-[94%] max-w-[720px] flex-col overflow-hidden rounded-[14px] bg-surface-raised font-sans shadow-[0_30px_80px_rgba(0,0,0,0.3)] sm:mt-[8vh] sm:max-h-[82vh]",
@@ -352,110 +352,110 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
352
352
  "aria-modal": "true",
353
353
  "aria-label": "Search"
354
354
  }, [
355
- r("div", Ye, [
356
- I(ve, { class: "!h-[18px] !w-[18px] flex-none text-proclusteal-400 dark:text-content-muted" }),
357
- Y(r("input", {
355
+ a("div", Je, [
356
+ L(ge, { class: "!h-[18px] !w-[18px] flex-none text-proclusteal-400 dark:text-content-muted" }),
357
+ te(a("input", {
358
358
  ref_key: "inputEl",
359
- ref: w,
360
- "onUpdate:modelValue": u[0] || (u[0] = (s) => g.value = s),
359
+ ref: _,
360
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => w.value = l),
361
361
  type: "text",
362
362
  autocomplete: "off",
363
363
  placeholder: e.placeholder,
364
364
  class: "zui-search-input flex-1 border-0 bg-[transparent] p-0 text-[16px] text-[#1e262c] dark:text-content outline-none placeholder:text-proclusteal-400 dark:placeholder:text-content-muted focus:ring-0"
365
- }, null, 8, Je), [
366
- [Te, g.value]
365
+ }, null, 8, Qe), [
366
+ [Ae, w.value]
367
367
  ]),
368
- r("button", {
368
+ a("button", {
369
369
  type: "button",
370
370
  class: "cursor-pointer border-0 bg-[transparent] px-1 text-[22px] leading-none text-proclusteal-400 dark:text-content-muted hover:text-proclusteal-700 dark:hover:text-content",
371
371
  "aria-label": "Close search",
372
372
  title: "Close (Esc)",
373
- onClick: L
373
+ onClick: R
374
374
  }, "×")
375
375
  ]),
376
- o.value === "results" ? (a(), i("div", Qe, " Search results ")) : v("", !0),
377
- o.value === "results" ? (a(), i("div", Xe, [
378
- r("button", {
376
+ s.value === "results" ? (r(), i("div", Xe, " Search results ")) : g("", !0),
377
+ s.value === "results" ? (r(), i("div", Ze, [
378
+ a("button", {
379
379
  type: "button",
380
- class: M([ue, x.value === "all" ? de : ""]),
381
- onClick: u[1] || (u[1] = (s) => oe("all"))
380
+ class: T([de, x.value === "all" ? pe : ""]),
381
+ onClick: u[1] || (u[1] = (l) => U("all"))
382
382
  }, [
383
- B(" All "),
384
- r("span", {
385
- class: M(["font-bold", x.value === "all" ? "opacity-85" : "opacity-60"])
386
- }, "(" + b(ge.value) + ")", 3)
383
+ G(" All "),
384
+ a("span", {
385
+ class: T(["font-bold", x.value === "all" ? "opacity-85" : "opacity-60"])
386
+ }, "(" + C(k.value) + ")", 3)
387
387
  ], 2),
388
- (a(!0), i(N, null, O(m.value, (s) => (a(), i("button", {
389
- key: s.type,
388
+ (r(!0), i(O, null, P(m.value, (l) => (r(), i("button", {
389
+ key: l.type,
390
390
  type: "button",
391
- class: M([ue, x.value === s.type ? de : ""]),
392
- onClick: (c) => oe(s.type)
391
+ class: T([de, x.value === l.type ? pe : ""]),
392
+ onClick: (c) => U(l.type)
393
393
  }, [
394
- B(b(ee(s.type).label) + " ", 1),
395
- r("span", {
396
- class: M(["font-bold", x.value === s.type ? "opacity-85" : "opacity-60"])
397
- }, "(" + b(s.items.length) + ")", 3)
398
- ], 10, Ze))), 128))
399
- ])) : v("", !0),
400
- r("div", {
394
+ G(C(q(l.type).label) + " ", 1),
395
+ a("span", {
396
+ class: T(["font-bold", x.value === l.type ? "opacity-85" : "opacity-60"])
397
+ }, "(" + C(l.items.length) + ")", 3)
398
+ ], 10, et))), 128))
399
+ ])) : g("", !0),
400
+ a("div", {
401
401
  ref_key: "resultsEl",
402
- ref: T,
402
+ ref: M,
403
403
  class: "zui-search-results overflow-y-auto pb-2.5"
404
404
  }, [
405
- o.value === "zero" && p.value.length ? (a(), i("div", et, [
406
- r("div", tt, [
407
- nt,
408
- r("button", {
405
+ s.value === "zero" && y.value.length ? (r(), i("div", tt, [
406
+ a("div", nt, [
407
+ ot,
408
+ a("button", {
409
409
  type: "button",
410
410
  class: "cursor-pointer border-0 bg-[transparent] p-0 text-[12px] font-semibold text-[#667079] dark:text-content-muted hover:text-proclusteal-950 dark:hover:text-focus",
411
411
  "data-test": "search-recent-clear",
412
- onClick: u[2] || (u[2] = (s) => p.value = W(Fe)())
412
+ onClick: u[2] || (u[2] = (l) => y.value = X(Ye)())
413
413
  }, "Clear")
414
414
  ]),
415
- (a(!0), i(N, null, O(p.value, (s, c) => (a(), i("button", {
416
- key: s,
415
+ (r(!0), i(O, null, P(y.value, (l, c) => (r(), i("button", {
416
+ key: l,
417
417
  type: "button",
418
418
  "data-test": "search-recent-item",
419
419
  class: "zui-search-recent-row flex w-full cursor-pointer items-center gap-[13px] border-0 bg-[transparent] px-[18px] py-[9px] text-left text-[14px] text-[#1e262c] dark:text-content hover:bg-proclusteal-50 dark:hover:bg-surface-hover",
420
- onClick: (P) => g.value = s
420
+ onClick: (V) => w.value = l
421
421
  }, [
422
422
  at,
423
- r("span", rt, b(s), 1)
424
- ], 8, ot))), 128))
425
- ])) : o.value === "zero" ? (a(), i("div", {
423
+ a("span", lt, C(l), 1)
424
+ ], 8, rt))), 128))
425
+ ])) : s.value === "zero" ? (r(), i("div", {
426
426
  key: 1,
427
- class: M(K)
428
- }, " Search across SOPs, incidents, assets, people and more — you only ever see what you have access to. ")) : o.value === "hint" ? (a(), i("div", {
427
+ class: T(J)
428
+ }, " Search across SOPs, incidents, assets, people and more — you only ever see what you have access to. ")) : s.value === "hint" ? (r(), i("div", {
429
429
  key: 2,
430
- class: M(K)
431
- }, " Keep typing… enter at least " + b(e.minChars) + " characters to search. ", 1)) : o.value === "empty" ? (a(), i("div", {
430
+ class: T(J)
431
+ }, " Keep typing… enter at least " + C(e.minChars) + " characters to search. ", 1)) : s.value === "empty" ? (r(), i("div", {
432
432
  key: 3,
433
- class: M(K)
434
- }, " No results for “" + b(_.value) + "” — try a broader term or a code. ", 1)) : o.value === "error" ? (a(), i("div", {
433
+ class: T(J)
434
+ }, " No results for “" + C(E.value) + "” — try a broader term or a code. ", 1)) : s.value === "error" ? (r(), i("div", {
435
435
  key: 4,
436
- class: M(K)
437
- }, " Search is temporarily unavailable. ")) : (a(!0), i(N, { key: 5 }, O(te.value, (s) => (a(), i("div", {
438
- key: s.type
436
+ class: T(J)
437
+ }, " Search is temporarily unavailable. ")) : (r(!0), i(O, { key: 5 }, P(F.value, (l) => (r(), i("div", {
438
+ key: l.type
439
439
  }, [
440
- r("div", lt, [
441
- B(b(s.label) + " ", 1),
442
- r("span", st, "(" + b(s.items.length) + ")", 1)
440
+ a("div", st, [
441
+ G(C(l.label) + " ", 1),
442
+ a("span", it, "(" + C(l.items.length) + ")", 1)
443
443
  ]),
444
- (a(!0), i(N, null, O(s.items, (c) => (a(), i("a", {
444
+ (r(!0), i(O, null, P(l.items, (c) => (r(), i("a", {
445
445
  key: c.flatIdx,
446
446
  href: c.url || null,
447
447
  target: c.newWindow ? "_blank" : null,
448
448
  rel: c.newWindow ? "noopener noreferrer" : null,
449
- class: M(["zui-search-row flex items-center gap-[13px] px-[18px] py-[11px] text-[#1e262c] dark:text-content no-underline", { "bg-proclusteal-50 dark:bg-surface-hover": c.flatIdx === d.value }]),
449
+ class: T(["zui-search-row flex items-center gap-[13px] px-[18px] py-[11px] text-[#1e262c] dark:text-content no-underline", { "bg-proclusteal-50 dark:bg-surface-hover": c.flatIdx === h.value }]),
450
450
  "data-row-idx": c.flatIdx,
451
- onClick: H((P) => ae(c.url, c.newWindow), ["exact", "prevent"]),
452
- onMouseenter: (P) => d.value = c.flatIdx
451
+ onClick: D((V) => ae(c.url, c.newWindow), ["exact", "prevent"]),
452
+ onMouseenter: (V) => h.value = c.flatIdx
453
453
  }, [
454
- r("span", {
454
+ a("span", {
455
455
  class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] text-white",
456
- style: G({ background: c.tileColour })
456
+ style: Z({ background: c.tileColour })
457
457
  }, [
458
- (a(), i("svg", {
458
+ (r(), i("svg", {
459
459
  class: "h-5 w-5",
460
460
  viewBox: "0 0 24 24",
461
461
  fill: "none",
@@ -464,11 +464,11 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
464
464
  "stroke-linecap": "round",
465
465
  "stroke-linejoin": "round",
466
466
  innerHTML: c.tileIcon
467
- }, null, 8, ct))
467
+ }, null, 8, ut))
468
468
  ], 4),
469
- r("span", ut, [
470
- r("span", dt, [
471
- c.kindIcon ? (a(), i("svg", {
469
+ a("span", dt, [
470
+ a("span", pt, [
471
+ c.kindIcon ? (r(), i("svg", {
472
472
  key: 0,
473
473
  class: "h-[13px] w-[13px] flex-none text-[#8a969c] dark:text-content-muted",
474
474
  viewBox: "0 0 24 24",
@@ -480,26 +480,26 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
480
480
  "aria-label": c.kindLabel,
481
481
  role: "img",
482
482
  innerHTML: c.kindIcon
483
- }, null, 8, pt)) : v("", !0),
484
- r("span", {
483
+ }, null, 8, ft)) : g("", !0),
484
+ a("span", {
485
485
  class: "gs-marked min-w-0 truncate text-[14px] font-bold",
486
486
  innerHTML: c.titleHtml
487
- }, null, 8, ft)
487
+ }, null, 8, xt)
488
488
  ]),
489
- r("span", {
489
+ a("span", {
490
490
  class: "gs-marked mt-0.5 block truncate text-[12.5px] text-[#5b6570] dark:text-content-muted",
491
491
  innerHTML: c.subtitleHtml
492
- }, null, 8, xt)
492
+ }, null, 8, ht)
493
493
  ]),
494
- ht
495
- ], 42, it))), 128))
494
+ yt
495
+ ], 42, ct))), 128))
496
496
  ]))), 128))
497
497
  ], 512)
498
498
  ], 512)
499
- ], 32)) : v("", !0)
499
+ ], 32)) : g("", !0)
500
500
  ]));
501
501
  }
502
- }, vt = /* @__PURE__ */ Le(yt, [["__scopeId", "data-v-7b7d8437"]]), pe = {
502
+ }, mt = /* @__PURE__ */ Oe(vt, [["__scopeId", "data-v-7b7d8437"]]), fe = {
503
503
  "reference library": "RefLib",
504
504
  reflib: "RefLib",
505
505
  repository: "RefLib",
@@ -517,42 +517,42 @@ const X = (e) => (Ae("data-v-7b7d8437"), e = e(), Ne(), e), Ye = { class: "zui-s
517
517
  directory: "Contact",
518
518
  "telephone directory": "Contact"
519
519
  };
520
- function mt(e) {
520
+ function bt(e) {
521
521
  if (!e)
522
522
  return "";
523
- const l = String(e).trim();
524
- if (!l)
523
+ const o = String(e).trim();
524
+ if (!o)
525
525
  return "";
526
- let n = null;
527
- if (Object.prototype.hasOwnProperty.call(U, l))
528
- n = l;
526
+ let t = null;
527
+ if (Object.prototype.hasOwnProperty.call(K, o))
528
+ t = o;
529
529
  else {
530
- const h = l.toLowerCase(), f = Object.keys(U).find((y) => y.toLowerCase() === h);
531
- f ? n = f : Object.prototype.hasOwnProperty.call(pe, h) && (n = pe[h]);
530
+ const f = o.toLowerCase(), d = Object.keys(K).find((p) => p.toLowerCase() === f);
531
+ d ? t = d : Object.prototype.hasOwnProperty.call(fe, f) && (t = fe[f]);
532
532
  }
533
- return !n || !Object.prototype.hasOwnProperty.call(U, n) ? "" : U[n].icon || "";
533
+ return !t || !Object.prototype.hasOwnProperty.call(K, t) ? "" : K[t].icon || "";
534
534
  }
535
- function bt(e) {
535
+ function kt(e) {
536
536
  if (!e)
537
537
  return "";
538
538
  if (e.dateText)
539
539
  return String(e.dateText);
540
- const l = e.notifyday != null ? String(e.notifyday).replace(/^0/, "") : "", n = e.notifymonthname ? String(e.notifymonthname) : "", h = e.notifyyear != null ? String(e.notifyyear) : "";
541
- return [l, n, h].filter(Boolean).join(" ");
540
+ const o = e.notifyday != null ? String(e.notifyday).replace(/^0/, "") : "", t = e.notifymonthname ? String(e.notifymonthname) : "", f = e.notifyyear != null ? String(e.notifyyear) : "";
541
+ return [o, t, f].filter(Boolean).join(" ");
542
542
  }
543
- const kt = {
543
+ const gt = {
544
544
  key: 0,
545
545
  class: "absolute -right-[3px] -top-[3px] h-2 w-2 rounded-full bg-[#dd3730] ring-2 ring-white dark:ring-surface-raised"
546
- }, gt = { class: "absolute right-0 top-full z-30 mt-2 w-[400px] max-w-[90vw] origin-top-right overflow-hidden rounded-[10px] border-[1px] border-proclusteal-300 dark:border-line bg-surface-raised shadow-zeal-md" }, wt = { class: "max-h-[420px] overflow-y-auto" }, Ct = {
546
+ }, wt = { class: "absolute right-0 top-full z-30 mt-2 w-[400px] max-w-[90vw] origin-top-right overflow-hidden rounded-[10px] border-[1px] border-proclusteal-300 dark:border-line bg-surface-raised shadow-zeal-md" }, Ct = { class: "max-h-[420px] overflow-y-auto" }, _t = {
547
547
  key: 0,
548
548
  class: "px-5 py-[26px] text-center text-[13px] font-medium text-[#667079] dark:text-content-muted"
549
- }, _t = {
549
+ }, St = {
550
550
  key: 1,
551
551
  class: "px-5 py-[26px] text-center text-[13px] font-medium text-[#667079] dark:text-content-muted"
552
- }, $t = ["onClick"], St = { class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] bg-proclusteal-950 text-white" }, Mt = ["innerHTML"], It = { class: "min-w-0 flex-1" }, Tt = { class: "block truncate text-[14px] font-bold text-[#1e262c] dark:text-content" }, At = { class: "block truncate text-[12.5px] text-[#5b6570] dark:text-content-muted" }, Nt = {
552
+ }, $t = ["onClick"], Mt = { class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] bg-proclusteal-950 text-white" }, Et = ["innerHTML"], It = { class: "min-w-0 flex-1" }, At = { class: "block truncate text-[14px] font-bold text-[#1e262c] dark:text-content" }, Tt = { class: "block truncate text-[12.5px] text-[#5b6570] dark:text-content-muted" }, Nt = {
553
553
  key: 0,
554
554
  class: "mt-0.5 block text-[12px] text-proclusteal-500 dark:text-content-muted"
555
- }, zt = { class: "flex flex-none flex-col items-center gap-2 pt-0.5 text-proclusteal-600 dark:text-content-muted" }, Ht = ["onClick"], Et = ["onClick"], Lt = ["href"], Ot = {
555
+ }, zt = { class: "flex flex-none flex-col items-center gap-2 pt-0.5 text-proclusteal-600 dark:text-content-muted" }, Lt = ["onClick"], Ht = ["onClick"], Ot = ["href"], jt = {
556
556
  __name: "HeaderNotificationDropdown",
557
557
  props: {
558
558
  // The feed as /personal/GetNotifications.ashx returns it: { data: [...] }. Null means
@@ -580,54 +580,54 @@ const kt = {
580
580
  }
581
581
  },
582
582
  emits: ["markAsRead", "deleteNotification", "navigate", "open"],
583
- setup(e, { emit: l }) {
584
- const n = e, h = l, f = k(null), y = k(!1), w = C(() => {
585
- var o;
586
- return ((o = n.notifications) == null ? void 0 : o.data) || [];
587
- }), $ = C(() => n.unreadCount !== null && n.unreadCount !== void 0 ? n.unreadCount > 0 : w.value.some((o) => o.ClassRead === "unread"));
588
- me(f, () => {
589
- y.value = !1;
583
+ setup(e, { emit: o }) {
584
+ const t = e, f = o, d = b(null), p = b(!1), _ = A(() => {
585
+ var s;
586
+ return ((s = t.notifications) == null ? void 0 : s.data) || [];
587
+ }), $ = A(() => t.unreadCount !== null && t.unreadCount !== void 0 ? t.unreadCount > 0 : _.value.some((s) => s.ClassRead === "unread"));
588
+ we(d, () => {
589
+ p.value = !1;
590
590
  });
591
- function T() {
592
- y.value = !y.value, y.value && h("open");
591
+ function M() {
592
+ p.value = !p.value, p.value && f("open");
593
593
  }
594
- function g(o) {
595
- return o && Object.prototype.hasOwnProperty.call(n.iconMap, o) && n.iconMap[o] || null;
594
+ function w(s) {
595
+ return s && Object.prototype.hasOwnProperty.call(t.iconMap, s) && t.iconMap[s] || null;
596
596
  }
597
- function _(o) {
598
- const d = g(o.VueAppTypeIcon) || g(o.AppTypeName);
599
- if (d)
600
- return { component: d, path: "" };
601
- const p = mt(o.AppTypeName);
602
- return p ? { component: null, path: p } : { component: ie, path: "" };
597
+ function E(s) {
598
+ const h = w(s.VueAppTypeIcon) || w(s.AppTypeName);
599
+ if (h)
600
+ return { component: h, path: "" };
601
+ const y = bt(s.AppTypeName);
602
+ return y ? { component: null, path: y } : { component: ce, path: "" };
603
603
  }
604
- const m = C(() => w.value.map((o) => ({
605
- item: o,
606
- icon: _(o),
607
- date: bt(o),
608
- unread: o.ClassRead === "unread"
604
+ const m = A(() => _.value.map((s) => ({
605
+ item: s,
606
+ icon: E(s),
607
+ date: kt(s),
608
+ unread: s.ClassRead === "unread"
609
609
  })));
610
- function x(o) {
611
- y.value = !1;
612
- const d = j(o);
613
- d && h("navigate", d);
610
+ function x(s) {
611
+ p.value = !1;
612
+ const h = B(s);
613
+ h && f("navigate", h);
614
614
  }
615
- return (o, d) => (a(), i("div", {
615
+ return (s, h) => (r(), i("div", {
616
616
  ref_key: "rootEl",
617
- ref: f,
617
+ ref: d,
618
618
  class: "relative font-sans"
619
619
  }, [
620
- r("button", {
620
+ a("button", {
621
621
  type: "button",
622
622
  class: "relative flex cursor-pointer items-center justify-center text-proclusteal-600 dark:text-content-muted transition-colors duration-150 hover:text-proclusteal-900 dark:hover:text-focus",
623
623
  title: "View Notifications",
624
624
  "aria-label": "View Notifications",
625
- onClick: T
625
+ onClick: M
626
626
  }, [
627
- I(ie, { class: "!h-[21px] !w-[21px]" }),
628
- $.value ? (a(), i("span", kt)) : v("", !0)
627
+ L(ce, { class: "!h-[21px] !w-[21px]" }),
628
+ $.value ? (r(), i("span", gt)) : g("", !0)
629
629
  ]),
630
- I(xe, {
630
+ L(me, {
631
631
  "enter-active-class": "transition-all ease-out duration-75",
632
632
  "enter-from-class": "scale-95 opacity-0",
633
633
  "enter-to-class": "scale-100 opacity-100",
@@ -635,20 +635,20 @@ const kt = {
635
635
  "leave-from-class": "scale-100 opacity-100",
636
636
  "leave-to-class": "scale-95 opacity-0"
637
637
  }, {
638
- default: J(() => [
639
- Y(r("div", gt, [
640
- r("div", wt, [
641
- e.notifications ? w.value.length ? v("", !0) : (a(), i("div", _t, " No notifications. ")) : (a(), i("div", Ct, " Loading notifications… ")),
642
- (a(!0), i(N, null, O(m.value, (p) => (a(), i("div", {
643
- key: p.item.NotifyID,
644
- class: M(["flex cursor-pointer items-start gap-3 border-b-[1px] border-proclusteal-200 dark:border-line px-4 py-3", p.unread ? "bg-proclusteal-50 dark:bg-surface-hover" : "bg-surface-raised"]),
645
- onClick: (S) => x(p.item.url)
638
+ default: ne(() => [
639
+ te(a("div", wt, [
640
+ a("div", Ct, [
641
+ e.notifications ? _.value.length ? g("", !0) : (r(), i("div", St, " No notifications. ")) : (r(), i("div", _t, " Loading notifications… ")),
642
+ (r(!0), i(O, null, P(m.value, (y) => (r(), i("div", {
643
+ key: y.item.NotifyID,
644
+ class: T(["flex cursor-pointer items-start gap-3 border-b-[1px] border-proclusteal-200 dark:border-line px-4 py-3", y.unread ? "bg-proclusteal-50 dark:bg-surface-hover" : "bg-surface-raised"]),
645
+ onClick: (z) => x(y.item.url)
646
646
  }, [
647
- r("span", St, [
648
- p.icon.component ? (a(), A(he(p.icon.component), {
647
+ a("span", Mt, [
648
+ y.icon.component ? (r(), H(be(y.icon.component), {
649
649
  key: 0,
650
650
  class: "!h-5 !w-5"
651
- })) : (a(), i("svg", {
651
+ })) : (r(), i("svg", {
652
652
  key: 1,
653
653
  class: "h-5 w-5",
654
654
  viewBox: "0 0 24 24",
@@ -657,57 +657,57 @@ const kt = {
657
657
  "stroke-width": "2",
658
658
  "stroke-linecap": "round",
659
659
  "stroke-linejoin": "round",
660
- innerHTML: p.icon.path
661
- }, null, 8, Mt))
660
+ innerHTML: y.icon.path
661
+ }, null, 8, Et))
662
662
  ]),
663
- r("span", It, [
664
- r("span", Tt, b(p.item.notifyname), 1),
665
- r("span", At, b(p.item.summary), 1),
666
- p.date ? (a(), i("span", Nt, b(p.date), 1)) : v("", !0)
663
+ a("span", It, [
664
+ a("span", At, C(y.item.notifyname), 1),
665
+ a("span", Tt, C(y.item.summary), 1),
666
+ y.date ? (r(), i("span", Nt, C(y.date), 1)) : g("", !0)
667
667
  ]),
668
- r("span", zt, [
669
- p.unread ? (a(), i("button", {
668
+ a("span", zt, [
669
+ y.unread ? (r(), i("button", {
670
670
  key: 0,
671
671
  type: "button",
672
672
  class: "hover:text-proclusteal-900 dark:hover:text-focus",
673
673
  title: "Mark notification as read",
674
674
  "aria-label": "Mark notification as read",
675
- onClick: H((S) => o.$emit("markAsRead", p.item.NotifyID), ["stop"])
675
+ onClick: D((z) => s.$emit("markAsRead", y.item.NotifyID), ["stop"])
676
676
  }, [
677
- I(Oe, { class: "!h-4 !w-4" })
678
- ], 8, Ht)) : v("", !0),
679
- r("button", {
677
+ L(je, { class: "!h-4 !w-4" })
678
+ ], 8, Lt)) : g("", !0),
679
+ a("button", {
680
680
  type: "button",
681
681
  class: "hover:text-[#dd3730]",
682
682
  title: "Delete notification",
683
683
  "aria-label": "Delete notification",
684
- onClick: H((S) => o.$emit("deleteNotification", p.item.NotifyID), ["stop"])
684
+ onClick: D((z) => s.$emit("deleteNotification", y.item.NotifyID), ["stop"])
685
685
  }, [
686
- I(je, { class: "!w-3" })
687
- ], 8, Et)
686
+ L(De, { class: "!w-3" })
687
+ ], 8, Ht)
688
688
  ])
689
689
  ], 10, $t))), 128))
690
690
  ]),
691
- r("a", {
692
- href: W(j)(e.notificationsUrl) || null,
691
+ a("a", {
692
+ href: X(B)(e.notificationsUrl) || null,
693
693
  class: "block border-t-[1px] border-proclusteal-200 dark:border-line px-4 py-2.5 text-center text-[13px] font-bold text-proclusteal-700 dark:text-content no-underline hover:bg-proclusteal-50 dark:hover:bg-surface-hover hover:text-proclusteal-900 dark:hover:text-focus",
694
- onClick: d[0] || (d[0] = H((p) => x(e.notificationsUrl), ["exact", "prevent"]))
695
- }, " See all notifications ", 8, Lt)
694
+ onClick: h[0] || (h[0] = D((y) => x(e.notificationsUrl), ["exact", "prevent"]))
695
+ }, " See all notifications ", 8, Ot)
696
696
  ], 512), [
697
- [ye, y.value]
697
+ [ke, p.value]
698
698
  ])
699
699
  ]),
700
700
  _: 1
701
701
  })
702
702
  ], 512));
703
703
  }
704
- }, jt = ["src"], Dt = {
704
+ }, Dt = ["src"], Rt = {
705
705
  key: 1,
706
706
  class: "inline-flex h-[34px] w-[34px] items-center justify-center rounded-full bg-proclusteal-900 text-[13px] font-bold uppercase leading-none tracking-[0.5px] text-white"
707
- }, Pt = { class: "absolute right-0 top-full z-30 mt-2 w-[260px] origin-top-right rounded-[10px] border-[1px] border-proclusteal-300 dark:border-line bg-surface-raised py-1 shadow-zeal-md" }, Ut = { class: "flex max-w-[260px] flex-col gap-0.5 whitespace-normal px-[18px] pb-2.5 pt-3" }, Bt = { class: "block text-[14px] font-bold text-proclusteal-800 dark:text-content" }, Rt = /* @__PURE__ */ r("span", { class: "my-1.5 block h-0.5 w-8 flex-none rounded-[1px] bg-[#cdd4da] dark:bg-line-strong" }, null, -1), Vt = { class: "block break-words text-[12px] leading-[1.3] text-proclusteal-600 dark:text-content-muted" }, Kt = /* @__PURE__ */ r("div", { class: "h-px bg-proclusteal-200 dark:bg-line" }, null, -1), Wt = {
707
+ }, Pt = { class: "absolute right-0 top-full z-30 mt-2 w-[260px] origin-top-right rounded-[10px] border-[1px] border-proclusteal-300 dark:border-line bg-surface-raised py-1 shadow-zeal-md" }, Bt = { class: "flex max-w-[260px] flex-col gap-0.5 whitespace-normal px-[18px] pb-2.5 pt-3" }, Ut = { class: "block text-[14px] font-bold text-proclusteal-800 dark:text-content" }, Vt = /* @__PURE__ */ a("span", { class: "my-1.5 block h-0.5 w-8 flex-none rounded-[1px] bg-[#cdd4da] dark:bg-line-strong" }, null, -1), Kt = { class: "block break-words text-[12px] leading-[1.3] text-proclusteal-600 dark:text-content-muted" }, Gt = /* @__PURE__ */ a("div", { class: "h-px bg-proclusteal-200 dark:bg-line" }, null, -1), Wt = {
708
708
  key: 0,
709
709
  class: "my-1 h-px bg-proclusteal-200 dark:bg-line"
710
- }, qt = ["href", "onClick"], Gt = {
710
+ }, qt = ["href", "onClick"], Ft = {
711
711
  __name: "HeaderUserMenu",
712
712
  props: {
713
713
  user: {
@@ -720,39 +720,39 @@ const kt = {
720
720
  }
721
721
  },
722
722
  emits: ["select"],
723
- setup(e, { emit: l }) {
724
- const n = e, h = l, f = k(null), y = k(!1), w = k(!1);
725
- q(() => n.user.avatarUrl, () => {
726
- w.value = !1;
723
+ setup(e, { emit: o }) {
724
+ const t = e, f = o, d = b(null), p = b(!1), _ = b(!1);
725
+ Q(() => t.user.avatarUrl, () => {
726
+ _.value = !1;
727
727
  });
728
- const $ = C(() => `${n.user.firstName || ""} ${n.user.surname || ""}`.trim()), T = C(() => `${(n.user.firstName || "").charAt(0)}${(n.user.surname || "").charAt(0)}`.toUpperCase());
729
- me(f, () => {
730
- y.value = !1;
728
+ const $ = A(() => `${t.user.firstName || ""} ${t.user.surname || ""}`.trim()), M = A(() => `${(t.user.firstName || "").charAt(0)}${(t.user.surname || "").charAt(0)}`.toUpperCase());
729
+ we(d, () => {
730
+ p.value = !1;
731
731
  });
732
- function g(_) {
733
- y.value = !1, h("select", _);
732
+ function w(E) {
733
+ p.value = !1, f("select", E);
734
734
  }
735
- return (_, m) => (a(), i("div", {
735
+ return (E, m) => (r(), i("div", {
736
736
  ref_key: "rootEl",
737
- ref: f,
737
+ ref: d,
738
738
  class: "relative font-sans"
739
739
  }, [
740
- r("button", {
740
+ a("button", {
741
741
  type: "button",
742
742
  class: "flex cursor-pointer items-center justify-center",
743
743
  title: "View Menu Options",
744
744
  "aria-label": "View Menu Options",
745
- onClick: m[1] || (m[1] = (x) => y.value = !y.value)
745
+ onClick: m[1] || (m[1] = (x) => p.value = !p.value)
746
746
  }, [
747
- e.user.avatarUrl && !w.value ? (a(), i("img", {
747
+ e.user.avatarUrl && !_.value ? (r(), i("img", {
748
748
  key: 0,
749
749
  src: e.user.avatarUrl,
750
750
  alt: "",
751
751
  class: "h-[34px] w-[34px] rounded-full object-cover",
752
- onError: m[0] || (m[0] = (x) => w.value = !0)
753
- }, null, 40, jt)) : (a(), i("span", Dt, b(T.value), 1))
752
+ onError: m[0] || (m[0] = (x) => _.value = !0)
753
+ }, null, 40, Dt)) : (r(), i("span", Rt, C(M.value), 1))
754
754
  ]),
755
- I(xe, {
755
+ L(me, {
756
756
  "enter-active-class": "transition-all ease-out duration-75",
757
757
  "enter-from-class": "scale-95 opacity-0",
758
758
  "enter-to-class": "scale-100 opacity-100",
@@ -760,43 +760,60 @@ const kt = {
760
760
  "leave-from-class": "scale-100 opacity-100",
761
761
  "leave-to-class": "scale-95 opacity-0"
762
762
  }, {
763
- default: J(() => [
764
- Y(r("div", Pt, [
765
- r("div", Ut, [
766
- r("span", Bt, b($.value), 1),
767
- Rt,
768
- r("span", Vt, b(e.user.orgName), 1)
763
+ default: ne(() => [
764
+ te(a("div", Pt, [
765
+ a("div", Bt, [
766
+ a("span", Ut, C($.value), 1),
767
+ Vt,
768
+ a("span", Kt, C(e.user.orgName), 1)
769
769
  ]),
770
- Kt,
771
- (a(!0), i(N, null, O(e.menuItems, (x, o) => (a(), i(N, { key: o }, [
772
- x.divider ? (a(), i("div", Wt)) : (a(), i("a", {
770
+ Gt,
771
+ (r(!0), i(O, null, P(e.menuItems, (x, s) => (r(), i(O, { key: s }, [
772
+ x.divider ? (r(), i("div", Wt)) : (r(), i("a", {
773
773
  key: 1,
774
- href: x.href && W(j)(x.href) || null,
774
+ href: x.href && X(B)(x.href) || null,
775
775
  class: "flex items-center gap-2.5 px-[18px] py-2 text-[13px] font-semibold text-proclusteal-700 dark:text-content no-underline hover:bg-proclusteal-50 dark:hover:bg-surface-hover hover:text-proclusteal-900 dark:hover:text-focus",
776
- onClick: H((d) => g(x), ["exact", "prevent"])
776
+ onClick: D((h) => w(x), ["exact", "prevent"])
777
777
  }, [
778
- x.icon ? (a(), A(he(x.icon), {
778
+ x.icon ? (r(), H(be(x.icon), {
779
779
  key: 0,
780
780
  class: "!h-4 !w-4 flex-none"
781
- })) : v("", !0),
782
- r("span", null, b(x.label), 1)
781
+ })) : g("", !0),
782
+ a("span", null, C(x.label), 1)
783
783
  ], 8, qt))
784
784
  ], 64))), 128))
785
785
  ], 512), [
786
- [ye, y.value]
786
+ [ke, p.value]
787
787
  ])
788
788
  ]),
789
789
  _: 1
790
790
  })
791
791
  ], 512));
792
792
  }
793
- }, Ft = { class: "flex h-[70px] shrink-0 items-center justify-between border-b-[1px] border-proclusteal-300 dark:border-line bg-surface-raised px-[15px] font-sans shadow-[0_1px_3px_rgba(20,40,45,0.05)] sm:px-[25px]" }, Yt = { class: "flex min-w-0 items-center gap-[18px]" }, Jt = {
793
+ }, Yt = 18;
794
+ function Jt({ headerWidth: e, leftEnd: o, rightStart: t, pillWidth: f }, d = Yt) {
795
+ if (!(e > 0) || !(f > 0))
796
+ return !1;
797
+ const p = e / 2;
798
+ return p - f / 2 - d >= o && p + f / 2 + d <= t;
799
+ }
800
+ const xe = (e) => parseFloat(e) || 0;
801
+ function Qt(e, o, t, f, d = (p) => getComputedStyle(p)) {
802
+ const p = e.getBoundingClientRect(), _ = o.getBoundingClientRect(), $ = t.getBoundingClientRect(), M = f.offsetWidth, w = _.left - p.left + Math.max(o.scrollWidth, _.width), m = d(f).position !== "absolute" ? Math.max(0, $.width - M - xe(d(t).columnGap)) : $.width;
803
+ return {
804
+ headerWidth: p.width,
805
+ leftEnd: w,
806
+ rightStart: p.width - xe(d(e).paddingRight) - m,
807
+ pillWidth: M
808
+ };
809
+ }
810
+ const Xt = {
794
811
  key: 0,
795
812
  class: "hidden whitespace-nowrap text-[18px] font-semibold text-proclusteal-800 dark:text-content sm:inline"
796
- }, Qt = {
813
+ }, Zt = {
797
814
  key: 0,
798
815
  class: "font-normal text-black-800 dark:text-content-muted"
799
- }, Xt = ["href", "aria-label"], Zt = { class: "flex items-center gap-[18px] sm:gap-[25px]" }, dn = {
816
+ }, en = ["href", "aria-label"], pn = {
800
817
  __name: "AppHeader",
801
818
  props: {
802
819
  title: {
@@ -880,116 +897,152 @@ const kt = {
880
897
  "deleteNotification",
881
898
  "notifications-open"
882
899
  ],
883
- setup(e, { emit: l }) {
884
- const n = e, h = l, f = fe(), y = k(!1), w = C(() => !!n.notifications || n.unreadCount !== null && n.unreadCount !== void 0), $ = C(() => be(n.accentColour)), T = C(() => $.value || "#1c6f63");
885
- function g(o) {
886
- var p, S;
887
- if (!o)
900
+ setup(e, { emit: o }) {
901
+ const t = e, f = o, d = he(), p = b(!1), _ = A(() => !!t.notifications || t.unreadCount !== null && t.unreadCount !== void 0), $ = b(null), M = b(null), w = b(null), E = b(null), m = b(!1);
902
+ function x() {
903
+ var k;
904
+ const v = (k = E.value) == null ? void 0 : k.$el;
905
+ m.value = (v == null ? void 0 : v.nodeType) === 1 && !!($.value && M.value && w.value) && Jt(Qt($.value, M.value, w.value, v));
906
+ }
907
+ let s = null, h = !1, y = !0;
908
+ function z() {
909
+ h || (h = !0, requestAnimationFrame(() => {
910
+ h = !1, y && x();
911
+ }));
912
+ }
913
+ ye(() => {
914
+ if (x(), typeof ResizeObserver == "function") {
915
+ s = new ResizeObserver(z);
916
+ for (const v of [$.value, M.value, w.value])
917
+ v && s.observe(v);
918
+ }
919
+ }), Q(E, x, { flush: "post" }), ve(() => {
920
+ y = !1, s == null || s.disconnect();
921
+ });
922
+ const N = A(() => Ce(t.accentColour)), j = A(() => N.value || "#1c6f63");
923
+ function I(v) {
924
+ var S, U;
925
+ if (!v)
888
926
  return;
889
- const d = j(o);
890
- d && (h("navigate", d), (S = (p = f == null ? void 0 : f.vnode) == null ? void 0 : p.props) != null && S.onNavigate || (window.location.href = d));
927
+ const k = B(v);
928
+ k && (f("navigate", k), (U = (S = d == null ? void 0 : d.vnode) == null ? void 0 : S.props) != null && U.onNavigate || (window.location.href = k));
891
929
  }
892
- function _() {
893
- h("home"), g(n.homeUrl);
930
+ function W() {
931
+ f("home"), I(t.homeUrl);
894
932
  }
895
- function m() {
933
+ function q() {
896
934
  window.history.back();
897
935
  }
898
- function x(o) {
899
- h("menu-select", o), o.href && g(o.href);
936
+ function F(v) {
937
+ f("menu-select", v), v.href && I(v.href);
900
938
  }
901
- return (o, d) => (a(), i("header", Ft, [
902
- r("div", Yt, [
903
- V(o.$slots, "logo"),
904
- e.title ? (a(), i("span", Jt, [
905
- B(b(e.title), 1),
906
- e.subtitle ? (a(), i("span", Qt, " " + b(e.subtitle), 1)) : v("", !0)
907
- ])) : v("", !0),
908
- $.value ? (a(), i("span", {
939
+ return (v, k) => (r(), i("header", {
940
+ ref_key: "headerEl",
941
+ ref: $,
942
+ class: "relative flex h-[70px] shrink-0 items-center justify-between border-b-[1px] border-proclusteal-300 dark:border-line bg-surface-raised px-[15px] font-sans shadow-[0_1px_3px_rgba(20,40,45,0.05)] sm:px-[25px]"
943
+ }, [
944
+ a("div", {
945
+ ref_key: "leftEl",
946
+ ref: M,
947
+ class: "flex min-w-0 items-center gap-[18px]"
948
+ }, [
949
+ Y(v.$slots, "logo"),
950
+ e.title ? (r(), i("span", Xt, [
951
+ G(C(e.title), 1),
952
+ e.subtitle ? (r(), i("span", Zt, " " + C(e.subtitle), 1)) : g("", !0)
953
+ ])) : g("", !0),
954
+ N.value ? (r(), i("span", {
909
955
  key: 1,
910
956
  class: "h-[45px] w-[2px] shrink-0",
911
- style: G({ background: $.value }),
957
+ style: Z({ background: N.value }),
912
958
  "aria-hidden": "true"
913
- }, null, 4)) : v("", !0),
914
- r("nav", {
959
+ }, null, 4)) : g("", !0),
960
+ a("nav", {
915
961
  class: "flex items-center gap-7 text-proclusteal-600 dark:text-content-muted",
916
- style: G({ "--hdr-accent": T.value })
962
+ style: Z({ "--hdr-accent": j.value })
917
963
  }, [
918
- e.homeUrl ? (a(), A(Ee, {
964
+ e.homeUrl ? (r(), H(He, {
919
965
  key: 0,
920
966
  text: e.homeTooltip,
921
967
  position: "bottom"
922
968
  }, {
923
- default: J(() => [
924
- r("a", {
925
- href: W(j)(e.homeUrl) || null,
969
+ default: ne(() => [
970
+ a("a", {
971
+ href: X(B)(e.homeUrl) || null,
926
972
  class: "hover:text-[var(--hdr-accent)]",
927
973
  "aria-label": e.homeTooltip,
928
- onClick: H(_, ["exact", "prevent"])
974
+ onClick: D(W, ["exact", "prevent"])
929
975
  }, [
930
- I(ze, { class: "!h-[22px] !w-[22px]" })
931
- ], 8, Xt)
976
+ L(ze, { class: "!h-[22px] !w-[22px]" })
977
+ ], 8, en)
932
978
  ]),
933
979
  _: 1
934
- }, 8, ["text"])) : v("", !0),
935
- e.showBack ? (a(), i("button", {
980
+ }, 8, ["text"])) : g("", !0),
981
+ e.showBack ? (r(), i("button", {
936
982
  key: 1,
937
983
  type: "button",
938
984
  class: "cursor-pointer hover:text-[var(--hdr-accent)]",
939
985
  title: "Go Back",
940
986
  "aria-label": "Go Back",
941
- onClick: m
987
+ onClick: q
942
988
  }, [
943
- I(He, { class: "!h-[22px] !w-[22px]" })
944
- ])) : v("", !0),
945
- V(o.$slots, "nav-extra")
989
+ L(Le, { class: "!h-[22px] !w-[22px]" })
990
+ ])) : g("", !0),
991
+ Y(v.$slots, "nav-extra")
946
992
  ], 4),
947
- V(o.$slots, "left")
948
- ]),
949
- r("div", Zt, [
950
- V(o.$slots, "right"),
951
- e.ready ? (a(), i(N, { key: 0 }, [
952
- e.searchProvider ? (a(), A(Ue, {
993
+ Y(v.$slots, "left")
994
+ ], 512),
995
+ a("div", {
996
+ ref_key: "rightEl",
997
+ ref: w,
998
+ class: "flex items-center gap-[18px] sm:gap-[25px]"
999
+ }, [
1000
+ Y(v.$slots, "right"),
1001
+ e.ready ? (r(), i(O, { key: 0 }, [
1002
+ e.searchProvider ? (r(), H(Be, {
953
1003
  key: 0,
954
- onClick: d[0] || (d[0] = (p) => y.value = !0)
955
- })) : v("", !0),
956
- w.value ? (a(), A(Ot, {
1004
+ ref_key: "pillEl",
1005
+ ref: E,
1006
+ onClick: k[0] || (k[0] = (S) => p.value = !0),
1007
+ class: T({ "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2": m.value })
1008
+ }, null, 8, ["class"])) : g("", !0),
1009
+ _.value ? (r(), H(jt, {
957
1010
  key: 1,
958
1011
  notifications: e.notifications,
959
1012
  "unread-count": e.unreadCount,
960
1013
  "notifications-url": e.notificationsUrl,
961
1014
  "icon-map": e.notificationIconMap,
962
- onMarkAsRead: d[1] || (d[1] = (p) => o.$emit("markAsRead", p)),
963
- onDeleteNotification: d[2] || (d[2] = (p) => o.$emit("deleteNotification", p)),
964
- onOpen: d[3] || (d[3] = (p) => o.$emit("notifications-open")),
965
- onNavigate: g
966
- }, null, 8, ["notifications", "unread-count", "notifications-url", "icon-map"])) : v("", !0),
967
- e.user ? (a(), A(Gt, {
1015
+ onMarkAsRead: k[1] || (k[1] = (S) => v.$emit("markAsRead", S)),
1016
+ onDeleteNotification: k[2] || (k[2] = (S) => v.$emit("deleteNotification", S)),
1017
+ onOpen: k[3] || (k[3] = (S) => v.$emit("notifications-open")),
1018
+ onNavigate: I
1019
+ }, null, 8, ["notifications", "unread-count", "notifications-url", "icon-map"])) : g("", !0),
1020
+ e.user ? (r(), H(Ft, {
968
1021
  key: 2,
969
1022
  user: e.user,
970
1023
  "menu-items": e.menuItems,
971
- onSelect: x
972
- }, null, 8, ["user", "menu-items"])) : v("", !0)
973
- ], 64)) : v("", !0)
974
- ]),
975
- e.searchProvider ? (a(), A(vt, {
1024
+ onSelect: F
1025
+ }, null, 8, ["user", "menu-items"])) : g("", !0)
1026
+ ], 64)) : g("", !0)
1027
+ ], 512),
1028
+ e.searchProvider ? (r(), H(mt, {
976
1029
  key: 0,
977
- open: y.value,
978
- "onUpdate:open": d[4] || (d[4] = (p) => y.value = p),
1030
+ open: p.value,
1031
+ "onUpdate:open": k[4] || (k[4] = (S) => p.value = S),
979
1032
  "search-provider": e.searchProvider,
980
1033
  placeholder: e.searchPlaceholder,
981
1034
  types: e.searchTypes,
982
- onNavigate: g
983
- }, null, 8, ["open", "search-provider", "placeholder", "types"])) : v("", !0)
984
- ]));
1035
+ onNavigate: I
1036
+ }, null, 8, ["open", "search-provider", "placeholder", "types"])) : g("", !0)
1037
+ ], 512));
985
1038
  }
986
1039
  };
987
1040
  export {
988
- dn as AppHeader,
989
- U as DEFAULT_SEARCH_TYPES,
990
- vt as GlobalSearchModal,
991
- Ue as GlobalSearchPill,
992
- Ot as HeaderNotificationDropdown,
993
- Gt as HeaderUserMenu,
994
- j as safeUrl
1041
+ pn as AppHeader,
1042
+ K as DEFAULT_SEARCH_TYPES,
1043
+ mt as GlobalSearchModal,
1044
+ Be as GlobalSearchPill,
1045
+ jt as HeaderNotificationDropdown,
1046
+ Ft as HeaderUserMenu,
1047
+ B as safeUrl
995
1048
  };