@assaabloy/amarr-wc-online-prices 1.0.2 → 1.0.4
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/online-prices.js +1 -1
- package/package.json +2 -2
package/online-prices.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function t(t){for(var a,i,c=t[0],l=t[1],d=t[2],u=0,p=[];u<c.length;u++)i=c[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(s&&s(t);p.length;)p.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,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={75: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 c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var s=l;o.push([637,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"fb",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"L",(function(){return c})),n.d(t,"O",(function(){return l})),n.d(t,"w",(function(){return d})),n.d(t,"J",(function(){return s})),n.d(t,"p",(function(){return u})),n.d(t,"s",(function(){return p})),n.d(t,"Q",(function(){return m})),n.d(t,"P",(function(){return g})),n.d(t,"ab",(function(){return f})),n.d(t,"M",(function(){return b})),n.d(t,"v",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"u",(function(){return x})),n.d(t,"z",(function(){return w})),n.d(t,"x",(function(){return A})),n.d(t,"K",(function(){return U})),n.d(t,"t",(function(){return k})),n.d(t,"bb",(function(){return y})),n.d(t,"r",(function(){return M})),n.d(t,"R",(function(){return E})),n.d(t,"N",(function(){return N})),n.d(t,"cb",(function(){return S})),n.d(t,"n",(function(){return P})),n.d(t,"k",(function(){return j})),n.d(t,"o",(function(){return C})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return I})),n.d(t,"C",(function(){return T})),n.d(t,"V",(function(){return z})),n.d(t,"y",(function(){return L})),n.d(t,"db",(function(){return H})),n.d(t,"eb",(function(){return W})),n.d(t,"b",(function(){return $})),n.d(t,"Y",(function(){return J})),n.d(t,"E",(function(){return Z})),n.d(t,"a",(function(){return F})),n.d(t,"gb",(function(){return R})),n.d(t,"d",(function(){return q})),n.d(t,"f",(function(){return V})),n.d(t,"e",(function(){return B})),n.d(t,"jb",(function(){return G})),n.d(t,"c",(function(){return Y})),n.d(t,"hb",(function(){return K})),n.d(t,"ib",(function(){return Q})),n.d(t,"S",(function(){return X})),n.d(t,"T",(function(){return ee})),n.d(t,"U",(function(){return te})),n.d(t,"W",(function(){return ne})),n.d(t,"X",(function(){return ae})),n.d(t,"q",(function(){return re})),n.d(t,"Z",(function(){return oe})),n.d(t,"I",(function(){return ie})),n.d(t,"j",(function(){return ce})),n.d(t,"D",(function(){return le})),n.d(t,"G",(function(){return de})),n.d(t,"H",(function(){return se})),n.d(t,"F",(function(){return ue})),n.d(t,"A",(function(){return me})),n.d(t,"B",(function(){return ge}));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 e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},l=new a.a(!1),d=new a.a(!1),s=new a.a(!1),u=new a.a(!1),p=new a.a(""),m=new a.a(!1),g=new a.a(!1),f=new a.a(!1),b=new a.a(!1),h=new a.a(!1),v=new a.a(!1),x=new a.a(""),w=new a.a(!0),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),y=new a.a(!0),M=new a.a(!0),E=new a.a({}),D=new a.a(!1),O=0,N=new a.a(!1),S=new a.a(""),P=new a.a(""),j=new a.a(""),C=new a.a(""),_=new a.a(""),I=new a.a(""),T=new a.a(""),z=new a.a(""),L=new a.a(!1),H=new a.a(!1),W=new a.a(!1),$=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),function(){setTimeout((function(){O++,D.next(!0)}),0)}),J=function(){setTimeout((function(){O>0&&O--,0==O&&D.next(!1)}),0)},Z=function(){return D.asObservable()},F=function(e){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},R=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))},q=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},V=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)},G=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},Y=function(e){return/^[0-9]*$/.test(e)},K=function(e){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(e)},Q=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},X=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},ee=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},te=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},ne=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},ae=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},re=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},oe=function(e,t,n){var a="",r=e.split(t);return r.forEach((function(e,t){"undefined"!==e&&e&&(a+=e,t!==r.length-1&&(a+=n))})),a};function ie(e,t){var n=t||"html",a=e;return n||(n="html"),"html"==n&&(a=function(e){var t,n,a,i,c,s=e,u="";t=r(s,"<!--","-->",l,"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),u+=s.substring(0,n),u+=o(s.substring(n,a+4)),s=s.substr(a+4),"css"==i&&(a=s.indexOf("</style>"))>-1&&(u+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("</script>"))>-1&&(u+=m(s.substring(0,a)),s=s.substr(a));for(s=u+s,c=0;c<t.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",t.arr[c]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(e,t,n,a,r){for(var o,i,c="",l=[];e.search(t)>-1;)o=e.search(t),-1==(i=e.indexOf(n,o))&&(i=e.length),r?(l.push(a(e.substring(o,i+n.length))),e=e.substring(0,o)+r+e.substr(i+n.length)):(c+=e.substring(0,o),c+=a(e.substring(o,i+n.length)),e=e.substr(i+n.length));return{rest:c+e,arr:l}}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,l="";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),l+=i.substring(0,t),l+=c(i.substring(t,n+1)),i=i.substr(n+1);return"<span style=color:green>"+l+i+"</span>"}function c(e){return"<span style=color:#1c8a9c>"+e+"</span>"}function l(e){return"<span style=color:green>"+e+"</span>"}function d(e){var t,n,a,o,i,c,d,u=e,p="";for(u=(a=r(u,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(t=u.search("{"),i=u.substr(t+1),d=1,c=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(d++,c++),"}"==i.substr(o,1)&&d--,0!=d);o++);for(0!=d&&(c=0),n=t,o=0;o<=c;o++)n=u.indexOf("}",n+1);-1==n&&(n=u.length),p+=u.substring(0,t+1),p+=s(u.substring(t+1,n)),u=u.substr(n)}for(u=(u=(u=p+u).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)u=u.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+u+"</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+=u(o.substring(t,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function u(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+=p(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 p(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function m(e){var t,n,a,r,o,i,c,d,s,u,p=e,m="",k=[],y="";for(t=0;t<p.length;t++)"\\"==(n=p.substr(t,1))&&(k.push(p.substr(t,2)),n="W3JSESCAPE",t++),y+=n;for(p=y,1;a=A(p,"'","'",g),r=A(p,'"','"',g),o=A(p,/\/\*/,"*/",l),i=A(p,/\/\//,"<br>",l),d=U(p,b),c=w("js",p,f),u=v(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],c[0],u[0])&&-1!=(s=x(d,a,r,o,i,c,u))[0];)s[0]>-1&&(m+=p.substring(0,s[0]),m+=s[2](p.substring(s[0],s[1])),p=p.substr(s[1]));for(p=m+p,t=0;t<k.length;t++)p=p.replace("W3JSESCAPE",k[t]);return"<span style=color:black>"+p+"</span>"}function g(e){return"<span style=color:brown>"+e+"</span>"}function f(e){return"<span style=color:mediumblue>"+e+"</span>"}function b(e){return"<span style=color:red>"+e+"</span>"}function h(e){return"<span style=color:black>"+e+"</span>"}function v(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 c=n[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,t]}return[-1,-1,t]}function x(e,t,n,a,r,o,i){var c,l=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==l.length||arguments[c][0]<l[0])&&(l=arguments[c]);return 0==l.length&&(l=arguments[c]),l}function w(e,t,n){var a,r,o,i,c=-1,l=-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==c||r<c)&&(l=(c=r)+i[a].length));return[c,l,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,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(n=0;n<e.length;n++)for(a=0;a<c.length;a++)if((r=e.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==e.substr(n-1,1)||"E"==e.substr(n-1,1)))continue;if(l<(o=n)&&(i=e.substring(l,o),!isNaN(i)))return[l,o,t];l=n+=c[a].length,n-=1;break}return[-1,-1,t]}}var ce=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},le=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},de=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},se=function(e){if("string"===typeof e){var t=e;return t=(t=t.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return e},ue=function(e){return Math.floor(Math.random()*e)+1},pe=["January","February","March","April","May","June","July","August","September","October","November","December"],me=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(pe[a].slice(0,3)," ").concat(r,", ").concat(n)},ge=function(e){return e.length>0?e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):e}},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,c=e.padding,l=void 0===c||c;return r.a.createElement(o,{className:t,maxWidth:i,padding:l},n)};t.b=i},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(28),r=n(0),o=n.n(r),i=n(5),c=(n(42),i.default.div.withConfig({displayName:"styles__View",componentId:"sc-10ksvu2-0"})([".loader{position:fixed;left:0;right:0;top:0;bottom:0;text-align:var(--text-center);z-index:9999;background:rgba(0,0,0,0.5);overflow:hidden;div{align-items:center;}}"])),l=n(33),d=n.n(l),s=n(1),u=function(e){return Object(a.a)(e),o.a.createElement(c,null,o.a.createElement("div",{className:"d-flex justify-content-center loader"},o.a.createElement("div",{className:"d-flex"},o.a.createElement(d.a,{type:"ThreeDots",color:Object(s.G)(),height:100,width:100}))))}},17:function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return s}));var a=n(7),r=n.n(a),o=n(40),i=function(){var e=localStorage.getItem("dealerMagentoToken");return"true"===localStorage.getItem("isHomeownerSite")&&(e=localStorage.getItem("homeownerMagentoToken")),"false"===localStorage.getItem("isHomeownerSite")&&"true"===localStorage.getItem("enableEcommerce")&&(e=localStorage.getItem("dealerMagentoToken")),e},c=function(){var e=i();if(e&&e.length>0){var t=Object(o.a)(e).exp;return!((new Date).getTime()>1e3*Number(t))}return!1};function l(e,t){if(t)return r()({url:e,method:"POST",headers:{"Content-type":"application/json",redirectOnTokenFailure:!1},data:JSON.stringify({query:t})})}function d(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i();if(t)return r()({url:e,method:"POST",headers:{Authorization:"Bearer "+a,"Content-type":"application/json",redirectOnTokenFailure:n},data:JSON.stringify({query:t})})}function s(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i();if(t)return r()({url:e,method:"POST",headers:{Authorization:"Bearer "+a,"Content-type":"application/json",redirectOnTokenFailure:n},data:JSON.stringify({query:t})})}r.a.interceptors.response.use((function(e){var t,n,a,r,o,i,c;return(null===(t=e.data)||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.errors)||void 0===a?void 0:a.length)>0||(null===(r=e.data)||void 0===r||null===(o=r.errors)||void 0===o?void 0:o.length)?Promise.reject(e):("The current customer isn't authorized."===(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(c=i.errors)||void 0===c?void 0:c.message)&&(window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken")),e)}),(function(e){return Promise.reject(e)})),r.a.interceptors.request.use((function(e){var t=localStorage.getItem("erp-dealer-id")||"";if("true"===localStorage.getItem("isHomeownerSite")&&(t=localStorage.getItem("erp-dealer-id")||""),"false"===localStorage.getItem("isHomeownerSite")&&"true"===localStorage.getItem("enableEcommerce")){var n=localStorage.getItem("dealer"),a=JSON.parse(n);t=Number(a.accountNumber)+""}var r=localStorage.getItem("store"),c="true"===localStorage.getItem("enableLogoutRedirection");if(t&&(e.headers.common["erp-dealer-id"]=t),r&&(e.headers.common.store=r),e.headers.redirectOnTokenFailure&&c){var l=i();if(l&&l.length>0){var d=Object(o.a)(l).exp;(new Date).getTime()>1e3*Number(d)&&(window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken"))}else window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken")}return delete e.headers.redirectOnTokenFailure,e}))},175:function(e,t,n){"use strict";var a=n(24),r=n.n(a),o=n(15),i=n(34),c=n(3),l=n(7),d=n.n(l),s=n(45),u=n.n(s),p=n(0),m=n.n(p),g=n(13),f=n.n(g),b=n(9),h=n(14),v=n(18),x=n(8),w=n(10),A=n(17),U=n(1),k={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},y=n(11),M=n(5);function E(){var e=Object(y.a)(["\n .row {\n margin-bottom: 18px;\n }\n\n .text {\n font-size: var(--font-size-h6);\n }\n\n .sub-header {\n font-size: var(--font-size-h5);\n font-weight: var(--font-weight-semi-bold);\n }\n\n .page-link {\n cursor: pointer;\n color: var(--accent) !important;\n\n &.selected-page {\n background: var(--accent);\n color: var(--bg-main) !important;\n }\n }\n\n a {\n text-decoration: none;\n }\n\n .show-per-page{\n label{\n margin: 0;\n }\n }\n\n table {\n tr {\n td {\n word-break: break-word;\n }\n }\n }\n\n .pagination {\n a {\n color: var(--accent);\n position: relative;\n display: block;\n padding: 0.5rem 0.75rem;\n margin-left: -1px;\n line-height: 1.25;\n background-color: var(--bg-main);\n border: 1px solid var(--border-pagination);\n cursor: pointer;\n\n :hover {\n text-decoration: none;\n }\n }\n\n .active-page {\n background: var(--accent);\n color: var(--bg-main) !important;\n\n a {\n color: var(--bg-main) !important;\n background: var(--accent);\n }\n }\n }\n "]);return E=function(){return e},e}var D=M.default.div.withConfig({displayName:"styles__Content",componentId:"u4gnd6-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(M.css)(E())})),O={header:{text:""},subHeader:{text:""},perPage:{text:""},collectionHeading:{text:""},sizeHeading:{text:""},doorDesignHeading:{text:""},windowHeading:{text:""},colorHeading:{text:""},startingPriceHeading:{text:""},doorSize:{text:""},apiURL:"",plpAPIPath:""},N=[{text:"10",value:"10"},{text:"15",value:"15"},{text:"20",value:"20"},{text:"25",value:"25"},{text:"30",value:"30"}],S=function(e){var t=Object(p.useState)(!1),n=Object(c.a)(t,2),a=n[0],l=n[1],s=Object(p.useState)([]),g=Object(c.a)(s,2),y=g[0],M=g[1],E=f()({},O,Object(U.g)(e.content)),S=Object(p.useState)(10),P=Object(c.a)(S,2),j=P[0],C=P[1],_=Object(p.useState)(1),I=Object(c.a)(_,2),T=I[0],z=I[1],L=Object(p.useState)(0),H=Object(c.a)(L,2),W=H[0],$=H[1],J=function(e){var t=e.map((function(e){return e.doorDesignerCode}));return t.filter((function(e,n){return Boolean(e)&&t.indexOf(e)===n})).toString()},Z=function(){var e=Object(i.a)(r.a.mark((function e(t){var n,a,i,c,l,s,u,p,m,g,f,b;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Object(U.b)(),e.next=4,d.a.get("".concat(E.plpAPIPath,"?term=*&limit=").concat(j,"&page=").concat(t,"&order=asc&customField=type%3Ddoors"));case 4:return s=e.sent,u=((null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.hits)||[]).map((function(e){var t,n,a,r,o,i;return{id:e.id,doorDesignerCode:(null===e||void 0===e||null===(t=e.custom_fields)||void 0===t?void 0:t.collectionDoorDesignerCode)||"",collectionName:(null===e||void 0===e||null===(n=e.custom_fields)||void 0===n?void 0:n.collectionName)||"",imageUrl:(null===e||void 0===e||null===(a=e.custom_fields)||void 0===a?void 0:a.image)||"",doorDesign:(null===e||void 0===e||null===(r=e.custom_fields)||void 0===r?void 0:r.panelDesign)||"",window:(null===e||void 0===e||null===(o=e.custom_fields)||void 0===o?void 0:o.windowOptionDoorDesignerCode)||"",color:(null===e||void 0===e||null===(i=e.custom_fields)||void 0===i?void 0:i.color)||"",size:E.doorSize.text||""}})),p=localStorage.getItem("dealer")||"",m=JSON.parse(p),g=Number(m.accountNumber),e.next=11,Object(A.b)(E.apiURL,"\n {\n catalogPrices(dealer_id: ".concat(g,", sku: [").concat(J(u),"]) {\n additional_charges {\n low_head_room\n site_check\n site_check_diy\n }\n openers{\n labour_charge\n margin\n }\n items {\n error\n priceData {\n consumer_start_price\n dealer_start_price\n id\n imap_price\n labour_charge\n margin\n }\n sku\n status\n }\n }\n }\n "));case 11:f=e.sent,b=(null===f||void 0===f||null===(a=f.data)||void 0===a||null===(i=a.data)||void 0===i||null===(c=i.catalogPrices)||void 0===c?void 0:c.items)||[],u=u.map((function(e){var t,n=b.find((function(t){return t.sku===e.doorDesignerCode})),a=(null===(t=((null===n||void 0===n?void 0:n.priceData)||[])[0])||void 0===t?void 0:t.consumer_start_price)||0;return Object(o.a)(Object(o.a)({},e),{},{startingPrice:a})})),M(u),$((null===s||void 0===s||null===(l=s.data)||void 0===l?void 0:l.total_hits)||0),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.error(e.t0);case 21:return e.prev=21,Object(U.Y)(),e.finish(21);case 24:case"end":return e.stop()}}),e,null,[[0,18,21,24]])})));return function(t){return e.apply(this,arguments)}}();return Object(p.useEffect)((function(){Object(U.E)().subscribe((function(e){l(e)}))}),[]),Object(p.useEffect)((function(){Z(T)}),[T]),m.a.createElement(x.a,{setter:{componentThemes:k,selectedTheme:e.theme}},m.a.createElement(b.a,null,m.a.createElement(w.a,{className:"pl-0"},m.a.createElement(D,{isReversed:!1},a&&m.a.createElement(h.a,null),m.a.createElement("section",{className:"container online-prices"},m.a.createElement("div",{className:"row justify-content-center mb-5"},m.a.createElement("div",{className:"col-12"},m.a.createElement("div",{className:"row"},m.a.createElement("div",{className:"col-12 d-flex justify-content-between align-items-center mb-3"},m.a.createElement("div",{className:"sub-header amarr-h5"},E.subHeader.text),m.a.createElement("div",{className:"d-flex flex-row-reverse align-items-center"},m.a.createElement("div",{className:"show-per-page",style:{width:"120px"}},m.a.createElement(v.a,{onChange:function(e){var t,n=Number((null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value)||0);C(n),z(1)},required:!1,options:N,value:String(j)})),m.a.createElement("div",{className:"mr-2 body-text2"},E.perPage.text))),m.a.createElement("div",{className:"col-12"},m.a.createElement("div",{className:"table-responsive br_4"},m.a.createElement("table",{className:"table table-bordered",role:"table"},m.a.createElement("thead",null,m.a.createElement("tr",null,m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.collectionHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.sizeHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.doorDesignHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.windowHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.colorHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.startingPriceHeading.text))),m.a.createElement("tbody",null,y.map((function(e){return m.a.createElement("tr",{key:e.id},m.a.createElement("td",{scope:"row",className:"body-text2"},m.a.createElement("div",{className:"d-flex flex-column"},m.a.createElement("div",{className:"mb-2"},e.collectionName),m.a.createElement("div",null,m.a.createElement("img",{width:"56",height:"48",loading:"lazy",src:"".concat(e.imageUrl),alt:"door"})))),m.a.createElement("td",{scope:"row",className:"body-text2"},e.size),m.a.createElement("td",{scope:"row",className:"body-text2"},e.doorDesign),m.a.createElement("td",{scope:"row",className:"body-text2"},e.window),m.a.createElement("td",{scope:"row",className:"body-text2"},e.color),m.a.createElement("td",{scope:"row",className:"body-text2"},"$",e.startingPrice))}))))),m.a.createElement("nav",{"aria-label":"Page navigation",className:"mt-4"},m.a.createElement(u.a,{previousLabel:m.a.createElement("span",{"aria-hidden":"true"},"\xab"),nextLabel:m.a.createElement("span",{"aria-hidden":"true"},"\xbb"),pageCount:W/j,marginPagesDisplayed:2,pageRangeDisplayed:2,onPageChange:function(e){z(e.selected+1)},containerClassName:"pagination justify-content-end",activeClassName:"active-page",forcePage:T-1})))))))))))};S.defaultProps={theme:"",content:""};t.a=S},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__View",componentId:"g1x5bu-0"})(["select{appearance:none;}.flex-span{position:relative;}.select-dropdown{&-icon{width:16px;height:16px;position:absolute;right:12px;top:34%;transform:rotate(87deg);pointer-events:none;}}"]),i=n(1),c=n(39),l=function(e){var t=e.label,n=void 0===t?"":t,a=e.required,l=void 0===a||a,d=e.isAsterisks,s=void 0===d||d,u=e.options,p=void 0===u?[{text:"",value:""}]:u,m=e.placeholder,g=void 0===m?"":m,f=e.errorMsg,b=void 0===f?"":f,h=e.className,v=void 0===h?"":h,x=e.prefix,w=void 0===x?"":x,A=e.name,U=void 0===A?"":A,k=e.selectClassName,y=void 0===k?"":k,M=e.onChange,E=void 0===M?function(){}:M,D=e.hasPopup,O=void 0!==D&&D,N=e.popupText,S=void 0===N?"text":N,P=e.reset,j=void 0!==P&&P,C=e.disabled,_=void 0!==C&&C,I=e.value,T=void 0===I?"":I;return r.a.createElement(o,null,r.a.createElement("div",{className:v},r.a.createElement("label",{htmlFor:"".concat(n?Object(i.L)(n):U,"-id")},l&&s&&r.a.createElement("span",{className:"required"},"*")," ",n,O&&r.a.createElement("a",{"data-toggle":"modal","data-target":"#info-popup-".concat(U)},r.a.createElement("img",{loading:"lazy",className:"ml-2",src:Object(i.D)().concat("ic-info.svg"),alt:"info icon"}))),r.a.createElement("span",{className:"flex-span"},w&&w.length>0&&r.a.createElement("span",{className:"prefix"},w),r.a.createElement("img",{loading:"lazy",className:"select-dropdown-icon",alt:"dropdown icon",src:Object(i.D)().concat("ic-arrow-right-dark.svg")}),r.a.createElement("select",{className:y,id:"".concat(n?Object(i.L)(n):U,"-id"),onChange:E,name:U,disabled:_,value:T},g&&(j?r.a.createElement("option",{value:"",selected:!0},g):r.a.createElement("option",{value:""},g)),p&&p.length>0&&p.map((function(e,t){return r.a.createElement("option",{key:t,value:e.value},e.text)})))),r.a.createElement("span",{className:"error"},b)),O&&r.a.createElement(c.a,{name:U,heading:n,text:S}))}},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)")}},32:function(e,t){e.exports=ReactDOM},39:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__View",componentId:"sc-28t0ak-0"})([".modal{&-content{border-radius:var(--border-radius);box-shadow:0 4px 12px 0 rgb(0 0 0 / 20%);}&-dialog{&-centered{display:flex;align-items:center;height:100%;margin-top:0;margin-bottom:0;}}}"]),i=n(6),c=function(e){var t=e.heading,n=e.text,a=void 0===n?"":n,c=e.name,l=void 0===c?"":c,d=e.requiredDismissButton,s=void 0!==d&&d,u=e.dismissText,p=void 0===u?"":u;return r.a.createElement(o,null,r.a.createElement("div",{className:"modal fade",id:"info-popup-".concat(l),role:"dialog","aria-hidden":"true"},r.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},r.a.createElement("div",{className:"modal-content"},r.a.createElement("div",{className:"modal-header"},t&&r.a.createElement("h4",{className:"mb-3"},t),r.a.createElement("button",{type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},r.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),r.a.createElement("div",{className:"modal-body mb-3"},r.a.createElement("div",{className:"body-text2",dangerouslySetInnerHTML:{__html:a}})),s&&r.a.createElement("div",{className:"modal-footer justify-content-between"},r.a.createElement(i.a,{label:p,"data-dismiss":"modal"}))))))}},520:function(e,t,n){"use strict";n.r(t);var a=n(22),r=n(175);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-online-prices",useShadow:!1},plugins:[]})},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(31),r=n(0),o=n.n(r),i=n(5),c=n(2),l=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;}"],c.b.smallDesktop2Min),s=n(30),u=n(29),p=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,i=void 0===r?"default":r,c=e.link,p=void 0!==c&&c,m=e.disabled,g=void 0!==m&&m,f=e.datatoggle,b=void 0===f?"":f,h=e.datatarget,v=void 0===h?"":h,x=e.linkHref,w=e.target,A=void 0===w?"_self":w,U=e.downloadLink,k=void 0!==U&&U,y=e.inverse,M=void 0!==y&&y,E=e.icon,D=void 0===E?"":E,O=e.iconAlt,N=void 0===O?"":O,S=e.dataItemName,P=void 0===S?"":S,j=e.id,C=void 0===j?"":j,_=e.type,I=void 0===_?"button":_,T=e.showDisabledMessage,z=void 0===T?"":T,L=e.ariaLabel,H=void 0===L?"":L,W=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(l,null,o.a.createElement("div",{className:"".concat(g&&z&&"disabled-button-parent")},p?o.a.createElement("a",{href:x,download:k,target:A,"data-item-name":P,id:C,"aria-label":H},o.a.createElement(d,Object.assign({role:"none",disabled:g,classStyle:"".concat(i)},W,{type:I,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=D?o.a.createElement("div",{"data-toggle":b,"data-target":v},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:D,alt:N}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:g,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":P,type:I,"data-toggle":b,"data-target":v},W),o.a.createElement("span",null,n)),g&&z&&o.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(u.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),c=Object(a.createContext)({});t.a=function(e){var t=!1;try{var n;t=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=t?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:t}},e.children))}}});
|
|
1
|
+
!function(e){function t(t){for(var a,i,c=t[0],l=t[1],d=t[2],u=0,p=[];u<c.length;u++)i=c[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(s&&s(t);p.length;)p.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,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={75: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 c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var s=l;o.push([645,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"gb",(function(){return o})),n.d(t,"y",(function(){return i})),n.d(t,"i",(function(){return c})),n.d(t,"M",(function(){return l})),n.d(t,"P",(function(){return d})),n.d(t,"w",(function(){return s})),n.d(t,"K",(function(){return u})),n.d(t,"p",(function(){return p})),n.d(t,"s",(function(){return m})),n.d(t,"R",(function(){return g})),n.d(t,"Q",(function(){return f})),n.d(t,"bb",(function(){return b})),n.d(t,"N",(function(){return h})),n.d(t,"v",(function(){return v})),n.d(t,"h",(function(){return x})),n.d(t,"u",(function(){return w})),n.d(t,"A",(function(){return A})),n.d(t,"x",(function(){return U})),n.d(t,"L",(function(){return k})),n.d(t,"t",(function(){return y})),n.d(t,"cb",(function(){return M})),n.d(t,"r",(function(){return E})),n.d(t,"S",(function(){return D})),n.d(t,"O",(function(){return S})),n.d(t,"db",(function(){return P})),n.d(t,"n",(function(){return j})),n.d(t,"k",(function(){return C})),n.d(t,"o",(function(){return _})),n.d(t,"l",(function(){return T})),n.d(t,"m",(function(){return I})),n.d(t,"D",(function(){return z})),n.d(t,"W",(function(){return L})),n.d(t,"z",(function(){return H})),n.d(t,"eb",(function(){return W})),n.d(t,"fb",(function(){return F})),n.d(t,"b",(function(){return J})),n.d(t,"Z",(function(){return Z})),n.d(t,"F",(function(){return $})),n.d(t,"a",(function(){return R})),n.d(t,"hb",(function(){return q})),n.d(t,"d",(function(){return V})),n.d(t,"f",(function(){return B})),n.d(t,"e",(function(){return G})),n.d(t,"kb",(function(){return Y})),n.d(t,"c",(function(){return K})),n.d(t,"ib",(function(){return Q})),n.d(t,"jb",(function(){return X})),n.d(t,"T",(function(){return ee})),n.d(t,"U",(function(){return te})),n.d(t,"V",(function(){return ne})),n.d(t,"X",(function(){return ae})),n.d(t,"Y",(function(){return re})),n.d(t,"q",(function(){return oe})),n.d(t,"ab",(function(){return ie})),n.d(t,"C",(function(){return ce})),n.d(t,"J",(function(){return le})),n.d(t,"j",(function(){return de})),n.d(t,"E",(function(){return se})),n.d(t,"H",(function(){return ue})),n.d(t,"I",(function(){return pe})),n.d(t,"G",(function(){return me})),n.d(t,"B",(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))},c=function(e){return e.toUpperCase()},l=function(e){return e.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),s=new a.a(!1),u=new a.a(!1),p=new a.a(!1),m=new a.a(""),g=new a.a(!1),f=new a.a(!1),b=new a.a(!1),h=new a.a(!1),v=new a.a(!1),x=new a.a(!1),w=new a.a(""),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),y=new a.a(!0),M=new a.a(!0),E=new a.a(!0),D=new a.a({}),O=new a.a(!1),N=0,S=new a.a(!1),P=new a.a(""),j=new a.a(""),C=new a.a(""),_=new a.a(""),T=new a.a(""),I=new a.a(""),z=new a.a(""),L=new a.a(""),H=new a.a(!1),W=new a.a(!1),F=new a.a(!1),J=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),function(){setTimeout((function(){N++,O.next(!0)}),0)}),Z=function(){setTimeout((function(){N>0&&N--,0==N&&O.next(!1)}),0)},$=function(){return O.asObservable()},R=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)},q=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))},V=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},B=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},G=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},Y=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},K=function(e){return/^[0-9]*$/.test(e)},Q=function(e){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(e)},X=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},ee=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},te=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},ne=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},ae=function(e){return e&&(e=Number(e).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},re=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},oe=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},ie=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 le(e,t){var n=t||"html",a=e;return n||(n="html"),"html"==n&&(a=function(e){var t,n,a,i,c,s=e,u="";t=r(s,"<!--","-->",l,"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),u+=s.substring(0,n),u+=o(s.substring(n,a+4)),s=s.substr(a+4),"css"==i&&(a=s.indexOf("</style>"))>-1&&(u+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("</script>"))>-1&&(u+=m(s.substring(0,a)),s=s.substr(a));for(s=u+s,c=0;c<t.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",t.arr[c]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(e,t,n,a,r){for(var o,i,c="",l=[];e.search(t)>-1;)o=e.search(t),-1==(i=e.indexOf(n,o))&&(i=e.length),r?(l.push(a(e.substring(o,i+n.length))),e=e.substring(0,o)+r+e.substr(i+n.length)):(c+=e.substring(0,o),c+=a(e.substring(o,i+n.length)),e=e.substr(i+n.length));return{rest:c+e,arr:l}}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,l="";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),l+=i.substring(0,t),l+=c(i.substring(t,n+1)),i=i.substr(n+1);return"<span style=color:green>"+l+i+"</span>"}function c(e){return"<span style=color:#1c8a9c>"+e+"</span>"}function l(e){return"<span style=color:green>"+e+"</span>"}function d(e){var t,n,a,o,i,c,d,u=e,p="";for(u=(a=r(u,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(t=u.search("{"),i=u.substr(t+1),d=1,c=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(d++,c++),"}"==i.substr(o,1)&&d--,0!=d);o++);for(0!=d&&(c=0),n=t,o=0;o<=c;o++)n=u.indexOf("}",n+1);-1==n&&(n=u.length),p+=u.substring(0,t+1),p+=s(u.substring(t+1,n)),u=u.substr(n)}for(u=(u=(u=p+u).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)u=u.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+u+"</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+=u(o.substring(t,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function u(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+=p(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 p(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function m(e){var t,n,a,r,o,i,c,d,s,u,p=e,m="",k=[],y="";for(t=0;t<p.length;t++)"\\"==(n=p.substr(t,1))&&(k.push(p.substr(t,2)),n="W3JSESCAPE",t++),y+=n;for(p=y,1;a=A(p,"'","'",g),r=A(p,'"','"',g),o=A(p,/\/\*/,"*/",l),i=A(p,/\/\//,"<br>",l),d=U(p,b),c=w("js",p,f),u=v(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],c[0],u[0])&&-1!=(s=x(d,a,r,o,i,c,u))[0];)s[0]>-1&&(m+=p.substring(0,s[0]),m+=s[2](p.substring(s[0],s[1])),p=p.substr(s[1]));for(p=m+p,t=0;t<k.length;t++)p=p.replace("W3JSESCAPE",k[t]);return"<span style=color:black>"+p+"</span>"}function g(e){return"<span style=color:brown>"+e+"</span>"}function f(e){return"<span style=color:mediumblue>"+e+"</span>"}function b(e){return"<span style=color:red>"+e+"</span>"}function h(e){return"<span style=color:black>"+e+"</span>"}function v(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 c=n[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,t]}return[-1,-1,t]}function x(e,t,n,a,r,o,i){var c,l=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==l.length||arguments[c][0]<l[0])&&(l=arguments[c]);return 0==l.length&&(l=arguments[c]),l}function w(e,t,n){var a,r,o,i,c=-1,l=-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==c||r<c)&&(l=(c=r)+i[a].length));return[c,l,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,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(n=0;n<e.length;n++)for(a=0;a<c.length;a++)if((r=e.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==e.substr(n-1,1)||"E"==e.substr(n-1,1)))continue;if(l<(o=n)&&(i=e.substring(l,o),!isNaN(i)))return[l,o,t];l=n+=c[a].length,n-=1;break}return[-1,-1,t]}}var de=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},se=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},ue=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},pe=function(e){if("string"===typeof e){var t=e;return t=(t=t.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return e},me=function(e){return Math.floor(Math.random()*e)+1},ge=["January","February","March","April","May","June","July","August","September","October","November","December"],fe=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(ge[a].slice(0,3)," ").concat(r,", ").concat(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,c=e.padding,l=void 0===c||c;return r.a.createElement(o,{className:t,maxWidth:i,padding:l},n)};t.b=i},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(28),r=n(0),o=n.n(r),i=n(5),c=(n(42),i.default.div.withConfig({displayName:"styles__View",componentId:"sc-10ksvu2-0"})([".loader{position:fixed;left:0;right:0;top:0;bottom:0;text-align:var(--text-center);z-index:9999;background:rgba(0,0,0,0.5);overflow:hidden;div{align-items:center;}}"])),l=n(33),d=n.n(l),s=n(1),u=function(e){return Object(a.a)(e),o.a.createElement(c,null,o.a.createElement("div",{className:"d-flex justify-content-center loader"},o.a.createElement("div",{className:"d-flex"},o.a.createElement(d.a,{type:"ThreeDots",color:Object(s.H)(),height:100,width:100}))))}},17:function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return s}));var a=n(7),r=n.n(a),o=n(40),i=function(){var e=localStorage.getItem("dealerMagentoToken");return"true"===localStorage.getItem("isHomeownerSite")&&(e=localStorage.getItem("homeownerMagentoToken")),"false"===localStorage.getItem("isHomeownerSite")&&"true"===localStorage.getItem("enableEcommerce")&&(e=localStorage.getItem("dealerMagentoToken")),e},c=function(){var e=i();if(e&&e.length>0){var t=Object(o.a)(e).exp;return!((new Date).getTime()>1e3*Number(t))}return!1};function l(e,t){if(t)return r()({url:e,method:"POST",headers:{"Content-type":"application/json",redirectOnTokenFailure:!1},data:JSON.stringify({query:t})})}function d(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i();if(t)return r()({url:e,method:"POST",headers:{Authorization:"Bearer "+a,"Content-type":"application/json",redirectOnTokenFailure:n},data:JSON.stringify({query:t})})}function s(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=i();if(t)return r()({url:e,method:"POST",headers:{Authorization:"Bearer "+a,"Content-type":"application/json",redirectOnTokenFailure:n},data:JSON.stringify({query:t})})}r.a.interceptors.response.use((function(e){var t,n,a,r,o,i,c;return(null===(t=e.data)||void 0===t||null===(n=t.data)||void 0===n||null===(a=n.errors)||void 0===a?void 0:a.length)>0||(null===(r=e.data)||void 0===r||null===(o=r.errors)||void 0===o?void 0:o.length)?Promise.reject(e):("The current customer isn't authorized."===(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(c=i.errors)||void 0===c?void 0:c.message)&&(window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken")),e)}),(function(e){return Promise.reject(e)})),r.a.interceptors.request.use((function(e){var t=localStorage.getItem("erp-dealer-id")||"";if("true"===localStorage.getItem("isHomeownerSite")&&(t=localStorage.getItem("erp-dealer-id")||""),"false"===localStorage.getItem("isHomeownerSite")&&"true"===localStorage.getItem("enableEcommerce")){var n=localStorage.getItem("dealer"),a=JSON.parse(n);t=Number(a.accountNumber)+""}var r=localStorage.getItem("store"),c="true"===localStorage.getItem("enableLogoutRedirection");if(t&&(e.headers.common["erp-dealer-id"]=t),r&&(e.headers.common.store=r),e.headers.redirectOnTokenFailure&&c){var l=i();if(l&&l.length>0){var d=Object(o.a)(l).exp;(new Date).getTime()>1e3*Number(d)&&(window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken"))}else window.location.href=window.location.origin,localStorage.removeItem("homeownerMagentoToken"),localStorage.removeItem("username"),localStorage.removeItem("email"),localStorage.removeItem("dealerMagentoToken")}return delete e.headers.redirectOnTokenFailure,e}))},176:function(e,t,n){"use strict";var a=n(24),r=n.n(a),o=n(15),i=n(34),c=n(3),l=n(7),d=n.n(l),s=n(45),u=n.n(s),p=n(0),m=n.n(p),g=n(13),f=n.n(g),b=n(9),h=n(14),v=n(19),x=n(8),w=n(10),A=n(17),U=n(1),k={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},y=n(11),M=n(5);function E(){var e=Object(y.a)(["\n .row {\n margin-bottom: 18px;\n }\n\n .text {\n font-size: var(--font-size-h6);\n }\n\n .sub-header {\n font-size: var(--font-size-h5);\n font-weight: var(--font-weight-semi-bold);\n }\n\n .page-link {\n cursor: pointer;\n color: var(--accent) !important;\n\n &.selected-page {\n background: var(--accent);\n color: var(--bg-main) !important;\n }\n }\n\n a {\n text-decoration: none;\n }\n\n .show-per-page{\n label{\n margin: 0;\n }\n }\n\n table {\n tr {\n td {\n word-break: break-word;\n }\n }\n }\n\n .pagination {\n a {\n color: var(--accent);\n position: relative;\n display: block;\n padding: 0.5rem 0.75rem;\n margin-left: -1px;\n line-height: 1.25;\n background-color: var(--bg-main);\n border: 1px solid var(--border-pagination);\n cursor: pointer;\n\n :hover {\n text-decoration: none;\n }\n }\n\n .active-page {\n background: var(--accent);\n color: var(--bg-main) !important;\n\n a {\n color: var(--bg-main) !important;\n background: var(--accent);\n }\n }\n }\n "]);return E=function(){return e},e}var D=M.default.div.withConfig({displayName:"styles__Content",componentId:"u4gnd6-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(M.css)(E())})),O={header:{text:""},subHeader:{text:""},perPage:{text:""},collectionHeading:{text:""},sizeHeading:{text:""},doorDesignHeading:{text:""},windowHeading:{text:""},colorHeading:{text:""},startingPriceHeading:{text:""},doorSize:{text:""},apiURL:"",plpAPIPath:""},N=[{text:"10",value:"10"},{text:"15",value:"15"},{text:"20",value:"20"},{text:"25",value:"25"},{text:"30",value:"30"}],S=function(e){var t=Object(p.useState)(!1),n=Object(c.a)(t,2),a=n[0],l=n[1],s=Object(p.useState)([]),g=Object(c.a)(s,2),y=g[0],M=g[1],E=f()({},O,Object(U.g)(e.content)),S=Object(p.useState)(10),P=Object(c.a)(S,2),j=P[0],C=P[1],_=Object(p.useState)(1),T=Object(c.a)(_,2),I=T[0],z=T[1],L=Object(p.useState)(0),H=Object(c.a)(L,2),W=H[0],F=H[1],J=function(e){var t=e.map((function(e){return e.doorDesignerCode}));return t.filter((function(e,n){return Boolean(e)&&t.indexOf(e)===n})).toString()},Z=function(){var e=Object(i.a)(r.a.mark((function e(t){var n,a,i,c,l,s,u,p,m,g,f,b;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Object(U.b)(),e.next=4,d.a.get("".concat(E.plpAPIPath,"?term=*&limit=").concat(j,"&page=").concat(t,"&order=asc&customField=type%3Ddoors"));case 4:return s=e.sent,u=((null===s||void 0===s||null===(n=s.data)||void 0===n?void 0:n.hits)||[]).map((function(e){var t,n,a,r,o,i;return{id:e.id,doorDesignerCode:(null===e||void 0===e||null===(t=e.custom_fields)||void 0===t?void 0:t.collectionDoorDesignerCode)||"",collectionName:(null===e||void 0===e||null===(n=e.custom_fields)||void 0===n?void 0:n.collectionName)||"",imageUrl:(null===e||void 0===e||null===(a=e.custom_fields)||void 0===a?void 0:a.image)||"",doorDesign:(null===e||void 0===e||null===(r=e.custom_fields)||void 0===r?void 0:r.panelDesign)||"",window:(null===e||void 0===e||null===(o=e.custom_fields)||void 0===o?void 0:o.windowOptionDoorDesignerCode)||"",color:(null===e||void 0===e||null===(i=e.custom_fields)||void 0===i?void 0:i.color)||"",size:E.doorSize.text||""}})),p=localStorage.getItem("dealer")||"",m=JSON.parse(p),g=Number(m.accountNumber),e.next=11,Object(A.b)(E.apiURL,"\n {\n catalogPrices(dealer_id: ".concat(g,", sku: [").concat(J(u),"]) {\n additional_charges {\n low_head_room\n site_check\n site_check_diy\n }\n openers{\n labour_charge\n margin\n }\n items {\n error\n priceData {\n consumer_start_price\n dealer_start_price\n id\n imap_price\n labour_charge\n margin\n }\n sku\n status\n }\n }\n }\n "));case 11:f=e.sent,b=(null===f||void 0===f||null===(a=f.data)||void 0===a||null===(i=a.data)||void 0===i||null===(c=i.catalogPrices)||void 0===c?void 0:c.items)||[],u=u.map((function(e){var t,n=b.find((function(t){return t.sku===e.doorDesignerCode})),a=(null===(t=((null===n||void 0===n?void 0:n.priceData)||[])[0])||void 0===t?void 0:t.consumer_start_price)||0;return Object(o.a)(Object(o.a)({},e),{},{startingPrice:a})})),M(u),F((null===s||void 0===s||null===(l=s.data)||void 0===l?void 0:l.total_hits)||0),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.error(e.t0);case 21:return e.prev=21,Object(U.Z)(),e.finish(21);case 24:case"end":return e.stop()}}),e,null,[[0,18,21,24]])})));return function(t){return e.apply(this,arguments)}}();return Object(p.useEffect)((function(){Object(U.F)().subscribe((function(e){l(e)}))}),[]),Object(p.useEffect)((function(){Z(I)}),[I]),m.a.createElement(x.a,{setter:{componentThemes:k,selectedTheme:e.theme}},m.a.createElement(b.a,null,m.a.createElement(w.a,{className:"pl-0"},m.a.createElement(D,{isReversed:!1},a&&m.a.createElement(h.a,null),m.a.createElement("section",{className:"container online-prices"},m.a.createElement("div",{className:"row justify-content-center mb-5"},m.a.createElement("div",{className:"col-12"},m.a.createElement("div",{className:"row"},m.a.createElement("div",{className:"col-12 d-flex justify-content-between align-items-center mb-3"},m.a.createElement("div",{className:"sub-header amarr-h5"},E.subHeader.text),m.a.createElement("div",{className:"d-flex flex-row-reverse align-items-center"},m.a.createElement("div",{className:"show-per-page",style:{width:"120px"}},m.a.createElement(v.a,{onChange:function(e){var t,n=Number((null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value)||0);C(n),z(1)},required:!1,options:N,value:String(j)})),m.a.createElement("div",{className:"mr-2 body-text2"},E.perPage.text))),m.a.createElement("div",{className:"col-12"},m.a.createElement("div",{className:"table-responsive br_4"},m.a.createElement("table",{className:"table table-bordered",role:"table"},m.a.createElement("thead",null,m.a.createElement("tr",null,m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.collectionHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.sizeHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.doorDesignHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.windowHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.colorHeading.text),m.a.createElement("th",{scope:"col",className:"amarr-h6"},E.startingPriceHeading.text))),m.a.createElement("tbody",null,y.map((function(e){return m.a.createElement("tr",{key:e.id},m.a.createElement("td",{scope:"row",className:"body-text2"},m.a.createElement("div",{className:"d-flex flex-column"},m.a.createElement("div",{className:"mb-2"},e.collectionName),m.a.createElement("div",null,m.a.createElement("img",{width:"56",height:"48",loading:"lazy",src:"".concat(e.imageUrl),alt:"door"})))),m.a.createElement("td",{scope:"row",className:"body-text2"},e.size),m.a.createElement("td",{scope:"row",className:"body-text2"},e.doorDesign),m.a.createElement("td",{scope:"row",className:"body-text2"},e.window),m.a.createElement("td",{scope:"row",className:"body-text2"},e.color),m.a.createElement("td",{scope:"row",className:"body-text2"},"$",e.startingPrice))}))))),m.a.createElement("nav",{"aria-label":"Page navigation",className:"mt-4"},m.a.createElement(u.a,{previousLabel:m.a.createElement("span",{"aria-hidden":"true"},"\xab"),nextLabel:m.a.createElement("span",{"aria-hidden":"true"},"\xbb"),pageCount:W/j,marginPagesDisplayed:2,pageRangeDisplayed:2,onPageChange:function(e){z(e.selected+1)},containerClassName:"pagination justify-content-end",activeClassName:"active-page",forcePage:I-1})))))))))))};S.defaultProps={theme:"",content:""};t.a=S},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__View",componentId:"g1x5bu-0"})(["select{appearance:none;}.flex-span{position:relative;}.select-dropdown{&-icon{width:16px;height:16px;position:absolute;right:12px;top:34%;transform:rotate(87deg);pointer-events:none;}}"]),i=n(1),c=n(39),l=function(e){var t=e.label,n=void 0===t?"":t,a=e.required,l=void 0===a||a,d=e.isAsterisks,s=void 0===d||d,u=e.options,p=void 0===u?[{text:"",value:""}]:u,m=e.placeholder,g=void 0===m?"":m,f=e.errorMsg,b=void 0===f?"":f,h=e.className,v=void 0===h?"":h,x=e.prefix,w=void 0===x?"":x,A=e.name,U=void 0===A?"":A,k=e.selectClassName,y=void 0===k?"":k,M=e.onChange,E=void 0===M?function(){}:M,D=e.hasPopup,O=void 0!==D&&D,N=e.popupLinkText,S=void 0===N?"":N,P=e.popupText,j=void 0===P?"text":P,C=e.reset,_=void 0!==C&&C,T=e.disabled,I=void 0!==T&&T,z=e.value,L=void 0===z?"":z;return r.a.createElement(o,null,r.a.createElement("div",{className:v},r.a.createElement("label",{htmlFor:"".concat(n?Object(i.M)(n):U,"-id")},l&&s&&r.a.createElement("span",{className:"required"},"*")," ",n,O&&r.a.createElement("a",{className:"popup-link","data-toggle":"modal","data-target":"#info-popup-".concat(U)},S&&r.a.createElement(r.a.Fragment,null,S),!S&&r.a.createElement("img",{loading:"lazy",className:"ml-2",src:Object(i.E)().concat("ic-info.svg"),alt:"info icon"}))),r.a.createElement("span",{className:"flex-span"},w&&w.length>0&&r.a.createElement("span",{className:"prefix"},w),r.a.createElement("img",{loading:"lazy",className:"select-dropdown-icon",alt:"dropdown icon",src:Object(i.E)().concat("ic-arrow-right-dark.svg")}),r.a.createElement("select",{className:y,id:"".concat(n?Object(i.M)(n):U,"-id"),onChange:E,name:U,disabled:I,value:L},g&&(_?r.a.createElement("option",{value:"",selected:!0},g):r.a.createElement("option",{value:""},g)),p&&p.length>0&&p.map((function(e,t){return r.a.createElement("option",{key:t,value:e.value},e.text)})))),r.a.createElement("span",{className:"error"},b)),O&&r.a.createElement(c.a,{name:U,heading:S||n,text:j}))}},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)")}},32:function(e,t){e.exports=ReactDOM},39:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__View",componentId:"sc-28t0ak-0"})([".modal{&-content{border-radius:var(--border-radius);box-shadow:0 4px 12px 0 rgb(0 0 0 / 20%);}&-dialog{&-centered{display:flex;align-items:center;height:100%;margin-top:0;margin-bottom:0;}}}"]),i=n(6),c=function(e){var t=e.heading,n=e.text,a=void 0===n?"":n,c=e.name,l=void 0===c?"":c,d=e.requiredDismissButton,s=void 0!==d&&d,u=e.dismissText,p=void 0===u?"":u;return r.a.createElement(o,null,r.a.createElement("div",{className:"modal fade",id:"info-popup-".concat(l),role:"dialog","aria-hidden":"true"},r.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},r.a.createElement("div",{className:"modal-content"},r.a.createElement("div",{className:"modal-header"},t&&r.a.createElement("h4",{className:"mb-3"},t),r.a.createElement("button",{type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},r.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),r.a.createElement("div",{className:"modal-body mb-3"},r.a.createElement("div",{className:"body-text2",dangerouslySetInnerHTML:{__html:a}})),s&&r.a.createElement("div",{className:"modal-footer justify-content-between"},r.a.createElement(i.a,{label:p,"data-dismiss":"modal"}))))))}},527:function(e,t,n){"use strict";n.r(t);var a=n(22),r=n(176);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-online-prices",useShadow:!1},plugins:[]})},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(31),r=n(0),o=n.n(r),i=n(5),c=n(2),l=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;}"],c.b.smallDesktop2Min),s=n(30),u=n(29),p=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,i=void 0===r?"default":r,c=e.link,p=void 0!==c&&c,m=e.disabled,g=void 0!==m&&m,f=e.datatoggle,b=void 0===f?"":f,h=e.datatarget,v=void 0===h?"":h,x=e.linkHref,w=e.target,A=void 0===w?"_self":w,U=e.downloadLink,k=void 0!==U&&U,y=e.inverse,M=void 0!==y&&y,E=e.icon,D=void 0===E?"":E,O=e.iconAlt,N=void 0===O?"":O,S=e.dataItemName,P=void 0===S?"":S,j=e.id,C=void 0===j?"":j,_=e.type,T=void 0===_?"button":_,I=e.showDisabledMessage,z=void 0===I?"":I,L=e.ariaLabel,H=void 0===L?"":L,W=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(l,null,o.a.createElement("div",{className:"".concat(g&&z&&"disabled-button-parent")},p?o.a.createElement("a",{href:x,download:k,target:A,"data-item-name":P,id:C,"aria-label":H},o.a.createElement(d,Object.assign({role:"none",disabled:g,classStyle:"".concat(i)},W,{type:T,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=D?o.a.createElement("div",{"data-toggle":b,"data-target":v},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:D,alt:N}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:g,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":P,type:T,"data-toggle":b,"data-target":v},W),o.a.createElement("span",null,n)),g&&z&&o.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(u.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),c=Object(a.createContext)({});t.a=function(e){var t=!1;try{var n;t=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=t?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:t}},e.children))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-online-prices",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Web component - Online-prices",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "online-prices.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "f6f56c36eb6805e8e7e592076747df4a177e5f7a"
|
|
15
15
|
}
|