@iamproperty/components 3.4.5 → 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/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 +879 -844
- package/dist/components.umd.js +65 -21
- package/dist/style.css +1 -1
- package/package.json +14 -8
- 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/assets/fonts/qanelassoft-extrabold-webfont.woff +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff2 +0 -0
package/dist/components.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as
|
|
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
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, r) => {
|
|
|
18
18
|
default: "/svg/icons.svg"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
},
|
|
22
|
-
function
|
|
23
|
-
return l(),
|
|
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,277 +52,277 @@ const re = /* @__PURE__ */ g(se, [["render", ne]]), le = {
|
|
|
52
52
|
return "brand brand--" + this.id;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
function
|
|
57
|
-
return l(),
|
|
58
|
-
class:
|
|
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
|
-
(l(),
|
|
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 ? (l(),
|
|
66
|
+
t.desc ? (l(), c("span", {
|
|
67
67
|
key: 0,
|
|
68
68
|
innerHTML: t.desc
|
|
69
|
-
}, null, 8,
|
|
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 r = e.querySelector("thead"), t = e.querySelector("tbody"),
|
|
82
|
-
let
|
|
83
|
-
e.setAttribute("id",
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
Array.from(t.querySelectorAll("tr")).forEach((y,
|
|
87
|
-
let
|
|
88
|
-
|
|
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
89
|
const V = {
|
|
90
|
-
index:
|
|
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
|
-
for (var
|
|
102
|
-
if (
|
|
103
|
-
let
|
|
101
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
102
|
+
if (u.matches("[data-sortable]")) {
|
|
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
|
-
}),
|
|
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((
|
|
114
|
-
|
|
113
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((u, d) => {
|
|
114
|
+
u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", m), u.click());
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
const
|
|
117
|
+
const $ = function(m) {
|
|
118
|
+
const u = document.createElement("div");
|
|
119
|
+
u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
|
|
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 =
|
|
128
|
-
|
|
127
|
+
const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", q = d.length == 1 ? "d-none" : "d-sm-flex";
|
|
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>' +
|
|
139
|
-
</div>`, e.prepend(
|
|
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
|
+
</div>`, e.prepend(u);
|
|
140
140
|
}, M = function(m) {
|
|
141
|
-
let
|
|
142
|
-
Array.from(
|
|
143
|
-
let
|
|
144
|
-
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((
|
|
145
|
-
|
|
146
|
-
}),
|
|
147
|
-
const
|
|
148
|
-
|
|
141
|
+
let u = [];
|
|
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
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}), t.innerHTML =
|
|
151
|
+
let d = "";
|
|
152
|
+
u.forEach((_, y) => {
|
|
153
|
+
d += _.row.outerHTML;
|
|
154
|
+
}), t.innerHTML = d, e.dispatchEvent(s);
|
|
155
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
|
-
let
|
|
160
|
+
let u = [];
|
|
161
161
|
m.forEach((_, y) => {
|
|
162
|
-
Array.from(e.querySelectorAll('td[data-label="' + _ + '"]')).forEach((
|
|
163
|
-
|
|
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 && (
|
|
170
|
-
for (var
|
|
171
|
-
if (
|
|
172
|
-
const
|
|
173
|
-
M(
|
|
169
|
+
Array.from(e.querySelectorAll("[data-filterable]")).length && ($(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(m) {
|
|
170
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
171
|
+
if (u.matches('input[type="search"]')) {
|
|
172
|
+
const d = u.value;
|
|
173
|
+
M(d);
|
|
174
174
|
}
|
|
175
175
|
}), e.addEventListener("change", function(m) {
|
|
176
|
-
for (var
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
M(
|
|
176
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
177
|
+
if (u.matches('input[type="search"]')) {
|
|
178
|
+
const d = u.value;
|
|
179
|
+
M(d);
|
|
180
180
|
}
|
|
181
181
|
}), e.addEventListener("change", function(m) {
|
|
182
|
-
for (var
|
|
183
|
-
if (
|
|
184
|
-
const
|
|
185
|
-
M(
|
|
182
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
183
|
+
if (u.matches('input[type="checkbox"]')) {
|
|
184
|
+
const d = e.querySelector('input[type="search"]').value;
|
|
185
|
+
M(d), I();
|
|
186
186
|
}
|
|
187
187
|
}));
|
|
188
|
-
const C = function(m,
|
|
189
|
-
let
|
|
190
|
-
|
|
191
|
-
const _ = m * (
|
|
192
|
-
|
|
193
|
-
#${
|
|
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
|
+
const _ = m * (u - 1) + 1, y = m * u;
|
|
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")),
|
|
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"]') && (C(y.value,
|
|
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") && (C(e.getAttribute("data-show"), y.getAttribute("data-page")), B(
|
|
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") && (C(e.getAttribute("data-show"), y.value), B(
|
|
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
227
|
const z = function() {
|
|
228
|
-
Array.from(t.querySelectorAll("tr")).forEach((m,
|
|
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"), r.querySelector("tr").prepend(m), z(), e.addEventListener("click", function(
|
|
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;
|
|
247
247
|
}
|
|
248
|
-
}, !1), document.addEventListener("dragover", function(
|
|
249
|
-
|
|
250
|
-
}, !1), document.addEventListener("dragenter", function(
|
|
251
|
-
|
|
252
|
-
for (var
|
|
253
|
-
|
|
254
|
-
}, !1), document.addEventListener("dragleave", function(
|
|
255
|
-
|
|
256
|
-
for (var
|
|
257
|
-
|
|
258
|
-
}, !1), document.addEventListener("drop", function(
|
|
259
|
-
|
|
260
|
-
for (var
|
|
261
|
-
if (
|
|
262
|
-
|
|
248
|
+
}, !1), document.addEventListener("dragover", function(u) {
|
|
249
|
+
u.preventDefault();
|
|
250
|
+
}, !1), document.addEventListener("dragenter", function(u) {
|
|
251
|
+
u.preventDefault(), u.dataTransfer.dropEffect = "move";
|
|
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
|
+
}, !1), document.addEventListener("dragleave", function(u) {
|
|
255
|
+
u.preventDefault();
|
|
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
|
+
}, !1), document.addEventListener("drop", function(u) {
|
|
259
|
+
u.preventDefault();
|
|
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
|
|
272
|
-
_ != null && _.remove(),
|
|
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
274
|
e.getAttribute("data-reorder") && z();
|
|
275
275
|
}, !1), e.addEventListener("sorted", function(m) {
|
|
276
276
|
e.getAttribute("data-reorder") && z();
|
|
277
277
|
}, !1), e.addEventListener("populated", function(m) {
|
|
278
|
-
var
|
|
278
|
+
var u = e.querySelector(".table__filters");
|
|
279
|
+
u.remove();
|
|
280
|
+
var d = e.querySelector(".table__pagination");
|
|
279
281
|
d.remove();
|
|
280
|
-
var c = e.querySelector(".table__pagination");
|
|
281
|
-
c.remove();
|
|
282
282
|
var _ = e.cloneNode(!0);
|
|
283
283
|
e.parentNode.replaceChild(_, e), Z(_);
|
|
284
284
|
}, !1);
|
|
285
285
|
}
|
|
286
|
-
const U = function(e, r, t,
|
|
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>`, r.append(
|
|
302
|
-
}, B = function(e, r, t,
|
|
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: {
|
|
@@ -387,17 +387,17 @@ const ye = {
|
|
|
387
387
|
updated() {
|
|
388
388
|
this.$nextTick(function() {
|
|
389
389
|
let e = this.$refs.wrapper.querySelector("tbody"), r = "";
|
|
390
|
-
this.items.forEach((
|
|
391
|
-
let
|
|
392
|
-
|
|
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
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 l(),
|
|
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 Ae(e, r, t, u, h, a) {
|
|
|
406
406
|
"data-page": t.page,
|
|
407
407
|
"data-reorder": t.reorder
|
|
408
408
|
}, [
|
|
409
|
-
|
|
410
|
-
t.fields ? (l(),
|
|
411
|
-
|
|
412
|
-
class:
|
|
409
|
+
a("table", null, [
|
|
410
|
+
t.fields ? (l(), c("thead", ve, [
|
|
411
|
+
a("tr", {
|
|
412
|
+
class: v(t.headingclass)
|
|
413
413
|
}, [
|
|
414
|
-
(l(!0),
|
|
415
|
-
key:
|
|
416
|
-
"data-sortable":
|
|
417
|
-
"data-filterable":
|
|
418
|
-
}, k(
|
|
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 ? (l(),
|
|
422
|
-
(l(!0),
|
|
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
|
-
(l(!0),
|
|
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
|
-
|
|
436
|
-
], 8,
|
|
435
|
+
b(e.$slots, "default")
|
|
436
|
+
], 8, be);
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const E = /* @__PURE__ */ g(pe, [["render", Se]]), $e = {
|
|
439
439
|
name: "Input",
|
|
440
440
|
props: {
|
|
441
441
|
value: {
|
|
@@ -619,152 +619,152 @@ const R = /* @__PURE__ */ g(ye, [["render", Ae]]), Se = {
|
|
|
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
|
-
},
|
|
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, r, t,
|
|
630
|
-
return l(),
|
|
631
|
-
class:
|
|
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
|
-
class:
|
|
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 ? (l(),
|
|
640
|
+
}, null, 10, qe)) : p("", !0),
|
|
641
|
+
t.prefix ? (l(), c("span", {
|
|
642
642
|
key: 1,
|
|
643
|
-
class:
|
|
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 ? (l(),
|
|
647
|
+
t.suffix ? (l(), c("span", {
|
|
648
648
|
key: 2,
|
|
649
|
-
class:
|
|
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": r[0] || (r[0] = (
|
|
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: r[1] || (r[1] = (...
|
|
664
|
-
}), null, 16,
|
|
665
|
-
[
|
|
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((l(),
|
|
667
|
+
t.type == "textarea" ? N((l(), c("textarea", T({
|
|
668
668
|
key: 4,
|
|
669
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
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" ? (l(),
|
|
679
|
-
N(
|
|
680
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
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:
|
|
687
|
-
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
688
|
-
[
|
|
685
|
+
pattern: s.needPattern(),
|
|
686
|
+
list: s.hasOptions()
|
|
687
|
+
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ce), [
|
|
688
|
+
[F, s.inputVal]
|
|
689
689
|
]),
|
|
690
|
-
|
|
690
|
+
a("output", Ne, k(t.value), 1)
|
|
691
691
|
])) : p("", !0),
|
|
692
|
-
t.type == "color" ? (l(),
|
|
693
|
-
N(
|
|
694
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
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
|
-
[
|
|
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((l(),
|
|
706
|
+
t.type == "select" ? N((l(), c("select", T({
|
|
707
707
|
key: 7,
|
|
708
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
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
|
-
(l(!0),
|
|
716
|
-
key:
|
|
717
|
-
value:
|
|
718
|
-
}, k(
|
|
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
|
-
(l(!0),
|
|
727
|
-
key:
|
|
728
|
-
value:
|
|
729
|
-
}, k(
|
|
730
|
-
], 8,
|
|
731
|
-
t.type == "checkbox" || t.type == "radio" ? (l(),
|
|
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" ? (l(),
|
|
738
|
+
t.type == "checkbox" || t.type == "radio" ? (l(), c("label", {
|
|
739
739
|
key: 10,
|
|
740
|
-
class:
|
|
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" ? (l(),
|
|
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" ? (l(),
|
|
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
|
-
class:
|
|
754
|
+
class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
755
755
|
for: t.id,
|
|
756
756
|
innerHTML: t.label,
|
|
757
|
-
onClick: r[6] || (r[6] = (...
|
|
757
|
+
onClick: r[6] || (r[6] = (...i) => s.clickEvent && s.clickEvent(...i))
|
|
758
758
|
}, null, 10, We)) : p("", !0),
|
|
759
|
-
t.errormsg ? (l(),
|
|
759
|
+
t.errormsg ? (l(), c("p", {
|
|
760
760
|
key: 13,
|
|
761
761
|
class: "invalid-feedback mb-0",
|
|
762
762
|
innerHTML: t.errormsg
|
|
763
763
|
}, null, 8, Ke)) : p("", !0),
|
|
764
|
-
|
|
764
|
+
b(e.$slots, "default")
|
|
765
765
|
], 2);
|
|
766
766
|
}
|
|
767
|
-
const D = /* @__PURE__ */ g(
|
|
767
|
+
const D = /* @__PURE__ */ g($e, [["render", Ue]]), Ge = {
|
|
768
768
|
components: {
|
|
769
769
|
Input: D
|
|
770
770
|
},
|
|
@@ -787,21 +787,21 @@ const D = /* @__PURE__ */ g(Se, [["render", Ue]]), Ge = {
|
|
|
787
787
|
required: !1
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
}, Ze = { class: "multiple-file-uploads mb-4" },
|
|
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 l(),
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
class:
|
|
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
|
+
class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
803
803
|
}, [
|
|
804
|
-
S(
|
|
804
|
+
S(i, {
|
|
805
805
|
type: "file",
|
|
806
806
|
id: t.id,
|
|
807
807
|
name: `${t.id}[]`,
|
|
@@ -812,58 +812,70 @@ function Je(e, r, t, u, h, a) {
|
|
|
812
812
|
"data-filesize": t.maxfilesize
|
|
813
813
|
}, null, 8, ["id", "name", "data-filesize"])
|
|
814
814
|
], 2),
|
|
815
|
-
|
|
816
|
-
|
|
815
|
+
a("div", Qe, [
|
|
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 r = document.querySelector(window.location.hash + " summary");
|
|
847
|
-
r instanceof HTMLElement && r.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, r, t, u, h, a) {
|
|
862
|
-
return l(), o("div", tt, [
|
|
863
|
-
v(e.$slots, "default")
|
|
872
|
+
}, at = { ref: "wrapper" };
|
|
873
|
+
function it(e, r, t, o, f, s) {
|
|
874
|
+
return l(), c("iam-accordion", at, [
|
|
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 fi = /* @__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 fi = /* @__PURE__ */ g(et, [["render", st]]), at = {
|
|
|
898
910
|
show: !this.lazy
|
|
899
911
|
};
|
|
900
912
|
}
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
function lt(e, r, t, u, h, a) {
|
|
906
|
-
return l(), o("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: r[0] || (r[0] = (n) => 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 ? (l(), o("div", rt, [
|
|
923
|
-
v(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 hi = /* @__PURE__ */ g(at, [["render", lt]]), ot = {
|
|
|
941
944
|
required: !1
|
|
942
945
|
}
|
|
943
946
|
}
|
|
944
|
-
},
|
|
945
|
-
function
|
|
946
|
-
return l(),
|
|
947
|
-
|
|
948
|
-
class:
|
|
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", {
|
|
951
|
+
class: v("bg-" + t.background + " mb-4")
|
|
949
952
|
}, [
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
a("div", ut, [
|
|
954
|
+
a("div", ft, [
|
|
955
|
+
a("div", ht, [
|
|
956
|
+
a("h2", null, k(t.title), 1),
|
|
957
|
+
b(e.$slots, "default")
|
|
955
958
|
])
|
|
956
959
|
]),
|
|
957
|
-
|
|
958
|
-
t.image ? (l(),
|
|
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,72 +1049,72 @@ const yt = {
|
|
|
1046
1049
|
default:
|
|
1047
1050
|
return "bg-body text-white";
|
|
1048
1051
|
}
|
|
1049
|
-
}, r = this.details && this.details.tags ? this.details.tags.map((
|
|
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 `${r}${t}${
|
|
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 l(),
|
|
1068
|
+
function Lt(e, r, t, o, f, s) {
|
|
1069
|
+
return l(), c("a", {
|
|
1067
1070
|
href: t.link,
|
|
1068
|
-
class:
|
|
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 ? (l(),
|
|
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 ? (l(),
|
|
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) ? (l(),
|
|
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 ? (l(),
|
|
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 ? (l(),
|
|
1104
|
-
|
|
1105
|
-
class:
|
|
1104
|
+
innerHTML: s.cardContent()
|
|
1105
|
+
}, null, 8, $t),
|
|
1106
|
+
t.hidectatext == !1 ? (l(), c("div", qt, [
|
|
1107
|
+
a("span", {
|
|
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 Q = /* @__PURE__ */ g(
|
|
1114
|
-
const
|
|
1116
|
+
const Q = /* @__PURE__ */ g(pt, [["render", Lt]]);
|
|
1117
|
+
const Tt = {
|
|
1115
1118
|
components: {
|
|
1116
1119
|
Card: Q
|
|
1117
1120
|
},
|
|
@@ -1167,81 +1170,81 @@ const Lt = {
|
|
|
1167
1170
|
default: !1
|
|
1168
1171
|
}
|
|
1169
1172
|
}
|
|
1170
|
-
},
|
|
1171
|
-
function
|
|
1172
|
-
const
|
|
1173
|
-
return l(),
|
|
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
|
-
|
|
1178
|
-
|
|
1179
|
-
class:
|
|
1180
|
+
b(e.$slots, "default"),
|
|
1181
|
+
a("div", {
|
|
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
|
-
(l(!0),
|
|
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
|
-
S(
|
|
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
|
-
|
|
1196
|
-
], 8,
|
|
1198
|
+
b(e.$slots, "after")
|
|
1199
|
+
], 8, Mt);
|
|
1197
1200
|
}
|
|
1198
|
-
const
|
|
1199
|
-
function
|
|
1201
|
+
const Ct = /* @__PURE__ */ g(Tt, [["render", Ht]]);
|
|
1202
|
+
function Nt(e) {
|
|
1200
1203
|
var r;
|
|
1201
|
-
let t = e.querySelector(".carousel__inner"),
|
|
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(
|
|
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) {
|
|
1205
1208
|
clearTimeout(r), r = setTimeout(function() {
|
|
1206
|
-
let
|
|
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;
|
|
1207
1210
|
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I, C) => {
|
|
1208
1211
|
I.classList.remove("active");
|
|
1209
|
-
}), e.querySelector(".control-" +
|
|
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 P =
|
|
1242
|
+
let P = Ct.props;
|
|
1240
1243
|
P.gap.default = 0;
|
|
1241
1244
|
P.cols.default = 1;
|
|
1242
1245
|
P.smcols.default = 2;
|
|
1243
1246
|
P.mdcols.default = 4;
|
|
1244
|
-
const
|
|
1247
|
+
const Bt = {
|
|
1245
1248
|
components: {
|
|
1246
1249
|
Card: Q
|
|
1247
1250
|
},
|
|
@@ -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 l(),
|
|
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
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
t.type == "card" ? (l(),
|
|
1296
|
+
b(e.$slots, "default"),
|
|
1297
|
+
a("div", Dt, [
|
|
1298
|
+
a("div", It, [
|
|
1299
|
+
t.type == "card" ? (l(), c("div", {
|
|
1297
1300
|
key: 0,
|
|
1298
|
-
class:
|
|
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
|
-
(l(!0),
|
|
1301
|
-
class:
|
|
1302
|
-
key:
|
|
1303
|
-
id: "carousel" +
|
|
1303
|
+
(l(!0), c(x, null, L(e.items, (n, h) => (l(), c("div", {
|
|
1304
|
+
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1305
|
+
key: h,
|
|
1306
|
+
id: "carousel" + f.id + "slide" + (h + 1)
|
|
1304
1307
|
}, [
|
|
1305
|
-
S(
|
|
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, r, t, u, 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" ? (l(),
|
|
1318
|
+
t.type != "card" ? (l(), c("div", {
|
|
1316
1319
|
key: 1,
|
|
1317
|
-
class:
|
|
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
|
-
(l(!0),
|
|
1320
|
-
class:
|
|
1321
|
-
key:
|
|
1322
|
-
innerHTML:
|
|
1323
|
-
id: "carousel" +
|
|
1324
|
-
}, null, 10,
|
|
1322
|
+
(l(!0), c(x, null, L(e.items, (n, h) => (l(), c("div", {
|
|
1323
|
+
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
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
|
-
|
|
1328
|
-
class:
|
|
1330
|
+
a("div", {
|
|
1331
|
+
class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1329
1332
|
}, [
|
|
1330
|
-
(l(!0),
|
|
1331
|
-
key:
|
|
1332
|
-
href: "#carousel" +
|
|
1333
|
-
class:
|
|
1334
|
-
}, "Slide " + k(
|
|
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 ? (l(), o("picture", Rt, [
|
|
1368
|
-
s("source", {
|
|
1369
|
-
srcset: t.image,
|
|
1370
|
-
media: "(min-width: 62em)"
|
|
1371
|
-
}, null, 8, Qt),
|
|
1372
|
-
Yt
|
|
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
|
|
1407
|
+
const _i = /* @__PURE__ */ g(Kt, [["render", Zt]]);
|
|
1408
|
+
function Et(e) {
|
|
1378
1409
|
var r;
|
|
1379
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1380
|
-
if (
|
|
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(
|
|
1418
|
+
t.addEventListener("scroll", function(s) {
|
|
1388
1419
|
clearTimeout(r), r = setTimeout(function() {
|
|
1389
|
-
let
|
|
1390
|
-
|
|
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,66 +1447,66 @@ 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 l(),
|
|
1438
|
-
|
|
1439
|
-
class:
|
|
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", {
|
|
1470
|
+
class: v("bg-" + t.background)
|
|
1440
1471
|
}, [
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
(l(!0),
|
|
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:
|
|
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
|
-
(l(!0),
|
|
1457
|
-
key:
|
|
1458
|
-
class:
|
|
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
|
-
|
|
1469
|
-
|
|
1499
|
+
a("div", ls, [
|
|
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
1511
|
Input: D
|
|
1481
1512
|
},
|
|
@@ -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 l(),
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1671
|
+
function Ss(e, r, t, o, f, s) {
|
|
1672
|
+
const i = H("Input");
|
|
1673
|
+
return l(), c("div", fs, [
|
|
1674
|
+
b(e.$slots, "default"),
|
|
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
|
-
S(
|
|
1681
|
+
a("fieldset", _s, [
|
|
1682
|
+
S(i, {
|
|
1652
1683
|
inputClass: "input--locations",
|
|
1653
|
-
modelValue:
|
|
1654
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
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: r[1] || (r[1] = (
|
|
1691
|
+
onKeyupEvent: r[1] || (r[1] = (n) => s.locationKeyup(...arguments)),
|
|
1661
1692
|
ref: "search"
|
|
1662
1693
|
}, null, 8, ["modelValue", "options"]),
|
|
1663
|
-
S(
|
|
1694
|
+
S(i, {
|
|
1664
1695
|
class: "select--miles",
|
|
1665
1696
|
label: "Miles",
|
|
1666
1697
|
id: "miles",
|
|
@@ -1668,10 +1699,10 @@ function qs(e, r, t, u, h, a) {
|
|
|
1668
1699
|
options: t.distances
|
|
1669
1700
|
}, null, 8, ["options"])
|
|
1670
1701
|
]),
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
S(
|
|
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, r, t, u, h, a) {
|
|
|
1679
1710
|
type: "select",
|
|
1680
1711
|
options: t.pricemin
|
|
1681
1712
|
}, null, 8, ["options"]),
|
|
1682
|
-
S(
|
|
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, r, t, u, h, a) {
|
|
|
1689
1720
|
}, null, 8, ["options"])
|
|
1690
1721
|
])
|
|
1691
1722
|
]),
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
S(
|
|
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, r, t, u, h, a) {
|
|
|
1700
1731
|
type: "select",
|
|
1701
1732
|
options: t.bedsmin
|
|
1702
1733
|
}, null, 8, ["options"]),
|
|
1703
|
-
S(
|
|
1734
|
+
S(i, {
|
|
1704
1735
|
class: "col-6",
|
|
1705
1736
|
label: "Maximum beds",
|
|
1706
1737
|
id: "beds-max",
|
|
@@ -1710,25 +1741,25 @@ function qs(e, r, t, u, h, a) {
|
|
|
1710
1741
|
}, null, 8, ["options"])
|
|
1711
1742
|
])
|
|
1712
1743
|
]),
|
|
1713
|
-
|
|
1714
|
-
S(
|
|
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
|
|
1758
|
+
const pi = /* @__PURE__ */ g(us, [["render", Ss]]), $s = (e) => {
|
|
1728
1759
|
Array.from(e.querySelectorAll("details")).forEach((r, t) => {
|
|
1729
|
-
r.addEventListener("mouseenter", function(
|
|
1760
|
+
r.addEventListener("mouseenter", function(o) {
|
|
1730
1761
|
window.matchMedia("(min-width: 62em)").matches && r.setAttribute("open", "true");
|
|
1731
|
-
}, !1), r.addEventListener("mouseleave", function(
|
|
1762
|
+
}, !1), r.addEventListener("mouseleave", function(o) {
|
|
1732
1763
|
window.matchMedia("(min-width: 62em)").matches && r.removeAttribute("open");
|
|
1733
1764
|
}, !1);
|
|
1734
1765
|
}), "IntersectionObserver" in window && new IntersectionObserver(
|
|
@@ -1736,11 +1767,11 @@ const bi = /* @__PURE__ */ g(ms, [["render", qs]]), Ls = (e) => {
|
|
|
1736
1767
|
{ threshold: [1] }
|
|
1737
1768
|
).observe(e);
|
|
1738
1769
|
};
|
|
1739
|
-
const
|
|
1770
|
+
const qs = {
|
|
1740
1771
|
components: {
|
|
1741
1772
|
Input: D,
|
|
1742
|
-
Logo:
|
|
1743
|
-
Icon:
|
|
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 l(),
|
|
1926
|
-
class:
|
|
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
|
-
|
|
1936
|
-
|
|
1937
|
-
])) : (l(),
|
|
1938
|
-
|
|
1939
|
-
S(
|
|
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, [
|
|
1967
|
+
b(e.$slots, "logo")
|
|
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, r, t, u, 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
|
-
|
|
1955
|
-
|
|
1956
|
-
])) : (l(),
|
|
1957
|
-
|
|
1958
|
-
S(
|
|
1982
|
+
a("div", Is, [
|
|
1983
|
+
a("div", zs, [
|
|
1984
|
+
a("div", Vs, [
|
|
1985
|
+
s.hasLogoSlot ? (l(), c("div", Fs, [
|
|
1986
|
+
b(e.$slots, "logo")
|
|
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, r, t, u, h, a) {
|
|
|
1963
1994
|
}, null, 8, ["id", "path", "desc"])
|
|
1964
1995
|
])
|
|
1965
1996
|
])),
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1997
|
+
s.hasSearchSlot ? (l(), c("div", Rs, Ks)) : p("", !0),
|
|
1998
|
+
Us,
|
|
1999
|
+
a("div", Gs, [
|
|
2000
|
+
b(e.$slots, "default")
|
|
1970
2001
|
]),
|
|
1971
|
-
|
|
1972
|
-
t.btnlink ? (l(),
|
|
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
|
-
|
|
1983
|
-
|
|
2012
|
+
s.hasSecondarySlot ? (l(), c("div", Xs, [
|
|
2013
|
+
a("div", ea, [
|
|
2014
|
+
b(e.$slots, "secondary")
|
|
1984
2015
|
])
|
|
1985
2016
|
])) : p("", !0),
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
2017
|
+
s.hasSearchSlot ? (l(), c("div", ta, [
|
|
2018
|
+
a("div", sa, [
|
|
2019
|
+
a("div", aa, [
|
|
2020
|
+
b(e.$slots, "search")
|
|
1990
2021
|
])
|
|
1991
2022
|
])
|
|
1992
2023
|
])) : p("", !0)
|
|
1993
2024
|
]),
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
])) : (l(),
|
|
2000
|
-
|
|
2001
|
-
S(
|
|
2025
|
+
s.hasAccountSlot ? (l(), c("div", ia, [
|
|
2026
|
+
a("div", na, [
|
|
2027
|
+
a("div", ra, [
|
|
2028
|
+
s.hasLogoSlot ? (l(), c("div", oa, [
|
|
2029
|
+
b(e.$slots, "logo")
|
|
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,47 +2037,47 @@ function ya(e, r, t, u, h, a) {
|
|
|
2006
2037
|
}, null, 8, ["id", "path", "desc"])
|
|
2007
2038
|
])
|
|
2008
2039
|
])),
|
|
2009
|
-
|
|
2040
|
+
da
|
|
2010
2041
|
])
|
|
2011
2042
|
]),
|
|
2012
|
-
|
|
2013
|
-
|
|
2043
|
+
a("div", ua, [
|
|
2044
|
+
b(e.$slots, "account")
|
|
2014
2045
|
])
|
|
2015
2046
|
])) : p("", !0),
|
|
2016
|
-
|
|
2047
|
+
fa
|
|
2017
2048
|
], 2);
|
|
2018
2049
|
}
|
|
2019
|
-
const
|
|
2020
|
-
const r = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = r[0],
|
|
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() {
|
|
2021
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();
|
|
2022
2053
|
};
|
|
2023
|
-
e.addEventListener("keydown", function(
|
|
2024
|
-
|
|
2025
|
-
}), document.addEventListener("keydown", function(
|
|
2026
|
-
|
|
2027
|
-
}), e.addEventListener("click", function(
|
|
2028
|
-
for (var
|
|
2029
|
-
if (
|
|
2030
|
-
|
|
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();
|
|
2031
2062
|
break;
|
|
2032
|
-
} else if (
|
|
2033
|
-
|
|
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");
|
|
2034
2065
|
break;
|
|
2035
|
-
} else if (
|
|
2036
|
-
|
|
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");
|
|
2037
2068
|
break;
|
|
2038
2069
|
}
|
|
2039
2070
|
});
|
|
2040
|
-
function
|
|
2041
|
-
if (location.hash === "#" +
|
|
2071
|
+
function i() {
|
|
2072
|
+
if (location.hash === "#" + f) {
|
|
2042
2073
|
console.log("Modal is now open");
|
|
2043
|
-
const
|
|
2044
|
-
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();
|
|
2045
2076
|
}
|
|
2046
2077
|
}
|
|
2047
|
-
window.onhashchange =
|
|
2078
|
+
window.onhashchange = i;
|
|
2048
2079
|
};
|
|
2049
|
-
const
|
|
2080
|
+
const _a = {
|
|
2050
2081
|
name: "Modal",
|
|
2051
2082
|
props: {
|
|
2052
2083
|
id: {
|
|
@@ -2061,48 +2092,48 @@ const ba = {
|
|
|
2061
2092
|
},
|
|
2062
2093
|
mounted() {
|
|
2063
2094
|
this.$nextTick(function() {
|
|
2064
|
-
|
|
2095
|
+
ma(this.$refs.modal);
|
|
2065
2096
|
});
|
|
2066
2097
|
}
|
|
2067
|
-
},
|
|
2068
|
-
|
|
2069
|
-
],
|
|
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", {
|
|
2070
2101
|
class: "modal__dock--left btn btn-prev",
|
|
2071
2102
|
tabindex: "-1"
|
|
2072
|
-
}, "Left", -1),
|
|
2103
|
+
}, "Left", -1), $a = /* @__PURE__ */ a("button", {
|
|
2073
2104
|
class: "modal__dock--right btn btn-next",
|
|
2074
2105
|
tabindex: "-1"
|
|
2075
2106
|
}, "Right", -1);
|
|
2076
|
-
function
|
|
2077
|
-
return l(),
|
|
2107
|
+
function qa(e, r, t, o, f, s) {
|
|
2108
|
+
return l(), c("div", {
|
|
2078
2109
|
class: "modal",
|
|
2079
2110
|
id: t.id,
|
|
2080
2111
|
role: "dialog",
|
|
2081
2112
|
modal: "true",
|
|
2082
2113
|
ref: "modal"
|
|
2083
2114
|
}, [
|
|
2084
|
-
|
|
2115
|
+
a("a", {
|
|
2085
2116
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2086
2117
|
tabindex: "-1"
|
|
2087
|
-
},
|
|
2088
|
-
|
|
2089
|
-
|
|
2118
|
+
}, va, 8, pa),
|
|
2119
|
+
a("div", ga, [
|
|
2120
|
+
a("a", {
|
|
2090
2121
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2091
2122
|
class: "btn btn-tertiary py-1 px-2"
|
|
2092
2123
|
}, [
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
], 8,
|
|
2096
|
-
|
|
2097
|
-
|
|
2124
|
+
wa,
|
|
2125
|
+
j("✕")
|
|
2126
|
+
], 8, Aa),
|
|
2127
|
+
a("div", ka, [
|
|
2128
|
+
b(e.$slots, "default")
|
|
2098
2129
|
])
|
|
2099
2130
|
]),
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
], 8,
|
|
2131
|
+
Sa,
|
|
2132
|
+
$a
|
|
2133
|
+
], 8, ya);
|
|
2103
2134
|
}
|
|
2104
|
-
const
|
|
2105
|
-
const
|
|
2135
|
+
const vi = /* @__PURE__ */ g(_a, [["render", qa]]);
|
|
2136
|
+
const xa = {
|
|
2106
2137
|
name: "Stepper",
|
|
2107
2138
|
props: {
|
|
2108
2139
|
label: {
|
|
@@ -2115,25 +2146,25 @@ const Ma = {
|
|
|
2115
2146
|
default: "Complete"
|
|
2116
2147
|
}
|
|
2117
2148
|
}
|
|
2118
|
-
},
|
|
2149
|
+
}, La = { class: "container" }, Ta = ["aria-label"], Ma = {
|
|
2119
2150
|
key: 0,
|
|
2120
2151
|
class: "h6 stepper__start"
|
|
2121
|
-
},
|
|
2122
|
-
function
|
|
2123
|
-
return l(),
|
|
2124
|
-
|
|
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", {
|
|
2125
2156
|
class: "stepper",
|
|
2126
2157
|
"aria-label": t.label ? t.label : "Progress"
|
|
2127
2158
|
}, [
|
|
2128
|
-
t.label ? (l(),
|
|
2129
|
-
|
|
2130
|
-
|
|
2159
|
+
t.label ? (l(), c("span", Ma, k(t.label), 1)) : p("", !0),
|
|
2160
|
+
a("ol", Ha, [
|
|
2161
|
+
b(e.$slots, "default")
|
|
2131
2162
|
]),
|
|
2132
|
-
|
|
2133
|
-
], 8,
|
|
2163
|
+
a("span", Ca, k(t.endlabel), 1)
|
|
2164
|
+
], 8, Ta)
|
|
2134
2165
|
]);
|
|
2135
2166
|
}
|
|
2136
|
-
const
|
|
2167
|
+
const gi = /* @__PURE__ */ g(xa, [["render", Na]]), Ba = {
|
|
2137
2168
|
name: "Stepper",
|
|
2138
2169
|
props: {
|
|
2139
2170
|
url: {
|
|
@@ -2149,86 +2180,92 @@ const wi = /* @__PURE__ */ g(Ma, [["render", Da]]), Ia = {
|
|
|
2149
2180
|
required: !1
|
|
2150
2181
|
}
|
|
2151
2182
|
}
|
|
2152
|
-
},
|
|
2183
|
+
}, Pa = ["href", "aria-current"], Da = {
|
|
2153
2184
|
key: 0,
|
|
2154
2185
|
class: "visually-hidden"
|
|
2155
2186
|
};
|
|
2156
|
-
function
|
|
2157
|
-
return l(),
|
|
2158
|
-
|
|
2187
|
+
function Ia(e, r, t, o, f, s) {
|
|
2188
|
+
return l(), c("li", null, [
|
|
2189
|
+
a("a", {
|
|
2159
2190
|
href: t.url,
|
|
2160
|
-
class:
|
|
2191
|
+
class: v(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2161
2192
|
"aria-current": typeof t.current < "u"
|
|
2162
2193
|
}, [
|
|
2163
|
-
|
|
2164
|
-
|
|
2194
|
+
a("span", null, [
|
|
2195
|
+
b(e.$slots, "default")
|
|
2165
2196
|
]),
|
|
2166
|
-
t.status ? (l(),
|
|
2167
|
-
], 10,
|
|
2197
|
+
t.status ? (l(), c("em", Da, " - status: " + k(t.status), 1)) : p("", !0)
|
|
2198
|
+
], 10, Pa)
|
|
2168
2199
|
]);
|
|
2169
2200
|
}
|
|
2170
|
-
const
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
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));
|
|
2202
2254
|
}
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
name: n.name,
|
|
2215
|
-
id: n.id,
|
|
2216
|
-
checked: i == 0
|
|
2217
|
-
}, null, 8, Wa))), 128)),
|
|
2218
|
-
s("div", Ka, [
|
|
2219
|
-
(l(!0), o($, null, x(a.tabLinks(), (n, i) => (l(), o("label", {
|
|
2220
|
-
key: i,
|
|
2221
|
-
for: n.id,
|
|
2222
|
-
class: "link",
|
|
2223
|
-
onClick: (f) => a.openTab(i)
|
|
2224
|
-
}, k(n.tabTitle), 9, Ua))), 128))
|
|
2225
|
-
]),
|
|
2226
|
-
s("div", Ga, [
|
|
2227
|
-
v(e.$slots, "default")
|
|
2228
|
-
])
|
|
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")
|
|
2229
2266
|
], 512);
|
|
2230
2267
|
}
|
|
2231
|
-
const
|
|
2268
|
+
const wi = /* @__PURE__ */ g(Ra, [["render", Ka]]), Ua = {
|
|
2232
2269
|
name: "Tab",
|
|
2233
2270
|
props: {
|
|
2234
2271
|
title: {
|
|
@@ -2250,20 +2287,18 @@ const Ai = /* @__PURE__ */ g(Fa, [["render", Za]]), Ra = {
|
|
|
2250
2287
|
console.log(e);
|
|
2251
2288
|
}
|
|
2252
2289
|
}
|
|
2253
|
-
},
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
v(e.$slots, "default")
|
|
2260
|
-
])) : p("", !0);
|
|
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),
|
|
2294
|
+
b(e.$slots, "default")
|
|
2295
|
+
]);
|
|
2261
2296
|
}
|
|
2262
|
-
const
|
|
2263
|
-
function
|
|
2297
|
+
const ki = /* @__PURE__ */ g(Ua, [["render", Ea]]);
|
|
2298
|
+
function Qa(e) {
|
|
2264
2299
|
if (e.addEventListener("click", function(t) {
|
|
2265
|
-
for (var
|
|
2266
|
-
if (
|
|
2300
|
+
for (var o = t.target; o && o != this; o = o.parentNode)
|
|
2301
|
+
if (o.matches(".btn-close")) {
|
|
2267
2302
|
t.preventDefault(), e.classList.remove("show"), setTimeout(function() {
|
|
2268
2303
|
e.remove();
|
|
2269
2304
|
}, 300);
|
|
@@ -2285,7 +2320,7 @@ function Ea(e) {
|
|
|
2285
2320
|
let r = document.querySelector(".alert__holder");
|
|
2286
2321
|
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && r.appendChild(e);
|
|
2287
2322
|
}
|
|
2288
|
-
const
|
|
2323
|
+
const Ya = {
|
|
2289
2324
|
name: "Alert",
|
|
2290
2325
|
props: {
|
|
2291
2326
|
dismissible: {
|
|
@@ -2304,37 +2339,37 @@ const Ja = {
|
|
|
2304
2339
|
}
|
|
2305
2340
|
},
|
|
2306
2341
|
mounted() {
|
|
2307
|
-
|
|
2342
|
+
Qa(this.$refs.wrapper);
|
|
2308
2343
|
}
|
|
2309
|
-
},
|
|
2344
|
+
}, Ja = ["data-timeout"], Xa = {
|
|
2310
2345
|
key: 0,
|
|
2311
2346
|
type: "button",
|
|
2312
2347
|
class: "btn-close",
|
|
2313
2348
|
"data-bs-dismiss": "alert",
|
|
2314
2349
|
"aria-label": "Close"
|
|
2315
2350
|
};
|
|
2316
|
-
function
|
|
2317
|
-
return l(),
|
|
2318
|
-
class:
|
|
2351
|
+
function ei(e, r, t, o, f, s) {
|
|
2352
|
+
return l(), c("div", {
|
|
2353
|
+
class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
|
|
2319
2354
|
ref: "wrapper",
|
|
2320
2355
|
"data-timeout": t.timeout,
|
|
2321
|
-
style:
|
|
2356
|
+
style: te(t.timeout ? `--animation-length: ${t.timeout}ms` : "")
|
|
2322
2357
|
}, [
|
|
2323
|
-
|
|
2324
|
-
class:
|
|
2358
|
+
a("div", {
|
|
2359
|
+
class: v(`alert__inner bg-${t.colour}`),
|
|
2325
2360
|
role: "alert"
|
|
2326
2361
|
}, [
|
|
2327
|
-
t.dismissible ? (l(),
|
|
2328
|
-
|
|
2362
|
+
t.dismissible ? (l(), c("button", Xa)) : p("", !0),
|
|
2363
|
+
b(e.$slots, "default")
|
|
2329
2364
|
], 2)
|
|
2330
|
-
], 14,
|
|
2365
|
+
], 14, Ja);
|
|
2331
2366
|
}
|
|
2332
|
-
const
|
|
2333
|
-
let Y =
|
|
2367
|
+
const Si = /* @__PURE__ */ g(Ya, [["render", ei]]);
|
|
2368
|
+
let Y = E.props;
|
|
2334
2369
|
Y.fields.required = !1;
|
|
2335
|
-
const
|
|
2370
|
+
const ti = {
|
|
2336
2371
|
components: {
|
|
2337
|
-
Table:
|
|
2372
|
+
Table: E,
|
|
2338
2373
|
Input: D
|
|
2339
2374
|
},
|
|
2340
2375
|
data() {
|
|
@@ -2348,9 +2383,9 @@ const si = {
|
|
|
2348
2383
|
console.log(this);
|
|
2349
2384
|
const r = new FormData(e.target);
|
|
2350
2385
|
let t = /* @__PURE__ */ new Date();
|
|
2351
|
-
const
|
|
2352
|
-
let
|
|
2353
|
-
|
|
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({
|
|
2354
2389
|
date_added: t,
|
|
2355
2390
|
user: r.get("user"),
|
|
2356
2391
|
note: r.get("addNote")
|
|
@@ -2378,62 +2413,62 @@ const si = {
|
|
|
2378
2413
|
required: !1
|
|
2379
2414
|
}
|
|
2380
2415
|
}
|
|
2381
|
-
},
|
|
2382
|
-
function oi(e, r, t,
|
|
2383
|
-
const
|
|
2384
|
-
return l(),
|
|
2385
|
-
t.title ? (l(),
|
|
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", {
|
|
2386
2421
|
key: 0,
|
|
2387
2422
|
class: "h3",
|
|
2388
2423
|
innerHTML: t.title
|
|
2389
|
-
}, null, 8,
|
|
2390
|
-
S(
|
|
2424
|
+
}, null, 8, ai)) : p("", !0),
|
|
2425
|
+
S(i, T({
|
|
2391
2426
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2392
|
-
items:
|
|
2427
|
+
items: f.itemsData
|
|
2393
2428
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2394
|
-
|
|
2429
|
+
a("form", {
|
|
2395
2430
|
action: t.action,
|
|
2396
2431
|
method: t.method,
|
|
2397
|
-
onSubmit: r[0] || (r[0] =
|
|
2432
|
+
onSubmit: r[0] || (r[0] = se((h) => s.submitForm(...arguments), ["prevent"]))
|
|
2398
2433
|
}, [
|
|
2399
|
-
|
|
2434
|
+
a("input", {
|
|
2400
2435
|
type: "hidden",
|
|
2401
2436
|
value: t.user,
|
|
2402
2437
|
name: "user"
|
|
2403
|
-
}, null, 8,
|
|
2404
|
-
S(
|
|
2438
|
+
}, null, 8, ni),
|
|
2439
|
+
S(n, {
|
|
2405
2440
|
id: "addNote",
|
|
2406
2441
|
type: "textarea",
|
|
2407
2442
|
label: "Add note",
|
|
2408
2443
|
required: "",
|
|
2409
2444
|
class: "mw-100"
|
|
2410
2445
|
}),
|
|
2411
|
-
|
|
2412
|
-
], 40,
|
|
2446
|
+
ri
|
|
2447
|
+
], 40, ii)
|
|
2413
2448
|
]);
|
|
2414
2449
|
}
|
|
2415
|
-
const
|
|
2450
|
+
const $i = /* @__PURE__ */ g(ti, [["render", oi]]);
|
|
2416
2451
|
export {
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2452
|
+
ui as Accordion,
|
|
2453
|
+
fi as AccordionItem,
|
|
2454
|
+
Si as Alert,
|
|
2455
|
+
hi as Banner,
|
|
2421
2456
|
Q as Card,
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2457
|
+
Ct as CardDeck,
|
|
2458
|
+
mi as Carousel,
|
|
2459
|
+
di as FileUploads,
|
|
2460
|
+
_i as Header,
|
|
2461
|
+
oe as Icon,
|
|
2427
2462
|
D as Input,
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
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,
|
|
2471
|
+
E as Table,
|
|
2472
|
+
wi as Tabs,
|
|
2473
|
+
yi as Testimonial
|
|
2439
2474
|
};
|