@assaabloy/amarr-wc-dc-stock-list 3.0.5 → 3.0.6
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/dc-stock-list.js +1 -1
- 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,m=[];p<d.length;p++)i=d[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&m.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);m.length;)m.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([810,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)"),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)")}},135:function(t,e,n){"use strict";var a=n(3),o=n(0),r=n.n(o),i=n(2),d=n(6),c=n(12),l=n.n(c),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),m=n(5),u=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=m.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(m.css)(b(),u.b.mobileMax)})),x=n(7),v=n(8),h=n(9),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],m=c[1],u=Object(o.useState)(""),b=Object(a.a)(u,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],j=L[1],N=Object(o.useState)(!1),S=Object(a.a)(N,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(m(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)?j(!0):j(!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},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:""},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 i})),n.d(e,"U",(function(){return d})),n.d(e,"i",(function(){return c})),n.d(e,"D",(function(){return l})),n.d(e,"G",(function(){return s})),n.d(e,"v",(function(){return p})),n.d(e,"B",(function(){return m})),n.d(e,"o",(function(){return u})),n.d(e,"r",(function(){return b})),n.d(e,"I",(function(){return f})),n.d(e,"H",(function(){return x})),n.d(e,"P",(function(){return v})),n.d(e,"E",(function(){return h})),n.d(e,"u",(function(){return w})),n.d(e,"h",(function(){return A})),n.d(e,"t",(function(){return g})),n.d(e,"y",(function(){return U})),n.d(e,"w",(function(){return k})),n.d(e,"C",(function(){return M})),n.d(e,"s",(function(){return D})),n.d(e,"Q",(function(){return C})),n.d(e,"q",(function(){return y})),n.d(e,"J",(function(){return E})),n.d(e,"F",(function(){return O})),n.d(e,"R",(function(){return j})),n.d(e,"m",(function(){return N})),n.d(e,"j",(function(){return S})),n.d(e,"n",(function(){return I})),n.d(e,"k",(function(){return W})),n.d(e,"l",(function(){return z})),n.d(e,"z",(function(){return _})),n.d(e,"L",(function(){return Z})),n.d(e,"x",(function(){return T})),n.d(e,"S",(function(){return $})),n.d(e,"T",(function(){return H})),n.d(e,"b",(function(){return J})),n.d(e,"O",(function(){return G})),n.d(e,"A",(function(){return q})),n.d(e,"a",(function(){return B})),n.d(e,"d",(function(){return V})),n.d(e,"f",(function(){return K})),n.d(e,"e",(function(){return Q})),n.d(e,"W",(function(){return X})),n.d(e,"c",(function(){return Y})),n.d(e,"V",(function(){return tt})),n.d(e,"K",(function(){return et})),n.d(e,"M",(function(){return nt})),n.d(e,"N",(function(){return at})),n.d(e,"p",(function(){return ot}));var a=n(3),o=n(0),r=n(4),i=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},d=function(t){return btoa(unescape(encodeURIComponent(t)))},c=function(t){return t.toUpperCase()},l=function(t){return t.replaceAll(" ","-").toLowerCase()},s=new r.a(!1),p=new r.a(!1),m=new r.a(!1),u=new r.a(!1),b=new r.a(""),f=new r.a(!1),x=new r.a(!1),v=new r.a(!1),h=new r.a(!1),w=new r.a(!1),A=new r.a(!1),g=new r.a(""),U=new r.a(!0),k=new r.a(!0),M=new r.a(!0),D=new r.a(!0),C=new r.a(!0),y=new r.a(!0),E=new r.a({}),P=new r.a(!1),L=0,O=new r.a(!1),j=new r.a(""),N=new r.a(""),S=new r.a(""),I=new r.a(""),W=new r.a(""),z=new r.a(""),_=new r.a(""),Z=new r.a(""),T=new r.a(!1),$=new r.a(!1),H=new r.a(!1),R=Object(o.useState)(),F=Object(a.a)(R,2),J=(F[0],F[1],function(){setTimeout((function(){L++,P.next(!0)}),0)}),G=function(){setTimeout((function(){L>0&&L--,0==L&&P.next(!1)}),0)},q=function(){return P.asObservable()},B=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){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},K=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)},X=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},Y=function(t){return/^[0-9]*$/.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){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},at=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},ot=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}},26:function(t,e){t.exports=ReactDOM},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(29),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),m=function(t){var e=t.label,n=void 0===e?"label":e,o=t.classStyle,i=void 0===o?"default":o,d=t.link,m=void 0!==d&&d,u=t.disabled,b=void 0!==u&&u,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,j=t.id,N=void 0===j?"":j,S=t.type,I=void 0===S?"button":S,W=t.showDisabledMessage,z=void 0===W?"":W,_=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return r.a.createElement(c,null,r.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},m?r.a.createElement("a",{href:w,download:k,target:g,"data-item-name":O,id:N},r.a.createElement(l,Object.assign({disabled:b,classStyle:"".concat(i)},_,{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:N,"data-item-name":O,type:I},_),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"}))))}},7: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)}},718:function(t,e,n){"use strict";n.r(e);var a=n(21),o=n(135);e.default=a.a.create({component:o.a,configuration:{tagname:"amarr-dc-stock-list",useShadow:!1},plugins:[]})},8: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))}},9: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)}}});
|
|
1
|
+
!function(t){function e(e){for(var a,i,d=e[0],c=e[1],l=e[2],p=0,m=[];p<d.length;p++)i=d[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&m.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);m.length;)m.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([810,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)"),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)")}},135:function(t,e,n){"use strict";var a=n(3),o=n(0),r=n.n(o),i=n(2),d=n(6),c=n(12),l=n.n(c),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),m=n(5),u=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=m.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(m.css)(b(),u.b.mobileMax)})),x=n(7),v=n(8),h=n(9),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],m=c[1],u=Object(o.useState)(""),b=Object(a.a)(u,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(m(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},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:""},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,"U",(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 m})),n.d(e,"I",(function(){return u})),n.d(e,"H",(function(){return b})),n.d(e,"P",(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,"Q",(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,"R",(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,"S",(function(){return Z})),n.d(e,"T",(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,"W",(function(){return B})),n.d(e,"c",(function(){return V})),n.d(e,"V",(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}));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),m=new a.a(""),u=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),$=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}},26:function(t,e){t.exports=ReactDOM},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(29),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),m=function(t){var e=t.label,n=void 0===e?"label":e,o=t.classStyle,i=void 0===o?"default":o,d=t.link,m=void 0!==d&&d,u=t.disabled,b=void 0!==u&&u,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,_=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return r.a.createElement(c,null,r.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},m?r.a.createElement("a",{href:w,download:k,target:g,"data-item-name":O,id:j},r.a.createElement(l,Object.assign({disabled:b,classStyle:"".concat(i)},_,{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},_),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"}))))}},7: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)}},718:function(t,e,n){"use strict";n.r(e);var a=n(21),o=n(135);e.default=a.a.create({component:o.a,configuration:{tagname:"amarr-dc-stock-list",useShadow:!1},plugins:[]})},8: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))}},9: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)}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-dc-stock-list",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
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": "
|
|
14
|
+
"gitHead": "acc3c989de373312b025dcc717511f6932fc6076"
|
|
15
15
|
}
|