@iamproperty/components 4.1.1-beta-7 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/assets/css/components/collapsible-side.css +1 -1
  2. package/assets/css/components/collapsible-side.css.map +1 -1
  3. package/assets/css/components/component.reset.css +1 -1
  4. package/assets/css/components/component.reset.css.map +1 -1
  5. package/assets/css/components/nav-global.css +1 -1
  6. package/assets/css/components/nav-global.css.map +1 -1
  7. package/assets/css/components/nav.css +1 -1
  8. package/assets/css/components/nav.css.map +1 -1
  9. package/assets/css/components/stepper.css +1 -1
  10. package/assets/css/components/stepper.css.map +1 -1
  11. package/assets/css/components/table.extras.css +1 -1
  12. package/assets/css/components/table.extras.css.map +1 -1
  13. package/assets/css/core.min.css +1 -1
  14. package/assets/css/core.min.css.map +1 -1
  15. package/assets/css/style.min.css +1 -1
  16. package/assets/css/style.min.css.map +1 -1
  17. package/assets/favicons/manifest.json +1 -1
  18. package/assets/fonts/qanelas-semibold-webfont.woff +0 -0
  19. package/assets/fonts/qanelas-semibold-webfont.woff2 +0 -0
  20. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  21. package/assets/js/components/actionbar/actionbar.component.js +2 -0
  22. package/assets/js/components/actionbar/actionbar.component.min.js +4 -4
  23. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  24. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  25. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  26. package/assets/js/components/card/card.component.min.js +1 -1
  27. package/assets/js/components/collapsible-side/collapsible-side.component.js +2 -0
  28. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +4 -4
  29. package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
  30. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  31. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  32. package/assets/js/components/header/header.component.min.js +1 -1
  33. package/assets/js/components/nav/nav.component.js +18 -15
  34. package/assets/js/components/nav/nav.component.min.js +5 -5
  35. package/assets/js/components/nav/nav.component.min.js.map +1 -1
  36. package/assets/js/components/notification/notification.component.min.js +1 -1
  37. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  38. package/assets/js/components/table/table.component.min.js +4 -4
  39. package/assets/js/components/table/table.component.min.js.map +1 -1
  40. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  41. package/assets/js/dynamic.min.js +3 -3
  42. package/assets/js/dynamic.min.js.map +1 -1
  43. package/assets/js/modules/carousel.js +5 -5
  44. package/assets/js/modules/dialogs.js +4 -4
  45. package/assets/js/modules/table.js +3 -1
  46. package/assets/js/scripts.bundle.js +16 -16
  47. package/assets/js/scripts.bundle.js.map +1 -1
  48. package/assets/js/scripts.bundle.min.js +2 -2
  49. package/assets/js/scripts.bundle.min.js.map +1 -1
  50. package/assets/sass/_corefiles.scss +1 -2
  51. package/assets/sass/_elements.scss +15 -14
  52. package/assets/sass/_fonts.scss +9 -1
  53. package/assets/sass/components/collapsible-side.scss +18 -16
  54. package/assets/sass/components/nav-global.scss +6 -5
  55. package/assets/sass/components/nav.scss +4 -4
  56. package/assets/sass/components/stepper.scss +1 -1
  57. package/assets/sass/components/table.extras.scss +14 -12
  58. package/assets/sass/core.scss +0 -1
  59. package/assets/sass/{components → elements}/admin-panel.scss +5 -1
  60. package/assets/sass/{foundations → elements}/buttons.scss +1 -1
  61. package/assets/sass/{components → elements}/dialog.scss +2 -7
  62. package/assets/sass/{components → elements}/forms.scss +4 -4
  63. package/assets/sass/{foundations → elements}/type.scss +7 -5
  64. package/assets/sass/foundations/root.scss +6 -0
  65. package/assets/sass/main.scss +0 -1
  66. package/assets/ts/components/actionbar/actionbar.component.ts +3 -0
  67. package/assets/ts/components/collapsible-side/collapsible-side.component.ts +3 -1
  68. package/assets/ts/components/nav/nav.component.ts +21 -15
  69. package/assets/ts/modules/carousel.ts +5 -5
  70. package/assets/ts/modules/dialogs.ts +5 -5
  71. package/assets/ts/modules/table.ts +5 -3
  72. package/dist/components.es.js +765 -762
  73. package/dist/components.umd.js +43 -43
  74. package/dist/style.css +1 -1
  75. package/package.json +1 -1
  76. package/src/components/Stepper/Step.vue +1 -1
  77. package/assets/css/components/admin-panel.css +0 -1
  78. package/assets/css/components/admin-panel.css.map +0 -1
  79. package/assets/css/components/container.css +0 -1
  80. package/assets/css/components/container.css.map +0 -1
  81. package/assets/css/components/dialog.css +0 -1
  82. package/assets/css/components/dialog.css.map +0 -1
  83. package/assets/css/components/forms.css +0 -1
  84. package/assets/css/components/forms.css.map +0 -1
  85. package/assets/css/components/lists.css +0 -1
  86. package/assets/css/components/lists.css.map +0 -1
  87. package/assets/css/components/table.global.css +0 -1
  88. package/assets/css/components/table.global.css.map +0 -1
  89. package/assets/css/components/tooltips.css +0 -1
  90. package/assets/css/components/tooltips.css.map +0 -1
  91. package/assets/sass/_forms.scss +0 -10
  92. package/assets/sass/foundations/circles.scss +0 -75
  93. /package/assets/sass/{foundations → elements}/brand.scss +0 -0
  94. /package/assets/sass/{components → elements}/container.scss +0 -0
  95. /package/assets/sass/{foundations → elements}/icons.scss +0 -0
  96. /package/assets/sass/{foundations → elements}/links.scss +0 -0
  97. /package/assets/sass/{components → elements}/lists.scss +0 -0
  98. /package/assets/sass/{foundations → elements}/media.scss +0 -0
  99. /package/assets/sass/{components/table.global.scss → elements/table.element.scss} +0 -0
  100. /package/assets/sass/{components → elements}/tooltips.scss +0 -0
@@ -1,8 +1,8 @@
1
- import { openBlock as h, createElementBlock as p, normalizeClass as S, createElementVNode as g, toDisplayString as $, createCommentVNode as _, Fragment as M, renderList as H, renderSlot as x, withDirectives as N, mergeProps as R, vModelDynamic as W, vModelText as pt, vModelSelect as bt, createTextVNode as ft, resolveComponent as F, createVNode as C, withModifiers as gt } from "vue";
2
- const A = (e, a) => {
1
+ import { openBlock as p, createElementBlock as b, normalizeClass as S, createElementVNode as g, toDisplayString as E, createCommentVNode as x, Fragment as H, renderList as C, renderSlot as k, withDirectives as D, mergeProps as j, vModelDynamic as W, vModelText as pt, vModelSelect as bt, createTextVNode as ft, resolveComponent as F, createVNode as R, withModifiers as gt } from "vue";
2
+ const _ = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [i, s] of a)
5
- t[i] = s;
4
+ for (const [i, n] of a)
5
+ t[i] = n;
6
6
  return t;
7
7
  }, yt = {
8
8
  name: "Logo",
@@ -30,38 +30,38 @@ const A = (e, a) => {
30
30
  }
31
31
  }
32
32
  }, vt = ["xlink:href"], wt = ["innerHTML"];
33
- function At(e, a, t, i, s, r) {
34
- return h(), p("div", {
35
- class: S(r.className)
33
+ function At(e, a, t, i, n, s) {
34
+ return p(), b("div", {
35
+ class: S(s.className)
36
36
  }, [
37
- (h(), p("svg", null, [
38
- g("title", null, "iam " + $(t.id), 1),
37
+ (p(), b("svg", null, [
38
+ g("title", null, "iam " + E(t.id), 1),
39
39
  g("use", {
40
- "xlink:href": t.path + r.src
40
+ "xlink:href": t.path + s.src
41
41
  }, null, 8, vt)
42
42
  ])),
43
- t.desc ? (h(), p("span", {
43
+ t.desc ? (p(), b("span", {
44
44
  key: 0,
45
45
  innerHTML: t.desc
46
- }, null, 8, wt)) : _("", !0)
46
+ }, null, 8, wt)) : x("", !0)
47
47
  ], 2);
48
48
  }
49
- const Xo = /* @__PURE__ */ A(yt, [["render", At]]);
49
+ const Xo = /* @__PURE__ */ _(yt, [["render", At]]);
50
50
  /*!
51
- * iamKey v4.1.1-beta-7
51
+ * iamKey v5.0.0
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
54
  const _t = function(e) {
55
55
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
- }, xt = (e, a) => String(e).padStart(a, "0"), Lt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
57
- var kt = function(e, a, t, i) {
58
- function s(r) {
59
- return r instanceof t ? r : new t(function(o) {
60
- o(r);
56
+ }, xt = (e, a) => String(e).padStart(a, "0"), kt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
57
+ var Lt = function(e, a, t, i) {
58
+ function n(s) {
59
+ return s instanceof t ? s : new t(function(o) {
60
+ o(s);
61
61
  });
62
62
  }
63
- return new (t || (t = Promise))(function(r, o) {
64
- function n(m) {
63
+ return new (t || (t = Promise))(function(s, o) {
64
+ function r(m) {
65
65
  try {
66
66
  l(i.next(m));
67
67
  } catch (c) {
@@ -76,7 +76,7 @@ var kt = function(e, a, t, i) {
76
76
  }
77
77
  }
78
78
  function l(m) {
79
- m.done ? r(m.value) : s(m.value).then(n, d);
79
+ m.done ? s(m.value) : n(m.value).then(r, d);
80
80
  }
81
81
  l((i = i.apply(e, a || [])).next());
82
82
  });
@@ -84,24 +84,24 @@ var kt = function(e, a, t, i) {
84
84
  const et = (e) => {
85
85
  const a = Array.from(e.querySelectorAll("thead th"));
86
86
  Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
87
- const s = Array.from(t.querySelectorAll("th, td")), r = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
88
- s.forEach((o, n) => {
89
- const d = a[n];
87
+ const n = 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"];
88
+ n.forEach((o, r) => {
89
+ const d = a[r];
90
90
  if (typeof d < "u") {
91
91
  let l = document.createElement("div");
92
92
  l.innerHTML = d.innerHTML;
93
93
  let m = l.textContent || l.innerText || "";
94
- o.setAttribute("data-label", m), d.hasAttribute("data-td-class") && o.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (o.setAttribute("data-format", d.getAttribute("data-format")), o.innerHTML = G(d.getAttribute("data-format"), o.textContent.trim())), r.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
94
+ o.setAttribute("data-label", m), d.hasAttribute("data-td-class") && o.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (o.setAttribute("data-format", d.getAttribute("data-format")), o.innerHTML = G(d.getAttribute("data-format"), o.textContent.trim())), s.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
95
95
  }
96
96
  });
97
97
  });
98
98
  }, St = (e) => {
99
99
  let a = 0;
100
100
  return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
101
- let s = window.getComputedStyle(document.querySelector("html")), r = t.querySelector(":scope > *:last-child > *:first-child");
102
- if (r) {
103
- r.classList.add("text-nowrap");
104
- let o = r.offsetWidth / parseFloat(s.fontSize);
101
+ let n = window.getComputedStyle(document.querySelector("html")), s = t.querySelector(":scope > *:last-child > *:first-child");
102
+ if (s) {
103
+ s.classList.add("text-nowrap");
104
+ let o = s.offsetWidth / parseFloat(n.fontSize);
105
105
  o += 1.7, a = a > o ? a : o;
106
106
  }
107
107
  }), a;
@@ -111,39 +111,40 @@ const et = (e) => {
111
111
  Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
112
112
  t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
113
113
  }), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
114
- t.insertAdjacentHTML("afterbegin", '<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button>Expand</button></td>');
114
+ const n = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
115
+ t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${n}>Expand</button></td>`);
115
116
  });
116
117
  }, $t = (e) => {
117
118
  e.addEventListener("click", (a) => {
118
119
  if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
119
120
  let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
120
- i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
121
+ t.toggleAttribute("aria-expanded"), i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
121
122
  }
122
123
  });
123
124
  }, at = (e, a) => {
124
125
  let t = a.querySelector("[data-search]");
125
126
  if (!t)
126
127
  return !1;
127
- const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
128
- let r = t.parentNode, o = {};
129
- s.forEach((n, d) => {
130
- Array.from(e.querySelectorAll('td[data-label="' + n.trim() + '"]')).forEach((l, m) => {
128
+ const i = t.getAttribute("id"), n = t.getAttribute("data-search").split(",");
129
+ let s = t.parentNode, o = {};
130
+ n.forEach((r, d) => {
131
+ Array.from(e.querySelectorAll('td[data-label="' + r.trim() + '"]')).forEach((l, m) => {
131
132
  l.querySelector(".td__content") ? o[l.querySelector(".td__content").textContent] = l.querySelector(".td__content").textContent : o[l.textContent] = l.textContent;
132
133
  });
133
- }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), r.querySelector("datalist") || (r.innerHTML += `<datalist id="${i}_list"></datalist>`), r.querySelector("datalist").innerHTML = `${Object.keys(o).map((n) => `<option value="${n}"></option>`).join("")}`;
134
- }, Et = (e, a, t, i, s) => {
135
- var r;
134
+ }), 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(o).map((r) => `<option value="${r}"></option>`).join("")}`;
135
+ }, Et = (e, a, t, i, n) => {
136
+ var s;
136
137
  let o = function(l, m = !1) {
137
138
  if (a.classList.contains("processing"))
138
139
  return !1;
139
- if (l.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, b) => {
140
- const f = c.getAttribute("data-duplicate"), u = document.getElementById(f), v = document.querySelector(`[for="${f}"] iam-card`);
141
- if (u.checked != c.checked)
142
- if (v) {
143
- let k = new Event("click");
144
- v.dispatchEvent(k);
140
+ if (l.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, u) => {
141
+ const h = c.getAttribute("data-duplicate"), f = document.getElementById(h), y = document.querySelector(`[for="${h}"] iam-card`);
142
+ if (f.checked != c.checked)
143
+ if (y) {
144
+ let A = new Event("click");
145
+ y.dispatchEvent(A);
145
146
  } else
146
- u.checked = c.checked;
147
+ f.checked = c.checked;
147
148
  }), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
148
149
  if (!m) {
149
150
  let c = a.querySelector("[data-pagination]");
@@ -153,20 +154,20 @@ const et = (e) => {
153
154
  } else
154
155
  a.hasAttribute("data-submit") ? a.submit() : (Y(e, a, i), I(e, a));
155
156
  if (a.hasAttribute("data-ajax-post")) {
156
- let c = new FormData(a), b = new URLSearchParams(c).toString();
157
- const f = new XMLHttpRequest();
158
- f.open("GET", `${window.location.href}?ajax=true&${b}`), f.send();
157
+ let c = new FormData(a), u = new URLSearchParams(c).toString();
158
+ const h = new XMLHttpRequest();
159
+ h.open("GET", `${window.location.href}?ajax=true&${u}`), h.send();
159
160
  }
160
161
  };
161
162
  a.addEventListener("keyup", (l) => {
162
- clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (r = setTimeout(function() {
163
+ clearTimeout(s), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && (s = setTimeout(function() {
163
164
  o(l);
164
165
  }, 500));
165
166
  }), a.addEventListener("change", (l) => {
166
- clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(e, a, s), o(l)), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-filter][data-no-ajax]") ? (Y(e, a, i), I(e, a)) : (l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") || l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog")) && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && o(l);
167
+ clearTimeout(s), l && l.target instanceof HTMLElement && l.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(e, a, n), o(l)), l && l.target instanceof HTMLElement && l.target.closest("[data-search]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-filter][data-no-ajax]") ? (Y(e, a, i), I(e, a)) : (l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && l.target.closest("form .dialog__wrapper > dialog") || l && l.target instanceof HTMLElement && l.target.closest("[data-filter]") && !l.target.closest("form dialog")) && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-show]") && o(l), l && l.target instanceof HTMLElement && l.target.closest("[data-mimic]") && o(l);
167
168
  }), a.addEventListener("click", (l) => {
168
- if (clearTimeout(r), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]")) {
169
- a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, b) => {
169
+ if (clearTimeout(s), l && l.target instanceof HTMLElement && l.target.closest('dialog button:not([type="button"])') && l.target.closest('dialog button:not([type="button"])').closest("dialog").close(), l && l.target instanceof HTMLElement && l.target.closest(".dialog__close") && (l.preventDefault(), l.stopPropagation()), l && l.target instanceof HTMLElement && l.target.closest("[data-clear]")) {
170
+ a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, u) => {
170
171
  c.innerHTML = "";
171
172
  });
172
173
  let m = a.elements;
@@ -180,12 +181,12 @@ const et = (e) => {
180
181
  case "radio":
181
182
  case "checkbox":
182
183
  if (m[c].checked) {
183
- let b = m[c], f = b.getAttribute("id"), u = document.querySelector(`[for="${f}"`);
184
- if (u.querySelector("iam-card")) {
185
- let v = u.querySelector("iam-card"), k = new Event("click");
186
- v.dispatchEvent(k);
184
+ let u = m[c], h = u.getAttribute("id"), f = document.querySelector(`[for="${h}"`);
185
+ if (f.querySelector("iam-card")) {
186
+ let y = f.querySelector("iam-card"), A = new Event("click");
187
+ y.dispatchEvent(A);
187
188
  }
188
- b.checked = !1;
189
+ u.checked = !1;
189
190
  }
190
191
  break;
191
192
  case "select-one":
@@ -193,72 +194,72 @@ const et = (e) => {
193
194
  m[c].selectedIndex = -1;
194
195
  break;
195
196
  }
196
- a.classList.remove("processing"), a.hasAttribute("data-submit") || J(e, a, s), o(l);
197
+ a.classList.remove("processing"), a.hasAttribute("data-submit") || J(e, a, n), o(l);
197
198
  }
198
199
  }), a.addEventListener("submit", (l) => {
199
- clearTimeout(r), a.hasAttribute("data-submit") || l.preventDefault(), o(l);
200
+ clearTimeout(s), a.hasAttribute("data-submit") || l.preventDefault(), o(l);
200
201
  }), a.addEventListener("force", (l) => {
201
202
  o(l);
202
203
  }), a.addEventListener("paginate", (l) => {
203
204
  o(l, !0);
204
205
  });
205
- let n = [], d = [];
206
+ let r = [], d = [];
206
207
  Array.from(a.querySelectorAll("[data-mimic]")).forEach((l, m) => {
207
208
  let c = l.getAttribute("data-mimic");
208
- Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((b, f) => {
209
- let u = b.closest("form");
210
- n.includes(u) || n.push(u), d.includes(c) || d.push(c);
209
+ Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((u, h) => {
210
+ let f = u.closest("form");
211
+ r.includes(f) || r.push(f), d.includes(c) || d.push(c);
211
212
  });
212
- }), n.forEach((l, m) => {
213
+ }), r.forEach((l, m) => {
213
214
  const c = function() {
214
- let b = [], f = new FormData(l);
215
- for (const [u, v] of f)
216
- document.querySelector(`[data-mimic="${u}"]`) && !b.includes(u) ? (b.push(u), document.querySelector(`[data-mimic="${u}"]`).value = v) : document.querySelector(`[data-mimic="${u}"]`) && (document.querySelector(`[data-mimic="${u}"]`).value += "," + v);
217
- for (const u of b) {
218
- const v = new Event("force");
219
- a.dispatchEvent(v);
215
+ let u = [], h = new FormData(l);
216
+ for (const [f, y] of h)
217
+ document.querySelector(`[data-mimic="${f}"]`) && !u.includes(f) ? (u.push(f), document.querySelector(`[data-mimic="${f}"]`).value = y) : document.querySelector(`[data-mimic="${f}"]`) && (document.querySelector(`[data-mimic="${f}"]`).value += "," + y);
218
+ for (const f of u) {
219
+ const y = new Event("force");
220
+ a.dispatchEvent(y);
220
221
  }
221
- for (const u of d)
222
- if (!f.has(u) && l.querySelector(`[name="${u}"]`)) {
223
- document.querySelector(`[data-mimic="${u}"]`).value = "";
224
- const v = new Event("force");
225
- a.dispatchEvent(v);
222
+ for (const f of d)
223
+ if (!h.has(f) && l.querySelector(`[name="${f}"]`)) {
224
+ document.querySelector(`[data-mimic="${f}"]`).value = "";
225
+ const y = new Event("force");
226
+ a.dispatchEvent(y);
226
227
  }
227
228
  };
228
- l.addEventListener("force", (b) => {
229
+ l.addEventListener("force", (u) => {
229
230
  c();
230
- }), l.addEventListener("change", (b) => {
231
+ }), l.addEventListener("change", (u) => {
231
232
  c();
232
233
  });
233
234
  });
234
235
  }, J = (e, a, t) => {
235
236
  if (a.getAttribute("data-ajax"))
236
237
  return !1;
237
- let i = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), r = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), o = r.getAttribute("data-sort"), n = r.getAttribute("data-order"), d = r.getAttribute("data-format");
238
+ let i = e.querySelector("tbody"), n = a.querySelector("[data-sort]"), s = n.querySelector(`option:nth-child(${n.selectedIndex + 1})`), o = s.getAttribute("data-sort"), r = s.getAttribute("data-order"), d = s.getAttribute("data-format");
238
239
  if (!o)
239
240
  return i.innerHTML = t.innerHTML, et(e), !1;
240
241
  let l = [];
241
- ["asc", "desc", "descending"].includes(n) || (l = n.split(","));
242
+ ["asc", "desc", "descending"].includes(r) || (l = r.split(","));
242
243
  let m = [];
243
- Array.from(i.querySelectorAll("tr")).forEach((b, f) => {
244
- let u = b.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
245
- b.querySelector('[data-label="' + o + '"] .td__content') && (u = b.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), l.length && l.includes(u) && (u = l.indexOf(u)), _t(u) && (u = xt(u, 10)), d && d == "date" && (u = new Date(u));
246
- const v = { index: u, row: b };
247
- m.push(v);
248
- }), m.sort((b, f) => b.index > f.index ? 1 : -1), (n == "descending" || n == "desc") && (m = m.reverse());
244
+ Array.from(i.querySelectorAll("tr")).forEach((u, h) => {
245
+ let f = u.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
246
+ u.querySelector('[data-label="' + o + '"] .td__content') && (f = u.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), l.length && l.includes(f) && (f = l.indexOf(f)), _t(f) && (f = xt(f, 10)), d && d == "date" && (f = new Date(f));
247
+ const y = { index: f, row: u };
248
+ m.push(y);
249
+ }), m.sort((u, h) => u.index > h.index ? 1 : -1), (r == "descending" || r == "desc") && (m = m.reverse());
249
250
  let c = "";
250
- m.forEach((b, f) => {
251
- c += b.row.outerHTML;
251
+ m.forEach((u, h) => {
252
+ c += u.row.outerHTML;
252
253
  }), i.innerHTML = c;
253
254
  }, Y = (e, a, t) => {
254
255
  e.classList.remove("table--filtered");
255
- let i = it(a), s = [], r = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
256
+ let i = it(a), n = [], s = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, r = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
256
257
  if (Array.from(e.querySelectorAll("tbody tr")).forEach((l, m) => {
257
258
  l.classList.remove("filtered"), l.classList.remove("filtered--matched"), l.classList.remove("filtered--show"), l.removeAttribute("data-filtered-by");
258
259
  }), a.querySelector("[data-search]")) {
259
260
  let l = a.querySelector("[data-search]");
260
261
  a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((m, c) => {
261
- s.push({ column: `${m.trim()}`, value: `${l.value}` });
262
+ n.push({ column: `${m.trim()}`, value: `${l.value}` });
262
263
  });
263
264
  }
264
265
  Array.from(a.querySelectorAll("[data-filter-count]")).forEach((l, m) => {
@@ -271,90 +272,90 @@ const et = (e) => {
271
272
  l.innerHTML += `(${d})`, l.parentNode.classList.add("hover");
272
273
  }), e.classList.add("table--filtered");
273
274
  for (const [l, m] of Object.entries(i))
274
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, b) => {
275
- let f = !1;
276
- m.forEach((u, v) => {
277
- let k = c.querySelector(`[data-label="${l}"]`);
278
- if (u && u == "$today")
279
- u = G("date", /* @__PURE__ */ new Date());
280
- else if (u && u == "$yesterday") {
275
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, u) => {
276
+ let h = !1;
277
+ m.forEach((f, y) => {
278
+ let A = c.querySelector(`[data-label="${l}"]`);
279
+ if (f && f == "$today")
280
+ f = G("date", /* @__PURE__ */ new Date());
281
+ else if (f && f == "$yesterday") {
281
282
  let L = /* @__PURE__ */ new Date();
282
- L.setDate(L.getDate() - 1), u = G("date", L);
283
- } else if (u && (u == "$thisWeek" || u == "$lastWeek")) {
284
- let L = /* @__PURE__ */ new Date(), E = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), q = new Date(L.setDate(L.getDate() - L.getDay() + 7)), w = new Date(k.textContent.toLowerCase());
285
- if (L.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), u == "$thisWeek")
286
- f = w >= E && w <= q;
283
+ L.setDate(L.getDate() - 1), f = G("date", L);
284
+ } else if (f && (f == "$thisWeek" || f == "$lastWeek")) {
285
+ let L = /* @__PURE__ */ new Date(), T = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), $ = new Date(L.setDate(L.getDate() - L.getDay() + 7)), w = new Date(A.textContent.toLowerCase());
286
+ if (L.setHours(0, 0, 0, 0), T.setHours(0, 0, 0, 0), $.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), f == "$thisWeek")
287
+ h = w >= T && w <= $;
287
288
  else {
288
- let B = new Date(E.setDate(E.getDate() - 7)), T = new Date(q.setDate(q.getDate() - 7));
289
- B.setHours(0, 0, 0, 0), T.setHours(0, 0, 0, 0), f = w >= B && w <= T;
289
+ let B = new Date(T.setDate(T.getDate() - 7)), M = new Date($.setDate($.getDate() - 7));
290
+ B.setHours(0, 0, 0, 0), M.setHours(0, 0, 0, 0), h = w >= B && w <= M;
290
291
  }
291
- } else if (u && u == "$thisMonth") {
292
- let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), q = L.getMonth();
293
- var y = new Date(E, q, 1), D = new Date(E, q + 1, 0);
294
- let w = new Date(k.textContent.toLowerCase());
295
- y.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), f = w >= y && w <= D;
296
- } else if (u && u == "$lastMonth") {
297
- let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), q = L.getMonth();
298
- var j = new Date(E, q - 1, 1), z = new Date(E, q, 0);
299
- let w = new Date(k.textContent.toLowerCase());
300
- j.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), f = w >= j && w <= z;
292
+ } else if (f && f == "$thisMonth") {
293
+ let L = /* @__PURE__ */ new Date(), T = L.getFullYear(), $ = L.getMonth();
294
+ var q = new Date(T, $, 1), v = new Date(T, $ + 1, 0);
295
+ let w = new Date(A.textContent.toLowerCase());
296
+ q.setHours(0, 0, 0, 0), v.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), h = w >= q && w <= v;
297
+ } else if (f && f == "$lastMonth") {
298
+ let L = /* @__PURE__ */ new Date(), T = L.getFullYear(), $ = L.getMonth();
299
+ var N = new Date(T, $ - 1, 1), z = new Date(T, $, 0);
300
+ let w = new Date(A.textContent.toLowerCase());
301
+ N.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), h = w >= N && w <= z;
301
302
  }
302
- k && k.textContent.toLowerCase().includes(u.toLowerCase()) && (f = !0);
303
- }), f || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", l));
303
+ A && A.textContent.toLowerCase().includes(f.toLowerCase()) && (h = !0);
304
+ }), h || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", l));
304
305
  });
305
306
  Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((l, m) => {
306
- let c = !(s.length > 0 && s[0].value.length >= 3);
307
- s.forEach((b, f) => {
308
- let u = l.querySelector(`[data-label="${b.column}"]`);
309
- u && b.value.length >= 3 && u.textContent.toLowerCase().includes(b.value.toLowerCase()) && (c = !0);
307
+ let c = !(n.length > 0 && n[0].value.length >= 3);
308
+ n.forEach((u, h) => {
309
+ let f = l.querySelector(`[data-label="${u.column}"]`);
310
+ f && u.value.length >= 3 && f.textContent.toLowerCase().includes(u.value.toLowerCase()) && (c = !0);
310
311
  }), c || l.classList.add("filtered");
311
312
  }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((l, m) => {
312
- r++, l.classList.add("filtered--matched"), Math.ceil(r / n) == parseInt(o) && l.classList.add("filtered--show");
313
- }), t && (t.setAttribute("data-total", r), t.setAttribute("data-show", n), t.setAttribute("data-page", o));
313
+ s++, l.classList.add("filtered--matched"), Math.ceil(s / r) == parseInt(o) && l.classList.add("filtered--show");
314
+ }), t && (t.setAttribute("data-total", s), t.setAttribute("data-show", r), t.setAttribute("data-page", o));
314
315
  }, I = (e, a, t) => {
315
- Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
316
- let r = i.getAttribute("data-query"), o;
317
- if (r == "total")
316
+ Array.from(a.querySelectorAll("[data-query]")).forEach((i, n) => {
317
+ let s = i.getAttribute("data-query"), o;
318
+ if (s == "total")
318
319
  t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
319
- else if (!r.includes(" == ") && r.includes(" & ")) {
320
- let n = r.split(" & "), d = "";
321
- n.forEach((l) => {
320
+ else if (!s.includes(" == ") && s.includes(" & ")) {
321
+ let r = s.split(" & "), d = "";
322
+ r.forEach((l) => {
322
323
  d += `:not([data-filtered-by="${l}"])`;
323
324
  }), o = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
324
- } else if (!r.includes(" == "))
325
- o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${r}"])`)).length;
326
- else if (r.includes(" && ")) {
327
- let n = r.split(" && ");
325
+ } else if (!s.includes(" == "))
326
+ o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
327
+ else if (s.includes(" && ")) {
328
+ let r = s.split(" && ");
328
329
  o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
329
330
  let l = !0;
330
- for (const [m, c] of Object.entries(n)) {
331
- let b = c.split(" == ");
332
- (!d.querySelector(`td[data-label="${b[0]}"]`) || d.querySelector(`td[data-label="${b[0]}"]`).textContent != `${b[1]}`) && (l = !1);
331
+ for (const [m, c] of Object.entries(r)) {
332
+ let u = c.split(" == ");
333
+ (!d.querySelector(`td[data-label="${u[0]}"]`) || d.querySelector(`td[data-label="${u[0]}"]`).textContent != `${u[1]}`) && (l = !1);
333
334
  }
334
335
  return l;
335
336
  }).length;
336
337
  } else {
337
- let n = r.split(" == ");
338
- o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${n[0]}"], tbody tr[data-filtered-by="${n[0]}"] td[data-label="${n[0]}"]`)).filter(function(d) {
339
- return d.textContent === n[1];
338
+ let r = s.split(" == ");
339
+ o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${r[0]}"], tbody tr[data-filtered-by="${r[0]}"] td[data-label="${r[0]}"]`)).filter(function(d) {
340
+ return d.textContent === r[1];
340
341
  }).length;
341
342
  }
342
343
  i.hasAttribute("data-total") ? i.setAttribute("data-total", o) : i.innerHTML = o;
343
344
  });
344
345
  }, Tt = function(e, a, t, i) {
345
- t.addEventListener("update-page", (s) => {
346
- let r = a.querySelector("[data-pagination]"), o = s.detail.page;
347
- if (r.value = o, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", o), e.hasAttribute("data-show-history")) {
348
- const n = new URL(location);
349
- n.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", n);
346
+ t.addEventListener("update-page", (n) => {
347
+ let s = a.querySelector("[data-pagination]"), o = n.detail.page;
348
+ if (s.value = o, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", o), e.hasAttribute("data-show-history")) {
349
+ const r = new URL(location);
350
+ r.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", r);
350
351
  }
351
352
  if (!i.hasAttribute("data-no-scroll")) {
352
- const n = e.getBoundingClientRect().top + window.pageYOffset + -250;
353
- window.scrollTo({ top: n, behavior: "smooth" });
353
+ const r = e.getBoundingClientRect().top + window.pageYOffset + -250;
354
+ window.scrollTo({ top: r, behavior: "smooth" });
354
355
  }
355
- }), t.addEventListener("update-show", (s) => {
356
- let r = a.querySelector("[data-show]"), o = s.detail.show;
357
- r.value = o, i.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
356
+ }), t.addEventListener("update-show", (n) => {
357
+ let s = a.querySelector("[data-show]"), o = n.detail.show;
358
+ s.value = o, i.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
358
359
  });
359
360
  }, Mt = (e, a) => {
360
361
  if (!e)
@@ -364,90 +365,90 @@ const et = (e) => {
364
365
  });
365
366
  }, Ht = function(e) {
366
367
  for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
367
- for (var s = t[i].querySelectorAll("td,th"), r = [], o = 0; o < s.length; o++)
368
- r.push(`"${s[o].textContent}"`);
369
- a.push(r.join(","));
368
+ for (var n = t[i].querySelectorAll("td,th"), s = [], o = 0; o < n.length; o++)
369
+ s.push(`"${n[o].textContent}"`);
370
+ a.push(s.join(","));
370
371
  }
371
372
  a = a.join(`
372
373
  `);
373
- let n = new Blob([a], { type: "text/csv" });
374
+ let r = new Blob([a], { type: "text/csv" });
374
375
  var d = document.createElement("a");
375
376
  d.download = "export.csv";
376
- var l = window.URL.createObjectURL(n);
377
+ var l = window.URL.createObjectURL(r);
377
378
  d.href = l, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
378
379
  }, ot = function(e, a, t, i) {
379
380
  if (et(e), qt(e, i), I(e, a, i), i && i.classList.contains("table--cta")) {
380
- let s = function() {
381
- Array.from(e.querySelectorAll("tr")).forEach((o, n) => {
381
+ let n = function() {
382
+ Array.from(e.querySelectorAll("tr")).forEach((o, r) => {
382
383
  let d = o.offsetHeight;
383
384
  o.style.setProperty("--row-height", `${d}px`);
384
385
  });
385
386
  };
386
- const r = St(e);
387
- i.style.setProperty("--cta-width", `${r}rem`), new ResizeObserver(s).observe(e);
387
+ const s = St(e);
388
+ i.style.setProperty("--cta-width", `${s}rem`), new ResizeObserver(n).observe(e);
388
389
  }
389
390
  }, it = function(e) {
390
391
  let a = new Object();
391
392
  return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
392
393
  if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
393
- let s = t.getAttribute("data-filter");
394
- a[s] || (a[s] = new Array()), a[s].push(t.value);
394
+ let n = t.getAttribute("data-filter");
395
+ a[n] || (a[n] = new Array()), a[n].push(t.value);
395
396
  }
396
397
  }), a;
397
398
  }, rt = function(e, a, t, i) {
398
- return kt(this, void 0, void 0, function* () {
399
- const s = (f, u, v) => u.split(/[\.\[\]\'\"]/).filter((k) => k).reduce((k, y) => k ? k[y] : v, f);
400
- let r = new FormData(a), o = new URLSearchParams(r).toString(), n = e.querySelectorAll("thead tr th"), d = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
399
+ return Lt(this, void 0, void 0, function* () {
400
+ const n = (h, f, y) => f.split(/[\.\[\]\'\"]/).filter((A) => A).reduce((A, q) => A ? A[q] : y, h);
401
+ let s = new FormData(a), o = new URLSearchParams(s).toString(), r = e.querySelectorAll("thead tr th"), d = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
401
402
  i.classList.add("table--loading");
402
403
  let m = it(a);
403
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((f, u) => {
404
- f.innerHTML = "", f.parentNode.classList.remove("hover");
404
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, f) => {
405
+ h.innerHTML = "", h.parentNode.classList.remove("hover");
405
406
  });
406
407
  let c = 0;
407
- Object.values(m).forEach((f, u) => {
408
- typeof f == "object" && Object.values(f).length ? c += Object.values(f).length : c++;
409
- }), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((f, u) => {
410
- f.innerHTML += `(${c})`, f.parentNode.classList.add("hover");
408
+ Object.values(m).forEach((h, f) => {
409
+ typeof h == "object" && Object.values(h).length ? c += Object.values(h).length : c++;
410
+ }), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((h, f) => {
411
+ h.innerHTML += `(${c})`, h.parentNode.classList.add("hover");
411
412
  }), window.controller || (window.controller = []), window.controller[l] && window.controller[l].abort(), window.controller[l] = new AbortController();
412
- const { signal: b } = controller[l];
413
+ const { signal: u } = controller[l];
413
414
  t.setAttribute("data-loading", "true"), a.classList.add("processing");
414
415
  try {
415
- yield fetch(l + "?" + o, { signal: b, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((f) => f.json()).then((f) => {
416
- let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", v = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", k = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", y = s(f, v, 15), D = s(f, k, 1), j = s(f, u), z = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
417
- j ? (d.innerHTML = "", j.forEach((L, E) => {
418
- var q = document.createElement("tr");
419
- n.forEach((w, B) => {
420
- let T = "";
416
+ yield fetch(l + "?" + o, { signal: u, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((h) => h.json()).then((h) => {
417
+ let f = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", y = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", A = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", q = n(h, y, 15), v = n(h, A, 1), N = n(h, f), z = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
418
+ N ? (d.innerHTML = "", N.forEach((L, T) => {
419
+ var $ = document.createElement("tr");
420
+ r.forEach((w, B) => {
421
+ let M = "";
421
422
  var O = document.createElement("td");
422
423
  if (O.setAttribute("data-label", w.innerText), w.getAttribute("data-output")) {
423
424
  var V = w.getAttribute("data-output");
424
- T = V.replace(new RegExp(/{(.*?)}/, "gm"), function(ct) {
425
- return s(L, ct.replace("{", "").replace("}", ""));
425
+ M = V.replace(new RegExp(/{(.*?)}/, "gm"), function(ct) {
426
+ return n(L, ct.replace("{", "").replace("}", ""));
426
427
  });
427
428
  }
428
429
  if (w.hasAttribute("data-output-array")) {
429
430
  var V = w.getAttribute("data-output");
430
- let ut = s(L, V.replace("{", "").replace("}", ""));
431
- T = "", ut.forEach((X, Go) => {
431
+ let ut = n(L, V.replace("{", "").replace("}", ""));
432
+ M = "", ut.forEach((X, Go) => {
432
433
  let mt = w.getAttribute("data-output-array"), P = "";
433
434
  if (w.hasAttribute("data-output-array-property") && w.hasAttribute("data-output-array-transform")) {
434
- const U = s(X, w.getAttribute("data-output-array-property")), ht = JSON.parse(w.getAttribute("data-output-array-transform"))[U];
435
+ const U = n(X, w.getAttribute("data-output-array-property")), ht = JSON.parse(w.getAttribute("data-output-array-transform"))[U];
435
436
  P = mt.replace(`{${w.getAttribute("data-output-array-property")}}`, ht);
436
437
  }
437
438
  P = P.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
438
- return s(X, U.replace("{", "").replace("}", ""));
439
- }), T += P;
439
+ return n(X, U.replace("{", "").replace("}", ""));
440
+ }), M += P;
440
441
  });
441
442
  }
442
- w.hasAttribute("data-transform") && (T = JSON.parse(w.getAttribute("data-transform"))[T], !T && w.hasAttribute("data-default") && (T = w.getAttribute("data-default"))), O.innerHTML = T, q.appendChild(O);
443
- }), d.appendChild(q);
444
- }), at(e, a), i.setAttribute("data-total", parseInt(y)), i.setAttribute("data-page", parseInt(D)), ot(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, E) => {
445
- let q = s(f, L.getAttribute("data-ajax-query"), "");
446
- L.hasAttribute("data-total") ? L.setAttribute("data-total", q) : L.innerHTML = q;
447
- }), parseInt(y) == 0 && (d.innerHTML = `<tr><td colspan="100%"><span>${z}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : d.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
443
+ w.hasAttribute("data-transform") && (M = JSON.parse(w.getAttribute("data-transform"))[M], !M && w.hasAttribute("data-default") && (M = w.getAttribute("data-default"))), O.innerHTML = M, $.appendChild(O);
444
+ }), d.appendChild($);
445
+ }), at(e, a), i.setAttribute("data-total", parseInt(q)), i.setAttribute("data-page", parseInt(v)), ot(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, T) => {
446
+ let $ = n(h, L.getAttribute("data-ajax-query"), "");
447
+ L.hasAttribute("data-total") ? L.setAttribute("data-total", $) : L.innerHTML = $;
448
+ }), parseInt(q) == 0 && (d.innerHTML = `<tr><td colspan="100%"><span>${z}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: o })) : d.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
448
449
  });
449
- } catch (f) {
450
- console.log(f);
450
+ } catch (h) {
451
+ console.log(h);
451
452
  }
452
453
  });
453
454
  }, G = (e, a) => {
@@ -457,7 +458,7 @@ const et = (e) => {
457
458
  case "date":
458
459
  return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
459
460
  case "capitalise":
460
- return a = Lt(a);
461
+ return a = kt(a);
461
462
  }
462
463
  };
463
464
  class Ct extends HTMLElement {
@@ -489,7 +490,7 @@ class Ct extends HTMLElement {
489
490
  </div>
490
491
  </div>
491
492
  <iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
492
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) tr[data-view=full] [data-expand-button]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label{padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:before,iam-table input:is([type=radio],[type=checkbox])+label:after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label{padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:before,iam-table input:is([type=radio],[type=checkbox])+label:after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] tr[data-view=full] [data-expand-button]:before{content:""}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.extras.css.map */
493
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.extras.css.map */
493
494
  </style>`);
494
495
  }
495
496
  connectedCallback() {
@@ -499,37 +500,37 @@ class Ct extends HTMLElement {
499
500
  if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.querySelector(".actionbar__sticky") && this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector("iam-pagination"), this.pagination.setAttribute("data-total", this.getAttribute("data-total")), this.pagination.setAttribute("data-page", this.getAttribute("data-page")), this.pagination.setAttribute("data-show", this.getAttribute("data-show")), this.pagination.setAttribute("data-increment", this.getAttribute("data-show")), this.hasAttribute("data-page-jump") && this.pagination.setAttribute("data-page-jump", "true"), this.hasAttribute("data-per-page") && this.pagination.setAttribute("data-per-page", "true"), this.hasAttribute("data-item-count") && this.pagination.setAttribute("data-item-count", "true"), this.hasAttribute("data-loading") && this.pagination.setAttribute("data-loading", "true"), this.classList.contains("table--fullwidth") && this.pagination.setAttribute("data-minimal", "true"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), at(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), $t(this.table), Et(this.table, this.form, this.pagination, this, this.savedTableBody), Tt(this.table, this.form, this.pagination, this), Mt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
500
501
  rt(this.table, this.form, this.pagination, this);
501
502
  else {
502
- let i = function(r = 1) {
503
- return Math.floor(Math.random() * Date.now() * (r + 1));
503
+ let i = function(s = 1) {
504
+ return Math.floor(Math.random() * Date.now() * (s + 1));
504
505
  };
505
506
  if (this.querySelector("iam-actionbar[data-selectall]")) {
506
- const r = this.querySelector("iam-actionbar[data-selectall]");
507
- Array.from(this.table.querySelectorAll("thead tr")).forEach((o, n) => {
507
+ const s = this.querySelector("iam-actionbar[data-selectall]");
508
+ Array.from(this.table.querySelectorAll("thead tr")).forEach((o, r) => {
508
509
  o.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
509
- }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, n) => {
510
- let d = `row${i(n)}`;
510
+ }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, r) => {
511
+ let d = `row${i(r)}`;
511
512
  o.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${d}"/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`);
512
513
  }), this.table.addEventListener("change", (o) => {
513
514
  if (o && o.target instanceof HTMLElement && o.target.closest(".selectrow input")) {
514
- let n = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
515
- r.setAttribute("data-selected", n == d ? "all" : d);
515
+ let r = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
516
+ s.setAttribute("data-selected", r == d ? "all" : d);
516
517
  }
517
- }), r.addEventListener("selected", (o) => {
518
- o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((n, d) => {
519
- n.checked = !1;
520
- }) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((n, d) => {
521
- n.checked = !0;
518
+ }), s.addEventListener("selected", (o) => {
519
+ o.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((r, d) => {
520
+ r.checked = !1;
521
+ }) : o.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((r, d) => {
522
+ r.checked = !0;
522
523
  });
523
524
  });
524
525
  }
525
- let s = -1;
526
- Array.from(this.table.querySelectorAll("tbody tr")).forEach((r, o) => {
527
- if (r.querySelector(":scope > td > .dialog__wrapper")) {
528
- let n = r.querySelector(":scope > td > .dialog__wrapper").parentNode;
529
- n.classList.add("td--fixed"), s = Array.from(n.parentNode.children).indexOf(n);
526
+ let n = -1;
527
+ Array.from(this.table.querySelectorAll("tbody tr")).forEach((s, o) => {
528
+ if (s.querySelector(":scope > td > .dialog__wrapper")) {
529
+ let r = s.querySelector(":scope > td > .dialog__wrapper").parentNode;
530
+ r.classList.add("td--fixed"), n = Array.from(r.parentNode.children).indexOf(r);
530
531
  }
531
- }), s != -1 && (this.table.querySelector(`thead tr th:nth-child(${s + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${s + 1})`)).forEach((r, o) => {
532
- r.classList.add("td--fixed");
532
+ }), n != -1 && (this.table.querySelector(`thead tr th:nth-child(${n + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${n + 1})`)).forEach((s, o) => {
533
+ s.classList.add("td--fixed");
533
534
  })), ot(this.table, this.form, this.pagination, this), Y(this.table, this.form, this), I(this.table, this.form);
534
535
  }
535
536
  this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
@@ -557,7 +558,7 @@ class Ct extends HTMLElement {
557
558
  }
558
559
  }
559
560
  /*!
560
- * iamKey v4.1.1-beta-7
561
+ * iamKey v5.0.0
561
562
  * Copyright 2022-2023 iamproperty
562
563
  */
563
564
  let nt = class extends HTMLElement {
@@ -607,31 +608,31 @@ let nt = class extends HTMLElement {
607
608
  connectedCallback() {
608
609
  const a = new URLSearchParams(window.location.search);
609
610
  this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
610
- const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), r = this.shadowRoot.querySelector(".per-page select"), o = this.shadowRoot.querySelector(".load-more");
611
- this.setup(), t.addEventListener("change", (n) => {
612
- this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", n.target.value);
613
- }), s.addEventListener("click", (n) => {
611
+ const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), n = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".per-page select"), o = this.shadowRoot.querySelector(".load-more");
612
+ this.setup(), t.addEventListener("change", (r) => {
613
+ this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", r.target.value);
614
+ }), n.addEventListener("click", (r) => {
614
615
  t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
615
- }), i.addEventListener("click", (n) => {
616
+ }), i.addEventListener("click", (r) => {
616
617
  t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
617
- }), r.addEventListener("change", (n) => {
618
- this.setAttribute("data-increment", n.target.value);
619
- }), o.addEventListener("click", (n) => {
618
+ }), s.addEventListener("change", (r) => {
619
+ this.setAttribute("data-increment", r.target.value);
620
+ }), o.addEventListener("click", (r) => {
620
621
  let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
621
622
  this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && o.remove();
622
623
  });
623
624
  }
624
625
  setup() {
625
- const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), r = this.shadowRoot.querySelector(".item-count"), o = this.shadowRoot.querySelector(".per-page select"), n = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), l = parseInt(this.getAttribute("data-total")), m = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), b = Math.ceil(l / c);
626
+ const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), n = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".item-count"), o = this.shadowRoot.querySelector(".per-page select"), r = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), l = parseInt(this.getAttribute("data-total")), m = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), u = Math.ceil(l / c);
626
627
  l > m && a.classList.remove("d-none");
627
- let f = "";
628
- for (let y = 1; y <= b; y++)
629
- f += `<option value="${y}" ${y == d ? "selected" : ""}>${y}</option>`;
630
- t.innerHTML = f, n.innerHTML = `of ${b}`, d == b ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
631
- let u = d == 1 ? 1 : (d - 1) * m + 1, v = d == 1 ? m : d * m;
632
- r.innerHTML = `${u} - ${v > l ? l : v} of ${l} items`;
633
- const k = [15, 25, 40, 50];
634
- c && o.value != c && !k.includes(c) && (o.innerHTML = `<option value="${c}">${c}</option>
628
+ let h = "";
629
+ for (let q = 1; q <= u; q++)
630
+ h += `<option value="${q}" ${q == d ? "selected" : ""}>${q}</option>`;
631
+ t.innerHTML = h, r.innerHTML = `of ${u}`, d == u ? n.setAttribute("disabled", "disabled") : n.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
632
+ let f = d == 1 ? 1 : (d - 1) * m + 1, y = d == 1 ? m : d * m;
633
+ s.innerHTML = `${f} - ${y > l ? l : y} of ${l} items`;
634
+ const A = [15, 25, 40, 50];
635
+ c && o.value != c && !A.includes(c) && (o.innerHTML = `<option value="${c}">${c}</option>
635
636
  <option value="${c * 2}">${c * 2}</option>
636
637
  <option value="${c * 3}">${c * 3}</option>
637
638
  <option value="${c * 4}">${c * 4}</option>`), o.value = c;
@@ -687,31 +688,31 @@ const Rt = (e) => e.charAt(0).toUpperCase() + e.slice(1), jt = (e) => e.replace(
687
688
  updated() {
688
689
  }
689
690
  }, Pt = { key: 0 }, Ft = { key: 0 }, It = ["data-row-id"], Bt = ["innerHTML"];
690
- function Ot(e, a, t, i, s, r) {
691
- return h(), p("iam-table", null, [
692
- t.fields ? (h(), p("table", Pt, [
691
+ function Ot(e, a, t, i, n, s) {
692
+ return p(), b("iam-table", null, [
693
+ t.fields ? (p(), b("table", Pt, [
693
694
  g("thead", null, [
694
695
  g("tr", null, [
695
- (h(!0), p(M, null, H(t.fields, (o) => (h(), p("th", {
696
+ (p(!0), b(H, null, C(t.fields, (o) => (p(), b("th", {
696
697
  key: o.key
697
- }, $(r.cellHeading(o.key)), 1))), 128))
698
+ }, E(s.cellHeading(o.key)), 1))), 128))
698
699
  ])
699
700
  ]),
700
- t.items ? (h(), p("tbody", Ft, [
701
- (h(!0), p(M, null, H(t.items, (o, n) => (h(), p("tr", {
702
- key: n,
701
+ t.items ? (p(), b("tbody", Ft, [
702
+ (p(!0), b(H, null, C(t.items, (o, r) => (p(), b("tr", {
703
+ key: r,
703
704
  "data-row-id": o.rowid
704
705
  }, [
705
- (h(!0), p(M, null, H(Object.fromEntries(Object.entries(o).filter(([d]) => d !== "rowid")), (d, l) => (h(), p("td", {
706
+ (p(!0), b(H, null, C(Object.fromEntries(Object.entries(o).filter(([d]) => d !== "rowid")), (d, l) => (p(), b("td", {
706
707
  key: l,
707
708
  innerHTML: d
708
709
  }, null, 8, Bt))), 128))
709
710
  ], 8, It))), 128))
710
- ])) : _("", !0)
711
- ])) : x(e.$slots, "default", { key: 1 })
711
+ ])) : x("", !0)
712
+ ])) : k(e.$slots, "default", { key: 1 })
712
713
  ]);
713
714
  }
714
- const st = /* @__PURE__ */ A(zt, [["render", Ot]]), Vt = {
715
+ const st = /* @__PURE__ */ _(zt, [["render", Ot]]), Vt = {
715
716
  name: "Input",
716
717
  props: {
717
718
  value: {
@@ -906,183 +907,183 @@ const st = /* @__PURE__ */ A(zt, [["render", Ot]]), Vt = {
906
907
  key: 6,
907
908
  class: "input-group"
908
909
  }, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"], oe = ["value"], ie = ["type", "name", "id"], re = ["for", "innerHTML"], ne = ["type", "name", "id"], se = ["for", "innerHTML"], le = ["innerHTML"], de = ["id"], ce = ["value"];
909
- function ue(e, a, t, i, s, r) {
910
- return h(), p("div", {
911
- class: S(r.wrapperClass()),
910
+ function ue(e, a, t, i, n, s) {
911
+ return p(), b("div", {
912
+ class: S(s.wrapperClass()),
912
913
  ref: "wrapper"
913
914
  }, [
914
- r.needsLabel() ? (h(), p("label", {
915
+ s.needsLabel() ? (p(), b("label", {
915
916
  key: 0,
916
917
  class: S(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
917
918
  for: t.id,
918
- innerHTML: r.displayLabel(),
919
+ innerHTML: s.displayLabel(),
919
920
  title: t.title
920
- }, null, 10, Ut)) : _("", !0),
921
- t.prefix ? (h(), p("span", {
921
+ }, null, 10, Ut)) : x("", !0),
922
+ t.prefix ? (p(), b("span", {
922
923
  key: 1,
923
924
  class: S(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
924
925
  innerHTML: t.prefix,
925
926
  role: "presentation"
926
- }, null, 10, Wt)) : _("", !0),
927
- t.suffix ? (h(), p("span", {
927
+ }, null, 10, Wt)) : x("", !0),
928
+ t.suffix ? (p(), b("span", {
928
929
  key: 2,
929
930
  class: S(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
930
931
  innerHTML: t.suffix,
931
932
  role: "presentation"
932
- }, null, 10, Yt)) : _("", !0),
933
- r.isInput() ? N((h(), p("input", R({
933
+ }, null, 10, Yt)) : x("", !0),
934
+ s.isInput() ? D((p(), b("input", j({
934
935
  key: 3,
935
- "onUpdate:modelValue": a[0] || (a[0] = (o) => r.inputVal = o),
936
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => s.inputVal = o),
936
937
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
937
938
  type: t.type,
938
939
  name: t.name ? t.name : t.id,
939
940
  id: t.id,
940
- pattern: r.needPattern(),
941
- list: r.hasOptions()
941
+ pattern: s.needPattern(),
942
+ list: s.hasOptions()
942
943
  }, e.$attrs, {
943
- onKeyup: a[1] || (a[1] = (...o) => r.inputKeyup && r.inputKeyup(...o))
944
+ onKeyup: a[1] || (a[1] = (...o) => s.inputKeyup && s.inputKeyup(...o))
944
945
  }), null, 16, Gt)), [
945
- [W, r.inputVal]
946
- ]) : _("", !0),
947
- t.type == "textarea" ? N((h(), p("textarea", R({
946
+ [W, s.inputVal]
947
+ ]) : x("", !0),
948
+ t.type == "textarea" ? D((p(), b("textarea", j({
948
949
  key: 4,
949
- "onUpdate:modelValue": a[2] || (a[2] = (o) => r.inputVal = o),
950
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => s.inputVal = o),
950
951
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
951
952
  type: t.type,
952
953
  name: t.name ? t.name : t.id,
953
954
  id: t.id,
954
- pattern: r.needPattern()
955
+ pattern: s.needPattern()
955
956
  }, e.$attrs), null, 16, Kt)), [
956
- [pt, r.inputVal]
957
- ]) : _("", !0),
958
- t.type == "range" ? (h(), p("div", Xt, [
959
- N(g("input", R({
960
- "onUpdate:modelValue": a[3] || (a[3] = (o) => r.inputVal = o),
957
+ [pt, s.inputVal]
958
+ ]) : x("", !0),
959
+ t.type == "range" ? (p(), b("div", Xt, [
960
+ D(g("input", j({
961
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => s.inputVal = o),
961
962
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
962
963
  type: t.type,
963
964
  name: t.name ? t.name : t.id,
964
965
  id: t.id,
965
- pattern: r.needPattern(),
966
- list: r.hasOptions()
966
+ pattern: s.needPattern(),
967
+ list: s.hasOptions()
967
968
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Jt), [
968
- [W, r.inputVal]
969
+ [W, s.inputVal]
969
970
  ]),
970
- g("output", Qt, $(t.value), 1)
971
- ])) : _("", !0),
972
- t.type == "color" ? (h(), p("div", Zt, [
973
- N(g("input", R({
974
- "onUpdate:modelValue": a[4] || (a[4] = (o) => r.inputVal = o),
971
+ g("output", Qt, E(t.value), 1)
972
+ ])) : x("", !0),
973
+ t.type == "color" ? (p(), b("div", Zt, [
974
+ D(g("input", j({
975
+ "onUpdate:modelValue": a[4] || (a[4] = (o) => s.inputVal = o),
975
976
  class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
976
977
  type: t.type,
977
978
  name: t.name ? t.name : t.id,
978
979
  id: t.id,
979
- pattern: r.needPattern(),
980
- list: r.hasOptions()
980
+ pattern: s.needPattern(),
981
+ list: s.hasOptions()
981
982
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, te), [
982
- [W, r.inputVal]
983
+ [W, s.inputVal]
983
984
  ]),
984
- g("output", ee, $(t.value ? e.vale : "#000000"), 1)
985
- ])) : _("", !0),
986
- t.type == "select" ? N((h(), p("select", R({
985
+ g("output", ee, E(t.value ? e.vale : "#000000"), 1)
986
+ ])) : x("", !0),
987
+ t.type == "select" ? D((p(), b("select", j({
987
988
  key: 7,
988
- "onUpdate:modelValue": a[5] || (a[5] = (o) => r.inputVal = o),
989
+ "onUpdate:modelValue": a[5] || (a[5] = (o) => s.inputVal = o),
989
990
  class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
990
991
  type: t.type,
991
992
  name: t.id,
992
993
  id: t.id,
993
- pattern: r.needPattern()
994
+ pattern: s.needPattern()
994
995
  }, e.$attrs), [
995
- (h(!0), p(M, null, H(t.options, (o, n) => (h(), p("option", {
996
- key: n,
996
+ (p(!0), b(H, null, C(t.options, (o, r) => (p(), b("option", {
997
+ key: r,
997
998
  value: o.value
998
- }, $(o.display ? o.display : o.value), 9, oe))), 128))
999
+ }, E(o.display ? o.display : o.value), 9, oe))), 128))
999
1000
  ], 16, ae)), [
1000
- [bt, r.inputVal]
1001
- ]) : _("", !0),
1002
- t.type == "checkbox" || t.type == "radio" ? (h(), p("input", R({
1001
+ [bt, s.inputVal]
1002
+ ]) : x("", !0),
1003
+ t.type == "checkbox" || t.type == "radio" ? (p(), b("input", j({
1003
1004
  key: 8,
1004
1005
  class: "form-check-input",
1005
1006
  type: t.type,
1006
1007
  name: t.name ? t.name : t.id,
1007
1008
  id: t.id
1008
- }, e.$attrs), null, 16, ie)) : _("", !0),
1009
- t.type == "checkbox" || t.type == "radio" ? (h(), p("label", {
1009
+ }, e.$attrs), null, 16, ie)) : x("", !0),
1010
+ t.type == "checkbox" || t.type == "radio" ? (p(), b("label", {
1010
1011
  key: 9,
1011
1012
  class: S(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
1012
1013
  for: t.id,
1013
1014
  innerHTML: t.label
1014
- }, null, 10, re)) : _("", !0),
1015
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("input", R({
1015
+ }, null, 10, re)) : x("", !0),
1016
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (p(), b("input", j({
1016
1017
  key: 10,
1017
1018
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
1018
1019
  type: t.type.replace("-btn", ""),
1019
1020
  autocomplete: "off",
1020
1021
  name: t.name ? t.name : t.id,
1021
1022
  id: t.id
1022
- }, e.$attrs), null, 16, ne)) : _("", !0),
1023
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("label", {
1023
+ }, e.$attrs), null, 16, ne)) : x("", !0),
1024
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (p(), b("label", {
1024
1025
  key: 11,
1025
1026
  class: S(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
1026
1027
  for: t.id,
1027
1028
  innerHTML: t.label,
1028
- onClick: a[6] || (a[6] = (...o) => r.clickEvent && r.clickEvent(...o))
1029
- }, null, 10, se)) : _("", !0),
1030
- x(e.$slots, "default"),
1031
- t.errormsg ? (h(), p("span", {
1029
+ onClick: a[6] || (a[6] = (...o) => s.clickEvent && s.clickEvent(...o))
1030
+ }, null, 10, se)) : x("", !0),
1031
+ k(e.$slots, "default"),
1032
+ t.errormsg ? (p(), b("span", {
1032
1033
  key: 12,
1033
1034
  class: "invalid-feedback mb-0",
1034
1035
  innerHTML: t.errormsg
1035
- }, null, 8, le)) : _("", !0),
1036
- r.allowDatalist() ? (h(), p("datalist", {
1036
+ }, null, 8, le)) : x("", !0),
1037
+ s.allowDatalist() ? (p(), b("datalist", {
1037
1038
  key: 13,
1038
1039
  id: t.id + "-list"
1039
1040
  }, [
1040
- (h(!0), p(M, null, H(t.options, (o, n) => (h(), p("option", {
1041
- key: n,
1041
+ (p(!0), b(H, null, C(t.options, (o, r) => (p(), b("option", {
1042
+ key: r,
1042
1043
  value: o.value
1043
- }, $(o.value), 9, ce))), 128))
1044
- ], 8, de)) : _("", !0)
1044
+ }, E(o.value), 9, ce))), 128))
1045
+ ], 8, de)) : x("", !0)
1045
1046
  ], 2);
1046
1047
  }
1047
- const lt = /* @__PURE__ */ A(Vt, [["render", ue]]);
1048
+ const lt = /* @__PURE__ */ _(Vt, [["render", ue]]);
1048
1049
  function me(e, a) {
1049
- const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), s = e.querySelector("input"), r = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = s.cloneNode();
1050
- i.append(o), a.addEventListener("click", (n) => {
1051
- n && n.target instanceof HTMLElement && n.target.closest(".btn-primary") && (n.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? o : s).click());
1052
- }), a.addEventListener("click", (n) => {
1053
- if (n && n.target instanceof HTMLElement && n.target.closest(".files button")) {
1054
- const d = new DataTransfer(), { files: l } = s, m = n.target.closest(".files button");
1055
- for (let b = 0; b < l.length; b++) {
1056
- const f = l[b];
1057
- f.name != m.getAttribute("data-file") && d.items.add(f);
1050
+ const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), n = e.querySelector("input"), s = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = n.cloneNode();
1051
+ i.append(o), a.addEventListener("click", (r) => {
1052
+ r && r.target instanceof HTMLElement && r.target.closest(".btn-primary") && (r.target.closest(".btn-primary"), (n.hasAttribute("multiple") ? o : n).click());
1053
+ }), a.addEventListener("click", (r) => {
1054
+ if (r && r.target instanceof HTMLElement && r.target.closest(".files button")) {
1055
+ const d = new DataTransfer(), { files: l } = n, m = r.target.closest(".files button");
1056
+ for (let u = 0; u < l.length; u++) {
1057
+ const h = l[u];
1058
+ h.name != m.getAttribute("data-file") && d.items.add(h);
1058
1059
  }
1059
- s.files = d.files;
1060
+ n.files = d.files;
1060
1061
  const c = new Event("change");
1061
- s.dispatchEvent(c);
1062
+ n.dispatchEvent(c);
1062
1063
  }
1063
- }), o.addEventListener("change", (n) => {
1064
- if (s.hasAttribute("multiple")) {
1065
- const l = [...s.files, ...o.files];
1064
+ }), o.addEventListener("change", (r) => {
1065
+ if (n.hasAttribute("multiple")) {
1066
+ const l = [...n.files, ...o.files];
1066
1067
  let m = [];
1067
1068
  const c = new DataTransfer();
1068
- for (let b = 0; b < l.length; b++) {
1069
- const f = l[b], u = f.size / 1e3;
1070
- !m.includes(f.name) && (r == 0 || u < r) && c.items.add(f), m.push(f.name);
1069
+ for (let u = 0; u < l.length; u++) {
1070
+ const h = l[u], f = h.size / 1e3;
1071
+ !m.includes(h.name) && (s == 0 || f < s) && c.items.add(h), m.push(h.name);
1071
1072
  }
1072
- s.files = c.files;
1073
+ n.files = c.files;
1073
1074
  } else
1074
- s.files = o.files;
1075
+ n.files = o.files;
1075
1076
  const d = new Event("change");
1076
- s.dispatchEvent(d);
1077
- }), o.addEventListener("dragenter", (n) => {
1077
+ n.dispatchEvent(d);
1078
+ }), o.addEventListener("dragenter", (r) => {
1078
1079
  o.classList.add("focus");
1079
- }), o.addEventListener("dragleave", (n) => {
1080
+ }), o.addEventListener("dragleave", (r) => {
1080
1081
  o.classList.remove("focus");
1081
- }), o.addEventListener("drop", (n) => {
1082
+ }), o.addEventListener("drop", (r) => {
1082
1083
  o.classList.remove("focus");
1083
- }), s.addEventListener("change", (n) => {
1084
+ }), n.addEventListener("change", (r) => {
1084
1085
  t.innerHTML = "";
1085
- for (const d of s.files)
1086
+ for (const d of n.files)
1086
1087
  t.innerHTML += `<span class="file">${d.name} <button data-file="${d.name}">Remove</button></span>`;
1087
1088
  });
1088
1089
  }
@@ -1094,8 +1095,8 @@ window.dataLayer.push({
1094
1095
  class he extends HTMLElement {
1095
1096
  constructor() {
1096
1097
  super(), this.attachShadow({ mode: "open" });
1097
- 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";`, s = document.createElement("template");
1098
- s.innerHTML = `
1098
+ 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";`, n = document.createElement("template");
1099
+ n.innerHTML = `
1099
1100
  <style>
1100
1101
  @import "${t}";
1101
1102
  ${i}
@@ -1110,7 +1111,7 @@ class he extends HTMLElement {
1110
1111
  <slot></slot>
1111
1112
  <div class="files"></div>
1112
1113
  </div>
1113
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
1114
+ `, this.shadowRoot.appendChild(n.content.cloneNode(!0));
1114
1115
  }
1115
1116
  connectedCallback() {
1116
1117
  this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
@@ -1136,14 +1137,14 @@ const pe = {
1136
1137
  });
1137
1138
  }
1138
1139
  };
1139
- function be(e, a, t, i, s, r) {
1140
- return h(), p("iam-fileupload", null, [
1141
- x(e.$slots, "default")
1140
+ function be(e, a, t, i, n, s) {
1141
+ return p(), b("iam-fileupload", null, [
1142
+ k(e.$slots, "default")
1142
1143
  ]);
1143
1144
  }
1144
- const Qo = /* @__PURE__ */ A(pe, [["render", be]]);
1145
+ const Qo = /* @__PURE__ */ _(pe, [["render", be]]);
1145
1146
  /*!
1146
- * iamKey v4.1.1-beta-7
1147
+ * iamKey v5.0.0
1147
1148
  * Copyright 2022-2023 iamproperty
1148
1149
  */
1149
1150
  function fe(e) {
@@ -1154,10 +1155,10 @@ function fe(e) {
1154
1155
  i.classList.add("accordion-header"), i.classList.add("accordion-button"), i.classList.add("h4");
1155
1156
  }), !e.classList.contains("accordion--keep-open")) {
1156
1157
  const i = e.querySelectorAll(":scope > details");
1157
- i.forEach((s) => {
1158
- s.addEventListener("click", () => {
1159
- i.forEach((r) => {
1160
- r !== s && r.removeAttribute("open");
1158
+ i.forEach((n) => {
1159
+ n.addEventListener("click", () => {
1160
+ i.forEach((s) => {
1161
+ s !== n && s.removeAttribute("open");
1161
1162
  });
1162
1163
  });
1163
1164
  });
@@ -1191,12 +1192,12 @@ const ye = {
1191
1192
  mounted() {
1192
1193
  }
1193
1194
  }, ve = { ref: "wrapper" };
1194
- function we(e, a, t, i, s, r) {
1195
- return h(), p("iam-accordion", ve, [
1196
- x(e.$slots, "default")
1195
+ function we(e, a, t, i, n, s) {
1196
+ return p(), b("iam-accordion", ve, [
1197
+ k(e.$slots, "default")
1197
1198
  ], 512);
1198
1199
  }
1199
- const ti = /* @__PURE__ */ A(ye, [["render", we]]), Ae = {
1200
+ const ti = /* @__PURE__ */ _(ye, [["render", we]]), Ae = {
1200
1201
  name: "AccordionItem",
1201
1202
  props: {
1202
1203
  title: {
@@ -1232,23 +1233,23 @@ const ti = /* @__PURE__ */ A(ye, [["render", we]]), Ae = {
1232
1233
  };
1233
1234
  }
1234
1235
  }, _e = ["id"], xe = ["classList"];
1235
- function Le(e, a, t, i, s, r) {
1236
- return h(), p("details", {
1237
- id: r.createID(t.title)
1236
+ function ke(e, a, t, i, n, s) {
1237
+ return p(), b("details", {
1238
+ id: s.createID(t.title)
1238
1239
  }, [
1239
1240
  g("summary", {
1240
1241
  classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
1241
1242
  }, [
1242
- ft($(t.title), 1),
1243
- t.badge ? (h(), p("span", {
1243
+ ft(E(t.title), 1),
1244
+ t.badge ? (p(), b("span", {
1244
1245
  key: 0,
1245
1246
  class: S(`badge bg-${t.badgecolour}`)
1246
- }, $(t.badge), 3)) : _("", !0)
1247
+ }, E(t.badge), 3)) : x("", !0)
1247
1248
  ], 8, xe),
1248
- x(e.$slots, "default")
1249
+ k(e.$slots, "default")
1249
1250
  ], 8, _e);
1250
1251
  }
1251
- const ei = /* @__PURE__ */ A(Ae, [["render", Le]]), ke = {
1252
+ const ei = /* @__PURE__ */ _(Ae, [["render", ke]]), Le = {
1252
1253
  name: "Header",
1253
1254
  props: {
1254
1255
  title: {
@@ -1266,35 +1267,35 @@ const ei = /* @__PURE__ */ A(Ae, [["render", Le]]), ke = {
1266
1267
  }
1267
1268
  }
1268
1269
  }, Se = { class: "container" }, qe = { class: "row" }, $e = { class: "col-sm-6" }, Ee = { class: "pt-5 pb-3 px-4" }, Te = { class: "col-sm-6 col-md-5 ms-auto" }, Me = ["src"];
1269
- function He(e, a, t, i, s, r) {
1270
- return h(), p("div", Se, [
1270
+ function He(e, a, t, i, n, s) {
1271
+ return p(), b("div", Se, [
1271
1272
  g("div", {
1272
1273
  class: S("bg-" + t.background + " mb-4")
1273
1274
  }, [
1274
1275
  g("div", qe, [
1275
1276
  g("div", $e, [
1276
1277
  g("div", Ee, [
1277
- g("h2", null, $(t.title), 1),
1278
- x(e.$slots, "default")
1278
+ g("h2", null, E(t.title), 1),
1279
+ k(e.$slots, "default")
1279
1280
  ])
1280
1281
  ]),
1281
1282
  g("div", Te, [
1282
- t.image ? (h(), p("img", {
1283
+ t.image ? (p(), b("img", {
1283
1284
  key: 0,
1284
1285
  src: t.image,
1285
1286
  alt: "",
1286
1287
  class: "h-100 w-100 object-cover"
1287
- }, null, 8, Me)) : _("", !0)
1288
+ }, null, 8, Me)) : x("", !0)
1288
1289
  ])
1289
1290
  ])
1290
1291
  ], 2)
1291
1292
  ]);
1292
1293
  }
1293
- const ai = /* @__PURE__ */ A(ke, [["render", He]]), Ce = {
1294
+ const ai = /* @__PURE__ */ _(Le, [["render", He]]), Ce = {
1294
1295
  name: "Card",
1295
1296
  mounted() {
1296
1297
  this.$nextTick(function() {
1297
- import("./card.component.min-b12fd7f2.mjs").then((e) => {
1298
+ import("./card.component.min-45882ca3.mjs").then((e) => {
1298
1299
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1299
1300
  }).catch((e) => {
1300
1301
  console.log(e.message);
@@ -1302,31 +1303,31 @@ const ai = /* @__PURE__ */ A(ke, [["render", He]]), Ce = {
1302
1303
  });
1303
1304
  }
1304
1305
  };
1305
- function Re(e, a, t, i, s, r) {
1306
- return h(), p("iam-card", null, [
1307
- x(e.$slots, "default")
1306
+ function Re(e, a, t, i, n, s) {
1307
+ return p(), b("iam-card", null, [
1308
+ k(e.$slots, "default")
1308
1309
  ]);
1309
1310
  }
1310
- const je = /* @__PURE__ */ A(Ce, [["render", Re]]);
1311
+ const je = /* @__PURE__ */ _(Ce, [["render", Re]]);
1311
1312
  function Ne(e) {
1312
1313
  var a;
1313
1314
  let t = e.querySelector(".carousel__inner"), i = e.querySelectorAll(".carousel__item").length;
1314
1315
  e.getAttribute("data-cols");
1315
- let s = e.getAttribute("data-sm-cols"), r = e.getAttribute("data-md-cols");
1316
- e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
1316
+ let n = e.getAttribute("data-sm-cols"), s = e.getAttribute("data-md-cols");
1317
+ e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(o) {
1317
1318
  clearTimeout(a), a = setTimeout(function() {
1318
- let n = t.clientWidth, d = t.scrollWidth, l = t.scrollLeft, m = Math.round(l / d * i) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
1319
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b, f) => {
1320
- b.classList.remove("active");
1321
- }), e.querySelector(".control-" + m).classList.add("active"), m == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1319
+ let r = t.clientWidth, d = t.scrollWidth, l = t.scrollLeft, m = Math.round(l / d * i) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
1320
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((u, h) => {
1321
+ u.removeAttribute("aria-current");
1322
+ }), e.querySelector(".control-" + m).setAttribute("aria-current", !0), m == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + r > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1322
1323
  }, 100);
1323
1324
  }, !1), e.addEventListener("click", function(o) {
1324
- for (var n = o.target; n && n != this; n = n.parentNode)
1325
- if (n.matches(".carousel__controls a")) {
1325
+ for (var r = o.target; r && r != this; r = r.parentNode)
1326
+ if (r.matches(".carousel__controls a")) {
1326
1327
  o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((l, m) => {
1327
- l.classList.remove("active");
1328
- }), n.classList.add("active");
1329
- const d = document.querySelector(n.getAttribute("href"));
1328
+ l.removeAttribute("aria-current");
1329
+ }), r.setAttribute("aria-current", !0);
1330
+ const d = document.querySelector(r.getAttribute("href"));
1330
1331
  t.scroll({
1331
1332
  top: 0,
1332
1333
  left: d.offsetLeft,
@@ -1335,10 +1336,10 @@ function Ne(e) {
1335
1336
  break;
1336
1337
  }
1337
1338
  }, !1), e.addEventListener("click", function(o) {
1338
- for (var n = o.target; n && n != this; n = n.parentNode)
1339
- if (n.matches(".btn-next, .btn-prev")) {
1339
+ for (var r = o.target; r && r != this; r = r.parentNode)
1340
+ if (r.matches(".btn-next, .btn-prev")) {
1340
1341
  o.preventDefault();
1341
- let d = n.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1342
+ let d = r.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1342
1343
  t.scroll({
1343
1344
  top: 0,
1344
1345
  left: d,
@@ -1346,7 +1347,7 @@ function Ne(e) {
1346
1347
  });
1347
1348
  break;
1348
1349
  }
1349
- }, !1), i == 1 && e.classList.add("hide-btns"), s >= i && e.classList.add("hide-sm-btns"), r >= i && e.classList.add("hide-md-btns");
1350
+ }, !1), i == 1 && e.classList.add("hide-btns"), n >= i && e.classList.add("hide-sm-btns"), s >= i && e.classList.add("hide-md-btns");
1350
1351
  }
1351
1352
  const De = {
1352
1353
  components: {
@@ -1435,29 +1436,29 @@ const De = {
1435
1436
  class: "btn btn-next",
1436
1437
  "data-go": "2"
1437
1438
  }, "Next", -1);
1438
- function We(e, a, t, i, s, r) {
1439
+ function We(e, a, t, i, n, s) {
1439
1440
  const o = F("Card");
1440
- return h(), p("div", {
1441
+ return p(), b("div", {
1441
1442
  class: "container carousel",
1442
- id: "carousel" + s.id,
1443
+ id: "carousel" + n.id,
1443
1444
  ref: "wrapper",
1444
1445
  "data-cols": t.cols,
1445
1446
  "data-sm-cols": t.smcols,
1446
1447
  "data-md-cols": t.mdcols
1447
1448
  }, [
1448
- x(e.$slots, "default"),
1449
+ k(e.$slots, "default"),
1449
1450
  g("div", Pe, [
1450
1451
  g("div", Fe, [
1451
- t.type == "card" ? (h(), p("div", {
1452
+ t.type == "card" ? (p(), b("div", {
1452
1453
  key: 0,
1453
1454
  class: S(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1454
1455
  }, [
1455
- (h(!0), p(M, null, H(t.items, (n, d) => (h(), p("div", {
1456
+ (p(!0), b(H, null, C(t.items, (r, d) => (p(), b("div", {
1456
1457
  class: S(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1457
1458
  key: d,
1458
- id: "carousel" + s.id + "slide" + (d + 1)
1459
+ id: "carousel" + n.id + "slide" + (d + 1)
1459
1460
  }, [
1460
- C(o, R(n, {
1461
+ R(o, j(r, {
1461
1462
  class: t.cardclass,
1462
1463
  type: t.cardtype,
1463
1464
  btnyype: t.btntype,
@@ -1466,36 +1467,36 @@ function We(e, a, t, i, s, r) {
1466
1467
  hidectatext: t.hidectatext
1467
1468
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1468
1469
  ], 10, Ie))), 128))
1469
- ], 2)) : _("", !0),
1470
- t.type != "card" ? (h(), p("div", {
1470
+ ], 2)) : x("", !0),
1471
+ t.type != "card" ? (p(), b("div", {
1471
1472
  key: 1,
1472
1473
  class: S(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1473
1474
  }, [
1474
- (h(!0), p(M, null, H(t.items, (n, d) => (h(), p("div", {
1475
+ (p(!0), b(H, null, C(t.items, (r, d) => (p(), b("div", {
1475
1476
  class: S(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1476
1477
  key: d,
1477
- innerHTML: r.content(n),
1478
- id: "carousel" + s.id + "slide" + (d + 1)
1478
+ innerHTML: s.content(r),
1479
+ id: "carousel" + n.id + "slide" + (d + 1)
1479
1480
  }, null, 10, Be))), 128))
1480
- ], 2)) : _("", !0)
1481
+ ], 2)) : x("", !0)
1481
1482
  ]),
1482
1483
  g("div", {
1483
1484
  class: S(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1484
1485
  }, [
1485
- (h(!0), p(M, null, H(t.items, (n, d) => (h(), p("a", {
1486
+ (p(!0), b(H, null, C(t.items, (r, d) => (p(), b("a", {
1486
1487
  key: d,
1487
- href: "#carousel" + s.id + "slide" + (d + 1),
1488
+ href: "#carousel" + n.id + "slide" + (d + 1),
1488
1489
  class: S(`control-${d + 1}`)
1489
- }, "Slide " + $(d + 1), 11, Oe))), 128))
1490
+ }, "Slide " + E(d + 1), 11, Oe))), 128))
1490
1491
  ], 2),
1491
1492
  Ve,
1492
1493
  Ue
1493
1494
  ])
1494
1495
  ], 8, ze);
1495
1496
  }
1496
- const oi = /* @__PURE__ */ A(De, [["render", We]]);
1497
+ const oi = /* @__PURE__ */ _(De, [["render", We]]);
1497
1498
  /*!
1498
- * iamKey v4.1.1-beta-7
1499
+ * iamKey v5.0.0
1499
1500
  * Copyright 2022-2023 iamproperty
1500
1501
  */
1501
1502
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
@@ -1550,40 +1551,40 @@ const Ge = {
1550
1551
  });
1551
1552
  }
1552
1553
  }, Ke = ["image"], Xe = ["innerHTML"];
1553
- function Je(e, a, t, i, s, r) {
1554
- return h(), p("iam-header", {
1554
+ function Je(e, a, t, i, n, s) {
1555
+ return p(), b("iam-header", {
1555
1556
  class: "bg-secondary",
1556
1557
  image: t.image
1557
1558
  }, [
1558
- x(e.$slots, "breadcrumb"),
1559
- t.title ? (h(), p("h1", {
1559
+ k(e.$slots, "breadcrumb"),
1560
+ t.title ? (p(), b("h1", {
1560
1561
  key: 0,
1561
1562
  innerHTML: t.title
1562
- }, null, 8, Xe)) : _("", !0),
1563
- x(e.$slots, "default")
1563
+ }, null, 8, Xe)) : x("", !0),
1564
+ k(e.$slots, "default")
1564
1565
  ], 8, Ke);
1565
1566
  }
1566
- const ii = /* @__PURE__ */ A(Ge, [["render", Je]]);
1567
+ const ii = /* @__PURE__ */ _(Ge, [["render", Je]]);
1567
1568
  function Qe(e) {
1568
1569
  var a;
1569
1570
  const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
1570
1571
  if (i == 1)
1571
1572
  return !1;
1572
1573
  e.classList.add("testimonial--multi");
1573
- const s = function(r) {
1574
- const o = e.querySelector(".btn-next"), n = e.querySelector(".btn-prev");
1575
- o.setAttribute("data-go", r + 1), n.setAttribute("data-go", r - 1), o.removeAttribute("disabled"), n.removeAttribute("disabled"), r == 1 ? n.setAttribute("disabled", !0) : r == i && o.setAttribute("disabled", !0);
1574
+ const n = function(s) {
1575
+ const o = e.querySelector(".btn-next"), r = e.querySelector(".btn-prev");
1576
+ o.setAttribute("data-go", s + 1), r.setAttribute("data-go", s - 1), o.removeAttribute("disabled"), r.removeAttribute("disabled"), s == 1 ? r.setAttribute("disabled", !0) : s == i && o.setAttribute("disabled", !0);
1576
1577
  };
1577
- t.addEventListener("scroll", function(r) {
1578
+ t.addEventListener("scroll", function(s) {
1578
1579
  clearTimeout(a), a = setTimeout(function() {
1579
- let o = t.scrollWidth, n = t.scrollHeight, d = t.scrollLeft, l = t.scrollTop, m = Math.round(d / o * i) + 1;
1580
- d == 0 && l != 0 && (m = Math.round(l / n * i) + 1), e.setAttribute("data-show", m), s(m);
1580
+ let o = t.scrollWidth, r = t.scrollHeight, d = t.scrollLeft, l = t.scrollTop, m = Math.round(d / o * i) + 1;
1581
+ d == 0 && l != 0 && (m = Math.round(l / r * i) + 1), e.setAttribute("data-show", m), n(m);
1581
1582
  }, 300);
1582
- }, !1), e.addEventListener("click", function(r) {
1583
- for (var o = r.target; o && o != this; o = o.parentNode)
1583
+ }, !1), e.addEventListener("click", function(s) {
1584
+ for (var o = s.target; o && o != this; o = o.parentNode)
1584
1585
  if (o.matches("[data-go]")) {
1585
- let n = parseInt(o.getAttribute("data-go")), d = 0, l = 0, m = t.scrollWidth, c = t.scrollHeight;
1586
- m > c ? l = Math.floor(m * ((n - 1) / i)) : d = Math.floor(c * ((n - 1) / i)), t.scroll({
1586
+ let r = parseInt(o.getAttribute("data-go")), d = 0, l = 0, m = t.scrollWidth, c = t.scrollHeight;
1587
+ m > c ? l = Math.floor(m * ((r - 1) / i)) : d = Math.floor(c * ((r - 1) / i)), t.scroll({
1587
1588
  top: d,
1588
1589
  left: l,
1589
1590
  behavior: "smooth"
@@ -1623,16 +1624,16 @@ const Ze = {
1623
1624
  class: "btn-next"
1624
1625
  }, "Next")
1625
1626
  ], -1), na = { class: "col-md-7" }, sa = /* @__PURE__ */ g("h2", null, "What our customers think…", -1), la = { class: "testimonial__content" }, da = ["innerHTML"], ca = ["innerHTML"], ua = { class: "testimonial__after" }, ma = /* @__PURE__ */ g("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1626
- function ha(e, a, t, i, s, r) {
1627
- return h(), p("div", ta, [
1627
+ function ha(e, a, t, i, n, s) {
1628
+ return p(), b("div", ta, [
1628
1629
  g("div", {
1629
1630
  class: S("bg-" + t.background)
1630
1631
  }, [
1631
1632
  g("div", ea, [
1632
1633
  g("div", aa, [
1633
1634
  g("div", oa, [
1634
- (h(!0), p(M, null, H(t.items, (o, n) => (h(), p("img", {
1635
- key: n,
1635
+ (p(!0), b(H, null, C(t.items, (o, r) => (p(), b("img", {
1636
+ key: r,
1636
1637
  src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1637
1638
  alt: "",
1638
1639
  class: S("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
@@ -1643,8 +1644,8 @@ function ha(e, a, t, i, s, r) {
1643
1644
  g("div", na, [
1644
1645
  sa,
1645
1646
  g("div", la, [
1646
- (h(!0), p(M, null, H(t.items, (o, n) => (h(), p("blockquote", {
1647
- key: n,
1647
+ (p(!0), b(H, null, C(t.items, (o, r) => (p(), b("blockquote", {
1648
+ key: r,
1648
1649
  class: S(o.class)
1649
1650
  }, [
1650
1651
  g("div", {
@@ -1656,7 +1657,7 @@ function ha(e, a, t, i, s, r) {
1656
1657
  ], 2))), 128))
1657
1658
  ]),
1658
1659
  g("div", ua, [
1659
- x(e.$slots, "default")
1660
+ k(e.$slots, "default")
1660
1661
  ])
1661
1662
  ])
1662
1663
  ]),
@@ -1664,7 +1665,7 @@ function ha(e, a, t, i, s, r) {
1664
1665
  ], 2)
1665
1666
  ], 512);
1666
1667
  }
1667
- const ri = /* @__PURE__ */ A(Ze, [["render", ha]]);
1668
+ const ri = /* @__PURE__ */ _(Ze, [["render", ha]]);
1668
1669
  const pa = {
1669
1670
  name: "Timeline",
1670
1671
  props: {
@@ -1674,19 +1675,19 @@ const pa = {
1674
1675
  }
1675
1676
  }
1676
1677
  }, ba = { class: "timeline" }, fa = { class: "timeline__content" }, ga = ["src"];
1677
- function ya(e, a, t, i, s, r) {
1678
- return h(), p("div", ba, [
1678
+ function ya(e, a, t, i, n, s) {
1679
+ return p(), b("div", ba, [
1679
1680
  g("div", fa, [
1680
- x(e.$slots, "default")
1681
+ k(e.$slots, "default")
1681
1682
  ]),
1682
- t.image ? (h(), p("img", {
1683
+ t.image ? (p(), b("img", {
1683
1684
  key: 0,
1684
1685
  src: t.image,
1685
1686
  alt: ""
1686
- }, null, 8, ga)) : _("", !0)
1687
+ }, null, 8, ga)) : x("", !0)
1687
1688
  ]);
1688
1689
  }
1689
- const ni = /* @__PURE__ */ A(pa, [["render", ya]]);
1690
+ const ni = /* @__PURE__ */ _(pa, [["render", ya]]);
1690
1691
  const va = {
1691
1692
  components: {
1692
1693
  Input: lt
@@ -1836,7 +1837,7 @@ const va = {
1836
1837
  }, wa = {
1837
1838
  class: "container",
1838
1839
  ref: "wrapper"
1839
- }, Aa = { class: "property-searchbar" }, _a = ["action", "method"], xa = { class: "col-12 col-md-3" }, La = { class: "col-12 col-md" }, ka = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Price range", -1), Sa = {
1840
+ }, Aa = { class: "property-searchbar" }, _a = ["action", "method"], xa = { class: "col-12 col-md-3" }, ka = { class: "col-12 col-md" }, La = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Price range", -1), Sa = {
1840
1841
  class: "row",
1841
1842
  "data-input-range": ""
1842
1843
  }, qa = { class: "col-12 col-md" }, $a = /* @__PURE__ */ g("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Ea = {
@@ -1849,10 +1850,10 @@ const va = {
1849
1850
  value: "submit"
1850
1851
  }, "Search")
1851
1852
  ], -1);
1852
- function Ha(e, a, t, i, s, r) {
1853
+ function Ha(e, a, t, i, n, s) {
1853
1854
  const o = F("Input");
1854
- return h(), p("div", wa, [
1855
- x(e.$slots, "default"),
1855
+ return p(), b("div", wa, [
1856
+ k(e.$slots, "default"),
1856
1857
  g("div", Aa, [
1857
1858
  g("form", {
1858
1859
  class: "row",
@@ -1860,19 +1861,19 @@ function Ha(e, a, t, i, s, r) {
1860
1861
  method: t.formmethod
1861
1862
  }, [
1862
1863
  g("fieldset", xa, [
1863
- C(o, {
1864
+ R(o, {
1864
1865
  inputClass: "input--locations",
1865
- modelValue: r.locationSet,
1866
- "onUpdate:modelValue": a[0] || (a[0] = (n) => r.locationSet = n),
1866
+ modelValue: s.locationSet,
1867
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => s.locationSet = r),
1867
1868
  label: "Location",
1868
1869
  id: "location",
1869
- options: r.locationsList(),
1870
+ options: s.locationsList(),
1870
1871
  required: "",
1871
1872
  placeholder: "i.e. Newcastle or NE1",
1872
- onKeyupEvent: a[1] || (a[1] = (n) => r.locationKeyup(...arguments)),
1873
+ onKeyupEvent: a[1] || (a[1] = (r) => s.locationKeyup(...arguments)),
1873
1874
  ref: "search"
1874
1875
  }, null, 8, ["modelValue", "options"]),
1875
- C(o, {
1876
+ R(o, {
1876
1877
  class: "select--miles",
1877
1878
  label: "Miles",
1878
1879
  id: "miles",
@@ -1880,10 +1881,10 @@ function Ha(e, a, t, i, s, r) {
1880
1881
  options: t.distances
1881
1882
  }, null, 8, ["options"])
1882
1883
  ]),
1883
- g("fieldset", La, [
1884
- ka,
1884
+ g("fieldset", ka, [
1885
+ La,
1885
1886
  g("div", Sa, [
1886
- C(o, {
1887
+ R(o, {
1887
1888
  class: "col-6",
1888
1889
  label: "Minimum price",
1889
1890
  id: "price-min",
@@ -1891,7 +1892,7 @@ function Ha(e, a, t, i, s, r) {
1891
1892
  type: "select",
1892
1893
  options: t.pricemin
1893
1894
  }, null, 8, ["options"]),
1894
- C(o, {
1895
+ R(o, {
1895
1896
  class: "col-6",
1896
1897
  label: "Maximum price",
1897
1898
  id: "price-max",
@@ -1904,7 +1905,7 @@ function Ha(e, a, t, i, s, r) {
1904
1905
  g("fieldset", qa, [
1905
1906
  $a,
1906
1907
  g("div", Ea, [
1907
- C(o, {
1908
+ R(o, {
1908
1909
  class: "col-6",
1909
1910
  label: "Minimum beds",
1910
1911
  id: "beds-min",
@@ -1912,7 +1913,7 @@ function Ha(e, a, t, i, s, r) {
1912
1913
  type: "select",
1913
1914
  options: t.bedsmin
1914
1915
  }, null, 8, ["options"]),
1915
- C(o, {
1916
+ R(o, {
1916
1917
  class: "col-6",
1917
1918
  label: "Maximum beds",
1918
1919
  id: "beds-max",
@@ -1923,7 +1924,7 @@ function Ha(e, a, t, i, s, r) {
1923
1924
  ])
1924
1925
  ]),
1925
1926
  g("fieldset", Ta, [
1926
- C(o, {
1927
+ R(o, {
1927
1928
  label: "Property type",
1928
1929
  id: "property-type",
1929
1930
  type: "select",
@@ -1933,15 +1934,15 @@ function Ha(e, a, t, i, s, r) {
1933
1934
  Ma
1934
1935
  ], 8, _a)
1935
1936
  ]),
1936
- x(e.$slots, "after")
1937
+ k(e.$slots, "after")
1937
1938
  ], 512);
1938
1939
  }
1939
- const si = /* @__PURE__ */ A(va, [["render", Ha]]), Ca = {
1940
+ const si = /* @__PURE__ */ _(va, [["render", Ha]]), Ca = {
1940
1941
  components: {},
1941
1942
  name: "Nav",
1942
1943
  mounted() {
1943
1944
  this.$nextTick(function() {
1944
- import("./nav.component.min-68c5fb8e.mjs").then((e) => {
1945
+ import("./nav.component.min-225d7cc2.mjs").then((e) => {
1945
1946
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1946
1947
  }).catch((e) => {
1947
1948
  console.log(e.message);
@@ -1950,12 +1951,12 @@ const si = /* @__PURE__ */ A(va, [["render", Ha]]), Ca = {
1950
1951
  },
1951
1952
  methods: {}
1952
1953
  }, Ra = { ref: "wrapper" };
1953
- function ja(e, a, t, i, s, r) {
1954
- return h(), p("iam-nav", Ra, [
1955
- x(e.$slots, "default")
1954
+ function ja(e, a, t, i, n, s) {
1955
+ return p(), b("iam-nav", Ra, [
1956
+ k(e.$slots, "default")
1956
1957
  ], 512);
1957
1958
  }
1958
- const li = /* @__PURE__ */ A(Ca, [["render", ja]]);
1959
+ const li = /* @__PURE__ */ _(Ca, [["render", ja]]);
1959
1960
  const Na = {
1960
1961
  name: "Stepper",
1961
1962
  props: {
@@ -1973,21 +1974,21 @@ const Na = {
1973
1974
  key: 0,
1974
1975
  class: "h6 stepper__start"
1975
1976
  }, Fa = { class: "list-unstyled" }, Ia = { class: "h6 stepper__end" };
1976
- function Ba(e, a, t, i, s, r) {
1977
- return h(), p("div", Da, [
1977
+ function Ba(e, a, t, i, n, s) {
1978
+ return p(), b("div", Da, [
1978
1979
  g("nav", {
1979
1980
  class: "stepper",
1980
1981
  "aria-label": t.label ? t.label : "Progress"
1981
1982
  }, [
1982
- t.label ? (h(), p("span", Pa, $(t.label), 1)) : _("", !0),
1983
+ t.label ? (p(), b("span", Pa, E(t.label), 1)) : x("", !0),
1983
1984
  g("ol", Fa, [
1984
- x(e.$slots, "default")
1985
+ k(e.$slots, "default")
1985
1986
  ]),
1986
- g("span", Ia, $(t.endlabel), 1)
1987
+ g("span", Ia, E(t.endlabel), 1)
1987
1988
  ], 8, za)
1988
1989
  ]);
1989
1990
  }
1990
- const di = /* @__PURE__ */ A(Na, [["render", Ba]]);
1991
+ const di = /* @__PURE__ */ _(Na, [["render", Ba]]);
1991
1992
  const Oa = {
1992
1993
  name: "Snapshot",
1993
1994
  props: {
@@ -2000,29 +2001,29 @@ const Oa = {
2000
2001
  class: "container snapshot",
2001
2002
  ref: "wrapper"
2002
2003
  }, Ua = { class: "row" }, Wa = ["href"], Ya = { class: "lead snapshot__title" }, Ga = { class: "stat" };
2003
- function Ka(e, a, t, i, s, r) {
2004
- return h(), p("div", Va, [
2005
- x(e.$slots, "default"),
2004
+ function Ka(e, a, t, i, n, s) {
2005
+ return p(), b("div", Va, [
2006
+ k(e.$slots, "default"),
2006
2007
  g("div", Ua, [
2007
- (h(!0), p(M, null, H(t.items, (o, n) => (h(), p("div", {
2008
+ (p(!0), b(H, null, C(t.items, (o, r) => (p(), b("div", {
2008
2009
  class: "col",
2009
- key: n
2010
+ key: r
2010
2011
  }, [
2011
- o.link ? (h(), p("a", {
2012
+ o.link ? (p(), b("a", {
2012
2013
  key: 0,
2013
2014
  href: o.link
2014
- }, "View " + $(o.title), 9, Wa)) : _("", !0),
2015
+ }, "View " + E(o.title), 9, Wa)) : x("", !0),
2015
2016
  g("div", {
2016
2017
  class: S(`snapshot__item ${o.bg ? "bg-" + o.bg : ""}`)
2017
2018
  }, [
2018
- g("span", Ya, $(o.title), 1),
2019
- g("span", Ga, $(o.number), 1)
2019
+ g("span", Ya, E(o.title), 1),
2020
+ g("span", Ga, E(o.number), 1)
2020
2021
  ], 2)
2021
2022
  ]))), 128))
2022
2023
  ])
2023
2024
  ], 512);
2024
2025
  }
2025
- const ci = /* @__PURE__ */ A(Oa, [["render", Ka]]), Xa = {
2026
+ const ci = /* @__PURE__ */ _(Oa, [["render", Ka]]), Xa = {
2026
2027
  name: "Stepper",
2027
2028
  props: {
2028
2029
  url: {
@@ -2042,23 +2043,23 @@ const ci = /* @__PURE__ */ A(Oa, [["render", Ka]]), Xa = {
2042
2043
  key: 0,
2043
2044
  class: "visually-hidden"
2044
2045
  };
2045
- function Za(e, a, t, i, s, r) {
2046
- return h(), p("li", null, [
2046
+ function Za(e, a, t, i, n, s) {
2047
+ return p(), b("li", null, [
2047
2048
  g("a", {
2048
2049
  href: t.url,
2049
2050
  class: S(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
2050
- "aria-current": typeof t.current < "u"
2051
+ "aria-current": typeof t.current < "u" ? "step" : !1
2051
2052
  }, [
2052
2053
  g("span", null, [
2053
- x(e.$slots, "default")
2054
+ k(e.$slots, "default")
2054
2055
  ]),
2055
- t.status ? (h(), p("em", Qa, " - status: " + $(t.status), 1)) : _("", !0)
2056
+ t.status ? (p(), b("em", Qa, " - status: " + E(t.status), 1)) : x("", !0)
2056
2057
  ], 10, Ja)
2057
2058
  ]);
2058
2059
  }
2059
- const ui = /* @__PURE__ */ A(Xa, [["render", Za]]);
2060
+ const ui = /* @__PURE__ */ _(Xa, [["render", Za]]);
2060
2061
  /*!
2061
- * iamKey v4.1.1-beta-7
2062
+ * iamKey v5.0.0
2062
2063
  * Copyright 2022-2023 iamproperty
2063
2064
  */
2064
2065
  const to = function(e) {
@@ -2070,33 +2071,33 @@ const to = function(e) {
2070
2071
  let i = document.createElement("div");
2071
2072
  i.classList.add("tabs__links__wrapper"), i.prepend(t), e.prepend(i);
2072
2073
  }
2073
- a.forEach((i, s) => {
2074
- let r = i.querySelector(":scope > summary"), o = r.classList.contains("disabled");
2075
- r.classList.add("visually-hidden");
2076
- let n = document.createElement("button");
2077
- i.hasAttribute("id") && (n = document.createElement("a"), n.setAttribute("href", `#${i.getAttribute("id")}`)), i.hasAttribute("open") && n.setAttribute("aria-pressed", !0), n.innerHTML = `${r.innerText}`, n.classList.add("link"), n.setAttribute("data-index", s), n.setAttribute("tabindex", "-1"), o && n.classList.add("disabled"), t.appendChild(n);
2074
+ a.forEach((i, n) => {
2075
+ let s = i.querySelector(":scope > summary"), o = s.classList.contains("disabled");
2076
+ s.classList.add("visually-hidden");
2077
+ let r = document.createElement("button");
2078
+ 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", n), r.setAttribute("tabindex", "-1"), o && r.classList.add("disabled"), t.appendChild(r);
2078
2079
  });
2079
2080
  }, eo = function(e) {
2080
2081
  let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), i = e.querySelectorAll(":scope .tabs__links > .link");
2081
- e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((s) => {
2082
- s.addEventListener("click", (r) => {
2083
- if (r.preventDefault(), s.classList.contains("disabled"))
2082
+ e.shadowRoot && (i = e.shadowRoot.querySelectorAll(".tabs__links > .link")), i.forEach((n) => {
2083
+ n.addEventListener("click", (s) => {
2084
+ if (s.preventDefault(), n.classList.contains("disabled"))
2084
2085
  return !1;
2085
2086
  i.forEach((o) => {
2086
- let n = o == s;
2087
- o.setAttribute("aria-pressed", n);
2088
- }), a.forEach((o, n) => {
2089
- let d = s.getAttribute("data-index") == n;
2087
+ let r = o == n;
2088
+ o.setAttribute("aria-pressed", r);
2089
+ }), a.forEach((o, r) => {
2090
+ let d = n.getAttribute("data-index") == r;
2090
2091
  d ? o.setAttribute("open", d) : o.removeAttribute("open");
2091
- }), s.hasAttribute("href") && history.pushState(void 0, void 0, s.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: s.textContent });
2092
+ }), n.hasAttribute("href") && history.pushState(void 0, void 0, n.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: n.textContent });
2092
2093
  });
2093
- }), t.forEach((s, r) => {
2094
- s.addEventListener("focus", (o) => {
2095
- i.forEach((n) => {
2096
- n.classList.remove("focus");
2097
- }), i[r].classList.add("focus");
2098
- }), s.addEventListener("click", (o) => {
2099
- o.preventDefault(), i[r].click();
2094
+ }), t.forEach((n, s) => {
2095
+ n.addEventListener("focus", (o) => {
2096
+ i.forEach((r) => {
2097
+ r.classList.remove("focus");
2098
+ }), i[s].classList.add("focus");
2099
+ }), n.addEventListener("click", (o) => {
2100
+ o.preventDefault(), i[s].click();
2100
2101
  });
2101
2102
  });
2102
2103
  }, ao = function(e) {
@@ -2137,12 +2138,12 @@ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs"
2137
2138
  const ro = {
2138
2139
  name: "Tabs"
2139
2140
  }, no = { ref: "wrapper" };
2140
- function so(e, a, t, i, s, r) {
2141
- return h(), p("iam-tabs", no, [
2142
- x(e.$slots, "default")
2141
+ function so(e, a, t, i, n, s) {
2142
+ return p(), b("iam-tabs", no, [
2143
+ k(e.$slots, "default")
2143
2144
  ], 512);
2144
2145
  }
2145
- const hi = /* @__PURE__ */ A(ro, [["render", so]]), lo = {
2146
+ const hi = /* @__PURE__ */ _(ro, [["render", so]]), lo = {
2146
2147
  name: "Tab",
2147
2148
  props: {
2148
2149
  title: {
@@ -2165,16 +2166,16 @@ const hi = /* @__PURE__ */ A(ro, [["render", so]]), lo = {
2165
2166
  };
2166
2167
  }
2167
2168
  }, co = { class: "tab" }, uo = ["innerHTML"];
2168
- function mo(e, a, t, i, s, r) {
2169
- return h(), p("details", co, [
2169
+ function mo(e, a, t, i, n, s) {
2170
+ return p(), b("details", co, [
2170
2171
  g("summary", {
2171
2172
  innerHTML: t.title,
2172
- class: S({ disabled: s.isDisabled })
2173
+ class: S({ disabled: n.isDisabled })
2173
2174
  }, null, 10, uo),
2174
- x(e.$slots, "default")
2175
+ k(e.$slots, "default")
2175
2176
  ]);
2176
2177
  }
2177
- const pi = /* @__PURE__ */ A(lo, [["render", mo]]);
2178
+ const pi = /* @__PURE__ */ _(lo, [["render", mo]]);
2178
2179
  let dt = st.props;
2179
2180
  dt.fields.required = !1;
2180
2181
  const ho = {
@@ -2194,8 +2195,8 @@ const ho = {
2194
2195
  const a = new FormData(e.target);
2195
2196
  let t = /* @__PURE__ */ new Date();
2196
2197
  const i = t.getFullYear();
2197
- let s = t.getMonth() + 1, r = t.getDate();
2198
- r < 10 && (r = "0" + r), s < 10 && (s = "0" + s), t = r + "/" + s + "/" + i, this.itemsData.unshift({
2198
+ let n = t.getMonth() + 1, s = t.getDate();
2199
+ s < 10 && (s = "0" + s), n < 10 && (n = "0" + n), t = s + "/" + n + "/" + i, this.itemsData.unshift({
2199
2200
  date_added: t,
2200
2201
  user: a.get("user"),
2201
2202
  note: a.get("addNote")
@@ -2224,29 +2225,29 @@ const ho = {
2224
2225
  }
2225
2226
  }
2226
2227
  }, po = { class: "container note-feed mb-2" }, bo = ["innerHTML"], fo = ["action", "method"], go = ["value"], yo = /* @__PURE__ */ g("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2227
- function vo(e, a, t, i, s, r) {
2228
- const o = F("Table"), n = F("Input");
2229
- return h(), p("div", po, [
2230
- t.title ? (h(), p("span", {
2228
+ function vo(e, a, t, i, n, s) {
2229
+ const o = F("Table"), r = F("Input");
2230
+ return p(), b("div", po, [
2231
+ t.title ? (p(), b("span", {
2231
2232
  key: 0,
2232
2233
  class: "h3",
2233
2234
  innerHTML: t.title
2234
- }, null, 8, bo)) : _("", !0),
2235
- C(o, R({
2235
+ }, null, 8, bo)) : x("", !0),
2236
+ R(o, j({
2236
2237
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2237
- items: s.itemsData
2238
+ items: n.itemsData
2238
2239
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2239
2240
  g("form", {
2240
2241
  action: t.action,
2241
2242
  method: t.method,
2242
- onSubmit: a[0] || (a[0] = gt((d) => r.submitForm(...arguments), ["prevent"]))
2243
+ onSubmit: a[0] || (a[0] = gt((d) => s.submitForm(...arguments), ["prevent"]))
2243
2244
  }, [
2244
2245
  g("input", {
2245
2246
  type: "hidden",
2246
2247
  value: t.user,
2247
2248
  name: "user"
2248
2249
  }, null, 8, go),
2249
- C(n, {
2250
+ R(r, {
2250
2251
  id: "addNote",
2251
2252
  type: "textarea",
2252
2253
  label: "Add note",
@@ -2257,58 +2258,58 @@ function vo(e, a, t, i, s, r) {
2257
2258
  ], 40, fo)
2258
2259
  ]);
2259
2260
  }
2260
- const bi = /* @__PURE__ */ A(ho, [["render", vo]]);
2261
+ const bi = /* @__PURE__ */ _(ho, [["render", vo]]);
2261
2262
  /*!
2262
- * iamKey v4.1.1-beta-7
2263
+ * iamKey v5.0.0
2263
2264
  * Copyright 2022-2023 iamproperty
2264
2265
  */
2265
2266
  function wo(e, a) {
2266
- function t(i, s) {
2267
- let r = !1, o = s.getAttribute("name");
2268
- o.includes("[]") && (o = o.replace("[]", `[${s.value}]`));
2269
- let n = i.querySelector(`[data-name="${o}"]`);
2270
- n && s.getAttribute("type") == "checkbox" && (r = !s.checked);
2271
- let d = s.getAttribute("data-filter-text");
2272
- if (n || (n = document.createElement("button"), i.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name", o), n.innerHTML = d.replace("$value", s.value), (!s.value || r) && n.remove(), s.parentNode.closest("[data-filter-text]")) {
2273
- let l = s.parentNode.closest("[data-filter-text]"), m = !0;
2274
- if (o = "", l.querySelectorAll("input").forEach((c, b) => {
2275
- let f = c.getAttribute("name");
2276
- if (o += `${b != 0 ? "," : ""}${f}`, i.querySelector(`[data-name="${f}"]`) && i.querySelector(`[data-name="${f}"]`).remove(), c.value) {
2277
- let u = document.createElement("button");
2278
- u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", f), u.innerHTML = d.replace("$value", c.value), i.appendChild(u);
2267
+ function t(i, n) {
2268
+ let s = !1, o = n.getAttribute("name");
2269
+ o.includes("[]") && (o = o.replace("[]", `[${n.value}]`));
2270
+ let r = i.querySelector(`[data-name="${o}"]`);
2271
+ r && n.getAttribute("type") == "checkbox" && (s = !n.checked);
2272
+ let d = n.getAttribute("data-filter-text");
2273
+ if (r || (r = document.createElement("button"), i.appendChild(r)), r.setAttribute("type", "button"), r.classList.add("filter"), r.setAttribute("data-name", o), r.innerHTML = d.replace("$value", n.value), (!n.value || s) && r.remove(), n.parentNode.closest("[data-filter-text]")) {
2274
+ let l = n.parentNode.closest("[data-filter-text]"), m = !0;
2275
+ if (o = "", l.querySelectorAll("input").forEach((c, u) => {
2276
+ let h = c.getAttribute("name");
2277
+ if (o += `${u != 0 ? "," : ""}${h}`, i.querySelector(`[data-name="${h}"]`) && i.querySelector(`[data-name="${h}"]`).remove(), c.value) {
2278
+ let f = document.createElement("button");
2279
+ f.setAttribute("type", "button"), f.classList.add("filter"), f.setAttribute("data-name", h), f.innerHTML = d.replace("$value", c.value), i.appendChild(f);
2279
2280
  } else
2280
2281
  m = !1;
2281
2282
  }), i.querySelector(`[data-name="${o}"]`) && i.querySelector(`[data-name="${o}"]`).remove(), m) {
2282
2283
  let c = l.getAttribute("data-filter-text");
2283
- l.querySelectorAll("input").forEach((f, u) => {
2284
- let v = f.getAttribute("name");
2285
- i.querySelector(`[data-name="${v}"]`) && i.querySelector(`[data-name="${v}"]`).remove(), c = c.replace(`$${u + 1}`, f.value);
2284
+ l.querySelectorAll("input").forEach((h, f) => {
2285
+ let y = h.getAttribute("name");
2286
+ i.querySelector(`[data-name="${y}"]`) && i.querySelector(`[data-name="${y}"]`).remove(), c = c.replace(`$${f + 1}`, h.value);
2286
2287
  });
2287
- let b = document.createElement("button");
2288
- b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", o), b.innerHTML = c, i.appendChild(b);
2288
+ let u = document.createElement("button");
2289
+ u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", o), u.innerHTML = c, i.appendChild(u);
2289
2290
  }
2290
2291
  }
2291
2292
  }
2292
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
2293
+ Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, n) => {
2293
2294
  t(a, i);
2294
- }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
2295
- i.addEventListener("change", function(r) {
2296
- t(a, i), r.stopPropagation();
2295
+ }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, n) => {
2296
+ i.addEventListener("change", function(s) {
2297
+ t(a, i), s.stopPropagation();
2297
2298
  });
2298
2299
  }), e.addEventListener("change", function(i) {
2299
2300
  if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2300
- let s = i.target.closest("input[data-filter-text]");
2301
- t(a, s);
2301
+ let n = i.target.closest("input[data-filter-text]");
2302
+ t(a, n);
2302
2303
  }
2303
2304
  }), a.addEventListener("click", function(i) {
2304
2305
  if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2305
- let o = i.target.closest(".filter"), n = o.getAttribute("data-name").split(",");
2306
- for (var s = 0; s < n.length; s++) {
2307
- let d = n[s], l = `[name="${d}"]`;
2306
+ let o = i.target.closest(".filter"), r = o.getAttribute("data-name").split(",");
2307
+ for (var n = 0; n < r.length; n++) {
2308
+ let d = r[n], l = `[name="${d}"]`;
2308
2309
  d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), l = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
2309
2310
  let m = e.querySelectorAll(l);
2310
- for (var r = 0; r < m.length; r++) {
2311
- let c = m[r];
2311
+ for (var s = 0; s < m.length; s++) {
2312
+ let c = m[s];
2312
2313
  if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
2313
2314
  c.value = "";
2314
2315
  else {
@@ -2323,13 +2324,13 @@ function wo(e, a) {
2323
2324
  }, !1);
2324
2325
  }
2325
2326
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2326
- let Ao = class extends HTMLElement {
2327
+ class Ao extends HTMLElement {
2327
2328
  constructor() {
2328
2329
  super(), this.attachShadow({ mode: "open" });
2329
2330
  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`;
2330
2331
  let i = this.classList.toString();
2331
- const s = document.createElement("template");
2332
- s.innerHTML = `
2332
+ const n = document.createElement("template");
2333
+ n.innerHTML = `
2333
2334
  <style>
2334
2335
  @import "${t}";
2335
2336
  .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 */
@@ -2338,30 +2339,30 @@ let Ao = class extends HTMLElement {
2338
2339
  </style>
2339
2340
  <div class="applied-filters ${i}"></div>
2340
2341
  <slot></slot>
2341
- `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2342
+ `, this.shadowRoot.appendChild(n.content.cloneNode(!0));
2342
2343
  }
2343
2344
  connectedCallback() {
2344
2345
  wo(this, this.shadowRoot.querySelector(".applied-filters"));
2345
2346
  }
2346
- };
2347
+ }
2347
2348
  window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Ao);
2348
2349
  const _o = {
2349
2350
  name: "Header"
2350
2351
  };
2351
- function xo(e, a, t, i, s, r) {
2352
- return h(), p("iam-applied-filters", null, [
2353
- x(e.$slots, "default")
2352
+ function xo(e, a, t, i, n, s) {
2353
+ return p(), b("iam-applied-filters", null, [
2354
+ k(e.$slots, "default")
2354
2355
  ]);
2355
2356
  }
2356
- const gi = /* @__PURE__ */ A(_o, [["render", xo]]);
2357
+ const fi = /* @__PURE__ */ _(_o, [["render", xo]]);
2357
2358
  /*!
2358
- * iamKey v4.1.1-beta-7
2359
+ * iamKey v5.0.0
2359
2360
  * Copyright 2022-2023 iamproperty
2360
2361
  */
2361
- function Lo(e, a) {
2362
- ko(e, a);
2363
- }
2364
2362
  function ko(e, a) {
2363
+ Lo(e, a);
2364
+ }
2365
+ function Lo(e, a) {
2365
2366
  var t;
2366
2367
  a.addEventListener("keyup", (i) => {
2367
2368
  clearTimeout(t), t = setTimeout(function() {
@@ -2373,8 +2374,8 @@ function ko(e, a) {
2373
2374
  }
2374
2375
  const Q = function(e, a) {
2375
2376
  Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
2376
- let s = t.textContent.toLowerCase();
2377
- t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
2377
+ let n = t.textContent.toLowerCase();
2378
+ t.classList.add("d-none"), n.includes(a.toLowerCase()) && t.classList.remove("d-none");
2378
2379
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2379
2380
  };
2380
2381
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
@@ -2413,19 +2414,19 @@ class So extends HTMLElement {
2413
2414
  }
2414
2415
  connectedCallback() {
2415
2416
  let a = this.classList.toString();
2416
- 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>'), Lo(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2417
+ 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>'), ko(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2417
2418
  }
2418
2419
  }
2419
2420
  window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", So);
2420
2421
  const qo = {
2421
2422
  name: "Filter list"
2422
2423
  };
2423
- function $o(e, a, t, i, s, r) {
2424
- return h(), p("iam-filterlist", null, [
2425
- x(e.$slots, "default")
2424
+ function $o(e, a, t, i, n, s) {
2425
+ return p(), b("iam-filterlist", null, [
2426
+ k(e.$slots, "default")
2426
2427
  ]);
2427
2428
  }
2428
- const yi = /* @__PURE__ */ A(qo, [["render", $o]]);
2429
+ const gi = /* @__PURE__ */ _(qo, [["render", $o]]);
2429
2430
  function Eo(e) {
2430
2431
  if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2431
2432
  let t = document.querySelector(".notification__holder");
@@ -2446,11 +2447,11 @@ function Eo(e) {
2446
2447
  }
2447
2448
  }
2448
2449
  function To(e, a) {
2449
- var t, i, s = a;
2450
+ var t, i, n = a;
2450
2451
  this.pause = function() {
2451
- window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - i;
2452
+ window.clearTimeout(t), n -= /* @__PURE__ */ new Date() - i;
2452
2453
  }, this.resume = function() {
2453
- i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
2454
+ i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, n);
2454
2455
  }, this.resume();
2455
2456
  }
2456
2457
  const K = function(e) {
@@ -2464,12 +2465,12 @@ window.dataLayer.push({
2464
2465
  class Mo extends HTMLElement {
2465
2466
  constructor() {
2466
2467
  super(), this.attachShadow({ mode: "open" });
2467
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/notification.css";`, s = this.querySelectorAll("a,button");
2468
- Array.from(s).forEach((o, n) => {
2468
+ 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";`, n = this.querySelectorAll("a,button");
2469
+ Array.from(n).forEach((o, r) => {
2469
2470
  o.setAttribute("slot", "btns"), o.classList.add("link");
2470
- }), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2471
- const r = document.createElement("template");
2472
- r.innerHTML = `
2471
+ }), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2472
+ const s = document.createElement("template");
2473
+ s.innerHTML = `
2473
2474
  <style>
2474
2475
  @import "${t}";
2475
2476
  ${i}
@@ -2478,10 +2479,10 @@ class Mo extends HTMLElement {
2478
2479
 
2479
2480
  <div class="notification">
2480
2481
  <div class="notification__icon"><slot name="icon"></slot></div>
2481
- <div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2482
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2482
2483
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2483
2484
  </div>
2484
- `, this.shadowRoot.appendChild(r.content.cloneNode(!0));
2485
+ `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2485
2486
  }
2486
2487
  connectedCallback() {
2487
2488
  const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
@@ -2501,7 +2502,7 @@ class Mo extends HTMLElement {
2501
2502
  default:
2502
2503
  this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2503
2504
  }
2504
- Eo(i), a && a.addEventListener("click", function(s) {
2505
+ Eo(i), a && a.addEventListener("click", function(n) {
2505
2506
  K(i);
2506
2507
  }, !1);
2507
2508
  }
@@ -2515,14 +2516,14 @@ const Ho = {
2515
2516
  });
2516
2517
  }
2517
2518
  };
2518
- function Co(e, a, t, i, s, r) {
2519
- return h(), p("iam-notification", null, [
2520
- x(e.$slots, "default")
2519
+ function Co(e, a, t, i, n, s) {
2520
+ return p(), b("iam-notification", null, [
2521
+ k(e.$slots, "default")
2521
2522
  ]);
2522
2523
  }
2523
- const vi = /* @__PURE__ */ A(Ho, [["render", Co]]);
2524
+ const yi = /* @__PURE__ */ _(Ho, [["render", Co]]);
2524
2525
  /*!
2525
- * iamKey v4.1.1-beta-7
2526
+ * iamKey v5.0.0
2526
2527
  * Copyright 2022-2023 iamproperty
2527
2528
  */
2528
2529
  const Ro = function(e) {
@@ -2532,15 +2533,15 @@ const Ro = function(e) {
2532
2533
  var i = String.fromCharCode(65 + Math.floor(Math.random() * 26));
2533
2534
  t = i + Date.now(), e.setAttribute("id", t);
2534
2535
  }
2535
- function s() {
2536
- window.player = new YT.Player(t, { height: "100%", width: "100%", videoId: a, playerVars: { modestbranding: 1, playsinline: 1, rel: 0, showinfo: 0 }, events: { onReady: r, onStateChange: n } });
2536
+ function n() {
2537
+ window.player = new YT.Player(t, { height: "100%", width: "100%", videoId: a, playerVars: { modestbranding: 1, playsinline: 1, rel: 0, showinfo: 0 }, events: { onReady: s, onStateChange: r } });
2537
2538
  }
2538
- s();
2539
- function r(d) {
2539
+ n();
2540
+ function s(d) {
2540
2541
  d.target.playVideo();
2541
2542
  }
2542
2543
  var o = !1;
2543
- function n(d) {
2544
+ function r(d) {
2544
2545
  if (d.data == YT.PlayerState.PLAYING && !o) {
2545
2546
  var l = document.getElementById(t);
2546
2547
  l.classList.add("player-ready"), o = !0;
@@ -2552,64 +2553,64 @@ const Ro = function(e) {
2552
2553
  if (a.target.tagName == "IAM-ACTIONBAR")
2553
2554
  return !1;
2554
2555
  if (a && a.target instanceof HTMLElement && a.target.closest("[data-modal]")) {
2555
- const s = a.target.closest("[data-modal]"), r = s.hasAttribute("data-modal") ? s.getAttribute("data-modal") : s.getAttribute("data-filter"), o = document.querySelector(`dialog#${r}`);
2556
+ const n = a.target.closest("[data-modal]"), s = n.hasAttribute("data-modal") ? n.getAttribute("data-modal") : n.getAttribute("data-filter"), o = document.querySelector(`dialog#${s}`);
2556
2557
  Z(o), o.showModal(), o.focus();
2557
- let n = o.offsetWidth;
2558
- o.setAttribute("style", `max-width: ${n}px;`), Array.from(o.querySelectorAll("[data-duplicate]")).forEach((d, l) => {
2558
+ let r = o.offsetWidth;
2559
+ o.setAttribute("style", `max-width: ${r}px;`), Array.from(o.querySelectorAll("[data-duplicate]")).forEach((d, l) => {
2559
2560
  const m = d.getAttribute("data-duplicate"), c = document.getElementById(m);
2560
2561
  if (d.checked != c.checked) {
2561
2562
  d.checked = c.checked;
2562
- let b = new Event("change");
2563
- d.dispatchEvent(b);
2563
+ let u = new Event("change");
2564
+ d.dispatchEvent(u);
2564
2565
  }
2565
- }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openModal", id: r });
2566
+ }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openModal", id: s });
2566
2567
  }
2567
2568
  if (a && a.target instanceof HTMLElement && a.target.closest("button.dialog__close")) {
2568
- const s = a.target.closest("dialog[open]");
2569
- a.preventDefault(), s.close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r, o) => {
2570
- r.classList.remove("active");
2571
- }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
2569
+ const n = a.target.closest("dialog[open]");
2570
+ a.preventDefault(), n.close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((s, o) => {
2571
+ s.classList.remove("active");
2572
+ }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: n.getAttribute("id") });
2572
2573
  }
2573
2574
  if (a && a.target instanceof HTMLElement && a.target.closest('button[formmethod="dialog"]')) {
2574
- const s = a.target.closest("dialog[open]");
2575
- Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r, o) => {
2576
- r.classList.remove("active");
2577
- }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") });
2575
+ const n = a.target.closest("dialog[open]");
2576
+ Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((s, o) => {
2577
+ s.classList.remove("active");
2578
+ }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: n.getAttribute("id") });
2578
2579
  }
2579
2580
  if (a && a.target instanceof HTMLElement && a.target.closest("dialog[open]")) {
2580
- let s = a.target.closest("dialog[open]");
2581
- var t = window.getComputedStyle(s);
2582
- if (t.display === "contents" && (s = s.parentNode.closest("dialog[open]")), !s.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") || s.classList.contains("dialog--multi")) {
2583
- const r = s.getBoundingClientRect();
2584
- (a.clientX < r.left || a.clientX > r.right || a.clientY < r.top || a.clientY > r.bottom) && (a.target.closest('input[type="radio"]') || s.close(), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: s.getAttribute("id") }));
2581
+ let n = a.target.closest("dialog[open]");
2582
+ var t = window.getComputedStyle(n);
2583
+ if (t.display === "contents" && (n = n.parentNode.closest("dialog[open]")), !n.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") || n.classList.contains("dialog--multi")) {
2584
+ const s = n.getBoundingClientRect();
2585
+ (a.clientX < s.left || a.clientX > s.right || a.clientY < s.top || a.clientY > s.bottom) && (a.target.closest('input[type="radio"]') || n.close(), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "closeModal", id: n.getAttribute("id") }));
2585
2586
  }
2586
2587
  }
2587
2588
  if (a && a.target instanceof HTMLElement && a.target.closest(".dialog__wrapper > button")) {
2588
2589
  a.stopPropagation();
2589
- let s = a.target.closest(".dialog__wrapper > button"), r = a.target.closest(".dialog__wrapper > button").parentNode, o = "openPopover", n = r.querySelector(":scope > dialog");
2590
- if (document.querySelector("*:not([data-keep-open]) > dialog[open]") && document.querySelector("*:not([data-keep-open]) > dialog[open]") != n && document.querySelector("*:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c, b) => {
2591
- c.classList.remove("active");
2592
- }), n.hasAttribute("open"))
2593
- n.close(), o = "closePopover", n.removeAttribute("style"), s.classList.remove("active");
2590
+ let n = a.target.closest(".dialog__wrapper > button"), s = a.target.closest(".dialog__wrapper > button").parentNode, o = "openPopover", r = s.querySelector(":scope > dialog");
2591
+ if (document.querySelector("*:not([data-keep-open]) > dialog[open]") && document.querySelector("*:not([data-keep-open]) > dialog[open]") != r && document.querySelector("*:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c, u) => {
2592
+ c.removeAttribute("aria-expanded");
2593
+ }), r.hasAttribute("open"))
2594
+ r.close(), o = "closePopover", r.removeAttribute("style"), n.removeAttribute("aria-expanded");
2594
2595
  else {
2595
- n.show(), s.classList.add("active");
2596
- var i = s.getBoundingClientRect();
2597
- let c = i.top, b = i.left;
2598
- if (s.closest("iam-table")) {
2599
- let f = s.closest("iam-table").parentNode.getBoundingClientRect();
2600
- c -= f.top, b -= f.left;
2596
+ r.show(), n.setAttribute("aria-expanded", !0);
2597
+ var i = n.getBoundingClientRect();
2598
+ let c = i.top, u = i.left;
2599
+ if (n.closest("iam-table")) {
2600
+ let h = n.closest("iam-table").parentNode.getBoundingClientRect();
2601
+ c -= h.top, u -= h.left;
2601
2602
  }
2602
- n.classList.contains("dialog--fix") && n.setAttribute("style", `position:fixed;top: ${c}px; left: ${b}px; margin: 3rem 0 0 0;`);
2603
+ r.classList.contains("dialog--fix") && r.setAttribute("style", `position:fixed;top: ${c}px; left: ${u}px; margin: 3rem 0 0 0;`);
2603
2604
  }
2604
- let d = n.getBoundingClientRect(), l = d.bottom - window.scrollY, m = window.innerHeight - window.scrollY;
2605
+ let d = r.getBoundingClientRect(), l = d.bottom - window.scrollY, m = window.innerHeight - window.scrollY;
2605
2606
  if (l > m) {
2606
- let c = n.hasAttribute("style") ? n.getAttribute("style") + " " : "";
2607
- n.setAttribute("style", c + "transform: translate(0, calc(-100% - 4rem))"), d = n.getBoundingClientRect(), d.top - window.scrollY < 100 && n.removeAttribute("style");
2607
+ let c = r.hasAttribute("style") ? r.getAttribute("style") + " " : "";
2608
+ r.setAttribute("style", c + "transform: translate(0, calc(-100% - 4rem))"), d = r.getBoundingClientRect(), d.top - window.scrollY < 100 && r.removeAttribute("style");
2608
2609
  }
2609
- window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: o, id: s.textContent });
2610
+ window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: o, id: n.textContent });
2610
2611
  }
2611
- a && a.target instanceof HTMLElement && !a.target.closest("dialog[open]") && !a.target.closest(".dialog__wrapper > button") && (document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]") && document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((s, r) => {
2612
- s.classList.remove("active");
2612
+ a && a.target instanceof HTMLElement && !a.target.closest("dialog[open]") && !a.target.closest(".dialog__wrapper > button") && (document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]") && document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(), Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((n, s) => {
2613
+ n.removeAttribute("aria-expanded");
2613
2614
  }));
2614
2615
  }), null), Z = (e) => {
2615
2616
  e.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child") && !e.classList.contains("dialog--multi") && e.addEventListener("cancel", (t) => {
@@ -2620,27 +2621,27 @@ const Ro = function(e) {
2620
2621
  e.innerHTML = `<div class="mh-lg">${e.innerHTML}</div>`;
2621
2622
  let t = e.querySelector(".mh-lg"), i = e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");
2622
2623
  if (i) {
2623
- let s = i.previousSibling;
2624
- t.before(i), s && i.before(s);
2624
+ let n = i.previousSibling;
2625
+ t.before(i), n && i.before(n);
2625
2626
  }
2626
2627
  }
2627
2628
  e.querySelector(":scope > button:first-child") || e.insertAdjacentHTML("afterbegin", '<button class="dialog__close">Close</button>');
2628
2629
  }, No = (e) => {
2629
2630
  let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]")), i = e.querySelector("form");
2630
- t.forEach((o, n) => {
2631
- a += `<button data-title="${o.getAttribute("data-title")}" type="button" class="${n == 0 ? "active" : ""}" tabindex="-1">${o.getAttribute("data-title")}</button>`;
2631
+ t.forEach((o, r) => {
2632
+ a += `<button data-title="${o.getAttribute("data-title")}" type="button" class="${r == 0 ? "active" : ""}" tabindex="-1">${o.getAttribute("data-title")}</button>`;
2632
2633
  const d = document.createElement("div");
2633
- if (d.classList.add("btn--wrapper"), o.appendChild(d), n != 0 && (d.innerHTML += `<button data-title="${t[n - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), n != t.length - 1 && (d.innerHTML += `<button data-title="${t[n + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), n == t.length - 1)
2634
+ if (d.classList.add("btn--wrapper"), o.appendChild(d), r != 0 && (d.innerHTML += `<button data-title="${t[r - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), r != t.length - 1 && (d.innerHTML += `<button data-title="${t[r + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), r == t.length - 1)
2634
2635
  if (i && i.querySelector(':scope > button[type="submit"]')) {
2635
2636
  let l = i.querySelector(':scope > button[type="submit"]');
2636
2637
  l.classList.add("mb-0"), d.insertAdjacentElement("beforeend", l);
2637
2638
  } else
2638
- d.innerHTML += `<button data-title="${t[n].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`;
2639
+ d.innerHTML += `<button data-title="${t[r].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`;
2639
2640
  }), e.insertAdjacentHTML("afterbegin", `<div class="steps bg-primary">${a}</div>`);
2640
- let s = Array.from(e.querySelectorAll("fieldset.was-validated"));
2641
- for (let o = 0; o < s.length; o++) {
2642
- let n = s[o], d = n.getAttribute("data-title");
2643
- if (n.querySelector(".is-invalid")) {
2641
+ let n = Array.from(e.querySelectorAll("fieldset.was-validated"));
2642
+ for (let o = 0; o < n.length; o++) {
2643
+ let r = n[o], d = r.getAttribute("data-title");
2644
+ if (r.querySelector(".is-invalid")) {
2644
2645
  Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((l, m) => {
2645
2646
  l.classList.add("active");
2646
2647
  });
@@ -2655,38 +2656,38 @@ const Ro = function(e) {
2655
2656
  o.preventDefault();
2656
2657
  };
2657
2658
  }(), !0);
2658
- function r(o) {
2659
- const n = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), d = n.getAttribute("data-title");
2659
+ function s(o) {
2660
+ const r = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), d = r.getAttribute("data-title");
2660
2661
  let l = !0;
2661
- if (n.classList.add("was-validated"), Array.from(n.querySelectorAll("input")).forEach((b, f) => {
2662
- b.checkValidity() || (l = !1);
2663
- }), l ? Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((b, f) => {
2664
- b.classList.add("valid");
2665
- }) : Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((b, f) => {
2666
- b.classList.remove("valid");
2662
+ if (r.classList.add("was-validated"), Array.from(r.querySelectorAll("input")).forEach((u, h) => {
2663
+ u.checkValidity() || (l = !1);
2664
+ }), l ? Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((u, h) => {
2665
+ u.classList.add("valid");
2666
+ }) : Array.from(e.querySelectorAll(`[data-title="${d}"]`)).forEach((u, h) => {
2667
+ u.classList.remove("valid");
2667
2668
  }), l || !o.hasAttribute("data-next")) {
2668
- const b = e.querySelector(`fieldset[data-title="${o.getAttribute("data-title")}"]`), f = e.querySelector(`.steps button[data-title="${o.getAttribute("data-title")}"]`);
2669
- Array.from(e.querySelectorAll("button")).forEach((u, v) => {
2670
- u.classList.remove("active");
2671
- }), Array.from(e.querySelectorAll("fieldset")).forEach((u, v) => {
2672
- u.classList.remove("active");
2673
- }), f.classList.add("active"), b.classList.add("active");
2669
+ const u = e.querySelector(`fieldset[data-title="${o.getAttribute("data-title")}"]`), h = e.querySelector(`.steps button[data-title="${o.getAttribute("data-title")}"]`);
2670
+ Array.from(e.querySelectorAll("button")).forEach((f, y) => {
2671
+ f.classList.remove("active");
2672
+ }), Array.from(e.querySelectorAll("fieldset")).forEach((f, y) => {
2673
+ f.classList.remove("active");
2674
+ }), h.classList.add("active"), u.classList.add("active");
2674
2675
  }
2675
2676
  let m = Array.from(e.querySelectorAll("fieldset")).length, c = Array.from(e.querySelectorAll("fieldset.valid")).length;
2676
2677
  e.style.setProperty("--progress", `${c / (m - 1) * 100}%`);
2677
2678
  }
2678
2679
  e.addEventListener("keydown", (o) => {
2679
2680
  if (o && o.target instanceof HTMLElement && o.target.closest("button")) {
2680
- const n = o.target.closest("button");
2681
- o.keyCode == 13 && n.getAttribute("type") != "submit" && (o.preventDefault(), r(n));
2681
+ const r = o.target.closest("button");
2682
+ o.keyCode == 13 && r.getAttribute("type") != "submit" && (o.preventDefault(), s(r));
2682
2683
  }
2683
2684
  o && o.target instanceof HTMLElement && o.target.closest("input") && (o.target.closest("input").classList.remove("is-invalid"), o.keyCode == 13 && o.preventDefault());
2684
2685
  }), e.addEventListener("click", (o) => {
2685
2686
  if (o && o.target instanceof HTMLElement && o.target.closest('button[type="submit"]'))
2686
2687
  o.target.closest("form").classList.add("was-validated");
2687
2688
  else if (o && o.target instanceof HTMLElement && o.target.closest("button[data-title]")) {
2688
- const n = o.target.closest("button[data-title]");
2689
- r(n);
2689
+ const r = o.target.closest("button[data-title]");
2690
+ s(r);
2690
2691
  }
2691
2692
  return null;
2692
2693
  });
@@ -2754,93 +2755,95 @@ class Do extends HTMLElement {
2754
2755
  const t = this.shadowRoot.querySelector(".actionbar__wrapper");
2755
2756
  if (this.hasAttribute("data-selectall")) {
2756
2757
  t.insertAdjacentHTML("afterbegin", '<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');
2757
- let r = this.shadowRoot.querySelector(".selectall");
2758
- this.hasAttribute("data-selected") && tt(r, this.getAttribute("data-selected")), r.addEventListener("change", (n) => {
2759
- n && n.target instanceof HTMLElement && n.target.closest("input") && (n.target.closest("input").checked ? this.setAttribute("data-selected", "all") : this.setAttribute("data-selected", 0));
2758
+ let o = this.shadowRoot.querySelector(".selectall");
2759
+ this.hasAttribute("data-selected") && tt(o, this.getAttribute("data-selected")), o.addEventListener("change", (d) => {
2760
+ d && d.target instanceof HTMLElement && d.target.closest("input") && (d.target.closest("input").checked ? this.setAttribute("data-selected", "all") : this.setAttribute("data-selected", 0));
2760
2761
  });
2761
- let o = this.querySelector("button[data-cancel]");
2762
- o && o.addEventListener("click", (n) => {
2762
+ let r = this.querySelector("button[data-cancel]");
2763
+ r && r.addEventListener("click", (d) => {
2763
2764
  this.setAttribute("data-selected", 0);
2764
2765
  });
2765
2766
  }
2766
2767
  if (this.hasAttribute("data-select-watch")) {
2767
- const r = document.getElementById(this.getAttribute("data-select-watch"));
2768
- r.setAttribute("data-select-container", "true"), Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((o, n) => {
2769
- o.parentElement.setAttribute("slot", "checkbox");
2770
- }), r.addEventListener("change", (o) => {
2771
- if (o && o.target instanceof HTMLElement && o.target.closest('[type="checkbox"]')) {
2772
- let n = r.querySelectorAll('input[type="checkbox"]').length, d = r.querySelectorAll('input[type="checkbox"]:checked').length;
2773
- a.setAttribute("data-selected", n == d ? "all" : d), o.target.closest('[type="checkbox"]'), d ? Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l, m) => {
2774
- l.closest("iam-card") && l.closest("iam-card").setAttribute("data-selected", "true");
2775
- }) : Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l, m) => {
2776
- l.closest("iam-card") && l.closest("iam-card").removeAttribute("data-selected");
2768
+ const o = document.getElementById(this.getAttribute("data-select-watch"));
2769
+ o.setAttribute("data-select-container", "true"), Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((r, d) => {
2770
+ r.parentElement.setAttribute("slot", "checkbox");
2771
+ }), o.addEventListener("change", (r) => {
2772
+ if (r && r.target instanceof HTMLElement && r.target.closest('[type="checkbox"]')) {
2773
+ let d = o.querySelectorAll('input[type="checkbox"]').length, l = o.querySelectorAll('input[type="checkbox"]:checked').length;
2774
+ a.setAttribute("data-selected", d == l ? "all" : l), r.target.closest('[type="checkbox"]'), l ? Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((m, c) => {
2775
+ m.closest("iam-card") && m.closest("iam-card").setAttribute("data-selected", "true");
2776
+ }) : Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((m, c) => {
2777
+ m.closest("iam-card") && m.closest("iam-card").removeAttribute("data-selected");
2777
2778
  });
2778
2779
  }
2779
2780
  });
2780
2781
  }
2781
2782
  if (this.hasAttribute("data-switchviews")) {
2782
- let r = "";
2783
- this.getAttribute("data-switchviews").split(",").forEach((o, n) => {
2784
- let d = "fa-grid-2";
2785
- o == "list" ? d = "fa-grip-lines" : o == "small" && (d = "fa-bars"), r += `<button class="btn btn-action btn-compact mb-0 fa-regular ${d}">${o}</button>`;
2786
- }), t.insertAdjacentHTML("afterbegin", `<div class="views m-0">${r}</div>`), this.shadowRoot.querySelector(".views").addEventListener("click", (o) => {
2787
- if (o && o.target instanceof HTMLElement && o.target.closest(".btn-action")) {
2788
- let n = o.target.closest(".btn-action");
2789
- this.setAttribute("data-view", n.textContent);
2790
- const d = new CustomEvent("switch-view", { detail: { view: n.textContent } });
2791
- this.dispatchEvent(d);
2783
+ let o = "";
2784
+ this.getAttribute("data-switchviews").split(",").forEach((r, d) => {
2785
+ let l = "fa-grid-2";
2786
+ r == "list" ? l = "fa-grip-lines" : r == "small" && (l = "fa-bars"), o += `<button class="btn btn-action btn-compact mb-0 fa-regular ${l}">${r}</button>`;
2787
+ }), t.insertAdjacentHTML("afterbegin", `<div class="views m-0">${o}</div>`), this.shadowRoot.querySelector(".views").addEventListener("click", (r) => {
2788
+ if (r && r.target instanceof HTMLElement && r.target.closest(".btn-action")) {
2789
+ let d = r.target.closest(".btn-action");
2790
+ this.setAttribute("data-view", d.textContent);
2791
+ const l = new CustomEvent("switch-view", { detail: { view: d.textContent } });
2792
+ this.dispatchEvent(l);
2792
2793
  }
2793
2794
  });
2794
2795
  }
2795
2796
  const i = this.shadowRoot.querySelector(".actionbar--search");
2796
- this.hasAttribute("data-search") && this.getAttribute("data-search") == "show" && i.classList.add("show"), this.shadowRoot.addEventListener("click", (r) => {
2797
- r && r.target instanceof HTMLElement && r.target.closest("button[data-search]") && i.classList.toggle("show");
2798
- }), i.addEventListener("keyup", (r) => {
2799
- const o = new CustomEvent("search-keyup", { detail: { search: i.querySelector("input").value } });
2800
- this.dispatchEvent(o);
2801
- }), i.addEventListener("change", (r) => {
2802
- const o = new CustomEvent("search-change", { detail: { search: i.querySelector("input").value } });
2803
- this.dispatchEvent(o);
2804
- }), i.addEventListener("click", (r) => {
2805
- if (r && r.target instanceof HTMLElement && r.target.closest("button.suffix")) {
2806
- const o = new CustomEvent("search-submit", { detail: { search: i.querySelector("input").value } });
2807
- this.dispatchEvent(o);
2797
+ this.hasAttribute("data-search") && this.getAttribute("data-search") == "show" && i.classList.add("show");
2798
+ const n = this.shadowRoot.querySelector("button[data-search]");
2799
+ this.shadowRoot.addEventListener("click", (o) => {
2800
+ o && o.target instanceof HTMLElement && o.target.closest("button[data-search]") && (i.classList.toggle("show"), n.toggleAttribute("aria-expanded"));
2801
+ }), i.addEventListener("keyup", (o) => {
2802
+ const r = new CustomEvent("search-keyup", { detail: { search: i.querySelector("input").value } });
2803
+ this.dispatchEvent(r);
2804
+ }), i.addEventListener("change", (o) => {
2805
+ const r = new CustomEvent("search-change", { detail: { search: i.querySelector("input").value } });
2806
+ this.dispatchEvent(r);
2807
+ }), i.addEventListener("click", (o) => {
2808
+ if (o && o.target instanceof HTMLElement && o.target.closest("button.suffix")) {
2809
+ const r = new CustomEvent("search-submit", { detail: { search: i.querySelector("input").value } });
2810
+ this.dispatchEvent(r);
2808
2811
  }
2809
- }), Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((r, o) => {
2810
- jo(r);
2812
+ }), Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((o, r) => {
2813
+ jo(o);
2811
2814
  });
2812
2815
  function s() {
2813
- const r = t.scrollWidth, o = document.documentElement.scrollWidth;
2814
- let n = 750, d = 16, l = a.hasAttribute("data-switchviews") ? 144 : 210, m = 1;
2815
- o >= 992 && o <= 1280 ? m = o / 1280 : o >= 576 && o <= 1280 ? m = o / 768 : o < 576 && (m = o / 375), r >= 992 && r <= 1280 ? n = n * m : r >= 576 && r <= 1280 ? n = 450 * m : r < 576 && (n = l * m), d = d * m, r < 576 ? Array.from(a.querySelectorAll(":scope > .btn:not(.js-updated)")).forEach((c, b) => {
2816
- c.className = c.className.replace(" btn-compact", " _btn-compact"), c.classList.add("btn-compact"), c.classList.add("js-updated");
2817
- }) : Array.from(a.querySelectorAll(":scope > .btn.js-updated")).forEach((c, b) => {
2818
- c.classList.remove("btn-compact"), c.classList.remove("js-updated"), c.className = c.className.replace(" _btn-compact", " btn-compact");
2819
- }), Array.from(a.querySelectorAll("[slot]")).forEach((c, b) => {
2820
- c.getAttribute("slot") == "overflow" && c.removeAttribute("slot"), c.getAttribute("slot") == "selected-overflow" && c.setAttribute("slot", "selected");
2821
- }), Array.from(a.querySelectorAll(".show")).forEach((c, b) => {
2822
- c.classList.remove("show");
2823
- }), Array.from(a.shadowRoot.querySelectorAll(".safe-area")).forEach((c, b) => {
2816
+ const o = t.scrollWidth, r = document.documentElement.scrollWidth;
2817
+ let d = 750, l = 16, m = a.hasAttribute("data-switchviews") ? 144 : 210, c = 1;
2818
+ r >= 992 && r <= 1280 ? c = r / 1280 : r >= 576 && r <= 1280 ? c = r / 768 : r < 576 && (c = r / 375), o >= 992 && o <= 1280 ? d = d * c : o >= 576 && o <= 1280 ? d = 450 * c : o < 576 && (d = m * c), l = l * c, o < 576 ? Array.from(a.querySelectorAll(":scope > .btn:not(.js-updated)")).forEach((u, h) => {
2819
+ u.className = u.className.replace(" btn-compact", " _btn-compact"), u.classList.add("btn-compact"), u.classList.add("js-updated");
2820
+ }) : Array.from(a.querySelectorAll(":scope > .btn.js-updated")).forEach((u, h) => {
2821
+ u.classList.remove("btn-compact"), u.classList.remove("js-updated"), u.className = u.className.replace(" _btn-compact", " btn-compact");
2822
+ }), Array.from(a.querySelectorAll("[slot]")).forEach((u, h) => {
2823
+ u.getAttribute("slot") == "overflow" && u.removeAttribute("slot"), u.getAttribute("slot") == "selected-overflow" && u.setAttribute("slot", "selected");
2824
+ }), Array.from(a.querySelectorAll(".show")).forEach((u, h) => {
2825
+ u.classList.remove("show");
2826
+ }), Array.from(a.shadowRoot.querySelectorAll(".safe-area")).forEach((u, h) => {
2824
2827
  let f = "overflow";
2825
- c.querySelector("slot").hasAttribute("name") && c.querySelector("slot").getAttribute("name") == "selected" && (f = "selected-overflow");
2826
- let u = c.querySelector("slot").assignedElements(), v = 44 * m;
2827
- a.hasAttribute("data-search") && (v += 44 * m);
2828
- for (let y = 0; y < u.length; y++)
2829
- !u[y].classList.contains("btn-action") && !u[y].classList.contains("dialog__wrapper") && (v += u[y].offsetWidth, v += d);
2830
- for (let y = 0; y < u.length; y++)
2831
- if (u[y].classList.contains("dialog__wrapper") && (u[y].classList.add("show"), v += u[y].offsetWidth, v += d / 2, v - d / 2 > n)) {
2832
- u[y].classList.remove("show");
2828
+ u.querySelector("slot").hasAttribute("name") && u.querySelector("slot").getAttribute("name") == "selected" && (f = "selected-overflow");
2829
+ let y = u.querySelector("slot").assignedElements(), A = 44 * c;
2830
+ a.hasAttribute("data-search") && (A += 44 * c);
2831
+ for (let v = 0; v < y.length; v++)
2832
+ !y[v].classList.contains("btn-action") && !y[v].classList.contains("dialog__wrapper") && (A += y[v].offsetWidth, A += l);
2833
+ for (let v = 0; v < y.length; v++)
2834
+ if (y[v].classList.contains("dialog__wrapper") && (y[v].classList.add("show"), A += y[v].offsetWidth, A += l / 2, A - l / 2 > d)) {
2835
+ y[v].classList.remove("show");
2833
2836
  break;
2834
2837
  }
2835
- for (let y = 0; y < u.length; y++)
2836
- if (u[y].classList.contains("btn-action") && (u[y].classList.add("show"), v += u[y].offsetWidth, v += d / 2, v - d / 2 > n)) {
2837
- u[y].classList.remove("show");
2838
+ for (let v = 0; v < y.length; v++)
2839
+ if (y[v].classList.contains("btn-action") && (y[v].classList.add("show"), A += y[v].offsetWidth, A += l / 2, A - l / 2 > d)) {
2840
+ y[v].classList.remove("show");
2838
2841
  break;
2839
2842
  }
2840
- let k = c.querySelector(".dialog-overflow");
2841
- k && k.classList.add("d-none");
2842
- for (let y = 0; y < u.length; y++)
2843
- (u[y].classList.contains("btn-action") || u[y].classList.contains("dialog__wrapper")) && (u[y].classList.contains("show") || (u[y].setAttribute("slot", f), k && k.classList.remove("d-none")));
2843
+ let q = u.querySelector(".dialog-overflow");
2844
+ q && q.classList.add("d-none");
2845
+ for (let v = 0; v < y.length; v++)
2846
+ (y[v].classList.contains("btn-action") || y[v].classList.contains("dialog__wrapper")) && (y[v].classList.contains("show") || (y[v].setAttribute("slot", f), q && q.classList.remove("d-none")));
2844
2847
  });
2845
2848
  }
2846
2849
  s(), new ResizeObserver(s).observe(t);
@@ -2851,19 +2854,19 @@ class Do extends HTMLElement {
2851
2854
  attributeChangedCallback(a, t, i) {
2852
2855
  switch (a) {
2853
2856
  case "data-selected": {
2854
- let s = this.shadowRoot.querySelector(".selectall");
2855
- s && tt(s, i);
2856
- const r = new CustomEvent("selected", { detail: { selected: i } });
2857
- if (this.dispatchEvent(r), i == "all" && this.hasAttribute("data-select-watch")) {
2857
+ let n = this.shadowRoot.querySelector(".selectall");
2858
+ n && tt(n, i);
2859
+ const s = new CustomEvent("selected", { detail: { selected: i } });
2860
+ if (this.dispatchEvent(s), i == "all" && this.hasAttribute("data-select-watch")) {
2858
2861
  const o = document.getElementById(this.getAttribute("data-select-watch"));
2859
- Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((n, d) => {
2860
- n.checked = !0, n.closest("iam-card") && n.closest("iam-card").setAttribute("data-selected", "true");
2862
+ Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((r, d) => {
2863
+ r.checked = !0, r.closest("iam-card") && r.closest("iam-card").setAttribute("data-selected", "true");
2861
2864
  });
2862
2865
  }
2863
2866
  if (i == "0" && this.hasAttribute("data-select-watch")) {
2864
2867
  const o = document.getElementById(this.getAttribute("data-select-watch"));
2865
- Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((n, d) => {
2866
- n.checked = !1, n.closest("iam-card") && n.closest("iam-card").removeAttribute("data-selected", "true");
2868
+ Array.from(o.querySelectorAll('input[type="checkbox"]')).forEach((r, d) => {
2869
+ r.checked = !1, r.closest("iam-card") && r.closest("iam-card").removeAttribute("data-selected", "true");
2867
2870
  });
2868
2871
  }
2869
2872
  break;
@@ -2878,12 +2881,12 @@ const zo = {
2878
2881
  mounted() {
2879
2882
  }
2880
2883
  };
2881
- function Po(e, a, t, i, s, r) {
2882
- return h(), p("iam-actionbar", null, [
2883
- x(e.$slots, "default")
2884
+ function Po(e, a, t, i, n, s) {
2885
+ return p(), b("iam-actionbar", null, [
2886
+ k(e.$slots, "default")
2884
2887
  ]);
2885
2888
  }
2886
- const wi = /* @__PURE__ */ A(zo, [["render", Po]]), Fo = {
2889
+ const vi = /* @__PURE__ */ _(zo, [["render", Po]]), Fo = {
2887
2890
  name: "Pagination",
2888
2891
  props: {},
2889
2892
  computed: {},
@@ -2895,13 +2898,13 @@ const wi = /* @__PURE__ */ A(zo, [["render", Po]]), Fo = {
2895
2898
  updated() {
2896
2899
  }
2897
2900
  };
2898
- function Io(e, a, t, i, s, r) {
2899
- return h(), p("iam-pagination");
2901
+ function Io(e, a, t, i, n, s) {
2902
+ return p(), b("iam-pagination");
2900
2903
  }
2901
- const Ai = /* @__PURE__ */ A(Fo, [["render", Io]]), Bo = (e, a) => {
2904
+ const wi = /* @__PURE__ */ _(Fo, [["render", Io]]), Bo = (e, a) => {
2902
2905
  const t = e[a];
2903
- return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, s) => {
2904
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(s.bind(null, new Error("Unknown variable dynamic import: " + a)));
2906
+ return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, n) => {
2907
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + a)));
2905
2908
  });
2906
2909
  }, Oo = {
2907
2910
  name: "Address Lookup",
@@ -2915,14 +2918,14 @@ const Ai = /* @__PURE__ */ A(Fo, [["render", Io]]), Bo = (e, a) => {
2915
2918
  });
2916
2919
  }
2917
2920
  };
2918
- function Vo(e, a, t, i, s, r) {
2919
- return h(), p("iam-address-lookup", null, [
2920
- x(e.$slots, "default")
2921
+ function Vo(e, a, t, i, n, s) {
2922
+ return p(), b("iam-address-lookup", null, [
2923
+ k(e.$slots, "default")
2921
2924
  ]);
2922
2925
  }
2923
- const _i = /* @__PURE__ */ A(Oo, [["render", Vo]]);
2926
+ const Ai = /* @__PURE__ */ _(Oo, [["render", Vo]]);
2924
2927
  /*!
2925
- * iamKey v4.1.1-beta-7
2928
+ * iamKey v5.0.0
2926
2929
  * Copyright 2022-2023 iamproperty
2927
2930
  */
2928
2931
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
@@ -2933,7 +2936,7 @@ class Uo extends HTMLElement {
2933
2936
  i.innerHTML = `
2934
2937
  <style class="styles">
2935
2938
  @import "${t}";
2936
- :host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}.side-menu:is(.open) .btn[class*=fa-]:before{content:"" !important}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}.side-menu:is(.open) .btn{opacity:0;transition:opacity .5s}.side-menu:is(.open) .btn:is(:hover,:focus,:active){opacity:1}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,.selected)){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu].selected){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu].selected):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu].selected):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
2939
+ :host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu .btn[aria-expanded][class*=fa-]:before{content:"" !important}@media screen and (min-width: 62em){.side-menu .btn[aria-expanded]{opacity:0;transition:opacity .5s}.side-menu .btn[aria-expanded]:is(:hover,:focus,:active){opacity:1}}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,[aria-expanded])){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu][aria-expanded]){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu][aria-expanded]):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu][aria-expanded]):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
2937
2940
 
2938
2941
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2939
2942
  </style>
@@ -2955,20 +2958,20 @@ class Uo extends HTMLElement {
2955
2958
  `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2956
2959
  }
2957
2960
  connectedCallback() {
2958
- const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), s = this.shadowRoot.querySelector(".side-menu > .btn");
2959
- this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), i.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), s.addEventListener("click", (r) => {
2960
- a.classList.contains("open") ? (a.classList.remove("open"), setTimeout(function() {
2961
+ const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), n = this.shadowRoot.querySelector(".side-menu > .btn");
2962
+ this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), i.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), n.addEventListener("click", (s) => {
2963
+ a.classList.contains("open") ? (a.classList.remove("open"), n.removeAttribute("aria-expanded"), setTimeout(function() {
2961
2964
  t.classList.add("closed");
2962
2965
  }, 1e3), a.classList.add("pe-none"), setTimeout(function() {
2963
2966
  a.classList.remove("pe-none");
2964
2967
  }, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
2965
- a.classList.add("open");
2968
+ a.classList.add("open"), n.setAttribute("aria-expanded", !0);
2966
2969
  }, 100));
2967
- }), a.addEventListener("mouseenter", (r) => {
2970
+ }), a.addEventListener("mouseenter", (s) => {
2968
2971
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
2969
- }), a.addEventListener("mousemove", (r) => {
2972
+ }), a.addEventListener("mousemove", (s) => {
2970
2973
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
2971
- }), a.addEventListener("mouseleave", (r) => {
2974
+ }), a.addEventListener("mouseleave", (s) => {
2972
2975
  window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
2973
2976
  t.classList.add("closed");
2974
2977
  }, 1e3));
@@ -2982,31 +2985,31 @@ const Wo = {
2982
2985
  mounted() {
2983
2986
  }
2984
2987
  };
2985
- function Yo(e, a, t, i, s, r) {
2986
- return h(), p("iam-collapsible-side", null, [
2987
- x(e.$slots, "default")
2988
+ function Yo(e, a, t, i, n, s) {
2989
+ return p(), b("iam-collapsible-side", null, [
2990
+ k(e.$slots, "default")
2988
2991
  ]);
2989
2992
  }
2990
- const xi = /* @__PURE__ */ A(Wo, [["render", Yo]]);
2993
+ const _i = /* @__PURE__ */ _(Wo, [["render", Yo]]);
2991
2994
  export {
2992
2995
  ti as Accordion,
2993
2996
  ei as AccordionItem,
2994
- wi as Actionbar,
2995
- _i as AddressLookup,
2996
- gi as AppliedFilters,
2997
+ vi as Actionbar,
2998
+ Ai as AddressLookup,
2999
+ fi as AppliedFilters,
2997
3000
  ai as Banner,
2998
3001
  je as Card,
2999
3002
  oi as Carousel,
3000
- xi as CollapsibleSideMenu,
3003
+ _i as CollapsibleSideMenu,
3001
3004
  Qo as FileUpload,
3002
- yi as Filterlist,
3005
+ gi as Filterlist,
3003
3006
  ii as Header,
3004
3007
  lt as Input,
3005
3008
  Xo as Logo,
3006
3009
  li as Nav,
3007
3010
  bi as NoteFeed,
3008
- vi as Notification,
3009
- Ai as Pagination,
3011
+ yi as Notification,
3012
+ wi as Pagination,
3010
3013
  si as PropertySearchbar,
3011
3014
  ci as Snapshot,
3012
3015
  ui as Step,