(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[6151],{5347:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var n=i(7537),s=i.n(n),o=i(3645),c=i.n(o)()(s());c.push([t.id,".powered-by-surga p{display:inline-block;margin-right:5px;margin-top:0px;margin-bottom:0px}.powered-by-surga a{text-decoration:none;display:inline-block}.powered-by-surga a p{display:inline-block;margin-right:0px;color:var(--power-colour)}.powered-by-surga a .surga-logo{display:inline-block}.powered-by-surga a .flex-container{display:flex;align-items:center}.powered-by-surga a svg{fill:var(--power-colour)}.powered-by-surga a:hover{text-decoration:none}.powered-by-surga a:hover p{color:var(--power-hover-colour)}.powered-by-surga a:hover svg{fill:var(--power-hover-colour)}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_footer/poweredBySurga/style.scss"],names:[],mappings:"AACE,oBACE,oBAAA,CACA,gBAAA,CACA,cAAA,CACA,iBAAA,CAEF,oBACE,oBAAA,CACA,oBAAA,CACA,sBACE,oBAAA,CACA,gBAAA,CACA,yBAAA,CAEF,gCACE,oBAAA,CAEF,oCACE,YAAA,CACA,kBAAA,CAEF,wBACE,wBAAA,CAGJ,0BACE,oBAAA,CACA,4BACE,+BAAA,CAEF,8BACE,8BAAA",sourcesContent:[".powered-by-surga {\r\n p {\r\n display: inline-block;\r\n margin-right: 5px;\r\n margin-top: 0px;\r\n margin-bottom: 0px;\r\n }\r\n a {\r\n text-decoration: none;\r\n display: inline-block;\r\n p {\r\n display: inline-block;\r\n margin-right: 0px;\r\n color: var(--power-colour);\r\n }\r\n .surga-logo {\r\n display: inline-block;\r\n }\r\n .flex-container {\r\n display: flex;\r\n align-items: center;\r\n }\r\n svg {\r\n fill: var(--power-colour);\r\n }\r\n }\r\n a:hover {\r\n text-decoration: none;\r\n p {\r\n color: var(--power-hover-colour);\r\n }\r\n svg {\r\n fill: var(--power-hover-colour);\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]);const a=c},7050:t=>{t.exports=''},8761:(t,e,i)=>{"use strict";i.d(e,{n:()=>s});var n=i(4437);class s{constructor(t,e){this.size="",this.colour="",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.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(t=!1){let e="";t&&(e="!important");const i={};return""!==this.size&&(i["font-size"]=this.size+e),""!==this.type&&(i["font-family"]=this.type+e),""!==this.weight&&(i["font-weight"]=this.weight+e),""!==this.colour&&(i.color=this.colour+e),""!==this.textShadow&&(i["text-shadow"]=this.textShadow+e),""!==this.lineHeight&&(i["line-height"]=this.lineHeight+e),""!==this.letterSpacing&&(i["letter-spacing"]=this.letterSpacing+e),i}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}}},6151:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>_});var n=i(6252),s=i(3577);const o=["href"],c={class:"flex-container"},a=["innerHTML"];var r=i(9394),l=i(196),h=i(4437),p=i(8159),d=i(8761);const m=(0,n.aZ)({mixins:[p.Z],data:()=>({componentModel:{text:{},icon:{}},copyrightText:"",textStyle:{},hyperlinkStyle:{},imageStyle:{},mySVG:i(7050),textColorStyles:{},surgaUrl:(0,r.IO)()}),mounted(){this.copyrightText="© "+(new Date).getFullYear()+" "+(0,l.T)().get("companyName",""),null==this.componentModel.text&&(this.componentModel.text={}),null==this.componentModel.icon&&(this.componentModel.icon={});const t=new d.n(this.componentModel.text);this.textStyle=t.getStyle(),this.textStyle.textAlign=(0,h.G)().textAlign(this.componentModel.justify,"left"),this.hyperlinkStyle={fontSize:(0,h.G)().size(this.componentModel.text.size,""),fontFamily:(0,h.G)().string(this.componentModel.text.type,""),fontWeight:(0,h.G)().fontWeight(this.componentModel.text.weight,""),lineHeight:(0,h.G)().lineHeight(this.componentModel.text.lineHeight,"1"),textShadow:(0,h.G)().string(this.componentModel.text.textShadow,""),textAlign:(0,h.G)().textAlign(this.componentModel.justify,"left")},this.textColorStyles={"--power-colour":(0,h.G)().colour(this.componentModel.icon.colour,"var(--a-colour)"),"--power-hover-colour":(0,h.G)().colour(this.componentModel.icon.hoverColour,"var(--a-hover-colour"),textAlign:(0,h.G)().textAlign(this.componentModel.justify,"left")},this.imageStyle={width:(0,h.G)().size(this.componentModel.icon.width,"85px")}}});var y=i(3379),g=i.n(y),u=i(7795),A=i.n(u),v=i(569),w=i.n(v),x=i(3565),b=i.n(x),M=i(9216),C=i.n(M),S=i(4589),f=i.n(S),z=i(5347),D={};D.styleTagTransform=f(),D.setAttributes=b(),D.insert=w().bind(null,"head"),D.domAPI=A(),D.insertStyleElement=C();g()(z.Z,D);z.Z&&z.Z.locals&&z.Z.locals;const _=(0,i(3744).Z)(m,[["render",function(t,e,i,r,l,h){return(0,n.wg)(),(0,n.iD)("div",{class:"powered-by-surga component-margins",style:(0,s.j5)(t.entryAnimationStyle)},[(0,n._)("div",{style:(0,s.j5)(t.textColorStyles)},[(0,n._)("p",{class:"h3-default",style:(0,s.j5)(t.textStyle)},(0,s.zw)(t.copyrightText),5),(0,n._)("a",{href:t.surgaUrl,target:"”_blank”"},[(0,n._)("div",c,[(0,n._)("p",{class:"h3-default",style:(0,s.j5)(t.hyperlinkStyle)},"Powered by",4),(0,n._)("span",{class:"surga-logo",style:(0,s.j5)(t.imageStyle),innerHTML:t.mySVG},null,12,a)])],8,o)],4)],4)}]])},8159:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(655),s=i(6252),o=i(4437);class c{constructor(t){this.animationEnable=(0,o.G)().boolean(t.animationEnable,!1),this.animationAlwaysRunOnLoad=(0,o.G)().boolean(t.animationAlwaysRunOnLoad,!1),this.animationDelay=(0,o.G)().number(t.animationDelay,.2),this.animationDuration=(0,o.G)().number(t.animationDuration,.3),this.animationDirection=(0,o.G)().string(t.animationDirection,"bottom")}}var a=i(4572);const r=(0,s.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,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((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,o.G)().size(t.top,"0px"):"0px",this.elementContainer.style.marginBottom=t.bottom?(0,o.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.marginLeft=t.left?(0,o.G)().size(t.left,"0px"):"0px",this.elementContainer.style.marginRight=t.right?(0,o.G)().size(t.right,"0px"):"0px")},setPadding(t){null!==this.elementContainer&&t&&(this.elementContainer.style.paddingTop=t.top?(0,o.G)().size(t.top,"0px"):"0px",this.elementContainer.style.paddingBottom=t.bottom?(0,o.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.paddingLeft=t.left?(0,o.G)().size(t.left,"0px"):"0px",this.elementContainer.style.paddingRight=t.right?(0,o.G)().size(t.right,"0px"):"0px")},initiateHeight(){if(null!==this.elementContainer){let t;t=this.componentModel.moduleHeight?(0,o.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 c(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/6151.006d08df56070fa32af3.map