@assaabloy/amarr-wc-image-text 5.0.3 → 5.0.5

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/imageText.js CHANGED
@@ -1 +1 @@
1
- !function(t){function n(n){for(var r,o,d=n[0],s=n[1],c=n[2],l=0,u=[];l<d.length;l++)o=d[l],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(p&&p(n);u.length;)u.shift()();return i.push.apply(i,c||[]),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={55: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 c=0;c<d.length;c++)n(d[c]);var p=s;i.push([527,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)}},122:function(t,n,e){"use strict";var r=e(0),a=e.n(r),i=e(2),o=e(12),d=e.n(o),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},c=e(11),p=e(5),l=e(1);function u(){var t=Object(c.a)(["\n .image-text-container {\n display: flex;\n align-items: center;\n // gap: 30px;\n padding-bottom: 17px;\n .text-container {\n max-width: 73.5%;\n }\n p{\n margin-bottom: 0px;\n }\n }\n .margin{\n margin-right: 30px;\n }\n @media "," and "," {\n .img-container {\n max-width: 14%;\n }\n }\n \n @media screen and ","{\n .margin{\n padding-bottom: 10px;\n margin-right: 0px;\n margin-left: 0px;\n }\n .image-text-container {\n display: block;\n .text-container {\n max-width: 100%;\n }\n }\n .image-text-container-mobile-inline{\n display: flex;\n .text-container{\n width: 80%;\n }\n .margin{\n margin-right: 16px;\n padding-bottom: 0px;\n }\n }\n }\n "]);return u=function(){return t},t}var m=p.default.div.withConfig({displayName:"styles__Content",componentId:"sc-136boz5-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(p.css)(u(),l.b.desktopAndUp,l.b.mediumDesktopAndUp4Max,l.b.mobileMax)})),x=e(8),f=e(9),h=e(10),g={header:{text:""},body:{text:""},textOrientation:"",mobileAlignment:"",image:{url:"",altText:""}},b=function(t){var n=d()({},g,Object(i.g)(t.content));return a.a.createElement(x.a,{setter:{componentThemes:s,selectedTheme:t.theme}},a.a.createElement(f.a,null,a.a.createElement(h.a,{padding:!1},a.a.createElement(m,{isReversed:!1},"right"===n.textOrientation&&a.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},a.a.createElement("div",{className:"img-container margin"},a.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})),a.a.createElement("div",{className:"text-container"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}}))),"left"===n.textOrientation&&a.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},a.a.createElement("div",{className:"text-container margin"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}})),a.a.createElement("div",null,a.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})))))))};b.defaultProps={theme:"",content:""};n.a=b},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 c})),e.d(n,"C",(function(){return p})),e.d(n,"o",(function(){return l})),e.d(n,"r",(function(){return u})),e.d(n,"J",(function(){return m})),e.d(n,"I",(function(){return x})),e.d(n,"R",(function(){return f})),e.d(n,"F",(function(){return h})),e.d(n,"u",(function(){return g})),e.d(n,"h",(function(){return b})),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 M})),e.d(n,"s",(function(){return k})),e.d(n,"S",(function(){return v})),e.d(n,"q",(function(){return D})),e.d(n,"K",(function(){return y})),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 S})),e.d(n,"n",(function(){return T})),e.d(n,"k",(function(){return N})),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 H})),e.d(n,"b",(function(){return $})),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 G})),e.d(n,"e",(function(){return q})),e.d(n,"Y",(function(){return Y})),e.d(n,"c",(function(){return B})),e.d(n,"X",(function(){return K})),e.d(n,"L",(function(){return Q})),e.d(n,"N",(function(){return V})),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),c=new r.a(!1),p=new r.a(!1),l=new r.a(!1),u=new r.a(""),m=new r.a(!1),x=new r.a(!1),f=new r.a(!1),h=new r.a(!1),g=new r.a(!1),b=new r.a(!1),w=new r.a(""),A=new r.a(!0),U=new r.a(!0),M=new r.a(!0),k=new r.a(!0),v=new r.a(!0),D=new r.a(!0),y=new r.a({}),O=new r.a(!1),P=0,E=new r.a(!1),W=new r.a(""),C=new r.a(""),S=new r.a(""),T=new r.a(""),N=new r.a(""),j=new r.a(""),z=new r.a(""),L=new r.a(""),_=new r.a(!1),Z=new r.a(!1),H=new r.a(!1),$=(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-. ]*$/)},G=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},q=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},Y=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},V=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,p=t,l="";n=a(p,"&lt;!--","--&gt;",s,"W3HTMLCOMMENTPOS"),p=n.rest;for(;p.indexOf("&lt;")>-1;)o="",e=p.indexOf("&lt;"),"&LT;STYLE"==p.substr(e,9).toUpperCase()&&(o="css"),"&LT;SCRIPT"==p.substr(e,10).toUpperCase()&&(o="javascript"),-1==(r=p.indexOf("&gt;",e))&&(r=p.length),l+=p.substring(0,e),l+=i(p.substring(e,r+4)),p=p.substr(r+4),"css"==o&&(r=p.indexOf("&lt;/style&gt;"))>-1&&(l+=c(p.substring(0,r)),p=p.substr(r)),"javascript"==o&&(r=p.indexOf("&lt;/script&gt;"))>-1&&(l+=m(p.substring(0,r)),p=p.substr(r));for(p=l+p,d=0;d<n.arr.length;d++)p=p.replace("W3HTMLCOMMENTPOS",n.arr[d]);return p}(r)),"css"==e&&(r=c(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("&gt;"))&&(e=a.length),i+=a.substring(0,n),i+=o(a.substring(n,e)),a=a.substr(e);return"&gt;"==(r="<span style=color:grey>&lt;</span>"+(r=i+a).substring(4)).substr(r.length-4,4)&&(r=r.substring(0,r.length-4)+"<span style=color:grey>&gt;</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 c(t){var n,e,r,i,o,d,c,l=t,u="";for(l=(r=a(l,/\/\*/,"*/",s,"W3CSSCOMMENTPOS")).rest;l.search("{")>-1;){for(n=l.search("{"),o=l.substr(n+1),c=1,d=0,i=0;i<o.length&&("{"==o.substr(i,1)&&(c++,d++),"}"==o.substr(i,1)&&c--,0!=c);i++);for(0!=c&&(d=0),e=n,i=0;i<=d;i++)e=l.indexOf("}",e+1);-1==e&&(e=l.length),u+=l.substring(0,n+1),u+=p(l.substring(n+1,e)),l=l.substr(e)}for(l=(l=(l=u+l).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),i=0;i<r.arr.length;i++)l=l.replace("W3CSSCOMMENTPOS",r.arr[i]);return"<span style=color:green>"+l+"</span>"}function p(t){var n,e,r,a,i=t,o="";if(i.indexOf("{")>-1)return c(i);for(;i.search(":")>-1;){for(a=!0,r=n=i.search(":");1==a;)a=!1,e=i.indexOf(";",r),"&nbsp;"==i.substring(e-5,e+1)&&(a=!0,r=e+1);-1==e&&(e=i.length),o+=i.substring(0,n),o+=l(i.substring(n,e+1)),i=i.substr(e+1)}return"<span style=color:#a10d5f>"+o+i+"</span>"}function l(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)&&"&nbsp;"!=a.substr(a.length-6,6)&&"&lt;"!=a.substr(a.length-4,4)&&"&gt;"!=a.substr(a.length-4,4)&&"&amp;"!=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,c,p,l,u=t,m="",k=[],v="";for(n=0;n<u.length;n++)"\\"==(e=u.substr(n,1))&&(k.push(u.substr(n,2)),e="W3JSESCAPE",n++),v+=e;for(u=v,1;r=U(u,"'","'",x),a=U(u,'"','"',x),i=U(u,/\/\*/,"*/",s),o=U(u,/\/\//,"<br>",s),c=M(u,h),d=A("js",u,f),l=b(u,g),-1!=Math.max(c[0],r[0],a[0],i[0],o[0],d[0],l[0])&&-1!=(p=w(c,r,a,i,o,d,l))[0];)p[0]>-1&&(m+=u.substring(0,p[0]),m+=p[2](u.substring(p[0],p[1])),u=u.substr(p[1]));for(u=m+u,n=0;n<k.length;n++)u=u.replace("W3JSESCAPE",k[n]);return"<span style=color:black>"+u+"</span>"}function x(t){return"<span style=color:brown>"+t+"</span>"}function f(t){return"<span style=color:mediumblue>"+t+"</span>"}function h(t){return"<span style=color:red>"+t+"</span>"}function g(t){return"<span style=color:black>"+t+"</span>"}function b(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 M(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},436:function(t,n,e){"use strict";e.r(n);var r=e(20),a=e(122);n.default=r.a.create({component:a.a,configuration:{tagname:"amarr-imagetext",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))}}});
1
+ !function(t){function n(n){for(var r,o,c=n[0],d=n[1],s=n[2],p=0,u=[];p<c.length;p++)o=c[p],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&u.push(a[o][0]),a[o]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(t[r]=d[r]);for(l&&l(n);u.length;)u.shift()();return i.push.apply(i,s||[]),e()}function e(){for(var t,n=0;n<i.length;n++){for(var e=i[n],r=!0,c=1;c<e.length;c++){var d=e[c];0!==a[d]&&(r=!1)}r&&(i.splice(n--,1),t=o(o.s=e[0]))}return t}var r={},a={65: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 c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],d=c.push.bind(c);c.push=n,c=c.slice();for(var s=0;s<c.length;s++)n(c[s]);var l=d;i.push([628,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"g",(function(){return a})),e.d(n,"fb",(function(){return i})),e.d(n,"i",(function(){return o})),e.d(n,"L",(function(){return c})),e.d(n,"O",(function(){return d})),e.d(n,"w",(function(){return s})),e.d(n,"J",(function(){return l})),e.d(n,"p",(function(){return p})),e.d(n,"s",(function(){return u})),e.d(n,"Q",(function(){return m})),e.d(n,"P",(function(){return f})),e.d(n,"ab",(function(){return x})),e.d(n,"M",(function(){return g})),e.d(n,"v",(function(){return h})),e.d(n,"h",(function(){return b})),e.d(n,"u",(function(){return A})),e.d(n,"z",(function(){return w})),e.d(n,"x",(function(){return U})),e.d(n,"K",(function(){return M})),e.d(n,"t",(function(){return k})),e.d(n,"bb",(function(){return v})),e.d(n,"r",(function(){return y})),e.d(n,"R",(function(){return D})),e.d(n,"N",(function(){return E})),e.d(n,"cb",(function(){return S})),e.d(n,"n",(function(){return W})),e.d(n,"k",(function(){return C})),e.d(n,"o",(function(){return T})),e.d(n,"l",(function(){return N})),e.d(n,"m",(function(){return L})),e.d(n,"C",(function(){return j})),e.d(n,"V",(function(){return z})),e.d(n,"y",(function(){return _})),e.d(n,"db",(function(){return Z})),e.d(n,"eb",(function(){return $})),e.d(n,"b",(function(){return H})),e.d(n,"Y",(function(){return I})),e.d(n,"E",(function(){return J})),e.d(n,"a",(function(){return R})),e.d(n,"gb",(function(){return F})),e.d(n,"d",(function(){return G})),e.d(n,"f",(function(){return V})),e.d(n,"e",(function(){return Y})),e.d(n,"jb",(function(){return q})),e.d(n,"c",(function(){return B})),e.d(n,"hb",(function(){return K})),e.d(n,"ib",(function(){return Q})),e.d(n,"S",(function(){return X})),e.d(n,"T",(function(){return tt})),e.d(n,"U",(function(){return nt})),e.d(n,"W",(function(){return et})),e.d(n,"X",(function(){return rt})),e.d(n,"q",(function(){return at})),e.d(n,"Z",(function(){return it})),e.d(n,"I",(function(){return ot})),e.d(n,"j",(function(){return ct})),e.d(n,"D",(function(){return dt})),e.d(n,"G",(function(){return st})),e.d(n,"H",(function(){return lt})),e.d(n,"F",(function(){return pt})),e.d(n,"A",(function(){return mt})),e.d(n,"B",(function(){return ft}));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()},c=function(t){return t.replaceAll(" ","-").toLowerCase()},d=new r.a(!1),s=new r.a(!1),l=new r.a(!1),p=new r.a(!1),u=new r.a(""),m=new r.a(!1),f=new r.a(!1),x=new r.a(!1),g=new r.a(!1),h=new r.a(!1),b=new r.a(!1),A=new r.a(""),w=new r.a(!0),U=new r.a(!0),M=new r.a(!0),k=new r.a(!0),v=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),S=new r.a(""),W=new r.a(""),C=new r.a(""),T=new r.a(""),N=new r.a(""),L=new r.a(""),j=new r.a(""),z=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),new r.a({flag:!1}),function(){setTimeout((function(){P++,O.next(!0)}),0)}),I=function(){setTimeout((function(){P>0&&P--,0==P&&O.next(!1)}),0)},J=function(){return O.asObservable()},R=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){var n=0;return!!/(?=.{8,})/.test(t)&&(/([a-z])/.test(t)&&n++,/([A-Z])/.test(t)&&n++,/(\d)/.test(t)&&n++,/([!@#$%^&*])/.test(t)&&n++,!(n<3))},G=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},V=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},Y=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},q=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 new RegExp("^[0-9]+[.][0-9]{0,2}$").test(t)},Q=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},X=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},tt=function(t){var n=(""+t).replace(/\D/g,"");if(n.length>10){var e=(n=n.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(e)return"("+e[1]+") "+e[2]+"-"+e[3]}var r="";return n.split("").forEach((function(t,n){r+=0==n?"("+t:2==n?t+") ":5==n?t+"-":t})),r},nt=function(t){var n=t.target.value;return 1==n.length?"("+n:5==n.length?n.slice(0,n.length-1)+") "+n[n.length-1]:10==n.length&&"-"!==n[n.length-1]?n.slice(0,n.length-1)+"-"+n[n.length-1]:10==n.length&&"-"===n[n.length-1]?n.substring(0,n.length-1):6==n.length?n.substring(0,n.length-2):n},et=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},rt=function(t,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},at=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},it=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 ot(t,n){var e=n||"html",r=t;return e||(e="html"),"html"==e&&(r=function(t){var n,e,r,o,c,l=t,p="";n=a(l,"&lt;!--","--&gt;",d,"W3HTMLCOMMENTPOS"),l=n.rest;for(;l.indexOf("&lt;")>-1;)o="",e=l.indexOf("&lt;"),"&LT;STYLE"==l.substr(e,9).toUpperCase()&&(o="css"),"&LT;SCRIPT"==l.substr(e,10).toUpperCase()&&(o="javascript"),-1==(r=l.indexOf("&gt;",e))&&(r=l.length),p+=l.substring(0,e),p+=i(l.substring(e,r+4)),l=l.substr(r+4),"css"==o&&(r=l.indexOf("&lt;/style&gt;"))>-1&&(p+=s(l.substring(0,r)),l=l.substr(r)),"javascript"==o&&(r=l.indexOf("&lt;/script&gt;"))>-1&&(p+=m(l.substring(0,r)),l=l.substr(r));for(l=p+l,c=0;c<n.arr.length;c++)l=l.replace("W3HTMLCOMMENTPOS",n.arr[c]);return l}(r)),"css"==e&&(r=s(r)),"js"==e&&(r=m(r)),r;function a(t,n,e,r,a){for(var i,o,c="",d=[];t.search(n)>-1;)i=t.search(n),-1==(o=t.indexOf(e,i))&&(o=t.length),a?(d.push(r(t.substring(i,o+e.length))),t=t.substring(0,i)+a+t.substr(o+e.length)):(c+=t.substring(0,i),c+=r(t.substring(i,o+e.length)),t=t.substr(o+e.length));return{rest:c+t,arr:d}}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("&gt;"))&&(e=a.length),i+=a.substring(0,n),i+=o(a.substring(n,e)),a=a.substr(e);return"&gt;"==(r="<span style=color:grey>&lt;</span>"+(r=i+a).substring(4)).substr(r.length-4,4)&&(r=r.substring(0,r.length-4)+"<span style=color:grey>&gt;</span>"),"<span style=color:#a10d5f>"+r+"</span>"}function o(t){for(var n,e,r,a,i,o=t,d="";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),d+=o.substring(0,n),d+=c(o.substring(n,e+1)),o=o.substr(e+1);return"<span style=color:green>"+d+o+"</span>"}function c(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function d(t){return"<span style=color:green>"+t+"</span>"}function s(t){var n,e,r,i,o,c,s,p=t,u="";for(p=(r=a(p,/\/\*/,"*/",d,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(n=p.search("{"),o=p.substr(n+1),s=1,c=0,i=0;i<o.length&&("{"==o.substr(i,1)&&(s++,c++),"}"==o.substr(i,1)&&s--,0!=s);i++);for(0!=s&&(c=0),e=n,i=0;i<=c;i++)e=p.indexOf("}",e+1);-1==e&&(e=p.length),u+=p.substring(0,n+1),u+=l(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 l(t){var n,e,r,a,i=t,o="";if(i.indexOf("{")>-1)return s(i);for(;i.search(":")>-1;){for(a=!0,r=n=i.search(":");1==a;)a=!1,e=i.indexOf(";",r),"&nbsp;"==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)&&"&nbsp;"!=a.substr(a.length-6,6)&&"&lt;"!=a.substr(a.length-4,4)&&"&gt;"!=a.substr(a.length-4,4)&&"&amp;"!=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,c,s,l,p,u=t,m="",k=[],v="";for(n=0;n<u.length;n++)"\\"==(e=u.substr(n,1))&&(k.push(u.substr(n,2)),e="W3JSESCAPE",n++),v+=e;for(u=v,1;r=U(u,"'","'",f),a=U(u,'"','"',f),i=U(u,/\/\*/,"*/",d),o=U(u,/\/\//,"<br>",d),s=M(u,g),c=w("js",u,x),p=b(u,h),-1!=Math.max(s[0],r[0],a[0],i[0],o[0],c[0],p[0])&&-1!=(l=A(s,r,a,i,o,c,p))[0];)l[0]>-1&&(m+=u.substring(0,l[0]),m+=l[2](u.substring(l[0],l[1])),u=u.substr(l[1]));for(u=m+u,n=0;n<k.length;n++)u=u.replace("W3JSESCAPE",k[n]);return"<span style=color:black>"+u+"</span>"}function f(t){return"<span style=color:brown>"+t+"</span>"}function x(t){return"<span style=color:mediumblue>"+t+"</span>"}function g(t){return"<span style=color:red>"+t+"</span>"}function h(t){return"<span style=color:black>"+t+"</span>"}function b(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 c=e[a];for(r=0;r<o.length;r++)if(c.indexOf(o[r])>-1)return[i+1,a+i+1,n]}return[-1,-1,n]}function A(t,n,e,r,a,i,o){var c,d=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==d.length||arguments[c][0]<d[0])&&(d=arguments[c]);return 0==d.length&&(d=arguments[c]),d}function w(t,n,e){var r,a,i,o,c=-1,d=-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==c||a<c)&&(d=(c=a)+o[r].length));return[c,d,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 M(t,n){var e,r,a,i,o,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],d=0;for(e=0;e<t.length;e++)for(r=0;r<c.length;r++)if((a=t.substr(e,c[r].length))==c[r]){if("-"==a&&("e"==t.substr(e-1,1)||"E"==t.substr(e-1,1)))continue;if(d<(i=e)&&(o=t.substring(d,i),!isNaN(o)))return[d,i,n];d=e+=c[r].length,e-=1;break}return[-1,-1,n]}}var ct=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""},dt=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},st=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},lt=function(t){if("string"===typeof t){var n=t;return n=(n=n.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return t},pt=function(t){return Math.floor(Math.random()*t)+1},ut=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=function(t){var n=new Date(t);if("Invalid Date"==n.toString())return t;var e=n.getFullYear(),r=n.getMonth(),a=(n.getDate()+"").padStart(2,"0");return"".concat(ut[r].slice(0,3)," ").concat(a,", ").concat(e)},ft=function(t){return t.length>0?t.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):t}},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,c=t.padding,d=void 0===c||c;return a.a.createElement(i,{className:n,maxWidth:o,padding:d},e)};n.b=o},136:function(t,n,e){"use strict";var r=e(0),a=e.n(r),i=e(1),o=e(13),c=e.n(o),d={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},s=e(11),l=e(5),p=e(2);function u(){var t=Object(s.a)(["\n .image-text-container {\n display: flex;\n align-items: center;\n // gap: 30px;\n padding-bottom: 17px;\n .text-container {\n max-width: 73.5%;\n }\n p{\n margin-bottom: 0px;\n }\n }\n .margin{\n margin-right: 30px;\n }\n @media "," and "," {\n .img-container {\n max-width: 14%;\n }\n }\n \n @media screen and ","{\n .margin{\n padding-bottom: 10px;\n margin-right: 0px;\n margin-left: 0px;\n }\n .image-text-container {\n display: block;\n .text-container {\n max-width: 100%;\n }\n }\n .image-text-container-mobile-inline{\n display: flex;\n .text-container{\n width: 80%;\n }\n .margin{\n margin-right: 16px;\n padding-bottom: 0px;\n }\n }\n }\n "]);return u=function(){return t},t}var m=l.default.div.withConfig({displayName:"styles__Content",componentId:"sc-136boz5-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(l.css)(u(),p.b.desktopAndUp,p.b.mediumDesktopAndUp4Max,p.b.mobileMax)})),f=e(8),x=e(9),g=e(10),h={header:{text:""},body:{text:""},textOrientation:"",mobileAlignment:"",image:{url:"",altText:""}},b=function(t){var n=c()({},h,Object(i.g)(t.content));return a.a.createElement(f.a,{setter:{componentThemes:d,selectedTheme:t.theme}},a.a.createElement(x.a,null,a.a.createElement(g.a,{padding:!1},a.a.createElement(m,{isReversed:!1},"right"===n.textOrientation&&a.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},a.a.createElement("div",{className:"img-container margin"},a.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})),a.a.createElement("div",{className:"text-container"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}}))),"left"===n.textOrientation&&a.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},a.a.createElement("div",{className:"text-container margin"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}})),a.a.createElement("div",null,a.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})))))))};b.defaultProps={theme:"",content:""};n.a=b},2: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,extraLarge:2560},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)"),smallMobileMax:"(max-width: ".concat(r.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(r.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-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)"),largeMobileAndUpMax3:"(max-width: ".concat(r.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(r.largeMobileAndUp-1,"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)"),mediumDesktopAndUp2Max:"(max-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)"),extraLargeMax:"(max-width: ".concat(r.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(r.extraLarge,"px)")}},32:function(t,n){t.exports=ReactDOM},511:function(t,n,e){"use strict";e.r(n);var r=e(22),a=e(136);n.default=r.a.create({component:a.a,configuration:{tagname:"amarr-imagetext",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)};n.b=o},9:function(t,n,e){"use strict";var r=e(0),a=e.n(r),i=e(5),o=e(23),c=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(d){console.log(d)}var r=n?[o.a]:[];return a.a.createElement(i.StyleSheetManager,{stylisPlugins:r},a.a.createElement(c.Provider,{value:{rtl:n}},t.children))}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assaabloy/amarr-wc-image-text",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "Web component - Image Text",
5
5
  "type": "module",
6
6
  "main": "imageText.js",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "author": "Nagarro",
13
13
  "license": "MIT",
14
- "gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
14
+ "gitHead": "df19edbe2dcbb909196a47080a5833bdc0a361e6"
15
15
  }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020-present ASSA ABLOY global web contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/README.md DELETED
@@ -1,19 +0,0 @@
1
- ![ASSA ABLOY](https://upload.wikimedia.org/wikipedia/commons/e/e8/Assa-Abloy-Logo.svg)
2
- <sup>Global web - web components</sup>
3
-
4
- # Image Text
5
-
6
- **Custom HTML element**
7
- ```html
8
- <image-text foo="" bar="" baz=""></image-text>
9
- ```
10
-
11
- **Properties**
12
- | Name | Type | Description |
13
- | ------------- | --------- | ----------------------------- |
14
- | foo | Object | |
15
- | bar | String | Allowed values, required etc. |
16
- | baz | Array | |
17
-
18
- **Dependencies**
19
- @assaabloy/wc-vendor