@iamproperty/components 3.7.9 → 3.9.0-beta-1

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