@iamproperty/components 3.7.8--beta-2 → 3.7.8
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/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -0
- package/assets/css/components/fileupload.css.map +1 -0
- package/assets/css/components/forms.css +1 -1
- package/assets/css/components/forms.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.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +44 -0
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +5 -5
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/data-layer.js +32 -34
- package/assets/js/modules/dialogs.js +1 -1
- package/assets/js/modules/fileupload.js +70 -0
- package/assets/js/modules/inputs.js +10 -0
- package/assets/js/scripts.bundle.js +20 -20
- 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/_forms.scss +1 -1
- package/assets/sass/components/dialog.scss +3 -1
- package/assets/sass/components/fileupload.scss +156 -0
- package/assets/sass/components/forms.scss +98 -135
- package/assets/ts/components/fileupload/README.md +13 -0
- package/assets/ts/components/fileupload/fileupload.component.ts +55 -0
- package/assets/ts/modules/data-layer.md +72 -0
- package/assets/ts/modules/data-layer.ts +37 -41
- package/assets/ts/modules/dialogs.ts +1 -1
- package/assets/ts/modules/fileupload.ts +106 -0
- package/assets/ts/modules/inputs.ts +14 -0
- package/assets/ts/tests/data-layer.spec.js +69 -0
- package/dist/components.es.js +782 -746
- package/dist/components.umd.js +40 -25
- package/package.json +1 -1
- package/src/components/FileUpload/FileUpload.vue +29 -0
- package/src/components/FileUpload/README.md +13 -0
- package/src/index.js +1 -1
- package/src/components/FileUploads/FileUploads.vue +0 -48
- package/src/components/FileUploads/README.md +0 -24
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as m, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as u, createElementBlock as m, normalizeClass as k, createElementVNode as d, toDisplayString as q, createCommentVNode as g, Fragment as T, renderList as M, renderSlot as v, withDirectives as R, mergeProps as H, vModelDynamic as U, vModelText as ct, vModelSelect as dt, createTextVNode as ut, resolveComponent as z, createVNode as $, withModifiers as mt } from "vue";
|
|
2
|
+
const A = (e, a) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [r,
|
|
5
|
-
t[r] =
|
|
4
|
+
for (const [r, i] of a)
|
|
5
|
+
t[r] = i;
|
|
6
6
|
return t;
|
|
7
7
|
}, ht = {
|
|
8
8
|
name: "Logo",
|
|
@@ -30,14 +30,14 @@ const k = (e, a) => {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, ft = ["xlink:href"], bt = ["innerHTML"];
|
|
33
|
-
function pt(e, a, t, r,
|
|
33
|
+
function pt(e, a, t, r, i, s) {
|
|
34
34
|
return u(), m("div", {
|
|
35
|
-
class:
|
|
35
|
+
class: k(s.className)
|
|
36
36
|
}, [
|
|
37
37
|
(u(), m("svg", null, [
|
|
38
|
-
d("title", null, "iam " +
|
|
38
|
+
d("title", null, "iam " + q(t.id), 1),
|
|
39
39
|
d("use", {
|
|
40
|
-
"xlink:href": t.path +
|
|
40
|
+
"xlink:href": t.path + s.src
|
|
41
41
|
}, null, 8, ft)
|
|
42
42
|
])),
|
|
43
43
|
t.desc ? (u(), m("span", {
|
|
@@ -46,80 +46,80 @@ function pt(e, a, t, r, s, i) {
|
|
|
46
46
|
}, null, 8, bt)) : g("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const yt = /* @__PURE__ */
|
|
49
|
+
const yt = /* @__PURE__ */ A(ht, [["render", pt]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v3.7.8
|
|
51
|
+
* iamKey v3.7.8
|
|
52
52
|
* Copyright 2022-2023 iamproperty
|
|
53
53
|
*/
|
|
54
54
|
const gt = function(e) {
|
|
55
55
|
return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
|
|
56
|
-
},
|
|
56
|
+
}, vt = (e, a) => String(e).padStart(a, "0"), _t = (e) => e.charAt(0).toUpperCase() + e.slice(1), F = function(e, a) {
|
|
57
57
|
if (!e.getAttribute("data-pages"))
|
|
58
58
|
return !1;
|
|
59
59
|
e.getAttribute("data-page") || e.setAttribute("data-page", 1);
|
|
60
|
-
let t = e.getAttribute("data-page"), r = e.getAttribute("data-pages"),
|
|
60
|
+
let t = e.getAttribute("data-page"), r = e.getAttribute("data-pages"), i = e.getAttribute("data-total"), s = e.getAttribute("data-show"), o = e.getAttribute("data-increment");
|
|
61
61
|
if (r <= 1)
|
|
62
62
|
return a.innerHTML = "", !1;
|
|
63
|
-
let
|
|
63
|
+
let l = "";
|
|
64
64
|
for (let n = 1; n <= r; n++)
|
|
65
|
-
n == t ?
|
|
65
|
+
n == t ? l += `<li class="page-item active" aria-current="page"><span class="page-link">${n}</span></li>` : l += `<li class="page-item"><a href="?page=${n}" class="page-link" data-page="${n}">${n}</a></li>`;
|
|
66
66
|
return a.innerHTML = `<ul class="pagination mb-0 d-none d-sm-flex">
|
|
67
67
|
${t == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) - 1}" class="page-link" data-page="${parseInt(t) - 1}">Previous</a></li>`}
|
|
68
|
-
${
|
|
68
|
+
${l}
|
|
69
69
|
${t == r ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><a href="?page=${parseInt(t) + 1}" class="page-link" data-page="${parseInt(t) + 1}">Next</a></li>`}
|
|
70
70
|
</ul>`, a.innerHTML += `<div class="d-sm-none text-center">
|
|
71
|
-
<span class="d-block pb-2">You've viewed ${
|
|
72
|
-
<a href="?show=${parseInt(
|
|
71
|
+
<span class="d-block pb-2">You've viewed ${s} of ${i} results</span>
|
|
72
|
+
<a href="?show=${parseInt(s) + parseInt(o)}" class="btn btn-primary w-100 m-0" data-show="${parseInt(s) + parseInt(o)}">Load more results</a>
|
|
73
73
|
</div>`, !0;
|
|
74
74
|
};
|
|
75
75
|
var wt = function(e, a, t, r) {
|
|
76
|
-
function s
|
|
77
|
-
return
|
|
78
|
-
o(
|
|
76
|
+
function i(s) {
|
|
77
|
+
return s instanceof t ? s : new t(function(o) {
|
|
78
|
+
o(s);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return new (t || (t = Promise))(function(
|
|
82
|
-
function
|
|
81
|
+
return new (t || (t = Promise))(function(s, o) {
|
|
82
|
+
function l(h) {
|
|
83
83
|
try {
|
|
84
|
-
|
|
84
|
+
c(r.next(h));
|
|
85
85
|
} catch (f) {
|
|
86
86
|
o(f);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function n(h) {
|
|
90
90
|
try {
|
|
91
|
-
|
|
91
|
+
c(r.throw(h));
|
|
92
92
|
} catch (f) {
|
|
93
93
|
o(f);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
h.done ?
|
|
96
|
+
function c(h) {
|
|
97
|
+
h.done ? s(h.value) : i(h.value).then(l, n);
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
c((r = r.apply(e, a || [])).next());
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
const Q = (e) => {
|
|
103
103
|
const a = Array.from(e.querySelectorAll("thead th"));
|
|
104
104
|
Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const n = a[
|
|
105
|
+
const i = Array.from(t.querySelectorAll("th, td")), s = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
|
|
106
|
+
i.forEach((o, l) => {
|
|
107
|
+
const n = a[l];
|
|
108
108
|
if (typeof n < "u") {
|
|
109
|
-
let
|
|
110
|
-
|
|
111
|
-
let h =
|
|
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 =
|
|
109
|
+
let c = document.createElement("div");
|
|
110
|
+
c.innerHTML = n.innerHTML;
|
|
111
|
+
let h = c.textContent || c.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 = G(n.getAttribute("data-format"), o.textContent.trim())), s.includes(o.textContent.trim().toLowerCase()) && o.setAttribute("data-content", o.textContent.trim().toLowerCase());
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}, At = (e) => {
|
|
117
117
|
let a = 0;
|
|
118
118
|
return Array.from(e.querySelectorAll("tbody tr")).forEach((t, r) => {
|
|
119
|
-
let
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
let o =
|
|
119
|
+
let i = window.getComputedStyle(document.querySelector("html")), s = t.querySelector(":scope > *:last-child > *:first-child");
|
|
120
|
+
if (s) {
|
|
121
|
+
s.classList.add("text-nowrap");
|
|
122
|
+
let o = s.offsetWidth / parseFloat(i.fontSize);
|
|
123
123
|
o += 1.7, a = a > o ? a : o;
|
|
124
124
|
}
|
|
125
125
|
}), a;
|
|
@@ -127,15 +127,15 @@ const Q = (e) => {
|
|
|
127
127
|
if (e.closest(".table--fullwidth") || e.querySelectorAll("thead tr th").length < 4)
|
|
128
128
|
return !1;
|
|
129
129
|
Array.from(e.querySelectorAll("tbody tr")).forEach((a, t) => {
|
|
130
|
-
let r = a.querySelector(":scope > :is(td,th):first-child"),
|
|
131
|
-
if (
|
|
132
|
-
r.innerHTML = `<span class="td__content">${
|
|
130
|
+
let r = a.querySelector(":scope > :is(td,th):first-child"), i = r.textContent;
|
|
131
|
+
if (i != "")
|
|
132
|
+
r.innerHTML = `<span class="td__content">${i}</span><button type="button" class="d-none">${i}</button>`;
|
|
133
133
|
else {
|
|
134
|
-
let
|
|
135
|
-
|
|
134
|
+
let s = a.querySelector(":scope > :is(td,th):nth-child(2)"), o = s.textContent;
|
|
135
|
+
s.innerHTML = `<span class="td__content">${o}</span><button type="button" class="d-none">${o}</button>`;
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
},
|
|
138
|
+
}, Lt = (e) => {
|
|
139
139
|
e.addEventListener("click", (a) => {
|
|
140
140
|
if (a && a.target instanceof HTMLElement && a.target.closest("tr > :is(td,th):first-child button")) {
|
|
141
141
|
let t = a.target.closest("tr > :is(td,th):first-child button"), r = t.parentNode.closest("tr");
|
|
@@ -146,94 +146,94 @@ const Q = (e) => {
|
|
|
146
146
|
let t = a.querySelector("[data-search]");
|
|
147
147
|
if (!t)
|
|
148
148
|
return !1;
|
|
149
|
-
const r = t.getAttribute("id"),
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
Array.from(e.querySelectorAll('td[data-label="' +
|
|
153
|
-
|
|
149
|
+
const r = t.getAttribute("id"), i = t.getAttribute("data-search").split(",");
|
|
150
|
+
let s = t.parentNode, o = {};
|
|
151
|
+
i.forEach((l, n) => {
|
|
152
|
+
Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((c, h) => {
|
|
153
|
+
c.querySelector(".td__content") ? o[c.querySelector(".td__content").textContent] = c.querySelector(".td__content").textContent : o[c.textContent] = c.textContent;
|
|
154
154
|
});
|
|
155
|
-
}), t.setAttribute("list", `${r}_list`), t.setAttribute("autocomplete", "off"),
|
|
156
|
-
},
|
|
157
|
-
var
|
|
158
|
-
let o = function(
|
|
155
|
+
}), t.setAttribute("list", `${r}_list`), t.setAttribute("autocomplete", "off"), s.querySelector("datalist") || (s.innerHTML += `<datalist id="${r}_list"></datalist>`), s.querySelector("datalist").innerHTML = `${Object.keys(o).map((l) => `<option value="${l}"></option>`).join("")}`;
|
|
156
|
+
}, St = (e, a, t, r, i) => {
|
|
157
|
+
var s;
|
|
158
|
+
let o = function(c = !1) {
|
|
159
159
|
if (a.hasAttribute("data-ajax")) {
|
|
160
|
-
if (!
|
|
160
|
+
if (!c) {
|
|
161
161
|
let h = a.querySelector("[data-pagination]");
|
|
162
162
|
h.value = 1, r.setAttribute("data-page", 1);
|
|
163
163
|
}
|
|
164
164
|
at(e, a, t, r);
|
|
165
165
|
} else
|
|
166
|
-
a.hasAttribute("data-submit") ? a.submit() : (
|
|
166
|
+
a.hasAttribute("data-submit") ? a.submit() : (W(e, a, r), F(r, t), j(e, a));
|
|
167
167
|
};
|
|
168
|
-
a.addEventListener("keyup", (
|
|
169
|
-
clearTimeout(
|
|
168
|
+
a.addEventListener("keyup", (c) => {
|
|
169
|
+
clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest("[data-search]") && (s = setTimeout(function() {
|
|
170
170
|
o();
|
|
171
171
|
}, 500));
|
|
172
|
-
}), a.addEventListener("change", (
|
|
173
|
-
clearTimeout(
|
|
174
|
-
}), a.addEventListener("click", (
|
|
175
|
-
clearTimeout(
|
|
176
|
-
}), a.addEventListener("submit", (
|
|
177
|
-
clearTimeout(
|
|
178
|
-
}), a.addEventListener("force", (
|
|
172
|
+
}), a.addEventListener("change", (c) => {
|
|
173
|
+
clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || J(e, a, i), o()), c && c.target instanceof HTMLElement && c.target.closest("[data-search]") && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-filter][data-no-ajax]") ? (W(e, a, r), F(r, t), j(e, a)) : (c && c.target instanceof HTMLElement && c.target.closest("[data-filter]") && c.target.closest("form .dialog__wrapper > dialog") || c && c.target instanceof HTMLElement && c.target.closest("[data-filter]") && !c.target.closest("form dialog")) && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-show]") && o(), c && c.target instanceof HTMLElement && c.target.closest("[data-mimic]") && o();
|
|
174
|
+
}), a.addEventListener("click", (c) => {
|
|
175
|
+
clearTimeout(s), c && c.target instanceof HTMLElement && c.target.closest('dialog button:not([type="button"])') && c.target.closest('dialog button:not([type="button"])').closest("dialog").close(), c && c.target instanceof HTMLElement && c.target.closest(".dialog__close") && (c.preventDefault(), c.stopPropagation()), c && c.target instanceof HTMLElement && c.target.closest("[data-clear]") && (a.reset(), a.hasAttribute("data-submit") || J(e, a, i), o());
|
|
176
|
+
}), a.addEventListener("submit", (c) => {
|
|
177
|
+
clearTimeout(s), a.hasAttribute("data-submit") || c.preventDefault(), o();
|
|
178
|
+
}), a.addEventListener("force", (c) => {
|
|
179
179
|
o();
|
|
180
|
-
}), a.addEventListener("paginate", (
|
|
180
|
+
}), a.addEventListener("paginate", (c) => {
|
|
181
181
|
o(!0);
|
|
182
182
|
});
|
|
183
|
-
let
|
|
184
|
-
Array.from(a.querySelectorAll("[data-mimic]")).forEach((
|
|
185
|
-
let f =
|
|
186
|
-
Array.from(document.querySelectorAll(`[name="${f}"]`)).forEach((b,
|
|
187
|
-
let
|
|
188
|
-
|
|
183
|
+
let l = [], n = [];
|
|
184
|
+
Array.from(a.querySelectorAll("[data-mimic]")).forEach((c, h) => {
|
|
185
|
+
let f = c.getAttribute("data-mimic");
|
|
186
|
+
Array.from(document.querySelectorAll(`[name="${f}"]`)).forEach((b, p) => {
|
|
187
|
+
let y = b.closest("form");
|
|
188
|
+
l.includes(y) || l.push(y), n.includes(f) || n.push(f);
|
|
189
189
|
});
|
|
190
|
-
}),
|
|
190
|
+
}), l.forEach((c, h) => {
|
|
191
191
|
const f = function() {
|
|
192
|
-
let b = [],
|
|
193
|
-
for (const [
|
|
194
|
-
document.querySelector(`[data-mimic="${
|
|
195
|
-
for (const
|
|
192
|
+
let b = [], p = new FormData(c);
|
|
193
|
+
for (const [y, w] of p)
|
|
194
|
+
document.querySelector(`[data-mimic="${y}"]`) && !b.includes(y) ? (b.push(y), document.querySelector(`[data-mimic="${y}"]`).value = w) : document.querySelector(`[data-mimic="${y}"]`) && (document.querySelector(`[data-mimic="${y}"]`).value += "," + w);
|
|
195
|
+
for (const y of b) {
|
|
196
196
|
const w = new Event("force");
|
|
197
197
|
a.dispatchEvent(w);
|
|
198
198
|
}
|
|
199
|
-
for (const
|
|
200
|
-
if (!
|
|
201
|
-
document.querySelector(`[data-mimic="${
|
|
199
|
+
for (const y of n)
|
|
200
|
+
if (!p.has(y) && c.querySelector(`[name="${y}"]`)) {
|
|
201
|
+
document.querySelector(`[data-mimic="${y}"]`).value = "";
|
|
202
202
|
const w = new Event("force");
|
|
203
203
|
a.dispatchEvent(w);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
c.addEventListener("force", (b) => {
|
|
207
207
|
f();
|
|
208
|
-
}),
|
|
208
|
+
}), c.addEventListener("change", (b) => {
|
|
209
209
|
f();
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
212
|
}, J = (e, a, t) => {
|
|
213
213
|
if (a.getAttribute("data-ajax"))
|
|
214
214
|
return !1;
|
|
215
|
-
let r = e.querySelector("tbody"),
|
|
215
|
+
let r = e.querySelector("tbody"), i = a.querySelector("[data-sort]"), s = i.querySelector(`option:nth-child(${i.selectedIndex + 1})`), o = s.getAttribute("data-sort"), l = s.getAttribute("data-order"), n = s.getAttribute("data-format");
|
|
216
216
|
if (!o)
|
|
217
217
|
return r.innerHTML = t.innerHTML, Q(e), !1;
|
|
218
|
-
let
|
|
219
|
-
["asc", "desc", "descending"].includes(
|
|
218
|
+
let c = [];
|
|
219
|
+
["asc", "desc", "descending"].includes(l) || (c = l.split(","));
|
|
220
220
|
let h = [];
|
|
221
|
-
Array.from(r.querySelectorAll("tr")).forEach((b,
|
|
222
|
-
let
|
|
223
|
-
b.querySelector('[data-label="' + o + '"] .td__content') && (
|
|
224
|
-
const w = { index:
|
|
221
|
+
Array.from(r.querySelectorAll("tr")).forEach((b, p) => {
|
|
222
|
+
let y = b.querySelector('td[data-label="' + o + '"], th[data-label="' + o + '"]').textContent.trim();
|
|
223
|
+
b.querySelector('[data-label="' + o + '"] .td__content') && (y = b.querySelector('[data-label="' + o + '"] .td__content').textContent.trim()), c.length && c.includes(y) && (y = c.indexOf(y)), gt(y) && (y = vt(y, 10)), n && n == "date" && (y = new Date(y));
|
|
224
|
+
const w = { index: y, row: b };
|
|
225
225
|
h.push(w);
|
|
226
|
-
}), h.sort((b,
|
|
226
|
+
}), h.sort((b, p) => b.index > p.index ? 1 : -1), (l == "descending" || l == "desc") && (h = h.reverse());
|
|
227
227
|
let f = "";
|
|
228
|
-
h.forEach((b,
|
|
228
|
+
h.forEach((b, p) => {
|
|
229
229
|
f += b.row.outerHTML;
|
|
230
230
|
}), r.innerHTML = f;
|
|
231
|
-
},
|
|
231
|
+
}, W = (e, a, t) => {
|
|
232
232
|
e.classList.remove("table--filtered");
|
|
233
|
-
let r = [],
|
|
234
|
-
if (Array.from(e.querySelectorAll("tbody tr")).forEach((n,
|
|
233
|
+
let r = [], i = [], s = 0, o = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
|
|
234
|
+
if (Array.from(e.querySelectorAll("tbody tr")).forEach((n, c) => {
|
|
235
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,
|
|
236
|
+
}), Array.from(a.querySelectorAll("[data-filter]")).forEach((n, c) => {
|
|
237
237
|
if (!(n.type == "radio" && !n.checked) && !(n.type == "checkbox" && !n.checked)) {
|
|
238
238
|
if (n.getAttribute("data-filter") == "multi")
|
|
239
239
|
for (const [h, f] of Object.entries(JSON.parse(n.value)))
|
|
@@ -245,171 +245,171 @@ const Q = (e) => {
|
|
|
245
245
|
}
|
|
246
246
|
}), a.querySelector("[data-search]")) {
|
|
247
247
|
let n = a.querySelector("[data-search]");
|
|
248
|
-
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((
|
|
249
|
-
|
|
248
|
+
a.querySelector("[data-search]").getAttribute("data-search").split(",").forEach((c, h) => {
|
|
249
|
+
i.push({ column: `${c.trim()}`, value: `${n.value}` });
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n,
|
|
252
|
+
Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, c) => {
|
|
253
253
|
n.innerHTML = "";
|
|
254
|
-
}), r.length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n,
|
|
254
|
+
}), r.length && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((n, c) => {
|
|
255
255
|
n.innerHTML += `(${r.length})`;
|
|
256
256
|
}), e.classList.add("table--filtered");
|
|
257
|
-
for (const [n,
|
|
257
|
+
for (const [n, c] of Object.entries(r))
|
|
258
258
|
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((h, f) => {
|
|
259
259
|
let b = !1;
|
|
260
|
-
|
|
260
|
+
c.forEach((p, y) => {
|
|
261
261
|
let w = h.querySelector(`[data-label="${n}"]`);
|
|
262
|
-
if (
|
|
263
|
-
|
|
264
|
-
else if (
|
|
265
|
-
let
|
|
266
|
-
|
|
267
|
-
} else if (
|
|
268
|
-
let
|
|
269
|
-
if (
|
|
270
|
-
b =
|
|
262
|
+
if (p && p == "$today")
|
|
263
|
+
p = G("date", /* @__PURE__ */ new Date());
|
|
264
|
+
else if (p && p == "$yesterday") {
|
|
265
|
+
let L = /* @__PURE__ */ new Date();
|
|
266
|
+
L.setDate(L.getDate() - 1), p = G("date", L);
|
|
267
|
+
} else if (p && (p == "$thisWeek" || p == "$lastWeek")) {
|
|
268
|
+
let L = /* @__PURE__ */ new Date(), x = new Date(L.setDate(L.getDate() - (L.getDay() - 1))), _ = new Date(L.setDate(L.getDate() - L.getDay() + 7)), S = new Date(w.textContent.toLowerCase());
|
|
269
|
+
if (L.setHours(0, 0, 0, 0), x.setHours(0, 0, 0, 0), _.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), p == "$thisWeek")
|
|
270
|
+
b = S >= x && S <= _;
|
|
271
271
|
else {
|
|
272
|
-
let E = new Date(
|
|
273
|
-
E.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), b =
|
|
272
|
+
let E = new Date(x.setDate(x.getDate() - 7)), D = new Date(_.setDate(_.getDate() - 7));
|
|
273
|
+
E.setHours(0, 0, 0, 0), D.setHours(0, 0, 0, 0), b = S >= E && S <= D;
|
|
274
274
|
}
|
|
275
|
-
} else if (
|
|
276
|
-
let
|
|
277
|
-
var I = new Date(
|
|
278
|
-
let
|
|
279
|
-
I.setHours(0, 0, 0, 0),
|
|
280
|
-
} else if (
|
|
281
|
-
let
|
|
282
|
-
var P = new Date(
|
|
283
|
-
let
|
|
284
|
-
P.setHours(0, 0, 0, 0), C.setHours(0, 0, 0, 0),
|
|
275
|
+
} else if (p && p == "$thisMonth") {
|
|
276
|
+
let L = /* @__PURE__ */ new Date(), x = L.getFullYear(), _ = L.getMonth();
|
|
277
|
+
var I = new Date(x, _, 1), N = new Date(x, _ + 1, 0);
|
|
278
|
+
let S = new Date(w.textContent.toLowerCase());
|
|
279
|
+
I.setHours(0, 0, 0, 0), N.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), b = S >= I && S <= N;
|
|
280
|
+
} else if (p && p == "$lastMonth") {
|
|
281
|
+
let L = /* @__PURE__ */ new Date(), x = L.getFullYear(), _ = L.getMonth();
|
|
282
|
+
var P = new Date(x, _ - 1, 1), C = new Date(x, _, 0);
|
|
283
|
+
let S = new Date(w.textContent.toLowerCase());
|
|
284
|
+
P.setHours(0, 0, 0, 0), C.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), b = S >= P && S <= C;
|
|
285
285
|
}
|
|
286
|
-
w && w.textContent.toLowerCase().includes(
|
|
286
|
+
w && w.textContent.toLowerCase().includes(p.toLowerCase()) && (b = !0);
|
|
287
287
|
}), b || (h.classList.add("filtered"), h.setAttribute("data-filtered-by", n));
|
|
288
288
|
});
|
|
289
|
-
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n,
|
|
290
|
-
let h = !(
|
|
291
|
-
|
|
292
|
-
let
|
|
293
|
-
|
|
289
|
+
Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((n, c) => {
|
|
290
|
+
let h = !(i.length > 0 && i[0].value.length >= 3);
|
|
291
|
+
i.forEach((f, b) => {
|
|
292
|
+
let p = n.querySelector(`[data-label="${f.column}"]`);
|
|
293
|
+
p && f.value.length >= 3 && p.textContent.toLowerCase().includes(f.value.toLowerCase()) && (h = !0);
|
|
294
294
|
}), h || n.classList.add("filtered");
|
|
295
|
-
}), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n,
|
|
296
|
-
|
|
297
|
-
}), t && (t.setAttribute("data-page", o), t.setAttribute("data-pages", Math.ceil(
|
|
295
|
+
}), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((n, c) => {
|
|
296
|
+
s++, n.classList.add("filtered--matched"), Math.ceil(s / l) == parseInt(o) && n.classList.add("filtered--show");
|
|
297
|
+
}), t && (t.setAttribute("data-page", o), t.setAttribute("data-pages", Math.ceil(s / l)), t.setAttribute("data-total", s), t.setAttribute("data-show", l));
|
|
298
298
|
}, j = (e, a, t) => {
|
|
299
|
-
Array.from(a.querySelectorAll("[data-query]")).forEach((r,
|
|
300
|
-
let
|
|
301
|
-
if (
|
|
299
|
+
Array.from(a.querySelectorAll("[data-query]")).forEach((r, i) => {
|
|
300
|
+
let s = r.getAttribute("data-query"), o;
|
|
301
|
+
if (s == "total")
|
|
302
302
|
t.hasAttribute("data-total") ? o = t.getAttribute("data-total") : o = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
|
|
303
|
-
else if (!
|
|
304
|
-
let
|
|
305
|
-
|
|
306
|
-
n += `:not([data-filtered-by="${
|
|
303
|
+
else if (!s.includes(" == ") && s.includes(" & ")) {
|
|
304
|
+
let l = s.split(" & "), n = "";
|
|
305
|
+
l.forEach((c) => {
|
|
306
|
+
n += `:not([data-filtered-by="${c}"])`;
|
|
307
307
|
}), o = Array.from(e.querySelectorAll(`tbody tr${n}`)).length;
|
|
308
|
-
} else if (!
|
|
309
|
-
o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${
|
|
310
|
-
else if (
|
|
311
|
-
let
|
|
308
|
+
} else if (!s.includes(" == "))
|
|
309
|
+
o = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;
|
|
310
|
+
else if (s.includes(" && ")) {
|
|
311
|
+
let l = s.split(" && ");
|
|
312
312
|
o = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(n) {
|
|
313
|
-
let
|
|
314
|
-
for (const [h, f] of Object.entries(
|
|
313
|
+
let c = !0;
|
|
314
|
+
for (const [h, f] of Object.entries(l)) {
|
|
315
315
|
let b = f.split(" == ");
|
|
316
|
-
(!n.querySelector(`td[data-label="${b[0]}"]`) || n.querySelector(`td[data-label="${b[0]}"]`).textContent != `${b[1]}`) && (
|
|
316
|
+
(!n.querySelector(`td[data-label="${b[0]}"]`) || n.querySelector(`td[data-label="${b[0]}"]`).textContent != `${b[1]}`) && (c = !1);
|
|
317
317
|
}
|
|
318
|
-
return
|
|
318
|
+
return c;
|
|
319
319
|
}).length;
|
|
320
320
|
} else {
|
|
321
|
-
let
|
|
322
|
-
o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${
|
|
323
|
-
return n.textContent ===
|
|
321
|
+
let l = s.split(" == ");
|
|
322
|
+
o = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(n) {
|
|
323
|
+
return n.textContent === l[1];
|
|
324
324
|
}).length;
|
|
325
325
|
}
|
|
326
326
|
r.hasAttribute("data-total") ? r.setAttribute("data-total", o) : r.innerHTML = o;
|
|
327
327
|
});
|
|
328
328
|
}, xt = function(e, a, t, r) {
|
|
329
|
-
t.addEventListener("click", (
|
|
330
|
-
if (
|
|
331
|
-
|
|
332
|
-
let
|
|
333
|
-
if (
|
|
334
|
-
const
|
|
335
|
-
|
|
329
|
+
t.addEventListener("click", (i) => {
|
|
330
|
+
if (i && i.target instanceof HTMLElement && i.target.closest("[data-page]")) {
|
|
331
|
+
i.preventDefault();
|
|
332
|
+
let s = a.querySelector("[data-pagination]"), o = i.target.closest("[data-page]").getAttribute("data-page");
|
|
333
|
+
if (s.value = o, r.setAttribute("data-page", o), a.dispatchEvent(new Event("paginate")), e.hasAttribute("data-show-history")) {
|
|
334
|
+
const c = new URL(location);
|
|
335
|
+
c.searchParams.set("page", o), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: o }, "", c);
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const l = -250, n = e.getBoundingClientRect().top + window.pageYOffset + l;
|
|
338
338
|
window.scrollTo({ top: n, behavior: "smooth" });
|
|
339
339
|
}
|
|
340
|
-
if (
|
|
341
|
-
|
|
342
|
-
let
|
|
343
|
-
|
|
340
|
+
if (i && i.target instanceof HTMLElement && i.target.closest("[data-show]")) {
|
|
341
|
+
i.preventDefault();
|
|
342
|
+
let s = a.querySelector("[data-show]"), o = i.target.closest("[data-show]").getAttribute("data-show");
|
|
343
|
+
s.value = o, r.setAttribute("data-show", o), a.dispatchEvent(new Event("submit"));
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
|
-
},
|
|
346
|
+
}, $t = (e, a) => {
|
|
347
347
|
if (!e)
|
|
348
348
|
return !1;
|
|
349
349
|
e.addEventListener("click", (t) => {
|
|
350
|
-
|
|
350
|
+
qt(a);
|
|
351
351
|
});
|
|
352
|
-
},
|
|
352
|
+
}, qt = function(e) {
|
|
353
353
|
for (var a = [], t = e.getElementsByTagName("tr"), r = 0; r < t.length; r++) {
|
|
354
|
-
for (var
|
|
355
|
-
|
|
356
|
-
a.push(
|
|
354
|
+
for (var i = t[r].querySelectorAll("td,th"), s = [], o = 0; o < i.length; o++)
|
|
355
|
+
s.push(`"${i[o].textContent}"`);
|
|
356
|
+
a.push(s.join(","));
|
|
357
357
|
}
|
|
358
358
|
a = a.join(`
|
|
359
359
|
`);
|
|
360
|
-
let
|
|
360
|
+
let l = new Blob([a], { type: "text/csv" });
|
|
361
361
|
var n = document.createElement("a");
|
|
362
362
|
n.download = "export.csv";
|
|
363
|
-
var
|
|
364
|
-
n.href =
|
|
363
|
+
var c = window.URL.createObjectURL(l);
|
|
364
|
+
n.href = c, n.style.display = "none", document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
365
365
|
}, et = function(e, a, t, r) {
|
|
366
366
|
if (Q(e), kt(e), j(e, a, r), r && r.classList.contains("table--cta")) {
|
|
367
|
-
let
|
|
368
|
-
Array.from(e.querySelectorAll("tr")).forEach((o,
|
|
367
|
+
let i = function() {
|
|
368
|
+
Array.from(e.querySelectorAll("tr")).forEach((o, l) => {
|
|
369
369
|
let n = o.offsetHeight;
|
|
370
370
|
o.style.setProperty("--row-height", `${n}px`);
|
|
371
371
|
});
|
|
372
372
|
};
|
|
373
|
-
const
|
|
374
|
-
r.style.setProperty("--cta-width", `${
|
|
373
|
+
const s = At(e);
|
|
374
|
+
r.style.setProperty("--cta-width", `${s}rem`), new ResizeObserver(i).observe(e);
|
|
375
375
|
}
|
|
376
376
|
}, at = function(e, a, t, r) {
|
|
377
377
|
return wt(this, void 0, void 0, function* () {
|
|
378
|
-
const
|
|
379
|
-
let
|
|
380
|
-
r.classList.add("table--loading"), window.controller || (window.controller = []), window.controller[
|
|
381
|
-
const { signal: h } = controller[
|
|
378
|
+
const i = (f, b, p) => b.split(/[\.\[\]\'\"]/).filter((y) => y).reduce((y, w) => y ? y[w] : p, f);
|
|
379
|
+
let s = new FormData(a), o = new URLSearchParams(s).toString(), l = e.querySelectorAll("thead tr th"), n = e.querySelector("tbody"), c = a.getAttribute("data-ajax");
|
|
380
|
+
r.classList.add("table--loading"), window.controller || (window.controller = []), window.controller[c] && window.controller[c].abort(), window.controller[c] = new AbortController();
|
|
381
|
+
const { signal: h } = controller[c];
|
|
382
382
|
try {
|
|
383
|
-
yield fetch(
|
|
384
|
-
let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data",
|
|
385
|
-
if (
|
|
386
|
-
var
|
|
387
|
-
|
|
383
|
+
yield fetch(c + "?" + 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) => {
|
|
384
|
+
let b = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", p = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", y = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", w = i(f, p, 1), I = i(f, y, 1), N = i(f, b), P = r.hasAttribute("data-empty-msg") ? r.getAttribute("data-empty-msg") : "No results found";
|
|
385
|
+
if (N ? (n.innerHTML = "", N.forEach((C, L) => {
|
|
386
|
+
var x = document.createElement("tr");
|
|
387
|
+
l.forEach((_, S) => {
|
|
388
388
|
let E = "";
|
|
389
389
|
var D = document.createElement("td");
|
|
390
|
-
if (D.setAttribute("data-label",
|
|
391
|
-
var
|
|
392
|
-
E =
|
|
393
|
-
return
|
|
390
|
+
if (D.setAttribute("data-label", _.innerText), _.getAttribute("data-output")) {
|
|
391
|
+
var O = _.getAttribute("data-output");
|
|
392
|
+
E = O.replace(new RegExp(/{(.*?)}/, "gm"), function(st) {
|
|
393
|
+
return i(C, st.replace("{", "").replace("}", ""));
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
if (
|
|
397
|
-
var
|
|
398
|
-
let
|
|
399
|
-
E = "",
|
|
400
|
-
let nt =
|
|
401
|
-
if (
|
|
402
|
-
const
|
|
403
|
-
B = nt.replace(`{${
|
|
396
|
+
if (_.hasAttribute("data-output-array")) {
|
|
397
|
+
var O = _.getAttribute("data-output");
|
|
398
|
+
let it = i(C, O.replace("{", "").replace("}", ""));
|
|
399
|
+
E = "", it.forEach((Z, oo) => {
|
|
400
|
+
let nt = _.getAttribute("data-output-array"), B = "";
|
|
401
|
+
if (_.hasAttribute("data-output-array-property") && _.hasAttribute("data-output-array-transform")) {
|
|
402
|
+
const V = i(Z, _.getAttribute("data-output-array-property")), lt = JSON.parse(_.getAttribute("data-output-array-transform"))[V];
|
|
403
|
+
B = nt.replace(`{${_.getAttribute("data-output-array-property")}}`, lt);
|
|
404
404
|
}
|
|
405
|
-
B = B.replace(new RegExp(/{(.*?)}/, "gm"), function(
|
|
406
|
-
return
|
|
405
|
+
B = B.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
|
|
406
|
+
return i(Z, V.replace("{", "").replace("}", ""));
|
|
407
407
|
}), E += B;
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
|
|
411
|
-
}), n.appendChild(
|
|
412
|
-
}), tt(e, a), r.setAttribute("data-total", parseInt(w)), r.setAttribute("data-page", parseInt(I)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), et(e, a, t, r), F(r, t), parseInt(w) == 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:
|
|
410
|
+
_.hasAttribute("data-transform") && (E = JSON.parse(_.getAttribute("data-transform"))[E], !E && _.hasAttribute("data-default") && (E = _.getAttribute("data-default"))), D.innerHTML = E, x.appendChild(D);
|
|
411
|
+
}), n.appendChild(x);
|
|
412
|
+
}), tt(e, a), r.setAttribute("data-total", parseInt(w)), r.setAttribute("data-page", parseInt(I)), r.setAttribute("data-pages", Math.ceil(r.getAttribute("data-total") / r.getAttribute("data-show"))), et(e, a, t, r), F(r, t), parseInt(w) == 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: c, formData: o })) : n.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', a.hasAttribute("data-ajax-post")) {
|
|
413
413
|
const C = new XMLHttpRequest();
|
|
414
414
|
C.open("GET", `${window.location.href}?ajax=true&${o}`), C.send();
|
|
415
415
|
}
|
|
@@ -418,14 +418,14 @@ const Q = (e) => {
|
|
|
418
418
|
console.log(f);
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
|
-
},
|
|
421
|
+
}, G = (e, a) => {
|
|
422
422
|
switch (e) {
|
|
423
423
|
case "datetime":
|
|
424
424
|
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" });
|
|
425
425
|
case "date":
|
|
426
426
|
return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
|
|
427
427
|
case "capitalise":
|
|
428
|
-
return a =
|
|
428
|
+
return a = _t(a);
|
|
429
429
|
}
|
|
430
430
|
};
|
|
431
431
|
class Et extends HTMLElement {
|
|
@@ -460,7 +460,7 @@ class Et extends HTMLElement {
|
|
|
460
460
|
const a = new URLSearchParams(window.location.search);
|
|
461
461
|
this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show")));
|
|
462
462
|
let t = this.classList.toString();
|
|
463
|
-
t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), tt(this.table, this.form), this.form.querySelector("[data-page]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`),
|
|
463
|
+
t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector(".table__pagination"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), tt(this.table, this.form), this.form.querySelector("[data-page]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), Lt(this.table), St(this.table, this.form, this.pagination, this, this.savedTableBody), xt(this.table, this.form, this.pagination, this), $t(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? at(this.table, this.form, this.pagination, this) : (et(this.table, this.form, this.pagination, this), W(this.table, this.form, this), F(this, this.pagination), j(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (r) => {
|
|
464
464
|
this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
|
|
465
465
|
});
|
|
466
466
|
}
|
|
@@ -497,31 +497,31 @@ const Tt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Mt = (e) => e.replace(
|
|
|
497
497
|
updated() {
|
|
498
498
|
}
|
|
499
499
|
}, Nt = { key: 0 }, Rt = { key: 0 }, zt = ["data-row-id"], It = ["innerHTML"];
|
|
500
|
-
function Pt(e, a, t, r,
|
|
500
|
+
function Pt(e, a, t, r, i, s) {
|
|
501
501
|
return u(), m("iam-table", null, [
|
|
502
502
|
t.fields ? (u(), m("table", Nt, [
|
|
503
503
|
d("thead", null, [
|
|
504
504
|
d("tr", null, [
|
|
505
505
|
(u(!0), m(T, null, M(t.fields, (o) => (u(), m("th", {
|
|
506
506
|
key: o.key
|
|
507
|
-
},
|
|
507
|
+
}, q(s.cellHeading(o.key)), 1))), 128))
|
|
508
508
|
])
|
|
509
509
|
]),
|
|
510
510
|
t.items ? (u(), m("tbody", Rt, [
|
|
511
|
-
(u(!0), m(T, null, M(t.items, (o,
|
|
512
|
-
key:
|
|
511
|
+
(u(!0), m(T, null, M(t.items, (o, l) => (u(), m("tr", {
|
|
512
|
+
key: l,
|
|
513
513
|
"data-row-id": o.rowid
|
|
514
514
|
}, [
|
|
515
|
-
(u(!0), m(T, null, M(Object.fromEntries(Object.entries(o).filter(([n]) => n !== "rowid")), (n,
|
|
516
|
-
key:
|
|
515
|
+
(u(!0), m(T, null, M(Object.fromEntries(Object.entries(o).filter(([n]) => n !== "rowid")), (n, c) => (u(), m("td", {
|
|
516
|
+
key: c,
|
|
517
517
|
innerHTML: n
|
|
518
518
|
}, null, 8, It))), 128))
|
|
519
519
|
], 8, zt))), 128))
|
|
520
520
|
])) : g("", !0)
|
|
521
|
-
])) :
|
|
521
|
+
])) : v(e.$slots, "default", { key: 1 })
|
|
522
522
|
]);
|
|
523
523
|
}
|
|
524
|
-
const rt = /* @__PURE__ */
|
|
524
|
+
const rt = /* @__PURE__ */ A(Dt, [["render", Pt]]), Bt = {
|
|
525
525
|
name: "Input",
|
|
526
526
|
props: {
|
|
527
527
|
value: {
|
|
@@ -715,99 +715,99 @@ const rt = /* @__PURE__ */ k(Dt, [["render", Pt]]), Bt = {
|
|
|
715
715
|
}, Gt = ["type", "name", "id", "pattern", "list"], Kt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Yt = {
|
|
716
716
|
key: 6,
|
|
717
717
|
class: "input-group"
|
|
718
|
-
}, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], Qt = ["value"], te = ["type", "name", "id"], ee = ["for", "innerHTML"], ae = ["type", "name", "id"], re = ["for", "innerHTML"], oe = ["innerHTML"],
|
|
719
|
-
function ne(e, a, t, r,
|
|
718
|
+
}, Zt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text flex-fill" }, Xt = ["type", "name", "id", "pattern"], Qt = ["value"], te = ["type", "name", "id"], ee = ["for", "innerHTML"], ae = ["type", "name", "id"], re = ["for", "innerHTML"], oe = ["innerHTML"], se = ["id"], ie = ["value"];
|
|
719
|
+
function ne(e, a, t, r, i, s) {
|
|
720
720
|
return u(), m("div", {
|
|
721
|
-
class:
|
|
721
|
+
class: k(s.wrapperClass()),
|
|
722
722
|
ref: "wrapper"
|
|
723
723
|
}, [
|
|
724
|
-
|
|
724
|
+
s.needsLabel() ? (u(), m("label", {
|
|
725
725
|
key: 0,
|
|
726
|
-
class:
|
|
726
|
+
class: k(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
727
727
|
for: t.id,
|
|
728
|
-
innerHTML:
|
|
728
|
+
innerHTML: s.displayLabel(),
|
|
729
729
|
title: t.title
|
|
730
730
|
}, null, 10, Ft)) : g("", !0),
|
|
731
731
|
t.prefix ? (u(), m("span", {
|
|
732
732
|
key: 1,
|
|
733
|
-
class:
|
|
733
|
+
class: k(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
734
734
|
innerHTML: t.prefix,
|
|
735
735
|
role: "presentation"
|
|
736
736
|
}, null, 10, jt)) : g("", !0),
|
|
737
737
|
t.suffix ? (u(), m("span", {
|
|
738
738
|
key: 2,
|
|
739
|
-
class:
|
|
739
|
+
class: k(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
740
740
|
innerHTML: t.suffix,
|
|
741
741
|
role: "presentation"
|
|
742
742
|
}, null, 10, Ot)) : g("", !0),
|
|
743
|
-
|
|
743
|
+
s.isInput() ? R((u(), m("input", H({
|
|
744
744
|
key: 3,
|
|
745
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) =>
|
|
745
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => s.inputVal = o),
|
|
746
746
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
747
747
|
type: t.type,
|
|
748
748
|
name: t.name ? t.name : t.id,
|
|
749
749
|
id: t.id,
|
|
750
|
-
pattern:
|
|
751
|
-
list:
|
|
750
|
+
pattern: s.needPattern(),
|
|
751
|
+
list: s.hasOptions()
|
|
752
752
|
}, e.$attrs, {
|
|
753
|
-
onKeyup: a[1] || (a[1] = (...o) =>
|
|
753
|
+
onKeyup: a[1] || (a[1] = (...o) => s.inputKeyup && s.inputKeyup(...o))
|
|
754
754
|
}), null, 16, Vt)), [
|
|
755
|
-
[
|
|
755
|
+
[U, s.inputVal]
|
|
756
756
|
]) : g("", !0),
|
|
757
|
-
t.type == "textarea" ?
|
|
757
|
+
t.type == "textarea" ? R((u(), m("textarea", H({
|
|
758
758
|
key: 4,
|
|
759
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) =>
|
|
759
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => s.inputVal = o),
|
|
760
760
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
761
761
|
type: t.type,
|
|
762
762
|
name: t.name ? t.name : t.id,
|
|
763
763
|
id: t.id,
|
|
764
|
-
pattern:
|
|
764
|
+
pattern: s.needPattern()
|
|
765
765
|
}, e.$attrs), null, 16, Ut)), [
|
|
766
|
-
[ct,
|
|
766
|
+
[ct, s.inputVal]
|
|
767
767
|
]) : g("", !0),
|
|
768
768
|
t.type == "range" ? (u(), m("div", Wt, [
|
|
769
|
-
|
|
770
|
-
"onUpdate:modelValue": a[3] || (a[3] = (o) =>
|
|
769
|
+
R(d("input", H({
|
|
770
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => s.inputVal = o),
|
|
771
771
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
772
772
|
type: t.type,
|
|
773
773
|
name: t.name ? t.name : t.id,
|
|
774
774
|
id: t.id,
|
|
775
|
-
pattern:
|
|
776
|
-
list:
|
|
775
|
+
pattern: s.needPattern(),
|
|
776
|
+
list: s.hasOptions()
|
|
777
777
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Gt), [
|
|
778
|
-
[
|
|
778
|
+
[U, s.inputVal]
|
|
779
779
|
]),
|
|
780
|
-
d("output", Kt,
|
|
780
|
+
d("output", Kt, q(t.value), 1)
|
|
781
781
|
])) : g("", !0),
|
|
782
782
|
t.type == "color" ? (u(), m("div", Yt, [
|
|
783
|
-
|
|
784
|
-
"onUpdate:modelValue": a[4] || (a[4] = (o) =>
|
|
783
|
+
R(d("input", H({
|
|
784
|
+
"onUpdate:modelValue": a[4] || (a[4] = (o) => s.inputVal = o),
|
|
785
785
|
class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
786
786
|
type: t.type,
|
|
787
787
|
name: t.name ? t.name : t.id,
|
|
788
788
|
id: t.id,
|
|
789
|
-
pattern:
|
|
790
|
-
list:
|
|
789
|
+
pattern: s.needPattern(),
|
|
790
|
+
list: s.hasOptions()
|
|
791
791
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
|
|
792
|
-
[
|
|
792
|
+
[U, s.inputVal]
|
|
793
793
|
]),
|
|
794
|
-
d("output", Jt,
|
|
794
|
+
d("output", Jt, q(t.value ? e.vale : "#000000"), 1)
|
|
795
795
|
])) : g("", !0),
|
|
796
|
-
t.type == "select" ?
|
|
796
|
+
t.type == "select" ? R((u(), m("select", H({
|
|
797
797
|
key: 7,
|
|
798
|
-
"onUpdate:modelValue": a[5] || (a[5] = (o) =>
|
|
798
|
+
"onUpdate:modelValue": a[5] || (a[5] = (o) => s.inputVal = o),
|
|
799
799
|
class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
800
800
|
type: t.type,
|
|
801
801
|
name: t.id,
|
|
802
802
|
id: t.id,
|
|
803
|
-
pattern:
|
|
803
|
+
pattern: s.needPattern()
|
|
804
804
|
}, e.$attrs), [
|
|
805
|
-
(u(!0), m(T, null, M(t.options, (o,
|
|
806
|
-
key:
|
|
805
|
+
(u(!0), m(T, null, M(t.options, (o, l) => (u(), m("option", {
|
|
806
|
+
key: l,
|
|
807
807
|
value: o.value
|
|
808
|
-
},
|
|
808
|
+
}, q(o.display ? o.display : o.value), 9, Qt))), 128))
|
|
809
809
|
], 16, Xt)), [
|
|
810
|
-
[dt,
|
|
810
|
+
[dt, s.inputVal]
|
|
811
811
|
]) : g("", !0),
|
|
812
812
|
t.type == "checkbox" || t.type == "radio" ? (u(), m("input", H({
|
|
813
813
|
key: 8,
|
|
@@ -818,7 +818,7 @@ function ne(e, a, t, r, s, i) {
|
|
|
818
818
|
}, e.$attrs), null, 16, te)) : g("", !0),
|
|
819
819
|
t.type == "checkbox" || t.type == "radio" ? (u(), m("label", {
|
|
820
820
|
key: 9,
|
|
821
|
-
class:
|
|
821
|
+
class: k(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
822
822
|
for: t.id,
|
|
823
823
|
innerHTML: t.label
|
|
824
824
|
}, null, 10, ee)) : g("", !0),
|
|
@@ -832,42 +832,105 @@ function ne(e, a, t, r, s, i) {
|
|
|
832
832
|
}, e.$attrs), null, 16, ae)) : g("", !0),
|
|
833
833
|
t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
|
|
834
834
|
key: 11,
|
|
835
|
-
class:
|
|
835
|
+
class: k(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
836
836
|
for: t.id,
|
|
837
837
|
innerHTML: t.label,
|
|
838
|
-
onClick: a[6] || (a[6] = (...o) =>
|
|
838
|
+
onClick: a[6] || (a[6] = (...o) => s.clickEvent && s.clickEvent(...o))
|
|
839
839
|
}, null, 10, re)) : g("", !0),
|
|
840
|
-
|
|
840
|
+
v(e.$slots, "default"),
|
|
841
841
|
t.errormsg ? (u(), m("span", {
|
|
842
842
|
key: 12,
|
|
843
843
|
class: "invalid-feedback mb-0",
|
|
844
844
|
innerHTML: t.errormsg
|
|
845
845
|
}, null, 8, oe)) : g("", !0),
|
|
846
|
-
|
|
846
|
+
s.allowDatalist() ? (u(), m("datalist", {
|
|
847
847
|
key: 13,
|
|
848
848
|
id: t.id + "-list"
|
|
849
849
|
}, [
|
|
850
|
-
(u(!0), m(T, null, M(t.options, (o,
|
|
851
|
-
key:
|
|
850
|
+
(u(!0), m(T, null, M(t.options, (o, l) => (u(), m("option", {
|
|
851
|
+
key: l,
|
|
852
852
|
value: o.value
|
|
853
|
-
},
|
|
854
|
-
], 8,
|
|
853
|
+
}, q(o.value), 9, ie))), 128))
|
|
854
|
+
], 8, se)) : g("", !0)
|
|
855
855
|
], 2);
|
|
856
856
|
}
|
|
857
|
-
const
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
857
|
+
const Y = /* @__PURE__ */ A(Bt, [["render", ne]]);
|
|
858
|
+
function le(e, a) {
|
|
859
|
+
const t = a.querySelector(".files"), r = a.querySelector(".drop-area"), i = e.querySelector("input"), s = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, o = i.cloneNode();
|
|
860
|
+
r.append(o), a.addEventListener("click", (l) => {
|
|
861
|
+
l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (i.hasAttribute("multiple") ? o : i).click());
|
|
862
|
+
}), a.addEventListener("click", (l) => {
|
|
863
|
+
if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
|
|
864
|
+
const n = new DataTransfer(), { files: c } = i, h = l.target.closest(".files button");
|
|
865
|
+
for (let b = 0; b < c.length; b++) {
|
|
866
|
+
const p = c[b];
|
|
867
|
+
p.name != h.getAttribute("data-file") && n.items.add(p);
|
|
868
|
+
}
|
|
869
|
+
i.files = n.files;
|
|
870
|
+
const f = new Event("change");
|
|
871
|
+
i.dispatchEvent(f);
|
|
872
|
+
}
|
|
873
|
+
}), o.addEventListener("change", (l) => {
|
|
874
|
+
if (i.hasAttribute("multiple")) {
|
|
875
|
+
const c = [...i.files, ...o.files];
|
|
876
|
+
let h = [];
|
|
877
|
+
const f = new DataTransfer();
|
|
878
|
+
for (let b = 0; b < c.length; b++) {
|
|
879
|
+
const p = c[b], y = p.size / 1e3;
|
|
880
|
+
!h.includes(p.name) && (s == 0 || y < s) && f.items.add(p), h.push(p.name);
|
|
881
|
+
}
|
|
882
|
+
i.files = f.files;
|
|
883
|
+
} else
|
|
884
|
+
i.files = o.files;
|
|
885
|
+
const n = new Event("change");
|
|
886
|
+
i.dispatchEvent(n);
|
|
887
|
+
}), o.addEventListener("dragenter", (l) => {
|
|
888
|
+
o.classList.add("focus");
|
|
889
|
+
}), o.addEventListener("dragleave", (l) => {
|
|
890
|
+
o.classList.remove("focus");
|
|
891
|
+
}), o.addEventListener("drop", (l) => {
|
|
892
|
+
o.classList.remove("focus");
|
|
893
|
+
}), i.addEventListener("change", (l) => {
|
|
894
|
+
t.innerHTML = "";
|
|
895
|
+
for (const n of i.files)
|
|
896
|
+
t.innerHTML += `<span class="file">${n.name} <button data-file="${n.name}">Remove</button></span>`;
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
window.dataLayer = window.dataLayer || [];
|
|
900
|
+
window.dataLayer.push({
|
|
901
|
+
event: "customElementRegistered",
|
|
902
|
+
element: "fileupload"
|
|
903
|
+
});
|
|
904
|
+
class ce extends HTMLElement {
|
|
905
|
+
constructor() {
|
|
906
|
+
super(), this.attachShadow({ mode: "open" });
|
|
907
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = `@import "${a}/css/components/fileupload.css";`, i = document.createElement("template");
|
|
908
|
+
i.innerHTML = `
|
|
909
|
+
<style>
|
|
910
|
+
@import "${t}";
|
|
911
|
+
${r}
|
|
912
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
913
|
+
</style>
|
|
914
|
+
<div class="file-upload">
|
|
915
|
+
<span class="file-upload__title">Upload file</span>
|
|
916
|
+
<p class="helper-text"></p>
|
|
917
|
+
<button class="btn btn-primary"><slot name="btn"></slot> Upload document</button>
|
|
918
|
+
<div class="drop-area"></div>
|
|
919
|
+
<hr/>
|
|
920
|
+
<slot></slot>
|
|
921
|
+
<div class="files"></div>
|
|
922
|
+
</div>
|
|
923
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
924
|
+
}
|
|
925
|
+
connectedCallback() {
|
|
926
|
+
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
927
|
+
const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), r = this.shadowRoot.querySelector(".helper-text");
|
|
928
|
+
r.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, le(this, a);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
const de = {
|
|
932
|
+
name: "FileUpload",
|
|
862
933
|
props: {
|
|
863
|
-
id: {
|
|
864
|
-
type: String,
|
|
865
|
-
required: !0
|
|
866
|
-
},
|
|
867
|
-
inputcolclass: {
|
|
868
|
-
type: String,
|
|
869
|
-
required: !1
|
|
870
|
-
},
|
|
871
934
|
maxfilesize: {
|
|
872
935
|
type: Number,
|
|
873
936
|
required: !1
|
|
@@ -876,51 +939,24 @@ const O = /* @__PURE__ */ k(Bt, [["render", ne]]), le = {
|
|
|
876
939
|
type: Number,
|
|
877
940
|
required: !1
|
|
878
941
|
}
|
|
942
|
+
},
|
|
943
|
+
mounted() {
|
|
944
|
+
this.$nextTick(function() {
|
|
945
|
+
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", ce);
|
|
946
|
+
});
|
|
879
947
|
}
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
"data-delete": ""
|
|
885
|
-
}, "Delete")
|
|
886
|
-
], -1), he = ["data-maxfiles"];
|
|
887
|
-
function fe(e, a, t, r, s, i) {
|
|
888
|
-
const o = N("Input");
|
|
889
|
-
return u(), m("div", ce, [
|
|
890
|
-
d("div", de, [
|
|
891
|
-
d("div", {
|
|
892
|
-
class: A(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
893
|
-
}, [
|
|
894
|
-
x(o, {
|
|
895
|
-
type: "file",
|
|
896
|
-
id: t.id,
|
|
897
|
-
name: `${t.id}[]`,
|
|
898
|
-
label: "Add new file",
|
|
899
|
-
labelclass: "d-none",
|
|
900
|
-
class: "form-control-inline col",
|
|
901
|
-
required: "",
|
|
902
|
-
"data-filesize": t.maxfilesize
|
|
903
|
-
}, null, 8, ["id", "name", "data-filesize"])
|
|
904
|
-
], 2),
|
|
905
|
-
d("div", ue, [
|
|
906
|
-
_(e.$slots, "default")
|
|
907
|
-
]),
|
|
908
|
-
me
|
|
909
|
-
]),
|
|
910
|
-
d("button", {
|
|
911
|
-
type: "button",
|
|
912
|
-
class: "btn btn-secondary me-0",
|
|
913
|
-
"data-add": "",
|
|
914
|
-
"data-maxfiles": t.maxfiles
|
|
915
|
-
}, "+ Add file", 8, he)
|
|
948
|
+
};
|
|
949
|
+
function ue(e, a, t, r, i, s) {
|
|
950
|
+
return u(), m("iam-fileupload", null, [
|
|
951
|
+
v(e.$slots, "default")
|
|
916
952
|
]);
|
|
917
953
|
}
|
|
918
|
-
const
|
|
954
|
+
const io = /* @__PURE__ */ A(de, [["render", ue]]);
|
|
919
955
|
/*!
|
|
920
|
-
* iamKey v3.7.8
|
|
956
|
+
* iamKey v3.7.8
|
|
921
957
|
* Copyright 2022-2023 iamproperty
|
|
922
958
|
*/
|
|
923
|
-
function
|
|
959
|
+
function me(e) {
|
|
924
960
|
let a = e.querySelectorAll("details"), t = e.querySelectorAll("summary");
|
|
925
961
|
if (a.forEach((r) => {
|
|
926
962
|
r.classList.add("accordion-item");
|
|
@@ -928,17 +964,17 @@ function be(e) {
|
|
|
928
964
|
r.classList.add("accordion-header"), r.classList.add("accordion-button"), r.classList.add("h4");
|
|
929
965
|
}), !e.classList.contains("accordion--keep-open")) {
|
|
930
966
|
const r = e.querySelectorAll(":scope > details");
|
|
931
|
-
r.forEach((
|
|
932
|
-
|
|
933
|
-
r.forEach((
|
|
934
|
-
|
|
967
|
+
r.forEach((i) => {
|
|
968
|
+
i.addEventListener("click", () => {
|
|
969
|
+
r.forEach((s) => {
|
|
970
|
+
s !== i && s.removeAttribute("open");
|
|
935
971
|
});
|
|
936
972
|
});
|
|
937
973
|
});
|
|
938
974
|
}
|
|
939
975
|
}
|
|
940
976
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "accordion" });
|
|
941
|
-
let
|
|
977
|
+
let he = class extends HTMLElement {
|
|
942
978
|
constructor() {
|
|
943
979
|
super(), this.attachShadow({ mode: "open" });
|
|
944
980
|
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
|
|
@@ -955,22 +991,22 @@ let pe = class extends HTMLElement {
|
|
|
955
991
|
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
956
992
|
}
|
|
957
993
|
connectedCallback() {
|
|
958
|
-
|
|
994
|
+
me(this);
|
|
959
995
|
}
|
|
960
996
|
};
|
|
961
|
-
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion",
|
|
962
|
-
const
|
|
997
|
+
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", he);
|
|
998
|
+
const fe = {
|
|
963
999
|
name: "Accordion",
|
|
964
1000
|
props: {},
|
|
965
1001
|
mounted() {
|
|
966
1002
|
}
|
|
967
|
-
},
|
|
968
|
-
function
|
|
969
|
-
return u(), m("iam-accordion",
|
|
970
|
-
|
|
1003
|
+
}, be = { ref: "wrapper" };
|
|
1004
|
+
function pe(e, a, t, r, i, s) {
|
|
1005
|
+
return u(), m("iam-accordion", be, [
|
|
1006
|
+
v(e.$slots, "default")
|
|
971
1007
|
], 512);
|
|
972
1008
|
}
|
|
973
|
-
const
|
|
1009
|
+
const lo = /* @__PURE__ */ A(fe, [["render", pe]]), ye = {
|
|
974
1010
|
name: "AccordionItem",
|
|
975
1011
|
props: {
|
|
976
1012
|
title: {
|
|
@@ -1005,24 +1041,24 @@ const mo = /* @__PURE__ */ k(ye, [["render", _e]]), ve = {
|
|
|
1005
1041
|
show: !this.lazy
|
|
1006
1042
|
};
|
|
1007
1043
|
}
|
|
1008
|
-
},
|
|
1009
|
-
function
|
|
1044
|
+
}, ge = ["id"], ve = ["classList"];
|
|
1045
|
+
function _e(e, a, t, r, i, s) {
|
|
1010
1046
|
return u(), m("details", {
|
|
1011
|
-
id:
|
|
1047
|
+
id: s.createID(t.title)
|
|
1012
1048
|
}, [
|
|
1013
1049
|
d("summary", {
|
|
1014
1050
|
classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
|
|
1015
1051
|
}, [
|
|
1016
|
-
ut(
|
|
1052
|
+
ut(q(t.title), 1),
|
|
1017
1053
|
t.badge ? (u(), m("span", {
|
|
1018
1054
|
key: 0,
|
|
1019
|
-
class:
|
|
1020
|
-
},
|
|
1021
|
-
], 8,
|
|
1022
|
-
|
|
1023
|
-
], 8,
|
|
1055
|
+
class: k(`badge bg-${t.badgecolour}`)
|
|
1056
|
+
}, q(t.badge), 3)) : g("", !0)
|
|
1057
|
+
], 8, ve),
|
|
1058
|
+
v(e.$slots, "default")
|
|
1059
|
+
], 8, ge);
|
|
1024
1060
|
}
|
|
1025
|
-
const
|
|
1061
|
+
const co = /* @__PURE__ */ A(ye, [["render", _e]]), we = {
|
|
1026
1062
|
name: "Header",
|
|
1027
1063
|
props: {
|
|
1028
1064
|
title: {
|
|
@@ -1039,43 +1075,43 @@ const ho = /* @__PURE__ */ k(ve, [["render", ke]]), Se = {
|
|
|
1039
1075
|
required: !1
|
|
1040
1076
|
}
|
|
1041
1077
|
}
|
|
1042
|
-
},
|
|
1043
|
-
function
|
|
1044
|
-
return u(), m("div",
|
|
1078
|
+
}, Ae = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, Se = { class: "pt-5 pb-3 px-4" }, xe = { class: "col-sm-6 col-md-5 ms-auto" }, $e = ["src"];
|
|
1079
|
+
function qe(e, a, t, r, i, s) {
|
|
1080
|
+
return u(), m("div", Ae, [
|
|
1045
1081
|
d("div", {
|
|
1046
|
-
class:
|
|
1082
|
+
class: k("bg-" + t.background + " mb-4")
|
|
1047
1083
|
}, [
|
|
1048
|
-
d("div",
|
|
1049
|
-
d("div",
|
|
1050
|
-
d("div",
|
|
1051
|
-
d("h2", null,
|
|
1052
|
-
|
|
1084
|
+
d("div", ke, [
|
|
1085
|
+
d("div", Le, [
|
|
1086
|
+
d("div", Se, [
|
|
1087
|
+
d("h2", null, q(t.title), 1),
|
|
1088
|
+
v(e.$slots, "default")
|
|
1053
1089
|
])
|
|
1054
1090
|
]),
|
|
1055
|
-
d("div",
|
|
1091
|
+
d("div", xe, [
|
|
1056
1092
|
t.image ? (u(), m("img", {
|
|
1057
1093
|
key: 0,
|
|
1058
1094
|
src: t.image,
|
|
1059
1095
|
alt: "",
|
|
1060
1096
|
class: "h-100 w-100 object-cover"
|
|
1061
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, $e)) : g("", !0)
|
|
1062
1098
|
])
|
|
1063
1099
|
])
|
|
1064
1100
|
], 2)
|
|
1065
1101
|
]);
|
|
1066
1102
|
}
|
|
1067
|
-
const
|
|
1103
|
+
const uo = /* @__PURE__ */ A(we, [["render", qe]]);
|
|
1068
1104
|
/*!
|
|
1069
|
-
* iamKey v3.7.8
|
|
1105
|
+
* iamKey v3.7.8
|
|
1070
1106
|
* Copyright 2022-2023 iamproperty
|
|
1071
1107
|
*/
|
|
1072
1108
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Card" });
|
|
1073
|
-
let
|
|
1109
|
+
let Ee = class extends HTMLElement {
|
|
1074
1110
|
constructor() {
|
|
1075
1111
|
super(), this.attachShadow({ mode: "open" }), this.querySelector('[class*="fa-"]') && this.classList.add("card--has-icon");
|
|
1076
1112
|
let a = this.classList.toString();
|
|
1077
|
-
const t = 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") : `${t}/css/core.min.css`,
|
|
1078
|
-
|
|
1113
|
+
const t = 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") : `${t}/css/core.min.css`, i = document.createElement("template");
|
|
1114
|
+
i.innerHTML = `
|
|
1079
1115
|
<style>
|
|
1080
1116
|
@import "${r}";
|
|
1081
1117
|
.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}.card--filter:is(:hover,:focus,.hover) .card__body{background:#eee}.card--filter:is(:active,.active) .card__body{background:#e0e0e0}.card--filter:is(:checked,.checked){outline:2px solid var(--colour, var(--colour-info));outline-offset:-2px}.card--filter:is(:checked,.checked) .card__body{background:#e0e0e0}.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}@media screen and (prefers-color-scheme: dark){.card--filter .card__body{background:none !important}.card--filter:is(:hover,:focus,.hover,:active,.active):not(:checked,.checked){outline:2px solid var(--colour, var(--colour-primary)) !important;outline-offset:-2px}}.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:102%;height:102%;object-fit:cover}.card.card--lg-image:has(.card__head) .card__head{padding-top:55%}.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 */
|
|
@@ -1091,7 +1127,7 @@ let He = class extends HTMLElement {
|
|
|
1091
1127
|
</div>
|
|
1092
1128
|
${this.hasAttribute("data-cta") ? `<div class="card__footer"><span class="link">${this.getAttribute("data-cta")}</span></div>` : ""}
|
|
1093
1129
|
</div>
|
|
1094
|
-
`, this.shadowRoot.appendChild(
|
|
1130
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1095
1131
|
}
|
|
1096
1132
|
connectedCallback() {
|
|
1097
1133
|
this.classList.add("loaded");
|
|
@@ -1099,10 +1135,10 @@ let He = class extends HTMLElement {
|
|
|
1099
1135
|
a.setAttribute("tabindex", "-1"), a.matches("label[for]") && (document.getElementById(a.getAttribute("for")).checked ? t.classList.add("checked") : t.classList.remove("checked")), t.addEventListener("click", (r) => {
|
|
1100
1136
|
if (a.matches("label[for]")) {
|
|
1101
1137
|
r.stopPropagation(), r.preventDefault();
|
|
1102
|
-
const
|
|
1103
|
-
Array.from(document.querySelectorAll(`[name="${
|
|
1104
|
-
document.querySelector(`[for="${
|
|
1105
|
-
}), a.click(),
|
|
1138
|
+
const i = document.getElementById(a.getAttribute("for")), s = i.getAttribute("name"), o = i.getAttribute("id");
|
|
1139
|
+
Array.from(document.querySelectorAll(`[name="${s}"]:not([id="${o}"])`)).forEach((l, n) => {
|
|
1140
|
+
document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"));
|
|
1141
|
+
}), a.click(), i.checked ? t.classList.add("checked") : t.classList.remove("checked");
|
|
1106
1142
|
}
|
|
1107
1143
|
}), this.addEventListener("inactive", (r) => {
|
|
1108
1144
|
t.classList.remove("checked");
|
|
@@ -1112,10 +1148,10 @@ let He = class extends HTMLElement {
|
|
|
1112
1148
|
case 13:
|
|
1113
1149
|
if (a.matches("label[for]")) {
|
|
1114
1150
|
r.stopPropagation(), r.preventDefault();
|
|
1115
|
-
const
|
|
1116
|
-
Array.from(document.querySelectorAll(`[name="${
|
|
1117
|
-
document.querySelector(`[for="${
|
|
1118
|
-
}), a.click(),
|
|
1151
|
+
const i = document.getElementById(a.getAttribute("for")), s = i.getAttribute("name"), o = i.getAttribute("id");
|
|
1152
|
+
Array.from(document.querySelectorAll(`[name="${s}"]:not([id="${o}"])`)).forEach((l, n) => {
|
|
1153
|
+
document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"));
|
|
1154
|
+
}), a.click(), i.checked ? t.classList.add("checked") : t.classList.remove("checked");
|
|
1119
1155
|
} else
|
|
1120
1156
|
a.click();
|
|
1121
1157
|
break;
|
|
@@ -1132,46 +1168,46 @@ let He = class extends HTMLElement {
|
|
|
1132
1168
|
break;
|
|
1133
1169
|
}
|
|
1134
1170
|
case "class": {
|
|
1135
|
-
let
|
|
1136
|
-
this.querySelector('[class*="fa-"]') && (
|
|
1171
|
+
let i = this.classList.toString();
|
|
1172
|
+
this.querySelector('[class*="fa-"]') && (i += " card--has-icon"), this.shadowRoot.querySelector(".card").setAttribute("class", `card ${i}`);
|
|
1137
1173
|
break;
|
|
1138
1174
|
}
|
|
1139
1175
|
}
|
|
1140
1176
|
}
|
|
1141
1177
|
};
|
|
1142
|
-
const
|
|
1178
|
+
const Te = {
|
|
1143
1179
|
name: "Card",
|
|
1144
1180
|
mounted() {
|
|
1145
1181
|
this.$nextTick(function() {
|
|
1146
|
-
window.customElements.get("iam-card") || window.customElements.define("iam-card",
|
|
1182
|
+
window.customElements.get("iam-card") || window.customElements.define("iam-card", Ee);
|
|
1147
1183
|
});
|
|
1148
1184
|
}
|
|
1149
1185
|
};
|
|
1150
|
-
function
|
|
1186
|
+
function Me(e, a, t, r, i, s) {
|
|
1151
1187
|
return u(), m("iam-card", null, [
|
|
1152
|
-
|
|
1188
|
+
v(e.$slots, "default")
|
|
1153
1189
|
]);
|
|
1154
1190
|
}
|
|
1155
|
-
const
|
|
1156
|
-
function
|
|
1191
|
+
const He = /* @__PURE__ */ A(Te, [["render", Me]]);
|
|
1192
|
+
function Ce(e) {
|
|
1157
1193
|
var a;
|
|
1158
1194
|
let t = e.querySelector(".carousel__inner"), r = e.querySelectorAll(".carousel__item").length;
|
|
1159
1195
|
e.getAttribute("data-cols");
|
|
1160
|
-
let
|
|
1196
|
+
let i = e.getAttribute("data-sm-cols"), s = e.getAttribute("data-md-cols");
|
|
1161
1197
|
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(o) {
|
|
1162
1198
|
clearTimeout(a), a = setTimeout(function() {
|
|
1163
|
-
let
|
|
1164
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b,
|
|
1199
|
+
let l = t.clientWidth, n = t.scrollWidth, c = t.scrollLeft, h = Math.round(c / n * r) + 1, f = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1200
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b, p) => {
|
|
1165
1201
|
b.classList.remove("active");
|
|
1166
|
-
}), e.querySelector(".control-" + h).classList.add("active"), h == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft +
|
|
1202
|
+
}), e.querySelector(".control-" + h).classList.add("active"), h == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + l > f ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
1167
1203
|
}, 100);
|
|
1168
1204
|
}, !1), e.addEventListener("click", function(o) {
|
|
1169
|
-
for (var
|
|
1170
|
-
if (
|
|
1171
|
-
o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1172
|
-
|
|
1173
|
-
}),
|
|
1174
|
-
const n = document.querySelector(
|
|
1205
|
+
for (var l = o.target; l && l != this; l = l.parentNode)
|
|
1206
|
+
if (l.matches(".carousel__controls a")) {
|
|
1207
|
+
o.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((c, h) => {
|
|
1208
|
+
c.classList.remove("active");
|
|
1209
|
+
}), l.classList.add("active");
|
|
1210
|
+
const n = document.querySelector(l.getAttribute("href"));
|
|
1175
1211
|
t.scroll({
|
|
1176
1212
|
top: 0,
|
|
1177
1213
|
left: n.offsetLeft,
|
|
@@ -1180,10 +1216,10 @@ function Re(e) {
|
|
|
1180
1216
|
break;
|
|
1181
1217
|
}
|
|
1182
1218
|
}, !1), e.addEventListener("click", function(o) {
|
|
1183
|
-
for (var
|
|
1184
|
-
if (
|
|
1219
|
+
for (var l = o.target; l && l != this; l = l.parentNode)
|
|
1220
|
+
if (l.matches(".btn-next, .btn-prev")) {
|
|
1185
1221
|
o.preventDefault();
|
|
1186
|
-
let n =
|
|
1222
|
+
let n = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1187
1223
|
t.scroll({
|
|
1188
1224
|
top: 0,
|
|
1189
1225
|
left: n,
|
|
@@ -1191,11 +1227,11 @@ function Re(e) {
|
|
|
1191
1227
|
});
|
|
1192
1228
|
break;
|
|
1193
1229
|
}
|
|
1194
|
-
}, !1), r == 1 && e.classList.add("hide-btns"),
|
|
1230
|
+
}, !1), r == 1 && e.classList.add("hide-btns"), i >= r && e.classList.add("hide-sm-btns"), s >= r && e.classList.add("hide-md-btns");
|
|
1195
1231
|
}
|
|
1196
|
-
const
|
|
1232
|
+
const De = {
|
|
1197
1233
|
components: {
|
|
1198
|
-
Card:
|
|
1234
|
+
Card: He
|
|
1199
1235
|
},
|
|
1200
1236
|
name: "Carousel",
|
|
1201
1237
|
data() {
|
|
@@ -1269,40 +1305,40 @@ const ze = {
|
|
|
1269
1305
|
},
|
|
1270
1306
|
mounted() {
|
|
1271
1307
|
this.id = this._uid, this.$nextTick(function() {
|
|
1272
|
-
|
|
1308
|
+
Ce(this.$refs.wrapper);
|
|
1273
1309
|
});
|
|
1274
1310
|
}
|
|
1275
|
-
},
|
|
1311
|
+
}, Ne = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Re = { class: "carousel__wrapper" }, ze = { class: "carousel__inner" }, Ie = ["id"], Pe = ["innerHTML", "id"], Be = ["href"], Fe = /* @__PURE__ */ d("button", {
|
|
1276
1312
|
class: "btn btn-prev",
|
|
1277
1313
|
"data-go": "0",
|
|
1278
1314
|
disabled: ""
|
|
1279
|
-
}, "Prev", -1),
|
|
1315
|
+
}, "Prev", -1), je = /* @__PURE__ */ d("button", {
|
|
1280
1316
|
class: "btn btn-next",
|
|
1281
1317
|
"data-go": "2"
|
|
1282
1318
|
}, "Next", -1);
|
|
1283
|
-
function
|
|
1284
|
-
const o =
|
|
1319
|
+
function Oe(e, a, t, r, i, s) {
|
|
1320
|
+
const o = z("Card");
|
|
1285
1321
|
return u(), m("div", {
|
|
1286
1322
|
class: "container carousel",
|
|
1287
|
-
id: "carousel" +
|
|
1323
|
+
id: "carousel" + i.id,
|
|
1288
1324
|
ref: "wrapper",
|
|
1289
1325
|
"data-cols": t.cols,
|
|
1290
1326
|
"data-sm-cols": t.smcols,
|
|
1291
1327
|
"data-md-cols": t.mdcols
|
|
1292
1328
|
}, [
|
|
1293
|
-
|
|
1294
|
-
d("div",
|
|
1295
|
-
d("div",
|
|
1329
|
+
v(e.$slots, "default"),
|
|
1330
|
+
d("div", Re, [
|
|
1331
|
+
d("div", ze, [
|
|
1296
1332
|
t.type == "card" ? (u(), m("div", {
|
|
1297
1333
|
key: 0,
|
|
1298
|
-
class:
|
|
1334
|
+
class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1299
1335
|
}, [
|
|
1300
|
-
(u(!0), m(T, null, M(t.items, (
|
|
1301
|
-
class:
|
|
1336
|
+
(u(!0), m(T, null, M(t.items, (l, n) => (u(), m("div", {
|
|
1337
|
+
class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1302
1338
|
key: n,
|
|
1303
|
-
id: "carousel" +
|
|
1339
|
+
id: "carousel" + i.id + "slide" + (n + 1)
|
|
1304
1340
|
}, [
|
|
1305
|
-
|
|
1341
|
+
$(o, H(l, {
|
|
1306
1342
|
class: t.cardclass,
|
|
1307
1343
|
type: t.cardtype,
|
|
1308
1344
|
btnyype: t.btntype,
|
|
@@ -1310,41 +1346,41 @@ function We(e, a, t, r, s, i) {
|
|
|
1310
1346
|
ctatext: t.ctatext,
|
|
1311
1347
|
hidectatext: t.hidectatext
|
|
1312
1348
|
}), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
|
|
1313
|
-
], 10,
|
|
1349
|
+
], 10, Ie))), 128))
|
|
1314
1350
|
], 2)) : g("", !0),
|
|
1315
1351
|
t.type != "card" ? (u(), m("div", {
|
|
1316
1352
|
key: 1,
|
|
1317
|
-
class:
|
|
1353
|
+
class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1318
1354
|
}, [
|
|
1319
|
-
(u(!0), m(T, null, M(t.items, (
|
|
1320
|
-
class:
|
|
1355
|
+
(u(!0), m(T, null, M(t.items, (l, n) => (u(), m("div", {
|
|
1356
|
+
class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1321
1357
|
key: n,
|
|
1322
|
-
innerHTML:
|
|
1323
|
-
id: "carousel" +
|
|
1324
|
-
}, null, 10,
|
|
1358
|
+
innerHTML: s.content(l),
|
|
1359
|
+
id: "carousel" + i.id + "slide" + (n + 1)
|
|
1360
|
+
}, null, 10, Pe))), 128))
|
|
1325
1361
|
], 2)) : g("", !0)
|
|
1326
1362
|
]),
|
|
1327
1363
|
d("div", {
|
|
1328
|
-
class:
|
|
1364
|
+
class: k(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
|
|
1329
1365
|
}, [
|
|
1330
|
-
(u(!0), m(T, null, M(t.items, (
|
|
1366
|
+
(u(!0), m(T, null, M(t.items, (l, n) => (u(), m("a", {
|
|
1331
1367
|
key: n,
|
|
1332
|
-
href: "#carousel" +
|
|
1333
|
-
class:
|
|
1334
|
-
}, "Slide " +
|
|
1368
|
+
href: "#carousel" + i.id + "slide" + (n + 1),
|
|
1369
|
+
class: k(`control-${n + 1}`)
|
|
1370
|
+
}, "Slide " + q(n + 1), 11, Be))), 128))
|
|
1335
1371
|
], 2),
|
|
1336
|
-
|
|
1337
|
-
|
|
1372
|
+
Fe,
|
|
1373
|
+
je
|
|
1338
1374
|
])
|
|
1339
|
-
], 8,
|
|
1375
|
+
], 8, Ne);
|
|
1340
1376
|
}
|
|
1341
|
-
const
|
|
1377
|
+
const ho = /* @__PURE__ */ A(De, [["render", Oe]]);
|
|
1342
1378
|
/*!
|
|
1343
|
-
* iamKey v3.7.8
|
|
1379
|
+
* iamKey v3.7.8
|
|
1344
1380
|
* Copyright 2022-2023 iamproperty
|
|
1345
1381
|
*/
|
|
1346
1382
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
|
|
1347
|
-
class
|
|
1383
|
+
class Ve extends HTMLElement {
|
|
1348
1384
|
constructor() {
|
|
1349
1385
|
super(), this.attachShadow({ mode: "open" });
|
|
1350
1386
|
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
|
|
@@ -1377,7 +1413,7 @@ class Ge extends HTMLElement {
|
|
|
1377
1413
|
this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
|
|
1378
1414
|
}
|
|
1379
1415
|
}
|
|
1380
|
-
const
|
|
1416
|
+
const Ue = {
|
|
1381
1417
|
name: "Header",
|
|
1382
1418
|
props: {
|
|
1383
1419
|
title: {
|
|
@@ -1391,53 +1427,53 @@ const Ke = {
|
|
|
1391
1427
|
},
|
|
1392
1428
|
mounted() {
|
|
1393
1429
|
this.$nextTick(function() {
|
|
1394
|
-
window.customElements.get("iam-header") || window.customElements.define("iam-header",
|
|
1430
|
+
window.customElements.get("iam-header") || window.customElements.define("iam-header", Ve);
|
|
1395
1431
|
});
|
|
1396
1432
|
}
|
|
1397
|
-
},
|
|
1398
|
-
function
|
|
1433
|
+
}, We = ["image"], Ge = ["innerHTML"];
|
|
1434
|
+
function Ke(e, a, t, r, i, s) {
|
|
1399
1435
|
return u(), m("iam-header", {
|
|
1400
1436
|
class: "bg-secondary",
|
|
1401
1437
|
image: t.image
|
|
1402
1438
|
}, [
|
|
1403
|
-
|
|
1439
|
+
v(e.$slots, "breadcrumb"),
|
|
1404
1440
|
t.title ? (u(), m("h1", {
|
|
1405
1441
|
key: 0,
|
|
1406
1442
|
innerHTML: t.title
|
|
1407
|
-
}, null, 8,
|
|
1408
|
-
|
|
1409
|
-
], 8,
|
|
1443
|
+
}, null, 8, Ge)) : g("", !0),
|
|
1444
|
+
v(e.$slots, "default")
|
|
1445
|
+
], 8, We);
|
|
1410
1446
|
}
|
|
1411
|
-
const
|
|
1412
|
-
function
|
|
1447
|
+
const fo = /* @__PURE__ */ A(Ue, [["render", Ke]]);
|
|
1448
|
+
function Ye(e) {
|
|
1413
1449
|
var a;
|
|
1414
1450
|
const t = e.querySelector(".testimonial__images"), r = t.querySelectorAll("img").length;
|
|
1415
1451
|
if (r == 1)
|
|
1416
1452
|
return !1;
|
|
1417
1453
|
e.classList.add("testimonial--multi");
|
|
1418
|
-
const
|
|
1419
|
-
const o = e.querySelector(".btn-next"),
|
|
1420
|
-
o.setAttribute("data-go",
|
|
1454
|
+
const i = function(s) {
|
|
1455
|
+
const o = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
|
|
1456
|
+
o.setAttribute("data-go", s + 1), l.setAttribute("data-go", s - 1), o.removeAttribute("disabled"), l.removeAttribute("disabled"), s == 1 ? l.setAttribute("disabled", !0) : s == r && o.setAttribute("disabled", !0);
|
|
1421
1457
|
};
|
|
1422
|
-
t.addEventListener("scroll", function(
|
|
1458
|
+
t.addEventListener("scroll", function(s) {
|
|
1423
1459
|
clearTimeout(a), a = setTimeout(function() {
|
|
1424
|
-
let o = t.scrollWidth,
|
|
1425
|
-
n == 0 &&
|
|
1460
|
+
let o = t.scrollWidth, l = t.scrollHeight, n = t.scrollLeft, c = t.scrollTop, h = Math.round(n / o * r) + 1;
|
|
1461
|
+
n == 0 && c != 0 && (h = Math.round(c / l * r) + 1), e.setAttribute("data-show", h), i(h);
|
|
1426
1462
|
}, 300);
|
|
1427
|
-
}, !1), e.addEventListener("click", function(
|
|
1428
|
-
for (var o =
|
|
1463
|
+
}, !1), e.addEventListener("click", function(s) {
|
|
1464
|
+
for (var o = s.target; o && o != this; o = o.parentNode)
|
|
1429
1465
|
if (o.matches("[data-go]")) {
|
|
1430
|
-
let
|
|
1431
|
-
h > f ?
|
|
1466
|
+
let l = parseInt(o.getAttribute("data-go")), n = 0, c = 0, h = t.scrollWidth, f = t.scrollHeight;
|
|
1467
|
+
h > f ? c = Math.floor(h * ((l - 1) / r)) : n = Math.floor(f * ((l - 1) / r)), t.scroll({
|
|
1432
1468
|
top: n,
|
|
1433
|
-
left:
|
|
1469
|
+
left: c,
|
|
1434
1470
|
behavior: "smooth"
|
|
1435
1471
|
});
|
|
1436
1472
|
break;
|
|
1437
1473
|
}
|
|
1438
1474
|
}, !1);
|
|
1439
1475
|
}
|
|
1440
|
-
const
|
|
1476
|
+
const Ze = {
|
|
1441
1477
|
name: "Testimonial",
|
|
1442
1478
|
props: {
|
|
1443
1479
|
items: {
|
|
@@ -1451,13 +1487,13 @@ const Qe = {
|
|
|
1451
1487
|
}
|
|
1452
1488
|
},
|
|
1453
1489
|
mounted() {
|
|
1454
|
-
|
|
1490
|
+
Ye(this.$refs.wrapper);
|
|
1455
1491
|
}
|
|
1456
|
-
},
|
|
1492
|
+
}, Je = {
|
|
1457
1493
|
class: "container testimonial mb-5",
|
|
1458
1494
|
"data-show": "1",
|
|
1459
1495
|
ref: "wrapper"
|
|
1460
|
-
},
|
|
1496
|
+
}, Xe = { class: "row" }, Qe = { class: "col-md-5 position-relative" }, ta = { class: "testimonial__images" }, ea = ["src"], aa = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
|
|
1461
1497
|
/* @__PURE__ */ d("button", {
|
|
1462
1498
|
"data-go": "0",
|
|
1463
1499
|
disabled: "",
|
|
@@ -1467,52 +1503,52 @@ const Qe = {
|
|
|
1467
1503
|
"data-go": "2",
|
|
1468
1504
|
class: "btn-next"
|
|
1469
1505
|
}, "Next")
|
|
1470
|
-
], -1),
|
|
1471
|
-
function
|
|
1472
|
-
return u(), m("div",
|
|
1506
|
+
], -1), ra = { class: "col-md-7" }, oa = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), sa = { class: "testimonial__content" }, ia = ["innerHTML"], na = ["innerHTML"], la = { class: "testimonial__after" }, ca = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1507
|
+
function da(e, a, t, r, i, s) {
|
|
1508
|
+
return u(), m("div", Je, [
|
|
1473
1509
|
d("div", {
|
|
1474
|
-
class:
|
|
1510
|
+
class: k("bg-" + t.background)
|
|
1475
1511
|
}, [
|
|
1476
|
-
d("div",
|
|
1477
|
-
d("div",
|
|
1478
|
-
d("div",
|
|
1479
|
-
(u(!0), m(T, null, M(t.items, (o,
|
|
1480
|
-
key:
|
|
1512
|
+
d("div", Xe, [
|
|
1513
|
+
d("div", Qe, [
|
|
1514
|
+
d("div", ta, [
|
|
1515
|
+
(u(!0), m(T, null, M(t.items, (o, l) => (u(), m("img", {
|
|
1516
|
+
key: l,
|
|
1481
1517
|
src: o.image ? o.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1482
1518
|
alt: "",
|
|
1483
|
-
class:
|
|
1484
|
-
}, null, 10,
|
|
1519
|
+
class: k("h-100 w-100 object-cover" + (o.image ? "" : " opacity-0"))
|
|
1520
|
+
}, null, 10, ea))), 128))
|
|
1485
1521
|
]),
|
|
1486
|
-
|
|
1522
|
+
aa
|
|
1487
1523
|
]),
|
|
1488
|
-
d("div",
|
|
1489
|
-
|
|
1490
|
-
d("div",
|
|
1491
|
-
(u(!0), m(T, null, M(t.items, (o,
|
|
1492
|
-
key:
|
|
1493
|
-
class:
|
|
1524
|
+
d("div", ra, [
|
|
1525
|
+
oa,
|
|
1526
|
+
d("div", sa, [
|
|
1527
|
+
(u(!0), m(T, null, M(t.items, (o, l) => (u(), m("blockquote", {
|
|
1528
|
+
key: l,
|
|
1529
|
+
class: k(o.class)
|
|
1494
1530
|
}, [
|
|
1495
1531
|
d("div", {
|
|
1496
1532
|
innerHTML: o.quote
|
|
1497
|
-
}, null, 8,
|
|
1533
|
+
}, null, 8, ia),
|
|
1498
1534
|
d("cite", {
|
|
1499
1535
|
innerHTML: o.cite
|
|
1500
|
-
}, null, 8,
|
|
1536
|
+
}, null, 8, na)
|
|
1501
1537
|
], 2))), 128))
|
|
1502
1538
|
]),
|
|
1503
|
-
d("div",
|
|
1504
|
-
|
|
1539
|
+
d("div", la, [
|
|
1540
|
+
v(e.$slots, "default")
|
|
1505
1541
|
])
|
|
1506
1542
|
])
|
|
1507
1543
|
]),
|
|
1508
|
-
|
|
1544
|
+
ca
|
|
1509
1545
|
], 2)
|
|
1510
1546
|
], 512);
|
|
1511
1547
|
}
|
|
1512
|
-
const
|
|
1513
|
-
const
|
|
1548
|
+
const bo = /* @__PURE__ */ A(Ze, [["render", da]]);
|
|
1549
|
+
const ua = {
|
|
1514
1550
|
components: {
|
|
1515
|
-
Input:
|
|
1551
|
+
Input: Y
|
|
1516
1552
|
},
|
|
1517
1553
|
name: "PropertySearchbar",
|
|
1518
1554
|
props: {
|
|
@@ -1656,46 +1692,46 @@ const fa = {
|
|
|
1656
1692
|
];
|
|
1657
1693
|
}
|
|
1658
1694
|
}
|
|
1659
|
-
},
|
|
1695
|
+
}, ma = {
|
|
1660
1696
|
class: "container",
|
|
1661
1697
|
ref: "wrapper"
|
|
1662
|
-
},
|
|
1698
|
+
}, ha = { class: "property-searchbar" }, fa = ["action", "method"], ba = { class: "col-12 col-md-3" }, pa = { class: "col-12 col-md" }, ya = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ga = {
|
|
1663
1699
|
class: "row",
|
|
1664
1700
|
"data-input-range": ""
|
|
1665
|
-
},
|
|
1701
|
+
}, va = { class: "col-12 col-md" }, _a = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), wa = {
|
|
1666
1702
|
class: "row",
|
|
1667
1703
|
"data-input-range": ""
|
|
1668
|
-
},
|
|
1704
|
+
}, Aa = { class: "col-12 col-md-2" }, ka = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1669
1705
|
/* @__PURE__ */ d("button", {
|
|
1670
1706
|
class: "btn w-100 me-0",
|
|
1671
1707
|
type: "submit",
|
|
1672
1708
|
value: "submit"
|
|
1673
1709
|
}, "Search")
|
|
1674
1710
|
], -1);
|
|
1675
|
-
function
|
|
1676
|
-
const o =
|
|
1677
|
-
return u(), m("div",
|
|
1678
|
-
|
|
1679
|
-
d("div",
|
|
1711
|
+
function La(e, a, t, r, i, s) {
|
|
1712
|
+
const o = z("Input");
|
|
1713
|
+
return u(), m("div", ma, [
|
|
1714
|
+
v(e.$slots, "default"),
|
|
1715
|
+
d("div", ha, [
|
|
1680
1716
|
d("form", {
|
|
1681
1717
|
class: "row",
|
|
1682
1718
|
action: t.formaction,
|
|
1683
1719
|
method: t.formmethod
|
|
1684
1720
|
}, [
|
|
1685
|
-
d("fieldset",
|
|
1686
|
-
|
|
1721
|
+
d("fieldset", ba, [
|
|
1722
|
+
$(o, {
|
|
1687
1723
|
inputClass: "input--locations",
|
|
1688
|
-
modelValue:
|
|
1689
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1724
|
+
modelValue: s.locationSet,
|
|
1725
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => s.locationSet = l),
|
|
1690
1726
|
label: "Location",
|
|
1691
1727
|
id: "location",
|
|
1692
|
-
options:
|
|
1728
|
+
options: s.locationsList(),
|
|
1693
1729
|
required: "",
|
|
1694
1730
|
placeholder: "i.e. Newcastle or NE1",
|
|
1695
|
-
onKeyupEvent: a[1] || (a[1] = (
|
|
1731
|
+
onKeyupEvent: a[1] || (a[1] = (l) => s.locationKeyup(...arguments)),
|
|
1696
1732
|
ref: "search"
|
|
1697
1733
|
}, null, 8, ["modelValue", "options"]),
|
|
1698
|
-
|
|
1734
|
+
$(o, {
|
|
1699
1735
|
class: "select--miles",
|
|
1700
1736
|
label: "Miles",
|
|
1701
1737
|
id: "miles",
|
|
@@ -1703,10 +1739,10 @@ function qa(e, a, t, r, s, i) {
|
|
|
1703
1739
|
options: t.distances
|
|
1704
1740
|
}, null, 8, ["options"])
|
|
1705
1741
|
]),
|
|
1706
|
-
d("fieldset",
|
|
1707
|
-
|
|
1708
|
-
d("div",
|
|
1709
|
-
|
|
1742
|
+
d("fieldset", pa, [
|
|
1743
|
+
ya,
|
|
1744
|
+
d("div", ga, [
|
|
1745
|
+
$(o, {
|
|
1710
1746
|
class: "col-6",
|
|
1711
1747
|
label: "Minimum price",
|
|
1712
1748
|
id: "price-min",
|
|
@@ -1714,7 +1750,7 @@ function qa(e, a, t, r, s, i) {
|
|
|
1714
1750
|
type: "select",
|
|
1715
1751
|
options: t.pricemin
|
|
1716
1752
|
}, null, 8, ["options"]),
|
|
1717
|
-
|
|
1753
|
+
$(o, {
|
|
1718
1754
|
class: "col-6",
|
|
1719
1755
|
label: "Maximum price",
|
|
1720
1756
|
id: "price-max",
|
|
@@ -1724,10 +1760,10 @@ function qa(e, a, t, r, s, i) {
|
|
|
1724
1760
|
}, null, 8, ["options"])
|
|
1725
1761
|
])
|
|
1726
1762
|
]),
|
|
1727
|
-
d("fieldset",
|
|
1728
|
-
|
|
1729
|
-
d("div",
|
|
1730
|
-
|
|
1763
|
+
d("fieldset", va, [
|
|
1764
|
+
_a,
|
|
1765
|
+
d("div", wa, [
|
|
1766
|
+
$(o, {
|
|
1731
1767
|
class: "col-6",
|
|
1732
1768
|
label: "Minimum beds",
|
|
1733
1769
|
id: "beds-min",
|
|
@@ -1735,7 +1771,7 @@ function qa(e, a, t, r, s, i) {
|
|
|
1735
1771
|
type: "select",
|
|
1736
1772
|
options: t.bedsmin
|
|
1737
1773
|
}, null, 8, ["options"]),
|
|
1738
|
-
|
|
1774
|
+
$(o, {
|
|
1739
1775
|
class: "col-6",
|
|
1740
1776
|
label: "Maximum beds",
|
|
1741
1777
|
id: "beds-max",
|
|
@@ -1745,21 +1781,21 @@ function qa(e, a, t, r, s, i) {
|
|
|
1745
1781
|
}, null, 8, ["options"])
|
|
1746
1782
|
])
|
|
1747
1783
|
]),
|
|
1748
|
-
d("fieldset",
|
|
1749
|
-
|
|
1784
|
+
d("fieldset", Aa, [
|
|
1785
|
+
$(o, {
|
|
1750
1786
|
label: "Property type",
|
|
1751
1787
|
id: "property-type",
|
|
1752
1788
|
type: "select",
|
|
1753
1789
|
options: t.propertytypes
|
|
1754
1790
|
}, null, 8, ["options"])
|
|
1755
1791
|
]),
|
|
1756
|
-
|
|
1757
|
-
], 8,
|
|
1792
|
+
ka
|
|
1793
|
+
], 8, fa)
|
|
1758
1794
|
]),
|
|
1759
|
-
|
|
1795
|
+
v(e.$slots, "after")
|
|
1760
1796
|
], 512);
|
|
1761
1797
|
}
|
|
1762
|
-
const
|
|
1798
|
+
const po = /* @__PURE__ */ A(ua, [["render", La]]), Sa = (e) => {
|
|
1763
1799
|
Array.from(e.querySelectorAll("details")).forEach((a, t) => {
|
|
1764
1800
|
a.addEventListener("mouseenter", function(r) {
|
|
1765
1801
|
window.matchMedia("(min-width: 62em)").matches && a.setAttribute("open", "true");
|
|
@@ -1771,9 +1807,9 @@ const _o = /* @__PURE__ */ k(fa, [["render", qa]]), $a = (e) => {
|
|
|
1771
1807
|
{ threshold: [1] }
|
|
1772
1808
|
).observe(e);
|
|
1773
1809
|
};
|
|
1774
|
-
const
|
|
1810
|
+
const xa = {
|
|
1775
1811
|
components: {
|
|
1776
|
-
Input:
|
|
1812
|
+
Input: Y,
|
|
1777
1813
|
Logo: yt
|
|
1778
1814
|
},
|
|
1779
1815
|
name: "Nav",
|
|
@@ -1844,48 +1880,48 @@ const Ea = {
|
|
|
1844
1880
|
},
|
|
1845
1881
|
mounted() {
|
|
1846
1882
|
this.$nextTick(function() {
|
|
1847
|
-
|
|
1883
|
+
Sa(this.$refs.wrapper);
|
|
1848
1884
|
});
|
|
1849
1885
|
}
|
|
1850
|
-
},
|
|
1886
|
+
}, $a = /* @__PURE__ */ d("input", {
|
|
1851
1887
|
type: "checkbox",
|
|
1852
1888
|
name: "showMenu",
|
|
1853
1889
|
id: "showMenu",
|
|
1854
1890
|
class: "d-none"
|
|
1855
|
-
}, null, -1),
|
|
1891
|
+
}, null, -1), qa = /* @__PURE__ */ d("input", {
|
|
1856
1892
|
type: "checkbox",
|
|
1857
1893
|
name: "showSearch",
|
|
1858
1894
|
id: "showSearch",
|
|
1859
1895
|
class: "d-none"
|
|
1860
|
-
}, null, -1),
|
|
1896
|
+
}, null, -1), Ea = /* @__PURE__ */ d("input", {
|
|
1861
1897
|
type: "checkbox",
|
|
1862
1898
|
name: "showAccount",
|
|
1863
1899
|
id: "showAccount",
|
|
1864
1900
|
class: "d-none"
|
|
1865
|
-
}, null, -1),
|
|
1901
|
+
}, null, -1), Ta = { class: "nav__mobile-bar" }, Ma = { class: "container" }, Ha = { class: "row" }, Ca = {
|
|
1866
1902
|
key: 0,
|
|
1867
1903
|
class: "col mw-md-fit-content nav__logo"
|
|
1868
|
-
},
|
|
1904
|
+
}, Da = {
|
|
1869
1905
|
key: 1,
|
|
1870
1906
|
class: "col mw-md-fit-content nav__logo"
|
|
1871
|
-
},
|
|
1907
|
+
}, Na = {
|
|
1872
1908
|
href: "/",
|
|
1873
1909
|
class: "text-decoration-none mb-0"
|
|
1874
|
-
},
|
|
1910
|
+
}, Ra = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1875
1911
|
/* @__PURE__ */ d("label", { for: "showMenu" }, "Menu")
|
|
1876
|
-
], -1),
|
|
1912
|
+
], -1), za = { class: "nav__inner" }, Ia = { class: "container" }, Pa = { class: "row" }, Ba = {
|
|
1877
1913
|
key: 0,
|
|
1878
1914
|
class: "col mw-md-fit-content nav__logo"
|
|
1879
|
-
},
|
|
1915
|
+
}, Fa = {
|
|
1880
1916
|
key: 1,
|
|
1881
1917
|
class: "col mw-md-fit-content nav__logo"
|
|
1882
|
-
},
|
|
1918
|
+
}, ja = {
|
|
1883
1919
|
href: "/",
|
|
1884
1920
|
class: "text-decoration-none mb-0"
|
|
1885
|
-
},
|
|
1921
|
+
}, Oa = {
|
|
1886
1922
|
key: 2,
|
|
1887
1923
|
class: "col mw-fit-content nav__search-btn flex-row align-items-center"
|
|
1888
|
-
},
|
|
1924
|
+
}, Va = /* @__PURE__ */ d("label", { for: "showSearch" }, [
|
|
1889
1925
|
/* @__PURE__ */ d("svg", {
|
|
1890
1926
|
class: "icon",
|
|
1891
1927
|
viewBox: "0 0 32 32"
|
|
@@ -1906,14 +1942,14 @@ const Ea = {
|
|
|
1906
1942
|
class: "icon__outline"
|
|
1907
1943
|
})
|
|
1908
1944
|
])
|
|
1909
|
-
], -1),
|
|
1910
|
-
|
|
1911
|
-
],
|
|
1945
|
+
], -1), Ua = [
|
|
1946
|
+
Va
|
|
1947
|
+
], Wa = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1912
1948
|
/* @__PURE__ */ d("label", { for: "showMenu" }, "Menu")
|
|
1913
|
-
], -1),
|
|
1949
|
+
], -1), Ga = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ka = {
|
|
1914
1950
|
key: 3,
|
|
1915
1951
|
class: "col nav__account-btn flex-row align-items-center"
|
|
1916
|
-
},
|
|
1952
|
+
}, Ya = /* @__PURE__ */ d("label", { for: "showAccount" }, [
|
|
1917
1953
|
/* @__PURE__ */ d("svg", {
|
|
1918
1954
|
class: "icon",
|
|
1919
1955
|
viewBox: "0 0 28 28"
|
|
@@ -1928,49 +1964,49 @@ const Ea = {
|
|
|
1928
1964
|
})
|
|
1929
1965
|
]),
|
|
1930
1966
|
/* @__PURE__ */ d("span", null, "My account")
|
|
1931
|
-
], -1),
|
|
1932
|
-
|
|
1933
|
-
],
|
|
1967
|
+
], -1), Za = [
|
|
1968
|
+
Ya
|
|
1969
|
+
], Ja = {
|
|
1934
1970
|
key: 4,
|
|
1935
1971
|
class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
|
|
1936
|
-
},
|
|
1972
|
+
}, Xa = ["href", "innerHTML"], Qa = {
|
|
1937
1973
|
key: 0,
|
|
1938
1974
|
class: "nav__menu--secondary"
|
|
1939
|
-
},
|
|
1975
|
+
}, tr = { class: "container" }, er = {
|
|
1940
1976
|
key: 1,
|
|
1941
1977
|
class: "nav__menu--search"
|
|
1942
|
-
},
|
|
1978
|
+
}, ar = { class: "bg-gradient pt-4" }, rr = { class: "container" }, or = {
|
|
1943
1979
|
key: 0,
|
|
1944
1980
|
class: "nav__menu--account"
|
|
1945
|
-
},
|
|
1981
|
+
}, sr = { class: "container" }, ir = { class: "row mb-4" }, nr = {
|
|
1946
1982
|
key: 0,
|
|
1947
1983
|
class: "col mw-md-fit-content nav__logo"
|
|
1948
|
-
},
|
|
1984
|
+
}, lr = {
|
|
1949
1985
|
key: 1,
|
|
1950
1986
|
class: "col mw-md-fit-content nav__logo"
|
|
1951
|
-
},
|
|
1987
|
+
}, cr = {
|
|
1952
1988
|
href: "/",
|
|
1953
1989
|
class: "text-decoration-none mb-0"
|
|
1954
|
-
},
|
|
1990
|
+
}, dr = /* @__PURE__ */ d("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1955
1991
|
/* @__PURE__ */ d("label", { for: "showAccount" }, "Account")
|
|
1956
|
-
], -1),
|
|
1957
|
-
function
|
|
1958
|
-
const o =
|
|
1992
|
+
], -1), ur = { class: "container" }, mr = /* @__PURE__ */ d("span", { class: "nav__bg" }, null, -1);
|
|
1993
|
+
function hr(e, a, t, r, i, s) {
|
|
1994
|
+
const o = z("Logo");
|
|
1959
1995
|
return u(), m("nav", {
|
|
1960
|
-
class:
|
|
1996
|
+
class: k(`nav${s.hasSecondarySlot ? " has-secondary" : ""}`),
|
|
1961
1997
|
ref: "wrapper"
|
|
1962
1998
|
}, [
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
d("div",
|
|
1967
|
-
d("div",
|
|
1968
|
-
d("div",
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
])) : (u(), m("div",
|
|
1972
|
-
d("a",
|
|
1973
|
-
|
|
1999
|
+
$a,
|
|
2000
|
+
qa,
|
|
2001
|
+
Ea,
|
|
2002
|
+
d("div", Ta, [
|
|
2003
|
+
d("div", Ma, [
|
|
2004
|
+
d("div", Ha, [
|
|
2005
|
+
s.hasLogoSlot ? (u(), m("div", Ca, [
|
|
2006
|
+
v(e.$slots, "logo")
|
|
2007
|
+
])) : (u(), m("div", Da, [
|
|
2008
|
+
d("a", Na, [
|
|
2009
|
+
$(o, {
|
|
1974
2010
|
id: t.logo,
|
|
1975
2011
|
path: t.logopath,
|
|
1976
2012
|
desc: t.logotext,
|
|
@@ -1978,18 +2014,18 @@ function pr(e, a, t, r, s, i) {
|
|
|
1978
2014
|
}, null, 8, ["id", "path", "desc"])
|
|
1979
2015
|
])
|
|
1980
2016
|
])),
|
|
1981
|
-
|
|
2017
|
+
Ra
|
|
1982
2018
|
])
|
|
1983
2019
|
])
|
|
1984
2020
|
]),
|
|
1985
|
-
d("div",
|
|
1986
|
-
d("div",
|
|
1987
|
-
d("div",
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
])) : (u(), m("div",
|
|
1991
|
-
d("a",
|
|
1992
|
-
|
|
2021
|
+
d("div", za, [
|
|
2022
|
+
d("div", Ia, [
|
|
2023
|
+
d("div", Pa, [
|
|
2024
|
+
s.hasLogoSlot ? (u(), m("div", Ba, [
|
|
2025
|
+
v(e.$slots, "logo")
|
|
2026
|
+
])) : (u(), m("div", Fa, [
|
|
2027
|
+
d("a", ja, [
|
|
2028
|
+
$(o, {
|
|
1993
2029
|
id: t.logo,
|
|
1994
2030
|
path: t.logopath,
|
|
1995
2031
|
desc: t.logotext,
|
|
@@ -1997,42 +2033,42 @@ function pr(e, a, t, r, s, i) {
|
|
|
1997
2033
|
}, null, 8, ["id", "path", "desc"])
|
|
1998
2034
|
])
|
|
1999
2035
|
])),
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
d("div",
|
|
2003
|
-
|
|
2036
|
+
s.hasSearchSlot ? (u(), m("div", Oa, Ua)) : g("", !0),
|
|
2037
|
+
Wa,
|
|
2038
|
+
d("div", Ga, [
|
|
2039
|
+
v(e.$slots, "default")
|
|
2004
2040
|
]),
|
|
2005
|
-
|
|
2006
|
-
t.btnlink ? (u(), m("div",
|
|
2041
|
+
s.hasAccountSlot ? (u(), m("div", Ka, Za)) : g("", !0),
|
|
2042
|
+
t.btnlink ? (u(), m("div", Ja, [
|
|
2007
2043
|
d("a", {
|
|
2008
2044
|
href: t.btnlink,
|
|
2009
2045
|
class: "btn me-0",
|
|
2010
2046
|
innerHTML: t.btntext
|
|
2011
|
-
}, null, 8,
|
|
2047
|
+
}, null, 8, Xa)
|
|
2012
2048
|
])) : g("", !0)
|
|
2013
2049
|
])
|
|
2014
2050
|
]),
|
|
2015
|
-
|
|
2016
|
-
d("div",
|
|
2017
|
-
|
|
2051
|
+
s.hasSecondarySlot ? (u(), m("div", Qa, [
|
|
2052
|
+
d("div", tr, [
|
|
2053
|
+
v(e.$slots, "secondary")
|
|
2018
2054
|
])
|
|
2019
2055
|
])) : g("", !0),
|
|
2020
|
-
|
|
2021
|
-
d("div",
|
|
2022
|
-
d("div",
|
|
2023
|
-
|
|
2056
|
+
s.hasSearchSlot ? (u(), m("div", er, [
|
|
2057
|
+
d("div", ar, [
|
|
2058
|
+
d("div", rr, [
|
|
2059
|
+
v(e.$slots, "search")
|
|
2024
2060
|
])
|
|
2025
2061
|
])
|
|
2026
2062
|
])) : g("", !0)
|
|
2027
2063
|
]),
|
|
2028
|
-
|
|
2029
|
-
d("div",
|
|
2030
|
-
d("div",
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
])) : (u(), m("div",
|
|
2034
|
-
d("a",
|
|
2035
|
-
|
|
2064
|
+
s.hasAccountSlot ? (u(), m("div", or, [
|
|
2065
|
+
d("div", sr, [
|
|
2066
|
+
d("div", ir, [
|
|
2067
|
+
s.hasLogoSlot ? (u(), m("div", nr, [
|
|
2068
|
+
v(e.$slots, "logo")
|
|
2069
|
+
])) : (u(), m("div", lr, [
|
|
2070
|
+
d("a", cr, [
|
|
2071
|
+
$(o, {
|
|
2036
2072
|
id: t.logo,
|
|
2037
2073
|
path: t.logopath,
|
|
2038
2074
|
desc: t.logotext,
|
|
@@ -2040,18 +2076,18 @@ function pr(e, a, t, r, s, i) {
|
|
|
2040
2076
|
}, null, 8, ["id", "path", "desc"])
|
|
2041
2077
|
])
|
|
2042
2078
|
])),
|
|
2043
|
-
|
|
2079
|
+
dr
|
|
2044
2080
|
])
|
|
2045
2081
|
]),
|
|
2046
|
-
d("div",
|
|
2047
|
-
|
|
2082
|
+
d("div", ur, [
|
|
2083
|
+
v(e.$slots, "account")
|
|
2048
2084
|
])
|
|
2049
2085
|
])) : g("", !0),
|
|
2050
|
-
|
|
2086
|
+
mr
|
|
2051
2087
|
], 2);
|
|
2052
2088
|
}
|
|
2053
|
-
const
|
|
2054
|
-
const
|
|
2089
|
+
const yo = /* @__PURE__ */ A(xa, [["render", hr]]);
|
|
2090
|
+
const fr = {
|
|
2055
2091
|
name: "Stepper",
|
|
2056
2092
|
props: {
|
|
2057
2093
|
label: {
|
|
@@ -2064,25 +2100,25 @@ const yr = {
|
|
|
2064
2100
|
default: "Complete"
|
|
2065
2101
|
}
|
|
2066
2102
|
}
|
|
2067
|
-
},
|
|
2103
|
+
}, br = { class: "container" }, pr = ["aria-label"], yr = {
|
|
2068
2104
|
key: 0,
|
|
2069
2105
|
class: "h6 stepper__start"
|
|
2070
|
-
},
|
|
2071
|
-
function
|
|
2072
|
-
return u(), m("div",
|
|
2106
|
+
}, gr = { class: "list-unstyled" }, vr = { class: "h6 stepper__end" };
|
|
2107
|
+
function _r(e, a, t, r, i, s) {
|
|
2108
|
+
return u(), m("div", br, [
|
|
2073
2109
|
d("nav", {
|
|
2074
2110
|
class: "stepper",
|
|
2075
2111
|
"aria-label": t.label ? t.label : "Progress"
|
|
2076
2112
|
}, [
|
|
2077
|
-
t.label ? (u(), m("span",
|
|
2078
|
-
d("ol",
|
|
2079
|
-
|
|
2113
|
+
t.label ? (u(), m("span", yr, q(t.label), 1)) : g("", !0),
|
|
2114
|
+
d("ol", gr, [
|
|
2115
|
+
v(e.$slots, "default")
|
|
2080
2116
|
]),
|
|
2081
|
-
d("span",
|
|
2082
|
-
], 8,
|
|
2117
|
+
d("span", vr, q(t.endlabel), 1)
|
|
2118
|
+
], 8, pr)
|
|
2083
2119
|
]);
|
|
2084
2120
|
}
|
|
2085
|
-
const
|
|
2121
|
+
const go = /* @__PURE__ */ A(fr, [["render", _r]]), wr = {
|
|
2086
2122
|
name: "Stepper",
|
|
2087
2123
|
props: {
|
|
2088
2124
|
url: {
|
|
@@ -2098,68 +2134,68 @@ const wo = /* @__PURE__ */ k(yr, [["render", kr]]), Sr = {
|
|
|
2098
2134
|
required: !1
|
|
2099
2135
|
}
|
|
2100
2136
|
}
|
|
2101
|
-
},
|
|
2137
|
+
}, Ar = ["href", "aria-current"], kr = {
|
|
2102
2138
|
key: 0,
|
|
2103
2139
|
class: "visually-hidden"
|
|
2104
2140
|
};
|
|
2105
|
-
function
|
|
2141
|
+
function Lr(e, a, t, r, i, s) {
|
|
2106
2142
|
return u(), m("li", null, [
|
|
2107
2143
|
d("a", {
|
|
2108
2144
|
href: t.url,
|
|
2109
|
-
class:
|
|
2145
|
+
class: k(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2110
2146
|
"aria-current": typeof t.current < "u"
|
|
2111
2147
|
}, [
|
|
2112
2148
|
d("span", null, [
|
|
2113
|
-
|
|
2149
|
+
v(e.$slots, "default")
|
|
2114
2150
|
]),
|
|
2115
|
-
t.status ? (u(), m("em",
|
|
2116
|
-
], 10,
|
|
2151
|
+
t.status ? (u(), m("em", kr, " - status: " + q(t.status), 1)) : g("", !0)
|
|
2152
|
+
], 10, Ar)
|
|
2117
2153
|
]);
|
|
2118
2154
|
}
|
|
2119
|
-
const
|
|
2155
|
+
const vo = /* @__PURE__ */ A(wr, [["render", Lr]]);
|
|
2120
2156
|
/*!
|
|
2121
|
-
* iamKey v3.7.8
|
|
2157
|
+
* iamKey v3.7.8
|
|
2122
2158
|
* Copyright 2022-2023 iamproperty
|
|
2123
2159
|
*/
|
|
2124
|
-
const
|
|
2160
|
+
const Sr = function(e) {
|
|
2125
2161
|
const a = e.querySelectorAll(":scope > details");
|
|
2126
2162
|
e.querySelectorAll(":scope > details > summary");
|
|
2127
2163
|
let t = e.querySelector(":scope > .tabs__links");
|
|
2128
|
-
e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t || (t = document.createElement("div"), t.classList.add("tabs__links"), e.prepend(t)), a.forEach((r,
|
|
2129
|
-
let
|
|
2130
|
-
|
|
2164
|
+
e.shadowRoot && e.shadowRoot.querySelector(".tabs__links") && (t = e.shadowRoot.querySelector(".tabs__links")), t || (t = document.createElement("div"), t.classList.add("tabs__links"), e.prepend(t)), a.forEach((r, i) => {
|
|
2165
|
+
let s = r.querySelector(":scope > summary");
|
|
2166
|
+
s.classList.add("visually-hidden");
|
|
2131
2167
|
let o = document.createElement("button");
|
|
2132
|
-
r.hasAttribute("id") && (o = document.createElement("a"), o.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && o.setAttribute("aria-pressed", !0), o.innerHTML = `${
|
|
2168
|
+
r.hasAttribute("id") && (o = document.createElement("a"), o.setAttribute("href", `#${r.getAttribute("id")}`)), r.hasAttribute("open") && o.setAttribute("aria-pressed", !0), o.innerHTML = `${s.innerText}`, o.classList.add("link"), o.setAttribute("data-index", i), o.setAttribute("tabindex", "-1"), t.appendChild(o);
|
|
2133
2169
|
});
|
|
2134
|
-
},
|
|
2170
|
+
}, xr = function(e) {
|
|
2135
2171
|
let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), r = e.querySelectorAll(":scope .tabs__links > .link");
|
|
2136
|
-
e.shadowRoot && (r = e.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
let
|
|
2140
|
-
o.setAttribute("aria-pressed",
|
|
2141
|
-
}), a.forEach((o,
|
|
2142
|
-
let n =
|
|
2172
|
+
e.shadowRoot && (r = e.shadowRoot.querySelectorAll(".tabs__links > .link")), r.forEach((i) => {
|
|
2173
|
+
i.addEventListener("click", (s) => {
|
|
2174
|
+
s.preventDefault(), r.forEach((o) => {
|
|
2175
|
+
let l = o == i;
|
|
2176
|
+
o.setAttribute("aria-pressed", l);
|
|
2177
|
+
}), a.forEach((o, l) => {
|
|
2178
|
+
let n = i.getAttribute("data-index") == l;
|
|
2143
2179
|
n ? o.setAttribute("open", n) : o.removeAttribute("open");
|
|
2144
|
-
}),
|
|
2180
|
+
}), i.hasAttribute("href") && history.pushState(void 0, void 0, i.getAttribute("href")), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "openTab", tabTitle: i.textContent });
|
|
2145
2181
|
});
|
|
2146
|
-
}), t.forEach((
|
|
2147
|
-
|
|
2148
|
-
r.forEach((
|
|
2149
|
-
|
|
2150
|
-
}), r[
|
|
2151
|
-
}),
|
|
2152
|
-
o.preventDefault(), r[
|
|
2182
|
+
}), t.forEach((i, s) => {
|
|
2183
|
+
i.addEventListener("focus", (o) => {
|
|
2184
|
+
r.forEach((l) => {
|
|
2185
|
+
l.classList.remove("focus");
|
|
2186
|
+
}), r[s].classList.add("focus");
|
|
2187
|
+
}), i.addEventListener("click", (o) => {
|
|
2188
|
+
o.preventDefault(), r[s].click();
|
|
2153
2189
|
});
|
|
2154
2190
|
});
|
|
2155
|
-
},
|
|
2191
|
+
}, $r = function(e) {
|
|
2156
2192
|
let a = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
|
|
2157
2193
|
e.shadowRoot && (t = e.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), location.hash && e.querySelector(`.tabs__links [href="${location.hash}"]`) ? (e.querySelector(`[href="${location.hash}"]`).setAttribute("open", !0), e.querySelector(`details[id="${location.hash.replace("#", "")}"]`).setAttribute("open", !0)) : e.querySelector("details[open]") || (a[0].setAttribute("open", !0), t[0].setAttribute("aria-pressed", !0));
|
|
2158
|
-
},
|
|
2159
|
-
|
|
2194
|
+
}, qr = function(e) {
|
|
2195
|
+
Sr(e), xr(e), $r(e);
|
|
2160
2196
|
};
|
|
2161
2197
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
|
|
2162
|
-
class
|
|
2198
|
+
class Er extends HTMLElement {
|
|
2163
2199
|
constructor() {
|
|
2164
2200
|
super(), this.attachShadow({ mode: "open" });
|
|
2165
2201
|
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
|
|
@@ -2181,19 +2217,19 @@ class Hr extends HTMLElement {
|
|
|
2181
2217
|
}
|
|
2182
2218
|
connectedCallback() {
|
|
2183
2219
|
let a = this.classList.toString().replace("container", "");
|
|
2184
|
-
this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`),
|
|
2220
|
+
this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), qr(this);
|
|
2185
2221
|
}
|
|
2186
2222
|
}
|
|
2187
|
-
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs",
|
|
2188
|
-
const
|
|
2223
|
+
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", Er);
|
|
2224
|
+
const Tr = {
|
|
2189
2225
|
name: "Tabs"
|
|
2190
|
-
},
|
|
2191
|
-
function
|
|
2192
|
-
return u(), m("iam-tabs",
|
|
2193
|
-
|
|
2226
|
+
}, Mr = { ref: "wrapper" };
|
|
2227
|
+
function Hr(e, a, t, r, i, s) {
|
|
2228
|
+
return u(), m("iam-tabs", Mr, [
|
|
2229
|
+
v(e.$slots, "default")
|
|
2194
2230
|
], 512);
|
|
2195
2231
|
}
|
|
2196
|
-
const
|
|
2232
|
+
const _o = /* @__PURE__ */ A(Tr, [["render", Hr]]), Cr = {
|
|
2197
2233
|
name: "Tab",
|
|
2198
2234
|
props: {
|
|
2199
2235
|
title: {
|
|
@@ -2215,20 +2251,20 @@ const ko = /* @__PURE__ */ k(Cr, [["render", Nr]]), Rr = {
|
|
|
2215
2251
|
console.log(e);
|
|
2216
2252
|
}
|
|
2217
2253
|
}
|
|
2218
|
-
},
|
|
2219
|
-
function
|
|
2220
|
-
return u(), m("details",
|
|
2221
|
-
d("summary", { innerHTML: t.title }, null, 8,
|
|
2222
|
-
|
|
2254
|
+
}, Dr = { class: "tab" }, Nr = ["innerHTML"];
|
|
2255
|
+
function Rr(e, a, t, r, i, s) {
|
|
2256
|
+
return u(), m("details", Dr, [
|
|
2257
|
+
d("summary", { innerHTML: t.title }, null, 8, Nr),
|
|
2258
|
+
v(e.$slots, "default")
|
|
2223
2259
|
]);
|
|
2224
2260
|
}
|
|
2225
|
-
const
|
|
2261
|
+
const wo = /* @__PURE__ */ A(Cr, [["render", Rr]]);
|
|
2226
2262
|
let ot = rt.props;
|
|
2227
2263
|
ot.fields.required = !1;
|
|
2228
|
-
const
|
|
2264
|
+
const zr = {
|
|
2229
2265
|
components: {
|
|
2230
2266
|
Table: rt,
|
|
2231
|
-
Input:
|
|
2267
|
+
Input: Y
|
|
2232
2268
|
},
|
|
2233
2269
|
data() {
|
|
2234
2270
|
return {
|
|
@@ -2242,8 +2278,8 @@ const Br = {
|
|
|
2242
2278
|
const a = new FormData(e.target);
|
|
2243
2279
|
let t = /* @__PURE__ */ new Date();
|
|
2244
2280
|
const r = t.getFullYear();
|
|
2245
|
-
let
|
|
2246
|
-
|
|
2281
|
+
let i = t.getMonth() + 1, s = t.getDate();
|
|
2282
|
+
s < 10 && (s = "0" + s), i < 10 && (i = "0" + i), t = s + "/" + i + "/" + r, this.itemsData.unshift({
|
|
2247
2283
|
date_added: t,
|
|
2248
2284
|
user: a.get("user"),
|
|
2249
2285
|
note: a.get("addNote")
|
|
@@ -2271,88 +2307,88 @@ const Br = {
|
|
|
2271
2307
|
required: !1
|
|
2272
2308
|
}
|
|
2273
2309
|
}
|
|
2274
|
-
},
|
|
2275
|
-
function
|
|
2276
|
-
const o =
|
|
2277
|
-
return u(), m("div",
|
|
2310
|
+
}, Ir = { class: "container note-feed mb-2" }, Pr = ["innerHTML"], Br = ["action", "method"], Fr = ["value"], jr = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2311
|
+
function Or(e, a, t, r, i, s) {
|
|
2312
|
+
const o = z("Table"), l = z("Input");
|
|
2313
|
+
return u(), m("div", Ir, [
|
|
2278
2314
|
t.title ? (u(), m("span", {
|
|
2279
2315
|
key: 0,
|
|
2280
2316
|
class: "h3",
|
|
2281
2317
|
innerHTML: t.title
|
|
2282
|
-
}, null, 8,
|
|
2283
|
-
|
|
2318
|
+
}, null, 8, Pr)) : g("", !0),
|
|
2319
|
+
$(o, H({
|
|
2284
2320
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2285
|
-
items:
|
|
2321
|
+
items: i.itemsData
|
|
2286
2322
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2287
2323
|
d("form", {
|
|
2288
2324
|
action: t.action,
|
|
2289
2325
|
method: t.method,
|
|
2290
|
-
onSubmit: a[0] || (a[0] = mt((n) =>
|
|
2326
|
+
onSubmit: a[0] || (a[0] = mt((n) => s.submitForm(...arguments), ["prevent"]))
|
|
2291
2327
|
}, [
|
|
2292
2328
|
d("input", {
|
|
2293
2329
|
type: "hidden",
|
|
2294
2330
|
value: t.user,
|
|
2295
2331
|
name: "user"
|
|
2296
|
-
}, null, 8,
|
|
2297
|
-
|
|
2332
|
+
}, null, 8, Fr),
|
|
2333
|
+
$(l, {
|
|
2298
2334
|
id: "addNote",
|
|
2299
2335
|
type: "textarea",
|
|
2300
2336
|
label: "Add note",
|
|
2301
2337
|
required: "",
|
|
2302
2338
|
class: "mw-100"
|
|
2303
2339
|
}),
|
|
2304
|
-
|
|
2305
|
-
], 40,
|
|
2340
|
+
jr
|
|
2341
|
+
], 40, Br)
|
|
2306
2342
|
]);
|
|
2307
2343
|
}
|
|
2308
|
-
const
|
|
2344
|
+
const Ao = /* @__PURE__ */ A(zr, [["render", Or]]);
|
|
2309
2345
|
/*!
|
|
2310
|
-
* iamKey v3.7.8
|
|
2346
|
+
* iamKey v3.7.8
|
|
2311
2347
|
* Copyright 2022-2023 iamproperty
|
|
2312
2348
|
*/
|
|
2313
|
-
function
|
|
2314
|
-
function t(r,
|
|
2315
|
-
let
|
|
2316
|
-
o.includes("[]") && (o = o.replace("[]", `[${
|
|
2317
|
-
let
|
|
2318
|
-
|
|
2319
|
-
let n =
|
|
2320
|
-
if (
|
|
2321
|
-
let
|
|
2322
|
-
if (o = "",
|
|
2323
|
-
let
|
|
2324
|
-
if (o += `${b != 0 ? "," : ""}${
|
|
2325
|
-
let
|
|
2326
|
-
|
|
2349
|
+
function Vr(e, a) {
|
|
2350
|
+
function t(r, i) {
|
|
2351
|
+
let s = !1, o = i.getAttribute("name");
|
|
2352
|
+
o.includes("[]") && (o = o.replace("[]", `[${i.value}]`));
|
|
2353
|
+
let l = r.querySelector(`[data-name="${o}"]`);
|
|
2354
|
+
l && i.getAttribute("type") == "checkbox" && (s = !0);
|
|
2355
|
+
let n = i.getAttribute("data-filter-text");
|
|
2356
|
+
if (l || (l = document.createElement("button"), r.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", o), l.innerHTML = n.replace("$value", i.value), (!i.value || s) && l.remove(), i.parentNode.closest("[data-filter-text]")) {
|
|
2357
|
+
let c = i.parentNode.closest("[data-filter-text]"), h = !0;
|
|
2358
|
+
if (o = "", c.querySelectorAll("input").forEach((f, b) => {
|
|
2359
|
+
let p = f.getAttribute("name");
|
|
2360
|
+
if (o += `${b != 0 ? "," : ""}${p}`, r.querySelector(`[data-name="${p}"]`) && r.querySelector(`[data-name="${p}"]`).remove(), f.value) {
|
|
2361
|
+
let y = document.createElement("button");
|
|
2362
|
+
y.setAttribute("type", "button"), y.classList.add("filter"), y.setAttribute("data-name", p), y.innerHTML = n.replace("$value", f.value), r.appendChild(y);
|
|
2327
2363
|
} else
|
|
2328
2364
|
h = !1;
|
|
2329
2365
|
}), r.querySelector(`[data-name="${o}"]`) && r.querySelector(`[data-name="${o}"]`).remove(), h) {
|
|
2330
|
-
let f =
|
|
2331
|
-
|
|
2332
|
-
let w =
|
|
2333
|
-
r.querySelector(`[data-name="${w}"]`) && r.querySelector(`[data-name="${w}"]`).remove(), f = f.replace(`$${
|
|
2366
|
+
let f = c.getAttribute("data-filter-text");
|
|
2367
|
+
c.querySelectorAll("input").forEach((p, y) => {
|
|
2368
|
+
let w = p.getAttribute("name");
|
|
2369
|
+
r.querySelector(`[data-name="${w}"]`) && r.querySelector(`[data-name="${w}"]`).remove(), f = f.replace(`$${y + 1}`, p.value);
|
|
2334
2370
|
});
|
|
2335
2371
|
let b = document.createElement("button");
|
|
2336
2372
|
b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", o), b.innerHTML = f, r.appendChild(b);
|
|
2337
2373
|
}
|
|
2338
2374
|
}
|
|
2339
2375
|
}
|
|
2340
|
-
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((r,
|
|
2376
|
+
Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((r, i) => {
|
|
2341
2377
|
t(a, r);
|
|
2342
2378
|
}), e.addEventListener("change", function(r) {
|
|
2343
2379
|
if (r && r.target instanceof HTMLElement && r.target.closest("input[data-filter-text]")) {
|
|
2344
|
-
let
|
|
2345
|
-
t(a,
|
|
2380
|
+
let i = r.target.closest("input[data-filter-text]");
|
|
2381
|
+
t(a, i);
|
|
2346
2382
|
}
|
|
2347
2383
|
}, !1), a.addEventListener("click", function(r) {
|
|
2348
2384
|
if (r && r.target instanceof HTMLElement && r.target.closest(".filter")) {
|
|
2349
|
-
let o = r.target.closest(".filter"),
|
|
2350
|
-
for (var
|
|
2351
|
-
let n =
|
|
2352
|
-
n.match(/\[(.*)\]/) && (n.replace(/\[(.*)\]/, "[]"),
|
|
2353
|
-
let h = e.querySelectorAll(
|
|
2354
|
-
for (var
|
|
2355
|
-
let f = h[
|
|
2385
|
+
let o = r.target.closest(".filter"), l = o.getAttribute("data-name").split(",");
|
|
2386
|
+
for (var i = 0; i < l.length; i++) {
|
|
2387
|
+
let n = l[i], c = `[name="${n}"]`;
|
|
2388
|
+
n.match(/\[(.*)\]/) && (n.replace(/\[(.*)\]/, "[]"), c = `[value="${n.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
2389
|
+
let h = e.querySelectorAll(c);
|
|
2390
|
+
for (var s = 0; s < h.length; s++) {
|
|
2391
|
+
let f = h[s];
|
|
2356
2392
|
if (f.getAttribute("type") != "radio" && f.getAttribute("type") != "checkbox")
|
|
2357
2393
|
f.value = "";
|
|
2358
2394
|
else {
|
|
@@ -2367,13 +2403,13 @@ function Gr(e, a) {
|
|
|
2367
2403
|
}, !1);
|
|
2368
2404
|
}
|
|
2369
2405
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
|
|
2370
|
-
class
|
|
2406
|
+
class Ur extends HTMLElement {
|
|
2371
2407
|
constructor() {
|
|
2372
2408
|
super(), this.attachShadow({ mode: "open" });
|
|
2373
2409
|
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
|
|
2374
2410
|
let r = this.classList.toString();
|
|
2375
|
-
const
|
|
2376
|
-
|
|
2411
|
+
const i = document.createElement("template");
|
|
2412
|
+
i.innerHTML = `
|
|
2377
2413
|
<style>
|
|
2378
2414
|
@import "${t}";
|
|
2379
2415
|
.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 */
|
|
@@ -2382,30 +2418,30 @@ class Kr extends HTMLElement {
|
|
|
2382
2418
|
</style>
|
|
2383
2419
|
<div class="applied-filters ${r}"></div>
|
|
2384
2420
|
<slot></slot>
|
|
2385
|
-
`, this.shadowRoot.appendChild(
|
|
2421
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
2386
2422
|
}
|
|
2387
2423
|
connectedCallback() {
|
|
2388
|
-
|
|
2424
|
+
Vr(this, this.shadowRoot.querySelector(".applied-filters"));
|
|
2389
2425
|
}
|
|
2390
2426
|
}
|
|
2391
|
-
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters",
|
|
2392
|
-
const
|
|
2427
|
+
window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", Ur);
|
|
2428
|
+
const Wr = {
|
|
2393
2429
|
name: "Header"
|
|
2394
2430
|
};
|
|
2395
|
-
function
|
|
2431
|
+
function Gr(e, a, t, r, i, s) {
|
|
2396
2432
|
return u(), m("iam-applied-filters", null, [
|
|
2397
|
-
|
|
2433
|
+
v(e.$slots, "default")
|
|
2398
2434
|
]);
|
|
2399
2435
|
}
|
|
2400
|
-
const
|
|
2436
|
+
const ko = /* @__PURE__ */ A(Wr, [["render", Gr]]);
|
|
2401
2437
|
/*!
|
|
2402
|
-
* iamKey v3.7.8
|
|
2438
|
+
* iamKey v3.7.8
|
|
2403
2439
|
* Copyright 2022-2023 iamproperty
|
|
2404
2440
|
*/
|
|
2405
|
-
function
|
|
2406
|
-
|
|
2441
|
+
function Kr(e, a) {
|
|
2442
|
+
Yr(e, a);
|
|
2407
2443
|
}
|
|
2408
|
-
function
|
|
2444
|
+
function Yr(e, a) {
|
|
2409
2445
|
var t;
|
|
2410
2446
|
a.addEventListener("keyup", (r) => {
|
|
2411
2447
|
clearTimeout(t), t = setTimeout(function() {
|
|
@@ -2417,12 +2453,12 @@ function Xr(e, a) {
|
|
|
2417
2453
|
}
|
|
2418
2454
|
const X = function(e, a) {
|
|
2419
2455
|
Array.from(e.querySelectorAll(":scope > li")).forEach((t, r) => {
|
|
2420
|
-
let
|
|
2421
|
-
t.classList.add("d-none"),
|
|
2456
|
+
let i = t.textContent.toLowerCase();
|
|
2457
|
+
t.classList.add("d-none"), i.includes(a.toLowerCase()) && t.classList.remove("d-none");
|
|
2422
2458
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
2423
2459
|
};
|
|
2424
2460
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
2425
|
-
class
|
|
2461
|
+
class Zr extends HTMLElement {
|
|
2426
2462
|
constructor() {
|
|
2427
2463
|
super(), this.attachShadow({ mode: "open" });
|
|
2428
2464
|
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = document.createElement("template");
|
|
@@ -2457,30 +2493,30 @@ class Qr extends HTMLElement {
|
|
|
2457
2493
|
}
|
|
2458
2494
|
connectedCallback() {
|
|
2459
2495
|
let a = this.classList.toString();
|
|
2460
|
-
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>'),
|
|
2496
|
+
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>'), Kr(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
2461
2497
|
}
|
|
2462
2498
|
}
|
|
2463
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
2464
|
-
const
|
|
2499
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", Zr);
|
|
2500
|
+
const Jr = {
|
|
2465
2501
|
name: "Filter list"
|
|
2466
2502
|
};
|
|
2467
|
-
function
|
|
2503
|
+
function Xr(e, a, t, r, i, s) {
|
|
2468
2504
|
return u(), m("iam-filterlist", null, [
|
|
2469
|
-
|
|
2505
|
+
v(e.$slots, "default")
|
|
2470
2506
|
]);
|
|
2471
2507
|
}
|
|
2472
|
-
const
|
|
2473
|
-
function
|
|
2508
|
+
const Lo = /* @__PURE__ */ A(Jr, [["render", Xr]]);
|
|
2509
|
+
function Qr(e) {
|
|
2474
2510
|
if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
|
|
2475
2511
|
let t = document.querySelector(".notification__holder");
|
|
2476
2512
|
t || (t = document.createElement("div"), t.classList.add("notification__holder"), t.classList.add("container"), document.querySelector("body").appendChild(t)), e.closest(".notification__holder") || t.appendChild(e);
|
|
2477
2513
|
}
|
|
2478
2514
|
if (e.setAttribute("role", "alert"), e.addEventListener("click", function(t) {
|
|
2479
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(),
|
|
2515
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), K(e));
|
|
2480
2516
|
}, !1), e.hasAttribute("data-timeout")) {
|
|
2481
2517
|
let t = e.getAttribute("data-timeout");
|
|
2482
|
-
var a = new
|
|
2483
|
-
|
|
2518
|
+
var a = new to(function() {
|
|
2519
|
+
K(e);
|
|
2484
2520
|
}, t);
|
|
2485
2521
|
e.addEventListener("mouseenter", (r) => {
|
|
2486
2522
|
a.pause();
|
|
@@ -2489,15 +2525,15 @@ function ao(e) {
|
|
|
2489
2525
|
});
|
|
2490
2526
|
}
|
|
2491
2527
|
}
|
|
2492
|
-
function
|
|
2493
|
-
var t, r,
|
|
2528
|
+
function to(e, a) {
|
|
2529
|
+
var t, r, i = a;
|
|
2494
2530
|
this.pause = function() {
|
|
2495
|
-
window.clearTimeout(t),
|
|
2531
|
+
window.clearTimeout(t), i -= /* @__PURE__ */ new Date() - r;
|
|
2496
2532
|
}, this.resume = function() {
|
|
2497
|
-
r = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e,
|
|
2533
|
+
r = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, i);
|
|
2498
2534
|
}, this.resume();
|
|
2499
2535
|
}
|
|
2500
|
-
const
|
|
2536
|
+
const K = function(e) {
|
|
2501
2537
|
e.classList.add("d-none");
|
|
2502
2538
|
};
|
|
2503
2539
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -2505,15 +2541,15 @@ window.dataLayer.push({
|
|
|
2505
2541
|
event: "customElementRegistered",
|
|
2506
2542
|
element: "Notification"
|
|
2507
2543
|
});
|
|
2508
|
-
class
|
|
2544
|
+
class eo extends HTMLElement {
|
|
2509
2545
|
constructor() {
|
|
2510
2546
|
super(), this.attachShadow({ mode: "open" });
|
|
2511
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = `@import "${a}/css/components/notification.css";`,
|
|
2512
|
-
Array.from(
|
|
2547
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, r = `@import "${a}/css/components/notification.css";`, i = this.querySelectorAll("a,button");
|
|
2548
|
+
Array.from(i).forEach((o, l) => {
|
|
2513
2549
|
o.setAttribute("slot", "btns"), o.classList.add("link");
|
|
2514
|
-
}), (
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2550
|
+
}), (i.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
2551
|
+
const s = document.createElement("template");
|
|
2552
|
+
s.innerHTML = `
|
|
2517
2553
|
<style>
|
|
2518
2554
|
@import "${t}";
|
|
2519
2555
|
${r}
|
|
@@ -2522,10 +2558,10 @@ class oo extends HTMLElement {
|
|
|
2522
2558
|
|
|
2523
2559
|
<div class="notification">
|
|
2524
2560
|
<div class="notification__icon"><slot name="icon"></slot></div>
|
|
2525
|
-
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${
|
|
2561
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${i.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
2526
2562
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
2527
2563
|
</div>
|
|
2528
|
-
`, this.shadowRoot.appendChild(
|
|
2564
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
2529
2565
|
}
|
|
2530
2566
|
connectedCallback() {
|
|
2531
2567
|
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
@@ -2545,46 +2581,46 @@ class oo extends HTMLElement {
|
|
|
2545
2581
|
default:
|
|
2546
2582
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
2547
2583
|
}
|
|
2548
|
-
|
|
2549
|
-
|
|
2584
|
+
Qr(r), a && a.addEventListener("click", function(i) {
|
|
2585
|
+
K(r);
|
|
2550
2586
|
}, !1);
|
|
2551
2587
|
}
|
|
2552
2588
|
}
|
|
2553
|
-
const
|
|
2589
|
+
const ao = {
|
|
2554
2590
|
name: "Notification",
|
|
2555
2591
|
props: {},
|
|
2556
2592
|
created() {
|
|
2557
2593
|
this.$nextTick(function() {
|
|
2558
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification",
|
|
2594
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", eo);
|
|
2559
2595
|
});
|
|
2560
2596
|
}
|
|
2561
2597
|
};
|
|
2562
|
-
function
|
|
2598
|
+
function ro(e, a, t, r, i, s) {
|
|
2563
2599
|
return u(), m("iam-notification", null, [
|
|
2564
|
-
|
|
2600
|
+
v(e.$slots, "default")
|
|
2565
2601
|
]);
|
|
2566
2602
|
}
|
|
2567
|
-
const
|
|
2603
|
+
const So = /* @__PURE__ */ A(ao, [["render", ro]]);
|
|
2568
2604
|
export {
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2605
|
+
lo as Accordion,
|
|
2606
|
+
co as AccordionItem,
|
|
2607
|
+
ko as AppliedFilters,
|
|
2608
|
+
uo as Banner,
|
|
2609
|
+
He as Card,
|
|
2610
|
+
ho as Carousel,
|
|
2611
|
+
io as FileUpload,
|
|
2612
|
+
Lo as Filterlist,
|
|
2613
|
+
fo as Header,
|
|
2614
|
+
Y as Input,
|
|
2579
2615
|
yt as Logo,
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2616
|
+
yo as Nav,
|
|
2617
|
+
Ao as NoteFeed,
|
|
2618
|
+
So as Notification,
|
|
2619
|
+
po as PropertySearchbar,
|
|
2620
|
+
vo as Step,
|
|
2621
|
+
go as Stepper,
|
|
2622
|
+
wo as Tab,
|
|
2587
2623
|
rt as Table,
|
|
2588
|
-
|
|
2589
|
-
|
|
2624
|
+
_o as Tabs,
|
|
2625
|
+
bo as Testimonial
|
|
2590
2626
|
};
|