@assaabloy/amarr-wc-button 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.
- package/button.js +1 -1
- package/package.json +2 -2
package/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(n){function t(t){for(var a,i,d=t[0],c=t[1],l=t[2],s=0,m=[];s<d.length;s++)i=d[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&m.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(n[a]=c[a]);for(p&&p(t);m.length;)m.shift()();return o.push.apply(o,l||[]),e()}function e(){for(var n,t=0;t<o.length;t++){for(var e=o[t],a=!0,d=1;d<e.length;d++){var c=e[d];0!==r[c]&&(a=!1)}a&&(o.splice(t--,1),n=i(i.s=e[0]))}return n}var a={},r={3:0},o=[];function i(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=n,i.c=a,i.d=function(n,t,e){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},i.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,t){if(1&t&&(n=i(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var a in n)i.d(e,a,function(t){return n[t]}.bind(null,a));return e},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=t,d=d.slice();for(var l=0;l<d.length;l++)t(d[l]);var p=c;o.push([798,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"a",(function(){return a})),e.d(t,"b",(function(){return r}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920},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(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var a=e(0),r=e.n(a),o=e(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(n){return n.padding?"0 var(--grid-margin);":0}),(function(n){n.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),i=function(n){var t=n.className,e=n.children,a=n.maxWidth,i=void 0===a?1520:a,d=n.padding,c=void 0===d||d;return r.a.createElement(o,{className:t,maxWidth:i,padding:c},e)}},2:function(n,t,e){"use strict";e.d(t,"g",(function(){return r})),e.d(t,"V",(function(){return o})),e.d(t,"i",(function(){return i})),e.d(t,"D",(function(){return d})),e.d(t,"G",(function(){return c})),e.d(t,"v",(function(){return l})),e.d(t,"B",(function(){return p})),e.d(t,"o",(function(){return s})),e.d(t,"r",(function(){return m})),e.d(t,"I",(function(){return u})),e.d(t,"H",(function(){return x})),e.d(t,"Q",(function(){return b})),e.d(t,"E",(function(){return f})),e.d(t,"u",(function(){return h})),e.d(t,"h",(function(){return g})),e.d(t,"t",(function(){return w})),e.d(t,"y",(function(){return A})),e.d(t,"w",(function(){return k})),e.d(t,"C",(function(){return U})),e.d(t,"s",(function(){return v})),e.d(t,"R",(function(){return M})),e.d(t,"q",(function(){return D})),e.d(t,"J",(function(){return y})),e.d(t,"F",(function(){return j})),e.d(t,"S",(function(){return N})),e.d(t,"m",(function(){return O})),e.d(t,"j",(function(){return _})),e.d(t,"n",(function(){return W})),e.d(t,"k",(function(){return z})),e.d(t,"l",(function(){return C})),e.d(t,"z",(function(){return I})),e.d(t,"L",(function(){return L})),e.d(t,"x",(function(){return S})),e.d(t,"T",(function(){return T})),e.d(t,"U",(function(){return H})),e.d(t,"b",(function(){return Z})),e.d(t,"O",(function(){return $})),e.d(t,"A",(function(){return q})),e.d(t,"a",(function(){return B})),e.d(t,"d",(function(){return R})),e.d(t,"f",(function(){return F})),e.d(t,"e",(function(){return J})),e.d(t,"X",(function(){return G})),e.d(t,"c",(function(){return V})),e.d(t,"W",(function(){return K})),e.d(t,"K",(function(){return Q})),e.d(t,"M",(function(){return X})),e.d(t,"N",(function(){return Y})),e.d(t,"p",(function(){return nn})),e.d(t,"P",(function(){return tn}));var a=e(4),r=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},o=function(n){return btoa(unescape(encodeURIComponent(n)))},i=function(n){return n.toUpperCase()},d=function(n){return n.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),l=new a.a(!1),p=new a.a(!1),s=new a.a(!1),m=new a.a(""),u=new a.a(!1),x=new a.a(!1),b=new a.a(!1),f=new a.a(!1),h=new a.a(!1),g=new a.a(!1),w=new a.a(""),A=new a.a(!0),k=new a.a(!0),U=new a.a(!0),v=new a.a(!0),M=new a.a(!0),D=new a.a(!0),y=new a.a({}),P=new a.a(!1),E=0,j=new a.a(!1),N=new a.a(""),O=new a.a(""),_=new a.a(""),W=new a.a(""),z=new a.a(""),C=new a.a(""),I=new a.a(""),L=new a.a(""),S=new a.a(!1),T=new a.a(!1),H=new a.a(!1),Z=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){E++,P.next(!0)}),0)}),$=function(){setTimeout((function(){E>0&&E--,0==E&&P.next(!1)}),0)},q=function(){return P.asObservable()},B=function(n){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(n)},R=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},F=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},J=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},G=function(n){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(n)},V=function(n){return/^[0-9]*$/.test(n)},K=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},Q=function(n){if(n&&""!==n&&-1===n.indexOf("(")&&-1===n.indexOf(") ")&&-1===n.indexOf("-")){return"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length)}return n},X=function(n){return n&&(n=n.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==n&&"0"!==n||(n=n.toFixed(2)),n},Y=function(n,t){return n=n?Number(n):0,(0===(t=t?Number(t):0)||"0"===t?0:(n-t)/t*100).toFixed(2)},nn=function(n){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:n.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:n.selectedHeight,glass:n.selectedGlass,collection:n.selectedCollection,print:!0,baseUrl:"",gplacement:n.selectedWindowPlacement,width:n.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return n.selectedColor&&(t.color=n.selectedColor),n.colorHex&&(t.colorHex=n.colorHex),n.colorZone&&(t.colorZone=n.colorZone),n.selectedConstruction&&(t.model=n.selectedConstruction),n.selectedWindowDesign&&(t.top=n.selectedWindowDesign),n.glazepattern&&(t.glazepattern=n.glazepattern),n.selectedHardware&&(t.hardware=n.selectedHardware),t},tn=function(n,t,e){var a="",r=n.split(t);return r.forEach((function(n,t){"undefined"!==n&&n&&(a+=n,t!==r.length-1&&(a+=e))})),a}},26:function(n,t){n.exports=ReactDOM},28:function(n,t,e){"use strict";e.d(t,"a",(function(){return l}));var a=e(23),r=e(0),o=e.n(r),i=e(5),d=e(1),c=i.default.div.withConfig({displayName:"styles__View",componentId:"zfm3w6-0"})([".divider{width:100%;height:6px;@media screen and ","{height:8px;}@media screen and ","{height:10px;}}"],d.b.mediumDesktopMin,d.b.largeDesktopMin),l=function(n){return Object(a.a)(n),o.a.createElement(c,null,o.a.createElement("div",{className:"divider"},"\xa0"))}},61:function(n,t,e){"use strict";var a=e(0),r=e.n(a),o=e(7),i=e(2),d=e(28),c=e(12),l=e.n(c),p={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},s=e(11),m=e(5),u=e(1);function x(){var n=Object(s.a)(["\n \n .button-container-style{\n display:flex;\n flex-wrap: wrap;\n // row-gap: 20px;\n // gap: 20px;\n \n &.text-left-alignment{\n justify-content: left;\n }\n \n &.text-right-alignment{\n justify-content: center;\n }\n \n &.text-center-alignment{\n justify-content: center;\n }\n }\n \n .button-container-style-block{\n @media screen and "," {\n display:flex;\n flex-direction: column;\n }\n }\n //not needed all center button alignment looks weird bcoz of this, this was added for multiple buttons gave a gap property to handle that\n // .button-style{\n // margin-right: 1.3rem;\n // }\n .mobile-margin{\n &.text-left-alignment{\n justify-content: left;\n }\n \n &.text-right-alignment{\n justify-content: center;\n }\n \n &.text-center-alignment{\n justify-content: center;\n }\n @media screen and "," {\n margin-left:0;\n /* margin-top:1rem */\n }\n }\n .button-container-style > * {\n margin: 20px 0 0 0px;\n } \n .button-container-style {\n margin: -20px 0 0 0px;\n }\n .mobile-margin:not(:last-child){\n @media screen and ","{\n margin-right: 25px;\n }\n @media screen and ","{\n margin-right: 20px;\n }\n }\n \n .quick-links{\n border: solid 1px var(--border-color);\n border-radius: var(--border-radius);\n padding: 0px 16px 18px;\n margin-top: 10px;\n // row-gap: 16px;\n .mobile-margin:not(:last-child){\n margin-right: 20px;\n @media screen and ","{\n margin-right: 25px;\n }\n @media screen and ","{\n margin-right: 0px;\n }\n }\n .mobile-margin:nth-child(odd){\n @media screen and ","{\n padding-right: 20px;\n }\n }\n }\n @media screen and ","{\n .button-auto-height{\n button.btn {\n height: min-content;\n white-space: break-spaces;\n text-align: left;\n }\n }\n }\n @media screen and ","{\n .button-container-style.quick-links{\n flex-wrap: wrap;\n .mobile-margin{\n flex: 0 0 50%;\n max-width: calc(50% - 20px);\n }\n }\n }\n @media screen and ","{\n .quick-links{\n padding: 0px 18px 16px 18px;\n margin-top: 10px;\n }\n .quick-links.button-container-style > * {\n margin: 18px 0px 0px;\n }\n }\n "]);return x=function(){return n},n}var b=m.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1ulpkx4-0"})(["",""],(function(n){var t;(null===(t=n.gradients)||void 0===t?void 0:t.visible)?n.theme.gradient:n.theme;return Object(m.css)(x(),u.b.mobileMax,u.b.mobileMax,u.b.largeDesktopMin,u.b.mediumDesktopAndUp3Max,u.b.largeDesktopMin,u.b.mobileMax,u.b.mobileMax,u.b.tabletPortraitMax,u.b.tabletPortraitMax,u.b.desktopMax2)})),f=e(8),h=e(9),g=e(10),w={alignment:"",mobileAlignment:"",ctaItems:[{label:"",url:"",linkAction:"",color:"",alignment:"",isInternal:!0}],topMargin:"",bottomMargin:"",addBorder:!1,addContainer:!1},A=function(n){var t=l()({},w,Object(i.g)(n.content));return r.a.createElement(f.a,{setter:{componentThemes:p,selectedTheme:n.theme}},r.a.createElement(h.a,null,r.a.createElement(g.a,{padding:!1},r.a.createElement(b,{isReversed:!1},"default"!==t.topMargin&&!t.addBorder&&r.a.createElement("span",null,r.a.createElement(d.a,null)),r.a.createElement("div",{className:"".concat(t.addBorder&&t.addContainer&&"inner-container")},r.a.createElement("div",{className:"button-container-style inner-container mb-4\n ".concat("left"===t.alignment&&"text-left-alignment"," ").concat("right"===t.alignment&&"text-right-alignment"," ").concat("center"===t.alignment&&"text-center-alignment","\n ").concat("block"===t.mobileAlignment&&"button-container-style-block","\n ").concat("medium"===t.topMargin&&"mt-1 mt-sm-2","\n ").concat("extra"===t.topMargin&&"mt-2 mt-sm-4","\n ").concat("medium"===t.bottomMargin&&"mb-4 mb-sm-5","\n ").concat("extra"===t.bottomMargin&&"mb-5 pb-2","\n ").concat(t.addBorder&&"quick-links","\n ")},t.ctaItems&&t.ctaItems.map((function(n,t,e){return r.a.createElement("div",{key:t,className:"".concat(n.label.length>25&&"button-auto-height"," mobile-margin")},"tertiary"!==n.color&&"noTheme"!==n.color&&r.a.createElement(o.a,{label:Object(i.i)(n.label),link:!0,linkHref:n.url,target:n.linkAction,inverse:"inverse"===n.color}),"tertiary"===n.color&&n.isInternal&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction}),"tertiary"===n.color&&!n.isInternal&&"_self"===n.cta.linkAction&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction}),"tertiary"===n.color&&n.isInternal&&"_blank"===n.cta.linkAction&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,rel:"noopener"}),"noTheme"===n.color&&n.isInternal&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction},n.label),"noTheme"===n.color&&!n.isInternal&&"_self"===n.linkAction&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction},n.label),"noTheme"===n.color&&!n.isInternal&&"_blank"===n.linkAction&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction,rel:"noopener"},n.label))})))),"extra"===t.bottomMargin&&r.a.createElement(d.a,null)))))};A.defaultProps={theme:"",content:""};t.a=A},7:function(n,t,e){"use strict";e.d(t,"a",(function(){return m}));var a=e(30),r=e(0),o=e.n(r),i=e(5),d=e(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),p=e(25),s=e(24),m=function(n){var t=n.label,e=void 0===t?"label":t,r=n.classStyle,i=void 0===r?"default":r,d=n.link,m=void 0!==d&&d,u=n.disabled,x=void 0!==u&&u,b=n.datatoggle,f=void 0===b?"":b,h=n.datatarget,g=void 0===h?"":h,w=n.linkHref,A=n.target,k=void 0===A?"_self":A,U=n.downloadLink,v=void 0!==U&&U,M=n.inverse,D=void 0!==M&&M,y=n.icon,P=void 0===y?"":y,E=n.iconAlt,j=void 0===E?"":E,N=n.dataItemName,O=void 0===N?"":N,_=n.id,W=void 0===_?"":_,z=n.type,C=void 0===z?"button":z,I=n.showDisabledMessage,L=void 0===I?"":I,S=n.ariaLabel,T=void 0===S?"":S,H=Object(a.a)(n,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(c,null,o.a.createElement("div",{className:"".concat(x&&L&&"disabled-button-parent")},m?o.a.createElement("a",{href:w,download:v,target:k,"data-item-name":O,id:W,"aria-label":T},o.a.createElement(l,Object.assign({role:"presentation",disabled:x,classStyle:"".concat(i)},H,{type:C,className:D?"btn-inverse btn btn-success":"btn btn-success"}),""!=P?o.a.createElement("div",{"data-toggle":f,"data-target":g},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:P,alt:j}),o.a.createElement("span",null,e)):o.a.createElement("span",null,e))):o.a.createElement(l,Object.assign({disabled:x,classStyle:i,className:D?"btn-inverse btn btn-success":"btn btn-success",id:W,"data-item-name":O,type:C},H),o.a.createElement("span",null,e)),x&&L&&o.a.createElement(p.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(s.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},L))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},706:function(n,t,e){"use strict";e.r(t);var a=e(21),r=e(61);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-button",useShadow:!1},plugins:[]})},8:function(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var a=e(5),r=e(0),o=e.n(r),i=function(n){var t=n.setter,e=t.componentThemes,r=t.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return e.theme1;var n=r.match(/\d+/g).map(Number),t=Object.keys(e).find((function(t){return!(!Array.isArray(n)||1!==n.length)&&(t.includes(n[0])&&e[t])}));return t?e["".concat(t)]:e.theme1}},n.children)}},9:function(n,t,e){"use strict";var a=e(0),r=e.n(a),o=e(5),i=e(20),d=e.n(i),c=Object(a.createContext)({});t.a=function(n){var t=!1;try{var e;t=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(i){console.log(i)}var a=t?[d.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:t}},n.children))}}});
|
|
1
|
+
!function(n){function t(t){for(var a,i,c=t[0],l=t[1],s=t[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 l)Object.prototype.hasOwnProperty.call(l,a)&&(n[a]=l[a]);for(d&&d(t);u.length;)u.shift()();return o.push.apply(o,s||[]),e()}function e(){for(var n,t=0;t<o.length;t++){for(var e=o[t],a=!0,c=1;c<e.length;c++){var l=e[c];0!==r[l]&&(a=!1)}a&&(o.splice(t--,1),n=i(i.s=e[0]))}return n}var a={},r={3:0},o=[];function i(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=n,i.c=a,i.d=function(n,t,e){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},i.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(n,t){if(1&t&&(n=i(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var a in n)i.d(e,a,function(t){return n[t]}.bind(null,a));return e},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var d=l;o.push([475,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"a",(function(){return a})),e.d(t,"b",(function(){return r}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920},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(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var a=e(0),r=e.n(a),o=e(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(n){return n.padding?"0 var(--grid-margin);":0}),(function(n){n.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),i=function(n){var t=n.className,e=n.children,a=n.maxWidth,i=void 0===a?1520:a,c=n.padding,l=void 0===c||c;return r.a.createElement(o,{className:t,maxWidth:i,padding:l},e)}},2:function(n,t,e){"use strict";e.d(t,"g",(function(){return r})),e.d(t,"W",(function(){return o})),e.d(t,"i",(function(){return i})),e.d(t,"E",(function(){return c})),e.d(t,"H",(function(){return l})),e.d(t,"v",(function(){return s})),e.d(t,"C",(function(){return d})),e.d(t,"o",(function(){return p})),e.d(t,"r",(function(){return u})),e.d(t,"J",(function(){return m})),e.d(t,"I",(function(){return b})),e.d(t,"R",(function(){return f})),e.d(t,"F",(function(){return g})),e.d(t,"u",(function(){return h})),e.d(t,"h",(function(){return x})),e.d(t,"t",(function(){return w})),e.d(t,"y",(function(){return A})),e.d(t,"w",(function(){return v})),e.d(t,"D",(function(){return k})),e.d(t,"s",(function(){return U})),e.d(t,"S",(function(){return M})),e.d(t,"q",(function(){return y})),e.d(t,"K",(function(){return D})),e.d(t,"G",(function(){return E})),e.d(t,"T",(function(){return N})),e.d(t,"m",(function(){return j})),e.d(t,"j",(function(){return C})),e.d(t,"n",(function(){return W})),e.d(t,"k",(function(){return S})),e.d(t,"l",(function(){return T})),e.d(t,"z",(function(){return _})),e.d(t,"M",(function(){return z})),e.d(t,"x",(function(){return I})),e.d(t,"U",(function(){return L})),e.d(t,"V",(function(){return H})),e.d(t,"b",(function(){return Z})),e.d(t,"P",(function(){return $})),e.d(t,"A",(function(){return q})),e.d(t,"a",(function(){return R})),e.d(t,"d",(function(){return B})),e.d(t,"f",(function(){return J})),e.d(t,"e",(function(){return F})),e.d(t,"Y",(function(){return G})),e.d(t,"c",(function(){return V})),e.d(t,"X",(function(){return Y})),e.d(t,"L",(function(){return K})),e.d(t,"N",(function(){return Q})),e.d(t,"O",(function(){return X})),e.d(t,"p",(function(){return nn})),e.d(t,"Q",(function(){return tn})),e.d(t,"B",(function(){return en}));var a=e(4),r=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},o=function(n){return btoa(unescape(encodeURIComponent(n)))},i=function(n){return n.toUpperCase()},c=function(n){return n.replaceAll(" ","-").toLowerCase()},l=new a.a(!1),s=new a.a(!1),d=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),g=new a.a(!1),h=new a.a(!1),x=new a.a(!1),w=new a.a(""),A=new a.a(!0),v=new a.a(!0),k=new a.a(!0),U=new a.a(!0),M=new a.a(!0),y=new a.a(!0),D=new a.a({}),O=new a.a(!1),P=0,E=new a.a(!1),N=new a.a(""),j=new a.a(""),C=new a.a(""),W=new a.a(""),S=new a.a(""),T=new a.a(""),_=new a.a(""),z=new a.a(""),I=new a.a(!1),L=new a.a(!1),H=new a.a(!1),Z=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){P++,O.next(!0)}),0)}),$=function(){setTimeout((function(){P>0&&P--,0==P&&O.next(!1)}),0)},q=function(){return O.asObservable()},R=function(n){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(n)},B=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},F=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},G=function(n){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(n)},V=function(n){return/^[0-9]*$/.test(n)},Y=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},K=function(n){if(n&&""!==n&&-1===n.indexOf("(")&&-1===n.indexOf(") ")&&-1===n.indexOf("-")){return"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length)}return n},Q=function(n){return n&&(n=n.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==n&&"0"!==n||(n=n.toFixed(2)),n},X=function(n,t){return n=n?Number(n):0,(0===(t=t?Number(t):0)||"0"===t?0:(n-t)/t*100).toFixed(2)},nn=function(n){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:n.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:n.selectedHeight,glass:n.selectedGlass,collection:n.selectedCollection,print:!0,baseUrl:"",gplacement:n.selectedWindowPlacement,width:n.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return n.selectedColor&&(t.color=n.selectedColor),n.colorHex&&(t.colorHex=n.colorHex),n.colorZone&&(t.colorZone=n.colorZone),n.selectedConstruction&&(t.model=n.selectedConstruction),n.selectedWindowDesign&&(t.top=n.selectedWindowDesign),n.glazepattern&&(t.glazepattern=n.glazepattern),n.selectedHardware&&(t.hardware=n.selectedHardware),t},tn=function(n,t,e){var a="",r=n.split(t);return r.forEach((function(n,t){"undefined"!==n&&n&&(a+=n,t!==r.length-1&&(a+=e))})),a};function en(n,t){var e=t||"html",a=n;return e||(e="html"),"html"==e&&(a=function(n){var t,e,a,i,c,d=n,p="";t=r(d,"<!--","-->",l,"W3HTMLCOMMENTPOS"),d=t.rest;for(;d.indexOf("<")>-1;)i="",e=d.indexOf("<"),"<STYLE"==d.substr(e,9).toUpperCase()&&(i="css"),"<SCRIPT"==d.substr(e,10).toUpperCase()&&(i="javascript"),-1==(a=d.indexOf(">",e))&&(a=d.length),p+=d.substring(0,e),p+=o(d.substring(e,a+4)),d=d.substr(a+4),"css"==i&&(a=d.indexOf("</style>"))>-1&&(p+=s(d.substring(0,a)),d=d.substr(a)),"javascript"==i&&(a=d.indexOf("</script>"))>-1&&(p+=m(d.substring(0,a)),d=d.substr(a));for(d=p+d,c=0;c<t.arr.length;c++)d=d.replace("W3HTMLCOMMENTPOS",t.arr[c]);return d}(a)),"css"==e&&(a=s(a)),"js"==e&&(a=m(a)),a;function r(n,t,e,a,r){for(var o,i,c="",l=[];n.search(t)>-1;)o=n.search(t),-1==(i=n.indexOf(e,o))&&(i=n.length),r?(l.push(a(n.substring(o,i+e.length))),n=n.substring(0,o)+r+n.substr(i+e.length)):(c+=n.substring(0,o),c+=a(n.substring(o,i+e.length)),n=n.substr(i+e.length));return{rest:c+n,arr:l}}function o(n){for(var t,e,a,r=n,o="";r.search(/(\s|<br>)/)>-1;)t=r.search(/(\s|<br>)/),-1==(e=r.indexOf(">"))&&(e=r.length),o+=r.substring(0,t),o+=i(r.substring(t,e)),r=r.substr(e);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(n){for(var t,e,a,r,o,i=n,l="";i.indexOf("=")>-1;)e=-1,t=i.indexOf("="),a=i.indexOf("'",t),r=i.indexOf('"',t),(o=i.indexOf(" ",t+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?e=i.indexOf(" ",t):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?e=i.indexOf('"',i.indexOf('"',t)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(e=i.indexOf("'",i.indexOf("'",t)+1)),(!e||-1==e||e<t)&&(e=i.length),l+=i.substring(0,t),l+=c(i.substring(t,e+1)),i=i.substr(e+1);return"<span style=color:green>"+l+i+"</span>"}function c(n){return"<span style=color:#1c8a9c>"+n+"</span>"}function l(n){return"<span style=color:green>"+n+"</span>"}function s(n){var t,e,a,o,i,c,s,p=n,u="";for(p=(a=r(p,/\/\*/,"*/",l,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(t=p.search("{"),i=p.substr(t+1),s=1,c=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(s++,c++),"}"==i.substr(o,1)&&s--,0!=s);o++);for(0!=s&&(c=0),e=t,o=0;o<=c;o++)e=p.indexOf("}",e+1);-1==e&&(e=p.length),u+=p.substring(0,t+1),u+=d(p.substring(t+1,e)),p=p.substr(e)}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 d(n){var t,e,a,r,o=n,i="";if(o.indexOf("{")>-1)return s(o);for(;o.search(":")>-1;){for(r=!0,a=t=o.search(":");1==r;)r=!1,e=o.indexOf(";",a)," "==o.substring(e-5,e+1)&&(r=!0,a=e+1);-1==e&&(e=o.length),i+=o.substring(0,t),i+=p(o.substring(t,e+1)),o=o.substr(e+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function p(n){var t,e=n,a="";for(e="<span style=color:grey>:</span>"+e.substring(1);e.search(/!important/i)>-1;)t=e.search(/!important/i),a+=e.substring(0,t),a+=u(e.substring(t,t+10)),e=e.substr(t+10);var r=a+e;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function u(n){return"<span style=color:red;font-weight:bold;>"+n+"</span>"}function m(n){var t,e,a,r,o,i,c,s,d,p,u=n,m="",U=[],M="";for(t=0;t<u.length;t++)"\\"==(e=u.substr(t,1))&&(U.push(u.substr(t,2)),e="W3JSESCAPE",t++),M+=e;for(u=M,1;a=v(u,"'","'",b),r=v(u,'"','"',b),o=v(u,/\/\*/,"*/",l),i=v(u,/\/\//,"<br>",l),s=k(u,g),c=A("js",u,f),p=x(u,h),-1!=Math.max(s[0],a[0],r[0],o[0],i[0],c[0],p[0])&&-1!=(d=w(s,a,r,o,i,c,p))[0];)d[0]>-1&&(m+=u.substring(0,d[0]),m+=d[2](u.substring(d[0],d[1])),u=u.substr(d[1]));for(u=m+u,t=0;t<U.length;t++)u=u.replace("W3JSESCAPE",U[t]);return"<span style=color:black>"+u+"</span>"}function b(n){return"<span style=color:brown>"+n+"</span>"}function f(n){return"<span style=color:mediumblue>"+n+"</span>"}function g(n){return"<span style=color:red>"+n+"</span>"}function h(n){return"<span style=color:black>"+n+"</span>"}function x(n,t){var e,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=n.indexOf("."))>-1)for(e=n.substr(o+1),r=0;r<e.length;r++){var c=e[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,t]}return[-1,-1,t]}function w(n,t,e,a,r,o,i){var c,l=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==l.length||arguments[c][0]<l[0])&&(l=arguments[c]);return 0==l.length&&(l=arguments[c]),l}function A(n,t,e){var a,r,o,i,c=-1,l=-1;for("js"==n&&(i=["abstract","arguments","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","NaN","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with","yield"]),a=0;a<i.length;a++)(r=t.indexOf(i[a]))>-1&&(o=/\W/g,t.substr(r+i[a].length,1).match(o)&&t.substr(r-1,1).match(o)&&r>-1&&(-1==c||r<c)&&(l=(c=r)+i[a].length));return[c,l,e]}function v(n,t,e,a){var r,o;return r=n.search(t),-1==(o=n.indexOf(e,r+e.length))&&(o=n.length),[r,o+e.length,a]}function k(n,t){var e,a,r,o,i,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],l=0;for(e=0;e<n.length;e++)for(a=0;a<c.length;a++)if((r=n.substr(e,c[a].length))==c[a]){if("-"==r&&("e"==n.substr(e-1,1)||"E"==n.substr(e-1,1)))continue;if(l<(o=e)&&(i=n.substring(l,o),!isNaN(i)))return[l,o,t];l=e+=c[a].length,e-=1;break}return[-1,-1,t]}}},26:function(n,t){n.exports=ReactDOM},28:function(n,t,e){"use strict";e.d(t,"a",(function(){return s}));var a=e(23),r=e(0),o=e.n(r),i=e(5),c=e(1),l=i.default.div.withConfig({displayName:"styles__View",componentId:"zfm3w6-0"})([".divider{width:100%;height:6px;@media screen and ","{height:8px;}@media screen and ","{height:10px;}}"],c.b.mediumDesktopMin,c.b.largeDesktopMin),s=function(n){return Object(a.a)(n),o.a.createElement(l,null,o.a.createElement("div",{className:"divider"},"\xa0"))}},384:function(n,t,e){"use strict";e.r(t);var a=e(20),r=e(61);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-button",useShadow:!1},plugins:[]})},61:function(n,t,e){"use strict";var a=e(0),r=e.n(a),o=e(7),i=e(2),c=e(28),l=e(12),s=e.n(l),d={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=e(11),u=e(5),m=e(1);function b(){var n=Object(p.a)(["\n \n .button-container-style{\n display:flex;\n flex-wrap: wrap;\n // row-gap: 20px;\n // gap: 20px;\n \n &.text-left-alignment{\n justify-content: left;\n }\n \n &.text-right-alignment{\n justify-content: center;\n }\n \n &.text-center-alignment{\n justify-content: center;\n }\n }\n \n .button-container-style-block{\n @media screen and "," {\n display:flex;\n flex-direction: column;\n }\n }\n //not needed all center button alignment looks weird bcoz of this, this was added for multiple buttons gave a gap property to handle that\n // .button-style{\n // margin-right: 1.3rem;\n // }\n .mobile-margin{\n &.text-left-alignment{\n justify-content: left;\n }\n \n &.text-right-alignment{\n justify-content: center;\n }\n \n &.text-center-alignment{\n justify-content: center;\n }\n @media screen and "," {\n margin-left:0;\n /* margin-top:1rem */\n }\n }\n .button-container-style > * {\n margin: 20px 0 0 0px;\n } \n .button-container-style {\n margin: -20px 0 0 0px;\n }\n .mobile-margin:not(:last-child){\n @media screen and ","{\n margin-right: 25px;\n }\n @media screen and ","{\n margin-right: 20px;\n }\n }\n \n .quick-links{\n border: solid 1px var(--border-color);\n border-radius: var(--border-radius);\n padding: 0px 16px 18px;\n margin-top: 10px;\n // row-gap: 16px;\n .mobile-margin:not(:last-child){\n margin-right: 20px;\n @media screen and ","{\n margin-right: 25px;\n }\n @media screen and ","{\n margin-right: 0px;\n }\n }\n .mobile-margin:nth-child(odd){\n @media screen and ","{\n padding-right: 20px;\n }\n }\n }\n @media screen and ","{\n .button-auto-height{\n button.btn {\n height: min-content;\n white-space: break-spaces;\n text-align: left;\n }\n }\n }\n @media screen and ","{\n .button-container-style.quick-links{\n flex-wrap: wrap;\n .mobile-margin{\n flex: 0 0 50%;\n max-width: calc(50% - 20px);\n }\n }\n }\n @media screen and ","{\n .quick-links{\n padding: 0px 18px 16px 18px;\n margin-top: 10px;\n }\n .quick-links.button-container-style > * {\n margin: 18px 0px 0px;\n }\n }\n "]);return b=function(){return n},n}var f=u.default.div.withConfig({displayName:"styles__Content",componentId:"sc-1ulpkx4-0"})(["",""],(function(n){var t;(null===(t=n.gradients)||void 0===t?void 0:t.visible)?n.theme.gradient:n.theme;return Object(u.css)(b(),m.b.mobileMax,m.b.mobileMax,m.b.largeDesktopMin,m.b.mediumDesktopAndUp3Max,m.b.largeDesktopMin,m.b.mobileMax,m.b.mobileMax,m.b.tabletPortraitMax,m.b.tabletPortraitMax,m.b.desktopMax2)})),g=e(8),h=e(9),x=e(10),w={alignment:"",mobileAlignment:"",ctaItems:[{label:"",url:"",linkAction:"",color:"",alignment:"",isInternal:!0}],topMargin:"",bottomMargin:"",addBorder:!1,addContainer:!1},A=function(n){var t=s()({},w,Object(i.g)(n.content));return r.a.createElement(g.a,{setter:{componentThemes:d,selectedTheme:n.theme}},r.a.createElement(h.a,null,r.a.createElement(x.a,{padding:!1},r.a.createElement(f,{isReversed:!1},"default"!==t.topMargin&&!t.addBorder&&r.a.createElement("span",null,r.a.createElement(c.a,null)),r.a.createElement("div",{className:"".concat(t.addBorder&&t.addContainer&&"inner-container")},r.a.createElement("div",{className:"button-container-style inner-container mb-4\n ".concat("left"===t.alignment&&"text-left-alignment"," ").concat("right"===t.alignment&&"text-right-alignment"," ").concat("center"===t.alignment&&"text-center-alignment","\n ").concat("block"===t.mobileAlignment&&"button-container-style-block","\n ").concat("medium"===t.topMargin&&"mt-1 mt-sm-2","\n ").concat("extra"===t.topMargin&&"mt-2 mt-sm-4","\n ").concat("medium"===t.bottomMargin&&"mb-4 mb-sm-5","\n ").concat("extra"===t.bottomMargin&&"mb-5 pb-2","\n ").concat(t.addBorder&&"quick-links","\n ")},t.ctaItems&&t.ctaItems.map((function(n,t,e){return r.a.createElement("div",{key:t,className:"".concat(n.label.length>25&&"button-auto-height"," mobile-margin")},"tertiary"!==n.color&&"noTheme"!==n.color&&r.a.createElement(o.a,{label:Object(i.i)(n.label),link:!0,linkHref:n.url,target:n.linkAction,inverse:"inverse"===n.color}),"tertiary"===n.color&&n.isInternal&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction}),"tertiary"===n.color&&!n.isInternal&&"_self"===n.cta.linkAction&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction}),"tertiary"===n.color&&n.isInternal&&"_blank"===n.cta.linkAction&&r.a.createElement("a",{href:n.cta.url,target:n.cta.linkAction,rel:"noopener"}),"noTheme"===n.color&&n.isInternal&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction},n.label),"noTheme"===n.color&&!n.isInternal&&"_self"===n.linkAction&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction},n.label),"noTheme"===n.color&&!n.isInternal&&"_blank"===n.linkAction&&r.a.createElement("a",{className:"amarrHighlight",href:n.url,target:n.linkAction,rel:"noopener"},n.label))})))),"extra"===t.bottomMargin&&r.a.createElement(c.a,null)))))};A.defaultProps={theme:"",content:""};t.a=A},7:function(n,t,e){"use strict";e.d(t,"a",(function(){return u}));var a=e(30),r=e(0),o=e.n(r),i=e(5),c=e(1),l=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),s=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),d=e(25),p=e(24),u=function(n){var t=n.label,e=void 0===t?"label":t,r=n.classStyle,i=void 0===r?"default":r,c=n.link,u=void 0!==c&&c,m=n.disabled,b=void 0!==m&&m,f=n.datatoggle,g=void 0===f?"":f,h=n.datatarget,x=void 0===h?"":h,w=n.linkHref,A=n.target,v=void 0===A?"_self":A,k=n.downloadLink,U=void 0!==k&&k,M=n.inverse,y=void 0!==M&&M,D=n.icon,O=void 0===D?"":D,P=n.iconAlt,E=void 0===P?"":P,N=n.dataItemName,j=void 0===N?"":N,C=n.id,W=void 0===C?"":C,S=n.type,T=void 0===S?"button":S,_=n.showDisabledMessage,z=void 0===_?"":_,I=n.ariaLabel,L=void 0===I?"":I,H=Object(a.a)(n,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(l,null,o.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},u?o.a.createElement("a",{href:w,download:U,target:v,"data-item-name":j,id:W,"aria-label":L},o.a.createElement(s,Object.assign({role:"none",disabled:b,classStyle:"".concat(i)},H,{type:T,className:y?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?o.a.createElement("div",{"data-toggle":g,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:E}),o.a.createElement("span",null,e)):o.a.createElement("span",null,e))):o.a.createElement(s,Object.assign({disabled:b,classStyle:i,className:y?"btn-inverse btn btn-success":"btn btn-success",id:W,"data-item-name":j,type:T},H),o.a.createElement("span",null,e)),b&&z&&o.a.createElement(d.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(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var a=e(5),r=e(0),o=e.n(r),i=function(n){var t=n.setter,e=t.componentThemes,r=t.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return e.theme1;var n=r.match(/\d+/g).map(Number),t=Object.keys(e).find((function(t){return!(!Array.isArray(n)||1!==n.length)&&(t.includes(n[0])&&e[t])}));return t?e["".concat(t)]:e.theme1}},n.children)}},9:function(n,t,e){"use strict";var a=e(0),r=e.n(a),o=e(5),i=e(21),c=Object(a.createContext)({});t.a=function(n){var t=!1;try{var e;t=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(l){console.log(l)}var a=t?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:t}},n.children))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-button",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Web component - Button",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "button.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
|
|
15
15
|
}
|