@iamproperty/components 5.6.1-beta18 → 5.6.1-beta19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/carousel/carousel.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
- package/assets/js/components/fileupload/fileupload.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/slider/slider.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/modules/fileupload.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/ts/modules/fileupload.ts +1 -1
- package/dist/components.es.js +9 -9
- package/dist/components.umd.js +10 -10
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v5.6.1-
|
|
2
|
+
* iamKey v5.6.1-beta19
|
|
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],textarea[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),E=new Date(n.textContent.toLowerCase());A.setHours(0,0,0,0),L.setHours(0,0,0,0),E.setHours(0,0,0,0),o=E>=A&&E<=L}}else{var S=new Date,q=new Date(S.setDate(S.getDate()-(S.getDay()-1))),k=new Date(S.setDate(S.getDate()-S.getDay()+7)),x=new Date(n.textContent.toLowerCase());if(S.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(r.hasAttribute("data-no-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){if(r.hasAttribute("data-no-submit"))return!1;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),this.hasAttribute("data-no-submit")||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"))})),this.pagination.addEventListener("update-show",(t=>{var e=t.detail.show,a=new CustomEvent("update-show",{detail:{show:e}});this.dispatchEvent(a)})),this.pagination.addEventListener("update-page",(t=>{var e=t.detail.page,a=new CustomEvent("update-page",{detail:{page:e}});this.dispatchEvent(a)}))}static get observedAttributes(){return["data-total","data-page","data-show"]}attributeChangedCallback(t,e,a){if(this.hasAttribute("data-no-submit"))return!1;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 E 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")||this.hasAttribute("data-record")?'<div class="card__head">'.concat(this.hasAttribute("data-image")?'<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" part="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.hasAttribute("data-record")||!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" part="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(this.hasAttribute("data-record")&&this.getAttribute("data-record"),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 S extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/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" part="search-input" />\n </div>\n <div class="list__wrapper" part="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 part="dismiss-btn">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())})),Array.from(document.querySelectorAll("label progress")).forEach(((t,e)=>{t.closest("label").setAttribute("data-percent",t.getAttribute("value"))})),(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")}));var i=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:s.id}});t.target.dispatchEvent(i),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 c=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:c.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){var l=t.target.closest("dialog[open]");if("contents"===window.getComputedStyle(l).display&&(l=l.parentNode.closest("dialog[open]")),!l.classList.contains("dialog--transactional")&&!l.classList.contains("dialog--acknowledgement")){var d=l.getBoundingClientRect();(t.clientX<d.left||t.clientX>d.right||t.clientY<d.top||t.clientY>d.bottom)&&(t.target.closest("dialog *")||l.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:l.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();var u=t.target.closest(".dialog__wrapper > button"),h="openPopover",m=u.parentNode.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=m&&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(((t,e)=>{t.removeAttribute("aria-expanded")})),m.hasAttribute("open"))m.close(),h="closePopover",m.removeAttribute("style"),u.removeAttribute("aria-expanded");else{m.show(),u.setAttribute("aria-expanded",!0);var p=u.getBoundingClientRect(),b=p.top,f=p.left;if(u.closest("iam-table")){var g=u.closest("iam-table").parentNode.getBoundingClientRect();b-=g.top,f-=g.left}m.classList.contains("dialog--fix")&&m.setAttribute("style","position:fixed;top: ".concat(b,"px; left: ").concat(f,"px; margin: 3rem 0 0 0;"))}var y=m.getBoundingClientRect();if(y.bottom-window.scrollY>window.innerHeight-window.scrollY){var v=m.hasAttribute("style")?m.getAttribute("style")+" ":"";m.setAttribute("style",v+"transform: translate(0, calc(-100% - 4rem))"),(y=m.getBoundingClientRect()).top-window.scrollY<100&&m.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:h,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(((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",E),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",S),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(":scope > .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(":scope > .col:last-child").offsetLeft-50,l=e.querySelector(":scope > .col").scrollWidth,d=Math.round(a/l);r.scrollLeft+a>=c&&(i=Math.floor(n/d)*d+1),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(":scope > *:nth-child(".concat(a.getAttribute("data-slide"),")"));r.scroll({top:0,left:n.offsetLeft-100,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)}))}));
|
|
@@ -166,7 +166,7 @@ function fileupload(fileupload: Element, wrapper: Element) {
|
|
|
166
166
|
let filename = fileupload.getAttribute('data-filename');
|
|
167
167
|
|
|
168
168
|
if(filename)
|
|
169
|
-
filesWrapper.innerHTML
|
|
169
|
+
filesWrapper.innerHTML = `<span class="file">${filename} <button data-file="${filename}">Remove</button></span>`;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
package/dist/components.es.js
CHANGED
|
@@ -453,7 +453,7 @@ const N = /* @__PURE__ */ m(ne, [["render", Se]]), xe = {
|
|
|
453
453
|
},
|
|
454
454
|
created() {
|
|
455
455
|
this.$nextTick(function() {
|
|
456
|
-
import("./fileupload.component.min-
|
|
456
|
+
import("./fileupload.component.min-0688ee84.mjs").then((t) => {
|
|
457
457
|
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", t.default);
|
|
458
458
|
}).catch((t) => {
|
|
459
459
|
console.log(t.message);
|
|
@@ -483,7 +483,7 @@ const qe = {
|
|
|
483
483
|
props: {},
|
|
484
484
|
mounted() {
|
|
485
485
|
this.$nextTick(function() {
|
|
486
|
-
import("./accordion.component.min-
|
|
486
|
+
import("./accordion.component.min-4dee87e6.mjs").then((t) => {
|
|
487
487
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
488
488
|
}).catch((t) => {
|
|
489
489
|
console.log(t.message);
|
|
@@ -623,7 +623,7 @@ const Fa = /* @__PURE__ */ m(ze, [["render", Be]]), Oe = {
|
|
|
623
623
|
},
|
|
624
624
|
mounted() {
|
|
625
625
|
this.$nextTick(function() {
|
|
626
|
-
import("./carousel.component.min-
|
|
626
|
+
import("./carousel.component.min-c09d94f2.mjs").then((t) => {
|
|
627
627
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
628
628
|
}).catch((t) => {
|
|
629
629
|
console.log(t.message);
|
|
@@ -652,7 +652,7 @@ const za = /* @__PURE__ */ m(Oe, [["render", We]]), Ke = {
|
|
|
652
652
|
},
|
|
653
653
|
mounted() {
|
|
654
654
|
this.$nextTick(function() {
|
|
655
|
-
import("./header.component.min-
|
|
655
|
+
import("./header.component.min-21d5f295.mjs").then((t) => {
|
|
656
656
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
657
657
|
}).catch((t) => {
|
|
658
658
|
console.log(t.message);
|
|
@@ -1048,7 +1048,7 @@ const Wa = /* @__PURE__ */ m(_t, [["render", Ht]]), Mt = {
|
|
|
1048
1048
|
name: "Nav",
|
|
1049
1049
|
mounted() {
|
|
1050
1050
|
this.$nextTick(function() {
|
|
1051
|
-
import("./nav.component.min-
|
|
1051
|
+
import("./nav.component.min-4e9a95d0.mjs").then((t) => {
|
|
1052
1052
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1053
1053
|
}).catch((t) => {
|
|
1054
1054
|
console.log(t.message);
|
|
@@ -1168,7 +1168,7 @@ const Zt = {
|
|
|
1168
1168
|
name: "Tabs",
|
|
1169
1169
|
created() {
|
|
1170
1170
|
this.$nextTick(function() {
|
|
1171
|
-
import("./tabs.component.min-
|
|
1171
|
+
import("./tabs.component.min-84ba6c17.mjs").then((t) => {
|
|
1172
1172
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1173
1173
|
}).catch((t) => {
|
|
1174
1174
|
console.log(t.message);
|
|
@@ -1315,7 +1315,7 @@ function ha(t, a, e, i, r, s) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
const es = /* @__PURE__ */ m(pa, [["render", ha]]);
|
|
1317
1317
|
/*!
|
|
1318
|
-
* iamKey v5.6.1-
|
|
1318
|
+
* iamKey v5.6.1-beta19
|
|
1319
1319
|
* Copyright 2022-2024 iamproperty
|
|
1320
1320
|
*/
|
|
1321
1321
|
function fa(t, a) {
|
|
@@ -1485,7 +1485,7 @@ const as = /* @__PURE__ */ m(ka, [["render", Aa]]), La = {
|
|
|
1485
1485
|
props: {},
|
|
1486
1486
|
mounted() {
|
|
1487
1487
|
this.$nextTick(function() {
|
|
1488
|
-
import("./actionbar.component.min-
|
|
1488
|
+
import("./actionbar.component.min-52f81143.mjs").then((t) => {
|
|
1489
1489
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1490
1490
|
}).catch((t) => {
|
|
1491
1491
|
console.log(t.message);
|
|
@@ -1500,7 +1500,7 @@ function Sa(t, a, e, i, r, s) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
const ss = /* @__PURE__ */ m(La, [["render", Sa]]);
|
|
1502
1502
|
/*!
|
|
1503
|
-
* iamKey v5.6.1-
|
|
1503
|
+
* iamKey v5.6.1-beta19
|
|
1504
1504
|
* Copyright 2022-2024 iamproperty
|
|
1505
1505
|
*/
|
|
1506
1506
|
class R extends HTMLElement {
|
package/dist/components.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(w,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(w=typeof globalThis<"u"?globalThis:w||self,n(w.iamkey={},w.Vue))})(this,function(w,n){"use strict";const A=(a,e)=>{const t=a.__vccOpts||a;for(const[r,i]of e)t[r]=i;return t},at={name:"Logo",props:{id:{type:String,required:!1,default:"property"},path:{type:String,required:!1,default:"/svg/logo.svg"},desc:{type:String}},computed:{src:function(){return"#logo-"+this.id},className:function(){return"brand brand--"+this.id}}},ot=["xlink:href"],nt=["innerHTML"];function rt(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(c.className)},[(n.openBlock(),n.createElementBlock("svg",null,[n.createElementVNode("title",null,"iam "+n.toDisplayString(t.id),1),n.createElementVNode("use",{"xlink:href":t.path+c.src},null,8,ot)])),t.desc?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:t.desc},null,8,nt)):n.createCommentVNode("",!0)],2)}const it=A(at,[["render",rt]]),st=a=>a.charAt(0).toUpperCase()+a.slice(1),lt=a=>a.replace(/_/g," "),ct=a=>a.replace(/ /g,"_"),dt=function(a){return a=a.toLowerCase(),a=ct(a),a=a.replace(/\W/g,""),a},mt={name:"Table",props:{items:{type:Array,required:!1},fields:{type:Array,required:!1}},computed:{cellHeading(){return a=>`${st(lt(a))}`}},created(){this.$nextTick(function(){Promise.resolve().then(()=>$o).then(a=>{window.customElements.get("iam-table")||window.customElements.define("iam-table",a.default)}).catch(a=>{console.log(a.message)}),Promise.resolve().then(()=>ro).then(a=>{window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",a.default)}).catch(a=>{console.log(a.message)})})},updated(){}},ut={key:0},ht={key:0},pt=["data-row-id"],bt=["innerHTML"];function ft(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-table",null,[n.renderSlot(a.$slots,"before"),t.fields?(n.openBlock(),n.createElementBlock("table",ut,[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.fields,o=>(n.openBlock(),n.createElementBlock("th",{key:o.key},n.toDisplayString(c.cellHeading(o.key)),1))),128))])]),t.items?(n.openBlock(),n.createElementBlock("tbody",ht,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,s)=>(n.openBlock(),n.createElementBlock("tr",{key:s,"data-row-id":o.rowid},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.fromEntries(Object.entries(o).filter(([d])=>d!=="rowid")),(d,l)=>(n.openBlock(),n.createElementBlock("td",{key:l,innerHTML:d},null,8,bt))),128))],8,pt))),128))])):n.createCommentVNode("",!0)])):n.renderSlot(a.$slots,"default",{key:1})])}const B=A(mt,[["render",ft]]),gt={name:"Input",props:{value:{type:String,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},list:{type:String,required:!1},label:{type:String,required:!1},labelclass:{type:String,required:!1},inputclass:{type:String,required:!1},type:{type:String,required:!1,default:"text"},size:{type:String,required:!1},errormsg:{type:String,required:!1},options:{type:Array,required:!1},prefix:{type:String,required:!1},prefixClass:{type:String,required:!1},suffix:{type:String,required:!1},pattern:{type:String,required:!1},suffixClass:{type:String,required:!1},title:{type:String,required:!1},hint:{type:String,required:!1},multiple:{type:String,required:!1}},computed:{displayLabel(){return()=>this.$attrs.multiple?this.label+'<span class="small d-block text-body font-body fw-normal">Hold down the Ctrl (windows) or Command (Mac) button to select multiple options.</span>':this.hint?this.label+`<span class="small d-block text-body font-body fw-normal">${this.hint}</span>`:this.label},wrapperClass(){return()=>{switch(this.type){case"radio":case"checkbox":return"form-check";case"radio-btn":case"checkbox-btn":return!1;default:return"form-control__wrapper"}}},needPattern(){return()=>{if(this.pattern)return this.pattern;switch(this.type){case"datetime-local":return"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}"}return"(.*?)"}},needsLabel(){return()=>{switch(this.type){case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":return!1;default:return!0}}},isInput(){return()=>{switch(this.type){case"textarea":case"select":case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":case"range":case"color":return!1;default:return!0}}},allowDatalist(){return()=>{switch(this.type){case"select":case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":return!1;default:return!0}}},hasOptions(){return()=>{if(this.list)return this.list;if(this.options)return this.id+"-list"}},inputVal:{get(){return this.value==null&&this.options!=null&&this.type=="select"?this.$attrs.multiple?[]:this.options[0].value:this.value},set(a){this.$emit("input",a)}}},mounted(){this.$nextTick(function(){let a=this.$refs.wrapper;if(a.parentNode&&a.parentNode.classList.contains("form-check")||a.classList.length==0){const e=document.createDocumentFragment();Array.from(a.childNodes).forEach(t=>e.appendChild(t)),a.parentNode.insertBefore(e,a),a.parentNode.removeChild(a)}})},methods:{inputKeyup(a){this.$emit("keyupEvent",a)},clickEvent(){this.$emit("bus")}}},yt=["for","innerHTML","title"],vt=["innerHTML"],wt=["innerHTML"],_t=["type","name","id","pattern","list"],kt=["type","name","id","pattern"],At={key:5,class:"input-group"},xt=["type","name","id","pattern","list"],Lt={class:"input-group-text border-0 col-2 col-sm-1 px-0"},St={key:6,class:"input-group"},Et=["type","name","id","pattern","list"],qt={class:"input-group-text flex-fill"},$t=["type","name","id","pattern"],Tt=["value"],Ct=["type","name","id"],Mt=["for","innerHTML"],Ht=["type","name","id"],Bt=["for","innerHTML"],Nt=["innerHTML"],Rt=["id"],jt=["value"];function Dt(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(c.wrapperClass()),ref:"wrapper"},[c.needsLabel()?(n.openBlock(),n.createElementBlock("label",{key:0,class:n.normalizeClass(`form-label${t.labelclass?` ${t.labelclass}`:""}`),for:t.id,innerHTML:c.displayLabel(),title:t.title},null,10,yt)):n.createCommentVNode("",!0),t.prefix?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(`prefix ${this.prefixClass} ${t.size?`prefix-${t.size}`:""}`),innerHTML:t.prefix,role:"presentation"},null,10,vt)):n.createCommentVNode("",!0),t.suffix?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(`suffix ${this.suffixClass} ${t.size?`suffix-${t.size}`:""}`),innerHTML:t.suffix,role:"presentation"},null,10,wt)):n.createCommentVNode("",!0),c.isInput()?n.withDirectives((n.openBlock(),n.createElementBlock("input",n.mergeProps({key:3,"onUpdate:modelValue":e[0]||(e[0]=o=>c.inputVal=o),class:`form-control${t.size?` form-control-${t.size}`:""}${t.inputclass?` ${t.inputclass}`:""}`,type:t.type,name:t.name?t.name:t.id,id:t.id,pattern:c.needPattern(),list:c.hasOptions()},a.$attrs,{onKeyup:e[1]||(e[1]=(...o)=>c.inputKeyup&&c.inputKeyup(...o))}),null,16,_t)),[[n.vModelDynamic,c.inputVal]]):n.createCommentVNode("",!0),t.type=="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("textarea",n.mergeProps({key:4,"onUpdate:modelValue":e[2]||(e[2]=o=>c.inputVal=o),class:`form-control${t.size?` form-control-${t.size}`:""}${t.inputclass?` ${t.inputclass}`:""}`,type:t.type,name:t.name?t.name:t.id,id:t.id,pattern:c.needPattern()},a.$attrs),null,16,kt)),[[n.vModelText,c.inputVal]]):n.createCommentVNode("",!0),t.type=="range"?(n.openBlock(),n.createElementBlock("div",At,[n.withDirectives(n.createElementVNode("input",n.mergeProps({"onUpdate:modelValue":e[3]||(e[3]=o=>c.inputVal=o),class:`form-range${t.inputclass?` ${t.inputclass}`:""}`,type:t.type,name:t.name?t.name:t.id,id:t.id,pattern:c.needPattern(),list:c.hasOptions()},a.$attrs,{oninput:"this.nextElementSibling.value=this.value;"}),null,16,xt),[[n.vModelDynamic,c.inputVal]]),n.createElementVNode("output",Lt,n.toDisplayString(t.value),1)])):n.createCommentVNode("",!0),t.type=="color"?(n.openBlock(),n.createElementBlock("div",St,[n.withDirectives(n.createElementVNode("input",n.mergeProps({"onUpdate:modelValue":e[4]||(e[4]=o=>c.inputVal=o),class:`form-control form-control-color${t.inputclass?` ${t.inputclass}`:""}`,type:t.type,name:t.name?t.name:t.id,id:t.id,pattern:c.needPattern(),list:c.hasOptions()},a.$attrs,{oninput:"this.nextElementSibling.value=this.value;"}),null,16,Et),[[n.vModelDynamic,c.inputVal]]),n.createElementVNode("output",qt,n.toDisplayString(t.value?a.vale:"#000000"),1)])):n.createCommentVNode("",!0),t.type=="select"?n.withDirectives((n.openBlock(),n.createElementBlock("select",n.mergeProps({key:7,"onUpdate:modelValue":e[5]||(e[5]=o=>c.inputVal=o),class:`form-select${t.size?` form-select-${t.size}`:""}${t.inputclass?` ${t.inputclass}`:""}`,type:t.type,name:t.id,id:t.id,pattern:c.needPattern()},a.$attrs),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.options,(o,s)=>(n.openBlock(),n.createElementBlock("option",{key:s,value:o.value},n.toDisplayString(o.display?o.display:o.value),9,Tt))),128))],16,$t)),[[n.vModelSelect,c.inputVal]]):n.createCommentVNode("",!0),t.type=="checkbox"||t.type=="radio"?(n.openBlock(),n.createElementBlock("input",n.mergeProps({key:8,class:"form-check-input",type:t.type,name:t.name?t.name:t.id,id:t.id},a.$attrs),null,16,Ct)):n.createCommentVNode("",!0),t.type=="checkbox"||t.type=="radio"?(n.openBlock(),n.createElementBlock("label",{key:9,class:n.normalizeClass(`form-label form-check-label${t.labelclass?` ${t.labelclass}`:""}`),for:t.id,innerHTML:t.label},null,10,Mt)):n.createCommentVNode("",!0),t.type=="checkbox-btn"||t.type=="radio-btn"?(n.openBlock(),n.createElementBlock("input",n.mergeProps({key:10,class:`btn-check${t.inputclass?` ${t.inputclass}`:""}`,type:t.type.replace("-btn",""),autocomplete:"off",name:t.name?t.name:t.id,id:t.id},a.$attrs),null,16,Ht)):n.createCommentVNode("",!0),t.type=="checkbox-btn"||t.type=="radio-btn"?(n.openBlock(),n.createElementBlock("label",{key:11,class:n.normalizeClass(`btn${t.labelclass?` ${t.labelclass}`:""}`),for:t.id,innerHTML:t.label,onClick:e[6]||(e[6]=(...o)=>c.clickEvent&&c.clickEvent(...o))},null,10,Bt)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default"),t.errormsg?(n.openBlock(),n.createElementBlock("span",{key:12,class:"invalid-feedback mb-0",innerHTML:t.errormsg},null,8,Nt)):n.createCommentVNode("",!0),c.allowDatalist()?(n.openBlock(),n.createElementBlock("datalist",{key:13,id:t.id+"-list"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.options,(o,s)=>(n.openBlock(),n.createElementBlock("option",{key:s,value:o.value},n.toDisplayString(o.value),9,jt))),128))],8,Rt)):n.createCommentVNode("",!0)],2)}const N=A(gt,[["render",Dt]]),Vt=Object.assign({name:"FileUpload",props:{maxfilesize:{type:Number,required:!1},maxfiles:{type:Number,required:!1}},created(){this.$nextTick(function(){Promise.resolve().then(()=>Mo).then(a=>{window.customElements.get("iam-fileupload")||window.customElements.define("iam-fileupload",a.default)}).catch(a=>{console.log(a.message)})})}},{emits:["elementChange","empty"],setup(a,{emit:e}){const t=n.ref(null);return n.onMounted(()=>{t.value.addEventListener("elementChange",function(r){e("elementChange",r)}),t.value.addEventListener("empty",function(r){e("empty",r)})}),(r,i)=>(n.openBlock(),n.createElementBlock("iam-fileupload",{ref_key:"$component",ref:t},[n.renderSlot(r.$slots,"default")],512))}}),mn="",zt={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)})})}},Pt={ref:"wrapper"};function Ft(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-accordion",Pt,[n.renderSlot(a.$slots,"default")],512)}const Ot=A(zt,[["render",Ft]]),It={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}}},Ut=["id"];function Wt(a,e,t,r,i,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,Ut)}const Gt=A(It,[["render",Wt]]),Yt={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1},background:{type:String,default:"light",required:!1}}},Kt={class:"container"},Xt={class:"row"},Jt={class:"col-sm-6"},Qt={class:"pt-5 pb-3 px-4"},Zt={class:"col-sm-6 col-md-5 ms-auto"},te=["src"];function ee(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",Kt,[n.createElementVNode("div",{class:n.normalizeClass("bg-"+t.background+" mb-4")},[n.createElementVNode("div",Xt,[n.createElementVNode("div",Jt,[n.createElementVNode("div",Qt,[n.createElementVNode("h2",null,n.toDisplayString(t.title),1),n.renderSlot(a.$slots,"default")])]),n.createElementVNode("div",Zt,[t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:t.image,alt:"",class:"h-100 w-100 object-cover"},null,8,te)):n.createCommentVNode("",!0)])])],2)])}const ae=A(Yt,[["render",ee]]),oe={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 ne(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-card",null,[n.renderSlot(a.$slots,"default")])}const re=A(oe,[["render",ne]]),ie={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1},thumbnails:{type:Array,default:()=>[]}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Do).then(a=>{window.customElements.get("iam-carousel")||window.customElements.define("iam-carousel",a.default)}).catch(a=>{console.log(a.message)})})}},se=["data-thumbnails"];function le(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-carousel",{"data-thumbnails":JSON.stringify(t.thumbnails)},[n.renderSlot(a.$slots,"default")],8,se)}const ce=A(ie,[["render",le]]),de={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>zo).then(a=>{window.customElements.get("iam-header")||window.customElements.define("iam-header",a.default)}).catch(a=>{console.log(a.message)})})}},me=["image"],ue=["innerHTML"];function he(a,e,t,r,i,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,ue)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default")],8,me)}const pe=A(de,[["render",he]]);function be(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 i=function(c){const o=a.querySelector(".btn-next"),s=a.querySelector(".btn-prev");o.setAttribute("data-go",c+1),s.setAttribute("data-go",c-1),o.removeAttribute("disabled"),s.removeAttribute("disabled"),c==1?s.setAttribute("disabled",!0):c==r&&o.setAttribute("disabled",!0)};t.addEventListener("scroll",function(c){clearTimeout(e),e=setTimeout(function(){let o=t.scrollWidth,s=t.scrollHeight,d=t.scrollLeft,l=t.scrollTop,m=Math.round(d/o*r)+1;d==0&&l!=0&&(m=Math.round(l/s*r)+1),a.setAttribute("data-show",m),i(m)},300)},!1),a.addEventListener("click",function(c){for(var o=c.target;o&&o!=this;o=o.parentNode)if(o.matches("[data-go]")){let s=parseInt(o.getAttribute("data-go")),d=0,l=0,m=t.scrollWidth,u=t.scrollHeight;m>u?l=Math.floor(m*((s-1)/r)):d=Math.floor(u*((s-1)/r)),t.scroll({top:d,left:l,behavior:"smooth"});break}},!1)}const un="",fe={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){be(this.$refs.wrapper)}},ge={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},ye={class:"row"},ve={class:"col-md-5 position-relative"},we={class:"testimonial__images"},_e=["src"],ke=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),Ae={class:"col-md-7"},xe=n.createElementVNode("h2",null,"What our customers think…",-1),Le={class:"testimonial__content"},Se=["innerHTML"],Ee=["innerHTML"],qe={class:"testimonial__after"},$e=n.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1);function Te(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",ge,[n.createElementVNode("div",{class:n.normalizeClass("bg-"+t.background)},[n.createElementVNode("div",ye,[n.createElementVNode("div",ve,[n.createElementVNode("div",we,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,s)=>(n.openBlock(),n.createElementBlock("img",{key:s,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,_e))),128))]),ke]),n.createElementVNode("div",Ae,[xe,n.createElementVNode("div",Le,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,s)=>(n.openBlock(),n.createElementBlock("blockquote",{key:s,class:n.normalizeClass(o.class)},[n.createElementVNode("div",{innerHTML:o.quote},null,8,Se),n.createElementVNode("cite",{innerHTML:o.cite},null,8,Ee)],2))),128))]),n.createElementVNode("div",qe,[n.renderSlot(a.$slots,"default")])])]),$e],2)],512)}const Ce=A(fe,[["render",Te]]),hn="",Me={name:"Timeline",props:{image:{type:String,required:!1}}},He={class:"timeline"},Be={class:"timeline__content"},Ne=["src"];function Re(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",He,[n.createElementVNode("div",Be,[n.renderSlot(a.$slots,"default")]),t.image?(n.openBlock(),n.createElementBlock("img",{key:0,src:t.image,alt:""},null,8,Ne)):n.createCommentVNode("",!0)])}const je=A(Me,[["render",Re]]),pn="",De={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"}]}}},Ve={class:"container",ref:"wrapper"},ze={class:"property-searchbar"},Pe=["action","method"],Fe={class:"col-12 col-md-3"},Oe={class:"col-12 col-md"},Ie=n.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1),Ue={class:"row","data-input-range":""},We={class:"col-12 col-md"},Ge=n.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1),Ye={class:"row","data-input-range":""},Ke={class:"col-12 col-md-2"},Xe=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 Je(a,e,t,r,i,c){const o=n.resolveComponent("Input");return n.openBlock(),n.createElementBlock("div",Ve,[n.renderSlot(a.$slots,"default"),n.createElementVNode("div",ze,[n.createElementVNode("form",{class:"row",action:t.formaction,method:t.formmethod},[n.createElementVNode("fieldset",Fe,[n.createVNode(o,{inputClass:"input--locations",modelValue:c.locationSet,"onUpdate:modelValue":e[0]||(e[0]=s=>c.locationSet=s),label:"Location",id:"location",options:c.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:e[1]||(e[1]=s=>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",Oe,[Ie,n.createElementVNode("div",Ue,[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",We,[Ge,n.createElementVNode("div",Ye,[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",Ke,[n.createVNode(o,{label:"Property type",id:"property-type",type:"select",options:t.propertytypes},null,8,["options"])]),Xe],8,Pe)]),n.renderSlot(a.$slots,"after")],512)}const Qe=A(De,[["render",Je]]),Ze={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Po).then(a=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",a.default)}).catch(a=>{console.log(a.message)})})},methods:{}},ta={ref:"wrapper"};function ea(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-nav",ta,[n.renderSlot(a.$slots,"default")],512)}const aa=A(Ze,[["render",ea]]),bn="",oa={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},na={class:"container"},ra=["aria-label"],ia={key:0,class:"h6 stepper__start"},sa={class:"list-unstyled"},la={class:"h6 stepper__end"};function ca(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",na,[n.createElementVNode("nav",{class:"stepper","aria-label":t.label?t.label:"Progress"},[t.label?(n.openBlock(),n.createElementBlock("span",ia,n.toDisplayString(t.label),1)):n.createCommentVNode("",!0),n.createElementVNode("ol",sa,[n.renderSlot(a.$slots,"default")]),n.createElementVNode("span",la,n.toDisplayString(t.endlabel),1)],8,ra)])}const da=A(oa,[["render",ca]]),fn="",ma={name:"Snapshot",props:{items:{type:Array,required:!0}}},ua={class:"container snapshot",ref:"wrapper"},ha={class:"row"},pa=["href"],ba={class:"lead snapshot__title"},fa={class:"stat"};function ga(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("div",ua,[n.renderSlot(a.$slots,"default"),n.createElementVNode("div",ha,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(o,s)=>(n.openBlock(),n.createElementBlock("div",{class:"col",key:s},[o.link?(n.openBlock(),n.createElementBlock("a",{key:0,href:o.link},"View "+n.toDisplayString(o.title),9,pa)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(`snapshot__item ${o.bg?"bg-"+o.bg:""}`)},[n.createElementVNode("span",ba,n.toDisplayString(o.title),1),n.createElementVNode("span",fa,n.toDisplayString(o.number),1)],2)]))),128))])],512)}const ya=A(ma,[["render",ga]]),va={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},wa=["href","aria-current"],_a={key:0,class:"visually-hidden"};function ka(a,e,t,r,i,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",_a," - status: "+n.toDisplayString(t.status),1)):n.createCommentVNode("",!0)],10,wa)])}const Aa=A(va,[["render",ka]]),gn="",xa={name:"Tabs",created(){this.$nextTick(function(){Promise.resolve().then(()=>Go).then(a=>{window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",a.default)}).catch(a=>{console.log(a.message)})})}},La={ref:"wrapper"};function Sa(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-tabs",La,[n.renderSlot(a.$slots,"default")],512)}const Ea=A(xa,[["render",Sa]]),qa={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}}},$a={class:"tab"},Ta=["innerHTML"];function Ca(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("details",$a,[n.createElementVNode("summary",{innerHTML:t.title,class:n.normalizeClass({disabled:i.isDisabled})},null,10,Ta),n.renderSlot(a.$slots,"default")])}const Ma=A(qa,[["render",Ca]]);let F=B.props;F.fields.required=!1;const Ha={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 i=t.getMonth()+1,c=t.getDate();c<10&&(c="0"+c),i<10&&(i="0"+i),t=c+"/"+i+"/"+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}}},Ba={class:"container note-feed mb-2"},Na=["innerHTML"],Ra=["action","method"],ja=["value"],Da=n.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1);function Va(a,e,t,r,i,c){const o=n.resolveComponent("Table"),s=n.resolveComponent("Input");return n.openBlock(),n.createElementBlock("div",Ba,[t.title?(n.openBlock(),n.createElementBlock("span",{key:0,class:"h3",innerHTML:t.title},null,8,Na)):n.createCommentVNode("",!0),n.createVNode(o,n.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:i.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,ja),n.createVNode(s,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),Da],40,Ra)])}const za=A(Ha,[["render",Va]]),Pa={name:"Applied Filter",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Xo).then(a=>{window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",a.default)}).catch(a=>{console.log(a.message)})})}};function Fa(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-applied-filters",null,[n.renderSlot(a.$slots,"default")])}const Oa=A(Pa,[["render",Fa]]);/*!
|
|
2
|
-
* iamKey v5.6.1-
|
|
2
|
+
* iamKey v5.6.1-beta19
|
|
3
3
|
* Copyright 2022-2024 iamproperty
|
|
4
4
|
*/function Ia(a,e){Ua(a,e)}function Ua(a,e){var t;e.addEventListener("keyup",r=>{clearTimeout(t),t=setTimeout(function(){O(a,e.value)},500)}),e.addEventListener("change",r=>{clearTimeout(t),O(a,e.value)})}const O=function(a,e){Array.from(a.querySelectorAll(":scope > li")).forEach((t,r)=>{let i=t.textContent.toLowerCase();t.classList.add("d-none"),i.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 Wa 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=`
|
|
5
5
|
<style>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
${this.hasAttribute("data-dismiss")?'<div class="notification__dismiss"><button data-dismiss-button part="dismiss-btn">Dismiss</button></div>':""}
|
|
42
42
|
</div>
|
|
43
43
|
`,this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("notificationHolder")||document.head.insertAdjacentHTML("beforeend",`<style id="notificationHolder">${i}</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>'}Xa(r),e&&e.addEventListener("click",function(i){R(r)},!1)}}const Za={name:"Notification",props:{},created(){this.$nextTick(function(){window.customElements.get("iam-notification")||window.customElements.define("iam-notification",Qa)})}};function to(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-notification",null,[n.renderSlot(a.$slots,"default")])}const eo=A(Za,[["render",to]]),ao={name:"Actionbar",props:{},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>en).then(a=>{window.customElements.get("iam-actionbar")||window.customElements.define("iam-actionbar",a.default)}).catch(a=>{console.log(a.message)})})}};function oo(a,e,t,r,i,c){return n.openBlock(),n.createElementBlock("iam-actionbar",null,[n.renderSlot(a.$slots,"default")])}const no=A(ao,[["render",oo]]);/*!
|
|
44
|
-
* iamKey v5.6.1-
|
|
44
|
+
* iamKey v5.6.1-beta19
|
|
45
45
|
* Copyright 2022-2024 iamproperty
|
|
46
46
|
*/let I=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=`
|
|
47
47
|
<style>
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
</div>
|
|
132
132
|
<iam-pagination class="pagination--table" ${this.hasAttribute("data-page")?`data-page="${this.getAttribute("data-page")}"`:""} ></iam-pagination>
|
|
133
133
|
`,this.shadowRoot.appendChild(c.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",`<style id="tableExtras">${i}</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" />`),Ao(this.table),xo(this.table,this.form,this.pagination,this,this.savedTableBody),Lo(this.table,this.form,this.pagination,this),So(this.shadowRoot.querySelector("[data-export]"),this.table),this.form.getAttribute("data-ajax"))X(this.table,this.form,this.pagination,this);else{let i=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((s,d)=>{s.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')}),Array.from(this.table.querySelectorAll("tbody tr")).forEach((s,d)=>{let l=`row${i(d)}`;s.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",s=>{if(s&&s.target instanceof HTMLElement&&s.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",s=>{s.detail.selected=="0"?Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((d,l)=>{d.checked=!1}):s.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,s)=>{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,s)=>{o.classList.add("td--fixed")})),Y(this.table,this.form,this.pagination,this),this.hasAttribute("data-no-submit")||j(this.table,this.form,this),C(this.table,this.form)}this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll",i=>{this.table.querySelector("dialog[open]")&&(this.table.querySelector("dialog[open]").close(),this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"))}),this.pagination.addEventListener("update-show",i=>{let c=i.detail.show;const o=new CustomEvent("update-show",{detail:{show:c}});this.dispatchEvent(o)}),this.pagination.addEventListener("update-page",i=>{let c=i.detail.page;const o=new CustomEvent("update-page",{detail:{page:c}});this.dispatchEvent(o)})}static get observedAttributes(){return["data-total","data-page","data-show"]}attributeChangedCallback(e,t,r){if(this.hasAttribute("data-no-submit"))return!1;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 $o=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
134
|
-
* iamKey v5.6.1-
|
|
134
|
+
* iamKey v5.6.1-beta19
|
|
135
135
|
* Copyright 2022-2024 iamproperty
|
|
136
|
-
*/function To(a,e){const t=e.querySelector(".files"),r=e.querySelector(".drop-area"),i=a.querySelector("input"),c=a.hasAttribute("data-maxsize")?a.getAttribute("data-maxsize"):0,o=e.querySelector(".invalid-feedback.size"),s=e.querySelector(".invalid-feedback.ext"),d=i.cloneNode();r.append(d);let l=function(m){if(!i.hasAttribute("accept"))return!0;const u=m.split(".").pop();return!!i.getAttribute("accept").includes(u)};if(e.addEventListener("click",m=>{m&&m.target instanceof HTMLElement&&m.target.closest(".btn-primary")&&(m.target.closest(".btn-primary"),s.classList.remove("d-block"),o.classList.remove("d-block"),(i.hasAttribute("multiple")?d:i).click())}),e.addEventListener("click",m=>{if(m&&m.target instanceof HTMLElement&&m.target.closest(".files button")){const u=new DataTransfer,{files:h}=i,p=m.target.closest(".files button");for(let g=0;g<h.length;g++){const f=h[g];f.name!=p.getAttribute("data-file")&&u.items.add(f)}i.files=u.files;const b=new Event("change");i.dispatchEvent(b)}}),d.addEventListener("change",m=>{if(i.hasAttribute("multiple")){const h=[...i.files,...d.files];let p=[];const b=new DataTransfer;for(let g=0;g<h.length;g++){const f=h[g],y=f.size/1e3;!p.includes(f.name)&&(c==0||y<c)&&l(f.name)&&b.items.add(f),l(f.name)||s.classList.add("d-block"),y>c&&o.classList.add("d-block"),p.push(f.name)}i.files=b.files}else i.files=d.files;const u=new Event("change");i.dispatchEvent(u)}),d.addEventListener("dragenter",m=>{d.classList.add("focus")}),d.addEventListener("dragleave",m=>{d.classList.remove("focus")}),d.addEventListener("drop",m=>{d.classList.remove("focus")}),i.addEventListener("change",m=>{if(i.files.length==1){let h=i.files[0];const p=h.size/1e3;if(!l(h.name)){s.classList.add("d-block");const b=new DataTransfer;i.files=b.files}if(p>c){o.classList.add("d-block");const b=new DataTransfer;i.files=b.files}}t.innerHTML="";for(const h of i.files)t.innerHTML+=`<span class="file" part="file">${h.name} <button data-file="${h.name}">Remove</button></span>`;const u=new CustomEvent("elementchange",{detail:{files:i.files}});if(a.dispatchEvent(u),i.files.length==0){const h=new CustomEvent("empty");a.dispatchEvent(h)}}),a.hasAttribute("data-filename")){let m=a.getAttribute("data-filename");m&&(t.innerHTML
|
|
136
|
+
*/function To(a,e){const t=e.querySelector(".files"),r=e.querySelector(".drop-area"),i=a.querySelector("input"),c=a.hasAttribute("data-maxsize")?a.getAttribute("data-maxsize"):0,o=e.querySelector(".invalid-feedback.size"),s=e.querySelector(".invalid-feedback.ext"),d=i.cloneNode();r.append(d);let l=function(m){if(!i.hasAttribute("accept"))return!0;const u=m.split(".").pop();return!!i.getAttribute("accept").includes(u)};if(e.addEventListener("click",m=>{m&&m.target instanceof HTMLElement&&m.target.closest(".btn-primary")&&(m.target.closest(".btn-primary"),s.classList.remove("d-block"),o.classList.remove("d-block"),(i.hasAttribute("multiple")?d:i).click())}),e.addEventListener("click",m=>{if(m&&m.target instanceof HTMLElement&&m.target.closest(".files button")){const u=new DataTransfer,{files:h}=i,p=m.target.closest(".files button");for(let g=0;g<h.length;g++){const f=h[g];f.name!=p.getAttribute("data-file")&&u.items.add(f)}i.files=u.files;const b=new Event("change");i.dispatchEvent(b)}}),d.addEventListener("change",m=>{if(i.hasAttribute("multiple")){const h=[...i.files,...d.files];let p=[];const b=new DataTransfer;for(let g=0;g<h.length;g++){const f=h[g],y=f.size/1e3;!p.includes(f.name)&&(c==0||y<c)&&l(f.name)&&b.items.add(f),l(f.name)||s.classList.add("d-block"),y>c&&o.classList.add("d-block"),p.push(f.name)}i.files=b.files}else i.files=d.files;const u=new Event("change");i.dispatchEvent(u)}),d.addEventListener("dragenter",m=>{d.classList.add("focus")}),d.addEventListener("dragleave",m=>{d.classList.remove("focus")}),d.addEventListener("drop",m=>{d.classList.remove("focus")}),i.addEventListener("change",m=>{if(i.files.length==1){let h=i.files[0];const p=h.size/1e3;if(!l(h.name)){s.classList.add("d-block");const b=new DataTransfer;i.files=b.files}if(p>c){o.classList.add("d-block");const b=new DataTransfer;i.files=b.files}}t.innerHTML="";for(const h of i.files)t.innerHTML+=`<span class="file" part="file">${h.name} <button data-file="${h.name}">Remove</button></span>`;const u=new CustomEvent("elementchange",{detail:{files:i.files}});if(a.dispatchEvent(u),i.files.length==0){const h=new CustomEvent("empty");a.dispatchEvent(h)}}),a.hasAttribute("data-filename")){let m=a.getAttribute("data-filename");m&&(t.innerHTML=`<span class="file">${m} <button data-file="${m}">Remove</button></span>`)}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"fileupload"});class Co 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=`
|
|
137
137
|
<style>
|
|
138
138
|
@import "${t}";
|
|
139
139
|
.file-upload{max-width:25rem !important;padding-bottom:1rem}.file-upload .drop-area>input{display:none}.file-upload .file-upload__title{margin-top:0;margin-bottom:0;font-family:var(--font-heading);font-style:normal;font-weight:var(--heading-weight);line-height:2rem;color:var(--colour-heading);clear:both;display:block;padding-bottom:2rem;font-size:1.5rem;line-height:2rem;padding-bottom:2rem;max-width:var(--content-max-width)}.file-upload .helper-text{max-width:16.875rem}.files span{display:block;width:100%;padding:var(--input-padding-block, 0.75rem) var(--input-padding-inline, 1rem);font-size:var(--input-fs, 1rem);line-height:var(--input-lh, 1.25rem);border:2px solid var(--colour-primary-theme);appearance:none;border-radius:0.5rem;margin-bottom:1rem;color:var(--colour-primary);border-color:#d8d8d8;background:#d8d8d8;max-width:25rem !important;position:relative}@media(forced-colors: active){.files span{padding-right:5rem}.files span button{padding:0;width:3.7rem !important;text-indent:0% !important}.files span button:after{display:none !important}}.files span button{position:absolute;top:calc(50% - 0.5625rem);right:0.875rem;z-index:var(--index-floating);text-indent:300%;overflow:hidden;border:none;height:1.125rem;width:1.125rem;background:rgba(0,0,0,0)}.files span button:after{content:"";top:0;left:0;position:absolute;display:block;height:1.125rem;width:1.125rem;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}:host(.fileupload--drag-drop) .file-upload{max-width:50rem !important}:host(.fileupload--drag-drop) .file-upload .helper-text{max-width:50rem !important}:host(.fileupload--drag-drop) .file-upload .drop-area>input{display:block;min-height:12.5rem;border:2px dashed var(--colour-primary-theme);color:rgba(0,0,0,0);position:relative;padding:1.5rem 2rem 1.5rem 2rem;user-select:none;max-width:100%;min-width:100%;margin-bottom:1rem}:host(.fileupload--drag-drop) .file-upload .drop-area>input.focus{border:2px solid var(--colour-info)}:host(.fileupload--drag-drop) .file-upload .drop-area{position:relative}:host(.fileupload--drag-drop) .file-upload .drop-area::before{content:"Drag and drop files here or click to upload";position:absolute;inset:1.5rem 2rem 1.5rem 2rem;z-index:1;pointer-events:none}:host(.fileupload--drag-drop) .file-upload ::file-selector-button{position:absolute;inset:0;opacity:0}/*# sourceMappingURL=assets/css/components/fileupload.css.map */
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
<span class="invalid-feedback size">Some files Were too large to upload.</span>
|
|
153
153
|
</div>
|
|
154
154
|
`,this.shadowRoot.appendChild(r.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")}`:""}`),To(this,e)}static get observedAttributes(){return["data-filename"]}attributeChangedCallback(e,t,r){switch(e){case"data-filename":{if(t!=r){const i=this.shadowRoot.querySelector(".files");i.innerHTML=`<span class="file">${r} <button data-file="${r}">Remove</button></span>`}break}}}}const Mo=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"}));/*!
|
|
155
|
-
* iamKey v5.6.1-
|
|
155
|
+
* iamKey v5.6.1-beta19
|
|
156
156
|
* Copyright 2022-2024 iamproperty
|
|
157
157
|
*/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=`
|
|
158
158
|
<style>
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
</div>
|
|
195
195
|
</div>
|
|
196
196
|
`,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(this.hasAttribute("data-record")&&this.getAttribute("data-record"),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",i=>{let c=new Event("click");t.dispatchEvent(c)}),t.addEventListener("click",i=>{if(e.matches("label[for]")){i.stopPropagation(),i.preventDefault();const c=document.getElementById(e.getAttribute("for")),o=c.getAttribute("name"),s=c.getAttribute("id");Array.from(document.querySelectorAll(`[name="${o}"][type="radio"]:not([id="${s}"])`)).forEach((m,u)=>{document.querySelector(`[for="${m.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),e.click(),c.checked?t.classList.add("checked"):t.classList.remove("checked")}}),this.addEventListener("inactive",i=>{t.classList.remove("checked")}),t.addEventListener("keydown",i=>{switch(i.keyCode){case 32:case 13:if(e.matches("label[for]")){i.stopPropagation(),i.preventDefault();const c=document.getElementById(e.getAttribute("for")),o=c.getAttribute("name"),s=c.getAttribute("id");Array.from(document.querySelectorAll(`[name="${o}"]:not([id="${s}"])`)).forEach((m,u)=>{document.querySelector(`[for="${m.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 i=this.getAttribute("data-add-link");r.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault(),window.location=i})}}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 i=this.classList.toString();this.querySelector('*:not(.badge):not(small):not(.btn) > [class*="fa-"]:not(.btn)')&&(i+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class",`card ${i}`);break}}}}const Ro=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"}));/*!
|
|
197
|
-
* iamKey v5.6.1-
|
|
197
|
+
* iamKey v5.6.1-beta19
|
|
198
198
|
* Copyright 2022-2024 iamproperty
|
|
199
199
|
*/function jo(a,e){var t;let r=a.querySelector(".carousel__inner"),i=a.querySelector(".carousel__controls"),c=e.querySelectorAll(":scope > .col").length;r.addEventListener("scroll",function(o){clearTimeout(t),t=setTimeout(function(){let s=r.clientWidth,d=r.scrollWidth,l=r.scrollLeft,m=Math.round(l/d*c)+1,u=e.querySelector(":scope > .col:last-child").offsetLeft-50,h=e.querySelector(":scope > .col").scrollWidth,p=Math.round(s/h);r.scrollLeft+s>=u&&(m=Math.floor(c/p)*p+1),Array.from(a.querySelectorAll(".carousel__controls button")).forEach((b,g)=>{b.removeAttribute("aria-current")}),a.querySelector(".control-"+m).setAttribute("aria-current",!0),m==1?a.querySelector(".btn-prev").setAttribute("disabled","disabled"):a.querySelector(".btn-prev").removeAttribute("disabled"),m==c?a.querySelector(".btn-next").setAttribute("disabled","disabled"):a.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),i.addEventListener("click",function(o){for(var s=o.target;s&&s!=this;s=s.parentNode)if(typeof s.matches=="function"&&s.matches("button")){o.preventDefault(),Array.from(i.querySelectorAll("button")).forEach((l,m)=>{l.removeAttribute("aria-current")}),s.setAttribute("aria-current",!0);const d=e.querySelector(`:scope > *:nth-child(${s.getAttribute("data-slide")})`);r.scroll({top:0,left:d.offsetLeft-100,behavior:"smooth"});break}},!1),a.addEventListener("click",function(o){for(var s=o.target;s&&s!=this;s=s.parentNode)if(typeof s.matches=="function"&&s.matches(".btn-next, .btn-prev")){o.preventDefault();let d=s.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"});const Do=Object.freeze(Object.defineProperty({__proto__:null,default: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=`
|
|
200
200
|
<style>
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
</div>
|
|
221
221
|
</div>
|
|
222
222
|
`,this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){const e=this.shadowRoot.querySelector(".carousel"),t=this.querySelector(".row"),r=JSON.parse(this.dataset.thumbnails),i=this.shadowRoot.querySelector(".carousel__controls");let c=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"),r!=null&&r.length&&i.classList.add("thumbnails");let o="";for(let s=1;s<=c;s++){let d=null,l="";r.length?(l="has-thumbnail",d=`<img src="${r[s-1].src}" alt="Slide ${s}" height="148"/>`):d=`Slide ${s}`,o+=`<button class="control-${s} ${l}" data-slide="${s}" ${s==1?"aria-current":""}>${d}</button>`}i.innerHTML=o,jo(e,t)}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
223
|
-
* iamKey v5.6.1-
|
|
223
|
+
* iamKey v5.6.1-beta19
|
|
224
224
|
* Copyright 2022-2024 iamproperty
|
|
225
225
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class Vo 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=`
|
|
226
226
|
<style>
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
</div>
|
|
239
239
|
</div>
|
|
240
240
|
`,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 zo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
241
|
-
* iamKey v5.6.1-
|
|
241
|
+
* iamKey v5.6.1-beta19
|
|
242
242
|
* Copyright 2022-2024 iamproperty
|
|
243
243
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});const Po=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`,i=document.createElement("template");i.innerHTML=`
|
|
244
244
|
<style class="styles">
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
</div>
|
|
288
288
|
</div>
|
|
289
289
|
</dialog>`);let s=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"),s.setAttribute("aria-expanded",!0)),s.addEventListener("click",m=>{l.setAttribute("open","open"),this.classList.add("search-open"),s.setAttribute("aria-expanded",!0)}),d.addEventListener("click",m=>{l.removeAttribute("open"),this.classList.remove("search-open"),s.removeAttribute("aria-expanded")})}}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
290
|
-
* iamKey v5.6.1-
|
|
290
|
+
* iamKey v5.6.1-beta19
|
|
291
291
|
* Copyright 2022-2024 iamproperty
|
|
292
292
|
*/const Fo=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 i=document.createElement("div");i.classList.add("tabs__links__wrapper"),i.prepend(t),a.prepend(i)}let r=0;e.forEach((i,c)=>{let o=document.createElement("button");if(i.matches("details")){let s=i.querySelector(":scope > summary"),d=s.classList.contains("disabled");s.classList.add("visually-hidden"),i.hasAttribute("id")&&o.setAttribute("data-id",`${i.getAttribute("id")}`),i.hasAttribute("open")&&o.setAttribute("aria-pressed",!0),o.innerHTML=`${s.innerText}`,o.classList.add("link"),o.setAttribute("data-index",r),i.setAttribute("tabindex","-1"),d&&o.classList.add("disabled"),r++}else i.matches("a")&&(o=i);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(i=>{i.addEventListener("click",c=>{if(c.preventDefault(),i.classList.contains("disabled"))return!1;r.forEach(o=>{let s=o==i;o.setAttribute("aria-pressed",s)}),e.forEach((o,s)=>{let d=i.getAttribute("data-index")==s;d?o.setAttribute("open",d):o.removeAttribute("open")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:i.textContent})})}),t.forEach((i,c)=>{i.addEventListener("click",o=>{o.preventDefault(),r[c].click()})})},Io=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))},Uo=function(a){Fo(a),Oo(a),Io(a)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class Wo 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=`
|
|
293
293
|
<style>
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
<div class="applied-filters ${i}"></div>
|
|
317
317
|
<slot></slot>
|
|
318
318
|
`,this.shadowRoot.appendChild(c.content.cloneNode(!0))}connectedCallback(){Yo(this,this.shadowRoot.querySelector(".applied-filters"))}}const Xo=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"}));/*!
|
|
319
|
-
* iamKey v5.6.1-
|
|
319
|
+
* iamKey v5.6.1-beta19
|
|
320
320
|
* Copyright 2022-2024 iamproperty
|
|
321
321
|
*/const Jo=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 i(){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:s}})}i();function c(d){d.target.playVideo()}var o=!1;function s(d){if(d.data==YT.PlayerState.PLAYING&&!o){var l=document.getElementById(t);l.classList.add("player-ready"),o=!0}}},Qo=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 i=e.target.closest("[data-modal]"),c=i.hasAttribute("data-modal")?i.getAttribute("data-modal"):i.getAttribute("data-filter"),o=document.querySelector(`dialog#${c}`);J(o),o.showModal(),o.focus();let s=o.offsetWidth;o.setAttribute("style",`max-width: ${s}px;`),Array.from(o.querySelectorAll("[data-duplicate]")).forEach((d,l)=>{const m=d.getAttribute("data-duplicate"),u=document.getElementById(m);if(d.checked!=u.checked){d.checked=u.checked;let h=new Event("change");d.dispatchEvent(h)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:c})}if(e&&e.target instanceof HTMLElement&&e.target.closest("button.dialog__close")){const i=e.target.closest("dialog[open]");e.preventDefault(),i.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((o,s)=>{o.classList.remove("active")});let c=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:i.id}});e.target.dispatchEvent(c),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(e&&e.target instanceof HTMLElement&&e.target.closest('button[formmethod="dialog"]')){const i=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:i.getAttribute("id")})}if(e&&e.target instanceof HTMLElement&&e.target.closest("dialog[open]")){let i=e.target.closest("dialog[open]");var t=window.getComputedStyle(i);if(t.display==="contents"&&(i=i.parentNode.closest("dialog[open]")),!i.classList.contains("dialog--transactional")&&!i.classList.contains("dialog--acknowledgement")){const c=i.getBoundingClientRect();(e.clientX<c.left||e.clientX>c.right||e.clientY<c.top||e.clientY>c.bottom)&&(e.target.closest("dialog *")||i.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")}))}}if(e&&e.target instanceof HTMLElement&&e.target.closest(".dialog__wrapper > button")){e.stopPropagation();let i=e.target.closest(".dialog__wrapper > button"),c=i.parentNode,o="openPopover",s=c.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=s&&i.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,h)=>{u.removeAttribute("aria-expanded")}),s.hasAttribute("open"))s.close(),o="closePopover",s.removeAttribute("style"),i.removeAttribute("aria-expanded");else{s.show(),i.setAttribute("aria-expanded",!0);var r=i.getBoundingClientRect();let u=r.top,h=r.left;if(i.closest("iam-table")){let p=i.closest("iam-table").parentNode.getBoundingClientRect();u-=p.top,h-=p.left}s.classList.contains("dialog--fix")&&s.setAttribute("style",`position:fixed;top: ${u}px; left: ${h}px; margin: 3rem 0 0 0;`)}let d=s.getBoundingClientRect(),l=d.bottom-window.scrollY,m=window.innerHeight-window.scrollY;if(l>m){let u=s.hasAttribute("style")?s.getAttribute("style")+" ":"";s.setAttribute("style",u+"transform: translate(0, calc(-100% - 4rem))"),d=s.getBoundingClientRect(),d.top-window.scrollY<100&&s.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:o,id:i.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((i,c)=>{i.removeAttribute("aria-expanded")}))}),null),J=a=>{let e=a.querySelector(".youtube-embed a");if(e&&Jo(e),a.classList.contains("dialog--multi")&&!a.querySelector(":scope > .steps")&&Zo(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 i=r.previousSibling;t.before(r),i&&r.before(i)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},Zo=a=>{let e="",t=Array.from(a.querySelectorAll("fieldset[data-title]")),r=a.querySelector("form");t.forEach((o,s)=>{e+=`<button data-title="${o.getAttribute("data-title")}" type="button" class="${s==0?"active":""}" tabindex="-1">${o.getAttribute("data-title")}</button>`;const d=document.createElement("div");if(d.classList.add("btn--wrapper"),o.appendChild(d),s!=0&&(d.innerHTML+=`<button data-title="${t[s-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),s!=t.length-1&&(d.innerHTML+=`<button data-title="${t[s+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),s==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[s].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 i=Array.from(a.querySelectorAll("fieldset.was-validated"));for(let o=0;o<i.length;o++){let s=i[o],d=s.getAttribute("data-title");if(s.querySelector(".is-invalid")){Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((l,m)=>{l.classList.add("active")});break}else Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((l,m)=>{l.classList.add("valid")})}a.addEventListener("invalid",function(){return function(o){o.preventDefault()}}(),!0);function c(o){const s=a.querySelector("fieldset.active")?a.querySelector("fieldset.active"):a.querySelector("fieldset[data-title]"),d=s.getAttribute("data-title");let l=!0;if(s.classList.add("was-validated"),Array.from(s.querySelectorAll("input")).forEach((h,p)=>{h.checkValidity()||(l=!1)}),l?Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((h,p)=>{h.classList.add("valid")}):Array.from(a.querySelectorAll(`[data-title="${d}"]`)).forEach((h,p)=>{h.classList.remove("valid")}),l||!o.hasAttribute("data-next")){const h=a.querySelector(`fieldset[data-title="${o.getAttribute("data-title")}"]`),p=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")}),p.classList.add("active"),h.classList.add("active")}let m=Array.from(a.querySelectorAll("fieldset")).length,u=Array.from(a.querySelectorAll("fieldset.valid")).length;a.style.setProperty("--progress",`${u/(m-1)*100}%`)}a.addEventListener("keydown",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest("button")){const s=o.target.closest("button");o.keyCode==13&&s.getAttribute("type")!="submit"&&(o.preventDefault(),c(s))}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 s=o.target.closest("button[data-title]");c(s)}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 tn 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=`
|
|
322
322
|
<style>
|