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