"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[9071],{5129:(t,i,e)=>{e.d(i,{v:()=>o});var n=e(4437);class o{constructor(t,i){this.size="",this.colour="",this.hoverColour="",this.weight="",this.type="",this.textShadow="",this.lineHeight="",this.letterSpacing="",t||(t={}),this.setupDefaults(i),this.size=(0,n.G)().size(t.size,this.size),this.colour=(0,n.G)().colour(t.colour,this.colour),this.hoverColour=(0,n.G)().colour(t.hoverColour,this.hoverColour),this.weight=(0,n.G)().fontWeight(t.weight,this.weight),this.type=(0,n.G)().string(t.type,this.type),this.textShadow=(0,n.G)().string(t.textShadow,this.textShadow),this.lineHeight=(0,n.G)().lineHeight(String(t.lineHeight),this.lineHeight),this.letterSpacing=(0,n.G)().size(t.letterSpacing,this.letterSpacing)}setupDefaults(t){void 0!==t&&Object.entries(t).forEach((([t,i])=>{void 0!==this[t]&&(this[t]=i)}))}getStyle(){const t={};return""!==this.size&&(t["font-size"]=this.size),""!==this.type&&(t["font-family"]=this.type),""!==this.weight&&(t["font-weight"]=this.weight),""!==this.colour&&(t.color=this.colour),""!==this.hoverColour?t["--hover-colour"]=this.hoverColour:t["--hover-colour"]="var(--a-hover-colour)",""!==this.textShadow&&(t["text-shadow"]=this.textShadow),""!==this.lineHeight&&(t["line-height"]=this.lineHeight),""!==this.letterSpacing&&(t["letter-spacing"]=this.letterSpacing),t}getStyleString(){let t="";return""!==this.size&&(t+="font-size: "+this.size+";"),""!==this.type&&(t+="font-family: "+this.type+";"),""!==this.weight&&(t+="font-weight: "+this.weight+";"),""!==this.colour&&(t+="color: "+this.colour+";"),""!==this.hoverColour?t+="--hover-colour: "+this.hoverColour+";":t+="--hover-colour: var(--a-hover-colour);",""!==this.textShadow&&(t+="text-shadow: "+this.textShadow+";"),""!==this.lineHeight&&(t+="line-height: "+this.lineHeight+";"),""!==this.letterSpacing&&(t+="letter-spacing: "+this.letterSpacing+";"),t}}},1673:(t,i,e)=>{e.d(i,{F:()=>o});var n=e(4437);class o{constructor(t){this.phoneNumber="",this.officeName="",this.displayedText="",this.phoneNumber=(0,n.G)().string(t.phoneNumber,""),this.officeName=(0,n.G)().string(t.officeName,""),this.displayedText=(0,n.G)().string(t.displayedText,""),0==this.displayedText.length&&(this.displayedText=this.phoneNumber),0==this.phoneNumber.length&&(this.phoneNumber=this.displayedText),this.phoneNumber=this.phoneNumber.replace(/\D/g,"")}}},7992:(t,i,e)=>{e.d(i,{v:()=>o});var n=e(4437);class o{constructor(t,i){this.size="",this.colour="",this.hoverColour="",this.weight="",this.type="",this.textShadow="",this.lineHeight="",this.letterSpacing="",this.backgroundColour="",this.backgroundHoverColour="",t||(t={}),this.setupDefaults(i),this.size=(0,n.G)().size(t.size,this.size),this.colour=(0,n.G)().colour(t.colour,this.colour),this.hoverColour=(0,n.G)().colour(t.hoverColour,this.hoverColour),this.weight=(0,n.G)().fontWeight(t.weight,this.weight),this.type=(0,n.G)().string(t.type,this.type),this.textShadow=(0,n.G)().string(t.textShadow,this.textShadow),this.lineHeight=(0,n.G)().lineHeight(t.lineHeight,this.lineHeight),this.backgroundColour=(0,n.G)().colour(t.backgroundColour,this.backgroundColour),this.backgroundHoverColour=(0,n.G)().colour(t.backgroundHoverColour,this.backgroundHoverColour),this.letterSpacing=(0,n.G)().size(t.letterSpacing,this.letterSpacing)}setupDefaults(t){void 0!==t&&Object.entries(t).forEach((([t,i])=>{void 0!==this[t]&&(this[t]=i)}))}getStyle(t=!1){let i="";t&&(i="!important");const e={};return""!==this.size&&(e["font-size"]=this.size+i),""!==this.type&&(e["font-family"]=this.type+i),""!==this.weight&&(e["font-weight"]=this.weight+i),""!==this.colour&&(e.color=this.colour+i),""!==this.hoverColour&&(e["--hover-colour"]=this.hoverColour+i),""!==this.textShadow&&(e["text-shadow"]=this.textShadow+i),""!==this.lineHeight&&(e["line-height"]=this.lineHeight+i),""!==this.backgroundColour&&(e["background-color"]=this.backgroundColour+i),""!==this.backgroundHoverColour&&(e["--background-hover-colour"]=this.backgroundHoverColour+i),""!==this.letterSpacing&&(e["letter-spacing"]=this.letterSpacing+i),e}getStyleString(){let t="";return""!==this.size&&(t+="font-size: "+this.size+";"),""!==this.type&&(t+="font-family: "+this.type+";"),""!==this.weight&&(t+="font-weight: "+this.weight+";"),""!==this.colour&&(t+="color: "+this.colour+";"),""!==this.hoverColour&&(t+="--hover-colour: "+this.hoverColour+";"),""!==this.textShadow&&(t+="text-shadow: "+this.textShadow+";"),""!==this.lineHeight&&(t+="line-height: "+this.lineHeight+";"),""!==this.backgroundColour&&(t+="background-color: "+this.backgroundColour+";"),""!==this.colour&&(t+="--background-hover-colour: "+this.backgroundHoverColour+";"),""!==this.letterSpacing&&(t+="letter-spacing: "+this.letterSpacing+";"),t}}},8761:(t,i,e)=>{e.d(i,{n:()=>o});var n=e(4437);class o{constructor(t,i){this.size="",this.colour="",this.weight="",this.type="",this.textShadow="",this.lineHeight="",this.letterSpacing="",t||(t={}),this.setupDefaults(i),this.size=(0,n.G)().size(t.size,this.size),this.colour=(0,n.G)().colour(t.colour,this.colour),this.weight=(0,n.G)().fontWeight(t.weight,this.weight),this.type=(0,n.G)().string(t.type,this.type),this.textShadow=(0,n.G)().string(t.textShadow,this.textShadow),this.lineHeight=(0,n.G)().lineHeight(String(t.lineHeight),this.lineHeight),this.letterSpacing=(0,n.G)().size(t.letterSpacing,this.letterSpacing)}setupDefaults(t){void 0!==t&&Object.entries(t).forEach((([t,i])=>{void 0!==this[t]&&(this[t]=i)}))}getStyle(t=!1){let i="";t&&(i="!important");const e={};return""!==this.size&&(e["font-size"]=this.size+i),""!==this.type&&(e["font-family"]=this.type+i),""!==this.weight&&(e["font-weight"]=this.weight+i),""!==this.colour&&(e.color=this.colour+i),""!==this.textShadow&&(e["text-shadow"]=this.textShadow+i),""!==this.lineHeight&&(e["line-height"]=this.lineHeight+i),""!==this.letterSpacing&&(e["letter-spacing"]=this.letterSpacing+i),e}getStyleString(){let t="";return""!==this.size&&(t+="font-size: "+this.size+";"),""!==this.type&&(t+="font-family: "+this.type+";"),""!==this.weight&&(t+="font-weight: "+this.weight+";"),""!==this.colour&&(t+="color: "+this.colour+";"),""!==this.textShadow&&(t+="text-shadow: "+this.textShadow+";"),""!==this.lineHeight&&(t+="line-height: "+this.lineHeight+";"),""!==this.letterSpacing&&(t+="letter-spacing: "+this.letterSpacing+";"),t}}},8159:(t,i,e)=>{e.d(i,{Z:()=>a});var n=e(655),o=e(6252),s=e(4437);class h{constructor(t){this.animationEnable=(0,s.G)().boolean(t.animationEnable,!1),this.animationAlwaysRunOnLoad=(0,s.G)().boolean(t.animationAlwaysRunOnLoad,!1),this.animationDelay=(0,s.G)().number(t.animationDelay,.2),this.animationDuration=(0,s.G)().number(t.animationDuration,.3),this.animationDirection=(0,s.G)().string(t.animationDirection,"bottom")}}var r=e(4572);const a=(0,o.aZ)({data:()=>({backgroundUrl:"",componentModel:{},componentWidth:0,isDesktopSize:!0,themeId:"",elementContainer:{},entryAnimations:{},entryAnimationStyle:{},loadState:{},observer:{},observerFirstRun:!0}),watch:{loadState(t,i){1==t&&this.entryAnimations.animationEnable&&this.setupEntryAnimationObserver(this.runEntryAnimations)}},beforeUnmount:function(){window.removeEventListener("resize",this.handleResize)},mounted(){const t=this.$el.parentElement.getAttribute("umbracomodel");this.componentModel="null"!==t&&null!=t?JSON.parse(t):{},this.componentModel.entryAnimations||(this.componentModel.entryAnimations={}),this.initiateEntryAnimations(),this.elementContainer=this.$el.closest(".component-margins");const i=window.innerWidth;this.initiateMargins(i),this.initiatePadding(i),this.initiateHeight(),this.initiateResizeListener(),(0,r.y)().addLoadedModule(),this.loadState=(0,r.y)().getLoadState()},onUnmounted(){if(this.entryAnimations.animationEnable)try{this.observer.unobserve(this.elementContainer)}catch(t){}},methods:{delay(t){return(0,n.mG)(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,t)))}))},handleResize(t){this.componentWidth=this.$el.clientWidth,this.resizeWindow()},resizeWindow(){const t=window.innerWidth;t>991!==this.isDesktopSize&&(this.initiateMargins(t),this.initiatePadding(t),this.calculateSize(t))},initiateResizeListener(){window.addEventListener("resize",this.handleResize),this.$el&&(this.componentWidth=this.$el.clientWidth);const t=window.innerWidth;this.calculateSize(t)},calculateSize(t){this.isDesktopSize=t>991},initiateMargins(t){t>991?this.setMargins(this.componentModel.moduleMargin):this.setMargins(this.componentModel.moduleMarginMobile)},initiatePadding(t){t>991?this.setPadding(this.componentModel.modulePadding):this.setPadding(this.componentModel.modulePaddingMobile)},setMargins(t){null!==this.elementContainer&&t&&(this.elementContainer.style.marginTop=t.top?(0,s.G)().size(t.top,"0px"):"0px",this.elementContainer.style.marginBottom=t.bottom?(0,s.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.marginLeft=t.left?(0,s.G)().size(t.left,"0px"):"0px",this.elementContainer.style.marginRight=t.right?(0,s.G)().size(t.right,"0px"):"0px")},setPadding(t){null!==this.elementContainer&&t&&(this.elementContainer.style.paddingTop=t.top?(0,s.G)().size(t.top,"0px"):"0px",this.elementContainer.style.paddingBottom=t.bottom?(0,s.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.paddingLeft=t.left?(0,s.G)().size(t.left,"0px"):"0px",this.elementContainer.style.paddingRight=t.right?(0,s.G)().size(t.right,"0px"):"0px")},initiateHeight(){if(null!==this.elementContainer){let t;t=this.componentModel.moduleHeight?(0,s.G)().size(this.componentModel.moduleHeight,"auto"):"auto",this.elementContainer.style.height=t,(t.includes("vh")||t.includes("vmax"))&&(this.elementContainer.style.maxHeight="2300px"),this.elementContainer.style.overflow="hidden"}},initiateEntryAnimations(){if(this.entryAnimations=new h(this.componentModel.entryAnimations),this.entryAnimations.animationEnable)switch(this.entryAnimationStyle.opacity="0!important",this.entryAnimations.animationDirection){case"bottom":this.entryAnimationStyle.bottom="-20vh";break;case"top":this.entryAnimationStyle.top="-20vh";break;case"left":this.entryAnimationStyle.left="-20vw";break;case"right":this.entryAnimationStyle.right="-20vw"}},setupEntryAnimationObserver(){return(0,n.mG)(this,void 0,void 0,(function*(){this.entryAnimations.animationAlwaysRunOnLoad&&(this.observerFirstRun=!1),this.observer=new IntersectionObserver((t=>{t[0].isIntersecting&&this.runEntryAnimations(),this.observerFirstRun=!1}),{threshold:[.3]}),this.observer.observe(this.elementContainer)}))},runEntryAnimations(){return(0,n.mG)(this,void 0,void 0,(function*(){switch(this.observerFirstRun?this.entryAnimationStyle.transition="none!important":this.entryAnimationStyle.transition="opacity "+this.entryAnimations.animationDuration+"s ease-in-out "+this.entryAnimations.animationDelay+"s,bottom "+this.entryAnimations.animationDuration+"s ease-in-out "+this.entryAnimations.animationDelay+"s,top "+this.entryAnimations.animationDuration+"s ease-in-out "+this.entryAnimations.animationDelay+"s,left "+this.entryAnimations.animationDuration+"s ease-in-out "+this.entryAnimations.animationDelay+"s,right "+this.entryAnimations.animationDuration+"s ease-in-out "+this.entryAnimations.animationDelay+"s",this.entryAnimationStyle.opacity="1",this.entryAnimations.animationDirection){case"bottom":this.entryAnimationStyle.bottom="0px";break;case"top":this.entryAnimationStyle.top="-0px";break;case"left":this.entryAnimationStyle.left="-0px";break;case"right":this.entryAnimationStyle.right="-0px"}this.observer.unobserve(this.elementContainer);try{let t=this.entryAnimations.animationDuration+this.entryAnimations.animationDelay;yield this.delay(1e3*t),this.entryAnimationStyle={}}catch(t){this.entryAnimationStyle={},console.log("Core mixin addition failed.")}}))}}})}}]); //# sourceMappingURL=source-maps-1.2/9071.f42310fd9da090235988.map