@iamproperty/components 5.6.1-beta2 → 5.6.1-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  2. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  3. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  4. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  5. package/assets/js/components/card/card.component.min.js +1 -1
  6. package/assets/js/components/carousel/carousel.component.min.js +1 -1
  7. package/assets/js/components/collapsible-side/collapsible-side.component.js +4 -4
  8. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +5 -5
  9. package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
  10. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  11. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  12. package/assets/js/components/header/header.component.min.js +1 -1
  13. package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
  14. package/assets/js/components/marketing/marketing.component.min.js +1 -1
  15. package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
  16. package/assets/js/components/nav/nav.component.min.js +1 -1
  17. package/assets/js/components/notification/notification.component.min.js +1 -1
  18. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  19. package/assets/js/components/search/search.component.min.js +1 -1
  20. package/assets/js/components/slider/slider.component.min.js +1 -1
  21. package/assets/js/components/table/table.component.min.js +1 -1
  22. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  23. package/assets/js/dynamic.min.js +1 -1
  24. package/assets/js/scripts.bundle.js +1 -1
  25. package/assets/js/scripts.bundle.min.js +1 -1
  26. package/assets/ts/components/collapsible-side/collapsible-side.component.ts +4 -4
  27. package/dist/components.es.js +13 -13
  28. package/dist/components.umd.js +13 -13
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class s extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${o}/css/core.min.css`,e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */const _=function(i){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var a=i.getAttribute("data-id"),c=i.getAttribute("id");if(typeof c>"u"||c==null){var l=String.fromCharCode(65+Math.floor(Math.random()*26));c=l+Date.now(),i.setAttribute("id",c)}function o(){window.player=new YT.Player(c,{height:"100%",width:"100%",videoId:a,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:p,onStateChange:e}})}o();function p(r){r.target.playVideo()}var t=!1;function e(r){if(r.data==YT.PlayerState.PLAYING&&!t){var s=document.getElementById(c);s.classList.add("player-ready"),t=!0}}},k=i=>(Array.from(i.querySelectorAll("dialog[open]")).forEach((a,c)=>{a.closest(".dialog__wrapper")||(a.removeAttribute("open"),a.showModal(),a.focus(),v(a))}),i.addEventListener("click",a=>{if(a.target.tagName=="IAM-ACTIONBAR")return!1;if(a&&a.target instanceof HTMLElement&&a.target.closest("[data-modal]")){const o=a.target.closest("[data-modal]"),p=o.hasAttribute("data-modal")?o.getAttribute("data-modal"):o.getAttribute("data-filter"),t=document.querySelector(`dialog#${p}`);v(t),t.showModal(),t.focus();let e=t.offsetWidth;t.setAttribute("style",`max-width: ${e}px;`),Array.from(t.querySelectorAll("[data-duplicate]")).forEach((r,s)=>{const b=r.getAttribute("data-duplicate"),m=document.getElementById(b);if(r.checked!=m.checked){r.checked=m.checked;let u=new Event("change");r.dispatchEvent(u)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:p})}if(a&&a.target instanceof HTMLElement&&a.target.closest("button.dialog__close")){const o=a.target.closest("dialog[open]");a.preventDefault(),o.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((p,t)=>{p.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest('button[formmethod="dialog"]')){const o=a.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((p,t)=>{p.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest("dialog[open]")){let o=a.target.closest("dialog[open]");var c=window.getComputedStyle(o);if(c.display==="contents"&&(o=o.parentNode.closest("dialog[open]")),!o.classList.contains("dialog--transactional")&&!o.classList.contains("dialog--acknowledgement")){const p=o.getBoundingClientRect();(a.clientX<p.left||a.clientX>p.right||a.clientY<p.top||a.clientY>p.bottom)&&(a.target.closest('input[type="radio"]')||o.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")}))}}if(a&&a.target instanceof HTMLElement&&a.target.closest(".dialog__wrapper > button")){a.stopPropagation();let o=a.target.closest(".dialog__wrapper > button"),p=o.parentNode,t="openPopover",e=p.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=e&&o.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((m,u)=>{m.removeAttribute("aria-expanded")}),e.hasAttribute("open"))e.close(),t="closePopover",e.removeAttribute("style"),o.removeAttribute("aria-expanded");else{e.show(),o.setAttribute("aria-expanded",!0);var l=o.getBoundingClientRect();let m=l.top,u=l.left;if(o.closest("iam-table")){let n=o.closest("iam-table").parentNode.getBoundingClientRect();m-=n.top,u-=n.left}e.classList.contains("dialog--fix")&&e.setAttribute("style",`position:fixed;top: ${m}px; left: ${u}px; margin: 3rem 0 0 0;`)}let r=e.getBoundingClientRect(),s=r.bottom-window.scrollY,b=window.innerHeight-window.scrollY;if(s>b){let m=e.hasAttribute("style")?e.getAttribute("style")+" ":"";e.setAttribute("style",m+"transform: translate(0, calc(-100% - 4rem))"),r=e.getBoundingClientRect(),r.top-window.scrollY<100&&e.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:t,id:o.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((o,p)=>{o.removeAttribute("aria-expanded")}))}),null),v=i=>{let a=i.querySelector(".youtube-embed a");if(a&&_(a),i.classList.contains("dialog--multi")&&!i.querySelector(":scope > .steps")&&L(i),!i.querySelector(":scope .mh-lg")&&!i.classList.contains("dialog--multi")){i.innerHTML=`<div class="mh-lg">${i.innerHTML}</div>`;let c=i.querySelector(".mh-lg"),l=i.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(l){let o=l.previousSibling;c.before(l),o&&l.before(o)}}i.querySelector(":scope > button:first-child")||i.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},L=i=>{let a="",c=Array.from(i.querySelectorAll("fieldset[data-title]")),l=i.querySelector("form");c.forEach((t,e)=>{a+=`<button data-title="${t.getAttribute("data-title")}" type="button" class="${e==0?"active":""}" tabindex="-1">${t.getAttribute("data-title")}</button>`;const r=document.createElement("div");if(r.classList.add("btn--wrapper"),t.appendChild(r),e!=0&&(r.innerHTML+=`<button data-title="${c[e-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),e!=c.length-1&&(r.innerHTML+=`<button data-title="${c[e+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),e==c.length-1)if(l&&l.querySelector(':scope > button[type="submit"]')){let s=l.querySelector(':scope > button[type="submit"]');s.classList.add("mb-0"),r.insertAdjacentElement("beforeend",s)}else r.innerHTML+=`<button data-title="${c[e].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`}),i.insertAdjacentHTML("afterbegin",`<div class="steps bg-primary">${a}</div>`);let o=Array.from(i.querySelectorAll("fieldset.was-validated"));for(let t=0;t<o.length;t++){let e=o[t],r=e.getAttribute("data-title");if(e.querySelector(".is-invalid")){Array.from(i.querySelectorAll(`[data-title="${r}"]`)).forEach((s,b)=>{s.classList.add("active")});break}else Array.from(i.querySelectorAll(`[data-title="${r}"]`)).forEach((s,b)=>{s.classList.add("valid")})}i.addEventListener("invalid",function(){return function(t){t.preventDefault()}}(),!0);function p(t){const e=i.querySelector("fieldset.active")?i.querySelector("fieldset.active"):i.querySelector("fieldset[data-title]"),r=e.getAttribute("data-title");let s=!0;if(e.classList.add("was-validated"),Array.from(e.querySelectorAll("input")).forEach((u,n)=>{u.checkValidity()||(s=!1)}),s?Array.from(i.querySelectorAll(`[data-title="${r}"]`)).forEach((u,n)=>{u.classList.add("valid")}):Array.from(i.querySelectorAll(`[data-title="${r}"]`)).forEach((u,n)=>{u.classList.remove("valid")}),s||!t.hasAttribute("data-next")){const u=i.querySelector(`fieldset[data-title="${t.getAttribute("data-title")}"]`),n=i.querySelector(`.steps button[data-title="${t.getAttribute("data-title")}"]`);Array.from(i.querySelectorAll("button")).forEach((g,y)=>{g.classList.remove("active")}),Array.from(i.querySelectorAll("fieldset")).forEach((g,y)=>{g.classList.remove("active")}),n.classList.add("active"),u.classList.add("active")}let b=Array.from(i.querySelectorAll("fieldset")).length,m=Array.from(i.querySelectorAll("fieldset.valid")).length;i.style.setProperty("--progress",`${m/(b-1)*100}%`)}i.addEventListener("keydown",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("button")){const e=t.target.closest("button");t.keyCode==13&&e.getAttribute("type")!="submit"&&(t.preventDefault(),p(e))}t&&t.target instanceof HTMLElement&&t.target.closest("input")&&(t.target.closest("input").classList.remove("is-invalid"),t.keyCode==13&&t.preventDefault())}),i.addEventListener("click",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest('button[type="submit"]'))t.target.closest("form").classList.add("was-validated");else if(t&&t.target instanceof HTMLElement&&t.target.closest("button[data-title]")){const e=t.target.closest("button[data-title]");p(e)}return null})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function A(i,a){i&&a=="all"?(i.querySelector("input").indeterminate=!1,i.querySelector("input").checked=!0,i.querySelector("label").textContent="Select all"):i&&a==0?(i.querySelector("input").indeterminate=!1,i.querySelector("input").checked=!1,i.querySelector("label").textContent="Select all"):i&&a?(i.querySelector("input").indeterminate=!0,i.querySelector("input").checked=!1,i.querySelector("label").textContent=`${a} item${a>1?"s":""} selected`):i&&(i.querySelector("input").checked=!1,i.querySelector("input").indeterminate=!1,i.querySelector("label").textContent="Select all")}class S extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",c=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,l=document.createElement("template");l.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */import k from"js-cookie";var A=function(L,i,o,s){function m(c){return c instanceof o?c:new o(function(u){u(c)})}return new(o||(o=Promise))(function(c,u){function b(n){try{f(s.next(n))}catch(h){u(h)}}function v(n){try{f(s.throw(n))}catch(h){u(h)}}function f(n){n.done?c(n.value):m(n.value).then(b,v)}f((s=s.apply(L,i||[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Address Lookup"});class $ extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",o=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */function A(r,i){function d(e,t,s=!0){let f=!1,l=t.getAttribute("name");if(!l)return!1;l.includes("[]")&&(l=l.replace("[]",`[${t.value}]`));let a=e.querySelector(`[data-name="${l}"]`);a&&t.getAttribute("type")=="checkbox"&&(f=!t.checked);let h=t.getAttribute("data-filter-text");if(a||(a=document.createElement("button"),e.appendChild(a)),a.setAttribute("type","button"),a.classList.add("filter"),a.classList.add("tag"),s&&a.classList.add("tag--not-set"),a.setAttribute("data-name",l),a.innerHTML=h.replace("$value",t.value),(!t.value||f)&&a.remove(),t.parentNode.closest("[data-filter-text]")){let m=t.parentNode.closest("[data-filter-text]"),o=!0;if(l="",m.querySelectorAll("input").forEach((u,c)=>{let p=u.getAttribute("name");if(l+=`${c!=0?",":""}${p}`,e.querySelector(`[data-name="${p}"]`)&&e.querySelector(`[data-name="${p}"]`).remove(),u.value){let n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("filter"),n.classList.add("tag"),s&&a.classList.add("tag--not-set"),n.setAttribute("data-name",p),n.innerHTML=h.replace("$value",u.value),e.appendChild(n)}else o=!1}),e.querySelector(`[data-name="${l}"]`)&&e.querySelector(`[data-name="${l}"]`).remove(),o){let u=m.getAttribute("data-filter-text");m.querySelectorAll("input").forEach((p,n)=>{let y=p.getAttribute("name");e.querySelector(`[data-name="${y}"]`)&&e.querySelector(`[data-name="${y}"]`).remove(),u=u.replace(`$${n+1}`,p.value)});let c=document.createElement("button");c.setAttribute("type","button"),c.classList.add("filter"),c.classList.add("tag"),s&&a.classList.add("tag--not-set"),c.setAttribute("data-name",l),c.innerHTML=u,e.appendChild(c)}}}Array.from(r.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((e,t)=>{d(i,e,!1)});let b=r.closest("dialog");b&&new MutationObserver(function(t){t[0].attributeName=="open"&&Array.from(r.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((s,f)=>{d(i,s,!1)})}).observe(b,{attributes:!0}),r.addEventListener("tags-set",function(e){i.innerHTML="",Array.from(r.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((t,s)=>{d(i,t,!1)})}),Array.from(r.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((e,t)=>{e.addEventListener("change",function(s){r.hasAttribute("data-keep-same")||d(i,e),s.stopPropagation()})}),r.addEventListener("change",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest("input[data-filter-text]")){let t=e.target.closest("input[data-filter-text]");r.hasAttribute("data-keep-same")||d(i,t)}}),i.addEventListener("click",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest(".filter")){let f=e.target.closest(".filter"),l=f.getAttribute("data-name").split(",");for(var t=0;t<l.length;t++){let a=l[t],h=`[name="${a}"]`;a.match(/\[(.*)\]/)&&(a.replace(/\[(.*)\]/,"[]"),h=`[value="${a.replace(/.*\[(.*)\]/,"$1")}"]`);let m=r.querySelectorAll(h);for(var s=0;s<m.length;s++){let o=m[s];if(o.getAttribute("type")!="radio"&&o.getAttribute("type")!="checkbox"){o.value="";var e=new Event("force");r.hasAttribute("data-nosubmit")||o.closest("form").dispatchEvent(e)}else{o.checked=!1;var e=new Event("force");r.hasAttribute("data-nosubmit")||o.closest("form").dispatchEvent(e)}}}f.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class g extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",d=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`;let b=this.classList.toString();const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Card"});class h extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.querySelector('*:not(.badge):not(small):not(.btn) > [class*="fa-"]:not(.btn)')&&this.classList.add("card--has-icon");let e=this.classList.toString();const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",o=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */function b(l,r){var n;let s=l.querySelector(".carousel__inner"),i=l.querySelector(".carousel__controls"),e=r.querySelectorAll(".col").length;s.addEventListener("scroll",function(o){clearTimeout(n),n=setTimeout(function(){let t=s.clientWidth,c=s.scrollWidth,d=s.scrollLeft,a=Math.round(d/c*e)+1,h=r.querySelector(".col:last-child").offsetLeft+50;s.scrollLeft+t>=h&&(a=e),Array.from(l.querySelectorAll(".carousel__controls button")).forEach((u,f)=>{u.removeAttribute("aria-current")}),l.querySelector(".control-"+a).setAttribute("aria-current",!0),a==1?l.querySelector(".btn-prev").setAttribute("disabled","disabled"):l.querySelector(".btn-prev").removeAttribute("disabled"),a==e?l.querySelector(".btn-next").setAttribute("disabled","disabled"):l.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),i.addEventListener("click",function(o){for(var t=o.target;t&&t!=this;t=t.parentNode)if(typeof t.matches=="function"&&t.matches("button")){o.preventDefault(),Array.from(i.querySelectorAll("button")).forEach((d,a)=>{d.removeAttribute("aria-current")}),t.setAttribute("aria-current",!0);const c=r.querySelector(`*:nth-child(${t.getAttribute("data-slide")})`);s.scroll({top:0,left:c.offsetLeft,behavior:"smooth"});break}},!1),l.addEventListener("click",function(o){for(var t=o.target;t&&t!=this;t=t.parentNode)if(typeof t.matches=="function"&&t.matches(".btn-next, .btn-prev")){o.preventDefault();let c=t.classList.contains("btn-prev")?s.scrollLeft-s.clientWidth:s.scrollLeft+s.clientWidth;s.scroll({top:0,left:c,behavior:"smooth"});break}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"carousel"});class m extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const r=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${r}/css/core.min.css`,s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -22,14 +22,14 @@ class iamCollapsibleSideMenu extends HTMLElement {
22
22
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
23
23
  <div class="container" part="container">
24
24
 
25
- <div class="side-menu">
26
- <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
27
- <div class="side-menu-content closed">
25
+ <div class="side-menu" part="side-menu">
26
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
27
+ <div class="side-menu-content closed" part="side-menu-content">
28
28
  <slot name="menu"></slot>
29
29
  </div>
30
30
  </div>
31
31
 
32
- <div class="main-content">
32
+ <div class="main-content" part="main-content">
33
33
  <slot></slot>
34
34
  </div>
35
35
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"collapsible side menu"});class a extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
5
5
  <style class="styles">
@@ -11,14 +11,14 @@
11
11
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
12
12
  <div class="container" part="container">
13
13
 
14
- <div class="side-menu">
15
- <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
16
- <div class="side-menu-content closed">
14
+ <div class="side-menu" part="side-menu">
15
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
16
+ <div class="side-menu-content closed" part="side-menu-content">
17
17
  <slot name="menu"></slot>
18
18
  </div>
19
19
  </div>
20
20
 
21
- <div class="main-content">
21
+ <div class="main-content" part="main-content">
22
22
  <slot></slot>
23
23
  </div>
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible-side.component.min.js","sources":["collapsible-side.component.js"],"sourcesContent":["// @ts-nocheck\n// Data layer Web component created\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n \"event\": \"customElementRegistered\",\n \"element\": \"collapsible side menu\"\n});\nclass iamCollapsibleSideMenu extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';\n const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;\n const loadCSS = `@import \"${assetLocation}/css/components/collapsible-side.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style class=\"styles\">\n @import \"${coreCSS}\";\n ${loadCSS}\n ${this.hasAttribute('css') ? `@import \"${this.getAttribute('css')}\";` : ``}\n </style>\n <link rel=\"stylesheet\" href=\"https://kit.fontawesome.com/26fdbf0179.css\" crossorigin=\"anonymous\">\n <div class=\"container\" part=\"container\">\n\n <div class=\"side-menu\">\n <button class=\"btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse\">Open or close Collapsible menu</button>\n <div class=\"side-menu-content closed\">\n <slot name=\"menu\"></slot>\n </div>\n </div>\n\n <div class=\"main-content\">\n <slot></slot>\n </div>\n\n </div>\n `;\n this.shadowRoot.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n const sideMenu = this.shadowRoot.querySelector('.side-menu');\n const sideMenuContent = this.shadowRoot.querySelector('.side-menu-content');\n const mainContent = this.shadowRoot.querySelector('.main-content');\n const button = this.shadowRoot.querySelector('.side-menu > .btn');\n // Load external CSS if needed\n if (this.hasAttribute('data-css'))\n this.shadowRoot.querySelector('.styles').insertAdjacentHTML('beforeend', `@import \"${this.getAttribute('data-css')}\";`);\n // Set sde nav title\n if (!this.hasAttribute('data-title'))\n this.setAttribute('data-title', 'configuration');\n sideMenuContent.insertAdjacentHTML('afterbegin', `<span class=\"h3\">${this.getAttribute('data-title')}</span>`);\n mainContent.insertAdjacentHTML('afterbegin', `<span class=\"h3\">${this.getAttribute('data-title')}</span>`);\n if (this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)')) {\n this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)').classList.add('h4');\n this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)').classList.add('main-content__title');\n }\n if (this.hasAttribute('open')) {\n sideMenu.classList.add('open');\n button.setAttribute('aria-expanded', true);\n }\n // Open the menu\n button.addEventListener('click', (event) => {\n if (!sideMenu.classList.contains('open')) {\n sideMenuContent.classList.remove('closed');\n setTimeout(function () {\n sideMenu.classList.add('open');\n button.setAttribute('aria-expanded', true);\n }, 100);\n }\n else {\n sideMenu.classList.remove('open');\n button.removeAttribute('aria-expanded');\n setTimeout(function () { sideMenuContent.classList.add('closed'); }, 1000); // Delay until its close so the animation is broken\n // While the menu is closing dont allow the hover to re-open it until its fully closed.\n sideMenu.classList.add('pe-none');\n setTimeout(function () { sideMenu.classList.remove('pe-none'); }, 1000);\n }\n });\n // Mimic hover event on desktop so that we can control when classes are set and which order\n sideMenu.addEventListener('mouseenter', (event) => {\n if (window.innerWidth > 992) {\n if (!sideMenu.classList.contains('open'))\n sideMenuContent.classList.remove('closed');\n sideMenu.classList.add('hover');\n }\n });\n sideMenu.addEventListener('mousemove', (event) => {\n if (window.innerWidth > 992) {\n if (!sideMenu.classList.contains('open'))\n sideMenuContent.classList.remove('closed');\n }\n });\n sideMenu.addEventListener('mouseleave', (event) => {\n if (window.innerWidth > 992) {\n sideMenu.classList.remove('hover');\n if (!sideMenu.classList.contains('open'))\n setTimeout(function () { sideMenuContent.classList.add('closed'); }, 1000); // Delay until its close so the animation is broken\n }\n });\n }\n}\nexport default iamCollapsibleSideMenu;\n"],"names":["iamCollapsibleSideMenu","assetLocation","coreCSS","template","sideMenu","sideMenuContent","mainContent","button","event"],"mappings":";;;IAEA,OAAO,UAAY,OAAO,WAAa,GACvC,OAAO,UAAU,KAAK,CAClB,MAAS,0BACT,QAAW,uBACf,CAAC,EACD,MAAMA,UAA+B,WAAY,CAC7C,aAAc,CACV,QACA,KAAK,aAAa,CAAE,KAAM,MAAQ,CAAA,EAClC,MAAMC,EAAgB,SAAS,KAAK,aAAa,sBAAsB,EAAI,SAAS,KAAK,aAAa,sBAAsB,EAAI,UAC1HC,EAAU,SAAS,KAAK,aAAa,eAAe,EAAI,SAAS,KAAK,aAAa,eAAe,EAAI,GAAGD,qBAEzGE,EAAW,SAAS,cAAc,UAAU,EAClDA,EAAS,UAAY;AAAA;AAAA,eAEdD;AAAA;AAAA;AAAA,MAET,KAAK,aAAa,KAAK,EAAI,YAAY,KAAK,aAAa,KAAK,MAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBpE,KAAK,WAAW,YAAYC,EAAS,QAAQ,UAAU,EAAI,CAAC,CAC/D,CACD,mBAAoB,CAChB,MAAMC,EAAW,KAAK,WAAW,cAAc,YAAY,EACrDC,EAAkB,KAAK,WAAW,cAAc,oBAAoB,EACpEC,EAAc,KAAK,WAAW,cAAc,eAAe,EAC3DC,EAAS,KAAK,WAAW,cAAc,mBAAmB,EAE5D,KAAK,aAAa,UAAU,GAC5B,KAAK,WAAW,cAAc,SAAS,EAAE,mBAAmB,YAAa,YAAY,KAAK,aAAa,UAAU,KAAK,EAErH,KAAK,aAAa,YAAY,GAC/B,KAAK,aAAa,aAAc,eAAe,EACnDF,EAAgB,mBAAmB,aAAc,oBAAoB,KAAK,aAAa,YAAY,UAAU,EAC7GC,EAAY,mBAAmB,aAAc,oBAAoB,KAAK,aAAa,YAAY,UAAU,EACrG,KAAK,cAAc,iCAAiC,IACpD,KAAK,cAAc,iCAAiC,EAAE,UAAU,IAAI,IAAI,EACxE,KAAK,cAAc,iCAAiC,EAAE,UAAU,IAAI,qBAAqB,GAEzF,KAAK,aAAa,MAAM,IACxBF,EAAS,UAAU,IAAI,MAAM,EAC7BG,EAAO,aAAa,gBAAiB,EAAI,GAG7CA,EAAO,iBAAiB,QAAUC,GAAU,CACnCJ,EAAS,UAAU,SAAS,MAAM,GAQnCA,EAAS,UAAU,OAAO,MAAM,EAChCG,EAAO,gBAAgB,eAAe,EACtC,WAAW,UAAY,CAAEF,EAAgB,UAAU,IAAI,QAAQ,GAAM,GAAI,EAEzED,EAAS,UAAU,IAAI,SAAS,EAChC,WAAW,UAAY,CAAEA,EAAS,UAAU,OAAO,SAAS,GAAM,GAAI,IAZtEC,EAAgB,UAAU,OAAO,QAAQ,EACzC,WAAW,UAAY,CACnBD,EAAS,UAAU,IAAI,MAAM,EAC7BG,EAAO,aAAa,gBAAiB,EAAI,CAC5C,EAAE,GAAG,EAUtB,CAAS,EAEDH,EAAS,iBAAiB,aAAeI,GAAU,CAC3C,OAAO,WAAa,MACfJ,EAAS,UAAU,SAAS,MAAM,GACnCC,EAAgB,UAAU,OAAO,QAAQ,EAC7CD,EAAS,UAAU,IAAI,OAAO,EAE9C,CAAS,EACDA,EAAS,iBAAiB,YAAcI,GAAU,CAC1C,OAAO,WAAa,MACfJ,EAAS,UAAU,SAAS,MAAM,GACnCC,EAAgB,UAAU,OAAO,QAAQ,EAE7D,CAAS,EACDD,EAAS,iBAAiB,aAAeI,GAAU,CAC3C,OAAO,WAAa,MACpBJ,EAAS,UAAU,OAAO,OAAO,EAC5BA,EAAS,UAAU,SAAS,MAAM,GACnC,WAAW,UAAY,CAAEC,EAAgB,UAAU,IAAI,QAAQ,GAAM,GAAI,EAE7F,CAAS,CACJ,CACL"}
1
+ {"version":3,"file":"collapsible-side.component.min.js","sources":["collapsible-side.component.js"],"sourcesContent":["// @ts-nocheck\n// Data layer Web component created\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n \"event\": \"customElementRegistered\",\n \"element\": \"collapsible side menu\"\n});\nclass iamCollapsibleSideMenu extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';\n const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;\n const loadCSS = `@import \"${assetLocation}/css/components/collapsible-side.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style class=\"styles\">\n @import \"${coreCSS}\";\n ${loadCSS}\n ${this.hasAttribute('css') ? `@import \"${this.getAttribute('css')}\";` : ``}\n </style>\n <link rel=\"stylesheet\" href=\"https://kit.fontawesome.com/26fdbf0179.css\" crossorigin=\"anonymous\">\n <div class=\"container\" part=\"container\">\n\n <div class=\"side-menu\" part=\"side-menu\">\n <button class=\"btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse\" part=\"btn\">Open or close Collapsible menu</button>\n <div class=\"side-menu-content closed\" part=\"side-menu-content\">\n <slot name=\"menu\"></slot>\n </div>\n </div>\n\n <div class=\"main-content\" part=\"main-content\">\n <slot></slot>\n </div>\n\n </div>\n `;\n this.shadowRoot.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n const sideMenu = this.shadowRoot.querySelector('.side-menu');\n const sideMenuContent = this.shadowRoot.querySelector('.side-menu-content');\n const mainContent = this.shadowRoot.querySelector('.main-content');\n const button = this.shadowRoot.querySelector('.side-menu > .btn');\n // Load external CSS if needed\n if (this.hasAttribute('data-css'))\n this.shadowRoot.querySelector('.styles').insertAdjacentHTML('beforeend', `@import \"${this.getAttribute('data-css')}\";`);\n // Set sde nav title\n if (!this.hasAttribute('data-title'))\n this.setAttribute('data-title', 'configuration');\n sideMenuContent.insertAdjacentHTML('afterbegin', `<span class=\"h3\">${this.getAttribute('data-title')}</span>`);\n mainContent.insertAdjacentHTML('afterbegin', `<span class=\"h3\">${this.getAttribute('data-title')}</span>`);\n if (this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)')) {\n this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)').classList.add('h4');\n this.querySelector(':scope > :is(h1,h2,h3,h4,h5,h6)').classList.add('main-content__title');\n }\n if (this.hasAttribute('open')) {\n sideMenu.classList.add('open');\n button.setAttribute('aria-expanded', true);\n }\n // Open the menu\n button.addEventListener('click', (event) => {\n if (!sideMenu.classList.contains('open')) {\n sideMenuContent.classList.remove('closed');\n setTimeout(function () {\n sideMenu.classList.add('open');\n button.setAttribute('aria-expanded', true);\n }, 100);\n }\n else {\n sideMenu.classList.remove('open');\n button.removeAttribute('aria-expanded');\n setTimeout(function () { sideMenuContent.classList.add('closed'); }, 1000); // Delay until its close so the animation is broken\n // While the menu is closing dont allow the hover to re-open it until its fully closed.\n sideMenu.classList.add('pe-none');\n setTimeout(function () { sideMenu.classList.remove('pe-none'); }, 1000);\n }\n });\n // Mimic hover event on desktop so that we can control when classes are set and which order\n sideMenu.addEventListener('mouseenter', (event) => {\n if (window.innerWidth > 992) {\n if (!sideMenu.classList.contains('open'))\n sideMenuContent.classList.remove('closed');\n sideMenu.classList.add('hover');\n }\n });\n sideMenu.addEventListener('mousemove', (event) => {\n if (window.innerWidth > 992) {\n if (!sideMenu.classList.contains('open'))\n sideMenuContent.classList.remove('closed');\n }\n });\n sideMenu.addEventListener('mouseleave', (event) => {\n if (window.innerWidth > 992) {\n sideMenu.classList.remove('hover');\n if (!sideMenu.classList.contains('open'))\n setTimeout(function () { sideMenuContent.classList.add('closed'); }, 1000); // Delay until its close so the animation is broken\n }\n });\n }\n}\nexport default iamCollapsibleSideMenu;\n"],"names":["iamCollapsibleSideMenu","assetLocation","coreCSS","template","sideMenu","sideMenuContent","mainContent","button","event"],"mappings":";;;IAEA,OAAO,UAAY,OAAO,WAAa,GACvC,OAAO,UAAU,KAAK,CAClB,MAAS,0BACT,QAAW,uBACf,CAAC,EACD,MAAMA,UAA+B,WAAY,CAC7C,aAAc,CACV,QACA,KAAK,aAAa,CAAE,KAAM,MAAQ,CAAA,EAClC,MAAMC,EAAgB,SAAS,KAAK,aAAa,sBAAsB,EAAI,SAAS,KAAK,aAAa,sBAAsB,EAAI,UAC1HC,EAAU,SAAS,KAAK,aAAa,eAAe,EAAI,SAAS,KAAK,aAAa,eAAe,EAAI,GAAGD,qBAEzGE,EAAW,SAAS,cAAc,UAAU,EAClDA,EAAS,UAAY;AAAA;AAAA,eAEdD;AAAA;AAAA;AAAA,MAET,KAAK,aAAa,KAAK,EAAI,YAAY,KAAK,aAAa,KAAK,MAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBpE,KAAK,WAAW,YAAYC,EAAS,QAAQ,UAAU,EAAI,CAAC,CAC/D,CACD,mBAAoB,CAChB,MAAMC,EAAW,KAAK,WAAW,cAAc,YAAY,EACrDC,EAAkB,KAAK,WAAW,cAAc,oBAAoB,EACpEC,EAAc,KAAK,WAAW,cAAc,eAAe,EAC3DC,EAAS,KAAK,WAAW,cAAc,mBAAmB,EAE5D,KAAK,aAAa,UAAU,GAC5B,KAAK,WAAW,cAAc,SAAS,EAAE,mBAAmB,YAAa,YAAY,KAAK,aAAa,UAAU,KAAK,EAErH,KAAK,aAAa,YAAY,GAC/B,KAAK,aAAa,aAAc,eAAe,EACnDF,EAAgB,mBAAmB,aAAc,oBAAoB,KAAK,aAAa,YAAY,UAAU,EAC7GC,EAAY,mBAAmB,aAAc,oBAAoB,KAAK,aAAa,YAAY,UAAU,EACrG,KAAK,cAAc,iCAAiC,IACpD,KAAK,cAAc,iCAAiC,EAAE,UAAU,IAAI,IAAI,EACxE,KAAK,cAAc,iCAAiC,EAAE,UAAU,IAAI,qBAAqB,GAEzF,KAAK,aAAa,MAAM,IACxBF,EAAS,UAAU,IAAI,MAAM,EAC7BG,EAAO,aAAa,gBAAiB,EAAI,GAG7CA,EAAO,iBAAiB,QAAUC,GAAU,CACnCJ,EAAS,UAAU,SAAS,MAAM,GAQnCA,EAAS,UAAU,OAAO,MAAM,EAChCG,EAAO,gBAAgB,eAAe,EACtC,WAAW,UAAY,CAAEF,EAAgB,UAAU,IAAI,QAAQ,GAAM,GAAI,EAEzED,EAAS,UAAU,IAAI,SAAS,EAChC,WAAW,UAAY,CAAEA,EAAS,UAAU,OAAO,SAAS,GAAM,GAAI,IAZtEC,EAAgB,UAAU,OAAO,QAAQ,EACzC,WAAW,UAAY,CACnBD,EAAS,UAAU,IAAI,MAAM,EAC7BG,EAAO,aAAa,gBAAiB,EAAI,CAC5C,EAAE,GAAG,EAUtB,CAAS,EAEDH,EAAS,iBAAiB,aAAeI,GAAU,CAC3C,OAAO,WAAa,MACfJ,EAAS,UAAU,SAAS,MAAM,GACnCC,EAAgB,UAAU,OAAO,QAAQ,EAC7CD,EAAS,UAAU,IAAI,OAAO,EAE9C,CAAS,EACDA,EAAS,iBAAiB,YAAcI,GAAU,CAC1C,OAAO,WAAa,MACfJ,EAAS,UAAU,SAAS,MAAM,GACnCC,EAAgB,UAAU,OAAO,QAAQ,EAE7D,CAAS,EACDD,EAAS,iBAAiB,aAAeI,GAAU,CAC3C,OAAO,WAAa,MACpBJ,EAAS,UAAU,OAAO,OAAO,EAC5BA,EAAS,UAAU,SAAS,MAAM,GACnC,WAAW,UAAY,CAAEC,EAAgB,UAAU,IAAI,QAAQ,GAAM,GAAI,EAE7F,CAAS,CACJ,CACL"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */function g(r,i){const n=i.querySelector(".files"),l=i.querySelector(".drop-area"),t=r.querySelector("input"),f=r.hasAttribute("data-maxsize")?r.getAttribute("data-maxsize"):0,a=t.cloneNode();if(l.append(a),i.addEventListener("click",e=>{e&&e.target instanceof HTMLElement&&e.target.closest(".btn-primary")&&(e.target.closest(".btn-primary"),(t.hasAttribute("multiple")?a:t).click())}),i.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest(".files button")){const o=new DataTransfer,{files:c}=t,p=e.target.closest(".files button");for(let s=0;s<c.length;s++){const d=c[s];d.name!=p.getAttribute("data-file")&&o.items.add(d)}if(t.files=o.files,t.files.length==0){const s=new Event("empty");r.dispatchEvent(s)}const m=new Event("change");t.dispatchEvent(m)}}),a.addEventListener("change",e=>{if(t.hasAttribute("multiple")){const p=[...t.files,...a.files];let m=[];const s=new DataTransfer;for(let d=0;d<p.length;d++){const u=p[d],h=u.size/1e3;!m.includes(u.name)&&(f==0||h<f)&&s.items.add(u),m.push(u.name)}t.files=s.files}else t.files=a.files;const o=new Event("change");t.dispatchEvent(o);const c=new Event("elementChange");r.dispatchEvent(c)}),a.addEventListener("dragenter",e=>{a.classList.add("focus")}),a.addEventListener("dragleave",e=>{a.classList.remove("focus")}),a.addEventListener("drop",e=>{a.classList.remove("focus")}),t.addEventListener("change",e=>{n.innerHTML="";for(const o of t.files)n.innerHTML+=`<span class="file">${o.name} <button data-file="${o.name}">Remove</button></span>`}),r.hasAttribute("data-filename")){let e=r.getAttribute("data-filename");e&&(n.innerHTML+=`<span class="file">${e} <button data-file="${e}">Remove</button></span>`)}i.addEventListener("click",e=>{e&&e.target instanceof HTMLElement&&e.target.closest(".btn-primary")&&(e.target.closest(".btn-primary"),(t.hasAttribute("multiple")?a:t).click())})}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"fileupload"});class b extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,l=document.createElement("template");l.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */function r(s,t){n(s,t)}function n(s,t){var e;t.addEventListener("keyup",a=>{clearTimeout(e),e=setTimeout(function(){o(s,t.value)},500)}),t.addEventListener("change",a=>{clearTimeout(e),o(s,t.value)})}const o=function(s,t){Array.from(s.querySelectorAll(":scope > li")).forEach((e,a)=>{let i=e.textContent.toLowerCase();e.classList.add("d-none"),i.includes(t.toLowerCase())&&e.classList.remove("d-none")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Filtered list",value:t})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"filterlist"});class l extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const 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"):`${t}/css/core.min.css`,a=document.createElement("template");a.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class o extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const 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"):`${t}/css/core.min.css`,a=document.createElement("template");a.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"inline edit"});class b extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",d=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,e=document.createElement("template");e.innerHTML=`
5
5
  <style class="styles">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Marketing"});class o extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",i=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"mutliselect"});class m extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",s=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});class v extends HTMLElement{constructor(){super();const s=this.attachShadow({mode:"open"}),n=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"):`${n}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
5
5
  <style class="styles">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */function r(i){if(i.hasAttribute("data-type")&&i.getAttribute("data-type")=="toast"){let t=document.querySelector(".notification__holder");t||(t=document.createElement("div"),t.classList.add("notification__holder"),t.classList.add("container"),document.querySelector("body").appendChild(t)),i.closest(".notification__holder")||t.appendChild(i)}if(i.setAttribute("role","alert"),i.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(t.preventDefault(),a(i))},!1),i.hasAttribute("data-timeout")){let t=i.getAttribute("data-timeout");var n=new c(function(){a(i)},t);i.addEventListener("mouseenter",o=>{n.pause()}),i.addEventListener("mouseleave",o=>{n.resume()})}}function c(i,n){var t,o,e=n;this.pause=function(){window.clearTimeout(t),e-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(t),t=window.setTimeout(i,e)},this.resume()}const a=function(i){i.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class d extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${n}/css/core.min.css`,o=this.querySelectorAll("a,button");Array.from(o).forEach((s,l)=>{s.setAttribute("slot","btns"),s.classList.add("link")}),(o.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */class v extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */import k from"js-cookie";const q=e=>e.replace(/ /g,"_"),x=function(e){return e=e.toLowerCase(),e=q(e),e=e.replace(/\W/g,""),e},m=(e,s,a)=>s.split(/[\.\[\]\'\"]/).filter(o=>o).reduce((o,d)=>o?o[d]:a,e),S=e=>Array.isArray(e)||e!==null&&["function","object"].includes(typeof e);var L=function(e,s,a,o){function d(c){return c instanceof a?c:new a(function(n){n(c)})}return new(a||(a=Promise))(function(c,n){function v(r){try{u(o.next(r))}catch(i){n(i)}}function t(r){try{u(o.throw(r))}catch(i){n(i)}}function u(r){r.done?c(r.value):d(r.value).then(v,t)}u((o=o.apply(e,s||[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Search"});class C extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const s=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"):`${s}/css/core.min.css`,o=document.createElement("template");o.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Slider"});class f extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",p=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */const B=function(i){return typeof i!="string"?!1:!isNaN(i)&&!isNaN(parseFloat(i))},Q=(i,e)=>String(i).padStart(e,"0"),X=i=>i.charAt(0).toUpperCase()+i.slice(1),S=(i,e,n)=>e.split(/[\.\[\]\'\"]/).filter(a=>a).reduce((a,m)=>a?a[m]:n,i);var Y=function(i,e,n,a){function m(s){return s instanceof n?s:new n(function(r){r(s)})}return new(n||(n=Promise))(function(s,r){function l(c){try{t(a.next(c))}catch(o){r(o)}}function d(c){try{t(a.throw(c))}catch(o){r(o)}}function t(c){c.done?s(c.value):m(c.value).then(l,d)}t((a=a.apply(i,e||[])).next())})};const R=i=>{const e=Array.from(i.querySelectorAll("thead th"));Array.from(i.querySelectorAll("tbody tr")).forEach((a,m)=>{const s=Array.from(a.querySelectorAll("th, td")),r=["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"];s.forEach((l,d)=>{const t=e[d];if(typeof t<"u"){let c=document.createElement("div");c.innerHTML=t.innerHTML;let o=c.textContent||c.innerText||"";l.setAttribute("data-label",o),t.hasAttribute("data-td-class")&&l.setAttribute("class",t.getAttribute("data-td-class")),t.hasAttribute("data-format")&&(l.setAttribute("data-format",t.getAttribute("data-format")),l.innerHTML=D(t.getAttribute("data-format"),l.textContent.trim())),r.includes(l.textContent.trim().toLowerCase())&&l.setAttribute("data-content",l.textContent.trim().toLowerCase())}})})},J=i=>{let e=0;return Array.from(i.querySelectorAll("tbody tr")).forEach((n,a)=>{let m=window.getComputedStyle(document.querySelector("html")),s=n.querySelector(":scope > *:last-child > *:first-child");if(s){s.classList.add("text-nowrap");let r=s.offsetWidth/parseFloat(m.fontSize);r+=1.7,e=e>r?e:r}}),e},G=(i,e)=>{if(e.classList.contains("table--fullwidth")&&!e.hasAttribute("data-expandable")||i.querySelectorAll("thead tr th").length<4&&!e.hasAttribute("data-expandable"))return!1;Array.from(i.querySelectorAll("thead tr")).forEach((n,a)=>{i.querySelectorAll("thead tr th.expand-button-heading").length||n.insertAdjacentHTML("afterbegin",'<th class="th--fixed expand-button-heading"></th>')}),Array.from(i.querySelectorAll("tbody tr")).forEach((n,a)=>{const m=n.getAttribute("data-view")==="full"?"aria-expanded":"";n.insertAdjacentHTML("afterbegin",`<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${m}>Expand</button></td>`)})},V=i=>{i.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-expand-button]")){let n=e.target.closest("[data-expand-button]"),a=n.closest("tr");n.toggleAttribute("aria-expanded"),a.getAttribute("data-view")=="full"?a.setAttribute("data-view","default"):a.setAttribute("data-view","full"),n.blur()}})},N=(i,e)=>{let n=e.querySelector("input[data-search]");if(!n)return!1;const a=n.getAttribute("id"),m=n.getAttribute("data-search").split(",");let s=n.parentNode,r={};m.forEach((l,d)=>{Array.from(i.querySelectorAll('td[data-label="'+l.trim()+'"]')).forEach((t,c)=>{t.querySelector(".td__content")?r[t.querySelector(".td__content").textContent]=t.querySelector(".td__content").textContent:r[t.textContent]=t.textContent})}),n.setAttribute("list",`${a}_list`),n.setAttribute("autocomplete","off"),s.querySelector("datalist")||(s.innerHTML+=`<datalist id="${a}_list"></datalist>`),s.querySelector("datalist").innerHTML=`${Object.keys(r).map(l=>`<option value="${l}"></option>`).join("")}`},K=(i,e,n,a,m)=>{var s;let r=function(t,c=!1){if(console.log("submit"),e.classList.contains("processing"))return!1;if(Array.from(e.querySelectorAll("iam-applied-filters")).forEach((o,b)=>{var h=new Event("tags-set");o.dispatchEvent(h)}),t.type=="submit"&&(e.classList.add("processing"),Array.from(e.querySelectorAll("[data-duplicate]")).forEach((o,b)=>{const h=o.getAttribute("data-duplicate"),u=document.getElementById(h),y=document.querySelector(`[for="${h}"] iam-card`);if(u.checked!=o.checked)if(y){let w=new Event("click");y.dispatchEvent(w)}else u.checked=o.checked}),e.classList.remove("processing")),e.hasAttribute("data-ajax")){if(!c){let o=e.querySelector("[data-pagination]");o.value=1,a.setAttribute("data-page",1)}I(i,e,n,a)}else e.hasAttribute("data-submit")?e.submit():(C(i,e,a),$(i,e));if(e.hasAttribute("data-ajax-post")){let o=new FormData(e),b=new URLSearchParams(o).toString();const h=new XMLHttpRequest;h.open("GET",`${window.location.href}?ajax=true&${b}`),h.send()}};e.querySelector("iam-actionbar[data-search]")&&e.querySelector("iam-actionbar[data-search]").addEventListener("search-submit",t=>{e.querySelector("input[data-search]")?e.querySelector("input[data-search]").value=t.detail.search:e.insertAdjacentHTML("beforeend",`<input type="hidden" name="search" data-search="${e.querySelector("iam-actionbar[data-search]").getAttribute("data-search")}" value="${t.detail.search}"/>`),clearTimeout(s),r(t)}),e.addEventListener("keyup",t=>{clearTimeout(s),t&&t.target instanceof HTMLElement&&t.target.closest("input[data-search]")&&(s=setTimeout(function(){r(t)},500))}),e.addEventListener("change",t=>{if(clearTimeout(s),t&&t.target instanceof HTMLElement&&t.target.closest("[data-sort]")&&(e.hasAttribute("data-submit")||O(i,e,m),r(t)),t&&t.target instanceof HTMLElement&&t.target.closest("input[data-search]")&&r(t),t&&t.target instanceof HTMLElement&&t.target.closest("[data-filter][data-no-ajax]")?(C(i,e,a),$(i,e)):(t&&t.target instanceof HTMLElement&&t.target.closest("[data-filter]")&&t.target.closest("form .dialog__wrapper > dialog")||t&&t.target instanceof HTMLElement&&t.target.closest("[data-filter]")&&!t.target.closest("form dialog"))&&r(t),t&&t.target instanceof HTMLElement&&t.target.closest("[data-show]")&&r(t),t&&t.target instanceof HTMLElement&&t.target.closest("[data-mimic]")&&r(t),t&&t.target instanceof HTMLElement&&t.target.hasAttribute("id")){let c=t.target.getAttribute("id");document.querySelector(`[data-duplicate="${c}"]`)&&(document.querySelector(`[data-duplicate="${c}"]`).checked=t.target.checked)}}),e.addEventListener("click",t=>{if(clearTimeout(s),t&&t.target instanceof HTMLElement&&t.target.closest('dialog button:not([type="button"])')&&t.target.closest('dialog button:not([type="button"])').closest("dialog").close(),t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__close")&&(t.preventDefault(),t.stopPropagation()),t&&t.target instanceof HTMLElement&&t.target.closest("[data-clear]")){e.classList.add("processing"),Array.from(e.querySelectorAll(".applied-filters")).forEach((o,b)=>{o.innerHTML=""});let c=e.elements;for(let o=0;o<c.length;o++)switch(c[o].type.toLowerCase()?c[o].type.toLowerCase():"text"){case"text":case"password":case"textarea":c[o].value="";break;case"radio":case"checkbox":if(c[o].checked){let h=c[o],u=h.getAttribute("id"),y=document.querySelector(`[for="${u}"`);if(y.querySelector("iam-card")){let w=y.querySelector("iam-card"),k=new Event("click");w.dispatchEvent(k)}h.checked=!1}break;case"select-one":case"select-multi":c[o].selectedIndex=-1;break}e.classList.remove("processing"),e.hasAttribute("data-submit")||O(i,e,m),r(t)}}),e.addEventListener("submit",t=>{clearTimeout(s),e.hasAttribute("data-submit")||t.preventDefault(),r(t)}),e.addEventListener("force",t=>{r(t)}),e.addEventListener("paginate",t=>{r(t,!0)});let l=[],d=[];Array.from(e.querySelectorAll("[data-mimic]")).forEach((t,c)=>{let o=t.getAttribute("data-mimic");Array.from(document.querySelectorAll(`[name="${o}"]`)).forEach((b,h)=>{let u=b.closest("form");l.includes(u)||l.push(u),d.includes(o)||d.push(o)})}),l.forEach((t,c)=>{const o=function(){let b=[],h=new FormData(t);for(const[u,y]of h)document.querySelector(`[data-mimic="${u}"]`)&&!b.includes(u)?(b.push(u),document.querySelector(`[data-mimic="${u}"]`).value=y):document.querySelector(`[data-mimic="${u}"]`)&&(document.querySelector(`[data-mimic="${u}"]`).value+=","+y);for(const u of b){const y=new Event("force");e.dispatchEvent(y)}for(const u of d)if(!h.has(u)&&t.querySelector(`[name="${u}"]`)){document.querySelector(`[data-mimic="${u}"]`).value="";const y=new Event("force");e.dispatchEvent(y)}};t.addEventListener("force",b=>{o()}),t.addEventListener("change",b=>{o()})})},O=(i,e,n)=>{if(e.getAttribute("data-ajax"))return!1;let a=i.querySelector("tbody"),m=e.querySelector('input[type="radio"][data-sort]:checked');if(e.querySelector("select[data-sort]")){let o=e.querySelector("select[data-sort]");m=e.querySelector(`select[data-sort] option:nth-child(${o.selectedIndex+1})`)}let s=m.getAttribute("data-sort"),r=m.getAttribute("data-order"),l=m.getAttribute("data-format");if(!s)return a.innerHTML=n.innerHTML,R(i),!1;let d=[];["asc","desc","descending"].includes(r)||(d=r.split(","));let t=[];Array.from(a.querySelectorAll("tr")).forEach((o,b)=>{let h=o.querySelector('td[data-label="'+s+'"], th[data-label="'+s+'"]').textContent.trim();o.querySelector('[data-label="'+s+'"] .td__content')&&(h=o.querySelector('[data-label="'+s+'"] .td__content').textContent.trim()),d.length&&d.includes(h)&&(h=d.indexOf(h)),B(h)&&(h=Q(h,10)),l&&l=="date"&&(h=new Date(h));const u={index:h,row:o};t.push(u)}),t.sort((o,b)=>o.index>b.index?1:-1),(r=="descending"||r=="desc")&&(t=t.reverse());let c="";t.forEach((o,b)=>{c+=o.row.outerHTML}),a.innerHTML=c},C=(i,e,n)=>{i.classList.remove("table--filtered");let a=z(e),m=[],s=0,r=e.querySelector("[data-pagination]")?parseInt(e.querySelector("[data-pagination]").value):1,l=e.querySelector("[data-show]")?parseInt(e.querySelector("[data-show]").value):15;if(Array.from(i.querySelectorAll("tbody tr")).forEach((t,c)=>{t.classList.remove("filtered"),t.classList.remove("filtered--matched"),t.classList.remove("filtered--show"),t.removeAttribute("data-filtered-by")}),e.querySelector("input[data-search]")){let t=e.querySelector("input[data-search]");e.querySelector("input[data-search]").getAttribute("data-search").split(",").forEach((o,b)=>{m.push({column:`${o.trim()}`,value:`${t.value}`})})}Array.from(e.querySelectorAll("[data-filter-count]")).forEach((t,c)=>{t.innerHTML="",t.parentNode.classList.remove("hover")});let d=0;Object.values(a).forEach((t,c)=>{typeof t=="object"&&Object.values(t).length?d+=Object.values(t).length:d++}),d&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach((t,c)=>{t.innerHTML+=`(${d})`,t.parentNode.classList.add("hover")}),i.classList.add("table--filtered");for(const[t,c]of Object.entries(a))Array.from(i.querySelectorAll("tbody tr:not(.filtered)")).forEach((o,b)=>{let h=!1;c.forEach((u,y)=>{let w=o.querySelector(`[data-label="${t}"]`);if(u.includes("-date-from")){let f=new Date(u.replace("-date-from","")),g=new Date(w.textContent.toLowerCase());f.setHours(0,0,0,0),g.setHours(0,0,0,0),g<f?(o.classList.add("less-than-from-date"),h=!1):!o.classList.contains("less-than-from-date")&&!o.classList.contains("greater-than-to-date")&&(h=!0)}else if(u.includes("-date-to")){let f=new Date(u.replace("-date-to","")),g=new Date(w.textContent.toLowerCase());f.setHours(0,0,0,0),g.setHours(0,0,0,0),g>f?(o.classList.add("greater-than-to-date"),h=!1):!o.classList.contains("less-than-from-date")&&!o.classList.contains("greater-than-to-date")&&(h=!0)}if(u&&u=="$today")u=D("date",new Date);else if(u&&u=="$yesterday"){let f=new Date;f.setDate(f.getDate()-1),u=D("date",f)}else if(u&&(u=="$thisWeek"||u=="$lastWeek")){let f=new Date,g=new Date(f.setDate(f.getDate()-(f.getDay()-1))),p=new Date(f.setDate(f.getDate()-f.getDay()+7)),x=new Date(w.textContent.toLowerCase());if(f.setHours(0,0,0,0),g.setHours(0,0,0,0),p.setHours(0,0,0,0),x.setHours(0,0,0,0),u=="$thisWeek")h=x>=g&&x<=p;else{let A=new Date(g.setDate(g.getDate()-7)),L=new Date(p.setDate(p.getDate()-7));A.setHours(0,0,0,0),L.setHours(0,0,0,0),h=x>=A&&x<=L}}else if(u&&u=="$thisMonth"){let f=new Date,g=f.getFullYear(),p=f.getMonth();var k=new Date(g,p,1),q=new Date(g,p+1,0);let x=new Date(w.textContent.toLowerCase());k.setHours(0,0,0,0),q.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=k&&x<=q}else if(u&&u=="$lastMonth"){let f=new Date,g=f.getFullYear(),p=f.getMonth();var E=new Date(g,p-1,1),v=new Date(g,p,0);let x=new Date(w.textContent.toLowerCase());E.setHours(0,0,0,0),v.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=E&&x<=v}w&&w.textContent.toLowerCase().includes(u.replace("-"," ").toLowerCase())&&(h=!0)}),h||(o.classList.add("filtered"),o.setAttribute("data-filtered-by",t))});Array.from(i.querySelectorAll("tbody tr:not(.filtered)")).forEach((t,c)=>{let o=!(m.length>0&&m[0].value.length>=3);m.forEach((b,h)=>{let u=t.querySelector(`[data-label="${b.column}"]`);u&&b.value.length>=3&&u.textContent.toLowerCase().includes(b.value.toLowerCase())&&(o=!0)}),o||t.classList.add("filtered")}),Array.from(i.querySelectorAll("tbody tr:not(.filtered")).forEach((t,c)=>{s++,t.classList.add("filtered--matched"),Math.ceil(s/l)==parseInt(r)&&t.classList.add("filtered--show")}),n&&(n.setAttribute("data-total",s),n.setAttribute("data-show",l),n.setAttribute("data-page",r))},$=(i,e,n)=>{Array.from(e.querySelectorAll("[data-query]")).forEach((m,s)=>{let r=m.getAttribute("data-query"),l=0;if(r=="total")n.hasAttribute("data-total")?l=n.getAttribute("data-total"):l=(i.classList.contains("table--filtered"),i.querySelectorAll("tbody tr").length);else if(!r.includes(" == ")&&r.includes(" & ")){let d=r.split(" & "),t="";d.forEach(c=>{t+=`:not([data-filtered-by="${c}"])`}),l=Array.from(i.querySelectorAll(`tbody tr${t}`)).length}else if(!r.includes(" == "))l=Array.from(i.querySelectorAll(`tbody tr:not([data-filtered-by="${r}"])`)).length;else if(r.includes(" && ")){let d=r.split(" && ");l=Array.from(i.querySelectorAll("tbody tr:not(.filtered)")).filter(function(t){let c=!0;for(const[o,b]of Object.entries(d)){let h=b.split(" == ");(!t.querySelector(`td[data-label="${h[0]}"]`)||t.querySelector(`td[data-label="${h[0]}"]`).textContent!=`${h[1]}`)&&(c=!1)}return c}).length}else{let d=r.split(" == ");l=Array.from(i.querySelectorAll(`tbody tr.filtered--matched td[data-label="${d[0]}"], tbody tr[data-filtered-by="${d[0]}"] td[data-label="${d[0]}"]`)).filter(function(t){return t.textContent===d[1]}).length}m.hasAttribute("data-total")?m.setAttribute("data-total",l):m.innerHTML=l})},Z=function(i,e,n,a){n.addEventListener("update-page",m=>{let s=e.querySelector("[data-pagination]"),r=m.detail.page;if(s.value=r,e.dispatchEvent(new Event("paginate")),a.setAttribute("data-page",r),i.hasAttribute("data-show-history")){const l=new URL(location);l.searchParams.set("page",r),history.pushState({type:"pagination",form:e.getAttribute("id"),page:r},"",l)}if(!a.hasAttribute("data-no-scroll")){const d=i.getBoundingClientRect().top+window.pageYOffset+-250;window.scrollTo({top:d,behavior:"smooth"})}}),n.addEventListener("update-show",m=>{let s=e.querySelector("[data-show]"),r=m.detail.show;s.value=r,a.setAttribute("data-show",r),e.dispatchEvent(new Event("submit"))})},tt=(i,e)=>{if(!i)return!1;i.addEventListener("click",n=>{et(e)})},et=function(i){for(var e=[],n=i.getElementsByTagName("tr"),a=0;a<n.length;a++){for(var m=n[a].querySelectorAll("td,th"),s=[],r=0;r<m.length;r++)s.push(`"${m[r].textContent}"`);e.push(s.join(","))}e=e.join(`
5
5
  `);let l=new Blob([e],{type:"text/csv"});var d=document.createElement("a");d.download="export.csv";var t=window.URL.createObjectURL(l);d.href=t,d.style.display="none",document.body.appendChild(d),d.click(),document.body.removeChild(d)},P=function(i,e,n,a){if(R(i),G(i,a),$(i,e,a),a&&a.classList.contains("table--cta")){let s=function(){Array.from(i.querySelectorAll("tr")).forEach((r,l)=>{let d=r.offsetHeight;r.style.setProperty("--row-height",`${d}px`)})};const m=J(i);a.style.setProperty("--cta-width",`${m}rem`),new ResizeObserver(s).observe(i)}},z=function(i){let e=new Object;return Array.from(i.querySelectorAll("[data-filter]")).forEach((a,m)=>{if(!(a.type=="radio"&&!a.checked)&&!(a.type=="checkbox"&&!a.checked)&&a&&a.value){let s=a.getAttribute("data-filter"),r=a.value;a.hasAttribute("data-date-from")&&(r+="-date-from"),a.hasAttribute("data-date-to")&&(r+="-date-to"),e[s]||(e[s]=new Array),e[s].push(r)}}),e},I=function(i,e,n,a){return Y(this,void 0,void 0,function*(){let m=new FormData(e),s=new URLSearchParams(m).toString(),r=i.querySelectorAll("thead tr th:not(.expand-button-heading)"),l=i.querySelector("tbody"),d=e.getAttribute("data-ajax");a.classList.add("table--loading");let t=z(e);Array.from(e.querySelectorAll("[data-filter-count]")).forEach((b,h)=>{b.innerHTML="",b.parentNode.classList.remove("hover")});let c=0;Object.values(t).forEach((b,h)=>{typeof b=="object"&&Object.values(b).length?c+=Object.values(b).length:c++}),c&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach((b,h)=>{b.innerHTML+=`(${c})`,b.parentNode.classList.add("hover")}),window.controller||(window.controller=[]),window.controller[d]&&window.controller[d].abort(),window.controller[d]=new AbortController;const{signal:o}=controller[d];n.setAttribute("data-loading","true"),e.classList.add("processing");try{yield fetch(d+"?"+s,{signal:o,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then(b=>b.json()).then(b=>{let h=e.hasAttribute("data-schema")?e.getAttribute("data-schema"):"data",u=e.hasAttribute("data-schema-total")?e.getAttribute("data-schema-total"):"meta.total",y=e.hasAttribute("data-schema-page")?e.getAttribute("data-schema-page"):"meta.current_page",w=S(b,u,15),k=S(b,y,1),q=S(b,h),E=a.hasAttribute("data-empty-msg")?a.getAttribute("data-empty-msg"):"No results found";q?(l.innerHTML="",q.forEach((v,f)=>{var g=document.createElement("tr");r.forEach((p,x)=>{let A="";var L=document.createElement("td");if(L.setAttribute("data-label",p.innerText),p.getAttribute("data-output")){var H=p.getAttribute("data-output");A=H.replace(new RegExp(/{(.*?)}/,"gm"),function(M){return S(v,M.replace("{","").replace("}",""))})}if(p.hasAttribute("data-output-array")){var H=p.getAttribute("data-output");let F=S(v,H.replace("{","").replace("}",""));A="",F.forEach((j,it)=>{let W=p.getAttribute("data-output-array"),T="";if(p.hasAttribute("data-output-array-property")&&p.hasAttribute("data-output-array-transform")){const _=S(j,p.getAttribute("data-output-array-property")),U=JSON.parse(p.getAttribute("data-output-array-transform"))[_];T=W.replace(`{${p.getAttribute("data-output-array-property")}}`,U)}T=T.replace(new RegExp(/{(.*?)}/,"gm"),function(_){return S(j,_.replace("{","").replace("}",""))}),A+=T})}p.hasAttribute("data-transform")&&(A=JSON.parse(p.getAttribute("data-transform"))[A],!A&&p.hasAttribute("data-default")&&(A=p.getAttribute("data-default"))),L.innerHTML=A,g.appendChild(L)}),l.appendChild(g)}),N(i,e),a.setAttribute("data-total",parseInt(w)),a.setAttribute("data-page",parseInt(k)),P(i,e,n,a),Array.from(e.querySelectorAll("[data-ajax-query]")).forEach((v,f)=>{let g=S(b,v.getAttribute("data-ajax-query"),"");v.hasAttribute("data-total")?v.setAttribute("data-total",g):v.innerHTML=g}),parseInt(w)==0&&(l.innerHTML=`<tr><td colspan="100%"><span>${E}</span></td></tr>`),a.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:d,formData:s})):l.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',n.removeAttribute("data-loading"),e.classList.remove("processing")})}catch(b){console.log(b)}})},D=(i,e)=>{switch(i){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",{day:"numeric",month:"long",year:"2-digit"});case"capitalise":return e=X(e)}};class at extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,a=document.createElement("template");a.innerHTML=`
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */const d=function(t){t.querySelectorAll(":scope > details");const o=t.querySelectorAll(":scope > details, :scope > a");t.querySelectorAll(":scope > details > summary");let 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"),a.classList.add("tabs__links");let e=document.createElement("div");e.classList.add("tabs__links__wrapper"),e.prepend(a),t.prepend(e)}let i=0;o.forEach((e,r)=>{let n=document.createElement("button");if(e.matches("details")){let s=e.querySelector(":scope > summary"),l=s.classList.contains("disabled");s.classList.add("visually-hidden"),e.hasAttribute("id")&&n.setAttribute("data-id",`${e.getAttribute("id")}`),e.hasAttribute("open")&&n.setAttribute("aria-pressed",!0),n.innerHTML=`${s.innerText}`,n.classList.add("link"),n.setAttribute("data-index",i),e.setAttribute("tabindex","-1"),l&&n.classList.add("disabled"),i++}else e.matches("a")&&(n=e);n.classList.add("link"),a.appendChild(n)})},c=function(t){let o=t.querySelectorAll(":scope > details"),a=t.querySelectorAll(":scope > details > summary"),i=t.querySelectorAll(":scope .tabs__links > button");t.shadowRoot&&(i=t.shadowRoot.querySelectorAll(".tabs__links > button")),i.forEach(e=>{e.addEventListener("click",r=>{if(r.preventDefault(),e.classList.contains("disabled"))return!1;i.forEach(n=>{let s=n==e;n.setAttribute("aria-pressed",s)}),o.forEach((n,s)=>{let l=e.getAttribute("data-index")==s;l?n.setAttribute("open",l):n.removeAttribute("open")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:e.textContent})})}),a.forEach((e,r)=>{e.addEventListener("click",n=>{n.preventDefault(),i[r].click()})})},p=function(t){if(!t.querySelector(":scope > details"))return!1;let o=t.querySelectorAll(":scope > details"),a=t.shadowRoot.querySelectorAll(".tabs__links > button");location.hash&&t.shadowRoot.querySelector(`.tabs__links [data-id="${location.hash.replace("#","")}"]`)?(t.shadowRoot.querySelector(`[data-id="${location.hash.replace("#","")}"]`).setAttribute("aria-pressed",!0),t.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):t.querySelector("details[open]")||(o[0].setAttribute("open",!0),a[0].setAttribute("aria-pressed",!0))},b=function(t){d(t),c(t),p(t)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */(function(h){typeof define=="function"&&define.amd?define(h):h()})(function(){"use strict";const h=e=>(e.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&e.classList.add("ie"),null),L=e=>{const i=function(t){const a=document.querySelector(`label[for="${t.replace("#","")}"]`),o=document.querySelector(t+" summary"),r=document.querySelector(`dialog${t}`),s=document.querySelector(`detail${t}`);a instanceof HTMLElement?a.click():o instanceof HTMLElement?o.click():r instanceof HTMLElement?r.showModal():s instanceof HTMLElement&&s.addAttribute("open")};return location.hash&&i(location.hash),window.addEventListener("hashchange",function(){i(location.hash)},!1),addEventListener("popstate",t=>{if(t&&t.state&&t.state.type&&t.state.type=="pagination"){let a=document.querySelector(`#${t.state.form}`),o=document.querySelector(`#${t.state.form} [data-pagination]`);o?o.value=t.state.page:a.innerHTML+=`<input name="page" type="hidden" data-pagination="true" value="${t.state.page}" />`,a.dispatchEvent(new Event("submit"))}}),document.addEventListener("submit",t=>{if(t&&t.target instanceof HTMLElement&&t.target.matches("form")){let a=t.target;Array.from(a.querySelectorAll("[data-password-type]")).forEach((o,r)=>{o.setAttribute("type","password")}),(a.querySelector(":invalid")||a.querySelector('.pwd-checker[data-strength="1"]')||a.querySelector('.pwd-checker[data-strength="2"]'))&&(a.classList.add("was-validated"),t.preventDefault()),a.querySelector("iam-multiselect[data-is-required][data-error]")&&(a.classList.add("was-validated"),t.preventDefault())}}),document.addEventListener("keydown",t=>{t.key==="Escape"&&document.querySelector(".dialog--transactional[open], .dialog--acknowledgement[open]")&&(t.preventDefault(),t.stopPropagation())}),null};class S{constructor(i){document.body.classList.contains("youtubeLoaded")?i.addEventListener("click",function(t){for(var a=t.target;a&&a!=this;a=a.parentNode)if(a.matches("a")){t.preventDefault(),p(a);break}},!1):this.loadScripts(i,this.createEmbed)}loadScripts(i){return new Promise((t,a)=>{const o=new Image;o.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"),t(!0),r.onload=()=>{i.addEventListener("click",function(n){console.log("click"),n&&n.target instanceof HTMLElement&&n.target.closest("a")&&(n.preventDefault(),p(n.target.closest("a")))},!1)}},o.onerror=function(){a(!1)},o.src="https://youtube.com/favicon.ico"})}}const p=function(e){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var i=e.getAttribute("data-id"),t=e.getAttribute("id");if(typeof t>"u"||t==null){var a=String.fromCharCode(65+Math.floor(Math.random()*26));t=a+Date.now(),e.setAttribute("id",t)}function o(){window.player=new YT.Player(t,{height:"100%",width:"100%",videoId:i,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:r,onStateChange:n}})}o();function r(l){l.target.playVideo()}var s=!1;function n(l){if(l.data==YT.PlayerState.PLAYING&&!s){var c=document.getElementById(t);c.classList.add("player-ready"),s=!0}}},E=e=>(Array.from(e.querySelectorAll("dialog[open]")).forEach((i,t)=>{i.closest(".dialog__wrapper")||(i.removeAttribute("open"),i.showModal(),i.focus(),w(i))}),e.addEventListener("click",i=>{if(i.target.tagName=="IAM-ACTIONBAR")return!1;if(i&&i.target instanceof HTMLElement&&i.target.closest("[data-modal]")){const o=i.target.closest("[data-modal]"),r=o.hasAttribute("data-modal")?o.getAttribute("data-modal"):o.getAttribute("data-filter"),s=document.querySelector(`dialog#${r}`);w(s),s.showModal(),s.focus();let n=s.offsetWidth;s.setAttribute("style",`max-width: ${n}px;`),Array.from(s.querySelectorAll("[data-duplicate]")).forEach((l,c)=>{const d=l.getAttribute("data-duplicate"),u=document.getElementById(d);if(l.checked!=u.checked){l.checked=u.checked;let f=new Event("change");l.dispatchEvent(f)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:r})}if(i&&i.target instanceof HTMLElement&&i.target.closest("button.dialog__close")){const o=i.target.closest("dialog[open]");i.preventDefault(),o.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:o.getAttribute("id")})}if(i&&i.target instanceof HTMLElement&&i.target.closest('button[formmethod="dialog"]')){const o=i.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:o.getAttribute("id")})}if(i&&i.target instanceof HTMLElement&&i.target.closest("dialog[open]")){let o=i.target.closest("dialog[open]");var t=window.getComputedStyle(o);if(t.display==="contents"&&(o=o.parentNode.closest("dialog[open]")),!o.classList.contains("dialog--transactional")&&!o.classList.contains("dialog--acknowledgement")){const r=o.getBoundingClientRect();(i.clientX<r.left||i.clientX>r.right||i.clientY<r.top||i.clientY>r.bottom)&&(i.target.closest('input[type="radio"]')||o.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")}))}}if(i&&i.target instanceof HTMLElement&&i.target.closest(".dialog__wrapper > button")){i.stopPropagation();let o=i.target.closest(".dialog__wrapper > button"),r=o.parentNode,s="openPopover",n=r.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=n&&o.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((u,f)=>{u.removeAttribute("aria-expanded")}),n.hasAttribute("open"))n.close(),s="closePopover",n.removeAttribute("style"),o.removeAttribute("aria-expanded");else{n.show(),o.setAttribute("aria-expanded",!0);var a=o.getBoundingClientRect();let u=a.top,f=a.left;if(o.closest("iam-table")){let m=o.closest("iam-table").parentNode.getBoundingClientRect();u-=m.top,f-=m.left}n.classList.contains("dialog--fix")&&n.setAttribute("style",`position:fixed;top: ${u}px; left: ${f}px; margin: 3rem 0 0 0;`)}let l=n.getBoundingClientRect(),c=l.bottom-window.scrollY,d=window.innerHeight-window.scrollY;if(c>d){let u=n.hasAttribute("style")?n.getAttribute("style")+" ":"";n.setAttribute("style",u+"transform: translate(0, calc(-100% - 4rem))"),l=n.getBoundingClientRect(),l.top-window.scrollY<100&&n.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:s,id:o.textContent})}i&&i.target instanceof HTMLElement&&!i.target.closest("dialog[open]")&&!i.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((o,r)=>{o.removeAttribute("aria-expanded")}))}),null),w=e=>{let i=e.querySelector(".youtube-embed a");if(i&&p(i),e.classList.contains("dialog--multi")&&!e.querySelector(":scope > .steps")&&q(e),!e.querySelector(":scope .mh-lg")&&!e.classList.contains("dialog--multi")){e.innerHTML=`<div class="mh-lg">${e.innerHTML}</div>`;let t=e.querySelector(".mh-lg"),a=e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(a){let o=a.previousSibling;t.before(a),o&&a.before(o)}}e.querySelector(":scope > button:first-child")||e.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},q=e=>{let i="",t=Array.from(e.querySelectorAll("fieldset[data-title]")),a=e.querySelector("form");t.forEach((s,n)=>{i+=`<button data-title="${s.getAttribute("data-title")}" type="button" class="${n==0?"active":""}" tabindex="-1">${s.getAttribute("data-title")}</button>`;const l=document.createElement("div");if(l.classList.add("btn--wrapper"),s.appendChild(l),n!=0&&(l.innerHTML+=`<button data-title="${t[n-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),n!=t.length-1&&(l.innerHTML+=`<button data-title="${t[n+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),n==t.length-1)if(a&&a.querySelector(':scope > button[type="submit"]')){let c=a.querySelector(':scope > button[type="submit"]');c.classList.add("mb-0"),l.insertAdjacentElement("beforeend",c)}else l.innerHTML+=`<button data-title="${t[n].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`}),e.insertAdjacentHTML("afterbegin",`<div class="steps bg-primary">${i}</div>`);let o=Array.from(e.querySelectorAll("fieldset.was-validated"));for(let s=0;s<o.length;s++){let n=o[s],l=n.getAttribute("data-title");if(n.querySelector(".is-invalid")){Array.from(e.querySelectorAll(`[data-title="${l}"]`)).forEach((c,d)=>{c.classList.add("active")});break}else Array.from(e.querySelectorAll(`[data-title="${l}"]`)).forEach((c,d)=>{c.classList.add("valid")})}e.addEventListener("invalid",function(){return function(s){s.preventDefault()}}(),!0);function r(s){const n=e.querySelector("fieldset.active")?e.querySelector("fieldset.active"):e.querySelector("fieldset[data-title]"),l=n.getAttribute("data-title");let c=!0;if(n.classList.add("was-validated"),Array.from(n.querySelectorAll("input")).forEach((f,m)=>{f.checkValidity()||(c=!1)}),c?Array.from(e.querySelectorAll(`[data-title="${l}"]`)).forEach((f,m)=>{f.classList.add("valid")}):Array.from(e.querySelectorAll(`[data-title="${l}"]`)).forEach((f,m)=>{f.classList.remove("valid")}),c||!s.hasAttribute("data-next")){const f=e.querySelector(`fieldset[data-title="${s.getAttribute("data-title")}"]`),m=e.querySelector(`.steps button[data-title="${s.getAttribute("data-title")}"]`);Array.from(e.querySelectorAll("button")).forEach((A,Y)=>{A.classList.remove("active")}),Array.from(e.querySelectorAll("fieldset")).forEach((A,Y)=>{A.classList.remove("active")}),m.classList.add("active"),f.classList.add("active")}let d=Array.from(e.querySelectorAll("fieldset")).length,u=Array.from(e.querySelectorAll("fieldset.valid")).length;e.style.setProperty("--progress",`${u/(d-1)*100}%`)}e.addEventListener("keydown",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest("button")){const n=s.target.closest("button");s.keyCode==13&&n.getAttribute("type")!="submit"&&(s.preventDefault(),r(n))}s&&s.target instanceof HTMLElement&&s.target.closest("input")&&(s.target.closest("input").classList.remove("is-invalid"),s.keyCode==13&&s.preventDefault())}),e.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 n=s.target.closest("button[data-title]");r(n)}return null})};function x(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",e=>{const i=e.target.closest("[open] summary");if(i)window.dataLayer.push({event:"closeDetails",detailsTitle:i.textContent||""});else{const t=e.target.closest("summary"),a=e.target.closest("a"),o=e.target.closest("button");t&&window.dataLayer.push({event:"openDetails",detailsTitle:t.textContent||""}),a&&window.dataLayer.push({event:"linkClicked",linkText:a.hasAttribute("title")?a.getAttribute("title")||"":a.textContent||"",class:a.hasAttribute("class")&&a.getAttribute("class")||"",href:a.getAttribute("href")||""}),o&&window.dataLayer.push({event:"buttonClicked",buttonText:o.textContent||"",class:o.hasAttribute("class")&&o.getAttribute("class")||""})}})}function k(e){var i=new TextEncoder("utf-8").encode(e);return crypto.subtle.digest("SHA-1",i).then(function(t){for(var a=[],o=new DataView(t),r=0;r<o.byteLength;r+=4){var s=o.getUint32(r),n=s.toString(16),l="00000000",c=(l+n).slice(-l.length);a.push(c)}return a.join("")})}const T=(e,i)=>{k(e).then(function(t){const a=new XMLHttpRequest;a.addEventListener("load",function(){const o=this.responseText.split(`
5
5
  `),r=t.slice(5).toUpperCase();var s=!1;for(let l in o)if(o[l].substring(0,35)==r){s=!0;break}const n=new CustomEvent("hibpCheck",{detail:s});i.dispatchEvent(n)}),a.open("GET","https://api.pwnedpasswords.com/range/"+t.substr(0,5)),a.send()})},M=e=>{function i(){if(Array.from(document.querySelectorAll("input[maxlength]")).forEach((t,a)=>{t.parentElement,$(t)}),Array.from(document.querySelectorAll("label input")).forEach((t,a)=>{!t.closest("label").querySelector(".optional-text")&&!t.hasAttribute("required")&&(t.parentNode.tagName.toLowerCase()=="span"?t.parentElement.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'):t.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'))}),document.querySelector('input[type="date"]')){let a=function(o){const r=o.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),n=String(o.getDate()).padStart(2,"0");return`${r}-${s}-${n}`};const t=new Date;Array.from(document.querySelectorAll('input[type="date"]')).forEach((o,r)=>{let s=t;if(o.hasAttribute("data-start")&&(s.setDate(s.getDate()+parseInt(o.getAttribute("data-start"))),o.setAttribute("min",a(s))),o.hasAttribute("data-period")){let n=parseInt(o.getAttribute("data-period")),l=new Date;l.setDate(s.getDate()+n),o.setAttribute("max",a(l))}if(o.hasAttribute("data-allowed-days")){let n=JSON.parse(`[${o.getAttribute("data-allowed-days")}]`);o.addEventListener("input",function(l){var c=new Date(this.value).getUTCDay();n.includes(c)?o.setCustomValidity(""):o.setCustomValidity("That day of the week is not allowed")})}})}}document.readyState==="complete"&&i(),document.onreadystatechange=()=>{document.readyState==="complete"&&i()},e.addEventListener("input",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("input,textarea,select")){const a=t.target.closest("input,textarea,select");a.parentElement,a.hasAttribute("type")&&a.getAttribute("type")=="color"&&(a.nextElementSibling.value=a.value),a.hasAttribute("maxlength")&&a.nextElementSibling&&a.nextElementSibling.setAttribute("data-count",a.value.length),a.hasAttribute("data-strength-checker")&&y(a)}}),e.addEventListener("change",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("select")){const a=t.target.closest("select");if(a.hasAttribute("data-change-type")&&a.hasAttribute("data-input")){const o=document.getElementById(a.getAttribute("data-input")),r=a.value;v(o,r)}}if(t&&t.target instanceof HTMLElement&&t.target.closest('dialog [type="radio"]')){const a=t.target.closest("dialog");t.target.closest('dialog [type="radio"]'),Array.from(a.querySelectorAll('[type="radio"][autofocus]')).forEach((o,r)=>{o.removeAttribute("autofocus")}),Array.from(a.querySelectorAll('[type="radio"]:checked')).forEach((o,r)=>{o.setAttribute("autofocus",!0)})}}),e.addEventListener("click",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-change-type][data-input]:not(select)")){const a=t.target.closest("[data-change-type]"),o=document.getElementById(a.getAttribute("data-input")),r=a.getAttribute("data-change-type");if(a.setAttribute("data-change-type",o.getAttribute("type")),v(o,r),a.hasAttribute("data-alt-class")){const s=a.getAttribute("data-alt-class");a.setAttribute("data-alt-class",a.getAttribute("class")),a.setAttribute("class",s)}}})},$=e=>{let i=e.parentElement,t=e.getAttribute("maxlength");i.style.setProperty("--maxlength",t);let a=e.nextElementSibling;(!a||a&&a.classList.contains("invalid-feedback"))&&(a=document.createElement("span"),i.insertBefore(a,e.nextSibling)),a.setAttribute("data-count",e.value.length)},v=(e,i)=>{e.hasAttribute("type")&&e.getAttribute("type")=="password"&&e.setAttribute("data-password-type",!0),e.setAttribute("type",i)},y=(e,i="no")=>{const t=document.getElementById(e.getAttribute("data-strength-checker")),a=e.value,o=e.hasAttribute("minlength")?e.getAttribute("minlength"):12;let r=1,s=["Very weak","Weak","Average","Strong","Very strong"],n="";if(a.match(/(?=.*[0-9])/)&&(r+=1),a.match(/(?=.*[!,%,&,#,$,^,*,?,_,~,<,>,])/)&&(r+=1),a.match(/(?=.*[a-z])/)&&(r+=1),a.match(/(?=.*[A-Z])/)&&(r+=1),a.length<o&&(r=1,n=`(must be at least ${o} characters.)`),r>=3&&i=="no"){let l=function(c,d){c.detail?y(d,"danger"):y(d,"success"),d.removeEventListener("hibpCheck",l)};T(a,e),e.addEventListener("hibpCheck",function(c){l(c,e)})}else r>=3&&i=="danger"&&(r=3,n="(this password is very common)");t&&(r<=3?t.classList.add("invalid-feedback"):t.classList.remove("invalid-feedback"),t.setAttribute("data-strength",r),t.innerHTML=`Password strength: ${s[r-1]} ${n}`)},C=e=>{Array.from(e.querySelectorAll("details")).forEach((i,t)=>{i.addEventListener("mouseenter",function(a){window.matchMedia("(min-width: 62em)").matches&&i.setAttribute("open","true")},!1),i.addEventListener("mouseleave",function(a){window.matchMedia("(min-width: 62em)").matches&&i.removeAttribute("open")},!1)}),"IntersectionObserver"in window&&new IntersectionObserver(([t])=>t.target.classList.toggle("is-stuck",t.intersectionRatio<1),{threshold:[1]}).observe(e)};function _(e){var i;const t=e.querySelector(".testimonial__images"),a=t.querySelectorAll("img").length;if(a==1)return!1;e.classList.add("testimonial--multi");const o=function(r){const s=e.querySelector(".btn-next"),n=e.querySelector(".btn-prev");s.setAttribute("data-go",r+1),n.setAttribute("data-go",r-1),s.removeAttribute("disabled"),n.removeAttribute("disabled"),r==1?n.setAttribute("disabled",!0):r==a&&s.setAttribute("disabled",!0)};t.addEventListener("scroll",function(r){clearTimeout(i),i=setTimeout(function(){let s=t.scrollWidth,n=t.scrollHeight,l=t.scrollLeft,c=t.scrollTop,d=Math.round(l/s*a)+1;l==0&&c!=0&&(d=Math.round(c/n*a)+1),e.setAttribute("data-show",d),o(d)},300)},!1),e.addEventListener("click",function(r){for(var s=r.target;s&&s!=this;s=s.parentNode)if(s.matches("[data-go]")){let n=parseInt(s.getAttribute("data-go")),l=0,c=0,d=t.scrollWidth,u=t.scrollHeight;d>u?c=Math.floor(d*((n-1)/a)):l=Math.floor(u*((n-1)/a)),t.scroll({top:l,left:c,behavior:"smooth"});break}},!1)}function H(e,i){var t;let a=e.querySelector(".carousel__inner"),o=e.querySelector(".carousel__controls"),r=i.querySelectorAll(".col").length;a.addEventListener("scroll",function(s){clearTimeout(t),t=setTimeout(function(){let n=a.clientWidth,l=a.scrollWidth,c=a.scrollLeft,d=Math.round(c/l*r)+1,u=i.querySelector(".col:last-child").offsetLeft+50;a.scrollLeft+n>=u&&(d=r),Array.from(e.querySelectorAll(".carousel__controls button")).forEach((f,m)=>{f.removeAttribute("aria-current")}),e.querySelector(".control-"+d).setAttribute("aria-current",!0),d==1?e.querySelector(".btn-prev").setAttribute("disabled","disabled"):e.querySelector(".btn-prev").removeAttribute("disabled"),d==r?e.querySelector(".btn-next").setAttribute("disabled","disabled"):e.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),o.addEventListener("click",function(s){for(var n=s.target;n&&n!=this;n=n.parentNode)if(typeof n.matches=="function"&&n.matches("button")){s.preventDefault(),Array.from(o.querySelectorAll("button")).forEach((c,d)=>{c.removeAttribute("aria-current")}),n.setAttribute("aria-current",!0);const l=i.querySelector(`*:nth-child(${n.getAttribute("data-slide")})`);a.scroll({top:0,left:l.offsetLeft,behavior:"smooth"});break}},!1),e.addEventListener("click",function(s){for(var n=s.target;n&&n!=this;n=n.parentNode)if(typeof n.matches=="function"&&n.matches(".btn-next, .btn-prev")){s.preventDefault();let l=n.classList.contains("btn-prev")?a.scrollLeft-a.clientWidth:a.scrollLeft+a.clientWidth;a.scroll({top:0,left:l,behavior:"smooth"});break}},!1)}function D(e){e.addEventListener("change",function(i){var t=parseInt(e.querySelector("[data-min] select,[data-min] input").value),a=parseInt(e.querySelector("[data-max] select,[data-max] input").value);Array.from(e.querySelectorAll("[data-min] input")).forEach((o,r)=>{o.setAttribute("max",a)}),Array.from(e.querySelectorAll("[data-max] input")).forEach((o,r)=>{o.setAttribute("min",t)}),Array.from(e.querySelectorAll("[data-min] select option")).forEach((o,r)=>{parseInt(o.getAttribute("value"))>a?o.classList.add("d-none"):o.classList.remove("d-none")}),Array.from(e.querySelectorAll("[data-max] select option")).forEach((o,r)=>{parseInt(o.getAttribute("value"))<t?o.classList.add("d-none"):o.classList.remove("d-none")})},!1)}function I(e){e.addEventListener("change",function(i){if(e.matches("[data-value-if]")){const t=e.getAttribute("data-redirect"),a=e.getAttribute("data-value-if");e.value==a&&(document.location.href=t)}else typeof e.value<"u"&&(document.location.href=e.value)},!1)}function B(e){const t=e.querySelector(".row").cloneNode(!0),a=e.querySelector("[data-add]");e.addEventListener("click",function(o){for(var r=o.target;r&&r!=this;r=r.parentNode){if(r.matches("[data-add]")){const s=t.cloneNode(!0);e.insertBefore(s,r),a.matches("[data-maxfiles]")&&Array.from(e.querySelectorAll(":scope > .row")).length>=a.dataset.maxfiles&&a.setAttribute("disabled","disabled");break}if(r.matches("[data-delete]")){r.closest(".row").remove(),a.matches("[data-maxfiles]")&&Array.from(e.querySelectorAll(":scope > .row")).length<a.dataset.maxfiles&&a.removeAttribute("disabled");break}}},!1)}function N(e){Array.from(e.querySelectorAll("[data-input-range]")).forEach((i,t)=>{D(i)}),Array.from(e.querySelectorAll("[data-redirect]")).forEach((i,t)=>{I(i)}),Array.from(e.querySelectorAll(".multiple-file-uploads")).forEach((i,t)=>{B(i)}),e.addEventListener("change",function(i){for(var t=i.target;t&&t!=this;t=t.parentNode)if(t.matches('[type="file"][data-filesize]')&&t.files&&t.files[0]){const a=t.dataset.filesize;t.files[0].size>a&&(t.value="",alert("File too large"));break}},!1),e.addEventListener("change",function(i){Array.from(e.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((t,a)=>{let o=t.closest("[data-group]")?t.closest("[data-group]"):e,r=t.dataset.activeif,s=t.dataset.equals;o.querySelector(`select[data-id="${r}"],input[data-id="${r}"]`).value==s?t.removeAttribute("disabled"):(t.setAttribute("disabled","disabled"),t.value="")}),Array.from(e.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((t,a)=>{let o=t.closest("[data-group]")?t.closest("[data-group]"):e,r=t.dataset.activeif,s=t.dataset.equals;o.querySelector(`select[data-id="${r}"],input[data-id="${r}"]`).value==s?t.classList.remove("d-none"):t.classList.add("d-none")})},!1)}function P(e){if(e.hasAttribute("data-type")&&e.getAttribute("data-type")=="toast"){let t=document.querySelector(".notification__holder");t||(t=document.createElement("div"),t.classList.add("notification__holder"),t.classList.add("container"),document.querySelector("body").appendChild(t)),e.closest(".notification__holder")||t.appendChild(e)}if(e.setAttribute("role","alert"),e.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(t.preventDefault(),g(e))},!1),e.hasAttribute("data-timeout")){let t=e.getAttribute("data-timeout");var i=new R(function(){g(e)},t);e.addEventListener("mouseenter",a=>{i.pause()}),e.addEventListener("mouseleave",a=>{i.resume()})}}function R(e,i){var t,a,o=i;this.pause=function(){window.clearTimeout(t),o-=new Date-a},this.resume=function(){a=new Date,window.clearTimeout(t),t=window.setTimeout(e,o)},this.resume()}const g=function(e){e.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class V extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,a=`@import "${i}/css/components/notification.css";`,o=`@import "${i}/css/components/notification.global.css";`,r=this.querySelectorAll("a,button");Array.from(r).forEach((n,l)=>{n.setAttribute("slot","btns"),n.classList.add("link")}),(r.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");const s=document.createElement("template");s.innerHTML=`
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */(function(j){typeof define=="function"&&define.amd?define(j):j()})(function(){"use strict";var j=r=>(r.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&r.classList.add("ie"),null),ct=r=>{var t=function(a){var i=document.querySelector('label[for="'.concat(a.replace("#",""),'"]')),c=document.querySelector(a+" summary"),o=document.querySelector("dialog".concat(a)),n=document.querySelector("detail".concat(a));i instanceof HTMLElement?i.click():c instanceof HTMLElement?c.click():o instanceof HTMLElement?o.showModal():n instanceof HTMLElement&&n.addAttribute("open")};return location.hash&&t(location.hash),window.addEventListener("hashchange",function(){t(location.hash)},!1),addEventListener("popstate",e=>{if(e&&e.state&&e.state.type&&e.state.type=="pagination"){var a=document.querySelector("#".concat(e.state.form)),i=document.querySelector("#".concat(e.state.form," [data-pagination]"));i?i.value=e.state.page:a.innerHTML+='<input name="page" type="hidden" data-pagination="true" value="'.concat(e.state.page,'" />'),a.dispatchEvent(new Event("submit"))}}),document.addEventListener("submit",e=>{if(e&&e.target instanceof HTMLElement&&e.target.matches("form")){var a=e.target;Array.from(a.querySelectorAll("[data-password-type]")).forEach((i,c)=>{i.setAttribute("type","password")}),(a.querySelector(":invalid")||a.querySelector('.pwd-checker[data-strength="1"]')||a.querySelector('.pwd-checker[data-strength="2"]'))&&(a.classList.add("was-validated"),e.preventDefault()),a.querySelector("iam-multiselect[data-is-required][data-error]")&&(a.classList.add("was-validated"),e.preventDefault())}}),document.addEventListener("keydown",e=>{e.key==="Escape"&&document.querySelector(".dialog--transactional[open], .dialog--acknowledgement[open]")&&(e.preventDefault(),e.stopPropagation())}),null},dt=function(t){return typeof t!="string"?!1:!isNaN(t)&&!isNaN(parseFloat(t))},lt=(r,t)=>String(r).padStart(t,"0"),ut=r=>r.charAt(0).toUpperCase()+r.slice(1),T=(r,t,e)=>t.split(/[\.\[\]\'\"]/).filter(a=>a).reduce((a,i)=>a?a[i]:e,r);class ht{constructor(t){document.body.classList.contains("youtubeLoaded")?t.addEventListener("click",function(e){for(var a=e.target;a&&a!=this;a=a.parentNode)if(a.matches("a")){e.preventDefault(),U(a);break}},!1):this.loadScripts(t,this.createEmbed)}loadScripts(t){return new Promise((e,a)=>{var i=new Image;i.onload=function(){var c=document.createElement("script");c.src="https://www.youtube.com/iframe_api";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(c,o),document.body.classList.add("youtubeLoaded"),e(!0),c.onload=()=>{t.addEventListener("click",function(n){console.log("click"),n&&n.target instanceof HTMLElement&&n.target.closest("a")&&(n.preventDefault(),U(n.target.closest("a")))},!1)}},i.onerror=function(){a(!1)},i.src="https://youtube.com/favicon.ico"})}}var U=function(t){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var e=t.getAttribute("data-id"),a=t.getAttribute("id");if(typeof a>"u"||a==null){var i=String.fromCharCode(65+Math.floor(Math.random()*26));a=i+Date.now(),t.setAttribute("id",a)}function c(){window.player=new YT.Player(a,{height:"100%",width:"100%",videoId:e,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:o,onStateChange:d}})}c();function o(s){s.target.playVideo()}var n=!1;function d(s){if(s.data==YT.PlayerState.PLAYING&&!n){var l=document.getElementById(a);l.classList.add("player-ready"),n=!0}}},ft=r=>(Array.from(r.querySelectorAll("dialog[open]")).forEach((t,e)=>{var a=t.closest(".dialog__wrapper");a||(t.removeAttribute("open"),t.showModal(),t.focus(),J(t))}),r.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]"),a=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),i=document.querySelector("dialog#".concat(a));J(i),i.showModal(),i.focus();var c=i.offsetWidth;i.setAttribute("style","max-width: ".concat(c,"px;")),Array.from(i.querySelectorAll("[data-duplicate]")).forEach((y,C)=>{var S=y.getAttribute("data-duplicate"),k=document.getElementById(S);if(y.checked!=k.checked){y.checked=k.checked;var E=new Event("change");y.dispatchEvent(E)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:a})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var o=t.target.closest("dialog[open]");t.preventDefault(),o.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((y,C)=>{y.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('button[formmethod="dialog"]')){var n=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((y,C)=>{y.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("dialog[open]")){var d=t.target.closest("dialog[open]"),s=window.getComputedStyle(d);if(s.display==="contents"&&(d=d.parentNode.closest("dialog[open]")),!d.classList.contains("dialog--transactional")&&!d.classList.contains("dialog--acknowledgement")){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 u=t.target.closest(".dialog__wrapper > button"),b=u.parentNode,f="openPopover",h=b.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=h&&u.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((y,C)=>{y.removeAttribute("aria-expanded")}),h.hasAttribute("open"))h.close(),f="closePopover",h.removeAttribute("style"),u.removeAttribute("aria-expanded");else{h.show(),u.setAttribute("aria-expanded",!0);var m=u.getBoundingClientRect(),p=m.top,v=m.left;if(u.closest("iam-table")){var w=u.closest("iam-table").parentNode.getBoundingClientRect();p-=w.top,v-=w.left}h.classList.contains("dialog--fix")&&h.setAttribute("style","position:fixed;top: ".concat(p,"px; left: ").concat(v,"px; margin: 3rem 0 0 0;"))}var g=h.getBoundingClientRect(),A=g.bottom-window.scrollY,L=window.innerHeight-window.scrollY;if(A>L){var q=h.hasAttribute("style")?h.getAttribute("style")+" ":"";h.setAttribute("style",q+"transform: translate(0, calc(-100% - 4rem))"),g=h.getBoundingClientRect();var x=g.top-window.scrollY;x<100&&h.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:f,id:u.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((y,C)=>{y.removeAttribute("aria-expanded")}))}),null),J=r=>{var t=r.querySelector(".youtube-embed a");if(t&&U(t),r.classList.contains("dialog--multi")&&!r.querySelector(":scope > .steps")&&bt(r),!r.querySelector(":scope .mh-lg")&&!r.classList.contains("dialog--multi")){r.innerHTML='<div class="mh-lg">'.concat(r.innerHTML,"</div>");var e=r.querySelector(".mh-lg"),a=r.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(a){var i=a.previousSibling;e.before(a),i&&a.before(i)}}r.querySelector(":scope > button:first-child")||r.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},bt=r=>{var t="",e=Array.from(r.querySelectorAll("fieldset[data-title]")),a=r.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 u=document.createElement("div");if(u.classList.add("btn--wrapper"),s.appendChild(u),l!=0&&(u.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&&(u.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(a&&a.querySelector(':scope > button[type="submit"]')){var b=a.querySelector(':scope > button[type="submit"]');b.classList.add("mb-0"),u.insertAdjacentElement("beforeend",b)}else u.innerHTML+='<button data-title="'.concat(e[l].getAttribute("data-title"),'" class="btn btn-primary mb-0" data-next type="submit">Submit</button>')}),r.insertAdjacentHTML("afterbegin",'<div class="steps bg-primary">'.concat(t,"</div>"));for(var i=Array.from(r.querySelectorAll("fieldset.was-validated")),c=0;c<i.length;c++){var o=i[c],n=o.getAttribute("data-title");if(o.querySelector(".is-invalid")){Array.from(r.querySelectorAll('[data-title="'.concat(n,'"]'))).forEach((s,l)=>{s.classList.add("active")});break}else Array.from(r.querySelectorAll('[data-title="'.concat(n,'"]'))).forEach((s,l)=>{s.classList.add("valid")})}r.addEventListener("invalid",function(){return function(s){s.preventDefault()}}(),!0);function d(s){var l=r.querySelector("fieldset.active")?r.querySelector("fieldset.active"):r.querySelector("fieldset[data-title]"),u=l.getAttribute("data-title"),b=!0;if(l.classList.add("was-validated"),Array.from(l.querySelectorAll("input")).forEach((v,w)=>{v.checkValidity()||(b=!1)}),b?Array.from(r.querySelectorAll('[data-title="'.concat(u,'"]'))).forEach((v,w)=>{v.classList.add("valid")}):Array.from(r.querySelectorAll('[data-title="'.concat(u,'"]'))).forEach((v,w)=>{v.classList.remove("valid")}),b||!s.hasAttribute("data-next")){var f=r.querySelector('fieldset[data-title="'.concat(s.getAttribute("data-title"),'"]')),h=r.querySelector('.steps button[data-title="'.concat(s.getAttribute("data-title"),'"]'));Array.from(r.querySelectorAll("button")).forEach((v,w)=>{v.classList.remove("active")}),Array.from(r.querySelectorAll("fieldset")).forEach((v,w)=>{v.classList.remove("active")}),h.classList.add("active"),f.classList.add("active")}var m=Array.from(r.querySelectorAll("fieldset")).length,p=Array.from(r.querySelectorAll("fieldset.valid")).length;r.style.setProperty("--progress","".concat(p/(m-1)*100,"%"))}r.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 u=s.target.closest("input");u.classList.remove("is-invalid"),s.keyCode==13&&s.preventDefault()}}),r.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 u=s.target.closest("button[data-title]");d(u)}return null})};function mt(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",r=>{var t=r.target.closest("[open] summary");if(t)window.dataLayer.push({event:"closeDetails",detailsTitle:t.textContent||""});else{var e=r.target.closest("summary"),a=r.target.closest("a"),i=r.target.closest("button");e&&window.dataLayer.push({event:"openDetails",detailsTitle:e.textContent||""}),a&&window.dataLayer.push({event:"linkClicked",linkText:a.hasAttribute("title")?a.getAttribute("title")||"":a.textContent||"",class:a.hasAttribute("class")&&a.getAttribute("class")||"",href:a.getAttribute("href")||""}),i&&window.dataLayer.push({event:"buttonClicked",buttonText:i.textContent||"",class:i.hasAttribute("class")&&i.getAttribute("class")||""})}})}function vt(r){var t=new TextEncoder("utf-8").encode(r);return crypto.subtle.digest("SHA-1",t).then(function(e){for(var a=[],i=new DataView(e),c=0;c<i.byteLength;c+=4){var o=i.getUint32(c),n=o.toString(16),d="00000000",s=(d+n).slice(-d.length);a.push(s)}return a.join("")})}var pt=(r,t)=>{vt(r).then(function(e){var a=new XMLHttpRequest;a.addEventListener("load",function(){var i=this.responseText.split(`
5
5
  `),c=e.slice(5).toUpperCase(),o=!1;for(var n in i)if(i[n].substring(0,35)==c){o=!0;break}var d=new CustomEvent("hibpCheck",{detail:o});t.dispatchEvent(d)}),a.open("GET","https://api.pwnedpasswords.com/range/"+e.substr(0,5)),a.send()})},gt=r=>{function t(){if(Array.from(document.querySelectorAll("input[maxlength]")).forEach((a,i)=>{a.parentElement,yt(a)}),Array.from(document.querySelectorAll("label input")).forEach((a,i)=>{!a.closest("label").querySelector(".optional-text")&&!a.hasAttribute("required")&&(a.parentNode.tagName.toLowerCase()=="span"?a.parentElement.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'):a.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'))}),document.querySelector('input[type="date"]')){let a=function(i){var c=i.getFullYear(),o=String(i.getMonth()+1).padStart(2,"0"),n=String(i.getDate()).padStart(2,"0");return"".concat(c,"-").concat(o,"-").concat(n)};var e=new Date;Array.from(document.querySelectorAll('input[type="date"]')).forEach((i,c)=>{var o=e;if(i.hasAttribute("data-start")&&(o.setDate(o.getDate()+parseInt(i.getAttribute("data-start"))),i.setAttribute("min",a(o))),i.hasAttribute("data-period")){var n=parseInt(i.getAttribute("data-period")),d=new Date;d.setDate(o.getDate()+n),i.setAttribute("max",a(d))}if(i.hasAttribute("data-allowed-days")){var s=JSON.parse("[".concat(i.getAttribute("data-allowed-days"),"]"));i.addEventListener("input",function(l){var u=new Date(this.value).getUTCDay();s.includes(u)?i.setCustomValidity(""):i.setCustomValidity("That day of the week is not allowed")})}})}}document.readyState==="complete"&&t(),document.onreadystatechange=()=>{document.readyState==="complete"&&t()},r.addEventListener("input",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("input,textarea,select")){var a=e.target.closest("input,textarea,select");a.parentElement,a.hasAttribute("type")&&a.getAttribute("type")=="color"&&(a.nextElementSibling.value=a.value),a.hasAttribute("maxlength")&&a.nextElementSibling&&a.nextElementSibling.setAttribute("data-count",a.value.length),a.hasAttribute("data-strength-checker")&&At(a)}}),r.addEventListener("change",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("select")){var a=e.target.closest("select");if(a.hasAttribute("data-change-type")&&a.hasAttribute("data-input")){var i=document.getElementById(a.getAttribute("data-input")),c=a.value;Q(i,c)}}if(e&&e.target instanceof HTMLElement&&e.target.closest('dialog [type="radio"]')){var o=e.target.closest("dialog");e.target.closest('dialog [type="radio"]'),Array.from(o.querySelectorAll('[type="radio"][autofocus]')).forEach((n,d)=>{n.removeAttribute("autofocus")}),Array.from(o.querySelectorAll('[type="radio"]:checked')).forEach((n,d)=>{n.setAttribute("autofocus",!0)})}}),r.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-change-type][data-input]:not(select)")){var a=e.target.closest("[data-change-type]"),i=document.getElementById(a.getAttribute("data-input")),c=a.getAttribute("data-change-type");if(a.setAttribute("data-change-type",i.getAttribute("type")),Q(i,c),a.hasAttribute("data-alt-class")){var o=a.getAttribute("data-alt-class");a.setAttribute("data-alt-class",a.getAttribute("class")),a.setAttribute("class",o)}}})},yt=r=>{var t=r.parentElement,e=r.getAttribute("maxlength");t.style.setProperty("--maxlength",e);var a=r.nextElementSibling;(!a||a&&a.classList.contains("invalid-feedback"))&&(a=document.createElement("span"),t.insertBefore(a,r.nextSibling)),a.setAttribute("data-count",r.value.length)},Q=(r,t)=>{r.hasAttribute("type")&&r.getAttribute("type")=="password"&&r.setAttribute("data-password-type",!0),r.setAttribute("type",t)},At=function r(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"no",a=document.getElementById(t.getAttribute("data-strength-checker")),i=t.value,c=t.hasAttribute("minlength")?t.getAttribute("minlength"):12,o=1,n=["Very weak","Weak","Average","Strong","Very strong"],d="";if(i.match(/(?=.*[0-9])/)&&(o+=1),i.match(/(?=.*[!,%,&,#,$,^,*,?,_,~,<,>,])/)&&(o+=1),i.match(/(?=.*[a-z])/)&&(o+=1),i.match(/(?=.*[A-Z])/)&&(o+=1),i.length<c&&(o=1,d="(must be at least ".concat(c," characters.)")),o>=3&&e=="no"){let s=function(l,u){l.detail?r(u,"danger"):r(u,"success"),u.removeEventListener("hibpCheck",s)};pt(i,t),t.addEventListener("hibpCheck",function(l){s(l,t)})}else o>=3&&e=="danger"&&(o=3,d="(this password is very common)");a&&(o<=3?a.classList.add("invalid-feedback"):a.classList.remove("invalid-feedback"),a.setAttribute("data-strength",o),a.innerHTML="Password strength: ".concat(n[o-1]," ").concat(d))},wt=r=>{if(Array.from(r.querySelectorAll("details")).forEach((e,a)=>{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[a]=e;return a.target.classList.toggle("is-stuck",a.intersectionRatio<1)},{threshold:[1]});t.observe(r)}};function Lt(r){var t,e=r.querySelector(".testimonial__images"),a=e.querySelectorAll("img").length;if(a==1)return!1;r.classList.add("testimonial--multi");var i=function(o){var n=r.querySelector(".btn-next"),d=r.querySelector(".btn-prev");n.setAttribute("data-go",o+1),d.setAttribute("data-go",o-1),n.removeAttribute("disabled"),d.removeAttribute("disabled"),o==1?d.setAttribute("disabled",!0):o==a&&n.setAttribute("disabled",!0)};e.addEventListener("scroll",function(c){clearTimeout(t),t=setTimeout(function(){var o=e.scrollWidth,n=e.scrollHeight,d=e.scrollLeft,s=e.scrollTop,l=Math.round(d/o*a)+1;d==0&&s!=0&&(l=Math.round(s/n*a)+1),r.setAttribute("data-show",l),i(l)},300)},!1),r.addEventListener("click",function(c){for(var o=c.target;o&&o!=this;o=o.parentNode)if(o.matches("[data-go]")){var n=parseInt(o.getAttribute("data-go")),d=0,s=0,l=e.scrollWidth,u=e.scrollHeight;l>u?s=Math.floor(l*((n-1)/a)):d=Math.floor(u*((n-1)/a)),e.scroll({top:d,left:s,behavior:"smooth"});break}},!1)}function St(r,t){var e,a=r.querySelector(".carousel__inner"),i=r.querySelector(".carousel__controls"),c=t.querySelectorAll(".col").length;a.addEventListener("scroll",function(o){clearTimeout(e),e=setTimeout(function(){var n=a.clientWidth,d=a.scrollWidth,s=a.scrollLeft,l=Math.round(s/d*c)+1,u=t.querySelector(".col:last-child").offsetLeft+50;a.scrollLeft+n>=u&&(l=c),Array.from(r.querySelectorAll(".carousel__controls button")).forEach((b,f)=>{b.removeAttribute("aria-current")}),r.querySelector(".control-"+l).setAttribute("aria-current",!0),l==1?r.querySelector(".btn-prev").setAttribute("disabled","disabled"):r.querySelector(".btn-prev").removeAttribute("disabled"),l==c?r.querySelector(".btn-next").setAttribute("disabled","disabled"):r.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),i.addEventListener("click",function(o){for(var n=o.target;n&&n!=this;n=n.parentNode)if(typeof n.matches=="function"&&n.matches("button")){o.preventDefault(),Array.from(i.querySelectorAll("button")).forEach((s,l)=>{s.removeAttribute("aria-current")}),n.setAttribute("aria-current",!0);var d=t.querySelector("*:nth-child(".concat(n.getAttribute("data-slide"),")"));a.scroll({top:0,left:d.offsetLeft,behavior:"smooth"});break}},!1),r.addEventListener("click",function(o){for(var n=o.target;n&&n!=this;n=n.parentNode)if(typeof n.matches=="function"&&n.matches(".btn-next, .btn-prev")){o.preventDefault();var d=n.classList.contains("btn-prev")?a.scrollLeft-a.clientWidth:a.scrollLeft+a.clientWidth;a.scroll({top:0,left:d,behavior:"smooth"});break}},!1)}function Et(r){r.addEventListener("change",function(t){var e=parseInt(r.querySelector("[data-min] select,[data-min] input").value),a=parseInt(r.querySelector("[data-max] select,[data-max] input").value);Array.from(r.querySelectorAll("[data-min] input")).forEach((i,c)=>{i.setAttribute("max",a)}),Array.from(r.querySelectorAll("[data-max] input")).forEach((i,c)=>{i.setAttribute("min",e)}),Array.from(r.querySelectorAll("[data-min] select option")).forEach((i,c)=>{parseInt(i.getAttribute("value"))>a?i.classList.add("d-none"):i.classList.remove("d-none")}),Array.from(r.querySelectorAll("[data-max] select option")).forEach((i,c)=>{parseInt(i.getAttribute("value"))<e?i.classList.add("d-none"):i.classList.remove("d-none")})},!1)}function qt(r){r.addEventListener("change",function(t){if(r.matches("[data-value-if]")){var e=r.getAttribute("data-redirect"),a=r.getAttribute("data-value-if");r.value==a&&(document.location.href=e)}else typeof r.value<"u"&&(document.location.href=r.value)},!1)}function xt(r){var t=r.querySelector(".row"),e=t.cloneNode(!0),a=r.querySelector("[data-add]");r.addEventListener("click",function(i){for(var c=i.target;c&&c!=this;c=c.parentNode){if(c.matches("[data-add]")){var o=e.cloneNode(!0);r.insertBefore(o,c),a.matches("[data-maxfiles]")&&Array.from(r.querySelectorAll(":scope > .row")).length>=a.dataset.maxfiles&&a.setAttribute("disabled","disabled");break}if(c.matches("[data-delete]")){var n=c.closest(".row");n.remove(),a.matches("[data-maxfiles]")&&Array.from(r.querySelectorAll(":scope > .row")).length<a.dataset.maxfiles&&a.removeAttribute("disabled");break}}},!1)}function kt(r){Array.from(r.querySelectorAll("[data-input-range]")).forEach((t,e)=>{Et(t)}),Array.from(r.querySelectorAll("[data-redirect]")).forEach((t,e)=>{qt(t)}),Array.from(r.querySelectorAll(".multiple-file-uploads")).forEach((t,e)=>{xt(t)}),r.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),r.addEventListener("change",function(t){Array.from(r.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((e,a)=>{var i=e.closest("[data-group]")?e.closest("[data-group]"):r,c=e.dataset.activeif,o=e.dataset.equals,n=i.querySelector('select[data-id="'.concat(c,'"],input[data-id="').concat(c,'"]'));n.value==o?e.removeAttribute("disabled"):(e.setAttribute("disabled","disabled"),e.value="")}),Array.from(r.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((e,a)=>{var i=e.closest("[data-group]")?e.closest("[data-group]"):r,c=e.dataset.activeif,o=e.dataset.equals,n=i.querySelector('select[data-id="'.concat(c,'"],input[data-id="').concat(c,'"]'));n.value==o?e.classList.remove("d-none"):e.classList.add("d-none")})},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class Tt 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";'),i=document.createElement("template");i.innerHTML=`
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v5.6.1-beta2
2
+ * iamKey v5.6.1-beta3
3
3
  * Copyright 2022-2024 iamproperty
4
4
  */
5
5
  !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t=(t,e,a)=>e.split(/[\.\[\]\'\"]/).filter((t=>t)).reduce(((t,e)=>t?t[e]:a),t);class e{constructor(t){document.body.classList.contains("youtubeLoaded")?t.addEventListener("click",(function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches("a")){t.preventDefault(),a(e);break}}),!1):this.loadScripts(t,this.createEmbed)}loadScripts(t){return new Promise(((e,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"),e(!0),r.onload=()=>{t.addEventListener("click",(function(t){console.log("click"),t&&t.target instanceof HTMLElement&&t.target.closest("a")&&(t.preventDefault(),a(t.target.closest("a")))}),!1)}},o.onerror=function(){r(!1)},o.src="https://youtube.com/favicon.ico"}))}}var a=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},r=t=>{var e=t.querySelector(".youtube-embed a");if(e&&a(e),t.classList.contains("dialog--multi")&&!t.querySelector(":scope > .steps")&&o(t),!t.querySelector(":scope .mh-lg")&&!t.classList.contains("dialog--multi")){t.innerHTML='<div class="mh-lg">'.concat(t.innerHTML,"</div>");var r=t.querySelector(".mh-lg"),n=t.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(n){var s=n.previousSibling;r.before(n),s&&n.before(s)}}t.querySelector(":scope > button:first-child")||t.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},o=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 n=document.createElement("div");if(n.classList.add("btn--wrapper"),t.appendChild(n),0!=o&&(n.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&&(n.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 s=r.querySelector(':scope > button[type="submit"]');s.classList.add("mb-0"),n.insertAdjacentElement("beforeend",s)}else n.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")),n=0;n<o.length;n++){var s=o[n],i=s.getAttribute("data-title");if(s.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 n=t.querySelector('fieldset[data-title="'.concat(e.getAttribute("data-title"),'"]')),s=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")})),s.classList.add("active"),n.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)))},n=(t,e)=>{(function(t){var e=new TextEncoder("utf-8").encode(t);return crypto.subtle.digest("SHA-1",e).then((function(t){for(var e=[],a=new DataView(t),r=0;r<a.byteLength;r+=4){var o="00000000",n=(o+a.getUint32(r).toString(16)).slice(-o.length);e.push(n)}return e.join("")}))})(t).then((function(t){var a=new XMLHttpRequest;a.addEventListener("load",(function(){var a=this.responseText.split("\n"),r=t.slice(5).toUpperCase(),o=!1;for(var n in a)if(a[n].substring(0,35)==r){o=!0;break}var s=new CustomEvent("hibpCheck",{detail:o});e.dispatchEvent(s)})),a.open("GET","https://api.pwnedpasswords.com/range/"+t.substr(0,5)),a.send()}))},s=t=>{function e(){if(Array.from(document.querySelectorAll("input[maxlength]")).forEach(((t,e)=>{t.parentElement,i(t)})),Array.from(document.querySelectorAll("label input")).forEach(((t,e)=>{!t.closest("label").querySelector(".optional-text")&&!t.hasAttribute("required")&&("span"==t.parentNode.tagName.toLowerCase()?t.parentElement.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'):t.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'))})),document.querySelector('input[type="date"]')){let e=function(t){var e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return"".concat(e,"-").concat(a,"-").concat(r)};var t=new Date;Array.from(document.querySelectorAll('input[type="date"]')).forEach(((a,r)=>{var o=t;if(a.hasAttribute("data-start")&&(o.setDate(o.getDate()+parseInt(a.getAttribute("data-start"))),a.setAttribute("min",e(o))),a.hasAttribute("data-period")){var n=parseInt(a.getAttribute("data-period")),s=new Date;s.setDate(o.getDate()+n),a.setAttribute("max",e(s))}if(a.hasAttribute("data-allowed-days")){var i=JSON.parse("[".concat(a.getAttribute("data-allowed-days"),"]"));a.addEventListener("input",(function(t){var e=new Date(this.value).getUTCDay();i.includes(e)?a.setCustomValidity(""):a.setCustomValidity("That day of the week is not allowed")}))}}))}}"complete"===document.readyState&&e(),document.onreadystatechange=()=>{"complete"===document.readyState&&e()},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),e.hasAttribute("data-strength-checker")&&l(e)}})),t.addEventListener("change",(t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("select")){var e=t.target.closest("select");if(e.hasAttribute("data-change-type")&&e.hasAttribute("data-input")){var a=document.getElementById(e.getAttribute("data-input")),r=e.value;c(a,r)}}if(t&&t.target instanceof HTMLElement&&t.target.closest('dialog [type="radio"]')){var o=t.target.closest("dialog");t.target.closest('dialog [type="radio"]'),Array.from(o.querySelectorAll('[type="radio"][autofocus]')).forEach(((t,e)=>{t.removeAttribute("autofocus")})),Array.from(o.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")),c(a,r),e.hasAttribute("data-alt-class")){var o=e.getAttribute("data-alt-class");e.setAttribute("data-alt-class",e.getAttribute("class")),e.setAttribute("class",o)}}}))},i=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)},c=(t,e)=>{t.hasAttribute("type")&&"password"==t.getAttribute("type")&&t.setAttribute("data-password-type",!0),t.setAttribute("type",e)},l=function t(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"no",r=document.getElementById(e.getAttribute("data-strength-checker")),o=e.value,s=e.hasAttribute("minlength")?e.getAttribute("minlength"):12,i=1,c="";if(o.match(/(?=.*[0-9])/)&&(i+=1),o.match(/(?=.*[!,%,&,#,$,^,*,?,_,~,<,>,])/)&&(i+=1),o.match(/(?=.*[a-z])/)&&(i+=1),o.match(/(?=.*[A-Z])/)&&(i+=1),o.length<s&&(i=1,c="(must be at least ".concat(s," characters.)")),i>=3&&"no"==a){let a=function(e,r){e.detail?t(r,"danger"):t(r,"success"),r.removeEventListener("hibpCheck",a)};n(o,e),e.addEventListener("hibpCheck",(function(t){a(t,e)}))}else i>=3&&"danger"==a&&(i=3,c="(this password is very common)");r&&(i<=3?r.classList.add("invalid-feedback"):r.classList.remove("invalid-feedback"),r.setAttribute("data-strength",i),r.innerHTML="Password strength: ".concat(["Very weak","Weak","Average","Strong","Very strong"][i-1]," ").concat(c))};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class d 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 <picture>\n <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" lazy="" />\n </picture>\n <div class="container">\n <slot></slot>\n </div>\n </div>\n '),this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){this.classList.add("bg-primary");var t=this.shadowRoot.querySelector("picture"),e=this.shadowRoot.querySelector("picture img");this.hasAttribute("image")?e.setAttribute("src",this.getAttribute("image")):t.remove()}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class u 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 {\n margin-bottom: 2.5rem;\n display: block;\n }\n \n ::slotted(details) {\n --border-radius: 0!important;\n padding-bottom: 0!important;\n } \n </style>\n <slot></slot>\n '),this.shadowRoot.appendChild(a.content.cloneNode(!0))}connectedCallback(){if(!this.classList.contains("accordion--keep-open")){var t=this.querySelectorAll(":scope > details");t.forEach((e=>{e.addEventListener("toggle",(()=>{t.forEach((t=>{t!==e&&e.hasAttribute("open")&&t.removeAttribute("open")}))}))}))}}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class h 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/tabs.css";'),r=document.createElement("template");r.innerHTML='\n <style>\n @import "'.concat(e,'";\n ').concat(a,"\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(r.content.cloneNode(!0))}connectedCallback(){var t=this.classList.toString().replace("container","");this.shadowRoot.querySelector(".tabs").setAttribute("class","tabs ".concat(t)),function(t){(function(t){t.querySelectorAll(":scope > details");var e=t.querySelectorAll(":scope > details, :scope > a");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)}var o=0;e.forEach(((t,e)=>{var r=document.createElement("button");if(t.matches("details")){var n=t.querySelector(":scope > summary"),s=n.classList.contains("disabled");n.classList.add("visually-hidden"),t.hasAttribute("id")&&r.setAttribute("data-id","".concat(t.getAttribute("id"))),t.hasAttribute("open")&&r.setAttribute("aria-pressed",!0),r.innerHTML="".concat(n.innerText),r.classList.add("link"),r.setAttribute("data-index",o),t.setAttribute("tabindex","-1"),s&&r.classList.add("disabled"),o++}else t.matches("a")&&(r=t);r.classList.add("link"),a.appendChild(r)}))})(t),function(t){var e=t.querySelectorAll(":scope > details"),a=t.querySelectorAll(":scope > details > summary"),r=t.querySelectorAll(":scope .tabs__links > button");t.shadowRoot&&(r=t.shadowRoot.querySelectorAll(".tabs__links > button")),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")})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:t.textContent})}))})),a.forEach(((t,e)=>{t.addEventListener("click",(t=>{t.preventDefault(),r[e].click()}))}))}(t),function(t){if(!t.querySelector(":scope > details"))return!1;var e=t.querySelectorAll(":scope > details"),a=t.shadowRoot.querySelectorAll(".tabs__links > button");location.hash&&t.shadowRoot.querySelector('.tabs__links [data-id="'.concat(location.hash.replace("#",""),'"]'))?(t.shadowRoot.querySelector('[data-id="'.concat(location.hash.replace("#",""),'"]')).setAttribute("aria-pressed",!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 m=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 n=document.createElement("div");n.innerHTML=r.innerHTML;var s=n.textContent||n.innerText||"";t.setAttribute("data-label",s),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=w(r.getAttribute("data-format"),t.textContent.trim())),o.includes(t.textContent.trim().toLowerCase())&&t.setAttribute("data-content",t.textContent.trim().toLowerCase())}}))}))},p=(t,e)=>{var a=e.querySelector("input[data-search]");if(!a)return!1;var r=a.getAttribute("id"),o=a.getAttribute("data-search").split(","),n=a.parentNode,s={};o.forEach(((e,a)=>{Array.from(t.querySelectorAll('td[data-label="'+e.trim()+'"]')).forEach(((t,e)=>{t.querySelector(".td__content")?s[t.querySelector(".td__content").textContent]=t.querySelector(".td__content").textContent:s[t.textContent]=t.textContent}))})),a.setAttribute("list","".concat(r,"_list")),a.setAttribute("autocomplete","off"),n.querySelector("datalist")||(n.innerHTML+='<datalist id="'.concat(r,'_list"></datalist>')),n.querySelector("datalist").innerHTML="".concat(Object.keys(s).map((t=>'<option value="'.concat(t,'"></option>'))).join(""))},b=(t,e,a)=>{if(e.getAttribute("data-ajax"))return!1;var r=t.querySelector("tbody"),o=e.querySelector('input[type="radio"][data-sort]:checked');if(e.querySelector("select[data-sort]")){var n=e.querySelector("select[data-sort]");o=e.querySelector("select[data-sort] option:nth-child(".concat(n.selectedIndex+1,")"))}var s=o.getAttribute("data-sort"),i=o.getAttribute("data-order"),c=o.getAttribute("data-format");if(!s)return r.innerHTML=a.innerHTML,m(t),!1;var l=[];["asc","desc","descending"].includes(i)||(l=i.split(","));var d=[];Array.from(r.querySelectorAll("tr")).forEach(((t,e)=>{var a=t.querySelector('td[data-label="'+s+'"], th[data-label="'+s+'"]').textContent.trim();t.querySelector('[data-label="'+s+'"] .td__content')&&(a=t.querySelector('[data-label="'+s+'"] .td__content').textContent.trim()),l.length&&l.includes(a)&&(a=l.indexOf(a)),function(t){return"string"==typeof t&&!isNaN(t)&&!isNaN(parseFloat(t))}(a)&&(a=((t,e)=>String(t).padStart(10,"0"))(a)),c&&"date"==c&&(a=new Date(a));var r={index:a,row:t};d.push(r)})),d.sort(((t,e)=>t.index>e.index?1:-1)),("descending"==i||"desc"==i)&&(d=d.reverse());var u="";d.forEach(((t,e)=>{u+=t.row.outerHTML})),r.innerHTML=u},f=(t,e,a)=>{t.classList.remove("table--filtered");var r=v(e),o=[],n=0,s=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("input[data-search]")){var c=e.querySelector("input[data-search]");e.querySelector("input[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 n=t.querySelector('[data-label="'.concat(e,'"]'));if(a.includes("-date-from")){var s=new Date(a.replace("-date-from","")),i=new Date(n.textContent.toLowerCase());s.setHours(0,0,0,0),i.setHours(0,0,0,0),i<s?(t.classList.add("less-than-from-date"),o=!1):!t.classList.contains("less-than-from-date")&&!t.classList.contains("greater-than-to-date")&&(o=!0)}else if(a.includes("-date-to")){var c=new Date(a.replace("-date-to","")),l=new Date(n.textContent.toLowerCase());c.setHours(0,0,0,0),l.setHours(0,0,0,0),l>c?(t.classList.add("greater-than-to-date"),o=!1):!t.classList.contains("less-than-from-date")&&!t.classList.contains("greater-than-to-date")&&(o=!0)}if(a&&"$today"==a)a=w("date",new Date);else if(a&&"$yesterday"==a){var d=new Date;d.setDate(d.getDate()-1),a=w("date",d)}else if(!a||"$thisWeek"!=a&&"$lastWeek"!=a){if(a&&"$thisMonth"==a){var u=new Date,h=u.getFullYear(),m=u.getMonth(),p=new Date(h,m,1),b=new Date(h,m+1,0),f=new Date(n.textContent.toLowerCase());p.setHours(0,0,0,0),b.setHours(0,0,0,0),f.setHours(0,0,0,0),o=f>=p&&f<=b}else if(a&&"$lastMonth"==a){var g=new Date,y=g.getFullYear(),v=g.getMonth(),A=new Date(y,v-1,1),L=new Date(y,v,0),S=new Date(n.textContent.toLowerCase());A.setHours(0,0,0,0),L.setHours(0,0,0,0),S.setHours(0,0,0,0),o=S>=A&&S<=L}}else{var E=new Date,q=new Date(E.setDate(E.getDate()-(E.getDay()-1))),k=new Date(E.setDate(E.getDate()-E.getDay()+7)),x=new Date(n.textContent.toLowerCase());if(E.setHours(0,0,0,0),q.setHours(0,0,0,0),k.setHours(0,0,0,0),x.setHours(0,0,0,0),"$thisWeek"==a)o=x>=q&&x<=k;else{var T=new Date(q.setDate(q.getDate()-7)),M=new Date(k.setDate(k.getDate()-7));T.setHours(0,0,0,0),M.setHours(0,0,0,0),o=x>=T&&x<=M}}n&&n.textContent.toLowerCase().includes(a.replace("-"," ").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)=>{n++,t.classList.add("filtered--matched"),Math.ceil(n/i)==parseInt(s)&&t.classList.add("filtered--show")})),a&&(a.setAttribute("data-total",n),a.setAttribute("data-show",i),a.setAttribute("data-page",s))},g=(t,e,a)=>{Array.from(e.querySelectorAll("[data-query]")).forEach(((e,r)=>{var o=e.getAttribute("data-query"),n=0;if("total"==o)a.hasAttribute("data-total")?n=a.getAttribute("data-total"):(t.classList.contains("table--filtered"),n=t.querySelectorAll("tbody tr").length);else if(!o.includes(" == ")&&o.includes(" & ")){var s=o.split(" & "),i="";s.forEach((t=>{i+=':not([data-filtered-by="'.concat(t,'"])')})),n=Array.from(t.querySelectorAll("tbody tr".concat(i))).length}else if(o.includes(" == "))if(o.includes(" && ")){var c=o.split(" && ");n=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=o.split(" == ");n=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 n=Array.from(t.querySelectorAll('tbody tr:not([data-filtered-by="'.concat(o,'"])'))).length;e.hasAttribute("data-total")?e.setAttribute("data-total",n):e.innerHTML=n}))},y=function(t,e,a,r){if(m(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(((e,a)=>{t.querySelectorAll("thead tr th.expand-button-heading").length||e.insertAdjacentHTML("afterbegin",'<th class="th--fixed expand-button-heading"></th>')})),Array.from(t.querySelectorAll("tbody tr")).forEach(((t,e)=>{var a="full"===t.getAttribute("data-view")?"aria-expanded":"";t.insertAdjacentHTML("afterbegin",'<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button '.concat(a,">Expand</button></td>"))}))})(t,r),g(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 n=o.offsetWidth/parseFloat(r.fontSize);e=e>(n+=1.7)?e:n}})),e})(t);r.style.setProperty("--cta-width","".concat(o,"rem")),new ResizeObserver(e).observe(t)}},v=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"),o=t.value;t.hasAttribute("data-date-from")&&(o+="-date-from"),t.hasAttribute("data-date-to")&&(o+="-date-to"),e[r]||(e[r]=new Array),e[r].push(o)}})),e},A=function(e,a,r,o){return function(t,e,a,r){return new(a||(a=Promise))((function(o,n){function s(t){try{c(r.next(t))}catch(t){n(t)}}function i(t){try{c(r.throw(t))}catch(t){n(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(s,i)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){var n=new FormData(a),s=new URLSearchParams(n).toString(),i=e.querySelectorAll("thead tr th:not(.expand-button-heading)"),c=e.querySelector("tbody"),l=a.getAttribute("data-ajax");o.classList.add("table--loading");var d=v(a);Array.from(a.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML="",t.parentNode.classList.remove("hover")}));var u=0;Object.values(d).forEach(((t,e)=>{"object"==typeof t&&Object.values(t).length?u+=Object.values(t).length:u++})),u&&Array.from(a.querySelectorAll("[data-filter-count]")).forEach(((t,e)=>{t.innerHTML+="(".concat(u,")"),t.parentNode.classList.add("hover")})),window.controller||(window.controller=[]),window.controller[l]&&window.controller[l].abort(),window.controller[l]=new AbortController;var{signal:h}=controller[l];r.setAttribute("data-loading","true"),a.classList.add("processing");try{yield fetch(l+"?"+s,{signal:h,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then((t=>t.json())).then((n=>{var d=a.hasAttribute("data-schema")?a.getAttribute("data-schema"):"data",u=a.hasAttribute("data-schema-total")?a.getAttribute("data-schema-total"):"meta.total",h=a.hasAttribute("data-schema-page")?a.getAttribute("data-schema-page"):"meta.current_page",m=t(n,u,15),b=t(n,h,1),f=t(n,d),g=o.hasAttribute("data-empty-msg")?o.getAttribute("data-empty-msg"):"No results found";f?(c.innerHTML="",f.forEach(((e,a)=>{var r=document.createElement("tr");i.forEach(((a,o)=>{var n="",s=document.createElement("td");if(s.setAttribute("data-label",a.innerText),a.getAttribute("data-output")){var i=a.getAttribute("data-output");n=i.replace(new RegExp(/{(.*?)}/,"gm"),(function(a){return t(e,a.replace("{","").replace("}",""))}))}if(a.hasAttribute("data-output-array")){i=a.getAttribute("data-output");var c=t(e,i.replace("{","").replace("}",""));n="",c.forEach(((e,r)=>{var o=a.getAttribute("data-output-array"),s="";if(a.hasAttribute("data-output-array-property")&&a.hasAttribute("data-output-array-transform")){var i=t(e,a.getAttribute("data-output-array-property")),c=JSON.parse(a.getAttribute("data-output-array-transform"))[i];s=o.replace("{".concat(a.getAttribute("data-output-array-property"),"}"),c)}s=s.replace(new RegExp(/{(.*?)}/,"gm"),(function(a){return t(e,a.replace("{","").replace("}",""))})),n+=s}))}if(a.hasAttribute("data-transform")){var l=JSON.parse(a.getAttribute("data-transform"));!(n=l[n])&&a.hasAttribute("data-default")&&(n=a.getAttribute("data-default"))}s.innerHTML=n,r.appendChild(s)})),c.appendChild(r)})),p(e,a),o.setAttribute("data-total",parseInt(m)),o.setAttribute("data-page",parseInt(b)),y(e,a,0,o),Array.from(a.querySelectorAll("[data-ajax-query]")).forEach(((e,a)=>{var r=t(n,e.getAttribute("data-ajax-query"),"");e.hasAttribute("data-total")?e.setAttribute("data-total",r):e.innerHTML=r})),0==parseInt(m)&&(c.innerHTML='<tr><td colspan="100%"><span>'.concat(g,"</span></td></tr>")),o.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:l,formData:s})):c.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',r.removeAttribute("data-loading"),a.classList.remove("processing")}))}catch(t){console.log(t)}}))},w=(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",{day:"numeric",month:"long",year:"2-digit"});case"capitalise":return(t=>t.charAt(0).toUpperCase()+t.slice(1))(e)}};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='@import "'.concat(t,'/css/components/table.css";'),r='@import "'.concat(t,'/css/components/table.global.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"),p(this.table,this.form),this.form.querySelector("[data-pagination]")||this.form.insertAdjacentHTML("beforeend",'<input name="page" type="hidden" value="'.concat(this.getAttribute("data-page"),'" data-pagination="true" />')),this.form.querySelector("[data-show]")||this.form.insertAdjacentHTML("beforeend",'<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");e.toggleAttribute("aria-expanded"),"full"==a.getAttribute("data-view")?a.setAttribute("data-view","default"):a.setAttribute("data-view","full"),e.blur()}})),((t,e,a,r,o)=>{var n,s=function(o){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(console.log("submit"),e.classList.contains("processing"))return!1;if(Array.from(e.querySelectorAll("iam-applied-filters")).forEach(((t,e)=>{var a=new Event("tags-set");t.dispatchEvent(a)})),"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 n=new Event("click");o.dispatchEvent(n)}else r.checked=t.checked})),e.classList.remove("processing")),e.hasAttribute("data-ajax")?(n||(e.querySelector("[data-pagination]").value=1,r.setAttribute("data-page",1)),A(t,e,a,r)):e.hasAttribute("data-submit")?e.submit():(f(t,e,r),g(t,e)),e.hasAttribute("data-ajax-post")){var s=new FormData(e),i=new URLSearchParams(s).toString(),c=new XMLHttpRequest;c.open("GET","".concat(window.location.href,"?ajax=true&").concat(i)),c.send()}};e.querySelector("iam-actionbar[data-search]")&&e.querySelector("iam-actionbar[data-search]").addEventListener("search-submit",(t=>{e.querySelector("input[data-search]")?e.querySelector("input[data-search]").value=t.detail.search:e.insertAdjacentHTML("beforeend",'<input type="hidden" name="search" data-search="'.concat(e.querySelector("iam-actionbar[data-search]").getAttribute("data-search"),'" value="').concat(t.detail.search,'"/>')),clearTimeout(n),s(t)})),e.addEventListener("keyup",(t=>{clearTimeout(n),t&&t.target instanceof HTMLElement&&t.target.closest("input[data-search]")&&(n=setTimeout((function(){s(t)}),500))})),e.addEventListener("change",(a=>{if(clearTimeout(n),a&&a.target instanceof HTMLElement&&a.target.closest("[data-sort]")&&(e.hasAttribute("data-submit")||b(t,e,o),s(a)),a&&a.target instanceof HTMLElement&&a.target.closest("input[data-search]")&&s(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-filter][data-no-ajax]")?(f(t,e,r),g(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"))&&s(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-show]")&&s(a),a&&a.target instanceof HTMLElement&&a.target.closest("[data-mimic]")&&s(a),a&&a.target instanceof HTMLElement&&a.target.hasAttribute("id")){var i=a.target.getAttribute("id");document.querySelector('[data-duplicate="'.concat(i,'"]'))&&(document.querySelector('[data-duplicate="'.concat(i,'"]')).checked=a.target.checked)}})),e.addEventListener("click",(a=>{if(clearTimeout(n),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"),d=document.querySelector('[for="'.concat(l,'"'));if(d.querySelector("iam-card")){var u=d.querySelector("iam-card"),h=new Event("click");u.dispatchEvent(h)}c.checked=!1}break;case"select-one":case"select-multi":r[i].selectedIndex=-1}e.classList.remove("processing"),e.hasAttribute("data-submit")||b(t,e,o),s(a)}})),e.addEventListener("submit",(t=>{clearTimeout(n),e.hasAttribute("data-submit")||t.preventDefault(),s(t)})),e.addEventListener("force",(t=>{s(t)})),e.addEventListener("paginate",(t=>{s(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,n]of r)document.querySelector('[data-mimic="'.concat(o,'"]'))&&!a.includes(o)?(a.push(o),document.querySelector('[data-mimic="'.concat(o,'"]')).value=n):document.querySelector('[data-mimic="'.concat(o,'"]'))&&(document.querySelector('[data-mimic="'.concat(o,'"]')).value+=","+n);for(var s 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]"),n=a.detail.page;if(o.value=n,e.dispatchEvent(new Event("paginate")),r.setAttribute("data-page",n),t.hasAttribute("data-show-history")){var s=new URL(location);s.searchParams.set("page",n),history.pushState({type:"pagination",form:e.getAttribute("id"),page:n},"",s)}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"),n=[],s=0;s<o.length;s++)n.push('"'.concat(o[s].textContent,'"'));e.push(n.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"))A(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]")||document.querySelector("iam-actionbar[data-for='".concat(this.getAttribute("id"),"']"))){var a=this.querySelector("iam-actionbar[data-selectall]")?this.querySelector("iam-actionbar[data-selectall]"):document.querySelector("iam-actionbar[data-for='".concat(this.getAttribute("id"),"']"));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")}))),y(this.table,this.form,this.pagination,this),f(this.table,this.form,this),g(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 S extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.querySelector('*:not(.badge):not(small):not(.btn) > [class*="fa-"]:not(.btn)')&&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='@import "'.concat(e,'/css/components/card.global.css";'),n=document.createElement("template");n.innerHTML='\n <style>\n @import "'.concat(a,'";\n ').concat(r,"\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="card ').concat(t,'" tabindex="0" part="card">\n ').concat(this.hasAttribute("data-image")?'<div class="card__head"><img src="'.concat(this.getAttribute("data-image"),'" alt="" loading="lazy" /><div class="card__badges"><slot name="badges"></slot></div></div>'):"",'\n <div class="card__body">\n ').concat(!this.hasAttribute("data-image")&&this.querySelector('[slot="badges"]')&&this.querySelector('[slot="checkbox"]')?'<div class="card__badges card__badges--inline"><slot name="badges"></slot></div>':"","\n ").concat(!this.hasAttribute("data-image")&&this.querySelector('[slot="badges"]')?'<div class="card__badges"><slot name="badges"></slot></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 ").concat(this.hasAttribute("data-total")?'<div class="card__total">'.concat(this.getAttribute("data-total"),"</div>"):"","\n </div>\n ").concat(this.hasAttribute("data-add-link")?'<button class="btn btn-compact btn-secondary fa-plus">Add property</button>':"",'\n <slot name="checkbox"></slot>\n <div class="card__footer">\n <slot name="footer"></slot>\n <slot name="btns"></slot>\n ').concat(this.hasAttribute("data-cta")?'<span class="link d-inline-block pt-0 mb-0">'.concat(this.getAttribute("data-cta"),"</span>"):"","\n </div>\n </div>\n "),this.shadowRoot.appendChild(n.content.cloneNode(!0)),document.getElementById("cardGlobal")||document.head.insertAdjacentHTML("beforeend",'<style id="cardGlobal">'.concat(o,"</style>"))}connectedCallback(){this.classList.add("loaded");var t=this.parentNode.closest("a, button, label, router-link"),e=this.shadowRoot.querySelector(".card"),a=this.shadowRoot.querySelector(".btn-compact");if(t&&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"),n=r.getAttribute("id");Array.from(document.querySelectorAll('[name="'.concat(o,'"][type="radio"]:not([id="').concat(n,'"])'))).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"),n=r.getAttribute("id");Array.from(document.querySelectorAll('[name="'.concat(o,'"]:not([id="').concat(n,'"])'))).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()}})),a){var r=this.getAttribute("data-add-link");a.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),window.location=r}))}}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('*:not(.badge):not(small):not(.btn) > [class*="fa-"]:not(.btn)')&&(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 E 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=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!1,o=e.getAttribute("name");if(!o)return!1;o.includes("[]")&&(o=o.replace("[]","[".concat(e.value,"]")));var n=t.querySelector('[data-name="'.concat(o,'"]'));n&&"checkbox"==e.getAttribute("type")&&(r=!e.checked);var s=e.getAttribute("data-filter-text");if(n||(n=document.createElement("button"),t.appendChild(n)),n.setAttribute("type","button"),n.classList.add("filter"),n.classList.add("tag"),a&&n.classList.add("tag--not-set"),n.setAttribute("data-name",o),n.innerHTML=s.replace("$value",e.value),(!e.value||r)&&n.remove(),e.parentNode.closest("[data-filter-text]")){var i=e.parentNode.closest("[data-filter-text]"),c=!0;if(o="",i.querySelectorAll("input").forEach(((e,r)=>{var i=e.getAttribute("name");if(o+="".concat(0!=r?",":"").concat(i),t.querySelector('[data-name="'.concat(i,'"]'))&&t.querySelector('[data-name="'.concat(i,'"]')).remove(),e.value){var l=document.createElement("button");l.setAttribute("type","button"),l.classList.add("filter"),l.classList.add("tag"),a&&n.classList.add("tag--not-set"),l.setAttribute("data-name",i),l.innerHTML=s.replace("$value",e.value),t.appendChild(l)}else c=!1})),t.querySelector('[data-name="'.concat(o,'"]'))&&t.querySelector('[data-name="'.concat(o,'"]')).remove(),c){var l=i.getAttribute("data-filter-text");i.querySelectorAll("input").forEach(((e,a)=>{var r=e.getAttribute("name");t.querySelector('[data-name="'.concat(r,'"]'))&&t.querySelector('[data-name="'.concat(r,'"]')).remove(),l=l.replace("$".concat(a+1),e.value)}));var d=document.createElement("button");d.setAttribute("type","button"),d.classList.add("filter"),d.classList.add("tag"),a&&n.classList.add("tag--not-set"),d.setAttribute("data-name",o),d.innerHTML=l,t.appendChild(d)}}}Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(((t,r)=>{a(e,t,!1)}));var r=t.closest("dialog");r&&new MutationObserver((function(r){"open"==r[0].attributeName&&Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(((t,r)=>{a(e,t,!1)}))})).observe(r,{attributes:!0}),t.addEventListener("tags-set",(function(r){e.innerHTML="",Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(((t,r)=>{a(e,t,!1)}))})),Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(((r,o)=>{r.addEventListener("change",(function(o){t.hasAttribute("data-keep-same")||a(e,r),o.stopPropagation()}))})),t.addEventListener("change",(function(r){if(r&&r.target instanceof HTMLElement&&r.target.closest("input[data-filter-text]")){var o=r.target.closest("input[data-filter-text]");t.hasAttribute("data-keep-same")||a(e,o)}})),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 n=r[o],s='[name="'.concat(n,'"]');if(n.match(/\[(.*)\]/)){n.replace(/\[(.*)\]/,"[]");var i=n.replace(/.*\[(.*)\]/,"$1");s='[value="'.concat(i,'"]')}for(var c=t.querySelectorAll(s),l=0;l<c.length;l++){var d=c[l];"radio"!=d.getAttribute("type")&&"checkbox"!=d.getAttribute("type")?(d.value="",e=new Event("force"),t.hasAttribute("data-nosubmit")||d.closest("form").dispatchEvent(e)):(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 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/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"),n=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)})),n.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"))&&n.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"),n=this.shadowRoot.querySelector(".per-page select"),s=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,s.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&&n.value!=d&&![15,25,40,50].includes(d)&&(n.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>")),n.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&&e!=a&&(this.setup(),this.dispatchEvent(new CustomEvent("update-page",{detail:{page:a}})))}}}var k=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 x 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(){k(t,e.value)}),500)})),e.addEventListener("change",(r=>{clearTimeout(a),k(t,e.value)}))}(t,e)}(this.querySelector("ul"),this.shadowRoot.querySelector("#search"))}}function T(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 M=function(t){t.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class _ 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='@import "'.concat(t,'/css/components/notification.global.css";'),o=this.querySelectorAll("a,button");Array.from(o).forEach(((t,e)=>{t.setAttribute("slot","btns"),t.classList.add("link")})),(o.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");var n=document.createElement("template");n.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(o.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(n.content.cloneNode(!0)),document.getElementById("notificationHolder")||document.head.insertAdjacentHTML("beforeend",'<style id="notificationHolder">'.concat(r,"</style>"))}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(),M(t))}),!1),t.hasAttribute("data-timeout")){var a=new T((function(){M(t)}),t.getAttribute("data-timeout"));t.addEventListener("mouseenter",(t=>{a.pause()})),t.addEventListener("mouseleave",(t=>{a.resume()}))}})(a),t&&t.addEventListener("click",(function(t){M(a)}),!1)}}document.addEventListener("DOMContentLoaded",(function(){var t,a;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")||""})}})),(a=document.body).classList.add("js-enabled"),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)&&a.classList.add("ie"),t=function(t){var e=document.querySelector('label[for="'.concat(t.replace("#",""),'"]')),a=document.querySelector(t+" summary"),r=document.querySelector("dialog".concat(t)),o=document.querySelector("detail".concat(t));e instanceof HTMLElement?e.click():a instanceof HTMLElement?a.click():r instanceof HTMLElement?r.showModal():o instanceof HTMLElement&&o.addAttribute("open")},location.hash&&t(location.hash),window.addEventListener("hashchange",(function(){t(location.hash)}),!1),addEventListener("popstate",(t=>{if(t&&t.state&&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;Array.from(e.querySelectorAll("[data-password-type]")).forEach(((t,e)=>{t.setAttribute("type","password")})),(e.querySelector(":invalid")||e.querySelector('.pwd-checker[data-strength="1"]')||e.querySelector('.pwd-checker[data-strength="2"]'))&&(e.classList.add("was-validated"),t.preventDefault()),e.querySelector("iam-multiselect[data-is-required][data-error]")&&(e.classList.add("was-validated"),t.preventDefault())}})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&document.querySelector(".dialog--transactional[open], .dialog--acknowledgement[open]")&&(t.preventDefault(),t.stopPropagation())})),(t=>{Array.from(t.querySelectorAll("dialog[open]")).forEach(((t,e)=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),r(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]"),a=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),o=document.querySelector("dialog#".concat(a));r(o),o.showModal(),o.focus();var n=o.offsetWidth;o.setAttribute("style","max-width: ".concat(n,"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:a})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var s=t.target.closest("dialog[open]");t.preventDefault(),s.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:s.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.classList.contains("dialog--transactional")&&!c.classList.contains("dialog--acknowledgement")){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=d.parentNode.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=h&&d.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((t,e)=>{t.removeAttribute("aria-expanded")})),h.hasAttribute("open"))h.close(),u="closePopover",h.removeAttribute("style"),d.removeAttribute("aria-expanded");else{h.show(),d.setAttribute("aria-expanded",!0);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 g=h.getBoundingClientRect();if(g.bottom-window.scrollY>window.innerHeight-window.scrollY){var y=h.hasAttribute("style")?h.getAttribute("style")+" ":"";h.setAttribute("style",y+"transform: translate(0, calc(-100% - 4rem))"),(g=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.removeAttribute("aria-expanded")})))}))})(document.body),s(document.body),window.customElements.get("iam-header")||window.customElements.define("iam-header",d),window.customElements.get("iam-accordion")||window.customElements.define("iam-accordion",u),window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",h),window.customElements.get("iam-table")||window.customElements.define("iam-table",L),window.customElements.get("iam-card")||window.customElements.define("iam-card",S),window.customElements.get("iam-filterlist")||window.customElements.define("iam-filterlist",x),window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",q),window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",E),window.customElements.get("iam-notification")||window.customElements.define("iam-notification",_),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,n=a.scrollLeft,s=a.scrollTop,i=Math.round(n/e*r)+1;0==n&&0!=s&&(i=Math.round(s/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")),n=0,s=0,i=a.scrollWidth,c=a.scrollHeight;i>c?s=Math.floor(i*((o-1)/r)):n=Math.floor(c*((o-1)/r)),a.scroll({top:n,left:s,behavior:"smooth"});break}}),!1)}(t)})),Array.from(document.querySelectorAll(".carousel")).forEach((t=>{!function(t,e){var a,r=t.querySelector(".carousel__inner"),o=t.querySelector(".carousel__controls"),n=e.querySelectorAll(".col").length;r.addEventListener("scroll",(function(o){clearTimeout(a),a=setTimeout((function(){var a=r.clientWidth,o=r.scrollWidth,s=r.scrollLeft,i=Math.round(s/o*n)+1,c=e.querySelector(".col:last-child").offsetLeft+50;r.scrollLeft+a>=c&&(i=n),Array.from(t.querySelectorAll(".carousel__controls button")).forEach(((t,e)=>{t.removeAttribute("aria-current")})),t.querySelector(".control-"+i).setAttribute("aria-current",!0),1==i?t.querySelector(".btn-prev").setAttribute("disabled","disabled"):t.querySelector(".btn-prev").removeAttribute("disabled"),i==n?t.querySelector(".btn-next").setAttribute("disabled","disabled"):t.querySelector(".btn-next").removeAttribute("disabled")}),100)}),!1),o.addEventListener("click",(function(t){for(var a=t.target;a&&a!=this;a=a.parentNode)if("function"==typeof a.matches&&a.matches("button")){t.preventDefault(),Array.from(o.querySelectorAll("button")).forEach(((t,e)=>{t.removeAttribute("aria-current")})),a.setAttribute("aria-current",!0);var n=e.querySelector("*:nth-child(".concat(a.getAttribute("data-slide"),")"));r.scroll({top:0,left:n.offsetLeft,behavior:"smooth"});break}}),!1),t.addEventListener("click",(function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if("function"==typeof e.matches&&e.matches(".btn-next, .btn-prev")){t.preventDefault();var a=e.classList.contains("btn-prev")?r.scrollLeft-r.clientWidth:r.scrollLeft+r.clientWidth;r.scroll({top:0,left:a,behavior:"smooth"});break}}),!1)}(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 n=e.cloneNode(!0);t.insertBefore(n,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,n=e.dataset.equals;r.querySelector('select[data-id="'.concat(o,'"],input[data-id="').concat(o,'"]')).value==n?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,n=e.dataset.equals;r.querySelector('select[data-id="'.concat(o,'"],input[data-id="').concat(o,'"]')).value==n?e.classList.remove("d-none"):e.classList.add("d-none")}))}),!1)}(t)})),Array.from(document.querySelectorAll(".youtube-embed")).forEach((t=>{new e(t)})),window.addEventListener("hashchange",(function(){var t=location.hash.replace("#",""),e=document.querySelector('label[for="'.concat(t,'"]'));e instanceof HTMLElement&&e.click()}),!1)}))}));
@@ -26,14 +26,14 @@ class iamCollapsibleSideMenu extends HTMLElement {
26
26
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
27
27
  <div class="container" part="container">
28
28
 
29
- <div class="side-menu">
30
- <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
31
- <div class="side-menu-content closed">
29
+ <div class="side-menu" part="side-menu">
30
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
31
+ <div class="side-menu-content closed" part="side-menu-content">
32
32
  <slot name="menu"></slot>
33
33
  </div>
34
34
  </div>
35
35
 
36
- <div class="main-content">
36
+ <div class="main-content" part="main-content">
37
37
  <slot></slot>
38
38
  </div>
39
39
 
@@ -553,7 +553,7 @@ const qe = {
553
553
  props: {},
554
554
  mounted() {
555
555
  this.$nextTick(function() {
556
- import("./accordion.component.min-bbbb28f2.mjs").then((t) => {
556
+ import("./accordion.component.min-8f48ae57.mjs").then((t) => {
557
557
  window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
558
558
  }).catch((t) => {
559
559
  console.log(t.message);
@@ -689,7 +689,7 @@ const Fi = /* @__PURE__ */ p(Be, [["render", Ue]]), Oe = {
689
689
  },
690
690
  mounted() {
691
691
  this.$nextTick(function() {
692
- import("./carousel.component.min-85c47240.mjs").then((t) => {
692
+ import("./carousel.component.min-e62f80f0.mjs").then((t) => {
693
693
  window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
694
694
  }).catch((t) => {
695
695
  console.log(t.message);
@@ -716,7 +716,7 @@ const Vi = /* @__PURE__ */ p(Oe, [["render", We]]), Ke = {
716
716
  },
717
717
  mounted() {
718
718
  this.$nextTick(function() {
719
- import("./header.component.min-4ef36077.mjs").then((t) => {
719
+ import("./header.component.min-eff5f467.mjs").then((t) => {
720
720
  window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
721
721
  }).catch((t) => {
722
722
  console.log(t.message);
@@ -1112,7 +1112,7 @@ const Wi = /* @__PURE__ */ p(yt, [["render", Ht]]), Mt = {
1112
1112
  name: "Nav",
1113
1113
  mounted() {
1114
1114
  this.$nextTick(function() {
1115
- import("./nav.component.min-85120d88.mjs").then((t) => {
1115
+ import("./nav.component.min-6e533a82.mjs").then((t) => {
1116
1116
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
1117
1117
  }).catch((t) => {
1118
1118
  console.log(t.message);
@@ -1232,7 +1232,7 @@ const Zt = {
1232
1232
  name: "Tabs",
1233
1233
  created() {
1234
1234
  this.$nextTick(function() {
1235
- import("./tabs.component.min-78eb45ae.mjs").then((t) => {
1235
+ import("./tabs.component.min-44d58753.mjs").then((t) => {
1236
1236
  window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
1237
1237
  }).catch((t) => {
1238
1238
  console.log(t.message);
@@ -1379,7 +1379,7 @@ function hi(t, i, e, s, o, a) {
1379
1379
  }
1380
1380
  const ea = /* @__PURE__ */ p(pi, [["render", hi]]);
1381
1381
  /*!
1382
- * iamKey v5.6.1-beta2
1382
+ * iamKey v5.6.1-beta3
1383
1383
  * Copyright 2022-2024 iamproperty
1384
1384
  */
1385
1385
  function fi(t, i) {
@@ -1549,7 +1549,7 @@ const ia = /* @__PURE__ */ p(ki, [["render", xi]]), Ai = {
1549
1549
  props: {},
1550
1550
  mounted() {
1551
1551
  this.$nextTick(function() {
1552
- import("./actionbar.component.min-8b47d017.mjs").then((t) => {
1552
+ import("./actionbar.component.min-574896a9.mjs").then((t) => {
1553
1553
  window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
1554
1554
  }).catch((t) => {
1555
1555
  console.log(t.message);
@@ -1564,7 +1564,7 @@ function Li(t, i, e, s, o, a) {
1564
1564
  }
1565
1565
  const aa = /* @__PURE__ */ p(Ai, [["render", Li]]);
1566
1566
  /*!
1567
- * iamKey v5.6.1-beta2
1567
+ * iamKey v5.6.1-beta3
1568
1568
  * Copyright 2022-2024 iamproperty
1569
1569
  */
1570
1570
  class z extends HTMLElement {
@@ -1704,7 +1704,7 @@ function Hi(t, i, e, s, o, a) {
1704
1704
  }
1705
1705
  const sa = /* @__PURE__ */ p(Ei, [["render", Hi]]);
1706
1706
  /*!
1707
- * iamKey v5.6.1-beta2
1707
+ * iamKey v5.6.1-beta3
1708
1708
  * Copyright 2022-2024 iamproperty
1709
1709
  */
1710
1710
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
@@ -1722,14 +1722,14 @@ class Mi extends HTMLElement {
1722
1722
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
1723
1723
  <div class="container" part="container">
1724
1724
 
1725
- <div class="side-menu">
1726
- <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
1727
- <div class="side-menu-content closed">
1725
+ <div class="side-menu" part="side-menu">
1726
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
1727
+ <div class="side-menu-content closed" part="side-menu-content">
1728
1728
  <slot name="menu"></slot>
1729
1729
  </div>
1730
1730
  </div>
1731
1731
 
1732
- <div class="main-content">
1732
+ <div class="main-content" part="main-content">
1733
1733
  <slot></slot>
1734
1734
  </div>
1735
1735
 
@@ -14,7 +14,7 @@
14
14
  <div class="files"><slot name="files"></slot></div>
15
15
  </div>
16
16
  `,this.shadowRoot.appendChild(s.content.cloneNode(!0))}connectedCallback(){this.innerHTML+='<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';const e=this.shadowRoot.querySelector(".file-upload"),t=this.querySelector("input"),r=this.shadowRoot.querySelector(".helper-text");this.querySelector('[slot="helper"]')||(r.innerHTML=`${this.hasAttribute("data-maxsize")?`Max file size is ${this.getAttribute("data-maxsize")}kb. `:""}${t.hasAttribute("accept")?`Supported file types are ${t.getAttribute("accept")}`:""}`),Vt(this,e)}}const Pt={name:"FileUpload",props:{maxfilesize:{type:Number,required:!1},maxfiles:{type:Number,required:!1}},mounted(){this.$nextTick(function(){window.customElements.get("iam-fileupload")||window.customElements.define("iam-fileupload",zt)})}};function Ft(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-fileupload",null,[n.renderSlot(a.$slots,"default")])}const It=A(Pt,[["render",Ft]]),mn="",Ot={name:"Accordion",props:{},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Bo).then(a=>{window.customElements.get("iam-accordion")||window.customElements.define("iam-accordion",a.default)}).catch(a=>{console.log(a.message)})})}},Ut={ref:"wrapper"};function Wt(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-accordion",Ut,[n.renderSlot(a.$slots,"default")],512)}const Gt=A(Ot,[["render",Wt]]),Yt={name:"AccordionItem",props:{title:{type:String,required:!0},titlecolour:{type:String,required:!1},badge:{type:[Number,String],required:!1},badgecolour:{type:String,required:!1,default:"light"},lazy:{type:Boolean,required:!1}},computed:{createID(){return a=>`${dt(a)}`}},data(){return{show:!this.lazy}}},Kt=["id"];function Xt(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("details",{id:c.createID(t.title)},[n.createElementVNode("summary",null,[n.createTextVNode(n.toDisplayString(t.title),1),t.badge?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(`badge bg-${t.badgecolour}`)},n.toDisplayString(t.badge),3)):n.createCommentVNode("",!0)]),n.renderSlot(a.$slots,"default")],8,Kt)}const Jt=A(Yt,[["render",Xt]]),Qt={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1},background:{type:String,default:"light",required:!1}}},Zt={class:"container"},te={class:"row"},ee={class:"col-sm-6"},ae={class:"pt-5 pb-3 px-4"},oe={class:"col-sm-6 col-md-5 ms-auto"},ne=["src"];function re(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("div",Zt,[n.createElementVNode("div",{class:n.normalizeClass("bg-"+t.background+" mb-4")},[n.createElementVNode("div",te,[n.createElementVNode("div",ee,[n.createElementVNode("div",ae,[n.createElementVNode("h2",null,n.toDisplayString(t.title),1),n.renderSlot(a.$slots,"default")])]),n.createElementVNode("div",oe,[t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:t.image,alt:"",class:"h-100 w-100 object-cover"},null,8,ne)):n.createCommentVNode("",!0)])])],2)])}const ie=A(Qt,[["render",re]]),se={name:"Card",created(){this.$nextTick(function(){Promise.resolve().then(()=>Ro).then(a=>{window.customElements.get("iam-card")||window.customElements.define("iam-card",a.default)}).catch(a=>{console.log(a.message)})})}};function le(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-card",null,[n.renderSlot(a.$slots,"default")])}const ce=A(se,[["render",le]]),de={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Vo).then(a=>{window.customElements.get("iam-carousel")||window.customElements.define("iam-carousel",a.default)}).catch(a=>{console.log(a.message)})})}};function me(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-carousel",null,[n.renderSlot(a.$slots,"default")])}const ue=A(de,[["render",me]]),he={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Po).then(a=>{window.customElements.get("iam-header")||window.customElements.define("iam-header",a.default)}).catch(a=>{console.log(a.message)})})}},pe=["image"],be=["innerHTML"];function fe(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-header",{image:t.image},[n.renderSlot(a.$slots,"breadcrumb"),t.title?(n.openBlock(),n.createElementBlock("h1",{key:0,innerHTML:t.title},null,8,be)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default")],8,pe)}const ge=A(he,[["render",fe]]);function ye(a){var e;const t=a.querySelector(".testimonial__images"),r=t.querySelectorAll("img").length;if(r==1)return!1;a.classList.add("testimonial--multi");const s=function(c){const o=a.querySelector(".btn-next"),i=a.querySelector(".btn-prev");o.setAttribute("data-go",c+1),i.setAttribute("data-go",c-1),o.removeAttribute("disabled"),i.removeAttribute("disabled"),c==1?i.setAttribute("disabled",!0):c==r&&o.setAttribute("disabled",!0)};t.addEventListener("scroll",function(c){clearTimeout(e),e=setTimeout(function(){let o=t.scrollWidth,i=t.scrollHeight,d=t.scrollLeft,l=t.scrollTop,h=Math.round(d/o*r)+1;d==0&&l!=0&&(h=Math.round(l/i*r)+1),a.setAttribute("data-show",h),s(h)},300)},!1),a.addEventListener("click",function(c){for(var o=c.target;o&&o!=this;o=o.parentNode)if(o.matches("[data-go]")){let i=parseInt(o.getAttribute("data-go")),d=0,l=0,h=t.scrollWidth,m=t.scrollHeight;h>m?l=Math.floor(h*((i-1)/r)):d=Math.floor(m*((i-1)/r)),t.scroll({top:d,left:l,behavior:"smooth"});break}},!1)}const un="",ve={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){ye(this.$refs.wrapper)}},we={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},_e={class:"row"},ke={class:"col-md-5 position-relative"},Ae={class:"testimonial__images"},xe=["src"],Le=n.createElementVNode("div",{class:"testimonial__controls"},[n.createElementVNode("button",{"data-go":"0",disabled:"",class:"btn-prev"},"Previous"),n.createElementVNode("button",{"data-go":"2",class:"btn-next"},"Next")],-1),Se={class:"col-md-7"},Ee=n.createElementVNode("h2",null,"What our customers think…",-1),qe={class:"testimonial__content"},$e=["innerHTML"],Te=["innerHTML"],Ce={class:"testimonial__after"},Me=n.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1);function He(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("div",we,[n.createElementVNode("div",{class:n.normalizeClass("bg-"+t.background)},[n.createElementVNode("div",_e,[n.createElementVNode("div",ke,[n.createElementVNode("div",Ae,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,i)=>(n.openBlock(),n.createElementBlock("img",{key:i,src:o.image?o.image:"data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"",class:n.normalizeClass("h-100 w-100 object-cover"+(o.image?"":" opacity-0"))},null,10,xe))),128))]),Le]),n.createElementVNode("div",Se,[Ee,n.createElementVNode("div",qe,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,i)=>(n.openBlock(),n.createElementBlock("blockquote",{key:i,class:n.normalizeClass(o.class)},[n.createElementVNode("div",{innerHTML:o.quote},null,8,$e),n.createElementVNode("cite",{innerHTML:o.cite},null,8,Te)],2))),128))]),n.createElementVNode("div",Ce,[n.renderSlot(a.$slots,"default")])])]),Me],2)],512)}const Be=A(ve,[["render",He]]),hn="",Ne={name:"Timeline",props:{image:{type:String,required:!1}}},Re={class:"timeline"},De={class:"timeline__content"},je=["src"];function Ve(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("div",Re,[n.createElementVNode("div",De,[n.renderSlot(a.$slots,"default")]),t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:t.image,alt:""},null,8,je)):n.createCommentVNode("",!0)])}const ze=A(Ne,[["render",Ve]]),pn="",Pe={components:{Input:N},name:"PropertySearchbar",props:{formaction:{type:String,required:!1},formmethod:{type:String,required:!1},location:{type:String,required:!1},locations:{type:Array,required:!1},distances:{type:Array,required:!1,default(){return[{value:"0.25",display:"+¼ mi"},{value:"0.5",display:"+½ mi"},{value:"1",display:"+1 mi"},{value:"2",display:"+2 mi"},{value:"3",display:"+3 mi"},{value:"4",display:"+4 mi"},{value:"5",display:"+5 mi"}]}},pricemin:{type:Array,required:!1,default(){return[{value:"0",display:"No min"},{value:"50000",display:"£50k min"},{value:"75000",display:"£75k min"},{value:"100000",display:"£100k min"},{value:"150000",display:"£150k min"},{value:"200000",display:"£200k min"},{value:"250000",display:"£250k min"}]}},pricemax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"50000",display:"£50k max"},{value:"75000",display:"£75k max"},{value:"100000",display:"£100k max"},{value:"150000",display:"£150k max"},{value:"200000",display:"£200k max"},{value:"250000",display:"£250k max"}]}},bedsmin:{type:Array,required:!1,default(){return[{value:"any",display:"No min"},{value:"0",display:"Studio min"},{value:"1",display:"1 bed min"},{value:"2",display:"2 beds min"},{value:"3",display:"3 beds min"},{value:"4",display:"4 beds min"},{value:"5",display:"5 beds min"},{value:"6",display:"6 beds min"}]}},bedsmax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"0",display:"Studio max"},{value:"1",display:"1 bed max"},{value:"2",display:"2 beds max"},{value:"3",display:"3 beds max"},{value:"4",display:"4 beds max"},{value:"5",display:"5 beds max"},{value:"6",display:"6 beds max"}]}},propertytypes:{type:Array,required:!1,default(){return[{value:"all",display:"Show all"},{value:"Bungalow",display:"Bungalow"},{value:"Character Property",display:"Character Property"},{value:"Commercial Property",display:"Commercial Property"},{value:"Flat / Apartment",display:"Flat / Apartment"},{value:"Garage / Parking",display:"Garage / Parking"},{value:"Guest House / Hotel",display:"Guest House / Hotel"},{value:"House",display:"House"},{value:"House / Flat Share",display:"House / Flat Share"},{value:"Land",display:"Land"},{value:"Mobile / Park Home",display:"Mobile / Park Home"},{value:"Private Halls",display:"Private Halls"},{value:"Retirement Property",display:"Retirement Property"}]}}},data(){return{locationSave:""}},methods:{locationKeyup:function(a){this.$emit("locationKeyup",a)}},computed:{locationSet:{get(){return this.locationSave?this.locationSave:this.location},set(a){this.locationSave=a,this.$emit("input",a)}},locationsList(){return()=>this.locations?this.locations:[{value:"Newcastle"}]}}},Fe={class:"container",ref:"wrapper"},Ie={class:"property-searchbar"},Oe=["action","method"],Ue={class:"col-12 col-md-3"},We={class:"col-12 col-md"},Ge=n.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1),Ye={class:"row","data-input-range":""},Ke={class:"col-12 col-md"},Xe=n.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1),Je={class:"row","data-input-range":""},Qe={class:"col-12 col-md-2"},Ze=n.createElementVNode("div",{class:"col-12 col-md mw-md-fit-content d-flex property-searchbar__btn"},[n.createElementVNode("button",{class:"btn w-100 me-0",type:"submit",value:"submit"},"Search")],-1);function ta(a,e,t,r,s,c){const o=n.resolveComponent("Input");return n.openBlock(),n.createElementBlock("div",Fe,[n.renderSlot(a.$slots,"default"),n.createElementVNode("div",Ie,[n.createElementVNode("form",{class:"row",action:t.formaction,method:t.formmethod},[n.createElementVNode("fieldset",Ue,[n.createVNode(o,{inputClass:"input--locations",modelValue:c.locationSet,"onUpdate:modelValue":e[0]||(e[0]=i=>c.locationSet=i),label:"Location",id:"location",options:c.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:e[1]||(e[1]=i=>c.locationKeyup(...arguments)),ref:"search"},null,8,["modelValue","options"]),n.createVNode(o,{class:"select--miles",label:"Miles",id:"miles",type:"select",options:t.distances},null,8,["options"])]),n.createElementVNode("fieldset",We,[Ge,n.createElementVNode("div",Ye,[n.createVNode(o,{class:"col-6",label:"Minimum price",id:"price-min","data-min":"true",type:"select",options:t.pricemin},null,8,["options"]),n.createVNode(o,{class:"col-6",label:"Maximum price",id:"price-max","data-max":"true",type:"select",options:t.pricemax},null,8,["options"])])]),n.createElementVNode("fieldset",Ke,[Xe,n.createElementVNode("div",Je,[n.createVNode(o,{class:"col-6",label:"Minimum beds",id:"beds-min","data-min":"true",type:"select",options:t.bedsmin},null,8,["options"]),n.createVNode(o,{class:"col-6",label:"Maximum beds",id:"beds-max","data-max":"true",type:"select",options:t.bedsmax},null,8,["options"])])]),n.createElementVNode("fieldset",Qe,[n.createVNode(o,{label:"Property type",id:"property-type",type:"select",options:t.propertytypes},null,8,["options"])]),Ze],8,Oe)]),n.renderSlot(a.$slots,"after")],512)}const ea=A(Pe,[["render",ta]]),aa={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Fo).then(a=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",a.default)}).catch(a=>{console.log(a.message)})})},methods:{}},oa={ref:"wrapper"};function na(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-nav",oa,[n.renderSlot(a.$slots,"default")],512)}const ra=A(aa,[["render",na]]),bn="",ia={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},sa={class:"container"},la=["aria-label"],ca={key:0,class:"h6 stepper__start"},da={class:"list-unstyled"},ma={class:"h6 stepper__end"};function ua(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("div",sa,[n.createElementVNode("nav",{class:"stepper","aria-label":t.label?t.label:"Progress"},[t.label?(n.openBlock(),n.createElementBlock("span",ca,n.toDisplayString(t.label),1)):n.createCommentVNode("",!0),n.createElementVNode("ol",da,[n.renderSlot(a.$slots,"default")]),n.createElementVNode("span",ma,n.toDisplayString(t.endlabel),1)],8,la)])}const ha=A(ia,[["render",ua]]),fn="",pa={name:"Snapshot",props:{items:{type:Array,required:!0}}},ba={class:"container snapshot",ref:"wrapper"},fa={class:"row"},ga=["href"],ya={class:"lead snapshot__title"},va={class:"stat"};function wa(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("div",ba,[n.renderSlot(a.$slots,"default"),n.createElementVNode("div",fa,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,i)=>(n.openBlock(),n.createElementBlock("div",{class:"col",key:i},[o.link?(n.openBlock(),n.createElementBlock("a",{key:0,href:o.link},"View "+n.toDisplayString(o.title),9,ga)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`snapshot__item ${o.bg?"bg-"+o.bg:""}`)},[n.createElementVNode("span",ya,n.toDisplayString(o.title),1),n.createElementVNode("span",va,n.toDisplayString(o.number),1)],2)]))),128))])],512)}const _a=A(pa,[["render",wa]]),ka={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},Aa=["href","aria-current"],xa={key:0,class:"visually-hidden"};function La(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("li",null,[n.createElementVNode("a",{href:t.url,class:n.normalizeClass(`${t.status?"bg-"+t.status:""}${typeof t.current<"u"?"current":""}`),"aria-current":typeof t.current<"u"?"step":!1},[n.createElementVNode("span",null,[n.renderSlot(a.$slots,"default")]),t.status?(n.openBlock(),n.createElementBlock("em",xa," - status: "+n.toDisplayString(t.status),1)):n.createCommentVNode("",!0)],10,Aa)])}const Sa=A(ka,[["render",La]]),gn="",Ea={name:"Tabs",created(){this.$nextTick(function(){Promise.resolve().then(()=>Yo).then(a=>{window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",a.default)}).catch(a=>{console.log(a.message)})})}},qa={ref:"wrapper"};function $a(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-tabs",qa,[n.renderSlot(a.$slots,"default")],512)}const Ta=A(Ea,[["render",$a]]),Ca={name:"Tab",props:{title:{type:String,required:!0},lazy:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},data(){return{show:!this.lazy,isDisabled:!!this.disabled}}},Ma={class:"tab"},Ha=["innerHTML"];function Ba(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("details",Ma,[n.createElementVNode("summary",{innerHTML:t.title,class:n.normalizeClass({disabled:s.isDisabled})},null,10,Ha),n.renderSlot(a.$slots,"default")])}const Na=A(Ca,[["render",Ba]]);let F=B.props;F.fields.required=!1;const Ra={components:{Table:B,Input:N},data(){return{itemsData:[...this.items]}},methods:{submitForm:function(a){console.log(this);const e=new FormData(a.target);let t=new Date;const r=t.getFullYear();let s=t.getMonth()+1,c=t.getDate();c<10&&(c="0"+c),s<10&&(s="0"+s),t=c+"/"+s+"/"+r,this.itemsData.unshift({date_added:t,user:e.get("user"),note:e.get("addNote")}),this.$emit("formSubmitted",a)}},name:"NoteFeed",props:{user:{type:String,required:!0},...F,title:{type:String,required:!1},method:{type:String,required:!1,default:"post"},action:{type:String,required:!1}}},Da={class:"container note-feed mb-2"},ja=["innerHTML"],Va=["action","method"],za=["value"],Pa=n.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1);function Fa(a,e,t,r,s,c){const o=n.resolveComponent("Table"),i=n.resolveComponent("Input");return n.openBlock(),n.createElementBlock("div",Da,[t.title?(n.openBlock(),n.createElementBlock("span",{key:0,class:"h3",innerHTML:t.title},null,8,ja)):n.createCommentVNode("",!0),n.createVNode(o,n.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:s.itemsData},a.$props,{class:"mb-0"}),null,16,["items"]),n.createElementVNode("form",{action:t.action,method:t.method,onSubmit:e[0]||(e[0]=n.withModifiers(d=>c.submitForm(...arguments),["prevent"]))},[n.createElementVNode("input",{type:"hidden",value:t.user,name:"user"},null,8,za),n.createVNode(i,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),Pa],40,Va)])}const Ia=A(Ra,[["render",Fa]]),Oa={name:"Applied Filter",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Jo).then(a=>{window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",a.default)}).catch(a=>{console.log(a.message)})})}};function Ua(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-applied-filters",null,[n.renderSlot(a.$slots,"default")])}const Wa=A(Oa,[["render",Ua]]);/*!
17
- * iamKey v5.6.1-beta2
17
+ * iamKey v5.6.1-beta3
18
18
  * Copyright 2022-2024 iamproperty
19
19
  */function Ga(a,e){Ya(a,e)}function Ya(a,e){var t;e.addEventListener("keyup",r=>{clearTimeout(t),t=setTimeout(function(){I(a,e.value)},500)}),e.addEventListener("change",r=>{clearTimeout(t),I(a,e.value)})}const I=function(a,e){Array.from(a.querySelectorAll(":scope > li")).forEach((t,r)=>{let s=t.textContent.toLowerCase();t.classList.add("d-none"),s.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 Ka extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
20
20
  <style>
@@ -56,7 +56,7 @@
56
56
  ${this.hasAttribute("data-dismiss")?'<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>':""}
57
57
  </div>
58
58
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("notificationHolder")||document.head.insertAdjacentHTML("beforeend",`<style id="notificationHolder">${s}</style>`)}connectedCallback(){const e=this.shadowRoot.querySelector("[data-dismiss-button]"),t=this.hasAttribute("data-status")?this.getAttribute("data-status"):"white";this.hasAttribute("data-type")?this.classList.add(`bg-${t}`):this.classList.add(`colour-${t}`);const r=this;if(!this.querySelector("i"))switch(t){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>'}Za(r),e&&e.addEventListener("click",function(s){R(r)},!1)}}const ao={name:"Notification",props:{},created(){this.$nextTick(function(){window.customElements.get("iam-notification")||window.customElements.define("iam-notification",eo)})}};function oo(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-notification",null,[n.renderSlot(a.$slots,"default")])}const no=A(ao,[["render",oo]]),ro={name:"Actionbar",props:{},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>an).then(a=>{window.customElements.get("iam-actionbar")||window.customElements.define("iam-actionbar",a.default)}).catch(a=>{console.log(a.message)})})}};function io(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-actionbar",null,[n.renderSlot(a.$slots,"default")])}const so=A(ro,[["render",io]]);/*!
59
- * iamKey v5.6.1-beta2
59
+ * iamKey v5.6.1-beta3
60
60
  * Copyright 2022-2024 iamproperty
61
61
  */let O=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
62
62
  <style>
@@ -100,7 +100,7 @@
100
100
  <option value="${m*2}">${m*2}</option>
101
101
  <option value="${m*3}">${m*3}</option>
102
102
  <option value="${m*4}">${m*4}</option>`),o.value=m}static get observedAttributes(){return["data-total","data-increment","data-page","data-show"]}attributeChangedCallback(e,t,r){switch(e){case"data-total":{t!=r&&(this.setAttribute("data-page",1),this.setup());break}case"data-show":{t!=r&&(this.setAttribute("data-page",1),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:r}})));break}case"data-increment":{t!=r&&(this.setAttribute("data-show",r),this.setAttribute("data-page",1),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:r}})));break}case"data-page":{t&&t!=r&&(this.setup(),this.dispatchEvent(new CustomEvent("update-page",{detail:{page:r}})));break}}}};const lo=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"})),co={name:"Pagination",props:{},computed:{},created(){this.$nextTick(function(){window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",O)})},updated(){}};function mo(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-pagination")}const uo=A(co,[["render",mo]]),ho={name:"Address Lookup",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>sn).then(a=>{window.customElements.get("iam-address-lookup")||window.customElements.define("iam-address-lookup",a.default)}).catch(a=>{console.log(a.message)})})}};function po(a,e,t,r,s,c){return n.openBlock(),n.createElementBlock("iam-address-lookup",null,[n.renderSlot(a.$slots,"default")])}const bo=A(ho,[["render",po]]);/*!
103
- * iamKey v5.6.1-beta2
103
+ * iamKey v5.6.1-beta3
104
104
  * Copyright 2022-2024 iamproperty
105
105
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"collapsible side menu"});class fo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
106
106
  <style class="styles">
@@ -112,14 +112,14 @@
112
112
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
113
113
  <div class="container" part="container">
114
114
 
115
- <div class="side-menu">
116
- <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
117
- <div class="side-menu-content closed">
115
+ <div class="side-menu" part="side-menu">
116
+ <button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
117
+ <div class="side-menu-content closed" part="side-menu-content">
118
118
  <slot name="menu"></slot>
119
119
  </div>
120
120
  </div>
121
121
 
122
- <div class="main-content">
122
+ <div class="main-content" part="main-content">
123
123
  <slot></slot>
124
124
  </div>
125
125
 
@@ -150,7 +150,7 @@
150
150
  </div>
151
151
  <iam-pagination class="pagination--table" ${this.hasAttribute("data-page")?`data-page="${this.getAttribute("data-page")}"`:""} ></iam-pagination>
152
152
  `,this.shadowRoot.appendChild(c.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",`<style id="tableExtras">${s}</style>`)}connectedCallback(){const e=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",e.has("page")?e.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",e.has("show")?e.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",this.getAttribute("data-show"));let t=this.classList.toString();if(t=t.replace("table--cta",""),t=t.replace("table--loading",""),this.shadowRoot.querySelector(".table__wrapper").className+=` ${t}`,this.querySelector(".actionbar__sticky")&&this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"),this.table=this.querySelector("table"),this.savedTableBody=this.table.querySelector("tbody").cloneNode(!0),this.pagination=this.shadowRoot.querySelector("iam-pagination"),this.pagination.setAttribute("data-total",this.getAttribute("data-total")),this.pagination.setAttribute("data-page",this.getAttribute("data-page")),this.pagination.setAttribute("data-show",this.getAttribute("data-show")),this.pagination.setAttribute("data-increment",this.getAttribute("data-show")),this.hasAttribute("data-page-jump")&&this.pagination.setAttribute("data-page-jump","true"),this.hasAttribute("data-per-page")&&this.pagination.setAttribute("data-per-page","true"),this.hasAttribute("data-item-count")&&this.pagination.setAttribute("data-item-count","true"),this.hasAttribute("data-loading")&&this.pagination.setAttribute("data-loading","true"),this.classList.contains("table--fullwidth")&&this.pagination.setAttribute("data-minimal","true"),this.classList.contains("table--cta")||this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"),this.form=document.createElement("form"),this.hasAttribute("data-filterby")?this.form=document.querySelector(`#${this.getAttribute("data-filterby")}`):this.table.parentNode.insertBefore(this.form,this.table.nextSibling),this.form.hasAttribute("data-ajax")&&this.table.classList.add("table--ajax"),W(this.table,this.form),this.form.querySelector("[data-pagination]")||this.form.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`),this.form.querySelector("[data-show]")||this.form.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`),So(this.table),Eo(this.table,this.form,this.pagination,this,this.savedTableBody),qo(this.table,this.form,this.pagination,this),$o(this.shadowRoot.querySelector("[data-export]"),this.table),this.form.getAttribute("data-ajax"))X(this.table,this.form,this.pagination,this);else{let s=function(o=1){return Math.floor(Math.random()*Date.now()*(o+1))};if(this.querySelector("iam-actionbar[data-selectall]")||document.querySelector(`iam-actionbar[data-for='${this.getAttribute("id")}']`)){const o=this.querySelector("iam-actionbar[data-selectall]")?this.querySelector("iam-actionbar[data-selectall]"):document.querySelector(`iam-actionbar[data-for='${this.getAttribute("id")}']`);Array.from(this.table.querySelectorAll("thead tr")).forEach((i,d)=>{i.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')}),Array.from(this.table.querySelectorAll("tbody tr")).forEach((i,d)=>{let l=`row${s(d)}`;i.insertAdjacentHTML("afterbegin",`<td class="td--fixed selectrow"><input type="checkbox" name="row" id="${l}"/><label for="${l}"><span class="visually-hidden">Select row</span></label></td>`)}),this.table.addEventListener("change",i=>{if(i&&i.target instanceof HTMLElement&&i.target.closest(".selectrow input")){let d=this.table.querySelectorAll('.selectrow input[type="checkbox"]').length,l=this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;o.setAttribute("data-selected",d==l?"all":l)}}),o.addEventListener("selected",i=>{i.detail.selected=="0"?Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d,l)=>{d.checked=!1}):i.detail.selected=="all"&&Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d,l)=>{d.checked=!0})})}let c=-1;Array.from(this.table.querySelectorAll("tbody tr")).forEach((o,i)=>{if(o.querySelector(":scope > td > .dialog__wrapper")){let d=o.querySelector(":scope > td > .dialog__wrapper").parentNode;d.classList.add("td--fixed"),c=Array.from(d.parentNode.children).indexOf(d)}}),c!=-1&&(this.table.querySelector(`thead tr th:nth-child(${c+1})`).classList.add("th--fixed"),Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${c+1})`)).forEach((o,i)=>{o.classList.add("td--fixed")})),Y(this.table,this.form,this.pagination,this),D(this.table,this.form,this),C(this.table,this.form)}this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll",s=>{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(e,t,r){switch(this.pagination=this.shadowRoot.querySelector("iam-pagination"),e){case"data-total":{t!=r&&this.pagination.setAttribute("data-total",r);break}case"data-show":{t!=r&&this.pagination.setAttribute("data-show",r);break}case"data-page":{t!=r&&this.pagination.setAttribute("data-page",r);break}}}}const Mo=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"}));/*!
153
- * iamKey v5.6.1-beta2
153
+ * iamKey v5.6.1-beta3
154
154
  * Copyright 2022-2024 iamproperty
155
155
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class Ho extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
156
156
  <style>
@@ -192,7 +192,7 @@
192
192
  </div>
193
193
  </div>
194
194
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("cardGlobal")||document.head.insertAdjacentHTML("beforeend",`<style id="cardGlobal">${c}</style>`)}connectedCallback(){this.classList.add("loaded");const e=this.parentNode.closest("a, button, label, router-link"),t=this.shadowRoot.querySelector(".card"),r=this.shadowRoot.querySelector(".btn-compact");if(e&&e.setAttribute("tabindex","-1"),e.matches("label[for]")&&(document.getElementById(e.getAttribute("for")).checked?t.classList.add("checked"):t.classList.remove("checked")),this.addEventListener("click",s=>{let c=new Event("click");t.dispatchEvent(c)}),t.addEventListener("click",s=>{if(e.matches("label[for]")){s.stopPropagation(),s.preventDefault();const c=document.getElementById(e.getAttribute("for")),o=c.getAttribute("name"),i=c.getAttribute("id");Array.from(document.querySelectorAll(`[name="${o}"][type="radio"]:not([id="${i}"])`)).forEach((h,m)=>{document.querySelector(`[for="${h.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),e.click(),c.checked?t.classList.add("checked"):t.classList.remove("checked")}}),this.addEventListener("inactive",s=>{t.classList.remove("checked")}),t.addEventListener("keydown",s=>{switch(s.keyCode){case 32:case 13:if(e.matches("label[for]")){s.stopPropagation(),s.preventDefault();const c=document.getElementById(e.getAttribute("for")),o=c.getAttribute("name"),i=c.getAttribute("id");Array.from(document.querySelectorAll(`[name="${o}"]:not([id="${i}"])`)).forEach((h,m)=>{document.querySelector(`[for="${h.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),e.click(),c.checked?t.classList.add("checked"):t.classList.remove("checked")}else e.click();break}}),r){let s=this.getAttribute("data-add-link");r.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault(),window.location=s})}}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(e,t,r){switch(e){case"data-total":{this.shadowRoot.querySelector(".card__total")&&(this.shadowRoot.querySelector(".card__total").innerHTML=r);break}case"class":{let s=this.classList.toString();this.querySelector('*:not(.badge):not(small):not(.btn) > [class*="fa-"]:not(.btn)')&&(s+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class",`card ${s}`);break}}}}const Ro=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"}));/*!
195
- * iamKey v5.6.1-beta2
195
+ * iamKey v5.6.1-beta3
196
196
  * Copyright 2022-2024 iamproperty
197
197
  */function Do(a,e){var t;let r=a.querySelector(".carousel__inner"),s=a.querySelector(".carousel__controls"),c=e.querySelectorAll(".col").length;r.addEventListener("scroll",function(o){clearTimeout(t),t=setTimeout(function(){let i=r.clientWidth,d=r.scrollWidth,l=r.scrollLeft,h=Math.round(l/d*c)+1,m=e.querySelector(".col:last-child").offsetLeft+50;r.scrollLeft+i>=m&&(h=c),Array.from(a.querySelectorAll(".carousel__controls button")).forEach((p,u)=>{p.removeAttribute("aria-current")}),a.querySelector(".control-"+h).setAttribute("aria-current",!0),h==1?a.querySelector(".btn-prev").setAttribute("disabled","disabled"):a.querySelector(".btn-prev").removeAttribute("disabled"),h==c?a.querySelector(".btn-next").setAttribute("disabled","disabled"):a.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),s.addEventListener("click",function(o){for(var i=o.target;i&&i!=this;i=i.parentNode)if(typeof i.matches=="function"&&i.matches("button")){o.preventDefault(),Array.from(s.querySelectorAll("button")).forEach((l,h)=>{l.removeAttribute("aria-current")}),i.setAttribute("aria-current",!0);const d=e.querySelector(`*:nth-child(${i.getAttribute("data-slide")})`);r.scroll({top:0,left:d.offsetLeft,behavior:"smooth"});break}},!1),a.addEventListener("click",function(o){for(var i=o.target;i&&i!=this;i=i.parentNode)if(typeof i.matches=="function"&&i.matches(".btn-next, .btn-prev")){o.preventDefault();let d=i.classList.contains("btn-prev")?r.scrollLeft-r.clientWidth:r.scrollLeft+r.clientWidth;r.scroll({top:0,left:d,behavior:"smooth"});break}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"carousel"});class jo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
198
198
  <style>
@@ -218,7 +218,7 @@
218
218
  </div>
219
219
  </div>
220
220
  `,this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){const e=this.shadowRoot.querySelector(".carousel"),t=this.querySelector(".row"),r=this.shadowRoot.querySelector(".carousel__controls");let s=this.querySelectorAll(":scope > .row > .col").length;e.setAttribute("data-row-class",t.className),this.classList.contains("hide-btns")&&e.classList.add("hide-btns"),this.classList.contains("hide-controls")&&e.classList.add("hide-controls");let c="";for(let o=1;o<=s;o++)c+=`<button class="control-${o}" data-slide="${o}" ${o==1?"aria-current":""}>Slide ${o}</button>`;r.innerHTML=c,Do(e,t)}}const Vo=Object.freeze(Object.defineProperty({__proto__:null,default:jo},Symbol.toStringTag,{value:"Module"}));/*!
221
- * iamKey v5.6.1-beta2
221
+ * iamKey v5.6.1-beta3
222
222
  * Copyright 2022-2024 iamproperty
223
223
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class zo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
224
224
  <style>
@@ -236,7 +236,7 @@
236
236
  </div>
237
237
  </div>
238
238
  `,this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){this.classList.add("bg-primary");const e=this.shadowRoot.querySelector("picture"),t=this.shadowRoot.querySelector("picture img");this.hasAttribute("image")?t.setAttribute("src",this.getAttribute("image")):e.remove()}}const Po=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"}));/*!
239
- * iamKey v5.6.1-beta2
239
+ * iamKey v5.6.1-beta3
240
240
  * Copyright 2022-2024 iamproperty
241
241
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});const Fo=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"}),t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",r=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,s=document.createElement("template");s.innerHTML=`
242
242
  <style class="styles">
@@ -285,7 +285,7 @@
285
285
  </div>
286
286
  </div>
287
287
  </dialog>`);let i=this.shadowRoot.querySelector("#search-button"),d=this.shadowRoot.querySelector("#search-close"),l=this.shadowRoot.querySelector("#search-dialog");this.hasAttribute("data-search-open")&&(l.setAttribute("open","open"),this.classList.add("search-open"),i.setAttribute("aria-expanded",!0)),i.addEventListener("click",h=>{l.setAttribute("open","open"),this.classList.add("search-open"),i.setAttribute("aria-expanded",!0)}),d.addEventListener("click",h=>{l.removeAttribute("open"),this.classList.remove("search-open"),i.removeAttribute("aria-expanded")})}}}},Symbol.toStringTag,{value:"Module"}));/*!
288
- * iamKey v5.6.1-beta2
288
+ * iamKey v5.6.1-beta3
289
289
  * Copyright 2022-2024 iamproperty
290
290
  */const Io=function(a){a.querySelectorAll(":scope > details");const e=a.querySelectorAll(":scope > details, :scope > a");a.querySelectorAll(":scope > details > summary");let t=a.querySelector(":scope > .tabs__links");if(a.shadowRoot&&a.shadowRoot.querySelector(".tabs__links")&&(t=a.shadowRoot.querySelector(".tabs__links")),!t){t=document.createElement("div"),t.classList.add("tabs__links");let s=document.createElement("div");s.classList.add("tabs__links__wrapper"),s.prepend(t),a.prepend(s)}let r=0;e.forEach((s,c)=>{let o=document.createElement("button");if(s.matches("details")){let i=s.querySelector(":scope > summary"),d=i.classList.contains("disabled");i.classList.add("visually-hidden"),s.hasAttribute("id")&&o.setAttribute("data-id",`${s.getAttribute("id")}`),s.hasAttribute("open")&&o.setAttribute("aria-pressed",!0),o.innerHTML=`${i.innerText}`,o.classList.add("link"),o.setAttribute("data-index",r),s.setAttribute("tabindex","-1"),d&&o.classList.add("disabled"),r++}else s.matches("a")&&(o=s);o.classList.add("link"),t.appendChild(o)})},Oo=function(a){let e=a.querySelectorAll(":scope > details"),t=a.querySelectorAll(":scope > details > summary"),r=a.querySelectorAll(":scope .tabs__links > button");a.shadowRoot&&(r=a.shadowRoot.querySelectorAll(".tabs__links > button")),r.forEach(s=>{s.addEventListener("click",c=>{if(c.preventDefault(),s.classList.contains("disabled"))return!1;r.forEach(o=>{let i=o==s;o.setAttribute("aria-pressed",i)}),e.forEach((o,i)=>{let d=s.getAttribute("data-index")==i;d?o.setAttribute("open",d):o.removeAttribute("open")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:s.textContent})})}),t.forEach((s,c)=>{s.addEventListener("click",o=>{o.preventDefault(),r[c].click()})})},Uo=function(a){if(!a.querySelector(":scope > details"))return!1;let e=a.querySelectorAll(":scope > details"),t=a.shadowRoot.querySelectorAll(".tabs__links > button");location.hash&&a.shadowRoot.querySelector(`.tabs__links [data-id="${location.hash.replace("#","")}"]`)?(a.shadowRoot.querySelector(`[data-id="${location.hash.replace("#","")}"]`).setAttribute("aria-pressed",!0),a.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):a.querySelector("details[open]")||(e[0].setAttribute("open",!0),t[0].setAttribute("aria-pressed",!0))},Wo=function(a){Io(a),Oo(a),Uo(a)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class Go extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
291
291
  <style>
@@ -314,7 +314,7 @@
314
314
  <div class="applied-filters ${s}"></div>
315
315
  <slot></slot>
316
316
  `,this.shadowRoot.appendChild(c.content.cloneNode(!0))}connectedCallback(){Ko(this,this.shadowRoot.querySelector(".applied-filters"))}}const Jo=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"}));/*!
317
- * iamKey v5.6.1-beta2
317
+ * iamKey v5.6.1-beta3
318
318
  * Copyright 2022-2024 iamproperty
319
319
  */const Qo=function(a){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var e=a.getAttribute("data-id"),t=a.getAttribute("id");if(typeof t>"u"||t==null){var r=String.fromCharCode(65+Math.floor(Math.random()*26));t=r+Date.now(),a.setAttribute("id",t)}function s(){window.player=new YT.Player(t,{height:"100%",width:"100%",videoId:e,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:c,onStateChange:i}})}s();function c(d){d.target.playVideo()}var o=!1;function i(d){if(d.data==YT.PlayerState.PLAYING&&!o){var l=document.getElementById(t);l.classList.add("player-ready"),o=!0}}},Zo=a=>(Array.from(a.querySelectorAll("dialog[open]")).forEach((e,t)=>{e.closest(".dialog__wrapper")||(e.removeAttribute("open"),e.showModal(),e.focus(),J(e))}),a.addEventListener("click",e=>{if(e.target.tagName=="IAM-ACTIONBAR")return!1;if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-modal]")){const s=e.target.closest("[data-modal]"),c=s.hasAttribute("data-modal")?s.getAttribute("data-modal"):s.getAttribute("data-filter"),o=document.querySelector(`dialog#${c}`);J(o),o.showModal(),o.focus();let i=o.offsetWidth;o.setAttribute("style",`max-width: ${i}px;`),Array.from(o.querySelectorAll("[data-duplicate]")).forEach((d,l)=>{const h=d.getAttribute("data-duplicate"),m=document.getElementById(h);if(d.checked!=m.checked){d.checked=m.checked;let p=new Event("change");d.dispatchEvent(p)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:c})}if(e&&e.target instanceof HTMLElement&&e.target.closest("button.dialog__close")){const s=e.target.closest("dialog[open]");e.preventDefault(),s.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c,o)=>{c.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:s.getAttribute("id")})}if(e&&e.target instanceof HTMLElement&&e.target.closest('button[formmethod="dialog"]')){const s=e.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c,o)=>{c.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:s.getAttribute("id")})}if(e&&e.target instanceof HTMLElement&&e.target.closest("dialog[open]")){let s=e.target.closest("dialog[open]");var t=window.getComputedStyle(s);if(t.display==="contents"&&(s=s.parentNode.closest("dialog[open]")),!s.classList.contains("dialog--transactional")&&!s.classList.contains("dialog--acknowledgement")){const c=s.getBoundingClientRect();(e.clientX<c.left||e.clientX>c.right||e.clientY<c.top||e.clientY>c.bottom)&&(e.target.closest('input[type="radio"]')||s.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:s.getAttribute("id")}))}}if(e&&e.target instanceof HTMLElement&&e.target.closest(".dialog__wrapper > button")){e.stopPropagation();let s=e.target.closest(".dialog__wrapper > button"),c=s.parentNode,o="openPopover",i=c.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=i&&s.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((m,p)=>{m.removeAttribute("aria-expanded")}),i.hasAttribute("open"))i.close(),o="closePopover",i.removeAttribute("style"),s.removeAttribute("aria-expanded");else{i.show(),s.setAttribute("aria-expanded",!0);var r=s.getBoundingClientRect();let m=r.top,p=r.left;if(s.closest("iam-table")){let u=s.closest("iam-table").parentNode.getBoundingClientRect();m-=u.top,p-=u.left}i.classList.contains("dialog--fix")&&i.setAttribute("style",`position:fixed;top: ${m}px; left: ${p}px; margin: 3rem 0 0 0;`)}let d=i.getBoundingClientRect(),l=d.bottom-window.scrollY,h=window.innerHeight-window.scrollY;if(l>h){let m=i.hasAttribute("style")?i.getAttribute("style")+" ":"";i.setAttribute("style",m+"transform: translate(0, calc(-100% - 4rem))"),d=i.getBoundingClientRect(),d.top-window.scrollY<100&&i.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:o,id:s.textContent})}e&&e.target instanceof HTMLElement&&!e.target.closest("dialog[open]")&&!e.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((s,c)=>{s.removeAttribute("aria-expanded")}))}),null),J=a=>{let e=a.querySelector(".youtube-embed a");if(e&&Qo(e),a.classList.contains("dialog--multi")&&!a.querySelector(":scope > .steps")&&tn(a),!a.querySelector(":scope .mh-lg")&&!a.classList.contains("dialog--multi")){a.innerHTML=`<div class="mh-lg">${a.innerHTML}</div>`;let t=a.querySelector(".mh-lg"),r=a.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(r){let s=r.previousSibling;t.before(r),s&&r.before(s)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},tn=a=>{let e="",t=Array.from(a.querySelectorAll("fieldset[data-title]")),r=a.querySelector("form");t.forEach((o,i)=>{e+=`<button data-title="${o.getAttribute("data-title")}" type="button" class="${i==0?"active":""}" tabindex="-1">${o.getAttribute("data-title")}</button>`;const d=document.createElement("div");if(d.classList.add("btn--wrapper"),o.appendChild(d),i!=0&&(d.innerHTML+=`<button data-title="${t[i-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),i!=t.length-1&&(d.innerHTML+=`<button data-title="${t[i+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),i==t.length-1)if(r&&r.querySelector(':scope > button[type="submit"]')){let l=r.querySelector(':scope > button[type="submit"]');l.classList.add("mb-0"),d.insertAdjacentElement("beforeend",l)}else d.innerHTML+=`<button data-title="${t[i].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`}),a.insertAdjacentHTML("afterbegin",`<div class="steps bg-primary">${e}</div>`);let s=Array.from(a.querySelectorAll("fieldset.was-validated"));for(let o=0;o<s.length;o++){let i=s[o],d=i.getAttribute("data-title");if(i.querySelector(".is-invalid")){Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((l,h)=>{l.classList.add("active")});break}else Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((l,h)=>{l.classList.add("valid")})}a.addEventListener("invalid",function(){return function(o){o.preventDefault()}}(),!0);function c(o){const i=a.querySelector("fieldset.active")?a.querySelector("fieldset.active"):a.querySelector("fieldset[data-title]"),d=i.getAttribute("data-title");let l=!0;if(i.classList.add("was-validated"),Array.from(i.querySelectorAll("input")).forEach((p,u)=>{p.checkValidity()||(l=!1)}),l?Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((p,u)=>{p.classList.add("valid")}):Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((p,u)=>{p.classList.remove("valid")}),l||!o.hasAttribute("data-next")){const p=a.querySelector(`fieldset[data-title="${o.getAttribute("data-title")}"]`),u=a.querySelector(`.steps button[data-title="${o.getAttribute("data-title")}"]`);Array.from(a.querySelectorAll("button")).forEach((b,g)=>{b.classList.remove("active")}),Array.from(a.querySelectorAll("fieldset")).forEach((b,g)=>{b.classList.remove("active")}),u.classList.add("active"),p.classList.add("active")}let h=Array.from(a.querySelectorAll("fieldset")).length,m=Array.from(a.querySelectorAll("fieldset.valid")).length;a.style.setProperty("--progress",`${m/(h-1)*100}%`)}a.addEventListener("keydown",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest("button")){const i=o.target.closest("button");o.keyCode==13&&i.getAttribute("type")!="submit"&&(o.preventDefault(),c(i))}o&&o.target instanceof HTMLElement&&o.target.closest("input")&&(o.target.closest("input").classList.remove("is-invalid"),o.keyCode==13&&o.preventDefault())}),a.addEventListener("click",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest('button[type="submit"]'))o.target.closest("form").classList.add("was-validated");else if(o&&o.target instanceof HTMLElement&&o.target.closest("button[data-title]")){const i=o.target.closest("button[data-title]");c(i)}return null})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function Q(a,e){a&&e=="all"?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!0,a.querySelector("label").textContent="Select all"):a&&e==0?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!1,a.querySelector("label").textContent="Select all"):a&&e?(a.querySelector("input").indeterminate=!0,a.querySelector("input").checked=!1,a.querySelector("label").textContent=`${e} item${e>1?"s":""} selected`):a&&(a.querySelector("input").checked=!1,a.querySelector("input").indeterminate=!1,a.querySelector("label").textContent="Select all")}class en extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
320
320
  <style>
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "iamproperty"
6
6
  },
7
7
  "private": false,
8
- "version": "5.6.1-beta2",
8
+ "version": "5.6.1-beta3",
9
9
  "scripts": {
10
10
  "bootstrap": "copyfiles -u 2 node_modules/bootstrap/**/* assets/bootstrap",
11
11
  "dev": "npm run copy && node local_modules/delete-assets.js && vite --host",