@iamproperty/components 4.1.0-beta-2 → 4.1.0-beta-3

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 (34) hide show
  1. package/assets/css/components/dialog.css +1 -1
  2. package/assets/css/components/dialog.css.map +1 -1
  3. package/assets/css/components/forms.css +1 -1
  4. package/assets/css/components/forms.css.map +1 -1
  5. package/assets/css/core.min.css +1 -1
  6. package/assets/css/core.min.css.map +1 -1
  7. package/assets/css/style.min.css +1 -1
  8. package/assets/css/style.min.css.map +1 -1
  9. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  10. package/assets/js/components/actionbar/actionbar.component.min.js +3 -3
  11. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  12. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  13. package/assets/js/components/card/card.component.min.js +1 -1
  14. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  15. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  16. package/assets/js/components/header/header.component.min.js +1 -1
  17. package/assets/js/components/nav/nav.component.min.js +1 -1
  18. package/assets/js/components/notification/notification.component.min.js +1 -1
  19. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  20. package/assets/js/components/table/table.component.min.js +1 -1
  21. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  22. package/assets/js/dynamic.min.js +5 -5
  23. package/assets/js/dynamic.min.js.map +1 -1
  24. package/assets/js/modules/dialogs.js +15 -3
  25. package/assets/js/scripts.bundle.js +15 -15
  26. package/assets/js/scripts.bundle.js.map +1 -1
  27. package/assets/js/scripts.bundle.min.js +2 -2
  28. package/assets/js/scripts.bundle.min.js.map +1 -1
  29. package/assets/sass/components/dialog.scss +17 -13
  30. package/assets/sass/components/forms.scss +19 -19
  31. package/assets/ts/modules/dialogs.ts +19 -4
  32. package/dist/components.es.js +135 -130
  33. package/dist/components.umd.js +52 -52
  34. package/package.json +1 -1
@@ -48,7 +48,7 @@ function At(e, a, t, i, o, s) {
48
48
  }
49
49
  const Gr = /* @__PURE__ */ _(yt, [["render", At]]);
50
50
  /*!
51
- * iamKey v4.1.0-beta-2
51
+ * iamKey v4.1.0-beta-3
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
54
  const _t = function(e) {
@@ -270,7 +270,7 @@ const at = (e) => {
270
270
  }), i.innerHTML = d;
271
271
  }, G = (e, a, t) => {
272
272
  e.classList.remove("table--filtered");
273
- let i = it(a), o = [], s = 0, r = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
273
+ let i = st(a), o = [], s = 0, r = a.querySelector("[data-pagination]") ? parseInt(a.querySelector("[data-pagination]").value) : 1, n = a.querySelector("[data-show]") ? parseInt(a.querySelector("[data-show]").value) : 15;
274
274
  if (Array.from(e.querySelectorAll("tbody tr")).forEach((l, m) => {
275
275
  l.classList.remove("filtered"), l.classList.remove("filtered--matched"), l.classList.remove("filtered--show"), l.removeAttribute("data-filtered-by");
276
276
  }), a.querySelector("[data-search]")) {
@@ -313,9 +313,9 @@ const at = (e) => {
313
313
  y.setHours(0, 0, 0, 0), I.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), b = w >= y && w <= I;
314
314
  } else if (u && u == "$lastMonth") {
315
315
  let L = /* @__PURE__ */ new Date(), E = L.getFullYear(), $ = L.getMonth();
316
- var R = new Date(E, $ - 1, 1), P = new Date(E, $, 0);
316
+ var R = new Date(E, $ - 1, 1), j = new Date(E, $, 0);
317
317
  let w = new Date(q.textContent.toLowerCase());
318
- R.setHours(0, 0, 0, 0), P.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), b = w >= R && w <= P;
318
+ R.setHours(0, 0, 0, 0), j.setHours(0, 0, 0, 0), w.setHours(0, 0, 0, 0), b = w >= R && w <= j;
319
319
  }
320
320
  q && q.textContent.toLowerCase().includes(u.toLowerCase()) && (b = !0);
321
321
  }), b || (d.classList.add("filtered"), d.setAttribute("data-filtered-by", l));
@@ -396,7 +396,7 @@ const at = (e) => {
396
396
  c.download = "export.csv";
397
397
  var l = window.URL.createObjectURL(n);
398
398
  c.href = l, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
399
- }, st = function(e, a, t, i) {
399
+ }, it = function(e, a, t, i) {
400
400
  if (at(e), $t(e), F(e, a, i), i && i.classList.contains("table--cta")) {
401
401
  let o = function() {
402
402
  Array.from(e.querySelectorAll("tr")).forEach((r, n) => {
@@ -407,7 +407,7 @@ const at = (e) => {
407
407
  const s = qt(e);
408
408
  i.style.setProperty("--cta-width", `${s}rem`), new ResizeObserver(o).observe(e);
409
409
  }
410
- }, it = function(e) {
410
+ }, st = function(e) {
411
411
  let a = new Object();
412
412
  return Array.from(e.querySelectorAll("[data-filter]")).forEach((t, i) => {
413
413
  if (!(t.type == "radio" && !t.checked) && !(t.type == "checkbox" && !t.checked) && t && t.value) {
@@ -420,7 +420,7 @@ const at = (e) => {
420
420
  const o = (b, u, v) => u.split(/[\.\[\]\'\"]/).filter((q) => q).reduce((q, y) => q ? q[y] : v, b);
421
421
  let s = new FormData(a), r = new URLSearchParams(s).toString(), n = e.querySelectorAll("thead tr th"), c = e.querySelector("tbody"), l = a.getAttribute("data-ajax");
422
422
  i.classList.add("table--loading");
423
- let m = it(a);
423
+ let m = st(a);
424
424
  Array.from(a.querySelectorAll("[data-filter-count]")).forEach((b, u) => {
425
425
  b.innerHTML = "", b.parentNode.classList.remove("hover");
426
426
  });
@@ -433,7 +433,7 @@ const at = (e) => {
433
433
  const { signal: f } = controller[l];
434
434
  try {
435
435
  yield fetch(l + "?" + r, { signal: f, 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) => {
436
- let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", v = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", q = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", y = o(b, v, 1), I = o(b, q, 1), R = o(b, u), P = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
436
+ let u = a.hasAttribute("data-schema") ? a.getAttribute("data-schema") : "data", v = a.hasAttribute("data-schema-total") ? a.getAttribute("data-schema-total") : "meta.total", q = a.hasAttribute("data-schema-page") ? a.getAttribute("data-schema-page") : "meta.current_page", y = o(b, v, 1), I = o(b, q, 1), R = o(b, u), j = i.hasAttribute("data-empty-msg") ? i.getAttribute("data-empty-msg") : "No results found";
437
437
  R ? (c.innerHTML = "", R.forEach((L, E) => {
438
438
  var $ = document.createElement("tr");
439
439
  n.forEach((w, O) => {
@@ -449,22 +449,22 @@ const at = (e) => {
449
449
  var W = w.getAttribute("data-output");
450
450
  let ut = o(L, W.replace("{", "").replace("}", ""));
451
451
  T = "", ut.forEach((J, Ur) => {
452
- let mt = w.getAttribute("data-output-array"), j = "";
452
+ let mt = w.getAttribute("data-output-array"), P = "";
453
453
  if (w.hasAttribute("data-output-array-property") && w.hasAttribute("data-output-array-transform")) {
454
454
  const U = o(J, w.getAttribute("data-output-array-property")), ht = JSON.parse(w.getAttribute("data-output-array-transform"))[U];
455
- j = mt.replace(`{${w.getAttribute("data-output-array-property")}}`, ht);
455
+ P = mt.replace(`{${w.getAttribute("data-output-array-property")}}`, ht);
456
456
  }
457
- j = j.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
457
+ P = P.replace(new RegExp(/{(.*?)}/, "gm"), function(U) {
458
458
  return o(J, U.replace("{", "").replace("}", ""));
459
- }), T += j;
459
+ }), T += P;
460
460
  });
461
461
  }
462
462
  w.hasAttribute("data-transform") && (T = JSON.parse(w.getAttribute("data-transform"))[T], !T && w.hasAttribute("data-default") && (T = w.getAttribute("data-default"))), V.innerHTML = T, $.appendChild(V);
463
463
  }), c.appendChild($);
464
- }), rt(e, a), i.setAttribute("data-total", parseInt(y)), i.setAttribute("data-page", parseInt(I)), i.setAttribute("data-pages", Math.ceil(i.getAttribute("data-total") / i.getAttribute("data-show"))), st(e, a, t, i), B(i, t), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, E) => {
464
+ }), rt(e, a), i.setAttribute("data-total", parseInt(y)), i.setAttribute("data-page", parseInt(I)), i.setAttribute("data-pages", Math.ceil(i.getAttribute("data-total") / i.getAttribute("data-show"))), it(e, a, t, i), B(i, t), Array.from(a.querySelectorAll("[data-ajax-query]")).forEach((L, E) => {
465
465
  let $ = o(b, L.getAttribute("data-ajax-query"), "");
466
466
  L.hasAttribute("data-total") ? L.setAttribute("data-total", $) : L.innerHTML = $;
467
- }), parseInt(y) == 0 && (c.innerHTML = `<tr><td colspan="100%"><span>${P}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: r })) : c.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>';
467
+ }), parseInt(y) == 0 && (c.innerHTML = `<tr><td colspan="100%"><span>${j}</span></td></tr>`), i.classList.remove("table--loading"), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Ajax table loaded", url: l, formData: r })) : c.innerHTML = '<tr><td colspan="100%"><span>Error loading table</span></td></tr>';
468
468
  });
469
469
  } catch (b) {
470
470
  console.log(b);
@@ -513,7 +513,7 @@ class Ct extends HTMLElement {
513
513
  const a = new URLSearchParams(window.location.search);
514
514
  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", 15), this.hasAttribute("data-increment") || this.setAttribute("data-increment", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show")));
515
515
  let t = this.classList.toString();
516
- 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(".table__pagination"), 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"), rt(this.table, this.form), this.form.querySelector("[data-page]") || (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" />`), xt(this.table), Et(this.table, this.form, this.pagination, this, this.savedTableBody), Tt(this.table, this.form, this.pagination, this), Mt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? ot(this.table, this.form, this.pagination, this) : (st(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this, this.pagination), F(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
516
+ 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(".table__pagination"), 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"), rt(this.table, this.form), this.form.querySelector("[data-page]") || (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" />`), xt(this.table), Et(this.table, this.form, this.pagination, this, this.savedTableBody), Tt(this.table, this.form, this.pagination, this), Mt(this.shadowRoot.querySelector("[data-export]"), this.table), this.form.getAttribute("data-ajax") ? ot(this.table, this.form, this.pagination, this) : (it(this.table, this.form, this.pagination, this), G(this.table, this.form, this), B(this, this.pagination), F(this.table, this.form)), this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll", (i) => {
517
517
  this.table.querySelector("dialog[open]") && (this.table.querySelector("dialog[open]").close(), this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"));
518
518
  }), this.querySelector("iam-actionbar[data-selectall]")) {
519
519
  const i = this.querySelector("iam-actionbar[data-selectall]");
@@ -543,7 +543,7 @@ class Ct extends HTMLElement {
543
543
  }
544
544
  const Nt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Rt = (e) => e.replace(/_/g, " "), Dt = (e) => e.replace(/ /g, "_"), It = function(e) {
545
545
  return e = e.toLowerCase(), e = Dt(e), e = e.replace(/\W/g, ""), e;
546
- }, Pt = {
546
+ }, jt = {
547
547
  name: "Table",
548
548
  props: {
549
549
  items: {
@@ -567,10 +567,10 @@ const Nt = (e) => e.charAt(0).toUpperCase() + e.slice(1), Rt = (e) => e.replace(
567
567
  },
568
568
  updated() {
569
569
  }
570
- }, jt = { key: 0 }, zt = { key: 0 }, Bt = ["data-row-id"], Ft = ["innerHTML"];
570
+ }, Pt = { key: 0 }, zt = { key: 0 }, Bt = ["data-row-id"], Ft = ["innerHTML"];
571
571
  function Ot(e, a, t, i, o, s) {
572
572
  return h(), p("iam-table", null, [
573
- t.fields ? (h(), p("table", jt, [
573
+ t.fields ? (h(), p("table", Pt, [
574
574
  g("thead", null, [
575
575
  g("tr", null, [
576
576
  (h(!0), p(M, null, H(t.fields, (r) => (h(), p("th", {
@@ -592,7 +592,7 @@ function Ot(e, a, t, i, o, s) {
592
592
  ])) : S(e.$slots, "default", { key: 1 })
593
593
  ]);
594
594
  }
595
- const nt = /* @__PURE__ */ _(Pt, [["render", Ot]]), Vt = {
595
+ const nt = /* @__PURE__ */ _(jt, [["render", Ot]]), Vt = {
596
596
  name: "Input",
597
597
  props: {
598
598
  value: {
@@ -786,7 +786,7 @@ const nt = /* @__PURE__ */ _(Pt, [["render", Ot]]), Vt = {
786
786
  }, Jt = ["type", "name", "id", "pattern", "list"], Qt = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Zt = {
787
787
  key: 6,
788
788
  class: "input-group"
789
- }, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"], re = ["value"], se = ["type", "name", "id"], ie = ["for", "innerHTML"], oe = ["type", "name", "id"], ne = ["for", "innerHTML"], le = ["innerHTML"], ce = ["id"], de = ["value"];
789
+ }, te = ["type", "name", "id", "pattern", "list"], ee = { class: "input-group-text flex-fill" }, ae = ["type", "name", "id", "pattern"], re = ["value"], ie = ["type", "name", "id"], se = ["for", "innerHTML"], oe = ["type", "name", "id"], ne = ["for", "innerHTML"], le = ["innerHTML"], ce = ["id"], de = ["value"];
790
790
  function ue(e, a, t, i, o, s) {
791
791
  return h(), p("div", {
792
792
  class: k(s.wrapperClass()),
@@ -886,13 +886,13 @@ function ue(e, a, t, i, o, s) {
886
886
  type: t.type,
887
887
  name: t.name ? t.name : t.id,
888
888
  id: t.id
889
- }, e.$attrs), null, 16, se)) : A("", !0),
889
+ }, e.$attrs), null, 16, ie)) : A("", !0),
890
890
  t.type == "checkbox" || t.type == "radio" ? (h(), p("label", {
891
891
  key: 9,
892
892
  class: k(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
893
893
  for: t.id,
894
894
  innerHTML: t.label
895
- }, null, 10, ie)) : A("", !0),
895
+ }, null, 10, se)) : A("", !0),
896
896
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (h(), p("input", N({
897
897
  key: 10,
898
898
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -1024,7 +1024,7 @@ function be(e, a, t, i, o, s) {
1024
1024
  }
1025
1025
  const Kr = /* @__PURE__ */ _(pe, [["render", be]]);
1026
1026
  /*!
1027
- * iamKey v4.1.0-beta-2
1027
+ * iamKey v4.1.0-beta-3
1028
1028
  * Copyright 2022-2023 iamproperty
1029
1029
  */
1030
1030
  function fe(e) {
@@ -1175,7 +1175,7 @@ const Zr = /* @__PURE__ */ _(ke, [["render", He]]), Ce = {
1175
1175
  name: "Card",
1176
1176
  mounted() {
1177
1177
  this.$nextTick(function() {
1178
- import("./card.component.min-5ccb4a76.mjs").then((e) => {
1178
+ import("./card.component.min-a0ba76d0.mjs").then((e) => {
1179
1179
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1180
1180
  }).catch((e) => {
1181
1181
  console.log(e.message);
@@ -1308,7 +1308,7 @@ const Ie = {
1308
1308
  De(this.$refs.wrapper);
1309
1309
  });
1310
1310
  }
1311
- }, Pe = ["id", "data-cols", "data-sm-cols", "data-md-cols"], je = { class: "carousel__wrapper" }, ze = { class: "carousel__inner" }, Be = ["id"], Fe = ["innerHTML", "id"], Oe = ["href"], Ve = /* @__PURE__ */ g("button", {
1311
+ }, je = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Pe = { class: "carousel__wrapper" }, ze = { class: "carousel__inner" }, Be = ["id"], Fe = ["innerHTML", "id"], Oe = ["href"], Ve = /* @__PURE__ */ g("button", {
1312
1312
  class: "btn btn-prev",
1313
1313
  "data-go": "0",
1314
1314
  disabled: ""
@@ -1327,7 +1327,7 @@ function Ue(e, a, t, i, o, s) {
1327
1327
  "data-md-cols": t.mdcols
1328
1328
  }, [
1329
1329
  S(e.$slots, "default"),
1330
- g("div", je, [
1330
+ g("div", Pe, [
1331
1331
  g("div", ze, [
1332
1332
  t.type == "card" ? (h(), p("div", {
1333
1333
  key: 0,
@@ -1372,11 +1372,11 @@ function Ue(e, a, t, i, o, s) {
1372
1372
  Ve,
1373
1373
  We
1374
1374
  ])
1375
- ], 8, Pe);
1375
+ ], 8, je);
1376
1376
  }
1377
- const ts = /* @__PURE__ */ _(Ie, [["render", Ue]]);
1377
+ const ti = /* @__PURE__ */ _(Ie, [["render", Ue]]);
1378
1378
  /*!
1379
- * iamKey v4.1.0-beta-2
1379
+ * iamKey v4.1.0-beta-3
1380
1380
  * Copyright 2022-2023 iamproperty
1381
1381
  */
1382
1382
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
@@ -1444,7 +1444,7 @@ function Je(e, a, t, i, o, s) {
1444
1444
  S(e.$slots, "default")
1445
1445
  ], 8, Ke);
1446
1446
  }
1447
- const es = /* @__PURE__ */ _(Ge, [["render", Je]]);
1447
+ const ei = /* @__PURE__ */ _(Ge, [["render", Je]]);
1448
1448
  function Qe(e) {
1449
1449
  var a;
1450
1450
  const t = e.querySelector(".testimonial__images"), i = t.querySelectorAll("img").length;
@@ -1493,7 +1493,7 @@ const Ze = {
1493
1493
  class: "container testimonial mb-5",
1494
1494
  "data-show": "1",
1495
1495
  ref: "wrapper"
1496
- }, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" }, ra = { class: "testimonial__images" }, sa = ["src"], ia = /* @__PURE__ */ g("div", { class: "testimonial__controls" }, [
1496
+ }, ea = { class: "row" }, aa = { class: "col-md-5 position-relative" }, ra = { class: "testimonial__images" }, ia = ["src"], sa = /* @__PURE__ */ g("div", { class: "testimonial__controls" }, [
1497
1497
  /* @__PURE__ */ g("button", {
1498
1498
  "data-go": "0",
1499
1499
  disabled: "",
@@ -1517,9 +1517,9 @@ function ha(e, a, t, i, o, s) {
1517
1517
  src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1518
1518
  alt: "",
1519
1519
  class: k("h-100 w-100 object-cover" + (r.image ? "" : " opacity-0"))
1520
- }, null, 10, sa))), 128))
1520
+ }, null, 10, ia))), 128))
1521
1521
  ]),
1522
- ia
1522
+ sa
1523
1523
  ]),
1524
1524
  g("div", oa, [
1525
1525
  na,
@@ -1545,7 +1545,7 @@ function ha(e, a, t, i, o, s) {
1545
1545
  ], 2)
1546
1546
  ], 512);
1547
1547
  }
1548
- const as = /* @__PURE__ */ _(Ze, [["render", ha]]);
1548
+ const ai = /* @__PURE__ */ _(Ze, [["render", ha]]);
1549
1549
  const pa = {
1550
1550
  name: "Timeline",
1551
1551
  props: {
@@ -1567,7 +1567,7 @@ function ya(e, a, t, i, o, s) {
1567
1567
  }, null, 8, ga)) : A("", !0)
1568
1568
  ]);
1569
1569
  }
1570
- const rs = /* @__PURE__ */ _(pa, [["render", ya]]);
1570
+ const ri = /* @__PURE__ */ _(pa, [["render", ya]]);
1571
1571
  const va = {
1572
1572
  components: {
1573
1573
  Input: lt
@@ -1817,12 +1817,12 @@ function Ha(e, a, t, i, o, s) {
1817
1817
  S(e.$slots, "after")
1818
1818
  ], 512);
1819
1819
  }
1820
- const ss = /* @__PURE__ */ _(va, [["render", Ha]]), Ca = {
1820
+ const ii = /* @__PURE__ */ _(va, [["render", Ha]]), Ca = {
1821
1821
  components: {},
1822
1822
  name: "Nav",
1823
1823
  mounted() {
1824
1824
  this.$nextTick(function() {
1825
- import("./nav.component.min-cbbbb803.mjs").then((e) => {
1825
+ import("./nav.component.min-4c35b68c.mjs").then((e) => {
1826
1826
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1827
1827
  }).catch((e) => {
1828
1828
  console.log(e.message);
@@ -1836,7 +1836,7 @@ function Ra(e, a, t, i, o, s) {
1836
1836
  S(e.$slots, "default")
1837
1837
  ], 512);
1838
1838
  }
1839
- const is = /* @__PURE__ */ _(Ca, [["render", Ra]]);
1839
+ const si = /* @__PURE__ */ _(Ca, [["render", Ra]]);
1840
1840
  const Da = {
1841
1841
  name: "Stepper",
1842
1842
  props: {
@@ -1850,7 +1850,7 @@ const Da = {
1850
1850
  default: "Complete"
1851
1851
  }
1852
1852
  }
1853
- }, Ia = { class: "container" }, Pa = ["aria-label"], ja = {
1853
+ }, Ia = { class: "container" }, ja = ["aria-label"], Pa = {
1854
1854
  key: 0,
1855
1855
  class: "h6 stepper__start"
1856
1856
  }, za = { class: "list-unstyled" }, Ba = { class: "h6 stepper__end" };
@@ -1860,15 +1860,15 @@ function Fa(e, a, t, i, o, s) {
1860
1860
  class: "stepper",
1861
1861
  "aria-label": t.label ? t.label : "Progress"
1862
1862
  }, [
1863
- t.label ? (h(), p("span", ja, x(t.label), 1)) : A("", !0),
1863
+ t.label ? (h(), p("span", Pa, x(t.label), 1)) : A("", !0),
1864
1864
  g("ol", za, [
1865
1865
  S(e.$slots, "default")
1866
1866
  ]),
1867
1867
  g("span", Ba, x(t.endlabel), 1)
1868
- ], 8, Pa)
1868
+ ], 8, ja)
1869
1869
  ]);
1870
1870
  }
1871
- const os = /* @__PURE__ */ _(Da, [["render", Fa]]);
1871
+ const oi = /* @__PURE__ */ _(Da, [["render", Fa]]);
1872
1872
  const Oa = {
1873
1873
  name: "Snapshot",
1874
1874
  props: {
@@ -1903,7 +1903,7 @@ function Ka(e, a, t, i, o, s) {
1903
1903
  ])
1904
1904
  ], 512);
1905
1905
  }
1906
- const ns = /* @__PURE__ */ _(Oa, [["render", Ka]]), Xa = {
1906
+ const ni = /* @__PURE__ */ _(Oa, [["render", Ka]]), Xa = {
1907
1907
  name: "Stepper",
1908
1908
  props: {
1909
1909
  url: {
@@ -1937,9 +1937,9 @@ function Za(e, a, t, i, o, s) {
1937
1937
  ], 10, Ja)
1938
1938
  ]);
1939
1939
  }
1940
- const ls = /* @__PURE__ */ _(Xa, [["render", Za]]);
1940
+ const li = /* @__PURE__ */ _(Xa, [["render", Za]]);
1941
1941
  /*!
1942
- * iamKey v4.1.0-beta-2
1942
+ * iamKey v4.1.0-beta-3
1943
1943
  * Copyright 2022-2023 iamproperty
1944
1944
  */
1945
1945
  const tr = function(e) {
@@ -1980,7 +1980,7 @@ const tr = function(e) {
1980
1980
  tr(e), er(e), ar(e);
1981
1981
  };
1982
1982
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "tabs" });
1983
- let sr = class extends HTMLElement {
1983
+ let ir = class extends HTMLElement {
1984
1984
  constructor() {
1985
1985
  super(), this.attachShadow({ mode: "open" });
1986
1986
  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");
@@ -2005,8 +2005,8 @@ let sr = class extends HTMLElement {
2005
2005
  this.shadowRoot.querySelector(".tabs").setAttribute("class", `tabs ${a}`), rr(this);
2006
2006
  }
2007
2007
  };
2008
- window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", sr);
2009
- const ir = {
2008
+ window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", ir);
2009
+ const sr = {
2010
2010
  name: "Tabs"
2011
2011
  }, or = { ref: "wrapper" };
2012
2012
  function nr(e, a, t, i, o, s) {
@@ -2014,7 +2014,7 @@ function nr(e, a, t, i, o, s) {
2014
2014
  S(e.$slots, "default")
2015
2015
  ], 512);
2016
2016
  }
2017
- const ds = /* @__PURE__ */ _(ir, [["render", nr]]), lr = {
2017
+ const di = /* @__PURE__ */ _(sr, [["render", nr]]), lr = {
2018
2018
  name: "Tab",
2019
2019
  props: {
2020
2020
  title: {
@@ -2043,7 +2043,7 @@ function ur(e, a, t, i, o, s) {
2043
2043
  S(e.$slots, "default")
2044
2044
  ]);
2045
2045
  }
2046
- const us = /* @__PURE__ */ _(lr, [["render", ur]]);
2046
+ const ui = /* @__PURE__ */ _(lr, [["render", ur]]);
2047
2047
  let ct = nt.props;
2048
2048
  ct.fields.required = !1;
2049
2049
  const mr = {
@@ -2126,9 +2126,9 @@ function yr(e, a, t, i, o, s) {
2126
2126
  ], 40, br)
2127
2127
  ]);
2128
2128
  }
2129
- const ms = /* @__PURE__ */ _(mr, [["render", yr]]);
2129
+ const mi = /* @__PURE__ */ _(mr, [["render", yr]]);
2130
2130
  /*!
2131
- * iamKey v4.1.0-beta-2
2131
+ * iamKey v4.1.0-beta-3
2132
2132
  * Copyright 2022-2023 iamproperty
2133
2133
  */
2134
2134
  function vr(e, a) {
@@ -2218,9 +2218,9 @@ function _r(e, a, t, i, o, s) {
2218
2218
  S(e.$slots, "default")
2219
2219
  ]);
2220
2220
  }
2221
- const ps = /* @__PURE__ */ _(Ar, [["render", _r]]);
2221
+ const pi = /* @__PURE__ */ _(Ar, [["render", _r]]);
2222
2222
  /*!
2223
- * iamKey v4.1.0-beta-2
2223
+ * iamKey v4.1.0-beta-3
2224
2224
  * Copyright 2022-2023 iamproperty
2225
2225
  */
2226
2226
  function Lr(e, a) {
@@ -2290,7 +2290,7 @@ function $r(e, a, t, i, o, s) {
2290
2290
  S(e.$slots, "default")
2291
2291
  ]);
2292
2292
  }
2293
- const fs = /* @__PURE__ */ _(qr, [["render", $r]]);
2293
+ const fi = /* @__PURE__ */ _(qr, [["render", $r]]);
2294
2294
  function xr(e) {
2295
2295
  if (e.hasAttribute("data-type") && e.getAttribute("data-type") == "toast") {
2296
2296
  let t = document.querySelector(".notification__holder");
@@ -2385,9 +2385,9 @@ function Hr(e, a, t, i, o, s) {
2385
2385
  S(e.$slots, "default")
2386
2386
  ]);
2387
2387
  }
2388
- const gs = /* @__PURE__ */ _(Mr, [["render", Hr]]);
2388
+ const gi = /* @__PURE__ */ _(Mr, [["render", Hr]]);
2389
2389
  /*!
2390
- * iamKey v4.1.0-beta-2
2390
+ * iamKey v4.1.0-beta-3
2391
2391
  * Copyright 2022-2023 iamproperty
2392
2392
  */
2393
2393
  const Cr = function(e) {
@@ -2491,62 +2491,67 @@ const Cr = function(e) {
2491
2491
  }
2492
2492
  e.querySelector(":scope > button:first-child") || e.insertAdjacentHTML("afterbegin", '<button class="dialog__close">Close</button>');
2493
2493
  }, Rr = (e) => {
2494
- let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]"));
2495
- t.forEach((s, r) => {
2496
- a += `<button data-title="${s.getAttribute("data-title")}" type="button" class="${r == 0 ? "active" : ""}" tabindex="-1">${s.getAttribute("data-title")}</button>`;
2497
- const n = document.createElement("div");
2498
- n.classList.add("btn--wrapper"), s.appendChild(n), r != 0 && (n.innerHTML += `<button data-title="${t[r - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), r != t.length - 1 && (n.innerHTML += `<button data-title="${t[r + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), r == t.length - 1 && (n.innerHTML += `<button data-title="${t[r].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`);
2494
+ let a = "", t = Array.from(e.querySelectorAll("fieldset[data-title]")), i = e.querySelector("form");
2495
+ t.forEach((r, n) => {
2496
+ a += `<button data-title="${r.getAttribute("data-title")}" type="button" class="${n == 0 ? "active" : ""}" tabindex="-1">${r.getAttribute("data-title")}</button>`;
2497
+ const c = document.createElement("div");
2498
+ if (c.classList.add("btn--wrapper"), r.appendChild(c), n != 0 && (c.innerHTML += `<button data-title="${t[n - 1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`), n != t.length - 1 && (c.innerHTML += `<button data-title="${t[n + 1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`), n == t.length - 1)
2499
+ if (i && i.querySelector(':scope > button[type="submit"]')) {
2500
+ let l = i.querySelector(':scope > button[type="submit"]');
2501
+ l.classList.add("mb-0"), c.insertAdjacentElement("beforeend", l);
2502
+ } else
2503
+ c.innerHTML += `<button data-title="${t[n].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`;
2499
2504
  }), e.insertAdjacentHTML("afterbegin", `<div class="steps bg-primary">${a}</div>`);
2500
- let i = Array.from(e.querySelectorAll("fieldset.was-validated"));
2501
- for (let s = 0; s < i.length; s++) {
2502
- let r = i[s], n = r.getAttribute("data-title");
2503
- if (r.querySelector(".is-invalid")) {
2504
- Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((c, l) => {
2505
- c.classList.add("active");
2505
+ let o = Array.from(e.querySelectorAll("fieldset.was-validated"));
2506
+ for (let r = 0; r < o.length; r++) {
2507
+ let n = o[r], c = n.getAttribute("data-title");
2508
+ if (n.querySelector(".is-invalid")) {
2509
+ Array.from(e.querySelectorAll(`[data-title="${c}"]`)).forEach((l, m) => {
2510
+ l.classList.add("active");
2506
2511
  });
2507
2512
  break;
2508
2513
  } else
2509
- Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((c, l) => {
2510
- c.classList.add("valid");
2514
+ Array.from(e.querySelectorAll(`[data-title="${c}"]`)).forEach((l, m) => {
2515
+ l.classList.add("valid");
2511
2516
  });
2512
2517
  }
2513
2518
  e.addEventListener("invalid", function() {
2514
- return function(s) {
2515
- s.preventDefault();
2519
+ return function(r) {
2520
+ r.preventDefault();
2516
2521
  };
2517
2522
  }(), !0);
2518
- function o(s) {
2519
- const r = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), n = r.getAttribute("data-title");
2520
- let c = !0;
2521
- if (r.classList.add("was-validated"), Array.from(r.querySelectorAll("input")).forEach((d, f) => {
2522
- d.checkValidity() || (c = !1);
2523
- }), c ? Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((d, f) => {
2524
- d.classList.add("valid");
2525
- }) : Array.from(e.querySelectorAll(`[data-title="${n}"]`)).forEach((d, f) => {
2526
- d.classList.remove("valid");
2527
- }), c || !s.hasAttribute("data-next")) {
2528
- const d = e.querySelector(`fieldset[data-title="${s.getAttribute("data-title")}"]`), f = e.querySelector(`.steps button[data-title="${s.getAttribute("data-title")}"]`);
2529
- Array.from(e.querySelectorAll("button")).forEach((b, u) => {
2530
- b.classList.remove("active");
2531
- }), Array.from(e.querySelectorAll("fieldset")).forEach((b, u) => {
2532
- b.classList.remove("active");
2533
- }), f.classList.add("active"), d.classList.add("active");
2534
- }
2535
- let l = Array.from(e.querySelectorAll("fieldset")).length, m = Array.from(e.querySelectorAll("fieldset.valid")).length;
2536
- e.style.setProperty("--progress", `${m / (l - 1) * 100}%`);
2537
- }
2538
- e.addEventListener("keydown", (s) => {
2539
- if (s && s.target instanceof HTMLElement && s.target.closest("button")) {
2540
- const r = s.target.closest("button");
2541
- s.keyCode == 13 && (s.preventDefault(), o(r));
2542
- }
2543
- s && s.target instanceof HTMLElement && s.target.closest("input") && s.target.closest("input").classList.remove("is-invalid");
2544
- }), e.addEventListener("click", (s) => {
2545
- if (s && s.target instanceof HTMLElement && s.target.closest('button[type="submit"]'))
2546
- s.target.closest("form").classList.add("was-validated");
2547
- else if (s && s.target instanceof HTMLElement && s.target.closest("button[data-title]")) {
2548
- const r = s.target.closest("button[data-title]");
2549
- o(r);
2523
+ function s(r) {
2524
+ const n = e.querySelector("fieldset.active") ? e.querySelector("fieldset.active") : e.querySelector("fieldset[data-title]"), c = n.getAttribute("data-title");
2525
+ let l = !0;
2526
+ if (n.classList.add("was-validated"), Array.from(n.querySelectorAll("input")).forEach((f, b) => {
2527
+ f.checkValidity() || (l = !1);
2528
+ }), l ? Array.from(e.querySelectorAll(`[data-title="${c}"]`)).forEach((f, b) => {
2529
+ f.classList.add("valid");
2530
+ }) : Array.from(e.querySelectorAll(`[data-title="${c}"]`)).forEach((f, b) => {
2531
+ f.classList.remove("valid");
2532
+ }), l || !r.hasAttribute("data-next")) {
2533
+ const f = e.querySelector(`fieldset[data-title="${r.getAttribute("data-title")}"]`), b = e.querySelector(`.steps button[data-title="${r.getAttribute("data-title")}"]`);
2534
+ Array.from(e.querySelectorAll("button")).forEach((u, v) => {
2535
+ u.classList.remove("active");
2536
+ }), Array.from(e.querySelectorAll("fieldset")).forEach((u, v) => {
2537
+ u.classList.remove("active");
2538
+ }), b.classList.add("active"), f.classList.add("active");
2539
+ }
2540
+ let m = Array.from(e.querySelectorAll("fieldset")).length, d = Array.from(e.querySelectorAll("fieldset.valid")).length;
2541
+ e.style.setProperty("--progress", `${d / (m - 1) * 100}%`);
2542
+ }
2543
+ e.addEventListener("keydown", (r) => {
2544
+ if (r && r.target instanceof HTMLElement && r.target.closest("button")) {
2545
+ const n = r.target.closest("button");
2546
+ r.keyCode == 13 && n.getAttribute("type") != "submit" && (r.preventDefault(), s(n));
2547
+ }
2548
+ r && r.target instanceof HTMLElement && r.target.closest("input") && (r.target.closest("input").classList.remove("is-invalid"), r.keyCode == 13 && r.preventDefault());
2549
+ }), e.addEventListener("click", (r) => {
2550
+ if (r && r.target instanceof HTMLElement && r.target.closest('button[type="submit"]'))
2551
+ r.target.closest("form").classList.add("was-validated");
2552
+ else if (r && r.target instanceof HTMLElement && r.target.closest("button[data-title]")) {
2553
+ const n = r.target.closest("button[data-title]");
2554
+ s(n);
2550
2555
  }
2551
2556
  return null;
2552
2557
  });
@@ -2738,17 +2743,17 @@ const Ir = {
2738
2743
  mounted() {
2739
2744
  }
2740
2745
  };
2741
- function Pr(e, a, t, i, o, s) {
2746
+ function jr(e, a, t, i, o, s) {
2742
2747
  return h(), p("iam-actionbar", null, [
2743
2748
  S(e.$slots, "default")
2744
2749
  ]);
2745
2750
  }
2746
- const ys = /* @__PURE__ */ _(Ir, [["render", Pr]]);
2751
+ const yi = /* @__PURE__ */ _(Ir, [["render", jr]]);
2747
2752
  /*!
2748
- * iamKey v4.1.0-beta-2
2753
+ * iamKey v4.1.0-beta-3
2749
2754
  * Copyright 2022-2023 iamproperty
2750
2755
  */
2751
- const jr = function(e, a) {
2756
+ const Pr = function(e, a) {
2752
2757
  if (!e.getAttribute("data-pages"))
2753
2758
  return !1;
2754
2759
  e.getAttribute("data-page") || e.setAttribute("data-page", 1);
@@ -2783,7 +2788,7 @@ class zr extends HTMLElement {
2783
2788
  }
2784
2789
  connectedCallback() {
2785
2790
  const a = new URLSearchParams(window.location.search);
2786
- 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", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show"))), jr(this, this.shadowRoot.querySelector(".pagination__wrapper")), this.shadowRoot.querySelector(".pagination__wrapper").classList.remove("d-none");
2791
+ 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", 15), this.setAttribute("data-pages", Math.ceil(this.getAttribute("data-total") / this.getAttribute("data-show"))), Pr(this, this.shadowRoot.querySelector(".pagination__wrapper")), this.shadowRoot.querySelector(".pagination__wrapper").classList.remove("d-none");
2787
2792
  }
2788
2793
  }
2789
2794
  const Br = {
@@ -2801,9 +2806,9 @@ const Br = {
2801
2806
  function Fr(e, a, t, i, o, s) {
2802
2807
  return h(), p("iam-pagination");
2803
2808
  }
2804
- const vs = /* @__PURE__ */ _(Br, [["render", Fr]]);
2809
+ const vi = /* @__PURE__ */ _(Br, [["render", Fr]]);
2805
2810
  /*!
2806
- * iamKey v4.1.0-beta-2
2811
+ * iamKey v4.1.0-beta-3
2807
2812
  * Copyright 2022-2023 iamproperty
2808
2813
  */
2809
2814
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
@@ -2868,32 +2873,32 @@ function Wr(e, a, t, i, o, s) {
2868
2873
  S(e.$slots, "default")
2869
2874
  ]);
2870
2875
  }
2871
- const ws = /* @__PURE__ */ _(Vr, [["render", Wr]]);
2876
+ const wi = /* @__PURE__ */ _(Vr, [["render", Wr]]);
2872
2877
  export {
2873
2878
  Jr as Accordion,
2874
2879
  Qr as AccordionItem,
2875
- ys as Actionbar,
2876
- ps as AppliedFilters,
2880
+ yi as Actionbar,
2881
+ pi as AppliedFilters,
2877
2882
  Zr as Banner,
2878
2883
  Re as Card,
2879
- ts as Carousel,
2880
- ws as CollapsibleSideMenu,
2884
+ ti as Carousel,
2885
+ wi as CollapsibleSideMenu,
2881
2886
  Kr as FileUpload,
2882
- fs as Filterlist,
2883
- es as Header,
2887
+ fi as Filterlist,
2888
+ ei as Header,
2884
2889
  lt as Input,
2885
2890
  Gr as Logo,
2886
- is as Nav,
2887
- ms as NoteFeed,
2888
- gs as Notification,
2889
- vs as Pagination,
2890
- ss as PropertySearchbar,
2891
- ns as Snapshot,
2892
- ls as Step,
2893
- os as Stepper,
2894
- us as Tab,
2891
+ si as Nav,
2892
+ mi as NoteFeed,
2893
+ gi as Notification,
2894
+ vi as Pagination,
2895
+ ii as PropertySearchbar,
2896
+ ni as Snapshot,
2897
+ li as Step,
2898
+ oi as Stepper,
2899
+ ui as Tab,
2895
2900
  nt as Table,
2896
- ds as Tabs,
2897
- as as Testimonial,
2898
- rs as Timeline
2901
+ di as Tabs,
2902
+ ai as Testimonial,
2903
+ ri as Timeline
2899
2904
  };