@iamproperty/components 3.1.0 → 3.2.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 (160) hide show
  1. package/README.md +141 -16
  2. package/assets/.DS_Store +0 -0
  3. package/assets/css/core.min.css +1 -1
  4. package/assets/css/core.min.css.map +1 -1
  5. package/assets/css/email.min.css +1 -1
  6. package/assets/css/email.min.css.map +1 -1
  7. package/assets/css/error.min.css +1 -1
  8. package/assets/css/error.min.css.map +1 -1
  9. package/assets/css/style.min.css +1 -1
  10. package/assets/css/style.min.css.map +1 -1
  11. package/assets/favicons/manifest.json +31 -31
  12. package/assets/js/main.js +57 -57
  13. package/assets/js/modules/accordion.js +32 -32
  14. package/assets/js/modules/alert.js +56 -56
  15. package/assets/js/modules/carousel.js +101 -101
  16. package/assets/js/modules/chart.js +218 -218
  17. package/assets/js/modules/drawer.js +15 -15
  18. package/assets/js/modules/file-upload.js +48 -48
  19. package/assets/js/modules/form.js +168 -168
  20. package/assets/js/modules/helpers.js +119 -119
  21. package/assets/js/modules/modal.js +89 -89
  22. package/assets/js/modules/nav.js +28 -28
  23. package/assets/js/modules/orderablelist.js +122 -122
  24. package/assets/js/modules/table.js +585 -585
  25. package/assets/js/modules/testimonial.js +82 -82
  26. package/assets/js/modules/youtubevideo.js +145 -145
  27. package/assets/js/scripts.bundle.js +220 -214
  28. package/assets/js/scripts.bundle.js.map +1 -1
  29. package/assets/js/scripts.bundle.min.js +1 -1
  30. package/assets/js/scripts.bundle.min.js.map +1 -1
  31. package/assets/sass/_components.scss +14 -14
  32. package/assets/sass/_corefiles.scss +40 -40
  33. package/assets/sass/_fonts.scss +16 -16
  34. package/assets/sass/_forms.scss +9 -9
  35. package/assets/sass/_func.scss +12 -12
  36. package/assets/sass/_functions/functions.scss +141 -141
  37. package/assets/sass/_functions/mixins.scss +170 -170
  38. package/assets/sass/_functions/utilities.scss +143 -143
  39. package/assets/sass/_functions/variables.scss +467 -467
  40. package/assets/sass/_print.scss +61 -61
  41. package/assets/sass/_tests/colours.spec.scss +44 -44
  42. package/assets/sass/_tests/func.spec.scss +232 -232
  43. package/assets/sass/_tests/mixins.spec.scss +194 -194
  44. package/assets/sass/_tests/sass.spec.js +9 -9
  45. package/assets/sass/_tests/typography.spec.scss +35 -35
  46. package/assets/sass/components/accordion.scss +197 -197
  47. package/assets/sass/components/alert.scss +98 -98
  48. package/assets/sass/components/cardDeck.scss +107 -107
  49. package/assets/sass/components/carousel.scss +234 -234
  50. package/assets/sass/components/charts.scss +569 -569
  51. package/assets/sass/components/drawer.scss +46 -46
  52. package/assets/sass/components/header.scss +63 -63
  53. package/assets/sass/components/modal.scss +136 -136
  54. package/assets/sass/components/nav.scss +960 -960
  55. package/assets/sass/components/property-searchbar.scss +143 -143
  56. package/assets/sass/components/snapshot.scss +70 -70
  57. package/assets/sass/components/stepper.scss +164 -164
  58. package/assets/sass/components/tabs.scss +87 -87
  59. package/assets/sass/components/testimonial.scss +132 -132
  60. package/assets/sass/components/timeline.scss +95 -95
  61. package/assets/sass/core.scss +6 -6
  62. package/assets/sass/elements/buttons.scss +251 -251
  63. package/assets/sass/elements/card.scss +288 -288
  64. package/assets/sass/elements/container.scss +236 -236
  65. package/assets/sass/elements/forms.scss +261 -261
  66. package/assets/sass/elements/links.scss +97 -97
  67. package/assets/sass/elements/lists.scss +159 -159
  68. package/assets/sass/elements/panel.scss +161 -161
  69. package/assets/sass/elements/tables.scss +290 -290
  70. package/assets/sass/elements/tooltips.scss +84 -84
  71. package/assets/sass/elements/type.scss +136 -136
  72. package/assets/sass/email.scss +65 -65
  73. package/assets/sass/error.scss +4 -4
  74. package/assets/sass/foundations/brand.scss +76 -72
  75. package/assets/sass/foundations/circles.scss +74 -74
  76. package/assets/sass/foundations/icons.scss +80 -80
  77. package/assets/sass/foundations/media.scss +50 -50
  78. package/assets/sass/foundations/reboot.scss +130 -130
  79. package/assets/sass/foundations/root.scss +125 -125
  80. package/assets/sass/main.scss +7 -7
  81. package/assets/svg/icons.svg +598 -598
  82. package/assets/svg/logo.svg +49 -43
  83. package/assets/ts/main.js +56 -56
  84. package/assets/ts/main.ts +68 -68
  85. package/assets/ts/modules/accordion.js +32 -32
  86. package/assets/ts/modules/accordion.ts +43 -43
  87. package/dist/components.es.js +381 -381
  88. package/dist/components.umd.js +16 -16
  89. package/package.json +96 -108
  90. package/src/.DS_Store +0 -0
  91. package/src/components/Accordion/Accordion.screenshot.vue +57 -57
  92. package/src/components/Accordion/Accordion.spec.js +63 -63
  93. package/src/components/Accordion/Accordion.vue +22 -22
  94. package/src/components/Accordion/AccordionItem.vue +52 -52
  95. package/src/components/Accordion/README.md +34 -34
  96. package/src/components/Alert/Alert.spec.js +49 -49
  97. package/src/components/Alert/Alert.vue +39 -39
  98. package/src/components/Alert/README.md +28 -28
  99. package/src/components/Banner/Banner.spec.js +28 -28
  100. package/src/components/Banner/Banner.vue +38 -38
  101. package/src/components/Banner/README.md +23 -23
  102. package/src/components/CardDeck/CardDeck.spec.js +99 -99
  103. package/src/components/CardDeck/CardDeck.vue +77 -77
  104. package/src/components/CardDeck/README.md +24 -24
  105. package/src/components/Carousel/Carousel.spec.js +45 -45
  106. package/src/components/Carousel/Carousel.vue +85 -85
  107. package/src/components/Carousel/README.md +19 -19
  108. package/src/components/Chart/Chart.spec.js +201 -201
  109. package/src/components/Chart/Chart.vue +88 -88
  110. package/src/components/Chart/README.md +17 -17
  111. package/src/components/Drawer/Drawer.vue +53 -53
  112. package/src/components/Drawer/README.md +22 -22
  113. package/src/components/Header/Header.spec.js +33 -33
  114. package/src/components/Header/Header.vue +38 -38
  115. package/src/components/Header/README.md +27 -27
  116. package/src/components/Modal/Modal.spec.js +22 -22
  117. package/src/components/Modal/Modal.vue +43 -43
  118. package/src/components/Modal/README.md +19 -19
  119. package/src/components/Nav/Nav.spec.js +35 -35
  120. package/src/components/Nav/Nav.vue +215 -215
  121. package/src/components/Nav/README.md +22 -22
  122. package/src/components/NoteFeed/NoteFeed.vue +79 -79
  123. package/src/components/NoteFeed/README.md +16 -16
  124. package/src/components/PropertySearchbar/PropertySearchbar.vue +204 -204
  125. package/src/components/PropertySearchbar/README.md +25 -25
  126. package/src/components/Snapshot/README.md +20 -20
  127. package/src/components/Snapshot/Snapshot.vue +32 -32
  128. package/src/components/Stepper/README.md +32 -32
  129. package/src/components/Stepper/Step.vue +28 -28
  130. package/src/components/Stepper/Stepper.spec.js +99 -99
  131. package/src/components/Stepper/Stepper.vue +33 -33
  132. package/src/components/Tabs/README.md +27 -27
  133. package/src/components/Tabs/Tab.vue +32 -32
  134. package/src/components/Tabs/Tabs.vue +77 -77
  135. package/src/components/Testimonial/README.md +25 -25
  136. package/src/components/Testimonial/Testimonial.spec.js +57 -57
  137. package/src/components/Testimonial/Testimonial.vue +60 -60
  138. package/src/components/Timeline/README.md +18 -18
  139. package/src/components/Timeline/Timeline.spec.js +17 -17
  140. package/src/components/Timeline/Timeline.vue +24 -24
  141. package/src/elements/Card/Card.vue +122 -122
  142. package/src/elements/Card/README.md +24 -24
  143. package/src/elements/FileUploads/FileUploads.vue +48 -48
  144. package/src/elements/FileUploads/README.md +24 -24
  145. package/src/elements/Input/Input.vue +272 -272
  146. package/src/elements/Input/README.md +19 -19
  147. package/src/elements/Table/README.md +62 -62
  148. package/src/elements/Table/Table.spec.js +90 -90
  149. package/src/elements/Table/Table.vue +129 -129
  150. package/src/foundations/Icon/Icon.spec.js +24 -24
  151. package/src/foundations/Icon/Icon.vue +24 -24
  152. package/src/foundations/Icon/README.md +11 -11
  153. package/src/foundations/Logo/Logo.spec.js +56 -56
  154. package/src/foundations/Logo/Logo.vue +39 -39
  155. package/src/foundations/Logo/README.md +20 -20
  156. package/src/foundations/YoutubeVideo/README.md +11 -11
  157. package/src/foundations/YoutubeVideo/YoutubeVideo.vue +24 -24
  158. package/src/helpers/strings.js +12 -12
  159. package/src/index.js +27 -27
  160. package/src/vue-shim.d.ts +6 -6
@@ -1,8 +1,8 @@
1
- import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as h, Fragment as A, 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 $, createTextVNode as P, normalizeStyle as ee, withModifiers as te } from "vue";
1
+ import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as m, Fragment as $, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as z, vModelText as J, vModelSelect as X, resolveComponent as C, createVNode as A, createTextVNode as j, normalizeStyle as ee, withModifiers as te } from "vue";
2
2
  const g = (e, n) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [c, m] of n)
5
- t[c] = m;
4
+ for (const [c, h] of n)
5
+ t[c] = h;
6
6
  return t;
7
7
  }, se = {
8
8
  name: "Icon",
@@ -19,7 +19,7 @@ const g = (e, n) => {
19
19
  }
20
20
  }
21
21
  }, ae = { class: "icon" }, ie = ["xlink:href"];
22
- function ne(e, n, t, c, m, a) {
22
+ function ne(e, n, t, c, h, a) {
23
23
  return o(), l("svg", ae, [
24
24
  s("title", null, w(t.id), 1),
25
25
  s("use", {
@@ -27,7 +27,7 @@ function ne(e, n, t, c, m, a) {
27
27
  }, null, 8, ie)
28
28
  ]);
29
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 = {
30
+ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "/Users/james/workspace/work/component-library/src/foundations/Icon/Icon.vue"]]), oe = {
31
31
  name: "Logo",
32
32
  props: {
33
33
  id: {
@@ -53,7 +53,7 @@ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "C:/Users/James.Lam
53
53
  }
54
54
  }
55
55
  }, le = ["xlink:href"], ce = ["innerHTML"];
56
- function de(e, n, t, c, m, a) {
56
+ function de(e, n, t, c, h, a) {
57
57
  return o(), l("div", {
58
58
  class: v(a.className)
59
59
  }, [
@@ -66,35 +66,35 @@ function de(e, n, t, c, m, a) {
66
66
  t.desc ? (o(), l("span", {
67
67
  key: 0,
68
68
  innerHTML: t.desc
69
- }, null, 8, ce)) : h("v-if", !0)
69
+ }, null, 8, ce)) : m("v-if", !0)
70
70
  ], 2);
71
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) {
72
+ const ue = /* @__PURE__ */ g(oe, [["render", de], ["__file", "/Users/james/workspace/work/component-library/src/foundations/Logo/Logo.vue"]]), O = (e) => e.charAt(0).toUpperCase() + e.slice(1), W = (e) => e.replace(/_/g, " "), fe = (e) => e.replace(/ /g, "_"), he = function(e) {
73
73
  return e = e.toLowerCase(), e = fe(e), e = e.replace(/\W/g, ""), e;
74
- }, he = function(e) {
74
+ }, me = function(e) {
75
75
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
76
76
  }, _e = (e, n) => String(e).padStart(n, "0");
77
- function K(e) {
77
+ function E(e) {
78
78
  if (typeof e != "object")
79
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);
80
+ const n = e.querySelector("thead"), t = e.querySelector("tbody"), c = t.cloneNode(!0), h = new Event("sorted"), a = new Event("filtered"), r = new Event("reordered"), i = "table_" + Math.random().toString(36).substr(2, 9);
81
81
  let f;
82
82
  e.setAttribute("id", i);
83
83
  const S = function(_, u) {
84
84
  let d = [];
85
- Array.from(t.querySelectorAll("tr")).forEach((y, q) => {
85
+ Array.from(t.querySelectorAll("tr")).forEach((y, L) => {
86
86
  let k = y.querySelector('td[data-label="' + _ + '"], th[data-label="' + _ + '"]').textContent;
87
- he(k) && (k = _e(k, 10));
88
- const z = {
87
+ me(k) && (k = _e(k, 10));
88
+ const F = {
89
89
  index: k,
90
90
  row: y
91
91
  };
92
- d.push(z);
93
- }), d.sort((y, q) => y.index > q.index ? 1 : -1), u == "descending" && (d = d.reverse());
92
+ d.push(F);
93
+ }), d.sort((y, L) => y.index > L.index ? 1 : -1), u == "descending" && (d = d.reverse());
94
94
  let p = "";
95
- d.forEach((y, q) => {
95
+ d.forEach((y, L) => {
96
96
  p += y.row.outerHTML;
97
- }), t.innerHTML = p, e.dispatchEvent(m);
97
+ }), t.innerHTML = p, e.dispatchEvent(h);
98
98
  };
99
99
  if (e.addEventListener("click", function(_) {
100
100
  for (var u = _.target; u && u != this; u = u.parentNode)
@@ -113,17 +113,17 @@ function K(e) {
113
113
  u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", _), u.click());
114
114
  });
115
115
  }
116
- const L = function(_) {
116
+ const q = function(_) {
117
117
  const u = document.createElement("div");
118
118
  u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
119
119
  const d = Array.from(e.querySelectorAll("th[data-filterable]"));
120
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;
121
+ d.forEach((k, F) => {
122
+ Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((V, gi) => {
123
+ p[V.textContent] = V.textContent;
124
124
  });
125
125
  });
126
- const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", q = d.length == 1 ? "d-none" : "d-sm-flex";
126
+ const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", L = d.length == 1 ? "d-none" : "d-sm-flex";
127
127
  u.innerHTML = `<div class="col-sm-6 col-md-4 pb-3">
128
128
  <div class="form-control__wrapper form-control-inline mb-0">
129
129
  <label for="${i}_filter" class="form-label">${y}:</label>
@@ -133,16 +133,16 @@ function K(e) {
133
133
  ${Object.keys(p).map((k) => `<option value="${k}"></option>`).join("")}
134
134
  </datalist>
135
135
  </div>
136
- <div class="col-md-8 align-items-center pb-3 ${q}">
136
+ <div class="col-md-8 align-items-center pb-3 ${L}">
137
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
138
  </div>`, e.prepend(u);
139
- }, C = function(_) {
139
+ }, M = function(_) {
140
140
  let u = [];
141
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) {
142
+ let L = "";
143
+ if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k, F) => {
144
+ L += p.querySelector('td[data-label="' + k.textContent + '"]').textContent + " | ";
145
+ }), L.indexOf(_) >= 0) {
146
146
  const k = { row: p };
147
147
  u.push(k);
148
148
  }
@@ -151,37 +151,37 @@ function K(e) {
151
151
  u.forEach((p, y) => {
152
152
  d += p.row.outerHTML;
153
153
  }), t.innerHTML = d, e.dispatchEvent(a);
154
- }, U = function() {
154
+ }, I = function() {
155
155
  let _ = [];
156
156
  Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((p, y) => {
157
157
  _.push(p.textContent);
158
158
  });
159
159
  let u = [];
160
160
  _.forEach((p, y) => {
161
- Array.from(e.querySelectorAll('td[data-label="' + p + '"]')).forEach((q, k) => {
162
- u[q.textContent] = q.textContent;
161
+ Array.from(e.querySelectorAll('td[data-label="' + p + '"]')).forEach((L, k) => {
162
+ u[L.textContent] = L.textContent;
163
163
  });
164
164
  });
165
165
  let d = e.querySelector("datalist");
166
166
  d.innerHTML = Object.keys(u).map((p) => `<option value="${p}"></option>`).join("");
167
167
  };
168
- Array.from(e.querySelectorAll("[data-filterable]")).length && (L(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(_) {
168
+ Array.from(e.querySelectorAll("[data-filterable]")).length && (q(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(_) {
169
169
  for (var u = _.target; u && u != this; u = u.parentNode)
170
170
  if (u.matches('input[type="search"]')) {
171
171
  const d = u.value;
172
- C(d);
172
+ M(d);
173
173
  }
174
174
  }), e.addEventListener("change", function(_) {
175
175
  for (var u = _.target; u && u != this; u = u.parentNode)
176
176
  if (u.matches('input[type="search"]')) {
177
177
  const d = u.value;
178
- C(d);
178
+ M(d);
179
179
  }
180
180
  }), e.addEventListener("change", function(_) {
181
181
  for (var u = _.target; u && u != this; u = u.parentNode)
182
182
  if (u.matches('input[type="checkbox"]')) {
183
183
  const d = e.querySelector('input[type="search"]').value;
184
- C(d), U();
184
+ M(d), I();
185
185
  }
186
186
  }));
187
187
  const H = function(_, u) {
@@ -209,7 +209,7 @@ function K(e) {
209
209
  };
210
210
  if (e.getAttribute("data-show")) {
211
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) {
212
+ _ < d && (H(_, u), K(i, e, _, u, d), D(i, e, _, u, d), e.addEventListener("change", function(p) {
213
213
  for (var y = p.target; y && y != this; y = y.parentNode)
214
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
215
  }), e.addEventListener("click", function(p) {
@@ -220,21 +220,21 @@ function K(e) {
220
220
  y.matches(".table__pagination select") && (H(e.getAttribute("data-show"), y.value), D(i, e, e.getAttribute("data-show"), y.value, d));
221
221
  }));
222
222
  }
223
- function Q(_) {
223
+ function Y(_) {
224
224
  _.dataTransfer.setData("text/plain", _.target.id), f = _.target, _.target.classList.add("tr--dragging");
225
225
  }
226
- const F = function() {
226
+ const U = function() {
227
227
  Array.from(t.querySelectorAll("tr")).forEach((_, u) => {
228
228
  if (_.querySelector('[data-label="Order"]') == null) {
229
229
  const d = document.createElement("th");
230
230
  d.innerHTML = u + 1, d.setAttribute("data-label", "Order"), _.prepend(d);
231
231
  }
232
- _.setAttribute("id", i + "_row_" + (u + 1)), _.setAttribute("data-order", u + 1), _.setAttribute("draggable", "true"), _.addEventListener("dragstart", Q);
232
+ _.setAttribute("id", i + "_row_" + (u + 1)), _.setAttribute("data-order", u + 1), _.setAttribute("draggable", "true"), _.addEventListener("dragstart", Y);
233
233
  });
234
234
  };
235
235
  if (e.getAttribute("data-reorder") && e.getAttribute("data-reorder") != "false") {
236
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) {
237
+ _.innerHTML = "Order", _.title = "Click here to enable re-ordering via drag and drop", _.classList.add("table-order-reset"), n.querySelector("tr").prepend(_), U(), e.addEventListener("click", function(u) {
238
238
  for (var d = u.target; d && d != this; d = d.parentNode)
239
239
  if (d.matches(".table-order-reset")) {
240
240
  Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
@@ -268,41 +268,41 @@ function K(e) {
268
268
  e.addEventListener("filtered", function(_) {
269
269
  if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && S(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
270
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));
271
+ p != null && p.remove(), u < d && (H(u, 1), K(i, e, u, 1, d), D(i, e, u, 1, d));
272
272
  }
273
- e.getAttribute("data-reorder") && F();
273
+ e.getAttribute("data-reorder") && U();
274
274
  }, !1), e.addEventListener("sorted", function(_) {
275
- e.getAttribute("data-reorder") && F();
275
+ e.getAttribute("data-reorder") && U();
276
276
  }, !1), e.addEventListener("populated", function(_) {
277
277
  var u = e.querySelector(".table__filters");
278
278
  u.remove();
279
279
  var d = e.querySelector(".table__pagination");
280
280
  d.remove();
281
281
  var p = e.cloneNode(!0);
282
- e.parentNode.replaceChild(p, e), K(p);
282
+ e.parentNode.replaceChild(p, e), E(p);
283
283
  }, !1);
284
284
  }
285
- const J = function(e, n, t, c, m) {
285
+ const K = function(e, n, t, c, h) {
286
286
  const a = document.createElement("div");
287
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
288
  <div class="form-control__wrapper form-control-inline mb-0">
289
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}" />
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="${h}" />
291
291
  </div>
292
292
  <datalist id="${e}_pagination">
293
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>
294
+ ${h > 10 ? '<option value="10">10</option>' : ""}
295
+ ${h > 20 ? '<option value="20">20</option>' : ""}
296
+ <option value="${h}">${h}</option>
297
297
  </datalist>
298
298
  </div>
299
299
  <div class="col mw-fit-content me-auto d-flex align-items-center mb-3"><span class="label">per page</span></div>
300
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) {
301
+ }, D = function(e, n, t, c, h) {
302
302
  const a = document.getElementById(e + "_paginationBtns");
303
303
  if (a == null)
304
304
  return !1;
305
- const r = Math.ceil(m / t);
305
+ const r = Math.ceil(h / t);
306
306
  if (r == 1)
307
307
  a.innerHTML = "";
308
308
  else if (r < 5) {
@@ -327,7 +327,7 @@ ${i}
327
327
  `;
328
328
  }
329
329
  };
330
- let W = function(e) {
330
+ let G = function(e) {
331
331
  return typeof e != "string" ? e : (e = e.replace("\xA3", ""), e = e.replace("%", ""), Number.isNaN(Number.parseFloat(e)) ? 0 : Number.parseFloat(e));
332
332
  };
333
333
  const pe = {
@@ -368,15 +368,15 @@ const pe = {
368
368
  },
369
369
  computed: {
370
370
  cellHeading() {
371
- return (e) => `${O(j(e))}`;
371
+ return (e) => `${O(W(e))}`;
372
372
  },
373
373
  numericValue() {
374
- return (e) => (e = W(e), e);
374
+ return (e) => (e = G(e), e);
375
375
  }
376
376
  },
377
377
  mounted() {
378
378
  this.$nextTick(function() {
379
- K(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
379
+ E(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
380
380
  console.log("Table sorted");
381
381
  }, !1), this.$el.addEventListener("filtered", function(e) {
382
382
  console.log("Table filtered");
@@ -386,16 +386,16 @@ const pe = {
386
386
  updated() {
387
387
  this.$nextTick(function() {
388
388
  let e = this.$refs.wrapper.querySelector("tbody"), n = "";
389
- this.items.forEach((c, m) => {
389
+ this.items.forEach((c, h) => {
390
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>`;
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(W(r))}" data-numeric="${G(c[r])}">${c[r]}</td>`).join("")}</tr>`;
392
392
  }), e.innerHTML = n;
393
393
  const t = new Event("filtered");
394
394
  this.$refs.wrapper.dispatchEvent(t);
395
395
  });
396
396
  }
397
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 Se(e, n, t, c, m, a) {
398
+ function Se(e, n, t, c, h, a) {
399
399
  return o(), l("div", {
400
400
  class: "table__wrapper",
401
401
  ref: "wrapper",
@@ -410,31 +410,31 @@ function Se(e, n, t, c, m, a) {
410
410
  s("tr", {
411
411
  class: v(t.headingclass)
412
412
  }, [
413
- (o(!0), l(A, null, x(t.fields, (r) => (o(), l("th", {
413
+ (o(!0), l($, null, x(t.fields, (r) => (o(), l("th", {
414
414
  key: r.key,
415
415
  "data-sortable": r.sortable,
416
416
  "data-filterable": r.filterable
417
417
  }, w(a.cellHeading(r.key)), 9, ve))), 128))
418
418
  ], 2)
419
- ])) : h("v-if", !0),
419
+ ])) : m("v-if", !0),
420
420
  t.items ? (o(), l("tbody", ge, [
421
- (o(!0), l(A, null, x(t.items, (r, i) => (o(), l("tr", {
421
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("tr", {
422
422
  key: i,
423
423
  "data-row-id": r.rowid
424
424
  }, [
425
- (o(!0), l(A, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, S) => (o(), l("td", {
425
+ (o(!0), l($, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, S) => (o(), l("td", {
426
426
  key: S,
427
427
  innerHTML: f,
428
428
  "data-label": a.cellHeading(S),
429
429
  "data-numeric": a.numericValue(f)
430
430
  }, null, 8, ke))), 128))
431
431
  ], 8, we))), 128))
432
- ])) : h("v-if", !0)
432
+ ])) : m("v-if", !0)
433
433
  ]),
434
434
  b(e.$slots, "default")
435
435
  ], 8, ye);
436
436
  }
437
- const E = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Table/Table.vue"]]), $e = {
437
+ const R = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "/Users/james/workspace/work/component-library/src/elements/Table/Table.vue"]]), Ae = {
438
438
  name: "Input",
439
439
  props: {
440
440
  value: {
@@ -618,14 +618,14 @@ const E = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "C:/Users/James.Lamb
618
618
  this.$emit("bus");
619
619
  }
620
620
  }
621
- }, Ae = ["for", "innerHTML", "title"], xe = ["innerHTML"], Le = ["innerHTML"], qe = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Ce = {
621
+ }, $e = ["for", "innerHTML", "title"], xe = ["innerHTML"], qe = ["innerHTML"], Le = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Me = {
622
622
  key: 5,
623
623
  class: "input-group"
624
- }, Me = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
624
+ }, Ce = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
625
625
  key: 6,
626
626
  class: "input-group"
627
- }, 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"];
628
- function Je(e, n, t, c, m, a) {
627
+ }, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" }, je = ["type", "name", "id", "pattern"], Pe = ["value"], Ie = ["id"], Ue = ["value"], Fe = ["type", "name", "id"], ze = ["for", "innerHTML"], Ve = ["type", "name", "id"], Oe = ["for", "innerHTML"], We = ["innerHTML"];
628
+ function Ke(e, n, t, c, h, a) {
629
629
  return o(), l("div", {
630
630
  class: v(a.wrapperClass()),
631
631
  ref: "wrapper"
@@ -636,21 +636,21 @@ function Je(e, n, t, c, m, a) {
636
636
  for: t.id,
637
637
  innerHTML: a.displayLabel(),
638
638
  title: t.title
639
- }, null, 10, Ae)) : h("v-if", !0),
640
- h(" Prefix and Suffix "),
639
+ }, null, 10, $e)) : m("v-if", !0),
640
+ m(" Prefix and Suffix "),
641
641
  t.prefix ? (o(), l("span", {
642
642
  key: 1,
643
643
  class: v(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
644
644
  innerHTML: t.prefix,
645
645
  role: "presentation"
646
- }, null, 10, xe)) : h("v-if", !0),
646
+ }, null, 10, xe)) : m("v-if", !0),
647
647
  t.suffix ? (o(), l("span", {
648
648
  key: 2,
649
649
  class: v(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
650
650
  innerHTML: t.suffix,
651
651
  role: "presentation"
652
- }, null, 10, Le)) : h("v-if", !0),
653
- h(" Standard input field "),
652
+ }, null, 10, qe)) : m("v-if", !0),
653
+ m(" Standard input field "),
654
654
  a.isInput() ? N((o(), l("input", T({
655
655
  key: 3,
656
656
  "onUpdate:modelValue": n[0] || (n[0] = (r) => a.inputVal = r),
@@ -662,10 +662,10 @@ function Je(e, n, t, c, m, a) {
662
662
  list: a.hasOptions()
663
663
  }, e.$attrs, {
664
664
  onKeyup: n[1] || (n[1] = (...r) => a.inputKeyup && a.inputKeyup(...r))
665
- }), null, 16, qe)), [
666
- [V, a.inputVal]
667
- ]) : h("v-if", !0),
668
- h(" Textarea "),
665
+ }), null, 16, Le)), [
666
+ [z, a.inputVal]
667
+ ]) : m("v-if", !0),
668
+ m(" Textarea "),
669
669
  t.type == "textarea" ? N((o(), l("textarea", T({
670
670
  key: 4,
671
671
  "onUpdate:modelValue": n[2] || (n[2] = (r) => a.inputVal = r),
@@ -675,10 +675,10 @@ function Je(e, n, t, c, m, a) {
675
675
  id: t.id,
676
676
  pattern: a.needPattern()
677
677
  }, e.$attrs), null, 16, Te)), [
678
- [Y, a.inputVal]
679
- ]) : h("v-if", !0),
680
- h(" Range "),
681
- t.type == "range" ? (o(), l("div", Ce, [
678
+ [J, a.inputVal]
679
+ ]) : m("v-if", !0),
680
+ m(" Range "),
681
+ t.type == "range" ? (o(), l("div", Me, [
682
682
  N(s("input", T({
683
683
  "onUpdate:modelValue": n[3] || (n[3] = (r) => a.inputVal = r),
684
684
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -687,12 +687,12 @@ function Je(e, n, t, c, m, a) {
687
687
  id: t.id,
688
688
  pattern: a.needPattern(),
689
689
  list: a.hasOptions()
690
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Me), [
691
- [V, a.inputVal]
690
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ce), [
691
+ [z, a.inputVal]
692
692
  ]),
693
693
  s("output", He, w(t.value), 1)
694
- ])) : h("v-if", !0),
695
- h(" Color picker "),
694
+ ])) : m("v-if", !0),
695
+ m(" Color picker "),
696
696
  t.type == "color" ? (o(), l("div", Ne, [
697
697
  N(s("input", T({
698
698
  "onUpdate:modelValue": n[4] || (n[4] = (r) => a.inputVal = r),
@@ -703,11 +703,11 @@ function Je(e, n, t, c, m, a) {
703
703
  pattern: a.needPattern(),
704
704
  list: a.hasOptions()
705
705
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, De), [
706
- [V, a.inputVal]
706
+ [z, a.inputVal]
707
707
  ]),
708
708
  s("output", Be, w(t.value ? e.vale : "#000000"), 1)
709
- ])) : h("v-if", !0),
710
- h(" Select/dropdown "),
709
+ ])) : m("v-if", !0),
710
+ m(" Select/dropdown "),
711
711
  t.type == "select" ? N((o(), l("select", T({
712
712
  key: 7,
713
713
  "onUpdate:modelValue": n[5] || (n[5] = (r) => a.inputVal = r),
@@ -717,37 +717,37 @@ function Je(e, n, t, c, m, a) {
717
717
  id: t.id,
718
718
  pattern: a.needPattern()
719
719
  }, e.$attrs), [
720
- (o(!0), l(A, null, x(t.options, (r, i) => (o(), l("option", {
720
+ (o(!0), l($, null, x(t.options, (r, i) => (o(), l("option", {
721
721
  key: i,
722
722
  value: r.value
723
- }, w(r.display ? r.display : r.value), 9, Ie))), 128))
724
- ], 16, Pe)), [
723
+ }, w(r.display ? r.display : r.value), 9, Pe))), 128))
724
+ ], 16, je)), [
725
725
  [X, a.inputVal]
726
- ]) : h("v-if", !0),
726
+ ]) : m("v-if", !0),
727
727
  a.allowDatalist() ? (o(), l("datalist", {
728
728
  key: 8,
729
729
  id: t.id + "-list"
730
730
  }, [
731
- (o(!0), l(A, null, x(t.options, (r, i) => (o(), l("option", {
731
+ (o(!0), l($, null, x(t.options, (r, i) => (o(), l("option", {
732
732
  key: i,
733
733
  value: r.value
734
- }, w(r.value), 9, Fe))), 128))
735
- ], 8, Ue)) : h("v-if", !0),
736
- h(" Checkbox "),
734
+ }, w(r.value), 9, Ue))), 128))
735
+ ], 8, Ie)) : m("v-if", !0),
736
+ m(" Checkbox "),
737
737
  t.type == "checkbox" || t.type == "radio" ? (o(), l("input", T({
738
738
  key: 9,
739
739
  class: "form-check-input",
740
740
  type: t.type,
741
741
  name: t.name ? t.name : t.id,
742
742
  id: t.id
743
- }, e.$attrs), null, 16, ze)) : h("v-if", !0),
743
+ }, e.$attrs), null, 16, Fe)) : m("v-if", !0),
744
744
  t.type == "checkbox" || t.type == "radio" ? (o(), l("label", {
745
745
  key: 10,
746
746
  class: v(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
747
747
  for: t.id,
748
748
  innerHTML: t.label
749
- }, null, 10, Ve)) : h("v-if", !0),
750
- h(" Checkbox Button "),
749
+ }, null, 10, ze)) : m("v-if", !0),
750
+ m(" Checkbox Button "),
751
751
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("input", T({
752
752
  key: 11,
753
753
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -755,26 +755,26 @@ function Je(e, n, t, c, m, a) {
755
755
  autocomplete: "off",
756
756
  name: t.name ? t.name : t.id,
757
757
  id: t.id
758
- }, e.$attrs), null, 16, Ge)) : h("v-if", !0),
758
+ }, e.$attrs), null, 16, Ve)) : m("v-if", !0),
759
759
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("label", {
760
760
  key: 12,
761
761
  class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
762
762
  for: t.id,
763
763
  innerHTML: t.label,
764
764
  onClick: n[6] || (n[6] = (...r) => a.clickEvent && a.clickEvent(...r))
765
- }, null, 10, Oe)) : h("v-if", !0),
766
- h(" Error message "),
765
+ }, null, 10, Oe)) : m("v-if", !0),
766
+ m(" Error message "),
767
767
  t.errormsg ? (o(), l("p", {
768
768
  key: 13,
769
769
  class: "invalid-feedback mb-0",
770
770
  innerHTML: t.errormsg
771
- }, null, 8, je)) : h("v-if", !0),
771
+ }, null, 8, We)) : m("v-if", !0),
772
772
  b(e.$slots, "default")
773
773
  ], 2);
774
774
  }
775
- const I = /* @__PURE__ */ g($e, [["render", Je], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Input/Input.vue"]]), We = {
775
+ const P = /* @__PURE__ */ g(Ae, [["render", Ke], ["__file", "/Users/james/workspace/work/component-library/src/elements/Input/Input.vue"]]), Ge = {
776
776
  components: {
777
- Input: I
777
+ Input: P
778
778
  },
779
779
  name: "FileUploads",
780
780
  props: {
@@ -795,21 +795,21 @@ const I = /* @__PURE__ */ g($e, [["render", Je], ["__file", "C:/Users/James.Lamb
795
795
  required: !1
796
796
  }
797
797
  }
798
- }, 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" }, [
798
+ }, Ee = { class: "multiple-file-uploads mb-4" }, Re = { class: "row" }, Ze = { class: "col-12 col-md me-auto" }, Qe = /* @__PURE__ */ s("div", { class: "col mw-fit-content" }, [
799
799
  /* @__PURE__ */ s("button", {
800
800
  type: "button",
801
801
  class: "btn btn-tertiary me-0",
802
802
  "data-delete": ""
803
803
  }, "Delete")
804
- ], -1), Qe = ["data-maxfiles"];
805
- function Ye(e, n, t, c, m, a) {
806
- const r = M("Input");
807
- return o(), l("div", Ke, [
808
- s("div", Ee, [
804
+ ], -1), Ye = ["data-maxfiles"];
805
+ function Je(e, n, t, c, h, a) {
806
+ const r = C("Input");
807
+ return o(), l("div", Ee, [
808
+ s("div", Re, [
809
809
  s("div", {
810
810
  class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
811
811
  }, [
812
- $(r, {
812
+ A(r, {
813
813
  type: "file",
814
814
  id: t.id,
815
815
  name: `${t.id}[]`,
@@ -820,20 +820,20 @@ function Ye(e, n, t, c, m, a) {
820
820
  "data-filesize": t.maxfilesize
821
821
  }, null, 8, ["id", "name", "data-filesize"])
822
822
  ], 2),
823
- s("div", Re, [
823
+ s("div", Ze, [
824
824
  b(e.$slots, "default")
825
825
  ]),
826
- Ze
826
+ Qe
827
827
  ]),
828
828
  s("button", {
829
829
  type: "button",
830
830
  class: "btn btn-secondary me-0",
831
831
  "data-add": "",
832
832
  "data-maxfiles": t.maxfiles
833
- }, "+ Add file", 8, Qe)
833
+ }, "+ Add file", 8, Ye)
834
834
  ]);
835
835
  }
836
- const $i = /* @__PURE__ */ g(We, [["render", Ye], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/FileUploads/FileUploads.vue"]]);
836
+ const ki = /* @__PURE__ */ g(Ge, [["render", Je], ["__file", "/Users/james/workspace/work/component-library/src/elements/FileUploads/FileUploads.vue"]]);
837
837
  function Xe(e) {
838
838
  if (!e.classList.contains("accordion--keep-open")) {
839
839
  const n = e.querySelectorAll(":scope > details");
@@ -866,12 +866,12 @@ const et = {
866
866
  class: "container accordion",
867
867
  ref: "wrapper"
868
868
  };
869
- function st(e, n, t, c, m, a) {
869
+ function st(e, n, t, c, h, a) {
870
870
  return o(), l("div", tt, [
871
871
  b(e.$slots, "default")
872
872
  ], 512);
873
873
  }
874
- const Ai = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/Accordion.vue"]]), at = {
874
+ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "/Users/james/workspace/work/component-library/src/components/Accordion/Accordion.vue"]]), at = {
875
875
  name: "AccordionItem",
876
876
  props: {
877
877
  title: {
@@ -898,7 +898,7 @@ const Ai = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lam
898
898
  },
899
899
  computed: {
900
900
  createID() {
901
- return (e) => `${me(e)}`;
901
+ return (e) => `${he(e)}`;
902
902
  }
903
903
  },
904
904
  data() {
@@ -910,29 +910,29 @@ const Ai = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lam
910
910
  key: 0,
911
911
  class: "accordion-body"
912
912
  };
913
- function ot(e, n, t, c, m, a) {
913
+ function ot(e, n, t, c, h, a) {
914
914
  return o(), l("details", {
915
915
  class: "accordion-item",
916
916
  id: a.createID(t.title)
917
917
  }, [
918
918
  s("summary", {
919
919
  class: v(`${t.titlecolour ? `bg-${t.titlecolour}` : ""}`),
920
- onClick: n[0] || (n[0] = (r) => m.show = !0)
920
+ onClick: n[0] || (n[0] = (r) => h.show = !0)
921
921
  }, [
922
922
  s("span", nt, [
923
- P(w(t.title), 1),
923
+ j(w(t.title), 1),
924
924
  t.badge ? (o(), l("span", {
925
925
  key: 0,
926
926
  class: v(`badge bg-${t.badgecolour}`)
927
- }, w(t.badge), 3)) : h("v-if", !0)
927
+ }, w(t.badge), 3)) : m("v-if", !0)
928
928
  ])
929
929
  ], 2),
930
- m.show ? (o(), l("div", rt, [
930
+ h.show ? (o(), l("div", rt, [
931
931
  b(e.$slots, "default")
932
- ])) : h("v-if", !0)
932
+ ])) : m("v-if", !0)
933
933
  ], 8, it);
934
934
  }
935
- const xi = /* @__PURE__ */ g(at, [["render", ot], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/AccordionItem.vue"]]), lt = {
935
+ const Ai = /* @__PURE__ */ g(at, [["render", ot], ["__file", "/Users/james/workspace/work/component-library/src/components/Accordion/AccordionItem.vue"]]), lt = {
936
936
  name: "Header",
937
937
  props: {
938
938
  title: {
@@ -949,8 +949,8 @@ const xi = /* @__PURE__ */ g(at, [["render", ot], ["__file", "C:/Users/James.Lam
949
949
  required: !1
950
950
  }
951
951
  }
952
- }, 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"];
953
- function _t(e, n, t, c, m, a) {
952
+ }, ct = { class: "container" }, dt = { class: "row" }, ut = { class: "col-sm-6" }, ft = { class: "pt-5 pb-3 px-4" }, ht = { class: "col-sm-6 col-md-5 ms-auto" }, mt = ["src"];
953
+ function _t(e, n, t, c, h, a) {
954
954
  return o(), l("div", ct, [
955
955
  s("div", {
956
956
  class: v("bg-" + t.background + " mb-4")
@@ -962,19 +962,19 @@ function _t(e, n, t, c, m, a) {
962
962
  b(e.$slots, "default")
963
963
  ])
964
964
  ]),
965
- s("div", mt, [
965
+ s("div", ht, [
966
966
  t.image ? (o(), l("img", {
967
967
  key: 0,
968
968
  src: t.image,
969
969
  alt: "",
970
970
  class: "h-100 w-100 object-cover"
971
- }, null, 8, ht)) : h("v-if", !0)
971
+ }, null, 8, mt)) : m("v-if", !0)
972
972
  ])
973
973
  ])
974
974
  ], 2)
975
975
  ]);
976
976
  }
977
- const Li = /* @__PURE__ */ g(lt, [["render", _t], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Banner/Banner.vue"]]);
977
+ const $i = /* @__PURE__ */ g(lt, [["render", _t], ["__file", "/Users/james/workspace/work/component-library/src/components/Banner/Banner.vue"]]);
978
978
  const pt = {
979
979
  name: "Card",
980
980
  props: {
@@ -1045,8 +1045,8 @@ const pt = {
1045
1045
  },
1046
1046
  cardContent() {
1047
1047
  return () => {
1048
- const e = function(m) {
1049
- switch (m) {
1048
+ const e = function(h) {
1049
+ switch (h) {
1050
1050
  case "Modern method":
1051
1051
  return "bg-secondary text-primary";
1052
1052
  case "Freehold":
@@ -1054,7 +1054,7 @@ const pt = {
1054
1054
  default:
1055
1055
  return "bg-body text-white";
1056
1056
  }
1057
- }, 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 = `
1057
+ }, n = this.details && this.details.tags ? this.details.tags.map((h) => `<span class="badge rounded-pill py-2 px-3 mb-3 me-2 ${e(h)}">${h}</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 = `
1058
1058
  ${this.details && this.details.guideprice ? `<span class="d-block h6 text-dark mb-1">Price guide: ${this.details.guideprice}</span>` : ""}
1059
1059
  ${this.details && this.details.auctiontime ? `<span class="d-block h6 text-primary mb-4">Auction time left: ${this.details.auctiontime}</span>` : ""}
1060
1060
  ${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>` : ""}
@@ -1066,11 +1066,11 @@ const pt = {
1066
1066
  }, yt = ["href", "title", "target"], bt = {
1067
1067
  key: 0,
1068
1068
  class: "card-header__wrapper"
1069
- }, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], St = ["src"], $t = ["innerHTML"], At = {
1069
+ }, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], St = ["src"], At = ["innerHTML"], $t = {
1070
1070
  key: 1,
1071
1071
  class: "card-footer"
1072
1072
  }, xt = { class: "visually-hidden" };
1073
- function Lt(e, n, t, c, m, a) {
1073
+ function qt(e, n, t, c, h, a) {
1074
1074
  return o(), l("a", {
1075
1075
  href: t.link,
1076
1076
  class: v("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
@@ -1089,12 +1089,12 @@ function Lt(e, n, t, c, m, a) {
1089
1089
  key: 0,
1090
1090
  class: "badge bg-primary p-2 me-2",
1091
1091
  innerHTML: a.cardStatus()
1092
- }, null, 8, wt)) : h("v-if", !0),
1092
+ }, null, 8, wt)) : m("v-if", !0),
1093
1093
  this.details && (this.details.images || this.details.videos) ? (o(), l("span", {
1094
1094
  key: 1,
1095
1095
  class: "badge bg-black bg-opacity-50 p-2 align-self-end",
1096
1096
  innerHTML: a.cardMedia()
1097
- }, null, 8, kt)) : h("v-if", !0)
1097
+ }, null, 8, kt)) : m("v-if", !0)
1098
1098
  ]),
1099
1099
  t.details && t.details.logo ? (o(), l("img", {
1100
1100
  key: 0,
@@ -1102,26 +1102,26 @@ function Lt(e, n, t, c, m, a) {
1102
1102
  alt: "",
1103
1103
  loading: "lazy",
1104
1104
  class: "card-logo"
1105
- }, null, 8, St)) : h("v-if", !0)
1106
- ])) : h("v-if", !0),
1105
+ }, null, 8, St)) : m("v-if", !0)
1106
+ ])) : m("v-if", !0),
1107
1107
  s("div", {
1108
1108
  class: "card-body",
1109
1109
  innerHTML: a.cardContent()
1110
- }, null, 8, $t),
1111
- t.hidectatext == !1 ? (o(), l("div", At, [
1110
+ }, null, 8, At),
1111
+ t.hidectatext == !1 ? (o(), l("div", $t, [
1112
1112
  s("span", {
1113
1113
  class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
1114
1114
  }, [
1115
- P(w(t.ctatext), 1),
1115
+ j(w(t.ctatext), 1),
1116
1116
  s("span", xt, ": " + w(t.title), 1)
1117
1117
  ], 2)
1118
- ])) : h("v-if", !0)
1118
+ ])) : m("v-if", !0)
1119
1119
  ], 10, yt);
1120
1120
  }
1121
- const R = /* @__PURE__ */ g(pt, [["render", Lt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Card/Card.vue"]]);
1122
- const qt = {
1121
+ const Z = /* @__PURE__ */ g(pt, [["render", qt], ["__file", "/Users/james/workspace/work/component-library/src/elements/Card/Card.vue"]]);
1122
+ const Lt = {
1123
1123
  components: {
1124
- Card: R
1124
+ Card: Z
1125
1125
  },
1126
1126
  name: "CardDeck",
1127
1127
  props: {
@@ -1176,8 +1176,8 @@ const qt = {
1176
1176
  }
1177
1177
  }
1178
1178
  }, Tt = ["data-card-type"];
1179
- function Ct(e, n, t, c, m, a) {
1180
- const r = M("Card");
1179
+ function Mt(e, n, t, c, h, a) {
1180
+ const r = C("Card");
1181
1181
  return o(), l("div", {
1182
1182
  class: "container card-deck prevent-invert",
1183
1183
  "data-card-type": t.cardtype
@@ -1186,11 +1186,11 @@ function Ct(e, n, t, c, m, a) {
1186
1186
  s("div", {
1187
1187
  class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1188
1188
  }, [
1189
- (o(!0), l(A, null, x(t.items, (i, f) => (o(), l("div", {
1189
+ (o(!0), l($, null, x(t.items, (i, f) => (o(), l("div", {
1190
1190
  class: "col",
1191
1191
  key: f
1192
1192
  }, [
1193
- $(r, T(i, {
1193
+ A(r, T(i, {
1194
1194
  class: t.cardclass,
1195
1195
  type: t.cardtype,
1196
1196
  btntype: i.btntype ? i.btntype : t.btntype,
@@ -1203,23 +1203,23 @@ function Ct(e, n, t, c, m, a) {
1203
1203
  b(e.$slots, "after")
1204
1204
  ], 8, Tt);
1205
1205
  }
1206
- const Mt = /* @__PURE__ */ g(qt, [["render", Ct], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/CardDeck/CardDeck.vue"]]);
1206
+ const Ct = /* @__PURE__ */ g(Lt, [["render", Mt], ["__file", "/Users/james/workspace/work/component-library/src/components/CardDeck/CardDeck.vue"]]);
1207
1207
  function Ht(e) {
1208
1208
  var n;
1209
1209
  let t = e.querySelector(".carousel__inner"), c = e.querySelectorAll(".carousel__item").length;
1210
1210
  e.getAttribute("data-cols");
1211
- let m = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
1211
+ let h = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
1212
1212
  e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
1213
1213
  clearTimeout(n), n = setTimeout(function() {
1214
- let i = t.clientWidth, f = t.scrollWidth, S = t.scrollLeft, L = Math.round(S / f * c) + 1, C = e.querySelector(".carousel__item:last-child").offsetLeft;
1215
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((U, H) => {
1216
- U.classList.remove("active");
1217
- }), 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");
1214
+ let i = t.clientWidth, f = t.scrollWidth, S = t.scrollLeft, q = Math.round(S / f * c) + 1, M = e.querySelector(".carousel__item:last-child").offsetLeft;
1215
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I, H) => {
1216
+ I.classList.remove("active");
1217
+ }), e.querySelector(".control-" + q).classList.add("active"), q == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + i > M ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1218
1218
  }, 100);
1219
1219
  }, !1), e.addEventListener("click", function(r) {
1220
1220
  for (var i = r.target; i && i != this; i = i.parentNode)
1221
1221
  if (i.matches(".carousel__controls a")) {
1222
- r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((S, L) => {
1222
+ r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((S, q) => {
1223
1223
  S.classList.remove("active");
1224
1224
  }), i.classList.add("active");
1225
1225
  const f = document.querySelector(i.getAttribute("href"));
@@ -1242,16 +1242,16 @@ function Ht(e) {
1242
1242
  });
1243
1243
  break;
1244
1244
  }
1245
- }, !1), c == 1 && e.classList.add("hide-btns"), m >= c && e.classList.add("hide-sm-btns"), a >= c && e.classList.add("hide-md-btns");
1245
+ }, !1), c == 1 && e.classList.add("hide-btns"), h >= c && e.classList.add("hide-sm-btns"), a >= c && e.classList.add("hide-md-btns");
1246
1246
  }
1247
- let B = Mt.props;
1247
+ let B = Ct.props;
1248
1248
  B.gap.default = 0;
1249
1249
  B.cols.default = 1;
1250
1250
  B.smcols.default = 2;
1251
1251
  B.mdcols.default = 4;
1252
1252
  const Nt = {
1253
1253
  components: {
1254
- Card: R
1254
+ Card: Z
1255
1255
  },
1256
1256
  name: "Carousel",
1257
1257
  data() {
@@ -1280,39 +1280,39 @@ const Nt = {
1280
1280
  Ht(this.$refs.wrapper);
1281
1281
  });
1282
1282
  }
1283
- }, 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", {
1283
+ }, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" }, jt = { class: "carousel__inner" }, Pt = ["id"], It = ["innerHTML", "id"], Ut = ["href"], Ft = /* @__PURE__ */ s("button", {
1284
1284
  class: "btn btn-prev",
1285
1285
  "data-go": "0",
1286
1286
  disabled: ""
1287
- }, "Prev", -1), Vt = /* @__PURE__ */ s("button", {
1287
+ }, "Prev", -1), zt = /* @__PURE__ */ s("button", {
1288
1288
  class: "btn btn-next",
1289
1289
  "data-go": "2"
1290
1290
  }, "Next", -1);
1291
- function Gt(e, n, t, c, m, a) {
1292
- const r = M("Card");
1291
+ function Vt(e, n, t, c, h, a) {
1292
+ const r = C("Card");
1293
1293
  return o(), l("div", {
1294
1294
  class: "container carousel",
1295
- id: "carousel" + m.id,
1295
+ id: "carousel" + h.id,
1296
1296
  ref: "wrapper",
1297
1297
  "data-cols": e.cols,
1298
1298
  "data-sm-cols": e.smcols,
1299
1299
  "data-md-cols": e.mdcols
1300
1300
  }, [
1301
1301
  b(e.$slots, "default", {}, () => [
1302
- h(" Use for titles etc ")
1302
+ m(" Use for titles etc ")
1303
1303
  ]),
1304
1304
  s("div", Bt, [
1305
- s("div", Pt, [
1305
+ s("div", jt, [
1306
1306
  t.type == "card" ? (o(), l("div", {
1307
1307
  key: 0,
1308
1308
  class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1309
1309
  }, [
1310
- (o(!0), l(A, null, x(e.items, (i, f) => (o(), l("div", {
1310
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("div", {
1311
1311
  class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1312
1312
  key: f,
1313
- id: "carousel" + m.id + "slide" + (f + 1)
1313
+ id: "carousel" + h.id + "slide" + (f + 1)
1314
1314
  }, [
1315
- $(r, T(i, {
1315
+ A(r, T(i, {
1316
1316
  class: e.cardclass,
1317
1317
  type: e.cardtype,
1318
1318
  btnyype: e.btntype,
@@ -1320,35 +1320,35 @@ function Gt(e, n, t, c, m, a) {
1320
1320
  ctatext: e.ctatext,
1321
1321
  hidectatext: e.hidectatext
1322
1322
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1323
- ], 10, It))), 128))
1324
- ], 2)) : h("v-if", !0),
1323
+ ], 10, Pt))), 128))
1324
+ ], 2)) : m("v-if", !0),
1325
1325
  t.type != "card" ? (o(), l("div", {
1326
1326
  key: 1,
1327
1327
  class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1328
1328
  }, [
1329
- (o(!0), l(A, null, x(e.items, (i, f) => (o(), l("div", {
1329
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("div", {
1330
1330
  class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1331
1331
  key: f,
1332
1332
  innerHTML: a.content(i),
1333
- id: "carousel" + m.id + "slide" + (f + 1)
1334
- }, null, 10, Ut))), 128))
1335
- ], 2)) : h("v-if", !0)
1333
+ id: "carousel" + h.id + "slide" + (f + 1)
1334
+ }, null, 10, It))), 128))
1335
+ ], 2)) : m("v-if", !0)
1336
1336
  ]),
1337
1337
  s("div", {
1338
1338
  class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
1339
1339
  }, [
1340
- (o(!0), l(A, null, x(e.items, (i, f) => (o(), l("a", {
1340
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("a", {
1341
1341
  key: f,
1342
- href: "#carousel" + m.id + "slide" + (f + 1),
1342
+ href: "#carousel" + h.id + "slide" + (f + 1),
1343
1343
  class: v(`control-${f + 1}`)
1344
- }, "Slide " + w(f + 1), 11, Ft))), 128))
1344
+ }, "Slide " + w(f + 1), 11, Ut))), 128))
1345
1345
  ], 2),
1346
- zt,
1347
- Vt
1346
+ Ft,
1347
+ zt
1348
1348
  ])
1349
1349
  ], 8, Dt);
1350
1350
  }
1351
- const qi = /* @__PURE__ */ g(Nt, [["render", Gt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Carousel/Carousel.vue"]]);
1351
+ const xi = /* @__PURE__ */ g(Nt, [["render", Vt], ["__file", "/Users/james/workspace/work/component-library/src/components/Carousel/Carousel.vue"]]);
1352
1352
  const Ot = {
1353
1353
  name: "Header",
1354
1354
  props: {
@@ -1361,52 +1361,52 @@ const Ot = {
1361
1361
  required: !1
1362
1362
  }
1363
1363
  }
1364
- }, jt = { class: "header-banner" }, Jt = { class: "container" }, Wt = { class: "header-banner__inner" }, Kt = ["innerHTML"], Et = { key: 0 }, Rt = ["srcset"], Zt = /* @__PURE__ */ s("img", {
1364
+ }, Wt = { class: "header-banner" }, Kt = { class: "container" }, Gt = { class: "header-banner__inner" }, Et = ["innerHTML"], Rt = { key: 0 }, Zt = ["srcset"], Qt = /* @__PURE__ */ s("img", {
1365
1365
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
1366
1366
  alt: ""
1367
1367
  }, null, -1);
1368
- function Qt(e, n, t, c, m, a) {
1369
- return o(), l("header", jt, [
1370
- s("div", Jt, [
1371
- h(" Space for a breadcrumb trail "),
1368
+ function Yt(e, n, t, c, h, a) {
1369
+ return o(), l("header", Wt, [
1370
+ s("div", Kt, [
1371
+ m(" Space for a breadcrumb trail "),
1372
1372
  b(e.$slots, "breadcrumb"),
1373
- s("div", Wt, [
1374
- s("h1", { innerHTML: t.title }, null, 8, Kt),
1373
+ s("div", Gt, [
1374
+ s("h1", { innerHTML: t.title }, null, 8, Et),
1375
1375
  b(e.$slots, "default")
1376
1376
  ])
1377
1377
  ]),
1378
- t.image ? (o(), l("picture", Et, [
1379
- h(" Actual image only loaded on desktops "),
1378
+ t.image ? (o(), l("picture", Rt, [
1379
+ m(" Actual image only loaded on desktops "),
1380
1380
  s("source", {
1381
1381
  srcset: t.image,
1382
1382
  media: "(min-width: 62em)"
1383
- }, null, 8, Rt),
1384
- h(" Placeholder image "),
1385
- Zt
1386
- ])) : h("v-if", !0)
1383
+ }, null, 8, Zt),
1384
+ m(" Placeholder image "),
1385
+ Qt
1386
+ ])) : m("v-if", !0)
1387
1387
  ]);
1388
1388
  }
1389
- const Ti = /* @__PURE__ */ g(Ot, [["render", Qt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Header/Header.vue"]]);
1390
- function Yt(e) {
1389
+ const qi = /* @__PURE__ */ g(Ot, [["render", Yt], ["__file", "/Users/james/workspace/work/component-library/src/components/Header/Header.vue"]]);
1390
+ function Jt(e) {
1391
1391
  var n;
1392
1392
  const t = e.querySelector(".testimonial__images"), c = t.querySelectorAll("img").length;
1393
1393
  if (c == 1)
1394
1394
  return !1;
1395
1395
  e.classList.add("testimonial--multi");
1396
- const m = function(a) {
1396
+ const h = function(a) {
1397
1397
  const r = e.querySelector(".btn-next"), i = e.querySelector(".btn-prev");
1398
1398
  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);
1399
1399
  };
1400
1400
  t.addEventListener("scroll", function(a) {
1401
1401
  clearTimeout(n), n = setTimeout(function() {
1402
- let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, S = t.scrollTop, L = Math.round(f / r * c) + 1;
1403
- f == 0 && S != 0 && (L = Math.round(S / i * c) + 1), e.setAttribute("data-show", L), m(L);
1402
+ let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, S = t.scrollTop, q = Math.round(f / r * c) + 1;
1403
+ f == 0 && S != 0 && (q = Math.round(S / i * c) + 1), e.setAttribute("data-show", q), h(q);
1404
1404
  }, 300);
1405
1405
  }, !1), e.addEventListener("click", function(a) {
1406
1406
  for (var r = a.target; r && r != this; r = r.parentNode)
1407
1407
  if (r.matches("[data-go]")) {
1408
- let i = parseInt(r.getAttribute("data-go")), f = 0, S = 0, L = t.scrollWidth, C = t.scrollHeight;
1409
- L > C ? S = Math.floor(L * ((i - 1) / c)) : f = Math.floor(C * ((i - 1) / c)), t.scroll({
1408
+ let i = parseInt(r.getAttribute("data-go")), f = 0, S = 0, q = t.scrollWidth, M = t.scrollHeight;
1409
+ q > M ? S = Math.floor(q * ((i - 1) / c)) : f = Math.floor(M * ((i - 1) / c)), t.scroll({
1410
1410
  top: f,
1411
1411
  left: S,
1412
1412
  behavior: "smooth"
@@ -1429,7 +1429,7 @@ const Xt = {
1429
1429
  }
1430
1430
  },
1431
1431
  mounted() {
1432
- Yt(this.$refs.wrapper);
1432
+ Jt(this.$refs.wrapper);
1433
1433
  }
1434
1434
  }, es = {
1435
1435
  class: "container testimonial mb-5",
@@ -1446,7 +1446,7 @@ const Xt = {
1446
1446
  class: "btn-next"
1447
1447
  }, "Next")
1448
1448
  ], -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);
1449
- function ms(e, n, t, c, m, a) {
1449
+ function hs(e, n, t, c, h, a) {
1450
1450
  return o(), l("div", es, [
1451
1451
  s("div", {
1452
1452
  class: v("bg-" + t.background)
@@ -1454,7 +1454,7 @@ function ms(e, n, t, c, m, a) {
1454
1454
  s("div", ts, [
1455
1455
  s("div", ss, [
1456
1456
  s("div", as, [
1457
- (o(!0), l(A, null, x(t.items, (r, i) => (o(), l("img", {
1457
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("img", {
1458
1458
  key: i,
1459
1459
  src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1460
1460
  alt: "",
@@ -1466,7 +1466,7 @@ function ms(e, n, t, c, m, a) {
1466
1466
  s("div", rs, [
1467
1467
  os,
1468
1468
  s("div", ls, [
1469
- (o(!0), l(A, null, x(t.items, (r, i) => (o(), l("blockquote", {
1469
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("blockquote", {
1470
1470
  key: i,
1471
1471
  class: v(r.class)
1472
1472
  }, [
@@ -1487,10 +1487,10 @@ function ms(e, n, t, c, m, a) {
1487
1487
  ], 2)
1488
1488
  ], 512);
1489
1489
  }
1490
- const Ci = /* @__PURE__ */ g(Xt, [["render", ms], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Testimonial/Testimonial.vue"]]);
1491
- const hs = {
1490
+ const Li = /* @__PURE__ */ g(Xt, [["render", hs], ["__file", "/Users/james/workspace/work/component-library/src/components/Testimonial/Testimonial.vue"]]);
1491
+ const ms = {
1492
1492
  components: {
1493
- Input: I
1493
+ Input: P
1494
1494
  },
1495
1495
  name: "PropertySearchbar",
1496
1496
  props: {
@@ -1640,18 +1640,18 @@ const hs = {
1640
1640
  }, 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 = {
1641
1641
  class: "row",
1642
1642
  "data-input-range": ""
1643
- }, ks = { class: "col-12 col-md" }, Ss = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), $s = {
1643
+ }, ks = { class: "col-12 col-md" }, Ss = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
1644
1644
  class: "row",
1645
1645
  "data-input-range": ""
1646
- }, As = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1646
+ }, $s = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1647
1647
  /* @__PURE__ */ s("button", {
1648
1648
  class: "btn w-100 me-0",
1649
1649
  type: "submit",
1650
1650
  value: "submit"
1651
1651
  }, "Search")
1652
1652
  ], -1);
1653
- function Ls(e, n, t, c, m, a) {
1654
- const r = M("Input");
1653
+ function qs(e, n, t, c, h, a) {
1654
+ const r = C("Input");
1655
1655
  return o(), l("div", _s, [
1656
1656
  b(e.$slots, "default"),
1657
1657
  s("div", ps, [
@@ -1661,7 +1661,7 @@ function Ls(e, n, t, c, m, a) {
1661
1661
  method: t.formmethod
1662
1662
  }, [
1663
1663
  s("fieldset", bs, [
1664
- $(r, {
1664
+ A(r, {
1665
1665
  inputClass: "input--locations",
1666
1666
  modelValue: a.locationSet,
1667
1667
  "onUpdate:modelValue": n[0] || (n[0] = (i) => a.locationSet = i),
@@ -1673,7 +1673,7 @@ function Ls(e, n, t, c, m, a) {
1673
1673
  onKeyupEvent: n[1] || (n[1] = (i) => a.locationKeyup(...arguments)),
1674
1674
  ref: "search"
1675
1675
  }, null, 8, ["modelValue", "options"]),
1676
- $(r, {
1676
+ A(r, {
1677
1677
  class: "select--miles",
1678
1678
  label: "Miles",
1679
1679
  id: "miles",
@@ -1684,7 +1684,7 @@ function Ls(e, n, t, c, m, a) {
1684
1684
  s("fieldset", vs, [
1685
1685
  gs,
1686
1686
  s("div", ws, [
1687
- $(r, {
1687
+ A(r, {
1688
1688
  class: "col-6",
1689
1689
  label: "Minimum price",
1690
1690
  id: "price-min",
@@ -1692,7 +1692,7 @@ function Ls(e, n, t, c, m, a) {
1692
1692
  type: "select",
1693
1693
  options: t.pricemin
1694
1694
  }, null, 8, ["options"]),
1695
- $(r, {
1695
+ A(r, {
1696
1696
  class: "col-6",
1697
1697
  label: "Maximum price",
1698
1698
  id: "price-max",
@@ -1704,8 +1704,8 @@ function Ls(e, n, t, c, m, a) {
1704
1704
  ]),
1705
1705
  s("fieldset", ks, [
1706
1706
  Ss,
1707
- s("div", $s, [
1708
- $(r, {
1707
+ s("div", As, [
1708
+ A(r, {
1709
1709
  class: "col-6",
1710
1710
  label: "Minimum beds",
1711
1711
  id: "beds-min",
@@ -1713,7 +1713,7 @@ function Ls(e, n, t, c, m, a) {
1713
1713
  type: "select",
1714
1714
  options: t.bedsmin
1715
1715
  }, null, 8, ["options"]),
1716
- $(r, {
1716
+ A(r, {
1717
1717
  class: "col-6",
1718
1718
  label: "Maximum beds",
1719
1719
  id: "beds-max",
@@ -1723,8 +1723,8 @@ function Ls(e, n, t, c, m, a) {
1723
1723
  }, null, 8, ["options"])
1724
1724
  ])
1725
1725
  ]),
1726
- s("fieldset", As, [
1727
- $(r, {
1726
+ s("fieldset", $s, [
1727
+ A(r, {
1728
1728
  label: "Property type",
1729
1729
  id: "property-type",
1730
1730
  type: "select",
@@ -1737,7 +1737,7 @@ function Ls(e, n, t, c, m, a) {
1737
1737
  b(e.$slots, "after")
1738
1738
  ], 512);
1739
1739
  }
1740
- 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) => {
1740
+ const Ti = /* @__PURE__ */ g(ms, [["render", qs], ["__file", "/Users/james/workspace/work/component-library/src/components/PropertySearchbar/PropertySearchbar.vue"]]), Ls = (e) => {
1741
1741
  Array.from(e.querySelectorAll("details")).forEach((n, t) => {
1742
1742
  n.addEventListener("mouseenter", function(c) {
1743
1743
  window.matchMedia("(min-width: 62em)").matches && n.setAttribute("open", "true");
@@ -1751,7 +1751,7 @@ const Mi = /* @__PURE__ */ g(hs, [["render", Ls], ["__file", "C:/Users/James.Lam
1751
1751
  };
1752
1752
  const Ts = {
1753
1753
  components: {
1754
- Input: I,
1754
+ Input: P,
1755
1755
  Logo: ue,
1756
1756
  Icon: re
1757
1757
  },
@@ -1823,15 +1823,15 @@ const Ts = {
1823
1823
  },
1824
1824
  mounted() {
1825
1825
  this.$nextTick(function() {
1826
- qs(this.$refs.wrapper);
1826
+ Ls(this.$refs.wrapper);
1827
1827
  });
1828
1828
  }
1829
- }, Cs = /* @__PURE__ */ s("input", {
1829
+ }, Ms = /* @__PURE__ */ s("input", {
1830
1830
  type: "checkbox",
1831
1831
  name: "showMenu",
1832
1832
  id: "showMenu",
1833
1833
  class: "d-none"
1834
- }, null, -1), Ms = /* @__PURE__ */ s("input", {
1834
+ }, null, -1), Cs = /* @__PURE__ */ s("input", {
1835
1835
  type: "checkbox",
1836
1836
  name: "showSearch",
1837
1837
  id: "showSearch",
@@ -1841,30 +1841,30 @@ const Ts = {
1841
1841
  name: "showAccount",
1842
1842
  id: "showAccount",
1843
1843
  class: "d-none"
1844
- }, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, Ps = {
1844
+ }, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, js = {
1845
1845
  key: 0,
1846
1846
  class: "col mw-md-fit-content nav__logo"
1847
- }, Is = {
1847
+ }, Ps = {
1848
1848
  key: 1,
1849
1849
  class: "col mw-md-fit-content nav__logo"
1850
- }, Us = {
1850
+ }, Is = {
1851
1851
  href: "/",
1852
1852
  class: "text-decoration-none mb-0"
1853
- }, Fs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1853
+ }, Us = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1854
1854
  /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1855
- ], -1), zs = { class: "nav__inner" }, Vs = { class: "container" }, Gs = { class: "row" }, Os = {
1855
+ ], -1), Fs = { class: "nav__inner" }, zs = { class: "container" }, Vs = { class: "row" }, Os = {
1856
1856
  key: 0,
1857
1857
  class: "col mw-md-fit-content nav__logo"
1858
- }, js = {
1858
+ }, Ws = {
1859
1859
  key: 1,
1860
1860
  class: "col mw-md-fit-content nav__logo"
1861
- }, Js = {
1861
+ }, Ks = {
1862
1862
  href: "/",
1863
1863
  class: "text-decoration-none mb-0"
1864
- }, Ws = {
1864
+ }, Gs = {
1865
1865
  key: 2,
1866
1866
  class: "col mw-fit-content nav__search-btn flex-row align-items-center"
1867
- }, Ks = /* @__PURE__ */ s("label", { for: "showSearch" }, [
1867
+ }, Es = /* @__PURE__ */ s("label", { for: "showSearch" }, [
1868
1868
  /* @__PURE__ */ s("svg", {
1869
1869
  class: "icon",
1870
1870
  viewBox: "0 0 32 32"
@@ -1885,14 +1885,14 @@ const Ts = {
1885
1885
  class: "icon__outline"
1886
1886
  })
1887
1887
  ])
1888
- ], -1), Es = [
1889
- Ks
1890
- ], Rs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1888
+ ], -1), Rs = [
1889
+ Es
1890
+ ], Zs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1891
1891
  /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1892
- ], -1), Zs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Qs = {
1892
+ ], -1), Qs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ys = {
1893
1893
  key: 3,
1894
1894
  class: "col nav__account-btn flex-row align-items-center"
1895
- }, Ys = /* @__PURE__ */ s("label", { for: "showAccount" }, [
1895
+ }, Js = /* @__PURE__ */ s("label", { for: "showAccount" }, [
1896
1896
  /* @__PURE__ */ s("svg", {
1897
1897
  class: "icon",
1898
1898
  viewBox: "0 0 28 28"
@@ -1908,7 +1908,7 @@ const Ts = {
1908
1908
  ]),
1909
1909
  /* @__PURE__ */ s("span", null, "My account")
1910
1910
  ], -1), Xs = [
1911
- Ys
1911
+ Js
1912
1912
  ], ea = {
1913
1913
  key: 4,
1914
1914
  class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
@@ -1930,27 +1930,27 @@ const Ts = {
1930
1930
  }, fa = {
1931
1931
  href: "/",
1932
1932
  class: "text-decoration-none mb-0"
1933
- }, ma = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1933
+ }, ha = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1934
1934
  /* @__PURE__ */ s("label", { for: "showAccount" }, "Account")
1935
- ], -1), ha = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
1936
- function pa(e, n, t, c, m, a) {
1937
- const r = M("Logo");
1935
+ ], -1), ma = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
1936
+ function pa(e, n, t, c, h, a) {
1937
+ const r = C("Logo");
1938
1938
  return o(), l("nav", {
1939
1939
  class: v(`nav${a.hasSecondarySlot ? " has-secondary" : ""}`),
1940
1940
  ref: "wrapper"
1941
1941
  }, [
1942
- Cs,
1943
1942
  Ms,
1943
+ Cs,
1944
1944
  Hs,
1945
- h(" Mobile bar "),
1945
+ m(" Mobile bar "),
1946
1946
  s("div", Ns, [
1947
1947
  s("div", Ds, [
1948
1948
  s("div", Bs, [
1949
- a.hasLogoSlot ? (o(), l("div", Ps, [
1949
+ a.hasLogoSlot ? (o(), l("div", js, [
1950
1950
  b(e.$slots, "logo")
1951
- ])) : (o(), l("div", Is, [
1952
- s("a", Us, [
1953
- $(r, {
1951
+ ])) : (o(), l("div", Ps, [
1952
+ s("a", Is, [
1953
+ A(r, {
1954
1954
  id: t.logo,
1955
1955
  path: t.logopath,
1956
1956
  desc: t.logotext,
@@ -1958,18 +1958,18 @@ function pa(e, n, t, c, m, a) {
1958
1958
  }, null, 8, ["id", "path", "desc"])
1959
1959
  ])
1960
1960
  ])),
1961
- Fs
1961
+ Us
1962
1962
  ])
1963
1963
  ])
1964
1964
  ]),
1965
- s("div", zs, [
1966
- s("div", Vs, [
1967
- s("div", Gs, [
1965
+ s("div", Fs, [
1966
+ s("div", zs, [
1967
+ s("div", Vs, [
1968
1968
  a.hasLogoSlot ? (o(), l("div", Os, [
1969
1969
  b(e.$slots, "logo")
1970
- ])) : (o(), l("div", js, [
1971
- s("a", Js, [
1972
- $(r, {
1970
+ ])) : (o(), l("div", Ws, [
1971
+ s("a", Ks, [
1972
+ A(r, {
1973
1973
  id: t.logo,
1974
1974
  path: t.logopath,
1975
1975
  desc: t.logotext,
@@ -1977,34 +1977,34 @@ function pa(e, n, t, c, m, a) {
1977
1977
  }, null, 8, ["id", "path", "desc"])
1978
1978
  ])
1979
1979
  ])),
1980
- a.hasSearchSlot ? (o(), l("div", Ws, Es)) : h("v-if", !0),
1981
- Rs,
1982
- h(" Main menu "),
1983
- s("div", Zs, [
1980
+ a.hasSearchSlot ? (o(), l("div", Gs, Rs)) : m("v-if", !0),
1981
+ Zs,
1982
+ m(" Main menu "),
1983
+ s("div", Qs, [
1984
1984
  b(e.$slots, "default")
1985
1985
  ]),
1986
- a.hasAccountSlot ? (o(), l("div", Qs, Xs)) : h("v-if", !0),
1986
+ a.hasAccountSlot ? (o(), l("div", Ys, Xs)) : m("v-if", !0),
1987
1987
  t.btnlink ? (o(), l("div", ea, [
1988
1988
  s("a", {
1989
1989
  href: t.btnlink,
1990
1990
  class: "btn me-0",
1991
1991
  innerHTML: t.btntext
1992
1992
  }, null, 8, ta)
1993
- ])) : h("v-if", !0)
1993
+ ])) : m("v-if", !0)
1994
1994
  ])
1995
1995
  ]),
1996
1996
  a.hasSecondarySlot ? (o(), l("div", sa, [
1997
1997
  s("div", aa, [
1998
1998
  b(e.$slots, "secondary")
1999
1999
  ])
2000
- ])) : h("v-if", !0),
2000
+ ])) : m("v-if", !0),
2001
2001
  a.hasSearchSlot ? (o(), l("div", ia, [
2002
2002
  s("div", na, [
2003
2003
  s("div", ra, [
2004
2004
  b(e.$slots, "search")
2005
2005
  ])
2006
2006
  ])
2007
- ])) : h("v-if", !0)
2007
+ ])) : m("v-if", !0)
2008
2008
  ]),
2009
2009
  a.hasAccountSlot ? (o(), l("div", oa, [
2010
2010
  s("div", la, [
@@ -2013,7 +2013,7 @@ function pa(e, n, t, c, m, a) {
2013
2013
  b(e.$slots, "logo")
2014
2014
  ])) : (o(), l("div", ua, [
2015
2015
  s("a", fa, [
2016
- $(r, {
2016
+ A(r, {
2017
2017
  id: t.logo,
2018
2018
  path: t.logopath,
2019
2019
  desc: t.logotext,
@@ -2021,17 +2021,17 @@ function pa(e, n, t, c, m, a) {
2021
2021
  }, null, 8, ["id", "path", "desc"])
2022
2022
  ])
2023
2023
  ])),
2024
- ma
2024
+ ha
2025
2025
  ])
2026
2026
  ]),
2027
- s("div", ha, [
2027
+ s("div", ma, [
2028
2028
  b(e.$slots, "account")
2029
2029
  ])
2030
- ])) : h("v-if", !0),
2030
+ ])) : m("v-if", !0),
2031
2031
  _a
2032
2032
  ], 2);
2033
2033
  }
2034
- 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) => {
2034
+ const Mi = /* @__PURE__ */ g(Ts, [["render", pa], ["__file", "/Users/james/workspace/work/component-library/src/components/Nav/Nav.vue"]]), ya = (e) => {
2035
2035
  const n = new IntersectionObserver(
2036
2036
  function([c]) {
2037
2037
  c.target.classList.toggle("in-view", c.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
@@ -2065,20 +2065,20 @@ const ba = {
2065
2065
  }, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, Sa = {
2066
2066
  for: "showDrawer",
2067
2067
  class: "btn btn-secondary me-0"
2068
- }, $a = {
2068
+ }, Aa = {
2069
2069
  class: "drawer",
2070
2070
  id: "drawer",
2071
2071
  ref: "drawer"
2072
- }, Aa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
2072
+ }, $a = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
2073
2073
  /* @__PURE__ */ s("label", {
2074
2074
  for: "showDrawer",
2075
2075
  class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
2076
2076
  }, [
2077
2077
  /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
2078
- /* @__PURE__ */ P("\u2715")
2078
+ /* @__PURE__ */ j("\u2715")
2079
2079
  ])
2080
2080
  ], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
2081
- function La(e, n, t, c, m, a) {
2081
+ function qa(e, n, t, c, h, a) {
2082
2082
  return o(), l("div", va, [
2083
2083
  ga,
2084
2084
  s("div", wa, [
@@ -2086,15 +2086,15 @@ function La(e, n, t, c, m, a) {
2086
2086
  s("label", Sa, w(t.label), 1)
2087
2087
  ])
2088
2088
  ]),
2089
- s("div", $a, [
2090
- Aa,
2089
+ s("div", Aa, [
2090
+ $a,
2091
2091
  b(e.$slots, "default")
2092
2092
  ], 512),
2093
2093
  xa
2094
2094
  ], 512);
2095
2095
  }
2096
- 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) => {
2097
- const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], c = n[n.length - 1], m = e.getAttribute("id"), a = function() {
2096
+ const Ci = /* @__PURE__ */ g(ba, [["render", qa], ["__file", "/Users/james/workspace/work/component-library/src/components/Drawer/Drawer.vue"]]), La = (e) => {
2097
+ const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], c = n[n.length - 1], h = e.getAttribute("id"), a = function() {
2098
2098
  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();
2099
2099
  };
2100
2100
  e.addEventListener("keydown", function(i) {
@@ -2115,7 +2115,7 @@ const Ni = /* @__PURE__ */ g(ba, [["render", La], ["__file", "C:/Users/James.Lam
2115
2115
  }
2116
2116
  });
2117
2117
  function r() {
2118
- if (location.hash === "#" + m) {
2118
+ if (location.hash === "#" + h) {
2119
2119
  console.log("Modal is now open");
2120
2120
  const i = document.querySelector(".modal:target .modal__inner > .youtube-embed:first-child:last-child a");
2121
2121
  console.log(i), i && i.click();
@@ -2138,22 +2138,19 @@ const Ta = {
2138
2138
  },
2139
2139
  mounted() {
2140
2140
  this.$nextTick(function() {
2141
- qa(this.$refs.modal);
2141
+ La(this.$refs.modal);
2142
2142
  });
2143
2143
  }
2144
- }, Ca = ["id"], Ma = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
2144
+ }, Ma = ["id"], Ca = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
2145
2145
  Ha
2146
- ], Da = { class: "modal__outer" }, Ba = ["href"], Pa = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Ia = /* @__PURE__ */ P("\u2715"), Ua = [
2147
- Pa,
2148
- Ia
2149
- ], Fa = { class: "modal__inner" }, za = /* @__PURE__ */ s("button", {
2146
+ ], Da = { class: "modal__outer" }, Ba = ["href"], ja = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Pa = { class: "modal__inner" }, Ia = /* @__PURE__ */ s("button", {
2150
2147
  class: "modal__dock--left btn btn-prev",
2151
2148
  tabindex: "-1"
2152
- }, "Left", -1), Va = /* @__PURE__ */ s("button", {
2149
+ }, "Left", -1), Ua = /* @__PURE__ */ s("button", {
2153
2150
  class: "modal__dock--right btn btn-next",
2154
2151
  tabindex: "-1"
2155
2152
  }, "Right", -1);
2156
- function Ga(e, n, t, c, m, a) {
2153
+ function Fa(e, n, t, c, h, a) {
2157
2154
  return o(), l("div", {
2158
2155
  class: "modal",
2159
2156
  id: t.id,
@@ -2164,22 +2161,25 @@ function Ga(e, n, t, c, m, a) {
2164
2161
  s("a", {
2165
2162
  href: `#${t.returnid ? t.returnid : ""}`,
2166
2163
  tabindex: "-1"
2167
- }, Na, 8, Ma),
2164
+ }, Na, 8, Ca),
2168
2165
  s("div", Da, [
2169
2166
  s("a", {
2170
2167
  href: `#${t.returnid ? t.returnid : ""}`,
2171
2168
  class: "btn btn-tertiary py-1 px-2"
2172
- }, Ua, 8, Ba),
2173
- s("div", Fa, [
2169
+ }, [
2170
+ ja,
2171
+ j("\u2715")
2172
+ ], 8, Ba),
2173
+ s("div", Pa, [
2174
2174
  b(e.$slots, "default")
2175
2175
  ])
2176
2176
  ]),
2177
- za,
2178
- Va
2179
- ], 8, Ca);
2177
+ Ia,
2178
+ Ua
2179
+ ], 8, Ma);
2180
2180
  }
2181
- const Di = /* @__PURE__ */ g(Ta, [["render", Ga], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Modal/Modal.vue"]]);
2182
- const Oa = {
2181
+ const Hi = /* @__PURE__ */ g(Ta, [["render", Fa], ["__file", "/Users/james/workspace/work/component-library/src/components/Modal/Modal.vue"]]);
2182
+ const za = {
2183
2183
  name: "Stepper",
2184
2184
  props: {
2185
2185
  label: {
@@ -2192,27 +2192,27 @@ const Oa = {
2192
2192
  default: "Complete"
2193
2193
  }
2194
2194
  }
2195
- }, ja = { class: "container" }, Ja = ["aria-label"], Wa = {
2195
+ }, Va = { class: "container" }, Oa = ["aria-label"], Wa = {
2196
2196
  key: 0,
2197
2197
  class: "h6 stepper__start"
2198
- }, Ka = { class: "list-unstyled" }, Ea = { class: "h6 stepper__end" };
2199
- function Ra(e, n, t, c, m, a) {
2200
- return o(), l("div", ja, [
2198
+ }, Ka = { class: "list-unstyled" }, Ga = { class: "h6 stepper__end" };
2199
+ function Ea(e, n, t, c, h, a) {
2200
+ return o(), l("div", Va, [
2201
2201
  s("nav", {
2202
2202
  class: "stepper",
2203
2203
  "aria-label": t.label ? t.label : "Progress"
2204
2204
  }, [
2205
- t.label ? (o(), l("span", Wa, w(t.label), 1)) : h("v-if", !0),
2205
+ t.label ? (o(), l("span", Wa, w(t.label), 1)) : m("v-if", !0),
2206
2206
  s("ol", Ka, [
2207
2207
  b(e.$slots, "default", {}, () => [
2208
- h(" Use for titles etc ")
2208
+ m(" Use for titles etc ")
2209
2209
  ])
2210
2210
  ]),
2211
- s("span", Ea, w(t.endlabel), 1)
2212
- ], 8, Ja)
2211
+ s("span", Ga, w(t.endlabel), 1)
2212
+ ], 8, Oa)
2213
2213
  ]);
2214
2214
  }
2215
- const Bi = /* @__PURE__ */ g(Oa, [["render", Ra], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Stepper.vue"]]), Za = {
2215
+ const Ni = /* @__PURE__ */ g(za, [["render", Ea], ["__file", "/Users/james/workspace/work/component-library/src/components/Stepper/Stepper.vue"]]), Ra = {
2216
2216
  name: "Stepper",
2217
2217
  props: {
2218
2218
  url: {
@@ -2228,11 +2228,11 @@ const Bi = /* @__PURE__ */ g(Oa, [["render", Ra], ["__file", "C:/Users/James.Lam
2228
2228
  required: !1
2229
2229
  }
2230
2230
  }
2231
- }, Qa = ["href", "aria-current"], Ya = {
2231
+ }, Za = ["href", "aria-current"], Qa = {
2232
2232
  key: 0,
2233
2233
  class: "visually-hidden"
2234
2234
  };
2235
- function Xa(e, n, t, c, m, a) {
2235
+ function Ya(e, n, t, c, h, a) {
2236
2236
  return o(), l("li", null, [
2237
2237
  s("a", {
2238
2238
  href: t.url,
@@ -2242,12 +2242,12 @@ function Xa(e, n, t, c, m, a) {
2242
2242
  s("span", null, [
2243
2243
  b(e.$slots, "default")
2244
2244
  ]),
2245
- t.status ? (o(), l("em", Ya, " - status: " + w(t.status), 1)) : h("v-if", !0)
2246
- ], 10, Qa)
2245
+ t.status ? (o(), l("em", Qa, " - status: " + w(t.status), 1)) : m("v-if", !0)
2246
+ ], 10, Za)
2247
2247
  ]);
2248
2248
  }
2249
- const Pi = /* @__PURE__ */ g(Za, [["render", Xa], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Step.vue"]]);
2250
- const ei = {
2249
+ const Di = /* @__PURE__ */ g(Ra, [["render", Ya], ["__file", "/Users/james/workspace/work/component-library/src/components/Stepper/Step.vue"]]);
2250
+ const Ja = {
2251
2251
  name: "Tabs",
2252
2252
  data() {
2253
2253
  return {
@@ -2261,10 +2261,10 @@ const ei = {
2261
2261
  let n = 1;
2262
2262
  for (const [t, c] of Object.entries(this.$slots.default()))
2263
2263
  if (c.props && c.props.title) {
2264
- let m = c.props.title, a = {
2264
+ let h = c.props.title, a = {
2265
2265
  name: this.tabsID,
2266
2266
  id: this.tabsID + "_tab" + n++,
2267
- tabTitle: m
2267
+ tabTitle: h
2268
2268
  };
2269
2269
  e.push(a);
2270
2270
  }
@@ -2279,13 +2279,13 @@ const ei = {
2279
2279
  c.props && c.props.title && (n == e && (console.log(c), c.type.data().show = !0), n++);
2280
2280
  }
2281
2281
  }
2282
- }, ti = {
2282
+ }, Xa = {
2283
2283
  class: "container tabs__container",
2284
2284
  ref: "wrapper"
2285
- }, si = ["data-key", "name", "id", "checked"], ai = { class: "tabs__links" }, ii = ["for", "onClick"], ni = { class: "tabs" };
2286
- function ri(e, n, t, c, m, a) {
2287
- return o(), l("div", ti, [
2288
- (o(!0), l(A, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
2285
+ }, ei = ["data-key", "name", "id", "checked"], ti = { class: "tabs__links" }, si = ["for", "onClick"], ai = { class: "tabs" };
2286
+ function ii(e, n, t, c, h, a) {
2287
+ return o(), l("div", Xa, [
2288
+ (o(!0), l($, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
2289
2289
  type: "radio",
2290
2290
  class: "tab__input",
2291
2291
  key: i,
@@ -2293,21 +2293,21 @@ function ri(e, n, t, c, m, a) {
2293
2293
  name: r.name,
2294
2294
  id: r.id,
2295
2295
  checked: i == 0
2296
- }, null, 8, si))), 128)),
2297
- s("div", ai, [
2298
- (o(!0), l(A, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
2296
+ }, null, 8, ei))), 128)),
2297
+ s("div", ti, [
2298
+ (o(!0), l($, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
2299
2299
  key: i,
2300
2300
  for: r.id,
2301
2301
  class: "link",
2302
2302
  onClick: (f) => a.openTab(i)
2303
- }, w(r.tabTitle), 9, ii))), 128))
2303
+ }, w(r.tabTitle), 9, si))), 128))
2304
2304
  ]),
2305
- s("div", ni, [
2305
+ s("div", ai, [
2306
2306
  b(e.$slots, "default")
2307
2307
  ])
2308
2308
  ], 512);
2309
2309
  }
2310
- const Ii = /* @__PURE__ */ g(ei, [["render", ri], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tabs.vue"]]), oi = {
2310
+ const Bi = /* @__PURE__ */ g(Ja, [["render", ii], ["__file", "/Users/james/workspace/work/component-library/src/components/Tabs/Tabs.vue"]]), ni = {
2311
2311
  name: "Tab",
2312
2312
  props: {
2313
2313
  title: {
@@ -2329,17 +2329,17 @@ const Ii = /* @__PURE__ */ g(ei, [["render", ri], ["__file", "C:/Users/James.Lam
2329
2329
  console.log(e);
2330
2330
  }
2331
2331
  }
2332
- }, li = {
2332
+ }, ri = {
2333
2333
  key: 0,
2334
2334
  class: "tab"
2335
2335
  };
2336
- function ci(e, n, t, c, m, a) {
2337
- return m.show ? (o(), l("div", li, [
2336
+ function oi(e, n, t, c, h, a) {
2337
+ return h.show ? (o(), l("div", ri, [
2338
2338
  b(e.$slots, "default")
2339
- ])) : h("v-if", !0);
2339
+ ])) : m("v-if", !0);
2340
2340
  }
2341
- const Ui = /* @__PURE__ */ g(oi, [["render", ci], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tab.vue"]]);
2342
- function di(e) {
2341
+ const ji = /* @__PURE__ */ g(ni, [["render", oi], ["__file", "/Users/james/workspace/work/component-library/src/components/Tabs/Tab.vue"]]);
2342
+ function li(e) {
2343
2343
  if (e.addEventListener("click", function(t) {
2344
2344
  for (var c = t.target; c && c != this; c = c.parentNode)
2345
2345
  if (c.matches(".btn-close")) {
@@ -2364,7 +2364,7 @@ function di(e) {
2364
2364
  let n = document.querySelector(".alert__holder");
2365
2365
  e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && n.appendChild(e);
2366
2366
  }
2367
- const ui = {
2367
+ const ci = {
2368
2368
  name: "Alert",
2369
2369
  props: {
2370
2370
  dismissible: {
@@ -2383,16 +2383,16 @@ const ui = {
2383
2383
  }
2384
2384
  },
2385
2385
  mounted() {
2386
- di(this.$refs.wrapper);
2386
+ li(this.$refs.wrapper);
2387
2387
  }
2388
- }, fi = ["data-timeout"], mi = {
2388
+ }, di = ["data-timeout"], ui = {
2389
2389
  key: 0,
2390
2390
  type: "button",
2391
2391
  class: "btn-close",
2392
2392
  "data-bs-dismiss": "alert",
2393
2393
  "aria-label": "Close"
2394
2394
  };
2395
- function hi(e, n, t, c, m, a) {
2395
+ function fi(e, n, t, c, h, a) {
2396
2396
  return o(), l("div", {
2397
2397
  class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
2398
2398
  ref: "wrapper",
@@ -2403,18 +2403,18 @@ function hi(e, n, t, c, m, a) {
2403
2403
  class: v(`alert__inner bg-${t.colour}`),
2404
2404
  role: "alert"
2405
2405
  }, [
2406
- t.dismissible ? (o(), l("button", mi)) : h("v-if", !0),
2406
+ t.dismissible ? (o(), l("button", ui)) : m("v-if", !0),
2407
2407
  b(e.$slots, "default")
2408
2408
  ], 2)
2409
- ], 14, fi);
2409
+ ], 14, di);
2410
2410
  }
2411
- const Fi = /* @__PURE__ */ g(ui, [["render", hi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Alert/Alert.vue"]]);
2412
- let Z = E.props;
2413
- Z.fields.required = !1;
2414
- const _i = {
2411
+ const Pi = /* @__PURE__ */ g(ci, [["render", fi], ["__file", "/Users/james/workspace/work/component-library/src/components/Alert/Alert.vue"]]);
2412
+ let Q = R.props;
2413
+ Q.fields.required = !1;
2414
+ const hi = {
2415
2415
  components: {
2416
- Table: E,
2417
- Input: I
2416
+ Table: R,
2417
+ Input: P
2418
2418
  },
2419
2419
  data() {
2420
2420
  return {
@@ -2427,8 +2427,8 @@ const _i = {
2427
2427
  const n = new FormData(e.target);
2428
2428
  let t = new Date();
2429
2429
  const c = t.getFullYear();
2430
- let m = t.getMonth() + 1, a = t.getDate();
2431
- a < 10 && (a = "0" + a), m < 10 && (m = "0" + m), t = a + "/" + m + "/" + c, this.itemsData.unshift({
2430
+ let h = t.getMonth() + 1, a = t.getDate();
2431
+ a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" + c, this.itemsData.unshift({
2432
2432
  date_added: t,
2433
2433
  user: n.get("user"),
2434
2434
  note: n.get("addNote")
@@ -2441,7 +2441,7 @@ const _i = {
2441
2441
  type: String,
2442
2442
  required: !0
2443
2443
  },
2444
- ...Z,
2444
+ ...Q,
2445
2445
  title: {
2446
2446
  type: String,
2447
2447
  required: !1
@@ -2456,18 +2456,18 @@ const _i = {
2456
2456
  required: !1
2457
2457
  }
2458
2458
  }
2459
- }, 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);
2460
- function wi(e, n, t, c, m, a) {
2461
- const r = M("Table"), i = M("Input");
2462
- return o(), l("div", pi, [
2459
+ }, mi = { class: "container note-feed mb-2" }, _i = ["innerHTML"], pi = ["action", "method"], yi = ["value"], bi = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2460
+ function vi(e, n, t, c, h, a) {
2461
+ const r = C("Table"), i = C("Input");
2462
+ return o(), l("div", mi, [
2463
2463
  t.title ? (o(), l("span", {
2464
2464
  key: 0,
2465
2465
  class: "h3",
2466
2466
  innerHTML: t.title
2467
- }, null, 8, yi)) : h("v-if", !0),
2468
- $(r, T({
2467
+ }, null, 8, _i)) : m("v-if", !0),
2468
+ A(r, T({
2469
2469
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2470
- items: m.itemsData
2470
+ items: h.itemsData
2471
2471
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2472
2472
  s("form", {
2473
2473
  action: t.action,
@@ -2478,41 +2478,41 @@ function wi(e, n, t, c, m, a) {
2478
2478
  type: "hidden",
2479
2479
  value: t.user,
2480
2480
  name: "user"
2481
- }, null, 8, vi),
2482
- $(i, {
2481
+ }, null, 8, yi),
2482
+ A(i, {
2483
2483
  id: "addNote",
2484
2484
  type: "textarea",
2485
2485
  label: "Add note",
2486
2486
  required: "",
2487
2487
  class: "mw-100"
2488
2488
  }),
2489
- gi
2490
- ], 40, bi)
2489
+ bi
2490
+ ], 40, pi)
2491
2491
  ]);
2492
2492
  }
2493
- const zi = /* @__PURE__ */ g(_i, [["render", wi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/NoteFeed/NoteFeed.vue"]]);
2493
+ const Ii = /* @__PURE__ */ g(hi, [["render", vi], ["__file", "/Users/james/workspace/work/component-library/src/components/NoteFeed/NoteFeed.vue"]]);
2494
2494
  export {
2495
- Ai as Accordion,
2496
- xi as AccordionItem,
2497
- Fi as Alert,
2498
- Li as Banner,
2499
- R as Card,
2500
- Mt as CardDeck,
2501
- qi as Carousel,
2502
- Ni as Drawer,
2503
- $i as FileUploads,
2504
- Ti as Header,
2495
+ Si as Accordion,
2496
+ Ai as AccordionItem,
2497
+ Pi as Alert,
2498
+ $i as Banner,
2499
+ Z as Card,
2500
+ Ct as CardDeck,
2501
+ xi as Carousel,
2502
+ Ci as Drawer,
2503
+ ki as FileUploads,
2504
+ qi as Header,
2505
2505
  re as Icon,
2506
- I as Input,
2506
+ P as Input,
2507
2507
  ue as Logo,
2508
- Di as Modal,
2509
- Hi as Nav,
2510
- zi as NoteFeed,
2511
- Mi as PropertySearchbar,
2512
- Pi as Step,
2513
- Bi as Stepper,
2514
- Ui as Tab,
2515
- E as Table,
2516
- Ii as Tabs,
2517
- Ci as Testimonial
2508
+ Hi as Modal,
2509
+ Mi as Nav,
2510
+ Ii as NoteFeed,
2511
+ Ti as PropertySearchbar,
2512
+ Di as Step,
2513
+ Ni as Stepper,
2514
+ ji as Tab,
2515
+ R as Table,
2516
+ Bi as Tabs,
2517
+ Li as Testimonial
2518
2518
  };