@iamproperty/components 4.0.1 → 4.0.3

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.
@@ -3,6 +3,7 @@ function createAppliedFilters(container,filters) {
3
3
 
4
4
 
5
5
  function addFilterButton (filters, input){
6
+
6
7
  let shouldRemoveFilter = false;
7
8
  let inputName = input.getAttribute('name');
8
9
 
@@ -12,7 +13,7 @@ function createAppliedFilters(container,filters) {
12
13
  let filter = filters.querySelector(`[data-name="${inputName}"]`);
13
14
 
14
15
  if(filter && input.getAttribute('type') == 'checkbox')
15
- shouldRemoveFilter = true;
16
+ shouldRemoveFilter = !input.checked ? true : false;
16
17
 
17
18
  let filterText = input.getAttribute('data-filter-text');
18
19
 
@@ -97,14 +98,24 @@ function createAppliedFilters(container,filters) {
97
98
  addFilterButton(filters, input)
98
99
  });
99
100
 
101
+ // chech for change in displayed inputs
100
102
  Array.from(container.querySelectorAll('input[data-filter-text]')).forEach((input, index) => {
101
-
103
+
102
104
  input.addEventListener('change', function(event){
103
105
 
104
106
  addFilterButton(filters, input)
105
107
  });
106
108
  });
107
109
 
110
+ // check for changes within modals
111
+ container.addEventListener('change', function(event){
112
+
113
+ if (event && event.target instanceof HTMLElement && event.target.closest('input[data-filter-text]')){
114
+ let input = event.target.closest('input[data-filter-text]');
115
+ addFilterButton(filters, input);
116
+ }
117
+ });
118
+
108
119
  filters.addEventListener('click', function(event){
109
120
 
110
121
  if (event && event.target instanceof HTMLElement && event.target.closest('.filter')){
@@ -48,7 +48,7 @@ function At(e, a, t, i, o, s) {
48
48
  }
49
49
  const Gr = /* @__PURE__ */ _(yt, [["render", At]]);
50
50
  /*!
51
- * iamKey v4.0.1
51
+ * iamKey v4.0.3
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */
54
54
  const _t = function(e) {
@@ -1024,7 +1024,7 @@ function be(e, a, t, i, o, s) {
1024
1024
  }
1025
1025
  const Kr = /* @__PURE__ */ _(pe, [["render", be]]);
1026
1026
  /*!
1027
- * iamKey v4.0.1
1027
+ * iamKey v4.0.3
1028
1028
  * Copyright 2022-2023 iamproperty
1029
1029
  */
1030
1030
  function fe(e) {
@@ -1175,7 +1175,7 @@ const Zr = /* @__PURE__ */ _(ke, [["render", He]]), Ce = {
1175
1175
  name: "Card",
1176
1176
  mounted() {
1177
1177
  this.$nextTick(function() {
1178
- import("./card.component.min-a871ec18.mjs").then((e) => {
1178
+ import("./card.component.min-04ff8970.mjs").then((e) => {
1179
1179
  window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
1180
1180
  }).catch((e) => {
1181
1181
  console.log(e.message);
@@ -1376,7 +1376,7 @@ function Ue(e, a, t, i, o, s) {
1376
1376
  }
1377
1377
  const ti = /* @__PURE__ */ _(Ie, [["render", Ue]]);
1378
1378
  /*!
1379
- * iamKey v4.0.1
1379
+ * iamKey v4.0.3
1380
1380
  * Copyright 2022-2023 iamproperty
1381
1381
  */
1382
1382
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "header" });
@@ -1822,7 +1822,7 @@ const ii = /* @__PURE__ */ _(va, [["render", Ha]]), Ca = {
1822
1822
  name: "Nav",
1823
1823
  mounted() {
1824
1824
  this.$nextTick(function() {
1825
- import("./nav.component.min-b40255b1.mjs").then((e) => {
1825
+ import("./nav.component.min-146d9878.mjs").then((e) => {
1826
1826
  window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
1827
1827
  }).catch((e) => {
1828
1828
  console.log(e.message);
@@ -1939,7 +1939,7 @@ function Za(e, a, t, i, o, s) {
1939
1939
  }
1940
1940
  const li = /* @__PURE__ */ _(Xa, [["render", Za]]);
1941
1941
  /*!
1942
- * iamKey v4.0.1
1942
+ * iamKey v4.0.3
1943
1943
  * Copyright 2022-2023 iamproperty
1944
1944
  */
1945
1945
  const tr = function(e) {
@@ -2128,7 +2128,7 @@ function yr(e, a, t, i, o, s) {
2128
2128
  }
2129
2129
  const mi = /* @__PURE__ */ _(mr, [["render", yr]]);
2130
2130
  /*!
2131
- * iamKey v4.0.1
2131
+ * iamKey v4.0.3
2132
2132
  * Copyright 2022-2023 iamproperty
2133
2133
  */
2134
2134
  function vr(e, a) {
@@ -2136,7 +2136,7 @@ function vr(e, a) {
2136
2136
  let s = !1, r = o.getAttribute("name");
2137
2137
  r.includes("[]") && (r = r.replace("[]", `[${o.value}]`));
2138
2138
  let n = i.querySelector(`[data-name="${r}"]`);
2139
- n && o.getAttribute("type") == "checkbox" && (s = !0);
2139
+ n && o.getAttribute("type") == "checkbox" && (s = !o.checked);
2140
2140
  let c = o.getAttribute("data-filter-text");
2141
2141
  if (n || (n = document.createElement("button"), i.appendChild(n)), n.setAttribute("type", "button"), n.classList.add("filter"), n.setAttribute("data-name", r), n.innerHTML = c.replace("$value", o.value), (!o.value || s) && n.remove(), o.parentNode.closest("[data-filter-text]")) {
2142
2142
  let l = o.parentNode.closest("[data-filter-text]"), m = !0;
@@ -2164,6 +2164,11 @@ function vr(e, a) {
2164
2164
  i.addEventListener("change", function(s) {
2165
2165
  t(a, i);
2166
2166
  });
2167
+ }), e.addEventListener("change", function(i) {
2168
+ if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
2169
+ let o = i.target.closest("input[data-filter-text]");
2170
+ t(a, o);
2171
+ }
2167
2172
  }), a.addEventListener("click", function(i) {
2168
2173
  if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
2169
2174
  let r = i.target.closest(".filter"), n = r.getAttribute("data-name").split(",");
@@ -2219,7 +2224,7 @@ function _r(e, a, t, i, o, s) {
2219
2224
  }
2220
2225
  const pi = /* @__PURE__ */ _(Ar, [["render", _r]]);
2221
2226
  /*!
2222
- * iamKey v4.0.1
2227
+ * iamKey v4.0.3
2223
2228
  * Copyright 2022-2023 iamproperty
2224
2229
  */
2225
2230
  function Lr(e, a) {
@@ -2386,7 +2391,7 @@ function Hr(e, a, t, i, o, s) {
2386
2391
  }
2387
2392
  const gi = /* @__PURE__ */ _(Mr, [["render", Hr]]);
2388
2393
  /*!
2389
- * iamKey v4.0.1
2394
+ * iamKey v4.0.3
2390
2395
  * Copyright 2022-2023 iamproperty
2391
2396
  */
2392
2397
  const Cr = function(e) {
@@ -2749,7 +2754,7 @@ function jr(e, a, t, i, o, s) {
2749
2754
  }
2750
2755
  const yi = /* @__PURE__ */ _(Ir, [["render", jr]]);
2751
2756
  /*!
2752
- * iamKey v4.0.1
2757
+ * iamKey v4.0.3
2753
2758
  * Copyright 2022-2023 iamproperty
2754
2759
  */
2755
2760
  const Pr = function(e, a) {
@@ -2807,7 +2812,7 @@ function Fr(e, a, t, i, o, s) {
2807
2812
  }
2808
2813
  const vi = /* @__PURE__ */ _(Br, [["render", Fr]]);
2809
2814
  /*!
2810
- * iamKey v4.0.1
2815
+ * iamKey v4.0.3
2811
2816
  * Copyright 2022-2023 iamproperty
2812
2817
  */
2813
2818
  window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
@@ -1,5 +1,5 @@
1
1
  (function(g,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(g=typeof globalThis<"u"?globalThis:g||self,a(g.iamkey={},g.Vue))})(this,function(g,a){"use strict";const v=(t,o)=>{const e=t.__vccOpts||t;for(const[n,i]of o)e[n]=i;return e},Z={name:"Logo",props:{id:{type:String,required:!1,default:"property"},path:{type:String,required:!1,default:"/svg/logo.svg"},desc:{type:String}},computed:{src:function(){return"#logo-"+this.id},className:function(){return"brand brand--"+this.id}}},ee=["xlink:href"],te=["innerHTML"];function ae(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(s.className)},[(a.openBlock(),a.createElementBlock("svg",null,[a.createElementVNode("title",null,"iam "+a.toDisplayString(e.id),1),a.createElementVNode("use",{"xlink:href":e.path+s.src},null,8,ee)])),e.desc?(a.openBlock(),a.createElementBlock("span",{key:0,innerHTML:e.desc},null,8,te)):a.createCommentVNode("",!0)],2)}const oe=v(Z,[["render",ae]]);/*!
2
- * iamKey v4.0.1
2
+ * iamKey v4.0.3
3
3
  * Copyright 2022-2023 iamproperty
4
4
  */const re=function(t){return typeof t!="string"?!1:!isNaN(t)&&!isNaN(parseFloat(t))},ne=(t,o)=>String(t).padStart(o,"0"),ie=t=>t.charAt(0).toUpperCase()+t.slice(1),x=function(t,o){if(!t.getAttribute("data-pages"))return!1;t.getAttribute("data-page")||t.setAttribute("data-page",1);let e=t.getAttribute("data-page"),n=t.getAttribute("data-pages"),i=t.getAttribute("data-total"),s=t.getAttribute("data-show"),r=t.getAttribute("data-increment");if(n<=1)return o.innerHTML="",!1;let l="";for(let d=1;d<=n;d++)d==e?l+=`<li class="page-item active" aria-current="page"><span class="page-link">${d}</span></li>`:l+=`<li class="page-item"><a href="?page=${d}" class="page-link" data-page="${d}">${d}</a></li>`;return o.innerHTML=`<ul class="pagination mb-0 d-none d-sm-flex">
5
5
  ${e==1?'<li class="page-item disabled"><span class="page-link">Previous</span></li>':`<li class="page-item"><a href="?page=${parseInt(e)-1}" class="page-link" data-page="${parseInt(e)-1}">Previous</a></li>`}
@@ -48,7 +48,7 @@
48
48
  <div class="files"></div>
49
49
  </div>
50
50
  `,this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){this.innerHTML+='<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';const o=this.shadowRoot.querySelector(".file-upload"),e=this.querySelector("input"),n=this.shadowRoot.querySelector(".helper-text");n.innerHTML=`${this.hasAttribute("data-maxsize")?`Max file size is ${this.getAttribute("data-maxsize")}kb. `:""}${e.hasAttribute("accept")?`Supported file types are ${e.getAttribute("accept")}`:""}`,Ge(this,o)}}const Xe={name:"FileUpload",props:{maxfilesize:{type:Number,required:!1},maxfiles:{type:Number,required:!1}},mounted(){this.$nextTick(function(){window.customElements.get("iam-fileupload")||window.customElements.define("iam-fileupload",Ke)})}};function Je(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-fileupload",null,[a.renderSlot(t.$slots,"default")])}const Qe=v(Xe,[["render",Je]]);/*!
51
- * iamKey v4.0.1
51
+ * iamKey v4.0.3
52
52
  * Copyright 2022-2023 iamproperty
53
53
  */function Ze(t){let o=t.querySelectorAll("details"),e=t.querySelectorAll("summary");if(o.forEach(n=>{n.classList.add("accordion-item")}),e.forEach(n=>{n.classList.add("accordion-header"),n.classList.add("accordion-button"),n.classList.add("h4")}),!t.classList.contains("accordion--keep-open")){const n=t.querySelectorAll(":scope > details");n.forEach(i=>{i.addEventListener("click",()=>{n.forEach(s=>{s!==i&&s.removeAttribute("open")})})})}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});let et=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
54
54
  <style>
@@ -61,7 +61,7 @@
61
61
  <slot></slot>
62
62
  </div>
63
63
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){Ze(this)}};const rr="";window.customElements.get("iam-accordion")||window.customElements.define("iam-accordion",et);const tt={name:"Accordion",props:{},mounted(){}},at={ref:"wrapper"};function ot(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-accordion",at,[a.renderSlot(t.$slots,"default")],512)}const rt=v(tt,[["render",ot]]),nt={name:"AccordionItem",props:{title:{type:String,required:!0},titlecolour:{type:String,required:!1},badge:{type:[Number,String],required:!1},badgecolour:{type:String,required:!1,default:"light"},lazy:{type:Boolean,required:!1}},computed:{createID(){return t=>`${we(t)}`}},data(){return{show:!this.lazy}}},it=["id"],st=["classList"];function lt(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("details",{id:s.createID(e.title)},[a.createElementVNode("summary",{classList:`${e.titlecolour?`bg-${e.titlecolour}`:""}`},[a.createTextVNode(a.toDisplayString(e.title),1),e.badge?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(`badge bg-${e.badgecolour}`)},a.toDisplayString(e.badge),3)):a.createCommentVNode("",!0)],8,st),a.renderSlot(t.$slots,"default")],8,it)}const ct=v(nt,[["render",lt]]),dt={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1},background:{type:String,default:"light",required:!1}}},mt={class:"container"},ut={class:"row"},ht={class:"col-sm-6"},pt={class:"pt-5 pb-3 px-4"},bt={class:"col-sm-6 col-md-5 ms-auto"},ft=["src"];function gt(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",mt,[a.createElementVNode("div",{class:a.normalizeClass("bg-"+e.background+" mb-4")},[a.createElementVNode("div",ut,[a.createElementVNode("div",ht,[a.createElementVNode("div",pt,[a.createElementVNode("h2",null,a.toDisplayString(e.title),1),a.renderSlot(t.$slots,"default")])]),a.createElementVNode("div",bt,[e.image?(a.openBlock(),a.createElementBlock("img",{key:0,src:e.image,alt:"",class:"h-100 w-100 object-cover"},null,8,ft)):a.createCommentVNode("",!0)])])],2)])}const yt=v(dt,[["render",gt]]),wt={name:"Card",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Jo).then(t=>{window.customElements.get("iam-card")||window.customElements.define("iam-card",t.default)}).catch(t=>{console.log(t.message)})})}};function vt(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-card",null,[a.renderSlot(t.$slots,"default")])}const Y=v(wt,[["render",vt]]);function _t(t){var o;let e=t.querySelector(".carousel__inner"),n=t.querySelectorAll(".carousel__item").length;t.getAttribute("data-cols");let i=t.getAttribute("data-sm-cols"),s=t.getAttribute("data-md-cols");t.querySelector(".carousel__controls a").classList.add("active"),e.addEventListener("scroll",function(r){clearTimeout(o),o=setTimeout(function(){let l=e.clientWidth,d=e.scrollWidth,c=e.scrollLeft,u=Math.round(c/d*n)+1,m=t.querySelector(".carousel__item:last-child").offsetLeft;Array.from(t.querySelectorAll(".carousel__controls a")).forEach((b,p)=>{b.classList.remove("active")}),t.querySelector(".control-"+u).classList.add("active"),u==1?t.querySelector(".btn-prev").setAttribute("disabled","disabled"):t.querySelector(".btn-prev").removeAttribute("disabled"),e.scrollLeft+l>m?t.querySelector(".btn-next").setAttribute("disabled","disabled"):t.querySelector(".btn-next").removeAttribute("disabled")},100)},!1),t.addEventListener("click",function(r){for(var l=r.target;l&&l!=this;l=l.parentNode)if(l.matches(".carousel__controls a")){r.preventDefault(),Array.from(t.querySelectorAll(".carousel__controls a")).forEach((c,u)=>{c.classList.remove("active")}),l.classList.add("active");const d=document.querySelector(l.getAttribute("href"));e.scroll({top:0,left:d.offsetLeft,behavior:"smooth"});break}},!1),t.addEventListener("click",function(r){for(var l=r.target;l&&l!=this;l=l.parentNode)if(l.matches(".btn-next, .btn-prev")){r.preventDefault();let d=l.classList.contains("btn-prev")?e.scrollLeft-e.clientWidth:e.scrollLeft+e.clientWidth;e.scroll({top:0,left:d,behavior:"smooth"});break}},!1),n==1&&t.classList.add("hide-btns"),i>=n&&t.classList.add("hide-sm-btns"),s>=n&&t.classList.add("hide-md-btns")}const nr="",At={components:{Card:Y},name:"Carousel",data(){return{id:null}},props:{items:{type:Array,required:!1},cols:{type:Number,required:!1,default:1},smcols:{type:Number,required:!1,default:1},mdcols:{type:Number,required:!1,default:3},gap:{type:Number,required:!1,default:4},cardtype:{type:String,required:!1},cardclass:{type:String,required:!1},btntype:{type:String,required:!1},titleclass:{type:String,required:!1},ctatext:{type:String,required:!1},hidectatext:{type:Boolean,required:!1,default:!1},colclass:{type:String,required:!1},type:{type:String,required:!1}},computed:{content(){return t=>`${t.image?`<img src="${t.image}" alt="" />`:""}${t.content?t.content:""}`}},mounted(){this.id=this._uid,this.$nextTick(function(){_t(this.$refs.wrapper)})}},kt=["id","data-cols","data-sm-cols","data-md-cols"],Lt={class:"carousel__wrapper"},St={class:"carousel__inner"},Et=["id"],xt=["innerHTML","id"],qt=["href"],$t=a.createElementVNode("button",{class:"btn btn-prev","data-go":"0",disabled:""},"Prev",-1),Tt=a.createElementVNode("button",{class:"btn btn-next","data-go":"2"},"Next",-1);function Ct(t,o,e,n,i,s){const r=a.resolveComponent("Card");return a.openBlock(),a.createElementBlock("div",{class:"container carousel",id:"carousel"+i.id,ref:"wrapper","data-cols":e.cols,"data-sm-cols":e.smcols,"data-md-cols":e.mdcols},[a.renderSlot(t.$slots,"default"),a.createElementVNode("div",Lt,[a.createElementVNode("div",St,[e.type=="card"?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap?`g-${e.gap}`:""}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(l,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`col carousel__item${e.colclass?` ${e.colclass}`:""}`),key:d,id:"carousel"+i.id+"slide"+(d+1)},[a.createVNode(r,a.mergeProps(l,{class:e.cardclass,type:e.cardtype,btnyype:e.btntype,titleclass:e.titleclass,ctatext:e.ctatext,hidectatext:e.hidectatext}),null,16,["class","type","btnyype","titleclass","ctatext","hidectatext"])],10,Et))),128))],2)):a.createCommentVNode("",!0),e.type!="card"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap?`g-${e.gap}`:""}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(l,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`col carousel__item${e.colclass?` ${e.colclass}`:""}`),key:d,innerHTML:s.content(l),id:"carousel"+i.id+"slide"+(d+1)},null,10,xt))),128))],2)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:a.normalizeClass(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(l,d)=>(a.openBlock(),a.createElementBlock("a",{key:d,href:"#carousel"+i.id+"slide"+(d+1),class:a.normalizeClass(`control-${d+1}`)},"Slide "+a.toDisplayString(d+1),11,qt))),128))],2),$t,Tt])],8,kt)}const Mt=v(At,[["render",Ct]]);/*!
64
- * iamKey v4.0.1
64
+ * iamKey v4.0.3
65
65
  * Copyright 2022-2023 iamproperty
66
66
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class Bt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
67
67
  <style>
@@ -85,7 +85,7 @@
85
85
  </picture>
86
86
  </div>
87
87
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");const o=this.shadowRoot.querySelector("picture"),e=this.shadowRoot.querySelector("picture source");this.hasAttribute("image")?e.setAttribute("srcset",this.getAttribute("image")):o.remove()}}const Ht={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){window.customElements.get("iam-header")||window.customElements.define("iam-header",Bt)})}},Nt=["image"],Vt=["innerHTML"];function Dt(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-header",{class:"bg-secondary",image:e.image},[a.renderSlot(t.$slots,"breadcrumb"),e.title?(a.openBlock(),a.createElementBlock("h1",{key:0,innerHTML:e.title},null,8,Vt)):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default")],8,Nt)}const Rt=v(Ht,[["render",Dt]]);function zt(t){var o;const e=t.querySelector(".testimonial__images"),n=e.querySelectorAll("img").length;if(n==1)return!1;t.classList.add("testimonial--multi");const i=function(s){const r=t.querySelector(".btn-next"),l=t.querySelector(".btn-prev");r.setAttribute("data-go",s+1),l.setAttribute("data-go",s-1),r.removeAttribute("disabled"),l.removeAttribute("disabled"),s==1?l.setAttribute("disabled",!0):s==n&&r.setAttribute("disabled",!0)};e.addEventListener("scroll",function(s){clearTimeout(o),o=setTimeout(function(){let r=e.scrollWidth,l=e.scrollHeight,d=e.scrollLeft,c=e.scrollTop,u=Math.round(d/r*n)+1;d==0&&c!=0&&(u=Math.round(c/l*n)+1),t.setAttribute("data-show",u),i(u)},300)},!1),t.addEventListener("click",function(s){for(var r=s.target;r&&r!=this;r=r.parentNode)if(r.matches("[data-go]")){let l=parseInt(r.getAttribute("data-go")),d=0,c=0,u=e.scrollWidth,m=e.scrollHeight;u>m?c=Math.floor(u*((l-1)/n)):d=Math.floor(m*((l-1)/n)),e.scroll({top:d,left:c,behavior:"smooth"});break}},!1)}const ir="",Pt={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){zt(this.$refs.wrapper)}},Ft={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},jt={class:"row"},It={class:"col-md-5 position-relative"},Ot={class:"testimonial__images"},Wt=["src"],Ut=a.createElementVNode("div",{class:"testimonial__controls"},[a.createElementVNode("button",{"data-go":"0",disabled:"",class:"btn-prev"},"Previous"),a.createElementVNode("button",{"data-go":"2",class:"btn-next"},"Next")],-1),Yt={class:"col-md-7"},Gt=a.createElementVNode("h2",null,"What our customers think…",-1),Kt={class:"testimonial__content"},Xt=["innerHTML"],Jt=["innerHTML"],Qt={class:"testimonial__after"},Zt=a.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1);function ea(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",Ft,[a.createElementVNode("div",{class:a.normalizeClass("bg-"+e.background)},[a.createElementVNode("div",jt,[a.createElementVNode("div",It,[a.createElementVNode("div",Ot,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(r,l)=>(a.openBlock(),a.createElementBlock("img",{key:l,src:r.image?r.image:"data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"",class:a.normalizeClass("h-100 w-100 object-cover"+(r.image?"":" opacity-0"))},null,10,Wt))),128))]),Ut]),a.createElementVNode("div",Yt,[Gt,a.createElementVNode("div",Kt,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(r,l)=>(a.openBlock(),a.createElementBlock("blockquote",{key:l,class:a.normalizeClass(r.class)},[a.createElementVNode("div",{innerHTML:r.quote},null,8,Xt),a.createElementVNode("cite",{innerHTML:r.cite},null,8,Jt)],2))),128))]),a.createElementVNode("div",Qt,[a.renderSlot(t.$slots,"default")])])]),Zt],2)],512)}const ta=v(Pt,[["render",ea]]),sr="",aa={name:"Timeline",props:{image:{type:String,required:!1}}},oa={class:"timeline"},ra={class:"timeline__content"},na=["src"];function ia(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",oa,[a.createElementVNode("div",ra,[a.renderSlot(t.$slots,"default")]),e.image?(a.openBlock(),a.createElementBlock("img",{key:0,src:e.image,alt:""},null,8,na)):a.createCommentVNode("",!0)])}const sa=v(aa,[["render",ia]]),lr="",la={components:{Input:N},name:"PropertySearchbar",props:{formaction:{type:String,required:!1},formmethod:{type:String,required:!1},location:{type:String,required:!1},locations:{type:Array,required:!1},distances:{type:Array,required:!1,default(){return[{value:"0.25",display:"+¼ mi"},{value:"0.5",display:"+½ mi"},{value:"1",display:"+1 mi"},{value:"2",display:"+2 mi"},{value:"3",display:"+3 mi"},{value:"4",display:"+4 mi"},{value:"5",display:"+5 mi"}]}},pricemin:{type:Array,required:!1,default(){return[{value:"0",display:"No min"},{value:"50000",display:"£50k min"},{value:"75000",display:"£75k min"},{value:"100000",display:"£100k min"},{value:"150000",display:"£150k min"},{value:"200000",display:"£200k min"},{value:"250000",display:"£250k min"}]}},pricemax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"50000",display:"£50k max"},{value:"75000",display:"£75k max"},{value:"100000",display:"£100k max"},{value:"150000",display:"£150k max"},{value:"200000",display:"£200k max"},{value:"250000",display:"£250k max"}]}},bedsmin:{type:Array,required:!1,default(){return[{value:"any",display:"No min"},{value:"0",display:"Studio min"},{value:"1",display:"1 bed min"},{value:"2",display:"2 beds min"},{value:"3",display:"3 beds min"},{value:"4",display:"4 beds min"},{value:"5",display:"5 beds min"},{value:"6",display:"6 beds min"}]}},bedsmax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"0",display:"Studio max"},{value:"1",display:"1 bed max"},{value:"2",display:"2 beds max"},{value:"3",display:"3 beds max"},{value:"4",display:"4 beds max"},{value:"5",display:"5 beds max"},{value:"6",display:"6 beds max"}]}},propertytypes:{type:Array,required:!1,default(){return[{value:"all",display:"Show all"},{value:"Bungalow",display:"Bungalow"},{value:"Character Property",display:"Character Property"},{value:"Commercial Property",display:"Commercial Property"},{value:"Flat / Apartment",display:"Flat / Apartment"},{value:"Garage / Parking",display:"Garage / Parking"},{value:"Guest House / Hotel",display:"Guest House / Hotel"},{value:"House",display:"House"},{value:"House / Flat Share",display:"House / Flat Share"},{value:"Land",display:"Land"},{value:"Mobile / Park Home",display:"Mobile / Park Home"},{value:"Private Halls",display:"Private Halls"},{value:"Retirement Property",display:"Retirement Property"}]}}},data(){return{locationSave:""}},methods:{locationKeyup:function(t){this.$emit("locationKeyup",t)}},computed:{locationSet:{get(){return this.locationSave?this.locationSave:this.location},set(t){this.locationSave=t,this.$emit("input",t)}},locationsList(){return()=>this.locations?this.locations:[{value:"Newcastle"}]}}},ca={class:"container",ref:"wrapper"},da={class:"property-searchbar"},ma=["action","method"],ua={class:"col-12 col-md-3"},ha={class:"col-12 col-md"},pa=a.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1),ba={class:"row","data-input-range":""},fa={class:"col-12 col-md"},ga=a.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1),ya={class:"row","data-input-range":""},wa={class:"col-12 col-md-2"},va=a.createElementVNode("div",{class:"col-12 col-md mw-md-fit-content d-flex property-searchbar__btn"},[a.createElementVNode("button",{class:"btn w-100 me-0",type:"submit",value:"submit"},"Search")],-1);function _a(t,o,e,n,i,s){const r=a.resolveComponent("Input");return a.openBlock(),a.createElementBlock("div",ca,[a.renderSlot(t.$slots,"default"),a.createElementVNode("div",da,[a.createElementVNode("form",{class:"row",action:e.formaction,method:e.formmethod},[a.createElementVNode("fieldset",ua,[a.createVNode(r,{inputClass:"input--locations",modelValue:s.locationSet,"onUpdate:modelValue":o[0]||(o[0]=l=>s.locationSet=l),label:"Location",id:"location",options:s.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:o[1]||(o[1]=l=>s.locationKeyup(...arguments)),ref:"search"},null,8,["modelValue","options"]),a.createVNode(r,{class:"select--miles",label:"Miles",id:"miles",type:"select",options:e.distances},null,8,["options"])]),a.createElementVNode("fieldset",ha,[pa,a.createElementVNode("div",ba,[a.createVNode(r,{class:"col-6",label:"Minimum price",id:"price-min","data-min":"true",type:"select",options:e.pricemin},null,8,["options"]),a.createVNode(r,{class:"col-6",label:"Maximum price",id:"price-max","data-max":"true",type:"select",options:e.pricemax},null,8,["options"])])]),a.createElementVNode("fieldset",fa,[ga,a.createElementVNode("div",ya,[a.createVNode(r,{class:"col-6",label:"Minimum beds",id:"beds-min","data-min":"true",type:"select",options:e.bedsmin},null,8,["options"]),a.createVNode(r,{class:"col-6",label:"Maximum beds",id:"beds-max","data-max":"true",type:"select",options:e.bedsmax},null,8,["options"])])]),a.createElementVNode("fieldset",wa,[a.createVNode(r,{label:"Property type",id:"property-type",type:"select",options:e.propertytypes},null,8,["options"])]),va],8,ma)]),a.renderSlot(t.$slots,"after")],512)}const Aa=v(la,[["render",_a]]),ka={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Zo).then(t=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",t.default)}).catch(t=>{console.log(t.message)})})},methods:{}},La={ref:"wrapper"};function Sa(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-nav",La,[a.renderSlot(t.$slots,"default")],512)}const Ea=v(ka,[["render",Sa]]),cr="",xa={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},qa={class:"container"},$a=["aria-label"],Ta={key:0,class:"h6 stepper__start"},Ca={class:"list-unstyled"},Ma={class:"h6 stepper__end"};function Ba(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",qa,[a.createElementVNode("nav",{class:"stepper","aria-label":e.label?e.label:"Progress"},[e.label?(a.openBlock(),a.createElementBlock("span",Ta,a.toDisplayString(e.label),1)):a.createCommentVNode("",!0),a.createElementVNode("ol",Ca,[a.renderSlot(t.$slots,"default")]),a.createElementVNode("span",Ma,a.toDisplayString(e.endlabel),1)],8,$a)])}const Ha=v(xa,[["render",Ba]]),dr="",Na={name:"Snapshot",props:{items:{type:Array,required:!0}}},Va={class:"container snapshot",ref:"wrapper"},Da={class:"row"},Ra=["href"],za={class:"lead snapshot__title"},Pa={class:"stat"};function Fa(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("div",Va,[a.renderSlot(t.$slots,"default"),a.createElementVNode("div",Da,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,(r,l)=>(a.openBlock(),a.createElementBlock("div",{class:"col",key:l},[r.link?(a.openBlock(),a.createElementBlock("a",{key:0,href:r.link},"View "+a.toDisplayString(r.title),9,Ra)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`snapshot__item ${r.bg?"bg-"+r.bg:""}`)},[a.createElementVNode("span",za,a.toDisplayString(r.title),1),a.createElementVNode("span",Pa,a.toDisplayString(r.number),1)],2)]))),128))])],512)}const ja=v(Na,[["render",Fa]]),Ia={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},Oa=["href","aria-current"],Wa={key:0,class:"visually-hidden"};function Ua(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("li",null,[a.createElementVNode("a",{href:e.url,class:a.normalizeClass(`${e.status?"bg-"+e.status:""}${typeof e.current<"u"?"current":""}`),"aria-current":typeof e.current<"u"},[a.createElementVNode("span",null,[a.renderSlot(t.$slots,"default")]),e.status?(a.openBlock(),a.createElementBlock("em",Wa," - status: "+a.toDisplayString(e.status),1)):a.createCommentVNode("",!0)],10,Oa)])}const Ya=v(Ia,[["render",Ua]]);/*!
88
- * iamKey v4.0.1
88
+ * iamKey v4.0.3
89
89
  * Copyright 2022-2023 iamproperty
90
90
  */const Ga=function(t){const o=t.querySelectorAll(":scope > details");t.querySelectorAll(":scope > details > summary");let e=t.querySelector(":scope > .tabs__links");t.shadowRoot&&t.shadowRoot.querySelector(".tabs__links")&&(e=t.shadowRoot.querySelector(".tabs__links")),e||(e=document.createElement("div"),e.classList.add("tabs__links"),t.prepend(e)),o.forEach((n,i)=>{let s=n.querySelector(":scope > summary");s.classList.add("visually-hidden");let r=document.createElement("button");n.hasAttribute("id")&&(r=document.createElement("a"),r.setAttribute("href",`#${n.getAttribute("id")}`)),n.hasAttribute("open")&&r.setAttribute("aria-pressed",!0),r.innerHTML=`${s.innerText}`,r.classList.add("link"),r.setAttribute("data-index",i),r.setAttribute("tabindex","-1"),e.appendChild(r)})},Ka=function(t){let o=t.querySelectorAll(":scope > details"),e=t.querySelectorAll(":scope > details > summary"),n=t.querySelectorAll(":scope .tabs__links > .link");t.shadowRoot&&(n=t.shadowRoot.querySelectorAll(".tabs__links > .link")),n.forEach(i=>{i.addEventListener("click",s=>{s.preventDefault(),n.forEach(r=>{let l=r==i;r.setAttribute("aria-pressed",l)}),o.forEach((r,l)=>{let d=i.getAttribute("data-index")==l;d?r.setAttribute("open",d):r.removeAttribute("open")}),i.hasAttribute("href")&&history.pushState(void 0,void 0,i.getAttribute("href")),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:i.textContent})})}),e.forEach((i,s)=>{i.addEventListener("focus",r=>{n.forEach(l=>{l.classList.remove("focus")}),n[s].classList.add("focus")}),i.addEventListener("click",r=>{r.preventDefault(),n[s].click()})})},Xa=function(t){let o=t.querySelectorAll(":scope > details"),e=t.querySelectorAll(":scope > .tabs__links > button, .tabs__links > a");t.shadowRoot&&(e=t.shadowRoot.querySelectorAll(".tabs__links > button, .tabs__links > a")),location.hash&&t.querySelector(`.tabs__links [href="${location.hash}"]`)?(t.querySelector(`[href="${location.hash}"]`).setAttribute("open",!0),t.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):t.querySelector("details[open]")||(o[0].setAttribute("open",!0),e[0].setAttribute("aria-pressed",!0))},Ja=function(t){Ga(t),Ka(t),Xa(t)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});let Qa=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
91
91
  <style>
@@ -102,9 +102,9 @@
102
102
  <slot></slot>
103
103
  </div>
104
104
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){let o=this.classList.toString().replace("container","");this.shadowRoot.querySelector(".tabs").setAttribute("class",`tabs ${o}`),Ja(this)}};const mr="";window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",Qa);const Za={name:"Tabs"},eo={ref:"wrapper"};function to(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-tabs",eo,[a.renderSlot(t.$slots,"default")],512)}const ao=v(Za,[["render",to]]),oo={name:"Tab",props:{title:{type:String,required:!0},lazy:{type:Boolean,required:!1}},data(){return{show:!this.lazy}},watch:{show(t,o){console.log(t)}}},ro={class:"tab"},no=["innerHTML"];function io(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("details",ro,[a.createElementVNode("summary",{innerHTML:e.title},null,8,no),a.renderSlot(t.$slots,"default")])}const so=v(oo,[["render",io]]);let G=H.props;G.fields.required=!1;const lo={components:{Table:H,Input:N},data(){return{itemsData:[...this.items]}},methods:{submitForm:function(t){console.log(this);const o=new FormData(t.target);let e=new Date;const n=e.getFullYear();let i=e.getMonth()+1,s=e.getDate();s<10&&(s="0"+s),i<10&&(i="0"+i),e=s+"/"+i+"/"+n,this.itemsData.unshift({date_added:e,user:o.get("user"),note:o.get("addNote")}),this.$emit("formSubmitted",t)}},name:"NoteFeed",props:{user:{type:String,required:!0},...G,title:{type:String,required:!1},method:{type:String,required:!1,default:"post"},action:{type:String,required:!1}}},co={class:"container note-feed mb-2"},mo=["innerHTML"],uo=["action","method"],ho=["value"],po=a.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1);function bo(t,o,e,n,i,s){const r=a.resolveComponent("Table"),l=a.resolveComponent("Input");return a.openBlock(),a.createElementBlock("div",co,[e.title?(a.openBlock(),a.createElementBlock("span",{key:0,class:"h3",innerHTML:e.title},null,8,mo)):a.createCommentVNode("",!0),a.createVNode(r,a.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:i.itemsData},t.$props,{class:"mb-0"}),null,16,["items"]),a.createElementVNode("form",{action:e.action,method:e.method,onSubmit:o[0]||(o[0]=a.withModifiers(d=>s.submitForm(...arguments),["prevent"]))},[a.createElementVNode("input",{type:"hidden",value:e.user,name:"user"},null,8,ho),a.createVNode(l,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),po],40,uo)])}const fo=v(lo,[["render",bo]]);/*!
105
- * iamKey v4.0.1
105
+ * iamKey v4.0.3
106
106
  * Copyright 2022-2023 iamproperty
107
- */function go(t,o){function e(n,i){let s=!1,r=i.getAttribute("name");r.includes("[]")&&(r=r.replace("[]",`[${i.value}]`));let l=n.querySelector(`[data-name="${r}"]`);l&&i.getAttribute("type")=="checkbox"&&(s=!0);let d=i.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),n.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.setAttribute("data-name",r),l.innerHTML=d.replace("$value",i.value),(!i.value||s)&&l.remove(),i.parentNode.closest("[data-filter-text]")){let c=i.parentNode.closest("[data-filter-text]"),u=!0;if(r="",c.querySelectorAll("input").forEach((m,b)=>{let p=m.getAttribute("name");if(r+=`${b!=0?",":""}${p}`,n.querySelector(`[data-name="${p}"]`)&&n.querySelector(`[data-name="${p}"]`).remove(),m.value){let h=document.createElement("button");h.setAttribute("type","button"),h.classList.add("filter"),h.setAttribute("data-name",p),h.innerHTML=d.replace("$value",m.value),n.appendChild(h)}else u=!1}),n.querySelector(`[data-name="${r}"]`)&&n.querySelector(`[data-name="${r}"]`).remove(),u){let m=c.getAttribute("data-filter-text");c.querySelectorAll("input").forEach((p,h)=>{let y=p.getAttribute("name");n.querySelector(`[data-name="${y}"]`)&&n.querySelector(`[data-name="${y}"]`).remove(),m=m.replace(`$${h+1}`,p.value)});let b=document.createElement("button");b.setAttribute("type","button"),b.classList.add("filter"),b.setAttribute("data-name",r),b.innerHTML=m,n.appendChild(b)}}}Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((n,i)=>{e(o,n)}),Array.from(t.querySelectorAll("input[data-filter-text]")).forEach((n,i)=>{n.addEventListener("change",function(s){e(o,n)})}),o.addEventListener("click",function(n){if(n&&n.target instanceof HTMLElement&&n.target.closest(".filter")){let r=n.target.closest(".filter"),l=r.getAttribute("data-name").split(",");for(var i=0;i<l.length;i++){let d=l[i],c=`[name="${d}"]`;d.match(/\[(.*)\]/)&&(d.replace(/\[(.*)\]/,"[]"),c=`[value="${d.replace(/.*\[(.*)\]/,"$1")}"]`);let u=t.querySelectorAll(c);for(var s=0;s<u.length;s++){let m=u[s];if(m.getAttribute("type")!="radio"&&m.getAttribute("type")!="checkbox")m.value="";else{m.checked=!1;var n=new Event("force");t.hasAttribute("data-nosubmit")||m.closest("form").dispatchEvent(n)}}}r.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});let yo=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`;let n=this.classList.toString();const i=document.createElement("template");i.innerHTML=`
107
+ */function go(t,o){function e(n,i){let s=!1,r=i.getAttribute("name");r.includes("[]")&&(r=r.replace("[]",`[${i.value}]`));let l=n.querySelector(`[data-name="${r}"]`);l&&i.getAttribute("type")=="checkbox"&&(s=!i.checked);let d=i.getAttribute("data-filter-text");if(l||(l=document.createElement("button"),n.appendChild(l)),l.setAttribute("type","button"),l.classList.add("filter"),l.setAttribute("data-name",r),l.innerHTML=d.replace("$value",i.value),(!i.value||s)&&l.remove(),i.parentNode.closest("[data-filter-text]")){let c=i.parentNode.closest("[data-filter-text]"),u=!0;if(r="",c.querySelectorAll("input").forEach((m,b)=>{let p=m.getAttribute("name");if(r+=`${b!=0?",":""}${p}`,n.querySelector(`[data-name="${p}"]`)&&n.querySelector(`[data-name="${p}"]`).remove(),m.value){let h=document.createElement("button");h.setAttribute("type","button"),h.classList.add("filter"),h.setAttribute("data-name",p),h.innerHTML=d.replace("$value",m.value),n.appendChild(h)}else u=!1}),n.querySelector(`[data-name="${r}"]`)&&n.querySelector(`[data-name="${r}"]`).remove(),u){let m=c.getAttribute("data-filter-text");c.querySelectorAll("input").forEach((p,h)=>{let y=p.getAttribute("name");n.querySelector(`[data-name="${y}"]`)&&n.querySelector(`[data-name="${y}"]`).remove(),m=m.replace(`$${h+1}`,p.value)});let b=document.createElement("button");b.setAttribute("type","button"),b.classList.add("filter"),b.setAttribute("data-name",r),b.innerHTML=m,n.appendChild(b)}}}Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((n,i)=>{e(o,n)}),Array.from(t.querySelectorAll("input[data-filter-text]")).forEach((n,i)=>{n.addEventListener("change",function(s){e(o,n)})}),t.addEventListener("change",function(n){if(n&&n.target instanceof HTMLElement&&n.target.closest("input[data-filter-text]")){let i=n.target.closest("input[data-filter-text]");e(o,i)}}),o.addEventListener("click",function(n){if(n&&n.target instanceof HTMLElement&&n.target.closest(".filter")){let r=n.target.closest(".filter"),l=r.getAttribute("data-name").split(",");for(var i=0;i<l.length;i++){let d=l[i],c=`[name="${d}"]`;d.match(/\[(.*)\]/)&&(d.replace(/\[(.*)\]/,"[]"),c=`[value="${d.replace(/.*\[(.*)\]/,"$1")}"]`);let u=t.querySelectorAll(c);for(var s=0;s<u.length;s++){let m=u[s];if(m.getAttribute("type")!="radio"&&m.getAttribute("type")!="checkbox")m.value="";else{m.checked=!1;var n=new Event("force");t.hasAttribute("data-nosubmit")||m.closest("form").dispatchEvent(n)}}}r.remove()}},!1)}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Applied Filters"});let yo=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`;let n=this.classList.toString();const i=document.createElement("template");i.innerHTML=`
108
108
  <style>
109
109
  @import "${e}";
110
110
  .applied-filters:not(.applied-filters--compact):not(:empty):before{content:"Applied filters";font-weight:bold;font-size:1.125rem;line-height:1.375rem;color:var(--colour-header);margin-bottom:1rem;display:block}.applied-filters:not(:empty){margin-bottom:1rem}::slotted(*:last-child){margin-bottom:0}.applied-filters .filter{border:1px solid var(--colour-border);padding:1rem 1.5rem 1rem 1.5rem;background:rgba(0,0,0,0);margin-right:.5rem !important;margin-bottom:.5rem !important;line-height:1.5rem;white-space:nowrap}.applied-filters .filter:after{content:"";display:inline-block;height:1.25rem;width:1.25rem;padding:0;margin-left:1.5rem;margin-bottom:-0.25rem;border:none;z-index:var(--index-focus);background:currentColor;mask-image:var(--icon-close);mask-size:100%;mask-repeat:no-repeat;mask-position:50% 50%;-webkit-mask-image:var(--icon-close);-webkit-mask-size:100%;-webkit-mask-repeat:no-repeat;-webkit-mask-position:50% 50%}.applied-filters--compact .filter{background-color:var(--colour-light);border:none;padding:0.625rem;line-height:1rem;border-radius:0.3125rem}.applied-filters--compact .filter:after{margin-left:0.625rem;height:1rem;width:1rem;margin-bottom:-0.1rem}/*# sourceMappingURL=assets/css/components/applied-filters.css.map */
@@ -114,7 +114,7 @@
114
114
  <div class="applied-filters ${n}"></div>
115
115
  <slot></slot>
116
116
  `,this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){go(this,this.shadowRoot.querySelector(".applied-filters"))}};window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",yo);const wo={name:"Header"};function vo(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-applied-filters",null,[a.renderSlot(t.$slots,"default")])}const _o=v(wo,[["render",vo]]);/*!
117
- * iamKey v4.0.1
117
+ * iamKey v4.0.3
118
118
  * Copyright 2022-2023 iamproperty
119
119
  */function Ao(t,o){ko(t,o)}function ko(t,o){var e;o.addEventListener("keyup",n=>{clearTimeout(e),e=setTimeout(function(){K(t,o.value)},500)}),o.addEventListener("change",n=>{clearTimeout(e),K(t,o.value)})}const K=function(t,o){Array.from(t.querySelectorAll(":scope > li")).forEach((e,n)=>{let i=e.textContent.toLowerCase();e.classList.add("d-none"),i.includes(o.toLowerCase())&&e.classList.remove("d-none")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Filtered list",value:o})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"filterlist"});let Lo=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
120
120
  <style>
@@ -156,7 +156,7 @@
156
156
  ${this.hasAttribute("data-dismiss")?'<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>':""}
157
157
  </div>
158
158
  `,this.shadowRoot.appendChild(s.content.cloneNode(!0))}connectedCallback(){const o=this.shadowRoot.querySelector("[data-dismiss-button]"),e=this.hasAttribute("data-status")?this.getAttribute("data-status"):"white";this.hasAttribute("data-type")?this.classList.add(`bg-${e}`):this.classList.add(`colour-${e}`);const n=this;if(!this.querySelector("i"))switch(e){case"danger":this.innerHTML+='<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"warning":this.innerHTML+='<i class="fa-solid fa-triangle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"success":this.innerHTML+='<i class="fa-solid fa-check-circle" aria-hidden="true" slot="icon"></i>';break;default:this.innerHTML+='<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>'}qo(n),o&&o.addEventListener("click",function(i){V(n)},!1)}}const Co={name:"Notification",props:{},created(){this.$nextTick(function(){window.customElements.get("iam-notification")||window.customElements.define("iam-notification",To)})}};function Mo(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-notification",null,[a.renderSlot(t.$slots,"default")])}const Bo=v(Co,[["render",Mo]]);/*!
159
- * iamKey v4.0.1
159
+ * iamKey v4.0.3
160
160
  * Copyright 2022-2023 iamproperty
161
161
  */const Ho=function(t){typeof window.player<"u"&&typeof window.player.pauseVideo=="function"&&window.player.pauseVideo();var o=t.getAttribute("data-id"),e=t.getAttribute("id");if(typeof e>"u"||e==null){var n=String.fromCharCode(65+Math.floor(Math.random()*26));e=n+Date.now(),t.setAttribute("id",e)}function i(){window.player=new YT.Player(e,{height:"100%",width:"100%",videoId:o,playerVars:{modestbranding:1,playsinline:1,rel:0,showinfo:0},events:{onReady:s,onStateChange:l}})}i();function s(d){d.target.playVideo()}var r=!1;function l(d){if(d.data==YT.PlayerState.PLAYING&&!r){var c=document.getElementById(e);c.classList.add("player-ready"),r=!0}}},No=t=>(Array.from(t.querySelectorAll("dialog[open]")).forEach((o,e)=>{o.closest(".dialog__wrapper")||(o.removeAttribute("open"),o.showModal(),o.focus(),X(o))}),t.addEventListener("click",o=>{if(o.target.tagName=="IAM-ACTIONBAR")return!1;if(o&&o.target instanceof HTMLElement&&o.target.closest("[data-modal]")){const i=o.target.closest("[data-modal]"),s=i.hasAttribute("data-modal")?i.getAttribute("data-modal"):i.getAttribute("data-filter"),r=document.querySelector(`dialog#${s}`);X(r),r.showModal(),r.focus();let l=r.offsetWidth;r.setAttribute("style",`max-width: ${l}px;`),Array.from(r.querySelectorAll("[data-duplicate]")).forEach((d,c)=>{const u=d.getAttribute("data-duplicate"),m=document.getElementById(u);if(d.checked!=m.checked){d.checked=m.checked;let b=new Event("change");d.dispatchEvent(b)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:s})}if(o&&o.target instanceof HTMLElement&&o.target.closest("button.dialog__close")){const i=o.target.closest("dialog[open]");o.preventDefault(),i.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((s,r)=>{s.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(o&&o.target instanceof HTMLElement&&o.target.closest('button[formmethod="dialog"]')){const i=o.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((s,r)=>{s.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(o&&o.target instanceof HTMLElement&&o.target.closest("dialog[open]")){let i=o.target.closest("dialog[open]");var e=window.getComputedStyle(i);if(e.display==="contents"&&(i=i.parentNode.closest("dialog[open]")),!i.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")||i.classList.contains("dialog--multi")){const s=i.getBoundingClientRect();(o.clientX<s.left||o.clientX>s.right||o.clientY<s.top||o.clientY>s.bottom)&&(o.target.closest('input[type="radio"]')||i.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")}))}}if(o&&o.target instanceof HTMLElement&&o.target.closest(".dialog__wrapper > button")){o.stopPropagation();let i=o.target.closest(".dialog__wrapper > button"),s=o.target.closest(".dialog__wrapper > button").parentNode,r="openPopover",l=s.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=l&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((m,b)=>{m.classList.remove("active")}),l.hasAttribute("open"))l.close(),r="closePopover",l.removeAttribute("style"),i.classList.remove("active");else{l.show(),i.classList.add("active");var n=i.getBoundingClientRect();let m=n.top,b=n.left;if(i.closest("iam-table")){let p=i.closest("iam-table").parentNode.getBoundingClientRect();m-=p.top,b-=p.left}l.classList.contains("dialog--fix")&&l.setAttribute("style",`position:fixed;top: ${m}px; left: ${b}px; margin: 3rem 0 0 0;`)}let d=l.getBoundingClientRect(),c=d.bottom-window.scrollY,u=window.innerHeight-window.scrollY;if(c>u){let m=l.hasAttribute("style")?l.getAttribute("style")+" ":"";l.setAttribute("style",m+"transform: translate(0, calc(-100% - 4rem))"),d=l.getBoundingClientRect(),d.top-window.scrollY<100&&l.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:r,id:i.textContent})}o&&o.target instanceof HTMLElement&&!o.target.closest("dialog[open]")&&!o.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((i,s)=>{i.classList.remove("active")}))}),null),X=t=>{t.querySelector(":scope > .mh-lg > form:last-child > button:last-child, :scope > .mh-lg > button:last-child")&&!t.classList.contains("dialog--multi")&&t.addEventListener("cancel",e=>{e.preventDefault()});let o=t.querySelector(".youtube-embed a");if(o&&Ho(o),t.classList.contains("dialog--multi")&&!t.querySelector(":scope > .steps")&&Vo(t),!t.querySelector(":scope > .mh-lg")&&!t.classList.contains("dialog--multi")){t.innerHTML=`<div class="mh-lg">${t.innerHTML}</div>`;let e=t.querySelector(".mh-lg"),n=t.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(n){let i=n.previousSibling;e.before(n),i&&n.before(i)}}t.querySelector(":scope > button:first-child")||t.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},Vo=t=>{let o="",e=Array.from(t.querySelectorAll("fieldset[data-title]")),n=t.querySelector("form");e.forEach((r,l)=>{o+=`<button data-title="${r.getAttribute("data-title")}" type="button" class="${l==0?"active":""}" tabindex="-1">${r.getAttribute("data-title")}</button>`;const d=document.createElement("div");if(d.classList.add("btn--wrapper"),r.appendChild(d),l!=0&&(d.innerHTML+=`<button data-title="${e[l-1].getAttribute("data-title")}" class="btn btn-secondary mb-0" data-previous type="button">Previous</button>`),l!=e.length-1&&(d.innerHTML+=`<button data-title="${e[l+1].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="button">Next</button>`),l==e.length-1)if(n&&n.querySelector(':scope > button[type="submit"]')){let c=n.querySelector(':scope > button[type="submit"]');c.classList.add("mb-0"),d.insertAdjacentElement("beforeend",c)}else d.innerHTML+=`<button data-title="${e[l].getAttribute("data-title")}" class="btn btn-primary mb-0" data-next type="submit">Submit</button>`}),t.insertAdjacentHTML("afterbegin",`<div class="steps bg-primary">${o}</div>`);let i=Array.from(t.querySelectorAll("fieldset.was-validated"));for(let r=0;r<i.length;r++){let l=i[r],d=l.getAttribute("data-title");if(l.querySelector(".is-invalid")){Array.from(t.querySelectorAll(`[data-title="${d}"]`)).forEach((c,u)=>{c.classList.add("active")});break}else Array.from(t.querySelectorAll(`[data-title="${d}"]`)).forEach((c,u)=>{c.classList.add("valid")})}t.addEventListener("invalid",function(){return function(r){r.preventDefault()}}(),!0);function s(r){const l=t.querySelector("fieldset.active")?t.querySelector("fieldset.active"):t.querySelector("fieldset[data-title]"),d=l.getAttribute("data-title");let c=!0;if(l.classList.add("was-validated"),Array.from(l.querySelectorAll("input")).forEach((b,p)=>{b.checkValidity()||(c=!1)}),c?Array.from(t.querySelectorAll(`[data-title="${d}"]`)).forEach((b,p)=>{b.classList.add("valid")}):Array.from(t.querySelectorAll(`[data-title="${d}"]`)).forEach((b,p)=>{b.classList.remove("valid")}),c||!r.hasAttribute("data-next")){const b=t.querySelector(`fieldset[data-title="${r.getAttribute("data-title")}"]`),p=t.querySelector(`.steps button[data-title="${r.getAttribute("data-title")}"]`);Array.from(t.querySelectorAll("button")).forEach((h,y)=>{h.classList.remove("active")}),Array.from(t.querySelectorAll("fieldset")).forEach((h,y)=>{h.classList.remove("active")}),p.classList.add("active"),b.classList.add("active")}let u=Array.from(t.querySelectorAll("fieldset")).length,m=Array.from(t.querySelectorAll("fieldset.valid")).length;t.style.setProperty("--progress",`${m/(u-1)*100}%`)}t.addEventListener("keydown",r=>{if(r&&r.target instanceof HTMLElement&&r.target.closest("button")){const l=r.target.closest("button");r.keyCode==13&&l.getAttribute("type")!="submit"&&(r.preventDefault(),s(l))}r&&r.target instanceof HTMLElement&&r.target.closest("input")&&(r.target.closest("input").classList.remove("is-invalid"),r.keyCode==13&&r.preventDefault())}),t.addEventListener("click",r=>{if(r&&r.target instanceof HTMLElement&&r.target.closest('button[type="submit"]'))r.target.closest("form").classList.add("was-validated");else if(r&&r.target instanceof HTMLElement&&r.target.closest("button[data-title]")){const l=r.target.closest("button[data-title]");s(l)}return null})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function J(t,o){t&&o=="all"?(t.querySelector("input").indeterminate=!1,t.querySelector("input").checked=!0,t.querySelector("label").textContent="Select all"):t&&o==0?(t.querySelector("input").indeterminate=!1,t.querySelector("input").checked=!1,t.querySelector("label").textContent="Select all"):t&&o?(t.querySelector("input").indeterminate=!0,t.querySelector("input").checked=!1,t.querySelector("label").textContent=`${o} item${o>1?"s":""} selected`):t&&(t.querySelector("input").checked=!1,t.querySelector("input").indeterminate=!1,t.querySelector("label").textContent="Select all")}class Do extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
162
162
  <style>
@@ -207,7 +207,7 @@
207
207
  </div>
208
208
  </div>
209
209
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){let o=this;const e=this.shadowRoot.querySelector(".actionbar__wrapper");if(this.hasAttribute("data-selectall")){e.insertAdjacentHTML("afterbegin",'<div class="selectall pb-0"><input type="checkbox" name="selectall" id="selectall"><label for="selectall" class="m-0">Select all</label></div>');let s=this.shadowRoot.querySelector(".selectall");this.hasAttribute("data-selected")&&J(s,this.getAttribute("data-selected")),s.addEventListener("change",l=>{l&&l.target instanceof HTMLElement&&l.target.closest("input")&&(l.target.closest("input").checked?this.setAttribute("data-selected","all"):this.setAttribute("data-selected",0))});let r=this.querySelector("button[data-cancel]");r&&r.addEventListener("click",l=>{this.setAttribute("data-selected",0)})}if(this.hasAttribute("data-select-watch")){const s=document.getElementById(this.getAttribute("data-select-watch"));s.setAttribute("data-select-container","true"),Array.from(s.querySelectorAll('input[type="checkbox"]')).forEach((r,l)=>{r.parentElement.setAttribute("slot","checkbox")}),s.addEventListener("change",r=>{if(r&&r.target instanceof HTMLElement&&r.target.closest('[type="checkbox"]')){let l=s.querySelectorAll('input[type="checkbox"]').length,d=s.querySelectorAll('input[type="checkbox"]:checked').length;o.setAttribute("data-selected",l==d?"all":d),r.target.closest('[type="checkbox"]'),d?Array.from(s.querySelectorAll('input[type="checkbox"]')).forEach((c,u)=>{c.closest("iam-card")&&c.closest("iam-card").setAttribute("data-selected","true")}):Array.from(s.querySelectorAll('input[type="checkbox"]')).forEach((c,u)=>{c.closest("iam-card")&&c.closest("iam-card").removeAttribute("data-selected")})}})}if(this.hasAttribute("data-switchviews")){let s="";this.getAttribute("data-switchviews").split(",").forEach((r,l)=>{let d="fa-grid-2";r=="list"?d="fa-grip-lines":r=="small"&&(d="fa-bars"),s+=`<button class="btn btn-action btn-compact mb-0 fa-regular ${d}">${r}</button>`}),e.insertAdjacentHTML("afterbegin",`<div class="views m-0">${s}</div>`),this.shadowRoot.querySelector(".views").addEventListener("click",r=>{if(r&&r.target instanceof HTMLElement&&r.target.closest(".btn-action")){let l=r.target.closest(".btn-action");this.setAttribute("data-view",l.textContent);const d=new CustomEvent("switch-view",{detail:{view:l.textContent}});this.dispatchEvent(d)}})}const n=this.shadowRoot.querySelector(".actionbar--search");this.hasAttribute("data-search")&&this.getAttribute("data-search")=="show"&&n.classList.add("show"),this.shadowRoot.addEventListener("click",s=>{s&&s.target instanceof HTMLElement&&s.target.closest("button[data-search]")&&n.classList.toggle("show")}),n.addEventListener("keyup",s=>{const r=new CustomEvent("search-keyup",{detail:{search:n.querySelector("input").value}});this.dispatchEvent(r)}),n.addEventListener("change",s=>{const r=new CustomEvent("search-change",{detail:{search:n.querySelector("input").value}});this.dispatchEvent(r)}),n.addEventListener("click",s=>{if(s&&s.target instanceof HTMLElement&&s.target.closest("button.suffix")){const r=new CustomEvent("search-submit",{detail:{search:n.querySelector("input").value}});this.dispatchEvent(r)}}),Array.from(this.shadowRoot.querySelectorAll(".body")).forEach((s,r)=>{No(s)});function i(){const s=e.scrollWidth,r=document.documentElement.scrollWidth;let l=750,d=16,c=o.hasAttribute("data-switchviews")?144:210,u=1;r>=992&&r<=1280?u=r/1280:r>=576&&r<=1280?u=r/768:r<576&&(u=r/375),s>=992&&s<=1280?l=l*u:s>=576&&s<=1280?l=450*u:s<576&&(l=c*u),d=d*u,s<576?Array.from(o.querySelectorAll(":scope > .btn:not(.js-updated)")).forEach((m,b)=>{m.className=m.className.replace(" btn-compact"," _btn-compact"),m.classList.add("btn-compact"),m.classList.add("js-updated")}):Array.from(o.querySelectorAll(":scope > .btn.js-updated")).forEach((m,b)=>{m.classList.remove("btn-compact"),m.classList.remove("js-updated"),m.className=m.className.replace(" _btn-compact"," btn-compact")}),Array.from(o.querySelectorAll("[slot]")).forEach((m,b)=>{m.getAttribute("slot")=="overflow"&&m.removeAttribute("slot"),m.getAttribute("slot")=="selected-overflow"&&m.setAttribute("slot","selected")}),Array.from(o.querySelectorAll(".show")).forEach((m,b)=>{m.classList.remove("show")}),Array.from(o.shadowRoot.querySelectorAll(".safe-area")).forEach((m,b)=>{let p="overflow";m.querySelector("slot").hasAttribute("name")&&m.querySelector("slot").getAttribute("name")=="selected"&&(p="selected-overflow");let h=m.querySelector("slot").assignedElements(),y=44*u;o.hasAttribute("data-search")&&(y+=44*u);for(let f=0;f<h.length;f++)!h[f].classList.contains("btn-action")&&!h[f].classList.contains("dialog__wrapper")&&(y+=h[f].offsetWidth,y+=d);for(let f=0;f<h.length;f++)if(h[f].classList.contains("dialog__wrapper")&&(h[f].classList.add("show"),y+=h[f].offsetWidth,y+=d/2,y-d/2>l)){h[f].classList.remove("show");break}for(let f=0;f<h.length;f++)if(h[f].classList.contains("btn-action")&&(h[f].classList.add("show"),y+=h[f].offsetWidth,y+=d/2,y-d/2>l)){h[f].classList.remove("show");break}let A=m.querySelector(".dialog-overflow");A&&A.classList.add("d-none");for(let f=0;f<h.length;f++)(h[f].classList.contains("btn-action")||h[f].classList.contains("dialog__wrapper"))&&(h[f].classList.contains("show")||(h[f].setAttribute("slot",p),A&&A.classList.remove("d-none")))})}i(),new ResizeObserver(i).observe(e)}static get observedAttributes(){return["data-selected"]}attributeChangedCallback(o,e,n){switch(o){case"data-selected":{let i=this.shadowRoot.querySelector(".selectall");i&&J(i,n);const s=new CustomEvent("selected",{detail:{selected:n}});if(this.dispatchEvent(s),n=="all"&&this.hasAttribute("data-select-watch")){const r=document.getElementById(this.getAttribute("data-select-watch"));Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l,d)=>{l.checked=!0,l.closest("iam-card")&&l.closest("iam-card").setAttribute("data-selected","true")})}if(n=="0"&&this.hasAttribute("data-select-watch")){const r=document.getElementById(this.getAttribute("data-select-watch"));Array.from(r.querySelectorAll('input[type="checkbox"]')).forEach((l,d)=>{l.checked=!1,l.closest("iam-card")&&l.closest("iam-card").removeAttribute("data-selected","true")})}break}}}}window.customElements.get("iam-actionbar")||window.customElements.define("iam-actionbar",Do);const Ro={name:"Actionbar",props:{},mounted(){}};function zo(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-actionbar",null,[a.renderSlot(t.$slots,"default")])}const Po=v(Ro,[["render",zo]]);/*!
210
- * iamKey v4.0.1
210
+ * iamKey v4.0.3
211
211
  * Copyright 2022-2023 iamproperty
212
212
  */const Fo=function(t,o){if(!t.getAttribute("data-pages"))return!1;t.getAttribute("data-page")||t.setAttribute("data-page",1);let e=t.getAttribute("data-page"),n=t.getAttribute("data-pages"),i=t.getAttribute("data-total"),s=t.getAttribute("data-show"),r=t.getAttribute("data-increment");if(n<=1)return o.innerHTML="",!1;let l="";for(let d=1;d<=n;d++)d==e?l+=`<li class="page-item active" aria-current="page"><span class="page-link">${d}</span></li>`:l+=`<li class="page-item"><a href="?page=${d}" class="page-link" data-page="${d}">${d}</a></li>`;return o.innerHTML=`<ul class="pagination mb-0 d-none d-sm-flex">
213
213
  ${e==1?'<li class="page-item disabled"><span class="page-link">Previous</span></li>':`<li class="page-item"><a href="?page=${parseInt(e)-1}" class="page-link" data-page="${parseInt(e)-1}">Previous</a></li>`}
@@ -225,7 +225,7 @@
225
225
  <div class="pagination__wrapper d-none">
226
226
  </div>
227
227
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){const o=new URLSearchParams(window.location.search);this.hasAttribute("data-total")||this.setAttribute("data-total",this.querySelectorAll("table tbody tr").length),this.hasAttribute("data-page")||this.setAttribute("data-page",o.has("page")?o.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",o.has("show")?o.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",15),this.setAttribute("data-pages",Math.ceil(this.getAttribute("data-total")/this.getAttribute("data-show"))),Fo(this,this.shadowRoot.querySelector(".pagination__wrapper")),this.shadowRoot.querySelector(".pagination__wrapper").classList.remove("d-none")}};const Io={name:"Pagination",props:{},computed:{},created(){this.$nextTick(function(){window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",jo)})},updated(){}};function Oo(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-pagination")}const Wo=v(Io,[["render",Oo]]);/*!
228
- * iamKey v4.0.1
228
+ * iamKey v4.0.3
229
229
  * Copyright 2022-2023 iamproperty
230
230
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"collapsible side menu"});class Uo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const o=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"):`${o}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
231
231
  <style class="styles">
@@ -250,7 +250,7 @@
250
250
 
251
251
  </div>
252
252
  `,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){const o=this.shadowRoot.querySelector(".side-menu"),e=this.shadowRoot.querySelector(".side-menu-content"),n=this.shadowRoot.querySelector(".main-content"),i=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>`),n.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")),i.addEventListener("click",s=>{o.classList.contains("open")?(o.classList.remove("open"),setTimeout(function(){e.classList.add("closed")},1e3),o.classList.add("pe-none"),setTimeout(function(){o.classList.remove("pe-none")},1e3)):(e.classList.remove("closed"),setTimeout(function(){o.classList.add("open")},100))}),o.addEventListener("mouseenter",s=>{window.innerWidth>992&&(o.classList.contains("open")||e.classList.remove("closed"),o.classList.add("hover"))}),o.addEventListener("mousemove",s=>{window.innerWidth>992&&(o.classList.contains("open")||e.classList.remove("closed"))}),o.addEventListener("mouseleave",s=>{window.innerWidth>992&&(o.classList.remove("hover"),o.classList.contains("open")||setTimeout(function(){e.classList.add("closed")},1e3))})}}window.customElements.get("iam-collapsible-side")||window.customElements.define("iam-collapsible-side",Uo);const Yo={name:"CollapsibleSideMenu",props:{},mounted(){}};function Go(t,o,e,n,i,s){return a.openBlock(),a.createElementBlock("iam-collapsible-side",null,[a.renderSlot(t.$slots,"default")])}const Ko=v(Yo,[["render",Go]]);/*!
253
- * iamKey v4.0.1
253
+ * iamKey v4.0.3
254
254
  * Copyright 2022-2023 iamproperty
255
255
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"Card"});class Xo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.querySelector('[class*="fa-"]')&&this.classList.add("card--has-icon");let o=this.classList.toString();const e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
256
256
  <style>
@@ -271,7 +271,7 @@
271
271
  ${this.hasAttribute("data-cta")?`<div class="card__footer"><span class="link">${this.getAttribute("data-cta")}</span></div>`:""}
272
272
  </div>
273
273
  `,this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){this.classList.add("loaded");const o=this.parentNode.closest("a, button, label"),e=this.shadowRoot.querySelector(".card");o.setAttribute("tabindex","-1"),o.matches("label[for]")&&(document.getElementById(o.getAttribute("for")).checked?e.classList.add("checked"):e.classList.remove("checked")),this.addEventListener("click",n=>{let i=new Event("click");e.dispatchEvent(i)}),e.addEventListener("click",n=>{if(o.matches("label[for]")){n.stopPropagation(),n.preventDefault();const i=document.getElementById(o.getAttribute("for")),s=i.getAttribute("name"),r=i.getAttribute("id");Array.from(document.querySelectorAll(`[name="${s}"][type="radio"]:not([id="${r}"])`)).forEach((l,d)=>{document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),o.click(),i.checked?e.classList.add("checked"):e.classList.remove("checked")}}),this.addEventListener("inactive",n=>{e.classList.remove("checked")}),e.addEventListener("keydown",n=>{switch(n.keyCode){case 32:case 13:if(o.matches("label[for]")){n.stopPropagation(),n.preventDefault();const i=document.getElementById(o.getAttribute("for")),s=i.getAttribute("name"),r=i.getAttribute("id");Array.from(document.querySelectorAll(`[name="${s}"]:not([id="${r}"])`)).forEach((l,d)=>{document.querySelector(`[for="${l.getAttribute("id")}"] iam-card`).dispatchEvent(new Event("inactive"))}),o.click(),i.checked?e.classList.add("checked"):e.classList.remove("checked")}else o.click();break}})}static get observedAttributes(){return["data-total","class"]}attributeChangedCallback(o,e,n){switch(o){case"data-total":{this.shadowRoot.querySelector(".card__total")&&(this.shadowRoot.querySelector(".card__total").innerHTML=n);break}case"class":{let i=this.classList.toString();this.querySelector('[class*="fa-"]')&&(i+=" card--has-icon"),this.shadowRoot.querySelector(".card").setAttribute("class",`card ${i}`);break}}}}const Jo=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"}));/*!
274
- * iamKey v4.0.1
274
+ * iamKey v4.0.3
275
275
  * Copyright 2022-2023 iamproperty
276
276
  */window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});class Qo extends HTMLElement{constructor(){super();const o=this.attachShadow({mode:"open"}),e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
277
277
  <style class="styles">
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "iamproperty"
6
6
  },
7
7
  "private": false,
8
- "version": "4.0.1",
8
+ "version": "4.0.3",
9
9
  "scripts": {
10
10
  "bootstrap": "copyfiles -u 2 node_modules/bootstrap/**/* assets/bootstrap",
11
11
  "dev": "npm run copy && node local_modules/delete-assets.js && vite --host",