@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.
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/components/tooltips.css +1 -1
- package/assets/css/components/tooltips.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.js +5 -5
- package/assets/js/components/accordion/accordion.component.min.js +6 -5
- package/assets/js/components/accordion/accordion.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.js +10 -3
- package/assets/js/components/applied-filters/applied-filters.component.min.js +14 -0
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -0
- package/assets/js/components/card/card.component.js +11 -3
- package/assets/js/components/card/card.component.min.js +6 -6
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.js +2 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +4 -4
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
- package/assets/js/components/header/header.component.js +3 -5
- package/assets/js/components/header/header.component.min.js +4 -8
- package/assets/js/components/header/header.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +4 -1
- package/assets/js/components/pagination/pagination.component.min.js +20 -0
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -0
- package/assets/js/components/table/table.component.js +5 -1
- package/assets/js/components/table/table.component.min.js +14 -12
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +2 -1
- package/assets/js/components/tabs/tabs.component.min.js +3 -3
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.min.js +2 -2
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/dialogs.js +8 -1
- package/assets/js/modules/table.js +19 -6
- package/assets/js/scripts.bundle.js +37 -37
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_corefiles.scss +1 -0
- package/assets/sass/components/card.scss +2 -3
- package/assets/sass/components/dialog.scss +49 -4
- package/assets/sass/components/pagination.scss +2 -1
- package/assets/sass/components/table.scss +26 -12
- package/assets/sass/components/tooltips.scss +137 -49
- package/assets/sass/foundations/buttons.scss +1 -1
- package/assets/sass/foundations/reboot.scss +32 -2
- package/assets/ts/components/accordion/accordion.component.ts +6 -8
- package/assets/ts/components/applied-filters/applied-filters.component.ts +12 -3
- package/assets/ts/components/card/card.component.ts +16 -4
- package/assets/ts/components/filterlist/filterlist.component.ts +4 -2
- package/assets/ts/components/header/header.component.ts +4 -5
- package/assets/ts/components/pagination/pagination.component.ts +4 -1
- package/assets/ts/components/table/table.component.ts +5 -1
- package/assets/ts/components/tabs/tabs.component.ts +3 -1
- package/assets/ts/modules/dialogs.ts +11 -4
- package/assets/ts/modules/table.ts +25 -8
- package/dist/components.es.js +1179 -1148
- package/dist/components.umd.js +55 -36
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.vue +1 -1
- package/src/components/AppliedFilters/AppliedFilters.vue +1 -1
- package/src/components/Filterlist/Filterlist.vue +1 -1
- package/src/components/Header/Header.vue +9 -5
- package/src/components/Pagination/Pagination.vue +1 -1
- package/src/components/Table/Table.vue +1 -1
- package/src/components/Tabs/Tabs.vue +1 -1
- package/src/components/Header/Header.spec.js +0 -34
package/dist/components.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const S = (
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
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
|
-
},
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
class:
|
|
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
|
-
(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"xlink:href":
|
|
41
|
-
}, null, 8,
|
|
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
|
-
|
|
43
|
+
e.desc ? (u(), m("span", {
|
|
44
44
|
key: 0,
|
|
45
|
-
innerHTML:
|
|
46
|
-
}, null, 8,
|
|
45
|
+
innerHTML: e.desc
|
|
46
|
+
}, null, 8, be)) : g("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
let
|
|
57
|
-
if (
|
|
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
|
|
60
|
-
for (let
|
|
61
|
-
|
|
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
|
-
${
|
|
64
|
-
${
|
|
65
|
-
${
|
|
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 ${
|
|
68
|
-
<a href="?show=${parseInt(
|
|
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
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
},
|
|
116
|
+
}, Ae = (t) => {
|
|
85
117
|
let a = 0;
|
|
86
|
-
return Array.from(
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
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
|
-
},
|
|
96
|
-
if (
|
|
126
|
+
}, Se = (t) => {
|
|
127
|
+
if (t.closest(".table--fullwidth") || t.querySelectorAll("thead tr th").length < 4)
|
|
97
128
|
return !1;
|
|
98
|
-
Array.from(
|
|
99
|
-
let
|
|
100
|
-
if (
|
|
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
|
-
},
|
|
108
|
-
|
|
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
|
|
111
|
-
|
|
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
|
-
},
|
|
115
|
-
let
|
|
116
|
-
if (!
|
|
145
|
+
}, X = (t, a) => {
|
|
146
|
+
let e = a.querySelector("[data-search]");
|
|
147
|
+
if (!e)
|
|
117
148
|
return !1;
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
Array.from(
|
|
122
|
-
l.querySelector(".td__content") ?
|
|
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
|
-
}),
|
|
125
|
-
},
|
|
126
|
-
var
|
|
127
|
-
let
|
|
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
|
|
131
|
-
|
|
161
|
+
let h = a.querySelector("[data-pagination]");
|
|
162
|
+
h.value = 1, r.setAttribute("data-page", 1);
|
|
132
163
|
}
|
|
133
|
-
|
|
164
|
+
te(t, a, e, r);
|
|
134
165
|
} else
|
|
135
|
-
a.hasAttribute("data-submit") ? a.submit() : (
|
|
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(
|
|
139
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
177
|
+
clearTimeout(i), a.hasAttribute("data-submit") || l.preventDefault(), o();
|
|
147
178
|
}), a.addEventListener("force", (l) => {
|
|
148
|
-
|
|
179
|
+
o();
|
|
149
180
|
}), a.addEventListener("paginate", (l) => {
|
|
150
|
-
|
|
181
|
+
o(!0);
|
|
151
182
|
});
|
|
152
|
-
let
|
|
153
|
-
Array.from(a.querySelectorAll("[data-mimic]")).forEach((l,
|
|
154
|
-
let
|
|
155
|
-
Array.from(document.querySelectorAll(`[name="${
|
|
156
|
-
let
|
|
157
|
-
|
|
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
|
-
}),
|
|
160
|
-
const
|
|
161
|
-
let
|
|
162
|
-
for (const [
|
|
163
|
-
document.querySelector(`[data-mimic="${
|
|
164
|
-
for (const
|
|
165
|
-
const
|
|
166
|
-
a.dispatchEvent(
|
|
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
|
|
169
|
-
if (!
|
|
170
|
-
document.querySelector(`[data-mimic="${
|
|
171
|
-
const
|
|
172
|
-
a.dispatchEvent(
|
|
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", (
|
|
176
|
-
|
|
177
|
-
}), l.addEventListener("change", (
|
|
178
|
-
|
|
206
|
+
l.addEventListener("force", (b) => {
|
|
207
|
+
f();
|
|
208
|
+
}), l.addEventListener("change", (b) => {
|
|
209
|
+
f();
|
|
179
210
|
});
|
|
180
211
|
});
|
|
181
|
-
},
|
|
212
|
+
}, Y = (t, a, e) => {
|
|
182
213
|
if (a.getAttribute("data-ajax"))
|
|
183
214
|
return !1;
|
|
184
|
-
let
|
|
185
|
-
if (!
|
|
186
|
-
return
|
|
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(
|
|
189
|
-
let
|
|
190
|
-
Array.from(
|
|
191
|
-
let
|
|
192
|
-
l.length && l.includes(
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
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
|
|
220
|
-
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((
|
|
221
|
-
|
|
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((
|
|
225
|
-
|
|
226
|
-
}),
|
|
227
|
-
|
|
228
|
-
}),
|
|
229
|
-
for (const [
|
|
230
|
-
Array.from(
|
|
231
|
-
let
|
|
232
|
-
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
235
|
-
|
|
236
|
-
else if (
|
|
237
|
-
let
|
|
238
|
-
|
|
239
|
-
} else if (
|
|
240
|
-
let
|
|
241
|
-
if (
|
|
242
|
-
|
|
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
|
|
245
|
-
|
|
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 (
|
|
248
|
-
let
|
|
249
|
-
var
|
|
250
|
-
let
|
|
251
|
-
|
|
252
|
-
} else if (
|
|
253
|
-
let
|
|
254
|
-
var
|
|
255
|
-
let
|
|
256
|
-
|
|
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
|
-
|
|
259
|
-
}),
|
|
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(
|
|
262
|
-
let
|
|
263
|
-
|
|
264
|
-
let
|
|
265
|
-
|
|
266
|
-
}),
|
|
267
|
-
}), Array.from(
|
|
268
|
-
|
|
269
|
-
}),
|
|
270
|
-
},
|
|
271
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((
|
|
272
|
-
let
|
|
273
|
-
if (
|
|
274
|
-
|
|
275
|
-
else if (!
|
|
276
|
-
let
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}), o = Array.from(
|
|
280
|
-
} else if (!
|
|
281
|
-
o = Array.from(
|
|
282
|
-
else if (
|
|
283
|
-
let
|
|
284
|
-
o = Array.from(
|
|
285
|
-
let
|
|
286
|
-
for (const [
|
|
287
|
-
let
|
|
288
|
-
(!
|
|
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
|
|
318
|
+
return l;
|
|
291
319
|
}).length;
|
|
292
320
|
} else {
|
|
293
|
-
let
|
|
294
|
-
o = Array.from(
|
|
295
|
-
return
|
|
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
|
-
|
|
326
|
+
r.hasAttribute("data-total") ? r.setAttribute("data-total", o) : r.innerHTML = o;
|
|
299
327
|
});
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
if (
|
|
303
|
-
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
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 (
|
|
311
|
-
|
|
312
|
-
let
|
|
313
|
-
|
|
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
|
-
},
|
|
317
|
-
if (!
|
|
346
|
+
}, qe = (t, a) => {
|
|
347
|
+
if (!t)
|
|
318
348
|
return !1;
|
|
319
|
-
|
|
320
|
-
|
|
349
|
+
t.addEventListener("click", (e) => {
|
|
350
|
+
$e(a);
|
|
321
351
|
});
|
|
322
|
-
},
|
|
323
|
-
for (var a = [],
|
|
324
|
-
for (var
|
|
325
|
-
|
|
326
|
-
a.push(
|
|
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
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
var
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
},
|
|
399
|
-
|
|
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 =
|
|
431
|
+
return a = ve(a);
|
|
406
432
|
}
|
|
407
433
|
};
|
|
408
|
-
class
|
|
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",
|
|
412
|
-
let
|
|
413
|
-
|
|
414
|
-
const
|
|
415
|
-
|
|
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 "${
|
|
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
|
-
${
|
|
430
|
-
<div class="table__wrapper ${
|
|
457
|
+
${r ? '<div class="table--cta">' : ""}
|
|
458
|
+
<div class="table__wrapper ${i}">
|
|
431
459
|
<slot></slot>
|
|
432
460
|
</div>
|
|
433
|
-
${
|
|
434
|
-
${
|
|
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(
|
|
437
|
-
const
|
|
438
|
-
this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page",
|
|
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"),
|
|
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,
|
|
476
|
+
attributeChangedCallback(a, e, r) {
|
|
449
477
|
}
|
|
450
478
|
}
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
},
|
|
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 (
|
|
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",
|
|
500
|
+
window.customElements.get("iam-table") || window.customElements.define("iam-table", Ee);
|
|
473
501
|
});
|
|
474
502
|
},
|
|
475
503
|
updated() {
|
|
476
504
|
}
|
|
477
|
-
},
|
|
478
|
-
function
|
|
479
|
-
return
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
(
|
|
484
|
-
key:
|
|
485
|
-
},
|
|
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
|
-
|
|
489
|
-
(
|
|
490
|
-
key:
|
|
491
|
-
"data-row-id":
|
|
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
|
-
(
|
|
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:
|
|
496
|
-
}, null, 8,
|
|
497
|
-
], 8,
|
|
523
|
+
innerHTML: n
|
|
524
|
+
}, null, 8, Ie))), 128))
|
|
525
|
+
], 8, ze))), 128))
|
|
498
526
|
])) : g("", !0)
|
|
499
|
-
])) : _(
|
|
527
|
+
])) : _(t.$slots, "default", { key: 1 })
|
|
500
528
|
]);
|
|
501
529
|
}
|
|
502
|
-
const
|
|
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(
|
|
665
|
-
this.$emit("input",
|
|
692
|
+
set(t) {
|
|
693
|
+
this.$emit("input", t);
|
|
666
694
|
}
|
|
667
695
|
}
|
|
668
696
|
},
|
|
669
697
|
mounted() {
|
|
670
698
|
this.$nextTick(function() {
|
|
671
|
-
let
|
|
672
|
-
if (
|
|
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(
|
|
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(
|
|
680
|
-
this.$emit("keyupEvent",
|
|
707
|
+
inputKeyup(t) {
|
|
708
|
+
this.$emit("keyupEvent", t);
|
|
681
709
|
},
|
|
682
710
|
clickEvent() {
|
|
683
711
|
this.$emit("bus");
|
|
684
712
|
}
|
|
685
713
|
}
|
|
686
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
693
|
-
function
|
|
694
|
-
return
|
|
695
|
-
class:
|
|
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
|
-
|
|
726
|
+
i.needsLabel() ? (u(), m("label", {
|
|
699
727
|
key: 0,
|
|
700
|
-
class:
|
|
701
|
-
for:
|
|
702
|
-
innerHTML:
|
|
703
|
-
title:
|
|
704
|
-
}, null, 10,
|
|
705
|
-
|
|
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:
|
|
708
|
-
innerHTML:
|
|
735
|
+
class: w(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
|
|
736
|
+
innerHTML: e.prefix,
|
|
709
737
|
role: "presentation"
|
|
710
|
-
}, null, 10,
|
|
711
|
-
|
|
738
|
+
}, null, 10, je)) : g("", !0),
|
|
739
|
+
e.suffix ? (u(), m("span", {
|
|
712
740
|
key: 2,
|
|
713
|
-
class:
|
|
714
|
-
innerHTML:
|
|
741
|
+
class: w(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
|
|
742
|
+
innerHTML: e.suffix,
|
|
715
743
|
role: "presentation"
|
|
716
|
-
}, null, 10,
|
|
717
|
-
|
|
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] = (
|
|
720
|
-
class: `form-control${
|
|
721
|
-
type:
|
|
722
|
-
name:
|
|
723
|
-
id:
|
|
724
|
-
pattern:
|
|
725
|
-
list:
|
|
726
|
-
},
|
|
727
|
-
onKeyup: a[1] || (a[1] = (...
|
|
728
|
-
}), null, 16,
|
|
729
|
-
[
|
|
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
|
-
|
|
759
|
+
e.type == "textarea" ? z((u(), m("textarea", H({
|
|
732
760
|
key: 4,
|
|
733
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
734
|
-
class: `form-control${
|
|
735
|
-
type:
|
|
736
|
-
name:
|
|
737
|
-
id:
|
|
738
|
-
pattern:
|
|
739
|
-
},
|
|
740
|
-
[
|
|
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
|
-
|
|
743
|
-
|
|
744
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
745
|
-
class: `form-range${
|
|
746
|
-
type:
|
|
747
|
-
name:
|
|
748
|
-
id:
|
|
749
|
-
pattern:
|
|
750
|
-
list:
|
|
751
|
-
},
|
|
752
|
-
[
|
|
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
|
-
|
|
782
|
+
d("output", Ge, $(e.value), 1)
|
|
755
783
|
])) : g("", !0),
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
759
|
-
class: `form-control form-control-color${
|
|
760
|
-
type:
|
|
761
|
-
name:
|
|
762
|
-
id:
|
|
763
|
-
pattern:
|
|
764
|
-
list:
|
|
765
|
-
},
|
|
766
|
-
[
|
|
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
|
-
|
|
796
|
+
d("output", Je, $(e.value ? t.vale : "#000000"), 1)
|
|
769
797
|
])) : g("", !0),
|
|
770
|
-
|
|
798
|
+
e.type == "select" ? z((u(), m("select", H({
|
|
771
799
|
key: 7,
|
|
772
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
773
|
-
class: `form-select${
|
|
774
|
-
type:
|
|
775
|
-
name:
|
|
776
|
-
id:
|
|
777
|
-
pattern:
|
|
778
|
-
},
|
|
779
|
-
(
|
|
780
|
-
key:
|
|
781
|
-
value:
|
|
782
|
-
},
|
|
783
|
-
], 16,
|
|
784
|
-
[
|
|
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
|
-
|
|
814
|
+
i.allowDatalist() ? (u(), m("datalist", {
|
|
787
815
|
key: 8,
|
|
788
|
-
id:
|
|
816
|
+
id: e.id + "-list"
|
|
789
817
|
}, [
|
|
790
|
-
(
|
|
791
|
-
key:
|
|
792
|
-
value:
|
|
793
|
-
},
|
|
794
|
-
], 8,
|
|
795
|
-
|
|
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:
|
|
799
|
-
name:
|
|
800
|
-
id:
|
|
801
|
-
},
|
|
802
|
-
|
|
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:
|
|
805
|
-
for:
|
|
806
|
-
innerHTML:
|
|
807
|
-
}, null, 10,
|
|
808
|
-
|
|
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${
|
|
811
|
-
type:
|
|
838
|
+
class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
839
|
+
type: e.type.replace("-btn", ""),
|
|
812
840
|
autocomplete: "off",
|
|
813
|
-
name:
|
|
814
|
-
id:
|
|
815
|
-
},
|
|
816
|
-
|
|
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:
|
|
819
|
-
for:
|
|
820
|
-
innerHTML:
|
|
821
|
-
onClick: a[6] || (a[6] = (...
|
|
822
|
-
}, null, 10,
|
|
823
|
-
|
|
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:
|
|
827
|
-
}, null, 8,
|
|
828
|
-
_(
|
|
854
|
+
innerHTML: e.errormsg
|
|
855
|
+
}, null, 8, st)) : g("", !0),
|
|
856
|
+
_(t.$slots, "default")
|
|
829
857
|
], 2);
|
|
830
858
|
}
|
|
831
|
-
const
|
|
859
|
+
const F = /* @__PURE__ */ S(Be, [["render", nt]]), lt = {
|
|
832
860
|
components: {
|
|
833
|
-
Input:
|
|
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
|
-
},
|
|
855
|
-
/* @__PURE__ */
|
|
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),
|
|
861
|
-
function
|
|
862
|
-
const
|
|
863
|
-
return
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
class:
|
|
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(
|
|
896
|
+
x(o, {
|
|
869
897
|
type: "file",
|
|
870
|
-
id:
|
|
871
|
-
name: `${
|
|
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":
|
|
904
|
+
"data-filesize": e.maxfilesize
|
|
877
905
|
}, null, 8, ["id", "name", "data-filesize"])
|
|
878
906
|
], 2),
|
|
879
|
-
|
|
880
|
-
_(
|
|
907
|
+
d("div", ut, [
|
|
908
|
+
_(t.$slots, "default")
|
|
881
909
|
]),
|
|
882
|
-
|
|
910
|
+
mt
|
|
883
911
|
]),
|
|
884
|
-
|
|
912
|
+
d("button", {
|
|
885
913
|
type: "button",
|
|
886
914
|
class: "btn btn-secondary me-0",
|
|
887
915
|
"data-add": "",
|
|
888
|
-
"data-maxfiles":
|
|
889
|
-
}, "+ Add file", 8,
|
|
916
|
+
"data-maxfiles": e.maxfiles
|
|
917
|
+
}, "+ Add file", 8, ht)
|
|
890
918
|
]);
|
|
891
919
|
}
|
|
892
|
-
const
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 "${
|
|
923
|
-
@
|
|
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(
|
|
957
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
930
958
|
}
|
|
931
959
|
connectedCallback() {
|
|
932
|
-
|
|
960
|
+
bt(this);
|
|
933
961
|
}
|
|
934
|
-
}
|
|
935
|
-
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion",
|
|
936
|
-
const
|
|
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
|
-
},
|
|
942
|
-
function
|
|
943
|
-
return
|
|
944
|
-
_(
|
|
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
|
|
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 (
|
|
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
|
-
},
|
|
983
|
-
function
|
|
984
|
-
return
|
|
985
|
-
id:
|
|
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
|
-
|
|
988
|
-
classList: `${
|
|
1015
|
+
d("summary", {
|
|
1016
|
+
classList: `${e.titlecolour ? `bg-${e.titlecolour}` : ""}`
|
|
989
1017
|
}, [
|
|
990
|
-
|
|
991
|
-
|
|
1018
|
+
de($(e.title), 1),
|
|
1019
|
+
e.badge ? (u(), m("span", {
|
|
992
1020
|
key: 0,
|
|
993
|
-
class:
|
|
994
|
-
},
|
|
995
|
-
], 8,
|
|
996
|
-
_(
|
|
997
|
-
], 8,
|
|
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
|
|
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
|
-
},
|
|
1017
|
-
function
|
|
1018
|
-
return
|
|
1019
|
-
|
|
1020
|
-
class:
|
|
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
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
_(
|
|
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
|
-
|
|
1030
|
-
|
|
1057
|
+
d("div", Et, [
|
|
1058
|
+
e.image ? (u(), m("img", {
|
|
1031
1059
|
key: 0,
|
|
1032
|
-
src:
|
|
1060
|
+
src: e.image,
|
|
1033
1061
|
alt: "",
|
|
1034
1062
|
class: "h-100 w-100 object-cover"
|
|
1035
|
-
}, null, 8,
|
|
1063
|
+
}, null, 8, Tt)) : g("", !0)
|
|
1036
1064
|
])
|
|
1037
1065
|
])
|
|
1038
1066
|
], 2)
|
|
1039
1067
|
]);
|
|
1040
1068
|
}
|
|
1041
|
-
const
|
|
1069
|
+
const fo = /* @__PURE__ */ S(kt, [["render", Mt]]);
|
|
1042
1070
|
/*!
|
|
1043
|
-
* iamKey v3.7.
|
|
1071
|
+
* iamKey v3.7.4
|
|
1044
1072
|
* Copyright 2022-2023 iamproperty
|
|
1045
1073
|
*/
|
|
1046
|
-
|
|
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
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
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 "${
|
|
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 ${
|
|
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(
|
|
1096
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
1070
1097
|
}
|
|
1071
1098
|
connectedCallback() {
|
|
1072
|
-
|
|
1073
|
-
a.
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
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 ?
|
|
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,
|
|
1115
|
+
attributeChangedCallback(a, e, r) {
|
|
1088
1116
|
switch (a) {
|
|
1089
1117
|
case "data-total": {
|
|
1090
|
-
this.shadowRoot.querySelector(".card__total").innerHTML =
|
|
1118
|
+
this.shadowRoot.querySelector(".card__total").innerHTML = r;
|
|
1091
1119
|
break;
|
|
1092
1120
|
}
|
|
1093
1121
|
case "class": {
|
|
1094
|
-
let
|
|
1095
|
-
this.querySelector('[class*="fa-"]') && (
|
|
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
|
|
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",
|
|
1133
|
+
window.customElements.get("iam-card") || window.customElements.define("iam-card", Ht);
|
|
1106
1134
|
});
|
|
1107
1135
|
}
|
|
1108
1136
|
};
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1111
|
-
_(
|
|
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
|
|
1115
|
-
function
|
|
1142
|
+
const Nt = /* @__PURE__ */ S(Ct, [["render", Dt]]);
|
|
1143
|
+
function Rt(t) {
|
|
1116
1144
|
var a;
|
|
1117
|
-
let
|
|
1118
|
-
|
|
1119
|
-
let
|
|
1120
|
-
|
|
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
|
|
1123
|
-
Array.from(
|
|
1124
|
-
|
|
1125
|
-
}),
|
|
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),
|
|
1128
|
-
for (var
|
|
1129
|
-
if (
|
|
1130
|
-
|
|
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
|
-
}),
|
|
1133
|
-
const
|
|
1134
|
-
|
|
1160
|
+
}), c.classList.add("active");
|
|
1161
|
+
const n = document.querySelector(c.getAttribute("href"));
|
|
1162
|
+
e.scroll({
|
|
1135
1163
|
top: 0,
|
|
1136
|
-
left:
|
|
1164
|
+
left: n.offsetLeft,
|
|
1137
1165
|
behavior: "smooth"
|
|
1138
1166
|
});
|
|
1139
1167
|
break;
|
|
1140
1168
|
}
|
|
1141
|
-
}, !1),
|
|
1142
|
-
for (var
|
|
1143
|
-
if (
|
|
1144
|
-
|
|
1145
|
-
let
|
|
1146
|
-
|
|
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:
|
|
1176
|
+
left: n,
|
|
1149
1177
|
behavior: "smooth"
|
|
1150
1178
|
});
|
|
1151
1179
|
break;
|
|
1152
1180
|
}
|
|
1153
|
-
}, !1),
|
|
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
|
|
1183
|
+
const zt = {
|
|
1156
1184
|
components: {
|
|
1157
|
-
Card:
|
|
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 (
|
|
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
|
-
|
|
1259
|
+
Rt(this.$refs.wrapper);
|
|
1232
1260
|
});
|
|
1233
1261
|
}
|
|
1234
|
-
},
|
|
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),
|
|
1266
|
+
}, "Prev", -1), Ut = /* @__PURE__ */ d("button", {
|
|
1239
1267
|
class: "btn btn-next",
|
|
1240
1268
|
"data-go": "2"
|
|
1241
1269
|
}, "Next", -1);
|
|
1242
|
-
function
|
|
1243
|
-
const
|
|
1244
|
-
return
|
|
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" +
|
|
1274
|
+
id: "carousel" + s.id,
|
|
1247
1275
|
ref: "wrapper",
|
|
1248
|
-
"data-cols":
|
|
1249
|
-
"data-sm-cols":
|
|
1250
|
-
"data-md-cols":
|
|
1276
|
+
"data-cols": e.cols,
|
|
1277
|
+
"data-sm-cols": e.smcols,
|
|
1278
|
+
"data-md-cols": e.mdcols
|
|
1251
1279
|
}, [
|
|
1252
|
-
_(
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
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:
|
|
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
|
-
(
|
|
1260
|
-
class:
|
|
1261
|
-
key:
|
|
1262
|
-
id: "carousel" +
|
|
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(
|
|
1265
|
-
class:
|
|
1266
|
-
type:
|
|
1267
|
-
btnyype:
|
|
1268
|
-
titleclass:
|
|
1269
|
-
ctatext:
|
|
1270
|
-
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,
|
|
1300
|
+
], 10, Ft))), 128))
|
|
1273
1301
|
], 2)) : g("", !0),
|
|
1274
|
-
|
|
1302
|
+
e.type != "card" ? (u(), m("div", {
|
|
1275
1303
|
key: 1,
|
|
1276
|
-
class:
|
|
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
|
-
(
|
|
1279
|
-
class:
|
|
1280
|
-
key:
|
|
1281
|
-
innerHTML:
|
|
1282
|
-
id: "carousel" +
|
|
1283
|
-
}, null, 10,
|
|
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
|
-
|
|
1287
|
-
class:
|
|
1314
|
+
d("div", {
|
|
1315
|
+
class: w(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1288
1316
|
}, [
|
|
1289
|
-
(
|
|
1290
|
-
key:
|
|
1291
|
-
href: "#carousel" +
|
|
1292
|
-
class:
|
|
1293
|
-
}, "Slide " +
|
|
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
|
-
|
|
1296
|
-
|
|
1323
|
+
Vt,
|
|
1324
|
+
Ut
|
|
1297
1325
|
])
|
|
1298
|
-
], 8,
|
|
1326
|
+
], 8, It);
|
|
1299
1327
|
}
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
});
|
|
1306
|
-
class
|
|
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",
|
|
1310
|
-
|
|
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 "${
|
|
1313
|
-
|
|
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(
|
|
1359
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
1335
1360
|
}
|
|
1336
1361
|
connectedCallback() {
|
|
1337
|
-
|
|
1338
|
-
this.
|
|
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
|
-
|
|
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
|
-
},
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
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:
|
|
1388
|
+
image: e.image
|
|
1359
1389
|
}, [
|
|
1360
|
-
_(
|
|
1361
|
-
|
|
1390
|
+
_(t.$slots, "breadcrumb"),
|
|
1391
|
+
e.title ? (u(), m("h1", {
|
|
1362
1392
|
key: 0,
|
|
1363
|
-
innerHTML:
|
|
1364
|
-
}, null, 8,
|
|
1365
|
-
_(
|
|
1366
|
-
], 8,
|
|
1393
|
+
innerHTML: e.title
|
|
1394
|
+
}, null, 8, Zt)) : g("", !0),
|
|
1395
|
+
_(t.$slots, "default")
|
|
1396
|
+
], 8, Yt);
|
|
1367
1397
|
}
|
|
1368
|
-
const
|
|
1369
|
-
function
|
|
1398
|
+
const po = /* @__PURE__ */ S(Gt, [["render", Jt]]);
|
|
1399
|
+
function Xt(t) {
|
|
1370
1400
|
var a;
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1401
|
+
const e = t.querySelector(".testimonial__images"), r = e.querySelectorAll("img").length;
|
|
1402
|
+
if (r == 1)
|
|
1373
1403
|
return !1;
|
|
1374
|
-
|
|
1375
|
-
const
|
|
1376
|
-
const
|
|
1377
|
-
|
|
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
|
-
|
|
1409
|
+
e.addEventListener("scroll", function(i) {
|
|
1380
1410
|
clearTimeout(a), a = setTimeout(function() {
|
|
1381
|
-
let
|
|
1382
|
-
|
|
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),
|
|
1385
|
-
for (var
|
|
1386
|
-
if (
|
|
1387
|
-
let
|
|
1388
|
-
|
|
1389
|
-
top:
|
|
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
|
|
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
|
-
|
|
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
|
-
},
|
|
1418
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1453
|
+
/* @__PURE__ */ d("button", {
|
|
1424
1454
|
"data-go": "2",
|
|
1425
1455
|
class: "btn-next"
|
|
1426
1456
|
}, "Next")
|
|
1427
|
-
], -1),
|
|
1428
|
-
function
|
|
1429
|
-
return
|
|
1430
|
-
|
|
1431
|
-
class:
|
|
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
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
(
|
|
1437
|
-
key:
|
|
1438
|
-
src:
|
|
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:
|
|
1441
|
-
}, null, 10,
|
|
1470
|
+
class: w("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
|
|
1471
|
+
}, null, 10, oa))), 128))
|
|
1442
1472
|
]),
|
|
1443
|
-
|
|
1473
|
+
ia
|
|
1444
1474
|
]),
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
(
|
|
1449
|
-
key:
|
|
1450
|
-
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
|
-
|
|
1453
|
-
innerHTML:
|
|
1454
|
-
}, null, 8,
|
|
1455
|
-
|
|
1456
|
-
innerHTML:
|
|
1457
|
-
}, null, 8,
|
|
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
|
-
|
|
1461
|
-
_(
|
|
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
|
|
1470
|
-
const
|
|
1499
|
+
const yo = /* @__PURE__ */ S(Qt, [["render", ha]]);
|
|
1500
|
+
const fa = {
|
|
1471
1501
|
components: {
|
|
1472
|
-
Input:
|
|
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(
|
|
1598
|
-
this.$emit("locationKeyup",
|
|
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(
|
|
1607
|
-
this.locationSave =
|
|
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
|
-
},
|
|
1646
|
+
}, ba = {
|
|
1617
1647
|
class: "container",
|
|
1618
1648
|
ref: "wrapper"
|
|
1619
|
-
}, pa = { class: "property-searchbar" },
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1626
|
-
/* @__PURE__ */
|
|
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
|
|
1633
|
-
const
|
|
1634
|
-
return
|
|
1635
|
-
_(
|
|
1636
|
-
|
|
1637
|
-
|
|
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:
|
|
1640
|
-
method:
|
|
1669
|
+
action: e.formaction,
|
|
1670
|
+
method: e.formmethod
|
|
1641
1671
|
}, [
|
|
1642
|
-
|
|
1643
|
-
x(
|
|
1672
|
+
d("fieldset", ga, [
|
|
1673
|
+
x(o, {
|
|
1644
1674
|
inputClass: "input--locations",
|
|
1645
|
-
modelValue:
|
|
1646
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
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:
|
|
1679
|
+
options: i.locationsList(),
|
|
1650
1680
|
required: "",
|
|
1651
1681
|
placeholder: "i.e. Newcastle or NE1",
|
|
1652
|
-
onKeyupEvent: a[1] || (a[1] = (
|
|
1682
|
+
onKeyupEvent: a[1] || (a[1] = (c) => i.locationKeyup(...arguments)),
|
|
1653
1683
|
ref: "search"
|
|
1654
1684
|
}, null, 8, ["modelValue", "options"]),
|
|
1655
|
-
x(
|
|
1685
|
+
x(o, {
|
|
1656
1686
|
class: "select--miles",
|
|
1657
1687
|
label: "Miles",
|
|
1658
1688
|
id: "miles",
|
|
1659
1689
|
type: "select",
|
|
1660
|
-
options:
|
|
1690
|
+
options: e.distances
|
|
1661
1691
|
}, null, 8, ["options"])
|
|
1662
1692
|
]),
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
x(
|
|
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:
|
|
1702
|
+
options: e.pricemin
|
|
1673
1703
|
}, null, 8, ["options"]),
|
|
1674
|
-
x(
|
|
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:
|
|
1710
|
+
options: e.pricemax
|
|
1681
1711
|
}, null, 8, ["options"])
|
|
1682
1712
|
])
|
|
1683
1713
|
]),
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
x(
|
|
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:
|
|
1723
|
+
options: e.bedsmin
|
|
1694
1724
|
}, null, 8, ["options"]),
|
|
1695
|
-
x(
|
|
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:
|
|
1731
|
+
options: e.bedsmax
|
|
1702
1732
|
}, null, 8, ["options"])
|
|
1703
1733
|
])
|
|
1704
1734
|
]),
|
|
1705
|
-
|
|
1706
|
-
x(
|
|
1735
|
+
d("fieldset", La, [
|
|
1736
|
+
x(o, {
|
|
1707
1737
|
label: "Property type",
|
|
1708
1738
|
id: "property-type",
|
|
1709
1739
|
type: "select",
|
|
1710
|
-
options:
|
|
1740
|
+
options: e.propertytypes
|
|
1711
1741
|
}, null, 8, ["options"])
|
|
1712
1742
|
]),
|
|
1713
|
-
|
|
1714
|
-
], 8,
|
|
1743
|
+
xa
|
|
1744
|
+
], 8, ya)
|
|
1715
1745
|
]),
|
|
1716
|
-
_(
|
|
1746
|
+
_(t.$slots, "after")
|
|
1717
1747
|
], 512);
|
|
1718
1748
|
}
|
|
1719
|
-
const
|
|
1720
|
-
Array.from(
|
|
1721
|
-
a.addEventListener("mouseenter", function(
|
|
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(
|
|
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
|
-
([
|
|
1757
|
+
([e]) => e.target.classList.toggle("is-stuck", e.intersectionRatio < 1),
|
|
1728
1758
|
{ threshold: [1] }
|
|
1729
|
-
).observe(
|
|
1759
|
+
).observe(t);
|
|
1730
1760
|
};
|
|
1731
|
-
const
|
|
1761
|
+
const Ea = {
|
|
1732
1762
|
components: {
|
|
1733
|
-
Input:
|
|
1734
|
-
Logo:
|
|
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(
|
|
1782
|
-
return (Array.isArray(
|
|
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
|
-
|
|
1834
|
+
$a(this.$refs.wrapper);
|
|
1805
1835
|
});
|
|
1806
1836
|
}
|
|
1807
|
-
},
|
|
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),
|
|
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),
|
|
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),
|
|
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
|
-
},
|
|
1855
|
+
}, za = {
|
|
1826
1856
|
key: 1,
|
|
1827
1857
|
class: "col mw-md-fit-content nav__logo"
|
|
1828
|
-
},
|
|
1858
|
+
}, Ia = {
|
|
1829
1859
|
href: "/",
|
|
1830
1860
|
class: "text-decoration-none mb-0"
|
|
1831
|
-
},
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
], -1), Ba = { class: "nav__inner" },
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1872
|
+
}, Wa = {
|
|
1843
1873
|
key: 2,
|
|
1844
1874
|
class: "col mw-fit-content nav__search-btn flex-row align-items-center"
|
|
1845
|
-
},
|
|
1846
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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),
|
|
1867
|
-
|
|
1868
|
-
], Ya = /* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
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__ */
|
|
1874
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1888
|
-
], -1),
|
|
1917
|
+
/* @__PURE__ */ d("span", null, "My account")
|
|
1918
|
+
], -1), Qa = [
|
|
1889
1919
|
Xa
|
|
1890
|
-
],
|
|
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
|
-
},
|
|
1923
|
+
}, tr = ["href", "innerHTML"], ar = {
|
|
1894
1924
|
key: 0,
|
|
1895
1925
|
class: "nav__menu--secondary"
|
|
1896
|
-
},
|
|
1926
|
+
}, rr = { class: "container" }, or = {
|
|
1897
1927
|
key: 1,
|
|
1898
1928
|
class: "nav__menu--search"
|
|
1899
|
-
},
|
|
1929
|
+
}, ir = { class: "bg-gradient pt-4" }, sr = { class: "container" }, nr = {
|
|
1900
1930
|
key: 0,
|
|
1901
1931
|
class: "nav__menu--account"
|
|
1902
|
-
},
|
|
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
|
-
},
|
|
1935
|
+
}, ur = {
|
|
1906
1936
|
key: 1,
|
|
1907
1937
|
class: "col mw-md-fit-content nav__logo"
|
|
1908
|
-
},
|
|
1938
|
+
}, mr = {
|
|
1909
1939
|
href: "/",
|
|
1910
1940
|
class: "text-decoration-none mb-0"
|
|
1911
|
-
},
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
], -1),
|
|
1914
|
-
function
|
|
1915
|
-
const
|
|
1916
|
-
return
|
|
1917
|
-
class:
|
|
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
|
-
|
|
1922
|
-
Ca,
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
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
|
-
|
|
1968
|
+
Pa
|
|
1939
1969
|
])
|
|
1940
1970
|
])
|
|
1941
1971
|
]),
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
_(
|
|
1947
|
-
])) : (
|
|
1948
|
-
|
|
1949
|
-
x(
|
|
1950
|
-
id:
|
|
1951
|
-
path:
|
|
1952
|
-
desc:
|
|
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
|
-
|
|
1987
|
+
i.hasSearchSlot ? (u(), m("div", Wa, Ga)) : g("", !0),
|
|
1958
1988
|
Ya,
|
|
1959
|
-
|
|
1960
|
-
_(
|
|
1989
|
+
d("div", Za, [
|
|
1990
|
+
_(t.$slots, "default")
|
|
1961
1991
|
]),
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
href:
|
|
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:
|
|
1968
|
-
}, null, 8,
|
|
1997
|
+
innerHTML: e.btntext
|
|
1998
|
+
}, null, 8, tr)
|
|
1969
1999
|
])) : g("", !0)
|
|
1970
2000
|
])
|
|
1971
2001
|
]),
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
_(
|
|
2002
|
+
i.hasSecondarySlot ? (u(), m("div", ar, [
|
|
2003
|
+
d("div", rr, [
|
|
2004
|
+
_(t.$slots, "secondary")
|
|
1975
2005
|
])
|
|
1976
2006
|
])) : g("", !0),
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
_(
|
|
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
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
_(
|
|
1990
|
-
])) : (
|
|
1991
|
-
|
|
1992
|
-
x(
|
|
1993
|
-
id:
|
|
1994
|
-
path:
|
|
1995
|
-
desc:
|
|
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
|
-
|
|
2030
|
+
hr
|
|
2001
2031
|
])
|
|
2002
2032
|
]),
|
|
2003
|
-
|
|
2004
|
-
_(
|
|
2033
|
+
d("div", fr, [
|
|
2034
|
+
_(t.$slots, "account")
|
|
2005
2035
|
])
|
|
2006
2036
|
])) : g("", !0),
|
|
2007
|
-
|
|
2037
|
+
br
|
|
2008
2038
|
], 2);
|
|
2009
2039
|
}
|
|
2010
|
-
const
|
|
2011
|
-
const
|
|
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
|
-
},
|
|
2054
|
+
}, gr = { class: "container" }, _r = ["aria-label"], vr = {
|
|
2025
2055
|
key: 0,
|
|
2026
2056
|
class: "h6 stepper__start"
|
|
2027
|
-
},
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2030
|
-
|
|
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":
|
|
2062
|
+
"aria-label": e.label ? e.label : "Progress"
|
|
2033
2063
|
}, [
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
_(
|
|
2064
|
+
e.label ? (u(), m("span", vr, $(e.label), 1)) : g("", !0),
|
|
2065
|
+
d("ol", wr, [
|
|
2066
|
+
_(t.$slots, "default")
|
|
2037
2067
|
]),
|
|
2038
|
-
|
|
2039
|
-
], 8,
|
|
2068
|
+
d("span", Ar, $(e.endlabel), 1)
|
|
2069
|
+
], 8, _r)
|
|
2040
2070
|
]);
|
|
2041
2071
|
}
|
|
2042
|
-
const
|
|
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
|
-
},
|
|
2088
|
+
}, Lr = ["href", "aria-current"], xr = {
|
|
2059
2089
|
key: 0,
|
|
2060
2090
|
class: "visually-hidden"
|
|
2061
2091
|
};
|
|
2062
|
-
function
|
|
2063
|
-
return
|
|
2064
|
-
|
|
2065
|
-
href:
|
|
2066
|
-
class:
|
|
2067
|
-
"aria-current": typeof
|
|
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
|
-
|
|
2070
|
-
_(
|
|
2099
|
+
d("span", null, [
|
|
2100
|
+
_(t.$slots, "default")
|
|
2071
2101
|
]),
|
|
2072
|
-
|
|
2073
|
-
], 10,
|
|
2102
|
+
e.status ? (u(), m("em", xr, " - status: " + $(e.status), 1)) : g("", !0)
|
|
2103
|
+
], 10, Lr)
|
|
2074
2104
|
]);
|
|
2075
2105
|
}
|
|
2076
|
-
const
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
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
|
-
},
|
|
2087
|
-
let a =
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
let
|
|
2092
|
-
|
|
2093
|
-
}), a.forEach((
|
|
2094
|
-
let
|
|
2095
|
-
|
|
2096
|
-
}),
|
|
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
|
-
}),
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
}), i
|
|
2106
|
-
}),
|
|
2107
|
-
|
|
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
|
-
},
|
|
2111
|
-
let a =
|
|
2112
|
-
|
|
2113
|
-
},
|
|
2114
|
-
|
|
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
|
-
|
|
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",
|
|
2125
|
-
|
|
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 "${
|
|
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(
|
|
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}`),
|
|
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",
|
|
2147
|
-
const
|
|
2174
|
+
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Hr);
|
|
2175
|
+
const Cr = {
|
|
2148
2176
|
name: "Tabs"
|
|
2149
|
-
},
|
|
2150
|
-
function
|
|
2151
|
-
return
|
|
2152
|
-
_(
|
|
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
|
|
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(
|
|
2174
|
-
console.log(
|
|
2201
|
+
show(t, a) {
|
|
2202
|
+
console.log(t);
|
|
2175
2203
|
}
|
|
2176
2204
|
}
|
|
2177
|
-
},
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2180
|
-
|
|
2181
|
-
_(
|
|
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
|
|
2185
|
-
function
|
|
2186
|
-
if (
|
|
2187
|
-
for (var
|
|
2188
|
-
if (
|
|
2189
|
-
|
|
2190
|
-
|
|
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),
|
|
2195
|
-
let
|
|
2222
|
+
}, !1), t.hasAttribute("data-timeout")) {
|
|
2223
|
+
let e = t.getAttribute("data-timeout");
|
|
2196
2224
|
setTimeout(function() {
|
|
2197
|
-
|
|
2198
|
-
|
|
2225
|
+
t.classList.remove("show"), setTimeout(function() {
|
|
2226
|
+
t.remove();
|
|
2199
2227
|
}, 300);
|
|
2200
|
-
},
|
|
2228
|
+
}, e);
|
|
2201
2229
|
}
|
|
2202
2230
|
if (!document.querySelector(".alert__holder")) {
|
|
2203
2231
|
document.getElementsByTagName("BODY")[0];
|
|
2204
|
-
let
|
|
2205
|
-
|
|
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
|
-
|
|
2236
|
+
t.classList.contains("alert--fixed") && !t.parentNode.classList.contains("alert__wrapper") && a.appendChild(t);
|
|
2209
2237
|
}
|
|
2210
|
-
const
|
|
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
|
-
|
|
2257
|
+
Br(this.$refs.wrapper);
|
|
2230
2258
|
}
|
|
2231
|
-
},
|
|
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
|
|
2239
|
-
return
|
|
2240
|
-
class:
|
|
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":
|
|
2243
|
-
style:
|
|
2270
|
+
"data-timeout": e.timeout,
|
|
2271
|
+
style: ue(e.timeout ? `--animation-length: ${e.timeout}ms` : "")
|
|
2244
2272
|
}, [
|
|
2245
|
-
|
|
2246
|
-
class:
|
|
2273
|
+
d("div", {
|
|
2274
|
+
class: w(`alert__inner bg-${e.colour}`),
|
|
2247
2275
|
role: "alert"
|
|
2248
2276
|
}, [
|
|
2249
|
-
|
|
2250
|
-
_(
|
|
2277
|
+
e.dismissible ? (u(), m("button", Or)) : g("", !0),
|
|
2278
|
+
_(t.$slots, "default")
|
|
2251
2279
|
], 2)
|
|
2252
|
-
], 14,
|
|
2280
|
+
], 14, jr);
|
|
2253
2281
|
}
|
|
2254
|
-
const
|
|
2255
|
-
let
|
|
2256
|
-
|
|
2257
|
-
const
|
|
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:
|
|
2260
|
-
Input:
|
|
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(
|
|
2297
|
+
submitForm: function(t) {
|
|
2270
2298
|
console.log(this);
|
|
2271
|
-
const a = new FormData(
|
|
2272
|
-
let
|
|
2273
|
-
const
|
|
2274
|
-
let
|
|
2275
|
-
|
|
2276
|
-
date_added:
|
|
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",
|
|
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
|
-
...
|
|
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
|
-
},
|
|
2304
|
-
function
|
|
2305
|
-
const
|
|
2306
|
-
return
|
|
2307
|
-
|
|
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:
|
|
2311
|
-
}, null, 8,
|
|
2312
|
-
x(
|
|
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:
|
|
2315
|
-
},
|
|
2316
|
-
|
|
2317
|
-
action:
|
|
2318
|
-
method:
|
|
2319
|
-
onSubmit: a[0] || (a[0] =
|
|
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
|
-
|
|
2349
|
+
d("input", {
|
|
2322
2350
|
type: "hidden",
|
|
2323
|
-
value:
|
|
2351
|
+
value: e.user,
|
|
2324
2352
|
name: "user"
|
|
2325
|
-
}, null, 8,
|
|
2326
|
-
x(
|
|
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
|
-
|
|
2334
|
-
], 40,
|
|
2361
|
+
Zr
|
|
2362
|
+
], 40, Gr)
|
|
2335
2363
|
]);
|
|
2336
2364
|
}
|
|
2337
|
-
const
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
let
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
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
|
-
|
|
2354
|
-
}),
|
|
2355
|
-
let
|
|
2356
|
-
l.querySelectorAll("input").forEach((
|
|
2357
|
-
let
|
|
2358
|
-
|
|
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
|
|
2361
|
-
|
|
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(
|
|
2366
|
-
|
|
2367
|
-
}),
|
|
2368
|
-
if (
|
|
2369
|
-
let
|
|
2370
|
-
|
|
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(
|
|
2373
|
-
if (
|
|
2374
|
-
let
|
|
2375
|
-
for (var
|
|
2376
|
-
let
|
|
2377
|
-
|
|
2378
|
-
let
|
|
2379
|
-
for (var
|
|
2380
|
-
let
|
|
2381
|
-
if (
|
|
2382
|
-
|
|
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
|
-
|
|
2385
|
-
var
|
|
2386
|
-
|
|
2416
|
+
f.checked = !1;
|
|
2417
|
+
var r = new Event("force");
|
|
2418
|
+
f.closest("form").dispatchEvent(r);
|
|
2387
2419
|
}
|
|
2388
2420
|
}
|
|
2389
2421
|
}
|
|
2390
|
-
|
|
2422
|
+
o.remove();
|
|
2391
2423
|
}
|
|
2392
2424
|
}, !1);
|
|
2393
2425
|
}
|
|
2394
|
-
|
|
2395
|
-
class
|
|
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
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
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 "${
|
|
2403
|
-
|
|
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 ${
|
|
2440
|
+
<div class="applied-filters ${r}"></div>
|
|
2407
2441
|
<slot></slot>
|
|
2408
|
-
`, this.shadowRoot.appendChild(
|
|
2442
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2409
2443
|
}
|
|
2410
2444
|
connectedCallback() {
|
|
2411
|
-
|
|
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",
|
|
2415
|
-
const
|
|
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
|
|
2419
|
-
return
|
|
2420
|
-
_(
|
|
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
|
|
2424
|
-
|
|
2425
|
-
|
|
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
|
|
2428
|
-
var
|
|
2429
|
-
a.addEventListener("keyup", (
|
|
2430
|
-
clearTimeout(
|
|
2431
|
-
|
|
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", (
|
|
2434
|
-
clearTimeout(
|
|
2471
|
+
}), a.addEventListener("change", (r) => {
|
|
2472
|
+
clearTimeout(e), Z(t, a.value);
|
|
2435
2473
|
});
|
|
2436
2474
|
}
|
|
2437
|
-
const
|
|
2438
|
-
Array.from(
|
|
2439
|
-
let
|
|
2440
|
-
|
|
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
|
-
|
|
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",
|
|
2455
|
-
|
|
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 "${
|
|
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(
|
|
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>'),
|
|
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",
|
|
2490
|
-
const
|
|
2520
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", oo);
|
|
2521
|
+
const io = {
|
|
2491
2522
|
name: "Filter list"
|
|
2492
2523
|
};
|
|
2493
|
-
function
|
|
2494
|
-
return
|
|
2495
|
-
_(
|
|
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
|
|
2529
|
+
const qo = /* @__PURE__ */ S(io, [["render", so]]);
|
|
2499
2530
|
export {
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
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
|
};
|