@iamproperty/components 3.7.8 → 3.7.9-beta-2

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 (34) hide show
  1. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  2. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  3. package/assets/js/components/card/card.component.js +2 -1
  4. package/assets/js/components/card/card.component.min.js +2 -2
  5. package/assets/js/components/card/card.component.min.js.map +1 -1
  6. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  7. package/assets/js/components/header/header.component.min.js +1 -1
  8. package/assets/js/components/notification/notification.component.min.js +1 -1
  9. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  10. package/assets/js/components/table/table.component.min.js +10 -10
  11. package/assets/js/components/table/table.component.min.js.map +1 -1
  12. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  13. package/assets/js/dynamic.min.js +1 -1
  14. package/assets/js/modules/table.js +49 -31
  15. package/assets/js/scripts.bundle.js +13 -13
  16. package/assets/js/scripts.bundle.js.map +1 -1
  17. package/assets/js/scripts.bundle.min.js +2 -2
  18. package/assets/js/scripts.bundle.min.js.map +1 -1
  19. package/assets/ts/components/accordion/README.md +15 -0
  20. package/assets/ts/components/applied-filters/README.md +15 -0
  21. package/assets/ts/components/card/README.md +15 -0
  22. package/assets/ts/components/card/card.component.ts +2 -2
  23. package/assets/ts/components/fileupload/README.md +15 -0
  24. package/assets/ts/components/filterlist/README.md +15 -0
  25. package/assets/ts/components/header/README.md +16 -3
  26. package/assets/ts/components/notification/README.md +15 -0
  27. package/assets/ts/components/pagination/README.md +15 -0
  28. package/assets/ts/components/table/README.md +15 -0
  29. package/assets/ts/components/tabs/README.md +15 -0
  30. package/assets/ts/modules/table.ts +67 -44
  31. package/dist/components.es.js +1035 -1097
  32. package/dist/components.umd.js +43 -43
  33. package/package.json +1 -1
  34. package/src/components/Card/Card.vue +8 -4
@@ -1,10 +1,10 @@
1
- import { openBlock as u, createElementBlock as m, normalizeClass as k, createElementVNode as d, toDisplayString as q, createCommentVNode as g, Fragment as T, renderList as M, renderSlot as v, withDirectives as R, mergeProps as H, vModelDynamic as U, vModelText as ct, vModelSelect as dt, createTextVNode as ut, resolveComponent as z, createVNode as $, withModifiers as mt } from "vue";
2
- const A = (e, a) => {
3
- const t = e.__vccOpts || e;
1
+ import { openBlock as u, createElementBlock as m, normalizeClass as L, createElementVNode as d, toDisplayString as $, createCommentVNode as g, Fragment as T, renderList as M, renderSlot as v, withDirectives as N, mergeProps as H, vModelDynamic as W, vModelText as ue, vModelSelect as me, createTextVNode as he, resolveComponent as R, createVNode as q, withModifiers as fe } from "vue";
2
+ const S = (t, a) => {
3
+ const e = t.__vccOpts || t;
4
4
  for (const [r, i] of a)
5
- t[r] = i;
6
- return t;
7
- }, ht = {
5
+ e[r] = i;
6
+ return e;
7
+ }, be = {
8
8
  name: "Logo",
9
9
  props: {
10
10
  id: {
@@ -29,412 +29,421 @@ const A = (e, a) => {
29
29
  return "brand brand--" + this.id;
30
30
  }
31
31
  }
32
- }, ft = ["xlink:href"], bt = ["innerHTML"];
33
- function pt(e, a, t, r, i, s) {
32
+ }, pe = ["xlink:href"], ye = ["innerHTML"];
33
+ function ge(t, a, e, r, i, o) {
34
34
  return u(), m("div", {
35
- class: k(s.className)
35
+ class: L(o.className)
36
36
  }, [
37
37
  (u(), m("svg", null, [
38
- d("title", null, "iam " + q(t.id), 1),
38
+ d("title", null, "iam " + $(e.id), 1),
39
39
  d("use", {
40
- "xlink:href": t.path + s.src
41
- }, null, 8, ft)
40
+ "xlink:href": e.path + o.src
41
+ }, null, 8, pe)
42
42
  ])),
43
- t.desc ? (u(), m("span", {
43
+ e.desc ? (u(), m("span", {
44
44
  key: 0,
45
- innerHTML: t.desc
46
- }, null, 8, bt)) : g("", !0)
45
+ innerHTML: e.desc
46
+ }, null, 8, ye)) : g("", !0)
47
47
  ], 2);
48
48
  }
49
- const yt = /* @__PURE__ */ A(ht, [["render", pt]]);
49
+ const _e = /* @__PURE__ */ S(be, [["render", ge]]);
50
50
  /*!
51
- * iamKey v3.7.8
51
+ * iamKey v3.7.9-beta-2
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
- const gt = function(e) {
55
- return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
- }, vt = (e, a) => String(e).padStart(a, "0"), _t = (e) => e.charAt(0).toUpperCase() + e.slice(1), F = function(e, a) {
57
- if (!e.getAttribute("data-pages"))
54
+ const ve = function(t) {
55
+ return typeof t != "string" ? !1 : !isNaN(t) && !isNaN(parseFloat(t));
56
+ }, we = (t, a) => String(t).padStart(a, "0"), Ae = (t) => t.charAt(0).toUpperCase() + t.slice(1), F = function(t, a) {
57
+ if (!t.getAttribute("data-pages"))
58
58
  return !1;
59
- e.getAttribute("data-page") || e.setAttribute("data-page", 1);
60
- let t = e.getAttribute("data-page"), r = e.getAttribute("data-pages"), i = e.getAttribute("data-total"), s = e.getAttribute("data-show"), o = e.getAttribute("data-increment");
59
+ t.getAttribute("data-page") || t.setAttribute("data-page", 1);
60
+ let e = t.getAttribute("data-page"), r = t.getAttribute("data-pages"), i = t.getAttribute("data-total"), o = t.getAttribute("data-show"), s = t.getAttribute("data-increment");
61
61
  if (r <= 1)
62
62
  return a.innerHTML = "", !1;
63
63
  let l = "";
64
- for (let n = 1; n <= r; n++)
65
- n == t ? l += `<li class="page-item active" aria-current="page"><span class="page-link">${n}</span></li>` : l += `<li class="page-item"><a href="?page=${n}" class="page-link" data-page="${n}">${n}</a></li>`;
64
+ for (let c = 1; c <= r; c++)
65
+ c == e ? 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>`;
66
66
  return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
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>`}
67
+ ${e == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(e) - 1}" class="page-link" data-page="${parseInt(e) - 1}">Previous</a></li>`}
68
68
  ${l}
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>`}
69
+ ${e == r ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(e) + 1}" class="page-link" data-page="${parseInt(e) + 1}">Next</a></li>`}
70
70
  </ul>`, a.innerHTML += `<div class="d-sm-none text-center">
71
- <span class="d-block pb-2">You've viewed ${s} of ${i} results</span>
72
- <a href="?show=${parseInt(s) + parseInt(o)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(s) + parseInt(o)}">Load more results</a>
71
+ <span class="d-block pb-2">You've viewed ${o} of ${i} results</span>
72
+ <a href="?show=${parseInt(o) + parseInt(s)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(o) + parseInt(s)}">Load more results</a>
73
73
  </div>`, !0;
74
74
  };
75
- var wt = function(e, a, t, r) {
76
- function i(s) {
77
- return s instanceof t ? s : new t(function(o) {
78
- o(s);
75
+ var Se = function(t, a, e, r) {
76
+ function i(o) {
77
+ return o instanceof e ? o : new e(function(s) {
78
+ s(o);
79
79
  });
80
80
  }
81
- return new (t || (t = Promise))(function(s, o) {
82
- function l(h) {
81
+ return new (e || (e = Promise))(function(o, s) {
82
+ function l(f) {
83
83
  try {
84
- c(r.next(h));
85
- } catch (f) {
86
- o(f);
84
+ n(r.next(f));
85
+ } catch (p) {
86
+ s(p);
87
87
  }
88
88
  }
89
- function n(h) {
89
+ function c(f) {
90
90
  try {
91
- c(r.throw(h));
92
- } catch (f) {
93
- o(f);
91
+ n(r.throw(f));
92
+ } catch (p) {
93
+ s(p);
94
94
  }
95
95
  }
96
- function c(h) {
97
- h.done ? s(h.value) : i(h.value).then(l, n);
96
+ function n(f) {
97
+ f.done ? o(f.value) : i(f.value).then(l, c);
98
98
  }
99
- c((r = r.apply(e, a || [])).next());
99
+ n((r = r.apply(t, a || [])).next());
100
100
  });
101
101
  };
102
- const Q = (e) => {
103
- const a = Array.from(e.querySelectorAll("thead th"));
104
- Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
105
- const i = 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
- i.forEach((o, l) => {
107
- const n = a[l];
108
- if (typeof n < "u") {
109
- let c = document.createElement("div");
110
- c.innerHTML = n.innerHTML;
111
- let h = c.textContent || c.innerText || "";
112
- o.setAttribute("data-label", h), n.hasAttribute("data-td-class") && o.setAttribute("class", n.getAttribute("data-td-class")), n.hasAttribute("data-format") && (o.setAttribute("data-format", n.getAttribute("data-format")), o.innerHTML = G(n.getAttribute("data-format"), o.textContent.trim())), s.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
102
+ const ee = (t) => {
103
+ const a = Array.from(t.querySelectorAll("thead th"));
104
+ Array.from(t.querySelectorAll("tbody tr")).forEach((e, r) => {
105
+ const i = Array.from(e.querySelectorAll("th, td")), o = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
106
+ i.forEach((s, l) => {
107
+ const c = a[l];
108
+ if (typeof c < "u") {
109
+ let n = document.createElement("div");
110
+ n.innerHTML = c.innerHTML;
111
+ let f = n.textContent || n.innerText || "";
112
+ s.setAttribute("data-label", f), c.hasAttribute("data-td-class") && s.setAttribute("class", c.getAttribute("data-td-class")), c.hasAttribute("data-format") && (s.setAttribute("data-format", c.getAttribute("data-format")), s.innerHTML = K(c.getAttribute("data-format"), s.textContent.trim())), o.includes(s.textContent.trim().toLowerCase()) && s.setAttribute("data-content", s.textContent.trim().toLowerCase());
113
113
  }
114
114
  });
115
115
  });
116
- }, At = (e) => {
116
+ }, Le = (t) => {
117
117
  let a = 0;
118
- return Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
119
- let i = window.getComputedStyle(document.querySelector("html")), s = t.querySelector(":scope > *:last-child > *:first-child");
120
- if (s) {
121
- s.classList.add("text-nowrap");
122
- let o = s.offsetWidth / parseFloat(i.fontSize);
123
- o += 1.7, a = a > o ? a : o;
118
+ return Array.from(t.querySelectorAll("tbody tr")).forEach((e, r) => {
119
+ let i = window.getComputedStyle(document.querySelector("html")), o = e.querySelector(":scope > *:last-child > *:first-child");
120
+ if (o) {
121
+ o.classList.add("text-nowrap");
122
+ let s = o.offsetWidth / parseFloat(i.fontSize);
123
+ s += 1.7, a = a > s ? a : s;
124
124
  }
125
125
  }), a;
126
- }, kt = (e) => {
127
- if (e.closest(".table--fullwidth") || e.querySelectorAll("thead tr th").length < 4)
126
+ }, ke = (t) => {
127
+ if (t.closest(".table--fullwidth") || t.querySelectorAll("thead tr th").length < 4)
128
128
  return !1;
129
- Array.from(e.querySelectorAll("tbody tr")).forEach((a, t) => {
129
+ Array.from(t.querySelectorAll("tbody tr")).forEach((a, e) => {
130
130
  let r = a.querySelector(":scope > :is(td,th):first-child"), i = r.textContent;
131
131
  if (i != "")
132
132
  r.innerHTML = `<span class="td__content">${i}</span><button type="button" class="d-none">${i}</button>`;
133
133
  else {
134
- let s = a.querySelector(":scope > :is(td,th):nth-child(2)"), o = s.textContent;
135
- s.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
134
+ let o = a.querySelector(":scope > :is(td,th):nth-child(2)"), s = o.textContent;
135
+ o.innerHTML = `<span class="td__content">${s}</span><button type="button" class="d-none">${s}</button>`;
136
136
  }
137
137
  });
138
- }, Lt = (e) => {
139
- e.addEventListener("click", (a) => {
138
+ }, qe = (t) => {
139
+ t.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"), r = t.parentNode.closest("tr");
142
- r.getAttribute("data-view") == "full" ? r.setAttribute("data-view", "default") : r.setAttribute("data-view", "full"), t.blur();
141
+ let e = a.target.closest("tr > :is(td,th):first-child button"), r = e.parentNode.closest("tr");
142
+ r.getAttribute("data-view") == "full" ? r.setAttribute("data-view", "default") : r.setAttribute("data-view", "full"), e.blur();
143
143
  }
144
144
  });
145
- }, tt = (e, a) => {
146
- let t = a.querySelector("[data-search]");
147
- if (!t)
145
+ }, te = (t, a) => {
146
+ let e = a.querySelector("[data-search]");
147
+ if (!e)
148
148
  return !1;
149
- const r = t.getAttribute("id"), i = t.getAttribute("data-search").split(",");
150
- let s = t.parentNode, o = {};
151
- i.forEach((l, n) => {
152
- Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((c, h) => {
153
- c.querySelector(".td__content") ? o[c.querySelector(".td__content").textContent] = c.querySelector(".td__content").textContent : o[c.textContent] = c.textContent;
149
+ const r = e.getAttribute("id"), i = e.getAttribute("data-search").split(",");
150
+ let o = e.parentNode, s = {};
151
+ i.forEach((l, c) => {
152
+ Array.from(t.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((n, f) => {
153
+ n.querySelector(".td__content") ? s[n.querySelector(".td__content").textContent] = n.querySelector(".td__content").textContent : s[n.textContent] = n.textContent;
154
154
  });
155
- }), t.setAttribute("list", `${r}_list`), t.setAttribute("autocomplete", "off"), s.querySelector("datalist") || (s.innerHTML += `<datalist id="${r}_list"></datalist>`), s.querySelector("datalist").innerHTML = `${Object.keys(o).map((l) => `<option value="${l}"></option>`).join("")}`;
156
- }, St = (e, a, t, r, i) => {
157
- var s;
158
- let o = function(c = !1) {
155
+ }), e.setAttribute("list", `${r}_list`), e.setAttribute("autocomplete", "off"), o.querySelector("datalist") || (o.innerHTML += `<datalist id="${r}_list"></datalist>`), o.querySelector("datalist").innerHTML = `${Object.keys(s).map((l) => `<option value="${l}"></option>`).join("")}`;
156
+ }, $e = (t, a, e, r, i) => {
157
+ var o;
158
+ let s = function(n = !1) {
159
159
  if (a.hasAttribute("data-ajax")) {
160
- if (!c) {
161
- let h = a.querySelector("[data-pagination]");
162
- h.value = 1, r.setAttribute("data-page", 1);
160
+ if (!n) {
161
+ let f = a.querySelector("[data-pagination]");
162
+ f.value = 1, r.setAttribute("data-page", 1);
163
163
  }
164
- at(e, a, t, r);
164
+ re(t, a, e, r);
165
165
  } else
166
- a.hasAttribute("data-submit") ? a.submit() : (W(e, a, r), F(r, t), j(e, a));
166
+ a.hasAttribute("data-submit") ? a.submit() : (G(t, a, r), F(r, e), j(t, a));
167
+ if (a.hasAttribute("data-ajax-post")) {
168
+ let f = new FormData(a), p = new URLSearchParams(f).toString();
169
+ const h = new XMLHttpRequest();
170
+ h.open("GET", `${window.location.href}?ajax=true&${p}`), h.send();
171
+ }
167
172
  };
168
- a.addEventListener("keyup", (c) => {
169
- clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest("[data-search]") && (s = setTimeout(function() {
170
- o();
173
+ a.addEventListener("keyup", (n) => {
174
+ clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && (o = setTimeout(function() {
175
+ s();
171
176
  }, 500));
172
- }), a.addEventListener("change", (c) => {
173
- clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(e, a, i), o()), c && c.target instanceof HTMLElement && c.target.closest("[data-search]") && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-filter][data-no-ajax]") ? (W(e, a, r), F(r, t), j(e, a)) : (c && c.target instanceof HTMLElement && c.target.closest("[data-filter]") && c.target.closest("form .dialog__wrapper > dialog") || c && c.target instanceof HTMLElement && c.target.closest("[data-filter]") && !c.target.closest("form dialog")) && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-show]") && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-mimic]") && o();
174
- }), a.addEventListener("click", (c) => {
175
- clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest('dialog button:not([type="button"])') && c.target.closest('dialog button:not([type="button"])').closest("dialog").close(), c && c.target instanceof HTMLElement && c.target.closest(".dialog__close") && (c.preventDefault(), c.stopPropagation()), c && c.target instanceof HTMLElement && c.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || J(e, a, i), o());
176
- }), a.addEventListener("submit", (c) => {
177
- clearTimeout(s), a.hasAttribute("data-submit") || c.preventDefault(), o();
178
- }), a.addEventListener("force", (c) => {
179
- o();
180
- }), a.addEventListener("paginate", (c) => {
181
- o(!0);
177
+ }), a.addEventListener("change", (n) => {
178
+ clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(t, a, i), s()), n && n.target instanceof HTMLElement && n.target.closest("[data-search]") && s(), n && n.target instanceof HTMLElement && n.target.closest("[data-filter][data-no-ajax]") ? (G(t, a, r), F(r, e), j(t, a)) : (n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && n.target.closest("form .dialog__wrapper > dialog") || n && n.target instanceof HTMLElement && n.target.closest("[data-filter]") && !n.target.closest("form dialog")) && s(), n && n.target instanceof HTMLElement && n.target.closest("[data-show]") && s(), n && n.target instanceof HTMLElement && n.target.closest("[data-mimic]") && s();
179
+ }), a.addEventListener("click", (n) => {
180
+ clearTimeout(o), n && n.target instanceof HTMLElement && n.target.closest('dialog button:not([type="button"])') && n.target.closest('dialog button:not([type="button"])').closest("dialog").close(), n && n.target instanceof HTMLElement && n.target.closest(".dialog__close") && (n.preventDefault(), n.stopPropagation()), n && n.target instanceof HTMLElement && n.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || J(t, a, i), s());
181
+ }), a.addEventListener("submit", (n) => {
182
+ clearTimeout(o), a.hasAttribute("data-submit") || n.preventDefault(), s();
183
+ }), a.addEventListener("force", (n) => {
184
+ s();
185
+ }), a.addEventListener("paginate", (n) => {
186
+ s(!0);
182
187
  });
183
- let l = [], n = [];
184
- Array.from(a.querySelectorAll("[data-mimic]")).forEach((c, h) => {
185
- let f = c.getAttribute("data-mimic");
186
- Array.from(document.querySelectorAll(`[name="${f}"]`)).forEach((b, p) => {
187
- let y = b.closest("form");
188
- l.includes(y) || l.push(y), n.includes(f) || n.push(f);
188
+ let l = [], c = [];
189
+ Array.from(a.querySelectorAll("[data-mimic]")).forEach((n, f) => {
190
+ let p = n.getAttribute("data-mimic");
191
+ Array.from(document.querySelectorAll(`[name="${p}"]`)).forEach((h, b) => {
192
+ let y = h.closest("form");
193
+ l.includes(y) || l.push(y), c.includes(p) || c.push(p);
189
194
  });
190
- }), l.forEach((c, h) => {
191
- const f = function() {
192
- let b = [], p = new FormData(c);
193
- for (const [y, w] of p)
194
- document.querySelector(`[data-mimic="${y}"]`) && !b.includes(y) ? (b.push(y), document.querySelector(`[data-mimic="${y}"]`).value = w) : document.querySelector(`[data-mimic="${y}"]`) && (document.querySelector(`[data-mimic="${y}"]`).value += "," + w);
195
- for (const y of b) {
196
- const w = new Event("force");
197
- a.dispatchEvent(w);
195
+ }), l.forEach((n, f) => {
196
+ const p = function() {
197
+ let h = [], b = new FormData(n);
198
+ for (const [y, A] of b)
199
+ document.querySelector(`[data-mimic="${y}"]`) && !h.includes(y) ? (h.push(y), document.querySelector(`[data-mimic="${y}"]`).value = A) : document.querySelector(`[data-mimic="${y}"]`) && (document.querySelector(`[data-mimic="${y}"]`).value += "," + A);
200
+ for (const y of h) {
201
+ const A = new Event("force");
202
+ a.dispatchEvent(A);
198
203
  }
199
- for (const y of n)
200
- if (!p.has(y) && c.querySelector(`[name="${y}"]`)) {
204
+ for (const y of c)
205
+ if (!b.has(y) && n.querySelector(`[name="${y}"]`)) {
201
206
  document.querySelector(`[data-mimic="${y}"]`).value = "";
202
- const w = new Event("force");
203
- a.dispatchEvent(w);
207
+ const A = new Event("force");
208
+ a.dispatchEvent(A);
204
209
  }
205
210
  };
206
- c.addEventListener("force", (b) => {
207
- f();
208
- }), c.addEventListener("change", (b) => {
209
- f();
211
+ n.addEventListener("force", (h) => {
212
+ p();
213
+ }), n.addEventListener("change", (h) => {
214
+ p();
210
215
  });
211
216
  });
212
- }, J = (e, a, t) => {
217
+ }, J = (t, a, e) => {
213
218
  if (a.getAttribute("data-ajax"))
214
219
  return !1;
215
- let r = e.querySelector("tbody"), i = a.querySelector("[data-sort]"), s = i.querySelector(`option:nth-child(${i.selectedIndex + 1})`), o = s.getAttribute("data-sort"), l = s.getAttribute("data-order"), n = s.getAttribute("data-format");
216
- if (!o)
217
- return r.innerHTML = t.innerHTML, Q(e), !1;
218
- let c = [];
219
- ["asc", "desc", "descending"].includes(l) || (c = l.split(","));
220
- let h = [];
221
- Array.from(r.querySelectorAll("tr")).forEach((b, p) => {
222
- let y = b.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
223
- b.querySelector('[data-label="' + o + '"] .td__content') && (y = b.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), c.length && c.includes(y) && (y = c.indexOf(y)), gt(y) && (y = vt(y, 10)), n && n == "date" && (y = new Date(y));
224
- const w = { index: y, row: b };
225
- h.push(w);
226
- }), h.sort((b, p) => b.index > p.index ? 1 : -1), (l == "descending" || l == "desc") && (h = h.reverse());
227
- let f = "";
228
- h.forEach((b, p) => {
229
- f += b.row.outerHTML;
230
- }), r.innerHTML = f;
231
- }, W = (e, a, t) => {
232
- e.classList.remove("table--filtered");
233
- let r = [], i = [], s = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
234
- if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, c) => {
235
- n.classList.remove("filtered"), n.classList.remove("filtered--matched"), n.classList.remove("filtered--show"), n.removeAttribute("data-filtered-by");
236
- }), Array.from(a.querySelectorAll("[data-filter]")).forEach((n, c) => {
237
- if (!(n.type == "radio" && !n.checked) && !(n.type == "checkbox" && !n.checked)) {
238
- if (n.getAttribute("data-filter") == "multi")
239
- for (const [h, f] of Object.entries(JSON.parse(n.value)))
240
- r[n.getAttribute("data-filter")].push(f);
241
- else if (n && n.value) {
242
- let h = n.getAttribute("data-filter");
243
- r[h] || (r[h] = new Array()), r[h].push(n.value);
244
- }
245
- }
220
+ let r = t.querySelector("tbody"), i = a.querySelector("[data-sort]"), o = i.querySelector(`option:nth-child(${i.selectedIndex + 1})`), s = o.getAttribute("data-sort"), l = o.getAttribute("data-order"), c = o.getAttribute("data-format");
221
+ if (!s)
222
+ return r.innerHTML = e.innerHTML, ee(t), !1;
223
+ let n = [];
224
+ ["asc", "desc", "descending"].includes(l) || (n = l.split(","));
225
+ let f = [];
226
+ Array.from(r.querySelectorAll("tr")).forEach((h, b) => {
227
+ let y = h.querySelector('td[data-label="' + s + '"], th[data-label="' + s + '"]').textContent.trim();
228
+ h.querySelector('[data-label="' + s + '"] .td__content') && (y = h.querySelector('[data-label="' + s + '"] .td__content').textContent.trim()), n.length && n.includes(y) && (y = n.indexOf(y)), ve(y) && (y = we(y, 10)), c && c == "date" && (y = new Date(y));
229
+ const A = { index: y, row: h };
230
+ f.push(A);
231
+ }), f.sort((h, b) => h.index > b.index ? 1 : -1), (l == "descending" || l == "desc") && (f = f.reverse());
232
+ let p = "";
233
+ f.forEach((h, b) => {
234
+ p += h.row.outerHTML;
235
+ }), r.innerHTML = p;
236
+ }, G = (t, a, e) => {
237
+ t.classList.remove("table--filtered");
238
+ let r = se(a), i = [], o = 0, s = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
239
+ if (Array.from(t.querySelectorAll("tbody tr")).forEach((c, n) => {
240
+ c.classList.remove("filtered"), c.classList.remove("filtered--matched"), c.classList.remove("filtered--show"), c.removeAttribute("data-filtered-by");
246
241
  }), a.querySelector("[data-search]")) {
247
- let n = a.querySelector("[data-search]");
248
- a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((c, h) => {
249
- i.push({ column: `${c.trim()}`, value: `${n.value}` });
242
+ let c = a.querySelector("[data-search]");
243
+ a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((n, f) => {
244
+ i.push({ column: `${n.trim()}`, value: `${c.value}` });
250
245
  });
251
246
  }
252
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, c) => {
253
- n.innerHTML = "";
254
- }), r.length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, c) => {
255
- n.innerHTML += `(${r.length})`;
256
- }), e.classList.add("table--filtered");
257
- for (const [n, c] of Object.entries(r))
258
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((h, f) => {
259
- let b = !1;
260
- c.forEach((p, y) => {
261
- let w = h.querySelector(`[data-label="${n}"]`);
262
- if (p && p == "$today")
263
- p = G("date", /* @__PURE__ */ new Date());
264
- else if (p && p == "$yesterday") {
265
- let L = /* @__PURE__ */ new Date();
266
- L.setDate(L.getDate() - 1), p = G("date", L);
267
- } else if (p && (p == "$thisWeek" || p == "$lastWeek")) {
268
- let L = /* @__PURE__ */ new Date(), x = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), _ = new Date(L.setDate(L.getDate() - L.getDay() + 7)), S = new Date(w.textContent.toLowerCase());
269
- if (L.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), _.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), p == "$thisWeek")
270
- b = S >= x && S <= _;
247
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((c, n) => {
248
+ c.innerHTML = "";
249
+ }), Object.keys(r).length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((c, n) => {
250
+ c.innerHTML += `(${Object.keys(r).length})`;
251
+ }), t.classList.add("table--filtered");
252
+ for (const [c, n] of Object.entries(r))
253
+ Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach((f, p) => {
254
+ let h = !1;
255
+ n.forEach((b, y) => {
256
+ let A = f.querySelector(`[data-label="${c}"]`);
257
+ if (b && b == "$today")
258
+ b = K("date", /* @__PURE__ */ new Date());
259
+ else if (b && b == "$yesterday") {
260
+ let w = /* @__PURE__ */ new Date();
261
+ w.setDate(w.getDate() - 1), b = K("date", w);
262
+ } else if (b && (b == "$thisWeek" || b == "$lastWeek")) {
263
+ let w = /* @__PURE__ */ new Date(), x = new Date(w.setDate(w.getDate() - (w.getDay() - 1))), k = new Date(w.setDate(w.getDate() - w.getDay() + 7)), _ = new Date(A.textContent.toLowerCase());
264
+ if (w.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), _.setHours(0, 0, 0, 0), b == "$thisWeek")
265
+ h = _ >= x && _ <= k;
271
266
  else {
272
- let E = new Date(x.setDate(x.getDate() - 7)), D = new Date(_.setDate(_.getDate() - 7));
273
- E.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), b = S >= E && S <= D;
267
+ let B = new Date(x.setDate(x.getDate() - 7)), E = new Date(k.setDate(k.getDate() - 7));
268
+ B.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), h = _ >= B && _ <= E;
274
269
  }
275
- } else if (p && p == "$thisMonth") {
276
- let L = /* @__PURE__ */ new Date(), x = L.getFullYear(), _ = L.getMonth();
277
- var I = new Date(x, _, 1), N = new Date(x, _ + 1, 0);
278
- let S = new Date(w.textContent.toLowerCase());
279
- I.setHours(0, 0, 0, 0), N.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), b = S >= I && S <= N;
280
- } else if (p && p == "$lastMonth") {
281
- let L = /* @__PURE__ */ new Date(), x = L.getFullYear(), _ = L.getMonth();
282
- var P = new Date(x, _ - 1, 1), C = new Date(x, _, 0);
283
- let S = new Date(w.textContent.toLowerCase());
284
- P.setHours(0, 0, 0, 0), C.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), b = S >= P && S <= C;
270
+ } else if (b && b == "$thisMonth") {
271
+ let w = /* @__PURE__ */ new Date(), x = w.getFullYear(), k = w.getMonth();
272
+ var C = new Date(x, k, 1), z = new Date(x, k + 1, 0);
273
+ let _ = new Date(A.textContent.toLowerCase());
274
+ C.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), _.setHours(0, 0, 0, 0), h = _ >= C && _ <= z;
275
+ } else if (b && b == "$lastMonth") {
276
+ let w = /* @__PURE__ */ new Date(), x = w.getFullYear(), k = w.getMonth();
277
+ var D = new Date(x, k - 1, 1), I = new Date(x, k, 0);
278
+ let _ = new Date(A.textContent.toLowerCase());
279
+ D.setHours(0, 0, 0, 0), I.setHours(0, 0, 0, 0), _.setHours(0, 0, 0, 0), h = _ >= D && _ <= I;
285
280
  }
286
- w && w.textContent.toLowerCase().includes(p.toLowerCase()) && (b = !0);
287
- }), b || (h.classList.add("filtered"), h.setAttribute("data-filtered-by", n));
281
+ A && A.textContent.toLowerCase().includes(b.toLowerCase()) && (h = !0);
282
+ }), h || (f.classList.add("filtered"), f.setAttribute("data-filtered-by", c));
288
283
  });
289
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, c) => {
290
- let h = !(i.length > 0 && i[0].value.length >= 3);
291
- i.forEach((f, b) => {
292
- let p = n.querySelector(`[data-label="${f.column}"]`);
293
- p && f.value.length >= 3 && p.textContent.toLowerCase().includes(f.value.toLowerCase()) && (h = !0);
294
- }), h || n.classList.add("filtered");
295
- }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, c) => {
296
- s++, n.classList.add("filtered--matched"), Math.ceil(s / l) == parseInt(o) && n.classList.add("filtered--show");
297
- }), t && (t.setAttribute("data-page", o), t.setAttribute("data-pages", Math.ceil(s / l)), t.setAttribute("data-total", s), t.setAttribute("data-show", l));
298
- }, j = (e, a, t) => {
284
+ Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, n) => {
285
+ let f = !(i.length > 0 && i[0].value.length >= 3);
286
+ i.forEach((p, h) => {
287
+ let b = c.querySelector(`[data-label="${p.column}"]`);
288
+ b && p.value.length >= 3 && b.textContent.toLowerCase().includes(p.value.toLowerCase()) && (f = !0);
289
+ }), f || c.classList.add("filtered");
290
+ }), Array.from(t.querySelectorAll("tbody tr:not(.filtered")).forEach((c, n) => {
291
+ o++, c.classList.add("filtered--matched"), Math.ceil(o / l) == parseInt(s) && c.classList.add("filtered--show");
292
+ }), e && (e.setAttribute("data-page", s), e.setAttribute("data-pages", Math.ceil(o / l)), e.setAttribute("data-total", o), e.setAttribute("data-show", l));
293
+ }, j = (t, a, e) => {
299
294
  Array.from(a.querySelectorAll("[data-query]")).forEach((r, i) => {
300
- let s = r.getAttribute("data-query"), o;
301
- if (s == "total")
302
- t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
303
- else if (!s.includes(" == ") && s.includes(" & ")) {
304
- let l = s.split(" & "), n = "";
305
- l.forEach((c) => {
306
- n += `:not([data-filtered-by="${c}"])`;
307
- }), o = Array.from(e.querySelectorAll(`tbody tr${n}`)).length;
308
- } else if (!s.includes(" == "))
309
- o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
310
- else if (s.includes(" && ")) {
311
- let l = s.split(" && ");
312
- o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
313
- let c = !0;
314
- for (const [h, f] of Object.entries(l)) {
315
- let b = f.split(" == ");
316
- (!n.querySelector(`td[data-label="${b[0]}"]`) || n.querySelector(`td[data-label="${b[0]}"]`).textContent != `${b[1]}`) && (c = !1);
295
+ let o = r.getAttribute("data-query"), s;
296
+ if (o == "total")
297
+ e.hasAttribute("data-total") ? s = e.getAttribute("data-total") : s = (t.classList.contains("table--filtered"), t.querySelectorAll("tbody tr").length);
298
+ else if (!o.includes(" == ") && o.includes(" & ")) {
299
+ let l = o.split(" & "), c = "";
300
+ l.forEach((n) => {
301
+ c += `:not([data-filtered-by="${n}"])`;
302
+ }), s = Array.from(t.querySelectorAll(`tbody tr${c}`)).length;
303
+ } else if (!o.includes(" == "))
304
+ s = Array.from(t.querySelectorAll(`tbody tr:not([data-filtered-by="${o}"])`)).length;
305
+ else if (o.includes(" && ")) {
306
+ let l = o.split(" && ");
307
+ s = Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).filter(function(c) {
308
+ let n = !0;
309
+ for (const [f, p] of Object.entries(l)) {
310
+ let h = p.split(" == ");
311
+ (!c.querySelector(`td[data-label="${h[0]}"]`) || c.querySelector(`td[data-label="${h[0]}"]`).textContent != `${h[1]}`) && (n = !1);
317
312
  }
318
- return c;
313
+ return n;
319
314
  }).length;
320
315
  } else {
321
- let l = s.split(" == ");
322
- o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(n) {
323
- return n.textContent === l[1];
316
+ let l = o.split(" == ");
317
+ s = Array.from(t.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) {
318
+ return c.textContent === l[1];
324
319
  }).length;
325
320
  }
326
- r.hasAttribute("data-total") ? r.setAttribute("data-total", o) : r.innerHTML = o;
321
+ r.hasAttribute("data-total") ? r.setAttribute("data-total", s) : r.innerHTML = s;
327
322
  });
328
- }, xt = function(e, a, t, r) {
329
- t.addEventListener("click", (i) => {
323
+ }, xe = function(t, a, e, r) {
324
+ e.addEventListener("click", (i) => {
330
325
  if (i && i.target instanceof HTMLElement && i.target.closest("[data-page]")) {
331
326
  i.preventDefault();
332
- let s = a.querySelector("[data-pagination]"), o = i.target.closest("[data-page]").getAttribute("data-page");
333
- if (s.value = o, r.setAttribute("data-page", o), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
334
- const c = new URL(location);
335
- c.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", c);
327
+ let o = a.querySelector("[data-pagination]"), s = i.target.closest("[data-page]").getAttribute("data-page");
328
+ if (o.value = s, r.setAttribute("data-page", s), a.dispatchEvent(new Event("paginate")), t.hasAttribute("data-show-history")) {
329
+ const n = new URL(location);
330
+ n.searchParams.set("page", s), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: s }, "", n);
336
331
  }
337
- const l = -250, n = e.getBoundingClientRect().top + window.pageYOffset + l;
338
- window.scrollTo({ top: n, behavior: "smooth" });
332
+ const l = -250, c = t.getBoundingClientRect().top + window.pageYOffset + l;
333
+ window.scrollTo({ top: c, behavior: "smooth" });
339
334
  }
340
335
  if (i && i.target instanceof HTMLElement && i.target.closest("[data-show]")) {
341
336
  i.preventDefault();
342
- let s = a.querySelector("[data-show]"), o = i.target.closest("[data-show]").getAttribute("data-show");
343
- s.value = o, r.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
337
+ let o = a.querySelector("[data-show]"), s = i.target.closest("[data-show]").getAttribute("data-show");
338
+ o.value = s, r.setAttribute("data-show", s), a.dispatchEvent(new Event("submit"));
344
339
  }
345
340
  });
346
- }, $t = (e, a) => {
347
- if (!e)
341
+ }, Ee = (t, a) => {
342
+ if (!t)
348
343
  return !1;
349
- e.addEventListener("click", (t) => {
350
- qt(a);
344
+ t.addEventListener("click", (e) => {
345
+ Te(a);
351
346
  });
352
- }, qt = function(e) {
353
- for (var a = [], t = e.getElementsByTagName("tr"), r = 0; r < t.length; r++) {
354
- for (var i = t[r].querySelectorAll("td,th"), s = [], o = 0; o < i.length; o++)
355
- s.push(`"${i[o].textContent}"`);
356
- a.push(s.join(","));
347
+ }, Te = function(t) {
348
+ for (var a = [], e = t.getElementsByTagName("tr"), r = 0; r < e.length; r++) {
349
+ for (var i = e[r].querySelectorAll("td,th"), o = [], s = 0; s < i.length; s++)
350
+ o.push(`"${i[s].textContent}"`);
351
+ a.push(o.join(","));
357
352
  }
358
353
  a = a.join(`
359
354
  `);
360
355
  let l = new Blob([a], { type: "text/csv" });
361
- var n = document.createElement("a");
362
- n.download = "export.csv";
363
- var c = window.URL.createObjectURL(l);
364
- n.href = c, n.style.display = "none", document.body.appendChild(n), n.click(), document.body.removeChild(n);
365
- }, et = function(e, a, t, r) {
366
- if (Q(e), kt(e), j(e, a, r), r && r.classList.contains("table--cta")) {
356
+ var c = document.createElement("a");
357
+ c.download = "export.csv";
358
+ var n = window.URL.createObjectURL(l);
359
+ c.href = n, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
360
+ }, ae = function(t, a, e, r) {
361
+ if (ee(t), ke(t), j(t, a, r), r && r.classList.contains("table--cta")) {
367
362
  let i = function() {
368
- Array.from(e.querySelectorAll("tr")).forEach((o, l) => {
369
- let n = o.offsetHeight;
370
- o.style.setProperty("--row-height", `${n}px`);
363
+ Array.from(t.querySelectorAll("tr")).forEach((s, l) => {
364
+ let c = s.offsetHeight;
365
+ s.style.setProperty("--row-height", `${c}px`);
371
366
  });
372
367
  };
373
- const s = At(e);
374
- r.style.setProperty("--cta-width", `${s}rem`), new ResizeObserver(i).observe(e);
368
+ const o = Le(t);
369
+ r.style.setProperty("--cta-width", `${o}rem`), new ResizeObserver(i).observe(t);
375
370
  }
376
- }, at = function(e, a, t, r) {
377
- return wt(this, void 0, void 0, function* () {
378
- const i = (f, b, p) => b.split(/[\.\[\]\'\"]/).filter((y) => y).reduce((y, w) => y ? y[w] : p, f);
379
- let s = new FormData(a), o = new URLSearchParams(s).toString(), l = e.querySelectorAll("thead tr th"), n = e.querySelector("tbody"), c = a.getAttribute("data-ajax");
380
- r.classList.add("table--loading"), window.controller || (window.controller = []), window.controller[c] && window.controller[c].abort(), window.controller[c] = new AbortController();
381
- const { signal: h } = controller[c];
371
+ }, se = function(t) {
372
+ let a = new Object();
373
+ return Array.from(t.querySelectorAll("[data-filter]")).forEach((e, r) => {
374
+ if (!(e.type == "radio" && !e.checked) && !(e.type == "checkbox" && !e.checked) && e && e.value) {
375
+ let i = e.getAttribute("data-filter");
376
+ a[i] || (a[i] = new Array()), a[i].push(e.value);
377
+ }
378
+ }), a;
379
+ }, re = function(t, a, e, r) {
380
+ return Se(this, void 0, void 0, function* () {
381
+ const i = (h, b, y) => b.split(/[\.\[\]\'\"]/).filter((A) => A).reduce((A, C) => A ? A[C] : y, h);
382
+ let o = new FormData(a), s = new URLSearchParams(o).toString(), l = t.querySelectorAll("thead tr th"), c = t.querySelector("tbody"), n = a.getAttribute("data-ajax");
383
+ r.classList.add("table--loading");
384
+ let f = se(a);
385
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, b) => {
386
+ h.innerHTML = "";
387
+ }), Object.keys(f).length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, b) => {
388
+ h.innerHTML += `(${Object.keys(f).length})`;
389
+ }), window.controller || (window.controller = []), window.controller[n] && window.controller[n].abort(), window.controller[n] = new AbortController();
390
+ const { signal: p } = controller[n];
382
391
  try {
383
- yield fetch(c + "?" + o, { signal: h, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((f) => f.json()).then((f) => {
384
- let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", p = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", y = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", w = i(f, p, 1), I = i(f, y, 1), N = i(f, b), P = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
385
- if (N ? (n.innerHTML = "", N.forEach((C, L) => {
386
- var x = document.createElement("tr");
387
- l.forEach((_, S) => {
392
+ yield fetch(n + "?" + s, { signal: p, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((h) => h.json()).then((h) => {
393
+ let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", y = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", A = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", C = i(h, y, 1), z = i(h, A, 1), D = i(h, b), I = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
394
+ D ? (c.innerHTML = "", D.forEach((w, x) => {
395
+ var k = document.createElement("tr");
396
+ l.forEach((_, B) => {
388
397
  let E = "";
389
- var D = document.createElement("td");
390
- if (D.setAttribute("data-label", _.innerText), _.getAttribute("data-output")) {
391
- var O = _.getAttribute("data-output");
392
- E = O.replace(new RegExp(/{(.*?)}/, "gm"), function(st) {
393
- return i(C, st.replace("{", "").replace("}", ""));
398
+ var O = document.createElement("td");
399
+ if (O.setAttribute("data-label", _.innerText), _.getAttribute("data-output")) {
400
+ var V = _.getAttribute("data-output");
401
+ E = V.replace(new RegExp(/{(.*?)}/, "gm"), function(ne) {
402
+ return i(w, ne.replace("{", "").replace("}", ""));
394
403
  });
395
404
  }
396
405
  if (_.hasAttribute("data-output-array")) {
397
- var O = _.getAttribute("data-output");
398
- let it = i(C, O.replace("{", "").replace("}", ""));
399
- E = "", it.forEach((Z, oo) => {
400
- let nt = _.getAttribute("data-output-array"), B = "";
406
+ var V = _.getAttribute("data-output");
407
+ let le = i(w, V.replace("{", "").replace("}", ""));
408
+ E = "", le.forEach((X, or) => {
409
+ let ce = _.getAttribute("data-output-array"), P = "";
401
410
  if (_.hasAttribute("data-output-array-property") && _.hasAttribute("data-output-array-transform")) {
402
- const V = i(Z, _.getAttribute("data-output-array-property")), lt = JSON.parse(_.getAttribute("data-output-array-transform"))[V];
403
- B = nt.replace(`{${_.getAttribute("data-output-array-property")}}`, lt);
411
+ const U = i(X, _.getAttribute("data-output-array-property")), de = JSON.parse(_.getAttribute("data-output-array-transform"))[U];
412
+ P = ce.replace(`{${_.getAttribute("data-output-array-property")}}`, de);
404
413
  }
405
- B = B.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
406
- return i(Z, V.replace("{", "").replace("}", ""));
407
- }), E += B;
414
+ P = P.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
415
+ return i(X, U.replace("{", "").replace("}", ""));
416
+ }), E += P;
408
417
  });
409
418
  }
410
- _.hasAttribute("data-transform") && (E = JSON.parse(_.getAttribute("data-transform"))[E], !E && _.hasAttribute("data-default") && (E = _.getAttribute("data-default"))), D.innerHTML = E, x.appendChild(D);
411
- }), n.appendChild(x);
412
- }), tt(e, a), r.setAttribute("data-total", parseInt(w)), r.setAttribute("data-page", parseInt(I)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), et(e, a, t, r), F(r, t), parseInt(w) == 0 && (n.innerHTML = `<tr><td colspan="100%"><span>${P}</span></td></tr>`), r.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: c, formData: o })) : n.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
413
- const C = new XMLHttpRequest();
414
- C.open("GET", `${window.location.href}?ajax=true&${o}`), C.send();
415
- }
419
+ _.hasAttribute("data-transform") && (E = JSON.parse(_.getAttribute("data-transform"))[E], !E && _.hasAttribute("data-default") && (E = _.getAttribute("data-default"))), O.innerHTML = E, k.appendChild(O);
420
+ }), c.appendChild(k);
421
+ }), te(t, a), r.setAttribute("data-total", parseInt(C)), r.setAttribute("data-page", parseInt(z)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), ae(t, a, e, r), F(r, e), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((w, x) => {
422
+ let k = i(h, w.getAttribute("data-ajax-query"), "");
423
+ w.hasAttribute("data-total") ? w.setAttribute("data-total", k) : w.innerHTML = k;
424
+ }), parseInt(C) == 0 && (c.innerHTML = `<tr><td colspan="100%"><span>${I}</span></td></tr>`), r.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: n, formData: s })) : c.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>';
416
425
  });
417
- } catch (f) {
418
- console.log(f);
426
+ } catch (h) {
427
+ console.log(h);
419
428
  }
420
429
  });
421
- }, G = (e, a) => {
422
- switch (e) {
430
+ }, K = (t, a) => {
431
+ switch (t) {
423
432
  case "datetime":
424
433
  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" });
425
434
  case "date":
426
435
  return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
427
436
  case "capitalise":
428
- return a = _t(a);
437
+ return a = Ae(a);
429
438
  }
430
439
  };
431
- class Et extends HTMLElement {
440
+ class Me extends HTMLElement {
432
441
  constructor() {
433
442
  super(), this.attachShadow({ mode: "open" });
434
- 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");
443
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
435
444
  r.innerHTML = `
436
445
  <style>
437
- @import "${t}";
446
+ @import "${e}";
438
447
 
439
448
  :host(.mh-sm){
440
449
  max-height: none!important;
@@ -459,20 +468,20 @@ class Et extends HTMLElement {
459
468
  connectedCallback() {
460
469
  const a = new URLSearchParams(window.location.search);
461
470
  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")));
462
- let t = this.classList.toString();
463
- 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"), tt(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" />`), Lt(this.table), St(this.table, this.form, this.pagination, this, this.savedTableBody), xt(this.table, this.form, this.pagination, this), $t(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? at(this.table, this.form, this.pagination, this) : (et(this.table, this.form, this.pagination, this), W(this.table, this.form, this), F(this, this.pagination), j(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
471
+ let e = this.classList.toString();
472
+ e = e.replace("table--cta", ""), e = e.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${e}`, 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"), te(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" />`), qe(this.table), $e(this.table, this.form, this.pagination, this, this.savedTableBody), xe(this.table, this.form, this.pagination, this), Ee(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? re(this.table, this.form, this.pagination, this) : (ae(this.table, this.form, this.pagination, this), G(this.table, this.form, this), F(this, this.pagination), j(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
464
473
  this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
465
474
  });
466
475
  }
467
476
  static get observedAttributes() {
468
477
  return ["data-total", "data-pages", "data-page", "data-show"];
469
478
  }
470
- attributeChangedCallback(a, t, r) {
479
+ attributeChangedCallback(a, e, r) {
471
480
  }
472
481
  }
473
- const Tt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Mt = (e) => e.replace(/_/g, " "), Ht = (e) => e.replace(/ /g, "_"), Ct = function(e) {
474
- return e = e.toLowerCase(), e = Ht(e), e = e.replace(/\W/g, ""), e;
475
- }, Dt = {
482
+ const He = (t) => t.charAt(0).toUpperCase() + t.slice(1), Ce = (t) => t.replace(/_/g, " "), De = (t) => t.replace(/ /g, "_"), Ne = function(t) {
483
+ return t = t.toLowerCase(), t = De(t), t = t.replace(/\W/g, ""), t;
484
+ }, Re = {
476
485
  name: "Table",
477
486
  props: {
478
487
  items: {
@@ -486,42 +495,42 @@ const Tt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Mt = (e) => e.replace(
486
495
  },
487
496
  computed: {
488
497
  cellHeading() {
489
- return (e) => `${Tt(Mt(e))}`;
498
+ return (t) => `${He(Ce(t))}`;
490
499
  }
491
500
  },
492
501
  created() {
493
502
  this.$nextTick(function() {
494
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Et);
503
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", Me);
495
504
  });
496
505
  },
497
506
  updated() {
498
507
  }
499
- }, Nt = { key: 0 }, Rt = { key: 0 }, zt = ["data-row-id"], It = ["innerHTML"];
500
- function Pt(e, a, t, r, i, s) {
508
+ }, ze = { key: 0 }, Ie = { key: 0 }, Pe = ["data-row-id"], Fe = ["innerHTML"];
509
+ function je(t, a, e, r, i, o) {
501
510
  return u(), m("iam-table", null, [
502
- t.fields ? (u(), m("table", Nt, [
511
+ e.fields ? (u(), m("table", ze, [
503
512
  d("thead", null, [
504
513
  d("tr", null, [
505
- (u(!0), m(T, null, M(t.fields, (o) => (u(), m("th", {
506
- key: o.key
507
- }, q(s.cellHeading(o.key)), 1))), 128))
514
+ (u(!0), m(T, null, M(e.fields, (s) => (u(), m("th", {
515
+ key: s.key
516
+ }, $(o.cellHeading(s.key)), 1))), 128))
508
517
  ])
509
518
  ]),
510
- t.items ? (u(), m("tbody", Rt, [
511
- (u(!0), m(T, null, M(t.items, (o, l) => (u(), m("tr", {
519
+ e.items ? (u(), m("tbody", Ie, [
520
+ (u(!0), m(T, null, M(e.items, (s, l) => (u(), m("tr", {
512
521
  key: l,
513
- "data-row-id": o.rowid
522
+ "data-row-id": s.rowid
514
523
  }, [
515
- (u(!0), m(T, null, M(Object.fromEntries(Object.entries(o).filter(([n]) => n !== "rowid")), (n, c) => (u(), m("td", {
516
- key: c,
517
- innerHTML: n
518
- }, null, 8, It))), 128))
519
- ], 8, zt))), 128))
524
+ (u(!0), m(T, null, M(Object.fromEntries(Object.entries(s).filter(([c]) => c !== "rowid")), (c, n) => (u(), m("td", {
525
+ key: n,
526
+ innerHTML: c
527
+ }, null, 8, Fe))), 128))
528
+ ], 8, Pe))), 128))
520
529
  ])) : g("", !0)
521
- ])) : v(e.$slots, "default", { key: 1 })
530
+ ])) : v(t.$slots, "default", { key: 1 })
522
531
  ]);
523
532
  }
524
- const rt = /* @__PURE__ */ A(Dt, [["render", Pt]]), Bt = {
533
+ const oe = /* @__PURE__ */ S(Re, [["render", je]]), Be = {
525
534
  name: "Input",
526
535
  props: {
527
536
  value: {
@@ -687,213 +696,213 @@ const rt = /* @__PURE__ */ A(Dt, [["render", Pt]]), Bt = {
687
696
  get() {
688
697
  return this.value == null && this.options != null && this.type == "select" ? this.$attrs.multiple ? [] : this.options[0].value : this.value;
689
698
  },
690
- set(e) {
691
- this.$emit("input", e);
699
+ set(t) {
700
+ this.$emit("input", t);
692
701
  }
693
702
  }
694
703
  },
695
704
  mounted() {
696
705
  this.$nextTick(function() {
697
- let e = this.$refs.wrapper;
698
- if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
706
+ let t = this.$refs.wrapper;
707
+ if (t.parentNode && t.parentNode.classList.contains("form-check") || t.classList.length == 0) {
699
708
  const a = document.createDocumentFragment();
700
- Array.from(e.childNodes).forEach((t) => a.appendChild(t)), e.parentNode.insertBefore(a, e), e.parentNode.removeChild(e);
709
+ Array.from(t.childNodes).forEach((e) => a.appendChild(e)), t.parentNode.insertBefore(a, t), t.parentNode.removeChild(t);
701
710
  }
702
711
  });
703
712
  },
704
713
  methods: {
705
- inputKeyup(e) {
706
- this.$emit("keyupEvent", e);
714
+ inputKeyup(t) {
715
+ this.$emit("keyupEvent", t);
707
716
  },
708
717
  clickEvent() {
709
718
  this.$emit("bus");
710
719
  }
711
720
  }
712
- }, Ft = ["for", "innerHTML", "title"], jt = ["innerHTML"], Ot = ["innerHTML"], Vt = ["type", "name", "id", "pattern", "list"], Ut = ["type", "name", "id", "pattern"], Wt = {
721
+ }, Oe = ["for", "innerHTML", "title"], Ve = ["innerHTML"], Ue = ["innerHTML"], We = ["type", "name", "id", "pattern", "list"], Ge = ["type", "name", "id", "pattern"], Ke = {
713
722
  key: 5,
714
723
  class: "input-group"
715
- }, Gt = ["type", "name", "id", "pattern", "list"], Kt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Yt = {
724
+ }, Ye = ["type", "name", "id", "pattern", "list"], Ze = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Xe = {
716
725
  key: 6,
717
726
  class: "input-group"
718
- }, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], Qt = ["value"], te = ["type", "name", "id"], ee = ["for", "innerHTML"], ae = ["type", "name", "id"], re = ["for", "innerHTML"], oe = ["innerHTML"], se = ["id"], ie = ["value"];
719
- function ne(e, a, t, r, i, s) {
727
+ }, Je = ["type", "name", "id", "pattern", "list"], Qe = { class: "input-group-text flex-fill" }, et = ["type", "name", "id", "pattern"], tt = ["value"], at = ["type", "name", "id"], st = ["for", "innerHTML"], rt = ["type", "name", "id"], ot = ["for", "innerHTML"], it = ["innerHTML"], nt = ["id"], lt = ["value"];
728
+ function ct(t, a, e, r, i, o) {
720
729
  return u(), m("div", {
721
- class: k(s.wrapperClass()),
730
+ class: L(o.wrapperClass()),
722
731
  ref: "wrapper"
723
732
  }, [
724
- s.needsLabel() ? (u(), m("label", {
733
+ o.needsLabel() ? (u(), m("label", {
725
734
  key: 0,
726
- class: k(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
727
- for: t.id,
728
- innerHTML: s.displayLabel(),
729
- title: t.title
730
- }, null, 10, Ft)) : g("", !0),
731
- t.prefix ? (u(), m("span", {
735
+ class: L(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
736
+ for: e.id,
737
+ innerHTML: o.displayLabel(),
738
+ title: e.title
739
+ }, null, 10, Oe)) : g("", !0),
740
+ e.prefix ? (u(), m("span", {
732
741
  key: 1,
733
- class: k(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
734
- innerHTML: t.prefix,
742
+ class: L(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
743
+ innerHTML: e.prefix,
735
744
  role: "presentation"
736
- }, null, 10, jt)) : g("", !0),
737
- t.suffix ? (u(), m("span", {
745
+ }, null, 10, Ve)) : g("", !0),
746
+ e.suffix ? (u(), m("span", {
738
747
  key: 2,
739
- class: k(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
740
- innerHTML: t.suffix,
748
+ class: L(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
749
+ innerHTML: e.suffix,
741
750
  role: "presentation"
742
- }, null, 10, Ot)) : g("", !0),
743
- s.isInput() ? R((u(), m("input", H({
751
+ }, null, 10, Ue)) : g("", !0),
752
+ o.isInput() ? N((u(), m("input", H({
744
753
  key: 3,
745
- "onUpdate:modelValue": a[0] || (a[0] = (o) => s.inputVal = o),
746
- class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
747
- type: t.type,
748
- name: t.name ? t.name : t.id,
749
- id: t.id,
750
- pattern: s.needPattern(),
751
- list: s.hasOptions()
752
- }, e.$attrs, {
753
- onKeyup: a[1] || (a[1] = (...o) => s.inputKeyup && s.inputKeyup(...o))
754
- }), null, 16, Vt)), [
755
- [U, s.inputVal]
754
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => o.inputVal = s),
755
+ class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
756
+ type: e.type,
757
+ name: e.name ? e.name : e.id,
758
+ id: e.id,
759
+ pattern: o.needPattern(),
760
+ list: o.hasOptions()
761
+ }, t.$attrs, {
762
+ onKeyup: a[1] || (a[1] = (...s) => o.inputKeyup && o.inputKeyup(...s))
763
+ }), null, 16, We)), [
764
+ [W, o.inputVal]
756
765
  ]) : g("", !0),
757
- t.type == "textarea" ? R((u(), m("textarea", H({
766
+ e.type == "textarea" ? N((u(), m("textarea", H({
758
767
  key: 4,
759
- "onUpdate:modelValue": a[2] || (a[2] = (o) => s.inputVal = o),
760
- class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
761
- type: t.type,
762
- name: t.name ? t.name : t.id,
763
- id: t.id,
764
- pattern: s.needPattern()
765
- }, e.$attrs), null, 16, Ut)), [
766
- [ct, s.inputVal]
768
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => o.inputVal = s),
769
+ class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
770
+ type: e.type,
771
+ name: e.name ? e.name : e.id,
772
+ id: e.id,
773
+ pattern: o.needPattern()
774
+ }, t.$attrs), null, 16, Ge)), [
775
+ [ue, o.inputVal]
767
776
  ]) : g("", !0),
768
- t.type == "range" ? (u(), m("div", Wt, [
769
- R(d("input", H({
770
- "onUpdate:modelValue": a[3] || (a[3] = (o) => s.inputVal = o),
771
- class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
772
- type: t.type,
773
- name: t.name ? t.name : t.id,
774
- id: t.id,
775
- pattern: s.needPattern(),
776
- list: s.hasOptions()
777
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Gt), [
778
- [U, s.inputVal]
777
+ e.type == "range" ? (u(), m("div", Ke, [
778
+ N(d("input", H({
779
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => o.inputVal = s),
780
+ class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
781
+ type: e.type,
782
+ name: e.name ? e.name : e.id,
783
+ id: e.id,
784
+ pattern: o.needPattern(),
785
+ list: o.hasOptions()
786
+ }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ye), [
787
+ [W, o.inputVal]
779
788
  ]),
780
- d("output", Kt, q(t.value), 1)
789
+ d("output", Ze, $(e.value), 1)
781
790
  ])) : g("", !0),
782
- t.type == "color" ? (u(), m("div", Yt, [
783
- R(d("input", H({
784
- "onUpdate:modelValue": a[4] || (a[4] = (o) => s.inputVal = o),
785
- class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
786
- type: t.type,
787
- name: t.name ? t.name : t.id,
788
- id: t.id,
789
- pattern: s.needPattern(),
790
- list: s.hasOptions()
791
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
792
- [U, s.inputVal]
791
+ e.type == "color" ? (u(), m("div", Xe, [
792
+ N(d("input", H({
793
+ "onUpdate:modelValue": a[4] || (a[4] = (s) => o.inputVal = s),
794
+ class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
795
+ type: e.type,
796
+ name: e.name ? e.name : e.id,
797
+ id: e.id,
798
+ pattern: o.needPattern(),
799
+ list: o.hasOptions()
800
+ }, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Je), [
801
+ [W, o.inputVal]
793
802
  ]),
794
- d("output", Jt, q(t.value ? e.vale : "#000000"), 1)
803
+ d("output", Qe, $(e.value ? t.vale : "#000000"), 1)
795
804
  ])) : g("", !0),
796
- t.type == "select" ? R((u(), m("select", H({
805
+ e.type == "select" ? N((u(), m("select", H({
797
806
  key: 7,
798
- "onUpdate:modelValue": a[5] || (a[5] = (o) => s.inputVal = o),
799
- class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
800
- type: t.type,
801
- name: t.id,
802
- id: t.id,
803
- pattern: s.needPattern()
804
- }, e.$attrs), [
805
- (u(!0), m(T, null, M(t.options, (o, l) => (u(), m("option", {
807
+ "onUpdate:modelValue": a[5] || (a[5] = (s) => o.inputVal = s),
808
+ class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
809
+ type: e.type,
810
+ name: e.id,
811
+ id: e.id,
812
+ pattern: o.needPattern()
813
+ }, t.$attrs), [
814
+ (u(!0), m(T, null, M(e.options, (s, l) => (u(), m("option", {
806
815
  key: l,
807
- value: o.value
808
- }, q(o.display ? o.display : o.value), 9, Qt))), 128))
809
- ], 16, Xt)), [
810
- [dt, s.inputVal]
816
+ value: s.value
817
+ }, $(s.display ? s.display : s.value), 9, tt))), 128))
818
+ ], 16, et)), [
819
+ [me, o.inputVal]
811
820
  ]) : g("", !0),
812
- t.type == "checkbox" || t.type == "radio" ? (u(), m("input", H({
821
+ e.type == "checkbox" || e.type == "radio" ? (u(), m("input", H({
813
822
  key: 8,
814
823
  class: "form-check-input",
815
- type: t.type,
816
- name: t.name ? t.name : t.id,
817
- id: t.id
818
- }, e.$attrs), null, 16, te)) : g("", !0),
819
- t.type == "checkbox" || t.type == "radio" ? (u(), m("label", {
824
+ type: e.type,
825
+ name: e.name ? e.name : e.id,
826
+ id: e.id
827
+ }, t.$attrs), null, 16, at)) : g("", !0),
828
+ e.type == "checkbox" || e.type == "radio" ? (u(), m("label", {
820
829
  key: 9,
821
- class: k(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
822
- for: t.id,
823
- innerHTML: t.label
824
- }, null, 10, ee)) : g("", !0),
825
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input", H({
830
+ class: L(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
831
+ for: e.id,
832
+ innerHTML: e.label
833
+ }, null, 10, st)) : g("", !0),
834
+ e.type == "checkbox-btn" || e.type == "radio-btn" ? (u(), m("input", H({
826
835
  key: 10,
827
- class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
828
- type: t.type.replace("-btn", ""),
836
+ class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
837
+ type: e.type.replace("-btn", ""),
829
838
  autocomplete: "off",
830
- name: t.name ? t.name : t.id,
831
- id: t.id
832
- }, e.$attrs), null, 16, ae)) : g("", !0),
833
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
839
+ name: e.name ? e.name : e.id,
840
+ id: e.id
841
+ }, t.$attrs), null, 16, rt)) : g("", !0),
842
+ e.type == "checkbox-btn" || e.type == "radio-btn" ? (u(), m("label", {
834
843
  key: 11,
835
- class: k(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
836
- for: t.id,
837
- innerHTML: t.label,
838
- onClick: a[6] || (a[6] = (...o) => s.clickEvent && s.clickEvent(...o))
839
- }, null, 10, re)) : g("", !0),
840
- v(e.$slots, "default"),
841
- t.errormsg ? (u(), m("span", {
844
+ class: L(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
845
+ for: e.id,
846
+ innerHTML: e.label,
847
+ onClick: a[6] || (a[6] = (...s) => o.clickEvent && o.clickEvent(...s))
848
+ }, null, 10, ot)) : g("", !0),
849
+ v(t.$slots, "default"),
850
+ e.errormsg ? (u(), m("span", {
842
851
  key: 12,
843
852
  class: "invalid-feedback mb-0",
844
- innerHTML: t.errormsg
845
- }, null, 8, oe)) : g("", !0),
846
- s.allowDatalist() ? (u(), m("datalist", {
853
+ innerHTML: e.errormsg
854
+ }, null, 8, it)) : g("", !0),
855
+ o.allowDatalist() ? (u(), m("datalist", {
847
856
  key: 13,
848
- id: t.id + "-list"
857
+ id: e.id + "-list"
849
858
  }, [
850
- (u(!0), m(T, null, M(t.options, (o, l) => (u(), m("option", {
859
+ (u(!0), m(T, null, M(e.options, (s, l) => (u(), m("option", {
851
860
  key: l,
852
- value: o.value
853
- }, q(o.value), 9, ie))), 128))
854
- ], 8, se)) : g("", !0)
861
+ value: s.value
862
+ }, $(s.value), 9, lt))), 128))
863
+ ], 8, nt)) : g("", !0)
855
864
  ], 2);
856
865
  }
857
- const Y = /* @__PURE__ */ A(Bt, [["render", ne]]);
858
- function le(e, a) {
859
- const t = a.querySelector(".files"), r = a.querySelector(".drop-area"), i = e.querySelector("input"), s = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = i.cloneNode();
860
- r.append(o), a.addEventListener("click", (l) => {
861
- l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (i.hasAttribute("multiple") ? o : i).click());
866
+ const Z = /* @__PURE__ */ S(Be, [["render", ct]]);
867
+ function dt(t, a) {
868
+ const e = a.querySelector(".files"), r = a.querySelector(".drop-area"), i = t.querySelector("input"), o = t.hasAttribute("data-maxsize") ? t.getAttribute("data-maxsize") : 0, s = i.cloneNode();
869
+ r.append(s), a.addEventListener("click", (l) => {
870
+ l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (i.hasAttribute("multiple") ? s : i).click());
862
871
  }), a.addEventListener("click", (l) => {
863
872
  if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
864
- const n = new DataTransfer(), { files: c } = i, h = l.target.closest(".files button");
865
- for (let b = 0; b < c.length; b++) {
866
- const p = c[b];
867
- p.name != h.getAttribute("data-file") && n.items.add(p);
873
+ const c = new DataTransfer(), { files: n } = i, f = l.target.closest(".files button");
874
+ for (let h = 0; h < n.length; h++) {
875
+ const b = n[h];
876
+ b.name != f.getAttribute("data-file") && c.items.add(b);
868
877
  }
869
- i.files = n.files;
870
- const f = new Event("change");
871
- i.dispatchEvent(f);
878
+ i.files = c.files;
879
+ const p = new Event("change");
880
+ i.dispatchEvent(p);
872
881
  }
873
- }), o.addEventListener("change", (l) => {
882
+ }), s.addEventListener("change", (l) => {
874
883
  if (i.hasAttribute("multiple")) {
875
- const c = [...i.files, ...o.files];
876
- let h = [];
877
- const f = new DataTransfer();
878
- for (let b = 0; b < c.length; b++) {
879
- const p = c[b], y = p.size / 1e3;
880
- !h.includes(p.name) && (s == 0 || y < s) && f.items.add(p), h.push(p.name);
884
+ const n = [...i.files, ...s.files];
885
+ let f = [];
886
+ const p = new DataTransfer();
887
+ for (let h = 0; h < n.length; h++) {
888
+ const b = n[h], y = b.size / 1e3;
889
+ !f.includes(b.name) && (o == 0 || y < o) && p.items.add(b), f.push(b.name);
881
890
  }
882
- i.files = f.files;
891
+ i.files = p.files;
883
892
  } else
884
- i.files = o.files;
885
- const n = new Event("change");
886
- i.dispatchEvent(n);
887
- }), o.addEventListener("dragenter", (l) => {
888
- o.classList.add("focus");
889
- }), o.addEventListener("dragleave", (l) => {
890
- o.classList.remove("focus");
891
- }), o.addEventListener("drop", (l) => {
892
- o.classList.remove("focus");
893
+ i.files = s.files;
894
+ const c = new Event("change");
895
+ i.dispatchEvent(c);
896
+ }), s.addEventListener("dragenter", (l) => {
897
+ s.classList.add("focus");
898
+ }), s.addEventListener("dragleave", (l) => {
899
+ s.classList.remove("focus");
900
+ }), s.addEventListener("drop", (l) => {
901
+ s.classList.remove("focus");
893
902
  }), i.addEventListener("change", (l) => {
894
- t.innerHTML = "";
895
- for (const n of i.files)
896
- t.innerHTML += `<span class="file">${n.name} <button data-file="${n.name}">Remove</button></span>`;
903
+ e.innerHTML = "";
904
+ for (const c of i.files)
905
+ e.innerHTML += `<span class="file">${c.name} <button data-file="${c.name}">Remove</button></span>`;
897
906
  });
898
907
  }
899
908
  window.dataLayer = window.dataLayer || [];
@@ -901,13 +910,13 @@ window.dataLayer.push({
901
910
  event: "customElementRegistered",
902
911
  element: "fileupload"
903
912
  });
904
- class ce extends HTMLElement {
913
+ class ut extends HTMLElement {
905
914
  constructor() {
906
915
  super(), this.attachShadow({ mode: "open" });
907
- 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";`, i = document.createElement("template");
916
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = `@import "${a}/css/components/fileupload.css";`, i = document.createElement("template");
908
917
  i.innerHTML = `
909
918
  <style>
910
- @import "${t}";
919
+ @import "${e}";
911
920
  ${r}
912
921
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
913
922
  </style>
@@ -924,11 +933,11 @@ class ce extends HTMLElement {
924
933
  }
925
934
  connectedCallback() {
926
935
  this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
927
- const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), r = this.shadowRoot.querySelector(".helper-text");
928
- 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")}` : ""}`, le(this, a);
936
+ const a = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"), r = this.shadowRoot.querySelector(".helper-text");
937
+ r.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${e.hasAttribute("accept") ? `Supported file types are ${e.getAttribute("accept")}` : ""}`, dt(this, a);
929
938
  }
930
939
  }
931
- const de = {
940
+ const mt = {
932
941
  name: "FileUpload",
933
942
  props: {
934
943
  maxfilesize: {
@@ -942,45 +951,45 @@ const de = {
942
951
  },
943
952
  mounted() {
944
953
  this.$nextTick(function() {
945
- window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", ce);
954
+ window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", ut);
946
955
  });
947
956
  }
948
957
  };
949
- function ue(e, a, t, r, i, s) {
958
+ function ht(t, a, e, r, i, o) {
950
959
  return u(), m("iam-fileupload", null, [
951
- v(e.$slots, "default")
960
+ v(t.$slots, "default")
952
961
  ]);
953
962
  }
954
- const io = /* @__PURE__ */ A(de, [["render", ue]]);
963
+ const nr = /* @__PURE__ */ S(mt, [["render", ht]]);
955
964
  /*!
956
- * iamKey v3.7.8
965
+ * iamKey v3.7.9-beta-2
957
966
  * Copyright 2022-2023 iamproperty
958
967
  */
959
- function me(e) {
960
- let a = e.querySelectorAll("details"), t = e.querySelectorAll("summary");
968
+ function ft(t) {
969
+ let a = t.querySelectorAll("details"), e = t.querySelectorAll("summary");
961
970
  if (a.forEach((r) => {
962
971
  r.classList.add("accordion-item");
963
- }), t.forEach((r) => {
972
+ }), e.forEach((r) => {
964
973
  r.classList.add("accordion-header"), r.classList.add("accordion-button"), r.classList.add("h4");
965
- }), !e.classList.contains("accordion--keep-open")) {
966
- const r = e.querySelectorAll(":scope > details");
974
+ }), !t.classList.contains("accordion--keep-open")) {
975
+ const r = t.querySelectorAll(":scope > details");
967
976
  r.forEach((i) => {
968
977
  i.addEventListener("click", () => {
969
- r.forEach((s) => {
970
- s !== i && s.removeAttribute("open");
978
+ r.forEach((o) => {
979
+ o !== i && o.removeAttribute("open");
971
980
  });
972
981
  });
973
982
  });
974
983
  }
975
984
  }
976
985
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "accordion" });
977
- let he = class extends HTMLElement {
986
+ let bt = class extends HTMLElement {
978
987
  constructor() {
979
988
  super(), this.attachShadow({ mode: "open" });
980
- 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");
989
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
981
990
  r.innerHTML = `
982
991
  <style>
983
- @import "${t}";
992
+ @import "${e}";
984
993
  \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 */
985
994
 
986
995
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -991,22 +1000,22 @@ let he = class extends HTMLElement {
991
1000
  `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
992
1001
  }
993
1002
  connectedCallback() {
994
- me(this);
1003
+ ft(this);
995
1004
  }
996
1005
  };
997
- window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", he);
998
- const fe = {
1006
+ window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", bt);
1007
+ const pt = {
999
1008
  name: "Accordion",
1000
1009
  props: {},
1001
1010
  mounted() {
1002
1011
  }
1003
- }, be = { ref: "wrapper" };
1004
- function pe(e, a, t, r, i, s) {
1005
- return u(), m("iam-accordion", be, [
1006
- v(e.$slots, "default")
1012
+ }, yt = { ref: "wrapper" };
1013
+ function gt(t, a, e, r, i, o) {
1014
+ return u(), m("iam-accordion", yt, [
1015
+ v(t.$slots, "default")
1007
1016
  ], 512);
1008
1017
  }
1009
- const lo = /* @__PURE__ */ A(fe, [["render", pe]]), ye = {
1018
+ const cr = /* @__PURE__ */ S(pt, [["render", gt]]), _t = {
1010
1019
  name: "AccordionItem",
1011
1020
  props: {
1012
1021
  title: {
@@ -1033,7 +1042,7 @@ const lo = /* @__PURE__ */ A(fe, [["render", pe]]), ye = {
1033
1042
  },
1034
1043
  computed: {
1035
1044
  createID() {
1036
- return (e) => `${Ct(e)}`;
1045
+ return (t) => `${Ne(t)}`;
1037
1046
  }
1038
1047
  },
1039
1048
  data() {
@@ -1041,24 +1050,24 @@ const lo = /* @__PURE__ */ A(fe, [["render", pe]]), ye = {
1041
1050
  show: !this.lazy
1042
1051
  };
1043
1052
  }
1044
- }, ge = ["id"], ve = ["classList"];
1045
- function _e(e, a, t, r, i, s) {
1053
+ }, vt = ["id"], wt = ["classList"];
1054
+ function At(t, a, e, r, i, o) {
1046
1055
  return u(), m("details", {
1047
- id: s.createID(t.title)
1056
+ id: o.createID(e.title)
1048
1057
  }, [
1049
1058
  d("summary", {
1050
- classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
1059
+ classList: `${e.titlecolour ? `bg-${e.titlecolour}` : ""}`
1051
1060
  }, [
1052
- ut(q(t.title), 1),
1053
- t.badge ? (u(), m("span", {
1061
+ he($(e.title), 1),
1062
+ e.badge ? (u(), m("span", {
1054
1063
  key: 0,
1055
- class: k(`badge bg-${t.badgecolour}`)
1056
- }, q(t.badge), 3)) : g("", !0)
1057
- ], 8, ve),
1058
- v(e.$slots, "default")
1059
- ], 8, ge);
1064
+ class: L(`badge bg-${e.badgecolour}`)
1065
+ }, $(e.badge), 3)) : g("", !0)
1066
+ ], 8, wt),
1067
+ v(t.$slots, "default")
1068
+ ], 8, vt);
1060
1069
  }
1061
- const co = /* @__PURE__ */ A(ye, [["render", _e]]), we = {
1070
+ const dr = /* @__PURE__ */ S(_t, [["render", At]]), St = {
1062
1071
  name: "Header",
1063
1072
  props: {
1064
1073
  title: {
@@ -1075,163 +1084,92 @@ const co = /* @__PURE__ */ A(ye, [["render", _e]]), we = {
1075
1084
  required: !1
1076
1085
  }
1077
1086
  }
1078
- }, Ae = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, Se = { class: "pt-5 pb-3 px-4" }, xe = { class: "col-sm-6 col-md-5 ms-auto" }, $e = ["src"];
1079
- function qe(e, a, t, r, i, s) {
1080
- return u(), m("div", Ae, [
1087
+ }, Lt = { class: "container" }, kt = { class: "row" }, qt = { class: "col-sm-6" }, $t = { class: "pt-5 pb-3 px-4" }, xt = { class: "col-sm-6 col-md-5 ms-auto" }, Et = ["src"];
1088
+ function Tt(t, a, e, r, i, o) {
1089
+ return u(), m("div", Lt, [
1081
1090
  d("div", {
1082
- class: k("bg-" + t.background + " mb-4")
1091
+ class: L("bg-" + e.background + " mb-4")
1083
1092
  }, [
1084
- d("div", ke, [
1085
- d("div", Le, [
1086
- d("div", Se, [
1087
- d("h2", null, q(t.title), 1),
1088
- v(e.$slots, "default")
1093
+ d("div", kt, [
1094
+ d("div", qt, [
1095
+ d("div", $t, [
1096
+ d("h2", null, $(e.title), 1),
1097
+ v(t.$slots, "default")
1089
1098
  ])
1090
1099
  ]),
1091
- d("div", xe, [
1092
- t.image ? (u(), m("img", {
1100
+ d("div", xt, [
1101
+ e.image ? (u(), m("img", {
1093
1102
  key: 0,
1094
- src: t.image,
1103
+ src: e.image,
1095
1104
  alt: "",
1096
1105
  class: "h-100 w-100 object-cover"
1097
- }, null, 8, $e)) : g("", !0)
1106
+ }, null, 8, Et)) : g("", !0)
1098
1107
  ])
1099
1108
  ])
1100
1109
  ], 2)
1101
1110
  ]);
1102
1111
  }
1103
- const uo = /* @__PURE__ */ A(we, [["render", qe]]);
1104
- /*!
1105
- * iamKey v3.7.8
1106
- * Copyright 2022-2023 iamproperty
1107
- */
1108
- window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Card" });
1109
- let Ee = class extends HTMLElement {
1110
- constructor() {
1111
- super(), this.attachShadow({ mode: "open" }), this.querySelector('[class*="fa-"]') && this.classList.add("card--has-icon");
1112
- let a = this.classList.toString();
1113
- const t = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", r = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${t}/css/core.min.css`, i = document.createElement("template");
1114
- i.innerHTML = `
1115
- <style>
1116
- @import "${r}";
1117
- .card{--card-icon-right: 1rem;box-shadow:var(--card-box-shadow);border-radius:var(--card-border-radius);position:relative;font-weight:bold;font-size:1.125rem;line-height:1.5rem;color:var(--colour-primary);min-height:100%;width:100%;text-align:left;display:block;overflow:hidden;z-index:0;background:var(--colour-canvas-2);outline:var(--contrast-outline-width, 0px) solid var(--colour-primary);outline-offset:-1px}.card.border-0{box-shadow:none;--card-left-padding: 0rem;outline-offset:1px !important}.card__body{position:relative;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1}.card:before,.card:after{content:"";position:absolute;right:var(--card-icon-right);bottom:var(--card-bottom-padding);height:1.5rem;width:1.5rem;background:var(--colour-warning);border-radius:50%}.card:after{background:var(--colour-primary-theme);mask-image:var(--icon-arrow);mask-size:50%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-arrow);-webkit-mask-size:50%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%;z-index:2}.card:is(:hover,:focus,.hover){--card-icon-right: 0.5rem;outline:2px solid var(--colour, var(--colour-primary));outline-offset:-2px}.card:not([class*=colour-]):is(:hover,:focus,.hover):before{background:var(--colour-primary-theme)}.card:not([class*=colour-]):is(:hover,:focus,.hover):after{background:#fff}.card:is(:active,.active){--card-icon-right: 0.5rem;outline:none}.card:is(:active,.active):before{background:var(--colour-warning)}.card:is(:active,.active):after{background:var(--colour-primary)}.card:is(:active){background:#fcfcfc}.card span{display:block;font-weight:bold;padding-top:1.5rem;font-size:1rem}.card:has(.card__illustration) .card__body{align-items:center;display:flex}.card:has(.card__illustration) .card__body .card__illustration{height:4rem;width:4rem;margin-right:1.5rem;margin-top:-1.25rem;margin-bottom:-1.25rem;position:relative}.card:has(.card__illustration) .card__body .card__illustration img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}::slotted(i){font-size:1.5rem;margin:-3px var(--card-icon-right) 0 0;font-weight:400;vertical-align:middle}::slotted(span){display:block;font-weight:normal;padding-top:1.5rem;font-size:1rem}.card[class*=colour-],.card--filter{border-left:0.75rem solid var(--colour, var(--colour-primary))}.card--filter{--top-padding: 1.5rem;--right-padding: 1rem;--bottom-padding: 1.5rem;--left-padding: 1rem}.card--filter:has(.card__total) .card__body{align-items:center;display:flex}.card--filter:before,.card--filter:after{display:none}.card--filter:is(:hover,:focus,.hover){outline:none}.card--filter:is(:hover,:focus,.hover) .card__body{background:#eee}.card--filter:is(:active,.active) .card__body{background:#e0e0e0}.card--filter:is(:checked,.checked){outline:2px solid var(--colour, var(--colour-info));outline-offset:-2px}.card--filter:is(:checked,.checked) .card__body{background:#e0e0e0}.card--filter.card--has-icon{--bottom-padding: 1rem;border:none}.card--filter .icon{font-size:1.125rem !important;height:1.125rem !important;margin:0 0 .5rem 0 !important;font-weight:400 !important;display:block !important}.card--filter .card__total{font-size:3rem;line-height:3rem;padding-right:1rem}@media screen and (prefers-color-scheme: dark){.card--filter .card__body{background:none !important}.card--filter:is(:hover,:focus,.hover,:active,.active):not(:checked,.checked){outline:2px solid var(--colour, var(--colour-primary)) !important;outline-offset:-2px}}.card--filter ::slotted(i){display:block !important;font-size:1.125rem !important;margin:0 0 .5rem 0 !important}.card:has(.card__head) .card__head{padding-bottom:0;padding-top:27%;position:relative;overflow:hidden;background:rgba(0,0,0,.1);z-index:-1}.card:has(.card__head) .card__head>img{position:absolute;top:0;left:0;width:102%;height:102%;object-fit:cover}.card.card--lg-image:has(.card__head) .card__head{padding-top:55%}.card:has(.card__footer):after{display:none}.card:has(.card__footer) .card__footer{position:relative;background:#fff;padding:var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);z-index:-1;display:block}/*# sourceMappingURL=assets/css/components/card.css.map */
1118
-
1119
- ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1120
- </style>
1121
- <div class="card ${a}" tabindex="0" role="button">
1122
- ${this.hasAttribute("data-image") ? `<div class="card__head"><img src="${this.getAttribute("data-image")}" alt="" loading="lazy" /></div>` : ""}
1123
- <div class="card__body">
1124
- ${this.classList.contains("card--filter") && this.hasAttribute("data-total") ? `<div class="card__total">${this.getAttribute("data-total")}</div>` : ""}
1125
- ${this.hasAttribute("data-illustration") ? `<div class="card__illustration"><img src="${this.getAttribute("data-illustration")}" alt="" loading="lazy" /></div>` : ""}
1126
- <slot></slot>
1127
- </div>
1128
- ${this.hasAttribute("data-cta") ? `<div class="card__footer"><span class="link">${this.getAttribute("data-cta")}</span></div>` : ""}
1129
- </div>
1130
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
1131
- }
1132
- connectedCallback() {
1133
- this.classList.add("loaded");
1134
- const a = this.parentNode.closest("a, button, label"), t = this.shadowRoot.querySelector(".card");
1135
- a.setAttribute("tabindex", "-1"), a.matches("label[for]") && (document.getElementById(a.getAttribute("for")).checked ? t.classList.add("checked") : t.classList.remove("checked")), t.addEventListener("click", (r) => {
1136
- if (a.matches("label[for]")) {
1137
- r.stopPropagation(), r.preventDefault();
1138
- const i = document.getElementById(a.getAttribute("for")), s = i.getAttribute("name"), o = i.getAttribute("id");
1139
- Array.from(document.querySelectorAll(`[name="${s}"]:not([id="${o}"])`)).forEach((l, n) => {
1140
- document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"));
1141
- }), a.click(), i.checked ? t.classList.add("checked") : t.classList.remove("checked");
1142
- }
1143
- }), this.addEventListener("inactive", (r) => {
1144
- t.classList.remove("checked");
1145
- }), t.addEventListener("keydown", (r) => {
1146
- switch (r.keyCode) {
1147
- case 32:
1148
- case 13:
1149
- if (a.matches("label[for]")) {
1150
- r.stopPropagation(), r.preventDefault();
1151
- const i = document.getElementById(a.getAttribute("for")), s = i.getAttribute("name"), o = i.getAttribute("id");
1152
- Array.from(document.querySelectorAll(`[name="${s}"]:not([id="${o}"])`)).forEach((l, n) => {
1153
- document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"));
1154
- }), a.click(), i.checked ? t.classList.add("checked") : t.classList.remove("checked");
1155
- } else
1156
- a.click();
1157
- break;
1158
- }
1159
- });
1160
- }
1161
- static get observedAttributes() {
1162
- return ["data-total", "class"];
1163
- }
1164
- attributeChangedCallback(a, t, r) {
1165
- switch (a) {
1166
- case "data-total": {
1167
- this.shadowRoot.querySelector(".card__total").innerHTML = r;
1168
- break;
1169
- }
1170
- case "class": {
1171
- let i = this.classList.toString();
1172
- this.querySelector('[class*="fa-"]') && (i += " card--has-icon"), this.shadowRoot.querySelector(".card").setAttribute("class", `card ${i}`);
1173
- break;
1174
- }
1175
- }
1176
- }
1177
- };
1178
- const Te = {
1112
+ const ur = /* @__PURE__ */ S(St, [["render", Tt]]), Mt = {
1179
1113
  name: "Card",
1180
1114
  mounted() {
1181
1115
  this.$nextTick(function() {
1182
- window.customElements.get("iam-card") || window.customElements.define("iam-card", Ee);
1116
+ import("./card.component.min-e393effa.mjs").then((t) => {
1117
+ window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
1118
+ }).catch((t) => {
1119
+ console.log(t.message);
1120
+ });
1183
1121
  });
1184
1122
  }
1185
1123
  };
1186
- function Me(e, a, t, r, i, s) {
1124
+ function Ht(t, a, e, r, i, o) {
1187
1125
  return u(), m("iam-card", null, [
1188
- v(e.$slots, "default")
1126
+ v(t.$slots, "default")
1189
1127
  ]);
1190
1128
  }
1191
- const He = /* @__PURE__ */ A(Te, [["render", Me]]);
1192
- function Ce(e) {
1129
+ const Ct = /* @__PURE__ */ S(Mt, [["render", Ht]]);
1130
+ function Dt(t) {
1193
1131
  var a;
1194
- let t = e.querySelector(".carousel__inner"), r = e.querySelectorAll(".carousel__item").length;
1195
- e.getAttribute("data-cols");
1196
- let i = e.getAttribute("data-sm-cols"), s = e.getAttribute("data-md-cols");
1197
- e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
1132
+ let e = t.querySelector(".carousel__inner"), r = t.querySelectorAll(".carousel__item").length;
1133
+ t.getAttribute("data-cols");
1134
+ let i = t.getAttribute("data-sm-cols"), o = t.getAttribute("data-md-cols");
1135
+ t.querySelector(".carousel__controls a").classList.add("active"), e.addEventListener("scroll", function(s) {
1198
1136
  clearTimeout(a), a = setTimeout(function() {
1199
- let l = t.clientWidth, n = t.scrollWidth, c = t.scrollLeft, h = Math.round(c / n * r) + 1, f = e.querySelector(".carousel__item:last-child").offsetLeft;
1200
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b, p) => {
1201
- b.classList.remove("active");
1202
- }), 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 > f ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1137
+ let l = e.clientWidth, c = e.scrollWidth, n = e.scrollLeft, f = Math.round(n / c * r) + 1, p = t.querySelector(".carousel__item:last-child").offsetLeft;
1138
+ Array.from(t.querySelectorAll(".carousel__controls a")).forEach((h, b) => {
1139
+ h.classList.remove("active");
1140
+ }), t.querySelector(".control-" + f).classList.add("active"), f == 1 ? t.querySelector(".btn-prev").setAttribute("disabled", "disabled") : t.querySelector(".btn-prev").removeAttribute("disabled"), e.scrollLeft + l > p ? t.querySelector(".btn-next").setAttribute("disabled", "disabled") : t.querySelector(".btn-next").removeAttribute("disabled");
1203
1141
  }, 100);
1204
- }, !1), e.addEventListener("click", function(o) {
1205
- for (var l = o.target; l && l != this; l = l.parentNode)
1142
+ }, !1), t.addEventListener("click", function(s) {
1143
+ for (var l = s.target; l && l != this; l = l.parentNode)
1206
1144
  if (l.matches(".carousel__controls a")) {
1207
- o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((c, h) => {
1208
- c.classList.remove("active");
1145
+ s.preventDefault(), Array.from(t.querySelectorAll(".carousel__controls a")).forEach((n, f) => {
1146
+ n.classList.remove("active");
1209
1147
  }), l.classList.add("active");
1210
- const n = document.querySelector(l.getAttribute("href"));
1211
- t.scroll({
1148
+ const c = document.querySelector(l.getAttribute("href"));
1149
+ e.scroll({
1212
1150
  top: 0,
1213
- left: n.offsetLeft,
1151
+ left: c.offsetLeft,
1214
1152
  behavior: "smooth"
1215
1153
  });
1216
1154
  break;
1217
1155
  }
1218
- }, !1), e.addEventListener("click", function(o) {
1219
- for (var l = o.target; l && l != this; l = l.parentNode)
1156
+ }, !1), t.addEventListener("click", function(s) {
1157
+ for (var l = s.target; l && l != this; l = l.parentNode)
1220
1158
  if (l.matches(".btn-next, .btn-prev")) {
1221
- o.preventDefault();
1222
- let n = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1223
- t.scroll({
1159
+ s.preventDefault();
1160
+ let c = l.classList.contains("btn-prev") ? e.scrollLeft - e.clientWidth : e.scrollLeft + e.clientWidth;
1161
+ e.scroll({
1224
1162
  top: 0,
1225
- left: n,
1163
+ left: c,
1226
1164
  behavior: "smooth"
1227
1165
  });
1228
1166
  break;
1229
1167
  }
1230
- }, !1), r == 1 && e.classList.add("hide-btns"), i >= r && e.classList.add("hide-sm-btns"), s >= r && e.classList.add("hide-md-btns");
1168
+ }, !1), r == 1 && t.classList.add("hide-btns"), i >= r && t.classList.add("hide-sm-btns"), o >= r && t.classList.add("hide-md-btns");
1231
1169
  }
1232
- const De = {
1170
+ const Nt = {
1233
1171
  components: {
1234
- Card: He
1172
+ Card: Ct
1235
1173
  },
1236
1174
  name: "Carousel",
1237
1175
  data() {
@@ -1300,93 +1238,93 @@ const De = {
1300
1238
  },
1301
1239
  computed: {
1302
1240
  content() {
1303
- return (e) => `${e.image ? `<img src="${e.image}" alt="" />` : ""}${e.content ? e.content : ""}`;
1241
+ return (t) => `${t.image ? `<img src="${t.image}" alt="" />` : ""}${t.content ? t.content : ""}`;
1304
1242
  }
1305
1243
  },
1306
1244
  mounted() {
1307
1245
  this.id = this._uid, this.$nextTick(function() {
1308
- Ce(this.$refs.wrapper);
1246
+ Dt(this.$refs.wrapper);
1309
1247
  });
1310
1248
  }
1311
- }, Ne = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Re = { class: "carousel__wrapper" }, ze = { class: "carousel__inner" }, Ie = ["id"], Pe = ["innerHTML", "id"], Be = ["href"], Fe = /* @__PURE__ */ d("button", {
1249
+ }, Rt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], zt = { class: "carousel__wrapper" }, It = { class: "carousel__inner" }, Pt = ["id"], Ft = ["innerHTML", "id"], jt = ["href"], Bt = /* @__PURE__ */ d("button", {
1312
1250
  class: "btn btn-prev",
1313
1251
  "data-go": "0",
1314
1252
  disabled: ""
1315
- }, "Prev", -1), je = /* @__PURE__ */ d("button", {
1253
+ }, "Prev", -1), Ot = /* @__PURE__ */ d("button", {
1316
1254
  class: "btn btn-next",
1317
1255
  "data-go": "2"
1318
1256
  }, "Next", -1);
1319
- function Oe(e, a, t, r, i, s) {
1320
- const o = z("Card");
1257
+ function Vt(t, a, e, r, i, o) {
1258
+ const s = R("Card");
1321
1259
  return u(), m("div", {
1322
1260
  class: "container carousel",
1323
1261
  id: "carousel" + i.id,
1324
1262
  ref: "wrapper",
1325
- "data-cols": t.cols,
1326
- "data-sm-cols": t.smcols,
1327
- "data-md-cols": t.mdcols
1263
+ "data-cols": e.cols,
1264
+ "data-sm-cols": e.smcols,
1265
+ "data-md-cols": e.mdcols
1328
1266
  }, [
1329
- v(e.$slots, "default"),
1330
- d("div", Re, [
1331
- d("div", ze, [
1332
- t.type == "card" ? (u(), m("div", {
1267
+ v(t.$slots, "default"),
1268
+ d("div", zt, [
1269
+ d("div", It, [
1270
+ e.type == "card" ? (u(), m("div", {
1333
1271
  key: 0,
1334
- class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1272
+ class: L(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1335
1273
  }, [
1336
- (u(!0), m(T, null, M(t.items, (l, n) => (u(), m("div", {
1337
- class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1338
- key: n,
1339
- id: "carousel" + i.id + "slide" + (n + 1)
1274
+ (u(!0), m(T, null, M(e.items, (l, c) => (u(), m("div", {
1275
+ class: L(`col carousel__item${e.colclass ? ` ${e.colclass}` : ""}`),
1276
+ key: c,
1277
+ id: "carousel" + i.id + "slide" + (c + 1)
1340
1278
  }, [
1341
- $(o, H(l, {
1342
- class: t.cardclass,
1343
- type: t.cardtype,
1344
- btnyype: t.btntype,
1345
- titleclass: t.titleclass,
1346
- ctatext: t.ctatext,
1347
- hidectatext: t.hidectatext
1279
+ q(s, H(l, {
1280
+ class: e.cardclass,
1281
+ type: e.cardtype,
1282
+ btnyype: e.btntype,
1283
+ titleclass: e.titleclass,
1284
+ ctatext: e.ctatext,
1285
+ hidectatext: e.hidectatext
1348
1286
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1349
- ], 10, Ie))), 128))
1287
+ ], 10, Pt))), 128))
1350
1288
  ], 2)) : g("", !0),
1351
- t.type != "card" ? (u(), m("div", {
1289
+ e.type != "card" ? (u(), m("div", {
1352
1290
  key: 1,
1353
- class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1291
+ class: L(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1354
1292
  }, [
1355
- (u(!0), m(T, null, M(t.items, (l, n) => (u(), m("div", {
1356
- class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1357
- key: n,
1358
- innerHTML: s.content(l),
1359
- id: "carousel" + i.id + "slide" + (n + 1)
1360
- }, null, 10, Pe))), 128))
1293
+ (u(!0), m(T, null, M(e.items, (l, c) => (u(), m("div", {
1294
+ class: L(`col carousel__item${e.colclass ? ` ${e.colclass}` : ""}`),
1295
+ key: c,
1296
+ innerHTML: o.content(l),
1297
+ id: "carousel" + i.id + "slide" + (c + 1)
1298
+ }, null, 10, Ft))), 128))
1361
1299
  ], 2)) : g("", !0)
1362
1300
  ]),
1363
1301
  d("div", {
1364
- class: k(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1302
+ class: L(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
1365
1303
  }, [
1366
- (u(!0), m(T, null, M(t.items, (l, n) => (u(), m("a", {
1367
- key: n,
1368
- href: "#carousel" + i.id + "slide" + (n + 1),
1369
- class: k(`control-${n + 1}`)
1370
- }, "Slide " + q(n + 1), 11, Be))), 128))
1304
+ (u(!0), m(T, null, M(e.items, (l, c) => (u(), m("a", {
1305
+ key: c,
1306
+ href: "#carousel" + i.id + "slide" + (c + 1),
1307
+ class: L(`control-${c + 1}`)
1308
+ }, "Slide " + $(c + 1), 11, jt))), 128))
1371
1309
  ], 2),
1372
- Fe,
1373
- je
1310
+ Bt,
1311
+ Ot
1374
1312
  ])
1375
- ], 8, Ne);
1313
+ ], 8, Rt);
1376
1314
  }
1377
- const ho = /* @__PURE__ */ A(De, [["render", Oe]]);
1315
+ const mr = /* @__PURE__ */ S(Nt, [["render", Vt]]);
1378
1316
  /*!
1379
- * iamKey v3.7.8
1317
+ * iamKey v3.7.9-beta-2
1380
1318
  * Copyright 2022-2023 iamproperty
1381
1319
  */
1382
1320
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
1383
- class Ve extends HTMLElement {
1321
+ class Ut extends HTMLElement {
1384
1322
  constructor() {
1385
1323
  super(), this.attachShadow({ mode: "open" });
1386
- 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");
1324
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
1387
1325
  r.innerHTML = `
1388
1326
  <style>
1389
- @import "${t}";
1327
+ @import "${e}";
1390
1328
  .header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);margin-bottom:2rem;position:relative;overflow:hidden;max-width:100% !important}@media screen and (min-width: 62em){.header-banner{min-height:29.375rem}}.header-banner>.container{padding-bottom:0;position:relative}.header-banner .breadcrumb{margin-top:1.5rem;margin-bottom:-0.5rem}@media screen and (min-width: 62em){.header-banner .breadcrumb{position:absolute;top:0;left:3.75rem}}.header-banner__inner{--colour-muted: #9d9d9d;--colour-body: #595959;--colour-border: #D8D8D8;--colour-link: var(--colour-primary-theme);--colour-brand: var(--colour-primary);--colour-underline: var(--colour-secondary);--colour-heading: var(--colour-primary);--colour-focus: var(--colour-primary-theme);--colour-hover: var(--colour-primary-theme);--colour-active: var(--colour-primary-theme);--colour-selected: var(--colour-info);--colour-inverted: #FCFCFC;--colour-btn: var(--colour-primary-theme);--colour-btn-bg: var(--colour-warning);--colour-btn-border: var(--colour-warning);--colour-btn-bg-hover: transparent;--colour-btn-hover: var(--colour-primary-theme);--colour-btn-secondary: var(--colour-primary-theme);--colour-btn-secondary-border: var(--colour-primary-theme);--colour-btn-secondary-bg: transparent;--colour-btn-secondary-bg-hover: var(--colour-primary-theme);--colour-btn-secondary-hover: var(--colour-inverted);--colour-canvas-2: var(--colour-canvas);color:var(--colour-body);background:#fff;padding:2rem;margin:1.875rem 0;position:relative;z-index:var(--index-above)}.header-banner__inner .text-primary{color:var(--colour-primary) !important}@media screen and (min-width: 62em){.header-banner__inner{max-width:37.5rem;margin:7rem 0 5rem 0;padding:3.5rem 4rem}}.header-banner__inner>*:last-child{padding-bottom:0;margin-bottom:0}.header-banner picture img{display:none}@media screen and (min-width: 62em){.header-banner picture img{display:block;position:absolute;top:-0.5%;left:40%;height:101%;object-fit:cover;width:60%;pointer-events:none}}::slotted(.breadcrumb){margin-top:1.5rem !important;margin-bottom:-0.5rem !important}@media screen and (min-width: 62em){::slotted(.breadcrumb){position:absolute !important;top:0 !important;left:5.25rem !important}}::slotted(*:last-child){padding-bottom:0 !important;margin-bottom:0 !important}/*# sourceMappingURL=assets/css/components/header.css.map */
1391
1329
 
1392
1330
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -1409,11 +1347,11 @@ class Ve extends HTMLElement {
1409
1347
  }
1410
1348
  connectedCallback() {
1411
1349
  this.classList.add("loaded");
1412
- const a = this.shadowRoot.querySelector("picture"), t = this.shadowRoot.querySelector("picture source");
1413
- this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1350
+ const a = this.shadowRoot.querySelector("picture"), e = this.shadowRoot.querySelector("picture source");
1351
+ this.hasAttribute("image") ? e.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1414
1352
  }
1415
1353
  }
1416
- const Ue = {
1354
+ const Wt = {
1417
1355
  name: "Header",
1418
1356
  props: {
1419
1357
  title: {
@@ -1427,53 +1365,53 @@ const Ue = {
1427
1365
  },
1428
1366
  mounted() {
1429
1367
  this.$nextTick(function() {
1430
- window.customElements.get("iam-header") || window.customElements.define("iam-header", Ve);
1368
+ window.customElements.get("iam-header") || window.customElements.define("iam-header", Ut);
1431
1369
  });
1432
1370
  }
1433
- }, We = ["image"], Ge = ["innerHTML"];
1434
- function Ke(e, a, t, r, i, s) {
1371
+ }, Gt = ["image"], Kt = ["innerHTML"];
1372
+ function Yt(t, a, e, r, i, o) {
1435
1373
  return u(), m("iam-header", {
1436
1374
  class: "bg-secondary",
1437
- image: t.image
1375
+ image: e.image
1438
1376
  }, [
1439
- v(e.$slots, "breadcrumb"),
1440
- t.title ? (u(), m("h1", {
1377
+ v(t.$slots, "breadcrumb"),
1378
+ e.title ? (u(), m("h1", {
1441
1379
  key: 0,
1442
- innerHTML: t.title
1443
- }, null, 8, Ge)) : g("", !0),
1444
- v(e.$slots, "default")
1445
- ], 8, We);
1380
+ innerHTML: e.title
1381
+ }, null, 8, Kt)) : g("", !0),
1382
+ v(t.$slots, "default")
1383
+ ], 8, Gt);
1446
1384
  }
1447
- const fo = /* @__PURE__ */ A(Ue, [["render", Ke]]);
1448
- function Ye(e) {
1385
+ const hr = /* @__PURE__ */ S(Wt, [["render", Yt]]);
1386
+ function Zt(t) {
1449
1387
  var a;
1450
- const t = e.querySelector(".testimonial__images"), r = t.querySelectorAll("img").length;
1388
+ const e = t.querySelector(".testimonial__images"), r = e.querySelectorAll("img").length;
1451
1389
  if (r == 1)
1452
1390
  return !1;
1453
- e.classList.add("testimonial--multi");
1454
- const i = function(s) {
1455
- const o = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1456
- o.setAttribute("data-go", s + 1), l.setAttribute("data-go", s - 1), o.removeAttribute("disabled"), l.removeAttribute("disabled"), s == 1 ? l.setAttribute("disabled", !0) : s == r && o.setAttribute("disabled", !0);
1391
+ t.classList.add("testimonial--multi");
1392
+ const i = function(o) {
1393
+ const s = t.querySelector(".btn-next"), l = t.querySelector(".btn-prev");
1394
+ s.setAttribute("data-go", o + 1), l.setAttribute("data-go", o - 1), s.removeAttribute("disabled"), l.removeAttribute("disabled"), o == 1 ? l.setAttribute("disabled", !0) : o == r && s.setAttribute("disabled", !0);
1457
1395
  };
1458
- t.addEventListener("scroll", function(s) {
1396
+ e.addEventListener("scroll", function(o) {
1459
1397
  clearTimeout(a), a = setTimeout(function() {
1460
- let o = t.scrollWidth, l = t.scrollHeight, n = t.scrollLeft, c = t.scrollTop, h = Math.round(n / o * r) + 1;
1461
- n == 0 && c != 0 && (h = Math.round(c / l * r) + 1), e.setAttribute("data-show", h), i(h);
1398
+ let s = e.scrollWidth, l = e.scrollHeight, c = e.scrollLeft, n = e.scrollTop, f = Math.round(c / s * r) + 1;
1399
+ c == 0 && n != 0 && (f = Math.round(n / l * r) + 1), t.setAttribute("data-show", f), i(f);
1462
1400
  }, 300);
1463
- }, !1), e.addEventListener("click", function(s) {
1464
- for (var o = s.target; o && o != this; o = o.parentNode)
1465
- if (o.matches("[data-go]")) {
1466
- let l = parseInt(o.getAttribute("data-go")), n = 0, c = 0, h = t.scrollWidth, f = t.scrollHeight;
1467
- h > f ? c = Math.floor(h * ((l - 1) / r)) : n = Math.floor(f * ((l - 1) / r)), t.scroll({
1468
- top: n,
1469
- left: c,
1401
+ }, !1), t.addEventListener("click", function(o) {
1402
+ for (var s = o.target; s && s != this; s = s.parentNode)
1403
+ if (s.matches("[data-go]")) {
1404
+ let l = parseInt(s.getAttribute("data-go")), c = 0, n = 0, f = e.scrollWidth, p = e.scrollHeight;
1405
+ f > p ? n = Math.floor(f * ((l - 1) / r)) : c = Math.floor(p * ((l - 1) / r)), e.scroll({
1406
+ top: c,
1407
+ left: n,
1470
1408
  behavior: "smooth"
1471
1409
  });
1472
1410
  break;
1473
1411
  }
1474
1412
  }, !1);
1475
1413
  }
1476
- const Ze = {
1414
+ const Xt = {
1477
1415
  name: "Testimonial",
1478
1416
  props: {
1479
1417
  items: {
@@ -1487,13 +1425,13 @@ const Ze = {
1487
1425
  }
1488
1426
  },
1489
1427
  mounted() {
1490
- Ye(this.$refs.wrapper);
1428
+ Zt(this.$refs.wrapper);
1491
1429
  }
1492
- }, Je = {
1430
+ }, Jt = {
1493
1431
  class: "container testimonial mb-5",
1494
1432
  "data-show": "1",
1495
1433
  ref: "wrapper"
1496
- }, Xe = { class: "row" }, Qe = { class: "col-md-5 position-relative" }, ta = { class: "testimonial__images" }, ea = ["src"], aa = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
1434
+ }, Qt = { class: "row" }, ea = { class: "col-md-5 position-relative" }, ta = { class: "testimonial__images" }, aa = ["src"], sa = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
1497
1435
  /* @__PURE__ */ d("button", {
1498
1436
  "data-go": "0",
1499
1437
  disabled: "",
@@ -1503,52 +1441,52 @@ const Ze = {
1503
1441
  "data-go": "2",
1504
1442
  class: "btn-next"
1505
1443
  }, "Next")
1506
- ], -1), ra = { class: "col-md-7" }, oa = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), sa = { class: "testimonial__content" }, ia = ["innerHTML"], na = ["innerHTML"], la = { class: "testimonial__after" }, ca = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1507
- function da(e, a, t, r, i, s) {
1508
- return u(), m("div", Je, [
1444
+ ], -1), ra = { class: "col-md-7" }, oa = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), ia = { class: "testimonial__content" }, na = ["innerHTML"], la = ["innerHTML"], ca = { class: "testimonial__after" }, da = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1445
+ function ua(t, a, e, r, i, o) {
1446
+ return u(), m("div", Jt, [
1509
1447
  d("div", {
1510
- class: k("bg-" + t.background)
1448
+ class: L("bg-" + e.background)
1511
1449
  }, [
1512
- d("div", Xe, [
1513
- d("div", Qe, [
1450
+ d("div", Qt, [
1451
+ d("div", ea, [
1514
1452
  d("div", ta, [
1515
- (u(!0), m(T, null, M(t.items, (o, l) => (u(), m("img", {
1453
+ (u(!0), m(T, null, M(e.items, (s, l) => (u(), m("img", {
1516
1454
  key: l,
1517
- src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1455
+ src: s.image ? s.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1518
1456
  alt: "",
1519
- class: k("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
1520
- }, null, 10, ea))), 128))
1457
+ class: L("h-100 w-100 object-cover" + (s.image ? "" : " opacity-0"))
1458
+ }, null, 10, aa))), 128))
1521
1459
  ]),
1522
- aa
1460
+ sa
1523
1461
  ]),
1524
1462
  d("div", ra, [
1525
1463
  oa,
1526
- d("div", sa, [
1527
- (u(!0), m(T, null, M(t.items, (o, l) => (u(), m("blockquote", {
1464
+ d("div", ia, [
1465
+ (u(!0), m(T, null, M(e.items, (s, l) => (u(), m("blockquote", {
1528
1466
  key: l,
1529
- class: k(o.class)
1467
+ class: L(s.class)
1530
1468
  }, [
1531
1469
  d("div", {
1532
- innerHTML: o.quote
1533
- }, null, 8, ia),
1470
+ innerHTML: s.quote
1471
+ }, null, 8, na),
1534
1472
  d("cite", {
1535
- innerHTML: o.cite
1536
- }, null, 8, na)
1473
+ innerHTML: s.cite
1474
+ }, null, 8, la)
1537
1475
  ], 2))), 128))
1538
1476
  ]),
1539
- d("div", la, [
1540
- v(e.$slots, "default")
1477
+ d("div", ca, [
1478
+ v(t.$slots, "default")
1541
1479
  ])
1542
1480
  ])
1543
1481
  ]),
1544
- ca
1482
+ da
1545
1483
  ], 2)
1546
1484
  ], 512);
1547
1485
  }
1548
- const bo = /* @__PURE__ */ A(Ze, [["render", da]]);
1549
- const ua = {
1486
+ const fr = /* @__PURE__ */ S(Xt, [["render", ua]]);
1487
+ const ma = {
1550
1488
  components: {
1551
- Input: Y
1489
+ Input: Z
1552
1490
  },
1553
1491
  name: "PropertySearchbar",
1554
1492
  props: {
@@ -1673,8 +1611,8 @@ const ua = {
1673
1611
  };
1674
1612
  },
1675
1613
  methods: {
1676
- locationKeyup: function(e) {
1677
- this.$emit("locationKeyup", e);
1614
+ locationKeyup: function(t) {
1615
+ this.$emit("locationKeyup", t);
1678
1616
  }
1679
1617
  },
1680
1618
  computed: {
@@ -1682,8 +1620,8 @@ const ua = {
1682
1620
  get() {
1683
1621
  return this.locationSave ? this.locationSave : this.location;
1684
1622
  },
1685
- set(e) {
1686
- this.locationSave = e, this.$emit("input", e);
1623
+ set(t) {
1624
+ this.locationSave = t, this.$emit("input", t);
1687
1625
  }
1688
1626
  },
1689
1627
  locationsList() {
@@ -1692,125 +1630,125 @@ const ua = {
1692
1630
  ];
1693
1631
  }
1694
1632
  }
1695
- }, ma = {
1633
+ }, ha = {
1696
1634
  class: "container",
1697
1635
  ref: "wrapper"
1698
- }, ha = { class: "property-searchbar" }, fa = ["action", "method"], ba = { class: "col-12 col-md-3" }, pa = { class: "col-12 col-md" }, ya = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ga = {
1636
+ }, fa = { class: "property-searchbar" }, ba = ["action", "method"], pa = { class: "col-12 col-md-3" }, ya = { class: "col-12 col-md" }, ga = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), _a = {
1699
1637
  class: "row",
1700
1638
  "data-input-range": ""
1701
- }, va = { class: "col-12 col-md" }, _a = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), wa = {
1639
+ }, va = { class: "col-12 col-md" }, wa = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Aa = {
1702
1640
  class: "row",
1703
1641
  "data-input-range": ""
1704
- }, Aa = { class: "col-12 col-md-2" }, ka = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1642
+ }, Sa = { class: "col-12 col-md-2" }, La = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1705
1643
  /* @__PURE__ */ d("button", {
1706
1644
  class: "btn w-100 me-0",
1707
1645
  type: "submit",
1708
1646
  value: "submit"
1709
1647
  }, "Search")
1710
1648
  ], -1);
1711
- function La(e, a, t, r, i, s) {
1712
- const o = z("Input");
1713
- return u(), m("div", ma, [
1714
- v(e.$slots, "default"),
1715
- d("div", ha, [
1649
+ function ka(t, a, e, r, i, o) {
1650
+ const s = R("Input");
1651
+ return u(), m("div", ha, [
1652
+ v(t.$slots, "default"),
1653
+ d("div", fa, [
1716
1654
  d("form", {
1717
1655
  class: "row",
1718
- action: t.formaction,
1719
- method: t.formmethod
1656
+ action: e.formaction,
1657
+ method: e.formmethod
1720
1658
  }, [
1721
- d("fieldset", ba, [
1722
- $(o, {
1659
+ d("fieldset", pa, [
1660
+ q(s, {
1723
1661
  inputClass: "input--locations",
1724
- modelValue: s.locationSet,
1725
- "onUpdate:modelValue": a[0] || (a[0] = (l) => s.locationSet = l),
1662
+ modelValue: o.locationSet,
1663
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.locationSet = l),
1726
1664
  label: "Location",
1727
1665
  id: "location",
1728
- options: s.locationsList(),
1666
+ options: o.locationsList(),
1729
1667
  required: "",
1730
1668
  placeholder: "i.e. Newcastle or NE1",
1731
- onKeyupEvent: a[1] || (a[1] = (l) => s.locationKeyup(...arguments)),
1669
+ onKeyupEvent: a[1] || (a[1] = (l) => o.locationKeyup(...arguments)),
1732
1670
  ref: "search"
1733
1671
  }, null, 8, ["modelValue", "options"]),
1734
- $(o, {
1672
+ q(s, {
1735
1673
  class: "select--miles",
1736
1674
  label: "Miles",
1737
1675
  id: "miles",
1738
1676
  type: "select",
1739
- options: t.distances
1677
+ options: e.distances
1740
1678
  }, null, 8, ["options"])
1741
1679
  ]),
1742
- d("fieldset", pa, [
1743
- ya,
1744
- d("div", ga, [
1745
- $(o, {
1680
+ d("fieldset", ya, [
1681
+ ga,
1682
+ d("div", _a, [
1683
+ q(s, {
1746
1684
  class: "col-6",
1747
1685
  label: "Minimum price",
1748
1686
  id: "price-min",
1749
1687
  "data-min": "true",
1750
1688
  type: "select",
1751
- options: t.pricemin
1689
+ options: e.pricemin
1752
1690
  }, null, 8, ["options"]),
1753
- $(o, {
1691
+ q(s, {
1754
1692
  class: "col-6",
1755
1693
  label: "Maximum price",
1756
1694
  id: "price-max",
1757
1695
  "data-max": "true",
1758
1696
  type: "select",
1759
- options: t.pricemax
1697
+ options: e.pricemax
1760
1698
  }, null, 8, ["options"])
1761
1699
  ])
1762
1700
  ]),
1763
1701
  d("fieldset", va, [
1764
- _a,
1765
- d("div", wa, [
1766
- $(o, {
1702
+ wa,
1703
+ d("div", Aa, [
1704
+ q(s, {
1767
1705
  class: "col-6",
1768
1706
  label: "Minimum beds",
1769
1707
  id: "beds-min",
1770
1708
  "data-min": "true",
1771
1709
  type: "select",
1772
- options: t.bedsmin
1710
+ options: e.bedsmin
1773
1711
  }, null, 8, ["options"]),
1774
- $(o, {
1712
+ q(s, {
1775
1713
  class: "col-6",
1776
1714
  label: "Maximum beds",
1777
1715
  id: "beds-max",
1778
1716
  "data-max": "true",
1779
1717
  type: "select",
1780
- options: t.bedsmax
1718
+ options: e.bedsmax
1781
1719
  }, null, 8, ["options"])
1782
1720
  ])
1783
1721
  ]),
1784
- d("fieldset", Aa, [
1785
- $(o, {
1722
+ d("fieldset", Sa, [
1723
+ q(s, {
1786
1724
  label: "Property type",
1787
1725
  id: "property-type",
1788
1726
  type: "select",
1789
- options: t.propertytypes
1727
+ options: e.propertytypes
1790
1728
  }, null, 8, ["options"])
1791
1729
  ]),
1792
- ka
1793
- ], 8, fa)
1730
+ La
1731
+ ], 8, ba)
1794
1732
  ]),
1795
- v(e.$slots, "after")
1733
+ v(t.$slots, "after")
1796
1734
  ], 512);
1797
1735
  }
1798
- const po = /* @__PURE__ */ A(ua, [["render", La]]), Sa = (e) => {
1799
- Array.from(e.querySelectorAll("details")).forEach((a, t) => {
1736
+ const br = /* @__PURE__ */ S(ma, [["render", ka]]), qa = (t) => {
1737
+ Array.from(t.querySelectorAll("details")).forEach((a, e) => {
1800
1738
  a.addEventListener("mouseenter", function(r) {
1801
1739
  window.matchMedia("(min-width: 62em)").matches && a.setAttribute("open", "true");
1802
1740
  }, !1), a.addEventListener("mouseleave", function(r) {
1803
1741
  window.matchMedia("(min-width: 62em)").matches && a.removeAttribute("open");
1804
1742
  }, !1);
1805
1743
  }), "IntersectionObserver" in window && new IntersectionObserver(
1806
- ([t]) => t.target.classList.toggle("is-stuck", t.intersectionRatio < 1),
1744
+ ([e]) => e.target.classList.toggle("is-stuck", e.intersectionRatio < 1),
1807
1745
  { threshold: [1] }
1808
- ).observe(e);
1746
+ ).observe(t);
1809
1747
  };
1810
- const xa = {
1748
+ const $a = {
1811
1749
  components: {
1812
- Input: Y,
1813
- Logo: yt
1750
+ Input: Z,
1751
+ Logo: _e
1814
1752
  },
1815
1753
  name: "Nav",
1816
1754
  props: {
@@ -1857,8 +1795,8 @@ const xa = {
1857
1795
  };
1858
1796
  },
1859
1797
  methods: {
1860
- subIsActive(e) {
1861
- return (Array.isArray(e) ? e : [e]).some((t) => this.$route.path.indexOf(t) === 0);
1798
+ subIsActive(t) {
1799
+ return (Array.isArray(t) ? t : [t]).some((e) => this.$route.path.indexOf(e) === 0);
1862
1800
  }
1863
1801
  },
1864
1802
  computed: {
@@ -1880,48 +1818,48 @@ const xa = {
1880
1818
  },
1881
1819
  mounted() {
1882
1820
  this.$nextTick(function() {
1883
- Sa(this.$refs.wrapper);
1821
+ qa(this.$refs.wrapper);
1884
1822
  });
1885
1823
  }
1886
- }, $a = /* @__PURE__ */ d("input", {
1824
+ }, xa = /* @__PURE__ */ d("input", {
1887
1825
  type: "checkbox",
1888
1826
  name: "showMenu",
1889
1827
  id: "showMenu",
1890
1828
  class: "d-none"
1891
- }, null, -1), qa = /* @__PURE__ */ d("input", {
1829
+ }, null, -1), Ea = /* @__PURE__ */ d("input", {
1892
1830
  type: "checkbox",
1893
1831
  name: "showSearch",
1894
1832
  id: "showSearch",
1895
1833
  class: "d-none"
1896
- }, null, -1), Ea = /* @__PURE__ */ d("input", {
1834
+ }, null, -1), Ta = /* @__PURE__ */ d("input", {
1897
1835
  type: "checkbox",
1898
1836
  name: "showAccount",
1899
1837
  id: "showAccount",
1900
1838
  class: "d-none"
1901
- }, null, -1), Ta = { class: "nav__mobile-bar" }, Ma = { class: "container" }, Ha = { class: "row" }, Ca = {
1839
+ }, null, -1), Ma = { class: "nav__mobile-bar" }, Ha = { class: "container" }, Ca = { class: "row" }, Da = {
1902
1840
  key: 0,
1903
1841
  class: "col mw-md-fit-content nav__logo"
1904
- }, Da = {
1842
+ }, Na = {
1905
1843
  key: 1,
1906
1844
  class: "col mw-md-fit-content nav__logo"
1907
- }, Na = {
1845
+ }, Ra = {
1908
1846
  href: "/",
1909
1847
  class: "text-decoration-none mb-0"
1910
- }, Ra = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1848
+ }, za = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1911
1849
  /* @__PURE__ */ d("label", { for: "showMenu" }, "Menu")
1912
- ], -1), za = { class: "nav__inner" }, Ia = { class: "container" }, Pa = { class: "row" }, Ba = {
1850
+ ], -1), Ia = { class: "nav__inner" }, Pa = { class: "container" }, Fa = { class: "row" }, ja = {
1913
1851
  key: 0,
1914
1852
  class: "col mw-md-fit-content nav__logo"
1915
- }, Fa = {
1853
+ }, Ba = {
1916
1854
  key: 1,
1917
1855
  class: "col mw-md-fit-content nav__logo"
1918
- }, ja = {
1856
+ }, Oa = {
1919
1857
  href: "/",
1920
1858
  class: "text-decoration-none mb-0"
1921
- }, Oa = {
1859
+ }, Va = {
1922
1860
  key: 2,
1923
1861
  class: "col mw-fit-content nav__search-btn flex-row align-items-center"
1924
- }, Va = /* @__PURE__ */ d("label", { for: "showSearch" }, [
1862
+ }, Ua = /* @__PURE__ */ d("label", { for: "showSearch" }, [
1925
1863
  /* @__PURE__ */ d("svg", {
1926
1864
  class: "icon",
1927
1865
  viewBox: "0 0 32 32"
@@ -1942,14 +1880,14 @@ const xa = {
1942
1880
  class: "icon__outline"
1943
1881
  })
1944
1882
  ])
1945
- ], -1), Ua = [
1946
- Va
1947
- ], Wa = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1883
+ ], -1), Wa = [
1884
+ Ua
1885
+ ], Ga = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1948
1886
  /* @__PURE__ */ d("label", { for: "showMenu" }, "Menu")
1949
- ], -1), Ga = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ka = {
1887
+ ], -1), Ka = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ya = {
1950
1888
  key: 3,
1951
1889
  class: "col nav__account-btn flex-row align-items-center"
1952
- }, Ya = /* @__PURE__ */ d("label", { for: "showAccount" }, [
1890
+ }, Za = /* @__PURE__ */ d("label", { for: "showAccount" }, [
1953
1891
  /* @__PURE__ */ d("svg", {
1954
1892
  class: "icon",
1955
1893
  viewBox: "0 0 28 28"
@@ -1964,130 +1902,130 @@ const xa = {
1964
1902
  })
1965
1903
  ]),
1966
1904
  /* @__PURE__ */ d("span", null, "My account")
1967
- ], -1), Za = [
1968
- Ya
1905
+ ], -1), Xa = [
1906
+ Za
1969
1907
  ], Ja = {
1970
1908
  key: 4,
1971
1909
  class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
1972
- }, Xa = ["href", "innerHTML"], Qa = {
1910
+ }, Qa = ["href", "innerHTML"], es = {
1973
1911
  key: 0,
1974
1912
  class: "nav__menu--secondary"
1975
- }, tr = { class: "container" }, er = {
1913
+ }, ts = { class: "container" }, as = {
1976
1914
  key: 1,
1977
1915
  class: "nav__menu--search"
1978
- }, ar = { class: "bg-gradient pt-4" }, rr = { class: "container" }, or = {
1916
+ }, ss = { class: "bg-gradient pt-4" }, rs = { class: "container" }, os = {
1979
1917
  key: 0,
1980
1918
  class: "nav__menu--account"
1981
- }, sr = { class: "container" }, ir = { class: "row mb-4" }, nr = {
1919
+ }, is = { class: "container" }, ns = { class: "row mb-4" }, ls = {
1982
1920
  key: 0,
1983
1921
  class: "col mw-md-fit-content nav__logo"
1984
- }, lr = {
1922
+ }, cs = {
1985
1923
  key: 1,
1986
1924
  class: "col mw-md-fit-content nav__logo"
1987
- }, cr = {
1925
+ }, ds = {
1988
1926
  href: "/",
1989
1927
  class: "text-decoration-none mb-0"
1990
- }, dr = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1928
+ }, us = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1991
1929
  /* @__PURE__ */ d("label", { for: "showAccount" }, "Account")
1992
- ], -1), ur = { class: "container" }, mr = /* @__PURE__ */ d("span", { class: "nav__bg" }, null, -1);
1993
- function hr(e, a, t, r, i, s) {
1994
- const o = z("Logo");
1930
+ ], -1), ms = { class: "container" }, hs = /* @__PURE__ */ d("span", { class: "nav__bg" }, null, -1);
1931
+ function fs(t, a, e, r, i, o) {
1932
+ const s = R("Logo");
1995
1933
  return u(), m("nav", {
1996
- class: k(`nav${s.hasSecondarySlot ? " has-secondary" : ""}`),
1934
+ class: L(`nav${o.hasSecondarySlot ? " has-secondary" : ""}`),
1997
1935
  ref: "wrapper"
1998
1936
  }, [
1999
- $a,
2000
- qa,
1937
+ xa,
2001
1938
  Ea,
2002
- d("div", Ta, [
2003
- d("div", Ma, [
2004
- d("div", Ha, [
2005
- s.hasLogoSlot ? (u(), m("div", Ca, [
2006
- v(e.$slots, "logo")
2007
- ])) : (u(), m("div", Da, [
2008
- d("a", Na, [
2009
- $(o, {
2010
- id: t.logo,
2011
- path: t.logopath,
2012
- desc: t.logotext,
1939
+ Ta,
1940
+ d("div", Ma, [
1941
+ d("div", Ha, [
1942
+ d("div", Ca, [
1943
+ o.hasLogoSlot ? (u(), m("div", Da, [
1944
+ v(t.$slots, "logo")
1945
+ ])) : (u(), m("div", Na, [
1946
+ d("a", Ra, [
1947
+ q(s, {
1948
+ id: e.logo,
1949
+ path: e.logopath,
1950
+ desc: e.logotext,
2013
1951
  class: "pb-0"
2014
1952
  }, null, 8, ["id", "path", "desc"])
2015
1953
  ])
2016
1954
  ])),
2017
- Ra
1955
+ za
2018
1956
  ])
2019
1957
  ])
2020
1958
  ]),
2021
- d("div", za, [
2022
- d("div", Ia, [
2023
- d("div", Pa, [
2024
- s.hasLogoSlot ? (u(), m("div", Ba, [
2025
- v(e.$slots, "logo")
2026
- ])) : (u(), m("div", Fa, [
2027
- d("a", ja, [
2028
- $(o, {
2029
- id: t.logo,
2030
- path: t.logopath,
2031
- desc: t.logotext,
1959
+ d("div", Ia, [
1960
+ d("div", Pa, [
1961
+ d("div", Fa, [
1962
+ o.hasLogoSlot ? (u(), m("div", ja, [
1963
+ v(t.$slots, "logo")
1964
+ ])) : (u(), m("div", Ba, [
1965
+ d("a", Oa, [
1966
+ q(s, {
1967
+ id: e.logo,
1968
+ path: e.logopath,
1969
+ desc: e.logotext,
2032
1970
  class: "pb-0"
2033
1971
  }, null, 8, ["id", "path", "desc"])
2034
1972
  ])
2035
1973
  ])),
2036
- s.hasSearchSlot ? (u(), m("div", Oa, Ua)) : g("", !0),
2037
- Wa,
2038
- d("div", Ga, [
2039
- v(e.$slots, "default")
1974
+ o.hasSearchSlot ? (u(), m("div", Va, Wa)) : g("", !0),
1975
+ Ga,
1976
+ d("div", Ka, [
1977
+ v(t.$slots, "default")
2040
1978
  ]),
2041
- s.hasAccountSlot ? (u(), m("div", Ka, Za)) : g("", !0),
2042
- t.btnlink ? (u(), m("div", Ja, [
1979
+ o.hasAccountSlot ? (u(), m("div", Ya, Xa)) : g("", !0),
1980
+ e.btnlink ? (u(), m("div", Ja, [
2043
1981
  d("a", {
2044
- href: t.btnlink,
1982
+ href: e.btnlink,
2045
1983
  class: "btn me-0",
2046
- innerHTML: t.btntext
2047
- }, null, 8, Xa)
1984
+ innerHTML: e.btntext
1985
+ }, null, 8, Qa)
2048
1986
  ])) : g("", !0)
2049
1987
  ])
2050
1988
  ]),
2051
- s.hasSecondarySlot ? (u(), m("div", Qa, [
2052
- d("div", tr, [
2053
- v(e.$slots, "secondary")
1989
+ o.hasSecondarySlot ? (u(), m("div", es, [
1990
+ d("div", ts, [
1991
+ v(t.$slots, "secondary")
2054
1992
  ])
2055
1993
  ])) : g("", !0),
2056
- s.hasSearchSlot ? (u(), m("div", er, [
2057
- d("div", ar, [
2058
- d("div", rr, [
2059
- v(e.$slots, "search")
1994
+ o.hasSearchSlot ? (u(), m("div", as, [
1995
+ d("div", ss, [
1996
+ d("div", rs, [
1997
+ v(t.$slots, "search")
2060
1998
  ])
2061
1999
  ])
2062
2000
  ])) : g("", !0)
2063
2001
  ]),
2064
- s.hasAccountSlot ? (u(), m("div", or, [
2065
- d("div", sr, [
2066
- d("div", ir, [
2067
- s.hasLogoSlot ? (u(), m("div", nr, [
2068
- v(e.$slots, "logo")
2069
- ])) : (u(), m("div", lr, [
2070
- d("a", cr, [
2071
- $(o, {
2072
- id: t.logo,
2073
- path: t.logopath,
2074
- desc: t.logotext,
2002
+ o.hasAccountSlot ? (u(), m("div", os, [
2003
+ d("div", is, [
2004
+ d("div", ns, [
2005
+ o.hasLogoSlot ? (u(), m("div", ls, [
2006
+ v(t.$slots, "logo")
2007
+ ])) : (u(), m("div", cs, [
2008
+ d("a", ds, [
2009
+ q(s, {
2010
+ id: e.logo,
2011
+ path: e.logopath,
2012
+ desc: e.logotext,
2075
2013
  class: "pb-0"
2076
2014
  }, null, 8, ["id", "path", "desc"])
2077
2015
  ])
2078
2016
  ])),
2079
- dr
2017
+ us
2080
2018
  ])
2081
2019
  ]),
2082
- d("div", ur, [
2083
- v(e.$slots, "account")
2020
+ d("div", ms, [
2021
+ v(t.$slots, "account")
2084
2022
  ])
2085
2023
  ])) : g("", !0),
2086
- mr
2024
+ hs
2087
2025
  ], 2);
2088
2026
  }
2089
- const yo = /* @__PURE__ */ A(xa, [["render", hr]]);
2090
- const fr = {
2027
+ const pr = /* @__PURE__ */ S($a, [["render", fs]]);
2028
+ const bs = {
2091
2029
  name: "Stepper",
2092
2030
  props: {
2093
2031
  label: {
@@ -2100,25 +2038,25 @@ const fr = {
2100
2038
  default: "Complete"
2101
2039
  }
2102
2040
  }
2103
- }, br = { class: "container" }, pr = ["aria-label"], yr = {
2041
+ }, ps = { class: "container" }, ys = ["aria-label"], gs = {
2104
2042
  key: 0,
2105
2043
  class: "h6 stepper__start"
2106
- }, gr = { class: "list-unstyled" }, vr = { class: "h6 stepper__end" };
2107
- function _r(e, a, t, r, i, s) {
2108
- return u(), m("div", br, [
2044
+ }, _s = { class: "list-unstyled" }, vs = { class: "h6 stepper__end" };
2045
+ function ws(t, a, e, r, i, o) {
2046
+ return u(), m("div", ps, [
2109
2047
  d("nav", {
2110
2048
  class: "stepper",
2111
- "aria-label": t.label ? t.label : "Progress"
2049
+ "aria-label": e.label ? e.label : "Progress"
2112
2050
  }, [
2113
- t.label ? (u(), m("span", yr, q(t.label), 1)) : g("", !0),
2114
- d("ol", gr, [
2115
- v(e.$slots, "default")
2051
+ e.label ? (u(), m("span", gs, $(e.label), 1)) : g("", !0),
2052
+ d("ol", _s, [
2053
+ v(t.$slots, "default")
2116
2054
  ]),
2117
- d("span", vr, q(t.endlabel), 1)
2118
- ], 8, pr)
2055
+ d("span", vs, $(e.endlabel), 1)
2056
+ ], 8, ys)
2119
2057
  ]);
2120
2058
  }
2121
- const go = /* @__PURE__ */ A(fr, [["render", _r]]), wr = {
2059
+ const yr = /* @__PURE__ */ S(bs, [["render", ws]]), As = {
2122
2060
  name: "Stepper",
2123
2061
  props: {
2124
2062
  url: {
@@ -2134,74 +2072,74 @@ const go = /* @__PURE__ */ A(fr, [["render", _r]]), wr = {
2134
2072
  required: !1
2135
2073
  }
2136
2074
  }
2137
- }, Ar = ["href", "aria-current"], kr = {
2075
+ }, Ss = ["href", "aria-current"], Ls = {
2138
2076
  key: 0,
2139
2077
  class: "visually-hidden"
2140
2078
  };
2141
- function Lr(e, a, t, r, i, s) {
2079
+ function ks(t, a, e, r, i, o) {
2142
2080
  return u(), m("li", null, [
2143
2081
  d("a", {
2144
- href: t.url,
2145
- class: k(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
2146
- "aria-current": typeof t.current < "u"
2082
+ href: e.url,
2083
+ class: L(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
2084
+ "aria-current": typeof e.current < "u"
2147
2085
  }, [
2148
2086
  d("span", null, [
2149
- v(e.$slots, "default")
2087
+ v(t.$slots, "default")
2150
2088
  ]),
2151
- t.status ? (u(), m("em", kr, " - status: " + q(t.status), 1)) : g("", !0)
2152
- ], 10, Ar)
2089
+ e.status ? (u(), m("em", Ls, " - status: " + $(e.status), 1)) : g("", !0)
2090
+ ], 10, Ss)
2153
2091
  ]);
2154
2092
  }
2155
- const vo = /* @__PURE__ */ A(wr, [["render", Lr]]);
2093
+ const gr = /* @__PURE__ */ S(As, [["render", ks]]);
2156
2094
  /*!
2157
- * iamKey v3.7.8
2095
+ * iamKey v3.7.9-beta-2
2158
2096
  * Copyright 2022-2023 iamproperty
2159
2097
  */
2160
- const Sr = function(e) {
2161
- const a = e.querySelectorAll(":scope > details");
2162
- e.querySelectorAll(":scope > details > summary");
2163
- let t = e.querySelector(":scope > .tabs__links");
2164
- 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, i) => {
2165
- let s = r.querySelector(":scope > summary");
2166
- s.classList.add("visually-hidden");
2167
- let o = document.createElement("button");
2168
- r.hasAttribute("id") && (o = document.createElement("a"), o.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && o.setAttribute("aria-pressed", !0), o.innerHTML = `${s.innerText}`, o.classList.add("link"), o.setAttribute("data-index", i), o.setAttribute("tabindex", "-1"), t.appendChild(o);
2098
+ const qs = function(t) {
2099
+ const a = t.querySelectorAll(":scope > details");
2100
+ t.querySelectorAll(":scope > details > summary");
2101
+ let e = t.querySelector(":scope > .tabs__links");
2102
+ t.shadowRoot && t.shadowRoot.querySelector(".tabs__links") && (e = t.shadowRoot.querySelector(".tabs__links")), e || (e = document.createElement("div"), e.classList.add("tabs__links"), t.prepend(e)), a.forEach((r, i) => {
2103
+ let o = r.querySelector(":scope > summary");
2104
+ o.classList.add("visually-hidden");
2105
+ let s = document.createElement("button");
2106
+ r.hasAttribute("id") && (s = document.createElement("a"), s.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && s.setAttribute("aria-pressed", !0), s.innerHTML = `${o.innerText}`, s.classList.add("link"), s.setAttribute("data-index", i), s.setAttribute("tabindex", "-1"), e.appendChild(s);
2169
2107
  });
2170
- }, xr = function(e) {
2171
- let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), r = e.querySelectorAll(":scope .tabs__links > .link");
2172
- e.shadowRoot && (r = e.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((i) => {
2173
- i.addEventListener("click", (s) => {
2174
- s.preventDefault(), r.forEach((o) => {
2175
- let l = o == i;
2176
- o.setAttribute("aria-pressed", l);
2177
- }), a.forEach((o, l) => {
2178
- let n = i.getAttribute("data-index") == l;
2179
- n ? o.setAttribute("open", n) : o.removeAttribute("open");
2108
+ }, $s = function(t) {
2109
+ let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > details > summary"), r = t.querySelectorAll(":scope .tabs__links > .link");
2110
+ t.shadowRoot && (r = t.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((i) => {
2111
+ i.addEventListener("click", (o) => {
2112
+ o.preventDefault(), r.forEach((s) => {
2113
+ let l = s == i;
2114
+ s.setAttribute("aria-pressed", l);
2115
+ }), a.forEach((s, l) => {
2116
+ let c = i.getAttribute("data-index") == l;
2117
+ c ? s.setAttribute("open", c) : s.removeAttribute("open");
2180
2118
  }), i.hasAttribute("href") && history.pushState(void 0, void 0, i.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: i.textContent });
2181
2119
  });
2182
- }), t.forEach((i, s) => {
2183
- i.addEventListener("focus", (o) => {
2120
+ }), e.forEach((i, o) => {
2121
+ i.addEventListener("focus", (s) => {
2184
2122
  r.forEach((l) => {
2185
2123
  l.classList.remove("focus");
2186
- }), r[s].classList.add("focus");
2187
- }), i.addEventListener("click", (o) => {
2188
- o.preventDefault(), r[s].click();
2124
+ }), r[o].classList.add("focus");
2125
+ }), i.addEventListener("click", (s) => {
2126
+ s.preventDefault(), r[o].click();
2189
2127
  });
2190
2128
  });
2191
- }, $r = function(e) {
2192
- let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
2193
- 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));
2194
- }, qr = function(e) {
2195
- Sr(e), xr(e), $r(e);
2129
+ }, xs = function(t) {
2130
+ let a = t.querySelectorAll(":scope > details"), e = t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
2131
+ t.shadowRoot && (e = t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), location.hash && t.querySelector(`.tabs__links [href="${location.hash}"]`) ? (t.querySelector(`[href="${location.hash}"]`).setAttribute("open", !0), t.querySelector(`details[id="${location.hash.replace("#", "")}"]`).setAttribute("open", !0)) : t.querySelector("details[open]") || (a[0].setAttribute("open", !0), e[0].setAttribute("aria-pressed", !0));
2132
+ }, Es = function(t) {
2133
+ qs(t), $s(t), xs(t);
2196
2134
  };
2197
2135
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
2198
- class Er extends HTMLElement {
2136
+ class Ts extends HTMLElement {
2199
2137
  constructor() {
2200
2138
  super(), this.attachShadow({ mode: "open" });
2201
- 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");
2139
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
2202
2140
  r.innerHTML = `
2203
2141
  <style>
2204
- @import "${t}";
2142
+ @import "${e}";
2205
2143
 
2206
2144
  :host(.admin-panel){
2207
2145
  display: contents!important;
@@ -2217,19 +2155,19 @@ class Er extends HTMLElement {
2217
2155
  }
2218
2156
  connectedCallback() {
2219
2157
  let a = this.classList.toString().replace("container", "");
2220
- this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), qr(this);
2158
+ this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), Es(this);
2221
2159
  }
2222
2160
  }
2223
- window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Er);
2224
- const Tr = {
2161
+ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Ts);
2162
+ const Ms = {
2225
2163
  name: "Tabs"
2226
- }, Mr = { ref: "wrapper" };
2227
- function Hr(e, a, t, r, i, s) {
2228
- return u(), m("iam-tabs", Mr, [
2229
- v(e.$slots, "default")
2164
+ }, Hs = { ref: "wrapper" };
2165
+ function Cs(t, a, e, r, i, o) {
2166
+ return u(), m("iam-tabs", Hs, [
2167
+ v(t.$slots, "default")
2230
2168
  ], 512);
2231
2169
  }
2232
- const _o = /* @__PURE__ */ A(Tr, [["render", Hr]]), Cr = {
2170
+ const _r = /* @__PURE__ */ S(Ms, [["render", Cs]]), Ds = {
2233
2171
  name: "Tab",
2234
2172
  props: {
2235
2173
  title: {
@@ -2247,24 +2185,24 @@ const _o = /* @__PURE__ */ A(Tr, [["render", Hr]]), Cr = {
2247
2185
  };
2248
2186
  },
2249
2187
  watch: {
2250
- show(e, a) {
2251
- console.log(e);
2188
+ show(t, a) {
2189
+ console.log(t);
2252
2190
  }
2253
2191
  }
2254
- }, Dr = { class: "tab" }, Nr = ["innerHTML"];
2255
- function Rr(e, a, t, r, i, s) {
2256
- return u(), m("details", Dr, [
2257
- d("summary", { innerHTML: t.title }, null, 8, Nr),
2258
- v(e.$slots, "default")
2192
+ }, Ns = { class: "tab" }, Rs = ["innerHTML"];
2193
+ function zs(t, a, e, r, i, o) {
2194
+ return u(), m("details", Ns, [
2195
+ d("summary", { innerHTML: e.title }, null, 8, Rs),
2196
+ v(t.$slots, "default")
2259
2197
  ]);
2260
2198
  }
2261
- const wo = /* @__PURE__ */ A(Cr, [["render", Rr]]);
2262
- let ot = rt.props;
2263
- ot.fields.required = !1;
2264
- const zr = {
2199
+ const vr = /* @__PURE__ */ S(Ds, [["render", zs]]);
2200
+ let ie = oe.props;
2201
+ ie.fields.required = !1;
2202
+ const Is = {
2265
2203
  components: {
2266
- Table: rt,
2267
- Input: Y
2204
+ Table: oe,
2205
+ Input: Z
2268
2206
  },
2269
2207
  data() {
2270
2208
  return {
@@ -2273,17 +2211,17 @@ const zr = {
2273
2211
  };
2274
2212
  },
2275
2213
  methods: {
2276
- submitForm: function(e) {
2214
+ submitForm: function(t) {
2277
2215
  console.log(this);
2278
- const a = new FormData(e.target);
2279
- let t = /* @__PURE__ */ new Date();
2280
- const r = t.getFullYear();
2281
- let i = t.getMonth() + 1, s = t.getDate();
2282
- s < 10 && (s = "0" + s), i < 10 && (i = "0" + i), t = s + "/" + i + "/" + r, this.itemsData.unshift({
2283
- date_added: t,
2216
+ const a = new FormData(t.target);
2217
+ let e = /* @__PURE__ */ new Date();
2218
+ const r = e.getFullYear();
2219
+ let i = e.getMonth() + 1, o = e.getDate();
2220
+ o < 10 && (o = "0" + o), i < 10 && (i = "0" + i), e = o + "/" + i + "/" + r, this.itemsData.unshift({
2221
+ date_added: e,
2284
2222
  user: a.get("user"),
2285
2223
  note: a.get("addNote")
2286
- }), this.$emit("formSubmitted", e);
2224
+ }), this.$emit("formSubmitted", t);
2287
2225
  }
2288
2226
  },
2289
2227
  name: "NoteFeed",
@@ -2292,7 +2230,7 @@ const zr = {
2292
2230
  type: String,
2293
2231
  required: !0
2294
2232
  },
2295
- ...ot,
2233
+ ...ie,
2296
2234
  title: {
2297
2235
  type: String,
2298
2236
  required: !1
@@ -2307,111 +2245,111 @@ const zr = {
2307
2245
  required: !1
2308
2246
  }
2309
2247
  }
2310
- }, Ir = { class: "container note-feed mb-2" }, Pr = ["innerHTML"], Br = ["action", "method"], Fr = ["value"], jr = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2311
- function Or(e, a, t, r, i, s) {
2312
- const o = z("Table"), l = z("Input");
2313
- return u(), m("div", Ir, [
2314
- t.title ? (u(), m("span", {
2248
+ }, Ps = { class: "container note-feed mb-2" }, Fs = ["innerHTML"], js = ["action", "method"], Bs = ["value"], Os = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2249
+ function Vs(t, a, e, r, i, o) {
2250
+ const s = R("Table"), l = R("Input");
2251
+ return u(), m("div", Ps, [
2252
+ e.title ? (u(), m("span", {
2315
2253
  key: 0,
2316
2254
  class: "h3",
2317
- innerHTML: t.title
2318
- }, null, 8, Pr)) : g("", !0),
2319
- $(o, H({
2255
+ innerHTML: e.title
2256
+ }, null, 8, Fs)) : g("", !0),
2257
+ q(s, H({
2320
2258
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2321
2259
  items: i.itemsData
2322
- }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2260
+ }, t.$props, { class: "mb-0" }), null, 16, ["items"]),
2323
2261
  d("form", {
2324
- action: t.action,
2325
- method: t.method,
2326
- onSubmit: a[0] || (a[0] = mt((n) => s.submitForm(...arguments), ["prevent"]))
2262
+ action: e.action,
2263
+ method: e.method,
2264
+ onSubmit: a[0] || (a[0] = fe((c) => o.submitForm(...arguments), ["prevent"]))
2327
2265
  }, [
2328
2266
  d("input", {
2329
2267
  type: "hidden",
2330
- value: t.user,
2268
+ value: e.user,
2331
2269
  name: "user"
2332
- }, null, 8, Fr),
2333
- $(l, {
2270
+ }, null, 8, Bs),
2271
+ q(l, {
2334
2272
  id: "addNote",
2335
2273
  type: "textarea",
2336
2274
  label: "Add note",
2337
2275
  required: "",
2338
2276
  class: "mw-100"
2339
2277
  }),
2340
- jr
2341
- ], 40, Br)
2278
+ Os
2279
+ ], 40, js)
2342
2280
  ]);
2343
2281
  }
2344
- const Ao = /* @__PURE__ */ A(zr, [["render", Or]]);
2282
+ const wr = /* @__PURE__ */ S(Is, [["render", Vs]]);
2345
2283
  /*!
2346
- * iamKey v3.7.8
2284
+ * iamKey v3.7.9-beta-2
2347
2285
  * Copyright 2022-2023 iamproperty
2348
2286
  */
2349
- function Vr(e, a) {
2350
- function t(r, i) {
2351
- let s = !1, o = i.getAttribute("name");
2352
- o.includes("[]") && (o = o.replace("[]", `[${i.value}]`));
2353
- let l = r.querySelector(`[data-name="${o}"]`);
2354
- l && i.getAttribute("type") == "checkbox" && (s = !0);
2355
- let n = i.getAttribute("data-filter-text");
2356
- if (l || (l = document.createElement("button"), r.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", o), l.innerHTML = n.replace("$value", i.value), (!i.value || s) && l.remove(), i.parentNode.closest("[data-filter-text]")) {
2357
- let c = i.parentNode.closest("[data-filter-text]"), h = !0;
2358
- if (o = "", c.querySelectorAll("input").forEach((f, b) => {
2359
- let p = f.getAttribute("name");
2360
- if (o += `${b != 0 ? "," : ""}${p}`, r.querySelector(`[data-name="${p}"]`) && r.querySelector(`[data-name="${p}"]`).remove(), f.value) {
2287
+ function Us(t, a) {
2288
+ function e(r, i) {
2289
+ let o = !1, s = i.getAttribute("name");
2290
+ s.includes("[]") && (s = s.replace("[]", `[${i.value}]`));
2291
+ let l = r.querySelector(`[data-name="${s}"]`);
2292
+ l && i.getAttribute("type") == "checkbox" && (o = !0);
2293
+ let c = i.getAttribute("data-filter-text");
2294
+ if (l || (l = document.createElement("button"), r.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", s), l.innerHTML = c.replace("$value", i.value), (!i.value || o) && l.remove(), i.parentNode.closest("[data-filter-text]")) {
2295
+ let n = i.parentNode.closest("[data-filter-text]"), f = !0;
2296
+ if (s = "", n.querySelectorAll("input").forEach((p, h) => {
2297
+ let b = p.getAttribute("name");
2298
+ if (s += `${h != 0 ? "," : ""}${b}`, r.querySelector(`[data-name="${b}"]`) && r.querySelector(`[data-name="${b}"]`).remove(), p.value) {
2361
2299
  let y = document.createElement("button");
2362
- y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", p), y.innerHTML = n.replace("$value", f.value), r.appendChild(y);
2300
+ y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", b), y.innerHTML = c.replace("$value", p.value), r.appendChild(y);
2363
2301
  } else
2364
- h = !1;
2365
- }), r.querySelector(`[data-name="${o}"]`) && r.querySelector(`[data-name="${o}"]`).remove(), h) {
2366
- let f = c.getAttribute("data-filter-text");
2367
- c.querySelectorAll("input").forEach((p, y) => {
2368
- let w = p.getAttribute("name");
2369
- r.querySelector(`[data-name="${w}"]`) && r.querySelector(`[data-name="${w}"]`).remove(), f = f.replace(`$${y + 1}`, p.value);
2302
+ f = !1;
2303
+ }), r.querySelector(`[data-name="${s}"]`) && r.querySelector(`[data-name="${s}"]`).remove(), f) {
2304
+ let p = n.getAttribute("data-filter-text");
2305
+ n.querySelectorAll("input").forEach((b, y) => {
2306
+ let A = b.getAttribute("name");
2307
+ r.querySelector(`[data-name="${A}"]`) && r.querySelector(`[data-name="${A}"]`).remove(), p = p.replace(`$${y + 1}`, b.value);
2370
2308
  });
2371
- let b = document.createElement("button");
2372
- b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", o), b.innerHTML = f, r.appendChild(b);
2309
+ let h = document.createElement("button");
2310
+ h.setAttribute("type", "button"), h.classList.add("filter"), h.setAttribute("data-name", s), h.innerHTML = p, r.appendChild(h);
2373
2311
  }
2374
2312
  }
2375
2313
  }
2376
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, i) => {
2377
- t(a, r);
2378
- }), e.addEventListener("change", function(r) {
2314
+ Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, i) => {
2315
+ e(a, r);
2316
+ }), t.addEventListener("change", function(r) {
2379
2317
  if (r && r.target instanceof HTMLElement && r.target.closest("input[data-filter-text]")) {
2380
2318
  let i = r.target.closest("input[data-filter-text]");
2381
- t(a, i);
2319
+ e(a, i);
2382
2320
  }
2383
2321
  }, !1), a.addEventListener("click", function(r) {
2384
2322
  if (r && r.target instanceof HTMLElement && r.target.closest(".filter")) {
2385
- let o = r.target.closest(".filter"), l = o.getAttribute("data-name").split(",");
2323
+ let s = r.target.closest(".filter"), l = s.getAttribute("data-name").split(",");
2386
2324
  for (var i = 0; i < l.length; i++) {
2387
- let n = l[i], c = `[name="${n}"]`;
2388
- n.match(/\[(.*)\]/) && (n.replace(/\[(.*)\]/, "[]"), c = `[value="${n.replace(/.*\[(.*)\]/, "$1")}"]`);
2389
- let h = e.querySelectorAll(c);
2390
- for (var s = 0; s < h.length; s++) {
2391
- let f = h[s];
2392
- if (f.getAttribute("type") != "radio" && f.getAttribute("type") != "checkbox")
2393
- f.value = "";
2325
+ let c = l[i], n = `[name="${c}"]`;
2326
+ c.match(/\[(.*)\]/) && (c.replace(/\[(.*)\]/, "[]"), n = `[value="${c.replace(/.*\[(.*)\]/, "$1")}"]`);
2327
+ let f = t.querySelectorAll(n);
2328
+ for (var o = 0; o < f.length; o++) {
2329
+ let p = f[o];
2330
+ if (p.getAttribute("type") != "radio" && p.getAttribute("type") != "checkbox")
2331
+ p.value = "";
2394
2332
  else {
2395
- f.checked = !1;
2333
+ p.checked = !1;
2396
2334
  var r = new Event("force");
2397
- f.closest("form").dispatchEvent(r);
2335
+ p.closest("form").dispatchEvent(r);
2398
2336
  }
2399
2337
  }
2400
2338
  }
2401
- o.remove();
2339
+ s.remove();
2402
2340
  }
2403
2341
  }, !1);
2404
2342
  }
2405
2343
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2406
- class Ur extends HTMLElement {
2344
+ class Ws extends HTMLElement {
2407
2345
  constructor() {
2408
2346
  super(), this.attachShadow({ mode: "open" });
2409
- 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`;
2347
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
2410
2348
  let r = this.classList.toString();
2411
2349
  const i = document.createElement("template");
2412
2350
  i.innerHTML = `
2413
2351
  <style>
2414
- @import "${t}";
2352
+ @import "${e}";
2415
2353
  .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 */
2416
2354
 
2417
2355
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -2421,50 +2359,50 @@ class Ur extends HTMLElement {
2421
2359
  `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2422
2360
  }
2423
2361
  connectedCallback() {
2424
- Vr(this, this.shadowRoot.querySelector(".applied-filters"));
2362
+ Us(this, this.shadowRoot.querySelector(".applied-filters"));
2425
2363
  }
2426
2364
  }
2427
- window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Ur);
2428
- const Wr = {
2365
+ window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Ws);
2366
+ const Gs = {
2429
2367
  name: "Header"
2430
2368
  };
2431
- function Gr(e, a, t, r, i, s) {
2369
+ function Ks(t, a, e, r, i, o) {
2432
2370
  return u(), m("iam-applied-filters", null, [
2433
- v(e.$slots, "default")
2371
+ v(t.$slots, "default")
2434
2372
  ]);
2435
2373
  }
2436
- const ko = /* @__PURE__ */ A(Wr, [["render", Gr]]);
2374
+ const Ar = /* @__PURE__ */ S(Gs, [["render", Ks]]);
2437
2375
  /*!
2438
- * iamKey v3.7.8
2376
+ * iamKey v3.7.9-beta-2
2439
2377
  * Copyright 2022-2023 iamproperty
2440
2378
  */
2441
- function Kr(e, a) {
2442
- Yr(e, a);
2379
+ function Ys(t, a) {
2380
+ Zs(t, a);
2443
2381
  }
2444
- function Yr(e, a) {
2445
- var t;
2382
+ function Zs(t, a) {
2383
+ var e;
2446
2384
  a.addEventListener("keyup", (r) => {
2447
- clearTimeout(t), t = setTimeout(function() {
2448
- X(e, a.value);
2385
+ clearTimeout(e), e = setTimeout(function() {
2386
+ Q(t, a.value);
2449
2387
  }, 500);
2450
2388
  }), a.addEventListener("change", (r) => {
2451
- clearTimeout(t), X(e, a.value);
2389
+ clearTimeout(e), Q(t, a.value);
2452
2390
  });
2453
2391
  }
2454
- const X = function(e, a) {
2455
- Array.from(e.querySelectorAll(":scope > li")).forEach((t, r) => {
2456
- let i = t.textContent.toLowerCase();
2457
- t.classList.add("d-none"), i.includes(a.toLowerCase()) && t.classList.remove("d-none");
2392
+ const Q = function(t, a) {
2393
+ Array.from(t.querySelectorAll(":scope > li")).forEach((e, r) => {
2394
+ let i = e.textContent.toLowerCase();
2395
+ e.classList.add("d-none"), i.includes(a.toLowerCase()) && e.classList.remove("d-none");
2458
2396
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2459
2397
  };
2460
2398
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
2461
- class Zr extends HTMLElement {
2399
+ class Xs extends HTMLElement {
2462
2400
  constructor() {
2463
2401
  super(), this.attachShadow({ mode: "open" });
2464
- 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");
2402
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
2465
2403
  r.innerHTML = `
2466
2404
  <style>
2467
- @import "${t}";
2405
+ @import "${e}";
2468
2406
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2469
2407
 
2470
2408
  :host {
@@ -2493,65 +2431,65 @@ class Zr extends HTMLElement {
2493
2431
  }
2494
2432
  connectedCallback() {
2495
2433
  let a = this.classList.toString();
2496
- 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>'), Kr(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2434
+ 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>'), Ys(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2497
2435
  }
2498
2436
  }
2499
- window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", Zr);
2500
- const Jr = {
2437
+ window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", Xs);
2438
+ const Js = {
2501
2439
  name: "Filter list"
2502
2440
  };
2503
- function Xr(e, a, t, r, i, s) {
2441
+ function Qs(t, a, e, r, i, o) {
2504
2442
  return u(), m("iam-filterlist", null, [
2505
- v(e.$slots, "default")
2443
+ v(t.$slots, "default")
2506
2444
  ]);
2507
2445
  }
2508
- const Lo = /* @__PURE__ */ A(Jr, [["render", Xr]]);
2509
- function Qr(e) {
2510
- if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2511
- let t = document.querySelector(".notification__holder");
2512
- 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);
2446
+ const Sr = /* @__PURE__ */ S(Js, [["render", Qs]]);
2447
+ function er(t) {
2448
+ if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
2449
+ let e = document.querySelector(".notification__holder");
2450
+ e || (e = document.createElement("div"), e.classList.add("notification__holder"), e.classList.add("container"), document.querySelector("body").appendChild(e)), t.closest(".notification__holder") || e.appendChild(t);
2513
2451
  }
2514
- if (e.setAttribute("role", "alert"), e.addEventListener("click", function(t) {
2515
- event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), K(e));
2516
- }, !1), e.hasAttribute("data-timeout")) {
2517
- let t = e.getAttribute("data-timeout");
2518
- var a = new to(function() {
2519
- K(e);
2520
- }, t);
2521
- e.addEventListener("mouseenter", (r) => {
2452
+ if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
2453
+ event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), Y(t));
2454
+ }, !1), t.hasAttribute("data-timeout")) {
2455
+ let e = t.getAttribute("data-timeout");
2456
+ var a = new tr(function() {
2457
+ Y(t);
2458
+ }, e);
2459
+ t.addEventListener("mouseenter", (r) => {
2522
2460
  a.pause();
2523
- }), e.addEventListener("mouseleave", (r) => {
2461
+ }), t.addEventListener("mouseleave", (r) => {
2524
2462
  a.resume();
2525
2463
  });
2526
2464
  }
2527
2465
  }
2528
- function to(e, a) {
2529
- var t, r, i = a;
2466
+ function tr(t, a) {
2467
+ var e, r, i = a;
2530
2468
  this.pause = function() {
2531
- window.clearTimeout(t), i -= /* @__PURE__ */ new Date() - r;
2469
+ window.clearTimeout(e), i -= /* @__PURE__ */ new Date() - r;
2532
2470
  }, this.resume = function() {
2533
- r = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, i);
2471
+ r = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, i);
2534
2472
  }, this.resume();
2535
2473
  }
2536
- const K = function(e) {
2537
- e.classList.add("d-none");
2474
+ const Y = function(t) {
2475
+ t.classList.add("d-none");
2538
2476
  };
2539
2477
  window.dataLayer = window.dataLayer || [];
2540
2478
  window.dataLayer.push({
2541
2479
  event: "customElementRegistered",
2542
2480
  element: "Notification"
2543
2481
  });
2544
- class eo extends HTMLElement {
2482
+ class ar extends HTMLElement {
2545
2483
  constructor() {
2546
2484
  super(), this.attachShadow({ mode: "open" });
2547
- 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";`, i = this.querySelectorAll("a,button");
2548
- Array.from(i).forEach((o, l) => {
2549
- o.setAttribute("slot", "btns"), o.classList.add("link");
2485
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = `@import "${a}/css/components/notification.css";`, i = this.querySelectorAll("a,button");
2486
+ Array.from(i).forEach((s, l) => {
2487
+ s.setAttribute("slot", "btns"), s.classList.add("link");
2550
2488
  }), (i.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2551
- const s = document.createElement("template");
2552
- s.innerHTML = `
2489
+ const o = document.createElement("template");
2490
+ o.innerHTML = `
2553
2491
  <style>
2554
- @import "${t}";
2492
+ @import "${e}";
2555
2493
  ${r}
2556
2494
  ${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
2557
2495
  </style>
@@ -2561,14 +2499,14 @@ class eo extends HTMLElement {
2561
2499
  <div class="notification__inner"><div class="notification__text"><slot></slot></div>${i.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2562
2500
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2563
2501
  </div>
2564
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2502
+ `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
2565
2503
  }
2566
2504
  connectedCallback() {
2567
- const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2568
- this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
2505
+ const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2506
+ this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
2569
2507
  const r = this;
2570
2508
  if (!this.querySelector("i"))
2571
- switch (t) {
2509
+ switch (e) {
2572
2510
  case "danger":
2573
2511
  this.innerHTML += '<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';
2574
2512
  break;
@@ -2581,46 +2519,46 @@ class eo extends HTMLElement {
2581
2519
  default:
2582
2520
  this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2583
2521
  }
2584
- Qr(r), a && a.addEventListener("click", function(i) {
2585
- K(r);
2522
+ er(r), a && a.addEventListener("click", function(i) {
2523
+ Y(r);
2586
2524
  }, !1);
2587
2525
  }
2588
2526
  }
2589
- const ao = {
2527
+ const sr = {
2590
2528
  name: "Notification",
2591
2529
  props: {},
2592
2530
  created() {
2593
2531
  this.$nextTick(function() {
2594
- window.customElements.get("iam-notification") || window.customElements.define("iam-notification", eo);
2532
+ window.customElements.get("iam-notification") || window.customElements.define("iam-notification", ar);
2595
2533
  });
2596
2534
  }
2597
2535
  };
2598
- function ro(e, a, t, r, i, s) {
2536
+ function rr(t, a, e, r, i, o) {
2599
2537
  return u(), m("iam-notification", null, [
2600
- v(e.$slots, "default")
2538
+ v(t.$slots, "default")
2601
2539
  ]);
2602
2540
  }
2603
- const So = /* @__PURE__ */ A(ao, [["render", ro]]);
2541
+ const Lr = /* @__PURE__ */ S(sr, [["render", rr]]);
2604
2542
  export {
2605
- lo as Accordion,
2606
- co as AccordionItem,
2607
- ko as AppliedFilters,
2608
- uo as Banner,
2609
- He as Card,
2610
- ho as Carousel,
2611
- io as FileUpload,
2612
- Lo as Filterlist,
2613
- fo as Header,
2614
- Y as Input,
2615
- yt as Logo,
2616
- yo as Nav,
2617
- Ao as NoteFeed,
2618
- So as Notification,
2619
- po as PropertySearchbar,
2620
- vo as Step,
2621
- go as Stepper,
2622
- wo as Tab,
2623
- rt as Table,
2624
- _o as Tabs,
2625
- bo as Testimonial
2543
+ cr as Accordion,
2544
+ dr as AccordionItem,
2545
+ Ar as AppliedFilters,
2546
+ ur as Banner,
2547
+ Ct as Card,
2548
+ mr as Carousel,
2549
+ nr as FileUpload,
2550
+ Sr as Filterlist,
2551
+ hr as Header,
2552
+ Z as Input,
2553
+ _e as Logo,
2554
+ pr as Nav,
2555
+ wr as NoteFeed,
2556
+ Lr as Notification,
2557
+ br as PropertySearchbar,
2558
+ gr as Step,
2559
+ yr as Stepper,
2560
+ vr as Tab,
2561
+ oe as Table,
2562
+ _r as Tabs,
2563
+ fr as Testimonial
2626
2564
  };