"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[8908],{4438:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(7537),o=i.n(n),r=i(3645),a=i.n(r)()(o());a.push([t.id,".image-text-basic .text-flex,.image-text-enlarge .text-flex,.image-text-fade .text-flex,.image-text-swipe .text-flex,.image-text-zoom .text-flex{display:flex;height:100%;width:100%}.image-text-basic .text-flex .text-container,.image-text-enlarge .text-flex .text-container,.image-text-fade .text-flex .text-container,.image-text-swipe .text-flex .text-container,.image-text-zoom .text-flex .text-container{display:block}.image-text-basic .text-flex .text-container li,.image-text-enlarge .text-flex .text-container li,.image-text-fade .text-flex .text-container li,.image-text-swipe .text-flex .text-container li,.image-text-zoom .text-flex .text-container li{list-style-type:none}.image-text-basic .text-flex .text-container .text,.image-text-enlarge .text-flex .text-container .text,.image-text-fade .text-flex .text-container .text,.image-text-swipe .text-flex .text-container .text,.image-text-zoom .text-flex .text-container .text{width:100%;white-space:pre-wrap}.image-text-basic .text-flex .text-container .text h1,.image-text-enlarge .text-flex .text-container .text h1,.image-text-fade .text-flex .text-container .text h1,.image-text-swipe .text-flex .text-container .text h1,.image-text-zoom .text-flex .text-container .text h1{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text h2,.image-text-enlarge .text-flex .text-container .text h2,.image-text-fade .text-flex .text-container .text h2,.image-text-swipe .text-flex .text-container .text h2,.image-text-zoom .text-flex .text-container .text h2{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text h3,.image-text-enlarge .text-flex .text-container .text h3,.image-text-fade .text-flex .text-container .text h3,.image-text-swipe .text-flex .text-container .text h3,.image-text-zoom .text-flex .text-container .text h3{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text h4,.image-text-enlarge .text-flex .text-container .text h4,.image-text-fade .text-flex .text-container .text h4,.image-text-swipe .text-flex .text-container .text h4,.image-text-zoom .text-flex .text-container .text h4{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text p,.image-text-enlarge .text-flex .text-container .text p,.image-text-fade .text-flex .text-container .text p,.image-text-swipe .text-flex .text-container .text p,.image-text-zoom .text-flex .text-container .text p{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text a,.image-text-enlarge .text-flex .text-container .text a,.image-text-fade .text-flex .text-container .text a,.image-text-swipe .text-flex .text-container .text a,.image-text-zoom .text-flex .text-container .text a{color:var(--color);margin:0px}.image-text-basic .text-flex .text-container .text a:hover,.image-text-enlarge .text-flex .text-container .text a:hover,.image-text-fade .text-flex .text-container .text a:hover,.image-text-swipe .text-flex .text-container .text a:hover,.image-text-zoom .text-flex .text-container .text a:hover{color:var(--hover-colour)}.image-text-basic .text-flex .text-container .text button,.image-text-enlarge .text-flex .text-container .text button,.image-text-fade .text-flex .text-container .text button,.image-text-swipe .text-flex .text-container .text button,.image-text-zoom .text-flex .text-container .text button{width:var(--button-width);line-height:0}.image-text-basic .text-flex .text-container .text button h1,.image-text-basic .text-flex .text-container .text button h2,.image-text-basic .text-flex .text-container .text button h3,.image-text-basic .text-flex .text-container .text button h4,.image-text-basic .text-flex .text-container .text button p,.image-text-enlarge .text-flex .text-container .text button h1,.image-text-enlarge .text-flex .text-container .text button h2,.image-text-enlarge .text-flex .text-container .text button h3,.image-text-enlarge .text-flex .text-container .text button h4,.image-text-enlarge .text-flex .text-container .text button p,.image-text-fade .text-flex .text-container .text button h1,.image-text-fade .text-flex .text-container .text button h2,.image-text-fade .text-flex .text-container .text button h3,.image-text-fade .text-flex .text-container .text button h4,.image-text-fade .text-flex .text-container .text button p,.image-text-swipe .text-flex .text-container .text button h1,.image-text-swipe .text-flex .text-container .text button h2,.image-text-swipe .text-flex .text-container .text button h3,.image-text-swipe .text-flex .text-container .text button h4,.image-text-swipe .text-flex .text-container .text button p,.image-text-zoom .text-flex .text-container .text button h1,.image-text-zoom .text-flex .text-container .text button h2,.image-text-zoom .text-flex .text-container .text button h3,.image-text-zoom .text-flex .text-container .text button h4,.image-text-zoom .text-flex .text-container .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-shadow:var(--button-text-shadow);letter-spacing:var(--button-letter-spacing)}.image-text-basic .text-flex .text-container .text button .hover,.image-text-enlarge .text-flex .text-container .text button .hover,.image-text-fade .text-flex .text-container .text button .hover,.image-text-swipe .text-flex .text-container .text button .hover,.image-text-zoom .text-flex .text-container .text button .hover{display:none}.image-text-basic .text-flex .text-container .text button:hover h1,.image-text-basic .text-flex .text-container .text button:hover h2,.image-text-basic .text-flex .text-container .text button:hover h3,.image-text-basic .text-flex .text-container .text button:hover h4,.image-text-basic .text-flex .text-container .text button:hover p,.image-text-enlarge .text-flex .text-container .text button:hover h1,.image-text-enlarge .text-flex .text-container .text button:hover h2,.image-text-enlarge .text-flex .text-container .text button:hover h3,.image-text-enlarge .text-flex .text-container .text button:hover h4,.image-text-enlarge .text-flex .text-container .text button:hover p,.image-text-fade .text-flex .text-container .text button:hover h1,.image-text-fade .text-flex .text-container .text button:hover h2,.image-text-fade .text-flex .text-container .text button:hover h3,.image-text-fade .text-flex .text-container .text button:hover h4,.image-text-fade .text-flex .text-container .text button:hover p,.image-text-swipe .text-flex .text-container .text button:hover h1,.image-text-swipe .text-flex .text-container .text button:hover h2,.image-text-swipe .text-flex .text-container .text button:hover h3,.image-text-swipe .text-flex .text-container .text button:hover h4,.image-text-swipe .text-flex .text-container .text button:hover p,.image-text-zoom .text-flex .text-container .text button:hover h1,.image-text-zoom .text-flex .text-container .text button:hover h2,.image-text-zoom .text-flex .text-container .text button:hover h3,.image-text-zoom .text-flex .text-container .text button:hover h4,.image-text-zoom .text-flex .text-container .text button:hover p{font-size:var(--button-size-hover);font-family:var(--button-type-hover);font-weight:var(--button-weight-hover);text-shadow:var(--button-text-shadow-hover)}.image-text-basic .text-flex .text-container .text button:hover .regular,.image-text-enlarge .text-flex .text-container .text button:hover .regular,.image-text-fade .text-flex .text-container .text button:hover .regular,.image-text-swipe .text-flex .text-container .text button:hover .regular,.image-text-zoom .text-flex .text-container .text button:hover .regular{display:none}.image-text-basic .text-flex .text-container .text button:hover .hover,.image-text-enlarge .text-flex .text-container .text button:hover .hover,.image-text-fade .text-flex .text-container .text button:hover .hover,.image-text-swipe .text-flex .text-container .text button:hover .hover,.image-text-zoom .text-flex .text-container .text button:hover .hover{display:block}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_imagetext/image-text-common-files/style.scss"],names:[],mappings:"AAKE,iJACE,YAAA,CACA,WAAA,CACA,UAAA,CACA,iOACE,aAAA,CACA,gPACE,oBAAA,CAEF,+PACE,UAAA,CACA,oBAAA,CACA,8QACE,kBAAA,CACA,UAAA,CAEF,8QACE,kBAAA,CACA,UAAA,CAEF,8QACE,kBAAA,CACA,UAAA,CAEF,8QACE,kBAAA,CACA,UAAA,CAEF,yQACE,kBAAA,CACA,UAAA,CAEF,yQACE,kBAAA,CACA,UAAA,CAEF,uSACE,yBAAA,CAEF,kSACE,yBAAA,CACA,aAAA,CACA,g/CAKE,qCAAA,CACA,4BAAA,CACA,8BAAA,CACA,gCAAA,CACA,qCAAA,CACA,2CAAA,CAEF,qUACE,YAAA,CAIF,soDAKE,kCAAA,CACA,oCAAA,CACA,sCAAA,CACA,2CAAA,CAEF,6WACE,YAAA,CAEF,mWACE,aAAA",sourcesContent:[".image-text-basic,\r\n.image-text-enlarge,\r\n.image-text-fade,\r\n.image-text-swipe,\r\n.image-text-zoom {\r\n .text-flex {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n .text-container {\r\n display: block;\r\n li {\r\n list-style-type: none;\r\n }\r\n .text {\r\n width: 100%;\r\n white-space: pre-wrap;\r\n h1 {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n h2 {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n h3 {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n h4 {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n p {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n a {\r\n color: var(--color);\r\n margin: 0px;\r\n }\r\n a:hover {\r\n color: var(--hover-colour);\r\n }\r\n button {\r\n width: var(--button-width);\r\n line-height: 0;\r\n h1,\r\n h2,\r\n h3,\r\n h4,\r\n p {\r\n line-height: var(--button-line-height);\r\n font-size: var(--button-size);\r\n font-family: var(--button-type);\r\n font-weight: var(--button-weight);\r\n text-shadow: var(--button-text-shadow);\r\n letter-spacing: var(--button-letter-spacing);\r\n }\r\n .hover {\r\n display: none;\r\n }\r\n }\r\n button:hover {\r\n h1,\r\n h2,\r\n h3,\r\n h4,\r\n p {\r\n font-size: var(--button-size-hover);\r\n font-family: var(--button-type-hover);\r\n font-weight: var(--button-weight-hover);\r\n text-shadow: var(--button-text-shadow-hover);\r\n }\r\n .regular {\r\n display: none;\r\n }\r\n .hover {\r\n display: block;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]);const s=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})},5024:(t,e,i)=>{i.d(e,{N:()=>s});var n=i(6848),o=i(7799);class r{constructor(t){this.marginStyle={},this.buttonStyle={},this.text="",this.isEnabled=this.checkEnabledValidate(t.type,t.text),this.isEnabled&&(this.marginStyle={marginBottom:t.margins.bottom,marginLeft:t.margins.left,marginRight:t.margins.right,marginTop:t.margins.top,textAlign:t.justify},this.initiateText(t),this.initiateButtonStyle(t))}initiateButtonStyle(t){this.buttonStyle=(0,o.$)().loadButtonStyles(t.format,t.style,t.button.buttonWidth,t.button.buttonFont)}initiateText(t){this.text=t.text,this.text=(0,o.$)().createTag(t.format,t.text,(0,o.$)().loadFontStyles(t.format,t.style),t.url,t.button.buttonStyle,t.button.buttonFont,t.button.textHover,t.urlOpenNewTab)}checkEnabledValidate(t,e){try{return"disabled"!==t&&e.length>0}catch(t){return!1}}}class a{constructor(t,e){if(this.overlayStyle={},this.overlayColour="",this.textBoxMargin={},!t)return;this.textArray=new Array;let i=null;switch(e){case"after":i=t.layers.after;break;case"before":i=t.layers.before;break;case"over":i=t.layers.over;break;case"under":i=t.layers.under}this.manageTextArray(t.content1,e),this.manageTextArray(t.content2,e),this.manageTextArray(t.content3,e),this.manageTextArray(t.content4,e),this.manageTextArray(t.content5,e),this.manageTextArray(t.content6,e),this.setContainerStyle(i.alignment),this.setWrapperStyle(this.textArray),this.setOverlay(i.overlay),this.setTextboxMargins(i.margins)}manageTextArray(t,e){if(t&&t.animationLayer===e){const e=new r(t);e.isEnabled&&this.textArray.push(e)}}setContainerStyle(t){this.containerStyle={},this.containerStyle.alignItems=(0,n.K)(t)}setOverlay(t){this.overlayStyle={backgroundColor:t.colour,marginBottom:"-"+t.margins.bottom,marginLeft:"-"+t.margins.left,marginRight:"-"+t.margins.right,marginTop:"-"+t.margins.top,paddingBottom:t.margins.bottom,paddingLeft:t.margins.left,paddingRight:t.margins.right,paddingTop:t.margins.top}}setTextboxMargins(t){this.textBoxMargin={marginBottom:t.bottom,marginLeft:t.left,marginRight:t.right,marginTop:t.top,width:"100%"}}setWrapperStyle(t){this.wrapperStyle={},0===t.length&&(this.wrapperStyle.display="none")}}class s{constructor(t,e){t||(t=null),e.forEach((e=>{switch(e){case"over":this.over=new a(t,"over");break;case"before":this.before=new a(t,"before");break;case"under":this.under=new a(t,"under");break;case"after":this.after=new a(t,"after")}}))}}},5656:(t,e,i)=>{i.d(e,{U:()=>f});var n=i(4437),o=i(1948),r=i(5129),a=i(8761);class s{constructor(t){this.content1=this.initiateContentItem(t.content1),this.content2=this.initiateContentItem(t.content2),this.content3=this.initiateContentItem(t.content3),this.content4=this.initiateContentItem(t.content4),this.content5=this.initiateContentItem(t.content5),this.content6=this.initiateContentItem(t.content6),this.layers=new g(t.layers)}initiateContentItem(t){const e=(0,n.G)().string(t.type,"disabled");return this.isContentEmpty(t)||"disabled"===e?null:new x(t)}isContentEmpty(t){return!(t&&Object.keys(t).length>0)}}class x{constructor(t){t.style||(t.style={}),t.margins||(t.margins={}),this.animationLayer=(0,n.G)().string(t.animationLayer,"disabled"),this.format=(0,n.G)().string(t.format,"h1"),this.justify=(0,n.G)().string(t.justify,"center"),this.margins=new h(t.margins,"10px","0px","10px","0px"),this.redirect=(0,n.G)().string(t.redirect,""),this.button=new l(t),this.text=(0,n.G)().string(t.text,""),this.type=(0,n.G)().string(t.type,"disabled"),this.url=(0,n.G)().string(t.url,""),this.urlOpenNewTab=(0,n.G)().boolean(t.urlOpenNewTab,!1),"text"==this.type||"disabled"==this.type?this.style=new a.n(t.style):"a"==this.format?this.style=new r.v(t.style):this.style=new o.j(t.style)}}class h{constructor(t,e,i,o,r){this.bottom=(0,n.G)().size(t.bottom,e),this.left=(0,n.G)().size(t.left,r),this.right=(0,n.G)().size(t.right,i),this.top=(0,n.G)().size(t.top,e)}}class l{constructor(t){this.buttonFont=(0,n.G)().string(t.buttonFont,""),this.buttonStyle=(0,n.G)().string(t.buttonStyle,""),this.buttonWidth=(0,n.G)().size(t.buttonWidth,""),this.textHover=(0,n.G)().string(t.textHover,"")}}class g{constructor(t){this.after=new c(t.after),this.before=new c(t.before),this.over=new c(t.over),this.under=new c(t.under)}}class c{constructor(t){t.overlay||(t.overlay={}),t.overlay.margins||(t.overlay.margins={}),this.margins=new h(t.margins,"0px","70px","0px","70px"),this.alignment=(0,n.G)().string(t.alignment,"center"),this.overlay=new m(t)}}class m{constructor(t){this.colour=(0,n.G)().colour(t.overlay.colour,"rgba(255, 255, 255, 0)"),this.margins=new h(t.overlay.margins,"20px","20px","20px","20px")}}var u=i(5024);function f(){function t(t){return t.layers||(t.layers={}),new s(t)}return{initiateTextDisplay:function(e,i){const n=t(e);return new u.N(n,i)},initiateContent:t}}},7799:(t,e,i)=>{i.d(e,{$:()=>o});var n=i(4437);function o(){function t(t,e,i){return e.length>0?i+t+":"+e+";":i}return{createTag:function(t,e,i,n,o,r,a,s=!1){switch(t){case"button":return function(t,e,i,n,o,r){""===e&&(e=t);let a="";r&&(a=" target='_blank'");return""}(e,a,n,o,r,s);case"a":return function(t,e,i,n){let o="";n&&(o=" target='_blank'");return""+e+""}(i,e,n,s);default:return function(t,e,i){return"<"+t+" style='"+e+"' >"+i+""+t+">"}(t,i,e)}},loadButtonStyles:function(t,e,i,o){return"button"===t?{"--button-width":(0,n.G)().size(i,"inherit"),"--button-color":(0,n.G)().string(e.colour,"inherit"),"--button-line-height":(0,n.G)().string(e.lineHeight,"1.5"),"--button-size":(0,n.G)().string(e.size,"var(--"+o+"-font-size)"),"--button-type":(0,n.G)().string(e.type,"var(--"+o+"-font-style)"),"--button-weight":(0,n.G)().string(e.weight,"var(--"+o+"-font-weight)"),"--button-color-hover":(0,n.G)().string(e.colourHover,"revert"),"--button-size-hover":(0,n.G)().string(e.sizeHover,"var(--"+o+"-font-size)"),"--button-type-hover":(0,n.G)().string(e.typeHover,"var(--"+o+"-font-style)"),"--button-weight-hover":(0,n.G)().string(e.weightHover,"var(--"+o+"-font-weight)"),"--button-letter-spacing":(0,n.G)().string(e.letterSpacing,"inherit")}:{}},loadFontStyles:function(e,i){let o="";return"button"===e?"":(o=t("font-size",(0,n.G)().size(i.size,""),o),o=t("font-weight",(0,n.G)().fontWeight(i.weight,""),o),o=t("font-family",(0,n.G)().string(i.type,""),o),o=t("--color",(0,n.G)().colour(i.colour,"var(--default-colour)"),o),o=t("--hover-colour",(0,n.G)().colour(i.hoverColour,"var(--a-hover-colour)"),o),o=t("line-height",(0,n.G)().lineHeight(i.lineHeight,"1.5"),o),o=t("text-shadow",(0,n.G)().string(i.textShadow,""),o),o=t("letter-spacing",(0,n.G)().string(i.letterSpacing,""),o),o)}}}},1948:(t,e,i)=>{i.d(e,{j:()=>o});var n=i(4437);class o{constructor(t){t||(t={}),this.size=(0,n.G)().size(t.size,""),this.sizeHover=(0,n.G)().size(t.sizeHover,""),this.type=(0,n.G)().string(t.type,""),this.typeHover=(0,n.G)().string(t.typeHover,""),this.weight=(0,n.G)().fontWeight(t.weight,""),this.weightHover=(0,n.G)().fontWeight(t.weightHover,""),this.letterSpacing=(0,n.G)().size(t.letterSpacing,"")}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.sizeHover?t["--font-size-hover"]=this.sizeHover:""!==this.size?t["--font-size-hover"]=this.size:t["--font-size-hover"]="inherit",""!==this.typeHover?t["--font-family-hover"]=this.typeHover:""!==this.type?t["--font-family-hover"]=this.type:t["--font-family-hover"]="inherit",""!==this.weightHover?t["--font-weight-hover"]=this.weightHover:""!==this.weight?t["--font-weight-hover"]=this.weight:t["--font-weight-hover"]="inherit",""!==this.letterSpacing&&(t["letter-spacing"]=this.letterSpacing),t}}},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}}},8761:(t,e,i)=>{i.d(e,{n:()=>o});var n=i(4437);class o{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}}},8159:(t,e,i)=>{i.d(e,{Z:()=>x});var n=i(655),o=i(6252),r=i(4437);class a{constructor(t){this.animationEnable=(0,r.G)().boolean(t.animationEnable,!1),this.animationAlwaysRunOnLoad=(0,r.G)().boolean(t.animationAlwaysRunOnLoad,!1),this.animationDelay=(0,r.G)().number(t.animationDelay,.2),this.animationDuration=(0,r.G)().number(t.animationDuration,.3),this.animationDirection=(0,r.G)().string(t.animationDirection,"bottom")}}var s=i(4572);const x=(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,s.y)().addLoadedModule(),this.loadState=(0,s.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,r.G)().size(t.top,"0px"):"0px",this.elementContainer.style.marginBottom=t.bottom?(0,r.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.marginLeft=t.left?(0,r.G)().size(t.left,"0px"):"0px",this.elementContainer.style.marginRight=t.right?(0,r.G)().size(t.right,"0px"):"0px")},setPadding(t){null!==this.elementContainer&&t&&(this.elementContainer.style.paddingTop=t.top?(0,r.G)().size(t.top,"0px"):"0px",this.elementContainer.style.paddingBottom=t.bottom?(0,r.G)().size(t.bottom,"0px"):"0px",this.elementContainer.style.paddingLeft=t.left?(0,r.G)().size(t.left,"0px"):"0px",this.elementContainer.style.paddingRight=t.right?(0,r.G)().size(t.right,"0px"):"0px")},initiateHeight(){if(null!==this.elementContainer){let t;t=this.componentModel.moduleHeight?(0,r.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.")}}))}}})},9448:(t,e,i)=>{var n=i(3379),o=i.n(n),r=i(7795),a=i.n(r),s=i(569),x=i.n(s),h=i(3565),l=i.n(h),g=i(9216),c=i.n(g),m=i(4589),u=i.n(m),f=i(4438),p={};p.styleTagTransform=u(),p.setAttributes=l(),p.insert=x().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=c();o()(f.Z,p);f.Z&&f.Z.locals&&f.Z.locals}}]);
//# sourceMappingURL=source-maps-1.2/8908.a21358040549b6a5c3d0.map