@iamproperty/components 7.6.4--beta4 → 7.6.4--beta5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  2. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  3. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  4. package/assets/js/components/advanced-select/advanced-select.component.min.js +1 -1
  5. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  6. package/assets/js/components/barchart/barchart.component.min.js +1 -1
  7. package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
  8. package/assets/js/components/calendar/calendar.component.min.js +1 -1
  9. package/assets/js/components/card/card.component.min.js +1 -1
  10. package/assets/js/components/carousel/carousel.component.min.js +1 -1
  11. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  12. package/assets/js/components/content/content.component.min.js +1 -1
  13. package/assets/js/components/darkmode/darkmode.component.min.js +1 -1
  14. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +1 -1
  15. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  16. package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
  17. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  18. package/assets/js/components/form/form.component.min.js +1 -1
  19. package/assets/js/components/header/header.component.min.js +1 -1
  20. package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
  21. package/assets/js/components/input/input.component.min.js +1 -1
  22. package/assets/js/components/input-range/input-range.component.min.js +1 -1
  23. package/assets/js/components/marketing/marketing.component.min.js +1 -1
  24. package/assets/js/components/menu/menu.component.min.js +1 -1
  25. package/assets/js/components/milestone/milestone.component.min.js +1 -1
  26. package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
  27. package/assets/js/components/modal/modal.component.min.js +1 -1
  28. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  29. package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +1 -1
  30. package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
  31. package/assets/js/components/nav/nav.component.min.js +1 -1
  32. package/assets/js/components/notification/notification.component.min.js +1 -1
  33. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  34. package/assets/js/components/password/password.component.min.js +1 -1
  35. package/assets/js/components/popover/popover.component.min.js +1 -1
  36. package/assets/js/components/rank/rank.component.min.js +1 -1
  37. package/assets/js/components/rankings/rankings.component.min.js +1 -1
  38. package/assets/js/components/rating/rating.component.min.js +1 -1
  39. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  40. package/assets/js/components/search/search.component.min.js +1 -1
  41. package/assets/js/components/slider/slider.component.min.js +1 -1
  42. package/assets/js/components/split-button/split-button.component.min.js +1 -1
  43. package/assets/js/components/std-address-lookup/std-address-lookup.component.js +21 -19
  44. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +6 -6
  45. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
  46. package/assets/js/components/table/table.component.min.js +1 -1
  47. package/assets/js/components/table-ajax/table-ajax.component.min.js +1 -1
  48. package/assets/js/components/table-basic/table-basic.component.min.js +1 -1
  49. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +1 -1
  50. package/assets/js/components/table-submit/table-submit.component.min.js +1 -1
  51. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  52. package/assets/js/components/tag/tag.component.min.js +1 -1
  53. package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
  54. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  55. package/assets/js/components/video-modal/video-modal.component.min.js +1 -1
  56. package/assets/js/components/word-count/word-count.component.min.js +1 -1
  57. package/assets/js/scripts.bundle.js +1 -1
  58. package/assets/js/scripts.bundle.min.js +1 -1
  59. package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +21 -20
  60. package/dist/components.es.js +28 -28
  61. package/dist/components.umd.js +80 -80
  62. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const c=i=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:i})},r=(i,o,n)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:o}),n.forEach(d=>{i.addEventListener(d,function(e){const t={event:d,element:o,target:e.target};Object.keys(e.detail).forEach(a=>{const s=e.detail[a];t[a]=s}),window.dataLayer.push(t)})}),!0);c("iam-accordion");class l extends HTMLElement{constructor(){var o;super(),this.attachShadow({mode:"open"});const n=document.createElement("template");n.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const F=(h=1)=>Math.floor(Math.random()*Date.now()*(h+1));class D extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  *//*! js-cookie v3.0.5 | MIT */function j(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var h in s)u[h]=s[h]}return u}var at={read:function(u){return u[0]==='"'&&(u=u.slice(1,-1)),u.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(u){return encodeURIComponent(u).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function X(u,a){function s(e,p,l){if(!(typeof document>"u")){l=j({},a,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var v="";for(var t in l)l[t]&&(v+="; "+t,l[t]!==!0&&(v+="="+l[t].split(";")[0]));return document.cookie=e+"="+u.write(p,e)+v}}function h(e){if(!(typeof document>"u"||arguments.length&&!e)){for(var p=document.cookie?document.cookie.split("; "):[],l={},v=0;v<p.length;v++){var t=p[v].split("="),o=t.slice(1).join("=");try{var c=decodeURIComponent(t[0]);if(l[c]=u.read(o,c),e===c)break}catch{}}return e?l[e]:l}}return Object.create({set:s,get:h,remove:function(e,p){s(e,"",j({},p,{expires:-1}))},withAttributes:function(e){return X(this.converter,j({},this.attributes,e))},withConverter:function(e){return X(j({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(u)}})}var it=X(at,{path:"/"});function ot(u,a,s,h=!1){let e=-1;s.closest(".datalist__wrapper")&&s.closest(".datalist__wrapper"),a.setAttribute("data-list",a.getAttribute("list")),a.setAttribute("list",""),a.hasAttribute("placeholder")&&a.setAttribute("data-placeholder",a.getAttribute("placeholder")),a.hasAttribute("placeholder")&&a.setAttribute("data-original-placeholder",a.getAttribute("placeholder")),a.addEventListener("focus",function(){a.value!=""&&(a.setAttribute("placeholder",a.value),a.setAttribute("data-value",a.value)),a.value=""}),a.addEventListener("keyup",function(){a.value!=""&&a.setAttribute("data-value",a.value)}),a.addEventListener("blur",function(){a.hasAttribute("data-value")&&(a.value=a.getAttribute("data-value")),a.hasAttribute("data-placeholder")&&a.setAttribute("placeholder",a.getAttribute("data-placeholder"))});for(const o of s.options)o.innerHTML==""&&(o.innerHTML=o.value);s.addEventListener("click",function(o){if(o&&o.target instanceof HTMLElement&&o.target.closest("option")){const c=o.target.closest("option");a.value=c.value,typeof window.triggerDynamicEvent=="function"&&window.triggerDynamicEvent(a);for(const A of s.options)A.classList.remove("active");c.classList.add("active")}}),a.addEventListener("input",function(){if(a.removeAttribute("data-value"),e=-1,u.tagName!="IAM-ADDRESS-LOOKUP"){const o=a.value.toUpperCase();for(const c of s.options)c.value.toUpperCase().indexOf(o)>-1?(c.style.display="block",c.classList.remove("hide")):(c.style.display="none",c.classList.add("hide"))}}),u.addEventListener("keydown",function(o){o.keyCode==40?(e++,p(s.options)):o.keyCode==38?(e--,p(s.options)):o.keyCode==13&&(o.preventDefault(),e>-1&&s.options&&s.options[e].click())});function p(o){if(!o)return!1;l(o),e>=o.length&&(e=0),e<0&&(e=o.length-1),o[e].classList.add("active")}function l(o){if(!o)return!1;for(let c=0;c<o.length;c++)o[c].classList.remove("active")}a.closest("label").insertAdjacentHTML("beforeend",'<button class="empty btn btn-action" type="button"><i class="fa-light fa-times me-0"></i></button>');const v=()=>{a.removeAttribute("placeholder"),a.hasAttribute("data-original-placeholder")&&a.setAttribute("placeholder",a.getAttribute("data-original-placeholder")),a.removeAttribute("data-value"),a.value="";for(const c of s.options)c.classList.remove("active"),c.removeAttribute("style");const o=new CustomEvent("close-button-pressed");u.dispatchEvent(o)};(u.querySelector(".empty")?u.querySelector(".empty"):u.shadowRoot.querySelector(".empty")).addEventListener("click",function(o){v()}),u.addEventListener("empty",function(o){v()})}const rt=u=>/^([A-Z][A-HJ-Y]?[0-9][A-Z0-9]? ?[0-9][A-Z]{2}|GIR ?0A{2})$/gmi.test(u.trim());var V=function(u,a,s,h){function e(p){return p instanceof s?p:new s(function(l){l(p)})}return new(s||(s=Promise))(function(p,l){function v(c){try{o(h.next(c))}catch(A){l(A)}}function t(c){try{o(h.throw(c))}catch(A){l(A)}}function o(c){c.done?p(c.value):e(c.value).then(v,t)}o((h=h.apply(u,a||[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Address Lookup"});class nt extends HTMLElement{constructor(){var a;super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */function l(r,t,o,s=!1){let a=-1;o.closest(".datalist__wrapper")&&o.closest(".datalist__wrapper"),t.setAttribute("data-list",t.getAttribute("list")),t.setAttribute("list",""),t.hasAttribute("placeholder")&&t.setAttribute("data-placeholder",t.getAttribute("placeholder")),t.hasAttribute("placeholder")&&t.setAttribute("data-original-placeholder",t.getAttribute("placeholder")),t.addEventListener("focus",function(){t.value!=""&&(t.setAttribute("placeholder",t.value),t.setAttribute("data-value",t.value)),t.value=""}),t.addEventListener("keyup",function(){t.value!=""&&t.setAttribute("data-value",t.value)}),t.addEventListener("blur",function(){t.hasAttribute("data-value")&&(t.value=t.getAttribute("data-value")),t.hasAttribute("data-placeholder")&&t.setAttribute("placeholder",t.getAttribute("data-placeholder"))});for(const e of o.options)e.innerHTML==""&&(e.innerHTML=e.value);o.addEventListener("click",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest("option")){const n=e.target.closest("option");t.value=n.value,typeof window.triggerDynamicEvent=="function"&&window.triggerDynamicEvent(t);for(const f of o.options)f.classList.remove("active");n.classList.add("active")}}),t.addEventListener("input",function(){if(t.removeAttribute("data-value"),a=-1,r.tagName!="IAM-ADDRESS-LOOKUP"){const e=t.value.toUpperCase();for(const n of o.options)n.value.toUpperCase().indexOf(e)>-1?(n.style.display="block",n.classList.remove("hide")):(n.style.display="none",n.classList.add("hide"))}}),r.addEventListener("keydown",function(e){e.keyCode==40?(a++,c(o.options)):e.keyCode==38?(a--,c(o.options)):e.keyCode==13&&(e.preventDefault(),a>-1&&o.options&&o.options[a].click())});function c(e){if(!e)return!1;u(e),a>=e.length&&(a=0),a<0&&(a=e.length-1),e[a].classList.add("active")}function u(e){if(!e)return!1;for(let n=0;n<e.length;n++)e[n].classList.remove("active")}t.closest("label").insertAdjacentHTML("beforeend",'<button class="empty btn btn-action" type="button"><i class="fa-light fa-times me-0"></i></button>');const i=()=>{t.removeAttribute("placeholder"),t.hasAttribute("data-original-placeholder")&&t.setAttribute("placeholder",t.getAttribute("data-original-placeholder")),t.removeAttribute("data-value"),t.value="";for(const n of o.options)n.classList.remove("active"),n.removeAttribute("style");const e=new CustomEvent("close-button-pressed");r.dispatchEvent(e)};(r.querySelector(".empty")?r.querySelector(".empty"):r.shadowRoot.querySelector(".empty")).addEventListener("click",function(e){i()}),r.addEventListener("empty",function(e){i()})}const b=r=>r.replace(/ /g,"_"),m=function(r){return r=r.toLowerCase(),r=b(r),r=r.replace(/\W/g,""),r};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Advanced select"});class v extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=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"):`${t}/css/core.min.css`,s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */function E(t,m){const g=t.closest("dialog"),b=(e,r,o=!1)=>{let s=!1,a=r.getAttribute("name");if(!a)return!1;a.includes("[]")&&(a=a.replace("[]",`[${r.value}]`));let l=e.querySelector(`[data-name="${a}"]`);l&&r.getAttribute("type")=="checkbox"&&(s=!r.checked);const c=r.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),e.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.classList.add("tag"),o||l.classList.add("tag--not-set"),l.setAttribute("data-name",a),l.innerHTML=c.replace("$value",r.value),(!r.value||s)&&l.remove(),r.parentNode.closest("[data-filter-text]")){const i=r.parentNode.closest("[data-filter-text]");let f=!0;if(a="",i.querySelectorAll("input").forEach((u,d)=>{const p=u.getAttribute("name");if(a+=`${d!=0?",":""}${p}`,e.querySelector(`[data-name="${p}"]`)&&e.querySelector(`[data-name="${p}"]`).remove(),u.value){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("filter"),n.classList.add("tag"),o||l.classList.add("tag--not-set"),n.setAttribute("data-name",p),n.innerHTML=c.replace("$value",u.value),e.appendChild(n)}else f=!1}),e.querySelector(`[data-name="${a}"]`)&&e.querySelector(`[data-name="${a}"]`).remove(),f){let u=i.getAttribute("data-filter-text");i.querySelectorAll("input").forEach((p,n)=>{const y=p.getAttribute("name");e.querySelector(`[data-name="${y}"]`)&&e.querySelector(`[data-name="${y}"]`).remove(),u=u.replace(`$${n+1}`,p.value)});const d=document.createElement("button");d.setAttribute("type","button"),d.classList.add("filter"),d.classList.add("tag"),o||l.classList.add("tag--not-set"),d.setAttribute("data-name",a),d.innerHTML=u,e.appendChild(d)}}},v=(e=!1)=>{m.innerHTML="",Array.from(t.querySelectorAll('input:is([type="checkbox"],[type="radio"]):checked, input:not([type="checkbox"], [type="radio"])')).forEach(r=>{b(m,r,e)})};v(!0),Array.from(t.querySelectorAll("input[data-filter-text]")).forEach(e=>{e.addEventListener("change",function(r){var o;const s=!t.closest("dialog");if(!t.hasAttribute("data-keep-same")&&!t.querySelector("dialog")&&b(m,e,s),s){const a=new CustomEvent("update");(o=t.parentElement.closest("iam-applied-filters"))===null||o===void 0||o.dispatchEvent(a)}})});const h=e=>{if(!e?.hasAttribute("data-name"))return!1;const r=e.getAttribute("data-name").split(",");for(let o=0;o<r.length;o++){const s=r[o];let a=`[name="${s}"]`;s.match(/\[(.*)\]/)&&(a=`[value="${s.replace(/.*\[(.*)\]/,"$1")}"]`);const l=t.querySelectorAll(a);for(let c=0;c<l.length;c++){const i=l[c];i.getAttribute("type")!="radio"&&i.getAttribute("type")!="checkbox"?i.value="":i.checked=!1;const f=new CustomEvent("change");i?.dispatchEvent(f)}}e.remove(),v()};if(m.addEventListener("click",function(e){if(e&&e.target instanceof HTMLElement&&e.target.closest(".filter")){const r=e.target.closest(".filter"),o=r.getAttribute("data-name");h(r);const s=new CustomEvent("filter-clicked",{detail:o});if(t.dispatchEvent(s),t.querySelector("dialog iam-applied-filters")){const a=new CustomEvent("filter",{detail:o});t.querySelector("dialog iam-applied-filters").dispatchEvent(a)}}},!1),t.addEventListener("filter",e=>{const r=t.shadowRoot.querySelector(`[data-name="${e.detail}"]`);h(r)}),t.addEventListener("set-filters",e=>{v(!0)}),g){const e=t.querySelector(".btn-primary")?t.querySelector(".btn-primary"):t.shadowRoot.querySelector(".btn-primary");e?.addEventListener("click",r=>{const o=new CustomEvent("update"),s=new CustomEvent("submit");if(t.dispatchEvent(s),t.parentElement.closest("iam-applied-filters")&&t.parentElement.closest("iam-applied-filters").dispatchEvent(o),t.parentElement&&t.parentElement.closest("iam-applied-filters")&&!t.parentElement.closest("iam-applied-filters").closest("dialog")){const a=new CustomEvent("set-filters");t.parentElement.closest("iam-applied-filters").dispatchEvent(a)}if(v(!0),!t.querySelector(".btn-primary").hasAttribute("command")){g.close();const a=new Event("close");g.dispatchEvent(a)}})}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class w extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const m=this.classList.toString(),g=document.createElement("template");g.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const M=t=>t.charAt(0).toUpperCase()+t.slice(1),q=t=>t.replace(/_/g," "),N=(t,r)=>{for(let o=1;o<=10;o++){if(t.hasAttribute(`data-colour-${o}`)){const a=t.getAttribute(`data-colour-${o}`);t.style.setProperty(`--chart-colour-${o}`,`var(--chart-colour-${a})`),t.style.setProperty(`--chart-colour-${o}-hover`,`var(--chart-colour-${a}-hover)`)}Array.from(r.querySelectorAll(`[data-colour-${o}]`)).forEach(a=>{const e=a.getAttribute(`data-colour-${o}`);a.style.setProperty(`--chart-colour-${o}`,`var(--chart-colour-${e})`),a.style.setProperty(`--chart-colour-${o}-hover`,`var(--chart-colour-${e}-hover)`)})}return!0},k=(t,r,o)=>{if(t.tagName=="IAM-DOUGHNUTCHART")return R(t,r,o),!0;const a=r.querySelector(".chart__key");a.innerHTML="";const e=r.querySelector(".chart__guidelines");e.innerHTML="";const n=r.querySelector(".chart__yaxis");n.innerHTML="",Array.from(r.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(c=>{c.remove()});const{xaxis:i}=f(t);return A(t,o),T(r,o,a),X(t,e),E(t,n),i&&Y(r),!0},R=(t,r,o)=>{const a=r.querySelector(".chart__key");return a.innerHTML="",Array.from(r.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(e=>{e.remove()}),A(t,o),T(r,o,a),H(r),!0},V=function(t,r){const o=r.querySelector(".chart");o.addEventListener("mousemove",i=>{if(i&&i.target instanceof HTMLElement&&i.target.closest("td:not(:first-child")){const h=i.target.closest("td:not(:first-child").getBoundingClientRect(),s=i.clientX-h.left,l=i.clientY-h.top;o.setAttribute("style",`--cursor-x: ${s}px; --cursor-y: ${l}px;`)}});const a=r.querySelectorAll("label");Array.from(a).forEach(i=>{r.querySelector(`input#${i.getAttribute("for")}`).checked?i.setAttribute("part","key-checked"):i.setAttribute("part","key-unchecked")});const e=t.querySelector("table"),n=r.querySelector("table");r.addEventListener("change",function(i){const c=i.target,h=new CustomEvent("view-change",{detail:{"data-dataset":c.getAttribute("data-dataset"),label:c.getAttribute("data-label"),checked:c.checked}});t.dispatchEvent(h),Array.from(a).forEach(s=>{var l;!((l=r.querySelector(`input#${s.getAttribute("for")}`))===null||l===void 0)&&l.checked?s.setAttribute("part","key-checked"):s.setAttribute("part","key-unchecked")}),n.innerHTML=e.innerHTML,A(t,n),t.tagName=="IAM-DOUGHNUTCHART"&&H(r)})},U=function(t,r){const o=t.querySelector("table"),a=r.querySelector("table"),e=(h,s)=>{s.disconnect(),c.disconnect();for(const l of h)(l.attributeName=="class"||l.type==="attributes"||l.type==="attributes")&&(a.innerHTML=o.innerHTML,k(t,r,a));s.observe(o,{characterData:!0,subtree:!0}),c.observe(t,{attributes:!0})},n=(h,s)=>{s.disconnect(),c.disconnect();for(const l of h)(l.type=="characterData"||l.type=="childList"&&l.addedNodes.length)&&(a.innerHTML=o.innerHTML,k(t,r,a));s.observe(o,{characterData:!0,subtree:!0}),c.observe(t,{attributes:!0})},i=new MutationObserver(n),c=new MutationObserver(e);return i.observe(o,{characterData:!0,subtree:!0}),c.observe(t,{attributes:!0}),!0};function C(t,r){r>1&&(t=t-.25);const o=Math.cos(2*Math.PI*t),a=Math.sin(2*Math.PI*t);return[o*100,a*100]}const f=function(t){const r=t.shadowRoot.querySelector(".chart__wrapper table"),o=t.hasAttribute("data-min")?t.getAttribute("data-min"):0,a=t.hasAttribute("data-max")?t.getAttribute("data-max"):j(t,r),e=t.hasAttribute("data-yaxis")?t.getAttribute("data-yaxis").split(","):[],n=t.hasAttribute("data-guidelines")?t.getAttribute("data-guidelines").split(","):[],i=t.hasAttribute("data-xaxis")?t.getAttribute("data-xaxis").split(","):null;return{min:o,max:a,yaxis:e,xaxis:i,guidelines:n}};function j(t,r){const o=t.classList.contains("chart--stacked")?"tbody tr":"tbody td:not(:first-child)",a=Array.from(r.querySelectorAll(o)).map(n=>n.getAttribute("data-numeric")),e=Math.max(...a);return Math.ceil(e)}const x=function(t,r,o,a){let e=String(t);e=e.replace("\xA3",""),e=e.replace("%",""),e=e.replace(",",""),e=Number.parseFloat(e);let n=(e-r)/(o-r)*100,i=n,c=0;return a&&a!=0&&(c=(a-r)/(o-r)*100),r<0&&(c=Math.abs(r/(o-r)*100),e<0?(n=c-n,c=c-n,i=c):(n=n-c,i=n+c)),{percent:n,axis:i,bottom:c}},A=function(t,r){Array.from(r.querySelectorAll("tbody tr")).forEach(e=>{let n=0;Array.from(e.querySelectorAll("td:not(:first-child)")).forEach(i=>{const c=i.cloneNode(!0);Array.from(c.querySelectorAll("*")).forEach(l=>{l.remove()});const h=parseFloat(c.textContent.replace("\xA3","").replace("%","").replace(",",""));i.setAttribute("data-numeric",h),i.setAttribute("data-value",c.textContent),getComputedStyle(i).display!="none"&&(n+=h),Array.from(i.querySelectorAll("a, button")).forEach((l,m)=>{m==0&&l.insertAdjacentHTML("beforeBegin","<hr/>"),l.classList.add("btn"),l.classList.add("btn-tertiary")})}),e.setAttribute("data-numeric",n)});const{min:o,max:a}=f(t);Array.from(r.querySelectorAll("tbody tr")).forEach((e,n)=>{const i=e.querySelector("td:first-child, th:first-child")?e.querySelector("td:first-child, th:first-child").textContent:"";e.setAttribute("part","group");const c=(e.getAttribute("data-numeric")-o)/(a-o)*100;e.style.setProperty("--percent",`${c}%`),Array.from(e.querySelectorAll("td:not([data-label])")).forEach((l,m)=>{m==0?l.setAttribute("part","xaxis-label"):l.setAttribute("part","value"),e.querySelectorAll("td").length>2&&l.setAttribute("data-label",r.querySelectorAll("thead th")[m].textContent)});const h=e.hasAttribute("data-min")?e.getAttribute("data-min"):o,s=e.hasAttribute("data-max")?e.getAttribute("data-max"):a;if(h<0){const l=Math.abs(h/(s-h)*100);t.setAttribute("style",`--min-bottom: ${l}%;`)}e.style.setProperty("--row-index",n+1),Array.from(e.querySelectorAll('td[data-numeric]:not([data-label="Min"]):not([data-label="Max"]):not(:first-child)')).forEach(l=>{if(getComputedStyle(l).display=="none")return;const g=l.innerHTML,v=Number.parseFloat(l.getAttribute("data-numeric")),d=Number.parseFloat(l.getAttribute("data-start"));if(l.querySelector("span[data-group]")||(l.innerHTML=`<span data-group="${i}" ${l.hasAttribute("data-label")?`data-label="${l.getAttribute("data-label")}"`:""} part="popover">${g}</span>`),!l.hasAttribute("style")){const{percent:u,bottom:y,axis:p}=x(v,h,s,d);l.setAttribute("data-percent",u),l.setAttribute("style",`--bottom:${y}%;--percent:${u}%;--axis:${p}%;`)}})})},I=function(t){const r=t.querySelector(".chart__wrapper"),o=t.querySelector(".chart__spacer span"),a=t.querySelector(".chart table");let e="";Array.from(a.querySelectorAll("tbody tr td:first-child")).forEach(n=>{typeof n.textContent<"u"&&n.textContent.length>e.length&&(e=n.textContent)}),r.setAttribute("data-longest-label",e),o.innerHTML=e},B=function(t){const r=t.querySelector(".chart__wrapper"),o=t.querySelector(".chart table");let a="";Array.from(o.querySelectorAll("tbody tr td:not(:first-child)")).forEach(e=>{typeof e.getAttribute("data-value")<"u"&&e.getAttribute("data-value").length>a.length&&(a=e.getAttribute("data-value"))}),r.setAttribute("data-longest-value",a)},T=function(t,r,o){const a=`chart-${Date.now()+(Math.floor(Math.random()*100)+1)}`;let e;const n=Array.from(r.querySelectorAll("thead th"));return n.forEach((i,c)=>{c!=0&&(e=K(a,c,i.textContent,o,t,e)),c==50&&(n.length=c+1)}),!0};function K(t,r,o,a,e,n){var i;const c=document.createElement("input");c.setAttribute("name",`${t}-dataset-${r}`),c.setAttribute("id",`${t}-dataset-${r}`),c.setAttribute("data-dataset",`${r}`),c.setAttribute("data-label",`${o}`),c.checked=!0,c.setAttribute("type","checkbox"),r==1?e.prepend(c):e.insertBefore(c,n.nextSibling),n=c;const h=document.createElement("label");h.setAttribute("class","key btn btn-action"),h.setAttribute("for",`${t}-dataset-${r}`),h.setAttribute("data-label",`${o}`),h.setAttribute("part","key");const s=(i=e.querySelector(`tbody tr td:nth-child(${r+1})`))===null||i===void 0?void 0:i.getAttribute("data-numeric");return h.setAttribute("data-numeric",s),h.innerHTML=`${o}`,a.append(h),n}const X=function(t,r){const{min:o,max:a,yaxis:e}=f(t);let{guidelines:n}=f(t);n.length||(n=e),r.innerHTML="";for(let i=0;i<n.length;i++){const c=parseFloat(n[i].replace("\xA3","").replace("%","").replace(",","")),{axis:h}=x(c,o,a);r.innerHTML+=`<div class="guideline" style="--percent:${h}%;">${e.indexOf(n[i])!=-1?`<span>${n[i]}</span>`:""}</div>`}},E=function(t,r){const{min:o,max:a,yaxis:e}=f(t);r.innerHTML="";for(let n=0;n<e.length;n++){const i=parseFloat(e[n].replace("\xA3","").replace("%","")),{axis:c}=x(i,o,a);r.innerHTML+=`<div class="axis__point" style="--percent:${c}%;"><span>${e[n]}</span></div>`}},Y=function(t){const r=t.querySelector(".chart");let o=t.querySelector(".chart__xaxis");o||(o=document.createElement("div"),o.setAttribute("class","chart__xaxis")),r.prepend(o)},G=function(t){const r=t.querySelectorAll("thead th[title], tbody th[title]:first-child, tbody td[title]:first-child");Array.from(r).forEach(o=>{const a=`tooltip-${Date.now()}-${Math.floor(Math.random()*100)}`;o.innerHTML=`<button class="tooltip" popovertarget="${a}" part="tooltip" style="anchor-name: --${a};">${o.textContent}</button><span id="${a}" style="position-anchor: --${a};" popover part="tooltip__content" class="tooltip__content">${o.getAttribute("title")}</span>`})},H=function(t){let r="";const o=t.querySelector(".chart");let a=t.querySelector(".doughnuts");a||(a=document.createElement("div"),a.setAttribute("class","doughnuts"),o.append(a)),Array.from(o.querySelectorAll("tbody tr")).forEach((e,n)=>{let i="",c="",h=0,s=0;const m=e.querySelectorAll("td")[0].innerHTML;let g=0;const v=e.getAttribute("data-numeric");Array.from(e.querySelectorAll("td")).forEach((d,u)=>{const y=getComputedStyle(d).display;if(u!=0&&y!="none"){let p=d.getAttribute("data-numeric");p=p.replace("\xA3",""),p=p.replace("%",""),p=p.replace(",",""),p=Number.parseInt(p),s+=p,g++}}),Array.from(e.querySelectorAll("td")).forEach((d,u)=>{var y,p;const _=getComputedStyle(d).display;if(u!=0&&g==1&&_!="none")i+=`<path d="M 0 0 L 100 0 A 100 100 0 1 1 100 -0.01 L 0 0" style="${d.getAttribute("style")} --path-index: ${u};"></path>`,c+=`<span class="h5 mb-0" part="popover">${M(q(d.getAttribute("data-label"))).trim()}<br/>${d.hasAttribute("data-second")?`${d.getAttribute("data-second-label")}: ${d.getAttribute("data-second")}<br/>`:""}${(y=d.querySelector('[part="popover"]'))===null||y===void 0?void 0:y.innerHTML}</span>`;else if(u!=0){let b=d.getAttribute("data-numeric");const F=_=="none"?"display: none;":"";b=b.replace("\xA3",""),b=b.replace("%",""),b=b.replace(",",""),b=Number.parseInt(b);const w=b/s,[z,$]=C(h,g),[S,L]=C(h+w,g),D=w>.5?1:0,P=["M 0 0",`L ${z?z.toFixed(0):0} ${$?$.toFixed(0):0}`,`A 100 100 0 ${D} 1 ${S?S.toFixed(0):0} ${L?L.toFixed(0):0}`,"L 0 0"].join(" ");i+=`<path d="${P}" style="${d.getAttribute("style")} --path-index: ${u};${F}"></path>`,c+=`<span class="h5 mb-0" part="popover">${M(q(d.getAttribute("data-label"))).trim()}<br/>${d.hasAttribute("data-second")?`${d.getAttribute("data-second-label")}: ${d.getAttribute("data-second")}<br/>`:""}${(p=d.querySelector('[part="popover"]'))===null||p===void 0?void 0:p.innerHTML}</span>`,_!="none"&&(h+=w)}}),r+=`<div class="doughnut">
5
5
  <svg viewBox="-105 -105 210 210" preserveAspectRatio="none" style="--row-index: ${n+1};">${i}</svg>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"bento-grid"});class n extends HTMLElement{constructor(){var o;super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const P=M=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:M})},Y=(M,t,o)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),o.forEach(a=>{M.addEventListener(a,function(e){const r={event:a,element:t,target:e.target};Object.keys(e.detail).forEach(l=>{const d=e.detail[l];r[l]=d}),window.dataLayer.push(r)})}),!0),F=(M=1)=>Math.floor(Math.random()*Date.now()*(M+1));P("iam-calendar");class O extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=`<table class="table--day" role="presentation"><tbody>
5
5
  <tr class="allday"><th>All day</th></tr>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const g=s=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:s})},h=(s,r,a)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:r}),a.forEach(t=>{s.addEventListener(t,function(c){const d={event:t,element:r,target:c.target};Object.keys(c.detail).forEach(p=>{const o=c.detail[p];d[p]=o}),window.dataLayer.push(d)})}),!0),u=`<div class="card__head" part="head">
5
5
  <slot name="head"></slot>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const M=function(e){const t=[];return Array.from(e.querySelectorAll(":scope > div")).forEach((n,o)=>{n.hasAttribute("data-thumbnail")&&(t[o]=n.getAttribute("data-thumbnail"))}),t},W=function(e,t){const n=e.querySelectorAll(":scope > div").length;let o="";for(let a=1;a<=n;a++){let r=null,i="";t.length&&t[a-1]?(i="has-thumbnail",r=`<img src="${t[a-1]}" alt="Slide ${a}" height="148"/>`):r=`Slide ${a}`,o+=`<button class="control-${a} ${i}" data-slide="${a}" ${a==1?"aria-current":""}>${r}</button>`}return o},x=function(e,t){return t==1?e:Math.ceil(e/t)*t-t+1},z=function(e,t){return(e-1)/(t-1)*100},P=function(e){let t;const n=e.shadowRoot.querySelector(".carousel"),o=n.querySelector(".carousel__inner"),a=n.querySelector(".carousel__controls"),r=n.querySelector('.carousel__progress [type="range"]'),i=e.querySelectorAll(":scope > div").length;let p=o.clientWidth,y=e.querySelector(":scope > div").scrollWidth,g=Math.round(p/y);r.setAttribute("min",1),r.setAttribute("step",g);let h=x(i,g);r.setAttribute("max",h),r.value=1;let u=z(1,h);r.style.setProperty("--percent",u+"%");let f,A="mouseup",L="mousedown";"ontouchstart"in document.documentElement&&(A="touchend",L="touchstart"),o.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(function(){const l=o.clientWidth,s=o.scrollWidth,m=o.scrollLeft;let c=Math.round(m/s*i)+1;const v=e.querySelector(":scope > div").scrollWidth,w=e.querySelector(":scope > div:last-child").offsetLeft,_=o.scrollLeft+l+o.getBoundingClientRect().left>=w+60,b=Math.round(l/v),k=Math.ceil(i/b)*b-i;r.setAttribute("step",b),k>0&&_&&(c=Math.floor(i/b)*b+1),Array.from(n.querySelectorAll(".carousel__controls button")).forEach(d=>{d.removeAttribute("aria-current")}),n.querySelector(".control-"+c).setAttribute("aria-current",!0),c==1?n.querySelector(".btn-prev").setAttribute("disabled","disabled"):n.querySelector(".btn-prev").removeAttribute("disabled"),c>i-b?n.querySelector(".btn-next").setAttribute("disabled","disabled"):n.querySelector(".btn-next").removeAttribute("disabled"),r.value=c,h=x(i,b),r.setAttribute("max",h),u=c/h*100,u=z(c,h),r.style.setProperty("--percent",u+"%")},100)},!1),a.addEventListener("click",function(l){for(let s=l.target;s&&s!=this;s=s.parentNode)if(typeof s.matches=="function"&&s.matches("button")){l.preventDefault(),Array.from(a.querySelectorAll("button")).forEach(v=>{v.removeAttribute("aria-current")}),s.setAttribute("aria-current",!0);const m=new CustomEvent("pip-clicked",{detail:{slide:s.getAttribute("data-slide")}});e.dispatchEvent(m);const c=e.querySelector(`:scope > *:nth-child(${s.getAttribute("data-slide")})`);o.scroll({top:0,left:c.offsetLeft-o.getBoundingClientRect().left,behavior:"smooth"});break}},!1),n.addEventListener("click",function(l){const s=o.clientWidth,m=e.querySelector(":scope > div").scrollWidth,c=Math.round(s/m),v=e.querySelector(":scope > div:last-child").offsetLeft,w=o.scrollLeft+s+o.getBoundingClientRect().left>=v+60,_=Math.ceil(i/c)*c-i,b=c-_,k=w&&_>0?b*m:o.clientWidth;for(let d=l.target;d&&d!=this;d=d.parentNode)if(typeof d.matches=="function"&&d.matches(".btn-next, .btn-prev")){const S=d.matches(".btn-next")?"next":"prev",E=new CustomEvent(`${S}-clicked`,{detail:{slide:d.getAttribute("data-go")}});e.dispatchEvent(E),l.preventDefault();const q=d.classList.contains("btn-prev")?o.scrollLeft-k:o.scrollLeft+o.clientWidth;o.scroll({top:0,left:q,behavior:"smooth"});break}},!1),r.addEventListener(L,function(){clearInterval(f),f=setInterval(function(){p=o.clientWidth,y=e.querySelector(":scope > div").scrollWidth,g=Math.round(p/y),r.setAttribute("step",g),h=x(i,g),r.setAttribute("max",h),u=z(r.value,h),r.style.setProperty("--percent",u+"%")},10)}),r.addEventListener(A,function(){clearInterval(f)}),r.addEventListener("change",function(){clearInterval(f);const l=e.querySelector(`:scope > *:nth-child(${r.value})`);o.scroll({top:0,left:l?l.offsetLeft-o.getBoundingClientRect().left:0,behavior:"smooth"});const s=new CustomEvent("slider-changed",{detail:{slide:r.value}});e.dispatchEvent(s)},!1)},$=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:e})},C=(e,t,n)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),n.forEach(o=>{e.addEventListener(o,function(a){const r={event:o,element:t,target:a.target};Object.keys(a.detail).forEach(i=>{const p=a.detail[i];r[i]=p}),window.dataLayer.push(r)})}),!0);$("iam-carousel");class I extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"collapsible side menu"});class m extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const i=document.createElement("template");i.innerHTML=`
5
5
  <style class="styles">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */class s extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Dark mode button"});class i extends HTMLElement{constructor(){var e;super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const o=document.createElement("template");o.innerHTML=`
5
5
  <style>::slotted(.toggle):after{--icon: var(--icon-light);background:red;mask-image:var(--icon);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%;z-index:2}::slotted(.toggle.dark-theme):after{--icon: var(--icon-dark)}/*# sourceMappingURL=assets/css/components/darkmode.component.css.map */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const L=t=>t.charAt(0).toUpperCase()+t.slice(1),q=t=>t.replace(/_/g," "),R=(t,r)=>{for(let a=1;a<=10;a++){if(t.hasAttribute(`data-colour-${a}`)){const c=t.getAttribute(`data-colour-${a}`);t.style.setProperty(`--chart-colour-${a}`,`var(--chart-colour-${c})`),t.style.setProperty(`--chart-colour-${a}-hover`,`var(--chart-colour-${c}-hover)`)}Array.from(r.querySelectorAll(`[data-colour-${a}]`)).forEach(c=>{const o=c.getAttribute(`data-colour-${a}`);c.style.setProperty(`--chart-colour-${a}`,`var(--chart-colour-${o})`),c.style.setProperty(`--chart-colour-${a}-hover`,`var(--chart-colour-${o}-hover)`)})}return!0},w=(t,r,a)=>{if(t.tagName=="IAM-DOUGHNUTCHART")return N(t,r,a),!0;const c=r.querySelector(".chart__key");c.innerHTML="";const o=r.querySelector(".chart__guidelines");o.innerHTML="";const i=r.querySelector(".chart__yaxis");i.innerHTML="",Array.from(r.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(n=>{n.remove()});const{xaxis:e}=y(t);return A(t,a),T(r,a,c),I(t,o),X(t,i),e&&K(r),!0},N=(t,r,a)=>{const c=r.querySelector(".chart__key");return c.innerHTML="",Array.from(r.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(o=>{o.remove()}),A(t,a),T(r,a,c),H(r),!0},j=function(t,r){const a=r.querySelector(".chart");a.addEventListener("mousemove",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("td:not(:first-child")){const l=e.target.closest("td:not(:first-child").getBoundingClientRect(),s=e.clientX-l.left,h=e.clientY-l.top;a.setAttribute("style",`--cursor-x: ${s}px; --cursor-y: ${h}px;`)}});const c=r.querySelectorAll("label");Array.from(c).forEach(e=>{r.querySelector(`input#${e.getAttribute("for")}`).checked?e.setAttribute("part","key-checked"):e.setAttribute("part","key-unchecked")});const o=t.querySelector("table"),i=r.querySelector("table");r.addEventListener("change",function(e){const n=e.target,l=new CustomEvent("view-change",{detail:{"data-dataset":n.getAttribute("data-dataset"),label:n.getAttribute("data-label"),checked:n.checked}});t.dispatchEvent(l),Array.from(c).forEach(s=>{var h;!((h=r.querySelector(`input#${s.getAttribute("for")}`))===null||h===void 0)&&h.checked?s.setAttribute("part","key-checked"):s.setAttribute("part","key-unchecked")}),i.innerHTML=o.innerHTML,A(t,i),t.tagName=="IAM-DOUGHNUTCHART"&&H(r)})},B=function(t,r){const a=t.querySelector("table"),c=r.querySelector("table"),o=(l,s)=>{s.disconnect(),n.disconnect();for(const h of l)(h.attributeName=="class"||h.type==="attributes"||h.type==="attributes")&&(c.innerHTML=a.innerHTML,w(t,r,c));s.observe(a,{characterData:!0,subtree:!0}),n.observe(t,{attributes:!0})},i=(l,s)=>{s.disconnect(),n.disconnect();for(const h of l)(h.type=="characterData"||h.type=="childList"&&h.addedNodes.length)&&(c.innerHTML=a.innerHTML,w(t,r,c));s.observe(a,{characterData:!0,subtree:!0}),n.observe(t,{attributes:!0})},e=new MutationObserver(i),n=new MutationObserver(o);return e.observe(a,{characterData:!0,subtree:!0}),n.observe(t,{attributes:!0}),!0};function C(t,r){r>1&&(t=t-.25);const a=Math.cos(2*Math.PI*t),c=Math.sin(2*Math.PI*t);return[a*100,c*100]}const y=function(t){const r=t.shadowRoot.querySelector(".chart__wrapper table"),a=t.hasAttribute("data-min")?t.getAttribute("data-min"):0,c=t.hasAttribute("data-max")?t.getAttribute("data-max"):U(t,r),o=t.hasAttribute("data-yaxis")?t.getAttribute("data-yaxis").split(","):[],i=t.hasAttribute("data-guidelines")?t.getAttribute("data-guidelines").split(","):[],e=t.hasAttribute("data-xaxis")?t.getAttribute("data-xaxis").split(","):null;return{min:a,max:c,yaxis:o,xaxis:e,guidelines:i}};function U(t,r){const a=t.classList.contains("chart--stacked")?"tbody tr":"tbody td:not(:first-child)",c=Array.from(r.querySelectorAll(a)).map(i=>i.getAttribute("data-numeric")),o=Math.max(...c);return Math.ceil(o)}const x=function(t,r,a,c){let o=String(t);o=o.replace("\xA3",""),o=o.replace("%",""),o=o.replace(",",""),o=Number.parseFloat(o);let i=(o-r)/(a-r)*100,e=i,n=0;return c&&c!=0&&(n=(c-r)/(a-r)*100),r<0&&(n=Math.abs(r/(a-r)*100),o<0?(i=n-i,n=n-i,e=n):(i=i-n,e=i+n)),{percent:i,axis:e,bottom:n}},A=function(t,r){Array.from(r.querySelectorAll("tbody tr")).forEach(o=>{let i=0;Array.from(o.querySelectorAll("td:not(:first-child)")).forEach(e=>{const n=e.cloneNode(!0);Array.from(n.querySelectorAll("*")).forEach(h=>{h.remove()});const l=parseFloat(n.textContent.replace("\xA3","").replace("%","").replace(",",""));e.setAttribute("data-numeric",l),e.setAttribute("data-value",n.textContent),getComputedStyle(e).display!="none"&&(i+=l),Array.from(e.querySelectorAll("a, button")).forEach((h,b)=>{b==0&&h.insertAdjacentHTML("beforeBegin","<hr/>"),h.classList.add("btn"),h.classList.add("btn-tertiary")})}),o.setAttribute("data-numeric",i)});const{min:a,max:c}=y(t);Array.from(r.querySelectorAll("tbody tr")).forEach((o,i)=>{const e=o.querySelector("td:first-child, th:first-child")?o.querySelector("td:first-child, th:first-child").textContent:"";o.setAttribute("part","group");const n=(o.getAttribute("data-numeric")-a)/(c-a)*100;o.style.setProperty("--percent",`${n}%`),Array.from(o.querySelectorAll("td:not([data-label])")).forEach((h,b)=>{b==0?h.setAttribute("part","xaxis-label"):h.setAttribute("part","value"),o.querySelectorAll("td").length>2&&h.setAttribute("data-label",r.querySelectorAll("thead th")[b].textContent)});const l=o.hasAttribute("data-min")?o.getAttribute("data-min"):a,s=o.hasAttribute("data-max")?o.getAttribute("data-max"):c;if(l<0){const h=Math.abs(l/(s-l)*100);t.setAttribute("style",`--min-bottom: ${h}%;`)}o.style.setProperty("--row-index",i+1),Array.from(o.querySelectorAll('td[data-numeric]:not([data-label="Min"]):not([data-label="Max"]):not(:first-child)')).forEach(h=>{if(getComputedStyle(h).display=="none")return;const m=h.innerHTML,f=Number.parseFloat(h.getAttribute("data-numeric")),d=Number.parseFloat(h.getAttribute("data-start"));if(h.querySelector("span[data-group]")||(h.innerHTML=`<span data-group="${e}" ${h.hasAttribute("data-label")?`data-label="${h.getAttribute("data-label")}"`:""} part="popover">${m}</span>`),!h.hasAttribute("style")){const{percent:v,bottom:g,axis:p}=x(f,l,s,d);h.setAttribute("data-percent",v),h.setAttribute("style",`--bottom:${g}%;--percent:${v}%;--axis:${p}%;`)}})})},T=function(t,r,a){const c=`chart-${Date.now()+(Math.floor(Math.random()*100)+1)}`;let o;const i=Array.from(r.querySelectorAll("thead th"));return i.forEach((e,n)=>{n!=0&&(o=V(c,n,e.textContent,a,t,o)),n==50&&(i.length=n+1)}),!0};function V(t,r,a,c,o,i){var e;const n=document.createElement("input");n.setAttribute("name",`${t}-dataset-${r}`),n.setAttribute("id",`${t}-dataset-${r}`),n.setAttribute("data-dataset",`${r}`),n.setAttribute("data-label",`${a}`),n.checked=!0,n.setAttribute("type","checkbox"),r==1?o.prepend(n):o.insertBefore(n,i.nextSibling),i=n;const l=document.createElement("label");l.setAttribute("class","key btn btn-action"),l.setAttribute("for",`${t}-dataset-${r}`),l.setAttribute("data-label",`${a}`),l.setAttribute("part","key");const s=(e=o.querySelector(`tbody tr td:nth-child(${r+1})`))===null||e===void 0?void 0:e.getAttribute("data-numeric");return l.setAttribute("data-numeric",s),l.innerHTML=`${a}`,c.append(l),i}const I=function(t,r){const{min:a,max:c,yaxis:o}=y(t);let{guidelines:i}=y(t);i.length||(i=o),r.innerHTML="";for(let e=0;e<i.length;e++){const n=parseFloat(i[e].replace("\xA3","").replace("%","").replace(",","")),{axis:l}=x(n,a,c);r.innerHTML+=`<div class="guideline" style="--percent:${l}%;">${o.indexOf(i[e])!=-1?`<span>${i[e]}</span>`:""}</div>`}},X=function(t,r){const{min:a,max:c,yaxis:o}=y(t);r.innerHTML="";for(let i=0;i<o.length;i++){const e=parseFloat(o[i].replace("\xA3","").replace("%","")),{axis:n}=x(e,a,c);r.innerHTML+=`<div class="axis__point" style="--percent:${n}%;"><span>${o[i]}</span></div>`}},K=function(t){const r=t.querySelector(".chart");let a=t.querySelector(".chart__xaxis");a||(a=document.createElement("div"),a.setAttribute("class","chart__xaxis")),r.prepend(a)},H=function(t){let r="";const a=t.querySelector(".chart");let c=t.querySelector(".doughnuts");c||(c=document.createElement("div"),c.setAttribute("class","doughnuts"),a.append(c)),Array.from(a.querySelectorAll("tbody tr")).forEach((o,i)=>{let e="",n="",l=0,s=0;const b=o.querySelectorAll("td")[0].innerHTML;let m=0;const f=o.getAttribute("data-numeric");Array.from(o.querySelectorAll("td")).forEach((d,v)=>{const g=getComputedStyle(d).display;if(v!=0&&g!="none"){let p=d.getAttribute("data-numeric");p=p.replace("\xA3",""),p=p.replace("%",""),p=p.replace(",",""),p=Number.parseInt(p),s+=p,m++}}),Array.from(o.querySelectorAll("td")).forEach((d,v)=>{var g,p;const _=getComputedStyle(d).display;if(v!=0&&m==1&&_!="none")e+=`<path d="M 0 0 L 100 0 A 100 100 0 1 1 100 -0.01 L 0 0" style="${d.getAttribute("style")} --path-index: ${v};"></path>`,n+=`<span class="h5 mb-0" part="popover">${L(q(d.getAttribute("data-label"))).trim()}<br/>${d.hasAttribute("data-second")?`${d.getAttribute("data-second-label")}: ${d.getAttribute("data-second")}<br/>`:""}${(g=d.querySelector('[part="popover"]'))===null||g===void 0?void 0:g.innerHTML}</span>`;else if(v!=0){let u=d.getAttribute("data-numeric");const F=_=="none"?"display: none;":"";u=u.replace("\xA3",""),u=u.replace("%",""),u=u.replace(",",""),u=Number.parseInt(u);const k=u/s,[$,z]=C(l,m),[S,M]=C(l+k,m),P=k>.5?1:0,D=["M 0 0",`L ${$?$.toFixed(0):0} ${z?z.toFixed(0):0}`,`A 100 100 0 ${P} 1 ${S?S.toFixed(0):0} ${M?M.toFixed(0):0}`,"L 0 0"].join(" ");e+=`<path d="${D}" style="${d.getAttribute("style")} --path-index: ${v};${F}"></path>`,n+=`<span class="h5 mb-0" part="popover">${L(q(d.getAttribute("data-label"))).trim()}<br/>${d.hasAttribute("data-second")?`${d.getAttribute("data-second-label")}: ${d.getAttribute("data-second")}<br/>`:""}${(p=d.querySelector('[part="popover"]'))===null||p===void 0?void 0:p.innerHTML}</span>`,_!="none"&&(l+=k)}}),r+=`<div class="doughnut">
5
5
  <svg viewBox="-105 -105 210 210" preserveAspectRatio="none" style="--row-index: ${i+1};">${e}</svg>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */function f(l,a){const s=a.querySelector(".files"),n=a.querySelector(".drop-area"),t=l.querySelector("input"),b=l.hasAttribute("data-maxsize")?l.getAttribute("data-maxsize"):0,h=a.querySelector(".invalid-feedback.size"),u=a.querySelector(".invalid-feedback.ext"),o=t.cloneNode();n.append(o);const g=function(e){if(!t.hasAttribute("accept"))return!0;const i=e.split(".").pop();return!!t.getAttribute("accept").includes(i)};if(a.addEventListener("click",e=>{e&&e.target instanceof HTMLElement&&e.target.closest(".btn-primary")&&(u.classList.remove("d-block"),h.classList.remove("d-block"),(t.hasAttribute("multiple")?o:t).click())}),a.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest(".files button")){const i=new DataTransfer,{files:d}=t,r=e.target.closest(".files button");for(let p=0;p<d.length;p++){const v=d[p];v.name!=r.getAttribute("data-file")&&i.items.add(v)}t.files=i.files;const m=new Event("change");t.dispatchEvent(m);const c=new CustomEvent("fileRemoved",{detail:{removedFile:r?.dataset.file}});l.dispatchEvent(c)}}),o.addEventListener("change",()=>{if(t.hasAttribute("multiple")){const i=[...t.files,...o.files],d=[],r=new DataTransfer;for(let m=0;m<i.length;m++){const c=i[m],p=c.size/1e3;!d.includes(c.name)&&(b==0||p<b)&&g(c.name)&&r.items.add(c),g(c.name)||u.classList.add("d-block"),p>b&&h.classList.add("d-block"),d.push(c.name)}t.files=r.files}else t.files=o.files;const e=new Event("change");t.dispatchEvent(e)}),o.addEventListener("dragenter",()=>{o.classList.add("focus")}),o.addEventListener("dragleave",()=>{o.classList.remove("focus")}),o.addEventListener("drop",()=>{o.classList.remove("focus")}),t.addEventListener("change",()=>{if(t.files.length==1){const i=t.files[0],d=i.size/1e3;if(!g(i.name)){u.classList.add("d-block");const r=new DataTransfer;t.files=r.files}if(d>b){h.classList.add("d-block");const r=new DataTransfer;t.files=r.files}}s.innerHTML="";for(const i of t.files)s.innerHTML+=`<span class="file" part="file">${i.name} <button data-file="${i.name}" part="file__remove">Remove</button></span>`;const e=new CustomEvent("elementchange",{detail:{files:t.files}});if(l.dispatchEvent(e),t.files.length==0){const i=new CustomEvent("empty");l.dispatchEvent(i)}}),l.hasAttribute("data-filename")){const e=l.getAttribute("data-filename");e&&(s.innerHTML=`<span class="file" part="file">${e} <button data-file="${e}" part="file__remove">Remove</button></span>`)}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"fileupload"});class k extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const a=document.createElement("template");a.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const h=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},p=(a,t,o)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),o.forEach(e=>{a.addEventListener(e,function(i){const r={event:e,element:t,target:i.target};Object.keys(i.detail).forEach(d=>{const s=i.detail[d];r[d]=s}),window.dataLayer.push(r)})}),!0),g=`<div class="card__head" part="head">
5
5
  <slot name="head"></slot>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */function r(s,t){i(s,t)}function i(s,t){let e;t.addEventListener("keyup",()=>{clearTimeout(e),e=setTimeout(function(){o(s,t.value)},500)}),t.addEventListener("change",()=>{clearTimeout(e),o(s,t.value)})}const o=function(s,t){Array.from(s.querySelectorAll(":scope > li")).forEach(e=>{const a=e.textContent.toLowerCase();e.classList.add("d-none"),a.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 n 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 v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const o=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})};o("iam-tag");class i extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const e=document.createElement("template");e.innerHTML=`
5
5
  <div class="wrapper">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class a extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"inline edit"});class v extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const n=document.createElement("template");n.innerHTML=`
5
5
  <style class="styles">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const q=k=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:k})};q("iam-iamPrefix");class _ extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const o=s=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:s})};o("iam-iamPrefix");class i extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Marketing"});class e extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const n=document.createElement("template");n.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const l=t=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:t})},m=(t,n,a)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:n}),a.forEach(e=>{t.addEventListener(e,function(s){const d={event:e,element:n,target:s.target};Object.keys(s.detail).forEach(o=>{const i=s.detail[o];d[o]=i}),window.dataLayer.push(d)})}),!0),p=function(t){const n=t.dataset.status;if(!n)return;const a=t.shadowRoot.querySelector(".milestone-wrap"),e=document.createElement("span");e.setAttribute("part","status"),e.classList.add("milestone-status"),e.innerHTML=`${n} Step`,n==="Current"&&t.classList.add("current"),a.insertAdjacentElement("afterbegin",e)},u=function(t){const n=t.shadowRoot.querySelector(".task-wrap"),a=t.dataset.items?JSON.parse(t.dataset.items):[];a.length&&(a.forEach(e=>{const s=document.createElement("details"),d=document.createElement("summary"),o=document.createElement("div"),i=document.createElement("p");o.classList.add("task-details"),d.innerHTML=e.name,e.date_completed&&d.classList.add("complete"),s.appendChild(d),e.description&&(i.innerHTML=e.description,o.appendChild(i)),e.actions.length&&o.appendChild(h(e.actions,d)),s.appendChild(o),n.insertAdjacentElement("beforeend",s),s.addEventListener("click",()=>{s?.hasAttribute("open")?r("milestone-item-closed",e.name,t):r("milestone-item-opened",e.name,t)})}),t.appendChild(n))},r=function(t,n,a){const e=new CustomEvent(t,{detail:{title:n}});a.dispatchEvent(e)},h=function(t,n){const a=document.createElement("ul"),e=t.length,d=t.filter(o=>o.date_completed).length||0;if(!(e<1))return n.innerHTML+=` (${d}/${e})`,t.forEach(o=>{const i=document.createElement("li"),c=document.createElement("span");o.date_completed&&(i.classList.add("complete"),c.classList.add("action-date"),c.innerHTML=o.date_completed),i.innerHTML=o.action,i.appendChild(c),a.appendChild(i)}),a},w=function(t){p(t),u(t)};l("iam-milestone");class L extends HTMLElement{constructor(){var n;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`,s=document.createElement("template");s.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const r=t=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:t})},l=(t,s,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:s}),e.forEach(n=>{t.addEventListener(n,function(o){const a={event:n,element:s,target:o.target};Object.keys(o.detail).forEach(i=>{const d=o.detail[i];a[i]=d}),window.dataLayer.push(a)})}),!0),u=function(t){if(!t.dataset.showAllToggle)return;const e=document.createElement("button");e.innerHTML="Show next steps",e.classList.add("btn","btn-tertiary","show-all-toggle"),t.appendChild(e),e.addEventListener("click",()=>{t.classList.contains("show-all")?(e.innerHTML="Show next steps",t.classList.remove("show-all"),c("hide-future-items",t)):(e.innerHTML="Hide next steps",t.classList.add("show-all"),c("show-future-items",t))})},c=function(t,s){const e=new CustomEvent(t,{});s.dispatchEvent(e)},h=function(t){u(t)};r("iam-milestone-group");class m extends HTMLElement{constructor(){var s;super();const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,o=document.createElement("template");o.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const w=d=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:d})},y=(d,a)=>{var i;const e=(i=a.shadowRoot)===null||i===void 0?void 0:i.querySelector("dialog");e?.showModal(),e?.focus();const c=new CustomEvent("modal-opened",{bubbles:!0,cancelable:!0,detail:{modalId:d}});a.dispatchEvent(c),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:d})},r=(d,a)=>{var i;const e=(i=a.shadowRoot)===null||i===void 0?void 0:i.querySelector("dialog");e?.close();const c=new CustomEvent("modal-closed",{bubbles:!0,cancelable:!0,detail:{modalId:d}});a.dispatchEvent(c),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:d})},k='<button class="btn btn-compact btn-secondary fa-xmark-large" data-close>Close</button>';w("iam-card");class x extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const a=document.createElement("template");a.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const g=c=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:c})},y=(c,e,u)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:e}),u.forEach(l=>{c.addEventListener(l,function(i){const n={event:l,element:e,target:i.target};Object.keys(i.detail).forEach(d=>{const t=i.detail[d];n[d]=t}),window.dataLayer.push(n)})}),!0);g("iam-multi-step");class h extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const A=p=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:p})},E=(p,i,s)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:i}),s.forEach(d=>{p.addEventListener(d,function(e){const r={event:d,element:i,target:e.target};Object.keys(e.detail).forEach(a=>{const m=e.detail[a];r[a]=m}),window.dataLayer.push(r)})}),!0);A("iam-multi-step-modal");class S extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const i=document.createElement("template");i.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  *//*! js-cookie v3.0.5 | MIT */function g(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var d in o)n[d]=o[d]}return n}var y={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function f(n,e){function o(a,s,i){if(!(typeof document>"u")){i=g({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var r in i)i[r]&&(m+="; "+r,i[r]!==!0&&(m+="="+i[r].split(";")[0]));return document.cookie=a+"="+n.write(s,a)+m}}function d(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},m=0;m<s.length;m++){var r=s[m].split("="),h=r.slice(1).join("=");try{var c=decodeURIComponent(r[0]);if(i[c]=n.read(h,c),a===c)break}catch{}}return a?i[a]:i}}return Object.create({set:o,get:d,remove:function(a,s){o(a,"",g({},s,{expires:-1}))},withAttributes:function(a){return f(this.converter,g({},this.attributes,a))},withConverter:function(a){return f(g({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}var k=f(y,{path:"/"}),w=function(n,e,o,d){function a(s){return s instanceof o?s:new o(function(i){i(s)})}return new(o||(o=Promise))(function(s,i){function m(c){try{h(d.next(c))}catch(t){i(t)}}function r(c){try{h(d.throw(c))}catch(t){i(t)}}function h(c){c.done?s(c.value):a(c.value).then(m,r)}h((d=d.apply(n,e||[])).next())})};const v=(n,e)=>{Array.from(n.querySelectorAll('label:not([slot="checked"])')).forEach(o=>{const a=o.querySelector("input").value,s=o.textContent;a.toLowerCase().includes(e.value.toLowerCase())||s.toLowerCase().includes(e.value.toLowerCase())?o.removeAttribute("slot"):o.setAttribute("slot","notmatched")})},x=(n,e,o)=>w(void 0,void 0,void 0,function*(){const d=e.value,a=n.getAttribute("data-url"),s=n.querySelector("input");console.log(s);const i=s&&s.hasAttribute("type")?s.getAttribute("type"):"checkbox";let m=s&&s.hasAttribute("name")?s.getAttribute("name"):"tags";n.hasAttribute("data-name")&&(m=n.hasAttribute("data-name"));const r=`${a}?search_query=${encodeURI(d)}`;window.controller||(window.controller=[]),window.controller[r]&&window.controller[r].abort(),window.controller[r]=new AbortController;const{signal:h}=controller[r];try{yield fetch(r,{signal:h,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":k.get("XSRF-TOKEN")})}).then(c=>c.json()).then(c=>{let t="";for(let l=0;l<c.data.length;l++)n.querySelector(`[value="${c.data[l].value}"]`)||(t+=`<label class="tag dropdown__option"><input type="${i}" name="${n.hasAttribute("data-name")?n.getAttribute("data-name"):m}" value="${c.data[l].value}"/>${c.data[l].title}</label>`);return n.insertAdjacentHTML("beforeend",`${t}`),o(n,e),c})}catch(c){console.log(c)}}),A=(n,e)=>{e.addEventListener("keydown",o=>{var d;switch(o.keyCode){case 40:o.stopPropagation(),o.preventDefault(),(d=n.querySelector('label:not([slot="checked"]) input'))===null||d===void 0||d.focus();break}}),n.addEventListener("keydown",o=>{var d,a,s;const i=n.querySelectorAll(':scope > a, :scope > button, :scope > details > summary, :scope > label:not([slot="checked"]) > input'),m=n.querySelectorAll('a, button, input, label:not([slot="checked"]) > input');if(o&&o.target instanceof HTMLElement&&o.target.closest('a, button, summary, label:not([slot="checked"]) > input')){const r=document.activeElement,h=Array.from(i).indexOf(r)-1,c=Array.from(i).indexOf(r)+1;switch(o.keyCode){case 27:r.closest("details")?(o.stopPropagation(),o.preventDefault(),r.closest("details").removeAttribute("open"),r.closest("details").querySelector(":scope summary").focus()):o.stopPropagation();break;case 32:case 13:break;case 35:o.stopPropagation(),o.preventDefault(),(d=n.querySelector("details[open]"))===null||d===void 0||d.removeAttribute("open"),Array.from(m)[m.length-1].focus();break;case 36:o.stopPropagation(),o.preventDefault(),(a=n.querySelector("details[open]"))===null||a===void 0||a.removeAttribute("open"),Array.from(m)[0].focus();break;case 38:if(o.stopPropagation(),o.preventDefault(),Array.from(i).indexOf(r)>-1)Array.from(i)[h]!=null?Array.from(i)[h].focus():Array.from(i)[i.length-1].focus();else if(r.closest("details")){const t=r.closest("details").querySelectorAll("a, button, :scope details > summary");subPrevIndex=Array.from(t).indexOf(r)-1,Array.from(t)[subPrevIndex]!=null?Array.from(t)[subPrevIndex].focus():Array.from(t)[t.length-1].focus()}break;case 40:if(o.stopPropagation(),o.preventDefault(),Array.from(i).indexOf(r)>-1)Array.from(i)[c]!=null?Array.from(i)[c].focus():Array.from(i)[0].focus();else if(r.closest("details")){const t=(s=r.closest("details"))===null||s===void 0?void 0:s.querySelectorAll("a, button, :scope details > summary");subNextIndex=Array.from(t).indexOf(r)+1,Array.from(t)[subNextIndex]!=null?Array.from(t)[subNextIndex].focus():Array.from(t)[0].focus()}break}}})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"mutliselect"});class z extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});class g extends HTMLElement{constructor(){super();const d=this.attachShadow({mode:"open"});document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const i=document.createElement("template");i.innerHTML=`
5
5
  <style class="styles">
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */function m(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]")||event.target.matches("[data-dismiss-button]"))&&(t.preventDefault(),f(i))},!1),i.hasAttribute("data-timeout")){const t=i.getAttribute("data-timeout"),o=new u(function(){f(i)},t);i.addEventListener("mouseenter",()=>{o.pause()}),i.addEventListener("mouseleave",()=>{o.resume()})}}function u(i,t){let o,e,n=t;this.pause=function(){window.clearTimeout(o),n-=new Date-e},this.resume=function(){e=new Date,window.clearTimeout(o),o=window.setTimeout(i,n)},this.resume()}const f=function(i){i.classList.add("d-none")},h=i=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:i})},b=(i,t,o)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),o.forEach(e=>{i.addEventListener(e,function(n){const a={event:e,element:t,target:n.target};Object.keys(n.detail).forEach(s=>{const c=n.detail[s];a[s]=c}),window.dataLayer.push(a)})}),!0);h("iam-notification");class p extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */class v extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const i=document.createElement("template");i.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const u=c=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:c})};function m(c){var r=new TextEncoder("utf-8").encode(c);return crypto.subtle.digest("SHA-1",r).then(function(e){for(var i=[],n=new DataView(e),o=0;o<n.byteLength;o+=4){var s=n.getUint32(o),a=s.toString(16),t="00000000",d=(t+a).slice(-t.length);i.push(d)}return i.join("")})}const b=(c,r)=>{m(c).then(function(e){const i=new XMLHttpRequest;i.addEventListener("load",function(){const n=this.responseText.split(`
5
5
  `),o=e.slice(5).toUpperCase();var s=!1;for(let t in n)if(n[t].substring(0,35)==o){s=!0;break}const a=new CustomEvent("hibpCheck",{detail:s});r.dispatchEvent(a)}),i.open("GET","https://api.pwnedpasswords.com/range/"+e.substr(0,5)),i.send()})};u("iam-password");class x extends HTMLElement{constructor(){var r;super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const a=o=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:o})};a("iam-popover");class s extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const i=o=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:o})};i("iam-rank");class a extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const C=`@import "${document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets"}/css/components/rank.component.css";`,l=document.createElement("template");l.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const m=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})};m("iam-rank");class g extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const i=`@import "${document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets"}/css/components/rank.component.css";`,o=document.createElement("template");o.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const p=n=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:n})};p("iam-rating");class l extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const a=document.createElement("template");a.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */const h=o=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:o})},p=(o,a,r)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:a}),r.forEach(t=>{o.addEventListener(t,function(e){const d={event:t,element:a,target:e.target};Object.keys(e.detail).forEach(i=>{const c=e.detail[i];d[i]=c}),window.dataLayer.push(d)})}),!0),g=`<div class="card__head" part="head">
5
5
  <slot name="head"></slot>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  *//*! js-cookie v3.0.5 | MIT */function L(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var u in a)t[u]=a[u]}return t}var T={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function E(t,e){function a(r,f,o){if(!(typeof document>"u")){o=L({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var i in o)o[i]&&(d+="; "+i,o[i]!==!0&&(d+="="+o[i].split(";")[0]));return document.cookie=r+"="+t.write(f,r)+d}}function u(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var f=document.cookie?document.cookie.split("; "):[],o={},d=0;d<f.length;d++){var i=f[d].split("="),n=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(o[s]=t.read(n,s),r===s)break}catch{}}return r?o[r]:o}}return Object.create({set:a,get:u,remove:function(r,f){a(r,"",L({},f,{expires:-1}))},withAttributes:function(r){return E(this.converter,L({},this.attributes,r))},withConverter:function(r){return E(L({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var M=E(T,{path:"/"});const j=t=>t.replace(/ /g,"_"),U=function(t){return t=t.toLowerCase(),t=j(t),t=t.replace(/\W/g,""),t},g=(t,e,a)=>e.split(/[\.\[\]\'\"]/).filter(u=>u).reduce((u,r)=>u?u[r]:a,t),k=t=>Array.isArray(t)||t!==null&&["function","object"].includes(typeof t);function $(t,e,a,u=!1){let r=-1;a.closest(".datalist__wrapper")&&a.closest(".datalist__wrapper"),e.setAttribute("data-list",e.getAttribute("list")),e.setAttribute("list",""),e.hasAttribute("placeholder")&&e.setAttribute("data-placeholder",e.getAttribute("placeholder")),e.hasAttribute("placeholder")&&e.setAttribute("data-original-placeholder",e.getAttribute("placeholder")),e.addEventListener("focus",function(){e.value!=""&&(e.setAttribute("placeholder",e.value),e.setAttribute("data-value",e.value)),e.value=""}),e.addEventListener("keyup",function(){e.value!=""&&e.setAttribute("data-value",e.value)}),e.addEventListener("blur",function(){e.hasAttribute("data-value")&&(e.value=e.getAttribute("data-value")),e.hasAttribute("data-placeholder")&&e.setAttribute("placeholder",e.getAttribute("data-placeholder"))});for(const n of a.options)n.innerHTML==""&&(n.innerHTML=n.value);a.addEventListener("click",function(n){if(n&&n.target instanceof HTMLElement&&n.target.closest("option")){const s=n.target.closest("option");e.value=s.value,typeof window.triggerDynamicEvent=="function"&&window.triggerDynamicEvent(e);for(const c of a.options)c.classList.remove("active");s.classList.add("active")}}),e.addEventListener("input",function(){if(e.removeAttribute("data-value"),r=-1,t.tagName!="IAM-ADDRESS-LOOKUP"){const n=e.value.toUpperCase();for(const s of a.options)s.value.toUpperCase().indexOf(n)>-1?(s.style.display="block",s.classList.remove("hide")):(s.style.display="none",s.classList.add("hide"))}}),t.addEventListener("keydown",function(n){n.keyCode==40?(r++,f(a.options)):n.keyCode==38?(r--,f(a.options)):n.keyCode==13&&(n.preventDefault(),r>-1&&a.options&&a.options[r].click())});function f(n){if(!n)return!1;o(n),r>=n.length&&(r=0),r<0&&(r=n.length-1),n[r].classList.add("active")}function o(n){if(!n)return!1;for(let s=0;s<n.length;s++)n[s].classList.remove("active")}e.closest("label").insertAdjacentHTML("beforeend",'<button class="empty btn btn-action" type="button"><i class="fa-light fa-times me-0"></i></button>');const d=()=>{e.removeAttribute("placeholder"),e.hasAttribute("data-original-placeholder")&&e.setAttribute("placeholder",e.getAttribute("data-original-placeholder")),e.removeAttribute("data-value"),e.value="";for(const s of a.options)s.classList.remove("active"),s.removeAttribute("style");const n=new CustomEvent("close-button-pressed");t.dispatchEvent(n)};(t.querySelector(".empty")?t.querySelector(".empty"):t.shadowRoot.querySelector(".empty")).addEventListener("click",function(n){d()}),t.addEventListener("empty",function(n){d()})}var S=function(t,e,a,u){function r(f){return f instanceof a?f:new a(function(o){o(f)})}return new(a||(a=Promise))(function(f,o){function d(s){try{n(u.next(s))}catch(c){o(c)}}function i(s){try{n(u.throw(s))}catch(c){o(c)}}function n(s){s.done?f(s.value):r(s.value).then(d,i)}n((u=u.apply(t,e||[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Search"});class H extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const e=document.createElement("template");e.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Slider"});class f extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
5
5
  <style>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * iamKey v7.6.4--beta4
2
+ * iamKey v7.6.4--beta5
3
3
  * Copyright 2022-2026 iamproperty
4
4
  */class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const i=document.createElement("template");i.innerHTML=`
5
5
  <style>
@@ -1764,26 +1764,28 @@ class iamSTDAddressLookup extends HTMLElement {
1764
1764
  }
1765
1765
  }
1766
1766
  // Addres unknown
1767
- const toggleAddressFields = () => {
1768
- if (addressUnknownCheckbox.checked) {
1769
- Array.from(this.querySelectorAll('input:not([name="address-unknown"]), select')).forEach((input) => {
1770
- input.setAttribute('disabled', 'disabled');
1771
- input.setAttribute('data-unknown-disabled', 'true');
1772
- addressComponent.setAttribute('data-disabled', 'disabled');
1773
- });
1774
- }
1775
- else {
1776
- Array.from(this.querySelectorAll('[data-unknown-disabled]')).forEach((input) => {
1777
- addressComponent.removeAttribute('data-disabled', 'disabled');
1778
- input.removeAttribute('disabled');
1779
- input.removeAttribute('data-unknown-disabled');
1780
- });
1781
- }
1782
- };
1783
- toggleAddressFields();
1784
- addressUnknownCheckbox === null || addressUnknownCheckbox === void 0 ? void 0 : addressUnknownCheckbox.addEventListener('change', (e) => {
1767
+ if (this.hasAttribute('data-address-unknown')) {
1768
+ const toggleAddressFields = () => {
1769
+ if (addressUnknownCheckbox.checked) {
1770
+ Array.from(this.querySelectorAll(`input:not([name="${this.getAttribute('data-address-unknown')}"]), select`)).forEach((input) => {
1771
+ input.setAttribute('disabled', 'disabled');
1772
+ input.setAttribute('data-unknown-disabled', 'true');
1773
+ addressComponent.setAttribute('data-disabled', 'disabled');
1774
+ });
1775
+ }
1776
+ else {
1777
+ Array.from(this.querySelectorAll('[data-unknown-disabled]')).forEach((input) => {
1778
+ addressComponent.removeAttribute('data-disabled', 'disabled');
1779
+ input.removeAttribute('disabled');
1780
+ input.removeAttribute('data-unknown-disabled');
1781
+ });
1782
+ }
1783
+ };
1785
1784
  toggleAddressFields();
1786
- });
1785
+ addressUnknownCheckbox === null || addressUnknownCheckbox === void 0 ? void 0 : addressUnknownCheckbox.addEventListener('change', (e) => {
1786
+ toggleAddressFields();
1787
+ });
1788
+ }
1787
1789
  }
1788
1790
  static get observedAttributes() {
1789
1791
  return ['data-url'];