@assaabloy/amarr-wc-dc-stock-list 5.0.2 → 5.0.3

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/dc-stock-list.js +1 -1
  2. package/package.json +2 -2
package/dc-stock-list.js CHANGED
@@ -1 +1 @@
1
- !function(t){function e(e){for(var a,i,d=e[0],c=e[1],l=e[2],p=0,u=[];p<d.length;p++)i=d[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&u.push(o[i][0]),o[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);for(s&&s(e);u.length;)u.shift()();return r.push.apply(r,l||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],a=!0,d=1;d<n.length;d++){var c=n[d];0!==o[c]&&(a=!1)}a&&(r.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},o={16:0},r=[];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 d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=e,d=d.slice();for(var l=0;l<d.length;l++)e(d[l]);var s=c;r.push([811,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));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},o={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)"),smallMobileAndUpMax:"(max-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)"),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)"),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)")}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),o=n.n(a),r=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,d=t.padding,c=void 0===d||d;return o.a.createElement(r,{className:e,maxWidth:i,padding:c},n)}},136:function(t,e,n){"use strict";var a=n(3),o=n(0),r=n.n(o),i=n(2),d=n(7),c=n(12),l=n.n(c),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),u=n(5),m=n(1);function b(){var t=Object(p.a)(["\n select {\n appearance: none;\n }\n\n .flex-span {\n position: relative;\n }\n .select-dropdown {\n &-icon {\n width: 16px;\n height: 16px;\n position: absolute;\n right: 12px;\n top: 34%;\n transform: rotate(87deg);\n pointer-events: none;\n }\n }\n .button-container {\n gap: 20px;\n row-gap: 10px;\n }\n @media "," {\n .button-container {\n flex-direction: column;\n\n > div {\n &:not(:last-child) {\n margin-bottom: 10px !important;\n }\n }\n }\n }\n "]);return b=function(){return t},t}var f=u.default.div.withConfig({displayName:"styles__Content",componentId:"sc-121ckq3-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(u.css)(b(),m.b.mobileMax)})),x=n(8),v=n(9),h=n(10),w={name:{text:""},doorCenterLocationNoDataMessage:"",selectAnotherDoorLabel:{text:""},doorCenterLabel:{text:""},selectLabel:{text:""},dcStockListCta:{label:""},clearanceListCta:{label:""},doorCenter:{}},A=function(t){var e=l()({},w,Object(i.g)(t.content)),n=Object(o.useState)([]),c=Object(a.a)(n,2),p=c[0],u=c[1],m=Object(o.useState)(""),b=Object(a.a)(m,2),A=b[0],g=b[1],U=Object(o.useState)(!1),k=Object(a.a)(U,2),M=(k[0],k[1]),D=Object(o.useState)({doorCenterLocationId:"",doorCenterLocationName:""}),C=Object(a.a)(D,2),y=C[0],E=C[1],P=Object(o.useState)(!1),L=Object(a.a)(P,2),O=L[0],N=L[1],j=Object(o.useState)(!1),S=Object(a.a)(j,2),I=S[0],W=S[1],z=Object(o.useState)(!1),_=Object(a.a)(z,2),Z=_[0],T=_[1],$=Object(o.useState)(!1),H=Object(a.a)($,2),R=H[0],F=H[1];Object(o.useEffect)((function(){Object(i.A)().subscribe((function(t){M(t)}));var t=function(t){var e=[];for(var n in t)e.push([n,t[n]]);e.sort((function(t,e){var n=t[1].name.toUpperCase(),a=e[1].name.toUpperCase();return n<a?-1:n>a?1:0}));var a=[];return e.forEach((function(t,e){a[e]=t[0]})),a}(e.doorCenter);if(u(t),localStorage.getItem("dealer")){var n,a,o=localStorage.getItem("dealer"),r=JSON.parse(o);r.doorCenterLocationId<=9&&(r.doorCenterLocationId=parseInt(r.doorCenterLocationId).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})),E({doorCenterLocationId:r.doorCenterLocationId,doorCenterLocationName:r.doorCenterLocationName}),(null===e||void 0===e||null===(n=e.doorCenter[r.doorCenterLocationId])||void 0===n?void 0:n.docStockPath)?N(!0):N(!1),(null===e||void 0===e||null===(a=e.doorCenter[r.doorCenterLocationId])||void 0===a?void 0:a.clearancePath)?W(!0):W(!1)}}),[]);return r.a.createElement(x.a,{setter:{componentThemes:s,selectedTheme:t.theme}},r.a.createElement(v.a,null,r.a.createElement(h.a,null,r.a.createElement(f,{isReversed:!1},p&&(null===p||void 0===p?void 0:p.length)>0&&r.a.createElement("div",{className:"container"},r.a.createElement("div",{className:"row justify-content-center"},r.a.createElement("div",{className:"col-lg-6"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-12"},r.a.createElement("p",{className:"".concat((!y.doorCenterLocationName||""===y.doorCenterLocationName)&&"font-italic"," body-text1")},e.name.text," ",y.doorCenterLocationName&&""!==y.doorCenterLocationName?y.doorCenterLocationName:e.doorCenterLocationNoDataMessage),r.a.createElement("div",{className:"d-flex mt-3 ".concat(O&&I&&"button-container")},r.a.createElement("div",null,O&&r.a.createElement(d.a,{label:Object(i.i)(e.dcStockListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[y.doorCenterLocationId])||void 0===t?void 0:t.docStockPath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[y.doorCenterLocationId])||void 0===n?void 0:n.docStockPath,a.download="DC Stocklist.pdf",a.id="dc-stocklist",a.click(),a.remove()}},id:e.dcStockListCta.label})),r.a.createElement("div",null,I&&r.a.createElement(d.a,{label:Object(i.i)(e.clearanceListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[y.doorCenterLocationId])||void 0===t?void 0:t.clearancePath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[y.doorCenterLocationId])||void 0===n?void 0:n.clearancePath,a.download="Clearancelist.pdf",a.id="clearancelistdefault",a.click(),a.remove()}},id:e.dcStockListCta.label}))))),r.a.createElement("div",{className:"row mt-4"},r.a.createElement("div",{className:"col-12"},r.a.createElement("p",{className:"body-text1"},e.selectAnotherDoorLabel.text),r.a.createElement("div",null,r.a.createElement("label",{htmlFor:"dataCenter-id"},e.doorCenterLabel.text),r.a.createElement("span",{className:"flex-span"},r.a.createElement("img",{loading:"lazy",className:"select-dropdown-icon",alt:"dropdown icon",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-arrow-right-dark.svg"}),r.a.createElement("select",{id:"dataCenter-id",name:"dataCenter",onChange:function(t){var n,a;g(t.target.value),(null===e||void 0===e||null===(n=e.doorCenter[t.target.value])||void 0===n?void 0:n.docStockPath)?T(!0):T(!1),(null===e||void 0===e||null===(a=e.doorCenter[t.target.value])||void 0===a?void 0:a.clearancePath)?F(!0):F(!1)}},r.a.createElement("option",{value:""},null===e||void 0===e?void 0:e.selectLabel.text),p&&p.length>0&&p.map((function(t,n){return r.a.createElement("option",{key:n,value:t},e.doorCenter[t].name)}))))),r.a.createElement("div",{className:"d-flex my-3 ".concat(Z&&R&&"button-container"," mb-5 pb-md-4 pb-2")},r.a.createElement("div",null,Z&&r.a.createElement(d.a,{label:Object(i.i)(e.dcStockListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[A])||void 0===t?void 0:t.docStockPath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[A])||void 0===n?void 0:n.docStockPath,a.download="DC Stocklist.pdf",a.click(),a.remove()}},id:e.dcStockListCta.label})),r.a.createElement("div",null,R&&r.a.createElement(d.a,{label:Object(i.i)(e.clearanceListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[A])||void 0===t?void 0:t.clearancePath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[A])||void 0===n?void 0:n.clearancePath,a.id="clearancelist",a.download="Clearancelist.pdf",a.click(),a.remove()}},id:e.clearanceListCta.label}))))))))))))};A.defaultProps={theme:"",content:""};e.a=A},2:function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"V",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"D",(function(){return d})),n.d(e,"G",(function(){return c})),n.d(e,"v",(function(){return l})),n.d(e,"B",(function(){return s})),n.d(e,"o",(function(){return p})),n.d(e,"r",(function(){return u})),n.d(e,"I",(function(){return m})),n.d(e,"H",(function(){return b})),n.d(e,"Q",(function(){return f})),n.d(e,"E",(function(){return x})),n.d(e,"u",(function(){return v})),n.d(e,"h",(function(){return h})),n.d(e,"t",(function(){return w})),n.d(e,"y",(function(){return A})),n.d(e,"w",(function(){return g})),n.d(e,"C",(function(){return U})),n.d(e,"s",(function(){return k})),n.d(e,"R",(function(){return M})),n.d(e,"q",(function(){return D})),n.d(e,"J",(function(){return C})),n.d(e,"F",(function(){return P})),n.d(e,"S",(function(){return L})),n.d(e,"m",(function(){return O})),n.d(e,"j",(function(){return N})),n.d(e,"n",(function(){return j})),n.d(e,"k",(function(){return S})),n.d(e,"l",(function(){return I})),n.d(e,"z",(function(){return W})),n.d(e,"L",(function(){return z})),n.d(e,"x",(function(){return _})),n.d(e,"T",(function(){return Z})),n.d(e,"U",(function(){return T})),n.d(e,"b",(function(){return $})),n.d(e,"O",(function(){return H})),n.d(e,"A",(function(){return R})),n.d(e,"a",(function(){return F})),n.d(e,"d",(function(){return J})),n.d(e,"f",(function(){return G})),n.d(e,"e",(function(){return q})),n.d(e,"X",(function(){return B})),n.d(e,"c",(function(){return V})),n.d(e,"W",(function(){return K})),n.d(e,"K",(function(){return Q})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return Y})),n.d(e,"p",(function(){return tt})),n.d(e,"P",(function(){return et}));var a=n(4),o=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},r=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return t.toUpperCase()},d=function(t){return t.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),l=new a.a(!1),s=new a.a(!1),p=new a.a(!1),u=new a.a(""),m=new a.a(!1),b=new a.a(!1),f=new a.a(!1),x=new a.a(!1),v=new a.a(!1),h=new a.a(!1),w=new a.a(""),A=new a.a(!0),g=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),D=new a.a(!0),C=new a.a({}),y=new a.a(!1),E=0,P=new a.a(!1),L=new a.a(""),O=new a.a(""),N=new a.a(""),j=new a.a(""),S=new a.a(""),I=new a.a(""),W=new a.a(""),z=new a.a(""),_=new a.a(!1),Z=new a.a(!1),T=new a.a(!1),$=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){E++,y.next(!0)}),0)}),H=function(){setTimeout((function(){E>0&&E--,0==E&&y.next(!1)}),0)},R=function(){return y.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)},J=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},q=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},B=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},V=function(t){return/^[0-9]*$/.test(t)},K=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},Q=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},X=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},Y=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},tt=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},et=function(t,e,n){var a="",o=t.split(e);return o.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==o.length-1&&(a+=n))})),a}},26:function(t,e){t.exports=ReactDOM},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(30),o=n(0),r=n.n(o),i=n(5),d=n(1),c=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),l=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;}"],d.b.smallDesktop2Min),s=n(25),p=n(24),u=function(t){var e=t.label,n=void 0===e?"label":e,o=t.classStyle,i=void 0===o?"default":o,d=t.link,u=void 0!==d&&d,m=t.disabled,b=void 0!==m&&m,f=t.datatoggle,x=void 0===f?"":f,v=t.datatarget,h=void 0===v?"":v,w=t.linkHref,A=t.target,g=void 0===A?"_self":A,U=t.downloadLink,k=void 0!==U&&U,M=t.inverse,D=void 0!==M&&M,C=t.icon,y=void 0===C?"":C,E=t.iconAlt,P=void 0===E?"":E,L=t.dataItemName,O=void 0===L?"":L,N=t.id,j=void 0===N?"":N,S=t.type,I=void 0===S?"button":S,W=t.showDisabledMessage,z=void 0===W?"":W,_=t.ariaLabel,Z=void 0===_?"":_,T=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return r.a.createElement(c,null,r.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},u?r.a.createElement("a",{href:w,download:k,target:g,"data-item-name":O,id:j,"aria-label":Z},r.a.createElement(l,Object.assign({role:"presentation",disabled:b,classStyle:"".concat(i)},T,{type:I,className:D?"btn-inverse btn btn-success":"btn btn-success"}),""!=y?r.a.createElement("div",{"data-toggle":x,"data-target":h},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:y,alt:P}),r.a.createElement("span",null,n)):r.a.createElement("span",null,n))):r.a.createElement(l,Object.assign({disabled:b,classStyle:i,className:D?"btn-inverse btn btn-success":"btn btn-success",id:j,"data-item-name":O,type:I},T),r.a.createElement("span",null,n)),b&&z&&r.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(p.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},z))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},719:function(t,e,n){"use strict";n.r(e);var a=n(21),o=n(136);e.default=a.a.create({component:o.a,configuration:{tagname:"amarr-dc-stock-list",useShadow:!1},plugins:[]})},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),o=n(0),r=n.n(o),i=function(t){var e=t.setter,n=e.componentThemes,o=e.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!o)return n.theme1;var t=o.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)}},9:function(t,e,n){"use strict";var a=n(0),o=n.n(a),r=n(5),i=n(20),d=n.n(i),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(i){console.log(i)}var a=e?[d.a]:[];return o.a.createElement(r.StyleSheetManager,{stylisPlugins:a},o.a.createElement(c.Provider,{value:{rtl:e}},t.children))}}});
1
+ !function(t){function e(e){for(var a,i,c=e[0],d=e[1],l=e[2],p=0,u=[];p<c.length;p++)i=c[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(t[a]=d[a]);for(s&&s(e);u.length;)u.shift()();return o.push.apply(o,l||[]),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 d=n[c];0!==r[d]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={16: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"]||[],d=c.push.bind(c);c.push=e,c=c.slice();for(var l=0;l<c.length;l++)e(c[l]);var s=d;o.push([488,0]),n()}({0:function(t,e){t.exports=React},1: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},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)"),smallMobileAndUpMax:"(max-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)"),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)"),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)")}},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,d=void 0===c||c;return r.a.createElement(o,{className:e,maxWidth:i,padding:d},n)}},135:function(t,e,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(2),c=n(7),d=n(12),l=n.n(d),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),u=n(5),m=n(1);function b(){var t=Object(p.a)(["\n select {\n appearance: none;\n }\n\n .flex-span {\n position: relative;\n }\n .select-dropdown {\n &-icon {\n width: 16px;\n height: 16px;\n position: absolute;\n right: 12px;\n top: 34%;\n transform: rotate(87deg);\n pointer-events: none;\n }\n }\n .button-container {\n gap: 20px;\n row-gap: 10px;\n }\n @media "," {\n .button-container {\n flex-direction: column;\n\n > div {\n &:not(:last-child) {\n margin-bottom: 10px !important;\n }\n }\n }\n }\n "]);return b=function(){return t},t}var f=u.default.div.withConfig({displayName:"styles__Content",componentId:"sc-121ckq3-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(u.css)(b(),m.b.mobileMax)})),h=n(8),x=n(9),g=n(10),v={name:{text:""},doorCenterLocationNoDataMessage:"",selectAnotherDoorLabel:{text:""},doorCenterLabel:{text:""},selectLabel:{text:""},dcStockListCta:{label:""},clearanceListCta:{label:""},doorCenter:{}},w=function(t){var e=l()({},v,Object(i.g)(t.content)),n=Object(r.useState)([]),d=Object(a.a)(n,2),p=d[0],u=d[1],m=Object(r.useState)(""),b=Object(a.a)(m,2),w=b[0],A=b[1],U=Object(r.useState)(!1),k=Object(a.a)(U,2),M=(k[0],k[1]),C=Object(r.useState)({doorCenterLocationId:"",doorCenterLocationName:""}),y=Object(a.a)(C,2),D=y[0],O=y[1],E=Object(r.useState)(!1),P=Object(a.a)(E,2),L=P[0],S=P[1],N=Object(r.useState)(!1),j=Object(a.a)(N,2),W=j[0],I=j[1],z=Object(r.useState)(!1),T=Object(a.a)(z,2),_=T[0],Z=T[1],H=Object(r.useState)(!1),$=Object(a.a)(H,2),J=$[0],R=$[1];Object(r.useEffect)((function(){Object(i.A)().subscribe((function(t){M(t)}));var t=function(t){var e=[];for(var n in t)e.push([n,t[n]]);e.sort((function(t,e){var n=t[1].name.toUpperCase(),a=e[1].name.toUpperCase();return n<a?-1:n>a?1:0}));var a=[];return e.forEach((function(t,e){a[e]=t[0]})),a}(e.doorCenter);if(u(t),localStorage.getItem("dealer")){var n,a,r=localStorage.getItem("dealer"),o=JSON.parse(r);o.doorCenterLocationId<=9&&(o.doorCenterLocationId=parseInt(o.doorCenterLocationId).toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})),O({doorCenterLocationId:o.doorCenterLocationId,doorCenterLocationName:o.doorCenterLocationName}),(null===e||void 0===e||null===(n=e.doorCenter[o.doorCenterLocationId])||void 0===n?void 0:n.docStockPath)?S(!0):S(!1),(null===e||void 0===e||null===(a=e.doorCenter[o.doorCenterLocationId])||void 0===a?void 0:a.clearancePath)?I(!0):I(!1)}}),[]);return o.a.createElement(h.a,{setter:{componentThemes:s,selectedTheme:t.theme}},o.a.createElement(x.a,null,o.a.createElement(g.a,null,o.a.createElement(f,{isReversed:!1},p&&(null===p||void 0===p?void 0:p.length)>0&&o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row justify-content-center"},o.a.createElement("div",{className:"col-lg-6"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("p",{className:"".concat((!D.doorCenterLocationName||""===D.doorCenterLocationName)&&"font-italic"," body-text1")},e.name.text," ",D.doorCenterLocationName&&""!==D.doorCenterLocationName?D.doorCenterLocationName:e.doorCenterLocationNoDataMessage),o.a.createElement("div",{className:"d-flex mt-3 ".concat(L&&W&&"button-container")},o.a.createElement("div",null,L&&o.a.createElement(c.a,{label:Object(i.i)(e.dcStockListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[D.doorCenterLocationId])||void 0===t?void 0:t.docStockPath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[D.doorCenterLocationId])||void 0===n?void 0:n.docStockPath,a.download="DC Stocklist.pdf",a.id="dc-stocklist",a.click(),a.remove()}},id:e.dcStockListCta.label})),o.a.createElement("div",null,W&&o.a.createElement(c.a,{label:Object(i.i)(e.clearanceListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[D.doorCenterLocationId])||void 0===t?void 0:t.clearancePath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[D.doorCenterLocationId])||void 0===n?void 0:n.clearancePath,a.download="Clearancelist.pdf",a.id="clearancelistdefault",a.click(),a.remove()}},id:e.dcStockListCta.label}))))),o.a.createElement("div",{className:"row mt-4"},o.a.createElement("div",{className:"col-12"},o.a.createElement("p",{className:"body-text1"},e.selectAnotherDoorLabel.text),o.a.createElement("div",null,o.a.createElement("label",{htmlFor:"dataCenter-id"},e.doorCenterLabel.text),o.a.createElement("span",{className:"flex-span"},o.a.createElement("img",{loading:"lazy",className:"select-dropdown-icon",alt:"dropdown icon",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-arrow-right-dark.svg"}),o.a.createElement("select",{id:"dataCenter-id",name:"dataCenter",onChange:function(t){var n,a;A(t.target.value),(null===e||void 0===e||null===(n=e.doorCenter[t.target.value])||void 0===n?void 0:n.docStockPath)?Z(!0):Z(!1),(null===e||void 0===e||null===(a=e.doorCenter[t.target.value])||void 0===a?void 0:a.clearancePath)?R(!0):R(!1)}},o.a.createElement("option",{value:""},null===e||void 0===e?void 0:e.selectLabel.text),p&&p.length>0&&p.map((function(t,n){return o.a.createElement("option",{key:n,value:t},e.doorCenter[t].name)}))))),o.a.createElement("div",{className:"d-flex my-3 ".concat(_&&J&&"button-container"," mb-5 pb-md-4 pb-2")},o.a.createElement("div",null,_&&o.a.createElement(c.a,{label:Object(i.i)(e.dcStockListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[w])||void 0===t?void 0:t.docStockPath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[w])||void 0===n?void 0:n.docStockPath,a.download="DC Stocklist.pdf",a.click(),a.remove()}},id:e.dcStockListCta.label})),o.a.createElement("div",null,J&&o.a.createElement(c.a,{label:Object(i.i)(e.clearanceListCta.label),onClick:function(){var t;if(null===e||void 0===e||null===(t=e.doorCenter[w])||void 0===t?void 0:t.clearancePath){var n,a=document.createElement("a");a.href=null===e||void 0===e||null===(n=e.doorCenter[w])||void 0===n?void 0:n.clearancePath,a.id="clearancelist",a.download="Clearancelist.pdf",a.click(),a.remove()}},id:e.clearanceListCta.label}))))))))))))};w.defaultProps={theme:"",content:""};e.a=w},2:function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"W",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"E",(function(){return c})),n.d(e,"H",(function(){return d})),n.d(e,"v",(function(){return l})),n.d(e,"C",(function(){return s})),n.d(e,"o",(function(){return p})),n.d(e,"r",(function(){return u})),n.d(e,"J",(function(){return m})),n.d(e,"I",(function(){return b})),n.d(e,"R",(function(){return f})),n.d(e,"F",(function(){return h})),n.d(e,"u",(function(){return x})),n.d(e,"h",(function(){return g})),n.d(e,"t",(function(){return v})),n.d(e,"y",(function(){return w})),n.d(e,"w",(function(){return A})),n.d(e,"D",(function(){return U})),n.d(e,"s",(function(){return k})),n.d(e,"S",(function(){return M})),n.d(e,"q",(function(){return C})),n.d(e,"K",(function(){return y})),n.d(e,"G",(function(){return E})),n.d(e,"T",(function(){return P})),n.d(e,"m",(function(){return L})),n.d(e,"j",(function(){return S})),n.d(e,"n",(function(){return N})),n.d(e,"k",(function(){return j})),n.d(e,"l",(function(){return W})),n.d(e,"z",(function(){return I})),n.d(e,"M",(function(){return z})),n.d(e,"x",(function(){return T})),n.d(e,"U",(function(){return _})),n.d(e,"V",(function(){return Z})),n.d(e,"b",(function(){return H})),n.d(e,"P",(function(){return $})),n.d(e,"A",(function(){return J})),n.d(e,"a",(function(){return R})),n.d(e,"d",(function(){return F})),n.d(e,"f",(function(){return G})),n.d(e,"e",(function(){return q})),n.d(e,"Y",(function(){return B})),n.d(e,"c",(function(){return V})),n.d(e,"X",(function(){return Y})),n.d(e,"L",(function(){return K})),n.d(e,"N",(function(){return Q})),n.d(e,"O",(function(){return X})),n.d(e,"p",(function(){return tt})),n.d(e,"Q",(function(){return et})),n.d(e,"B",(function(){return nt}));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 t.toUpperCase()},c=function(t){return t.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),l=new a.a(!1),s=new a.a(!1),p=new a.a(!1),u=new a.a(""),m=new a.a(!1),b=new a.a(!1),f=new a.a(!1),h=new a.a(!1),x=new a.a(!1),g=new a.a(!1),v=new a.a(""),w=new a.a(!0),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),C=new a.a(!0),y=new a.a({}),D=new a.a(!1),O=0,E=new a.a(!1),P=new a.a(""),L=new a.a(""),S=new a.a(""),N=new a.a(""),j=new a.a(""),W=new a.a(""),I=new a.a(""),z=new a.a(""),T=new a.a(!1),_=new a.a(!1),Z=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){O++,D.next(!0)}),0)}),$=function(){setTimeout((function(){O>0&&O--,0==O&&D.next(!1)}),0)},J=function(){return D.asObservable()},R=function(t){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},F=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},q=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},B=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},V=function(t){return/^[0-9]*$/.test(t)},Y=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},K=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},Q=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},X=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},tt=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},et=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};function nt(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,p="";e=r(s,"&lt;!--","--&gt;",d,"W3HTMLCOMMENTPOS"),s=e.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),p+=s.substring(0,n),p+=o(s.substring(n,a+4)),s=s.substr(a+4),"css"==i&&(a=s.indexOf("&lt;/style&gt;"))>-1&&(p+=l(s.substring(0,a)),s=s.substr(a)),"javascript"==i&&(a=s.indexOf("&lt;/script&gt;"))>-1&&(p+=m(s.substring(0,a)),s=s.substr(a));for(s=p+s,c=0;c<e.arr.length;c++)s=s.replace("W3HTMLCOMMENTPOS",e.arr[c]);return s}(a)),"css"==n&&(a=l(a)),"js"==n&&(a=m(a)),a;function r(t,e,n,a,r){for(var o,i,c="",d=[];t.search(e)>-1;)o=t.search(e),-1==(i=t.indexOf(n,o))&&(i=t.length),r?(d.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:d}}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("&gt;"))&&(n=r.length),o+=r.substring(0,e),o+=i(r.substring(e,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(t){for(var e,n,a,r,o,i=t,d="";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),d+=i.substring(0,e),d+=c(i.substring(e,n+1)),i=i.substr(n+1);return"<span style=color:green>"+d+i+"</span>"}function c(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function d(t){return"<span style=color:green>"+t+"</span>"}function l(t){var e,n,a,o,i,c,l,p=t,u="";for(p=(a=r(p,/\/\*/,"*/",d,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(e=p.search("{"),i=p.substr(e+1),l=1,c=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(l++,c++),"}"==i.substr(o,1)&&l--,0!=l);o++);for(0!=l&&(c=0),n=e,o=0;o<=c;o++)n=p.indexOf("}",n+1);-1==n&&(n=p.length),u+=p.substring(0,e+1),u+=s(p.substring(e+1,n)),p=p.substr(n)}for(p=(p=(p=u+p).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)p=p.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+p+"</span>"}function s(t){var e,n,a,r,o=t,i="";if(o.indexOf("{")>-1)return l(o);for(;o.search(":")>-1;){for(r=!0,a=e=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,e),i+=p(o.substring(e,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function p(t){var e,n=t,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)e=n.search(/!important/i),a+=n.substring(0,e),a+=u(n.substring(e,e+10)),n=n.substr(e+10);var r=a+n;return";"==r.substr(r.length-1,1)&&"&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 u(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var e,n,a,r,o,i,c,l,s,p,u=t,m="",k=[],M="";for(e=0;e<u.length;e++)"\\"==(n=u.substr(e,1))&&(k.push(u.substr(e,2)),n="W3JSESCAPE",e++),M+=n;for(u=M,1;a=A(u,"'","'",b),r=A(u,'"','"',b),o=A(u,/\/\*/,"*/",d),i=A(u,/\/\//,"<br>",d),l=U(u,h),c=w("js",u,f),p=g(u,x),-1!=Math.max(l[0],a[0],r[0],o[0],i[0],c[0],p[0])&&-1!=(s=v(l,a,r,o,i,c,p))[0];)s[0]>-1&&(m+=u.substring(0,s[0]),m+=s[2](u.substring(s[0],s[1])),u=u.substr(s[1]));for(u=m+u,e=0;e<k.length;e++)u=u.replace("W3JSESCAPE",k[e]);return"<span style=color:black>"+u+"</span>"}function b(t){return"<span style=color:brown>"+t+"</span>"}function f(t){return"<span style=color:mediumblue>"+t+"</span>"}function h(t){return"<span style=color:red>"+t+"</span>"}function x(t){return"<span style=color:black>"+t+"</span>"}function g(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,d=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==d.length||arguments[c][0]<d[0])&&(d=arguments[c]);return 0==d.length&&(d=arguments[c]),d}function w(t,e,n){var a,r,o,i,c=-1,d=-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)&&(d=(c=r)+i[a].length));return[c,d,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>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],d=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(d<(o=n)&&(i=t.substring(d,o),!isNaN(i)))return[d,o,e];d=n+=c[a].length,n-=1;break}return[-1,-1,e]}}},26:function(t,e){t.exports=ReactDOM},397:function(t,e,n){"use strict";n.r(e);var a=n(20),r=n(135);e.default=a.a.create({component:r.a,configuration:{tagname:"amarr-dc-stock-list",useShadow:!1},plugins:[]})},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(30),r=n(0),o=n.n(r),i=n(5),c=n(1),d=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),l=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(25),p=n(24),u=function(t){var e=t.label,n=void 0===e?"label":e,r=t.classStyle,i=void 0===r?"default":r,c=t.link,u=void 0!==c&&c,m=t.disabled,b=void 0!==m&&m,f=t.datatoggle,h=void 0===f?"":f,x=t.datatarget,g=void 0===x?"":x,v=t.linkHref,w=t.target,A=void 0===w?"_self":w,U=t.downloadLink,k=void 0!==U&&U,M=t.inverse,C=void 0!==M&&M,y=t.icon,D=void 0===y?"":y,O=t.iconAlt,E=void 0===O?"":O,P=t.dataItemName,L=void 0===P?"":P,S=t.id,N=void 0===S?"":S,j=t.type,W=void 0===j?"button":j,I=t.showDisabledMessage,z=void 0===I?"":I,T=t.ariaLabel,_=void 0===T?"":T,Z=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(d,null,o.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},u?o.a.createElement("a",{href:v,download:k,target:A,"data-item-name":L,id:N,"aria-label":_},o.a.createElement(l,Object.assign({role:"none",disabled:b,classStyle:"".concat(i)},Z,{type:W,className:C?"btn-inverse btn btn-success":"btn btn-success"}),""!=D?o.a.createElement("div",{"data-toggle":h,"data-target":g},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:D,alt:E}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(l,Object.assign({disabled:b,classStyle:i,className:C?"btn-inverse btn btn-success":"btn btn-success",id:N,"data-item-name":L,type:W},Z),o.a.createElement("span",null,n)),b&&z&&o.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(p.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(t){var e=t.setter,n=e.componentThemes,r=e.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var t=r.match(/\d+/g).map(Number),e=Object.keys(n).find((function(e){return!(!Array.isArray(t)||1!==t.length)&&(e.includes(t[0])&&n[e])}));return e?n["".concat(e)]:n.theme1}},t.children)}},9:function(t,e,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(21),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(d){console.log(d)}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-dc-stock-list",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Web component - Dc-stock-list",
5
5
  "type": "module",
6
6
  "main": "dc-stock-list.js",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "author": "Nagarro",
13
13
  "license": "MIT",
14
- "gitHead": "9ccc02bd1b2f0af735bd5b5f4cffc36ebf6a1e1e"
14
+ "gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
15
15
  }