@zealsolutions/zeal-ui 1.0.0-alpha.379 → 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.
- package/dist/components/header/index.js +468 -416
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { openBlock as
|
|
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
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { o as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
], -1),
|
|
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 (
|
|
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:
|
|
23
|
+
onClick: t[0] || (t[0] = (f) => o.$emit("click"))
|
|
24
24
|
}, [
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
L(ge, { class: "!h-[15px] !w-[15px] flex-none text-white" }),
|
|
26
|
+
Re,
|
|
27
27
|
Pe
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
|
-
},
|
|
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
|
-
},
|
|
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
|
|
48
|
-
const
|
|
49
|
-
return Object.prototype.hasOwnProperty.call(
|
|
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
|
|
52
|
-
return (e == null ? "" : String(e)).replace(/[&<>"']/g, (
|
|
51
|
+
function Ke(e) {
|
|
52
|
+
return (e == null ? "" : String(e)).replace(/[&<>"']/g, (o) => ({
|
|
53
53
|
"&": "&",
|
|
54
54
|
"<": "<",
|
|
55
55
|
">": ">",
|
|
56
56
|
'"': """,
|
|
57
57
|
"'": "'"
|
|
58
|
-
})[
|
|
58
|
+
})[o]);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ce(e) {
|
|
61
61
|
if (!e)
|
|
62
62
|
return "";
|
|
63
|
-
const
|
|
64
|
-
return /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(
|
|
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
|
|
66
|
+
function B(e) {
|
|
67
67
|
if (!e)
|
|
68
68
|
return "";
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
69
|
+
const o = String(e).trim();
|
|
70
|
+
if (o.includes("\\"))
|
|
71
71
|
return "";
|
|
72
|
-
let
|
|
72
|
+
let t;
|
|
73
73
|
try {
|
|
74
|
-
|
|
74
|
+
t = new URL(o, "https://url-check.invalid/");
|
|
75
75
|
} catch {
|
|
76
76
|
return "";
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return t.protocol === "http:" || t.protocol === "https:" ? o : "";
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return String(e || "").toLowerCase().split(/\s+/).filter((
|
|
80
|
+
function Ge(e) {
|
|
81
|
+
return String(e || "").toLowerCase().split(/\s+/).filter((o) => o.length >= 2);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
86
|
-
return
|
|
87
|
-
const
|
|
88
|
-
return
|
|
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,
|
|
100
|
-
return typeof e != "string" ?
|
|
99
|
+
function qe(e, o) {
|
|
100
|
+
return typeof e != "string" ? o : We[e.toLowerCase()] || o;
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
function
|
|
102
|
+
const oe = "zui.search.recent", _e = 5;
|
|
103
|
+
function ee() {
|
|
104
104
|
try {
|
|
105
|
-
const e = window.localStorage.getItem(
|
|
105
|
+
const e = window.localStorage.getItem(oe);
|
|
106
106
|
if (!e)
|
|
107
107
|
return [];
|
|
108
|
-
const
|
|
109
|
-
return Array.isArray(
|
|
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
|
|
115
|
-
const
|
|
116
|
-
if (!
|
|
117
|
-
return
|
|
118
|
-
const
|
|
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(
|
|
120
|
+
window.localStorage.setItem(oe, JSON.stringify(t));
|
|
121
121
|
} catch {
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return t;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ye() {
|
|
126
126
|
try {
|
|
127
|
-
window.localStorage.removeItem(
|
|
127
|
+
window.localStorage.removeItem(oe);
|
|
128
128
|
} catch {
|
|
129
129
|
}
|
|
130
130
|
return [];
|
|
131
131
|
}
|
|
132
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
138
|
+
}, et = ["onClick"], tt = {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "zui-search-recent py-1.5"
|
|
141
|
-
},
|
|
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__ */
|
|
150
|
+
/* @__PURE__ */ a("circle", {
|
|
151
151
|
cx: "12",
|
|
152
152
|
cy: "12",
|
|
153
153
|
r: "10"
|
|
154
154
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
], -1)),
|
|
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__ */
|
|
166
|
-
], -1)),
|
|
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__ */
|
|
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__ */
|
|
194
|
-
setup(e, { emit:
|
|
195
|
-
const
|
|
196
|
-
let
|
|
197
|
-
const
|
|
198
|
-
let
|
|
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
|
|
200
|
+
const l = q(u.type);
|
|
201
201
|
return {
|
|
202
202
|
type: u.type,
|
|
203
|
-
label:
|
|
203
|
+
label: l.label,
|
|
204
204
|
items: u.items.map((c) => ({
|
|
205
|
-
url:
|
|
206
|
-
titleHtml:
|
|
207
|
-
subtitleHtml:
|
|
208
|
-
tileColour:
|
|
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:
|
|
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 &&
|
|
224
|
-
flatIdx:
|
|
223
|
+
newWindow: c.NewWindow === !0 || c.NewWindow !== !1 && l.newWindow === !0,
|
|
224
|
+
flatIdx: n++
|
|
225
225
|
}))
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
|
-
}),
|
|
229
|
-
function
|
|
230
|
-
const u =
|
|
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
|
-
|
|
232
|
+
h.value = -1;
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
|
-
|
|
235
|
+
h.value = Math.min(Math.max(n, 0), u.length - 1), ie(() => {
|
|
236
236
|
var c;
|
|
237
|
-
const
|
|
238
|
-
|
|
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
|
|
241
|
+
function U(n) {
|
|
242
242
|
var u;
|
|
243
|
-
x.value =
|
|
243
|
+
x.value = n, S(0), (u = _.value) == null || u.focus();
|
|
244
244
|
}
|
|
245
|
-
function ae(
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
245
|
+
function ae(n, u = !1) {
|
|
246
|
+
var l, c;
|
|
247
|
+
if (n) {
|
|
248
248
|
if (u) {
|
|
249
|
-
window.open(
|
|
249
|
+
window.open(n, "_blank", "noopener"), R();
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
|
-
|
|
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
|
|
256
|
-
|
|
255
|
+
function R() {
|
|
256
|
+
d.value = !1;
|
|
257
257
|
}
|
|
258
|
-
async function
|
|
259
|
-
const u = ++
|
|
260
|
-
|
|
258
|
+
async function Se(n) {
|
|
259
|
+
const u = ++N;
|
|
260
|
+
E.value = n;
|
|
261
261
|
try {
|
|
262
|
-
const
|
|
263
|
-
if (u !==
|
|
262
|
+
const l = await t.searchProvider(n);
|
|
263
|
+
if (u !== N || !d.value)
|
|
264
264
|
return;
|
|
265
|
-
m.value =
|
|
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 !==
|
|
267
|
+
if (u !== N || !d.value)
|
|
268
268
|
return;
|
|
269
|
-
m.value = [],
|
|
269
|
+
m.value = [], s.value = "error", h.value = -1;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
|
|
273
|
-
clearTimeout(
|
|
274
|
-
const u =
|
|
275
|
-
if (u.length <
|
|
276
|
-
|
|
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
|
-
|
|
280
|
-
}),
|
|
281
|
-
|
|
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 =
|
|
284
|
-
})) : (clearTimeout(
|
|
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
|
|
286
|
+
function $e(n) {
|
|
287
287
|
var u;
|
|
288
|
-
if (
|
|
289
|
-
|
|
288
|
+
if (n.key === "Escape") {
|
|
289
|
+
n.preventDefault(), R();
|
|
290
290
|
return;
|
|
291
291
|
}
|
|
292
|
-
if (
|
|
293
|
-
|
|
292
|
+
if (n.key === "ArrowDown") {
|
|
293
|
+
n.preventDefault(), S(h.value + 1);
|
|
294
294
|
return;
|
|
295
295
|
}
|
|
296
|
-
if (
|
|
297
|
-
|
|
296
|
+
if (n.key === "ArrowUp") {
|
|
297
|
+
n.preventDefault(), S(h.value - 1);
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
|
-
if (
|
|
301
|
-
if (
|
|
300
|
+
if (n.key === "Enter") {
|
|
301
|
+
if (n.isComposing)
|
|
302
302
|
return;
|
|
303
|
-
const
|
|
304
|
-
if (!
|
|
303
|
+
const l = v.value;
|
|
304
|
+
if (!l.length)
|
|
305
305
|
return;
|
|
306
|
-
|
|
307
|
-
const c =
|
|
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 (
|
|
312
|
-
const
|
|
313
|
-
if (!(
|
|
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 =
|
|
316
|
-
|
|
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
|
|
320
|
-
if (!
|
|
319
|
+
function Me(n) {
|
|
320
|
+
if (!n)
|
|
321
321
|
return !1;
|
|
322
|
-
const u = (
|
|
323
|
-
return u === "input" || u === "textarea" || u === "select" ||
|
|
322
|
+
const u = (n.tagName || "").toLowerCase();
|
|
323
|
+
return u === "input" || u === "textarea" || u === "select" || n.isContentEditable;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
if (
|
|
327
|
-
|
|
325
|
+
function le(n) {
|
|
326
|
+
if (n.key === "Escape" && d.value) {
|
|
327
|
+
n.preventDefault(), R();
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
|
-
if ((
|
|
331
|
-
|
|
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
|
-
|
|
334
|
+
n.key === "/" && !d.value && !Me(document.activeElement) && (n.preventDefault(), d.value = !0);
|
|
335
335
|
}
|
|
336
|
-
return
|
|
337
|
-
document.addEventListener("keydown",
|
|
338
|
-
}),
|
|
339
|
-
document.removeEventListener("keydown",
|
|
340
|
-
}), (
|
|
341
|
-
|
|
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:
|
|
345
|
-
onKeydown:
|
|
344
|
+
onMousedown: D(R, ["self"]),
|
|
345
|
+
onKeydown: $e
|
|
346
346
|
}, [
|
|
347
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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:
|
|
360
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
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,
|
|
366
|
-
[
|
|
365
|
+
}, null, 8, Qe), [
|
|
366
|
+
[Ae, w.value]
|
|
367
367
|
]),
|
|
368
|
-
|
|
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:
|
|
373
|
+
onClick: R
|
|
374
374
|
}, "×")
|
|
375
375
|
]),
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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:
|
|
381
|
-
onClick: u[1] || (u[1] = (
|
|
380
|
+
class: T([de, x.value === "all" ? pe : ""]),
|
|
381
|
+
onClick: u[1] || (u[1] = (l) => U("all"))
|
|
382
382
|
}, [
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
class:
|
|
386
|
-
}, "(" +
|
|
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
|
-
(
|
|
389
|
-
key:
|
|
388
|
+
(r(!0), i(O, null, P(m.value, (l) => (r(), i("button", {
|
|
389
|
+
key: l.type,
|
|
390
390
|
type: "button",
|
|
391
|
-
class:
|
|
392
|
-
onClick: (c) =>
|
|
391
|
+
class: T([de, x.value === l.type ? pe : ""]),
|
|
392
|
+
onClick: (c) => U(l.type)
|
|
393
393
|
}, [
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
class:
|
|
397
|
-
}, "(" +
|
|
398
|
-
], 10,
|
|
399
|
-
])) :
|
|
400
|
-
|
|
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:
|
|
402
|
+
ref: M,
|
|
403
403
|
class: "zui-search-results overflow-y-auto pb-2.5"
|
|
404
404
|
}, [
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
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] = (
|
|
412
|
+
onClick: u[2] || (u[2] = (l) => y.value = X(Ye)())
|
|
413
413
|
}, "Clear")
|
|
414
414
|
]),
|
|
415
|
-
(
|
|
416
|
-
key:
|
|
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: (
|
|
420
|
+
onClick: (V) => w.value = l
|
|
421
421
|
}, [
|
|
422
422
|
at,
|
|
423
|
-
|
|
424
|
-
], 8,
|
|
425
|
-
])) :
|
|
423
|
+
a("span", lt, C(l), 1)
|
|
424
|
+
], 8, rt))), 128))
|
|
425
|
+
])) : s.value === "zero" ? (r(), i("div", {
|
|
426
426
|
key: 1,
|
|
427
|
-
class:
|
|
428
|
-
}, " Search across SOPs, incidents, assets, people and more — you only ever see what you have access to. ")) :
|
|
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:
|
|
431
|
-
}, " Keep typing… enter at least " +
|
|
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:
|
|
434
|
-
}, " No results for “" +
|
|
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:
|
|
437
|
-
}, " Search is temporarily unavailable. ")) : (
|
|
438
|
-
key:
|
|
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
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
a("div", st, [
|
|
441
|
+
G(C(l.label) + " ", 1),
|
|
442
|
+
a("span", it, "(" + C(l.items.length) + ")", 1)
|
|
443
443
|
]),
|
|
444
|
-
(
|
|
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:
|
|
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:
|
|
452
|
-
onMouseenter: (
|
|
451
|
+
onClick: D((V) => ae(c.url, c.newWindow), ["exact", "prevent"]),
|
|
452
|
+
onMouseenter: (V) => h.value = c.flatIdx
|
|
453
453
|
}, [
|
|
454
|
-
|
|
454
|
+
a("span", {
|
|
455
455
|
class: "inline-flex h-[42px] w-[42px] flex-none items-center justify-center rounded-[10px] text-white",
|
|
456
|
-
style:
|
|
456
|
+
style: Z({ background: c.tileColour })
|
|
457
457
|
}, [
|
|
458
|
-
(
|
|
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,
|
|
467
|
+
}, null, 8, ut))
|
|
468
468
|
], 4),
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
c.kindIcon ? (
|
|
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,
|
|
484
|
-
|
|
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,
|
|
487
|
+
}, null, 8, xt)
|
|
488
488
|
]),
|
|
489
|
-
|
|
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,
|
|
492
|
+
}, null, 8, ht)
|
|
493
493
|
]),
|
|
494
|
-
|
|
495
|
-
], 42,
|
|
494
|
+
yt
|
|
495
|
+
], 42, ct))), 128))
|
|
496
496
|
]))), 128))
|
|
497
497
|
], 512)
|
|
498
498
|
], 512)
|
|
499
|
-
], 32)) :
|
|
499
|
+
], 32)) : g("", !0)
|
|
500
500
|
]));
|
|
501
501
|
}
|
|
502
|
-
},
|
|
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
|
|
520
|
+
function bt(e) {
|
|
521
521
|
if (!e)
|
|
522
522
|
return "";
|
|
523
|
-
const
|
|
524
|
-
if (!
|
|
523
|
+
const o = String(e).trim();
|
|
524
|
+
if (!o)
|
|
525
525
|
return "";
|
|
526
|
-
let
|
|
527
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
528
|
-
|
|
526
|
+
let t = null;
|
|
527
|
+
if (Object.prototype.hasOwnProperty.call(K, o))
|
|
528
|
+
t = o;
|
|
529
529
|
else {
|
|
530
|
-
const
|
|
531
|
-
|
|
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 !
|
|
533
|
+
return !t || !Object.prototype.hasOwnProperty.call(K, t) ? "" : K[t].icon || "";
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function kt(e) {
|
|
536
536
|
if (!e)
|
|
537
537
|
return "";
|
|
538
538
|
if (e.dateText)
|
|
539
539
|
return String(e.dateText);
|
|
540
|
-
const
|
|
541
|
-
return [
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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"],
|
|
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" },
|
|
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:
|
|
584
|
-
const
|
|
585
|
-
var
|
|
586
|
-
return ((
|
|
587
|
-
}), $ =
|
|
588
|
-
|
|
589
|
-
|
|
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
|
|
592
|
-
|
|
591
|
+
function M() {
|
|
592
|
+
p.value = !p.value, p.value && f("open");
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function w(s) {
|
|
595
|
+
return s && Object.prototype.hasOwnProperty.call(t.iconMap, s) && t.iconMap[s] || null;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
600
|
-
return { component:
|
|
601
|
-
const
|
|
602
|
-
return
|
|
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 =
|
|
605
|
-
item:
|
|
606
|
-
icon:
|
|
607
|
-
date:
|
|
608
|
-
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(
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
|
|
610
|
+
function x(s) {
|
|
611
|
+
p.value = !1;
|
|
612
|
+
const h = B(s);
|
|
613
|
+
h && f("navigate", h);
|
|
614
614
|
}
|
|
615
|
-
return (
|
|
615
|
+
return (s, h) => (r(), i("div", {
|
|
616
616
|
ref_key: "rootEl",
|
|
617
|
-
ref:
|
|
617
|
+
ref: d,
|
|
618
618
|
class: "relative font-sans"
|
|
619
619
|
}, [
|
|
620
|
-
|
|
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:
|
|
625
|
+
onClick: M
|
|
626
626
|
}, [
|
|
627
|
-
|
|
628
|
-
$.value ? (
|
|
627
|
+
L(ce, { class: "!h-[21px] !w-[21px]" }),
|
|
628
|
+
$.value ? (r(), i("span", gt)) : g("", !0)
|
|
629
629
|
]),
|
|
630
|
-
|
|
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:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
e.notifications ?
|
|
642
|
-
(
|
|
643
|
-
key:
|
|
644
|
-
class:
|
|
645
|
-
onClick: (
|
|
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
|
-
|
|
648
|
-
|
|
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
|
-
})) : (
|
|
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:
|
|
661
|
-
}, null, 8,
|
|
660
|
+
innerHTML: y.icon.path
|
|
661
|
+
}, null, 8, Et))
|
|
662
662
|
]),
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
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
|
-
|
|
669
|
-
|
|
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:
|
|
675
|
+
onClick: D((z) => s.$emit("markAsRead", y.item.NotifyID), ["stop"])
|
|
676
676
|
}, [
|
|
677
|
-
|
|
678
|
-
], 8,
|
|
679
|
-
|
|
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:
|
|
684
|
+
onClick: D((z) => s.$emit("deleteNotification", y.item.NotifyID), ["stop"])
|
|
685
685
|
}, [
|
|
686
|
-
|
|
687
|
-
], 8,
|
|
686
|
+
L(De, { class: "!w-3" })
|
|
687
|
+
], 8, Ht)
|
|
688
688
|
])
|
|
689
689
|
], 10, $t))), 128))
|
|
690
690
|
]),
|
|
691
|
-
|
|
692
|
-
href:
|
|
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:
|
|
695
|
-
}, " See all notifications ", 8,
|
|
694
|
+
onClick: h[0] || (h[0] = D((y) => x(e.notificationsUrl), ["exact", "prevent"]))
|
|
695
|
+
}, " See all notifications ", 8, Ot)
|
|
696
696
|
], 512), [
|
|
697
|
-
[
|
|
697
|
+
[ke, p.value]
|
|
698
698
|
])
|
|
699
699
|
]),
|
|
700
700
|
_: 1
|
|
701
701
|
})
|
|
702
702
|
], 512));
|
|
703
703
|
}
|
|
704
|
-
},
|
|
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" },
|
|
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"],
|
|
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:
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
|
|
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 $ =
|
|
729
|
-
|
|
730
|
-
|
|
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
|
|
733
|
-
|
|
732
|
+
function w(E) {
|
|
733
|
+
p.value = !1, f("select", E);
|
|
734
734
|
}
|
|
735
|
-
return (
|
|
735
|
+
return (E, m) => (r(), i("div", {
|
|
736
736
|
ref_key: "rootEl",
|
|
737
|
-
ref:
|
|
737
|
+
ref: d,
|
|
738
738
|
class: "relative font-sans"
|
|
739
739
|
}, [
|
|
740
|
-
|
|
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) =>
|
|
745
|
+
onClick: m[1] || (m[1] = (x) => p.value = !p.value)
|
|
746
746
|
}, [
|
|
747
|
-
e.user.avatarUrl && !
|
|
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) =>
|
|
753
|
-
}, null, 40,
|
|
752
|
+
onError: m[0] || (m[0] = (x) => _.value = !0)
|
|
753
|
+
}, null, 40, Dt)) : (r(), i("span", Rt, C(M.value), 1))
|
|
754
754
|
]),
|
|
755
|
-
|
|
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:
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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
|
-
|
|
771
|
-
(
|
|
772
|
-
x.divider ? (
|
|
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 &&
|
|
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:
|
|
776
|
+
onClick: D((h) => w(x), ["exact", "prevent"])
|
|
777
777
|
}, [
|
|
778
|
-
x.icon ? (
|
|
778
|
+
x.icon ? (r(), H(be(x.icon), {
|
|
779
779
|
key: 0,
|
|
780
780
|
class: "!h-4 !w-4 flex-none"
|
|
781
|
-
})) :
|
|
782
|
-
|
|
781
|
+
})) : g("", !0),
|
|
782
|
+
a("span", null, C(x.label), 1)
|
|
783
783
|
], 8, qt))
|
|
784
784
|
], 64))), 128))
|
|
785
785
|
], 512), [
|
|
786
|
-
[
|
|
786
|
+
[ke, p.value]
|
|
787
787
|
])
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
790
790
|
})
|
|
791
791
|
], 512));
|
|
792
792
|
}
|
|
793
|
-
},
|
|
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
|
-
},
|
|
813
|
+
}, Zt = {
|
|
797
814
|
key: 0,
|
|
798
815
|
class: "font-normal text-black-800 dark:text-content-muted"
|
|
799
|
-
},
|
|
816
|
+
}, en = ["href", "aria-label"], pn = {
|
|
800
817
|
__name: "AppHeader",
|
|
801
818
|
props: {
|
|
802
819
|
title: {
|
|
@@ -880,117 +897,152 @@ const kt = {
|
|
|
880
897
|
"deleteNotification",
|
|
881
898
|
"notifications-open"
|
|
882
899
|
],
|
|
883
|
-
setup(e, { emit:
|
|
884
|
-
const
|
|
885
|
-
function
|
|
886
|
-
var
|
|
887
|
-
|
|
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
|
|
890
|
-
|
|
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
|
-
|
|
930
|
+
function W() {
|
|
931
|
+
f("home"), I(t.homeUrl);
|
|
894
932
|
}
|
|
895
|
-
function
|
|
933
|
+
function q() {
|
|
896
934
|
window.history.back();
|
|
897
935
|
}
|
|
898
|
-
function
|
|
899
|
-
|
|
936
|
+
function F(v) {
|
|
937
|
+
f("menu-select", v), v.href && I(v.href);
|
|
900
938
|
}
|
|
901
|
-
return (
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
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:
|
|
957
|
+
style: Z({ background: N.value }),
|
|
912
958
|
"aria-hidden": "true"
|
|
913
|
-
}, null, 4)) :
|
|
914
|
-
|
|
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:
|
|
962
|
+
style: Z({ "--hdr-accent": j.value })
|
|
917
963
|
}, [
|
|
918
|
-
e.homeUrl ? (
|
|
964
|
+
e.homeUrl ? (r(), H(He, {
|
|
919
965
|
key: 0,
|
|
920
966
|
text: e.homeTooltip,
|
|
921
967
|
position: "bottom"
|
|
922
968
|
}, {
|
|
923
|
-
default:
|
|
924
|
-
|
|
925
|
-
href:
|
|
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:
|
|
974
|
+
onClick: D(W, ["exact", "prevent"])
|
|
929
975
|
}, [
|
|
930
|
-
|
|
931
|
-
], 8,
|
|
976
|
+
L(ze, { class: "!h-[22px] !w-[22px]" })
|
|
977
|
+
], 8, en)
|
|
932
978
|
]),
|
|
933
979
|
_: 1
|
|
934
|
-
}, 8, ["text"])) :
|
|
935
|
-
e.showBack ? (
|
|
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:
|
|
987
|
+
onClick: q
|
|
942
988
|
}, [
|
|
943
|
-
|
|
944
|
-
])) :
|
|
945
|
-
|
|
989
|
+
L(Le, { class: "!h-[22px] !w-[22px]" })
|
|
990
|
+
])) : g("", !0),
|
|
991
|
+
Y(v.$slots, "nav-extra")
|
|
946
992
|
], 4),
|
|
947
|
-
|
|
948
|
-
]),
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
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, {
|
|
958
1010
|
key: 1,
|
|
959
1011
|
notifications: e.notifications,
|
|
960
1012
|
"unread-count": e.unreadCount,
|
|
961
1013
|
"notifications-url": e.notificationsUrl,
|
|
962
1014
|
"icon-map": e.notificationIconMap,
|
|
963
|
-
onMarkAsRead:
|
|
964
|
-
onDeleteNotification:
|
|
965
|
-
onOpen:
|
|
966
|
-
onNavigate:
|
|
967
|
-
}, null, 8, ["notifications", "unread-count", "notifications-url", "icon-map"])) :
|
|
968
|
-
e.user ? (
|
|
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, {
|
|
969
1021
|
key: 2,
|
|
970
1022
|
user: e.user,
|
|
971
1023
|
"menu-items": e.menuItems,
|
|
972
|
-
onSelect:
|
|
973
|
-
}, null, 8, ["user", "menu-items"])) :
|
|
974
|
-
], 64)) :
|
|
975
|
-
]),
|
|
976
|
-
e.searchProvider ? (
|
|
1024
|
+
onSelect: F
|
|
1025
|
+
}, null, 8, ["user", "menu-items"])) : g("", !0)
|
|
1026
|
+
], 64)) : g("", !0)
|
|
1027
|
+
], 512),
|
|
1028
|
+
e.searchProvider ? (r(), H(mt, {
|
|
977
1029
|
key: 0,
|
|
978
|
-
open:
|
|
979
|
-
"onUpdate:open":
|
|
1030
|
+
open: p.value,
|
|
1031
|
+
"onUpdate:open": k[4] || (k[4] = (S) => p.value = S),
|
|
980
1032
|
"search-provider": e.searchProvider,
|
|
981
1033
|
placeholder: e.searchPlaceholder,
|
|
982
1034
|
types: e.searchTypes,
|
|
983
|
-
onNavigate:
|
|
984
|
-
}, null, 8, ["open", "search-provider", "placeholder", "types"])) :
|
|
985
|
-
]));
|
|
1035
|
+
onNavigate: I
|
|
1036
|
+
}, null, 8, ["open", "search-provider", "placeholder", "types"])) : g("", !0)
|
|
1037
|
+
], 512));
|
|
986
1038
|
}
|
|
987
1039
|
};
|
|
988
1040
|
export {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
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
|
|
996
1048
|
};
|