@assaabloy/amarr-wc-image-gallery 3.0.1 → 3.0.4
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/imageGallery.js +1 -1
- package/package.json +2 -2
package/imageGallery.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function n(n){for(var a,i,d=n[0],c=n[1],l=n[2],s=0,m=[];s<d.length;s++)i=d[s],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(p&&p(n);m.length;)m.shift()();return r.push.apply(r,l||[]),e()}function e(){for(var t,n=0;n<r.length;n++){for(var e=r[n],a=!0,d=1;d<e.length;d++){var c=e[d];0!==o[c]&&(a=!1)}a&&(r.splice(n--,1),t=i(i.s=e[0]))}return t}var a={},o={53:0},r=[];function i(n){if(a[n])return a[n].exports;var e=a[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=t,i.c=a,i.d=function(t,n,e){i.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},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,n){if(1&n&&(t=i(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)i.d(e,a,function(n){return t[n]}.bind(null,a));return e},i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,"a",n),n},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var p=c;r.push([847,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"a",(function(){return a})),e.d(n,"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)")}},115:function(t,n,e){"use strict";var a=e(3),o=e(0),r=e.n(o),i=e(2),d=e(6),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 t=Object(s.a)(["\n .image-container{\n display: flex;\n gap: 30px;\n margin-bottom: 30px;\n width: 100%;\n span{\n flex-grow: 1;\n width: 33%;\n }\n }\n \n .cta-image-count{\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n \n @media screen and ","{\n .image-gallery-main {\n margin: 0;\n .image-container {\n padding: 0 20px;\n flex-flow: column nowrap;\n row-gap: 10px;\n column-gap: 0;\n margin-bottom: 10px;\n text-align: var(--text-center);\n span{\n width: 100%;\n }\n }\n }\n }\n \n @media screen and "," {\n .image-container{\n img {\n width: 100%;\n }\n }\n }\n \n .dealer-microsite-page {\n .image-container {\n img {\n \n @media screen and "," {\n height: 400px;\n }\n \n @media screen and "," and "," {\n height: 320px;\n }\n \n @media screen and "," and "," {\n height: 260px;\n }\n \n @media screen and "," and "," {\n height: 220px;\n }\n \n @media screen and "," and "," {\n height: 160px;\n }\n \n }\n }\n }\n "]);return x=function(){return t},t}var b=m.default.div.withConfig({displayName:"styles__Content",componentId:"sc-3tt4s2-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(m.css)(x(),u.b.mobileMax,u.b.tabletPortraitAndUp,u.b.largeDesktopMin,u.b.mediumDesktopMin,u.b.mediumDesktopAndUp3Max,u.b.desktopMin,u.b.smallDesktopAndUp2Max,u.b.largeMobileMin,u.b.desktopAndUpMax,u.b.largeMobileAndUp,u.b.tabletPortraitAndUpMax)})),f=e(7),h=e(8),g=e(9),w={imageCount:0,imageItems:[{url:"",altText:""}],cta:{label:""}},A=function(t){for(var n=l()({},w,Object(i.g)(t.content)),e=n.imageItems.slice(0,n.imageCount),c=[],s=0;s<e.length/3;s++){for(var m=[],u=0;u<3;u++)m.push(e[3*s+u]);c.push(m)}var x=Object(o.useState)(c),A=Object(a.a)(x,2),U=A[0],v=A[1],k=Object(o.useState)(n.imageItems.length>9&&!0),M=Object(a.a)(k,2),D=M[0],y=M[1];return r.a.createElement(f.a,{setter:{componentThemes:p,selectedTheme:t.theme}},r.a.createElement(h.a,null,r.a.createElement(g.a,null,r.a.createElement(b,{isReversed:!1},r.a.createElement("section",{className:"container dealer-col"},r.a.createElement("div",{className:"row image-gallery-main"},U.map((function(t,n){return r.a.createElement("div",{key:n,className:"image-container"},t&&(null===t||void 0===t?void 0:t.map((function(t,n){return r.a.createElement("span",{key:n},r.a.createElement("img",{loading:"lazy",src:null===t||void 0===t?void 0:t.url,alt:null===t||void 0===t?void 0:t.altText}))}))))}))),D&&r.a.createElement("div",{className:"cta-image-count"},r.a.createElement(d.a,{label:n.cta.label,link:!0,inverse:!1,onClick:function(){for(var t,e=0,a=0;a<U.length;a++)e+=U[a].length;(t=e+n.imageCount)>=n.imageItems.length&&(t=n.imageItems.length,y(!1));var o=[];n.imageItems.slice(0,t).forEach((function(t,n){o[n]=t}));for(var r=[],i=0;i<o.length/3;i++){for(var d=[],c=0;c<3;c++)d.push(o[3*i+c]);r.push(d)}v(r)}})))))))};A.defaultProps={theme:"",content:""};n.a=A},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return i})),e.d(n,"U",(function(){return d})),e.d(n,"i",(function(){return c})),e.d(n,"D",(function(){return l})),e.d(n,"G",(function(){return p})),e.d(n,"v",(function(){return s})),e.d(n,"B",(function(){return m})),e.d(n,"o",(function(){return u})),e.d(n,"r",(function(){return x})),e.d(n,"I",(function(){return b})),e.d(n,"H",(function(){return f})),e.d(n,"P",(function(){return h})),e.d(n,"E",(function(){return g})),e.d(n,"u",(function(){return w})),e.d(n,"h",(function(){return A})),e.d(n,"t",(function(){return U})),e.d(n,"y",(function(){return v})),e.d(n,"w",(function(){return k})),e.d(n,"C",(function(){return M})),e.d(n,"s",(function(){return D})),e.d(n,"Q",(function(){return y})),e.d(n,"q",(function(){return P})),e.d(n,"J",(function(){return O})),e.d(n,"F",(function(){return N})),e.d(n,"R",(function(){return W})),e.d(n,"m",(function(){return C})),e.d(n,"j",(function(){return z})),e.d(n,"n",(function(){return _})),e.d(n,"k",(function(){return S})),e.d(n,"l",(function(){return I})),e.d(n,"z",(function(){return L})),e.d(n,"L",(function(){return T})),e.d(n,"x",(function(){return Z})),e.d(n,"S",(function(){return $})),e.d(n,"T",(function(){return H})),e.d(n,"b",(function(){return J})),e.d(n,"O",(function(){return G})),e.d(n,"A",(function(){return q})),e.d(n,"a",(function(){return B})),e.d(n,"d",(function(){return V})),e.d(n,"f",(function(){return K})),e.d(n,"e",(function(){return Q})),e.d(n,"W",(function(){return X})),e.d(n,"c",(function(){return Y})),e.d(n,"V",(function(){return tt})),e.d(n,"K",(function(){return nt})),e.d(n,"M",(function(){return et})),e.d(n,"N",(function(){return at})),e.d(n,"p",(function(){return ot}));var a=e(3),o=e(0),r=e(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()},p=new r.a(!1),s=new r.a(!1),m=new r.a(!1),u=new r.a(!1),x=new r.a(""),b=new r.a(!1),f=new r.a(!1),h=new r.a(!1),g=new r.a(!1),w=new r.a(!1),A=new r.a(!1),U=new r.a(""),v=new r.a(!0),k=new r.a(!0),M=new r.a(!0),D=new r.a(!0),y=new r.a(!0),P=new r.a(!0),O=new r.a({}),E=new r.a(!1),j=0,N=new r.a(!1),W=new r.a(""),C=new r.a(""),z=new r.a(""),_=new r.a(""),S=new r.a(""),I=new r.a(""),L=new r.a(""),T=new r.a(""),Z=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(){j++,E.next(!0)}),0)}),G=function(){setTimeout((function(){j>0&&j--,0==j&&E.next(!1)}),0)},q=function(){return E.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)},nt=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},et=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,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},ot=function(t){var n={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&&(n.color=t.selectedColor),t.colorHex&&(n.colorHex=t.colorHex),t.colorZone&&(n.colorZone=t.colorZone),t.selectedConstruction&&(n.model=t.selectedConstruction),t.selectedWindowDesign&&(n.top=t.selectedWindowDesign),t.glazepattern&&(n.glazepattern=t.glazepattern),t.selectedHardware&&(n.hardware=t.selectedHardware),n}},26:function(t,n){t.exports=ReactDOM},6:function(t,n,e){"use strict";e.d(n,"a",(function(){return m}));var a=e(29),o=e(0),r=e.n(o),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(t){var n=t.label,e=void 0===n?"label":n,o=t.classStyle,i=void 0===o?"default":o,d=t.link,m=void 0!==d&&d,u=t.disabled,x=void 0!==u&&u,b=t.datatoggle,f=void 0===b?"":b,h=t.datatarget,g=void 0===h?"":h,w=t.linkHref,A=t.target,U=void 0===A?"_self":A,v=t.downloadLink,k=void 0!==v&&v,M=t.inverse,D=void 0!==M&&M,y=t.icon,P=void 0===y?"":y,O=t.iconAlt,E=void 0===O?"":O,j=t.dataItemName,N=void 0===j?"":j,W=t.id,C=void 0===W?"":W,z=t.type,_=void 0===z?"button":z,S=t.showDisabledMessage,I=void 0===S?"":S,L=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(x&&I&&"disabled-button-parent")},m?r.a.createElement("a",{href:w,download:k,target:U,"data-item-name":N,id:C},r.a.createElement(l,Object.assign({disabled:x,classStyle:"".concat(i)},L,{type:_,className:D?"btn-inverse btn btn-success":"btn btn-success"}),""!=P?r.a.createElement("div",{"data-toggle":f,"data-target":g},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:P,alt:E}),r.a.createElement("span",null,e)):r.a.createElement("span",null,e))):r.a.createElement(l,Object.assign({disabled:x,classStyle:i,className:D?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":N,type:_},L),r.a.createElement("span",null,e)),x&&I&&r.a.createElement(p.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(s.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},I))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(5),o=e(0),r=e.n(o),i=function(t){var n=t.setter,e=n.componentThemes,o=n.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!o)return e.theme1;var t=o.match(/\d+/g).map(Number),n=Object.keys(e).find((function(n){return!(!Array.isArray(t)||1!==t.length)&&(n.includes(t[0])&&e[n])}));return n?e["".concat(n)]:e.theme1}},t.children)}},755:function(t,n,e){"use strict";e.r(n);var a=e(21),o=e(115);n.default=a.a.create({component:o.a,configuration:{tagname:"amarr-imagegallery",useShadow:!1},plugins:[]})},8:function(t,n,e){"use strict";var a=e(0),o=e.n(a),r=e(5),i=e(20),d=e.n(i),c=Object(a.createContext)({});n.a=function(t){var n=!1;try{var e;n=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(i){console.log(i)}var a=n?[d.a]:[];return o.a.createElement(r.StyleSheetManager,{stylisPlugins:a},o.a.createElement(c.Provider,{value:{rtl:n}},t.children))}},9:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(0),o=e.n(a),r=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(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 n=t.className,e=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:n,maxWidth:i,padding:c},e)}}});
|
|
1
|
+
!function(t){function n(n){for(var a,i,d=n[0],c=n[1],l=n[2],s=0,m=[];s<d.length;s++)i=d[s],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(p&&p(n);m.length;)m.shift()();return r.push.apply(r,l||[]),e()}function e(){for(var t,n=0;n<r.length;n++){for(var e=r[n],a=!0,d=1;d<e.length;d++){var c=e[d];0!==o[c]&&(a=!1)}a&&(r.splice(n--,1),t=i(i.s=e[0]))}return t}var a={},o={55:0},r=[];function i(n){if(a[n])return a[n].exports;var e=a[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=t,i.c=a,i.d=function(t,n,e){i.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},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,n){if(1&n&&(t=i(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)i.d(e,a,function(n){return t[n]}.bind(null,a));return e},i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,"a",n),n},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var p=c;r.push([851,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"a",(function(){return a})),e.d(n,"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)")}},115:function(t,n,e){"use strict";var a=e(3),o=e(0),r=e.n(o),i=e(2),d=e(6),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 t=Object(s.a)(["\n .image-container{\n display: flex;\n gap: 30px;\n margin-bottom: 30px;\n width: 100%;\n span{\n flex-grow: 1;\n width: 33%;\n }\n }\n \n .cta-image-count{\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n \n @media screen and ","{\n .image-gallery-main {\n margin: 0;\n .image-container {\n padding: 0 20px;\n flex-flow: column nowrap;\n row-gap: 10px;\n column-gap: 0;\n margin-bottom: 10px;\n text-align: var(--text-center);\n span{\n width: 100%;\n }\n }\n }\n }\n \n @media screen and "," {\n .image-container{\n img {\n width: 100%;\n }\n }\n }\n \n .dealer-microsite-page {\n .image-container {\n img {\n \n @media screen and "," {\n height: 400px;\n }\n \n @media screen and "," and "," {\n height: 320px;\n }\n \n @media screen and "," and "," {\n height: 260px;\n }\n \n @media screen and "," and "," {\n height: 220px;\n }\n \n @media screen and "," and "," {\n height: 160px;\n }\n \n }\n }\n }\n "]);return x=function(){return t},t}var b=m.default.div.withConfig({displayName:"styles__Content",componentId:"sc-3tt4s2-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(m.css)(x(),u.b.mobileMax,u.b.tabletPortraitAndUp,u.b.largeDesktopMin,u.b.mediumDesktopMin,u.b.mediumDesktopAndUp3Max,u.b.desktopMin,u.b.smallDesktopAndUp2Max,u.b.largeMobileMin,u.b.desktopAndUpMax,u.b.largeMobileAndUp,u.b.tabletPortraitAndUpMax)})),f=e(7),h=e(8),g=e(9),w={imageCount:0,imageItems:[{url:"",altText:""}],cta:{label:""}},A=function(t){for(var n=l()({},w,Object(i.g)(t.content)),e=n.imageItems.slice(0,n.imageCount),c=[],s=0;s<e.length/3;s++){for(var m=[],u=0;u<3;u++)m.push(e[3*s+u]);c.push(m)}var x=Object(o.useState)(c),A=Object(a.a)(x,2),U=A[0],v=A[1],k=Object(o.useState)(n.imageItems.length>9&&!0),M=Object(a.a)(k,2),D=M[0],y=M[1];return r.a.createElement(f.a,{setter:{componentThemes:p,selectedTheme:t.theme}},r.a.createElement(h.a,null,r.a.createElement(g.a,null,r.a.createElement(b,{isReversed:!1},r.a.createElement("section",{className:"container dealer-col"},r.a.createElement("div",{className:"row image-gallery-main"},U.map((function(t,n){return r.a.createElement("div",{key:n,className:"image-container"},t&&(null===t||void 0===t?void 0:t.map((function(t,n){return r.a.createElement("span",{key:n},r.a.createElement("img",{loading:"lazy",src:null===t||void 0===t?void 0:t.url,alt:null===t||void 0===t?void 0:t.altText}))}))))}))),D&&r.a.createElement("div",{className:"cta-image-count"},r.a.createElement(d.a,{label:n.cta.label,link:!0,inverse:!1,onClick:function(){for(var t,e=0,a=0;a<U.length;a++)e+=U[a].length;(t=e+n.imageCount)>=n.imageItems.length&&(t=n.imageItems.length,y(!1));var o=[];n.imageItems.slice(0,t).forEach((function(t,n){o[n]=t}));for(var r=[],i=0;i<o.length/3;i++){for(var d=[],c=0;c<3;c++)d.push(o[3*i+c]);r.push(d)}v(r)}})))))))};A.defaultProps={theme:"",content:""};n.a=A},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return o})),e.d(n,"U",(function(){return r})),e.d(n,"i",(function(){return i})),e.d(n,"D",(function(){return d})),e.d(n,"G",(function(){return c})),e.d(n,"v",(function(){return l})),e.d(n,"B",(function(){return p})),e.d(n,"o",(function(){return s})),e.d(n,"r",(function(){return m})),e.d(n,"I",(function(){return u})),e.d(n,"H",(function(){return x})),e.d(n,"P",(function(){return b})),e.d(n,"E",(function(){return f})),e.d(n,"u",(function(){return h})),e.d(n,"h",(function(){return g})),e.d(n,"t",(function(){return w})),e.d(n,"y",(function(){return A})),e.d(n,"w",(function(){return U})),e.d(n,"C",(function(){return v})),e.d(n,"s",(function(){return k})),e.d(n,"Q",(function(){return M})),e.d(n,"q",(function(){return D})),e.d(n,"J",(function(){return y})),e.d(n,"F",(function(){return O})),e.d(n,"R",(function(){return j})),e.d(n,"m",(function(){return N})),e.d(n,"j",(function(){return W})),e.d(n,"n",(function(){return C})),e.d(n,"k",(function(){return z})),e.d(n,"l",(function(){return _})),e.d(n,"z",(function(){return S})),e.d(n,"L",(function(){return I})),e.d(n,"x",(function(){return L})),e.d(n,"S",(function(){return T})),e.d(n,"T",(function(){return Z})),e.d(n,"b",(function(){return $})),e.d(n,"O",(function(){return H})),e.d(n,"A",(function(){return R})),e.d(n,"a",(function(){return F})),e.d(n,"d",(function(){return J})),e.d(n,"f",(function(){return G})),e.d(n,"e",(function(){return q})),e.d(n,"W",(function(){return B})),e.d(n,"c",(function(){return V})),e.d(n,"V",(function(){return K})),e.d(n,"K",(function(){return Q})),e.d(n,"M",(function(){return X})),e.d(n,"N",(function(){return Y})),e.d(n,"p",(function(){return tt}));var a=e(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),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),U=new a.a(!0),v=new a.a(!0),k=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,O=new a.a(!1),j=new a.a(""),N=new a.a(""),W=new a.a(""),C=new a.a(""),z=new a.a(""),_=new a.a(""),S=new a.a(""),I=new a.a(""),L=new a.a(!1),T=new a.a(!1),Z=new a.a(!1),$=(new a.a(!1),function(){setTimeout((function(){E++,P.next(!0)}),0)}),H=function(){setTimeout((function(){E>0&&E--,0==E&&P.next(!1)}),0)},R=function(){return P.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,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},tt=function(t){var n={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&&(n.color=t.selectedColor),t.colorHex&&(n.colorHex=t.colorHex),t.colorZone&&(n.colorZone=t.colorZone),t.selectedConstruction&&(n.model=t.selectedConstruction),t.selectedWindowDesign&&(n.top=t.selectedWindowDesign),t.glazepattern&&(n.glazepattern=t.glazepattern),t.selectedHardware&&(n.hardware=t.selectedHardware),n}},26:function(t,n){t.exports=ReactDOM},6:function(t,n,e){"use strict";e.d(n,"a",(function(){return m}));var a=e(29),o=e(0),r=e.n(o),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(t){var n=t.label,e=void 0===n?"label":n,o=t.classStyle,i=void 0===o?"default":o,d=t.link,m=void 0!==d&&d,u=t.disabled,x=void 0!==u&&u,b=t.datatoggle,f=void 0===b?"":b,h=t.datatarget,g=void 0===h?"":h,w=t.linkHref,A=t.target,U=void 0===A?"_self":A,v=t.downloadLink,k=void 0!==v&&v,M=t.inverse,D=void 0!==M&&M,y=t.icon,P=void 0===y?"":y,E=t.iconAlt,O=void 0===E?"":E,j=t.dataItemName,N=void 0===j?"":j,W=t.id,C=void 0===W?"":W,z=t.type,_=void 0===z?"button":z,S=t.showDisabledMessage,I=void 0===S?"":S,L=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(x&&I&&"disabled-button-parent")},m?r.a.createElement("a",{href:w,download:k,target:U,"data-item-name":N,id:C},r.a.createElement(l,Object.assign({disabled:x,classStyle:"".concat(i)},L,{type:_,className:D?"btn-inverse btn btn-success":"btn btn-success"}),""!=P?r.a.createElement("div",{"data-toggle":f,"data-target":g},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:P,alt:O}),r.a.createElement("span",null,e)):r.a.createElement("span",null,e))):r.a.createElement(l,Object.assign({disabled:x,classStyle:i,className:D?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":N,type:_},L),r.a.createElement("span",null,e)),x&&I&&r.a.createElement(p.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(s.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},I))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(5),o=e(0),r=e.n(o),i=function(t){var n=t.setter,e=n.componentThemes,o=n.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!o)return e.theme1;var t=o.match(/\d+/g).map(Number),n=Object.keys(e).find((function(n){return!(!Array.isArray(t)||1!==t.length)&&(n.includes(t[0])&&e[n])}));return n?e["".concat(n)]:e.theme1}},t.children)}},755:function(t,n,e){"use strict";e.r(n);var a=e(20),o=e(115);n.default=a.a.create({component:o.a,configuration:{tagname:"amarr-imagegallery",useShadow:!1},plugins:[]})},8:function(t,n,e){"use strict";var a=e(0),o=e.n(a),r=e(5),i=e(19),d=e.n(i),c=Object(a.createContext)({});n.a=function(t){var n=!1;try{var e;n=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(i){console.log(i)}var a=n?[d.a]:[];return o.a.createElement(r.StyleSheetManager,{stylisPlugins:a},o.a.createElement(c.Provider,{value:{rtl:n}},t.children))}},9:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(0),o=e.n(a),r=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(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 n=t.className,e=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:n,maxWidth:i,padding:c},e)}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-image-gallery",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Web component - Image Gallery",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "imageGallery.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "af00033930c3cf2a3178119560fd703131426031"
|
|
15
15
|
}
|