"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[1088],{1130:(t,i,e)=>{e.d(i,{Z:()=>a});var n=e(7537),o=e.n(n),s=e(3645),r=e.n(s)()(o());r.push([t.id,".footer-address a.address{color:var(--footer-address-colour);white-space:pre-line;margin-top:0px;margin-bottom:0px;display:block}.footer-address a:hover.address{color:var(--footer-address-hover-colour)}.footer-address .title{margin-top:0px;margin-bottom:0px}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_footer/address/style.scss"],names:[],mappings:"AAEI,0BACE,kCAAA,CACA,oBAAA,CACA,cAAA,CACA,iBAAA,CACA,aAAA,CAEF,gCACE,wCAAA,CAGJ,uBACE,cAAA,CACA,iBAAA",sourcesContent:[".footer-address {\r\n a {\r\n &.address {\r\n color: var(--footer-address-colour);\r\n white-space: pre-line;\r\n margin-top: 0px;\r\n margin-bottom: 0px;\r\n display: block;\r\n }\r\n &:hover.address {\r\n color: var(--footer-address-hover-colour);\r\n }\r\n }\r\n .title {\r\n margin-top: 0px;\r\n margin-bottom: 0px;\r\n }\r\n}\r\n"],sourceRoot:""}]);const a=r},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}}},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}}},1088:(t,i,e)=>{e.r(i),e.d(i,{default:()=>C});var n=e(6252),o=e(3577);const s=["href"];var r=e(4437),a=e(8159),h=e(8761),l=e(5129);const d=(0,n.aZ)({mixins:[a.Z],data:()=>({componentModel:{titleStyle:{}},titleFontStyle:{},addressFontStyle:{},addressText:"",addressUrl:"",titleText:""}),mounted(){const t=new h.n(this.componentModel.titleStyle);this.titleFontStyle=t.getStyle(),this.titleFontStyle.marginBottom=(0,r.G)().size(this.componentModel.titleBottomMargin,""),this.titleFontStyle.textAlign=(0,r.G)().textAlign(this.componentModel.justify,"right");const i=new l.v(this.componentModel.addressStyle,{lineHeight:"1.2"});this.addressFontStyle=i.getStyle(),this.addressFontStyle.textAlign=(0,r.G)().textAlign(this.componentModel.justify,"right"),this.addressFontStyle["--footer-address-colour"]=(0,r.G)().colour(this.componentModel.addressStyle.colour,"var(--a-colour)"),this.addressFontStyle["--footer-address-hover-colour"]=(0,r.G)().colour(this.componentModel.addressStyle.hoverColour,"var(--a-hover-colour)"),this.titleText=(0,r.G)().string(this.componentModel.titleText,""),this.addressText=(0,r.G)().string(this.componentModel.addressText,""),this.addressUrl=(0,r.G)().string(this.componentModel.addressURL,"")}});var m=e(3379),c=e.n(m),g=e(7795),y=e.n(g),p=e(569),u=e.n(p),A=e(3565),S=e.n(A),v=e(9216),w=e.n(v),f=e(4589),x=e.n(f),b=e(1130),z={};z.styleTagTransform=x(),z.setAttributes=S(),z.insert=u().bind(null,"head"),z.domAPI=y(),z.insertStyleElement=w();c()(b.Z,z);b.Z&&b.Z.locals&&b.Z.locals;const C=(0,e(3744).Z)(d,[["render",function(t,i,e,r,a,h){return(0,n.wg)(),(0,n.iD)("div",{class:"footer-address component-margins",style:(0,o.j5)(t.entryAnimationStyle)},[""!=t.titleText?((0,n.wg)(),(0,n.iD)("h3",{key:0,style:(0,o.j5)(t.titleFontStyle),class:"title"},(0,o.zw)(t.titleText)+"   ",5)):(0,n.kq)("v-if",!0),(0,n._)("a",{href:t.addressUrl,target:"_blank",style:(0,o.j5)(t.addressFontStyle),class:"address h3-default"},(0,o.zw)(t.addressText),13,s)],4)}]])},8159:(t,i,e)=>{e.d(i,{Z:()=>h});var n=e(655),o=e(6252),s=e(4437);class r{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 a=e(4572);const h=(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,a.y)().addLoadedModule(),this.loadState=(0,a.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 r(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/1088.7ff019902617ddd59cf1.map