@assaabloy/amarr-wc-carousel 3.0.13 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/carousel.js +1 -1
- package/package.json +2 -2
package/carousel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function t(t){for(var a,o,d=t[0],l=t[1],c=t[2],p=0,m=[];p<d.length;p++)o=d[p],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(s&&s(t);m.length;)m.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,d=1;d<n.length;d++){var l=n[d];0!==i[l]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},i={6:0},r=[];function o(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=d.push.bind(d);d.push=t,d=d.slice();for(var c=0;c<d.length;c++)t(d[c]);var s=l;r.push([796,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"V",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"D",(function(){return d})),n.d(t,"G",(function(){return l})),n.d(t,"v",(function(){return c})),n.d(t,"B",(function(){return s})),n.d(t,"o",(function(){return p})),n.d(t,"r",(function(){return m})),n.d(t,"I",(function(){return u})),n.d(t,"H",(function(){return x})),n.d(t,"Q",(function(){return h})),n.d(t,"E",(function(){return g})),n.d(t,"u",(function(){return f})),n.d(t,"h",(function(){return w})),n.d(t,"t",(function(){return b})),n.d(t,"y",(function(){return v})),n.d(t,"w",(function(){return y})),n.d(t,"C",(function(){return E})),n.d(t,"s",(function(){return k})),n.d(t,"R",(function(){return N})),n.d(t,"q",(function(){return z})),n.d(t,"J",(function(){return S})),n.d(t,"F",(function(){return j})),n.d(t,"S",(function(){return A})),n.d(t,"m",(function(){return C})),n.d(t,"j",(function(){return T})),n.d(t,"n",(function(){return _})),n.d(t,"k",(function(){return $})),n.d(t,"l",(function(){return H})),n.d(t,"z",(function(){return M})),n.d(t,"L",(function(){return D})),n.d(t,"x",(function(){return Z})),n.d(t,"T",(function(){return P})),n.d(t,"U",(function(){return L})),n.d(t,"b",(function(){return B})),n.d(t,"O",(function(){return U})),n.d(t,"A",(function(){return R})),n.d(t,"a",(function(){return W})),n.d(t,"d",(function(){return F})),n.d(t,"f",(function(){return J})),n.d(t,"e",(function(){return G})),n.d(t,"X",(function(){return q})),n.d(t,"c",(function(){return V})),n.d(t,"W",(function(){return K})),n.d(t,"K",(function(){return Q})),n.d(t,"M",(function(){return X})),n.d(t,"N",(function(){return Y})),n.d(t,"p",(function(){return ee})),n.d(t,"P",(function(){return te}));var a=n(3),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},r=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},d=function(e){return e.replaceAll(" ","-").toLowerCase()},l=new a.a(!1),c=new a.a(!1),s=new a.a(!1),p=new a.a(!1),m=new a.a(""),u=new a.a(!1),x=new a.a(!1),h=new a.a(!1),g=new a.a(!1),f=new a.a(!1),w=new a.a(!1),b=new a.a(""),v=new a.a(!0),y=new a.a(!0),E=new a.a(!0),k=new a.a(!0),N=new a.a(!0),z=new a.a(!0),S=new a.a({}),O=new a.a(!1),I=0,j=new a.a(!1),A=new a.a(""),C=new a.a(""),T=new a.a(""),_=new a.a(""),$=new a.a(""),H=new a.a(""),M=new a.a(""),D=new a.a(""),Z=new a.a(!1),P=new a.a(!1),L=new a.a(!1),B=function(){setTimeout((function(){I++,O.next(!0)}),0)},U=function(){setTimeout((function(){I>0&&I--,0==I&&O.next(!1)}),0)},R=function(){return O.asObservable()},W=function(e){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},F=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},G=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},q=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},V=function(e){return/^[0-9]*$/.test(e)},K=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},Q=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},X=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},Y=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},ee=function(e){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(t.color=e.selectedColor),e.colorHex&&(t.colorHex=e.colorHex),e.colorZone&&(t.colorZone=e.colorZone),e.selectedConstruction&&(t.model=e.selectedConstruction),e.selectedWindowDesign&&(t.top=e.selectedWindowDesign),e.glazepattern&&(t.glazepattern=e.glazepattern),e.selectedHardware&&(t.hardware=e.selectedHardware),t},te=function(e,t,n){var a="",i=e.split(t);return i.forEach((function(e,t){"undefined"!==e&&e&&(a+=e,t!==i.length-1&&(a+=n))})),a}},19:function(e,t){e.exports=ReactDOM},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(22),i=n(0),r=n.n(i),o=n(4),d=o.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),l=o.default.button.withConfig({displayName:"styles__Button",componentId:"sc-1jt3i0i-1"})(['font-size:12px;font-family:"Open Sans";font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#fff;padding:12px 19px 12px 20px;border-radius:4px;background-color:#006166;box-shadow:none;border:none;transition:all ease 300ms;&:hover{transform:scale(1.1);background-color:#338084;color:#fff;}&:focus{transform:scale(1);box-shadow:none !important;background-color:#004347;}&:active{background-color:#006166 !important;box-shadow:none !important;transform:scale(1);border:none !important;}&.btn-inverse{color:#333333;background:#b2cfd1;&:hover{background:#8EB8BB;}&:focus{background:#8EA5A7;border:none;transform:scale(1);box-shadow:none !important;}&:active{background-color:#8EA5A7 !important;border:none !important;transform:scale(1.1);box-shadow:none !important;}}@media(min-width:1201px){font-size:16px;}.button-icon{vertical-align:top;padding-right:8px;}']),c=n(18),s=n(17),p=function(e){var t=e.label,n=void 0===t?"label":t,i=e.classStyle,o=void 0===i?"default":i,p=e.link,m=void 0!==p&&p,u=e.disabled,x=void 0!==u&&u,h=e.datatoggle,g=void 0===h?"":h,f=e.datatarget,w=void 0===f?"":f,b=e.linkHref,v=e.target,y=void 0===v?"_self":v,E=e.downloadLink,k=void 0!==E&&E,N=e.inverse,z=void 0!==N&&N,S=e.icon,O=void 0===S?"":S,I=e.iconAlt,j=void 0===I?"":I,A=e.dataItemName,C=void 0===A?"":A,T=e.id,_=void 0===T?"":T,$=e.type,H=void 0===$?"button":$,M=e.showDisabledMessage,D=void 0===M?"":M,Z=e.ariaLabel,P=void 0===Z?"":Z,L=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return r.a.createElement(d,null,r.a.createElement("div",{className:"".concat(x&&D&&"disabled-button-parent")},m?r.a.createElement("a",{href:b,download:k,target:y,"data-item-name":C,id:_,"aria-label":P},r.a.createElement(l,Object.assign({role:"presentation",disabled:x,classStyle:"".concat(o)},L,{type:H,className:z?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?r.a.createElement("div",{"data-toggle":g,"data-target":w},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:j}),r.a.createElement("span",null,n)):r.a.createElement("span",null,n))):r.a.createElement(l,Object.assign({disabled:x,classStyle:o,className:z?"btn-inverse btn btn-success":"btn btn-success",id:_,"data-item-name":C,type:H},L),r.a.createElement("span",null,n)),x&&D&&r.a.createElement(c.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(s.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},D))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},702:function(e,t,n){"use strict";n.r(t);var a=n(14),i=n(75);t.default=a.a.create({component:i.a,configuration:{tagname:"amarr-carousel",useShadow:!1},plugins:[]})},75:function(e,t,n){"use strict";var a=n(2),i=n(0),r=n.n(i),o=n(4),d=(n(53),n(54),o.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1k0270s-0"})(['.right-structure{.carousel-text{position:absolute;left:auto;right:10%;bottom:20%;}}.carousel{background:#f0f0f0;position:relative;}.slider-dots-center{display:flex;width:100%;justify-content:center;.carousel-indicators-center{display:flex;padding-left:0px !important;}}.slider-dots-wrapper{position:absolute;left:0;bottom:60px;z-index:15;.carousel-indicators{margin:0;position:static;list-style:none;padding-left:22px;li{width:10px;height:10px;border:1px solid #8d8d8d;background-color:#fff;border-radius:50%;box-sizing:border-box;cursor:pointer;&.active{background-color:#006166;}&:focus-visible{&:before,&:after{display:none;}}&:first-child{margin-left:0;}@media screen and (min-width:1200px){width:12px;height:12px;}}}.carousel-inner{@media screen and (min-width:576px and max-width:991px){margin-top:70px;}}}.bxslider-parent{position:relative;margin:0 auto;.bx-pager-item{display:none;}#proprev{position:absolute;left:120px;top:42%;width:72px;cursor:pointer;}#pronext{position:absolute;right:120px;top:42%;width:72px;cursor:pointer;}.bx-wrapper{border:none;box-shadow:none;margin:0 auto 20px;}}@media screen and (max-width:767px){.bxslider-parent{width:100%;#proprev,#pronext{display:none;}.bx-wrapper{margin-bottom:0;li{height:270px;}img{object-fit:cover;min-height:100%;}}}h2.carousel-heading.heading-style-1{font-size:24px;line-height:36px;}.slider-dots-wrapper{bottom:20px;}.carousel-text{button{padding:7px 14px;font-size:14px;}}}@media screen and (min-width:768px){.slider-dots-wrapper{bottom:30px;.carousel-indicators{padding-left:30px;}}.carousel-text{button{padding:9px 15px;font-size:12px;}}.bxslider-parent{#proprev,#pronext{width:42px;}#proprev{left:4%;}#pronext{right:4%;}.bx-wrapper{max-width:calc(100% - 124px)!important;li{width:calc((100vw - 60px - 164px) / 3)!important;height:250px;overflow:hidden;}img{object-fit:cover;min-height:100%;}}}}@media screen and (min-width:992px){.slider-dots-wrapper{bottom:40px;.carousel-indicators{padding-left:60px;}}h2.carousel-heading.heading-style-1{font-size:36px;line-height:54px;}.bxslider-parent{.bx-wrapper{li{height:300px;}}}}@media screen and (min-width:992px) and (max-width:1024px){.slider-dots-wrapper{.carousel-indicators{padding-left:40px;}}}@media screen and (min-width:1281px){.slider-dots-wrapper{.carousel-indicators{padding-left:80px;}}h2.carousel-heading.heading-style-1{font-size:48px;line-height:72px;}.carousel-text{button{padding:9px 18px;font-size:14px;}}.bxslider-parent{#proprev,#pronext{width:60px;}#proprev{left:4%;}#pronext{right:4%;}.bx-wrapper{max-width:calc(100% - 180px)!important;li{width:calc((100vw - 160px - 210px) / 3)!important;height:400px;}}}}@media screen and (min-width:1681px){.slider-dots-wrapper{bottom:60px;.carousel-indicators{padding-left:120px;}}.carousel-text{button{padding:10px 24px;font-size:18px;}}h2.carousel-heading.heading-style-1{font-size:60px;line-height:90px;}.bxslider-parent{.bx-wrapper{max-width:calc(100% - 204px)!important;li{width:calc((100vw - 240px - 204px) / 3)!important;height:540px;}}}}@media screen and (min-width:1921px){.bxslider-parent{.bx-wrapper{li{width:calc(1476px / 3)!important;}}}}.custom-slick-carousel{@media screen and (max-width:767px){margin-bottom:0px;}@media screen and (min-width:768px) and (max-width:991px){margin-bottom:18px;}@media screen and (min-width:992px) and (max-width:1024px){margin-bottom:16px;}@media screen and (min-width:1025px) and (max-width:1280px){margin-bottom:14px;}@media screen and (min-width:1281px) and (max-width:1680px){margin-bottom:8px;}@media screen and (min-width:1681px){margin-bottom:4px;}.slick-track{display:flex !important;gap:1px;@media screen and (min-width:768px){gap:16px;}}.slick-slider{max-width:calc(100% - 120px);@media screen and (min-width:1281px) and (max-width:1680px){max-width:calc(100% - 80px);}@media screen and (min-width:768px) and (max-width:1280px){max-width:calc(100% - 60px);}@media screen and (min-width:992px) and (max-width:1024px){max-width:calc(100% - 40px);}@media screen and (max-width:991px){max-width:calc(100% - 30px);}@media screen and (max-width:767px){max-width:calc(100% - 40px);}}.slick{&-prev{left:-40px;@media screen and (min-width:1681px){left:-60px}@media screen and (min-width:768px) and (max-width:1280px){left:-30px;}@media screen and (min-width:992px) and (max-width:1024px){left:-22px;}@media screen and (max-width:991px){left:-16px;}@media screen and (max-width:767px){left:-20px;}&:before{background-image:url(/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/arrow-left-carousel.svg);}}&-next{right:-40px;@media screen and (min-width:1681px){right:-60px}@media screen and (min-width:768px) and (max-width:1280px){right:-30px;}@media screen and (min-width:992px) and (max-width:1024px){right:-22px;}@media screen and (max-width:991px){right:-16px;}@media screen and (max-width:767px){right:-20px;}&:before{background-image:url(/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/arrow-right-carousel.svg);}}&-prev,&-next{background:#fff;border-radius:50%;z-index:99;&:before{background-size:contain;display:inline-block;width:40px;height:40px;content:"";background-repeat:no-repeat;@media (max-width:990px){width:30px;height:30px;}@media (min-width:1920px){width:60px;height:60px;}}}}}@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0){@media{@media screen and (min-width:1281px){.home-carousel{max-height:68vh;.carousel-inner{max-height:68vh;}}}}}@media screen and (min-width:768px) and (max-width:1280px){.carousel-text{width:40%;}}.carousel-play,.carousel-pause{height:20px;border:solid 2px #fff;border-radius:50%;margin-left:15px;margin-top:-4px;cursor:pointer;}.slider-dots-wrapper{display:flex;align-items:center;}'])),l=n(5),c=o.default.section.withConfig({displayName:"styles__Content",componentId:"sc-18r9b02-0"})(['.top-img{width:100%;@media screen and (min-width:1921px){span{display:block !important;width:100%;}}@media screen and (max-width:768px){span{display:block !important;}}max-height:400px;@media screen and (min-width:1681px){max-height:650px;}}position:relative;.carousel-text{position:absolute;bottom:26%;width:70%;@media screen and (min-width:768px) and (max-width:991px){width:70%;}@media screen and (min-width:992px){width:40%;}@media screen and (max-width:767px){bottom:48px;}}.heading-style-1{font-family:"Open Sans";font-weight:bold;color:#fff;margin-bottom:0px;}.text-style-1{color:#fff;@media screen and (min-width:1200px){}p,span{color:#ffff !important;}}@media screen and (min-width:769px){.img-responsive{height:100%;}}.text-padding{padding-top:18px;margin-bottom:36px;@media screen and (max-width:1680px){padding-top:14px;margin-bottom:32px;}@media screen and (max-width:1280px){padding-top:14px;margin-bottom:26px;}@media screen and (min-width:768px) and (max-width:991px){padding-top:9px;margin-bottom:18px;}}.gradient-overlay{content:"";position:absolute;top:0;background-image:linear-gradient(to right,#000000,rgba(0,0,0,0));width:100%;opacity:0.43;height:100%;z-index:1;}.text-section{z-index:3;}']),s=n(1),p=n(41),m=function(e){var t,n=e.item;return r.a.createElement(c,null,r.a.createElement("div",{className:"row m-0"},r.a.createElement("div",{className:"top-img p-0"},(null===n||void 0===n||null===(t=n.mobileImage)||void 0===t?void 0:t.url)?r.a.createElement(p.a,{className:"img-responsive",src:n.mobileImage.url,fallback:"",alt:n.image.altText,sources:[{source:n.mobileImage.url,media:"(min-width: 320px)"},{source:n.image.url,media:"(min-width: 768px)"}]}):r.a.createElement(p.a,{className:"img-responsive",src:n.image.url,fallback:"",alt:n.image.altText,sources:[{source:n.image.url,media:"(min-width: 320px)"},{source:n.image.url,media:"(min-width: 768px)"}]})),r.a.createElement("div",{className:"gradient-overlay"}),r.a.createElement("div",{className:"text-section"},r.a.createElement("div",{className:"container"},r.a.createElement("div",{className:"d-flex align-items-center p-0"},r.a.createElement("div",{className:"carousel-text"},"h1"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h1",{className:"heading-style-1"},n.header.text),"h2"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h2",{className:"heading-style-1 carousel-heading mb-0"},n.header.text),"h3"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h3",{className:"heading-style-1"},n.header.text),"h4"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h4",{className:"heading-style-1"},n.header.text),"h5"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h5",{className:"heading-style-1"},n.header.text),"h6"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("h6",{className:"heading-style-1"},n.header.text),"capitalize"===n.headingStyle&&n.header.text&&""!==n.header.text&&r.a.createElement("div",{className:"heading-style-1 text-style-uppercase"},n.header.text),r.a.createElement("div",{className:"text-padding text-style-1",dangerouslySetInnerHTML:{__html:n.body.text}}),n.cta&&n.cta.label&&n.cta.linkAction&&r.a.createElement(l.a,{label:Object(s.i)(n.cta.label),link:!0,linkHref:n.cta.url,target:n.cta.linkAction})))))))},u=n(38),x=n.n(u),h=function(e){var t=e.carouselData,n=Object(s.g)(t),o=Object(i.useState)(!0),l=Object(a.a)(o,2),c=l[0],p=l[1],u={infinite:!0,slidesToShow:3,slidesToScroll:3,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,initialSlide:0,infinite:!0}}]};Object(i.useEffect)((function(){if("image-only"!=n.variation){var e=document.createElement("script");e.id="carousel-script",e.innerHTML='$(".home-carousel").carousel({ interval: 6000 })',document.body.appendChild(e)}$(".carousel-indicators")&&$(".carousel-indicators .active").attr("tabindex","0")}),[]);return r.a.createElement(d,null,r.a.createElement("div",{className:"large-screen-container ".concat("image-only"===n.variation?"container":"container-fluid p-0")},r.a.createElement("div",{className:"".concat("image-only"!==n.variation&&"row mr-0 ml-0 align-items-center")},"image-only"===n.variation?r.a.createElement("section",{className:"custom-slick-carousel"},r.a.createElement(x.a,u,n.carouselImageItems&&n.carouselImageItems.length>0&&n.carouselImageItems.map((function(e,t){var n,a;return r.a.createElement("div",{key:t,className:"slick-slider-container","aria-label":(null===e||void 0===e||null===(n=e.image)||void 0===n?void 0:n.altText)?e.image.altText:""},r.a.createElement("img",{loading:"lazy",src:e.image.url,key:t,alt:(null===e||void 0===e||null===(a=e.image)||void 0===a?void 0:a.altText)?e.image.altText:""}))})))):r.a.createElement("div",{id:"home-carousel",className:"home-carousel carousel slide w-100","data-ride":"carousel"},r.a.createElement("div",{className:"".concat("center"===n.alignment&&"slider-dots-center"," slider-dots-wrapper")},r.a.createElement("ol",{className:"".concat("center"===n.alignment&&"carousel-indicators-center"," carousel-indicators"),role:"list","aria-label":"Slides"},n.carouselItems&&n.carouselItems.length>1&&n.carouselItems.map((function(e,t){return r.a.createElement("li",{key:t,"data-target":"#home-carousel","data-slide-to":t,className:0===t?"active":"","aria-label":"Slide".concat(t),"aria-roledescription":"slide"})}))),window.location.href.indexOf(".garagedoor.com")>-1&&n.carouselItems&&n.carouselItems.length>1&&r.a.createElement("span",null,r.a.createElement("a",{onClick:function(){var e,t=document.getElementById("carousel-script");(t.parentNode.removeChild(t),c)?((e=document.createElement("script")).id="carousel-script",e.innerHTML="$(\".home-carousel\").carousel('pause')",document.body.appendChild(e)):((e=document.createElement("script")).id="carousel-script",e.innerHTML='$(".home-carousel").carousel({ interval: 6000 })',document.body.appendChild(e));p(!c)}},c?r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/pause.png",alt:"play-pause-icon",role:"presentation",className:"carousel-play"}):r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/play.png",alt:"play-pause-icon",role:"presentation",className:"carousel-pause"})))),r.a.createElement("div",{className:"right"===n.textAlignment?"right-structure carousel-inner":"carousel-inner"},n.carouselItems&&n.carouselItems.length>0&&n.carouselItems.map((function(e,t){return r.a.createElement("div",{key:t,className:0===t?"carousel-item active":"carousel-item"},r.a.createElement(m,{key:t,item:e}))})))))))};h.defaultProps={config:"",theme:"",carouselData:""};t.a=h}});
|
|
1
|
+
!function(e){function n(n){for(var a,o,l=n[0],d=n[1],c=n[2],p=0,m=[];p<l.length;p++)o=l[p],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);for(s&&s(n);m.length;)m.shift()();return r.push.apply(r,c||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,l=1;l<t.length;l++){var d=t[l];0!==i[d]&&(a=!1)}a&&(r.splice(n--,1),e=o(o.s=t[0]))}return e}var a={},i={6:0},r=[];function o(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=e,o.c=a,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)o.d(t,a,function(n){return e[n]}.bind(null,a));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/";var l=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],d=l.push.bind(l);l.push=n,l=l.slice();for(var c=0;c<l.length;c++)n(l[c]);var s=d;r.push([801,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return i}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920},i={mobileAndUpMin:"(min-width: ".concat(a.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(a.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(a.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(a.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(a.largeMobileAndUp-2,"px)"),largeMobileAndUp2:"(min-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(a.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(a.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(a.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(a.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(a.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(a.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(a.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(a.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(a.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(a.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(a.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(a.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(a.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(a.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(a.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(a.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(a.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(a.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(a.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(a.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(a.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(a.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(a.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(a.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(a.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(a.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(a.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(a.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(a.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(a.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(a.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(a.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(a.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(a.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(a.maxWidthAndUp+1,"px)")}},10:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var a=t(0),i=t.n(a),r=t(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(e){return e.padding?"0 var(--grid-margin);":0}),(function(e){e.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),o=function(e){var n=e.className,t=e.children,a=e.maxWidth,o=void 0===a?1520:a,l=e.padding,d=void 0===l||l;return i.a.createElement(r,{className:n,maxWidth:o,padding:d},t)}},2:function(e,n,t){"use strict";t.d(n,"g",(function(){return i})),t.d(n,"V",(function(){return r})),t.d(n,"i",(function(){return o})),t.d(n,"D",(function(){return l})),t.d(n,"G",(function(){return d})),t.d(n,"v",(function(){return c})),t.d(n,"B",(function(){return s})),t.d(n,"o",(function(){return p})),t.d(n,"r",(function(){return m})),t.d(n,"I",(function(){return u})),t.d(n,"H",(function(){return x})),t.d(n,"Q",(function(){return b})),t.d(n,"E",(function(){return h})),t.d(n,"u",(function(){return g})),t.d(n,"h",(function(){return f})),t.d(n,"t",(function(){return v})),t.d(n,"y",(function(){return w})),t.d(n,"w",(function(){return A})),t.d(n,"C",(function(){return k})),t.d(n,"s",(function(){return U})),t.d(n,"R",(function(){return y})),t.d(n,"q",(function(){return M})),t.d(n,"J",(function(){return D})),t.d(n,"F",(function(){return N})),t.d(n,"S",(function(){return z})),t.d(n,"m",(function(){return W})),t.d(n,"j",(function(){return I})),t.d(n,"n",(function(){return S})),t.d(n,"k",(function(){return O})),t.d(n,"l",(function(){return _})),t.d(n,"z",(function(){return T})),t.d(n,"L",(function(){return j})),t.d(n,"x",(function(){return C})),t.d(n,"T",(function(){return L})),t.d(n,"U",(function(){return B})),t.d(n,"b",(function(){return H})),t.d(n,"O",(function(){return $})),t.d(n,"A",(function(){return Z})),t.d(n,"a",(function(){return R})),t.d(n,"d",(function(){return V})),t.d(n,"f",(function(){return F})),t.d(n,"e",(function(){return J})),t.d(n,"X",(function(){return G})),t.d(n,"c",(function(){return q})),t.d(n,"W",(function(){return K})),t.d(n,"K",(function(){return Q})),t.d(n,"M",(function(){return X})),t.d(n,"N",(function(){return Y})),t.d(n,"p",(function(){return ee})),t.d(n,"P",(function(){return ne}));var a=t(4),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},r=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},l=function(e){return e.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),c=new a.a(!1),s=new a.a(!1),p=new a.a(!1),m=new a.a(""),u=new a.a(!1),x=new a.a(!1),b=new a.a(!1),h=new a.a(!1),g=new a.a(!1),f=new a.a(!1),v=new a.a(""),w=new a.a(!0),A=new a.a(!0),k=new a.a(!0),U=new a.a(!0),y=new a.a(!0),M=new a.a(!0),D=new a.a({}),E=new a.a(!1),P=0,N=new a.a(!1),z=new a.a(""),W=new a.a(""),I=new a.a(""),S=new a.a(""),O=new a.a(""),_=new a.a(""),T=new a.a(""),j=new a.a(""),C=new a.a(!1),L=new a.a(!1),B=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){P++,E.next(!0)}),0)}),$=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},Z=function(){return E.asObservable()},R=function(e){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},V=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},F=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},J=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},G=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},q=function(e){return/^[0-9]*$/.test(e)},K=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},Q=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},X=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},Y=function(e,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)},ee=function(e){var n={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(n.color=e.selectedColor),e.colorHex&&(n.colorHex=e.colorHex),e.colorZone&&(n.colorZone=e.colorZone),e.selectedConstruction&&(n.model=e.selectedConstruction),e.selectedWindowDesign&&(n.top=e.selectedWindowDesign),e.glazepattern&&(n.glazepattern=e.glazepattern),e.selectedHardware&&(n.hardware=e.selectedHardware),n},ne=function(e,n,t){var a="",i=e.split(n);return i.forEach((function(e,n){"undefined"!==e&&e&&(a+=e,n!==i.length-1&&(a+=t))})),a}},26:function(e,n){e.exports=ReactDOM},48:function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var a=t(3),i=t(0),r=t.n(i),o=t(5),l=t(1),d=o.default.section.withConfig({displayName:"styles__Content",componentId:"sc-13lfbb6-0"})([".hide-icon{.circle{opacity:0 !important;}img{display:none;}}.play-pause-image:hover{.circle{background-color:var(--play-pause-bg-color);border-radius:50px;opacity:1;z-index:1;display:inline;}img{display:inline;}}.play-pause-image.pause:hover{.circle{background-color:var(--play-pause-bg-color-2);opacity:0.800000012 !important;}img{display:inline;}}.play-pause-image{.circle{background-color:var(--play-pause-bg-color-2);opacity:0.5;border-radius:50px;margin:auto;width:96px;height:96px;display:flex;align-items:var(--text-center);justify-content:var(--text-center);position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);}.play-pause-icon{position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);z-index:999;}@media screen and "," and ","{.circle,.play-pause-icon{width:80px;height:80px;top:calc(50% - 22px);left:calc(50% - 40px);}}@media screen and ","{.circle,.play-pause-icon{width:70px;height:70px;top:calc(50% - 10px);left:calc(50% - 35px);}}@media screen and "," and ","{.circle,.play-pause-icon{width:50px;height:50px;top:50%;left:calc(50% - 25px);}}@media screen and "," and ","{.circle,.play-pause-icon{width:40px;height:40px;top:calc(50% + 5px);left:calc(50% - 20px);}}}"],l.b.mediumDesktopMin,l.b.mediumDesktopAndUp3Max,l.b.smallDesktopAndUp2Max,l.b.tabletLandscapeAndUp,l.b.desktopAndUpMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax),c=function(e){var n=e.item,t=e.showControls,o=Object(i.useRef)(null),l=Object(i.useState)(!1),c=Object(a.a)(l,2),s=c[0],p=c[1],m=Object(i.useState)(!1),u=Object(a.a)(m,2),x=u[0],b=u[1],h=function(){setTimeout((function(){b(!0)}),1e3)};return r.a.createElement(d,null,!t&&r.a.createElement("video",{ref:o,preload:"none"},r.a.createElement("source",{src:n.video.url})),t&&r.a.createElement("video",{preload:"none",ref:o,onPlay:function(){p(!0),h(),o.current.controls=!0},onPause:function(){b(!1),p(!1),o.current.controls=!1},muted:!0},r.a.createElement("source",{src:n.video.url})),r.a.createElement("span",null,r.a.createElement("a",{onClick:function(){var e,n;s?null===(e=o.current)||void 0===e||e.pause():(null===(n=o.current)||void 0===n||n.play(),h());p(!s),b(!1)},className:"".concat(s&&"pause"," ").concat(x&&"hide-icon"," play-pause-image")},r.a.createElement("div",{className:"circle"}),r.a.createElement("img",{loading:"lazy",src:s?"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_pause.svg":"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_play.svg",alt:s?"Pause Icon":"Play Icon",className:"play-pause-icon"}))))}},57:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var a=t(0),i=t.n(a),r=t(5).default.div.withConfig({displayName:"styles__Brackets",componentId:"sc-675t4x-0"})(["#image_overlay_div{position:absolute;z-index:999;inset:",";display:block;}#image_wrapper_div{position:relative;&:hover{#hover-icon-top{top:-5%;right:-5%;}#hover-icon-bottom{left:-5%;bottom:-5%;}}}#hover-icon-top #hover-icon-bottom{height:3.125rem;width:3.125rem;border-right-width:1.25rem;border-top-width:1.25rem;}#hover-icon-top{height:3.125rem;width:3.125rem;border-width:1.25rem 1.25rem 0px 0px;position:absolute;right:0px;top:0px;border-style:solid;border-color:#0f96ea;transition-duration:0.3s;transition-timing-function:ease-in-out;transition-property:right,top;}#hover-icon-bottom{height:3.125rem;width:3.125rem;border-width:0px 0px 1.25rem 1.25rem;position:absolute;bottom:0px;left:0px;border-style:solid;border-color:#0f96ea;transition-duration:0.3s;transition-timing-function:ease-in-out;transition-property:left,bottom;}"],(function(e){var n=e.bracketsAlignment;return n?"".concat(n.top,"% ").concat(n.right,"% ").concat(n.bottom,"% ").concat(n.left,"%"):"0% 15% 0% 15%"})),o=function(e){var n=e.children,t=e.bracketsAlignment,a=e.showHide;return i.a.createElement(r,{bracketsAlignment:t},i.a.createElement("div",{id:"image_wrapper_div"},i.a.createElement("div",{id:"image_overlay_div",style:{display:a?"":"none"}},i.a.createElement("div",{id:"hover-icon-top"}),i.a.createElement("div",{id:"hover-icon-bottom"})),n))};n.b=o},7:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var a=t(30),i=t(0),r=t.n(i),o=t(5),l=t(1),d=o.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),c=o.default.button.withConfig({displayName:"styles__Button",componentId:"sc-1jt3i0i-1"})(["font-size:var(--font-size-s1);font-family:var(--font-family-body);font-weight:var(--font-weight-semi-bold);font-stretch:var(--font-normal);font-style:var(--font-normal);line-height:1.5;letter-spacing:var(--font-normal);text-align:var(--text-center);color:var(--bg-main);padding:12px 19px 12px 20px;border-radius:var(--border-radius);background-color:var(--accent);box-shadow:none;border:none;transition:all ease 300ms;&:hover{transform:scale(1.1);background-color:var(--accent-hover);color:var(--bg-main);}&:focus{transform:scale(1);box-shadow:none !important;background-color:var(--accent-focus);}&:active{background-color:var(--accent-active) !important;box-shadow:none !important;transform:scale(1);border:none !important;}&.btn-inverse{color:var(--text-color);background:var(--accent-inverse);&:hover{background:var(--accent-inverse-hover);}&:focus{background:var(--accent-inverse-focus);border:none;transform:scale(1);box-shadow:none !important;}&:active{background-color:var(--accent-inverse-active) !important;border:none !important;transform:scale(1.1);box-shadow:none !important;}}@media ","{font-size:var(--font-size-m1);}.button-icon{vertical-align:top;padding-right:8px;}"],l.b.smallDesktop2Min),s=t(25),p=t(24),m=function(e){var n=e.label,t=void 0===n?"label":n,i=e.classStyle,o=void 0===i?"default":i,l=e.link,m=void 0!==l&&l,u=e.disabled,x=void 0!==u&&u,b=e.datatoggle,h=void 0===b?"":b,g=e.datatarget,f=void 0===g?"":g,v=e.linkHref,w=e.target,A=void 0===w?"_self":w,k=e.downloadLink,U=void 0!==k&&k,y=e.inverse,M=void 0!==y&&y,D=e.icon,E=void 0===D?"":D,P=e.iconAlt,N=void 0===P?"":P,z=e.dataItemName,W=void 0===z?"":z,I=e.id,S=void 0===I?"":I,O=e.type,_=void 0===O?"button":O,T=e.showDisabledMessage,j=void 0===T?"":T,C=e.ariaLabel,L=void 0===C?"":C,B=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return r.a.createElement(d,null,r.a.createElement("div",{className:"".concat(x&&j&&"disabled-button-parent")},m?r.a.createElement("a",{href:v,download:U,target:A,"data-item-name":W,id:S,"aria-label":L},r.a.createElement(c,Object.assign({role:"presentation",disabled:x,classStyle:"".concat(o)},B,{type:_,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=E?r.a.createElement("div",{"data-toggle":h,"data-target":f},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:E,alt:N}),r.a.createElement("span",null,t)):r.a.createElement("span",null,t))):r.a.createElement(c,Object.assign({disabled:x,classStyle:o,className:M?"btn-inverse btn btn-success":"btn btn-success",id:S,"data-item-name":W,type:_},B),r.a.createElement("span",null,t)),x&&j&&r.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(p.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},j))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},709:function(e,n,t){"use strict";t.r(n);var a=t(21),i=t(81);n.default=a.a.create({component:i.a,configuration:{tagname:"amarr-carousel",useShadow:!1},plugins:[]})},8:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var a=t(5),i=t(0),r=t.n(i),o=function(e){var n=e.setter,t=n.componentThemes,i=n.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return t.theme1;var e=i.match(/\d+/g).map(Number),n=Object.keys(t).find((function(n){return!(!Array.isArray(e)||1!==e.length)&&(n.includes(e[0])&&t[n])}));return n?t["".concat(n)]:t.theme1}},e.children)}},81:function(e,n,t){"use strict";var a=t(3),i=t(0),r=t.n(i),o=t(7),l=t(5),d=t(1),c=l.default.section.withConfig({displayName:"styles__Content",componentId:"sc-18r9b02-0"})([".top-img{width:100%;video{height:400px;width:-webkit-fill-available;object-fit:cover;}@media screen and ","{span{display:block !important;width:100%;}}@media screen and ","{span{display:block !important;}}max-height:400px;@media screen and ","{max-height:650px;}}position:relative;.carousel-text{position:absolute;bottom:26%;width:70%;@media screen and "," and ","{width:70%;}@media screen and ","{width:40%;}@media screen and ","{bottom:48px;}}.heading-style-1{font-family:var(--font-family-heading);font-weight:bold;color:var(--bg-main);margin-bottom:0px;}.text-style-1{color:var(--bg-main);@media screen and ","{}p,span{color:var(--bg-main);!important;}}@media screen and ","{.img-responsive{height:100%;}}.text-padding{padding-top:18px;margin-bottom:36px;}@media screen and ","{.text-padding{padding-top:14px;margin-bottom:32px;}}@media screen and ","{.text-padding{padding-top:14px;margin-bottom:26px;}}@media screen and "," and ",'{.text-padding{padding-top:9px;margin-bottom:18px;}}.gradient-overlay{content:"";position:absolute;top:0;background-image:linear-gradient(to right,var(--black),transparent);width:100%;opacity:0.43;height:100%;z-index:1;}.text-section{z-index:3;}'],d.b.wrapperMaxWidth2,d.b.tabletPortraitAndUpMax,d.b.largeDesktopMin,d.b.tabletPortraitAndUp,d.b.tabletPortraitMax,d.b.tabletLandscapeAndUp,d.b.mobileMax,d.b.smallDesktopAndUp,d.b.largeMobileMin,d.b.mediumDesktopAndUp3Max,d.b.smallDesktopAndUp2Max,d.b.tabletPortraitAndUp,d.b.tabletPortraitMax),s=t(2),p=t(43),m=t(48),u=t(57),x=function(e){var n,t,a,i,l,d,x,b,h,g,f,v,w,A,k=e.item;return r.a.createElement(c,null,r.a.createElement("div",{className:"row m-0"},r.a.createElement("div",{className:"top-img p-0"},(null===k||void 0===k?void 0:k.mobileImage)?(null===k||void 0===k||null===(n=k.mobileImage)||void 0===n?void 0:n.url)?k.imageWithBracketsAlignment&&k.imageWithBracketsAlignment.bracketsAlignment?r.a.createElement(r.a.Fragment,null,r.a.createElement(u.b,{bracketsAlignment:{top:null===k||void 0===k||null===(t=k.imageWithBracketsAlignment)||void 0===t?void 0:t.bracketAlignmentTop,right:null===k||void 0===k||null===(a=k.imageWithBracketsAlignment)||void 0===a?void 0:a.bracketAlignmentRight,bottom:null===k||void 0===k||null===(i=k.imageWithBracketsAlignment)||void 0===i?void 0:i.bracketAlignmentBottom,left:null===k||void 0===k||null===(l=k.imageWithBracketsAlignment)||void 0===l?void 0:l.bracketAlignmentLeft},showHide:null===k||void 0===k||null===(d=k.imageWithBracketsAlignment)||void 0===d?void 0:d.bracketsAlignment},r.a.createElement(p.a,{className:"img-responsive",src:k.mobileImage.url,fallback:"",alt:k.image.altText,sources:[{source:k.mobileImage.url,media:"(min-width: 320px)"},{source:k.image.url,media:"(min-width: 768px)"}]})," "),r.a.createElement("div",{className:"gradient-overlay"})):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"img-responsive",src:k.mobileImage.url,fallback:"",alt:k.image.altText,sources:[{source:k.mobileImage.url,media:"(min-width: 320px)"},{source:k.image.url,media:"(min-width: 768px)"}]}),r.a.createElement("div",{className:"gradient-overlay"})):k.imageWithBracketsAlignment&&k.imageWithBracketsAlignment.bracketsAlignment?r.a.createElement(r.a.Fragment,null,r.a.createElement(u.b,{bracketsAlignment:{top:null===k||void 0===k||null===(x=k.imageWithBracketsAlignment)||void 0===x?void 0:x.bracketAlignmentTop,right:null===k||void 0===k||null===(b=k.imageWithBracketsAlignment)||void 0===b?void 0:b.bracketAlignmentRight,bottom:null===k||void 0===k||null===(h=k.imageWithBracketsAlignment)||void 0===h?void 0:h.bracketAlignmentBottom,left:null===k||void 0===k||null===(g=k.imageWithBracketsAlignment)||void 0===g?void 0:g.bracketAlignmentLeft},showHide:null===k||void 0===k||null===(f=k.imageWithBracketsAlignment)||void 0===f?void 0:f.bracketsAlignment},r.a.createElement(p.a,{className:"img-responsive",src:k.image.url,fallback:"",alt:k.image.altText,sources:[{source:k.image.url,media:"(min-width: 320px)"},{source:k.image.url,media:"(min-width: 768px)"}]})),r.a.createElement("div",{className:"gradient-overlay"})):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"img-responsive",src:k.image.url,fallback:"",alt:k.image.altText,sources:[{source:k.image.url,media:"(min-width: 320px)"},{source:k.image.url,media:"(min-width: 768px)"}]}),r.a.createElement("div",{className:"gradient-overlay"})):(null===k||void 0===k||null===(v=k.mobileVideo)||void 0===v?void 0:v.mobileVideoUrl)?r.a.createElement(m.a,{item:{video:{url:null===k||void 0===k||null===(w=k.mobileVideo)||void 0===w?void 0:w.mobileVideoUrl}},showControls:!0}):r.a.createElement(m.a,{item:{video:{url:null===k||void 0===k||null===(A=k.video)||void 0===A?void 0:A.desktopVideoUrl}},showControls:!0})),r.a.createElement("div",{className:"text-section"},r.a.createElement("div",{className:"container inner-container"},r.a.createElement("div",{className:"d-flex align-items-center p-0"},r.a.createElement("div",{className:"carousel-text"},"h1"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h1",{className:"heading-style-1"},k.header.text),"h2"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h2",{className:"heading-style-1 carousel-heading mb-0"},k.header.text),"h3"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h3",{className:"heading-style-1"},k.header.text),"h4"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h4",{className:"heading-style-1"},k.header.text),"h5"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h5",{className:"heading-style-1"},k.header.text),"h6"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("h6",{className:"heading-style-1"},k.header.text),"capitalize"===k.headingStyle&&k.header.text&&""!==k.header.text&&r.a.createElement("div",{className:"heading-style-1 text-style-uppercase"},k.header.text),r.a.createElement("div",{className:"text-padding text-style-1",dangerouslySetInnerHTML:{__html:k.body.text}}),k.cta&&k.cta.label&&k.cta.linkAction&&r.a.createElement(o.a,{label:Object(s.i)(k.cta.label),link:!0,linkHref:k.cta.url,target:k.cta.linkAction})))))))},b=t(47),h=t.n(b),g=t(12),f=t.n(g),v={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},w=t(11);function A(){var e=Object(w.a)(["\n .right-structure {\n .carousel-text {\n position: absolute;\n left: auto;\n right: 10%;\n bottom: 20%;\n }\n }\n .carousel {\n background: var(--grey);\n position: relative;\n }\n .slider-dots-center {\n display: flex;\n width: 100%;\n justify-content: center;\n .carousel-indicators-center {\n display: flex;\n padding-left: 0px !important;\n }\n }\n .slider-dots-wrapper {\n position: absolute;\n left: 0;\n bottom: 60px;\n z-index: 15;\n .carousel-indicators {\n margin: 0;\n position: static;\n list-style: none;\n padding-left: 22px;\n li {\n width: 10px;\n height: 10px;\n border: 1px solid var(--carousel-border-color);\n background-color: var(--carousel-bg-color);\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n &.active {\n background-color: var(--accent);\n }\n &:focus-visible {\n &:before,\n &:after{\n display: none;\n }\n }\n &:first-child {\n margin-left: 0;\n }\n @media screen and "," {\n width: 12px;\n height: 12px;\n }\n }\n }\n .carousel-inner {\n @media screen and "," and "," {\n margin-top: 70px;\n }\n }\n }\n\n .bxslider-parent {\n position: relative;\n margin: 0 auto;\n .bx-pager-item {\n display: none;\n }\n #proprev {\n position: absolute;\n left: 120px;\n top: 42%;\n width: 72px;\n cursor: pointer;\n }\n #pronext {\n position: absolute;\n right: 120px;\n top: 42%;\n width: 72px;\n cursor: pointer;\n }\n .bx-wrapper {\n border: none;\n box-shadow: none;\n margin: 0 auto 20px;\n }\n }\n\n @media screen and "," {\n .bxslider-parent {\n width: 100%;\n #proprev,\n #pronext {\n display: none;\n }\n .bx-wrapper {\n margin-bottom: 0;\n li {\n height: 270px;\n }\n img {\n object-fit: cover;\n min-height: 100%;\n }\n }\n }\n h2.carousel-heading.heading-style-1 {\n font-size: 24px;\n line-height: 36px;\n }\n .slider-dots-wrapper {\n bottom: 20px;\n }\n .carousel-text {\n button {\n padding: 7px 14px;\n font-size: 14px;\n }\n }\n }\n @media screen and "," {\n .slider-dots-wrapper {\n bottom: 30px;\n .carousel-indicators {\n padding-left: 30px;\n }\n }\n .carousel-text {\n button {\n padding: 9px 15px;\n font-size: 12px;\n }\n }\n .bxslider-parent {\n #proprev,\n #pronext {\n width: 42px;\n }\n #proprev {\n left: 4%;\n }\n #pronext {\n right: 4%;\n }\n .bx-wrapper {\n max-width: calc(100% - 124px) !important;\n li {\n width: calc((100vw - 60px - 164px) / 3) !important;\n height: 250px;\n overflow: hidden;\n }\n img {\n object-fit: cover;\n min-height: 100%;\n }\n }\n }\n }\n @media screen and "," {\n .slider-dots-wrapper {\n bottom: 40px;\n .carousel-indicators {\n padding-left: 60px;\n }\n }\n h2.carousel-heading.heading-style-1 {\n font-size: 36px;\n line-height: 54px;\n }\n .bxslider-parent {\n .bx-wrapper {\n li {\n height: 300px;\n }\n }\n }\n }\n @media screen and "," and "," {\n .slider-dots-wrapper {\n .carousel-indicators {\n padding-left: 40px;\n }\n }\n }\n @media screen and "," {\n .slider-dots-wrapper {\n .carousel-indicators {\n padding-left: 80px;\n }\n }\n h2.carousel-heading.heading-style-1 {\n font-size: 48px;\n line-height: 72px;\n }\n .carousel-text {\n button {\n padding: 9px 18px;\n font-size: 14px;\n }\n }\n .bxslider-parent {\n #proprev,\n #pronext {\n width: 60px;\n }\n #proprev {\n left: 4%;\n }\n #pronext {\n right: 4%;\n }\n .bx-wrapper {\n max-width: calc(100% - 180px) !important;\n li {\n width: calc((100vw - 160px - 210px) / 3) !important;\n height: 400px;\n }\n }\n }\n }\n @media screen and "," {\n .slider-dots-wrapper {\n bottom: 60px;\n .carousel-indicators {\n padding-left: 120px;\n }\n }\n .carousel-text {\n button {\n padding: 10px 24px;\n font-size: 18px;\n }\n }\n h2.carousel-heading.heading-style-1 {\n font-size: 60px;\n line-height: 90px;\n }\n .bxslider-parent {\n .bx-wrapper {\n max-width: calc(100% - 204px) !important;\n li {\n width: calc((100vw - 240px - 204px) / 3) !important;\n height: 540px;\n }\n }\n }\n }\n @media screen and "," {\n .bxslider-parent {\n .bx-wrapper {\n li {\n width: calc(1476px / 3) !important;\n }\n }\n }\n }\n .custom-slick-carousel {\n @media screen and "," {\n margin-bottom: 0px;\n }\n @media screen and "," and "," {\n margin-bottom: 18px;\n }\n @media screen and "," and "," {\n margin-bottom: 16px;\n }\n @media screen and (min-width: 1025px) and "," {\n margin-bottom: 14px;\n }\n @media screen and "," and "," {\n margin-bottom: 8px;\n }\n @media screen and "," {\n margin-bottom: 4px;\n }\n .slick-track {\n display: flex !important;\n gap: 1px;\n @media screen and "," {\n gap: 16px;\n }\n }\n .slick-slider {\n max-width: calc(100% - 120px);\n @media screen and "," and "," {\n max-width: calc(100% - 80px);\n }\n @media screen and "," and "," {\n max-width: calc(100% - 60px);\n }\n @media screen and "," and "," {\n max-width: calc(100% - 40px);\n }\n @media screen and "," {\n max-width: calc(100% - 30px);\n }\n @media screen and "," {\n max-width: calc(100% - 40px);\n }\n }\n .slick {\n &-prev {\n left: -40px;\n @media screen and "," {\n left: -60px;\n }\n @media screen and "," and "," {\n left: -30px;\n }\n @media screen and "," and "," {\n left: -22px;\n }\n @media screen and "," {\n left: -16px;\n }\n @media screen and "," {\n left: -20px;\n }\n &:before {\n background-image: url(/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/arrow-left-carousel.svg);\n }\n }\n &-next {\n right: -40px;\n @media screen and "," {\n right: -60px;\n }\n @media screen and "," and "," {\n right: -30px;\n }\n @media screen and "," and "," {\n right: -22px;\n }\n @media screen and "," {\n right: -16px;\n }\n @media screen and ",' {\n right: -20px;\n }\n &:before {\n background-image: url(/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/arrow-right-carousel.svg);\n }\n }\n\n &-prev,\n &-next {\n background: var(--bg-main);\n border-radius: 50%;\n z-index: 99;\n &:before {\n background-size: contain;\n display: inline-block;\n width: 40px;\n height: 40px;\n content: "";\n background-repeat: no-repeat;\n @media '," {\n width: 30px;\n height: 30px;\n }\n\n @media "," {\n width: 60px;\n height: 60px;\n }\n }\n }\n }\n }\n\n //Safari specific fixes starts\n @media screen and (min-color-index: 0) and(-webkit-min-device-pixel-ratio:0) {\n @media {\n @media screen and "," {\n .home-carousel {\n max-height: 68vh;\n .carousel-inner {\n max-height: 68vh;\n }\n }\n }\n }\n }\n // Safari specific fixes ends\n // Client specific changes starts\n @media screen and "," and "," {\n .carousel-text {\n width: 40%;\n }\n }\n\n .carousel-play, .carousel-pause {\n height: 20px;\n border: solid 2px #fff;\n border-radius: 50%;\n margin-left: 15px;\n margin-top: -4px;\n cursor: pointer;\n }\n .slider-dots-wrapper {\n display: flex;\n align-items: center;\n }\n "]);return A=function(){return e},e}var k=l.default.div.withConfig({displayName:"styles__Content",componentId:"baytek-0"})(["",""],(function(e){var n;(null===(n=e.gradients)||void 0===n?void 0:n.visible)?e.theme.gradient:e.theme;return Object(l.css)(A(),d.b.smallDesktopAndUp,d.b.largeMobileAndUp2,d.b.tabletPortraitMax,d.b.mobileMax,d.b.tabletPortraitUp,d.b.tabletLandscapeAndUp,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.mediumDesktopMin,d.b.largeDesktopMin,d.b.wrapperMaxWidth2,d.b.mobileMax,d.b.tabletPortraitUp,d.b.tabletPortraitMax,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.tabletPortraitMax,d.b.mediumDesktopMin,d.b.mediumDesktopAndUp3Max,d.b.largeDesktopMin,d.b.tabletPortraitUp,d.b.mediumDesktopMin,d.b.mediumDesktopAndUp3Max,d.b.tabletPortraitUp,d.b.tabletPortraitMax,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.tabletPortraitMax,d.b.mobileMax,d.b.largeDesktopMin,d.b.tabletPortraitUp,d.b.tabletPortraitMax,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.tabletPortraitMax,d.b.mobileMax,d.b.largeDesktopMin,d.b.tabletPortraitUp,d.b.tabletPortraitMax,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.tabletPortraitMax,d.b.mobileMax,d.b.tabletPortraitMax2,d.b.wrapperMaxWidth,d.b.mediumDesktopMin,d.b.tabletPortraitUp,d.b.tabletPortraitMax)})),U=t(8),y=t(9),M=t(10),D={variation:"",textAlignment:"",alignment:"",carouselImageItems:[{image:{url:"",altText:""}}],carouselItems:[{header:{text:""},body:{text:""},headingStyle:"",cta:{label:"",url:"",linkAction:"",visible:!1},image:{url:"",altText:""},mobileImage:{url:"",altText:""},video:{desktopVideoUrl:""},mobileVideo:{mobileVideoUrl:" "},imageWithBracketsAlignment:{bracketsAlignment:!1,bracketAlignmentTop:0,bracketAlignmentRight:0,bracketAlignmentBottom:0,bracketAlignmentLeft:0}}]},E=function(e){var n=f()({},D,Object(s.g)(e.content)),t=Object(i.useState)(!0),o=Object(a.a)(t,2),l=o[0],d=o[1],c={infinite:!0,slidesToShow:3,slidesToScroll:3,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,initialSlide:0,infinite:!0}}]};Object(i.useEffect)((function(){if("image-only"!=n.variation){var e=document.createElement("script");e.id="carousel-script",e.innerHTML='$(".home-carousel").carousel({ interval: 6000 })',document.body.appendChild(e)}$(".carousel-indicators")&&$(".carousel-indicators .active").attr("tabindex","0")}),[]);return r.a.createElement(U.a,{setter:{componentThemes:v,selectedTheme:e.theme}},r.a.createElement(y.a,null,r.a.createElement(M.a,{padding:!1},r.a.createElement(k,{isReversed:!1},r.a.createElement("div",{className:"large-screen-container ".concat("image-only"===n.variation?"inner-container":"container-fluid p-0")},r.a.createElement("div",{className:"".concat("image-only"!==n.variation&&"row mr-0 ml-0 align-items-center")},"image-only"===n.variation?r.a.createElement("section",{className:"custom-slick-carousel"},r.a.createElement(h.a,c,n.carouselImageItems&&n.carouselImageItems.length>0&&n.carouselImageItems.map((function(e,n){var t,a;return r.a.createElement("div",{key:n,className:"slick-slider-container","aria-label":(null===e||void 0===e||null===(t=e.image)||void 0===t?void 0:t.altText)?e.image.altText:""},r.a.createElement("img",{loading:"lazy",src:e.image.url,key:n,alt:(null===e||void 0===e||null===(a=e.image)||void 0===a?void 0:a.altText)?e.image.altText:""}))})))):r.a.createElement("div",{id:"home-carousel",className:"home-carousel carousel slide w-100","data-ride":"carousel"},r.a.createElement("div",{className:"".concat("center"===n.alignment&&"slider-dots-center"," slider-dots-wrapper")},r.a.createElement("ol",{className:"".concat("center"===n.alignment&&"carousel-indicators-center"," carousel-indicators"),role:"list","aria-label":"Slides"},n.carouselItems&&n.carouselItems.length>1&&n.carouselItems.map((function(e,n){return r.a.createElement("li",{key:n,"data-target":"#home-carousel","data-slide-to":n,className:0===n?"active":"","aria-label":"Slide".concat(n),"aria-roledescription":"slide"})}))),window.location.href.indexOf(".garagedoor.com")>-1&&n.carouselItems&&n.carouselItems.length>1&&r.a.createElement("span",null,r.a.createElement("a",{onClick:function(){var e,n=document.getElementById("carousel-script");(n.parentNode.removeChild(n),l)?((e=document.createElement("script")).id="carousel-script",e.innerHTML="$(\".home-carousel\").carousel('pause')",document.body.appendChild(e)):((e=document.createElement("script")).id="carousel-script",e.innerHTML='$(".home-carousel").carousel({ interval: 6000 })',document.body.appendChild(e));d(!l)}},l?r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/pause.png",alt:"play-pause-icon",role:"presentation",className:"carousel-play"}):r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/play.png",alt:"play-pause-icon",role:"presentation",className:"carousel-pause"})))),r.a.createElement("div",{className:"right"===n.textAlignment?"right-structure carousel-inner":"carousel-inner"},n.carouselItems&&n.carouselItems.length>0&&n.carouselItems.map((function(e,n){return r.a.createElement("div",{key:n,className:0===n?"carousel-item active":"carousel-item"},r.a.createElement(x,{key:n,item:e}))}))))))))))};E.defaultProps={theme:"",content:""};n.a=E},9:function(e,n,t){"use strict";var a=t(0),i=t.n(a),r=t(5),o=t(20),l=t.n(o),d=Object(a.createContext)({});n.a=function(e){var n=!1;try{var t;n=(null===(t=document)||void 0===t?void 0:t.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(o){console.log(o)}var a=n?[l.a]:[];return i.a.createElement(r.StyleSheetManager,{stylisPlugins:a},i.a.createElement(d.Provider,{value:{rtl:n}},e.children))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-carousel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Web component - Carousel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "carousel.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "a59f4a7ce2ac612d9753d530f03de7a3f1c29f21"
|
|
15
15
|
}
|