"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[3778],{6100:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(7537),o=i.n(n),s=i(3645),a=i.n(s)()(o());a.push([t.id,".footer-contact[data-v-12f44f0d]{display:flex;align-items:center}.footer-contact span[data-v-12f44f0d]{display:inline-block}.footer-contact p[data-v-12f44f0d]{display:inline-block;margin-top:0px;margin-bottom:0px}a.footer-contact p[data-v-12f44f0d]{color:var(--footer-contact-colour)}a.footer-contact[data-v-12f44f0d]:hover{text-decoration:none}a.footer-contact:hover p[data-v-12f44f0d]{color:var(--footer-contact-hover-colour)}a.footer-contact[data-v-12f44f0d]:focus{text-decoration:none}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_footer/contact/style.scss"],names:[],mappings:"AAAA,iCACE,YAAA,CACA,kBAAA,CACA,sCACE,oBAAA,CAEF,mCACE,oBAAA,CACA,cAAA,CACA,iBAAA,CAIF,oCACE,kCAAA,CAGJ,wCACE,oBAAA,CACA,0CACE,wCAAA,CAIJ,wCACE,oBAAA",sourcesContent:[".footer-contact {\r\n display: flex;\r\n align-items: center;\r\n span {\r\n display: inline-block;\r\n }\r\n p {\r\n display: inline-block;\r\n margin-top: 0px;\r\n margin-bottom: 0px;\r\n }\r\n}\r\na.footer-contact {\r\n p {\r\n color: var(--footer-contact-colour);\r\n }\r\n}\r\na.footer-contact:hover {\r\n text-decoration: none;\r\n p {\r\n color: var(--footer-contact-hover-colour);\r\n }\r\n}\r\n\r\na.footer-contact:focus {\r\n text-decoration: none;\r\n}\r\n"],sourceRoot:""}]);const r=a},6848:(t,e,i)=>{function n(t){switch(t){case"left":return"flex-start";case"right":return"flex-end";case"justify":return"space-between";default:return"center"}}function o(t){switch(t){case"top":return"flex-start";case"bottom":return"flex-end";default:return"center"}}i.d(e,{K:()=>o,q:()=>n})},5129:(t,e,i)=>{i.d(e,{v:()=>o});var n=i(4437);class o{constructor(t,e){this.size="",this.colour="",this.hoverColour="",this.weight="",this.type="",this.textShadow="",this.lineHeight="",this.letterSpacing="",t||(t={}),this.setupDefaults(e),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,e])=>{void 0!==this[t]&&(this[t]=e)}))}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}}},3778:(t,e,i)=>{i.r(e),i.d(e,{default:()=>z});var n=i(6252),o=i(3577);const s=["href","target"];var a=i(4437),r=i(8159),l=i(6848),h=i(5129);const c=(0,n.aZ)({mixins:[r.Z],data:()=>({componentModel:{contactStyle:{},iconStyle:{}},contactRef:"",contactStyle:{},contactText:"",contactType:"",disableLinkStyle:{},iconClass:"",iconStyle:{},justifyStyle:{},linkTarget:""}),mounted(){const t=new h.v(this.componentModel.contactStyle);t.colour="",this.contactStyle=t.getStyle(),this.contactStyle["--footer-contact-colour"]=(0,a.G)().colour(this.componentModel.contactStyle.colour,"var(--a-colour)"),this.contactStyle["--footer-contact-hover-colour"]=(0,a.G)().colour(this.componentModel.contactStyle.hoverColour,"var(--a-colour)"),this.iconClass=(0,a.G)().string(this.componentModel.icon,""),this.iconStyle={fontSize:(0,a.G)().size(this.componentModel.iconStyle.size,""),textShadow:(0,a.G)().string(this.componentModel.iconStyle.textShadow,""),color:(0,a.G)().colour(this.componentModel.iconStyle.colour,""),marginRight:(0,a.G)().size(this.componentModel.iconMargin,"")},this.contactText=(0,a.G)().string(this.componentModel.contactText,""),this.contactRef=(0,a.G)().string(this.componentModel.contactRef,""),this.contactType=(0,a.G)().string(this.componentModel.contactType,"phone"),this.manageJustifyText(),this.manageContactType()},methods:{manageJustifyText:function(){const t=(0,a.G)().textAlign(this.componentModel.justify,"right");this.justifyStyle={justifyContent:(0,l.q)(t)}},manageContactType:function(){switch(this.contactType){case"phone":this.contactRef="tel:"+this.contactRef;break;case"email":this.contactRef="mailto:"+this.contactRef;break;case"link":this.linkTarget="_blank";break;default:this.disableLinkStyle={pointerEvents:"none"}}}}});var m=i(3379),d=i.n(m),y=i(7795),u=i.n(y),p=i(569),g=i.n(p),f=i(3565),A=i.n(f),v=i(9216),S=i.n(v),b=i(4589),C=i.n(b),w=i(6100),x={};x.styleTagTransform=C(),x.setAttributes=A(),x.insert=g().bind(null,"head"),x.domAPI=u(),x.insertStyleElement=S();d()(w.Z,x);w.Z&&w.Z.locals&&w.Z.locals;const z=(0,i(3744).Z)(c,[["render",function(t,e,i,a,r,l){return(0,n.wg)(),(0,n.iD)("a",{class:"footer-contact component-margins",href:t.contactRef,style:(0,o.j5)([t.justifyStyle,t.disableLinkStyle,t.entryAnimationStyle]),target:t.linkTarget},[(0,n._)("span",{class:(0,o.C_)(t.iconClass),style:(0,o.j5)(t.iconStyle)},null,6),(0,n._)("p",{class:"h1-default",style:(0,o.j5)(t.contactStyle)},(0,o.zw)(t.contactText),5)],12,s)}],["__scopeId","data-v-12f44f0d"]])},8159:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(655),o=i(6252),s=i(4437);class a{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=i(4572);const l=(0,o.aZ)({data:()=>({backgroundUrl:"",componentModel:{},componentWidth:0,isDesktopSize:!0,themeId:"",elementContainer:{},entryAnimations:{},entryAnimationStyle:{},loadState:{},observer:{},observerFirstRun:!0}),watch:{loadState(t,e){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 e=window.innerWidth;this.initiateMargins(e),this.initiatePadding(e),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((e=>setTimeout(e,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 a(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/3778.1eb48919c1a70623a8b4.map