@assaabloy/amarr-wc-collection-list 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.
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,o,c=t[0],l=t[1],d=t[2],s=0,m=[];s<c.length;s++)o=c[s],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(p&&p(t);m.length;)m.shift()();return r.push.apply(r,d||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var l=n[c];0!==i[l]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},i={10: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 c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var p=l;r.push([805,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.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(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),i=n.n(a),r=n(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 t=e.className,n=e.children,a=e.maxWidth,o=void 0===a?1520:a,c=e.padding,l=void 0===c||c;return i.a.createElement(r,{className:t,maxWidth:o,padding:l},n)}},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(23),i=n(0),r=n.n(i),o=n(5),c=(n(42),o.default.div.withConfig({displayName:"styles__View",componentId:"sc-10ksvu2-0"})([".loader{position:fixed;left:0;right:0;top:0;bottom:0;text-align:var(--text-center);z-index:9999;background:rgba(0,0,0,0.5);overflow:hidden;div{align-items:center;}}"])),l=n(34),d=n.n(l),p=function(e){return Object(a.a)(e),r.a.createElement(c,null,r.a.createElement("div",{className:"d-flex justify-content-center loader"},r.a.createElement("div",{className:"d-flex"},r.a.createElement(d.a,{type:"ThreeDots",color:"rgb(0, 97, 102)",height:100,width:100}))))}},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={PowerReviewApi:"3783f7b5-5e6f-4da2-90ce-1a55c1fd02b2",Locale:"en_US",MerchantGroupId:"48814",ProductMerchantId:"445672",DealerMerchantId:"135036"}},2: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 c})),n.d(t,"G",(function(){return l})),n.d(t,"v",(function(){return d})),n.d(t,"B",(function(){return p})),n.d(t,"o",(function(){return s})),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 b})),n.d(t,"E",(function(){return h})),n.d(t,"u",(function(){return f})),n.d(t,"h",(function(){return g})),n.d(t,"t",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"w",(function(){return A})),n.d(t,"C",(function(){return U})),n.d(t,"s",(function(){return k})),n.d(t,"R",(function(){return M})),n.d(t,"q",(function(){return y})),n.d(t,"J",(function(){return E})),n.d(t,"F",(function(){return P})),n.d(t,"S",(function(){return O})),n.d(t,"m",(function(){return j})),n.d(t,"j",(function(){return L})),n.d(t,"n",(function(){return _})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return z})),n.d(t,"z",(function(){return I})),n.d(t,"L",(function(){return T})),n.d(t,"x",(function(){return W})),n.d(t,"T",(function(){return C})),n.d(t,"U",(function(){return R})),n.d(t,"b",(function(){return H})),n.d(t,"O",(function(){return Z})),n.d(t,"A",(function(){return $})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return V})),n.d(t,"f",(function(){return G})),n.d(t,"e",(function(){return q})),n.d(t,"X",(function(){return J})),n.d(t,"c",(function(){return B})),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(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()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},l=new a.a(!1),d=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),g=new a.a(!1),v=new a.a(""),w=new a.a(!0),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),y=new a.a(!0),E=new a.a({}),D=new a.a(!1),N=0,P=new a.a(!1),O=new a.a(""),j=new a.a(""),L=new a.a(""),_=new a.a(""),S=new a.a(""),z=new a.a(""),I=new a.a(""),T=new a.a(""),W=new a.a(!1),C=new a.a(!1),R=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){N++,D.next(!0)}),0)}),Z=function(){setTimeout((function(){N>0&&N--,0==N&&D.next(!1)}),0)},$=function(){return D.asObservable()},F=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-. ]*$/)},G=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},q=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},J=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},B=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}},26:function(e,t){e.exports=ReactDOM},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(30),i=n(0),r=n.n(i),o=n(5),c=n(1),l=o.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),d=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;}"],c.b.smallDesktop2Min),p=n(25),s=n(24),m=function(e){var t=e.label,n=void 0===t?"label":t,i=e.classStyle,o=void 0===i?"default":i,c=e.link,m=void 0!==c&&c,u=e.disabled,x=void 0!==u&&u,b=e.datatoggle,h=void 0===b?"":b,f=e.datatarget,g=void 0===f?"":f,v=e.linkHref,w=e.target,A=void 0===w?"_self":w,U=e.downloadLink,k=void 0!==U&&U,M=e.inverse,y=void 0!==M&&M,E=e.icon,D=void 0===E?"":E,N=e.iconAlt,P=void 0===N?"":N,O=e.dataItemName,j=void 0===O?"":O,L=e.id,_=void 0===L?"":L,S=e.type,z=void 0===S?"button":S,I=e.showDisabledMessage,T=void 0===I?"":I,W=e.ariaLabel,C=void 0===W?"":W,R=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(l,null,r.a.createElement("div",{className:"".concat(x&&T&&"disabled-button-parent")},m?r.a.createElement("a",{href:v,download:k,target:A,"data-item-name":j,id:_,"aria-label":C},r.a.createElement(d,Object.assign({role:"presentation",disabled:x,classStyle:"".concat(o)},R,{type:z,className:y?"btn-inverse btn btn-success":"btn btn-success"}),""!=D?r.a.createElement("div",{"data-toggle":h,"data-target":g},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:D,alt:P}),r.a.createElement("span",null,n)):r.a.createElement("span",null,n))):r.a.createElement(d,Object.assign({disabled:x,classStyle:o,className:y?"btn-inverse btn btn-success":"btn btn-success",id:_,"data-item-name":j,type:z},R),r.a.createElement("span",null,n)),x&&T&&r.a.createElement(p.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"},T))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},713:function(e,t,n){"use strict";n.r(t);var a=n(21),i=n(84);t.default=a.a.create({component:i.a,configuration:{tagname:"amarr-collection-list",useShadow:!1},plugins:[]})},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(5),i=n(0),r=n.n(i),o=function(e){var t=e.setter,n=t.componentThemes,i=t.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return n.theme1;var e=i.match(/\d+/g).map(Number),t=Object.keys(n).find((function(t){return!(!Array.isArray(e)||1!==e.length)&&(t.includes(e[0])&&n[t])}));return t?n["".concat(t)]:n.theme1}},e.children)}},84:function(e,t,n){"use strict";var a=n(3),i=n(0),r=n.n(i),o=n(2),c=n(5),l=n(1),d=c.default.section.withConfig({displayName:"styles__Content",componentId:"s7465q-0"})([".collection-card{display:flex;flex-flow:column nowrap;border-radius:var(--border-radius);a{color:var(--text-color);}.new-symbol{background-color:var(--bg-symbol);padding:4px 10px;text-align:var(--text-center);font-weight:var(--font-weight-semi-bold);}&-body{border-top:solid 1px var(--border-color);background-color:var(--grey);padding:18px 18px 0px 18px;color:var(--text-color);}.p-w-r{.pr-category-snippet{display:flex;align-items:center;.pr-snippet-stars{background:none;}}}.item-description p{min-height:var(--font-size-ch);}.image-container{background-color:var(--bg-main);padding:10px;display:flex;align-items:center;justify-content:center;@media ","{height:250px;}@media ","{height:350px;}img{@media ","{max-height:220px;}@media ","{max-height:350px;padding:30px 10px;}}}.commercial-image-container{height:225px;img{padding:0px !important;}@media screen and "," and ","{height:182px;.collection-img{max-height:170px !important;}}@media screen and "," and ","{height:165px;.collection-img{max-height:155px !important;}}@media screen and "," and ","{height:155px;.collection-img{max-height:145px !important;}}@media screen and "," and ","{height:172px;.collection-img{max-height:162px !important;}}@media screen ","{height:194px;.collection-img{max-height:180px !important;}}}}"],l.b.tabletPortraitAndUp,l.b.largeDesktopMin,l.b.tabletPortraitAndUp,l.b.largeDesktopMin,l.b.mediumDesktopMin2,l.b.mediumDesktopAndUp3Max,l.b.mediumDesktopMin,l.b.mediumDesktopAndUpMax,l.b.desktopMin,l.b.smallDesktopAndUp2Max,l.b.tabletLandscapeAndUp,l.b.desktopAndUpMax,l.b.desktop2Max),p=function(e){var t,n,a,i,o,c=e.item,l=e.content;return r.a.createElement(d,null,r.a.createElement("section",{className:"collection-card"},r.a.createElement("div",{className:"".concat("commercial"===l.variation&&"commercial-image-container"," text-center image-container")},r.a.createElement("a",{href:c.url,"aria-label":(null===c||void 0===c||null===(t=c.image)||void 0===t?void 0:t.altText)?c.image.altText:"product-img"},r.a.createElement("img",{loading:"lazy",className:"collection-img",src:(null===c||void 0===c||null===(n=c.image)||void 0===n?void 0:n.url)?c.image.url:"",alt:(null===c||void 0===c||null===(a=c.image)||void 0===a?void 0:a.altText)&&""!==(null===c||void 0===c||null===(i=c.image)||void 0===i?void 0:i.altText)?null===c||void 0===c||null===(o=c.image)||void 0===o?void 0:o.altText:"commercial"===l.variation?"".concat(c.productName," Commercial Door"):"".concat(c.productName," Garage Door")}))),r.a.createElement("div",{className:"collection-card-body"},r.a.createElement("div",{className:"d-flex justify-content-between align-items-center mb-2"},r.a.createElement("h3",{className:"amarr-h5"},r.a.createElement("a",{href:c.url,"aria-label":c.productName},c.productName)),(null===c||void 0===c?void 0:c.isNew)&&r.a.createElement("span",{className:"new-symbol pl-2 body-text3"},l.newFlagText?l.newFlagText:"New")),"operators"===l.variation?r.a.createElement("div",{className:"body-text2"},r.a.createElement("p",null,c.brand," ",r.a.createElement("br",null),c.duty," ",r.a.createElement("br",null),c.warranty)):r.a.createElement("div",null,r.a.createElement("div",{id:c.powerReviewsId,className:"mb-2"}),r.a.createElement("div",{className:"body-text2 ".concat("residential"===l.variation&&"item-description"," ").concat("commercial"===l.variation&&"commercial-item-description mb-3"),dangerouslySetInnerHTML:{__html:c.shortDescription}})))))},s=n(6),m=n.n(s),u=n(15),x=n(17),b=n(7),h=n(12),f=n.n(h),g={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},v=n(11);function w(){var e=Object(v.a)(["\n .pr-snippet-stars-container {\n display: inline !important;\n margin-right: 10px;\n }\n .read-review-link {\n visibility: hidden;\n font-size: 1px;\n }\n .pr-snippet-write-review-link,\n span.pr-snippet-review-count {\n display: none;\n }\n h1 {\n font-size: var(--font-size-h1);\n font-weight: var(--font-weight-semi-bold);\n color: var(--text-color);\n }\n .collection-list-container {\n display: flex;\n flex-wrap: wrap;\n .collection-list-item {\n background-color: rgb(240, 240, 240);\n flex: 0 0 33%;\n max-width: calc(33% - 32px);\n border: solid 1px var(--border-color);\n border-radius: var(--border-radius);\n padding: 1px 0px;\n @media screen and "," {\n flex: 0 0 100%;\n max-width: 100%;\n }\n @media screen and "," and "," {\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 33%;\n max-width: calc(33% - 21px);\n }\n @media screen and "," and "," {\n flex: 0 0 33%;\n max-width: calc(33% - 24px);\n }\n .content-container {\n justify-content: space-between;\n flex-direction: column;\n display: flex;\n height: 100%;\n .button-container {\n padding-left: 18px;\n padding-bottom: 18px;\n }\n }\n }\n\n .commercial-list-item,\n .operators-list-item {\n @media screen and "," {\n flex: 0 0 100%;\n max-width: 100%;\n }\n @media screen and "," and "," {\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 27px);\n }\n @media screen and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 36px);\n }\n }\n }\n .collection-list-container > * {\n @media screen and "," {\n margin: 24px 32px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," {\n margin: 32px 32px 0 0px;\n }\n }\n .collection-list-container {\n @media screen and "," {\n margin: -24px 0px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -24px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -24px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -36px 0 0px;\n }\n @media screen and "," {\n margin: -32px -48px 0 0px;\n }\n }\n .flex-grow-1 {\n flex-grow: 1;\n }\n "]);return w=function(){return e},e}var A=c.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1066wsb-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(c.css)(w(),l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin)})),U=n(8),k=n(9),M=n(10),y={label:"",color:"",priceLabel:"",warrantyLabel:"",rValueLabel:"",collectionListApiPath:"",variation:"",headingStyle:"",pageSize:0,newFlagText:""},E=function(e){var t=f()({},y,Object(o.g)(e.content)),n=Object(i.useState)([]),c=Object(a.a)(n,2),l=c[0],d=c[1],s=Object(i.useState)(!1),h=Object(a.a)(s,2),v=h[0],w=h[1],E=Object(i.useState)(0),D=Object(a.a)(E,2),N=D[0],P=D[1],O=Object(i.useState)(0),j=Object(a.a)(O,2),L=j[0],_=j[1];Object(i.useEffect)((function(){"operators"===(null===t||void 0===t?void 0:t.variation)&&S(),"commercial"===t.variation&&z(),"residential"===t.variation&&I(),Object(o.A)().subscribe((function(e){w(e)}))}),[]);var S=function(){_((function(e){return e+1})),Object(o.b)(),m.a.get(t.collectionListApiPath+"."+(L+1)+".json").then((function(e){d((function(t){return t.concat(e.data.operatorList)})),P(e.data.totalResults),Object(o.O)()}),(function(e){Object(o.O)()})).catch((function(e){Object(o.O)()}))},z=function(){Object(o.b)(),m.a.get(t.collectionListApiPath).then((function(e){d(e.data);var t=[];e.data.forEach((function(e){e.doorList.forEach((function(e){t.push(e)}))})),T(t),Object(o.O)()}),(function(e){Object(o.O)()})).catch((function(e){Object(o.O)()}))},I=function(){Object(o.b)(),m.a.get(t.collectionListApiPath).then((function(e){d(e.data),T(e.data),Object(o.O)()}),(function(e){Object(o.O)()})).catch((function(e){Object(o.O)()}))},T=function(e){if(e&&e.length>0){var t="";e.forEach((function(e){t=t+'{\n "read_services_base_url": "stable",\n "api_key": `'+x.a.PowerReviewApi+'`,\n "locale": `'+x.a.Locale+'`,\n "merchant_group_id": `'+x.a.MerchantGroupId+'`,\n "merchant_id": `'+x.a.ProductMerchantId+'`,\n "page_id": `'+e.powerReviewsId+'`,\n "on_read_reviews_click": function () {\n var a = document.getElementById(`'+e.powerReviewsId+'-click`)\n a.click()\n },\n "components": {\n "ReviewSnippet": `'+e.powerReviewsId+"`,\n }\n },"}));var n="POWERREVIEWS.display.render(["+t+"]);",a=document.createElement("script");a.innerHTML=n,setTimeout((function(){document.body.appendChild(a),setTimeout((function(){var e=document.querySelectorAll(".pr-snippet-rating-decimal");e&&e.length>0&&e.forEach((function(e){var t=Number(e.textContent).toFixed(1);e.innerText=t}))}),3e3)}),1500)}};return r.a.createElement(U.a,{setter:{componentThemes:g,selectedTheme:e.theme}},r.a.createElement(k.a,null,r.a.createElement(M.a,null,r.a.createElement(A,{isReversed:!1},r.a.createElement("div",{className:"container"},v&&r.a.createElement(u.a,null),"commercial"===t.variation&&r.a.createElement("div",{className:"row"},l&&l.length>0&&l.map((function(e,n){return r.a.createElement("div",{key:n,className:"col-12"},r.a.createElement("div",{className:"text-center mb-3"},"h1"===t.headingStyle&&r.a.createElement("h1",null,e.heading),"h2"===t.headingStyle&&r.a.createElement("h2",null,e.heading),"h3"===t.headingStyle&&r.a.createElement("h3",null,e.heading),"h4"===t.headingStyle&&r.a.createElement("h4",null,e.heading),"h5"===t.headingStyle&&r.a.createElement("h5",null,e.heading),"h6"===t.headingStyle&&r.a.createElement("h6",null,e.heading)),r.a.createElement("div",{className:"collection-list-container ".concat(l.length-1===n?"mb-4 mb-lg-5":"mb-5")},e.doorList&&e.doorList.length>0&&e.doorList.map((function(e,n){return r.a.createElement("div",{className:"collection-list-item commercial-list-item d-flex flex-column",key:n},r.a.createElement("div",{className:"flex-grow-1"},r.a.createElement(p,{item:e,key:n,content:t}),r.a.createElement("a",{className:"read-review-link",id:"".concat(e.powerReviewsId,"-click"),href:"".concat(e.url,"#reviewsTab")},"1")),r.a.createElement("div",{className:"pb-2 px-3 pt-3"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},r.a.createElement("h4",{className:"amarr-h6"},t.rValueLabel," :")),r.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},r.a.createElement("h4",{className:"amarr-h6 font-weight-normal "},e.rValue))),r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},r.a.createElement("h4",{className:"amarr-h6"},t.warrantyLabel," :")),r.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},r.a.createElement("h4",{className:"amarr-h6 font-weight-normal"},e.warranty))),"commercial"===t.variation&&r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},r.a.createElement("h4",{className:"amarr-h6"},t.priceLabel," :")),r.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},r.a.createElement("h4",{className:"amarr-h6 font-weight-normal"},e.price)))))}))))}))),"residential"===t.variation&&r.a.createElement("div",{className:"collection-list-container mb-5 pb-2"},l&&l.length>0&&l.map((function(e,n){return r.a.createElement("div",{className:"collection-list-item",key:n},r.a.createElement("div",{className:"content-container"},r.a.createElement(p,{item:e,key:n,content:t}),r.a.createElement("a",{className:"read-review-link",id:"".concat(e.powerReviewsId,"-click"),href:"".concat(e.url,"#reviewsTab")},"1"),r.a.createElement("div",{className:"button-container"},r.a.createElement(b.a,{label:Object(o.i)(t.label),link:!0,linkHref:e.url,inverse:"inverse"===t.color,dataItemName:e.productName}))))}))),"operators"===t.variation&&r.a.createElement("div",{className:"mb-5 pb-2"},r.a.createElement("div",{className:"collection-list-container"},l&&l.length>0&&l.map((function(e,n){return r.a.createElement("div",{className:"collection-list-item operators-list-item",key:n},r.a.createElement(p,{item:e,key:n,content:t}))}))),l.length<N&&r.a.createElement("div",{className:"col-12 text-center mt-2"},r.a.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),S()},"aria-label":t.label},r.a.createElement(b.a,{label:Object(o.i)(t.label),link:!0,inverse:"inverse"===t.color})))))))))};E.defaultProps={theme:"",content:""};t.a=E},9:function(e,t,n){"use strict";var a=n(0),i=n.n(a),r=n(5),o=n(20),c=n.n(o),l=Object(a.createContext)({});t.a=function(e){var t=!1;try{var n;t=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(o){console.log(o)}var a=t?[c.a]:[];return i.a.createElement(r.StyleSheetManager,{stylisPlugins:a},i.a.createElement(l.Provider,{value:{rtl:t}},e.children))}}});
1
+ !function(e){function t(t){for(var a,o,c=t[0],l=t[1],d=t[2],p=0,m=[];p<c.length;p++)o=c[p],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&m.push(r[o][0]),r[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 i.push.apply(i,d||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(a=!1)}a&&(i.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},r={10:0},i=[];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 c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var s=l;i.push([482,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.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(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(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 t=e.className,n=e.children,a=e.maxWidth,o=void 0===a?1520:a,c=e.padding,l=void 0===c||c;return r.a.createElement(i,{className:t,maxWidth:o,padding:l},n)}},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(23),r=n(0),i=n.n(r),o=n(5),c=(n(42),o.default.div.withConfig({displayName:"styles__View",componentId:"sc-10ksvu2-0"})([".loader{position:fixed;left:0;right:0;top:0;bottom:0;text-align:var(--text-center);z-index:9999;background:rgba(0,0,0,0.5);overflow:hidden;div{align-items:center;}}"])),l=n(34),d=n.n(l),s=function(e){return Object(a.a)(e),i.a.createElement(c,null,i.a.createElement("div",{className:"d-flex justify-content-center loader"},i.a.createElement("div",{className:"d-flex"},i.a.createElement(d.a,{type:"ThreeDots",color:"rgb(0, 97, 102)",height:100,width:100}))))}},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={PowerReviewApi:"3783f7b5-5e6f-4da2-90ce-1a55c1fd02b2",Locale:"en_US",MerchantGroupId:"48814",ProductMerchantId:"445672",DealerMerchantId:"135036"}},2:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"W",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"E",(function(){return c})),n.d(t,"H",(function(){return l})),n.d(t,"v",(function(){return d})),n.d(t,"C",(function(){return s})),n.d(t,"o",(function(){return p})),n.d(t,"r",(function(){return m})),n.d(t,"J",(function(){return u})),n.d(t,"I",(function(){return b})),n.d(t,"R",(function(){return x})),n.d(t,"F",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"t",(function(){return v})),n.d(t,"y",(function(){return w})),n.d(t,"w",(function(){return A})),n.d(t,"D",(function(){return k})),n.d(t,"s",(function(){return U})),n.d(t,"S",(function(){return M})),n.d(t,"q",(function(){return y})),n.d(t,"K",(function(){return E})),n.d(t,"G",(function(){return O})),n.d(t,"T",(function(){return P})),n.d(t,"m",(function(){return j})),n.d(t,"j",(function(){return S})),n.d(t,"n",(function(){return L})),n.d(t,"k",(function(){return T})),n.d(t,"l",(function(){return _})),n.d(t,"z",(function(){return C})),n.d(t,"M",(function(){return W})),n.d(t,"x",(function(){return z})),n.d(t,"U",(function(){return I})),n.d(t,"V",(function(){return R})),n.d(t,"b",(function(){return H})),n.d(t,"P",(function(){return Z})),n.d(t,"A",(function(){return $})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return V})),n.d(t,"f",(function(){return G})),n.d(t,"e",(function(){return J})),n.d(t,"Y",(function(){return q})),n.d(t,"c",(function(){return B})),n.d(t,"X",(function(){return Y})),n.d(t,"L",(function(){return K})),n.d(t,"N",(function(){return Q})),n.d(t,"O",(function(){return X})),n.d(t,"p",(function(){return ee})),n.d(t,"Q",(function(){return te})),n.d(t,"B",(function(){return ne}));var a=n(4),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},i=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},l=new a.a(!1),d=new a.a(!1),s=new a.a(!1),p=new a.a(!1),m=new a.a(""),u=new a.a(!1),b=new a.a(!1),x=new a.a(!1),f=new a.a(!1),h=new a.a(!1),g=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),M=new a.a(!0),y=new a.a(!0),E=new a.a({}),D=new a.a(!1),N=0,O=new a.a(!1),P=new a.a(""),j=new a.a(""),S=new a.a(""),L=new a.a(""),T=new a.a(""),_=new a.a(""),C=new a.a(""),W=new a.a(""),z=new a.a(!1),I=new a.a(!1),R=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){N++,D.next(!0)}),0)}),Z=function(){setTimeout((function(){N>0&&N--,0==N&&D.next(!1)}),0)},$=function(){return D.asObservable()},F=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-. ]*$/)},G=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)},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)},B=function(e){return/^[0-9]*$/.test(e)},Y=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)},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="",r=e.split(t);return r.forEach((function(e,t){"undefined"!==e&&e&&(a+=e,t!==r.length-1&&(a+=n))})),a};function ne(e,t){var n=t||"html",a=e;return n||(n="html"),"html"==n&&(a=function(e){var t,n,a,o,c,s=e,p="";t=r(s,"&lt;!--","--&gt;",l,"W3HTMLCOMMENTPOS"),s=t.rest;for(;s.indexOf("&lt;")>-1;)o="",n=s.indexOf("&lt;"),"&LT;STYLE"==s.substr(n,9).toUpperCase()&&(o="css"),"&LT;SCRIPT"==s.substr(n,10).toUpperCase()&&(o="javascript"),-1==(a=s.indexOf("&gt;",n))&&(a=s.length),p+=s.substring(0,n),p+=i(s.substring(n,a+4)),s=s.substr(a+4),"css"==o&&(a=s.indexOf("&lt;/style&gt;"))>-1&&(p+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==o&&(a=s.indexOf("&lt;/script&gt;"))>-1&&(p+=u(s.substring(0,a)),s=s.substr(a));for(s=p+s,c=0;c<t.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",t.arr[c]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=u(a)),a;function r(e,t,n,a,r){for(var i,o,c="",l=[];e.search(t)>-1;)i=e.search(t),-1==(o=e.indexOf(n,i))&&(o=e.length),r?(l.push(a(e.substring(i,o+n.length))),e=e.substring(0,i)+r+e.substr(o+n.length)):(c+=e.substring(0,i),c+=a(e.substring(i,o+n.length)),e=e.substr(o+n.length));return{rest:c+e,arr:l}}function i(e){for(var t,n,a,r=e,i="";r.search(/(\s|<br>)/)>-1;)t=r.search(/(\s|<br>)/),-1==(n=r.indexOf("&gt;"))&&(n=r.length),i+=r.substring(0,t),i+=o(r.substring(t,n)),r=r.substr(n);return"&gt;"==(a="<span style=color:grey>&lt;</span>"+(a=i+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>&gt;</span>"),"<span style=color:#a10d5f>"+a+"</span>"}function o(e){for(var t,n,a,r,i,o=e,l="";o.indexOf("=")>-1;)n=-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)?n=o.indexOf(" ",t):r>-1&&(r<a||-1==a)&&(r<i||-1==i)?n=o.indexOf('"',o.indexOf('"',t)+1):a>-1&&(a<r||-1==r)&&(a<i||-1==i)&&(n=o.indexOf("'",o.indexOf("'",t)+1)),(!n||-1==n||n<t)&&(n=o.length),l+=o.substring(0,t),l+=c(o.substring(t,n+1)),o=o.substr(n+1);return"<span style=color:green>"+l+o+"</span>"}function c(e){return"<span style=color:#1c8a9c>"+e+"</span>"}function l(e){return"<span style=color:green>"+e+"</span>"}function d(e){var t,n,a,i,o,c,d,p=e,m="";for(p=(a=r(p,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(t=p.search("{"),o=p.substr(t+1),d=1,c=0,i=0;i<o.length&&("{"==o.substr(i,1)&&(d++,c++),"}"==o.substr(i,1)&&d--,0!=d);i++);for(0!=d&&(c=0),n=t,i=0;i<=c;i++)n=p.indexOf("}",n+1);-1==n&&(n=p.length),m+=p.substring(0,t+1),m+=s(p.substring(t+1,n)),p=p.substr(n)}for(p=(p=(p=m+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 s(e){var t,n,a,r,i=e,o="";if(i.indexOf("{")>-1)return d(i);for(;i.search(":")>-1;){for(r=!0,a=t=i.search(":");1==r;)r=!1,n=i.indexOf(";",a),"&nbsp;"==i.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=i.length),o+=i.substring(0,t),o+=p(i.substring(t,n+1)),i=i.substr(n+1)}return"<span style=color:#a10d5f>"+o+i+"</span>"}function p(e){var t,n=e,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)t=n.search(/!important/i),a+=n.substring(0,t),a+=m(n.substring(t,t+10)),n=n.substr(t+10);var r=a+n;return";"==r.substr(r.length-1,1)&&"&nbsp;"!=r.substr(r.length-6,6)&&"&lt;"!=r.substr(r.length-4,4)&&"&gt;"!=r.substr(r.length-4,4)&&"&amp;"!=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 m(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function u(e){var t,n,a,r,i,o,c,d,s,p,m=e,u="",U=[],M="";for(t=0;t<m.length;t++)"\\"==(n=m.substr(t,1))&&(U.push(m.substr(t,2)),n="W3JSESCAPE",t++),M+=n;for(m=M,1;a=A(m,"'","'",b),r=A(m,'"','"',b),i=A(m,/\/\*/,"*/",l),o=A(m,/\/\//,"<br>",l),d=k(m,f),c=w("js",m,x),p=g(m,h),-1!=Math.max(d[0],a[0],r[0],i[0],o[0],c[0],p[0])&&-1!=(s=v(d,a,r,i,o,c,p))[0];)s[0]>-1&&(u+=m.substring(0,s[0]),u+=s[2](m.substring(s[0],s[1])),m=m.substr(s[1]));for(m=u+m,t=0;t<U.length;t++)m=m.replace("W3JSESCAPE",U[t]);return"<span style=color:black>"+m+"</span>"}function b(e){return"<span style=color:brown>"+e+"</span>"}function x(e){return"<span style=color:mediumblue>"+e+"</span>"}function f(e){return"<span style=color:red>"+e+"</span>"}function h(e){return"<span style=color:black>"+e+"</span>"}function g(e,t){var n,a,r,i,o=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((i=e.indexOf("."))>-1)for(n=e.substr(i+1),r=0;r<n.length;r++){var c=n[r];for(a=0;a<o.length;a++)if(c.indexOf(o[a])>-1)return[i+1,r+i+1,t]}return[-1,-1,t]}function v(e,t,n,a,r,i,o){var c,l=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==l.length||arguments[c][0]<l[0])&&(l=arguments[c]);return 0==l.length&&(l=arguments[c]),l}function w(e,t,n){var a,r,i,o,c=-1,l=-1;for("js"==e&&(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==c||r<c)&&(l=(c=r)+o[a].length));return[c,l,n]}function A(e,t,n,a){var r,i;return r=e.search(t),-1==(i=e.indexOf(n,r+n.length))&&(i=e.length),[r,i+n.length,a]}function k(e,t){var n,a,r,i,o,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(n=0;n<e.length;n++)for(a=0;a<c.length;a++)if((r=e.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==e.substr(n-1,1)||"E"==e.substr(n-1,1)))continue;if(l<(i=n)&&(o=e.substring(l,i),!isNaN(o)))return[l,i,t];l=n+=c[a].length,n-=1;break}return[-1,-1,t]}}},26:function(e,t){e.exports=ReactDOM},391:function(e,t,n){"use strict";n.r(t);var a=n(20),r=n(83);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-collection-list",useShadow:!1},plugins:[]})},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(30),r=n(0),i=n.n(r),o=n(5),c=n(1),l=o.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),d=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;}"],c.b.smallDesktop2Min),s=n(25),p=n(24),m=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,o=void 0===r?"default":r,c=e.link,m=void 0!==c&&c,u=e.disabled,b=void 0!==u&&u,x=e.datatoggle,f=void 0===x?"":x,h=e.datatarget,g=void 0===h?"":h,v=e.linkHref,w=e.target,A=void 0===w?"_self":w,k=e.downloadLink,U=void 0!==k&&k,M=e.inverse,y=void 0!==M&&M,E=e.icon,D=void 0===E?"":E,N=e.iconAlt,O=void 0===N?"":N,P=e.dataItemName,j=void 0===P?"":P,S=e.id,L=void 0===S?"":S,T=e.type,_=void 0===T?"button":T,C=e.showDisabledMessage,W=void 0===C?"":C,z=e.ariaLabel,I=void 0===z?"":z,R=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return i.a.createElement(l,null,i.a.createElement("div",{className:"".concat(b&&W&&"disabled-button-parent")},m?i.a.createElement("a",{href:v,download:U,target:A,"data-item-name":j,id:L,"aria-label":I},i.a.createElement(d,Object.assign({role:"none",disabled:b,classStyle:"".concat(o)},R,{type:_,className:y?"btn-inverse btn btn-success":"btn btn-success"}),""!=D?i.a.createElement("div",{"data-toggle":f,"data-target":g},i.a.createElement("img",{loading:"lazy",className:"button-icon",src:D,alt:O}),i.a.createElement("span",null,n)):i.a.createElement("span",null,n))):i.a.createElement(d,Object.assign({disabled:b,classStyle:o,className:y?"btn-inverse btn btn-success":"btn btn-success",id:L,"data-item-name":j,type:_},R),i.a.createElement("span",null,n)),b&&W&&i.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:i.a.createElement(p.a,{id:"button-tooltip"},i.a.createElement("div",{className:"p-1 amarr-h6"},W))},i.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(5),r=n(0),i=n.n(r),o=function(e){var t=e.setter,n=t.componentThemes,r=t.selectedTheme;return i.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var e=r.match(/\d+/g).map(Number),t=Object.keys(n).find((function(t){return!(!Array.isArray(e)||1!==e.length)&&(t.includes(e[0])&&n[t])}));return t?n["".concat(t)]:n.theme1}},e.children)}},83:function(e,t,n){"use strict";var a=n(3),r=n(0),i=n.n(r),o=n(2),c=n(5),l=n(1),d=c.default.section.withConfig({displayName:"styles__Content",componentId:"s7465q-0"})([".collection-card{display:flex;flex-flow:column nowrap;border-radius:var(--border-radius);a{color:var(--text-color);}.new-symbol{background-color:var(--bg-symbol);padding:4px 10px;text-align:var(--text-center);font-weight:var(--font-weight-semi-bold);}&-body{border-top:solid 1px var(--border-color);background-color:var(--grey);padding:18px 18px 0px 18px;color:var(--text-color);}.p-w-r{.pr-category-snippet{display:flex;align-items:center;.pr-snippet-stars{background:none;}}}.item-description p{min-height:var(--font-size-ch);}.image-container{background-color:var(--bg-main);padding:10px;display:flex;align-items:center;justify-content:center;@media ","{height:250px;}@media ","{height:350px;}img{@media ","{max-height:220px;}@media ","{max-height:350px;padding:30px 10px;}}}.commercial-image-container{height:225px;img{padding:0px !important;}@media screen and "," and ","{height:182px;.collection-img{max-height:170px !important;}}@media screen and "," and ","{height:165px;.collection-img{max-height:155px !important;}}@media screen and "," and ","{height:155px;.collection-img{max-height:145px !important;}}@media screen and "," and ","{height:172px;.collection-img{max-height:162px !important;}}@media screen ","{height:194px;.collection-img{max-height:180px !important;}}}}"],l.b.tabletPortraitAndUp,l.b.largeDesktopMin,l.b.tabletPortraitAndUp,l.b.largeDesktopMin,l.b.mediumDesktopMin2,l.b.mediumDesktopAndUp3Max,l.b.mediumDesktopMin,l.b.mediumDesktopAndUpMax,l.b.desktopMin,l.b.smallDesktopAndUp2Max,l.b.tabletLandscapeAndUp,l.b.desktopAndUpMax,l.b.desktop2Max),s=function(e){var t,n,a,r,o,c=e.item,l=e.content;return i.a.createElement(d,null,i.a.createElement("section",{className:"collection-card"},i.a.createElement("div",{className:"".concat("commercial"===l.variation&&"commercial-image-container"," text-center image-container")},i.a.createElement("a",{href:c.url,"aria-label":(null===c||void 0===c||null===(t=c.image)||void 0===t?void 0:t.altText)?c.image.altText:"product-img"},i.a.createElement("img",{loading:"lazy",className:"collection-img",src:(null===c||void 0===c||null===(n=c.image)||void 0===n?void 0:n.url)?c.image.url:"",alt:(null===c||void 0===c||null===(a=c.image)||void 0===a?void 0:a.altText)&&""!==(null===c||void 0===c||null===(r=c.image)||void 0===r?void 0:r.altText)?null===c||void 0===c||null===(o=c.image)||void 0===o?void 0:o.altText:"commercial"===l.variation?"".concat(c.productName," Commercial Door"):"".concat(c.productName," Garage Door")}))),i.a.createElement("div",{className:"collection-card-body"},i.a.createElement("div",{className:"d-flex justify-content-between align-items-center mb-2"},i.a.createElement("h3",{className:"amarr-h5"},i.a.createElement("a",{href:c.url,"aria-label":c.productName},c.productName)),(null===c||void 0===c?void 0:c.isNew)&&i.a.createElement("span",{className:"new-symbol pl-2 body-text3"},l.newFlagText?l.newFlagText:"New")),"operators"===l.variation?i.a.createElement("div",{className:"body-text2"},i.a.createElement("p",null,c.brand," ",i.a.createElement("br",null),c.duty," ",i.a.createElement("br",null),c.warranty)):i.a.createElement("div",null,i.a.createElement("div",{id:c.powerReviewsId,className:"mb-2"}),i.a.createElement("div",{className:"body-text2 ".concat("residential"===l.variation&&"item-description"," ").concat("commercial"===l.variation&&"commercial-item-description mb-3"),dangerouslySetInnerHTML:{__html:c.shortDescription}})))))},p=n(6),m=n.n(p),u=n(15),b=n(17),x=n(7),f=n(12),h=n.n(f),g={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},v=n(11);function w(){var e=Object(v.a)(["\n .pr-snippet-stars-container {\n display: inline !important;\n margin-right: 10px;\n }\n .read-review-link {\n visibility: hidden;\n font-size: 1px;\n }\n .pr-snippet-write-review-link,\n span.pr-snippet-review-count {\n display: none;\n }\n h1 {\n font-size: var(--font-size-h1);\n font-weight: var(--font-weight-semi-bold);\n color: var(--text-color);\n }\n .collection-list-container {\n display: flex;\n flex-wrap: wrap;\n .collection-list-item {\n background-color: rgb(240, 240, 240);\n flex: 0 0 33%;\n max-width: calc(33% - 32px);\n border: solid 1px var(--border-color);\n border-radius: var(--border-radius);\n padding: 1px 0px;\n @media screen and "," {\n flex: 0 0 100%;\n max-width: 100%;\n }\n @media screen and "," and "," {\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 33%;\n max-width: calc(33% - 21px);\n }\n @media screen and "," and "," {\n flex: 0 0 33%;\n max-width: calc(33% - 24px);\n }\n .content-container {\n justify-content: space-between;\n flex-direction: column;\n display: flex;\n height: 100%;\n .button-container {\n padding-left: 18px;\n padding-bottom: 18px;\n }\n }\n }\n\n .commercial-list-item,\n .operators-list-item {\n @media screen and "," {\n flex: 0 0 100%;\n max-width: 100%;\n }\n @media screen and "," and "," {\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 24px);\n }\n @media screen and "," and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 27px);\n }\n @media screen and "," {\n flex: 0 0 25%;\n max-width: calc(25% - 36px);\n }\n }\n }\n .collection-list-container > * {\n @media screen and "," {\n margin: 24px 32px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," and "," {\n margin: 28px 24px 0 0px;\n }\n @media screen and "," {\n margin: 32px 32px 0 0px;\n }\n }\n .collection-list-container {\n @media screen and "," {\n margin: -24px 0px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -24px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -24px 0 0px;\n }\n @media screen and "," and "," {\n margin: -28px -36px 0 0px;\n }\n @media screen and "," {\n margin: -32px -48px 0 0px;\n }\n }\n .flex-grow-1 {\n flex-grow: 1;\n }\n "]);return w=function(){return e},e}var A=c.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1066wsb-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(c.css)(w(),l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin,l.b.mobileMax,l.b.tabletPortraitAndUp,l.b.tabletPortraitMax,l.b.tabletLandscapeAndUp,l.b.desktopMax2,l.b.desktopMin2,l.b.mediumDesktopAndUp3Max,l.b.largeDesktopMin)})),k=n(8),U=n(9),M=n(10),y={label:"",color:"",priceLabel:"",warrantyLabel:"",rValueLabel:"",collectionListApiPath:"",variation:"",headingStyle:"",pageSize:0,newFlagText:""},E=function(e){var t=h()({},y,Object(o.g)(e.content)),n=Object(r.useState)([]),c=Object(a.a)(n,2),l=c[0],d=c[1],p=Object(r.useState)(!1),f=Object(a.a)(p,2),v=f[0],w=f[1],E=Object(r.useState)(0),D=Object(a.a)(E,2),N=D[0],O=D[1],P=Object(r.useState)(0),j=Object(a.a)(P,2),S=j[0],L=j[1];Object(r.useEffect)((function(){"operators"===(null===t||void 0===t?void 0:t.variation)&&T(),"commercial"===t.variation&&_(),"residential"===t.variation&&C(),Object(o.A)().subscribe((function(e){w(e)}))}),[]);var T=function(){L((function(e){return e+1})),Object(o.b)(),m.a.get(t.collectionListApiPath+"."+(S+1)+".json").then((function(e){d((function(t){return t.concat(e.data.operatorList)})),O(e.data.totalResults),Object(o.P)()}),(function(e){Object(o.P)()})).catch((function(e){Object(o.P)()}))},_=function(){Object(o.b)(),m.a.get(t.collectionListApiPath).then((function(e){d(e.data);var t=[];e.data.forEach((function(e){e.doorList.forEach((function(e){t.push(e)}))})),W(t),Object(o.P)()}),(function(e){Object(o.P)()})).catch((function(e){Object(o.P)()}))},C=function(){Object(o.b)(),m.a.get(t.collectionListApiPath).then((function(e){d(e.data),W(e.data),Object(o.P)()}),(function(e){Object(o.P)()})).catch((function(e){Object(o.P)()}))},W=function(e){if(e&&e.length>0){var t="";e.forEach((function(e){t=t+'{\n "read_services_base_url": "stable",\n "api_key": `'+b.a.PowerReviewApi+'`,\n "locale": `'+b.a.Locale+'`,\n "merchant_group_id": `'+b.a.MerchantGroupId+'`,\n "merchant_id": `'+b.a.ProductMerchantId+'`,\n "page_id": `'+e.powerReviewsId+'`,\n "on_read_reviews_click": function () {\n var a = document.getElementById(`'+e.powerReviewsId+'-click`)\n a.click()\n },\n "components": {\n "ReviewSnippet": `'+e.powerReviewsId+"`,\n }\n },"}));var n="POWERREVIEWS.display.render(["+t+"]);",a=document.createElement("script");a.innerHTML=n,setTimeout((function(){document.body.appendChild(a),setTimeout((function(){var e=document.querySelectorAll(".pr-snippet-rating-decimal");e&&e.length>0&&e.forEach((function(e){var t=Number(e.textContent).toFixed(1);e.innerText=t}))}),3e3)}),1500)}};return i.a.createElement(k.a,{setter:{componentThemes:g,selectedTheme:e.theme}},i.a.createElement(U.a,null,i.a.createElement(M.a,null,i.a.createElement(A,{isReversed:!1},i.a.createElement("div",{className:"container"},v&&i.a.createElement(u.a,null),"commercial"===t.variation&&i.a.createElement("div",{className:"row"},l&&l.length>0&&l.map((function(e,n){return i.a.createElement("div",{key:n,className:"col-12"},i.a.createElement("div",{className:"text-center mb-3"},"h1"===t.headingStyle&&i.a.createElement("h1",null,e.heading),"h2"===t.headingStyle&&i.a.createElement("h2",null,e.heading),"h3"===t.headingStyle&&i.a.createElement("h3",null,e.heading),"h4"===t.headingStyle&&i.a.createElement("h4",null,e.heading),"h5"===t.headingStyle&&i.a.createElement("h5",null,e.heading),"h6"===t.headingStyle&&i.a.createElement("h6",null,e.heading)),i.a.createElement("div",{className:"collection-list-container ".concat(l.length-1===n?"mb-4 mb-lg-5":"mb-5")},e.doorList&&e.doorList.length>0&&e.doorList.map((function(e,n){return i.a.createElement("div",{className:"collection-list-item commercial-list-item d-flex flex-column",key:n},i.a.createElement("div",{className:"flex-grow-1"},i.a.createElement(s,{item:e,key:n,content:t}),i.a.createElement("a",{className:"read-review-link",id:"".concat(e.powerReviewsId,"-click"),href:"".concat(e.url,"#reviewsTab")},"1")),i.a.createElement("div",{className:"pb-2 px-3 pt-3"},i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},i.a.createElement("h4",{className:"amarr-h6"},t.rValueLabel," :")),i.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},i.a.createElement("h4",{className:"amarr-h6 font-weight-normal "},e.rValue))),i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},i.a.createElement("h4",{className:"amarr-h6"},t.warrantyLabel," :")),i.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},i.a.createElement("h4",{className:"amarr-h6 font-weight-normal"},e.warranty))),"commercial"===t.variation&&i.a.createElement("div",{className:"row"},i.a.createElement("div",{className:"col-md-6 col-lg-5 col-5"},i.a.createElement("h4",{className:"amarr-h6"},t.priceLabel," :")),i.a.createElement("div",{className:"col-md-6 col-lg-7 col-7"},i.a.createElement("h4",{className:"amarr-h6 font-weight-normal"},e.price)))))}))))}))),"residential"===t.variation&&i.a.createElement("div",{className:"collection-list-container mb-5 pb-2"},l&&l.length>0&&l.map((function(e,n){return i.a.createElement("div",{className:"collection-list-item",key:n},i.a.createElement("div",{className:"content-container"},i.a.createElement(s,{item:e,key:n,content:t}),i.a.createElement("a",{className:"read-review-link",id:"".concat(e.powerReviewsId,"-click"),href:"".concat(e.url,"#reviewsTab")},"1"),i.a.createElement("div",{className:"button-container"},i.a.createElement(x.a,{label:Object(o.i)(t.label),link:!0,linkHref:e.url,inverse:"inverse"===t.color,dataItemName:e.productName}))))}))),"operators"===t.variation&&i.a.createElement("div",{className:"mb-5 pb-2"},i.a.createElement("div",{className:"collection-list-container"},l&&l.length>0&&l.map((function(e,n){return i.a.createElement("div",{className:"collection-list-item operators-list-item",key:n},i.a.createElement(s,{item:e,key:n,content:t}))}))),l.length<N&&i.a.createElement("div",{className:"col-12 text-center mt-2"},i.a.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),T()},"aria-label":t.label},i.a.createElement(x.a,{label:Object(o.i)(t.label),link:!0,inverse:"inverse"===t.color})))))))))};E.defaultProps={theme:"",content:""};t.a=E},9:function(e,t,n){"use strict";var a=n(0),r=n.n(a),i=n(5),o=n(21),c=Object(a.createContext)({});t.a=function(e){var t=!1;try{var n;t=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=t?[o.a]:[];return r.a.createElement(i.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:t}},e.children))}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assaabloy/amarr-wc-collection-list",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Web component - Collection-list",
5
5
  "type": "module",
6
6
  "main": "collection-list.js",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "author": "Nagarro",
13
13
  "license": "MIT",
14
- "gitHead": "9ccc02bd1b2f0af735bd5b5f4cffc36ebf6a1e1e"
14
+ "gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
15
15
  }