"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[4156],{2014:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(1354),o=n.n(i),a=n(6314),s=n.n(a)()(o());s.push([t.id,".text-basic{display:block}.text-basic .textContainer{display:block}.text-basic .textContainer .text{width:100%;white-space:pre-wrap}.text-basic .textContainer .text h1{color:var(--color);margin:0px}.text-basic .textContainer .text h2{color:var(--color);margin:0px}.text-basic .textContainer .text h3{color:var(--color);margin:0px}.text-basic .textContainer .text h4{color:var(--color);margin:0px}.text-basic .textContainer .text p{color:var(--color);margin:0px}.text-basic .textContainer .text a:not(.button){color:var(--color);margin:0px}.text-basic .textContainer .text a:hover:not(.button){color:var(--hover-colour)}.text-basic .textContainer .text button{width:var(--button-width);line-height:1;display:inline-flex}.text-basic .textContainer .text button h1,.text-basic .textContainer .text button h2,.text-basic .textContainer .text button h3,.text-basic .textContainer .text button h4,.text-basic .textContainer .text button p{line-height:var(--button-line-height);font-size:var(--button-size);font-family:var(--button-type);font-weight:var(--button-weight)}.text-basic .textContainer .text button .hover{display:none}.text-basic .textContainer .text button:hover h1,.text-basic .textContainer .text button:hover h2,.text-basic .textContainer .text button:hover h3,.text-basic .textContainer .text button:hover h4,.text-basic .textContainer .text button:hover p{font-size:var(--button-size-hover);font-family:var(--button-type-hover);font-weight:var(--button-weight-hover)}.text-basic .textContainer .text button:hover .regular{display:none}.text-basic .textContainer .text button:hover .hover{display:block}.text-basic .max-height{height:100%}.text-basic .max-height .max-width{width:100%}.text-basic .max-width{width:100%}","",{version:3,sources:["webpack://./Scripts/src/vue-components/text/style.scss"],names:[],mappings:"AAAA,YACE,aAAA,CACA,2BACE,aAAA,CACA,iCACE,UAAA,CACA,oBAAA,CACA,oCACE,kBAAA,CACA,UAAA,CAEF,oCACE,kBAAA,CACA,UAAA,CAEF,oCACE,kBAAA,CACA,UAAA,CAEF,oCACE,kBAAA,CACA,UAAA,CAEF,mCACE,kBAAA,CACA,UAAA,CAEF,gDACE,kBAAA,CACA,UAAA,CAEF,sDACE,yBAAA,CAEF,wCACE,yBAAA,CACA,aAAA,CACA,mBAAA,CACA,sNACE,qCAAA,CACA,4BAAA,CACA,8BAAA,CACA,gCAAA,CAEF,+CACE,YAAA,CAIF,oPACE,kCAAA,CACA,oCAAA,CACA,sCAAA,CAEF,uDACE,YAAA,CAEF,qDACE,aAAA,CAKR,wBACE,WAAA,CACA,mCACE,UAAA,CAGJ,uBACE,UAAA",sourceRoot:""}]);const r=s},3311:(t,e,n)=>{n.d(e,{m:()=>o});var i=n(7755);function o(){function t(t,e,n){return e.length>0?n+t+":"+e+";":n}return{createTag:function(t,e,n,i,o,a,s,r=!1){switch(t){case"button":return function(t,e,n,i,o,a){""===e&&(e=t);let s="";a&&(s=" target='_blank'");return""}(e,s,i,o,a,r);case"a":return function(t,e,n,i){let o="";i&&(o=" target='_blank'");return""+e+""}(n,e,i,r);default:return function(t,e,n){return"<"+t+" style='"+e+"' >"+n+""+t+">"}(t,n,e)}},loadButtonStyles:function(t,e,n,o){return"button"===t?{"--button-width":(0,i.t)().size(n,"inherit"),"--button-color":(0,i.t)().string(e.colour,"inherit"),"--button-line-height":(0,i.t)().string(e.lineHeight,"1.5"),"--button-size":(0,i.t)().string(e.size,"var(--"+o+"-font-size)"),"--button-type":(0,i.t)().string(e.type,"var(--"+o+"-font-style)"),"--button-weight":(0,i.t)().string(e.weight,"var(--"+o+"-font-weight)"),"--button-color-hover":(0,i.t)().string(e.colourHover,"revert"),"--button-size-hover":(0,i.t)().string(e.sizeHover,"var(--"+o+"-font-size)"),"--button-type-hover":(0,i.t)().string(e.typeHover,"var(--"+o+"-font-style)"),"--button-weight-hover":(0,i.t)().string(e.weightHover,"var(--"+o+"-font-weight)"),"--button-letter-spacing":(0,i.t)().string(e.letterSpacing,"inherit")}:{}},loadFontStyles:function(e,n){let o="";return"button"===e?"":(o=t("font-size",(0,i.t)().size(n.size,""),o),o=t("font-weight",(0,i.t)().fontWeight(n.weight,""),o),o=t("font-family",(0,i.t)().string(n.type,""),o),o=t("--color",(0,i.t)().colour(n.colour,"var(--default-colour)"),o),o=t("--hover-colour",(0,i.t)().colour(n.hoverColour,"var(--a-hover-colour)"),o),o=t("line-height",(0,i.t)().lineHeight(n.lineHeight,"1.5"),o),o=t("text-shadow",(0,i.t)().string(n.textShadow,""),o),o=t("letter-spacing",(0,i.t)().string(n.letterSpacing,""),o),o)}}}},4156:(t,e,n)=>{n.r(e),n.d(e,{default:()=>H});var i=n(641),o=n(33);const a={class:"textContainer"},s={key:0,class:"text"},r=["innerHTML"],l={key:1,class:"text"},h=["innerHTML"],A={key:2,class:"text"},m=["innerHTML"];var u=n(3311),c=n(7755),d=n(8184),x=n(4489);const g=(0,i.pM)({mixins:[d.A],data:()=>({moduleContainerStyle:{},textOverlayStyle:{},txt1:{isEnabled:!1,marginStyle:{},text:""},txt2:{isEnabled:!1,marginStyle:{},text:""},txt3:{isEnabled:!1,marginStyle:{},text:""}}),mounted(){this.setupText(this.componentModel.content1,this.txt1),this.setupText(this.componentModel.content2,this.txt2),this.setupText(this.componentModel.content3,this.txt3),this.setupOverlay(this.componentModel.overlay),this.setTextboxVAlignment(this.componentModel.verticalAlign),this.setTextboxHAlignment()},methods:{checkEnabledValidate:(t,e)=>{try{return"disabled"!==(0,c.t)().string(t,"disabled")&&e.length>0}catch(t){return!1}},setupText:function(t,e){e.isEnabled=this.checkEnabledValidate(t.type,t.text),e.isEnabled&&(e.text=(0,c.t)().string(t.text,""),e.text=(0,u.m)().createTag(this.setFontTag(t.format,t.type),e.text,(0,u.m)().loadFontStyles(t.format,t.style),t.url,(0,c.t)().string(t.buttonStyle,""),(0,c.t)().string(t.buttonFont,""),this.loadHoverText(t),(0,c.t)().boolean(t.urlOpenNewTab,!1)),e.buttonStyle=(0,u.m)().loadButtonStyles(t.format,t.style,t.buttonWidth,t.buttonFont)),t.margins||(t.margins={}),e.marginStyle={marginBottom:(0,c.t)().size(t.margins.bottom,"10"),marginLeft:(0,c.t)().size(t.margins.left,"20"),marginRight:(0,c.t)().size(t.margins.right,"20"),marginTop:(0,c.t)().size(t.margins.top,"10"),textAlign:(0,c.t)().textAlign(t.justify,"center")}},loadHoverText(t){const e=(0,c.t)().string(t.textHover,"");return 0==e.length?t.text:e},setFontTag:(t,e)=>{const n=t?(0,c.t)().string(t,""):"";return 0===n.length?e&&"link"===e?"a":"h2":n},setTextboxVAlignment:function(t){const e=(0,c.t)().string(t,"");this.moduleContainerStyle.display="flex",this.moduleContainerStyle.alignItems=(0,x.J)(e)},setTextboxHAlignment:function(){this.moduleContainerStyle.justifyContent="center"},setupOverlay(t){if(t){t.margins||(t.margins={});const e={bottom:(0,c.t)().size(t.margins.bottom,"20px"),left:(0,c.t)().size(t.margins.left,"20px"),right:(0,c.t)().size(t.margins.right,"20px"),top:(0,c.t)().size(t.margins.top,"20px")};this.textOverlayStyle={backgroundColor:t.colour?(0,c.t)().string(t.colour,"rgba(255, 255, 255, 0)"):"rgba(255, 255, 255, 0)",marginBottom:"-"+e.bottom,marginLeft:"-"+e.left,marginRight:"-"+e.right,marginTop:"-"+e.top,paddingBottom:e.bottom,paddingLeft:e.left,paddingRight:e.right,paddingTop:e.top}}},buildCssStringColour(t,e){return t.length>0?this.buildCssString("--color",t,e):this.buildCssString("color","unset",e)}}});var y=n(5072),b=n.n(y),C=n(7825),p=n.n(C),v=n(7659),f=n.n(v),w=n(5056),E=n.n(w),S=n(540),z=n.n(S),k=n(1113),M=n.n(k),T=n(2014),D={};D.styleTagTransform=M(),D.setAttributes=E(),D.insert=f().bind(null,"head"),D.domAPI=p(),D.insertStyleElement=z();b()(T.A,D);T.A&&T.A.locals&&T.A.locals;const H=(0,n(6262).A)(g,[["render",function(t,e,n,u,c,d){return(0,i.uX)(),(0,i.CE)("div",{class:"text-basic component-margins allow-overflow",style:(0,o.Tr)(t.entryAnimationStyle)},[(0,i.Lk)("div",{class:"max-height",style:(0,o.Tr)(t.moduleContainerStyle)},[(0,i.Lk)("div",{style:(0,o.Tr)(t.textOverlayStyle),class:"max-width"},[(0,i.Lk)("div",a,[t.txt1.isEnabled?((0,i.uX)(),(0,i.CE)("div",s,[(0,i.Lk)("div",{style:(0,o.Tr)([t.txt1.marginStyle,t.txt1.buttonStyle]),innerHTML:t.txt1.text},null,12,r)])):(0,i.Q3)("v-if",!0),t.txt2.isEnabled?((0,i.uX)(),(0,i.CE)("div",l,[(0,i.Lk)("div",{style:(0,o.Tr)([t.txt2.marginStyle,t.txt2.buttonStyle]),innerHTML:t.txt2.text},null,12,h)])):(0,i.Q3)("v-if",!0),t.txt3.isEnabled?((0,i.uX)(),(0,i.CE)("div",A,[(0,i.Lk)("div",{style:(0,o.Tr)([t.txt3.marginStyle,t.txt3.buttonStyle]),innerHTML:t.txt3.text},null,12,m)])):(0,i.Q3)("v-if",!0)])],4)],4)],4)}]])},4489:(t,e,n)=>{function i(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"}}n.d(e,{G:()=>i,J:()=>o})},8184:(t,e,n)=>{n.d(e,{A:()=>l});var i=n(1635),o=n(641),a=n(7755);class s{constructor(t){this.animationEnable=(0,a.t)().boolean(t.animationEnable,!1),this.animationAlwaysRunOnLoad=(0,a.t)().boolean(t.animationAlwaysRunOnLoad,!1),this.animationDelay=(0,a.t)().number(t.animationDelay,.2),this.animationDuration=(0,a.t)().number(t.animationDuration,.3),this.animationDirection=(0,a.t)().string(t.animationDirection,"bottom")}}var r=n(6212);const l=(0,o.pM)({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.setupEntryAnimation()}},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.N)().addLoadedModule(),this.loadState=(0,r.N)().getLoadState()},onUnmounted(){if(this.entryAnimations.animationEnable)try{this.observer.unobserve(this.elementContainer)}catch(t){}},methods:{delay(t){return(0,i.sH)(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,a.t)().size(t.top,"0px"):"0px",this.elementContainer.style.marginBottom=t.bottom?(0,a.t)().size(t.bottom,"0px"):"0px",this.elementContainer.style.marginLeft=t.left?(0,a.t)().size(t.left,"0px"):"0px",this.elementContainer.style.marginRight=t.right?(0,a.t)().size(t.right,"0px"):"0px")},setPadding(t){null!==this.elementContainer&&t&&(this.elementContainer.style.paddingTop=t.top?(0,a.t)().size(t.top,"0px"):"0px",this.elementContainer.style.paddingBottom=t.bottom?(0,a.t)().size(t.bottom,"0px"):"0px",this.elementContainer.style.paddingLeft=t.left?(0,a.t)().size(t.left,"0px"):"0px",this.elementContainer.style.paddingRight=t.right?(0,a.t)().size(t.right,"0px"):"0px")},initiateHeight(){if(null!==this.elementContainer){let t;t=this.componentModel.moduleHeight?(0,a.t)().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"}},setupEntryAnimation(){this.setupEntryAnimationObserver(.3)},setupEntryAnimationObserver(t){return(0,i.sH)(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:[t]}),this.observer.observe(this.elementContainer)})},runEntryAnimations(){return(0,i.sH)(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/4156.ae11954f89a3be15479b.map