@assaabloy/amarr-wc-pdp-carousel 5.0.2 → 5.0.3
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/package.json +2 -2
- package/pdpCarousel.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-pdp-carousel",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Web component - Pdp Carousel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "pdpCarousel.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
|
|
15
15
|
}
|
package/pdpCarousel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(n){function t(t){for(var a,o,d=t[0],c=t[1],l=t[2],s=0,m=[];s<d.length;s++)o=d[s],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(n[a]=c[a]);for(p&&p(t);m.length;)m.shift()();return r.push.apply(r,l||[]),e()}function e(){for(var n,t=0;t<r.length;t++){for(var e=r[t],a=!0,d=1;d<e.length;d++){var c=e[d];0!==i[c]&&(a=!1)}a&&(r.splice(t--,1),n=o(o.s=e[0]))}return n}var a={},i={64:0},r=[];function o(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=a,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var a in n)o.d(e,a,function(t){return n[t]}.bind(null,a));return e},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=t,d=d.slice();for(var l=0;l<d.length;l++)t(d[l]);var p=c;r.push([857,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"a",(function(){return a})),e.d(t,"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(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var a=e(0),i=e.n(a),r=e(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(n){return n.padding?"0 var(--grid-margin);":0}),(function(n){n.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),o=function(n){var t=n.className,e=n.children,a=n.maxWidth,o=void 0===a?1520:a,d=n.padding,c=void 0===d||d;return i.a.createElement(r,{className:t,maxWidth:o,padding:c},e)}},134:function(n,t,e){"use strict";var a=e(0),i=e.n(a),r=e(47),o=e.n(r),d=(e(70),e(71),e(2)),c=e(12),l=e.n(c),p={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},s=e(11),m=e(5),u=e(1);function x(){var n=Object(s.a)(["\n.slick-slider-custom {\n\n.slick {\n &-slider {\n border-radius: 4px;\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 &-container {\n display: flex !important;\n align-items: center;\n justify-content: center;\n gap: 20px;\n border-radius: 4px;\n border: solid 1px var(--border-color);\n background-color: var(--bg-main);\n margin: 0 10px;\n padding: 20px;\n\n @media screen and "," {\n padding: 60px;\n }\n\n @media screen and "," and "," {\n padding: 40px;\n }\n\n img {\n max-height: 178px;\n\n @media screen and "," and "," {\n max-height: 143px;\n }\n }\n }\n }\n\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\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\n @media ',"{\n width: 30px;\n height: 30px;\n }\n \n @media ","{\n width: 60px;\n height: 60px;\n }\n }\n }\n}\n}\n\na {\n color: var(--text-color);\n}\n\n@media"," {\n.slick-slider-custom {\n margin-bottom: 20px;\n}\n}\n\n@media "," {\n.slick-slider-custom {\n margin-bottom: 30px;\n}\n}\n\n@media "," {\n .slick {\n &-prev {\n left: 13px;\n }\n\n &-next {\n right: 13px;\n }\n }\n\n .slick-slider-custom {\n margin-bottom: 18px;\n }\n "]);return x=function(){return n},n}var b=m.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1iyoqid-0"})(["",""],(function(n){var t;(null===(t=n.gradients)||void 0===t?void 0:t.visible)?n.theme.gradient:n.theme;return Object(m.css)(x(),u.b.mediumDesktopMin,u.b.mediumDesktopAndUp3Max,u.b.tabletPortraitAndUp,u.b.smallDesktopAndUp2Max,u.b.tabletLandscapeAndUp,u.b.desktopAndUpMax,u.b.tabletPortraitMax,u.b.mobileMax,u.b.wrapperMaxWidth,u.b.tabletPortraitMin,u.b.wrapperMaxWidthMax,u.b.tabletPortraitMin,u.b.wrapperMaxWidthMax,u.b.largeDesktopMin,u.b.tabletPortraitAndUp,u.b.smallDesktopAndUp2Max,u.b.tabletLandscapeAndUp,u.b.desktopAndUpMax,u.b.tabletPortraitMax,u.b.mobileMax,u.b.largeDesktopMin,u.b.tabletPortraitAndUp,u.b.smallDesktopAndUp2Max,u.b.tabletLandscapeAndUp,u.b.desktopAndUpMax,u.b.tabletPortraitMax,u.b.mobileMax,u.b.tabletPortraitMax2,u.b.wrapperMaxWidth,u.b.tabletLandscapeAndUp,u.b.largeDesktopMin,u.b.tabletPortraitAndUpMax)})),h=e(8),f=e(9),w=e(10),A={carouselItems:[{title:{text:""},headingStyle:"",image:{url:"",altText:""},cta:{url:"",isInternal:!1,linkAction:""}}]},U=function(n){var t=l()({},A,Object(d.g)(n.content)),e={infinite:!0,speed:500,arrows:!0,slidesToShow:t.carouselItems.length>4?4:t.carouselItems.length,slidesToScroll:1,swipeToSlide:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},r=function(){var n=document.querySelector(".slick-slider-container"),t=document.querySelector(".slick-prev"),e=document.querySelector(".slick-next"),a=.5*n.offsetHeight+"px";t.style.top=a,e.style.top=a,setTimeout((function(n,t,e){n.style.top=e,t.style.top=e}),1e3,t,e,a)};return Object(a.useEffect)((function(){window.onload=r}),[]),window.onload=r,i.a.createElement(h.a,{setter:{componentThemes:p,selectedTheme:n.theme}},i.a.createElement(f.a,null,i.a.createElement(w.a,null,i.a.createElement(b,{isReversed:!1},i.a.createElement("section",{className:"slick-slider-custom container"},i.a.createElement(o.a,e,t.carouselItems&&t.carouselItems.length>0&&t.carouselItems.map((function(n,t){var e,a,r,o;return i.a.createElement("div",{key:t,className:"carousel-container"},i.a.createElement("div",{className:"slick-slider-container"},n.cta.isInternal&&i.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(e=n.image)||void 0===e?void 0:e.altText},i.a.createElement("div",{className:"pdp-card"},i.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:(null===n||void 0===n||null===(a=n.image)||void 0===a?void 0:a.altText)?n.image.altText:""}))),!n.cta.isInternal&&"_self"===n.cta.linkAction&&i.a.createElement("a",{href:n.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(r=n.image)||void 0===r?void 0:r.altText},i.a.createElement("div",{className:"pdp-card"},i.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:n.image.altText}))),!n.cta.isInternal&&"_blank"===n.cta.linkAction&&i.a.createElement("a",{href:n.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(o=n.image)||void 0===o?void 0:o.altText},i.a.createElement("div",{className:"pdp-card"},i.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:n.image.altText})))),i.a.createElement("div",{className:"text-center mt-2"},i.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,"aria-label":n.title.text,className:"amarr-h5"},n.title.text)))}))))))))};U.defaultProps={content:"",theme:""};t.a=U},2:function(n,t,e){"use strict";e.d(t,"g",(function(){return i})),e.d(t,"V",(function(){return r})),e.d(t,"i",(function(){return o})),e.d(t,"D",(function(){return d})),e.d(t,"G",(function(){return c})),e.d(t,"v",(function(){return l})),e.d(t,"B",(function(){return p})),e.d(t,"o",(function(){return s})),e.d(t,"r",(function(){return m})),e.d(t,"I",(function(){return u})),e.d(t,"H",(function(){return x})),e.d(t,"Q",(function(){return b})),e.d(t,"E",(function(){return h})),e.d(t,"u",(function(){return f})),e.d(t,"h",(function(){return w})),e.d(t,"t",(function(){return A})),e.d(t,"y",(function(){return U})),e.d(t,"w",(function(){return g})),e.d(t,"C",(function(){return k})),e.d(t,"s",(function(){return M})),e.d(t,"R",(function(){return v})),e.d(t,"q",(function(){return D})),e.d(t,"J",(function(){return P})),e.d(t,"F",(function(){return W})),e.d(t,"S",(function(){return E})),e.d(t,"m",(function(){return O})),e.d(t,"j",(function(){return S})),e.d(t,"n",(function(){return z})),e.d(t,"k",(function(){return N})),e.d(t,"l",(function(){return j})),e.d(t,"z",(function(){return C})),e.d(t,"L",(function(){return I})),e.d(t,"x",(function(){return L})),e.d(t,"T",(function(){return _})),e.d(t,"U",(function(){return Z})),e.d(t,"b",(function(){return $})),e.d(t,"O",(function(){return H})),e.d(t,"A",(function(){return q})),e.d(t,"a",(function(){return R})),e.d(t,"d",(function(){return F})),e.d(t,"f",(function(){return J})),e.d(t,"e",(function(){return G})),e.d(t,"X",(function(){return B})),e.d(t,"c",(function(){return K})),e.d(t,"W",(function(){return Q})),e.d(t,"K",(function(){return V})),e.d(t,"M",(function(){return X})),e.d(t,"N",(function(){return Y})),e.d(t,"p",(function(){return nn})),e.d(t,"P",(function(){return tn}));var a=e(4),i=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},r=function(n){return btoa(unescape(encodeURIComponent(n)))},o=function(n){return n.toUpperCase()},d=function(n){return n.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),l=new a.a(!1),p=new a.a(!1),s=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),f=new a.a(!1),w=new a.a(!1),A=new a.a(""),U=new a.a(!0),g=new a.a(!0),k=new a.a(!0),M=new a.a(!0),v=new a.a(!0),D=new a.a(!0),P=new a.a({}),y=new a.a(!1),T=0,W=new a.a(!1),E=new a.a(""),O=new a.a(""),S=new a.a(""),z=new a.a(""),N=new a.a(""),j=new a.a(""),C=new a.a(""),I=new a.a(""),L=new a.a(!1),_=new a.a(!1),Z=new a.a(!1),$=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){T++,y.next(!0)}),0)}),H=function(){setTimeout((function(){T>0&&T--,0==T&&y.next(!1)}),0)},q=function(){return y.asObservable()},R=function(n){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(n)},F=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},G=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},B=function(n){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(n)},K=function(n){return/^[0-9]*$/.test(n)},Q=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},V=function(n){if(n&&""!==n&&-1===n.indexOf("(")&&-1===n.indexOf(") ")&&-1===n.indexOf("-")){return"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length)}return n},X=function(n){return n&&(n=n.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==n&&"0"!==n||(n=n.toFixed(2)),n},Y=function(n,t){return n=n?Number(n):0,(0===(t=t?Number(t):0)||"0"===t?0:(n-t)/t*100).toFixed(2)},nn=function(n){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:n.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:n.selectedHeight,glass:n.selectedGlass,collection:n.selectedCollection,print:!0,baseUrl:"",gplacement:n.selectedWindowPlacement,width:n.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return n.selectedColor&&(t.color=n.selectedColor),n.colorHex&&(t.colorHex=n.colorHex),n.colorZone&&(t.colorZone=n.colorZone),n.selectedConstruction&&(t.model=n.selectedConstruction),n.selectedWindowDesign&&(t.top=n.selectedWindowDesign),n.glazepattern&&(t.glazepattern=n.glazepattern),n.selectedHardware&&(t.hardware=n.selectedHardware),t},tn=function(n,t,e){var a="",i=n.split(t);return i.forEach((function(n,t){"undefined"!==n&&n&&(a+=n,t!==i.length-1&&(a+=e))})),a}},26:function(n,t){n.exports=ReactDOM},765:function(n,t,e){"use strict";e.r(t);var a=e(21),i=e(134);t.default=a.a.create({component:i.a,configuration:{tagname:"amarr-pdpcarousel",useShadow:!1},plugins:[]})},8:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var a=e(5),i=e(0),r=e.n(i),o=function(n){var t=n.setter,e=t.componentThemes,i=t.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return e.theme1;var n=i.match(/\d+/g).map(Number),t=Object.keys(e).find((function(t){return!(!Array.isArray(n)||1!==n.length)&&(t.includes(n[0])&&e[t])}));return t?e["".concat(t)]:e.theme1}},n.children)}},9:function(n,t,e){"use strict";var a=e(0),i=e.n(a),r=e(5),o=e(20),d=e.n(o),c=Object(a.createContext)({});t.a=function(n){var t=!1;try{var e;t=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(o){console.log(o)}var a=t?[d.a]:[];return i.a.createElement(r.StyleSheetManager,{stylisPlugins:a},i.a.createElement(c.Provider,{value:{rtl:t}},n.children))}}});
|
|
1
|
+
!function(n){function t(t){for(var a,o,d=t[0],s=t[1],c=t[2],p=0,u=[];p<d.length;p++)o=d[p],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&u.push(r[o][0]),r[o]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(n[a]=s[a]);for(l&&l(t);u.length;)u.shift()();return i.push.apply(i,c||[]),e()}function e(){for(var n,t=0;t<i.length;t++){for(var e=i[t],a=!0,d=1;d<e.length;d++){var s=e[d];0!==r[s]&&(a=!1)}a&&(i.splice(t--,1),n=o(o.s=e[0]))}return n}var a={},r={64:0},i=[];function o(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=a,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var a in n)o.d(e,a,function(t){return n[t]}.bind(null,a));return e},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],s=d.push.bind(d);d.push=t,d=d.slice();for(var c=0;c<d.length;c++)t(d[c]);var l=s;i.push([534,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"a",(function(){return a})),e.d(t,"b",(function(){return r}));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},r={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(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var a=e(0),r=e.n(a),i=e(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(n){return n.padding?"0 var(--grid-margin);":0}),(function(n){n.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),o=function(n){var t=n.className,e=n.children,a=n.maxWidth,o=void 0===a?1520:a,d=n.padding,s=void 0===d||d;return r.a.createElement(i,{className:t,maxWidth:o,padding:s},e)}},133:function(n,t,e){"use strict";var a=e(0),r=e.n(a),i=e(46),o=e.n(i),d=(e(69),e(70),e(2)),s=e(12),c=e.n(s),l={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=e(11),u=e(5),m=e(1);function x(){var n=Object(p.a)(["\n.slick-slider-custom {\n\n.slick {\n &-slider {\n border-radius: 4px;\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 &-container {\n display: flex !important;\n align-items: center;\n justify-content: center;\n gap: 20px;\n border-radius: 4px;\n border: solid 1px var(--border-color);\n background-color: var(--bg-main);\n margin: 0 10px;\n padding: 20px;\n\n @media screen and "," {\n padding: 60px;\n }\n\n @media screen and "," and "," {\n padding: 40px;\n }\n\n img {\n max-height: 178px;\n\n @media screen and "," and "," {\n max-height: 143px;\n }\n }\n }\n }\n\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\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\n @media ',"{\n width: 30px;\n height: 30px;\n }\n \n @media ","{\n width: 60px;\n height: 60px;\n }\n }\n }\n}\n}\n\na {\n color: var(--text-color);\n}\n\n@media"," {\n.slick-slider-custom {\n margin-bottom: 20px;\n}\n}\n\n@media "," {\n.slick-slider-custom {\n margin-bottom: 30px;\n}\n}\n\n@media "," {\n .slick {\n &-prev {\n left: 13px;\n }\n\n &-next {\n right: 13px;\n }\n }\n\n .slick-slider-custom {\n margin-bottom: 18px;\n }\n "]);return x=function(){return n},n}var b=u.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1iyoqid-0"})(["",""],(function(n){var t;(null===(t=n.gradients)||void 0===t?void 0:t.visible)?n.theme.gradient:n.theme;return Object(u.css)(x(),m.b.mediumDesktopMin,m.b.mediumDesktopAndUp3Max,m.b.tabletPortraitAndUp,m.b.smallDesktopAndUp2Max,m.b.tabletLandscapeAndUp,m.b.desktopAndUpMax,m.b.tabletPortraitMax,m.b.mobileMax,m.b.wrapperMaxWidth,m.b.tabletPortraitMin,m.b.wrapperMaxWidthMax,m.b.tabletPortraitMin,m.b.wrapperMaxWidthMax,m.b.largeDesktopMin,m.b.tabletPortraitAndUp,m.b.smallDesktopAndUp2Max,m.b.tabletLandscapeAndUp,m.b.desktopAndUpMax,m.b.tabletPortraitMax,m.b.mobileMax,m.b.largeDesktopMin,m.b.tabletPortraitAndUp,m.b.smallDesktopAndUp2Max,m.b.tabletLandscapeAndUp,m.b.desktopAndUpMax,m.b.tabletPortraitMax,m.b.mobileMax,m.b.tabletPortraitMax2,m.b.wrapperMaxWidth,m.b.tabletLandscapeAndUp,m.b.largeDesktopMin,m.b.tabletPortraitAndUpMax)})),f=e(8),h=e(9),g=e(10),w={carouselItems:[{title:{text:""},headingStyle:"",image:{url:"",altText:""},cta:{url:"",isInternal:!1,linkAction:""}}]},A=function(n){var t=c()({},w,Object(d.g)(n.content)),e={infinite:!0,speed:500,arrows:!0,slidesToShow:t.carouselItems.length>4?4:t.carouselItems.length,slidesToScroll:1,swipeToSlide:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,initialSlide:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},i=function(){var n=document.querySelector(".slick-slider-container"),t=document.querySelector(".slick-prev"),e=document.querySelector(".slick-next"),a=.5*n.offsetHeight+"px";t.style.top=a,e.style.top=a,setTimeout((function(n,t,e){n.style.top=e,t.style.top=e}),1e3,t,e,a)};return Object(a.useEffect)((function(){window.onload=i}),[]),window.onload=i,r.a.createElement(f.a,{setter:{componentThemes:l,selectedTheme:n.theme}},r.a.createElement(h.a,null,r.a.createElement(g.a,null,r.a.createElement(b,{isReversed:!1},r.a.createElement("section",{className:"slick-slider-custom container"},r.a.createElement(o.a,e,t.carouselItems&&t.carouselItems.length>0&&t.carouselItems.map((function(n,t){var e,a,i,o;return r.a.createElement("div",{key:t,className:"carousel-container"},r.a.createElement("div",{className:"slick-slider-container"},n.cta.isInternal&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(e=n.image)||void 0===e?void 0:e.altText},r.a.createElement("div",{className:"pdp-card"},r.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:(null===n||void 0===n||null===(a=n.image)||void 0===a?void 0:a.altText)?n.image.altText:""}))),!n.cta.isInternal&&"_self"===n.cta.linkAction&&r.a.createElement("a",{href:n.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(i=n.image)||void 0===i?void 0:i.altText},r.a.createElement("div",{className:"pdp-card"},r.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:n.image.altText}))),!n.cta.isInternal&&"_blank"===n.cta.linkAction&&r.a.createElement("a",{href:n.url,target:n.cta.linkAction,"aria-label":null===n||void 0===n||null===(o=n.image)||void 0===o?void 0:o.altText},r.a.createElement("div",{className:"pdp-card"},r.a.createElement("img",{loading:"lazy",src:n.image.url,key:t,alt:n.image.altText})))),r.a.createElement("div",{className:"text-center mt-2"},r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,"aria-label":n.title.text,className:"amarr-h5"},n.title.text)))}))))))))};A.defaultProps={content:"",theme:""};t.a=A},2:function(n,t,e){"use strict";e.d(t,"g",(function(){return r})),e.d(t,"W",(function(){return i})),e.d(t,"i",(function(){return o})),e.d(t,"E",(function(){return d})),e.d(t,"H",(function(){return s})),e.d(t,"v",(function(){return c})),e.d(t,"C",(function(){return l})),e.d(t,"o",(function(){return p})),e.d(t,"r",(function(){return u})),e.d(t,"J",(function(){return m})),e.d(t,"I",(function(){return x})),e.d(t,"R",(function(){return b})),e.d(t,"F",(function(){return f})),e.d(t,"u",(function(){return h})),e.d(t,"h",(function(){return g})),e.d(t,"t",(function(){return w})),e.d(t,"y",(function(){return A})),e.d(t,"w",(function(){return U})),e.d(t,"D",(function(){return k})),e.d(t,"s",(function(){return M})),e.d(t,"S",(function(){return v})),e.d(t,"q",(function(){return y})),e.d(t,"K",(function(){return D})),e.d(t,"G",(function(){return S})),e.d(t,"T",(function(){return T})),e.d(t,"m",(function(){return E})),e.d(t,"j",(function(){return W})),e.d(t,"n",(function(){return C})),e.d(t,"k",(function(){return N})),e.d(t,"l",(function(){return j})),e.d(t,"z",(function(){return z})),e.d(t,"M",(function(){return L})),e.d(t,"x",(function(){return I})),e.d(t,"U",(function(){return _})),e.d(t,"V",(function(){return Z})),e.d(t,"b",(function(){return H})),e.d(t,"P",(function(){return $})),e.d(t,"A",(function(){return R})),e.d(t,"a",(function(){return q})),e.d(t,"d",(function(){return J})),e.d(t,"f",(function(){return F})),e.d(t,"e",(function(){return G})),e.d(t,"Y",(function(){return Y})),e.d(t,"c",(function(){return B})),e.d(t,"X",(function(){return K})),e.d(t,"L",(function(){return Q})),e.d(t,"N",(function(){return V})),e.d(t,"O",(function(){return X})),e.d(t,"p",(function(){return nn})),e.d(t,"Q",(function(){return tn})),e.d(t,"B",(function(){return en}));var a=e(4),r=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},i=function(n){return btoa(unescape(encodeURIComponent(n)))},o=function(n){return n.toUpperCase()},d=function(n){return n.replaceAll(" ","-").toLowerCase()},s=new a.a(!1),c=new a.a(!1),l=new a.a(!1),p=new a.a(!1),u=new a.a(""),m=new a.a(!1),x=new a.a(!1),b=new a.a(!1),f=new a.a(!1),h=new a.a(!1),g=new a.a(!1),w=new a.a(""),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),v=new a.a(!0),y=new a.a(!0),D=new a.a({}),P=new a.a(!1),O=0,S=new a.a(!1),T=new a.a(""),E=new a.a(""),W=new a.a(""),C=new a.a(""),N=new a.a(""),j=new a.a(""),z=new a.a(""),L=new a.a(""),I=new a.a(!1),_=new a.a(!1),Z=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){O++,P.next(!0)}),0)}),$=function(){setTimeout((function(){O>0&&O--,0==O&&P.next(!1)}),0)},R=function(){return P.asObservable()},q=function(n){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(n)},J=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},F=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},G=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},Y=function(n){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(n)},B=function(n){return/^[0-9]*$/.test(n)},K=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},Q=function(n){if(n&&""!==n&&-1===n.indexOf("(")&&-1===n.indexOf(") ")&&-1===n.indexOf("-")){return"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length)}return n},V=function(n){return n&&(n=n.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==n&&"0"!==n||(n=n.toFixed(2)),n},X=function(n,t){return n=n?Number(n):0,(0===(t=t?Number(t):0)||"0"===t?0:(n-t)/t*100).toFixed(2)},nn=function(n){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:n.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:n.selectedHeight,glass:n.selectedGlass,collection:n.selectedCollection,print:!0,baseUrl:"",gplacement:n.selectedWindowPlacement,width:n.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return n.selectedColor&&(t.color=n.selectedColor),n.colorHex&&(t.colorHex=n.colorHex),n.colorZone&&(t.colorZone=n.colorZone),n.selectedConstruction&&(t.model=n.selectedConstruction),n.selectedWindowDesign&&(t.top=n.selectedWindowDesign),n.glazepattern&&(t.glazepattern=n.glazepattern),n.selectedHardware&&(t.hardware=n.selectedHardware),t},tn=function(n,t,e){var a="",r=n.split(t);return r.forEach((function(n,t){"undefined"!==n&&n&&(a+=n,t!==r.length-1&&(a+=e))})),a};function en(n,t){var e=t||"html",a=n;return e||(e="html"),"html"==e&&(a=function(n){var t,e,a,o,d,l=n,p="";t=r(l,"<!--","-->",s,"W3HTMLCOMMENTPOS"),l=t.rest;for(;l.indexOf("<")>-1;)o="",e=l.indexOf("<"),"<STYLE"==l.substr(e,9).toUpperCase()&&(o="css"),"<SCRIPT"==l.substr(e,10).toUpperCase()&&(o="javascript"),-1==(a=l.indexOf(">",e))&&(a=l.length),p+=l.substring(0,e),p+=i(l.substring(e,a+4)),l=l.substr(a+4),"css"==o&&(a=l.indexOf("</style>"))>-1&&(p+=c(l.substring(0,a)),l=l.substr(a)),"javascript"==o&&(a=l.indexOf("</script>"))>-1&&(p+=m(l.substring(0,a)),l=l.substr(a));for(l=p+l,d=0;d<t.arr.length;d++)l=l.replace("W3HTMLCOMMENTPOS",t.arr[d]);return l}(a)),"css"==e&&(a=c(a)),"js"==e&&(a=m(a)),a;function r(n,t,e,a,r){for(var i,o,d="",s=[];n.search(t)>-1;)i=n.search(t),-1==(o=n.indexOf(e,i))&&(o=n.length),r?(s.push(a(n.substring(i,o+e.length))),n=n.substring(0,i)+r+n.substr(o+e.length)):(d+=n.substring(0,i),d+=a(n.substring(i,o+e.length)),n=n.substr(o+e.length));return{rest:d+n,arr:s}}function i(n){for(var t,e,a,r=n,i="";r.search(/(\s|<br>)/)>-1;)t=r.search(/(\s|<br>)/),-1==(e=r.indexOf(">"))&&(e=r.length),i+=r.substring(0,t),i+=o(r.substring(t,e)),r=r.substr(e);return">"==(a="<span style=color:grey><</span>"+(a=i+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function o(n){for(var t,e,a,r,i,o=n,s="";o.indexOf("=")>-1;)e=-1,t=o.indexOf("="),a=o.indexOf("'",t),r=o.indexOf('"',t),(i=o.indexOf(" ",t+2))>-1&&(i<a||-1==a)&&(i<r||-1==r)?e=o.indexOf(" ",t):r>-1&&(r<a||-1==a)&&(r<i||-1==i)?e=o.indexOf('"',o.indexOf('"',t)+1):a>-1&&(a<r||-1==r)&&(a<i||-1==i)&&(e=o.indexOf("'",o.indexOf("'",t)+1)),(!e||-1==e||e<t)&&(e=o.length),s+=o.substring(0,t),s+=d(o.substring(t,e+1)),o=o.substr(e+1);return"<span style=color:green>"+s+o+"</span>"}function d(n){return"<span style=color:#1c8a9c>"+n+"</span>"}function s(n){return"<span style=color:green>"+n+"</span>"}function c(n){var t,e,a,i,o,d,c,p=n,u="";for(p=(a=r(p,/\/\*/,"*/",s,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(t=p.search("{"),o=p.substr(t+1),c=1,d=0,i=0;i<o.length&&("{"==o.substr(i,1)&&(c++,d++),"}"==o.substr(i,1)&&c--,0!=c);i++);for(0!=c&&(d=0),e=t,i=0;i<=d;i++)e=p.indexOf("}",e+1);-1==e&&(e=p.length),u+=p.substring(0,t+1),u+=l(p.substring(t+1,e)),p=p.substr(e)}for(p=(p=(p=u+p).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),i=0;i<a.arr.length;i++)p=p.replace("W3CSSCOMMENTPOS",a.arr[i]);return"<span style=color:green>"+p+"</span>"}function l(n){var t,e,a,r,i=n,o="";if(i.indexOf("{")>-1)return c(i);for(;i.search(":")>-1;){for(r=!0,a=t=i.search(":");1==r;)r=!1,e=i.indexOf(";",a)," "==i.substring(e-5,e+1)&&(r=!0,a=e+1);-1==e&&(e=i.length),o+=i.substring(0,t),o+=p(i.substring(t,e+1)),i=i.substr(e+1)}return"<span style=color:#a10d5f>"+o+i+"</span>"}function p(n){var t,e=n,a="";for(e="<span style=color:grey>:</span>"+e.substring(1);e.search(/!important/i)>-1;)t=e.search(/!important/i),a+=e.substring(0,t),a+=u(e.substring(t,t+10)),e=e.substr(t+10);var r=a+e;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function u(n){return"<span style=color:red;font-weight:bold;>"+n+"</span>"}function m(n){var t,e,a,r,i,o,d,c,l,p,u=n,m="",M=[],v="";for(t=0;t<u.length;t++)"\\"==(e=u.substr(t,1))&&(M.push(u.substr(t,2)),e="W3JSESCAPE",t++),v+=e;for(u=v,1;a=U(u,"'","'",x),r=U(u,'"','"',x),i=U(u,/\/\*/,"*/",s),o=U(u,/\/\//,"<br>",s),c=k(u,f),d=A("js",u,b),p=g(u,h),-1!=Math.max(c[0],a[0],r[0],i[0],o[0],d[0],p[0])&&-1!=(l=w(c,a,r,i,o,d,p))[0];)l[0]>-1&&(m+=u.substring(0,l[0]),m+=l[2](u.substring(l[0],l[1])),u=u.substr(l[1]));for(u=m+u,t=0;t<M.length;t++)u=u.replace("W3JSESCAPE",M[t]);return"<span style=color:black>"+u+"</span>"}function x(n){return"<span style=color:brown>"+n+"</span>"}function b(n){return"<span style=color:mediumblue>"+n+"</span>"}function f(n){return"<span style=color:red>"+n+"</span>"}function h(n){return"<span style=color:black>"+n+"</span>"}function g(n,t){var e,a,r,i,o=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((i=n.indexOf("."))>-1)for(e=n.substr(i+1),r=0;r<e.length;r++){var d=e[r];for(a=0;a<o.length;a++)if(d.indexOf(o[a])>-1)return[i+1,r+i+1,t]}return[-1,-1,t]}function w(n,t,e,a,r,i,o){var d,s=[];for(d=0;d<arguments.length;d++)arguments[d][0]>-1&&(0==s.length||arguments[d][0]<s[0])&&(s=arguments[d]);return 0==s.length&&(s=arguments[d]),s}function A(n,t,e){var a,r,i,o,d=-1,s=-1;for("js"==n&&(o=["abstract","arguments","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","NaN","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with","yield"]),a=0;a<o.length;a++)(r=t.indexOf(o[a]))>-1&&(i=/\W/g,t.substr(r+o[a].length,1).match(i)&&t.substr(r-1,1).match(i)&&r>-1&&(-1==d||r<d)&&(s=(d=r)+o[a].length));return[d,s,e]}function U(n,t,e,a){var r,i;return r=n.search(t),-1==(i=n.indexOf(e,r+e.length))&&(i=n.length),[r,i+e.length,a]}function k(n,t){var e,a,r,i,o,d=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],s=0;for(e=0;e<n.length;e++)for(a=0;a<d.length;a++)if((r=n.substr(e,d[a].length))==d[a]){if("-"==r&&("e"==n.substr(e-1,1)||"E"==n.substr(e-1,1)))continue;if(s<(i=e)&&(o=n.substring(s,i),!isNaN(o)))return[s,i,t];s=e+=d[a].length,e-=1;break}return[-1,-1,t]}}},26:function(n,t){n.exports=ReactDOM},443:function(n,t,e){"use strict";e.r(t);var a=e(20),r=e(133);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-pdpcarousel",useShadow:!1},plugins:[]})},8:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var a=e(5),r=e(0),i=e.n(r),o=function(n){var t=n.setter,e=t.componentThemes,r=t.selectedTheme;return i.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return e.theme1;var n=r.match(/\d+/g).map(Number),t=Object.keys(e).find((function(t){return!(!Array.isArray(n)||1!==n.length)&&(t.includes(n[0])&&e[t])}));return t?e["".concat(t)]:e.theme1}},n.children)}},9:function(n,t,e){"use strict";var a=e(0),r=e.n(a),i=e(5),o=e(21),d=Object(a.createContext)({});t.a=function(n){var t=!1;try{var e;t=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(s){console.log(s)}var a=t?[o.a]:[];return r.a.createElement(i.StyleSheetManager,{stylisPlugins:a},r.a.createElement(d.Provider,{value:{rtl:t}},n.children))}}});
|