@iamproperty/components 7.2.1--beta1 → 7.2.1--beta2

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 (57) hide show
  1. package/assets/css/components/table-basic.component.css +1 -1
  2. package/assets/css/components/table-basic.component.css.map +1 -1
  3. package/assets/css/components/table-basic.global.css +1 -1
  4. package/assets/css/components/table-basic.global.css.map +1 -1
  5. package/assets/css/components/table.component.css +1 -1
  6. package/assets/css/components/table.component.css.map +1 -1
  7. package/assets/css/components/table.global.css +1 -1
  8. package/assets/css/components/table.global.css.map +1 -1
  9. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  10. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  11. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  12. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  13. package/assets/js/components/barchart/barchart.component.min.js +1 -1
  14. package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
  15. package/assets/js/components/card/card.component.min.js +1 -1
  16. package/assets/js/components/carousel/carousel.component.min.js +1 -1
  17. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  18. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +1 -1
  19. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  20. package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
  21. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  22. package/assets/js/components/header/header.component.min.js +1 -1
  23. package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
  24. package/assets/js/components/marketing/marketing.component.min.js +1 -1
  25. package/assets/js/components/menu/menu.component.min.js +1 -1
  26. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  27. package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
  28. package/assets/js/components/nav/nav.component.min.js +1 -1
  29. package/assets/js/components/notification/notification.component.min.js +1 -1
  30. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  31. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  32. package/assets/js/components/search/search.component.min.js +1 -1
  33. package/assets/js/components/slider/slider.component.min.js +1 -1
  34. package/assets/js/components/table/table.component.js +2 -1
  35. package/assets/js/components/table/table.component.min.js +5 -5
  36. package/assets/js/components/table/table.component.min.js.map +1 -1
  37. package/assets/js/components/table-ajax/table-ajax.component.min.js +3 -3
  38. package/assets/js/components/table-ajax/table-ajax.component.min.js.map +1 -1
  39. package/assets/js/components/table-basic/table-basic.component.min.js +5 -5
  40. package/assets/js/components/table-basic/table-basic.component.min.js.map +1 -1
  41. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +5 -5
  42. package/assets/js/components/table-no-submit/table-no-submit.component.min.js.map +1 -1
  43. package/assets/js/components/table-submit/table-submit.component.min.js +5 -5
  44. package/assets/js/components/table-submit/table-submit.component.min.js.map +1 -1
  45. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  46. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  47. package/assets/js/modules/table.js +1 -0
  48. package/assets/js/scripts.bundle.js +1 -1
  49. package/assets/js/scripts.bundle.min.js +1 -1
  50. package/assets/sass/components/table-basic.component.scss +4 -0
  51. package/assets/sass/components/table-basic.global.scss +12 -2
  52. package/assets/sass/components/table.global.scss +4 -4
  53. package/assets/ts/components/table/table.component.ts +2 -1
  54. package/assets/ts/modules/table.ts +1 -0
  55. package/dist/components.es.js +17 -17
  56. package/dist/components.umd.js +30 -30
  57. package/package.json +1 -1
@@ -20,9 +20,9 @@
20
20
 
21
21
  </div>
22
22
  `,this.shadowRoot.appendChild(r.content.cloneNode(!0))}connectedCallback(){const t=this.shadowRoot.querySelector(".side-menu"),e=this.shadowRoot.querySelector(".side-menu-content"),o=this.shadowRoot.querySelector(".main-content"),r=this.shadowRoot.querySelector(".side-menu > .btn");this.hasAttribute("data-css")&&this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend",`@import "${this.getAttribute("data-css")}";`),this.hasAttribute("data-title")||this.setAttribute("data-title","configuration"),e.insertAdjacentHTML("afterbegin",`<span class="h3">${this.getAttribute("data-title")}</span>`),o.insertAdjacentHTML("afterbegin",`<span class="h3">${this.getAttribute("data-title")}</span>`),this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)")&&(this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"),this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")),this.hasAttribute("open")&&window.innerWidth>992&&(t.classList.add("open"),r.setAttribute("aria-expanded",!0)),r.addEventListener("click",()=>{t.classList.contains("open")?(t.classList.remove("open"),r.removeAttribute("aria-expanded"),setTimeout(function(){e.classList.add("closed")},1e3),t.classList.add("pe-none"),setTimeout(function(){t.classList.remove("pe-none")},1e3)):(e.classList.remove("closed"),setTimeout(function(){t.classList.add("open"),r.setAttribute("aria-expanded",!0)},100))}),t.addEventListener("mouseenter",()=>{window.innerWidth>992&&(t.classList.contains("open")||e.classList.remove("closed"),t.classList.add("hover"))}),t.addEventListener("mousemove",()=>{window.innerWidth>992&&(t.classList.contains("open")||e.classList.remove("closed"))}),t.addEventListener("mouseleave",()=>{window.innerWidth>992&&(t.classList.remove("hover"),t.classList.contains("open")||setTimeout(function(){e.classList.add("closed")},1e3))})}}window.customElements.get("iam-collapsible-side")||window.customElements.define("iam-collapsible-side",je);const Ne={name:"CollapsibleSideMenu",props:{},mounted(){}};function Fe(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-collapsible-side",null,[s.renderSlot(a.$slots,"default")])}const Pe=S(Ne,[["render",Fe]]),De=Object.assign({name:"FileUpload",props:{maxfilesize:{type:Number,required:!1},maxfiles:{type:Number,required:!1}},created(){this.$nextTick(function(){Promise.resolve().then(()=>Ur).then(a=>{window.customElements.get("iam-fileupload")||window.customElements.define("iam-fileupload",a.default)}).catch(a=>{console.log(a.message)})})}},{emits:["elementChange","empty","fileRemoved"],setup(a,{emit:t}){const e=t,o=s.ref(null);return s.onMounted(()=>{o.value.addEventListener("elementChange",function(r){e("elementChange",r)}),o.value.addEventListener("empty",function(r){e("empty",r)}),o.value.addEventListener("fileRemoved",function(r){e("fileRemoved",r)})}),(r,i)=>(s.openBlock(),s.createElementBlock("iam-fileupload",{ref_key:"$component",ref:o},[s.renderSlot(r.$slots,"default")],512))}}),Ve={name:"Card",created(){this.$nextTick(function(){Promise.resolve().then(()=>Jr).then(a=>{window.customElements.get("iam-filter-card")||window.customElements.define("iam-filter-card",a.default)}).catch(a=>{console.log(a.message)})})}};function Oe(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-filter-card",null,[s.renderSlot(a.$slots,"default")])}const Ie=S(Ve,[["render",Oe]]);/*!
23
- * iamKey v7.2.1--beta1
23
+ * iamKey v7.2.1--beta2
24
24
  * Copyright 2022-2025 iamproperty
25
- */function Ue(a,t){We(a,t)}function We(a,t){let e;t.addEventListener("keyup",()=>{clearTimeout(e),e=setTimeout(function(){Z(a,t.value)},500)}),t.addEventListener("change",()=>{clearTimeout(e),Z(a,t.value)})}const Z=function(a,t){Array.from(a.querySelectorAll(":scope > li")).forEach(e=>{const o=e.textContent.toLowerCase();e.classList.add("d-none"),o.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 Ye 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`,o=document.createElement("template");o.innerHTML=`
25
+ */function Ue(a,t){We(a,t)}function We(a,t){let e;t.addEventListener("keyup",()=>{clearTimeout(e),e=setTimeout(function(){tt(a,t.value)},500)}),t.addEventListener("change",()=>{clearTimeout(e),tt(a,t.value)})}const tt=function(a,t){Array.from(a.querySelectorAll(":scope > li")).forEach(e=>{const o=e.textContent.toLowerCase();e.classList.add("d-none"),o.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 Ye 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`,o=document.createElement("template");o.innerHTML=`
26
26
  <style>
27
27
  @import "${e}";
28
28
  ${this.hasAttribute("css")?`@import "${this.getAttribute("css")}";`:""}
@@ -49,7 +49,7 @@
49
49
  <div class="list__wrapper" part="wrapper">
50
50
  <slot></slot>
51
51
  </div>
52
- `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){const t=this.classList.toString();this.shadowRoot.querySelector(".list__wrapper").setAttribute("class",`list__wrapper ${t}`),this.querySelector("i.fa-search")||(this.innerHTML+='<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'),Ue(this.querySelector("ul"),this.shadowRoot.querySelector("#search"))}}window.customElements.get("iam-filterlist")||window.customElements.define("iam-filterlist",Ye);const Ge={name:"Filter list"};function Xe(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-filterlist",null,[s.renderSlot(a.$slots,"default")])}const Ke=S(Ge,[["render",Xe]]),Je={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Zr).then(a=>{window.customElements.get("iam-header")||window.customElements.define("iam-header",a.default)}).catch(a=>{console.log(a.message)})})}},Qe=["image"],Ze=["innerHTML"];function ta(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-header",{image:e.image},[s.renderSlot(a.$slots,"breadcrumb"),e.title?(s.openBlock(),s.createElementBlock("h1",{key:0,innerHTML:e.title},null,8,Ze)):s.createCommentVNode("",!0),s.renderSlot(a.$slots,"default")],8,Qe)}const ea=S(Je,[["render",ta]]),aa=Object.assign({components:{},name:"Inline Edit",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ei).then(a=>{window.customElements.get("iam-inline-edit")||window.customElements.define("iam-inline-edit",a.default)}).catch(a=>{console.log(a.message)})})}},{emits:["save","autosave"],setup(a,{emit:t}){const e=t,o=s.ref(null);return s.onMounted(()=>{o.value.addEventListener("inline-edit-save",function(r){e("save",r)}),o.value.addEventListener("inline-edit-autosave",function(r){e("autosave",r)})}),(r,i)=>(s.openBlock(),s.createElementBlock("iam-inline-edit",{ref_key:"$component",ref:o},[s.renderSlot(r.$slots,"default")],512))}}),oa={name:"Multiselect",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ai).then(a=>{window.customElements.get("iam-multiselect")||window.customElements.define("iam-multiselect",a.default)}).catch(a=>{console.log(a.message)})})}};function ra(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-multiselect",null,[s.renderSlot(a.$slots,"default")])}const ia=S(oa,[["render",ra]]),na={__name:"MultiStep",setup(a){return s.onMounted(()=>{Promise.resolve().then(()=>ni).then(t=>{window.customElements.get("iam-multi-step")||window.customElements.define("iam-multi-step",t.default)}).catch(t=>{console.log(t.message)})}),(t,e)=>(s.openBlock(),s.createElementBlock("iam-multi-step",null,[s.renderSlot(t.$slots,"default")]))}},sa={name:"Menu",created(){this.$nextTick(function(){Promise.resolve().then(()=>li).then(a=>{window.customElements.get("iam-menu")||window.customElements.define("iam-menu",a.default)}).catch(a=>{console.log(a.message)})})}},la={ref:"wrapper"};function ca(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-menu",la,[s.renderSlot(a.$slots,"default")],512)}const da=S(sa,[["render",ca]]),ma={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ci).then(a=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",a.default)}).catch(a=>{console.log(a.message)})})},methods:{}},ua={ref:"wrapper"};function ha(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-nav",ua,[s.renderSlot(a.$slots,"default")],512)}const pa=S(ma,[["render",ha]]),ba={name:"Table",props:{items:{type:Array,required:!1},fields:{type:Array,required:!1}},computed:{cellHeading(){return a=>`${te(ee(a))}`}},created(){this.$nextTick(function(){Promise.resolve().then(()=>$i).then(a=>{window.customElements.get("iam-table")||window.customElements.define("iam-table",a.default)}).catch(a=>{console.log(a.message)}),Promise.resolve().then(()=>Ha).then(a=>{window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",a.default)}).catch(a=>{console.log(a.message)})})},updated(){}},ga={key:0},fa={key:0},va=["data-row-id"],ya=["innerHTML"];function wa(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-table",null,[s.renderSlot(a.$slots,"before"),e.fields?(s.openBlock(),s.createElementBlock("table",ga,[s.createElementVNode("thead",null,[s.createElementVNode("tr",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.fields,n=>(s.openBlock(),s.createElementBlock("th",{key:n.key},s.toDisplayString(i.cellHeading(n.key)),1))),128))])]),e.items?(s.openBlock(),s.createElementBlock("tbody",fa,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("tr",{key:c,"data-row-id":n.rowid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Object.fromEntries(Object.entries(n).filter(([m])=>m!=="rowid")),(m,l)=>(s.openBlock(),s.createElementBlock("td",{key:l,innerHTML:m},null,8,ya))),128))],8,va))),128))])):s.createCommentVNode("",!0)])):s.renderSlot(a.$slots,"default",{key:1})])}const O=S(ba,[["render",wa]]);let tt=O.props;tt.fields.required=!1;const _a={components:{Table:O,Input:V},data(){return{itemsData:[...this.items]}},methods:{submitForm:function(a){console.log(this);const t=new FormData(a.target);let e=new Date;const o=e.getFullYear();let r=e.getMonth()+1,i=e.getDate();i<10&&(i="0"+i),r<10&&(r="0"+r),e=i+"/"+r+"/"+o,this.itemsData.unshift({date_added:e,user:t.get("user"),note:t.get("addNote")}),this.$emit("formSubmitted",a)}},name:"NoteFeed",props:{user:{type:String,required:!0},...tt,title:{type:String,required:!1},method:{type:String,required:!1,default:"post"},action:{type:String,required:!1}}},ka={class:"container note-feed mb-2"},xa=["innerHTML"],Aa=["action","method"],La=["value"];function Sa(a,t,e,o,r,i){const n=s.resolveComponent("Table"),c=s.resolveComponent("Input");return s.openBlock(),s.createElementBlock("div",ka,[e.title?(s.openBlock(),s.createElementBlock("span",{key:0,class:"h3",innerHTML:e.title},null,8,xa)):s.createCommentVNode("",!0),s.createVNode(n,s.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:r.itemsData},a.$props,{class:"mb-0"}),null,16,["items"]),s.createElementVNode("form",{action:e.action,method:e.method,onSubmit:t[0]||(t[0]=s.withModifiers(m=>i.submitForm(...arguments),["prevent"]))},[s.createElementVNode("input",{type:"hidden",value:e.user,name:"user"},null,8,La),s.createVNode(c,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),t[1]||(t[1]=s.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1))],40,Aa)])}const Ea=S(_a,[["render",Sa]]);function qa(a){if(a.hasAttribute("data-type")&&a.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)),a.closest(".notification__holder")||t.appendChild(a)}if(a.setAttribute("role","alert"),a.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&(event.target.closest("[data-dismiss-button]")||event.target.matches("[data-dismiss-button]"))&&(t.preventDefault(),I(a))},!1),a.hasAttribute("data-timeout")){const t=a.getAttribute("data-timeout"),e=new $a(function(){I(a)},t);a.addEventListener("mouseenter",()=>{e.pause()}),a.addEventListener("mouseleave",()=>{e.resume()})}}function $a(a,t){let e,o,r=t;this.pause=function(){window.clearTimeout(e),r-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(e),e=window.setTimeout(a,r)},this.resume()}const I=function(a){a.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class Ma 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`,o=`@import "${t}/css/components/notification.css";`,r=`@import "${t}/css/components/notification.global.css";`,i=document.createElement("template");i.innerHTML=`
52
+ `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){const t=this.classList.toString();this.shadowRoot.querySelector(".list__wrapper").setAttribute("class",`list__wrapper ${t}`),this.querySelector("i.fa-search")||(this.innerHTML+='<i class="fa fa-light fa-search" aria-hidden="true" slot="icon"></i>'),Ue(this.querySelector("ul"),this.shadowRoot.querySelector("#search"))}}window.customElements.get("iam-filterlist")||window.customElements.define("iam-filterlist",Ye);const Ge={name:"Filter list"};function Xe(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-filterlist",null,[s.renderSlot(a.$slots,"default")])}const Ke=S(Ge,[["render",Xe]]),Je={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Zr).then(a=>{window.customElements.get("iam-header")||window.customElements.define("iam-header",a.default)}).catch(a=>{console.log(a.message)})})}},Qe=["image"],Ze=["innerHTML"];function ta(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-header",{image:e.image},[s.renderSlot(a.$slots,"breadcrumb"),e.title?(s.openBlock(),s.createElementBlock("h1",{key:0,innerHTML:e.title},null,8,Ze)):s.createCommentVNode("",!0),s.renderSlot(a.$slots,"default")],8,Qe)}const ea=S(Je,[["render",ta]]),aa=Object.assign({components:{},name:"Inline Edit",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ei).then(a=>{window.customElements.get("iam-inline-edit")||window.customElements.define("iam-inline-edit",a.default)}).catch(a=>{console.log(a.message)})})}},{emits:["save","autosave"],setup(a,{emit:t}){const e=t,o=s.ref(null);return s.onMounted(()=>{o.value.addEventListener("inline-edit-save",function(r){e("save",r)}),o.value.addEventListener("inline-edit-autosave",function(r){e("autosave",r)})}),(r,i)=>(s.openBlock(),s.createElementBlock("iam-inline-edit",{ref_key:"$component",ref:o},[s.renderSlot(r.$slots,"default")],512))}}),oa={name:"Multiselect",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ai).then(a=>{window.customElements.get("iam-multiselect")||window.customElements.define("iam-multiselect",a.default)}).catch(a=>{console.log(a.message)})})}};function ra(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-multiselect",null,[s.renderSlot(a.$slots,"default")])}const ia=S(oa,[["render",ra]]),na={__name:"MultiStep",setup(a){return s.onMounted(()=>{Promise.resolve().then(()=>ni).then(t=>{window.customElements.get("iam-multi-step")||window.customElements.define("iam-multi-step",t.default)}).catch(t=>{console.log(t.message)})}),(t,e)=>(s.openBlock(),s.createElementBlock("iam-multi-step",null,[s.renderSlot(t.$slots,"default")]))}},sa={name:"Menu",created(){this.$nextTick(function(){Promise.resolve().then(()=>li).then(a=>{window.customElements.get("iam-menu")||window.customElements.define("iam-menu",a.default)}).catch(a=>{console.log(a.message)})})}},la={ref:"wrapper"};function ca(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-menu",la,[s.renderSlot(a.$slots,"default")],512)}const da=S(sa,[["render",ca]]),ma={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ci).then(a=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",a.default)}).catch(a=>{console.log(a.message)})})},methods:{}},ua={ref:"wrapper"};function ha(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-nav",ua,[s.renderSlot(a.$slots,"default")],512)}const pa=S(ma,[["render",ha]]),ba={name:"Table",props:{items:{type:Array,required:!1},fields:{type:Array,required:!1}},computed:{cellHeading(){return a=>`${te(ee(a))}`}},created(){this.$nextTick(function(){Promise.resolve().then(()=>$i).then(a=>{window.customElements.get("iam-table")||window.customElements.define("iam-table",a.default)}).catch(a=>{console.log(a.message)}),Promise.resolve().then(()=>Ha).then(a=>{window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",a.default)}).catch(a=>{console.log(a.message)})})},updated(){}},ga={key:0},fa={key:0},va=["data-row-id"],ya=["innerHTML"];function wa(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-table",null,[s.renderSlot(a.$slots,"before"),e.fields?(s.openBlock(),s.createElementBlock("table",ga,[s.createElementVNode("thead",null,[s.createElementVNode("tr",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.fields,n=>(s.openBlock(),s.createElementBlock("th",{key:n.key},s.toDisplayString(i.cellHeading(n.key)),1))),128))])]),e.items?(s.openBlock(),s.createElementBlock("tbody",fa,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("tr",{key:c,"data-row-id":n.rowid},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(Object.fromEntries(Object.entries(n).filter(([m])=>m!=="rowid")),(m,l)=>(s.openBlock(),s.createElementBlock("td",{key:l,innerHTML:m},null,8,ya))),128))],8,va))),128))])):s.createCommentVNode("",!0)])):s.renderSlot(a.$slots,"default",{key:1})])}const O=S(ba,[["render",wa]]);let et=O.props;et.fields.required=!1;const _a={components:{Table:O,Input:V},data(){return{itemsData:[...this.items]}},methods:{submitForm:function(a){console.log(this);const t=new FormData(a.target);let e=new Date;const o=e.getFullYear();let r=e.getMonth()+1,i=e.getDate();i<10&&(i="0"+i),r<10&&(r="0"+r),e=i+"/"+r+"/"+o,this.itemsData.unshift({date_added:e,user:t.get("user"),note:t.get("addNote")}),this.$emit("formSubmitted",a)}},name:"NoteFeed",props:{user:{type:String,required:!0},...et,title:{type:String,required:!1},method:{type:String,required:!1,default:"post"},action:{type:String,required:!1}}},ka={class:"container note-feed mb-2"},xa=["innerHTML"],Aa=["action","method"],La=["value"];function Sa(a,t,e,o,r,i){const n=s.resolveComponent("Table"),c=s.resolveComponent("Input");return s.openBlock(),s.createElementBlock("div",ka,[e.title?(s.openBlock(),s.createElementBlock("span",{key:0,class:"h3",innerHTML:e.title},null,8,xa)):s.createCommentVNode("",!0),s.createVNode(n,s.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:r.itemsData},a.$props,{class:"mb-0"}),null,16,["items"]),s.createElementVNode("form",{action:e.action,method:e.method,onSubmit:t[0]||(t[0]=s.withModifiers(m=>i.submitForm(...arguments),["prevent"]))},[s.createElementVNode("input",{type:"hidden",value:e.user,name:"user"},null,8,La),s.createVNode(c,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),t[1]||(t[1]=s.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1))],40,Aa)])}const Ea=S(_a,[["render",Sa]]);function qa(a){if(a.hasAttribute("data-type")&&a.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)),a.closest(".notification__holder")||t.appendChild(a)}if(a.setAttribute("role","alert"),a.addEventListener("click",function(t){event&&event.target instanceof HTMLElement&&(event.target.closest("[data-dismiss-button]")||event.target.matches("[data-dismiss-button]"))&&(t.preventDefault(),I(a))},!1),a.hasAttribute("data-timeout")){const t=a.getAttribute("data-timeout"),e=new $a(function(){I(a)},t);a.addEventListener("mouseenter",()=>{e.pause()}),a.addEventListener("mouseleave",()=>{e.resume()})}}function $a(a,t){let e,o,r=t;this.pause=function(){window.clearTimeout(e),r-=new Date-o},this.resume=function(){o=new Date,window.clearTimeout(e),e=window.setTimeout(a,r)},this.resume()}const I=function(a){a.classList.add("d-none")};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Notification"});class Ma 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`,o=`@import "${t}/css/components/notification.css";`,r=`@import "${t}/css/components/notification.global.css";`,i=document.createElement("template");i.innerHTML=`
53
53
  <style>
54
54
  @import "${e}";
55
55
  ${o}
@@ -62,9 +62,9 @@
62
62
  <div class="notification__dismiss"></div>
63
63
  </div>
64
64
  `,this.shadowRoot.appendChild(i.content.cloneNode(!0)),document.getElementById("notificationHolder")||document.head.insertAdjacentHTML("beforeend",`<style id="notificationHolder">${r}</style>`)}connectedCallback(){var t,e,o,r,i;const n=this,c=this.hasAttribute("data-status")?this.getAttribute("data-status"):"white";if(this.hasAttribute("data-type")?this.classList.add(`bg-${c}`):this.classList.add(`colour-${c}`),!this.querySelector("i"))switch(c){case"danger":this.innerHTML+='<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"warning":this.innerHTML+='<i class="fa-solid fa-triangle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"success":this.innerHTML+='<i class="fa-solid fa-check-circle" aria-hidden="true" slot="icon"></i>';break;default:this.innerHTML+='<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>'}const m=this.querySelectorAll("a,button");Array.from(m).forEach(l=>{l.setAttribute("slot","btns"),l.classList.add("link")}),(m.length||this.hasAttribute("data-dismiss"))&&this.classList.add("notification--dismissable"),m.length?(r=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".notification__btns"))===null||r===void 0||r.classList.remove("empty"):(e=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(".notification__btns"))===null||e===void 0||e.classList.add("empty"),this.hasAttribute("data-dismiss")&&((i=this.shadowRoot.querySelector(".notification__dismiss"))===null||i===void 0||(i.innerHTML='<button data-dismiss-button part="dismiss-btn">Dismiss</button>'),this.shadowRoot.querySelector(".notification__dismiss [data-dismiss-button]").addEventListener("click",function(){I(n)},!1)),qa(this)}}const Ca={name:"Notification",props:{},created(){this.$nextTick(function(){window.customElements.get("iam-notification")||window.customElements.define("iam-notification",Ma)})}};function Ta(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-notification",null,[s.renderSlot(a.$slots,"default")])}const za=S(Ca,[["render",Ta]]);/*!
65
- * iamKey v7.2.1--beta1
65
+ * iamKey v7.2.1--beta2
66
66
  * Copyright 2022-2025 iamproperty
67
- */let et=class 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`,o=document.createElement("template");o.innerHTML=`
67
+ */let at=class 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`,o=document.createElement("template");o.innerHTML=`
68
68
  <style>
69
69
  @import "${e}";
70
70
  .m-0{margin:0 !important}.mx-0{margin-left:0 !important;margin-right:0 !important}.my-0{margin-top:0 !important;margin-bottom:0 !important}.mt-0{margin-top:0 !important}.me-0{margin-right:0 !important}.mb-0{margin-bottom:0 !important}.ms-0{margin-left:0 !important}.m-1{margin:0.5rem !important}.mx-1{margin-left:0.5rem !important;margin-right:0.5rem !important}.my-1{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.mt-1{margin-top:0.5rem !important}.me-1{margin-right:0.5rem !important}.mb-1{margin-bottom:0.5rem !important}.ms-1{margin-left:0.5rem !important}.m-2{margin:1rem !important}.mx-2{margin-left:1rem !important;margin-right:1rem !important}.my-2{margin-top:1rem !important;margin-bottom:1rem !important}.mt-2{margin-top:1rem !important}.me-2{margin-right:1rem !important}.mb-2{margin-bottom:1rem !important}.ms-2{margin-left:1rem !important}.m-3{margin:1.5rem !important}.mx-3{margin-left:1.5rem !important;margin-right:1.5rem !important}.my-3{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.mt-3{margin-top:1.5rem !important}.me-3{margin-right:1.5rem !important}.mb-3{margin-bottom:1.5rem !important}.ms-3{margin-left:1.5rem !important}.m-4{margin:2rem !important}.mx-4{margin-left:2rem !important;margin-right:2rem !important}.my-4{margin-top:2rem !important;margin-bottom:2rem !important}.mt-4{margin-top:2rem !important}.me-4{margin-right:2rem !important}.mb-4{margin-bottom:2rem !important}.ms-4{margin-left:2rem !important}.m-5{margin:3rem !important}.mx-5{margin-left:3rem !important;margin-right:3rem !important}.my-5{margin-top:3rem !important;margin-bottom:3rem !important}.mt-5{margin-top:3rem !important}.me-5{margin-right:3rem !important}.mb-5{margin-bottom:3rem !important}.ms-5{margin-left:3rem !important}.m-auto{margin:auto !important}.mx-auto{margin-right:auto !important;margin-left:auto !important}.my-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-auto{margin-top:auto !important}.me-auto{margin-right:auto !important}.mb-auto{margin-bottom:auto !important}.ms-auto{margin-left:auto !important}:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination:has(.prev:disabled):has(.next:disabled){display:none;padding:0}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:calc(3.25rem - 1em);line-height:calc(3.25rem - 1em);margin-left:-1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.pagination div:is(.page-jump,.per-page) div:has(>select):after{top:50%}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem;color:var(--colour-body)}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--pagination-link-color);color:var(--colour-hover)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--pagination-link-color);color:var(--colour-active)}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
@@ -105,8 +105,8 @@
105
105
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){const t=new URLSearchParams(window.location.search);this.hasAttribute("data-total")||this.setAttribute("data-total",15),this.hasAttribute("data-page")||this.setAttribute("data-page",t.has("page")?t.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",t.has("show")?t.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",this.getAttribute("data-show"));const e=this.shadowRoot.querySelector(".page-jump select"),o=this.shadowRoot.querySelector(".prev"),r=this.shadowRoot.querySelector(".next"),i=this.shadowRoot.querySelector(".per-page select"),n=this.shadowRoot.querySelector(".load-more");this.setup(),e.addEventListener("change",l=>{this.setAttribute("data-show",this.getAttribute("data-increment")),this.setAttribute("data-page",l.target.value)}),r.addEventListener("click",()=>{e.value=parseInt(e.value)+1,e.dispatchEvent(new Event("change"))}),o.addEventListener("click",()=>{e.value=parseInt(e.value)-1,e.dispatchEvent(new Event("change"))}),i.addEventListener("change",l=>{this.setAttribute("data-increment",l.target.value)});const c=parseInt(this.getAttribute("data-increment")),m=parseInt(this.getAttribute("data-show"));m>=parseInt(this.getAttribute("data-total"))&&n.remove(),n.addEventListener("click",()=>{const l=m+c;this.setAttribute("data-show",l),l>parseInt(this.getAttribute("data-total"))&&n.remove()})}setup(){const t=this.shadowRoot.querySelector(".pagination"),e=this.shadowRoot.querySelector(".page-jump select"),o=this.shadowRoot.querySelector(".prev"),r=this.shadowRoot.querySelector(".next"),i=this.shadowRoot.querySelector(".item-count"),n=this.shadowRoot.querySelector(".per-page select"),c=this.shadowRoot.querySelector(".total-pages"),m=parseInt(this.getAttribute("data-page")),l=parseInt(this.getAttribute("data-total")),d=parseInt(this.getAttribute("data-show")),u=parseInt(this.getAttribute("data-increment")),p=Math.ceil(l/u);l>d&&t.classList.remove("d-none");let h="";for(let b=1;b<=p;b++)h+=`<option value="${b}" ${b==m?"selected":""}>${b}</option>`;e.innerHTML=h,c.innerHTML=`of ${p}`,m==p?r.setAttribute("disabled","disabled"):r.removeAttribute("disabled"),m==1?o.setAttribute("disabled","disabled"):o.removeAttribute("disabled");const g=m==1?1:(m-1)*d+1,v=m==1?d:m*d;i.innerHTML=`${g} - ${v>l?l:v} of ${l} items`;const f=[15,25,40,50];u&&n.value!=u&&!f.includes(u)&&(n.innerHTML=`<option value="${u}">${u}</option>
106
106
  <option value="${u*2}">${u*2}</option>
107
107
  <option value="${u*3}">${u*3}</option>
108
- <option value="${u*4}">${u*4}</option>`),n.value=u}static get observedAttributes(){return["data-total","data-increment","data-page","data-show"]}attributeChangedCallback(t,e,o){switch(t){case"data-total":{e!=o&&this.setup();break}case"data-show":{e!=o&&(this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:o}})));break}case"data-increment":{e!=o&&(this.setAttribute("data-show",o),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:o}})));break}case"data-page":{e&&e!=o&&(this.setup(),console.log(o),this.dispatchEvent(new CustomEvent("update-page",{detail:{page:o}})));break}}}};const Ha=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"})),Ra={name:"Pagination",props:{},computed:{},created(){this.$nextTick(function(){window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",et)})},updated(){}};function Ba(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-pagination")}const ja=S(Ra,[["render",Ba]]),Na={components:{Input:V},name:"PropertySearchbar",props:{formaction:{type:String,required:!1},formmethod:{type:String,required:!1},location:{type:String,required:!1},locations:{type:Array,required:!1},distances:{type:Array,required:!1,default(){return[{value:"0.25",display:"+¼ mi"},{value:"0.5",display:"+½ mi"},{value:"1",display:"+1 mi"},{value:"2",display:"+2 mi"},{value:"3",display:"+3 mi"},{value:"4",display:"+4 mi"},{value:"5",display:"+5 mi"}]}},pricemin:{type:Array,required:!1,default(){return[{value:"0",display:"No min"},{value:"50000",display:"£50k min"},{value:"75000",display:"£75k min"},{value:"100000",display:"£100k min"},{value:"150000",display:"£150k min"},{value:"200000",display:"£200k min"},{value:"250000",display:"£250k min"}]}},pricemax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"50000",display:"£50k max"},{value:"75000",display:"£75k max"},{value:"100000",display:"£100k max"},{value:"150000",display:"£150k max"},{value:"200000",display:"£200k max"},{value:"250000",display:"£250k max"}]}},bedsmin:{type:Array,required:!1,default(){return[{value:"any",display:"No min"},{value:"0",display:"Studio min"},{value:"1",display:"1 bed min"},{value:"2",display:"2 beds min"},{value:"3",display:"3 beds min"},{value:"4",display:"4 beds min"},{value:"5",display:"5 beds min"},{value:"6",display:"6 beds min"}]}},bedsmax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"0",display:"Studio max"},{value:"1",display:"1 bed max"},{value:"2",display:"2 beds max"},{value:"3",display:"3 beds max"},{value:"4",display:"4 beds max"},{value:"5",display:"5 beds max"},{value:"6",display:"6 beds max"}]}},propertytypes:{type:Array,required:!1,default(){return[{value:"all",display:"Show all"},{value:"Bungalow",display:"Bungalow"},{value:"Character Property",display:"Character Property"},{value:"Commercial Property",display:"Commercial Property"},{value:"Flat / Apartment",display:"Flat / Apartment"},{value:"Garage / Parking",display:"Garage / Parking"},{value:"Guest House / Hotel",display:"Guest House / Hotel"},{value:"House",display:"House"},{value:"House / Flat Share",display:"House / Flat Share"},{value:"Land",display:"Land"},{value:"Mobile / Park Home",display:"Mobile / Park Home"},{value:"Private Halls",display:"Private Halls"},{value:"Retirement Property",display:"Retirement Property"}]}}},data(){return{locationSave:""}},methods:{locationKeyup:function(a){this.$emit("locationKeyup",a)}},computed:{locationSet:{get(){return this.locationSave?this.locationSave:this.location},set(a){this.locationSave=a,this.$emit("input",a)}},locationsList(){return()=>this.locations?this.locations:[{value:"Newcastle"}]}}},Fa={class:"container",ref:"wrapper"},Pa={class:"property-searchbar"},Da=["action","method"],Va={class:"col-12 col-md-3"},Oa={class:"col-12 col-md"},Ia={class:"row","data-input-range":""},Ua={class:"col-12 col-md"},Wa={class:"row","data-input-range":""},Ya={class:"col-12 col-md-2"};function Ga(a,t,e,o,r,i){const n=s.resolveComponent("Input");return s.openBlock(),s.createElementBlock("div",Fa,[s.renderSlot(a.$slots,"default"),s.createElementVNode("div",Pa,[s.createElementVNode("form",{class:"row",action:e.formaction,method:e.formmethod},[s.createElementVNode("fieldset",Va,[s.createVNode(n,{inputClass:"input--locations",modelValue:i.locationSet,"onUpdate:modelValue":t[0]||(t[0]=c=>i.locationSet=c),label:"Location",id:"location",options:i.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:t[1]||(t[1]=c=>i.locationKeyup(...arguments)),ref:"search"},null,8,["modelValue","options"]),s.createVNode(n,{class:"select--miles",label:"Miles",id:"miles",type:"select",options:e.distances},null,8,["options"])]),s.createElementVNode("fieldset",Oa,[t[2]||(t[2]=s.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1)),s.createElementVNode("div",Ia,[s.createVNode(n,{class:"col-6",label:"Minimum price",id:"price-min","data-min":"true",type:"select",options:e.pricemin},null,8,["options"]),s.createVNode(n,{class:"col-6",label:"Maximum price",id:"price-max","data-max":"true",type:"select",options:e.pricemax},null,8,["options"])])]),s.createElementVNode("fieldset",Ua,[t[3]||(t[3]=s.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1)),s.createElementVNode("div",Wa,[s.createVNode(n,{class:"col-6",label:"Minimum beds",id:"beds-min","data-min":"true",type:"select",options:e.bedsmin},null,8,["options"]),s.createVNode(n,{class:"col-6",label:"Maximum beds",id:"beds-max","data-max":"true",type:"select",options:e.bedsmax},null,8,["options"])])]),s.createElementVNode("fieldset",Ya,[s.createVNode(n,{label:"Property type",id:"property-type",type:"select",options:e.propertytypes},null,8,["options"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"col-12 col-md mw-md-fit-content d-flex property-searchbar__btn"},[s.createElementVNode("button",{class:"btn w-100 me-0",type:"submit",value:"submit"},"Search")],-1))],8,Da)]),s.renderSlot(a.$slots,"after")],512)}const Xa=S(Na,[["render",Ga]]),Ka={name:"Card",created(){this.$nextTick(function(){Promise.resolve().then(()=>Bi).then(a=>{window.customElements.get("iam-record-card")||window.customElements.define("iam-record-card",a.default)}).catch(a=>{console.log(a.message)})})}};function Ja(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-record-card",null,[s.renderSlot(a.$slots,"default")])}const Qa=S(Ka,[["render",Ja]]),Za={name:"Search",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Pi).then(a=>{window.customElements.get("iam-search")||window.customElements.define("iam-search",a.default)}).catch(a=>{console.log(a.message)})})}};function to(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-search",null,[s.renderSlot(a.$slots,"default")])}const eo=S(Za,[["render",to]]),ao={name:"Slider",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Di).then(a=>{window.customElements.get("iam-slider")||window.customElements.define("iam-slider",a.default)}).catch(a=>{console.log(a.message)})})}};function oo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-slider",null,[s.renderSlot(a.$slots,"default")])}const ro=S(ao,[["render",oo]]),io={name:"Snapshot",props:{items:{type:Array,required:!0}}},no={class:"container snapshot",ref:"wrapper"},so={class:"row"},lo=["href"],co={class:"lead snapshot__title"},mo={class:"stat"};function uo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",no,[s.renderSlot(a.$slots,"default"),s.createElementVNode("div",so,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("div",{class:"col",key:c},[n.link?(s.openBlock(),s.createElementBlock("a",{key:0,href:n.link},"View "+s.toDisplayString(n.title),9,lo)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(`snapshot__item ${n.bg?"bg-"+n.bg:""}`)},[s.createElementVNode("span",co,s.toDisplayString(n.title),1),s.createElementVNode("span",mo,s.toDisplayString(n.number),1)],2)]))),128))])],512)}const ho=S(io,[["render",uo]]),po={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},bo={class:"container"},go=["aria-label"],fo={key:0,class:"h6 stepper__start"},vo={class:"list-unstyled"},yo={class:"h6 stepper__end"};function wo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",bo,[s.createElementVNode("nav",{class:"stepper","aria-label":e.label?e.label:"Progress"},[e.label?(s.openBlock(),s.createElementBlock("span",fo,s.toDisplayString(e.label),1)):s.createCommentVNode("",!0),s.createElementVNode("ol",vo,[s.renderSlot(a.$slots,"default")]),s.createElementVNode("span",yo,s.toDisplayString(e.endlabel),1)],8,go)])}const _o=S(po,[["render",wo]]),ko={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},xo=["href","aria-current"],Ao={key:0,class:"visually-hidden"};function Lo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("li",null,[s.createElementVNode("a",{href:e.url,class:s.normalizeClass(`${e.status?"bg-"+e.status:""}${typeof e.current<"u"?"current":""}`),"aria-current":typeof e.current<"u"?"step":!1},[s.createElementVNode("span",null,[s.renderSlot(a.$slots,"default")]),e.status?(s.openBlock(),s.createElementBlock("em",Ao," - status: "+s.toDisplayString(e.status),1)):s.createCommentVNode("",!0)],10,xo)])}const So=S(ko,[["render",Lo]]),Eo={name:"Tabs",created(){this.$nextTick(function(){Promise.resolve().then(()=>Xi).then(a=>{window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",a.default)}).catch(a=>{console.log(a.message)})})}},qo={ref:"wrapper"};function $o(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-tabs",qo,[s.renderSlot(a.$slots,"default")],512)}const Mo=S(Eo,[["render",$o]]),Co={name:"Tab",props:{title:{type:String,required:!0},lazy:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},data(){return{show:!this.lazy,isDisabled:!!this.disabled}}},To={class:"tab"},zo=["innerHTML"];function Ho(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("details",To,[s.createElementVNode("summary",{innerHTML:e.title,class:s.normalizeClass({disabled:r.isDisabled})},null,10,zo),s.renderSlot(a.$slots,"default")])}const Ro=S(Co,[["render",Ho]]);function Bo(a){let t;const e=a.querySelector(".testimonial__images"),o=e.querySelectorAll("img").length;if(o==1)return!1;a.classList.add("testimonial--multi");const r=function(i){const n=a.querySelector(".btn-next"),c=a.querySelector(".btn-prev");n.setAttribute("data-go",i+1),c.setAttribute("data-go",i-1),n.removeAttribute("disabled"),c.removeAttribute("disabled"),i==1?c.setAttribute("disabled",!0):i==o&&n.setAttribute("disabled",!0)};e.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(function(){const i=e.scrollWidth,n=e.scrollHeight,c=e.scrollLeft,m=e.scrollTop;let l=Math.round(c/i*o)+1;c==0&&m!=0&&(l=Math.round(m/n*o)+1),a.setAttribute("data-show",l),r(l)},300)},!1),a.addEventListener("click",function(i){for(let n=i.target;n&&n!=this;n=n.parentNode)if(n.matches("[data-go]")){const c=parseInt(n.getAttribute("data-go"));let m=0,l=0;const d=e.scrollWidth,u=e.scrollHeight;d>u?l=Math.floor(d*((c-1)/o)):m=Math.floor(u*((c-1)/o)),e.scroll({top:m,left:l,behavior:"smooth"});break}},!1)}const jo={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){Bo(this.$refs.wrapper)}},No={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},Fo={class:"row"},Po={class:"col-md-5 position-relative"},Do={class:"testimonial__images"},Vo=["src"],Oo={class:"col-md-7"},Io={class:"testimonial__content"},Uo=["innerHTML"],Wo=["innerHTML"],Yo={class:"testimonial__after"};function Go(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",No,[s.createElementVNode("div",{class:s.normalizeClass("bg-"+e.background)},[s.createElementVNode("div",Fo,[s.createElementVNode("div",Po,[s.createElementVNode("div",Do,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("img",{key:c,src:n.image?n.image:"data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"",class:s.normalizeClass("h-100 w-100 object-cover"+(n.image?"":" opacity-0"))},null,10,Vo))),128))]),t[0]||(t[0]=s.createElementVNode("div",{class:"testimonial__controls"},[s.createElementVNode("button",{"data-go":"0",disabled:"",class:"btn-prev"},"Previous"),s.createElementVNode("button",{"data-go":"2",class:"btn-next"},"Next")],-1))]),s.createElementVNode("div",Oo,[t[1]||(t[1]=s.createElementVNode("h2",null,"What our customers think…",-1)),s.createElementVNode("div",Io,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("blockquote",{key:c,class:s.normalizeClass(n.class)},[s.createElementVNode("div",{innerHTML:n.quote},null,8,Uo),s.createElementVNode("cite",{innerHTML:n.cite},null,8,Wo)],2))),128))]),s.createElementVNode("div",Yo,[s.renderSlot(a.$slots,"default")])])]),t[2]||(t[2]=s.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1))],2)],512)}const Xo=S(jo,[["render",Go]]),Ko={name:"Timeline",props:{image:{type:String,required:!1}}},Jo={class:"timeline"},Qo={class:"timeline__content"},Zo=["src"];function tr(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",Jo,[s.createElementVNode("div",Qo,[s.renderSlot(a.$slots,"default")]),e.image?(s.openBlock(),s.createElementBlock("img",{key:0,src:e.image,alt:""},null,8,Zo)):s.createCommentVNode("",!0)])}const er=S(Ko,[["render",tr]]),ar={name:"Video card",created(){this.$nextTick(function(){Promise.resolve().then(()=>an).then(a=>{window.customElements.get("iam-video-card")||window.customElements.define("iam-video-card",a.default)}).catch(a=>{console.log(a.message)})})}};function or(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-video-card",null,[s.renderSlot(a.$slots,"default")])}const rr=S(ar,[["render",or]]);/*!
109
- * iamKey v7.2.1--beta1
108
+ <option value="${u*4}">${u*4}</option>`),n.value=u}static get observedAttributes(){return["data-total","data-increment","data-page","data-show"]}attributeChangedCallback(t,e,o){switch(t){case"data-total":{e!=o&&this.setup();break}case"data-show":{e!=o&&(this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:o}})));break}case"data-increment":{e!=o&&(this.setAttribute("data-show",o),this.setup(),this.dispatchEvent(new CustomEvent("update-show",{detail:{show:o}})));break}case"data-page":{e&&e!=o&&(this.setup(),console.log(o),this.dispatchEvent(new CustomEvent("update-page",{detail:{page:o}})));break}}}};const Ha=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),Ra={name:"Pagination",props:{},computed:{},created(){this.$nextTick(function(){window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",at)})},updated(){}};function Ba(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-pagination")}const ja=S(Ra,[["render",Ba]]),Na={components:{Input:V},name:"PropertySearchbar",props:{formaction:{type:String,required:!1},formmethod:{type:String,required:!1},location:{type:String,required:!1},locations:{type:Array,required:!1},distances:{type:Array,required:!1,default(){return[{value:"0.25",display:"+¼ mi"},{value:"0.5",display:"+½ mi"},{value:"1",display:"+1 mi"},{value:"2",display:"+2 mi"},{value:"3",display:"+3 mi"},{value:"4",display:"+4 mi"},{value:"5",display:"+5 mi"}]}},pricemin:{type:Array,required:!1,default(){return[{value:"0",display:"No min"},{value:"50000",display:"£50k min"},{value:"75000",display:"£75k min"},{value:"100000",display:"£100k min"},{value:"150000",display:"£150k min"},{value:"200000",display:"£200k min"},{value:"250000",display:"£250k min"}]}},pricemax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"50000",display:"£50k max"},{value:"75000",display:"£75k max"},{value:"100000",display:"£100k max"},{value:"150000",display:"£150k max"},{value:"200000",display:"£200k max"},{value:"250000",display:"£250k max"}]}},bedsmin:{type:Array,required:!1,default(){return[{value:"any",display:"No min"},{value:"0",display:"Studio min"},{value:"1",display:"1 bed min"},{value:"2",display:"2 beds min"},{value:"3",display:"3 beds min"},{value:"4",display:"4 beds min"},{value:"5",display:"5 beds min"},{value:"6",display:"6 beds min"}]}},bedsmax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"0",display:"Studio max"},{value:"1",display:"1 bed max"},{value:"2",display:"2 beds max"},{value:"3",display:"3 beds max"},{value:"4",display:"4 beds max"},{value:"5",display:"5 beds max"},{value:"6",display:"6 beds max"}]}},propertytypes:{type:Array,required:!1,default(){return[{value:"all",display:"Show all"},{value:"Bungalow",display:"Bungalow"},{value:"Character Property",display:"Character Property"},{value:"Commercial Property",display:"Commercial Property"},{value:"Flat / Apartment",display:"Flat / Apartment"},{value:"Garage / Parking",display:"Garage / Parking"},{value:"Guest House / Hotel",display:"Guest House / Hotel"},{value:"House",display:"House"},{value:"House / Flat Share",display:"House / Flat Share"},{value:"Land",display:"Land"},{value:"Mobile / Park Home",display:"Mobile / Park Home"},{value:"Private Halls",display:"Private Halls"},{value:"Retirement Property",display:"Retirement Property"}]}}},data(){return{locationSave:""}},methods:{locationKeyup:function(a){this.$emit("locationKeyup",a)}},computed:{locationSet:{get(){return this.locationSave?this.locationSave:this.location},set(a){this.locationSave=a,this.$emit("input",a)}},locationsList(){return()=>this.locations?this.locations:[{value:"Newcastle"}]}}},Fa={class:"container",ref:"wrapper"},Pa={class:"property-searchbar"},Da=["action","method"],Va={class:"col-12 col-md-3"},Oa={class:"col-12 col-md"},Ia={class:"row","data-input-range":""},Ua={class:"col-12 col-md"},Wa={class:"row","data-input-range":""},Ya={class:"col-12 col-md-2"};function Ga(a,t,e,o,r,i){const n=s.resolveComponent("Input");return s.openBlock(),s.createElementBlock("div",Fa,[s.renderSlot(a.$slots,"default"),s.createElementVNode("div",Pa,[s.createElementVNode("form",{class:"row",action:e.formaction,method:e.formmethod},[s.createElementVNode("fieldset",Va,[s.createVNode(n,{inputClass:"input--locations",modelValue:i.locationSet,"onUpdate:modelValue":t[0]||(t[0]=c=>i.locationSet=c),label:"Location",id:"location",options:i.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:t[1]||(t[1]=c=>i.locationKeyup(...arguments)),ref:"search"},null,8,["modelValue","options"]),s.createVNode(n,{class:"select--miles",label:"Miles",id:"miles",type:"select",options:e.distances},null,8,["options"])]),s.createElementVNode("fieldset",Oa,[t[2]||(t[2]=s.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1)),s.createElementVNode("div",Ia,[s.createVNode(n,{class:"col-6",label:"Minimum price",id:"price-min","data-min":"true",type:"select",options:e.pricemin},null,8,["options"]),s.createVNode(n,{class:"col-6",label:"Maximum price",id:"price-max","data-max":"true",type:"select",options:e.pricemax},null,8,["options"])])]),s.createElementVNode("fieldset",Ua,[t[3]||(t[3]=s.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1)),s.createElementVNode("div",Wa,[s.createVNode(n,{class:"col-6",label:"Minimum beds",id:"beds-min","data-min":"true",type:"select",options:e.bedsmin},null,8,["options"]),s.createVNode(n,{class:"col-6",label:"Maximum beds",id:"beds-max","data-max":"true",type:"select",options:e.bedsmax},null,8,["options"])])]),s.createElementVNode("fieldset",Ya,[s.createVNode(n,{label:"Property type",id:"property-type",type:"select",options:e.propertytypes},null,8,["options"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"col-12 col-md mw-md-fit-content d-flex property-searchbar__btn"},[s.createElementVNode("button",{class:"btn w-100 me-0",type:"submit",value:"submit"},"Search")],-1))],8,Da)]),s.renderSlot(a.$slots,"after")],512)}const Xa=S(Na,[["render",Ga]]),Ka={name:"Card",created(){this.$nextTick(function(){Promise.resolve().then(()=>Bi).then(a=>{window.customElements.get("iam-record-card")||window.customElements.define("iam-record-card",a.default)}).catch(a=>{console.log(a.message)})})}};function Ja(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-record-card",null,[s.renderSlot(a.$slots,"default")])}const Qa=S(Ka,[["render",Ja]]),Za={name:"Search",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Pi).then(a=>{window.customElements.get("iam-search")||window.customElements.define("iam-search",a.default)}).catch(a=>{console.log(a.message)})})}};function to(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-search",null,[s.renderSlot(a.$slots,"default")])}const eo=S(Za,[["render",to]]),ao={name:"Slider",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Di).then(a=>{window.customElements.get("iam-slider")||window.customElements.define("iam-slider",a.default)}).catch(a=>{console.log(a.message)})})}};function oo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-slider",null,[s.renderSlot(a.$slots,"default")])}const ro=S(ao,[["render",oo]]),io={name:"Snapshot",props:{items:{type:Array,required:!0}}},no={class:"container snapshot",ref:"wrapper"},so={class:"row"},lo=["href"],co={class:"lead snapshot__title"},mo={class:"stat"};function uo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",no,[s.renderSlot(a.$slots,"default"),s.createElementVNode("div",so,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("div",{class:"col",key:c},[n.link?(s.openBlock(),s.createElementBlock("a",{key:0,href:n.link},"View "+s.toDisplayString(n.title),9,lo)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(`snapshot__item ${n.bg?"bg-"+n.bg:""}`)},[s.createElementVNode("span",co,s.toDisplayString(n.title),1),s.createElementVNode("span",mo,s.toDisplayString(n.number),1)],2)]))),128))])],512)}const ho=S(io,[["render",uo]]),po={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},bo={class:"container"},go=["aria-label"],fo={key:0,class:"h6 stepper__start"},vo={class:"list-unstyled"},yo={class:"h6 stepper__end"};function wo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",bo,[s.createElementVNode("nav",{class:"stepper","aria-label":e.label?e.label:"Progress"},[e.label?(s.openBlock(),s.createElementBlock("span",fo,s.toDisplayString(e.label),1)):s.createCommentVNode("",!0),s.createElementVNode("ol",vo,[s.renderSlot(a.$slots,"default")]),s.createElementVNode("span",yo,s.toDisplayString(e.endlabel),1)],8,go)])}const _o=S(po,[["render",wo]]),ko={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},xo=["href","aria-current"],Ao={key:0,class:"visually-hidden"};function Lo(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("li",null,[s.createElementVNode("a",{href:e.url,class:s.normalizeClass(`${e.status?"bg-"+e.status:""}${typeof e.current<"u"?"current":""}`),"aria-current":typeof e.current<"u"?"step":!1},[s.createElementVNode("span",null,[s.renderSlot(a.$slots,"default")]),e.status?(s.openBlock(),s.createElementBlock("em",Ao," - status: "+s.toDisplayString(e.status),1)):s.createCommentVNode("",!0)],10,xo)])}const So=S(ko,[["render",Lo]]),Eo={name:"Tabs",created(){this.$nextTick(function(){Promise.resolve().then(()=>Xi).then(a=>{window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",a.default)}).catch(a=>{console.log(a.message)})})}},qo={ref:"wrapper"};function $o(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-tabs",qo,[s.renderSlot(a.$slots,"default")],512)}const Mo=S(Eo,[["render",$o]]),Co={name:"Tab",props:{title:{type:String,required:!0},lazy:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},data(){return{show:!this.lazy,isDisabled:!!this.disabled}}},To={class:"tab"},zo=["innerHTML"];function Ho(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("details",To,[s.createElementVNode("summary",{innerHTML:e.title,class:s.normalizeClass({disabled:r.isDisabled})},null,10,zo),s.renderSlot(a.$slots,"default")])}const Ro=S(Co,[["render",Ho]]);function Bo(a){let t;const e=a.querySelector(".testimonial__images"),o=e.querySelectorAll("img").length;if(o==1)return!1;a.classList.add("testimonial--multi");const r=function(i){const n=a.querySelector(".btn-next"),c=a.querySelector(".btn-prev");n.setAttribute("data-go",i+1),c.setAttribute("data-go",i-1),n.removeAttribute("disabled"),c.removeAttribute("disabled"),i==1?c.setAttribute("disabled",!0):i==o&&n.setAttribute("disabled",!0)};e.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(function(){const i=e.scrollWidth,n=e.scrollHeight,c=e.scrollLeft,m=e.scrollTop;let l=Math.round(c/i*o)+1;c==0&&m!=0&&(l=Math.round(m/n*o)+1),a.setAttribute("data-show",l),r(l)},300)},!1),a.addEventListener("click",function(i){for(let n=i.target;n&&n!=this;n=n.parentNode)if(n.matches("[data-go]")){const c=parseInt(n.getAttribute("data-go"));let m=0,l=0;const d=e.scrollWidth,u=e.scrollHeight;d>u?l=Math.floor(d*((c-1)/o)):m=Math.floor(u*((c-1)/o)),e.scroll({top:m,left:l,behavior:"smooth"});break}},!1)}const jo={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){Bo(this.$refs.wrapper)}},No={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},Fo={class:"row"},Po={class:"col-md-5 position-relative"},Do={class:"testimonial__images"},Vo=["src"],Oo={class:"col-md-7"},Io={class:"testimonial__content"},Uo=["innerHTML"],Wo=["innerHTML"],Yo={class:"testimonial__after"};function Go(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",No,[s.createElementVNode("div",{class:s.normalizeClass("bg-"+e.background)},[s.createElementVNode("div",Fo,[s.createElementVNode("div",Po,[s.createElementVNode("div",Do,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("img",{key:c,src:n.image?n.image:"data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"",class:s.normalizeClass("h-100 w-100 object-cover"+(n.image?"":" opacity-0"))},null,10,Vo))),128))]),t[0]||(t[0]=s.createElementVNode("div",{class:"testimonial__controls"},[s.createElementVNode("button",{"data-go":"0",disabled:"",class:"btn-prev"},"Previous"),s.createElementVNode("button",{"data-go":"2",class:"btn-next"},"Next")],-1))]),s.createElementVNode("div",Oo,[t[1]||(t[1]=s.createElementVNode("h2",null,"What our customers think…",-1)),s.createElementVNode("div",Io,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(n,c)=>(s.openBlock(),s.createElementBlock("blockquote",{key:c,class:s.normalizeClass(n.class)},[s.createElementVNode("div",{innerHTML:n.quote},null,8,Uo),s.createElementVNode("cite",{innerHTML:n.cite},null,8,Wo)],2))),128))]),s.createElementVNode("div",Yo,[s.renderSlot(a.$slots,"default")])])]),t[2]||(t[2]=s.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1))],2)],512)}const Xo=S(jo,[["render",Go]]),Ko={name:"Timeline",props:{image:{type:String,required:!1}}},Jo={class:"timeline"},Qo={class:"timeline__content"},Zo=["src"];function tr(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("div",Jo,[s.createElementVNode("div",Qo,[s.renderSlot(a.$slots,"default")]),e.image?(s.openBlock(),s.createElementBlock("img",{key:0,src:e.image,alt:""},null,8,Zo)):s.createCommentVNode("",!0)])}const er=S(Ko,[["render",tr]]),ar={name:"Video card",created(){this.$nextTick(function(){Promise.resolve().then(()=>an).then(a=>{window.customElements.get("iam-video-card")||window.customElements.define("iam-video-card",a.default)}).catch(a=>{console.log(a.message)})})}};function or(a,t,e,o,r,i){return s.openBlock(),s.createElementBlock("iam-video-card",null,[s.renderSlot(a.$slots,"default")])}const rr=S(ar,[["render",or]]);/*!
109
+ * iamKey v7.2.1--beta2
110
110
  * Copyright 2022-2025 iamproperty
111
111
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class ir extends HTMLElement{constructor(){var t;super(),this.attachShadow({mode:"open"});const e=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"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
112
112
  <style>
@@ -124,9 +124,9 @@
124
124
  </style>
125
125
  <slot></slot>
126
126
  `,(t=this.shadowRoot)===null||t===void 0||t.appendChild(r.content.cloneNode(!0))}connectedCallback(){if(!this.classList.contains("accordion--keep-open")){const t=this.querySelectorAll(":scope > details");t.forEach(e=>{e.addEventListener("toggle",()=>{t.forEach(o=>{o!==e&&e.hasAttribute("open")&&o.removeAttribute("open")})})})}}}const nr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"}));/*!
127
- * iamKey v7.2.1--beta1
127
+ * iamKey v7.2.1--beta2
128
128
  * Copyright 2022-2025 iamproperty
129
- */const sr=a=>(Array.from(a.querySelectorAll("dialog[open]")).forEach(t=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),at(t))}),a.addEventListener("click",t=>{if(t.target.tagName=="IAM-ACTIONBAR")return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){const e=t.target.closest("[data-modal]"),o=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),r=document.querySelector(`dialog#${o}`);if(at(r),r.showModal(),r.focus(),!r.querySelector("iam-multi-step")){const i=r.offsetWidth;r.setAttribute("style",`max-width: ${i}px;`)}Array.from(r.querySelectorAll("[data-duplicate]")).forEach(i=>{const n=i.getAttribute("data-duplicate"),c=document.getElementById(n);if(i.checked!=c.checked){i.checked=c.checked;const m=new Event("change");i.dispatchEvent(m)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:o})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){const e=t.target.closest("dialog[open]");t.preventDefault(),e.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(r=>{r.classList.remove("active")});const o=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:e.id}});t.target.dispatchEvent(o),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){const e=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(o=>{o.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){let e=t.target.closest("dialog[open]");if(window.getComputedStyle(e).display==="contents"&&(e=e.parentNode.closest("dialog[open]")),!e.classList.contains("dialog--transactional")&&!e.classList.contains("dialog--acknowledgement")){const o=e.getBoundingClientRect();(t.clientX<o.left||t.clientX>o.right||t.clientY<o.top||t.clientY>o.bottom)&&(t.target.closest("dialog *")||e.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();const e=t.target.closest(".dialog__wrapper > button"),o=e.parentNode;let r="openPopover";const i=o.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=i&&e.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(l=>{l.removeAttribute("aria-expanded")}),i.hasAttribute("open"))i.close(),r="closePopover",i.removeAttribute("style"),e.removeAttribute("aria-expanded");else{i.show(),e.setAttribute("aria-expanded",!0);const l=e.getBoundingClientRect();let d=l.top,u=l.left;if(e.closest("iam-table")){const p=e.closest("iam-table").parentNode.getBoundingClientRect();d-=p.top,u-=p.left}i.classList.contains("dialog--fix")&&i.setAttribute("style",`position:fixed;top: ${d}px; left: ${u}px; margin: 3rem 0 0 0;`)}let n=i.getBoundingClientRect();const c=n.bottom-window.scrollY,m=window.innerHeight-window.scrollY;if(c>m){const l=i.hasAttribute("style")?i.getAttribute("style")+" ":"";i.setAttribute("style",l+"transform: translate(0, calc(-100% - 4rem))"),n=i.getBoundingClientRect(),n.top-window.scrollY<100&&i.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:r,id:e.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(e=>{e.removeAttribute("aria-expanded")}))}),null),at=a=>{if(!a.querySelector(":scope .mh-lg")&&!a.querySelector("iam-multi-step")){a.innerHTML=`<div class="mh-lg">${a.innerHTML}</div>`;const t=a.querySelector(".mh-lg"),e=a.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(e){const o=e.previousSibling;t.before(e),o&&e.before(o)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function ot(a,t){a&&t=="all"?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!0,a.querySelector("label").textContent="Select all"):a&&t==0?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!1,a.querySelector("label").textContent="Select all"):a&&t?(a.querySelector("input").indeterminate=!0,a.querySelector("input").checked=!1,a.querySelector("label").textContent=`${t} item${t>1?"s":""} selected`):a&&(a.querySelector("input").checked=!1,a.querySelector("input").indeterminate=!1,a.querySelector("label").textContent="Select all")}const lr=Object.freeze(Object.defineProperty({__proto__:null,default:class 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`,o=document.createElement("template");o.innerHTML=`
129
+ */const sr=a=>(Array.from(a.querySelectorAll("dialog[open]")).forEach(t=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),ot(t))}),a.addEventListener("click",t=>{if(t.target.tagName=="IAM-ACTIONBAR")return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){const e=t.target.closest("[data-modal]"),o=e.hasAttribute("data-modal")?e.getAttribute("data-modal"):e.getAttribute("data-filter"),r=document.querySelector(`dialog#${o}`);if(ot(r),r.showModal(),r.focus(),!r.querySelector("iam-multi-step")){const i=r.offsetWidth;r.setAttribute("style",`max-width: ${i}px;`)}Array.from(r.querySelectorAll("[data-duplicate]")).forEach(i=>{const n=i.getAttribute("data-duplicate"),c=document.getElementById(n);if(i.checked!=c.checked){i.checked=c.checked;const m=new Event("change");i.dispatchEvent(m)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:o})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){const e=t.target.closest("dialog[open]");t.preventDefault(),e.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(r=>{r.classList.remove("active")});const o=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:e.id}});t.target.dispatchEvent(o),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){const e=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(o=>{o.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){let e=t.target.closest("dialog[open]");if(window.getComputedStyle(e).display==="contents"&&(e=e.parentNode.closest("dialog[open]")),!e.classList.contains("dialog--transactional")&&!e.classList.contains("dialog--acknowledgement")){const o=e.getBoundingClientRect();(t.clientX<o.left||t.clientX>o.right||t.clientY<o.top||t.clientY>o.bottom)&&(t.target.closest("dialog *")||e.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:e.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();const e=t.target.closest(".dialog__wrapper > button"),o=e.parentNode;let r="openPopover";const i=o.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=i&&e.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(l=>{l.removeAttribute("aria-expanded")}),i.hasAttribute("open"))i.close(),r="closePopover",i.removeAttribute("style"),e.removeAttribute("aria-expanded");else{i.show(),e.setAttribute("aria-expanded",!0);const l=e.getBoundingClientRect();let d=l.top,u=l.left;if(e.closest("iam-table")){const p=e.closest("iam-table").parentNode.getBoundingClientRect();d-=p.top,u-=p.left}i.classList.contains("dialog--fix")&&i.setAttribute("style",`position:fixed;top: ${d}px; left: ${u}px; margin: 3rem 0 0 0;`)}let n=i.getBoundingClientRect();const c=n.bottom-window.scrollY,m=window.innerHeight-window.scrollY;if(c>m){const l=i.hasAttribute("style")?i.getAttribute("style")+" ":"";i.setAttribute("style",l+"transform: translate(0, calc(-100% - 4rem))"),n=i.getBoundingClientRect(),n.top-window.scrollY<100&&i.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:r,id:e.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(e=>{e.removeAttribute("aria-expanded")}))}),null),ot=a=>{if(!a.querySelector(":scope .mh-lg")&&!a.querySelector("iam-multi-step")){a.innerHTML=`<div class="mh-lg">${a.innerHTML}</div>`;const t=a.querySelector(".mh-lg"),e=a.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(e){const o=e.previousSibling;t.before(e),o&&e.before(o)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function rt(a,t){a&&t=="all"?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!0,a.querySelector("label").textContent="Select all"):a&&t==0?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!1,a.querySelector("label").textContent="Select all"):a&&t?(a.querySelector("input").indeterminate=!0,a.querySelector("input").checked=!1,a.querySelector("label").textContent=`${t} item${t>1?"s":""} selected`):a&&(a.querySelector("input").checked=!1,a.querySelector("input").indeterminate=!1,a.querySelector("label").textContent="Select all")}const lr=Object.freeze(Object.defineProperty({__proto__:null,default:class 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`,o=document.createElement("template");o.innerHTML=`
130
130
  <style>
131
131
  @import "${e}";
132
132
  .m-0{margin:0 !important}.mx-0{margin-left:0 !important;margin-right:0 !important}.my-0{margin-top:0 !important;margin-bottom:0 !important}.mt-0{margin-top:0 !important}.me-0{margin-right:0 !important}.mb-0{margin-bottom:0 !important}.ms-0{margin-left:0 !important}.m-1{margin:0.5rem !important}.mx-1{margin-left:0.5rem !important;margin-right:0.5rem !important}.my-1{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.mt-1{margin-top:0.5rem !important}.me-1{margin-right:0.5rem !important}.mb-1{margin-bottom:0.5rem !important}.ms-1{margin-left:0.5rem !important}.m-2{margin:1rem !important}.mx-2{margin-left:1rem !important;margin-right:1rem !important}.my-2{margin-top:1rem !important;margin-bottom:1rem !important}.mt-2{margin-top:1rem !important}.me-2{margin-right:1rem !important}.mb-2{margin-bottom:1rem !important}.ms-2{margin-left:1rem !important}.m-3{margin:1.5rem !important}.mx-3{margin-left:1.5rem !important;margin-right:1.5rem !important}.my-3{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.mt-3{margin-top:1.5rem !important}.me-3{margin-right:1.5rem !important}.mb-3{margin-bottom:1.5rem !important}.ms-3{margin-left:1.5rem !important}.m-4{margin:2rem !important}.mx-4{margin-left:2rem !important;margin-right:2rem !important}.my-4{margin-top:2rem !important;margin-bottom:2rem !important}.mt-4{margin-top:2rem !important}.me-4{margin-right:2rem !important}.mb-4{margin-bottom:2rem !important}.ms-4{margin-left:2rem !important}.m-5{margin:3rem !important}.mx-5{margin-left:3rem !important;margin-right:3rem !important}.my-5{margin-top:3rem !important;margin-bottom:3rem !important}.mt-5{margin-top:3rem !important}.me-5{margin-right:3rem !important}.mb-5{margin-bottom:3rem !important}.ms-5{margin-left:3rem !important}.m-auto{margin:auto !important}.mx-auto{margin-right:auto !important;margin-left:auto !important}.my-auto{margin-top:auto !important;margin-bottom:auto !important}.mt-auto{margin-top:auto !important}.me-auto{margin-right:auto !important}.mb-auto{margin-bottom:auto !important}.ms-auto{margin-left:auto !important}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}:host{background-color:#fcfcfc}.actionbar__wrapper{position:relative;z-index:10;height:4.25rem;container-type:inline-size}.views,.selectall,slot[name=selectall]{display:block;position:absolute !important;top:50%;left:1.5rem;margin-left:0;transform:translate(0, -50%);z-index:10}@media screen and (min-width: 36em){.views,.selectall,slot[name=selectall]{left:2rem}}.views .btn-action:not(:last-child),.selectall .btn-action:not(:last-child),slot[name=selectall] .btn-action:not(:last-child){margin-right:0.25rem !important}.selectall,slot[name=selectall]{width:2.5rem;overflow:hidden}.selectall label,slot[name=selectall] label{height:2.5rem}@media screen and (min-width: 36em){.selectall,slot[name=selectall]{width:auto;overflow:visible}}.actionbar [data-search]{display:none}:host([data-search]) .actionbar [data-search]{display:block;margin:0 0 0 1rem}:is(.actionbar,.actionbar--selected,.actionbar--search){border-top-left-radius:var(--actionbar-radius, 0.625rem);border-top-right-radius:var(--actionbar-radius, 0.625rem);padding:0 1.5rem;flex-wrap:nowrap;justify-content:flex-end;align-items:center;height:4.25rem;inset:0}@supports selector(:has(*)){:is(.actionbar,.actionbar--selected,.actionbar--search){position:absolute}}@container (width > 23.4375em){:is(.actionbar,.actionbar--selected,.actionbar--search){padding:0 2rem}}.actionbar{display:flex}.actionbar--selected{background-color:var(--colour-canvas);pointer-events:none;display:flex}@media screen and (prefers-color-scheme: light){.actionbar--selected{background-color:#e6eaec}}@supports selector(:has(*)){.actionbar--selected{opacity:0}}.actionbar--search{background-color:var(--colour-canvas);display:flex;z-index:2;position:relative;opacity:0;pointer-events:none}@media screen and (prefers-color-scheme: light){.actionbar--search{background-color:#e6eaec}}.actionbar{opacity:var(--selectall-actionbar-opacity, 1);pointer-events:var(--selectall-actionbar-pe, all)}.actionbar--selected{opacity:var(--selectall-opacity, 0);pointer-events:var(--selectall-pe, none)}.selectall:has(input:checked)~.actionbar,.selectall:has(input:indeterminate)~.actionbar{opacity:0;pointer-events:none}.selectall:has(input:checked)~.actionbar--selected,.selectall:has(input:indeterminate)~.actionbar--selected{opacity:1;pointer-events:all}.actionbar--search.show{opacity:1;pointer-events:all}.actionbar__wrapper:has(.actionbar--search.show)>*:not(.actionbar--search.show){opacity:0;pointer-events:none}::slotted(.btn){margin-top:0 !important;margin-bottom:0 !important;margin-left:1rem !important;margin-right:0 !important}::slotted(.btn:not(.btn-action)){order:2}::slotted(:not([slot])){align-self:center !important;margin-block:0}::slotted([data-single]){pointer-events:none;opacity:.5}:host([data-selected="1"]) ::slotted([data-single]){pointer-events:all;opacity:1}::slotted(hr){height:2rem;color:#9d9d9d !important;width:1px;display:none;margin-left:1rem !important}@container (width > 48em){::slotted(hr){display:block}}.safe-area{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;width:13.125rem;overflow:visible;position:relative}@container (width > 23.4375em){.safe-area{width:28.125rem}}@container (width > 48em){.safe-area{width:46.875rem}}.safe-area .body{display:contents}:host([data-large-safe-area]) .safe-area{width:16.25rem}@container (width > 23.4375em){:host([data-large-safe-area]) .safe-area{width:38.75rem}}@container (width > 48em){:host([data-large-safe-area]) .safe-area{width:65.5rem}}:host([data-switchviews]) .safe-area{width:9rem}::slotted(.btn-compact[slot=selected-overflow]),::slotted(.btn-compact[slot=overflow]){max-width:none !important;text-indent:0 !important;width:auto !important;text-align:left !important;padding-left:0 !important;background:none !important;border:none !important}::slotted(.btn-compact[slot=selected-overflow]):before,::slotted(.btn-compact[slot=overflow]):before{position:static !important;line-height:inherit !important}.dialog__wrapper.dialog-overflow{margin-left:.5rem;margin-right:-0.5rem}.actionbar--search .btn{margin:0;margin-left:-0.75rem !important;margin-right:auto !important}.search-wrapper{width:calc(100% - 3.25rem);max-width:21.875rem !important;margin:0 !important}@container (width > 48em){.search-wrapper{max-width:28.125rem !important}}.search-wrapper input{padding-top:0.5rem;padding-bottom:0.5rem;min-height:2.5rem !important;max-height:2.5rem !important}.search-wrapper :is(.prefix,.suffix){padding:0.5rem !important;min-height:2.5rem !important;max-height:2.5rem !important;min-width:2.5rem !important;max-width:2.5rem !important;line-height:1.5rem !important;pointer-events:all !important}.filter-columns,.checklist-btns{display:none}:host([data-filter-columns]) .filter-columns{display:block}:host([data-filter-columns-save]) .filter-columns{display:block}:host([data-filter-columns-save]) .checklist-btns{display:block;text-align:right;padding-top:.5rem}:host([data-filter-columns-save]) .checklist-btns #saveColumns{margin-left:.25rem}:host([data-filter-columns-save]) .checklist-btns #saveColumns:not(:hover,:focus,:active){background-color:var(--colour-warning)}:host([data-filter-columns-save]) .checklist-btns #cancelColumns:not(:hover,:focus,:active){border-color:var(--colour-border)}.fa-table-columns:has(+dialog input:not(:checked)){overflow:visible;text-indent:-200vw}.fa-table-columns:has(+dialog input:not(:checked)):after{content:" ";display:block;position:absolute;top:0;right:0;background-color:var(--colour-info);height:1rem;width:1rem;border-radius:50%}:host([data-filter-columns-save]) .fa-table-columns:after{display:none !important}:host([data-filter-columns-save][data-hide-col1]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col2]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col3]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col4]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col5]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col6]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col7]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col8]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col9]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col10]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col11]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col12]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col13]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col14]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col15]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col16]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col17]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col18]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col19]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col20]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col21]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col22]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col23]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col24]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col25]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col26]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col27]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col28]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col29]) .fa-table-columns:after{display:block !important}:host([data-filter-columns-save][data-hide-col30]) .fa-table-columns:after{display:block !important}/*# sourceMappingURL=assets/css/components/actionbar.component.css.map */
@@ -190,7 +190,7 @@
190
190
  </div>
191
191
  </div>
192
192
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("actionbarGlobal")||document.head.insertAdjacentHTML("beforeend",`<style id="actionbarGlobal">iam-actionbar{--actionbar-radius: 0;background-color:#fcfcfc;display:block;border-top-left-radius:0.625rem;border-top-right-radius:0.625rem}@media screen and (prefers-color-scheme: dark){iam-actionbar{background-color:var(--colour-canvas)}}main>.actionbar__sticky-wrapper>.actionbar__sticky>iam-actionbar{border-radius:0.5rem;margin:var(--container-padding);margin-bottom:2rem;box-shadow:2px 6px 12px rgba(0,0,0,.2)}main>.actionbar__sticky-wrapper>.actionbar__sticky>iam-actionbar:first-child{padding-top:0}@media screen and (prefers-color-scheme: light){main>.actionbar__sticky-wrapper>.actionbar__sticky>iam-actionbar{background-color:#e6eaec}}@media screen and (min-width: 36em){main>.actionbar__sticky-wrapper>.actionbar__sticky>iam-actionbar{box-shadow:none;margin-inline:0;border-radius:0}}@media screen and (min-width: 62em){main>.actionbar__sticky-wrapper>.actionbar__sticky>iam-actionbar{padding-inline:calc(50% - 34.75rem - 2rem)}}iam-actionbar~:is([data-view=square],[data-view=list],[data-view=small]){display:none}iam-actionbar[data-view=square]~[data-view=square]{display:block}iam-actionbar[data-view=list]~[data-view=list]{display:block}iam-actionbar[data-view=small]~[data-view=small]{display:block}iam-actionbar .actionbar__text{font-size:1.125rem;line-height:2.5rem;color:var(--colour-heading);display:inline-block}iam-actionbar .dialog__wrapper[slot=selected-overflow]>button,iam-actionbar .dialog__wrapper[slot=overflow]>button{background:none;border:none;text-indent:0;width:100%;display:block;max-width:100%;text-align:left;padding:0}iam-actionbar .dialog__wrapper[slot=selected-overflow]>button:before,iam-actionbar .dialog__wrapper[slot=overflow]>button:before{position:static}iam-actionbar button[slot=overflow],iam-actionbar button[slot=selected-overflow]{background:none;border:none;margin:0 !important}iam-actionbar .dialog__wrapper[slot=selected-overflow] dialog[open],iam-actionbar .dialog__wrapper[slot=overflow] dialog[open]{display:contents}iam-actionbar:has(.selectall input:checked){--selectall-opacity: 1;--selectall-pe: all;--selectall-actionbar-opactiy: 0;--selectall-action-pe: none}/*# sourceMappingURL=assets/css/components/actionbar.global.css.map */
193
- </style>`)}connectedCallback(){var t,e,o,r,i,n,c,m,l,d;const u=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(".actionbar__wrapper"),p=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelector(".checklists");if(this.hasAttribute("data-selectall")){u==null||u.insertAdjacentHTML("afterbegin",'<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');const b=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".selectall");this.hasAttribute("data-selected")&&ot(b,this.getAttribute("data-selected")),b==null||b.addEventListener("change",w=>{var _;w&&w.target instanceof HTMLElement&&w.target.closest("input")&&(!((_=w.target.closest("input"))===null||_===void 0)&&_.checked?this.setAttribute("data-selected","all"):this.setAttribute("data-selected","0"))});const y=this.querySelector("button[data-cancel]");y&&y.addEventListener("click",()=>{this.setAttribute("data-selected","0")})}if(this.hasAttribute("data-select-watch")){const b=document.getElementById(this.getAttribute("data-select-watch"));b==null||b.setAttribute("data-select-container","true"),Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(y=>{var w;(w=y.parentElement)===null||w===void 0||w.setAttribute("slot","checkbox")}),b==null||b.addEventListener("change",y=>{if(y&&y.target instanceof HTMLElement&&y.target.closest('[type="checkbox"]')){const w=b.querySelectorAll('input[type="checkbox"]').length,_=b.querySelectorAll('input[type="checkbox"]:checked').length;this.setAttribute("data-selected",w==_?"all":String(_)),_?Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(x=>{var k;x.closest("iam-card")&&((k=x.closest("iam-card"))===null||k===void 0||k.setAttribute("data-selected","true"))}):Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(x=>{var k;x.closest("iam-card")&&((k=x.closest("iam-card"))===null||k===void 0||k.removeAttribute("data-selected"))})}})}if(this.hasAttribute("data-switchviews")){let b="";const y=(r=this.getAttribute("data-switchviews"))===null||r===void 0?void 0:r.split(",");y==null||y.forEach(_=>{let x="fa-grid-2";_=="list"?x="fa-grip-lines":_=="small"&&(x="fa-bars"),b+=`<button class="btn btn-action btn-compact mb-0 fa-regular ${x}">${_}</button>`}),u==null||u.insertAdjacentHTML("afterbegin",`<div class="views m-0">${b}</div>`);const w=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(".views");w==null||w.addEventListener("click",_=>{if(_&&_.target instanceof HTMLElement&&_.target.closest(".btn-action")){const x=_.target.closest(".btn-action");this.setAttribute("data-view",x.textContent);const k=new CustomEvent("switch-view",{detail:{view:x.textContent}});this.dispatchEvent(k)}})}const h=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".actionbar--search");this.hasAttribute("data-search-value")&&(((c=this.shadowRoot)===null||c===void 0?void 0:c.querySelector("#search")).value=String(this.getAttribute("data-search-value"))),this.hasAttribute("data-search")&&this.getAttribute("data-search")=="show"&&(h==null||h.classList.add("show"));const g=this.shadowRoot.querySelector("button[data-search]");this.shadowRoot.addEventListener("click",b=>{b&&b.target instanceof HTMLElement&&b.target.closest("button[data-search]")&&(h.classList.toggle("show"),g.toggleAttribute("aria-expanded"))}),h.addEventListener("keyup",()=>{const b=new CustomEvent("search-keyup",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(b)}),h.addEventListener("change",()=>{const b=new CustomEvent("search-change",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(b)}),h.addEventListener("click",b=>{if(b&&b.target instanceof HTMLElement&&b.target.closest("button.suffix")){const y=new CustomEvent("search-submit",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(y)}}),Array.from(this.shadowRoot.querySelectorAll(".body")).forEach(b=>{sr(b)});const v=()=>{const b=u.scrollWidth,y=document.documentElement.scrollWidth;let w=750,_=16,x=450,k=!(this===null||this===void 0)&&this.hasAttribute("data-switchviews")?144:210;this.hasAttribute("data-large-safe-area")&&(w=1048,x=620,k=260);let E=1;y>=992&&y<=1280?E=y/1280:y>=576&&y<992?E=y/768:y<576&&(E=y/375),b>=992&&b<=1280?w=w*E:b>=576&&b<992?w=x*E:b<576&&(w=k*E),_=_*E,b<576?Array.from(this.querySelectorAll(':scope > .btn:not(.js-updated), :scope > .dialog__wrapper > .btn[class*="fa-"]:first-child:not(.js-updated)')).forEach(L=>{L.className=L.className.replace(" btn-compact"," _btn-compact"),L.classList.add("btn-compact"),L.classList.add("js-updated")}):Array.from(this.querySelectorAll(":scope > .btn.js-updated, :scope > .dialog__wrapper > .btn.js-updated:first-child")).forEach(L=>{L.classList.remove("btn-compact"),L.classList.remove("js-updated"),L.className=L.className.replace(" _btn-compact"," btn-compact")}),Array.from(this.querySelectorAll("[slot]")).forEach(L=>{L.getAttribute("slot")=="overflow"&&L.removeAttribute("slot"),L.getAttribute("slot")=="selected-overflow"&&L.setAttribute("slot","selected")}),Array.from(this.querySelectorAll(".show")).forEach(L=>{L.classList.remove("show")}),Array.from(this.shadowRoot.querySelectorAll(".safe-area")).forEach(L=>{var M,T,H;let D="overflow";!((M=L.querySelector("slot"))===null||M===void 0)&&M.hasAttribute("name")&&((T=L.querySelector("slot"))===null||T===void 0?void 0:T.getAttribute("name"))=="selected"&&(D="selected-overflow");const $=(H=L.querySelector("slot"))===null||H===void 0?void 0:H.assignedElements();let C=44*E;this.hasAttribute("data-search")&&(C+=44*E);for(let q=0;q<$.length;q++)!$[q].classList.contains("btn-action")&&!$[q].classList.contains("dialog__wrapper")&&(C+=$[q].offsetWidth,C+=_);for(let q=0;q<$.length;q++)if($[q].classList.contains("dialog__wrapper")&&($[q].classList.add("show"),C+=$[q].offsetWidth,C+=_/2,C-_/2>w)){$[q].classList.remove("show");break}for(let q=0;q<$.length;q++)if($[q].classList.contains("btn-action")&&($[q].classList.add("show"),C+=$[q].offsetWidth,C+=_/2,C-_/2>w)){$[q].classList.remove("show");break}const R=L.querySelector(".dialog-overflow");R&&R.classList.add("d-none");for(let q=0;q<$.length;q++)($[q].classList.contains("btn-action")||$[q].classList.contains("dialog__wrapper"))&&($[q].classList.contains("show")||($[q].setAttribute("slot",D),R&&R.classList.remove("d-none")))})};v(),new ResizeObserver(v).observe(u);const f=()=>{let b="";Array.from(p==null?void 0:p.querySelectorAll("label input")).forEach((w,_)=>{b+=this.hasAttribute(`data-hide-col${_+1}`)?`${_+1},`:""});const y=new CustomEvent("columm-filters-set",{detail:{columnsHidden:b.slice(0,-1)}});this.dispatchEvent(y)};if(this.hasAttribute("data-filter-columns")||this.hasAttribute("data-filter-columns-save")){const b=this.closest("iam-table").querySelectorAll("thead th");Array.from(b).forEach((y,w)=>{y.textContent&&(p==null||p.insertAdjacentHTML("beforeend",`<label class="m-0" title="Change the display of "><input name="hideCol${w+1}" value="${w+1}" type="checkbox" ${this.hasAttribute("data-hide-col"+(w+1))?"":"checked"} /> ${y.textContent}</label>`))})}if(this.hasAttribute("data-filter-columns")&&!this.hasAttribute("data-filter-columns-save")&&(p==null||p.addEventListener("change",b=>{if(b&&b.target instanceof HTMLElement&&b.target.closest("input")){const y=b.target.closest("input");(y==null?void 0:y.checked)==!1?this.setAttribute("data-hide-col"+(y==null?void 0:y.value),"true"):this.removeAttribute("data-hide-col"+(y==null?void 0:y.value)),f()}})),this.hasAttribute("data-filter-columns-save")){const b=(m=this.shadowRoot)===null||m===void 0?void 0:m.querySelector(".checklists"),y=(l=this.shadowRoot)===null||l===void 0?void 0:l.querySelector("#saveColumns"),w=(d=this.shadowRoot)===null||d===void 0?void 0:d.querySelector("#cancelColumns");y==null||y.addEventListener("click",_=>{var x;Array.from(b==null?void 0:b.querySelectorAll("label input")).forEach(k=>{(k==null?void 0:k.checked)==!1?this.setAttribute("data-hide-col"+(k==null?void 0:k.value),"true"):this.removeAttribute("data-hide-col"+(k==null?void 0:k.value))}),f(),(x=y.closest("dialog"))===null||x===void 0||x.close()}),w==null||w.addEventListener("click",_=>{var x,k;const E=(x=this.shadowRoot)===null||x===void 0?void 0:x.querySelector(".checklists");Array.from(E==null?void 0:E.querySelectorAll("label input")).forEach((L,M)=>{L.checked=!this.hasAttribute(`data-hide-col${M+1}`)}),f(),(k=y.closest("dialog"))===null||k===void 0||k.close()})}}static get observedAttributes(){return["data-selected"]}attributeChangedCallback(t,e,o){switch(t){case"data-selected":{const r=this.shadowRoot.querySelector(".selectall");r&&ot(r,o);const i=new CustomEvent("selected",{detail:{selected:o}});if(this.dispatchEvent(i),o=="all"&&this.hasAttribute("data-select-watch")){const n=document.getElementById(String(this.getAttribute("data-select-watch")));Array.from(n.querySelectorAll('input[type="checkbox"]')).forEach(c=>{var m;c.checked=!0,c.closest("iam-card")&&((m=c.closest("iam-card"))===null||m===void 0||m.setAttribute("data-selected","true"))})}if(o=="0"&&this.hasAttribute("data-select-watch")){const n=document.getElementById(String(this.getAttribute("data-select-watch")));Array.from(n.querySelectorAll('input[type="checkbox"]')).forEach(c=>{var m;c.checked=!1,c.closest("iam-card")&&((m=c.closest("iam-card"))===null||m===void 0||m.removeAttribute("data-selected"))})}break}}}}},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function N(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)a[o]=e[o]}return a}var cr={read:function(a){return a[0]==='"'&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function U(a,t){function e(r,i,n){if(!(typeof document>"u")){n=N({},t,n),typeof n.expires=="number"&&(n.expires=new Date(Date.now()+n.expires*864e5)),n.expires&&(n.expires=n.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var m in n)n[m]&&(c+="; "+m,n[m]!==!0&&(c+="="+n[m].split(";")[0]));return document.cookie=r+"="+a.write(i,r)+c}}function o(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],n={},c=0;c<i.length;c++){var m=i[c].split("="),l=m.slice(1).join("=");try{var d=decodeURIComponent(m[0]);if(n[d]=a.read(l,d),r===d)break}catch{}}return r?n[r]:n}}return Object.create({set:e,get:o,remove:function(r,i){e(r,"",N({},i,{expires:-1}))},withAttributes:function(r){return U(this.converter,N({},this.attributes,r))},withConverter:function(r){return U(N({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(a)}})}var rt=U(cr,{path:"/"}),it=function(a,t,e,o){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function c(d){try{l(o.next(d))}catch(u){n(u)}}function m(d){try{l(o.throw(d))}catch(u){n(u)}}function l(d){d.done?i(d.value):r(d.value).then(c,m)}l((o=o.apply(a,[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Address Lookup"});const dr=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){var t;super(),this.attachShadow({mode:"open"});const e=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"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
193
+ </style>`)}connectedCallback(){var t,e,o,r,i,n,c,m,l,d;const u=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(".actionbar__wrapper"),p=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelector(".checklists");if(this.hasAttribute("data-selectall")){u==null||u.insertAdjacentHTML("afterbegin",'<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');const b=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(".selectall");this.hasAttribute("data-selected")&&rt(b,this.getAttribute("data-selected")),b==null||b.addEventListener("change",w=>{var _;w&&w.target instanceof HTMLElement&&w.target.closest("input")&&(!((_=w.target.closest("input"))===null||_===void 0)&&_.checked?this.setAttribute("data-selected","all"):this.setAttribute("data-selected","0"))});const y=this.querySelector("button[data-cancel]");y&&y.addEventListener("click",()=>{this.setAttribute("data-selected","0")})}if(this.hasAttribute("data-select-watch")){const b=document.getElementById(this.getAttribute("data-select-watch"));b==null||b.setAttribute("data-select-container","true"),Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(y=>{var w;(w=y.parentElement)===null||w===void 0||w.setAttribute("slot","checkbox")}),b==null||b.addEventListener("change",y=>{if(y&&y.target instanceof HTMLElement&&y.target.closest('[type="checkbox"]')){const w=b.querySelectorAll('input[type="checkbox"]').length,_=b.querySelectorAll('input[type="checkbox"]:checked').length;this.setAttribute("data-selected",w==_?"all":String(_)),_?Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(x=>{var k;x.closest("iam-card")&&((k=x.closest("iam-card"))===null||k===void 0||k.setAttribute("data-selected","true"))}):Array.from(b.querySelectorAll('input[type="checkbox"]')).forEach(x=>{var k;x.closest("iam-card")&&((k=x.closest("iam-card"))===null||k===void 0||k.removeAttribute("data-selected"))})}})}if(this.hasAttribute("data-switchviews")){let b="";const y=(r=this.getAttribute("data-switchviews"))===null||r===void 0?void 0:r.split(",");y==null||y.forEach(_=>{let x="fa-grid-2";_=="list"?x="fa-grip-lines":_=="small"&&(x="fa-bars"),b+=`<button class="btn btn-action btn-compact mb-0 fa-regular ${x}">${_}</button>`}),u==null||u.insertAdjacentHTML("afterbegin",`<div class="views m-0">${b}</div>`);const w=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(".views");w==null||w.addEventListener("click",_=>{if(_&&_.target instanceof HTMLElement&&_.target.closest(".btn-action")){const x=_.target.closest(".btn-action");this.setAttribute("data-view",x.textContent);const k=new CustomEvent("switch-view",{detail:{view:x.textContent}});this.dispatchEvent(k)}})}const h=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".actionbar--search");this.hasAttribute("data-search-value")&&(((c=this.shadowRoot)===null||c===void 0?void 0:c.querySelector("#search")).value=String(this.getAttribute("data-search-value"))),this.hasAttribute("data-search")&&this.getAttribute("data-search")=="show"&&(h==null||h.classList.add("show"));const g=this.shadowRoot.querySelector("button[data-search]");this.shadowRoot.addEventListener("click",b=>{b&&b.target instanceof HTMLElement&&b.target.closest("button[data-search]")&&(h.classList.toggle("show"),g.toggleAttribute("aria-expanded"))}),h.addEventListener("keyup",()=>{const b=new CustomEvent("search-keyup",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(b)}),h.addEventListener("change",()=>{const b=new CustomEvent("search-change",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(b)}),h.addEventListener("click",b=>{if(b&&b.target instanceof HTMLElement&&b.target.closest("button.suffix")){const y=new CustomEvent("search-submit",{detail:{search:h.querySelector("input").value}});this.dispatchEvent(y)}}),Array.from(this.shadowRoot.querySelectorAll(".body")).forEach(b=>{sr(b)});const v=()=>{const b=u.scrollWidth,y=document.documentElement.scrollWidth;let w=750,_=16,x=450,k=!(this===null||this===void 0)&&this.hasAttribute("data-switchviews")?144:210;this.hasAttribute("data-large-safe-area")&&(w=1048,x=620,k=260);let E=1;y>=992&&y<=1280?E=y/1280:y>=576&&y<992?E=y/768:y<576&&(E=y/375),b>=992&&b<=1280?w=w*E:b>=576&&b<992?w=x*E:b<576&&(w=k*E),_=_*E,b<576?Array.from(this.querySelectorAll(':scope > .btn:not(.js-updated), :scope > .dialog__wrapper > .btn[class*="fa-"]:first-child:not(.js-updated)')).forEach(L=>{L.className=L.className.replace(" btn-compact"," _btn-compact"),L.classList.add("btn-compact"),L.classList.add("js-updated")}):Array.from(this.querySelectorAll(":scope > .btn.js-updated, :scope > .dialog__wrapper > .btn.js-updated:first-child")).forEach(L=>{L.classList.remove("btn-compact"),L.classList.remove("js-updated"),L.className=L.className.replace(" _btn-compact"," btn-compact")}),Array.from(this.querySelectorAll("[slot]")).forEach(L=>{L.getAttribute("slot")=="overflow"&&L.removeAttribute("slot"),L.getAttribute("slot")=="selected-overflow"&&L.setAttribute("slot","selected")}),Array.from(this.querySelectorAll(".show")).forEach(L=>{L.classList.remove("show")}),Array.from(this.shadowRoot.querySelectorAll(".safe-area")).forEach(L=>{var M,T,H;let D="overflow";!((M=L.querySelector("slot"))===null||M===void 0)&&M.hasAttribute("name")&&((T=L.querySelector("slot"))===null||T===void 0?void 0:T.getAttribute("name"))=="selected"&&(D="selected-overflow");const $=(H=L.querySelector("slot"))===null||H===void 0?void 0:H.assignedElements();let C=44*E;this.hasAttribute("data-search")&&(C+=44*E);for(let q=0;q<$.length;q++)!$[q].classList.contains("btn-action")&&!$[q].classList.contains("dialog__wrapper")&&(C+=$[q].offsetWidth,C+=_);for(let q=0;q<$.length;q++)if($[q].classList.contains("dialog__wrapper")&&($[q].classList.add("show"),C+=$[q].offsetWidth,C+=_/2,C-_/2>w)){$[q].classList.remove("show");break}for(let q=0;q<$.length;q++)if($[q].classList.contains("btn-action")&&($[q].classList.add("show"),C+=$[q].offsetWidth,C+=_/2,C-_/2>w)){$[q].classList.remove("show");break}const R=L.querySelector(".dialog-overflow");R&&R.classList.add("d-none");for(let q=0;q<$.length;q++)($[q].classList.contains("btn-action")||$[q].classList.contains("dialog__wrapper"))&&($[q].classList.contains("show")||($[q].setAttribute("slot",D),R&&R.classList.remove("d-none")))})};v(),new ResizeObserver(v).observe(u);const f=()=>{let b="";Array.from(p==null?void 0:p.querySelectorAll("label input")).forEach((w,_)=>{b+=this.hasAttribute(`data-hide-col${_+1}`)?`${_+1},`:""});const y=new CustomEvent("columm-filters-set",{detail:{columnsHidden:b.slice(0,-1)}});this.dispatchEvent(y)};if(this.hasAttribute("data-filter-columns")||this.hasAttribute("data-filter-columns-save")){const b=this.closest("iam-table").querySelectorAll("thead th");Array.from(b).forEach((y,w)=>{y.textContent&&(p==null||p.insertAdjacentHTML("beforeend",`<label class="m-0" title="Change the display of "><input name="hideCol${w+1}" value="${w+1}" type="checkbox" ${this.hasAttribute("data-hide-col"+(w+1))?"":"checked"} /> ${y.textContent}</label>`))})}if(this.hasAttribute("data-filter-columns")&&!this.hasAttribute("data-filter-columns-save")&&(p==null||p.addEventListener("change",b=>{if(b&&b.target instanceof HTMLElement&&b.target.closest("input")){const y=b.target.closest("input");(y==null?void 0:y.checked)==!1?this.setAttribute("data-hide-col"+(y==null?void 0:y.value),"true"):this.removeAttribute("data-hide-col"+(y==null?void 0:y.value)),f()}})),this.hasAttribute("data-filter-columns-save")){const b=(m=this.shadowRoot)===null||m===void 0?void 0:m.querySelector(".checklists"),y=(l=this.shadowRoot)===null||l===void 0?void 0:l.querySelector("#saveColumns"),w=(d=this.shadowRoot)===null||d===void 0?void 0:d.querySelector("#cancelColumns");y==null||y.addEventListener("click",_=>{var x;Array.from(b==null?void 0:b.querySelectorAll("label input")).forEach(k=>{(k==null?void 0:k.checked)==!1?this.setAttribute("data-hide-col"+(k==null?void 0:k.value),"true"):this.removeAttribute("data-hide-col"+(k==null?void 0:k.value))}),f(),(x=y.closest("dialog"))===null||x===void 0||x.close()}),w==null||w.addEventListener("click",_=>{var x,k;const E=(x=this.shadowRoot)===null||x===void 0?void 0:x.querySelector(".checklists");Array.from(E==null?void 0:E.querySelectorAll("label input")).forEach((L,M)=>{L.checked=!this.hasAttribute(`data-hide-col${M+1}`)}),f(),(k=y.closest("dialog"))===null||k===void 0||k.close()})}}static get observedAttributes(){return["data-selected"]}attributeChangedCallback(t,e,o){switch(t){case"data-selected":{const r=this.shadowRoot.querySelector(".selectall");r&&rt(r,o);const i=new CustomEvent("selected",{detail:{selected:o}});if(this.dispatchEvent(i),o=="all"&&this.hasAttribute("data-select-watch")){const n=document.getElementById(String(this.getAttribute("data-select-watch")));Array.from(n.querySelectorAll('input[type="checkbox"]')).forEach(c=>{var m;c.checked=!0,c.closest("iam-card")&&((m=c.closest("iam-card"))===null||m===void 0||m.setAttribute("data-selected","true"))})}if(o=="0"&&this.hasAttribute("data-select-watch")){const n=document.getElementById(String(this.getAttribute("data-select-watch")));Array.from(n.querySelectorAll('input[type="checkbox"]')).forEach(c=>{var m;c.checked=!1,c.closest("iam-card")&&((m=c.closest("iam-card"))===null||m===void 0||m.removeAttribute("data-selected"))})}break}}}}},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function N(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)a[o]=e[o]}return a}var cr={read:function(a){return a[0]==='"'&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function U(a,t){function e(r,i,n){if(!(typeof document>"u")){n=N({},t,n),typeof n.expires=="number"&&(n.expires=new Date(Date.now()+n.expires*864e5)),n.expires&&(n.expires=n.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var m in n)n[m]&&(c+="; "+m,n[m]!==!0&&(c+="="+n[m].split(";")[0]));return document.cookie=r+"="+a.write(i,r)+c}}function o(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],n={},c=0;c<i.length;c++){var m=i[c].split("="),l=m.slice(1).join("=");try{var d=decodeURIComponent(m[0]);if(n[d]=a.read(l,d),r===d)break}catch{}}return r?n[r]:n}}return Object.create({set:e,get:o,remove:function(r,i){e(r,"",N({},i,{expires:-1}))},withAttributes:function(r){return U(this.converter,N({},this.attributes,r))},withConverter:function(r){return U(N({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(a)}})}var it=U(cr,{path:"/"}),nt=function(a,t,e,o){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function c(d){try{l(o.next(d))}catch(u){n(u)}}function m(d){try{l(o.throw(d))}catch(u){n(u)}}function l(d){d.done?i(d.value):r(d.value).then(c,m)}l((o=o.apply(a,[])).next())})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Address Lookup"});const dr=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){var t;super(),this.attachShadow({mode:"open"});const e=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"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
194
194
  <style>
195
195
  @import "${o}";
196
196
  .js-hide{display:none !important}:host{margin-bottom:1rem;display:block}input[name=postcode]{border-color:var(--error-border, var(--colour-primary)) !important}:is([name=postcode]):is(:focus,.focus):not(:disabled){border-color:var(--colour-info) !important}div:has(input[name=postcode]) .suffix{border-color:var(--error-border, var(--colour-primary)) !important}.invalid-feedback{display:var(--error-display, none) !important}.optional{display:var(--req-display, inline-block) !important}.pre-filled p{padding-bottom:1rem}.pre-filled button{border:none;background:none;cursor:pointer}/*# sourceMappingURL=assets/css/components/address-lookup.css.map */
@@ -226,7 +226,7 @@
226
226
  <p><span class="pre-filled-address"></span><button class="text-primary text-decoration-none ms-1 cursor-pointer" type="button"><i class="fa-regular fa-pen-to-square"></i><span class="visually-hidden">Edit</span></button><slot name="prefilled"></slot></p>
227
227
  </div>
228
228
  </div>
229
- `,(t=this.shadowRoot)===null||t===void 0||t.appendChild(r.content.cloneNode(!0))}connectedCallback(){return it(this,void 0,void 0,function*(){const t=this.shadowRoot.querySelector('[name="postcode"]'),e=this.shadowRoot.querySelector(".postcode-lookup"),o=this.shadowRoot.querySelector(".manual-address"),r=this.shadowRoot.querySelector(".pre-filled"),i=this.shadowRoot.querySelector("datalist"),n=this.shadowRoot.querySelector(".switch-to-manual-btn"),c=this.shadowRoot.querySelector(".switch-to-lookup-btn"),m=this.hasAttribute("data-title")?this.getAttribute("data-title"):"Property address",l=this.shadowRoot.querySelector(".pre-filled-address + button"),d=this.hasAttribute("data-display-text");Array.from(this.shadowRoot.querySelectorAll(".title")).forEach(g=>{g.innerHTML=m});function u(g){const v=g.shadowRoot.querySelector(".pre-filled-address");let f=!0;v.innerHTML="",Array.from(g.querySelectorAll("input[required],input[data-required],select[required],select[data-required]")).forEach(b=>{const y=b.value;y?v.innerHTML+=y+(/^-?\d+$/.test(y)?" ":", "):f=!1}),v.innerHTML=v.innerHTML.slice(0,-2),f&&(r.classList.remove("js-hide"),e.classList.add("js-hide"),o.classList.add("js-hide"))}if(u(this),this.addEventListener("filled",()=>{u(this)}),this.hasAttribute("data-use")){const g=`<div><input type="checkbox" name="use" id="use" value="yes"><label for="use">${this.hasAttribute("data-use-label")?this.getAttribute("data-use-label"):"Use saved address"}</label></div>`;e.insertAdjacentHTML("afterbegin",g),this.shadowRoot.addEventListener("change",v=>{if(v&&v.target instanceof HTMLElement&&v.target.closest('[name="use"]')&&v.target.closest('[name="use"]').checked){e.classList.add("js-hide"),o.classList.remove("js-hide");const f=JSON.parse(this.getAttribute("data-use"));Object.keys(f).forEach(b=>{const y=f[b];this.querySelector(`[data-name="${b}"]`)?this.querySelector(`[data-name="${b}"]`).value=y:this.querySelector(`[name="${b}"]`)&&(this.querySelector(`[name="${b}"]`).value=y)})}})}this.hasAttribute("data-manual")&&(e.classList.add("js-hide"),o.classList.remove("js-hide"),Array.from(o.querySelectorAll("[data-required]")).forEach(g=>{g.setAttribute("required","true")}));function p(){e.classList.add("js-hide"),o.classList.remove("js-hide"),Array.from(o.querySelectorAll("[data-required]")).forEach(g=>{g.setAttribute("required","true")}),o.scrollIntoView()}l.addEventListener("click",()=>{r.classList.add("js-hide"),p()}),n.addEventListener("click",()=>{p()}),c.addEventListener("click",()=>{e.classList.remove("js-hide"),o.classList.add("js-hide"),e.scrollIntoView()}),t.addEventListener("keyup",()=>{t.value.length>=3&&h(t.value)}),t.addEventListener("change",()=>{if(t.value.length>=3&&(h(t.value),i.querySelector(`[value="${t.value}"]`))){e.classList.add("js-hide"),o.classList.remove("js-hide");const g=JSON.parse(i.querySelector(`[value="${t.value}"]`).getAttribute("data-values"));Object.keys(g).forEach(v=>{const f=g[v];this.querySelector(`[data-name="${v}"]`)&&f!=""?this.querySelector(`[data-name="${v}"]`).value=f:this.querySelector(`[data-name-alt="${v}"]`)&&f!=""?this.querySelector(`[data-name-alt="${v}"]`).value=f:this.querySelector(`[name="${v}"]`)&&f!=""&&(this.querySelector(`[name="${v}"]`).value=f),this.querySelector(`[data-name-2="${v}"]`)&&(this.querySelector(`[data-name-2="${v}"]`).value+=" "+f)}),this.querySelector("[name]").focus(),Array.from(this.querySelectorAll("[data-required]")).forEach(v=>{v.setAttribute("required","true")}),t.removeAttribute("required"),this.shadowRoot.querySelector('[name="use"]')&&(this.shadowRoot.querySelector('[name="use"]').checked=!1)}});const h=g=>it(this,void 0,void 0,function*(){let v=this.getAttribute("data-url");v+=`${encodeURI(g)}`,window.controller||(window.controller=[]),window.controller[v]&&window.controller[v].abort(),window.controller[v]=new AbortController;const{signal:f}=controller[v];try{yield fetch(v,{signal:f,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":rt.get("XSRF-TOKEN")})}).then(b=>b.json()).then(b=>{let y="";return b.forEach(w=>{if(typeof w.value=="object"){const _=JSON.stringify(w.value);y+=`<option value="${w.label}, ${g}" data-values='${_}'></option>`}else{const _=JSON.stringify(w);if(d)y+=`<option value="${w[d]}, ${g}" data-values='${_}'></option>`;else{let x="";for(const[k,E]of Object.entries(w))k=="address_number_name"?x+=`${E} `:k!="postcode"&&k!="address_title"&&(x+=`${E}${/^-?\d+$/.test(E)?"":","} `);y+=`<option value="${x}${g}" data-values='${_}'></option>`}}}),i.innerHTML=y,b})}catch(b){console.log(b)}})})}}},Symbol.toStringTag,{value:"Module"}));function mr(a,t){function e(r,i,n=!0){let c=!1,m=i.getAttribute("name");if(!m)return!1;m.includes("[]")&&(m=m.replace("[]",`[${i.value}]`));let l=r.querySelector(`[data-name="${m}"]`);l&&i.getAttribute("type")=="checkbox"&&(c=!i.checked);const d=i.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),r.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.classList.add("tag"),n&&l.classList.add("tag--not-set"),l.setAttribute("data-name",m),l.innerHTML=d.replace("$value",i.value),(!i.value||c)&&l.remove(),i.parentNode.closest("[data-filter-text]")){const u=i.parentNode.closest("[data-filter-text]");let p=!0;if(m="",u.querySelectorAll("input").forEach((h,g)=>{const v=h.getAttribute("name");if(m+=`${g!=0?",":""}${v}`,r.querySelector(`[data-name="${v}"]`)&&r.querySelector(`[data-name="${v}"]`).remove(),h.value){const f=document.createElement("button");f.setAttribute("type","button"),f.classList.add("filter"),f.classList.add("tag"),n&&l.classList.add("tag--not-set"),f.setAttribute("data-name",v),f.innerHTML=d.replace("$value",h.value),r.appendChild(f)}else p=!1}),r.querySelector(`[data-name="${m}"]`)&&r.querySelector(`[data-name="${m}"]`).remove(),p){let h=u.getAttribute("data-filter-text");u.querySelectorAll("input").forEach((v,f)=>{const b=v.getAttribute("name");r.querySelector(`[data-name="${b}"]`)&&r.querySelector(`[data-name="${b}"]`).remove(),h=h.replace(`$${f+1}`,v.value)});const g=document.createElement("button");g.setAttribute("type","button"),g.classList.add("filter"),g.classList.add("tag"),n&&l.classList.add("tag--not-set"),g.setAttribute("data-name",m),g.innerHTML=h,r.appendChild(g)}}}Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{e(t,r,!1)});const o=a.closest("dialog");o&&new MutationObserver(function(i){i[0].attributeName=="open"&&Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(n=>{e(t,n,!1)})}).observe(o,{attributes:!0}),a.addEventListener("tags-set",function(){t.innerHTML="",Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{e(t,r,!1)})}),Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{r.addEventListener("change",function(i){a.hasAttribute("data-keep-same")||e(t,r),i.stopPropagation()})}),a.addEventListener("change",function(r){if(r&&r.target instanceof HTMLElement&&r.target.closest("input[data-filter-text]")){const i=r.target.closest("input[data-filter-text]");a.hasAttribute("data-keep-same")||e(t,i)}}),t.addEventListener("click",function(r){if(r&&r.target instanceof HTMLElement&&r.target.closest(".filter")){const i=r.target.closest(".filter"),n=i.getAttribute("data-name").split(",");for(let c=0;c<n.length;c++){const m=n[c];let l=`[name="${m}"]`;m.match(/\[(.*)\]/)&&(l=`[value="${m.replace(/.*\[(.*)\]/,"$1")}"]`);const d=a.querySelectorAll(l);for(let u=0;u<d.length;u++){const p=d[u];if(p.getAttribute("type")!="radio"&&p.getAttribute("type")!="checkbox"){p.value="";const h=new Event("force");a.hasAttribute("data-nosubmit")||p.closest("form").dispatchEvent(h)}else{p.checked=!1;const h=new Event("force");a.hasAttribute("data-nosubmit")||p.closest("form").dispatchEvent(h)}}}i.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class ur 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`,o=`@import "${t}/css/components/applied-filters.css";`,r=this.classList.toString(),i=document.createElement("template");i.innerHTML=`
229
+ `,(t=this.shadowRoot)===null||t===void 0||t.appendChild(r.content.cloneNode(!0))}connectedCallback(){return nt(this,void 0,void 0,function*(){const t=this.shadowRoot.querySelector('[name="postcode"]'),e=this.shadowRoot.querySelector(".postcode-lookup"),o=this.shadowRoot.querySelector(".manual-address"),r=this.shadowRoot.querySelector(".pre-filled"),i=this.shadowRoot.querySelector("datalist"),n=this.shadowRoot.querySelector(".switch-to-manual-btn"),c=this.shadowRoot.querySelector(".switch-to-lookup-btn"),m=this.hasAttribute("data-title")?this.getAttribute("data-title"):"Property address",l=this.shadowRoot.querySelector(".pre-filled-address + button"),d=this.hasAttribute("data-display-text");Array.from(this.shadowRoot.querySelectorAll(".title")).forEach(g=>{g.innerHTML=m});function u(g){const v=g.shadowRoot.querySelector(".pre-filled-address");let f=!0;v.innerHTML="",Array.from(g.querySelectorAll("input[required],input[data-required],select[required],select[data-required]")).forEach(b=>{const y=b.value;y?v.innerHTML+=y+(/^-?\d+$/.test(y)?" ":", "):f=!1}),v.innerHTML=v.innerHTML.slice(0,-2),f&&(r.classList.remove("js-hide"),e.classList.add("js-hide"),o.classList.add("js-hide"))}if(u(this),this.addEventListener("filled",()=>{u(this)}),this.hasAttribute("data-use")){const g=`<div><input type="checkbox" name="use" id="use" value="yes"><label for="use">${this.hasAttribute("data-use-label")?this.getAttribute("data-use-label"):"Use saved address"}</label></div>`;e.insertAdjacentHTML("afterbegin",g),this.shadowRoot.addEventListener("change",v=>{if(v&&v.target instanceof HTMLElement&&v.target.closest('[name="use"]')&&v.target.closest('[name="use"]').checked){e.classList.add("js-hide"),o.classList.remove("js-hide");const f=JSON.parse(this.getAttribute("data-use"));Object.keys(f).forEach(b=>{const y=f[b];this.querySelector(`[data-name="${b}"]`)?this.querySelector(`[data-name="${b}"]`).value=y:this.querySelector(`[name="${b}"]`)&&(this.querySelector(`[name="${b}"]`).value=y)})}})}this.hasAttribute("data-manual")&&(e.classList.add("js-hide"),o.classList.remove("js-hide"),Array.from(o.querySelectorAll("[data-required]")).forEach(g=>{g.setAttribute("required","true")}));function p(){e.classList.add("js-hide"),o.classList.remove("js-hide"),Array.from(o.querySelectorAll("[data-required]")).forEach(g=>{g.setAttribute("required","true")}),o.scrollIntoView()}l.addEventListener("click",()=>{r.classList.add("js-hide"),p()}),n.addEventListener("click",()=>{p()}),c.addEventListener("click",()=>{e.classList.remove("js-hide"),o.classList.add("js-hide"),e.scrollIntoView()}),t.addEventListener("keyup",()=>{t.value.length>=3&&h(t.value)}),t.addEventListener("change",()=>{if(t.value.length>=3&&(h(t.value),i.querySelector(`[value="${t.value}"]`))){e.classList.add("js-hide"),o.classList.remove("js-hide");const g=JSON.parse(i.querySelector(`[value="${t.value}"]`).getAttribute("data-values"));Object.keys(g).forEach(v=>{const f=g[v];this.querySelector(`[data-name="${v}"]`)&&f!=""?this.querySelector(`[data-name="${v}"]`).value=f:this.querySelector(`[data-name-alt="${v}"]`)&&f!=""?this.querySelector(`[data-name-alt="${v}"]`).value=f:this.querySelector(`[name="${v}"]`)&&f!=""&&(this.querySelector(`[name="${v}"]`).value=f),this.querySelector(`[data-name-2="${v}"]`)&&(this.querySelector(`[data-name-2="${v}"]`).value+=" "+f)}),this.querySelector("[name]").focus(),Array.from(this.querySelectorAll("[data-required]")).forEach(v=>{v.setAttribute("required","true")}),t.removeAttribute("required"),this.shadowRoot.querySelector('[name="use"]')&&(this.shadowRoot.querySelector('[name="use"]').checked=!1)}});const h=g=>nt(this,void 0,void 0,function*(){let v=this.getAttribute("data-url");v+=`${encodeURI(g)}`,window.controller||(window.controller=[]),window.controller[v]&&window.controller[v].abort(),window.controller[v]=new AbortController;const{signal:f}=controller[v];try{yield fetch(v,{signal:f,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":it.get("XSRF-TOKEN")})}).then(b=>b.json()).then(b=>{let y="";return b.forEach(w=>{if(typeof w.value=="object"){const _=JSON.stringify(w.value);y+=`<option value="${w.label}, ${g}" data-values='${_}'></option>`}else{const _=JSON.stringify(w);if(d)y+=`<option value="${w[d]}, ${g}" data-values='${_}'></option>`;else{let x="";for(const[k,E]of Object.entries(w))k=="address_number_name"?x+=`${E} `:k!="postcode"&&k!="address_title"&&(x+=`${E}${/^-?\d+$/.test(E)?"":","} `);y+=`<option value="${x}${g}" data-values='${_}'></option>`}}}),i.innerHTML=y,b})}catch(b){console.log(b)}})})}}},Symbol.toStringTag,{value:"Module"}));function mr(a,t){function e(r,i,n=!0){let c=!1,m=i.getAttribute("name");if(!m)return!1;m.includes("[]")&&(m=m.replace("[]",`[${i.value}]`));let l=r.querySelector(`[data-name="${m}"]`);l&&i.getAttribute("type")=="checkbox"&&(c=!i.checked);const d=i.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),r.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.classList.add("tag"),n&&l.classList.add("tag--not-set"),l.setAttribute("data-name",m),l.innerHTML=d.replace("$value",i.value),(!i.value||c)&&l.remove(),i.parentNode.closest("[data-filter-text]")){const u=i.parentNode.closest("[data-filter-text]");let p=!0;if(m="",u.querySelectorAll("input").forEach((h,g)=>{const v=h.getAttribute("name");if(m+=`${g!=0?",":""}${v}`,r.querySelector(`[data-name="${v}"]`)&&r.querySelector(`[data-name="${v}"]`).remove(),h.value){const f=document.createElement("button");f.setAttribute("type","button"),f.classList.add("filter"),f.classList.add("tag"),n&&l.classList.add("tag--not-set"),f.setAttribute("data-name",v),f.innerHTML=d.replace("$value",h.value),r.appendChild(f)}else p=!1}),r.querySelector(`[data-name="${m}"]`)&&r.querySelector(`[data-name="${m}"]`).remove(),p){let h=u.getAttribute("data-filter-text");u.querySelectorAll("input").forEach((v,f)=>{const b=v.getAttribute("name");r.querySelector(`[data-name="${b}"]`)&&r.querySelector(`[data-name="${b}"]`).remove(),h=h.replace(`$${f+1}`,v.value)});const g=document.createElement("button");g.setAttribute("type","button"),g.classList.add("filter"),g.classList.add("tag"),n&&l.classList.add("tag--not-set"),g.setAttribute("data-name",m),g.innerHTML=h,r.appendChild(g)}}}Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{e(t,r,!1)});const o=a.closest("dialog");o&&new MutationObserver(function(i){i[0].attributeName=="open"&&Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(n=>{e(t,n,!1)})}).observe(o,{attributes:!0}),a.addEventListener("tags-set",function(){t.innerHTML="",Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{e(t,r,!1)})}),Array.from(a.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach(r=>{r.addEventListener("change",function(i){a.hasAttribute("data-keep-same")||e(t,r),i.stopPropagation()})}),a.addEventListener("change",function(r){if(r&&r.target instanceof HTMLElement&&r.target.closest("input[data-filter-text]")){const i=r.target.closest("input[data-filter-text]");a.hasAttribute("data-keep-same")||e(t,i)}}),t.addEventListener("click",function(r){if(r&&r.target instanceof HTMLElement&&r.target.closest(".filter")){const i=r.target.closest(".filter"),n=i.getAttribute("data-name").split(",");for(let c=0;c<n.length;c++){const m=n[c];let l=`[name="${m}"]`;m.match(/\[(.*)\]/)&&(l=`[value="${m.replace(/.*\[(.*)\]/,"$1")}"]`);const d=a.querySelectorAll(l);for(let u=0;u<d.length;u++){const p=d[u];if(p.getAttribute("type")!="radio"&&p.getAttribute("type")!="checkbox"){p.value="";const h=new Event("force");a.hasAttribute("data-nosubmit")||p.closest("form").dispatchEvent(h)}else{p.checked=!1;const h=new Event("force");a.hasAttribute("data-nosubmit")||p.closest("form").dispatchEvent(h)}}}i.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});class ur 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`,o=`@import "${t}/css/components/applied-filters.css";`,r=this.classList.toString(),i=document.createElement("template");i.innerHTML=`
230
230
  <style>
231
231
  @import "${e}";
232
232
  ${o}
@@ -235,9 +235,9 @@
235
235
  <div class="applied-filters ${r}"></div>
236
236
  <slot></slot>
237
237
  `,this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){mr(this,this.shadowRoot.querySelector(".applied-filters"))}}const hr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"}));/*!
238
- * iamKey v7.2.1--beta1
238
+ * iamKey v7.2.1--beta2
239
239
  * Copyright 2022-2025 iamproperty
240
- */const nt=a=>a.charAt(0).toUpperCase()+a.slice(1),st=a=>a.replace(/_/g," "),pr=(a,t)=>{for(let e=1;e<=10;e++){if(a.hasAttribute(`data-colour-${e}`)){const o=a.getAttribute(`data-colour-${e}`);a.style.setProperty(`--chart-colour-${e}`,`var(--chart-colour-${o})`),a.style.setProperty(`--chart-colour-${e}-hover`,`var(--chart-colour-${o}-hover)`)}Array.from(t.querySelectorAll(`[data-colour-${e}]`)).forEach(o=>{const r=o.getAttribute(`data-colour-${e}`);o.style.setProperty(`--chart-colour-${e}-set`,`var(--chart-colour-${r})`),o.style.setProperty(`--chart-colour-${e}-hover`,`var(--chart-colour-${r}-hover)`)})}return!0},W=(a,t,e)=>{if(a.tagName=="IAM-DOUGHNUTCHART")return br(a,t,e),!0;const o=t.querySelector(".chart__key");o.innerHTML="";const r=t.querySelector(".chart__guidelines");r.innerHTML="";const i=t.querySelector(".chart__yaxis");i.innerHTML="",Array.from(t.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(c=>{c.remove()});const{xaxis:n}=B(a);return G(a,e),ct(t,e,o),kr(a,r),xr(a,i),n&&Ar(t),!0},br=(a,t,e)=>{const o=t.querySelector(".chart__key");return o.innerHTML="",Array.from(t.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(r=>{r.remove()}),G(a,e),ct(t,e,o),dt(t),!0},gr=function(a,t){const e=t.querySelector(".chart");e.addEventListener("mousemove",n=>{if(n&&n.target instanceof HTMLElement&&n.target.closest("td:not(:first-child")){const c=n.target.closest("td:not(:first-child").getBoundingClientRect(),m=n.clientX-c.left,l=n.clientY-c.top;e.setAttribute("style",`--cursor-x: ${m}px; --cursor-y: ${l}px;`)}});const o=t.querySelectorAll("label");Array.from(o).forEach(n=>{t.querySelector(`input#${n.getAttribute("for")}`).checked?n.setAttribute("part","key-checked"):n.setAttribute("part","key-unchecked")});const r=a.querySelector("table"),i=t.querySelector("table");t.addEventListener("change",function(n){const c=n.target,m=new CustomEvent("view-change",{detail:{"data-dataset":c.getAttribute("data-dataset"),label:c.getAttribute("data-label"),checked:c.checked}});a.dispatchEvent(m),Array.from(o).forEach(l=>{var d;!((d=t.querySelector(`input#${l.getAttribute("for")}`))===null||d===void 0)&&d.checked?l.setAttribute("part","key-checked"):l.setAttribute("part","key-unchecked")}),i.innerHTML=r.innerHTML,G(a,i),a.tagName=="IAM-DOUGHNUTCHART"&&dt(t)})},fr=function(a,t){const e=a.querySelector("table"),o=t.querySelector("table"),r=(m,l)=>{l.disconnect(),c.disconnect();for(const d of m)(d.attributeName=="class"||d.type==="attributes"||d.type==="attributes")&&(o.innerHTML=e.innerHTML,W(a,t,o));l.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0})},i=(m,l)=>{l.disconnect(),c.disconnect();for(const d of m)(d.type=="characterData"||d.type=="childList"&&d.addedNodes.length)&&(o.innerHTML=e.innerHTML,W(a,t,o));l.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0})},n=new MutationObserver(i),c=new MutationObserver(r);return n.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0}),!0};function lt(a,t){t>1&&(a=a-.25);const e=Math.cos(2*Math.PI*a),o=Math.sin(2*Math.PI*a);return[e*100,o*100]}const B=function(a){const t=a.shadowRoot.querySelector(".chart__wrapper table"),e=a.hasAttribute("data-min")?a.getAttribute("data-min"):0,o=a.hasAttribute("data-max")?a.getAttribute("data-max"):vr(a,t),r=a.hasAttribute("data-yaxis")?a.getAttribute("data-yaxis").split(","):[],i=a.hasAttribute("data-guidelines")?a.getAttribute("data-guidelines").split(","):[],n=a.hasAttribute("data-xaxis")?a.getAttribute("data-xaxis").split(","):null;return{min:e,max:o,yaxis:r,xaxis:n,guidelines:i}};function vr(a,t){const e=a.classList.contains("chart--stacked")?"tbody tr":"tbody td:not(:first-child)",o=Array.from(t.querySelectorAll(e)).map(i=>i.getAttribute("data-numeric")),r=Math.max(...o);return Math.ceil(r)}const Y=function(a,t,e,o){let r=String(a);r=r.replace("£",""),r=r.replace("%",""),r=r.replace(",",""),r=Number.parseFloat(r);let i=(r-t)/(e-t)*100,n=i,c=0;return o&&o!=0&&(c=(o-t)/(e-t)*100),t<0&&(c=Math.abs(t/(e-t)*100),r<0?(i=c-i,c=c-i,n=c):(i=i-c,n=i+c)),{percent:i,axis:n,bottom:c}},G=function(a,t){Array.from(t.querySelectorAll("tbody tr")).forEach(r=>{let i=0;Array.from(r.querySelectorAll("td:not(:first-child)")).forEach(n=>{const c=n.cloneNode(!0);Array.from(c.querySelectorAll("*")).forEach(l=>{l.remove()});const m=parseFloat(c.textContent.replace("£","").replace("%","").replace(",",""));n.setAttribute("data-numeric",m),n.setAttribute("data-value",c.textContent),getComputedStyle(n).display!="none"&&(i+=m),Array.from(n.querySelectorAll("a, button")).forEach((l,d)=>{d==0&&l.insertAdjacentHTML("beforeBegin","<hr/>"),l.classList.add("btn"),l.classList.add("btn-tertiary")})}),r.setAttribute("data-numeric",i)});const{min:e,max:o}=B(a);Array.from(t.querySelectorAll("tbody tr")).forEach((r,i)=>{const n=r.querySelector("td:first-child, th:first-child")?r.querySelector("td:first-child, th:first-child").textContent:"";r.setAttribute("part","group");const c=(r.getAttribute("data-numeric")-e)/(o-e)*100;r.style.setProperty("--percent",`${c}%`),Array.from(r.querySelectorAll("td:not([data-label])")).forEach((d,u)=>{u==0?d.setAttribute("part","xaxis-label"):d.setAttribute("part","value"),r.querySelectorAll("td").length>2&&d.setAttribute("data-label",t.querySelectorAll("thead th")[u].textContent)});const m=r.hasAttribute("data-min")?r.getAttribute("data-min"):e,l=r.hasAttribute("data-max")?r.getAttribute("data-max"):o;if(m<0){const d=Math.abs(m/(l-m)*100);a.setAttribute("style",`--min-bottom: ${d}%;`)}r.style.setProperty("--row-index",i+1),Array.from(r.querySelectorAll('td[data-numeric]:not([data-label="Min"]):not([data-label="Max"]):not(:first-child)')).forEach(d=>{if(getComputedStyle(d).display=="none")return;const u=d.innerHTML,p=Number.parseFloat(d.getAttribute("data-numeric")),h=Number.parseFloat(d.getAttribute("data-start"));if(d.querySelector("span[data-group]")||(d.innerHTML=`<span data-group="${n}" ${d.hasAttribute("data-label")?`data-label="${d.getAttribute("data-label")}"`:""} part="popover">${u}</span>`),!d.hasAttribute("style")){const{percent:g,bottom:v,axis:f}=Y(p,m,l,h);d.setAttribute("data-percent",g),d.setAttribute("style",`--bottom:${v}%;--percent:${g}%;--axis:${f}%;`)}})})},yr=function(a){const t=a.querySelector(".chart__wrapper"),e=a.querySelector(".chart__spacer span"),o=a.querySelector(".chart table");let r="";Array.from(o.querySelectorAll("tbody tr td:first-child")).forEach(i=>{typeof i.textContent<"u"&&i.textContent.length>r.length&&(r=i.textContent)}),t.setAttribute("data-longest-label",r),e.innerHTML=r},wr=function(a){const t=a.querySelector(".chart__wrapper"),e=a.querySelector(".chart table");let o="";Array.from(e.querySelectorAll("tbody tr td:not(:first-child)")).forEach(r=>{typeof r.getAttribute("data-value")<"u"&&r.getAttribute("data-value").length>o.length&&(o=r.getAttribute("data-value"))}),t.setAttribute("data-longest-value",o)},ct=function(a,t,e){const o=`chart-${Date.now()+(Math.floor(Math.random()*100)+1)}`;let r;const i=Array.from(t.querySelectorAll("thead th"));return i.forEach((n,c)=>{c!=0&&(r=_r(o,c,n.textContent,e,a,r)),c==50&&(i.length=c+1)}),!0};function _r(a,t,e,o,r,i){var n;const c=document.createElement("input");c.setAttribute("name",`${a}-dataset-${t}`),c.setAttribute("id",`${a}-dataset-${t}`),c.setAttribute("data-dataset",`${t}`),c.setAttribute("data-label",`${e}`),c.checked=!0,c.setAttribute("type","checkbox"),t==1?r.prepend(c):r.insertBefore(c,i.nextSibling),i=c;const m=document.createElement("label");m.setAttribute("class","key btn btn-action"),m.setAttribute("for",`${a}-dataset-${t}`),m.setAttribute("data-label",`${e}`),m.setAttribute("part","key");const l=(n=r.querySelector(`tbody tr td:nth-child(${t+1})`))===null||n===void 0?void 0:n.getAttribute("data-numeric");return m.setAttribute("data-numeric",l),m.innerHTML=`${e}`,o.append(m),i}const kr=function(a,t){const{min:e,max:o,yaxis:r}=B(a);let{guidelines:i}=B(a);i.length||(i=r),t.innerHTML="";for(let n=0;n<i.length;n++){const c=parseFloat(i[n].replace("£","").replace("%","").replace(",","")),{axis:m}=Y(c,e,o);t.innerHTML+=`<div class="guideline" style="--percent:${m}%;">${r.indexOf(i[n])!=-1?`<span>${i[n]}</span>`:""}</div>`}},xr=function(a,t){const{min:e,max:o,yaxis:r}=B(a);t.innerHTML="";for(let i=0;i<r.length;i++){const n=parseFloat(r[i].replace("£","").replace("%","")),{axis:c}=Y(n,e,o);t.innerHTML+=`<div class="axis__point" style="--percent:${c}%;"><span>${r[i]}</span></div>`}},Ar=function(a){const t=a.querySelector(".chart");let e=a.querySelector(".chart__xaxis");e||(e=document.createElement("div"),e.setAttribute("class","chart__xaxis")),t.prepend(e)},Lr=function(a){const t=a.querySelectorAll("thead th[title], tbody th[title]:first-child, tbody td[title]:first-child");Array.from(t).forEach(e=>{const o=`tooltip-${Date.now()}-${Math.floor(Math.random()*100)}`;e.innerHTML=`<button class="tooltip" popovertarget="${o}" part="tooltip" style="anchor-name: --${o};">${e.textContent}</button><span id="${o}" style="position-anchor: --${o};" popover part="tooltip__content" class="tooltip__content">${e.getAttribute("title")}</span>`})},dt=function(a){let t="";const e=a.querySelector(".chart");let o=a.querySelector(".doughnuts");o||(o=document.createElement("div"),o.setAttribute("class","doughnuts"),e.append(o)),Array.from(e.querySelectorAll("tbody tr")).forEach((r,i)=>{let n="",c="",m=0,l=0;const d=r.querySelectorAll("td")[0].innerHTML;let u=0;const p=r.getAttribute("data-numeric");Array.from(r.querySelectorAll("td")).forEach((h,g)=>{const v=getComputedStyle(h).display;if(g!=0&&v!="none"){let f=h.getAttribute("data-numeric");f=f.replace("£",""),f=f.replace("%",""),f=f.replace(",",""),f=Number.parseInt(f),l+=f,u++}}),Array.from(r.querySelectorAll("td")).forEach((h,g)=>{var v,f;const b=getComputedStyle(h).display;if(g!=0&&u==1&&b!="none")n+=`<path d="M 0 0 L 100 0 A 100 100 0 1 1 100 -0.01 L 0 0" style="${h.getAttribute("style")} --path-index: ${g};"></path>`,c+=`<span class="h5 mb-0" part="popover">${nt(st(h.getAttribute("data-label"))).trim()}<br/>${h.hasAttribute("data-second")?`${h.getAttribute("data-second-label")}: ${h.getAttribute("data-second")}<br/>`:""}${(v=h.querySelector('[part="popover"]'))===null||v===void 0?void 0:v.innerHTML}</span>`;else if(g!=0){let y=h.getAttribute("data-numeric");const w=b=="none"?"display: none;":"";y=y.replace("£",""),y=y.replace("%",""),y=y.replace(",",""),y=Number.parseInt(y);const _=y/l,[x,k]=lt(m,u),[E,L]=lt(m+_,u),M=_>.5?1:0,T=["M 0 0",`L ${x?x.toFixed(0):0} ${k?k.toFixed(0):0}`,`A 100 100 0 ${M} 1 ${E?E.toFixed(0):0} ${L?L.toFixed(0):0}`,"L 0 0"].join(" ");n+=`<path d="${T}" style="${h.getAttribute("style")} --path-index: ${g};${w}"></path>`,c+=`<span class="h5 mb-0" part="popover">${nt(st(h.getAttribute("data-label"))).trim()}<br/>${h.hasAttribute("data-second")?`${h.getAttribute("data-second-label")}: ${h.getAttribute("data-second")}<br/>`:""}${(f=h.querySelector('[part="popover"]'))===null||f===void 0?void 0:f.innerHTML}</span>`,b!="none"&&(m+=_)}}),t+=`<div class="doughnut">
240
+ */const st=a=>a.charAt(0).toUpperCase()+a.slice(1),lt=a=>a.replace(/_/g," "),pr=(a,t)=>{for(let e=1;e<=10;e++){if(a.hasAttribute(`data-colour-${e}`)){const o=a.getAttribute(`data-colour-${e}`);a.style.setProperty(`--chart-colour-${e}`,`var(--chart-colour-${o})`),a.style.setProperty(`--chart-colour-${e}-hover`,`var(--chart-colour-${o}-hover)`)}Array.from(t.querySelectorAll(`[data-colour-${e}]`)).forEach(o=>{const r=o.getAttribute(`data-colour-${e}`);o.style.setProperty(`--chart-colour-${e}-set`,`var(--chart-colour-${r})`),o.style.setProperty(`--chart-colour-${e}-hover`,`var(--chart-colour-${r}-hover)`)})}return!0},W=(a,t,e)=>{if(a.tagName=="IAM-DOUGHNUTCHART")return br(a,t,e),!0;const o=t.querySelector(".chart__key");o.innerHTML="";const r=t.querySelector(".chart__guidelines");r.innerHTML="";const i=t.querySelector(".chart__yaxis");i.innerHTML="",Array.from(t.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(c=>{c.remove()});const{xaxis:n}=B(a);return G(a,e),dt(t,e,o),kr(a,r),xr(a,i),n&&Ar(t),!0},br=(a,t,e)=>{const o=t.querySelector(".chart__key");return o.innerHTML="",Array.from(t.querySelectorAll(':scope > input[type="checkbox"],:scope > input[type="radio"]')).map(r=>{r.remove()}),G(a,e),dt(t,e,o),mt(t),!0},gr=function(a,t){const e=t.querySelector(".chart");e.addEventListener("mousemove",n=>{if(n&&n.target instanceof HTMLElement&&n.target.closest("td:not(:first-child")){const c=n.target.closest("td:not(:first-child").getBoundingClientRect(),m=n.clientX-c.left,l=n.clientY-c.top;e.setAttribute("style",`--cursor-x: ${m}px; --cursor-y: ${l}px;`)}});const o=t.querySelectorAll("label");Array.from(o).forEach(n=>{t.querySelector(`input#${n.getAttribute("for")}`).checked?n.setAttribute("part","key-checked"):n.setAttribute("part","key-unchecked")});const r=a.querySelector("table"),i=t.querySelector("table");t.addEventListener("change",function(n){const c=n.target,m=new CustomEvent("view-change",{detail:{"data-dataset":c.getAttribute("data-dataset"),label:c.getAttribute("data-label"),checked:c.checked}});a.dispatchEvent(m),Array.from(o).forEach(l=>{var d;!((d=t.querySelector(`input#${l.getAttribute("for")}`))===null||d===void 0)&&d.checked?l.setAttribute("part","key-checked"):l.setAttribute("part","key-unchecked")}),i.innerHTML=r.innerHTML,G(a,i),a.tagName=="IAM-DOUGHNUTCHART"&&mt(t)})},fr=function(a,t){const e=a.querySelector("table"),o=t.querySelector("table"),r=(m,l)=>{l.disconnect(),c.disconnect();for(const d of m)(d.attributeName=="class"||d.type==="attributes"||d.type==="attributes")&&(o.innerHTML=e.innerHTML,W(a,t,o));l.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0})},i=(m,l)=>{l.disconnect(),c.disconnect();for(const d of m)(d.type=="characterData"||d.type=="childList"&&d.addedNodes.length)&&(o.innerHTML=e.innerHTML,W(a,t,o));l.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0})},n=new MutationObserver(i),c=new MutationObserver(r);return n.observe(e,{characterData:!0,subtree:!0}),c.observe(a,{attributes:!0}),!0};function ct(a,t){t>1&&(a=a-.25);const e=Math.cos(2*Math.PI*a),o=Math.sin(2*Math.PI*a);return[e*100,o*100]}const B=function(a){const t=a.shadowRoot.querySelector(".chart__wrapper table"),e=a.hasAttribute("data-min")?a.getAttribute("data-min"):0,o=a.hasAttribute("data-max")?a.getAttribute("data-max"):vr(a,t),r=a.hasAttribute("data-yaxis")?a.getAttribute("data-yaxis").split(","):[],i=a.hasAttribute("data-guidelines")?a.getAttribute("data-guidelines").split(","):[],n=a.hasAttribute("data-xaxis")?a.getAttribute("data-xaxis").split(","):null;return{min:e,max:o,yaxis:r,xaxis:n,guidelines:i}};function vr(a,t){const e=a.classList.contains("chart--stacked")?"tbody tr":"tbody td:not(:first-child)",o=Array.from(t.querySelectorAll(e)).map(i=>i.getAttribute("data-numeric")),r=Math.max(...o);return Math.ceil(r)}const Y=function(a,t,e,o){let r=String(a);r=r.replace("£",""),r=r.replace("%",""),r=r.replace(",",""),r=Number.parseFloat(r);let i=(r-t)/(e-t)*100,n=i,c=0;return o&&o!=0&&(c=(o-t)/(e-t)*100),t<0&&(c=Math.abs(t/(e-t)*100),r<0?(i=c-i,c=c-i,n=c):(i=i-c,n=i+c)),{percent:i,axis:n,bottom:c}},G=function(a,t){Array.from(t.querySelectorAll("tbody tr")).forEach(r=>{let i=0;Array.from(r.querySelectorAll("td:not(:first-child)")).forEach(n=>{const c=n.cloneNode(!0);Array.from(c.querySelectorAll("*")).forEach(l=>{l.remove()});const m=parseFloat(c.textContent.replace("£","").replace("%","").replace(",",""));n.setAttribute("data-numeric",m),n.setAttribute("data-value",c.textContent),getComputedStyle(n).display!="none"&&(i+=m),Array.from(n.querySelectorAll("a, button")).forEach((l,d)=>{d==0&&l.insertAdjacentHTML("beforeBegin","<hr/>"),l.classList.add("btn"),l.classList.add("btn-tertiary")})}),r.setAttribute("data-numeric",i)});const{min:e,max:o}=B(a);Array.from(t.querySelectorAll("tbody tr")).forEach((r,i)=>{const n=r.querySelector("td:first-child, th:first-child")?r.querySelector("td:first-child, th:first-child").textContent:"";r.setAttribute("part","group");const c=(r.getAttribute("data-numeric")-e)/(o-e)*100;r.style.setProperty("--percent",`${c}%`),Array.from(r.querySelectorAll("td:not([data-label])")).forEach((d,u)=>{u==0?d.setAttribute("part","xaxis-label"):d.setAttribute("part","value"),r.querySelectorAll("td").length>2&&d.setAttribute("data-label",t.querySelectorAll("thead th")[u].textContent)});const m=r.hasAttribute("data-min")?r.getAttribute("data-min"):e,l=r.hasAttribute("data-max")?r.getAttribute("data-max"):o;if(m<0){const d=Math.abs(m/(l-m)*100);a.setAttribute("style",`--min-bottom: ${d}%;`)}r.style.setProperty("--row-index",i+1),Array.from(r.querySelectorAll('td[data-numeric]:not([data-label="Min"]):not([data-label="Max"]):not(:first-child)')).forEach(d=>{if(getComputedStyle(d).display=="none")return;const u=d.innerHTML,p=Number.parseFloat(d.getAttribute("data-numeric")),h=Number.parseFloat(d.getAttribute("data-start"));if(d.querySelector("span[data-group]")||(d.innerHTML=`<span data-group="${n}" ${d.hasAttribute("data-label")?`data-label="${d.getAttribute("data-label")}"`:""} part="popover">${u}</span>`),!d.hasAttribute("style")){const{percent:g,bottom:v,axis:f}=Y(p,m,l,h);d.setAttribute("data-percent",g),d.setAttribute("style",`--bottom:${v}%;--percent:${g}%;--axis:${f}%;`)}})})},yr=function(a){const t=a.querySelector(".chart__wrapper"),e=a.querySelector(".chart__spacer span"),o=a.querySelector(".chart table");let r="";Array.from(o.querySelectorAll("tbody tr td:first-child")).forEach(i=>{typeof i.textContent<"u"&&i.textContent.length>r.length&&(r=i.textContent)}),t.setAttribute("data-longest-label",r),e.innerHTML=r},wr=function(a){const t=a.querySelector(".chart__wrapper"),e=a.querySelector(".chart table");let o="";Array.from(e.querySelectorAll("tbody tr td:not(:first-child)")).forEach(r=>{typeof r.getAttribute("data-value")<"u"&&r.getAttribute("data-value").length>o.length&&(o=r.getAttribute("data-value"))}),t.setAttribute("data-longest-value",o)},dt=function(a,t,e){const o=`chart-${Date.now()+(Math.floor(Math.random()*100)+1)}`;let r;const i=Array.from(t.querySelectorAll("thead th"));return i.forEach((n,c)=>{c!=0&&(r=_r(o,c,n.textContent,e,a,r)),c==50&&(i.length=c+1)}),!0};function _r(a,t,e,o,r,i){var n;const c=document.createElement("input");c.setAttribute("name",`${a}-dataset-${t}`),c.setAttribute("id",`${a}-dataset-${t}`),c.setAttribute("data-dataset",`${t}`),c.setAttribute("data-label",`${e}`),c.checked=!0,c.setAttribute("type","checkbox"),t==1?r.prepend(c):r.insertBefore(c,i.nextSibling),i=c;const m=document.createElement("label");m.setAttribute("class","key btn btn-action"),m.setAttribute("for",`${a}-dataset-${t}`),m.setAttribute("data-label",`${e}`),m.setAttribute("part","key");const l=(n=r.querySelector(`tbody tr td:nth-child(${t+1})`))===null||n===void 0?void 0:n.getAttribute("data-numeric");return m.setAttribute("data-numeric",l),m.innerHTML=`${e}`,o.append(m),i}const kr=function(a,t){const{min:e,max:o,yaxis:r}=B(a);let{guidelines:i}=B(a);i.length||(i=r),t.innerHTML="";for(let n=0;n<i.length;n++){const c=parseFloat(i[n].replace("£","").replace("%","").replace(",","")),{axis:m}=Y(c,e,o);t.innerHTML+=`<div class="guideline" style="--percent:${m}%;">${r.indexOf(i[n])!=-1?`<span>${i[n]}</span>`:""}</div>`}},xr=function(a,t){const{min:e,max:o,yaxis:r}=B(a);t.innerHTML="";for(let i=0;i<r.length;i++){const n=parseFloat(r[i].replace("£","").replace("%","")),{axis:c}=Y(n,e,o);t.innerHTML+=`<div class="axis__point" style="--percent:${c}%;"><span>${r[i]}</span></div>`}},Ar=function(a){const t=a.querySelector(".chart");let e=a.querySelector(".chart__xaxis");e||(e=document.createElement("div"),e.setAttribute("class","chart__xaxis")),t.prepend(e)},Lr=function(a){const t=a.querySelectorAll("thead th[title], tbody th[title]:first-child, tbody td[title]:first-child");Array.from(t).forEach(e=>{const o=`tooltip-${Date.now()}-${Math.floor(Math.random()*100)}`;e.innerHTML=`<button class="tooltip" popovertarget="${o}" part="tooltip" style="anchor-name: --${o};">${e.textContent}</button><span id="${o}" style="position-anchor: --${o};" popover part="tooltip__content" class="tooltip__content">${e.getAttribute("title")}</span>`})},mt=function(a){let t="";const e=a.querySelector(".chart");let o=a.querySelector(".doughnuts");o||(o=document.createElement("div"),o.setAttribute("class","doughnuts"),e.append(o)),Array.from(e.querySelectorAll("tbody tr")).forEach((r,i)=>{let n="",c="",m=0,l=0;const d=r.querySelectorAll("td")[0].innerHTML;let u=0;const p=r.getAttribute("data-numeric");Array.from(r.querySelectorAll("td")).forEach((h,g)=>{const v=getComputedStyle(h).display;if(g!=0&&v!="none"){let f=h.getAttribute("data-numeric");f=f.replace("£",""),f=f.replace("%",""),f=f.replace(",",""),f=Number.parseInt(f),l+=f,u++}}),Array.from(r.querySelectorAll("td")).forEach((h,g)=>{var v,f;const b=getComputedStyle(h).display;if(g!=0&&u==1&&b!="none")n+=`<path d="M 0 0 L 100 0 A 100 100 0 1 1 100 -0.01 L 0 0" style="${h.getAttribute("style")} --path-index: ${g};"></path>`,c+=`<span class="h5 mb-0" part="popover">${st(lt(h.getAttribute("data-label"))).trim()}<br/>${h.hasAttribute("data-second")?`${h.getAttribute("data-second-label")}: ${h.getAttribute("data-second")}<br/>`:""}${(v=h.querySelector('[part="popover"]'))===null||v===void 0?void 0:v.innerHTML}</span>`;else if(g!=0){let y=h.getAttribute("data-numeric");const w=b=="none"?"display: none;":"";y=y.replace("£",""),y=y.replace("%",""),y=y.replace(",",""),y=Number.parseInt(y);const _=y/l,[x,k]=ct(m,u),[E,L]=ct(m+_,u),M=_>.5?1:0,T=["M 0 0",`L ${x?x.toFixed(0):0} ${k?k.toFixed(0):0}`,`A 100 100 0 ${M} 1 ${E?E.toFixed(0):0} ${L?L.toFixed(0):0}`,"L 0 0"].join(" ");n+=`<path d="${T}" style="${h.getAttribute("style")} --path-index: ${g};${w}"></path>`,c+=`<span class="h5 mb-0" part="popover">${st(lt(h.getAttribute("data-label"))).trim()}<br/>${h.hasAttribute("data-second")?`${h.getAttribute("data-second-label")}: ${h.getAttribute("data-second")}<br/>`:""}${(f=h.querySelector('[part="popover"]'))===null||f===void 0?void 0:f.innerHTML}</span>`,b!="none"&&(m+=_)}}),t+=`<div class="doughnut">
241
241
  <svg viewBox="-105 -105 210 210" preserveAspectRatio="none" style="--row-index: ${i+1};">${n}</svg>
242
242
  <div class="doughnut__title" data-numeric="${p}"><span class="h5 mb-0">${d}</span></div>
243
243
  <div class="tooltips">${c}</div>
@@ -267,7 +267,7 @@
267
267
  <slot></slot>
268
268
  </div>
269
269
  `,(t=this.shadowRoot)===null||t===void 0||t.appendChild(r.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");const t=this.querySelectorAll("details");Array.from(t).forEach(e=>{e.classList.add("bg-primary");const o=e.querySelector("summary");o==null||o.classList.add("h3"),o!=null&&o.querySelector('[role="presentation"]')||o==null||o.insertAdjacentHTML("beforeend",' <span role="presentation">Find out more</span>')}),this.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("details summary")){const o=e.target.closest("details summary"),r=o==null?void 0:o.closest("details");r==null||r.classList.add("animating"),setTimeout(()=>{r==null||r.classList.remove("animating")},1100)}})}}const Mr=Object.freeze(Object.defineProperty({__proto__:null,default:$r},Symbol.toStringTag,{value:"Module"}));/*!
270
- * iamKey v7.2.1--beta1
270
+ * iamKey v7.2.1--beta2
271
271
  * Copyright 2022-2025 iamproperty
272
272
  */const Cr=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},Tr=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(o=>{a.addEventListener(o,function(r){const i={event:o,element:t,target:r.target};Object.keys(r.detail).forEach(n=>{const c=r.detail[n];i[n]=c}),window.dataLayer.push(i)})}),!0),zr=`<div class="card__head" part="head">
273
273
  <slot name="head"></slot>
@@ -298,7 +298,7 @@
298
298
  <slot name="btns"></slot>
299
299
  </div>
300
300
  </div>`),Array.from(t.querySelectorAll('[slot="btns"]')).forEach(n=>{n.classList.add("btn"),n.classList.add("btn-action")}),t.querySelector('[slot="checkbox"],[slot="secondary"]')){const n=t.querySelector('[slot="checkbox"],[slot="secondary"]');n.addEventListener("mouseenter",()=>{t.classList.add("prevent-hover")}),n.addEventListener("mouseleave",()=>{t.classList.remove("prevent-hover")})}if(t.shadowRoot.querySelector(".dialog__wrapper")){const n=t.shadowRoot.querySelector(".dialog__wrapper");n.addEventListener("mouseenter",()=>{t.classList.add("prevent-hover")}),n.addEventListener("mouseleave",()=>{t.classList.remove("prevent-hover")})}const o=t.querySelector('input[type="checkbox"]');o&&o.addEventListener("change",()=>{if(o.checked){const n=new CustomEvent("select-card",{detail:{"Card value":o.value,"input name":o.getAttribute("name")}});t.dispatchEvent(n)}else{const n=new CustomEvent("unselect-card",{detail:{"Card value":o.value,"input name":o.getAttribute("name")}});t.dispatchEvent(n)}});const r=t.querySelector('[slot="secondary"]');r&&r.addEventListener("click",()=>{const n=new CustomEvent("secondary-button-clicked",{detail:{Title:r.getAttribute("title")}});t.dispatchEvent(n)});const i=t.querySelectorAll('[slot="btns"]');Array.from(i).forEach(n=>{n.addEventListener("click",()=>{const c=new CustomEvent("action-button-clicked",{detail:{Title:n.getAttribute("title")}});t.dispatchEvent(c)})}),Tr(t,"iam-card",["select-card","unselect-card","secondary-button-clicked","action-button-clicked"])})}static get observedAttributes(){return["data-image"]}attributeChangedCallback(t,e,o){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total")&&(this.shadowRoot.querySelector(".card__total").innerHTML=o);break}case"data-image":{if(e!=o){const r=this.shadowRoot.querySelector(".card__head img");r&&r.setAttribute("src",o)}break}}}}},Symbol.toStringTag,{value:"Module"}));/*!
301
- * iamKey v7.2.1--beta1
301
+ * iamKey v7.2.1--beta2
302
302
  * Copyright 2022-2025 iamproperty
303
303
  */const jr=function(a){const t=[];return Array.from(a.querySelectorAll(":scope > div")).forEach((e,o)=>{e.hasAttribute("data-thumbnail")&&(t[o]=e.getAttribute("data-thumbnail"))}),t},Nr=function(a,t){const e=a.querySelectorAll(":scope > div").length;let o="";for(let r=1;r<=e;r++){let i=null,n="";t.length&&t[r-1]?(n="has-thumbnail",i=`<img src="${t[r-1]}" alt="Slide ${r}" height="148"/>`):i=`Slide ${r}`,o+=`<button class="control-${r} ${n}" data-slide="${r}" ${r==1?"aria-current":""}>${i}</button>`}return o},X=function(a,t){return t==1?a:Math.ceil(a/t)*t-t+1},K=function(a,t){return(a-1)/(t-1)*100},Fr=function(a){let t;const e=a.shadowRoot.querySelector(".carousel"),o=e.querySelector(".carousel__inner"),r=e.querySelector(".carousel__controls"),i=e.querySelector('.carousel__progress [type="range"]'),n=a.querySelectorAll(":scope > div").length;let c=o.clientWidth,m=a.querySelector(":scope > div").scrollWidth,l=Math.round(c/m);i.setAttribute("min",1),i.setAttribute("step",l);let d=X(n,l);i.setAttribute("max",d),i.value=1;let u=K(1,d);i.style.setProperty("--percent",u+"%");let p,h="mouseup",g="mousedown";"ontouchstart"in document.documentElement&&(h="touchend",g="touchstart"),o.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(function(){const v=o.clientWidth,f=o.scrollWidth,b=o.scrollLeft;let y=Math.round(b/f*n)+1;const w=a.querySelector(":scope > div").scrollWidth,_=a.querySelector(":scope > div:last-child").offsetLeft,x=o.scrollLeft+v+o.getBoundingClientRect().left>=_+60,k=Math.round(v/w),E=Math.ceil(n/k)*k-n;i.setAttribute("step",k),E>0&&x&&(y=Math.floor(n/k)*k+1),Array.from(e.querySelectorAll(".carousel__controls button")).forEach(L=>{L.removeAttribute("aria-current")}),e.querySelector(".control-"+y).setAttribute("aria-current",!0),y==1?e.querySelector(".btn-prev").setAttribute("disabled","disabled"):e.querySelector(".btn-prev").removeAttribute("disabled"),y>n-k?e.querySelector(".btn-next").setAttribute("disabled","disabled"):e.querySelector(".btn-next").removeAttribute("disabled"),i.value=y,d=X(n,k),i.setAttribute("max",d),u=y/d*100,u=K(y,d),i.style.setProperty("--percent",u+"%")},100)},!1),r.addEventListener("click",function(v){for(let f=v.target;f&&f!=this;f=f.parentNode)if(typeof f.matches=="function"&&f.matches("button")){v.preventDefault(),Array.from(r.querySelectorAll("button")).forEach(w=>{w.removeAttribute("aria-current")}),f.setAttribute("aria-current",!0);const b=new CustomEvent("pip-clicked",{detail:{slide:f.getAttribute("data-slide")}});a.dispatchEvent(b);const y=a.querySelector(`:scope > *:nth-child(${f.getAttribute("data-slide")})`);o.scroll({top:0,left:y.offsetLeft-o.getBoundingClientRect().left,behavior:"smooth"});break}},!1),e.addEventListener("click",function(v){const f=o.clientWidth,b=a.querySelector(":scope > div").scrollWidth,y=Math.round(f/b),w=a.querySelector(":scope > div:last-child").offsetLeft,_=o.scrollLeft+f+o.getBoundingClientRect().left>=w+60,x=Math.ceil(n/y)*y-n,k=y-x,E=_&&x>0?k*b:o.clientWidth;for(let L=v.target;L&&L!=this;L=L.parentNode)if(typeof L.matches=="function"&&L.matches(".btn-next, .btn-prev")){const M=L.matches(".btn-next")?"next":"prev",T=new CustomEvent(`${M}-clicked`,{detail:{slide:L.getAttribute("data-go")}});a.dispatchEvent(T),v.preventDefault();const H=L.classList.contains("btn-prev")?o.scrollLeft-E:o.scrollLeft+o.clientWidth;o.scroll({top:0,left:H,behavior:"smooth"});break}},!1),i.addEventListener(g,function(){clearInterval(p),p=setInterval(function(){c=o.clientWidth,m=a.querySelector(":scope > div").scrollWidth,l=Math.round(c/m),i.setAttribute("step",l),d=X(n,l),i.setAttribute("max",d),u=K(i.value,d),i.style.setProperty("--percent",u+"%")},10)}),i.addEventListener(h,function(){clearInterval(p)}),i.addEventListener("change",function(){clearInterval(p);const v=a.querySelector(`:scope > *:nth-child(${i.value})`);o.scroll({top:0,left:v?v.offsetLeft-o.getBoundingClientRect().left:0,behavior:"smooth"});const f=new CustomEvent("slider-changed",{detail:{slide:i.value}});a.dispatchEvent(f)},!1)},Pr=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},Dr=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(o=>{a.addEventListener(o,function(r){const i={event:o,element:t,target:r.target};Object.keys(r.detail).forEach(n=>{const c=r.detail[n];i[n]=c}),window.dataLayer.push(i)})}),!0);Pr("iam-carousel");class Vr 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=`
304
304
  <style>
@@ -330,7 +330,7 @@
330
330
 
331
331
  </div>
332
332
  `,this.shadowRoot.appendChild(t.content.cloneNode(!0))}connectedCallback(){const t=this;let e=[];const o=this.shadowRoot.querySelector(".carousel__controls");t.querySelector("[data-thumbnail]")&&(e=jr(t),t.classList.add("thumbnails")),o.innerHTML=Nr(t,e),Array.from(t.querySelectorAll(":scope > div > img:first-child:last-child, :scope > div > picture:first-child:last-child img")).forEach(r=>{r.style.inset="0 0.5rem 0 0.5rem",r.style.position="absolute",r.style.width="calc(100% - 1rem)",r.style.height="100%",r.style["object-fit"]="cover",r.closest("div").classList.add("image__wrapper")}),Fr(t),Dr(t,"iam-carousel",["pip-clicked","next-clicked","prev-clicked","slider-changed"])}}const Or=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"}));/*!
333
- * iamKey v7.2.1--beta1
333
+ * iamKey v7.2.1--beta2
334
334
  * Copyright 2022-2025 iamproperty
335
335
  */function Ir(a,t){const e=t.querySelector(".files"),o=t.querySelector(".drop-area"),r=a.querySelector("input"),i=a.hasAttribute("data-maxsize")?a.getAttribute("data-maxsize"):0,n=t.querySelector(".invalid-feedback.size"),c=t.querySelector(".invalid-feedback.ext"),m=r.cloneNode();o.append(m);const l=function(d){if(!r.hasAttribute("accept"))return!0;const u=d.split(".").pop();return!!r.getAttribute("accept").includes(u)};if(t.addEventListener("click",d=>{d&&d.target instanceof HTMLElement&&d.target.closest(".btn-primary")&&(c.classList.remove("d-block"),n.classList.remove("d-block"),(r.hasAttribute("multiple")?m:r).click())}),t.addEventListener("click",d=>{if(d&&d.target instanceof HTMLElement&&d.target.closest(".files button")){const u=new DataTransfer,{files:p}=r,h=d.target.closest(".files button");for(let f=0;f<p.length;f++){const b=p[f];b.name!=h.getAttribute("data-file")&&u.items.add(b)}r.files=u.files;const g=new Event("change");r.dispatchEvent(g);const v=new CustomEvent("fileRemoved",{detail:{removedFile:h==null?void 0:h.dataset.file}});a.dispatchEvent(v)}}),m.addEventListener("change",()=>{if(r.hasAttribute("multiple")){const u=[...r.files,...m.files],p=[],h=new DataTransfer;for(let g=0;g<u.length;g++){const v=u[g],f=v.size/1e3;!p.includes(v.name)&&(i==0||f<i)&&l(v.name)&&h.items.add(v),l(v.name)||c.classList.add("d-block"),f>i&&n.classList.add("d-block"),p.push(v.name)}r.files=h.files}else r.files=m.files;const d=new Event("change");r.dispatchEvent(d)}),m.addEventListener("dragenter",()=>{m.classList.add("focus")}),m.addEventListener("dragleave",()=>{m.classList.remove("focus")}),m.addEventListener("drop",()=>{m.classList.remove("focus")}),r.addEventListener("change",()=>{if(r.files.length==1){const u=r.files[0],p=u.size/1e3;if(!l(u.name)){c.classList.add("d-block");const h=new DataTransfer;r.files=h.files}if(p>i){n.classList.add("d-block");const h=new DataTransfer;r.files=h.files}}e.innerHTML="";for(const u of r.files)e.innerHTML+=`<span class="file" part="file">${u.name} <button data-file="${u.name}">Remove</button></span>`;const d=new CustomEvent("elementchange",{detail:{files:r.files}});if(a.dispatchEvent(d),r.files.length==0){const u=new CustomEvent("empty");a.dispatchEvent(u)}}),a.hasAttribute("data-filename")){const d=a.getAttribute("data-filename");d&&(e.innerHTML=`<span class="file">${d} <button data-file="${d}">Remove</button></span>`)}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"fileupload"});const Ur=Object.freeze(Object.defineProperty({__proto__:null,default:class 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`,o=document.createElement("template");o.innerHTML=`
336
336
  <style>
@@ -351,7 +351,7 @@
351
351
  <span class="invalid-feedback size">Some files were too large to upload.</span>
352
352
  </div>
353
353
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){this.innerHTML+='<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';const t=this.shadowRoot.querySelector(".file-upload"),e=this.querySelector("input"),o=this.shadowRoot.querySelector(".helper-text");this.querySelector('[slot="helper"]')||(o.innerHTML=`${this.hasAttribute("data-maxsize")?`Max file size is ${this.getAttribute("data-maxsize")}kb. `:""}${e.hasAttribute("accept")?`Supported file types are ${e.getAttribute("accept")}`:""}`),Ir(this,t)}static get observedAttributes(){return["data-filename"]}attributeChangedCallback(t,e,o){switch(t){case"data-filename":{if(e!=o){const r=this.shadowRoot.querySelector(".files");o!=null&&o!="null"&&o!=""&&(r.innerHTML=`<span class="file">${o} <button data-file="${o}">Remove</button></span>`)}break}}}}},Symbol.toStringTag,{value:"Module"}));/*!
354
- * iamKey v7.2.1--beta1
354
+ * iamKey v7.2.1--beta2
355
355
  * Copyright 2022-2025 iamproperty
356
356
  */const Wr=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},Yr=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(o=>{a.addEventListener(o,function(r){const i={event:o,element:t,target:r.target};Object.keys(r.detail).forEach(n=>{const c=r.detail[n];i[n]=c}),window.dataLayer.push(i)})}),!0),Gr=`<div class="card__head" part="head">
357
357
  <slot name="head"></slot>
@@ -376,7 +376,7 @@
376
376
  </style>
377
377
  ${Gr}
378
378
  `,this.shadowRoot.appendChild(t.content.cloneNode(!0))}connectedCallback(){return Kr(this,void 0,void 0,function*(){const t=this;Xr(t);const e=t.parentElement.querySelector('input[type="checkbox"]');if(e&&e.addEventListener("change",()=>{if(e.checked){const o=new CustomEvent("select-card",{detail:{"Card value":e.value,"input name":e.getAttribute("name")}});t.dispatchEvent(o),t.classList.add("active")}else{const o=new CustomEvent("unselect-card",{detail:{"Card value":e.value,"input name":e.getAttribute("name")}});t.dispatchEvent(o),t.classList.remove("active")}}),t.parentElement.matches("button")){const o=t.parentElement;o.addEventListener("click",()=>{if(t.classList.contains("active")){const r=new CustomEvent("unselect-card",{detail:{"button name":o.getAttribute("name")}});t.dispatchEvent(r),t.classList.remove("active")}else{const r=new CustomEvent("select-card",{detail:{"button name":o.getAttribute("name")}});t.dispatchEvent(r),t.classList.add("active")}})}Yr(t,"iam-filter-card",["select-card","unselect-card"])})}}},Symbol.toStringTag,{value:"Module"}));/*!
379
- * iamKey v7.2.1--beta1
379
+ * iamKey v7.2.1--beta2
380
380
  * Copyright 2022-2025 iamproperty
381
381
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class Qr 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`,o=document.createElement("template");o.innerHTML=`
382
382
  <style>
@@ -410,7 +410,7 @@
410
410
  <span class="btn btn-action border-0 bg-transparent prevent-invert d-none" id="notsaved"><i class="fa-regular fa-circle-info me-1"></i> Not Saved</span>
411
411
  </div>
412
412
  `,t.appendChild(i.content.cloneNode(!0))}connectedCallback(){const t=this,e=this.shadowRoot.querySelector("#save"),o=this.shadowRoot.querySelector("#cancel"),r=this.querySelector("input, textarea, select"),i=this.querySelector(".preview"),n=this.shadowRoot.querySelector("#saving"),c=this.shadowRoot.querySelector("#saved"),m=this.shadowRoot.querySelector("#notsaved");let l=r.value;o.addEventListener("click",()=>{r.value=l,r.blur(),t.blur(),t.classList.remove("was-validated"),m.classList.add("d-none");const d=new CustomEvent("inline-edit-cancel",{detail:{name:r.getAttribute("name")}});t.dispatchEvent(d)}),e.addEventListener("click",()=>{if(t.querySelector(":invalid"))return t.classList.add("was-validated"),!1;l=r.value;const d=new CustomEvent("inline-edit-save",{detail:{name:r.getAttribute("name"),value:r.value}});t.dispatchEvent(d),r.disabled=!0,r.blur(),t.blur(),n.classList.remove("d-none"),i&&(console.log(r.value),i.innerHTML=r.value)}),r.tagName==="INPUT"&&r.addEventListener("keydown",d=>{switch(d.key){case"Enter":d.stopPropagation(),d.preventDefault(),e.click();break}}),t.addEventListener("inline-edit-saved",()=>{setTimeout(()=>{n.classList.add("d-none"),c.classList.remove("d-none");const d=new CustomEvent("inline-edit-confirmed",{detail:{name:r.getAttribute("name")}});t.dispatchEvent(d)},100),setTimeout(()=>{r.disabled=!1,t.removeAttribute("data-saving"),n.classList.add("d-none"),c.classList.add("d-none"),m.classList.add("d-none")},1e3)}),r.tagName==="SELECT"&&r.addEventListener("change",()=>{l=r.value;const d=new CustomEvent("inline-edit-save",{detail:{name:r.getAttribute("name"),value:r.value}});t.dispatchEvent(d),t.setAttribute("data-saving","true"),r.disabled=!0,r.blur()}),r.tagName!="SELECT"&&r.addEventListener("focus",()=>{r.select()}),r.addEventListener("blur",()=>{if(r.value!=l)if(t.hasAttribute("data-autosave")){l=r.value;const d=new CustomEvent("inline-edit-autosave",{detail:{name:r.getAttribute("name"),value:r.value}});t.dispatchEvent(d),n.classList.remove("d-none"),i&&(i.innerHTML=r.value)}else t.querySelector(".inline-feedback")||m.classList.remove("d-none")}),t.addEventListener("change",d=>{if(d&&d.target instanceof HTMLElement&&d.target.closest('input[type="checkbox"]')){let u="";Array.from(t.querySelectorAll('label input[type="checkbox"]:checked')).forEach((h,g)=>{g!=0&&(u+=", "),u+=h.value});const p=new CustomEvent("inline-edit-save",{detail:{name:d.target.closest('input[type="checkbox"]').getAttribute("name"),value:u}});t.dispatchEvent(p)}})}}const ei=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));/*!
413
- * iamKey v7.2.1--beta1
413
+ * iamKey v7.2.1--beta2
414
414
  * Copyright 2022-2025 iamproperty
415
415
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"mutliselect"});const ai=Object.freeze(Object.defineProperty({__proto__:null,default:class 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`,o=document.createElement("template");o.innerHTML=`
416
416
  <style>
@@ -512,7 +512,7 @@ iam-menu details summary:not([class*="fa-"]:before {
512
512
  color: inherit;
513
513
  }
514
514
  </style>`)}}const li=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));/*!
515
- * iamKey v7.2.1--beta1
515
+ * iamKey v7.2.1--beta2
516
516
  * Copyright 2022-2025 iamproperty
517
517
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});const ci=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=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"):`${e}/css/core.min.css`,r=document.createElement("template");r.innerHTML=`
518
518
  <style class="styles">
@@ -561,11 +561,11 @@ iam-menu details summary:not([class*="fa-"]:before {
561
561
  </div>
562
562
  </div>
563
563
  </dialog>`);const c=this.shadowRoot.querySelector("#search-button"),m=this.shadowRoot.querySelector("#search-close"),l=this.shadowRoot.querySelector("#search-dialog");this.hasAttribute("data-search-open")&&(l.setAttribute("open","open"),this.classList.add("search-open"),c.setAttribute("aria-expanded",!0)),c.addEventListener("click",()=>{l.setAttribute("open","open"),this.classList.add("search-open"),c.setAttribute("aria-expanded",!0)}),m.addEventListener("click",()=>{l.removeAttribute("open"),this.classList.remove("search-open"),c.removeAttribute("aria-expanded")})}}}},Symbol.toStringTag,{value:"Module"}));/*!
564
- * iamKey v7.2.1--beta1
564
+ * iamKey v7.2.1--beta2
565
565
  * Copyright 2022-2025 iamproperty
566
- */const di=function(a){return typeof a!="string"?!1:!isNaN(a)&&!isNaN(parseFloat(a))},mi=(a,t)=>String(a).padStart(t,"0"),ui=a=>a.charAt(0).toUpperCase()+a.slice(1),z=(a,t,e)=>t.split(/[\.\[\]\'\"]/).filter(o=>o).reduce((o,r)=>o?o[r]:e,a),hi=(a=1)=>Math.floor(Math.random()*Date.now()*(a+1));var pi=function(a,t,e,o){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function c(d){try{l(o.next(d))}catch(u){n(u)}}function m(d){try{l(o.throw(d))}catch(u){n(u)}}function l(d){d.done?i(d.value):r(d.value).then(c,m)}l((o=o.apply(a,[])).next())})};const J=(a,t)=>{switch(a){case"datetime":return new Date(t).toLocaleDateString("en-gb",{weekday:"short",year:"2-digit",month:"long",day:"numeric"})+" "+new Date(t).toLocaleTimeString("en-gb",{hour:"2-digit",minute:"2-digit"});case"date":return new Date(t).toLocaleDateString("en-gb",{day:"numeric",month:"long",year:"2-digit"});case"capitalise":return t=ui(t)}},mt=function(a){const t=new Object;return Array.from(a.querySelectorAll("[data-filter]")).forEach(e=>{if(!(e.type=="radio"&&!e.checked)&&!(e.type=="checkbox"&&!e.checked)&&e&&e.value){const o=e.getAttribute("data-filter");let r=e.value;e.hasAttribute("data-date-from")&&(r+="-date-from"),e.hasAttribute("data-date-to")&&(r+="-date-to"),t[o]||(t[o]=[]),t[o].push(r)}}),t},bi=a=>{let t=document.createElement("form");a.hasAttribute("data-filterby")?t=document.querySelector(`#${a.getAttribute("data-filterby")}`):a.closest("form")?t=a.closest("form"):table.parentNode.insertBefore(t,table.nextSibling),t.hasAttribute("data-ajax")&&a.setAttribute("data-ajax",t.getAttribute("data-ajax")),t.hasAttribute("data-schema")&&a.setAttribute("data-schema",t.getAttribute("data-schema"))},F=(a,t,e,o,r)=>{e.querySelector("[name=show]")||e.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${a.getAttribute("data-show")}" />`),e.querySelector("[name=page]")||e.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${a.getAttribute("data-page")}" />`),o.addEventListener("update-show",i=>{if(e.querySelector("[name=show]").value!=i.detail.show){e.querySelector("[name=show]").value=i.detail.show;const n=new CustomEvent("update-show",{detail:{show:i.detail.show}});a.dispatchEvent(n),ht(a,o),r()}}),o.addEventListener("update-page",i=>{if(e.querySelector("[name=page]").value!=i.detail.page){e.querySelector("[name=page]").value=i.detail.page;const n=new CustomEvent("update-page",{detail:{page:i.detail.page}});if(a.dispatchEvent(n),ht(a,o),r(),!a.hasAttribute("data-no-scroll")){const c=t.getBoundingClientRect().top+window.pageYOffset+-250;window.scrollTo({top:c,behavior:"smooth"})}}})},gi=(a,t)=>{let e=document.createElement("form");return a.hasAttribute("data-filterby")?e=document.querySelector(`#${a.getAttribute("data-filterby")}`):a.closest("form")?e=a.closest("form"):t.parentNode.insertBefore(e,t.nextSibling),e},ut=(a,t,e,o)=>{const r=a.shadowRoot.querySelector(".table__wrapper");a.hasAttribute("data-total")||a.setAttribute("data-total",a.querySelectorAll("tbody tr").length),a.hasAttribute("data-page")||a.setAttribute("data-page",1),a.hasAttribute("data-show")||a.setAttribute("data-show",5),a.hasAttribute("data-increment")||a.setAttribute("data-increment",a.getAttribute("data-show")),fi(a,o),bt(t),vi(a,t),a.classList.contains("mh-sm")&&r.classList.add("mh-sm"),a.classList.contains("mh-md")&&r.classList.add("mh-md"),a.classList.contains("mh-lg")&&r.classList.add("mh-lg"),a.classList.contains("table--cta")&&(yi(a,t),wi(a,t))},fi=(a,t)=>{a.hasAttribute("data-total")&&t.setAttribute("data-total",a.getAttribute("data-total")),a.hasAttribute("data-page")&&t.setAttribute("data-page",a.getAttribute("data-page")),a.hasAttribute("data-show")&&t.setAttribute("data-show",a.getAttribute("data-show")),a.hasAttribute("data-increment")&&t.setAttribute("data-increment",a.getAttribute("data-show")),a.hasAttribute("data-page-jump")&&t.setAttribute("data-page-jump","true"),a.hasAttribute("data-per-page")&&t.setAttribute("data-per-page","true"),a.hasAttribute("data-item-count")&&t.setAttribute("data-item-count","true"),a.hasAttribute("data-loading")&&t.setAttribute("data-loading","true"),a.classList.contains("table--fullwidth")&&t.setAttribute("data-minimal","true")},ht=(a,t)=>{a.setAttribute("data-total",t.getAttribute("data-total")),a.setAttribute("data-page",t.getAttribute("data-page")),a.setAttribute("data-show",t.getAttribute("data-show")),a.setAttribute("data-increment",t.getAttribute("data-show"))},pt=a=>{a.getAttribute("data-total");const t=a.getAttribute("data-page"),e=a.getAttribute("data-show");a.getAttribute("data-increment");const o=a.querySelector("table"),r=t*e,i=r-e;Array.from(o.querySelectorAll("tbody tr")).forEach((n,c)=>{c>=i&&c<r?n.classList.add("show"):n.classList.remove("show")})},bt=a=>{const t=Array.from(a.querySelectorAll("thead th"));Array.from(a.querySelectorAll("tbody tr")).forEach(e=>{const o=Array.from(e.querySelectorAll("th, td")),r=["0","low","medium","high","unknown","n/a","pending","verified","due","overdue","incomplete","complete","completed","approval required","upcoming","requires approval","to do","on track","not started","warning","successful","failed"];o.forEach((i,n)=>{const c=t[n];if(typeof c<"u"){const m=document.createElement("div");m.innerHTML=c.innerHTML;const l=m.textContent||m.innerText||"";i.setAttribute("data-label",l),c.hasAttribute("data-td-class")&&i.setAttribute("class",c.getAttribute("data-td-class")),c.hasAttribute("data-format")&&(i.setAttribute("data-format",c.getAttribute("data-format")),i.innerHTML=J(c.getAttribute("data-format"),i.textContent.trim())),r.includes(i.textContent.trim().toLowerCase())&&i.setAttribute("data-content",i.textContent.trim().toLowerCase())}})})},vi=(a,t)=>{if(a.classList.contains("table--fullwidth")&&!a.hasAttribute("data-expandable")||t.querySelectorAll("thead tr th").length<4&&!a.hasAttribute("data-expandable"))return!1;Array.from(t.querySelectorAll("thead tr")).forEach(e=>{t.querySelectorAll("thead tr th.expand-button-heading").length||e.insertAdjacentHTML("afterbegin",`<th class="${a.hasAttribute("data-expandable")?"th--fixed ":""}expand-button-heading"></th>`)}),Array.from(t.querySelectorAll("tbody tr")).forEach((e,o)=>{const r=e.getAttribute("data-view")==="full"?"aria-expanded":"";e.insertAdjacentHTML("afterbegin",`<td class="${a.hasAttribute("data-expandable")?"td--fixed ":""}td--expand"><button class="btn btn-compact btn-secondary btn-sm" data-expand-button ${r} data-index="${o}">Expand</button></td>`)}),t.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-expand-button]")){const o=e.target.closest("[data-expand-button]"),r=o.closest("tr");o.toggleAttribute("aria-expanded"),r.getAttribute("data-view")=="full"?r.setAttribute("data-view","default"):r.setAttribute("data-view","full"),o.blur(),a.dispatchEvent(new CustomEvent("row-expanded",{detail:{row:o.getAttribute("data-index")}}))}})},yi=(a,t)=>{let e=0;Array.from(t.querySelectorAll("tbody tr")).forEach(o=>{const r=window.getComputedStyle(document.querySelector("html")),i=o.querySelector(":scope > *:last-child > *:first-child");if(i){i.classList.add("text-nowrap");let n=i.offsetWidth/parseFloat(r.fontSize);n+=1.8,e=e>n?e:n}}),a.style.setProperty("--cta-width",`${e}rem`)},wi=(a,t)=>{function e(){Array.from(t.querySelectorAll("tr")).forEach(o=>{const r=o.offsetHeight;o.style.setProperty("--row-height",`${r}px`)})}new ResizeObserver(e).observe(t)},gt=(a,t)=>{if(a.querySelector("iam-actionbar[data-selectall]")||document.querySelector(`iam-actionbar[data-for='${a.getAttribute("id")}']`)){const e=a.querySelector("iam-actionbar[data-selectall]")?a.querySelector("iam-actionbar[data-selectall]"):document.querySelector(`iam-actionbar[data-for='${a.getAttribute("id")}']`);_i(a,t,e)}a.querySelectorAll(".dialog__wrapper .btn-compact").forEach(e=>{e.classList.add("btn-sm"),e.classList.add("m-0");const o=e.closest("tr"),r=e.closest("td"),i=Array.prototype.slice.call(o.children).indexOf(r);r.classList.add("td--fixed"),t.querySelector(`thead tr th:nth-child(${i+1})`).classList.add("th--fixed")})},_i=(a,t,e)=>{Array.from(t.querySelectorAll("thead tr")).forEach(o=>{o.querySelector(".expand-button-heading")?o.querySelector(".expand-button-heading").insertAdjacentHTML("afterend",'<th class="th--fixed"></th>'):o.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')}),Array.from(t.querySelectorAll("tbody tr")).forEach((o,r)=>{if(o.setAttribute("data-index",r+1),!o.querySelector(".selectrow")){const i=`row${hi(r)}`;o.querySelector(".td--expand")?o.querySelector(".td--expand").insertAdjacentHTML("afterend",`<td class="td--fixed selectrow selected"><input type="checkbox" name="row" id="${i}" ${o.hasAttribute("data-selected")?'checked="true"':""}/><label for="${i}"><span class="visually-hidden">Select row</span></label></td>`):o.insertAdjacentHTML("afterbegin",`<td class="td--fixed selectrow selected"><input type="checkbox" name="row" id="${i}" ${o.hasAttribute("data-selected")?'checked="true"':""}/><label for="${i}"><span class="visually-hidden">Select row</span></label></td>`)}}),t.addEventListener("change",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest(".selectrow input")){const r=o.target.closest(".selectrow input"),i=o.target.closest("tr"),n=t.querySelectorAll('.selectrow input[type="checkbox"]').length,c=t.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;e.setAttribute("data-selected",n==c?"all":c);const m=new CustomEvent("row-selected",{detail:{rowIndex:i.getAttribute("data-index"),checked:!!r.checked}});a.dispatchEvent(m)}}),e.addEventListener("selected",o=>{if(o.detail.selected=="0"){Array.from(t.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(i=>{i.checked=!1});const r=new CustomEvent("all-rows-unselected");a.dispatchEvent(r)}else if(o.detail.selected=="all"){Array.from(t.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(i=>{i.checked=!0});const r=new CustomEvent("all-rows-selected");a.dispatchEvent(r)}})},ki=(a,t,e,o,r)=>{xi(a,t),Ai(a,t),e.addEventListener("change",i=>{i&&i.target instanceof HTMLElement&&i.target.closest("[data-sort]")&&ft(t,e,r)}),Li(a,t,e,o,r)},xi=(a,t)=>{t.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-sort]")){const o=e.target.closest("[data-sort]");o.setAttribute("data-sort","true"),Array.from(t.querySelectorAll("th[data-sort]")).forEach(c=>{c!=o&&(c.setAttribute("data-sort",""),c.removeAttribute("data-order-by"),o.setAttribute("title","Click to sort ascending"))}),o.hasAttribute("data-order-by")&&o.getAttribute("data-order-by")=="asc"?(o.setAttribute("data-order-by","desc"),o.setAttribute("title","Click to sort ascending")):(o.setAttribute("data-order-by","asc"),o.setAttribute("title","Click to sort descending"));const r=new CustomEvent("sort-by-heading",{detail:{heading:o.textContent,sortBy:o.getAttribute("data-order-by"),ref:o.getAttribute("data-ref")}});a.dispatchEvent(r);const i=o.textContent.trim(),n=o.getAttribute("data-order-by");a.hasAttribute("data-submit")||vt(t,i,n)}})},Ai=(a,t)=>{var e;const o=a.querySelector("iam-actionbar");if(!o)return!1;const r=(e=o.shadowRoot)===null||e===void 0?void 0:e.querySelector("input#search");if(!r)return!1;const i=r.getAttribute("id"),n=r.parentNode,c={};t.querySelectorAll("tbody td:not(.td--fixed)").forEach(m=>{m.querySelector(".td__content")?c[m.querySelector(".td__content").textContent]=m.querySelector(".td__content").textContent:c[m.textContent]=m.textContent}),r.setAttribute("list",`${i}_list`),r.setAttribute("autocomplete","off"),n.querySelector("datalist")||(n.innerHTML+=`<datalist id="${i}_list"></datalist>`),n.querySelector("datalist").innerHTML=`${Object.keys(c).map(m=>`<option value="${m}"></option>`).join("")}`},ft=(a,t,e)=>{if(t.getAttribute("data-ajax"))return!1;const o=a.querySelector("tbody");let r=t.querySelector('input[type="radio"][data-sort]:checked');if(t.querySelector("select[data-sort]")){const m=t.querySelector("select[data-sort]");r=t.querySelector(`select[data-sort] option:nth-child(${m.selectedIndex+1})`)}const i=r.getAttribute("data-sort"),n=r.getAttribute("data-order"),c=r.getAttribute("data-format");if(!i)return o.innerHTML=e.innerHTML,bt(a),!1;vt(a,i,n,c)},vt=(a,t,e,o="")=>{const r=a.querySelector("tbody");let i=[];["asc","desc","descending"].includes(e)||(i=e.split(","));let n=[];Array.from(r.querySelectorAll("tr")).forEach(m=>{let l=m.querySelector('td[data-label="'+t+'"], th[data-label="'+t+'"]').textContent.trim();m.querySelector('[data-label="'+t+'"] .td__content')&&(l=m.querySelector('[data-label="'+t+'"] .td__content').textContent.trim()),i.length&&i.includes(l)&&(l=i.indexOf(l)),di(l)&&(l=mi(l,10)),o&&o=="date"&&(l=new Date(l));const d={index:l,row:m};n.push(d)}),n.sort((m,l)=>m.index>l.index?1:-1),(e=="descending"||e=="desc")&&(n=n.reverse());let c="";n.forEach(m=>{c+=m.row.outerHTML}),r.innerHTML=c},Li=(a,t,e,o,r)=>{let i;const n=function(l,d=!1){if(e.classList.contains("processing"))return!1;Array.from(e.querySelectorAll("iam-applied-filters")).forEach(u=>{const p=new Event("tags-set");u.dispatchEvent(p)}),l.type=="submit"&&(e.classList.add("processing"),Array.from(e.querySelectorAll("[data-duplicate]")).forEach(u=>{const p=u.getAttribute("data-duplicate"),h=document.getElementById(p),g=document.querySelector(`[for="${p}"] iam-card`);if(h.checked!=u.checked)if(g){const v=new Event("click");g.dispatchEvent(v)}else h.checked=u.checked}),e.classList.remove("processing")),Q(a,t,e,o),yt(a,t,e)};a.querySelector("iam-actionbar[data-search]")&&a.querySelector("iam-actionbar[data-search]").addEventListener("search-submit",l=>{e.querySelector("input[data-search]")?e.querySelector("input[data-search]").value=l.detail.search:e.insertAdjacentHTML("beforeend",`<input type="hidden" name="search" data-search="${a.querySelector("iam-actionbar[data-search]").getAttribute("data-search")}" value="${l.detail.search}"/>`);const d=new CustomEvent("search-submit",{detail:l.details});a.dispatchEvent(d),clearTimeout(i),n(l)}),a.querySelector("iam-actionbar")&&!a.querySelector("iam-actionbar").closest("form")&&a.querySelector("iam-actionbar").addEventListener("change",l=>{e.querySelector(".duplicate-actionbar")||e.insertAdjacentHTML("beforeend",'<div class="duplicate-actionbar" style="visibility: hidden; pointer-events: none; position: absolute;"></div>'),e.querySelector(".duplicate-actionbar").innerHTML=a.querySelector("iam-actionbar").innerHTML,Q(a,t,e,o)}),e.addEventListener("keyup",l=>{clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest("input[data-search]")&&(i=setTimeout(function(){n(l)},500))}),e.addEventListener("change",l=>{if(clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest("input[data-search]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter][data-no-ajax]")?(Q(a,t,e,o),yt(t,e)):(l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter]")&&l.target.closest("form .dialog__wrapper > dialog")||l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter]")&&!l.target.closest("form dialog"))&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-show]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-mimic]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.hasAttribute("id")){const d=l.target.getAttribute("id");document.querySelector(`[data-duplicate="${d}"]`)&&(document.querySelector(`[data-duplicate="${d}"]`).checked=l.target.checked)}}),e.addEventListener("click",l=>{if(clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest('dialog button:not([type="button"])')&&l.target.closest('dialog button:not([type="button"])').closest("dialog").close(),l&&l.target instanceof HTMLElement&&l.target.closest(".dialog__close")&&(l.preventDefault(),l.stopPropagation()),l&&l.target instanceof HTMLElement&&l.target.closest("[data-clear]")){e.classList.add("processing"),Array.from(e.querySelectorAll(".applied-filters")).forEach(u=>{u.innerHTML=""});const d=e.elements;for(let u=0;u<d.length;u++)switch(d[u].type.toLowerCase()?d[u].type.toLowerCase():"text"){case"text":case"password":case"textarea":d[u].value="";break;case"radio":case"checkbox":if(d[u].checked){const p=d[u],h=p.getAttribute("id"),g=document.querySelector(`[for="${h}"`);if(g.querySelector("iam-card")){const v=g.querySelector("iam-card"),f=new Event("click");v.dispatchEvent(f)}p.checked=!1}break;case"select-one":case"select-multi":d[u].selectedIndex=-1;break}e.classList.remove("processing"),e.hasAttribute("data-submit")||ft(t,e,r),n(l)}}),e.addEventListener("submit",l=>{clearTimeout(i),e.hasAttribute("data-submit")||l.preventDefault(),n(l)}),e.addEventListener("force",l=>{n(l)}),e.addEventListener("paginate",l=>{n(l,!0)});const c=[],m=[];Array.from(e.querySelectorAll("[data-mimic]")).forEach(l=>{const d=l.getAttribute("data-mimic");Array.from(document.querySelectorAll(`[name="${d}"]`)).forEach(u=>{const p=u.closest("form");c.includes(p)||c.push(p),m.includes(d)||m.push(d)})}),c.forEach(l=>{const d=function(){const u=[],p=new FormData(l);for(const[h,g]of p)document.querySelector(`[data-mimic="${h}"]`)&&!u.includes(h)?(u.push(h),document.querySelector(`[data-mimic="${h}"]`).value=g):document.querySelector(`[data-mimic="${h}"]`)&&(document.querySelector(`[data-mimic="${h}"]`).value+=","+g);for(const h of u){const g=new Event("force");e.dispatchEvent(g)}for(const h of m)if(!p.has(h)&&l.querySelector(`[name="${h}"]`)){document.querySelector(`[data-mimic="${h}"]`).value="";const g=new Event("force");e.dispatchEvent(g)}};l.addEventListener("force",()=>{d()}),l.addEventListener("change",()=>{d()})})},Q=(a,t,e,o)=>{t.classList.remove("table--filtered");const r=mt(e),i=[];let n=0;const c=e.querySelector("[data-pagination]")?parseInt(e.querySelector("[data-pagination]").value):1,m=e.querySelector("[data-show]")?parseInt(e.querySelector("[data-show]").value):15;if(Array.from(t.querySelectorAll("tbody tr")).forEach(d=>{d.classList.remove("filtered"),d.classList.remove("filtered--matched"),d.classList.remove("filtered--show"),d.removeAttribute("data-filtered-by")}),e.querySelector("input[data-search]")){const d=e.querySelector("input[data-search]");t.querySelectorAll("thead tr th").forEach(u=>{i.push({column:`${u.textContent.trim()}`,value:`${d.value}`})})}Array.from(e.querySelectorAll("[data-filter-count]")).forEach(d=>{d.innerHTML="",d.parentNode.classList.remove("hover")});let l=0;Object.values(r).forEach(d=>{typeof d=="object"&&Object.values(d).length?l+=Object.values(d).length:l++}),l&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(d=>{d.innerHTML+=`(${l})`,d.parentNode.classList.add("hover")}),t.classList.add("table--filtered");for(const[d,u]of Object.entries(r))Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(p=>{let h=!1;u.forEach(g=>{const v=p.querySelector(`[data-label="${d}"]`);if(g.includes("-date-from")){const f=new Date(g.replace("-date-from","")),b=new Date(v.textContent.toLowerCase());f.setHours(0,0,0,0),b.setHours(0,0,0,0),b<f?(p.classList.add("less-than-from-date"),h=!1):!p.classList.contains("less-than-from-date")&&!p.classList.contains("greater-than-to-date")&&(h=!0)}else if(g.includes("-date-to")){const f=new Date(g.replace("-date-to","")),b=new Date(v.textContent.toLowerCase());f.setHours(0,0,0,0),b.setHours(0,0,0,0),b>f?(p.classList.add("greater-than-to-date"),h=!1):!p.classList.contains("less-than-from-date")&&!p.classList.contains("greater-than-to-date")&&(h=!0)}if(g&&g=="$today")g=J("date",new Date);else if(g&&g=="$yesterday"){const f=new Date;f.setDate(f.getDate()-1),g=J("date",f)}else if(g&&(g=="$thisWeek"||g=="$lastWeek")){const f=new Date,b=new Date(f.setDate(f.getDate()-(f.getDay()-1))),y=new Date(f.setDate(f.getDate()-f.getDay()+7)),w=new Date(v.textContent.toLowerCase());if(f.setHours(0,0,0,0),b.setHours(0,0,0,0),y.setHours(0,0,0,0),w.setHours(0,0,0,0),g=="$thisWeek")h=w>=b&&w<=y;else{const _=new Date(b.setDate(b.getDate()-7)),x=new Date(y.setDate(y.getDate()-7));_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=w>=_&&w<=x}}else if(g&&g=="$thisMonth"){const f=new Date,b=f.getFullYear(),y=f.getMonth(),w=new Date(b,y,1),_=new Date(b,y+1,0),x=new Date(v.textContent.toLowerCase());w.setHours(0,0,0,0),_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=w&&x<=_}else if(g&&g=="$lastMonth"){const f=new Date,b=f.getFullYear(),y=f.getMonth(),w=new Date(b,y-1,1),_=new Date(b,y,0),x=new Date(v.textContent.toLowerCase());w.setHours(0,0,0,0),_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=w&&x<=_}v&&v.textContent.toLowerCase().includes(g.replace("-"," ").toLowerCase())&&(h=!0)}),h||(p.classList.add("filtered"),p.setAttribute("data-filtered-by",d))});Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(d=>{let u=!(i.length>0&&i[0].value.length>=3);i.forEach(p=>{const h=d.querySelector(`[data-label="${p.column}"]`);h&&p.value.length>=3&&h.textContent.toLowerCase().includes(p.value.toLowerCase())&&(u=!0)}),u||d.classList.add("filtered")}),Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(d=>{n++,d.classList.add("filtered--matched"),Math.ceil(n/m)==parseInt(c)&&d.classList.add("filtered--show")}),o&&(o.setAttribute("data-total",n),o.setAttribute("data-show",m),o.setAttribute("data-page",c))},yt=(a,t,e)=>{Array.from(e.querySelectorAll("[data-query]")).forEach(o=>{const r=o.getAttribute("data-query");let i=0;if(r=="total")a.hasAttribute("data-total")?i=a.getAttribute("data-total"):i=(t.classList.contains("table--filtered"),t.querySelectorAll("tbody tr").length);else if(!r.includes(" == ")&&r.includes(" & ")){const n=r.split(" & ");let c="";n.forEach(m=>{c+=`:not([data-filtered-by="${m}"])`}),i=Array.from(t.querySelectorAll(`tbody tr${c}`)).length}else if(!r.includes(" == "))i=Array.from(t.querySelectorAll(`tbody tr:not([data-filtered-by="${r}"])`)).length;else if(r.includes(" && ")){const n=r.split(" && ");i=Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).filter(function(c){let m=!0;for(const l of Object.entries(n)){const d=l.split(" == ");(!c.querySelector(`td[data-label="${d[0]}"]`)||c.querySelector(`td[data-label="${d[0]}"]`).textContent!=`${d[1]}`)&&(m=!1)}return m}).length}else{const n=r.split(" == ");i=Array.from(t.querySelectorAll(`tbody tr.filtered--matched td[data-label="${n[0]}"], tbody tr[data-filtered-by="${n[0]}"] td[data-label="${n[0]}"]`)).filter(function(c){return c.textContent===n[1]}).length}o.hasAttribute("data-total")?o.setAttribute("data-total",i):o.innerHTML=i})},Si=(a,t,e,o)=>{e.setAttribute("method","get");const r=a.querySelector("iam-actionbar");r&&r.addEventListener("change",i=>{e.submit()})},Ei=(a,t,e,o)=>{P(a,t,e,o);const r=a.querySelector("iam-actionbar");e.addEventListener("submit",i=>{P(a,t,e,o),i.preventDefault()}),r&&r.addEventListener("change",i=>{P(a,t,e,o)})},P=function(a,t,e,o){return pi(this,void 0,void 0,function*(){a.querySelector("iam-actionbar")&&!a.querySelector("iam-actionbar").closest("form")&&(e.querySelector(".duplicate-actionbar")||e.insertAdjacentHTML("beforeend",'<div class="duplicate-actionbar" style="visibility: hidden; pointer-events: none; position: absolute;"></div>'),e.querySelector(".duplicate-actionbar").innerHTML=a.querySelector("iam-actionbar").innerHTML),e.querySelector("input[name=show]")||e.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${a.getAttribute("data-show")}" />`),e.querySelector("input[name=page]")||e.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${a.getAttribute("data-page")}" />`),e.querySelector("input[name=page]").value=a.getAttribute("data-page"),e.querySelector("input[name=show]").value=a.getAttribute("data-show");const r=new FormData(e),i=new URLSearchParams(r).toString(),n=t.querySelectorAll("thead tr th:not(.expand-button-heading)"),c=t.querySelector("tbody"),m=e.getAttribute("data-ajax");a.classList.add("table--loading");const l=mt(e);Array.from(e.querySelectorAll("[data-filter-count]")).forEach(p=>{p.innerHTML="",p.parentNode.classList.remove("hover")});let d=0;Object.values(l).forEach(p=>{typeof p=="object"&&Object.values(p).length?d+=Object.values(p).length:d++}),d&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(p=>{p.innerHTML+=`(${d})`,p.parentNode.classList.add("hover")}),window.controller||(window.controller=[]),window.controller[m]&&window.controller[m].abort(),window.controller[m]=new AbortController;const{signal:u}=controller[m];o.setAttribute("data-loading","true"),e.classList.add("processing");try{yield fetch(m+"?"+i,{signal:u,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then(p=>p.json()).then(p=>{const h=e.hasAttribute("data-schema")?e.getAttribute("data-schema"):"data",g=e.hasAttribute("data-schema-total")?e.getAttribute("data-schema-total"):"meta.total",v=e.hasAttribute("data-schema-page")?e.getAttribute("data-schema-page"):"meta.current_page",f=z(p,g,15),b=z(p,v,1),y=z(p,h),w=a.hasAttribute("data-empty-msg")?a.getAttribute("data-empty-msg"):"No results found";y?(c.innerHTML="",y.forEach(_=>{const x=document.createElement("tr");n.forEach(k=>{let E="";const L=document.createElement("td");if(L.setAttribute("data-label",k.innerText),k.getAttribute("data-output")&&(E=k.getAttribute("data-output").replace(new RegExp(/{(.*?)}/,"gm"),function(M){return z(_,M.replace("{","").replace("}",""))})),k.hasAttribute("data-output-array")){const M=k.getAttribute("data-output"),T=z(_,M.replace("{","").replace("}",""));E="",T.forEach(H=>{const D=k.getAttribute("data-output-array");let $="";if(k.hasAttribute("data-output-array-property")&&k.hasAttribute("data-output-array-transform")){const C=z(H,k.getAttribute("data-output-array-property")),R=JSON.parse(k.getAttribute("data-output-array-transform"))[C];$=D.replace(`{${k.getAttribute("data-output-array-property")}}`,R)}$=$.replace(new RegExp(/{(.*?)}/,"gm"),function(C){return z(H,C.replace("{","").replace("}",""))}),E+=$})}k.hasAttribute("data-transform")&&(E=JSON.parse(k.getAttribute("data-transform"))[E],!E&&k.hasAttribute("data-default")&&(E=k.getAttribute("data-default"))),L.innerHTML=E,x.appendChild(L)}),c.appendChild(x)}),a.setAttribute("data-total",parseInt(f)),a.setAttribute("data-page",parseInt(b)),o.setAttribute("data-total",f),o.setAttribute("data-page",b),Array.from(e.querySelectorAll("[data-ajax-query]")).forEach(_=>{const x=z(p,_.getAttribute("data-ajax-query"),"");_.hasAttribute("data-total")?_.setAttribute("data-total",x):_.innerHTML=x}),parseInt(f)==0&&(c.innerHTML=`<tr><td colspan="100%"><span>${w}</span></td></tr>`),a.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:m,formData:i}),ut(a,t,e,o),gt(a,t,e,o)):c.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',o.removeAttribute("data-loading"),e.classList.remove("processing")})}catch(p){console.log(p)}})};class qi 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=`
566
+ */const di=function(a){return typeof a!="string"?!1:!isNaN(a)&&!isNaN(parseFloat(a))},mi=(a,t)=>String(a).padStart(t,"0"),ui=a=>a.charAt(0).toUpperCase()+a.slice(1),z=(a,t,e)=>t.split(/[\.\[\]\'\"]/).filter(o=>o).reduce((o,r)=>o?o[r]:e,a),hi=(a=1)=>Math.floor(Math.random()*Date.now()*(a+1));var pi=function(a,t,e,o){function r(i){return i instanceof e?i:new e(function(n){n(i)})}return new(e||(e=Promise))(function(i,n){function c(d){try{l(o.next(d))}catch(u){n(u)}}function m(d){try{l(o.throw(d))}catch(u){n(u)}}function l(d){d.done?i(d.value):r(d.value).then(c,m)}l((o=o.apply(a,[])).next())})};const J=(a,t)=>{switch(a){case"datetime":return new Date(t).toLocaleDateString("en-gb",{weekday:"short",year:"2-digit",month:"long",day:"numeric"})+" "+new Date(t).toLocaleTimeString("en-gb",{hour:"2-digit",minute:"2-digit"});case"date":return new Date(t).toLocaleDateString("en-gb",{day:"numeric",month:"long",year:"2-digit"});case"capitalise":return t=ui(t)}},ut=function(a){const t=new Object;return Array.from(a.querySelectorAll("[data-filter]")).forEach(e=>{if(!(e.type=="radio"&&!e.checked)&&!(e.type=="checkbox"&&!e.checked)&&e&&e.value){const o=e.getAttribute("data-filter");let r=e.value;e.hasAttribute("data-date-from")&&(r+="-date-from"),e.hasAttribute("data-date-to")&&(r+="-date-to"),t[o]||(t[o]=[]),t[o].push(r)}}),t},bi=a=>{let t=document.createElement("form");const e=a.querySelector("table");a.hasAttribute("data-filterby")?t=document.querySelector(`#${a.getAttribute("data-filterby")}`):a.closest("form")?t=a.closest("form"):e.parentNode.insertBefore(t,e.nextSibling),t.hasAttribute("data-ajax")&&a.setAttribute("data-ajax",t.getAttribute("data-ajax")),t.hasAttribute("data-schema")&&a.setAttribute("data-schema",t.getAttribute("data-schema"))},F=(a,t,e,o,r)=>{e.querySelector("[name=show]")||e.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${a.getAttribute("data-show")}" />`),e.querySelector("[name=page]")||e.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${a.getAttribute("data-page")}" />`),o.addEventListener("update-show",i=>{if(e.querySelector("[name=show]").value!=i.detail.show){e.querySelector("[name=show]").value=i.detail.show;const n=new CustomEvent("update-show",{detail:{show:i.detail.show}});a.dispatchEvent(n),pt(a,o),r()}}),o.addEventListener("update-page",i=>{if(e.querySelector("[name=page]").value!=i.detail.page){e.querySelector("[name=page]").value=i.detail.page;const n=new CustomEvent("update-page",{detail:{page:i.detail.page}});if(a.dispatchEvent(n),pt(a,o),r(),!a.hasAttribute("data-no-scroll")){const c=t.getBoundingClientRect().top+window.pageYOffset+-250;window.scrollTo({top:c,behavior:"smooth"})}}})},gi=(a,t)=>{let e=document.createElement("form");return a.hasAttribute("data-filterby")?e=document.querySelector(`#${a.getAttribute("data-filterby")}`):a.closest("form")?e=a.closest("form"):t.parentNode.insertBefore(e,t.nextSibling),e},ht=(a,t,e,o)=>{const r=a.shadowRoot.querySelector(".table__wrapper");a.hasAttribute("data-total")||a.setAttribute("data-total",a.querySelectorAll("tbody tr").length),a.hasAttribute("data-page")||a.setAttribute("data-page",1),a.hasAttribute("data-show")||a.setAttribute("data-show",5),a.hasAttribute("data-increment")||a.setAttribute("data-increment",a.getAttribute("data-show")),fi(a,o),bt(t),vi(a,t),a.classList.contains("mh-sm")&&r.classList.add("mh-sm"),a.classList.contains("mh-md")&&r.classList.add("mh-md"),a.classList.contains("mh-lg")&&r.classList.add("mh-lg"),a.classList.contains("table--cta")&&(yi(a,t),wi(a,t))},fi=(a,t)=>{a.hasAttribute("data-total")&&t.setAttribute("data-total",a.getAttribute("data-total")),a.hasAttribute("data-page")&&t.setAttribute("data-page",a.getAttribute("data-page")),a.hasAttribute("data-show")&&t.setAttribute("data-show",a.getAttribute("data-show")),a.hasAttribute("data-increment")&&t.setAttribute("data-increment",a.getAttribute("data-show")),a.hasAttribute("data-page-jump")&&t.setAttribute("data-page-jump","true"),a.hasAttribute("data-per-page")&&t.setAttribute("data-per-page","true"),a.hasAttribute("data-item-count")&&t.setAttribute("data-item-count","true"),a.hasAttribute("data-loading")&&t.setAttribute("data-loading","true"),a.classList.contains("table--fullwidth")&&t.setAttribute("data-minimal","true")},pt=(a,t)=>{a.setAttribute("data-total",t.getAttribute("data-total")),a.setAttribute("data-page",t.getAttribute("data-page")),a.setAttribute("data-show",t.getAttribute("data-show")),a.setAttribute("data-increment",t.getAttribute("data-show"))},Q=a=>{a.getAttribute("data-total");const t=a.getAttribute("data-page"),e=a.getAttribute("data-show");a.getAttribute("data-increment");const o=a.querySelector("table"),r=t*e,i=r-e;Array.from(o.querySelectorAll("tbody tr")).forEach((n,c)=>{c>=i&&c<r?n.classList.add("show"):n.classList.remove("show")})},bt=a=>{const t=Array.from(a.querySelectorAll("thead th"));Array.from(a.querySelectorAll("tbody tr")).forEach(e=>{const o=Array.from(e.querySelectorAll("th, td")),r=["0","low","medium","high","unknown","n/a","pending","verified","due","overdue","incomplete","complete","completed","approval required","upcoming","requires approval","to do","on track","not started","warning","successful","failed"];o.forEach((i,n)=>{const c=t[n];if(typeof c<"u"){const m=document.createElement("div");m.innerHTML=c.innerHTML;const l=m.textContent||m.innerText||"";i.setAttribute("data-label",l),c.hasAttribute("data-td-class")&&i.setAttribute("class",c.getAttribute("data-td-class")),c.hasAttribute("data-format")&&(i.setAttribute("data-format",c.getAttribute("data-format")),i.innerHTML=J(c.getAttribute("data-format"),i.textContent.trim())),r.includes(i.textContent.trim().toLowerCase())&&i.setAttribute("data-content",i.textContent.trim().toLowerCase())}})})},vi=(a,t)=>{if(a.classList.contains("table--fullwidth")&&!a.hasAttribute("data-expandable")||t.querySelectorAll("thead tr th").length<4&&!a.hasAttribute("data-expandable"))return!1;Array.from(t.querySelectorAll("thead tr")).forEach(e=>{t.querySelectorAll("thead tr th.expand-button-heading").length||e.insertAdjacentHTML("afterbegin",`<th class="${a.hasAttribute("data-expandable")?"th--fixed ":""}expand-button-heading"></th>`)}),Array.from(t.querySelectorAll("tbody tr")).forEach((e,o)=>{const r=e.getAttribute("data-view")==="full"?"aria-expanded":"";e.insertAdjacentHTML("afterbegin",`<td class="${a.hasAttribute("data-expandable")?"td--fixed ":""}td--expand"><button class="btn btn-compact btn-secondary btn-sm" data-expand-button ${r} data-index="${o}">Expand</button></td>`)}),t.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-expand-button]")){const o=e.target.closest("[data-expand-button]"),r=o.closest("tr");o.toggleAttribute("aria-expanded"),r.getAttribute("data-view")=="full"?r.setAttribute("data-view","default"):r.setAttribute("data-view","full"),o.blur(),a.dispatchEvent(new CustomEvent("row-expanded",{detail:{row:o.getAttribute("data-index")}}))}})},yi=(a,t)=>{let e=0;Array.from(t.querySelectorAll("tbody tr")).forEach(o=>{const r=window.getComputedStyle(document.querySelector("html")),i=o.querySelector(":scope > *:last-child > *:first-child");if(i){i.classList.add("text-nowrap");let n=i.offsetWidth/parseFloat(r.fontSize);n+=1.8,e=e>n?e:n}}),a.style.setProperty("--cta-width",`${e}rem`)},wi=(a,t)=>{function e(){Array.from(t.querySelectorAll("tr")).forEach(o=>{const r=o.offsetHeight;o.style.setProperty("--row-height",`${r}px`)})}new ResizeObserver(e).observe(t)},gt=(a,t)=>{if(a.querySelector("iam-actionbar[data-selectall]")||document.querySelector(`iam-actionbar[data-for='${a.getAttribute("id")}']`)){const e=a.querySelector("iam-actionbar[data-selectall]")?a.querySelector("iam-actionbar[data-selectall]"):document.querySelector(`iam-actionbar[data-for='${a.getAttribute("id")}']`);_i(a,t,e)}a.querySelectorAll(".dialog__wrapper .btn-compact").forEach(e=>{e.classList.add("btn-sm"),e.classList.add("m-0");const o=e.closest("tr"),r=e.closest("td"),i=Array.prototype.slice.call(o.children).indexOf(r);r.classList.add("td--fixed"),t.querySelector(`thead tr th:nth-child(${i+1})`).classList.add("th--fixed")})},_i=(a,t,e)=>{Array.from(t.querySelectorAll("thead tr")).forEach(o=>{o.querySelector(".expand-button-heading")?o.querySelector(".expand-button-heading").insertAdjacentHTML("afterend",'<th class="th--fixed"></th>'):o.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')}),Array.from(t.querySelectorAll("tbody tr")).forEach((o,r)=>{if(o.setAttribute("data-index",r+1),!o.querySelector(".selectrow")){const i=`row${hi(r)}`;o.querySelector(".td--expand")?o.querySelector(".td--expand").insertAdjacentHTML("afterend",`<td class="td--fixed selectrow selected"><input type="checkbox" name="row" id="${i}" ${o.hasAttribute("data-selected")?'checked="true"':""}/><label for="${i}"><span class="visually-hidden">Select row</span></label></td>`):o.insertAdjacentHTML("afterbegin",`<td class="td--fixed selectrow selected"><input type="checkbox" name="row" id="${i}" ${o.hasAttribute("data-selected")?'checked="true"':""}/><label for="${i}"><span class="visually-hidden">Select row</span></label></td>`)}}),t.addEventListener("change",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest(".selectrow input")){const r=o.target.closest(".selectrow input"),i=o.target.closest("tr"),n=t.querySelectorAll('.selectrow input[type="checkbox"]').length,c=t.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;e.setAttribute("data-selected",n==c?"all":c);const m=new CustomEvent("row-selected",{detail:{rowIndex:i.getAttribute("data-index"),checked:!!r.checked}});a.dispatchEvent(m)}}),e.addEventListener("selected",o=>{if(o.detail.selected=="0"){Array.from(t.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(i=>{i.checked=!1});const r=new CustomEvent("all-rows-unselected");a.dispatchEvent(r)}else if(o.detail.selected=="all"){Array.from(t.querySelectorAll('.selectrow input[type="checkbox"]')).forEach(i=>{i.checked=!0});const r=new CustomEvent("all-rows-selected");a.dispatchEvent(r)}})},ki=(a,t,e,o,r)=>{xi(a,t),Ai(a,t),e.addEventListener("change",i=>{i&&i.target instanceof HTMLElement&&i.target.closest("[data-sort]")&&ft(t,e,r)}),Li(a,t,e,o,r)},xi=(a,t)=>{t.addEventListener("click",e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-sort]")){const o=e.target.closest("[data-sort]");o.setAttribute("data-sort","true"),Array.from(t.querySelectorAll("th[data-sort]")).forEach(c=>{c!=o&&(c.setAttribute("data-sort",""),c.removeAttribute("data-order-by"),o.setAttribute("title","Click to sort ascending"))}),o.hasAttribute("data-order-by")&&o.getAttribute("data-order-by")=="asc"?(o.setAttribute("data-order-by","desc"),o.setAttribute("title","Click to sort ascending")):(o.setAttribute("data-order-by","asc"),o.setAttribute("title","Click to sort descending"));const r=new CustomEvent("sort-by-heading",{detail:{heading:o.textContent,sortBy:o.getAttribute("data-order-by"),ref:o.getAttribute("data-ref")}});a.dispatchEvent(r);const i=o.textContent.trim(),n=o.getAttribute("data-order-by");a.hasAttribute("data-submit")||vt(t,i,n)}})},Ai=(a,t)=>{var e;const o=a.querySelector("iam-actionbar");if(!o)return!1;const r=(e=o.shadowRoot)===null||e===void 0?void 0:e.querySelector("input#search");if(!r)return!1;const i=r.getAttribute("id"),n=r.parentNode,c={};t.querySelectorAll("tbody td:not(.td--fixed)").forEach(m=>{m.querySelector(".td__content")?c[m.querySelector(".td__content").textContent]=m.querySelector(".td__content").textContent:c[m.textContent]=m.textContent}),r.setAttribute("list",`${i}_list`),r.setAttribute("autocomplete","off"),n.querySelector("datalist")||(n.innerHTML+=`<datalist id="${i}_list"></datalist>`),n.querySelector("datalist").innerHTML=`${Object.keys(c).map(m=>`<option value="${m}"></option>`).join("")}`},ft=(a,t,e)=>{if(t.getAttribute("data-ajax"))return!1;const o=a.querySelector("tbody");let r=t.querySelector('input[type="radio"][data-sort]:checked');if(t.querySelector("select[data-sort]")){const m=t.querySelector("select[data-sort]");r=t.querySelector(`select[data-sort] option:nth-child(${m.selectedIndex+1})`)}const i=r.getAttribute("data-sort"),n=r.getAttribute("data-order"),c=r.getAttribute("data-format");if(!i)return o.innerHTML=e.innerHTML,bt(a),!1;vt(a,i,n,c)},vt=(a,t,e,o="")=>{const r=a.querySelector("tbody");let i=[];["asc","desc","descending"].includes(e)||(i=e.split(","));let n=[];Array.from(r.querySelectorAll("tr")).forEach(m=>{let l=m.querySelector('td[data-label="'+t+'"], th[data-label="'+t+'"]').textContent.trim();m.querySelector('[data-label="'+t+'"] .td__content')&&(l=m.querySelector('[data-label="'+t+'"] .td__content').textContent.trim()),i.length&&i.includes(l)&&(l=i.indexOf(l)),di(l)&&(l=mi(l,10)),o&&o=="date"&&(l=new Date(l));const d={index:l,row:m};n.push(d)}),n.sort((m,l)=>m.index>l.index?1:-1),(e=="descending"||e=="desc")&&(n=n.reverse());let c="";n.forEach(m=>{c+=m.row.outerHTML}),r.innerHTML=c},Li=(a,t,e,o,r)=>{let i;const n=function(l,d=!1){if(e.classList.contains("processing"))return!1;Array.from(e.querySelectorAll("iam-applied-filters")).forEach(u=>{const p=new Event("tags-set");u.dispatchEvent(p)}),l.type=="submit"&&(e.classList.add("processing"),Array.from(e.querySelectorAll("[data-duplicate]")).forEach(u=>{const p=u.getAttribute("data-duplicate"),h=document.getElementById(p),g=document.querySelector(`[for="${p}"] iam-card`);if(h.checked!=u.checked)if(g){const v=new Event("click");g.dispatchEvent(v)}else h.checked=u.checked}),e.classList.remove("processing")),Z(a,t,e,o),yt(a,t,e)};a.querySelector("iam-actionbar[data-search]")&&a.querySelector("iam-actionbar[data-search]").addEventListener("search-submit",l=>{e.querySelector("input[data-search]")?e.querySelector("input[data-search]").value=l.detail.search:e.insertAdjacentHTML("beforeend",`<input type="hidden" name="search" data-search="${a.querySelector("iam-actionbar[data-search]").getAttribute("data-search")}" value="${l.detail.search}"/>`);const d=new CustomEvent("search-submit",{detail:l.details});a.dispatchEvent(d),clearTimeout(i),n(l)}),a.querySelector("iam-actionbar")&&!a.querySelector("iam-actionbar").closest("form")&&a.querySelector("iam-actionbar").addEventListener("change",l=>{e.querySelector(".duplicate-actionbar")||e.insertAdjacentHTML("beforeend",'<div class="duplicate-actionbar" style="visibility: hidden; pointer-events: none; position: absolute;"></div>'),e.querySelector(".duplicate-actionbar").innerHTML=a.querySelector("iam-actionbar").innerHTML,Z(a,t,e,o)}),e.addEventListener("keyup",l=>{clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest("input[data-search]")&&(i=setTimeout(function(){n(l)},500))}),e.addEventListener("change",l=>{if(clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest("input[data-search]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter][data-no-ajax]")?(Z(a,t,e,o),yt(t,e)):(l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter]")&&l.target.closest("form .dialog__wrapper > dialog")||l&&l.target instanceof HTMLElement&&l.target.closest("[data-filter]")&&!l.target.closest("form dialog"))&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-show]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.closest("[data-mimic]")&&n(l),l&&l.target instanceof HTMLElement&&l.target.hasAttribute("id")){const d=l.target.getAttribute("id");document.querySelector(`[data-duplicate="${d}"]`)&&(document.querySelector(`[data-duplicate="${d}"]`).checked=l.target.checked)}}),e.addEventListener("click",l=>{if(clearTimeout(i),l&&l.target instanceof HTMLElement&&l.target.closest('dialog button:not([type="button"])')&&l.target.closest('dialog button:not([type="button"])').closest("dialog").close(),l&&l.target instanceof HTMLElement&&l.target.closest(".dialog__close")&&(l.preventDefault(),l.stopPropagation()),l&&l.target instanceof HTMLElement&&l.target.closest("[data-clear]")){e.classList.add("processing"),Array.from(e.querySelectorAll(".applied-filters")).forEach(u=>{u.innerHTML=""});const d=e.elements;for(let u=0;u<d.length;u++)switch(d[u].type.toLowerCase()?d[u].type.toLowerCase():"text"){case"text":case"password":case"textarea":d[u].value="";break;case"radio":case"checkbox":if(d[u].checked){const p=d[u],h=p.getAttribute("id"),g=document.querySelector(`[for="${h}"`);if(g.querySelector("iam-card")){const v=g.querySelector("iam-card"),f=new Event("click");v.dispatchEvent(f)}p.checked=!1}break;case"select-one":case"select-multi":d[u].selectedIndex=-1;break}e.classList.remove("processing"),e.hasAttribute("data-submit")||ft(t,e,r),n(l)}}),e.addEventListener("submit",l=>{clearTimeout(i),e.hasAttribute("data-submit")||l.preventDefault(),n(l)}),e.addEventListener("force",l=>{n(l)}),e.addEventListener("paginate",l=>{n(l,!0)});const c=[],m=[];Array.from(e.querySelectorAll("[data-mimic]")).forEach(l=>{const d=l.getAttribute("data-mimic");Array.from(document.querySelectorAll(`[name="${d}"]`)).forEach(u=>{const p=u.closest("form");c.includes(p)||c.push(p),m.includes(d)||m.push(d)})}),c.forEach(l=>{const d=function(){const u=[],p=new FormData(l);for(const[h,g]of p)document.querySelector(`[data-mimic="${h}"]`)&&!u.includes(h)?(u.push(h),document.querySelector(`[data-mimic="${h}"]`).value=g):document.querySelector(`[data-mimic="${h}"]`)&&(document.querySelector(`[data-mimic="${h}"]`).value+=","+g);for(const h of u){const g=new Event("force");e.dispatchEvent(g)}for(const h of m)if(!p.has(h)&&l.querySelector(`[name="${h}"]`)){document.querySelector(`[data-mimic="${h}"]`).value="";const g=new Event("force");e.dispatchEvent(g)}};l.addEventListener("force",()=>{d()}),l.addEventListener("change",()=>{d()})})},Z=(a,t,e,o)=>{t.classList.remove("table--filtered");const r=ut(e),i=[];let n=0;const c=e.querySelector("[data-pagination]")?parseInt(e.querySelector("[data-pagination]").value):1,m=e.querySelector("[data-show]")?parseInt(e.querySelector("[data-show]").value):15;if(Array.from(t.querySelectorAll("tbody tr")).forEach(d=>{d.classList.remove("filtered"),d.classList.remove("filtered--matched"),d.classList.remove("filtered--show"),d.removeAttribute("data-filtered-by")}),e.querySelector("input[data-search]")){const d=e.querySelector("input[data-search]");t.querySelectorAll("thead tr th").forEach(u=>{i.push({column:`${u.textContent.trim()}`,value:`${d.value}`})})}Array.from(e.querySelectorAll("[data-filter-count]")).forEach(d=>{d.innerHTML="",d.parentNode.classList.remove("hover")});let l=0;Object.values(r).forEach(d=>{typeof d=="object"&&Object.values(d).length?l+=Object.values(d).length:l++}),l&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(d=>{d.innerHTML+=`(${l})`,d.parentNode.classList.add("hover")}),t.classList.add("table--filtered");for(const[d,u]of Object.entries(r))Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(p=>{let h=!1;u.forEach(g=>{const v=p.querySelector(`[data-label="${d}"]`);if(g.includes("-date-from")){const f=new Date(g.replace("-date-from","")),b=new Date(v.textContent.toLowerCase());f.setHours(0,0,0,0),b.setHours(0,0,0,0),b<f?(p.classList.add("less-than-from-date"),h=!1):!p.classList.contains("less-than-from-date")&&!p.classList.contains("greater-than-to-date")&&(h=!0)}else if(g.includes("-date-to")){const f=new Date(g.replace("-date-to","")),b=new Date(v.textContent.toLowerCase());f.setHours(0,0,0,0),b.setHours(0,0,0,0),b>f?(p.classList.add("greater-than-to-date"),h=!1):!p.classList.contains("less-than-from-date")&&!p.classList.contains("greater-than-to-date")&&(h=!0)}if(g&&g=="$today")g=J("date",new Date);else if(g&&g=="$yesterday"){const f=new Date;f.setDate(f.getDate()-1),g=J("date",f)}else if(g&&(g=="$thisWeek"||g=="$lastWeek")){const f=new Date,b=new Date(f.setDate(f.getDate()-(f.getDay()-1))),y=new Date(f.setDate(f.getDate()-f.getDay()+7)),w=new Date(v.textContent.toLowerCase());if(f.setHours(0,0,0,0),b.setHours(0,0,0,0),y.setHours(0,0,0,0),w.setHours(0,0,0,0),g=="$thisWeek")h=w>=b&&w<=y;else{const _=new Date(b.setDate(b.getDate()-7)),x=new Date(y.setDate(y.getDate()-7));_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=w>=_&&w<=x}}else if(g&&g=="$thisMonth"){const f=new Date,b=f.getFullYear(),y=f.getMonth(),w=new Date(b,y,1),_=new Date(b,y+1,0),x=new Date(v.textContent.toLowerCase());w.setHours(0,0,0,0),_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=w&&x<=_}else if(g&&g=="$lastMonth"){const f=new Date,b=f.getFullYear(),y=f.getMonth(),w=new Date(b,y-1,1),_=new Date(b,y,0),x=new Date(v.textContent.toLowerCase());w.setHours(0,0,0,0),_.setHours(0,0,0,0),x.setHours(0,0,0,0),h=x>=w&&x<=_}v&&v.textContent.toLowerCase().includes(g.replace("-"," ").toLowerCase())&&(h=!0)}),h||(p.classList.add("filtered"),p.setAttribute("data-filtered-by",d))});Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(d=>{let u=!(i.length>0&&i[0].value.length>=3);i.forEach(p=>{const h=d.querySelector(`[data-label="${p.column}"]`);h&&p.value.length>=3&&h.textContent.toLowerCase().includes(p.value.toLowerCase())&&(u=!0)}),u||d.classList.add("filtered")}),Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).forEach(d=>{n++,d.classList.add("filtered--matched"),Math.ceil(n/m)==parseInt(c)&&d.classList.add("filtered--show")}),o&&(o.setAttribute("data-total",n),o.setAttribute("data-show",m),o.setAttribute("data-page",c))},yt=(a,t,e)=>{Array.from(e.querySelectorAll("[data-query]")).forEach(o=>{const r=o.getAttribute("data-query");let i=0;if(r=="total")a.hasAttribute("data-total")?i=a.getAttribute("data-total"):i=(t.classList.contains("table--filtered"),t.querySelectorAll("tbody tr").length);else if(!r.includes(" == ")&&r.includes(" & ")){const n=r.split(" & ");let c="";n.forEach(m=>{c+=`:not([data-filtered-by="${m}"])`}),i=Array.from(t.querySelectorAll(`tbody tr${c}`)).length}else if(!r.includes(" == "))i=Array.from(t.querySelectorAll(`tbody tr:not([data-filtered-by="${r}"])`)).length;else if(r.includes(" && ")){const n=r.split(" && ");i=Array.from(t.querySelectorAll("tbody tr:not(.filtered)")).filter(function(c){let m=!0;for(const l of Object.entries(n)){const d=l.split(" == ");(!c.querySelector(`td[data-label="${d[0]}"]`)||c.querySelector(`td[data-label="${d[0]}"]`).textContent!=`${d[1]}`)&&(m=!1)}return m}).length}else{const n=r.split(" == ");i=Array.from(t.querySelectorAll(`tbody tr.filtered--matched td[data-label="${n[0]}"], tbody tr[data-filtered-by="${n[0]}"] td[data-label="${n[0]}"]`)).filter(function(c){return c.textContent===n[1]}).length}o.hasAttribute("data-total")?o.setAttribute("data-total",i):o.innerHTML=i})},Si=(a,t,e,o)=>{e.setAttribute("method","get");const r=a.querySelector("iam-actionbar");r&&r.addEventListener("change",i=>{e.submit()})},Ei=(a,t,e,o)=>{P(a,t,e,o);const r=a.querySelector("iam-actionbar");e.addEventListener("submit",i=>{P(a,t,e,o),i.preventDefault()}),r&&r.addEventListener("change",i=>{P(a,t,e,o)})},P=function(a,t,e,o){return pi(this,void 0,void 0,function*(){a.querySelector("iam-actionbar")&&!a.querySelector("iam-actionbar").closest("form")&&(e.querySelector(".duplicate-actionbar")||e.insertAdjacentHTML("beforeend",'<div class="duplicate-actionbar" style="visibility: hidden; pointer-events: none; position: absolute;"></div>'),e.querySelector(".duplicate-actionbar").innerHTML=a.querySelector("iam-actionbar").innerHTML),e.querySelector("input[name=show]")||e.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${a.getAttribute("data-show")}" />`),e.querySelector("input[name=page]")||e.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${a.getAttribute("data-page")}" />`),e.querySelector("input[name=page]").value=a.getAttribute("data-page"),e.querySelector("input[name=show]").value=a.getAttribute("data-show");const r=new FormData(e),i=new URLSearchParams(r).toString(),n=t.querySelectorAll("thead tr th:not(.expand-button-heading)"),c=t.querySelector("tbody"),m=e.getAttribute("data-ajax");a.classList.add("table--loading");const l=ut(e);Array.from(e.querySelectorAll("[data-filter-count]")).forEach(p=>{p.innerHTML="",p.parentNode.classList.remove("hover")});let d=0;Object.values(l).forEach(p=>{typeof p=="object"&&Object.values(p).length?d+=Object.values(p).length:d++}),d&&Array.from(e.querySelectorAll("[data-filter-count]")).forEach(p=>{p.innerHTML+=`(${d})`,p.parentNode.classList.add("hover")}),window.controller||(window.controller=[]),window.controller[m]&&window.controller[m].abort(),window.controller[m]=new AbortController;const{signal:u}=controller[m];o.setAttribute("data-loading","true"),e.classList.add("processing");try{yield fetch(m+"?"+i,{signal:u,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then(p=>p.json()).then(p=>{const h=e.hasAttribute("data-schema")?e.getAttribute("data-schema"):"data",g=e.hasAttribute("data-schema-total")?e.getAttribute("data-schema-total"):"meta.total",v=e.hasAttribute("data-schema-page")?e.getAttribute("data-schema-page"):"meta.current_page",f=z(p,g,15),b=z(p,v,1),y=z(p,h),w=a.hasAttribute("data-empty-msg")?a.getAttribute("data-empty-msg"):"No results found";y?(c.innerHTML="",y.forEach(_=>{const x=document.createElement("tr");n.forEach(k=>{let E="";const L=document.createElement("td");if(L.setAttribute("data-label",k.innerText),k.getAttribute("data-output")&&(E=k.getAttribute("data-output").replace(new RegExp(/{(.*?)}/,"gm"),function(M){return z(_,M.replace("{","").replace("}",""))})),k.hasAttribute("data-output-array")){const M=k.getAttribute("data-output"),T=z(_,M.replace("{","").replace("}",""));E="",T.forEach(H=>{const D=k.getAttribute("data-output-array");let $="";if(k.hasAttribute("data-output-array-property")&&k.hasAttribute("data-output-array-transform")){const C=z(H,k.getAttribute("data-output-array-property")),R=JSON.parse(k.getAttribute("data-output-array-transform"))[C];$=D.replace(`{${k.getAttribute("data-output-array-property")}}`,R)}$=$.replace(new RegExp(/{(.*?)}/,"gm"),function(C){return z(H,C.replace("{","").replace("}",""))}),E+=$})}k.hasAttribute("data-transform")&&(E=JSON.parse(k.getAttribute("data-transform"))[E],!E&&k.hasAttribute("data-default")&&(E=k.getAttribute("data-default"))),L.innerHTML=E,x.appendChild(L)}),c.appendChild(x)}),a.setAttribute("data-total",parseInt(f)),a.setAttribute("data-page",parseInt(b)),o.setAttribute("data-total",f),o.setAttribute("data-page",b),Array.from(e.querySelectorAll("[data-ajax-query]")).forEach(_=>{const x=z(p,_.getAttribute("data-ajax-query"),"");_.hasAttribute("data-total")?_.setAttribute("data-total",x):_.innerHTML=x}),parseInt(f)==0&&(c.innerHTML=`<tr><td colspan="100%"><span>${w}</span></td></tr>`),a.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:m,formData:i}),ht(a,t,e,o),gt(a,t,e,o)):c.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',o.removeAttribute("data-loading"),e.classList.remove("processing")})}catch(p){console.log(p)}})};class qi 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=`
567
567
  <style>
568
- :is(.mh-sm,.mh-md,.mh-lg,.mh-sm-sm,.mh-sm-md,.mh-sm-lg,.mh-md-sm,.mh-md-md,.mh-md-lg,.mh-fluid):not(iam-table):not(.table__wrapper){padding-inline:var(--mh-padding-inline, 0);margin-inline:calc(var(--mh-padding-inline, 0)*-1)}:is(.mh-sm,.mh-md,.mh-lg,.mh-sm-sm,.mh-sm-md,.mh-sm-lg,.mh-md-sm,.mh-md-md,.mh-md-lg,.mh-fluid)::before{top:calc(100% - 1.5rem);bottom:0;left:0;right:0;height:1.5rem;position:sticky;display:block;background:linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);z-index:2;margin-bottom:-1.5rem}:is(.mh-sm,.mh-md,.mh-lg,.mh-fluid){overflow:auto;overscroll-behavior:contain}:is(.mh-sm,.mh-md,.mh-lg,.mh-fluid)::before{content:""}.mh-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}.mh-fluid{max-height:100%}@media screen and (min-width: 36em){:is(.mh-sm-sm,.mh-sm-md,.mh-sm-lg){overflow:auto;overscroll-behavior:contain}:is(.mh-sm-sm,.mh-sm-md,.mh-sm-lg)::before{content:""}.mh-sm-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-sm-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-sm-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}}@media screen and (min-width: 62em){:is(.mh-md-sm,.mh-md-md,.mh-md-lg){overflow:auto;overscroll-behavior:contain}:is(.mh-md-sm,.mh-md-md,.mh-md-lg)::before{content:""}.mh-md-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-md-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-md-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}}:host{container-type:inline-size;display:block}.table__container{--wrapper-padding: 2rem;--bg-colour: #ffffff;display:block;background:#fff;padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.625rem;margin-bottom:2rem;overflow:hidden}.table__container:before{display:none !important}@media screen and (prefers-color-scheme: dark){.table__container{background:var(--colour-canvas-2)}}@media(forced-colors: active){.table__container{--wrapper-padding: 0;background:var(--colour-canvas-2)}}:host(.mh-sm){max-height:none !important}:host(.mh-md){max-height:none !important}:host(.mh-lg){max-height:none !important}.table__wrapper{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}@container (width < 23.4375em){:host(:not(.table--fullwidth)) .table__container{margin-left:-1.5rem;margin-right:-1.5rem;margin-bottom:0;background:var(--colour-canvas-2);border-radius:0;background:none;padding:0;box-shadow:none;overflow:visible}:host(:not(.table--fullwidth)) .table__container .table__wrapper{overflow:hidden;max-height:none !important}:host(:not(.table--fullwidth)) .table__container ::slotted(table){overflow:visible !important;margin-inline:1.5rem;margin-bottom:1.5rem !important;width:calc(100% - 3rem) !important;display:block}:host(:not(.table--fullwidth)) .table__container .table--cta{border-bottom:0}:host(:not(.table--fullwidth)) .table__container .table--cta:after{content:none;display:none !important}}@container (width > 23.4375em){:host{--cta-width: 8rem}:host(.table--loading){--cta-width: 1.5rem !important}.table--cta{position:relative}.table--cta .table__wrapper{overflow-y:hidden;margin-bottom:0}}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){position:relative;overflow:auto}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{top:calc(100% - 1.2rem);bottom:2px;height:1.2rem;border-bottom:2px solid var(--colour-border);margin-bottom:-1.2rem}@container (width < 23.4375em){.table__wrapper.has-actionbar{margin-top:calc(-100vh + 6.75rem) !important}}:host(.table--loading){pointer-events:none;position:relative}:host(.table--loading) ::slotted(table){min-height:20rem;opacity:.5}:host(.table--loading)::after{content:"Loading...";position:absolute;top:6.25rem;left:50%;transform:translate(-50%, 0);font-weight:bold;color:var(--colour-heading);font-size:1.5rem;text-shadow:0px 0px 10px var(--colour-canvas-2);padding-inline:2rem;text-shadow:0px 0px 10px var(--colour-canvas-2);background:radial-gradient(var(--colour-canvas-2), transparent)}/*# sourceMappingURL=assets/css/components/table.component.css.map */
568
+ :is(.mh-sm,.mh-md,.mh-lg,.mh-sm-sm,.mh-sm-md,.mh-sm-lg,.mh-md-sm,.mh-md-md,.mh-md-lg,.mh-fluid):not(iam-table):not(.table__wrapper){padding-inline:var(--mh-padding-inline, 0);margin-inline:calc(var(--mh-padding-inline, 0)*-1)}:is(.mh-sm,.mh-md,.mh-lg,.mh-sm-sm,.mh-sm-md,.mh-sm-lg,.mh-md-sm,.mh-md-md,.mh-md-lg,.mh-fluid)::before{top:calc(100% - 1.5rem);bottom:0;left:0;right:0;height:1.5rem;position:sticky;display:block;background:linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);z-index:2;margin-bottom:-1.5rem}:is(.mh-sm,.mh-md,.mh-lg,.mh-fluid){overflow:auto;overscroll-behavior:contain}:is(.mh-sm,.mh-md,.mh-lg,.mh-fluid)::before{content:""}.mh-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}.mh-fluid{max-height:100%}@media screen and (min-width: 36em){:is(.mh-sm-sm,.mh-sm-md,.mh-sm-lg){overflow:auto;overscroll-behavior:contain}:is(.mh-sm-sm,.mh-sm-md,.mh-sm-lg)::before{content:""}.mh-sm-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-sm-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-sm-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}}@media screen and (min-width: 62em){:is(.mh-md-sm,.mh-md-md,.mh-md-lg){overflow:auto;overscroll-behavior:contain}:is(.mh-md-sm,.mh-md-md,.mh-md-lg)::before{content:""}.mh-md-sm{max-height:calc(12.5rem - var(--mh-modifier, 0rem))}.mh-md-md{max-height:calc(25rem - var(--mh-modifier, 0rem))}.mh-md-lg{max-height:calc(37.5rem - var(--mh-modifier, 0rem))}}:host{container-type:inline-size;display:block}.table__container{--wrapper-padding: 2rem;--bg-colour: #ffffff;display:block;background:#fff;padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.625rem;margin-bottom:2rem;overflow:hidden}.table__container:before{display:none !important}@media screen and (prefers-color-scheme: dark){.table__container{background:var(--colour-canvas-2)}}@media(forced-colors: active){.table__container{--wrapper-padding: 0;background:var(--colour-canvas-2)}}:host-context(.admin-panel) .table__container{display:contents}:host(.mh-sm){max-height:none !important}:host(.mh-md){max-height:none !important}:host(.mh-lg){max-height:none !important}.table__wrapper{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}@container (width < 23.4375em){:host(:not(.table--fullwidth)) .table__container{margin-left:-1.5rem;margin-right:-1.5rem;margin-bottom:0;background:var(--colour-canvas-2);border-radius:0;background:none;padding:0;box-shadow:none;overflow:visible}:host(:not(.table--fullwidth)) .table__container .table__wrapper{overflow:hidden;max-height:none !important}:host(:not(.table--fullwidth)) .table__container ::slotted(table){overflow:visible !important;margin-inline:1.5rem;margin-bottom:1.5rem !important;width:calc(100% - 3rem) !important;display:block}:host(:not(.table--fullwidth)) .table__container .table--cta{border-bottom:0}:host(:not(.table--fullwidth)) .table__container .table--cta:after{content:none;display:none !important}}@container (width > 23.4375em){:host{--cta-width: 8rem}:host(.table--loading){--cta-width: 1.5rem !important}.table--cta{position:relative}.table--cta .table__wrapper{overflow-y:hidden;margin-bottom:0}}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg){position:relative;overflow:auto}.table__wrapper:is(.mh-sm,.mh-md,.mh-lg)::before{top:calc(100% - 1.2rem);bottom:2px;height:1.2rem;border-bottom:2px solid var(--colour-border);margin-bottom:-1.2rem}@container (width < 23.4375em){.table__wrapper.has-actionbar{margin-top:calc(-100vh + 6.75rem) !important}}:host(.table--loading){pointer-events:none;position:relative}:host(.table--loading) ::slotted(table){min-height:20rem;opacity:.5}:host(.table--loading)::after{content:"Loading...";position:absolute;top:6.25rem;left:50%;transform:translate(-50%, 0);font-weight:bold;color:var(--colour-heading);font-size:1.5rem;text-shadow:0px 0px 10px var(--colour-canvas-2);padding-inline:2rem;text-shadow:0px 0px 10px var(--colour-canvas-2);background:radial-gradient(var(--colour-canvas-2), transparent)}/*# sourceMappingURL=assets/css/components/table.component.css.map */
569
569
 
570
570
 
571
571
  ${this.hasAttribute("css")?`@import "${this.getAttribute("css")}";`:""}
@@ -579,9 +579,9 @@ iam-menu details summary:not([class*="fa-"]:before {
579
579
  </div>
580
580
  <iam-pagination part="pagination" class="pagination--table" ></iam-pagination>
581
581
  </div>
582
- `,this.shadowRoot.appendChild(t.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",`<style id="tableExtras">:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit){--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) table{margin-bottom:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) td{background-color:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr td p{min-width:10rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tbody tr{background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238, 238, 238;--row-bg: var(--hover-background);background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) table:has(tr.show) tbody tr:not(.show){display:none !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:has([data-expand-button]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .expand-button-heading{display:none}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative;display:block !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important;padding-right:3rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button])+.td--fixed+td{border-top:none !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) thead{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody{--status-pt: 2.5rem;display:block;overflow:visible}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr td:first-child{padding-top:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem;height:auto}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr+tr{margin-top:2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:has([data-expand-button]){display:block}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:first-child::after{top:1.75rem !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td::after{top:2.5rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .td--fixed{padding-right:50%}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth).table--cta tbody tr td:last-child{display:block !important}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta{padding-right:calc(var(--wrapper-padding) + 1.5rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>th:nth-last-child(2),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>td:nth-last-child(2){padding-right:var(--cta-width)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg, var(--colour-canvs-2)) 1.25rem);cursor:default;padding-bottom:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem;padding-bottom:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg, var(--colour-canvs-2)) 1.25rem)}}table .hide-status:after{display:none}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:var(--status-pt, 1rem);left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content="action required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content="manually verified"],[data-content=verified],[data-content=completed],[data-content=complete],[data-content=successful]):after{content:"";font-weight:normal;color:var(--colour-complete)}table :is([data-content=failed]):after{content:"";font-weight:normal;color:var(--colour-danger)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth).table--cta tbody tr td:last-child{display:block !important}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{margin:0 1.5rem 1rem 1.5rem}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:.5rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth:has(iam-actionbar){padding-top:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar{margin:-2rem -2rem 2rem -2rem;box-shadow:none;border-radius:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar:has(+table input:checked){margin:-2rem -2rem 2rem -2rem;box-shadow:none;border-radius:0}@media screen and (prefers-color-scheme: light){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar:has(+table input:checked){background-color:#e6eaec}}.actionbar__sticky-wrapper{container-type:inline-size}@media screen and (min-width: 36em){.actionbar__sticky-wrapper{padding:0 !important}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky{display:block;position:sticky;left:0;top:calc(var(--sticky-padding) + 1rem);z-index:var(--index-menu);pointer-events:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky:after{content:"";display:block;width:100%;height:calc(100vh - 6.75rem);pointer-events:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky+*{margin-top:calc(-100vh + 6.75rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky)>iam-actionbar{pointer-events:all !important;display:block;border:none;background:var(--colour-canvas-2);border-radius:.5rem;margin-bottom:1.5rem}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{margin-left:-2rem;margin-right:-2rem;margin-top:-2rem;margin-bottom:2rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important;--border-radius: 0.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:checked){height:calc(4.625rem - 2px)}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:hover,[type=checkbox]:focus){--row-bg: #eeeeee}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:hover:checked,[type=checkbox]:focus:checked,[type=checkbox]:checked){--row-bg: #e0e0e0}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{background-color:#e6eaec}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .actionbar__sticky+*{margin-top:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] td:has([data-expand-button]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] .expand-button-heading{display:table-cell}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]{margin:.25rem 0 0 0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]:not(:hover,:focus){background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button][aria-expanded]:before{content:""}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth tr:not(:has(p)) [data-expand-button]{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:10rem}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]{margin:.25rem 0 0 0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]:not(:hover,:focus){background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button][aria-expanded]:before{content:""}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:10rem}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr{position:relative}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .td--fixed+.td--fixed{border:none}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed{position:absolute;left:auto;top:auto;z-index:3;padding:0 0 0 0;min-width:3.375rem;height:calc(var(--row-height) - 2px);text-align:left;background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed:has([open]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed:has([open]){z-index:4}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed:has(+th:not(.th--fixed)),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed:has(+td:not(.td--fixed)){background:linear-gradient(90deg, var(--row-bg) calc(100% - 1rem), transparent 100%)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+td:not(.td--fixed){padding-left:calc(3.375rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed{left:3rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(6.375rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+.th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+.td--fixed{left:6rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+.th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(9.375rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .dialog__wrapper{z-index:10}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .dialog__wrapper:has([open]){z-index:20}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) td:has(.dialog__wrapper){padding-top:.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort]{background-repeat:no-repeat;background-size:1rem 1rem;background-position:calc(100% - .5rem) 50%;padding-top:.75rem;cursor:pointer}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort]:hover{background-color:var(--colour-light);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3e%3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L128 370.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-96 96zm352-333.3c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3 448 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-306.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth:has(th[data-sort]) :is(th,td){padding-left:.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort][data-order-by=asc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M209.4 39.4C204.8 34.7 198.6 32 192 32s-12.8 2.7-17.4 7.4l-168 176c-9.2 9.6-8.8 24.8 .8 33.9s24.8 8.8 33.9-.8L168 115.9 168 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-340.1L342.6 248.6c9.2 9.6 24.3 9.9 33.9 .8s9.9-24.3 .8-33.9l-168-176z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort][data-order-by=desc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z'/%3e%3c/svg%3e")}@container (width >= 32em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort]{background-repeat:no-repeat;background-size:1rem 1rem;background-position:calc(100% - .5rem) 50%;padding-top:.75rem;cursor:pointer}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort]:hover{background-color:var(--colour-light);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3e%3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L128 370.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-96 96zm352-333.3c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3 448 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-306.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has(th[data-sort]) :is(th,td){padding-left:.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort][data-order-by=asc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M209.4 39.4C204.8 34.7 198.6 32 192 32s-12.8 2.7-17.4 7.4l-168 176c-9.2 9.6-8.8 24.8 .8 33.9s24.8 8.8 33.9-.8L168 115.9 168 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-340.1L342.6 248.6c9.2 9.6 24.3 9.9 33.9 .8s9.9-24.3 .8-33.9l-168-176z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort][data-order-by=desc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z'/%3e%3c/svg%3e")}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col1]+table :is(thead,tbody) :is(th,td):nth-child(1){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col2]+table :is(thead,tbody) :is(th,td):nth-child(2){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col3]+table :is(thead,tbody) :is(th,td):nth-child(3){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col4]+table :is(thead,tbody) :is(th,td):nth-child(4){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col5]+table :is(thead,tbody) :is(th,td):nth-child(5){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col6]+table :is(thead,tbody) :is(th,td):nth-child(6){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col7]+table :is(thead,tbody) :is(th,td):nth-child(7){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col8]+table :is(thead,tbody) :is(th,td):nth-child(8){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col9]+table :is(thead,tbody) :is(th,td):nth-child(9){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col10]+table :is(thead,tbody) :is(th,td):nth-child(10){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col11]+table :is(thead,tbody) :is(th,td):nth-child(11){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col12]+table :is(thead,tbody) :is(th,td):nth-child(12){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col13]+table :is(thead,tbody) :is(th,td):nth-child(13){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col14]+table :is(thead,tbody) :is(th,td):nth-child(14){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col15]+table :is(thead,tbody) :is(th,td):nth-child(15){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col16]+table :is(thead,tbody) :is(th,td):nth-child(16){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col17]+table :is(thead,tbody) :is(th,td):nth-child(17){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col18]+table :is(thead,tbody) :is(th,td):nth-child(18){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col19]+table :is(thead,tbody) :is(th,td):nth-child(19){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col20]+table :is(thead,tbody) :is(th,td):nth-child(20){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col21]+table :is(thead,tbody) :is(th,td):nth-child(21){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col22]+table :is(thead,tbody) :is(th,td):nth-child(22){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col23]+table :is(thead,tbody) :is(th,td):nth-child(23){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col24]+table :is(thead,tbody) :is(th,td):nth-child(24){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col25]+table :is(thead,tbody) :is(th,td):nth-child(25){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col26]+table :is(thead,tbody) :is(th,td):nth-child(26){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col27]+table :is(thead,tbody) :is(th,td):nth-child(27){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col28]+table :is(thead,tbody) :is(th,td):nth-child(28){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col29]+table :is(thead,tbody) :is(th,td):nth-child(29){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col30]+table :is(thead,tbody) :is(th,td):nth-child(30){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table-basic:is(.mh-lg,.mh-md,.mh-sm) thead{position:sticky;top:0;z-index:9999}iam-table-basic:is(.mh-lg,.mh-md,.mh-sm) thead tr{background:var(--row-bg);background:linear-gradient(0deg, var(--colour-primary) 2px, var(--row-bg) 2px);border:none}/*# sourceMappingURL=assets/css/components/table.global.css.map */
583
- </style>`)}connectedCallback(){const t=this.shadowRoot.querySelector("iam-pagination"),e=this.querySelector("table"),o=gi(this,e),r=e.querySelector("tbody").cloneNode(!0);bi(this),ut(this,e,o,t),gt(this,e),this.hasAttribute("data-submit")?(Si(this,e,o),F(this,e,o,t,()=>{o.submit()})):this.hasAttribute("data-no-submit")?(ki(this,e,o,t,r),F(this,e,o,t,()=>{pt(this)})):this.hasAttribute("data-ajax")?(Ei(this,e,o,t),F(this,e,o,t,()=>{P(this,e,o,t)})):F(this,e,o,t,()=>{pt(this)})}}const $i=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"}));/*!
584
- * iamKey v7.2.1--beta1
582
+ `,this.shadowRoot.appendChild(t.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",`<style id="tableExtras">:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit){--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) table{margin-bottom:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) table thead tr th{position:relative;padding-right:2rem !important;padding-left:0rem !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) td{background-color:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr td p{min-width:10rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tbody tr{background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238, 238, 238;--row-bg: var(--hover-background);background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) table:has(tr.show) tbody tr:not(.show){display:none !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:has([data-expand-button]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .expand-button-heading{display:none}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative;display:block !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important;padding-right:3rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) td:has([data-expand-button])+.td--fixed+td{border-top:none !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth):not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) thead{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody{--status-pt: 2.5rem;display:block;overflow:visible}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr td:first-child{padding-top:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem;height:auto}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr+tr{margin-top:2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:has([data-expand-button]){display:block}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td:first-child::after{top:1.75rem !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) td::after{top:2.5rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .td--fixed{padding-right:50%}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth).table--cta tbody tr td:last-child{display:block !important}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta{padding-right:calc(var(--wrapper-padding) + 1.5rem) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>th:nth-last-child(2),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>td:nth-last-child(2){padding-right:var(--cta-width) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg, var(--colour-canvs-2)) 1.25rem);cursor:default;padding-bottom:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem;padding-bottom:0;margin:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--cta tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg, var(--colour-canvs-2)) 1.25rem)}}table .hide-status:after{display:none}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],[data-content=successful],[data-content=failed],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:var(--status-pt, 1rem);left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content="action required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content="manually verified"],[data-content=verified],[data-content=completed],[data-content=complete],[data-content=successful]):after{content:"";font-weight:normal;color:var(--colour-complete)}table :is([data-content=failed]):after{content:"";font-weight:normal;color:var(--colour-danger)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth).table--cta tbody tr td:last-child{display:block !important}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{margin:0 1.5rem 1rem 1.5rem}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:.5rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth:has(iam-actionbar){padding-top:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar{margin:-2rem -2rem 2rem -2rem;box-shadow:none;border-radius:0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar:has(+table input:checked){margin:-2rem -2rem 2rem -2rem;box-shadow:none;border-radius:0}@media screen and (prefers-color-scheme: light){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar:has(+table input:checked){background-color:#e6eaec}}.actionbar__sticky-wrapper{container-type:inline-size}@media screen and (min-width: 36em){.actionbar__sticky-wrapper{padding:0 !important}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky{display:block;position:sticky;left:0;top:calc(var(--sticky-padding) + 1rem);z-index:var(--index-menu);pointer-events:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky:after{content:"";display:block;width:100%;height:calc(100vh - 6.75rem);pointer-events:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky-wrapper)>.actionbar__sticky+*{margin-top:calc(-100vh + 6.75rem)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):is(.actionbar__sticky)>iam-actionbar{pointer-events:all !important;display:block;border:none;background:var(--colour-canvas-2);border-radius:.5rem;margin-bottom:1.5rem}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth iam-actionbar,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{margin-left:-2rem;margin-right:-2rem;margin-top:-2rem;margin-bottom:2rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important;--border-radius: 0.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:checked){height:calc(4.625rem - 2px)}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:hover,[type=checkbox]:focus){--row-bg: #eeeeee}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) tr:has([type=checkbox]:hover:checked,[type=checkbox]:focus:checked,[type=checkbox]:checked){--row-bg: #e0e0e0}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) iam-actionbar{background-color:#e6eaec}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .actionbar__sticky+*{margin-top:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] td:has([data-expand-button]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] .expand-button-heading{display:table-cell}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]{margin:.25rem 0 0 0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]:not(:hover,:focus){background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth [data-expand-button][aria-expanded]:before{content:""}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth tr:not(:has(p)) [data-expand-button]{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable].table--fullwidth tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:10rem}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]{margin:.25rem 0 0 0}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]:not(:hover,:focus){background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] [data-expand-button][aria-expanded]:before{content:""}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit)[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:10rem}}@container (width < 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) tr{position:relative}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):not(.table--fullwidth) .td--fixed+.td--fixed{border:none}}@container (width > 23.4375em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed{position:absolute;left:auto;top:auto;z-index:3;padding:0 0 0 0;min-width:3.375rem;height:calc(var(--row-height) - 2px);text-align:left;background:var(--row-bg)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed:has([open]),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed:has([open]){z-index:4}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed:has(+th:not(.th--fixed)),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed:has(+td:not(.td--fixed)){background:linear-gradient(90deg, var(--row-bg) calc(100% - 1rem), transparent 100%)}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+td:not(.td--fixed){padding-left:calc(3.375rem) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed{left:3rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(6.375rem) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+.th--fixed,:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+.td--fixed{left:6rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .th--fixed+.th--fixed+.th--fixed+th:not(.th--fixed),:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .td--fixed+.td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(9.375rem) !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .dialog__wrapper{z-index:10}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .dialog__wrapper:has([open]){z-index:20}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) td:has(.dialog__wrapper){padding-top:.25rem}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort]{background-repeat:no-repeat;background-size:1rem 1rem;background-position:calc(100% - .5rem) 50%;padding-top:.75rem;cursor:pointer}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort]:hover{background-color:var(--colour-light);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3e%3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L128 370.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-96 96zm352-333.3c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3 448 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-306.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth:has(th[data-sort]) :is(th,td){padding-left:.25rem !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort][data-order-by=asc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M209.4 39.4C204.8 34.7 198.6 32 192 32s-12.8 2.7-17.4 7.4l-168 176c-9.2 9.6-8.8 24.8 .8 33.9s24.8 8.8 33.9-.8L168 115.9 168 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-340.1L342.6 248.6c9.2 9.6 24.3 9.9 33.9 .8s9.9-24.3 .8-33.9l-168-176z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit).table--fullwidth th[data-sort][data-order-by=desc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z'/%3e%3c/svg%3e")}@container (width >= 32em){:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort]{background-repeat:no-repeat;background-size:1rem 1rem;background-position:calc(100% - .5rem) 50%;padding-top:.75rem;cursor:pointer}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort]:hover{background-color:var(--colour-light);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3e%3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L128 370.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-96 96zm352-333.3c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L448 141.3 448 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-306.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit):has(th[data-sort]) :is(th,td){padding-left:.25rem !important}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort][data-order-by=asc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M209.4 39.4C204.8 34.7 198.6 32 192 32s-12.8 2.7-17.4 7.4l-168 176c-9.2 9.6-8.8 24.8 .8 33.9s24.8 8.8 33.9-.8L168 115.9 168 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-340.1L342.6 248.6c9.2 9.6 24.3 9.9 33.9 .8s9.9-24.3 .8-33.9l-168-176z'/%3e%3c/svg%3e")}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) th[data-sort][data-order-by=desc]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license %28Commercial License%29 Copyright 2025 Fonticons, Inc.--%3e%3cpath d='M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z'/%3e%3c/svg%3e")}}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col1]+table :is(thead,tbody) :is(th,td):nth-child(1){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col2]+table :is(thead,tbody) :is(th,td):nth-child(2){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col3]+table :is(thead,tbody) :is(th,td):nth-child(3){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col4]+table :is(thead,tbody) :is(th,td):nth-child(4){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col5]+table :is(thead,tbody) :is(th,td):nth-child(5){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col6]+table :is(thead,tbody) :is(th,td):nth-child(6){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col7]+table :is(thead,tbody) :is(th,td):nth-child(7){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col8]+table :is(thead,tbody) :is(th,td):nth-child(8){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col9]+table :is(thead,tbody) :is(th,td):nth-child(9){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col10]+table :is(thead,tbody) :is(th,td):nth-child(10){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col11]+table :is(thead,tbody) :is(th,td):nth-child(11){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col12]+table :is(thead,tbody) :is(th,td):nth-child(12){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col13]+table :is(thead,tbody) :is(th,td):nth-child(13){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col14]+table :is(thead,tbody) :is(th,td):nth-child(14){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col15]+table :is(thead,tbody) :is(th,td):nth-child(15){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col16]+table :is(thead,tbody) :is(th,td):nth-child(16){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col17]+table :is(thead,tbody) :is(th,td):nth-child(17){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col18]+table :is(thead,tbody) :is(th,td):nth-child(18){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col19]+table :is(thead,tbody) :is(th,td):nth-child(19){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col20]+table :is(thead,tbody) :is(th,td):nth-child(20){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col21]+table :is(thead,tbody) :is(th,td):nth-child(21){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col22]+table :is(thead,tbody) :is(th,td):nth-child(22){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col23]+table :is(thead,tbody) :is(th,td):nth-child(23){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col24]+table :is(thead,tbody) :is(th,td):nth-child(24){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col25]+table :is(thead,tbody) :is(th,td):nth-child(25){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col26]+table :is(thead,tbody) :is(th,td):nth-child(26){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col27]+table :is(thead,tbody) :is(th,td):nth-child(27){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col28]+table :is(thead,tbody) :is(th,td):nth-child(28){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col29]+table :is(thead,tbody) :is(th,td):nth-child(29){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) [data-hide-col30]+table :is(thead,tbody) :is(th,td):nth-child(30){display:none}:is(iam-table,iam-table-basic,iam-table-no-submit,iam-table-submit) .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table-basic:is(.mh-lg,.mh-md,.mh-sm) thead{position:sticky;top:0;z-index:9999}iam-table-basic:is(.mh-lg,.mh-md,.mh-sm) thead tr{background:var(--row-bg);background:linear-gradient(0deg, var(--colour-primary) 2px, var(--row-bg) 2px);border:none}/*# sourceMappingURL=assets/css/components/table.global.css.map */
583
+ </style>`)}connectedCallback(){const t=this.shadowRoot.querySelector("iam-pagination"),e=this.querySelector("table"),o=gi(this,e),r=e.querySelector("tbody").cloneNode(!0);bi(this),ht(this,e,o,t),gt(this,e),this.hasAttribute("data-submit")?(Si(this,e,o),F(this,e,o,t,()=>{o.submit()})):this.hasAttribute("data-no-submit")||this.hasAttribute("data-nosubmit")?(ki(this,e,o,t,r),F(this,e,o,t,()=>{Q(this)})):this.hasAttribute("data-ajax")?(Ei(this,e,o,t),F(this,e,o,t,()=>{P(this,e,o,t)})):(Q(this),F(this,e,o,t,()=>{Q(this)}))}}const $i=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"}));/*!
584
+ * iamKey v7.2.1--beta2
585
585
  * Copyright 2022-2025 iamproperty
586
586
  */const Mi=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},Ci=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(o=>{a.addEventListener(o,function(r){const i={event:o,element:t,target:r.target};Object.keys(r.detail).forEach(n=>{const c=r.detail[n];i[n]=c}),window.dataLayer.push(i)})}),!0),Ti=`<div class="card__head" part="head">
587
587
  <slot name="head"></slot>
@@ -623,10 +623,10 @@ iam-menu details summary:not([class*="fa-"]:before {
623
623
  </style>
624
624
  <link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous" />
625
625
  <slot></slot>
626
- `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){return _t(this,void 0,void 0,function*(){const t=this,e=this.querySelector("input"),o=this.hasAttribute("data-value-schema")?this.getAttribute("data-value-schema"):"value",r=this.hasAttribute("data-display-schema")?this.getAttribute("data-display-schema"):"label",i=this.hasAttribute("data-schema")?this.getAttribute("data-schema"):"";let n=this.querySelector("datalist");const c=[];let m=this.getAttribute("data-url");const l=e.cloneNode();if(l.setAttribute("name",`${e.getAttribute("name")}Alt`),e.removeAttribute("data-change-events"),l.removeAttribute("id"),e.after(l),e.setAttribute("type","hidden"),!n){n=document.createElement("datalist");const p=Ni("list");n.setAttribute("id",p),t.appendChild(n),l.setAttribute("list",p)}t.hasAttribute("data-url")&&l.addEventListener("input",()=>{l.value.length==3&&!c.includes(l.value)&&(u(l.value),c.push(l.value))});function d(){const p=n.querySelector(`option[value="${l.value}"]`),h=n.querySelector(`option[value*="${l.value}" i]`);p?e.value=p.getAttribute("data-value"):l.value.length>0&&!h?(l.classList.add("is-invalid"),l.closest("label").setAttribute("data-error","No results returned")):(l.classList.remove("is-invalid"),l.closest("label").removeAttribute("data-error"))}l.addEventListener("input",()=>{d()});const u=p=>_t(this,void 0,void 0,function*(){m+=`${encodeURI(p)}`,window.controller||(window.controller=[]),window.controller[m]&&window.controller[m].abort(),window.controller[m]=new AbortController;const{signal:h}=controller[m];try{yield fetch(m,{signal:h,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":rt.get("XSRF-TOKEN")})}).then(g=>g.json()).then(g=>{let v="";const f=j(g,i,"");if(wt(f)&&typeof f.forEach=="function")f.forEach(b=>{const y=j(b,o,""),w=j(b,r,"").replace(`
626
+ `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){return _t(this,void 0,void 0,function*(){const t=this,e=this.querySelector("input"),o=this.hasAttribute("data-value-schema")?this.getAttribute("data-value-schema"):"value",r=this.hasAttribute("data-display-schema")?this.getAttribute("data-display-schema"):"label",i=this.hasAttribute("data-schema")?this.getAttribute("data-schema"):"";let n=this.querySelector("datalist");const c=[];let m=this.getAttribute("data-url");const l=e.cloneNode();if(l.setAttribute("name",`${e.getAttribute("name")}Alt`),e.removeAttribute("data-change-events"),l.removeAttribute("id"),e.after(l),e.setAttribute("type","hidden"),!n){n=document.createElement("datalist");const p=Ni("list");n.setAttribute("id",p),t.appendChild(n),l.setAttribute("list",p)}t.hasAttribute("data-url")&&l.addEventListener("input",()=>{l.value.length==3&&!c.includes(l.value)&&(u(l.value),c.push(l.value))});function d(){const p=n.querySelector(`option[value="${l.value}"]`),h=n.querySelector(`option[value*="${l.value}" i]`);p?e.value=p.getAttribute("data-value"):l.value.length>0&&!h?(l.classList.add("is-invalid"),l.closest("label").setAttribute("data-error","No results returned")):(l.classList.remove("is-invalid"),l.closest("label").removeAttribute("data-error"))}l.addEventListener("input",()=>{d()});const u=p=>_t(this,void 0,void 0,function*(){m+=`${encodeURI(p)}`,window.controller||(window.controller=[]),window.controller[m]&&window.controller[m].abort(),window.controller[m]=new AbortController;const{signal:h}=controller[m];try{yield fetch(m,{signal:h,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":it.get("XSRF-TOKEN")})}).then(g=>g.json()).then(g=>{let v="";const f=j(g,i,"");if(wt(f)&&typeof f.forEach=="function")f.forEach(b=>{const y=j(b,o,""),w=j(b,r,"").replace(`
627
627
  `,", ");console.log(w),n.querySelector(`option[data-value="${y}"]`)||(v+=`<option value="${w}" data-value="${y}"></option>`)});else if(typeof f=="object")for(const[b,y]of Object.entries(f))wt(y)&&typeof y.forEach=="function"&&y.forEach(w=>{const _=j(w,o,""),x=j(w,r,"").replace(`
628
628
  `,", ");n.querySelector(`option[data-value="${_}"]`)||(v+=`<option value="${b}: ${x}" data-value='${_}'></option>`)});return n.innerHTML+=v,l.closest("form").classList.add("was-validated"),d(),g})}catch(g){console.log(g)}});t.hasAttribute("data-prevent-submit")&&t.closest("form").addEventListener("submit",p=>{p.preventDefault()})})}}const Pi=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"}));/*!
629
- * iamKey v7.2.1--beta1
629
+ * iamKey v7.2.1--beta2
630
630
  * Copyright 2022-2025 iamproperty
631
631
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Slider"});const Di=Object.freeze(Object.defineProperty({__proto__:null,default:class 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`,o=document.createElement("template");o.innerHTML=`
632
632
  <style>
@@ -643,7 +643,7 @@ iam-menu details summary:not([class*="fa-"]:before {
643
643
  </div>
644
644
  <div class="input__wrapper"><slot></slot><span>Minimum</span><span>Maximum</span></div>
645
645
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){const t=this,e=this.shadowRoot.querySelector(".min"),o=this.shadowRoot.querySelector(".max"),r=this.shadowRoot.querySelector(".sliders");let i=this.querySelectorAll("input");const n=this.shadowRoot.querySelector(".input__wrapper"),c=this.closest("label");let m,l="mouseup",d="mousedown";"ontouchstart"in document.documentElement&&(l="touchend",d="touchstart");const u=function(h){const g=h.value,v=t.shadowRoot.querySelector(".is-first").getAttribute("min"),f=t.shadowRoot.querySelector(".is-last").getAttribute("max");if(h.classList.contains("is-last")&&!h.classList.contains("is-first")){const b=g/(f-v)*100;t.style.setProperty("--percent",b+"%"),parseFloat(h.value)<=parseFloat(t.shadowRoot.querySelector(".is-first").value)&&(t.shadowRoot.querySelector(".is-first").value=h.value,t.querySelector(".is-first").value=h.value,t.style.setProperty("--start-percent",b+"%"))}else if(h.classList.contains("is-first")&&!h.classList.contains("is-last")){const b=g/(f-v)*100;t.style.setProperty("--start-percent",b+"%"),parseFloat(h.value)>=parseFloat(t.shadowRoot.querySelector(".is-last").value)&&(t.shadowRoot.querySelector(".is-last").value=h.value,t.querySelector(".is-last").value=h.value,t.style.setProperty("--percent",b+"%"))}else{const b=(g/(f-v)*100).toFixed(2);t.style.setProperty("--percent",b+"%")}};Array.from(i).forEach((h,g)=>{const v=h.cloneNode(!0);h.setAttribute("type","number"),v.setAttribute("type","range"),g==0&&(h.classList.add("is-first"),v.classList.add("is-first"),e.innerHTML=h.getAttribute("min"),o.innerHTML=h.getAttribute("max"),r.appendChild(v)),g==i.length-1&&(h.classList.add("is-last"),v.classList.add("is-last"),r.appendChild(v)),g>1&&h.remove()}),i=this.querySelectorAll("input"),n.setAttribute("data-elements",i.length);const p=this.shadowRoot.querySelectorAll("input");Array.from(i).forEach((h,g)=>{h.addEventListener("keyup",function(){p[g].value=h.value,u(p[g])}),h.addEventListener("keydown",function(){p[g].value=h.value,u(p[g])}),h.addEventListener("change",function(){p[g].value=h.value,u(p[g])})}),Array.from(p).forEach((h,g)=>{u(h),h.addEventListener(d,function(){clearInterval(m),m=setInterval(function(){u(h),i[g].value=h.value},10)}),h.addEventListener(l,function(){clearInterval(m)}),h.addEventListener("change",function(){clearInterval(m),u(h),i[g].value=h.value})}),c.addEventListener("click",function(h){if(h.preventDefault(),this===h.target)t.shadowRoot.querySelector("input").focus();else return h.stopPropagation(),!1})}}},Symbol.toStringTag,{value:"Module"}));/*!
646
- * iamKey v7.2.1--beta1
646
+ * iamKey v7.2.1--beta2
647
647
  * Copyright 2022-2025 iamproperty
648
648
  */const Vi=(a,t,e,o)=>{const r=Math.tan(.375*Math.PI),i=window.innerWidth||document.body.clientWidth,n=Math.max(1,Math.floor(.01*i)),c=e-a,m=o-t,l=Math.abs(c/m),d=Math.abs(m/c);if(Math.abs(c)>n||Math.abs(m)>n){if(d<=r)return c<0?"left":"right";if(l<=r)return m<0?"top":"bottom"}else return"tap"},Oi=function(a){const t=a.querySelectorAll(":scope > details, :scope > a");let e=a.querySelector(":scope > .tabs__links"),o=a.querySelector(":scope .tabs__dropdown");if(a.shadowRoot&&a.shadowRoot.querySelector(".tabs__links")&&(e=a.shadowRoot.querySelector(".tabs__links")),!e){e=document.createElement("div"),e.classList.add("tabs__links");const i=document.createElement("div");i.classList.add("tabs__links__wrapper"),i.prepend(e),a.prepend(i)}o||(o=document.createElement("select"),o.classList.add("tabs__dropdown"),a.prepend(o));let r=0;t.forEach(i=>{let n=document.createElement("button");const c=document.createElement("option");if(i.matches("details")){const m=i.querySelector(":scope > summary"),l=m.classList.contains("disabled");m.classList.add("visually-hidden"),i.hasAttribute("id")&&n.setAttribute("data-id",`${i.getAttribute("id")}`),i.hasAttribute("open")&&n.setAttribute("aria-pressed",!0),n.innerHTML=`${m.innerText}`,n.classList.add("link"),n.setAttribute("data-index",r),n.setAttribute("part","tab-link"),c.innerHTML=`${m.innerText}`,c.value=m.innerText.replace(/\s+/g,"-").toLowerCase(),c.setAttribute("data-index",r),i.setAttribute("tabindex","-1"),l&&n.classList.add("disabled"),r++}else i.matches("a")&&(n=i);n.classList.add("link"),e.appendChild(n),o.appendChild(c)})},Ii=function(a){const t=a.querySelectorAll(":scope > details"),e=a.querySelectorAll(":scope > details > summary");let o=a.querySelector(":scope .tabs__links"),r=a.querySelectorAll(":scope .tabs__links > button");const i=a.querySelector(":scope .tabs__dropdown");let n=a.querySelector(":scope .tabs__next"),c;if(window.isClicked=!1,window.isScrolling=!1,a.shadowRoot&&(r=a.shadowRoot.querySelectorAll(".tabs__links > button"),o=a.shadowRoot.querySelector(".tabs__links"),n=a.shadowRoot.querySelector(".tabs__next")),r.forEach(m=>{m.addEventListener("click",l=>{if(l.preventDefault(),window.isClicked=!0,m.classList.contains("disabled"))return!1;r.forEach(d=>{const u=d==m;d.setAttribute("aria-pressed",u)}),o.scroll({top:0,left:m.offsetLeft,behavior:"smooth"}),kt(t,m),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:m.textContent}),m.matches(":last-child")?n==null||n.setAttribute("disabled","disabled"):n==null||n.removeAttribute("disabled")}),Ui(t,i)}),o.addEventListener("scrollend",()=>{clearTimeout(c),c=setTimeout(function(){let m=r[0],l=Math.abs(m.getBoundingClientRect().left);if(r.forEach(d=>{Math.abs(d.getBoundingClientRect().left)<l&&(l=Math.abs(d.getBoundingClientRect().left),m=d)}),window.isClicked)return window.isClicked=!1,!1;m.click(),m.focus()},500)}),e.forEach((m,l)=>{m.addEventListener("click",d=>{d.preventDefault(),r[l].click()})}),n==null||n.addEventListener("click",m=>{m.preventDefault();const l=o.querySelector('[aria-pressed="true"]').nextSibling;l&&l.click()}),a.classList.contains("tabs--guided")){let m=0,l=0,d=0,u=0;t.forEach(p=>{p.addEventListener("touchstart",h=>{h.stopPropagation(),m=h.changedTouches[0].screenX,l=h.changedTouches[0].screenY}),p.addEventListener("touchend",h=>{h.stopPropagation(),d=h.changedTouches[0].screenX,u=h.changedTouches[0].screenY;const g=Vi(m,l,d,u),v=o.querySelector('[aria-pressed="true"]'),f=v.nextSibling,b=v.previousSibling;switch(g){case"left":f&&f.click();break;case"right":b&&b.click();break}})})}},kt=function(a,t){a.forEach((e,o)=>{const r=t.getAttribute("data-index")==o;r?e.setAttribute("open",r):e.removeAttribute("open")})},Ui=function(a,t){t.addEventListener("change",e=>{e.preventDefault();const o=t.options[t.selectedIndex];kt(a,o),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:o.innerText})})},Wi=function(a){if(!a.querySelector(":scope > details"))return!1;const t=a.querySelectorAll(":scope > details"),e=a.shadowRoot.querySelectorAll(".tabs__links > button");location.hash&&a.shadowRoot.querySelector(`.tabs__links [data-id="${location.hash.replace("#","")}"]`)?(a.shadowRoot.querySelector(`[data-id="${location.hash.replace("#","")}"]`).setAttribute("aria-pressed",!0),a.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):a.querySelector("details[open]")||(t[0].setAttribute("open",!0),e[0].setAttribute("aria-pressed",!0))},Yi=function(a){Oi(a),Ii(a),Wi(a)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class Gi 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`,o=document.createElement("template");o.innerHTML=`
649
649
  <style>
@@ -668,7 +668,7 @@ iam-menu details summary:not([class*="fa-"]:before {
668
668
  <button part="next-button" class="btn btn-secondary btn-sm btn-compact fa-regular fa-chevron-right tabs__next">Next</button>
669
669
  </div>
670
670
  `,this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){const t=this.classList.toString().replace("container","");this.shadowRoot.querySelector(".tabs").setAttribute("class",`tabs ${t}`),Yi(this)}}const Xi=Object.freeze(Object.defineProperty({__proto__:null,default:Gi},Symbol.toStringTag,{value:"Module"}));/*!
671
- * iamKey v7.2.1--beta1
671
+ * iamKey v7.2.1--beta2
672
672
  * Copyright 2022-2025 iamproperty
673
673
  */const Ki=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},Ji=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(o=>{a.addEventListener(o,function(r){const i={event:o,element:t,target:r.target};Object.keys(r.detail).forEach(n=>{const c=r.detail[n];i[n]=c}),window.dataLayer.push(i)})}),!0),Qi=`<div class="card__head" part="head">
674
674
  <slot name="head"></slot>