@iamproperty/components 3.7.3 → 3.7.4

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