@iamproperty/components 3.9.0-beta-1 → 4.0.0

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 (42) hide show
  1. package/assets/css/components/collapsible-side.css +1 -0
  2. package/assets/css/components/collapsible-side.css.map +1 -0
  3. package/assets/css/components/nav-global.css +1 -1
  4. package/assets/css/components/nav-global.css.map +1 -1
  5. package/assets/css/core.min.css +1 -1
  6. package/assets/css/core.min.css.map +1 -1
  7. package/assets/css/style.min.css +1 -1
  8. package/assets/css/style.min.css.map +1 -1
  9. package/assets/js/components/accordion/accordion.component.min.js +2 -2
  10. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  11. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  12. package/assets/js/components/card/card.component.min.js +1 -1
  13. package/assets/js/components/collapsible-side/collapsible-side.component.js +96 -0
  14. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +27 -0
  15. package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -0
  16. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  17. package/assets/js/components/header/header.component.min.js +1 -1
  18. package/assets/js/components/nav/nav.component.min.js +1 -1
  19. package/assets/js/components/notification/notification.component.min.js +1 -1
  20. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  21. package/assets/js/components/table/table.component.min.js +1 -1
  22. package/assets/js/components/table/table.component.min.js.map +1 -1
  23. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  24. package/assets/js/dynamic.min.js +3 -3
  25. package/assets/js/dynamic.min.js.map +1 -1
  26. package/assets/js/modules/helpers.js +0 -13
  27. package/assets/js/scripts.bundle.js +8 -8
  28. package/assets/js/scripts.bundle.js.map +1 -1
  29. package/assets/js/scripts.bundle.min.js +2 -2
  30. package/assets/js/scripts.bundle.min.js.map +1 -1
  31. package/assets/sass/components/collapsible-side.scss +327 -0
  32. package/assets/sass/components/nav-global.scss +11 -0
  33. package/assets/ts/components/collapsible-side/README.md +38 -0
  34. package/assets/ts/components/collapsible-side/collapsible-side.component.ts +134 -0
  35. package/assets/ts/modules/helpers.ts +0 -17
  36. package/dist/components.es.js +1394 -886
  37. package/dist/components.umd.js +131 -37
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
  40. package/src/components/CollapsibleSideMenu/CollapsibleSideMenu.vue +20 -0
  41. package/src/components/CollapsibleSideMenu/README.md +23 -0
  42. package/src/index.js +8 -0
@@ -1,10 +1,10 @@
1
- import { openBlock as d, createElementBlock as u, normalizeClass as L, createElementVNode as f, toDisplayString as q, createCommentVNode as _, Fragment as H, renderList as M, renderSlot as A, withDirectives as R, mergeProps as C, vModelDynamic as G, vModelText as mt, vModelSelect as ht, createTextVNode as ft, resolveComponent as I, createVNode as T, withModifiers as pt } from "vue";
2
- const w = (e, a) => {
1
+ import { openBlock as m, createElementBlock as h, normalizeClass as $, createElementVNode as g, toDisplayString as x, createCommentVNode as _, Fragment as M, renderList as H, renderSlot as S, withDirectives as D, mergeProps as N, vModelDynamic as Y, vModelText as pt, vModelSelect as bt, createTextVNode as ft, resolveComponent as z, createVNode as C, withModifiers as gt } from "vue";
2
+ const A = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [i, o] of a)
5
- t[i] = o;
4
+ for (const [r, s] of a)
5
+ t[r] = s;
6
6
  return t;
7
- }, bt = {
7
+ }, yt = {
8
8
  name: "Logo",
9
9
  props: {
10
10
  id: {
@@ -29,427 +29,427 @@ const w = (e, a) => {
29
29
  return "brand brand--" + this.id;
30
30
  }
31
31
  }
32
- }, yt = ["xlink:href"], gt = ["innerHTML"];
33
- function vt(e, a, t, i, o, s) {
34
- return d(), u("div", {
35
- class: L(s.className)
32
+ }, vt = ["xlink:href"], wt = ["innerHTML"];
33
+ function _t(e, a, t, r, s, i) {
34
+ return m(), h("div", {
35
+ class: $(i.className)
36
36
  }, [
37
- (d(), u("svg", null, [
38
- f("title", null, "iam " + q(t.id), 1),
39
- f("use", {
40
- "xlink:href": t.path + s.src
41
- }, null, 8, yt)
37
+ (m(), h("svg", null, [
38
+ g("title", null, "iam " + x(t.id), 1),
39
+ g("use", {
40
+ "xlink:href": t.path + i.src
41
+ }, null, 8, vt)
42
42
  ])),
43
- t.desc ? (d(), u("span", {
43
+ t.desc ? (m(), h("span", {
44
44
  key: 0,
45
45
  innerHTML: t.desc
46
- }, null, 8, gt)) : _("", !0)
46
+ }, null, 8, wt)) : _("", !0)
47
47
  ], 2);
48
48
  }
49
- const Ar = /* @__PURE__ */ w(bt, [["render", vt]]);
49
+ const Ko = /* @__PURE__ */ A(yt, [["render", _t]]);
50
50
  /*!
51
- * iamKey v3.9.0-beta-1
51
+ * iamKey v4.0.0
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
- const _t = function(e) {
54
+ const At = function(e) {
55
55
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
- }, At = (e, a) => String(e).padStart(a, "0"), wt = (e) => e.charAt(0).toUpperCase() + e.slice(1), F = function(e, a) {
56
+ }, Lt = (e, a) => String(e).padStart(a, "0"), St = (e) => e.charAt(0).toUpperCase() + e.slice(1), B = function(e, a) {
57
57
  if (!e.getAttribute("data-pages"))
58
58
  return !1;
59
59
  e.getAttribute("data-page") || e.setAttribute("data-page", 1);
60
- let t = e.getAttribute("data-page"), i = e.getAttribute("data-pages"), o = e.getAttribute("data-total"), s = e.getAttribute("data-show"), r = e.getAttribute("data-increment");
61
- if (i <= 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
+ if (r <= 1)
62
62
  return a.innerHTML = "", !1;
63
- let l = "";
64
- for (let c = 1; c <= i; c++)
65
- c == t ? l += `<li class="page-item active" aria-current="page"><span class="page-link">${c}</span></li>` : l += `<li class="page-item"><a href="?page=${c}" class="page-link" data-page="${c}">${c}</a></li>`;
63
+ let n = "";
64
+ for (let c = 1; c <= r; c++)
65
+ c == t ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${c}</span></li>` : n += `<li class="page-item"><a href="?page=${c}" class="page-link" data-page="${c}">${c}</a></li>`;
66
66
  return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
67
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
- ${l}
69
- ${t == i ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) + 1}" class="page-link" data-page="${parseInt(t) + 1}">Next</a></li>`}
68
+ ${n}
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
- <span class="d-block pb-2">You've viewed ${s} of ${o} results</span>
72
- <a href="?show=${parseInt(s) + parseInt(r)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(s) + parseInt(r)}">Load more results</a>
71
+ <span class="d-block pb-2">You've viewed ${i} of ${s} results</span>
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 Lt = function(e, a, t, i) {
76
- function o(s) {
77
- return s instanceof t ? s : new t(function(r) {
78
- r(s);
75
+ var $t = function(e, a, t, r) {
76
+ function s(i) {
77
+ return i instanceof t ? i : new t(function(o) {
78
+ o(i);
79
79
  });
80
80
  }
81
- return new (t || (t = Promise))(function(s, r) {
82
- function l(h) {
81
+ return new (t || (t = Promise))(function(i, o) {
82
+ function n(p) {
83
83
  try {
84
- n(i.next(h));
85
- } catch (p) {
86
- r(p);
84
+ l(r.next(p));
85
+ } catch (d) {
86
+ o(d);
87
87
  }
88
88
  }
89
- function c(h) {
89
+ function c(p) {
90
90
  try {
91
- n(i.throw(h));
92
- } catch (p) {
93
- r(p);
91
+ l(r.throw(p));
92
+ } catch (d) {
93
+ o(d);
94
94
  }
95
95
  }
96
- function n(h) {
97
- h.done ? s(h.value) : o(h.value).then(l, c);
96
+ function l(p) {
97
+ p.done ? i(p.value) : s(p.value).then(n, c);
98
98
  }
99
- n((i = i.apply(e, a || [])).next());
99
+ l((r = r.apply(e, a || [])).next());
100
100
  });
101
101
  };
102
- const tt = (e) => {
102
+ const at = (e) => {
103
103
  const a = Array.from(e.querySelectorAll("thead th"));
104
- Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
105
- const o = Array.from(t.querySelectorAll("th, td")), s = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
106
- o.forEach((r, l) => {
107
- const c = a[l];
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", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
106
+ s.forEach((o, n) => {
107
+ const c = a[n];
108
108
  if (typeof c < "u") {
109
- let n = document.createElement("div");
110
- n.innerHTML = c.innerHTML;
111
- let h = n.textContent || n.innerText || "";
112
- r.setAttribute("data-label", h), c.hasAttribute("data-td-class") && r.setAttribute("class", c.getAttribute("data-td-class")), c.hasAttribute("data-format") && (r.setAttribute("data-format", c.getAttribute("data-format")), r.innerHTML = Y(c.getAttribute("data-format"), r.textContent.trim())), s.includes(r.textContent.trim().toLowerCase()) && r.setAttribute("data-content", r.textContent.trim().toLowerCase());
109
+ let l = document.createElement("div");
110
+ l.innerHTML = c.innerHTML;
111
+ let p = l.textContent || l.innerText || "";
112
+ o.setAttribute("data-label", p), c.hasAttribute("data-td-class") && o.setAttribute("class", c.getAttribute("data-td-class")), c.hasAttribute("data-format") && (o.setAttribute("data-format", c.getAttribute("data-format")), o.innerHTML = K(c.getAttribute("data-format"), o.textContent.trim())), i.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
113
113
  }
114
114
  });
115
115
  });
116
- }, St = (e) => {
116
+ }, qt = (e) => {
117
117
  let a = 0;
118
- return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
119
- let o = window.getComputedStyle(document.querySelector("html")), s = t.querySelector(":scope > *:last-child > *:first-child");
120
- if (s) {
121
- s.classList.add("text-nowrap");
122
- let r = s.offsetWidth / parseFloat(o.fontSize);
123
- r += 1.7, a = a > r ? a : r;
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
+ if (i) {
121
+ i.classList.add("text-nowrap");
122
+ let o = i.offsetWidth / parseFloat(s.fontSize);
123
+ o += 1.7, a = a > o ? a : o;
124
124
  }
125
125
  }), a;
126
126
  }, kt = (e) => {
127
127
  if (e.closest(".table--fullwidth") || e.querySelectorAll("thead tr th").length < 4)
128
128
  return !1;
129
129
  Array.from(e.querySelectorAll("tbody tr")).forEach((a, t) => {
130
- let i = a.querySelector(":scope > :is(td,th):first-child"), o = i.textContent;
131
- if (o != "")
132
- i.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
130
+ let r = a.querySelector(":scope > :is(td,th):first-child"), s = r.textContent;
131
+ if (s != "")
132
+ r.innerHTML = `<span class="td__content">${s}</span><button type="button" class="d-none">${s}</button>`;
133
133
  else {
134
- let s = a.querySelector(":scope > :is(td,th):nth-child(2)"), r = s.textContent;
135
- s.innerHTML = `<span class="td__content">${r}</span><button type="button" class="d-none">${r}</button>`;
134
+ let i = a.querySelector(":scope > :is(td,th):nth-child(2)"), o = i.textContent;
135
+ i.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
136
136
  }
137
137
  });
138
- }, qt = (e) => {
138
+ }, xt = (e) => {
139
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 t = a.target.closest("tr > :is(td,th):first-child button"), i = t.parentNode.closest("tr");
142
- i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.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
- }, et = (e, a) => {
145
+ }, ot = (e, a) => {
146
146
  let t = a.querySelector("[data-search]");
147
147
  if (!t)
148
148
  return !1;
149
- const i = t.getAttribute("id"), o = t.getAttribute("data-search").split(",");
150
- let s = t.parentNode, r = {};
151
- o.forEach((l, c) => {
152
- Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((n, h) => {
153
- n.querySelector(".td__content") ? r[n.querySelector(".td__content").textContent] = n.querySelector(".td__content").textContent : r[n.textContent] = n.textContent;
149
+ const r = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
150
+ let i = t.parentNode, o = {};
151
+ s.forEach((n, c) => {
152
+ Array.from(e.querySelectorAll('td[data-label="' + n.trim() + '"]')).forEach((l, p) => {
153
+ l.querySelector(".td__content") ? o[l.querySelector(".td__content").textContent] = l.querySelector(".td__content").textContent : o[l.textContent] = l.textContent;
154
154
  });
155
- }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), s.querySelector("datalist") || (s.innerHTML += `<datalist id="${i}_list"></datalist>`), s.querySelector("datalist").innerHTML = `${Object.keys(r).map((l) => `<option value="${l}"></option>`).join("")}`;
156
- }, $t = (e, a, t, i, o) => {
157
- var s;
158
- let r = function(n = !1) {
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((n) => `<option value="${n}"></option>`).join("")}`;
156
+ }, Et = (e, a, t, r, s) => {
157
+ var i;
158
+ let o = function(l = !1) {
159
159
  if (a.hasAttribute("data-ajax")) {
160
- if (!n) {
161
- let h = a.querySelector("[data-pagination]");
162
- h.value = 1, i.setAttribute("data-page", 1);
160
+ if (!l) {
161
+ let p = a.querySelector("[data-pagination]");
162
+ p.value = 1, r.setAttribute("data-page", 1);
163
163
  }
164
- it(e, a, t, i);
164
+ st(e, a, t, r);
165
165
  } else
166
- a.hasAttribute("data-submit") ? a.submit() : (K(e, a, i), F(i, t), B(e, a));
166
+ a.hasAttribute("data-submit") ? a.submit() : (G(e, a, r), B(r, t), F(e, a));
167
167
  if (a.hasAttribute("data-ajax-post")) {
168
- let h = new FormData(a), p = new URLSearchParams(h).toString();
169
- const y = new XMLHttpRequest();
170
- y.open("GET", `${window.location.href}?ajax=true&${p}`), y.send();
168
+ let p = new FormData(a), d = new URLSearchParams(p).toString();
169
+ const f = new XMLHttpRequest();
170
+ f.open("GET", `${window.location.href}?ajax=true&${d}`), f.send();
171
171
  }
172
172
  };
173
- a.addEventListener("keyup", (n) => {
174
- clearTimeout(s), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && (s = setTimeout(function() {
175
- r();
173
+ a.addEventListener("keyup", (l) => {
174
+ clearTimeout(i), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (i = setTimeout(function() {
175
+ o();
176
176
  }, 500));
177
- }), a.addEventListener("change", (n) => {
178
- clearTimeout(s), n && n.target instanceof HTMLElement && n.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, o), r()), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && r(), n && n.target instanceof HTMLElement && n.target.closest("[data-filter][data-no-ajax]") ? (K(e, a, i), F(i, t), B(e, a)) : (n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && n.target.closest("form .dialog__wrapper > dialog") || n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && !n.target.closest("form dialog")) && r(), n && n.target instanceof HTMLElement && n.target.closest("[data-show]") && r(), n && n.target instanceof HTMLElement && n.target.closest("[data-mimic]") && r();
179
- }), a.addEventListener("click", (n) => {
180
- clearTimeout(s), n && n.target instanceof HTMLElement && n.target.closest('dialog button:not([type="button"])') && n.target.closest('dialog button:not([type="button"])').closest("dialog").close(), n && n.target instanceof HTMLElement && n.target.closest(".dialog__close") && (n.preventDefault(), n.stopPropagation()), n && n.target instanceof HTMLElement && n.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || Q(e, a, o), r());
181
- }), a.addEventListener("submit", (n) => {
182
- clearTimeout(s), a.hasAttribute("data-submit") || n.preventDefault(), r();
183
- }), a.addEventListener("force", (n) => {
184
- r();
185
- }), a.addEventListener("paginate", (n) => {
186
- r(!0);
177
+ }), a.addEventListener("change", (l) => {
178
+ clearTimeout(i), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(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][data-no-ajax]") ? (G(e, a, r), B(r, t), F(e, a)) : (l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") || 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();
179
+ }), a.addEventListener("click", (l) => {
180
+ 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") || Q(e, a, s), o());
181
+ }), a.addEventListener("submit", (l) => {
182
+ clearTimeout(i), a.hasAttribute("data-submit") || l.preventDefault(), o();
183
+ }), a.addEventListener("force", (l) => {
184
+ o();
185
+ }), a.addEventListener("paginate", (l) => {
186
+ o(!0);
187
187
  });
188
- let l = [], c = [];
189
- Array.from(a.querySelectorAll("[data-mimic]")).forEach((n, h) => {
190
- let p = n.getAttribute("data-mimic");
191
- Array.from(document.querySelectorAll(`[name="${p}"]`)).forEach((y, b) => {
192
- let m = y.closest("form");
193
- l.includes(m) || l.push(m), c.includes(p) || c.push(p);
188
+ let n = [], c = [];
189
+ Array.from(a.querySelectorAll("[data-mimic]")).forEach((l, p) => {
190
+ let d = l.getAttribute("data-mimic");
191
+ Array.from(document.querySelectorAll(`[name="${d}"]`)).forEach((f, b) => {
192
+ let u = f.closest("form");
193
+ n.includes(u) || n.push(u), c.includes(d) || c.push(d);
194
194
  });
195
- }), l.forEach((n, h) => {
196
- const p = function() {
197
- let y = [], b = new FormData(n);
198
- for (const [m, S] of b)
199
- document.querySelector(`[data-mimic="${m}"]`) && !y.includes(m) ? (y.push(m), document.querySelector(`[data-mimic="${m}"]`).value = S) : document.querySelector(`[data-mimic="${m}"]`) && (document.querySelector(`[data-mimic="${m}"]`).value += "," + S);
200
- for (const m of y) {
201
- const S = new Event("force");
202
- a.dispatchEvent(S);
195
+ }), n.forEach((l, p) => {
196
+ const d = function() {
197
+ let f = [], b = new FormData(l);
198
+ for (const [u, w] of b)
199
+ document.querySelector(`[data-mimic="${u}"]`) && !f.includes(u) ? (f.push(u), document.querySelector(`[data-mimic="${u}"]`).value = w) : document.querySelector(`[data-mimic="${u}"]`) && (document.querySelector(`[data-mimic="${u}"]`).value += "," + w);
200
+ for (const u of f) {
201
+ const w = new Event("force");
202
+ a.dispatchEvent(w);
203
203
  }
204
- for (const m of c)
205
- if (!b.has(m) && n.querySelector(`[name="${m}"]`)) {
206
- document.querySelector(`[data-mimic="${m}"]`).value = "";
207
- const S = new Event("force");
208
- a.dispatchEvent(S);
204
+ for (const u of c)
205
+ if (!b.has(u) && l.querySelector(`[name="${u}"]`)) {
206
+ document.querySelector(`[data-mimic="${u}"]`).value = "";
207
+ const w = new Event("force");
208
+ a.dispatchEvent(w);
209
209
  }
210
210
  };
211
- n.addEventListener("force", (y) => {
212
- p();
213
- }), n.addEventListener("change", (y) => {
214
- p();
211
+ l.addEventListener("force", (f) => {
212
+ d();
213
+ }), l.addEventListener("change", (f) => {
214
+ d();
215
215
  });
216
216
  });
217
217
  }, Q = (e, a, t) => {
218
218
  if (a.getAttribute("data-ajax"))
219
219
  return !1;
220
- let i = e.querySelector("tbody"), o = a.querySelector("[data-sort]"), s = o.querySelector(`option:nth-child(${o.selectedIndex + 1})`), r = s.getAttribute("data-sort"), l = s.getAttribute("data-order"), c = s.getAttribute("data-format");
221
- if (!r)
222
- return i.innerHTML = t.innerHTML, tt(e), !1;
223
- let n = [];
224
- ["asc", "desc", "descending"].includes(l) || (n = l.split(","));
225
- let h = [];
226
- Array.from(i.querySelectorAll("tr")).forEach((y, b) => {
227
- let m = y.querySelector('td[data-label="' + r + '"], th[data-label="' + r + '"]').textContent.trim();
228
- y.querySelector('[data-label="' + r + '"] .td__content') && (m = y.querySelector('[data-label="' + r + '"] .td__content').textContent.trim()), n.length && n.includes(m) && (m = n.indexOf(m)), _t(m) && (m = At(m, 10)), c && c == "date" && (m = new Date(m));
229
- const S = { index: m, row: y };
230
- h.push(S);
231
- }), h.sort((y, b) => y.index > b.index ? 1 : -1), (l == "descending" || l == "desc") && (h = h.reverse());
232
- let p = "";
233
- h.forEach((y, b) => {
234
- p += y.row.outerHTML;
235
- }), i.innerHTML = p;
236
- }, K = (e, a, t) => {
220
+ let r = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), i = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = i.getAttribute("data-sort"), n = i.getAttribute("data-order"), c = i.getAttribute("data-format");
221
+ if (!o)
222
+ return r.innerHTML = t.innerHTML, at(e), !1;
223
+ let l = [];
224
+ ["asc", "desc", "descending"].includes(n) || (l = n.split(","));
225
+ let p = [];
226
+ Array.from(r.querySelectorAll("tr")).forEach((f, b) => {
227
+ let u = f.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
228
+ f.querySelector('[data-label="' + o + '"] .td__content') && (u = f.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), l.length && l.includes(u) && (u = l.indexOf(u)), At(u) && (u = Lt(u, 10)), c && c == "date" && (u = new Date(u));
229
+ const w = { index: u, row: f };
230
+ p.push(w);
231
+ }), p.sort((f, b) => f.index > b.index ? 1 : -1), (n == "descending" || n == "desc") && (p = p.reverse());
232
+ let d = "";
233
+ p.forEach((f, b) => {
234
+ d += f.row.outerHTML;
235
+ }), r.innerHTML = d;
236
+ }, G = (e, a, t) => {
237
237
  e.classList.remove("table--filtered");
238
- let i = rt(a), o = [], s = 0, r = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
239
- if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, h) => {
240
- n.classList.remove("filtered"), n.classList.remove("filtered--matched"), n.classList.remove("filtered--show"), n.removeAttribute("data-filtered-by");
238
+ let r = rt(a), s = [], i = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
239
+ if (Array.from(e.querySelectorAll("tbody tr")).forEach((l, p) => {
240
+ l.classList.remove("filtered"), l.classList.remove("filtered--matched"), l.classList.remove("filtered--show"), l.removeAttribute("data-filtered-by");
241
241
  }), a.querySelector("[data-search]")) {
242
- let n = a.querySelector("[data-search]");
243
- a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((h, p) => {
244
- o.push({ column: `${h.trim()}`, value: `${n.value}` });
242
+ let l = a.querySelector("[data-search]");
243
+ a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((p, d) => {
244
+ s.push({ column: `${p.trim()}`, value: `${l.value}` });
245
245
  });
246
246
  }
247
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, h) => {
248
- n.innerHTML = "", n.parentNode.classList.remove("hover");
247
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, p) => {
248
+ l.innerHTML = "", l.parentNode.classList.remove("hover");
249
249
  });
250
250
  let c = 0;
251
- Object.values(i).forEach((n, h) => {
252
- typeof n == "object" && Object.values(n).length ? c += Object.values(n).length : c++;
253
- }), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, h) => {
254
- n.innerHTML += `(${c})`, n.parentNode.classList.add("hover");
251
+ Object.values(r).forEach((l, p) => {
252
+ typeof l == "object" && Object.values(l).length ? c += Object.values(l).length : c++;
253
+ }), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, p) => {
254
+ l.innerHTML += `(${c})`, l.parentNode.classList.add("hover");
255
255
  }), e.classList.add("table--filtered");
256
- for (const [n, h] of Object.entries(i))
257
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((p, y) => {
256
+ for (const [l, p] of Object.entries(r))
257
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((d, f) => {
258
258
  let b = !1;
259
- h.forEach((m, S) => {
260
- let $ = p.querySelector(`[data-label="${n}"]`);
261
- if (m && m == "$today")
262
- m = Y("date", /* @__PURE__ */ new Date());
263
- else if (m && m == "$yesterday") {
264
- let v = /* @__PURE__ */ new Date();
265
- v.setDate(v.getDate() - 1), m = Y("date", v);
266
- } else if (m && (m == "$thisWeek" || m == "$lastWeek")) {
267
- let v = /* @__PURE__ */ new Date(), x = new Date(v.setDate(v.getDate() - (v.getDay() - 1))), k = new Date(v.setDate(v.getDate() - v.getDay() + 7)), g = new Date($.textContent.toLowerCase());
268
- if (v.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), g.setHours(0, 0, 0, 0), m == "$thisWeek")
269
- b = g >= x && g <= k;
259
+ p.forEach((u, w) => {
260
+ let q = d.querySelector(`[data-label="${l}"]`);
261
+ if (u && u == "$today")
262
+ u = K("date", /* @__PURE__ */ new Date());
263
+ else if (u && u == "$yesterday") {
264
+ let L = /* @__PURE__ */ new Date();
265
+ L.setDate(L.getDate() - 1), u = K("date", L);
266
+ } else if (u && (u == "$thisWeek" || u == "$lastWeek")) {
267
+ let L = /* @__PURE__ */ new Date(), E = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), k = new Date(L.setDate(L.getDate() - L.getDay() + 7)), v = new Date(q.textContent.toLowerCase());
268
+ if (L.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), u == "$thisWeek")
269
+ b = v >= E && v <= k;
270
270
  else {
271
- let O = new Date(x.setDate(x.getDate() - 7)), E = new Date(k.setDate(k.getDate() - 7));
272
- O.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), b = g >= O && g <= E;
271
+ let O = new Date(E.setDate(E.getDate() - 7)), T = new Date(k.setDate(k.getDate() - 7));
272
+ O.setHours(0, 0, 0, 0), T.setHours(0, 0, 0, 0), b = v >= O && v <= T;
273
273
  }
274
- } else if (m && m == "$thisMonth") {
275
- let v = /* @__PURE__ */ new Date(), x = v.getFullYear(), k = v.getMonth();
276
- var D = new Date(x, k, 1), z = new Date(x, k + 1, 0);
277
- let g = new Date($.textContent.toLowerCase());
278
- D.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), g.setHours(0, 0, 0, 0), b = g >= D && g <= z;
279
- } else if (m && m == "$lastMonth") {
280
- let v = /* @__PURE__ */ new Date(), x = v.getFullYear(), k = v.getMonth();
281
- var N = new Date(x, k - 1, 1), P = new Date(x, k, 0);
282
- let g = new Date($.textContent.toLowerCase());
283
- N.setHours(0, 0, 0, 0), P.setHours(0, 0, 0, 0), g.setHours(0, 0, 0, 0), b = g >= N && g <= P;
274
+ } else if (u && u == "$thisMonth") {
275
+ let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), k = L.getMonth();
276
+ var y = new Date(E, k, 1), P = new Date(E, k + 1, 0);
277
+ let v = new Date(q.textContent.toLowerCase());
278
+ y.setHours(0, 0, 0, 0), P.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), b = v >= y && v <= P;
279
+ } else if (u && u == "$lastMonth") {
280
+ let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), k = L.getMonth();
281
+ var R = new Date(E, k - 1, 1), j = new Date(E, k, 0);
282
+ let v = new Date(q.textContent.toLowerCase());
283
+ R.setHours(0, 0, 0, 0), j.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), b = v >= R && v <= j;
284
284
  }
285
- $ && $.textContent.toLowerCase().includes(m.toLowerCase()) && (b = !0);
286
- }), b || (p.classList.add("filtered"), p.setAttribute("data-filtered-by", n));
285
+ q && q.textContent.toLowerCase().includes(u.toLowerCase()) && (b = !0);
286
+ }), b || (d.classList.add("filtered"), d.setAttribute("data-filtered-by", l));
287
287
  });
288
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, h) => {
289
- let p = !(o.length > 0 && o[0].value.length >= 3);
290
- o.forEach((y, b) => {
291
- let m = n.querySelector(`[data-label="${y.column}"]`);
292
- m && y.value.length >= 3 && m.textContent.toLowerCase().includes(y.value.toLowerCase()) && (p = !0);
293
- }), p || n.classList.add("filtered");
294
- }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, h) => {
295
- s++, n.classList.add("filtered--matched"), Math.ceil(s / l) == parseInt(r) && n.classList.add("filtered--show");
296
- }), t && (t.setAttribute("data-page", r), t.setAttribute("data-pages", Math.ceil(s / l)), t.setAttribute("data-total", s), t.setAttribute("data-show", l));
297
- }, B = (e, a, t) => {
298
- Array.from(a.querySelectorAll("[data-query]")).forEach((i, o) => {
299
- let s = i.getAttribute("data-query"), r;
300
- if (s == "total")
301
- t.hasAttribute("data-total") ? r = t.getAttribute("data-total") : r = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
302
- else if (!s.includes(" == ") && s.includes(" & ")) {
303
- let l = s.split(" & "), c = "";
304
- l.forEach((n) => {
305
- c += `:not([data-filtered-by="${n}"])`;
306
- }), r = Array.from(e.querySelectorAll(`tbody tr${c}`)).length;
307
- } else if (!s.includes(" == "))
308
- r = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
309
- else if (s.includes(" && ")) {
310
- let l = s.split(" && ");
311
- r = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(c) {
312
- let n = !0;
313
- for (const [h, p] of Object.entries(l)) {
314
- let y = p.split(" == ");
315
- (!c.querySelector(`td[data-label="${y[0]}"]`) || c.querySelector(`td[data-label="${y[0]}"]`).textContent != `${y[1]}`) && (n = !1);
288
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((l, p) => {
289
+ let d = !(s.length > 0 && s[0].value.length >= 3);
290
+ s.forEach((f, b) => {
291
+ let u = l.querySelector(`[data-label="${f.column}"]`);
292
+ u && f.value.length >= 3 && u.textContent.toLowerCase().includes(f.value.toLowerCase()) && (d = !0);
293
+ }), d || l.classList.add("filtered");
294
+ }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((l, p) => {
295
+ i++, l.classList.add("filtered--matched"), Math.ceil(i / n) == parseInt(o) && l.classList.add("filtered--show");
296
+ }), t && (t.setAttribute("data-page", o), t.setAttribute("data-pages", Math.ceil(i / n)), t.setAttribute("data-total", i), t.setAttribute("data-show", n));
297
+ }, F = (e, a, t) => {
298
+ Array.from(a.querySelectorAll("[data-query]")).forEach((r, s) => {
299
+ let i = r.getAttribute("data-query"), o;
300
+ if (i == "total")
301
+ t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
302
+ else if (!i.includes(" == ") && i.includes(" & ")) {
303
+ let n = i.split(" & "), c = "";
304
+ n.forEach((l) => {
305
+ c += `:not([data-filtered-by="${l}"])`;
306
+ }), o = Array.from(e.querySelectorAll(`tbody tr${c}`)).length;
307
+ } else if (!i.includes(" == "))
308
+ o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${i}"])`)).length;
309
+ else if (i.includes(" && ")) {
310
+ let n = i.split(" && ");
311
+ o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(c) {
312
+ let l = !0;
313
+ for (const [p, d] of Object.entries(n)) {
314
+ let f = d.split(" == ");
315
+ (!c.querySelector(`td[data-label="${f[0]}"]`) || c.querySelector(`td[data-label="${f[0]}"]`).textContent != `${f[1]}`) && (l = !1);
316
316
  }
317
- return n;
317
+ return l;
318
318
  }).length;
319
319
  } else {
320
- let l = s.split(" == ");
321
- r = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(c) {
322
- return c.textContent === l[1];
320
+ let n = i.split(" == ");
321
+ o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${n[0]}"], tbody tr[data-filtered-by="${n[0]}"] td[data-label="${n[0]}"]`)).filter(function(c) {
322
+ return c.textContent === n[1];
323
323
  }).length;
324
324
  }
325
- i.hasAttribute("data-total") ? i.setAttribute("data-total", r) : i.innerHTML = r;
325
+ r.hasAttribute("data-total") ? r.setAttribute("data-total", o) : r.innerHTML = o;
326
326
  });
327
- }, xt = function(e, a, t, i) {
328
- t.addEventListener("click", (o) => {
329
- if (o && o.target instanceof HTMLElement && o.target.closest("[data-page]")) {
330
- o.preventDefault();
331
- let s = a.querySelector("[data-pagination]"), r = o.target.closest("[data-page]").getAttribute("data-page");
332
- if (s.value = r, i.setAttribute("data-page", r), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
333
- const n = new URL(location);
334
- n.searchParams.set("page", r), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: r }, "", n);
327
+ }, Tt = function(e, a, t, r) {
328
+ t.addEventListener("click", (s) => {
329
+ if (s && s.target instanceof HTMLElement && s.target.closest("[data-page]")) {
330
+ s.preventDefault();
331
+ let i = a.querySelector("[data-pagination]"), o = s.target.closest("[data-page]").getAttribute("data-page");
332
+ if (i.value = o, r.setAttribute("data-page", o), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
333
+ const l = new URL(location);
334
+ l.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", l);
335
335
  }
336
- const l = -250, c = e.getBoundingClientRect().top + window.pageYOffset + l;
336
+ const n = -250, c = e.getBoundingClientRect().top + window.pageYOffset + n;
337
337
  window.scrollTo({ top: c, behavior: "smooth" });
338
338
  }
339
- if (o && o.target instanceof HTMLElement && o.target.closest("[data-show]")) {
340
- o.preventDefault();
341
- let s = a.querySelector("[data-show]"), r = o.target.closest("[data-show]").getAttribute("data-show");
342
- s.value = r, i.setAttribute("data-show", r), a.dispatchEvent(new Event("submit"));
339
+ if (s && s.target instanceof HTMLElement && s.target.closest("[data-show]")) {
340
+ s.preventDefault();
341
+ let i = a.querySelector("[data-show]"), o = s.target.closest("[data-show]").getAttribute("data-show");
342
+ i.value = o, r.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
343
343
  }
344
344
  });
345
- }, Et = (e, a) => {
345
+ }, Mt = (e, a) => {
346
346
  if (!e)
347
347
  return !1;
348
348
  e.addEventListener("click", (t) => {
349
- Tt(a);
349
+ Ht(a);
350
350
  });
351
- }, Tt = function(e) {
352
- for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
353
- for (var o = t[i].querySelectorAll("td,th"), s = [], r = 0; r < o.length; r++)
354
- s.push(`"${o[r].textContent}"`);
355
- a.push(s.join(","));
351
+ }, Ht = function(e) {
352
+ for (var a = [], t = e.getElementsByTagName("tr"), r = 0; r < t.length; r++) {
353
+ for (var s = t[r].querySelectorAll("td,th"), i = [], o = 0; o < s.length; o++)
354
+ i.push(`"${s[o].textContent}"`);
355
+ a.push(i.join(","));
356
356
  }
357
357
  a = a.join(`
358
358
  `);
359
- let l = new Blob([a], { type: "text/csv" });
359
+ let n = new Blob([a], { type: "text/csv" });
360
360
  var c = document.createElement("a");
361
361
  c.download = "export.csv";
362
- var n = window.URL.createObjectURL(l);
363
- c.href = n, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
364
- }, at = function(e, a, t, i) {
365
- if (tt(e), kt(e), B(e, a, i), i && i.classList.contains("table--cta")) {
366
- let o = function() {
367
- Array.from(e.querySelectorAll("tr")).forEach((r, l) => {
368
- let c = r.offsetHeight;
369
- r.style.setProperty("--row-height", `${c}px`);
362
+ var l = window.URL.createObjectURL(n);
363
+ c.href = l, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
364
+ }, it = function(e, a, t, r) {
365
+ if (at(e), kt(e), F(e, a, r), r && r.classList.contains("table--cta")) {
366
+ let s = function() {
367
+ Array.from(e.querySelectorAll("tr")).forEach((o, n) => {
368
+ let c = o.offsetHeight;
369
+ o.style.setProperty("--row-height", `${c}px`);
370
370
  });
371
371
  };
372
- const s = St(e);
373
- i.style.setProperty("--cta-width", `${s}rem`), new ResizeObserver(o).observe(e);
372
+ const i = qt(e);
373
+ r.style.setProperty("--cta-width", `${i}rem`), new ResizeObserver(s).observe(e);
374
374
  }
375
375
  }, rt = function(e) {
376
376
  let a = new Object();
377
- return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
377
+ return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, r) => {
378
378
  if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
379
- let o = t.getAttribute("data-filter");
380
- a[o] || (a[o] = new Array()), a[o].push(t.value);
379
+ let s = t.getAttribute("data-filter");
380
+ a[s] || (a[s] = new Array()), a[s].push(t.value);
381
381
  }
382
382
  }), a;
383
- }, it = function(e, a, t, i) {
384
- return Lt(this, void 0, void 0, function* () {
385
- const o = (b, m, S) => m.split(/[\.\[\]\'\"]/).filter(($) => $).reduce(($, D) => $ ? $[D] : S, b);
386
- let s = new FormData(a), r = new URLSearchParams(s).toString(), l = e.querySelectorAll("thead tr th"), c = e.querySelector("tbody"), n = a.getAttribute("data-ajax");
387
- i.classList.add("table--loading");
388
- let h = rt(a);
389
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, m) => {
383
+ }, st = function(e, a, t, r) {
384
+ return $t(this, void 0, void 0, function* () {
385
+ const s = (b, u, w) => u.split(/[\.\[\]\'\"]/).filter((q) => q).reduce((q, y) => q ? q[y] : w, b);
386
+ let i = new FormData(a), o = new URLSearchParams(i).toString(), n = e.querySelectorAll("thead tr th"), c = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
387
+ r.classList.add("table--loading");
388
+ let p = rt(a);
389
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, u) => {
390
390
  b.innerHTML = "", b.parentNode.classList.remove("hover");
391
391
  });
392
- let p = 0;
393
- Object.values(h).forEach((b, m) => {
394
- typeof b == "object" && Object.values(b).length ? p += Object.values(b).length : p++;
395
- }), p && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, m) => {
396
- b.innerHTML += `(${p})`, b.parentNode.classList.add("hover");
397
- }), window.controller || (window.controller = []), window.controller[n] && window.controller[n].abort(), window.controller[n] = new AbortController();
398
- const { signal: y } = controller[n];
392
+ let d = 0;
393
+ Object.values(p).forEach((b, u) => {
394
+ typeof b == "object" && Object.values(b).length ? d += Object.values(b).length : d++;
395
+ }), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, u) => {
396
+ b.innerHTML += `(${d})`, b.parentNode.classList.add("hover");
397
+ }), window.controller || (window.controller = []), window.controller[l] && window.controller[l].abort(), window.controller[l] = new AbortController();
398
+ const { signal: f } = controller[l];
399
399
  try {
400
- yield fetch(n + "?" + r, { signal: y, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((b) => b.json()).then((b) => {
401
- let m = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", S = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", $ = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", D = o(b, S, 1), z = o(b, $, 1), N = o(b, m), P = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
402
- N ? (c.innerHTML = "", N.forEach((v, x) => {
400
+ yield fetch(l + "?" + o, { signal: f, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((b) => b.json()).then((b) => {
401
+ let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", w = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", q = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", y = s(b, w, 1), P = s(b, q, 1), R = s(b, u), j = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
402
+ R ? (c.innerHTML = "", R.forEach((L, E) => {
403
403
  var k = document.createElement("tr");
404
- l.forEach((g, O) => {
405
- let E = "";
404
+ n.forEach((v, O) => {
405
+ let T = "";
406
406
  var V = document.createElement("td");
407
- if (V.setAttribute("data-label", g.innerText), g.getAttribute("data-output")) {
408
- var U = g.getAttribute("data-output");
409
- E = U.replace(new RegExp(/{(.*?)}/, "gm"), function(lt) {
410
- return o(v, lt.replace("{", "").replace("}", ""));
407
+ if (V.setAttribute("data-label", v.innerText), v.getAttribute("data-output")) {
408
+ var W = v.getAttribute("data-output");
409
+ T = W.replace(new RegExp(/{(.*?)}/, "gm"), function(dt) {
410
+ return s(L, dt.replace("{", "").replace("}", ""));
411
411
  });
412
412
  }
413
- if (g.hasAttribute("data-output-array")) {
414
- var U = g.getAttribute("data-output");
415
- let ct = o(v, U.replace("{", "").replace("}", ""));
416
- E = "", ct.forEach((J, vr) => {
417
- let dt = g.getAttribute("data-output-array"), j = "";
418
- if (g.hasAttribute("data-output-array-property") && g.hasAttribute("data-output-array-transform")) {
419
- const W = o(J, g.getAttribute("data-output-array-property")), ut = JSON.parse(g.getAttribute("data-output-array-transform"))[W];
420
- j = dt.replace(`{${g.getAttribute("data-output-array-property")}}`, ut);
413
+ if (v.hasAttribute("data-output-array")) {
414
+ var W = v.getAttribute("data-output");
415
+ let ut = s(L, W.replace("{", "").replace("}", ""));
416
+ T = "", ut.forEach((J, Yo) => {
417
+ let mt = v.getAttribute("data-output-array"), I = "";
418
+ if (v.hasAttribute("data-output-array-property") && v.hasAttribute("data-output-array-transform")) {
419
+ const U = s(J, v.getAttribute("data-output-array-property")), ht = JSON.parse(v.getAttribute("data-output-array-transform"))[U];
420
+ I = mt.replace(`{${v.getAttribute("data-output-array-property")}}`, ht);
421
421
  }
422
- j = j.replace(new RegExp(/{(.*?)}/, "gm"), function(W) {
423
- return o(J, W.replace("{", "").replace("}", ""));
424
- }), E += j;
422
+ I = I.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
423
+ return s(J, U.replace("{", "").replace("}", ""));
424
+ }), T += I;
425
425
  });
426
426
  }
427
- g.hasAttribute("data-transform") && (E = JSON.parse(g.getAttribute("data-transform"))[E], !E && g.hasAttribute("data-default") && (E = g.getAttribute("data-default"))), V.innerHTML = E, k.appendChild(V);
427
+ v.hasAttribute("data-transform") && (T = JSON.parse(v.getAttribute("data-transform"))[T], !T && v.hasAttribute("data-default") && (T = v.getAttribute("data-default"))), V.innerHTML = T, k.appendChild(V);
428
428
  }), c.appendChild(k);
429
- }), et(e, a), i.setAttribute("data-total", parseInt(D)), i.setAttribute("data-page", parseInt(z)), i.setAttribute("data-pages", Math.ceil(i.getAttribute("data-total") / i.getAttribute("data-show"))), at(e, a, t, i), F(i, t), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((v, x) => {
430
- let k = o(b, v.getAttribute("data-ajax-query"), "");
431
- v.hasAttribute("data-total") ? v.setAttribute("data-total", k) : v.innerHTML = k;
432
- }), parseInt(D) == 0 && (c.innerHTML = `<tr><td colspan="100%"><span>${P}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: n, formData: r })) : c.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>';
429
+ }), ot(e, a), r.setAttribute("data-total", parseInt(y)), r.setAttribute("data-page", parseInt(P)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), it(e, a, t, r), B(r, t), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, E) => {
430
+ let k = s(b, L.getAttribute("data-ajax-query"), "");
431
+ L.hasAttribute("data-total") ? L.setAttribute("data-total", k) : L.innerHTML = k;
432
+ }), parseInt(y) == 0 && (c.innerHTML = `<tr><td colspan="100%"><span>${j}</span></td></tr>`), r.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : c.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>';
433
433
  });
434
434
  } catch (b) {
435
435
  console.log(b);
436
436
  }
437
437
  });
438
- }, Y = (e, a) => {
438
+ }, K = (e, a) => {
439
439
  switch (e) {
440
440
  case "datetime":
441
441
  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" });
442
442
  case "date":
443
443
  return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
444
444
  case "capitalise":
445
- return a = wt(a);
445
+ return a = St(a);
446
446
  }
447
447
  };
448
- class Ht extends HTMLElement {
448
+ class Ct extends HTMLElement {
449
449
  constructor() {
450
450
  super(), this.attachShadow({ mode: "open" });
451
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
452
- i.innerHTML = `
451
+ 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");
452
+ r.innerHTML = `
453
453
  <style>
454
454
  @import "${t}";
455
455
 
@@ -472,30 +472,30 @@ class Ht extends HTMLElement {
472
472
  </div>
473
473
  </div>
474
474
  <div class="table__pagination"></div>
475
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
475
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
476
476
  }
477
477
  connectedCallback() {
478
478
  const a = new URLSearchParams(window.location.search);
479
479
  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")));
480
480
  let t = this.classList.toString();
481
- if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), et(this.table, this.form), this.form.querySelector("[data-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" />`), qt(this.table), $t(this.table, this.form, this.pagination, this, this.savedTableBody), xt(this.table, this.form, this.pagination, this), Et(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? it(this.table, this.form, this.pagination, this) : (at(this.table, this.form, this.pagination, this), K(this.table, this.form, this), F(this, this.pagination), B(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
481
+ if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), ot(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" />`), xt(this.table), Et(this.table, this.form, this.pagination, this, this.savedTableBody), Tt(this.table, this.form, this.pagination, this), Mt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? st(this.table, this.form, this.pagination, this) : (it(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this, this.pagination), F(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
482
482
  this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
483
483
  }), this.querySelector("iam-actionbar[data-selectall]")) {
484
- const i = this.querySelector("iam-actionbar[data-selectall]");
485
- Array.from(this.table.querySelectorAll("thead tr")).forEach((o, s) => {
486
- o.insertAdjacentHTML("afterbegin", "<th></th>");
487
- }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, s) => {
488
- o.insertAdjacentHTML("afterbegin", `<td class="selectrow"><input type="checkbox" name="row" id="row${s}"/><label for="row${s}"><span class="visually-hidden">Select row</span></label></td>`);
489
- }), this.table.addEventListener("change", (o) => {
490
- if (o && o.target instanceof HTMLElement && o.target.closest(".selectrow input")) {
491
- let s = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, r = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
492
- i.setAttribute("data-selected", s == r ? "all" : r), console.log(r);
484
+ const r = this.querySelector("iam-actionbar[data-selectall]");
485
+ Array.from(this.table.querySelectorAll("thead tr")).forEach((s, i) => {
486
+ s.insertAdjacentHTML("afterbegin", "<th></th>");
487
+ }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((s, i) => {
488
+ s.insertAdjacentHTML("afterbegin", `<td class="selectrow"><input type="checkbox" name="row" id="row${i}"/><label for="row${i}"><span class="visually-hidden">Select row</span></label></td>`);
489
+ }), this.table.addEventListener("change", (s) => {
490
+ if (s && s.target instanceof HTMLElement && s.target.closest(".selectrow input")) {
491
+ let i = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, o = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
492
+ r.setAttribute("data-selected", i == o ? "all" : o), console.log(o);
493
493
  }
494
- }), i.addEventListener("selected", (o) => {
495
- console.log(o.detail.selected), o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((s, r) => {
496
- s.checked = !1;
497
- }) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((s, r) => {
498
- s.checked = !0;
494
+ }), r.addEventListener("selected", (s) => {
495
+ console.log(s.detail.selected), s.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((i, o) => {
496
+ i.checked = !1;
497
+ }) : s.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((i, o) => {
498
+ i.checked = !0;
499
499
  });
500
500
  });
501
501
  }
@@ -503,12 +503,12 @@ class Ht extends HTMLElement {
503
503
  static get observedAttributes() {
504
504
  return ["data-total", "data-pages", "data-page", "data-show"];
505
505
  }
506
- attributeChangedCallback(a, t, i) {
506
+ attributeChangedCallback(a, t, r) {
507
507
  }
508
508
  }
509
- const Mt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Nt = function(e) {
509
+ const Nt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Rt = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Pt = function(e) {
510
510
  return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
511
- }, Rt = {
511
+ }, jt = {
512
512
  name: "Table",
513
513
  props: {
514
514
  items: {
@@ -522,42 +522,42 @@ const Mt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(
522
522
  },
523
523
  computed: {
524
524
  cellHeading() {
525
- return (e) => `${Mt(Ct(e))}`;
525
+ return (e) => `${Nt(Rt(e))}`;
526
526
  }
527
527
  },
528
528
  created() {
529
529
  this.$nextTick(function() {
530
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Ht);
530
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", Ct);
531
531
  });
532
532
  },
533
533
  updated() {
534
534
  }
535
- }, zt = { key: 0 }, Pt = { key: 0 }, jt = ["data-row-id"], It = ["innerHTML"];
536
- function Ft(e, a, t, i, o, s) {
537
- return d(), u("iam-table", null, [
538
- t.fields ? (d(), u("table", zt, [
539
- f("thead", null, [
540
- f("tr", null, [
541
- (d(!0), u(H, null, M(t.fields, (r) => (d(), u("th", {
542
- key: r.key
543
- }, q(s.cellHeading(r.key)), 1))), 128))
535
+ }, It = { key: 0 }, zt = { key: 0 }, Bt = ["data-row-id"], Ft = ["innerHTML"];
536
+ function Ot(e, a, t, r, s, i) {
537
+ return m(), h("iam-table", null, [
538
+ t.fields ? (m(), h("table", It, [
539
+ g("thead", null, [
540
+ g("tr", null, [
541
+ (m(!0), h(M, null, H(t.fields, (o) => (m(), h("th", {
542
+ key: o.key
543
+ }, x(i.cellHeading(o.key)), 1))), 128))
544
544
  ])
545
545
  ]),
546
- t.items ? (d(), u("tbody", Pt, [
547
- (d(!0), u(H, null, M(t.items, (r, l) => (d(), u("tr", {
548
- key: l,
549
- "data-row-id": r.rowid
546
+ t.items ? (m(), h("tbody", zt, [
547
+ (m(!0), h(M, null, H(t.items, (o, n) => (m(), h("tr", {
548
+ key: n,
549
+ "data-row-id": o.rowid
550
550
  }, [
551
- (d(!0), u(H, null, M(Object.fromEntries(Object.entries(r).filter(([c]) => c !== "rowid")), (c, n) => (d(), u("td", {
552
- key: n,
551
+ (m(!0), h(M, null, H(Object.fromEntries(Object.entries(o).filter(([c]) => c !== "rowid")), (c, l) => (m(), h("td", {
552
+ key: l,
553
553
  innerHTML: c
554
- }, null, 8, It))), 128))
555
- ], 8, jt))), 128))
554
+ }, null, 8, Ft))), 128))
555
+ ], 8, Bt))), 128))
556
556
  ])) : _("", !0)
557
- ])) : A(e.$slots, "default", { key: 1 })
557
+ ])) : S(e.$slots, "default", { key: 1 })
558
558
  ]);
559
559
  }
560
- const st = /* @__PURE__ */ w(Rt, [["render", Ft]]), Bt = {
560
+ const nt = /* @__PURE__ */ A(jt, [["render", Ot]]), Vt = {
561
561
  name: "Input",
562
562
  props: {
563
563
  value: {
@@ -745,190 +745,190 @@ const st = /* @__PURE__ */ w(Rt, [["render", Ft]]), Bt = {
745
745
  this.$emit("bus");
746
746
  }
747
747
  }
748
- }, Ot = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Ut = ["innerHTML"], Wt = ["type", "name", "id", "pattern", "list"], Gt = ["type", "name", "id", "pattern"], Kt = {
748
+ }, Wt = ["for", "innerHTML", "title"], Ut = ["innerHTML"], Yt = ["innerHTML"], Gt = ["type", "name", "id", "pattern", "list"], Kt = ["type", "name", "id", "pattern"], Xt = {
749
749
  key: 5,
750
750
  class: "input-group"
751
- }, Yt = ["type", "name", "id", "pattern", "list"], Xt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Jt = {
751
+ }, Jt = ["type", "name", "id", "pattern", "list"], Qt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Zt = {
752
752
  key: 6,
753
753
  class: "input-group"
754
- }, Qt = ["type", "name", "id", "pattern", "list"], Zt = { class: "input-group-text flex-fill" }, te = ["type", "name", "id", "pattern"], ee = ["value"], ae = ["type", "name", "id"], re = ["for", "innerHTML"], ie = ["type", "name", "id"], se = ["for", "innerHTML"], oe = ["innerHTML"], ne = ["id"], le = ["value"];
755
- function ce(e, a, t, i, o, s) {
756
- return d(), u("div", {
757
- class: L(s.wrapperClass()),
754
+ }, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"], oe = ["value"], ie = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["type", "name", "id"], ne = ["for", "innerHTML"], le = ["innerHTML"], ce = ["id"], de = ["value"];
755
+ function ue(e, a, t, r, s, i) {
756
+ return m(), h("div", {
757
+ class: $(i.wrapperClass()),
758
758
  ref: "wrapper"
759
759
  }, [
760
- s.needsLabel() ? (d(), u("label", {
760
+ i.needsLabel() ? (m(), h("label", {
761
761
  key: 0,
762
- class: L(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
762
+ class: $(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
763
763
  for: t.id,
764
- innerHTML: s.displayLabel(),
764
+ innerHTML: i.displayLabel(),
765
765
  title: t.title
766
- }, null, 10, Ot)) : _("", !0),
767
- t.prefix ? (d(), u("span", {
766
+ }, null, 10, Wt)) : _("", !0),
767
+ t.prefix ? (m(), h("span", {
768
768
  key: 1,
769
- class: L(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
769
+ class: $(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
770
770
  innerHTML: t.prefix,
771
771
  role: "presentation"
772
- }, null, 10, Vt)) : _("", !0),
773
- t.suffix ? (d(), u("span", {
772
+ }, null, 10, Ut)) : _("", !0),
773
+ t.suffix ? (m(), h("span", {
774
774
  key: 2,
775
- class: L(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
775
+ class: $(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
776
776
  innerHTML: t.suffix,
777
777
  role: "presentation"
778
- }, null, 10, Ut)) : _("", !0),
779
- s.isInput() ? R((d(), u("input", C({
778
+ }, null, 10, Yt)) : _("", !0),
779
+ i.isInput() ? D((m(), h("input", N({
780
780
  key: 3,
781
- "onUpdate:modelValue": a[0] || (a[0] = (r) => s.inputVal = r),
781
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => i.inputVal = o),
782
782
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
783
783
  type: t.type,
784
784
  name: t.name ? t.name : t.id,
785
785
  id: t.id,
786
- pattern: s.needPattern(),
787
- list: s.hasOptions()
786
+ pattern: i.needPattern(),
787
+ list: i.hasOptions()
788
788
  }, e.$attrs, {
789
- onKeyup: a[1] || (a[1] = (...r) => s.inputKeyup && s.inputKeyup(...r))
790
- }), null, 16, Wt)), [
791
- [G, s.inputVal]
789
+ onKeyup: a[1] || (a[1] = (...o) => i.inputKeyup && i.inputKeyup(...o))
790
+ }), null, 16, Gt)), [
791
+ [Y, i.inputVal]
792
792
  ]) : _("", !0),
793
- t.type == "textarea" ? R((d(), u("textarea", C({
793
+ t.type == "textarea" ? D((m(), h("textarea", N({
794
794
  key: 4,
795
- "onUpdate:modelValue": a[2] || (a[2] = (r) => s.inputVal = r),
795
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => i.inputVal = o),
796
796
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
797
797
  type: t.type,
798
798
  name: t.name ? t.name : t.id,
799
799
  id: t.id,
800
- pattern: s.needPattern()
801
- }, e.$attrs), null, 16, Gt)), [
802
- [mt, s.inputVal]
800
+ pattern: i.needPattern()
801
+ }, e.$attrs), null, 16, Kt)), [
802
+ [pt, i.inputVal]
803
803
  ]) : _("", !0),
804
- t.type == "range" ? (d(), u("div", Kt, [
805
- R(f("input", C({
806
- "onUpdate:modelValue": a[3] || (a[3] = (r) => s.inputVal = r),
804
+ t.type == "range" ? (m(), h("div", Xt, [
805
+ D(g("input", N({
806
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => i.inputVal = o),
807
807
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
808
808
  type: t.type,
809
809
  name: t.name ? t.name : t.id,
810
810
  id: t.id,
811
- pattern: s.needPattern(),
812
- list: s.hasOptions()
813
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Yt), [
814
- [G, s.inputVal]
811
+ pattern: i.needPattern(),
812
+ list: i.hasOptions()
813
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Jt), [
814
+ [Y, i.inputVal]
815
815
  ]),
816
- f("output", Xt, q(t.value), 1)
816
+ g("output", Qt, x(t.value), 1)
817
817
  ])) : _("", !0),
818
- t.type == "color" ? (d(), u("div", Jt, [
819
- R(f("input", C({
820
- "onUpdate:modelValue": a[4] || (a[4] = (r) => s.inputVal = r),
818
+ t.type == "color" ? (m(), h("div", Zt, [
819
+ D(g("input", N({
820
+ "onUpdate:modelValue": a[4] || (a[4] = (o) => i.inputVal = o),
821
821
  class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
822
822
  type: t.type,
823
823
  name: t.name ? t.name : t.id,
824
824
  id: t.id,
825
- pattern: s.needPattern(),
826
- list: s.hasOptions()
827
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Qt), [
828
- [G, s.inputVal]
825
+ pattern: i.needPattern(),
826
+ list: i.hasOptions()
827
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, te), [
828
+ [Y, i.inputVal]
829
829
  ]),
830
- f("output", Zt, q(t.value ? e.vale : "#000000"), 1)
830
+ g("output", ee, x(t.value ? e.vale : "#000000"), 1)
831
831
  ])) : _("", !0),
832
- t.type == "select" ? R((d(), u("select", C({
832
+ t.type == "select" ? D((m(), h("select", N({
833
833
  key: 7,
834
- "onUpdate:modelValue": a[5] || (a[5] = (r) => s.inputVal = r),
834
+ "onUpdate:modelValue": a[5] || (a[5] = (o) => i.inputVal = o),
835
835
  class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
836
836
  type: t.type,
837
837
  name: t.id,
838
838
  id: t.id,
839
- pattern: s.needPattern()
839
+ pattern: i.needPattern()
840
840
  }, e.$attrs), [
841
- (d(!0), u(H, null, M(t.options, (r, l) => (d(), u("option", {
842
- key: l,
843
- value: r.value
844
- }, q(r.display ? r.display : r.value), 9, ee))), 128))
845
- ], 16, te)), [
846
- [ht, s.inputVal]
841
+ (m(!0), h(M, null, H(t.options, (o, n) => (m(), h("option", {
842
+ key: n,
843
+ value: o.value
844
+ }, x(o.display ? o.display : o.value), 9, oe))), 128))
845
+ ], 16, ae)), [
846
+ [bt, i.inputVal]
847
847
  ]) : _("", !0),
848
- t.type == "checkbox" || t.type == "radio" ? (d(), u("input", C({
848
+ t.type == "checkbox" || t.type == "radio" ? (m(), h("input", N({
849
849
  key: 8,
850
850
  class: "form-check-input",
851
851
  type: t.type,
852
852
  name: t.name ? t.name : t.id,
853
853
  id: t.id
854
- }, e.$attrs), null, 16, ae)) : _("", !0),
855
- t.type == "checkbox" || t.type == "radio" ? (d(), u("label", {
854
+ }, e.$attrs), null, 16, ie)) : _("", !0),
855
+ t.type == "checkbox" || t.type == "radio" ? (m(), h("label", {
856
856
  key: 9,
857
- class: L(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
857
+ class: $(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
858
858
  for: t.id,
859
859
  innerHTML: t.label
860
860
  }, null, 10, re)) : _("", !0),
861
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (d(), u("input", C({
861
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("input", N({
862
862
  key: 10,
863
863
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
864
864
  type: t.type.replace("-btn", ""),
865
865
  autocomplete: "off",
866
866
  name: t.name ? t.name : t.id,
867
867
  id: t.id
868
- }, e.$attrs), null, 16, ie)) : _("", !0),
869
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (d(), u("label", {
868
+ }, e.$attrs), null, 16, se)) : _("", !0),
869
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("label", {
870
870
  key: 11,
871
- class: L(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
871
+ class: $(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
872
872
  for: t.id,
873
873
  innerHTML: t.label,
874
- onClick: a[6] || (a[6] = (...r) => s.clickEvent && s.clickEvent(...r))
875
- }, null, 10, se)) : _("", !0),
876
- A(e.$slots, "default"),
877
- t.errormsg ? (d(), u("span", {
874
+ onClick: a[6] || (a[6] = (...o) => i.clickEvent && i.clickEvent(...o))
875
+ }, null, 10, ne)) : _("", !0),
876
+ S(e.$slots, "default"),
877
+ t.errormsg ? (m(), h("span", {
878
878
  key: 12,
879
879
  class: "invalid-feedback mb-0",
880
880
  innerHTML: t.errormsg
881
- }, null, 8, oe)) : _("", !0),
882
- s.allowDatalist() ? (d(), u("datalist", {
881
+ }, null, 8, le)) : _("", !0),
882
+ i.allowDatalist() ? (m(), h("datalist", {
883
883
  key: 13,
884
884
  id: t.id + "-list"
885
885
  }, [
886
- (d(!0), u(H, null, M(t.options, (r, l) => (d(), u("option", {
887
- key: l,
888
- value: r.value
889
- }, q(r.value), 9, le))), 128))
890
- ], 8, ne)) : _("", !0)
886
+ (m(!0), h(M, null, H(t.options, (o, n) => (m(), h("option", {
887
+ key: n,
888
+ value: o.value
889
+ }, x(o.value), 9, de))), 128))
890
+ ], 8, ce)) : _("", !0)
891
891
  ], 2);
892
892
  }
893
- const ot = /* @__PURE__ */ w(Bt, [["render", ce]]);
894
- function de(e, a) {
895
- const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), o = e.querySelector("input"), s = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, r = o.cloneNode();
896
- i.append(r), a.addEventListener("click", (l) => {
897
- l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (o.hasAttribute("multiple") ? r : o).click());
898
- }), a.addEventListener("click", (l) => {
899
- if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
900
- const c = new DataTransfer(), { files: n } = o, h = l.target.closest(".files button");
901
- for (let y = 0; y < n.length; y++) {
902
- const b = n[y];
903
- b.name != h.getAttribute("data-file") && c.items.add(b);
893
+ const lt = /* @__PURE__ */ A(Vt, [["render", ue]]);
894
+ function me(e, a) {
895
+ const t = a.querySelector(".files"), r = a.querySelector(".drop-area"), s = e.querySelector("input"), i = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = s.cloneNode();
896
+ r.append(o), a.addEventListener("click", (n) => {
897
+ n && n.target instanceof HTMLElement && n.target.closest(".btn-primary") && (n.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? o : s).click());
898
+ }), a.addEventListener("click", (n) => {
899
+ if (n && n.target instanceof HTMLElement && n.target.closest(".files button")) {
900
+ const c = new DataTransfer(), { files: l } = s, p = n.target.closest(".files button");
901
+ for (let f = 0; f < l.length; f++) {
902
+ const b = l[f];
903
+ b.name != p.getAttribute("data-file") && c.items.add(b);
904
904
  }
905
- o.files = c.files;
906
- const p = new Event("change");
907
- o.dispatchEvent(p);
905
+ s.files = c.files;
906
+ const d = new Event("change");
907
+ s.dispatchEvent(d);
908
908
  }
909
- }), r.addEventListener("change", (l) => {
910
- if (o.hasAttribute("multiple")) {
911
- const n = [...o.files, ...r.files];
912
- let h = [];
913
- const p = new DataTransfer();
914
- for (let y = 0; y < n.length; y++) {
915
- const b = n[y], m = b.size / 1e3;
916
- !h.includes(b.name) && (s == 0 || m < s) && p.items.add(b), h.push(b.name);
909
+ }), o.addEventListener("change", (n) => {
910
+ if (s.hasAttribute("multiple")) {
911
+ const l = [...s.files, ...o.files];
912
+ let p = [];
913
+ const d = new DataTransfer();
914
+ for (let f = 0; f < l.length; f++) {
915
+ const b = l[f], u = b.size / 1e3;
916
+ !p.includes(b.name) && (i == 0 || u < i) && d.items.add(b), p.push(b.name);
917
917
  }
918
- o.files = p.files;
918
+ s.files = d.files;
919
919
  } else
920
- o.files = r.files;
920
+ s.files = o.files;
921
921
  const c = new Event("change");
922
- o.dispatchEvent(c);
923
- }), r.addEventListener("dragenter", (l) => {
924
- r.classList.add("focus");
925
- }), r.addEventListener("dragleave", (l) => {
926
- r.classList.remove("focus");
927
- }), r.addEventListener("drop", (l) => {
928
- r.classList.remove("focus");
929
- }), o.addEventListener("change", (l) => {
922
+ s.dispatchEvent(c);
923
+ }), o.addEventListener("dragenter", (n) => {
924
+ o.classList.add("focus");
925
+ }), o.addEventListener("dragleave", (n) => {
926
+ o.classList.remove("focus");
927
+ }), o.addEventListener("drop", (n) => {
928
+ o.classList.remove("focus");
929
+ }), s.addEventListener("change", (n) => {
930
930
  t.innerHTML = "";
931
- for (const c of o.files)
931
+ for (const c of s.files)
932
932
  t.innerHTML += `<span class="file">${c.name} <button data-file="${c.name}">Remove</button></span>`;
933
933
  });
934
934
  }
@@ -937,14 +937,14 @@ window.dataLayer.push({
937
937
  event: "customElementRegistered",
938
938
  element: "fileupload"
939
939
  });
940
- class ue extends HTMLElement {
940
+ class he extends HTMLElement {
941
941
  constructor() {
942
942
  super(), this.attachShadow({ mode: "open" });
943
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/fileupload.css";`, o = document.createElement("template");
944
- o.innerHTML = `
943
+ 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/fileupload.css";`, s = document.createElement("template");
944
+ s.innerHTML = `
945
945
  <style>
946
946
  @import "${t}";
947
- ${i}
947
+ ${r}
948
948
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
949
949
  </style>
950
950
  <div class="file-upload">
@@ -956,15 +956,15 @@ class ue extends HTMLElement {
956
956
  <slot></slot>
957
957
  <div class="files"></div>
958
958
  </div>
959
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
959
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
960
960
  }
961
961
  connectedCallback() {
962
962
  this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
963
- const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), i = this.shadowRoot.querySelector(".helper-text");
964
- i.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, de(this, a);
963
+ const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), r = this.shadowRoot.querySelector(".helper-text");
964
+ r.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, me(this, a);
965
965
  }
966
966
  }
967
- const me = {
967
+ const pe = {
968
968
  name: "FileUpload",
969
969
  props: {
970
970
  maxfilesize: {
@@ -978,71 +978,71 @@ const me = {
978
978
  },
979
979
  mounted() {
980
980
  this.$nextTick(function() {
981
- window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", ue);
981
+ window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", he);
982
982
  });
983
983
  }
984
984
  };
985
- function he(e, a, t, i, o, s) {
986
- return d(), u("iam-fileupload", null, [
987
- A(e.$slots, "default")
985
+ function be(e, a, t, r, s, i) {
986
+ return m(), h("iam-fileupload", null, [
987
+ S(e.$slots, "default")
988
988
  ]);
989
989
  }
990
- const wr = /* @__PURE__ */ w(me, [["render", he]]);
990
+ const Xo = /* @__PURE__ */ A(pe, [["render", be]]);
991
991
  /*!
992
- * iamKey v3.9.0-beta-1
992
+ * iamKey v4.0.0
993
993
  * Copyright 2022-2023 iamproperty
994
994
  */
995
995
  function fe(e) {
996
996
  let a = e.querySelectorAll("details"), t = e.querySelectorAll("summary");
997
- if (a.forEach((i) => {
998
- i.classList.add("accordion-item");
999
- }), t.forEach((i) => {
1000
- i.classList.add("accordion-header"), i.classList.add("accordion-button"), i.classList.add("h4");
997
+ if (a.forEach((r) => {
998
+ r.classList.add("accordion-item");
999
+ }), t.forEach((r) => {
1000
+ r.classList.add("accordion-header"), r.classList.add("accordion-button"), r.classList.add("h4");
1001
1001
  }), !e.classList.contains("accordion--keep-open")) {
1002
- const i = e.querySelectorAll(":scope > details");
1003
- i.forEach((o) => {
1004
- o.addEventListener("click", () => {
1005
- i.forEach((s) => {
1006
- s !== o && s.removeAttribute("open");
1002
+ const r = e.querySelectorAll(":scope > details");
1003
+ r.forEach((s) => {
1004
+ s.addEventListener("click", () => {
1005
+ r.forEach((i) => {
1006
+ i !== s && i.removeAttribute("open");
1007
1007
  });
1008
1008
  });
1009
1009
  });
1010
1010
  }
1011
1011
  }
1012
1012
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "accordion" });
1013
- let pe = class extends HTMLElement {
1013
+ let ge = class extends HTMLElement {
1014
1014
  constructor() {
1015
1015
  super(), this.attachShadow({ mode: "open" });
1016
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
1017
- i.innerHTML = `
1016
+ 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");
1017
+ r.innerHTML = `
1018
1018
  <style>
1019
1019
  @import "${t}";
1020
- \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 */
1020
+ :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 */
1021
1021
 
1022
1022
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1023
1023
  </style>
1024
1024
  <div class="accordion">
1025
1025
  <slot></slot>
1026
1026
  </div>
1027
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1027
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
1028
1028
  }
1029
1029
  connectedCallback() {
1030
1030
  fe(this);
1031
1031
  }
1032
1032
  };
1033
- window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", pe);
1034
- const be = {
1033
+ window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", ge);
1034
+ const ye = {
1035
1035
  name: "Accordion",
1036
1036
  props: {},
1037
1037
  mounted() {
1038
1038
  }
1039
- }, ye = { ref: "wrapper" };
1040
- function ge(e, a, t, i, o, s) {
1041
- return d(), u("iam-accordion", ye, [
1042
- A(e.$slots, "default")
1039
+ }, ve = { ref: "wrapper" };
1040
+ function we(e, a, t, r, s, i) {
1041
+ return m(), h("iam-accordion", ve, [
1042
+ S(e.$slots, "default")
1043
1043
  ], 512);
1044
1044
  }
1045
- const Sr = /* @__PURE__ */ w(be, [["render", ge]]), ve = {
1045
+ const Qo = /* @__PURE__ */ A(ye, [["render", we]]), _e = {
1046
1046
  name: "AccordionItem",
1047
1047
  props: {
1048
1048
  title: {
@@ -1069,7 +1069,7 @@ const Sr = /* @__PURE__ */ w(be, [["render", ge]]), ve = {
1069
1069
  },
1070
1070
  computed: {
1071
1071
  createID() {
1072
- return (e) => `${Nt(e)}`;
1072
+ return (e) => `${Pt(e)}`;
1073
1073
  }
1074
1074
  },
1075
1075
  data() {
@@ -1077,24 +1077,24 @@ const Sr = /* @__PURE__ */ w(be, [["render", ge]]), ve = {
1077
1077
  show: !this.lazy
1078
1078
  };
1079
1079
  }
1080
- }, _e = ["id"], Ae = ["classList"];
1081
- function we(e, a, t, i, o, s) {
1082
- return d(), u("details", {
1083
- id: s.createID(t.title)
1080
+ }, Ae = ["id"], Le = ["classList"];
1081
+ function Se(e, a, t, r, s, i) {
1082
+ return m(), h("details", {
1083
+ id: i.createID(t.title)
1084
1084
  }, [
1085
- f("summary", {
1085
+ g("summary", {
1086
1086
  classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
1087
1087
  }, [
1088
- ft(q(t.title), 1),
1089
- t.badge ? (d(), u("span", {
1088
+ ft(x(t.title), 1),
1089
+ t.badge ? (m(), h("span", {
1090
1090
  key: 0,
1091
- class: L(`badge bg-${t.badgecolour}`)
1092
- }, q(t.badge), 3)) : _("", !0)
1093
- ], 8, Ae),
1094
- A(e.$slots, "default")
1095
- ], 8, _e);
1091
+ class: $(`badge bg-${t.badgecolour}`)
1092
+ }, x(t.badge), 3)) : _("", !0)
1093
+ ], 8, Le),
1094
+ S(e.$slots, "default")
1095
+ ], 8, Ae);
1096
1096
  }
1097
- const kr = /* @__PURE__ */ w(ve, [["render", we]]), Le = {
1097
+ const Zo = /* @__PURE__ */ A(_e, [["render", Se]]), $e = {
1098
1098
  name: "Header",
1099
1099
  props: {
1100
1100
  title: {
@@ -1111,36 +1111,36 @@ const kr = /* @__PURE__ */ w(ve, [["render", we]]), Le = {
1111
1111
  required: !1
1112
1112
  }
1113
1113
  }
1114
- }, Se = { class: "container" }, ke = { class: "row" }, qe = { class: "col-sm-6" }, $e = { class: "pt-5 pb-3 px-4" }, xe = { class: "col-sm-6 col-md-5 ms-auto" }, Ee = ["src"];
1115
- function Te(e, a, t, i, o, s) {
1116
- return d(), u("div", Se, [
1117
- f("div", {
1118
- class: L("bg-" + t.background + " mb-4")
1114
+ }, qe = { class: "container" }, ke = { class: "row" }, xe = { class: "col-sm-6" }, Ee = { class: "pt-5 pb-3 px-4" }, Te = { class: "col-sm-6 col-md-5 ms-auto" }, Me = ["src"];
1115
+ function He(e, a, t, r, s, i) {
1116
+ return m(), h("div", qe, [
1117
+ g("div", {
1118
+ class: $("bg-" + t.background + " mb-4")
1119
1119
  }, [
1120
- f("div", ke, [
1121
- f("div", qe, [
1122
- f("div", $e, [
1123
- f("h2", null, q(t.title), 1),
1124
- A(e.$slots, "default")
1120
+ g("div", ke, [
1121
+ g("div", xe, [
1122
+ g("div", Ee, [
1123
+ g("h2", null, x(t.title), 1),
1124
+ S(e.$slots, "default")
1125
1125
  ])
1126
1126
  ]),
1127
- f("div", xe, [
1128
- t.image ? (d(), u("img", {
1127
+ g("div", Te, [
1128
+ t.image ? (m(), h("img", {
1129
1129
  key: 0,
1130
1130
  src: t.image,
1131
1131
  alt: "",
1132
1132
  class: "h-100 w-100 object-cover"
1133
- }, null, 8, Ee)) : _("", !0)
1133
+ }, null, 8, Me)) : _("", !0)
1134
1134
  ])
1135
1135
  ])
1136
1136
  ], 2)
1137
1137
  ]);
1138
1138
  }
1139
- const qr = /* @__PURE__ */ w(Le, [["render", Te]]), He = {
1139
+ const ti = /* @__PURE__ */ A($e, [["render", He]]), Ce = {
1140
1140
  name: "Card",
1141
1141
  mounted() {
1142
1142
  this.$nextTick(function() {
1143
- import("./card.component.min-6bef4efd.mjs").then((e) => {
1143
+ import("./card.component.min-689474dd.mjs").then((e) => {
1144
1144
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1145
1145
  }).catch((e) => {
1146
1146
  console.log(e.message);
@@ -1148,31 +1148,31 @@ const qr = /* @__PURE__ */ w(Le, [["render", Te]]), He = {
1148
1148
  });
1149
1149
  }
1150
1150
  };
1151
- function Me(e, a, t, i, o, s) {
1152
- return d(), u("iam-card", null, [
1153
- A(e.$slots, "default")
1151
+ function Ne(e, a, t, r, s, i) {
1152
+ return m(), h("iam-card", null, [
1153
+ S(e.$slots, "default")
1154
1154
  ]);
1155
1155
  }
1156
- const Ce = /* @__PURE__ */ w(He, [["render", Me]]);
1156
+ const Re = /* @__PURE__ */ A(Ce, [["render", Ne]]);
1157
1157
  function De(e) {
1158
1158
  var a;
1159
- let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
1159
+ let t = e.querySelector(".carousel__inner"), r = e.querySelectorAll(".carousel__item").length;
1160
1160
  e.getAttribute("data-cols");
1161
- let o = e.getAttribute("data-sm-cols"), s = e.getAttribute("data-md-cols");
1162
- e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
1161
+ let s = e.getAttribute("data-sm-cols"), i = e.getAttribute("data-md-cols");
1162
+ e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
1163
1163
  clearTimeout(a), a = setTimeout(function() {
1164
- let l = t.clientWidth, c = t.scrollWidth, n = t.scrollLeft, h = Math.round(n / c * i) + 1, p = e.querySelector(".carousel__item:last-child").offsetLeft;
1165
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((y, b) => {
1166
- y.classList.remove("active");
1167
- }), e.querySelector(".control-" + h).classList.add("active"), h == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + l > p ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1164
+ let n = t.clientWidth, c = t.scrollWidth, l = t.scrollLeft, p = Math.round(l / c * r) + 1, d = e.querySelector(".carousel__item:last-child").offsetLeft;
1165
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((f, b) => {
1166
+ f.classList.remove("active");
1167
+ }), e.querySelector(".control-" + p).classList.add("active"), p == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n > d ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1168
1168
  }, 100);
1169
- }, !1), e.addEventListener("click", function(r) {
1170
- for (var l = r.target; l && l != this; l = l.parentNode)
1171
- if (l.matches(".carousel__controls a")) {
1172
- r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((n, h) => {
1173
- n.classList.remove("active");
1174
- }), l.classList.add("active");
1175
- const c = document.querySelector(l.getAttribute("href"));
1169
+ }, !1), e.addEventListener("click", function(o) {
1170
+ for (var n = o.target; n && n != this; n = n.parentNode)
1171
+ if (n.matches(".carousel__controls a")) {
1172
+ o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((l, p) => {
1173
+ l.classList.remove("active");
1174
+ }), n.classList.add("active");
1175
+ const c = document.querySelector(n.getAttribute("href"));
1176
1176
  t.scroll({
1177
1177
  top: 0,
1178
1178
  left: c.offsetLeft,
@@ -1180,11 +1180,11 @@ function De(e) {
1180
1180
  });
1181
1181
  break;
1182
1182
  }
1183
- }, !1), e.addEventListener("click", function(r) {
1184
- for (var l = r.target; l && l != this; l = l.parentNode)
1185
- if (l.matches(".btn-next, .btn-prev")) {
1186
- r.preventDefault();
1187
- let c = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1183
+ }, !1), e.addEventListener("click", function(o) {
1184
+ for (var n = o.target; n && n != this; n = n.parentNode)
1185
+ if (n.matches(".btn-next, .btn-prev")) {
1186
+ o.preventDefault();
1187
+ let c = n.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1188
1188
  t.scroll({
1189
1189
  top: 0,
1190
1190
  left: c,
@@ -1192,11 +1192,11 @@ function De(e) {
1192
1192
  });
1193
1193
  break;
1194
1194
  }
1195
- }, !1), i == 1 && e.classList.add("hide-btns"), o >= i && e.classList.add("hide-sm-btns"), s >= i && e.classList.add("hide-md-btns");
1195
+ }, !1), r == 1 && e.classList.add("hide-btns"), s >= r && e.classList.add("hide-sm-btns"), i >= r && e.classList.add("hide-md-btns");
1196
1196
  }
1197
- const Ne = {
1197
+ const Pe = {
1198
1198
  components: {
1199
- Card: Ce
1199
+ Card: Re
1200
1200
  },
1201
1201
  name: "Carousel",
1202
1202
  data() {
@@ -1273,37 +1273,37 @@ const Ne = {
1273
1273
  De(this.$refs.wrapper);
1274
1274
  });
1275
1275
  }
1276
- }, Re = ["id", "data-cols", "data-sm-cols", "data-md-cols"], ze = { class: "carousel__wrapper" }, Pe = { class: "carousel__inner" }, je = ["id"], Ie = ["innerHTML", "id"], Fe = ["href"], Be = /* @__PURE__ */ f("button", {
1276
+ }, je = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Ie = { class: "carousel__wrapper" }, ze = { class: "carousel__inner" }, Be = ["id"], Fe = ["innerHTML", "id"], Oe = ["href"], Ve = /* @__PURE__ */ g("button", {
1277
1277
  class: "btn btn-prev",
1278
1278
  "data-go": "0",
1279
1279
  disabled: ""
1280
- }, "Prev", -1), Oe = /* @__PURE__ */ f("button", {
1280
+ }, "Prev", -1), We = /* @__PURE__ */ g("button", {
1281
1281
  class: "btn btn-next",
1282
1282
  "data-go": "2"
1283
1283
  }, "Next", -1);
1284
- function Ve(e, a, t, i, o, s) {
1285
- const r = I("Card");
1286
- return d(), u("div", {
1284
+ function Ue(e, a, t, r, s, i) {
1285
+ const o = z("Card");
1286
+ return m(), h("div", {
1287
1287
  class: "container carousel",
1288
- id: "carousel" + o.id,
1288
+ id: "carousel" + s.id,
1289
1289
  ref: "wrapper",
1290
1290
  "data-cols": t.cols,
1291
1291
  "data-sm-cols": t.smcols,
1292
1292
  "data-md-cols": t.mdcols
1293
1293
  }, [
1294
- A(e.$slots, "default"),
1295
- f("div", ze, [
1296
- f("div", Pe, [
1297
- t.type == "card" ? (d(), u("div", {
1294
+ S(e.$slots, "default"),
1295
+ g("div", Ie, [
1296
+ g("div", ze, [
1297
+ t.type == "card" ? (m(), h("div", {
1298
1298
  key: 0,
1299
- class: L(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1299
+ class: $(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1300
1300
  }, [
1301
- (d(!0), u(H, null, M(t.items, (l, c) => (d(), u("div", {
1302
- class: L(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1301
+ (m(!0), h(M, null, H(t.items, (n, c) => (m(), h("div", {
1302
+ class: $(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1303
1303
  key: c,
1304
- id: "carousel" + o.id + "slide" + (c + 1)
1304
+ id: "carousel" + s.id + "slide" + (c + 1)
1305
1305
  }, [
1306
- T(r, C(l, {
1306
+ C(o, N(n, {
1307
1307
  class: t.cardclass,
1308
1308
  type: t.cardtype,
1309
1309
  btnyype: t.btntype,
@@ -1311,45 +1311,45 @@ function Ve(e, a, t, i, o, s) {
1311
1311
  ctatext: t.ctatext,
1312
1312
  hidectatext: t.hidectatext
1313
1313
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1314
- ], 10, je))), 128))
1314
+ ], 10, Be))), 128))
1315
1315
  ], 2)) : _("", !0),
1316
- t.type != "card" ? (d(), u("div", {
1316
+ t.type != "card" ? (m(), h("div", {
1317
1317
  key: 1,
1318
- class: L(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1318
+ class: $(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1319
1319
  }, [
1320
- (d(!0), u(H, null, M(t.items, (l, c) => (d(), u("div", {
1321
- class: L(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1320
+ (m(!0), h(M, null, H(t.items, (n, c) => (m(), h("div", {
1321
+ class: $(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1322
1322
  key: c,
1323
- innerHTML: s.content(l),
1324
- id: "carousel" + o.id + "slide" + (c + 1)
1325
- }, null, 10, Ie))), 128))
1323
+ innerHTML: i.content(n),
1324
+ id: "carousel" + s.id + "slide" + (c + 1)
1325
+ }, null, 10, Fe))), 128))
1326
1326
  ], 2)) : _("", !0)
1327
1327
  ]),
1328
- f("div", {
1329
- class: L(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1328
+ g("div", {
1329
+ class: $(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1330
1330
  }, [
1331
- (d(!0), u(H, null, M(t.items, (l, c) => (d(), u("a", {
1331
+ (m(!0), h(M, null, H(t.items, (n, c) => (m(), h("a", {
1332
1332
  key: c,
1333
- href: "#carousel" + o.id + "slide" + (c + 1),
1334
- class: L(`control-${c + 1}`)
1335
- }, "Slide " + q(c + 1), 11, Fe))), 128))
1333
+ href: "#carousel" + s.id + "slide" + (c + 1),
1334
+ class: $(`control-${c + 1}`)
1335
+ }, "Slide " + x(c + 1), 11, Oe))), 128))
1336
1336
  ], 2),
1337
- Be,
1338
- Oe
1337
+ Ve,
1338
+ We
1339
1339
  ])
1340
- ], 8, Re);
1340
+ ], 8, je);
1341
1341
  }
1342
- const $r = /* @__PURE__ */ w(Ne, [["render", Ve]]);
1342
+ const ei = /* @__PURE__ */ A(Pe, [["render", Ue]]);
1343
1343
  /*!
1344
- * iamKey v3.9.0-beta-1
1344
+ * iamKey v4.0.0
1345
1345
  * Copyright 2022-2023 iamproperty
1346
1346
  */
1347
1347
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
1348
- class Ue extends HTMLElement {
1348
+ class Ye extends HTMLElement {
1349
1349
  constructor() {
1350
1350
  super(), this.attachShadow({ mode: "open" });
1351
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
1352
- i.innerHTML = `
1351
+ 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");
1352
+ r.innerHTML = `
1353
1353
  <style>
1354
1354
  @import "${t}";
1355
1355
  .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-theme);--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);--colour-btn-action-hover-bg: var(--colour-light);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 */
@@ -1370,7 +1370,7 @@ class Ue extends HTMLElement {
1370
1370
  <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />
1371
1371
  </picture>
1372
1372
  </div>
1373
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1373
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
1374
1374
  }
1375
1375
  connectedCallback() {
1376
1376
  this.classList.add("loaded");
@@ -1378,7 +1378,7 @@ class Ue extends HTMLElement {
1378
1378
  this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1379
1379
  }
1380
1380
  }
1381
- const We = {
1381
+ const Ge = {
1382
1382
  name: "Header",
1383
1383
  props: {
1384
1384
  title: {
@@ -1392,53 +1392,53 @@ const We = {
1392
1392
  },
1393
1393
  mounted() {
1394
1394
  this.$nextTick(function() {
1395
- window.customElements.get("iam-header") || window.customElements.define("iam-header", Ue);
1395
+ window.customElements.get("iam-header") || window.customElements.define("iam-header", Ye);
1396
1396
  });
1397
1397
  }
1398
- }, Ge = ["image"], Ke = ["innerHTML"];
1399
- function Ye(e, a, t, i, o, s) {
1400
- return d(), u("iam-header", {
1398
+ }, Ke = ["image"], Xe = ["innerHTML"];
1399
+ function Je(e, a, t, r, s, i) {
1400
+ return m(), h("iam-header", {
1401
1401
  class: "bg-secondary",
1402
1402
  image: t.image
1403
1403
  }, [
1404
- A(e.$slots, "breadcrumb"),
1405
- t.title ? (d(), u("h1", {
1404
+ S(e.$slots, "breadcrumb"),
1405
+ t.title ? (m(), h("h1", {
1406
1406
  key: 0,
1407
1407
  innerHTML: t.title
1408
- }, null, 8, Ke)) : _("", !0),
1409
- A(e.$slots, "default")
1410
- ], 8, Ge);
1408
+ }, null, 8, Xe)) : _("", !0),
1409
+ S(e.$slots, "default")
1410
+ ], 8, Ke);
1411
1411
  }
1412
- const xr = /* @__PURE__ */ w(We, [["render", Ye]]);
1413
- function Xe(e) {
1412
+ const ai = /* @__PURE__ */ A(Ge, [["render", Je]]);
1413
+ function Qe(e) {
1414
1414
  var a;
1415
- const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
1416
- if (i == 1)
1415
+ const t = e.querySelector(".testimonial__images"), r = t.querySelectorAll("img").length;
1416
+ if (r == 1)
1417
1417
  return !1;
1418
1418
  e.classList.add("testimonial--multi");
1419
- const o = function(s) {
1420
- const r = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1421
- r.setAttribute("data-go", s + 1), l.setAttribute("data-go", s - 1), r.removeAttribute("disabled"), l.removeAttribute("disabled"), s == 1 ? l.setAttribute("disabled", !0) : s == i && r.setAttribute("disabled", !0);
1419
+ const s = function(i) {
1420
+ const o = e.querySelector(".btn-next"), n = e.querySelector(".btn-prev");
1421
+ o.setAttribute("data-go", i + 1), n.setAttribute("data-go", i - 1), o.removeAttribute("disabled"), n.removeAttribute("disabled"), i == 1 ? n.setAttribute("disabled", !0) : i == r && o.setAttribute("disabled", !0);
1422
1422
  };
1423
- t.addEventListener("scroll", function(s) {
1423
+ t.addEventListener("scroll", function(i) {
1424
1424
  clearTimeout(a), a = setTimeout(function() {
1425
- let r = t.scrollWidth, l = t.scrollHeight, c = t.scrollLeft, n = t.scrollTop, h = Math.round(c / r * i) + 1;
1426
- c == 0 && n != 0 && (h = Math.round(n / l * i) + 1), e.setAttribute("data-show", h), o(h);
1425
+ let o = t.scrollWidth, n = t.scrollHeight, c = t.scrollLeft, l = t.scrollTop, p = Math.round(c / o * r) + 1;
1426
+ c == 0 && l != 0 && (p = Math.round(l / n * r) + 1), e.setAttribute("data-show", p), s(p);
1427
1427
  }, 300);
1428
- }, !1), e.addEventListener("click", function(s) {
1429
- for (var r = s.target; r && r != this; r = r.parentNode)
1430
- if (r.matches("[data-go]")) {
1431
- let l = parseInt(r.getAttribute("data-go")), c = 0, n = 0, h = t.scrollWidth, p = t.scrollHeight;
1432
- h > p ? n = Math.floor(h * ((l - 1) / i)) : c = Math.floor(p * ((l - 1) / i)), t.scroll({
1428
+ }, !1), e.addEventListener("click", function(i) {
1429
+ for (var o = i.target; o && o != this; o = o.parentNode)
1430
+ if (o.matches("[data-go]")) {
1431
+ let n = parseInt(o.getAttribute("data-go")), c = 0, l = 0, p = t.scrollWidth, d = t.scrollHeight;
1432
+ p > d ? l = Math.floor(p * ((n - 1) / r)) : c = Math.floor(d * ((n - 1) / r)), t.scroll({
1433
1433
  top: c,
1434
- left: n,
1434
+ left: l,
1435
1435
  behavior: "smooth"
1436
1436
  });
1437
1437
  break;
1438
1438
  }
1439
1439
  }, !1);
1440
1440
  }
1441
- const Je = {
1441
+ const Ze = {
1442
1442
  name: "Testimonial",
1443
1443
  props: {
1444
1444
  items: {
@@ -1452,68 +1452,90 @@ const Je = {
1452
1452
  }
1453
1453
  },
1454
1454
  mounted() {
1455
- Xe(this.$refs.wrapper);
1455
+ Qe(this.$refs.wrapper);
1456
1456
  }
1457
- }, Qe = {
1457
+ }, ta = {
1458
1458
  class: "container testimonial mb-5",
1459
1459
  "data-show": "1",
1460
1460
  ref: "wrapper"
1461
- }, Ze = { class: "row" }, ta = { class: "col-md-5 position-relative" }, ea = { class: "testimonial__images" }, aa = ["src"], ra = /* @__PURE__ */ f("div", { class: "testimonial__controls" }, [
1462
- /* @__PURE__ */ f("button", {
1461
+ }, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" }, oa = { class: "testimonial__images" }, ia = ["src"], ra = /* @__PURE__ */ g("div", { class: "testimonial__controls" }, [
1462
+ /* @__PURE__ */ g("button", {
1463
1463
  "data-go": "0",
1464
1464
  disabled: "",
1465
1465
  class: "btn-prev"
1466
1466
  }, "Previous"),
1467
- /* @__PURE__ */ f("button", {
1467
+ /* @__PURE__ */ g("button", {
1468
1468
  "data-go": "2",
1469
1469
  class: "btn-next"
1470
1470
  }, "Next")
1471
- ], -1), ia = { class: "col-md-7" }, sa = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), oa = { class: "testimonial__content" }, na = ["innerHTML"], la = ["innerHTML"], ca = { class: "testimonial__after" }, da = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1472
- function ua(e, a, t, i, o, s) {
1473
- return d(), u("div", Qe, [
1474
- f("div", {
1475
- class: L("bg-" + t.background)
1471
+ ], -1), sa = { class: "col-md-7" }, na = /* @__PURE__ */ g("h2", null, "What our customers think…", -1), la = { class: "testimonial__content" }, ca = ["innerHTML"], da = ["innerHTML"], ua = { class: "testimonial__after" }, ma = /* @__PURE__ */ g("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1472
+ function ha(e, a, t, r, s, i) {
1473
+ return m(), h("div", ta, [
1474
+ g("div", {
1475
+ class: $("bg-" + t.background)
1476
1476
  }, [
1477
- f("div", Ze, [
1478
- f("div", ta, [
1479
- f("div", ea, [
1480
- (d(!0), u(H, null, M(t.items, (r, l) => (d(), u("img", {
1481
- key: l,
1482
- src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1477
+ g("div", ea, [
1478
+ g("div", aa, [
1479
+ g("div", oa, [
1480
+ (m(!0), h(M, null, H(t.items, (o, n) => (m(), h("img", {
1481
+ key: n,
1482
+ src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1483
1483
  alt: "",
1484
- class: L("h-100 w-100 object-cover" + (r.image ? "" : " opacity-0"))
1485
- }, null, 10, aa))), 128))
1484
+ class: $("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
1485
+ }, null, 10, ia))), 128))
1486
1486
  ]),
1487
1487
  ra
1488
1488
  ]),
1489
- f("div", ia, [
1490
- sa,
1491
- f("div", oa, [
1492
- (d(!0), u(H, null, M(t.items, (r, l) => (d(), u("blockquote", {
1493
- key: l,
1494
- class: L(r.class)
1489
+ g("div", sa, [
1490
+ na,
1491
+ g("div", la, [
1492
+ (m(!0), h(M, null, H(t.items, (o, n) => (m(), h("blockquote", {
1493
+ key: n,
1494
+ class: $(o.class)
1495
1495
  }, [
1496
- f("div", {
1497
- innerHTML: r.quote
1498
- }, null, 8, na),
1499
- f("cite", {
1500
- innerHTML: r.cite
1501
- }, null, 8, la)
1496
+ g("div", {
1497
+ innerHTML: o.quote
1498
+ }, null, 8, ca),
1499
+ g("cite", {
1500
+ innerHTML: o.cite
1501
+ }, null, 8, da)
1502
1502
  ], 2))), 128))
1503
1503
  ]),
1504
- f("div", ca, [
1505
- A(e.$slots, "default")
1504
+ g("div", ua, [
1505
+ S(e.$slots, "default")
1506
1506
  ])
1507
1507
  ])
1508
1508
  ]),
1509
- da
1509
+ ma
1510
1510
  ], 2)
1511
1511
  ], 512);
1512
1512
  }
1513
- const Er = /* @__PURE__ */ w(Je, [["render", ua]]);
1514
- const ma = {
1513
+ const oi = /* @__PURE__ */ A(Ze, [["render", ha]]);
1514
+ const pa = {
1515
+ name: "Timeline",
1516
+ props: {
1517
+ image: {
1518
+ type: String,
1519
+ required: !1
1520
+ }
1521
+ }
1522
+ }, ba = { class: "timeline" }, fa = { class: "timeline__content" }, ga = ["src"];
1523
+ function ya(e, a, t, r, s, i) {
1524
+ return m(), h("div", ba, [
1525
+ g("div", fa, [
1526
+ S(e.$slots, "default")
1527
+ ]),
1528
+ t.image ? (m(), h("img", {
1529
+ key: 0,
1530
+ src: t.image,
1531
+ alt: ""
1532
+ }, null, 8, ga)) : _("", !0)
1533
+ ]);
1534
+ }
1535
+ const ii = /* @__PURE__ */ A(pa, [["render", ya]]);
1536
+ const va = {
1515
1537
  components: {
1516
- Input: ot
1538
+ Input: lt
1517
1539
  },
1518
1540
  name: "PropertySearchbar",
1519
1541
  props: {
@@ -1657,46 +1679,46 @@ const ma = {
1657
1679
  ];
1658
1680
  }
1659
1681
  }
1660
- }, ha = {
1682
+ }, wa = {
1661
1683
  class: "container",
1662
1684
  ref: "wrapper"
1663
- }, fa = { class: "property-searchbar" }, pa = ["action", "method"], ba = { class: "col-12 col-md-3" }, ya = { class: "col-12 col-md" }, ga = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Price range", -1), va = {
1685
+ }, _a = { class: "property-searchbar" }, Aa = ["action", "method"], La = { class: "col-12 col-md-3" }, Sa = { class: "col-12 col-md" }, $a = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Price range", -1), qa = {
1664
1686
  class: "row",
1665
1687
  "data-input-range": ""
1666
- }, _a = { class: "col-12 col-md" }, Aa = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), wa = {
1688
+ }, ka = { class: "col-12 col-md" }, xa = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Ea = {
1667
1689
  class: "row",
1668
1690
  "data-input-range": ""
1669
- }, La = { class: "col-12 col-md-2" }, Sa = /* @__PURE__ */ f("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1670
- /* @__PURE__ */ f("button", {
1691
+ }, Ta = { class: "col-12 col-md-2" }, Ma = /* @__PURE__ */ g("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1692
+ /* @__PURE__ */ g("button", {
1671
1693
  class: "btn w-100 me-0",
1672
1694
  type: "submit",
1673
1695
  value: "submit"
1674
1696
  }, "Search")
1675
1697
  ], -1);
1676
- function ka(e, a, t, i, o, s) {
1677
- const r = I("Input");
1678
- return d(), u("div", ha, [
1679
- A(e.$slots, "default"),
1680
- f("div", fa, [
1681
- f("form", {
1698
+ function Ha(e, a, t, r, s, i) {
1699
+ const o = z("Input");
1700
+ return m(), h("div", wa, [
1701
+ S(e.$slots, "default"),
1702
+ g("div", _a, [
1703
+ g("form", {
1682
1704
  class: "row",
1683
1705
  action: t.formaction,
1684
1706
  method: t.formmethod
1685
1707
  }, [
1686
- f("fieldset", ba, [
1687
- T(r, {
1708
+ g("fieldset", La, [
1709
+ C(o, {
1688
1710
  inputClass: "input--locations",
1689
- modelValue: s.locationSet,
1690
- "onUpdate:modelValue": a[0] || (a[0] = (l) => s.locationSet = l),
1711
+ modelValue: i.locationSet,
1712
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => i.locationSet = n),
1691
1713
  label: "Location",
1692
1714
  id: "location",
1693
- options: s.locationsList(),
1715
+ options: i.locationsList(),
1694
1716
  required: "",
1695
1717
  placeholder: "i.e. Newcastle or NE1",
1696
- onKeyupEvent: a[1] || (a[1] = (l) => s.locationKeyup(...arguments)),
1718
+ onKeyupEvent: a[1] || (a[1] = (n) => i.locationKeyup(...arguments)),
1697
1719
  ref: "search"
1698
1720
  }, null, 8, ["modelValue", "options"]),
1699
- T(r, {
1721
+ C(o, {
1700
1722
  class: "select--miles",
1701
1723
  label: "Miles",
1702
1724
  id: "miles",
@@ -1704,10 +1726,10 @@ function ka(e, a, t, i, o, s) {
1704
1726
  options: t.distances
1705
1727
  }, null, 8, ["options"])
1706
1728
  ]),
1707
- f("fieldset", ya, [
1708
- ga,
1709
- f("div", va, [
1710
- T(r, {
1729
+ g("fieldset", Sa, [
1730
+ $a,
1731
+ g("div", qa, [
1732
+ C(o, {
1711
1733
  class: "col-6",
1712
1734
  label: "Minimum price",
1713
1735
  id: "price-min",
@@ -1715,7 +1737,7 @@ function ka(e, a, t, i, o, s) {
1715
1737
  type: "select",
1716
1738
  options: t.pricemin
1717
1739
  }, null, 8, ["options"]),
1718
- T(r, {
1740
+ C(o, {
1719
1741
  class: "col-6",
1720
1742
  label: "Maximum price",
1721
1743
  id: "price-max",
@@ -1725,10 +1747,10 @@ function ka(e, a, t, i, o, s) {
1725
1747
  }, null, 8, ["options"])
1726
1748
  ])
1727
1749
  ]),
1728
- f("fieldset", _a, [
1729
- Aa,
1730
- f("div", wa, [
1731
- T(r, {
1750
+ g("fieldset", ka, [
1751
+ xa,
1752
+ g("div", Ea, [
1753
+ C(o, {
1732
1754
  class: "col-6",
1733
1755
  label: "Minimum beds",
1734
1756
  id: "beds-min",
@@ -1736,7 +1758,7 @@ function ka(e, a, t, i, o, s) {
1736
1758
  type: "select",
1737
1759
  options: t.bedsmin
1738
1760
  }, null, 8, ["options"]),
1739
- T(r, {
1761
+ C(o, {
1740
1762
  class: "col-6",
1741
1763
  label: "Maximum beds",
1742
1764
  id: "beds-max",
@@ -1746,26 +1768,26 @@ function ka(e, a, t, i, o, s) {
1746
1768
  }, null, 8, ["options"])
1747
1769
  ])
1748
1770
  ]),
1749
- f("fieldset", La, [
1750
- T(r, {
1771
+ g("fieldset", Ta, [
1772
+ C(o, {
1751
1773
  label: "Property type",
1752
1774
  id: "property-type",
1753
1775
  type: "select",
1754
1776
  options: t.propertytypes
1755
1777
  }, null, 8, ["options"])
1756
1778
  ]),
1757
- Sa
1758
- ], 8, pa)
1779
+ Ma
1780
+ ], 8, Aa)
1759
1781
  ]),
1760
- A(e.$slots, "after")
1782
+ S(e.$slots, "after")
1761
1783
  ], 512);
1762
1784
  }
1763
- const Tr = /* @__PURE__ */ w(ma, [["render", ka]]), qa = {
1785
+ const ri = /* @__PURE__ */ A(va, [["render", Ha]]), Ca = {
1764
1786
  components: {},
1765
1787
  name: "Nav",
1766
1788
  mounted() {
1767
1789
  this.$nextTick(function() {
1768
- import("./nav.component.min-93eb365a.mjs").then((e) => {
1790
+ import("./nav.component.min-ba0e9d2a.mjs").then((e) => {
1769
1791
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1770
1792
  }).catch((e) => {
1771
1793
  console.log(e.message);
@@ -1773,14 +1795,14 @@ const Tr = /* @__PURE__ */ w(ma, [["render", ka]]), qa = {
1773
1795
  });
1774
1796
  },
1775
1797
  methods: {}
1776
- }, $a = { ref: "wrapper" };
1777
- function xa(e, a, t, i, o, s) {
1778
- return d(), u("iam-nav", $a, [
1779
- A(e.$slots, "default")
1798
+ }, Na = { ref: "wrapper" };
1799
+ function Ra(e, a, t, r, s, i) {
1800
+ return m(), h("iam-nav", Na, [
1801
+ S(e.$slots, "default")
1780
1802
  ], 512);
1781
1803
  }
1782
- const Hr = /* @__PURE__ */ w(qa, [["render", xa]]);
1783
- const Ea = {
1804
+ const si = /* @__PURE__ */ A(Ca, [["render", Ra]]);
1805
+ const Da = {
1784
1806
  name: "Stepper",
1785
1807
  props: {
1786
1808
  label: {
@@ -1793,25 +1815,60 @@ const Ea = {
1793
1815
  default: "Complete"
1794
1816
  }
1795
1817
  }
1796
- }, Ta = { class: "container" }, Ha = ["aria-label"], Ma = {
1818
+ }, Pa = { class: "container" }, ja = ["aria-label"], Ia = {
1797
1819
  key: 0,
1798
1820
  class: "h6 stepper__start"
1799
- }, Ca = { class: "list-unstyled" }, Da = { class: "h6 stepper__end" };
1800
- function Na(e, a, t, i, o, s) {
1801
- return d(), u("div", Ta, [
1802
- f("nav", {
1821
+ }, za = { class: "list-unstyled" }, Ba = { class: "h6 stepper__end" };
1822
+ function Fa(e, a, t, r, s, i) {
1823
+ return m(), h("div", Pa, [
1824
+ g("nav", {
1803
1825
  class: "stepper",
1804
1826
  "aria-label": t.label ? t.label : "Progress"
1805
1827
  }, [
1806
- t.label ? (d(), u("span", Ma, q(t.label), 1)) : _("", !0),
1807
- f("ol", Ca, [
1808
- A(e.$slots, "default")
1828
+ t.label ? (m(), h("span", Ia, x(t.label), 1)) : _("", !0),
1829
+ g("ol", za, [
1830
+ S(e.$slots, "default")
1809
1831
  ]),
1810
- f("span", Da, q(t.endlabel), 1)
1811
- ], 8, Ha)
1832
+ g("span", Ba, x(t.endlabel), 1)
1833
+ ], 8, ja)
1812
1834
  ]);
1813
1835
  }
1814
- const Mr = /* @__PURE__ */ w(Ea, [["render", Na]]), Ra = {
1836
+ const ni = /* @__PURE__ */ A(Da, [["render", Fa]]);
1837
+ const Oa = {
1838
+ name: "Snapshot",
1839
+ props: {
1840
+ items: {
1841
+ type: Array,
1842
+ required: !0
1843
+ }
1844
+ }
1845
+ }, Va = {
1846
+ class: "container snapshot",
1847
+ ref: "wrapper"
1848
+ }, Wa = { class: "row" }, Ua = ["href"], Ya = { class: "lead snapshot__title" }, Ga = { class: "stat" };
1849
+ function Ka(e, a, t, r, s, i) {
1850
+ return m(), h("div", Va, [
1851
+ S(e.$slots, "default"),
1852
+ g("div", Wa, [
1853
+ (m(!0), h(M, null, H(t.items, (o, n) => (m(), h("div", {
1854
+ class: "col",
1855
+ key: n
1856
+ }, [
1857
+ o.link ? (m(), h("a", {
1858
+ key: 0,
1859
+ href: o.link
1860
+ }, "View " + x(o.title), 9, Ua)) : _("", !0),
1861
+ g("div", {
1862
+ class: $(`snapshot__item ${o.bg ? "bg-" + o.bg : ""}`)
1863
+ }, [
1864
+ g("span", Ya, x(o.title), 1),
1865
+ g("span", Ga, x(o.number), 1)
1866
+ ], 2)
1867
+ ]))), 128))
1868
+ ])
1869
+ ], 512);
1870
+ }
1871
+ const li = /* @__PURE__ */ A(Oa, [["render", Ka]]), Xa = {
1815
1872
  name: "Stepper",
1816
1873
  props: {
1817
1874
  url: {
@@ -1827,72 +1884,72 @@ const Mr = /* @__PURE__ */ w(Ea, [["render", Na]]), Ra = {
1827
1884
  required: !1
1828
1885
  }
1829
1886
  }
1830
- }, za = ["href", "aria-current"], Pa = {
1887
+ }, Ja = ["href", "aria-current"], Qa = {
1831
1888
  key: 0,
1832
1889
  class: "visually-hidden"
1833
1890
  };
1834
- function ja(e, a, t, i, o, s) {
1835
- return d(), u("li", null, [
1836
- f("a", {
1891
+ function Za(e, a, t, r, s, i) {
1892
+ return m(), h("li", null, [
1893
+ g("a", {
1837
1894
  href: t.url,
1838
- class: L(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
1895
+ class: $(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
1839
1896
  "aria-current": typeof t.current < "u"
1840
1897
  }, [
1841
- f("span", null, [
1842
- A(e.$slots, "default")
1898
+ g("span", null, [
1899
+ S(e.$slots, "default")
1843
1900
  ]),
1844
- t.status ? (d(), u("em", Pa, " - status: " + q(t.status), 1)) : _("", !0)
1845
- ], 10, za)
1901
+ t.status ? (m(), h("em", Qa, " - status: " + x(t.status), 1)) : _("", !0)
1902
+ ], 10, Ja)
1846
1903
  ]);
1847
1904
  }
1848
- const Cr = /* @__PURE__ */ w(Ra, [["render", ja]]);
1905
+ const ci = /* @__PURE__ */ A(Xa, [["render", Za]]);
1849
1906
  /*!
1850
- * iamKey v3.9.0-beta-1
1907
+ * iamKey v4.0.0
1851
1908
  * Copyright 2022-2023 iamproperty
1852
1909
  */
1853
- const Ia = function(e) {
1910
+ const to = function(e) {
1854
1911
  const a = e.querySelectorAll(":scope > details");
1855
1912
  e.querySelectorAll(":scope > details > summary");
1856
1913
  let t = e.querySelector(":scope > .tabs__links");
1857
- e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t || (t = document.createElement("div"), t.classList.add("tabs__links"), e.prepend(t)), a.forEach((i, o) => {
1858
- let s = i.querySelector(":scope > summary");
1859
- s.classList.add("visually-hidden");
1860
- let r = document.createElement("button");
1861
- i.hasAttribute("id") && (r = document.createElement("a"), r.setAttribute("href", `#${i.getAttribute("id")}`)), i.hasAttribute("open") && r.setAttribute("aria-pressed", !0), r.innerHTML = `${s.innerText}`, r.classList.add("link"), r.setAttribute("data-index", o), r.setAttribute("tabindex", "-1"), t.appendChild(r);
1914
+ 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) => {
1915
+ let i = r.querySelector(":scope > summary");
1916
+ i.classList.add("visually-hidden");
1917
+ let o = document.createElement("button");
1918
+ 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);
1862
1919
  });
1863
- }, Fa = function(e) {
1864
- let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), i = e.querySelectorAll(":scope .tabs__links > .link");
1865
- e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((o) => {
1866
- o.addEventListener("click", (s) => {
1867
- s.preventDefault(), i.forEach((r) => {
1868
- let l = r == o;
1869
- r.setAttribute("aria-pressed", l);
1870
- }), a.forEach((r, l) => {
1871
- let c = o.getAttribute("data-index") == l;
1872
- c ? r.setAttribute("open", c) : r.removeAttribute("open");
1873
- }), o.hasAttribute("href") && history.pushState(void 0, void 0, o.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: o.textContent });
1920
+ }, eo = function(e) {
1921
+ let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), r = e.querySelectorAll(":scope .tabs__links > .link");
1922
+ e.shadowRoot && (r = e.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((s) => {
1923
+ s.addEventListener("click", (i) => {
1924
+ i.preventDefault(), r.forEach((o) => {
1925
+ let n = o == s;
1926
+ o.setAttribute("aria-pressed", n);
1927
+ }), a.forEach((o, n) => {
1928
+ let c = s.getAttribute("data-index") == n;
1929
+ c ? o.setAttribute("open", c) : o.removeAttribute("open");
1930
+ }), s.hasAttribute("href") && history.pushState(void 0, void 0, s.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: s.textContent });
1874
1931
  });
1875
- }), t.forEach((o, s) => {
1876
- o.addEventListener("focus", (r) => {
1877
- i.forEach((l) => {
1878
- l.classList.remove("focus");
1879
- }), i[s].classList.add("focus");
1880
- }), o.addEventListener("click", (r) => {
1881
- r.preventDefault(), i[s].click();
1932
+ }), t.forEach((s, i) => {
1933
+ s.addEventListener("focus", (o) => {
1934
+ r.forEach((n) => {
1935
+ n.classList.remove("focus");
1936
+ }), r[i].classList.add("focus");
1937
+ }), s.addEventListener("click", (o) => {
1938
+ o.preventDefault(), r[i].click();
1882
1939
  });
1883
1940
  });
1884
- }, Ba = function(e) {
1941
+ }, ao = function(e) {
1885
1942
  let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
1886
1943
  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));
1887
- }, Oa = function(e) {
1888
- Ia(e), Fa(e), Ba(e);
1944
+ }, oo = function(e) {
1945
+ to(e), eo(e), ao(e);
1889
1946
  };
1890
1947
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
1891
- class Va extends HTMLElement {
1948
+ let io = class extends HTMLElement {
1892
1949
  constructor() {
1893
1950
  super(), this.attachShadow({ mode: "open" });
1894
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
1895
- i.innerHTML = `
1951
+ 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");
1952
+ r.innerHTML = `
1896
1953
  <style>
1897
1954
  @import "${t}";
1898
1955
 
@@ -1906,23 +1963,23 @@ class Va extends HTMLElement {
1906
1963
  <div class="tabs__links"></div>
1907
1964
  <slot></slot>
1908
1965
  </div>
1909
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1966
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
1910
1967
  }
1911
1968
  connectedCallback() {
1912
1969
  let a = this.classList.toString().replace("container", "");
1913
- this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), Oa(this);
1970
+ this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), oo(this);
1914
1971
  }
1915
- }
1916
- window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Va);
1917
- const Ua = {
1972
+ };
1973
+ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", io);
1974
+ const ro = {
1918
1975
  name: "Tabs"
1919
- }, Wa = { ref: "wrapper" };
1920
- function Ga(e, a, t, i, o, s) {
1921
- return d(), u("iam-tabs", Wa, [
1922
- A(e.$slots, "default")
1976
+ }, so = { ref: "wrapper" };
1977
+ function no(e, a, t, r, s, i) {
1978
+ return m(), h("iam-tabs", so, [
1979
+ S(e.$slots, "default")
1923
1980
  ], 512);
1924
1981
  }
1925
- const Dr = /* @__PURE__ */ w(Ua, [["render", Ga]]), Ka = {
1982
+ const ui = /* @__PURE__ */ A(ro, [["render", no]]), lo = {
1926
1983
  name: "Tab",
1927
1984
  props: {
1928
1985
  title: {
@@ -1944,20 +2001,20 @@ const Dr = /* @__PURE__ */ w(Ua, [["render", Ga]]), Ka = {
1944
2001
  console.log(e);
1945
2002
  }
1946
2003
  }
1947
- }, Ya = { class: "tab" }, Xa = ["innerHTML"];
1948
- function Ja(e, a, t, i, o, s) {
1949
- return d(), u("details", Ya, [
1950
- f("summary", { innerHTML: t.title }, null, 8, Xa),
1951
- A(e.$slots, "default")
2004
+ }, co = { class: "tab" }, uo = ["innerHTML"];
2005
+ function mo(e, a, t, r, s, i) {
2006
+ return m(), h("details", co, [
2007
+ g("summary", { innerHTML: t.title }, null, 8, uo),
2008
+ S(e.$slots, "default")
1952
2009
  ]);
1953
2010
  }
1954
- const Nr = /* @__PURE__ */ w(Ka, [["render", Ja]]);
1955
- let nt = st.props;
1956
- nt.fields.required = !1;
1957
- const Qa = {
2011
+ const mi = /* @__PURE__ */ A(lo, [["render", mo]]);
2012
+ let ct = nt.props;
2013
+ ct.fields.required = !1;
2014
+ const ho = {
1958
2015
  components: {
1959
- Table: st,
1960
- Input: ot
2016
+ Table: nt,
2017
+ Input: lt
1961
2018
  },
1962
2019
  data() {
1963
2020
  return {
@@ -1970,9 +2027,9 @@ const Qa = {
1970
2027
  console.log(this);
1971
2028
  const a = new FormData(e.target);
1972
2029
  let t = /* @__PURE__ */ new Date();
1973
- const i = t.getFullYear();
1974
- let o = t.getMonth() + 1, s = t.getDate();
1975
- s < 10 && (s = "0" + s), o < 10 && (o = "0" + o), t = s + "/" + o + "/" + i, this.itemsData.unshift({
2030
+ const r = t.getFullYear();
2031
+ let s = t.getMonth() + 1, i = t.getDate();
2032
+ i < 10 && (i = "0" + i), s < 10 && (s = "0" + s), t = i + "/" + s + "/" + r, this.itemsData.unshift({
1976
2033
  date_added: t,
1977
2034
  user: a.get("user"),
1978
2035
  note: a.get("addNote")
@@ -1985,7 +2042,7 @@ const Qa = {
1985
2042
  type: String,
1986
2043
  required: !0
1987
2044
  },
1988
- ...nt,
2045
+ ...ct,
1989
2046
  title: {
1990
2047
  type: String,
1991
2048
  required: !1
@@ -2000,162 +2057,162 @@ const Qa = {
2000
2057
  required: !1
2001
2058
  }
2002
2059
  }
2003
- }, Za = { class: "container note-feed mb-2" }, tr = ["innerHTML"], er = ["action", "method"], ar = ["value"], rr = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2004
- function ir(e, a, t, i, o, s) {
2005
- const r = I("Table"), l = I("Input");
2006
- return d(), u("div", Za, [
2007
- t.title ? (d(), u("span", {
2060
+ }, po = { class: "container note-feed mb-2" }, bo = ["innerHTML"], fo = ["action", "method"], go = ["value"], yo = /* @__PURE__ */ g("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2061
+ function vo(e, a, t, r, s, i) {
2062
+ const o = z("Table"), n = z("Input");
2063
+ return m(), h("div", po, [
2064
+ t.title ? (m(), h("span", {
2008
2065
  key: 0,
2009
2066
  class: "h3",
2010
2067
  innerHTML: t.title
2011
- }, null, 8, tr)) : _("", !0),
2012
- T(r, C({
2068
+ }, null, 8, bo)) : _("", !0),
2069
+ C(o, N({
2013
2070
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2014
- items: o.itemsData
2071
+ items: s.itemsData
2015
2072
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2016
- f("form", {
2073
+ g("form", {
2017
2074
  action: t.action,
2018
2075
  method: t.method,
2019
- onSubmit: a[0] || (a[0] = pt((c) => s.submitForm(...arguments), ["prevent"]))
2076
+ onSubmit: a[0] || (a[0] = gt((c) => i.submitForm(...arguments), ["prevent"]))
2020
2077
  }, [
2021
- f("input", {
2078
+ g("input", {
2022
2079
  type: "hidden",
2023
2080
  value: t.user,
2024
2081
  name: "user"
2025
- }, null, 8, ar),
2026
- T(l, {
2082
+ }, null, 8, go),
2083
+ C(n, {
2027
2084
  id: "addNote",
2028
2085
  type: "textarea",
2029
2086
  label: "Add note",
2030
2087
  required: "",
2031
2088
  class: "mw-100"
2032
2089
  }),
2033
- rr
2034
- ], 40, er)
2090
+ yo
2091
+ ], 40, fo)
2035
2092
  ]);
2036
2093
  }
2037
- const Rr = /* @__PURE__ */ w(Qa, [["render", ir]]);
2094
+ const hi = /* @__PURE__ */ A(ho, [["render", vo]]);
2038
2095
  /*!
2039
- * iamKey v3.9.0-beta-1
2096
+ * iamKey v4.0.0
2040
2097
  * Copyright 2022-2023 iamproperty
2041
2098
  */
2042
- function sr(e, a) {
2043
- function t(i, o) {
2044
- let s = !1, r = o.getAttribute("name");
2045
- r.includes("[]") && (r = r.replace("[]", `[${o.value}]`));
2046
- let l = i.querySelector(`[data-name="${r}"]`);
2047
- l && o.getAttribute("type") == "checkbox" && (s = !0);
2048
- let c = o.getAttribute("data-filter-text");
2049
- if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", r), l.innerHTML = c.replace("$value", o.value), (!o.value || s) && l.remove(), o.parentNode.closest("[data-filter-text]")) {
2050
- let n = o.parentNode.closest("[data-filter-text]"), h = !0;
2051
- if (r = "", n.querySelectorAll("input").forEach((p, y) => {
2052
- let b = p.getAttribute("name");
2053
- if (r += `${y != 0 ? "," : ""}${b}`, i.querySelector(`[data-name="${b}"]`) && i.querySelector(`[data-name="${b}"]`).remove(), p.value) {
2054
- let m = document.createElement("button");
2055
- m.setAttribute("type", "button"), m.classList.add("filter"), m.setAttribute("data-name", b), m.innerHTML = c.replace("$value", p.value), i.appendChild(m);
2099
+ function wo(e, a) {
2100
+ function t(r, s) {
2101
+ let i = !1, o = s.getAttribute("name");
2102
+ o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
2103
+ let n = r.querySelector(`[data-name="${o}"]`);
2104
+ n && s.getAttribute("type") == "checkbox" && (i = !0);
2105
+ let c = s.getAttribute("data-filter-text");
2106
+ if (n || (n = document.createElement("button"), r.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name", o), n.innerHTML = c.replace("$value", s.value), (!s.value || i) && n.remove(), s.parentNode.closest("[data-filter-text]")) {
2107
+ let l = s.parentNode.closest("[data-filter-text]"), p = !0;
2108
+ if (o = "", l.querySelectorAll("input").forEach((d, f) => {
2109
+ let b = d.getAttribute("name");
2110
+ if (o += `${f != 0 ? "," : ""}${b}`, r.querySelector(`[data-name="${b}"]`) && r.querySelector(`[data-name="${b}"]`).remove(), d.value) {
2111
+ let u = document.createElement("button");
2112
+ u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", b), u.innerHTML = c.replace("$value", d.value), r.appendChild(u);
2056
2113
  } else
2057
- h = !1;
2058
- }), i.querySelector(`[data-name="${r}"]`) && i.querySelector(`[data-name="${r}"]`).remove(), h) {
2059
- let p = n.getAttribute("data-filter-text");
2060
- n.querySelectorAll("input").forEach((b, m) => {
2061
- let S = b.getAttribute("name");
2062
- i.querySelector(`[data-name="${S}"]`) && i.querySelector(`[data-name="${S}"]`).remove(), p = p.replace(`$${m + 1}`, b.value);
2114
+ p = !1;
2115
+ }), r.querySelector(`[data-name="${o}"]`) && r.querySelector(`[data-name="${o}"]`).remove(), p) {
2116
+ let d = l.getAttribute("data-filter-text");
2117
+ l.querySelectorAll("input").forEach((b, u) => {
2118
+ let w = b.getAttribute("name");
2119
+ r.querySelector(`[data-name="${w}"]`) && r.querySelector(`[data-name="${w}"]`).remove(), d = d.replace(`$${u + 1}`, b.value);
2063
2120
  });
2064
- let y = document.createElement("button");
2065
- y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", r), y.innerHTML = p, i.appendChild(y);
2121
+ let f = document.createElement("button");
2122
+ f.setAttribute("type", "button"), f.classList.add("filter"), f.setAttribute("data-name", o), f.innerHTML = d, r.appendChild(f);
2066
2123
  }
2067
2124
  }
2068
2125
  }
2069
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, o) => {
2070
- t(a, i);
2071
- }), e.addEventListener("change", function(i) {
2072
- if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2073
- let o = i.target.closest("input[data-filter-text]");
2074
- t(a, o);
2126
+ Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, s) => {
2127
+ t(a, r);
2128
+ }), e.addEventListener("change", function(r) {
2129
+ if (r && r.target instanceof HTMLElement && r.target.closest("input[data-filter-text]")) {
2130
+ let s = r.target.closest("input[data-filter-text]");
2131
+ t(a, s);
2075
2132
  }
2076
- }, !1), a.addEventListener("click", function(i) {
2077
- if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2078
- let r = i.target.closest(".filter"), l = r.getAttribute("data-name").split(",");
2079
- for (var o = 0; o < l.length; o++) {
2080
- let c = l[o], n = `[name="${c}"]`;
2081
- c.match(/\[(.*)\]/) && (c.replace(/\[(.*)\]/, "[]"), n = `[value="${c.replace(/.*\[(.*)\]/, "$1")}"]`);
2082
- let h = e.querySelectorAll(n);
2083
- for (var s = 0; s < h.length; s++) {
2084
- let p = h[s];
2085
- if (p.getAttribute("type") != "radio" && p.getAttribute("type") != "checkbox")
2086
- p.value = "";
2133
+ }, !1), a.addEventListener("click", function(r) {
2134
+ if (r && r.target instanceof HTMLElement && r.target.closest(".filter")) {
2135
+ let o = r.target.closest(".filter"), n = o.getAttribute("data-name").split(",");
2136
+ for (var s = 0; s < n.length; s++) {
2137
+ let c = n[s], l = `[name="${c}"]`;
2138
+ c.match(/\[(.*)\]/) && (c.replace(/\[(.*)\]/, "[]"), l = `[value="${c.replace(/.*\[(.*)\]/, "$1")}"]`);
2139
+ let p = e.querySelectorAll(l);
2140
+ for (var i = 0; i < p.length; i++) {
2141
+ let d = p[i];
2142
+ if (d.getAttribute("type") != "radio" && d.getAttribute("type") != "checkbox")
2143
+ d.value = "";
2087
2144
  else {
2088
- p.checked = !1;
2089
- var i = new Event("force");
2090
- p.closest("form").dispatchEvent(i);
2145
+ d.checked = !1;
2146
+ var r = new Event("force");
2147
+ d.closest("form").dispatchEvent(r);
2091
2148
  }
2092
2149
  }
2093
2150
  }
2094
- r.remove();
2151
+ o.remove();
2095
2152
  }
2096
2153
  }, !1);
2097
2154
  }
2098
2155
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2099
- class or extends HTMLElement {
2156
+ class _o extends HTMLElement {
2100
2157
  constructor() {
2101
2158
  super(), this.attachShadow({ mode: "open" });
2102
2159
  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`;
2103
- let i = this.classList.toString();
2104
- const o = document.createElement("template");
2105
- o.innerHTML = `
2160
+ let r = this.classList.toString();
2161
+ const s = document.createElement("template");
2162
+ s.innerHTML = `
2106
2163
  <style>
2107
2164
  @import "${t}";
2108
2165
  .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 */
2109
2166
 
2110
2167
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2111
2168
  </style>
2112
- <div class="applied-filters ${i}"></div>
2169
+ <div class="applied-filters ${r}"></div>
2113
2170
  <slot></slot>
2114
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
2171
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2115
2172
  }
2116
2173
  connectedCallback() {
2117
- sr(this, this.shadowRoot.querySelector(".applied-filters"));
2174
+ wo(this, this.shadowRoot.querySelector(".applied-filters"));
2118
2175
  }
2119
2176
  }
2120
- window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", or);
2121
- const nr = {
2177
+ window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", _o);
2178
+ const Ao = {
2122
2179
  name: "Header"
2123
2180
  };
2124
- function lr(e, a, t, i, o, s) {
2125
- return d(), u("iam-applied-filters", null, [
2126
- A(e.$slots, "default")
2181
+ function Lo(e, a, t, r, s, i) {
2182
+ return m(), h("iam-applied-filters", null, [
2183
+ S(e.$slots, "default")
2127
2184
  ]);
2128
2185
  }
2129
- const zr = /* @__PURE__ */ w(nr, [["render", lr]]);
2186
+ const pi = /* @__PURE__ */ A(Ao, [["render", Lo]]);
2130
2187
  /*!
2131
- * iamKey v3.9.0-beta-1
2188
+ * iamKey v4.0.0
2132
2189
  * Copyright 2022-2023 iamproperty
2133
2190
  */
2134
- function cr(e, a) {
2135
- dr(e, a);
2191
+ function So(e, a) {
2192
+ $o(e, a);
2136
2193
  }
2137
- function dr(e, a) {
2194
+ function $o(e, a) {
2138
2195
  var t;
2139
- a.addEventListener("keyup", (i) => {
2196
+ a.addEventListener("keyup", (r) => {
2140
2197
  clearTimeout(t), t = setTimeout(function() {
2141
2198
  Z(e, a.value);
2142
2199
  }, 500);
2143
- }), a.addEventListener("change", (i) => {
2200
+ }), a.addEventListener("change", (r) => {
2144
2201
  clearTimeout(t), Z(e, a.value);
2145
2202
  });
2146
2203
  }
2147
2204
  const Z = function(e, a) {
2148
- Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
2149
- let o = t.textContent.toLowerCase();
2150
- t.classList.add("d-none"), o.includes(a.toLowerCase()) && t.classList.remove("d-none");
2205
+ Array.from(e.querySelectorAll(":scope > li")).forEach((t, r) => {
2206
+ let s = t.textContent.toLowerCase();
2207
+ t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
2151
2208
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2152
2209
  };
2153
2210
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
2154
- class ur extends HTMLElement {
2211
+ let qo = class extends HTMLElement {
2155
2212
  constructor() {
2156
2213
  super(), this.attachShadow({ mode: "open" });
2157
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
2158
- i.innerHTML = `
2214
+ 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");
2215
+ r.innerHTML = `
2159
2216
  <style>
2160
2217
  @import "${t}";
2161
2218
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -2182,24 +2239,24 @@ class ur extends HTMLElement {
2182
2239
  <div class="list__wrapper">
2183
2240
  <slot></slot>
2184
2241
  </div>
2185
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2242
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
2186
2243
  }
2187
2244
  connectedCallback() {
2188
2245
  let a = this.classList.toString();
2189
- 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>'), cr(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2246
+ 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>'), So(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2190
2247
  }
2191
- }
2192
- window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ur);
2193
- const mr = {
2248
+ };
2249
+ window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", qo);
2250
+ const ko = {
2194
2251
  name: "Filter list"
2195
2252
  };
2196
- function hr(e, a, t, i, o, s) {
2197
- return d(), u("iam-filterlist", null, [
2198
- A(e.$slots, "default")
2253
+ function xo(e, a, t, r, s, i) {
2254
+ return m(), h("iam-filterlist", null, [
2255
+ S(e.$slots, "default")
2199
2256
  ]);
2200
2257
  }
2201
- const Pr = /* @__PURE__ */ w(mr, [["render", hr]]);
2202
- function fr(e) {
2258
+ const fi = /* @__PURE__ */ A(ko, [["render", xo]]);
2259
+ function Eo(e) {
2203
2260
  if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2204
2261
  let t = document.querySelector(".notification__holder");
2205
2262
  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);
@@ -2208,22 +2265,22 @@ function fr(e) {
2208
2265
  event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), X(e));
2209
2266
  }, !1), e.hasAttribute("data-timeout")) {
2210
2267
  let t = e.getAttribute("data-timeout");
2211
- var a = new pr(function() {
2268
+ var a = new To(function() {
2212
2269
  X(e);
2213
2270
  }, t);
2214
- e.addEventListener("mouseenter", (i) => {
2271
+ e.addEventListener("mouseenter", (r) => {
2215
2272
  a.pause();
2216
- }), e.addEventListener("mouseleave", (i) => {
2273
+ }), e.addEventListener("mouseleave", (r) => {
2217
2274
  a.resume();
2218
2275
  });
2219
2276
  }
2220
2277
  }
2221
- function pr(e, a) {
2222
- var t, i, o = a;
2278
+ function To(e, a) {
2279
+ var t, r, s = a;
2223
2280
  this.pause = function() {
2224
- window.clearTimeout(t), o -= /* @__PURE__ */ new Date() - i;
2281
+ window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - r;
2225
2282
  }, this.resume = function() {
2226
- i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, o);
2283
+ r = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
2227
2284
  }, this.resume();
2228
2285
  }
2229
2286
  const X = function(e) {
@@ -2234,32 +2291,32 @@ window.dataLayer.push({
2234
2291
  event: "customElementRegistered",
2235
2292
  element: "Notification"
2236
2293
  });
2237
- class br extends HTMLElement {
2294
+ class Mo extends HTMLElement {
2238
2295
  constructor() {
2239
2296
  super(), this.attachShadow({ mode: "open" });
2240
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/notification.css";`, o = this.querySelectorAll("a,button");
2241
- Array.from(o).forEach((r, l) => {
2242
- r.setAttribute("slot", "btns"), r.classList.add("link");
2243
- }), (o.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2244
- const s = document.createElement("template");
2245
- s.innerHTML = `
2297
+ 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");
2298
+ Array.from(s).forEach((o, n) => {
2299
+ o.setAttribute("slot", "btns"), o.classList.add("link");
2300
+ }), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2301
+ const i = document.createElement("template");
2302
+ i.innerHTML = `
2246
2303
  <style>
2247
2304
  @import "${t}";
2248
- ${i}
2305
+ ${r}
2249
2306
  ${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
2250
2307
  </style>
2251
2308
 
2252
2309
  <div class="notification">
2253
2310
  <div class="notification__icon"><slot name="icon"></slot></div>
2254
- <div class="notification__inner"><div class="notification__text"><slot></slot></div>${o.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2311
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2255
2312
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2256
2313
  </div>
2257
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2314
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2258
2315
  }
2259
2316
  connectedCallback() {
2260
2317
  const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2261
2318
  this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
2262
- const i = this;
2319
+ const r = this;
2263
2320
  if (!this.querySelector("i"))
2264
2321
  switch (t) {
2265
2322
  case "danger":
@@ -2274,46 +2331,497 @@ class br extends HTMLElement {
2274
2331
  default:
2275
2332
  this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2276
2333
  }
2277
- fr(i), a && a.addEventListener("click", function(o) {
2278
- X(i);
2334
+ Eo(r), a && a.addEventListener("click", function(s) {
2335
+ X(r);
2279
2336
  }, !1);
2280
2337
  }
2281
2338
  }
2282
- const yr = {
2339
+ const Ho = {
2283
2340
  name: "Notification",
2284
2341
  props: {},
2285
2342
  created() {
2286
2343
  this.$nextTick(function() {
2287
- window.customElements.get("iam-notification") || window.customElements.define("iam-notification", br);
2344
+ window.customElements.get("iam-notification") || window.customElements.define("iam-notification", Mo);
2288
2345
  });
2289
2346
  }
2290
2347
  };
2291
- function gr(e, a, t, i, o, s) {
2292
- return d(), u("iam-notification", null, [
2293
- A(e.$slots, "default")
2348
+ function Co(e, a, t, r, s, i) {
2349
+ return m(), h("iam-notification", null, [
2350
+ S(e.$slots, "default")
2351
+ ]);
2352
+ }
2353
+ const gi = /* @__PURE__ */ A(Ho, [["render", Co]]);
2354
+ /*!
2355
+ * iamKey v4.0.0
2356
+ * Copyright 2022-2023 iamproperty
2357
+ */
2358
+ const No = function(e) {
2359
+ typeof window.player < "u" && typeof window.player.pauseVideo == "function" && window.player.pauseVideo();
2360
+ var a = e.getAttribute("data-id"), t = e.getAttribute("id");
2361
+ if (typeof t > "u" || t == null) {
2362
+ var r = String.fromCharCode(65 + Math.floor(Math.random() * 26));
2363
+ t = r + Date.now(), e.setAttribute("id", t);
2364
+ }
2365
+ function s() {
2366
+ window.player = new YT.Player(t, { height: "100%", width: "100%", videoId: a, playerVars: { modestbranding: 1, playsinline: 1, rel: 0, showinfo: 0 }, events: { onReady: i, onStateChange: n } });
2367
+ }
2368
+ s();
2369
+ function i(c) {
2370
+ c.target.playVideo();
2371
+ }
2372
+ var o = !1;
2373
+ function n(c) {
2374
+ if (c.data == YT.PlayerState.PLAYING && !o) {
2375
+ var l = document.getElementById(t);
2376
+ l.classList.add("player-ready"), o = !0;
2377
+ }
2378
+ }
2379
+ }, Ro = (e) => (Array.from(e.querySelectorAll("dialog[open]")).forEach((a, t) => {
2380
+ a.closest(".dialog__wrapper") || (a.removeAttribute("open"), a.showModal(), a.focus(), tt(a));
2381
+ }), e.addEventListener("click", (a) => {
2382
+ if (a.target.tagName == "IAM-ACTIONBAR")
2383
+ return !1;
2384
+ if (a && a.target instanceof HTMLElement && a.target.closest("[data-modal]")) {
2385
+ const s = a.target.closest("[data-modal]"), i = s.hasAttribute("data-modal") ? s.getAttribute("data-modal") : s.getAttribute("data-filter"), o = document.querySelector(`dialog#${i}`);
2386
+ tt(o), o.showModal(), o.focus(), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openModal", id: i });
2387
+ }
2388
+ if (a && a.target instanceof HTMLElement && a.target.closest("button.dialog__close")) {
2389
+ const s = a.target.closest("dialog[open]");
2390
+ a.preventDefault(), s.close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((i, o) => {
2391
+ i.classList.remove("active");
2392
+ }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
2393
+ }
2394
+ if (a && a.target instanceof HTMLElement && a.target.closest('button[formmethod="dialog"]')) {
2395
+ const s = a.target.closest("dialog[open]");
2396
+ Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((i, o) => {
2397
+ i.classList.remove("active");
2398
+ }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
2399
+ }
2400
+ if (a && a.target instanceof HTMLElement && a.target.closest("dialog[open]")) {
2401
+ let s = a.target.closest("dialog[open]");
2402
+ var t = window.getComputedStyle(s);
2403
+ if (t.display === "contents" && (s = s.parentNode.closest("dialog[open]")), !s.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") || s.classList.contains("dialog--multi")) {
2404
+ const i = s.getBoundingClientRect();
2405
+ (a.clientX < i.left || a.clientX > i.right || a.clientY < i.top || a.clientY > i.bottom) && (a.target.closest('input[type="radio"]') || s.close(), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") }));
2406
+ }
2407
+ }
2408
+ if (a && a.target instanceof HTMLElement && a.target.closest(".dialog__wrapper > button")) {
2409
+ a.stopPropagation();
2410
+ let s = a.target.closest(".dialog__wrapper > button"), i = a.target.closest(".dialog__wrapper > button").parentNode, o = "openPopover", n = i.querySelector(":scope > dialog");
2411
+ if (document.querySelector("*:not([data-keep-open]) > dialog[open]") && document.querySelector("*:not([data-keep-open]) > dialog[open]") != n && document.querySelector("*:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((d, f) => {
2412
+ d.classList.remove("active");
2413
+ }), n.hasAttribute("open"))
2414
+ n.close(), o = "closePopover", n.removeAttribute("style"), s.classList.remove("active");
2415
+ else {
2416
+ n.show(), s.classList.add("active");
2417
+ var r = s.getBoundingClientRect();
2418
+ let d = r.top, f = r.left;
2419
+ if (s.closest("iam-table")) {
2420
+ let b = s.closest("iam-table").parentNode.getBoundingClientRect();
2421
+ d -= b.top, f -= b.left;
2422
+ }
2423
+ n.classList.contains("dialog--fix") && n.setAttribute("style", `position:fixed;top: ${d}px; left: ${f}px; margin: 3rem 0 0 0;`);
2424
+ }
2425
+ let c = n.getBoundingClientRect(), l = c.bottom - window.scrollY, p = window.innerHeight - window.scrollY;
2426
+ if (l > p) {
2427
+ let d = n.hasAttribute("style") ? n.getAttribute("style") + " " : "";
2428
+ n.setAttribute("style", d + "transform: translate(0, calc(-100% - 4rem))"), c = n.getBoundingClientRect(), c.top - window.scrollY < 100 && n.removeAttribute("style");
2429
+ }
2430
+ window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: o, id: s.textContent });
2431
+ }
2432
+ a && a.target instanceof HTMLElement && !a.target.closest("dialog[open]") && !a.target.closest(".dialog__wrapper > button") && (document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]") && document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((s, i) => {
2433
+ s.classList.remove("active");
2434
+ }));
2435
+ }), null), tt = (e) => {
2436
+ e.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") && !e.classList.contains("dialog--multi") && e.addEventListener("cancel", (t) => {
2437
+ t.preventDefault();
2438
+ });
2439
+ let a = e.querySelector(".youtube-embed a");
2440
+ if (a && No(a), e.classList.contains("dialog--multi") && !e.querySelector(":scope > .steps") && Do(e), !e.querySelector(":scope > .mh-lg") && !e.classList.contains("dialog--multi")) {
2441
+ e.innerHTML = `<div class="mh-lg">${e.innerHTML}</div>`;
2442
+ let t = e.querySelector(".mh-lg"), r = e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");
2443
+ if (r) {
2444
+ let s = r.previousSibling;
2445
+ t.before(r), s && r.before(s);
2446
+ }
2447
+ }
2448
+ e.querySelector(":scope > button:first-child") || e.insertAdjacentHTML("afterbegin", '<button class="dialog__close">Close</button>');
2449
+ }, Do = (e) => {
2450
+ let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]"));
2451
+ t.forEach((i, o) => {
2452
+ a += `<button data-title="${i.getAttribute("data-title")}" type="button" class="${o == 0 ? "active" : ""}" tabindex="-1">${i.getAttribute("data-title")}</button>`;
2453
+ const n = document.createElement("div");
2454
+ n.classList.add("btn--wrapper"), i.appendChild(n), o != 0 && (n.innerHTML += `<button data-title="${t[o - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), o != t.length - 1 && (n.innerHTML += `<button data-title="${t[o + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), o == t.length - 1 && (n.innerHTML += `<button data-title="${t[o].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`);
2455
+ }), e.insertAdjacentHTML("afterbegin", `<div class="steps bg-primary">${a}</div>`);
2456
+ let r = Array.from(e.querySelectorAll("fieldset.was-validated"));
2457
+ for (let i = 0; i < r.length; i++) {
2458
+ let o = r[i], n = o.getAttribute("data-title");
2459
+ if (o.querySelector(".is-invalid")) {
2460
+ Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((c, l) => {
2461
+ c.classList.add("active");
2462
+ });
2463
+ break;
2464
+ } else
2465
+ Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((c, l) => {
2466
+ c.classList.add("valid");
2467
+ });
2468
+ }
2469
+ e.addEventListener("invalid", function() {
2470
+ return function(i) {
2471
+ i.preventDefault();
2472
+ };
2473
+ }(), !0);
2474
+ function s(i) {
2475
+ const o = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), n = o.getAttribute("data-title");
2476
+ let c = !0;
2477
+ if (o.classList.add("was-validated"), Array.from(o.querySelectorAll("input")).forEach((d, f) => {
2478
+ d.checkValidity() || (c = !1);
2479
+ }), c ? Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((d, f) => {
2480
+ d.classList.add("valid");
2481
+ }) : Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((d, f) => {
2482
+ d.classList.remove("valid");
2483
+ }), c || !i.hasAttribute("data-next")) {
2484
+ const d = e.querySelector(`fieldset[data-title="${i.getAttribute("data-title")}"]`), f = e.querySelector(`.steps button[data-title="${i.getAttribute("data-title")}"]`);
2485
+ Array.from(e.querySelectorAll("button")).forEach((b, u) => {
2486
+ b.classList.remove("active");
2487
+ }), Array.from(e.querySelectorAll("fieldset")).forEach((b, u) => {
2488
+ b.classList.remove("active");
2489
+ }), f.classList.add("active"), d.classList.add("active");
2490
+ }
2491
+ let l = Array.from(e.querySelectorAll("fieldset")).length, p = Array.from(e.querySelectorAll("fieldset.valid")).length;
2492
+ e.style.setProperty("--progress", `${p / (l - 1) * 100}%`);
2493
+ }
2494
+ e.addEventListener("keydown", (i) => {
2495
+ if (i && i.target instanceof HTMLElement && i.target.closest("button")) {
2496
+ const o = i.target.closest("button");
2497
+ i.keyCode == 13 && (i.preventDefault(), s(o));
2498
+ }
2499
+ i && i.target instanceof HTMLElement && i.target.closest("input") && i.target.closest("input").classList.remove("is-invalid");
2500
+ }), e.addEventListener("click", (i) => {
2501
+ if (i && i.target instanceof HTMLElement && i.target.closest("button[data-title]")) {
2502
+ const o = i.target.closest("button[data-title]");
2503
+ s(o);
2504
+ }
2505
+ return null;
2506
+ });
2507
+ };
2508
+ window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "action bar" });
2509
+ function et(e, a) {
2510
+ e && a == "all" ? (e.querySelector("input").indeterminate = !1, e.querySelector("input").checked = !0, e.querySelector("label").textContent = "Select all") : e && a == 0 ? (e.querySelector("input").indeterminate = !1, e.querySelector("input").checked = !1, e.querySelector("label").textContent = "Select all") : e && a ? (e.querySelector("input").indeterminate = !0, e.querySelector("input").checked = !1, e.querySelector("label").textContent = `${a} item${a > 1 ? "s" : ""} selected`) : e && (e.querySelector("input").checked = !1, e.querySelector("input").indeterminate = !1, e.querySelector("label").textContent = "Select all");
2511
+ }
2512
+ class Po extends HTMLElement {
2513
+ constructor() {
2514
+ super(), this.attachShadow({ mode: "open" });
2515
+ 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");
2516
+ r.innerHTML = `
2517
+ <style>
2518
+ @import "${t}";
2519
+ .actionbar__wrapper{position:relative;z-index:10;height:4.25rem;container-type:inline-size}.views,.selectall{position:absolute !important;top:50%;left:1.5rem;transform:translate(0, -50%);z-index:10}@media screen and (min-width: 36em){.views,.selectall{left:2rem}}.views .btn-action:not(:last-child),.selectall .btn-action:not(:last-child){margin-right:0.25rem !important}.selectall{width:2.5rem;overflow:hidden}.selectall label{height:2.5rem}@media screen and (min-width: 36em){.selectall{width:auto;overflow:visible}}.actionbar [data-search]{display:none}:host([data-search]) .actionbar [data-search]{display:block;margin-left:1rem !important}:is(.actionbar,.actionbar--selected,.actionbar--search){border-top-left-radius:0.625rem;border-top-right-radius:0.625rem;padding:0 1.5rem;flex-wrap:nowrap;justify-content:flex-end;align-items:center;height:4.25rem;position:absolute;inset:0}@container (width > 23.4375em){:is(.actionbar,.actionbar--selected,.actionbar--search){padding:0 2rem}}.actionbar{display:flex}.actionbar--selected{background-color:#e6eaec;display:flex;opacity:0;pointer-events:none}.actionbar--search{background-color:#e6eaec;display:flex;z-index:2;position:relative;opacity:0;pointer-events:none}.selectall:has(input:checked)~.actionbar,.selectall:has(input:indeterminate)~.actionbar{opacity:0;pointer-events:none}.selectall:has(input:checked)~.actionbar--selected,.selectall:has(input:indeterminate)~.actionbar--selected{opacity:1;pointer-events:all}.actionbar--search.show{opacity:1;pointer-events:all}.actionbar__wrapper:has(.actionbar--search.show)>*:not(.actionbar--search.show){opacity:0;pointer-events:none}::slotted(*:not([slot=overflow])){margin-top:0 !important;margin-bottom:0 !important;margin-left:1rem !important;margin-right:0 !important}::slotted(.btn:not(.btn-action)){order:2}::slotted([data-single]){pointer-events:none;opacity:.5}:host([data-selected="1"]) ::slotted([data-single]){pointer-events:all;opacity:1}::slotted(hr){height:2rem;color:#9d9d9d !important;width:1px;display:none}@container (width > 48em){::slotted(hr){display:block}}.safe-area{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;width:13.125rem;overflow:visible;position:relative}@container (width > 23.4375em){.safe-area{width:28.125rem}}@container (width > 48em){.safe-area{width:46.875rem}}.safe-area .body{display:contents}:host([data-switchviews]) .safe-area{width:9rem}::slotted(.btn-compact[slot=selected-overflow]),::slotted(.btn-compact[slot=overflow]){max-width:none !important;text-indent:0 !important;width:auto !important;text-align:left !important;padding-left:0 !important;background:none !important;border:none !important}::slotted(.btn-compact[slot=selected-overflow]):before,::slotted(.btn-compact[slot=overflow]):before{position:static !important;line-height:inherit !important}::slotted(.dialog__wrapper[slot=overflow]) dialog[open]{background:red}.dialog__wrapper.dialog-overflow{margin-left:.5rem;margin-right:-0.5rem}.actionbar--search .btn{margin-left:-0.75rem !important;margin-right:auto !important}.search-wrapper{width:calc(100% - 3.25rem);max-width:21.875rem !important;margin:0 !important}@container (width > 48em){.search-wrapper{max-width:28.125rem !important}}.search-wrapper input{padding-top:0.5rem;padding-bottom:0.5rem;min-height:2.5rem !important;max-height:2.5rem !important}.search-wrapper :is(.prefix,.suffix){padding:0.5rem !important;min-height:2.5rem !important;max-height:2.5rem !important;min-width:2.5rem !important;max-width:2.5rem !important;line-height:1.5rem !important}/*# sourceMappingURL=assets/css/components/actionbar.css.map */
2520
+
2521
+ ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2522
+ </style>
2523
+ <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
2524
+ <div class="actionbar__wrapper">
2525
+ <div class="actionbar">
2526
+ <div class="safe-area">
2527
+ <slot></slot>
2528
+ <div class="body">
2529
+ <div class="dialog__wrapper dialog__wrapper--right dialog-overflow d-none show">
2530
+ <button class="btn btn-secondary btn-compact fa-ellipsis-vertical m-0">More actions</button>
2531
+ <dialog class="dialog--list">
2532
+ <slot name="overflow"></slot>
2533
+ <slot name="menu"></slot>
2534
+ </dialog>
2535
+ </div>
2536
+ <button class="btn btn-secondary btn-compact btn-sm fa-search m-0" data-search="">Search</button>
2537
+ </div>
2538
+ </div>
2539
+ </div>
2540
+ <div class="actionbar--selected">
2541
+ <div class="safe-area">
2542
+ <slot name="selected"></slot>
2543
+ <div class="body">
2544
+ <div class="dialog__wrapper dialog__wrapper--right dialog-overflow d-none show">
2545
+ <button class="btn btn-secondary btn-compact fa-ellipsis-vertical m-0">More actions</button>
2546
+ <dialog class="dialog--list">
2547
+ <slot name="selected-overflow"></slot>
2548
+ </dialog>
2549
+ </div>
2550
+ </div>
2551
+ </div>
2552
+ </div>
2553
+ <div class="actionbar--search">
2554
+ <button data-search class="btn btn-compact fa-xmark-large btn-secondary m-0" >Close</button>
2555
+
2556
+ <div class="search-wrapper">
2557
+ <label for="search" class="visually-hidden">Input field label</label>
2558
+ <button class="suffix"><i class="fa-regular fa-search"></i></button>
2559
+ <input type="text" id="search" name="search" required="">
2560
+ </div>
2561
+
2562
+ </div>
2563
+ </div>
2564
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
2565
+ }
2566
+ connectedCallback() {
2567
+ let a = this;
2568
+ const t = this.shadowRoot.querySelector(".actionbar__wrapper");
2569
+ if (this.hasAttribute("data-selectall")) {
2570
+ t.insertAdjacentHTML("afterbegin", '<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');
2571
+ let i = this.shadowRoot.querySelector(".selectall");
2572
+ this.hasAttribute("data-selected") && et(i, this.getAttribute("data-selected")), i.addEventListener("change", (n) => {
2573
+ n && n.target instanceof HTMLElement && n.target.closest("input") && (n.target.closest("input").checked ? this.setAttribute("data-selected", "all") : this.setAttribute("data-selected", 0));
2574
+ });
2575
+ let o = this.querySelector("button[data-cancel]");
2576
+ o && o.addEventListener("click", (n) => {
2577
+ this.setAttribute("data-selected", 0);
2578
+ });
2579
+ }
2580
+ if (this.hasAttribute("data-switchviews")) {
2581
+ let i = "";
2582
+ this.getAttribute("data-switchviews").split(",").forEach((o, n) => {
2583
+ let c = "fa-grid-2";
2584
+ o == "list" ? c = "fa-grip-lines" : o == "small" && (c = "fa-bars"), i += `<button class="btn btn-action btn-compact mb-0 fa-regular ${c}">${o}</button>`;
2585
+ }), t.insertAdjacentHTML("afterbegin", `<div class="views m-0">${i}</div>`), this.shadowRoot.querySelector(".views").addEventListener("click", (o) => {
2586
+ if (o && o.target instanceof HTMLElement && o.target.closest(".btn-action")) {
2587
+ let n = o.target.closest(".btn-action");
2588
+ this.setAttribute("data-view", n.textContent);
2589
+ const c = new CustomEvent("switch-view", { detail: { view: n.textContent } });
2590
+ this.dispatchEvent(c);
2591
+ }
2592
+ });
2593
+ }
2594
+ const r = this.shadowRoot.querySelector(".actionbar--search");
2595
+ this.hasAttribute("data-search") && this.getAttribute("data-search") == "show" && r.classList.add("show"), this.shadowRoot.addEventListener("click", (i) => {
2596
+ i && i.target instanceof HTMLElement && i.target.closest("button[data-search]") && r.classList.toggle("show");
2597
+ }), r.addEventListener("keyup", (i) => {
2598
+ const o = new CustomEvent("search-keyup", { detail: { search: r.querySelector("input").value } });
2599
+ this.dispatchEvent(o);
2600
+ }), r.addEventListener("change", (i) => {
2601
+ const o = new CustomEvent("search-change", { detail: { search: r.querySelector("input").value } });
2602
+ this.dispatchEvent(o);
2603
+ }), r.addEventListener("click", (i) => {
2604
+ if (i && i.target instanceof HTMLElement && i.target.closest("button.suffix")) {
2605
+ const o = new CustomEvent("search-submit", { detail: { search: r.querySelector("input").value } });
2606
+ this.dispatchEvent(o);
2607
+ }
2608
+ }), Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((i, o) => {
2609
+ Ro(i);
2610
+ });
2611
+ function s() {
2612
+ const i = t.scrollWidth, o = document.documentElement.scrollWidth;
2613
+ let n = 750, c = 16, l = a.hasAttribute("data-switchviews") ? 144 : 210, p = 1;
2614
+ o >= 992 && o <= 1280 ? p = o / 1280 : o >= 576 && o <= 1280 ? p = o / 768 : o < 576 && (p = o / 375), i >= 992 && i <= 1280 ? n = n * p : i >= 576 && i <= 1280 ? n = 450 * p : i < 576 && (n = l * p), c = c * p, i < 576 ? Array.from(a.querySelectorAll(":scope > .btn:not(.js-updated)")).forEach((d, f) => {
2615
+ d.className = d.className.replace(" btn-compact", " _btn-compact"), d.classList.add("btn-compact"), d.classList.add("js-updated");
2616
+ }) : Array.from(a.querySelectorAll(":scope > .btn.js-updated")).forEach((d, f) => {
2617
+ d.classList.remove("btn-compact"), d.classList.remove("js-updated"), d.className = d.className.replace(" _btn-compact", " btn-compact");
2618
+ }), Array.from(a.querySelectorAll("[slot]")).forEach((d, f) => {
2619
+ d.getAttribute("slot") == "overflow" && d.removeAttribute("slot"), d.getAttribute("slot") == "selected-overflow" && d.setAttribute("slot", "selected");
2620
+ }), Array.from(a.querySelectorAll(".show")).forEach((d, f) => {
2621
+ d.classList.remove("show");
2622
+ }), Array.from(a.shadowRoot.querySelectorAll(".safe-area")).forEach((d, f) => {
2623
+ let b = "overflow";
2624
+ d.querySelector("slot").hasAttribute("name") && d.querySelector("slot").getAttribute("name") == "selected" && (b = "selected-overflow");
2625
+ let u = d.querySelector("slot").assignedElements(), w = 44 * p;
2626
+ a.hasAttribute("data-search") && (w += 44 * p);
2627
+ for (let y = 0; y < u.length; y++)
2628
+ !u[y].classList.contains("btn-action") && !u[y].classList.contains("dialog__wrapper") && (w += u[y].offsetWidth, w += c);
2629
+ for (let y = 0; y < u.length; y++)
2630
+ if (u[y].classList.contains("dialog__wrapper") && (u[y].classList.add("show"), w += u[y].offsetWidth, w += c / 2, w - c / 2 > n)) {
2631
+ u[y].classList.remove("show");
2632
+ break;
2633
+ }
2634
+ for (let y = 0; y < u.length; y++)
2635
+ if (u[y].classList.contains("btn-action") && (u[y].classList.add("show"), w += u[y].offsetWidth, w += c / 2, w - c / 2 > n)) {
2636
+ u[y].classList.remove("show");
2637
+ break;
2638
+ }
2639
+ let q = d.querySelector(".dialog-overflow");
2640
+ q && q.classList.add("d-none");
2641
+ for (let y = 0; y < u.length; y++)
2642
+ (u[y].classList.contains("btn-action") || u[y].classList.contains("dialog__wrapper")) && (u[y].classList.contains("show") || (u[y].setAttribute("slot", b), q && q.classList.remove("d-none")));
2643
+ });
2644
+ }
2645
+ s(), new ResizeObserver(s).observe(t);
2646
+ }
2647
+ static get observedAttributes() {
2648
+ return ["data-selected"];
2649
+ }
2650
+ attributeChangedCallback(a, t, r) {
2651
+ switch (a) {
2652
+ case "data-selected": {
2653
+ let s = this.shadowRoot.querySelector(".selectall");
2654
+ s && et(s, r);
2655
+ const i = new CustomEvent("selected", { detail: { selected: r } });
2656
+ this.dispatchEvent(i);
2657
+ break;
2658
+ }
2659
+ }
2660
+ }
2661
+ }
2662
+ window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", Po);
2663
+ const jo = {
2664
+ name: "Actionbar",
2665
+ props: {},
2666
+ mounted() {
2667
+ }
2668
+ };
2669
+ function Io(e, a, t, r, s, i) {
2670
+ return m(), h("iam-actionbar", null, [
2671
+ S(e.$slots, "default")
2672
+ ]);
2673
+ }
2674
+ const yi = /* @__PURE__ */ A(jo, [["render", Io]]);
2675
+ /*!
2676
+ * iamKey v4.0.0
2677
+ * Copyright 2022-2023 iamproperty
2678
+ */
2679
+ const zo = function(e, a) {
2680
+ if (!e.getAttribute("data-pages"))
2681
+ return !1;
2682
+ e.getAttribute("data-page") || e.setAttribute("data-page", 1);
2683
+ 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");
2684
+ if (r <= 1)
2685
+ return a.innerHTML = "", !1;
2686
+ let n = "";
2687
+ for (let c = 1; c <= r; c++)
2688
+ c == t ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${c}</span></li>` : n += `<li class="page-item"><a href="?page=${c}" class="page-link" data-page="${c}">${c}</a></li>`;
2689
+ return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
2690
+ ${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>`}
2691
+ ${n}
2692
+ ${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>`}
2693
+ </ul>`, a.innerHTML += `<div class="d-sm-none text-center">
2694
+ <span class="d-block pb-2">You've viewed ${i} of ${s} results</span>
2695
+ <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>
2696
+ </div>`, !0;
2697
+ };
2698
+ class Bo extends HTMLElement {
2699
+ constructor() {
2700
+ super(), this.attachShadow({ mode: "open" });
2701
+ 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");
2702
+ r.innerHTML = `
2703
+ <style>
2704
+ @import "${t}";
2705
+
2706
+ ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2707
+ </style>
2708
+ <div class="pagination__wrapper d-none">
2709
+ </div>
2710
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
2711
+ }
2712
+ connectedCallback() {
2713
+ const a = new URLSearchParams(window.location.search);
2714
+ this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show"))), zo(this, this.shadowRoot.querySelector(".pagination__wrapper")), this.shadowRoot.querySelector(".pagination__wrapper").classList.remove("d-none");
2715
+ }
2716
+ }
2717
+ const Fo = {
2718
+ name: "Pagination",
2719
+ props: {},
2720
+ computed: {},
2721
+ created() {
2722
+ this.$nextTick(function() {
2723
+ window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", Bo);
2724
+ });
2725
+ },
2726
+ updated() {
2727
+ }
2728
+ };
2729
+ function Oo(e, a, t, r, s, i) {
2730
+ return m(), h("iam-pagination");
2731
+ }
2732
+ const vi = /* @__PURE__ */ A(Fo, [["render", Oo]]);
2733
+ /*!
2734
+ * iamKey v4.0.0
2735
+ * Copyright 2022-2023 iamproperty
2736
+ */
2737
+ window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
2738
+ class Vo extends HTMLElement {
2739
+ constructor() {
2740
+ super(), this.attachShadow({ mode: "open" });
2741
+ 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");
2742
+ r.innerHTML = `
2743
+ <style class="styles">
2744
+ @import "${t}";
2745
+ :host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}.side-menu:is(.open) .btn[class*=fa-]:before{content:"" !important}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}.side-menu:is(.open) .btn{opacity:0;transition:opacity .5s}.side-menu:is(.open) .btn:is(:hover,:focus,:active){opacity:1}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,.selected)){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu].selected){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu].selected):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu].selected):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
2746
+
2747
+ ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2748
+ </style>
2749
+ <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
2750
+ <div class="container">
2751
+
2752
+ <div class="side-menu">
2753
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm">Open or close Collapsible menu</button>
2754
+ <div class="side-menu-content closed">
2755
+ <slot name="menu"></slot>
2756
+ </div>
2757
+ </div>
2758
+
2759
+ <div class="main-content">
2760
+ <slot></slot>
2761
+ </div>
2762
+
2763
+ </div>
2764
+ `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
2765
+ }
2766
+ connectedCallback() {
2767
+ const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), r = this.shadowRoot.querySelector(".main-content"), s = this.shadowRoot.querySelector(".side-menu > .btn");
2768
+ this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), r.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), s.addEventListener("click", (i) => {
2769
+ a.classList.contains("open") ? (a.classList.remove("open"), setTimeout(function() {
2770
+ t.classList.add("closed");
2771
+ }, 1e3), a.classList.add("pe-none"), setTimeout(function() {
2772
+ a.classList.remove("pe-none");
2773
+ }, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
2774
+ a.classList.add("open");
2775
+ }, 100));
2776
+ }), a.addEventListener("mouseenter", (i) => {
2777
+ window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
2778
+ }), a.addEventListener("mousemove", (i) => {
2779
+ window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
2780
+ }), a.addEventListener("mouseleave", (i) => {
2781
+ window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
2782
+ t.classList.add("closed");
2783
+ }, 1e3));
2784
+ });
2785
+ }
2786
+ }
2787
+ window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Vo);
2788
+ const Wo = {
2789
+ name: "CollapsibleSideMenu",
2790
+ props: {},
2791
+ mounted() {
2792
+ }
2793
+ };
2794
+ function Uo(e, a, t, r, s, i) {
2795
+ return m(), h("iam-collapsible-side", null, [
2796
+ S(e.$slots, "default")
2294
2797
  ]);
2295
2798
  }
2296
- const jr = /* @__PURE__ */ w(yr, [["render", gr]]);
2799
+ const wi = /* @__PURE__ */ A(Wo, [["render", Uo]]);
2297
2800
  export {
2298
- Sr as Accordion,
2299
- kr as AccordionItem,
2300
- zr as AppliedFilters,
2301
- qr as Banner,
2302
- Ce as Card,
2303
- $r as Carousel,
2304
- wr as FileUpload,
2305
- Pr as Filterlist,
2306
- xr as Header,
2307
- ot as Input,
2308
- Ar as Logo,
2309
- Hr as Nav,
2310
- Rr as NoteFeed,
2311
- jr as Notification,
2312
- Tr as PropertySearchbar,
2313
- Cr as Step,
2314
- Mr as Stepper,
2315
- Nr as Tab,
2316
- st as Table,
2317
- Dr as Tabs,
2318
- Er as Testimonial
2801
+ Qo as Accordion,
2802
+ Zo as AccordionItem,
2803
+ yi as Actionbar,
2804
+ pi as AppliedFilters,
2805
+ ti as Banner,
2806
+ Re as Card,
2807
+ ei as Carousel,
2808
+ wi as CollapsibleSideMenu,
2809
+ Xo as FileUpload,
2810
+ fi as Filterlist,
2811
+ ai as Header,
2812
+ lt as Input,
2813
+ Ko as Logo,
2814
+ si as Nav,
2815
+ hi as NoteFeed,
2816
+ gi as Notification,
2817
+ vi as Pagination,
2818
+ ri as PropertySearchbar,
2819
+ li as Snapshot,
2820
+ ci as Step,
2821
+ ni as Stepper,
2822
+ mi as Tab,
2823
+ nt as Table,
2824
+ ui as Tabs,
2825
+ oi as Testimonial,
2826
+ ii as Timeline
2319
2827
  };