@iamproperty/components 3.4.4 → 3.4.6
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/README.md +30 -66
- package/assets/css/components/accordion.css +1 -0
- package/assets/css/components/accordion.css.map +1 -0
- package/assets/css/components/alert.css +1 -0
- package/assets/css/components/alert.css.map +1 -0
- package/assets/css/components/buttons.css +1 -0
- package/assets/css/components/buttons.css.map +1 -0
- package/assets/css/components/card.css +1 -0
- package/assets/css/components/card.css.map +1 -0
- package/assets/css/components/cardDeck.css +1 -0
- package/assets/css/components/cardDeck.css.map +1 -0
- package/assets/css/components/carousel.css +1 -0
- package/assets/css/components/carousel.css.map +1 -0
- package/assets/css/components/charts.css +1 -0
- package/assets/css/components/charts.css.map +1 -0
- package/assets/css/components/container.css +1 -0
- package/assets/css/components/container.css.map +1 -0
- package/assets/css/components/forms.css +1 -0
- package/assets/css/components/forms.css.map +1 -0
- package/assets/css/components/header.css +1 -0
- package/assets/css/components/header.css.map +1 -0
- package/assets/css/components/links.css +1 -0
- package/assets/css/components/links.css.map +1 -0
- package/assets/css/components/lists.css +1 -0
- package/assets/css/components/lists.css.map +1 -0
- package/assets/css/components/modal.css +1 -0
- package/assets/css/components/modal.css.map +1 -0
- package/assets/css/components/nav.css +1 -0
- package/assets/css/components/nav.css.map +1 -0
- package/assets/css/components/panel.css +1 -0
- package/assets/css/components/panel.css.map +1 -0
- package/assets/css/components/property-searchbar.css +1 -0
- package/assets/css/components/property-searchbar.css.map +1 -0
- package/assets/css/components/snapshot.css +1 -0
- package/assets/css/components/snapshot.css.map +1 -0
- package/assets/css/components/stepper.css +1 -0
- package/assets/css/components/stepper.css.map +1 -0
- package/assets/css/components/tables.css +1 -0
- package/assets/css/components/tables.css.map +1 -0
- package/assets/css/components/tabs.css +1 -0
- package/assets/css/components/tabs.css.map +1 -0
- package/assets/css/components/testimonial.css +1 -0
- package/assets/css/components/testimonial.css.map +1 -0
- package/assets/css/components/timeline.css +1 -0
- package/assets/css/components/timeline.css.map +1 -0
- package/assets/css/components/tooltips.css +1 -0
- package/assets/css/components/tooltips.css.map +1 -0
- 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/fonts/qanelas-bold-webfont.woff +0 -0
- package/assets/fonts/qanelas-bold-webfont.woff2 +0 -0
- package/assets/js/bundle.js +61 -0
- package/assets/js/components/accordion/accordion.component.js +27 -0
- package/assets/js/components/accordion/accordion.component.min.js +14 -0
- package/assets/js/components/accordion/accordion.component.min.js.map +1 -0
- package/assets/js/components/header/header.component.js +45 -0
- package/assets/js/components/header/header.component.min.js +30 -0
- package/assets/js/components/header/header.component.min.js.map +1 -0
- package/assets/js/components/tabs/tabs.component.js +28 -0
- package/assets/js/dynamic.js +85 -0
- package/assets/js/dynamic.min.js +56 -0
- package/assets/js/dynamic.min.js.map +1 -0
- package/assets/js/{main.js → flat-components.js} +15 -11
- package/assets/js/modules/accordion.js +11 -14
- package/assets/js/modules/helpers.js +9 -4
- package/assets/js/modules/tabs.js +91 -0
- package/assets/js/scripts.bundle.js +92 -980
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +3 -4
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_fonts.scss +4 -4
- package/assets/sass/_func.scss +1 -0
- package/assets/sass/_functions/functions.scss +6 -0
- package/assets/sass/_functions/mixins.scss +9 -9
- package/assets/sass/_functions/variables.scss +96 -68
- package/assets/sass/_tests/mixins.spec.scss +1 -1
- package/assets/sass/_tests/typography.spec.scss +2 -2
- package/assets/sass/components/accordion.scss +9 -6
- package/assets/sass/components/card.scss +7 -0
- package/assets/sass/components/container.scss +6 -6
- package/assets/sass/components/forms.scss +2 -0
- package/assets/sass/components/header.scss +34 -11
- package/assets/sass/components/links.scss +3 -2
- package/assets/sass/components/panel.scss +3 -4
- package/assets/sass/components/snapshot.scss +1 -1
- package/assets/sass/components/tabs.scss +52 -36
- package/assets/sass/components/timeline.scss +2 -2
- package/assets/sass/foundations/reboot.scss +2 -2
- package/assets/sass/foundations/root.scss +12 -5
- package/assets/sass/foundations/type.scss +90 -66
- package/assets/ts/README.md +12 -0
- package/assets/ts/bundle.ts +76 -0
- package/assets/ts/components/accordion/README.md +17 -0
- package/assets/ts/components/accordion/accordion.component.ts +36 -0
- package/assets/ts/components/header/README.md +26 -0
- package/assets/ts/components/header/header.component.ts +53 -0
- package/assets/ts/components/tabs/README.md +18 -0
- package/assets/ts/components/tabs/tabs.component.ts +34 -0
- package/assets/ts/dynamic.ts +105 -0
- package/assets/ts/{main.ts → flat-components.ts} +15 -11
- package/assets/ts/html.d.ts +4 -0
- package/assets/ts/modules/accordion.ts +15 -21
- package/assets/ts/modules/helpers.ts +12 -4
- package/assets/ts/modules/tabs.ts +129 -0
- package/dist/components.es.js +845 -873
- package/dist/components.umd.js +63 -19
- package/dist/style.css +1 -1
- package/package.json +19 -10
- package/src/components/Accordion/Accordion.spec.js +1 -1
- package/src/components/Accordion/Accordion.vue +7 -5
- package/src/components/Accordion/AccordionItem.vue +3 -6
- package/src/components/Accordion/README.md +0 -2
- package/src/components/Header/Header.spec.js +5 -4
- package/src/components/Header/Header.vue +14 -20
- package/src/components/Snapshot/Snapshot.vue +1 -1
- package/src/components/Tabs/README.md +0 -2
- package/src/components/Tabs/Tab.vue +3 -2
- package/src/components/Tabs/Tabs.vue +8 -64
- package/src/index.js +0 -1
- package/assets/fonts/qanelassoft-extrabold-webfont.woff +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff2 +0 -0
- package/assets/sass/components/drawer.scss +0 -47
- package/src/components/Drawer/Drawer.vue +0 -53
- package/src/components/Drawer/README.md +0 -23
package/dist/components.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const g = (e,
|
|
1
|
+
import { openBlock as l, createElementBlock as c, createElementVNode as a, toDisplayString as k, normalizeClass as v, createCommentVNode as p, Fragment as x, renderList as L, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as F, vModelText as X, vModelSelect as ee, resolveComponent as H, createVNode as S, createTextVNode as j, normalizeStyle as te, withModifiers as se } from "vue";
|
|
2
|
+
const g = (e, r) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
t[
|
|
4
|
+
for (const [o, f] of r)
|
|
5
|
+
t[o] = f;
|
|
6
6
|
return t;
|
|
7
|
-
},
|
|
7
|
+
}, ae = {
|
|
8
8
|
name: "Icon",
|
|
9
9
|
props: {
|
|
10
10
|
id: {
|
|
@@ -18,16 +18,16 @@ const g = (e, n) => {
|
|
|
18
18
|
default: "/svg/icons.svg"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
},
|
|
22
|
-
function
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
}, ie = { class: "icon" }, ne = ["xlink:href"];
|
|
22
|
+
function re(e, r, t, o, f, s) {
|
|
23
|
+
return l(), c("svg", ie, [
|
|
24
|
+
a("title", null, k(t.id), 1),
|
|
25
|
+
a("use", {
|
|
26
26
|
"xlink:href": t.path + "#icon-" + t.id
|
|
27
|
-
}, null, 8,
|
|
27
|
+
}, null, 8, ne)
|
|
28
28
|
]);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const oe = /* @__PURE__ */ g(ae, [["render", re]]), le = {
|
|
31
31
|
name: "Logo",
|
|
32
32
|
props: {
|
|
33
33
|
id: {
|
|
@@ -52,195 +52,195 @@ const re = /* @__PURE__ */ g(se, [["render", ne]]), oe = {
|
|
|
52
52
|
return "brand brand--" + this.id;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
function
|
|
57
|
-
return
|
|
58
|
-
class: v(
|
|
55
|
+
}, ce = ["xlink:href"], de = ["innerHTML"];
|
|
56
|
+
function ue(e, r, t, o, f, s) {
|
|
57
|
+
return l(), c("div", {
|
|
58
|
+
class: v(s.className)
|
|
59
59
|
}, [
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"xlink:href": t.path +
|
|
64
|
-
}, null, 8,
|
|
60
|
+
(l(), c("svg", null, [
|
|
61
|
+
a("title", null, "iam " + k(t.id), 1),
|
|
62
|
+
a("use", {
|
|
63
|
+
"xlink:href": t.path + s.src
|
|
64
|
+
}, null, 8, ce)
|
|
65
65
|
])),
|
|
66
|
-
t.desc ? (
|
|
66
|
+
t.desc ? (l(), c("span", {
|
|
67
67
|
key: 0,
|
|
68
68
|
innerHTML: t.desc
|
|
69
69
|
}, null, 8, de)) : p("", !0)
|
|
70
70
|
], 2);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
return e = e.toLowerCase(), e =
|
|
74
|
-
},
|
|
72
|
+
const fe = /* @__PURE__ */ g(le, [["render", ue]]), W = (e) => e.charAt(0).toUpperCase() + e.slice(1), K = (e) => e.replace(/_/g, " "), he = (e) => e.replace(/ /g, "_"), me = function(e) {
|
|
73
|
+
return e = e.toLowerCase(), e = he(e), e = e.replace(/\W/g, ""), e;
|
|
74
|
+
}, _e = function(e) {
|
|
75
75
|
return typeof e != "string" ? !1 : !isNaN(e) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
|
|
76
76
|
!isNaN(parseFloat(e));
|
|
77
|
-
},
|
|
77
|
+
}, ye = (e, r) => String(e).padStart(r, "0");
|
|
78
78
|
function Z(e) {
|
|
79
79
|
if (typeof e != "object")
|
|
80
80
|
return !1;
|
|
81
|
-
const
|
|
82
|
-
let
|
|
83
|
-
e.setAttribute("id",
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
Array.from(t.querySelectorAll("tr")).forEach((y,
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
index:
|
|
81
|
+
const r = e.querySelector("thead"), t = e.querySelector("tbody"), o = t.cloneNode(!0), f = new Event("sorted"), s = new Event("filtered"), i = new Event("reordered"), n = "table_" + Math.random().toString(36).substr(2, 9);
|
|
82
|
+
let h;
|
|
83
|
+
e.setAttribute("id", n);
|
|
84
|
+
const w = function(m, u) {
|
|
85
|
+
let d = [];
|
|
86
|
+
Array.from(t.querySelectorAll("tr")).forEach((y, q) => {
|
|
87
|
+
let A = y.querySelector('td[data-label="' + m + '"], th[data-label="' + m + '"]').textContent;
|
|
88
|
+
_e(A) && (A = ye(A, 10));
|
|
89
|
+
const V = {
|
|
90
|
+
index: A,
|
|
91
91
|
row: y
|
|
92
92
|
};
|
|
93
|
-
|
|
94
|
-
}),
|
|
93
|
+
d.push(V);
|
|
94
|
+
}), d.sort((y, q) => y.index > q.index ? 1 : -1), u == "descending" && (d = d.reverse());
|
|
95
95
|
let _ = "";
|
|
96
|
-
|
|
96
|
+
d.forEach((y, q) => {
|
|
97
97
|
_ += y.row.outerHTML;
|
|
98
|
-
}), t.innerHTML = _, e.dispatchEvent(
|
|
98
|
+
}), t.innerHTML = _, e.dispatchEvent(f);
|
|
99
99
|
};
|
|
100
100
|
if (e.addEventListener("click", function(m) {
|
|
101
101
|
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
102
102
|
if (u.matches("[data-sortable]")) {
|
|
103
|
-
let
|
|
103
|
+
let d = u.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
|
|
104
104
|
Array.from(e.querySelectorAll("[data-sortable]")).forEach((_, y) => {
|
|
105
105
|
_.setAttribute("aria-sort", "none");
|
|
106
|
-
}), u.setAttribute("aria-sort",
|
|
106
|
+
}), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent), w(u.textContent, d), Array.from(e.querySelectorAll("tr[draggable]")).forEach((_, y) => {
|
|
107
107
|
_.removeAttribute("draggable");
|
|
108
108
|
});
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
}, !1), e.getAttribute("data-sortBy")) {
|
|
112
112
|
let m = e.getAttribute("data-sort") == "ascending" ? "descending" : "ascending";
|
|
113
|
-
Array.from(e.querySelectorAll("[data-sortable]")).forEach((u,
|
|
113
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((u, d) => {
|
|
114
114
|
u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", m), u.click());
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const $ = function(m) {
|
|
118
118
|
const u = document.createElement("div");
|
|
119
119
|
u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
|
|
120
|
-
const
|
|
120
|
+
const d = Array.from(e.querySelectorAll("th[data-filterable]"));
|
|
121
121
|
let _ = {};
|
|
122
|
-
|
|
123
|
-
Array.from(e.querySelectorAll('td[data-label="' +
|
|
124
|
-
_[
|
|
122
|
+
d.forEach((A, V) => {
|
|
123
|
+
Array.from(e.querySelectorAll('td[data-label="' + A.textContent + '"]')).forEach((R, li) => {
|
|
124
|
+
_[R.textContent] = R.textContent;
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
|
-
const y =
|
|
127
|
+
const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", q = d.length == 1 ? "d-none" : "d-sm-flex";
|
|
128
128
|
u.innerHTML = `<div class="col-sm-6 col-md-4 pb-3">
|
|
129
129
|
<div class="form-control__wrapper form-control-inline mb-0">
|
|
130
|
-
<label for="${
|
|
131
|
-
<input type="search" name="${
|
|
130
|
+
<label for="${n}_filter" class="form-label">${y}:</label>
|
|
131
|
+
<input type="search" name="${n}_filter" id="${n}_filter" class="form-control form-control-sm" placeholder="" list="${n}_list" />
|
|
132
132
|
</div>
|
|
133
|
-
<datalist id="${
|
|
134
|
-
${Object.keys(_).map((
|
|
133
|
+
<datalist id="${n}_list">
|
|
134
|
+
${Object.keys(_).map((A) => `<option value="${A}"></option>`).join("")}
|
|
135
135
|
</datalist>
|
|
136
136
|
</div>
|
|
137
|
-
<div class="col-md-8 align-items-center pb-3 ${
|
|
138
|
-
${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' +
|
|
137
|
+
<div class="col-md-8 align-items-center pb-3 ${q}">
|
|
138
|
+
${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' + d.map((A) => `<div class="form-check pe-3 mt-0 mb-0"><input class="form-check-input" type="checkbox" id="${n}_${A.textContent.replace(" ", "_").toLowerCase()}" checked="checked" /><label class="form-check-label text-nowrap" for="${n}_${A.textContent.replace(" ", "_").toLowerCase()}">${A.textContent}</label></div>`).join("")}
|
|
139
139
|
</div>`, e.prepend(u);
|
|
140
140
|
}, M = function(m) {
|
|
141
141
|
let u = [];
|
|
142
|
-
Array.from(
|
|
143
|
-
let
|
|
144
|
-
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((
|
|
145
|
-
|
|
146
|
-
}),
|
|
147
|
-
const
|
|
148
|
-
u.push(
|
|
142
|
+
Array.from(o.querySelectorAll("tr")).forEach((_, y) => {
|
|
143
|
+
let q = "";
|
|
144
|
+
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((A, V) => {
|
|
145
|
+
q += _.querySelector('td[data-label="' + A.textContent + '"]').textContent + " | ";
|
|
146
|
+
}), q.indexOf(m) >= 0) {
|
|
147
|
+
const A = { row: _ };
|
|
148
|
+
u.push(A);
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
-
let
|
|
151
|
+
let d = "";
|
|
152
152
|
u.forEach((_, y) => {
|
|
153
|
-
|
|
154
|
-
}), t.innerHTML =
|
|
155
|
-
},
|
|
153
|
+
d += _.row.outerHTML;
|
|
154
|
+
}), t.innerHTML = d, e.dispatchEvent(s);
|
|
155
|
+
}, I = function() {
|
|
156
156
|
let m = [];
|
|
157
157
|
Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((_, y) => {
|
|
158
158
|
m.push(_.textContent);
|
|
159
159
|
});
|
|
160
160
|
let u = [];
|
|
161
161
|
m.forEach((_, y) => {
|
|
162
|
-
Array.from(e.querySelectorAll('td[data-label="' + _ + '"]')).forEach((
|
|
163
|
-
u[
|
|
162
|
+
Array.from(e.querySelectorAll('td[data-label="' + _ + '"]')).forEach((q, A) => {
|
|
163
|
+
u[q.textContent] = q.textContent;
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
|
-
let
|
|
167
|
-
|
|
166
|
+
let d = e.querySelector("datalist");
|
|
167
|
+
d.innerHTML = Object.keys(u).map((_) => `<option value="${_}"></option>`).join("");
|
|
168
168
|
};
|
|
169
|
-
Array.from(e.querySelectorAll("[data-filterable]")).length && (
|
|
169
|
+
Array.from(e.querySelectorAll("[data-filterable]")).length && ($(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(m) {
|
|
170
170
|
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
171
171
|
if (u.matches('input[type="search"]')) {
|
|
172
|
-
const
|
|
173
|
-
M(
|
|
172
|
+
const d = u.value;
|
|
173
|
+
M(d);
|
|
174
174
|
}
|
|
175
175
|
}), e.addEventListener("change", function(m) {
|
|
176
176
|
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
177
177
|
if (u.matches('input[type="search"]')) {
|
|
178
|
-
const
|
|
179
|
-
M(
|
|
178
|
+
const d = u.value;
|
|
179
|
+
M(d);
|
|
180
180
|
}
|
|
181
181
|
}), e.addEventListener("change", function(m) {
|
|
182
182
|
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
183
183
|
if (u.matches('input[type="checkbox"]')) {
|
|
184
|
-
const
|
|
185
|
-
M(
|
|
184
|
+
const d = e.querySelector('input[type="search"]').value;
|
|
185
|
+
M(d), I();
|
|
186
186
|
}
|
|
187
187
|
}));
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
|
|
188
|
+
const C = function(m, u) {
|
|
189
|
+
let d = document.getElementById(n + "_style");
|
|
190
|
+
d == null && (d = document.createElement("style"), d.setAttribute("id", n + "_style"));
|
|
191
191
|
const _ = m * (u - 1) + 1, y = m * u;
|
|
192
|
-
|
|
193
|
-
#${
|
|
192
|
+
d.innerHTML = `
|
|
193
|
+
#${n} tbody tr {
|
|
194
194
|
display: none;
|
|
195
195
|
}
|
|
196
|
-
#${
|
|
197
|
-
#${
|
|
196
|
+
#${n} tbody tr:nth-child(${_}),
|
|
197
|
+
#${n} tbody tr:nth-child(${_}) ~ tr{
|
|
198
198
|
display: block;
|
|
199
199
|
}
|
|
200
200
|
@media screen and (min-width: 36em) {
|
|
201
|
-
#${
|
|
202
|
-
#${
|
|
201
|
+
#${n} tbody tr:nth-child(${_}),
|
|
202
|
+
#${n} tbody tr:nth-child(${_}) ~ tr{
|
|
203
203
|
display: table-row;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
#${
|
|
206
|
+
#${n} tbody tr:nth-child(${y}) ~ tr{
|
|
207
207
|
display: none;
|
|
208
208
|
}
|
|
209
|
-
`, e.append(
|
|
209
|
+
`, e.append(d);
|
|
210
210
|
};
|
|
211
211
|
if (e.getAttribute("data-show")) {
|
|
212
|
-
const m = parseInt(e.getAttribute("data-show")), u = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1,
|
|
213
|
-
m <
|
|
212
|
+
const m = parseInt(e.getAttribute("data-show")), u = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1, d = e.querySelectorAll("tbody tr").length;
|
|
213
|
+
m < d && (C(m, u), U(n, e, m, u, d), B(n, e, m, u, d), e.addEventListener("change", function(_) {
|
|
214
214
|
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
215
|
-
y.matches('.table__pagination input[type="number"]') && (
|
|
215
|
+
y.matches('.table__pagination input[type="number"]') && (C(y.value, u), B(n, e, y.value, u, d), e.setAttribute("data-show", y.value));
|
|
216
216
|
}), e.addEventListener("click", function(_) {
|
|
217
217
|
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
218
|
-
y.matches(".page-item:not(.active):not(.disabled) .page-link") && (
|
|
218
|
+
y.matches(".page-item:not(.active):not(.disabled) .page-link") && (C(e.getAttribute("data-show"), y.getAttribute("data-page")), B(n, e, e.getAttribute("data-show"), y.getAttribute("data-page"), d));
|
|
219
219
|
}, !1), e.addEventListener("change", function(_) {
|
|
220
220
|
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
221
|
-
y.matches(".table__pagination select") && (
|
|
221
|
+
y.matches(".table__pagination select") && (C(e.getAttribute("data-show"), y.value), B(n, e, e.getAttribute("data-show"), y.value, d));
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
m.dataTransfer.setData("text/plain", m.target.id),
|
|
224
|
+
function J(m) {
|
|
225
|
+
m.dataTransfer.setData("text/plain", m.target.id), h = m.target, m.target.classList.add("tr--dragging");
|
|
226
226
|
}
|
|
227
|
-
const
|
|
227
|
+
const z = function() {
|
|
228
228
|
Array.from(t.querySelectorAll("tr")).forEach((m, u) => {
|
|
229
229
|
if (m.querySelector('[data-label="Order"]') == null) {
|
|
230
|
-
const
|
|
231
|
-
|
|
230
|
+
const d = document.createElement("th");
|
|
231
|
+
d.innerHTML = u + 1, d.setAttribute("data-label", "Order"), m.prepend(d);
|
|
232
232
|
}
|
|
233
|
-
m.setAttribute("id",
|
|
233
|
+
m.setAttribute("id", n + "_row_" + (u + 1)), m.setAttribute("data-order", u + 1), m.setAttribute("draggable", "true"), m.addEventListener("dragstart", J);
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
236
|
if (e.getAttribute("data-reorder") && e.getAttribute("data-reorder") != "false") {
|
|
237
237
|
const m = document.createElement("th");
|
|
238
|
-
m.innerHTML = "Order", m.title = "Click here to enable re-ordering via drag and drop", m.classList.add("table-order-reset"),
|
|
239
|
-
for (var
|
|
240
|
-
if (
|
|
238
|
+
m.innerHTML = "Order", m.title = "Click here to enable re-ordering via drag and drop", m.classList.add("table-order-reset"), r.querySelector("tr").prepend(m), z(), e.addEventListener("click", function(u) {
|
|
239
|
+
for (var d = u.target; d && d != this; d = d.parentNode)
|
|
240
|
+
if (d.matches(".table-order-reset")) {
|
|
241
241
|
Array.from(e.querySelectorAll("[data-sortable]")).forEach((_, y) => {
|
|
242
242
|
_.setAttribute("aria-sort", "none");
|
|
243
|
-
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"),
|
|
243
|
+
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), w("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((_, y) => {
|
|
244
244
|
_.setAttribute("draggable", "true");
|
|
245
245
|
});
|
|
246
246
|
break;
|
|
@@ -249,80 +249,80 @@ function Z(e) {
|
|
|
249
249
|
u.preventDefault();
|
|
250
250
|
}, !1), document.addEventListener("dragenter", function(u) {
|
|
251
251
|
u.preventDefault(), u.dataTransfer.dropEffect = "move";
|
|
252
|
-
for (var
|
|
253
|
-
|
|
252
|
+
for (var d = u.target; d && d != this; d = d.parentNode)
|
|
253
|
+
d.matches("[data-reorder] tbody tr") && d.classList.add("tr--dropable");
|
|
254
254
|
}, !1), document.addEventListener("dragleave", function(u) {
|
|
255
255
|
u.preventDefault();
|
|
256
|
-
for (var
|
|
257
|
-
|
|
256
|
+
for (var d = u.target; d && d != this; d = d.parentNode)
|
|
257
|
+
d.matches("[data-reorder] tbody tr") && d.classList.remove("tr--dropable");
|
|
258
258
|
}, !1), document.addEventListener("drop", function(u) {
|
|
259
259
|
u.preventDefault();
|
|
260
|
-
for (var
|
|
261
|
-
if (
|
|
262
|
-
|
|
260
|
+
for (var d = u.target; d && d != this; d = d.parentNode)
|
|
261
|
+
if (d.matches("[data-reorder] tbody tr")) {
|
|
262
|
+
d.parentNode != null && h.parentNode != null && d != h && (h.parentNode.removeChild(h), h.getAttribute("data-order") > d.getAttribute("data-order") ? d.parentNode.insertBefore(h, d) : d.parentNode.insertBefore(h, d.nextElementSibling), Array.from(t.querySelectorAll("tr")).forEach((_, y) => {
|
|
263
263
|
_.classList.remove("tr--dragging"), _.classList.remove("tr--dropable"), _.querySelector("th").innerHTML = y + 1, _.setAttribute("data-order", y + 1);
|
|
264
|
-
}), e.dispatchEvent(
|
|
264
|
+
}), e.dispatchEvent(i));
|
|
265
265
|
break;
|
|
266
266
|
}
|
|
267
267
|
}, !1);
|
|
268
268
|
}
|
|
269
269
|
e.addEventListener("filtered", function(m) {
|
|
270
|
-
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") &&
|
|
271
|
-
const u = parseInt(e.getAttribute("data-show")),
|
|
272
|
-
_ != null && _.remove(), u <
|
|
270
|
+
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && w(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
|
|
271
|
+
const u = parseInt(e.getAttribute("data-show")), d = e.querySelectorAll("tbody tr").length, _ = e.querySelector(".table__pagination");
|
|
272
|
+
_ != null && _.remove(), u < d && (C(u, 1), U(n, e, u, 1, d), B(n, e, u, 1, d));
|
|
273
273
|
}
|
|
274
|
-
e.getAttribute("data-reorder") &&
|
|
274
|
+
e.getAttribute("data-reorder") && z();
|
|
275
275
|
}, !1), e.addEventListener("sorted", function(m) {
|
|
276
|
-
e.getAttribute("data-reorder") &&
|
|
276
|
+
e.getAttribute("data-reorder") && z();
|
|
277
277
|
}, !1), e.addEventListener("populated", function(m) {
|
|
278
278
|
var u = e.querySelector(".table__filters");
|
|
279
279
|
u.remove();
|
|
280
|
-
var
|
|
281
|
-
|
|
280
|
+
var d = e.querySelector(".table__pagination");
|
|
281
|
+
d.remove();
|
|
282
282
|
var _ = e.cloneNode(!0);
|
|
283
283
|
e.parentNode.replaceChild(_, e), Z(_);
|
|
284
284
|
}, !1);
|
|
285
285
|
}
|
|
286
|
-
const U = function(e,
|
|
287
|
-
const
|
|
288
|
-
|
|
286
|
+
const U = function(e, r, t, o, f) {
|
|
287
|
+
const s = document.createElement("div");
|
|
288
|
+
s.classList.add("table__pagination"), s.classList.add("row"), s.classList.add("pt-3"), s.classList.add("pb-3"), s.innerHTML = `<div class="col mw-fit-content mb-3">
|
|
289
289
|
<div class="form-control__wrapper form-control-inline mb-0">
|
|
290
290
|
<label for="${e}_showing" class="form-label">Showing:</label>
|
|
291
|
-
<input type="number" name="${e}_showing" id="${e}_showing" class="form-control form-control-sm showing-input-field" placeholder="" list="${e}_pagination" value="${t}" min="1" max="${
|
|
291
|
+
<input type="number" name="${e}_showing" id="${e}_showing" class="form-control form-control-sm showing-input-field" placeholder="" list="${e}_pagination" value="${t}" min="1" max="${f}" />
|
|
292
292
|
</div>
|
|
293
293
|
<datalist id="${e}_pagination">
|
|
294
294
|
<option value="5">5</option>
|
|
295
|
-
${
|
|
296
|
-
${
|
|
297
|
-
<option value="${
|
|
295
|
+
${f > 10 ? '<option value="10">10</option>' : ""}
|
|
296
|
+
${f > 20 ? '<option value="20">20</option>' : ""}
|
|
297
|
+
<option value="${f}">${f}</option>
|
|
298
298
|
</datalist>
|
|
299
299
|
</div>
|
|
300
300
|
<div class="col mw-fit-content me-auto d-flex align-items-center mb-3"><span class="label">per page</span></div>
|
|
301
|
-
<div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`,
|
|
302
|
-
},
|
|
303
|
-
const
|
|
304
|
-
if (
|
|
301
|
+
<div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`, r.append(s);
|
|
302
|
+
}, B = function(e, r, t, o, f) {
|
|
303
|
+
const s = document.getElementById(e + "_paginationBtns");
|
|
304
|
+
if (s == null)
|
|
305
305
|
return !1;
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
|
|
309
|
-
else if (
|
|
310
|
-
let
|
|
311
|
-
for (let
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
${
|
|
315
|
-
${
|
|
316
|
-
${
|
|
306
|
+
const i = Math.ceil(f / t);
|
|
307
|
+
if (i == 1)
|
|
308
|
+
s.innerHTML = "";
|
|
309
|
+
else if (i < 5) {
|
|
310
|
+
let n = "";
|
|
311
|
+
for (let h = 1; h <= i; h++)
|
|
312
|
+
h == o ? n += `<li class="page-item active" aria-current="page"><span class="page-link">${h}</span></li>` : n += `<li class="page-item"><button class="page-link" data-page="${h}">${h}</button></li>`;
|
|
313
|
+
s.innerHTML = `<span class="pe-2 mb-3">Page: </span><ul class="pagination mb-3">
|
|
314
|
+
${o == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(o) - 1}">Previous</button></li>`}
|
|
315
|
+
${n}
|
|
316
|
+
${o == i ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(o) + 1}">Next</button></li>`}
|
|
317
317
|
</ul>`;
|
|
318
318
|
} else {
|
|
319
|
-
let
|
|
320
|
-
for (let
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
let n = "";
|
|
320
|
+
for (let h = 1; h <= i; h++)
|
|
321
|
+
h == o ? n += `<option value="${h}" selected>Page ${h}</option>` : n += `<option value="${h}">Page ${h}</option>`;
|
|
322
|
+
s.innerHTML = `
|
|
323
323
|
<div class="form-control__wrapper page-number mb-2">
|
|
324
324
|
<select class="form-select">
|
|
325
|
-
${
|
|
325
|
+
${n}
|
|
326
326
|
</select>
|
|
327
327
|
</div>
|
|
328
328
|
`;
|
|
@@ -331,7 +331,7 @@ ${i}
|
|
|
331
331
|
let G = function(e) {
|
|
332
332
|
return typeof e != "string" ? e : (e = e.replace("£", ""), e = e.replace("%", ""), Number.isNaN(Number.parseFloat(e)) ? 0 : Number.parseFloat(e));
|
|
333
333
|
};
|
|
334
|
-
const
|
|
334
|
+
const pe = {
|
|
335
335
|
name: "Table",
|
|
336
336
|
props: {
|
|
337
337
|
reorder: {
|
|
@@ -386,18 +386,18 @@ const ye = {
|
|
|
386
386
|
},
|
|
387
387
|
updated() {
|
|
388
388
|
this.$nextTick(function() {
|
|
389
|
-
let e = this.$refs.wrapper.querySelector("tbody"),
|
|
390
|
-
this.items.forEach((
|
|
391
|
-
let
|
|
392
|
-
|
|
393
|
-
}), e.innerHTML =
|
|
389
|
+
let e = this.$refs.wrapper.querySelector("tbody"), r = "";
|
|
390
|
+
this.items.forEach((o, f) => {
|
|
391
|
+
let s = o.rowid ? o.rowid : "";
|
|
392
|
+
o = Object.fromEntries(Object.entries(o).filter(([i]) => i !== "rowid")), r += `<tr data-row-id="${s}">${Object.keys(o).map((i) => `<td data-label="${W(K(i))}" data-numeric="${G(o[i])}">${o[i]}</td>`).join("")}</tr>`;
|
|
393
|
+
}), e.innerHTML = r;
|
|
394
394
|
const t = new Event("filtered");
|
|
395
395
|
this.$refs.wrapper.dispatchEvent(t);
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
},
|
|
399
|
-
function
|
|
400
|
-
return
|
|
398
|
+
}, be = ["data-sortby", "data-sort", "data-show", "data-page", "data-reorder"], ve = { key: 0 }, ge = ["data-sortable", "data-filterable"], Ae = { key: 1 }, we = ["data-row-id"], ke = ["innerHTML", "data-label", "data-numeric"];
|
|
399
|
+
function Se(e, r, t, o, f, s) {
|
|
400
|
+
return l(), c("div", {
|
|
401
401
|
class: "table__wrapper",
|
|
402
402
|
ref: "wrapper",
|
|
403
403
|
"data-sortby": t.sortby,
|
|
@@ -406,36 +406,36 @@ function $e(e, n, t, d, h, a) {
|
|
|
406
406
|
"data-page": t.page,
|
|
407
407
|
"data-reorder": t.reorder
|
|
408
408
|
}, [
|
|
409
|
-
|
|
410
|
-
t.fields ? (
|
|
411
|
-
|
|
409
|
+
a("table", null, [
|
|
410
|
+
t.fields ? (l(), c("thead", ve, [
|
|
411
|
+
a("tr", {
|
|
412
412
|
class: v(t.headingclass)
|
|
413
413
|
}, [
|
|
414
|
-
(
|
|
415
|
-
key:
|
|
416
|
-
"data-sortable":
|
|
417
|
-
"data-filterable":
|
|
418
|
-
},
|
|
414
|
+
(l(!0), c(x, null, L(t.fields, (i) => (l(), c("th", {
|
|
415
|
+
key: i.key,
|
|
416
|
+
"data-sortable": i.sortable,
|
|
417
|
+
"data-filterable": i.filterable
|
|
418
|
+
}, k(s.cellHeading(i.key)), 9, ge))), 128))
|
|
419
419
|
], 2)
|
|
420
420
|
])) : p("", !0),
|
|
421
|
-
t.items ? (
|
|
422
|
-
(
|
|
423
|
-
key:
|
|
424
|
-
"data-row-id":
|
|
421
|
+
t.items ? (l(), c("tbody", Ae, [
|
|
422
|
+
(l(!0), c(x, null, L(t.items, (i, n) => (l(), c("tr", {
|
|
423
|
+
key: n,
|
|
424
|
+
"data-row-id": i.rowid
|
|
425
425
|
}, [
|
|
426
|
-
(
|
|
427
|
-
key:
|
|
428
|
-
innerHTML:
|
|
429
|
-
"data-label":
|
|
430
|
-
"data-numeric":
|
|
426
|
+
(l(!0), c(x, null, L(Object.fromEntries(Object.entries(i).filter(([h]) => h !== "rowid")), (h, w) => (l(), c("td", {
|
|
427
|
+
key: w,
|
|
428
|
+
innerHTML: h,
|
|
429
|
+
"data-label": s.cellHeading(w),
|
|
430
|
+
"data-numeric": s.numericValue(h)
|
|
431
431
|
}, null, 8, ke))), 128))
|
|
432
432
|
], 8, we))), 128))
|
|
433
433
|
])) : p("", !0)
|
|
434
434
|
]),
|
|
435
435
|
b(e.$slots, "default")
|
|
436
|
-
], 8,
|
|
436
|
+
], 8, be);
|
|
437
437
|
}
|
|
438
|
-
const E = /* @__PURE__ */ g(
|
|
438
|
+
const E = /* @__PURE__ */ g(pe, [["render", Se]]), $e = {
|
|
439
439
|
name: "Input",
|
|
440
440
|
props: {
|
|
441
441
|
value: {
|
|
@@ -606,8 +606,8 @@ const E = /* @__PURE__ */ g(ye, [["render", $e]]), Ae = {
|
|
|
606
606
|
this.$nextTick(function() {
|
|
607
607
|
let e = this.$refs.wrapper;
|
|
608
608
|
if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
|
|
609
|
-
const
|
|
610
|
-
Array.from(e.childNodes).forEach((t) =>
|
|
609
|
+
const r = document.createDocumentFragment();
|
|
610
|
+
Array.from(e.childNodes).forEach((t) => r.appendChild(t)), e.parentNode.insertBefore(r, e), e.parentNode.removeChild(e);
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
},
|
|
@@ -619,144 +619,144 @@ const E = /* @__PURE__ */ g(ye, [["render", $e]]), Ae = {
|
|
|
619
619
|
this.$emit("bus");
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, qe = ["for", "innerHTML", "title"], xe = ["innerHTML"], Le = ["innerHTML"], Te = ["type", "name", "id", "pattern", "list"], Me = ["type", "name", "id", "pattern"], He = {
|
|
623
623
|
key: 5,
|
|
624
624
|
class: "input-group"
|
|
625
|
-
}, Ce = ["type", "name", "id", "pattern", "list"],
|
|
625
|
+
}, Ce = ["type", "name", "id", "pattern", "list"], Ne = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Be = {
|
|
626
626
|
key: 6,
|
|
627
627
|
class: "input-group"
|
|
628
|
-
},
|
|
629
|
-
function Ue(e,
|
|
630
|
-
return
|
|
631
|
-
class: v(
|
|
628
|
+
}, Pe = ["type", "name", "id", "pattern", "list"], De = { class: "input-group-text flex-fill" }, Ie = ["type", "name", "id", "pattern"], ze = ["value"], Ve = ["id"], Fe = ["value"], Oe = ["type", "name", "id"], je = ["for", "innerHTML"], Re = ["type", "name", "id"], We = ["for", "innerHTML"], Ke = ["innerHTML"];
|
|
629
|
+
function Ue(e, r, t, o, f, s) {
|
|
630
|
+
return l(), c("div", {
|
|
631
|
+
class: v(s.wrapperClass()),
|
|
632
632
|
ref: "wrapper"
|
|
633
633
|
}, [
|
|
634
|
-
|
|
634
|
+
s.needsLabel() ? (l(), c("label", {
|
|
635
635
|
key: 0,
|
|
636
636
|
class: v(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
637
637
|
for: t.id,
|
|
638
|
-
innerHTML:
|
|
638
|
+
innerHTML: s.displayLabel(),
|
|
639
639
|
title: t.title
|
|
640
|
-
}, null, 10,
|
|
641
|
-
t.prefix ? (
|
|
640
|
+
}, null, 10, qe)) : p("", !0),
|
|
641
|
+
t.prefix ? (l(), c("span", {
|
|
642
642
|
key: 1,
|
|
643
643
|
class: v(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
644
644
|
innerHTML: t.prefix,
|
|
645
645
|
role: "presentation"
|
|
646
646
|
}, null, 10, xe)) : p("", !0),
|
|
647
|
-
t.suffix ? (
|
|
647
|
+
t.suffix ? (l(), c("span", {
|
|
648
648
|
key: 2,
|
|
649
649
|
class: v(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
650
650
|
innerHTML: t.suffix,
|
|
651
651
|
role: "presentation"
|
|
652
|
-
}, null, 10,
|
|
653
|
-
|
|
652
|
+
}, null, 10, Le)) : p("", !0),
|
|
653
|
+
s.isInput() ? N((l(), c("input", T({
|
|
654
654
|
key: 3,
|
|
655
|
-
"onUpdate:modelValue":
|
|
655
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => s.inputVal = i),
|
|
656
656
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
657
657
|
type: t.type,
|
|
658
658
|
name: t.name ? t.name : t.id,
|
|
659
659
|
id: t.id,
|
|
660
|
-
pattern:
|
|
661
|
-
list:
|
|
660
|
+
pattern: s.needPattern(),
|
|
661
|
+
list: s.hasOptions()
|
|
662
662
|
}, e.$attrs, {
|
|
663
|
-
onKeyup:
|
|
664
|
-
}), null, 16,
|
|
665
|
-
[F,
|
|
663
|
+
onKeyup: r[1] || (r[1] = (...i) => s.inputKeyup && s.inputKeyup(...i))
|
|
664
|
+
}), null, 16, Te)), [
|
|
665
|
+
[F, s.inputVal]
|
|
666
666
|
]) : p("", !0),
|
|
667
|
-
t.type == "textarea" ? N((
|
|
667
|
+
t.type == "textarea" ? N((l(), c("textarea", T({
|
|
668
668
|
key: 4,
|
|
669
|
-
"onUpdate:modelValue":
|
|
669
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => s.inputVal = i),
|
|
670
670
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
671
671
|
type: t.type,
|
|
672
672
|
name: t.name ? t.name : t.id,
|
|
673
673
|
id: t.id,
|
|
674
|
-
pattern:
|
|
675
|
-
}, e.$attrs), null, 16,
|
|
676
|
-
[
|
|
674
|
+
pattern: s.needPattern()
|
|
675
|
+
}, e.$attrs), null, 16, Me)), [
|
|
676
|
+
[X, s.inputVal]
|
|
677
677
|
]) : p("", !0),
|
|
678
|
-
t.type == "range" ? (
|
|
679
|
-
N(
|
|
680
|
-
"onUpdate:modelValue":
|
|
678
|
+
t.type == "range" ? (l(), c("div", He, [
|
|
679
|
+
N(a("input", T({
|
|
680
|
+
"onUpdate:modelValue": r[3] || (r[3] = (i) => s.inputVal = i),
|
|
681
681
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
682
682
|
type: t.type,
|
|
683
683
|
name: t.name ? t.name : t.id,
|
|
684
684
|
id: t.id,
|
|
685
|
-
pattern:
|
|
686
|
-
list:
|
|
685
|
+
pattern: s.needPattern(),
|
|
686
|
+
list: s.hasOptions()
|
|
687
687
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ce), [
|
|
688
|
-
[F,
|
|
688
|
+
[F, s.inputVal]
|
|
689
689
|
]),
|
|
690
|
-
|
|
690
|
+
a("output", Ne, k(t.value), 1)
|
|
691
691
|
])) : p("", !0),
|
|
692
|
-
t.type == "color" ? (
|
|
693
|
-
N(
|
|
694
|
-
"onUpdate:modelValue":
|
|
692
|
+
t.type == "color" ? (l(), c("div", Be, [
|
|
693
|
+
N(a("input", T({
|
|
694
|
+
"onUpdate:modelValue": r[4] || (r[4] = (i) => s.inputVal = i),
|
|
695
695
|
class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
696
696
|
type: t.type,
|
|
697
697
|
name: t.name ? t.name : t.id,
|
|
698
698
|
id: t.id,
|
|
699
|
-
pattern:
|
|
700
|
-
list:
|
|
701
|
-
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
702
|
-
[F,
|
|
699
|
+
pattern: s.needPattern(),
|
|
700
|
+
list: s.hasOptions()
|
|
701
|
+
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Pe), [
|
|
702
|
+
[F, s.inputVal]
|
|
703
703
|
]),
|
|
704
|
-
|
|
704
|
+
a("output", De, k(t.value ? e.vale : "#000000"), 1)
|
|
705
705
|
])) : p("", !0),
|
|
706
|
-
t.type == "select" ? N((
|
|
706
|
+
t.type == "select" ? N((l(), c("select", T({
|
|
707
707
|
key: 7,
|
|
708
|
-
"onUpdate:modelValue":
|
|
708
|
+
"onUpdate:modelValue": r[5] || (r[5] = (i) => s.inputVal = i),
|
|
709
709
|
class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
710
710
|
type: t.type,
|
|
711
711
|
name: t.id,
|
|
712
712
|
id: t.id,
|
|
713
|
-
pattern:
|
|
713
|
+
pattern: s.needPattern()
|
|
714
714
|
}, e.$attrs), [
|
|
715
|
-
(
|
|
716
|
-
key:
|
|
717
|
-
value:
|
|
718
|
-
},
|
|
719
|
-
], 16,
|
|
720
|
-
[
|
|
715
|
+
(l(!0), c(x, null, L(t.options, (i, n) => (l(), c("option", {
|
|
716
|
+
key: n,
|
|
717
|
+
value: i.value
|
|
718
|
+
}, k(i.display ? i.display : i.value), 9, ze))), 128))
|
|
719
|
+
], 16, Ie)), [
|
|
720
|
+
[ee, s.inputVal]
|
|
721
721
|
]) : p("", !0),
|
|
722
|
-
|
|
722
|
+
s.allowDatalist() ? (l(), c("datalist", {
|
|
723
723
|
key: 8,
|
|
724
724
|
id: t.id + "-list"
|
|
725
725
|
}, [
|
|
726
|
-
(
|
|
727
|
-
key:
|
|
728
|
-
value:
|
|
729
|
-
},
|
|
730
|
-
], 8,
|
|
731
|
-
t.type == "checkbox" || t.type == "radio" ? (
|
|
726
|
+
(l(!0), c(x, null, L(t.options, (i, n) => (l(), c("option", {
|
|
727
|
+
key: n,
|
|
728
|
+
value: i.value
|
|
729
|
+
}, k(i.value), 9, Fe))), 128))
|
|
730
|
+
], 8, Ve)) : p("", !0),
|
|
731
|
+
t.type == "checkbox" || t.type == "radio" ? (l(), c("input", T({
|
|
732
732
|
key: 9,
|
|
733
733
|
class: "form-check-input",
|
|
734
734
|
type: t.type,
|
|
735
735
|
name: t.name ? t.name : t.id,
|
|
736
736
|
id: t.id
|
|
737
737
|
}, e.$attrs), null, 16, Oe)) : p("", !0),
|
|
738
|
-
t.type == "checkbox" || t.type == "radio" ? (
|
|
738
|
+
t.type == "checkbox" || t.type == "radio" ? (l(), c("label", {
|
|
739
739
|
key: 10,
|
|
740
740
|
class: v(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
741
741
|
for: t.id,
|
|
742
742
|
innerHTML: t.label
|
|
743
|
-
}, null, 10,
|
|
744
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (
|
|
743
|
+
}, null, 10, je)) : p("", !0),
|
|
744
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (l(), c("input", T({
|
|
745
745
|
key: 11,
|
|
746
746
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
747
747
|
type: t.type.replace("-btn", ""),
|
|
748
748
|
autocomplete: "off",
|
|
749
749
|
name: t.name ? t.name : t.id,
|
|
750
750
|
id: t.id
|
|
751
|
-
}, e.$attrs), null, 16,
|
|
752
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (
|
|
751
|
+
}, e.$attrs), null, 16, Re)) : p("", !0),
|
|
752
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (l(), c("label", {
|
|
753
753
|
key: 12,
|
|
754
754
|
class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
755
755
|
for: t.id,
|
|
756
756
|
innerHTML: t.label,
|
|
757
|
-
onClick:
|
|
757
|
+
onClick: r[6] || (r[6] = (...i) => s.clickEvent && s.clickEvent(...i))
|
|
758
758
|
}, null, 10, We)) : p("", !0),
|
|
759
|
-
t.errormsg ? (
|
|
759
|
+
t.errormsg ? (l(), c("p", {
|
|
760
760
|
key: 13,
|
|
761
761
|
class: "invalid-feedback mb-0",
|
|
762
762
|
innerHTML: t.errormsg
|
|
@@ -764,9 +764,9 @@ function Ue(e, n, t, d, h, a) {
|
|
|
764
764
|
b(e.$slots, "default")
|
|
765
765
|
], 2);
|
|
766
766
|
}
|
|
767
|
-
const
|
|
767
|
+
const D = /* @__PURE__ */ g($e, [["render", Ue]]), Ge = {
|
|
768
768
|
components: {
|
|
769
|
-
Input:
|
|
769
|
+
Input: D
|
|
770
770
|
},
|
|
771
771
|
name: "FileUploads",
|
|
772
772
|
props: {
|
|
@@ -787,21 +787,21 @@ const I = /* @__PURE__ */ g(Ae, [["render", Ue]]), Ge = {
|
|
|
787
787
|
required: !1
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
}, Ze = { class: "multiple-file-uploads mb-4" }, Ee = { class: "row" },
|
|
791
|
-
/* @__PURE__ */
|
|
790
|
+
}, Ze = { class: "multiple-file-uploads mb-4" }, Ee = { class: "row" }, Qe = { class: "col-12 col-md me-auto" }, Ye = /* @__PURE__ */ a("div", { class: "col mw-fit-content" }, [
|
|
791
|
+
/* @__PURE__ */ a("button", {
|
|
792
792
|
type: "button",
|
|
793
793
|
class: "btn btn-tertiary me-0",
|
|
794
794
|
"data-delete": ""
|
|
795
795
|
}, "Delete")
|
|
796
|
-
], -1),
|
|
797
|
-
function
|
|
798
|
-
const
|
|
799
|
-
return
|
|
800
|
-
|
|
801
|
-
|
|
796
|
+
], -1), Je = ["data-maxfiles"];
|
|
797
|
+
function Xe(e, r, t, o, f, s) {
|
|
798
|
+
const i = H("Input");
|
|
799
|
+
return l(), c("div", Ze, [
|
|
800
|
+
a("div", Ee, [
|
|
801
|
+
a("div", {
|
|
802
802
|
class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
803
803
|
}, [
|
|
804
|
-
|
|
804
|
+
S(i, {
|
|
805
805
|
type: "file",
|
|
806
806
|
id: t.id,
|
|
807
807
|
name: `${t.id}[]`,
|
|
@@ -812,58 +812,70 @@ function Je(e, n, t, d, h, a) {
|
|
|
812
812
|
"data-filesize": t.maxfilesize
|
|
813
813
|
}, null, 8, ["id", "name", "data-filesize"])
|
|
814
814
|
], 2),
|
|
815
|
-
|
|
815
|
+
a("div", Qe, [
|
|
816
816
|
b(e.$slots, "default")
|
|
817
817
|
]),
|
|
818
|
-
|
|
818
|
+
Ye
|
|
819
819
|
]),
|
|
820
|
-
|
|
820
|
+
a("button", {
|
|
821
821
|
type: "button",
|
|
822
822
|
class: "btn btn-secondary me-0",
|
|
823
823
|
"data-add": "",
|
|
824
824
|
"data-maxfiles": t.maxfiles
|
|
825
|
-
}, "+ Add file", 8,
|
|
825
|
+
}, "+ Add file", 8, Je)
|
|
826
826
|
]);
|
|
827
827
|
}
|
|
828
|
-
const
|
|
829
|
-
function
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
828
|
+
const di = /* @__PURE__ */ g(Ge, [["render", Xe]]);
|
|
829
|
+
function et(e) {
|
|
830
|
+
let r = e.querySelectorAll("details"), t = e.querySelectorAll("summary");
|
|
831
|
+
if (r.forEach((o) => {
|
|
832
|
+
o.classList.add("accordion-item");
|
|
833
|
+
}), t.forEach((o) => {
|
|
834
|
+
o.classList.add("accordion-header"), o.classList.add("accordion-button"), o.classList.add("h4");
|
|
835
|
+
}), !e.classList.contains("accordion--keep-open")) {
|
|
836
|
+
const o = e.querySelectorAll(":scope > details");
|
|
837
|
+
o.forEach((f) => {
|
|
838
|
+
f.addEventListener("click", () => {
|
|
839
|
+
o.forEach((s) => {
|
|
840
|
+
s !== f && s.removeAttribute("open");
|
|
836
841
|
});
|
|
837
842
|
});
|
|
838
843
|
});
|
|
839
844
|
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
845
|
+
}
|
|
846
|
+
const O = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets";
|
|
847
|
+
class tt extends HTMLElement {
|
|
848
|
+
constructor() {
|
|
849
|
+
super(), this.attachShadow({ mode: "open" });
|
|
850
|
+
const r = document.createElement("template");
|
|
851
|
+
r.innerHTML = `
|
|
852
|
+
<style>
|
|
853
|
+
@import "${O}/css/core.min.css";
|
|
854
|
+
@import "${O}/css/components/accordion.css";
|
|
855
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
856
|
+
</style>
|
|
857
|
+
<div class="accordion">
|
|
858
|
+
<slot></slot>
|
|
859
|
+
</div>
|
|
860
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
861
|
+
}
|
|
862
|
+
connectedCallback() {
|
|
863
|
+
et(this), this.insertAdjacentHTML("beforebegin", `<link rel="stylesheet" href="${O}/css/components/accordion.css">`);
|
|
843
864
|
}
|
|
844
|
-
window.addEventListener("hashchange", function() {
|
|
845
|
-
if (window.location.hash && document.querySelector(window.location.hash + " summary")) {
|
|
846
|
-
const n = document.querySelector(window.location.hash + " summary");
|
|
847
|
-
n instanceof HTMLElement && n.click();
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
865
|
}
|
|
851
|
-
|
|
866
|
+
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", tt);
|
|
867
|
+
const st = {
|
|
852
868
|
name: "Accordion",
|
|
853
869
|
props: {},
|
|
854
870
|
mounted() {
|
|
855
|
-
Xe(this.$refs.wrapper);
|
|
856
871
|
}
|
|
857
|
-
},
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
};
|
|
861
|
-
function st(e, n, t, d, h, a) {
|
|
862
|
-
return o(), l("div", tt, [
|
|
872
|
+
}, at = { ref: "wrapper" };
|
|
873
|
+
function it(e, r, t, o, f, s) {
|
|
874
|
+
return l(), c("iam-accordion", at, [
|
|
863
875
|
b(e.$slots, "default")
|
|
864
876
|
], 512);
|
|
865
877
|
}
|
|
866
|
-
const
|
|
878
|
+
const ui = /* @__PURE__ */ g(st, [["render", it]]), nt = {
|
|
867
879
|
name: "AccordionItem",
|
|
868
880
|
props: {
|
|
869
881
|
title: {
|
|
@@ -890,7 +902,7 @@ const $i = /* @__PURE__ */ g(et, [["render", st]]), at = {
|
|
|
890
902
|
},
|
|
891
903
|
computed: {
|
|
892
904
|
createID() {
|
|
893
|
-
return (e) => `${
|
|
905
|
+
return (e) => `${me(e)}`;
|
|
894
906
|
}
|
|
895
907
|
},
|
|
896
908
|
data() {
|
|
@@ -898,33 +910,24 @@ const $i = /* @__PURE__ */ g(et, [["render", st]]), at = {
|
|
|
898
910
|
show: !this.lazy
|
|
899
911
|
};
|
|
900
912
|
}
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
function ot(e, n, t, d, h, a) {
|
|
906
|
-
return o(), l("details", {
|
|
907
|
-
class: "accordion-item",
|
|
908
|
-
id: a.createID(t.title)
|
|
913
|
+
}, rt = ["id"], ot = ["classList"];
|
|
914
|
+
function lt(e, r, t, o, f, s) {
|
|
915
|
+
return l(), c("details", {
|
|
916
|
+
id: s.createID(t.title)
|
|
909
917
|
}, [
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
onClick: n[0] || (n[0] = (r) => h.show = !0)
|
|
918
|
+
a("summary", {
|
|
919
|
+
classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
|
|
913
920
|
}, [
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
h.show ? (o(), l("div", rt, [
|
|
923
|
-
b(e.$slots, "default")
|
|
924
|
-
])) : p("", !0)
|
|
925
|
-
], 8, it);
|
|
921
|
+
j(k(t.title), 1),
|
|
922
|
+
t.badge ? (l(), c("span", {
|
|
923
|
+
key: 0,
|
|
924
|
+
class: v(`badge bg-${t.badgecolour}`)
|
|
925
|
+
}, k(t.badge), 3)) : p("", !0)
|
|
926
|
+
], 8, ot),
|
|
927
|
+
b(e.$slots, "default")
|
|
928
|
+
], 8, rt);
|
|
926
929
|
}
|
|
927
|
-
const
|
|
930
|
+
const fi = /* @__PURE__ */ g(nt, [["render", lt]]), ct = {
|
|
928
931
|
name: "Header",
|
|
929
932
|
props: {
|
|
930
933
|
title: {
|
|
@@ -941,33 +944,33 @@ const Ai = /* @__PURE__ */ g(at, [["render", ot]]), lt = {
|
|
|
941
944
|
required: !1
|
|
942
945
|
}
|
|
943
946
|
}
|
|
944
|
-
}, dt = { class: "container" },
|
|
945
|
-
function
|
|
946
|
-
return
|
|
947
|
-
|
|
947
|
+
}, dt = { class: "container" }, ut = { class: "row" }, ft = { class: "col-sm-6" }, ht = { class: "pt-5 pb-3 px-4" }, mt = { class: "col-sm-6 col-md-5 ms-auto" }, _t = ["src"];
|
|
948
|
+
function yt(e, r, t, o, f, s) {
|
|
949
|
+
return l(), c("div", dt, [
|
|
950
|
+
a("div", {
|
|
948
951
|
class: v("bg-" + t.background + " mb-4")
|
|
949
952
|
}, [
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
953
|
+
a("div", ut, [
|
|
954
|
+
a("div", ft, [
|
|
955
|
+
a("div", ht, [
|
|
956
|
+
a("h2", null, k(t.title), 1),
|
|
954
957
|
b(e.$slots, "default")
|
|
955
958
|
])
|
|
956
959
|
]),
|
|
957
|
-
|
|
958
|
-
t.image ? (
|
|
960
|
+
a("div", mt, [
|
|
961
|
+
t.image ? (l(), c("img", {
|
|
959
962
|
key: 0,
|
|
960
963
|
src: t.image,
|
|
961
964
|
alt: "",
|
|
962
965
|
class: "h-100 w-100 object-cover"
|
|
963
|
-
}, null, 8,
|
|
966
|
+
}, null, 8, _t)) : p("", !0)
|
|
964
967
|
])
|
|
965
968
|
])
|
|
966
969
|
], 2)
|
|
967
970
|
]);
|
|
968
971
|
}
|
|
969
|
-
const
|
|
970
|
-
const
|
|
972
|
+
const hi = /* @__PURE__ */ g(ct, [["render", yt]]);
|
|
973
|
+
const pt = {
|
|
971
974
|
name: "Card",
|
|
972
975
|
props: {
|
|
973
976
|
link: {
|
|
@@ -1037,8 +1040,8 @@ const yt = {
|
|
|
1037
1040
|
},
|
|
1038
1041
|
cardContent() {
|
|
1039
1042
|
return () => {
|
|
1040
|
-
const e = function(
|
|
1041
|
-
switch (
|
|
1043
|
+
const e = function(f) {
|
|
1044
|
+
switch (f) {
|
|
1042
1045
|
case "Modern method":
|
|
1043
1046
|
return "bg-secondary text-primary";
|
|
1044
1047
|
case "Freehold":
|
|
@@ -1046,74 +1049,74 @@ const yt = {
|
|
|
1046
1049
|
default:
|
|
1047
1050
|
return "bg-body text-white";
|
|
1048
1051
|
}
|
|
1049
|
-
},
|
|
1052
|
+
}, r = this.details && this.details.tags ? this.details.tags.map((f) => `<span class="badge rounded-pill py-2 px-3 mb-3 me-2 ${e(f)}">${f}</span>`).join("") : "", t = this.title ? `<span class="card-title d-block ${this.titleclass}">${this.title}${this.subtitle ? ` <span class="d-block fw-normal font-body text-body small">${this.subtitle}</span>` : ""}</span>` : "", o = `
|
|
1050
1053
|
${this.details && this.details.guideprice ? `<span class="d-block h6 text-dark mb-1">Price guide: ${this.details.guideprice}</span>` : ""}
|
|
1051
1054
|
${this.details && this.details.auctiontime ? `<span class="d-block h6 text-primary mb-4">Auction time left: ${this.details.auctiontime}</span>` : ""}
|
|
1052
1055
|
${this.details && this.details.readtime ? `<span class="d-block h6 text-primary mb-4"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="23" viewBox="0 0 22 23" class="icon ms-0 me-2"><path d="M11 1.63c-5.176 0-9.37 4.194-9.37 9.37 0 5.176 4.194 9.37 9.37 9.37 5.176 0 9.37-4.194 9.37-9.37 0-5.176-4.194-9.37-9.37-9.37M11 0c6.075 0 11 4.925 11 11s-4.925 11-11 11S0 17.075 0 11 4.925 0 11 0" fill="var(--colour-secondary)" /><path d="M9.62 5.39c0-.473.368-.856.82-.856.454 0 .822.383.822.855v6.27l3.25 1.898c.395.23.536.75.314 1.16-.22.412-.72.558-1.115.328l-4.09-2.39V5.39z" fill="var(--colour-primary)"/></svg>${this.details.readtime}</span>` : ""}
|
|
1053
1056
|
`;
|
|
1054
|
-
return `${
|
|
1057
|
+
return `${r}${t}${o}${this.content}`;
|
|
1055
1058
|
};
|
|
1056
1059
|
}
|
|
1057
1060
|
}
|
|
1058
|
-
},
|
|
1061
|
+
}, bt = ["href", "title", "target"], vt = {
|
|
1059
1062
|
key: 0,
|
|
1060
1063
|
class: "card-header__wrapper"
|
|
1061
|
-
},
|
|
1064
|
+
}, gt = ["src"], At = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], St = ["src"], $t = ["innerHTML"], qt = {
|
|
1062
1065
|
key: 1,
|
|
1063
1066
|
class: "card-footer"
|
|
1064
1067
|
}, xt = { class: "visually-hidden" };
|
|
1065
|
-
function
|
|
1066
|
-
return
|
|
1068
|
+
function Lt(e, r, t, o, f, s) {
|
|
1069
|
+
return l(), c("a", {
|
|
1067
1070
|
href: t.link,
|
|
1068
1071
|
class: v("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
|
|
1069
1072
|
title: t.ctatext + ": " + t.title + (t.subtitle ? " - " + t.subtitle : ""),
|
|
1070
1073
|
target: t.target
|
|
1071
1074
|
}, [
|
|
1072
|
-
t.image ? (
|
|
1073
|
-
|
|
1075
|
+
t.image ? (l(), c("div", vt, [
|
|
1076
|
+
a("img", {
|
|
1074
1077
|
src: t.image,
|
|
1075
1078
|
alt: "",
|
|
1076
1079
|
loading: "lazy",
|
|
1077
1080
|
class: "card-image"
|
|
1078
|
-
}, null, 8,
|
|
1079
|
-
|
|
1080
|
-
this.details && this.details.status ? (
|
|
1081
|
+
}, null, 8, gt),
|
|
1082
|
+
a("div", At, [
|
|
1083
|
+
this.details && this.details.status ? (l(), c("span", {
|
|
1081
1084
|
key: 0,
|
|
1082
1085
|
class: "badge bg-primary p-2 me-2",
|
|
1083
|
-
innerHTML:
|
|
1086
|
+
innerHTML: s.cardStatus()
|
|
1084
1087
|
}, null, 8, wt)) : p("", !0),
|
|
1085
|
-
this.details && (this.details.images || this.details.videos) ? (
|
|
1088
|
+
this.details && (this.details.images || this.details.videos) ? (l(), c("span", {
|
|
1086
1089
|
key: 1,
|
|
1087
1090
|
class: "badge bg-black bg-opacity-50 p-2 align-self-end",
|
|
1088
|
-
innerHTML:
|
|
1091
|
+
innerHTML: s.cardMedia()
|
|
1089
1092
|
}, null, 8, kt)) : p("", !0)
|
|
1090
1093
|
]),
|
|
1091
|
-
t.details && t.details.logo ? (
|
|
1094
|
+
t.details && t.details.logo ? (l(), c("img", {
|
|
1092
1095
|
key: 0,
|
|
1093
1096
|
src: t.details.logo,
|
|
1094
1097
|
alt: "",
|
|
1095
1098
|
loading: "lazy",
|
|
1096
1099
|
class: "card-logo"
|
|
1097
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, St)) : p("", !0)
|
|
1098
1101
|
])) : p("", !0),
|
|
1099
|
-
|
|
1102
|
+
a("div", {
|
|
1100
1103
|
class: "card-body",
|
|
1101
|
-
innerHTML:
|
|
1102
|
-
}, null, 8,
|
|
1103
|
-
t.hidectatext == !1 ? (
|
|
1104
|
-
|
|
1104
|
+
innerHTML: s.cardContent()
|
|
1105
|
+
}, null, 8, $t),
|
|
1106
|
+
t.hidectatext == !1 ? (l(), c("div", qt, [
|
|
1107
|
+
a("span", {
|
|
1105
1108
|
class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
|
|
1106
1109
|
}, [
|
|
1107
|
-
|
|
1108
|
-
|
|
1110
|
+
j(k(t.ctatext), 1),
|
|
1111
|
+
a("span", xt, ": " + k(t.title), 1)
|
|
1109
1112
|
], 2)
|
|
1110
1113
|
])) : p("", !0)
|
|
1111
|
-
], 10,
|
|
1114
|
+
], 10, bt);
|
|
1112
1115
|
}
|
|
1113
|
-
const
|
|
1114
|
-
const
|
|
1116
|
+
const Q = /* @__PURE__ */ g(pt, [["render", Lt]]);
|
|
1117
|
+
const Tt = {
|
|
1115
1118
|
components: {
|
|
1116
|
-
Card:
|
|
1119
|
+
Card: Q
|
|
1117
1120
|
},
|
|
1118
1121
|
name: "CardDeck",
|
|
1119
1122
|
props: {
|
|
@@ -1167,83 +1170,83 @@ const Lt = {
|
|
|
1167
1170
|
default: !1
|
|
1168
1171
|
}
|
|
1169
1172
|
}
|
|
1170
|
-
},
|
|
1171
|
-
function
|
|
1172
|
-
const
|
|
1173
|
-
return
|
|
1173
|
+
}, Mt = ["data-card-type"];
|
|
1174
|
+
function Ht(e, r, t, o, f, s) {
|
|
1175
|
+
const i = H("Card");
|
|
1176
|
+
return l(), c("div", {
|
|
1174
1177
|
class: "container card-deck prevent-invert",
|
|
1175
1178
|
"data-card-type": t.cardtype
|
|
1176
1179
|
}, [
|
|
1177
1180
|
b(e.$slots, "default"),
|
|
1178
|
-
|
|
1181
|
+
a("div", {
|
|
1179
1182
|
class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1180
1183
|
}, [
|
|
1181
|
-
(
|
|
1184
|
+
(l(!0), c(x, null, L(t.items, (n, h) => (l(), c("div", {
|
|
1182
1185
|
class: "col",
|
|
1183
|
-
key:
|
|
1186
|
+
key: h
|
|
1184
1187
|
}, [
|
|
1185
|
-
|
|
1188
|
+
S(i, T(n, {
|
|
1186
1189
|
class: t.cardclass,
|
|
1187
1190
|
type: t.cardtype,
|
|
1188
|
-
btntype:
|
|
1189
|
-
titleclass:
|
|
1190
|
-
ctatext:
|
|
1191
|
+
btntype: n.btntype ? n.btntype : t.btntype,
|
|
1192
|
+
titleclass: n.titleclass ? n.titleclass : t.titleclass,
|
|
1193
|
+
ctatext: n.ctatext,
|
|
1191
1194
|
hidectatext: t.hidectatext
|
|
1192
1195
|
}), null, 16, ["class", "type", "btntype", "titleclass", "ctatext", "hidectatext"])
|
|
1193
1196
|
]))), 128))
|
|
1194
1197
|
], 2),
|
|
1195
1198
|
b(e.$slots, "after")
|
|
1196
|
-
], 8,
|
|
1199
|
+
], 8, Mt);
|
|
1197
1200
|
}
|
|
1198
|
-
const Ct = /* @__PURE__ */ g(
|
|
1199
|
-
function
|
|
1200
|
-
var
|
|
1201
|
-
let t = e.querySelector(".carousel__inner"),
|
|
1201
|
+
const Ct = /* @__PURE__ */ g(Tt, [["render", Ht]]);
|
|
1202
|
+
function Nt(e) {
|
|
1203
|
+
var r;
|
|
1204
|
+
let t = e.querySelector(".carousel__inner"), o = e.querySelectorAll(".carousel__item").length;
|
|
1202
1205
|
e.getAttribute("data-cols");
|
|
1203
|
-
let
|
|
1204
|
-
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(
|
|
1205
|
-
clearTimeout(
|
|
1206
|
-
let
|
|
1207
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1208
|
-
|
|
1209
|
-
}), e.querySelector(".control-" +
|
|
1206
|
+
let f = e.getAttribute("data-sm-cols"), s = e.getAttribute("data-md-cols");
|
|
1207
|
+
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(i) {
|
|
1208
|
+
clearTimeout(r), r = setTimeout(function() {
|
|
1209
|
+
let n = t.clientWidth, h = t.scrollWidth, w = t.scrollLeft, $ = Math.round(w / h * o) + 1, M = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1210
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I, C) => {
|
|
1211
|
+
I.classList.remove("active");
|
|
1212
|
+
}), e.querySelector(".control-" + $).classList.add("active"), $ == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + n > M ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
1210
1213
|
}, 100);
|
|
1211
|
-
}, !1), e.addEventListener("click", function(
|
|
1212
|
-
for (var
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}),
|
|
1217
|
-
const
|
|
1214
|
+
}, !1), e.addEventListener("click", function(i) {
|
|
1215
|
+
for (var n = i.target; n && n != this; n = n.parentNode)
|
|
1216
|
+
if (n.matches(".carousel__controls a")) {
|
|
1217
|
+
i.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((w, $) => {
|
|
1218
|
+
w.classList.remove("active");
|
|
1219
|
+
}), n.classList.add("active");
|
|
1220
|
+
const h = document.querySelector(n.getAttribute("href"));
|
|
1218
1221
|
t.scroll({
|
|
1219
1222
|
top: 0,
|
|
1220
|
-
left:
|
|
1223
|
+
left: h.offsetLeft,
|
|
1221
1224
|
behavior: "smooth"
|
|
1222
1225
|
});
|
|
1223
1226
|
break;
|
|
1224
1227
|
}
|
|
1225
|
-
}, !1), e.addEventListener("click", function(
|
|
1226
|
-
for (var
|
|
1227
|
-
if (
|
|
1228
|
-
|
|
1229
|
-
let
|
|
1228
|
+
}, !1), e.addEventListener("click", function(i) {
|
|
1229
|
+
for (var n = i.target; n && n != this; n = n.parentNode)
|
|
1230
|
+
if (n.matches(".btn-next, .btn-prev")) {
|
|
1231
|
+
i.preventDefault();
|
|
1232
|
+
let h = n.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1230
1233
|
t.scroll({
|
|
1231
1234
|
top: 0,
|
|
1232
|
-
left:
|
|
1235
|
+
left: h,
|
|
1233
1236
|
behavior: "smooth"
|
|
1234
1237
|
});
|
|
1235
1238
|
break;
|
|
1236
1239
|
}
|
|
1237
|
-
}, !1),
|
|
1240
|
+
}, !1), o == 1 && e.classList.add("hide-btns"), f >= o && e.classList.add("hide-sm-btns"), s >= o && e.classList.add("hide-md-btns");
|
|
1238
1241
|
}
|
|
1239
|
-
let
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
const
|
|
1242
|
+
let P = Ct.props;
|
|
1243
|
+
P.gap.default = 0;
|
|
1244
|
+
P.cols.default = 1;
|
|
1245
|
+
P.smcols.default = 2;
|
|
1246
|
+
P.mdcols.default = 4;
|
|
1247
|
+
const Bt = {
|
|
1245
1248
|
components: {
|
|
1246
|
-
Card:
|
|
1249
|
+
Card: Q
|
|
1247
1250
|
},
|
|
1248
1251
|
name: "Carousel",
|
|
1249
1252
|
data() {
|
|
@@ -1252,7 +1255,7 @@ const Nt = {
|
|
|
1252
1255
|
};
|
|
1253
1256
|
},
|
|
1254
1257
|
props: {
|
|
1255
|
-
...
|
|
1258
|
+
...P,
|
|
1256
1259
|
colclass: {
|
|
1257
1260
|
type: String,
|
|
1258
1261
|
required: !1
|
|
@@ -1269,40 +1272,40 @@ const Nt = {
|
|
|
1269
1272
|
},
|
|
1270
1273
|
mounted() {
|
|
1271
1274
|
this.id = this._uid, this.$nextTick(function() {
|
|
1272
|
-
|
|
1275
|
+
Nt(this.$refs.wrapper);
|
|
1273
1276
|
});
|
|
1274
1277
|
}
|
|
1275
|
-
},
|
|
1278
|
+
}, Pt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Dt = { class: "carousel__wrapper" }, It = { class: "carousel__inner" }, zt = ["id"], Vt = ["innerHTML", "id"], Ft = ["href"], Ot = /* @__PURE__ */ a("button", {
|
|
1276
1279
|
class: "btn btn-prev",
|
|
1277
1280
|
"data-go": "0",
|
|
1278
1281
|
disabled: ""
|
|
1279
|
-
}, "Prev", -1),
|
|
1282
|
+
}, "Prev", -1), jt = /* @__PURE__ */ a("button", {
|
|
1280
1283
|
class: "btn btn-next",
|
|
1281
1284
|
"data-go": "2"
|
|
1282
1285
|
}, "Next", -1);
|
|
1283
|
-
function
|
|
1284
|
-
const
|
|
1285
|
-
return
|
|
1286
|
+
function Rt(e, r, t, o, f, s) {
|
|
1287
|
+
const i = H("Card");
|
|
1288
|
+
return l(), c("div", {
|
|
1286
1289
|
class: "container carousel",
|
|
1287
|
-
id: "carousel" +
|
|
1290
|
+
id: "carousel" + f.id,
|
|
1288
1291
|
ref: "wrapper",
|
|
1289
1292
|
"data-cols": e.cols,
|
|
1290
1293
|
"data-sm-cols": e.smcols,
|
|
1291
1294
|
"data-md-cols": e.mdcols
|
|
1292
1295
|
}, [
|
|
1293
1296
|
b(e.$slots, "default"),
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
t.type == "card" ? (
|
|
1297
|
+
a("div", Dt, [
|
|
1298
|
+
a("div", It, [
|
|
1299
|
+
t.type == "card" ? (l(), c("div", {
|
|
1297
1300
|
key: 0,
|
|
1298
1301
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1299
1302
|
}, [
|
|
1300
|
-
(
|
|
1303
|
+
(l(!0), c(x, null, L(e.items, (n, h) => (l(), c("div", {
|
|
1301
1304
|
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1302
|
-
key:
|
|
1303
|
-
id: "carousel" +
|
|
1305
|
+
key: h,
|
|
1306
|
+
id: "carousel" + f.id + "slide" + (h + 1)
|
|
1304
1307
|
}, [
|
|
1305
|
-
|
|
1308
|
+
S(i, T(n, {
|
|
1306
1309
|
class: e.cardclass,
|
|
1307
1310
|
type: e.cardtype,
|
|
1308
1311
|
btnyype: e.btntype,
|
|
@@ -1310,36 +1313,72 @@ function jt(e, n, t, d, h, a) {
|
|
|
1310
1313
|
ctatext: e.ctatext,
|
|
1311
1314
|
hidectatext: e.hidectatext
|
|
1312
1315
|
}), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
|
|
1313
|
-
], 10,
|
|
1316
|
+
], 10, zt))), 128))
|
|
1314
1317
|
], 2)) : p("", !0),
|
|
1315
|
-
t.type != "card" ? (
|
|
1318
|
+
t.type != "card" ? (l(), c("div", {
|
|
1316
1319
|
key: 1,
|
|
1317
1320
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1318
1321
|
}, [
|
|
1319
|
-
(
|
|
1322
|
+
(l(!0), c(x, null, L(e.items, (n, h) => (l(), c("div", {
|
|
1320
1323
|
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1321
|
-
key:
|
|
1322
|
-
innerHTML:
|
|
1323
|
-
id: "carousel" +
|
|
1324
|
-
}, null, 10,
|
|
1324
|
+
key: h,
|
|
1325
|
+
innerHTML: s.content(n),
|
|
1326
|
+
id: "carousel" + f.id + "slide" + (h + 1)
|
|
1327
|
+
}, null, 10, Vt))), 128))
|
|
1325
1328
|
], 2)) : p("", !0)
|
|
1326
1329
|
]),
|
|
1327
|
-
|
|
1330
|
+
a("div", {
|
|
1328
1331
|
class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1329
1332
|
}, [
|
|
1330
|
-
(
|
|
1331
|
-
key:
|
|
1332
|
-
href: "#carousel" +
|
|
1333
|
-
class: v(`control-${
|
|
1334
|
-
}, "Slide " +
|
|
1333
|
+
(l(!0), c(x, null, L(e.items, (n, h) => (l(), c("a", {
|
|
1334
|
+
key: h,
|
|
1335
|
+
href: "#carousel" + f.id + "slide" + (h + 1),
|
|
1336
|
+
class: v(`control-${h + 1}`)
|
|
1337
|
+
}, "Slide " + k(h + 1), 11, Ft))), 128))
|
|
1335
1338
|
], 2),
|
|
1336
1339
|
Ot,
|
|
1337
|
-
|
|
1340
|
+
jt
|
|
1338
1341
|
])
|
|
1339
|
-
], 8,
|
|
1342
|
+
], 8, Pt);
|
|
1343
|
+
}
|
|
1344
|
+
const mi = /* @__PURE__ */ g(Bt, [["render", Rt]]);
|
|
1345
|
+
class Wt extends HTMLElement {
|
|
1346
|
+
constructor() {
|
|
1347
|
+
super(), this.attachShadow({ mode: "open" });
|
|
1348
|
+
const r = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = `@import "${r}/css/components/header.css";`, o = document.createElement("template");
|
|
1349
|
+
o.innerHTML = `
|
|
1350
|
+
<style>
|
|
1351
|
+
@import "${r}/css/core.min.css";
|
|
1352
|
+
${t}
|
|
1353
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1354
|
+
:host {
|
|
1355
|
+
max-width:100%!important;
|
|
1356
|
+
padding:0!important;
|
|
1357
|
+
}
|
|
1358
|
+
</style>
|
|
1359
|
+
<div class="header-banner">
|
|
1360
|
+
<div class="container" part="container">
|
|
1361
|
+
<slot name="breadcrumb"></slot>
|
|
1362
|
+
<div class="header-banner__inner">
|
|
1363
|
+
<slot></slot>
|
|
1364
|
+
</div>
|
|
1365
|
+
</div>
|
|
1366
|
+
<picture>
|
|
1367
|
+
<!-- Actual image only loaded on desktops -->
|
|
1368
|
+
<source srcset="" media="(min-width: 62em)">
|
|
1369
|
+
<!-- Placeholder image -->
|
|
1370
|
+
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />
|
|
1371
|
+
</picture>
|
|
1372
|
+
</div>
|
|
1373
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1374
|
+
}
|
|
1375
|
+
connectedCallback() {
|
|
1376
|
+
const r = this.shadowRoot.querySelector("picture"), t = this.shadowRoot.querySelector("picture source");
|
|
1377
|
+
this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : r.remove();
|
|
1378
|
+
}
|
|
1340
1379
|
}
|
|
1341
|
-
|
|
1342
|
-
const
|
|
1380
|
+
window.customElements.get("iam-header") || window.customElements.define("iam-header", Wt);
|
|
1381
|
+
const Kt = {
|
|
1343
1382
|
name: "Header",
|
|
1344
1383
|
props: {
|
|
1345
1384
|
title: {
|
|
@@ -1351,58 +1390,50 @@ const Wt = {
|
|
|
1351
1390
|
required: !1
|
|
1352
1391
|
}
|
|
1353
1392
|
}
|
|
1354
|
-
},
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
t.image ? (o(), l("picture", Et, [
|
|
1368
|
-
s("source", {
|
|
1369
|
-
srcset: t.image,
|
|
1370
|
-
media: "(min-width: 62em)"
|
|
1371
|
-
}, null, 8, Rt),
|
|
1372
|
-
Qt
|
|
1373
|
-
])) : p("", !0)
|
|
1374
|
-
]);
|
|
1393
|
+
}, Ut = ["image"], Gt = ["innerHTML"];
|
|
1394
|
+
function Zt(e, r, t, o, f, s) {
|
|
1395
|
+
return l(), c("iam-header", {
|
|
1396
|
+
class: "bg-secondary",
|
|
1397
|
+
image: t.image
|
|
1398
|
+
}, [
|
|
1399
|
+
b(e.$slots, "breadcrumb"),
|
|
1400
|
+
t.title ? (l(), c("h1", {
|
|
1401
|
+
key: 0,
|
|
1402
|
+
innerHTML: t.title
|
|
1403
|
+
}, null, 8, Gt)) : p("", !0),
|
|
1404
|
+
b(e.$slots, "default")
|
|
1405
|
+
], 8, Ut);
|
|
1375
1406
|
}
|
|
1376
|
-
const
|
|
1377
|
-
function
|
|
1378
|
-
var
|
|
1379
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1380
|
-
if (
|
|
1407
|
+
const _i = /* @__PURE__ */ g(Kt, [["render", Zt]]);
|
|
1408
|
+
function Et(e) {
|
|
1409
|
+
var r;
|
|
1410
|
+
const t = e.querySelector(".testimonial__images"), o = t.querySelectorAll("img").length;
|
|
1411
|
+
if (o == 1)
|
|
1381
1412
|
return !1;
|
|
1382
1413
|
e.classList.add("testimonial--multi");
|
|
1383
|
-
const
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1414
|
+
const f = function(s) {
|
|
1415
|
+
const i = e.querySelector(".btn-next"), n = e.querySelector(".btn-prev");
|
|
1416
|
+
i.setAttribute("data-go", s + 1), n.setAttribute("data-go", s - 1), i.removeAttribute("disabled"), n.removeAttribute("disabled"), s == 1 ? n.setAttribute("disabled", !0) : s == o && i.setAttribute("disabled", !0);
|
|
1386
1417
|
};
|
|
1387
|
-
t.addEventListener("scroll", function(
|
|
1388
|
-
clearTimeout(
|
|
1389
|
-
let
|
|
1390
|
-
|
|
1418
|
+
t.addEventListener("scroll", function(s) {
|
|
1419
|
+
clearTimeout(r), r = setTimeout(function() {
|
|
1420
|
+
let i = t.scrollWidth, n = t.scrollHeight, h = t.scrollLeft, w = t.scrollTop, $ = Math.round(h / i * o) + 1;
|
|
1421
|
+
h == 0 && w != 0 && ($ = Math.round(w / n * o) + 1), e.setAttribute("data-show", $), f($);
|
|
1391
1422
|
}, 300);
|
|
1392
|
-
}, !1), e.addEventListener("click", function(
|
|
1393
|
-
for (var
|
|
1394
|
-
if (
|
|
1395
|
-
let
|
|
1396
|
-
|
|
1397
|
-
top:
|
|
1398
|
-
left:
|
|
1423
|
+
}, !1), e.addEventListener("click", function(s) {
|
|
1424
|
+
for (var i = s.target; i && i != this; i = i.parentNode)
|
|
1425
|
+
if (i.matches("[data-go]")) {
|
|
1426
|
+
let n = parseInt(i.getAttribute("data-go")), h = 0, w = 0, $ = t.scrollWidth, M = t.scrollHeight;
|
|
1427
|
+
$ > M ? w = Math.floor($ * ((n - 1) / o)) : h = Math.floor(M * ((n - 1) / o)), t.scroll({
|
|
1428
|
+
top: h,
|
|
1429
|
+
left: w,
|
|
1399
1430
|
behavior: "smooth"
|
|
1400
1431
|
});
|
|
1401
1432
|
break;
|
|
1402
1433
|
}
|
|
1403
1434
|
}, !1);
|
|
1404
1435
|
}
|
|
1405
|
-
const
|
|
1436
|
+
const Qt = {
|
|
1406
1437
|
name: "Testimonial",
|
|
1407
1438
|
props: {
|
|
1408
1439
|
items: {
|
|
@@ -1416,68 +1447,68 @@ const Xt = {
|
|
|
1416
1447
|
}
|
|
1417
1448
|
},
|
|
1418
1449
|
mounted() {
|
|
1419
|
-
|
|
1450
|
+
Et(this.$refs.wrapper);
|
|
1420
1451
|
}
|
|
1421
|
-
},
|
|
1452
|
+
}, Yt = {
|
|
1422
1453
|
class: "container testimonial mb-5",
|
|
1423
1454
|
"data-show": "1",
|
|
1424
1455
|
ref: "wrapper"
|
|
1425
|
-
},
|
|
1426
|
-
/* @__PURE__ */
|
|
1456
|
+
}, Jt = { class: "row" }, Xt = { class: "col-md-5 position-relative" }, es = { class: "testimonial__images" }, ts = ["src"], ss = /* @__PURE__ */ a("div", { class: "testimonial__controls" }, [
|
|
1457
|
+
/* @__PURE__ */ a("button", {
|
|
1427
1458
|
"data-go": "0",
|
|
1428
1459
|
disabled: "",
|
|
1429
1460
|
class: "btn-prev"
|
|
1430
1461
|
}, "Previous"),
|
|
1431
|
-
/* @__PURE__ */
|
|
1462
|
+
/* @__PURE__ */ a("button", {
|
|
1432
1463
|
"data-go": "2",
|
|
1433
1464
|
class: "btn-next"
|
|
1434
1465
|
}, "Next")
|
|
1435
|
-
], -1),
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1438
|
-
|
|
1466
|
+
], -1), as = { class: "col-md-7" }, is = /* @__PURE__ */ a("h2", null, "What our customers think…", -1), ns = { class: "testimonial__content" }, rs = ["innerHTML"], os = ["innerHTML"], ls = { class: "testimonial__after" }, cs = /* @__PURE__ */ a("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1467
|
+
function ds(e, r, t, o, f, s) {
|
|
1468
|
+
return l(), c("div", Yt, [
|
|
1469
|
+
a("div", {
|
|
1439
1470
|
class: v("bg-" + t.background)
|
|
1440
1471
|
}, [
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
(
|
|
1445
|
-
key:
|
|
1446
|
-
src:
|
|
1472
|
+
a("div", Jt, [
|
|
1473
|
+
a("div", Xt, [
|
|
1474
|
+
a("div", es, [
|
|
1475
|
+
(l(!0), c(x, null, L(t.items, (i, n) => (l(), c("img", {
|
|
1476
|
+
key: n,
|
|
1477
|
+
src: i.image ? i.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1447
1478
|
alt: "",
|
|
1448
|
-
class: v("h-100 w-100 object-cover" + (
|
|
1449
|
-
}, null, 10,
|
|
1479
|
+
class: v("h-100 w-100 object-cover" + (i.image ? "" : " opacity-0"))
|
|
1480
|
+
}, null, 10, ts))), 128))
|
|
1450
1481
|
]),
|
|
1451
|
-
|
|
1482
|
+
ss
|
|
1452
1483
|
]),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
(
|
|
1457
|
-
key:
|
|
1458
|
-
class: v(
|
|
1484
|
+
a("div", as, [
|
|
1485
|
+
is,
|
|
1486
|
+
a("div", ns, [
|
|
1487
|
+
(l(!0), c(x, null, L(t.items, (i, n) => (l(), c("blockquote", {
|
|
1488
|
+
key: n,
|
|
1489
|
+
class: v(i.class)
|
|
1459
1490
|
}, [
|
|
1460
|
-
|
|
1461
|
-
innerHTML:
|
|
1462
|
-
}, null, 8,
|
|
1463
|
-
|
|
1464
|
-
innerHTML:
|
|
1465
|
-
}, null, 8,
|
|
1491
|
+
a("div", {
|
|
1492
|
+
innerHTML: i.quote
|
|
1493
|
+
}, null, 8, rs),
|
|
1494
|
+
a("cite", {
|
|
1495
|
+
innerHTML: i.cite
|
|
1496
|
+
}, null, 8, os)
|
|
1466
1497
|
], 2))), 128))
|
|
1467
1498
|
]),
|
|
1468
|
-
|
|
1499
|
+
a("div", ls, [
|
|
1469
1500
|
b(e.$slots, "default")
|
|
1470
1501
|
])
|
|
1471
1502
|
])
|
|
1472
1503
|
]),
|
|
1473
|
-
|
|
1504
|
+
cs
|
|
1474
1505
|
], 2)
|
|
1475
1506
|
], 512);
|
|
1476
1507
|
}
|
|
1477
|
-
const
|
|
1478
|
-
const
|
|
1508
|
+
const yi = /* @__PURE__ */ g(Qt, [["render", ds]]);
|
|
1509
|
+
const us = {
|
|
1479
1510
|
components: {
|
|
1480
|
-
Input:
|
|
1511
|
+
Input: D
|
|
1481
1512
|
},
|
|
1482
1513
|
name: "PropertySearchbar",
|
|
1483
1514
|
props: {
|
|
@@ -1621,46 +1652,46 @@ const ms = {
|
|
|
1621
1652
|
];
|
|
1622
1653
|
}
|
|
1623
1654
|
}
|
|
1624
|
-
},
|
|
1655
|
+
}, fs = {
|
|
1625
1656
|
class: "container",
|
|
1626
1657
|
ref: "wrapper"
|
|
1627
|
-
},
|
|
1658
|
+
}, hs = { class: "property-searchbar" }, ms = ["action", "method"], _s = { class: "col-12 col-md-3" }, ys = { class: "col-12 col-md" }, ps = /* @__PURE__ */ a("span", { class: "form-label d-none d-md-block" }, "Price range", -1), bs = {
|
|
1628
1659
|
class: "row",
|
|
1629
1660
|
"data-input-range": ""
|
|
1630
|
-
},
|
|
1661
|
+
}, vs = { class: "col-12 col-md" }, gs = /* @__PURE__ */ a("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
|
|
1631
1662
|
class: "row",
|
|
1632
1663
|
"data-input-range": ""
|
|
1633
|
-
},
|
|
1634
|
-
/* @__PURE__ */
|
|
1664
|
+
}, ws = { class: "col-12 col-md-2" }, ks = /* @__PURE__ */ a("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1665
|
+
/* @__PURE__ */ a("button", {
|
|
1635
1666
|
class: "btn w-100 me-0",
|
|
1636
1667
|
type: "submit",
|
|
1637
1668
|
value: "submit"
|
|
1638
1669
|
}, "Search")
|
|
1639
1670
|
], -1);
|
|
1640
|
-
function
|
|
1641
|
-
const
|
|
1642
|
-
return
|
|
1671
|
+
function Ss(e, r, t, o, f, s) {
|
|
1672
|
+
const i = H("Input");
|
|
1673
|
+
return l(), c("div", fs, [
|
|
1643
1674
|
b(e.$slots, "default"),
|
|
1644
|
-
|
|
1645
|
-
|
|
1675
|
+
a("div", hs, [
|
|
1676
|
+
a("form", {
|
|
1646
1677
|
class: "row",
|
|
1647
1678
|
action: t.formaction,
|
|
1648
1679
|
method: t.formmethod
|
|
1649
1680
|
}, [
|
|
1650
|
-
|
|
1651
|
-
|
|
1681
|
+
a("fieldset", _s, [
|
|
1682
|
+
S(i, {
|
|
1652
1683
|
inputClass: "input--locations",
|
|
1653
|
-
modelValue:
|
|
1654
|
-
"onUpdate:modelValue":
|
|
1684
|
+
modelValue: s.locationSet,
|
|
1685
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => s.locationSet = n),
|
|
1655
1686
|
label: "Location",
|
|
1656
1687
|
id: "location",
|
|
1657
|
-
options:
|
|
1688
|
+
options: s.locationsList(),
|
|
1658
1689
|
required: "",
|
|
1659
1690
|
placeholder: "i.e. Newcastle or NE1",
|
|
1660
|
-
onKeyupEvent:
|
|
1691
|
+
onKeyupEvent: r[1] || (r[1] = (n) => s.locationKeyup(...arguments)),
|
|
1661
1692
|
ref: "search"
|
|
1662
1693
|
}, null, 8, ["modelValue", "options"]),
|
|
1663
|
-
|
|
1694
|
+
S(i, {
|
|
1664
1695
|
class: "select--miles",
|
|
1665
1696
|
label: "Miles",
|
|
1666
1697
|
id: "miles",
|
|
@@ -1668,10 +1699,10 @@ function qs(e, n, t, d, h, a) {
|
|
|
1668
1699
|
options: t.distances
|
|
1669
1700
|
}, null, 8, ["options"])
|
|
1670
1701
|
]),
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1702
|
+
a("fieldset", ys, [
|
|
1703
|
+
ps,
|
|
1704
|
+
a("div", bs, [
|
|
1705
|
+
S(i, {
|
|
1675
1706
|
class: "col-6",
|
|
1676
1707
|
label: "Minimum price",
|
|
1677
1708
|
id: "price-min",
|
|
@@ -1679,7 +1710,7 @@ function qs(e, n, t, d, h, a) {
|
|
|
1679
1710
|
type: "select",
|
|
1680
1711
|
options: t.pricemin
|
|
1681
1712
|
}, null, 8, ["options"]),
|
|
1682
|
-
|
|
1713
|
+
S(i, {
|
|
1683
1714
|
class: "col-6",
|
|
1684
1715
|
label: "Maximum price",
|
|
1685
1716
|
id: "price-max",
|
|
@@ -1689,10 +1720,10 @@ function qs(e, n, t, d, h, a) {
|
|
|
1689
1720
|
}, null, 8, ["options"])
|
|
1690
1721
|
])
|
|
1691
1722
|
]),
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1723
|
+
a("fieldset", vs, [
|
|
1724
|
+
gs,
|
|
1725
|
+
a("div", As, [
|
|
1726
|
+
S(i, {
|
|
1696
1727
|
class: "col-6",
|
|
1697
1728
|
label: "Minimum beds",
|
|
1698
1729
|
id: "beds-min",
|
|
@@ -1700,7 +1731,7 @@ function qs(e, n, t, d, h, a) {
|
|
|
1700
1731
|
type: "select",
|
|
1701
1732
|
options: t.bedsmin
|
|
1702
1733
|
}, null, 8, ["options"]),
|
|
1703
|
-
|
|
1734
|
+
S(i, {
|
|
1704
1735
|
class: "col-6",
|
|
1705
1736
|
label: "Maximum beds",
|
|
1706
1737
|
id: "beds-max",
|
|
@@ -1710,37 +1741,37 @@ function qs(e, n, t, d, h, a) {
|
|
|
1710
1741
|
}, null, 8, ["options"])
|
|
1711
1742
|
])
|
|
1712
1743
|
]),
|
|
1713
|
-
|
|
1714
|
-
|
|
1744
|
+
a("fieldset", ws, [
|
|
1745
|
+
S(i, {
|
|
1715
1746
|
label: "Property type",
|
|
1716
1747
|
id: "property-type",
|
|
1717
1748
|
type: "select",
|
|
1718
1749
|
options: t.propertytypes
|
|
1719
1750
|
}, null, 8, ["options"])
|
|
1720
1751
|
]),
|
|
1721
|
-
|
|
1722
|
-
], 8,
|
|
1752
|
+
ks
|
|
1753
|
+
], 8, ms)
|
|
1723
1754
|
]),
|
|
1724
1755
|
b(e.$slots, "after")
|
|
1725
1756
|
], 512);
|
|
1726
1757
|
}
|
|
1727
|
-
const
|
|
1728
|
-
Array.from(e.querySelectorAll("details")).forEach((
|
|
1729
|
-
|
|
1730
|
-
window.matchMedia("(min-width: 62em)").matches &&
|
|
1731
|
-
}, !1),
|
|
1732
|
-
window.matchMedia("(min-width: 62em)").matches &&
|
|
1758
|
+
const pi = /* @__PURE__ */ g(us, [["render", Ss]]), $s = (e) => {
|
|
1759
|
+
Array.from(e.querySelectorAll("details")).forEach((r, t) => {
|
|
1760
|
+
r.addEventListener("mouseenter", function(o) {
|
|
1761
|
+
window.matchMedia("(min-width: 62em)").matches && r.setAttribute("open", "true");
|
|
1762
|
+
}, !1), r.addEventListener("mouseleave", function(o) {
|
|
1763
|
+
window.matchMedia("(min-width: 62em)").matches && r.removeAttribute("open");
|
|
1733
1764
|
}, !1);
|
|
1734
1765
|
}), "IntersectionObserver" in window && new IntersectionObserver(
|
|
1735
1766
|
([t]) => t.target.classList.toggle("is-stuck", t.intersectionRatio < 1),
|
|
1736
1767
|
{ threshold: [1] }
|
|
1737
1768
|
).observe(e);
|
|
1738
1769
|
};
|
|
1739
|
-
const
|
|
1770
|
+
const qs = {
|
|
1740
1771
|
components: {
|
|
1741
|
-
Input:
|
|
1742
|
-
Logo:
|
|
1743
|
-
Icon:
|
|
1772
|
+
Input: D,
|
|
1773
|
+
Logo: fe,
|
|
1774
|
+
Icon: oe
|
|
1744
1775
|
},
|
|
1745
1776
|
name: "Nav",
|
|
1746
1777
|
props: {
|
|
@@ -1810,61 +1841,61 @@ const Ts = {
|
|
|
1810
1841
|
},
|
|
1811
1842
|
mounted() {
|
|
1812
1843
|
this.$nextTick(function() {
|
|
1813
|
-
|
|
1844
|
+
$s(this.$refs.wrapper);
|
|
1814
1845
|
});
|
|
1815
1846
|
}
|
|
1816
|
-
},
|
|
1847
|
+
}, xs = /* @__PURE__ */ a("input", {
|
|
1817
1848
|
type: "checkbox",
|
|
1818
1849
|
name: "showMenu",
|
|
1819
1850
|
id: "showMenu",
|
|
1820
1851
|
class: "d-none"
|
|
1821
|
-
}, null, -1),
|
|
1852
|
+
}, null, -1), Ls = /* @__PURE__ */ a("input", {
|
|
1822
1853
|
type: "checkbox",
|
|
1823
1854
|
name: "showSearch",
|
|
1824
1855
|
id: "showSearch",
|
|
1825
1856
|
class: "d-none"
|
|
1826
|
-
}, null, -1),
|
|
1857
|
+
}, null, -1), Ts = /* @__PURE__ */ a("input", {
|
|
1827
1858
|
type: "checkbox",
|
|
1828
1859
|
name: "showAccount",
|
|
1829
1860
|
id: "showAccount",
|
|
1830
1861
|
class: "d-none"
|
|
1831
|
-
}, null, -1),
|
|
1862
|
+
}, null, -1), Ms = { class: "nav__mobile-bar" }, Hs = { class: "container" }, Cs = { class: "row" }, Ns = {
|
|
1832
1863
|
key: 0,
|
|
1833
1864
|
class: "col mw-md-fit-content nav__logo"
|
|
1834
|
-
},
|
|
1865
|
+
}, Bs = {
|
|
1835
1866
|
key: 1,
|
|
1836
1867
|
class: "col mw-md-fit-content nav__logo"
|
|
1837
|
-
},
|
|
1868
|
+
}, Ps = {
|
|
1838
1869
|
href: "/",
|
|
1839
1870
|
class: "text-decoration-none mb-0"
|
|
1840
|
-
},
|
|
1841
|
-
/* @__PURE__ */
|
|
1842
|
-
], -1),
|
|
1871
|
+
}, Ds = /* @__PURE__ */ a("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1872
|
+
/* @__PURE__ */ a("label", { for: "showMenu" }, "Menu")
|
|
1873
|
+
], -1), Is = { class: "nav__inner" }, zs = { class: "container" }, Vs = { class: "row" }, Fs = {
|
|
1843
1874
|
key: 0,
|
|
1844
1875
|
class: "col mw-md-fit-content nav__logo"
|
|
1845
|
-
},
|
|
1876
|
+
}, Os = {
|
|
1846
1877
|
key: 1,
|
|
1847
1878
|
class: "col mw-md-fit-content nav__logo"
|
|
1848
|
-
},
|
|
1879
|
+
}, js = {
|
|
1849
1880
|
href: "/",
|
|
1850
1881
|
class: "text-decoration-none mb-0"
|
|
1851
|
-
},
|
|
1882
|
+
}, Rs = {
|
|
1852
1883
|
key: 2,
|
|
1853
1884
|
class: "col mw-fit-content nav__search-btn flex-row align-items-center"
|
|
1854
|
-
},
|
|
1855
|
-
/* @__PURE__ */
|
|
1885
|
+
}, Ws = /* @__PURE__ */ a("label", { for: "showSearch" }, [
|
|
1886
|
+
/* @__PURE__ */ a("svg", {
|
|
1856
1887
|
class: "icon",
|
|
1857
1888
|
viewBox: "0 0 32 32"
|
|
1858
1889
|
}, [
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ a("title", null, "Search"),
|
|
1891
|
+
/* @__PURE__ */ a("ellipse", {
|
|
1861
1892
|
cx: "14.92",
|
|
1862
1893
|
cy: "13.81",
|
|
1863
1894
|
rx: "11.92",
|
|
1864
1895
|
ry: "11.81",
|
|
1865
1896
|
class: "icon__outline"
|
|
1866
1897
|
}),
|
|
1867
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ a("line", {
|
|
1868
1899
|
x1: "22.68",
|
|
1869
1900
|
y1: "22.75",
|
|
1870
1901
|
x2: "30",
|
|
@@ -1872,71 +1903,71 @@ const Ts = {
|
|
|
1872
1903
|
class: "icon__outline"
|
|
1873
1904
|
})
|
|
1874
1905
|
])
|
|
1875
|
-
], -1),
|
|
1876
|
-
|
|
1877
|
-
],
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
], -1),
|
|
1906
|
+
], -1), Ks = [
|
|
1907
|
+
Ws
|
|
1908
|
+
], Us = /* @__PURE__ */ a("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1909
|
+
/* @__PURE__ */ a("label", { for: "showMenu" }, "Menu")
|
|
1910
|
+
], -1), Gs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Zs = {
|
|
1880
1911
|
key: 3,
|
|
1881
1912
|
class: "col nav__account-btn flex-row align-items-center"
|
|
1882
|
-
},
|
|
1883
|
-
/* @__PURE__ */
|
|
1913
|
+
}, Es = /* @__PURE__ */ a("label", { for: "showAccount" }, [
|
|
1914
|
+
/* @__PURE__ */ a("svg", {
|
|
1884
1915
|
class: "icon",
|
|
1885
1916
|
viewBox: "0 0 28 28"
|
|
1886
1917
|
}, [
|
|
1887
|
-
/* @__PURE__ */
|
|
1918
|
+
/* @__PURE__ */ a("path", {
|
|
1888
1919
|
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",
|
|
1889
1920
|
transform: "translate(0 -0.001)"
|
|
1890
1921
|
}),
|
|
1891
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ a("path", {
|
|
1892
1923
|
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",
|
|
1893
1924
|
transform: "translate(8.8 4.8)"
|
|
1894
1925
|
})
|
|
1895
1926
|
]),
|
|
1896
|
-
/* @__PURE__ */
|
|
1897
|
-
], -1),
|
|
1898
|
-
|
|
1899
|
-
],
|
|
1927
|
+
/* @__PURE__ */ a("span", null, "My account")
|
|
1928
|
+
], -1), Qs = [
|
|
1929
|
+
Es
|
|
1930
|
+
], Ys = {
|
|
1900
1931
|
key: 4,
|
|
1901
1932
|
class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
|
|
1902
|
-
},
|
|
1933
|
+
}, Js = ["href", "innerHTML"], Xs = {
|
|
1903
1934
|
key: 0,
|
|
1904
1935
|
class: "nav__menu--secondary"
|
|
1905
|
-
},
|
|
1936
|
+
}, ea = { class: "container" }, ta = {
|
|
1906
1937
|
key: 1,
|
|
1907
1938
|
class: "nav__menu--search"
|
|
1908
|
-
},
|
|
1939
|
+
}, sa = { class: "bg-gradient pt-4" }, aa = { class: "container" }, ia = {
|
|
1909
1940
|
key: 0,
|
|
1910
1941
|
class: "nav__menu--account"
|
|
1911
|
-
},
|
|
1942
|
+
}, na = { class: "container" }, ra = { class: "row mb-4" }, oa = {
|
|
1912
1943
|
key: 0,
|
|
1913
1944
|
class: "col mw-md-fit-content nav__logo"
|
|
1914
|
-
},
|
|
1945
|
+
}, la = {
|
|
1915
1946
|
key: 1,
|
|
1916
1947
|
class: "col mw-md-fit-content nav__logo"
|
|
1917
|
-
},
|
|
1948
|
+
}, ca = {
|
|
1918
1949
|
href: "/",
|
|
1919
1950
|
class: "text-decoration-none mb-0"
|
|
1920
|
-
},
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
], -1),
|
|
1923
|
-
function
|
|
1924
|
-
const
|
|
1925
|
-
return
|
|
1926
|
-
class: v(`nav${
|
|
1951
|
+
}, da = /* @__PURE__ */ a("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1952
|
+
/* @__PURE__ */ a("label", { for: "showAccount" }, "Account")
|
|
1953
|
+
], -1), ua = { class: "container" }, fa = /* @__PURE__ */ a("span", { class: "nav__bg" }, null, -1);
|
|
1954
|
+
function ha(e, r, t, o, f, s) {
|
|
1955
|
+
const i = H("Logo");
|
|
1956
|
+
return l(), c("nav", {
|
|
1957
|
+
class: v(`nav${s.hasSecondarySlot ? " has-secondary" : ""}`),
|
|
1927
1958
|
ref: "wrapper"
|
|
1928
1959
|
}, [
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1960
|
+
xs,
|
|
1961
|
+
Ls,
|
|
1962
|
+
Ts,
|
|
1963
|
+
a("div", Ms, [
|
|
1964
|
+
a("div", Hs, [
|
|
1965
|
+
a("div", Cs, [
|
|
1966
|
+
s.hasLogoSlot ? (l(), c("div", Ns, [
|
|
1936
1967
|
b(e.$slots, "logo")
|
|
1937
|
-
])) : (
|
|
1938
|
-
|
|
1939
|
-
|
|
1968
|
+
])) : (l(), c("div", Bs, [
|
|
1969
|
+
a("a", Ps, [
|
|
1970
|
+
S(i, {
|
|
1940
1971
|
id: t.logo,
|
|
1941
1972
|
path: t.logopath,
|
|
1942
1973
|
desc: t.logotext,
|
|
@@ -1944,18 +1975,18 @@ function ya(e, n, t, d, h, a) {
|
|
|
1944
1975
|
}, null, 8, ["id", "path", "desc"])
|
|
1945
1976
|
])
|
|
1946
1977
|
])),
|
|
1947
|
-
|
|
1978
|
+
Ds
|
|
1948
1979
|
])
|
|
1949
1980
|
])
|
|
1950
1981
|
]),
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1982
|
+
a("div", Is, [
|
|
1983
|
+
a("div", zs, [
|
|
1984
|
+
a("div", Vs, [
|
|
1985
|
+
s.hasLogoSlot ? (l(), c("div", Fs, [
|
|
1955
1986
|
b(e.$slots, "logo")
|
|
1956
|
-
])) : (
|
|
1957
|
-
|
|
1958
|
-
|
|
1987
|
+
])) : (l(), c("div", Os, [
|
|
1988
|
+
a("a", js, [
|
|
1989
|
+
S(i, {
|
|
1959
1990
|
id: t.logo,
|
|
1960
1991
|
path: t.logopath,
|
|
1961
1992
|
desc: t.logotext,
|
|
@@ -1963,42 +1994,42 @@ function ya(e, n, t, d, h, a) {
|
|
|
1963
1994
|
}, null, 8, ["id", "path", "desc"])
|
|
1964
1995
|
])
|
|
1965
1996
|
])),
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1997
|
+
s.hasSearchSlot ? (l(), c("div", Rs, Ks)) : p("", !0),
|
|
1998
|
+
Us,
|
|
1999
|
+
a("div", Gs, [
|
|
1969
2000
|
b(e.$slots, "default")
|
|
1970
2001
|
]),
|
|
1971
|
-
|
|
1972
|
-
t.btnlink ? (
|
|
1973
|
-
|
|
2002
|
+
s.hasAccountSlot ? (l(), c("div", Zs, Qs)) : p("", !0),
|
|
2003
|
+
t.btnlink ? (l(), c("div", Ys, [
|
|
2004
|
+
a("a", {
|
|
1974
2005
|
href: t.btnlink,
|
|
1975
2006
|
class: "btn me-0",
|
|
1976
2007
|
innerHTML: t.btntext
|
|
1977
|
-
}, null, 8,
|
|
2008
|
+
}, null, 8, Js)
|
|
1978
2009
|
])) : p("", !0)
|
|
1979
2010
|
])
|
|
1980
2011
|
]),
|
|
1981
|
-
|
|
1982
|
-
|
|
2012
|
+
s.hasSecondarySlot ? (l(), c("div", Xs, [
|
|
2013
|
+
a("div", ea, [
|
|
1983
2014
|
b(e.$slots, "secondary")
|
|
1984
2015
|
])
|
|
1985
2016
|
])) : p("", !0),
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2017
|
+
s.hasSearchSlot ? (l(), c("div", ta, [
|
|
2018
|
+
a("div", sa, [
|
|
2019
|
+
a("div", aa, [
|
|
1989
2020
|
b(e.$slots, "search")
|
|
1990
2021
|
])
|
|
1991
2022
|
])
|
|
1992
2023
|
])) : p("", !0)
|
|
1993
2024
|
]),
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
2025
|
+
s.hasAccountSlot ? (l(), c("div", ia, [
|
|
2026
|
+
a("div", na, [
|
|
2027
|
+
a("div", ra, [
|
|
2028
|
+
s.hasLogoSlot ? (l(), c("div", oa, [
|
|
1998
2029
|
b(e.$slots, "logo")
|
|
1999
|
-
])) : (
|
|
2000
|
-
|
|
2001
|
-
|
|
2030
|
+
])) : (l(), c("div", la, [
|
|
2031
|
+
a("a", ca, [
|
|
2032
|
+
S(i, {
|
|
2002
2033
|
id: t.logo,
|
|
2003
2034
|
path: t.logopath,
|
|
2004
2035
|
desc: t.logotext,
|
|
@@ -2006,109 +2037,47 @@ function ya(e, n, t, d, h, a) {
|
|
|
2006
2037
|
}, null, 8, ["id", "path", "desc"])
|
|
2007
2038
|
])
|
|
2008
2039
|
])),
|
|
2009
|
-
|
|
2040
|
+
da
|
|
2010
2041
|
])
|
|
2011
2042
|
]),
|
|
2012
|
-
|
|
2043
|
+
a("div", ua, [
|
|
2013
2044
|
b(e.$slots, "account")
|
|
2014
2045
|
])
|
|
2015
2046
|
])) : p("", !0),
|
|
2016
|
-
|
|
2047
|
+
fa
|
|
2017
2048
|
], 2);
|
|
2018
2049
|
}
|
|
2019
|
-
const
|
|
2020
|
-
const
|
|
2021
|
-
function([d]) {
|
|
2022
|
-
d.target.classList.toggle("in-view", d.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
|
|
2023
|
-
},
|
|
2024
|
-
{ threshold: [1] }
|
|
2025
|
-
), t = document.getElementById("drawer-end");
|
|
2026
|
-
n.observe(t);
|
|
2027
|
-
};
|
|
2028
|
-
const ba = {
|
|
2029
|
-
name: "Header",
|
|
2030
|
-
props: {
|
|
2031
|
-
label: {
|
|
2032
|
-
type: String,
|
|
2033
|
-
required: !0
|
|
2034
|
-
}
|
|
2035
|
-
},
|
|
2036
|
-
mounted() {
|
|
2037
|
-
this.$nextTick(function() {
|
|
2038
|
-
let e = this.$refs.wrapper;
|
|
2039
|
-
const n = document.createDocumentFragment();
|
|
2040
|
-
Array.from(e.childNodes).forEach((t) => n.appendChild(t)), e.parentNode.insertBefore(n, e), e.parentNode.removeChild(e), this.$nextTick(function() {
|
|
2041
|
-
pa(this.$refs.drawer);
|
|
2042
|
-
});
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}, va = { ref: "wrapper" }, ga = /* @__PURE__ */ s("input", {
|
|
2046
|
-
type: "checkbox",
|
|
2047
|
-
name: "showDrawer",
|
|
2048
|
-
id: "showDrawer",
|
|
2049
|
-
class: "d-none"
|
|
2050
|
-
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, $a = {
|
|
2051
|
-
for: "showDrawer",
|
|
2052
|
-
class: "btn btn-secondary me-0"
|
|
2053
|
-
}, Aa = {
|
|
2054
|
-
class: "drawer",
|
|
2055
|
-
id: "drawer",
|
|
2056
|
-
ref: "drawer"
|
|
2057
|
-
}, Sa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
|
|
2058
|
-
/* @__PURE__ */ s("label", {
|
|
2059
|
-
for: "showDrawer",
|
|
2060
|
-
class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
|
|
2061
|
-
}, [
|
|
2062
|
-
/* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
|
|
2063
|
-
/* @__PURE__ */ P("✕")
|
|
2064
|
-
])
|
|
2065
|
-
], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
|
|
2066
|
-
function qa(e, n, t, d, h, a) {
|
|
2067
|
-
return o(), l("div", va, [
|
|
2068
|
-
ga,
|
|
2069
|
-
s("div", wa, [
|
|
2070
|
-
s("div", ka, [
|
|
2071
|
-
s("label", $a, w(t.label), 1)
|
|
2072
|
-
])
|
|
2073
|
-
]),
|
|
2074
|
-
s("div", Aa, [
|
|
2075
|
-
Sa,
|
|
2076
|
-
b(e.$slots, "default")
|
|
2077
|
-
], 512),
|
|
2078
|
-
xa
|
|
2079
|
-
], 512);
|
|
2080
|
-
}
|
|
2081
|
-
const Ci = /* @__PURE__ */ g(ba, [["render", qa]]), La = (e) => {
|
|
2082
|
-
const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], d = n[n.length - 1], h = e.getAttribute("id"), a = function() {
|
|
2050
|
+
const bi = /* @__PURE__ */ g(qs, [["render", ha]]), ma = (e) => {
|
|
2051
|
+
const r = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = r[0], o = r[r.length - 1], f = e.getAttribute("id"), s = function() {
|
|
2083
2052
|
document.querySelector('[href="' + window.location.hash + '"]').focus(), window.location.hash = "close", history.replaceState("", document.title, window.location.pathname + window.location.search), typeof window.player < "u" && typeof window.player.pauseVideo == "function" && window.player.pauseVideo();
|
|
2084
2053
|
};
|
|
2085
|
-
e.addEventListener("keydown", function(
|
|
2086
|
-
|
|
2087
|
-
}), document.addEventListener("keydown", function(
|
|
2088
|
-
|
|
2089
|
-
}), e.addEventListener("click", function(
|
|
2090
|
-
for (var
|
|
2091
|
-
if (
|
|
2092
|
-
|
|
2054
|
+
e.addEventListener("keydown", function(n) {
|
|
2055
|
+
n.key === "Tab" && n.shiftKey && document.activeElement == t ? (n.preventDefault(), o.focus()) : n.key === "Tab" && !n.shiftKey && document.activeElement == o && (n.preventDefault(), t.focus());
|
|
2056
|
+
}), document.addEventListener("keydown", function(n) {
|
|
2057
|
+
n.key === "Escape" && document.querySelector(".modal:target") && s();
|
|
2058
|
+
}), e.addEventListener("click", function(n) {
|
|
2059
|
+
for (var h = n.target; h && h != this; h = h.parentNode)
|
|
2060
|
+
if (h.matches('[href="#close"]')) {
|
|
2061
|
+
n.preventDefault(), s();
|
|
2093
2062
|
break;
|
|
2094
|
-
} else if (
|
|
2095
|
-
|
|
2063
|
+
} else if (h.matches(".modal__dock--right")) {
|
|
2064
|
+
n.preventDefault(), e.classList.contains("modal--left") || e.classList.add("modal--right"), e.classList.remove("modal--left");
|
|
2096
2065
|
break;
|
|
2097
|
-
} else if (
|
|
2098
|
-
|
|
2066
|
+
} else if (h.matches(".modal__dock--left")) {
|
|
2067
|
+
n.preventDefault(), e.classList.contains("modal--right") || e.classList.add("modal--left"), e.classList.remove("modal--right");
|
|
2099
2068
|
break;
|
|
2100
2069
|
}
|
|
2101
2070
|
});
|
|
2102
|
-
function
|
|
2103
|
-
if (location.hash === "#" +
|
|
2071
|
+
function i() {
|
|
2072
|
+
if (location.hash === "#" + f) {
|
|
2104
2073
|
console.log("Modal is now open");
|
|
2105
|
-
const
|
|
2106
|
-
console.log(
|
|
2074
|
+
const n = document.querySelector(".modal:target .modal__inner > .youtube-embed:first-child:last-child a");
|
|
2075
|
+
console.log(n), n && n.click();
|
|
2107
2076
|
}
|
|
2108
2077
|
}
|
|
2109
|
-
window.onhashchange =
|
|
2078
|
+
window.onhashchange = i;
|
|
2110
2079
|
};
|
|
2111
|
-
const
|
|
2080
|
+
const _a = {
|
|
2112
2081
|
name: "Modal",
|
|
2113
2082
|
props: {
|
|
2114
2083
|
id: {
|
|
@@ -2123,48 +2092,48 @@ const Ta = {
|
|
|
2123
2092
|
},
|
|
2124
2093
|
mounted() {
|
|
2125
2094
|
this.$nextTick(function() {
|
|
2126
|
-
|
|
2095
|
+
ma(this.$refs.modal);
|
|
2127
2096
|
});
|
|
2128
2097
|
}
|
|
2129
|
-
},
|
|
2130
|
-
|
|
2131
|
-
],
|
|
2098
|
+
}, ya = ["id"], pa = ["href"], ba = /* @__PURE__ */ a("span", { class: "visually-hidden" }, "Close", -1), va = [
|
|
2099
|
+
ba
|
|
2100
|
+
], ga = { class: "modal__outer" }, Aa = ["href"], wa = /* @__PURE__ */ a("span", { class: "visually-hidden" }, "Close", -1), ka = { class: "modal__inner" }, Sa = /* @__PURE__ */ a("button", {
|
|
2132
2101
|
class: "modal__dock--left btn btn-prev",
|
|
2133
2102
|
tabindex: "-1"
|
|
2134
|
-
}, "Left", -1),
|
|
2103
|
+
}, "Left", -1), $a = /* @__PURE__ */ a("button", {
|
|
2135
2104
|
class: "modal__dock--right btn btn-next",
|
|
2136
2105
|
tabindex: "-1"
|
|
2137
2106
|
}, "Right", -1);
|
|
2138
|
-
function
|
|
2139
|
-
return
|
|
2107
|
+
function qa(e, r, t, o, f, s) {
|
|
2108
|
+
return l(), c("div", {
|
|
2140
2109
|
class: "modal",
|
|
2141
2110
|
id: t.id,
|
|
2142
2111
|
role: "dialog",
|
|
2143
2112
|
modal: "true",
|
|
2144
2113
|
ref: "modal"
|
|
2145
2114
|
}, [
|
|
2146
|
-
|
|
2115
|
+
a("a", {
|
|
2147
2116
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2148
2117
|
tabindex: "-1"
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2151
|
-
|
|
2118
|
+
}, va, 8, pa),
|
|
2119
|
+
a("div", ga, [
|
|
2120
|
+
a("a", {
|
|
2152
2121
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2153
2122
|
class: "btn btn-tertiary py-1 px-2"
|
|
2154
2123
|
}, [
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
], 8,
|
|
2158
|
-
|
|
2124
|
+
wa,
|
|
2125
|
+
j("✕")
|
|
2126
|
+
], 8, Aa),
|
|
2127
|
+
a("div", ka, [
|
|
2159
2128
|
b(e.$slots, "default")
|
|
2160
2129
|
])
|
|
2161
2130
|
]),
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
], 8,
|
|
2131
|
+
Sa,
|
|
2132
|
+
$a
|
|
2133
|
+
], 8, ya);
|
|
2165
2134
|
}
|
|
2166
|
-
const
|
|
2167
|
-
const
|
|
2135
|
+
const vi = /* @__PURE__ */ g(_a, [["render", qa]]);
|
|
2136
|
+
const xa = {
|
|
2168
2137
|
name: "Stepper",
|
|
2169
2138
|
props: {
|
|
2170
2139
|
label: {
|
|
@@ -2177,25 +2146,25 @@ const Fa = {
|
|
|
2177
2146
|
default: "Complete"
|
|
2178
2147
|
}
|
|
2179
2148
|
}
|
|
2180
|
-
},
|
|
2149
|
+
}, La = { class: "container" }, Ta = ["aria-label"], Ma = {
|
|
2181
2150
|
key: 0,
|
|
2182
2151
|
class: "h6 stepper__start"
|
|
2183
|
-
},
|
|
2184
|
-
function
|
|
2185
|
-
return
|
|
2186
|
-
|
|
2152
|
+
}, Ha = { class: "list-unstyled" }, Ca = { class: "h6 stepper__end" };
|
|
2153
|
+
function Na(e, r, t, o, f, s) {
|
|
2154
|
+
return l(), c("div", La, [
|
|
2155
|
+
a("nav", {
|
|
2187
2156
|
class: "stepper",
|
|
2188
2157
|
"aria-label": t.label ? t.label : "Progress"
|
|
2189
2158
|
}, [
|
|
2190
|
-
t.label ? (
|
|
2191
|
-
|
|
2159
|
+
t.label ? (l(), c("span", Ma, k(t.label), 1)) : p("", !0),
|
|
2160
|
+
a("ol", Ha, [
|
|
2192
2161
|
b(e.$slots, "default")
|
|
2193
2162
|
]),
|
|
2194
|
-
|
|
2195
|
-
], 8,
|
|
2163
|
+
a("span", Ca, k(t.endlabel), 1)
|
|
2164
|
+
], 8, Ta)
|
|
2196
2165
|
]);
|
|
2197
2166
|
}
|
|
2198
|
-
const
|
|
2167
|
+
const gi = /* @__PURE__ */ g(xa, [["render", Na]]), Ba = {
|
|
2199
2168
|
name: "Stepper",
|
|
2200
2169
|
props: {
|
|
2201
2170
|
url: {
|
|
@@ -2211,86 +2180,92 @@ const Ni = /* @__PURE__ */ g(Fa, [["render", Za]]), Ea = {
|
|
|
2211
2180
|
required: !1
|
|
2212
2181
|
}
|
|
2213
2182
|
}
|
|
2214
|
-
},
|
|
2183
|
+
}, Pa = ["href", "aria-current"], Da = {
|
|
2215
2184
|
key: 0,
|
|
2216
2185
|
class: "visually-hidden"
|
|
2217
2186
|
};
|
|
2218
|
-
function
|
|
2219
|
-
return
|
|
2220
|
-
|
|
2187
|
+
function Ia(e, r, t, o, f, s) {
|
|
2188
|
+
return l(), c("li", null, [
|
|
2189
|
+
a("a", {
|
|
2221
2190
|
href: t.url,
|
|
2222
2191
|
class: v(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2223
2192
|
"aria-current": typeof t.current < "u"
|
|
2224
2193
|
}, [
|
|
2225
|
-
|
|
2194
|
+
a("span", null, [
|
|
2226
2195
|
b(e.$slots, "default")
|
|
2227
2196
|
]),
|
|
2228
|
-
t.status ? (
|
|
2229
|
-
], 10,
|
|
2197
|
+
t.status ? (l(), c("em", Da, " - status: " + k(t.status), 1)) : p("", !0)
|
|
2198
|
+
], 10, Pa)
|
|
2230
2199
|
]);
|
|
2231
2200
|
}
|
|
2232
|
-
const
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2201
|
+
const Ai = /* @__PURE__ */ g(Ba, [["render", Ia]]), za = function(e) {
|
|
2202
|
+
const r = e.querySelectorAll(":scope > details");
|
|
2203
|
+
e.querySelectorAll(":scope > details > summary");
|
|
2204
|
+
let t = e.querySelector(":scope > .tabs__links");
|
|
2205
|
+
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)), r.forEach((o, f) => {
|
|
2206
|
+
let s = o.querySelector(":scope > summary");
|
|
2207
|
+
s.classList.add("visually-hidden");
|
|
2208
|
+
let i = document.createElement("button");
|
|
2209
|
+
o.hasAttribute("id") && (i = document.createElement("a"), i.setAttribute("href", `#${o.getAttribute("id")}`)), o.hasAttribute("open") && i.setAttribute("aria-pressed", !0), i.innerHTML = `${s.innerText}`, i.classList.add("link"), i.setAttribute("data-index", f), i.setAttribute("tabindex", "-1"), t.appendChild(i);
|
|
2210
|
+
});
|
|
2211
|
+
}, Va = function(e) {
|
|
2212
|
+
let r = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > details > summary"), o = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
|
|
2213
|
+
e.shadowRoot && (o = e.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")), o.forEach((f) => {
|
|
2214
|
+
f.addEventListener("click", (s) => {
|
|
2215
|
+
s.preventDefault(), o.forEach((i) => {
|
|
2216
|
+
let n = i == f;
|
|
2217
|
+
i.setAttribute("aria-pressed", n);
|
|
2218
|
+
}), r.forEach((i, n) => {
|
|
2219
|
+
let h = f.getAttribute("data-index") == n;
|
|
2220
|
+
h ? i.setAttribute("open", h) : i.removeAttribute("open");
|
|
2221
|
+
}), f.hasAttribute("href") && history.pushState(void 0, void 0, f.getAttribute("href"));
|
|
2222
|
+
});
|
|
2223
|
+
}), t.forEach((f, s) => {
|
|
2224
|
+
f.addEventListener("focus", (i) => {
|
|
2225
|
+
o.forEach((n) => {
|
|
2226
|
+
n.classList.remove("focus");
|
|
2227
|
+
}), o[s].classList.add("focus");
|
|
2228
|
+
}), f.addEventListener("click", (i) => {
|
|
2229
|
+
i.preventDefault(), o[s].click();
|
|
2230
|
+
});
|
|
2231
|
+
});
|
|
2232
|
+
}, Fa = function(e) {
|
|
2233
|
+
let r = e.querySelectorAll(":scope > details"), t = e.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");
|
|
2234
|
+
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]") || (r[0].setAttribute("open", !0), t[0].setAttribute("aria-pressed", !0));
|
|
2235
|
+
}, Oa = function(e) {
|
|
2236
|
+
za(e), Va(e), Fa(e);
|
|
2237
|
+
};
|
|
2238
|
+
class ja extends HTMLElement {
|
|
2239
|
+
constructor() {
|
|
2240
|
+
super(), this.attachShadow({ mode: "open" });
|
|
2241
|
+
const r = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = `@import "${r}/css/components/tabs.css";`, o = document.createElement("template");
|
|
2242
|
+
o.innerHTML = `
|
|
2243
|
+
<style>
|
|
2244
|
+
@import "${r}/css/core.min.css";
|
|
2245
|
+
${t}
|
|
2246
|
+
|
|
2247
|
+
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
2248
|
+
</style>
|
|
2249
|
+
<div class="tabs">
|
|
2250
|
+
<div class="tabs__links"></div>
|
|
2251
|
+
<slot></slot>
|
|
2252
|
+
</div>
|
|
2253
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
2264
2254
|
}
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
name: r.name,
|
|
2277
|
-
id: r.id,
|
|
2278
|
-
checked: i == 0
|
|
2279
|
-
}, null, 8, ei))), 128)),
|
|
2280
|
-
s("div", ti, [
|
|
2281
|
-
(o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
|
|
2282
|
-
key: i,
|
|
2283
|
-
for: r.id,
|
|
2284
|
-
class: "link",
|
|
2285
|
-
onClick: (f) => a.openTab(i)
|
|
2286
|
-
}, w(r.tabTitle), 9, si))), 128))
|
|
2287
|
-
]),
|
|
2288
|
-
s("div", ai, [
|
|
2289
|
-
b(e.$slots, "default")
|
|
2290
|
-
])
|
|
2255
|
+
connectedCallback() {
|
|
2256
|
+
Oa(this);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", ja);
|
|
2260
|
+
const Ra = {
|
|
2261
|
+
name: "Tabs"
|
|
2262
|
+
}, Wa = { ref: "wrapper" };
|
|
2263
|
+
function Ka(e, r, t, o, f, s) {
|
|
2264
|
+
return l(), c("iam-tabs", Wa, [
|
|
2265
|
+
b(e.$slots, "default")
|
|
2291
2266
|
], 512);
|
|
2292
2267
|
}
|
|
2293
|
-
const
|
|
2268
|
+
const wi = /* @__PURE__ */ g(Ra, [["render", Ka]]), Ua = {
|
|
2294
2269
|
name: "Tab",
|
|
2295
2270
|
props: {
|
|
2296
2271
|
title: {
|
|
@@ -2308,24 +2283,22 @@ const Bi = /* @__PURE__ */ g(Ja, [["render", ii]]), ni = {
|
|
|
2308
2283
|
};
|
|
2309
2284
|
},
|
|
2310
2285
|
watch: {
|
|
2311
|
-
show(e,
|
|
2286
|
+
show(e, r) {
|
|
2312
2287
|
console.log(e);
|
|
2313
2288
|
}
|
|
2314
2289
|
}
|
|
2315
|
-
},
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
}
|
|
2319
|
-
function oi(e, n, t, d, h, a) {
|
|
2320
|
-
return h.show ? (o(), l("div", ri, [
|
|
2290
|
+
}, Ga = { class: "tab" }, Za = ["innerHTML"];
|
|
2291
|
+
function Ea(e, r, t, o, f, s) {
|
|
2292
|
+
return l(), c("details", Ga, [
|
|
2293
|
+
a("summary", { innerHTML: t.title }, null, 8, Za),
|
|
2321
2294
|
b(e.$slots, "default")
|
|
2322
|
-
])
|
|
2295
|
+
]);
|
|
2323
2296
|
}
|
|
2324
|
-
const
|
|
2325
|
-
function
|
|
2297
|
+
const ki = /* @__PURE__ */ g(Ua, [["render", Ea]]);
|
|
2298
|
+
function Qa(e) {
|
|
2326
2299
|
if (e.addEventListener("click", function(t) {
|
|
2327
|
-
for (var
|
|
2328
|
-
if (
|
|
2300
|
+
for (var o = t.target; o && o != this; o = o.parentNode)
|
|
2301
|
+
if (o.matches(".btn-close")) {
|
|
2329
2302
|
t.preventDefault(), e.classList.remove("show"), setTimeout(function() {
|
|
2330
2303
|
e.remove();
|
|
2331
2304
|
}, 300);
|
|
@@ -2344,10 +2317,10 @@ function li(e) {
|
|
|
2344
2317
|
let t = document.createElement("div");
|
|
2345
2318
|
t.classList.add("alert__holder"), document.querySelector("main") ? document.querySelector("main").appendChild(t) : document.body.appendChild(t);
|
|
2346
2319
|
}
|
|
2347
|
-
let
|
|
2348
|
-
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") &&
|
|
2320
|
+
let r = document.querySelector(".alert__holder");
|
|
2321
|
+
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && r.appendChild(e);
|
|
2349
2322
|
}
|
|
2350
|
-
const
|
|
2323
|
+
const Ya = {
|
|
2351
2324
|
name: "Alert",
|
|
2352
2325
|
props: {
|
|
2353
2326
|
dismissible: {
|
|
@@ -2366,38 +2339,38 @@ const di = {
|
|
|
2366
2339
|
}
|
|
2367
2340
|
},
|
|
2368
2341
|
mounted() {
|
|
2369
|
-
|
|
2342
|
+
Qa(this.$refs.wrapper);
|
|
2370
2343
|
}
|
|
2371
|
-
},
|
|
2344
|
+
}, Ja = ["data-timeout"], Xa = {
|
|
2372
2345
|
key: 0,
|
|
2373
2346
|
type: "button",
|
|
2374
2347
|
class: "btn-close",
|
|
2375
2348
|
"data-bs-dismiss": "alert",
|
|
2376
2349
|
"aria-label": "Close"
|
|
2377
2350
|
};
|
|
2378
|
-
function
|
|
2379
|
-
return
|
|
2351
|
+
function ei(e, r, t, o, f, s) {
|
|
2352
|
+
return l(), c("div", {
|
|
2380
2353
|
class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
|
|
2381
2354
|
ref: "wrapper",
|
|
2382
2355
|
"data-timeout": t.timeout,
|
|
2383
|
-
style:
|
|
2356
|
+
style: te(t.timeout ? `--animation-length: ${t.timeout}ms` : "")
|
|
2384
2357
|
}, [
|
|
2385
|
-
|
|
2358
|
+
a("div", {
|
|
2386
2359
|
class: v(`alert__inner bg-${t.colour}`),
|
|
2387
2360
|
role: "alert"
|
|
2388
2361
|
}, [
|
|
2389
|
-
t.dismissible ? (
|
|
2362
|
+
t.dismissible ? (l(), c("button", Xa)) : p("", !0),
|
|
2390
2363
|
b(e.$slots, "default")
|
|
2391
2364
|
], 2)
|
|
2392
|
-
], 14,
|
|
2365
|
+
], 14, Ja);
|
|
2393
2366
|
}
|
|
2394
|
-
const
|
|
2395
|
-
let
|
|
2396
|
-
|
|
2397
|
-
const
|
|
2367
|
+
const Si = /* @__PURE__ */ g(Ya, [["render", ei]]);
|
|
2368
|
+
let Y = E.props;
|
|
2369
|
+
Y.fields.required = !1;
|
|
2370
|
+
const ti = {
|
|
2398
2371
|
components: {
|
|
2399
2372
|
Table: E,
|
|
2400
|
-
Input:
|
|
2373
|
+
Input: D
|
|
2401
2374
|
},
|
|
2402
2375
|
data() {
|
|
2403
2376
|
return {
|
|
@@ -2408,14 +2381,14 @@ const hi = {
|
|
|
2408
2381
|
methods: {
|
|
2409
2382
|
submitForm: function(e) {
|
|
2410
2383
|
console.log(this);
|
|
2411
|
-
const
|
|
2384
|
+
const r = new FormData(e.target);
|
|
2412
2385
|
let t = /* @__PURE__ */ new Date();
|
|
2413
|
-
const
|
|
2414
|
-
let
|
|
2415
|
-
|
|
2386
|
+
const o = t.getFullYear();
|
|
2387
|
+
let f = t.getMonth() + 1, s = t.getDate();
|
|
2388
|
+
s < 10 && (s = "0" + s), f < 10 && (f = "0" + f), t = s + "/" + f + "/" + o, this.itemsData.unshift({
|
|
2416
2389
|
date_added: t,
|
|
2417
|
-
user:
|
|
2418
|
-
note:
|
|
2390
|
+
user: r.get("user"),
|
|
2391
|
+
note: r.get("addNote")
|
|
2419
2392
|
}), this.$emit("formSubmitted", e);
|
|
2420
2393
|
}
|
|
2421
2394
|
},
|
|
@@ -2425,7 +2398,7 @@ const hi = {
|
|
|
2425
2398
|
type: String,
|
|
2426
2399
|
required: !0
|
|
2427
2400
|
},
|
|
2428
|
-
...
|
|
2401
|
+
...Y,
|
|
2429
2402
|
title: {
|
|
2430
2403
|
type: String,
|
|
2431
2404
|
required: !1
|
|
@@ -2440,63 +2413,62 @@ const hi = {
|
|
|
2440
2413
|
required: !1
|
|
2441
2414
|
}
|
|
2442
2415
|
}
|
|
2443
|
-
},
|
|
2444
|
-
function
|
|
2445
|
-
const
|
|
2446
|
-
return
|
|
2447
|
-
t.title ? (
|
|
2416
|
+
}, si = { class: "container note-feed mb-2" }, ai = ["innerHTML"], ii = ["action", "method"], ni = ["value"], ri = /* @__PURE__ */ a("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2417
|
+
function oi(e, r, t, o, f, s) {
|
|
2418
|
+
const i = H("Table"), n = H("Input");
|
|
2419
|
+
return l(), c("div", si, [
|
|
2420
|
+
t.title ? (l(), c("span", {
|
|
2448
2421
|
key: 0,
|
|
2449
2422
|
class: "h3",
|
|
2450
2423
|
innerHTML: t.title
|
|
2451
|
-
}, null, 8,
|
|
2452
|
-
|
|
2424
|
+
}, null, 8, ai)) : p("", !0),
|
|
2425
|
+
S(i, T({
|
|
2453
2426
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2454
|
-
items:
|
|
2427
|
+
items: f.itemsData
|
|
2455
2428
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2456
|
-
|
|
2429
|
+
a("form", {
|
|
2457
2430
|
action: t.action,
|
|
2458
2431
|
method: t.method,
|
|
2459
|
-
onSubmit:
|
|
2432
|
+
onSubmit: r[0] || (r[0] = se((h) => s.submitForm(...arguments), ["prevent"]))
|
|
2460
2433
|
}, [
|
|
2461
|
-
|
|
2434
|
+
a("input", {
|
|
2462
2435
|
type: "hidden",
|
|
2463
2436
|
value: t.user,
|
|
2464
2437
|
name: "user"
|
|
2465
|
-
}, null, 8,
|
|
2466
|
-
|
|
2438
|
+
}, null, 8, ni),
|
|
2439
|
+
S(n, {
|
|
2467
2440
|
id: "addNote",
|
|
2468
2441
|
type: "textarea",
|
|
2469
2442
|
label: "Add note",
|
|
2470
2443
|
required: "",
|
|
2471
2444
|
class: "mw-100"
|
|
2472
2445
|
}),
|
|
2473
|
-
|
|
2474
|
-
], 40,
|
|
2446
|
+
ri
|
|
2447
|
+
], 40, ii)
|
|
2475
2448
|
]);
|
|
2476
2449
|
}
|
|
2477
|
-
const
|
|
2450
|
+
const $i = /* @__PURE__ */ g(ti, [["render", oi]]);
|
|
2478
2451
|
export {
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2452
|
+
ui as Accordion,
|
|
2453
|
+
fi as AccordionItem,
|
|
2454
|
+
Si as Alert,
|
|
2455
|
+
hi as Banner,
|
|
2456
|
+
Q as Card,
|
|
2484
2457
|
Ct as CardDeck,
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
Pi as Tab,
|
|
2458
|
+
mi as Carousel,
|
|
2459
|
+
di as FileUploads,
|
|
2460
|
+
_i as Header,
|
|
2461
|
+
oe as Icon,
|
|
2462
|
+
D as Input,
|
|
2463
|
+
fe as Logo,
|
|
2464
|
+
vi as Modal,
|
|
2465
|
+
bi as Nav,
|
|
2466
|
+
$i as NoteFeed,
|
|
2467
|
+
pi as PropertySearchbar,
|
|
2468
|
+
Ai as Step,
|
|
2469
|
+
gi as Stepper,
|
|
2470
|
+
ki as Tab,
|
|
2499
2471
|
E as Table,
|
|
2500
|
-
|
|
2501
|
-
|
|
2472
|
+
wi as Tabs,
|
|
2473
|
+
yi as Testimonial
|
|
2502
2474
|
};
|