@iamproperty/components 4.1.0 → 4.1.1-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +2 -2
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/sass/templates/form.scss +7 -0
- package/assets/ts/components/address-lookup/address-lookup.component.ts +1 -1
- package/dist/components.es.js +13 -13
- package/dist/components.umd.js +19 -19
- package/package.json +1 -1
- package/src/components/AddressLookup/AddressLookup.vue +1 -3
package/assets/js/dynamic.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v4.1.
|
|
2
|
+
* iamKey v4.1.1-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/(function(b){typeof define=="function"&&define.amd?define(b):b()})(function(){"use strict";const b=t=>(t.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&t.classList.add("ie"),null),w=t=>{const a=function(e){const o=document.querySelector(`label[for="${e.replace("#","")}"]`),i=document.querySelector(e+" summary"),r=document.querySelector(`dialog${e}`);o instanceof HTMLElement?o.click():i instanceof HTMLElement?i.click():r instanceof HTMLElement&&r.showModal()};return location.hash&&a(location.hash),window.addEventListener("hashchange",function(){a(location.hash)},!1),addEventListener("popstate",e=>{if(e&&e.state.type&&e.state.type=="pagination"){let o=document.querySelector(`#${e.state.form}`),i=document.querySelector(`#${e.state.form} [data-pagination]`);i?i.value=e.state.page:o.innerHTML+=`<input name="page" type="hidden" data-pagination="true" value="${e.state.page}" />`,o.dispatchEvent(new Event("submit"))}}),document.addEventListener("submit",e=>{if(e&&e.target instanceof HTMLElement&&e.target.matches("form")){let o=e.target;o.querySelector(":invalid")&&(o.classList.add("was-validated"),e.preventDefault())}}),null};class v{constructor(a){document.body.classList.contains("youtubeLoaded")?a.addEventListener("click",function(e){for(var o=e.target;o&&o!=this;o=o.parentNode)if(o.matches("a")){e.preventDefault(),p(o);break}},!1):this.loadScripts(a,this.createEmbed)}loadScripts(a){return new Promise((e,o)=>{const i=new Image;i.onload=function(){var r=document.createElement("script");r.src="https://www.youtube.com/iframe_api";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(r,s),document.body.classList.add("youtubeLoaded"),e(!0),r.onload=()=>{a.addEventListener("click",function(l){console.log("click"),l&&l.target instanceof HTMLElement&&l.target.closest("a")&&(l.preventDefault(),p(l.target.closest("a")))},!1)}},i.onerror=function(){o(!1)},i.src="https://youtube.com/favicon.ico"})}}const p=function(t){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var a=t.getAttribute("data-id"),e=t.getAttribute("id");if(typeof e>"u"||e==null){var o=String.fromCharCode(65+Math.floor(Math.random()*26));e=o+Date.now(),t.setAttribute("id",e)}function i(){window.player=new YT.Player(e,{height:"100%",width:"100%",videoId:a,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:r,onStateChange:l}})}i();function r(n){n.target.playVideo()}var s=!1;function l(n){if(n.data==YT.PlayerState.PLAYING&&!s){var c=document.getElementById(e);c.classList.add("player-ready"),s=!0}}},S=t=>(Array.from(t.querySelectorAll("dialog[open]")).forEach((a,e)=>{a.closest(".dialog__wrapper")||(a.removeAttribute("open"),a.showModal(),a.focus(),A(a))}),t.addEventListener("click",a=>{if(a.target.tagName=="IAM-ACTIONBAR")return!1;if(a&&a.target instanceof HTMLElement&&a.target.closest("[data-modal]")){const i=a.target.closest("[data-modal]"),r=i.hasAttribute("data-modal")?i.getAttribute("data-modal"):i.getAttribute("data-filter"),s=document.querySelector(`dialog#${r}`);A(s),s.showModal(),s.focus();let l=s.offsetWidth;s.setAttribute("style",`max-width: ${l}px;`),Array.from(s.querySelectorAll("[data-duplicate]")).forEach((n,c)=>{const d=n.getAttribute("data-duplicate"),u=document.getElementById(d);if(n.checked!=u.checked){n.checked=u.checked;let f=new Event("change");n.dispatchEvent(f)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:r})}if(a&&a.target instanceof HTMLElement&&a.target.closest("button.dialog__close")){const i=a.target.closest("dialog[open]");a.preventDefault(),i.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r,s)=>{r.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest('button[formmethod="dialog"]')){const i=a.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((r,s)=>{r.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest("dialog[open]")){let i=a.target.closest("dialog[open]");var e=window.getComputedStyle(i);if(e.display==="contents"&&(i=i.parentNode.closest("dialog[open]")),!i.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||i.classList.contains("dialog--multi")){const r=i.getBoundingClientRect();(a.clientX<r.left||a.clientX>r.right||a.clientY<r.top||a.clientY>r.bottom)&&(a.target.closest('input[type="radio"]')||i.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")}))}}if(a&&a.target instanceof HTMLElement&&a.target.closest(".dialog__wrapper > button")){a.stopPropagation();let i=a.target.closest(".dialog__wrapper > button"),r=a.target.closest(".dialog__wrapper > button").parentNode,s="openPopover",l=r.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=l&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((u,f)=>{u.classList.remove("active")}),l.hasAttribute("open"))l.close(),s="closePopover",l.removeAttribute("style"),i.classList.remove("active");else{l.show(),i.classList.add("active");var o=i.getBoundingClientRect();let u=o.top,f=o.left;if(i.closest("iam-table")){let m=i.closest("iam-table").parentNode.getBoundingClientRect();u-=m.top,f-=m.left}l.classList.contains("dialog--fix")&&l.setAttribute("style",`position:fixed;top: ${u}px; left: ${f}px; margin: 3rem 0 0 0;`)}let n=l.getBoundingClientRect(),c=n.bottom-window.scrollY,d=window.innerHeight-window.scrollY;if(c>d){let u=l.hasAttribute("style")?l.getAttribute("style")+" ":"";l.setAttribute("style",u+"transform: translate(0, calc(-100% - 4rem))"),n=l.getBoundingClientRect(),n.top-window.scrollY<100&&l.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:s,id:i.textContent})}a&&a.target instanceof HTMLElement&&!a.target.closest("dialog[open]")&&!a.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((i,r)=>{i.classList.remove("active")}))}),null),A=t=>{t.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!t.classList.contains("dialog--multi")&&t.addEventListener("cancel",e=>{e.preventDefault()});let a=t.querySelector(".youtube-embed a");if(a&&p(a),t.classList.contains("dialog--multi")&&!t.querySelector(":scope > .steps")&&q(t),!t.querySelector(":scope > .mh-lg")&&!t.classList.contains("dialog--multi")){t.innerHTML=`<div class="mh-lg">${t.innerHTML}</div>`;let e=t.querySelector(".mh-lg"),o=t.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(o){let i=o.previousSibling;e.before(o),i&&o.before(i)}}t.querySelector(":scope > button:first-child")||t.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},q=t=>{let a="",e=Array.from(t.querySelectorAll("fieldset[data-title]")),o=t.querySelector("form");e.forEach((s,l)=>{a+=`<button data-title="${s.getAttribute("data-title")}" type="button" class="${l==0?"active":""}" tabindex="-1">${s.getAttribute("data-title")}</button>`;const n=document.createElement("div");if(n.classList.add("btn--wrapper"),s.appendChild(n),l!=0&&(n.innerHTML+=`<button data-title="${e[l-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),l!=e.length-1&&(n.innerHTML+=`<button data-title="${e[l+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),l==e.length-1)if(o&&o.querySelector(':scope > button[type="submit"]')){let c=o.querySelector(':scope > button[type="submit"]');c.classList.add("mb-0"),n.insertAdjacentElement("beforeend",c)}else n.innerHTML+=`<button data-title="${e[l].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`}),t.insertAdjacentHTML("afterbegin",`<div class="steps bg-primary">${a}</div>`);let i=Array.from(t.querySelectorAll("fieldset.was-validated"));for(let s=0;s<i.length;s++){let l=i[s],n=l.getAttribute("data-title");if(l.querySelector(".is-invalid")){Array.from(t.querySelectorAll(`[data-title="${n}"]`)).forEach((c,d)=>{c.classList.add("active")});break}else Array.from(t.querySelectorAll(`[data-title="${n}"]`)).forEach((c,d)=>{c.classList.add("valid")})}t.addEventListener("invalid",function(){return function(s){s.preventDefault()}}(),!0);function r(s){const l=t.querySelector("fieldset.active")?t.querySelector("fieldset.active"):t.querySelector("fieldset[data-title]"),n=l.getAttribute("data-title");let c=!0;if(l.classList.add("was-validated"),Array.from(l.querySelectorAll("input")).forEach((f,m)=>{f.checkValidity()||(c=!1)}),c?Array.from(t.querySelectorAll(`[data-title="${n}"]`)).forEach((f,m)=>{f.classList.add("valid")}):Array.from(t.querySelectorAll(`[data-title="${n}"]`)).forEach((f,m)=>{f.classList.remove("valid")}),c||!s.hasAttribute("data-next")){const f=t.querySelector(`fieldset[data-title="${s.getAttribute("data-title")}"]`),m=t.querySelector(`.steps button[data-title="${s.getAttribute("data-title")}"]`);Array.from(t.querySelectorAll("button")).forEach((g,O)=>{g.classList.remove("active")}),Array.from(t.querySelectorAll("fieldset")).forEach((g,O)=>{g.classList.remove("active")}),m.classList.add("active"),f.classList.add("active")}let d=Array.from(t.querySelectorAll("fieldset")).length,u=Array.from(t.querySelectorAll("fieldset.valid")).length;t.style.setProperty("--progress",`${u/(d-1)*100}%`)}t.addEventListener("keydown",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest("button")){const l=s.target.closest("button");s.keyCode==13&&l.getAttribute("type")!="submit"&&(s.preventDefault(),r(l))}s&&s.target instanceof HTMLElement&&s.target.closest("input")&&(s.target.closest("input").classList.remove("is-invalid"),s.keyCode==13&&s.preventDefault())}),t.addEventListener("click",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest('button[type="submit"]'))s.target.closest("form").classList.add("was-validated");else if(s&&s.target instanceof HTMLElement&&s.target.closest("button[data-title]")){const l=s.target.closest("button[data-title]");r(l)}return null})};function E(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",t=>{const a=t.target.closest("[open] summary");if(a)window.dataLayer.push({event:"closeDetails",detailsTitle:a.textContent||""});else{const e=t.target.closest("summary"),o=t.target.closest("a"),i=t.target.closest("button");e&&window.dataLayer.push({event:"openDetails",detailsTitle:e.textContent||""}),o&&window.dataLayer.push({event:"linkClicked",linkText:o.hasAttribute("title")?o.getAttribute("title")||"":o.textContent||"",class:o.hasAttribute("class")&&o.getAttribute("class")||"",href:o.getAttribute("href")||""}),i&&window.dataLayer.push({event:"buttonClicked",buttonText:i.textContent||"",class:i.hasAttribute("class")&&i.getAttribute("class")||""})}})}const x=t=>{document.addEventListener("load",function(){console.log(Array.from(document.querySelectorAll("input[maxlength]"))),Array.from(document.querySelectorAll("input")).forEach((a,e)=>{a.parentElement,T(a)})}),t.addEventListener("input",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("input,textarea,select")){const e=a.target.closest("input,textarea,select");e.parentElement,e.hasAttribute("type")&&e.getAttribute("type")=="color"&&(e.nextElementSibling.value=e.value),e.hasAttribute("maxlength")&&e.nextElementSibling&&e.nextElementSibling.setAttribute("data-count",e.value.length)}}),t.addEventListener("change",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("select")){const e=a.target.closest("select");if(console.log(e),e.hasAttribute("data-change-type")&&e.hasAttribute("data-input")){const o=document.getElementById(e.getAttribute("data-input")),i=e.value;L(o,i)}}if(a&&a.target instanceof HTMLElement&&a.target.closest('dialog [type="radio"]')){const e=a.target.closest("dialog");a.target.closest('dialog [type="radio"]'),Array.from(e.querySelectorAll('[type="radio"][autofocus]')).forEach((o,i)=>{o.removeAttribute("autofocus")}),Array.from(e.querySelectorAll('[type="radio"]:checked')).forEach((o,i)=>{o.setAttribute("autofocus",!0)})}}),t.addEventListener("click",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("[data-change-type][data-input]:not(select)")){const e=a.target.closest("[data-change-type]"),o=document.getElementById(e.getAttribute("data-input")),i=e.getAttribute("data-change-type");if(e.setAttribute("data-change-type",o.getAttribute("type")),L(o,i),e.hasAttribute("data-alt-class")){const r=e.getAttribute("data-alt-class");e.setAttribute("data-alt-class",e.getAttribute("class")),e.setAttribute("class",r)}}})},T=t=>{let a=t.parentElement,e=t.getAttribute("maxlength");a.style.setProperty("--maxlength",e);let o=t.nextElementSibling;(!o||o&&o.classList.contains("invalid-feedback"))&&(o=document.createElement("span"),a.insertBefore(o,t.nextSibling)),o.setAttribute("data-count",t.value.length)},L=(t,a)=>{t.setAttribute("type",a)},_=t=>{Array.from(t.querySelectorAll("details")).forEach((a,e)=>{a.addEventListener("mouseenter",function(o){window.matchMedia("(min-width: 62em)").matches&&a.setAttribute("open","true")},!1),a.addEventListener("mouseleave",function(o){window.matchMedia("(min-width: 62em)").matches&&a.removeAttribute("open")},!1)}),"IntersectionObserver"in window&&new IntersectionObserver(([e])=>e.target.classList.toggle("is-stuck",e.intersectionRatio<1),{threshold:[1]}).observe(t)};function M(t){var a;const e=t.querySelector(".testimonial__images"),o=e.querySelectorAll("img").length;if(o==1)return!1;t.classList.add("testimonial--multi");const i=function(r){const s=t.querySelector(".btn-next"),l=t.querySelector(".btn-prev");s.setAttribute("data-go",r+1),l.setAttribute("data-go",r-1),s.removeAttribute("disabled"),l.removeAttribute("disabled"),r==1?l.setAttribute("disabled",!0):r==o&&s.setAttribute("disabled",!0)};e.addEventListener("scroll",function(r){clearTimeout(a),a=setTimeout(function(){let s=e.scrollWidth,l=e.scrollHeight,n=e.scrollLeft,c=e.scrollTop,d=Math.round(n/s*o)+1;n==0&&c!=0&&(d=Math.round(c/l*o)+1),t.setAttribute("data-show",d),i(d)},300)},!1),t.addEventListener("click",function(r){for(var s=r.target;s&&s!=this;s=s.parentNode)if(s.matches("[data-go]")){let l=parseInt(s.getAttribute("data-go")),n=0,c=0,d=e.scrollWidth,u=e.scrollHeight;d>u?c=Math.floor(d*((l-1)/o)):n=Math.floor(u*((l-1)/o)),e.scroll({top:n,left:c,behavior:"smooth"});break}},!1)}function k(t){var a;let e=t.querySelector(".carousel__inner"),o=t.querySelectorAll(".carousel__item").length;t.getAttribute("data-cols");let i=t.getAttribute("data-sm-cols"),r=t.getAttribute("data-md-cols");t.querySelector(".carousel__controls a").classList.add("active"),e.addEventListener("scroll",function(s){clearTimeout(a),a=setTimeout(function(){let l=e.clientWidth,n=e.scrollWidth,c=e.scrollLeft,d=Math.round(c/n*o)+1,u=t.querySelector(".carousel__item:last-child").offsetLeft;Array.from(t.querySelectorAll(".carousel__controls a")).forEach((f,m)=>{f.classList.remove("active")}),t.querySelector(".control-"+d).classList.add("active"),d==1?t.querySelector(".btn-prev").setAttribute("disabled","disabled"):t.querySelector(".btn-prev").removeAttribute("disabled"),e.scrollLeft+l>u?t.querySelector(".btn-next").setAttribute("disabled","disabled"):t.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),t.addEventListener("click",function(s){for(var l=s.target;l&&l!=this;l=l.parentNode)if(l.matches(".carousel__controls a")){s.preventDefault(),Array.from(t.querySelectorAll(".carousel__controls a")).forEach((c,d)=>{c.classList.remove("active")}),l.classList.add("active");const n=document.querySelector(l.getAttribute("href"));e.scroll({top:0,left:n.offsetLeft,behavior:"smooth"});break}},!1),t.addEventListener("click",function(s){for(var l=s.target;l&&l!=this;l=l.parentNode)if(l.matches(".btn-next, .btn-prev")){s.preventDefault();let n=l.classList.contains("btn-prev")?e.scrollLeft-e.clientWidth:e.scrollLeft+e.clientWidth;e.scroll({top:0,left:n,behavior:"smooth"});break}},!1),o==1&&t.classList.add("hide-btns"),i>=o&&t.classList.add("hide-sm-btns"),r>=o&&t.classList.add("hide-md-btns")}function $(t){t.addEventListener("change",function(a){var e=parseInt(t.querySelector("[data-min] select,[data-min] input").value),o=parseInt(t.querySelector("[data-max] select,[data-max] input").value);Array.from(t.querySelectorAll("[data-min] input")).forEach((i,r)=>{i.setAttribute("max",o)}),Array.from(t.querySelectorAll("[data-max] input")).forEach((i,r)=>{i.setAttribute("min",e)}),Array.from(t.querySelectorAll("[data-min] select option")).forEach((i,r)=>{parseInt(i.getAttribute("value"))>o?i.classList.add("d-none"):i.classList.remove("d-none")}),Array.from(t.querySelectorAll("[data-max] select option")).forEach((i,r)=>{parseInt(i.getAttribute("value"))<e?i.classList.add("d-none"):i.classList.remove("d-none")})},!1)}function C(t){t.addEventListener("change",function(a){if(t.matches("[data-value-if]")){const e=t.getAttribute("data-redirect"),o=t.getAttribute("data-value-if");t.value==o&&(document.location.href=e)}else typeof t.value<"u"&&(document.location.href=t.value)},!1)}function H(t){const e=t.querySelector(".row").cloneNode(!0),o=t.querySelector("[data-add]");t.addEventListener("click",function(i){for(var r=i.target;r&&r!=this;r=r.parentNode){if(r.matches("[data-add]")){const s=e.cloneNode(!0);t.insertBefore(s,r),o.matches("[data-maxfiles]")&&Array.from(t.querySelectorAll(":scope > .row")).length>=o.dataset.maxfiles&&o.setAttribute("disabled","disabled");break}if(r.matches("[data-delete]")){r.closest(".row").remove(),o.matches("[data-maxfiles]")&&Array.from(t.querySelectorAll(":scope > .row")).length<o.dataset.maxfiles&&o.removeAttribute("disabled");break}}},!1)}function I(t){Array.from(t.querySelectorAll("[data-input-range]")).forEach((a,e)=>{$(a)}),Array.from(t.querySelectorAll("[data-redirect]")).forEach((a,e)=>{C(a)}),Array.from(t.querySelectorAll(".multiple-file-uploads")).forEach((a,e)=>{H(a)}),t.addEventListener("change",function(a){for(var e=a.target;e&&e!=this;e=e.parentNode)if(e.matches('[type="file"][data-filesize]')&&e.files&&e.files[0]){const o=e.dataset.filesize;e.files[0].size>o&&(e.value="",alert("File too large"));break}},!1),t.addEventListener("change",function(a){Array.from(t.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((e,o)=>{let i=e.closest("[data-group]")?e.closest("[data-group]"):t,r=e.dataset.activeif,s=e.dataset.equals;i.querySelector(`select[data-id="${r}"],input[data-id="${r}"]`).value==s?e.removeAttribute("disabled"):(e.setAttribute("disabled","disabled"),e.value="")}),Array.from(t.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((e,o)=>{let i=e.closest("[data-group]")?e.closest("[data-group]"):t,r=e.dataset.activeif,s=e.dataset.equals;i.querySelector(`select[data-id="${r}"],input[data-id="${r}"]`).value==s?e.classList.remove("d-none"):e.classList.add("d-none")})},!1)}function D(t){if(t.hasAttribute("data-type")&&t.getAttribute("data-type")=="toast"){let e=document.querySelector(".notification__holder");e||(e=document.createElement("div"),e.classList.add("notification__holder"),e.classList.add("container"),document.querySelector("body").appendChild(e)),t.closest(".notification__holder")||e.appendChild(t)}if(t.setAttribute("role","alert"),t.addEventListener("click",function(e){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(e.preventDefault(),y(t))},!1),t.hasAttribute("data-timeout")){let e=t.getAttribute("data-timeout");var a=new B(function(){y(t)},e);t.addEventListener("mouseenter",o=>{a.pause()}),t.addEventListener("mouseleave",o=>{a.resume()})}}function B(t,a){var e,o,i=a;this.pause=function(){window.clearTimeout(e),i-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(e),e=window.setTimeout(t,i)},this.resume()}const y=function(t){t.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class N extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,o=`@import "${a}/css/components/notification.css";`,i=this.querySelectorAll("a,button");Array.from(i).forEach((s,l)=>{s.setAttribute("slot","btns"),s.classList.add("link")}),(i.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");const r=document.createElement("template");r.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v4.1.
|
|
2
|
+
* iamKey v4.1.1-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/(function(R){typeof define=="function"&&define.amd?define(R):R()})(function(){"use strict";var R=a=>(a.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&a.classList.add("ie"),null),rt=a=>{var t=function(r){var i=document.querySelector('label[for="'.concat(r.replace("#",""),'"]')),n=document.querySelector(r+" summary"),c=document.querySelector("dialog".concat(r));i instanceof HTMLElement?i.click():n instanceof HTMLElement?n.click():c instanceof HTMLElement&&c.showModal()};return location.hash&&t(location.hash),window.addEventListener("hashchange",function(){t(location.hash)},!1),addEventListener("popstate",e=>{if(e&&e.state.type&&e.state.type=="pagination"){var r=document.querySelector("#".concat(e.state.form)),i=document.querySelector("#".concat(e.state.form," [data-pagination]"));i?i.value=e.state.page:r.innerHTML+='<input name="page" type="hidden" data-pagination="true" value="'.concat(e.state.page,'" />'),r.dispatchEvent(new Event("submit"))}}),document.addEventListener("submit",e=>{if(e&&e.target instanceof HTMLElement&&e.target.matches("form")){var r=e.target;r.querySelector(":invalid")&&(r.classList.add("was-validated"),e.preventDefault())}}),null},st=function(t){return typeof t!="string"?!1:!isNaN(t)&&!isNaN(parseFloat(t))},it=(a,t)=>String(a).padStart(t,"0"),ot=a=>a.charAt(0).toUpperCase()+a.slice(1);class nt{constructor(t){document.body.classList.contains("youtubeLoaded")?t.addEventListener("click",function(e){for(var r=e.target;r&&r!=this;r=r.parentNode)if(r.matches("a")){e.preventDefault(),Y(r);break}},!1):this.loadScripts(t,this.createEmbed)}loadScripts(t){return new Promise((e,r)=>{var i=new Image;i.onload=function(){var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(n,c),document.body.classList.add("youtubeLoaded"),e(!0),n.onload=()=>{t.addEventListener("click",function(o){console.log("click"),o&&o.target instanceof HTMLElement&&o.target.closest("a")&&(o.preventDefault(),Y(o.target.closest("a")))},!1)}},i.onerror=function(){r(!1)},i.src="https://youtube.com/favicon.ico"})}}var Y=function(t){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var e=t.getAttribute("data-id"),r=t.getAttribute("id");if(typeof r>"u"||r==null){var i=String.fromCharCode(65+Math.floor(Math.random()*26));r=i+Date.now(),t.setAttribute("id",r)}function n(){window.player=new YT.Player(r,{height:"100%",width:"100%",videoId:e,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:c,onStateChange:d}})}n();function c(s){s.target.playVideo()}var o=!1;function d(s){if(s.data==YT.PlayerState.PLAYING&&!o){var l=document.getElementById(r);l.classList.add("player-ready"),o=!0}}},ct=a=>(Array.from(a.querySelectorAll("dialog[open]")).forEach((t,e)=>{var r=t.closest(".dialog__wrapper");r||(t.removeAttribute("open"),t.showModal(),t.focus(),Q(t))}),a.addEventListener("click",t=>{if(t.target.tagName=="IAM-ACTIONBAR")return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){var e=t.target.closest("[data-modal]"),r=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),i=document.querySelector("dialog#".concat(r));Q(i),i.showModal(),i.focus();var n=i.offsetWidth;i.setAttribute("style","max-width: ".concat(n,"px;")),Array.from(i.querySelectorAll("[data-duplicate]")).forEach((g,A)=>{var k=g.getAttribute("data-duplicate"),S=document.getElementById(k);if(g.checked!=S.checked){g.checked=S.checked;var E=new Event("change");g.dispatchEvent(E)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:r})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var c=t.target.closest("dialog[open]");t.preventDefault(),c.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((g,A)=>{g.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:c.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){var o=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((g,A)=>{g.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){var d=t.target.closest("dialog[open]"),s=window.getComputedStyle(d);if(s.display==="contents"&&(d=d.parentNode.closest("dialog[open]")),!d.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||d.classList.contains("dialog--multi")){var l=d.getBoundingClientRect();(t.clientX<l.left||t.clientX>l.right||t.clientY<l.top||t.clientY>l.bottom)&&(t.target.closest('input[type="radio"]')||d.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:d.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();var h=t.target.closest(".dialog__wrapper > button"),f=t.target.closest(".dialog__wrapper > button").parentNode,v="openPopover",u=f.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=u&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((g,A)=>{g.classList.remove("active")}),u.hasAttribute("open"))u.close(),v="closePopover",u.removeAttribute("style"),h.classList.remove("active");else{u.show(),h.classList.add("active");var m=h.getBoundingClientRect(),b=m.top,p=m.left;if(h.closest("iam-table")){var L=h.closest("iam-table").parentNode.getBoundingClientRect();b-=L.top,p-=L.left}u.classList.contains("dialog--fix")&&u.setAttribute("style","position:fixed;top: ".concat(b,"px; left: ").concat(p,"px; margin: 3rem 0 0 0;"))}var w=u.getBoundingClientRect(),y=w.bottom-window.scrollY,x=window.innerHeight-window.scrollY;if(y>x){var q=u.hasAttribute("style")?u.getAttribute("style")+" ":"";u.setAttribute("style",q+"transform: translate(0, calc(-100% - 4rem))"),w=u.getBoundingClientRect();var T=w.top-window.scrollY;T<100&&u.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:v,id:h.textContent})}t&&t.target instanceof HTMLElement&&!t.target.closest("dialog[open]")&&!t.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((g,A)=>{g.classList.remove("active")}))}),null),Q=a=>{a.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!a.classList.contains("dialog--multi")&&a.addEventListener("cancel",n=>{n.preventDefault()});var t=a.querySelector(".youtube-embed a");if(t&&Y(t),a.classList.contains("dialog--multi")&&!a.querySelector(":scope > .steps")&&dt(a),!a.querySelector(":scope > .mh-lg")&&!a.classList.contains("dialog--multi")){a.innerHTML='<div class="mh-lg">'.concat(a.innerHTML,"</div>");var e=a.querySelector(".mh-lg"),r=a.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(r){var i=r.previousSibling;e.before(r),i&&r.before(i)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},dt=a=>{var t="",e=Array.from(a.querySelectorAll("fieldset[data-title]")),r=a.querySelector("form");e.forEach((s,l)=>{t+='<button data-title="'.concat(s.getAttribute("data-title"),'" type="button" class="').concat(l==0?"active":"",'" tabindex="-1">').concat(s.getAttribute("data-title"),"</button>");var h=document.createElement("div");if(h.classList.add("btn--wrapper"),s.appendChild(h),l!=0&&(h.innerHTML+='<button data-title="'.concat(e[l-1].getAttribute("data-title"),'" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>')),l!=e.length-1&&(h.innerHTML+='<button data-title="'.concat(e[l+1].getAttribute("data-title"),'" class="btn btn-primary mb-0" data-next type="button">Next</button>')),l==e.length-1)if(r&&r.querySelector(':scope > button[type="submit"]')){var f=r.querySelector(':scope > button[type="submit"]');f.classList.add("mb-0"),h.insertAdjacentElement("beforeend",f)}else h.innerHTML+='<button data-title="'.concat(e[l].getAttribute("data-title"),'" class="btn btn-primary mb-0" data-next type="submit">Submit</button>')}),a.insertAdjacentHTML("afterbegin",'<div class="steps bg-primary">'.concat(t,"</div>"));for(var i=Array.from(a.querySelectorAll("fieldset.was-validated")),n=0;n<i.length;n++){var c=i[n],o=c.getAttribute("data-title");if(c.querySelector(".is-invalid")){Array.from(a.querySelectorAll('[data-title="'.concat(o,'"]'))).forEach((s,l)=>{s.classList.add("active")});break}else Array.from(a.querySelectorAll('[data-title="'.concat(o,'"]'))).forEach((s,l)=>{s.classList.add("valid")})}a.addEventListener("invalid",function(){return function(s){s.preventDefault()}}(),!0);function d(s){var l=a.querySelector("fieldset.active")?a.querySelector("fieldset.active"):a.querySelector("fieldset[data-title]"),h=l.getAttribute("data-title"),f=!0;if(l.classList.add("was-validated"),Array.from(l.querySelectorAll("input")).forEach((p,L)=>{p.checkValidity()||(f=!1)}),f?Array.from(a.querySelectorAll('[data-title="'.concat(h,'"]'))).forEach((p,L)=>{p.classList.add("valid")}):Array.from(a.querySelectorAll('[data-title="'.concat(h,'"]'))).forEach((p,L)=>{p.classList.remove("valid")}),f||!s.hasAttribute("data-next")){var v=a.querySelector('fieldset[data-title="'.concat(s.getAttribute("data-title"),'"]')),u=a.querySelector('.steps button[data-title="'.concat(s.getAttribute("data-title"),'"]'));Array.from(a.querySelectorAll("button")).forEach((p,L)=>{p.classList.remove("active")}),Array.from(a.querySelectorAll("fieldset")).forEach((p,L)=>{p.classList.remove("active")}),u.classList.add("active"),v.classList.add("active")}var m=Array.from(a.querySelectorAll("fieldset")).length,b=Array.from(a.querySelectorAll("fieldset.valid")).length;a.style.setProperty("--progress","".concat(b/(m-1)*100,"%"))}a.addEventListener("keydown",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest("button")){var l=s.target.closest("button");s.keyCode==13&&l.getAttribute("type")!="submit"&&(s.preventDefault(),d(l))}if(s&&s.target instanceof HTMLElement&&s.target.closest("input")){var h=s.target.closest("input");h.classList.remove("is-invalid"),s.keyCode==13&&s.preventDefault()}}),a.addEventListener("click",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest('button[type="submit"]')){var l=s.target.closest("form");l.classList.add("was-validated")}else if(s&&s.target instanceof HTMLElement&&s.target.closest("button[data-title]")){var h=s.target.closest("button[data-title]");d(h)}return null})};function lt(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",a=>{var t=a.target.closest("[open] summary");if(t)window.dataLayer.push({event:"closeDetails",detailsTitle:t.textContent||""});else{var e=a.target.closest("summary"),r=a.target.closest("a"),i=a.target.closest("button");e&&window.dataLayer.push({event:"openDetails",detailsTitle:e.textContent||""}),r&&window.dataLayer.push({event:"linkClicked",linkText:r.hasAttribute("title")?r.getAttribute("title")||"":r.textContent||"",class:r.hasAttribute("class")&&r.getAttribute("class")||"",href:r.getAttribute("href")||""}),i&&window.dataLayer.push({event:"buttonClicked",buttonText:i.textContent||"",class:i.hasAttribute("class")&&i.getAttribute("class")||""})}})}var ut=a=>{document.addEventListener("load",function(){console.log(Array.from(document.querySelectorAll("input[maxlength]"))),Array.from(document.querySelectorAll("input")).forEach((t,e)=>{t.parentElement,ht(t)})}),a.addEventListener("input",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("input,textarea,select")){var e=t.target.closest("input,textarea,select");e.parentElement,e.hasAttribute("type")&&e.getAttribute("type")=="color"&&(e.nextElementSibling.value=e.value),e.hasAttribute("maxlength")&&e.nextElementSibling&&e.nextElementSibling.setAttribute("data-count",e.value.length)}}),a.addEventListener("change",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("select")){var e=t.target.closest("select");if(console.log(e),e.hasAttribute("data-change-type")&&e.hasAttribute("data-input")){var r=document.getElementById(e.getAttribute("data-input")),i=e.value;J(r,i)}}if(t&&t.target instanceof HTMLElement&&t.target.closest('dialog [type="radio"]')){var n=t.target.closest("dialog");t.target.closest('dialog [type="radio"]'),Array.from(n.querySelectorAll('[type="radio"][autofocus]')).forEach((c,o)=>{c.removeAttribute("autofocus")}),Array.from(n.querySelectorAll('[type="radio"]:checked')).forEach((c,o)=>{c.setAttribute("autofocus",!0)})}}),a.addEventListener("click",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-change-type][data-input]:not(select)")){var e=t.target.closest("[data-change-type]"),r=document.getElementById(e.getAttribute("data-input")),i=e.getAttribute("data-change-type");if(e.setAttribute("data-change-type",r.getAttribute("type")),J(r,i),e.hasAttribute("data-alt-class")){var n=e.getAttribute("data-alt-class");e.setAttribute("data-alt-class",e.getAttribute("class")),e.setAttribute("class",n)}}})},ht=a=>{var t=a.parentElement,e=a.getAttribute("maxlength");t.style.setProperty("--maxlength",e);var r=a.nextElementSibling;(!r||r&&r.classList.contains("invalid-feedback"))&&(r=document.createElement("span"),t.insertBefore(r,a.nextSibling)),r.setAttribute("data-count",a.value.length)},J=(a,t)=>{a.setAttribute("type",t)},ft=a=>{if(Array.from(a.querySelectorAll("details")).forEach((e,r)=>{e.addEventListener("mouseenter",function(i){window.matchMedia("(min-width: 62em)").matches&&e.setAttribute("open","true")},!1),e.addEventListener("mouseleave",function(i){window.matchMedia("(min-width: 62em)").matches&&e.removeAttribute("open")},!1)}),"IntersectionObserver"in window){var t=new IntersectionObserver(e=>{var[r]=e;return r.target.classList.toggle("is-stuck",r.intersectionRatio<1)},{threshold:[1]});t.observe(a)}};function mt(a){var t,e=a.querySelector(".testimonial__images"),r=e.querySelectorAll("img").length;if(r==1)return!1;a.classList.add("testimonial--multi");var i=function(c){var o=a.querySelector(".btn-next"),d=a.querySelector(".btn-prev");o.setAttribute("data-go",c+1),d.setAttribute("data-go",c-1),o.removeAttribute("disabled"),d.removeAttribute("disabled"),c==1?d.setAttribute("disabled",!0):c==r&&o.setAttribute("disabled",!0)};e.addEventListener("scroll",function(n){clearTimeout(t),t=setTimeout(function(){var c=e.scrollWidth,o=e.scrollHeight,d=e.scrollLeft,s=e.scrollTop,l=Math.round(d/c*r)+1;d==0&&s!=0&&(l=Math.round(s/o*r)+1),a.setAttribute("data-show",l),i(l)},300)},!1),a.addEventListener("click",function(n){for(var c=n.target;c&&c!=this;c=c.parentNode)if(c.matches("[data-go]")){var o=parseInt(c.getAttribute("data-go")),d=0,s=0,l=e.scrollWidth,h=e.scrollHeight;l>h?s=Math.floor(l*((o-1)/r)):d=Math.floor(h*((o-1)/r)),e.scroll({top:d,left:s,behavior:"smooth"});break}},!1)}function vt(a){var t,e=a.querySelector(".carousel__inner"),r=a.querySelectorAll(".carousel__item").length;a.getAttribute("data-cols");var i=a.getAttribute("data-sm-cols"),n=a.getAttribute("data-md-cols");a.querySelector(".carousel__controls a").classList.add("active"),e.addEventListener("scroll",function(c){clearTimeout(t),t=setTimeout(function(){var o=e.clientWidth,d=e.scrollWidth,s=e.scrollLeft,l=Math.round(s/d*r)+1,h=a.querySelector(".carousel__item:last-child").offsetLeft;Array.from(a.querySelectorAll(".carousel__controls a")).forEach((f,v)=>{f.classList.remove("active")}),a.querySelector(".control-"+l).classList.add("active"),l==1?a.querySelector(".btn-prev").setAttribute("disabled","disabled"):a.querySelector(".btn-prev").removeAttribute("disabled"),e.scrollLeft+o>h?a.querySelector(".btn-next").setAttribute("disabled","disabled"):a.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),a.addEventListener("click",function(c){for(var o=c.target;o&&o!=this;o=o.parentNode)if(o.matches(".carousel__controls a")){c.preventDefault(),Array.from(a.querySelectorAll(".carousel__controls a")).forEach((s,l)=>{s.classList.remove("active")}),o.classList.add("active");var d=document.querySelector(o.getAttribute("href"));e.scroll({top:0,left:d.offsetLeft,behavior:"smooth"});break}},!1),a.addEventListener("click",function(c){for(var o=c.target;o&&o!=this;o=o.parentNode)if(o.matches(".btn-next, .btn-prev")){c.preventDefault();var d=o.classList.contains("btn-prev")?e.scrollLeft-e.clientWidth:e.scrollLeft+e.clientWidth;e.scroll({top:0,left:d,behavior:"smooth"});break}},!1),r==1&&a.classList.add("hide-btns"),i>=r&&a.classList.add("hide-sm-btns"),n>=r&&a.classList.add("hide-md-btns")}function bt(a){a.addEventListener("change",function(t){var e=parseInt(a.querySelector("[data-min] select,[data-min] input").value),r=parseInt(a.querySelector("[data-max] select,[data-max] input").value);Array.from(a.querySelectorAll("[data-min] input")).forEach((i,n)=>{i.setAttribute("max",r)}),Array.from(a.querySelectorAll("[data-max] input")).forEach((i,n)=>{i.setAttribute("min",e)}),Array.from(a.querySelectorAll("[data-min] select option")).forEach((i,n)=>{parseInt(i.getAttribute("value"))>r?i.classList.add("d-none"):i.classList.remove("d-none")}),Array.from(a.querySelectorAll("[data-max] select option")).forEach((i,n)=>{parseInt(i.getAttribute("value"))<e?i.classList.add("d-none"):i.classList.remove("d-none")})},!1)}function pt(a){a.addEventListener("change",function(t){if(a.matches("[data-value-if]")){var e=a.getAttribute("data-redirect"),r=a.getAttribute("data-value-if");a.value==r&&(document.location.href=e)}else typeof a.value<"u"&&(document.location.href=a.value)},!1)}function yt(a){var t=a.querySelector(".row"),e=t.cloneNode(!0),r=a.querySelector("[data-add]");a.addEventListener("click",function(i){for(var n=i.target;n&&n!=this;n=n.parentNode){if(n.matches("[data-add]")){var c=e.cloneNode(!0);a.insertBefore(c,n),r.matches("[data-maxfiles]")&&Array.from(a.querySelectorAll(":scope > .row")).length>=r.dataset.maxfiles&&r.setAttribute("disabled","disabled");break}if(n.matches("[data-delete]")){var o=n.closest(".row");o.remove(),r.matches("[data-maxfiles]")&&Array.from(a.querySelectorAll(":scope > .row")).length<r.dataset.maxfiles&&r.removeAttribute("disabled");break}}},!1)}function gt(a){Array.from(a.querySelectorAll("[data-input-range]")).forEach((t,e)=>{bt(t)}),Array.from(a.querySelectorAll("[data-redirect]")).forEach((t,e)=>{pt(t)}),Array.from(a.querySelectorAll(".multiple-file-uploads")).forEach((t,e)=>{yt(t)}),a.addEventListener("change",function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches('[type="file"][data-filesize]')&&e.files&&e.files[0]){var r=e.dataset.filesize;e.files[0].size>r&&(e.value="",alert("File too large"));break}},!1),a.addEventListener("change",function(t){Array.from(a.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((e,r)=>{var i=e.closest("[data-group]")?e.closest("[data-group]"):a,n=e.dataset.activeif,c=e.dataset.equals,o=i.querySelector('select[data-id="'.concat(n,'"],input[data-id="').concat(n,'"]'));o.value==c?e.removeAttribute("disabled"):(e.setAttribute("disabled","disabled"),e.value="")}),Array.from(a.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((e,r)=>{var i=e.closest("[data-group]")?e.closest("[data-group]"):a,n=e.dataset.activeif,c=e.dataset.equals,o=i.querySelector('select[data-id="'.concat(n,'"],input[data-id="').concat(n,'"]'));o.value==c?e.classList.remove("d-none"):e.classList.add("d-none")})},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class At extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),r='@import "'.concat(t,'/css/components/header.css";'),i=document.createElement("template");i.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v4.1.
|
|
2
|
+
* iamKey v4.1.1-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/
|
|
5
5
|
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";class t{constructor(t){document.body.classList.contains("youtubeLoaded")?t.addEventListener("click",(function(t){for(var a=t.target;a&&a!=this;a=a.parentNode)if(a.matches("a")){t.preventDefault(),e(a);break}}),!1):this.loadScripts(t,this.createEmbed)}loadScripts(t){return new Promise(((a,r)=>{var o=new Image;o.onload=function(){var r=document.createElement("script");r.src="https://www.youtube.com/iframe_api";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o),document.body.classList.add("youtubeLoaded"),a(!0),r.onload=()=>{t.addEventListener("click",(function(t){console.log("click"),t&&t.target instanceof HTMLElement&&t.target.closest("a")&&(t.preventDefault(),e(t.target.closest("a")))}),!1)}},o.onerror=function(){r(!1)},o.src="https://youtube.com/favicon.ico"}))}}var e=function(t){typeof window.player<"u"&&"function"==typeof window.player.pauseVideo&&window.player.pauseVideo();var e=t.getAttribute("data-id"),a=t.getAttribute("id");if(typeof a>"u"||null==a){var r=String.fromCharCode(65+Math.floor(26*Math.random()));a=r+Date.now(),t.setAttribute("id",a)}window.player=new YT.Player(a,{height:"100%",width:"100%",videoId:e,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:function(t){t.target.playVideo()},onStateChange:function(t){t.data!=YT.PlayerState.PLAYING||o||(document.getElementById(a).classList.add("player-ready"),o=!0)}}});var o=!1},a=t=>{t.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!t.classList.contains("dialog--multi")&&t.addEventListener("cancel",(t=>{t.preventDefault()}));var a=t.querySelector(".youtube-embed a");if(a&&e(a),t.classList.contains("dialog--multi")&&!t.querySelector(":scope > .steps")&&r(t),!t.querySelector(":scope > .mh-lg")&&!t.classList.contains("dialog--multi")){t.innerHTML='<div class="mh-lg">'.concat(t.innerHTML,"</div>");var o=t.querySelector(".mh-lg"),s=t.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(s){var n=s.previousSibling;o.before(s),n&&s.before(n)}}t.querySelector(":scope > button:first-child")||t.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},r=t=>{var e="",a=Array.from(t.querySelectorAll("fieldset[data-title]")),r=t.querySelector("form");a.forEach(((t,o)=>{e+='<button data-title="'.concat(t.getAttribute("data-title"),'" type="button" class="').concat(0==o?"active":"",'" tabindex="-1">').concat(t.getAttribute("data-title"),"</button>");var s=document.createElement("div");if(s.classList.add("btn--wrapper"),t.appendChild(s),0!=o&&(s.innerHTML+='<button data-title="'.concat(a[o-1].getAttribute("data-title"),'" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>')),o!=a.length-1&&(s.innerHTML+='<button data-title="'.concat(a[o+1].getAttribute("data-title"),'" class="btn btn-primary mb-0" data-next type="button">Next</button>')),o==a.length-1)if(r&&r.querySelector(':scope > button[type="submit"]')){var n=r.querySelector(':scope > button[type="submit"]');n.classList.add("mb-0"),s.insertAdjacentElement("beforeend",n)}else s.innerHTML+='<button data-title="'.concat(a[o].getAttribute("data-title"),'" class="btn btn-primary mb-0" data-next type="submit">Submit</button>')})),t.insertAdjacentHTML("afterbegin",'<div class="steps bg-primary">'.concat(e,"</div>"));for(var o=Array.from(t.querySelectorAll("fieldset.was-validated")),s=0;s<o.length;s++){var n=o[s],i=n.getAttribute("data-title");if(n.querySelector(".is-invalid")){Array.from(t.querySelectorAll('[data-title="'.concat(i,'"]'))).forEach(((t,e)=>{t.classList.add("active")}));break}Array.from(t.querySelectorAll('[data-title="'.concat(i,'"]'))).forEach(((t,e)=>{t.classList.add("valid")}))}function c(e){var a=t.querySelector("fieldset.active")?t.querySelector("fieldset.active"):t.querySelector("fieldset[data-title]"),r=a.getAttribute("data-title"),o=!0;if(a.classList.add("was-validated"),Array.from(a.querySelectorAll("input")).forEach(((t,e)=>{t.checkValidity()||(o=!1)})),o?Array.from(t.querySelectorAll('[data-title="'.concat(r,'"]'))).forEach(((t,e)=>{t.classList.add("valid")})):Array.from(t.querySelectorAll('[data-title="'.concat(r,'"]'))).forEach(((t,e)=>{t.classList.remove("valid")})),o||!e.hasAttribute("data-next")){var s=t.querySelector('fieldset[data-title="'.concat(e.getAttribute("data-title"),'"]')),n=t.querySelector('.steps button[data-title="'.concat(e.getAttribute("data-title"),'"]'));Array.from(t.querySelectorAll("button")).forEach(((t,e)=>{t.classList.remove("active")})),Array.from(t.querySelectorAll("fieldset")).forEach(((t,e)=>{t.classList.remove("active")})),n.classList.add("active"),s.classList.add("active")}var i=Array.from(t.querySelectorAll("fieldset")).length,c=Array.from(t.querySelectorAll("fieldset.valid")).length;t.style.setProperty("--progress","".concat(c/(i-1)*100,"%"))}t.addEventListener("invalid",(function(t){t.preventDefault()}),!0),t.addEventListener("keydown",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("button")){var e=t.target.closest("button");13==t.keyCode&&"submit"!=e.getAttribute("type")&&(t.preventDefault(),c(e))}t&&t.target instanceof HTMLElement&&t.target.closest("input")&&(t.target.closest("input").classList.remove("is-invalid"),13==t.keyCode&&t.preventDefault())})),t.addEventListener("click",(t=>(t&&t.target instanceof HTMLElement&&t.target.closest('button[type="submit"]')?t.target.closest("form").classList.add("was-validated"):t&&t.target instanceof HTMLElement&&t.target.closest("button[data-title]")&&c(t.target.closest("button[data-title]")),null)))},o=(t,e)=>{t.setAttribute("type",e)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class s extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/header.css";'),r=document.createElement("template");r.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <div class="header-banner">\n <div class="container" part="container">\n <slot name="breadcrumb"></slot>\n <div class="header-banner__inner">\n <slot></slot>\n </div>\n </div>\n <picture>\n \x3c!-- Actual image only loaded on desktops --\x3e\n <source srcset="" media="(min-width: 62em)">\n \x3c!-- Placeholder image --\x3e\n <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />\n </picture>\n </div>\n '),this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");var t=this.shadowRoot.querySelector("picture"),e=this.shadowRoot.querySelector("picture source");this.hasAttribute("image")?e.setAttribute("srcset",this.getAttribute("image")):t.remove()}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class n extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/accordion.css";'),r=document.createElement("template");r.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <div class="accordion">\n <slot></slot>\n </div>\n '),this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){!function(t){var e=t.querySelectorAll("details"),a=t.querySelectorAll("summary");if(e.forEach((t=>{t.classList.add("accordion-item")})),a.forEach((t=>{t.classList.add("accordion-header"),t.classList.add("accordion-button"),t.classList.add("h4")})),!t.classList.contains("accordion--keep-open")){var r=t.querySelectorAll(":scope > details");r.forEach((t=>{t.addEventListener("click",(()=>{r.forEach((e=>{e!==t&&e.removeAttribute("open")}))}))}))}}(this)}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class i extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a=document.createElement("template");a.innerHTML='\n <style>\n @import "'.concat(e,'";\n\n :host(.admin-panel){\n display: contents!important;\n }\n \n ').concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <div class="tabs">\n <div class="tabs__links__wrapper">\n <div class="tabs__links"></div>\n </div>\n <slot></slot>\n </div>\n '),this.shadowRoot.appendChild(a.content.cloneNode(!0))}connectedCallback(){var t=this.classList.toString().replace("container","");this.shadowRoot.querySelector(".tabs").setAttribute("class","tabs ".concat(t)),function(t){(function(t){var e=t.querySelectorAll(":scope > details");t.querySelectorAll(":scope > details > summary");var a=t.querySelector(":scope > .tabs__links");if(t.shadowRoot&&t.shadowRoot.querySelector(".tabs__links")&&(a=t.shadowRoot.querySelector(".tabs__links")),!a){(a=document.createElement("div")).classList.add("tabs__links");var r=document.createElement("div");r.classList.add("tabs__links__wrapper"),r.prepend(a),t.prepend(r)}e.forEach(((t,e)=>{var r=t.querySelector(":scope > summary"),o=r.classList.contains("disabled");r.classList.add("visually-hidden");var s=document.createElement("button");t.hasAttribute("id")&&(s=document.createElement("a")).setAttribute("href","#".concat(t.getAttribute("id"))),t.hasAttribute("open")&&s.setAttribute("aria-pressed",!0),s.innerHTML="".concat(r.innerText),s.classList.add("link"),s.setAttribute("data-index",e),s.setAttribute("tabindex","-1"),o&&s.classList.add("disabled"),a.appendChild(s)}))})(t),function(t){var e=t.querySelectorAll(":scope > details"),a=t.querySelectorAll(":scope > details > summary"),r=t.querySelectorAll(":scope .tabs__links > .link");t.shadowRoot&&(r=t.shadowRoot.querySelectorAll(".tabs__links > .link")),r.forEach((t=>{t.addEventListener("click",(a=>{if(a.preventDefault(),t.classList.contains("disabled"))return!1;r.forEach((e=>{var a=e==t;e.setAttribute("aria-pressed",a)})),e.forEach(((e,a)=>{var r=t.getAttribute("data-index")==a;r?e.setAttribute("open",r):e.removeAttribute("open")})),t.hasAttribute("href")&&history.pushState(void 0,void 0,t.getAttribute("href")),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:t.textContent})}))})),a.forEach(((t,e)=>{t.addEventListener("focus",(t=>{r.forEach((t=>{t.classList.remove("focus")})),r[e].classList.add("focus")})),t.addEventListener("click",(t=>{t.preventDefault(),r[e].click()}))}))}(t),function(t){var e=t.querySelectorAll(":scope > details"),a=t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");t.shadowRoot&&(a=t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")),location.hash&&t.querySelector('.tabs__links [href="'.concat(location.hash,'"]'))?(t.querySelector('[href="'.concat(location.hash,'"]')).setAttribute("open",!0),t.querySelector('details[id="'.concat(location.hash.replace("#",""),'"]')).setAttribute("open",!0)):t.querySelector("details[open]")||(e[0].setAttribute("open",!0),a[0].setAttribute("aria-pressed",!0))}(t)}(this)}}var c=t=>{var e=Array.from(t.querySelectorAll("thead th"));Array.from(t.querySelectorAll("tbody tr")).forEach(((t,a)=>{var r=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"];r.forEach(((t,a)=>{var r=e[a];if(typeof r<"u"){var s=document.createElement("div");s.innerHTML=r.innerHTML;var n=s.textContent||s.innerText||"";t.setAttribute("data-label",n),r.hasAttribute("data-td-class")&&t.setAttribute("class",r.getAttribute("data-td-class")),r.hasAttribute("data-format")&&(t.setAttribute("data-format",r.getAttribute("data-format")),t.innerHTML=f(r.getAttribute("data-format"),t.textContent.trim())),o.includes(t.textContent.trim().toLowerCase())&&t.setAttribute("data-content",t.textContent.trim().toLowerCase())}}))}))},l=(t,e)=>{var a=e.querySelector("[data-search]");if(!a)return!1;var r=a.getAttribute("id"),o=a.getAttribute("data-search").split(","),s=a.parentNode,n={};o.forEach(((e,a)=>{Array.from(t.querySelectorAll('td[data-label="'+e.trim()+'"]')).forEach(((t,e)=>{t.querySelector(".td__content")?n[t.querySelector(".td__content").textContent]=t.querySelector(".td__content").textContent:n[t.textContent]=t.textContent}))})),a.setAttribute("list","".concat(r,"_list")),a.setAttribute("autocomplete","off"),s.querySelector("datalist")||(s.innerHTML+='<datalist id="'.concat(r,'_list"></datalist>')),s.querySelector("datalist").innerHTML="".concat(Object.keys(n).map((t=>'<option value="'.concat(t,'"></option>'))).join(""))},d=(t,e,a)=>{if(e.getAttribute("data-ajax"))return!1;var r=t.querySelector("tbody"),o=e.querySelector("[data-sort]"),s=o.querySelector("option:nth-child(".concat(o.selectedIndex+1,")")),n=s.getAttribute("data-sort"),i=s.getAttribute("data-order"),l=s.getAttribute("data-format");if(!n)return r.innerHTML=a.innerHTML,c(t),!1;var d=[];["asc","desc","descending"].includes(i)||(d=i.split(","));var u=[];Array.from(r.querySelectorAll("tr")).forEach(((t,e)=>{var a=t.querySelector('td[data-label="'+n+'"], th[data-label="'+n+'"]').textContent.trim();t.querySelector('[data-label="'+n+'"] .td__content')&&(a=t.querySelector('[data-label="'+n+'"] .td__content').textContent.trim()),d.length&&d.includes(a)&&(a=d.indexOf(a)),function(t){return"string"==typeof t&&!isNaN(t)&&!isNaN(parseFloat(t))}(a)&&(a=((t,e)=>String(t).padStart(10,"0"))(a)),l&&"date"==l&&(a=new Date(a));var r={index:a,row:t};u.push(r)})),u.sort(((t,e)=>t.index>e.index?1:-1)),("descending"==i||"desc"==i)&&(u=u.reverse());var h="";u.forEach(((t,e)=>{h+=t.row.outerHTML})),r.innerHTML=h},u=(t,e,a)=>{t.classList.remove("table--filtered");var r=p(e),o=[],s=0,n=e.querySelector("[data-pagination]")?parseInt(e.querySelector("[data-pagination]").value):1,i=e.querySelector("[data-show]")?parseInt(e.querySelector("[data-show]").value):15;if(Array.from(t.querySelectorAll("tbody tr")).forEach(((t,e)=>{t.classList.remove("filtered"),t.classList.remove("filtered--matched"),t.classList.remove("filtered--show"),t.removeAttribute("data-filtered-by")})),e.querySelector("[data-search]")){var c=e.querySelector("[data-search]");e.querySelector("[data-search]").getAttribute("data-search").split(",").forEach(((t,e)=>{o.push({column:"".concat(t.trim()),value:"".concat(c.value)})}))}Array.from(e.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML="",t.parentNode.classList.remove("hover")}));var l=0;Object.values(r).forEach(((t,e)=>{"object"==typeof t&&Object.values(t).length?l+=Object.values(t).length:l++})),l&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML+="(".concat(l,")"),t.parentNode.classList.add("hover")})),t.classList.add("table--filtered");var d=function(e,a){Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(((t,r)=>{var o=!1;a.forEach(((a,r)=>{var s=t.querySelector('[data-label="'.concat(e,'"]'));if(a&&"$today"==a)a=f("date",new Date);else if(a&&"$yesterday"==a){var n=new Date;n.setDate(n.getDate()-1),a=f("date",n)}else if(!a||"$thisWeek"!=a&&"$lastWeek"!=a){if(a&&"$thisMonth"==a){var i=new Date,c=i.getFullYear(),l=i.getMonth(),d=new Date(c,l,1),u=new Date(c,l+1,0),h=new Date(s.textContent.toLowerCase());d.setHours(0,0,0,0),u.setHours(0,0,0,0),h.setHours(0,0,0,0),o=h>=d&&h<=u}else if(a&&"$lastMonth"==a){var m=new Date,p=m.getFullYear(),b=m.getMonth(),y=new Date(p,b-1,1),v=new Date(p,b,0),g=new Date(s.textContent.toLowerCase());y.setHours(0,0,0,0),v.setHours(0,0,0,0),g.setHours(0,0,0,0),o=g>=y&&g<=v}}else{var A=new Date,w=new Date(A.setDate(A.getDate()-(A.getDay()-1))),L=new Date(A.setDate(A.getDate()-A.getDay()+7)),E=new Date(s.textContent.toLowerCase());if(A.setHours(0,0,0,0),w.setHours(0,0,0,0),L.setHours(0,0,0,0),E.setHours(0,0,0,0),"$thisWeek"==a)o=E>=w&&E<=L;else{var S=new Date(w.setDate(w.getDate()-7)),q=new Date(L.setDate(L.getDate()-7));S.setHours(0,0,0,0),q.setHours(0,0,0,0),o=E>=S&&E<=q}}s&&s.textContent.toLowerCase().includes(a.toLowerCase())&&(o=!0)})),o||(t.classList.add("filtered"),t.setAttribute("data-filtered-by",e))}))};for(var[u,h]of Object.entries(r))d(u,h);Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(((t,e)=>{var a=!(o.length>0&&o[0].value.length>=3);o.forEach(((e,r)=>{var o=t.querySelector('[data-label="'.concat(e.column,'"]'));o&&e.value.length>=3&&o.textContent.toLowerCase().includes(e.value.toLowerCase())&&(a=!0)})),a||t.classList.add("filtered")})),Array.from(t.querySelectorAll("tbody tr:not(.filtered")).forEach(((t,e)=>{s++,t.classList.add("filtered--matched"),Math.ceil(s/i)==parseInt(n)&&t.classList.add("filtered--show")})),a&&(a.setAttribute("data-total",s),a.setAttribute("data-show",i),a.setAttribute("data-page",n))},h=(t,e,a)=>{Array.from(e.querySelectorAll("[data-query]")).forEach(((e,r)=>{var o,s=e.getAttribute("data-query");if("total"==s)a.hasAttribute("data-total")?o=a.getAttribute("data-total"):(t.classList.contains("table--filtered"),o=t.querySelectorAll("tbody tr").length);else if(!s.includes(" == ")&&s.includes(" & ")){var n=s.split(" & "),i="";n.forEach((t=>{i+=':not([data-filtered-by="'.concat(t,'"])')})),o=Array.from(t.querySelectorAll("tbody tr".concat(i))).length}else if(s.includes(" == "))if(s.includes(" && ")){var c=s.split(" && ");o=Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).filter((function(t){var e=!0;for(var[a,r]of Object.entries(c)){var o=r.split(" == ");(!t.querySelector('td[data-label="'.concat(o[0],'"]'))||t.querySelector('td[data-label="'.concat(o[0],'"]')).textContent!="".concat(o[1]))&&(e=!1)}return e})).length}else{var l=s.split(" == ");o=Array.from(t.querySelectorAll('tbody tr.filtered--matched td[data-label="'.concat(l[0],'"], tbody tr[data-filtered-by="').concat(l[0],'"] td[data-label="').concat(l[0],'"]'))).filter((function(t){return t.textContent===l[1]})).length}else o=Array.from(t.querySelectorAll('tbody tr:not([data-filtered-by="'.concat(s,'"])'))).length;e.hasAttribute("data-total")?e.setAttribute("data-total",o):e.innerHTML=o}))},m=function(t,e,a,r){if(c(t),((t,e)=>{if(e.classList.contains(".table--fullwidth")&&!e.hasAttribute("data-expandable")||t.querySelectorAll("thead tr th").length<4&&!e.hasAttribute("data-expandable"))return!1;Array.from(t.querySelectorAll("thead tr")).forEach(((t,e)=>{t.insertAdjacentHTML("afterbegin",'<th class="th--fixed expand-button-heading"></th>')})),Array.from(t.querySelectorAll("tbody tr")).forEach(((t,e)=>{t.insertAdjacentHTML("afterbegin",'<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button>Expand</button></td>')}))})(t,r),h(t,e,r),r&&r.classList.contains("table--cta")){let e=function(){Array.from(t.querySelectorAll("tr")).forEach(((t,e)=>{var a=t.offsetHeight;t.style.setProperty("--row-height","".concat(a,"px"))}))};var o=(t=>{var e=0;return Array.from(t.querySelectorAll("tbody tr")).forEach(((t,a)=>{var r=window.getComputedStyle(document.querySelector("html")),o=t.querySelector(":scope > *:last-child > *:first-child");if(o){o.classList.add("text-nowrap");var s=o.offsetWidth/parseFloat(r.fontSize);e=e>(s+=1.7)?e:s}})),e})(t);r.style.setProperty("--cta-width","".concat(o,"rem")),new ResizeObserver(e).observe(t)}},p=function(t){var e=new Object;return Array.from(t.querySelectorAll("[data-filter]")).forEach(((t,a)=>{if(("radio"!=t.type||t.checked)&&("checkbox"!=t.type||t.checked)&&t&&t.value){var r=t.getAttribute("data-filter");e[r]||(e[r]=new Array),e[r].push(t.value)}})),e},b=function(t,e,a,r){return function(t,e,a,r){return new(a||(a=Promise))((function(o,s){function n(t){try{c(r.next(t))}catch(t){s(t)}}function i(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){t.done?o(t.value):function(t){return t instanceof a?t:new a((function(e){e(t)}))}(t.value).then(n,i)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){var o=(t,e,a)=>e.split(/[\.\[\]\'\"]/).filter((t=>t)).reduce(((t,e)=>t?t[e]:a),t),s=new FormData(e),n=new URLSearchParams(s).toString(),i=t.querySelectorAll("thead tr th"),c=t.querySelector("tbody"),d=e.getAttribute("data-ajax");r.classList.add("table--loading");var u=p(e);Array.from(e.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML="",t.parentNode.classList.remove("hover")}));var h=0;Object.values(u).forEach(((t,e)=>{"object"==typeof t&&Object.values(t).length?h+=Object.values(t).length:h++})),h&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML+="(".concat(h,")"),t.parentNode.classList.add("hover")})),window.controller||(window.controller=[]),window.controller[d]&&window.controller[d].abort(),window.controller[d]=new AbortController;var{signal:b}=controller[d];a.setAttribute("data-loading","true"),e.classList.add("processing");try{yield fetch(d+"?"+n,{signal:b,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then((t=>t.json())).then((s=>{var u=e.hasAttribute("data-schema")?e.getAttribute("data-schema"):"data",h=e.hasAttribute("data-schema-total")?e.getAttribute("data-schema-total"):"meta.total",p=e.hasAttribute("data-schema-page")?e.getAttribute("data-schema-page"):"meta.current_page",b=o(s,h,15),f=o(s,p,1),y=o(s,u),v=r.hasAttribute("data-empty-msg")?r.getAttribute("data-empty-msg"):"No results found";y?(c.innerHTML="",y.forEach(((t,e)=>{var a=document.createElement("tr");i.forEach(((e,r)=>{var s="",n=document.createElement("td");if(n.setAttribute("data-label",e.innerText),e.getAttribute("data-output")){var i=e.getAttribute("data-output");s=i.replace(new RegExp(/{(.*?)}/,"gm"),(function(e){return o(t,e.replace("{","").replace("}",""))}))}if(e.hasAttribute("data-output-array")){i=e.getAttribute("data-output");var c=o(t,i.replace("{","").replace("}",""));s="",c.forEach(((t,a)=>{var r=e.getAttribute("data-output-array"),n="";if(e.hasAttribute("data-output-array-property")&&e.hasAttribute("data-output-array-transform")){var i=o(t,e.getAttribute("data-output-array-property")),c=JSON.parse(e.getAttribute("data-output-array-transform"))[i];n=r.replace("{".concat(e.getAttribute("data-output-array-property"),"}"),c)}n=n.replace(new RegExp(/{(.*?)}/,"gm"),(function(e){return o(t,e.replace("{","").replace("}",""))})),s+=n}))}if(e.hasAttribute("data-transform")){var l=JSON.parse(e.getAttribute("data-transform"));!(s=l[s])&&e.hasAttribute("data-default")&&(s=e.getAttribute("data-default"))}n.innerHTML=s,a.appendChild(n)})),c.appendChild(a)})),l(t,e),r.setAttribute("data-total",parseInt(b)),r.setAttribute("data-page",parseInt(f)),m(t,e,0,r),Array.from(e.querySelectorAll("[data-ajax-query]")).forEach(((t,e)=>{var a=o(s,t.getAttribute("data-ajax-query"),"");t.hasAttribute("data-total")?t.setAttribute("data-total",a):t.innerHTML=a})),0==parseInt(b)&&(c.innerHTML='<tr><td colspan="100%"><span>'.concat(v,"</span></td></tr>")),r.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:d,formData:n})):c.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',a.removeAttribute("data-loading"),e.classList.remove("processing")}))}catch(t){console.log(t)}}))},f=(t,e)=>{switch(t){case"datetime":return new Date(e).toLocaleDateString("en-gb",{weekday:"short",year:"2-digit",month:"long",day:"numeric"})+" "+new Date(e).toLocaleTimeString("en-gb",{hour:"2-digit",minute:"2-digit"});case"date":return new Date(e).toLocaleDateString("en-gb",{year:"2-digit",month:"long",day:"numeric"});case"capitalise":return(t=>t.charAt(0).toUpperCase()+t.slice(1))(e)}};class y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/table.css";'),r='@import "'.concat(t,'/css/components/table.extras.css";'),o=document.createElement("template");o.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n\n :host(.mh-sm){\n max-height: none!important;\n }\n :host(.mh-md){\n max-height: none!important;\n }\n :host(.mh-lg){\n max-height: none!important;\n }\n \n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <slot name="before"></slot>\n <div class="table--cta">\n <div class="table__wrapper">\n <slot></slot>\n </div>\n </div>\n <iam-pagination class="pagination--table" ').concat(this.hasAttribute("data-page")?'data-page="'.concat(this.getAttribute("data-page"),'"'):""," ></iam-pagination>\n "),this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",'<style id="tableExtras">'.concat(r,"</style>"))}connectedCallback(){var t=new URLSearchParams(window.location.search);this.hasAttribute("data-total")||this.setAttribute("data-total",this.querySelectorAll("table tbody tr").length),this.hasAttribute("data-page")||this.setAttribute("data-page",t.has("page")?t.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",t.has("show")?t.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",this.getAttribute("data-show"));var e=this.classList.toString();if(e=(e=e.replace("table--cta","")).replace("table--loading",""),this.shadowRoot.querySelector(".table__wrapper").className+=" ".concat(e),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("#".concat(this.getAttribute("data-filterby"))):this.table.parentNode.insertBefore(this.form,this.table.nextSibling),this.form.hasAttribute("data-ajax")&&this.table.classList.add("table--ajax"),l(this.table,this.form),this.form.querySelector("[data-pagination]")||(this.form.innerHTML+='<input name="page" type="hidden" value="'.concat(this.getAttribute("data-page"),'" data-pagination="true" />')),this.form.querySelector("[data-show]")||(this.form.innerHTML+='<input name="show" type="hidden" value="'.concat(this.getAttribute("data-show"),'" data-show="true" />')),this.table.addEventListener("click",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-expand-button]")){var e=t.target.closest("[data-expand-button]"),a=e.closest("tr");"full"==a.getAttribute("data-view")?a.setAttribute("data-view","default"):a.setAttribute("data-view","full"),e.blur()}})),((t,e,a,r,o)=>{var s,n=function(o){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.classList.contains("processing"))return!1;if("submit"==o.type&&(e.classList.add("processing"),Array.from(e.querySelectorAll("[data-duplicate]")).forEach(((t,e)=>{var a=t.getAttribute("data-duplicate"),r=document.getElementById(a),o=document.querySelector('[for="'.concat(a,'"] iam-card'));if(r.checked!=t.checked)if(o){var s=new Event("click");o.dispatchEvent(s)}else r.checked=t.checked})),e.classList.remove("processing")),e.hasAttribute("data-ajax")?(s||(e.querySelector("[data-pagination]").value=1,r.setAttribute("data-page",1)),b(t,e,a,r)):e.hasAttribute("data-submit")?e.submit():(u(t,e,r),h(t,e)),e.hasAttribute("data-ajax-post")){var n=new FormData(e),i=new URLSearchParams(n).toString(),c=new XMLHttpRequest;c.open("GET","".concat(window.location.href,"?ajax=true&").concat(i)),c.send()}};e.addEventListener("keyup",(t=>{clearTimeout(s),t&&t.target instanceof HTMLElement&&t.target.closest("[data-search]")&&(s=setTimeout((function(){n(t)}),500))})),e.addEventListener("change",(a=>{clearTimeout(s),a&&a.target instanceof HTMLElement&&a.target.closest("[data-sort]")&&(e.hasAttribute("data-submit")||d(t,e,o),n(a)),a&&a.target instanceof HTMLElement&&a.target.closest("[data-search]")&&n(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-filter][data-no-ajax]")?(u(t,e,r),h(t,e)):(a&&a.target instanceof HTMLElement&&a.target.closest("[data-filter]")&&a.target.closest("form .dialog__wrapper > dialog")||a&&a.target instanceof HTMLElement&&a.target.closest("[data-filter]")&&!a.target.closest("form dialog"))&&n(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-show]")&&n(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-mimic]")&&n(a)})),e.addEventListener("click",(a=>{if(clearTimeout(s),a&&a.target instanceof HTMLElement&&a.target.closest('dialog button:not([type="button"])')&&a.target.closest('dialog button:not([type="button"])').closest("dialog").close(),a&&a.target instanceof HTMLElement&&a.target.closest(".dialog__close")&&(a.preventDefault(),a.stopPropagation()),a&&a.target instanceof HTMLElement&&a.target.closest("[data-clear]")){e.classList.add("processing"),Array.from(e.querySelectorAll(".applied-filters")).forEach(((t,e)=>{t.innerHTML=""}));for(var r=e.elements,i=0;i<r.length;i++)switch(r[i].type.toLowerCase()?r[i].type.toLowerCase():"text"){case"text":case"password":case"textarea":r[i].value="";break;case"radio":case"checkbox":if(r[i].checked){var c=r[i],l=c.getAttribute("id"),u=document.querySelector('[for="'.concat(l,'"'));if(u.querySelector("iam-card")){var h=u.querySelector("iam-card"),m=new Event("click");h.dispatchEvent(m)}c.checked=!1}break;case"select-one":case"select-multi":r[i].selectedIndex=-1}e.classList.remove("processing"),e.hasAttribute("data-submit")||d(t,e,o),n(a)}})),e.addEventListener("submit",(t=>{clearTimeout(s),e.hasAttribute("data-submit")||t.preventDefault(),n(t)})),e.addEventListener("force",(t=>{n(t)})),e.addEventListener("paginate",(t=>{n(t,!0)}));var i=[],c=[];Array.from(e.querySelectorAll("[data-mimic]")).forEach(((t,e)=>{var a=t.getAttribute("data-mimic");Array.from(document.querySelectorAll('[name="'.concat(a,'"]'))).forEach(((t,e)=>{var r=t.closest("form");i.includes(r)||i.push(r),c.includes(a)||c.push(a)}))})),i.forEach(((t,a)=>{var r=function(){var a=[],r=new FormData(t);for(var[o,s]of r)document.querySelector('[data-mimic="'.concat(o,'"]'))&&!a.includes(o)?(a.push(o),document.querySelector('[data-mimic="'.concat(o,'"]')).value=s):document.querySelector('[data-mimic="'.concat(o,'"]'))&&(document.querySelector('[data-mimic="'.concat(o,'"]')).value+=","+s);for(var n of a){var i=new Event("force");e.dispatchEvent(i)}for(var l of c)if(!r.has(l)&&t.querySelector('[name="'.concat(l,'"]'))){document.querySelector('[data-mimic="'.concat(l,'"]')).value="";var d=new Event("force");e.dispatchEvent(d)}};t.addEventListener("force",(t=>{r()})),t.addEventListener("change",(t=>{r()}))}))})(this.table,this.form,this.pagination,this,this.savedTableBody),function(t,e,a,r){a.addEventListener("update-page",(a=>{var o=e.querySelector("[data-pagination]"),s=a.detail.page;if(o.value=s,e.dispatchEvent(new Event("paginate")),r.setAttribute("data-page",s),t.hasAttribute("data-show-history")){var n=new URL(location);n.searchParams.set("page",s),history.pushState({type:"pagination",form:e.getAttribute("id"),page:s},"",n)}if(!r.hasAttribute("data-no-scroll")){var i=t.getBoundingClientRect().top+window.pageYOffset+-250;window.scrollTo({top:i,behavior:"smooth"})}})),a.addEventListener("update-show",(t=>{var a=e.querySelector("[data-show]"),o=t.detail.show;a.value=o,r.setAttribute("data-show",o),e.dispatchEvent(new Event("submit"))}))}(this.table,this.form,this.pagination,this),((t,e)=>{if(!t)return!1;t.addEventListener("click",(t=>{!function(t){for(var e=[],a=t.getElementsByTagName("tr"),r=0;r<a.length;r++){for(var o=a[r].querySelectorAll("td,th"),s=[],n=0;n<o.length;n++)s.push('"'.concat(o[n].textContent,'"'));e.push(s.join(","))}e=e.join("\n");var i=new Blob([e],{type:"text/csv"}),c=document.createElement("a");c.download="export.csv";var l=window.URL.createObjectURL(i);c.href=l,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}(e)}))})(this.shadowRoot.querySelector("[data-export]"),this.table),this.form.getAttribute("data-ajax"))b(this.table,this.form,this.pagination,this);else{let t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Math.floor(Math.random()*Date.now()*(t+1))};if(this.querySelector("iam-actionbar[data-selectall]")){var a=this.querySelector("iam-actionbar[data-selectall]");Array.from(this.table.querySelectorAll("thead tr")).forEach(((t,e)=>{t.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')})),Array.from(this.table.querySelectorAll("tbody tr")).forEach(((e,a)=>{var r="row".concat(t(a));e.insertAdjacentHTML("afterbegin",'<td class="td--fixed selectrow"><input type="checkbox" name="row" id="'.concat(r,'"/><label for="').concat(r,'"><span class="visually-hidden">Select row</span></label></td>'))})),this.table.addEventListener("change",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest(".selectrow input")){var e=this.table.querySelectorAll('.selectrow input[type="checkbox"]').length,r=this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;a.setAttribute("data-selected",e==r?"all":r)}})),a.addEventListener("selected",(t=>{"0"==t.detail.selected?Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(((t,e)=>{t.checked=!1})):"all"==t.detail.selected&&Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(((t,e)=>{t.checked=!0}))}))}var r=-1;Array.from(this.table.querySelectorAll("tbody tr")).forEach(((t,e)=>{if(t.querySelector(":scope > td > .dialog__wrapper")){var a=t.querySelector(":scope > td > .dialog__wrapper").parentNode;a.classList.add("td--fixed"),r=Array.from(a.parentNode.children).indexOf(a)}})),-1!=r&&(this.table.querySelector("thead tr th:nth-child(".concat(r+1,")")).classList.add("th--fixed"),Array.from(this.table.querySelectorAll("tbody tr td:nth-child(".concat(r+1,")"))).forEach(((t,e)=>{t.classList.add("td--fixed")}))),m(this.table,this.form,this.pagination,this),u(this.table,this.form,this),h(this.table,this.form)}this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll",(t=>{this.table.querySelector("dialog[open]")&&(this.table.querySelector("dialog[open]").close(),this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"))}))}static get observedAttributes(){return["data-total","data-page","data-show"]}attributeChangedCallback(t,e,a){switch(this.pagination=this.shadowRoot.querySelector("iam-pagination"),t){case"data-total":e!=a&&this.pagination.setAttribute("data-total",a);break;case"data-show":e!=a&&this.pagination.setAttribute("data-show",a);break;case"data-page":e!=a&&this.pagination.setAttribute("data-page",a)}}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Card"});class v extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.querySelector('[class*="fa-"]')&&this.classList.add("card--has-icon");var t=this.classList.toString(),e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",a=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(e,"/css/core.min.css"),r='@import "'.concat(e,'/css/components/card.css";'),o=document.createElement("template");o.innerHTML='\n <style>\n @import "'.concat(a,'";\n ').concat(r,"\n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <div class="card ').concat(t,'" tabindex="0" role="button">\n ').concat(this.hasAttribute("data-image")?'<div class="card__head"><img src="'.concat(this.getAttribute("data-image"),'" alt="" loading="lazy" /></div>'):"",'\n <div class="card__body">\n ').concat(this.classList.contains("card--filter")&&this.hasAttribute("data-total")?'<div class="card__total">'.concat(this.getAttribute("data-total"),"</div>"):"","\n ").concat(this.hasAttribute("data-illustration")?'<div class="card__illustration"><img src="'.concat(this.getAttribute("data-illustration"),'" alt="" loading="lazy" /></div>'):"",'\n <slot></slot>\n </div>\n \n <slot name="checkbox"></slot>\n ').concat(this.hasAttribute("data-cta")?'<div class="card__footer"><span class="link">'.concat(this.getAttribute("data-cta"),"</span></div>"):"","\n </div>\n "),this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");var t=this.parentNode.closest("a, button, label"),e=this.shadowRoot.querySelector(".card");t.setAttribute("tabindex","-1"),t.matches("label[for]")&&(document.getElementById(t.getAttribute("for")).checked?e.classList.add("checked"):e.classList.remove("checked")),this.addEventListener("click",(t=>{var a=new Event("click");e.dispatchEvent(a)})),e.addEventListener("click",(a=>{if(t.matches("label[for]")){a.stopPropagation(),a.preventDefault();var r=document.getElementById(t.getAttribute("for")),o=r.getAttribute("name"),s=r.getAttribute("id");Array.from(document.querySelectorAll('[name="'.concat(o,'"][type="radio"]:not([id="').concat(s,'"])'))).forEach(((t,e)=>{document.querySelector('[for="'.concat(t.getAttribute("id"),'"] iam-card')).dispatchEvent(new Event("inactive"))})),t.click(),r.checked?e.classList.add("checked"):e.classList.remove("checked")}})),this.addEventListener("inactive",(t=>{e.classList.remove("checked")})),e.addEventListener("keydown",(a=>{switch(a.keyCode){case 32:case 13:if(t.matches("label[for]")){a.stopPropagation(),a.preventDefault();var r=document.getElementById(t.getAttribute("for")),o=r.getAttribute("name"),s=r.getAttribute("id");Array.from(document.querySelectorAll('[name="'.concat(o,'"]:not([id="').concat(s,'"])'))).forEach(((t,e)=>{document.querySelector('[for="'.concat(t.getAttribute("id"),'"] iam-card')).dispatchEvent(new Event("inactive"))})),t.click(),r.checked?e.classList.add("checked"):e.classList.remove("checked")}else t.click()}}))}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(t,e,a){switch(t){case"data-total":this.shadowRoot.querySelector(".card__total")&&(this.shadowRoot.querySelector(".card__total").innerHTML=a);break;case"class":var r=this.classList.toString();this.querySelector('[class*="fa-"]')&&(r+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class","card ".concat(r))}}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class g extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/applied-filters.css";'),r=this.classList.toString(),o=document.createElement("template");o.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <div class="applied-filters ').concat(r,'"></div>\n <slot></slot>\n '),this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){!function(t,e){function a(t,e){var a=!1,r=e.getAttribute("name");r.includes("[]")&&(r=r.replace("[]","[".concat(e.value,"]")));var o=t.querySelector('[data-name="'.concat(r,'"]'));o&&"checkbox"==e.getAttribute("type")&&(a=!0);var s=e.getAttribute("data-filter-text");if(o||(o=document.createElement("button"),t.appendChild(o)),o.setAttribute("type","button"),o.classList.add("filter"),o.setAttribute("data-name",r),o.innerHTML=s.replace("$value",e.value),(!e.value||a)&&o.remove(),e.parentNode.closest("[data-filter-text]")){var n=e.parentNode.closest("[data-filter-text]"),i=!0;if(r="",n.querySelectorAll("input").forEach(((e,a)=>{var o=e.getAttribute("name");if(r+="".concat(0!=a?",":"").concat(o),t.querySelector('[data-name="'.concat(o,'"]'))&&t.querySelector('[data-name="'.concat(o,'"]')).remove(),e.value){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("filter"),n.setAttribute("data-name",o),n.innerHTML=s.replace("$value",e.value),t.appendChild(n)}else i=!1})),t.querySelector('[data-name="'.concat(r,'"]'))&&t.querySelector('[data-name="'.concat(r,'"]')).remove(),i){var c=n.getAttribute("data-filter-text");n.querySelectorAll("input").forEach(((e,a)=>{var r=e.getAttribute("name");t.querySelector('[data-name="'.concat(r,'"]'))&&t.querySelector('[data-name="'.concat(r,'"]')).remove(),c=c.replace("$".concat(a+1),e.value)}));var l=document.createElement("button");l.setAttribute("type","button"),l.classList.add("filter"),l.setAttribute("data-name",r),l.innerHTML=c,t.appendChild(l)}}}Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach(((t,r)=>{a(e,t)})),Array.from(t.querySelectorAll("input[data-filter-text]")).forEach(((t,r)=>{t.addEventListener("change",(function(r){a(e,t)}))})),e.addEventListener("click",(function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest(".filter")){for(var a=e.target.closest(".filter"),r=a.getAttribute("data-name").split(","),o=0;o<r.length;o++){var s=r[o],n='[name="'.concat(s,'"]');if(s.match(/\[(.*)\]/)){s.replace(/\[(.*)\]/,"[]");var i=s.replace(/.*\[(.*)\]/,"$1");n='[value="'.concat(i,'"]')}for(var c=t.querySelectorAll(n),l=0;l<c.length;l++){var d=c[l];"radio"!=d.getAttribute("type")&&"checkbox"!=d.getAttribute("type")?d.value="":(d.checked=!1,e=new Event("force"),t.hasAttribute("data-nosubmit")||d.closest("form").dispatchEvent(e))}}a.remove()}}),!1)}(this,this.shadowRoot.querySelector(".applied-filters"))}}class A extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/pagination.css";'),r=document.createElement("template");r.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n \n ").concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n </style>\n <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">\n <div class="pagination d-none">\n \n <div class="minimal" part="minimal">\n <div class="page-jump">\n <div><select class="select--minimal"></select></div>\n <span class="total-pages"></span>\n </div>\n \n <button class="prev" disabled>Prev</button>\n <button class="next" disabled>Next</button>\n </div>\n\n <div class="item-count" part="item-count"></div>\n <div class="per-page" part="per-page">\n <div>\n <select class="select--minimal">\n <option value="15">15</option>\n <option value="25">25</option>\n <option value="40">40</option>\n <option value="50">50</option>\n </select>\n </div>\n <span> / page</span>\n </div>\n <div class="mobile-controls m-auto text-center">\n <i class="fa-solid fa-spinner fa-spin"></i>\n <button class="load-more btn btn-primary m-auto">Load more</a>\n </div>\n </div>\n '),this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){var t=new URLSearchParams(window.location.search);this.hasAttribute("data-total")||this.setAttribute("data-total",15),this.hasAttribute("data-page")||this.setAttribute("data-page",t.has("page")?t.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",t.has("show")?t.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",this.getAttribute("data-show"));var e=this.shadowRoot.querySelector(".page-jump select"),a=this.shadowRoot.querySelector(".prev"),r=this.shadowRoot.querySelector(".next"),o=this.shadowRoot.querySelector(".per-page select"),s=this.shadowRoot.querySelector(".load-more");this.setup(),e.addEventListener("change",(t=>{this.setAttribute("data-show",this.getAttribute("data-increment")),this.setAttribute("data-page",t.target.value)})),r.addEventListener("click",(t=>{e.value=parseInt(e.value)+1,e.dispatchEvent(new Event("change"))})),a.addEventListener("click",(t=>{e.value=parseInt(e.value)-1,e.dispatchEvent(new Event("change"))})),o.addEventListener("change",(t=>{this.setAttribute("data-increment",t.target.value)})),s.addEventListener("click",(t=>{var e=parseInt(this.getAttribute("data-show"))+parseInt(this.getAttribute("data-increment"));this.setAttribute("data-show",e),e>parseInt(this.getAttribute("data-total"))&&s.remove()}))}setup(){var t=this.shadowRoot.querySelector(".pagination"),e=this.shadowRoot.querySelector(".page-jump select"),a=this.shadowRoot.querySelector(".prev"),r=this.shadowRoot.querySelector(".next"),o=this.shadowRoot.querySelector(".item-count"),s=this.shadowRoot.querySelector(".per-page select"),n=this.shadowRoot.querySelector(".total-pages"),i=parseInt(this.getAttribute("data-page")),c=parseInt(this.getAttribute("data-total")),l=parseInt(this.getAttribute("data-show")),d=parseInt(this.getAttribute("data-increment")),u=Math.ceil(c/d);c>l&&t.classList.remove("d-none");for(var h="",m=1;m<=u;m++)h+='<option value="'.concat(m,'" ').concat(m==i?"selected":"",">").concat(m,"</option>");e.innerHTML=h,n.innerHTML="of ".concat(u),i==u?r.setAttribute("disabled","disabled"):r.removeAttribute("disabled"),1==i?a.setAttribute("disabled","disabled"):a.removeAttribute("disabled");var p=1==i?1:(i-1)*l+1,b=1==i?l:i*l;o.innerHTML="".concat(p," - ").concat(b>c?c:b," of ").concat(c," items"),d&&s.value!=d&&![15,25,40,50].includes(d)&&(s.innerHTML='<option value="'.concat(d,'">').concat(d,'</option>\n <option value="').concat(2*d,'">').concat(2*d,'</option>\n <option value="').concat(3*d,'">').concat(3*d,'</option>\n <option value="').concat(4*d,'">').concat(4*d,"</option>")),s.value=d}static get observedAttributes(){return["data-total","data-increment","data-page","data-show"]}attributeChangedCallback(t,e,a){switch(t){case"data-total":e!=a&&(this.setAttribute("data-page",1),this.setup());break;case"data-show":e!=a&&(this.setAttribute("data-page",1),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:a}})));break;case"data-increment":e!=a&&(this.setAttribute("data-show",a),this.setAttribute("data-page",1),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:a}})));break;case"data-page":e!=a&&(this.setup(),this.dispatchEvent(new CustomEvent("update-page",{detail:{page:a}})))}}}var w=function(t,e){Array.from(t.querySelectorAll(":scope > li")).forEach(((t,a)=>{var r=t.textContent.toLowerCase();t.classList.add("d-none"),r.includes(e.toLowerCase())&&t.classList.remove("d-none")})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Filtered list",value:e})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"filterlist"});class L extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a=document.createElement("template");a.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(this.hasAttribute("css")?'@import "'.concat(this.getAttribute("css"),'";'):"",'\n \n :host {\n margin-bottom: 1rem;\n display:block;\n }\n :host(.mh-sm){\n max-height: none!important;\n }\n :host(.mh-md){\n max-height: none!important;\n }\n :host(.mh-lg){\n max-height: none!important;\n }\n </style>\n <div class="form-control__wrapper">\n <label for="search" class="visually-hidden">Search</label>\n <span class="suffix" role="presentation"><slot name="icon"></slot></span>\n <input name="search" id="search" type="text" class="form-control" autocomplete="off" placeholder="Search" />\n </div>\n <div class="list__wrapper">\n <slot></slot>\n </div>\n '),this.shadowRoot.appendChild(a.content.cloneNode(!0))}connectedCallback(){var t=this.classList.toString();this.shadowRoot.querySelector(".list__wrapper").setAttribute("class","list__wrapper ".concat(t)),this.querySelector("i.fa-search")||(this.innerHTML+='<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'),function(t,e){!function(t,e){var a;e.addEventListener("keyup",(r=>{clearTimeout(a),a=setTimeout((function(){w(t,e.value)}),500)})),e.addEventListener("change",(r=>{clearTimeout(a),w(t,e.value)}))}(t,e)}(this.querySelector("ul"),this.shadowRoot.querySelector("#search"))}}function E(t,e){var a,r,o=e;this.pause=function(){window.clearTimeout(a),o-=new Date-r},this.resume=function(){r=new Date,window.clearTimeout(a),a=window.setTimeout(t,o)},this.resume()}var S=function(t){t.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class q extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/notification.css";'),r=this.querySelectorAll("a,button");Array.from(r).forEach(((t,e)=>{t.setAttribute("slot","btns"),t.classList.add("link")})),(r.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");var o=document.createElement("template");o.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\n ").concat(this.hasAttribute("data-css")?"".concat(this.getAttribute("data-css")):"",'\n </style>\n\n <div class="notification">\n <div class="notification__icon"><slot name="icon"></slot></div>\n <div class="notification__inner"><div class="notification__text"><slot></slot></div>').concat(r.length?'<div class="notification__btns"><slot name="btns"></slot></div>':"","</div>\n ").concat(this.hasAttribute("data-dismiss")?'<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>':"","\n </div>\n "),this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){var t=this.shadowRoot.querySelector("[data-dismiss-button]"),e=this.hasAttribute("data-status")?this.getAttribute("data-status"):"white";this.hasAttribute("data-type")?this.classList.add("bg-".concat(e)):this.classList.add("colour-".concat(e));var a=this;if(!this.querySelector("i"))switch(e){case"danger":this.innerHTML+='<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"warning":this.innerHTML+='<i class="fa-solid fa-triangle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"success":this.innerHTML+='<i class="fa-solid fa-check-circle" aria-hidden="true" slot="icon"></i>';break;default:this.innerHTML+='<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>'}(function(t){if(t.hasAttribute("data-type")&&"toast"==t.getAttribute("data-type")){var e=document.querySelector(".notification__holder");e||((e=document.createElement("div")).classList.add("notification__holder"),e.classList.add("container"),document.querySelector("body").appendChild(e)),t.closest(".notification__holder")||e.appendChild(t)}if(t.setAttribute("role","alert"),t.addEventListener("click",(function(e){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(e.preventDefault(),S(t))}),!1),t.hasAttribute("data-timeout")){var a=new E((function(){S(t)}),t.getAttribute("data-timeout"));t.addEventListener("mouseenter",(t=>{a.pause()})),t.addEventListener("mouseleave",(t=>{a.resume()}))}})(a),t&&t.addEventListener("click",(function(t){S(a)}),!1)}}document.addEventListener("DOMContentLoaded",(function(){var e,r;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",(t=>{var e=t.target.closest("[open] summary");if(e)window.dataLayer.push({event:"closeDetails",detailsTitle:e.textContent||""});else{var a=t.target.closest("summary"),r=t.target.closest("a"),o=t.target.closest("button");a&&window.dataLayer.push({event:"openDetails",detailsTitle:a.textContent||""}),r&&window.dataLayer.push({event:"linkClicked",linkText:r.hasAttribute("title")?r.getAttribute("title")||"":r.textContent||"",class:r.hasAttribute("class")&&r.getAttribute("class")||"",href:r.getAttribute("href")||""}),o&&window.dataLayer.push({event:"buttonClicked",buttonText:o.textContent||"",class:o.hasAttribute("class")&&o.getAttribute("class")||""})}})),(r=document.body).classList.add("js-enabled"),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)&&r.classList.add("ie"),e=function(t){var e=document.querySelector('label[for="'.concat(t.replace("#",""),'"]')),a=document.querySelector(t+" summary"),r=document.querySelector("dialog".concat(t));e instanceof HTMLElement?e.click():a instanceof HTMLElement?a.click():r instanceof HTMLElement&&r.showModal()},location.hash&&e(location.hash),window.addEventListener("hashchange",(function(){e(location.hash)}),!1),addEventListener("popstate",(t=>{if(t&&t.state.type&&"pagination"==t.state.type){var e=document.querySelector("#".concat(t.state.form)),a=document.querySelector("#".concat(t.state.form," [data-pagination]"));a?a.value=t.state.page:e.innerHTML+='<input name="page" type="hidden" data-pagination="true" value="'.concat(t.state.page,'" />'),e.dispatchEvent(new Event("submit"))}})),document.addEventListener("submit",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.matches("form")){var e=t.target;e.querySelector(":invalid")&&(e.classList.add("was-validated"),t.preventDefault())}})),(t=>{Array.from(t.querySelectorAll("dialog[open]")).forEach(((t,e)=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),a(t))})),t.addEventListener("click",(t=>{if("IAM-ACTIONBAR"==t.target.tagName)return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){var e=t.target.closest("[data-modal]"),r=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),o=document.querySelector("dialog#".concat(r));a(o),o.showModal(),o.focus();var s=o.offsetWidth;o.setAttribute("style","max-width: ".concat(s,"px;")),Array.from(o.querySelectorAll("[data-duplicate]")).forEach(((t,e)=>{var a=t.getAttribute("data-duplicate"),r=document.getElementById(a);if(t.checked!=r.checked){t.checked=r.checked;var o=new Event("change");t.dispatchEvent(o)}})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:r})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var n=t.target.closest("dialog[open]");t.preventDefault(),n.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((t,e)=>{t.classList.remove("active")})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:n.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){var i=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((t,e)=>{t.classList.remove("active")})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){var c=t.target.closest("dialog[open]");if("contents"===window.getComputedStyle(c).display&&(c=c.parentNode.closest("dialog[open]")),!c.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||c.classList.contains("dialog--multi")){var l=c.getBoundingClientRect();(t.clientX<l.left||t.clientX>l.right||t.clientY<l.top||t.clientY>l.bottom)&&(t.target.closest('input[type="radio"]')||c.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:c.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();var d=t.target.closest(".dialog__wrapper > button"),u="openPopover",h=t.target.closest(".dialog__wrapper > button").parentNode.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=h&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((t,e)=>{t.classList.remove("active")})),h.hasAttribute("open"))h.close(),u="closePopover",h.removeAttribute("style"),d.classList.remove("active");else{h.show(),d.classList.add("active");var m=d.getBoundingClientRect(),p=m.top,b=m.left;if(d.closest("iam-table")){var f=d.closest("iam-table").parentNode.getBoundingClientRect();p-=f.top,b-=f.left}h.classList.contains("dialog--fix")&&h.setAttribute("style","position:fixed;top: ".concat(p,"px; left: ").concat(b,"px; margin: 3rem 0 0 0;"))}var y=h.getBoundingClientRect();if(y.bottom-window.scrollY>window.innerHeight-window.scrollY){var v=h.hasAttribute("style")?h.getAttribute("style")+" ":"";h.setAttribute("style",v+"transform: translate(0, calc(-100% - 4rem))"),(y=h.getBoundingClientRect()).top-window.scrollY<100&&h.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:u,id:d.textContent})}t&&t.target instanceof HTMLElement&&!t.target.closest("dialog[open]")&&!t.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach(((t,e)=>{t.classList.remove("active")})))}))})(document.body),(t=>{document.addEventListener("load",(function(){console.log(Array.from(document.querySelectorAll("input[maxlength]"))),Array.from(document.querySelectorAll("input")).forEach(((t,e)=>{t.parentElement,(t=>{var e=t.parentElement,a=t.getAttribute("maxlength");e.style.setProperty("--maxlength",a);var r=t.nextElementSibling;(!r||r&&r.classList.contains("invalid-feedback"))&&(r=document.createElement("span"),e.insertBefore(r,t.nextSibling)),r.setAttribute("data-count",t.value.length)})(t)}))})),t.addEventListener("input",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("input,textarea,select")){var e=t.target.closest("input,textarea,select");e.parentElement,e.hasAttribute("type")&&"color"==e.getAttribute("type")&&(e.nextElementSibling.value=e.value),e.hasAttribute("maxlength")&&e.nextElementSibling&&e.nextElementSibling.setAttribute("data-count",e.value.length)}})),t.addEventListener("change",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("select")){var e=t.target.closest("select");if(console.log(e),e.hasAttribute("data-change-type")&&e.hasAttribute("data-input")){var a=document.getElementById(e.getAttribute("data-input")),r=e.value;o(a,r)}}if(t&&t.target instanceof HTMLElement&&t.target.closest('dialog [type="radio"]')){var s=t.target.closest("dialog");t.target.closest('dialog [type="radio"]'),Array.from(s.querySelectorAll('[type="radio"][autofocus]')).forEach(((t,e)=>{t.removeAttribute("autofocus")})),Array.from(s.querySelectorAll('[type="radio"]:checked')).forEach(((t,e)=>{t.setAttribute("autofocus",!0)}))}})),t.addEventListener("click",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-change-type][data-input]:not(select)")){var e=t.target.closest("[data-change-type]"),a=document.getElementById(e.getAttribute("data-input")),r=e.getAttribute("data-change-type");if(e.setAttribute("data-change-type",a.getAttribute("type")),o(a,r),e.hasAttribute("data-alt-class")){var s=e.getAttribute("data-alt-class");e.setAttribute("data-alt-class",e.getAttribute("class")),e.setAttribute("class",s)}}}))})(document.body),window.customElements.get("iam-header")||window.customElements.define("iam-header",s),window.customElements.get("iam-accordion")||window.customElements.define("iam-accordion",n),window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",i),window.customElements.get("iam-table")||window.customElements.define("iam-table",y),window.customElements.get("iam-card")||window.customElements.define("iam-card",v),window.customElements.get("iam-filterlist")||window.customElements.define("iam-filterlist",L),window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",A),window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",g),window.customElements.get("iam-notification")||window.customElements.define("iam-notification",q),Array.from(document.querySelectorAll(".nav")).forEach((t=>{(t=>{Array.from(t.querySelectorAll("details")).forEach(((t,e)=>{t.addEventListener("mouseenter",(function(e){window.matchMedia("(min-width: 62em)").matches&&t.setAttribute("open","true")}),!1),t.addEventListener("mouseleave",(function(e){window.matchMedia("(min-width: 62em)").matches&&t.removeAttribute("open")}),!1)})),"IntersectionObserver"in window&&new IntersectionObserver((t=>{var[e]=t;return e.target.classList.toggle("is-stuck",e.intersectionRatio<1)}),{threshold:[1]}).observe(t)})(t)})),Array.from(document.querySelectorAll(".testimonial")).forEach((t=>{!function(t){var e,a=t.querySelector(".testimonial__images"),r=a.querySelectorAll("img").length;if(1==r)return!1;t.classList.add("testimonial--multi"),a.addEventListener("scroll",(function(o){clearTimeout(e),e=setTimeout((function(){var e=a.scrollWidth,o=a.scrollHeight,s=a.scrollLeft,n=a.scrollTop,i=Math.round(s/e*r)+1;0==s&&0!=n&&(i=Math.round(n/o*r)+1),t.setAttribute("data-show",i),function(e){var a=t.querySelector(".btn-next"),o=t.querySelector(".btn-prev");a.setAttribute("data-go",e+1),o.setAttribute("data-go",e-1),a.removeAttribute("disabled"),o.removeAttribute("disabled"),1==e?o.setAttribute("disabled",!0):e==r&&a.setAttribute("disabled",!0)}(i)}),300)}),!1),t.addEventListener("click",(function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches("[data-go]")){var o=parseInt(e.getAttribute("data-go")),s=0,n=0,i=a.scrollWidth,c=a.scrollHeight;i>c?n=Math.floor(i*((o-1)/r)):s=Math.floor(c*((o-1)/r)),a.scroll({top:s,left:n,behavior:"smooth"});break}}),!1)}(t)})),Array.from(document.querySelectorAll(".carousel")).forEach((t=>{!function(t){var e,a=t.querySelector(".carousel__inner"),r=t.querySelectorAll(".carousel__item").length;t.getAttribute("data-cols");var o=t.getAttribute("data-sm-cols"),s=t.getAttribute("data-md-cols");t.querySelector(".carousel__controls a").classList.add("active"),a.addEventListener("scroll",(function(o){clearTimeout(e),e=setTimeout((function(){var e=a.clientWidth,o=a.scrollWidth,s=a.scrollLeft,n=Math.round(s/o*r)+1,i=t.querySelector(".carousel__item:last-child").offsetLeft;Array.from(t.querySelectorAll(".carousel__controls a")).forEach(((t,e)=>{t.classList.remove("active")})),t.querySelector(".control-"+n).classList.add("active"),1==n?t.querySelector(".btn-prev").setAttribute("disabled","disabled"):t.querySelector(".btn-prev").removeAttribute("disabled"),a.scrollLeft+e>i?t.querySelector(".btn-next").setAttribute("disabled","disabled"):t.querySelector(".btn-next").removeAttribute("disabled")}),100)}),!1),t.addEventListener("click",(function(e){for(var r=e.target;r&&r!=this;r=r.parentNode)if(r.matches(".carousel__controls a")){e.preventDefault(),Array.from(t.querySelectorAll(".carousel__controls a")).forEach(((t,e)=>{t.classList.remove("active")})),r.classList.add("active");var o=document.querySelector(r.getAttribute("href"));a.scroll({top:0,left:o.offsetLeft,behavior:"smooth"});break}}),!1),t.addEventListener("click",(function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches(".btn-next, .btn-prev")){t.preventDefault();var r=e.classList.contains("btn-prev")?a.scrollLeft-a.clientWidth:a.scrollLeft+a.clientWidth;a.scroll({top:0,left:r,behavior:"smooth"});break}}),!1),1==r&&t.classList.add("hide-btns"),o>=r&&t.classList.add("hide-sm-btns"),s>=r&&t.classList.add("hide-md-btns")}(t)})),Array.from(document.querySelectorAll("form")).forEach((t=>{!function(t){Array.from(t.querySelectorAll("[data-input-range]")).forEach(((t,e)=>{!function(t){t.addEventListener("change",(function(e){var a=parseInt(t.querySelector("[data-min] select,[data-min] input").value),r=parseInt(t.querySelector("[data-max] select,[data-max] input").value);Array.from(t.querySelectorAll("[data-min] input")).forEach(((t,e)=>{t.setAttribute("max",r)})),Array.from(t.querySelectorAll("[data-max] input")).forEach(((t,e)=>{t.setAttribute("min",a)})),Array.from(t.querySelectorAll("[data-min] select option")).forEach(((t,e)=>{parseInt(t.getAttribute("value"))>r?t.classList.add("d-none"):t.classList.remove("d-none")})),Array.from(t.querySelectorAll("[data-max] select option")).forEach(((t,e)=>{parseInt(t.getAttribute("value"))<a?t.classList.add("d-none"):t.classList.remove("d-none")}))}),!1)}(t)})),Array.from(t.querySelectorAll("[data-redirect]")).forEach(((t,e)=>{!function(t){t.addEventListener("change",(function(e){if(t.matches("[data-value-if]")){var a=t.getAttribute("data-redirect"),r=t.getAttribute("data-value-if");t.value==r&&(document.location.href=a)}else typeof t.value<"u"&&(document.location.href=t.value)}),!1)}(t)})),Array.from(t.querySelectorAll(".multiple-file-uploads")).forEach(((t,e)=>{!function(t){var e=t.querySelector(".row").cloneNode(!0),a=t.querySelector("[data-add]");t.addEventListener("click",(function(r){for(var o=r.target;o&&o!=this;o=o.parentNode){if(o.matches("[data-add]")){var s=e.cloneNode(!0);t.insertBefore(s,o),a.matches("[data-maxfiles]")&&Array.from(t.querySelectorAll(":scope > .row")).length>=a.dataset.maxfiles&&a.setAttribute("disabled","disabled");break}if(o.matches("[data-delete]")){o.closest(".row").remove(),a.matches("[data-maxfiles]")&&Array.from(t.querySelectorAll(":scope > .row")).length<a.dataset.maxfiles&&a.removeAttribute("disabled");break}}}),!1)}(t)})),t.addEventListener("change",(function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches('[type="file"][data-filesize]')&&e.files&&e.files[0]){var a=e.dataset.filesize;e.files[0].size>a&&(e.value="",alert("File too large"));break}}),!1),t.addEventListener("change",(function(e){Array.from(t.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach(((e,a)=>{var r=e.closest("[data-group]")?e.closest("[data-group]"):t,o=e.dataset.activeif,s=e.dataset.equals;r.querySelector('select[data-id="'.concat(o,'"],input[data-id="').concat(o,'"]')).value==s?e.removeAttribute("disabled"):(e.setAttribute("disabled","disabled"),e.value="")})),Array.from(t.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach(((e,a)=>{var r=e.closest("[data-group]")?e.closest("[data-group]"):t,o=e.dataset.activeif,s=e.dataset.equals;r.querySelector('select[data-id="'.concat(o,'"],input[data-id="').concat(o,'"]')).value==s?e.classList.remove("d-none"):e.classList.add("d-none")}))}),!1)}(t)})),Array.from(document.querySelectorAll(".youtube-embed")).forEach((e=>{new t(e)})),window.addEventListener("hashchange",(function(){var t=location.hash.replace("#",""),e=document.querySelector('label[for="'.concat(t,'"]'));e instanceof HTMLElement&&e.click()}),!1)}))}));
|
|
@@ -57,7 +57,7 @@ class iamAddressLookup extends HTMLElement {
|
|
|
57
57
|
async connectedCallback() {
|
|
58
58
|
|
|
59
59
|
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
60
|
-
const lookup = this.shadowRoot.querySelector('
|
|
60
|
+
const lookup = this.shadowRoot.querySelector('[name="postcode"]');
|
|
61
61
|
const lookupWrapper = this.shadowRoot.querySelector('.postcode-lookup');
|
|
62
62
|
const manualWrapper = this.shadowRoot.querySelector('.manual-address');
|
|
63
63
|
const list = this.shadowRoot.querySelector('datalist');
|
package/dist/components.es.js
CHANGED
|
@@ -48,7 +48,7 @@ function At(e, a, t, i, s, r) {
|
|
|
48
48
|
}
|
|
49
49
|
const Xo = /* @__PURE__ */ A(yt, [["render", At]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v4.1.
|
|
51
|
+
* iamKey v4.1.1-beta-2
|
|
52
52
|
* Copyright 2022-2023 iamproperty
|
|
53
53
|
*/
|
|
54
54
|
const _t = function(e) {
|
|
@@ -557,7 +557,7 @@ class Ct extends HTMLElement {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
/*!
|
|
560
|
-
* iamKey v4.1.
|
|
560
|
+
* iamKey v4.1.1-beta-2
|
|
561
561
|
* Copyright 2022-2023 iamproperty
|
|
562
562
|
*/
|
|
563
563
|
let nt = class extends HTMLElement {
|
|
@@ -1143,7 +1143,7 @@ function be(e, a, t, i, s, r) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
const Qo = /* @__PURE__ */ A(pe, [["render", be]]);
|
|
1145
1145
|
/*!
|
|
1146
|
-
* iamKey v4.1.
|
|
1146
|
+
* iamKey v4.1.1-beta-2
|
|
1147
1147
|
* Copyright 2022-2023 iamproperty
|
|
1148
1148
|
*/
|
|
1149
1149
|
function fe(e) {
|
|
@@ -1294,7 +1294,7 @@ const ai = /* @__PURE__ */ A(ke, [["render", He]]), Ce = {
|
|
|
1294
1294
|
name: "Card",
|
|
1295
1295
|
mounted() {
|
|
1296
1296
|
this.$nextTick(function() {
|
|
1297
|
-
import("./card.component.min-
|
|
1297
|
+
import("./card.component.min-d771a59b.mjs").then((e) => {
|
|
1298
1298
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
|
|
1299
1299
|
}).catch((e) => {
|
|
1300
1300
|
console.log(e.message);
|
|
@@ -1495,7 +1495,7 @@ function We(e, a, t, i, s, r) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
const oi = /* @__PURE__ */ A(De, [["render", We]]);
|
|
1497
1497
|
/*!
|
|
1498
|
-
* iamKey v4.1.
|
|
1498
|
+
* iamKey v4.1.1-beta-2
|
|
1499
1499
|
* Copyright 2022-2023 iamproperty
|
|
1500
1500
|
*/
|
|
1501
1501
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
|
|
@@ -1941,7 +1941,7 @@ const si = /* @__PURE__ */ A(va, [["render", Ha]]), Ca = {
|
|
|
1941
1941
|
name: "Nav",
|
|
1942
1942
|
mounted() {
|
|
1943
1943
|
this.$nextTick(function() {
|
|
1944
|
-
import("./nav.component.min-
|
|
1944
|
+
import("./nav.component.min-70070f01.mjs").then((e) => {
|
|
1945
1945
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
1946
1946
|
}).catch((e) => {
|
|
1947
1947
|
console.log(e.message);
|
|
@@ -2058,7 +2058,7 @@ function Za(e, a, t, i, s, r) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
const ui = /* @__PURE__ */ A(Xa, [["render", Za]]);
|
|
2060
2060
|
/*!
|
|
2061
|
-
* iamKey v4.1.
|
|
2061
|
+
* iamKey v4.1.1-beta-2
|
|
2062
2062
|
* Copyright 2022-2023 iamproperty
|
|
2063
2063
|
*/
|
|
2064
2064
|
const to = function(e) {
|
|
@@ -2259,7 +2259,7 @@ function vo(e, a, t, i, s, r) {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
const bi = /* @__PURE__ */ A(ho, [["render", vo]]);
|
|
2261
2261
|
/*!
|
|
2262
|
-
* iamKey v4.1.
|
|
2262
|
+
* iamKey v4.1.1-beta-2
|
|
2263
2263
|
* Copyright 2022-2023 iamproperty
|
|
2264
2264
|
*/
|
|
2265
2265
|
function wo(e, a) {
|
|
@@ -2350,7 +2350,7 @@ function xo(e, a, t, i, s, r) {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
const gi = /* @__PURE__ */ A(_o, [["render", xo]]);
|
|
2352
2352
|
/*!
|
|
2353
|
-
* iamKey v4.1.
|
|
2353
|
+
* iamKey v4.1.1-beta-2
|
|
2354
2354
|
* Copyright 2022-2023 iamproperty
|
|
2355
2355
|
*/
|
|
2356
2356
|
function Lo(e, a) {
|
|
@@ -2517,7 +2517,7 @@ function Co(e, a, t, i, s, r) {
|
|
|
2517
2517
|
}
|
|
2518
2518
|
const vi = /* @__PURE__ */ A(Ho, [["render", Co]]);
|
|
2519
2519
|
/*!
|
|
2520
|
-
* iamKey v4.1.
|
|
2520
|
+
* iamKey v4.1.1-beta-2
|
|
2521
2521
|
* Copyright 2022-2023 iamproperty
|
|
2522
2522
|
*/
|
|
2523
2523
|
const Ro = function(e) {
|
|
@@ -2901,8 +2901,8 @@ const Ai = /* @__PURE__ */ A(Fo, [["render", Io]]), Bo = (e, a) => {
|
|
|
2901
2901
|
}, Oo = {
|
|
2902
2902
|
name: "Address Lookup",
|
|
2903
2903
|
mounted() {
|
|
2904
|
-
|
|
2905
|
-
Bo(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-
|
|
2904
|
+
this.$nextTick(function() {
|
|
2905
|
+
Bo(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-91ec1e33.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-f9466f04.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((e) => {
|
|
2906
2906
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", e.default);
|
|
2907
2907
|
}).catch((e) => {
|
|
2908
2908
|
console.log(e.message);
|
|
@@ -2917,7 +2917,7 @@ function Vo(e, a, t, i, s, r) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
const _i = /* @__PURE__ */ A(Oo, [["render", Vo]]);
|
|
2919
2919
|
/*!
|
|
2920
|
-
* iamKey v4.1.
|
|
2920
|
+
* iamKey v4.1.1-beta-2
|
|
2921
2921
|
* Copyright 2022-2023 iamproperty
|
|
2922
2922
|
*/
|
|
2923
2923
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|