@zealsolutions/zeal-ui 1.0.0-alpha.341 → 1.0.0-alpha.342

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,22 +1,22 @@
1
- import { openBlock as l, createElementBlock as u, createVNode as T, createElementVNode as a, createTextVNode as P, mergeModels as te, useModel as ge, getCurrentInstance as ie, ref as g, computed as $, watch as K, nextTick as ne, onMounted as ke, onBeforeUnmount as we, createBlock as E, Teleport as Ce, withModifiers as N, withDirectives as G, vModelText as $e, createCommentVNode as m, normalizeClass as M, toDisplayString as b, Fragment as H, renderList as U, normalizeStyle as q, pushScopeId as Se, popScopeId as _e, Transition as ce, withCtx as ue, resolveDynamicComponent as pe, unref as F, vShow as de, renderSlot as V } from "vue";
1
+ import { openBlock as l, createElementBlock as u, createVNode as T, createElementVNode as a, createTextVNode as j, mergeModels as te, useModel as ge, getCurrentInstance as ie, ref as g, computed as $, watch as K, nextTick as ne, onMounted as ke, onBeforeUnmount as we, createBlock as E, Teleport as Ce, withModifiers as N, withDirectives as G, vModelText as $e, createCommentVNode as m, normalizeClass as M, toDisplayString as b, Fragment as H, renderList as P, normalizeStyle as q, pushScopeId as Se, popScopeId as _e, Transition as ce, withCtx as ue, resolveDynamicComponent as pe, unref as F, vShow as de, renderSlot as V } from "vue";
2
2
  import Me from "../../HouseIcon-BxmNyxvv.js";
3
3
  import Te from "../../ArrowLeftIcon-Cgsy08pY.js";
4
4
  import fe from "../../MagnifyingGlassIcon-ChYNIA-H.js";
5
5
  import { _ as Ae } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { o as xe } from "../../index-CedrSBIl.js";
6
+ import { o as he } from "../../index-CedrSBIl.js";
7
7
  import oe from "../../BellIcon-lK5EZXNf.js";
8
8
  import Ie from "../../CircleCheckIcon-CA15yXgI.js";
9
9
  import Ee from "../../XMarkIcon-DKJ_--uA.js";
10
- const Ne = /* @__PURE__ */ a("span", { class: "hidden whitespace-nowrap sm:inline" }, "Search", -1), He = /* @__PURE__ */ a("kbd", { class: "hidden items-center gap-px rounded border border-proclusteal-300 bg-proclusteal-100 px-[5px] py-0.5 font-sans text-[11px] font-bold leading-none text-proclusteal-500 sm:inline-flex" }, [
10
+ const Ne = /* @__PURE__ */ a("span", { class: "hidden whitespace-nowrap sm:inline" }, "Search", -1), He = /* @__PURE__ */ a("kbd", { class: "zui-search-kbd hidden items-center gap-px rounded border border-proclusteal-300 bg-proclusteal-100 px-[5px] py-0.5 font-sans text-[11px] font-bold leading-none text-proclusteal-500 sm:inline-flex" }, [
11
11
  /* @__PURE__ */ a("span", null, "⌘"),
12
- /* @__PURE__ */ P("K ")
12
+ /* @__PURE__ */ j("K ")
13
13
  ], -1), Oe = {
14
14
  __name: "GlobalSearchPill",
15
15
  emits: ["click"],
16
16
  setup(e) {
17
17
  return (i, o) => (l(), u("button", {
18
18
  type: "button",
19
- class: "inline-flex h-[34px] cursor-pointer items-center justify-center gap-[7px] rounded-lg border border-proclusteal-300 bg-white pl-[11px] pr-[9px] font-sans text-[13px] font-semibold text-proclusteal-600 transition-[border-color,color,box-shadow] duration-150 hover:border-proclusteal-950 hover:text-proclusteal-800 hover:shadow-[0_1px_3px_rgba(20,40,45,0.08)] focus:border-proclusteal-950 focus:text-proclusteal-800 focus:outline-none",
19
+ class: "zui-search-pill inline-flex h-[34px] cursor-pointer items-center justify-center gap-[7px] rounded-lg border border-proclusteal-300 bg-white pl-[11px] pr-[9px] font-sans text-[13px] font-semibold text-proclusteal-600 transition-[border-color,color,box-shadow] duration-150 hover:border-proclusteal-950 hover:text-proclusteal-800 hover:shadow-[0_1px_3px_rgba(20,40,45,0.08)] focus:border-proclusteal-950 focus:text-proclusteal-800 focus:outline-none",
20
20
  title: "Search (Ctrl K)",
21
21
  "aria-label": "Search (Ctrl K)",
22
22
  onClick: o[0] || (o[0] = (y) => i.$emit("click"))
@@ -26,7 +26,7 @@ const Ne = /* @__PURE__ */ a("span", { class: "hidden whitespace-nowrap sm:inlin
26
26
  He
27
27
  ]));
28
28
  }
29
- }, j = {
29
+ }, D = {
30
30
  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"/>' },
31
31
  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"/>' },
32
32
  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"/>' },
@@ -43,11 +43,11 @@ const Ne = /* @__PURE__ */ a("span", { class: "hidden whitespace-nowrap sm:inlin
43
43
  colour: "#9aa4ad",
44
44
  icon: '<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>'
45
45
  };
46
- function De(e, i = {}) {
47
- const o = { ...j, ...i };
46
+ function ze(e, i = {}) {
47
+ const o = { ...D, ...i };
48
48
  return Object.prototype.hasOwnProperty.call(o, e) ? o[e] : { ...Le, label: e };
49
49
  }
50
- function je(e) {
50
+ function De(e) {
51
51
  return (e == null ? "" : String(e)).replace(/[&<>"']/g, (i) => ({
52
52
  "&": "&amp;",
53
53
  "<": "&lt;",
@@ -56,7 +56,7 @@ function je(e) {
56
56
  "'": "&#39;"
57
57
  })[i]);
58
58
  }
59
- function he(e) {
59
+ function xe(e) {
60
60
  if (!e)
61
61
  return "";
62
62
  const i = String(e).trim();
@@ -76,23 +76,23 @@ function O(e) {
76
76
  }
77
77
  return o.protocol === "http:" || o.protocol === "https:" ? i : "";
78
78
  }
79
- function Pe(e) {
79
+ function je(e) {
80
80
  return String(e || "").toLowerCase().split(/\s+/).filter((i) => i.length >= 2);
81
81
  }
82
82
  function le(e, i) {
83
- const o = je(e);
83
+ const o = De(e);
84
84
  if (!i || !i.length)
85
85
  return o;
86
86
  const y = new RegExp(`(${i.map((d) => d.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, "ig");
87
87
  return o.replace(y, "<mark>$1</mark>");
88
88
  }
89
- const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex items-center gap-2.5 border-b border-proclusteal-200 px-4 py-3.5" }, Be = ["placeholder"], Re = {
89
+ const Pe = (e) => (Se("data-v-facb4f52"), e = e(), _e(), e), Ue = { class: "zui-search-field flex items-center gap-2.5 border-b border-proclusteal-200 px-4 py-3.5" }, Be = ["placeholder"], Re = {
90
90
  key: 0,
91
91
  class: "px-[18px] pb-0.5 pt-3.5 text-[15px] font-extrabold text-[#1e262c]"
92
92
  }, Ve = {
93
93
  key: 1,
94
94
  class: "border-b border-proclusteal-200 px-[18px] pb-3 pt-2.5"
95
- }, Ke = ["onClick"], qe = { class: "sticky top-0 z-[1] border-t border-proclusteal-200 bg-proclusteal-150 px-[18px] py-2 text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700" }, Ge = { class: "ml-0.5 text-[#667079]" }, Fe = ["href", "data-row-idx", "onClick", "onMouseenter"], Qe = ["innerHTML"], Ye = { class: "min-w-0 flex-1" }, Xe = ["innerHTML"], Je = ["innerHTML"], We = /* @__PURE__ */ Ue(() => /* @__PURE__ */ a("svg", {
95
+ }, Ke = ["onClick"], qe = { class: "zui-search-group sticky top-0 z-[1] border-t border-proclusteal-200 bg-proclusteal-150 px-[18px] py-2 text-[12px] font-extrabold tracking-[0.3px] text-proclusteal-700" }, Ge = { class: "ml-0.5 text-[#667079]" }, Fe = ["href", "data-row-idx", "onClick", "onMouseenter"], Qe = ["innerHTML"], Ye = { class: "min-w-0 flex-1" }, Xe = ["innerHTML"], Je = ["innerHTML"], We = /* @__PURE__ */ Pe(() => /* @__PURE__ */ a("svg", {
96
96
  class: "h-4 w-4 flex-none text-[#c2cad1]",
97
97
  viewBox: "0 0 24 24",
98
98
  fill: "none",
@@ -102,7 +102,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
102
102
  "stroke-linejoin": "round"
103
103
  }, [
104
104
  /* @__PURE__ */ a("polyline", { points: "9 18 15 12 9 6" })
105
- ], -1)), ae = "mb-2 mr-2 inline-flex cursor-pointer items-center gap-[7px] rounded-[20px] border border-[#dde3e8] bg-[#f4f6f8] px-3.5 py-1.5 text-[13px] font-bold text-proclusteal-700 hover:border-proclusteal-950", re = "!border-proclusteal-950 !bg-proclusteal-950 !text-white", R = "px-5 py-[26px] text-center text-[13px] font-medium text-[#667079]", Ze = {
105
+ ], -1)), ae = "zui-search-chip mb-2 mr-2 inline-flex cursor-pointer items-center gap-[7px] rounded-[20px] border border-[#dde3e8] bg-[#f4f6f8] px-3.5 py-1.5 text-[13px] font-bold text-proclusteal-700 hover:border-proclusteal-950", re = "!border-proclusteal-950 !bg-proclusteal-950 !text-white", R = "zui-search-state px-5 py-[26px] text-center text-[13px] font-medium text-[#667079]", Ze = {
106
106
  __name: "GlobalSearchModal",
107
107
  props: /* @__PURE__ */ te({
108
108
  searchProvider: {
@@ -131,47 +131,47 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
131
131
  }),
132
132
  emits: /* @__PURE__ */ te(["navigate"], ["update:open"]),
133
133
  setup(e, { emit: i }) {
134
- const o = e, y = i, d = ge(e, "open"), x = ie(), w = g(null), _ = g(null), A = g(null), k = g(""), S = g(""), v = g([]), f = g("all"), n = g("zero"), c = g(-1);
134
+ const o = e, y = i, d = ge(e, "open"), h = ie(), w = g(null), _ = g(null), A = g(null), k = g(""), S = g(""), v = g([]), f = g("all"), n = g("zero"), c = g(-1);
135
135
  let p = null, C = 0, L = null, I = null;
136
- const Q = $(() => Pe(S.value)), Y = (t) => De(t, o.types), X = $(() => {
136
+ const Q = $(() => je(S.value)), Y = (t) => ze(t, o.types), X = $(() => {
137
137
  let t = 0;
138
138
  return v.value.filter((s) => f.value === "all" || s.type === f.value).map((s) => {
139
139
  const r = Y(s.type);
140
140
  return {
141
141
  type: s.type,
142
142
  label: r.label,
143
- items: s.items.map((h) => ({
144
- url: O(h.Url),
145
- titleHtml: le(h.Title, Q.value),
146
- subtitleHtml: le(h.Subtitle, Q.value),
147
- tileColour: he(h.Colour) || r.colour,
143
+ items: s.items.map((x) => ({
144
+ url: O(x.Url),
145
+ titleHtml: le(x.Title, Q.value),
146
+ subtitleHtml: le(x.Subtitle, Q.value),
147
+ tileColour: xe(x.Colour) || r.colour,
148
148
  tileIcon: r.icon,
149
149
  flatIdx: t++
150
150
  }))
151
151
  };
152
152
  });
153
153
  }), J = $(() => X.value.flatMap((t) => t.items)), ye = $(() => v.value.reduce((t, s) => t + s.items.length, 0));
154
- function z(t) {
154
+ function U(t) {
155
155
  const s = J.value;
156
156
  if (!s.length) {
157
157
  c.value = -1;
158
158
  return;
159
159
  }
160
160
  c.value = Math.min(Math.max(t, 0), s.length - 1), ne(() => {
161
- var h;
162
- const r = (h = A.value) == null ? void 0 : h.querySelector(`[data-row-idx="${c.value}"]`);
161
+ var x;
162
+ const r = (x = A.value) == null ? void 0 : x.querySelector(`[data-row-idx="${c.value}"]`);
163
163
  r == null || r.scrollIntoView({ block: "nearest" });
164
164
  });
165
165
  }
166
166
  function W(t) {
167
167
  var s;
168
- f.value = t, z(0), (s = w.value) == null || s.focus();
168
+ f.value = t, U(0), (s = w.value) == null || s.focus();
169
169
  }
170
170
  function Z(t) {
171
171
  var s, r;
172
- t && (y("navigate", t), (r = (s = x == null ? void 0 : x.vnode) == null ? void 0 : s.props) != null && r.onNavigate || (window.location.href = t), D());
172
+ t && (y("navigate", t), (r = (s = h == null ? void 0 : h.vnode) == null ? void 0 : s.props) != null && r.onNavigate || (window.location.href = t), z());
173
173
  }
174
- function D() {
174
+ function z() {
175
175
  d.value = !1;
176
176
  }
177
177
  async function ve(t) {
@@ -181,7 +181,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
181
181
  const r = await o.searchProvider(t);
182
182
  if (s !== C || !d.value)
183
183
  return;
184
- v.value = r && r.groups || [], f.value = "all", n.value = v.value.length ? "results" : "empty", z(0);
184
+ v.value = r && r.groups || [], f.value = "all", n.value = v.value.length ? "results" : "empty", U(0);
185
185
  } catch {
186
186
  if (s !== C || !d.value)
187
187
  return;
@@ -205,15 +205,15 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
205
205
  function me(t) {
206
206
  var s;
207
207
  if (t.key === "Escape") {
208
- t.preventDefault(), D();
208
+ t.preventDefault(), z();
209
209
  return;
210
210
  }
211
211
  if (t.key === "ArrowDown") {
212
- t.preventDefault(), z(c.value + 1);
212
+ t.preventDefault(), U(c.value + 1);
213
213
  return;
214
214
  }
215
215
  if (t.key === "ArrowUp") {
216
- t.preventDefault(), z(c.value - 1);
216
+ t.preventDefault(), U(c.value - 1);
217
217
  return;
218
218
  }
219
219
  if (t.key === "Enter") {
@@ -229,8 +229,8 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
229
229
  const r = (s = _.value) == null ? void 0 : s.querySelectorAll('input, button, a[href], [tabindex]:not([tabindex="-1"])');
230
230
  if (!(r != null && r.length))
231
231
  return;
232
- const h = r[0], B = r[r.length - 1];
233
- t.shiftKey && document.activeElement === h ? (t.preventDefault(), B.focus()) : !t.shiftKey && document.activeElement === B && (t.preventDefault(), h.focus());
232
+ const x = r[0], B = r[r.length - 1];
233
+ t.shiftKey && document.activeElement === x ? (t.preventDefault(), B.focus()) : !t.shiftKey && document.activeElement === B && (t.preventDefault(), x.focus());
234
234
  }
235
235
  }
236
236
  function be(t) {
@@ -241,7 +241,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
241
241
  }
242
242
  function ee(t) {
243
243
  if (t.key === "Escape" && d.value) {
244
- t.preventDefault(), D();
244
+ t.preventDefault(), z();
245
245
  return;
246
246
  }
247
247
  if ((t.ctrlKey || t.metaKey) && (t.key === "k" || t.key === "K")) {
@@ -257,19 +257,19 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
257
257
  }), (t, s) => (l(), E(Ce, { to: "body" }, [
258
258
  d.value ? (l(), u("div", {
259
259
  key: 0,
260
- class: "fixed inset-0 z-[20000] flex items-start justify-center bg-[#11181c]/45",
261
- onMousedown: N(D, ["self"]),
260
+ class: "zui-search-overlay fixed inset-0 z-[20000] flex items-start justify-center bg-[#11181c]/45",
261
+ onMousedown: N(z, ["self"]),
262
262
  onKeydown: me
263
263
  }, [
264
264
  a("div", {
265
265
  ref_key: "panelEl",
266
266
  ref: _,
267
- class: "mt-[4vh] flex max-h-[88vh] w-[94%] max-w-[720px] flex-col overflow-hidden rounded-[14px] bg-white font-sans shadow-[0_30px_80px_rgba(0,0,0,0.3)] sm:mt-[8vh] sm:max-h-[82vh]",
267
+ class: "zui-search-panel mt-[4vh] flex max-h-[88vh] w-[94%] max-w-[720px] flex-col overflow-hidden rounded-[14px] bg-white font-sans shadow-[0_30px_80px_rgba(0,0,0,0.3)] sm:mt-[8vh] sm:max-h-[82vh]",
268
268
  role: "dialog",
269
269
  "aria-modal": "true",
270
270
  "aria-label": "Search"
271
271
  }, [
272
- a("div", ze, [
272
+ a("div", Ue, [
273
273
  T(fe, { class: "!h-[18px] !w-[18px] flex-none text-proclusteal-400" }),
274
274
  G(a("input", {
275
275
  ref_key: "inputEl",
@@ -278,7 +278,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
278
278
  type: "text",
279
279
  autocomplete: "off",
280
280
  placeholder: e.placeholder,
281
- class: "flex-1 border-0 bg-transparent p-0 text-[16px] text-[#1e262c] outline-none placeholder:text-proclusteal-400 focus:ring-0"
281
+ class: "zui-search-input flex-1 border-0 bg-transparent p-0 text-[16px] text-[#1e262c] outline-none placeholder:text-proclusteal-400 focus:ring-0"
282
282
  }, null, 8, Be), [
283
283
  [$e, k.value]
284
284
  ]),
@@ -287,7 +287,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
287
287
  class: "cursor-pointer border-0 bg-transparent px-1 text-[22px] leading-none text-proclusteal-400 hover:text-proclusteal-700",
288
288
  "aria-label": "Close search",
289
289
  title: "Close (Esc)",
290
- onClick: D
290
+ onClick: z
291
291
  }, "×")
292
292
  ]),
293
293
  n.value === "results" ? (l(), u("div", Re, " Search results ")) : m("", !0),
@@ -297,18 +297,18 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
297
297
  class: M([ae, f.value === "all" ? re : ""]),
298
298
  onClick: s[1] || (s[1] = (r) => W("all"))
299
299
  }, [
300
- P(" All "),
300
+ j(" All "),
301
301
  a("span", {
302
302
  class: M(["font-bold", f.value === "all" ? "opacity-85" : "opacity-60"])
303
303
  }, "(" + b(ye.value) + ")", 3)
304
304
  ], 2),
305
- (l(!0), u(H, null, U(v.value, (r) => (l(), u("button", {
305
+ (l(!0), u(H, null, P(v.value, (r) => (l(), u("button", {
306
306
  key: r.type,
307
307
  type: "button",
308
308
  class: M([ae, f.value === r.type ? re : ""]),
309
- onClick: (h) => W(r.type)
309
+ onClick: (x) => W(r.type)
310
310
  }, [
311
- P(b(Y(r.type).label) + " ", 1),
311
+ j(b(Y(r.type).label) + " ", 1),
312
312
  a("span", {
313
313
  class: M(["font-bold", f.value === r.type ? "opacity-85" : "opacity-60"])
314
314
  }, "(" + b(r.items.length) + ")", 3)
@@ -317,7 +317,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
317
317
  a("div", {
318
318
  ref_key: "resultsEl",
319
319
  ref: A,
320
- class: "overflow-y-auto pb-2.5"
320
+ class: "zui-search-results overflow-y-auto pb-2.5"
321
321
  }, [
322
322
  n.value === "zero" ? (l(), u("div", {
323
323
  key: 0,
@@ -331,24 +331,24 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
331
331
  }, " No results for “" + b(S.value) + "” — try a broader term or a code. ", 1)) : n.value === "error" ? (l(), u("div", {
332
332
  key: 3,
333
333
  class: M(R)
334
- }, " Search is temporarily unavailable. ")) : (l(!0), u(H, { key: 4 }, U(X.value, (r) => (l(), u("div", {
334
+ }, " Search is temporarily unavailable. ")) : (l(!0), u(H, { key: 4 }, P(X.value, (r) => (l(), u("div", {
335
335
  key: r.type
336
336
  }, [
337
337
  a("div", qe, [
338
- P(b(r.label) + " ", 1),
338
+ j(b(r.label) + " ", 1),
339
339
  a("span", Ge, "(" + b(r.items.length) + ")", 1)
340
340
  ]),
341
- (l(!0), u(H, null, U(r.items, (h) => (l(), u("a", {
342
- key: h.flatIdx,
343
- href: h.url || null,
344
- class: M(["flex items-center gap-[13px] px-[18px] py-[11px] text-[#1e262c] no-underline", { "bg-proclusteal-50": h.flatIdx === c.value }]),
345
- "data-row-idx": h.flatIdx,
346
- onClick: N((B) => Z(h.url), ["exact", "prevent"]),
347
- onMouseenter: (B) => c.value = h.flatIdx
341
+ (l(!0), u(H, null, P(r.items, (x) => (l(), u("a", {
342
+ key: x.flatIdx,
343
+ href: x.url || null,
344
+ class: M(["zui-search-row flex items-center gap-[13px] px-[18px] py-[11px] text-[#1e262c] no-underline", { "bg-proclusteal-50": x.flatIdx === c.value }]),
345
+ "data-row-idx": x.flatIdx,
346
+ onClick: N((B) => Z(x.url), ["exact", "prevent"]),
347
+ onMouseenter: (B) => c.value = x.flatIdx
348
348
  }, [
349
349
  a("span", {
350
350
  class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] text-white",
351
- style: q({ background: h.tileColour })
351
+ style: q({ background: x.tileColour })
352
352
  }, [
353
353
  (l(), u("svg", {
354
354
  class: "h-5 w-5",
@@ -358,17 +358,17 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
358
358
  "stroke-width": "2",
359
359
  "stroke-linecap": "round",
360
360
  "stroke-linejoin": "round",
361
- innerHTML: h.tileIcon
361
+ innerHTML: x.tileIcon
362
362
  }, null, 8, Qe))
363
363
  ], 4),
364
364
  a("span", Ye, [
365
365
  a("span", {
366
366
  class: "gs-marked block truncate text-[14px] font-bold",
367
- innerHTML: h.titleHtml
367
+ innerHTML: x.titleHtml
368
368
  }, null, 8, Xe),
369
369
  a("span", {
370
370
  class: "gs-marked mt-0.5 block truncate text-[12.5px] text-[#5b6570]",
371
- innerHTML: h.subtitleHtml
371
+ innerHTML: x.subtitleHtml
372
372
  }, null, 8, Je)
373
373
  ]),
374
374
  We
@@ -379,7 +379,7 @@ const Ue = (e) => (Se("data-v-b4eb0ff3"), e = e(), _e(), e), ze = { class: "flex
379
379
  ], 32)) : m("", !0)
380
380
  ]));
381
381
  }
382
- }, et = /* @__PURE__ */ Ae(Ze, [["__scopeId", "data-v-b4eb0ff3"]]), se = {
382
+ }, et = /* @__PURE__ */ Ae(Ze, [["__scopeId", "data-v-facb4f52"]]), se = {
383
383
  "reference library": "RefLib",
384
384
  reflib: "RefLib",
385
385
  repository: "RefLib",
@@ -404,13 +404,13 @@ function tt(e) {
404
404
  if (!i)
405
405
  return "";
406
406
  let o = null;
407
- if (Object.prototype.hasOwnProperty.call(j, i))
407
+ if (Object.prototype.hasOwnProperty.call(D, i))
408
408
  o = i;
409
409
  else {
410
- const y = i.toLowerCase(), d = Object.keys(j).find((x) => x.toLowerCase() === y);
410
+ const y = i.toLowerCase(), d = Object.keys(D).find((h) => h.toLowerCase() === y);
411
411
  d ? o = d : Object.prototype.hasOwnProperty.call(se, y) && (o = se[y]);
412
412
  }
413
- return !o || !Object.prototype.hasOwnProperty.call(j, o) ? "" : j[o].icon || "";
413
+ return !o || !Object.prototype.hasOwnProperty.call(D, o) ? "" : D[o].icon || "";
414
414
  }
415
415
  function nt(e) {
416
416
  if (!e)
@@ -429,10 +429,10 @@ const ot = {
429
429
  }, st = {
430
430
  key: 1,
431
431
  class: "px-5 py-[26px] text-center text-[13px] font-medium text-[#667079]"
432
- }, it = ["onClick"], ct = { class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] bg-proclusteal-950 text-white" }, ut = ["innerHTML"], pt = { class: "min-w-0 flex-1" }, dt = { class: "block truncate text-[14px] font-bold text-[#1e262c]" }, ft = { class: "block truncate text-[12.5px] text-[#5b6570]" }, xt = {
432
+ }, it = ["onClick"], ct = { class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] bg-proclusteal-950 text-white" }, ut = ["innerHTML"], pt = { class: "min-w-0 flex-1" }, dt = { class: "block truncate text-[14px] font-bold text-[#1e262c]" }, ft = { class: "block truncate text-[12.5px] text-[#5b6570]" }, ht = {
433
433
  key: 0,
434
434
  class: "mt-0.5 block text-[12px] text-proclusteal-500"
435
- }, ht = { class: "flex flex-none flex-col items-center gap-2 pt-0.5 text-proclusteal-600" }, yt = ["onClick"], vt = ["onClick"], mt = ["href"], bt = {
435
+ }, xt = { class: "flex flex-none flex-col items-center gap-2 pt-0.5 text-proclusteal-600" }, yt = ["onClick"], vt = ["onClick"], mt = ["href"], bt = {
436
436
  __name: "HeaderNotificationDropdown",
437
437
  props: {
438
438
  // The feed as /personal/GetNotifications.ashx returns it: { data: [...] }. Null means
@@ -461,15 +461,15 @@ const ot = {
461
461
  },
462
462
  emits: ["markAsRead", "deleteNotification", "navigate", "open"],
463
463
  setup(e, { emit: i }) {
464
- const o = e, y = i, d = g(null), x = g(!1), w = $(() => {
464
+ const o = e, y = i, d = g(null), h = g(!1), w = $(() => {
465
465
  var n;
466
466
  return ((n = o.notifications) == null ? void 0 : n.data) || [];
467
467
  }), _ = $(() => o.unreadCount !== null && o.unreadCount !== void 0 ? o.unreadCount > 0 : w.value.some((n) => n.ClassRead === "unread"));
468
- xe(d, () => {
469
- x.value = !1;
468
+ he(d, () => {
469
+ h.value = !1;
470
470
  });
471
471
  function A() {
472
- x.value = !x.value, x.value && y("open");
472
+ h.value = !h.value, h.value && y("open");
473
473
  }
474
474
  function k(n) {
475
475
  return n && Object.prototype.hasOwnProperty.call(o.iconMap, n) && o.iconMap[n] || null;
@@ -488,7 +488,7 @@ const ot = {
488
488
  unread: n.ClassRead === "unread"
489
489
  })));
490
490
  function f(n) {
491
- x.value = !1;
491
+ h.value = !1;
492
492
  const c = O(n);
493
493
  c && y("navigate", c);
494
494
  }
@@ -519,7 +519,7 @@ const ot = {
519
519
  G(a("div", lt, [
520
520
  a("div", at, [
521
521
  e.notifications ? w.value.length ? m("", !0) : (l(), u("div", st, " No notifications. ")) : (l(), u("div", rt, " Loading notifications… ")),
522
- (l(!0), u(H, null, U(v.value, (p) => (l(), u("div", {
522
+ (l(!0), u(H, null, P(v.value, (p) => (l(), u("div", {
523
523
  key: p.item.NotifyID,
524
524
  class: M(["flex cursor-pointer items-start gap-3 border-b border-proclusteal-200 px-4 py-3", p.unread ? "bg-proclusteal-50" : "bg-white"]),
525
525
  onClick: (C) => f(p.item.url)
@@ -543,9 +543,9 @@ const ot = {
543
543
  a("span", pt, [
544
544
  a("span", dt, b(p.item.notifyname), 1),
545
545
  a("span", ft, b(p.item.summary), 1),
546
- p.date ? (l(), u("span", xt, b(p.date), 1)) : m("", !0)
546
+ p.date ? (l(), u("span", ht, b(p.date), 1)) : m("", !0)
547
547
  ]),
548
- a("span", ht, [
548
+ a("span", xt, [
549
549
  p.unread ? (l(), u("button", {
550
550
  key: 0,
551
551
  type: "button",
@@ -574,7 +574,7 @@ const ot = {
574
574
  onClick: c[0] || (c[0] = N((p) => f(e.notificationsUrl), ["exact", "prevent"]))
575
575
  }, " See all notifications ", 8, mt)
576
576
  ], 512), [
577
- [de, x.value]
577
+ [de, h.value]
578
578
  ])
579
579
  ]),
580
580
  _: 1
@@ -601,16 +601,16 @@ const ot = {
601
601
  },
602
602
  emits: ["select"],
603
603
  setup(e, { emit: i }) {
604
- const o = e, y = i, d = g(null), x = g(!1), w = g(!1);
604
+ const o = e, y = i, d = g(null), h = g(!1), w = g(!1);
605
605
  K(() => o.user.avatarUrl, () => {
606
606
  w.value = !1;
607
607
  });
608
608
  const _ = $(() => `${o.user.firstName || ""} ${o.user.surname || ""}`.trim()), A = $(() => `${(o.user.firstName || "").charAt(0)}${(o.user.surname || "").charAt(0)}`.toUpperCase());
609
- xe(d, () => {
610
- x.value = !1;
609
+ he(d, () => {
610
+ h.value = !1;
611
611
  });
612
612
  function k(S) {
613
- x.value = !1, y("select", S);
613
+ h.value = !1, y("select", S);
614
614
  }
615
615
  return (S, v) => (l(), u("div", {
616
616
  ref_key: "rootEl",
@@ -622,7 +622,7 @@ const ot = {
622
622
  class: "flex cursor-pointer items-center justify-center",
623
623
  title: "View Menu Options",
624
624
  "aria-label": "View Menu Options",
625
- onClick: v[1] || (v[1] = (f) => x.value = !x.value)
625
+ onClick: v[1] || (v[1] = (f) => h.value = !h.value)
626
626
  }, [
627
627
  e.user.avatarUrl && !w.value ? (l(), u("img", {
628
628
  key: 0,
@@ -648,7 +648,7 @@ const ot = {
648
648
  a("span", _t, b(e.user.orgName), 1)
649
649
  ]),
650
650
  Mt,
651
- (l(!0), u(H, null, U(e.menuItems, (f, n) => (l(), u(H, { key: n }, [
651
+ (l(!0), u(H, null, P(e.menuItems, (f, n) => (l(), u(H, { key: n }, [
652
652
  f.divider ? (l(), u("div", Tt)) : (l(), u("a", {
653
653
  key: 1,
654
654
  href: f.href && F(O)(f.href) || null,
@@ -663,7 +663,7 @@ const ot = {
663
663
  ], 8, At))
664
664
  ], 64))), 128))
665
665
  ], 512), [
666
- [de, x.value]
666
+ [de, h.value]
667
667
  ])
668
668
  ]),
669
669
  _: 1
@@ -676,7 +676,7 @@ const ot = {
676
676
  }, Ot = {
677
677
  key: 0,
678
678
  class: "font-normal text-black-800"
679
- }, Lt = ["href", "title", "aria-label"], Dt = { class: "flex items-center gap-[18px] sm:gap-[25px]" }, Gt = {
679
+ }, Lt = ["href", "title", "aria-label"], zt = { class: "flex items-center gap-[18px] sm:gap-[25px]" }, Gt = {
680
680
  __name: "AppHeader",
681
681
  props: {
682
682
  title: {
@@ -754,7 +754,7 @@ const ot = {
754
754
  "notifications-open"
755
755
  ],
756
756
  setup(e, { emit: i }) {
757
- const o = e, y = i, d = ie(), x = g(!1), w = $(() => !!o.notifications || o.unreadCount !== null && o.unreadCount !== void 0), _ = $(() => he(o.accentColour)), A = $(() => _.value || "#1c6f63");
757
+ const o = e, y = i, d = ie(), h = g(!1), w = $(() => !!o.notifications || o.unreadCount !== null && o.unreadCount !== void 0), _ = $(() => xe(o.accentColour)), A = $(() => _.value || "#1c6f63");
758
758
  function k(n) {
759
759
  var p, C;
760
760
  if (!n)
@@ -775,7 +775,7 @@ const ot = {
775
775
  a("div", Nt, [
776
776
  V(n.$slots, "logo"),
777
777
  e.title ? (l(), u("span", Ht, [
778
- P(b(e.title), 1),
778
+ j(b(e.title), 1),
779
779
  e.subtitle ? (l(), u("span", Ot, " " + b(e.subtitle), 1)) : m("", !0)
780
780
  ])) : m("", !0),
781
781
  _.value ? (l(), u("span", {
@@ -811,11 +811,11 @@ const ot = {
811
811
  ], 4),
812
812
  V(n.$slots, "left")
813
813
  ]),
814
- a("div", Dt, [
814
+ a("div", zt, [
815
815
  V(n.$slots, "right"),
816
816
  e.searchProvider ? (l(), E(Oe, {
817
817
  key: 0,
818
- onClick: c[0] || (c[0] = (p) => x.value = !0)
818
+ onClick: c[0] || (c[0] = (p) => h.value = !0)
819
819
  })) : m("", !0),
820
820
  w.value ? (l(), E(bt, {
821
821
  key: 1,
@@ -837,8 +837,8 @@ const ot = {
837
837
  ]),
838
838
  e.searchProvider ? (l(), E(et, {
839
839
  key: 0,
840
- open: x.value,
841
- "onUpdate:open": c[4] || (c[4] = (p) => x.value = p),
840
+ open: h.value,
841
+ "onUpdate:open": c[4] || (c[4] = (p) => h.value = p),
842
842
  "search-provider": e.searchProvider,
843
843
  placeholder: e.searchPlaceholder,
844
844
  types: e.searchTypes,
@@ -849,7 +849,7 @@ const ot = {
849
849
  };
850
850
  export {
851
851
  Gt as AppHeader,
852
- j as DEFAULT_SEARCH_TYPES,
852
+ D as DEFAULT_SEARCH_TYPES,
853
853
  et as GlobalSearchModal,
854
854
  Oe as GlobalSearchPill,
855
855
  bt as HeaderNotificationDropdown,