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