@iamproperty/components 5.3.0-beta2 → 5.3.0-beta3

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,10 +1,10 @@
1
- import { openBlock as m, createElementBlock as h, normalizeClass as S, createElementVNode as b, toDisplayString as $, createCommentVNode as _, Fragment as D, renderList as N, renderSlot as w, withDirectives as z, mergeProps as j, vModelDynamic as W, vModelText as ht, vModelSelect as pt, createTextVNode as ft, resolveComponent as K, createVNode as M, withModifiers as bt } from "vue";
2
- const y = (e, a) => {
3
- const t = e.__vccOpts || e;
4
- for (const [i, r] of a)
5
- t[i] = r;
6
- return t;
7
- }, gt = {
1
+ import { openBlock as r, createElementBlock as l, normalizeClass as _, createElementVNode as c, toDisplayString as w, createCommentVNode as b, Fragment as x, renderList as L, renderSlot as f, withDirectives as T, mergeProps as A, vModelDynamic as H, vModelText as D, vModelSelect as F, createTextVNode as V, resolveComponent as M, createVNode as k, withModifiers as O } from "vue";
2
+ const p = (t, a) => {
3
+ const e = t.__vccOpts || t;
4
+ for (const [s, o] of a)
5
+ e[s] = o;
6
+ return e;
7
+ }, B = {
8
8
  name: "Logo",
9
9
  props: {
10
10
  id: {
@@ -29,652 +29,26 @@ const y = (e, a) => {
29
29
  return "brand brand--" + this.id;
30
30
  }
31
31
  }
32
- }, yt = ["xlink:href"], vt = ["innerHTML"];
33
- function wt(e, a, t, i, r, o) {
34
- return m(), h("div", {
35
- class: S(o.className)
32
+ }, U = ["xlink:href"], W = ["innerHTML"];
33
+ function K(t, a, e, s, o, n) {
34
+ return r(), l("div", {
35
+ class: _(n.className)
36
36
  }, [
37
- (m(), h("svg", null, [
38
- b("title", null, "iam " + $(t.id), 1),
39
- b("use", {
40
- "xlink:href": t.path + o.src
41
- }, null, 8, yt)
37
+ (r(), l("svg", null, [
38
+ c("title", null, "iam " + w(e.id), 1),
39
+ c("use", {
40
+ "xlink:href": e.path + n.src
41
+ }, null, 8, U)
42
42
  ])),
43
- t.desc ? (m(), h("span", {
43
+ e.desc ? (r(), l("span", {
44
44
  key: 0,
45
- innerHTML: t.desc
46
- }, null, 8, vt)) : _("", !0)
45
+ innerHTML: e.desc
46
+ }, null, 8, W)) : b("", !0)
47
47
  ], 2);
48
48
  }
49
- const $i = /* @__PURE__ */ y(gt, [["render", wt]]), _t = function(e) {
50
- return typeof e != "string" ? !1 : !isNaN(e) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
51
- !isNaN(parseFloat(e));
52
- }, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1), C = (e, a, t) => a.split(/[\.\[\]\'\"]/).filter((i) => i).reduce((i, r) => i ? i[r] : t, e);
53
- var Lt = globalThis && globalThis.__awaiter || function(e, a, t, i) {
54
- function r(o) {
55
- return o instanceof t ? o : new t(function(s) {
56
- s(o);
57
- });
58
- }
59
- return new (t || (t = Promise))(function(o, s) {
60
- function l(u) {
61
- try {
62
- n(i.next(u));
63
- } catch (c) {
64
- s(c);
65
- }
66
- }
67
- function d(u) {
68
- try {
69
- n(i.throw(u));
70
- } catch (c) {
71
- s(c);
72
- }
73
- }
74
- function n(u) {
75
- u.done ? o(u.value) : r(u.value).then(l, d);
76
- }
77
- n((i = i.apply(e, a || [])).next());
78
- });
79
- };
80
- const et = (e) => {
81
- const a = Array.from(e.querySelectorAll("thead th"));
82
- Array.from(e.querySelectorAll("tbody tr")).forEach((i, r) => {
83
- const o = Array.from(i.querySelectorAll("th, td")), s = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
84
- o.forEach((l, d) => {
85
- const n = a[d];
86
- if (typeof n < "u") {
87
- let u = document.createElement("div");
88
- u.innerHTML = n.innerHTML;
89
- let c = u.textContent || u.innerText || "";
90
- l.setAttribute("data-label", c), n.hasAttribute("data-td-class") && l.setAttribute("class", n.getAttribute("data-td-class")), n.hasAttribute("data-format") && (l.setAttribute("data-format", n.getAttribute("data-format")), l.innerHTML = Q(n.getAttribute("data-format"), l.textContent.trim())), s.includes(l.textContent.trim().toLowerCase()) && l.setAttribute("data-content", l.textContent.trim().toLowerCase());
91
- }
92
- });
93
- });
94
- }, St = (e) => {
95
- let a = 0;
96
- return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
97
- let r = window.getComputedStyle(document.querySelector("html")), o = t.querySelector(":scope > *:last-child > *:first-child");
98
- if (o) {
99
- o.classList.add("text-nowrap");
100
- let s = o.offsetWidth / parseFloat(r.fontSize);
101
- s += 1.7, a = a > s ? a : s;
102
- }
103
- }), a;
104
- }, $t = (e, a) => {
105
- if (a.classList.contains("table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
106
- return !1;
107
- Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
108
- e.querySelectorAll("thead tr th.expand-button-heading").length || t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
109
- }), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
110
- const r = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
111
- t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${r}>Expand</button></td>`);
112
- });
113
- }, kt = (e) => {
114
- e.addEventListener("click", (a) => {
115
- if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
116
- let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
117
- t.toggleAttribute("aria-expanded"), i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
118
- }
119
- });
120
- }, at = (e, a) => {
121
- let t = a.querySelector("[data-search]");
122
- if (!t)
123
- return !1;
124
- const i = t.getAttribute("id"), r = t.getAttribute("data-search").split(",");
125
- let o = t.parentNode, s = {};
126
- r.forEach((l, d) => {
127
- Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((n, u) => {
128
- n.querySelector(".td__content") ? s[n.querySelector(".td__content").textContent] = n.querySelector(".td__content").textContent : s[n.textContent] = n.textContent;
129
- });
130
- }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), o.querySelector("datalist") || (o.innerHTML += `<datalist id="${i}_list"></datalist>`), o.querySelector("datalist").innerHTML = `${Object.keys(s).map((l) => `<option value="${l}"></option>`).join("")}`;
131
- }, qt = (e, a, t, i, r) => {
132
- var o;
133
- let s = function(n, u = !1) {
134
- if (a.classList.contains("processing"))
135
- return !1;
136
- if (n.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, p) => {
137
- const g = c.getAttribute("data-duplicate"), f = document.getElementById(g), A = document.querySelector(`[for="${g}"] iam-card`);
138
- if (f.checked != c.checked)
139
- if (A) {
140
- let k = new Event("click");
141
- A.dispatchEvent(k);
142
- } else
143
- f.checked = c.checked;
144
- }), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
145
- if (!u) {
146
- let c = a.querySelector("[data-pagination]");
147
- c.value = 1, i.setAttribute("data-page", 1);
148
- }
149
- nt(e, a, t, i);
150
- } else
151
- a.hasAttribute("data-submit") ? a.submit() : (G(e, a, i), B(e, a));
152
- if (a.hasAttribute("data-ajax-post")) {
153
- let c = new FormData(a), p = new URLSearchParams(c).toString();
154
- const g = new XMLHttpRequest();
155
- g.open("GET", `${window.location.href}?ajax=true&${p}`), g.send();
156
- }
157
- };
158
- a.addEventListener("keyup", (n) => {
159
- clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && (o = setTimeout(function() {
160
- s(n);
161
- }, 500));
162
- }), a.addEventListener("change", (n) => {
163
- clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Z(e, a, r), s(n)), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-filter][data-no-ajax]") ? (G(e, a, i), B(e, a)) : (n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && n.target.closest("form .dialog__wrapper > dialog") || n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && !n.target.closest("form dialog")) && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-show]") && s(n), n && n.target instanceof HTMLElement && n.target.closest("[data-mimic]") && s(n);
164
- }), a.addEventListener("click", (n) => {
165
- if (clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest('dialog button:not([type="button"])') && n.target.closest('dialog button:not([type="button"])').closest("dialog").close(), n && n.target instanceof HTMLElement && n.target.closest(".dialog__close") && (n.preventDefault(), n.stopPropagation()), n && n.target instanceof HTMLElement && n.target.closest("[data-clear]")) {
166
- a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, p) => {
167
- c.innerHTML = "";
168
- });
169
- let u = a.elements;
170
- for (let c = 0; c < u.length; c++)
171
- switch (u[c].type.toLowerCase() ? u[c].type.toLowerCase() : "text") {
172
- case "text":
173
- case "password":
174
- case "textarea":
175
- u[c].value = "";
176
- break;
177
- case "radio":
178
- case "checkbox":
179
- if (u[c].checked) {
180
- let g = u[c], f = g.getAttribute("id"), A = document.querySelector(`[for="${f}"`);
181
- if (A.querySelector("iam-card")) {
182
- let k = A.querySelector("iam-card"), E = new Event("click");
183
- k.dispatchEvent(E);
184
- }
185
- g.checked = !1;
186
- }
187
- break;
188
- case "select-one":
189
- case "select-multi":
190
- u[c].selectedIndex = -1;
191
- break;
192
- }
193
- a.classList.remove("processing"), a.hasAttribute("data-submit") || Z(e, a, r), s(n);
194
- }
195
- }), a.addEventListener("submit", (n) => {
196
- clearTimeout(o), a.hasAttribute("data-submit") || n.preventDefault(), s(n);
197
- }), a.addEventListener("force", (n) => {
198
- s(n);
199
- }), a.addEventListener("paginate", (n) => {
200
- s(n, !0);
201
- });
202
- let l = [], d = [];
203
- Array.from(a.querySelectorAll("[data-mimic]")).forEach((n, u) => {
204
- let c = n.getAttribute("data-mimic");
205
- Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((p, g) => {
206
- let f = p.closest("form");
207
- l.includes(f) || l.push(f), d.includes(c) || d.push(c);
208
- });
209
- }), l.forEach((n, u) => {
210
- const c = function() {
211
- let p = [], g = new FormData(n);
212
- for (const [f, A] of g)
213
- document.querySelector(`[data-mimic="${f}"]`) && !p.includes(f) ? (p.push(f), document.querySelector(`[data-mimic="${f}"]`).value = A) : document.querySelector(`[data-mimic="${f}"]`) && (document.querySelector(`[data-mimic="${f}"]`).value += "," + A);
214
- for (const f of p) {
215
- const A = new Event("force");
216
- a.dispatchEvent(A);
217
- }
218
- for (const f of d)
219
- if (!g.has(f) && n.querySelector(`[name="${f}"]`)) {
220
- document.querySelector(`[data-mimic="${f}"]`).value = "";
221
- const A = new Event("force");
222
- a.dispatchEvent(A);
223
- }
224
- };
225
- n.addEventListener("force", (p) => {
226
- c();
227
- }), n.addEventListener("change", (p) => {
228
- c();
229
- });
230
- });
231
- }, Z = (e, a, t) => {
232
- if (a.getAttribute("data-ajax"))
233
- return !1;
234
- let i = e.querySelector("tbody"), r = a.querySelector("[data-sort]"), o = r.querySelector(`option:nth-child(${r.selectedIndex + 1})`), s = o.getAttribute("data-sort"), l = o.getAttribute("data-order"), d = o.getAttribute("data-format");
235
- if (!s)
236
- return i.innerHTML = t.innerHTML, et(e), !1;
237
- let n = [];
238
- ["asc", "desc", "descending"].includes(l) || (n = l.split(","));
239
- let u = [];
240
- Array.from(i.querySelectorAll("tr")).forEach((p, g) => {
241
- let f = p.querySelector('td[data-label="' + s + '"], th[data-label="' + s + '"]').textContent.trim();
242
- p.querySelector('[data-label="' + s + '"] .td__content') && (f = p.querySelector('[data-label="' + s + '"] .td__content').textContent.trim()), n.length && n.includes(f) && (f = n.indexOf(f)), _t(f) && (f = At(f, 10)), d && d == "date" && (f = new Date(f));
243
- const A = {
244
- index: f,
245
- row: p
246
- };
247
- u.push(A);
248
- }), u.sort((p, g) => p.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (u = u.reverse());
249
- let c = "";
250
- u.forEach((p, g) => {
251
- c += p.row.outerHTML;
252
- }), i.innerHTML = c;
253
- }, G = (e, a, t) => {
254
- e.classList.remove("table--filtered");
255
- let i = st(a), r = [], o = 0, s = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
256
- if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, u) => {
257
- n.classList.remove("filtered"), n.classList.remove("filtered--matched"), n.classList.remove("filtered--show"), n.removeAttribute("data-filtered-by");
258
- }), a.querySelector("[data-search]")) {
259
- let n = a.querySelector("[data-search]");
260
- a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((c, p) => {
261
- r.push({ column: `${c.trim()}`, value: `${n.value}` });
262
- });
263
- }
264
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, u) => {
265
- n.innerHTML = "", n.parentNode.classList.remove("hover");
266
- });
267
- let d = 0;
268
- Object.values(i).forEach((n, u) => {
269
- typeof n == "object" && Object.values(n).length ? d += Object.values(n).length : d++;
270
- }), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, u) => {
271
- n.innerHTML += `(${d})`, n.parentNode.classList.add("hover");
272
- }), e.classList.add("table--filtered");
273
- for (const [n, u] of Object.entries(i))
274
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, p) => {
275
- let g = !1;
276
- u.forEach((f, A) => {
277
- let k = c.querySelector(`[data-label="${n}"]`);
278
- if (f && f == "$today")
279
- f = Q("date", /* @__PURE__ */ new Date());
280
- else if (f && f == "$yesterday") {
281
- let x = /* @__PURE__ */ new Date();
282
- x.setDate(x.getDate() - 1), f = Q("date", x);
283
- } else if (f && (f == "$thisWeek" || f == "$lastWeek")) {
284
- let x = /* @__PURE__ */ new Date(), L = new Date(x.setDate(x.getDate() - (x.getDay() - 1))), v = new Date(x.setDate(x.getDate() - x.getDay() + 7)), q = new Date(k.textContent.toLowerCase());
285
- if (x.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), f == "$thisWeek")
286
- g = q >= L && q <= v;
287
- else {
288
- let T = new Date(L.setDate(L.getDate() - 7)), P = new Date(v.setDate(v.getDate() - 7));
289
- T.setHours(0, 0, 0, 0), P.setHours(0, 0, 0, 0), g = q >= T && q <= P;
290
- }
291
- } else if (f && f == "$thisMonth") {
292
- let x = /* @__PURE__ */ new Date(), L = x.getFullYear(), v = x.getMonth();
293
- var E = new Date(L, v, 1), I = new Date(L, v + 1, 0);
294
- let q = new Date(k.textContent.toLowerCase());
295
- E.setHours(0, 0, 0, 0), I.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= E && q <= I;
296
- } else if (f && f == "$lastMonth") {
297
- let x = /* @__PURE__ */ new Date(), L = x.getFullYear(), v = x.getMonth();
298
- var O = new Date(L, v - 1, 1), H = new Date(L, v, 0);
299
- let q = new Date(k.textContent.toLowerCase());
300
- O.setHours(0, 0, 0, 0), H.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= O && q <= H;
301
- }
302
- k && k.textContent.toLowerCase().includes(f.toLowerCase()) && (g = !0);
303
- }), g || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", n));
304
- });
305
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, u) => {
306
- let c = !(r.length > 0 && r[0].value.length >= 3);
307
- r.forEach((p, g) => {
308
- let f = n.querySelector(`[data-label="${p.column}"]`);
309
- f && p.value.length >= 3 && f.textContent.toLowerCase().includes(p.value.toLowerCase()) && (c = !0);
310
- }), c || n.classList.add("filtered");
311
- }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, u) => {
312
- o++, n.classList.add("filtered--matched"), Math.ceil(o / l) == parseInt(s) && n.classList.add("filtered--show");
313
- }), t && (t.setAttribute("data-total", o), t.setAttribute("data-show", l), t.setAttribute("data-page", s));
314
- }, B = (e, a, t) => {
315
- Array.from(a.querySelectorAll("[data-query]")).forEach((r, o) => {
316
- let s = r.getAttribute("data-query"), l = 0;
317
- if (s == "total")
318
- t.hasAttribute("data-total") ? l = t.getAttribute("data-total") : l = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
319
- else if (!s.includes(" == ") && s.includes(" & ")) {
320
- let d = s.split(" & "), n = "";
321
- d.forEach((u) => {
322
- n += `:not([data-filtered-by="${u}"])`;
323
- }), l = Array.from(e.querySelectorAll(`tbody tr${n}`)).length;
324
- } else if (!s.includes(" == "))
325
- l = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
326
- else if (s.includes(" && ")) {
327
- let d = s.split(" && ");
328
- l = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
329
- let u = !0;
330
- for (const [c, p] of Object.entries(d)) {
331
- let g = p.split(" == ");
332
- (!n.querySelector(`td[data-label="${g[0]}"]`) || n.querySelector(`td[data-label="${g[0]}"]`).textContent != `${g[1]}`) && (u = !1);
333
- }
334
- return u;
335
- }).length;
336
- } else {
337
- let d = s.split(" == ");
338
- l = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${d[0]}"], tbody tr[data-filtered-by="${d[0]}"] td[data-label="${d[0]}"]`)).filter(function(n) {
339
- return n.textContent === d[1];
340
- }).length;
341
- }
342
- r.hasAttribute("data-total") ? r.setAttribute("data-total", l) : r.innerHTML = l;
343
- });
344
- }, Et = function(e, a, t, i) {
345
- t.addEventListener("update-page", (r) => {
346
- let o = a.querySelector("[data-pagination]"), s = r.detail.page;
347
- if (o.value = s, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", s), e.hasAttribute("data-show-history")) {
348
- const l = new URL(location);
349
- l.searchParams.set("page", s), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: s }, "", l);
350
- }
351
- if (!i.hasAttribute("data-no-scroll")) {
352
- const d = e.getBoundingClientRect().top + window.pageYOffset + -250;
353
- window.scrollTo({ top: d, behavior: "smooth" });
354
- }
355
- }), t.addEventListener("update-show", (r) => {
356
- let o = a.querySelector("[data-show]"), s = r.detail.show;
357
- o.value = s, i.setAttribute("data-show", s), a.dispatchEvent(new Event("submit"));
358
- });
359
- }, Tt = (e, a) => {
360
- if (!e)
361
- return !1;
362
- e.addEventListener("click", (t) => {
363
- Ht(a);
364
- });
365
- }, Ht = function(e) {
366
- for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
367
- for (var r = t[i].querySelectorAll("td,th"), o = [], s = 0; s < r.length; s++)
368
- o.push(`"${r[s].textContent}"`);
369
- a.push(o.join(","));
370
- }
371
- a = a.join(`
372
- `);
373
- let l = new Blob([a], {
374
- type: "text/csv"
375
- });
376
- var d = document.createElement("a");
377
- d.download = "export.csv";
378
- var n = window.URL.createObjectURL(l);
379
- d.href = n, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
380
- }, it = function(e, a, t, i) {
381
- if (et(e), $t(e, i), B(e, a, i), i && i.classList.contains("table--cta")) {
382
- let o = function() {
383
- Array.from(e.querySelectorAll("tr")).forEach((s, l) => {
384
- let d = s.offsetHeight;
385
- s.style.setProperty("--row-height", `${d}px`);
386
- });
387
- };
388
- const r = St(e);
389
- i.style.setProperty("--cta-width", `${r}rem`), new ResizeObserver(o).observe(e);
390
- }
391
- }, st = function(e) {
392
- let a = new Object();
393
- return Array.from(e.querySelectorAll("[data-filter]")).forEach((i, r) => {
394
- if (!(i.type == "radio" && !i.checked) && !(i.type == "checkbox" && !i.checked) && i && i.value) {
395
- let o = i.getAttribute("data-filter");
396
- a[o] || (a[o] = new Array()), a[o].push(i.value);
397
- }
398
- }), a;
399
- }, nt = function(e, a, t, i) {
400
- return Lt(this, void 0, void 0, function* () {
401
- let r = new FormData(a), o = new URLSearchParams(r).toString(), s = e.querySelectorAll("thead tr th:not(.expand-button-heading)"), l = e.querySelector("tbody"), d = a.getAttribute("data-ajax");
402
- i.classList.add("table--loading");
403
- let n = st(a);
404
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((p, g) => {
405
- p.innerHTML = "", p.parentNode.classList.remove("hover");
406
- });
407
- let u = 0;
408
- Object.values(n).forEach((p, g) => {
409
- typeof p == "object" && Object.values(p).length ? u += Object.values(p).length : u++;
410
- }), u && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((p, g) => {
411
- p.innerHTML += `(${u})`, p.parentNode.classList.add("hover");
412
- }), window.controller || (window.controller = []), window.controller[d] && window.controller[d].abort(), window.controller[d] = new AbortController();
413
- const { signal: c } = controller[d];
414
- t.setAttribute("data-loading", "true"), a.classList.add("processing");
415
- try {
416
- yield fetch(d + "?" + o, {
417
- signal: c,
418
- method: "get",
419
- credentials: "same-origin",
420
- headers: new Headers({
421
- "Content-Type": "application/json",
422
- Accept: "application/json",
423
- "X-Requested-With": "XMLHttpRequest"
424
- })
425
- }).then((p) => p.json()).then((p) => {
426
- let g = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", f = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", A = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", k = C(p, f, 15), E = C(p, A, 1), I = C(p, g), O = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
427
- I ? (l.innerHTML = "", I.forEach((H, x) => {
428
- var L = document.createElement("tr");
429
- s.forEach((v, q) => {
430
- let T = "";
431
- var P = document.createElement("td");
432
- if (P.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
433
- var U = v.getAttribute("data-output");
434
- T = U.replace(new RegExp(/{(.*?)}/, "gm"), function(X) {
435
- return C(H, X.replace("{", "").replace("}", ""));
436
- });
437
- }
438
- if (v.hasAttribute("data-output-array")) {
439
- var U = v.getAttribute("data-output");
440
- let ct = C(H, U.replace("{", "").replace("}", ""));
441
- T = "", ct.forEach((J, xi) => {
442
- let ut = v.getAttribute("data-output-array"), F = "";
443
- if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
444
- const V = C(J, v.getAttribute("data-output-array-property")), mt = JSON.parse(v.getAttribute("data-output-array-transform"))[V];
445
- F = ut.replace(`{${v.getAttribute("data-output-array-property")}}`, mt);
446
- }
447
- F = F.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
448
- return C(J, V.replace("{", "").replace("}", ""));
449
- }), T += F;
450
- });
451
- }
452
- v.hasAttribute("data-transform") && (T = JSON.parse(v.getAttribute("data-transform"))[T], !T && v.hasAttribute("data-default") && (T = v.getAttribute("data-default"))), P.innerHTML = T, L.appendChild(P);
453
- }), l.appendChild(L);
454
- }), at(e, a), i.setAttribute("data-total", parseInt(k)), i.setAttribute("data-page", parseInt(E)), it(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((H, x) => {
455
- let L = C(p, H.getAttribute("data-ajax-query"), "");
456
- H.hasAttribute("data-total") ? H.setAttribute("data-total", L) : H.innerHTML = L;
457
- }), parseInt(k) == 0 && (l.innerHTML = `<tr><td colspan="100%"><span>${O}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
458
- event: "Ajax table loaded",
459
- url: d,
460
- formData: o
461
- })) : l.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
462
- });
463
- } catch (p) {
464
- console.log(p);
465
- }
466
- });
467
- }, Q = (e, a) => {
468
- switch (e) {
469
- case "datetime":
470
- return new Date(a).toLocaleDateString("en-gb", { weekday: "short", year: "2-digit", month: "long", day: "numeric" }) + " " + new Date(a).toLocaleTimeString("en-gb", { hour: "2-digit", minute: "2-digit" });
471
- case "date":
472
- return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
473
- case "capitalise":
474
- return a = xt(a);
475
- }
476
- };
477
- class Mt extends HTMLElement {
478
- constructor() {
479
- super(), this.attachShadow({ mode: "open" });
480
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/table.css";`, r = `@import "${a}/css/components/table.global.css";`, o = document.createElement("template");
481
- o.innerHTML = `
482
- <style>
483
- @import "${t}";
484
- ${i}
485
-
486
- :host(.mh-sm){
487
- max-height: none!important;
488
- }
489
- :host(.mh-md){
490
- max-height: none!important;
491
- }
492
- :host(.mh-lg){
493
- max-height: none!important;
494
- }
495
-
496
- ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
497
- </style>
498
- <slot name="before"></slot>
499
- <div class="table--cta">
500
- <div class="table__wrapper">
501
- <slot></slot>
502
- </div>
503
- </div>
504
- <iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
505
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">${r}</style>`);
506
- }
507
- connectedCallback() {
508
- const a = new URLSearchParams(window.location.search);
509
- this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
510
- let t = this.classList.toString();
511
- if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.querySelector(".actionbar__sticky") && this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector("iam-pagination"), this.pagination.setAttribute("data-total", this.getAttribute("data-total")), this.pagination.setAttribute("data-page", this.getAttribute("data-page")), this.pagination.setAttribute("data-show", this.getAttribute("data-show")), this.pagination.setAttribute("data-increment", this.getAttribute("data-show")), this.hasAttribute("data-page-jump") && this.pagination.setAttribute("data-page-jump", "true"), this.hasAttribute("data-per-page") && this.pagination.setAttribute("data-per-page", "true"), this.hasAttribute("data-item-count") && this.pagination.setAttribute("data-item-count", "true"), this.hasAttribute("data-loading") && this.pagination.setAttribute("data-loading", "true"), this.classList.contains("table--fullwidth") && this.pagination.setAttribute("data-minimal", "true"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), at(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), kt(this.table), qt(this.table, this.form, this.pagination, this, this.savedTableBody), Et(this.table, this.form, this.pagination, this), Tt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
512
- nt(this.table, this.form, this.pagination, this);
513
- else {
514
- let r = function(s = 1) {
515
- return Math.floor(Math.random() * Date.now() * (s + 1));
516
- };
517
- if (this.querySelector("iam-actionbar[data-selectall]")) {
518
- const s = this.querySelector("iam-actionbar[data-selectall]");
519
- Array.from(this.table.querySelectorAll("thead tr")).forEach((l, d) => {
520
- l.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
521
- }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((l, d) => {
522
- let n = `row${r(d)}`;
523
- l.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${n}"/><label for="${n}"><span class="visually-hidden">Select row</span></label></td>`);
524
- }), this.table.addEventListener("change", (l) => {
525
- if (l && l.target instanceof HTMLElement && l.target.closest(".selectrow input")) {
526
- let d = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, n = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
527
- s.setAttribute("data-selected", d == n ? "all" : n);
528
- }
529
- }), s.addEventListener("selected", (l) => {
530
- l.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d, n) => {
531
- d.checked = !1;
532
- }) : l.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d, n) => {
533
- d.checked = !0;
534
- });
535
- });
536
- }
537
- let o = -1;
538
- Array.from(this.table.querySelectorAll("tbody tr")).forEach((s, l) => {
539
- if (s.querySelector(":scope > td > .dialog__wrapper")) {
540
- let d = s.querySelector(":scope > td > .dialog__wrapper").parentNode;
541
- d.classList.add("td--fixed"), o = Array.from(d.parentNode.children).indexOf(d);
542
- }
543
- }), o != -1 && (this.table.querySelector(`thead tr th:nth-child(${o + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${o + 1})`)).forEach((s, l) => {
544
- s.classList.add("td--fixed");
545
- })), it(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this.table, this.form);
546
- }
547
- this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
548
- this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
549
- });
550
- }
551
- static get observedAttributes() {
552
- return ["data-total", "data-page", "data-show"];
553
- }
554
- attributeChangedCallback(a, t, i) {
555
- switch (this.pagination = this.shadowRoot.querySelector("iam-pagination"), a) {
556
- case "data-total": {
557
- t != i && this.pagination.setAttribute("data-total", i);
558
- break;
559
- }
560
- case "data-show": {
561
- t != i && this.pagination.setAttribute("data-show", i);
562
- break;
563
- }
564
- case "data-page": {
565
- t != i && this.pagination.setAttribute("data-page", i);
566
- break;
567
- }
568
- }
569
- }
570
- }
571
- /*!
572
- * iamKey v5.3.0-beta2
573
- * Copyright 2022-2024 iamproperty
574
- */
575
- class ot extends HTMLElement {
576
- constructor() {
577
- super(), this.attachShadow({ mode: "open" });
578
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
579
- i.innerHTML = `
580
- <style>
581
- @import "${t}";
582
- :host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
583
-
584
-
585
- ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
586
- </style>
587
- <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
588
- <div class="pagination d-none">
589
-
590
- <div class="minimal" part="minimal">
591
- <div class="page-jump">
592
- <div><select class="select--minimal"></select></div>
593
- <span class="total-pages"></span>
594
- </div>
595
-
596
- <button class="prev" disabled>Prev</button>
597
- <button class="next" disabled>Next</button>
598
- </div>
599
-
600
- <div class="item-count" part="item-count"></div>
601
- <div class="per-page" part="per-page">
602
- <div>
603
- <select class="select--minimal">
604
- <option value="15">15</option>
605
- <option value="25">25</option>
606
- <option value="40">40</option>
607
- <option value="50">50</option>
608
- </select>
609
- </div>
610
- <span> / page</span>
611
- </div>
612
- <div class="mobile-controls m-auto text-center">
613
- <i class="fa-solid fa-spinner fa-spin"></i>
614
- <button class="load-more btn btn-primary m-auto">Load more</a>
615
- </div>
616
- </div>
617
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
618
- }
619
- connectedCallback() {
620
- const a = new URLSearchParams(window.location.search);
621
- this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
622
- const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".per-page select"), s = this.shadowRoot.querySelector(".load-more");
623
- this.setup(), t.addEventListener("change", (l) => {
624
- this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", l.target.value);
625
- }), r.addEventListener("click", (l) => {
626
- t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
627
- }), i.addEventListener("click", (l) => {
628
- t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
629
- }), o.addEventListener("change", (l) => {
630
- this.setAttribute("data-increment", l.target.value);
631
- }), s.addEventListener("click", (l) => {
632
- let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
633
- this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && s.remove();
634
- });
635
- }
636
- setup() {
637
- const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".item-count"), s = this.shadowRoot.querySelector(".per-page select"), l = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), n = parseInt(this.getAttribute("data-total")), u = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), p = Math.ceil(n / c);
638
- n > u && a.classList.remove("d-none");
639
- let g = "";
640
- for (let E = 1; E <= p; E++)
641
- g += `<option value="${E}" ${E == d ? "selected" : ""}>${E}</option>`;
642
- t.innerHTML = g, l.innerHTML = `of ${p}`, d == p ? r.setAttribute("disabled", "disabled") : r.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
643
- let f = d == 1 ? 1 : (d - 1) * u + 1, A = d == 1 ? u : d * u;
644
- o.innerHTML = `${f} - ${A > n ? n : A} of ${n} items`;
645
- const k = [15, 25, 40, 50];
646
- c && s.value != c && !k.includes(c) && (s.innerHTML = `<option value="${c}">${c}</option>
647
- <option value="${c * 2}">${c * 2}</option>
648
- <option value="${c * 3}">${c * 3}</option>
649
- <option value="${c * 4}">${c * 4}</option>`), s.value = c;
650
- }
651
- static get observedAttributes() {
652
- return ["data-total", "data-increment", "data-page", "data-show"];
653
- }
654
- attributeChangedCallback(a, t, i) {
655
- switch (a) {
656
- case "data-total": {
657
- t != i && (this.setAttribute("data-page", 1), this.setup());
658
- break;
659
- }
660
- case "data-show": {
661
- t != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
662
- break;
663
- }
664
- case "data-increment": {
665
- t != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
666
- break;
667
- }
668
- case "data-page": {
669
- t && t != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
670
- break;
671
- }
672
- }
673
- }
674
- }
675
- const Ct = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Nt = function(e) {
676
- return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
677
- }, Rt = {
49
+ const Da = /* @__PURE__ */ p(B, [["render", K]]), G = (t) => t.charAt(0).toUpperCase() + t.slice(1), Q = (t) => t.replace(/_/g, " "), Y = (t) => t.replace(/ /g, "_"), J = function(t) {
50
+ return t = t.toLowerCase(), t = Y(t), t = t.replace(/\W/g, ""), t;
51
+ }, X = {
678
52
  name: "Table",
679
53
  props: {
680
54
  items: {
@@ -688,42 +62,50 @@ const Ct = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(
688
62
  },
689
63
  computed: {
690
64
  cellHeading() {
691
- return (e) => `${Ct(jt(e))}`;
65
+ return (t) => `${G(Q(t))}`;
692
66
  }
693
67
  },
694
68
  created() {
695
69
  this.$nextTick(function() {
696
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
70
+ import("./table.component.min-b8ec6422.mjs").then((t) => {
71
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", t.default);
72
+ }).catch((t) => {
73
+ console.log(t.message);
74
+ }), Promise.resolve().then(() => Ha).then((t) => {
75
+ window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", t.default);
76
+ }).catch((t) => {
77
+ console.log(t.message);
78
+ });
697
79
  });
698
80
  },
699
81
  updated() {
700
82
  }
701
- }, Pt = { key: 0 }, It = { key: 0 }, zt = ["data-row-id"], Ot = ["innerHTML"];
702
- function Ft(e, a, t, i, r, o) {
703
- return m(), h("iam-table", null, [
704
- t.fields ? (m(), h("table", Pt, [
705
- b("thead", null, [
706
- b("tr", null, [
707
- (m(!0), h(D, null, N(t.fields, (s) => (m(), h("th", {
708
- key: s.key
709
- }, $(o.cellHeading(s.key)), 1))), 128))
83
+ }, Z = { key: 0 }, ee = { key: 0 }, te = ["data-row-id"], ae = ["innerHTML"];
84
+ function se(t, a, e, s, o, n) {
85
+ return r(), l("iam-table", null, [
86
+ e.fields ? (r(), l("table", Z, [
87
+ c("thead", null, [
88
+ c("tr", null, [
89
+ (r(!0), l(x, null, L(e.fields, (i) => (r(), l("th", {
90
+ key: i.key
91
+ }, w(n.cellHeading(i.key)), 1))), 128))
710
92
  ])
711
93
  ]),
712
- t.items ? (m(), h("tbody", It, [
713
- (m(!0), h(D, null, N(t.items, (s, l) => (m(), h("tr", {
714
- key: l,
715
- "data-row-id": s.rowid
94
+ e.items ? (r(), l("tbody", ee, [
95
+ (r(!0), l(x, null, L(e.items, (i, d) => (r(), l("tr", {
96
+ key: d,
97
+ "data-row-id": i.rowid
716
98
  }, [
717
- (m(!0), h(D, null, N(Object.fromEntries(Object.entries(s).filter(([d]) => d !== "rowid")), (d, n) => (m(), h("td", {
718
- key: n,
719
- innerHTML: d
720
- }, null, 8, Ot))), 128))
721
- ], 8, zt))), 128))
722
- ])) : _("", !0)
723
- ])) : w(e.$slots, "default", { key: 1 })
99
+ (r(!0), l(x, null, L(Object.fromEntries(Object.entries(i).filter(([u]) => u !== "rowid")), (u, h) => (r(), l("td", {
100
+ key: h,
101
+ innerHTML: u
102
+ }, null, 8, ae))), 128))
103
+ ], 8, te))), 128))
104
+ ])) : b("", !0)
105
+ ])) : f(t.$slots, "default", { key: 1 })
724
106
  ]);
725
107
  }
726
- const rt = /* @__PURE__ */ y(Rt, [["render", Ft]]), Bt = {
108
+ const N = /* @__PURE__ */ p(X, [["render", se]]), ie = {
727
109
  name: "Input",
728
110
  props: {
729
111
  value: {
@@ -889,213 +271,213 @@ const rt = /* @__PURE__ */ y(Rt, [["render", Ft]]), Bt = {
889
271
  get() {
890
272
  return this.value == null && this.options != null && this.type == "select" ? this.$attrs.multiple ? [] : this.options[0].value : this.value;
891
273
  },
892
- set(e) {
893
- this.$emit("input", e);
274
+ set(t) {
275
+ this.$emit("input", t);
894
276
  }
895
277
  }
896
278
  },
897
279
  mounted() {
898
280
  this.$nextTick(function() {
899
- let e = this.$refs.wrapper;
900
- if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
281
+ let t = this.$refs.wrapper;
282
+ if (t.parentNode && t.parentNode.classList.contains("form-check") || t.classList.length == 0) {
901
283
  const a = document.createDocumentFragment();
902
- Array.from(e.childNodes).forEach((t) => a.appendChild(t)), e.parentNode.insertBefore(a, e), e.parentNode.removeChild(e);
284
+ Array.from(t.childNodes).forEach((e) => a.appendChild(e)), t.parentNode.insertBefore(a, t), t.parentNode.removeChild(t);
903
285
  }
904
286
  });
905
287
  },
906
288
  methods: {
907
- inputKeyup(e) {
908
- this.$emit("keyupEvent", e);
289
+ inputKeyup(t) {
290
+ this.$emit("keyupEvent", t);
909
291
  },
910
292
  clickEvent() {
911
293
  this.$emit("bus");
912
294
  }
913
295
  }
914
- }, Ut = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Wt = ["innerHTML"], Kt = ["type", "name", "id", "pattern", "list"], Gt = ["type", "name", "id", "pattern"], Qt = {
296
+ }, ne = ["for", "innerHTML", "title"], oe = ["innerHTML"], re = ["innerHTML"], le = ["type", "name", "id", "pattern", "list"], de = ["type", "name", "id", "pattern"], ce = {
915
297
  key: 5,
916
298
  class: "input-group"
917
- }, Yt = ["type", "name", "id", "pattern", "list"], Xt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Jt = {
299
+ }, ue = ["type", "name", "id", "pattern", "list"], me = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, pe = {
918
300
  key: 6,
919
301
  class: "input-group"
920
- }, Zt = ["type", "name", "id", "pattern", "list"], te = { class: "input-group-text flex-fill" }, ee = ["type", "name", "id", "pattern"], ae = ["value"], ie = ["type", "name", "id"], se = ["for", "innerHTML"], ne = ["type", "name", "id"], oe = ["for", "innerHTML"], re = ["innerHTML"], le = ["id"], de = ["value"];
921
- function ce(e, a, t, i, r, o) {
922
- return m(), h("div", {
923
- class: S(o.wrapperClass()),
302
+ }, he = ["type", "name", "id", "pattern", "list"], fe = { class: "input-group-text flex-fill" }, be = ["type", "name", "id", "pattern"], ge = ["value"], ye = ["type", "name", "id"], ve = ["for", "innerHTML"], _e = ["type", "name", "id"], we = ["for", "innerHTML"], $e = ["innerHTML"], ke = ["id"], Ae = ["value"];
303
+ function xe(t, a, e, s, o, n) {
304
+ return r(), l("div", {
305
+ class: _(n.wrapperClass()),
924
306
  ref: "wrapper"
925
307
  }, [
926
- o.needsLabel() ? (m(), h("label", {
308
+ n.needsLabel() ? (r(), l("label", {
927
309
  key: 0,
928
- class: S(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
929
- for: t.id,
930
- innerHTML: o.displayLabel(),
931
- title: t.title
932
- }, null, 10, Ut)) : _("", !0),
933
- t.prefix ? (m(), h("span", {
310
+ class: _(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
311
+ for: e.id,
312
+ innerHTML: n.displayLabel(),
313
+ title: e.title
314
+ }, null, 10, ne)) : b("", !0),
315
+ e.prefix ? (r(), l("span", {
934
316
  key: 1,
935
- class: S(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
936
- innerHTML: t.prefix,
317
+ class: _(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
318
+ innerHTML: e.prefix,
937
319
  role: "presentation"
938
- }, null, 10, Vt)) : _("", !0),
939
- t.suffix ? (m(), h("span", {
320
+ }, null, 10, oe)) : b("", !0),
321
+ e.suffix ? (r(), l("span", {
940
322
  key: 2,
941
- class: S(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
942
- innerHTML: t.suffix,
323
+ class: _(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
324
+ innerHTML: e.suffix,
943
325
  role: "presentation"
944
- }, null, 10, Wt)) : _("", !0),
945
- o.isInput() ? z((m(), h("input", j({
326
+ }, null, 10, re)) : b("", !0),
327
+ n.isInput() ? T((r(), l("input", A({
946
328
  key: 3,
947
- "onUpdate:modelValue": a[0] || (a[0] = (s) => o.inputVal = s),
948
- class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
949
- type: t.type,
950
- name: t.name ? t.name : t.id,
951
- id: t.id,
952
- pattern: o.needPattern(),
953
- list: o.hasOptions()
954
- }, e.$attrs, {
955
- onKeyup: a[1] || (a[1] = (...s) => o.inputKeyup && o.inputKeyup(...s))
956
- }), null, 16, Kt)), [
957
- [W, o.inputVal]
958
- ]) : _("", !0),
959
- t.type == "textarea" ? z((m(), h("textarea", j({
329
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => n.inputVal = i),
330
+ class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
331
+ type: e.type,
332
+ name: e.name ? e.name : e.id,
333
+ id: e.id,
334
+ pattern: n.needPattern(),
335
+ list: n.hasOptions()
336
+ }, t.$attrs, {
337
+ onKeyup: a[1] || (a[1] = (...i) => n.inputKeyup && n.inputKeyup(...i))
338
+ }), null, 16, le)), [
339
+ [H, n.inputVal]
340
+ ]) : b("", !0),
341
+ e.type == "textarea" ? T((r(), l("textarea", A({
960
342
  key: 4,
961
- "onUpdate:modelValue": a[2] || (a[2] = (s) => o.inputVal = s),
962
- class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
963
- type: t.type,
964
- name: t.name ? t.name : t.id,
965
- id: t.id,
966
- pattern: o.needPattern()
967
- }, e.$attrs), null, 16, Gt)), [
968
- [ht, o.inputVal]
969
- ]) : _("", !0),
970
- t.type == "range" ? (m(), h("div", Qt, [
971
- z(b("input", j({
972
- "onUpdate:modelValue": a[3] || (a[3] = (s) => o.inputVal = s),
973
- class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
974
- type: t.type,
975
- name: t.name ? t.name : t.id,
976
- id: t.id,
977
- pattern: o.needPattern(),
978
- list: o.hasOptions()
979
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Yt), [
980
- [W, o.inputVal]
343
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => n.inputVal = i),
344
+ class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
345
+ type: e.type,
346
+ name: e.name ? e.name : e.id,
347
+ id: e.id,
348
+ pattern: n.needPattern()
349
+ }, t.$attrs), null, 16, de)), [
350
+ [D, n.inputVal]
351
+ ]) : b("", !0),
352
+ e.type == "range" ? (r(), l("div", ce, [
353
+ T(c("input", A({
354
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => n.inputVal = i),
355
+ class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
356
+ type: e.type,
357
+ name: e.name ? e.name : e.id,
358
+ id: e.id,
359
+ pattern: n.needPattern(),
360
+ list: n.hasOptions()
361
+ }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, ue), [
362
+ [H, n.inputVal]
981
363
  ]),
982
- b("output", Xt, $(t.value), 1)
983
- ])) : _("", !0),
984
- t.type == "color" ? (m(), h("div", Jt, [
985
- z(b("input", j({
986
- "onUpdate:modelValue": a[4] || (a[4] = (s) => o.inputVal = s),
987
- class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
988
- type: t.type,
989
- name: t.name ? t.name : t.id,
990
- id: t.id,
991
- pattern: o.needPattern(),
992
- list: o.hasOptions()
993
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
994
- [W, o.inputVal]
364
+ c("output", me, w(e.value), 1)
365
+ ])) : b("", !0),
366
+ e.type == "color" ? (r(), l("div", pe, [
367
+ T(c("input", A({
368
+ "onUpdate:modelValue": a[4] || (a[4] = (i) => n.inputVal = i),
369
+ class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
370
+ type: e.type,
371
+ name: e.name ? e.name : e.id,
372
+ id: e.id,
373
+ pattern: n.needPattern(),
374
+ list: n.hasOptions()
375
+ }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, he), [
376
+ [H, n.inputVal]
995
377
  ]),
996
- b("output", te, $(t.value ? e.vale : "#000000"), 1)
997
- ])) : _("", !0),
998
- t.type == "select" ? z((m(), h("select", j({
378
+ c("output", fe, w(e.value ? t.vale : "#000000"), 1)
379
+ ])) : b("", !0),
380
+ e.type == "select" ? T((r(), l("select", A({
999
381
  key: 7,
1000
- "onUpdate:modelValue": a[5] || (a[5] = (s) => o.inputVal = s),
1001
- class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
1002
- type: t.type,
1003
- name: t.id,
1004
- id: t.id,
1005
- pattern: o.needPattern()
1006
- }, e.$attrs), [
1007
- (m(!0), h(D, null, N(t.options, (s, l) => (m(), h("option", {
1008
- key: l,
1009
- value: s.value
1010
- }, $(s.display ? s.display : s.value), 9, ae))), 128))
1011
- ], 16, ee)), [
1012
- [pt, o.inputVal]
1013
- ]) : _("", !0),
1014
- t.type == "checkbox" || t.type == "radio" ? (m(), h("input", j({
382
+ "onUpdate:modelValue": a[5] || (a[5] = (i) => n.inputVal = i),
383
+ class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
384
+ type: e.type,
385
+ name: e.id,
386
+ id: e.id,
387
+ pattern: n.needPattern()
388
+ }, t.$attrs), [
389
+ (r(!0), l(x, null, L(e.options, (i, d) => (r(), l("option", {
390
+ key: d,
391
+ value: i.value
392
+ }, w(i.display ? i.display : i.value), 9, ge))), 128))
393
+ ], 16, be)), [
394
+ [F, n.inputVal]
395
+ ]) : b("", !0),
396
+ e.type == "checkbox" || e.type == "radio" ? (r(), l("input", A({
1015
397
  key: 8,
1016
398
  class: "form-check-input",
1017
- type: t.type,
1018
- name: t.name ? t.name : t.id,
1019
- id: t.id
1020
- }, e.$attrs), null, 16, ie)) : _("", !0),
1021
- t.type == "checkbox" || t.type == "radio" ? (m(), h("label", {
399
+ type: e.type,
400
+ name: e.name ? e.name : e.id,
401
+ id: e.id
402
+ }, t.$attrs), null, 16, ye)) : b("", !0),
403
+ e.type == "checkbox" || e.type == "radio" ? (r(), l("label", {
1022
404
  key: 9,
1023
- class: S(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
1024
- for: t.id,
1025
- innerHTML: t.label
1026
- }, null, 10, se)) : _("", !0),
1027
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("input", j({
405
+ class: _(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
406
+ for: e.id,
407
+ innerHTML: e.label
408
+ }, null, 10, ve)) : b("", !0),
409
+ e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("input", A({
1028
410
  key: 10,
1029
- class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
1030
- type: t.type.replace("-btn", ""),
411
+ class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
412
+ type: e.type.replace("-btn", ""),
1031
413
  autocomplete: "off",
1032
- name: t.name ? t.name : t.id,
1033
- id: t.id
1034
- }, e.$attrs), null, 16, ne)) : _("", !0),
1035
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("label", {
414
+ name: e.name ? e.name : e.id,
415
+ id: e.id
416
+ }, t.$attrs), null, 16, _e)) : b("", !0),
417
+ e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("label", {
1036
418
  key: 11,
1037
- class: S(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
1038
- for: t.id,
1039
- innerHTML: t.label,
1040
- onClick: a[6] || (a[6] = (...s) => o.clickEvent && o.clickEvent(...s))
1041
- }, null, 10, oe)) : _("", !0),
1042
- w(e.$slots, "default"),
1043
- t.errormsg ? (m(), h("span", {
419
+ class: _(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
420
+ for: e.id,
421
+ innerHTML: e.label,
422
+ onClick: a[6] || (a[6] = (...i) => n.clickEvent && n.clickEvent(...i))
423
+ }, null, 10, we)) : b("", !0),
424
+ f(t.$slots, "default"),
425
+ e.errormsg ? (r(), l("span", {
1044
426
  key: 12,
1045
427
  class: "invalid-feedback mb-0",
1046
- innerHTML: t.errormsg
1047
- }, null, 8, re)) : _("", !0),
1048
- o.allowDatalist() ? (m(), h("datalist", {
428
+ innerHTML: e.errormsg
429
+ }, null, 8, $e)) : b("", !0),
430
+ n.allowDatalist() ? (r(), l("datalist", {
1049
431
  key: 13,
1050
- id: t.id + "-list"
432
+ id: e.id + "-list"
1051
433
  }, [
1052
- (m(!0), h(D, null, N(t.options, (s, l) => (m(), h("option", {
1053
- key: l,
1054
- value: s.value
1055
- }, $(s.value), 9, de))), 128))
1056
- ], 8, le)) : _("", !0)
434
+ (r(!0), l(x, null, L(e.options, (i, d) => (r(), l("option", {
435
+ key: d,
436
+ value: i.value
437
+ }, w(i.value), 9, Ae))), 128))
438
+ ], 8, ke)) : b("", !0)
1057
439
  ], 2);
1058
440
  }
1059
- const lt = /* @__PURE__ */ y(Bt, [["render", ce]]);
1060
- function ue(e, a) {
1061
- const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), r = e.querySelector("input"), o = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, s = r.cloneNode();
1062
- i.append(s), a.addEventListener("click", (l) => {
1063
- l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (r.hasAttribute("multiple") ? s : r).click());
1064
- }), a.addEventListener("click", (l) => {
1065
- if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
1066
- const d = new DataTransfer(), { files: n } = r, u = l.target.closest(".files button");
1067
- for (let p = 0; p < n.length; p++) {
1068
- const g = n[p];
1069
- g.name != u.getAttribute("data-file") && d.items.add(g);
441
+ const R = /* @__PURE__ */ p(ie, [["render", xe]]);
442
+ function Le(t, a) {
443
+ const e = a.querySelector(".files"), s = a.querySelector(".drop-area"), o = t.querySelector("input"), n = t.hasAttribute("data-maxsize") ? t.getAttribute("data-maxsize") : 0, i = o.cloneNode();
444
+ s.append(i), a.addEventListener("click", (d) => {
445
+ d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (o.hasAttribute("multiple") ? i : o).click());
446
+ }), a.addEventListener("click", (d) => {
447
+ if (d && d.target instanceof HTMLElement && d.target.closest(".files button")) {
448
+ const u = new DataTransfer(), { files: h } = o, g = d.target.closest(".files button");
449
+ for (let y = 0; y < h.length; y++) {
450
+ const v = h[y];
451
+ v.name != g.getAttribute("data-file") && u.items.add(v);
1070
452
  }
1071
- r.files = d.files;
1072
- const c = new Event("change");
1073
- r.dispatchEvent(c);
453
+ o.files = u.files;
454
+ const m = new Event("change");
455
+ o.dispatchEvent(m);
1074
456
  }
1075
- }), s.addEventListener("change", (l) => {
1076
- if (r.hasAttribute("multiple")) {
1077
- const n = [...r.files, ...s.files];
1078
- let u = [];
1079
- const c = new DataTransfer();
1080
- for (let p = 0; p < n.length; p++) {
1081
- const g = n[p], f = g.size / 1e3;
1082
- !u.includes(g.name) && (o == 0 || f < o) && c.items.add(g), u.push(g.name);
457
+ }), i.addEventListener("change", (d) => {
458
+ if (o.hasAttribute("multiple")) {
459
+ const h = [...o.files, ...i.files];
460
+ let g = [];
461
+ const m = new DataTransfer();
462
+ for (let y = 0; y < h.length; y++) {
463
+ const v = h[y], $ = v.size / 1e3;
464
+ !g.includes(v.name) && (n == 0 || $ < n) && m.items.add(v), g.push(v.name);
1083
465
  }
1084
- r.files = c.files;
466
+ o.files = m.files;
1085
467
  } else
1086
- r.files = s.files;
1087
- const d = new Event("change");
1088
- r.dispatchEvent(d);
1089
- }), s.addEventListener("dragenter", (l) => {
1090
- s.classList.add("focus");
1091
- }), s.addEventListener("dragleave", (l) => {
1092
- s.classList.remove("focus");
1093
- }), s.addEventListener("drop", (l) => {
1094
- s.classList.remove("focus");
1095
- }), r.addEventListener("change", (l) => {
1096
- t.innerHTML = "";
1097
- for (const d of r.files)
1098
- t.innerHTML += `<span class="file">${d.name} <button data-file="${d.name}">Remove</button></span>`;
468
+ o.files = i.files;
469
+ const u = new Event("change");
470
+ o.dispatchEvent(u);
471
+ }), i.addEventListener("dragenter", (d) => {
472
+ i.classList.add("focus");
473
+ }), i.addEventListener("dragleave", (d) => {
474
+ i.classList.remove("focus");
475
+ }), i.addEventListener("drop", (d) => {
476
+ i.classList.remove("focus");
477
+ }), o.addEventListener("change", (d) => {
478
+ e.innerHTML = "";
479
+ for (const u of o.files)
480
+ e.innerHTML += `<span class="file">${u.name} <button data-file="${u.name}">Remove</button></span>`;
1099
481
  });
1100
482
  }
1101
483
  window.dataLayer = window.dataLayer || [];
@@ -1103,14 +485,14 @@ window.dataLayer.push({
1103
485
  event: "customElementRegistered",
1104
486
  element: "fileupload"
1105
487
  });
1106
- class me extends HTMLElement {
488
+ class Se extends HTMLElement {
1107
489
  constructor() {
1108
490
  super(), this.attachShadow({ mode: "open" });
1109
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/fileupload.css";`, r = document.createElement("template");
1110
- r.innerHTML = `
491
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = `@import "${a}/css/components/fileupload.css";`, o = document.createElement("template");
492
+ o.innerHTML = `
1111
493
  <style>
1112
- @import "${t}";
1113
- ${i}
494
+ @import "${e}";
495
+ ${s}
1114
496
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1115
497
  </style>
1116
498
  <div class="file-upload">
@@ -1122,15 +504,15 @@ class me extends HTMLElement {
1122
504
  <slot></slot>
1123
505
  <div class="files"></div>
1124
506
  </div>
1125
- `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
507
+ `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
1126
508
  }
1127
509
  connectedCallback() {
1128
510
  this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
1129
- const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), i = this.shadowRoot.querySelector(".helper-text");
1130
- i.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, ue(this, a);
511
+ const a = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"), s = this.shadowRoot.querySelector(".helper-text");
512
+ s.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${e.hasAttribute("accept") ? `Supported file types are ${e.getAttribute("accept")}` : ""}`, Le(this, a);
1131
513
  }
1132
514
  }
1133
- const he = {
515
+ const qe = {
1134
516
  name: "FileUpload",
1135
517
  props: {
1136
518
  maxfilesize: {
@@ -1144,40 +526,40 @@ const he = {
1144
526
  },
1145
527
  mounted() {
1146
528
  this.$nextTick(function() {
1147
- window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", me);
529
+ window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", Se);
1148
530
  });
1149
531
  }
1150
532
  };
1151
- function pe(e, a, t, i, r, o) {
1152
- return m(), h("iam-fileupload", null, [
1153
- w(e.$slots, "default")
533
+ function Ee(t, a, e, s, o, n) {
534
+ return r(), l("iam-fileupload", null, [
535
+ f(t.$slots, "default")
1154
536
  ]);
1155
537
  }
1156
- const ki = /* @__PURE__ */ y(he, [["render", pe]]), R = (e, a) => {
1157
- const t = e[a];
1158
- return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, r) => {
1159
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, new Error("Unknown variable dynamic import: " + a)));
538
+ const Fa = /* @__PURE__ */ p(qe, [["render", Ee]]), S = (t, a) => {
539
+ const e = t[a];
540
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
541
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + a)));
1160
542
  });
1161
543
  };
1162
- const fe = {
544
+ const Te = {
1163
545
  name: "Accordion",
1164
546
  props: {},
1165
547
  mounted() {
1166
548
  this.$nextTick(function() {
1167
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-52883219.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
1168
- window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
1169
- }).catch((e) => {
1170
- console.log(e.message);
549
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-20571f58.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((t) => {
550
+ window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
551
+ }).catch((t) => {
552
+ console.log(t.message);
1171
553
  });
1172
554
  });
1173
555
  }
1174
- }, be = { ref: "wrapper" };
1175
- function ge(e, a, t, i, r, o) {
1176
- return m(), h("iam-accordion", be, [
1177
- w(e.$slots, "default")
556
+ }, He = { ref: "wrapper" };
557
+ function Me(t, a, e, s, o, n) {
558
+ return r(), l("iam-accordion", He, [
559
+ f(t.$slots, "default")
1178
560
  ], 512);
1179
561
  }
1180
- const qi = /* @__PURE__ */ y(fe, [["render", ge]]), ye = {
562
+ const Va = /* @__PURE__ */ p(Te, [["render", Me]]), je = {
1181
563
  name: "AccordionItem",
1182
564
  props: {
1183
565
  title: {
@@ -1204,7 +586,7 @@ const qi = /* @__PURE__ */ y(fe, [["render", ge]]), ye = {
1204
586
  },
1205
587
  computed: {
1206
588
  createID() {
1207
- return (e) => `${Nt(e)}`;
589
+ return (t) => `${J(t)}`;
1208
590
  }
1209
591
  },
1210
592
  data() {
@@ -1212,24 +594,24 @@ const qi = /* @__PURE__ */ y(fe, [["render", ge]]), ye = {
1212
594
  show: !this.lazy
1213
595
  };
1214
596
  }
1215
- }, ve = ["id"], we = ["classList"];
1216
- function _e(e, a, t, i, r, o) {
1217
- return m(), h("details", {
1218
- id: o.createID(t.title)
597
+ }, Ce = ["id"], Ne = ["classList"];
598
+ function Re(t, a, e, s, o, n) {
599
+ return r(), l("details", {
600
+ id: n.createID(e.title)
1219
601
  }, [
1220
- b("summary", {
1221
- classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
602
+ c("summary", {
603
+ classList: `${e.titlecolour ? `bg-${e.titlecolour}` : ""}`
1222
604
  }, [
1223
- ft($(t.title), 1),
1224
- t.badge ? (m(), h("span", {
605
+ V(w(e.title), 1),
606
+ e.badge ? (r(), l("span", {
1225
607
  key: 0,
1226
- class: S(`badge bg-${t.badgecolour}`)
1227
- }, $(t.badge), 3)) : _("", !0)
1228
- ], 8, we),
1229
- w(e.$slots, "default")
1230
- ], 8, ve);
608
+ class: _(`badge bg-${e.badgecolour}`)
609
+ }, w(e.badge), 3)) : b("", !0)
610
+ ], 8, Ne),
611
+ f(t.$slots, "default")
612
+ ], 8, Ce);
1231
613
  }
1232
- const Ei = /* @__PURE__ */ y(ye, [["render", _e]]), Ae = {
614
+ const Oa = /* @__PURE__ */ p(je, [["render", Re]]), Pe = {
1233
615
  name: "Header",
1234
616
  props: {
1235
617
  title: {
@@ -1246,49 +628,49 @@ const Ei = /* @__PURE__ */ y(ye, [["render", _e]]), Ae = {
1246
628
  required: !1
1247
629
  }
1248
630
  }
1249
- }, xe = { class: "container" }, Le = { class: "row" }, Se = { class: "col-sm-6" }, $e = { class: "pt-5 pb-3 px-4" }, ke = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
1250
- function Ee(e, a, t, i, r, o) {
1251
- return m(), h("div", xe, [
1252
- b("div", {
1253
- class: S("bg-" + t.background + " mb-4")
631
+ }, ze = { class: "container" }, Ie = { class: "row" }, De = { class: "col-sm-6" }, Fe = { class: "pt-5 pb-3 px-4" }, Ve = { class: "col-sm-6 col-md-5 ms-auto" }, Oe = ["src"];
632
+ function Be(t, a, e, s, o, n) {
633
+ return r(), l("div", ze, [
634
+ c("div", {
635
+ class: _("bg-" + e.background + " mb-4")
1254
636
  }, [
1255
- b("div", Le, [
1256
- b("div", Se, [
1257
- b("div", $e, [
1258
- b("h2", null, $(t.title), 1),
1259
- w(e.$slots, "default")
637
+ c("div", Ie, [
638
+ c("div", De, [
639
+ c("div", Fe, [
640
+ c("h2", null, w(e.title), 1),
641
+ f(t.$slots, "default")
1260
642
  ])
1261
643
  ]),
1262
- b("div", ke, [
1263
- t.image ? (m(), h("img", {
644
+ c("div", Ve, [
645
+ e.image ? (r(), l("img", {
1264
646
  key: 0,
1265
- src: t.image,
647
+ src: e.image,
1266
648
  alt: "",
1267
649
  class: "h-100 w-100 object-cover"
1268
- }, null, 8, qe)) : _("", !0)
650
+ }, null, 8, Oe)) : b("", !0)
1269
651
  ])
1270
652
  ])
1271
653
  ], 2)
1272
654
  ]);
1273
655
  }
1274
- const Ti = /* @__PURE__ */ y(Ae, [["render", Ee]]), Te = {
656
+ const Ba = /* @__PURE__ */ p(Pe, [["render", Be]]), Ue = {
1275
657
  name: "Card",
1276
658
  mounted() {
1277
659
  this.$nextTick(function() {
1278
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-8399b3cb.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-49b8759d.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
1279
- window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1280
- }).catch((e) => {
1281
- console.log(e.message);
660
+ import("./card.component.min-53116ccf.mjs").then((t) => {
661
+ window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
662
+ }).catch((t) => {
663
+ console.log(t.message);
1282
664
  });
1283
665
  });
1284
666
  }
1285
667
  };
1286
- function He(e, a, t, i, r, o) {
1287
- return m(), h("iam-card", null, [
1288
- w(e.$slots, "default")
668
+ function We(t, a, e, s, o, n) {
669
+ return r(), l("iam-card", null, [
670
+ f(t.$slots, "default")
1289
671
  ]);
1290
672
  }
1291
- const Hi = /* @__PURE__ */ y(Te, [["render", He]]), Me = {
673
+ const Ua = /* @__PURE__ */ p(Ue, [["render", We]]), Ke = {
1292
674
  name: "Header",
1293
675
  props: {
1294
676
  title: {
@@ -1302,20 +684,20 @@ const Hi = /* @__PURE__ */ y(Te, [["render", He]]), Me = {
1302
684
  },
1303
685
  mounted() {
1304
686
  this.$nextTick(function() {
1305
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((e) => {
1306
- window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", e.default);
1307
- }).catch((e) => {
1308
- console.log(e.message);
687
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((t) => {
688
+ window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
689
+ }).catch((t) => {
690
+ console.log(t.message);
1309
691
  });
1310
692
  });
1311
693
  }
1312
694
  };
1313
- function Ce(e, a, t, i, r, o) {
1314
- return m(), h("iam-carousel", null, [
1315
- w(e.$slots, "default")
695
+ function Ge(t, a, e, s, o, n) {
696
+ return r(), l("iam-carousel", null, [
697
+ f(t.$slots, "default")
1316
698
  ]);
1317
699
  }
1318
- const Mi = /* @__PURE__ */ y(Me, [["render", Ce]]), je = {
700
+ const Wa = /* @__PURE__ */ p(Ke, [["render", Ge]]), Qe = {
1319
701
  name: "Header",
1320
702
  props: {
1321
703
  title: {
@@ -1329,54 +711,54 @@ const Mi = /* @__PURE__ */ y(Me, [["render", Ce]]), je = {
1329
711
  },
1330
712
  mounted() {
1331
713
  this.$nextTick(function() {
1332
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-400fd9ed.mjs") }), "../../../assets/js/components/header/header.component.js").then((e) => {
1333
- window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
1334
- }).catch((e) => {
1335
- console.log(e.message);
714
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-926fdb3e.mjs") }), "../../../assets/js/components/header/header.component.js").then((t) => {
715
+ window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
716
+ }).catch((t) => {
717
+ console.log(t.message);
1336
718
  });
1337
719
  });
1338
720
  }
1339
- }, De = ["image"], Ne = ["innerHTML"];
1340
- function Re(e, a, t, i, r, o) {
1341
- return m(), h("iam-header", { image: t.image }, [
1342
- w(e.$slots, "breadcrumb"),
1343
- t.title ? (m(), h("h1", {
721
+ }, Ye = ["image"], Je = ["innerHTML"];
722
+ function Xe(t, a, e, s, o, n) {
723
+ return r(), l("iam-header", { image: e.image }, [
724
+ f(t.$slots, "breadcrumb"),
725
+ e.title ? (r(), l("h1", {
1344
726
  key: 0,
1345
- innerHTML: t.title
1346
- }, null, 8, Ne)) : _("", !0),
1347
- w(e.$slots, "default")
1348
- ], 8, De);
727
+ innerHTML: e.title
728
+ }, null, 8, Je)) : b("", !0),
729
+ f(t.$slots, "default")
730
+ ], 8, Ye);
1349
731
  }
1350
- const Ci = /* @__PURE__ */ y(je, [["render", Re]]);
1351
- function Pe(e) {
732
+ const Ka = /* @__PURE__ */ p(Qe, [["render", Xe]]);
733
+ function Ze(t) {
1352
734
  var a;
1353
- const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
1354
- if (i == 1)
735
+ const e = t.querySelector(".testimonial__images"), s = e.querySelectorAll("img").length;
736
+ if (s == 1)
1355
737
  return !1;
1356
- e.classList.add("testimonial--multi");
1357
- const r = function(o) {
1358
- const s = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1359
- s.setAttribute("data-go", o + 1), l.setAttribute("data-go", o - 1), s.removeAttribute("disabled"), l.removeAttribute("disabled"), o == 1 ? l.setAttribute("disabled", !0) : o == i && s.setAttribute("disabled", !0);
738
+ t.classList.add("testimonial--multi");
739
+ const o = function(n) {
740
+ const i = t.querySelector(".btn-next"), d = t.querySelector(".btn-prev");
741
+ i.setAttribute("data-go", n + 1), d.setAttribute("data-go", n - 1), i.removeAttribute("disabled"), d.removeAttribute("disabled"), n == 1 ? d.setAttribute("disabled", !0) : n == s && i.setAttribute("disabled", !0);
1360
742
  };
1361
- t.addEventListener("scroll", function(o) {
743
+ e.addEventListener("scroll", function(n) {
1362
744
  clearTimeout(a), a = setTimeout(function() {
1363
- let s = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, n = t.scrollTop, u = Math.round(d / s * i) + 1;
1364
- d == 0 && n != 0 && (u = Math.round(n / l * i) + 1), e.setAttribute("data-show", u), r(u);
745
+ let i = e.scrollWidth, d = e.scrollHeight, u = e.scrollLeft, h = e.scrollTop, g = Math.round(u / i * s) + 1;
746
+ u == 0 && h != 0 && (g = Math.round(h / d * s) + 1), t.setAttribute("data-show", g), o(g);
1365
747
  }, 300);
1366
- }, !1), e.addEventListener("click", function(o) {
1367
- for (var s = o.target; s && s != this; s = s.parentNode)
1368
- if (s.matches("[data-go]")) {
1369
- let l = parseInt(s.getAttribute("data-go")), d = 0, n = 0, u = t.scrollWidth, c = t.scrollHeight;
1370
- u > c ? n = Math.floor(u * ((l - 1) / i)) : d = Math.floor(c * ((l - 1) / i)), t.scroll({
1371
- top: d,
1372
- left: n,
748
+ }, !1), t.addEventListener("click", function(n) {
749
+ for (var i = n.target; i && i != this; i = i.parentNode)
750
+ if (i.matches("[data-go]")) {
751
+ let d = parseInt(i.getAttribute("data-go")), u = 0, h = 0, g = e.scrollWidth, m = e.scrollHeight;
752
+ g > m ? h = Math.floor(g * ((d - 1) / s)) : u = Math.floor(m * ((d - 1) / s)), e.scroll({
753
+ top: u,
754
+ left: h,
1373
755
  behavior: "smooth"
1374
756
  });
1375
757
  break;
1376
758
  }
1377
759
  }, !1);
1378
760
  }
1379
- const Ie = {
761
+ const et = {
1380
762
  name: "Testimonial",
1381
763
  props: {
1382
764
  items: {
@@ -1390,66 +772,66 @@ const Ie = {
1390
772
  }
1391
773
  },
1392
774
  mounted() {
1393
- Pe(this.$refs.wrapper);
775
+ Ze(this.$refs.wrapper);
1394
776
  }
1395
- }, ze = {
777
+ }, tt = {
1396
778
  class: "container testimonial mb-5",
1397
779
  "data-show": "1",
1398
780
  ref: "wrapper"
1399
- }, Oe = { class: "row" }, Fe = { class: "col-md-5 position-relative" }, Be = { class: "testimonial__images" }, Ue = ["src"], Ve = /* @__PURE__ */ b("div", { class: "testimonial__controls" }, [
1400
- /* @__PURE__ */ b("button", {
781
+ }, at = { class: "row" }, st = { class: "col-md-5 position-relative" }, it = { class: "testimonial__images" }, nt = ["src"], ot = /* @__PURE__ */ c("div", { class: "testimonial__controls" }, [
782
+ /* @__PURE__ */ c("button", {
1401
783
  "data-go": "0",
1402
784
  disabled: "",
1403
785
  class: "btn-prev"
1404
786
  }, "Previous"),
1405
- /* @__PURE__ */ b("button", {
787
+ /* @__PURE__ */ c("button", {
1406
788
  "data-go": "2",
1407
789
  class: "btn-next"
1408
790
  }, "Next")
1409
- ], -1), We = { class: "col-md-7" }, Ke = /* @__PURE__ */ b("h2", null, "What our customers think…", -1), Ge = { class: "testimonial__content" }, Qe = ["innerHTML"], Ye = ["innerHTML"], Xe = { class: "testimonial__after" }, Je = /* @__PURE__ */ b("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1410
- function Ze(e, a, t, i, r, o) {
1411
- return m(), h("div", ze, [
1412
- b("div", {
1413
- class: S("bg-" + t.background)
791
+ ], -1), rt = { class: "col-md-7" }, lt = /* @__PURE__ */ c("h2", null, "What our customers think…", -1), dt = { class: "testimonial__content" }, ct = ["innerHTML"], ut = ["innerHTML"], mt = { class: "testimonial__after" }, pt = /* @__PURE__ */ c("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
792
+ function ht(t, a, e, s, o, n) {
793
+ return r(), l("div", tt, [
794
+ c("div", {
795
+ class: _("bg-" + e.background)
1414
796
  }, [
1415
- b("div", Oe, [
1416
- b("div", Fe, [
1417
- b("div", Be, [
1418
- (m(!0), h(D, null, N(t.items, (s, l) => (m(), h("img", {
1419
- key: l,
1420
- src: s.image ? s.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
797
+ c("div", at, [
798
+ c("div", st, [
799
+ c("div", it, [
800
+ (r(!0), l(x, null, L(e.items, (i, d) => (r(), l("img", {
801
+ key: d,
802
+ src: i.image ? i.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1421
803
  alt: "",
1422
- class: S("h-100 w-100 object-cover" + (s.image ? "" : " opacity-0"))
1423
- }, null, 10, Ue))), 128))
804
+ class: _("h-100 w-100 object-cover" + (i.image ? "" : " opacity-0"))
805
+ }, null, 10, nt))), 128))
1424
806
  ]),
1425
- Ve
807
+ ot
1426
808
  ]),
1427
- b("div", We, [
1428
- Ke,
1429
- b("div", Ge, [
1430
- (m(!0), h(D, null, N(t.items, (s, l) => (m(), h("blockquote", {
1431
- key: l,
1432
- class: S(s.class)
809
+ c("div", rt, [
810
+ lt,
811
+ c("div", dt, [
812
+ (r(!0), l(x, null, L(e.items, (i, d) => (r(), l("blockquote", {
813
+ key: d,
814
+ class: _(i.class)
1433
815
  }, [
1434
- b("div", {
1435
- innerHTML: s.quote
1436
- }, null, 8, Qe),
1437
- b("cite", {
1438
- innerHTML: s.cite
1439
- }, null, 8, Ye)
816
+ c("div", {
817
+ innerHTML: i.quote
818
+ }, null, 8, ct),
819
+ c("cite", {
820
+ innerHTML: i.cite
821
+ }, null, 8, ut)
1440
822
  ], 2))), 128))
1441
823
  ]),
1442
- b("div", Xe, [
1443
- w(e.$slots, "default")
824
+ c("div", mt, [
825
+ f(t.$slots, "default")
1444
826
  ])
1445
827
  ])
1446
828
  ]),
1447
- Je
829
+ pt
1448
830
  ], 2)
1449
831
  ], 512);
1450
832
  }
1451
- const ji = /* @__PURE__ */ y(Ie, [["render", Ze]]);
1452
- const ta = {
833
+ const Ga = /* @__PURE__ */ p(et, [["render", ht]]);
834
+ const ft = {
1453
835
  name: "Timeline",
1454
836
  props: {
1455
837
  image: {
@@ -1457,23 +839,23 @@ const ta = {
1457
839
  required: !1
1458
840
  }
1459
841
  }
1460
- }, ea = { class: "timeline" }, aa = { class: "timeline__content" }, ia = ["src"];
1461
- function sa(e, a, t, i, r, o) {
1462
- return m(), h("div", ea, [
1463
- b("div", aa, [
1464
- w(e.$slots, "default")
842
+ }, bt = { class: "timeline" }, gt = { class: "timeline__content" }, yt = ["src"];
843
+ function vt(t, a, e, s, o, n) {
844
+ return r(), l("div", bt, [
845
+ c("div", gt, [
846
+ f(t.$slots, "default")
1465
847
  ]),
1466
- t.image ? (m(), h("img", {
848
+ e.image ? (r(), l("img", {
1467
849
  key: 0,
1468
- src: t.image,
850
+ src: e.image,
1469
851
  alt: ""
1470
- }, null, 8, ia)) : _("", !0)
852
+ }, null, 8, yt)) : b("", !0)
1471
853
  ]);
1472
854
  }
1473
- const Di = /* @__PURE__ */ y(ta, [["render", sa]]);
1474
- const na = {
855
+ const Qa = /* @__PURE__ */ p(ft, [["render", vt]]);
856
+ const _t = {
1475
857
  components: {
1476
- Input: lt
858
+ Input: R
1477
859
  },
1478
860
  name: "PropertySearchbar",
1479
861
  props: {
@@ -1598,8 +980,8 @@ const na = {
1598
980
  };
1599
981
  },
1600
982
  methods: {
1601
- locationKeyup: function(e) {
1602
- this.$emit("locationKeyup", e);
983
+ locationKeyup: function(t) {
984
+ this.$emit("locationKeyup", t);
1603
985
  }
1604
986
  },
1605
987
  computed: {
@@ -1607,8 +989,8 @@ const na = {
1607
989
  get() {
1608
990
  return this.locationSave ? this.locationSave : this.location;
1609
991
  },
1610
- set(e) {
1611
- this.locationSave = e, this.$emit("input", e);
992
+ set(t) {
993
+ this.locationSave = t, this.$emit("input", t);
1612
994
  }
1613
995
  },
1614
996
  locationsList() {
@@ -1617,130 +999,130 @@ const na = {
1617
999
  ];
1618
1000
  }
1619
1001
  }
1620
- }, oa = {
1002
+ }, wt = {
1621
1003
  class: "container",
1622
1004
  ref: "wrapper"
1623
- }, ra = { class: "property-searchbar" }, la = ["action", "method"], da = { class: "col-12 col-md-3" }, ca = { class: "col-12 col-md" }, ua = /* @__PURE__ */ b("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ma = {
1005
+ }, $t = { class: "property-searchbar" }, kt = ["action", "method"], At = { class: "col-12 col-md-3" }, xt = { class: "col-12 col-md" }, Lt = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Price range", -1), St = {
1624
1006
  class: "row",
1625
1007
  "data-input-range": ""
1626
- }, ha = { class: "col-12 col-md" }, pa = /* @__PURE__ */ b("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), fa = {
1008
+ }, qt = { class: "col-12 col-md" }, Et = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Tt = {
1627
1009
  class: "row",
1628
1010
  "data-input-range": ""
1629
- }, ba = { class: "col-12 col-md-2" }, ga = /* @__PURE__ */ b("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1630
- /* @__PURE__ */ b("button", {
1011
+ }, Ht = { class: "col-12 col-md-2" }, Mt = /* @__PURE__ */ c("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1012
+ /* @__PURE__ */ c("button", {
1631
1013
  class: "btn w-100 me-0",
1632
1014
  type: "submit",
1633
1015
  value: "submit"
1634
1016
  }, "Search")
1635
1017
  ], -1);
1636
- function ya(e, a, t, i, r, o) {
1637
- const s = K("Input");
1638
- return m(), h("div", oa, [
1639
- w(e.$slots, "default"),
1640
- b("div", ra, [
1641
- b("form", {
1018
+ function jt(t, a, e, s, o, n) {
1019
+ const i = M("Input");
1020
+ return r(), l("div", wt, [
1021
+ f(t.$slots, "default"),
1022
+ c("div", $t, [
1023
+ c("form", {
1642
1024
  class: "row",
1643
- action: t.formaction,
1644
- method: t.formmethod
1025
+ action: e.formaction,
1026
+ method: e.formmethod
1645
1027
  }, [
1646
- b("fieldset", da, [
1647
- M(s, {
1028
+ c("fieldset", At, [
1029
+ k(i, {
1648
1030
  inputClass: "input--locations",
1649
- modelValue: o.locationSet,
1650
- "onUpdate:modelValue": a[0] || (a[0] = (l) => o.locationSet = l),
1031
+ modelValue: n.locationSet,
1032
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => n.locationSet = d),
1651
1033
  label: "Location",
1652
1034
  id: "location",
1653
- options: o.locationsList(),
1035
+ options: n.locationsList(),
1654
1036
  required: "",
1655
1037
  placeholder: "i.e. Newcastle or NE1",
1656
- onKeyupEvent: a[1] || (a[1] = (l) => o.locationKeyup(...arguments)),
1038
+ onKeyupEvent: a[1] || (a[1] = (d) => n.locationKeyup(...arguments)),
1657
1039
  ref: "search"
1658
1040
  }, null, 8, ["modelValue", "options"]),
1659
- M(s, {
1041
+ k(i, {
1660
1042
  class: "select--miles",
1661
1043
  label: "Miles",
1662
1044
  id: "miles",
1663
1045
  type: "select",
1664
- options: t.distances
1046
+ options: e.distances
1665
1047
  }, null, 8, ["options"])
1666
1048
  ]),
1667
- b("fieldset", ca, [
1668
- ua,
1669
- b("div", ma, [
1670
- M(s, {
1049
+ c("fieldset", xt, [
1050
+ Lt,
1051
+ c("div", St, [
1052
+ k(i, {
1671
1053
  class: "col-6",
1672
1054
  label: "Minimum price",
1673
1055
  id: "price-min",
1674
1056
  "data-min": "true",
1675
1057
  type: "select",
1676
- options: t.pricemin
1058
+ options: e.pricemin
1677
1059
  }, null, 8, ["options"]),
1678
- M(s, {
1060
+ k(i, {
1679
1061
  class: "col-6",
1680
1062
  label: "Maximum price",
1681
1063
  id: "price-max",
1682
1064
  "data-max": "true",
1683
1065
  type: "select",
1684
- options: t.pricemax
1066
+ options: e.pricemax
1685
1067
  }, null, 8, ["options"])
1686
1068
  ])
1687
1069
  ]),
1688
- b("fieldset", ha, [
1689
- pa,
1690
- b("div", fa, [
1691
- M(s, {
1070
+ c("fieldset", qt, [
1071
+ Et,
1072
+ c("div", Tt, [
1073
+ k(i, {
1692
1074
  class: "col-6",
1693
1075
  label: "Minimum beds",
1694
1076
  id: "beds-min",
1695
1077
  "data-min": "true",
1696
1078
  type: "select",
1697
- options: t.bedsmin
1079
+ options: e.bedsmin
1698
1080
  }, null, 8, ["options"]),
1699
- M(s, {
1081
+ k(i, {
1700
1082
  class: "col-6",
1701
1083
  label: "Maximum beds",
1702
1084
  id: "beds-max",
1703
1085
  "data-max": "true",
1704
1086
  type: "select",
1705
- options: t.bedsmax
1087
+ options: e.bedsmax
1706
1088
  }, null, 8, ["options"])
1707
1089
  ])
1708
1090
  ]),
1709
- b("fieldset", ba, [
1710
- M(s, {
1091
+ c("fieldset", Ht, [
1092
+ k(i, {
1711
1093
  label: "Property type",
1712
1094
  id: "property-type",
1713
1095
  type: "select",
1714
- options: t.propertytypes
1096
+ options: e.propertytypes
1715
1097
  }, null, 8, ["options"])
1716
1098
  ]),
1717
- ga
1718
- ], 8, la)
1099
+ Mt
1100
+ ], 8, kt)
1719
1101
  ]),
1720
- w(e.$slots, "after")
1102
+ f(t.$slots, "after")
1721
1103
  ], 512);
1722
1104
  }
1723
- const Ni = /* @__PURE__ */ y(na, [["render", ya]]), va = {
1105
+ const Ya = /* @__PURE__ */ p(_t, [["render", jt]]), Ct = {
1724
1106
  components: {},
1725
1107
  name: "Nav",
1726
1108
  mounted() {
1727
1109
  this.$nextTick(function() {
1728
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-6c859360.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
1729
- window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1730
- }).catch((e) => {
1731
- console.log(e.message);
1110
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-0ee8d20f.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((t) => {
1111
+ window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
1112
+ }).catch((t) => {
1113
+ console.log(t.message);
1732
1114
  });
1733
1115
  });
1734
1116
  },
1735
1117
  methods: {}
1736
- }, wa = { ref: "wrapper" };
1737
- function _a(e, a, t, i, r, o) {
1738
- return m(), h("iam-nav", wa, [
1739
- w(e.$slots, "default")
1118
+ }, Nt = { ref: "wrapper" };
1119
+ function Rt(t, a, e, s, o, n) {
1120
+ return r(), l("iam-nav", Nt, [
1121
+ f(t.$slots, "default")
1740
1122
  ], 512);
1741
1123
  }
1742
- const Ri = /* @__PURE__ */ y(va, [["render", _a]]);
1743
- const Aa = {
1124
+ const Ja = /* @__PURE__ */ p(Ct, [["render", Rt]]);
1125
+ const Pt = {
1744
1126
  name: "Stepper",
1745
1127
  props: {
1746
1128
  label: {
@@ -1753,26 +1135,26 @@ const Aa = {
1753
1135
  default: "Complete"
1754
1136
  }
1755
1137
  }
1756
- }, xa = { class: "container" }, La = ["aria-label"], Sa = {
1138
+ }, zt = { class: "container" }, It = ["aria-label"], Dt = {
1757
1139
  key: 0,
1758
1140
  class: "h6 stepper__start"
1759
- }, $a = { class: "list-unstyled" }, ka = { class: "h6 stepper__end" };
1760
- function qa(e, a, t, i, r, o) {
1761
- return m(), h("div", xa, [
1762
- b("nav", {
1141
+ }, Ft = { class: "list-unstyled" }, Vt = { class: "h6 stepper__end" };
1142
+ function Ot(t, a, e, s, o, n) {
1143
+ return r(), l("div", zt, [
1144
+ c("nav", {
1763
1145
  class: "stepper",
1764
- "aria-label": t.label ? t.label : "Progress"
1146
+ "aria-label": e.label ? e.label : "Progress"
1765
1147
  }, [
1766
- t.label ? (m(), h("span", Sa, $(t.label), 1)) : _("", !0),
1767
- b("ol", $a, [
1768
- w(e.$slots, "default")
1148
+ e.label ? (r(), l("span", Dt, w(e.label), 1)) : b("", !0),
1149
+ c("ol", Ft, [
1150
+ f(t.$slots, "default")
1769
1151
  ]),
1770
- b("span", ka, $(t.endlabel), 1)
1771
- ], 8, La)
1152
+ c("span", Vt, w(e.endlabel), 1)
1153
+ ], 8, It)
1772
1154
  ]);
1773
1155
  }
1774
- const Pi = /* @__PURE__ */ y(Aa, [["render", qa]]);
1775
- const Ea = {
1156
+ const Xa = /* @__PURE__ */ p(Pt, [["render", Ot]]);
1157
+ const Bt = {
1776
1158
  name: "Snapshot",
1777
1159
  props: {
1778
1160
  items: {
@@ -1780,33 +1162,33 @@ const Ea = {
1780
1162
  required: !0
1781
1163
  }
1782
1164
  }
1783
- }, Ta = {
1165
+ }, Ut = {
1784
1166
  class: "container snapshot",
1785
1167
  ref: "wrapper"
1786
- }, Ha = { class: "row" }, Ma = ["href"], Ca = { class: "lead snapshot__title" }, ja = { class: "stat" };
1787
- function Da(e, a, t, i, r, o) {
1788
- return m(), h("div", Ta, [
1789
- w(e.$slots, "default"),
1790
- b("div", Ha, [
1791
- (m(!0), h(D, null, N(t.items, (s, l) => (m(), h("div", {
1168
+ }, Wt = { class: "row" }, Kt = ["href"], Gt = { class: "lead snapshot__title" }, Qt = { class: "stat" };
1169
+ function Yt(t, a, e, s, o, n) {
1170
+ return r(), l("div", Ut, [
1171
+ f(t.$slots, "default"),
1172
+ c("div", Wt, [
1173
+ (r(!0), l(x, null, L(e.items, (i, d) => (r(), l("div", {
1792
1174
  class: "col",
1793
- key: l
1175
+ key: d
1794
1176
  }, [
1795
- s.link ? (m(), h("a", {
1177
+ i.link ? (r(), l("a", {
1796
1178
  key: 0,
1797
- href: s.link
1798
- }, "View " + $(s.title), 9, Ma)) : _("", !0),
1799
- b("div", {
1800
- class: S(`snapshot__item ${s.bg ? "bg-" + s.bg : ""}`)
1179
+ href: i.link
1180
+ }, "View " + w(i.title), 9, Kt)) : b("", !0),
1181
+ c("div", {
1182
+ class: _(`snapshot__item ${i.bg ? "bg-" + i.bg : ""}`)
1801
1183
  }, [
1802
- b("span", Ca, $(s.title), 1),
1803
- b("span", ja, $(s.number), 1)
1184
+ c("span", Gt, w(i.title), 1),
1185
+ c("span", Qt, w(i.number), 1)
1804
1186
  ], 2)
1805
1187
  ]))), 128))
1806
1188
  ])
1807
1189
  ], 512);
1808
1190
  }
1809
- const Ii = /* @__PURE__ */ y(Ea, [["render", Da]]), Na = {
1191
+ const Za = /* @__PURE__ */ p(Bt, [["render", Yt]]), Jt = {
1810
1192
  name: "Stepper",
1811
1193
  props: {
1812
1194
  url: {
@@ -1822,43 +1204,43 @@ const Ii = /* @__PURE__ */ y(Ea, [["render", Da]]), Na = {
1822
1204
  required: !1
1823
1205
  }
1824
1206
  }
1825
- }, Ra = ["href", "aria-current"], Pa = {
1207
+ }, Xt = ["href", "aria-current"], Zt = {
1826
1208
  key: 0,
1827
1209
  class: "visually-hidden"
1828
1210
  };
1829
- function Ia(e, a, t, i, r, o) {
1830
- return m(), h("li", null, [
1831
- b("a", {
1832
- href: t.url,
1833
- class: S(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
1834
- "aria-current": typeof t.current < "u" ? "step" : !1
1211
+ function ea(t, a, e, s, o, n) {
1212
+ return r(), l("li", null, [
1213
+ c("a", {
1214
+ href: e.url,
1215
+ class: _(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
1216
+ "aria-current": typeof e.current < "u" ? "step" : !1
1835
1217
  }, [
1836
- b("span", null, [
1837
- w(e.$slots, "default")
1218
+ c("span", null, [
1219
+ f(t.$slots, "default")
1838
1220
  ]),
1839
- t.status ? (m(), h("em", Pa, " - status: " + $(t.status), 1)) : _("", !0)
1840
- ], 10, Ra)
1221
+ e.status ? (r(), l("em", Zt, " - status: " + w(e.status), 1)) : b("", !0)
1222
+ ], 10, Xt)
1841
1223
  ]);
1842
1224
  }
1843
- const zi = /* @__PURE__ */ y(Na, [["render", Ia]]);
1844
- const za = {
1225
+ const es = /* @__PURE__ */ p(Jt, [["render", ea]]);
1226
+ const ta = {
1845
1227
  name: "Tabs",
1846
1228
  mounted() {
1847
1229
  this.$nextTick(function() {
1848
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-a45b2201.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
1849
- window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
1850
- }).catch((e) => {
1851
- console.log(e.message);
1230
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-d050a424.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((t) => {
1231
+ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
1232
+ }).catch((t) => {
1233
+ console.log(t.message);
1852
1234
  });
1853
1235
  });
1854
1236
  }
1855
- }, Oa = { ref: "wrapper" };
1856
- function Fa(e, a, t, i, r, o) {
1857
- return m(), h("iam-tabs", Oa, [
1858
- w(e.$slots, "default")
1237
+ }, aa = { ref: "wrapper" };
1238
+ function sa(t, a, e, s, o, n) {
1239
+ return r(), l("iam-tabs", aa, [
1240
+ f(t.$slots, "default")
1859
1241
  ], 512);
1860
1242
  }
1861
- const Oi = /* @__PURE__ */ y(za, [["render", Fa]]), Ba = {
1243
+ const ts = /* @__PURE__ */ p(ta, [["render", sa]]), ia = {
1862
1244
  name: "Tab",
1863
1245
  props: {
1864
1246
  title: {
@@ -1880,23 +1262,23 @@ const Oi = /* @__PURE__ */ y(za, [["render", Fa]]), Ba = {
1880
1262
  isDisabled: !!this.disabled
1881
1263
  };
1882
1264
  }
1883
- }, Ua = { class: "tab" }, Va = ["innerHTML"];
1884
- function Wa(e, a, t, i, r, o) {
1885
- return m(), h("details", Ua, [
1886
- b("summary", {
1887
- innerHTML: t.title,
1888
- class: S({ disabled: r.isDisabled })
1889
- }, null, 10, Va),
1890
- w(e.$slots, "default")
1265
+ }, na = { class: "tab" }, oa = ["innerHTML"];
1266
+ function ra(t, a, e, s, o, n) {
1267
+ return r(), l("details", na, [
1268
+ c("summary", {
1269
+ innerHTML: e.title,
1270
+ class: _({ disabled: o.isDisabled })
1271
+ }, null, 10, oa),
1272
+ f(t.$slots, "default")
1891
1273
  ]);
1892
1274
  }
1893
- const Fi = /* @__PURE__ */ y(Ba, [["render", Wa]]);
1894
- let dt = rt.props;
1895
- dt.fields.required = !1;
1896
- const Ka = {
1275
+ const as = /* @__PURE__ */ p(ia, [["render", ra]]);
1276
+ let P = N.props;
1277
+ P.fields.required = !1;
1278
+ const la = {
1897
1279
  components: {
1898
- Table: rt,
1899
- Input: lt
1280
+ Table: N,
1281
+ Input: R
1900
1282
  },
1901
1283
  data() {
1902
1284
  return {
@@ -1905,17 +1287,17 @@ const Ka = {
1905
1287
  };
1906
1288
  },
1907
1289
  methods: {
1908
- submitForm: function(e) {
1290
+ submitForm: function(t) {
1909
1291
  console.log(this);
1910
- const a = new FormData(e.target);
1911
- let t = /* @__PURE__ */ new Date();
1912
- const i = t.getFullYear();
1913
- let r = t.getMonth() + 1, o = t.getDate();
1914
- o < 10 && (o = "0" + o), r < 10 && (r = "0" + r), t = o + "/" + r + "/" + i, this.itemsData.unshift({
1915
- date_added: t,
1292
+ const a = new FormData(t.target);
1293
+ let e = /* @__PURE__ */ new Date();
1294
+ const s = e.getFullYear();
1295
+ let o = e.getMonth() + 1, n = e.getDate();
1296
+ n < 10 && (n = "0" + n), o < 10 && (o = "0" + o), e = n + "/" + o + "/" + s, this.itemsData.unshift({
1297
+ date_added: e,
1916
1298
  user: a.get("user"),
1917
1299
  note: a.get("addNote")
1918
- }), this.$emit("formSubmitted", e);
1300
+ }), this.$emit("formSubmitted", t);
1919
1301
  }
1920
1302
  },
1921
1303
  name: "NoteFeed",
@@ -1924,7 +1306,7 @@ const Ka = {
1924
1306
  type: String,
1925
1307
  required: !0
1926
1308
  },
1927
- ...dt,
1309
+ ...P,
1928
1310
  title: {
1929
1311
  type: String,
1930
1312
  required: !1
@@ -1939,168 +1321,168 @@ const Ka = {
1939
1321
  required: !1
1940
1322
  }
1941
1323
  }
1942
- }, Ga = { class: "container note-feed mb-2" }, Qa = ["innerHTML"], Ya = ["action", "method"], Xa = ["value"], Ja = /* @__PURE__ */ b("button", { class: "btn btn-tertiary" }, "Submit note", -1);
1943
- function Za(e, a, t, i, r, o) {
1944
- const s = K("Table"), l = K("Input");
1945
- return m(), h("div", Ga, [
1946
- t.title ? (m(), h("span", {
1324
+ }, da = { class: "container note-feed mb-2" }, ca = ["innerHTML"], ua = ["action", "method"], ma = ["value"], pa = /* @__PURE__ */ c("button", { class: "btn btn-tertiary" }, "Submit note", -1);
1325
+ function ha(t, a, e, s, o, n) {
1326
+ const i = M("Table"), d = M("Input");
1327
+ return r(), l("div", da, [
1328
+ e.title ? (r(), l("span", {
1947
1329
  key: 0,
1948
1330
  class: "h3",
1949
- innerHTML: t.title
1950
- }, null, 8, Qa)) : _("", !0),
1951
- M(s, j({
1331
+ innerHTML: e.title
1332
+ }, null, 8, ca)) : b("", !0),
1333
+ k(i, A({
1952
1334
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
1953
- items: r.itemsData
1954
- }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
1955
- b("form", {
1956
- action: t.action,
1957
- method: t.method,
1958
- onSubmit: a[0] || (a[0] = bt((d) => o.submitForm(...arguments), ["prevent"]))
1335
+ items: o.itemsData
1336
+ }, t.$props, { class: "mb-0" }), null, 16, ["items"]),
1337
+ c("form", {
1338
+ action: e.action,
1339
+ method: e.method,
1340
+ onSubmit: a[0] || (a[0] = O((u) => n.submitForm(...arguments), ["prevent"]))
1959
1341
  }, [
1960
- b("input", {
1342
+ c("input", {
1961
1343
  type: "hidden",
1962
- value: t.user,
1344
+ value: e.user,
1963
1345
  name: "user"
1964
- }, null, 8, Xa),
1965
- M(l, {
1346
+ }, null, 8, ma),
1347
+ k(d, {
1966
1348
  id: "addNote",
1967
1349
  type: "textarea",
1968
1350
  label: "Add note",
1969
1351
  required: "",
1970
1352
  class: "mw-100"
1971
1353
  }),
1972
- Ja
1973
- ], 40, Ya)
1354
+ pa
1355
+ ], 40, ua)
1974
1356
  ]);
1975
1357
  }
1976
- const Bi = /* @__PURE__ */ y(Ka, [["render", Za]]);
1358
+ const ss = /* @__PURE__ */ p(la, [["render", ha]]);
1977
1359
  /*!
1978
- * iamKey v5.3.0-beta2
1360
+ * iamKey v5.3.0-beta3
1979
1361
  * Copyright 2022-2024 iamproperty
1980
1362
  */
1981
- function ti(e, a) {
1982
- function t(i, r) {
1983
- let o = !1, s = r.getAttribute("name");
1984
- s.includes("[]") && (s = s.replace("[]", `[${r.value}]`));
1985
- let l = i.querySelector(`[data-name="${s}"]`);
1986
- l && r.getAttribute("type") == "checkbox" && (o = !r.checked);
1987
- let d = r.getAttribute("data-filter-text");
1988
- if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", s), l.innerHTML = d.replace("$value", r.value), (!r.value || o) && l.remove(), r.parentNode.closest("[data-filter-text]")) {
1989
- let n = r.parentNode.closest("[data-filter-text]"), u = !0;
1990
- if (s = "", n.querySelectorAll("input").forEach((c, p) => {
1991
- let g = c.getAttribute("name");
1992
- if (s += `${p != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
1993
- let f = document.createElement("button");
1994
- f.setAttribute("type", "button"), f.classList.add("filter"), f.setAttribute("data-name", g), f.innerHTML = d.replace("$value", c.value), i.appendChild(f);
1363
+ function fa(t, a) {
1364
+ function e(s, o) {
1365
+ let n = !1, i = o.getAttribute("name");
1366
+ i.includes("[]") && (i = i.replace("[]", `[${o.value}]`));
1367
+ let d = s.querySelector(`[data-name="${i}"]`);
1368
+ d && o.getAttribute("type") == "checkbox" && (n = !o.checked);
1369
+ let u = o.getAttribute("data-filter-text");
1370
+ if (d || (d = document.createElement("button"), s.appendChild(d)), d.setAttribute("type", "button"), d.classList.add("filter"), d.setAttribute("data-name", i), d.innerHTML = u.replace("$value", o.value), (!o.value || n) && d.remove(), o.parentNode.closest("[data-filter-text]")) {
1371
+ let h = o.parentNode.closest("[data-filter-text]"), g = !0;
1372
+ if (i = "", h.querySelectorAll("input").forEach((m, y) => {
1373
+ let v = m.getAttribute("name");
1374
+ if (i += `${y != 0 ? "," : ""}${v}`, s.querySelector(`[data-name="${v}"]`) && s.querySelector(`[data-name="${v}"]`).remove(), m.value) {
1375
+ let $ = document.createElement("button");
1376
+ $.setAttribute("type", "button"), $.classList.add("filter"), $.setAttribute("data-name", v), $.innerHTML = u.replace("$value", m.value), s.appendChild($);
1995
1377
  } else
1996
- u = !1;
1997
- }), i.querySelector(`[data-name="${s}"]`) && i.querySelector(`[data-name="${s}"]`).remove(), u) {
1998
- let c = n.getAttribute("data-filter-text");
1999
- n.querySelectorAll("input").forEach((g, f) => {
2000
- let A = g.getAttribute("name");
2001
- i.querySelector(`[data-name="${A}"]`) && i.querySelector(`[data-name="${A}"]`).remove(), c = c.replace(`$${f + 1}`, g.value);
1378
+ g = !1;
1379
+ }), s.querySelector(`[data-name="${i}"]`) && s.querySelector(`[data-name="${i}"]`).remove(), g) {
1380
+ let m = h.getAttribute("data-filter-text");
1381
+ h.querySelectorAll("input").forEach((v, $) => {
1382
+ let q = v.getAttribute("name");
1383
+ s.querySelector(`[data-name="${q}"]`) && s.querySelector(`[data-name="${q}"]`).remove(), m = m.replace(`$${$ + 1}`, v.value);
2002
1384
  });
2003
- let p = document.createElement("button");
2004
- p.setAttribute("type", "button"), p.classList.add("filter"), p.setAttribute("data-name", s), p.innerHTML = c, i.appendChild(p);
1385
+ let y = document.createElement("button");
1386
+ y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", i), y.innerHTML = m, s.appendChild(y);
2005
1387
  }
2006
1388
  }
2007
1389
  }
2008
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, r) => {
2009
- t(a, i);
2010
- }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, r) => {
2011
- i.addEventListener("change", function(o) {
2012
- t(a, i), o.stopPropagation();
1390
+ Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((s, o) => {
1391
+ e(a, s);
1392
+ }), Array.from(t.querySelectorAll("input[data-filter-text]")).forEach((s, o) => {
1393
+ s.addEventListener("change", function(n) {
1394
+ e(a, s), n.stopPropagation();
2013
1395
  });
2014
- }), e.addEventListener("change", function(i) {
2015
- if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2016
- let r = i.target.closest("input[data-filter-text]");
2017
- t(a, r);
1396
+ }), t.addEventListener("change", function(s) {
1397
+ if (s && s.target instanceof HTMLElement && s.target.closest("input[data-filter-text]")) {
1398
+ let o = s.target.closest("input[data-filter-text]");
1399
+ e(a, o);
2018
1400
  }
2019
- }), a.addEventListener("click", function(i) {
2020
- if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2021
- let s = i.target.closest(".filter"), l = s.getAttribute("data-name").split(",");
2022
- for (var r = 0; r < l.length; r++) {
2023
- let d = l[r], n = `[name="${d}"]`;
2024
- d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), n = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
2025
- let u = e.querySelectorAll(n);
2026
- for (var o = 0; o < u.length; o++) {
2027
- let c = u[o];
2028
- if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
2029
- c.value = "";
1401
+ }), a.addEventListener("click", function(s) {
1402
+ if (s && s.target instanceof HTMLElement && s.target.closest(".filter")) {
1403
+ let i = s.target.closest(".filter"), d = i.getAttribute("data-name").split(",");
1404
+ for (var o = 0; o < d.length; o++) {
1405
+ let u = d[o], h = `[name="${u}"]`;
1406
+ u.match(/\[(.*)\]/) && (u.replace(/\[(.*)\]/, "[]"), h = `[value="${u.replace(/.*\[(.*)\]/, "$1")}"]`);
1407
+ let g = t.querySelectorAll(h);
1408
+ for (var n = 0; n < g.length; n++) {
1409
+ let m = g[n];
1410
+ if (m.getAttribute("type") != "radio" && m.getAttribute("type") != "checkbox")
1411
+ m.value = "";
2030
1412
  else {
2031
- c.checked = !1;
2032
- var i = new Event("force");
2033
- e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(i);
1413
+ m.checked = !1;
1414
+ var s = new Event("force");
1415
+ t.hasAttribute("data-nosubmit") || m.closest("form").dispatchEvent(s);
2034
1416
  }
2035
1417
  }
2036
1418
  }
2037
- s.remove();
1419
+ i.remove();
2038
1420
  }
2039
1421
  }, !1);
2040
1422
  }
2041
1423
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2042
- class ei extends HTMLElement {
1424
+ class ba extends HTMLElement {
2043
1425
  constructor() {
2044
1426
  super(), this.attachShadow({ mode: "open" });
2045
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
2046
- let i = this.classList.toString();
2047
- const r = document.createElement("template");
2048
- r.innerHTML = `
1427
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
1428
+ let s = this.classList.toString();
1429
+ const o = document.createElement("template");
1430
+ o.innerHTML = `
2049
1431
  <style>
2050
- @import "${t}";
1432
+ @import "${e}";
2051
1433
  .applied-filters:not(.applied-filters--compact):not(:empty):before{content:"Applied filters";font-weight:bold;font-size:1.125rem;line-height:1.375rem;color:var(--colour-header);margin-bottom:1rem;display:block}.applied-filters:not(:empty){margin-bottom:1rem}::slotted(*:last-child){margin-bottom:0}.applied-filters .filter{border:1px solid var(--colour-border);padding:1rem 1.5rem 1rem 1.5rem;background:rgba(0,0,0,0);margin-right:.5rem !important;margin-bottom:.5rem !important;line-height:1.5rem;white-space:nowrap}.applied-filters .filter:after{content:"";display:inline-block;height:1.25rem;width:1.25rem;padding:0;margin-left:1.5rem;margin-bottom:-0.25rem;border:none;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}.applied-filters--compact .filter{background-color:var(--colour-light);border:none;padding:0.625rem;line-height:1rem;border-radius:0.3125rem}.applied-filters--compact .filter:after{margin-left:0.625rem;height:1rem;width:1rem;margin-bottom:-0.1rem}/*# sourceMappingURL=assets/css/components/applied-filters.css.map */
2052
1434
 
2053
1435
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2054
1436
  </style>
2055
- <div class="applied-filters ${i}"></div>
1437
+ <div class="applied-filters ${s}"></div>
2056
1438
  <slot></slot>
2057
- `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
1439
+ `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
2058
1440
  }
2059
1441
  connectedCallback() {
2060
- ti(this, this.shadowRoot.querySelector(".applied-filters"));
1442
+ fa(this, this.shadowRoot.querySelector(".applied-filters"));
2061
1443
  }
2062
1444
  }
2063
- window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", ei);
2064
- const ai = {
1445
+ window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", ba);
1446
+ const ga = {
2065
1447
  name: "Header"
2066
1448
  };
2067
- function ii(e, a, t, i, r, o) {
2068
- return m(), h("iam-applied-filters", null, [
2069
- w(e.$slots, "default")
1449
+ function ya(t, a, e, s, o, n) {
1450
+ return r(), l("iam-applied-filters", null, [
1451
+ f(t.$slots, "default")
2070
1452
  ]);
2071
1453
  }
2072
- const Ui = /* @__PURE__ */ y(ai, [["render", ii]]);
1454
+ const is = /* @__PURE__ */ p(ga, [["render", ya]]);
2073
1455
  /*!
2074
- * iamKey v5.3.0-beta2
1456
+ * iamKey v5.3.0-beta3
2075
1457
  * Copyright 2022-2024 iamproperty
2076
1458
  */
2077
- function si(e, a) {
2078
- ni(e, a);
1459
+ function va(t, a) {
1460
+ _a(t, a);
2079
1461
  }
2080
- function ni(e, a) {
2081
- var t;
2082
- a.addEventListener("keyup", (i) => {
2083
- clearTimeout(t), t = setTimeout(function() {
2084
- tt(e, a.value);
1462
+ function _a(t, a) {
1463
+ var e;
1464
+ a.addEventListener("keyup", (s) => {
1465
+ clearTimeout(e), e = setTimeout(function() {
1466
+ C(t, a.value);
2085
1467
  }, 500);
2086
- }), a.addEventListener("change", (i) => {
2087
- clearTimeout(t), tt(e, a.value);
1468
+ }), a.addEventListener("change", (s) => {
1469
+ clearTimeout(e), C(t, a.value);
2088
1470
  });
2089
1471
  }
2090
- const tt = function(e, a) {
2091
- Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
2092
- let r = t.textContent.toLowerCase();
2093
- t.classList.add("d-none"), r.includes(a.toLowerCase()) && t.classList.remove("d-none");
1472
+ const C = function(t, a) {
1473
+ Array.from(t.querySelectorAll(":scope > li")).forEach((e, s) => {
1474
+ let o = e.textContent.toLowerCase();
1475
+ e.classList.add("d-none"), o.includes(a.toLowerCase()) && e.classList.remove("d-none");
2094
1476
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2095
1477
  };
2096
1478
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
2097
- class oi extends HTMLElement {
1479
+ class wa extends HTMLElement {
2098
1480
  constructor() {
2099
1481
  super(), this.attachShadow({ mode: "open" });
2100
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
2101
- i.innerHTML = `
1482
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
1483
+ s.innerHTML = `
2102
1484
  <style>
2103
- @import "${t}";
1485
+ @import "${e}";
2104
1486
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2105
1487
 
2106
1488
  :host {
@@ -2125,86 +1507,86 @@ class oi extends HTMLElement {
2125
1507
  <div class="list__wrapper">
2126
1508
  <slot></slot>
2127
1509
  </div>
2128
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1510
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2129
1511
  }
2130
1512
  connectedCallback() {
2131
1513
  let a = this.classList.toString();
2132
- this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), si(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
1514
+ this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), va(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2133
1515
  }
2134
1516
  }
2135
- window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", oi);
2136
- const ri = {
1517
+ window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", wa);
1518
+ const $a = {
2137
1519
  name: "Filter list"
2138
1520
  };
2139
- function li(e, a, t, i, r, o) {
2140
- return m(), h("iam-filterlist", null, [
2141
- w(e.$slots, "default")
1521
+ function ka(t, a, e, s, o, n) {
1522
+ return r(), l("iam-filterlist", null, [
1523
+ f(t.$slots, "default")
2142
1524
  ]);
2143
1525
  }
2144
- const Vi = /* @__PURE__ */ y(ri, [["render", li]]);
2145
- function di(e) {
2146
- if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2147
- let t = document.querySelector(".notification__holder");
2148
- t || (t = document.createElement("div"), t.classList.add("notification__holder"), t.classList.add("container"), document.querySelector("body").appendChild(t)), e.closest(".notification__holder") || t.appendChild(e);
1526
+ const ns = /* @__PURE__ */ p($a, [["render", ka]]);
1527
+ function Aa(t) {
1528
+ if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
1529
+ let e = document.querySelector(".notification__holder");
1530
+ e || (e = document.createElement("div"), e.classList.add("notification__holder"), e.classList.add("container"), document.querySelector("body").appendChild(e)), t.closest(".notification__holder") || e.appendChild(t);
2149
1531
  }
2150
- if (e.setAttribute("role", "alert"), e.addEventListener("click", function(t) {
2151
- event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), Y(e));
2152
- }, !1), e.hasAttribute("data-timeout")) {
2153
- let t = e.getAttribute("data-timeout");
2154
- var a = new ci(function() {
2155
- Y(e);
2156
- }, t);
2157
- e.addEventListener("mouseenter", (i) => {
1532
+ if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
1533
+ event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), j(t));
1534
+ }, !1), t.hasAttribute("data-timeout")) {
1535
+ let e = t.getAttribute("data-timeout");
1536
+ var a = new xa(function() {
1537
+ j(t);
1538
+ }, e);
1539
+ t.addEventListener("mouseenter", (s) => {
2158
1540
  a.pause();
2159
- }), e.addEventListener("mouseleave", (i) => {
1541
+ }), t.addEventListener("mouseleave", (s) => {
2160
1542
  a.resume();
2161
1543
  });
2162
1544
  }
2163
1545
  }
2164
- function ci(e, a) {
2165
- var t, i, r = a;
1546
+ function xa(t, a) {
1547
+ var e, s, o = a;
2166
1548
  this.pause = function() {
2167
- window.clearTimeout(t), r -= /* @__PURE__ */ new Date() - i;
1549
+ window.clearTimeout(e), o -= /* @__PURE__ */ new Date() - s;
2168
1550
  }, this.resume = function() {
2169
- i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, r);
1551
+ s = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, o);
2170
1552
  }, this.resume();
2171
1553
  }
2172
- const Y = function(e) {
2173
- e.classList.add("d-none");
1554
+ const j = function(t) {
1555
+ t.classList.add("d-none");
2174
1556
  };
2175
1557
  window.dataLayer = window.dataLayer || [];
2176
1558
  window.dataLayer.push({
2177
1559
  event: "customElementRegistered",
2178
1560
  element: "Notification"
2179
1561
  });
2180
- class ui extends HTMLElement {
1562
+ class La extends HTMLElement {
2181
1563
  constructor() {
2182
1564
  super(), this.attachShadow({ mode: "open" });
2183
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/notification.css";`, r = `@import "${a}/css/components/notification.global.css";`, o = this.querySelectorAll("a,button");
2184
- Array.from(o).forEach((l, d) => {
2185
- l.setAttribute("slot", "btns"), l.classList.add("link");
2186
- }), (o.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2187
- const s = document.createElement("template");
2188
- s.innerHTML = `
1565
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = `@import "${a}/css/components/notification.css";`, o = `@import "${a}/css/components/notification.global.css";`, n = this.querySelectorAll("a,button");
1566
+ Array.from(n).forEach((d, u) => {
1567
+ d.setAttribute("slot", "btns"), d.classList.add("link");
1568
+ }), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
1569
+ const i = document.createElement("template");
1570
+ i.innerHTML = `
2189
1571
  <style>
2190
- @import "${t}";
2191
- ${i}
1572
+ @import "${e}";
1573
+ ${s}
2192
1574
  ${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
2193
1575
  </style>
2194
1576
 
2195
1577
  <div class="notification">
2196
1578
  <div class="notification__icon"><slot name="icon"></slot></div>
2197
- <div class="notification__inner"><div class="notification__text"><slot></slot></div>${o.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
1579
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2198
1580
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2199
1581
  </div>
2200
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${r}</style>`);
1582
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${o}</style>`);
2201
1583
  }
2202
1584
  connectedCallback() {
2203
- const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2204
- this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
2205
- const i = this;
1585
+ const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
1586
+ this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
1587
+ const s = this;
2206
1588
  if (!this.querySelector("i"))
2207
- switch (t) {
1589
+ switch (e) {
2208
1590
  case "danger":
2209
1591
  this.innerHTML += '<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';
2210
1592
  break;
@@ -2217,88 +1599,196 @@ class ui extends HTMLElement {
2217
1599
  default:
2218
1600
  this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2219
1601
  }
2220
- di(i), a && a.addEventListener("click", function(r) {
2221
- Y(i);
1602
+ Aa(s), a && a.addEventListener("click", function(o) {
1603
+ j(s);
2222
1604
  }, !1);
2223
1605
  }
2224
1606
  }
2225
- const mi = {
1607
+ const Sa = {
2226
1608
  name: "Notification",
2227
1609
  props: {},
2228
1610
  created() {
2229
1611
  this.$nextTick(function() {
2230
- window.customElements.get("iam-notification") || window.customElements.define("iam-notification", ui);
1612
+ window.customElements.get("iam-notification") || window.customElements.define("iam-notification", La);
2231
1613
  });
2232
1614
  }
2233
1615
  };
2234
- function hi(e, a, t, i, r, o) {
2235
- return m(), h("iam-notification", null, [
2236
- w(e.$slots, "default")
1616
+ function qa(t, a, e, s, o, n) {
1617
+ return r(), l("iam-notification", null, [
1618
+ f(t.$slots, "default")
2237
1619
  ]);
2238
1620
  }
2239
- const Wi = /* @__PURE__ */ y(mi, [["render", hi]]), pi = {
1621
+ const os = /* @__PURE__ */ p(Sa, [["render", qa]]), Ea = {
2240
1622
  name: "Actionbar",
2241
1623
  props: {},
2242
1624
  mounted() {
2243
1625
  this.$nextTick(function() {
2244
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-86b28333.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
2245
- window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
2246
- }).catch((e) => {
2247
- console.log(e.message);
1626
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-12c6aab8.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((t) => {
1627
+ window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
1628
+ }).catch((t) => {
1629
+ console.log(t.message);
2248
1630
  });
2249
1631
  });
2250
1632
  }
2251
1633
  };
2252
- function fi(e, a, t, i, r, o) {
2253
- return m(), h("iam-actionbar", null, [
2254
- w(e.$slots, "default")
1634
+ function Ta(t, a, e, s, o, n) {
1635
+ return r(), l("iam-actionbar", null, [
1636
+ f(t.$slots, "default")
2255
1637
  ]);
2256
1638
  }
2257
- const Ki = /* @__PURE__ */ y(pi, [["render", fi]]), bi = {
1639
+ const rs = /* @__PURE__ */ p(Ea, [["render", Ta]]);
1640
+ /*!
1641
+ * iamKey v5.3.0-beta3
1642
+ * Copyright 2022-2024 iamproperty
1643
+ */
1644
+ class z extends HTMLElement {
1645
+ constructor() {
1646
+ super(), this.attachShadow({ mode: "open" });
1647
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
1648
+ s.innerHTML = `
1649
+ <style>
1650
+ @import "${e}";
1651
+ :host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
1652
+
1653
+
1654
+ ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1655
+ </style>
1656
+ <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
1657
+ <div class="pagination d-none">
1658
+
1659
+ <div class="minimal" part="minimal">
1660
+ <div class="page-jump">
1661
+ <div><select class="select--minimal"></select></div>
1662
+ <span class="total-pages"></span>
1663
+ </div>
1664
+
1665
+ <button class="prev" disabled>Prev</button>
1666
+ <button class="next" disabled>Next</button>
1667
+ </div>
1668
+
1669
+ <div class="item-count" part="item-count"></div>
1670
+ <div class="per-page" part="per-page">
1671
+ <div>
1672
+ <select class="select--minimal">
1673
+ <option value="15">15</option>
1674
+ <option value="25">25</option>
1675
+ <option value="40">40</option>
1676
+ <option value="50">50</option>
1677
+ </select>
1678
+ </div>
1679
+ <span> / page</span>
1680
+ </div>
1681
+ <div class="mobile-controls m-auto text-center">
1682
+ <i class="fa-solid fa-spinner fa-spin"></i>
1683
+ <button class="load-more btn btn-primary m-auto">Load more</a>
1684
+ </div>
1685
+ </div>
1686
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
1687
+ }
1688
+ connectedCallback() {
1689
+ const a = new URLSearchParams(window.location.search);
1690
+ this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
1691
+ const e = this.shadowRoot.querySelector(".page-jump select"), s = this.shadowRoot.querySelector(".prev"), o = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".per-page select"), i = this.shadowRoot.querySelector(".load-more");
1692
+ this.setup(), e.addEventListener("change", (d) => {
1693
+ this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", d.target.value);
1694
+ }), o.addEventListener("click", (d) => {
1695
+ e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
1696
+ }), s.addEventListener("click", (d) => {
1697
+ e.value = parseInt(e.value) - 1, e.dispatchEvent(new Event("change"));
1698
+ }), n.addEventListener("change", (d) => {
1699
+ this.setAttribute("data-increment", d.target.value);
1700
+ }), i.addEventListener("click", (d) => {
1701
+ let u = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
1702
+ this.setAttribute("data-show", u), u > parseInt(this.getAttribute("data-total")) && i.remove();
1703
+ });
1704
+ }
1705
+ setup() {
1706
+ const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), s = this.shadowRoot.querySelector(".prev"), o = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".item-count"), i = this.shadowRoot.querySelector(".per-page select"), d = this.shadowRoot.querySelector(".total-pages"), u = parseInt(this.getAttribute("data-page")), h = parseInt(this.getAttribute("data-total")), g = parseInt(this.getAttribute("data-show")), m = parseInt(this.getAttribute("data-increment")), y = Math.ceil(h / m);
1707
+ h > g && a.classList.remove("d-none");
1708
+ let v = "";
1709
+ for (let E = 1; E <= y; E++)
1710
+ v += `<option value="${E}" ${E == u ? "selected" : ""}>${E}</option>`;
1711
+ e.innerHTML = v, d.innerHTML = `of ${y}`, u == y ? o.setAttribute("disabled", "disabled") : o.removeAttribute("disabled"), u == 1 ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled");
1712
+ let $ = u == 1 ? 1 : (u - 1) * g + 1, q = u == 1 ? g : u * g;
1713
+ n.innerHTML = `${$} - ${q > h ? h : q} of ${h} items`;
1714
+ const I = [15, 25, 40, 50];
1715
+ m && i.value != m && !I.includes(m) && (i.innerHTML = `<option value="${m}">${m}</option>
1716
+ <option value="${m * 2}">${m * 2}</option>
1717
+ <option value="${m * 3}">${m * 3}</option>
1718
+ <option value="${m * 4}">${m * 4}</option>`), i.value = m;
1719
+ }
1720
+ static get observedAttributes() {
1721
+ return ["data-total", "data-increment", "data-page", "data-show"];
1722
+ }
1723
+ attributeChangedCallback(a, e, s) {
1724
+ switch (a) {
1725
+ case "data-total": {
1726
+ e != s && (this.setAttribute("data-page", 1), this.setup());
1727
+ break;
1728
+ }
1729
+ case "data-show": {
1730
+ e != s && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: s } })));
1731
+ break;
1732
+ }
1733
+ case "data-increment": {
1734
+ e != s && (this.setAttribute("data-show", s), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: s } })));
1735
+ break;
1736
+ }
1737
+ case "data-page": {
1738
+ e && e != s && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: s } })));
1739
+ break;
1740
+ }
1741
+ }
1742
+ }
1743
+ }
1744
+ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1745
+ __proto__: null,
1746
+ default: z
1747
+ }, Symbol.toStringTag, { value: "Module" })), Ma = {
2258
1748
  name: "Pagination",
2259
1749
  props: {},
2260
1750
  computed: {},
2261
1751
  created() {
2262
1752
  this.$nextTick(function() {
2263
- window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
1753
+ window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", z);
2264
1754
  });
2265
1755
  },
2266
1756
  updated() {
2267
1757
  }
2268
1758
  };
2269
- function gi(e, a, t, i, r, o) {
2270
- return m(), h("iam-pagination");
1759
+ function ja(t, a, e, s, o, n) {
1760
+ return r(), l("iam-pagination");
2271
1761
  }
2272
- const Gi = /* @__PURE__ */ y(bi, [["render", gi]]), yi = {
1762
+ const ls = /* @__PURE__ */ p(Ma, [["render", ja]]), Ca = {
2273
1763
  name: "Address Lookup",
2274
1764
  mounted() {
2275
1765
  this.$nextTick(function() {
2276
- R(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-6bae4154.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-54ce7f2f.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
2277
- window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
2278
- }).catch((e) => {
2279
- console.log(e.message);
1766
+ S(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-6bae4154.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-54ce7f2f.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((t) => {
1767
+ window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", t.default);
1768
+ }).catch((t) => {
1769
+ console.log(t.message);
2280
1770
  });
2281
1771
  });
2282
1772
  }
2283
1773
  };
2284
- function vi(e, a, t, i, r, o) {
2285
- return m(), h("iam-address-lookup", null, [
2286
- w(e.$slots, "default")
1774
+ function Na(t, a, e, s, o, n) {
1775
+ return r(), l("iam-address-lookup", null, [
1776
+ f(t.$slots, "default")
2287
1777
  ]);
2288
1778
  }
2289
- const Qi = /* @__PURE__ */ y(yi, [["render", vi]]);
1779
+ const ds = /* @__PURE__ */ p(Ca, [["render", Na]]);
2290
1780
  /*!
2291
- * iamKey v5.3.0-beta2
1781
+ * iamKey v5.3.0-beta3
2292
1782
  * Copyright 2022-2024 iamproperty
2293
1783
  */
2294
1784
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
2295
- class wi extends HTMLElement {
1785
+ class Ra extends HTMLElement {
2296
1786
  constructor() {
2297
1787
  super(), this.attachShadow({ mode: "open" });
2298
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
2299
- i.innerHTML = `
1788
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, s = document.createElement("template");
1789
+ s.innerHTML = `
2300
1790
  <style class="styles">
2301
- @import "${t}";
1791
+ @import "${e}";
2302
1792
  :host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu .btn[aria-expanded][class*=fa-]:before{content:"" !important}@media screen and (min-width: 62em){.side-menu .btn[aria-expanded]{opacity:0;transition:opacity .5s}.side-menu .btn[aria-expanded]:is(:hover,:focus,:active){opacity:1}}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,[aria-expanded])){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu][aria-expanded]){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu][aria-expanded]):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu][aria-expanded]):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
2303
1793
 
2304
1794
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -2318,68 +1808,68 @@ class wi extends HTMLElement {
2318
1808
  </div>
2319
1809
 
2320
1810
  </div>
2321
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1811
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2322
1812
  }
2323
1813
  connectedCallback() {
2324
- const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), r = this.shadowRoot.querySelector(".side-menu > .btn");
2325
- this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), i.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), r.addEventListener("click", (o) => {
2326
- a.classList.contains("open") ? (a.classList.remove("open"), r.removeAttribute("aria-expanded"), setTimeout(function() {
2327
- t.classList.add("closed");
1814
+ const a = this.shadowRoot.querySelector(".side-menu"), e = this.shadowRoot.querySelector(".side-menu-content"), s = this.shadowRoot.querySelector(".main-content"), o = this.shadowRoot.querySelector(".side-menu > .btn");
1815
+ this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), e.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), s.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), o.addEventListener("click", (n) => {
1816
+ a.classList.contains("open") ? (a.classList.remove("open"), o.removeAttribute("aria-expanded"), setTimeout(function() {
1817
+ e.classList.add("closed");
2328
1818
  }, 1e3), a.classList.add("pe-none"), setTimeout(function() {
2329
1819
  a.classList.remove("pe-none");
2330
- }, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
2331
- a.classList.add("open"), r.setAttribute("aria-expanded", !0);
1820
+ }, 1e3)) : (e.classList.remove("closed"), setTimeout(function() {
1821
+ a.classList.add("open"), o.setAttribute("aria-expanded", !0);
2332
1822
  }, 100));
2333
- }), a.addEventListener("mouseenter", (o) => {
2334
- window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
2335
- }), a.addEventListener("mousemove", (o) => {
2336
- window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
2337
- }), a.addEventListener("mouseleave", (o) => {
1823
+ }), a.addEventListener("mouseenter", (n) => {
1824
+ window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"), a.classList.add("hover"));
1825
+ }), a.addEventListener("mousemove", (n) => {
1826
+ window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"));
1827
+ }), a.addEventListener("mouseleave", (n) => {
2338
1828
  window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
2339
- t.classList.add("closed");
1829
+ e.classList.add("closed");
2340
1830
  }, 1e3));
2341
1831
  });
2342
1832
  }
2343
1833
  }
2344
- window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", wi);
2345
- const _i = {
1834
+ window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Ra);
1835
+ const Pa = {
2346
1836
  name: "CollapsibleSideMenu",
2347
1837
  props: {},
2348
1838
  mounted() {
2349
1839
  }
2350
1840
  };
2351
- function Ai(e, a, t, i, r, o) {
2352
- return m(), h("iam-collapsible-side", null, [
2353
- w(e.$slots, "default")
1841
+ function za(t, a, e, s, o, n) {
1842
+ return r(), l("iam-collapsible-side", null, [
1843
+ f(t.$slots, "default")
2354
1844
  ]);
2355
1845
  }
2356
- const Yi = /* @__PURE__ */ y(_i, [["render", Ai]]);
1846
+ const cs = /* @__PURE__ */ p(Pa, [["render", za]]);
2357
1847
  export {
2358
- qi as Accordion,
2359
- Ei as AccordionItem,
2360
- Ki as Actionbar,
2361
- Qi as AddressLookup,
2362
- Ui as AppliedFilters,
2363
- Ti as Banner,
2364
- Hi as Card,
2365
- Mi as Carousel,
2366
- Yi as CollapsibleSideMenu,
2367
- ki as FileUpload,
2368
- Vi as Filterlist,
2369
- Ci as Header,
2370
- lt as Input,
2371
- $i as Logo,
2372
- Ri as Nav,
2373
- Bi as NoteFeed,
2374
- Wi as Notification,
2375
- Gi as Pagination,
2376
- Ni as PropertySearchbar,
2377
- Ii as Snapshot,
2378
- zi as Step,
2379
- Pi as Stepper,
2380
- Fi as Tab,
2381
- rt as Table,
2382
- Oi as Tabs,
2383
- ji as Testimonial,
2384
- Di as Timeline
1848
+ Va as Accordion,
1849
+ Oa as AccordionItem,
1850
+ rs as Actionbar,
1851
+ ds as AddressLookup,
1852
+ is as AppliedFilters,
1853
+ Ba as Banner,
1854
+ Ua as Card,
1855
+ Wa as Carousel,
1856
+ cs as CollapsibleSideMenu,
1857
+ Fa as FileUpload,
1858
+ ns as Filterlist,
1859
+ Ka as Header,
1860
+ R as Input,
1861
+ Da as Logo,
1862
+ Ja as Nav,
1863
+ ss as NoteFeed,
1864
+ os as Notification,
1865
+ ls as Pagination,
1866
+ Ya as PropertySearchbar,
1867
+ Za as Snapshot,
1868
+ es as Step,
1869
+ Xa as Stepper,
1870
+ as as Tab,
1871
+ N as Table,
1872
+ ts as Tabs,
1873
+ Ga as Testimonial,
1874
+ Qa as Timeline
2385
1875
  };