@iamproperty/components 5.2.0 → 5.3.0-beta2

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