@iamproperty/components 3.8.0 → 4.0.0

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