@assaabloy/amarr-wc-login-success 5.0.7 → 5.0.8

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.
Files changed (2) hide show
  1. package/login-success.js +1 -1
  2. package/package.json +2 -2
package/login-success.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,i,l=t[0],c=t[1],d=t[2],u=0,p=[];u<l.length;u++)i=l[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.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);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,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={68: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([639,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 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 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 x})),n.d(t,"h",(function(){return v})),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 D})),n.d(t,"S",(function(){return O})),n.d(t,"O",(function(){return j})),n.d(t,"db",(function(){return P})),n.d(t,"n",(function(){return I})),n.d(t,"k",(function(){return N})),n.d(t,"o",(function(){return C})),n.d(t,"l",(function(){return L})),n.d(t,"m",(function(){return T})),n.d(t,"D",(function(){return W})),n.d(t,"W",(function(){return R})),n.d(t,"z",(function(){return _})),n.d(t,"eb",(function(){return z})),n.d(t,"fb",(function(){return Z})),n.d(t,"b",(function(){return H})),n.d(t,"Z",(function(){return $})),n.d(t,"F",(function(){return B})),n.d(t,"a",(function(){return J})),n.d(t,"hb",(function(){return F})),n.d(t,"d",(function(){return G})),n.d(t,"f",(function(){return V})),n.d(t,"e",(function(){return q})),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 le})),n.d(t,"J",(function(){return ce})),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))},l=function(e){return e.toUpperCase()},c=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),x=new a.a(!1),v=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),D=new a.a(!0),O=new a.a({}),S=new a.a(!1),E=0,j=new a.a(!1),P=new a.a(""),I=new a.a(""),N=new a.a(""),C=new a.a(""),L=new a.a(""),T=new a.a(""),W=new a.a(""),R=new a.a(""),_=new a.a(!1),z=new a.a(!1),Z=new a.a(!1),H=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),function(){setTimeout((function(){E++,S.next(!0)}),0)}),$=function(){setTimeout((function(){E>0&&E--,0==E&&S.next(!1)}),0)},B=function(){return S.asObservable()},J=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)},F=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))},G=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},V=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},q=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},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},le=function(e){return e.length>0?e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):e};function ce(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,u="";t=r(s,"&lt;!--","--&gt;",c,"W3HTMLCOMMENTPOS"),s=t.rest;for(;s.indexOf("&lt;")>-1;)i="",n=s.indexOf("&lt;"),"&LT;STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"&LT;SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf("&gt;",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("&lt;/style&gt;"))>-1&&(u+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("&lt;/script&gt;"))>-1&&(u+=m(s.substring(0,a)),s=s.substr(a));for(s=u+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("&gt;"))&&(n=r.length),o+=r.substring(0,t),o+=i(r.substring(t,n)),r=r.substr(n);return"&gt;"==(a="<span style=color:grey>&lt;</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>&gt;</span>"),"<span style=color:#a10d5f>"+a+"</span>"}function 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,u=e,p="";for(u=(a=r(u,/\/\*/,"*/",c,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(t=u.search("{"),i=u.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=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),"&nbsp;"==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)&&"&nbsp;"!=r.substr(r.length-6,6)&&"&lt;"!=r.substr(r.length-4,4)&&"&gt;"!=r.substr(r.length-4,4)&&"&amp;"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function p(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function m(e){var t,n,a,r,o,i,l,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,/\/\*/,"*/",c),i=A(p,/\/\//,"<br>",c),d=U(p,b),l=w("js",p,f),u=x(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],l[0],u[0])&&-1!=(s=v(d,a,r,o,i,l,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 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 v(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 w(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 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,l=e.padding,c=void 0===l||l;return r.a.createElement(o,{className:t,maxWidth:i,padding:c},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),l=(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;}}"])),c=n(33),d=n.n(c),s=n(1),u=function(e){return Object(a.a)(e),o.a.createElement(l,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}))))}},16:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return s}));var a=n(15),r=n(7),o=n.n(r);function i(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"GET",headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function l(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"DELETE",headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function c(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"POST",data:e.data,headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function d(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"PUT",data:e.data,headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function s(e){return o()({url:e,method:"GET"})}o.a.interceptors.request.use((function(e){return!(window.location.pathname.indexOf(".html")>-1)&&Object(a.a)({},e)})),o.a.interceptors.response.use((function(e){return e.status,e.status,e.status,e}),(function(e){return window.location.pathname.indexOf("/dealer/")>-1&&401===e.response.status&&(localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),window.location.href=window.location.origin),Promise.reject(e)}))},166:function(e,t,n){"use strict";var a=n(36),r=n(3),o=n(0),i=n.n(o),l=n(1),c=n(14),d=n(6),s=n(16),u=n(13),p=n.n(u),m={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},g=n(12),f=n(5),b=n(2);function h(){var e=Object(g.a)(["\n #gdpr-link,\n #login-success-link {\n visibility: hidden;\n }\n\n a,\n button,\n .close {\n cursor: pointer !important;\n }\n\n .modal {\n padding: 10px !important;\n\n &-header {\n border-bottom: none;\n padding: 24px 24px 0px 24px;\n .close {\n margin: -5px -15px -15px auto;\n }\n }\n &-body {\n padding: 16px 24px 8px 24px;\n }\n &-footer {\n border-top: none;\n padding: 0px 24px 26px 24px;\n }\n\n &-dialog {\n @media "," {\n min-width: 720px;\n }\n\n &-centered {\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n margin: 0 auto;\n }\n }\n .redirection-button {\n button.btn {\n padding: 10px 48px;\n }\n }\n }\n #loginSuccess-message-popup {\n .modal-header {\n padding: 0px 24px 0px 24px;\n }\n .modal-body {\n padding: 16px 24px 36px 24px;\n }\n }\n "]);return h=function(){return e},e}var x=f.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1vdkjv8-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(f.css)(h(),b.b.smallDesktopAndUp2)})),v=n(8),w=n(9),A=n(10),U={roleUrlMapping:"",heading:{text:""},body:{text:""},okButtonLabel:"",gdprEndpointURL:"",apiURLDealerUserData:"",loginErrorMessage:""},k=function(e){var t,n,u=p()({},U,Object(l.g)(e.content)),g=Object(o.useState)(""),f=Object(r.a)(g,2),b=(f[0],f[1]),h=Object(o.useState)(!1),k=Object(r.a)(h,2),y=k[0],M=k[1],D=Object(o.useState)(""),O=Object(r.a)(D,2),S=O[0],E=O[1];Object(o.useEffect)((function(){Object(l.F)().subscribe((function(e){M(e)}));var e="";if(Object(l.b)(),window.location.search){var t,n=new URLSearchParams(window.location.search),o=Object(a.a)(n);try{for(o.s();!(t=o.n()).done;){var i=Object(r.a)(t.value,2),c=i[0],d=i[1];"error_description"===c&&(e=d)}}catch(s){o.e(s)}finally{o.f()}}setTimeout((function(){if(localStorage.getItem("user")){var t,n,o=localStorage.getItem("user"),i=JSON.parse(o),c=i.roles,d=null===(t=sessionStorage.getItem("amarrRoles"))||void 0===t?void 0:t.split(","),p=null===d||void 0===d?void 0:d.filter((function(e){return-1!==c.indexOf(e)})),m=p&&p.length>0?p[0]:"";b(m),localStorage.setItem("primaryRole",m),document.cookie="usertype="+m+"; expires=0;secure; path=/";var g;if(g=null===(n=i[null===u||void 0===u?void 0:u.apiURLDealerUserData])||void 0===n?void 0:n.gdprConsent,Object(l.Z)(),!0===g)window.location.href=window.location.origin+u.roleUrlMapping[m];else document.getElementById("gdpr-link").click()}else{if(window.location.search){var f,h=new URLSearchParams(window.location.search),x=Object(a.a)(h);try{for(x.s();!(f=x.n()).done;){var v=Object(r.a)(f.value,2),w=v[0],A=v[1];"error_description"===w&&(e=A)}}catch(s){x.e(s)}finally{x.f()}}""===e&&(e=u.loginErrorMessage),E(e),localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),Object(l.Z)(),document.getElementById("login-success-link").click(),setTimeout((function(){document.getElementById("close-logout-popup").click(),j()}),1e3)}}),8e3)}),[]);var j=function(){localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),l.P.next(!0),window.location.href=window.location.origin};return i.a.createElement(v.a,{setter:{componentThemes:m,selectedTheme:e.theme}},i.a.createElement(w.a,null,i.a.createElement(A.a,null,i.a.createElement(x,{isReversed:!1},y&&i.a.createElement(c.a,null),i.a.createElement("a",{id:"gdpr-link","data-toggle":"modal","data-target":"#gdpr-popup"},u.okButtonLabel),i.a.createElement("div",{className:"modal fade alert-popup",id:"gdpr-popup",role:"dialog","aria-hidden":"true"},i.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},i.a.createElement("div",{className:"modal-content"},i.a.createElement("div",{className:"modal-header"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:null===u||void 0===u||null===(t=u.heading)||void 0===t?void 0:t.text}}),i.a.createElement("button",{type:"button",onClick:j,className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},i.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),i.a.createElement("div",{className:"modal-body"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:null===u||void 0===u||null===(n=u.body)||void 0===n?void 0:n.text}})),i.a.createElement("div",{className:"modal-footer justify-content-start"},i.a.createElement("span",{className:"d-flex button-gap redirection-button"},i.a.createElement("a",{href:"#","data-dismiss":"modal"},i.a.createElement(d.a,{onClick:function(){var e;if(Object(l.b)(),null===(e=Object(s.d)({url:u.gdprEndpointURL,data:{consent:!0}}))||void 0===e||e.then((function(e){Object(l.Z)()}),(function(e){Object(l.Z)()})).catch((function(e){Object(l.Z)()})),localStorage.getItem("user")){var t,n=localStorage.getItem("user"),a=JSON.parse(n).roles,r=null===(t=sessionStorage.getItem("amarrRoles"))||void 0===t?void 0:t.split(","),o=null===r||void 0===r?void 0:r.filter((function(e){return-1!==a.indexOf(e)})),i=o&&o.length>0?o[0]:"";b(i),localStorage.setItem("primaryRole",i),document.cookie="usertype="+i+"; expires=0;secure; path=/",window.location.href=window.location.origin+u.roleUrlMapping[i]}if(localStorage.getItem("primaryRole")){var c=localStorage.getItem("primaryRole");localStorage.setItem("primaryRole",c),document.cookie="usertype="+c+"; expires=0;secure; path=/",window.location.href=window.location.origin+u.roleUrlMapping[c]}},label:u.okButtonLabel}))))))),i.a.createElement("a",{id:"login-success-link","data-toggle":"modal","data-target":"#loginSuccess-message-popup","aria-label":"modal popup"},"ok"),i.a.createElement("div",{className:"modal fade",id:"loginSuccess-message-popup",role:"dialog","aria-hidden":"true"},i.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},i.a.createElement("div",{className:"modal-content"},i.a.createElement("div",{className:"modal-header"},i.a.createElement("button",{id:"close-logout-popup",type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close",onClick:j},i.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),i.a.createElement("div",{className:"modal-body text-center"},i.a.createElement("div",{className:"body-text1"},S)))))))))};k.defaultProps={theme:"",content:""};t.a=k},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},521:function(e,t,n){"use strict";n.r(t);var a=n(22),r=n(166);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-login-success",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),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),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,l=e.link,p=void 0!==l&&l,m=e.disabled,g=void 0!==m&&m,f=e.datatoggle,b=void 0===f?"":f,h=e.datatarget,x=void 0===h?"":h,v=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,D=e.icon,O=void 0===D?"":D,S=e.iconAlt,E=void 0===S?"":S,j=e.dataItemName,P=void 0===j?"":j,I=e.id,N=void 0===I?"":I,C=e.type,L=void 0===C?"button":C,T=e.showDisabledMessage,W=void 0===T?"":T,R=e.ariaLabel,_=void 0===R?"":R,z=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(c,null,o.a.createElement("div",{className:"".concat(g&&W&&"disabled-button-parent")},p?o.a.createElement("a",{href:v,download:k,target:A,"data-item-name":P,id:N,"aria-label":_},o.a.createElement(d,Object.assign({role:"none",disabled:g,classStyle:"".concat(i)},z,{type:L,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?o.a.createElement("div",{"data-toggle":b,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:E}),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:N,"data-item-name":P,type:L,"data-toggle":b,"data-target":x},z),o.a.createElement("span",null,n)),g&&W&&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"},W))},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))}}});
1
+ !function(e){function t(t){for(var a,i,l=t[0],c=t[1],d=t[2],u=0,p=[];u<l.length;u++)i=l[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.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);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,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={68: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([639,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 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 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 x})),n.d(t,"h",(function(){return v})),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 D})),n.d(t,"S",(function(){return O})),n.d(t,"O",(function(){return j})),n.d(t,"db",(function(){return P})),n.d(t,"n",(function(){return I})),n.d(t,"k",(function(){return N})),n.d(t,"o",(function(){return C})),n.d(t,"l",(function(){return L})),n.d(t,"m",(function(){return T})),n.d(t,"D",(function(){return W})),n.d(t,"W",(function(){return R})),n.d(t,"z",(function(){return _})),n.d(t,"eb",(function(){return z})),n.d(t,"fb",(function(){return Z})),n.d(t,"b",(function(){return H})),n.d(t,"Z",(function(){return $})),n.d(t,"F",(function(){return B})),n.d(t,"a",(function(){return J})),n.d(t,"hb",(function(){return F})),n.d(t,"d",(function(){return G})),n.d(t,"f",(function(){return V})),n.d(t,"e",(function(){return q})),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 le})),n.d(t,"J",(function(){return ce})),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))},l=function(e){return e.toUpperCase()},c=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),x=new a.a(!1),v=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),D=new a.a(!0),O=new a.a({}),S=new a.a(!1),E=0,j=new a.a(!1),P=new a.a(""),I=new a.a(""),N=new a.a(""),C=new a.a(""),L=new a.a(""),T=new a.a(""),W=new a.a(""),R=new a.a(""),_=new a.a(!1),z=new a.a(!1),Z=new a.a(!1),H=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),function(){setTimeout((function(){E++,S.next(!0)}),0)}),$=function(){setTimeout((function(){E>0&&E--,0==E&&S.next(!1)}),0)},B=function(){return S.asObservable()},J=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)},F=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))},G=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},V=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},q=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},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},le=function(e){return e.length>0?e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):e};function ce(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,u="";t=r(s,"&lt;!--","--&gt;",c,"W3HTMLCOMMENTPOS"),s=t.rest;for(;s.indexOf("&lt;")>-1;)i="",n=s.indexOf("&lt;"),"&LT;STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"&LT;SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf("&gt;",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("&lt;/style&gt;"))>-1&&(u+=d(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("&lt;/script&gt;"))>-1&&(u+=m(s.substring(0,a)),s=s.substr(a));for(s=u+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("&gt;"))&&(n=r.length),o+=r.substring(0,t),o+=i(r.substring(t,n)),r=r.substr(n);return"&gt;"==(a="<span style=color:grey>&lt;</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>&gt;</span>"),"<span style=color:#a10d5f>"+a+"</span>"}function 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,u=e,p="";for(u=(a=r(u,/\/\*/,"*/",c,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(t=u.search("{"),i=u.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=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),"&nbsp;"==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)&&"&nbsp;"!=r.substr(r.length-6,6)&&"&lt;"!=r.substr(r.length-4,4)&&"&gt;"!=r.substr(r.length-4,4)&&"&amp;"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function p(e){return"<span style=color:red;font-weight:bold;>"+e+"</span>"}function m(e){var t,n,a,r,o,i,l,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,/\/\*/,"*/",c),i=A(p,/\/\//,"<br>",c),d=U(p,b),l=w("js",p,f),u=x(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],l[0],u[0])&&-1!=(s=v(d,a,r,o,i,l,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 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 v(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 w(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 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,l=e.padding,c=void 0===l||l;return r.a.createElement(o,{className:t,maxWidth:i,padding:c},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),l=(n(41),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;}}"])),c=n(33),d=n.n(c),s=n(1),u=function(e){return Object(a.a)(e),o.a.createElement(l,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}))))}},16:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return s}));var a=n(15),r=n(7),o=n.n(r);function i(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"GET",headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function l(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"DELETE",headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function c(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"POST",data:e.data,headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function d(e){var t=localStorage.getItem("token");if(e)return o()({url:e.url,method:"PUT",data:e.data,headers:{Authorization:"Bearer "+t,"content-type":"application/json"}})}function s(e){return o()({url:e,method:"GET"})}o.a.interceptors.request.use((function(e){return!(window.location.pathname.indexOf(".html")>-1)&&Object(a.a)({},e)})),o.a.interceptors.response.use((function(e){return e.status,e.status,e.status,e}),(function(e){return window.location.pathname.indexOf("/dealer/")>-1&&401===e.response.status&&(localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),window.location.href=window.location.origin),Promise.reject(e)}))},166:function(e,t,n){"use strict";var a=n(36),r=n(3),o=n(0),i=n.n(o),l=n(1),c=n(14),d=n(6),s=n(16),u=n(13),p=n.n(u),m={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},g=n(12),f=n(5),b=n(2);function h(){var e=Object(g.a)(["\n #gdpr-link,\n #login-success-link {\n visibility: hidden;\n }\n\n a,\n button,\n .close {\n cursor: pointer !important;\n }\n\n .modal {\n padding: 10px !important;\n\n &-header {\n border-bottom: none;\n padding: 24px 24px 0px 24px;\n .close {\n margin: -5px -15px -15px auto;\n }\n }\n &-body {\n padding: 16px 24px 8px 24px;\n }\n &-footer {\n border-top: none;\n padding: 0px 24px 26px 24px;\n }\n\n &-dialog {\n @media "," {\n min-width: 720px;\n }\n\n &-centered {\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n margin: 0 auto;\n }\n }\n .redirection-button {\n button.btn {\n padding: 10px 48px;\n }\n }\n }\n #loginSuccess-message-popup {\n .modal-header {\n padding: 0px 24px 0px 24px;\n }\n .modal-body {\n padding: 16px 24px 36px 24px;\n }\n }\n "]);return h=function(){return e},e}var x=f.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1vdkjv8-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(f.css)(h(),b.b.smallDesktopAndUp2)})),v=n(8),w=n(9),A=n(10),U={roleUrlMapping:"",heading:{text:""},body:{text:""},okButtonLabel:"",gdprEndpointURL:"",apiURLDealerUserData:"",loginErrorMessage:""},k=function(e){var t,n,u=p()({},U,Object(l.g)(e.content)),g=Object(o.useState)(""),f=Object(r.a)(g,2),b=(f[0],f[1]),h=Object(o.useState)(!1),k=Object(r.a)(h,2),y=k[0],M=k[1],D=Object(o.useState)(""),O=Object(r.a)(D,2),S=O[0],E=O[1];Object(o.useEffect)((function(){Object(l.F)().subscribe((function(e){M(e)}));var e="";if(Object(l.b)(),window.location.search){var t,n=new URLSearchParams(window.location.search),o=Object(a.a)(n);try{for(o.s();!(t=o.n()).done;){var i=Object(r.a)(t.value,2),c=i[0],d=i[1];"error_description"===c&&(e=d)}}catch(s){o.e(s)}finally{o.f()}}setTimeout((function(){if(localStorage.getItem("user")){var t,n,o=localStorage.getItem("user"),i=JSON.parse(o),c=i.roles,d=null===(t=sessionStorage.getItem("amarrRoles"))||void 0===t?void 0:t.split(","),p=null===d||void 0===d?void 0:d.filter((function(e){return-1!==c.indexOf(e)})),m=p&&p.length>0?p[0]:"";b(m),localStorage.setItem("primaryRole",m),document.cookie="usertype="+m+"; expires=0;secure; path=/";var g;if(g=null===(n=i[null===u||void 0===u?void 0:u.apiURLDealerUserData])||void 0===n?void 0:n.gdprConsent,Object(l.Z)(),!0===g)window.location.href=window.location.origin+u.roleUrlMapping[m];else document.getElementById("gdpr-link").click()}else{if(window.location.search){var f,h=new URLSearchParams(window.location.search),x=Object(a.a)(h);try{for(x.s();!(f=x.n()).done;){var v=Object(r.a)(f.value,2),w=v[0],A=v[1];"error_description"===w&&(e=A)}}catch(s){x.e(s)}finally{x.f()}}""===e&&(e=u.loginErrorMessage),E(e),localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),Object(l.Z)(),document.getElementById("login-success-link").click(),setTimeout((function(){document.getElementById("close-logout-popup").click(),j()}),1e3)}}),8e3)}),[]);var j=function(){localStorage.removeItem("user"),localStorage.removeItem("dealer"),localStorage.removeItem("expiry"),localStorage.removeItem("token"),document.cookie="usertype=null; max-age=0;secure",localStorage.removeItem("primaryRole"),sessionStorage.removeItem("amarrRoles"),localStorage.removeItem("dealerMagentoToken"),l.P.next(!0),window.location.href=window.location.origin};return i.a.createElement(v.a,{setter:{componentThemes:m,selectedTheme:e.theme}},i.a.createElement(w.a,null,i.a.createElement(A.a,null,i.a.createElement(x,{isReversed:!1},y&&i.a.createElement(c.a,null),i.a.createElement("a",{id:"gdpr-link","data-toggle":"modal","data-target":"#gdpr-popup"},u.okButtonLabel),i.a.createElement("div",{className:"modal fade alert-popup",id:"gdpr-popup",role:"dialog","aria-hidden":"true"},i.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},i.a.createElement("div",{className:"modal-content"},i.a.createElement("div",{className:"modal-header"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:null===u||void 0===u||null===(t=u.heading)||void 0===t?void 0:t.text}}),i.a.createElement("button",{type:"button",onClick:j,className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close"},i.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),i.a.createElement("div",{className:"modal-body"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:null===u||void 0===u||null===(n=u.body)||void 0===n?void 0:n.text}})),i.a.createElement("div",{className:"modal-footer justify-content-start"},i.a.createElement("span",{className:"d-flex button-gap redirection-button"},i.a.createElement("a",{href:"#","data-dismiss":"modal"},i.a.createElement(d.a,{onClick:function(){var e;if(Object(l.b)(),null===(e=Object(s.d)({url:u.gdprEndpointURL,data:{consent:!0}}))||void 0===e||e.then((function(e){Object(l.Z)()}),(function(e){Object(l.Z)()})).catch((function(e){Object(l.Z)()})),localStorage.getItem("user")){var t,n=localStorage.getItem("user"),a=JSON.parse(n).roles,r=null===(t=sessionStorage.getItem("amarrRoles"))||void 0===t?void 0:t.split(","),o=null===r||void 0===r?void 0:r.filter((function(e){return-1!==a.indexOf(e)})),i=o&&o.length>0?o[0]:"";b(i),localStorage.setItem("primaryRole",i),document.cookie="usertype="+i+"; expires=0;secure; path=/",window.location.href=window.location.origin+u.roleUrlMapping[i]}if(localStorage.getItem("primaryRole")){var c=localStorage.getItem("primaryRole");localStorage.setItem("primaryRole",c),document.cookie="usertype="+c+"; expires=0;secure; path=/",window.location.href=window.location.origin+u.roleUrlMapping[c]}},label:u.okButtonLabel}))))))),i.a.createElement("a",{id:"login-success-link","data-toggle":"modal","data-target":"#loginSuccess-message-popup","aria-label":"modal popup"},"ok"),i.a.createElement("div",{className:"modal fade",id:"loginSuccess-message-popup",role:"dialog","aria-hidden":"true"},i.a.createElement("div",{className:"modal-dialog modal-dialog-centered",role:"document"},i.a.createElement("div",{className:"modal-content"},i.a.createElement("div",{className:"modal-header"},i.a.createElement("button",{id:"close-logout-popup",type:"button",className:"close cursor-pointer","data-dismiss":"modal","aria-label":"Close",onClick:j},i.a.createElement("span",{"aria-hidden":"true"},"\xd7"))),i.a.createElement("div",{className:"modal-body text-center"},i.a.createElement("div",{className:"body-text1"},S)))))))))};k.defaultProps={theme:"",content:""};t.a=k},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},521:function(e,t,n){"use strict";n.r(t);var a=n(22),r=n(166);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-login-success",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),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),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,l=e.link,p=void 0!==l&&l,m=e.disabled,g=void 0!==m&&m,f=e.datatoggle,b=void 0===f?"":f,h=e.datatarget,x=void 0===h?"":h,v=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,D=e.icon,O=void 0===D?"":D,S=e.iconAlt,E=void 0===S?"":S,j=e.dataItemName,P=void 0===j?"":j,I=e.id,N=void 0===I?"":I,C=e.type,L=void 0===C?"button":C,T=e.showDisabledMessage,W=void 0===T?"":T,R=e.ariaLabel,_=void 0===R?"":R,z=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(c,null,o.a.createElement("div",{className:"".concat(g&&W&&"disabled-button-parent")},p?o.a.createElement("a",{href:v,download:k,target:A,"data-item-name":P,id:N,"aria-label":_},o.a.createElement(d,Object.assign({role:"none",disabled:g,classStyle:"".concat(i)},z,{type:L,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?o.a.createElement("div",{"data-toggle":b,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:E}),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:N,"data-item-name":P,type:L,"data-toggle":b,"data-target":x},z),o.a.createElement("span",null,n)),g&&W&&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"},W))},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))}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assaabloy/amarr-wc-login-success",
3
- "version": "5.0.7",
3
+ "version": "5.0.8",
4
4
  "description": "Web component - Login-success",
5
5
  "type": "module",
6
6
  "main": "login-success.js",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "author": "Nagarro",
13
13
  "license": "MIT",
14
- "gitHead": "a7eddb27e01514b3f9310d1c9d8759de8d1cfbed"
14
+ "gitHead": "dc76ce6f38b4f87f3a4125de9c9dc747deeadcb5"
15
15
  }