@assaabloy/amarr-wc-image 5.0.1 → 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/image.js +1 -1
- package/package.json +2 -2
package/image.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function n(n){for(var a,r,d=n[0],c=n[1],p=n[2],u=0,s=[];u<d.length;u++)r=d[u],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&s.push(i[r][0]),i[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);for(l&&l(n);s.length;)s.shift()();return o.push.apply(o,p||[]),e()}function e(){for(var t,n=0;n<o.length;n++){for(var e=o[n],a=!0,d=1;d<e.length;d++){var c=e[d];0!==i[c]&&(a=!1)}a&&(o.splice(n--,1),t=r(r.s=e[0]))}return t}var a={},i={52:0},o=[];function r(n){if(a[n])return a[n].exports;var e=a[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=t,r.c=a,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)r.d(e,a,function(n){return t[n]}.bind(null,a));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var p=0;p<d.length;p++)n(d[p]);var l=c;o.push([847,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"a",(function(){return a})),e.d(n,"b",(function(){return i}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920},i={mobileAndUpMin:"(min-width: ".concat(a.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(a.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(a.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(a.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(a.largeMobileAndUp-2,"px)"),largeMobileAndUp2:"(min-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(a.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(a.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(a.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(a.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(a.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(a.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(a.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(a.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(a.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(a.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(a.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(a.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(a.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(a.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(a.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(a.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(a.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(a.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(a.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(a.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(a.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(a.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(a.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(a.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(a.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(a.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(a.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(a.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(a.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(a.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(a.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(a.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(a.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(a.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(a.maxWidthAndUp+1,"px)")}},10:function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var a=e(0),i=e.n(a),o=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(t){return t.padding?"0 var(--grid-margin);":0}),(function(t){t.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),r=function(t){var n=t.className,e=t.children,a=t.maxWidth,r=void 0===a?1520:a,d=t.padding,c=void 0===d||d;return i.a.createElement(o,{className:n,maxWidth:r,padding:c},e)}},100:function(t,n,e){"use strict";var a=e(0),i=e.n(a),o=e(2),r=e(28),d=e(43),c=e(12),p=e.n(c),l={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},u=e(11),s=e(5),m=e(1);function x(){var t=Object(u.a)(["\n video {\n width: 100%;\n display: flex;\n }\n \n .video-display{\n height: 400px;\n }\n \n @media screen and "," {\n .video-large{\n display: none;\n }\n }\n @media screen and "," {\n .video-small{\n display: none;\n }\n }\n .image-container {\n span {\n display: block !important;\n }\n }\n \n @media "," {\n .video-display{\n height: 240px;\n }\n }\n \n @media "," {\n .video-display{\n height: 212px;\n }\n }\n "]);return x=function(){return t},t}var h=s.default.div.withConfig({displayName:"styles__Content",componentId:"cq1i01-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(s.css)(x(),m.b.mobileMax,m.b.tabletPortraitAndUp,m.b.largeMobileAndUpMax,m.b.smallMobileAndUpMax)})),f=e(8),w=e(9),A=e(10),U={image:{url:"",altText:""},video:{url:""},imageMobile:{url:"",altText:""},videoMobile:{url:""}},b=function(t){var n,e,a,c,u,s=p()({},U,Object(o.g)(t.content));return i.a.createElement(f.a,{setter:{componentThemes:l,selectedTheme:t.theme}},i.a.createElement(w.a,null,i.a.createElement(A.a,{padding:!1},i.a.createElement(h,{isReversed:!1},i.a.createElement(r.a,null),i.a.createElement(r.a,null),i.a.createElement("div",{className:"image-container large-screen-container "},(null===s||void 0===s||null===(n=s.imageMobile)||void 0===n?void 0:n.url)?i.a.createElement(d.a,{className:"img-responsive",src:s.imageMobile.url,fallback:"",alt:s.imageMobile.altText,sources:[{source:s.imageMobile.url,media:"(min-width: 320px)"},{source:s.image.url,media:"(min-width: 768px)"}]}):i.a.createElement(d.a,{className:"img-responsive",src:s.image.url,fallback:"",alt:s.image.altText,sources:[{source:s.image.url,media:"(min-width: 320px)"},{source:s.image.url,media:"(min-width: 768px)"}]}),(null===s||void 0===s||null===(e=s.video)||void 0===e?void 0:e.url)&&i.a.createElement("video",{preload:"none",className:"video-display ".concat((null===s||void 0===s||null===(a=s.videoMobile)||void 0===a?void 0:a.url)&&"video-large"),controls:!0,muted:!0,autoPlay:!0,loop:!0},i.a.createElement("source",{src:s.video.url})),(null===s||void 0===s||null===(c=s.videoMobile)||void 0===c?void 0:c.url)&&i.a.createElement("video",{preload:"none",className:"video-display ".concat((null===s||void 0===s||null===(u=s.videoMobile)||void 0===u?void 0:u.url)&&"video-small"),controls:!0,muted:!0,autoPlay:!0,loop:!0},i.a.createElement("source",{src:s.videoMobile.url}))),i.a.createElement(r.a,null)))))};b.defaultProps={theme:"",content:""};n.a=b},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return i})),e.d(n,"V",(function(){return o})),e.d(n,"i",(function(){return r})),e.d(n,"D",(function(){return d})),e.d(n,"G",(function(){return c})),e.d(n,"v",(function(){return p})),e.d(n,"B",(function(){return l})),e.d(n,"o",(function(){return u})),e.d(n,"r",(function(){return s})),e.d(n,"I",(function(){return m})),e.d(n,"H",(function(){return x})),e.d(n,"Q",(function(){return h})),e.d(n,"E",(function(){return f})),e.d(n,"u",(function(){return w})),e.d(n,"h",(function(){return A})),e.d(n,"t",(function(){return U})),e.d(n,"y",(function(){return b})),e.d(n,"w",(function(){return g})),e.d(n,"C",(function(){return M})),e.d(n,"s",(function(){return v})),e.d(n,"R",(function(){return k})),e.d(n,"q",(function(){return D})),e.d(n,"J",(function(){return P})),e.d(n,"F",(function(){return W})),e.d(n,"S",(function(){return E})),e.d(n,"m",(function(){return N})),e.d(n,"j",(function(){return j})),e.d(n,"n",(function(){return C})),e.d(n,"k",(function(){return z})),e.d(n,"l",(function(){return _})),e.d(n,"z",(function(){return T})),e.d(n,"L",(function(){return Z})),e.d(n,"x",(function(){return L})),e.d(n,"T",(function(){return S})),e.d(n,"U",(function(){return $})),e.d(n,"b",(function(){return H})),e.d(n,"O",(function(){return I})),e.d(n,"A",(function(){return R})),e.d(n,"a",(function(){return F})),e.d(n,"d",(function(){return J})),e.d(n,"f",(function(){return q})),e.d(n,"e",(function(){return G})),e.d(n,"X",(function(){return V})),e.d(n,"c",(function(){return B})),e.d(n,"W",(function(){return K})),e.d(n,"K",(function(){return Q})),e.d(n,"M",(function(){return X})),e.d(n,"N",(function(){return Y})),e.d(n,"p",(function(){return tt})),e.d(n,"P",(function(){return nt}));var a=e(4),i=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},r=function(t){return t.toUpperCase()},d=function(t){return t.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),p=new a.a(!1),l=new a.a(!1),u=new a.a(!1),s=new a.a(""),m=new a.a(!1),x=new a.a(!1),h=new a.a(!1),f=new a.a(!1),w=new a.a(!1),A=new a.a(!1),U=new a.a(""),b=new a.a(!0),g=new a.a(!0),M=new a.a(!0),v=new a.a(!0),k=new a.a(!0),D=new a.a(!0),P=new a.a({}),y=new a.a(!1),O=0,W=new a.a(!1),E=new a.a(""),N=new a.a(""),j=new a.a(""),C=new a.a(""),z=new a.a(""),_=new a.a(""),T=new a.a(""),Z=new a.a(""),L=new a.a(!1),S=new a.a(!1),$=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){O++,y.next(!0)}),0)}),I=function(){setTimeout((function(){O>0&&O--,0==O&&y.next(!1)}),0)},R=function(){return y.asObservable()},F=function(t){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(t)},J=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},G=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},V=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},B=function(t){return/^[0-9]*$/.test(t)},K=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},Q=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},X=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},Y=function(t,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},tt=function(t){var n={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:t.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:t.selectedHeight,glass:t.selectedGlass,collection:t.selectedCollection,print:!0,baseUrl:"",gplacement:t.selectedWindowPlacement,width:t.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return t.selectedColor&&(n.color=t.selectedColor),t.colorHex&&(n.colorHex=t.colorHex),t.colorZone&&(n.colorZone=t.colorZone),t.selectedConstruction&&(n.model=t.selectedConstruction),t.selectedWindowDesign&&(n.top=t.selectedWindowDesign),t.glazepattern&&(n.glazepattern=t.glazepattern),t.selectedHardware&&(n.hardware=t.selectedHardware),n},nt=function(t,n,e){var a="",i=t.split(n);return i.forEach((function(t,n){"undefined"!==t&&t&&(a+=t,n!==i.length-1&&(a+=e))})),a}},26:function(t,n){t.exports=ReactDOM},28:function(t,n,e){"use strict";e.d(n,"a",(function(){return p}));var a=e(23),i=e(0),o=e.n(i),r=e(5),d=e(1),c=r.default.div.withConfig({displayName:"styles__View",componentId:"zfm3w6-0"})([".divider{width:100%;height:6px;@media screen and ","{height:8px;}@media screen and ","{height:10px;}}"],d.b.mediumDesktopMin,d.b.largeDesktopMin),p=function(t){return Object(a.a)(t),o.a.createElement(c,null,o.a.createElement("div",{className:"divider"},"\xa0"))}},755:function(t,n,e){"use strict";e.r(n);var a=e(21),i=e(100);n.default=a.a.create({component:i.a,configuration:{tagname:"amarr-image",useShadow:!1},plugins:[]})},8:function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var a=e(5),i=e(0),o=e.n(i),r=function(t){var n=t.setter,e=n.componentThemes,i=n.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return e.theme1;var t=i.match(/\d+/g).map(Number),n=Object.keys(e).find((function(n){return!(!Array.isArray(t)||1!==t.length)&&(n.includes(t[0])&&e[n])}));return n?e["".concat(n)]:e.theme1}},t.children)}},9:function(t,n,e){"use strict";var a=e(0),i=e.n(a),o=e(5),r=e(20),d=e.n(r),c=Object(a.createContext)({});n.a=function(t){var n=!1;try{var e;n=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(r){console.log(r)}var a=n?[d.a]:[];return i.a.createElement(o.StyleSheetManager,{stylisPlugins:a},i.a.createElement(c.Provider,{value:{rtl:n}},t.children))}}});
|
|
1
|
+
!function(t){function n(n){for(var r,o,d=n[0],s=n[1],l=n[2],p=0,u=[];p<d.length;p++)o=d[p],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&u.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r]);for(c&&c(n);u.length;)u.shift()();return i.push.apply(i,l||[]),e()}function e(){for(var t,n=0;n<i.length;n++){for(var e=i[n],r=!0,d=1;d<e.length;d++){var s=e[d];0!==a[s]&&(r=!1)}r&&(i.splice(n--,1),t=o(o.s=e[0]))}return t}var r={},a={52:0},i=[];function o(n){if(r[n])return r[n].exports;var e=r[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=t,o.c=r,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,n){if(1&n&&(t=o(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)o.d(e,r,function(n){return t[n]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],s=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var c=s;i.push([524,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return a}));var r={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},a={mobileAndUpMin:"(min-width: ".concat(r.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(r.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(r.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(r.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(r.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(r.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(r.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(r.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(r.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(r.largeMobileAndUp-2,"px)"),largeMobileAndUp2:"(min-width: ".concat(r.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(r.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(r.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(r.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(r.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(r.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(r.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(r.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(r.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(r.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(r.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(r.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(r.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(r.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(r.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(r.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(r.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(r.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(r.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(r.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(r.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(r.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(r.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(r.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(r.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(r.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(r.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(r.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(r.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(r.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(r.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(r.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(r.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(r.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(r.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(r.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(r.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(r.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(r.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(r.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(r.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(r.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(r.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(r.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(r.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(r.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(r.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(r.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(r.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(r.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(r.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(r.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(r.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(r.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(r.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(r.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(r.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(r.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(r.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(r.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(r.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(r.maxWidthAndUp+1,"px)")}},10:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(0),a=e.n(r),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(t){return t.padding?"0 var(--grid-margin);":0}),(function(t){t.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),o=function(t){var n=t.className,e=t.children,r=t.maxWidth,o=void 0===r?1520:r,d=t.padding,s=void 0===d||d;return a.a.createElement(i,{className:n,maxWidth:o,padding:s},e)}},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return a})),e.d(n,"W",(function(){return i})),e.d(n,"i",(function(){return o})),e.d(n,"E",(function(){return d})),e.d(n,"H",(function(){return s})),e.d(n,"v",(function(){return l})),e.d(n,"C",(function(){return c})),e.d(n,"o",(function(){return p})),e.d(n,"r",(function(){return u})),e.d(n,"J",(function(){return m})),e.d(n,"I",(function(){return f})),e.d(n,"R",(function(){return h})),e.d(n,"F",(function(){return x})),e.d(n,"u",(function(){return b})),e.d(n,"h",(function(){return g})),e.d(n,"t",(function(){return w})),e.d(n,"y",(function(){return A})),e.d(n,"w",(function(){return U})),e.d(n,"D",(function(){return v})),e.d(n,"s",(function(){return M})),e.d(n,"S",(function(){return k})),e.d(n,"q",(function(){return y})),e.d(n,"K",(function(){return D})),e.d(n,"G",(function(){return E})),e.d(n,"T",(function(){return W})),e.d(n,"m",(function(){return C})),e.d(n,"j",(function(){return N})),e.d(n,"n",(function(){return S})),e.d(n,"k",(function(){return T})),e.d(n,"l",(function(){return j})),e.d(n,"z",(function(){return z})),e.d(n,"M",(function(){return L})),e.d(n,"x",(function(){return _})),e.d(n,"U",(function(){return Z})),e.d(n,"V",(function(){return $})),e.d(n,"b",(function(){return H})),e.d(n,"P",(function(){return I})),e.d(n,"A",(function(){return R})),e.d(n,"a",(function(){return J})),e.d(n,"d",(function(){return F})),e.d(n,"f",(function(){return q})),e.d(n,"e",(function(){return G})),e.d(n,"Y",(function(){return V})),e.d(n,"c",(function(){return Y})),e.d(n,"X",(function(){return B})),e.d(n,"L",(function(){return K})),e.d(n,"N",(function(){return Q})),e.d(n,"O",(function(){return X})),e.d(n,"p",(function(){return tt})),e.d(n,"Q",(function(){return nt})),e.d(n,"B",(function(){return et}));var r=e(4),a=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},i=function(t){return btoa(unescape(encodeURIComponent(t)))},o=function(t){return t.toUpperCase()},d=function(t){return t.replaceAll(" ","-").toLowerCase()},s=new r.a(!1),l=new r.a(!1),c=new r.a(!1),p=new r.a(!1),u=new r.a(""),m=new r.a(!1),f=new r.a(!1),h=new r.a(!1),x=new r.a(!1),b=new r.a(!1),g=new r.a(!1),w=new r.a(""),A=new r.a(!0),U=new r.a(!0),v=new r.a(!0),M=new r.a(!0),k=new r.a(!0),y=new r.a(!0),D=new r.a({}),O=new r.a(!1),P=0,E=new r.a(!1),W=new r.a(""),C=new r.a(""),N=new r.a(""),S=new r.a(""),T=new r.a(""),j=new r.a(""),z=new r.a(""),L=new r.a(""),_=new r.a(!1),Z=new r.a(!1),$=new r.a(!1),H=(new r.a(!1),new r.a(!1),function(){setTimeout((function(){P++,O.next(!0)}),0)}),I=function(){setTimeout((function(){P>0&&P--,0==P&&O.next(!1)}),0)},R=function(){return O.asObservable()},J=function(t){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(t)},F=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},G=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},V=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},Y=function(t){return/^[0-9]*$/.test(t)},B=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},K=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},Q=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},X=function(t,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},tt=function(t){var n={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:t.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:t.selectedHeight,glass:t.selectedGlass,collection:t.selectedCollection,print:!0,baseUrl:"",gplacement:t.selectedWindowPlacement,width:t.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return t.selectedColor&&(n.color=t.selectedColor),t.colorHex&&(n.colorHex=t.colorHex),t.colorZone&&(n.colorZone=t.colorZone),t.selectedConstruction&&(n.model=t.selectedConstruction),t.selectedWindowDesign&&(n.top=t.selectedWindowDesign),t.glazepattern&&(n.glazepattern=t.glazepattern),t.selectedHardware&&(n.hardware=t.selectedHardware),n},nt=function(t,n,e){var r="",a=t.split(n);return a.forEach((function(t,n){"undefined"!==t&&t&&(r+=t,n!==a.length-1&&(r+=e))})),r};function et(t,n){var e=n||"html",r=t;return e||(e="html"),"html"==e&&(r=function(t){var n,e,r,o,d,c=t,p="";n=a(c,"<!--","-->",s,"W3HTMLCOMMENTPOS"),c=n.rest;for(;c.indexOf("<")>-1;)o="",e=c.indexOf("<"),"<STYLE"==c.substr(e,9).toUpperCase()&&(o="css"),"<SCRIPT"==c.substr(e,10).toUpperCase()&&(o="javascript"),-1==(r=c.indexOf(">",e))&&(r=c.length),p+=c.substring(0,e),p+=i(c.substring(e,r+4)),c=c.substr(r+4),"css"==o&&(r=c.indexOf("</style>"))>-1&&(p+=l(c.substring(0,r)),c=c.substr(r)),"javascript"==o&&(r=c.indexOf("</script>"))>-1&&(p+=m(c.substring(0,r)),c=c.substr(r));for(c=p+c,d=0;d<n.arr.length;d++)c=c.replace("W3HTMLCOMMENTPOS",n.arr[d]);return c}(r)),"css"==e&&(r=l(r)),"js"==e&&(r=m(r)),r;function a(t,n,e,r,a){for(var i,o,d="",s=[];t.search(n)>-1;)i=t.search(n),-1==(o=t.indexOf(e,i))&&(o=t.length),a?(s.push(r(t.substring(i,o+e.length))),t=t.substring(0,i)+a+t.substr(o+e.length)):(d+=t.substring(0,i),d+=r(t.substring(i,o+e.length)),t=t.substr(o+e.length));return{rest:d+t,arr:s}}function i(t){for(var n,e,r,a=t,i="";a.search(/(\s|<br>)/)>-1;)n=a.search(/(\s|<br>)/),-1==(e=a.indexOf(">"))&&(e=a.length),i+=a.substring(0,n),i+=o(a.substring(n,e)),a=a.substr(e);return">"==(r="<span style=color:grey><</span>"+(r=i+a).substring(4)).substr(r.length-4,4)&&(r=r.substring(0,r.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+r+"</span>"}function o(t){for(var n,e,r,a,i,o=t,s="";o.indexOf("=")>-1;)e=-1,n=o.indexOf("="),r=o.indexOf("'",n),a=o.indexOf('"',n),(i=o.indexOf(" ",n+2))>-1&&(i<r||-1==r)&&(i<a||-1==a)?e=o.indexOf(" ",n):a>-1&&(a<r||-1==r)&&(a<i||-1==i)?e=o.indexOf('"',o.indexOf('"',n)+1):r>-1&&(r<a||-1==a)&&(r<i||-1==i)&&(e=o.indexOf("'",o.indexOf("'",n)+1)),(!e||-1==e||e<n)&&(e=o.length),s+=o.substring(0,n),s+=d(o.substring(n,e+1)),o=o.substr(e+1);return"<span style=color:green>"+s+o+"</span>"}function d(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function s(t){return"<span style=color:green>"+t+"</span>"}function l(t){var n,e,r,i,o,d,l,p=t,u="";for(p=(r=a(p,/\/\*/,"*/",s,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(n=p.search("{"),o=p.substr(n+1),l=1,d=0,i=0;i<o.length&&("{"==o.substr(i,1)&&(l++,d++),"}"==o.substr(i,1)&&l--,0!=l);i++);for(0!=l&&(d=0),e=n,i=0;i<=d;i++)e=p.indexOf("}",e+1);-1==e&&(e=p.length),u+=p.substring(0,n+1),u+=c(p.substring(n+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<r.arr.length;i++)p=p.replace("W3CSSCOMMENTPOS",r.arr[i]);return"<span style=color:green>"+p+"</span>"}function c(t){var n,e,r,a,i=t,o="";if(i.indexOf("{")>-1)return l(i);for(;i.search(":")>-1;){for(a=!0,r=n=i.search(":");1==a;)a=!1,e=i.indexOf(";",r)," "==i.substring(e-5,e+1)&&(a=!0,r=e+1);-1==e&&(e=i.length),o+=i.substring(0,n),o+=p(i.substring(n,e+1)),i=i.substr(e+1)}return"<span style=color:#a10d5f>"+o+i+"</span>"}function p(t){var n,e=t,r="";for(e="<span style=color:grey>:</span>"+e.substring(1);e.search(/!important/i)>-1;)n=e.search(/!important/i),r+=e.substring(0,n),r+=u(e.substring(n,n+10)),e=e.substr(n+10);var a=r+e;return";"==a.substr(a.length-1,1)&&" "!=a.substr(a.length-6,6)&&"<"!=a.substr(a.length-4,4)&&">"!=a.substr(a.length-4,4)&&"&"!=a.substr(a.length-5,5)&&(a=a.substring(0,a.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+a+"</span>"}function u(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var n,e,r,a,i,o,d,l,c,p,u=t,m="",M=[],k="";for(n=0;n<u.length;n++)"\\"==(e=u.substr(n,1))&&(M.push(u.substr(n,2)),e="W3JSESCAPE",n++),k+=e;for(u=k,1;r=U(u,"'","'",f),a=U(u,'"','"',f),i=U(u,/\/\*/,"*/",s),o=U(u,/\/\//,"<br>",s),l=v(u,x),d=A("js",u,h),p=g(u,b),-1!=Math.max(l[0],r[0],a[0],i[0],o[0],d[0],p[0])&&-1!=(c=w(l,r,a,i,o,d,p))[0];)c[0]>-1&&(m+=u.substring(0,c[0]),m+=c[2](u.substring(c[0],c[1])),u=u.substr(c[1]));for(u=m+u,n=0;n<M.length;n++)u=u.replace("W3JSESCAPE",M[n]);return"<span style=color:black>"+u+"</span>"}function f(t){return"<span style=color:brown>"+t+"</span>"}function h(t){return"<span style=color:mediumblue>"+t+"</span>"}function x(t){return"<span style=color:red>"+t+"</span>"}function b(t){return"<span style=color:black>"+t+"</span>"}function g(t,n){var e,r,a,i,o=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((i=t.indexOf("."))>-1)for(e=t.substr(i+1),a=0;a<e.length;a++){var d=e[a];for(r=0;r<o.length;r++)if(d.indexOf(o[r])>-1)return[i+1,a+i+1,n]}return[-1,-1,n]}function w(t,n,e,r,a,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(t,n,e){var r,a,i,o,d=-1,s=-1;for("js"==t&&(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"]),r=0;r<o.length;r++)(a=n.indexOf(o[r]))>-1&&(i=/\W/g,n.substr(a+o[r].length,1).match(i)&&n.substr(a-1,1).match(i)&&a>-1&&(-1==d||a<d)&&(s=(d=a)+o[r].length));return[d,s,e]}function U(t,n,e,r){var a,i;return a=t.search(n),-1==(i=t.indexOf(e,a+e.length))&&(i=t.length),[a,i+e.length,r]}function v(t,n){var e,r,a,i,o,d=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],s=0;for(e=0;e<t.length;e++)for(r=0;r<d.length;r++)if((a=t.substr(e,d[r].length))==d[r]){if("-"==a&&("e"==t.substr(e-1,1)||"E"==t.substr(e-1,1)))continue;if(s<(i=e)&&(o=t.substring(s,i),!isNaN(o)))return[s,i,n];s=e+=d[r].length,e-=1;break}return[-1,-1,n]}}},26:function(t,n){t.exports=ReactDOM},28:function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));var r=e(23),a=e(0),i=e.n(a),o=e(5),d=e(1),s=o.default.div.withConfig({displayName:"styles__View",componentId:"zfm3w6-0"})([".divider{width:100%;height:6px;@media screen and ","{height:8px;}@media screen and ","{height:10px;}}"],d.b.mediumDesktopMin,d.b.largeDesktopMin),l=function(t){return Object(r.a)(t),i.a.createElement(s,null,i.a.createElement("div",{className:"divider"},"\xa0"))}},433:function(t,n,e){"use strict";e.r(n);var r=e(20),a=e(99);n.default=r.a.create({component:a.a,configuration:{tagname:"amarr-image",useShadow:!1},plugins:[]})},8:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(5),a=e(0),i=e.n(a),o=function(t){var n=t.setter,e=n.componentThemes,a=n.selectedTheme;return i.a.createElement(r.ThemeProvider,{theme:function(){if(!a)return e.theme1;var t=a.match(/\d+/g).map(Number),n=Object.keys(e).find((function(n){return!(!Array.isArray(t)||1!==t.length)&&(n.includes(t[0])&&e[n])}));return n?e["".concat(n)]:e.theme1}},t.children)}},9:function(t,n,e){"use strict";var r=e(0),a=e.n(r),i=e(5),o=e(21),d=Object(r.createContext)({});n.a=function(t){var n=!1;try{var e;n=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(s){console.log(s)}var r=n?[o.a]:[];return a.a.createElement(i.StyleSheetManager,{stylisPlugins:r},a.a.createElement(d.Provider,{value:{rtl:n}},t.children))}},99:function(t,n,e){"use strict";var r=e(0),a=e.n(r),i=e(2),o=e(28),d=e(43),s=e(12),l=e.n(s),c={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=e(11),u=e(5),m=e(1);function f(){var t=Object(p.a)(["\n video {\n width: 100%;\n display: flex;\n }\n \n .video-display{\n height: 400px;\n }\n \n @media screen and "," {\n .video-large{\n display: none;\n }\n }\n @media screen and "," {\n .video-small{\n display: none;\n }\n }\n .image-container {\n span {\n display: block !important;\n }\n }\n \n @media "," {\n .video-display{\n height: 240px;\n }\n }\n \n @media "," {\n .video-display{\n height: 212px;\n }\n }\n "]);return f=function(){return t},t}var h=u.default.div.withConfig({displayName:"styles__Content",componentId:"cq1i01-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(u.css)(f(),m.b.mobileMax,m.b.tabletPortraitAndUp,m.b.largeMobileAndUpMax,m.b.smallMobileAndUpMax)})),x=e(8),b=e(9),g=e(10),w={image:{url:"",altText:""},video:{url:""},imageMobile:{url:"",altText:""},videoMobile:{url:""}},A=function(t){var n,e,r,s,p,u=l()({},w,Object(i.g)(t.content));return a.a.createElement(x.a,{setter:{componentThemes:c,selectedTheme:t.theme}},a.a.createElement(b.a,null,a.a.createElement(g.a,{padding:!1},a.a.createElement(h,{isReversed:!1},a.a.createElement(o.a,null),a.a.createElement(o.a,null),a.a.createElement("div",{className:"image-container large-screen-container "},(null===u||void 0===u||null===(n=u.imageMobile)||void 0===n?void 0:n.url)?a.a.createElement(d.a,{className:"img-responsive",src:u.imageMobile.url,fallback:"",alt:u.imageMobile.altText,sources:[{source:u.imageMobile.url,media:"(min-width: 320px)"},{source:u.image.url,media:"(min-width: 768px)"}]}):a.a.createElement(d.a,{className:"img-responsive",src:u.image.url,fallback:"",alt:u.image.altText,sources:[{source:u.image.url,media:"(min-width: 320px)"},{source:u.image.url,media:"(min-width: 768px)"}]}),(null===u||void 0===u||null===(e=u.video)||void 0===e?void 0:e.url)&&a.a.createElement("video",{preload:"none",className:"video-display ".concat((null===u||void 0===u||null===(r=u.videoMobile)||void 0===r?void 0:r.url)&&"video-large"),controls:!0,muted:!0,autoPlay:!0,loop:!0},a.a.createElement("source",{src:u.video.url})),(null===u||void 0===u||null===(s=u.videoMobile)||void 0===s?void 0:s.url)&&a.a.createElement("video",{preload:"none",className:"video-display ".concat((null===u||void 0===u||null===(p=u.videoMobile)||void 0===p?void 0:p.url)&&"video-small"),controls:!0,muted:!0,autoPlay:!0,loop:!0},a.a.createElement("source",{src:u.videoMobile.url}))),a.a.createElement(o.a,null)))))};A.defaultProps={theme:"",content:""};n.a=A}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-image",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Web component - Image",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "image.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
|
|
15
15
|
}
|