@iamproperty/components 2.7.9 → 3.0.0

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.
Files changed (172) hide show
  1. package/README.md +16 -137
  2. package/assets/css/core.min.css +1 -1
  3. package/assets/css/core.min.css.map +1 -1
  4. package/assets/css/email.min.css +1 -1
  5. package/assets/css/email.min.css.map +1 -1
  6. package/assets/css/error.min.css +1 -1
  7. package/assets/css/error.min.css.map +1 -1
  8. package/assets/css/style.min.css +1 -1
  9. package/assets/css/style.min.css.map +1 -1
  10. package/assets/favicons/manifest.json +32 -0
  11. package/assets/js/main.js +57 -78
  12. package/assets/js/modules/accordion.js +32 -36
  13. package/assets/js/modules/alert.js +56 -56
  14. package/assets/js/modules/carousel.js +101 -101
  15. package/assets/js/modules/chart.js +218 -217
  16. package/assets/js/modules/drawer.js +15 -15
  17. package/assets/js/modules/form.js +158 -158
  18. package/assets/js/modules/helpers.js +119 -119
  19. package/assets/js/modules/modal.js +89 -89
  20. package/assets/js/modules/nav.js +28 -27
  21. package/assets/js/modules/table.js +585 -585
  22. package/assets/js/modules/testimonial.js +82 -82
  23. package/assets/js/modules/youtubevideo.js +145 -145
  24. package/assets/js/scripts.bundle.js +174 -102
  25. package/assets/js/scripts.bundle.js.map +1 -1
  26. package/assets/js/scripts.bundle.min.js +2 -2
  27. package/assets/js/scripts.bundle.min.js.map +1 -1
  28. package/assets/sass/_components.scss +14 -14
  29. package/assets/sass/_corefiles.scss +40 -40
  30. package/assets/sass/_fonts.scss +16 -16
  31. package/assets/sass/_forms.scss +9 -9
  32. package/assets/sass/_func.scss +12 -10
  33. package/assets/sass/_functions/functions.scss +141 -141
  34. package/assets/sass/_functions/mixins.scss +170 -170
  35. package/assets/sass/_functions/utilities.scss +250 -250
  36. package/assets/sass/_functions/variables.scss +467 -462
  37. package/assets/sass/_print.scss +61 -61
  38. package/assets/sass/_tests/colours.spec.scss +45 -0
  39. package/assets/sass/_tests/func.spec.scss +233 -0
  40. package/assets/sass/_tests/mixins.spec.scss +194 -0
  41. package/assets/sass/_tests/sass.spec.js +9 -0
  42. package/assets/sass/_tests/typography.spec.scss +36 -0
  43. package/assets/sass/components/accordion.scss +197 -197
  44. package/assets/sass/components/alert.scss +98 -98
  45. package/assets/sass/components/cardDeck.scss +107 -107
  46. package/assets/sass/components/carousel.scss +234 -234
  47. package/assets/sass/components/charts.scss +569 -569
  48. package/assets/sass/components/drawer.scss +46 -46
  49. package/assets/sass/components/header.scss +63 -63
  50. package/assets/sass/components/modal.scss +136 -136
  51. package/assets/sass/components/nav.scss +919 -820
  52. package/assets/sass/components/property-searchbar.scss +143 -143
  53. package/assets/sass/components/snapshot.scss +70 -70
  54. package/assets/sass/components/stepper.scss +164 -164
  55. package/assets/sass/components/tabs.scss +87 -87
  56. package/assets/sass/components/testimonial.scss +132 -132
  57. package/assets/sass/components/timeline.scss +95 -95
  58. package/assets/sass/core.scss +6 -6
  59. package/assets/sass/elements/buttons.scss +209 -209
  60. package/assets/sass/elements/card.scss +177 -177
  61. package/assets/sass/elements/container.scss +225 -225
  62. package/assets/sass/elements/forms.scss +194 -194
  63. package/assets/sass/elements/links.scss +96 -96
  64. package/assets/sass/elements/lists.scss +112 -112
  65. package/assets/sass/elements/panel.scss +161 -161
  66. package/assets/sass/elements/tables.scss +290 -290
  67. package/assets/sass/elements/tooltips.scss +84 -84
  68. package/assets/sass/elements/type.scss +136 -136
  69. package/assets/sass/email.scss +65 -65
  70. package/assets/sass/error.scss +4 -4
  71. package/assets/sass/foundations/brand.scss +72 -72
  72. package/assets/sass/foundations/circles.scss +74 -74
  73. package/assets/sass/foundations/icons.scss +72 -72
  74. package/assets/sass/foundations/media.scss +50 -50
  75. package/assets/sass/foundations/reboot.scss +130 -130
  76. package/assets/sass/foundations/root.scss +106 -104
  77. package/assets/sass/main.scss +7 -7
  78. package/assets/svg/icons.svg +598 -588
  79. package/assets/svg/logo.svg +42 -42
  80. package/assets/ts/main.js +57 -0
  81. package/assets/ts/main.js.map +1 -0
  82. package/assets/ts/main.ts +68 -0
  83. package/assets/ts/modules/accordion.js +33 -0
  84. package/assets/ts/modules/accordion.js.map +1 -0
  85. package/assets/ts/modules/accordion.ts +43 -0
  86. package/dist/components.es.js +2504 -0
  87. package/dist/components.umd.js +56 -3760
  88. package/dist/style.css +1 -0
  89. package/package.json +108 -103
  90. package/src/components/Accordion/Accordion.screenshot.vue +57 -0
  91. package/src/components/Accordion/Accordion.spec.js +63 -0
  92. package/src/components/Accordion/Accordion.vue +22 -22
  93. package/src/components/Accordion/AccordionItem.vue +52 -52
  94. package/src/components/Accordion/README.md +34 -34
  95. package/src/components/Accordion/__screenshots__/win32/laptop/Accordion.png +0 -0
  96. package/src/components/Accordion/__screenshots__/win32/mobile/Accordion.png +0 -0
  97. package/src/components/Accordion/__screenshots__/win32/tablet/Accordion.png +0 -0
  98. package/src/components/Alert/Alert.spec.js +49 -0
  99. package/src/components/Alert/Alert.vue +39 -39
  100. package/src/components/Alert/README.md +28 -28
  101. package/src/components/Banner/Banner.spec.js +28 -0
  102. package/src/components/Banner/Banner.vue +38 -38
  103. package/src/components/Banner/README.md +23 -23
  104. package/src/components/CardDeck/CardDeck.spec.js +99 -0
  105. package/src/components/CardDeck/CardDeck.vue +77 -77
  106. package/src/components/CardDeck/README.md +24 -24
  107. package/src/components/Carousel/Carousel.spec.js +45 -0
  108. package/src/components/Carousel/Carousel.vue +85 -85
  109. package/src/components/Carousel/README.md +19 -19
  110. package/src/components/Chart/Chart.spec.js +201 -0
  111. package/src/components/Chart/Chart.vue +88 -88
  112. package/src/components/Chart/README.md +17 -17
  113. package/src/components/Drawer/Drawer.vue +53 -53
  114. package/src/components/Drawer/README.md +22 -22
  115. package/src/components/Header/Header.spec.js +33 -0
  116. package/src/components/Header/Header.vue +38 -38
  117. package/src/components/Header/README.md +27 -27
  118. package/src/components/Modal/Modal.spec.js +22 -0
  119. package/src/components/Modal/Modal.vue +43 -43
  120. package/src/components/Modal/README.md +19 -19
  121. package/src/components/Nav/Nav.spec.js +35 -0
  122. package/src/components/Nav/Nav.vue +215 -189
  123. package/src/components/Nav/README.md +22 -22
  124. package/src/components/NoteFeed/NoteFeed.vue +79 -79
  125. package/src/components/NoteFeed/README.md +16 -16
  126. package/src/components/PropertySearchbar/PropertySearchbar.vue +204 -204
  127. package/src/components/PropertySearchbar/README.md +25 -25
  128. package/src/components/Snapshot/README.md +20 -20
  129. package/src/components/Snapshot/Snapshot.vue +32 -32
  130. package/src/components/Stepper/README.md +32 -32
  131. package/src/components/Stepper/Step.vue +28 -28
  132. package/src/components/Stepper/Stepper.spec.js +99 -0
  133. package/src/components/Stepper/Stepper.vue +33 -33
  134. package/src/components/Tabs/README.md +27 -27
  135. package/src/components/Tabs/Tab.vue +32 -26
  136. package/src/components/Tabs/Tabs.vue +77 -75
  137. package/src/components/Testimonial/README.md +25 -25
  138. package/src/components/Testimonial/Testimonial.spec.js +57 -0
  139. package/src/components/Testimonial/Testimonial.vue +60 -60
  140. package/src/components/Timeline/README.md +18 -18
  141. package/src/components/Timeline/Timeline.spec.js +17 -0
  142. package/src/components/Timeline/Timeline.vue +24 -24
  143. package/src/elements/Card/Card.vue +113 -113
  144. package/src/elements/Card/README.md +24 -24
  145. package/src/elements/FileUploads/FileUploads.vue +48 -48
  146. package/src/elements/FileUploads/README.md +24 -24
  147. package/src/elements/Input/Input.vue +268 -268
  148. package/src/elements/Input/README.md +19 -19
  149. package/src/elements/Table/README.md +62 -62
  150. package/src/elements/Table/Table.spec.js +90 -0
  151. package/src/elements/Table/Table.vue +129 -129
  152. package/src/foundations/Icon/Icon.spec.js +24 -0
  153. package/src/foundations/Icon/Icon.vue +24 -24
  154. package/src/foundations/Icon/README.md +11 -11
  155. package/src/foundations/Logo/Logo.spec.js +56 -0
  156. package/src/foundations/Logo/Logo.vue +39 -39
  157. package/src/foundations/Logo/README.md +20 -20
  158. package/src/foundations/YoutubeVideo/README.md +11 -11
  159. package/src/foundations/YoutubeVideo/YoutubeVideo.vue +24 -24
  160. package/src/helpers/strings.js +12 -12
  161. package/src/index.js +27 -27
  162. package/src/vue-shim.d.ts +6 -0
  163. package/assets/.DS_Store +0 -0
  164. package/dist/components.common.js +0 -3749
  165. package/dist/components.common.js.map +0 -1
  166. package/dist/components.css +0 -2
  167. package/dist/components.css.map +0 -1
  168. package/dist/components.umd.js.map +0 -1
  169. package/dist/components.umd.min.js +0 -2
  170. package/dist/components.umd.min.js.map +0 -1
  171. package/dist/demo.html +0 -1
  172. package/src/.DS_Store +0 -0
@@ -0,0 +1,2504 @@
1
+ import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as h, Fragment as S, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as V, vModelText as Y, vModelSelect as X, resolveComponent as M, createVNode as A, createTextVNode as P, normalizeStyle as ee, withModifiers as te } from "vue";
2
+ const g = (e, n) => {
3
+ const t = e.__vccOpts || e;
4
+ for (const [c, m] of n)
5
+ t[c] = m;
6
+ return t;
7
+ }, se = {
8
+ name: "Icon",
9
+ props: {
10
+ id: {
11
+ type: String,
12
+ required: !1,
13
+ default: "email"
14
+ },
15
+ path: {
16
+ type: String,
17
+ required: !1,
18
+ default: "/svg/icons.svg"
19
+ }
20
+ }
21
+ }, ae = { class: "icon" }, ie = ["xlink:href"];
22
+ function ne(e, n, t, c, m, a) {
23
+ return o(), l("svg", ae, [
24
+ s("title", null, w(t.id), 1),
25
+ s("use", {
26
+ "xlink:href": t.path + "#icon-" + t.id
27
+ }, null, 8, ie)
28
+ ]);
29
+ }
30
+ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/foundations/Icon/Icon.vue"]]), oe = {
31
+ name: "Logo",
32
+ props: {
33
+ id: {
34
+ type: String,
35
+ required: !1,
36
+ default: "property"
37
+ },
38
+ path: {
39
+ type: String,
40
+ required: !1,
41
+ default: "/svg/logo.svg"
42
+ },
43
+ desc: {
44
+ type: String
45
+ }
46
+ },
47
+ computed: {
48
+ src: function() {
49
+ return "#logo-" + this.id;
50
+ },
51
+ className: function() {
52
+ return "brand brand--" + this.id;
53
+ }
54
+ }
55
+ }, le = ["xlink:href"], ce = ["innerHTML"];
56
+ function de(e, n, t, c, m, a) {
57
+ return o(), l("div", {
58
+ class: v(a.className)
59
+ }, [
60
+ (o(), l("svg", null, [
61
+ s("title", null, "iam " + w(t.id), 1),
62
+ s("use", {
63
+ "xlink:href": t.path + a.src
64
+ }, null, 8, le)
65
+ ])),
66
+ t.desc ? (o(), l("span", {
67
+ key: 0,
68
+ innerHTML: t.desc
69
+ }, null, 8, ce)) : h("v-if", !0)
70
+ ], 2);
71
+ }
72
+ const ue = /* @__PURE__ */ g(oe, [["render", de], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/foundations/Logo/Logo.vue"]]), O = (e) => e.charAt(0).toUpperCase() + e.slice(1), j = (e) => e.replace(/_/g, " "), fe = (e) => e.replace(/ /g, "_"), me = function(e) {
73
+ return e = e.toLowerCase(), e = fe(e), e = e.replace(/\W/g, ""), e;
74
+ }, he = function(e) {
75
+ return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
76
+ }, _e = (e, n) => String(e).padStart(n, "0");
77
+ function K(e) {
78
+ if (typeof e != "object")
79
+ return !1;
80
+ const n = e.querySelector("thead"), t = e.querySelector("tbody"), c = t.cloneNode(!0), m = new Event("sorted"), a = new Event("filtered"), r = new Event("reordered"), i = "table_" + Math.random().toString(36).substr(2, 9);
81
+ let f;
82
+ e.setAttribute("id", i);
83
+ const $ = function(_, u) {
84
+ let d = [];
85
+ Array.from(t.querySelectorAll("tr")).forEach((y, q) => {
86
+ let k = y.querySelector('td[data-label="' + _ + '"], th[data-label="' + _ + '"]').textContent;
87
+ he(k) && (k = _e(k, 10));
88
+ const z = {
89
+ index: k,
90
+ row: y
91
+ };
92
+ d.push(z);
93
+ }), d.sort((y, q) => y.index > q.index ? 1 : -1), u == "descending" && (d = d.reverse());
94
+ let p = "";
95
+ d.forEach((y, q) => {
96
+ p += y.row.outerHTML;
97
+ }), t.innerHTML = p, e.dispatchEvent(m);
98
+ };
99
+ if (e.addEventListener("click", function(_) {
100
+ for (var u = _.target; u && u != this; u = u.parentNode)
101
+ if (u.matches("[data-sortable]")) {
102
+ let d = u.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
103
+ Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
104
+ p.setAttribute("aria-sort", "none");
105
+ }), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent), $(u.textContent, d), Array.from(e.querySelectorAll("tr[draggable]")).forEach((p, y) => {
106
+ p.removeAttribute("draggable");
107
+ });
108
+ break;
109
+ }
110
+ }, !1), e.getAttribute("data-sortBy")) {
111
+ let _ = e.getAttribute("data-sort") == "ascending" ? "descending" : "ascending";
112
+ Array.from(e.querySelectorAll("[data-sortable]")).forEach((u, d) => {
113
+ u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", _), u.click());
114
+ });
115
+ }
116
+ const L = function(_) {
117
+ const u = document.createElement("div");
118
+ u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
119
+ const d = Array.from(e.querySelectorAll("th[data-filterable]"));
120
+ let p = {};
121
+ d.forEach((k, z) => {
122
+ Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((G, ki) => {
123
+ p[G.textContent] = G.textContent;
124
+ });
125
+ });
126
+ const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", q = d.length == 1 ? "d-none" : "d-sm-flex";
127
+ u.innerHTML = `<div class="col-sm-6 col-md-4 pb-3">
128
+ <div class="form-control__wrapper form-control-inline mb-0">
129
+ <label for="${i}_filter" class="form-label">${y}:</label>
130
+ <input type="search" name="${i}_filter" id="${i}_filter" class="form-control form-control-sm" placeholder="" list="${i}_list" />
131
+ </div>
132
+ <datalist id="${i}_list">
133
+ ${Object.keys(p).map((k) => `<option value="${k}"></option>`).join("")}
134
+ </datalist>
135
+ </div>
136
+ <div class="col-md-8 align-items-center pb-3 ${q}">
137
+ ${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' + d.map((k) => `<div class="form-check pe-3 mt-0 mb-0"><input class="form-check-input" type="checkbox" id="${i}_${k.textContent.replace(" ", "_").toLowerCase()}" checked="checked" /><label class="form-check-label text-nowrap" for="${i}_${k.textContent.replace(" ", "_").toLowerCase()}">${k.textContent}</label></div>`).join("")}
138
+ </div>`, e.prepend(u);
139
+ }, C = function(_) {
140
+ let u = [];
141
+ Array.from(c.querySelectorAll("tr")).forEach((p, y) => {
142
+ let q = "";
143
+ if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k, z) => {
144
+ q += p.querySelector('td[data-label="' + k.textContent + '"]').textContent + " | ";
145
+ }), q.indexOf(_) >= 0) {
146
+ const k = { row: p };
147
+ u.push(k);
148
+ }
149
+ });
150
+ let d = "";
151
+ u.forEach((p, y) => {
152
+ d += p.row.outerHTML;
153
+ }), t.innerHTML = d, e.dispatchEvent(a);
154
+ }, U = function() {
155
+ let _ = [];
156
+ Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((p, y) => {
157
+ _.push(p.textContent);
158
+ });
159
+ let u = [];
160
+ _.forEach((p, y) => {
161
+ Array.from(e.querySelectorAll('td[data-label="' + p + '"]')).forEach((q, k) => {
162
+ u[q.textContent] = q.textContent;
163
+ });
164
+ });
165
+ let d = e.querySelector("datalist");
166
+ d.innerHTML = Object.keys(u).map((p) => `<option value="${p}"></option>`).join("");
167
+ };
168
+ Array.from(e.querySelectorAll("[data-filterable]")).length && (L(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(_) {
169
+ for (var u = _.target; u && u != this; u = u.parentNode)
170
+ if (u.matches('input[type="search"]')) {
171
+ const d = u.value;
172
+ C(d);
173
+ }
174
+ }), e.addEventListener("change", function(_) {
175
+ for (var u = _.target; u && u != this; u = u.parentNode)
176
+ if (u.matches('input[type="search"]')) {
177
+ const d = u.value;
178
+ C(d);
179
+ }
180
+ }), e.addEventListener("change", function(_) {
181
+ for (var u = _.target; u && u != this; u = u.parentNode)
182
+ if (u.matches('input[type="checkbox"]')) {
183
+ const d = e.querySelector('input[type="search"]').value;
184
+ C(d), U();
185
+ }
186
+ }));
187
+ const H = function(_, u) {
188
+ let d = document.getElementById(i + "_style");
189
+ d == null && (d = document.createElement("style"), d.setAttribute("id", i + "_style"));
190
+ const p = _ * (u - 1) + 1, y = _ * u;
191
+ d.innerHTML = `
192
+ #${i} tbody tr {
193
+ display: none;
194
+ }
195
+ #${i} tbody tr:nth-child(${p}),
196
+ #${i} tbody tr:nth-child(${p}) ~ tr{
197
+ display: block;
198
+ }
199
+ @media screen and (min-width: 36em) {
200
+ #${i} tbody tr:nth-child(${p}),
201
+ #${i} tbody tr:nth-child(${p}) ~ tr{
202
+ display: table-row;
203
+ }
204
+ }
205
+ #${i} tbody tr:nth-child(${y}) ~ tr{
206
+ display: none;
207
+ }
208
+ `, e.append(d);
209
+ };
210
+ if (e.getAttribute("data-show")) {
211
+ const _ = parseInt(e.getAttribute("data-show")), u = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1, d = e.querySelectorAll("tbody tr").length;
212
+ _ < d && (H(_, u), J(i, e, _, u, d), D(i, e, _, u, d), e.addEventListener("change", function(p) {
213
+ for (var y = p.target; y && y != this; y = y.parentNode)
214
+ y.matches('.table__pagination input[type="number"]') && (H(y.value, u), D(i, e, y.value, u, d), e.setAttribute("data-show", y.value));
215
+ }), e.addEventListener("click", function(p) {
216
+ for (var y = p.target; y && y != this; y = y.parentNode)
217
+ y.matches(".page-item:not(.active):not(.disabled) .page-link") && (H(e.getAttribute("data-show"), y.getAttribute("data-page")), D(i, e, e.getAttribute("data-show"), y.getAttribute("data-page"), d));
218
+ }, !1), e.addEventListener("change", function(p) {
219
+ for (var y = p.target; y && y != this; y = y.parentNode)
220
+ y.matches(".table__pagination select") && (H(e.getAttribute("data-show"), y.value), D(i, e, e.getAttribute("data-show"), y.value, d));
221
+ }));
222
+ }
223
+ function Q(_) {
224
+ _.dataTransfer.setData("text/plain", _.target.id), f = _.target, _.target.classList.add("tr--dragging");
225
+ }
226
+ const F = function() {
227
+ Array.from(t.querySelectorAll("tr")).forEach((_, u) => {
228
+ if (_.querySelector('[data-label="Order"]') == null) {
229
+ const d = document.createElement("th");
230
+ d.innerHTML = u + 1, d.setAttribute("data-label", "Order"), _.prepend(d);
231
+ }
232
+ _.setAttribute("id", i + "_row_" + (u + 1)), _.setAttribute("data-order", u + 1), _.setAttribute("draggable", "true"), _.addEventListener("dragstart", Q);
233
+ });
234
+ };
235
+ if (e.getAttribute("data-reorder") && e.getAttribute("data-reorder") != "false") {
236
+ const _ = document.createElement("th");
237
+ _.innerHTML = "Order", _.title = "Click here to enable re-ordering via drag and drop", _.classList.add("table-order-reset"), n.querySelector("tr").prepend(_), F(), e.addEventListener("click", function(u) {
238
+ for (var d = u.target; d && d != this; d = d.parentNode)
239
+ if (d.matches(".table-order-reset")) {
240
+ Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
241
+ p.setAttribute("aria-sort", "none");
242
+ }), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), $("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((p, y) => {
243
+ p.setAttribute("draggable", "true");
244
+ });
245
+ break;
246
+ }
247
+ }, !1), document.addEventListener("dragover", function(u) {
248
+ u.preventDefault();
249
+ }, !1), document.addEventListener("dragenter", function(u) {
250
+ u.preventDefault(), u.dataTransfer.dropEffect = "move";
251
+ for (var d = u.target; d && d != this; d = d.parentNode)
252
+ d.matches("[data-reorder] tbody tr") && d.classList.add("tr--dropable");
253
+ }, !1), document.addEventListener("dragleave", function(u) {
254
+ u.preventDefault();
255
+ for (var d = u.target; d && d != this; d = d.parentNode)
256
+ d.matches("[data-reorder] tbody tr") && d.classList.remove("tr--dropable");
257
+ }, !1), document.addEventListener("drop", function(u) {
258
+ u.preventDefault();
259
+ for (var d = u.target; d && d != this; d = d.parentNode)
260
+ if (d.matches("[data-reorder] tbody tr")) {
261
+ d.parentNode != null && f.parentNode != null && d != f && (f.parentNode.removeChild(f), f.getAttribute("data-order") > d.getAttribute("data-order") ? d.parentNode.insertBefore(f, d) : d.parentNode.insertBefore(f, d.nextElementSibling), Array.from(t.querySelectorAll("tr")).forEach((p, y) => {
262
+ p.classList.remove("tr--dragging"), p.classList.remove("tr--dropable"), p.querySelector("th").innerHTML = y + 1, p.setAttribute("data-order", y + 1);
263
+ }), e.dispatchEvent(r));
264
+ break;
265
+ }
266
+ }, !1);
267
+ }
268
+ e.addEventListener("filtered", function(_) {
269
+ if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && $(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
270
+ const u = parseInt(e.getAttribute("data-show")), d = e.querySelectorAll("tbody tr").length, p = e.querySelector(".table__pagination");
271
+ p != null && p.remove(), u < d && (H(u, 1), J(i, e, u, 1, d), D(i, e, u, 1, d));
272
+ }
273
+ e.getAttribute("data-reorder") && F();
274
+ }, !1), e.addEventListener("sorted", function(_) {
275
+ e.getAttribute("data-reorder") && F();
276
+ }, !1), e.addEventListener("populated", function(_) {
277
+ var u = e.querySelector(".table__filters");
278
+ u.remove();
279
+ var d = e.querySelector(".table__pagination");
280
+ d.remove();
281
+ var p = e.cloneNode(!0);
282
+ e.parentNode.replaceChild(p, e), K(p);
283
+ }, !1);
284
+ }
285
+ const J = function(e, n, t, c, m) {
286
+ const a = document.createElement("div");
287
+ a.classList.add("table__pagination"), a.classList.add("row"), a.classList.add("pt-3"), a.classList.add("pb-3"), a.innerHTML = `<div class="col mw-fit-content mb-3">
288
+ <div class="form-control__wrapper form-control-inline mb-0">
289
+ <label for="${e}_showing" class="form-label">Showing:</label>
290
+ <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="${m}" />
291
+ </div>
292
+ <datalist id="${e}_pagination">
293
+ <option value="5">5</option>
294
+ ${m > 10 ? '<option value="10">10</option>' : ""}
295
+ ${m > 20 ? '<option value="20">20</option>' : ""}
296
+ <option value="${m}">${m}</option>
297
+ </datalist>
298
+ </div>
299
+ <div class="col mw-fit-content me-auto d-flex align-items-center mb-3"><span class="label">per page</span></div>
300
+ <div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`, n.append(a);
301
+ }, D = function(e, n, t, c, m) {
302
+ const a = document.getElementById(e + "_paginationBtns");
303
+ if (a == null)
304
+ return !1;
305
+ const r = Math.ceil(m / t);
306
+ if (r == 1)
307
+ a.innerHTML = "";
308
+ else if (r < 5) {
309
+ let i = "";
310
+ for (let f = 1; f <= r; f++)
311
+ f == c ? i += `<li class="page-item active" aria-current="page"><span class="page-link">${f}</span></li>` : i += `<li class="page-item"><button class="page-link" data-page="${f}">${f}</button></li>`;
312
+ a.innerHTML = `<span class="pe-2 mb-3">Page: </span><ul class="pagination mb-3">
313
+ ${c == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(c) - 1}">Previous</button></li>`}
314
+ ${i}
315
+ ${c == r ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(c) + 1}">Next</button></li>`}
316
+ </ul>`;
317
+ } else {
318
+ let i = "";
319
+ for (let f = 1; f <= r; f++)
320
+ f == c ? i += `<option value="${f}" selected>Page ${f}</option>` : i += `<option value="${f}">Page ${f}</option>`;
321
+ a.innerHTML = `
322
+ <div class="form-control__wrapper page-number mb-2">
323
+ <select class="form-select">
324
+ ${i}
325
+ </select>
326
+ </div>
327
+ `;
328
+ }
329
+ };
330
+ let W = function(e) {
331
+ return typeof e != "string" ? e : (e = e.replace("\xA3", ""), e = e.replace("%", ""), Number.isNaN(Number.parseFloat(e)) ? 0 : Number.parseFloat(e));
332
+ };
333
+ const pe = {
334
+ name: "Table",
335
+ props: {
336
+ reorder: {
337
+ type: Boolean,
338
+ required: !1
339
+ },
340
+ page: {
341
+ type: Number,
342
+ required: !1
343
+ },
344
+ show: {
345
+ type: Number,
346
+ required: !1
347
+ },
348
+ sortby: {
349
+ type: String,
350
+ required: !1
351
+ },
352
+ sort: {
353
+ type: String,
354
+ required: !1
355
+ },
356
+ headingclass: {
357
+ type: String,
358
+ required: !1
359
+ },
360
+ items: {
361
+ type: Array,
362
+ required: !0
363
+ },
364
+ fields: {
365
+ type: Array,
366
+ required: !0
367
+ }
368
+ },
369
+ computed: {
370
+ cellHeading() {
371
+ return (e) => `${O(j(e))}`;
372
+ },
373
+ numericValue() {
374
+ return (e) => (e = W(e), e);
375
+ }
376
+ },
377
+ mounted() {
378
+ this.$nextTick(function() {
379
+ K(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
380
+ console.log("Table sorted");
381
+ }, !1), this.$el.addEventListener("filtered", function(e) {
382
+ console.log("Table filtered");
383
+ }, !1);
384
+ });
385
+ },
386
+ updated() {
387
+ this.$nextTick(function() {
388
+ let e = this.$refs.wrapper.querySelector("tbody"), n = "";
389
+ this.items.forEach((c, m) => {
390
+ let a = c.rowid ? c.rowid : "";
391
+ c = Object.fromEntries(Object.entries(c).filter(([r]) => r !== "rowid")), n += `<tr data-row-id="${a}">${Object.keys(c).map((r) => `<td data-label="${O(j(r))}" data-numeric="${W(c[r])}">${c[r]}</td>`).join("")}</tr>`;
392
+ }), e.innerHTML = n;
393
+ const t = new Event("filtered");
394
+ this.$refs.wrapper.dispatchEvent(t);
395
+ });
396
+ }
397
+ }, ye = ["data-sortby", "data-sort", "data-show", "data-page", "data-reorder"], be = { key: 0 }, ve = ["data-sortable", "data-filterable"], ge = { key: 1 }, we = ["data-row-id"], ke = ["innerHTML", "data-label", "data-numeric"];
398
+ function $e(e, n, t, c, m, a) {
399
+ return o(), l("div", {
400
+ class: "table__wrapper",
401
+ ref: "wrapper",
402
+ "data-sortby": t.sortby,
403
+ "data-sort": t.sort,
404
+ "data-show": t.show,
405
+ "data-page": t.page,
406
+ "data-reorder": t.reorder
407
+ }, [
408
+ s("table", null, [
409
+ t.fields ? (o(), l("thead", be, [
410
+ s("tr", {
411
+ class: v(t.headingclass)
412
+ }, [
413
+ (o(!0), l(S, null, x(t.fields, (r) => (o(), l("th", {
414
+ key: r.key,
415
+ "data-sortable": r.sortable,
416
+ "data-filterable": r.filterable
417
+ }, w(a.cellHeading(r.key)), 9, ve))), 128))
418
+ ], 2)
419
+ ])) : h("v-if", !0),
420
+ t.items ? (o(), l("tbody", ge, [
421
+ (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("tr", {
422
+ key: i,
423
+ "data-row-id": r.rowid
424
+ }, [
425
+ (o(!0), l(S, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, $) => (o(), l("td", {
426
+ key: $,
427
+ innerHTML: f,
428
+ "data-label": a.cellHeading($),
429
+ "data-numeric": a.numericValue(f)
430
+ }, null, 8, ke))), 128))
431
+ ], 8, we))), 128))
432
+ ])) : h("v-if", !0)
433
+ ]),
434
+ b(e.$slots, "default")
435
+ ], 8, ye);
436
+ }
437
+ const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Table/Table.vue"]]), Ae = {
438
+ name: "Input",
439
+ props: {
440
+ value: {
441
+ type: String,
442
+ required: !1
443
+ },
444
+ id: {
445
+ type: String,
446
+ required: !0
447
+ },
448
+ name: {
449
+ type: String,
450
+ required: !1
451
+ },
452
+ list: {
453
+ type: String,
454
+ required: !1
455
+ },
456
+ label: {
457
+ type: String,
458
+ required: !1
459
+ },
460
+ labelclass: {
461
+ type: String,
462
+ required: !1
463
+ },
464
+ inputclass: {
465
+ type: String,
466
+ required: !1
467
+ },
468
+ type: {
469
+ type: String,
470
+ required: !1,
471
+ default: "text"
472
+ },
473
+ size: {
474
+ type: String,
475
+ required: !1
476
+ },
477
+ errormsg: {
478
+ type: String,
479
+ required: !1
480
+ },
481
+ options: {
482
+ type: Array,
483
+ required: !1
484
+ },
485
+ prefix: {
486
+ type: String,
487
+ required: !1
488
+ },
489
+ prefixClass: {
490
+ type: String,
491
+ required: !1
492
+ },
493
+ suffix: {
494
+ type: String,
495
+ required: !1
496
+ },
497
+ suffixClass: {
498
+ type: String,
499
+ required: !1
500
+ },
501
+ title: {
502
+ type: String,
503
+ required: !1
504
+ },
505
+ hint: {
506
+ type: String,
507
+ required: !1
508
+ }
509
+ },
510
+ computed: {
511
+ displayLabel() {
512
+ return () => this.$attrs.multiple ? this.label + '<span class="small d-block text-body font-body fw-normal">Hold down the Ctrl (windows) or Command (Mac) button to select multiple options.</span>' : this.hint ? this.label + `<span class="small d-block text-body font-body fw-normal">${this.hint}</span>` : this.label;
513
+ },
514
+ wrapperClass() {
515
+ return () => {
516
+ switch (this.type) {
517
+ case "radio":
518
+ case "checkbox":
519
+ return "form-check";
520
+ case "radio-btn":
521
+ case "checkbox-btn":
522
+ return !1;
523
+ default:
524
+ return "form-control__wrapper";
525
+ }
526
+ };
527
+ },
528
+ needPattern() {
529
+ return () => {
530
+ if (this.pattern)
531
+ return this.pattern;
532
+ switch (this.type) {
533
+ case "datetime-local":
534
+ return "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}";
535
+ }
536
+ return !1;
537
+ };
538
+ },
539
+ needsLabel() {
540
+ return () => {
541
+ switch (this.type) {
542
+ case "radio":
543
+ case "radio-btn":
544
+ case "checkbox":
545
+ case "checkbox-btn":
546
+ return !1;
547
+ default:
548
+ return !0;
549
+ }
550
+ };
551
+ },
552
+ isInput() {
553
+ return () => {
554
+ switch (this.type) {
555
+ case "textarea":
556
+ case "select":
557
+ case "radio":
558
+ case "radio-btn":
559
+ case "checkbox":
560
+ case "checkbox-btn":
561
+ case "range":
562
+ case "color":
563
+ return !1;
564
+ default:
565
+ return !0;
566
+ }
567
+ };
568
+ },
569
+ allowDatalist() {
570
+ return () => {
571
+ switch (this.type) {
572
+ case "select":
573
+ case "radio":
574
+ case "radio-btn":
575
+ case "checkbox":
576
+ case "checkbox-btn":
577
+ return !1;
578
+ default:
579
+ return !0;
580
+ }
581
+ };
582
+ },
583
+ hasOptions() {
584
+ return () => {
585
+ if (this.list)
586
+ return this.list;
587
+ if (this.options)
588
+ return this.id + "-list";
589
+ };
590
+ },
591
+ inputVal: {
592
+ get() {
593
+ return this.value == null && this.options != null && this.type == "select" ? this.$attrs.multiple ? [] : this.options[0].value : this.value;
594
+ },
595
+ set(e) {
596
+ this.$emit("input", e);
597
+ }
598
+ }
599
+ },
600
+ mounted() {
601
+ this.$nextTick(function() {
602
+ let e = this.$refs.wrapper;
603
+ if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
604
+ const n = document.createDocumentFragment();
605
+ Array.from(e.childNodes).forEach((t) => n.appendChild(t)), e.parentNode.insertBefore(n, e), e.parentNode.removeChild(e);
606
+ }
607
+ });
608
+ },
609
+ methods: {
610
+ inputKeyup(e) {
611
+ this.$emit("keyupEvent", e);
612
+ },
613
+ clickEvent() {
614
+ this.$emit("bus");
615
+ }
616
+ }
617
+ }, Se = ["for", "innerHTML", "title"], xe = ["innerHTML"], Le = ["innerHTML"], qe = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Ce = {
618
+ key: 5,
619
+ class: "input-group"
620
+ }, Me = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
621
+ key: 6,
622
+ class: "input-group"
623
+ }, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" }, Pe = ["type", "name", "id", "pattern"], Ie = ["value"], Ue = ["id"], Fe = ["value"], ze = ["type", "name", "id"], Ve = ["for", "innerHTML"], Ge = ["type", "name", "id"], Oe = ["for", "innerHTML"], je = ["innerHTML"];
624
+ function Je(e, n, t, c, m, a) {
625
+ return o(), l("div", {
626
+ class: v(a.wrapperClass()),
627
+ ref: "wrapper"
628
+ }, [
629
+ a.needsLabel() ? (o(), l("label", {
630
+ key: 0,
631
+ class: v(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
632
+ for: t.id,
633
+ innerHTML: a.displayLabel(),
634
+ title: t.title
635
+ }, null, 10, Se)) : h("v-if", !0),
636
+ h(" Prefix and Suffix "),
637
+ t.prefix ? (o(), l("span", {
638
+ key: 1,
639
+ class: v(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
640
+ innerHTML: t.prefix,
641
+ role: "presentation"
642
+ }, null, 10, xe)) : h("v-if", !0),
643
+ t.suffix ? (o(), l("span", {
644
+ key: 2,
645
+ class: v(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
646
+ innerHTML: t.suffix,
647
+ role: "presentation"
648
+ }, null, 10, Le)) : h("v-if", !0),
649
+ h(" Standard input field "),
650
+ a.isInput() ? N((o(), l("input", T({
651
+ key: 3,
652
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => a.inputVal = r),
653
+ class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
654
+ type: t.type,
655
+ name: t.name ? t.name : t.id,
656
+ id: t.id,
657
+ pattern: a.needPattern(),
658
+ list: a.hasOptions()
659
+ }, e.$attrs, {
660
+ onKeyup: n[1] || (n[1] = (...r) => a.inputKeyup && a.inputKeyup(...r))
661
+ }), null, 16, qe)), [
662
+ [V, a.inputVal]
663
+ ]) : h("v-if", !0),
664
+ h(" Textarea "),
665
+ t.type == "textarea" ? N((o(), l("textarea", T({
666
+ key: 4,
667
+ "onUpdate:modelValue": n[2] || (n[2] = (r) => a.inputVal = r),
668
+ class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
669
+ type: t.type,
670
+ name: t.name ? t.name : t.id,
671
+ id: t.id,
672
+ pattern: a.needPattern()
673
+ }, e.$attrs), null, 16, Te)), [
674
+ [Y, a.inputVal]
675
+ ]) : h("v-if", !0),
676
+ h(" Range "),
677
+ t.type == "range" ? (o(), l("div", Ce, [
678
+ N(s("input", T({
679
+ "onUpdate:modelValue": n[3] || (n[3] = (r) => a.inputVal = r),
680
+ class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
681
+ type: t.type,
682
+ name: t.name ? t.name : t.id,
683
+ id: t.id,
684
+ pattern: a.needPattern(),
685
+ list: a.hasOptions()
686
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Me), [
687
+ [V, a.inputVal]
688
+ ]),
689
+ s("output", He, w(t.value), 1)
690
+ ])) : h("v-if", !0),
691
+ h(" Color picker "),
692
+ t.type == "color" ? (o(), l("div", Ne, [
693
+ N(s("input", T({
694
+ "onUpdate:modelValue": n[4] || (n[4] = (r) => a.inputVal = r),
695
+ class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
696
+ type: t.type,
697
+ name: t.name ? t.name : t.id,
698
+ id: t.id,
699
+ pattern: a.needPattern(),
700
+ list: a.hasOptions()
701
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, De), [
702
+ [V, a.inputVal]
703
+ ]),
704
+ s("output", Be, w(t.value ? e.vale : "#000000"), 1)
705
+ ])) : h("v-if", !0),
706
+ h(" Select/dropdown "),
707
+ t.type == "select" ? N((o(), l("select", T({
708
+ key: 7,
709
+ "onUpdate:modelValue": n[5] || (n[5] = (r) => a.inputVal = r),
710
+ class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
711
+ type: t.type,
712
+ name: t.id,
713
+ id: t.id,
714
+ pattern: a.needPattern()
715
+ }, e.$attrs), [
716
+ (o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
717
+ key: i,
718
+ value: r.value
719
+ }, w(r.display ? r.display : r.value), 9, Ie))), 128))
720
+ ], 16, Pe)), [
721
+ [X, a.inputVal]
722
+ ]) : h("v-if", !0),
723
+ a.allowDatalist() ? (o(), l("datalist", {
724
+ key: 8,
725
+ id: t.id + "-list"
726
+ }, [
727
+ (o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
728
+ key: i,
729
+ value: r.value
730
+ }, w(r.value), 9, Fe))), 128))
731
+ ], 8, Ue)) : h("v-if", !0),
732
+ h(" Checkbox "),
733
+ t.type == "checkbox" || t.type == "radio" ? (o(), l("input", T({
734
+ key: 9,
735
+ class: "form-check-input",
736
+ type: t.type,
737
+ name: t.name ? t.name : t.id,
738
+ id: t.id
739
+ }, e.$attrs), null, 16, ze)) : h("v-if", !0),
740
+ t.type == "checkbox" || t.type == "radio" ? (o(), l("label", {
741
+ key: 10,
742
+ class: v(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
743
+ for: t.id,
744
+ innerHTML: t.label
745
+ }, null, 10, Ve)) : h("v-if", !0),
746
+ h(" Checkbox Button "),
747
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("input", T({
748
+ key: 11,
749
+ class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
750
+ type: t.type.replace("-btn", ""),
751
+ autocomplete: "off",
752
+ name: t.name ? t.name : t.id,
753
+ id: t.id
754
+ }, e.$attrs), null, 16, Ge)) : h("v-if", !0),
755
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("label", {
756
+ key: 12,
757
+ class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
758
+ for: t.id,
759
+ innerHTML: t.label,
760
+ onClick: n[6] || (n[6] = (...r) => a.clickEvent && a.clickEvent(...r))
761
+ }, null, 10, Oe)) : h("v-if", !0),
762
+ h(" Error message "),
763
+ t.errormsg ? (o(), l("p", {
764
+ key: 13,
765
+ class: "invalid-feedback mb-0",
766
+ innerHTML: t.errormsg
767
+ }, null, 8, je)) : h("v-if", !0),
768
+ b(e.$slots, "default")
769
+ ], 2);
770
+ }
771
+ const I = /* @__PURE__ */ g(Ae, [["render", Je], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Input/Input.vue"]]), We = {
772
+ components: {
773
+ Input: I
774
+ },
775
+ name: "FileUploads",
776
+ props: {
777
+ id: {
778
+ type: String,
779
+ required: !0
780
+ },
781
+ inputcolclass: {
782
+ type: String,
783
+ required: !1
784
+ },
785
+ maxfilesize: {
786
+ type: Number,
787
+ required: !1
788
+ },
789
+ maxfiles: {
790
+ type: Number,
791
+ required: !1
792
+ }
793
+ }
794
+ }, Ke = { class: "multiple-file-uploads mb-4" }, Ee = { class: "row" }, Re = { class: "col-12 col-md me-auto" }, Ze = /* @__PURE__ */ s("div", { class: "col mw-fit-content" }, [
795
+ /* @__PURE__ */ s("button", {
796
+ type: "button",
797
+ class: "btn btn-tertiary me-0",
798
+ "data-delete": ""
799
+ }, "Delete")
800
+ ], -1), Qe = ["data-maxfiles"];
801
+ function Ye(e, n, t, c, m, a) {
802
+ const r = M("Input");
803
+ return o(), l("div", Ke, [
804
+ s("div", Ee, [
805
+ s("div", {
806
+ class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
807
+ }, [
808
+ A(r, {
809
+ type: "file",
810
+ id: t.id,
811
+ name: `${t.id}[]`,
812
+ label: "Add new file",
813
+ labelclass: "d-none",
814
+ class: "form-control-inline col",
815
+ required: "",
816
+ "data-filesize": t.maxfilesize
817
+ }, null, 8, ["id", "name", "data-filesize"])
818
+ ], 2),
819
+ s("div", Re, [
820
+ b(e.$slots, "default")
821
+ ]),
822
+ Ze
823
+ ]),
824
+ s("button", {
825
+ type: "button",
826
+ class: "btn btn-secondary me-0",
827
+ "data-add": "",
828
+ "data-maxfiles": t.maxfiles
829
+ }, "+ Add file", 8, Qe)
830
+ ]);
831
+ }
832
+ const Ai = /* @__PURE__ */ g(We, [["render", Ye], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/FileUploads/FileUploads.vue"]]);
833
+ function Xe(e) {
834
+ if (!e.classList.contains("accordion--keep-open")) {
835
+ const n = e.querySelectorAll(":scope > details");
836
+ n.forEach((t) => {
837
+ t.addEventListener("click", () => {
838
+ n.forEach((c) => {
839
+ c !== t && c.removeAttribute("open");
840
+ });
841
+ });
842
+ });
843
+ }
844
+ if (window.location.hash && document.querySelector(window.location.hash + ":not([open]) summary")) {
845
+ const n = document.querySelector(window.location.hash + " summary");
846
+ n instanceof HTMLElement && n.click();
847
+ }
848
+ window.addEventListener("hashchange", function() {
849
+ if (window.location.hash && document.querySelector(window.location.hash + " summary")) {
850
+ const n = document.querySelector(window.location.hash + " summary");
851
+ n instanceof HTMLElement && n.click();
852
+ }
853
+ });
854
+ }
855
+ const et = {
856
+ name: "Accordion",
857
+ props: {},
858
+ mounted() {
859
+ Xe(this.$refs.wrapper);
860
+ }
861
+ }, tt = {
862
+ class: "container accordion",
863
+ ref: "wrapper"
864
+ };
865
+ function st(e, n, t, c, m, a) {
866
+ return o(), l("div", tt, [
867
+ b(e.$slots, "default")
868
+ ], 512);
869
+ }
870
+ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/Accordion.vue"]]), at = {
871
+ name: "AccordionItem",
872
+ props: {
873
+ title: {
874
+ type: String,
875
+ required: !0
876
+ },
877
+ titlecolour: {
878
+ type: String,
879
+ required: !1
880
+ },
881
+ badge: {
882
+ type: [Number, String],
883
+ required: !1
884
+ },
885
+ badgecolour: {
886
+ type: String,
887
+ required: !1,
888
+ default: "light"
889
+ },
890
+ lazy: {
891
+ type: Boolean,
892
+ required: !1
893
+ }
894
+ },
895
+ computed: {
896
+ createID() {
897
+ return (e) => `${me(e)}`;
898
+ }
899
+ },
900
+ data() {
901
+ return {
902
+ show: !this.lazy
903
+ };
904
+ }
905
+ }, it = ["id"], nt = { class: "accordion-header accordion-button h4" }, rt = {
906
+ key: 0,
907
+ class: "accordion-body"
908
+ };
909
+ function ot(e, n, t, c, m, a) {
910
+ return o(), l("details", {
911
+ class: "accordion-item",
912
+ id: a.createID(t.title)
913
+ }, [
914
+ s("summary", {
915
+ class: v(`${t.titlecolour ? `bg-${t.titlecolour}` : ""}`),
916
+ onClick: n[0] || (n[0] = (r) => m.show = !0)
917
+ }, [
918
+ s("span", nt, [
919
+ P(w(t.title), 1),
920
+ t.badge ? (o(), l("span", {
921
+ key: 0,
922
+ class: v(`badge bg-${t.badgecolour}`)
923
+ }, w(t.badge), 3)) : h("v-if", !0)
924
+ ])
925
+ ], 2),
926
+ m.show ? (o(), l("div", rt, [
927
+ b(e.$slots, "default")
928
+ ])) : h("v-if", !0)
929
+ ], 8, it);
930
+ }
931
+ const xi = /* @__PURE__ */ g(at, [["render", ot], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/AccordionItem.vue"]]), lt = {
932
+ name: "Header",
933
+ props: {
934
+ title: {
935
+ type: String,
936
+ required: !0
937
+ },
938
+ image: {
939
+ type: String,
940
+ required: !1
941
+ },
942
+ background: {
943
+ type: String,
944
+ default: "light",
945
+ required: !1
946
+ }
947
+ }
948
+ }, ct = { class: "container" }, dt = { class: "row" }, ut = { class: "col-sm-6" }, ft = { class: "pt-5 pb-3 px-4" }, mt = { class: "col-sm-6 col-md-5 ms-auto" }, ht = ["src"];
949
+ function _t(e, n, t, c, m, a) {
950
+ return o(), l("div", ct, [
951
+ s("div", {
952
+ class: v("bg-" + t.background + " mb-4")
953
+ }, [
954
+ s("div", dt, [
955
+ s("div", ut, [
956
+ s("div", ft, [
957
+ s("h2", null, w(t.title), 1),
958
+ b(e.$slots, "default")
959
+ ])
960
+ ]),
961
+ s("div", mt, [
962
+ t.image ? (o(), l("img", {
963
+ key: 0,
964
+ src: t.image,
965
+ alt: "",
966
+ class: "h-100 w-100 object-cover"
967
+ }, null, 8, ht)) : h("v-if", !0)
968
+ ])
969
+ ])
970
+ ], 2)
971
+ ]);
972
+ }
973
+ const Li = /* @__PURE__ */ g(lt, [["render", _t], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Banner/Banner.vue"]]);
974
+ const pt = {
975
+ name: "Card",
976
+ props: {
977
+ link: {
978
+ type: String,
979
+ required: !1
980
+ },
981
+ titleclass: {
982
+ type: String,
983
+ required: !1,
984
+ default: "h4"
985
+ },
986
+ title: {
987
+ type: String,
988
+ required: !1
989
+ },
990
+ subtitle: {
991
+ type: String,
992
+ required: !1
993
+ },
994
+ content: {
995
+ type: String,
996
+ required: !1
997
+ },
998
+ type: {
999
+ type: String,
1000
+ required: !1
1001
+ },
1002
+ btntype: {
1003
+ type: String,
1004
+ required: !1,
1005
+ default: "secondary"
1006
+ },
1007
+ ctatext: {
1008
+ type: String,
1009
+ required: !1,
1010
+ default: "Find out more"
1011
+ },
1012
+ hidectatext: {
1013
+ type: Boolean,
1014
+ required: !1,
1015
+ default: !1
1016
+ },
1017
+ image: {
1018
+ type: String,
1019
+ required: !1
1020
+ },
1021
+ details: {
1022
+ type: Object,
1023
+ required: !1
1024
+ }
1025
+ },
1026
+ computed: {
1027
+ cardStatus() {
1028
+ return () => this.details && this.details.status ? `${this.details.status == "Live now" ? '<span class="text-danger lh-0 fs-1 align-middle">&#8226;</span>&nbsp;&nbsp;' : ""}${this.details.status}` : "";
1029
+ },
1030
+ cardMedia() {
1031
+ return () => `<svg xmlns='http://www.w3.org/2000/svg' width='30' height='28' viewBox='0 0 30 28' class="icon text-white"><title>Images </title><path d='M15 10.5c2.484 0 4.5 2.016 4.5 4.5s-2.016 4.5-4.5 4.5-4.5-2.016-4.5-4.5 2.016-4.5 4.5-4.5zM26 4c2.203 0 4 1.797 4 4v14c0 2.203-1.797 4-4 4h-22c-2.203 0-4-1.797-4-4v-14c0-2.203 1.797-4 4-4h3.5l0.797-2.125c0.391-1.031 1.609-1.875 2.703-1.875h8c1.094 0 2.312 0.844 2.703 1.875l0.797 2.125h3.5zM15 22c3.859 0 7-3.141 7-7s-3.141-7-7-7-7 3.141-7 7 3.141 7 7 7z'></path></svg> ${this.details && this.details.images ? `${this.details.images}` : "0"}&nbsp;&nbsp;|&nbsp;&nbsp;<svg xmlns='http://www.w3.org/2000/svg' width='30' height='28' viewBox='0 0 28 28' class="icon text-white ms-0"><title>Videos </title><path d="M11.109 17.625l7.562-3.906-7.562-3.953v7.859zM14 4.156c5.891 0 9.797 0.281 9.797 0.281 0.547 0.063 1.75 0.063 2.812 1.188 0 0 0.859 0.844 1.109 2.781 0.297 2.266 0.281 4.531 0.281 4.531v2.125s0.016 2.266-0.281 4.531c-0.25 1.922-1.109 2.781-1.109 2.781-1.062 1.109-2.266 1.109-2.812 1.172 0 0-3.906 0.297-9.797 0.297v0c-7.281-0.063-9.516-0.281-9.516-0.281-0.625-0.109-2.031-0.078-3.094-1.188 0 0-0.859-0.859-1.109-2.781-0.297-2.266-0.281-4.531-0.281-4.531v-2.125s-0.016-2.266 0.281-4.531c0.25-1.937 1.109-2.781 1.109-2.781 1.062-1.125 2.266-1.125 2.812-1.188 0 0 3.906-0.281 9.797-0.281v0z"></path></svg> ${this.details && this.details.videos ? `${this.details.videos}` : "0"}`;
1032
+ },
1033
+ cardContent() {
1034
+ return () => {
1035
+ const e = function(m) {
1036
+ switch (m) {
1037
+ case "Modern method":
1038
+ return "bg-secondary text-primary";
1039
+ case "Freehold":
1040
+ return "bg-light text-dark";
1041
+ default:
1042
+ return "bg-body text-white";
1043
+ }
1044
+ }, n = this.details && this.details.tags ? this.details.tags.map((m) => `<span class="badge rounded-pill py-2 px-3 mb-3 me-2 ${e(m)}">${m}</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>` : "", c = `
1045
+ ${this.details && this.details.guideprice ? `<span class="d-block h6 text-dark mb-1">Price guide: ${this.details.guideprice}</span>` : ""}
1046
+ ${this.details && this.details.auctiontime ? `<span class="d-block h6 text-primary mb-4">Auction time left: ${this.details.auctiontime}</span>` : ""}
1047
+ ${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>` : ""}
1048
+ `;
1049
+ return `${n}${t}${c}${this.content}`;
1050
+ };
1051
+ }
1052
+ }
1053
+ }, yt = ["href", "title"], bt = {
1054
+ key: 0,
1055
+ class: "card-header__wrapper"
1056
+ }, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], $t = ["src"], At = ["innerHTML"], St = {
1057
+ key: 1,
1058
+ class: "card-footer"
1059
+ }, xt = { class: "visually-hidden" };
1060
+ function Lt(e, n, t, c, m, a) {
1061
+ return o(), l("a", {
1062
+ href: t.link,
1063
+ class: v("card" + (t.type ? " card--" + t.type : "")),
1064
+ title: "Find out more: " + t.title + (t.subtitle ? " - " + t.subtitle : "")
1065
+ }, [
1066
+ t.image ? (o(), l("div", bt, [
1067
+ s("img", {
1068
+ src: t.image,
1069
+ alt: "",
1070
+ loading: "lazy",
1071
+ class: "card-image"
1072
+ }, null, 8, vt),
1073
+ s("div", gt, [
1074
+ this.details && this.details.status ? (o(), l("span", {
1075
+ key: 0,
1076
+ class: "badge bg-primary p-2 me-2",
1077
+ innerHTML: a.cardStatus()
1078
+ }, null, 8, wt)) : h("v-if", !0),
1079
+ this.details && (this.details.images || this.details.videos) ? (o(), l("span", {
1080
+ key: 1,
1081
+ class: "badge bg-black bg-opacity-50 p-2 align-self-end",
1082
+ innerHTML: a.cardMedia()
1083
+ }, null, 8, kt)) : h("v-if", !0)
1084
+ ]),
1085
+ t.details && t.details.logo ? (o(), l("img", {
1086
+ key: 0,
1087
+ src: t.details.logo,
1088
+ alt: "",
1089
+ loading: "lazy",
1090
+ class: "card-logo"
1091
+ }, null, 8, $t)) : h("v-if", !0)
1092
+ ])) : h("v-if", !0),
1093
+ s("div", {
1094
+ class: "card-body",
1095
+ innerHTML: a.cardContent()
1096
+ }, null, 8, At),
1097
+ t.hidectatext == !1 ? (o(), l("div", St, [
1098
+ s("span", {
1099
+ class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
1100
+ }, [
1101
+ P(w(t.ctatext), 1),
1102
+ s("span", xt, " about " + w(t.title), 1)
1103
+ ], 2)
1104
+ ])) : h("v-if", !0)
1105
+ ], 10, yt);
1106
+ }
1107
+ const R = /* @__PURE__ */ g(pt, [["render", Lt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Card/Card.vue"]]);
1108
+ const qt = {
1109
+ components: {
1110
+ Card: R
1111
+ },
1112
+ name: "CardDeck",
1113
+ props: {
1114
+ items: {
1115
+ type: Array,
1116
+ required: !1
1117
+ },
1118
+ cols: {
1119
+ type: Number,
1120
+ required: !1,
1121
+ default: 1
1122
+ },
1123
+ smcols: {
1124
+ type: Number,
1125
+ required: !1,
1126
+ default: 1
1127
+ },
1128
+ mdcols: {
1129
+ type: Number,
1130
+ required: !1,
1131
+ default: 3
1132
+ },
1133
+ gap: {
1134
+ type: Number,
1135
+ required: !1,
1136
+ default: 4
1137
+ },
1138
+ cardtype: {
1139
+ type: String,
1140
+ required: !1
1141
+ },
1142
+ cardclass: {
1143
+ type: String,
1144
+ required: !1
1145
+ },
1146
+ btntype: {
1147
+ type: String,
1148
+ required: !1
1149
+ },
1150
+ titleclass: {
1151
+ type: String,
1152
+ required: !1
1153
+ },
1154
+ ctatext: {
1155
+ type: String,
1156
+ required: !1
1157
+ },
1158
+ hidectatext: {
1159
+ type: Boolean,
1160
+ required: !1,
1161
+ default: !1
1162
+ }
1163
+ }
1164
+ }, Tt = ["data-card-type"];
1165
+ function Ct(e, n, t, c, m, a) {
1166
+ const r = M("Card");
1167
+ return o(), l("div", {
1168
+ class: "container card-deck prevent-invert",
1169
+ "data-card-type": t.cardtype
1170
+ }, [
1171
+ b(e.$slots, "default"),
1172
+ s("div", {
1173
+ class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1174
+ }, [
1175
+ (o(!0), l(S, null, x(t.items, (i, f) => (o(), l("div", {
1176
+ class: "col",
1177
+ key: f
1178
+ }, [
1179
+ A(r, T(i, {
1180
+ class: t.cardclass,
1181
+ type: t.cardtype,
1182
+ btntype: t.btntype,
1183
+ titleclass: t.titleclass,
1184
+ ctatext: t.ctatext,
1185
+ hidectatext: t.hidectatext
1186
+ }), null, 16, ["class", "type", "btntype", "titleclass", "ctatext", "hidectatext"])
1187
+ ]))), 128))
1188
+ ], 2),
1189
+ b(e.$slots, "after")
1190
+ ], 8, Tt);
1191
+ }
1192
+ const Mt = /* @__PURE__ */ g(qt, [["render", Ct], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/CardDeck/CardDeck.vue"]]);
1193
+ function Ht(e) {
1194
+ var n;
1195
+ let t = e.querySelector(".carousel__inner"), c = e.querySelectorAll(".carousel__item").length;
1196
+ e.getAttribute("data-cols");
1197
+ let m = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
1198
+ e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
1199
+ clearTimeout(n), n = setTimeout(function() {
1200
+ let i = t.clientWidth, f = t.scrollWidth, $ = t.scrollLeft, L = Math.round($ / f * c) + 1, C = e.querySelector(".carousel__item:last-child").offsetLeft;
1201
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((U, H) => {
1202
+ U.classList.remove("active");
1203
+ }), e.querySelector(".control-" + L).classList.add("active"), L == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + i > C ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1204
+ }, 100);
1205
+ }, !1), e.addEventListener("click", function(r) {
1206
+ for (var i = r.target; i && i != this; i = i.parentNode)
1207
+ if (i.matches(".carousel__controls a")) {
1208
+ r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach(($, L) => {
1209
+ $.classList.remove("active");
1210
+ }), i.classList.add("active");
1211
+ const f = document.querySelector(i.getAttribute("href"));
1212
+ t.scroll({
1213
+ top: 0,
1214
+ left: f.offsetLeft,
1215
+ behavior: "smooth"
1216
+ });
1217
+ break;
1218
+ }
1219
+ }, !1), e.addEventListener("click", function(r) {
1220
+ for (var i = r.target; i && i != this; i = i.parentNode)
1221
+ if (i.matches(".btn-next, .btn-prev")) {
1222
+ r.preventDefault();
1223
+ let f = i.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1224
+ t.scroll({
1225
+ top: 0,
1226
+ left: f,
1227
+ behavior: "smooth"
1228
+ });
1229
+ break;
1230
+ }
1231
+ }, !1), c == 1 && e.classList.add("hide-btns"), m >= c && e.classList.add("hide-sm-btns"), a >= c && e.classList.add("hide-md-btns");
1232
+ }
1233
+ let B = Mt.props;
1234
+ B.gap.default = 0;
1235
+ B.cols.default = 1;
1236
+ B.smcols.default = 2;
1237
+ B.mdcols.default = 4;
1238
+ const Nt = {
1239
+ components: {
1240
+ Card: R
1241
+ },
1242
+ name: "Carousel",
1243
+ data() {
1244
+ return {
1245
+ id: null
1246
+ };
1247
+ },
1248
+ props: {
1249
+ ...B,
1250
+ colclass: {
1251
+ type: String,
1252
+ required: !1
1253
+ },
1254
+ type: {
1255
+ type: String,
1256
+ required: !1
1257
+ }
1258
+ },
1259
+ computed: {
1260
+ content() {
1261
+ return (e) => `${e.image ? `<img src="${e.image}" alt="" />` : ""}${e.content ? e.content : ""}`;
1262
+ }
1263
+ },
1264
+ mounted() {
1265
+ this.id = this._uid, this.$nextTick(function() {
1266
+ Ht(this.$refs.wrapper);
1267
+ });
1268
+ }
1269
+ }, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" }, Pt = { class: "carousel__inner" }, It = ["id"], Ut = ["innerHTML", "id"], Ft = ["href"], zt = /* @__PURE__ */ s("button", {
1270
+ class: "btn btn-prev",
1271
+ "data-go": "0",
1272
+ disabled: ""
1273
+ }, "Prev", -1), Vt = /* @__PURE__ */ s("button", {
1274
+ class: "btn btn-next",
1275
+ "data-go": "2"
1276
+ }, "Next", -1);
1277
+ function Gt(e, n, t, c, m, a) {
1278
+ const r = M("Card");
1279
+ return o(), l("div", {
1280
+ class: "container carousel",
1281
+ id: "carousel" + m.id,
1282
+ ref: "wrapper",
1283
+ "data-cols": e.cols,
1284
+ "data-sm-cols": e.smcols,
1285
+ "data-md-cols": e.mdcols
1286
+ }, [
1287
+ b(e.$slots, "default", {}, () => [
1288
+ h(" Use for titles etc ")
1289
+ ]),
1290
+ s("div", Bt, [
1291
+ s("div", Pt, [
1292
+ t.type == "card" ? (o(), l("div", {
1293
+ key: 0,
1294
+ class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1295
+ }, [
1296
+ (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
1297
+ class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1298
+ key: f,
1299
+ id: "carousel" + m.id + "slide" + (f + 1)
1300
+ }, [
1301
+ A(r, T(i, {
1302
+ class: e.cardclass,
1303
+ type: e.cardtype,
1304
+ btnyype: e.btntype,
1305
+ titleclass: e.titleclass,
1306
+ ctatext: e.ctatext,
1307
+ hidectatext: e.hidectatext
1308
+ }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1309
+ ], 10, It))), 128))
1310
+ ], 2)) : h("v-if", !0),
1311
+ t.type != "card" ? (o(), l("div", {
1312
+ key: 1,
1313
+ class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1314
+ }, [
1315
+ (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
1316
+ class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1317
+ key: f,
1318
+ innerHTML: a.content(i),
1319
+ id: "carousel" + m.id + "slide" + (f + 1)
1320
+ }, null, 10, Ut))), 128))
1321
+ ], 2)) : h("v-if", !0)
1322
+ ]),
1323
+ s("div", {
1324
+ class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
1325
+ }, [
1326
+ (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("a", {
1327
+ key: f,
1328
+ href: "#carousel" + m.id + "slide" + (f + 1),
1329
+ class: v(`control-${f + 1}`)
1330
+ }, "Slide " + w(f + 1), 11, Ft))), 128))
1331
+ ], 2),
1332
+ zt,
1333
+ Vt
1334
+ ])
1335
+ ], 8, Dt);
1336
+ }
1337
+ const qi = /* @__PURE__ */ g(Nt, [["render", Gt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Carousel/Carousel.vue"]]);
1338
+ const Ot = {
1339
+ name: "Header",
1340
+ props: {
1341
+ title: {
1342
+ type: String,
1343
+ required: !0
1344
+ },
1345
+ image: {
1346
+ type: String,
1347
+ required: !1
1348
+ }
1349
+ }
1350
+ }, jt = { class: "header-banner" }, Jt = { class: "container" }, Wt = { class: "header-banner__inner" }, Kt = ["innerHTML"], Et = { key: 0 }, Rt = ["srcset"], Zt = /* @__PURE__ */ s("img", {
1351
+ src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
1352
+ alt: ""
1353
+ }, null, -1);
1354
+ function Qt(e, n, t, c, m, a) {
1355
+ return o(), l("header", jt, [
1356
+ s("div", Jt, [
1357
+ h(" Space for a breadcrumb trail "),
1358
+ b(e.$slots, "breadcrumb"),
1359
+ s("div", Wt, [
1360
+ s("h1", { innerHTML: t.title }, null, 8, Kt),
1361
+ b(e.$slots, "default")
1362
+ ])
1363
+ ]),
1364
+ t.image ? (o(), l("picture", Et, [
1365
+ h(" Actual image only loaded on desktops "),
1366
+ s("source", {
1367
+ srcset: t.image,
1368
+ media: "(min-width: 62em)"
1369
+ }, null, 8, Rt),
1370
+ h(" Placeholder image "),
1371
+ Zt
1372
+ ])) : h("v-if", !0)
1373
+ ]);
1374
+ }
1375
+ const Ti = /* @__PURE__ */ g(Ot, [["render", Qt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Header/Header.vue"]]);
1376
+ function Yt(e) {
1377
+ var n;
1378
+ const t = e.querySelector(".testimonial__images"), c = t.querySelectorAll("img").length;
1379
+ if (c == 1)
1380
+ return !1;
1381
+ e.classList.add("testimonial--multi");
1382
+ const m = function(a) {
1383
+ const r = e.querySelector(".btn-next"), i = e.querySelector(".btn-prev");
1384
+ r.setAttribute("data-go", a + 1), i.setAttribute("data-go", a - 1), r.removeAttribute("disabled"), i.removeAttribute("disabled"), a == 1 ? i.setAttribute("disabled", !0) : a == c && r.setAttribute("disabled", !0);
1385
+ };
1386
+ t.addEventListener("scroll", function(a) {
1387
+ clearTimeout(n), n = setTimeout(function() {
1388
+ let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, $ = t.scrollTop, L = Math.round(f / r * c) + 1;
1389
+ f == 0 && $ != 0 && (L = Math.round($ / i * c) + 1), e.setAttribute("data-show", L), m(L);
1390
+ }, 300);
1391
+ }, !1), e.addEventListener("click", function(a) {
1392
+ for (var r = a.target; r && r != this; r = r.parentNode)
1393
+ if (r.matches("[data-go]")) {
1394
+ let i = parseInt(r.getAttribute("data-go")), f = 0, $ = 0, L = t.scrollWidth, C = t.scrollHeight;
1395
+ L > C ? $ = Math.floor(L * ((i - 1) / c)) : f = Math.floor(C * ((i - 1) / c)), t.scroll({
1396
+ top: f,
1397
+ left: $,
1398
+ behavior: "smooth"
1399
+ });
1400
+ break;
1401
+ }
1402
+ }, !1);
1403
+ }
1404
+ const Xt = {
1405
+ name: "Testimonial",
1406
+ props: {
1407
+ items: {
1408
+ type: Array,
1409
+ required: !0
1410
+ },
1411
+ background: {
1412
+ type: String,
1413
+ default: "light",
1414
+ required: !1
1415
+ }
1416
+ },
1417
+ mounted() {
1418
+ Yt(this.$refs.wrapper);
1419
+ }
1420
+ }, es = {
1421
+ class: "container testimonial mb-5",
1422
+ "data-show": "1",
1423
+ ref: "wrapper"
1424
+ }, ts = { class: "row" }, ss = { class: "col-md-5 position-relative" }, as = { class: "testimonial__images" }, is = ["src"], ns = /* @__PURE__ */ s("div", { class: "testimonial__controls" }, [
1425
+ /* @__PURE__ */ s("button", {
1426
+ "data-go": "0",
1427
+ disabled: "",
1428
+ class: "btn-prev"
1429
+ }, "Previous"),
1430
+ /* @__PURE__ */ s("button", {
1431
+ "data-go": "2",
1432
+ class: "btn-next"
1433
+ }, "Next")
1434
+ ], -1), rs = { class: "col-md-7" }, os = /* @__PURE__ */ s("h2", null, "What our customers think\u2026", -1), ls = { class: "testimonial__content" }, cs = ["innerHTML"], ds = ["innerHTML"], us = { class: "testimonial__after" }, fs = /* @__PURE__ */ s("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1435
+ function ms(e, n, t, c, m, a) {
1436
+ return o(), l("div", es, [
1437
+ s("div", {
1438
+ class: v("bg-" + t.background)
1439
+ }, [
1440
+ s("div", ts, [
1441
+ s("div", ss, [
1442
+ s("div", as, [
1443
+ (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("img", {
1444
+ key: i,
1445
+ src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1446
+ alt: "",
1447
+ class: v("h-100 w-100 object-cover" + (r.image ? "" : " opacity-0"))
1448
+ }, null, 10, is))), 128))
1449
+ ]),
1450
+ ns
1451
+ ]),
1452
+ s("div", rs, [
1453
+ os,
1454
+ s("div", ls, [
1455
+ (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("blockquote", {
1456
+ key: i,
1457
+ class: v(r.class)
1458
+ }, [
1459
+ s("div", {
1460
+ innerHTML: r.quote
1461
+ }, null, 8, cs),
1462
+ s("cite", {
1463
+ innerHTML: r.cite
1464
+ }, null, 8, ds)
1465
+ ], 2))), 128))
1466
+ ]),
1467
+ s("div", us, [
1468
+ b(e.$slots, "default")
1469
+ ])
1470
+ ])
1471
+ ]),
1472
+ fs
1473
+ ], 2)
1474
+ ], 512);
1475
+ }
1476
+ const Ci = /* @__PURE__ */ g(Xt, [["render", ms], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Testimonial/Testimonial.vue"]]);
1477
+ const hs = {
1478
+ components: {
1479
+ Input: I
1480
+ },
1481
+ name: "PropertySearchbar",
1482
+ props: {
1483
+ formaction: {
1484
+ type: String,
1485
+ required: !1
1486
+ },
1487
+ formmethod: {
1488
+ type: String,
1489
+ required: !1
1490
+ },
1491
+ location: {
1492
+ type: String,
1493
+ required: !1
1494
+ },
1495
+ locations: {
1496
+ type: Array,
1497
+ required: !1
1498
+ },
1499
+ distances: {
1500
+ type: Array,
1501
+ required: !1,
1502
+ default() {
1503
+ return [
1504
+ { value: "0.25", display: "+\xBC mi" },
1505
+ { value: "0.5", display: "+\xBD mi" },
1506
+ { value: "1", display: "+1 mi" },
1507
+ { value: "2", display: "+2 mi" },
1508
+ { value: "3", display: "+3 mi" },
1509
+ { value: "4", display: "+4 mi" },
1510
+ { value: "5", display: "+5 mi" }
1511
+ ];
1512
+ }
1513
+ },
1514
+ pricemin: {
1515
+ type: Array,
1516
+ required: !1,
1517
+ default() {
1518
+ return [
1519
+ { value: "0", display: "No min" },
1520
+ { value: "50000", display: "\xA350k min" },
1521
+ { value: "75000", display: "\xA375k min" },
1522
+ { value: "100000", display: "\xA3100k min" },
1523
+ { value: "150000", display: "\xA3150k min" },
1524
+ { value: "200000", display: "\xA3200k min" },
1525
+ { value: "250000", display: "\xA3250k min" }
1526
+ ];
1527
+ }
1528
+ },
1529
+ pricemax: {
1530
+ type: Array,
1531
+ required: !1,
1532
+ default() {
1533
+ return [
1534
+ { value: "any", display: "No max" },
1535
+ { value: "50000", display: "\xA350k max" },
1536
+ { value: "75000", display: "\xA375k max" },
1537
+ { value: "100000", display: "\xA3100k max" },
1538
+ { value: "150000", display: "\xA3150k max" },
1539
+ { value: "200000", display: "\xA3200k max" },
1540
+ { value: "250000", display: "\xA3250k max" }
1541
+ ];
1542
+ }
1543
+ },
1544
+ bedsmin: {
1545
+ type: Array,
1546
+ required: !1,
1547
+ default() {
1548
+ return [
1549
+ { value: "any", display: "No min" },
1550
+ { value: "0", display: "Studio min" },
1551
+ { value: "1", display: "1 bed min" },
1552
+ { value: "2", display: "2 beds min" },
1553
+ { value: "3", display: "3 beds min" },
1554
+ { value: "4", display: "4 beds min" },
1555
+ { value: "5", display: "5 beds min" },
1556
+ { value: "6", display: "6 beds min" }
1557
+ ];
1558
+ }
1559
+ },
1560
+ bedsmax: {
1561
+ type: Array,
1562
+ required: !1,
1563
+ default() {
1564
+ return [
1565
+ { value: "any", display: "No max" },
1566
+ { value: "0", display: "Studio max" },
1567
+ { value: "1", display: "1 bed max" },
1568
+ { value: "2", display: "2 beds max" },
1569
+ { value: "3", display: "3 beds max" },
1570
+ { value: "4", display: "4 beds max" },
1571
+ { value: "5", display: "5 beds max" },
1572
+ { value: "6", display: "6 beds max" }
1573
+ ];
1574
+ }
1575
+ },
1576
+ propertytypes: {
1577
+ type: Array,
1578
+ required: !1,
1579
+ default() {
1580
+ return [
1581
+ { value: "all", display: "Show all" },
1582
+ { value: "Bungalow", display: "Bungalow" },
1583
+ { value: "Character Property", display: "Character Property" },
1584
+ { value: "Commercial Property", display: "Commercial Property" },
1585
+ { value: "Flat / Apartment", display: "Flat / Apartment" },
1586
+ { value: "Garage / Parking", display: "Garage / Parking" },
1587
+ { value: "Guest House / Hotel", display: "Guest House / Hotel" },
1588
+ { value: "House", display: "House" },
1589
+ { value: "House / Flat Share", display: "House / Flat Share" },
1590
+ { value: "Land", display: "Land" },
1591
+ { value: "Mobile / Park Home", display: "Mobile / Park Home" },
1592
+ { value: "Private Halls", display: "Private Halls" },
1593
+ { value: "Retirement Property", display: "Retirement Property" }
1594
+ ];
1595
+ }
1596
+ }
1597
+ },
1598
+ data() {
1599
+ return {
1600
+ locationSave: ""
1601
+ };
1602
+ },
1603
+ methods: {
1604
+ locationKeyup: function(e) {
1605
+ this.$emit("locationKeyup", e);
1606
+ }
1607
+ },
1608
+ computed: {
1609
+ locationSet: {
1610
+ get() {
1611
+ return this.locationSave ? this.locationSave : this.location;
1612
+ },
1613
+ set(e) {
1614
+ this.locationSave = e, this.$emit("input", e);
1615
+ }
1616
+ },
1617
+ locationsList() {
1618
+ return () => this.locations ? this.locations : [
1619
+ { value: "Newcastle" }
1620
+ ];
1621
+ }
1622
+ }
1623
+ }, _s = {
1624
+ class: "container",
1625
+ ref: "wrapper"
1626
+ }, ps = { class: "property-searchbar" }, ys = ["action", "method"], bs = { class: "col-12 col-md-3" }, vs = { class: "col-12 col-md" }, gs = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ws = {
1627
+ class: "row",
1628
+ "data-input-range": ""
1629
+ }, ks = { class: "col-12 col-md" }, $s = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
1630
+ class: "row",
1631
+ "data-input-range": ""
1632
+ }, Ss = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1633
+ /* @__PURE__ */ s("button", {
1634
+ class: "btn w-100 me-0",
1635
+ type: "submit",
1636
+ value: "submit"
1637
+ }, "Search")
1638
+ ], -1);
1639
+ function Ls(e, n, t, c, m, a) {
1640
+ const r = M("Input");
1641
+ return o(), l("div", _s, [
1642
+ b(e.$slots, "default"),
1643
+ s("div", ps, [
1644
+ s("form", {
1645
+ class: "row",
1646
+ action: t.formaction,
1647
+ method: t.formmethod
1648
+ }, [
1649
+ s("fieldset", bs, [
1650
+ A(r, {
1651
+ inputClass: "input--locations",
1652
+ modelValue: a.locationSet,
1653
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => a.locationSet = i),
1654
+ label: "Location",
1655
+ id: "location",
1656
+ options: a.locationsList(),
1657
+ required: "",
1658
+ placeholder: "i.e. Newcastle or NE1",
1659
+ onKeyupEvent: n[1] || (n[1] = (i) => a.locationKeyup(...arguments)),
1660
+ ref: "search"
1661
+ }, null, 8, ["modelValue", "options"]),
1662
+ A(r, {
1663
+ class: "select--miles",
1664
+ label: "Miles",
1665
+ id: "miles",
1666
+ type: "select",
1667
+ options: t.distances
1668
+ }, null, 8, ["options"])
1669
+ ]),
1670
+ s("fieldset", vs, [
1671
+ gs,
1672
+ s("div", ws, [
1673
+ A(r, {
1674
+ class: "col-6",
1675
+ label: "Minimum price",
1676
+ id: "price-min",
1677
+ "data-min": "true",
1678
+ type: "select",
1679
+ options: t.pricemin
1680
+ }, null, 8, ["options"]),
1681
+ A(r, {
1682
+ class: "col-6",
1683
+ label: "Maximum price",
1684
+ id: "price-max",
1685
+ "data-max": "true",
1686
+ type: "select",
1687
+ options: t.pricemax
1688
+ }, null, 8, ["options"])
1689
+ ])
1690
+ ]),
1691
+ s("fieldset", ks, [
1692
+ $s,
1693
+ s("div", As, [
1694
+ A(r, {
1695
+ class: "col-6",
1696
+ label: "Minimum beds",
1697
+ id: "beds-min",
1698
+ "data-min": "true",
1699
+ type: "select",
1700
+ options: t.bedsmin
1701
+ }, null, 8, ["options"]),
1702
+ A(r, {
1703
+ class: "col-6",
1704
+ label: "Maximum beds",
1705
+ id: "beds-max",
1706
+ "data-max": "true",
1707
+ type: "select",
1708
+ options: t.bedsmax
1709
+ }, null, 8, ["options"])
1710
+ ])
1711
+ ]),
1712
+ s("fieldset", Ss, [
1713
+ A(r, {
1714
+ label: "Property type",
1715
+ id: "property-type",
1716
+ type: "select",
1717
+ options: t.propertytypes
1718
+ }, null, 8, ["options"])
1719
+ ]),
1720
+ xs
1721
+ ], 8, ys)
1722
+ ]),
1723
+ b(e.$slots, "after")
1724
+ ], 512);
1725
+ }
1726
+ const Mi = /* @__PURE__ */ g(hs, [["render", Ls], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/PropertySearchbar/PropertySearchbar.vue"]]), qs = (e) => {
1727
+ Array.from(e.querySelectorAll("details")).forEach((n, t) => {
1728
+ n.addEventListener("mouseenter", function(c) {
1729
+ window.matchMedia("(min-width: 62em)").matches && n.setAttribute("open", "true");
1730
+ }, !1), n.addEventListener("mouseleave", function(c) {
1731
+ window.matchMedia("(min-width: 62em)").matches && n.removeAttribute("open");
1732
+ }, !1);
1733
+ }), "IntersectionObserver" in window && new IntersectionObserver(
1734
+ ([t]) => t.target.classList.toggle("is-stuck", t.intersectionRatio < 1),
1735
+ { threshold: [1] }
1736
+ ).observe(e);
1737
+ };
1738
+ const Ts = {
1739
+ components: {
1740
+ Input: I,
1741
+ Logo: ue,
1742
+ Icon: re
1743
+ },
1744
+ name: "Nav",
1745
+ props: {
1746
+ logo: {
1747
+ type: String,
1748
+ required: !1
1749
+ },
1750
+ logotext: {
1751
+ type: String,
1752
+ required: !1
1753
+ },
1754
+ logopath: {
1755
+ type: String,
1756
+ required: !1
1757
+ },
1758
+ search: {
1759
+ type: String,
1760
+ required: !1
1761
+ },
1762
+ btnlink: {
1763
+ type: String,
1764
+ required: !1
1765
+ },
1766
+ btntext: {
1767
+ type: String,
1768
+ required: !1
1769
+ },
1770
+ propertylink: {
1771
+ type: String,
1772
+ required: !1
1773
+ },
1774
+ movebutlerlink: {
1775
+ type: String,
1776
+ required: !1
1777
+ },
1778
+ iamsoldlink: {
1779
+ type: String,
1780
+ required: !1
1781
+ }
1782
+ },
1783
+ data() {
1784
+ return {
1785
+ locationSave: ""
1786
+ };
1787
+ },
1788
+ methods: {
1789
+ subIsActive(e) {
1790
+ return (Array.isArray(e) ? e : [e]).some((t) => this.$route.path.indexOf(t) === 0);
1791
+ }
1792
+ },
1793
+ computed: {
1794
+ hasLogoSlot() {
1795
+ return !!this.$slots.logo;
1796
+ },
1797
+ hasSecondarySlot() {
1798
+ return !!this.$slots.secondary;
1799
+ },
1800
+ hasSearchSlot() {
1801
+ return !!this.$slots.search;
1802
+ },
1803
+ hasAccountSlot() {
1804
+ return !!this.$slots.account;
1805
+ },
1806
+ isMarketplace() {
1807
+ return !1;
1808
+ }
1809
+ },
1810
+ mounted() {
1811
+ this.$nextTick(function() {
1812
+ qs(this.$refs.wrapper);
1813
+ });
1814
+ }
1815
+ }, Cs = /* @__PURE__ */ s("input", {
1816
+ type: "checkbox",
1817
+ name: "showMenu",
1818
+ id: "showMenu",
1819
+ class: "d-none"
1820
+ }, null, -1), Ms = /* @__PURE__ */ s("input", {
1821
+ type: "checkbox",
1822
+ name: "showSearch",
1823
+ id: "showSearch",
1824
+ class: "d-none"
1825
+ }, null, -1), Hs = /* @__PURE__ */ s("input", {
1826
+ type: "checkbox",
1827
+ name: "showAccount",
1828
+ id: "showAccount",
1829
+ class: "d-none"
1830
+ }, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, Ps = {
1831
+ key: 0,
1832
+ class: "col mw-md-fit-content nav__logo"
1833
+ }, Is = {
1834
+ key: 1,
1835
+ class: "col mw-md-fit-content nav__logo"
1836
+ }, Us = {
1837
+ href: "/",
1838
+ class: "text-decoration-none mb-0"
1839
+ }, Fs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1840
+ /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1841
+ ], -1), zs = { class: "nav__inner" }, Vs = { class: "container" }, Gs = { class: "row" }, Os = {
1842
+ key: 0,
1843
+ class: "col mw-md-fit-content nav__logo"
1844
+ }, js = {
1845
+ key: 1,
1846
+ class: "col mw-md-fit-content nav__logo"
1847
+ }, Js = {
1848
+ href: "/",
1849
+ class: "text-decoration-none mb-0"
1850
+ }, Ws = {
1851
+ key: 2,
1852
+ class: "col mw-fit-content nav__search-btn flex-row align-items-center"
1853
+ }, Ks = /* @__PURE__ */ s("label", { for: "showSearch" }, [
1854
+ /* @__PURE__ */ s("svg", {
1855
+ class: "icon",
1856
+ viewBox: "0 0 32 32"
1857
+ }, [
1858
+ /* @__PURE__ */ s("title", null, "Search"),
1859
+ /* @__PURE__ */ s("ellipse", {
1860
+ cx: "14.92",
1861
+ cy: "13.81",
1862
+ rx: "11.92",
1863
+ ry: "11.81",
1864
+ class: "icon__outline"
1865
+ }),
1866
+ /* @__PURE__ */ s("line", {
1867
+ x1: "22.68",
1868
+ y1: "22.75",
1869
+ x2: "30",
1870
+ y2: "30",
1871
+ class: "icon__outline"
1872
+ })
1873
+ ])
1874
+ ], -1), Es = [
1875
+ Ks
1876
+ ], Rs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1877
+ /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1878
+ ], -1), Zs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Qs = {
1879
+ key: 3,
1880
+ class: "col nav__account-btn flex-row align-items-center"
1881
+ }, Ys = /* @__PURE__ */ s("label", { for: "showAccount" }, [
1882
+ /* @__PURE__ */ s("svg", {
1883
+ class: "icon",
1884
+ viewBox: "0 0 28 28"
1885
+ }, [
1886
+ /* @__PURE__ */ s("path", {
1887
+ 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",
1888
+ transform: "translate(0 -0.001)"
1889
+ }),
1890
+ /* @__PURE__ */ s("path", {
1891
+ 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",
1892
+ transform: "translate(8.8 4.8)"
1893
+ })
1894
+ ]),
1895
+ /* @__PURE__ */ s("span", null, "My account")
1896
+ ], -1), Xs = [
1897
+ Ys
1898
+ ], ea = {
1899
+ key: 4,
1900
+ class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
1901
+ }, ta = ["href", "innerHTML"], sa = {
1902
+ key: 0,
1903
+ class: "nav__menu--secondary"
1904
+ }, aa = { class: "container" }, ia = {
1905
+ key: 1,
1906
+ class: "nav__menu--search"
1907
+ }, na = { class: "bg-gradient pt-4" }, ra = { class: "container" }, oa = {
1908
+ key: 0,
1909
+ class: "nav__menu--account"
1910
+ }, la = { class: "container" }, ca = { class: "row mb-4" }, da = {
1911
+ key: 0,
1912
+ class: "col mw-md-fit-content nav__logo"
1913
+ }, ua = {
1914
+ key: 1,
1915
+ class: "col mw-md-fit-content nav__logo"
1916
+ }, fa = {
1917
+ href: "/",
1918
+ class: "text-decoration-none mb-0"
1919
+ }, ma = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1920
+ /* @__PURE__ */ s("label", { for: "showAccount" }, "Account")
1921
+ ], -1), ha = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
1922
+ function pa(e, n, t, c, m, a) {
1923
+ const r = M("Logo");
1924
+ return o(), l("nav", {
1925
+ class: v(`nav${a.hasSecondarySlot ? " has-secondary" : ""}`),
1926
+ ref: "wrapper"
1927
+ }, [
1928
+ Cs,
1929
+ Ms,
1930
+ Hs,
1931
+ h(" Mobile bar "),
1932
+ s("div", Ns, [
1933
+ s("div", Ds, [
1934
+ s("div", Bs, [
1935
+ a.hasLogoSlot ? (o(), l("div", Ps, [
1936
+ b(e.$slots, "logo")
1937
+ ])) : (o(), l("div", Is, [
1938
+ s("a", Us, [
1939
+ A(r, {
1940
+ id: t.logo,
1941
+ path: t.logopath,
1942
+ desc: t.logotext,
1943
+ class: "pb-0"
1944
+ }, null, 8, ["id", "path", "desc"])
1945
+ ])
1946
+ ])),
1947
+ Fs
1948
+ ])
1949
+ ])
1950
+ ]),
1951
+ s("div", zs, [
1952
+ s("div", Vs, [
1953
+ s("div", Gs, [
1954
+ a.hasLogoSlot ? (o(), l("div", Os, [
1955
+ b(e.$slots, "logo")
1956
+ ])) : (o(), l("div", js, [
1957
+ s("a", Js, [
1958
+ A(r, {
1959
+ id: t.logo,
1960
+ path: t.logopath,
1961
+ desc: t.logotext,
1962
+ class: "pb-0"
1963
+ }, null, 8, ["id", "path", "desc"])
1964
+ ])
1965
+ ])),
1966
+ a.hasSearchSlot ? (o(), l("div", Ws, Es)) : h("v-if", !0),
1967
+ Rs,
1968
+ h(" Main menu "),
1969
+ s("div", Zs, [
1970
+ b(e.$slots, "default")
1971
+ ]),
1972
+ a.hasAccountSlot ? (o(), l("div", Qs, Xs)) : h("v-if", !0),
1973
+ t.btnlink ? (o(), l("div", ea, [
1974
+ s("a", {
1975
+ href: t.btnlink,
1976
+ class: "btn me-0",
1977
+ innerHTML: t.btntext
1978
+ }, null, 8, ta)
1979
+ ])) : h("v-if", !0)
1980
+ ])
1981
+ ]),
1982
+ a.hasSecondarySlot ? (o(), l("div", sa, [
1983
+ s("div", aa, [
1984
+ b(e.$slots, "secondary")
1985
+ ])
1986
+ ])) : h("v-if", !0),
1987
+ a.hasSearchSlot ? (o(), l("div", ia, [
1988
+ s("div", na, [
1989
+ s("div", ra, [
1990
+ b(e.$slots, "search")
1991
+ ])
1992
+ ])
1993
+ ])) : h("v-if", !0)
1994
+ ]),
1995
+ a.hasAccountSlot ? (o(), l("div", oa, [
1996
+ s("div", la, [
1997
+ s("div", ca, [
1998
+ a.hasLogoSlot ? (o(), l("div", da, [
1999
+ b(e.$slots, "logo")
2000
+ ])) : (o(), l("div", ua, [
2001
+ s("a", fa, [
2002
+ A(r, {
2003
+ id: t.logo,
2004
+ path: t.logopath,
2005
+ desc: t.logotext,
2006
+ class: "pb-0"
2007
+ }, null, 8, ["id", "path", "desc"])
2008
+ ])
2009
+ ])),
2010
+ ma
2011
+ ])
2012
+ ]),
2013
+ s("div", ha, [
2014
+ b(e.$slots, "account")
2015
+ ])
2016
+ ])) : h("v-if", !0),
2017
+ _a
2018
+ ], 2);
2019
+ }
2020
+ const Hi = /* @__PURE__ */ g(Ts, [["render", pa], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Nav/Nav.vue"]]), ya = (e) => {
2021
+ const n = new IntersectionObserver(
2022
+ function([c]) {
2023
+ c.target.classList.toggle("in-view", c.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
2024
+ },
2025
+ { threshold: [1] }
2026
+ ), t = document.getElementById("drawer-end");
2027
+ n.observe(t);
2028
+ };
2029
+ const ba = {
2030
+ name: "Header",
2031
+ props: {
2032
+ label: {
2033
+ type: String,
2034
+ required: !0
2035
+ }
2036
+ },
2037
+ mounted() {
2038
+ this.$nextTick(function() {
2039
+ let e = this.$refs.wrapper;
2040
+ const n = document.createDocumentFragment();
2041
+ Array.from(e.childNodes).forEach((t) => n.appendChild(t)), e.parentNode.insertBefore(n, e), e.parentNode.removeChild(e), this.$nextTick(function() {
2042
+ ya(this.$refs.drawer);
2043
+ });
2044
+ });
2045
+ }
2046
+ }, va = { ref: "wrapper" }, ga = /* @__PURE__ */ s("input", {
2047
+ type: "checkbox",
2048
+ name: "showDrawer",
2049
+ id: "showDrawer",
2050
+ class: "d-none"
2051
+ }, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, $a = {
2052
+ for: "showDrawer",
2053
+ class: "btn btn-secondary me-0"
2054
+ }, Aa = {
2055
+ class: "drawer",
2056
+ id: "drawer",
2057
+ ref: "drawer"
2058
+ }, Sa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
2059
+ /* @__PURE__ */ s("label", {
2060
+ for: "showDrawer",
2061
+ class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
2062
+ }, [
2063
+ /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
2064
+ /* @__PURE__ */ P("\u2715")
2065
+ ])
2066
+ ], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
2067
+ function La(e, n, t, c, m, a) {
2068
+ return o(), l("div", va, [
2069
+ ga,
2070
+ s("div", wa, [
2071
+ s("div", ka, [
2072
+ s("label", $a, w(t.label), 1)
2073
+ ])
2074
+ ]),
2075
+ s("div", Aa, [
2076
+ Sa,
2077
+ b(e.$slots, "default")
2078
+ ], 512),
2079
+ xa
2080
+ ], 512);
2081
+ }
2082
+ const Ni = /* @__PURE__ */ g(ba, [["render", La], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Drawer/Drawer.vue"]]), qa = (e) => {
2083
+ const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], c = n[n.length - 1], m = e.getAttribute("id"), a = function() {
2084
+ 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();
2085
+ };
2086
+ e.addEventListener("keydown", function(i) {
2087
+ i.key === "Tab" && i.shiftKey && document.activeElement == t ? (i.preventDefault(), c.focus()) : i.key === "Tab" && !i.shiftKey && document.activeElement == c && (i.preventDefault(), t.focus());
2088
+ }), document.addEventListener("keydown", function(i) {
2089
+ i.key === "Escape" && document.querySelector(".modal:target") && a();
2090
+ }), e.addEventListener("click", function(i) {
2091
+ for (var f = i.target; f && f != this; f = f.parentNode)
2092
+ if (f.matches('[href="#close"]')) {
2093
+ i.preventDefault(), a();
2094
+ break;
2095
+ } else if (f.matches(".modal__dock--right")) {
2096
+ i.preventDefault(), e.classList.contains("modal--left") || e.classList.add("modal--right"), e.classList.remove("modal--left");
2097
+ break;
2098
+ } else if (f.matches(".modal__dock--left")) {
2099
+ i.preventDefault(), e.classList.contains("modal--right") || e.classList.add("modal--left"), e.classList.remove("modal--right");
2100
+ break;
2101
+ }
2102
+ });
2103
+ function r() {
2104
+ if (location.hash === "#" + m) {
2105
+ console.log("Modal is now open");
2106
+ const i = document.querySelector(".modal:target .modal__inner > .youtube-embed:first-child:last-child a");
2107
+ console.log(i), i && i.click();
2108
+ }
2109
+ }
2110
+ window.onhashchange = r;
2111
+ };
2112
+ const Ta = {
2113
+ name: "Modal",
2114
+ props: {
2115
+ id: {
2116
+ type: String,
2117
+ required: !0
2118
+ },
2119
+ returnid: {
2120
+ type: String,
2121
+ default: "close",
2122
+ required: !1
2123
+ }
2124
+ },
2125
+ mounted() {
2126
+ this.$nextTick(function() {
2127
+ qa(this.$refs.modal);
2128
+ });
2129
+ }
2130
+ }, Ca = ["id"], Ma = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
2131
+ Ha
2132
+ ], Da = { class: "modal__outer" }, Ba = ["href"], Pa = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Ia = /* @__PURE__ */ P("\u2715"), Ua = [
2133
+ Pa,
2134
+ Ia
2135
+ ], Fa = { class: "modal__inner" }, za = /* @__PURE__ */ s("button", {
2136
+ class: "modal__dock--left btn btn-prev",
2137
+ tabindex: "-1"
2138
+ }, "Left", -1), Va = /* @__PURE__ */ s("button", {
2139
+ class: "modal__dock--right btn btn-next",
2140
+ tabindex: "-1"
2141
+ }, "Right", -1);
2142
+ function Ga(e, n, t, c, m, a) {
2143
+ return o(), l("div", {
2144
+ class: "modal",
2145
+ id: t.id,
2146
+ role: "dialog",
2147
+ modal: "true",
2148
+ ref: "modal"
2149
+ }, [
2150
+ s("a", {
2151
+ href: `#${t.returnid ? t.returnid : ""}`,
2152
+ tabindex: "-1"
2153
+ }, Na, 8, Ma),
2154
+ s("div", Da, [
2155
+ s("a", {
2156
+ href: `#${t.returnid ? t.returnid : ""}`,
2157
+ class: "btn btn-tertiary py-1 px-2"
2158
+ }, Ua, 8, Ba),
2159
+ s("div", Fa, [
2160
+ b(e.$slots, "default")
2161
+ ])
2162
+ ]),
2163
+ za,
2164
+ Va
2165
+ ], 8, Ca);
2166
+ }
2167
+ const Di = /* @__PURE__ */ g(Ta, [["render", Ga], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Modal/Modal.vue"]]);
2168
+ const Oa = {
2169
+ name: "Stepper",
2170
+ props: {
2171
+ label: {
2172
+ type: String,
2173
+ required: !1
2174
+ },
2175
+ endlabel: {
2176
+ type: String,
2177
+ required: !1,
2178
+ default: "Complete"
2179
+ }
2180
+ }
2181
+ }, ja = { class: "container" }, Ja = ["aria-label"], Wa = {
2182
+ key: 0,
2183
+ class: "h6 stepper__start"
2184
+ }, Ka = { class: "list-unstyled" }, Ea = { class: "h6 stepper__end" };
2185
+ function Ra(e, n, t, c, m, a) {
2186
+ return o(), l("div", ja, [
2187
+ s("nav", {
2188
+ class: "stepper",
2189
+ "aria-label": t.label ? t.label : "Progress"
2190
+ }, [
2191
+ t.label ? (o(), l("span", Wa, w(t.label), 1)) : h("v-if", !0),
2192
+ s("ol", Ka, [
2193
+ b(e.$slots, "default", {}, () => [
2194
+ h(" Use for titles etc ")
2195
+ ])
2196
+ ]),
2197
+ s("span", Ea, w(t.endlabel), 1)
2198
+ ], 8, Ja)
2199
+ ]);
2200
+ }
2201
+ const Bi = /* @__PURE__ */ g(Oa, [["render", Ra], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Stepper.vue"]]), Za = {
2202
+ name: "Stepper",
2203
+ props: {
2204
+ url: {
2205
+ type: String,
2206
+ required: !1
2207
+ },
2208
+ status: {
2209
+ type: String,
2210
+ required: !1
2211
+ },
2212
+ current: {
2213
+ type: String,
2214
+ required: !1
2215
+ }
2216
+ }
2217
+ }, Qa = ["href", "aria-current"], Ya = {
2218
+ key: 0,
2219
+ class: "visually-hidden"
2220
+ };
2221
+ function Xa(e, n, t, c, m, a) {
2222
+ return o(), l("li", null, [
2223
+ s("a", {
2224
+ href: t.url,
2225
+ class: v(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
2226
+ "aria-current": typeof t.current < "u"
2227
+ }, [
2228
+ s("span", null, [
2229
+ b(e.$slots, "default")
2230
+ ]),
2231
+ t.status ? (o(), l("em", Ya, " - status: " + w(t.status), 1)) : h("v-if", !0)
2232
+ ], 10, Qa)
2233
+ ]);
2234
+ }
2235
+ const Pi = /* @__PURE__ */ g(Za, [["render", Xa], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Step.vue"]]);
2236
+ const ei = {
2237
+ name: "Tabs",
2238
+ data() {
2239
+ return {
2240
+ tabsID: "tabs_" + Math.random().toString(36).substr(2, 9)
2241
+ };
2242
+ },
2243
+ computed: {
2244
+ tabLinks() {
2245
+ return () => {
2246
+ const e = [];
2247
+ let n = 1;
2248
+ for (const [t, c] of Object.entries(this.$slots.default()))
2249
+ if (c.props && c.props.title) {
2250
+ let m = c.props.title, a = {
2251
+ name: this.tabsID,
2252
+ id: this.tabsID + "_tab" + n++,
2253
+ tabTitle: m
2254
+ };
2255
+ e.push(a);
2256
+ }
2257
+ return e;
2258
+ };
2259
+ }
2260
+ },
2261
+ methods: {
2262
+ openTab: function(e) {
2263
+ let n = 0;
2264
+ for (const [t, c] of Object.entries(this.$slots.default()))
2265
+ c.props && c.props.title && (n == e && (console.log(c), c.type.data().show = !0), n++);
2266
+ }
2267
+ }
2268
+ }, ti = {
2269
+ class: "container tabs__container",
2270
+ ref: "wrapper"
2271
+ }, si = ["data-key", "name", "id", "checked"], ai = { class: "tabs__links" }, ii = ["for", "onClick"], ni = { class: "tabs" };
2272
+ function ri(e, n, t, c, m, a) {
2273
+ return o(), l("div", ti, [
2274
+ (o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
2275
+ type: "radio",
2276
+ class: "tab__input",
2277
+ key: i,
2278
+ "data-key": i,
2279
+ name: r.name,
2280
+ id: r.id,
2281
+ checked: i == 0
2282
+ }, null, 8, si))), 128)),
2283
+ s("div", ai, [
2284
+ (o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
2285
+ key: i,
2286
+ for: r.id,
2287
+ class: "link",
2288
+ onClick: (f) => a.openTab(i)
2289
+ }, w(r.tabTitle), 9, ii))), 128))
2290
+ ]),
2291
+ s("div", ni, [
2292
+ b(e.$slots, "default")
2293
+ ])
2294
+ ], 512);
2295
+ }
2296
+ const Ii = /* @__PURE__ */ g(ei, [["render", ri], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tabs.vue"]]), oi = {
2297
+ name: "Tab",
2298
+ props: {
2299
+ title: {
2300
+ type: String,
2301
+ required: !0
2302
+ },
2303
+ lazy: {
2304
+ type: Boolean,
2305
+ required: !1
2306
+ }
2307
+ },
2308
+ data() {
2309
+ return {
2310
+ show: !this.lazy
2311
+ };
2312
+ },
2313
+ watch: {
2314
+ show(e, n) {
2315
+ console.log(e);
2316
+ }
2317
+ }
2318
+ }, li = {
2319
+ key: 0,
2320
+ class: "tab"
2321
+ };
2322
+ function ci(e, n, t, c, m, a) {
2323
+ return m.show ? (o(), l("div", li, [
2324
+ b(e.$slots, "default")
2325
+ ])) : h("v-if", !0);
2326
+ }
2327
+ const Ui = /* @__PURE__ */ g(oi, [["render", ci], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tab.vue"]]);
2328
+ function di(e) {
2329
+ if (e.addEventListener("click", function(t) {
2330
+ for (var c = t.target; c && c != this; c = c.parentNode)
2331
+ if (c.matches(".btn-close")) {
2332
+ t.preventDefault(), e.classList.remove("show"), setTimeout(function() {
2333
+ e.remove();
2334
+ }, 300);
2335
+ break;
2336
+ }
2337
+ }, !1), e.hasAttribute("data-timeout")) {
2338
+ let t = e.getAttribute("data-timeout");
2339
+ setTimeout(function() {
2340
+ e.classList.remove("show"), setTimeout(function() {
2341
+ e.remove();
2342
+ }, 300);
2343
+ }, t);
2344
+ }
2345
+ if (!document.querySelector(".alert__holder")) {
2346
+ document.getElementsByTagName("BODY")[0];
2347
+ let t = document.createElement("div");
2348
+ t.classList.add("alert__holder"), document.querySelector("main") ? document.querySelector("main").appendChild(t) : document.body.appendChild(t);
2349
+ }
2350
+ let n = document.querySelector(".alert__holder");
2351
+ e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && n.appendChild(e);
2352
+ }
2353
+ const ui = {
2354
+ name: "Alert",
2355
+ props: {
2356
+ dismissible: {
2357
+ type: [String, Boolean],
2358
+ required: !1,
2359
+ default: !1
2360
+ },
2361
+ colour: {
2362
+ type: String,
2363
+ required: !1,
2364
+ default: "primary"
2365
+ },
2366
+ timeout: {
2367
+ type: [String, Number],
2368
+ required: !1
2369
+ }
2370
+ },
2371
+ mounted() {
2372
+ di(this.$refs.wrapper);
2373
+ }
2374
+ }, fi = ["data-timeout"], mi = {
2375
+ key: 0,
2376
+ type: "button",
2377
+ class: "btn-close",
2378
+ "data-bs-dismiss": "alert",
2379
+ "aria-label": "Close"
2380
+ };
2381
+ function hi(e, n, t, c, m, a) {
2382
+ return o(), l("div", {
2383
+ class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
2384
+ ref: "wrapper",
2385
+ "data-timeout": t.timeout,
2386
+ style: ee(t.timeout ? `--animation-length: ${t.timeout}ms` : "")
2387
+ }, [
2388
+ s("div", {
2389
+ class: v(`alert__inner bg-${t.colour}`),
2390
+ role: "alert"
2391
+ }, [
2392
+ t.dismissible ? (o(), l("button", mi)) : h("v-if", !0),
2393
+ b(e.$slots, "default")
2394
+ ], 2)
2395
+ ], 14, fi);
2396
+ }
2397
+ const Fi = /* @__PURE__ */ g(ui, [["render", hi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Alert/Alert.vue"]]);
2398
+ let Z = E.props;
2399
+ Z.fields.required = !1;
2400
+ const _i = {
2401
+ components: {
2402
+ Table: E,
2403
+ Input: I
2404
+ },
2405
+ data() {
2406
+ return {
2407
+ itemsData: [...this.items]
2408
+ };
2409
+ },
2410
+ methods: {
2411
+ submitForm: function(e) {
2412
+ console.log(this);
2413
+ const n = new FormData(e.target);
2414
+ let t = new Date();
2415
+ const c = t.getFullYear();
2416
+ let m = t.getMonth() + 1, a = t.getDate();
2417
+ a < 10 && (a = "0" + a), m < 10 && (m = "0" + m), t = a + "/" + m + "/" + c, this.itemsData.unshift({
2418
+ date_added: t,
2419
+ user: n.get("user"),
2420
+ note: n.get("addNote")
2421
+ }), this.$emit("formSubmitted", e);
2422
+ }
2423
+ },
2424
+ name: "NoteFeed",
2425
+ props: {
2426
+ user: {
2427
+ type: String,
2428
+ required: !0
2429
+ },
2430
+ ...Z,
2431
+ title: {
2432
+ type: String,
2433
+ required: !1
2434
+ },
2435
+ method: {
2436
+ type: String,
2437
+ required: !1,
2438
+ default: "post"
2439
+ },
2440
+ action: {
2441
+ type: String,
2442
+ required: !1
2443
+ }
2444
+ }
2445
+ }, pi = { class: "container note-feed mb-2" }, yi = ["innerHTML"], bi = ["action", "method"], vi = ["value"], gi = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2446
+ function wi(e, n, t, c, m, a) {
2447
+ const r = M("Table"), i = M("Input");
2448
+ return o(), l("div", pi, [
2449
+ t.title ? (o(), l("span", {
2450
+ key: 0,
2451
+ class: "h3",
2452
+ innerHTML: t.title
2453
+ }, null, 8, yi)) : h("v-if", !0),
2454
+ A(r, T({
2455
+ fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2456
+ items: m.itemsData
2457
+ }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2458
+ s("form", {
2459
+ action: t.action,
2460
+ method: t.method,
2461
+ onSubmit: n[0] || (n[0] = te((f) => a.submitForm(...arguments), ["prevent"]))
2462
+ }, [
2463
+ s("input", {
2464
+ type: "hidden",
2465
+ value: t.user,
2466
+ name: "user"
2467
+ }, null, 8, vi),
2468
+ A(i, {
2469
+ id: "addNote",
2470
+ type: "textarea",
2471
+ label: "Add note",
2472
+ required: "",
2473
+ class: "mw-100"
2474
+ }),
2475
+ gi
2476
+ ], 40, bi)
2477
+ ]);
2478
+ }
2479
+ const zi = /* @__PURE__ */ g(_i, [["render", wi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/NoteFeed/NoteFeed.vue"]]);
2480
+ export {
2481
+ Si as Accordion,
2482
+ xi as AccordionItem,
2483
+ Fi as Alert,
2484
+ Li as Banner,
2485
+ R as Card,
2486
+ Mt as CardDeck,
2487
+ qi as Carousel,
2488
+ Ni as Drawer,
2489
+ Ai as FileUploads,
2490
+ Ti as Header,
2491
+ re as Icon,
2492
+ I as Input,
2493
+ ue as Logo,
2494
+ Di as Modal,
2495
+ Hi as Nav,
2496
+ zi as NoteFeed,
2497
+ Mi as PropertySearchbar,
2498
+ Pi as Step,
2499
+ Bi as Stepper,
2500
+ Ui as Tab,
2501
+ E as Table,
2502
+ Ii as Tabs,
2503
+ Ci as Testimonial
2504
+ };