@assaabloy/amarr-wc-color-list 5.0.13 → 5.0.15
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/color-list.js +1 -1
- package/package.json +2 -2
package/color-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function e(e){for(var a,i,l=e[0],c=e[1],d=e[2],p=0,u=[];p<l.length;p++)i=l[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);for(s&&s(e);u.length;)u.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,l=1;l<n.length;l++){var c=n[l];0!==r[c]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={14:0},o=[];function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var l=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=l.push.bind(l);l.push=e,l=l.slice();for(var d=0;d<l.length;d++)e(l[d]);var s=c;o.push([585,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"ib",(function(){return o})),n.d(e,"y",(function(){return i})),n.d(e,"i",(function(){return l})),n.d(e,"M",(function(){return c})),n.d(e,"P",(function(){return d})),n.d(e,"w",(function(){return s})),n.d(e,"K",(function(){return p})),n.d(e,"p",(function(){return u})),n.d(e,"s",(function(){return m})),n.d(e,"R",(function(){return h})),n.d(e,"Q",(function(){return b})),n.d(e,"bb",(function(){return g})),n.d(e,"N",(function(){return f})),n.d(e,"v",(function(){return x})),n.d(e,"h",(function(){return w})),n.d(e,"u",(function(){return v})),n.d(e,"A",(function(){return A})),n.d(e,"x",(function(){return U})),n.d(e,"L",(function(){return y})),n.d(e,"t",(function(){return k})),n.d(e,"cb",(function(){return M})),n.d(e,"r",(function(){return D})),n.d(e,"S",(function(){return O})),n.d(e,"O",(function(){return N})),n.d(e,"db",(function(){return S})),n.d(e,"n",(function(){return C})),n.d(e,"k",(function(){return j})),n.d(e,"o",(function(){return L})),n.d(e,"l",(function(){return T})),n.d(e,"m",(function(){return W})),n.d(e,"D",(function(){return z})),n.d(e,"W",(function(){return _})),n.d(e,"z",(function(){return I})),n.d(e,"gb",(function(){return R})),n.d(e,"hb",(function(){return Z})),n.d(e,"fb",(function(){return $})),n.d(e,"b",(function(){return H})),n.d(e,"Z",(function(){return J})),n.d(e,"F",(function(){return V})),n.d(e,"a",(function(){return F})),n.d(e,"jb",(function(){return G})),n.d(e,"d",(function(){return Y})),n.d(e,"f",(function(){return q})),n.d(e,"e",(function(){return B})),n.d(e,"mb",(function(){return K})),n.d(e,"c",(function(){return Q})),n.d(e,"kb",(function(){return X})),n.d(e,"lb",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"U",(function(){return nt})),n.d(e,"V",(function(){return at})),n.d(e,"X",(function(){return rt})),n.d(e,"Y",(function(){return ot})),n.d(e,"q",(function(){return it})),n.d(e,"ab",(function(){return lt})),n.d(e,"C",(function(){return ct})),n.d(e,"J",(function(){return dt})),n.d(e,"j",(function(){return st})),n.d(e,"E",(function(){return pt})),n.d(e,"H",(function(){return ut})),n.d(e,"I",(function(){return mt})),n.d(e,"G",(function(){return ht})),n.d(e,"B",(function(){return gt})),n.d(e,"eb",(function(){return ft}));var a=n(4),r=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return o(JSON.stringify(t))},l=function(t){return t.toUpperCase()},c=function(t){return t.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),s=new a.a(!1),p=new a.a(!1),u=new a.a(!1),m=new a.a(""),h=new a.a(!1),b=new a.a(!1),g=new a.a(!1),f=new a.a(!1),x=new a.a(!1),w=new a.a(!1),v=new a.a(""),A=new a.a(!0),U=new a.a(!0),y=new a.a(!0),k=new a.a(!0),M=new a.a(!0),D=new a.a(!0),O=new a.a({}),E=new a.a(!1),P=0,N=new a.a(!1),S=new a.a(""),C=new a.a(""),j=new a.a(""),L=new a.a(""),T=new a.a(""),W=new a.a(""),z=new a.a(""),_=new a.a(""),I=new a.a(!1),R=new a.a(!1),Z=new a.a(!1),$=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),new a.a([])),H=function(){setTimeout((function(){P++,E.next(!0)}),0)},J=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},V=function(){return E.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)},G=function(t){var e=0;return!!/(?=.{8,})/.test(t)&&(/([a-z])/.test(t)&&e++,/([A-Z])/.test(t)&&e++,/(\d)/.test(t)&&e++,/([!@#$%^&*])/.test(t)&&e++,!(e<3))},Y=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},B=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},K=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},Q=function(t){return/^[0-9]*$/.test(t)},X=function(t){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(t)},tt=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},et=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},nt=function(t){var e=(""+t).replace(/\D/g,"");if(e.length>10){var n=(e=e.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(n)return"("+n[1]+") "+n[2]+"-"+n[3]}var a="";return e.split("").forEach((function(t,e){a+=0==e?"("+t:2==e?t+") ":5==e?t+"-":t})),a},at=function(t){var e=t.target.value;return 1==e.length?"("+e:5==e.length?e.slice(0,e.length-1)+") "+e[e.length-1]:10==e.length&&"-"!==e[e.length-1]?e.slice(0,e.length-1)+"-"+e[e.length-1]:10==e.length&&"-"===e[e.length-1]?e.substring(0,e.length-1):6==e.length?e.substring(0,e.length-2):e},rt=function(t){return t&&(t=Number(t).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},ot=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},it=function(t){var e={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&&(e.color=t.selectedColor),t.colorHex&&(e.colorHex=t.colorHex),t.colorZone&&(e.colorZone=t.colorZone),t.selectedConstruction&&(e.model=t.selectedConstruction),t.selectedWindowDesign&&(e.top=t.selectedWindowDesign),t.glazepattern&&(e.glazepattern=t.glazepattern),t.selectedHardware&&(e.hardware=t.selectedHardware),e},lt=function(t,e,n){var a="",r=t.split(e);return r.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==r.length-1&&(a+=n))})),a},ct=function(t){return t.length>0?t.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):t};function dt(t,e){var n=e||"html",a=t;return n||(n="html"),"html"==n&&(a=function(t){var e,n,a,i,l,s=t,p="";e=r(s,"<!--","-->",c,"W3HTMLCOMMENTPOS"),s=e.rest;for(;s.indexOf("<")>-1;)i="",n=s.indexOf("<"),"<STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"<SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf(">",n))&&(a=s.length),p+=s.substring(0,n),p+=o(s.substring(n,a+4)),s=s.substr(a+4),"css"==i&&(a=s.indexOf("</style>"))>-1&&(p+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("</script>"))>-1&&(p+=m(s.substring(0,a)),s=s.substr(a));for(s=p+s,l=0;l<e.arr.length;l++)s=s.replace("W3HTMLCOMMENTPOS",e.arr[l]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(t,e,n,a,r){for(var o,i,l="",c=[];t.search(e)>-1;)o=t.search(e),-1==(i=t.indexOf(n,o))&&(i=t.length),r?(c.push(a(t.substring(o,i+n.length))),t=t.substring(0,o)+r+t.substr(i+n.length)):(l+=t.substring(0,o),l+=a(t.substring(o,i+n.length)),t=t.substr(i+n.length));return{rest:l+t,arr:c}}function o(t){for(var e,n,a,r=t,o="";r.search(/(\s|<br>)/)>-1;)e=r.search(/(\s|<br>)/),-1==(n=r.indexOf(">"))&&(n=r.length),o+=r.substring(0,e),o+=i(r.substring(e,n)),r=r.substr(n);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(t){for(var e,n,a,r,o,i=t,c="";i.indexOf("=")>-1;)n=-1,e=i.indexOf("="),a=i.indexOf("'",e),r=i.indexOf('"',e),(o=i.indexOf(" ",e+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?n=i.indexOf(" ",e):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?n=i.indexOf('"',i.indexOf('"',e)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(n=i.indexOf("'",i.indexOf("'",e)+1)),(!n||-1==n||n<e)&&(n=i.length),c+=i.substring(0,e),c+=l(i.substring(e,n+1)),i=i.substr(n+1);return"<span style=color:green>"+c+i+"</span>"}function l(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function c(t){return"<span style=color:green>"+t+"</span>"}function d(t){var e,n,a,o,i,l,d,p=t,u="";for(p=(a=r(p,/\/\*/,"*/",c,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(e=p.search("{"),i=p.substr(e+1),d=1,l=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(d++,l++),"}"==i.substr(o,1)&&d--,0!=d);o++);for(0!=d&&(l=0),n=e,o=0;o<=l;o++)n=p.indexOf("}",n+1);-1==n&&(n=p.length),u+=p.substring(0,e+1),u+=s(p.substring(e+1,n)),p=p.substr(n)}for(p=(p=(p=u+p).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)p=p.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+p+"</span>"}function s(t){var e,n,a,r,o=t,i="";if(o.indexOf("{")>-1)return d(o);for(;o.search(":")>-1;){for(r=!0,a=e=o.search(":");1==r;)r=!1,n=o.indexOf(";",a)," "==o.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=o.length),i+=o.substring(0,e),i+=p(o.substring(e,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function p(t){var e,n=t,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)e=n.search(/!important/i),a+=n.substring(0,e),a+=u(n.substring(e,e+10)),n=n.substr(e+10);var r=a+n;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function u(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var e,n,a,r,o,i,l,d,s,p,u=t,m="",y=[],k="";for(e=0;e<u.length;e++)"\\"==(n=u.substr(e,1))&&(y.push(u.substr(e,2)),n="W3JSESCAPE",e++),k+=n;for(u=k,1;a=A(u,"'","'",h),r=A(u,'"','"',h),o=A(u,/\/\*/,"*/",c),i=A(u,/\/\//,"<br>",c),d=U(u,g),l=v("js",u,b),p=x(u,f),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],l[0],p[0])&&-1!=(s=w(d,a,r,o,i,l,p))[0];)s[0]>-1&&(m+=u.substring(0,s[0]),m+=s[2](u.substring(s[0],s[1])),u=u.substr(s[1]));for(u=m+u,e=0;e<y.length;e++)u=u.replace("W3JSESCAPE",y[e]);return"<span style=color:black>"+u+"</span>"}function h(t){return"<span style=color:brown>"+t+"</span>"}function b(t){return"<span style=color:mediumblue>"+t+"</span>"}function g(t){return"<span style=color:red>"+t+"</span>"}function f(t){return"<span style=color:black>"+t+"</span>"}function x(t,e){var n,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=t.indexOf("."))>-1)for(n=t.substr(o+1),r=0;r<n.length;r++){var l=n[r];for(a=0;a<i.length;a++)if(l.indexOf(i[a])>-1)return[o+1,r+o+1,e]}return[-1,-1,e]}function w(t,e,n,a,r,o,i){var l,c=[];for(l=0;l<arguments.length;l++)arguments[l][0]>-1&&(0==c.length||arguments[l][0]<c[0])&&(c=arguments[l]);return 0==c.length&&(c=arguments[l]),c}function v(t,e,n){var a,r,o,i,l=-1,c=-1;for("js"==t&&(i=["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<i.length;a++)(r=e.indexOf(i[a]))>-1&&(o=/\W/g,e.substr(r+i[a].length,1).match(o)&&e.substr(r-1,1).match(o)&&r>-1&&(-1==l||r<l)&&(c=(l=r)+i[a].length));return[l,c,n]}function A(t,e,n,a){var r,o;return r=t.search(e),-1==(o=t.indexOf(n,r+n.length))&&(o=t.length),[r,o+n.length,a]}function U(t,e){var n,a,r,o,i,l=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],c=0;for(n=0;n<t.length;n++)for(a=0;a<l.length;a++)if((r=t.substr(n,l[a].length))==l[a]){if("-"==r&&("e"==t.substr(n-1,1)||"E"==t.substr(n-1,1)))continue;if(c<(o=n)&&(i=t.substring(c,o),!isNaN(i)))return[c,o,e];c=n+=l[a].length,n-=1;break}return[-1,-1,e]}}var st=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""},pt=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},ut=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},mt=function(t){if("string"===typeof t){var e=t;return e=(e=e.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return t},ht=function(t){return Math.floor(Math.random()*t)+1},bt=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=function(t){var e=new Date(t);if("Invalid Date"==e.toString())return t;var n=e.getFullYear(),a=e.getMonth(),r=(e.getDate()+"").padStart(2,"0");return"".concat(bt[a].slice(0,3)," ").concat(r,", ").concat(n)},ft=function(t){var e,n=[],a=t.arguments.split(",");(a.forEach((function(t){t=t.indexOf(":")>-1?JSON.parse(t):t.replaceAll('"',"").trim(),n.push(t)})),console.log("list",n,a,t),window.gtag&&"function"===typeof window.gtag)&&(window.location.pathname==t.path&&(e=window).gtag.apply(e,n))}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a),o=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(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));"})),i=function(t){var e=t.className,n=t.children,a=t.maxWidth,i=void 0===a?1520:a,l=t.padding,c=void 0===l||l;return r.a.createElement(o,{className:e,maxWidth:i,padding:c},n)};e.b=i},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"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,extraLarge:2560},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)"),smallMobileMax:"(max-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-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)"),largeMobileAndUpMax3:"(max-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(a.largeMobileAndUp-1,"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)"),mediumDesktopAndUp2Max:"(max-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)"),extraLargeMax:"(max-width: ".concat(a.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(a.extraLarge,"px)")}},32:function(t,e){t.exports=ReactDOM},468:function(t,e,n){"use strict";n.r(e);var a=n(22),r=n(97);e.default=a.a.create({component:r.a,configuration:{tagname:"amarr-color-list",useShadow:!1},plugins:[]})},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(31),r=n(0),o=n.n(r),i=n(5),l=n(2),c=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),d=i.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;}"],l.b.smallDesktop2Min),s=n(30),p=n(29),u=function(t){var e=t.label,n=void 0===e?"label":e,r=t.classStyle,i=void 0===r?"default":r,l=t.link,u=void 0!==l&&l,m=t.disabled,h=void 0!==m&&m,b=t.datatoggle,g=void 0===b?"":b,f=t.datatarget,x=void 0===f?"":f,w=t.linkHref,v=t.target,A=void 0===v?"_self":v,U=t.downloadLink,y=void 0!==U&&U,k=t.inverse,M=void 0!==k&&k,D=t.icon,O=void 0===D?"":D,E=t.iconAlt,P=void 0===E?"":E,N=t.dataItemName,S=void 0===N?"":N,C=t.id,j=void 0===C?"":C,L=t.type,T=void 0===L?"button":L,W=t.showDisabledMessage,z=void 0===W?"":W,_=t.ariaLabel,I=void 0===_?"":_,R=t.tabIndex,Z=void 0===R?-1:R,$=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel","tabIndex"]);return o.a.createElement(c,null,o.a.createElement("div",{className:"".concat(h&&z&&"disabled-button-parent")},u?o.a.createElement("a",{href:w,download:y,target:A,"data-item-name":S,id:j,"aria-label":I},o.a.createElement(d,Object.assign({disabled:h,classStyle:"".concat(i)},$,{type:T,className:M?"btn-inverse btn btn-success":"btn btn-success",tabIndex:Z}),""!=O?o.a.createElement("div",{"data-toggle":g,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:P}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:h,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:j,"data-item-name":S,type:T,"data-toggle":g,"data-target":x},$),o.a.createElement("span",null,n)),h&&z&&o.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(p.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(t){var e=t.setter,n=e.componentThemes,r=e.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var t=r.match(/\d+/g).map(Number),e=Object.keys(n).find((function(e){return!(!Array.isArray(t)||1!==t.length)&&(e.includes(t[0])&&n[e])}));return e?n["".concat(e)]:n.theme1}},t.children)};e.b=i},9:function(t,e,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(23),l=Object(a.createContext)({});e.a=function(t){var e=!1;try{var n;e=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(c){console.log(c)}var a=e?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(l.Provider,{value:{rtl:e}},t.children))}},97:function(t,e,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(1),l=n(5),c=n(2),d=l.default.section.withConfig({displayName:"styles__Content",componentId:"sc-2gyuc7-0"})([".modal{&-dialog{&-centered{display:flex;align-items:center;justify-content:center;height:100%;margin-top:0px;margin-bottom:0px;@media ","{width:700px;}}}.close{font-size:var(--font-size-l2);color:var(--text-color);cursor:pointer;@media ","{font-size:var(--font-size-md);}}&-body{max-height:80vh;overflow-y:auto;}}.tile-container{padding-bottom:36px;}.color-name{margin-top:18px;}.hover-div{display:none;}.color-tile{border-radius:var(--border-radius);height:calc(18vw);display:flex;justify-content:center;align-items:center;}.color-tile:hover{.hover-div{display:block;text-align:var(--text-center);}.product-img{opacity:40%;}}button{width:calc(100%);opacity:70%;word-wrap:break-word;white-space:normal;}button:hover{opacity:100%;transform:scale(1) !important;}li{display:inline;}.modal-body{padding-top:0px;}.modal-header{border-bottom:0px;}@media ","{.modal-dialog{max-width:calc(56%) !important;}}.modal-header button{width:auto;}.padding-tile{display:flex;column-gap:20px;}.font-weight-semi{font-weight:var(--font-weight-semi-bold);}.show-more{width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer;}@media ","{button{width:100%;height:auto;}}@media screen and ","{.color-tile{height:calc(38vw);}.tile-container{padding-bottom:20px;}.color-name{text-align:var(--text-center);margin-top:8px;}.door-images{flex-wrap:wrap;gap:20px;li{flex:0 0 46%;}}}@media ","{.color-tile{height:346px !important;}}"],c.b.smallDesktopAndUp2,c.b.largeDesktopMin,c.b.mediumDesktopAndUp2,c.b.desktopAndUp,c.b.mobileMax,c.b.wrapperMaxWidth2),s=n(6),p=function(t){var e=t.item,n=t.viewMoreLabel,l=t.ctaLabel,c=t.buttonType,p=t.modelDescription,u=t.showOneRowOnly,m=t.index,h=t.onShowMoreClick,b=(t.enablePlpPage,t.plpPagePath),g=Object(r.useState)(!1),f=Object(a.a)(g,2),x=f[0],w=f[1];Object(r.useEffect)((function(){u&&w(!0)}),[]);return o.a.createElement(d,null,o.a.createElement("div",{className:"tile-container"},o.a.createElement("div",{className:"color-tile",style:e.colorImage?{backgroundImage:"url("+e.colorImage+")",backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:"#"+e.hexCode}},(x&&3!==m||!x)&&l&&l.length>0&&o.a.createElement("div",{className:"hover-div"},"buttonPlp"===c&&o.a.createElement("span",null,o.a.createElement(s.a,{label:Object(i.i)(l),link:!0,target:"_self",linkHref:b})),"buttonPopup"===c&&o.a.createElement("span",{"data-toggle":"modal","data-target":"#colortile-popup-".concat(e.colorValue)},o.a.createElement(s.a,{label:Object(i.i)(l),link:!0,dataItemName:e.colorTitle}))),x&&3===m&&o.a.createElement("a",{className:"show-more",onClick:function(t){w(!1),h(!0)},"aria-label":"Show more",role:"button"},o.a.createElement("span",null,n))),o.a.createElement("div",{className:"color-name body-text1 amarr-h5"},e.colorTitle),o.a.createElement("div",{className:"modal fade",id:"colortile-popup-".concat(e.colorValue),role:"dialog","aria-hidden":"true"},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header"},o.a.createElement("div",{className:"amarr-h4"},e.colorTitle),o.a.createElement("button",{type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},o.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"mb-4 pb-2 body-text1"},p),o.a.createElement("ul",{className:"text-center padding-tile ml-0 door-images"},e.doors&&e.doors.length>0&&e.doors.map((function(t,e){return o.a.createElement("li",null,o.a.createElement("img",{loading:"lazy",src:t.url,alt:t.altText}))})))))))))},u=n(13),m=n.n(u),h={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},b=n(12);function g(){var t=Object(b.a)(["\n .color-page-des {\n padding-bottom: 28px;\n }\n .section-heading-color {\n padding-bottom: 20px;\n }\n @media screen and "," {\n .section-heading-color {\n padding-bottom: 8px;\n }\n .color-list-mobile:nth-child(odd) {\n padding-right: 11px !important;\n }\n .color-list-mobile:nth-child(even) {\n padding-left: 11px !important;\n }\n }\n "]);return g=function(){return t},t}var f=l.default.div.withConfig({displayName:"styles__Content",componentId:"pcudtj-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(l.css)(g(),c.b.mobileMax)})),x=n(8),w=n(9),v=n(10),A={headingStyle:"",header:{text:""},showOneRowOnly:!0,viewMoreLabel:"",ctaLabel:"",enablePlpPage:"false",plpPagePath:"",modelDescription:"",colorList:[{colorTitle:"",hexCode:"",colorValue:"",colorImage:"",doors:[{url:"",altText:""}]}],buttonType:""},U=function(t){var e=m()({},A,Object(i.g)(t.content)),n=Object(r.useState)([]),l=Object(a.a)(n,2),c=l[0],d=l[1];function s(t){var n;n=e.colorList,d(n)}return Object(r.useEffect)((function(){var t;e.showOneRowOnly?(t=e.colorList.splice(0,4),d(t)):(t=e.colorList,d(t))}),[]),o.a.createElement(x.a,{setter:{componentThemes:h,selectedTheme:t.theme}},o.a.createElement(w.a,null,o.a.createElement(v.a,null,o.a.createElement(f,{isReversed:!1},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"section-heading-color text-center"},"h1"===e.headingStyle&&o.a.createElement("h1",{className:"heading-style-1"},e.header&&e.header.text),"h2"===e.headingStyle&&o.a.createElement("h2",{className:"heading-style-1"},e.header&&e.header.text),"h3"===e.headingStyle&&o.a.createElement("h3",{className:"heading-style-1"},e.header&&e.header.text),"h4"===e.headingStyle&&o.a.createElement("h4",{className:"heading-style-1"},e.header&&e.header.text),"h5"===e.headingStyle&&o.a.createElement("h5",{className:"heading-style-1"},e.header&&e.header.text),"h6"===e.headingStyle&&o.a.createElement("h6",{className:"heading-style-1"},e.header&&e.header.text)),o.a.createElement("div",{className:"row"},c&&c.length>0&&c.map((function(t,n){return o.a.createElement("div",{className:"col-md-3 col-6 color-list-mobile",key:n},o.a.createElement(p,{item:t,index:n,showOneRowOnly:e.showOneRowOnly,viewMoreLabel:e.viewMoreLabel.replace("{{count}}",(e.colorList.length-4).toString()),buttonType:e.buttonType,ctaLabel:e.ctaLabel,modelDescription:e.modelDescription,onShowMoreClick:s,enablePlpPage:e.enablePlpPage,plpPagePath:e.plpPagePath+"?color="+t.colorTitle}))}))))))))};U.defaultProps={theme:"",content:""};e.a=U}});
|
|
1
|
+
!function(e){function t(t){for(var a,i,l=t[0],c=t[1],d=t[2],p=0,u=[];p<l.length;p++)i=l[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(s&&s(t);u.length;)u.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,l=1;l<n.length;l++){var c=n[l];0!==r[c]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={14:0},o=[];function i(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,i),n.l=!0,n.exports}i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var l=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var s=c;o.push([590,0]),n()}({1:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"ib",(function(){return o})),n.d(t,"y",(function(){return i})),n.d(t,"i",(function(){return l})),n.d(t,"M",(function(){return c})),n.d(t,"P",(function(){return d})),n.d(t,"w",(function(){return s})),n.d(t,"K",(function(){return p})),n.d(t,"p",(function(){return u})),n.d(t,"s",(function(){return m})),n.d(t,"R",(function(){return h})),n.d(t,"Q",(function(){return b})),n.d(t,"bb",(function(){return g})),n.d(t,"N",(function(){return f})),n.d(t,"v",(function(){return x})),n.d(t,"h",(function(){return w})),n.d(t,"u",(function(){return v})),n.d(t,"A",(function(){return A})),n.d(t,"x",(function(){return U})),n.d(t,"L",(function(){return y})),n.d(t,"t",(function(){return k})),n.d(t,"cb",(function(){return M})),n.d(t,"r",(function(){return D})),n.d(t,"S",(function(){return O})),n.d(t,"O",(function(){return N})),n.d(t,"db",(function(){return S})),n.d(t,"n",(function(){return C})),n.d(t,"k",(function(){return j})),n.d(t,"o",(function(){return L})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return W})),n.d(t,"D",(function(){return z})),n.d(t,"W",(function(){return _})),n.d(t,"z",(function(){return I})),n.d(t,"gb",(function(){return Z})),n.d(t,"hb",(function(){return $})),n.d(t,"fb",(function(){return H})),n.d(t,"b",(function(){return R})),n.d(t,"Z",(function(){return J})),n.d(t,"F",(function(){return V})),n.d(t,"a",(function(){return F})),n.d(t,"jb",(function(){return G})),n.d(t,"d",(function(){return Y})),n.d(t,"f",(function(){return q})),n.d(t,"e",(function(){return B})),n.d(t,"mb",(function(){return K})),n.d(t,"c",(function(){return Q})),n.d(t,"kb",(function(){return X})),n.d(t,"lb",(function(){return ee})),n.d(t,"T",(function(){return te})),n.d(t,"U",(function(){return ne})),n.d(t,"V",(function(){return ae})),n.d(t,"X",(function(){return re})),n.d(t,"Y",(function(){return oe})),n.d(t,"q",(function(){return ie})),n.d(t,"ab",(function(){return le})),n.d(t,"C",(function(){return ce})),n.d(t,"J",(function(){return de})),n.d(t,"j",(function(){return se})),n.d(t,"E",(function(){return pe})),n.d(t,"H",(function(){return ue})),n.d(t,"I",(function(){return me})),n.d(t,"G",(function(){return he})),n.d(t,"B",(function(){return ge})),n.d(t,"eb",(function(){return fe}));var a=n(4),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},o=function(e){return btoa(unescape(encodeURIComponent(e)))},i=function(e){return o(JSON.stringify(e))},l=function(e){return e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),s=new a.a(!1),p=new a.a(!1),u=new a.a(!1),m=new a.a(""),h=new a.a(!1),b=new a.a(!1),g=new a.a(!1),f=new a.a(!1),x=new a.a(!1),w=new a.a(!1),v=new a.a(""),A=new a.a(!0),U=new a.a(!0),y=new a.a(!0),k=new a.a(!0),M=new a.a(!0),D=new a.a(!0),O=new a.a({}),E=new a.a(!1),P=0,N=new a.a(!1),S=new a.a(""),C=new a.a(""),j=new a.a(""),L=new a.a(""),T=new a.a(""),W=new a.a(""),z=new a.a(""),_=new a.a(""),I=new a.a(!1),Z=new a.a(!1),$=new a.a(!1),H=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),new a.a([])),R=function(){setTimeout((function(){P++,E.next(!0)}),0)},J=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},V=function(){return E.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)},G=function(e){var t=0;return!!/(?=.{8,})/.test(e)&&(/([a-z])/.test(e)&&t++,/([A-Z])/.test(e)&&t++,/(\d)/.test(e)&&t++,/([!@#$%^&*])/.test(e)&&t++,!(t<3))},Y=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},B=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},K=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},Q=function(e){return/^[0-9]*$/.test(e)},X=function(e){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(e)},ee=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},te=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},ne=function(e){var t=(""+e).replace(/\D/g,"");if(t.length>10){var n=(t=t.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(n)return"("+n[1]+") "+n[2]+"-"+n[3]}var a="";return t.split("").forEach((function(e,t){a+=0==t?"("+e:2==t?e+") ":5==t?e+"-":e})),a},ae=function(e){var t=e.target.value;return 1==t.length?"("+t:5==t.length?t.slice(0,t.length-1)+") "+t[t.length-1]:10==t.length&&"-"!==t[t.length-1]?t.slice(0,t.length-1)+"-"+t[t.length-1]:10==t.length&&"-"===t[t.length-1]?t.substring(0,t.length-1):6==t.length?t.substring(0,t.length-2):t},re=function(e){return e&&(e=Number(e).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},oe=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},ie=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},le=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},ce=function(e){return e.length>0?e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):e};function de(e,t){var n=t||"html",a=e;return n||(n="html"),"html"==n&&(a=function(e){var t,n,a,i,l,s=e,p="";t=r(s,"<!--","-->",c,"W3HTMLCOMMENTPOS"),s=t.rest;for(;s.indexOf("<")>-1;)i="",n=s.indexOf("<"),"<STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"<SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf(">",n))&&(a=s.length),p+=s.substring(0,n),p+=o(s.substring(n,a+4)),s=s.substr(a+4),"css"==i&&(a=s.indexOf("</style>"))>-1&&(p+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("</script>"))>-1&&(p+=m(s.substring(0,a)),s=s.substr(a));for(s=p+s,l=0;l<t.arr.length;l++)s=s.replace("W3HTMLCOMMENTPOS",t.arr[l]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(e,t,n,a,r){for(var o,i,l="",c=[];e.search(t)>-1;)o=e.search(t),-1==(i=e.indexOf(n,o))&&(i=e.length),r?(c.push(a(e.substring(o,i+n.length))),e=e.substring(0,o)+r+e.substr(i+n.length)):(l+=e.substring(0,o),l+=a(e.substring(o,i+n.length)),e=e.substr(i+n.length));return{rest:l+e,arr:c}}function o(e){for(var t,n,a,r=e,o="";r.search(/(\s|<br>)/)>-1;)t=r.search(/(\s|<br>)/),-1==(n=r.indexOf(">"))&&(n=r.length),o+=r.substring(0,t),o+=i(r.substring(t,n)),r=r.substr(n);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(e){for(var t,n,a,r,o,i=e,c="";i.indexOf("=")>-1;)n=-1,t=i.indexOf("="),a=i.indexOf("'",t),r=i.indexOf('"',t),(o=i.indexOf(" ",t+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?n=i.indexOf(" ",t):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?n=i.indexOf('"',i.indexOf('"',t)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(n=i.indexOf("'",i.indexOf("'",t)+1)),(!n||-1==n||n<t)&&(n=i.length),c+=i.substring(0,t),c+=l(i.substring(t,n+1)),i=i.substr(n+1);return"<span style=color:green>"+c+i+"</span>"}function l(e){return"<span style=color:#1c8a9c>"+e+"</span>"}function c(e){return"<span style=color:green>"+e+"</span>"}function d(e){var t,n,a,o,i,l,d,p=e,u="";for(p=(a=r(p,/\/\*/,"*/",c,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(t=p.search("{"),i=p.substr(t+1),d=1,l=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(d++,l++),"}"==i.substr(o,1)&&d--,0!=d);o++);for(0!=d&&(l=0),n=t,o=0;o<=l;o++)n=p.indexOf("}",n+1);-1==n&&(n=p.length),u+=p.substring(0,t+1),u+=s(p.substring(t+1,n)),p=p.substr(n)}for(p=(p=(p=u+p).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)p=p.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+p+"</span>"}function s(e){var t,n,a,r,o=e,i="";if(o.indexOf("{")>-1)return d(o);for(;o.search(":")>-1;){for(r=!0,a=t=o.search(":");1==r;)r=!1,n=o.indexOf(";",a)," "==o.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=o.length),i+=o.substring(0,t),i+=p(o.substring(t,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</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+=u(n.substring(t,t+10)),n=n.substr(t+10);var r=a+n;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function u(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function m(e){var t,n,a,r,o,i,l,d,s,p,u=e,m="",y=[],k="";for(t=0;t<u.length;t++)"\\"==(n=u.substr(t,1))&&(y.push(u.substr(t,2)),n="W3JSESCAPE",t++),k+=n;for(u=k,1;a=A(u,"'","'",h),r=A(u,'"','"',h),o=A(u,/\/\*/,"*/",c),i=A(u,/\/\//,"<br>",c),d=U(u,g),l=v("js",u,b),p=x(u,f),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],l[0],p[0])&&-1!=(s=w(d,a,r,o,i,l,p))[0];)s[0]>-1&&(m+=u.substring(0,s[0]),m+=s[2](u.substring(s[0],s[1])),u=u.substr(s[1]));for(u=m+u,t=0;t<y.length;t++)u=u.replace("W3JSESCAPE",y[t]);return"<span style=color:black>"+u+"</span>"}function h(e){return"<span style=color:brown>"+e+"</span>"}function b(e){return"<span style=color:mediumblue>"+e+"</span>"}function g(e){return"<span style=color:red>"+e+"</span>"}function f(e){return"<span style=color:black>"+e+"</span>"}function x(e,t){var n,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=e.indexOf("."))>-1)for(n=e.substr(o+1),r=0;r<n.length;r++){var l=n[r];for(a=0;a<i.length;a++)if(l.indexOf(i[a])>-1)return[o+1,r+o+1,t]}return[-1,-1,t]}function w(e,t,n,a,r,o,i){var l,c=[];for(l=0;l<arguments.length;l++)arguments[l][0]>-1&&(0==c.length||arguments[l][0]<c[0])&&(c=arguments[l]);return 0==c.length&&(c=arguments[l]),c}function v(e,t,n){var a,r,o,i,l=-1,c=-1;for("js"==e&&(i=["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<i.length;a++)(r=t.indexOf(i[a]))>-1&&(o=/\W/g,t.substr(r+i[a].length,1).match(o)&&t.substr(r-1,1).match(o)&&r>-1&&(-1==l||r<l)&&(c=(l=r)+i[a].length));return[l,c,n]}function A(e,t,n,a){var r,o;return r=e.search(t),-1==(o=e.indexOf(n,r+n.length))&&(o=e.length),[r,o+n.length,a]}function U(e,t){var n,a,r,o,i,l=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],c=0;for(n=0;n<e.length;n++)for(a=0;a<l.length;a++)if((r=e.substr(n,l[a].length))==l[a]){if("-"==r&&("e"==e.substr(n-1,1)||"E"==e.substr(n-1,1)))continue;if(c<(o=n)&&(i=e.substring(c,o),!isNaN(i)))return[c,o,t];c=n+=l[a].length,n-=1;break}return[-1,-1,t]}}var se=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},pe=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},ue=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},me=function(e){if("string"===typeof e){var t=e;return t=(t=t.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return e},he=function(e){return Math.floor(Math.random()*e)+1},be=["January","February","March","April","May","June","July","August","September","October","November","December"],ge=function(e){var t=new Date(e);if("Invalid Date"==t.toString())return e;var n=t.getFullYear(),a=t.getMonth(),r=(t.getDate()+"").padStart(2,"0");return"".concat(be[a].slice(0,3)," ").concat(r,", ").concat(n)},fe=function(e){var t,n=[];(e.arguments.split(",").forEach((function(e){e=e.indexOf(":")>-1?JSON.parse(e):e.replaceAll('"',"").trim(),n.push(e)})),window.gtag&&"function"===typeof window.gtag)&&(window.location.pathname==e.path&&(t=window).gtag.apply(t,n))}},10:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a),o=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));"})),i=function(e){var t=e.className,n=e.children,a=e.maxWidth,i=void 0===a?1520:a,l=e.padding,c=void 0===l||l;return r.a.createElement(o,{className:t,maxWidth:i,padding:c},n)};t.b=i},2: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,extraLarge:2560},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)"),smallMobileMax:"(max-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-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)"),largeMobileAndUpMax3:"(max-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(a.largeMobileAndUp-1,"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)"),mediumDesktopAndUp2Max:"(max-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)"),extraLargeMax:"(max-width: ".concat(a.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(a.extraLarge,"px)")}},473:function(e,t,n){"use strict";n.r(t);var a=n(22),r=n(97);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-color-list",useShadow:!1},plugins:[]})},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(31),r=n(0),o=n.n(r),i=n(5),l=n(2),c=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),d=i.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;}"],l.b.smallDesktop2Min),s=n(30),p=n(29),u=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,i=void 0===r?"default":r,l=e.link,u=void 0!==l&&l,m=e.disabled,h=void 0!==m&&m,b=e.datatoggle,g=void 0===b?"":b,f=e.datatarget,x=void 0===f?"":f,w=e.linkHref,v=e.target,A=void 0===v?"_self":v,U=e.downloadLink,y=void 0!==U&&U,k=e.inverse,M=void 0!==k&&k,D=e.icon,O=void 0===D?"":D,E=e.iconAlt,P=void 0===E?"":E,N=e.dataItemName,S=void 0===N?"":N,C=e.id,j=void 0===C?"":C,L=e.type,T=void 0===L?"button":L,W=e.showDisabledMessage,z=void 0===W?"":W,_=e.ariaLabel,I=void 0===_?"":_,Z=e.tabIndex,$=void 0===Z?-1:Z,H=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel","tabIndex"]);return o.a.createElement(c,null,o.a.createElement("div",{className:"".concat(h&&z&&"disabled-button-parent")},u?o.a.createElement("a",{href:w,download:y,target:A,"data-item-name":S,id:j,"aria-label":I},o.a.createElement(d,Object.assign({disabled:h,classStyle:"".concat(i)},H,{type:T,className:M?"btn-inverse btn btn-success":"btn btn-success",tabIndex:$}),""!=O?o.a.createElement("div",{"data-toggle":g,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:P}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:h,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:j,"data-item-name":S,type:T,"data-toggle":g,"data-target":x},H),o.a.createElement("span",null,n)),h&&z&&o.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(p.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(e){var t=e.setter,n=t.componentThemes,r=t.selectedTheme;return o.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)};t.b=i},9:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(23),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(c){console.log(c)}var a=t?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(l.Provider,{value:{rtl:t}},e.children))}},97:function(e,t,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(1),l=n(5),c=n(2),d=l.default.section.withConfig({displayName:"styles__Content",componentId:"sc-2gyuc7-0"})([".modal{&-dialog{&-centered{display:flex;align-items:center;justify-content:center;height:100%;margin-top:0px;margin-bottom:0px;@media ","{width:700px;}}}.close{font-size:var(--font-size-l2);color:var(--text-color);cursor:pointer;@media ","{font-size:var(--font-size-md);}}&-body{max-height:80vh;overflow-y:auto;}}.tile-container{padding-bottom:36px;}.color-name{margin-top:18px;}.hover-div{display:none;}.color-tile{border-radius:var(--border-radius);height:calc(18vw);display:flex;justify-content:center;align-items:center;}.color-tile:hover{.hover-div{display:block;text-align:var(--text-center);}.product-img{opacity:40%;}}button{width:calc(100%);opacity:70%;word-wrap:break-word;white-space:normal;}button:hover{opacity:100%;transform:scale(1) !important;}li{display:inline;}.modal-body{padding-top:0px;}.modal-header{border-bottom:0px;}@media ","{.modal-dialog{max-width:calc(56%) !important;}}.modal-header button{width:auto;}.padding-tile{display:flex;column-gap:20px;}.font-weight-semi{font-weight:var(--font-weight-semi-bold);}.show-more{width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer;}@media ","{button{width:100%;height:auto;}}@media screen and ","{.color-tile{height:calc(38vw);}.tile-container{padding-bottom:20px;}.color-name{text-align:var(--text-center);margin-top:8px;}.door-images{flex-wrap:wrap;gap:20px;li{flex:0 0 46%;}}}@media ","{.color-tile{height:346px !important;}}"],c.b.smallDesktopAndUp2,c.b.largeDesktopMin,c.b.mediumDesktopAndUp2,c.b.desktopAndUp,c.b.mobileMax,c.b.wrapperMaxWidth2),s=n(6),p=function(e){var t=e.item,n=e.viewMoreLabel,l=e.ctaLabel,c=e.buttonType,p=e.modelDescription,u=e.showOneRowOnly,m=e.index,h=e.onShowMoreClick,b=(e.enablePlpPage,e.plpPagePath),g=Object(r.useState)(!1),f=Object(a.a)(g,2),x=f[0],w=f[1];Object(r.useEffect)((function(){u&&w(!0)}),[]);return o.a.createElement(d,null,o.a.createElement("div",{className:"tile-container"},o.a.createElement("div",{className:"color-tile",style:t.colorImage?{backgroundImage:"url("+t.colorImage+")",backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:"#"+t.hexCode}},(x&&3!==m||!x)&&l&&l.length>0&&o.a.createElement("div",{className:"hover-div"},"buttonPlp"===c&&o.a.createElement("span",null,o.a.createElement(s.a,{label:Object(i.i)(l),link:!0,target:"_self",linkHref:b})),"buttonPopup"===c&&o.a.createElement("span",{"data-toggle":"modal","data-target":"#colortile-popup-".concat(t.colorValue)},o.a.createElement(s.a,{label:Object(i.i)(l),link:!0,dataItemName:t.colorTitle}))),x&&3===m&&o.a.createElement("a",{className:"show-more",onClick:function(e){w(!1),h(!0)},"aria-label":"Show more",role:"button"},o.a.createElement("span",null,n))),o.a.createElement("div",{className:"color-name body-text1 amarr-h5"},t.colorTitle),o.a.createElement("div",{className:"modal fade",id:"colortile-popup-".concat(t.colorValue),role:"dialog","aria-hidden":"true"},o.a.createElement("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},o.a.createElement("div",{className:"modal-content"},o.a.createElement("div",{className:"modal-header"},o.a.createElement("div",{className:"amarr-h4"},t.colorTitle),o.a.createElement("button",{type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},o.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),o.a.createElement("div",{className:"modal-body"},o.a.createElement("div",{className:"mb-4 pb-2 body-text1"},p),o.a.createElement("ul",{className:"text-center padding-tile ml-0 door-images"},t.doors&&t.doors.length>0&&t.doors.map((function(e,t){return o.a.createElement("li",null,o.a.createElement("img",{loading:"lazy",src:e.url,alt:e.altText}))})))))))))},u=n(13),m=n.n(u),h={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},b=n(12);function g(){var e=Object(b.a)(["\n .color-page-des {\n padding-bottom: 28px;\n }\n .section-heading-color {\n padding-bottom: 20px;\n }\n @media screen and "," {\n .section-heading-color {\n padding-bottom: 8px;\n }\n .color-list-mobile:nth-child(odd) {\n padding-right: 11px !important;\n }\n .color-list-mobile:nth-child(even) {\n padding-left: 11px !important;\n }\n }\n "]);return g=function(){return e},e}var f=l.default.div.withConfig({displayName:"styles__Content",componentId:"pcudtj-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(l.css)(g(),c.b.mobileMax)})),x=n(8),w=n(9),v=n(10),A={headingStyle:"",header:{text:""},showOneRowOnly:!0,viewMoreLabel:"",ctaLabel:"",enablePlpPage:"false",plpPagePath:"",modelDescription:"",colorList:[{colorTitle:"",hexCode:"",colorValue:"",colorImage:"",doors:[{url:"",altText:""}]}],buttonType:""},U=function(e){var t=m()({},A,Object(i.g)(e.content)),n=Object(r.useState)([]),l=Object(a.a)(n,2),c=l[0],d=l[1];function s(e){var n;n=t.colorList,d(n)}return Object(r.useEffect)((function(){var e;t.showOneRowOnly?(e=t.colorList.splice(0,4),d(e)):(e=t.colorList,d(e))}),[]),o.a.createElement(x.a,{setter:{componentThemes:h,selectedTheme:e.theme}},o.a.createElement(w.a,null,o.a.createElement(v.a,null,o.a.createElement(f,{isReversed:!1},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"section-heading-color text-center"},"h1"===t.headingStyle&&o.a.createElement("h1",{className:"heading-style-1"},t.header&&t.header.text),"h2"===t.headingStyle&&o.a.createElement("h2",{className:"heading-style-1"},t.header&&t.header.text),"h3"===t.headingStyle&&o.a.createElement("h3",{className:"heading-style-1"},t.header&&t.header.text),"h4"===t.headingStyle&&o.a.createElement("h4",{className:"heading-style-1"},t.header&&t.header.text),"h5"===t.headingStyle&&o.a.createElement("h5",{className:"heading-style-1"},t.header&&t.header.text),"h6"===t.headingStyle&&o.a.createElement("h6",{className:"heading-style-1"},t.header&&t.header.text)),o.a.createElement("div",{className:"row"},c&&c.length>0&&c.map((function(e,n){return o.a.createElement("div",{className:"col-md-3 col-6 color-list-mobile",key:n},o.a.createElement(p,{item:e,index:n,showOneRowOnly:t.showOneRowOnly,viewMoreLabel:t.viewMoreLabel.replace("{{count}}",(t.colorList.length-4).toString()),buttonType:t.buttonType,ctaLabel:t.ctaLabel,modelDescription:t.modelDescription,onShowMoreClick:s,enablePlpPage:t.enablePlpPage,plpPagePath:t.plpPagePath+"?color="+e.colorTitle}))}))))))))};U.defaultProps={theme:"",content:""};t.a=U}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-color-list",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15",
|
|
4
4
|
"description": "Web component - Color-list",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "color-list.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "83ee03b95b4dbb48eece9b4df700056bc99475ba"
|
|
15
15
|
}
|