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