@iamproperty/components 3.8.0 → 3.9.0-beta-1

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