@assaabloy/amarr-wc-carousel 2.0.21 → 2.0.22
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 n,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(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(s&&s(t);m.length;)m.shift()();return r.push.apply(r,c||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,d=1;d<a.length;d++){var l=a[d];0!==i[l]&&(n=!1)}n&&(r.splice(t--,1),e=o(o.s=a[0]))}return e}var n={},i={6:0},r=[];function o(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=n,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},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([795,0]),a()}({0:function(e,t){e.exports=React},1:function(e,t,a){"use strict";a.d(t,"g",(function(){return i})),a.d(t,"T",(function(){return r})),a.d(t,"i",(function(){return o})),a.d(t,"C",(function(){return d})),a.d(t,"F",(function(){return l})),a.d(t,"u",(function(){return c})),a.d(t,"A",(function(){return s})),a.d(t,"n",(function(){return p})),a.d(t,"q",(function(){return m})),a.d(t,"H",(function(){return u})),a.d(t,"G",(function(){return x})),a.d(t,"O",(function(){return h})),a.d(t,"D",(function(){return g})),a.d(t,"t",(function(){return f})),a.d(t,"h",(function(){return w})),a.d(t,"s",(function(){return b})),a.d(t,"x",(function(){return v})),a.d(t,"v",(function(){return y})),a.d(t,"B",(function(){return E})),a.d(t,"r",(function(){return k})),a.d(t,"P",(function(){return N})),a.d(t,"p",(function(){return z})),a.d(t,"I",(function(){return S})),a.d(t,"E",(function(){return j})),a.d(t,"Q",(function(){return A})),a.d(t,"l",(function(){return C})),a.d(t,"j",(function(){return T})),a.d(t,"m",(function(){return _})),a.d(t,"k",(function(){return H})),a.d(t,"y",(function(){return M})),a.d(t,"K",(function(){return D})),a.d(t,"w",(function(){return $})),a.d(t,"R",(function(){return Z})),a.d(t,"S",(function(){return P})),a.d(t,"b",(function(){return L})),a.d(t,"N",(function(){return B})),a.d(t,"z",(function(){return U})),a.d(t,"a",(function(){return R})),a.d(t,"d",(function(){return F})),a.d(t,"f",(function(){return J})),a.d(t,"e",(function(){return W})),a.d(t,"V",(function(){return G})),a.d(t,"c",(function(){return q})),a.d(t,"U",(function(){return V})),a.d(t,"J",(function(){return K})),a.d(t,"L",(function(){return Q})),a.d(t,"M",(function(){return X})),a.d(t,"o",(function(){return Y}));var n=a(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 n.a(!1),c=new n.a(!1),s=new n.a(!1),p=new n.a(!1),m=new n.a(""),u=new n.a(!1),x=new n.a(!1),h=new n.a(!1),g=new n.a(!1),f=new n.a(!1),w=new n.a(!1),b=new n.a(""),v=new n.a(!0),y=new n.a(!0),E=new n.a(!0),k=new n.a(!0),N=new n.a(!0),z=new n.a(!0),S=new n.a({}),O=new n.a(!1),I=0,j=new n.a(!1),A=new n.a(""),C=new n.a(""),T=new n.a(""),_=new n.a(""),H=new n.a(""),M=new n.a(""),D=new n.a(""),$=new n.a(!1),Z=new n.a(!1),P=new n.a(!1),L=function(){setTimeout((function(){I++,O.next(!0)}),0)},B=function(){setTimeout((function(){I>0&&I--,0==I&&O.next(!1)}),0)},U=function(){return O.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)},F=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},W=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)},V=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},K=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},Q=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},X=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},Y=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}},17:function(e,t){e.exports=ReactDOM},5:function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var n=a(22),i=a(0),r=a.n(i),o=a(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=a(19),s=a(18),p=function(e){var t=e.label,a=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,H=e.type,M=void 0===H?"button":H,D=e.showDisabledMessage,$=void 0===D?"":D,Z=Object(n.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return r.a.createElement(d,null,r.a.createElement("div",{className:"".concat(x&&$&&"disabled-button-parent")},m?r.a.createElement("a",{href:b,download:k,target:y,"data-item-name":C,id:_},r.a.createElement(l,Object.assign({disabled:x,classStyle:"".concat(o)},Z,{type:M,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,a)):r.a.createElement("span",null,a))):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:M},Z),r.a.createElement("span",null,a)),x&&$&&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"},$))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},702:function(e,t,a){"use strict";a.r(t);var n=a(14),i=a(75);t.default=n.a.create({component:i.a,configuration:{tagname:"amarr-carousel",useShadow:!1},plugins:[]})},75:function(e,t,a){"use strict";var n=a(2),i=a(0),r=a.n(i),o=a(4),d=(a(52),a(53),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;}&: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=a(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=a(1),p=a(41),m=function(e){var t,a=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===a||void 0===a||null===(t=a.mobileImage)||void 0===t?void 0:t.url)?r.a.createElement(p.a,{className:"img-responsive",src:a.mobileImage.url,fallback:"",alt:a.image.altText,sources:[{source:a.mobileImage.url,media:"(min-width: 320px)"},{source:a.image.url,media:"(min-width: 768px)"}]}):r.a.createElement(p.a,{className:"img-responsive",src:a.image.url,fallback:"",alt:a.image.altText,sources:[{source:a.image.url,media:"(min-width: 320px)"},{source:a.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"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h1",{className:"heading-style-1"},a.header.text),"h2"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h2",{className:"heading-style-1 carousel-heading mb-0"},a.header.text),"h3"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h3",{className:"heading-style-1"},a.header.text),"h4"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h4",{className:"heading-style-1"},a.header.text),"h5"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h5",{className:"heading-style-1"},a.header.text),"h6"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("h6",{className:"heading-style-1"},a.header.text),"capitalize"===a.headingStyle&&a.header.text&&""!==a.header.text&&r.a.createElement("div",{className:"heading-style-1 text-style-uppercase"},a.header.text),r.a.createElement("div",{className:"text-padding text-style-1",dangerouslySetInnerHTML:{__html:a.body.text}}),a.cta&&a.cta.label&&a.cta.linkAction&&r.a.createElement(l.a,{label:Object(s.i)(a.cta.label),link:!0,linkHref:a.cta.url,target:a.cta.linkAction})))))))},u=a(38),x=a.n(u),h=function(e){var t=e.carouselData,a=Object(s.g)(t),o=Object(i.useState)(!0),l=Object(n.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"!=a.variation){var e=document.createElement("script");e.id="carousel-script",e.innerHTML='$(".home-carousel").carousel({ interval: 6000 })',document.body.appendChild(e)}}),[]);return r.a.createElement(d,null,r.a.createElement("div",{className:"large-screen-container ".concat("image-only"===a.variation?"container":"container-fluid p-0")},r.a.createElement("div",{className:"".concat("image-only"!==a.variation&&"row mr-0 ml-0 align-items-center")},"image-only"===a.variation?r.a.createElement("section",{className:"custom-slick-carousel"},r.a.createElement(x.a,u,a.carouselImageItems&&a.carouselImageItems.length>0&&a.carouselImageItems.map((function(e,t){var a,n;return r.a.createElement("div",{key:t,className:"slick-slider-container","aria-label":(null===e||void 0===e||null===(a=e.image)||void 0===a?void 0:a.altText)?e.image.altText:""},r.a.createElement("img",{loading:"lazy",src:e.image.url,key:t,alt:(null===e||void 0===e||null===(n=e.image)||void 0===n?void 0:n.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"===a.alignment&&"slider-dots-center"," slider-dots-wrapper")},r.a.createElement("ol",{className:"".concat("center"===a.alignment&&"carousel-indicators-center"," carousel-indicators"),role:"list","aria-roledescription":"carousel","aria-label":"Slides"},a.carouselItems&&a.carouselItems.length>1&&a.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&&a.carouselItems&&a.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"===a.textAlignment?"right-structure carousel-inner":"carousel-inner"},a.carouselItems&&a.carouselItems.length>0&&a.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 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([795,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,"U",(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,"P",(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,"Q",(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,"R",(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 H})),n.d(t,"l",(function(){return M})),n.d(t,"z",(function(){return D})),n.d(t,"L",(function(){return $})),n.d(t,"x",(function(){return Z})),n.d(t,"S",(function(){return P})),n.d(t,"T",(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,"W",(function(){return q})),n.d(t,"c",(function(){return V})),n.d(t,"V",(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}));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(""),H=new a.a(""),M=new a.a(""),D=new a.a(""),$=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}},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,H=e.type,M=void 0===H?"button":H,D=e.showDisabledMessage,$=void 0===D?"":D,Z=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return r.a.createElement(d,null,r.a.createElement("div",{className:"".concat(x&&$&&"disabled-button-parent")},m?r.a.createElement("a",{href:b,download:k,target:y,"data-item-name":C,id:_},r.a.createElement(l,Object.assign({disabled:x,classStyle:"".concat(o)},Z,{type:M,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:M},Z),r.a.createElement("span",null,n)),x&&$&&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"},$))},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(52),n(53),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;}&: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)}}),[]);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-roledescription":"carousel","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}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-carousel",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.22",
|
|
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": "7bbf0c0df7df5c71c35eea64eb7f8ec7ea230f04"
|
|
15
15
|
}
|