@assaabloy/amarr-wc-dealer-leads-program 5.0.13 → 5.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dealer-leads-program.js +1 -1
- package/package.json +2 -2
package/dealer-leads-program.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function e(e){for(var a,i,c=e[0],l=e[1],d=e[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)&&(t[a]=l[a]);for(s&&s(e);p.length;)p.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={28:0},o=[];function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=e,c=c.slice();for(var d=0;d<c.length;d++)e(c[d]);var s=l;o.push([599,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"ib",(function(){return o})),n.d(e,"y",(function(){return i})),n.d(e,"i",(function(){return c})),n.d(e,"M",(function(){return l})),n.d(e,"P",(function(){return d})),n.d(e,"w",(function(){return s})),n.d(e,"K",(function(){return u})),n.d(e,"p",(function(){return p})),n.d(e,"s",(function(){return m})),n.d(e,"R",(function(){return f})),n.d(e,"Q",(function(){return b})),n.d(e,"bb",(function(){return g})),n.d(e,"N",(function(){return h})),n.d(e,"v",(function(){return x})),n.d(e,"h",(function(){return v})),n.d(e,"u",(function(){return w})),n.d(e,"A",(function(){return A})),n.d(e,"x",(function(){return U})),n.d(e,"L",(function(){return k})),n.d(e,"t",(function(){return y})),n.d(e,"cb",(function(){return M})),n.d(e,"r",(function(){return D})),n.d(e,"S",(function(){return O})),n.d(e,"O",(function(){return N})),n.d(e,"db",(function(){return S})),n.d(e,"n",(function(){return j})),n.d(e,"k",(function(){return I})),n.d(e,"o",(function(){return L})),n.d(e,"l",(function(){return T})),n.d(e,"m",(function(){return C})),n.d(e,"D",(function(){return z})),n.d(e,"W",(function(){return W})),n.d(e,"z",(function(){return _})),n.d(e,"gb",(function(){return Z})),n.d(e,"hb",(function(){return H})),n.d(e,"fb",(function(){return R})),n.d(e,"b",(function(){return $})),n.d(e,"Z",(function(){return J})),n.d(e,"F",(function(){return B})),n.d(e,"a",(function(){return F})),n.d(e,"jb",(function(){return V})),n.d(e,"d",(function(){return G})),n.d(e,"f",(function(){return q})),n.d(e,"e",(function(){return Y})),n.d(e,"mb",(function(){return K})),n.d(e,"c",(function(){return Q})),n.d(e,"kb",(function(){return X})),n.d(e,"lb",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"U",(function(){return nt})),n.d(e,"V",(function(){return at})),n.d(e,"X",(function(){return rt})),n.d(e,"Y",(function(){return ot})),n.d(e,"q",(function(){return it})),n.d(e,"ab",(function(){return ct})),n.d(e,"C",(function(){return lt})),n.d(e,"J",(function(){return dt})),n.d(e,"j",(function(){return st})),n.d(e,"E",(function(){return ut})),n.d(e,"H",(function(){return pt})),n.d(e,"I",(function(){return mt})),n.d(e,"G",(function(){return ft})),n.d(e,"B",(function(){return gt})),n.d(e,"eb",(function(){return ht}));var a=n(4),r=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return o(JSON.stringify(t))},c=function(t){return t.toUpperCase()},l=function(t){return t.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(""),f=new a.a(!1),b=new a.a(!1),g=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({}),E=new a.a(!1),P=0,N=new a.a(!1),S=new a.a(""),j=new a.a(""),I=new a.a(""),L=new a.a(""),T=new a.a(""),C=new a.a(""),z=new a.a(""),W=new a.a(""),_=new a.a(!1),Z=new a.a(!1),H=new a.a(!1),R=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),new a.a([])),$=function(){setTimeout((function(){P++,E.next(!0)}),0)},J=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},B=function(){return E.asObservable()},F=function(t){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},V=function(t){var e=0;return!!/(?=.{8,})/.test(t)&&(/([a-z])/.test(t)&&e++,/([A-Z])/.test(t)&&e++,/(\d)/.test(t)&&e++,/([!@#$%^&*])/.test(t)&&e++,!(e<3))},G=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},Y=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},K=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},Q=function(t){return/^[0-9]*$/.test(t)},X=function(t){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(t)},tt=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},et=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},nt=function(t){var e=(""+t).replace(/\D/g,"");if(e.length>10){var n=(e=e.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(n)return"("+n[1]+") "+n[2]+"-"+n[3]}var a="";return e.split("").forEach((function(t,e){a+=0==e?"("+t:2==e?t+") ":5==e?t+"-":t})),a},at=function(t){var e=t.target.value;return 1==e.length?"("+e:5==e.length?e.slice(0,e.length-1)+") "+e[e.length-1]:10==e.length&&"-"!==e[e.length-1]?e.slice(0,e.length-1)+"-"+e[e.length-1]:10==e.length&&"-"===e[e.length-1]?e.substring(0,e.length-1):6==e.length?e.substring(0,e.length-2):e},rt=function(t){return t&&(t=Number(t).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},ot=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},it=function(t){var e={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:t.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:t.selectedHeight,glass:t.selectedGlass,collection:t.selectedCollection,print:!0,baseUrl:"",gplacement:t.selectedWindowPlacement,width:t.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return t.selectedColor&&(e.color=t.selectedColor),t.colorHex&&(e.colorHex=t.colorHex),t.colorZone&&(e.colorZone=t.colorZone),t.selectedConstruction&&(e.model=t.selectedConstruction),t.selectedWindowDesign&&(e.top=t.selectedWindowDesign),t.glazepattern&&(e.glazepattern=t.glazepattern),t.selectedHardware&&(e.hardware=t.selectedHardware),e},ct=function(t,e,n){var a="",r=t.split(e);return r.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==r.length-1&&(a+=n))})),a},lt=function(t){return t.length>0?t.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):t};function dt(t,e){var n=e||"html",a=t;return n||(n="html"),"html"==n&&(a=function(t){var e,n,a,i,c,s=t,u="";e=r(s,"<!--","-->",l,"W3HTMLCOMMENTPOS"),s=e.rest;for(;s.indexOf("<")>-1;)i="",n=s.indexOf("<"),"<STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"<SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf(">",n))&&(a=s.length),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<e.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",e.arr[c]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(t,e,n,a,r){for(var o,i,c="",l=[];t.search(e)>-1;)o=t.search(e),-1==(i=t.indexOf(n,o))&&(i=t.length),r?(l.push(a(t.substring(o,i+n.length))),t=t.substring(0,o)+r+t.substr(i+n.length)):(c+=t.substring(0,o),c+=a(t.substring(o,i+n.length)),t=t.substr(i+n.length));return{rest:c+t,arr:l}}function o(t){for(var e,n,a,r=t,o="";r.search(/(\s|<br>)/)>-1;)e=r.search(/(\s|<br>)/),-1==(n=r.indexOf(">"))&&(n=r.length),o+=r.substring(0,e),o+=i(r.substring(e,n)),r=r.substr(n);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(t){for(var e,n,a,r,o,i=t,l="";i.indexOf("=")>-1;)n=-1,e=i.indexOf("="),a=i.indexOf("'",e),r=i.indexOf('"',e),(o=i.indexOf(" ",e+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?n=i.indexOf(" ",e):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?n=i.indexOf('"',i.indexOf('"',e)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(n=i.indexOf("'",i.indexOf("'",e)+1)),(!n||-1==n||n<e)&&(n=i.length),l+=i.substring(0,e),l+=c(i.substring(e,n+1)),i=i.substr(n+1);return"<span style=color:green>"+l+i+"</span>"}function c(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function l(t){return"<span style=color:green>"+t+"</span>"}function d(t){var e,n,a,o,i,c,d,u=t,p="";for(u=(a=r(u,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(e=u.search("{"),i=u.substr(e+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=e,o=0;o<=c;o++)n=u.indexOf("}",n+1);-1==n&&(n=u.length),p+=u.substring(0,e+1),p+=s(u.substring(e+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(t){var e,n,a,r,o=t,i="";if(o.indexOf("{")>-1)return d(o);for(;o.search(":")>-1;){for(r=!0,a=e=o.search(":");1==r;)r=!1,n=o.indexOf(";",a)," "==o.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=o.length),i+=o.substring(0,e),i+=u(o.substring(e,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function u(t){var e,n=t,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)e=n.search(/!important/i),a+=n.substring(0,e),a+=p(n.substring(e,e+10)),n=n.substr(e+10);var r=a+n;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function p(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var e,n,a,r,o,i,c,d,s,u,p=t,m="",k=[],y="";for(e=0;e<p.length;e++)"\\"==(n=p.substr(e,1))&&(k.push(p.substr(e,2)),n="W3JSESCAPE",e++),y+=n;for(p=y,1;a=A(p,"'","'",f),r=A(p,'"','"',f),o=A(p,/\/\*/,"*/",l),i=A(p,/\/\//,"<br>",l),d=U(p,g),c=w("js",p,b),u=x(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],c[0],u[0])&&-1!=(s=v(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,e=0;e<k.length;e++)p=p.replace("W3JSESCAPE",k[e]);return"<span style=color:black>"+p+"</span>"}function f(t){return"<span style=color:brown>"+t+"</span>"}function b(t){return"<span style=color:mediumblue>"+t+"</span>"}function g(t){return"<span style=color:red>"+t+"</span>"}function h(t){return"<span style=color:black>"+t+"</span>"}function x(t,e){var n,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=t.indexOf("."))>-1)for(n=t.substr(o+1),r=0;r<n.length;r++){var c=n[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,e]}return[-1,-1,e]}function v(t,e,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(t,e,n){var a,r,o,i,c=-1,l=-1;for("js"==t&&(i=["abstract","arguments","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","NaN","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with","yield"]),a=0;a<i.length;a++)(r=e.indexOf(i[a]))>-1&&(o=/\W/g,e.substr(r+i[a].length,1).match(o)&&e.substr(r-1,1).match(o)&&r>-1&&(-1==c||r<c)&&(l=(c=r)+i[a].length));return[c,l,n]}function A(t,e,n,a){var r,o;return r=t.search(e),-1==(o=t.indexOf(n,r+n.length))&&(o=t.length),[r,o+n.length,a]}function U(t,e){var n,a,r,o,i,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(n=0;n<t.length;n++)for(a=0;a<c.length;a++)if((r=t.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==t.substr(n-1,1)||"E"==t.substr(n-1,1)))continue;if(l<(o=n)&&(i=t.substring(l,o),!isNaN(i)))return[l,o,e];l=n+=c[a].length,n-=1;break}return[-1,-1,e]}}var st=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""},ut=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},pt=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},mt=function(t){if("string"===typeof t){var e=t;return e=(e=e.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return t},ft=function(t){return Math.floor(Math.random()*t)+1},bt=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=function(t){var e=new Date(t);if("Invalid Date"==e.toString())return t;var n=e.getFullYear(),a=e.getMonth(),r=(e.getDate()+"").padStart(2,"0");return"".concat(bt[a].slice(0,3)," ").concat(r,", ").concat(n)},ht=function(t){var e,n=[],a=t.arguments.split(",");(a.forEach((function(t){t=t.indexOf(":")>-1?JSON.parse(t):t.replaceAll('"',"").trim(),n.push(t)})),console.log("list",a,t),window.gtag&&"function"===typeof window.gtag)&&(window.location.pathname==t.path&&(e=window).gtag.apply(e,n))}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(t){return t.padding?"0 var(--grid-margin);":0}),(function(t){t.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),i=function(t){var e=t.className,n=t.children,a=t.maxWidth,i=void 0===a?1520:a,c=t.padding,l=void 0===c||c;return r.a.createElement(o,{className:e,maxWidth:i,padding:l},n)};e.b=i},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(28),r=n(0),o=n.n(r),i=n(5),c=(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;}}"])),l=n(33),d=n.n(l),s=n(1),u=function(t){return Object(a.a)(t),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}))))}},16:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return s}));var a=n(15),r=n(7),o=n.n(r);function i(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"GET",headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function c(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"DELETE",headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function l(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"POST",data:t.data,headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function d(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"PUT",data:t.data,headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function s(t){return o()({url:t,method:"GET"})}o.a.interceptors.request.use((function(t){return!(window.location.pathname.indexOf(".html")>-1)&&Object(a.a)({},t)})),o.a.interceptors.response.use((function(t){return t.status,t.status,t.status,t}),(function(t){return window.location.pathname.indexOf("/dealer/")>-1&&401===t.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(t)}))},164:function(t,e,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(1),c=n(6),l=n(7),d=n.n(l),s=n(14),u=n(16),p=n(13),m=n.n(p),f={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},b=n(12),g=n(5),h=n(2);function x(){var t=Object(b.a)(["\n .capitalize {\n text-transform: capitalize;\n }\n .uppercase {\n text-transform: uppercase;\n }\n .dealer-leads-program {\n padding: 12px 0px 24px 24px;\n .row {\n margin-bottom: 26px;\n }\n \n @media"," {\n .row {\n margin-bottom: 20px;\n }\n }\n }\n .parent-container-gap{\n row-gap: 24px;\n }\n .container-gap{\n gap: 24px;\n row-gap: 24px;\n }\n .box-container{\n border: 1px solid var(--border-color);\n border-radius: 4px;\n flex-wrap: wrap;\n justify-content: space-between;\n }\n .child{\n margin-bottom: -5px;\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n @media screen and ","{\n flex: 0 0 100%;\n max-width: 100%;\n }\n }\n .leads-button button {\n padding-right: 36px;\n padding-left: 36px;\n }\n .leads-button{\n padding-top: 8px;\n }\n "]);return x=function(){return t},t}var v=g.default.div.withConfig({displayName:"styles__Content",componentId:"gghbew-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(g.css)(x(),h.b.mediumDesktopAndUp3Max,h.b.mobileMax)})),w=n(8),A=n(9),U=n(10),k={locationReviewIdLabel:"",enrolmentLabel:"",enrolledText:"",notEnrolledText:"",leadsProgramDataApiPath:"",locationListingByIdAPIPath:"",authHeaderKey:"",authorizationHeaderValue:"",cta:{label:"",url:"",linkAction:"",color:"",isInternal:!0},bodyStringPOST:"",noDataMessage:"",parentRedirectURL:""},y=function(t){var e=m()({},k,Object(i.g)(t.content)),n=Object(r.useState)(!1),l=Object(a.a)(n,2),p=l[0],b=l[1],g=Object(r.useState)([]),h=Object(a.a)(g,2),x=h[0],y=h[1];return Object(r.useEffect)((function(){if(Object(i.F)().subscribe((function(t){b(t)})),localStorage.getItem("dealer")){var t=localStorage.getItem("dealer");JSON.parse(t).isParentAccount&&(window.location.href=e.parentRedirectURL)}var n="";window.location.search.substring(1,window.location.search.length).split("&").forEach((function(t){if("acc"===t.split("=")[0]&&(n=t.split("=")[1]),"ids"===t.split("=")[0]){var a=t.split("=")[1].split(","),r=[],o=[];if(a.forEach((function(t){if(""!==t){var a=new FormData,i=e.bodyStringPOST.replace("${locationId}",t);i=JSON.parse(i);a.append("json",JSON.stringify(i)),r.push({locationListingUrl:e.locationListingByIdAPIPath.replace("{accountNumber}",n).replace("{dealerListingLocationId}",t),iframeBodyData:a}),o.push(d()({method:"post",url:e.leadsProgramDataApiPath,data:a,headers:{"Content-Type":"multipart/form-data"}}))}})),r.length>0){var c=[];r.forEach((function(t){var n;Object(i.b)();var a={};null===(n=Object(u.c)({url:t.locationListingUrl}))||void 0===n||n.then((function(n){a=n.data,d.a.post(e.leadsProgramDataApiPath,t.iframeBodyData,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){a.iframeUrl=t.data,Object(i.Z)()}),(function(t){Object(i.Z)()})).catch((function(t){Object(i.Z)()})),c.push(a)}),(function(t){y(c),Object(i.Z)()})).catch((function(t){y(c),Object(i.Z)()}))})),p||y(c)}}}))}),[]),o.a.createElement(w.a,{setter:{componentThemes:f,selectedTheme:t.theme}},o.a.createElement(A.a,null,o.a.createElement(U.a,null,o.a.createElement(v,{isReversed:!1},p&&o.a.createElement(s.a,null),o.a.createElement("div",{className:"container d-flex flex-column parent-container-gap pb-5 mb-2"},x&&0===x.length&&!p&&o.a.createElement("div",{className:"body-text2"},e.noDataMessage),x&&x.length>0&&x.map((function(t,n){var a,r,l,d,s,u,p;return o.a.createElement("div",{className:"d-flex box-container container-gap"},o.a.createElement("div",{className:"dealer-leads-program child"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("div",{className:"amarr-h4 mb-1 mb-xl-2"},e.locationReviewIdLabel," - ",null===t||void 0===t?void 0:t.id),o.a.createElement("p",{className:"m-0 body-text1 capitalize"},null===t||void 0===t?void 0:t.name.toLowerCase()),o.a.createElement("p",{className:"m-0 body-text1 uppercase"},null===t||void 0===t||null===(a=t.address)||void 0===a?void 0:a.address1.toLowerCase()," ",(null===t||void 0===t||null===(r=t.address)||void 0===r?void 0:r.address2)&&(null===t||void 0===t||null===(l=t.address)||void 0===l?void 0:l.address2.toLowerCase())," ",null===t||void 0===t||null===(d=t.address)||void 0===d?void 0:d.city.toLowerCase()," ",null===t||void 0===t||null===(s=t.address)||void 0===s?void 0:s.state," ",null===t||void 0===t||null===(u=t.address)||void 0===u?void 0:u.country," ",null===t||void 0===t||null===(p=t.address)||void 0===p?void 0:p.zip))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("div",{className:"amarr-h4 mb-1 mb-xl-2"},e.enrolmentLabel),o.a.createElement("p",{className:"m-0 body-text1"},(null===t||void 0===t?void 0:t.enrolledInDispatch)?e.enrolledText:e.notEnrolledText))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 leads-button"},"tertiary"!==e.cta.color&&"noTheme"!==e.cta.color&&o.a.createElement(c.a,{label:Object(i.i)(e.cta.label),link:!0,target:e.cta.linkAction,linkHref:e.cta.url,inverse:"inverse"===e.cta.color}),"tertiary"===e.cta.color&&e.cta.isInternal&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction}),"tertiary"===e.cta.color&&!e.cta.isInternal&&"_self"===e.cta.linkAction&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction}),"tertiary"===e.cta.color&&e.cta.isInternal&&"_blank"===e.cta.linkAction&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction,rel:"noopener"}),"noTheme"===e.cta.color&&e.cta.isInternal&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction},t.label),"noTheme"===e.cta.color&&!e.cta.isInternal&&"_self"===e.cta.linkAction&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction},t.label),"noTheme"===e.cta.color&&!e.cta.isInternal&&"_blank"===e.cta.linkAction&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction,rel:"noopener"},e.cta.label)))),o.a.createElement("div",{className:"child"},o.a.createElement("iframe",{loading:"lazy",src:"".concat(null===t||void 0===t?void 0:t.iframeUrl),width:"100%",height:"360px","aria-label":"iframe"})))})))))))};y.defaultProps={theme:"",content:""};e.a=y},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920,extraLarge:2560},r={mobileAndUpMin:"(min-width: ".concat(a.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(a.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(a.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileMax:"(max-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(a.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(a.largeMobileAndUp-2,"px)"),largeMobileAndUpMax3:"(max-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUp2:"(min-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(a.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(a.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(a.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(a.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(a.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(a.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(a.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(a.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(a.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(a.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(a.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(a.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(a.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(a.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(a.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(a.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(a.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(a.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(a.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(a.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(a.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(a.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(a.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp2Max:"(max-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(a.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(a.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(a.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(a.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(a.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(a.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(a.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(a.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(a.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(a.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(a.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(a.maxWidthAndUp+1,"px)"),extraLargeMax:"(max-width: ".concat(a.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(a.extraLarge,"px)")}},32:function(t,e){t.exports=ReactDOM},482:function(t,e,n){"use strict";n.r(e);var a=n(22),r=n(164);e.default=a.a.create({component:r.a,configuration:{tagname:"amarr-dealer-leads-program",useShadow:!1},plugins:[]})},6:function(t,e,n){"use strict";n.d(e,"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(t){var e=t.label,n=void 0===e?"label":e,r=t.classStyle,i=void 0===r?"default":r,c=t.link,p=void 0!==c&&c,m=t.disabled,f=void 0!==m&&m,b=t.datatoggle,g=void 0===b?"":b,h=t.datatarget,x=void 0===h?"":h,v=t.linkHref,w=t.target,A=void 0===w?"_self":w,U=t.downloadLink,k=void 0!==U&&U,y=t.inverse,M=void 0!==y&&y,D=t.icon,O=void 0===D?"":D,E=t.iconAlt,P=void 0===E?"":E,N=t.dataItemName,S=void 0===N?"":N,j=t.id,I=void 0===j?"":j,L=t.type,T=void 0===L?"button":L,C=t.showDisabledMessage,z=void 0===C?"":C,W=t.ariaLabel,_=void 0===W?"":W,Z=t.tabIndex,H=void 0===Z?-1:Z,R=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel","tabIndex"]);return o.a.createElement(l,null,o.a.createElement("div",{className:"".concat(f&&z&&"disabled-button-parent")},p?o.a.createElement("a",{href:v,download:k,target:A,"data-item-name":S,id:I,"aria-label":_},o.a.createElement(d,Object.assign({disabled:f,classStyle:"".concat(i)},R,{type:T,className:M?"btn-inverse btn btn-success":"btn btn-success",tabIndex:H}),""!=O?o.a.createElement("div",{"data-toggle":g,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:P}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:f,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:I,"data-item-name":S,type:T,"data-toggle":g,"data-target":x},R),o.a.createElement("span",null,n)),f&&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(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(t){var e=t.setter,n=e.componentThemes,r=e.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var t=r.match(/\d+/g).map(Number),e=Object.keys(n).find((function(e){return!(!Array.isArray(t)||1!==t.length)&&(e.includes(t[0])&&n[e])}));return e?n["".concat(e)]:n.theme1}},t.children)};e.b=i},9:function(t,e,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(23),c=Object(a.createContext)({});e.a=function(t){var e=!1;try{var n;e=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=e?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:e}},t.children))}}});
|
|
1
|
+
!function(t){function e(e){for(var a,i,c=e[0],l=e[1],d=e[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)&&(t[a]=l[a]);for(s&&s(e);p.length;)p.shift()();return o.push.apply(o,d||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={28:0},o=[];function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=e,c=c.slice();for(var d=0;d<c.length;d++)e(c[d]);var s=l;o.push([599,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"ib",(function(){return o})),n.d(e,"y",(function(){return i})),n.d(e,"i",(function(){return c})),n.d(e,"M",(function(){return l})),n.d(e,"P",(function(){return d})),n.d(e,"w",(function(){return s})),n.d(e,"K",(function(){return u})),n.d(e,"p",(function(){return p})),n.d(e,"s",(function(){return m})),n.d(e,"R",(function(){return f})),n.d(e,"Q",(function(){return b})),n.d(e,"bb",(function(){return g})),n.d(e,"N",(function(){return h})),n.d(e,"v",(function(){return x})),n.d(e,"h",(function(){return v})),n.d(e,"u",(function(){return w})),n.d(e,"A",(function(){return A})),n.d(e,"x",(function(){return U})),n.d(e,"L",(function(){return k})),n.d(e,"t",(function(){return y})),n.d(e,"cb",(function(){return M})),n.d(e,"r",(function(){return D})),n.d(e,"S",(function(){return O})),n.d(e,"O",(function(){return N})),n.d(e,"db",(function(){return S})),n.d(e,"n",(function(){return j})),n.d(e,"k",(function(){return I})),n.d(e,"o",(function(){return L})),n.d(e,"l",(function(){return T})),n.d(e,"m",(function(){return C})),n.d(e,"D",(function(){return z})),n.d(e,"W",(function(){return W})),n.d(e,"z",(function(){return _})),n.d(e,"gb",(function(){return Z})),n.d(e,"hb",(function(){return H})),n.d(e,"fb",(function(){return R})),n.d(e,"b",(function(){return $})),n.d(e,"Z",(function(){return J})),n.d(e,"F",(function(){return B})),n.d(e,"a",(function(){return F})),n.d(e,"jb",(function(){return V})),n.d(e,"d",(function(){return G})),n.d(e,"f",(function(){return q})),n.d(e,"e",(function(){return Y})),n.d(e,"mb",(function(){return K})),n.d(e,"c",(function(){return Q})),n.d(e,"kb",(function(){return X})),n.d(e,"lb",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"U",(function(){return nt})),n.d(e,"V",(function(){return at})),n.d(e,"X",(function(){return rt})),n.d(e,"Y",(function(){return ot})),n.d(e,"q",(function(){return it})),n.d(e,"ab",(function(){return ct})),n.d(e,"C",(function(){return lt})),n.d(e,"J",(function(){return dt})),n.d(e,"j",(function(){return st})),n.d(e,"E",(function(){return ut})),n.d(e,"H",(function(){return pt})),n.d(e,"I",(function(){return mt})),n.d(e,"G",(function(){return ft})),n.d(e,"B",(function(){return gt})),n.d(e,"eb",(function(){return ht}));var a=n(4),r=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return o(JSON.stringify(t))},c=function(t){return t.toUpperCase()},l=function(t){return t.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(""),f=new a.a(!1),b=new a.a(!1),g=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({}),E=new a.a(!1),P=0,N=new a.a(!1),S=new a.a(""),j=new a.a(""),I=new a.a(""),L=new a.a(""),T=new a.a(""),C=new a.a(""),z=new a.a(""),W=new a.a(""),_=new a.a(!1),Z=new a.a(!1),H=new a.a(!1),R=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),new a.a([])),$=function(){setTimeout((function(){P++,E.next(!0)}),0)},J=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},B=function(){return E.asObservable()},F=function(t){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},V=function(t){var e=0;return!!/(?=.{8,})/.test(t)&&(/([a-z])/.test(t)&&e++,/([A-Z])/.test(t)&&e++,/(\d)/.test(t)&&e++,/([!@#$%^&*])/.test(t)&&e++,!(e<3))},G=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},q=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},Y=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},K=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},Q=function(t){return/^[0-9]*$/.test(t)},X=function(t){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(t)},tt=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},et=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},nt=function(t){var e=(""+t).replace(/\D/g,"");if(e.length>10){var n=(e=e.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(n)return"("+n[1]+") "+n[2]+"-"+n[3]}var a="";return e.split("").forEach((function(t,e){a+=0==e?"("+t:2==e?t+") ":5==e?t+"-":t})),a},at=function(t){var e=t.target.value;return 1==e.length?"("+e:5==e.length?e.slice(0,e.length-1)+") "+e[e.length-1]:10==e.length&&"-"!==e[e.length-1]?e.slice(0,e.length-1)+"-"+e[e.length-1]:10==e.length&&"-"===e[e.length-1]?e.substring(0,e.length-1):6==e.length?e.substring(0,e.length-2):e},rt=function(t){return t&&(t=Number(t).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},ot=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},it=function(t){var e={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:t.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:t.selectedHeight,glass:t.selectedGlass,collection:t.selectedCollection,print:!0,baseUrl:"",gplacement:t.selectedWindowPlacement,width:t.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return t.selectedColor&&(e.color=t.selectedColor),t.colorHex&&(e.colorHex=t.colorHex),t.colorZone&&(e.colorZone=t.colorZone),t.selectedConstruction&&(e.model=t.selectedConstruction),t.selectedWindowDesign&&(e.top=t.selectedWindowDesign),t.glazepattern&&(e.glazepattern=t.glazepattern),t.selectedHardware&&(e.hardware=t.selectedHardware),e},ct=function(t,e,n){var a="",r=t.split(e);return r.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==r.length-1&&(a+=n))})),a},lt=function(t){return t.length>0?t.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):t};function dt(t,e){var n=e||"html",a=t;return n||(n="html"),"html"==n&&(a=function(t){var e,n,a,i,c,s=t,u="";e=r(s,"<!--","-->",l,"W3HTMLCOMMENTPOS"),s=e.rest;for(;s.indexOf("<")>-1;)i="",n=s.indexOf("<"),"<STYLE"==s.substr(n,9).toUpperCase()&&(i="css"),"<SCRIPT"==s.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=s.indexOf(">",n))&&(a=s.length),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<e.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",e.arr[c]);return s}(a)),"css"==n&&(a=d(a)),"js"==n&&(a=m(a)),a;function r(t,e,n,a,r){for(var o,i,c="",l=[];t.search(e)>-1;)o=t.search(e),-1==(i=t.indexOf(n,o))&&(i=t.length),r?(l.push(a(t.substring(o,i+n.length))),t=t.substring(0,o)+r+t.substr(i+n.length)):(c+=t.substring(0,o),c+=a(t.substring(o,i+n.length)),t=t.substr(i+n.length));return{rest:c+t,arr:l}}function o(t){for(var e,n,a,r=t,o="";r.search(/(\s|<br>)/)>-1;)e=r.search(/(\s|<br>)/),-1==(n=r.indexOf(">"))&&(n=r.length),o+=r.substring(0,e),o+=i(r.substring(e,n)),r=r.substr(n);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(t){for(var e,n,a,r,o,i=t,l="";i.indexOf("=")>-1;)n=-1,e=i.indexOf("="),a=i.indexOf("'",e),r=i.indexOf('"',e),(o=i.indexOf(" ",e+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?n=i.indexOf(" ",e):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?n=i.indexOf('"',i.indexOf('"',e)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(n=i.indexOf("'",i.indexOf("'",e)+1)),(!n||-1==n||n<e)&&(n=i.length),l+=i.substring(0,e),l+=c(i.substring(e,n+1)),i=i.substr(n+1);return"<span style=color:green>"+l+i+"</span>"}function c(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function l(t){return"<span style=color:green>"+t+"</span>"}function d(t){var e,n,a,o,i,c,d,u=t,p="";for(u=(a=r(u,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;u.search("{")>-1;){for(e=u.search("{"),i=u.substr(e+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=e,o=0;o<=c;o++)n=u.indexOf("}",n+1);-1==n&&(n=u.length),p+=u.substring(0,e+1),p+=s(u.substring(e+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(t){var e,n,a,r,o=t,i="";if(o.indexOf("{")>-1)return d(o);for(;o.search(":")>-1;){for(r=!0,a=e=o.search(":");1==r;)r=!1,n=o.indexOf(";",a)," "==o.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=o.length),i+=o.substring(0,e),i+=u(o.substring(e,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function u(t){var e,n=t,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)e=n.search(/!important/i),a+=n.substring(0,e),a+=p(n.substring(e,e+10)),n=n.substr(e+10);var r=a+n;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function p(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var e,n,a,r,o,i,c,d,s,u,p=t,m="",k=[],y="";for(e=0;e<p.length;e++)"\\"==(n=p.substr(e,1))&&(k.push(p.substr(e,2)),n="W3JSESCAPE",e++),y+=n;for(p=y,1;a=A(p,"'","'",f),r=A(p,'"','"',f),o=A(p,/\/\*/,"*/",l),i=A(p,/\/\//,"<br>",l),d=U(p,g),c=w("js",p,b),u=x(p,h),-1!=Math.max(d[0],a[0],r[0],o[0],i[0],c[0],u[0])&&-1!=(s=v(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,e=0;e<k.length;e++)p=p.replace("W3JSESCAPE",k[e]);return"<span style=color:black>"+p+"</span>"}function f(t){return"<span style=color:brown>"+t+"</span>"}function b(t){return"<span style=color:mediumblue>"+t+"</span>"}function g(t){return"<span style=color:red>"+t+"</span>"}function h(t){return"<span style=color:black>"+t+"</span>"}function x(t,e){var n,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=t.indexOf("."))>-1)for(n=t.substr(o+1),r=0;r<n.length;r++){var c=n[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,e]}return[-1,-1,e]}function v(t,e,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(t,e,n){var a,r,o,i,c=-1,l=-1;for("js"==t&&(i=["abstract","arguments","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","NaN","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with","yield"]),a=0;a<i.length;a++)(r=e.indexOf(i[a]))>-1&&(o=/\W/g,e.substr(r+i[a].length,1).match(o)&&e.substr(r-1,1).match(o)&&r>-1&&(-1==c||r<c)&&(l=(c=r)+i[a].length));return[c,l,n]}function A(t,e,n,a){var r,o;return r=t.search(e),-1==(o=t.indexOf(n,r+n.length))&&(o=t.length),[r,o+n.length,a]}function U(t,e){var n,a,r,o,i,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(n=0;n<t.length;n++)for(a=0;a<c.length;a++)if((r=t.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==t.substr(n-1,1)||"E"==t.substr(n-1,1)))continue;if(l<(o=n)&&(i=t.substring(l,o),!isNaN(i)))return[l,o,e];l=n+=c[a].length,n-=1;break}return[-1,-1,e]}}var st=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""},ut=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},pt=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},mt=function(t){if("string"===typeof t){var e=t;return e=(e=e.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return t},ft=function(t){return Math.floor(Math.random()*t)+1},bt=["January","February","March","April","May","June","July","August","September","October","November","December"],gt=function(t){var e=new Date(t);if("Invalid Date"==e.toString())return t;var n=e.getFullYear(),a=e.getMonth(),r=(e.getDate()+"").padStart(2,"0");return"".concat(bt[a].slice(0,3)," ").concat(r,", ").concat(n)},ht=function(t){var e,n=[];(t.arguments.split(",").forEach((function(t){t=t.indexOf(":")>-1?JSON.parse(t):t.replaceAll('"',"").trim(),n.push(t)})),window.gtag&&"function"===typeof window.gtag)&&(window.location.pathname==t.path&&(e=window).gtag.apply(e,n))}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(t){return t.padding?"0 var(--grid-margin);":0}),(function(t){t.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),i=function(t){var e=t.className,n=t.children,a=t.maxWidth,i=void 0===a?1520:a,c=t.padding,l=void 0===c||c;return r.a.createElement(o,{className:e,maxWidth:i,padding:l},n)};e.b=i},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(28),r=n(0),o=n.n(r),i=n(5),c=(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;}}"])),l=n(33),d=n.n(l),s=n(1),u=function(t){return Object(a.a)(t),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}))))}},16:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return s}));var a=n(15),r=n(7),o=n.n(r);function i(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"GET",headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function c(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"DELETE",headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function l(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"POST",data:t.data,headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function d(t){var e=localStorage.getItem("token");if(t)return o()({url:t.url,method:"PUT",data:t.data,headers:{Authorization:"Bearer "+e,"content-type":"application/json"}})}function s(t){return o()({url:t,method:"GET"})}o.a.interceptors.request.use((function(t){return!(window.location.pathname.indexOf(".html")>-1)&&Object(a.a)({},t)})),o.a.interceptors.response.use((function(t){return t.status,t.status,t.status,t}),(function(t){return window.location.pathname.indexOf("/dealer/")>-1&&401===t.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(t)}))},164:function(t,e,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(1),c=n(6),l=n(7),d=n.n(l),s=n(14),u=n(16),p=n(13),m=n.n(p),f={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},b=n(12),g=n(5),h=n(2);function x(){var t=Object(b.a)(["\n .capitalize {\n text-transform: capitalize;\n }\n .uppercase {\n text-transform: uppercase;\n }\n .dealer-leads-program {\n padding: 12px 0px 24px 24px;\n .row {\n margin-bottom: 26px;\n }\n \n @media"," {\n .row {\n margin-bottom: 20px;\n }\n }\n }\n .parent-container-gap{\n row-gap: 24px;\n }\n .container-gap{\n gap: 24px;\n row-gap: 24px;\n }\n .box-container{\n border: 1px solid var(--border-color);\n border-radius: 4px;\n flex-wrap: wrap;\n justify-content: space-between;\n }\n .child{\n margin-bottom: -5px;\n flex: 0 0 50%;\n max-width: calc(50% - 24px);\n @media screen and ","{\n flex: 0 0 100%;\n max-width: 100%;\n }\n }\n .leads-button button {\n padding-right: 36px;\n padding-left: 36px;\n }\n .leads-button{\n padding-top: 8px;\n }\n "]);return x=function(){return t},t}var v=g.default.div.withConfig({displayName:"styles__Content",componentId:"gghbew-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(g.css)(x(),h.b.mediumDesktopAndUp3Max,h.b.mobileMax)})),w=n(8),A=n(9),U=n(10),k={locationReviewIdLabel:"",enrolmentLabel:"",enrolledText:"",notEnrolledText:"",leadsProgramDataApiPath:"",locationListingByIdAPIPath:"",authHeaderKey:"",authorizationHeaderValue:"",cta:{label:"",url:"",linkAction:"",color:"",isInternal:!0},bodyStringPOST:"",noDataMessage:"",parentRedirectURL:""},y=function(t){var e=m()({},k,Object(i.g)(t.content)),n=Object(r.useState)(!1),l=Object(a.a)(n,2),p=l[0],b=l[1],g=Object(r.useState)([]),h=Object(a.a)(g,2),x=h[0],y=h[1];return Object(r.useEffect)((function(){if(Object(i.F)().subscribe((function(t){b(t)})),localStorage.getItem("dealer")){var t=localStorage.getItem("dealer");JSON.parse(t).isParentAccount&&(window.location.href=e.parentRedirectURL)}var n="";window.location.search.substring(1,window.location.search.length).split("&").forEach((function(t){if("acc"===t.split("=")[0]&&(n=t.split("=")[1]),"ids"===t.split("=")[0]){var a=t.split("=")[1].split(","),r=[],o=[];if(a.forEach((function(t){if(""!==t){var a=new FormData,i=e.bodyStringPOST.replace("${locationId}",t);i=JSON.parse(i);a.append("json",JSON.stringify(i)),r.push({locationListingUrl:e.locationListingByIdAPIPath.replace("{accountNumber}",n).replace("{dealerListingLocationId}",t),iframeBodyData:a}),o.push(d()({method:"post",url:e.leadsProgramDataApiPath,data:a,headers:{"Content-Type":"multipart/form-data"}}))}})),r.length>0){var c=[];r.forEach((function(t){var n;Object(i.b)();var a={};null===(n=Object(u.c)({url:t.locationListingUrl}))||void 0===n||n.then((function(n){a=n.data,d.a.post(e.leadsProgramDataApiPath,t.iframeBodyData,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){a.iframeUrl=t.data,Object(i.Z)()}),(function(t){Object(i.Z)()})).catch((function(t){Object(i.Z)()})),c.push(a)}),(function(t){y(c),Object(i.Z)()})).catch((function(t){y(c),Object(i.Z)()}))})),p||y(c)}}}))}),[]),o.a.createElement(w.a,{setter:{componentThemes:f,selectedTheme:t.theme}},o.a.createElement(A.a,null,o.a.createElement(U.a,null,o.a.createElement(v,{isReversed:!1},p&&o.a.createElement(s.a,null),o.a.createElement("div",{className:"container d-flex flex-column parent-container-gap pb-5 mb-2"},x&&0===x.length&&!p&&o.a.createElement("div",{className:"body-text2"},e.noDataMessage),x&&x.length>0&&x.map((function(t,n){var a,r,l,d,s,u,p;return o.a.createElement("div",{className:"d-flex box-container container-gap"},o.a.createElement("div",{className:"dealer-leads-program child"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("div",{className:"amarr-h4 mb-1 mb-xl-2"},e.locationReviewIdLabel," - ",null===t||void 0===t?void 0:t.id),o.a.createElement("p",{className:"m-0 body-text1 capitalize"},null===t||void 0===t?void 0:t.name.toLowerCase()),o.a.createElement("p",{className:"m-0 body-text1 uppercase"},null===t||void 0===t||null===(a=t.address)||void 0===a?void 0:a.address1.toLowerCase()," ",(null===t||void 0===t||null===(r=t.address)||void 0===r?void 0:r.address2)&&(null===t||void 0===t||null===(l=t.address)||void 0===l?void 0:l.address2.toLowerCase())," ",null===t||void 0===t||null===(d=t.address)||void 0===d?void 0:d.city.toLowerCase()," ",null===t||void 0===t||null===(s=t.address)||void 0===s?void 0:s.state," ",null===t||void 0===t||null===(u=t.address)||void 0===u?void 0:u.country," ",null===t||void 0===t||null===(p=t.address)||void 0===p?void 0:p.zip))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("div",{className:"amarr-h4 mb-1 mb-xl-2"},e.enrolmentLabel),o.a.createElement("p",{className:"m-0 body-text1"},(null===t||void 0===t?void 0:t.enrolledInDispatch)?e.enrolledText:e.notEnrolledText))),o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 leads-button"},"tertiary"!==e.cta.color&&"noTheme"!==e.cta.color&&o.a.createElement(c.a,{label:Object(i.i)(e.cta.label),link:!0,target:e.cta.linkAction,linkHref:e.cta.url,inverse:"inverse"===e.cta.color}),"tertiary"===e.cta.color&&e.cta.isInternal&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction}),"tertiary"===e.cta.color&&!e.cta.isInternal&&"_self"===e.cta.linkAction&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction}),"tertiary"===e.cta.color&&e.cta.isInternal&&"_blank"===e.cta.linkAction&&o.a.createElement("a",{href:e.cta.url,target:e.cta.linkAction,rel:"noopener"}),"noTheme"===e.cta.color&&e.cta.isInternal&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction},t.label),"noTheme"===e.cta.color&&!e.cta.isInternal&&"_self"===e.cta.linkAction&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction},t.label),"noTheme"===e.cta.color&&!e.cta.isInternal&&"_blank"===e.cta.linkAction&&o.a.createElement("a",{className:"amarrHighlight",href:e.cta.url,target:e.cta.linkAction,rel:"noopener"},e.cta.label)))),o.a.createElement("div",{className:"child"},o.a.createElement("iframe",{loading:"lazy",src:"".concat(null===t||void 0===t?void 0:t.iframeUrl),width:"100%",height:"360px","aria-label":"iframe"})))})))))))};y.defaultProps={theme:"",content:""};e.a=y},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920,extraLarge:2560},r={mobileAndUpMin:"(min-width: ".concat(a.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(a.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(a.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileMax:"(max-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(a.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(a.largeMobileAndUp-2,"px)"),largeMobileAndUpMax3:"(max-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUp2:"(min-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(a.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(a.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(a.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(a.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(a.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(a.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(a.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(a.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(a.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(a.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(a.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(a.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(a.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(a.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(a.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(a.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(a.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(a.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(a.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(a.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(a.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(a.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(a.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp2Max:"(max-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(a.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(a.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(a.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(a.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(a.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(a.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(a.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(a.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(a.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(a.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(a.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(a.maxWidthAndUp+1,"px)"),extraLargeMax:"(max-width: ".concat(a.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(a.extraLarge,"px)")}},32:function(t,e){t.exports=ReactDOM},482:function(t,e,n){"use strict";n.r(e);var a=n(22),r=n(164);e.default=a.a.create({component:r.a,configuration:{tagname:"amarr-dealer-leads-program",useShadow:!1},plugins:[]})},6:function(t,e,n){"use strict";n.d(e,"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(t){var e=t.label,n=void 0===e?"label":e,r=t.classStyle,i=void 0===r?"default":r,c=t.link,p=void 0!==c&&c,m=t.disabled,f=void 0!==m&&m,b=t.datatoggle,g=void 0===b?"":b,h=t.datatarget,x=void 0===h?"":h,v=t.linkHref,w=t.target,A=void 0===w?"_self":w,U=t.downloadLink,k=void 0!==U&&U,y=t.inverse,M=void 0!==y&&y,D=t.icon,O=void 0===D?"":D,E=t.iconAlt,P=void 0===E?"":E,N=t.dataItemName,S=void 0===N?"":N,j=t.id,I=void 0===j?"":j,L=t.type,T=void 0===L?"button":L,C=t.showDisabledMessage,z=void 0===C?"":C,W=t.ariaLabel,_=void 0===W?"":W,Z=t.tabIndex,H=void 0===Z?-1:Z,R=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel","tabIndex"]);return o.a.createElement(l,null,o.a.createElement("div",{className:"".concat(f&&z&&"disabled-button-parent")},p?o.a.createElement("a",{href:v,download:k,target:A,"data-item-name":S,id:I,"aria-label":_},o.a.createElement(d,Object.assign({disabled:f,classStyle:"".concat(i)},R,{type:T,className:M?"btn-inverse btn btn-success":"btn btn-success",tabIndex:H}),""!=O?o.a.createElement("div",{"data-toggle":g,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:P}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(d,Object.assign({disabled:f,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:I,"data-item-name":S,type:T,"data-toggle":g,"data-target":x},R),o.a.createElement("span",null,n)),f&&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(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(t){var e=t.setter,n=e.componentThemes,r=e.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var t=r.match(/\d+/g).map(Number),e=Object.keys(n).find((function(e){return!(!Array.isArray(t)||1!==t.length)&&(e.includes(t[0])&&n[e])}));return e?n["".concat(e)]:n.theme1}},t.children)};e.b=i},9:function(t,e,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(23),c=Object(a.createContext)({});e.a=function(t){var e=!1;try{var n;e=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=e?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:e}},t.children))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-dealer-leads-program",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15",
|
|
4
4
|
"description": "Web component - Dealer-leads-program",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dealer-leads-program.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "fb7adcaa4f1c86ac9c53c8d6eac91694d4d11ac2"
|
|
15
15
|
}
|