@iamproperty/components 3.7.4 → 3.7.5

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 (71) hide show
  1. package/assets/css/components/card.css +1 -1
  2. package/assets/css/components/card.css.map +1 -1
  3. package/assets/css/components/dialog.css +1 -1
  4. package/assets/css/components/dialog.css.map +1 -1
  5. package/assets/css/components/notification.css +1 -0
  6. package/assets/css/components/notification.css.map +1 -0
  7. package/assets/css/components/table.css +1 -1
  8. package/assets/css/components/table.css.map +1 -1
  9. package/assets/css/core.min.css +1 -1
  10. package/assets/css/core.min.css.map +1 -1
  11. package/assets/css/style.min.css +1 -1
  12. package/assets/css/style.min.css.map +1 -1
  13. package/assets/js/bundle.js +3 -0
  14. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  15. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  16. package/assets/js/components/card/card.component.min.js +2 -2
  17. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  18. package/assets/js/components/header/header.component.min.js +1 -1
  19. package/assets/js/components/notification/notification.component.js +71 -0
  20. package/assets/js/components/notification/notification.component.min.js +18 -0
  21. package/assets/js/components/notification/notification.component.min.js.map +1 -0
  22. package/assets/js/components/pagination/pagination.component.js +2 -2
  23. package/assets/js/components/pagination/pagination.component.min.js +11 -11
  24. package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
  25. package/assets/js/components/table/table.component.js +2 -2
  26. package/assets/js/components/table/table.component.min.js +11 -11
  27. package/assets/js/components/table/table.component.min.js.map +1 -1
  28. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  29. package/assets/js/dynamic.js +3 -0
  30. package/assets/js/dynamic.min.js +14 -2
  31. package/assets/js/dynamic.min.js.map +1 -1
  32. package/assets/js/flat-components.js +6 -0
  33. package/assets/js/modules/helpers.js +13 -0
  34. package/assets/js/modules/notification.js +53 -0
  35. package/assets/js/modules/table.js +1 -1
  36. package/assets/js/scripts.bundle.js +27 -15
  37. package/assets/js/scripts.bundle.js.map +1 -1
  38. package/assets/js/scripts.bundle.min.js +2 -2
  39. package/assets/js/scripts.bundle.min.js.map +1 -1
  40. package/assets/sass/_components.scss +1 -1
  41. package/assets/sass/components/card.scss +7 -2
  42. package/assets/sass/components/dialog.scss +14 -10
  43. package/assets/sass/components/notification.scss +195 -0
  44. package/assets/sass/components/table.scss +2 -4
  45. package/assets/sass/foundations/reboot.scss +48 -1
  46. package/assets/sass/foundations/root.scss +3 -3
  47. package/assets/ts/bundle.ts +4 -0
  48. package/assets/ts/components/notification/README.md +32 -0
  49. package/assets/ts/components/notification/notification.component.ts +90 -0
  50. package/assets/ts/components/pagination/pagination.component.ts +3 -2
  51. package/assets/ts/components/table/table.component.ts +4 -3
  52. package/assets/ts/dynamic.ts +6 -0
  53. package/assets/ts/flat-components.ts +8 -0
  54. package/assets/ts/modules/helpers.ts +17 -0
  55. package/assets/ts/modules/notification.ts +76 -0
  56. package/assets/ts/modules/table.ts +1 -1
  57. package/dist/components.es.js +669 -645
  58. package/dist/components.umd.js +37 -25
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
  61. package/src/components/Notification/Notification.vue +24 -0
  62. package/src/components/Notification/README.md +32 -0
  63. package/src/index.js +2 -1
  64. package/assets/css/components/alert.css +0 -1
  65. package/assets/css/components/alert.css.map +0 -1
  66. package/assets/js/modules/alert.js +0 -41
  67. package/assets/sass/components/alert.scss +0 -121
  68. package/assets/ts/modules/alert.ts +0 -58
  69. package/src/components/Alert/Alert.spec.js +0 -49
  70. package/src/components/Alert/Alert.vue +0 -39
  71. package/src/components/Alert/README.md +0 -29
@@ -1,10 +1,10 @@
1
- import { openBlock as u, createElementBlock as m, normalizeClass as w, createElementVNode as d, toDisplayString as $, createCommentVNode as g, Fragment as T, renderList as M, renderSlot as _, withDirectives as z, mergeProps as H, vModelDynamic as V, vModelText as le, vModelSelect as ce, resolveComponent as N, createVNode as x, createTextVNode as de, normalizeStyle as ue, withModifiers as me } from "vue";
2
- const S = (t, a) => {
3
- const e = t.__vccOpts || t;
1
+ import { openBlock as u, createElementBlock as m, normalizeClass as A, createElementVNode as d, toDisplayString as q, createCommentVNode as g, Fragment as T, renderList as M, renderSlot as _, withDirectives as z, mergeProps as H, vModelDynamic as V, vModelText as ct, vModelSelect as dt, resolveComponent as N, createVNode as x, createTextVNode as ut, withModifiers as mt } from "vue";
2
+ const S = (e, a) => {
3
+ const t = e.__vccOpts || e;
4
4
  for (const [r, s] of a)
5
- e[r] = s;
6
- return e;
7
- }, he = {
5
+ t[r] = s;
6
+ return t;
7
+ }, ht = {
8
8
  name: "Logo",
9
9
  props: {
10
10
  id: {
@@ -29,56 +29,56 @@ const S = (t, a) => {
29
29
  return "brand brand--" + this.id;
30
30
  }
31
31
  }
32
- }, fe = ["xlink:href"], be = ["innerHTML"];
33
- function pe(t, a, e, r, s, i) {
32
+ }, ft = ["xlink:href"], bt = ["innerHTML"];
33
+ function pt(e, a, t, r, s, i) {
34
34
  return u(), m("div", {
35
- class: w(i.className)
35
+ class: A(i.className)
36
36
  }, [
37
37
  (u(), m("svg", null, [
38
- d("title", null, "iam " + $(e.id), 1),
38
+ d("title", null, "iam " + q(t.id), 1),
39
39
  d("use", {
40
- "xlink:href": e.path + i.src
41
- }, null, 8, fe)
40
+ "xlink:href": t.path + i.src
41
+ }, null, 8, ft)
42
42
  ])),
43
- e.desc ? (u(), m("span", {
43
+ t.desc ? (u(), m("span", {
44
44
  key: 0,
45
- innerHTML: e.desc
46
- }, null, 8, be)) : g("", !0)
45
+ innerHTML: t.desc
46
+ }, null, 8, bt)) : g("", !0)
47
47
  ], 2);
48
48
  }
49
- const ye = /* @__PURE__ */ S(he, [["render", pe]]);
49
+ const yt = /* @__PURE__ */ S(ht, [["render", pt]]);
50
50
  /*!
51
- * iamKey v3.7.4
51
+ * iamKey v3.7.5
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
- const ge = function(t) {
55
- return typeof t != "string" ? !1 : !isNaN(t) && !isNaN(parseFloat(t));
56
- }, _e = (t, a) => String(t).padStart(a, "0"), ve = (t) => t.charAt(0).toUpperCase() + t.slice(1), W = function(t, a) {
57
- if (!t.getAttribute("data-pages"))
54
+ const gt = function(e) {
55
+ return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
+ }, _t = (e, a) => String(e).padStart(a, "0"), vt = (e) => e.charAt(0).toUpperCase() + e.slice(1), G = function(e, a) {
57
+ if (!e.getAttribute("data-pages"))
58
58
  return !1;
59
- t.getAttribute("data-page") || t.setAttribute("data-page", 1);
60
- let e = t.getAttribute("data-page"), r = t.getAttribute("data-pages"), s = t.getAttribute("data-total"), i = t.getAttribute("data-show"), o = t.getAttribute("data-increment");
59
+ e.getAttribute("data-page") || e.setAttribute("data-page", 1);
60
+ let t = e.getAttribute("data-page"), r = e.getAttribute("data-pages"), s = e.getAttribute("data-total"), i = e.getAttribute("data-show"), o = e.getAttribute("data-increment");
61
61
  if (r <= 1)
62
62
  return a.innerHTML = "", !1;
63
63
  let c = "";
64
64
  for (let n = 1; n <= r; n++)
65
- n == e ? c += `<li class="page-item active" aria-current="page"><span class="page-link">${n}</span></li>` : c += `<li class="page-item"><a href="?page=${n}" class="page-link" data-page="${n}">${n}</a></li>`;
65
+ n == t ? c += `<li class="page-item active" aria-current="page"><span class="page-link">${n}</span></li>` : c += `<li class="page-item"><a href="?page=${n}" class="page-link" data-page="${n}">${n}</a></li>`;
66
66
  return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
67
- ${e == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(e) - 1}" class="page-link" data-page="${parseInt(e) - 1}">Previous</a></li>`}
67
+ ${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>`}
68
68
  ${c}
69
- ${e == r ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(e) + 1}" class="page-link" data-page="${parseInt(e) + 1}">Next</a></li>`}
69
+ ${t == r ? '<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>`}
70
70
  </ul>`, a.innerHTML += `<div class="d-sm-none text-center">
71
71
  <span class="d-block pb-2">You've viewed ${i} of ${s} results</span>
72
72
  <a href="?show=${parseInt(i) + parseInt(o)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(i) + parseInt(o)}">Load more results</a>
73
73
  </div>`, !0;
74
74
  };
75
- var we = function(t, a, e, r) {
75
+ var wt = function(e, a, t, r) {
76
76
  function s(i) {
77
- return i instanceof e ? i : new e(function(o) {
77
+ return i instanceof t ? i : new t(function(o) {
78
78
  o(i);
79
79
  });
80
80
  }
81
- return new (e || (e = Promise))(function(i, o) {
81
+ return new (t || (t = Promise))(function(i, o) {
82
82
  function c(h) {
83
83
  try {
84
84
  l(r.next(h));
@@ -96,13 +96,13 @@ var we = function(t, a, e, r) {
96
96
  function l(h) {
97
97
  h.done ? i(h.value) : s(h.value).then(c, n);
98
98
  }
99
- l((r = r.apply(t, a || [])).next());
99
+ l((r = r.apply(e, a || [])).next());
100
100
  });
101
101
  };
102
- const J = (t) => {
103
- const a = Array.from(t.querySelectorAll("thead th"));
104
- Array.from(t.querySelectorAll("tbody tr")).forEach((e, r) => {
105
- const s = Array.from(e.querySelectorAll("th, td")), i = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "incomplete", "completed", "requires approval"];
102
+ const X = (e) => {
103
+ const a = Array.from(e.querySelectorAll("thead th"));
104
+ Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
105
+ const s = Array.from(t.querySelectorAll("th, td")), i = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "overdue", "incomplete", "complete", "completed", "approval required", "requires approval", "to do", "not started", "warning", "error"];
106
106
  s.forEach((o, c) => {
107
107
  const n = a[c];
108
108
  if (typeof n < "u") {
@@ -113,20 +113,20 @@ const J = (t) => {
113
113
  }
114
114
  });
115
115
  });
116
- }, Ae = (t) => {
116
+ }, At = (e) => {
117
117
  let a = 0;
118
- return Array.from(t.querySelectorAll("tbody tr")).forEach((e, r) => {
119
- let s = window.getComputedStyle(document.querySelector("html")), i = e.querySelector(":scope > *:last-child > *:first-child");
118
+ return Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
119
+ let s = window.getComputedStyle(document.querySelector("html")), i = t.querySelector(":scope > *:last-child > *:first-child");
120
120
  if (i) {
121
121
  i.classList.add("text-nowrap");
122
122
  let o = i.offsetWidth / parseFloat(s.fontSize);
123
123
  o += 1.7, a = a > o ? a : o;
124
124
  }
125
125
  }), a;
126
- }, Se = (t) => {
127
- if (t.closest(".table--fullwidth") || t.querySelectorAll("thead tr th").length < 4)
126
+ }, St = (e) => {
127
+ if (e.closest(".table--fullwidth") || e.querySelectorAll("thead tr th").length < 4)
128
128
  return !1;
129
- Array.from(t.querySelectorAll("tbody tr")).forEach((a, e) => {
129
+ Array.from(e.querySelectorAll("tbody tr")).forEach((a, t) => {
130
130
  let r = a.querySelector(":scope > :is(td,th):first-child"), s = r.textContent;
131
131
  if (s != "")
132
132
  r.innerHTML = `<span class="td__content">${s}</span><button type="button" class="d-none">${s}</button>`;
@@ -135,25 +135,25 @@ const J = (t) => {
135
135
  i.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
136
136
  }
137
137
  });
138
- }, ke = (t) => {
139
- t.addEventListener("click", (a) => {
138
+ }, kt = (e) => {
139
+ e.addEventListener("click", (a) => {
140
140
  if (a && a.target instanceof HTMLElement && a.target.closest("tr > :is(td,th):first-child button")) {
141
- let e = a.target.closest("tr > :is(td,th):first-child button"), r = e.parentNode.closest("tr");
142
- r.getAttribute("data-view") == "full" ? r.setAttribute("data-view", "default") : r.setAttribute("data-view", "full"), e.blur();
141
+ let t = a.target.closest("tr > :is(td,th):first-child button"), r = t.parentNode.closest("tr");
142
+ r.getAttribute("data-view") == "full" ? r.setAttribute("data-view", "default") : r.setAttribute("data-view", "full"), t.blur();
143
143
  }
144
144
  });
145
- }, X = (t, a) => {
146
- let e = a.querySelector("[data-search]");
147
- if (!e)
145
+ }, Q = (e, a) => {
146
+ let t = a.querySelector("[data-search]");
147
+ if (!t)
148
148
  return !1;
149
- const r = e.getAttribute("id"), s = e.getAttribute("data-search").split(",");
150
- let i = e.parentNode, o = {};
149
+ const r = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
150
+ let i = t.parentNode, o = {};
151
151
  s.forEach((c, n) => {
152
- Array.from(t.querySelectorAll('td[data-label="' + c.trim() + '"]')).forEach((l, h) => {
152
+ Array.from(e.querySelectorAll('td[data-label="' + c.trim() + '"]')).forEach((l, h) => {
153
153
  l.querySelector(".td__content") ? o[l.querySelector(".td__content").textContent] = l.querySelector(".td__content").textContent : o[l.textContent] = l.textContent;
154
154
  });
155
- }), e.setAttribute("list", `${r}_list`), e.setAttribute("autocomplete", "off"), i.querySelector("datalist") || (i.innerHTML += `<datalist id="${r}_list"></datalist>`), i.querySelector("datalist").innerHTML = `${Object.keys(o).map((c) => `<option value="${c}"></option>`).join("")}`;
156
- }, Le = (t, a, e, r, s) => {
155
+ }), t.setAttribute("list", `${r}_list`), t.setAttribute("autocomplete", "off"), i.querySelector("datalist") || (i.innerHTML += `<datalist id="${r}_list"></datalist>`), i.querySelector("datalist").innerHTML = `${Object.keys(o).map((c) => `<option value="${c}"></option>`).join("")}`;
156
+ }, Lt = (e, a, t, r, s) => {
157
157
  var i;
158
158
  let o = function(l = !1) {
159
159
  if (a.hasAttribute("data-ajax")) {
@@ -161,18 +161,18 @@ const J = (t) => {
161
161
  let h = a.querySelector("[data-pagination]");
162
162
  h.value = 1, r.setAttribute("data-page", 1);
163
163
  }
164
- te(t, a, e, r);
164
+ at(e, a, t, r);
165
165
  } else
166
- a.hasAttribute("data-submit") ? a.submit() : (Q(t, a, r), W(r, e), K(t, a));
166
+ a.hasAttribute("data-submit") ? a.submit() : (tt(e, a, r), G(r, t), K(e, a));
167
167
  };
168
168
  a.addEventListener("keyup", (l) => {
169
169
  clearTimeout(i), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (i = setTimeout(function() {
170
170
  o();
171
171
  }, 500));
172
172
  }), a.addEventListener("change", (l) => {
173
- clearTimeout(i), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Y(t, a, s), o()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && o();
173
+ clearTimeout(i), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Z(e, a, s), o()), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && o(), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && o();
174
174
  }), a.addEventListener("click", (l) => {
175
- clearTimeout(i), 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") || Y(t, a, s), o());
175
+ clearTimeout(i), 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, s), o());
176
176
  }), a.addEventListener("submit", (l) => {
177
177
  clearTimeout(i), a.hasAttribute("data-submit") || l.preventDefault(), o();
178
178
  }), a.addEventListener("force", (l) => {
@@ -190,17 +190,17 @@ const J = (t) => {
190
190
  }), c.forEach((l, h) => {
191
191
  const f = function() {
192
192
  let b = [], y = new FormData(l);
193
- for (const [p, A] of y)
194
- document.querySelector(`[data-mimic="${p}"]`) && !b.includes(p) ? (b.push(p), document.querySelector(`[data-mimic="${p}"]`).value = A) : document.querySelector(`[data-mimic="${p}"]`) && (document.querySelector(`[data-mimic="${p}"]`).value += "," + A);
193
+ for (const [p, w] of y)
194
+ document.querySelector(`[data-mimic="${p}"]`) && !b.includes(p) ? (b.push(p), document.querySelector(`[data-mimic="${p}"]`).value = w) : document.querySelector(`[data-mimic="${p}"]`) && (document.querySelector(`[data-mimic="${p}"]`).value += "," + w);
195
195
  for (const p of b) {
196
- const A = new Event("force");
197
- a.dispatchEvent(A);
196
+ const w = new Event("force");
197
+ a.dispatchEvent(w);
198
198
  }
199
199
  for (const p of n)
200
200
  if (!y.has(p) && l.querySelector(`[name="${p}"]`)) {
201
201
  document.querySelector(`[data-mimic="${p}"]`).value = "";
202
- const A = new Event("force");
203
- a.dispatchEvent(A);
202
+ const w = new Event("force");
203
+ a.dispatchEvent(w);
204
204
  }
205
205
  };
206
206
  l.addEventListener("force", (b) => {
@@ -209,29 +209,29 @@ const J = (t) => {
209
209
  f();
210
210
  });
211
211
  });
212
- }, Y = (t, a, e) => {
212
+ }, Z = (e, a, t) => {
213
213
  if (a.getAttribute("data-ajax"))
214
214
  return !1;
215
- let r = t.querySelector("tbody"), s = a.querySelector("[data-sort]"), i = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = i.getAttribute("data-sort"), c = i.getAttribute("data-order"), n = i.getAttribute("data-format");
215
+ let r = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), i = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = i.getAttribute("data-sort"), c = i.getAttribute("data-order"), n = i.getAttribute("data-format");
216
216
  if (!o)
217
- return r.innerHTML = e.innerHTML, J(t), !1;
217
+ return r.innerHTML = t.innerHTML, X(e), !1;
218
218
  let l = [];
219
219
  ["asc", "desc", "descending"].includes(c) || (l = c.split(","));
220
220
  let h = [];
221
221
  Array.from(r.querySelectorAll("tr")).forEach((b, y) => {
222
222
  let p = b.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
223
- l.length && l.includes(p) && (p = l.indexOf(p)), ge(p) && (p = _e(p, 10)), n && n == "date" && (p = new Date(p));
224
- const A = { index: p, row: b };
225
- h.push(A);
223
+ l.length && l.includes(p) && (p = l.indexOf(p)), gt(p) && (p = _t(p, 10)), n && n == "date" && (p = new Date(p));
224
+ const w = { index: p, row: b };
225
+ h.push(w);
226
226
  }), h.sort((b, y) => b.index > y.index ? 1 : -1), (c == "descending" || c == "desc") && (h = h.reverse());
227
227
  let f = "";
228
228
  h.forEach((b, y) => {
229
229
  f += b.row.outerHTML;
230
230
  }), r.innerHTML = f;
231
- }, Q = (t, a, e) => {
232
- t.classList.remove("table--filtered");
231
+ }, tt = (e, a, t) => {
232
+ e.classList.remove("table--filtered");
233
233
  let r = [], s = [], i = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, c = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
234
- if (Array.from(t.querySelectorAll("tbody tr")).forEach((n, l) => {
234
+ if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, l) => {
235
235
  n.classList.remove("filtered"), n.classList.remove("filtered--matched"), n.classList.remove("filtered--show"), n.removeAttribute("data-filtered-by");
236
236
  }), Array.from(a.querySelectorAll("[data-filter]")).forEach((n, l) => {
237
237
  if (!(n.type == "radio" && !n.checked) && !(n.type == "checkbox" && !n.checked)) {
@@ -253,63 +253,63 @@ const J = (t) => {
253
253
  n.innerHTML = "";
254
254
  }), r.length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, l) => {
255
255
  n.innerHTML += `(${r.length})`;
256
- }), t.classList.add("table--filtered");
256
+ }), e.classList.add("table--filtered");
257
257
  for (const [n, l] of Object.entries(r))
258
- Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach((h, f) => {
258
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((h, f) => {
259
259
  let b = !1;
260
260
  l.forEach((y, p) => {
261
- let A = h.querySelector(`[data-label="${n}"]`);
261
+ let w = h.querySelector(`[data-label="${n}"]`);
262
262
  if (y && y == "$today")
263
263
  y = U("date", /* @__PURE__ */ new Date());
264
264
  else if (y && y == "$yesterday") {
265
265
  let k = /* @__PURE__ */ new Date();
266
266
  k.setDate(k.getDate() - 1), y = U("date", k);
267
267
  } else if (y && (y == "$thisWeek" || y == "$lastWeek")) {
268
- let k = /* @__PURE__ */ new Date(), q = new Date(k.setDate(k.getDate() - (k.getDay() - 1))), v = new Date(k.setDate(k.getDate() - k.getDay() + 7)), L = new Date(A.textContent.toLowerCase());
269
- if (k.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), y == "$thisWeek")
270
- b = L >= q && L <= v;
268
+ let k = /* @__PURE__ */ new Date(), $ = new Date(k.setDate(k.getDate() - (k.getDay() - 1))), v = new Date(k.setDate(k.getDate() - k.getDay() + 7)), L = new Date(w.textContent.toLowerCase());
269
+ if (k.setHours(0, 0, 0, 0), $.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), y == "$thisWeek")
270
+ b = L >= $ && L <= v;
271
271
  else {
272
- let E = new Date(q.setDate(q.getDate() - 7)), D = new Date(v.setDate(v.getDate() - 7));
272
+ let E = new Date($.setDate($.getDate() - 7)), D = new Date(v.setDate(v.getDate() - 7));
273
273
  E.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), b = L >= E && L <= D;
274
274
  }
275
275
  } else if (y && y == "$thisMonth") {
276
- let k = /* @__PURE__ */ new Date(), q = k.getFullYear(), v = k.getMonth();
277
- var I = new Date(q, v, 1), R = new Date(q, v + 1, 0);
278
- let L = new Date(A.textContent.toLowerCase());
276
+ let k = /* @__PURE__ */ new Date(), $ = k.getFullYear(), v = k.getMonth();
277
+ var I = new Date($, v, 1), R = new Date($, v + 1, 0);
278
+ let L = new Date(w.textContent.toLowerCase());
279
279
  I.setHours(0, 0, 0, 0), R.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), b = L >= I && L <= R;
280
280
  } else if (y && y == "$lastMonth") {
281
- let k = /* @__PURE__ */ new Date(), q = k.getFullYear(), v = k.getMonth();
282
- var P = new Date(q, v - 1, 1), C = new Date(q, v, 0);
283
- let L = new Date(A.textContent.toLowerCase());
281
+ let k = /* @__PURE__ */ new Date(), $ = k.getFullYear(), v = k.getMonth();
282
+ var P = new Date($, v - 1, 1), C = new Date($, v, 0);
283
+ let L = new Date(w.textContent.toLowerCase());
284
284
  P.setHours(0, 0, 0, 0), C.setHours(0, 0, 0, 0), L.setHours(0, 0, 0, 0), b = L >= P && L <= C;
285
285
  }
286
- A && A.textContent.toLowerCase().includes(y.toLowerCase()) && (b = !0);
286
+ w && w.textContent.toLowerCase().includes(y.toLowerCase()) && (b = !0);
287
287
  }), b || (h.classList.add("filtered"), h.setAttribute("data-filtered-by", n));
288
288
  });
289
- Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, l) => {
289
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, l) => {
290
290
  let h = !(s.length > 0 && s[0].value.length >= 3);
291
291
  s.forEach((f, b) => {
292
292
  let y = n.querySelector(`[data-label="${f.column}"]`);
293
293
  y && f.value.length >= 3 && y.textContent.toLowerCase().includes(f.value.toLowerCase()) && (h = !0);
294
294
  }), h || n.classList.add("filtered");
295
- }), Array.from(t.querySelectorAll("tbody tr:not(.filtered")).forEach((n, l) => {
295
+ }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, l) => {
296
296
  i++, n.classList.add("filtered--matched"), Math.ceil(i / c) == parseInt(o) && n.classList.add("filtered--show");
297
- }), e && (e.setAttribute("data-page", o), e.setAttribute("data-pages", Math.ceil(i / c)), e.setAttribute("data-total", i), e.setAttribute("data-show", c));
298
- }, K = (t, a, e) => {
297
+ }), t && (t.setAttribute("data-page", o), t.setAttribute("data-pages", Math.ceil(i / c)), t.setAttribute("data-total", i), t.setAttribute("data-show", c));
298
+ }, K = (e, a, t) => {
299
299
  Array.from(a.querySelectorAll("[data-query]")).forEach((r, s) => {
300
300
  let i = r.getAttribute("data-query"), o;
301
301
  if (i == "total")
302
- e.hasAttribute("data-total") ? o = e.getAttribute("data-total") : o = (t.classList.contains("table--filtered"), t.querySelectorAll("tbody tr").length);
302
+ t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
303
303
  else if (!i.includes(" == ") && i.includes(" & ")) {
304
304
  let c = i.split(" & "), n = "";
305
305
  c.forEach((l) => {
306
306
  n += `:not([data-filtered-by="${l}"])`;
307
- }), o = Array.from(t.querySelectorAll(`tbody tr${n}`)).length;
307
+ }), o = Array.from(e.querySelectorAll(`tbody tr${n}`)).length;
308
308
  } else if (!i.includes(" == "))
309
- o = Array.from(t.querySelectorAll(`tbody tr:not([data-filtered-by="${i}"])`)).length;
309
+ o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${i}"])`)).length;
310
310
  else if (i.includes(" && ")) {
311
311
  let c = i.split(" && ");
312
- o = Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
312
+ o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
313
313
  let l = !0;
314
314
  for (const [h, f] of Object.entries(c)) {
315
315
  let b = f.split(" == ");
@@ -319,22 +319,22 @@ const J = (t) => {
319
319
  }).length;
320
320
  } else {
321
321
  let c = i.split(" == ");
322
- o = Array.from(t.querySelectorAll(`tbody tr.filtered--matched td[data-label="${c[0]}"], tbody tr[data-filtered-by="${c[0]}"] td[data-label="${c[0]}"]`)).filter(function(n) {
322
+ o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${c[0]}"], tbody tr[data-filtered-by="${c[0]}"] td[data-label="${c[0]}"]`)).filter(function(n) {
323
323
  return n.textContent === c[1];
324
324
  }).length;
325
325
  }
326
326
  r.hasAttribute("data-total") ? r.setAttribute("data-total", o) : r.innerHTML = o;
327
327
  });
328
- }, xe = function(t, a, e, r) {
329
- e.addEventListener("click", (s) => {
328
+ }, xt = function(e, a, t, r) {
329
+ t.addEventListener("click", (s) => {
330
330
  if (s && s.target instanceof HTMLElement && s.target.closest("[data-page]")) {
331
331
  s.preventDefault();
332
332
  let i = a.querySelector("[data-pagination]"), o = s.target.closest("[data-page]").getAttribute("data-page");
333
- if (i.value = o, r.setAttribute("data-page", o), a.dispatchEvent(new Event("paginate")), t.hasAttribute("data-show-history")) {
333
+ if (i.value = o, r.setAttribute("data-page", o), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
334
334
  const l = new URL(location);
335
335
  l.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", l);
336
336
  }
337
- const c = -250, n = t.getBoundingClientRect().top + window.pageYOffset + c;
337
+ const c = -250, n = e.getBoundingClientRect().top + window.pageYOffset + c;
338
338
  window.scrollTo({ top: n, behavior: "smooth" });
339
339
  }
340
340
  if (s && s.target instanceof HTMLElement && s.target.closest("[data-show]")) {
@@ -343,15 +343,15 @@ const J = (t) => {
343
343
  i.value = o, r.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
344
344
  }
345
345
  });
346
- }, qe = (t, a) => {
347
- if (!t)
346
+ }, $t = (e, a) => {
347
+ if (!e)
348
348
  return !1;
349
- t.addEventListener("click", (e) => {
350
- $e(a);
349
+ e.addEventListener("click", (t) => {
350
+ qt(a);
351
351
  });
352
- }, $e = function(t) {
353
- for (var a = [], e = t.getElementsByTagName("tr"), r = 0; r < e.length; r++) {
354
- for (var s = e[r].querySelectorAll("td,th"), i = [], o = 0; o < s.length; o++)
352
+ }, qt = function(e) {
353
+ for (var a = [], t = e.getElementsByTagName("tr"), r = 0; r < t.length; r++) {
354
+ for (var s = t[r].querySelectorAll("td,th"), i = [], o = 0; o < s.length; o++)
355
355
  i.push(`"${s[o].textContent}"`);
356
356
  a.push(i.join(","));
357
357
  }
@@ -362,57 +362,57 @@ const J = (t) => {
362
362
  n.download = "export.csv";
363
363
  var l = window.URL.createObjectURL(c);
364
364
  n.href = l, n.style.display = "none", document.body.appendChild(n), n.click(), document.body.removeChild(n);
365
- }, ee = function(t, a, e, r) {
366
- if (J(t), Se(t), K(t, a, r), r && r.classList.contains("table--cta")) {
365
+ }, et = function(e, a, t, r) {
366
+ if (X(e), St(e), K(e, a, r), r && r.classList.contains("table--cta")) {
367
367
  let s = function() {
368
- Array.from(t.querySelectorAll("tr")).forEach((i, o) => {
368
+ Array.from(e.querySelectorAll("tr")).forEach((i, o) => {
369
369
  let c = i.offsetHeight;
370
370
  i.style.setProperty("--row-height", `${c}px`);
371
371
  });
372
372
  };
373
373
  if (!r.hasAttribute("data-cta-width")) {
374
- const i = Ae(t);
374
+ const i = At(e);
375
375
  r.style.setProperty("--cta-width", `${i}rem`), r.setAttribute("data-cta-width", `${i}rem`);
376
376
  }
377
- new ResizeObserver(s).observe(t);
377
+ new ResizeObserver(s).observe(e);
378
378
  }
379
- }, te = function(t, a, e, r) {
380
- return we(this, void 0, void 0, function* () {
381
- const s = (f, b, y) => b.split(/[\.\[\]\'\"]/).filter((p) => p).reduce((p, A) => p ? p[A] : y, f);
382
- let i = new FormData(a), o = new URLSearchParams(i).toString(), c = t.querySelectorAll("thead tr th"), n = t.querySelector("tbody"), l = a.getAttribute("data-ajax");
379
+ }, at = function(e, a, t, r) {
380
+ return wt(this, void 0, void 0, function* () {
381
+ const s = (f, b, y) => b.split(/[\.\[\]\'\"]/).filter((p) => p).reduce((p, w) => p ? p[w] : y, f);
382
+ let i = new FormData(a), o = new URLSearchParams(i).toString(), c = e.querySelectorAll("thead tr th"), n = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
383
383
  r.classList.add("table--loading"), window.controller || (window.controller = []), window.controller[l] && window.controller[l].abort(), window.controller[l] = new AbortController();
384
384
  const { signal: h } = controller[l];
385
385
  try {
386
386
  yield fetch(l + "?" + o, { signal: h, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((f) => f.json()).then((f) => {
387
- let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", y = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", p = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", A = s(f, y, 1), I = s(f, p, 1), R = s(f, b), P = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
387
+ let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", y = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", p = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", w = s(f, y, 1), I = s(f, p, 1), R = s(f, b), P = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
388
388
  if (R ? (n.innerHTML = "", R.forEach((C, k) => {
389
- var q = document.createElement("tr");
389
+ var $ = document.createElement("tr");
390
390
  c.forEach((v, L) => {
391
391
  let E = "";
392
392
  var D = document.createElement("td");
393
393
  if (D.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
394
394
  var j = v.getAttribute("data-output");
395
- E = j.replace(new RegExp(/{(.*?)}/, "gm"), function(oe) {
396
- return s(C, oe.replace("{", "").replace("}", ""));
395
+ E = j.replace(new RegExp(/{(.*?)}/, "gm"), function(it) {
396
+ return s(C, it.replace("{", "").replace("}", ""));
397
397
  });
398
398
  }
399
399
  if (v.hasAttribute("data-output-array")) {
400
400
  var j = v.getAttribute("data-output");
401
- let ie = s(C, j.replace("{", "").replace("}", ""));
402
- E = "", ie.forEach((G, no) => {
403
- let se = v.getAttribute("data-output-array"), B = "";
401
+ let st = s(C, j.replace("{", "").replace("}", ""));
402
+ E = "", st.forEach((Y, no) => {
403
+ let nt = v.getAttribute("data-output-array"), B = "";
404
404
  if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
405
- const O = s(G, v.getAttribute("data-output-array-property")), ne = JSON.parse(v.getAttribute("data-output-array-transform"))[O];
406
- B = se.replace(`{${v.getAttribute("data-output-array-property")}}`, ne);
405
+ const O = s(Y, v.getAttribute("data-output-array-property")), lt = JSON.parse(v.getAttribute("data-output-array-transform"))[O];
406
+ B = nt.replace(`{${v.getAttribute("data-output-array-property")}}`, lt);
407
407
  }
408
408
  B = B.replace(new RegExp(/{(.*?)}/, "gm"), function(O) {
409
- return s(G, O.replace("{", "").replace("}", ""));
409
+ return s(Y, O.replace("{", "").replace("}", ""));
410
410
  }), E += B;
411
411
  });
412
412
  }
413
- v.hasAttribute("data-transform") && (E = JSON.parse(v.getAttribute("data-transform"))[E], !E && v.hasAttribute("data-default") && (E = v.getAttribute("data-default"))), D.innerHTML = E, q.appendChild(D);
414
- }), n.appendChild(q);
415
- }), X(t, a), r.setAttribute("data-total", parseInt(A)), r.setAttribute("data-page", parseInt(I)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), ee(t, a, e, r), W(r, e), parseInt(A) == 0 && (n.innerHTML = `<tr><td colspan="100%"><span>${P}</span></td></tr>`), r.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : n.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
413
+ v.hasAttribute("data-transform") && (E = JSON.parse(v.getAttribute("data-transform"))[E], !E && v.hasAttribute("data-default") && (E = v.getAttribute("data-default"))), D.innerHTML = E, $.appendChild(D);
414
+ }), n.appendChild($);
415
+ }), Q(e, a), r.setAttribute("data-total", parseInt(w)), r.setAttribute("data-page", parseInt(I)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), et(e, a, t, r), G(r, t), parseInt(w) == 0 && (n.innerHTML = `<tr><td colspan="100%"><span>${P}</span></td></tr>`), r.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : n.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
416
416
  const C = new XMLHttpRequest();
417
417
  C.open("GET", `${window.location.href}?ajax=true&${o}`), C.send();
418
418
  }
@@ -421,26 +421,26 @@ const J = (t) => {
421
421
  console.log(f);
422
422
  }
423
423
  });
424
- }, U = (t, a) => {
425
- switch (t) {
424
+ }, U = (e, a) => {
425
+ switch (e) {
426
426
  case "datetime":
427
427
  return new Date(a).toLocaleDateString("en-gb", { weekday: "short", year: "2-digit", month: "long", day: "numeric" }) + " " + new Date(a).toLocaleTimeString("en-gb", { hour: "2-digit", minute: "2-digit" });
428
428
  case "date":
429
429
  return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
430
430
  case "capitalise":
431
- return a = ve(a);
431
+ return a = vt(a);
432
432
  }
433
433
  };
434
- class Ee extends HTMLElement {
434
+ class Et extends HTMLElement {
435
435
  constructor() {
436
436
  super(), this.attachShadow({ mode: "open" });
437
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = this.classList.contains("table--cta"), s = this.classList.contains("table--export");
437
+ 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`, r = this.classList.contains("table--cta"), s = this.classList.contains("table--export");
438
438
  let i = this.classList.toString();
439
439
  i = i.replace("table--cta", ""), i = i.replace("table--loading", "");
440
440
  const o = document.createElement("template");
441
441
  o.innerHTML = `
442
442
  <style>
443
- @import "${e}";
443
+ @import "${t}";
444
444
 
445
445
  :host(.mh-sm){
446
446
  max-height: none!important;
@@ -462,23 +462,22 @@ class Ee extends HTMLElement {
462
462
  ${s ? '<button class="link" type="button" data-export>Export table as CSV</button>' : ""}
463
463
  <div class="table__pagination"></div>
464
464
  `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
465
- const c = new URLSearchParams(window.location.search);
466
- this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", c.has("page") ? c.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show")));
467
465
  }
468
466
  connectedCallback() {
469
- this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), 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"), X(this.table, this.form), this.form.querySelector("[data-page]") || (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" />`), ke(this.table), Le(this.table, this.form, this.pagination, this, this.savedTableBody), xe(this.table, this.form, this.pagination, this), qe(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? te(this.table, this.form, this.pagination, this) : (ee(this.table, this.form, this.pagination, this), Q(this.table, this.form, this), W(this, this.pagination), K(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (a) => {
467
+ const a = new URLSearchParams(window.location.search);
468
+ 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", 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show"))), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), 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"), Q(this.table, this.form), this.form.querySelector("[data-page]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), kt(this.table), Lt(this.table, this.form, this.pagination, this, this.savedTableBody), xt(this.table, this.form, this.pagination, this), $t(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? at(this.table, this.form, this.pagination, this) : (et(this.table, this.form, this.pagination, this), tt(this.table, this.form, this), G(this, this.pagination), K(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (t) => {
470
469
  this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
471
470
  });
472
471
  }
473
472
  static get observedAttributes() {
474
473
  return ["data-total", "data-pages", "data-page", "data-show"];
475
474
  }
476
- attributeChangedCallback(a, e, r) {
475
+ attributeChangedCallback(a, t, r) {
477
476
  }
478
477
  }
479
- const Te = (t) => t.charAt(0).toUpperCase() + t.slice(1), Me = (t) => t.replace(/_/g, " "), He = (t) => t.replace(/ /g, "_"), Ce = function(t) {
480
- return t = t.toLowerCase(), t = He(t), t = t.replace(/\W/g, ""), t;
481
- }, De = {
478
+ const Tt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Mt = (e) => e.replace(/_/g, " "), Ht = (e) => e.replace(/ /g, "_"), Ct = function(e) {
479
+ return e = e.toLowerCase(), e = Ht(e), e = e.replace(/\W/g, ""), e;
480
+ }, Dt = {
482
481
  name: "Table",
483
482
  props: {
484
483
  items: {
@@ -492,42 +491,42 @@ const Te = (t) => t.charAt(0).toUpperCase() + t.slice(1), Me = (t) => t.replace(
492
491
  },
493
492
  computed: {
494
493
  cellHeading() {
495
- return (t) => `${Te(Me(t))}`;
494
+ return (e) => `${Tt(Mt(e))}`;
496
495
  }
497
496
  },
498
497
  created() {
499
498
  this.$nextTick(function() {
500
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Ee);
499
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", Et);
501
500
  });
502
501
  },
503
502
  updated() {
504
503
  }
505
- }, Ne = { key: 0 }, Re = { key: 0 }, ze = ["data-row-id"], Ie = ["innerHTML"];
506
- function Pe(t, a, e, r, s, i) {
504
+ }, Nt = { key: 0 }, Rt = { key: 0 }, zt = ["data-row-id"], It = ["innerHTML"];
505
+ function Pt(e, a, t, r, s, i) {
507
506
  return u(), m("iam-table", null, [
508
- e.fields ? (u(), m("table", Ne, [
507
+ t.fields ? (u(), m("table", Nt, [
509
508
  d("thead", null, [
510
509
  d("tr", null, [
511
- (u(!0), m(T, null, M(e.fields, (o) => (u(), m("th", {
510
+ (u(!0), m(T, null, M(t.fields, (o) => (u(), m("th", {
512
511
  key: o.key
513
- }, $(i.cellHeading(o.key)), 1))), 128))
512
+ }, q(i.cellHeading(o.key)), 1))), 128))
514
513
  ])
515
514
  ]),
516
- e.items ? (u(), m("tbody", Re, [
517
- (u(!0), m(T, null, M(e.items, (o, c) => (u(), m("tr", {
515
+ t.items ? (u(), m("tbody", Rt, [
516
+ (u(!0), m(T, null, M(t.items, (o, c) => (u(), m("tr", {
518
517
  key: c,
519
518
  "data-row-id": o.rowid
520
519
  }, [
521
520
  (u(!0), m(T, null, M(Object.fromEntries(Object.entries(o).filter(([n]) => n !== "rowid")), (n, l) => (u(), m("td", {
522
521
  key: l,
523
522
  innerHTML: n
524
- }, null, 8, Ie))), 128))
525
- ], 8, ze))), 128))
523
+ }, null, 8, It))), 128))
524
+ ], 8, zt))), 128))
526
525
  ])) : g("", !0)
527
- ])) : _(t.$slots, "default", { key: 1 })
526
+ ])) : _(e.$slots, "default", { key: 1 })
528
527
  ]);
529
528
  }
530
- const ae = /* @__PURE__ */ S(De, [["render", Pe]]), Be = {
529
+ const rt = /* @__PURE__ */ S(Dt, [["render", Pt]]), Bt = {
531
530
  name: "Input",
532
531
  props: {
533
532
  value: {
@@ -689,174 +688,174 @@ const ae = /* @__PURE__ */ S(De, [["render", Pe]]), Be = {
689
688
  get() {
690
689
  return this.value == null && this.options != null && this.type == "select" ? this.$attrs.multiple ? [] : this.options[0].value : this.value;
691
690
  },
692
- set(t) {
693
- this.$emit("input", t);
691
+ set(e) {
692
+ this.$emit("input", e);
694
693
  }
695
694
  }
696
695
  },
697
696
  mounted() {
698
697
  this.$nextTick(function() {
699
- let t = this.$refs.wrapper;
700
- if (t.parentNode && t.parentNode.classList.contains("form-check") || t.classList.length == 0) {
698
+ let e = this.$refs.wrapper;
699
+ if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
701
700
  const a = document.createDocumentFragment();
702
- Array.from(t.childNodes).forEach((e) => a.appendChild(e)), t.parentNode.insertBefore(a, t), t.parentNode.removeChild(t);
701
+ Array.from(e.childNodes).forEach((t) => a.appendChild(t)), e.parentNode.insertBefore(a, e), e.parentNode.removeChild(e);
703
702
  }
704
703
  });
705
704
  },
706
705
  methods: {
707
- inputKeyup(t) {
708
- this.$emit("keyupEvent", t);
706
+ inputKeyup(e) {
707
+ this.$emit("keyupEvent", e);
709
708
  },
710
709
  clickEvent() {
711
710
  this.$emit("bus");
712
711
  }
713
712
  }
714
- }, Fe = ["for", "innerHTML", "title"], je = ["innerHTML"], Oe = ["innerHTML"], Ve = ["type", "name", "id", "pattern", "list"], Ue = ["type", "name", "id", "pattern"], We = {
713
+ }, Ft = ["for", "innerHTML", "title"], jt = ["innerHTML"], Ot = ["innerHTML"], Vt = ["type", "name", "id", "pattern", "list"], Ut = ["type", "name", "id", "pattern"], Wt = {
715
714
  key: 5,
716
715
  class: "input-group"
717
- }, Ke = ["type", "name", "id", "pattern", "list"], Ge = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ye = {
716
+ }, Gt = ["type", "name", "id", "pattern", "list"], Kt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Yt = {
718
717
  key: 6,
719
718
  class: "input-group"
720
- }, Ze = ["type", "name", "id", "pattern", "list"], Je = { class: "input-group-text flex-fill" }, Xe = ["type", "name", "id", "pattern"], Qe = ["value"], et = ["id"], tt = ["value"], at = ["type", "name", "id"], rt = ["for", "innerHTML"], ot = ["type", "name", "id"], it = ["for", "innerHTML"], st = ["innerHTML"];
721
- function nt(t, a, e, r, s, i) {
719
+ }, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], Qt = ["value"], te = ["id"], ee = ["value"], ae = ["type", "name", "id"], re = ["for", "innerHTML"], oe = ["type", "name", "id"], ie = ["for", "innerHTML"], se = ["innerHTML"];
720
+ function ne(e, a, t, r, s, i) {
722
721
  return u(), m("div", {
723
- class: w(i.wrapperClass()),
722
+ class: A(i.wrapperClass()),
724
723
  ref: "wrapper"
725
724
  }, [
726
725
  i.needsLabel() ? (u(), m("label", {
727
726
  key: 0,
728
- class: w(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
729
- for: e.id,
727
+ class: A(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
728
+ for: t.id,
730
729
  innerHTML: i.displayLabel(),
731
- title: e.title
732
- }, null, 10, Fe)) : g("", !0),
733
- e.prefix ? (u(), m("span", {
730
+ title: t.title
731
+ }, null, 10, Ft)) : g("", !0),
732
+ t.prefix ? (u(), m("span", {
734
733
  key: 1,
735
- class: w(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
736
- innerHTML: e.prefix,
734
+ class: A(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
735
+ innerHTML: t.prefix,
737
736
  role: "presentation"
738
- }, null, 10, je)) : g("", !0),
739
- e.suffix ? (u(), m("span", {
737
+ }, null, 10, jt)) : g("", !0),
738
+ t.suffix ? (u(), m("span", {
740
739
  key: 2,
741
- class: w(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
742
- innerHTML: e.suffix,
740
+ class: A(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
741
+ innerHTML: t.suffix,
743
742
  role: "presentation"
744
- }, null, 10, Oe)) : g("", !0),
743
+ }, null, 10, Ot)) : g("", !0),
745
744
  i.isInput() ? z((u(), m("input", H({
746
745
  key: 3,
747
746
  "onUpdate:modelValue": a[0] || (a[0] = (o) => i.inputVal = o),
748
- class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
749
- type: e.type,
750
- name: e.name ? e.name : e.id,
751
- id: e.id,
747
+ class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
748
+ type: t.type,
749
+ name: t.name ? t.name : t.id,
750
+ id: t.id,
752
751
  pattern: i.needPattern(),
753
752
  list: i.hasOptions()
754
- }, t.$attrs, {
753
+ }, e.$attrs, {
755
754
  onKeyup: a[1] || (a[1] = (...o) => i.inputKeyup && i.inputKeyup(...o))
756
- }), null, 16, Ve)), [
755
+ }), null, 16, Vt)), [
757
756
  [V, i.inputVal]
758
757
  ]) : g("", !0),
759
- e.type == "textarea" ? z((u(), m("textarea", H({
758
+ t.type == "textarea" ? z((u(), m("textarea", H({
760
759
  key: 4,
761
760
  "onUpdate:modelValue": a[2] || (a[2] = (o) => i.inputVal = o),
762
- class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
763
- type: e.type,
764
- name: e.name ? e.name : e.id,
765
- id: e.id,
761
+ class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
762
+ type: t.type,
763
+ name: t.name ? t.name : t.id,
764
+ id: t.id,
766
765
  pattern: i.needPattern()
767
- }, t.$attrs), null, 16, Ue)), [
768
- [le, i.inputVal]
766
+ }, e.$attrs), null, 16, Ut)), [
767
+ [ct, i.inputVal]
769
768
  ]) : g("", !0),
770
- e.type == "range" ? (u(), m("div", We, [
769
+ t.type == "range" ? (u(), m("div", Wt, [
771
770
  z(d("input", H({
772
771
  "onUpdate:modelValue": a[3] || (a[3] = (o) => i.inputVal = o),
773
- class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
774
- type: e.type,
775
- name: e.name ? e.name : e.id,
776
- id: e.id,
772
+ class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
773
+ type: t.type,
774
+ name: t.name ? t.name : t.id,
775
+ id: t.id,
777
776
  pattern: i.needPattern(),
778
777
  list: i.hasOptions()
779
- }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ke), [
778
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Gt), [
780
779
  [V, i.inputVal]
781
780
  ]),
782
- d("output", Ge, $(e.value), 1)
781
+ d("output", Kt, q(t.value), 1)
783
782
  ])) : g("", !0),
784
- e.type == "color" ? (u(), m("div", Ye, [
783
+ t.type == "color" ? (u(), m("div", Yt, [
785
784
  z(d("input", H({
786
785
  "onUpdate:modelValue": a[4] || (a[4] = (o) => i.inputVal = o),
787
- class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
788
- type: e.type,
789
- name: e.name ? e.name : e.id,
790
- id: e.id,
786
+ class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
787
+ type: t.type,
788
+ name: t.name ? t.name : t.id,
789
+ id: t.id,
791
790
  pattern: i.needPattern(),
792
791
  list: i.hasOptions()
793
- }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ze), [
792
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
794
793
  [V, i.inputVal]
795
794
  ]),
796
- d("output", Je, $(e.value ? t.vale : "#000000"), 1)
795
+ d("output", Jt, q(t.value ? e.vale : "#000000"), 1)
797
796
  ])) : g("", !0),
798
- e.type == "select" ? z((u(), m("select", H({
797
+ t.type == "select" ? z((u(), m("select", H({
799
798
  key: 7,
800
799
  "onUpdate:modelValue": a[5] || (a[5] = (o) => i.inputVal = o),
801
- class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
802
- type: e.type,
803
- name: e.id,
804
- id: e.id,
800
+ class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
801
+ type: t.type,
802
+ name: t.id,
803
+ id: t.id,
805
804
  pattern: i.needPattern()
806
- }, t.$attrs), [
807
- (u(!0), m(T, null, M(e.options, (o, c) => (u(), m("option", {
805
+ }, e.$attrs), [
806
+ (u(!0), m(T, null, M(t.options, (o, c) => (u(), m("option", {
808
807
  key: c,
809
808
  value: o.value
810
- }, $(o.display ? o.display : o.value), 9, Qe))), 128))
811
- ], 16, Xe)), [
812
- [ce, i.inputVal]
809
+ }, q(o.display ? o.display : o.value), 9, Qt))), 128))
810
+ ], 16, Xt)), [
811
+ [dt, i.inputVal]
813
812
  ]) : g("", !0),
814
813
  i.allowDatalist() ? (u(), m("datalist", {
815
814
  key: 8,
816
- id: e.id + "-list"
815
+ id: t.id + "-list"
817
816
  }, [
818
- (u(!0), m(T, null, M(e.options, (o, c) => (u(), m("option", {
817
+ (u(!0), m(T, null, M(t.options, (o, c) => (u(), m("option", {
819
818
  key: c,
820
819
  value: o.value
821
- }, $(o.value), 9, tt))), 128))
822
- ], 8, et)) : g("", !0),
823
- e.type == "checkbox" || e.type == "radio" ? (u(), m("input", H({
820
+ }, q(o.value), 9, ee))), 128))
821
+ ], 8, te)) : g("", !0),
822
+ t.type == "checkbox" || t.type == "radio" ? (u(), m("input", H({
824
823
  key: 9,
825
824
  class: "form-check-input",
826
- type: e.type,
827
- name: e.name ? e.name : e.id,
828
- id: e.id
829
- }, t.$attrs), null, 16, at)) : g("", !0),
830
- e.type == "checkbox" || e.type == "radio" ? (u(), m("label", {
825
+ type: t.type,
826
+ name: t.name ? t.name : t.id,
827
+ id: t.id
828
+ }, e.$attrs), null, 16, ae)) : g("", !0),
829
+ t.type == "checkbox" || t.type == "radio" ? (u(), m("label", {
831
830
  key: 10,
832
- class: w(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
833
- for: e.id,
834
- innerHTML: e.label
835
- }, null, 10, rt)) : g("", !0),
836
- e.type == "checkbox-btn" || e.type == "radio-btn" ? (u(), m("input", H({
831
+ class: A(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
832
+ for: t.id,
833
+ innerHTML: t.label
834
+ }, null, 10, re)) : g("", !0),
835
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input", H({
837
836
  key: 11,
838
- class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
839
- type: e.type.replace("-btn", ""),
837
+ class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
838
+ type: t.type.replace("-btn", ""),
840
839
  autocomplete: "off",
841
- name: e.name ? e.name : e.id,
842
- id: e.id
843
- }, t.$attrs), null, 16, ot)) : g("", !0),
844
- e.type == "checkbox-btn" || e.type == "radio-btn" ? (u(), m("label", {
840
+ name: t.name ? t.name : t.id,
841
+ id: t.id
842
+ }, e.$attrs), null, 16, oe)) : g("", !0),
843
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
845
844
  key: 12,
846
- class: w(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
847
- for: e.id,
848
- innerHTML: e.label,
845
+ class: A(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
846
+ for: t.id,
847
+ innerHTML: t.label,
849
848
  onClick: a[6] || (a[6] = (...o) => i.clickEvent && i.clickEvent(...o))
850
- }, null, 10, it)) : g("", !0),
851
- e.errormsg ? (u(), m("p", {
849
+ }, null, 10, ie)) : g("", !0),
850
+ t.errormsg ? (u(), m("p", {
852
851
  key: 13,
853
852
  class: "invalid-feedback mb-0",
854
- innerHTML: e.errormsg
855
- }, null, 8, st)) : g("", !0),
856
- _(t.$slots, "default")
853
+ innerHTML: t.errormsg
854
+ }, null, 8, se)) : g("", !0),
855
+ _(e.$slots, "default")
857
856
  ], 2);
858
857
  }
859
- const F = /* @__PURE__ */ S(Be, [["render", nt]]), lt = {
858
+ const F = /* @__PURE__ */ S(Bt, [["render", ne]]), le = {
860
859
  components: {
861
860
  Input: F
862
861
  },
@@ -879,57 +878,57 @@ const F = /* @__PURE__ */ S(Be, [["render", nt]]), lt = {
879
878
  required: !1
880
879
  }
881
880
  }
882
- }, ct = { class: "multiple-file-uploads mb-4" }, dt = { class: "row" }, ut = { class: "col-12 col-md me-auto" }, mt = /* @__PURE__ */ d("div", { class: "col mw-fit-content" }, [
881
+ }, ce = { class: "multiple-file-uploads mb-4" }, de = { class: "row" }, ue = { class: "col-12 col-md me-auto" }, me = /* @__PURE__ */ d("div", { class: "col mw-fit-content" }, [
883
882
  /* @__PURE__ */ d("button", {
884
883
  type: "button",
885
884
  class: "btn btn-tertiary me-0",
886
885
  "data-delete": ""
887
886
  }, "Delete")
888
- ], -1), ht = ["data-maxfiles"];
889
- function ft(t, a, e, r, s, i) {
887
+ ], -1), he = ["data-maxfiles"];
888
+ function fe(e, a, t, r, s, i) {
890
889
  const o = N("Input");
891
- return u(), m("div", ct, [
892
- d("div", dt, [
890
+ return u(), m("div", ce, [
891
+ d("div", de, [
893
892
  d("div", {
894
- class: w(`${e.inputcolclass ? e.inputcolclass : "col-12 col-sm-4"}`)
893
+ class: A(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
895
894
  }, [
896
895
  x(o, {
897
896
  type: "file",
898
- id: e.id,
899
- name: `${e.id}[]`,
897
+ id: t.id,
898
+ name: `${t.id}[]`,
900
899
  label: "Add new file",
901
900
  labelclass: "d-none",
902
901
  class: "form-control-inline col",
903
902
  required: "",
904
- "data-filesize": e.maxfilesize
903
+ "data-filesize": t.maxfilesize
905
904
  }, null, 8, ["id", "name", "data-filesize"])
906
905
  ], 2),
907
- d("div", ut, [
908
- _(t.$slots, "default")
906
+ d("div", ue, [
907
+ _(e.$slots, "default")
909
908
  ]),
910
- mt
909
+ me
911
910
  ]),
912
911
  d("button", {
913
912
  type: "button",
914
913
  class: "btn btn-secondary me-0",
915
914
  "data-add": "",
916
- "data-maxfiles": e.maxfiles
917
- }, "+ Add file", 8, ht)
915
+ "data-maxfiles": t.maxfiles
916
+ }, "+ Add file", 8, he)
918
917
  ]);
919
918
  }
920
- const co = /* @__PURE__ */ S(lt, [["render", ft]]);
919
+ const co = /* @__PURE__ */ S(le, [["render", fe]]);
921
920
  /*!
922
- * iamKey v3.7.4
921
+ * iamKey v3.7.5
923
922
  * Copyright 2022-2023 iamproperty
924
923
  */
925
- function bt(t) {
926
- let a = t.querySelectorAll("details"), e = t.querySelectorAll("summary");
924
+ function be(e) {
925
+ let a = e.querySelectorAll("details"), t = e.querySelectorAll("summary");
927
926
  if (a.forEach((r) => {
928
927
  r.classList.add("accordion-item");
929
- }), e.forEach((r) => {
928
+ }), t.forEach((r) => {
930
929
  r.classList.add("accordion-header"), r.classList.add("accordion-button"), r.classList.add("h4");
931
- }), !t.classList.contains("accordion--keep-open")) {
932
- const r = t.querySelectorAll(":scope > details");
930
+ }), !e.classList.contains("accordion--keep-open")) {
931
+ const r = e.querySelectorAll(":scope > details");
933
932
  r.forEach((s) => {
934
933
  s.addEventListener("click", () => {
935
934
  r.forEach((i) => {
@@ -940,13 +939,13 @@ function bt(t) {
940
939
  }
941
940
  }
942
941
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "accordion" });
943
- let pt = class extends HTMLElement {
942
+ let pe = class extends HTMLElement {
944
943
  constructor() {
945
944
  super(), this.attachShadow({ mode: "open" });
946
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
945
+ 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`, r = document.createElement("template");
947
946
  r.innerHTML = `
948
947
  <style>
949
- @import "${e}";
948
+ @import "${t}";
950
949
  \uFEFF:is(.accordion,iam-accordion){--accordion-indent: 0.75rem;--accordion-right-padding: 3rem;--accordion-y-padding: 1rem;--accordion-icon-size: 1.875rem;--accordion-icon-top: 0.75rem}@media screen and (min-width: 62em){:is(.accordion,iam-accordion){--accordion-right-padding: 6rem;--accordion-y-padding: 2rem;--accordion-icon-size: 3rem;--accordion-icon-top: 1.25rem}}.accordion-header{padding:var(--accordion-y-padding) var(--accordion-right-padding) var(--accordion-y-padding) var(--accordion-indent);color:var(--colour-heading);text-align:left;background-color:rgba(0,0,0,0);overflow-anchor:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;--marker-bg: var(--colour-secondary);cursor:pointer;position:relative;max-width:100%}@media(prefers-reduced-motion: reduce){.accordion-header{transition:none}}.accordion-header .badge{vertical-align:bottom;margin-left:.5em;margin-right:.5em;margin-bottom:.1em}.accordion-header:before,.accordion-header:after{content:"";position:absolute;right:var(--accordion-indent);top:var(--accordion-icon-top);margin-top:var(--accordion-icon-size-half);width:var(--accordion-icon-size);height:var(--accordion-icon-size)}.accordion-header:before{text-indent:100%;white-space:nowrap;overflow:hidden;background:var(--marker-bg);border-radius:100%}.accordion-header::after{background:currentColor;mask-image:var(--icon-arrow);mask-size:50%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-arrow);-webkit-mask-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%;transition:transform .2s ease-in-out;transform:rotate(90deg)}@media(prefers-reduced-motion: reduce){.accordion-header::after{transition:none}}@media(forced-colors: active){.accordion-header::after{content:"►";mask-image:none;-webkit-mask-image:none}}.accordion-header:hover,.accordion-header:focus{--marker-bg: var(--colour-warning);color:var(--colour-hover)}.accordion-header:hover{z-index:var(--index-focus)}.accordion-header:focus{z-index:var(--index-focus);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}[open]>summary>.accordion-header{color:var(--colour-heading);background-color:rgba(0,0,0,0)}[open]>summary>.accordion-header::after{transform:rotate(-90deg)}.accordion-header[class*=bg-] .accordion-button{border-bottom:1px solid var(--colour-border);margin-bottom:-1px}.accordion-header[class*=bg-] .accordion-button:before{background:none !important}.accordion-header[class*=bg-]:hover .accordion-button{opacity:.8}.accordion-header[class*=bg-]+.accordion-body{padding-top:2rem}.accordion-header{margin-bottom:0}.accordion-item{background-color:rgba(0,0,0,0);border-bottom:1px solid var(--colour-border);margin-bottom:2rem}.accordion-item:first-of-type{border-top:1px solid var(--colour-border)}.accordion-item+.accordion-item{margin-top:-2rem}.accordion-item summary~*{text-align:left;padding:0 var(--accordion-indent)}.accordion--straight>details>summary:not([class*=bg-])>.accordion-button,.accordion--straight>details>.accordion-item summary~*{padding-left:0 !important}.accordion--straight .accordion-item summary~*{padding-right:0 !important}.accordion .accordion:first-child{padding-top:1rem}.accordion .accordion:last-child{padding-bottom:2rem}.accordion .accordion .accordion-button{padding:1rem 3rem 1rem var(--accordion-indent)}.accordion .accordion .accordion-button:before,.accordion .accordion .accordion-button:after{top:.75rem;height:2rem;width:2rem;right:.5rem}.accordion .accordion .accordion-button:before{background-color:var(--colour-light)}/*# sourceMappingURL=assets/css/components/accordion.css.map */
951
950
 
952
951
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -957,22 +956,22 @@ let pt = class extends HTMLElement {
957
956
  `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
958
957
  }
959
958
  connectedCallback() {
960
- bt(this);
959
+ be(this);
961
960
  }
962
961
  };
963
- window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", pt);
964
- const yt = {
962
+ window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", pe);
963
+ const ye = {
965
964
  name: "Accordion",
966
965
  props: {},
967
966
  mounted() {
968
967
  }
969
- }, gt = { ref: "wrapper" };
970
- function _t(t, a, e, r, s, i) {
971
- return u(), m("iam-accordion", gt, [
972
- _(t.$slots, "default")
968
+ }, ge = { ref: "wrapper" };
969
+ function _e(e, a, t, r, s, i) {
970
+ return u(), m("iam-accordion", ge, [
971
+ _(e.$slots, "default")
973
972
  ], 512);
974
973
  }
975
- const mo = /* @__PURE__ */ S(yt, [["render", _t]]), vt = {
974
+ const mo = /* @__PURE__ */ S(ye, [["render", _e]]), ve = {
976
975
  name: "AccordionItem",
977
976
  props: {
978
977
  title: {
@@ -999,7 +998,7 @@ const mo = /* @__PURE__ */ S(yt, [["render", _t]]), vt = {
999
998
  },
1000
999
  computed: {
1001
1000
  createID() {
1002
- return (t) => `${Ce(t)}`;
1001
+ return (e) => `${Ct(e)}`;
1003
1002
  }
1004
1003
  },
1005
1004
  data() {
@@ -1007,24 +1006,24 @@ const mo = /* @__PURE__ */ S(yt, [["render", _t]]), vt = {
1007
1006
  show: !this.lazy
1008
1007
  };
1009
1008
  }
1010
- }, wt = ["id"], At = ["classList"];
1011
- function St(t, a, e, r, s, i) {
1009
+ }, we = ["id"], Ae = ["classList"];
1010
+ function Se(e, a, t, r, s, i) {
1012
1011
  return u(), m("details", {
1013
- id: i.createID(e.title)
1012
+ id: i.createID(t.title)
1014
1013
  }, [
1015
1014
  d("summary", {
1016
- classList: `${e.titlecolour ? `bg-${e.titlecolour}` : ""}`
1015
+ classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
1017
1016
  }, [
1018
- de($(e.title), 1),
1019
- e.badge ? (u(), m("span", {
1017
+ ut(q(t.title), 1),
1018
+ t.badge ? (u(), m("span", {
1020
1019
  key: 0,
1021
- class: w(`badge bg-${e.badgecolour}`)
1022
- }, $(e.badge), 3)) : g("", !0)
1023
- ], 8, At),
1024
- _(t.$slots, "default")
1025
- ], 8, wt);
1020
+ class: A(`badge bg-${t.badgecolour}`)
1021
+ }, q(t.badge), 3)) : g("", !0)
1022
+ ], 8, Ae),
1023
+ _(e.$slots, "default")
1024
+ ], 8, we);
1026
1025
  }
1027
- const ho = /* @__PURE__ */ S(vt, [["render", St]]), kt = {
1026
+ const ho = /* @__PURE__ */ S(ve, [["render", Se]]), ke = {
1028
1027
  name: "Header",
1029
1028
  props: {
1030
1029
  title: {
@@ -1041,46 +1040,46 @@ const ho = /* @__PURE__ */ S(vt, [["render", St]]), kt = {
1041
1040
  required: !1
1042
1041
  }
1043
1042
  }
1044
- }, Lt = { class: "container" }, xt = { class: "row" }, qt = { class: "col-sm-6" }, $t = { class: "pt-5 pb-3 px-4" }, Et = { class: "col-sm-6 col-md-5 ms-auto" }, Tt = ["src"];
1045
- function Mt(t, a, e, r, s, i) {
1046
- return u(), m("div", Lt, [
1043
+ }, Le = { class: "container" }, xe = { class: "row" }, $e = { class: "col-sm-6" }, qe = { class: "pt-5 pb-3 px-4" }, Ee = { class: "col-sm-6 col-md-5 ms-auto" }, Te = ["src"];
1044
+ function Me(e, a, t, r, s, i) {
1045
+ return u(), m("div", Le, [
1047
1046
  d("div", {
1048
- class: w("bg-" + e.background + " mb-4")
1047
+ class: A("bg-" + t.background + " mb-4")
1049
1048
  }, [
1050
- d("div", xt, [
1051
- d("div", qt, [
1052
- d("div", $t, [
1053
- d("h2", null, $(e.title), 1),
1054
- _(t.$slots, "default")
1049
+ d("div", xe, [
1050
+ d("div", $e, [
1051
+ d("div", qe, [
1052
+ d("h2", null, q(t.title), 1),
1053
+ _(e.$slots, "default")
1055
1054
  ])
1056
1055
  ]),
1057
- d("div", Et, [
1058
- e.image ? (u(), m("img", {
1056
+ d("div", Ee, [
1057
+ t.image ? (u(), m("img", {
1059
1058
  key: 0,
1060
- src: e.image,
1059
+ src: t.image,
1061
1060
  alt: "",
1062
1061
  class: "h-100 w-100 object-cover"
1063
- }, null, 8, Tt)) : g("", !0)
1062
+ }, null, 8, Te)) : g("", !0)
1064
1063
  ])
1065
1064
  ])
1066
1065
  ], 2)
1067
1066
  ]);
1068
1067
  }
1069
- const fo = /* @__PURE__ */ S(kt, [["render", Mt]]);
1068
+ const fo = /* @__PURE__ */ S(ke, [["render", Me]]);
1070
1069
  /*!
1071
- * iamKey v3.7.4
1070
+ * iamKey v3.7.5
1072
1071
  * Copyright 2022-2023 iamproperty
1073
1072
  */
1074
1073
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Card" });
1075
- class Ht extends HTMLElement {
1074
+ class He extends HTMLElement {
1076
1075
  constructor() {
1077
1076
  super(), this.attachShadow({ mode: "open" }), this.querySelector('[class*="fa-"]') && this.classList.add("card--has-icon");
1078
1077
  let a = this.classList.toString();
1079
- const e = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", r = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${e}/css/core.min.css`, s = document.createElement("template");
1078
+ const t = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", r = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${t}/css/core.min.css`, s = document.createElement("template");
1080
1079
  s.innerHTML = `
1081
1080
  <style>
1082
1081
  @import "${r}";
1083
- .card{--card-icon-right: 1rem;box-shadow:var(--card-box-shadow);border-radius:var(--card-border-radius);position:relative;font-weight:bold;font-size:1.125rem;line-height:1.5rem;color:var(--colour-primary);min-height:100%;width:100%;text-align:left;display:block;overflow:hidden;z-index:0;background:var(--colour-canvas-2);outline:var(--contrast-outline-width, 0px) solid var(--colour-primary);outline-offset:-1px}.card.border-0{box-shadow:none;--card-left-padding: 0rem;outline-offset:1px !important}.card__body{position:relative;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1}.card:before,.card:after{content:"";position:absolute;right:var(--card-icon-right);bottom:var(--card-bottom-padding);height:1.5rem;width:1.5rem;background:var(--colour-warning);border-radius:50%}.card:after{background:var(--colour-primary-theme);mask-image:var(--icon-arrow);mask-size:50%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-arrow);-webkit-mask-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%;z-index:2}.card:is(:hover,:focus,.hover){--card-icon-right: 0.5rem;outline:2px solid var(--colour, var(--colour-primary));outline-offset:-2px}.card:not([class*=colour-]):is(:hover,:focus,.hover):before{background:var(--colour-primary-theme)}.card:not([class*=colour-]):is(:hover,:focus,.hover):after{background:#fff}.card:is(:active,.active){--card-icon-right: 0.5rem;outline:none}.card:is(:active,.active):before{background:var(--colour-warning)}.card:is(:active,.active):after{background:var(--colour-primary)}.card:is(:active){background:#fcfcfc}.card span{display:block;font-weight:bold;padding-top:1.5rem;font-size:1rem}.card:has(.card__illustration) .card__body{align-items:center;display:flex}.card:has(.card__illustration) .card__body .card__illustration{height:4rem;width:4rem;margin-right:1.5rem;margin-top:-1.25rem;margin-bottom:-1.25rem;position:relative}.card:has(.card__illustration) .card__body .card__illustration img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}::slotted(i){font-size:1.5rem;margin:-3px var(--card-icon-right) 0 0;font-weight:400;vertical-align:middle}::slotted(span){display:block;font-weight:normal;padding-top:1.5rem;font-size:1rem}.card[class*=colour-],.card--filter{border-left:0.75rem solid var(--colour, var(--colour-primary))}.card--filter{--top-padding: 1.5rem;--right-padding: 1rem;--bottom-padding: 1.5rem;--left-padding: 1rem}.card--filter:has(.card__total) .card__body{align-items:center;display:flex}.card--filter:before,.card--filter:after{display:none}.card--filter:is(:hover,:focus,.hover){outline:none;background:#eee}.card--filter:is(:hover,:focus,.hover) .card__body{background:#eee}.card--filter:is(:active,.active){outline:2px solid var(--colour, var(--colour-primary));outline-offset:-2px}.card--filter:is(:active,.active) .card__body{background:#fff}.card--filter.card--has-icon{--bottom-padding: 1rem;border:none}.card--filter .icon{font-size:1.125rem !important;height:1.125rem !important;margin:0 0 .5rem 0 !important;font-weight:400 !important;display:block !important}.card--filter .card__total{font-size:3rem;line-height:3rem;padding-right:1rem}.card--filter ::slotted(i){display:block !important;font-size:1.125rem !important;margin:0 0 .5rem 0 !important}.card:has(.card__head) .card__head{padding-bottom:0;padding-top:27%;position:relative;overflow:hidden;background:rgba(0,0,0,.1);z-index:-1}.card:has(.card__head) .card__head>img{position:absolute;top:0;left:0;width:101%;height:101%;object-fit:cover}.card:has(.card__footer):after{display:none}.card:has(.card__footer) .card__footer{position:relative;background:#fff;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1;display:block}/*# sourceMappingURL=assets/css/components/card.css.map */
1082
+ .card{--card-icon-right: 1rem;box-shadow:var(--card-box-shadow);border-radius:var(--card-border-radius);position:relative;font-weight:bold;font-size:1.125rem;line-height:1.5rem;color:var(--colour-primary);min-height:100%;width:100%;text-align:left;display:block;overflow:hidden;z-index:0;background:var(--colour-canvas-2);outline:var(--contrast-outline-width, 0px) solid var(--colour-primary);outline-offset:-1px}.card.border-0{box-shadow:none;--card-left-padding: 0rem;outline-offset:1px !important}.card__body{position:relative;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1}.card:before,.card:after{content:"";position:absolute;right:var(--card-icon-right);bottom:var(--card-bottom-padding);height:1.5rem;width:1.5rem;background:var(--colour-warning);border-radius:50%}.card:after{background:var(--colour-primary-theme);mask-image:var(--icon-arrow);mask-size:50%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-arrow);-webkit-mask-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%;z-index:2}.card:is(:hover,:focus,.hover){--card-icon-right: 0.5rem;outline:2px solid var(--colour, var(--colour-primary));outline-offset:-2px}.card:not([class*=colour-]):is(:hover,:focus,.hover):before{background:var(--colour-primary-theme)}.card:not([class*=colour-]):is(:hover,:focus,.hover):after{background:#fff}.card:is(:active,.active){--card-icon-right: 0.5rem;outline:none}.card:is(:active,.active):before{background:var(--colour-warning)}.card:is(:active,.active):after{background:var(--colour-primary)}.card:is(:active){background:#fcfcfc}.card span{display:block;font-weight:bold;padding-top:1.5rem;font-size:1rem}.card:has(.card__illustration) .card__body{align-items:center;display:flex}.card:has(.card__illustration) .card__body .card__illustration{height:4rem;width:4rem;margin-right:1.5rem;margin-top:-1.25rem;margin-bottom:-1.25rem;position:relative}.card:has(.card__illustration) .card__body .card__illustration img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}::slotted(i){font-size:1.5rem;margin:-3px var(--card-icon-right) 0 0;font-weight:400;vertical-align:middle}::slotted(span){display:block;font-weight:normal;padding-top:1.5rem;font-size:1rem}.card[class*=colour-],.card--filter{border-left:0.75rem solid var(--colour, var(--colour-primary))}.card--filter{--top-padding: 1.5rem;--right-padding: 1rem;--bottom-padding: 1.5rem;--left-padding: 1rem}.card--filter:has(.card__total) .card__body{align-items:center;display:flex}.card--filter:before,.card--filter:after{display:none}.card--filter:is(:hover,:focus,.hover){outline:none;background:#eee}.card--filter:is(:hover,:focus,.hover) .card__body{background:#eee}.card--filter:is(:active,.active){outline:2px solid var(--colour, var(--colour-primary));outline-offset:-2px}.card--filter:is(:active,.active) .card__body{background:#fff}.card--filter.card--has-icon{--bottom-padding: 1rem;border:none}.card--filter .icon{font-size:1.125rem !important;height:1.125rem !important;margin:0 0 .5rem 0 !important;font-weight:400 !important;display:block !important}.card--filter .card__total{font-size:3rem;line-height:3rem;padding-right:1rem}.card--filter ::slotted(i){display:block !important;font-size:1.125rem !important;margin:0 0 .5rem 0 !important}.card:has(.card__head) .card__head{padding-bottom:0;padding-top:27%;position:relative;overflow:hidden;background:rgba(0,0,0,.1);z-index:-1}.card:has(.card__head) .card__head>img{position:absolute;top:0;left:0;width:102%;height:102%;object-fit:cover}.card.card--lg-image:has(.card__head) .card__head{padding-top:55%}.card:has(.card__footer):after{display:none}.card:has(.card__footer) .card__footer{position:relative;background:#fff;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1;display:block}/*# sourceMappingURL=assets/css/components/card.css.map */
1084
1083
 
1085
1084
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1086
1085
  </style>
@@ -1097,14 +1096,14 @@ class Ht extends HTMLElement {
1097
1096
  }
1098
1097
  connectedCallback() {
1099
1098
  this.classList.add("loaded");
1100
- const a = this.parentNode.closest("a, button, label"), e = this.shadowRoot.querySelector(".card");
1101
- a.setAttribute("tabindex", "-1"), a.matches("label[for]") && document.getElementById(a.getAttribute("for")).checked && e.classList.add("active"), e.addEventListener("click", (r) => {
1102
- a.matches("label[for]") ? document.getElementById(a.getAttribute("for")).checked ? e.classList.remove("active") : e.classList.add("active") : a.click();
1103
- }), e.addEventListener("keydown", (r) => {
1099
+ const a = this.parentNode.closest("a, button, label"), t = this.shadowRoot.querySelector(".card");
1100
+ a.setAttribute("tabindex", "-1"), a.matches("label[for]") && document.getElementById(a.getAttribute("for")).checked && t.classList.add("active"), t.addEventListener("click", (r) => {
1101
+ a.matches("label[for]") ? document.getElementById(a.getAttribute("for")).checked ? t.classList.remove("active") : t.classList.add("active") : a.click();
1102
+ }), t.addEventListener("keydown", (r) => {
1104
1103
  switch (r.keyCode) {
1105
1104
  case 32:
1106
1105
  case 13:
1107
- a.matches("label[for]") ? document.getElementById(a.getAttribute("for")).checked ? e.classList.remove("active") : e.classList.add("active") : a.click();
1106
+ a.matches("label[for]") ? document.getElementById(a.getAttribute("for")).checked ? t.classList.remove("active") : t.classList.add("active") : a.click();
1108
1107
  break;
1109
1108
  }
1110
1109
  });
@@ -1112,7 +1111,7 @@ class Ht extends HTMLElement {
1112
1111
  static get observedAttributes() {
1113
1112
  return ["data-total", "class"];
1114
1113
  }
1115
- attributeChangedCallback(a, e, r) {
1114
+ attributeChangedCallback(a, t, r) {
1116
1115
  switch (a) {
1117
1116
  case "data-total": {
1118
1117
  this.shadowRoot.querySelector(".card__total").innerHTML = r;
@@ -1126,63 +1125,63 @@ class Ht extends HTMLElement {
1126
1125
  }
1127
1126
  }
1128
1127
  }
1129
- const Ct = {
1128
+ const Ce = {
1130
1129
  name: "Card",
1131
1130
  mounted() {
1132
1131
  this.$nextTick(function() {
1133
- window.customElements.get("iam-card") || window.customElements.define("iam-card", Ht);
1132
+ window.customElements.get("iam-card") || window.customElements.define("iam-card", He);
1134
1133
  });
1135
1134
  }
1136
1135
  };
1137
- function Dt(t, a, e, r, s, i) {
1136
+ function De(e, a, t, r, s, i) {
1138
1137
  return u(), m("iam-card", null, [
1139
- _(t.$slots, "default")
1138
+ _(e.$slots, "default")
1140
1139
  ]);
1141
1140
  }
1142
- const Nt = /* @__PURE__ */ S(Ct, [["render", Dt]]);
1143
- function Rt(t) {
1141
+ const Ne = /* @__PURE__ */ S(Ce, [["render", De]]);
1142
+ function Re(e) {
1144
1143
  var a;
1145
- let e = t.querySelector(".carousel__inner"), r = t.querySelectorAll(".carousel__item").length;
1146
- t.getAttribute("data-cols");
1147
- let s = t.getAttribute("data-sm-cols"), i = t.getAttribute("data-md-cols");
1148
- t.querySelector(".carousel__controls a").classList.add("active"), e.addEventListener("scroll", function(o) {
1144
+ let t = e.querySelector(".carousel__inner"), r = e.querySelectorAll(".carousel__item").length;
1145
+ e.getAttribute("data-cols");
1146
+ let s = e.getAttribute("data-sm-cols"), i = e.getAttribute("data-md-cols");
1147
+ e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
1149
1148
  clearTimeout(a), a = setTimeout(function() {
1150
- let c = e.clientWidth, n = e.scrollWidth, l = e.scrollLeft, h = Math.round(l / n * r) + 1, f = t.querySelector(".carousel__item:last-child").offsetLeft;
1151
- Array.from(t.querySelectorAll(".carousel__controls a")).forEach((b, y) => {
1149
+ let c = t.clientWidth, n = t.scrollWidth, l = t.scrollLeft, h = Math.round(l / n * r) + 1, f = e.querySelector(".carousel__item:last-child").offsetLeft;
1150
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b, y) => {
1152
1151
  b.classList.remove("active");
1153
- }), t.querySelector(".control-" + h).classList.add("active"), h == 1 ? t.querySelector(".btn-prev").setAttribute("disabled", "disabled") : t.querySelector(".btn-prev").removeAttribute("disabled"), e.scrollLeft + c > f ? t.querySelector(".btn-next").setAttribute("disabled", "disabled") : t.querySelector(".btn-next").removeAttribute("disabled");
1152
+ }), e.querySelector(".control-" + h).classList.add("active"), h == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + c > f ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1154
1153
  }, 100);
1155
- }, !1), t.addEventListener("click", function(o) {
1154
+ }, !1), e.addEventListener("click", function(o) {
1156
1155
  for (var c = o.target; c && c != this; c = c.parentNode)
1157
1156
  if (c.matches(".carousel__controls a")) {
1158
- o.preventDefault(), Array.from(t.querySelectorAll(".carousel__controls a")).forEach((l, h) => {
1157
+ o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((l, h) => {
1159
1158
  l.classList.remove("active");
1160
1159
  }), c.classList.add("active");
1161
1160
  const n = document.querySelector(c.getAttribute("href"));
1162
- e.scroll({
1161
+ t.scroll({
1163
1162
  top: 0,
1164
1163
  left: n.offsetLeft,
1165
1164
  behavior: "smooth"
1166
1165
  });
1167
1166
  break;
1168
1167
  }
1169
- }, !1), t.addEventListener("click", function(o) {
1168
+ }, !1), e.addEventListener("click", function(o) {
1170
1169
  for (var c = o.target; c && c != this; c = c.parentNode)
1171
1170
  if (c.matches(".btn-next, .btn-prev")) {
1172
1171
  o.preventDefault();
1173
- let n = c.classList.contains("btn-prev") ? e.scrollLeft - e.clientWidth : e.scrollLeft + e.clientWidth;
1174
- e.scroll({
1172
+ let n = c.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1173
+ t.scroll({
1175
1174
  top: 0,
1176
1175
  left: n,
1177
1176
  behavior: "smooth"
1178
1177
  });
1179
1178
  break;
1180
1179
  }
1181
- }, !1), r == 1 && t.classList.add("hide-btns"), s >= r && t.classList.add("hide-sm-btns"), i >= r && t.classList.add("hide-md-btns");
1180
+ }, !1), r == 1 && e.classList.add("hide-btns"), s >= r && e.classList.add("hide-sm-btns"), i >= r && e.classList.add("hide-md-btns");
1182
1181
  }
1183
- const zt = {
1182
+ const ze = {
1184
1183
  components: {
1185
- Card: Nt
1184
+ Card: Ne
1186
1185
  },
1187
1186
  name: "Carousel",
1188
1187
  data() {
@@ -1251,93 +1250,93 @@ const zt = {
1251
1250
  },
1252
1251
  computed: {
1253
1252
  content() {
1254
- return (t) => `${t.image ? `<img src="${t.image}" alt="" />` : ""}${t.content ? t.content : ""}`;
1253
+ return (e) => `${e.image ? `<img src="${e.image}" alt="" />` : ""}${e.content ? e.content : ""}`;
1255
1254
  }
1256
1255
  },
1257
1256
  mounted() {
1258
1257
  this.id = this._uid, this.$nextTick(function() {
1259
- Rt(this.$refs.wrapper);
1258
+ Re(this.$refs.wrapper);
1260
1259
  });
1261
1260
  }
1262
- }, It = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Pt = { class: "carousel__wrapper" }, Bt = { class: "carousel__inner" }, Ft = ["id"], jt = ["innerHTML", "id"], Ot = ["href"], Vt = /* @__PURE__ */ d("button", {
1261
+ }, Ie = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Pe = { class: "carousel__wrapper" }, Be = { class: "carousel__inner" }, Fe = ["id"], je = ["innerHTML", "id"], Oe = ["href"], Ve = /* @__PURE__ */ d("button", {
1263
1262
  class: "btn btn-prev",
1264
1263
  "data-go": "0",
1265
1264
  disabled: ""
1266
- }, "Prev", -1), Ut = /* @__PURE__ */ d("button", {
1265
+ }, "Prev", -1), Ue = /* @__PURE__ */ d("button", {
1267
1266
  class: "btn btn-next",
1268
1267
  "data-go": "2"
1269
1268
  }, "Next", -1);
1270
- function Wt(t, a, e, r, s, i) {
1269
+ function We(e, a, t, r, s, i) {
1271
1270
  const o = N("Card");
1272
1271
  return u(), m("div", {
1273
1272
  class: "container carousel",
1274
1273
  id: "carousel" + s.id,
1275
1274
  ref: "wrapper",
1276
- "data-cols": e.cols,
1277
- "data-sm-cols": e.smcols,
1278
- "data-md-cols": e.mdcols
1275
+ "data-cols": t.cols,
1276
+ "data-sm-cols": t.smcols,
1277
+ "data-md-cols": t.mdcols
1279
1278
  }, [
1280
- _(t.$slots, "default"),
1281
- d("div", Pt, [
1282
- d("div", Bt, [
1283
- e.type == "card" ? (u(), m("div", {
1279
+ _(e.$slots, "default"),
1280
+ d("div", Pe, [
1281
+ d("div", Be, [
1282
+ t.type == "card" ? (u(), m("div", {
1284
1283
  key: 0,
1285
- class: w(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1284
+ class: A(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1286
1285
  }, [
1287
- (u(!0), m(T, null, M(e.items, (c, n) => (u(), m("div", {
1288
- class: w(`col carousel__item${e.colclass ? ` ${e.colclass}` : ""}`),
1286
+ (u(!0), m(T, null, M(t.items, (c, n) => (u(), m("div", {
1287
+ class: A(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1289
1288
  key: n,
1290
1289
  id: "carousel" + s.id + "slide" + (n + 1)
1291
1290
  }, [
1292
1291
  x(o, H(c, {
1293
- class: e.cardclass,
1294
- type: e.cardtype,
1295
- btnyype: e.btntype,
1296
- titleclass: e.titleclass,
1297
- ctatext: e.ctatext,
1298
- hidectatext: e.hidectatext
1292
+ class: t.cardclass,
1293
+ type: t.cardtype,
1294
+ btnyype: t.btntype,
1295
+ titleclass: t.titleclass,
1296
+ ctatext: t.ctatext,
1297
+ hidectatext: t.hidectatext
1299
1298
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1300
- ], 10, Ft))), 128))
1299
+ ], 10, Fe))), 128))
1301
1300
  ], 2)) : g("", !0),
1302
- e.type != "card" ? (u(), m("div", {
1301
+ t.type != "card" ? (u(), m("div", {
1303
1302
  key: 1,
1304
- class: w(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1303
+ class: A(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1305
1304
  }, [
1306
- (u(!0), m(T, null, M(e.items, (c, n) => (u(), m("div", {
1307
- class: w(`col carousel__item${e.colclass ? ` ${e.colclass}` : ""}`),
1305
+ (u(!0), m(T, null, M(t.items, (c, n) => (u(), m("div", {
1306
+ class: A(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1308
1307
  key: n,
1309
1308
  innerHTML: i.content(c),
1310
1309
  id: "carousel" + s.id + "slide" + (n + 1)
1311
- }, null, 10, jt))), 128))
1310
+ }, null, 10, je))), 128))
1312
1311
  ], 2)) : g("", !0)
1313
1312
  ]),
1314
1313
  d("div", {
1315
- class: w(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
1314
+ class: A(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1316
1315
  }, [
1317
- (u(!0), m(T, null, M(e.items, (c, n) => (u(), m("a", {
1316
+ (u(!0), m(T, null, M(t.items, (c, n) => (u(), m("a", {
1318
1317
  key: n,
1319
1318
  href: "#carousel" + s.id + "slide" + (n + 1),
1320
- class: w(`control-${n + 1}`)
1321
- }, "Slide " + $(n + 1), 11, Ot))), 128))
1319
+ class: A(`control-${n + 1}`)
1320
+ }, "Slide " + q(n + 1), 11, Oe))), 128))
1322
1321
  ], 2),
1323
- Vt,
1324
- Ut
1322
+ Ve,
1323
+ Ue
1325
1324
  ])
1326
- ], 8, It);
1325
+ ], 8, Ie);
1327
1326
  }
1328
- const bo = /* @__PURE__ */ S(zt, [["render", Wt]]);
1327
+ const bo = /* @__PURE__ */ S(ze, [["render", We]]);
1329
1328
  /*!
1330
- * iamKey v3.7.4
1329
+ * iamKey v3.7.5
1331
1330
  * Copyright 2022-2023 iamproperty
1332
1331
  */
1333
1332
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
1334
- class Kt extends HTMLElement {
1333
+ class Ge extends HTMLElement {
1335
1334
  constructor() {
1336
1335
  super(), this.attachShadow({ mode: "open" });
1337
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
1336
+ 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`, r = document.createElement("template");
1338
1337
  r.innerHTML = `
1339
1338
  <style>
1340
- @import "${e}";
1339
+ @import "${t}";
1341
1340
  .header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);margin-bottom:2rem;position:relative;overflow:hidden;max-width:100% !important}@media screen and (min-width: 62em){.header-banner{min-height:29.375rem}}.header-banner>.container{padding-bottom:0;position:relative}.header-banner .breadcrumb{margin-top:1.5rem;margin-bottom:-0.5rem}@media screen and (min-width: 62em){.header-banner .breadcrumb{position:absolute;top:0;left:3.75rem}}.header-banner__inner{--colour-muted: #9d9d9d;--colour-body: #595959;--colour-border: #D8D8D8;--colour-link: var(--colour-primary-theme);--colour-brand: var(--colour-primary);--colour-underline: var(--colour-secondary);--colour-heading: var(--colour-primary);--colour-focus: var(--colour-primary-theme);--colour-hover: var(--colour-primary-theme);--colour-active: var(--colour-primary-theme);--colour-selected: var(--colour-info);--colour-inverted: #FCFCFC;--colour-btn: var(--colour-primary-theme);--colour-btn-bg: var(--colour-warning);--colour-btn-border: var(--colour-warning);--colour-btn-bg-hover: transparent;--colour-btn-hover: var(--colour-primary-theme);--colour-btn-secondary: var(--colour-primary-theme);--colour-btn-secondary-border: var(--colour-primary-theme);--colour-btn-secondary-bg: transparent;--colour-btn-secondary-bg-hover: var(--colour-primary-theme);--colour-btn-secondary-hover: var(--colour-inverted);--colour-canvas-2: var(--colour-canvas);color:var(--colour-body);background:#fff;padding:2rem;margin:1.875rem 0;position:relative;z-index:var(--index-above)}.header-banner__inner .text-primary{color:var(--colour-primary) !important}@media screen and (min-width: 62em){.header-banner__inner{max-width:37.5rem;margin:7rem 0 5rem 0;padding:3.5rem 4rem}}.header-banner__inner>*:last-child{padding-bottom:0;margin-bottom:0}.header-banner picture img{display:none}@media screen and (min-width: 62em){.header-banner picture img{display:block;position:absolute;top:-0.5%;left:40%;height:101%;object-fit:cover;width:60%;pointer-events:none}}::slotted(.breadcrumb){margin-top:1.5rem !important;margin-bottom:-0.5rem !important}@media screen and (min-width: 62em){::slotted(.breadcrumb){position:absolute !important;top:0 !important;left:5.25rem !important}}::slotted(*:last-child){padding-bottom:0 !important;margin-bottom:0 !important}/*# sourceMappingURL=assets/css/components/header.css.map */
1342
1341
 
1343
1342
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -1360,11 +1359,11 @@ class Kt extends HTMLElement {
1360
1359
  }
1361
1360
  connectedCallback() {
1362
1361
  this.classList.add("loaded");
1363
- const a = this.shadowRoot.querySelector("picture"), e = this.shadowRoot.querySelector("picture source");
1364
- this.hasAttribute("image") ? e.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1362
+ const a = this.shadowRoot.querySelector("picture"), t = this.shadowRoot.querySelector("picture source");
1363
+ this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1365
1364
  }
1366
1365
  }
1367
- const Gt = {
1366
+ const Ke = {
1368
1367
  name: "Header",
1369
1368
  props: {
1370
1369
  title: {
@@ -1378,44 +1377,44 @@ const Gt = {
1378
1377
  },
1379
1378
  mounted() {
1380
1379
  this.$nextTick(function() {
1381
- window.customElements.get("iam-header") || window.customElements.define("iam-header", Kt);
1380
+ window.customElements.get("iam-header") || window.customElements.define("iam-header", Ge);
1382
1381
  });
1383
1382
  }
1384
- }, Yt = ["image"], Zt = ["innerHTML"];
1385
- function Jt(t, a, e, r, s, i) {
1383
+ }, Ye = ["image"], Ze = ["innerHTML"];
1384
+ function Je(e, a, t, r, s, i) {
1386
1385
  return u(), m("iam-header", {
1387
1386
  class: "bg-secondary",
1388
- image: e.image
1387
+ image: t.image
1389
1388
  }, [
1390
- _(t.$slots, "breadcrumb"),
1391
- e.title ? (u(), m("h1", {
1389
+ _(e.$slots, "breadcrumb"),
1390
+ t.title ? (u(), m("h1", {
1392
1391
  key: 0,
1393
- innerHTML: e.title
1394
- }, null, 8, Zt)) : g("", !0),
1395
- _(t.$slots, "default")
1396
- ], 8, Yt);
1392
+ innerHTML: t.title
1393
+ }, null, 8, Ze)) : g("", !0),
1394
+ _(e.$slots, "default")
1395
+ ], 8, Ye);
1397
1396
  }
1398
- const po = /* @__PURE__ */ S(Gt, [["render", Jt]]);
1399
- function Xt(t) {
1397
+ const po = /* @__PURE__ */ S(Ke, [["render", Je]]);
1398
+ function Xe(e) {
1400
1399
  var a;
1401
- const e = t.querySelector(".testimonial__images"), r = e.querySelectorAll("img").length;
1400
+ const t = e.querySelector(".testimonial__images"), r = t.querySelectorAll("img").length;
1402
1401
  if (r == 1)
1403
1402
  return !1;
1404
- t.classList.add("testimonial--multi");
1403
+ e.classList.add("testimonial--multi");
1405
1404
  const s = function(i) {
1406
- const o = t.querySelector(".btn-next"), c = t.querySelector(".btn-prev");
1405
+ const o = e.querySelector(".btn-next"), c = e.querySelector(".btn-prev");
1407
1406
  o.setAttribute("data-go", i + 1), c.setAttribute("data-go", i - 1), o.removeAttribute("disabled"), c.removeAttribute("disabled"), i == 1 ? c.setAttribute("disabled", !0) : i == r && o.setAttribute("disabled", !0);
1408
1407
  };
1409
- e.addEventListener("scroll", function(i) {
1408
+ t.addEventListener("scroll", function(i) {
1410
1409
  clearTimeout(a), a = setTimeout(function() {
1411
- let o = e.scrollWidth, c = e.scrollHeight, n = e.scrollLeft, l = e.scrollTop, h = Math.round(n / o * r) + 1;
1412
- n == 0 && l != 0 && (h = Math.round(l / c * r) + 1), t.setAttribute("data-show", h), s(h);
1410
+ let o = t.scrollWidth, c = t.scrollHeight, n = t.scrollLeft, l = t.scrollTop, h = Math.round(n / o * r) + 1;
1411
+ n == 0 && l != 0 && (h = Math.round(l / c * r) + 1), e.setAttribute("data-show", h), s(h);
1413
1412
  }, 300);
1414
- }, !1), t.addEventListener("click", function(i) {
1413
+ }, !1), e.addEventListener("click", function(i) {
1415
1414
  for (var o = i.target; o && o != this; o = o.parentNode)
1416
1415
  if (o.matches("[data-go]")) {
1417
- let c = parseInt(o.getAttribute("data-go")), n = 0, l = 0, h = e.scrollWidth, f = e.scrollHeight;
1418
- h > f ? l = Math.floor(h * ((c - 1) / r)) : n = Math.floor(f * ((c - 1) / r)), e.scroll({
1416
+ let c = parseInt(o.getAttribute("data-go")), n = 0, l = 0, h = t.scrollWidth, f = t.scrollHeight;
1417
+ h > f ? l = Math.floor(h * ((c - 1) / r)) : n = Math.floor(f * ((c - 1) / r)), t.scroll({
1419
1418
  top: n,
1420
1419
  left: l,
1421
1420
  behavior: "smooth"
@@ -1424,7 +1423,7 @@ function Xt(t) {
1424
1423
  }
1425
1424
  }, !1);
1426
1425
  }
1427
- const Qt = {
1426
+ const Qe = {
1428
1427
  name: "Testimonial",
1429
1428
  props: {
1430
1429
  items: {
@@ -1438,13 +1437,13 @@ const Qt = {
1438
1437
  }
1439
1438
  },
1440
1439
  mounted() {
1441
- Xt(this.$refs.wrapper);
1440
+ Xe(this.$refs.wrapper);
1442
1441
  }
1443
- }, ea = {
1442
+ }, ta = {
1444
1443
  class: "container testimonial mb-5",
1445
1444
  "data-show": "1",
1446
1445
  ref: "wrapper"
1447
- }, ta = { class: "row" }, aa = { class: "col-md-5 position-relative" }, ra = { class: "testimonial__images" }, oa = ["src"], ia = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
1446
+ }, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" }, ra = { class: "testimonial__images" }, oa = ["src"], ia = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
1448
1447
  /* @__PURE__ */ d("button", {
1449
1448
  "data-go": "0",
1450
1449
  disabled: "",
@@ -1455,19 +1454,19 @@ const Qt = {
1455
1454
  class: "btn-next"
1456
1455
  }, "Next")
1457
1456
  ], -1), sa = { class: "col-md-7" }, na = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), la = { class: "testimonial__content" }, ca = ["innerHTML"], da = ["innerHTML"], ua = { class: "testimonial__after" }, ma = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1458
- function ha(t, a, e, r, s, i) {
1459
- return u(), m("div", ea, [
1457
+ function ha(e, a, t, r, s, i) {
1458
+ return u(), m("div", ta, [
1460
1459
  d("div", {
1461
- class: w("bg-" + e.background)
1460
+ class: A("bg-" + t.background)
1462
1461
  }, [
1463
- d("div", ta, [
1462
+ d("div", ea, [
1464
1463
  d("div", aa, [
1465
1464
  d("div", ra, [
1466
- (u(!0), m(T, null, M(e.items, (o, c) => (u(), m("img", {
1465
+ (u(!0), m(T, null, M(t.items, (o, c) => (u(), m("img", {
1467
1466
  key: c,
1468
1467
  src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1469
1468
  alt: "",
1470
- class: w("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
1469
+ class: A("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
1471
1470
  }, null, 10, oa))), 128))
1472
1471
  ]),
1473
1472
  ia
@@ -1475,9 +1474,9 @@ function ha(t, a, e, r, s, i) {
1475
1474
  d("div", sa, [
1476
1475
  na,
1477
1476
  d("div", la, [
1478
- (u(!0), m(T, null, M(e.items, (o, c) => (u(), m("blockquote", {
1477
+ (u(!0), m(T, null, M(t.items, (o, c) => (u(), m("blockquote", {
1479
1478
  key: c,
1480
- class: w(o.class)
1479
+ class: A(o.class)
1481
1480
  }, [
1482
1481
  d("div", {
1483
1482
  innerHTML: o.quote
@@ -1488,7 +1487,7 @@ function ha(t, a, e, r, s, i) {
1488
1487
  ], 2))), 128))
1489
1488
  ]),
1490
1489
  d("div", ua, [
1491
- _(t.$slots, "default")
1490
+ _(e.$slots, "default")
1492
1491
  ])
1493
1492
  ])
1494
1493
  ]),
@@ -1496,7 +1495,7 @@ function ha(t, a, e, r, s, i) {
1496
1495
  ], 2)
1497
1496
  ], 512);
1498
1497
  }
1499
- const yo = /* @__PURE__ */ S(Qt, [["render", ha]]);
1498
+ const yo = /* @__PURE__ */ S(Qe, [["render", ha]]);
1500
1499
  const fa = {
1501
1500
  components: {
1502
1501
  Input: F
@@ -1624,8 +1623,8 @@ const fa = {
1624
1623
  };
1625
1624
  },
1626
1625
  methods: {
1627
- locationKeyup: function(t) {
1628
- this.$emit("locationKeyup", t);
1626
+ locationKeyup: function(e) {
1627
+ this.$emit("locationKeyup", e);
1629
1628
  }
1630
1629
  },
1631
1630
  computed: {
@@ -1633,8 +1632,8 @@ const fa = {
1633
1632
  get() {
1634
1633
  return this.locationSave ? this.locationSave : this.location;
1635
1634
  },
1636
- set(t) {
1637
- this.locationSave = t, this.$emit("input", t);
1635
+ set(e) {
1636
+ this.locationSave = e, this.$emit("input", e);
1638
1637
  }
1639
1638
  },
1640
1639
  locationsList() {
@@ -1659,15 +1658,15 @@ const fa = {
1659
1658
  value: "submit"
1660
1659
  }, "Search")
1661
1660
  ], -1);
1662
- function qa(t, a, e, r, s, i) {
1661
+ function $a(e, a, t, r, s, i) {
1663
1662
  const o = N("Input");
1664
1663
  return u(), m("div", ba, [
1665
- _(t.$slots, "default"),
1664
+ _(e.$slots, "default"),
1666
1665
  d("div", pa, [
1667
1666
  d("form", {
1668
1667
  class: "row",
1669
- action: e.formaction,
1670
- method: e.formmethod
1668
+ action: t.formaction,
1669
+ method: t.formmethod
1671
1670
  }, [
1672
1671
  d("fieldset", ga, [
1673
1672
  x(o, {
@@ -1687,7 +1686,7 @@ function qa(t, a, e, r, s, i) {
1687
1686
  label: "Miles",
1688
1687
  id: "miles",
1689
1688
  type: "select",
1690
- options: e.distances
1689
+ options: t.distances
1691
1690
  }, null, 8, ["options"])
1692
1691
  ]),
1693
1692
  d("fieldset", _a, [
@@ -1699,7 +1698,7 @@ function qa(t, a, e, r, s, i) {
1699
1698
  id: "price-min",
1700
1699
  "data-min": "true",
1701
1700
  type: "select",
1702
- options: e.pricemin
1701
+ options: t.pricemin
1703
1702
  }, null, 8, ["options"]),
1704
1703
  x(o, {
1705
1704
  class: "col-6",
@@ -1707,7 +1706,7 @@ function qa(t, a, e, r, s, i) {
1707
1706
  id: "price-max",
1708
1707
  "data-max": "true",
1709
1708
  type: "select",
1710
- options: e.pricemax
1709
+ options: t.pricemax
1711
1710
  }, null, 8, ["options"])
1712
1711
  ])
1713
1712
  ]),
@@ -1720,7 +1719,7 @@ function qa(t, a, e, r, s, i) {
1720
1719
  id: "beds-min",
1721
1720
  "data-min": "true",
1722
1721
  type: "select",
1723
- options: e.bedsmin
1722
+ options: t.bedsmin
1724
1723
  }, null, 8, ["options"]),
1725
1724
  x(o, {
1726
1725
  class: "col-6",
@@ -1728,7 +1727,7 @@ function qa(t, a, e, r, s, i) {
1728
1727
  id: "beds-max",
1729
1728
  "data-max": "true",
1730
1729
  type: "select",
1731
- options: e.bedsmax
1730
+ options: t.bedsmax
1732
1731
  }, null, 8, ["options"])
1733
1732
  ])
1734
1733
  ]),
@@ -1737,31 +1736,31 @@ function qa(t, a, e, r, s, i) {
1737
1736
  label: "Property type",
1738
1737
  id: "property-type",
1739
1738
  type: "select",
1740
- options: e.propertytypes
1739
+ options: t.propertytypes
1741
1740
  }, null, 8, ["options"])
1742
1741
  ]),
1743
1742
  xa
1744
1743
  ], 8, ya)
1745
1744
  ]),
1746
- _(t.$slots, "after")
1745
+ _(e.$slots, "after")
1747
1746
  ], 512);
1748
1747
  }
1749
- const go = /* @__PURE__ */ S(fa, [["render", qa]]), $a = (t) => {
1750
- Array.from(t.querySelectorAll("details")).forEach((a, e) => {
1748
+ const go = /* @__PURE__ */ S(fa, [["render", $a]]), qa = (e) => {
1749
+ Array.from(e.querySelectorAll("details")).forEach((a, t) => {
1751
1750
  a.addEventListener("mouseenter", function(r) {
1752
1751
  window.matchMedia("(min-width: 62em)").matches && a.setAttribute("open", "true");
1753
1752
  }, !1), a.addEventListener("mouseleave", function(r) {
1754
1753
  window.matchMedia("(min-width: 62em)").matches && a.removeAttribute("open");
1755
1754
  }, !1);
1756
1755
  }), "IntersectionObserver" in window && new IntersectionObserver(
1757
- ([e]) => e.target.classList.toggle("is-stuck", e.intersectionRatio < 1),
1756
+ ([t]) => t.target.classList.toggle("is-stuck", t.intersectionRatio < 1),
1758
1757
  { threshold: [1] }
1759
- ).observe(t);
1758
+ ).observe(e);
1760
1759
  };
1761
1760
  const Ea = {
1762
1761
  components: {
1763
1762
  Input: F,
1764
- Logo: ye
1763
+ Logo: yt
1765
1764
  },
1766
1765
  name: "Nav",
1767
1766
  props: {
@@ -1808,8 +1807,8 @@ const Ea = {
1808
1807
  };
1809
1808
  },
1810
1809
  methods: {
1811
- subIsActive(t) {
1812
- return (Array.isArray(t) ? t : [t]).some((e) => this.$route.path.indexOf(e) === 0);
1810
+ subIsActive(e) {
1811
+ return (Array.isArray(e) ? e : [e]).some((t) => this.$route.path.indexOf(t) === 0);
1813
1812
  }
1814
1813
  },
1815
1814
  computed: {
@@ -1831,7 +1830,7 @@ const Ea = {
1831
1830
  },
1832
1831
  mounted() {
1833
1832
  this.$nextTick(function() {
1834
- $a(this.$refs.wrapper);
1833
+ qa(this.$refs.wrapper);
1835
1834
  });
1836
1835
  }
1837
1836
  }, Ta = /* @__PURE__ */ d("input", {
@@ -1872,7 +1871,7 @@ const Ea = {
1872
1871
  }, Wa = {
1873
1872
  key: 2,
1874
1873
  class: "col mw-fit-content nav__search-btn flex-row align-items-center"
1875
- }, Ka = /* @__PURE__ */ d("label", { for: "showSearch" }, [
1874
+ }, Ga = /* @__PURE__ */ d("label", { for: "showSearch" }, [
1876
1875
  /* @__PURE__ */ d("svg", {
1877
1876
  class: "icon",
1878
1877
  viewBox: "0 0 32 32"
@@ -1893,8 +1892,8 @@ const Ea = {
1893
1892
  class: "icon__outline"
1894
1893
  })
1895
1894
  ])
1896
- ], -1), Ga = [
1897
- Ka
1895
+ ], -1), Ka = [
1896
+ Ga
1898
1897
  ], Ya = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1899
1898
  /* @__PURE__ */ d("label", { for: "showMenu" }, "Menu")
1900
1899
  ], -1), Za = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ja = {
@@ -1917,10 +1916,10 @@ const Ea = {
1917
1916
  /* @__PURE__ */ d("span", null, "My account")
1918
1917
  ], -1), Qa = [
1919
1918
  Xa
1920
- ], er = {
1919
+ ], tr = {
1921
1920
  key: 4,
1922
1921
  class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
1923
- }, tr = ["href", "innerHTML"], ar = {
1922
+ }, er = ["href", "innerHTML"], ar = {
1924
1923
  key: 0,
1925
1924
  class: "nav__menu--secondary"
1926
1925
  }, rr = { class: "container" }, or = {
@@ -1941,10 +1940,10 @@ const Ea = {
1941
1940
  }, hr = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1942
1941
  /* @__PURE__ */ d("label", { for: "showAccount" }, "Account")
1943
1942
  ], -1), fr = { class: "container" }, br = /* @__PURE__ */ d("span", { class: "nav__bg" }, null, -1);
1944
- function pr(t, a, e, r, s, i) {
1943
+ function pr(e, a, t, r, s, i) {
1945
1944
  const o = N("Logo");
1946
1945
  return u(), m("nav", {
1947
- class: w(`nav${i.hasSecondarySlot ? " has-secondary" : ""}`),
1946
+ class: A(`nav${i.hasSecondarySlot ? " has-secondary" : ""}`),
1948
1947
  ref: "wrapper"
1949
1948
  }, [
1950
1949
  Ta,
@@ -1954,13 +1953,13 @@ function pr(t, a, e, r, s, i) {
1954
1953
  d("div", Da, [
1955
1954
  d("div", Na, [
1956
1955
  i.hasLogoSlot ? (u(), m("div", Ra, [
1957
- _(t.$slots, "logo")
1956
+ _(e.$slots, "logo")
1958
1957
  ])) : (u(), m("div", za, [
1959
1958
  d("a", Ia, [
1960
1959
  x(o, {
1961
- id: e.logo,
1962
- path: e.logopath,
1963
- desc: e.logotext,
1960
+ id: t.logo,
1961
+ path: t.logopath,
1962
+ desc: t.logotext,
1964
1963
  class: "pb-0"
1965
1964
  }, null, 8, ["id", "path", "desc"])
1966
1965
  ])
@@ -1973,41 +1972,41 @@ function pr(t, a, e, r, s, i) {
1973
1972
  d("div", Fa, [
1974
1973
  d("div", ja, [
1975
1974
  i.hasLogoSlot ? (u(), m("div", Oa, [
1976
- _(t.$slots, "logo")
1975
+ _(e.$slots, "logo")
1977
1976
  ])) : (u(), m("div", Va, [
1978
1977
  d("a", Ua, [
1979
1978
  x(o, {
1980
- id: e.logo,
1981
- path: e.logopath,
1982
- desc: e.logotext,
1979
+ id: t.logo,
1980
+ path: t.logopath,
1981
+ desc: t.logotext,
1983
1982
  class: "pb-0"
1984
1983
  }, null, 8, ["id", "path", "desc"])
1985
1984
  ])
1986
1985
  ])),
1987
- i.hasSearchSlot ? (u(), m("div", Wa, Ga)) : g("", !0),
1986
+ i.hasSearchSlot ? (u(), m("div", Wa, Ka)) : g("", !0),
1988
1987
  Ya,
1989
1988
  d("div", Za, [
1990
- _(t.$slots, "default")
1989
+ _(e.$slots, "default")
1991
1990
  ]),
1992
1991
  i.hasAccountSlot ? (u(), m("div", Ja, Qa)) : g("", !0),
1993
- e.btnlink ? (u(), m("div", er, [
1992
+ t.btnlink ? (u(), m("div", tr, [
1994
1993
  d("a", {
1995
- href: e.btnlink,
1994
+ href: t.btnlink,
1996
1995
  class: "btn me-0",
1997
- innerHTML: e.btntext
1998
- }, null, 8, tr)
1996
+ innerHTML: t.btntext
1997
+ }, null, 8, er)
1999
1998
  ])) : g("", !0)
2000
1999
  ])
2001
2000
  ]),
2002
2001
  i.hasSecondarySlot ? (u(), m("div", ar, [
2003
2002
  d("div", rr, [
2004
- _(t.$slots, "secondary")
2003
+ _(e.$slots, "secondary")
2005
2004
  ])
2006
2005
  ])) : g("", !0),
2007
2006
  i.hasSearchSlot ? (u(), m("div", or, [
2008
2007
  d("div", ir, [
2009
2008
  d("div", sr, [
2010
- _(t.$slots, "search")
2009
+ _(e.$slots, "search")
2011
2010
  ])
2012
2011
  ])
2013
2012
  ])) : g("", !0)
@@ -2016,13 +2015,13 @@ function pr(t, a, e, r, s, i) {
2016
2015
  d("div", lr, [
2017
2016
  d("div", cr, [
2018
2017
  i.hasLogoSlot ? (u(), m("div", dr, [
2019
- _(t.$slots, "logo")
2018
+ _(e.$slots, "logo")
2020
2019
  ])) : (u(), m("div", ur, [
2021
2020
  d("a", mr, [
2022
2021
  x(o, {
2023
- id: e.logo,
2024
- path: e.logopath,
2025
- desc: e.logotext,
2022
+ id: t.logo,
2023
+ path: t.logopath,
2024
+ desc: t.logotext,
2026
2025
  class: "pb-0"
2027
2026
  }, null, 8, ["id", "path", "desc"])
2028
2027
  ])
@@ -2031,7 +2030,7 @@ function pr(t, a, e, r, s, i) {
2031
2030
  ])
2032
2031
  ]),
2033
2032
  d("div", fr, [
2034
- _(t.$slots, "account")
2033
+ _(e.$slots, "account")
2035
2034
  ])
2036
2035
  ])) : g("", !0),
2037
2036
  br
@@ -2055,17 +2054,17 @@ const yr = {
2055
2054
  key: 0,
2056
2055
  class: "h6 stepper__start"
2057
2056
  }, wr = { class: "list-unstyled" }, Ar = { class: "h6 stepper__end" };
2058
- function Sr(t, a, e, r, s, i) {
2057
+ function Sr(e, a, t, r, s, i) {
2059
2058
  return u(), m("div", gr, [
2060
2059
  d("nav", {
2061
2060
  class: "stepper",
2062
- "aria-label": e.label ? e.label : "Progress"
2061
+ "aria-label": t.label ? t.label : "Progress"
2063
2062
  }, [
2064
- e.label ? (u(), m("span", vr, $(e.label), 1)) : g("", !0),
2063
+ t.label ? (u(), m("span", vr, q(t.label), 1)) : g("", !0),
2065
2064
  d("ol", wr, [
2066
- _(t.$slots, "default")
2065
+ _(e.$slots, "default")
2067
2066
  ]),
2068
- d("span", Ar, $(e.endlabel), 1)
2067
+ d("span", Ar, q(t.endlabel), 1)
2069
2068
  ], 8, _r)
2070
2069
  ]);
2071
2070
  }
@@ -2089,38 +2088,38 @@ const vo = /* @__PURE__ */ S(yr, [["render", Sr]]), kr = {
2089
2088
  key: 0,
2090
2089
  class: "visually-hidden"
2091
2090
  };
2092
- function qr(t, a, e, r, s, i) {
2091
+ function $r(e, a, t, r, s, i) {
2093
2092
  return u(), m("li", null, [
2094
2093
  d("a", {
2095
- href: e.url,
2096
- class: w(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
2097
- "aria-current": typeof e.current < "u"
2094
+ href: t.url,
2095
+ class: A(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
2096
+ "aria-current": typeof t.current < "u"
2098
2097
  }, [
2099
2098
  d("span", null, [
2100
- _(t.$slots, "default")
2099
+ _(e.$slots, "default")
2101
2100
  ]),
2102
- e.status ? (u(), m("em", xr, " - status: " + $(e.status), 1)) : g("", !0)
2101
+ t.status ? (u(), m("em", xr, " - status: " + q(t.status), 1)) : g("", !0)
2103
2102
  ], 10, Lr)
2104
2103
  ]);
2105
2104
  }
2106
- const wo = /* @__PURE__ */ S(kr, [["render", qr]]);
2105
+ const wo = /* @__PURE__ */ S(kr, [["render", $r]]);
2107
2106
  /*!
2108
- * iamKey v3.7.4
2107
+ * iamKey v3.7.5
2109
2108
  * Copyright 2022-2023 iamproperty
2110
2109
  */
2111
- const $r = function(t) {
2112
- const a = t.querySelectorAll(":scope > details");
2113
- t.querySelectorAll(":scope > details > summary");
2114
- let e = t.querySelector(":scope > .tabs__links");
2115
- t.shadowRoot && t.shadowRoot.querySelector(".tabs__links") && (e = t.shadowRoot.querySelector(".tabs__links")), e || (e = document.createElement("div"), e.classList.add("tabs__links"), t.prepend(e)), a.forEach((r, s) => {
2110
+ const qr = function(e) {
2111
+ const a = e.querySelectorAll(":scope > details");
2112
+ e.querySelectorAll(":scope > details > summary");
2113
+ let t = e.querySelector(":scope > .tabs__links");
2114
+ 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((r, s) => {
2116
2115
  let i = r.querySelector(":scope > summary");
2117
2116
  i.classList.add("visually-hidden");
2118
2117
  let o = document.createElement("button");
2119
- r.hasAttribute("id") && (o = document.createElement("a"), o.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && o.setAttribute("aria-pressed", !0), o.innerHTML = `${i.innerText}`, o.classList.add("link"), o.setAttribute("data-index", s), o.setAttribute("tabindex", "-1"), e.appendChild(o);
2118
+ r.hasAttribute("id") && (o = document.createElement("a"), o.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && o.setAttribute("aria-pressed", !0), o.innerHTML = `${i.innerText}`, o.classList.add("link"), o.setAttribute("data-index", s), o.setAttribute("tabindex", "-1"), t.appendChild(o);
2120
2119
  });
2121
- }, Er = function(t) {
2122
- let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > details > summary"), r = t.querySelectorAll(":scope .tabs__links > .link");
2123
- t.shadowRoot && (r = t.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((s) => {
2120
+ }, Er = function(e) {
2121
+ let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), r = e.querySelectorAll(":scope .tabs__links > .link");
2122
+ e.shadowRoot && (r = e.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((s) => {
2124
2123
  s.addEventListener("click", (i) => {
2125
2124
  i.preventDefault(), r.forEach((o) => {
2126
2125
  let c = o == s;
@@ -2130,7 +2129,7 @@ const $r = function(t) {
2130
2129
  n ? o.setAttribute("open", n) : o.removeAttribute("open");
2131
2130
  }), s.hasAttribute("href") && history.pushState(void 0, void 0, s.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: s.textContent });
2132
2131
  });
2133
- }), e.forEach((s, i) => {
2132
+ }), t.forEach((s, i) => {
2134
2133
  s.addEventListener("focus", (o) => {
2135
2134
  r.forEach((c) => {
2136
2135
  c.classList.remove("focus");
@@ -2139,20 +2138,20 @@ const $r = function(t) {
2139
2138
  o.preventDefault(), r[i].click();
2140
2139
  });
2141
2140
  });
2142
- }, Tr = function(t) {
2143
- let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
2144
- t.shadowRoot && (e = t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), location.hash && t.querySelector(`.tabs__links [href="${location.hash}"]`) ? (t.querySelector(`[href="${location.hash}"]`).setAttribute("open", !0), t.querySelector(`details[id="${location.hash.replace("#", "")}"]`).setAttribute("open", !0)) : t.querySelector("details[open]") || (a[0].setAttribute("open", !0), e[0].setAttribute("aria-pressed", !0));
2145
- }, Mr = function(t) {
2146
- $r(t), Er(t), Tr(t);
2141
+ }, Tr = function(e) {
2142
+ let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
2143
+ e.shadowRoot && (t = e.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), location.hash && e.querySelector(`.tabs__links [href="${location.hash}"]`) ? (e.querySelector(`[href="${location.hash}"]`).setAttribute("open", !0), e.querySelector(`details[id="${location.hash.replace("#", "")}"]`).setAttribute("open", !0)) : e.querySelector("details[open]") || (a[0].setAttribute("open", !0), t[0].setAttribute("aria-pressed", !0));
2144
+ }, Mr = function(e) {
2145
+ qr(e), Er(e), Tr(e);
2147
2146
  };
2148
2147
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
2149
2148
  class Hr extends HTMLElement {
2150
2149
  constructor() {
2151
2150
  super(), this.attachShadow({ mode: "open" });
2152
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
2151
+ 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`, r = document.createElement("template");
2153
2152
  r.innerHTML = `
2154
2153
  <style>
2155
- @import "${e}";
2154
+ @import "${t}";
2156
2155
 
2157
2156
  :host(.admin-panel){
2158
2157
  display: contents!important;
@@ -2175,9 +2174,9 @@ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs"
2175
2174
  const Cr = {
2176
2175
  name: "Tabs"
2177
2176
  }, Dr = { ref: "wrapper" };
2178
- function Nr(t, a, e, r, s, i) {
2177
+ function Nr(e, a, t, r, s, i) {
2179
2178
  return u(), m("iam-tabs", Dr, [
2180
- _(t.$slots, "default")
2179
+ _(e.$slots, "default")
2181
2180
  ], 512);
2182
2181
  }
2183
2182
  const Ao = /* @__PURE__ */ S(Cr, [["render", Nr]]), Rr = {
@@ -2198,93 +2197,23 @@ const Ao = /* @__PURE__ */ S(Cr, [["render", Nr]]), Rr = {
2198
2197
  };
2199
2198
  },
2200
2199
  watch: {
2201
- show(t, a) {
2202
- console.log(t);
2200
+ show(e, a) {
2201
+ console.log(e);
2203
2202
  }
2204
2203
  }
2205
2204
  }, zr = { class: "tab" }, Ir = ["innerHTML"];
2206
- function Pr(t, a, e, r, s, i) {
2205
+ function Pr(e, a, t, r, s, i) {
2207
2206
  return u(), m("details", zr, [
2208
- d("summary", { innerHTML: e.title }, null, 8, Ir),
2209
- _(t.$slots, "default")
2207
+ d("summary", { innerHTML: t.title }, null, 8, Ir),
2208
+ _(e.$slots, "default")
2210
2209
  ]);
2211
2210
  }
2212
2211
  const So = /* @__PURE__ */ S(Rr, [["render", Pr]]);
2213
- function Br(t) {
2214
- if (t.addEventListener("click", function(e) {
2215
- for (var r = e.target; r && r != this; r = r.parentNode)
2216
- if (r.matches(".btn-close")) {
2217
- e.preventDefault(), t.classList.remove("show"), setTimeout(function() {
2218
- t.remove();
2219
- }, 300);
2220
- break;
2221
- }
2222
- }, !1), t.hasAttribute("data-timeout")) {
2223
- let e = t.getAttribute("data-timeout");
2224
- setTimeout(function() {
2225
- t.classList.remove("show"), setTimeout(function() {
2226
- t.remove();
2227
- }, 300);
2228
- }, e);
2229
- }
2230
- if (!document.querySelector(".alert__holder")) {
2231
- document.getElementsByTagName("BODY")[0];
2232
- let e = document.createElement("div");
2233
- e.classList.add("alert__holder"), document.querySelector("main") ? document.querySelector("main").appendChild(e) : document.body.appendChild(e);
2234
- }
2235
- let a = document.querySelector(".alert__holder");
2236
- t.classList.contains("alert--fixed") && !t.parentNode.classList.contains("alert__wrapper") && a.appendChild(t);
2237
- }
2238
- const Fr = {
2239
- name: "Alert",
2240
- props: {
2241
- dismissible: {
2242
- type: [String, Boolean],
2243
- required: !1,
2244
- default: !1
2245
- },
2246
- colour: {
2247
- type: String,
2248
- required: !1,
2249
- default: "primary"
2250
- },
2251
- timeout: {
2252
- type: [String, Number],
2253
- required: !1
2254
- }
2255
- },
2256
- mounted() {
2257
- Br(this.$refs.wrapper);
2258
- }
2259
- }, jr = ["data-timeout"], Or = {
2260
- key: 0,
2261
- type: "button",
2262
- class: "btn-close",
2263
- "data-bs-dismiss": "alert",
2264
- "aria-label": "Close"
2265
- };
2266
- function Vr(t, a, e, r, s, i) {
2267
- return u(), m("div", {
2268
- class: w(`container alert pb-0 ${e.dismissible ? "alert--dismissible fade show" : ""}`),
2269
- ref: "wrapper",
2270
- "data-timeout": e.timeout,
2271
- style: ue(e.timeout ? `--animation-length: ${e.timeout}ms` : "")
2272
- }, [
2273
- d("div", {
2274
- class: w(`alert__inner bg-${e.colour}`),
2275
- role: "alert"
2276
- }, [
2277
- e.dismissible ? (u(), m("button", Or)) : g("", !0),
2278
- _(t.$slots, "default")
2279
- ], 2)
2280
- ], 14, jr);
2281
- }
2282
- const ko = /* @__PURE__ */ S(Fr, [["render", Vr]]);
2283
- let re = ae.props;
2284
- re.fields.required = !1;
2285
- const Ur = {
2212
+ let ot = rt.props;
2213
+ ot.fields.required = !1;
2214
+ const Br = {
2286
2215
  components: {
2287
- Table: ae,
2216
+ Table: rt,
2288
2217
  Input: F
2289
2218
  },
2290
2219
  data() {
@@ -2294,17 +2223,17 @@ const Ur = {
2294
2223
  };
2295
2224
  },
2296
2225
  methods: {
2297
- submitForm: function(t) {
2226
+ submitForm: function(e) {
2298
2227
  console.log(this);
2299
- const a = new FormData(t.target);
2300
- let e = /* @__PURE__ */ new Date();
2301
- const r = e.getFullYear();
2302
- let s = e.getMonth() + 1, i = e.getDate();
2303
- i < 10 && (i = "0" + i), s < 10 && (s = "0" + s), e = i + "/" + s + "/" + r, this.itemsData.unshift({
2304
- date_added: e,
2228
+ const a = new FormData(e.target);
2229
+ let t = /* @__PURE__ */ new Date();
2230
+ const r = t.getFullYear();
2231
+ let s = t.getMonth() + 1, i = t.getDate();
2232
+ i < 10 && (i = "0" + i), s < 10 && (s = "0" + s), t = i + "/" + s + "/" + r, this.itemsData.unshift({
2233
+ date_added: t,
2305
2234
  user: a.get("user"),
2306
2235
  note: a.get("addNote")
2307
- }), this.$emit("formSubmitted", t);
2236
+ }), this.$emit("formSubmitted", e);
2308
2237
  }
2309
2238
  },
2310
2239
  name: "NoteFeed",
@@ -2313,7 +2242,7 @@ const Ur = {
2313
2242
  type: String,
2314
2243
  required: !0
2315
2244
  },
2316
- ...re,
2245
+ ...ot,
2317
2246
  title: {
2318
2247
  type: String,
2319
2248
  required: !1
@@ -2328,29 +2257,29 @@ const Ur = {
2328
2257
  required: !1
2329
2258
  }
2330
2259
  }
2331
- }, Wr = { class: "container note-feed mb-2" }, Kr = ["innerHTML"], Gr = ["action", "method"], Yr = ["value"], Zr = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2332
- function Jr(t, a, e, r, s, i) {
2260
+ }, Fr = { class: "container note-feed mb-2" }, jr = ["innerHTML"], Or = ["action", "method"], Vr = ["value"], Ur = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2261
+ function Wr(e, a, t, r, s, i) {
2333
2262
  const o = N("Table"), c = N("Input");
2334
- return u(), m("div", Wr, [
2335
- e.title ? (u(), m("span", {
2263
+ return u(), m("div", Fr, [
2264
+ t.title ? (u(), m("span", {
2336
2265
  key: 0,
2337
2266
  class: "h3",
2338
- innerHTML: e.title
2339
- }, null, 8, Kr)) : g("", !0),
2267
+ innerHTML: t.title
2268
+ }, null, 8, jr)) : g("", !0),
2340
2269
  x(o, H({
2341
2270
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2342
2271
  items: s.itemsData
2343
- }, t.$props, { class: "mb-0" }), null, 16, ["items"]),
2272
+ }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2344
2273
  d("form", {
2345
- action: e.action,
2346
- method: e.method,
2347
- onSubmit: a[0] || (a[0] = me((n) => i.submitForm(...arguments), ["prevent"]))
2274
+ action: t.action,
2275
+ method: t.method,
2276
+ onSubmit: a[0] || (a[0] = mt((n) => i.submitForm(...arguments), ["prevent"]))
2348
2277
  }, [
2349
2278
  d("input", {
2350
2279
  type: "hidden",
2351
- value: e.user,
2280
+ value: t.user,
2352
2281
  name: "user"
2353
- }, null, 8, Yr),
2282
+ }, null, 8, Vr),
2354
2283
  x(c, {
2355
2284
  id: "addNote",
2356
2285
  type: "textarea",
@@ -2358,17 +2287,17 @@ function Jr(t, a, e, r, s, i) {
2358
2287
  required: "",
2359
2288
  class: "mw-100"
2360
2289
  }),
2361
- Zr
2362
- ], 40, Gr)
2290
+ Ur
2291
+ ], 40, Or)
2363
2292
  ]);
2364
2293
  }
2365
- const Lo = /* @__PURE__ */ S(Ur, [["render", Jr]]);
2294
+ const ko = /* @__PURE__ */ S(Br, [["render", Wr]]);
2366
2295
  /*!
2367
- * iamKey v3.7.4
2296
+ * iamKey v3.7.5
2368
2297
  * Copyright 2022-2023 iamproperty
2369
2298
  */
2370
- function Xr(t, a) {
2371
- function e(r, s) {
2299
+ function Gr(e, a) {
2300
+ function t(r, s) {
2372
2301
  let i = !1, o = s.getAttribute("name");
2373
2302
  o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
2374
2303
  let c = r.querySelector(`[data-name="${o}"]`);
@@ -2386,20 +2315,20 @@ function Xr(t, a) {
2386
2315
  }), r.querySelector(`[data-name="${o}"]`) && r.querySelector(`[data-name="${o}"]`).remove(), h) {
2387
2316
  let f = l.getAttribute("data-filter-text");
2388
2317
  l.querySelectorAll("input").forEach((y, p) => {
2389
- let A = y.getAttribute("name");
2390
- r.querySelector(`[data-name="${A}"]`) && r.querySelector(`[data-name="${A}"]`).remove(), f = f.replace(`$${p + 1}`, y.value);
2318
+ let w = y.getAttribute("name");
2319
+ r.querySelector(`[data-name="${w}"]`) && r.querySelector(`[data-name="${w}"]`).remove(), f = f.replace(`$${p + 1}`, y.value);
2391
2320
  });
2392
2321
  let b = document.createElement("button");
2393
2322
  b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", o), b.innerHTML = f, r.appendChild(b);
2394
2323
  }
2395
2324
  }
2396
2325
  }
2397
- Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, s) => {
2398
- e(a, r);
2399
- }), t.addEventListener("change", function(r) {
2326
+ Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, s) => {
2327
+ t(a, r);
2328
+ }), e.addEventListener("change", function(r) {
2400
2329
  if (r && r.target instanceof HTMLElement && r.target.closest("input[data-filter-text]")) {
2401
2330
  let s = r.target.closest("input[data-filter-text]");
2402
- e(a, s);
2331
+ t(a, s);
2403
2332
  }
2404
2333
  }, !1), a.addEventListener("click", function(r) {
2405
2334
  if (r && r.target instanceof HTMLElement && r.target.closest(".filter")) {
@@ -2407,7 +2336,7 @@ function Xr(t, a) {
2407
2336
  for (var s = 0; s < c.length; s++) {
2408
2337
  let n = c[s], l = `[name="${n}"]`;
2409
2338
  n.match(/\[(.*)\]/) && (n.replace(/\[(.*)\]/, "[]"), l = `[value="${n.replace(/.*\[(.*)\]/, "$1")}"]`);
2410
- let h = t.querySelectorAll(l);
2339
+ let h = e.querySelectorAll(l);
2411
2340
  for (var i = 0; i < h.length; i++) {
2412
2341
  let f = h[i];
2413
2342
  if (f.getAttribute("type") != "radio" && f.getAttribute("type") != "checkbox")
@@ -2424,15 +2353,15 @@ function Xr(t, a) {
2424
2353
  }, !1);
2425
2354
  }
2426
2355
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2427
- class Qr extends HTMLElement {
2356
+ class Kr extends HTMLElement {
2428
2357
  constructor() {
2429
2358
  super(), this.attachShadow({ mode: "open" });
2430
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
2359
+ 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`;
2431
2360
  let r = this.classList.toString();
2432
2361
  const s = document.createElement("template");
2433
2362
  s.innerHTML = `
2434
2363
  <style>
2435
- @import "${e}";
2364
+ @import "${t}";
2436
2365
  .applied-filters:not(.applied-filters--compact):not(:empty):before{content:"Applied filters";font-weight:bold;font-size:1.125rem;line-height:1.375rem;color:var(--colour-header);margin-bottom:1rem;display:block}.applied-filters:not(:empty){margin-bottom:1rem}::slotted(*:last-child){margin-bottom:0}.applied-filters .filter{border:1px solid var(--colour-border);padding:1rem 1.5rem 1rem 1.5rem;background:rgba(0,0,0,0);margin-right:.5rem !important;margin-bottom:.5rem !important;line-height:1.5rem;white-space:nowrap}.applied-filters .filter:after{content:"";display:inline-block;height:1.25rem;width:1.25rem;padding:0;margin-left:1.5rem;margin-bottom:-0.25rem;border:none;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}.applied-filters--compact .filter{background-color:var(--colour-light);border:none;padding:0.625rem;line-height:1rem;border-radius:0.3125rem}.applied-filters--compact .filter:after{margin-left:0.625rem;height:1rem;width:1rem;margin-bottom:-0.1rem}/*# sourceMappingURL=assets/css/components/applied-filters.css.map */
2437
2366
 
2438
2367
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -2442,50 +2371,50 @@ class Qr extends HTMLElement {
2442
2371
  `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2443
2372
  }
2444
2373
  connectedCallback() {
2445
- Xr(this, this.shadowRoot.querySelector(".applied-filters"));
2374
+ Gr(this, this.shadowRoot.querySelector(".applied-filters"));
2446
2375
  }
2447
2376
  }
2448
- window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Qr);
2449
- const eo = {
2377
+ window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Kr);
2378
+ const Yr = {
2450
2379
  name: "Header"
2451
2380
  };
2452
- function to(t, a, e, r, s, i) {
2381
+ function Zr(e, a, t, r, s, i) {
2453
2382
  return u(), m("iam-applied-filters", null, [
2454
- _(t.$slots, "default")
2383
+ _(e.$slots, "default")
2455
2384
  ]);
2456
2385
  }
2457
- const xo = /* @__PURE__ */ S(eo, [["render", to]]);
2386
+ const Lo = /* @__PURE__ */ S(Yr, [["render", Zr]]);
2458
2387
  /*!
2459
- * iamKey v3.7.4
2388
+ * iamKey v3.7.5
2460
2389
  * Copyright 2022-2023 iamproperty
2461
2390
  */
2462
- function ao(t, a) {
2463
- ro(t, a);
2391
+ function Jr(e, a) {
2392
+ Xr(e, a);
2464
2393
  }
2465
- function ro(t, a) {
2466
- var e;
2394
+ function Xr(e, a) {
2395
+ var t;
2467
2396
  a.addEventListener("keyup", (r) => {
2468
- clearTimeout(e), e = setTimeout(function() {
2469
- Z(t, a.value);
2397
+ clearTimeout(t), t = setTimeout(function() {
2398
+ J(e, a.value);
2470
2399
  }, 500);
2471
2400
  }), a.addEventListener("change", (r) => {
2472
- clearTimeout(e), Z(t, a.value);
2401
+ clearTimeout(t), J(e, a.value);
2473
2402
  });
2474
2403
  }
2475
- const Z = function(t, a) {
2476
- Array.from(t.querySelectorAll(":scope > li")).forEach((e, r) => {
2477
- let s = e.textContent.toLowerCase();
2478
- e.classList.add("d-none"), s.includes(a.toLowerCase()) && e.classList.remove("d-none");
2404
+ const J = function(e, a) {
2405
+ Array.from(e.querySelectorAll(":scope > li")).forEach((t, r) => {
2406
+ let s = t.textContent.toLowerCase();
2407
+ t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
2479
2408
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2480
2409
  };
2481
2410
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
2482
- class oo extends HTMLElement {
2411
+ class Qr extends HTMLElement {
2483
2412
  constructor() {
2484
2413
  super(), this.attachShadow({ mode: "open" });
2485
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
2414
+ 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`, r = document.createElement("template");
2486
2415
  r.innerHTML = `
2487
2416
  <style>
2488
- @import "${e}";
2417
+ @import "${t}";
2489
2418
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2490
2419
 
2491
2420
  :host {
@@ -2514,39 +2443,134 @@ class oo extends HTMLElement {
2514
2443
  }
2515
2444
  connectedCallback() {
2516
2445
  let a = this.classList.toString();
2517
- this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), ao(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2446
+ this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), Jr(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2518
2447
  }
2519
2448
  }
2520
- window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", oo);
2521
- const io = {
2449
+ window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", Qr);
2450
+ const to = {
2522
2451
  name: "Filter list"
2523
2452
  };
2524
- function so(t, a, e, r, s, i) {
2453
+ function eo(e, a, t, r, s, i) {
2525
2454
  return u(), m("iam-filterlist", null, [
2526
- _(t.$slots, "default")
2455
+ _(e.$slots, "default")
2456
+ ]);
2457
+ }
2458
+ const xo = /* @__PURE__ */ S(to, [["render", eo]]);
2459
+ function ao(e) {
2460
+ if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2461
+ let t = document.querySelector(".notification__holder");
2462
+ t || (t = document.createElement("div"), t.classList.add("notification__holder"), t.classList.add("container"), document.querySelector("body").appendChild(t)), e.closest(".notification__holder") || t.appendChild(e);
2463
+ }
2464
+ if (e.setAttribute("role", "alert"), e.addEventListener("click", function(t) {
2465
+ event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), W(e));
2466
+ }, !1), e.hasAttribute("data-timeout")) {
2467
+ let t = e.getAttribute("data-timeout");
2468
+ var a = new ro(function() {
2469
+ W(e);
2470
+ }, t);
2471
+ e.addEventListener("mouseenter", (r) => {
2472
+ a.pause();
2473
+ }), e.addEventListener("mouseleave", (r) => {
2474
+ a.resume();
2475
+ });
2476
+ }
2477
+ }
2478
+ function ro(e, a) {
2479
+ var t, r, s = a;
2480
+ this.pause = function() {
2481
+ window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - r;
2482
+ }, this.resume = function() {
2483
+ r = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
2484
+ }, this.resume();
2485
+ }
2486
+ const W = function(e) {
2487
+ e.classList.add("d-none");
2488
+ };
2489
+ window.dataLayer = window.dataLayer || [];
2490
+ window.dataLayer.push({
2491
+ event: "customElementRegistered",
2492
+ element: "Notification"
2493
+ });
2494
+ class oo extends HTMLElement {
2495
+ constructor() {
2496
+ super(), this.attachShadow({ mode: "open" });
2497
+ 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`, r = `@import "${a}/css/components/notification.css";`, s = this.querySelectorAll("a,button");
2498
+ Array.from(s).forEach((o, c) => {
2499
+ o.setAttribute("slot", "btns"), o.classList.add("link");
2500
+ }), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2501
+ const i = document.createElement("template");
2502
+ i.innerHTML = `
2503
+ <style>
2504
+ @import "${t}";
2505
+ ${r}
2506
+ ${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
2507
+ </style>
2508
+
2509
+ <div class="notification">
2510
+ <div class="notification__icon"><slot name="icon"></slot></div>
2511
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2512
+ ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2513
+ </div>
2514
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2515
+ }
2516
+ connectedCallback() {
2517
+ const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2518
+ this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
2519
+ const r = this;
2520
+ if (!this.querySelector("i"))
2521
+ switch (t) {
2522
+ case "danger":
2523
+ this.innerHTML += '<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';
2524
+ break;
2525
+ case "warning":
2526
+ this.innerHTML += '<i class="fa-solid fa-triangle-exclamation" aria-hidden="true" slot="icon"></i>';
2527
+ break;
2528
+ case "success":
2529
+ this.innerHTML += '<i class="fa-solid fa-check-circle" aria-hidden="true" slot="icon"></i>';
2530
+ break;
2531
+ default:
2532
+ this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2533
+ }
2534
+ ao(r), a && a.addEventListener("click", function(s) {
2535
+ W(r);
2536
+ }, !1);
2537
+ }
2538
+ }
2539
+ const io = {
2540
+ name: "Notification",
2541
+ props: {},
2542
+ created() {
2543
+ this.$nextTick(function() {
2544
+ window.customElements.get("iam-notification") || window.customElements.define("iam-notification", oo);
2545
+ });
2546
+ }
2547
+ };
2548
+ function so(e, a, t, r, s, i) {
2549
+ return u(), m("iam-notification", null, [
2550
+ _(e.$slots, "default")
2527
2551
  ]);
2528
2552
  }
2529
- const qo = /* @__PURE__ */ S(io, [["render", so]]);
2553
+ const $o = /* @__PURE__ */ S(io, [["render", so]]);
2530
2554
  export {
2531
2555
  mo as Accordion,
2532
2556
  ho as AccordionItem,
2533
- ko as Alert,
2534
- xo as AppliedFilters,
2557
+ Lo as AppliedFilters,
2535
2558
  fo as Banner,
2536
- Nt as Card,
2559
+ Ne as Card,
2537
2560
  bo as Carousel,
2538
2561
  co as FileUploads,
2539
- qo as Filterlist,
2562
+ xo as Filterlist,
2540
2563
  po as Header,
2541
2564
  F as Input,
2542
- ye as Logo,
2565
+ yt as Logo,
2543
2566
  _o as Nav,
2544
- Lo as NoteFeed,
2567
+ ko as NoteFeed,
2568
+ $o as Notification,
2545
2569
  go as PropertySearchbar,
2546
2570
  wo as Step,
2547
2571
  vo as Stepper,
2548
2572
  So as Tab,
2549
- ae as Table,
2573
+ rt as Table,
2550
2574
  Ao as Tabs,
2551
2575
  yo as Testimonial
2552
2576
  };