@iamproperty/components 3.7.2 → 3.7.3

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 (36) hide show
  1. package/assets/css/components/dialog.css +1 -1
  2. package/assets/css/components/dialog.css.map +1 -1
  3. package/assets/css/components/pagination.css +1 -1
  4. package/assets/css/components/pagination.css.map +1 -1
  5. package/assets/css/components/table.css +1 -1
  6. package/assets/css/components/table.css.map +1 -1
  7. package/assets/css/core.min.css +1 -1
  8. package/assets/css/core.min.css.map +1 -1
  9. package/assets/css/style.min.css +1 -1
  10. package/assets/css/style.min.css.map +1 -1
  11. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  12. package/assets/js/components/applied-filters/applied-filters.component.min.js +14 -0
  13. package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -0
  14. package/assets/js/components/card/card.component.min.js +1 -1
  15. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  16. package/assets/js/components/header/header.component.min.js +1 -1
  17. package/assets/js/components/pagination/pagination.component.min.js +18 -0
  18. package/assets/js/components/pagination/pagination.component.min.js.map +1 -0
  19. package/assets/js/components/table/table.component.js +1 -0
  20. package/assets/js/components/table/table.component.min.js +13 -13
  21. package/assets/js/components/table/table.component.min.js.map +1 -1
  22. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  23. package/assets/js/dynamic.min.js +1 -1
  24. package/assets/js/modules/table.js +10 -4
  25. package/assets/js/scripts.bundle.js +3 -3
  26. package/assets/js/scripts.bundle.js.map +1 -1
  27. package/assets/js/scripts.bundle.min.js +2 -2
  28. package/assets/js/scripts.bundle.min.js.map +1 -1
  29. package/assets/sass/components/dialog.scss +11 -0
  30. package/assets/sass/components/pagination.scss +2 -1
  31. package/assets/sass/components/table.scss +6 -4
  32. package/assets/ts/components/table/table.component.ts +1 -0
  33. package/assets/ts/modules/table.ts +13 -5
  34. package/dist/components.es.js +301 -296
  35. package/dist/components.umd.js +3 -3
  36. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { openBlock as d, createElementBlock as u, normalizeClass as A, createElementVNode as c, toDisplayString as q, createCommentVNode as g, Fragment as T, renderList as H, renderSlot as _, withDirectives as I, mergeProps as M, vModelDynamic as O, vModelText as dt, vModelSelect as ut, resolveComponent as R, createVNode as x, createTextVNode as ht, normalizeStyle as mt, withModifiers as ft } from "vue";
1
+ import { openBlock as u, createElementBlock as h, normalizeClass as A, createElementVNode as c, toDisplayString as q, createCommentVNode as g, Fragment as T, renderList as H, renderSlot as _, withDirectives as z, mergeProps as M, vModelDynamic as O, vModelText as dt, vModelSelect as ut, resolveComponent as R, createVNode as x, createTextVNode as ht, normalizeStyle as mt, withModifiers as ft } from "vue";
2
2
  const S = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [i, n] of a)
5
- t[i] = n;
4
+ for (const [i, o] of a)
5
+ t[i] = o;
6
6
  return t;
7
7
  }, bt = {
8
8
  name: "Logo",
@@ -30,17 +30,17 @@ const S = (e, a) => {
30
30
  }
31
31
  }
32
32
  }, yt = ["xlink:href"], pt = ["innerHTML"];
33
- function gt(e, a, t, i, n, r) {
34
- return d(), u("div", {
33
+ function gt(e, a, t, i, o, r) {
34
+ return u(), h("div", {
35
35
  class: A(r.className)
36
36
  }, [
37
- (d(), u("svg", null, [
37
+ (u(), h("svg", null, [
38
38
  c("title", null, "iam " + q(t.id), 1),
39
39
  c("use", {
40
40
  "xlink:href": t.path + r.src
41
41
  }, null, 8, yt)
42
42
  ])),
43
- t.desc ? (d(), u("span", {
43
+ t.desc ? (u(), h("span", {
44
44
  key: 0,
45
45
  innerHTML: t.desc
46
46
  }, null, 8, pt)) : g("", !0)
@@ -53,52 +53,51 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
53
53
  if (!e.getAttribute("data-pages"))
54
54
  return !1;
55
55
  e.getAttribute("data-page") || e.setAttribute("data-page", 1);
56
- let t = e.getAttribute("data-page"), i = e.getAttribute("data-pages"), n = e.getAttribute("data-total"), r = e.getAttribute("data-show"), s = e.getAttribute("data-increment");
56
+ let t = e.getAttribute("data-page"), i = e.getAttribute("data-pages"), o = e.getAttribute("data-total"), r = e.getAttribute("data-show"), s = e.getAttribute("data-increment");
57
57
  if (i <= 1)
58
58
  return a.innerHTML = "", !1;
59
- let o = "";
60
- for (let h = 1; h <= i; h++)
61
- h == t ? o += `<li class="page-item active" aria-current="page"><span class="page-link">${h}</span></li>` : o += `<li class="page-item"><a href="?page=${h}" class="page-link" data-page="${h}">${h}</a></li>`;
59
+ let n = "";
60
+ for (let d = 1; d <= i; d++)
61
+ d == t ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${d}</span></li>` : n += `<li class="page-item"><a href="?page=${d}" class="page-link" data-page="${d}">${d}</a></li>`;
62
62
  return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
63
63
  ${t == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) - 1}" class="page-link" data-page="${parseInt(t) - 1}">Previous</a></li>`}
64
- ${o}
64
+ ${n}
65
65
  ${t == i ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) + 1}" class="page-link" data-page="${parseInt(t) + 1}">Next</a></li>`}
66
66
  </ul>`, a.innerHTML += `<div class="d-sm-none text-center">
67
- <span class="d-block pb-2">You've viewed ${r} of ${n} results</span>
67
+ <span class="d-block pb-2">You've viewed ${r} of ${o} results</span>
68
68
  <a href="?show=${parseInt(r) + parseInt(s)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(r) + parseInt(s)}">Load more results</a>
69
69
  </div>`, !0;
70
70
  }, X = (e) => {
71
71
  const a = Array.from(e.querySelectorAll("thead th"));
72
- Array.from(e.querySelectorAll("tbody tr")).forEach((i, n) => {
72
+ Array.from(e.querySelectorAll("tbody tr")).forEach((i, o) => {
73
73
  const r = Array.from(i.querySelectorAll("th, td")), s = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "incomplete", "completed", "requires approval"];
74
- r.forEach((o, h) => {
75
- const l = a[h];
74
+ r.forEach((n, d) => {
75
+ const l = a[d];
76
76
  if (typeof l < "u") {
77
77
  let b = document.createElement("div");
78
78
  b.innerHTML = l.innerHTML;
79
79
  let m = b.textContent || b.innerText || "";
80
- o.setAttribute("data-label", m), l.hasAttribute("data-td-class") && o.setAttribute("class", l.getAttribute("data-td-class")), l.hasAttribute("data-format") && (o.setAttribute("data-format", l.getAttribute("data-format")), o.innerHTML = U(l.getAttribute("data-format"), o.textContent.trim())), s.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
80
+ n.setAttribute("data-label", m), l.hasAttribute("data-td-class") && n.setAttribute("class", l.getAttribute("data-td-class")), l.hasAttribute("data-format") && (n.setAttribute("data-format", l.getAttribute("data-format")), n.innerHTML = U(l.getAttribute("data-format"), n.textContent.trim())), s.includes(n.textContent.trim().toLowerCase()) && n.setAttribute("data-content", n.textContent.trim().toLowerCase());
81
81
  }
82
82
  });
83
83
  });
84
84
  }, St = (e) => {
85
85
  let a = 0;
86
- return Array.from(e.querySelectorAll("tr")).forEach((t, i) => {
87
- let n = window.getComputedStyle(document.querySelector("html")), r = t.querySelector(":scope > *:last-child > *:first-child");
86
+ return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
87
+ let o = window.getComputedStyle(document.querySelector("html")), r = t.querySelector(":scope > *:last-child > *:first-child");
88
88
  if (r) {
89
- let o = r.offsetWidth / parseFloat(n.fontSize);
90
- o += 1.5, a = a > o ? a : o;
89
+ r.classList.add("text-nowrap");
90
+ let s = r.offsetWidth / parseFloat(o.fontSize);
91
+ s += 1.7, a = a > s ? a : s;
91
92
  }
92
- let s = t.offsetHeight / parseFloat(n.fontSize);
93
- t.style.setProperty("--row-height", `${s}rem`);
94
93
  }), a;
95
94
  }, Lt = (e) => {
96
95
  if (e.closest(".table--fullwidth") || e.querySelectorAll("thead tr th").length < 4)
97
96
  return !1;
98
97
  Array.from(e.querySelectorAll("tbody tr")).forEach((a, t) => {
99
- let i = a.querySelector(":scope > :is(td,th):first-child"), n = i.textContent;
100
- if (n != "")
101
- i.innerHTML = `<span class="td__content">${n}</span><button type="button" class="d-none">${n}</button>`;
98
+ let i = a.querySelector(":scope > :is(td,th):first-child"), o = i.textContent;
99
+ if (o != "")
100
+ i.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
102
101
  else {
103
102
  let r = a.querySelector(":scope > :is(td,th):nth-child(2)"), s = r.textContent;
104
103
  r.innerHTML = `<span class="td__content">${s}</span><button type="button" class="d-none">${s}</button>`;
@@ -115,14 +114,14 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
115
114
  let t = a.querySelector("[data-search]");
116
115
  if (!t)
117
116
  return !1;
118
- const i = t.getAttribute("id"), n = t.getAttribute("data-search").split(",");
117
+ const i = t.getAttribute("id"), o = t.getAttribute("data-search").split(",");
119
118
  let r = t.parentNode, s = {};
120
- n.forEach((o, h) => {
121
- Array.from(e.querySelectorAll('td[data-label="' + o.trim() + '"]')).forEach((l, b) => {
119
+ o.forEach((n, d) => {
120
+ Array.from(e.querySelectorAll('td[data-label="' + n.trim() + '"]')).forEach((l, b) => {
122
121
  l.querySelector(".td__content") ? s[l.querySelector(".td__content").textContent] = l.querySelector(".td__content").textContent : s[l.textContent] = l.textContent;
123
122
  });
124
- }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), r.querySelector("datalist") || (r.innerHTML += `<datalist id="${i}_list"></datalist>`), r.querySelector("datalist").innerHTML = `${Object.keys(s).map((o) => `<option value="${o}"></option>`).join("")}`;
125
- }, xt = (e, a, t, i, n) => {
123
+ }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), r.querySelector("datalist") || (r.innerHTML += `<datalist id="${i}_list"></datalist>`), r.querySelector("datalist").innerHTML = `${Object.keys(s).map((n) => `<option value="${n}"></option>`).join("")}`;
124
+ }, xt = (e, a, t, i, o) => {
126
125
  var r;
127
126
  let s = function(l = !1) {
128
127
  if (a.hasAttribute("data-ajax")) {
@@ -139,9 +138,9 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
139
138
  s();
140
139
  }, 500));
141
140
  }), a.addEventListener("change", (l) => {
142
- clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Z(e, a, n), s()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && s();
141
+ clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Z(e, a, o), s()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && s(), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && s();
143
142
  }), a.addEventListener("click", (l) => {
144
- clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || Z(e, a, n), s());
143
+ clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || Z(e, a, o), s());
145
144
  }), a.addEventListener("submit", (l) => {
146
145
  clearTimeout(r), a.hasAttribute("data-submit") || l.preventDefault(), s();
147
146
  }), a.addEventListener("force", (l) => {
@@ -149,14 +148,14 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
149
148
  }), a.addEventListener("paginate", (l) => {
150
149
  s(!0);
151
150
  });
152
- let o = [], h = [];
151
+ let n = [], d = [];
153
152
  Array.from(a.querySelectorAll("[data-mimic]")).forEach((l, b) => {
154
153
  let m = l.getAttribute("data-mimic");
155
154
  Array.from(document.querySelectorAll(`[name="${m}"]`)).forEach((y, p) => {
156
155
  let f = y.closest("form");
157
- o.includes(f) || o.push(f), h.includes(m) || h.push(m);
156
+ n.includes(f) || n.push(f), d.includes(m) || d.push(m);
158
157
  });
159
- }), o.forEach((l, b) => {
158
+ }), n.forEach((l, b) => {
160
159
  const m = function() {
161
160
  let y = [], p = new FormData(l);
162
161
  for (const [f, k] of p)
@@ -165,7 +164,7 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
165
164
  const k = new Event("force");
166
165
  a.dispatchEvent(k);
167
166
  }
168
- for (const f of h)
167
+ for (const f of d)
169
168
  if (!p.has(f) && l.querySelector(`[name="${f}"]`)) {
170
169
  document.querySelector(`[data-mimic="${f}"]`).value = "";
171
170
  const k = new Event("force");
@@ -181,28 +180,28 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
181
180
  }, Z = (e, a, t) => {
182
181
  if (a.getAttribute("data-ajax"))
183
182
  return !1;
184
- let i = e.querySelector("tbody"), n = a.querySelector("[data-sort]"), r = n.querySelector(`option:nth-child(${n.selectedIndex + 1})`), s = r.getAttribute("data-sort"), o = r.getAttribute("data-order"), h = r.getAttribute("data-format");
183
+ let i = e.querySelector("tbody"), o = a.querySelector("[data-sort]"), r = o.querySelector(`option:nth-child(${o.selectedIndex + 1})`), s = r.getAttribute("data-sort"), n = r.getAttribute("data-order"), d = r.getAttribute("data-format");
185
184
  if (!s)
186
185
  return i.innerHTML = t.innerHTML, X(e), !1;
187
186
  let l = [];
188
- ["asc", "desc", "descending"].includes(o) || (l = o.split(","));
187
+ ["asc", "desc", "descending"].includes(n) || (l = n.split(","));
189
188
  let b = [];
190
189
  Array.from(i.querySelectorAll("tr")).forEach((y, p) => {
191
190
  let f = y.querySelector('td[data-label="' + s + '"], th[data-label="' + s + '"]').textContent.trim();
192
- l.length && l.includes(f) && (f = l.indexOf(f)), vt(f) && (f = At(f, 10)), h && h == "date" && (f = new Date(f));
191
+ l.length && l.includes(f) && (f = l.indexOf(f)), vt(f) && (f = At(f, 10)), d && d == "date" && (f = new Date(f));
193
192
  const k = {
194
193
  index: f,
195
194
  row: y
196
195
  };
197
196
  b.push(k);
198
- }), b.sort((y, p) => y.index > p.index ? 1 : -1), (o == "descending" || o == "desc") && (b = b.reverse());
197
+ }), b.sort((y, p) => y.index > p.index ? 1 : -1), (n == "descending" || n == "desc") && (b = b.reverse());
199
198
  let m = "";
200
199
  b.forEach((y, p) => {
201
200
  m += y.row.outerHTML;
202
201
  }), i.innerHTML = m;
203
202
  }, et = (e, a, t) => {
204
203
  e.classList.remove("table--filtered");
205
- let i = [], n = [], r = 0, s = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, o = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
204
+ let i = [], o = [], r = 0, s = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
206
205
  if (Array.from(e.querySelectorAll("tbody tr")).forEach((l, b) => {
207
206
  l.classList.remove("filtered"), l.classList.remove("filtered--matched"), l.classList.remove("filtered--show"), l.removeAttribute("data-filtered-by");
208
207
  }), Array.from(a.querySelectorAll("[data-filter]")).forEach((l, b) => {
@@ -218,7 +217,7 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
218
217
  }), a.querySelector("[data-search]")) {
219
218
  let l = a.querySelector("[data-search]");
220
219
  a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((m, y) => {
221
- n.push({ column: `${m.trim()}`, value: `${l.value}` });
220
+ o.push({ column: `${m.trim()}`, value: `${l.value}` });
222
221
  });
223
222
  }
224
223
  Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, b) => {
@@ -246,9 +245,9 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
246
245
  }
247
246
  } else if (f && f == "$thisMonth") {
248
247
  let L = /* @__PURE__ */ new Date(), v = L.getFullYear(), $ = L.getMonth();
249
- var P = new Date(v, $, 1), z = new Date(v, $ + 1, 0);
248
+ var P = new Date(v, $, 1), I = new Date(v, $ + 1, 0);
250
249
  let w = new Date(C.textContent.toLowerCase());
251
- P.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), p = w >= P && w <= z;
250
+ P.setHours(0, 0, 0, 0), I.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), p = w >= P && w <= I;
252
251
  } else if (f && f == "$lastMonth") {
253
252
  let L = /* @__PURE__ */ new Date(), v = L.getFullYear(), $ = L.getMonth();
254
253
  var E = new Date(v, $ - 1, 1), V = new Date(v, $, 0);
@@ -259,57 +258,57 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
259
258
  }), p || (m.classList.add("filtered"), m.setAttribute("data-filtered-by", l));
260
259
  });
261
260
  Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((l, b) => {
262
- let m = !(n.length > 0 && n[0].value.length >= 3);
263
- n.forEach((y, p) => {
261
+ let m = !(o.length > 0 && o[0].value.length >= 3);
262
+ o.forEach((y, p) => {
264
263
  let f = l.querySelector(`[data-label="${y.column}"]`);
265
264
  f && y.value.length >= 3 && f.textContent.toLowerCase().includes(y.value.toLowerCase()) && (m = !0);
266
265
  }), m || l.classList.add("filtered");
267
266
  }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((l, b) => {
268
- r++, l.classList.add("filtered--matched"), Math.ceil(r / o) == parseInt(s) && l.classList.add("filtered--show");
269
- }), t && (t.setAttribute("data-page", s), t.setAttribute("data-pages", Math.ceil(r / o)), t.setAttribute("data-total", r), t.setAttribute("data-show", o));
267
+ r++, l.classList.add("filtered--matched"), Math.ceil(r / n) == parseInt(s) && l.classList.add("filtered--show");
268
+ }), t && (t.setAttribute("data-page", s), t.setAttribute("data-pages", Math.ceil(r / n)), t.setAttribute("data-total", r), t.setAttribute("data-show", n));
270
269
  }, G = (e, a, t) => {
271
- Array.from(a.querySelectorAll("[data-query]")).forEach((n, r) => {
272
- let s = n.getAttribute("data-query"), o;
270
+ Array.from(a.querySelectorAll("[data-query]")).forEach((o, r) => {
271
+ let s = o.getAttribute("data-query"), n;
273
272
  if (s == "total")
274
- t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
273
+ t.hasAttribute("data-total") ? n = t.getAttribute("data-total") : n = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
275
274
  else if (!s.includes(" == ") && s.includes(" & ")) {
276
- let h = s.split(" & "), l = "";
277
- h.forEach((b) => {
275
+ let d = s.split(" & "), l = "";
276
+ d.forEach((b) => {
278
277
  l += `:not([data-filtered-by="${b}"])`;
279
- }), o = Array.from(e.querySelectorAll(`tbody tr${l}`)).length;
278
+ }), n = Array.from(e.querySelectorAll(`tbody tr${l}`)).length;
280
279
  } else if (!s.includes(" == "))
281
- o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
280
+ n = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
282
281
  else if (s.includes(" && ")) {
283
- let h = s.split(" && ");
284
- o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(l) {
282
+ let d = s.split(" && ");
283
+ n = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(l) {
285
284
  let b = !0;
286
- for (const [m, y] of Object.entries(h)) {
285
+ for (const [m, y] of Object.entries(d)) {
287
286
  let p = y.split(" == ");
288
287
  (!l.querySelector(`td[data-label="${p[0]}"]`) || l.querySelector(`td[data-label="${p[0]}"]`).textContent != `${p[1]}`) && (b = !1);
289
288
  }
290
289
  return b;
291
290
  }).length;
292
291
  } else {
293
- let h = s.split(" == ");
294
- o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${h[0]}"], tbody tr[data-filtered-by="${h[0]}"] td[data-label="${h[0]}"]`)).filter(function(l) {
295
- return l.textContent === h[1];
292
+ let d = s.split(" == ");
293
+ n = 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(l) {
294
+ return l.textContent === d[1];
296
295
  }).length;
297
296
  }
298
- n.hasAttribute("data-total") ? n.setAttribute("data-total", o) : n.innerHTML = o;
297
+ o.hasAttribute("data-total") ? o.setAttribute("data-total", n) : o.innerHTML = n;
299
298
  });
300
299
  }, qt = function(e, a, t, i) {
301
- t.addEventListener("click", (n) => {
302
- if (n && n.target instanceof HTMLElement && n.target.closest("[data-page]")) {
303
- n.preventDefault();
304
- let r = a.querySelector("[data-pagination]"), s = n.target.closest("[data-page]").getAttribute("data-page");
300
+ t.addEventListener("click", (o) => {
301
+ if (o && o.target instanceof HTMLElement && o.target.closest("[data-page]")) {
302
+ o.preventDefault();
303
+ let r = a.querySelector("[data-pagination]"), s = o.target.closest("[data-page]").getAttribute("data-page");
305
304
  if (r.value = s, i.setAttribute("data-page", s), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
306
- const o = new URL(location);
307
- o.searchParams.set("page", s), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: s }, "", o);
305
+ const n = new URL(location);
306
+ n.searchParams.set("page", s), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: s }, "", n);
308
307
  }
309
308
  }
310
- if (n && n.target instanceof HTMLElement && n.target.closest("[data-show]")) {
311
- n.preventDefault();
312
- let r = a.querySelector("[data-show]"), s = n.target.closest("[data-show]").getAttribute("data-show");
309
+ if (o && o.target instanceof HTMLElement && o.target.closest("[data-show]")) {
310
+ o.preventDefault();
311
+ let r = a.querySelector("[data-show]"), s = o.target.closest("[data-show]").getAttribute("data-show");
313
312
  r.value = s, i.setAttribute("data-show", s), a.dispatchEvent(new Event("submit"));
314
313
  }
315
314
  });
@@ -321,27 +320,33 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
321
320
  });
322
321
  }, Tt = function(e) {
323
322
  for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
324
- for (var n = t[i].querySelectorAll("td,th"), r = [], s = 0; s < n.length; s++)
325
- r.push(`"${n[s].textContent}"`);
323
+ for (var o = t[i].querySelectorAll("td,th"), r = [], s = 0; s < o.length; s++)
324
+ r.push(`"${o[s].textContent}"`);
326
325
  a.push(r.join(","));
327
326
  }
328
327
  a = a.join(`
329
328
  `);
330
- let o = new Blob([a], {
329
+ let n = new Blob([a], {
331
330
  type: "text/csv"
332
331
  });
333
- var h = document.createElement("a");
334
- h.download = "export.csv";
335
- var l = window.URL.createObjectURL(o);
336
- h.href = l, h.style.display = "none", document.body.appendChild(h), h.click(), document.body.removeChild(h);
332
+ var d = document.createElement("a");
333
+ d.download = "export.csv";
334
+ var l = window.URL.createObjectURL(n);
335
+ d.href = l, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
337
336
  }, at = function(e, a, t, i) {
338
337
  if (X(e), Lt(e), G(e, a, i), i && i.classList.contains("table--cta")) {
339
- const n = St(e);
340
- i.style.setProperty("--cta-width", `${n}rem`);
338
+ let o = function() {
339
+ Array.from(e.querySelectorAll("tr")).forEach((s, n) => {
340
+ let d = s.offsetHeight;
341
+ s.style.setProperty("--row-height", `${d}px`);
342
+ });
343
+ };
344
+ const r = St(e);
345
+ i.style.setProperty("--cta-width", `${r}rem`), new ResizeObserver(o).observe(e);
341
346
  }
342
347
  }, st = async function(e, a, t, i) {
343
- const n = (m, y, p) => y.split(/[\.\[\]\'\"]/).filter((f) => f).reduce((f, k) => f ? f[k] : p, m);
344
- let r = new FormData(a), s = new URLSearchParams(r).toString(), o = e.querySelectorAll("thead tr th"), h = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
348
+ const o = (m, y, p) => y.split(/[\.\[\]\'\"]/).filter((f) => f).reduce((f, k) => f ? f[k] : p, m);
349
+ let r = new FormData(a), s = new URLSearchParams(r).toString(), n = e.querySelectorAll("thead tr th"), d = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
345
350
  i.classList.add("table--loading"), window.controller || (window.controller = []), window.controller[l] && window.controller[l].abort(), window.controller[l] = new AbortController();
346
351
  const { signal: b } = controller[l];
347
352
  try {
@@ -355,39 +360,39 @@ const _t = /* @__PURE__ */ S(bt, [["render", gt]]), vt = function(e) {
355
360
  "X-Requested-With": "XMLHttpRequest"
356
361
  })
357
362
  }).then((m) => m.json()).then((m) => {
358
- let y = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", p = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", f = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", k = n(m, p, 1), C = n(m, f, 1), P = n(m, y), z = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
359
- if (P ? (h.innerHTML = "", P.forEach((E, V) => {
363
+ let y = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", p = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", f = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", k = o(m, p, 1), C = o(m, f, 1), P = o(m, y), I = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
364
+ if (P ? (d.innerHTML = "", P.forEach((E, V) => {
360
365
  var L = document.createElement("tr");
361
- o.forEach((v, $) => {
366
+ n.forEach((v, $) => {
362
367
  let w = "";
363
368
  var D = document.createElement("td");
364
369
  if (D.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
365
370
  var N = v.getAttribute("data-output");
366
371
  w = N.replace(new RegExp(/{(.*?)}/, "gm"), function(Q) {
367
- return n(E, Q.replace("{", "").replace("}", ""));
372
+ return o(E, Q.replace("{", "").replace("}", ""));
368
373
  });
369
374
  }
370
375
  if (v.hasAttribute("data-output-array")) {
371
376
  var N = v.getAttribute("data-output");
372
- let nt = n(E, N.replace("{", "").replace("}", ""));
373
- w = "", nt.forEach((Y, ci) => {
374
- let ot = v.getAttribute("data-output-array"), F = "";
377
+ let ot = o(E, N.replace("{", "").replace("}", ""));
378
+ w = "", ot.forEach((Y, ci) => {
379
+ let nt = v.getAttribute("data-output-array"), F = "";
375
380
  if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
376
- const j = n(Y, v.getAttribute("data-output-array-property")), ct = JSON.parse(v.getAttribute("data-output-array-transform"))[j];
377
- F = ot.replace(`{${v.getAttribute("data-output-array-property")}}`, ct);
381
+ const j = o(Y, v.getAttribute("data-output-array-property")), ct = JSON.parse(v.getAttribute("data-output-array-transform"))[j];
382
+ F = nt.replace(`{${v.getAttribute("data-output-array-property")}}`, ct);
378
383
  }
379
384
  F = F.replace(new RegExp(/{(.*?)}/, "gm"), function(j) {
380
- return n(Y, j.replace("{", "").replace("}", ""));
385
+ return o(Y, j.replace("{", "").replace("}", ""));
381
386
  }), w += F;
382
387
  });
383
388
  }
384
389
  v.hasAttribute("data-transform") && (w = JSON.parse(v.getAttribute("data-transform"))[w], !w && v.hasAttribute("data-default") && (w = v.getAttribute("data-default"))), D.innerHTML = w, L.appendChild(D);
385
- }), h.appendChild(L);
386
- }), tt(e, a), i.setAttribute("data-total", parseInt(k)), i.setAttribute("data-page", parseInt(C)), i.setAttribute("data-pages", Math.ceil(i.getAttribute("data-total") / i.getAttribute("data-show"))), at(e, a, t, i), K(i, t), parseInt(k) == 0 && (h.innerHTML = `<tr><td colspan="100%"><span>${z}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
390
+ }), d.appendChild(L);
391
+ }), tt(e, a), i.setAttribute("data-total", parseInt(k)), i.setAttribute("data-page", parseInt(C)), i.setAttribute("data-pages", Math.ceil(i.getAttribute("data-total") / i.getAttribute("data-show"))), at(e, a, t, i), K(i, t), parseInt(k) == 0 && (d.innerHTML = `<tr><td colspan="100%"><span>${I}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
387
392
  event: "Ajax table loaded",
388
393
  url: l,
389
394
  formData: s
390
- })) : h.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
395
+ })) : d.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
391
396
  const E = new XMLHttpRequest();
392
397
  E.open("GET", `${window.location.href}?ajax=true&${s}`), E.send();
393
398
  }
@@ -409,8 +414,8 @@ class Ht extends HTMLElement {
409
414
  constructor() {
410
415
  super(), this.attachShadow({ mode: "open" });
411
416
  const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = this.classList.contains("table--cta"), i = this.classList.contains("table--export");
412
- let n = this.classList.toString();
413
- n = n.replace("table--cta", "");
417
+ let o = this.classList.toString();
418
+ o = o.replace("table--cta", ""), o = o.replace("table--loading", "");
414
419
  const r = document.createElement("template");
415
420
  r.innerHTML = `
416
421
  <style>
@@ -427,7 +432,7 @@ class Ht extends HTMLElement {
427
432
  }
428
433
  </style>
429
434
  ${t ? '<div class="table--cta">' : ""}
430
- <div class="table__wrapper ${n}">
435
+ <div class="table__wrapper ${o}">
431
436
  <slot></slot>
432
437
  </div>
433
438
  ${t ? "</div>" : ""}
@@ -474,27 +479,27 @@ const Mt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Et = (e) => e.replace(
474
479
  },
475
480
  updated() {
476
481
  }
477
- }, Rt = { key: 0 }, Pt = { key: 0 }, It = ["data-row-id"], zt = ["innerHTML"];
478
- function Ft(e, a, t, i, n, r) {
479
- return d(), u("iam-table", null, [
480
- t.fields ? (d(), u("table", Rt, [
482
+ }, Rt = { key: 0 }, Pt = { key: 0 }, zt = ["data-row-id"], It = ["innerHTML"];
483
+ function Ft(e, a, t, i, o, r) {
484
+ return u(), h("iam-table", null, [
485
+ t.fields ? (u(), h("table", Rt, [
481
486
  c("thead", null, [
482
487
  c("tr", null, [
483
- (d(!0), u(T, null, H(t.fields, (s) => (d(), u("th", {
488
+ (u(!0), h(T, null, H(t.fields, (s) => (u(), h("th", {
484
489
  key: s.key
485
490
  }, q(r.cellHeading(s.key)), 1))), 128))
486
491
  ])
487
492
  ]),
488
- t.items ? (d(), u("tbody", Pt, [
489
- (d(!0), u(T, null, H(t.items, (s, o) => (d(), u("tr", {
490
- key: o,
493
+ t.items ? (u(), h("tbody", Pt, [
494
+ (u(!0), h(T, null, H(t.items, (s, n) => (u(), h("tr", {
495
+ key: n,
491
496
  "data-row-id": s.rowid
492
497
  }, [
493
- (d(!0), u(T, null, H(Object.fromEntries(Object.entries(s).filter(([h]) => h !== "rowid")), (h, l) => (d(), u("td", {
498
+ (u(!0), h(T, null, H(Object.fromEntries(Object.entries(s).filter(([d]) => d !== "rowid")), (d, l) => (u(), h("td", {
494
499
  key: l,
495
- innerHTML: h
496
- }, null, 8, zt))), 128))
497
- ], 8, It))), 128))
500
+ innerHTML: d
501
+ }, null, 8, It))), 128))
502
+ ], 8, zt))), 128))
498
503
  ])) : g("", !0)
499
504
  ])) : _(e.$slots, "default", { key: 1 })
500
505
  ]);
@@ -689,32 +694,32 @@ const it = /* @__PURE__ */ S(Nt, [["render", Ft]]), Bt = {
689
694
  }, Gt = ["type", "name", "id", "pattern", "list"], Qt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Yt = {
690
695
  key: 6,
691
696
  class: "input-group"
692
- }, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], te = ["value"], ee = ["id"], ae = ["value"], se = ["type", "name", "id"], ie = ["for", "innerHTML"], re = ["type", "name", "id"], le = ["for", "innerHTML"], ne = ["innerHTML"];
693
- function oe(e, a, t, i, n, r) {
694
- return d(), u("div", {
697
+ }, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], te = ["value"], ee = ["id"], ae = ["value"], se = ["type", "name", "id"], ie = ["for", "innerHTML"], re = ["type", "name", "id"], le = ["for", "innerHTML"], oe = ["innerHTML"];
698
+ function ne(e, a, t, i, o, r) {
699
+ return u(), h("div", {
695
700
  class: A(r.wrapperClass()),
696
701
  ref: "wrapper"
697
702
  }, [
698
- r.needsLabel() ? (d(), u("label", {
703
+ r.needsLabel() ? (u(), h("label", {
699
704
  key: 0,
700
705
  class: A(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
701
706
  for: t.id,
702
707
  innerHTML: r.displayLabel(),
703
708
  title: t.title
704
709
  }, null, 10, Vt)) : g("", !0),
705
- t.prefix ? (d(), u("span", {
710
+ t.prefix ? (u(), h("span", {
706
711
  key: 1,
707
712
  class: A(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
708
713
  innerHTML: t.prefix,
709
714
  role: "presentation"
710
715
  }, null, 10, jt)) : g("", !0),
711
- t.suffix ? (d(), u("span", {
716
+ t.suffix ? (u(), h("span", {
712
717
  key: 2,
713
718
  class: A(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
714
719
  innerHTML: t.suffix,
715
720
  role: "presentation"
716
721
  }, null, 10, Ot)) : g("", !0),
717
- r.isInput() ? I((d(), u("input", M({
722
+ r.isInput() ? z((u(), h("input", M({
718
723
  key: 3,
719
724
  "onUpdate:modelValue": a[0] || (a[0] = (s) => r.inputVal = s),
720
725
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -728,7 +733,7 @@ function oe(e, a, t, i, n, r) {
728
733
  }), null, 16, Wt)), [
729
734
  [O, r.inputVal]
730
735
  ]) : g("", !0),
731
- t.type == "textarea" ? I((d(), u("textarea", M({
736
+ t.type == "textarea" ? z((u(), h("textarea", M({
732
737
  key: 4,
733
738
  "onUpdate:modelValue": a[2] || (a[2] = (s) => r.inputVal = s),
734
739
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -739,8 +744,8 @@ function oe(e, a, t, i, n, r) {
739
744
  }, e.$attrs), null, 16, Ut)), [
740
745
  [dt, r.inputVal]
741
746
  ]) : g("", !0),
742
- t.type == "range" ? (d(), u("div", Kt, [
743
- I(c("input", M({
747
+ t.type == "range" ? (u(), h("div", Kt, [
748
+ z(c("input", M({
744
749
  "onUpdate:modelValue": a[3] || (a[3] = (s) => r.inputVal = s),
745
750
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
746
751
  type: t.type,
@@ -753,8 +758,8 @@ function oe(e, a, t, i, n, r) {
753
758
  ]),
754
759
  c("output", Qt, q(t.value), 1)
755
760
  ])) : g("", !0),
756
- t.type == "color" ? (d(), u("div", Yt, [
757
- I(c("input", M({
761
+ t.type == "color" ? (u(), h("div", Yt, [
762
+ z(c("input", M({
758
763
  "onUpdate:modelValue": a[4] || (a[4] = (s) => r.inputVal = s),
759
764
  class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
760
765
  type: t.type,
@@ -767,7 +772,7 @@ function oe(e, a, t, i, n, r) {
767
772
  ]),
768
773
  c("output", Jt, q(t.value ? e.vale : "#000000"), 1)
769
774
  ])) : g("", !0),
770
- t.type == "select" ? I((d(), u("select", M({
775
+ t.type == "select" ? z((u(), h("select", M({
771
776
  key: 7,
772
777
  "onUpdate:modelValue": a[5] || (a[5] = (s) => r.inputVal = s),
773
778
  class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -776,36 +781,36 @@ function oe(e, a, t, i, n, r) {
776
781
  id: t.id,
777
782
  pattern: r.needPattern()
778
783
  }, e.$attrs), [
779
- (d(!0), u(T, null, H(t.options, (s, o) => (d(), u("option", {
780
- key: o,
784
+ (u(!0), h(T, null, H(t.options, (s, n) => (u(), h("option", {
785
+ key: n,
781
786
  value: s.value
782
787
  }, q(s.display ? s.display : s.value), 9, te))), 128))
783
788
  ], 16, Xt)), [
784
789
  [ut, r.inputVal]
785
790
  ]) : g("", !0),
786
- r.allowDatalist() ? (d(), u("datalist", {
791
+ r.allowDatalist() ? (u(), h("datalist", {
787
792
  key: 8,
788
793
  id: t.id + "-list"
789
794
  }, [
790
- (d(!0), u(T, null, H(t.options, (s, o) => (d(), u("option", {
791
- key: o,
795
+ (u(!0), h(T, null, H(t.options, (s, n) => (u(), h("option", {
796
+ key: n,
792
797
  value: s.value
793
798
  }, q(s.value), 9, ae))), 128))
794
799
  ], 8, ee)) : g("", !0),
795
- t.type == "checkbox" || t.type == "radio" ? (d(), u("input", M({
800
+ t.type == "checkbox" || t.type == "radio" ? (u(), h("input", M({
796
801
  key: 9,
797
802
  class: "form-check-input",
798
803
  type: t.type,
799
804
  name: t.name ? t.name : t.id,
800
805
  id: t.id
801
806
  }, e.$attrs), null, 16, se)) : g("", !0),
802
- t.type == "checkbox" || t.type == "radio" ? (d(), u("label", {
807
+ t.type == "checkbox" || t.type == "radio" ? (u(), h("label", {
803
808
  key: 10,
804
809
  class: A(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
805
810
  for: t.id,
806
811
  innerHTML: t.label
807
812
  }, null, 10, ie)) : g("", !0),
808
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (d(), u("input", M({
813
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), h("input", M({
809
814
  key: 11,
810
815
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
811
816
  type: t.type.replace("-btn", ""),
@@ -813,22 +818,22 @@ function oe(e, a, t, i, n, r) {
813
818
  name: t.name ? t.name : t.id,
814
819
  id: t.id
815
820
  }, e.$attrs), null, 16, re)) : g("", !0),
816
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (d(), u("label", {
821
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), h("label", {
817
822
  key: 12,
818
823
  class: A(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
819
824
  for: t.id,
820
825
  innerHTML: t.label,
821
826
  onClick: a[6] || (a[6] = (...s) => r.clickEvent && r.clickEvent(...s))
822
827
  }, null, 10, le)) : g("", !0),
823
- t.errormsg ? (d(), u("p", {
828
+ t.errormsg ? (u(), h("p", {
824
829
  key: 13,
825
830
  class: "invalid-feedback mb-0",
826
831
  innerHTML: t.errormsg
827
- }, null, 8, ne)) : g("", !0),
832
+ }, null, 8, oe)) : g("", !0),
828
833
  _(e.$slots, "default")
829
834
  ], 2);
830
835
  }
831
- const B = /* @__PURE__ */ S(Bt, [["render", oe]]), ce = {
836
+ const B = /* @__PURE__ */ S(Bt, [["render", ne]]), ce = {
832
837
  components: {
833
838
  Input: B
834
839
  },
@@ -858,9 +863,9 @@ const B = /* @__PURE__ */ S(Bt, [["render", oe]]), ce = {
858
863
  "data-delete": ""
859
864
  }, "Delete")
860
865
  ], -1), fe = ["data-maxfiles"];
861
- function be(e, a, t, i, n, r) {
866
+ function be(e, a, t, i, o, r) {
862
867
  const s = R("Input");
863
- return d(), u("div", de, [
868
+ return u(), h("div", de, [
864
869
  c("div", ue, [
865
870
  c("div", {
866
871
  class: A(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
@@ -898,10 +903,10 @@ function ye(e) {
898
903
  i.classList.add("accordion-header"), i.classList.add("accordion-button"), i.classList.add("h4");
899
904
  }), !e.classList.contains("accordion--keep-open")) {
900
905
  const i = e.querySelectorAll(":scope > details");
901
- i.forEach((n) => {
902
- n.addEventListener("click", () => {
906
+ i.forEach((o) => {
907
+ o.addEventListener("click", () => {
903
908
  i.forEach((r) => {
904
- r !== n && r.removeAttribute("open");
909
+ r !== o && r.removeAttribute("open");
905
910
  });
906
911
  });
907
912
  });
@@ -939,8 +944,8 @@ const ge = {
939
944
  mounted() {
940
945
  }
941
946
  }, _e = { ref: "wrapper" };
942
- function ve(e, a, t, i, n, r) {
943
- return d(), u("iam-accordion", _e, [
947
+ function ve(e, a, t, i, o, r) {
948
+ return u(), h("iam-accordion", _e, [
944
949
  _(e.$slots, "default")
945
950
  ], 512);
946
951
  }
@@ -980,15 +985,15 @@ const mi = /* @__PURE__ */ S(ge, [["render", ve]]), Ae = {
980
985
  };
981
986
  }
982
987
  }, we = ["id"], Se = ["classList"];
983
- function Le(e, a, t, i, n, r) {
984
- return d(), u("details", {
988
+ function Le(e, a, t, i, o, r) {
989
+ return u(), h("details", {
985
990
  id: r.createID(t.title)
986
991
  }, [
987
992
  c("summary", {
988
993
  classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
989
994
  }, [
990
995
  ht(q(t.title), 1),
991
- t.badge ? (d(), u("span", {
996
+ t.badge ? (u(), h("span", {
992
997
  key: 0,
993
998
  class: A(`badge bg-${t.badgecolour}`)
994
999
  }, q(t.badge), 3)) : g("", !0)
@@ -1014,8 +1019,8 @@ const fi = /* @__PURE__ */ S(Ae, [["render", Le]]), ke = {
1014
1019
  }
1015
1020
  }
1016
1021
  }, xe = { class: "container" }, qe = { class: "row" }, $e = { class: "col-sm-6" }, Te = { class: "pt-5 pb-3 px-4" }, He = { class: "col-sm-6 col-md-5 ms-auto" }, Me = ["src"];
1017
- function Ee(e, a, t, i, n, r) {
1018
- return d(), u("div", xe, [
1022
+ function Ee(e, a, t, i, o, r) {
1023
+ return u(), h("div", xe, [
1019
1024
  c("div", {
1020
1025
  class: A("bg-" + t.background + " mb-4")
1021
1026
  }, [
@@ -1027,7 +1032,7 @@ function Ee(e, a, t, i, n, r) {
1027
1032
  ])
1028
1033
  ]),
1029
1034
  c("div", He, [
1030
- t.image ? (d(), u("img", {
1035
+ t.image ? (u(), h("img", {
1031
1036
  key: 0,
1032
1037
  src: t.image,
1033
1038
  alt: "",
@@ -1040,7 +1045,7 @@ function Ee(e, a, t, i, n, r) {
1040
1045
  }
1041
1046
  const bi = /* @__PURE__ */ S(ke, [["render", Ee]]);
1042
1047
  /*!
1043
- * iamKey v3.7.2
1048
+ * iamKey v3.7.3
1044
1049
  * Copyright 2022-2023 iamproperty
1045
1050
  */
1046
1051
  class Ce extends HTMLElement {
@@ -1091,8 +1096,8 @@ class Ce extends HTMLElement {
1091
1096
  break;
1092
1097
  }
1093
1098
  case "class": {
1094
- let n = this.classList.toString();
1095
- this.querySelector('[class*="fa-"]') && (n += " card--has-icon"), this.shadowRoot.querySelector(".card").setAttribute("class", `card ${n}`);
1099
+ let o = this.classList.toString();
1100
+ this.querySelector('[class*="fa-"]') && (o += " card--has-icon"), this.shadowRoot.querySelector(".card").setAttribute("class", `card ${o}`);
1096
1101
  break;
1097
1102
  }
1098
1103
  }
@@ -1106,8 +1111,8 @@ const De = {
1106
1111
  });
1107
1112
  }
1108
1113
  };
1109
- function Ne(e, a, t, i, n, r) {
1110
- return d(), u("iam-card", null, [
1114
+ function Ne(e, a, t, i, o, r) {
1115
+ return u(), h("iam-card", null, [
1111
1116
  _(e.$slots, "default")
1112
1117
  ]);
1113
1118
  }
@@ -1116,43 +1121,43 @@ function Pe(e) {
1116
1121
  var a;
1117
1122
  let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
1118
1123
  e.getAttribute("data-cols");
1119
- let n = e.getAttribute("data-sm-cols"), r = e.getAttribute("data-md-cols");
1124
+ let o = e.getAttribute("data-sm-cols"), r = e.getAttribute("data-md-cols");
1120
1125
  e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(s) {
1121
1126
  clearTimeout(a), a = setTimeout(function() {
1122
- let o = t.clientWidth, h = t.scrollWidth, l = t.scrollLeft, b = Math.round(l / h * i) + 1, m = e.querySelector(".carousel__item:last-child").offsetLeft;
1127
+ let n = t.clientWidth, d = t.scrollWidth, l = t.scrollLeft, b = Math.round(l / d * i) + 1, m = e.querySelector(".carousel__item:last-child").offsetLeft;
1123
1128
  Array.from(e.querySelectorAll(".carousel__controls a")).forEach((y, p) => {
1124
1129
  y.classList.remove("active");
1125
- }), e.querySelector(".control-" + b).classList.add("active"), b == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + o > m ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1130
+ }), e.querySelector(".control-" + b).classList.add("active"), b == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n > m ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1126
1131
  }, 100);
1127
1132
  }, !1), e.addEventListener("click", function(s) {
1128
- for (var o = s.target; o && o != this; o = o.parentNode)
1129
- if (o.matches(".carousel__controls a")) {
1133
+ for (var n = s.target; n && n != this; n = n.parentNode)
1134
+ if (n.matches(".carousel__controls a")) {
1130
1135
  s.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((l, b) => {
1131
1136
  l.classList.remove("active");
1132
- }), o.classList.add("active");
1133
- const h = document.querySelector(o.getAttribute("href"));
1137
+ }), n.classList.add("active");
1138
+ const d = document.querySelector(n.getAttribute("href"));
1134
1139
  t.scroll({
1135
1140
  top: 0,
1136
- left: h.offsetLeft,
1141
+ left: d.offsetLeft,
1137
1142
  behavior: "smooth"
1138
1143
  });
1139
1144
  break;
1140
1145
  }
1141
1146
  }, !1), e.addEventListener("click", function(s) {
1142
- for (var o = s.target; o && o != this; o = o.parentNode)
1143
- if (o.matches(".btn-next, .btn-prev")) {
1147
+ for (var n = s.target; n && n != this; n = n.parentNode)
1148
+ if (n.matches(".btn-next, .btn-prev")) {
1144
1149
  s.preventDefault();
1145
- let h = o.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1150
+ let d = n.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1146
1151
  t.scroll({
1147
1152
  top: 0,
1148
- left: h,
1153
+ left: d,
1149
1154
  behavior: "smooth"
1150
1155
  });
1151
1156
  break;
1152
1157
  }
1153
- }, !1), i == 1 && e.classList.add("hide-btns"), n >= i && e.classList.add("hide-sm-btns"), r >= i && e.classList.add("hide-md-btns");
1158
+ }, !1), i == 1 && e.classList.add("hide-btns"), o >= i && e.classList.add("hide-sm-btns"), r >= i && e.classList.add("hide-md-btns");
1154
1159
  }
1155
- const Ie = {
1160
+ const ze = {
1156
1161
  components: {
1157
1162
  Card: Re
1158
1163
  },
@@ -1231,7 +1236,7 @@ const Ie = {
1231
1236
  Pe(this.$refs.wrapper);
1232
1237
  });
1233
1238
  }
1234
- }, ze = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Fe = { class: "carousel__wrapper" }, Be = { class: "carousel__inner" }, Ve = ["id"], je = ["innerHTML", "id"], Oe = ["href"], We = /* @__PURE__ */ c("button", {
1239
+ }, Ie = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Fe = { class: "carousel__wrapper" }, Be = { class: "carousel__inner" }, Ve = ["id"], je = ["innerHTML", "id"], Oe = ["href"], We = /* @__PURE__ */ c("button", {
1235
1240
  class: "btn btn-prev",
1236
1241
  "data-go": "0",
1237
1242
  disabled: ""
@@ -1239,11 +1244,11 @@ const Ie = {
1239
1244
  class: "btn btn-next",
1240
1245
  "data-go": "2"
1241
1246
  }, "Next", -1);
1242
- function Ke(e, a, t, i, n, r) {
1247
+ function Ke(e, a, t, i, o, r) {
1243
1248
  const s = R("Card");
1244
- return d(), u("div", {
1249
+ return u(), h("div", {
1245
1250
  class: "container carousel",
1246
- id: "carousel" + n.id,
1251
+ id: "carousel" + o.id,
1247
1252
  ref: "wrapper",
1248
1253
  "data-cols": t.cols,
1249
1254
  "data-sm-cols": t.smcols,
@@ -1252,16 +1257,16 @@ function Ke(e, a, t, i, n, r) {
1252
1257
  _(e.$slots, "default"),
1253
1258
  c("div", Fe, [
1254
1259
  c("div", Be, [
1255
- t.type == "card" ? (d(), u("div", {
1260
+ t.type == "card" ? (u(), h("div", {
1256
1261
  key: 0,
1257
1262
  class: A(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1258
1263
  }, [
1259
- (d(!0), u(T, null, H(t.items, (o, h) => (d(), u("div", {
1264
+ (u(!0), h(T, null, H(t.items, (n, d) => (u(), h("div", {
1260
1265
  class: A(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1261
- key: h,
1262
- id: "carousel" + n.id + "slide" + (h + 1)
1266
+ key: d,
1267
+ id: "carousel" + o.id + "slide" + (d + 1)
1263
1268
  }, [
1264
- x(s, M(o, {
1269
+ x(s, M(n, {
1265
1270
  class: t.cardclass,
1266
1271
  type: t.cardtype,
1267
1272
  btnyype: t.btntype,
@@ -1271,33 +1276,33 @@ function Ke(e, a, t, i, n, r) {
1271
1276
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1272
1277
  ], 10, Ve))), 128))
1273
1278
  ], 2)) : g("", !0),
1274
- t.type != "card" ? (d(), u("div", {
1279
+ t.type != "card" ? (u(), h("div", {
1275
1280
  key: 1,
1276
1281
  class: A(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1277
1282
  }, [
1278
- (d(!0), u(T, null, H(t.items, (o, h) => (d(), u("div", {
1283
+ (u(!0), h(T, null, H(t.items, (n, d) => (u(), h("div", {
1279
1284
  class: A(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1280
- key: h,
1281
- innerHTML: r.content(o),
1282
- id: "carousel" + n.id + "slide" + (h + 1)
1285
+ key: d,
1286
+ innerHTML: r.content(n),
1287
+ id: "carousel" + o.id + "slide" + (d + 1)
1283
1288
  }, null, 10, je))), 128))
1284
1289
  ], 2)) : g("", !0)
1285
1290
  ]),
1286
1291
  c("div", {
1287
1292
  class: A(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1288
1293
  }, [
1289
- (d(!0), u(T, null, H(t.items, (o, h) => (d(), u("a", {
1290
- key: h,
1291
- href: "#carousel" + n.id + "slide" + (h + 1),
1292
- class: A(`control-${h + 1}`)
1293
- }, "Slide " + q(h + 1), 11, Oe))), 128))
1294
+ (u(!0), h(T, null, H(t.items, (n, d) => (u(), h("a", {
1295
+ key: d,
1296
+ href: "#carousel" + o.id + "slide" + (d + 1),
1297
+ class: A(`control-${d + 1}`)
1298
+ }, "Slide " + q(d + 1), 11, Oe))), 128))
1294
1299
  ], 2),
1295
1300
  We,
1296
1301
  Ue
1297
1302
  ])
1298
- ], 8, ze);
1303
+ ], 8, Ie);
1299
1304
  }
1300
- const yi = /* @__PURE__ */ S(Ie, [["render", Ke]]);
1305
+ const yi = /* @__PURE__ */ S(ze, [["render", Ke]]);
1301
1306
  window.dataLayer = window.dataLayer || [];
1302
1307
  window.dataLayer.push({
1303
1308
  event: "customElementRegistered",
@@ -1352,13 +1357,13 @@ const Qe = {
1352
1357
  }
1353
1358
  }
1354
1359
  }, Ye = ["image"], Ze = ["innerHTML"];
1355
- function Je(e, a, t, i, n, r) {
1356
- return d(), u("iam-header", {
1360
+ function Je(e, a, t, i, o, r) {
1361
+ return u(), h("iam-header", {
1357
1362
  class: "bg-secondary",
1358
1363
  image: t.image
1359
1364
  }, [
1360
1365
  _(e.$slots, "breadcrumb"),
1361
- t.title ? (d(), u("h1", {
1366
+ t.title ? (u(), h("h1", {
1362
1367
  key: 0,
1363
1368
  innerHTML: t.title
1364
1369
  }, null, 8, Ze)) : g("", !0),
@@ -1372,21 +1377,21 @@ function Xe(e) {
1372
1377
  if (i == 1)
1373
1378
  return !1;
1374
1379
  e.classList.add("testimonial--multi");
1375
- const n = function(r) {
1376
- const s = e.querySelector(".btn-next"), o = e.querySelector(".btn-prev");
1377
- s.setAttribute("data-go", r + 1), o.setAttribute("data-go", r - 1), s.removeAttribute("disabled"), o.removeAttribute("disabled"), r == 1 ? o.setAttribute("disabled", !0) : r == i && s.setAttribute("disabled", !0);
1380
+ const o = function(r) {
1381
+ const s = e.querySelector(".btn-next"), n = e.querySelector(".btn-prev");
1382
+ s.setAttribute("data-go", r + 1), n.setAttribute("data-go", r - 1), s.removeAttribute("disabled"), n.removeAttribute("disabled"), r == 1 ? n.setAttribute("disabled", !0) : r == i && s.setAttribute("disabled", !0);
1378
1383
  };
1379
1384
  t.addEventListener("scroll", function(r) {
1380
1385
  clearTimeout(a), a = setTimeout(function() {
1381
- let s = t.scrollWidth, o = t.scrollHeight, h = t.scrollLeft, l = t.scrollTop, b = Math.round(h / s * i) + 1;
1382
- h == 0 && l != 0 && (b = Math.round(l / o * i) + 1), e.setAttribute("data-show", b), n(b);
1386
+ let s = t.scrollWidth, n = t.scrollHeight, d = t.scrollLeft, l = t.scrollTop, b = Math.round(d / s * i) + 1;
1387
+ d == 0 && l != 0 && (b = Math.round(l / n * i) + 1), e.setAttribute("data-show", b), o(b);
1383
1388
  }, 300);
1384
1389
  }, !1), e.addEventListener("click", function(r) {
1385
1390
  for (var s = r.target; s && s != this; s = s.parentNode)
1386
1391
  if (s.matches("[data-go]")) {
1387
- let o = parseInt(s.getAttribute("data-go")), h = 0, l = 0, b = t.scrollWidth, m = t.scrollHeight;
1388
- b > m ? l = Math.floor(b * ((o - 1) / i)) : h = Math.floor(m * ((o - 1) / i)), t.scroll({
1389
- top: h,
1392
+ let n = parseInt(s.getAttribute("data-go")), d = 0, l = 0, b = t.scrollWidth, m = t.scrollHeight;
1393
+ b > m ? l = Math.floor(b * ((n - 1) / i)) : d = Math.floor(m * ((n - 1) / i)), t.scroll({
1394
+ top: d,
1390
1395
  left: l,
1391
1396
  behavior: "smooth"
1392
1397
  });
@@ -1424,17 +1429,17 @@ const ta = {
1424
1429
  "data-go": "2",
1425
1430
  class: "btn-next"
1426
1431
  }, "Next")
1427
- ], -1), na = { class: "col-md-7" }, oa = /* @__PURE__ */ c("h2", null, "What our customers think…", -1), ca = { class: "testimonial__content" }, da = ["innerHTML"], ua = ["innerHTML"], ha = { class: "testimonial__after" }, ma = /* @__PURE__ */ c("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1428
- function fa(e, a, t, i, n, r) {
1429
- return d(), u("div", ea, [
1432
+ ], -1), oa = { class: "col-md-7" }, na = /* @__PURE__ */ c("h2", null, "What our customers think…", -1), ca = { class: "testimonial__content" }, da = ["innerHTML"], ua = ["innerHTML"], ha = { class: "testimonial__after" }, ma = /* @__PURE__ */ c("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1433
+ function fa(e, a, t, i, o, r) {
1434
+ return u(), h("div", ea, [
1430
1435
  c("div", {
1431
1436
  class: A("bg-" + t.background)
1432
1437
  }, [
1433
1438
  c("div", aa, [
1434
1439
  c("div", sa, [
1435
1440
  c("div", ia, [
1436
- (d(!0), u(T, null, H(t.items, (s, o) => (d(), u("img", {
1437
- key: o,
1441
+ (u(!0), h(T, null, H(t.items, (s, n) => (u(), h("img", {
1442
+ key: n,
1438
1443
  src: s.image ? s.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1439
1444
  alt: "",
1440
1445
  class: A("h-100 w-100 object-cover" + (s.image ? "" : " opacity-0"))
@@ -1442,11 +1447,11 @@ function fa(e, a, t, i, n, r) {
1442
1447
  ]),
1443
1448
  la
1444
1449
  ]),
1445
- c("div", na, [
1446
- oa,
1450
+ c("div", oa, [
1451
+ na,
1447
1452
  c("div", ca, [
1448
- (d(!0), u(T, null, H(t.items, (s, o) => (d(), u("blockquote", {
1449
- key: o,
1453
+ (u(!0), h(T, null, H(t.items, (s, n) => (u(), h("blockquote", {
1454
+ key: n,
1450
1455
  class: A(s.class)
1451
1456
  }, [
1452
1457
  c("div", {
@@ -1629,9 +1634,9 @@ const ba = {
1629
1634
  value: "submit"
1630
1635
  }, "Search")
1631
1636
  ], -1);
1632
- function $a(e, a, t, i, n, r) {
1637
+ function $a(e, a, t, i, o, r) {
1633
1638
  const s = R("Input");
1634
- return d(), u("div", ya, [
1639
+ return u(), h("div", ya, [
1635
1640
  _(e.$slots, "default"),
1636
1641
  c("div", pa, [
1637
1642
  c("form", {
@@ -1643,13 +1648,13 @@ function $a(e, a, t, i, n, r) {
1643
1648
  x(s, {
1644
1649
  inputClass: "input--locations",
1645
1650
  modelValue: r.locationSet,
1646
- "onUpdate:modelValue": a[0] || (a[0] = (o) => r.locationSet = o),
1651
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => r.locationSet = n),
1647
1652
  label: "Location",
1648
1653
  id: "location",
1649
1654
  options: r.locationsList(),
1650
1655
  required: "",
1651
1656
  placeholder: "i.e. Newcastle or NE1",
1652
- onKeyupEvent: a[1] || (a[1] = (o) => r.locationKeyup(...arguments)),
1657
+ onKeyupEvent: a[1] || (a[1] = (n) => r.locationKeyup(...arguments)),
1653
1658
  ref: "search"
1654
1659
  }, null, 8, ["modelValue", "options"]),
1655
1660
  x(s, {
@@ -1822,10 +1827,10 @@ const Ha = {
1822
1827
  }, null, -1), Da = { class: "nav__mobile-bar" }, Na = { class: "container" }, Ra = { class: "row" }, Pa = {
1823
1828
  key: 0,
1824
1829
  class: "col mw-md-fit-content nav__logo"
1825
- }, Ia = {
1830
+ }, za = {
1826
1831
  key: 1,
1827
1832
  class: "col mw-md-fit-content nav__logo"
1828
- }, za = {
1833
+ }, Ia = {
1829
1834
  href: "/",
1830
1835
  class: "text-decoration-none mb-0"
1831
1836
  }, Fa = /* @__PURE__ */ c("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
@@ -1896,7 +1901,7 @@ const Ha = {
1896
1901
  }, is = { class: "container" }, rs = {
1897
1902
  key: 1,
1898
1903
  class: "nav__menu--search"
1899
- }, ls = { class: "bg-gradient pt-4" }, ns = { class: "container" }, os = {
1904
+ }, ls = { class: "bg-gradient pt-4" }, os = { class: "container" }, ns = {
1900
1905
  key: 0,
1901
1906
  class: "nav__menu--account"
1902
1907
  }, cs = { class: "container" }, ds = { class: "row mb-4" }, us = {
@@ -1911,9 +1916,9 @@ const Ha = {
1911
1916
  }, fs = /* @__PURE__ */ c("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1912
1917
  /* @__PURE__ */ c("label", { for: "showAccount" }, "Account")
1913
1918
  ], -1), bs = { class: "container" }, ys = /* @__PURE__ */ c("span", { class: "nav__bg" }, null, -1);
1914
- function ps(e, a, t, i, n, r) {
1919
+ function ps(e, a, t, i, o, r) {
1915
1920
  const s = R("Logo");
1916
- return d(), u("nav", {
1921
+ return u(), h("nav", {
1917
1922
  class: A(`nav${r.hasSecondarySlot ? " has-secondary" : ""}`),
1918
1923
  ref: "wrapper"
1919
1924
  }, [
@@ -1923,10 +1928,10 @@ function ps(e, a, t, i, n, r) {
1923
1928
  c("div", Da, [
1924
1929
  c("div", Na, [
1925
1930
  c("div", Ra, [
1926
- r.hasLogoSlot ? (d(), u("div", Pa, [
1931
+ r.hasLogoSlot ? (u(), h("div", Pa, [
1927
1932
  _(e.$slots, "logo")
1928
- ])) : (d(), u("div", Ia, [
1929
- c("a", za, [
1933
+ ])) : (u(), h("div", za, [
1934
+ c("a", Ia, [
1930
1935
  x(s, {
1931
1936
  id: t.logo,
1932
1937
  path: t.logopath,
@@ -1942,9 +1947,9 @@ function ps(e, a, t, i, n, r) {
1942
1947
  c("div", Ba, [
1943
1948
  c("div", Va, [
1944
1949
  c("div", ja, [
1945
- r.hasLogoSlot ? (d(), u("div", Oa, [
1950
+ r.hasLogoSlot ? (u(), h("div", Oa, [
1946
1951
  _(e.$slots, "logo")
1947
- ])) : (d(), u("div", Wa, [
1952
+ ])) : (u(), h("div", Wa, [
1948
1953
  c("a", Ua, [
1949
1954
  x(s, {
1950
1955
  id: t.logo,
@@ -1954,13 +1959,13 @@ function ps(e, a, t, i, n, r) {
1954
1959
  }, null, 8, ["id", "path", "desc"])
1955
1960
  ])
1956
1961
  ])),
1957
- r.hasSearchSlot ? (d(), u("div", Ka, Qa)) : g("", !0),
1962
+ r.hasSearchSlot ? (u(), h("div", Ka, Qa)) : g("", !0),
1958
1963
  Ya,
1959
1964
  c("div", Za, [
1960
1965
  _(e.$slots, "default")
1961
1966
  ]),
1962
- r.hasAccountSlot ? (d(), u("div", Ja, ts)) : g("", !0),
1963
- t.btnlink ? (d(), u("div", es, [
1967
+ r.hasAccountSlot ? (u(), h("div", Ja, ts)) : g("", !0),
1968
+ t.btnlink ? (u(), h("div", es, [
1964
1969
  c("a", {
1965
1970
  href: t.btnlink,
1966
1971
  class: "btn me-0",
@@ -1969,25 +1974,25 @@ function ps(e, a, t, i, n, r) {
1969
1974
  ])) : g("", !0)
1970
1975
  ])
1971
1976
  ]),
1972
- r.hasSecondarySlot ? (d(), u("div", ss, [
1977
+ r.hasSecondarySlot ? (u(), h("div", ss, [
1973
1978
  c("div", is, [
1974
1979
  _(e.$slots, "secondary")
1975
1980
  ])
1976
1981
  ])) : g("", !0),
1977
- r.hasSearchSlot ? (d(), u("div", rs, [
1982
+ r.hasSearchSlot ? (u(), h("div", rs, [
1978
1983
  c("div", ls, [
1979
- c("div", ns, [
1984
+ c("div", os, [
1980
1985
  _(e.$slots, "search")
1981
1986
  ])
1982
1987
  ])
1983
1988
  ])) : g("", !0)
1984
1989
  ]),
1985
- r.hasAccountSlot ? (d(), u("div", os, [
1990
+ r.hasAccountSlot ? (u(), h("div", ns, [
1986
1991
  c("div", cs, [
1987
1992
  c("div", ds, [
1988
- r.hasLogoSlot ? (d(), u("div", us, [
1993
+ r.hasLogoSlot ? (u(), h("div", us, [
1989
1994
  _(e.$slots, "logo")
1990
- ])) : (d(), u("div", hs, [
1995
+ ])) : (u(), h("div", hs, [
1991
1996
  c("a", ms, [
1992
1997
  x(s, {
1993
1998
  id: t.logo,
@@ -2025,13 +2030,13 @@ const gs = {
2025
2030
  key: 0,
2026
2031
  class: "h6 stepper__start"
2027
2032
  }, ws = { class: "list-unstyled" }, Ss = { class: "h6 stepper__end" };
2028
- function Ls(e, a, t, i, n, r) {
2029
- return d(), u("div", _s, [
2033
+ function Ls(e, a, t, i, o, r) {
2034
+ return u(), h("div", _s, [
2030
2035
  c("nav", {
2031
2036
  class: "stepper",
2032
2037
  "aria-label": t.label ? t.label : "Progress"
2033
2038
  }, [
2034
- t.label ? (d(), u("span", As, q(t.label), 1)) : g("", !0),
2039
+ t.label ? (u(), h("span", As, q(t.label), 1)) : g("", !0),
2035
2040
  c("ol", ws, [
2036
2041
  _(e.$slots, "default")
2037
2042
  ]),
@@ -2059,8 +2064,8 @@ const Ai = /* @__PURE__ */ S(gs, [["render", Ls]]), ks = {
2059
2064
  key: 0,
2060
2065
  class: "visually-hidden"
2061
2066
  };
2062
- function $s(e, a, t, i, n, r) {
2063
- return d(), u("li", null, [
2067
+ function $s(e, a, t, i, o, r) {
2068
+ return u(), h("li", null, [
2064
2069
  c("a", {
2065
2070
  href: t.url,
2066
2071
  class: A(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
@@ -2069,7 +2074,7 @@ function $s(e, a, t, i, n, r) {
2069
2074
  c("span", null, [
2070
2075
  _(e.$slots, "default")
2071
2076
  ]),
2072
- t.status ? (d(), u("em", qs, " - status: " + q(t.status), 1)) : g("", !0)
2077
+ t.status ? (u(), h("em", qs, " - status: " + q(t.status), 1)) : g("", !0)
2073
2078
  ], 10, xs)
2074
2079
  ]);
2075
2080
  }
@@ -2077,33 +2082,33 @@ const wi = /* @__PURE__ */ S(ks, [["render", $s]]), Ts = function(e) {
2077
2082
  const a = e.querySelectorAll(":scope > details");
2078
2083
  e.querySelectorAll(":scope > details > summary");
2079
2084
  let t = e.querySelector(":scope > .tabs__links");
2080
- e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t || (t = document.createElement("div"), t.classList.add("tabs__links"), e.prepend(t)), a.forEach((i, n) => {
2085
+ e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t || (t = document.createElement("div"), t.classList.add("tabs__links"), e.prepend(t)), a.forEach((i, o) => {
2081
2086
  let r = i.querySelector(":scope > summary");
2082
2087
  r.classList.add("visually-hidden");
2083
2088
  let s = document.createElement("button");
2084
- i.hasAttribute("id") && (s = document.createElement("a"), s.setAttribute("href", `#${i.getAttribute("id")}`)), i.hasAttribute("open") && s.setAttribute("aria-pressed", !0), s.innerHTML = `${r.innerText}`, s.classList.add("link"), s.setAttribute("data-index", n), s.setAttribute("tabindex", "-1"), t.appendChild(s);
2089
+ i.hasAttribute("id") && (s = document.createElement("a"), s.setAttribute("href", `#${i.getAttribute("id")}`)), i.hasAttribute("open") && s.setAttribute("aria-pressed", !0), s.innerHTML = `${r.innerText}`, s.classList.add("link"), s.setAttribute("data-index", o), s.setAttribute("tabindex", "-1"), t.appendChild(s);
2085
2090
  });
2086
2091
  }, Hs = function(e) {
2087
2092
  let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), i = e.querySelectorAll(":scope .tabs__links > .link");
2088
- e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((n) => {
2089
- n.addEventListener("click", (r) => {
2093
+ e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((o) => {
2094
+ o.addEventListener("click", (r) => {
2090
2095
  r.preventDefault(), i.forEach((s) => {
2091
- let o = s == n;
2092
- s.setAttribute("aria-pressed", o);
2093
- }), a.forEach((s, o) => {
2094
- let h = n.getAttribute("data-index") == o;
2095
- h ? s.setAttribute("open", h) : s.removeAttribute("open");
2096
- }), n.hasAttribute("href") && history.pushState(void 0, void 0, n.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
2096
+ let n = s == o;
2097
+ s.setAttribute("aria-pressed", n);
2098
+ }), a.forEach((s, n) => {
2099
+ let d = o.getAttribute("data-index") == n;
2100
+ d ? s.setAttribute("open", d) : s.removeAttribute("open");
2101
+ }), o.hasAttribute("href") && history.pushState(void 0, void 0, o.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
2097
2102
  event: "openTab",
2098
- tabTitle: n.textContent
2103
+ tabTitle: o.textContent
2099
2104
  });
2100
2105
  });
2101
- }), t.forEach((n, r) => {
2102
- n.addEventListener("focus", (s) => {
2103
- i.forEach((o) => {
2104
- o.classList.remove("focus");
2106
+ }), t.forEach((o, r) => {
2107
+ o.addEventListener("focus", (s) => {
2108
+ i.forEach((n) => {
2109
+ n.classList.remove("focus");
2105
2110
  }), i[r].classList.add("focus");
2106
- }), n.addEventListener("click", (s) => {
2111
+ }), o.addEventListener("click", (s) => {
2107
2112
  s.preventDefault(), i[r].click();
2108
2113
  });
2109
2114
  });
@@ -2147,8 +2152,8 @@ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs"
2147
2152
  const Ds = {
2148
2153
  name: "Tabs"
2149
2154
  }, Ns = { ref: "wrapper" };
2150
- function Rs(e, a, t, i, n, r) {
2151
- return d(), u("iam-tabs", Ns, [
2155
+ function Rs(e, a, t, i, o, r) {
2156
+ return u(), h("iam-tabs", Ns, [
2152
2157
  _(e.$slots, "default")
2153
2158
  ], 512);
2154
2159
  }
@@ -2174,10 +2179,10 @@ const Si = /* @__PURE__ */ S(Ds, [["render", Rs]]), Ps = {
2174
2179
  console.log(e);
2175
2180
  }
2176
2181
  }
2177
- }, Is = { class: "tab" }, zs = ["innerHTML"];
2178
- function Fs(e, a, t, i, n, r) {
2179
- return d(), u("details", Is, [
2180
- c("summary", { innerHTML: t.title }, null, 8, zs),
2182
+ }, zs = { class: "tab" }, Is = ["innerHTML"];
2183
+ function Fs(e, a, t, i, o, r) {
2184
+ return u(), h("details", zs, [
2185
+ c("summary", { innerHTML: t.title }, null, 8, Is),
2181
2186
  _(e.$slots, "default")
2182
2187
  ]);
2183
2188
  }
@@ -2235,8 +2240,8 @@ const Vs = {
2235
2240
  "data-bs-dismiss": "alert",
2236
2241
  "aria-label": "Close"
2237
2242
  };
2238
- function Ws(e, a, t, i, n, r) {
2239
- return d(), u("div", {
2243
+ function Ws(e, a, t, i, o, r) {
2244
+ return u(), h("div", {
2240
2245
  class: A(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
2241
2246
  ref: "wrapper",
2242
2247
  "data-timeout": t.timeout,
@@ -2246,7 +2251,7 @@ function Ws(e, a, t, i, n, r) {
2246
2251
  class: A(`alert__inner bg-${t.colour}`),
2247
2252
  role: "alert"
2248
2253
  }, [
2249
- t.dismissible ? (d(), u("button", Os)) : g("", !0),
2254
+ t.dismissible ? (u(), h("button", Os)) : g("", !0),
2250
2255
  _(e.$slots, "default")
2251
2256
  ], 2)
2252
2257
  ], 14, js);
@@ -2271,8 +2276,8 @@ const Us = {
2271
2276
  const a = new FormData(e.target);
2272
2277
  let t = /* @__PURE__ */ new Date();
2273
2278
  const i = t.getFullYear();
2274
- let n = t.getMonth() + 1, r = t.getDate();
2275
- r < 10 && (r = "0" + r), n < 10 && (n = "0" + n), t = r + "/" + n + "/" + i, this.itemsData.unshift({
2279
+ let o = t.getMonth() + 1, r = t.getDate();
2280
+ r < 10 && (r = "0" + r), o < 10 && (o = "0" + o), t = r + "/" + o + "/" + i, this.itemsData.unshift({
2276
2281
  date_added: t,
2277
2282
  user: a.get("user"),
2278
2283
  note: a.get("addNote")
@@ -2301,29 +2306,29 @@ const Us = {
2301
2306
  }
2302
2307
  }
2303
2308
  }, Ks = { class: "container note-feed mb-2" }, Gs = ["innerHTML"], Qs = ["action", "method"], Ys = ["value"], Zs = /* @__PURE__ */ c("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2304
- function Js(e, a, t, i, n, r) {
2305
- const s = R("Table"), o = R("Input");
2306
- return d(), u("div", Ks, [
2307
- t.title ? (d(), u("span", {
2309
+ function Js(e, a, t, i, o, r) {
2310
+ const s = R("Table"), n = R("Input");
2311
+ return u(), h("div", Ks, [
2312
+ t.title ? (u(), h("span", {
2308
2313
  key: 0,
2309
2314
  class: "h3",
2310
2315
  innerHTML: t.title
2311
2316
  }, null, 8, Gs)) : g("", !0),
2312
2317
  x(s, M({
2313
2318
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2314
- items: n.itemsData
2319
+ items: o.itemsData
2315
2320
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2316
2321
  c("form", {
2317
2322
  action: t.action,
2318
2323
  method: t.method,
2319
- onSubmit: a[0] || (a[0] = ft((h) => r.submitForm(...arguments), ["prevent"]))
2324
+ onSubmit: a[0] || (a[0] = ft((d) => r.submitForm(...arguments), ["prevent"]))
2320
2325
  }, [
2321
2326
  c("input", {
2322
2327
  type: "hidden",
2323
2328
  value: t.user,
2324
2329
  name: "user"
2325
2330
  }, null, 8, Ys),
2326
- x(o, {
2331
+ x(n, {
2327
2332
  id: "addNote",
2328
2333
  type: "textarea",
2329
2334
  label: "Add note",
@@ -2336,19 +2341,19 @@ function Js(e, a, t, i, n, r) {
2336
2341
  }
2337
2342
  const xi = /* @__PURE__ */ S(Us, [["render", Js]]);
2338
2343
  function Xs(e, a) {
2339
- function t(i, n) {
2340
- let r = !1, s = n.getAttribute("name");
2341
- s.includes("[]") && (s = s.replace("[]", `[${n.value}]`));
2342
- let o = i.querySelector(`[data-name="${s}"]`);
2343
- o && n.getAttribute("type") == "checkbox" && (r = !0);
2344
- let h = n.getAttribute("data-filter-text");
2345
- if (o || (o = document.createElement("button"), i.appendChild(o)), o.setAttribute("type", "button"), o.classList.add("filter"), o.setAttribute("data-name", s), o.innerHTML = h.replace("$value", n.value), (!n.value || r) && o.remove(), n.parentNode.closest("[data-filter-text]")) {
2346
- let l = n.parentNode.closest("[data-filter-text]"), b = !0;
2344
+ function t(i, o) {
2345
+ let r = !1, s = o.getAttribute("name");
2346
+ s.includes("[]") && (s = s.replace("[]", `[${o.value}]`));
2347
+ let n = i.querySelector(`[data-name="${s}"]`);
2348
+ n && o.getAttribute("type") == "checkbox" && (r = !0);
2349
+ let d = o.getAttribute("data-filter-text");
2350
+ if (n || (n = document.createElement("button"), i.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name", s), n.innerHTML = d.replace("$value", o.value), (!o.value || r) && n.remove(), o.parentNode.closest("[data-filter-text]")) {
2351
+ let l = o.parentNode.closest("[data-filter-text]"), b = !0;
2347
2352
  if (s = "", l.querySelectorAll("input").forEach((m, y) => {
2348
2353
  let p = m.getAttribute("name");
2349
2354
  if (s += `${y != 0 ? "," : ""}${p}`, i.querySelector(`[data-name="${p}"]`) && i.querySelector(`[data-name="${p}"]`).remove(), m.value) {
2350
2355
  let f = document.createElement("button");
2351
- f.setAttribute("type", "button"), f.classList.add("filter"), f.setAttribute("data-name", p), f.innerHTML = h.replace("$value", m.value), i.appendChild(f);
2356
+ f.setAttribute("type", "button"), f.classList.add("filter"), f.setAttribute("data-name", p), f.innerHTML = d.replace("$value", m.value), i.appendChild(f);
2352
2357
  } else
2353
2358
  b = !1;
2354
2359
  }), i.querySelector(`[data-name="${s}"]`) && i.querySelector(`[data-name="${s}"]`).remove(), b) {
@@ -2362,19 +2367,19 @@ function Xs(e, a) {
2362
2367
  }
2363
2368
  }
2364
2369
  }
2365
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, n) => {
2370
+ Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, o) => {
2366
2371
  t(a, i);
2367
2372
  }), e.addEventListener("change", function(i) {
2368
2373
  if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2369
- let n = i.target.closest("input[data-filter-text]");
2370
- t(a, n);
2374
+ let o = i.target.closest("input[data-filter-text]");
2375
+ t(a, o);
2371
2376
  }
2372
2377
  }, !1), a.addEventListener("click", function(i) {
2373
2378
  if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2374
- let s = i.target.closest(".filter"), o = s.getAttribute("data-name").split(",");
2375
- for (var n = 0; n < o.length; n++) {
2376
- let h = o[n], l = `[name="${h}"]`;
2377
- h.match(/\[(.*)\]/) && (h.replace(/\[(.*)\]/, "[]"), l = `[value="${h.replace(/.*\[(.*)\]/, "$1")}"]`);
2379
+ let s = i.target.closest(".filter"), n = s.getAttribute("data-name").split(",");
2380
+ for (var o = 0; o < n.length; o++) {
2381
+ let d = n[o], l = `[name="${d}"]`;
2382
+ d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), l = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
2378
2383
  let b = e.querySelectorAll(l);
2379
2384
  for (var r = 0; r < b.length; r++) {
2380
2385
  let m = b[r];
@@ -2415,8 +2420,8 @@ window.customElements.get("iam-applied-filters") || window.customElements.define
2415
2420
  const ai = {
2416
2421
  name: "Header"
2417
2422
  };
2418
- function si(e, a, t, i, n, r) {
2419
- return d(), u("iam-applied-filters", null, [
2423
+ function si(e, a, t, i, o, r) {
2424
+ return u(), h("iam-applied-filters", null, [
2420
2425
  _(e.$slots, "default")
2421
2426
  ]);
2422
2427
  }
@@ -2436,8 +2441,8 @@ function ri(e, a) {
2436
2441
  }
2437
2442
  const J = function(e, a) {
2438
2443
  Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
2439
- let n = t.textContent.toLowerCase();
2440
- t.classList.add("d-none"), n.includes(a.toLowerCase()) && t.classList.remove("d-none");
2444
+ let o = t.textContent.toLowerCase();
2445
+ t.classList.add("d-none"), o.includes(a.toLowerCase()) && t.classList.remove("d-none");
2441
2446
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({
2442
2447
  event: "Filtered list",
2443
2448
  value: a
@@ -2487,15 +2492,15 @@ class li extends HTMLElement {
2487
2492
  }
2488
2493
  }
2489
2494
  window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", li);
2490
- const ni = {
2495
+ const oi = {
2491
2496
  name: "Filter list"
2492
2497
  };
2493
- function oi(e, a, t, i, n, r) {
2494
- return d(), u("iam-filterlist", null, [
2498
+ function ni(e, a, t, i, o, r) {
2499
+ return u(), h("iam-filterlist", null, [
2495
2500
  _(e.$slots, "default")
2496
2501
  ]);
2497
2502
  }
2498
- const $i = /* @__PURE__ */ S(ni, [["render", oi]]);
2503
+ const $i = /* @__PURE__ */ S(oi, [["render", ni]]);
2499
2504
  export {
2500
2505
  mi as Accordion,
2501
2506
  fi as AccordionItem,