"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[2438],{8592:(t,n,i)=>{i.d(n,{Z:()=>r});var e=i(7537),o=i.n(e),a=i(3645),s=i.n(a)()(o());s.push([t.id,".footer-social-media .icon-container[data-v-2e6d7a80]{display:flex;align-content:center}.footer-social-media a[data-v-2e6d7a80]{text-decoration:none}.footer-social-media a span[data-v-2e6d7a80]{color:var(--icon-colour)}.footer-social-media a .spacing[data-v-2e6d7a80]{margin-left:var(--icon-spacing)}.footer-social-media a:hover span[data-v-2e6d7a80]{color:var(--icon-colour-hover)}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_footer/socialMedia/style.scss"],names:[],mappings:"AACE,sDACE,YAAA,CACA,oBAAA,CAEF,wCACE,oBAAA,CACA,6CACE,wBAAA,CAEF,iDACE,+BAAA,CAIF,mDACE,8BAAA",sourcesContent:[".footer-social-media {\r\n .icon-container {\r\n display: flex;\r\n align-content: center;\r\n }\r\n a {\r\n text-decoration: none;\r\n span {\r\n color: var(--icon-colour);\r\n }\r\n .spacing {\r\n margin-left: var(--icon-spacing);\r\n }\r\n }\r\n a:hover {\r\n span {\r\n color: var(--icon-colour-hover);\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]);const r=s},6848:(t,n,i)=>{function e(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(n,{K:()=>o,q:()=>e})},2438:(t,n,i)=>{i.r(n),i.d(n,{default:()=>w});var e=i(6252),o=i(3577);const a=["href"];var s=i(4437),r=i(8159),l=i(6848);const m=(0,e.aZ)({mixins:[r.Z],data:()=>({componentModel:{},iconList:[],iconStyle:{},containerStyle:{}}),mounted(){this.iconList=(0,s.G)().array(this.componentModel.iconList,[]),this.iconStyle={fontSize:(0,s.G)().size(this.componentModel.iconStyle.size,"25px"),textShadow:(0,s.G)().string(this.componentModel.iconStyle.textShadow,""),"--icon-colour":(0,s.G)().string(this.componentModel.iconStyle.colour,"var(--a-color)"),"--icon-colour-hover":(0,s.G)().string(this.componentModel.iconStyle.colourHover,"var(--a-hover-color)"),"--icon-spacing":(0,s.G)().size(this.componentModel.iconSpacing,"10px")},this.containerStyle={justifyContent:(0,l.q)((0,s.G)().textAlign(this.componentModel.justify,"left"))}}});var c=i(3379),h=i.n(c),d=i(7795),y=i.n(d),u=i(569),p=i.n(u),A=i(3565),g=i.n(A),v=i(9216),b=i.n(v),f=i(4589),S=i.n(f),C=i(8592),x={};x.styleTagTransform=S(),x.setAttributes=g(),x.insert=p().bind(null,"head"),x.domAPI=y(),x.insertStyleElement=b();h()(C.Z,x);C.Z&&C.Z.locals&&C.Z.locals;const w=(0,i(3744).Z)(m,[["render",function(t,n,i,s,r,l){return(0,e.wg)(),(0,e.iD)("div",{class:"footer-social-media component-margins",style:(0,o.j5)(t.entryAnimationStyle)},[(0,e._)("div",{class:"icon-container",style:(0,o.j5)(t.containerStyle)},[((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(t.iconList,(n=>((0,e.wg)(),(0,e.iD)("a",{key:t.iconList.indexOf(n),href:n[1],style:(0,o.j5)(t.iconStyle),target:"”_blank”"},[0==t.iconList.indexOf(n)?((0,e.wg)(),(0,e.iD)("span",{key:0,class:(0,o.C_)(n[0])},null,2)):((0,e.wg)(),(0,e.iD)("span",{key:1,class:(0,o.C_)(["spacing",n[0]])},null,2))],12,a)))),128))],4)],4)}],["__scopeId","data-v-2e6d7a80"]])},8159:(t,n,i)=>{i.d(n,{Z:()=>l});var e=i(655),o=i(6252),a=i(4437);class s{constructor(t){this.animationEnable=(0,a.G)().boolean(t.animationEnable,!1),this.animationAlwaysRunOnLoad=(0,a.G)().boolean(t.animationAlwaysRunOnLoad,!1),this.animationDelay=(0,a.G)().number(t.animationDelay,.2),this.animationDuration=(0,a.G)().number(t.animationDuration,.3),this.animationDirection=(0,a.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,n){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 n=window.innerWidth;this.initiateMargins(n),this.initiatePadding(n),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,e.mG)(this,void 0,void 0,(function*(){return new Promise((n=>setTimeout(n,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,a.G)().size(t.top,"0px"):"0px",this.elementContainer.style.marginBottom=t.bottom?(0,a.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.marginLeft=t.left?(0,a.G)().size(t.left,"0px"):"0px",this.elementContainer.style.marginRight=t.right?(0,a.G)().size(t.right,"0px"):"0px")},setPadding(t){null!==this.elementContainer&&t&&(this.elementContainer.style.paddingTop=t.top?(0,a.G)().size(t.top,"0px"):"0px",this.elementContainer.style.paddingBottom=t.bottom?(0,a.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.paddingLeft=t.left?(0,a.G)().size(t.left,"0px"):"0px",this.elementContainer.style.paddingRight=t.right?(0,a.G)().size(t.right,"0px"):"0px")},initiateHeight(){if(null!==this.elementContainer){let t;t=this.componentModel.moduleHeight?(0,a.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 s(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,e.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,e.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/2438.2f8f91890152ad8ba26e.map