@iamproperty/components 5.1.0-beta → 5.1.0-beta10

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 (114) hide show
  1. package/assets/css/components/accordion.global.css.map +1 -1
  2. package/assets/css/components/card.css +1 -1
  3. package/assets/css/components/card.css.map +1 -1
  4. package/assets/css/components/carousel.css +1 -1
  5. package/assets/css/components/carousel.css.map +1 -1
  6. package/assets/css/components/component.native.css +1 -1
  7. package/assets/css/components/component.native.css.map +1 -1
  8. package/assets/css/components/component.reset.css +1 -1
  9. package/assets/css/components/component.reset.css.map +1 -1
  10. package/assets/css/components/fileupload.css +1 -1
  11. package/assets/css/components/fileupload.css.map +1 -1
  12. package/assets/css/components/header.css +1 -1
  13. package/assets/css/components/header.css.map +1 -1
  14. package/assets/css/components/marketing.css +1 -0
  15. package/assets/css/components/marketing.css.map +1 -0
  16. package/assets/css/components/nav.css +1 -1
  17. package/assets/css/components/nav.css.map +1 -1
  18. package/assets/css/components/nav.global.css +1 -1
  19. package/assets/css/components/nav.global.css.map +1 -1
  20. package/assets/css/components/pagination.css +1 -1
  21. package/assets/css/components/pagination.css.map +1 -1
  22. package/assets/css/components/slider.css.map +1 -1
  23. package/assets/css/core.min.css +1 -1
  24. package/assets/css/core.min.css.map +1 -1
  25. package/assets/css/style.min.css +1 -1
  26. package/assets/css/style.min.css.map +1 -1
  27. package/assets/img/signin-bg.png +0 -0
  28. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  29. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  30. package/assets/js/components/address-lookup/address-lookup.component.js +17 -3
  31. package/assets/js/components/address-lookup/address-lookup.component.min.js +4 -4
  32. package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
  33. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  34. package/assets/js/components/card/card.component.js +2 -1
  35. package/assets/js/components/card/card.component.min.js +4 -3
  36. package/assets/js/components/card/card.component.min.js.map +1 -1
  37. package/assets/js/components/carousel/carousel.component.js +61 -0
  38. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  39. package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
  40. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  41. package/assets/js/components/header/header.component.js +6 -12
  42. package/assets/js/components/header/header.component.min.js +8 -14
  43. package/assets/js/components/header/header.component.min.js.map +1 -1
  44. package/assets/js/components/marketing/marketing.component.js +37 -0
  45. package/assets/js/components/nav/nav.component.js +4 -36
  46. package/assets/js/components/nav/nav.component.min.js +10 -13
  47. package/assets/js/components/nav/nav.component.min.js.map +1 -1
  48. package/assets/js/components/notification/notification.component.min.js +1 -1
  49. package/assets/js/components/pagination/pagination.component.min.js +2 -2
  50. package/assets/js/components/search/search.component.js +148 -0
  51. package/assets/js/components/search/search.component.min.js +14 -0
  52. package/assets/js/components/search/search.component.min.js.map +1 -0
  53. package/assets/js/components/table/table.component.min.js +5 -5
  54. package/assets/js/components/table/table.component.min.js.map +1 -1
  55. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  56. package/assets/js/dynamic.js +1 -1
  57. package/assets/js/dynamic.min.js +3 -3
  58. package/assets/js/dynamic.min.js.map +1 -1
  59. package/assets/js/modules/carousel.js +15 -23
  60. package/assets/js/modules/dynamicEvents.js +28 -13
  61. package/assets/js/modules/helpers.js +3 -0
  62. package/assets/js/modules/table.js +8 -6
  63. package/assets/js/scripts.bundle.js +20 -25
  64. package/assets/js/scripts.bundle.js.map +1 -1
  65. package/assets/js/scripts.bundle.min.js +2 -2
  66. package/assets/js/scripts.bundle.min.js.map +1 -1
  67. package/assets/sass/_corefiles.scss +1 -0
  68. package/assets/sass/_elements.scss +1 -1
  69. package/assets/sass/_functions/mixins.scss +16 -0
  70. package/assets/sass/_functions/utilities.scss +0 -17
  71. package/assets/sass/_functions/variables.scss +1 -0
  72. package/assets/sass/components/card.scss +23 -3
  73. package/assets/sass/components/carousel.scss +86 -159
  74. package/assets/sass/components/component.native.scss +86 -3
  75. package/assets/sass/components/fileupload.scss +1 -1
  76. package/assets/sass/components/header.scss +53 -55
  77. package/assets/sass/components/marketing.scss +64 -0
  78. package/assets/sass/components/nav.global.scss +2 -1
  79. package/assets/sass/components/nav.scss +7 -1
  80. package/assets/sass/components/pagination.scss +4 -0
  81. package/assets/sass/elements/admin-panel.scss +9 -7
  82. package/assets/sass/elements/badge.scss +29 -0
  83. package/assets/sass/elements/dialog.scss +4 -4
  84. package/assets/sass/elements/forms.scss +4 -4
  85. package/assets/sass/elements/links.scss +2 -1
  86. package/assets/sass/foundations/reboot.scss +12 -13
  87. package/assets/sass/foundations/root.scss +11 -3
  88. package/assets/sass/helpers/max-height.scss +78 -4
  89. package/assets/sass/templates/auth.scss +112 -0
  90. package/assets/ts/components/address-lookup/address-lookup.component.ts +23 -4
  91. package/assets/ts/components/card/card.component.ts +2 -1
  92. package/assets/ts/components/carousel/README.md +39 -0
  93. package/assets/ts/components/carousel/carousel.component.ts +75 -0
  94. package/assets/ts/components/header/header.component.ts +6 -12
  95. package/assets/ts/components/marketing/marketing.component.ts +49 -0
  96. package/assets/ts/components/nav/README.md +2 -13
  97. package/assets/ts/components/nav/nav.component.ts +4 -47
  98. package/assets/ts/components/search/search.component.ts +177 -0
  99. package/assets/ts/dynamic.ts +1 -1
  100. package/assets/ts/modules/carousel.ts +21 -33
  101. package/assets/ts/modules/dynamicEvents.ts +44 -24
  102. package/assets/ts/modules/helpers.ts +7 -1
  103. package/assets/ts/modules/table.ts +11 -14
  104. package/dist/components.es.js +744 -949
  105. package/dist/components.umd.js +107 -101
  106. package/dist/style.css +1 -1
  107. package/package.json +1 -1
  108. package/src/components/Carousel/Carousel.vue +18 -103
  109. package/src/components/Header/Header.vue +1 -3
  110. package/src/components/Marketing/Marketing.vue +39 -0
  111. package/src/components/Marketing/README.md +20 -0
  112. package/src/components/Nav/README.md +1 -12
  113. package/src/components/Search/Search.vue +25 -0
  114. package/src/components/Carousel/Carousel.spec.js +0 -45
@@ -1,8 +1,8 @@
1
- import { openBlock as u, createElementBlock as m, normalizeClass as k, createElementVNode as f, toDisplayString as $, createCommentVNode as w, Fragment as H, renderList as M, renderSlot as _, withDirectives as D, mergeProps as C, vModelDynamic as G, vModelText as ht, vModelSelect as pt, createTextVNode as bt, resolveComponent as I, createVNode as j, withModifiers as ft } from "vue";
2
- const v = (e, a) => {
1
+ import { openBlock as m, createElementBlock as h, normalizeClass as L, createElementVNode as f, toDisplayString as $, createCommentVNode as _, Fragment as D, renderList as R, renderSlot as v, withDirectives as P, mergeProps as C, vModelDynamic as W, vModelText as ht, vModelSelect as pt, createTextVNode as bt, resolveComponent as K, createVNode as M, withModifiers as ft } from "vue";
2
+ const y = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [o, s] of a)
5
- t[o] = s;
4
+ for (const [i, s] of a)
5
+ t[i] = s;
6
6
  return t;
7
7
  }, gt = {
8
8
  name: "Logo",
@@ -29,145 +29,145 @@ const v = (e, a) => {
29
29
  return "brand brand--" + this.id;
30
30
  }
31
31
  }
32
- }, yt = ["xlink:href"], vt = ["innerHTML"];
33
- function wt(e, a, t, o, s, n) {
34
- return u(), m("div", {
35
- class: k(n.className)
32
+ }, yt = ["xlink:href"], wt = ["innerHTML"];
33
+ function vt(e, a, t, i, s, o) {
34
+ return m(), h("div", {
35
+ class: L(o.className)
36
36
  }, [
37
- (u(), m("svg", null, [
37
+ (m(), h("svg", null, [
38
38
  f("title", null, "iam " + $(t.id), 1),
39
39
  f("use", {
40
- "xlink:href": t.path + n.src
40
+ "xlink:href": t.path + o.src
41
41
  }, null, 8, yt)
42
42
  ])),
43
- t.desc ? (u(), m("span", {
43
+ t.desc ? (m(), h("span", {
44
44
  key: 0,
45
45
  innerHTML: t.desc
46
- }, null, 8, vt)) : w("", !0)
46
+ }, null, 8, wt)) : _("", !0)
47
47
  ], 2);
48
48
  }
49
- const Di = /* @__PURE__ */ v(gt, [["render", wt]]);
49
+ const Li = /* @__PURE__ */ y(gt, [["render", vt]]);
50
50
  /*!
51
- * iamKey v5.1.0-beta
51
+ * iamKey v5.1.0-beta10
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
54
  const _t = function(e) {
55
55
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
56
- }, At = (e, a) => String(e).padStart(a, "0"), xt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
57
- var kt = function(e, a, t, o) {
58
- function s(n) {
59
- return n instanceof t ? n : new t(function(i) {
60
- i(n);
56
+ }, xt = (e, a) => String(e).padStart(a, "0"), At = (e) => e.charAt(0).toUpperCase() + e.slice(1), j = (e, a, t) => a.split(/[\.\[\]\'\"]/).filter((i) => i).reduce((i, s) => i ? i[s] : t, e);
57
+ var kt = function(e, a, t, i) {
58
+ function s(o) {
59
+ return o instanceof t ? o : new t(function(n) {
60
+ n(o);
61
61
  });
62
62
  }
63
- return new (t || (t = Promise))(function(n, i) {
63
+ return new (t || (t = Promise))(function(o, n) {
64
64
  function l(p) {
65
65
  try {
66
- r(o.next(p));
66
+ r(i.next(p));
67
67
  } catch (c) {
68
- i(c);
68
+ n(c);
69
69
  }
70
70
  }
71
71
  function d(p) {
72
72
  try {
73
- r(o.throw(p));
73
+ r(i.throw(p));
74
74
  } catch (c) {
75
- i(c);
75
+ n(c);
76
76
  }
77
77
  }
78
78
  function r(p) {
79
- p.done ? n(p.value) : s(p.value).then(l, d);
79
+ p.done ? o(p.value) : s(p.value).then(l, d);
80
80
  }
81
- r((o = o.apply(e, a || [])).next());
81
+ r((i = i.apply(e, a || [])).next());
82
82
  });
83
83
  };
84
84
  const tt = (e) => {
85
85
  const a = Array.from(e.querySelectorAll("thead th"));
86
- Array.from(e.querySelectorAll("tbody tr")).forEach((t, o) => {
87
- const s = Array.from(t.querySelectorAll("th, td")), n = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
88
- s.forEach((i, l) => {
86
+ Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
87
+ const s = Array.from(t.querySelectorAll("th, td")), o = ["0", "low", "medium", "high", "unknown", "n/a", "pending", "verified", "due", "overdue", "incomplete", "complete", "completed", "approval required", "upcoming", "requires approval", "to do", "on track", "not started", "warning", "error"];
88
+ s.forEach((n, l) => {
89
89
  const d = a[l];
90
90
  if (typeof d < "u") {
91
91
  let r = document.createElement("div");
92
92
  r.innerHTML = d.innerHTML;
93
93
  let p = r.textContent || r.innerText || "";
94
- i.setAttribute("data-label", p), d.hasAttribute("data-td-class") && i.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (i.setAttribute("data-format", d.getAttribute("data-format")), i.innerHTML = Y(d.getAttribute("data-format"), i.textContent.trim())), n.includes(i.textContent.trim().toLowerCase()) && i.setAttribute("data-content", i.textContent.trim().toLowerCase());
94
+ n.setAttribute("data-label", p), d.hasAttribute("data-td-class") && n.setAttribute("class", d.getAttribute("data-td-class")), d.hasAttribute("data-format") && (n.setAttribute("data-format", d.getAttribute("data-format")), n.innerHTML = Y(d.getAttribute("data-format"), n.textContent.trim())), o.includes(n.textContent.trim().toLowerCase()) && n.setAttribute("data-content", n.textContent.trim().toLowerCase());
95
95
  }
96
96
  });
97
97
  });
98
98
  }, Lt = (e) => {
99
99
  let a = 0;
100
- return Array.from(e.querySelectorAll("tbody tr")).forEach((t, o) => {
101
- let s = window.getComputedStyle(document.querySelector("html")), n = t.querySelector(":scope > *:last-child > *:first-child");
102
- if (n) {
103
- n.classList.add("text-nowrap");
104
- let i = n.offsetWidth / parseFloat(s.fontSize);
105
- i += 1.7, a = a > i ? a : i;
100
+ return Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
101
+ let s = window.getComputedStyle(document.querySelector("html")), o = t.querySelector(":scope > *:last-child > *:first-child");
102
+ if (o) {
103
+ o.classList.add("text-nowrap");
104
+ let n = o.offsetWidth / parseFloat(s.fontSize);
105
+ n += 1.7, a = a > n ? a : n;
106
106
  }
107
107
  }), a;
108
- }, St = (e, a) => {
109
- if (a.classList.contains(".table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
108
+ }, $t = (e, a) => {
109
+ if (a.classList.contains("table--fullwidth") && !a.hasAttribute("data-expandable") || e.querySelectorAll("thead tr th").length < 4 && !a.hasAttribute("data-expandable"))
110
110
  return !1;
111
- Array.from(e.querySelectorAll("thead tr")).forEach((t, o) => {
112
- t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
113
- }), Array.from(e.querySelectorAll("tbody tr")).forEach((t, o) => {
111
+ Array.from(e.querySelectorAll("thead tr")).forEach((t, i) => {
112
+ e.querySelectorAll("thead tr th.expand-button-heading").length || t.insertAdjacentHTML("afterbegin", '<th class="th--fixed expand-button-heading"></th>');
113
+ }), Array.from(e.querySelectorAll("tbody tr")).forEach((t, i) => {
114
114
  const s = t.getAttribute("data-view") === "full" ? "aria-expanded" : "";
115
115
  t.insertAdjacentHTML("afterbegin", `<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${s}>Expand</button></td>`);
116
116
  });
117
- }, $t = (e) => {
117
+ }, St = (e) => {
118
118
  e.addEventListener("click", (a) => {
119
119
  if (a && a.target instanceof HTMLElement && a.target.closest("[data-expand-button]")) {
120
- let t = a.target.closest("[data-expand-button]"), o = t.closest("tr");
121
- t.toggleAttribute("aria-expanded"), o.getAttribute("data-view") == "full" ? o.setAttribute("data-view", "default") : o.setAttribute("data-view", "full"), t.blur();
120
+ let t = a.target.closest("[data-expand-button]"), i = t.closest("tr");
121
+ t.toggleAttribute("aria-expanded"), i.getAttribute("data-view") == "full" ? i.setAttribute("data-view", "default") : i.setAttribute("data-view", "full"), t.blur();
122
122
  }
123
123
  });
124
124
  }, et = (e, a) => {
125
125
  let t = a.querySelector("[data-search]");
126
126
  if (!t)
127
127
  return !1;
128
- const o = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
129
- let n = t.parentNode, i = {};
128
+ const i = t.getAttribute("id"), s = t.getAttribute("data-search").split(",");
129
+ let o = t.parentNode, n = {};
130
130
  s.forEach((l, d) => {
131
131
  Array.from(e.querySelectorAll('td[data-label="' + l.trim() + '"]')).forEach((r, p) => {
132
- r.querySelector(".td__content") ? i[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : i[r.textContent] = r.textContent;
132
+ r.querySelector(".td__content") ? n[r.querySelector(".td__content").textContent] = r.querySelector(".td__content").textContent : n[r.textContent] = r.textContent;
133
133
  });
134
- }), t.setAttribute("list", `${o}_list`), t.setAttribute("autocomplete", "off"), n.querySelector("datalist") || (n.innerHTML += `<datalist id="${o}_list"></datalist>`), n.querySelector("datalist").innerHTML = `${Object.keys(i).map((l) => `<option value="${l}"></option>`).join("")}`;
135
- }, qt = (e, a, t, o, s) => {
136
- var n;
137
- let i = function(r, p = !1) {
134
+ }), t.setAttribute("list", `${i}_list`), t.setAttribute("autocomplete", "off"), o.querySelector("datalist") || (o.innerHTML += `<datalist id="${i}_list"></datalist>`), o.querySelector("datalist").innerHTML = `${Object.keys(n).map((l) => `<option value="${l}"></option>`).join("")}`;
135
+ }, qt = (e, a, t, i, s) => {
136
+ var o;
137
+ let n = function(r, p = !1) {
138
138
  if (a.classList.contains("processing"))
139
139
  return !1;
140
- if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, g) => {
141
- const b = c.getAttribute("data-duplicate"), h = document.getElementById(b), x = document.querySelector(`[for="${b}"] iam-card`);
142
- if (h.checked != c.checked)
140
+ if (r.type == "submit" && (a.classList.add("processing"), Array.from(a.querySelectorAll("[data-duplicate]")).forEach((c, u) => {
141
+ const g = c.getAttribute("data-duplicate"), b = document.getElementById(g), x = document.querySelector(`[for="${g}"] iam-card`);
142
+ if (b.checked != c.checked)
143
143
  if (x) {
144
- let L = new Event("click");
145
- x.dispatchEvent(L);
144
+ let S = new Event("click");
145
+ x.dispatchEvent(S);
146
146
  } else
147
- h.checked = c.checked;
147
+ b.checked = c.checked;
148
148
  }), a.classList.remove("processing")), a.hasAttribute("data-ajax")) {
149
149
  if (!p) {
150
150
  let c = a.querySelector("[data-pagination]");
151
- c.value = 1, o.setAttribute("data-page", 1);
151
+ c.value = 1, i.setAttribute("data-page", 1);
152
152
  }
153
- ot(e, a, t, o);
153
+ nt(e, a, t, i);
154
154
  } else
155
- a.hasAttribute("data-submit") ? a.submit() : (K(e, a, o), O(e, a));
155
+ a.hasAttribute("data-submit") ? a.submit() : (G(e, a, i), B(e, a));
156
156
  if (a.hasAttribute("data-ajax-post")) {
157
- let c = new FormData(a), g = new URLSearchParams(c).toString();
158
- const b = new XMLHttpRequest();
159
- b.open("GET", `${window.location.href}?ajax=true&${g}`), b.send();
157
+ let c = new FormData(a), u = new URLSearchParams(c).toString();
158
+ const g = new XMLHttpRequest();
159
+ g.open("GET", `${window.location.href}?ajax=true&${u}`), g.send();
160
160
  }
161
161
  };
162
162
  a.addEventListener("keyup", (r) => {
163
- clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (n = setTimeout(function() {
164
- i(r);
163
+ clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && (o = setTimeout(function() {
164
+ n(r);
165
165
  }, 500));
166
166
  }), a.addEventListener("change", (r) => {
167
- clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s), i(r)), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && i(r), r && r.target instanceof HTMLElement && r.target.closest("[data-filter][data-no-ajax]") ? (K(e, a, o), O(e, a)) : (r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && r.target.closest("form .dialog__wrapper > dialog") || r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && !r.target.closest("form dialog")) && i(r), r && r.target instanceof HTMLElement && r.target.closest("[data-show]") && i(r), r && r.target instanceof HTMLElement && r.target.closest("[data-mimic]") && i(r);
167
+ clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest("[data-sort]") && (a.hasAttribute("data-submit") || Q(e, a, s), n(r)), r && r.target instanceof HTMLElement && r.target.closest("[data-search]") && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-filter][data-no-ajax]") ? (G(e, a, i), B(e, a)) : (r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && r.target.closest("form .dialog__wrapper > dialog") || r && r.target instanceof HTMLElement && r.target.closest("[data-filter]") && !r.target.closest("form dialog")) && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-show]") && n(r), r && r.target instanceof HTMLElement && r.target.closest("[data-mimic]") && n(r);
168
168
  }), a.addEventListener("click", (r) => {
169
- if (clearTimeout(n), r && r.target instanceof HTMLElement && r.target.closest('dialog button:not([type="button"])') && r.target.closest('dialog button:not([type="button"])').closest("dialog").close(), r && r.target instanceof HTMLElement && r.target.closest(".dialog__close") && (r.preventDefault(), r.stopPropagation()), r && r.target instanceof HTMLElement && r.target.closest("[data-clear]")) {
170
- a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, g) => {
169
+ if (clearTimeout(o), r && r.target instanceof HTMLElement && r.target.closest('dialog button:not([type="button"])') && r.target.closest('dialog button:not([type="button"])').closest("dialog").close(), r && r.target instanceof HTMLElement && r.target.closest(".dialog__close") && (r.preventDefault(), r.stopPropagation()), r && r.target instanceof HTMLElement && r.target.closest("[data-clear]")) {
170
+ a.classList.add("processing"), Array.from(a.querySelectorAll(".applied-filters")).forEach((c, u) => {
171
171
  c.innerHTML = "";
172
172
  });
173
173
  let p = a.elements;
@@ -181,12 +181,12 @@ const tt = (e) => {
181
181
  case "radio":
182
182
  case "checkbox":
183
183
  if (p[c].checked) {
184
- let g = p[c], b = g.getAttribute("id"), h = document.querySelector(`[for="${b}"`);
185
- if (h.querySelector("iam-card")) {
186
- let x = h.querySelector("iam-card"), L = new Event("click");
187
- x.dispatchEvent(L);
184
+ let u = p[c], g = u.getAttribute("id"), b = document.querySelector(`[for="${g}"`);
185
+ if (b.querySelector("iam-card")) {
186
+ let x = b.querySelector("iam-card"), S = new Event("click");
187
+ x.dispatchEvent(S);
188
188
  }
189
- g.checked = !1;
189
+ u.checked = !1;
190
190
  }
191
191
  break;
192
192
  case "select-one":
@@ -194,66 +194,66 @@ const tt = (e) => {
194
194
  p[c].selectedIndex = -1;
195
195
  break;
196
196
  }
197
- a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s), i(r);
197
+ a.classList.remove("processing"), a.hasAttribute("data-submit") || Q(e, a, s), n(r);
198
198
  }
199
199
  }), a.addEventListener("submit", (r) => {
200
- clearTimeout(n), a.hasAttribute("data-submit") || r.preventDefault(), i(r);
200
+ clearTimeout(o), a.hasAttribute("data-submit") || r.preventDefault(), n(r);
201
201
  }), a.addEventListener("force", (r) => {
202
- i(r);
202
+ n(r);
203
203
  }), a.addEventListener("paginate", (r) => {
204
- i(r, !0);
204
+ n(r, !0);
205
205
  });
206
206
  let l = [], d = [];
207
207
  Array.from(a.querySelectorAll("[data-mimic]")).forEach((r, p) => {
208
208
  let c = r.getAttribute("data-mimic");
209
- Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((g, b) => {
210
- let h = g.closest("form");
211
- l.includes(h) || l.push(h), d.includes(c) || d.push(c);
209
+ Array.from(document.querySelectorAll(`[name="${c}"]`)).forEach((u, g) => {
210
+ let b = u.closest("form");
211
+ l.includes(b) || l.push(b), d.includes(c) || d.push(c);
212
212
  });
213
213
  }), l.forEach((r, p) => {
214
214
  const c = function() {
215
- let g = [], b = new FormData(r);
216
- for (const [h, x] of b)
217
- document.querySelector(`[data-mimic="${h}"]`) && !g.includes(h) ? (g.push(h), document.querySelector(`[data-mimic="${h}"]`).value = x) : document.querySelector(`[data-mimic="${h}"]`) && (document.querySelector(`[data-mimic="${h}"]`).value += "," + x);
218
- for (const h of g) {
215
+ let u = [], g = new FormData(r);
216
+ for (const [b, x] of g)
217
+ document.querySelector(`[data-mimic="${b}"]`) && !u.includes(b) ? (u.push(b), document.querySelector(`[data-mimic="${b}"]`).value = x) : document.querySelector(`[data-mimic="${b}"]`) && (document.querySelector(`[data-mimic="${b}"]`).value += "," + x);
218
+ for (const b of u) {
219
219
  const x = new Event("force");
220
220
  a.dispatchEvent(x);
221
221
  }
222
- for (const h of d)
223
- if (!b.has(h) && r.querySelector(`[name="${h}"]`)) {
224
- document.querySelector(`[data-mimic="${h}"]`).value = "";
222
+ for (const b of d)
223
+ if (!g.has(b) && r.querySelector(`[name="${b}"]`)) {
224
+ document.querySelector(`[data-mimic="${b}"]`).value = "";
225
225
  const x = new Event("force");
226
226
  a.dispatchEvent(x);
227
227
  }
228
228
  };
229
- r.addEventListener("force", (g) => {
229
+ r.addEventListener("force", (u) => {
230
230
  c();
231
- }), r.addEventListener("change", (g) => {
231
+ }), r.addEventListener("change", (u) => {
232
232
  c();
233
233
  });
234
234
  });
235
235
  }, Q = (e, a, t) => {
236
236
  if (a.getAttribute("data-ajax"))
237
237
  return !1;
238
- let o = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), n = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), i = n.getAttribute("data-sort"), l = n.getAttribute("data-order"), d = n.getAttribute("data-format");
239
- if (!i)
240
- return o.innerHTML = t.innerHTML, tt(e), !1;
238
+ let i = e.querySelector("tbody"), s = a.querySelector("[data-sort]"), o = s.querySelector(`option:nth-child(${s.selectedIndex + 1})`), n = o.getAttribute("data-sort"), l = o.getAttribute("data-order"), d = o.getAttribute("data-format");
239
+ if (!n)
240
+ return i.innerHTML = t.innerHTML, tt(e), !1;
241
241
  let r = [];
242
242
  ["asc", "desc", "descending"].includes(l) || (r = l.split(","));
243
243
  let p = [];
244
- Array.from(o.querySelectorAll("tr")).forEach((g, b) => {
245
- let h = g.querySelector('td[data-label="' + i + '"], th[data-label="' + i + '"]').textContent.trim();
246
- g.querySelector('[data-label="' + i + '"] .td__content') && (h = g.querySelector('[data-label="' + i + '"] .td__content').textContent.trim()), r.length && r.includes(h) && (h = r.indexOf(h)), _t(h) && (h = At(h, 10)), d && d == "date" && (h = new Date(h));
247
- const x = { index: h, row: g };
244
+ Array.from(i.querySelectorAll("tr")).forEach((u, g) => {
245
+ let b = u.querySelector('td[data-label="' + n + '"], th[data-label="' + n + '"]').textContent.trim();
246
+ u.querySelector('[data-label="' + n + '"] .td__content') && (b = u.querySelector('[data-label="' + n + '"] .td__content').textContent.trim()), r.length && r.includes(b) && (b = r.indexOf(b)), _t(b) && (b = xt(b, 10)), d && d == "date" && (b = new Date(b));
247
+ const x = { index: b, row: u };
248
248
  p.push(x);
249
- }), p.sort((g, b) => g.index > b.index ? 1 : -1), (l == "descending" || l == "desc") && (p = p.reverse());
249
+ }), p.sort((u, g) => u.index > g.index ? 1 : -1), (l == "descending" || l == "desc") && (p = p.reverse());
250
250
  let c = "";
251
- p.forEach((g, b) => {
252
- c += g.row.outerHTML;
253
- }), o.innerHTML = c;
254
- }, K = (e, a, t) => {
251
+ p.forEach((u, g) => {
252
+ c += u.row.outerHTML;
253
+ }), i.innerHTML = c;
254
+ }, G = (e, a, t) => {
255
255
  e.classList.remove("table--filtered");
256
- let o = it(a), s = [], n = 0, i = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
256
+ let i = it(a), s = [], o = 0, n = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, l = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
257
257
  if (Array.from(e.querySelectorAll("tbody tr")).forEach((r, p) => {
258
258
  r.classList.remove("filtered"), r.classList.remove("filtered--matched"), r.classList.remove("filtered--show"), r.removeAttribute("data-filtered-by");
259
259
  }), a.querySelector("[data-search]")) {
@@ -266,96 +266,96 @@ const tt = (e) => {
266
266
  r.innerHTML = "", r.parentNode.classList.remove("hover");
267
267
  });
268
268
  let d = 0;
269
- Object.values(o).forEach((r, p) => {
269
+ Object.values(i).forEach((r, p) => {
270
270
  typeof r == "object" && Object.values(r).length ? d += Object.values(r).length : d++;
271
271
  }), d && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((r, p) => {
272
272
  r.innerHTML += `(${d})`, r.parentNode.classList.add("hover");
273
273
  }), e.classList.add("table--filtered");
274
- for (const [r, p] of Object.entries(o))
275
- Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, g) => {
276
- let b = !1;
277
- p.forEach((h, x) => {
278
- let L = c.querySelector(`[data-label="${r}"]`);
279
- if (h && h == "$today")
280
- h = Y("date", /* @__PURE__ */ new Date());
281
- else if (h && h == "$yesterday") {
274
+ for (const [r, p] of Object.entries(i))
275
+ Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((c, u) => {
276
+ let g = !1;
277
+ p.forEach((b, x) => {
278
+ let S = c.querySelector(`[data-label="${r}"]`);
279
+ if (b && b == "$today")
280
+ b = Y("date", /* @__PURE__ */ new Date());
281
+ else if (b && b == "$yesterday") {
282
282
  let A = /* @__PURE__ */ new Date();
283
- A.setDate(A.getDate() - 1), h = Y("date", A);
284
- } else if (h && (h == "$thisWeek" || h == "$lastWeek")) {
285
- let A = /* @__PURE__ */ new Date(), E = new Date(A.setDate(A.getDate() - (A.getDay() - 1))), S = new Date(A.setDate(A.getDate() - A.getDay() + 7)), y = new Date(L.textContent.toLowerCase());
286
- if (A.setHours(0, 0, 0, 0), E.setHours(0, 0, 0, 0), S.setHours(0, 0, 0, 0), y.setHours(0, 0, 0, 0), h == "$thisWeek")
287
- b = y >= E && y <= S;
283
+ A.setDate(A.getDate() - 1), b = Y("date", A);
284
+ } else if (b && (b == "$thisWeek" || b == "$lastWeek")) {
285
+ let A = /* @__PURE__ */ new Date(), k = new Date(A.setDate(A.getDate() - (A.getDay() - 1))), w = new Date(A.setDate(A.getDate() - A.getDay() + 7)), q = new Date(S.textContent.toLowerCase());
286
+ if (A.setHours(0, 0, 0, 0), k.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), b == "$thisWeek")
287
+ g = q >= k && q <= w;
288
288
  else {
289
- let B = new Date(E.setDate(E.getDate() - 7)), T = new Date(S.setDate(S.getDate() - 7));
290
- B.setHours(0, 0, 0, 0), T.setHours(0, 0, 0, 0), b = y >= B && y <= T;
289
+ let E = new Date(k.setDate(k.getDate() - 7)), z = new Date(w.setDate(w.getDate() - 7));
290
+ E.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), g = q >= E && q <= z;
291
291
  }
292
- } else if (h && h == "$thisMonth") {
293
- let A = /* @__PURE__ */ new Date(), E = A.getFullYear(), S = A.getMonth();
294
- var q = new Date(E, S, 1), z = new Date(E, S + 1, 0);
295
- let y = new Date(L.textContent.toLowerCase());
296
- q.setHours(0, 0, 0, 0), z.setHours(0, 0, 0, 0), y.setHours(0, 0, 0, 0), b = y >= q && y <= z;
297
- } else if (h && h == "$lastMonth") {
298
- let A = /* @__PURE__ */ new Date(), E = A.getFullYear(), S = A.getMonth();
299
- var R = new Date(E, S - 1, 1), F = new Date(E, S, 0);
300
- let y = new Date(L.textContent.toLowerCase());
301
- R.setHours(0, 0, 0, 0), F.setHours(0, 0, 0, 0), y.setHours(0, 0, 0, 0), b = y >= R && y <= F;
292
+ } else if (b && b == "$thisMonth") {
293
+ let A = /* @__PURE__ */ new Date(), k = A.getFullYear(), w = A.getMonth();
294
+ var T = new Date(k, w, 1), F = new Date(k, w + 1, 0);
295
+ let q = new Date(S.textContent.toLowerCase());
296
+ T.setHours(0, 0, 0, 0), F.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= T && q <= F;
297
+ } else if (b && b == "$lastMonth") {
298
+ let A = /* @__PURE__ */ new Date(), k = A.getFullYear(), w = A.getMonth();
299
+ var I = new Date(k, w - 1, 1), H = new Date(k, w, 0);
300
+ let q = new Date(S.textContent.toLowerCase());
301
+ I.setHours(0, 0, 0, 0), H.setHours(0, 0, 0, 0), q.setHours(0, 0, 0, 0), g = q >= I && q <= H;
302
302
  }
303
- L && L.textContent.toLowerCase().includes(h.toLowerCase()) && (b = !0);
304
- }), b || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", r));
303
+ S && S.textContent.toLowerCase().includes(b.toLowerCase()) && (g = !0);
304
+ }), g || (c.classList.add("filtered"), c.setAttribute("data-filtered-by", r));
305
305
  });
306
306
  Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).forEach((r, p) => {
307
307
  let c = !(s.length > 0 && s[0].value.length >= 3);
308
- s.forEach((g, b) => {
309
- let h = r.querySelector(`[data-label="${g.column}"]`);
310
- h && g.value.length >= 3 && h.textContent.toLowerCase().includes(g.value.toLowerCase()) && (c = !0);
308
+ s.forEach((u, g) => {
309
+ let b = r.querySelector(`[data-label="${u.column}"]`);
310
+ b && u.value.length >= 3 && b.textContent.toLowerCase().includes(u.value.toLowerCase()) && (c = !0);
311
311
  }), c || r.classList.add("filtered");
312
312
  }), Array.from(e.querySelectorAll("tbody tr:not(.filtered")).forEach((r, p) => {
313
- n++, r.classList.add("filtered--matched"), Math.ceil(n / l) == parseInt(i) && r.classList.add("filtered--show");
314
- }), t && (t.setAttribute("data-total", n), t.setAttribute("data-show", l), t.setAttribute("data-page", i));
315
- }, O = (e, a, t) => {
316
- Array.from(a.querySelectorAll("[data-query]")).forEach((o, s) => {
317
- let n = o.getAttribute("data-query"), i;
318
- if (n == "total")
319
- t.hasAttribute("data-total") ? i = t.getAttribute("data-total") : i = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
320
- else if (!n.includes(" == ") && n.includes(" & ")) {
321
- let l = n.split(" & "), d = "";
313
+ o++, r.classList.add("filtered--matched"), Math.ceil(o / l) == parseInt(n) && r.classList.add("filtered--show");
314
+ }), t && (t.setAttribute("data-total", o), t.setAttribute("data-show", l), t.setAttribute("data-page", n));
315
+ }, B = (e, a, t) => {
316
+ Array.from(a.querySelectorAll("[data-query]")).forEach((i, s) => {
317
+ let o = i.getAttribute("data-query"), n = 0;
318
+ if (o == "total")
319
+ t.hasAttribute("data-total") ? n = t.getAttribute("data-total") : n = (e.classList.contains("table--filtered"), e.querySelectorAll("tbody tr").length);
320
+ else if (!o.includes(" == ") && o.includes(" & ")) {
321
+ let l = o.split(" & "), d = "";
322
322
  l.forEach((r) => {
323
323
  d += `:not([data-filtered-by="${r}"])`;
324
- }), i = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
325
- } else if (!n.includes(" == "))
326
- i = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${n}"])`)).length;
327
- else if (n.includes(" && ")) {
328
- let l = n.split(" && ");
329
- i = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
324
+ }), n = Array.from(e.querySelectorAll(`tbody tr${d}`)).length;
325
+ } else if (!o.includes(" == "))
326
+ n = Array.from(e.querySelectorAll(`tbody tr:not([data-filtered-by="${o}"])`)).length;
327
+ else if (o.includes(" && ")) {
328
+ let l = o.split(" && ");
329
+ n = Array.from(e.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d) {
330
330
  let r = !0;
331
331
  for (const [p, c] of Object.entries(l)) {
332
- let g = c.split(" == ");
333
- (!d.querySelector(`td[data-label="${g[0]}"]`) || d.querySelector(`td[data-label="${g[0]}"]`).textContent != `${g[1]}`) && (r = !1);
332
+ let u = c.split(" == ");
333
+ (!d.querySelector(`td[data-label="${u[0]}"]`) || d.querySelector(`td[data-label="${u[0]}"]`).textContent != `${u[1]}`) && (r = !1);
334
334
  }
335
335
  return r;
336
336
  }).length;
337
337
  } else {
338
- let l = n.split(" == ");
339
- i = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(d) {
338
+ let l = o.split(" == ");
339
+ n = Array.from(e.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(d) {
340
340
  return d.textContent === l[1];
341
341
  }).length;
342
342
  }
343
- o.hasAttribute("data-total") ? o.setAttribute("data-total", i) : o.innerHTML = i;
343
+ i.hasAttribute("data-total") ? i.setAttribute("data-total", n) : i.innerHTML = n;
344
344
  });
345
- }, Et = function(e, a, t, o) {
345
+ }, Et = function(e, a, t, i) {
346
346
  t.addEventListener("update-page", (s) => {
347
- let n = a.querySelector("[data-pagination]"), i = s.detail.page;
348
- if (n.value = i, a.dispatchEvent(new Event("paginate")), o.setAttribute("data-page", i), e.hasAttribute("data-show-history")) {
347
+ let o = a.querySelector("[data-pagination]"), n = s.detail.page;
348
+ if (o.value = n, a.dispatchEvent(new Event("paginate")), i.setAttribute("data-page", n), e.hasAttribute("data-show-history")) {
349
349
  const l = new URL(location);
350
- l.searchParams.set("page", i), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: i }, "", l);
350
+ l.searchParams.set("page", n), history.pushState({ type: "pagination", form: a.getAttribute("id"), page: n }, "", l);
351
351
  }
352
- if (!o.hasAttribute("data-no-scroll")) {
352
+ if (!i.hasAttribute("data-no-scroll")) {
353
353
  const l = e.getBoundingClientRect().top + window.pageYOffset + -250;
354
354
  window.scrollTo({ top: l, behavior: "smooth" });
355
355
  }
356
356
  }), t.addEventListener("update-show", (s) => {
357
- let n = a.querySelector("[data-show]"), i = s.detail.show;
358
- n.value = i, o.setAttribute("data-show", i), a.dispatchEvent(new Event("submit"));
357
+ let o = a.querySelector("[data-show]"), n = s.detail.show;
358
+ o.value = n, i.setAttribute("data-show", n), a.dispatchEvent(new Event("submit"));
359
359
  });
360
360
  }, Tt = (e, a) => {
361
361
  if (!e)
@@ -364,10 +364,10 @@ const tt = (e) => {
364
364
  Ht(a);
365
365
  });
366
366
  }, Ht = function(e) {
367
- for (var a = [], t = e.getElementsByTagName("tr"), o = 0; o < t.length; o++) {
368
- for (var s = t[o].querySelectorAll("td,th"), n = [], i = 0; i < s.length; i++)
369
- n.push(`"${s[i].textContent}"`);
370
- a.push(n.join(","));
367
+ for (var a = [], t = e.getElementsByTagName("tr"), i = 0; i < t.length; i++) {
368
+ for (var s = t[i].querySelectorAll("td,th"), o = [], n = 0; n < s.length; n++)
369
+ o.push(`"${s[n].textContent}"`);
370
+ a.push(o.join(","));
371
371
  }
372
372
  a = a.join(`
373
373
  `);
@@ -376,79 +376,78 @@ const tt = (e) => {
376
376
  d.download = "export.csv";
377
377
  var r = window.URL.createObjectURL(l);
378
378
  d.href = r, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d);
379
- }, at = function(e, a, t, o) {
380
- if (tt(e), St(e, o), O(e, a, o), o && o.classList.contains("table--cta")) {
379
+ }, at = function(e, a, t, i) {
380
+ if (tt(e), $t(e, i), B(e, a, i), i && i.classList.contains("table--cta")) {
381
381
  let s = function() {
382
- Array.from(e.querySelectorAll("tr")).forEach((i, l) => {
383
- let d = i.offsetHeight;
384
- i.style.setProperty("--row-height", `${d}px`);
382
+ Array.from(e.querySelectorAll("tr")).forEach((n, l) => {
383
+ let d = n.offsetHeight;
384
+ n.style.setProperty("--row-height", `${d}px`);
385
385
  });
386
386
  };
387
- const n = Lt(e);
388
- o.style.setProperty("--cta-width", `${n}rem`), new ResizeObserver(s).observe(e);
387
+ const o = Lt(e);
388
+ i.style.setProperty("--cta-width", `${o}rem`), new ResizeObserver(s).observe(e);
389
389
  }
390
390
  }, it = function(e) {
391
391
  let a = new Object();
392
- return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, o) => {
392
+ return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
393
393
  if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
394
394
  let s = t.getAttribute("data-filter");
395
395
  a[s] || (a[s] = new Array()), a[s].push(t.value);
396
396
  }
397
397
  }), a;
398
- }, ot = function(e, a, t, o) {
398
+ }, nt = function(e, a, t, i) {
399
399
  return kt(this, void 0, void 0, function* () {
400
- const s = (b, h, x) => h.split(/[\.\[\]\'\"]/).filter((L) => L).reduce((L, q) => L ? L[q] : x, b);
401
- let n = new FormData(a), i = new URLSearchParams(n).toString(), l = e.querySelectorAll("thead tr th"), d = e.querySelector("tbody"), r = a.getAttribute("data-ajax");
402
- o.classList.add("table--loading");
403
- let p = it(a);
404
- Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, h) => {
405
- b.innerHTML = "", b.parentNode.classList.remove("hover");
400
+ let s = new FormData(a), o = new URLSearchParams(s).toString(), n = e.querySelectorAll("thead tr th:not(.expand-button-heading)"), l = e.querySelector("tbody"), d = a.getAttribute("data-ajax");
401
+ i.classList.add("table--loading");
402
+ let r = it(a);
403
+ Array.from(a.querySelectorAll("[data-filter-count]")).forEach((u, g) => {
404
+ u.innerHTML = "", u.parentNode.classList.remove("hover");
406
405
  });
407
- let c = 0;
408
- Object.values(p).forEach((b, h) => {
409
- typeof b == "object" && Object.values(b).length ? c += Object.values(b).length : c++;
410
- }), c && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, h) => {
411
- b.innerHTML += `(${c})`, b.parentNode.classList.add("hover");
412
- }), window.controller || (window.controller = []), window.controller[r] && window.controller[r].abort(), window.controller[r] = new AbortController();
413
- const { signal: g } = controller[r];
406
+ let p = 0;
407
+ Object.values(r).forEach((u, g) => {
408
+ typeof u == "object" && Object.values(u).length ? p += Object.values(u).length : p++;
409
+ }), p && Array.from(a.querySelectorAll("[data-filter-count]")).forEach((u, g) => {
410
+ u.innerHTML += `(${p})`, u.parentNode.classList.add("hover");
411
+ }), window.controller || (window.controller = []), window.controller[d] && window.controller[d].abort(), window.controller[d] = new AbortController();
412
+ const { signal: c } = controller[d];
414
413
  t.setAttribute("data-loading", "true"), a.classList.add("processing");
415
414
  try {
416
- yield fetch(r + "?" + i, { signal: g, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((b) => b.json()).then((b) => {
417
- let h = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", x = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", L = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", q = s(b, x, 15), z = s(b, L, 1), R = s(b, h), F = o.hasAttribute("data-empty-msg") ? o.getAttribute("data-empty-msg") : "No results found";
418
- R ? (d.innerHTML = "", R.forEach((A, E) => {
419
- var S = document.createElement("tr");
420
- l.forEach((y, B) => {
421
- let T = "";
422
- var U = document.createElement("td");
423
- if (U.setAttribute("data-label", y.innerText), y.getAttribute("data-output")) {
424
- var V = y.getAttribute("data-output");
425
- T = V.replace(new RegExp(/{(.*?)}/, "gm"), function(dt) {
426
- return s(A, dt.replace("{", "").replace("}", ""));
415
+ yield fetch(d + "?" + o, { signal: c, method: "get", credentials: "same-origin", headers: new Headers({ "Content-Type": "application/json", Accept: "application/json", "X-Requested-With": "XMLHttpRequest" }) }).then((u) => u.json()).then((u) => {
416
+ let g = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", b = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", x = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", S = j(u, b, 15), T = j(u, x, 1), F = j(u, g), I = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
417
+ F ? (l.innerHTML = "", F.forEach((H, A) => {
418
+ var k = document.createElement("tr");
419
+ n.forEach((w, q) => {
420
+ let E = "";
421
+ var z = document.createElement("td");
422
+ if (z.setAttribute("data-label", w.innerText), w.getAttribute("data-output")) {
423
+ var U = w.getAttribute("data-output");
424
+ E = U.replace(new RegExp(/{(.*?)}/, "gm"), function(dt) {
425
+ return j(H, dt.replace("{", "").replace("}", ""));
427
426
  });
428
427
  }
429
- if (y.hasAttribute("data-output-array")) {
430
- var V = y.getAttribute("data-output");
431
- let ct = s(A, V.replace("{", "").replace("}", ""));
432
- T = "", ct.forEach((J, Ni) => {
433
- let ut = y.getAttribute("data-output-array"), P = "";
434
- if (y.hasAttribute("data-output-array-property") && y.hasAttribute("data-output-array-transform")) {
435
- const W = s(J, y.getAttribute("data-output-array-property")), mt = JSON.parse(y.getAttribute("data-output-array-transform"))[W];
436
- P = ut.replace(`{${y.getAttribute("data-output-array-property")}}`, mt);
428
+ if (w.hasAttribute("data-output-array")) {
429
+ var U = w.getAttribute("data-output");
430
+ let ct = j(H, U.replace("{", "").replace("}", ""));
431
+ E = "", ct.forEach((J, Ai) => {
432
+ let ut = w.getAttribute("data-output-array"), O = "";
433
+ if (w.hasAttribute("data-output-array-property") && w.hasAttribute("data-output-array-transform")) {
434
+ const V = j(J, w.getAttribute("data-output-array-property")), mt = JSON.parse(w.getAttribute("data-output-array-transform"))[V];
435
+ O = ut.replace(`{${w.getAttribute("data-output-array-property")}}`, mt);
437
436
  }
438
- P = P.replace(new RegExp(/{(.*?)}/, "gm"), function(W) {
439
- return s(J, W.replace("{", "").replace("}", ""));
440
- }), T += P;
437
+ O = O.replace(new RegExp(/{(.*?)}/, "gm"), function(V) {
438
+ return j(J, V.replace("{", "").replace("}", ""));
439
+ }), E += O;
441
440
  });
442
441
  }
443
- y.hasAttribute("data-transform") && (T = JSON.parse(y.getAttribute("data-transform"))[T], !T && y.hasAttribute("data-default") && (T = y.getAttribute("data-default"))), U.innerHTML = T, S.appendChild(U);
444
- }), d.appendChild(S);
445
- }), et(e, a), o.setAttribute("data-total", parseInt(q)), o.setAttribute("data-page", parseInt(z)), at(e, a, t, o), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((A, E) => {
446
- let S = s(b, A.getAttribute("data-ajax-query"), "");
447
- A.hasAttribute("data-total") ? A.setAttribute("data-total", S) : A.innerHTML = S;
448
- }), parseInt(q) == 0 && (d.innerHTML = `<tr><td colspan="100%"><span>${F}</span></td></tr>`), o.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: r, formData: i })) : d.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
442
+ w.hasAttribute("data-transform") && (E = JSON.parse(w.getAttribute("data-transform"))[E], !E && w.hasAttribute("data-default") && (E = w.getAttribute("data-default"))), z.innerHTML = E, k.appendChild(z);
443
+ }), l.appendChild(k);
444
+ }), et(e, a), i.setAttribute("data-total", parseInt(S)), i.setAttribute("data-page", parseInt(T)), at(e, a, t, i), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((H, A) => {
445
+ let k = j(u, H.getAttribute("data-ajax-query"), "");
446
+ H.hasAttribute("data-total") ? H.setAttribute("data-total", k) : H.innerHTML = k;
447
+ }), parseInt(S) == 0 && (l.innerHTML = `<tr><td colspan="100%"><span>${I}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: d, formData: o })) : l.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>', t.removeAttribute("data-loading"), a.classList.remove("processing");
449
448
  });
450
- } catch (b) {
451
- console.log(b);
449
+ } catch (u) {
450
+ console.log(u);
452
451
  }
453
452
  });
454
453
  }, Y = (e, a) => {
@@ -458,14 +457,14 @@ const tt = (e) => {
458
457
  case "date":
459
458
  return new Date(a).toLocaleDateString("en-gb", { year: "2-digit", month: "long", day: "numeric" });
460
459
  case "capitalise":
461
- return a = xt(a);
460
+ return a = At(a);
462
461
  }
463
462
  };
464
463
  class Mt extends HTMLElement {
465
464
  constructor() {
466
465
  super(), this.attachShadow({ mode: "open" });
467
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
468
- o.innerHTML = `
466
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
467
+ i.innerHTML = `
469
468
  <style>
470
469
  @import "${t}";
471
470
  :host{--wrapper-padding: 2rem;--bg-colour: #ffffff;display:block;background:#fff;padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.625rem;margin-bottom:2rem;overflow:hidden}:host:before{display:none !important}@media screen and (prefers-color-scheme: dark){:host{background:var(--colour-canvas-2)}}@media(forced-colors: active){:host{--wrapper-padding: 0;background:var(--colour-canvas-2)}}::slotted(table){margin-bottom:0 !important}.table__wrapper{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}@container (width < 23.4375em){:host(:not(.table--fullwidth)){margin-left:-1.5rem;margin-right:-1.5rem;margin-bottom:0;background:var(--colour-canvas-2);border-radius:0;background:none;padding:0;box-shadow:none;overflow:visible}:host(:not(.table--fullwidth)) .table__wrapper:not(.table--fullwidth){overflow:hidden;max-height:none !important}:host(:not(.table--fullwidth)) ::slotted(table){overflow:visible !important;margin-inline:1.5rem;margin-bottom:1.5rem !important;width:calc(100% - 3rem) !important;display:block}:host(:not(.table--fullwidth)) .table--cta{border-bottom:0}:host(:not(.table--fullwidth)) .table--cta:after{content:none;display:none !important}}@container (width > 23.4375em){:host{--cta-width: 8rem}:host(.table--loading){--cta-width: 1.5rem!important}.table--cta{position:relative}.table--cta .table__wrapper{overflow-y:hidden;margin-bottom:0}}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){position:relative}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{top:calc(100% - 1.2rem);bottom:2px;height:1.2rem;border-bottom:2px solid var(--colour-border);margin-bottom:-1.2rem}.table--cta>.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){max-height:none;position:static}.table--cta>.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{display:none}@container (width < 23.4375em){.table__wrapper.has-actionbar{margin-top:calc(-100vh + 6.75rem) !important}}:host(.table--loading){pointer-events:none;position:relative}:host(.table--loading) ::slotted(table){min-height:20rem;opacity:.5}:host(.table--loading)::after{content:"Loading...";position:absolute;top:6.25rem;left:50%;transform:translate(-50%, 0);font-weight:bold;color:var(--colour-heading);font-size:1.5rem;text-shadow:0px 0px 10px var(--colour-canvas-2);padding-inline:2rem;text-shadow:0px 0px 10px var(--colour-canvas-2);background:radial-gradient(var(--colour-canvas-2), transparent)}@container (width < 23.4375em){.pagination--table{margin-inline:1.5rem;width:auto}:host(.table--fullwidth) .pagination--table{margin-inline:0}}/*# sourceMappingURL=assets/css/components/table.css.map */
@@ -490,85 +489,85 @@ class Mt extends HTMLElement {
490
489
  </div>
491
490
  </div>
492
491
  <iam-pagination class="pagination--table" ${this.hasAttribute("data-page") ? `data-page="${this.getAttribute("data-page")}"` : ""} ></iam-pagination>
493
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0.25rem 0 0 0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.global.css.map */
492
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("tableExtras") || document.head.insertAdjacentHTML("beforeend", `<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}@media screen and (prefers-color-scheme: dark){iam-table tbody tr{--hover-background: var(--colour-canvas)}iam-table tbody tr:is(:hover,:focus-within,.hover){background:var(--row-bg)}}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper{margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default}@media screen and (prefers-color-scheme: dark){iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@media screen and (prefers-color-scheme: dark){iam-table tr:has([type=checkbox]:checked){--row-bg: #000000}}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0.25rem 0 0 0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.global.css.map */
494
493
  </style>`);
495
494
  }
496
495
  connectedCallback() {
497
496
  const a = new URLSearchParams(window.location.search);
498
497
  this.hasAttribute("data-total") || this.setAttribute("data-total", this.querySelectorAll("table tbody tr").length), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
499
498
  let t = this.classList.toString();
500
- if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.querySelector(".actionbar__sticky") && this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector("iam-pagination"), this.pagination.setAttribute("data-total", this.getAttribute("data-total")), this.pagination.setAttribute("data-page", this.getAttribute("data-page")), this.pagination.setAttribute("data-show", this.getAttribute("data-show")), this.pagination.setAttribute("data-increment", this.getAttribute("data-show")), this.hasAttribute("data-page-jump") && this.pagination.setAttribute("data-page-jump", "true"), this.hasAttribute("data-per-page") && this.pagination.setAttribute("data-per-page", "true"), this.hasAttribute("data-item-count") && this.pagination.setAttribute("data-item-count", "true"), this.hasAttribute("data-loading") && this.pagination.setAttribute("data-loading", "true"), this.classList.contains("table--fullwidth") && this.pagination.setAttribute("data-minimal", "true"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), et(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), $t(this.table), qt(this.table, this.form, this.pagination, this, this.savedTableBody), Et(this.table, this.form, this.pagination, this), Tt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
501
- ot(this.table, this.form, this.pagination, this);
499
+ if (t = t.replace("table--cta", ""), t = t.replace("table--loading", ""), this.shadowRoot.querySelector(".table__wrapper").className += ` ${t}`, this.querySelector(".actionbar__sticky") && this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"), this.table = this.querySelector("table"), this.savedTableBody = this.table.querySelector("tbody").cloneNode(!0), this.pagination = this.shadowRoot.querySelector("iam-pagination"), this.pagination.setAttribute("data-total", this.getAttribute("data-total")), this.pagination.setAttribute("data-page", this.getAttribute("data-page")), this.pagination.setAttribute("data-show", this.getAttribute("data-show")), this.pagination.setAttribute("data-increment", this.getAttribute("data-show")), this.hasAttribute("data-page-jump") && this.pagination.setAttribute("data-page-jump", "true"), this.hasAttribute("data-per-page") && this.pagination.setAttribute("data-per-page", "true"), this.hasAttribute("data-item-count") && this.pagination.setAttribute("data-item-count", "true"), this.hasAttribute("data-loading") && this.pagination.setAttribute("data-loading", "true"), this.classList.contains("table--fullwidth") && this.pagination.setAttribute("data-minimal", "true"), this.classList.contains("table--cta") || this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"), this.form = document.createElement("form"), this.hasAttribute("data-filterby") ? this.form = document.querySelector(`#${this.getAttribute("data-filterby")}`) : this.table.parentNode.insertBefore(this.form, this.table.nextSibling), this.form.hasAttribute("data-ajax") && this.table.classList.add("table--ajax"), et(this.table, this.form), this.form.querySelector("[data-pagination]") || (this.form.innerHTML += `<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`), this.form.querySelector("[data-show]") || (this.form.innerHTML += `<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`), St(this.table), qt(this.table, this.form, this.pagination, this, this.savedTableBody), Et(this.table, this.form, this.pagination, this), Tt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax"))
500
+ nt(this.table, this.form, this.pagination, this);
502
501
  else {
503
- let o = function(n = 1) {
504
- return Math.floor(Math.random() * Date.now() * (n + 1));
502
+ let i = function(o = 1) {
503
+ return Math.floor(Math.random() * Date.now() * (o + 1));
505
504
  };
506
505
  if (this.querySelector("iam-actionbar[data-selectall]")) {
507
- const n = this.querySelector("iam-actionbar[data-selectall]");
508
- Array.from(this.table.querySelectorAll("thead tr")).forEach((i, l) => {
509
- i.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
510
- }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((i, l) => {
511
- let d = `row${o(l)}`;
512
- i.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${d}"/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`);
513
- }), this.table.addEventListener("change", (i) => {
514
- if (i && i.target instanceof HTMLElement && i.target.closest(".selectrow input")) {
506
+ const o = this.querySelector("iam-actionbar[data-selectall]");
507
+ Array.from(this.table.querySelectorAll("thead tr")).forEach((n, l) => {
508
+ n.insertAdjacentHTML("afterbegin", '<th class="th--fixed"></th>');
509
+ }), Array.from(this.table.querySelectorAll("tbody tr")).forEach((n, l) => {
510
+ let d = `row${i(l)}`;
511
+ n.insertAdjacentHTML("afterbegin", `<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${d}"/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`);
512
+ }), this.table.addEventListener("change", (n) => {
513
+ if (n && n.target instanceof HTMLElement && n.target.closest(".selectrow input")) {
515
514
  let l = this.table.querySelectorAll('.selectrow input[type="checkbox"]').length, d = this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;
516
- n.setAttribute("data-selected", l == d ? "all" : d);
515
+ o.setAttribute("data-selected", l == d ? "all" : d);
517
516
  }
518
- }), n.addEventListener("selected", (i) => {
519
- i.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
517
+ }), o.addEventListener("selected", (n) => {
518
+ n.detail.selected == "0" ? Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
520
519
  l.checked = !1;
521
- }) : i.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
520
+ }) : n.detail.selected == "all" && Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l, d) => {
522
521
  l.checked = !0;
523
522
  });
524
523
  });
525
524
  }
526
525
  let s = -1;
527
- Array.from(this.table.querySelectorAll("tbody tr")).forEach((n, i) => {
528
- if (n.querySelector(":scope > td > .dialog__wrapper")) {
529
- let l = n.querySelector(":scope > td > .dialog__wrapper").parentNode;
526
+ Array.from(this.table.querySelectorAll("tbody tr")).forEach((o, n) => {
527
+ if (o.querySelector(":scope > td > .dialog__wrapper")) {
528
+ let l = o.querySelector(":scope > td > .dialog__wrapper").parentNode;
530
529
  l.classList.add("td--fixed"), s = Array.from(l.parentNode.children).indexOf(l);
531
530
  }
532
- }), s != -1 && (this.table.querySelector(`thead tr th:nth-child(${s + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${s + 1})`)).forEach((n, i) => {
533
- n.classList.add("td--fixed");
534
- })), at(this.table, this.form, this.pagination, this), K(this.table, this.form, this), O(this.table, this.form);
531
+ }), s != -1 && (this.table.querySelector(`thead tr th:nth-child(${s + 1})`).classList.add("th--fixed"), Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${s + 1})`)).forEach((o, n) => {
532
+ o.classList.add("td--fixed");
533
+ })), at(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this.table, this.form);
535
534
  }
536
- this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (o) => {
535
+ this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
537
536
  this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
538
537
  });
539
538
  }
540
539
  static get observedAttributes() {
541
540
  return ["data-total", "data-page", "data-show"];
542
541
  }
543
- attributeChangedCallback(a, t, o) {
542
+ attributeChangedCallback(a, t, i) {
544
543
  switch (this.pagination = this.shadowRoot.querySelector("iam-pagination"), a) {
545
544
  case "data-total": {
546
- t != o && this.pagination.setAttribute("data-total", o);
545
+ t != i && this.pagination.setAttribute("data-total", i);
547
546
  break;
548
547
  }
549
548
  case "data-show": {
550
- t != o && this.pagination.setAttribute("data-show", o);
549
+ t != i && this.pagination.setAttribute("data-show", i);
551
550
  break;
552
551
  }
553
552
  case "data-page": {
554
- t != o && this.pagination.setAttribute("data-page", o);
553
+ t != i && this.pagination.setAttribute("data-page", i);
555
554
  break;
556
555
  }
557
556
  }
558
557
  }
559
558
  }
560
559
  /*!
561
- * iamKey v5.1.0-beta
560
+ * iamKey v5.1.0-beta10
562
561
  * Copyright 2022-2023 iamproperty
563
562
  */
564
- class nt extends HTMLElement {
563
+ class ot extends HTMLElement {
565
564
  constructor() {
566
565
  super(), this.attachShadow({ mode: "open" });
567
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
568
- o.innerHTML = `
566
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
567
+ i.innerHTML = `
569
568
  <style>
570
569
  @import "${t}";
571
- :host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
570
+ :host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
572
571
 
573
572
 
574
573
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -603,67 +602,67 @@ class nt extends HTMLElement {
603
602
  <button class="load-more btn btn-primary m-auto">Load more</a>
604
603
  </div>
605
604
  </div>
606
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
605
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
607
606
  }
608
607
  connectedCallback() {
609
608
  const a = new URLSearchParams(window.location.search);
610
609
  this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page", a.has("page") ? a.get("page") : 1), this.hasAttribute("data-show") || this.setAttribute("data-show", a.has("show") ? a.get("show") : 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", this.getAttribute("data-show"));
611
- const t = this.shadowRoot.querySelector(".page-jump select"), o = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".per-page select"), i = this.shadowRoot.querySelector(".load-more");
610
+ const t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".per-page select"), n = this.shadowRoot.querySelector(".load-more");
612
611
  this.setup(), t.addEventListener("change", (l) => {
613
612
  this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", l.target.value);
614
613
  }), s.addEventListener("click", (l) => {
615
614
  t.value = parseInt(t.value) + 1, t.dispatchEvent(new Event("change"));
616
- }), o.addEventListener("click", (l) => {
615
+ }), i.addEventListener("click", (l) => {
617
616
  t.value = parseInt(t.value) - 1, t.dispatchEvent(new Event("change"));
618
- }), n.addEventListener("change", (l) => {
617
+ }), o.addEventListener("change", (l) => {
619
618
  this.setAttribute("data-increment", l.target.value);
620
- }), i.addEventListener("click", (l) => {
619
+ }), n.addEventListener("click", (l) => {
621
620
  let d = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
622
- this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && i.remove();
621
+ this.setAttribute("data-show", d), d > parseInt(this.getAttribute("data-total")) && n.remove();
623
622
  });
624
623
  }
625
624
  setup() {
626
- const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), o = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), n = this.shadowRoot.querySelector(".item-count"), i = this.shadowRoot.querySelector(".per-page select"), l = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), r = parseInt(this.getAttribute("data-total")), p = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), g = Math.ceil(r / c);
625
+ const a = this.shadowRoot.querySelector(".pagination"), t = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), s = this.shadowRoot.querySelector(".next"), o = this.shadowRoot.querySelector(".item-count"), n = this.shadowRoot.querySelector(".per-page select"), l = this.shadowRoot.querySelector(".total-pages"), d = parseInt(this.getAttribute("data-page")), r = parseInt(this.getAttribute("data-total")), p = parseInt(this.getAttribute("data-show")), c = parseInt(this.getAttribute("data-increment")), u = Math.ceil(r / c);
627
626
  r > p && a.classList.remove("d-none");
628
- let b = "";
629
- for (let q = 1; q <= g; q++)
630
- b += `<option value="${q}" ${q == d ? "selected" : ""}>${q}</option>`;
631
- t.innerHTML = b, l.innerHTML = `of ${g}`, d == g ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? o.setAttribute("disabled", "disabled") : o.removeAttribute("disabled");
632
- let h = d == 1 ? 1 : (d - 1) * p + 1, x = d == 1 ? p : d * p;
633
- n.innerHTML = `${h} - ${x > r ? r : x} of ${r} items`;
634
- const L = [15, 25, 40, 50];
635
- c && i.value != c && !L.includes(c) && (i.innerHTML = `<option value="${c}">${c}</option>
627
+ let g = "";
628
+ for (let T = 1; T <= u; T++)
629
+ g += `<option value="${T}" ${T == d ? "selected" : ""}>${T}</option>`;
630
+ t.innerHTML = g, l.innerHTML = `of ${u}`, d == u ? s.setAttribute("disabled", "disabled") : s.removeAttribute("disabled"), d == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
631
+ let b = d == 1 ? 1 : (d - 1) * p + 1, x = d == 1 ? p : d * p;
632
+ o.innerHTML = `${b} - ${x > r ? r : x} of ${r} items`;
633
+ const S = [15, 25, 40, 50];
634
+ c && n.value != c && !S.includes(c) && (n.innerHTML = `<option value="${c}">${c}</option>
636
635
  <option value="${c * 2}">${c * 2}</option>
637
636
  <option value="${c * 3}">${c * 3}</option>
638
- <option value="${c * 4}">${c * 4}</option>`), i.value = c;
637
+ <option value="${c * 4}">${c * 4}</option>`), n.value = c;
639
638
  }
640
639
  static get observedAttributes() {
641
640
  return ["data-total", "data-increment", "data-page", "data-show"];
642
641
  }
643
- attributeChangedCallback(a, t, o) {
642
+ attributeChangedCallback(a, t, i) {
644
643
  switch (a) {
645
644
  case "data-total": {
646
- t != o && (this.setAttribute("data-page", 1), this.setup());
645
+ t != i && (this.setAttribute("data-page", 1), this.setup());
647
646
  break;
648
647
  }
649
648
  case "data-show": {
650
- t != o && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: o } })));
649
+ t != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
651
650
  break;
652
651
  }
653
652
  case "data-increment": {
654
- t != o && (this.setAttribute("data-show", o), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: o } })));
653
+ t != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
655
654
  break;
656
655
  }
657
656
  case "data-page": {
658
- t && t != o && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: o } })));
657
+ t && t != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
659
658
  break;
660
659
  }
661
660
  }
662
661
  }
663
662
  }
664
- const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(/_/g, " "), Nt = (e) => e.replace(/ /g, "_"), Rt = function(e) {
665
- return e = e.toLowerCase(), e = Nt(e), e = e.replace(/\W/g, ""), e;
666
- }, Dt = {
663
+ const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), Rt = function(e) {
664
+ return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
665
+ }, Nt = {
667
666
  name: "Table",
668
667
  props: {
669
668
  items: {
@@ -682,37 +681,37 @@ const jt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Ct = (e) => e.replace(
682
681
  },
683
682
  created() {
684
683
  this.$nextTick(function() {
685
- window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
684
+ window.customElements.get("iam-table") || window.customElements.define("iam-table", Mt), window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
686
685
  });
687
686
  },
688
687
  updated() {
689
688
  }
690
689
  }, zt = { key: 0 }, Ft = { key: 0 }, Pt = ["data-row-id"], It = ["innerHTML"];
691
- function Ot(e, a, t, o, s, n) {
692
- return u(), m("iam-table", null, [
693
- t.fields ? (u(), m("table", zt, [
690
+ function Ot(e, a, t, i, s, o) {
691
+ return m(), h("iam-table", null, [
692
+ t.fields ? (m(), h("table", zt, [
694
693
  f("thead", null, [
695
694
  f("tr", null, [
696
- (u(!0), m(H, null, M(t.fields, (i) => (u(), m("th", {
697
- key: i.key
698
- }, $(n.cellHeading(i.key)), 1))), 128))
695
+ (m(!0), h(D, null, R(t.fields, (n) => (m(), h("th", {
696
+ key: n.key
697
+ }, $(o.cellHeading(n.key)), 1))), 128))
699
698
  ])
700
699
  ]),
701
- t.items ? (u(), m("tbody", Ft, [
702
- (u(!0), m(H, null, M(t.items, (i, l) => (u(), m("tr", {
700
+ t.items ? (m(), h("tbody", Ft, [
701
+ (m(!0), h(D, null, R(t.items, (n, l) => (m(), h("tr", {
703
702
  key: l,
704
- "data-row-id": i.rowid
703
+ "data-row-id": n.rowid
705
704
  }, [
706
- (u(!0), m(H, null, M(Object.fromEntries(Object.entries(i).filter(([d]) => d !== "rowid")), (d, r) => (u(), m("td", {
705
+ (m(!0), h(D, null, R(Object.fromEntries(Object.entries(n).filter(([d]) => d !== "rowid")), (d, r) => (m(), h("td", {
707
706
  key: r,
708
707
  innerHTML: d
709
708
  }, null, 8, It))), 128))
710
709
  ], 8, Pt))), 128))
711
- ])) : w("", !0)
712
- ])) : _(e.$slots, "default", { key: 1 })
710
+ ])) : _("", !0)
711
+ ])) : v(e.$slots, "default", { key: 1 })
713
712
  ]);
714
713
  }
715
- const rt = /* @__PURE__ */ v(Dt, [["render", Ot]]), Bt = {
714
+ const rt = /* @__PURE__ */ y(Nt, [["render", Ot]]), Bt = {
716
715
  name: "Input",
717
716
  props: {
718
717
  value: {
@@ -900,187 +899,187 @@ const rt = /* @__PURE__ */ v(Dt, [["render", Ot]]), Bt = {
900
899
  this.$emit("bus");
901
900
  }
902
901
  }
903
- }, Ut = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Wt = ["innerHTML"], Gt = ["type", "name", "id", "pattern", "list"], Kt = ["type", "name", "id", "pattern"], Yt = {
902
+ }, Ut = ["for", "innerHTML", "title"], Vt = ["innerHTML"], Wt = ["innerHTML"], Kt = ["type", "name", "id", "pattern", "list"], Gt = ["type", "name", "id", "pattern"], Yt = {
904
903
  key: 5,
905
904
  class: "input-group"
906
905
  }, Xt = ["type", "name", "id", "pattern", "list"], Jt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Qt = {
907
906
  key: 6,
908
907
  class: "input-group"
909
- }, Zt = ["type", "name", "id", "pattern", "list"], te = { class: "input-group-text flex-fill" }, ee = ["type", "name", "id", "pattern"], ae = ["value"], ie = ["type", "name", "id"], oe = ["for", "innerHTML"], ne = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["innerHTML"], le = ["id"], de = ["value"];
910
- function ce(e, a, t, o, s, n) {
911
- return u(), m("div", {
912
- class: k(n.wrapperClass()),
908
+ }, Zt = ["type", "name", "id", "pattern", "list"], te = { class: "input-group-text flex-fill" }, ee = ["type", "name", "id", "pattern"], ae = ["value"], ie = ["type", "name", "id"], ne = ["for", "innerHTML"], oe = ["type", "name", "id"], re = ["for", "innerHTML"], se = ["innerHTML"], le = ["id"], de = ["value"];
909
+ function ce(e, a, t, i, s, o) {
910
+ return m(), h("div", {
911
+ class: L(o.wrapperClass()),
913
912
  ref: "wrapper"
914
913
  }, [
915
- n.needsLabel() ? (u(), m("label", {
914
+ o.needsLabel() ? (m(), h("label", {
916
915
  key: 0,
917
- class: k(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
916
+ class: L(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
918
917
  for: t.id,
919
- innerHTML: n.displayLabel(),
918
+ innerHTML: o.displayLabel(),
920
919
  title: t.title
921
- }, null, 10, Ut)) : w("", !0),
922
- t.prefix ? (u(), m("span", {
920
+ }, null, 10, Ut)) : _("", !0),
921
+ t.prefix ? (m(), h("span", {
923
922
  key: 1,
924
- class: k(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
923
+ class: L(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
925
924
  innerHTML: t.prefix,
926
925
  role: "presentation"
927
- }, null, 10, Vt)) : w("", !0),
928
- t.suffix ? (u(), m("span", {
926
+ }, null, 10, Vt)) : _("", !0),
927
+ t.suffix ? (m(), h("span", {
929
928
  key: 2,
930
- class: k(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
929
+ class: L(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
931
930
  innerHTML: t.suffix,
932
931
  role: "presentation"
933
- }, null, 10, Wt)) : w("", !0),
934
- n.isInput() ? D((u(), m("input", C({
932
+ }, null, 10, Wt)) : _("", !0),
933
+ o.isInput() ? P((m(), h("input", C({
935
934
  key: 3,
936
- "onUpdate:modelValue": a[0] || (a[0] = (i) => n.inputVal = i),
935
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => o.inputVal = n),
937
936
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
938
937
  type: t.type,
939
938
  name: t.name ? t.name : t.id,
940
939
  id: t.id,
941
- pattern: n.needPattern(),
942
- list: n.hasOptions()
940
+ pattern: o.needPattern(),
941
+ list: o.hasOptions()
943
942
  }, e.$attrs, {
944
- onKeyup: a[1] || (a[1] = (...i) => n.inputKeyup && n.inputKeyup(...i))
945
- }), null, 16, Gt)), [
946
- [G, n.inputVal]
947
- ]) : w("", !0),
948
- t.type == "textarea" ? D((u(), m("textarea", C({
943
+ onKeyup: a[1] || (a[1] = (...n) => o.inputKeyup && o.inputKeyup(...n))
944
+ }), null, 16, Kt)), [
945
+ [W, o.inputVal]
946
+ ]) : _("", !0),
947
+ t.type == "textarea" ? P((m(), h("textarea", C({
949
948
  key: 4,
950
- "onUpdate:modelValue": a[2] || (a[2] = (i) => n.inputVal = i),
949
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => o.inputVal = n),
951
950
  class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
952
951
  type: t.type,
953
952
  name: t.name ? t.name : t.id,
954
953
  id: t.id,
955
- pattern: n.needPattern()
956
- }, e.$attrs), null, 16, Kt)), [
957
- [ht, n.inputVal]
958
- ]) : w("", !0),
959
- t.type == "range" ? (u(), m("div", Yt, [
960
- D(f("input", C({
961
- "onUpdate:modelValue": a[3] || (a[3] = (i) => n.inputVal = i),
954
+ pattern: o.needPattern()
955
+ }, e.$attrs), null, 16, Gt)), [
956
+ [ht, o.inputVal]
957
+ ]) : _("", !0),
958
+ t.type == "range" ? (m(), h("div", Yt, [
959
+ P(f("input", C({
960
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => o.inputVal = n),
962
961
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
963
962
  type: t.type,
964
963
  name: t.name ? t.name : t.id,
965
964
  id: t.id,
966
- pattern: n.needPattern(),
967
- list: n.hasOptions()
965
+ pattern: o.needPattern(),
966
+ list: o.hasOptions()
968
967
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Xt), [
969
- [G, n.inputVal]
968
+ [W, o.inputVal]
970
969
  ]),
971
970
  f("output", Jt, $(t.value), 1)
972
- ])) : w("", !0),
973
- t.type == "color" ? (u(), m("div", Qt, [
974
- D(f("input", C({
975
- "onUpdate:modelValue": a[4] || (a[4] = (i) => n.inputVal = i),
971
+ ])) : _("", !0),
972
+ t.type == "color" ? (m(), h("div", Qt, [
973
+ P(f("input", C({
974
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => o.inputVal = n),
976
975
  class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
977
976
  type: t.type,
978
977
  name: t.name ? t.name : t.id,
979
978
  id: t.id,
980
- pattern: n.needPattern(),
981
- list: n.hasOptions()
979
+ pattern: o.needPattern(),
980
+ list: o.hasOptions()
982
981
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Zt), [
983
- [G, n.inputVal]
982
+ [W, o.inputVal]
984
983
  ]),
985
984
  f("output", te, $(t.value ? e.vale : "#000000"), 1)
986
- ])) : w("", !0),
987
- t.type == "select" ? D((u(), m("select", C({
985
+ ])) : _("", !0),
986
+ t.type == "select" ? P((m(), h("select", C({
988
987
  key: 7,
989
- "onUpdate:modelValue": a[5] || (a[5] = (i) => n.inputVal = i),
988
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => o.inputVal = n),
990
989
  class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
991
990
  type: t.type,
992
991
  name: t.id,
993
992
  id: t.id,
994
- pattern: n.needPattern()
993
+ pattern: o.needPattern()
995
994
  }, e.$attrs), [
996
- (u(!0), m(H, null, M(t.options, (i, l) => (u(), m("option", {
995
+ (m(!0), h(D, null, R(t.options, (n, l) => (m(), h("option", {
997
996
  key: l,
998
- value: i.value
999
- }, $(i.display ? i.display : i.value), 9, ae))), 128))
997
+ value: n.value
998
+ }, $(n.display ? n.display : n.value), 9, ae))), 128))
1000
999
  ], 16, ee)), [
1001
- [pt, n.inputVal]
1002
- ]) : w("", !0),
1003
- t.type == "checkbox" || t.type == "radio" ? (u(), m("input", C({
1000
+ [pt, o.inputVal]
1001
+ ]) : _("", !0),
1002
+ t.type == "checkbox" || t.type == "radio" ? (m(), h("input", C({
1004
1003
  key: 8,
1005
1004
  class: "form-check-input",
1006
1005
  type: t.type,
1007
1006
  name: t.name ? t.name : t.id,
1008
1007
  id: t.id
1009
- }, e.$attrs), null, 16, ie)) : w("", !0),
1010
- t.type == "checkbox" || t.type == "radio" ? (u(), m("label", {
1008
+ }, e.$attrs), null, 16, ie)) : _("", !0),
1009
+ t.type == "checkbox" || t.type == "radio" ? (m(), h("label", {
1011
1010
  key: 9,
1012
- class: k(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
1011
+ class: L(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
1013
1012
  for: t.id,
1014
1013
  innerHTML: t.label
1015
- }, null, 10, oe)) : w("", !0),
1016
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("input", C({
1014
+ }, null, 10, ne)) : _("", !0),
1015
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("input", C({
1017
1016
  key: 10,
1018
1017
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
1019
1018
  type: t.type.replace("-btn", ""),
1020
1019
  autocomplete: "off",
1021
1020
  name: t.name ? t.name : t.id,
1022
1021
  id: t.id
1023
- }, e.$attrs), null, 16, ne)) : w("", !0),
1024
- t.type == "checkbox-btn" || t.type == "radio-btn" ? (u(), m("label", {
1022
+ }, e.$attrs), null, 16, oe)) : _("", !0),
1023
+ t.type == "checkbox-btn" || t.type == "radio-btn" ? (m(), h("label", {
1025
1024
  key: 11,
1026
- class: k(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
1025
+ class: L(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
1027
1026
  for: t.id,
1028
1027
  innerHTML: t.label,
1029
- onClick: a[6] || (a[6] = (...i) => n.clickEvent && n.clickEvent(...i))
1030
- }, null, 10, re)) : w("", !0),
1031
- _(e.$slots, "default"),
1032
- t.errormsg ? (u(), m("span", {
1028
+ onClick: a[6] || (a[6] = (...n) => o.clickEvent && o.clickEvent(...n))
1029
+ }, null, 10, re)) : _("", !0),
1030
+ v(e.$slots, "default"),
1031
+ t.errormsg ? (m(), h("span", {
1033
1032
  key: 12,
1034
1033
  class: "invalid-feedback mb-0",
1035
1034
  innerHTML: t.errormsg
1036
- }, null, 8, se)) : w("", !0),
1037
- n.allowDatalist() ? (u(), m("datalist", {
1035
+ }, null, 8, se)) : _("", !0),
1036
+ o.allowDatalist() ? (m(), h("datalist", {
1038
1037
  key: 13,
1039
1038
  id: t.id + "-list"
1040
1039
  }, [
1041
- (u(!0), m(H, null, M(t.options, (i, l) => (u(), m("option", {
1040
+ (m(!0), h(D, null, R(t.options, (n, l) => (m(), h("option", {
1042
1041
  key: l,
1043
- value: i.value
1044
- }, $(i.value), 9, de))), 128))
1045
- ], 8, le)) : w("", !0)
1042
+ value: n.value
1043
+ }, $(n.value), 9, de))), 128))
1044
+ ], 8, le)) : _("", !0)
1046
1045
  ], 2);
1047
1046
  }
1048
- const st = /* @__PURE__ */ v(Bt, [["render", ce]]);
1047
+ const st = /* @__PURE__ */ y(Bt, [["render", ce]]);
1049
1048
  function ue(e, a) {
1050
- const t = a.querySelector(".files"), o = a.querySelector(".drop-area"), s = e.querySelector("input"), n = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, i = s.cloneNode();
1051
- o.append(i), a.addEventListener("click", (l) => {
1052
- l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? i : s).click());
1049
+ const t = a.querySelector(".files"), i = a.querySelector(".drop-area"), s = e.querySelector("input"), o = e.hasAttribute("data-maxsize") ? e.getAttribute("data-maxsize") : 0, n = s.cloneNode();
1050
+ i.append(n), a.addEventListener("click", (l) => {
1051
+ l && l.target instanceof HTMLElement && l.target.closest(".btn-primary") && (l.target.closest(".btn-primary"), (s.hasAttribute("multiple") ? n : s).click());
1053
1052
  }), a.addEventListener("click", (l) => {
1054
1053
  if (l && l.target instanceof HTMLElement && l.target.closest(".files button")) {
1055
1054
  const d = new DataTransfer(), { files: r } = s, p = l.target.closest(".files button");
1056
- for (let g = 0; g < r.length; g++) {
1057
- const b = r[g];
1058
- b.name != p.getAttribute("data-file") && d.items.add(b);
1055
+ for (let u = 0; u < r.length; u++) {
1056
+ const g = r[u];
1057
+ g.name != p.getAttribute("data-file") && d.items.add(g);
1059
1058
  }
1060
1059
  s.files = d.files;
1061
1060
  const c = new Event("change");
1062
1061
  s.dispatchEvent(c);
1063
1062
  }
1064
- }), i.addEventListener("change", (l) => {
1063
+ }), n.addEventListener("change", (l) => {
1065
1064
  if (s.hasAttribute("multiple")) {
1066
- const r = [...s.files, ...i.files];
1065
+ const r = [...s.files, ...n.files];
1067
1066
  let p = [];
1068
1067
  const c = new DataTransfer();
1069
- for (let g = 0; g < r.length; g++) {
1070
- const b = r[g], h = b.size / 1e3;
1071
- !p.includes(b.name) && (n == 0 || h < n) && c.items.add(b), p.push(b.name);
1068
+ for (let u = 0; u < r.length; u++) {
1069
+ const g = r[u], b = g.size / 1e3;
1070
+ !p.includes(g.name) && (o == 0 || b < o) && c.items.add(g), p.push(g.name);
1072
1071
  }
1073
1072
  s.files = c.files;
1074
1073
  } else
1075
- s.files = i.files;
1074
+ s.files = n.files;
1076
1075
  const d = new Event("change");
1077
1076
  s.dispatchEvent(d);
1078
- }), i.addEventListener("dragenter", (l) => {
1079
- i.classList.add("focus");
1080
- }), i.addEventListener("dragleave", (l) => {
1081
- i.classList.remove("focus");
1082
- }), i.addEventListener("drop", (l) => {
1083
- i.classList.remove("focus");
1077
+ }), n.addEventListener("dragenter", (l) => {
1078
+ n.classList.add("focus");
1079
+ }), n.addEventListener("dragleave", (l) => {
1080
+ n.classList.remove("focus");
1081
+ }), n.addEventListener("drop", (l) => {
1082
+ n.classList.remove("focus");
1084
1083
  }), s.addEventListener("change", (l) => {
1085
1084
  t.innerHTML = "";
1086
1085
  for (const d of s.files)
@@ -1095,11 +1094,11 @@ window.dataLayer.push({
1095
1094
  class me extends HTMLElement {
1096
1095
  constructor() {
1097
1096
  super(), this.attachShadow({ mode: "open" });
1098
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = `@import "${a}/css/components/fileupload.css";`, s = document.createElement("template");
1097
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/fileupload.css";`, s = document.createElement("template");
1099
1098
  s.innerHTML = `
1100
1099
  <style>
1101
1100
  @import "${t}";
1102
- ${o}
1101
+ ${i}
1103
1102
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1104
1103
  </style>
1105
1104
  <div class="file-upload">
@@ -1115,8 +1114,8 @@ class me extends HTMLElement {
1115
1114
  }
1116
1115
  connectedCallback() {
1117
1116
  this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
1118
- const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), o = this.shadowRoot.querySelector(".helper-text");
1119
- o.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, ue(this, a);
1117
+ const a = this.shadowRoot.querySelector(".file-upload"), t = this.querySelector("input"), i = this.shadowRoot.querySelector(".helper-text");
1118
+ i.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${t.hasAttribute("accept") ? `Supported file types are ${t.getAttribute("accept")}` : ""}`, ue(this, a);
1120
1119
  }
1121
1120
  }
1122
1121
  const he = {
@@ -1137,14 +1136,14 @@ const he = {
1137
1136
  });
1138
1137
  }
1139
1138
  };
1140
- function pe(e, a, t, o, s, n) {
1141
- return u(), m("iam-fileupload", null, [
1142
- _(e.$slots, "default")
1139
+ function pe(e, a, t, i, s, o) {
1140
+ return m(), h("iam-fileupload", null, [
1141
+ v(e.$slots, "default")
1143
1142
  ]);
1144
1143
  }
1145
- const zi = /* @__PURE__ */ v(he, [["render", pe]]), N = (e, a) => {
1144
+ const $i = /* @__PURE__ */ y(he, [["render", pe]]), N = (e, a) => {
1146
1145
  const t = e[a];
1147
- return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((o, s) => {
1146
+ return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((i, s) => {
1148
1147
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(s.bind(null, new Error("Unknown variable dynamic import: " + a)));
1149
1148
  });
1150
1149
  };
@@ -1153,7 +1152,7 @@ const be = {
1153
1152
  props: {},
1154
1153
  mounted() {
1155
1154
  this.$nextTick(function() {
1156
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-bf52f9a1.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
1155
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-7e34686c.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
1157
1156
  window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
1158
1157
  }).catch((e) => {
1159
1158
  console.log(e.message);
@@ -1161,12 +1160,12 @@ const be = {
1161
1160
  });
1162
1161
  }
1163
1162
  }, fe = { ref: "wrapper" };
1164
- function ge(e, a, t, o, s, n) {
1165
- return u(), m("iam-accordion", fe, [
1166
- _(e.$slots, "default")
1163
+ function ge(e, a, t, i, s, o) {
1164
+ return m(), h("iam-accordion", fe, [
1165
+ v(e.$slots, "default")
1167
1166
  ], 512);
1168
1167
  }
1169
- const Fi = /* @__PURE__ */ v(be, [["render", ge]]), ye = {
1168
+ const Si = /* @__PURE__ */ y(be, [["render", ge]]), ye = {
1170
1169
  name: "AccordionItem",
1171
1170
  props: {
1172
1171
  title: {
@@ -1201,24 +1200,24 @@ const Fi = /* @__PURE__ */ v(be, [["render", ge]]), ye = {
1201
1200
  show: !this.lazy
1202
1201
  };
1203
1202
  }
1204
- }, ve = ["id"], we = ["classList"];
1205
- function _e(e, a, t, o, s, n) {
1206
- return u(), m("details", {
1207
- id: n.createID(t.title)
1203
+ }, we = ["id"], ve = ["classList"];
1204
+ function _e(e, a, t, i, s, o) {
1205
+ return m(), h("details", {
1206
+ id: o.createID(t.title)
1208
1207
  }, [
1209
1208
  f("summary", {
1210
1209
  classList: `${t.titlecolour ? `bg-${t.titlecolour}` : ""}`
1211
1210
  }, [
1212
1211
  bt($(t.title), 1),
1213
- t.badge ? (u(), m("span", {
1212
+ t.badge ? (m(), h("span", {
1214
1213
  key: 0,
1215
- class: k(`badge bg-${t.badgecolour}`)
1216
- }, $(t.badge), 3)) : w("", !0)
1217
- ], 8, we),
1218
- _(e.$slots, "default")
1219
- ], 8, ve);
1214
+ class: L(`badge bg-${t.badgecolour}`)
1215
+ }, $(t.badge), 3)) : _("", !0)
1216
+ ], 8, ve),
1217
+ v(e.$slots, "default")
1218
+ ], 8, we);
1220
1219
  }
1221
- const Pi = /* @__PURE__ */ v(ye, [["render", _e]]), Ae = {
1220
+ const qi = /* @__PURE__ */ y(ye, [["render", _e]]), xe = {
1222
1221
  name: "Header",
1223
1222
  props: {
1224
1223
  title: {
@@ -1235,36 +1234,36 @@ const Pi = /* @__PURE__ */ v(ye, [["render", _e]]), Ae = {
1235
1234
  required: !1
1236
1235
  }
1237
1236
  }
1238
- }, xe = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, Se = { class: "pt-5 pb-3 px-4" }, $e = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
1239
- function Ee(e, a, t, o, s, n) {
1240
- return u(), m("div", xe, [
1237
+ }, Ae = { class: "container" }, ke = { class: "row" }, Le = { class: "col-sm-6" }, $e = { class: "pt-5 pb-3 px-4" }, Se = { class: "col-sm-6 col-md-5 ms-auto" }, qe = ["src"];
1238
+ function Ee(e, a, t, i, s, o) {
1239
+ return m(), h("div", Ae, [
1241
1240
  f("div", {
1242
- class: k("bg-" + t.background + " mb-4")
1241
+ class: L("bg-" + t.background + " mb-4")
1243
1242
  }, [
1244
1243
  f("div", ke, [
1245
1244
  f("div", Le, [
1246
- f("div", Se, [
1245
+ f("div", $e, [
1247
1246
  f("h2", null, $(t.title), 1),
1248
- _(e.$slots, "default")
1247
+ v(e.$slots, "default")
1249
1248
  ])
1250
1249
  ]),
1251
- f("div", $e, [
1252
- t.image ? (u(), m("img", {
1250
+ f("div", Se, [
1251
+ t.image ? (m(), h("img", {
1253
1252
  key: 0,
1254
1253
  src: t.image,
1255
1254
  alt: "",
1256
1255
  class: "h-100 w-100 object-cover"
1257
- }, null, 8, qe)) : w("", !0)
1256
+ }, null, 8, qe)) : _("", !0)
1258
1257
  ])
1259
1258
  ])
1260
1259
  ], 2)
1261
1260
  ]);
1262
1261
  }
1263
- const Ii = /* @__PURE__ */ v(Ae, [["render", Ee]]), Te = {
1262
+ const Ei = /* @__PURE__ */ y(xe, [["render", Ee]]), Te = {
1264
1263
  name: "Card",
1265
1264
  mounted() {
1266
1265
  this.$nextTick(function() {
1267
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-4a8f3fbe.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-fa0d6d51.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
1266
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-3bb86b22.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-9db932b7.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
1268
1267
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1269
1268
  }).catch((e) => {
1270
1269
  console.log(e.message);
@@ -1272,240 +1271,39 @@ const Ii = /* @__PURE__ */ v(Ae, [["render", Ee]]), Te = {
1272
1271
  });
1273
1272
  }
1274
1273
  };
1275
- function He(e, a, t, o, s, n) {
1276
- return u(), m("iam-card", null, [
1277
- _(e.$slots, "default")
1274
+ function He(e, a, t, i, s, o) {
1275
+ return m(), h("iam-card", null, [
1276
+ v(e.$slots, "default")
1278
1277
  ]);
1279
1278
  }
1280
- const Me = /* @__PURE__ */ v(Te, [["render", He]]);
1281
- function je(e) {
1282
- var a;
1283
- let t = e.querySelector(".carousel__inner"), o = e.querySelectorAll(".carousel__item").length;
1284
- e.getAttribute("data-cols");
1285
- let s = e.getAttribute("data-sm-cols"), n = e.getAttribute("data-md-cols");
1286
- e.querySelector(".carousel__controls a").setAttribute("aria-current", !0), t.addEventListener("scroll", function(i) {
1287
- clearTimeout(a), a = setTimeout(function() {
1288
- let l = t.clientWidth, d = t.scrollWidth, r = t.scrollLeft, p = Math.round(r / d * o) + 1, c = e.querySelector(".carousel__item:last-child").offsetLeft;
1289
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((g, b) => {
1290
- g.removeAttribute("aria-current");
1291
- }), e.querySelector(".control-" + p).setAttribute("aria-current", !0), p == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + l > c ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1292
- }, 100);
1293
- }, !1), e.addEventListener("click", function(i) {
1294
- for (var l = i.target; l && l != this; l = l.parentNode)
1295
- if (l.matches(".carousel__controls a")) {
1296
- i.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((r, p) => {
1297
- r.removeAttribute("aria-current");
1298
- }), l.setAttribute("aria-current", !0);
1299
- const d = document.querySelector(l.getAttribute("href"));
1300
- t.scroll({
1301
- top: 0,
1302
- left: d.offsetLeft,
1303
- behavior: "smooth"
1304
- });
1305
- break;
1306
- }
1307
- }, !1), e.addEventListener("click", function(i) {
1308
- for (var l = i.target; l && l != this; l = l.parentNode)
1309
- if (l.matches(".btn-next, .btn-prev")) {
1310
- i.preventDefault();
1311
- let d = l.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
1312
- t.scroll({
1313
- top: 0,
1314
- left: d,
1315
- behavior: "smooth"
1316
- });
1317
- break;
1318
- }
1319
- }, !1), o == 1 && e.classList.add("hide-btns"), s >= o && e.classList.add("hide-sm-btns"), n >= o && e.classList.add("hide-md-btns");
1320
- }
1321
- const Ce = {
1322
- components: {
1323
- Card: Me
1324
- },
1325
- name: "Carousel",
1326
- data() {
1327
- return {
1328
- id: null
1329
- };
1330
- },
1279
+ const Ti = /* @__PURE__ */ y(Te, [["render", He]]), Me = {
1280
+ name: "Header",
1331
1281
  props: {
1332
- items: {
1333
- type: Array,
1334
- required: !1
1335
- },
1336
- cols: {
1337
- type: Number,
1338
- required: !1,
1339
- default: 1
1340
- },
1341
- smcols: {
1342
- type: Number,
1343
- required: !1,
1344
- default: 1
1345
- },
1346
- mdcols: {
1347
- type: Number,
1348
- required: !1,
1349
- default: 3
1350
- },
1351
- gap: {
1352
- type: Number,
1353
- required: !1,
1354
- default: 4
1355
- },
1356
- cardtype: {
1357
- type: String,
1358
- required: !1
1359
- },
1360
- cardclass: {
1361
- type: String,
1362
- required: !1
1363
- },
1364
- btntype: {
1365
- type: String,
1366
- required: !1
1367
- },
1368
- titleclass: {
1369
- type: String,
1370
- required: !1
1371
- },
1372
- ctatext: {
1373
- type: String,
1374
- required: !1
1375
- },
1376
- hidectatext: {
1377
- type: Boolean,
1378
- required: !1,
1379
- default: !1
1380
- },
1381
- colclass: {
1282
+ title: {
1382
1283
  type: String,
1383
- required: !1
1284
+ required: !0
1384
1285
  },
1385
- type: {
1286
+ image: {
1386
1287
  type: String,
1387
1288
  required: !1
1388
1289
  }
1389
1290
  },
1390
- computed: {
1391
- content() {
1392
- return (e) => `${e.image ? `<img src="${e.image}" alt="" />` : ""}${e.content ? e.content : ""}`;
1393
- }
1394
- },
1395
1291
  mounted() {
1396
- this.id = this._uid, this.$nextTick(function() {
1397
- je(this.$refs.wrapper);
1292
+ this.$nextTick(function() {
1293
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((e) => {
1294
+ window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", e.default);
1295
+ }).catch((e) => {
1296
+ console.log(e.message);
1297
+ });
1398
1298
  });
1399
1299
  }
1400
- }, Ne = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Re = { class: "carousel__wrapper" }, De = { class: "carousel__inner" }, ze = ["id"], Fe = ["innerHTML", "id"], Pe = ["href"], Ie = /* @__PURE__ */ f("button", {
1401
- class: "btn btn-prev",
1402
- "data-go": "0",
1403
- disabled: ""
1404
- }, "Prev", -1), Oe = /* @__PURE__ */ f("button", {
1405
- class: "btn btn-next",
1406
- "data-go": "2"
1407
- }, "Next", -1);
1408
- function Be(e, a, t, o, s, n) {
1409
- const i = I("Card");
1410
- return u(), m("div", {
1411
- class: "container carousel",
1412
- id: "carousel" + s.id,
1413
- ref: "wrapper",
1414
- "data-cols": t.cols,
1415
- "data-sm-cols": t.smcols,
1416
- "data-md-cols": t.mdcols
1417
- }, [
1418
- _(e.$slots, "default"),
1419
- f("div", Re, [
1420
- f("div", De, [
1421
- t.type == "card" ? (u(), m("div", {
1422
- key: 0,
1423
- class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1424
- }, [
1425
- (u(!0), m(H, null, M(t.items, (l, d) => (u(), m("div", {
1426
- class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1427
- key: d,
1428
- id: "carousel" + s.id + "slide" + (d + 1)
1429
- }, [
1430
- j(i, C(l, {
1431
- class: t.cardclass,
1432
- type: t.cardtype,
1433
- btnyype: t.btntype,
1434
- titleclass: t.titleclass,
1435
- ctatext: t.ctatext,
1436
- hidectatext: t.hidectatext
1437
- }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1438
- ], 10, ze))), 128))
1439
- ], 2)) : w("", !0),
1440
- t.type != "card" ? (u(), m("div", {
1441
- key: 1,
1442
- class: k(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1443
- }, [
1444
- (u(!0), m(H, null, M(t.items, (l, d) => (u(), m("div", {
1445
- class: k(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1446
- key: d,
1447
- innerHTML: n.content(l),
1448
- id: "carousel" + s.id + "slide" + (d + 1)
1449
- }, null, 10, Fe))), 128))
1450
- ], 2)) : w("", !0)
1451
- ]),
1452
- f("div", {
1453
- class: k(`carousel__controls cols-${t.cols} cols-sm-${t.smcols} cols-md-${t.mdcols}`)
1454
- }, [
1455
- (u(!0), m(H, null, M(t.items, (l, d) => (u(), m("a", {
1456
- key: d,
1457
- href: "#carousel" + s.id + "slide" + (d + 1),
1458
- class: k(`control-${d + 1}`)
1459
- }, "Slide " + $(d + 1), 11, Pe))), 128))
1460
- ], 2),
1461
- Ie,
1462
- Oe
1463
- ])
1464
- ], 8, Ne);
1465
- }
1466
- const Oi = /* @__PURE__ */ v(Ce, [["render", Be]]);
1467
- /*!
1468
- * iamKey v5.1.0-beta
1469
- * Copyright 2022-2023 iamproperty
1470
- */
1471
- window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
1472
- class Ue extends HTMLElement {
1473
- constructor() {
1474
- super(), this.attachShadow({ mode: "open" });
1475
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
1476
- o.innerHTML = `
1477
- <style>
1478
- @import "${t}";
1479
- :host{padding-top:0 !important;margin-bottom:2rem}.header-banner{background:linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);position:relative;overflow:hidden;max-width:100% !important}@media screen and (min-width: 62em){.header-banner{min-height:29.375rem}}.header-banner>.container{padding-bottom:0;position:relative}.header-banner .breadcrumb{margin-top:1.5rem;margin-bottom:-0.5rem}@media screen and (min-width: 62em){.header-banner .breadcrumb{position:absolute;top:0;left:3.75rem}}.header-banner__inner{--colour-muted: #9d9d9d;--colour-body: #595959;--colour-border: #D8D8D8;--colour-link: var(--colour-primary-theme);--colour-brand: var(--colour-primary-theme);--colour-underline: var(--colour-secondary);--colour-heading: var(--colour-primary);--colour-focus: var(--colour-primary-theme);--colour-hover: var(--colour-primary-theme);--colour-active: var(--colour-primary-theme);--colour-selected: var(--colour-info);--colour-inverted: #FCFCFC;--colour-btn: var(--colour-primary-theme);--colour-btn-bg: var(--colour-warning);--colour-btn-border: var(--colour-warning);--colour-btn-bg-hover: transparent;--colour-btn-hover: var(--colour-primary-theme);--colour-btn-secondary: var(--colour-primary-theme);--colour-btn-secondary-border: var(--colour-primary-theme);--colour-btn-secondary-bg: transparent;--colour-btn-secondary-bg-hover: var(--colour-primary-theme);--colour-btn-secondary-hover: var(--colour-inverted);--colour-canvas-2: white;--colour-btn-action-hover-bg: var(--colour-light);color:var(--colour-body);background:#fff;padding:2rem;margin:1.875rem 0;position:relative;z-index:var(--index-above)}.header-banner__inner .text-primary{color:var(--colour-primary) !important}@media screen and (min-width: 62em){.header-banner__inner{max-width:37.5rem;margin:7rem 0 5rem 0;padding:3.5rem 4rem}}.header-banner__inner>*:last-child{padding-bottom:0;margin-bottom:0}.header-banner picture img{display:none}@media screen and (min-width: 62em){.header-banner picture img{display:block;position:absolute;top:-0.5%;left:40%;height:101%;object-fit:cover;width:60%;pointer-events:none}}::slotted(.breadcrumb){margin-top:1.5rem !important;margin-bottom:-0.5rem !important}@media screen and (min-width: 62em){::slotted(.breadcrumb){position:absolute !important;top:0 !important;left:5.25rem !important}}::slotted(*:last-child){padding-bottom:0 !important;margin-bottom:0 !important}/*# sourceMappingURL=assets/css/components/header.css.map */
1480
-
1481
- ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
1482
- </style>
1483
- <div class="header-banner">
1484
- <div class="container" part="container">
1485
- <slot name="breadcrumb"></slot>
1486
- <div class="header-banner__inner">
1487
- <slot></slot>
1488
- </div>
1489
- </div>
1490
- <picture>
1491
- <!-- Actual image only loaded on desktops -->
1492
- <source srcset="" media="(min-width: 62em)">
1493
- <!-- Placeholder image -->
1494
- <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />
1495
- </picture>
1496
- </div>
1497
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
1498
- }
1499
- connectedCallback() {
1500
- this.classList.add("loaded");
1501
- const a = this.shadowRoot.querySelector("picture"), t = this.shadowRoot.querySelector("picture source");
1502
- this.hasAttribute("image") ? t.setAttribute("srcset", this.getAttribute("image")) : a.remove();
1503
- }
1300
+ };
1301
+ function je(e, a, t, i, s, o) {
1302
+ return m(), h("iam-carousel", null, [
1303
+ v(e.$slots, "default")
1304
+ ]);
1504
1305
  }
1505
- const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1506
- __proto__: null,
1507
- default: Ue
1508
- }, Symbol.toStringTag, { value: "Module" })), We = {
1306
+ const Hi = /* @__PURE__ */ y(Me, [["render", je]]), Ce = {
1509
1307
  name: "Header",
1510
1308
  props: {
1511
1309
  title: {
@@ -1519,48 +1317,45 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1519
1317
  },
1520
1318
  mounted() {
1521
1319
  this.$nextTick(function() {
1522
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-780164cb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => Promise.resolve().then(() => Ve) }), "../../../assets/js/components/header/header.component.js").then((e) => {
1320
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-71c8b950.mjs") }), "../../../assets/js/components/header/header.component.js").then((e) => {
1523
1321
  window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
1524
1322
  }).catch((e) => {
1525
1323
  console.log(e.message);
1526
1324
  });
1527
1325
  });
1528
1326
  }
1529
- }, Ge = ["image"], Ke = ["innerHTML"];
1530
- function Ye(e, a, t, o, s, n) {
1531
- return u(), m("iam-header", {
1532
- class: "bg-secondary",
1533
- image: t.image
1534
- }, [
1535
- _(e.$slots, "breadcrumb"),
1536
- t.title ? (u(), m("h1", {
1327
+ }, De = ["image"], Re = ["innerHTML"];
1328
+ function Ne(e, a, t, i, s, o) {
1329
+ return m(), h("iam-header", { image: t.image }, [
1330
+ v(e.$slots, "breadcrumb"),
1331
+ t.title ? (m(), h("h1", {
1537
1332
  key: 0,
1538
1333
  innerHTML: t.title
1539
- }, null, 8, Ke)) : w("", !0),
1540
- _(e.$slots, "default")
1541
- ], 8, Ge);
1334
+ }, null, 8, Re)) : _("", !0),
1335
+ v(e.$slots, "default")
1336
+ ], 8, De);
1542
1337
  }
1543
- const Bi = /* @__PURE__ */ v(We, [["render", Ye]]);
1544
- function Xe(e) {
1338
+ const Mi = /* @__PURE__ */ y(Ce, [["render", Ne]]);
1339
+ function ze(e) {
1545
1340
  var a;
1546
- const t = e.querySelector(".testimonial__images"), o = t.querySelectorAll("img").length;
1547
- if (o == 1)
1341
+ const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
1342
+ if (i == 1)
1548
1343
  return !1;
1549
1344
  e.classList.add("testimonial--multi");
1550
- const s = function(n) {
1551
- const i = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1552
- i.setAttribute("data-go", n + 1), l.setAttribute("data-go", n - 1), i.removeAttribute("disabled"), l.removeAttribute("disabled"), n == 1 ? l.setAttribute("disabled", !0) : n == o && i.setAttribute("disabled", !0);
1345
+ const s = function(o) {
1346
+ const n = e.querySelector(".btn-next"), l = e.querySelector(".btn-prev");
1347
+ n.setAttribute("data-go", o + 1), l.setAttribute("data-go", o - 1), n.removeAttribute("disabled"), l.removeAttribute("disabled"), o == 1 ? l.setAttribute("disabled", !0) : o == i && n.setAttribute("disabled", !0);
1553
1348
  };
1554
- t.addEventListener("scroll", function(n) {
1349
+ t.addEventListener("scroll", function(o) {
1555
1350
  clearTimeout(a), a = setTimeout(function() {
1556
- let i = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / i * o) + 1;
1557
- d == 0 && r != 0 && (p = Math.round(r / l * o) + 1), e.setAttribute("data-show", p), s(p);
1351
+ let n = t.scrollWidth, l = t.scrollHeight, d = t.scrollLeft, r = t.scrollTop, p = Math.round(d / n * i) + 1;
1352
+ d == 0 && r != 0 && (p = Math.round(r / l * i) + 1), e.setAttribute("data-show", p), s(p);
1558
1353
  }, 300);
1559
- }, !1), e.addEventListener("click", function(n) {
1560
- for (var i = n.target; i && i != this; i = i.parentNode)
1561
- if (i.matches("[data-go]")) {
1562
- let l = parseInt(i.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
1563
- p > c ? r = Math.floor(p * ((l - 1) / o)) : d = Math.floor(c * ((l - 1) / o)), t.scroll({
1354
+ }, !1), e.addEventListener("click", function(o) {
1355
+ for (var n = o.target; n && n != this; n = n.parentNode)
1356
+ if (n.matches("[data-go]")) {
1357
+ let l = parseInt(n.getAttribute("data-go")), d = 0, r = 0, p = t.scrollWidth, c = t.scrollHeight;
1358
+ p > c ? r = Math.floor(p * ((l - 1) / i)) : d = Math.floor(c * ((l - 1) / i)), t.scroll({
1564
1359
  top: d,
1565
1360
  left: r,
1566
1361
  behavior: "smooth"
@@ -1569,7 +1364,7 @@ function Xe(e) {
1569
1364
  }
1570
1365
  }, !1);
1571
1366
  }
1572
- const Je = {
1367
+ const Fe = {
1573
1368
  name: "Testimonial",
1574
1369
  props: {
1575
1370
  items: {
@@ -1583,13 +1378,13 @@ const Je = {
1583
1378
  }
1584
1379
  },
1585
1380
  mounted() {
1586
- Xe(this.$refs.wrapper);
1381
+ ze(this.$refs.wrapper);
1587
1382
  }
1588
- }, Qe = {
1383
+ }, Pe = {
1589
1384
  class: "container testimonial mb-5",
1590
1385
  "data-show": "1",
1591
1386
  ref: "wrapper"
1592
- }, Ze = { class: "row" }, ta = { class: "col-md-5 position-relative" }, ea = { class: "testimonial__images" }, aa = ["src"], ia = /* @__PURE__ */ f("div", { class: "testimonial__controls" }, [
1387
+ }, Ie = { class: "row" }, Oe = { class: "col-md-5 position-relative" }, Be = { class: "testimonial__images" }, Ue = ["src"], Ve = /* @__PURE__ */ f("div", { class: "testimonial__controls" }, [
1593
1388
  /* @__PURE__ */ f("button", {
1594
1389
  "data-go": "0",
1595
1390
  disabled: "",
@@ -1599,50 +1394,50 @@ const Je = {
1599
1394
  "data-go": "2",
1600
1395
  class: "btn-next"
1601
1396
  }, "Next")
1602
- ], -1), oa = { class: "col-md-7" }, na = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), ra = { class: "testimonial__content" }, sa = ["innerHTML"], la = ["innerHTML"], da = { class: "testimonial__after" }, ca = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1603
- function ua(e, a, t, o, s, n) {
1604
- return u(), m("div", Qe, [
1397
+ ], -1), We = { class: "col-md-7" }, Ke = /* @__PURE__ */ f("h2", null, "What our customers think…", -1), Ge = { class: "testimonial__content" }, Ye = ["innerHTML"], Xe = ["innerHTML"], Je = { class: "testimonial__after" }, Qe = /* @__PURE__ */ f("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
1398
+ function Ze(e, a, t, i, s, o) {
1399
+ return m(), h("div", Pe, [
1605
1400
  f("div", {
1606
- class: k("bg-" + t.background)
1401
+ class: L("bg-" + t.background)
1607
1402
  }, [
1608
- f("div", Ze, [
1609
- f("div", ta, [
1610
- f("div", ea, [
1611
- (u(!0), m(H, null, M(t.items, (i, l) => (u(), m("img", {
1403
+ f("div", Ie, [
1404
+ f("div", Oe, [
1405
+ f("div", Be, [
1406
+ (m(!0), h(D, null, R(t.items, (n, l) => (m(), h("img", {
1612
1407
  key: l,
1613
- src: i.image ? i.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1408
+ src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1614
1409
  alt: "",
1615
- class: k("h-100 w-100 object-cover" + (i.image ? "" : " opacity-0"))
1616
- }, null, 10, aa))), 128))
1410
+ class: L("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
1411
+ }, null, 10, Ue))), 128))
1617
1412
  ]),
1618
- ia
1413
+ Ve
1619
1414
  ]),
1620
- f("div", oa, [
1621
- na,
1622
- f("div", ra, [
1623
- (u(!0), m(H, null, M(t.items, (i, l) => (u(), m("blockquote", {
1415
+ f("div", We, [
1416
+ Ke,
1417
+ f("div", Ge, [
1418
+ (m(!0), h(D, null, R(t.items, (n, l) => (m(), h("blockquote", {
1624
1419
  key: l,
1625
- class: k(i.class)
1420
+ class: L(n.class)
1626
1421
  }, [
1627
1422
  f("div", {
1628
- innerHTML: i.quote
1629
- }, null, 8, sa),
1423
+ innerHTML: n.quote
1424
+ }, null, 8, Ye),
1630
1425
  f("cite", {
1631
- innerHTML: i.cite
1632
- }, null, 8, la)
1426
+ innerHTML: n.cite
1427
+ }, null, 8, Xe)
1633
1428
  ], 2))), 128))
1634
1429
  ]),
1635
- f("div", da, [
1636
- _(e.$slots, "default")
1430
+ f("div", Je, [
1431
+ v(e.$slots, "default")
1637
1432
  ])
1638
1433
  ])
1639
1434
  ]),
1640
- ca
1435
+ Qe
1641
1436
  ], 2)
1642
1437
  ], 512);
1643
1438
  }
1644
- const Ui = /* @__PURE__ */ v(Je, [["render", ua]]);
1645
- const ma = {
1439
+ const ji = /* @__PURE__ */ y(Fe, [["render", Ze]]);
1440
+ const ta = {
1646
1441
  name: "Timeline",
1647
1442
  props: {
1648
1443
  image: {
@@ -1650,21 +1445,21 @@ const ma = {
1650
1445
  required: !1
1651
1446
  }
1652
1447
  }
1653
- }, ha = { class: "timeline" }, pa = { class: "timeline__content" }, ba = ["src"];
1654
- function fa(e, a, t, o, s, n) {
1655
- return u(), m("div", ha, [
1656
- f("div", pa, [
1657
- _(e.$slots, "default")
1448
+ }, ea = { class: "timeline" }, aa = { class: "timeline__content" }, ia = ["src"];
1449
+ function na(e, a, t, i, s, o) {
1450
+ return m(), h("div", ea, [
1451
+ f("div", aa, [
1452
+ v(e.$slots, "default")
1658
1453
  ]),
1659
- t.image ? (u(), m("img", {
1454
+ t.image ? (m(), h("img", {
1660
1455
  key: 0,
1661
1456
  src: t.image,
1662
1457
  alt: ""
1663
- }, null, 8, ba)) : w("", !0)
1458
+ }, null, 8, ia)) : _("", !0)
1664
1459
  ]);
1665
1460
  }
1666
- const Vi = /* @__PURE__ */ v(ma, [["render", fa]]);
1667
- const ga = {
1461
+ const Ci = /* @__PURE__ */ y(ta, [["render", na]]);
1462
+ const oa = {
1668
1463
  components: {
1669
1464
  Input: st
1670
1465
  },
@@ -1810,46 +1605,46 @@ const ga = {
1810
1605
  ];
1811
1606
  }
1812
1607
  }
1813
- }, ya = {
1608
+ }, ra = {
1814
1609
  class: "container",
1815
1610
  ref: "wrapper"
1816
- }, va = { class: "property-searchbar" }, wa = ["action", "method"], _a = { class: "col-12 col-md-3" }, Aa = { class: "col-12 col-md" }, xa = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ka = {
1611
+ }, sa = { class: "property-searchbar" }, la = ["action", "method"], da = { class: "col-12 col-md-3" }, ca = { class: "col-12 col-md" }, ua = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ma = {
1817
1612
  class: "row",
1818
1613
  "data-input-range": ""
1819
- }, La = { class: "col-12 col-md" }, Sa = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), $a = {
1614
+ }, ha = { class: "col-12 col-md" }, pa = /* @__PURE__ */ f("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), ba = {
1820
1615
  class: "row",
1821
1616
  "data-input-range": ""
1822
- }, qa = { class: "col-12 col-md-2" }, Ea = /* @__PURE__ */ f("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1617
+ }, fa = { class: "col-12 col-md-2" }, ga = /* @__PURE__ */ f("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
1823
1618
  /* @__PURE__ */ f("button", {
1824
1619
  class: "btn w-100 me-0",
1825
1620
  type: "submit",
1826
1621
  value: "submit"
1827
1622
  }, "Search")
1828
1623
  ], -1);
1829
- function Ta(e, a, t, o, s, n) {
1830
- const i = I("Input");
1831
- return u(), m("div", ya, [
1832
- _(e.$slots, "default"),
1833
- f("div", va, [
1624
+ function ya(e, a, t, i, s, o) {
1625
+ const n = K("Input");
1626
+ return m(), h("div", ra, [
1627
+ v(e.$slots, "default"),
1628
+ f("div", sa, [
1834
1629
  f("form", {
1835
1630
  class: "row",
1836
1631
  action: t.formaction,
1837
1632
  method: t.formmethod
1838
1633
  }, [
1839
- f("fieldset", _a, [
1840
- j(i, {
1634
+ f("fieldset", da, [
1635
+ M(n, {
1841
1636
  inputClass: "input--locations",
1842
- modelValue: n.locationSet,
1843
- "onUpdate:modelValue": a[0] || (a[0] = (l) => n.locationSet = l),
1637
+ modelValue: o.locationSet,
1638
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.locationSet = l),
1844
1639
  label: "Location",
1845
1640
  id: "location",
1846
- options: n.locationsList(),
1641
+ options: o.locationsList(),
1847
1642
  required: "",
1848
1643
  placeholder: "i.e. Newcastle or NE1",
1849
- onKeyupEvent: a[1] || (a[1] = (l) => n.locationKeyup(...arguments)),
1644
+ onKeyupEvent: a[1] || (a[1] = (l) => o.locationKeyup(...arguments)),
1850
1645
  ref: "search"
1851
1646
  }, null, 8, ["modelValue", "options"]),
1852
- j(i, {
1647
+ M(n, {
1853
1648
  class: "select--miles",
1854
1649
  label: "Miles",
1855
1650
  id: "miles",
@@ -1857,10 +1652,10 @@ function Ta(e, a, t, o, s, n) {
1857
1652
  options: t.distances
1858
1653
  }, null, 8, ["options"])
1859
1654
  ]),
1860
- f("fieldset", Aa, [
1861
- xa,
1862
- f("div", ka, [
1863
- j(i, {
1655
+ f("fieldset", ca, [
1656
+ ua,
1657
+ f("div", ma, [
1658
+ M(n, {
1864
1659
  class: "col-6",
1865
1660
  label: "Minimum price",
1866
1661
  id: "price-min",
@@ -1868,7 +1663,7 @@ function Ta(e, a, t, o, s, n) {
1868
1663
  type: "select",
1869
1664
  options: t.pricemin
1870
1665
  }, null, 8, ["options"]),
1871
- j(i, {
1666
+ M(n, {
1872
1667
  class: "col-6",
1873
1668
  label: "Maximum price",
1874
1669
  id: "price-max",
@@ -1878,10 +1673,10 @@ function Ta(e, a, t, o, s, n) {
1878
1673
  }, null, 8, ["options"])
1879
1674
  ])
1880
1675
  ]),
1881
- f("fieldset", La, [
1882
- Sa,
1883
- f("div", $a, [
1884
- j(i, {
1676
+ f("fieldset", ha, [
1677
+ pa,
1678
+ f("div", ba, [
1679
+ M(n, {
1885
1680
  class: "col-6",
1886
1681
  label: "Minimum beds",
1887
1682
  id: "beds-min",
@@ -1889,7 +1684,7 @@ function Ta(e, a, t, o, s, n) {
1889
1684
  type: "select",
1890
1685
  options: t.bedsmin
1891
1686
  }, null, 8, ["options"]),
1892
- j(i, {
1687
+ M(n, {
1893
1688
  class: "col-6",
1894
1689
  label: "Maximum beds",
1895
1690
  id: "beds-max",
@@ -1899,26 +1694,26 @@ function Ta(e, a, t, o, s, n) {
1899
1694
  }, null, 8, ["options"])
1900
1695
  ])
1901
1696
  ]),
1902
- f("fieldset", qa, [
1903
- j(i, {
1697
+ f("fieldset", fa, [
1698
+ M(n, {
1904
1699
  label: "Property type",
1905
1700
  id: "property-type",
1906
1701
  type: "select",
1907
1702
  options: t.propertytypes
1908
1703
  }, null, 8, ["options"])
1909
1704
  ]),
1910
- Ea
1911
- ], 8, wa)
1705
+ ga
1706
+ ], 8, la)
1912
1707
  ]),
1913
- _(e.$slots, "after")
1708
+ v(e.$slots, "after")
1914
1709
  ], 512);
1915
1710
  }
1916
- const Wi = /* @__PURE__ */ v(ga, [["render", Ta]]), Ha = {
1711
+ const Di = /* @__PURE__ */ y(oa, [["render", ya]]), wa = {
1917
1712
  components: {},
1918
1713
  name: "Nav",
1919
1714
  mounted() {
1920
1715
  this.$nextTick(function() {
1921
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-8f91e8a0.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-1f765524.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
1716
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-1df4a8b8.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
1922
1717
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1923
1718
  }).catch((e) => {
1924
1719
  console.log(e.message);
@@ -1926,14 +1721,14 @@ const Wi = /* @__PURE__ */ v(ga, [["render", Ta]]), Ha = {
1926
1721
  });
1927
1722
  },
1928
1723
  methods: {}
1929
- }, Ma = { ref: "wrapper" };
1930
- function ja(e, a, t, o, s, n) {
1931
- return u(), m("iam-nav", Ma, [
1932
- _(e.$slots, "default")
1724
+ }, va = { ref: "wrapper" };
1725
+ function _a(e, a, t, i, s, o) {
1726
+ return m(), h("iam-nav", va, [
1727
+ v(e.$slots, "default")
1933
1728
  ], 512);
1934
1729
  }
1935
- const Gi = /* @__PURE__ */ v(Ha, [["render", ja]]);
1936
- const Ca = {
1730
+ const Ri = /* @__PURE__ */ y(wa, [["render", _a]]);
1731
+ const xa = {
1937
1732
  name: "Stepper",
1938
1733
  props: {
1939
1734
  label: {
@@ -1946,26 +1741,26 @@ const Ca = {
1946
1741
  default: "Complete"
1947
1742
  }
1948
1743
  }
1949
- }, Na = { class: "container" }, Ra = ["aria-label"], Da = {
1744
+ }, Aa = { class: "container" }, ka = ["aria-label"], La = {
1950
1745
  key: 0,
1951
1746
  class: "h6 stepper__start"
1952
- }, za = { class: "list-unstyled" }, Fa = { class: "h6 stepper__end" };
1953
- function Pa(e, a, t, o, s, n) {
1954
- return u(), m("div", Na, [
1747
+ }, $a = { class: "list-unstyled" }, Sa = { class: "h6 stepper__end" };
1748
+ function qa(e, a, t, i, s, o) {
1749
+ return m(), h("div", Aa, [
1955
1750
  f("nav", {
1956
1751
  class: "stepper",
1957
1752
  "aria-label": t.label ? t.label : "Progress"
1958
1753
  }, [
1959
- t.label ? (u(), m("span", Da, $(t.label), 1)) : w("", !0),
1960
- f("ol", za, [
1961
- _(e.$slots, "default")
1754
+ t.label ? (m(), h("span", La, $(t.label), 1)) : _("", !0),
1755
+ f("ol", $a, [
1756
+ v(e.$slots, "default")
1962
1757
  ]),
1963
- f("span", Fa, $(t.endlabel), 1)
1964
- ], 8, Ra)
1758
+ f("span", Sa, $(t.endlabel), 1)
1759
+ ], 8, ka)
1965
1760
  ]);
1966
1761
  }
1967
- const Ki = /* @__PURE__ */ v(Ca, [["render", Pa]]);
1968
- const Ia = {
1762
+ const Ni = /* @__PURE__ */ y(xa, [["render", qa]]);
1763
+ const Ea = {
1969
1764
  name: "Snapshot",
1970
1765
  props: {
1971
1766
  items: {
@@ -1973,33 +1768,33 @@ const Ia = {
1973
1768
  required: !0
1974
1769
  }
1975
1770
  }
1976
- }, Oa = {
1771
+ }, Ta = {
1977
1772
  class: "container snapshot",
1978
1773
  ref: "wrapper"
1979
- }, Ba = { class: "row" }, Ua = ["href"], Va = { class: "lead snapshot__title" }, Wa = { class: "stat" };
1980
- function Ga(e, a, t, o, s, n) {
1981
- return u(), m("div", Oa, [
1982
- _(e.$slots, "default"),
1983
- f("div", Ba, [
1984
- (u(!0), m(H, null, M(t.items, (i, l) => (u(), m("div", {
1774
+ }, Ha = { class: "row" }, Ma = ["href"], ja = { class: "lead snapshot__title" }, Ca = { class: "stat" };
1775
+ function Da(e, a, t, i, s, o) {
1776
+ return m(), h("div", Ta, [
1777
+ v(e.$slots, "default"),
1778
+ f("div", Ha, [
1779
+ (m(!0), h(D, null, R(t.items, (n, l) => (m(), h("div", {
1985
1780
  class: "col",
1986
1781
  key: l
1987
1782
  }, [
1988
- i.link ? (u(), m("a", {
1783
+ n.link ? (m(), h("a", {
1989
1784
  key: 0,
1990
- href: i.link
1991
- }, "View " + $(i.title), 9, Ua)) : w("", !0),
1785
+ href: n.link
1786
+ }, "View " + $(n.title), 9, Ma)) : _("", !0),
1992
1787
  f("div", {
1993
- class: k(`snapshot__item ${i.bg ? "bg-" + i.bg : ""}`)
1788
+ class: L(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
1994
1789
  }, [
1995
- f("span", Va, $(i.title), 1),
1996
- f("span", Wa, $(i.number), 1)
1790
+ f("span", ja, $(n.title), 1),
1791
+ f("span", Ca, $(n.number), 1)
1997
1792
  ], 2)
1998
1793
  ]))), 128))
1999
1794
  ])
2000
1795
  ], 512);
2001
1796
  }
2002
- const Yi = /* @__PURE__ */ v(Ia, [["render", Ga]]), Ka = {
1797
+ const zi = /* @__PURE__ */ y(Ea, [["render", Da]]), Ra = {
2003
1798
  name: "Stepper",
2004
1799
  props: {
2005
1800
  url: {
@@ -2015,43 +1810,43 @@ const Yi = /* @__PURE__ */ v(Ia, [["render", Ga]]), Ka = {
2015
1810
  required: !1
2016
1811
  }
2017
1812
  }
2018
- }, Ya = ["href", "aria-current"], Xa = {
1813
+ }, Na = ["href", "aria-current"], za = {
2019
1814
  key: 0,
2020
1815
  class: "visually-hidden"
2021
1816
  };
2022
- function Ja(e, a, t, o, s, n) {
2023
- return u(), m("li", null, [
1817
+ function Fa(e, a, t, i, s, o) {
1818
+ return m(), h("li", null, [
2024
1819
  f("a", {
2025
1820
  href: t.url,
2026
- class: k(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
1821
+ class: L(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
2027
1822
  "aria-current": typeof t.current < "u" ? "step" : !1
2028
1823
  }, [
2029
1824
  f("span", null, [
2030
- _(e.$slots, "default")
1825
+ v(e.$slots, "default")
2031
1826
  ]),
2032
- t.status ? (u(), m("em", Xa, " - status: " + $(t.status), 1)) : w("", !0)
2033
- ], 10, Ya)
1827
+ t.status ? (m(), h("em", za, " - status: " + $(t.status), 1)) : _("", !0)
1828
+ ], 10, Na)
2034
1829
  ]);
2035
1830
  }
2036
- const Xi = /* @__PURE__ */ v(Ka, [["render", Ja]]);
2037
- const Qa = {
1831
+ const Fi = /* @__PURE__ */ y(Ra, [["render", Fa]]);
1832
+ const Pa = {
2038
1833
  name: "Tabs",
2039
1834
  mounted() {
2040
1835
  this.$nextTick(function() {
2041
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-47c8530b.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
1836
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-8dcdde59.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
2042
1837
  window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
2043
1838
  }).catch((e) => {
2044
1839
  console.log(e.message);
2045
1840
  });
2046
1841
  });
2047
1842
  }
2048
- }, Za = { ref: "wrapper" };
2049
- function ti(e, a, t, o, s, n) {
2050
- return u(), m("iam-tabs", Za, [
2051
- _(e.$slots, "default")
1843
+ }, Ia = { ref: "wrapper" };
1844
+ function Oa(e, a, t, i, s, o) {
1845
+ return m(), h("iam-tabs", Ia, [
1846
+ v(e.$slots, "default")
2052
1847
  ], 512);
2053
1848
  }
2054
- const Ji = /* @__PURE__ */ v(Qa, [["render", ti]]), ei = {
1849
+ const Pi = /* @__PURE__ */ y(Pa, [["render", Oa]]), Ba = {
2055
1850
  name: "Tab",
2056
1851
  props: {
2057
1852
  title: {
@@ -2073,20 +1868,20 @@ const Ji = /* @__PURE__ */ v(Qa, [["render", ti]]), ei = {
2073
1868
  isDisabled: !!this.disabled
2074
1869
  };
2075
1870
  }
2076
- }, ai = { class: "tab" }, ii = ["innerHTML"];
2077
- function oi(e, a, t, o, s, n) {
2078
- return u(), m("details", ai, [
1871
+ }, Ua = { class: "tab" }, Va = ["innerHTML"];
1872
+ function Wa(e, a, t, i, s, o) {
1873
+ return m(), h("details", Ua, [
2079
1874
  f("summary", {
2080
1875
  innerHTML: t.title,
2081
- class: k({ disabled: s.isDisabled })
2082
- }, null, 10, ii),
2083
- _(e.$slots, "default")
1876
+ class: L({ disabled: s.isDisabled })
1877
+ }, null, 10, Va),
1878
+ v(e.$slots, "default")
2084
1879
  ]);
2085
1880
  }
2086
- const Qi = /* @__PURE__ */ v(ei, [["render", oi]]);
1881
+ const Ii = /* @__PURE__ */ y(Ba, [["render", Wa]]);
2087
1882
  let lt = rt.props;
2088
1883
  lt.fields.required = !1;
2089
- const ni = {
1884
+ const Ka = {
2090
1885
  components: {
2091
1886
  Table: rt,
2092
1887
  Input: st
@@ -2102,9 +1897,9 @@ const ni = {
2102
1897
  console.log(this);
2103
1898
  const a = new FormData(e.target);
2104
1899
  let t = /* @__PURE__ */ new Date();
2105
- const o = t.getFullYear();
2106
- let s = t.getMonth() + 1, n = t.getDate();
2107
- n < 10 && (n = "0" + n), s < 10 && (s = "0" + s), t = n + "/" + s + "/" + o, this.itemsData.unshift({
1900
+ const i = t.getFullYear();
1901
+ let s = t.getMonth() + 1, o = t.getDate();
1902
+ o < 10 && (o = "0" + o), s < 10 && (s = "0" + s), t = o + "/" + s + "/" + i, this.itemsData.unshift({
2108
1903
  date_added: t,
2109
1904
  user: a.get("user"),
2110
1905
  note: a.get("addNote")
@@ -2132,111 +1927,111 @@ const ni = {
2132
1927
  required: !1
2133
1928
  }
2134
1929
  }
2135
- }, ri = { class: "container note-feed mb-2" }, si = ["innerHTML"], li = ["action", "method"], di = ["value"], ci = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2136
- function ui(e, a, t, o, s, n) {
2137
- const i = I("Table"), l = I("Input");
2138
- return u(), m("div", ri, [
2139
- t.title ? (u(), m("span", {
1930
+ }, Ga = { class: "container note-feed mb-2" }, Ya = ["innerHTML"], Xa = ["action", "method"], Ja = ["value"], Qa = /* @__PURE__ */ f("button", { class: "btn btn-tertiary" }, "Submit note", -1);
1931
+ function Za(e, a, t, i, s, o) {
1932
+ const n = K("Table"), l = K("Input");
1933
+ return m(), h("div", Ga, [
1934
+ t.title ? (m(), h("span", {
2140
1935
  key: 0,
2141
1936
  class: "h3",
2142
1937
  innerHTML: t.title
2143
- }, null, 8, si)) : w("", !0),
2144
- j(i, C({
1938
+ }, null, 8, Ya)) : _("", !0),
1939
+ M(n, C({
2145
1940
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2146
1941
  items: s.itemsData
2147
1942
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2148
1943
  f("form", {
2149
1944
  action: t.action,
2150
1945
  method: t.method,
2151
- onSubmit: a[0] || (a[0] = ft((d) => n.submitForm(...arguments), ["prevent"]))
1946
+ onSubmit: a[0] || (a[0] = ft((d) => o.submitForm(...arguments), ["prevent"]))
2152
1947
  }, [
2153
1948
  f("input", {
2154
1949
  type: "hidden",
2155
1950
  value: t.user,
2156
1951
  name: "user"
2157
- }, null, 8, di),
2158
- j(l, {
1952
+ }, null, 8, Ja),
1953
+ M(l, {
2159
1954
  id: "addNote",
2160
1955
  type: "textarea",
2161
1956
  label: "Add note",
2162
1957
  required: "",
2163
1958
  class: "mw-100"
2164
1959
  }),
2165
- ci
2166
- ], 40, li)
1960
+ Qa
1961
+ ], 40, Xa)
2167
1962
  ]);
2168
1963
  }
2169
- const Zi = /* @__PURE__ */ v(ni, [["render", ui]]);
1964
+ const Oi = /* @__PURE__ */ y(Ka, [["render", Za]]);
2170
1965
  /*!
2171
- * iamKey v5.1.0-beta
1966
+ * iamKey v5.1.0-beta10
2172
1967
  * Copyright 2022-2023 iamproperty
2173
1968
  */
2174
- function mi(e, a) {
2175
- function t(o, s) {
2176
- let n = !1, i = s.getAttribute("name");
2177
- i.includes("[]") && (i = i.replace("[]", `[${s.value}]`));
2178
- let l = o.querySelector(`[data-name="${i}"]`);
2179
- l && s.getAttribute("type") == "checkbox" && (n = !s.checked);
1969
+ function ti(e, a) {
1970
+ function t(i, s) {
1971
+ let o = !1, n = s.getAttribute("name");
1972
+ n.includes("[]") && (n = n.replace("[]", `[${s.value}]`));
1973
+ let l = i.querySelector(`[data-name="${n}"]`);
1974
+ l && s.getAttribute("type") == "checkbox" && (o = !s.checked);
2180
1975
  let d = s.getAttribute("data-filter-text");
2181
- if (l || (l = document.createElement("button"), o.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", i), l.innerHTML = d.replace("$value", s.value), (!s.value || n) && l.remove(), s.parentNode.closest("[data-filter-text]")) {
1976
+ if (l || (l = document.createElement("button"), i.appendChild(l)), l.setAttribute("type", "button"), l.classList.add("filter"), l.setAttribute("data-name", n), l.innerHTML = d.replace("$value", s.value), (!s.value || o) && l.remove(), s.parentNode.closest("[data-filter-text]")) {
2182
1977
  let r = s.parentNode.closest("[data-filter-text]"), p = !0;
2183
- if (i = "", r.querySelectorAll("input").forEach((c, g) => {
2184
- let b = c.getAttribute("name");
2185
- if (i += `${g != 0 ? "," : ""}${b}`, o.querySelector(`[data-name="${b}"]`) && o.querySelector(`[data-name="${b}"]`).remove(), c.value) {
2186
- let h = document.createElement("button");
2187
- h.setAttribute("type", "button"), h.classList.add("filter"), h.setAttribute("data-name", b), h.innerHTML = d.replace("$value", c.value), o.appendChild(h);
1978
+ if (n = "", r.querySelectorAll("input").forEach((c, u) => {
1979
+ let g = c.getAttribute("name");
1980
+ if (n += `${u != 0 ? "," : ""}${g}`, i.querySelector(`[data-name="${g}"]`) && i.querySelector(`[data-name="${g}"]`).remove(), c.value) {
1981
+ let b = document.createElement("button");
1982
+ b.setAttribute("type", "button"), b.classList.add("filter"), b.setAttribute("data-name", g), b.innerHTML = d.replace("$value", c.value), i.appendChild(b);
2188
1983
  } else
2189
1984
  p = !1;
2190
- }), o.querySelector(`[data-name="${i}"]`) && o.querySelector(`[data-name="${i}"]`).remove(), p) {
1985
+ }), i.querySelector(`[data-name="${n}"]`) && i.querySelector(`[data-name="${n}"]`).remove(), p) {
2191
1986
  let c = r.getAttribute("data-filter-text");
2192
- r.querySelectorAll("input").forEach((b, h) => {
2193
- let x = b.getAttribute("name");
2194
- o.querySelector(`[data-name="${x}"]`) && o.querySelector(`[data-name="${x}"]`).remove(), c = c.replace(`$${h + 1}`, b.value);
1987
+ r.querySelectorAll("input").forEach((g, b) => {
1988
+ let x = g.getAttribute("name");
1989
+ i.querySelector(`[data-name="${x}"]`) && i.querySelector(`[data-name="${x}"]`).remove(), c = c.replace(`$${b + 1}`, g.value);
2195
1990
  });
2196
- let g = document.createElement("button");
2197
- g.setAttribute("type", "button"), g.classList.add("filter"), g.setAttribute("data-name", i), g.innerHTML = c, o.appendChild(g);
1991
+ let u = document.createElement("button");
1992
+ u.setAttribute("type", "button"), u.classList.add("filter"), u.setAttribute("data-name", n), u.innerHTML = c, i.appendChild(u);
2198
1993
  }
2199
1994
  }
2200
1995
  }
2201
- Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((o, s) => {
2202
- t(a, o);
2203
- }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((o, s) => {
2204
- o.addEventListener("change", function(n) {
2205
- t(a, o), n.stopPropagation();
1996
+ Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).forEach((i, s) => {
1997
+ t(a, i);
1998
+ }), Array.from(e.querySelectorAll("input[data-filter-text]")).forEach((i, s) => {
1999
+ i.addEventListener("change", function(o) {
2000
+ t(a, i), o.stopPropagation();
2206
2001
  });
2207
- }), e.addEventListener("change", function(o) {
2208
- if (o && o.target instanceof HTMLElement && o.target.closest("input[data-filter-text]")) {
2209
- let s = o.target.closest("input[data-filter-text]");
2002
+ }), e.addEventListener("change", function(i) {
2003
+ if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2004
+ let s = i.target.closest("input[data-filter-text]");
2210
2005
  t(a, s);
2211
2006
  }
2212
- }), a.addEventListener("click", function(o) {
2213
- if (o && o.target instanceof HTMLElement && o.target.closest(".filter")) {
2214
- let i = o.target.closest(".filter"), l = i.getAttribute("data-name").split(",");
2007
+ }), a.addEventListener("click", function(i) {
2008
+ if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2009
+ let n = i.target.closest(".filter"), l = n.getAttribute("data-name").split(",");
2215
2010
  for (var s = 0; s < l.length; s++) {
2216
2011
  let d = l[s], r = `[name="${d}"]`;
2217
2012
  d.match(/\[(.*)\]/) && (d.replace(/\[(.*)\]/, "[]"), r = `[value="${d.replace(/.*\[(.*)\]/, "$1")}"]`);
2218
2013
  let p = e.querySelectorAll(r);
2219
- for (var n = 0; n < p.length; n++) {
2220
- let c = p[n];
2014
+ for (var o = 0; o < p.length; o++) {
2015
+ let c = p[o];
2221
2016
  if (c.getAttribute("type") != "radio" && c.getAttribute("type") != "checkbox")
2222
2017
  c.value = "";
2223
2018
  else {
2224
2019
  c.checked = !1;
2225
- var o = new Event("force");
2226
- e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(o);
2020
+ var i = new Event("force");
2021
+ e.hasAttribute("data-nosubmit") || c.closest("form").dispatchEvent(i);
2227
2022
  }
2228
2023
  }
2229
2024
  }
2230
- i.remove();
2025
+ n.remove();
2231
2026
  }
2232
2027
  }, !1);
2233
2028
  }
2234
2029
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "Applied Filters" });
2235
- class hi extends HTMLElement {
2030
+ class ei extends HTMLElement {
2236
2031
  constructor() {
2237
2032
  super(), this.attachShadow({ mode: "open" });
2238
2033
  const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`;
2239
- let o = this.classList.toString();
2034
+ let i = this.classList.toString();
2240
2035
  const s = document.createElement("template");
2241
2036
  s.innerHTML = `
2242
2037
  <style>
@@ -2245,53 +2040,53 @@ class hi extends HTMLElement {
2245
2040
 
2246
2041
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
2247
2042
  </style>
2248
- <div class="applied-filters ${o}"></div>
2043
+ <div class="applied-filters ${i}"></div>
2249
2044
  <slot></slot>
2250
2045
  `, this.shadowRoot.appendChild(s.content.cloneNode(!0));
2251
2046
  }
2252
2047
  connectedCallback() {
2253
- mi(this, this.shadowRoot.querySelector(".applied-filters"));
2048
+ ti(this, this.shadowRoot.querySelector(".applied-filters"));
2254
2049
  }
2255
2050
  }
2256
- window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", hi);
2257
- const pi = {
2051
+ window.customElements.get("iam-applied-filters") || window.customElements.define("iam-applied-filters", ei);
2052
+ const ai = {
2258
2053
  name: "Header"
2259
2054
  };
2260
- function bi(e, a, t, o, s, n) {
2261
- return u(), m("iam-applied-filters", null, [
2262
- _(e.$slots, "default")
2055
+ function ii(e, a, t, i, s, o) {
2056
+ return m(), h("iam-applied-filters", null, [
2057
+ v(e.$slots, "default")
2263
2058
  ]);
2264
2059
  }
2265
- const to = /* @__PURE__ */ v(pi, [["render", bi]]);
2060
+ const Bi = /* @__PURE__ */ y(ai, [["render", ii]]);
2266
2061
  /*!
2267
- * iamKey v5.1.0-beta
2062
+ * iamKey v5.1.0-beta10
2268
2063
  * Copyright 2022-2023 iamproperty
2269
2064
  */
2270
- function fi(e, a) {
2271
- gi(e, a);
2065
+ function ni(e, a) {
2066
+ oi(e, a);
2272
2067
  }
2273
- function gi(e, a) {
2068
+ function oi(e, a) {
2274
2069
  var t;
2275
- a.addEventListener("keyup", (o) => {
2070
+ a.addEventListener("keyup", (i) => {
2276
2071
  clearTimeout(t), t = setTimeout(function() {
2277
2072
  Z(e, a.value);
2278
2073
  }, 500);
2279
- }), a.addEventListener("change", (o) => {
2074
+ }), a.addEventListener("change", (i) => {
2280
2075
  clearTimeout(t), Z(e, a.value);
2281
2076
  });
2282
2077
  }
2283
2078
  const Z = function(e, a) {
2284
- Array.from(e.querySelectorAll(":scope > li")).forEach((t, o) => {
2079
+ Array.from(e.querySelectorAll(":scope > li")).forEach((t, i) => {
2285
2080
  let s = t.textContent.toLowerCase();
2286
2081
  t.classList.add("d-none"), s.includes(a.toLowerCase()) && t.classList.remove("d-none");
2287
2082
  }), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
2288
2083
  };
2289
2084
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
2290
- class yi extends HTMLElement {
2085
+ class ri extends HTMLElement {
2291
2086
  constructor() {
2292
2087
  super(), this.attachShadow({ mode: "open" });
2293
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
2294
- o.innerHTML = `
2088
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
2089
+ i.innerHTML = `
2295
2090
  <style>
2296
2091
  @import "${t}";
2297
2092
  ${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
@@ -2318,24 +2113,24 @@ class yi extends HTMLElement {
2318
2113
  <div class="list__wrapper">
2319
2114
  <slot></slot>
2320
2115
  </div>
2321
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
2116
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2322
2117
  }
2323
2118
  connectedCallback() {
2324
2119
  let a = this.classList.toString();
2325
- this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), fi(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2120
+ this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${a}`), this.querySelector("i.fa-search") || (this.innerHTML += '<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'), ni(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
2326
2121
  }
2327
2122
  }
2328
- window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", yi);
2329
- const vi = {
2123
+ window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ri);
2124
+ const si = {
2330
2125
  name: "Filter list"
2331
2126
  };
2332
- function wi(e, a, t, o, s, n) {
2333
- return u(), m("iam-filterlist", null, [
2334
- _(e.$slots, "default")
2127
+ function li(e, a, t, i, s, o) {
2128
+ return m(), h("iam-filterlist", null, [
2129
+ v(e.$slots, "default")
2335
2130
  ]);
2336
2131
  }
2337
- const eo = /* @__PURE__ */ v(vi, [["render", wi]]);
2338
- function _i(e) {
2132
+ const Ui = /* @__PURE__ */ y(si, [["render", li]]);
2133
+ function di(e) {
2339
2134
  if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2340
2135
  let t = document.querySelector(".notification__holder");
2341
2136
  t || (t = document.createElement("div"), t.classList.add("notification__holder"), t.classList.add("container"), document.querySelector("body").appendChild(t)), e.closest(".notification__holder") || t.appendChild(e);
@@ -2344,22 +2139,22 @@ function _i(e) {
2344
2139
  event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (t.preventDefault(), X(e));
2345
2140
  }, !1), e.hasAttribute("data-timeout")) {
2346
2141
  let t = e.getAttribute("data-timeout");
2347
- var a = new Ai(function() {
2142
+ var a = new ci(function() {
2348
2143
  X(e);
2349
2144
  }, t);
2350
- e.addEventListener("mouseenter", (o) => {
2145
+ e.addEventListener("mouseenter", (i) => {
2351
2146
  a.pause();
2352
- }), e.addEventListener("mouseleave", (o) => {
2147
+ }), e.addEventListener("mouseleave", (i) => {
2353
2148
  a.resume();
2354
2149
  });
2355
2150
  }
2356
2151
  }
2357
- function Ai(e, a) {
2358
- var t, o, s = a;
2152
+ function ci(e, a) {
2153
+ var t, i, s = a;
2359
2154
  this.pause = function() {
2360
- window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - o;
2155
+ window.clearTimeout(t), s -= /* @__PURE__ */ new Date() - i;
2361
2156
  }, this.resume = function() {
2362
- o = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
2157
+ i = /* @__PURE__ */ new Date(), window.clearTimeout(t), t = window.setTimeout(e, s);
2363
2158
  }, this.resume();
2364
2159
  }
2365
2160
  const X = function(e) {
@@ -2370,32 +2165,32 @@ window.dataLayer.push({
2370
2165
  event: "customElementRegistered",
2371
2166
  element: "Notification"
2372
2167
  });
2373
- class xi extends HTMLElement {
2168
+ class ui extends HTMLElement {
2374
2169
  constructor() {
2375
2170
  super(), this.attachShadow({ mode: "open" });
2376
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = `@import "${a}/css/components/notification.css";`, s = `@import "${a}/css/components/notification.global.css";`, n = this.querySelectorAll("a,button");
2377
- Array.from(n).forEach((l, d) => {
2171
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = `@import "${a}/css/components/notification.css";`, s = `@import "${a}/css/components/notification.global.css";`, o = this.querySelectorAll("a,button");
2172
+ Array.from(o).forEach((l, d) => {
2378
2173
  l.setAttribute("slot", "btns"), l.classList.add("link");
2379
- }), (n.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2380
- const i = document.createElement("template");
2381
- i.innerHTML = `
2174
+ }), (o.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
2175
+ const n = document.createElement("template");
2176
+ n.innerHTML = `
2382
2177
  <style>
2383
2178
  @import "${t}";
2384
- ${o}
2179
+ ${i}
2385
2180
  ${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
2386
2181
  </style>
2387
2182
 
2388
2183
  <div class="notification">
2389
2184
  <div class="notification__icon"><slot name="icon"></slot></div>
2390
- <div class="notification__inner"><div class="notification__text"><slot></slot></div>${n.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2185
+ <div class="notification__inner"><div class="notification__text"><slot></slot></div>${o.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
2391
2186
  ${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
2392
2187
  </div>
2393
- `, this.shadowRoot.appendChild(i.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
2188
+ `, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${s}</style>`);
2394
2189
  }
2395
2190
  connectedCallback() {
2396
2191
  const a = this.shadowRoot.querySelector("[data-dismiss-button]"), t = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
2397
2192
  this.hasAttribute("data-type") ? this.classList.add(`bg-${t}`) : this.classList.add(`colour-${t}`);
2398
- const o = this;
2193
+ const i = this;
2399
2194
  if (!this.querySelector("i"))
2400
2195
  switch (t) {
2401
2196
  case "danger":
@@ -2410,31 +2205,31 @@ class xi extends HTMLElement {
2410
2205
  default:
2411
2206
  this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
2412
2207
  }
2413
- _i(o), a && a.addEventListener("click", function(s) {
2414
- X(o);
2208
+ di(i), a && a.addEventListener("click", function(s) {
2209
+ X(i);
2415
2210
  }, !1);
2416
2211
  }
2417
2212
  }
2418
- const ki = {
2213
+ const mi = {
2419
2214
  name: "Notification",
2420
2215
  props: {},
2421
2216
  created() {
2422
2217
  this.$nextTick(function() {
2423
- window.customElements.get("iam-notification") || window.customElements.define("iam-notification", xi);
2218
+ window.customElements.get("iam-notification") || window.customElements.define("iam-notification", ui);
2424
2219
  });
2425
2220
  }
2426
2221
  };
2427
- function Li(e, a, t, o, s, n) {
2428
- return u(), m("iam-notification", null, [
2429
- _(e.$slots, "default")
2222
+ function hi(e, a, t, i, s, o) {
2223
+ return m(), h("iam-notification", null, [
2224
+ v(e.$slots, "default")
2430
2225
  ]);
2431
2226
  }
2432
- const ao = /* @__PURE__ */ v(ki, [["render", Li]]), Si = {
2227
+ const Vi = /* @__PURE__ */ y(mi, [["render", hi]]), pi = {
2433
2228
  name: "Actionbar",
2434
2229
  props: {},
2435
2230
  mounted() {
2436
2231
  this.$nextTick(function() {
2437
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-c34f6117.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
2232
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-e086512b.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
2438
2233
  window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
2439
2234
  }).catch((e) => {
2440
2235
  console.log(e.message);
@@ -2442,31 +2237,31 @@ const ao = /* @__PURE__ */ v(ki, [["render", Li]]), Si = {
2442
2237
  });
2443
2238
  }
2444
2239
  };
2445
- function $i(e, a, t, o, s, n) {
2446
- return u(), m("iam-actionbar", null, [
2447
- _(e.$slots, "default")
2240
+ function bi(e, a, t, i, s, o) {
2241
+ return m(), h("iam-actionbar", null, [
2242
+ v(e.$slots, "default")
2448
2243
  ]);
2449
2244
  }
2450
- const io = /* @__PURE__ */ v(Si, [["render", $i]]), qi = {
2245
+ const Wi = /* @__PURE__ */ y(pi, [["render", bi]]), fi = {
2451
2246
  name: "Pagination",
2452
2247
  props: {},
2453
2248
  computed: {},
2454
2249
  created() {
2455
2250
  this.$nextTick(function() {
2456
- window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", nt);
2251
+ window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", ot);
2457
2252
  });
2458
2253
  },
2459
2254
  updated() {
2460
2255
  }
2461
2256
  };
2462
- function Ei(e, a, t, o, s, n) {
2463
- return u(), m("iam-pagination");
2257
+ function gi(e, a, t, i, s, o) {
2258
+ return m(), h("iam-pagination");
2464
2259
  }
2465
- const oo = /* @__PURE__ */ v(qi, [["render", Ei]]), Ti = {
2260
+ const Ki = /* @__PURE__ */ y(fi, [["render", gi]]), yi = {
2466
2261
  name: "Address Lookup",
2467
2262
  mounted() {
2468
2263
  this.$nextTick(function() {
2469
- N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-025d3655.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-1d999380.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
2264
+ N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-53821bfb.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-4ceee9e9.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
2470
2265
  window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
2471
2266
  }).catch((e) => {
2472
2267
  console.log(e.message);
@@ -2474,22 +2269,22 @@ const oo = /* @__PURE__ */ v(qi, [["render", Ei]]), Ti = {
2474
2269
  });
2475
2270
  }
2476
2271
  };
2477
- function Hi(e, a, t, o, s, n) {
2478
- return u(), m("iam-address-lookup", null, [
2479
- _(e.$slots, "default")
2272
+ function wi(e, a, t, i, s, o) {
2273
+ return m(), h("iam-address-lookup", null, [
2274
+ v(e.$slots, "default")
2480
2275
  ]);
2481
2276
  }
2482
- const no = /* @__PURE__ */ v(Ti, [["render", Hi]]);
2277
+ const Gi = /* @__PURE__ */ y(yi, [["render", wi]]);
2483
2278
  /*!
2484
- * iamKey v5.1.0-beta
2279
+ * iamKey v5.1.0-beta10
2485
2280
  * Copyright 2022-2023 iamproperty
2486
2281
  */
2487
2282
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
2488
- class Mi extends HTMLElement {
2283
+ class vi extends HTMLElement {
2489
2284
  constructor() {
2490
2285
  super(), this.attachShadow({ mode: "open" });
2491
- const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
2492
- o.innerHTML = `
2286
+ const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", t = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, i = document.createElement("template");
2287
+ i.innerHTML = `
2493
2288
  <style class="styles">
2494
2289
  @import "${t}";
2495
2290
  :host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu .btn[aria-expanded][class*=fa-]:before{content:"" !important}@media screen and (min-width: 62em){.side-menu .btn[aria-expanded]{opacity:0;transition:opacity .5s}.side-menu .btn[aria-expanded]:is(:hover,:focus,:active){opacity:1}}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,[aria-expanded])){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu][aria-expanded]){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu][aria-expanded]):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu][aria-expanded]):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
@@ -2511,11 +2306,11 @@ class Mi extends HTMLElement {
2511
2306
  </div>
2512
2307
 
2513
2308
  </div>
2514
- `, this.shadowRoot.appendChild(o.content.cloneNode(!0));
2309
+ `, this.shadowRoot.appendChild(i.content.cloneNode(!0));
2515
2310
  }
2516
2311
  connectedCallback() {
2517
- const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), o = this.shadowRoot.querySelector(".main-content"), s = this.shadowRoot.querySelector(".side-menu > .btn");
2518
- this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), o.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), s.addEventListener("click", (n) => {
2312
+ const a = this.shadowRoot.querySelector(".side-menu"), t = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), s = this.shadowRoot.querySelector(".side-menu > .btn");
2313
+ this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), t.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), i.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), s.addEventListener("click", (o) => {
2519
2314
  a.classList.contains("open") ? (a.classList.remove("open"), s.removeAttribute("aria-expanded"), setTimeout(function() {
2520
2315
  t.classList.add("closed");
2521
2316
  }, 1e3), a.classList.add("pe-none"), setTimeout(function() {
@@ -2523,56 +2318,56 @@ class Mi extends HTMLElement {
2523
2318
  }, 1e3)) : (t.classList.remove("closed"), setTimeout(function() {
2524
2319
  a.classList.add("open"), s.setAttribute("aria-expanded", !0);
2525
2320
  }, 100));
2526
- }), a.addEventListener("mouseenter", (n) => {
2321
+ }), a.addEventListener("mouseenter", (o) => {
2527
2322
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"), a.classList.add("hover"));
2528
- }), a.addEventListener("mousemove", (n) => {
2323
+ }), a.addEventListener("mousemove", (o) => {
2529
2324
  window.innerWidth > 992 && (a.classList.contains("open") || t.classList.remove("closed"));
2530
- }), a.addEventListener("mouseleave", (n) => {
2325
+ }), a.addEventListener("mouseleave", (o) => {
2531
2326
  window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
2532
2327
  t.classList.add("closed");
2533
2328
  }, 1e3));
2534
2329
  });
2535
2330
  }
2536
2331
  }
2537
- window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Mi);
2538
- const ji = {
2332
+ window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", vi);
2333
+ const _i = {
2539
2334
  name: "CollapsibleSideMenu",
2540
2335
  props: {},
2541
2336
  mounted() {
2542
2337
  }
2543
2338
  };
2544
- function Ci(e, a, t, o, s, n) {
2545
- return u(), m("iam-collapsible-side", null, [
2546
- _(e.$slots, "default")
2339
+ function xi(e, a, t, i, s, o) {
2340
+ return m(), h("iam-collapsible-side", null, [
2341
+ v(e.$slots, "default")
2547
2342
  ]);
2548
2343
  }
2549
- const ro = /* @__PURE__ */ v(ji, [["render", Ci]]);
2344
+ const Yi = /* @__PURE__ */ y(_i, [["render", xi]]);
2550
2345
  export {
2551
- Fi as Accordion,
2552
- Pi as AccordionItem,
2553
- io as Actionbar,
2554
- no as AddressLookup,
2555
- to as AppliedFilters,
2556
- Ii as Banner,
2557
- Me as Card,
2558
- Oi as Carousel,
2559
- ro as CollapsibleSideMenu,
2560
- zi as FileUpload,
2561
- eo as Filterlist,
2562
- Bi as Header,
2346
+ Si as Accordion,
2347
+ qi as AccordionItem,
2348
+ Wi as Actionbar,
2349
+ Gi as AddressLookup,
2350
+ Bi as AppliedFilters,
2351
+ Ei as Banner,
2352
+ Ti as Card,
2353
+ Hi as Carousel,
2354
+ Yi as CollapsibleSideMenu,
2355
+ $i as FileUpload,
2356
+ Ui as Filterlist,
2357
+ Mi as Header,
2563
2358
  st as Input,
2564
- Di as Logo,
2565
- Gi as Nav,
2566
- Zi as NoteFeed,
2567
- ao as Notification,
2568
- oo as Pagination,
2569
- Wi as PropertySearchbar,
2570
- Yi as Snapshot,
2571
- Xi as Step,
2572
- Ki as Stepper,
2573
- Qi as Tab,
2359
+ Li as Logo,
2360
+ Ri as Nav,
2361
+ Oi as NoteFeed,
2362
+ Vi as Notification,
2363
+ Ki as Pagination,
2364
+ Di as PropertySearchbar,
2365
+ zi as Snapshot,
2366
+ Fi as Step,
2367
+ Ni as Stepper,
2368
+ Ii as Tab,
2574
2369
  rt as Table,
2575
- Ji as Tabs,
2576
- Ui as Testimonial,
2577
- Vi as Timeline
2370
+ Pi as Tabs,
2371
+ ji as Testimonial,
2372
+ Ci as Timeline
2578
2373
  };