@iamproperty/components 3.7.9-beta → 3.7.9-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/components/accordion/accordion.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.js +2 -1
- package/assets/js/components/card/card.component.min.js +2 -2
- package/assets/js/components/card/card.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/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/scripts.bundle.js +2 -2
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/ts/components/card/card.component.ts +2 -2
- package/dist/components.es.js +7 -7
- package/dist/components.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/function n(r){let a=r.querySelectorAll("details"),e=r.querySelectorAll("summary");if(a.forEach(o=>{o.classList.add("accordion-item")}),e.forEach(o=>{o.classList.add("accordion-header"),o.classList.add("accordion-button"),o.classList.add("h4")}),!r.classList.contains("accordion--keep-open")){const o=r.querySelectorAll(":scope > details");o.forEach(c=>{c.addEventListener("click",()=>{o.forEach(i=>{i!==c&&i.removeAttribute("open")})})})}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,o=document.createElement("template");o.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/function h(u,m){function f(e,t){let c=!1,r=t.getAttribute("name");r.includes("[]")&&(r=r.replace("[]",`[${t.value}]`));let l=e.querySelector(`[data-name="${r}"]`);l&&t.getAttribute("type")=="checkbox"&&(c=!0);let i=t.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),e.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.setAttribute("data-name",r),l.innerHTML=i.replace("$value",t.value),(!t.value||c)&&l.remove(),t.parentNode.closest("[data-filter-text]")){let d=t.parentNode.closest("[data-filter-text]"),p=!0;if(r="",d.querySelectorAll("input").forEach((a,o)=>{let n=a.getAttribute("name");if(r+=`${o!=0?",":""}${n}`,e.querySelector(`[data-name="${n}"]`)&&e.querySelector(`[data-name="${n}"]`).remove(),a.value){let s=document.createElement("button");s.setAttribute("type","button"),s.classList.add("filter"),s.setAttribute("data-name",n),s.innerHTML=i.replace("$value",a.value),e.appendChild(s)}else p=!1}),e.querySelector(`[data-name="${r}"]`)&&e.querySelector(`[data-name="${r}"]`).remove(),p){let a=d.getAttribute("data-filter-text");d.querySelectorAll("input").forEach((n,s)=>{let b=n.getAttribute("name");e.querySelector(`[data-name="${b}"]`)&&e.querySelector(`[data-name="${b}"]`).remove(),a=a.replace(`$${s+1}`,n.value)});let o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("filter"),o.setAttribute("data-name",r),o.innerHTML=a,e.appendChild(o)}}}Array.from(u.querySelectorAll('input[type="checkbox"]:checked')).forEach((e,t)=>{f(m,e)}),u.addEventListener("change",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest("input[data-filter-text]")){let t=e.target.closest("input[data-filter-text]");f(m,t)}},!1),m.addEventListener("click",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest(".filter")){let r=e.target.closest(".filter"),l=r.getAttribute("data-name").split(",");for(var t=0;t<l.length;t++){let i=l[t],d=`[name="${i}"]`;i.match(/\[(.*)\]/)&&(i.replace(/\[(.*)\]/,"[]"),d=`[value="${i.replace(/.*\[(.*)\]/,"$1")}"]`);let p=u.querySelectorAll(d);for(var c=0;c<p.length;c++){let a=p[c];if(a.getAttribute("type")!="radio"&&a.getAttribute("type")!="checkbox")a.value="";else{a.checked=!1;var e=new Event("force");a.closest("form").dispatchEvent(e)}}}r.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class g extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const m=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",f=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${m}/css/core.min.css`;let e=this.classList.toString();const t=document.createElement("template");t.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -54,7 +54,8 @@ class iamCard extends HTMLElement {
|
|
|
54
54
|
const input = document.getElementById(parentNode.getAttribute('for'));
|
|
55
55
|
const inputName = input.getAttribute('name');
|
|
56
56
|
const inputID = input.getAttribute('id');
|
|
57
|
-
|
|
57
|
+
// Mimic radio button functionality
|
|
58
|
+
const inputs = Array.from(document.querySelectorAll(`[name="${inputName}"][type="radio"]:not([id="${inputID}"])`));
|
|
58
59
|
inputs.forEach((input, index) => {
|
|
59
60
|
const otherCard = document.querySelector(`[for="${input.getAttribute('id')}"] iam-card`);
|
|
60
61
|
otherCard.dispatchEvent(new Event('inactive'));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Card"});class h extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.querySelector('[class*="fa-"]')&&this.classList.add("card--has-icon");let t=this.classList.toString();const a=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"):`${a}/css/core.min.css`,e=document.createElement("template");e.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
${this.hasAttribute("data-cta")?`<div class="card__footer"><span class="link">${this.getAttribute("data-cta")}</span></div>`:""}
|
|
19
19
|
</div>
|
|
20
|
-
`,this.shadowRoot.appendChild(e.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");const t=this.parentNode.closest("a, button, label"),a=this.shadowRoot.querySelector(".card");t.setAttribute("tabindex","-1"),t.matches("label[for]")&&(document.getElementById(t.getAttribute("for")).checked?a.classList.add("checked"):a.classList.remove("checked")),a.addEventListener("click",r=>{if(t.matches("label[for]")){r.stopPropagation(),r.preventDefault();const e=document.getElementById(t.getAttribute("for")),i=e.getAttribute("name"),o=e.getAttribute("id");Array.from(document.querySelectorAll(`[name="${i}"]:not([id="${o}"])`)).forEach((d,n)=>{document.querySelector(`[for="${d.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),t.click(),e.checked?a.classList.add("checked"):a.classList.remove("checked")}}),this.addEventListener("inactive",r=>{a.classList.remove("checked")}),a.addEventListener("keydown",r=>{switch(r.keyCode){case 32:case 13:if(t.matches("label[for]")){r.stopPropagation(),r.preventDefault();const e=document.getElementById(t.getAttribute("for")),i=e.getAttribute("name"),o=e.getAttribute("id");Array.from(document.querySelectorAll(`[name="${i}"]:not([id="${o}"])`)).forEach((d,n)=>{document.querySelector(`[for="${d.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),t.click(),e.checked?a.classList.add("checked"):a.classList.remove("checked")}else t.click();break}})}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(t,a,r){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total").innerHTML=r;break}case"class":{let e=this.classList.toString();this.querySelector('[class*="fa-"]')&&(e+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class",`card ${e}`);break}}}}export{h as default};
|
|
20
|
+
`,this.shadowRoot.appendChild(e.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");const t=this.parentNode.closest("a, button, label"),a=this.shadowRoot.querySelector(".card");t.setAttribute("tabindex","-1"),t.matches("label[for]")&&(document.getElementById(t.getAttribute("for")).checked?a.classList.add("checked"):a.classList.remove("checked")),a.addEventListener("click",r=>{if(t.matches("label[for]")){r.stopPropagation(),r.preventDefault();const e=document.getElementById(t.getAttribute("for")),i=e.getAttribute("name"),o=e.getAttribute("id");Array.from(document.querySelectorAll(`[name="${i}"][type="radio"]:not([id="${o}"])`)).forEach((d,n)=>{document.querySelector(`[for="${d.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),t.click(),e.checked?a.classList.add("checked"):a.classList.remove("checked")}}),this.addEventListener("inactive",r=>{a.classList.remove("checked")}),a.addEventListener("keydown",r=>{switch(r.keyCode){case 32:case 13:if(t.matches("label[for]")){r.stopPropagation(),r.preventDefault();const e=document.getElementById(t.getAttribute("for")),i=e.getAttribute("name"),o=e.getAttribute("id");Array.from(document.querySelectorAll(`[name="${i}"]:not([id="${o}"])`)).forEach((d,n)=>{document.querySelector(`[for="${d.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),t.click(),e.checked?a.classList.add("checked"):a.classList.remove("checked")}else t.click();break}})}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(t,a,r){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total").innerHTML=r;break}case"class":{let e=this.classList.toString();this.querySelector('[class*="fa-"]')&&(e+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class",`card ${e}`);break}}}}export{h as default};
|
|
21
21
|
//# sourceMappingURL=card.component.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.component.min.js","sources":["card.component.js"],"sourcesContent":["// @ts-nocheck\n// Data layer Web component created\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n \"event\": \"customElementRegistered\",\n \"element\": \"Card\"\n});\nclass iamCard extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n if (this.querySelector('[class*=\"fa-\"]'))\n this.classList.add('card--has-icon');\n let classList = this.classList.toString();\n const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';\n const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;\n const loadCSS = `@import \"${assetLocation}/css/components/card.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n @import \"${coreCSS}\";\n ${loadCSS}\n ${this.hasAttribute('css') ? `@import \"${this.getAttribute('css')}\";` : ``}\n </style>\n <div class=\"card ${classList}\" tabindex=\"0\" role=\"button\">\n ${this.hasAttribute('data-image') ? `<div class=\"card__head\"><img src=\"${this.getAttribute('data-image')}\" alt=\"\" loading=\"lazy\" /></div>` : ''}\n <div class=\"card__body\">\n ${this.classList.contains('card--filter') && this.hasAttribute('data-total') ? `<div class=\"card__total\">${this.getAttribute('data-total')}</div>` : ''}\n ${this.hasAttribute('data-illustration') ? `<div class=\"card__illustration\"><img src=\"${this.getAttribute('data-illustration')}\" alt=\"\" loading=\"lazy\" /></div>` : ''}\n <slot></slot>\n </div>\n ${this.hasAttribute('data-cta') ? `<div class=\"card__footer\"><span class=\"link\">${this.getAttribute('data-cta')}</span></div>` : ''}\n </div>\n `;\n this.shadowRoot.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n this.classList.add('loaded');\n // Mimic clicking the parent node so the focus and target events can be on the card\n const parentNode = this.parentNode.closest('a, button, label');\n const card = this.shadowRoot.querySelector('.card');\n parentNode.setAttribute('tabindex', '-1');\n if (parentNode.matches('label[for]')) {\n let isChecked = document.getElementById(parentNode.getAttribute('for')).checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n card.addEventListener('click', (event) => {\n if (parentNode.matches('label[for]')) {\n event.stopPropagation();\n event.preventDefault();\n const input = document.getElementById(parentNode.getAttribute('for'));\n const inputName = input.getAttribute('name');\n const inputID = input.getAttribute('id');\n const inputs = Array.from(document.querySelectorAll(`[name=\"${inputName}\"]:not([id=\"${inputID}\"])`));\n inputs.forEach((input, index) => {\n const otherCard = document.querySelector(`[for=\"${input.getAttribute('id')}\"] iam-card`);\n otherCard.dispatchEvent(new Event('inactive'));\n });\n parentNode.click();\n let isChecked = input.checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n });\n this.addEventListener('inactive', (event) => {\n card.classList.remove('checked');\n });\n card.addEventListener('keydown', (event) => {\n switch (event.keyCode) {\n case 32:\n case 13:\n if (parentNode.matches('label[for]')) {\n event.stopPropagation();\n event.preventDefault();\n const input = document.getElementById(parentNode.getAttribute('for'));\n const inputName = input.getAttribute('name');\n const inputID = input.getAttribute('id');\n const inputs = Array.from(document.querySelectorAll(`[name=\"${inputName}\"]:not([id=\"${inputID}\"])`));\n inputs.forEach((input, index) => {\n const otherCard = document.querySelector(`[for=\"${input.getAttribute('id')}\"] iam-card`);\n otherCard.dispatchEvent(new Event('inactive'));\n });\n parentNode.click();\n let isChecked = input.checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n else {\n parentNode.click();\n }\n break;\n default:\n break;\n }\n });\n }\n static get observedAttributes() {\n return [\"data-total\", \"class\"];\n }\n attributeChangedCallback(attrName, oldVal, newVal) {\n switch (attrName) {\n case \"data-total\": {\n this.shadowRoot.querySelector('.card__total').innerHTML = newVal;\n break;\n }\n case \"class\": {\n let classList = this.classList.toString();\n if (this.querySelector('[class*=\"fa-\"]'))\n classList += ' card--has-icon';\n this.shadowRoot.querySelector('.card').setAttribute('class', `card ${classList}`);\n break;\n }\n }\n }\n}\nexport default iamCard;\n"],"names":["iamCard","classList","assetLocation","coreCSS","template","parentNode","card","event","input","inputName","inputID","index","attrName","oldVal","newVal"],"mappings":";;;IAEA,OAAO,UAAY,OAAO,WAAa,GACvC,OAAO,UAAU,KAAK,CAClB,MAAS,0BACT,QAAW,MACf,CAAC,EACD,MAAMA,UAAgB,WAAY,CAC9B,aAAc,CACV,QACA,KAAK,aAAa,CAAE,KAAM,MAAQ,CAAA,EAC9B,KAAK,cAAc,gBAAgB,GACnC,KAAK,UAAU,IAAI,gBAAgB,EACvC,IAAIC,EAAY,KAAK,UAAU,SAAQ,EACvC,MAAMC,EAAgB,SAAS,KAAK,aAAa,sBAAsB,EAAI,SAAS,KAAK,aAAa,sBAAsB,EAAI,UAC1HC,EAAU,SAAS,KAAK,aAAa,eAAe,EAAI,SAAS,KAAK,aAAa,eAAe,EAAI,GAAGD,qBAEzGE,EAAW,SAAS,cAAc,UAAU,EAClDA,EAAS,UAAY;AAAA;AAAA,eAEdD;AAAA;AAAA;AAAA,MAET,KAAK,aAAa,KAAK,EAAI,YAAY,KAAK,aAAa,KAAK,MAAQ;AAAA;AAAA,uBAErDF;AAAA,QACf,KAAK,aAAa,YAAY,EAAI,qCAAqC,KAAK,aAAa,YAAY,oCAAsC;AAAA;AAAA,QAE3I,KAAK,UAAU,SAAS,cAAc,GAAK,KAAK,aAAa,YAAY,EAAI,4BAA4B,KAAK,aAAa,YAAY,UAAY;AAAA,QACnJ,KAAK,aAAa,mBAAmB,EAAI,6CAA6C,KAAK,aAAa,mBAAmB,oCAAsC;AAAA;AAAA;AAAA,QAGjK,KAAK,aAAa,UAAU,EAAI,gDAAgD,KAAK,aAAa,UAAU,iBAAmB;AAAA;AAAA,MAG/H,KAAK,WAAW,YAAYG,EAAS,QAAQ,UAAU,EAAI,CAAC,CAC/D,CACD,mBAAoB,CAChB,KAAK,UAAU,IAAI,QAAQ,EAE3B,MAAMC,EAAa,KAAK,WAAW,QAAQ,kBAAkB,EACvDC,EAAO,KAAK,WAAW,cAAc,OAAO,EAClDD,EAAW,aAAa,WAAY,IAAI,EACpCA,EAAW,QAAQ,YAAY,IACf,SAAS,eAAeA,EAAW,aAAa,KAAK,CAAC,EAAE,QAEpEC,EAAK,UAAU,IAAI,SAAS,EAE5BA,EAAK,UAAU,OAAO,SAAS,GAEvCA,EAAK,iBAAiB,QAAUC,GAAU,CACtC,GAAIF,EAAW,QAAQ,YAAY,EAAG,CAClCE,EAAM,gBAAe,EACrBA,EAAM,eAAc,EACpB,MAAMC,EAAQ,SAAS,eAAeH,EAAW,aAAa,KAAK,CAAC,EAC9DI,EAAYD,EAAM,aAAa,MAAM,EACrCE,EAAUF,EAAM,aAAa,IAAI,
|
|
1
|
+
{"version":3,"file":"card.component.min.js","sources":["card.component.js"],"sourcesContent":["// @ts-nocheck\n// Data layer Web component created\nwindow.dataLayer = window.dataLayer || [];\nwindow.dataLayer.push({\n \"event\": \"customElementRegistered\",\n \"element\": \"Card\"\n});\nclass iamCard extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n if (this.querySelector('[class*=\"fa-\"]'))\n this.classList.add('card--has-icon');\n let classList = this.classList.toString();\n const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';\n const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;\n const loadCSS = `@import \"${assetLocation}/css/components/card.css\";`;\n const template = document.createElement('template');\n template.innerHTML = `\n <style>\n @import \"${coreCSS}\";\n ${loadCSS}\n ${this.hasAttribute('css') ? `@import \"${this.getAttribute('css')}\";` : ``}\n </style>\n <div class=\"card ${classList}\" tabindex=\"0\" role=\"button\">\n ${this.hasAttribute('data-image') ? `<div class=\"card__head\"><img src=\"${this.getAttribute('data-image')}\" alt=\"\" loading=\"lazy\" /></div>` : ''}\n <div class=\"card__body\">\n ${this.classList.contains('card--filter') && this.hasAttribute('data-total') ? `<div class=\"card__total\">${this.getAttribute('data-total')}</div>` : ''}\n ${this.hasAttribute('data-illustration') ? `<div class=\"card__illustration\"><img src=\"${this.getAttribute('data-illustration')}\" alt=\"\" loading=\"lazy\" /></div>` : ''}\n <slot></slot>\n </div>\n ${this.hasAttribute('data-cta') ? `<div class=\"card__footer\"><span class=\"link\">${this.getAttribute('data-cta')}</span></div>` : ''}\n </div>\n `;\n this.shadowRoot.appendChild(template.content.cloneNode(true));\n }\n connectedCallback() {\n this.classList.add('loaded');\n // Mimic clicking the parent node so the focus and target events can be on the card\n const parentNode = this.parentNode.closest('a, button, label');\n const card = this.shadowRoot.querySelector('.card');\n parentNode.setAttribute('tabindex', '-1');\n if (parentNode.matches('label[for]')) {\n let isChecked = document.getElementById(parentNode.getAttribute('for')).checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n card.addEventListener('click', (event) => {\n if (parentNode.matches('label[for]')) {\n event.stopPropagation();\n event.preventDefault();\n const input = document.getElementById(parentNode.getAttribute('for'));\n const inputName = input.getAttribute('name');\n const inputID = input.getAttribute('id');\n // Mimic radio button functionality\n const inputs = Array.from(document.querySelectorAll(`[name=\"${inputName}\"][type=\"radio\"]:not([id=\"${inputID}\"])`));\n inputs.forEach((input, index) => {\n const otherCard = document.querySelector(`[for=\"${input.getAttribute('id')}\"] iam-card`);\n otherCard.dispatchEvent(new Event('inactive'));\n });\n parentNode.click();\n let isChecked = input.checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n });\n this.addEventListener('inactive', (event) => {\n card.classList.remove('checked');\n });\n card.addEventListener('keydown', (event) => {\n switch (event.keyCode) {\n case 32:\n case 13:\n if (parentNode.matches('label[for]')) {\n event.stopPropagation();\n event.preventDefault();\n const input = document.getElementById(parentNode.getAttribute('for'));\n const inputName = input.getAttribute('name');\n const inputID = input.getAttribute('id');\n const inputs = Array.from(document.querySelectorAll(`[name=\"${inputName}\"]:not([id=\"${inputID}\"])`));\n inputs.forEach((input, index) => {\n const otherCard = document.querySelector(`[for=\"${input.getAttribute('id')}\"] iam-card`);\n otherCard.dispatchEvent(new Event('inactive'));\n });\n parentNode.click();\n let isChecked = input.checked;\n if (isChecked)\n card.classList.add('checked');\n else\n card.classList.remove('checked');\n }\n else {\n parentNode.click();\n }\n break;\n default:\n break;\n }\n });\n }\n static get observedAttributes() {\n return [\"data-total\", \"class\"];\n }\n attributeChangedCallback(attrName, oldVal, newVal) {\n switch (attrName) {\n case \"data-total\": {\n this.shadowRoot.querySelector('.card__total').innerHTML = newVal;\n break;\n }\n case \"class\": {\n let classList = this.classList.toString();\n if (this.querySelector('[class*=\"fa-\"]'))\n classList += ' card--has-icon';\n this.shadowRoot.querySelector('.card').setAttribute('class', `card ${classList}`);\n break;\n }\n }\n }\n}\nexport default iamCard;\n"],"names":["iamCard","classList","assetLocation","coreCSS","template","parentNode","card","event","input","inputName","inputID","index","attrName","oldVal","newVal"],"mappings":";;;IAEA,OAAO,UAAY,OAAO,WAAa,GACvC,OAAO,UAAU,KAAK,CAClB,MAAS,0BACT,QAAW,MACf,CAAC,EACD,MAAMA,UAAgB,WAAY,CAC9B,aAAc,CACV,QACA,KAAK,aAAa,CAAE,KAAM,MAAQ,CAAA,EAC9B,KAAK,cAAc,gBAAgB,GACnC,KAAK,UAAU,IAAI,gBAAgB,EACvC,IAAIC,EAAY,KAAK,UAAU,SAAQ,EACvC,MAAMC,EAAgB,SAAS,KAAK,aAAa,sBAAsB,EAAI,SAAS,KAAK,aAAa,sBAAsB,EAAI,UAC1HC,EAAU,SAAS,KAAK,aAAa,eAAe,EAAI,SAAS,KAAK,aAAa,eAAe,EAAI,GAAGD,qBAEzGE,EAAW,SAAS,cAAc,UAAU,EAClDA,EAAS,UAAY;AAAA;AAAA,eAEdD;AAAA;AAAA;AAAA,MAET,KAAK,aAAa,KAAK,EAAI,YAAY,KAAK,aAAa,KAAK,MAAQ;AAAA;AAAA,uBAErDF;AAAA,QACf,KAAK,aAAa,YAAY,EAAI,qCAAqC,KAAK,aAAa,YAAY,oCAAsC;AAAA;AAAA,QAE3I,KAAK,UAAU,SAAS,cAAc,GAAK,KAAK,aAAa,YAAY,EAAI,4BAA4B,KAAK,aAAa,YAAY,UAAY;AAAA,QACnJ,KAAK,aAAa,mBAAmB,EAAI,6CAA6C,KAAK,aAAa,mBAAmB,oCAAsC;AAAA;AAAA;AAAA,QAGjK,KAAK,aAAa,UAAU,EAAI,gDAAgD,KAAK,aAAa,UAAU,iBAAmB;AAAA;AAAA,MAG/H,KAAK,WAAW,YAAYG,EAAS,QAAQ,UAAU,EAAI,CAAC,CAC/D,CACD,mBAAoB,CAChB,KAAK,UAAU,IAAI,QAAQ,EAE3B,MAAMC,EAAa,KAAK,WAAW,QAAQ,kBAAkB,EACvDC,EAAO,KAAK,WAAW,cAAc,OAAO,EAClDD,EAAW,aAAa,WAAY,IAAI,EACpCA,EAAW,QAAQ,YAAY,IACf,SAAS,eAAeA,EAAW,aAAa,KAAK,CAAC,EAAE,QAEpEC,EAAK,UAAU,IAAI,SAAS,EAE5BA,EAAK,UAAU,OAAO,SAAS,GAEvCA,EAAK,iBAAiB,QAAUC,GAAU,CACtC,GAAIF,EAAW,QAAQ,YAAY,EAAG,CAClCE,EAAM,gBAAe,EACrBA,EAAM,eAAc,EACpB,MAAMC,EAAQ,SAAS,eAAeH,EAAW,aAAa,KAAK,CAAC,EAC9DI,EAAYD,EAAM,aAAa,MAAM,EACrCE,EAAUF,EAAM,aAAa,IAAI,EAExB,MAAM,KAAK,SAAS,iBAAiB,UAAUC,8BAAsCC,MAAY,CAAC,EAC1G,QAAQ,CAACF,EAAOG,IAAU,CACX,SAAS,cAAc,SAASH,EAAM,aAAa,IAAI,cAAc,EAC7E,cAAc,IAAI,MAAM,UAAU,CAAC,CACjE,CAAiB,EACDH,EAAW,MAAK,EACAG,EAAM,QAElBF,EAAK,UAAU,IAAI,SAAS,EAE5BA,EAAK,UAAU,OAAO,SAAS,EAEnD,CAAS,EACD,KAAK,iBAAiB,WAAaC,GAAU,CACzCD,EAAK,UAAU,OAAO,SAAS,CAC3C,CAAS,EACDA,EAAK,iBAAiB,UAAYC,GAAU,CACxC,OAAQA,EAAM,QAAO,CACjB,IAAK,IACL,IAAK,IACD,GAAIF,EAAW,QAAQ,YAAY,EAAG,CAClCE,EAAM,gBAAe,EACrBA,EAAM,eAAc,EACpB,MAAMC,EAAQ,SAAS,eAAeH,EAAW,aAAa,KAAK,CAAC,EAC9DI,EAAYD,EAAM,aAAa,MAAM,EACrCE,EAAUF,EAAM,aAAa,IAAI,EACxB,MAAM,KAAK,SAAS,iBAAiB,UAAUC,gBAAwBC,MAAY,CAAC,EAC5F,QAAQ,CAACF,EAAOG,IAAU,CACX,SAAS,cAAc,SAASH,EAAM,aAAa,IAAI,cAAc,EAC7E,cAAc,IAAI,MAAM,UAAU,CAAC,CACzE,CAAyB,EACDH,EAAW,MAAK,EACAG,EAAM,QAElBF,EAAK,UAAU,IAAI,SAAS,EAE5BA,EAAK,UAAU,OAAO,SAAS,OAGnCD,EAAW,MAAK,EAEpB,KAGP,CACb,CAAS,CACJ,CACD,WAAW,oBAAqB,CAC5B,MAAO,CAAC,aAAc,OAAO,CAChC,CACD,yBAAyBO,EAAUC,EAAQC,EAAQ,CAC/C,OAAQF,EAAQ,CACZ,IAAK,aAAc,CACf,KAAK,WAAW,cAAc,cAAc,EAAE,UAAYE,EAC1D,KACH,CACD,IAAK,QAAS,CACV,IAAIb,EAAY,KAAK,UAAU,SAAQ,EACnC,KAAK,cAAc,gBAAgB,IACnCA,GAAa,mBACjB,KAAK,WAAW,cAAc,OAAO,EAAE,aAAa,QAAS,QAAQA,GAAW,EAChF,KACH,CACJ,CACJ,CACL"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/function r(s,t){n(s,t)}function n(s,t){var e;t.addEventListener("keyup",a=>{clearTimeout(e),e=setTimeout(function(){o(s,t.value)},500)}),t.addEventListener("change",a=>{clearTimeout(e),o(s,t.value)})}const o=function(s,t){Array.from(s.querySelectorAll(":scope > li")).forEach((e,a)=>{let i=e.textContent.toLowerCase();e.classList.add("d-none"),i.includes(t.toLowerCase())&&e.classList.remove("d-none")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Filtered list",value:t})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"filterlist"});class l extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,a=document.createElement("template");a.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=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"):`${e}/css/core.min.css`,o=document.createElement("template");o.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/function r(i){if(i.hasAttribute("data-type")&&i.getAttribute("data-type")=="toast"){let t=document.querySelector(".notification__holder");t||(t=document.createElement("div"),t.classList.add("notification__holder"),t.classList.add("container"),document.querySelector("body").appendChild(t)),i.closest(".notification__holder")||t.appendChild(i)}if(i.setAttribute("role","alert"),i.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(t.preventDefault(),n(i))},!1),i.hasAttribute("data-timeout")){let t=i.getAttribute("data-timeout");var a=new c(function(){n(i)},t);i.addEventListener("mouseenter",o=>{a.pause()}),i.addEventListener("mouseleave",o=>{a.resume()})}}function c(i,a){var t,o,e=a;this.pause=function(){window.clearTimeout(t),e-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(t),t=window.setTimeout(i,e)},this.resume()}const n=function(i){i.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class d extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,o=this.querySelectorAll("a,button");Array.from(o).forEach((s,l)=>{s.setAttribute("slot","btns"),s.classList.add("link")}),(o.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");const e=document.createElement("template");e.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/const l=function(e,t){if(!e.getAttribute("data-pages"))return!1;e.getAttribute("data-page")||e.setAttribute("data-page",1);let a=e.getAttribute("data-page"),i=e.getAttribute("data-pages"),d=e.getAttribute("data-total"),n=e.getAttribute("data-show"),o=e.getAttribute("data-increment");if(i<=1)return t.innerHTML="",!1;let r="";for(let s=1;s<=i;s++)s==a?r+=`<li class="page-item active" aria-current="page"><span class="page-link">${s}</span></li>`:r+=`<li class="page-item"><a href="?page=${s}" class="page-link" data-page="${s}">${s}</a></li>`;return t.innerHTML=`<ul class="pagination mb-0 d-none d-sm-flex">
|
|
5
5
|
${a==1?'<li class="page-item disabled"><span class="page-link">Previous</span></li>':`<li class="page-item"><a href="?page=${parseInt(a)-1}" class="page-link" data-page="${parseInt(a)-1}">Previous</a></li>`}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/const U=function(a){return typeof a!="string"?!1:!isNaN(a)&&!isNaN(parseFloat(a))},z=(a,t)=>String(a).padStart(t,"0"),Y=a=>a.charAt(0).toUpperCase()+a.slice(1),v=function(a,t){if(!a.getAttribute("data-pages"))return!1;a.getAttribute("data-page")||a.setAttribute("data-page",1);let o=a.getAttribute("data-page"),r=a.getAttribute("data-pages"),n=a.getAttribute("data-total"),l=a.getAttribute("data-show"),s=a.getAttribute("data-increment");if(r<=1)return t.innerHTML="",!1;let d="";for(let i=1;i<=r;i++)i==o?d+=`<li class="page-item active" aria-current="page"><span class="page-link">${i}</span></li>`:d+=`<li class="page-item"><a href="?page=${i}" class="page-link" data-page="${i}">${i}</a></li>`;return t.innerHTML=`<ul class="pagination mb-0 d-none d-sm-flex">
|
|
5
5
|
${o==1?'<li class="page-item disabled"><span class="page-link">Previous</span></li>':`<li class="page-item"><a href="?page=${parseInt(o)-1}" class="page-link" data-page="${parseInt(o)-1}">Previous</a></li>`}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/const n=function(t){const i=t.querySelectorAll(":scope > details");t.querySelectorAll(":scope > details > summary");let o=t.querySelector(":scope > .tabs__links");t.shadowRoot&&t.shadowRoot.querySelector(".tabs__links")&&(o=t.shadowRoot.querySelector(".tabs__links")),o||(o=document.createElement("div"),o.classList.add("tabs__links"),t.prepend(o)),i.forEach((s,a)=>{let r=s.querySelector(":scope > summary");r.classList.add("visually-hidden");let e=document.createElement("button");s.hasAttribute("id")&&(e=document.createElement("a"),e.setAttribute("href",`#${s.getAttribute("id")}`)),s.hasAttribute("open")&&e.setAttribute("aria-pressed",!0),e.innerHTML=`${r.innerText}`,e.classList.add("link"),e.setAttribute("data-index",a),e.setAttribute("tabindex","-1"),o.appendChild(e)})},d=function(t){let i=t.querySelectorAll(":scope > details"),o=t.querySelectorAll(":scope > details > summary"),s=t.querySelectorAll(":scope .tabs__links > .link");t.shadowRoot&&(s=t.shadowRoot.querySelectorAll(".tabs__links > .link")),s.forEach(a=>{a.addEventListener("click",r=>{r.preventDefault(),s.forEach(e=>{let c=e==a;e.setAttribute("aria-pressed",c)}),i.forEach((e,c)=>{let l=a.getAttribute("data-index")==c;l?e.setAttribute("open",l):e.removeAttribute("open")}),a.hasAttribute("href")&&history.pushState(void 0,void 0,a.getAttribute("href")),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:a.textContent})})}),o.forEach((a,r)=>{a.addEventListener("focus",e=>{s.forEach(c=>{c.classList.remove("focus")}),s[r].classList.add("focus")}),a.addEventListener("click",e=>{e.preventDefault(),s[r].click()})})},u=function(t){let i=t.querySelectorAll(":scope > details"),o=t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");t.shadowRoot&&(o=t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")),location.hash&&t.querySelector(`.tabs__links [href="${location.hash}"]`)?(t.querySelector(`[href="${location.hash}"]`).setAttribute("open",!0),t.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):t.querySelector("details[open]")||(i[0].setAttribute("open",!0),o[0].setAttribute("aria-pressed",!0))},h=function(t){n(t),d(t),u(t)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class p extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",o=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${i}/css/core.min.css`,s=document.createElement("template");s.innerHTML=`
|
|
5
5
|
<style>
|
package/assets/js/dynamic.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/(function(f){typeof define=="function"&&define.amd?define(f):f()})(function(){"use strict";const f=e=>{e.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&e.classList.add("ie");let a=document.querySelector("nav");if(a){let o=function(){t=a.offsetHeight,document.querySelector("body").style.setProperty("--nav-height",`${t}px`)},t=a.offsetHeight;document.querySelector("body").style.setProperty("--nav-height",`${t}px`),new ResizeObserver(o).observe(a)}else document.querySelector("body").style.setProperty("--nav-height","0px");return null},p=e=>{const a=function(t){const o=document.querySelector(`label[for="${t.replace("#","")}"]`),i=document.querySelector(t+" summary"),s=document.querySelector(`dialog${t}`);o instanceof HTMLElement?o.click():i instanceof HTMLElement?i.click():s instanceof HTMLElement&&s.showModal()};return location.hash&&a(location.hash),window.addEventListener("hashchange",function(){a(location.hash)},!1),addEventListener("popstate",t=>{if(t&&t.state.type&&t.state.type=="pagination"){let o=document.querySelector(`#${t.state.form}`),i=document.querySelector(`#${t.state.form} [data-pagination]`);i?i.value=t.state.page:o.innerHTML+=`<input name="page" type="hidden" data-pagination="true" value="${t.state.page}" />`,o.dispatchEvent(new Event("submit"))}}),null};class A{constructor(a){document.body.classList.contains("youtubeLoaded")?a.addEventListener("click",function(t){for(var o=t.target;o&&o!=this;o=o.parentNode)if(o.matches("a")){t.preventDefault(),h(o);break}},!1):this.loadScripts(a,this.createEmbed)}loadScripts(a){return new Promise((t,o)=>{const i=new Image;i.onload=function(){var s=document.createElement("script");s.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(s,n),document.body.classList.add("youtubeLoaded"),t(!0),s.onload=()=>{a.addEventListener("click",function(l){console.log("click"),l&&l.target instanceof HTMLElement&&l.target.closest("a")&&(l.preventDefault(),h(l.target.closest("a")))},!1)}},i.onerror=function(){o(!1)},i.src="https://youtube.com/favicon.ico"})}}const h=function(e){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var a=e.getAttribute("data-id"),t=e.getAttribute("id");if(typeof t>"u"||t==null){var o=String.fromCharCode(65+Math.floor(Math.random()*26));t=o+Date.now(),e.setAttribute("id",t)}function i(){window.player=new YT.Player(t,{height:"100%",width:"100%",videoId:a,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:s,onStateChange:l}})}i();function s(r){r.target.playVideo()}var n=!1;function l(r){if(r.data==YT.PlayerState.PLAYING&&!n){var d=document.getElementById(t);d.classList.add("player-ready"),n=!0}}},L=e=>(e.addEventListener("click",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("[data-modal]")){const o=a.target.closest("[data-modal]"),i=o.hasAttribute("data-modal")?o.getAttribute("data-modal"):o.getAttribute("data-filter"),s=document.querySelector(`dialog#${i}`);v(s),s.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!s.classList.contains("dialog--multi")&&s.addEventListener("cancel",l=>{l.preventDefault()});let n=s.querySelector(".youtube-embed a");n&&h(n),s.showModal(),s.focus(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:i})}if(a&&a.target instanceof HTMLElement&&a.target.closest("button.dialog__close")){const o=a.target.closest("dialog[open]");a.preventDefault(),o.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((i,s)=>{i.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest('button[formmethod="dialog"]')){const o=a.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((i,s)=>{i.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(a&&a.target instanceof HTMLElement&&a.target.closest("dialog[open]")){const o=a.target.closest("dialog[open]");if(!o.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||o.classList.contains("dialog--multi")){const i=o.getBoundingClientRect();(a.clientX<i.left||a.clientX>i.right||a.clientY<i.top||a.clientY>i.bottom)&&(a.target.closest('input[type="radio"]')||o.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")}))}}if(a&&a.target instanceof HTMLElement&&a.target.closest(".dialog__wrapper > button")){let o=a.target.closest(".dialog__wrapper > button"),i=a.target.closest(".dialog__wrapper > button").parentNode,s="openPopover",n=i.querySelector(":scope > dialog");if(document.querySelector("dialog[open]")&&document.querySelector("dialog[open]")!=n&&document.querySelector("dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((c,u)=>{c.classList.remove("active")}),n.hasAttribute("open"))n.close(),s="closePopover",n.removeAttribute("style"),o.classList.remove("active");else{n.show(),o.classList.add("active");var t=o.getBoundingClientRect();let c=t.top,u=t.left;if(o.closest("iam-table")){let b=o.closest("iam-table").parentNode.getBoundingClientRect();c-=b.top,u-=b.left}n.classList.contains("dialog--fix")&&n.setAttribute("style",`position:fixed;top: ${c}px; left: ${u}px; margin: 3rem 0 0 0;`)}let r=n.getBoundingClientRect().bottom-window.scrollY,d=window.innerHeight-window.scrollY;if(r>d){let c=n.hasAttribute("style")?n.getAttribute("style")+" ":"";n.setAttribute("style",c+"transform: translate(0, calc(-100% - 4rem))")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:s,id:o.textContent})}a&&a.target instanceof HTMLElement&&!a.target.closest("dialog[open]")&&!a.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((o,i)=>{o.classList.remove("active")}))}),null),v=e=>{if(e.classList.contains("dialog--multi")&&!e.querySelector(":scope > .steps")&&w(e),!e.querySelector(":scope > .mh-lg")&&!e.classList.contains("dialog--multi")){e.innerHTML=`<div class="mh-lg">${e.innerHTML}</div>`;let a=e.querySelector(".mh-lg"),t=e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(t){let o=t.previousSibling;a.before(t),o&&t.before(o)}}e.querySelector(":scope > button:first-child")||(e.innerHTML=`<button class="dialog__close">Close</button>${e.innerHTML}`)},w=e=>{let a="",t=Array.from(e.querySelectorAll("fieldset[data-title]"));t.forEach((o,i)=>{a+=`<button data-title="${o.getAttribute("data-title")}" type="button" class="${i==0?"active":""}">${o.getAttribute("data-title")}</button>`;const s=document.createElement("div");s.classList.add("btn--wrapper"),o.appendChild(s),i!=0&&(s.innerHTML+=`<button data-title="${t[i-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" type="button">Previous</button>`),i!=t.length-1&&(s.innerHTML+=`<button data-title="${t[i+1].getAttribute("data-title")}" class="btn btn-primary mb-0" type="button">Next</button>`),i==t.length-1&&(s.innerHTML+='<button class="btn btn-primary mb-0">Submit</button>')}),e.innerHTML=`<div class="steps bg-primary">${a}</div>${e.innerHTML}`,e.addEventListener("click",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest("button[data-title]")){const i=o.target.closest("button[data-title]"),s=e.querySelector(`fieldset[data-title="${i.getAttribute("data-title")}"]`),n=e.querySelector(`.steps button[data-title="${i.getAttribute("data-title")}"]`);Array.from(e.querySelectorAll("button")).forEach((l,r)=>{l.classList.remove("active")}),Array.from(e.querySelectorAll("fieldset")).forEach((l,r)=>{l.classList.remove("active")}),n.classList.add("active"),s.classList.add("active")}return null})};function S(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",e=>{const a=e.target.closest("[open] summary");if(a)window.dataLayer.push({event:"closeDetails",detailsTitle:a.textContent||""});else{const t=e.target.closest("summary"),o=e.target.closest("a"),i=e.target.closest("button");t&&window.dataLayer.push({event:"openDetails",detailsTitle:t.textContent||""}),o&&window.dataLayer.push({event:"linkClicked",linkText:o.hasAttribute("title")?o.getAttribute("title")||"":o.textContent||"",class:o.hasAttribute("class")&&o.getAttribute("class")||"",href:o.getAttribute("href")||""}),i&&window.dataLayer.push({event:"buttonClicked",buttonText:i.textContent||"",class:i.hasAttribute("class")&&i.getAttribute("class")||""})}})}const q=e=>{document.addEventListener("load",function(){console.log(Array.from(document.querySelectorAll("input[maxlength]"))),Array.from(document.querySelectorAll("input")).forEach((a,t)=>{a.parentElement,E(a)})}),e.addEventListener("input",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("input,textarea,select")){const t=a.target.closest("input,textarea,select");t.parentElement,t.hasAttribute("type")&&t.getAttribute("type")=="color"&&(t.nextElementSibling.value=t.value),t.hasAttribute("maxlength")&&t.nextElementSibling&&t.nextElementSibling.setAttribute("data-count",t.value.length)}}),e.addEventListener("change",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("select")){const t=a.target.closest("select");if(console.log(t),t.hasAttribute("data-change-type")&&t.hasAttribute("data-input")){const o=document.getElementById(t.getAttribute("data-input")),i=t.value;g(o,i)}}if(a&&a.target instanceof HTMLElement&&a.target.closest('dialog [type="radio"]')){const t=a.target.closest("dialog");a.target.closest('dialog [type="radio"]'),Array.from(t.querySelectorAll('[type="radio"][autofocus]')).forEach((o,i)=>{o.removeAttribute("autofocus")}),Array.from(t.querySelectorAll('[type="radio"]:checked')).forEach((o,i)=>{o.setAttribute("autofocus",!0)})}}),e.addEventListener("click",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("[data-change-type][data-input]:not(select)")){const t=a.target.closest("[data-change-type]"),o=document.getElementById(t.getAttribute("data-input")),i=t.getAttribute("data-change-type");if(t.setAttribute("data-change-type",o.getAttribute("type")),g(o,i),t.hasAttribute("data-alt-class")){const s=t.getAttribute("data-alt-class");t.setAttribute("data-alt-class",t.getAttribute("class")),t.setAttribute("class",s)}}})},E=e=>{let a=e.parentElement,t=e.getAttribute("maxlength");a.style.setProperty("--maxlength",t);let o=e.nextElementSibling;(!o||o&&o.classList.contains("invalid-feedback"))&&(o=document.createElement("span"),a.insertBefore(o,e.nextSibling)),o.setAttribute("data-count",e.value.length)},g=(e,a)=>{e.setAttribute("type",a)},x=e=>{Array.from(e.querySelectorAll("details")).forEach((a,t)=>{a.addEventListener("mouseenter",function(o){window.matchMedia("(min-width: 62em)").matches&&a.setAttribute("open","true")},!1),a.addEventListener("mouseleave",function(o){window.matchMedia("(min-width: 62em)").matches&&a.removeAttribute("open")},!1)}),"IntersectionObserver"in window&&new IntersectionObserver(([t])=>t.target.classList.toggle("is-stuck",t.intersectionRatio<1),{threshold:[1]}).observe(e)};function T(e){var a;const t=e.querySelector(".testimonial__images"),o=t.querySelectorAll("img").length;if(o==1)return!1;e.classList.add("testimonial--multi");const i=function(s){const n=e.querySelector(".btn-next"),l=e.querySelector(".btn-prev");n.setAttribute("data-go",s+1),l.setAttribute("data-go",s-1),n.removeAttribute("disabled"),l.removeAttribute("disabled"),s==1?l.setAttribute("disabled",!0):s==o&&n.setAttribute("disabled",!0)};t.addEventListener("scroll",function(s){clearTimeout(a),a=setTimeout(function(){let n=t.scrollWidth,l=t.scrollHeight,r=t.scrollLeft,d=t.scrollTop,c=Math.round(r/n*o)+1;r==0&&d!=0&&(c=Math.round(d/l*o)+1),e.setAttribute("data-show",c),i(c)},300)},!1),e.addEventListener("click",function(s){for(var n=s.target;n&&n!=this;n=n.parentNode)if(n.matches("[data-go]")){let l=parseInt(n.getAttribute("data-go")),r=0,d=0,c=t.scrollWidth,u=t.scrollHeight;c>u?d=Math.floor(c*((l-1)/o)):r=Math.floor(u*((l-1)/o)),t.scroll({top:r,left:d,behavior:"smooth"});break}},!1)}function _(e){var a;let t=e.querySelector(".carousel__inner"),o=e.querySelectorAll(".carousel__item").length;e.getAttribute("data-cols");let i=e.getAttribute("data-sm-cols"),s=e.getAttribute("data-md-cols");e.querySelector(".carousel__controls a").classList.add("active"),t.addEventListener("scroll",function(n){clearTimeout(a),a=setTimeout(function(){let l=t.clientWidth,r=t.scrollWidth,d=t.scrollLeft,c=Math.round(d/r*o)+1,u=e.querySelector(".carousel__item:last-child").offsetLeft;Array.from(e.querySelectorAll(".carousel__controls a")).forEach((b,R)=>{b.classList.remove("active")}),e.querySelector(".control-"+c).classList.add("active"),c==1?e.querySelector(".btn-prev").setAttribute("disabled","disabled"):e.querySelector(".btn-prev").removeAttribute("disabled"),t.scrollLeft+l>u?e.querySelector(".btn-next").setAttribute("disabled","disabled"):e.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),e.addEventListener("click",function(n){for(var l=n.target;l&&l!=this;l=l.parentNode)if(l.matches(".carousel__controls a")){n.preventDefault(),Array.from(e.querySelectorAll(".carousel__controls a")).forEach((d,c)=>{d.classList.remove("active")}),l.classList.add("active");const r=document.querySelector(l.getAttribute("href"));t.scroll({top:0,left:r.offsetLeft,behavior:"smooth"});break}},!1),e.addEventListener("click",function(n){for(var l=n.target;l&&l!=this;l=l.parentNode)if(l.matches(".btn-next, .btn-prev")){n.preventDefault();let r=l.classList.contains("btn-prev")?t.scrollLeft-t.clientWidth:t.scrollLeft+t.clientWidth;t.scroll({top:0,left:r,behavior:"smooth"});break}},!1),o==1&&e.classList.add("hide-btns"),i>=o&&e.classList.add("hide-sm-btns"),s>=o&&e.classList.add("hide-md-btns")}function M(e){e.addEventListener("change",function(a){var t=parseInt(e.querySelector("[data-min] select,[data-min] input").value),o=parseInt(e.querySelector("[data-max] select,[data-max] input").value);Array.from(e.querySelectorAll("[data-min] input")).forEach((i,s)=>{i.setAttribute("max",o)}),Array.from(e.querySelectorAll("[data-max] input")).forEach((i,s)=>{i.setAttribute("min",t)}),Array.from(e.querySelectorAll("[data-min] select option")).forEach((i,s)=>{parseInt(i.getAttribute("value"))>o?i.classList.add("d-none"):i.classList.remove("d-none")}),Array.from(e.querySelectorAll("[data-max] select option")).forEach((i,s)=>{parseInt(i.getAttribute("value"))<t?i.classList.add("d-none"):i.classList.remove("d-none")})},!1)}function $(e){e.addEventListener("change",function(a){if(e.matches("[data-value-if]")){const t=e.getAttribute("data-redirect"),o=e.getAttribute("data-value-if");e.value==o&&(document.location.href=t)}else typeof e.value<"u"&&(document.location.href=e.value)},!1)}function k(e){const t=e.querySelector(".row").cloneNode(!0),o=e.querySelector("[data-add]");e.addEventListener("click",function(i){for(var s=i.target;s&&s!=this;s=s.parentNode){if(s.matches("[data-add]")){const n=t.cloneNode(!0);e.insertBefore(n,s),o.matches("[data-maxfiles]")&&Array.from(e.querySelectorAll(":scope > .row")).length>=o.dataset.maxfiles&&o.setAttribute("disabled","disabled");break}if(s.matches("[data-delete]")){s.closest(".row").remove(),o.matches("[data-maxfiles]")&&Array.from(e.querySelectorAll(":scope > .row")).length<o.dataset.maxfiles&&o.removeAttribute("disabled");break}}},!1)}function H(e){Array.from(e.querySelectorAll("[data-input-range]")).forEach((a,t)=>{M(a)}),Array.from(e.querySelectorAll("[data-redirect]")).forEach((a,t)=>{$(a)}),Array.from(e.querySelectorAll(".multiple-file-uploads")).forEach((a,t)=>{k(a)}),e.addEventListener("change",function(a){for(var t=a.target;t&&t!=this;t=t.parentNode)if(t.matches('[type="file"][data-filesize]')&&t.files&&t.files[0]){const o=t.dataset.filesize;t.files[0].size>o&&(t.value="",alert("File too large"));break}},!1),e.addEventListener("change",function(a){Array.from(e.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((t,o)=>{let i=t.closest("[data-group]")?t.closest("[data-group]"):e,s=t.dataset.activeif,n=t.dataset.equals;i.querySelector(`select[data-id="${s}"],input[data-id="${s}"]`).value==n?t.removeAttribute("disabled"):(t.setAttribute("disabled","disabled"),t.value="")}),Array.from(e.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((t,o)=>{let i=t.closest("[data-group]")?t.closest("[data-group]"):e,s=t.dataset.activeif,n=t.dataset.equals;i.querySelector(`select[data-id="${s}"],input[data-id="${s}"]`).value==n?t.classList.remove("d-none"):t.classList.add("d-none")})},!1)}function C(e){if(e.hasAttribute("data-type")&&e.getAttribute("data-type")=="toast"){let t=document.querySelector(".notification__holder");t||(t=document.createElement("div"),t.classList.add("notification__holder"),t.classList.add("container"),document.querySelector("body").appendChild(t)),e.closest(".notification__holder")||t.appendChild(e)}if(e.setAttribute("role","alert"),e.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&event.target.closest("[data-dismiss-button]")&&(t.preventDefault(),y(e))},!1),e.hasAttribute("data-timeout")){let t=e.getAttribute("data-timeout");var a=new I(function(){y(e)},t);e.addEventListener("mouseenter",o=>{a.pause()}),e.addEventListener("mouseleave",o=>{a.resume()})}}function I(e,a){var t,o,i=a;this.pause=function(){window.clearTimeout(t),i-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(t),t=window.setTimeout(e,i)},this.resume()}const y=function(e){e.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class B extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const a=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",t=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${a}/css/core.min.css`,o=`@import "${a}/css/components/notification.css";`,i=this.querySelectorAll("a,button");Array.from(i).forEach((n,l)=>{n.setAttribute("slot","btns"),n.classList.add("link")}),(i.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable");const s=document.createElement("template");s.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey v3.7.9-beta
|
|
2
|
+
* iamKey v3.7.9-beta-2
|
|
3
3
|
* Copyright 2022-2023 iamproperty
|
|
4
4
|
*/(function(R){typeof define=="function"&&define.amd?define(R):R()})(function(){"use strict";var R=r=>{r.classList.add("js-enabled"),(navigator.userAgent.indexOf("MSIE")!==-1||navigator.appVersion.indexOf("Trident/")>0)&&r.classList.add("ie");var t=document.querySelector("nav");if(t){let a=function(){e=t.offsetHeight,document.querySelector("body").style.setProperty("--nav-height","".concat(e,"px"))};var e=t.offsetHeight;document.querySelector("body").style.setProperty("--nav-height","".concat(e,"px")),new ResizeObserver(a).observe(t)}else document.querySelector("body").style.setProperty("--nav-height","0px");return null},at=r=>{var t=function(a){var s=document.querySelector('label[for="'.concat(a.replace("#",""),'"]')),i=document.querySelector(a+" summary"),n=document.querySelector("dialog".concat(a));s instanceof HTMLElement?s.click():i instanceof HTMLElement?i.click():n instanceof HTMLElement&&n.showModal()};return location.hash&&t(location.hash),window.addEventListener("hashchange",function(){t(location.hash)},!1),addEventListener("popstate",e=>{if(e&&e.state.type&&e.state.type=="pagination"){var a=document.querySelector("#".concat(e.state.form)),s=document.querySelector("#".concat(e.state.form," [data-pagination]"));s?s.value=e.state.page:a.innerHTML+='<input name="page" type="hidden" data-pagination="true" value="'.concat(e.state.page,'" />'),a.dispatchEvent(new Event("submit"))}}),null},rt=function(t){return typeof t!="string"?!1:!isNaN(t)&&!isNaN(parseFloat(t))},st=(r,t)=>String(r).padStart(t,"0"),it=r=>r.charAt(0).toUpperCase()+r.slice(1);class ot{constructor(t){document.body.classList.contains("youtubeLoaded")?t.addEventListener("click",function(e){for(var a=e.target;a&&a!=this;a=a.parentNode)if(a.matches("a")){e.preventDefault(),V(a);break}},!1):this.loadScripts(t,this.createEmbed)}loadScripts(t){return new Promise((e,a)=>{var s=new Image;s.onload=function(){var i=document.createElement("script");i.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n),document.body.classList.add("youtubeLoaded"),e(!0),i.onload=()=>{t.addEventListener("click",function(o){console.log("click"),o&&o.target instanceof HTMLElement&&o.target.closest("a")&&(o.preventDefault(),V(o.target.closest("a")))},!1)}},s.onerror=function(){a(!1)},s.src="https://youtube.com/favicon.ico"})}}var V=function(t){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var e=t.getAttribute("data-id"),a=t.getAttribute("id");if(typeof a>"u"||a==null){var s=String.fromCharCode(65+Math.floor(Math.random()*26));a=s+Date.now(),t.setAttribute("id",a)}function i(){window.player=new YT.Player(a,{height:"100%",width:"100%",videoId:e,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:n,onStateChange:l}})}i();function n(c){c.target.playVideo()}var o=!1;function l(c){if(c.data==YT.PlayerState.PLAYING&&!o){var d=document.getElementById(a);d.classList.add("player-ready"),o=!0}}},nt=r=>(r.addEventListener("click",t=>{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"),s=document.querySelector("dialog#".concat(a));ct(s),s.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!s.classList.contains("dialog--multi")&&s.addEventListener("cancel",L=>{L.preventDefault()});var i=s.querySelector(".youtube-embed a");i&&V(i),s.showModal(),s.focus(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:a})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var n=t.target.closest("dialog[open]");t.preventDefault(),n.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((L,y)=>{L.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:n.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){var o=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((L,y)=>{L.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:o.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){var l=t.target.closest("dialog[open]");if(!l.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||l.classList.contains("dialog--multi")){var c=l.getBoundingClientRect();(t.clientX<c.left||t.clientX>c.right||t.clientY<c.top||t.clientY>c.bottom)&&(t.target.closest('input[type="radio"]')||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")){var d=t.target.closest(".dialog__wrapper > button"),f=t.target.closest(".dialog__wrapper > button").parentNode,h="openPopover",u=f.querySelector(":scope > dialog");if(document.querySelector("dialog[open]")&&document.querySelector("dialog[open]")!=u&&document.querySelector("dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((L,y)=>{L.classList.remove("active")}),u.hasAttribute("open"))u.close(),h="closePopover",u.removeAttribute("style"),d.classList.remove("active");else{u.show(),d.classList.add("active");var m=d.getBoundingClientRect(),b=m.top,v=m.left;if(d.closest("iam-table")){var q=d.closest("iam-table").parentNode.getBoundingClientRect();b-=q.top,v-=q.left}u.classList.contains("dialog--fix")&&u.setAttribute("style","position:fixed;top: ".concat(b,"px; left: ").concat(v,"px; margin: 3rem 0 0 0;"))}var A=u.getBoundingClientRect(),p=A.bottom-window.scrollY,x=window.innerHeight-window.scrollY;if(p>x){var w=u.hasAttribute("style")?u.getAttribute("style")+" ":"";u.setAttribute("style",w+"transform: translate(0, calc(-100% - 4rem))")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:h,id:d.textContent})}t&&t.target instanceof HTMLElement&&!t.target.closest("dialog[open]")&&!t.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((L,y)=>{L.classList.remove("active")}))}),null),ct=r=>{if(r.classList.contains("dialog--multi")&&!r.querySelector(":scope > .steps")&<(r),!r.querySelector(":scope > .mh-lg")&&!r.classList.contains("dialog--multi")){r.innerHTML='<div class="mh-lg">'.concat(r.innerHTML,"</div>");var t=r.querySelector(".mh-lg"),e=r.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(e){var a=e.previousSibling;t.before(e),a&&e.before(a)}}r.querySelector(":scope > button:first-child")||(r.innerHTML='<button class="dialog__close">Close</button>'.concat(r.innerHTML))},lt=r=>{var t="",e=Array.from(r.querySelectorAll("fieldset[data-title]"));e.forEach((a,s)=>{t+='<button data-title="'.concat(a.getAttribute("data-title"),'" type="button" class="').concat(s==0?"active":"",'">').concat(a.getAttribute("data-title"),"</button>");var i=document.createElement("div");i.classList.add("btn--wrapper"),a.appendChild(i),s!=0&&(i.innerHTML+='<button data-title="'.concat(e[s-1].getAttribute("data-title"),'" class="btn btn-secondary mb-0" type="button">Previous</button>')),s!=e.length-1&&(i.innerHTML+='<button data-title="'.concat(e[s+1].getAttribute("data-title"),'" class="btn btn-primary mb-0" type="button">Next</button>')),s==e.length-1&&(i.innerHTML+='<button class="btn btn-primary mb-0">Submit</button>')}),r.innerHTML='<div class="steps bg-primary">'.concat(t,"</div>").concat(r.innerHTML),r.addEventListener("click",a=>{if(a&&a.target instanceof HTMLElement&&a.target.closest("button[data-title]")){var s=a.target.closest("button[data-title]"),i=r.querySelector('fieldset[data-title="'.concat(s.getAttribute("data-title"),'"]')),n=r.querySelector('.steps button[data-title="'.concat(s.getAttribute("data-title"),'"]'));Array.from(r.querySelectorAll("button")).forEach((o,l)=>{o.classList.remove("active")}),Array.from(r.querySelectorAll("fieldset")).forEach((o,l)=>{o.classList.remove("active")}),n.classList.add("active"),i.classList.add("active")}return null})};function dt(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",r=>{var t=r.target.closest("[open] summary");if(t)window.dataLayer.push({event:"closeDetails",detailsTitle:t.textContent||""});else{var e=r.target.closest("summary"),a=r.target.closest("a"),s=r.target.closest("button");e&&window.dataLayer.push({event:"openDetails",detailsTitle:e.textContent||""}),a&&window.dataLayer.push({event:"linkClicked",linkText:a.hasAttribute("title")?a.getAttribute("title")||"":a.textContent||"",class:a.hasAttribute("class")&&a.getAttribute("class")||"",href:a.getAttribute("href")||""}),s&&window.dataLayer.push({event:"buttonClicked",buttonText:s.textContent||"",class:s.hasAttribute("class")&&s.getAttribute("class")||""})}})}var ut=r=>{document.addEventListener("load",function(){console.log(Array.from(document.querySelectorAll("input[maxlength]"))),Array.from(document.querySelectorAll("input")).forEach((t,e)=>{t.parentElement,ht(t)})}),r.addEventListener("input",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("input,textarea,select")){var e=t.target.closest("input,textarea,select");e.parentElement,e.hasAttribute("type")&&e.getAttribute("type")=="color"&&(e.nextElementSibling.value=e.value),e.hasAttribute("maxlength")&&e.nextElementSibling&&e.nextElementSibling.setAttribute("data-count",e.value.length)}}),r.addEventListener("change",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("select")){var e=t.target.closest("select");if(console.log(e),e.hasAttribute("data-change-type")&&e.hasAttribute("data-input")){var a=document.getElementById(e.getAttribute("data-input")),s=e.value;X(a,s)}}if(t&&t.target instanceof HTMLElement&&t.target.closest('dialog [type="radio"]')){var i=t.target.closest("dialog");t.target.closest('dialog [type="radio"]'),Array.from(i.querySelectorAll('[type="radio"][autofocus]')).forEach((n,o)=>{n.removeAttribute("autofocus")}),Array.from(i.querySelectorAll('[type="radio"]:checked')).forEach((n,o)=>{n.setAttribute("autofocus",!0)})}}),r.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")),s=e.getAttribute("data-change-type");if(e.setAttribute("data-change-type",a.getAttribute("type")),X(a,s),e.hasAttribute("data-alt-class")){var i=e.getAttribute("data-alt-class");e.setAttribute("data-alt-class",e.getAttribute("class")),e.setAttribute("class",i)}}})},ht=r=>{var t=r.parentElement,e=r.getAttribute("maxlength");t.style.setProperty("--maxlength",e);var a=r.nextElementSibling;(!a||a&&a.classList.contains("invalid-feedback"))&&(a=document.createElement("span"),t.insertBefore(a,r.nextSibling)),a.setAttribute("data-count",r.value.length)},X=(r,t)=>{r.setAttribute("type",t)},ft=r=>{if(Array.from(r.querySelectorAll("details")).forEach((e,a)=>{e.addEventListener("mouseenter",function(s){window.matchMedia("(min-width: 62em)").matches&&e.setAttribute("open","true")},!1),e.addEventListener("mouseleave",function(s){window.matchMedia("(min-width: 62em)").matches&&e.removeAttribute("open")},!1)}),"IntersectionObserver"in window){var t=new IntersectionObserver(e=>{var[a]=e;return a.target.classList.toggle("is-stuck",a.intersectionRatio<1)},{threshold:[1]});t.observe(r)}};function mt(r){var t,e=r.querySelector(".testimonial__images"),a=e.querySelectorAll("img").length;if(a==1)return!1;r.classList.add("testimonial--multi");var s=function(n){var o=r.querySelector(".btn-next"),l=r.querySelector(".btn-prev");o.setAttribute("data-go",n+1),l.setAttribute("data-go",n-1),o.removeAttribute("disabled"),l.removeAttribute("disabled"),n==1?l.setAttribute("disabled",!0):n==a&&o.setAttribute("disabled",!0)};e.addEventListener("scroll",function(i){clearTimeout(t),t=setTimeout(function(){var n=e.scrollWidth,o=e.scrollHeight,l=e.scrollLeft,c=e.scrollTop,d=Math.round(l/n*a)+1;l==0&&c!=0&&(d=Math.round(c/o*a)+1),r.setAttribute("data-show",d),s(d)},300)},!1),r.addEventListener("click",function(i){for(var n=i.target;n&&n!=this;n=n.parentNode)if(n.matches("[data-go]")){var o=parseInt(n.getAttribute("data-go")),l=0,c=0,d=e.scrollWidth,f=e.scrollHeight;d>f?c=Math.floor(d*((o-1)/a)):l=Math.floor(f*((o-1)/a)),e.scroll({top:l,left:c,behavior:"smooth"});break}},!1)}function bt(r){var t,e=r.querySelector(".carousel__inner"),a=r.querySelectorAll(".carousel__item").length;r.getAttribute("data-cols");var s=r.getAttribute("data-sm-cols"),i=r.getAttribute("data-md-cols");r.querySelector(".carousel__controls a").classList.add("active"),e.addEventListener("scroll",function(n){clearTimeout(t),t=setTimeout(function(){var o=e.clientWidth,l=e.scrollWidth,c=e.scrollLeft,d=Math.round(c/l*a)+1,f=r.querySelector(".carousel__item:last-child").offsetLeft;Array.from(r.querySelectorAll(".carousel__controls a")).forEach((h,u)=>{h.classList.remove("active")}),r.querySelector(".control-"+d).classList.add("active"),d==1?r.querySelector(".btn-prev").setAttribute("disabled","disabled"):r.querySelector(".btn-prev").removeAttribute("disabled"),e.scrollLeft+o>f?r.querySelector(".btn-next").setAttribute("disabled","disabled"):r.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),r.addEventListener("click",function(n){for(var o=n.target;o&&o!=this;o=o.parentNode)if(o.matches(".carousel__controls a")){n.preventDefault(),Array.from(r.querySelectorAll(".carousel__controls a")).forEach((c,d)=>{c.classList.remove("active")}),o.classList.add("active");var l=document.querySelector(o.getAttribute("href"));e.scroll({top:0,left:l.offsetLeft,behavior:"smooth"});break}},!1),r.addEventListener("click",function(n){for(var o=n.target;o&&o!=this;o=o.parentNode)if(o.matches(".btn-next, .btn-prev")){n.preventDefault();var l=o.classList.contains("btn-prev")?e.scrollLeft-e.clientWidth:e.scrollLeft+e.clientWidth;e.scroll({top:0,left:l,behavior:"smooth"});break}},!1),a==1&&r.classList.add("hide-btns"),s>=a&&r.classList.add("hide-sm-btns"),i>=a&&r.classList.add("hide-md-btns")}function vt(r){r.addEventListener("change",function(t){var e=parseInt(r.querySelector("[data-min] select,[data-min] input").value),a=parseInt(r.querySelector("[data-max] select,[data-max] input").value);Array.from(r.querySelectorAll("[data-min] input")).forEach((s,i)=>{s.setAttribute("max",a)}),Array.from(r.querySelectorAll("[data-max] input")).forEach((s,i)=>{s.setAttribute("min",e)}),Array.from(r.querySelectorAll("[data-min] select option")).forEach((s,i)=>{parseInt(s.getAttribute("value"))>a?s.classList.add("d-none"):s.classList.remove("d-none")}),Array.from(r.querySelectorAll("[data-max] select option")).forEach((s,i)=>{parseInt(s.getAttribute("value"))<e?s.classList.add("d-none"):s.classList.remove("d-none")})},!1)}function pt(r){r.addEventListener("change",function(t){if(r.matches("[data-value-if]")){var e=r.getAttribute("data-redirect"),a=r.getAttribute("data-value-if");r.value==a&&(document.location.href=e)}else typeof r.value<"u"&&(document.location.href=r.value)},!1)}function gt(r){var t=r.querySelector(".row"),e=t.cloneNode(!0),a=r.querySelector("[data-add]");r.addEventListener("click",function(s){for(var i=s.target;i&&i!=this;i=i.parentNode){if(i.matches("[data-add]")){var n=e.cloneNode(!0);r.insertBefore(n,i),a.matches("[data-maxfiles]")&&Array.from(r.querySelectorAll(":scope > .row")).length>=a.dataset.maxfiles&&a.setAttribute("disabled","disabled");break}if(i.matches("[data-delete]")){var o=i.closest(".row");o.remove(),a.matches("[data-maxfiles]")&&Array.from(r.querySelectorAll(":scope > .row")).length<a.dataset.maxfiles&&a.removeAttribute("disabled");break}}},!1)}function yt(r){Array.from(r.querySelectorAll("[data-input-range]")).forEach((t,e)=>{vt(t)}),Array.from(r.querySelectorAll("[data-redirect]")).forEach((t,e)=>{pt(t)}),Array.from(r.querySelectorAll(".multiple-file-uploads")).forEach((t,e)=>{gt(t)}),r.addEventListener("change",function(t){for(var e=t.target;e&&e!=this;e=e.parentNode)if(e.matches('[type="file"][data-filesize]')&&e.files&&e.files[0]){var a=e.dataset.filesize;e.files[0].size>a&&(e.value="",alert("File too large"));break}},!1),r.addEventListener("change",function(t){Array.from(r.querySelectorAll("select[data-activeif][data-equals],input[data-activeif][data-equals]")).forEach((e,a)=>{var s=e.closest("[data-group]")?e.closest("[data-group]"):r,i=e.dataset.activeif,n=e.dataset.equals,o=s.querySelector('select[data-id="'.concat(i,'"],input[data-id="').concat(i,'"]'));o.value==n?e.removeAttribute("disabled"):(e.setAttribute("disabled","disabled"),e.value="")}),Array.from(r.querySelectorAll(".form-control__wrapper[data-displayif][data-equals]")).forEach((e,a)=>{var s=e.closest("[data-group]")?e.closest("[data-group]"):r,i=e.dataset.activeif,n=e.dataset.equals,o=s.querySelector('select[data-id="'.concat(i,'"],input[data-id="').concat(i,'"]'));o.value==n?e.classList.remove("d-none"):e.classList.add("d-none")})},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class At extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});var t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):"".concat(t,"/css/core.min.css"),a='@import "'.concat(t,'/css/components/header.css";'),s=document.createElement("template");s.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
</div>
|
|
90
90
|
`).concat(this.hasAttribute("data-cta")?'<div class="card__footer"><span class="link">'.concat(this.getAttribute("data-cta"),"</span></div>"):"",`
|
|
91
91
|
</div>
|
|
92
|
-
`),this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");var t=this.parentNode.closest("a, button, label"),e=this.shadowRoot.querySelector(".card");if(t.setAttribute("tabindex","-1"),t.matches("label[for]")){var a=document.getElementById(t.getAttribute("for")).checked;a?e.classList.add("checked"):e.classList.remove("checked")}e.addEventListener("click",s=>{if(t.matches("label[for]")){s.stopPropagation(),s.preventDefault();var i=document.getElementById(t.getAttribute("for")),n=i.getAttribute("name"),o=i.getAttribute("id"),l=Array.from(document.querySelectorAll('[name="'.concat(n,'"]:not([id="').concat(o,'"])')));l.forEach((d,f)=>{var h=document.querySelector('[for="'.concat(d.getAttribute("id"),'"] iam-card'));h.dispatchEvent(new Event("inactive"))}),t.click();var c=i.checked;c?e.classList.add("checked"):e.classList.remove("checked")}}),this.addEventListener("inactive",s=>{e.classList.remove("checked")}),e.addEventListener("keydown",s=>{switch(s.keyCode){case 32:case 13:if(t.matches("label[for]")){s.stopPropagation(),s.preventDefault();var i=document.getElementById(t.getAttribute("for")),n=i.getAttribute("name"),o=i.getAttribute("id"),l=Array.from(document.querySelectorAll('[name="'.concat(n,'"]:not([id="').concat(o,'"])')));l.forEach((d,f)=>{var h=document.querySelector('[for="'.concat(d.getAttribute("id"),'"] iam-card'));h.dispatchEvent(new Event("inactive"))}),t.click();var c=i.checked;c?e.classList.add("checked"):e.classList.remove("checked")}else t.click();break}})}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(t,e,a){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total").innerHTML=a;break}case"class":{var s=this.classList.toString();this.querySelector('[class*="fa-"]')&&(s+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class","card ".concat(s));break}}}}function Pt(r,t){function e(a,s){var i=!1,n=s.getAttribute("name");n.includes("[]")&&(n=n.replace("[]","[".concat(s.value,"]")));var o=a.querySelector('[data-name="'.concat(n,'"]'));o&&s.getAttribute("type")=="checkbox"&&(i=!0);var l=s.getAttribute("data-filter-text");if(o||(o=document.createElement("button"),a.appendChild(o)),o.setAttribute("type","button"),o.classList.add("filter"),o.setAttribute("data-name",n),o.innerHTML=l.replace("$value",s.value),(!s.value||i)&&o.remove(),s.parentNode.closest("[data-filter-text]")){var c=s.parentNode.closest("[data-filter-text]"),d=!0;if(n="",c.querySelectorAll("input").forEach((u,m)=>{var b=u.getAttribute("name");if(n+="".concat(m!=0?",":"").concat(b),a.querySelector('[data-name="'.concat(b,'"]'))&&a.querySelector('[data-name="'.concat(b,'"]')).remove(),u.value){var v=document.createElement("button");v.setAttribute("type","button"),v.classList.add("filter"),v.setAttribute("data-name",b),v.innerHTML=l.replace("$value",u.value),a.appendChild(v)}else d=!1}),a.querySelector('[data-name="'.concat(n,'"]'))&&a.querySelector('[data-name="'.concat(n,'"]')).remove(),d){var f=c.getAttribute("data-filter-text");c.querySelectorAll("input").forEach((u,m)=>{var b=u.getAttribute("name");a.querySelector('[data-name="'.concat(b,'"]'))&&a.querySelector('[data-name="'.concat(b,'"]')).remove(),f=f.replace("$".concat(m+1),u.value)});var h=document.createElement("button");h.setAttribute("type","button"),h.classList.add("filter"),h.setAttribute("data-name",n),h.innerHTML=f,a.appendChild(h)}}}Array.from(r.querySelectorAll('input[type="checkbox"]:checked')).forEach((a,s)=>{e(t,a)}),r.addEventListener("change",function(a){if(a&&a.target instanceof HTMLElement&&a.target.closest("input[data-filter-text]")){var s=a.target.closest("input[data-filter-text]");e(t,s)}},!1),t.addEventListener("click",function(a){if(a&&a.target instanceof HTMLElement&&a.target.closest(".filter")){for(var s=a.target.closest(".filter"),i=s.getAttribute("data-name").split(","),n=0;n<i.length;n++){var o=i[n],l='[name="'.concat(o,'"]');if(o.match(/\[(.*)\]/)){o.replace(/\[(.*)\]/,"[]");var c=o.replace(/.*\[(.*)\]/,"$1");l='[value="'.concat(c,'"]')}for(var d=r.querySelectorAll(l),f=0;f<d.length;f++){var h=d[f];if(h.getAttribute("type")!="radio"&&h.getAttribute("type")!="checkbox")h.value="";else{h.checked=!1;var a=new Event("force");h.closest("form").dispatchEvent(a)}}}s.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class jt 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";'),s=this.classList.toString(),i=document.createElement("template");i.innerHTML=`
|
|
92
|
+
`),this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");var t=this.parentNode.closest("a, button, label"),e=this.shadowRoot.querySelector(".card");if(t.setAttribute("tabindex","-1"),t.matches("label[for]")){var a=document.getElementById(t.getAttribute("for")).checked;a?e.classList.add("checked"):e.classList.remove("checked")}e.addEventListener("click",s=>{if(t.matches("label[for]")){s.stopPropagation(),s.preventDefault();var i=document.getElementById(t.getAttribute("for")),n=i.getAttribute("name"),o=i.getAttribute("id"),l=Array.from(document.querySelectorAll('[name="'.concat(n,'"][type="radio"]:not([id="').concat(o,'"])')));l.forEach((d,f)=>{var h=document.querySelector('[for="'.concat(d.getAttribute("id"),'"] iam-card'));h.dispatchEvent(new Event("inactive"))}),t.click();var c=i.checked;c?e.classList.add("checked"):e.classList.remove("checked")}}),this.addEventListener("inactive",s=>{e.classList.remove("checked")}),e.addEventListener("keydown",s=>{switch(s.keyCode){case 32:case 13:if(t.matches("label[for]")){s.stopPropagation(),s.preventDefault();var i=document.getElementById(t.getAttribute("for")),n=i.getAttribute("name"),o=i.getAttribute("id"),l=Array.from(document.querySelectorAll('[name="'.concat(n,'"]:not([id="').concat(o,'"])')));l.forEach((d,f)=>{var h=document.querySelector('[for="'.concat(d.getAttribute("id"),'"] iam-card'));h.dispatchEvent(new Event("inactive"))}),t.click();var c=i.checked;c?e.classList.add("checked"):e.classList.remove("checked")}else t.click();break}})}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(t,e,a){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total").innerHTML=a;break}case"class":{var s=this.classList.toString();this.querySelector('[class*="fa-"]')&&(s+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class","card ".concat(s));break}}}}function Pt(r,t){function e(a,s){var i=!1,n=s.getAttribute("name");n.includes("[]")&&(n=n.replace("[]","[".concat(s.value,"]")));var o=a.querySelector('[data-name="'.concat(n,'"]'));o&&s.getAttribute("type")=="checkbox"&&(i=!0);var l=s.getAttribute("data-filter-text");if(o||(o=document.createElement("button"),a.appendChild(o)),o.setAttribute("type","button"),o.classList.add("filter"),o.setAttribute("data-name",n),o.innerHTML=l.replace("$value",s.value),(!s.value||i)&&o.remove(),s.parentNode.closest("[data-filter-text]")){var c=s.parentNode.closest("[data-filter-text]"),d=!0;if(n="",c.querySelectorAll("input").forEach((u,m)=>{var b=u.getAttribute("name");if(n+="".concat(m!=0?",":"").concat(b),a.querySelector('[data-name="'.concat(b,'"]'))&&a.querySelector('[data-name="'.concat(b,'"]')).remove(),u.value){var v=document.createElement("button");v.setAttribute("type","button"),v.classList.add("filter"),v.setAttribute("data-name",b),v.innerHTML=l.replace("$value",u.value),a.appendChild(v)}else d=!1}),a.querySelector('[data-name="'.concat(n,'"]'))&&a.querySelector('[data-name="'.concat(n,'"]')).remove(),d){var f=c.getAttribute("data-filter-text");c.querySelectorAll("input").forEach((u,m)=>{var b=u.getAttribute("name");a.querySelector('[data-name="'.concat(b,'"]'))&&a.querySelector('[data-name="'.concat(b,'"]')).remove(),f=f.replace("$".concat(m+1),u.value)});var h=document.createElement("button");h.setAttribute("type","button"),h.classList.add("filter"),h.setAttribute("data-name",n),h.innerHTML=f,a.appendChild(h)}}}Array.from(r.querySelectorAll('input[type="checkbox"]:checked')).forEach((a,s)=>{e(t,a)}),r.addEventListener("change",function(a){if(a&&a.target instanceof HTMLElement&&a.target.closest("input[data-filter-text]")){var s=a.target.closest("input[data-filter-text]");e(t,s)}},!1),t.addEventListener("click",function(a){if(a&&a.target instanceof HTMLElement&&a.target.closest(".filter")){for(var s=a.target.closest(".filter"),i=s.getAttribute("data-name").split(","),n=0;n<i.length;n++){var o=i[n],l='[name="'.concat(o,'"]');if(o.match(/\[(.*)\]/)){o.replace(/\[(.*)\]/,"[]");var c=o.replace(/.*\[(.*)\]/,"$1");l='[value="'.concat(c,'"]')}for(var d=r.querySelectorAll(l),f=0;f<d.length;f++){var h=d[f];if(h.getAttribute("type")!="radio"&&h.getAttribute("type")!="checkbox")h.value="";else{h.checked=!1;var a=new Event("force");h.closest("form").dispatchEvent(a)}}}s.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class jt 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";'),s=this.classList.toString(),i=document.createElement("template");i.innerHTML=`
|
|
93
93
|
<style>
|
|
94
94
|
@import "`.concat(e,`";
|
|
95
95
|
`).concat(a,`
|