@iamproperty/components 5.1.0-beta4 → 5.1.0-beta6

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 (29) hide show
  1. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  2. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  3. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  4. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  5. package/assets/js/components/card/card.component.min.js +1 -1
  6. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  7. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  8. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  9. package/assets/js/components/header/header.component.min.js +1 -1
  10. package/assets/js/components/nav/nav.component.min.js +1 -1
  11. package/assets/js/components/notification/notification.component.min.js +1 -1
  12. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  13. package/assets/js/components/search/search.component.js +1 -1
  14. package/assets/js/components/search/search.component.min.js +6 -6
  15. package/assets/js/components/search/search.component.min.js.map +1 -1
  16. package/assets/js/components/table/table.component.min.js +3 -3
  17. package/assets/js/components/table/table.component.min.js.map +1 -1
  18. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  19. package/assets/js/dynamic.min.js +1 -1
  20. package/assets/js/modules/table.js +7 -4
  21. package/assets/js/scripts.bundle.js +3 -3
  22. package/assets/js/scripts.bundle.js.map +1 -1
  23. package/assets/js/scripts.bundle.min.js +2 -2
  24. package/assets/js/scripts.bundle.min.js.map +1 -1
  25. package/assets/ts/components/search/search.component.ts +1 -1
  26. package/assets/ts/modules/table.ts +10 -11
  27. package/dist/components.es.js +292 -292
  28. package/dist/components.umd.js +13 -13
  29. package/package.json +1 -1
@@ -30,14 +30,14 @@ const y = (e, a) => {
30
30
  }
31
31
  }
32
32
  }, yt = ["xlink:href"], vt = ["innerHTML"];
33
- function wt(e, a, t, i, s, n) {
33
+ function wt(e, a, t, i, s, o) {
34
34
  return u(), m("div", {
35
- class: x(n.className)
35
+ class: x(o.className)
36
36
  }, [
37
37
  (u(), m("svg", null, [
38
38
  f("title", null, "iam " + S(t.id), 1),
39
39
  f("use", {
40
- "xlink:href": t.path + n.src
40
+ "xlink:href": t.path + o.src
41
41
  }, null, 8, yt)
42
42
  ])),
43
43
  t.desc ? (u(), m("span", {
@@ -48,35 +48,35 @@ function wt(e, a, t, i, s, n) {
48
48
  }
49
49
  const Di = /* @__PURE__ */ y(gt, [["render", wt]]);
50
50
  /*!
51
- * iamKey v5.1.0-beta4
51
+ * iamKey v5.1.0-beta6
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
54
  const _t = function(e) {
55
55
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
56
  }, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1), R = (e, a, t) => a.split(/[\.\[\]\'\"]/).filter((i) => i).reduce((i, s) => i ? i[s] : t, e);
57
57
  var kt = function(e, a, t, i) {
58
- function s(n) {
59
- return n instanceof t ? n : new t(function(o) {
60
- o(n);
58
+ function s(o) {
59
+ return o instanceof t ? o : new t(function(n) {
60
+ n(o);
61
61
  });
62
62
  }
63
- return new (t || (t = Promise))(function(n, o) {
63
+ return new (t || (t = Promise))(function(o, n) {
64
64
  function l(p) {
65
65
  try {
66
66
  r(i.next(p));
67
67
  } catch (c) {
68
- o(c);
68
+ n(c);
69
69
  }
70
70
  }
71
71
  function d(p) {
72
72
  try {
73
73
  r(i.throw(p));
74
74
  } catch (c) {
75
- o(c);
75
+ n(c);
76
76
  }
77
77
  }
78
78
  function r(p) {
79
- p.done ? n(p.value) : s(p.value).then(l, d);
79
+ p.done ? o(p.value) : s(p.value).then(l, d);
80
80
  }
81
81
  r((i = i.apply(e, a || [])).next());
82
82
  });
@@ -84,32 +84,32 @@ var kt = function(e, a, t, i) {
84
84
  const tt = (e) => {
85
85
  const a = Array.from(e.querySelectorAll("thead th"));
86
86
  Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
87
- const s = Array.from(t.querySelectorAll("th, td")), n = ["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((o, l) => {
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
89
  const d = a[l];
90
90
  if (typeof d < "u") {
91
91
  let r = document.createElement("div");
92
92
  r.innerHTML = d.innerHTML;
93
93
  let p = r.textContent || r.innerText || "";
94
- o.setAttribute("data-label", p), d.hasAttribute("data-td-class") && o.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (o.setAttribute("data-format", d.getAttribute("data-format")), o.innerHTML = Y(d.getAttribute("data-format"), o.textContent.trim())), n.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
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());
95
95
  }
96
96
  });
97
97
  });
98
98
  }, Lt = (e) => {
99
99
  let a = 0;
100
100
  return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
101
- let s = window.getComputedStyle(document.querySelector("html")), n = t.querySelector(":scope > *:last-child > *:first-child");
102
- if (n) {
103
- n.classList.add("text-nowrap");
104
- let o = n.offsetWidth / parseFloat(s.fontSize);
105
- o += 1.7, a = a > o ? a : o;
101
+ let s = window.getComputedStyle(document.querySelector("html")), o = t.querySelector(":scope > *:last-child > *:first-child");
102
+ if (o) {
103
+ o.classList.add("text-nowrap");
104
+ let n = o.offsetWidth / parseFloat(s.fontSize);
105
+ n += 1.7, a = a > n ? a : n;
106
106
  }
107
107
  }), a;
108
108
  }, St = (e, a) => {
109
- if (a.classList.contains(".table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
109
+ if (a.classList.contains("table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
110
110
  return !1;
111
111
  Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
112
- t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
112
+ e.querySelectorAll("thead tr th.expand-button-heading").length || t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
113
113
  }), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
114
114
  const s = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
115
115
  t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${s}>Expand</button></td>`);
@@ -126,15 +126,15 @@ const tt = (e) => {
126
126
  if (!t)
127
127
  return !1;
128
128
  const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
129
- let n = t.parentNode, o = {};
129
+ let o = t.parentNode, n = {};
130
130
  s.forEach((l, d) => {
131
131
  Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((r, p) => {
132
- r.querySelector(".td__content") ? o[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : o[r.textContent] = r.textContent;
132
+ r.querySelector(".td__content") ? n[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : n[r.textContent] = r.textContent;
133
133
  });
134
- }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), n.querySelector("datalist") || (n.innerHTML += `<datalist id="${i}_list"></datalist>`), n.querySelector("datalist").innerHTML = `${Object.keys(o).map((l) => `<option value="${l}"></option>`).join("")}`;
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
135
  }, qt = (e, a, t, i, s) => {
136
- var n;
137
- let o = function(r, p = !1) {
136
+ var o;
137
+ let n = function(r, p = !1) {
138
138
  if (a.classList.contains("processing"))
139
139
  return !1;
140
140
  if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, h) => {
@@ -150,7 +150,7 @@ const tt = (e) => {
150
150
  let c = a.querySelector("[data-pagination]");
151
151
  c.value = 1, i.setAttribute("data-page", 1);
152
152
  }
153
- ot(e, a, t, i);
153
+ nt(e, a, t, i);
154
154
  } else
155
155
  a.hasAttribute("data-submit") ? a.submit() : (K(e, a, i), U(e, a));
156
156
  if (a.hasAttribute("data-ajax-post")) {
@@ -160,13 +160,13 @@ const tt = (e) => {
160
160
  }
161
161
  };
162
162
  a.addEventListener("keyup", (r) => {
163
- clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (n = setTimeout(function() {
164
- o(r);
163
+ clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (o = setTimeout(function() {
164
+ n(r);
165
165
  }, 500));
166
166
  }), a.addEventListener("change", (r) => {
167
- clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s), o(r)), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-filter][data-no-ajax]") ? (K(e, a, i), U(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")) && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-show]") && o(r), r && r.target instanceof HTMLElement && r.target.closest("[data-mimic]") && o(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]") ? (K(e, a, i), U(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
168
  }), a.addEventListener("click", (r) => {
169
- if (clearTimeout(n), 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]")) {
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
170
  a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, h) => {
171
171
  c.innerHTML = "";
172
172
  });
@@ -194,14 +194,14 @@ const tt = (e) => {
194
194
  p[c].selectedIndex = -1;
195
195
  break;
196
196
  }
197
- a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s), o(r);
197
+ a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s), n(r);
198
198
  }
199
199
  }), a.addEventListener("submit", (r) => {
200
- clearTimeout(n), a.hasAttribute("data-submit") || r.preventDefault(), o(r);
200
+ clearTimeout(o), a.hasAttribute("data-submit") || r.preventDefault(), n(r);
201
201
  }), a.addEventListener("force", (r) => {
202
- o(r);
202
+ n(r);
203
203
  }), a.addEventListener("paginate", (r) => {
204
- o(r, !0);
204
+ n(r, !0);
205
205
  });
206
206
  let l = [], d = [];
207
207
  Array.from(a.querySelectorAll("[data-mimic]")).forEach((r, p) => {
@@ -235,15 +235,15 @@ const tt = (e) => {
235
235
  }, Q = (e, a, t) => {
236
236
  if (a.getAttribute("data-ajax"))
237
237
  return !1;
238
- let i = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), n = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = n.getAttribute("data-sort"), l = n.getAttribute("data-order"), d = n.getAttribute("data-format");
239
- if (!o)
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
240
  return i.innerHTML = t.innerHTML, tt(e), !1;
241
241
  let r = [];
242
242
  ["asc", "desc", "descending"].includes(l) || (r = l.split(","));
243
243
  let p = [];
244
244
  Array.from(i.querySelectorAll("tr")).forEach((h, g) => {
245
- let b = h.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
246
- h.querySelector('[data-label="' + o + '"] .td__content') && (b = h.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), r.length && r.includes(b) && (b = r.indexOf(b)), _t(b) && (b = At(b, 10)), d && d == "date" && (b = new Date(b));
245
+ let b = h.querySelector('td[data-label="' + n + '"], th[data-label="' + n + '"]').textContent.trim();
246
+ h.querySelector('[data-label="' + n + '"] .td__content') && (b = h.querySelector('[data-label="' + n + '"] .td__content').textContent.trim()), r.length && r.includes(b) && (b = r.indexOf(b)), _t(b) && (b = At(b, 10)), d && d == "date" && (b = new Date(b));
247
247
  const A = { index: b, row: h };
248
248
  p.push(A);
249
249
  }), p.sort((h, g) => h.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (p = p.reverse());
@@ -253,7 +253,7 @@ const tt = (e) => {
253
253
  }), i.innerHTML = c;
254
254
  }, K = (e, a, t) => {
255
255
  e.classList.remove("table--filtered");
256
- let i = it(a), s = [], n = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
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
257
  if (Array.from(e.querySelectorAll("tbody tr")).forEach((r, p) => {
258
258
  r.classList.remove("filtered"), r.classList.remove("filtered--matched"), r.classList.remove("filtered--show"), r.removeAttribute("data-filtered-by");
259
259
  }), a.querySelector("[data-search]")) {
@@ -310,23 +310,23 @@ const tt = (e) => {
310
310
  b && h.value.length >= 3 && b.textContent.toLowerCase().includes(h.value.toLowerCase()) && (c = !0);
311
311
  }), c || r.classList.add("filtered");
312
312
  }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((r, p) => {
313
- n++, r.classList.add("filtered--matched"), Math.ceil(n / l) == parseInt(o) && r.classList.add("filtered--show");
314
- }), t && (t.setAttribute("data-total", n), t.setAttribute("data-show", l), t.setAttribute("data-page", o));
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));
315
315
  }, U = (e, a, t) => {
316
316
  Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
317
- let n = i.getAttribute("data-query"), o;
318
- if (n == "total")
319
- t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
320
- else if (!n.includes(" == ") && n.includes(" & ")) {
321
- let l = n.split(" & "), d = "";
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
322
  l.forEach((r) => {
323
323
  d += `:not([data-filtered-by="${r}"])`;
324
- }), o = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
325
- } else if (!n.includes(" == "))
326
- o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${n}"])`)).length;
327
- else if (n.includes(" && ")) {
328
- let l = n.split(" && ");
329
- o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
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
330
  let r = !0;
331
331
  for (const [p, c] of Object.entries(l)) {
332
332
  let h = c.split(" == ");
@@ -335,27 +335,27 @@ const tt = (e) => {
335
335
  return r;
336
336
  }).length;
337
337
  } else {
338
- let l = n.split(" == ");
339
- o = 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) {
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
340
  return d.textContent === l[1];
341
341
  }).length;
342
342
  }
343
- i.hasAttribute("data-total") ? i.setAttribute("data-total", o) : i.innerHTML = o;
343
+ i.hasAttribute("data-total") ? i.setAttribute("data-total", n) : i.innerHTML = n;
344
344
  });
345
345
  }, Et = function(e, a, t, i) {
346
346
  t.addEventListener("update-page", (s) => {
347
- let n = a.querySelector("[data-pagination]"), o = s.detail.page;
348
- if (n.value = o, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", o), e.hasAttribute("data-show-history")) {
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")) {
349
349
  const l = new URL(location);
350
- l.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", l);
350
+ l.searchParams.set("page", n), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: n }, "", l);
351
351
  }
352
352
  if (!i.hasAttribute("data-no-scroll")) {
353
353
  const l = e.getBoundingClientRect().top + window.pageYOffset + -250;
354
354
  window.scrollTo({ top: l, behavior: "smooth" });
355
355
  }
356
356
  }), t.addEventListener("update-show", (s) => {
357
- let n = a.querySelector("[data-show]"), o = s.detail.show;
358
- n.value = o, i.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
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"));
359
359
  });
360
360
  }, Tt = (e, a) => {
361
361
  if (!e)
@@ -365,9 +365,9 @@ const tt = (e) => {
365
365
  });
366
366
  }, Ht = function(e) {
367
367
  for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
368
- for (var s = t[i].querySelectorAll("td,th"), n = [], o = 0; o < s.length; o++)
369
- n.push(`"${s[o].textContent}"`);
370
- a.push(n.join(","));
368
+ for (var s = t[i].querySelectorAll("td,th"), o = [], n = 0; n < s.length; n++)
369
+ o.push(`"${s[n].textContent}"`);
370
+ a.push(o.join(","));
371
371
  }
372
372
  a = a.join(`
373
373
  `);
@@ -379,13 +379,13 @@ const tt = (e) => {
379
379
  }, at = function(e, a, t, i) {
380
380
  if (tt(e), St(e, i), U(e, a, i), i && i.classList.contains("table--cta")) {
381
381
  let s = function() {
382
- Array.from(e.querySelectorAll("tr")).forEach((o, l) => {
383
- let d = o.offsetHeight;
384
- o.style.setProperty("--row-height", `${d}px`);
382
+ Array.from(e.querySelectorAll("tr")).forEach((n, l) => {
383
+ let d = n.offsetHeight;
384
+ n.style.setProperty("--row-height", `${d}px`);
385
385
  });
386
386
  };
387
- const n = Lt(e);
388
- i.style.setProperty("--cta-width", `${n}rem`), new ResizeObserver(s).observe(e);
387
+ const o = Lt(e);
388
+ i.style.setProperty("--cta-width", `${o}rem`), new ResizeObserver(s).observe(e);
389
389
  }
390
390
  }, it = function(e) {
391
391
  let a = new Object();
@@ -395,9 +395,9 @@ const tt = (e) => {
395
395
  a[s] || (a[s] = new Array()), a[s].push(t.value);
396
396
  }
397
397
  }), a;
398
- }, ot = function(e, a, t, i) {
398
+ }, nt = function(e, a, t, i) {
399
399
  return kt(this, void 0, void 0, function* () {
400
- let s = new FormData(a), n = new URLSearchParams(s).toString(), o = e.querySelectorAll("thead tr th"), l = e.querySelector("tbody"), d = a.getAttribute("data-ajax");
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");
401
401
  i.classList.add("table--loading");
402
402
  let r = it(a);
403
403
  Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, g) => {
@@ -412,11 +412,11 @@ const tt = (e) => {
412
412
  const { signal: c } = controller[d];
413
413
  t.setAttribute("data-loading", "true"), a.classList.add("processing");
414
414
  try {
415
- yield fetch(d + "?" + n, { signal: c, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((h) => h.json()).then((h) => {
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((h) => h.json()).then((h) => {
416
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", A = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", $ = R(h, b, 15), M = R(h, A, 1), F = R(h, g), I = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
417
417
  F ? (l.innerHTML = "", F.forEach((j, k) => {
418
418
  var L = document.createElement("tr");
419
- o.forEach((v, q) => {
419
+ n.forEach((v, q) => {
420
420
  let E = "";
421
421
  var z = document.createElement("td");
422
422
  if (z.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
@@ -444,7 +444,7 @@ const tt = (e) => {
444
444
  }), et(e, a), i.setAttribute("data-total", parseInt($)), i.setAttribute("data-page", parseInt(M)), at(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((j, k) => {
445
445
  let L = R(h, j.getAttribute("data-ajax-query"), "");
446
446
  j.hasAttribute("data-total") ? j.setAttribute("data-total", L) : j.innerHTML = L;
447
- }), parseInt($) == 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: n })) : l.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
447
+ }), parseInt($) == 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");
448
448
  });
449
449
  } catch (h) {
450
450
  console.log(h);
@@ -497,39 +497,39 @@ class Mt extends HTMLElement {
497
497
  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
498
  let t = this.classList.toString();
499
499
  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"), 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" />`), $t(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
- ot(this.table, this.form, this.pagination, this);
500
+ nt(this.table, this.form, this.pagination, this);
501
501
  else {
502
- let i = function(n = 1) {
503
- return Math.floor(Math.random() * Date.now() * (n + 1));
502
+ let i = function(o = 1) {
503
+ return Math.floor(Math.random() * Date.now() * (o + 1));
504
504
  };
505
505
  if (this.querySelector("iam-actionbar[data-selectall]")) {
506
- const n = this.querySelector("iam-actionbar[data-selectall]");
507
- Array.from(this.table.querySelectorAll("thead tr")).forEach((o, l) => {
508
- o.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
509
- }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, l) => {
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
510
  let d = `row${i(l)}`;
511
- o.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", (o) => {
513
- if (o && o.target instanceof HTMLElement && o.target.closest(".selectrow input")) {
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
514
  let l = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
515
- n.setAttribute("data-selected", l == d ? "all" : d);
515
+ o.setAttribute("data-selected", l == d ? "all" : d);
516
516
  }
517
- }), n.addEventListener("selected", (o) => {
518
- o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
517
+ }), o.addEventListener("selected", (n) => {
518
+ n.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
519
519
  l.checked = !1;
520
- }) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
520
+ }) : n.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
521
521
  l.checked = !0;
522
522
  });
523
523
  });
524
524
  }
525
525
  let s = -1;
526
- Array.from(this.table.querySelectorAll("tbody tr")).forEach((n, o) => {
527
- if (n.querySelector(":scope > td > .dialog__wrapper")) {
528
- let l = n.querySelector(":scope > td > .dialog__wrapper").parentNode;
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
529
  l.classList.add("td--fixed"), s = Array.from(l.parentNode.children).indexOf(l);
530
530
  }
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((n, o) => {
532
- n.classList.add("td--fixed");
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
533
  })), at(this.table, this.form, this.pagination, this), K(this.table, this.form, this), U(this.table, this.form);
534
534
  }
535
535
  this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
@@ -557,10 +557,10 @@ class Mt extends HTMLElement {
557
557
  }
558
558
  }
559
559
  /*!
560
- * iamKey v5.1.0-beta4
560
+ * iamKey v5.1.0-beta6
561
561
  * Copyright 2022-2023 iamproperty
562
562
  */
563
- class nt extends HTMLElement {
563
+ class ot extends HTMLElement {
564
564
  constructor() {
565
565
  super(), this.attachShadow({ mode: "open" });
566
566
  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");
@@ -607,34 +607,34 @@ class nt extends HTMLElement {
607
607
  connectedCallback() {
608
608
  const a = new URLSearchParams(window.location.search);
609
609
  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"), n = this.shadowRoot.querySelector(".per-page select"), o = this.shadowRoot.querySelector(".load-more");
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");
611
611
  this.setup(), t.addEventListener("change", (l) => {
612
612
  this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", l.target.value);
613
613
  }), s.addEventListener("click", (l) => {
614
614
  t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
615
615
  }), i.addEventListener("click", (l) => {
616
616
  t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
617
- }), n.addEventListener("change", (l) => {
617
+ }), o.addEventListener("change", (l) => {
618
618
  this.setAttribute("data-increment", l.target.value);
619
- }), o.addEventListener("click", (l) => {
619
+ }), n.addEventListener("click", (l) => {
620
620
  let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
621
- this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && o.remove();
621
+ this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && n.remove();
622
622
  });
623
623
  }
624
624
  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"), n = this.shadowRoot.querySelector(".item-count"), o = 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")), h = Math.ceil(r / c);
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")), h = Math.ceil(r / c);
626
626
  r > p && a.classList.remove("d-none");
627
627
  let g = "";
628
628
  for (let M = 1; M <= h; M++)
629
629
  g += `<option value="${M}" ${M == d ? "selected" : ""}>${M}</option>`;
630
630
  t.innerHTML = g, l.innerHTML = `of ${h}`, d == h ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
631
631
  let b = d == 1 ? 1 : (d - 1) * p + 1, A = d == 1 ? p : d * p;
632
- n.innerHTML = `${b} - ${A > r ? r : A} of ${r} items`;
632
+ o.innerHTML = `${b} - ${A > r ? r : A} of ${r} items`;
633
633
  const $ = [15, 25, 40, 50];
634
- c && o.value != c && !$.includes(c) && (o.innerHTML = `<option value="${c}">${c}</option>
634
+ c && n.value != c && !$.includes(c) && (n.innerHTML = `<option value="${c}">${c}</option>
635
635
  <option value="${c * 2}">${c * 2}</option>
636
636
  <option value="${c * 3}">${c * 3}</option>
637
- <option value="${c * 4}">${c * 4}</option>`), o.value = c;
637
+ <option value="${c * 4}">${c * 4}</option>`), n.value = c;
638
638
  }
639
639
  static get observedAttributes() {
640
640
  return ["data-total", "data-increment", "data-page", "data-show"];
@@ -681,28 +681,28 @@ const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(
681
681
  },
682
682
  created() {
683
683
  this.$nextTick(function() {
684
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
684
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
685
685
  });
686
686
  },
687
687
  updated() {
688
688
  }
689
689
  }, zt = { key: 0 }, Ft = { key: 0 }, Pt = ["data-row-id"], It = ["innerHTML"];
690
- function Ot(e, a, t, i, s, n) {
690
+ function Ot(e, a, t, i, s, o) {
691
691
  return u(), m("iam-table", null, [
692
692
  t.fields ? (u(), m("table", zt, [
693
693
  f("thead", null, [
694
694
  f("tr", null, [
695
- (u(!0), m(T, null, H(t.fields, (o) => (u(), m("th", {
696
- key: o.key
697
- }, S(n.cellHeading(o.key)), 1))), 128))
695
+ (u(!0), m(T, null, H(t.fields, (n) => (u(), m("th", {
696
+ key: n.key
697
+ }, S(o.cellHeading(n.key)), 1))), 128))
698
698
  ])
699
699
  ]),
700
700
  t.items ? (u(), m("tbody", Ft, [
701
- (u(!0), m(T, null, H(t.items, (o, l) => (u(), m("tr", {
701
+ (u(!0), m(T, null, H(t.items, (n, l) => (u(), m("tr", {
702
702
  key: l,
703
- "data-row-id": o.rowid
703
+ "data-row-id": n.rowid
704
704
  }, [
705
- (u(!0), m(T, null, H(Object.fromEntries(Object.entries(o).filter(([d]) => d !== "rowid")), (d, r) => (u(), m("td", {
705
+ (u(!0), m(T, null, H(Object.fromEntries(Object.entries(n).filter(([d]) => d !== "rowid")), (d, r) => (u(), m("td", {
706
706
  key: r,
707
707
  innerHTML: d
708
708
  }, null, 8, It))), 128))
@@ -905,17 +905,17 @@ const rt = /* @__PURE__ */ y(Dt, [["render", Ot]]), Bt = {
905
905
  }, Xt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Qt = {
906
906
  key: 6,
907
907
  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"], oe = ["for", "innerHTML"], ne = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["innerHTML"], le = ["id"], de = ["value"];
909
- function ce(e, a, t, i, s, n) {
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) {
910
910
  return u(), m("div", {
911
- class: x(n.wrapperClass()),
911
+ class: x(o.wrapperClass()),
912
912
  ref: "wrapper"
913
913
  }, [
914
- n.needsLabel() ? (u(), m("label", {
914
+ o.needsLabel() ? (u(), m("label", {
915
915
  key: 0,
916
916
  class: x(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
917
917
  for: t.id,
918
- innerHTML: n.displayLabel(),
918
+ innerHTML: o.displayLabel(),
919
919
  title: t.title
920
920
  }, null, 10, Ut)) : w("", !0),
921
921
  t.prefix ? (u(), m("span", {
@@ -930,74 +930,74 @@ function ce(e, a, t, i, s, n) {
930
930
  innerHTML: t.suffix,
931
931
  role: "presentation"
932
932
  }, null, 10, Wt)) : w("", !0),
933
- n.isInput() ? P((u(), m("input", N({
933
+ o.isInput() ? P((u(), m("input", N({
934
934
  key: 3,
935
- "onUpdate:modelValue": a[0] || (a[0] = (o) => n.inputVal = o),
935
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => o.inputVal = n),
936
936
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
937
937
  type: t.type,
938
938
  name: t.name ? t.name : t.id,
939
939
  id: t.id,
940
- pattern: n.needPattern(),
941
- list: n.hasOptions()
940
+ pattern: o.needPattern(),
941
+ list: o.hasOptions()
942
942
  }, e.$attrs, {
943
- onKeyup: a[1] || (a[1] = (...o) => n.inputKeyup && n.inputKeyup(...o))
943
+ onKeyup: a[1] || (a[1] = (...n) => o.inputKeyup && o.inputKeyup(...n))
944
944
  }), null, 16, Gt)), [
945
- [G, n.inputVal]
945
+ [G, o.inputVal]
946
946
  ]) : w("", !0),
947
947
  t.type == "textarea" ? P((u(), m("textarea", N({
948
948
  key: 4,
949
- "onUpdate:modelValue": a[2] || (a[2] = (o) => n.inputVal = o),
949
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => o.inputVal = n),
950
950
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
951
951
  type: t.type,
952
952
  name: t.name ? t.name : t.id,
953
953
  id: t.id,
954
- pattern: n.needPattern()
954
+ pattern: o.needPattern()
955
955
  }, e.$attrs), null, 16, Kt)), [
956
- [ht, n.inputVal]
956
+ [ht, o.inputVal]
957
957
  ]) : w("", !0),
958
958
  t.type == "range" ? (u(), m("div", Yt, [
959
959
  P(f("input", N({
960
- "onUpdate:modelValue": a[3] || (a[3] = (o) => n.inputVal = o),
960
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => o.inputVal = n),
961
961
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
962
962
  type: t.type,
963
963
  name: t.name ? t.name : t.id,
964
964
  id: t.id,
965
- pattern: n.needPattern(),
966
- list: n.hasOptions()
965
+ pattern: o.needPattern(),
966
+ list: o.hasOptions()
967
967
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Xt), [
968
- [G, n.inputVal]
968
+ [G, o.inputVal]
969
969
  ]),
970
970
  f("output", Jt, S(t.value), 1)
971
971
  ])) : w("", !0),
972
972
  t.type == "color" ? (u(), m("div", Qt, [
973
973
  P(f("input", N({
974
- "onUpdate:modelValue": a[4] || (a[4] = (o) => n.inputVal = o),
974
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => o.inputVal = n),
975
975
  class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
976
976
  type: t.type,
977
977
  name: t.name ? t.name : t.id,
978
978
  id: t.id,
979
- pattern: n.needPattern(),
980
- list: n.hasOptions()
979
+ pattern: o.needPattern(),
980
+ list: o.hasOptions()
981
981
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
982
- [G, n.inputVal]
982
+ [G, o.inputVal]
983
983
  ]),
984
984
  f("output", te, S(t.value ? e.vale : "#000000"), 1)
985
985
  ])) : w("", !0),
986
986
  t.type == "select" ? P((u(), m("select", N({
987
987
  key: 7,
988
- "onUpdate:modelValue": a[5] || (a[5] = (o) => n.inputVal = o),
988
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => o.inputVal = n),
989
989
  class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
990
990
  type: t.type,
991
991
  name: t.id,
992
992
  id: t.id,
993
- pattern: n.needPattern()
993
+ pattern: o.needPattern()
994
994
  }, e.$attrs), [
995
- (u(!0), m(T, null, H(t.options, (o, l) => (u(), m("option", {
995
+ (u(!0), m(T, null, H(t.options, (n, l) => (u(), m("option", {
996
996
  key: l,
997
- value: o.value
998
- }, S(o.display ? o.display : o.value), 9, ae))), 128))
997
+ value: n.value
998
+ }, S(n.display ? n.display : n.value), 9, ae))), 128))
999
999
  ], 16, ee)), [
1000
- [pt, n.inputVal]
1000
+ [pt, o.inputVal]
1001
1001
  ]) : w("", !0),
1002
1002
  t.type == "checkbox" || t.type == "radio" ? (u(), m("input", N({
1003
1003
  key: 8,
@@ -1011,7 +1011,7 @@ function ce(e, a, t, i, s, n) {
1011
1011
  class: x(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
1012
1012
  for: t.id,
1013
1013
  innerHTML: t.label
1014
- }, null, 10, oe)) : w("", !0),
1014
+ }, null, 10, ne)) : w("", !0),
1015
1015
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input", N({
1016
1016
  key: 10,
1017
1017
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -1019,13 +1019,13 @@ function ce(e, a, t, i, s, n) {
1019
1019
  autocomplete: "off",
1020
1020
  name: t.name ? t.name : t.id,
1021
1021
  id: t.id
1022
- }, e.$attrs), null, 16, ne)) : w("", !0),
1022
+ }, e.$attrs), null, 16, oe)) : w("", !0),
1023
1023
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
1024
1024
  key: 11,
1025
1025
  class: x(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
1026
1026
  for: t.id,
1027
1027
  innerHTML: t.label,
1028
- onClick: a[6] || (a[6] = (...o) => n.clickEvent && n.clickEvent(...o))
1028
+ onClick: a[6] || (a[6] = (...n) => o.clickEvent && o.clickEvent(...n))
1029
1029
  }, null, 10, re)) : w("", !0),
1030
1030
  _(e.$slots, "default"),
1031
1031
  t.errormsg ? (u(), m("span", {
@@ -1033,22 +1033,22 @@ function ce(e, a, t, i, s, n) {
1033
1033
  class: "invalid-feedback mb-0",
1034
1034
  innerHTML: t.errormsg
1035
1035
  }, null, 8, se)) : w("", !0),
1036
- n.allowDatalist() ? (u(), m("datalist", {
1036
+ o.allowDatalist() ? (u(), m("datalist", {
1037
1037
  key: 13,
1038
1038
  id: t.id + "-list"
1039
1039
  }, [
1040
- (u(!0), m(T, null, H(t.options, (o, l) => (u(), m("option", {
1040
+ (u(!0), m(T, null, H(t.options, (n, l) => (u(), m("option", {
1041
1041
  key: l,
1042
- value: o.value
1043
- }, S(o.value), 9, de))), 128))
1042
+ value: n.value
1043
+ }, S(n.value), 9, de))), 128))
1044
1044
  ], 8, le)) : w("", !0)
1045
1045
  ], 2);
1046
1046
  }
1047
1047
  const st = /* @__PURE__ */ y(Bt, [["render", ce]]);
1048
1048
  function ue(e, a) {
1049
- const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), s = e.querySelector("input"), n = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = s.cloneNode();
1050
- i.append(o), a.addEventListener("click", (l) => {
1051
- l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? o : s).click());
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());
1052
1052
  }), a.addEventListener("click", (l) => {
1053
1053
  if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
1054
1054
  const d = new DataTransfer(), { files: r } = s, p = l.target.closest(".files button");
@@ -1060,26 +1060,26 @@ function ue(e, a) {
1060
1060
  const c = new Event("change");
1061
1061
  s.dispatchEvent(c);
1062
1062
  }
1063
- }), o.addEventListener("change", (l) => {
1063
+ }), n.addEventListener("change", (l) => {
1064
1064
  if (s.hasAttribute("multiple")) {
1065
- const r = [...s.files, ...o.files];
1065
+ const r = [...s.files, ...n.files];
1066
1066
  let p = [];
1067
1067
  const c = new DataTransfer();
1068
1068
  for (let h = 0; h < r.length; h++) {
1069
1069
  const g = r[h], b = g.size / 1e3;
1070
- !p.includes(g.name) && (n == 0 || b < n) && c.items.add(g), p.push(g.name);
1070
+ !p.includes(g.name) && (o == 0 || b < o) && c.items.add(g), p.push(g.name);
1071
1071
  }
1072
1072
  s.files = c.files;
1073
1073
  } else
1074
- s.files = o.files;
1074
+ s.files = n.files;
1075
1075
  const d = new Event("change");
1076
1076
  s.dispatchEvent(d);
1077
- }), o.addEventListener("dragenter", (l) => {
1078
- o.classList.add("focus");
1079
- }), o.addEventListener("dragleave", (l) => {
1080
- o.classList.remove("focus");
1081
- }), o.addEventListener("drop", (l) => {
1082
- o.classList.remove("focus");
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
1083
  }), s.addEventListener("change", (l) => {
1084
1084
  t.innerHTML = "";
1085
1085
  for (const d of s.files)
@@ -1136,7 +1136,7 @@ const he = {
1136
1136
  });
1137
1137
  }
1138
1138
  };
1139
- function pe(e, a, t, i, s, n) {
1139
+ function pe(e, a, t, i, s, o) {
1140
1140
  return u(), m("iam-fileupload", null, [
1141
1141
  _(e.$slots, "default")
1142
1142
  ]);
@@ -1152,7 +1152,7 @@ const be = {
1152
1152
  props: {},
1153
1153
  mounted() {
1154
1154
  this.$nextTick(function() {
1155
- D(/* @__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-8809a59e.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
1155
+ D(/* @__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-575f2416.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
1156
1156
  window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
1157
1157
  }).catch((e) => {
1158
1158
  console.log(e.message);
@@ -1160,7 +1160,7 @@ const be = {
1160
1160
  });
1161
1161
  }
1162
1162
  }, fe = { ref: "wrapper" };
1163
- function ge(e, a, t, i, s, n) {
1163
+ function ge(e, a, t, i, s, o) {
1164
1164
  return u(), m("iam-accordion", fe, [
1165
1165
  _(e.$slots, "default")
1166
1166
  ], 512);
@@ -1201,9 +1201,9 @@ const Fi = /* @__PURE__ */ y(be, [["render", ge]]), ye = {
1201
1201
  };
1202
1202
  }
1203
1203
  }, ve = ["id"], we = ["classList"];
1204
- function _e(e, a, t, i, s, n) {
1204
+ function _e(e, a, t, i, s, o) {
1205
1205
  return u(), m("details", {
1206
- id: n.createID(t.title)
1206
+ id: o.createID(t.title)
1207
1207
  }, [
1208
1208
  f("summary", {
1209
1209
  classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
@@ -1235,7 +1235,7 @@ const Pi = /* @__PURE__ */ y(ye, [["render", _e]]), Ae = {
1235
1235
  }
1236
1236
  }
1237
1237
  }, xe = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, Se = { class: "pt-5 pb-3 px-4" }, $e = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
1238
- function Ee(e, a, t, i, s, n) {
1238
+ function Ee(e, a, t, i, s, o) {
1239
1239
  return u(), m("div", xe, [
1240
1240
  f("div", {
1241
1241
  class: x("bg-" + t.background + " mb-4")
@@ -1263,7 +1263,7 @@ const Ii = /* @__PURE__ */ y(Ae, [["render", Ee]]), Te = {
1263
1263
  name: "Card",
1264
1264
  mounted() {
1265
1265
  this.$nextTick(function() {
1266
- D(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-4a8f3fbe.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-17db52e1.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
1266
+ D(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-4a8f3fbe.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-c03fde9f.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
1267
1267
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1268
1268
  }).catch((e) => {
1269
1269
  console.log(e.message);
@@ -1271,7 +1271,7 @@ const Ii = /* @__PURE__ */ y(Ae, [["render", Ee]]), Te = {
1271
1271
  });
1272
1272
  }
1273
1273
  };
1274
- function He(e, a, t, i, s, n) {
1274
+ function He(e, a, t, i, s, o) {
1275
1275
  return u(), m("iam-card", null, [
1276
1276
  _(e.$slots, "default")
1277
1277
  ]);
@@ -1281,18 +1281,18 @@ function je(e) {
1281
1281
  var a;
1282
1282
  let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
1283
1283
  e.getAttribute("data-cols");
1284
- let s = e.getAttribute("data-sm-cols"), n = e.getAttribute("data-md-cols");
1285
- e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(o) {
1284
+ let s = e.getAttribute("data-sm-cols"), o = e.getAttribute("data-md-cols");
1285
+ e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(n) {
1286
1286
  clearTimeout(a), a = setTimeout(function() {
1287
1287
  let l = t.clientWidth, d = t.scrollWidth, r = t.scrollLeft, p = Math.round(r / d * i) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
1288
1288
  Array.from(e.querySelectorAll(".carousel__controls a")).forEach((h, g) => {
1289
1289
  h.removeAttribute("aria-current");
1290
1290
  }), e.querySelector(".control-" + p).setAttribute("aria-current", !0), p == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + l > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1291
1291
  }, 100);
1292
- }, !1), e.addEventListener("click", function(o) {
1293
- for (var l = o.target; l && l != this; l = l.parentNode)
1292
+ }, !1), e.addEventListener("click", function(n) {
1293
+ for (var l = n.target; l && l != this; l = l.parentNode)
1294
1294
  if (l.matches(".carousel__controls a")) {
1295
- o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((r, p) => {
1295
+ n.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((r, p) => {
1296
1296
  r.removeAttribute("aria-current");
1297
1297
  }), l.setAttribute("aria-current", !0);
1298
1298
  const d = document.querySelector(l.getAttribute("href"));
@@ -1303,10 +1303,10 @@ function je(e) {
1303
1303
  });
1304
1304
  break;
1305
1305
  }
1306
- }, !1), e.addEventListener("click", function(o) {
1307
- for (var l = o.target; l && l != this; l = l.parentNode)
1306
+ }, !1), e.addEventListener("click", function(n) {
1307
+ for (var l = n.target; l && l != this; l = l.parentNode)
1308
1308
  if (l.matches(".btn-next, .btn-prev")) {
1309
- o.preventDefault();
1309
+ n.preventDefault();
1310
1310
  let d = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1311
1311
  t.scroll({
1312
1312
  top: 0,
@@ -1315,7 +1315,7 @@ function je(e) {
1315
1315
  });
1316
1316
  break;
1317
1317
  }
1318
- }, !1), i == 1 && e.classList.add("hide-btns"), s >= i && e.classList.add("hide-sm-btns"), n >= i && e.classList.add("hide-md-btns");
1318
+ }, !1), i == 1 && e.classList.add("hide-btns"), s >= i && e.classList.add("hide-sm-btns"), o >= i && e.classList.add("hide-md-btns");
1319
1319
  }
1320
1320
  const Ce = {
1321
1321
  components: {
@@ -1404,8 +1404,8 @@ const Ce = {
1404
1404
  class: "btn btn-next",
1405
1405
  "data-go": "2"
1406
1406
  }, "Next", -1);
1407
- function Be(e, a, t, i, s, n) {
1408
- const o = B("Card");
1407
+ function Be(e, a, t, i, s, o) {
1408
+ const n = B("Card");
1409
1409
  return u(), m("div", {
1410
1410
  class: "container carousel",
1411
1411
  id: "carousel" + s.id,
@@ -1426,7 +1426,7 @@ function Be(e, a, t, i, s, n) {
1426
1426
  key: d,
1427
1427
  id: "carousel" + s.id + "slide" + (d + 1)
1428
1428
  }, [
1429
- C(o, N(l, {
1429
+ C(n, N(l, {
1430
1430
  class: t.cardclass,
1431
1431
  type: t.cardtype,
1432
1432
  btnyype: t.btntype,
@@ -1443,7 +1443,7 @@ function Be(e, a, t, i, s, n) {
1443
1443
  (u(!0), m(T, null, H(t.items, (l, d) => (u(), m("div", {
1444
1444
  class: x(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1445
1445
  key: d,
1446
- innerHTML: n.content(l),
1446
+ innerHTML: o.content(l),
1447
1447
  id: "carousel" + s.id + "slide" + (d + 1)
1448
1448
  }, null, 10, Fe))), 128))
1449
1449
  ], 2)) : w("", !0)
@@ -1464,7 +1464,7 @@ function Be(e, a, t, i, s, n) {
1464
1464
  }
1465
1465
  const Oi = /* @__PURE__ */ y(Ce, [["render", Be]]);
1466
1466
  /*!
1467
- * iamKey v5.1.0-beta4
1467
+ * iamKey v5.1.0-beta6
1468
1468
  * Copyright 2022-2023 iamproperty
1469
1469
  */
1470
1470
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
@@ -1526,7 +1526,7 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1526
1526
  });
1527
1527
  }
1528
1528
  }, Ge = ["image"], Ke = ["innerHTML"];
1529
- function Ye(e, a, t, i, s, n) {
1529
+ function Ye(e, a, t, i, s, o) {
1530
1530
  return u(), m("iam-header", {
1531
1531
  class: "bg-secondary",
1532
1532
  image: t.image
@@ -1546,19 +1546,19 @@ function Xe(e) {
1546
1546
  if (i == 1)
1547
1547
  return !1;
1548
1548
  e.classList.add("testimonial--multi");
1549
- const s = function(n) {
1550
- const o = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1551
- o.setAttribute("data-go", n + 1), l.setAttribute("data-go", n - 1), o.removeAttribute("disabled"), l.removeAttribute("disabled"), n == 1 ? l.setAttribute("disabled", !0) : n == i && o.setAttribute("disabled", !0);
1549
+ const s = function(o) {
1550
+ const n = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1551
+ 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);
1552
1552
  };
1553
- t.addEventListener("scroll", function(n) {
1553
+ t.addEventListener("scroll", function(o) {
1554
1554
  clearTimeout(a), a = setTimeout(function() {
1555
- let o = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / o * i) + 1;
1555
+ let n = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / n * i) + 1;
1556
1556
  d == 0 && r != 0 && (p = Math.round(r / l * i) + 1), e.setAttribute("data-show", p), s(p);
1557
1557
  }, 300);
1558
- }, !1), e.addEventListener("click", function(n) {
1559
- for (var o = n.target; o && o != this; o = o.parentNode)
1560
- if (o.matches("[data-go]")) {
1561
- let l = parseInt(o.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
1558
+ }, !1), e.addEventListener("click", function(o) {
1559
+ for (var n = o.target; n && n != this; n = n.parentNode)
1560
+ if (n.matches("[data-go]")) {
1561
+ let l = parseInt(n.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
1562
1562
  p > c ? r = Math.floor(p * ((l - 1) / i)) : d = Math.floor(c * ((l - 1) / i)), t.scroll({
1563
1563
  top: d,
1564
1564
  left: r,
@@ -1598,8 +1598,8 @@ const Je = {
1598
1598
  "data-go": "2",
1599
1599
  class: "btn-next"
1600
1600
  }, "Next")
1601
- ], -1), oa = { class: "col-md-7" }, na = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), ra = { class: "testimonial__content" }, sa = ["innerHTML"], la = ["innerHTML"], da = { class: "testimonial__after" }, ca = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1602
- function ua(e, a, t, i, s, n) {
1601
+ ], -1), na = { class: "col-md-7" }, oa = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), ra = { class: "testimonial__content" }, sa = ["innerHTML"], la = ["innerHTML"], da = { class: "testimonial__after" }, ca = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1602
+ function ua(e, a, t, i, s, o) {
1603
1603
  return u(), m("div", Qe, [
1604
1604
  f("div", {
1605
1605
  class: x("bg-" + t.background)
@@ -1607,27 +1607,27 @@ function ua(e, a, t, i, s, n) {
1607
1607
  f("div", Ze, [
1608
1608
  f("div", ta, [
1609
1609
  f("div", ea, [
1610
- (u(!0), m(T, null, H(t.items, (o, l) => (u(), m("img", {
1610
+ (u(!0), m(T, null, H(t.items, (n, l) => (u(), m("img", {
1611
1611
  key: l,
1612
- src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1612
+ src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1613
1613
  alt: "",
1614
- class: x("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
1614
+ class: x("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
1615
1615
  }, null, 10, aa))), 128))
1616
1616
  ]),
1617
1617
  ia
1618
1618
  ]),
1619
- f("div", oa, [
1620
- na,
1619
+ f("div", na, [
1620
+ oa,
1621
1621
  f("div", ra, [
1622
- (u(!0), m(T, null, H(t.items, (o, l) => (u(), m("blockquote", {
1622
+ (u(!0), m(T, null, H(t.items, (n, l) => (u(), m("blockquote", {
1623
1623
  key: l,
1624
- class: x(o.class)
1624
+ class: x(n.class)
1625
1625
  }, [
1626
1626
  f("div", {
1627
- innerHTML: o.quote
1627
+ innerHTML: n.quote
1628
1628
  }, null, 8, sa),
1629
1629
  f("cite", {
1630
- innerHTML: o.cite
1630
+ innerHTML: n.cite
1631
1631
  }, null, 8, la)
1632
1632
  ], 2))), 128))
1633
1633
  ]),
@@ -1650,7 +1650,7 @@ const ma = {
1650
1650
  }
1651
1651
  }
1652
1652
  }, ha = { class: "timeline" }, pa = { class: "timeline__content" }, ba = ["src"];
1653
- function fa(e, a, t, i, s, n) {
1653
+ function fa(e, a, t, i, s, o) {
1654
1654
  return u(), m("div", ha, [
1655
1655
  f("div", pa, [
1656
1656
  _(e.$slots, "default")
@@ -1825,8 +1825,8 @@ const ga = {
1825
1825
  value: "submit"
1826
1826
  }, "Search")
1827
1827
  ], -1);
1828
- function Ta(e, a, t, i, s, n) {
1829
- const o = B("Input");
1828
+ function Ta(e, a, t, i, s, o) {
1829
+ const n = B("Input");
1830
1830
  return u(), m("div", ya, [
1831
1831
  _(e.$slots, "default"),
1832
1832
  f("div", va, [
@@ -1836,19 +1836,19 @@ function Ta(e, a, t, i, s, n) {
1836
1836
  method: t.formmethod
1837
1837
  }, [
1838
1838
  f("fieldset", _a, [
1839
- C(o, {
1839
+ C(n, {
1840
1840
  inputClass: "input--locations",
1841
- modelValue: n.locationSet,
1842
- "onUpdate:modelValue": a[0] || (a[0] = (l) => n.locationSet = l),
1841
+ modelValue: o.locationSet,
1842
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.locationSet = l),
1843
1843
  label: "Location",
1844
1844
  id: "location",
1845
- options: n.locationsList(),
1845
+ options: o.locationsList(),
1846
1846
  required: "",
1847
1847
  placeholder: "i.e. Newcastle or NE1",
1848
- onKeyupEvent: a[1] || (a[1] = (l) => n.locationKeyup(...arguments)),
1848
+ onKeyupEvent: a[1] || (a[1] = (l) => o.locationKeyup(...arguments)),
1849
1849
  ref: "search"
1850
1850
  }, null, 8, ["modelValue", "options"]),
1851
- C(o, {
1851
+ C(n, {
1852
1852
  class: "select--miles",
1853
1853
  label: "Miles",
1854
1854
  id: "miles",
@@ -1859,7 +1859,7 @@ function Ta(e, a, t, i, s, n) {
1859
1859
  f("fieldset", Aa, [
1860
1860
  xa,
1861
1861
  f("div", ka, [
1862
- C(o, {
1862
+ C(n, {
1863
1863
  class: "col-6",
1864
1864
  label: "Minimum price",
1865
1865
  id: "price-min",
@@ -1867,7 +1867,7 @@ function Ta(e, a, t, i, s, n) {
1867
1867
  type: "select",
1868
1868
  options: t.pricemin
1869
1869
  }, null, 8, ["options"]),
1870
- C(o, {
1870
+ C(n, {
1871
1871
  class: "col-6",
1872
1872
  label: "Maximum price",
1873
1873
  id: "price-max",
@@ -1880,7 +1880,7 @@ function Ta(e, a, t, i, s, n) {
1880
1880
  f("fieldset", La, [
1881
1881
  Sa,
1882
1882
  f("div", $a, [
1883
- C(o, {
1883
+ C(n, {
1884
1884
  class: "col-6",
1885
1885
  label: "Minimum beds",
1886
1886
  id: "beds-min",
@@ -1888,7 +1888,7 @@ function Ta(e, a, t, i, s, n) {
1888
1888
  type: "select",
1889
1889
  options: t.bedsmin
1890
1890
  }, null, 8, ["options"]),
1891
- C(o, {
1891
+ C(n, {
1892
1892
  class: "col-6",
1893
1893
  label: "Maximum beds",
1894
1894
  id: "beds-max",
@@ -1899,7 +1899,7 @@ function Ta(e, a, t, i, s, n) {
1899
1899
  ])
1900
1900
  ]),
1901
1901
  f("fieldset", qa, [
1902
- C(o, {
1902
+ C(n, {
1903
1903
  label: "Property type",
1904
1904
  id: "property-type",
1905
1905
  type: "select",
@@ -1917,7 +1917,7 @@ const Wi = /* @__PURE__ */ y(ga, [["render", Ta]]), Ha = {
1917
1917
  name: "Nav",
1918
1918
  mounted() {
1919
1919
  this.$nextTick(function() {
1920
- D(/* @__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-aa89c16d.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
1920
+ D(/* @__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-76637f88.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
1921
1921
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1922
1922
  }).catch((e) => {
1923
1923
  console.log(e.message);
@@ -1926,7 +1926,7 @@ const Wi = /* @__PURE__ */ y(ga, [["render", Ta]]), Ha = {
1926
1926
  },
1927
1927
  methods: {}
1928
1928
  }, Ma = { ref: "wrapper" };
1929
- function ja(e, a, t, i, s, n) {
1929
+ function ja(e, a, t, i, s, o) {
1930
1930
  return u(), m("iam-nav", Ma, [
1931
1931
  _(e.$slots, "default")
1932
1932
  ], 512);
@@ -1949,7 +1949,7 @@ const Ca = {
1949
1949
  key: 0,
1950
1950
  class: "h6 stepper__start"
1951
1951
  }, za = { class: "list-unstyled" }, Fa = { class: "h6 stepper__end" };
1952
- function Pa(e, a, t, i, s, n) {
1952
+ function Pa(e, a, t, i, s, o) {
1953
1953
  return u(), m("div", Na, [
1954
1954
  f("nav", {
1955
1955
  class: "stepper",
@@ -1976,23 +1976,23 @@ const Ia = {
1976
1976
  class: "container snapshot",
1977
1977
  ref: "wrapper"
1978
1978
  }, Ba = { class: "row" }, Ua = ["href"], Va = { class: "lead snapshot__title" }, Wa = { class: "stat" };
1979
- function Ga(e, a, t, i, s, n) {
1979
+ function Ga(e, a, t, i, s, o) {
1980
1980
  return u(), m("div", Oa, [
1981
1981
  _(e.$slots, "default"),
1982
1982
  f("div", Ba, [
1983
- (u(!0), m(T, null, H(t.items, (o, l) => (u(), m("div", {
1983
+ (u(!0), m(T, null, H(t.items, (n, l) => (u(), m("div", {
1984
1984
  class: "col",
1985
1985
  key: l
1986
1986
  }, [
1987
- o.link ? (u(), m("a", {
1987
+ n.link ? (u(), m("a", {
1988
1988
  key: 0,
1989
- href: o.link
1990
- }, "View " + S(o.title), 9, Ua)) : w("", !0),
1989
+ href: n.link
1990
+ }, "View " + S(n.title), 9, Ua)) : w("", !0),
1991
1991
  f("div", {
1992
- class: x(`snapshot__item ${o.bg ? "bg-" + o.bg : ""}`)
1992
+ class: x(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
1993
1993
  }, [
1994
- f("span", Va, S(o.title), 1),
1995
- f("span", Wa, S(o.number), 1)
1994
+ f("span", Va, S(n.title), 1),
1995
+ f("span", Wa, S(n.number), 1)
1996
1996
  ], 2)
1997
1997
  ]))), 128))
1998
1998
  ])
@@ -2018,7 +2018,7 @@ const Yi = /* @__PURE__ */ y(Ia, [["render", Ga]]), Ka = {
2018
2018
  key: 0,
2019
2019
  class: "visually-hidden"
2020
2020
  };
2021
- function Ja(e, a, t, i, s, n) {
2021
+ function Ja(e, a, t, i, s, o) {
2022
2022
  return u(), m("li", null, [
2023
2023
  f("a", {
2024
2024
  href: t.url,
@@ -2037,7 +2037,7 @@ const Qa = {
2037
2037
  name: "Tabs",
2038
2038
  mounted() {
2039
2039
  this.$nextTick(function() {
2040
- D(/* @__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-9bf2758c.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
2040
+ D(/* @__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-4a3fd3ed.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
2041
2041
  window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
2042
2042
  }).catch((e) => {
2043
2043
  console.log(e.message);
@@ -2045,7 +2045,7 @@ const Qa = {
2045
2045
  });
2046
2046
  }
2047
2047
  }, Za = { ref: "wrapper" };
2048
- function ti(e, a, t, i, s, n) {
2048
+ function ti(e, a, t, i, s, o) {
2049
2049
  return u(), m("iam-tabs", Za, [
2050
2050
  _(e.$slots, "default")
2051
2051
  ], 512);
@@ -2073,7 +2073,7 @@ const Ji = /* @__PURE__ */ y(Qa, [["render", ti]]), ei = {
2073
2073
  };
2074
2074
  }
2075
2075
  }, ai = { class: "tab" }, ii = ["innerHTML"];
2076
- function oi(e, a, t, i, s, n) {
2076
+ function ni(e, a, t, i, s, o) {
2077
2077
  return u(), m("details", ai, [
2078
2078
  f("summary", {
2079
2079
  innerHTML: t.title,
@@ -2082,10 +2082,10 @@ function oi(e, a, t, i, s, n) {
2082
2082
  _(e.$slots, "default")
2083
2083
  ]);
2084
2084
  }
2085
- const Qi = /* @__PURE__ */ y(ei, [["render", oi]]);
2085
+ const Qi = /* @__PURE__ */ y(ei, [["render", ni]]);
2086
2086
  let lt = rt.props;
2087
2087
  lt.fields.required = !1;
2088
- const ni = {
2088
+ const oi = {
2089
2089
  components: {
2090
2090
  Table: rt,
2091
2091
  Input: st
@@ -2102,8 +2102,8 @@ const ni = {
2102
2102
  const a = new FormData(e.target);
2103
2103
  let t = /* @__PURE__ */ new Date();
2104
2104
  const i = t.getFullYear();
2105
- let s = t.getMonth() + 1, n = t.getDate();
2106
- n < 10 && (n = "0" + n), s < 10 && (s = "0" + s), t = n + "/" + s + "/" + i, this.itemsData.unshift({
2105
+ let s = t.getMonth() + 1, o = t.getDate();
2106
+ o < 10 && (o = "0" + o), s < 10 && (s = "0" + s), t = o + "/" + s + "/" + i, this.itemsData.unshift({
2107
2107
  date_added: t,
2108
2108
  user: a.get("user"),
2109
2109
  note: a.get("addNote")
@@ -2132,22 +2132,22 @@ const ni = {
2132
2132
  }
2133
2133
  }
2134
2134
  }, ri = { class: "container note-feed mb-2" }, si = ["innerHTML"], li = ["action", "method"], di = ["value"], ci = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2135
- function ui(e, a, t, i, s, n) {
2136
- const o = B("Table"), l = B("Input");
2135
+ function ui(e, a, t, i, s, o) {
2136
+ const n = B("Table"), l = B("Input");
2137
2137
  return u(), m("div", ri, [
2138
2138
  t.title ? (u(), m("span", {
2139
2139
  key: 0,
2140
2140
  class: "h3",
2141
2141
  innerHTML: t.title
2142
2142
  }, null, 8, si)) : w("", !0),
2143
- C(o, N({
2143
+ C(n, N({
2144
2144
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2145
2145
  items: s.itemsData
2146
2146
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2147
2147
  f("form", {
2148
2148
  action: t.action,
2149
2149
  method: t.method,
2150
- onSubmit: a[0] || (a[0] = ft((d) => n.submitForm(...arguments), ["prevent"]))
2150
+ onSubmit: a[0] || (a[0] = ft((d) => o.submitForm(...arguments), ["prevent"]))
2151
2151
  }, [
2152
2152
  f("input", {
2153
2153
  type: "hidden",
@@ -2165,43 +2165,43 @@ function ui(e, a, t, i, s, n) {
2165
2165
  ], 40, li)
2166
2166
  ]);
2167
2167
  }
2168
- const Zi = /* @__PURE__ */ y(ni, [["render", ui]]);
2168
+ const Zi = /* @__PURE__ */ y(oi, [["render", ui]]);
2169
2169
  /*!
2170
- * iamKey v5.1.0-beta4
2170
+ * iamKey v5.1.0-beta6
2171
2171
  * Copyright 2022-2023 iamproperty
2172
2172
  */
2173
2173
  function mi(e, a) {
2174
2174
  function t(i, s) {
2175
- let n = !1, o = s.getAttribute("name");
2176
- o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
2177
- let l = i.querySelector(`[data-name="${o}"]`);
2178
- l && s.getAttribute("type") == "checkbox" && (n = !s.checked);
2175
+ let o = !1, n = s.getAttribute("name");
2176
+ n.includes("[]") && (n = n.replace("[]", `[${s.value}]`));
2177
+ let l = i.querySelector(`[data-name="${n}"]`);
2178
+ l && s.getAttribute("type") == "checkbox" && (o = !s.checked);
2179
2179
  let d = s.getAttribute("data-filter-text");
2180
- if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", o), l.innerHTML = d.replace("$value", s.value), (!s.value || n) && l.remove(), s.parentNode.closest("[data-filter-text]")) {
2180
+ 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]")) {
2181
2181
  let r = s.parentNode.closest("[data-filter-text]"), p = !0;
2182
- if (o = "", r.querySelectorAll("input").forEach((c, h) => {
2182
+ if (n = "", r.querySelectorAll("input").forEach((c, h) => {
2183
2183
  let g = c.getAttribute("name");
2184
- if (o += `${h != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
2184
+ if (n += `${h != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
2185
2185
  let b = document.createElement("button");
2186
2186
  b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", g), b.innerHTML = d.replace("$value", c.value), i.appendChild(b);
2187
2187
  } else
2188
2188
  p = !1;
2189
- }), i.querySelector(`[data-name="${o}"]`) && i.querySelector(`[data-name="${o}"]`).remove(), p) {
2189
+ }), i.querySelector(`[data-name="${n}"]`) && i.querySelector(`[data-name="${n}"]`).remove(), p) {
2190
2190
  let c = r.getAttribute("data-filter-text");
2191
2191
  r.querySelectorAll("input").forEach((g, b) => {
2192
2192
  let A = g.getAttribute("name");
2193
2193
  i.querySelector(`[data-name="${A}"]`) && i.querySelector(`[data-name="${A}"]`).remove(), c = c.replace(`$${b + 1}`, g.value);
2194
2194
  });
2195
2195
  let h = document.createElement("button");
2196
- h.setAttribute("type", "button"), h.classList.add("filter"), h.setAttribute("data-name", o), h.innerHTML = c, i.appendChild(h);
2196
+ h.setAttribute("type", "button"), h.classList.add("filter"), h.setAttribute("data-name", n), h.innerHTML = c, i.appendChild(h);
2197
2197
  }
2198
2198
  }
2199
2199
  }
2200
2200
  Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
2201
2201
  t(a, i);
2202
2202
  }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
2203
- i.addEventListener("change", function(n) {
2204
- t(a, i), n.stopPropagation();
2203
+ i.addEventListener("change", function(o) {
2204
+ t(a, i), o.stopPropagation();
2205
2205
  });
2206
2206
  }), e.addEventListener("change", function(i) {
2207
2207
  if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
@@ -2210,13 +2210,13 @@ function mi(e, a) {
2210
2210
  }
2211
2211
  }), a.addEventListener("click", function(i) {
2212
2212
  if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2213
- let o = i.target.closest(".filter"), l = o.getAttribute("data-name").split(",");
2213
+ let n = i.target.closest(".filter"), l = n.getAttribute("data-name").split(",");
2214
2214
  for (var s = 0; s < l.length; s++) {
2215
2215
  let d = l[s], r = `[name="${d}"]`;
2216
2216
  d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), r = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
2217
2217
  let p = e.querySelectorAll(r);
2218
- for (var n = 0; n < p.length; n++) {
2219
- let c = p[n];
2218
+ for (var o = 0; o < p.length; o++) {
2219
+ let c = p[o];
2220
2220
  if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
2221
2221
  c.value = "";
2222
2222
  else {
@@ -2226,7 +2226,7 @@ function mi(e, a) {
2226
2226
  }
2227
2227
  }
2228
2228
  }
2229
- o.remove();
2229
+ n.remove();
2230
2230
  }
2231
2231
  }, !1);
2232
2232
  }
@@ -2256,14 +2256,14 @@ window.customElements.get("iam-applied-filters") || window.customElements.define
2256
2256
  const pi = {
2257
2257
  name: "Header"
2258
2258
  };
2259
- function bi(e, a, t, i, s, n) {
2259
+ function bi(e, a, t, i, s, o) {
2260
2260
  return u(), m("iam-applied-filters", null, [
2261
2261
  _(e.$slots, "default")
2262
2262
  ]);
2263
2263
  }
2264
- const to = /* @__PURE__ */ y(pi, [["render", bi]]);
2264
+ const tn = /* @__PURE__ */ y(pi, [["render", bi]]);
2265
2265
  /*!
2266
- * iamKey v5.1.0-beta4
2266
+ * iamKey v5.1.0-beta6
2267
2267
  * Copyright 2022-2023 iamproperty
2268
2268
  */
2269
2269
  function fi(e, a) {
@@ -2328,12 +2328,12 @@ window.customElements.get("iam-filterlist") || window.customElements.define("iam
2328
2328
  const vi = {
2329
2329
  name: "Filter list"
2330
2330
  };
2331
- function wi(e, a, t, i, s, n) {
2331
+ function wi(e, a, t, i, s, o) {
2332
2332
  return u(), m("iam-filterlist", null, [
2333
2333
  _(e.$slots, "default")
2334
2334
  ]);
2335
2335
  }
2336
- const eo = /* @__PURE__ */ y(vi, [["render", wi]]);
2336
+ const en = /* @__PURE__ */ y(vi, [["render", wi]]);
2337
2337
  function _i(e) {
2338
2338
  if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2339
2339
  let t = document.querySelector(".notification__holder");
@@ -2372,12 +2372,12 @@ window.dataLayer.push({
2372
2372
  class xi extends HTMLElement {
2373
2373
  constructor() {
2374
2374
  super(), this.attachShadow({ mode: "open" });
2375
- 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";`, n = this.querySelectorAll("a,button");
2376
- Array.from(n).forEach((l, d) => {
2375
+ 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");
2376
+ Array.from(o).forEach((l, d) => {
2377
2377
  l.setAttribute("slot", "btns"), l.classList.add("link");
2378
- }), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2379
- const o = document.createElement("template");
2380
- o.innerHTML = `
2378
+ }), (o.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2379
+ const n = document.createElement("template");
2380
+ n.innerHTML = `
2381
2381
  <style>
2382
2382
  @import "${t}";
2383
2383
  ${i}
@@ -2386,10 +2386,10 @@ class xi extends HTMLElement {
2386
2386
 
2387
2387
  <div class="notification">
2388
2388
  <div class="notification__icon"><slot name="icon"></slot></div>
2389
- <div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2389
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${o.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2390
2390
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2391
2391
  </div>
2392
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
2392
+ `, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
2393
2393
  }
2394
2394
  connectedCallback() {
2395
2395
  const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
@@ -2423,17 +2423,17 @@ const ki = {
2423
2423
  });
2424
2424
  }
2425
2425
  };
2426
- function Li(e, a, t, i, s, n) {
2426
+ function Li(e, a, t, i, s, o) {
2427
2427
  return u(), m("iam-notification", null, [
2428
2428
  _(e.$slots, "default")
2429
2429
  ]);
2430
2430
  }
2431
- const ao = /* @__PURE__ */ y(ki, [["render", Li]]), Si = {
2431
+ const an = /* @__PURE__ */ y(ki, [["render", Li]]), Si = {
2432
2432
  name: "Actionbar",
2433
2433
  props: {},
2434
2434
  mounted() {
2435
2435
  this.$nextTick(function() {
2436
- D(/* @__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-7bb6c7e1.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
2436
+ D(/* @__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-ee24acc0.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
2437
2437
  window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
2438
2438
  }).catch((e) => {
2439
2439
  console.log(e.message);
@@ -2441,27 +2441,27 @@ const ao = /* @__PURE__ */ y(ki, [["render", Li]]), Si = {
2441
2441
  });
2442
2442
  }
2443
2443
  };
2444
- function $i(e, a, t, i, s, n) {
2444
+ function $i(e, a, t, i, s, o) {
2445
2445
  return u(), m("iam-actionbar", null, [
2446
2446
  _(e.$slots, "default")
2447
2447
  ]);
2448
2448
  }
2449
- const io = /* @__PURE__ */ y(Si, [["render", $i]]), qi = {
2449
+ const nn = /* @__PURE__ */ y(Si, [["render", $i]]), qi = {
2450
2450
  name: "Pagination",
2451
2451
  props: {},
2452
2452
  computed: {},
2453
2453
  created() {
2454
2454
  this.$nextTick(function() {
2455
- window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
2455
+ window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
2456
2456
  });
2457
2457
  },
2458
2458
  updated() {
2459
2459
  }
2460
2460
  };
2461
- function Ei(e, a, t, i, s, n) {
2461
+ function Ei(e, a, t, i, s, o) {
2462
2462
  return u(), m("iam-pagination");
2463
2463
  }
2464
- const oo = /* @__PURE__ */ y(qi, [["render", Ei]]), Ti = {
2464
+ const on = /* @__PURE__ */ y(qi, [["render", Ei]]), Ti = {
2465
2465
  name: "Address Lookup",
2466
2466
  mounted() {
2467
2467
  this.$nextTick(function() {
@@ -2473,14 +2473,14 @@ const oo = /* @__PURE__ */ y(qi, [["render", Ei]]), Ti = {
2473
2473
  });
2474
2474
  }
2475
2475
  };
2476
- function Hi(e, a, t, i, s, n) {
2476
+ function Hi(e, a, t, i, s, o) {
2477
2477
  return u(), m("iam-address-lookup", null, [
2478
2478
  _(e.$slots, "default")
2479
2479
  ]);
2480
2480
  }
2481
- const no = /* @__PURE__ */ y(Ti, [["render", Hi]]);
2481
+ const rn = /* @__PURE__ */ y(Ti, [["render", Hi]]);
2482
2482
  /*!
2483
- * iamKey v5.1.0-beta4
2483
+ * iamKey v5.1.0-beta6
2484
2484
  * Copyright 2022-2023 iamproperty
2485
2485
  */
2486
2486
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
@@ -2514,7 +2514,7 @@ class Mi extends HTMLElement {
2514
2514
  }
2515
2515
  connectedCallback() {
2516
2516
  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");
2517
- 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", (n) => {
2517
+ 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) => {
2518
2518
  a.classList.contains("open") ? (a.classList.remove("open"), s.removeAttribute("aria-expanded"), setTimeout(function() {
2519
2519
  t.classList.add("closed");
2520
2520
  }, 1e3), a.classList.add("pe-none"), setTimeout(function() {
@@ -2522,11 +2522,11 @@ class Mi extends HTMLElement {
2522
2522
  }, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
2523
2523
  a.classList.add("open"), s.setAttribute("aria-expanded", !0);
2524
2524
  }, 100));
2525
- }), a.addEventListener("mouseenter", (n) => {
2525
+ }), a.addEventListener("mouseenter", (o) => {
2526
2526
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
2527
- }), a.addEventListener("mousemove", (n) => {
2527
+ }), a.addEventListener("mousemove", (o) => {
2528
2528
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
2529
- }), a.addEventListener("mouseleave", (n) => {
2529
+ }), a.addEventListener("mouseleave", (o) => {
2530
2530
  window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
2531
2531
  t.classList.add("closed");
2532
2532
  }, 1e3));
@@ -2540,31 +2540,31 @@ const ji = {
2540
2540
  mounted() {
2541
2541
  }
2542
2542
  };
2543
- function Ci(e, a, t, i, s, n) {
2543
+ function Ci(e, a, t, i, s, o) {
2544
2544
  return u(), m("iam-collapsible-side", null, [
2545
2545
  _(e.$slots, "default")
2546
2546
  ]);
2547
2547
  }
2548
- const ro = /* @__PURE__ */ y(ji, [["render", Ci]]);
2548
+ const sn = /* @__PURE__ */ y(ji, [["render", Ci]]);
2549
2549
  export {
2550
2550
  Fi as Accordion,
2551
2551
  Pi as AccordionItem,
2552
- io as Actionbar,
2553
- no as AddressLookup,
2554
- to as AppliedFilters,
2552
+ nn as Actionbar,
2553
+ rn as AddressLookup,
2554
+ tn as AppliedFilters,
2555
2555
  Ii as Banner,
2556
2556
  Me as Card,
2557
2557
  Oi as Carousel,
2558
- ro as CollapsibleSideMenu,
2558
+ sn as CollapsibleSideMenu,
2559
2559
  zi as FileUpload,
2560
- eo as Filterlist,
2560
+ en as Filterlist,
2561
2561
  Bi as Header,
2562
2562
  st as Input,
2563
2563
  Di as Logo,
2564
2564
  Gi as Nav,
2565
2565
  Zi as NoteFeed,
2566
- ao as Notification,
2567
- oo as Pagination,
2566
+ an as Notification,
2567
+ on as Pagination,
2568
2568
  Wi as PropertySearchbar,
2569
2569
  Yi as Snapshot,
2570
2570
  Xi as Step,