@assaabloy/amarr-wc-image-text 3.0.2 → 3.0.5
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/imageText.js +1 -1
- package/package.json +2 -2
package/imageText.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function n(n){for(var a,r,d=n[0],c=n[1],p=n[2],m=0,u=[];m<d.length;m++)r=d[m],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&u.push(i[r][0]),i[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);for(l&&l(n);u.length;)u.shift()();return o.push.apply(o,p||[]),e()}function e(){for(var t,n=0;n<o.length;n++){for(var e=o[n],a=!0,d=1;d<e.length;d++){var c=e[d];0!==i[c]&&(a=!1)}a&&(o.splice(n--,1),t=r(r.s=e[0]))}return t}var a={},i={55:0},o=[];function r(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,r),e.l=!0,e.exports}r.m=t,r.c=a,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)r.d(e,a,function(n){return t[n]}.bind(null,a));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var p=0;p<d.length;p++)n(d[p]);var l=c;o.push([849,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 i}));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},i={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)")}},122:function(t,n,e){"use strict";var a=e(0),i=e.n(a),o=e(2),r=e(12),d=e.n(r),c={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=e(11),l=e(5),m=e(1);function u(){var t=Object(p.a)(["\n .image-text-container {\n display: flex;\n align-items: center;\n // gap: 30px;\n padding-bottom: 17px;\n .text-container {\n max-width: 73.5%;\n }\n p{\n margin-bottom: 0px;\n }\n }\n .margin{\n margin-right: 30px;\n }\n @media "," and "," {\n .img-container {\n max-width: 14%;\n }\n }\n \n @media screen and ","{\n .margin{\n padding-bottom: 10px;\n margin-right: 0px;\n margin-left: 0px;\n }\n .image-text-container {\n display: block;\n .text-container {\n max-width: 100%;\n }\n }\n .image-text-container-mobile-inline{\n display: flex;\n .text-container{\n width: 80%;\n }\n .margin{\n margin-right: 16px;\n padding-bottom: 0px;\n }\n }\n }\n "]);return u=function(){return t},t}var s=l.default.div.withConfig({displayName:"styles__Content",componentId:"sc-136boz5-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(l.css)(u(),m.b.desktopAndUp,m.b.mediumDesktopAndUp4Max,m.b.mobileMax)})),x=e(7),h=e(8),A=e(9),f={header:{text:""},body:{text:""},textOrientation:"",mobileAlignment:"",image:{url:"",altText:""}},w=function(t){var n=d()({},f,Object(o.g)(t.content));return i.a.createElement(x.a,{setter:{componentThemes:c,selectedTheme:t.theme}},i.a.createElement(h.a,null,i.a.createElement(A.a,null,i.a.createElement(s,{isReversed:!1},"right"===n.textOrientation&&i.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},i.a.createElement("div",{className:"img-container margin"},i.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})),i.a.createElement("div",{className:"text-container"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}}))),"left"===n.textOrientation&&i.a.createElement("div",{className:"image-text-container ".concat("inline"===n.mobileAlignment&&"image-text-container-mobile-inline","\n ")},i.a.createElement("div",{className:"text-container margin"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:n.body.text}})),i.a.createElement("div",null,i.a.createElement("img",{loading:"lazy",src:n.image.url,alt:n.image.altText})))))))};w.defaultProps={theme:"",content:""};n.a=w},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return i})),e.d(n,"U",(function(){return o})),e.d(n,"i",(function(){return r})),e.d(n,"D",(function(){return d})),e.d(n,"G",(function(){return c})),e.d(n,"v",(function(){return p})),e.d(n,"B",(function(){return l})),e.d(n,"o",(function(){return m})),e.d(n,"r",(function(){return u})),e.d(n,"I",(function(){return s})),e.d(n,"H",(function(){return x})),e.d(n,"P",(function(){return h})),e.d(n,"E",(function(){return A})),e.d(n,"u",(function(){return f})),e.d(n,"h",(function(){return w})),e.d(n,"t",(function(){return U})),e.d(n,"y",(function(){return b})),e.d(n,"w",(function(){return g})),e.d(n,"C",(function(){return k})),e.d(n,"s",(function(){return M})),e.d(n,"Q",(function(){return D})),e.d(n,"q",(function(){return v})),e.d(n,"J",(function(){return P})),e.d(n,"F",(function(){return W})),e.d(n,"R",(function(){return E})),e.d(n,"m",(function(){return z})),e.d(n,"j",(function(){return _})),e.d(n,"n",(function(){return j})),e.d(n,"k",(function(){return C})),e.d(n,"l",(function(){return N})),e.d(n,"z",(function(){return T})),e.d(n,"L",(function(){return L})),e.d(n,"x",(function(){return S})),e.d(n,"S",(function(){return Z})),e.d(n,"T",(function(){return $})),e.d(n,"b",(function(){return H})),e.d(n,"O",(function(){return I})),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 K})),e.d(n,"V",(function(){return Q})),e.d(n,"K",(function(){return V})),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),i=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},r=function(t){return t.toUpperCase()},d=function(t){return t.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),p=new a.a(!1),l=new a.a(!1),m=new a.a(!1),u=new a.a(""),s=new a.a(!1),x=new a.a(!1),h=new a.a(!1),A=new a.a(!1),f=new a.a(!1),w=new a.a(!1),U=new a.a(""),b=new a.a(!0),g=new a.a(!0),k=new a.a(!0),M=new a.a(!0),D=new a.a(!0),v=new a.a(!0),P=new a.a({}),y=new a.a(!1),O=0,W=new a.a(!1),E=new a.a(""),z=new a.a(""),_=new a.a(""),j=new a.a(""),C=new a.a(""),N=new a.a(""),T=new a.a(""),L=new a.a(""),S=new a.a(!1),Z=new a.a(!1),$=new a.a(!1),H=function(){setTimeout((function(){O++,y.next(!0)}),0)},I=function(){setTimeout((function(){O>0&&O--,0==O&&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)},K=function(t){return/^[0-9]*$/.test(t)},Q=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},V=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},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var a=e(5),i=e(0),o=e.n(i),r=function(t){var n=t.setter,e=n.componentThemes,i=n.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return e.theme1;var t=i.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)}},757:function(t,n,e){"use strict";e.r(n);var a=e(21),i=e(122);n.default=a.a.create({component:i.a,configuration:{tagname:"amarr-imagetext",useShadow:!1},plugins:[]})},8:function(t,n,e){"use strict";var a=e(0),i=e.n(a),o=e(5),r=e(20),d=e.n(r),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(r){console.log(r)}var a=n?[d.a]:[];return i.a.createElement(o.StyleSheetManager,{stylisPlugins:a},i.a.createElement(c.Provider,{value:{rtl:n}},t.children))}},9:function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var a=e(0),i=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(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));"})),r=function(t){var n=t.className,e=t.children,a=t.maxWidth,r=void 0===a?1520:a,d=t.padding,c=void 0===d||d;return i.a.createElement(o,{className:n,maxWidth:r,padding:c},e)}}});
|
|
1
|
+
!function(n){function e(e){for(var r,a,u=e[0],c=e[1],d=e[2],f=0,s=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(n[r]=c[r]);for(l&&l(e);s.length;)s.shift()();return i.push.apply(i,d||[]),t()}function t(){for(var n,e=0;e<i.length;e++){for(var t=i[e],r=!0,u=1;u<t.length;u++){var c=t[u];0!==o[c]&&(r=!1)}r&&(i.splice(e--,1),n=a(a.s=t[0]))}return n}var r={},o={56:0},i=[];function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=n,a.c=r,a.d=function(n,e,t){a.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},a.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},a.t=function(n,e){if(1&e&&(n=a(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)a.d(t,r,function(e){return n[e]}.bind(null,r));return t},a.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(e,"a",e),e},a.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},a.p="/";var u=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=u.push.bind(u);u.push=e,u=u.slice();for(var d=0;d<u.length;d++)e(u[d]);var l=c;i.push([845,0]),t()}({0:function(n,e){n.exports=React},1:function(n,e,t){"use strict";t.d(e,"g",(function(){return o})),t.d(e,"U",(function(){return i})),t.d(e,"i",(function(){return a})),t.d(e,"D",(function(){return u})),t.d(e,"G",(function(){return c})),t.d(e,"v",(function(){return d})),t.d(e,"B",(function(){return l})),t.d(e,"o",(function(){return f})),t.d(e,"r",(function(){return s})),t.d(e,"I",(function(){return m})),t.d(e,"H",(function(){return p})),t.d(e,"P",(function(){return g})),t.d(e,"E",(function(){return w})),t.d(e,"u",(function(){return x})),t.d(e,"h",(function(){return b})),t.d(e,"t",(function(){return h})),t.d(e,"y",(function(){return v})),t.d(e,"w",(function(){return y})),t.d(e,"C",(function(){return O})),t.d(e,"s",(function(){return A})),t.d(e,"Q",(function(){return z})),t.d(e,"q",(function(){return _})),t.d(e,"J",(function(){return C})),t.d(e,"F",(function(){return j})),t.d(e,"R",(function(){return D})),t.d(e,"m",(function(){return N})),t.d(e,"j",(function(){return P})),t.d(e,"n",(function(){return T})),t.d(e,"k",(function(){return M})),t.d(e,"l",(function(){return S})),t.d(e,"z",(function(){return $})),t.d(e,"L",(function(){return H})),t.d(e,"x",(function(){return I})),t.d(e,"S",(function(){return U})),t.d(e,"T",(function(){return R})),t.d(e,"b",(function(){return W})),t.d(e,"O",(function(){return k})),t.d(e,"A",(function(){return F})),t.d(e,"a",(function(){return J})),t.d(e,"d",(function(){return L})),t.d(e,"f",(function(){return G})),t.d(e,"e",(function(){return q})),t.d(e,"W",(function(){return B})),t.d(e,"c",(function(){return K})),t.d(e,"V",(function(){return Q})),t.d(e,"K",(function(){return V})),t.d(e,"M",(function(){return X})),t.d(e,"N",(function(){return Y})),t.d(e,"p",(function(){return nn}));var r=t(3),o=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},i=function(n){return btoa(unescape(encodeURIComponent(n)))},a=function(n){return n.toUpperCase()},u=function(n){return n.replaceAll(" ","-").toLowerCase()},c=new r.a(!1),d=new r.a(!1),l=new r.a(!1),f=new r.a(!1),s=new r.a(""),m=new r.a(!1),p=new r.a(!1),g=new r.a(!1),w=new r.a(!1),x=new r.a(!1),b=new r.a(!1),h=new r.a(""),v=new r.a(!0),y=new r.a(!0),O=new r.a(!0),A=new r.a(!0),z=new r.a(!0),_=new r.a(!0),C=new r.a({}),E=new r.a(!1),Z=0,j=new r.a(!1),D=new r.a(""),N=new r.a(""),P=new r.a(""),T=new r.a(""),M=new r.a(""),S=new r.a(""),$=new r.a(""),H=new r.a(""),I=new r.a(!1),U=new r.a(!1),R=new r.a(!1),W=function(){setTimeout((function(){Z++,E.next(!0)}),0)},k=function(){setTimeout((function(){Z>0&&Z--,0==Z&&E.next(!1)}),0)},F=function(){return E.asObservable()},J=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)},L=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},q=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},B=function(n){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(n)},K=function(n){return/^[0-9]*$/.test(n)},Q=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},V=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,e){return n=n?Number(n):0,(0===(e=e?Number(e):0)||"0"===e?0:(n-e)/e*100).toFixed(2)},nn=function(n){var e={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&&(e.color=n.selectedColor),n.colorHex&&(e.colorHex=n.colorHex),n.colorZone&&(e.colorZone=n.colorZone),n.selectedConstruction&&(e.model=n.selectedConstruction),n.selectedWindowDesign&&(e.top=n.selectedWindowDesign),n.glazepattern&&(e.glazepattern=n.glazepattern),n.selectedHardware&&(e.hardware=n.selectedHardware),e}},117:function(n,e,t){"use strict";var r=t(0),o=t.n(r),i=t(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-6xcgrd-0"})([".image-text-container{display:flex;align-items:center;padding-bottom:17px;.text-container{max-width:73.5%;}p{margin-bottom:0px;}}.margin{margin-right:30px;}@media(min-width:1024px) and (max-width:1440px){.img-container{max-width:14%;}}@media screen and (max-width:767px){.margin{padding-bottom:10px;margin-right:0px;margin-left:0px;}.image-text-container{display:block;.text-container{max-width:100%;}}.image-text-container-mobile-inline{display:flex;.text-container{width:80%;}.margin{margin-right:16px;padding-bottom:0px;}}}"]),a=t(1),u=function(n){var e=n.imageTextData,t=Object(a.g)(e);return o.a.createElement(i,null,"right"===t.textOrientation&&o.a.createElement("div",{className:"image-text-container ".concat("inline"===t.mobileAlignment&&"image-text-container-mobile-inline","\n ")},o.a.createElement("div",{className:"img-container margin"},o.a.createElement("img",{loading:"lazy",src:t.image.url,alt:t.image.altText})),o.a.createElement("div",{className:"text-container"},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.body.text}}))),"left"===t.textOrientation&&o.a.createElement("div",{className:"image-text-container ".concat("inline"===t.mobileAlignment&&"image-text-container-mobile-inline","\n ")},o.a.createElement("div",{className:"text-container margin"},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.body.text}})),o.a.createElement("div",null,o.a.createElement("img",{loading:"lazy",src:t.image.url,alt:t.image.altText}))))};u.defaultProps={theme:"",imageTextData:""};e.a=u},19:function(n,e){n.exports=ReactDOM},752:function(n,e,t){"use strict";t.r(e);var r=t(14),o=t(117);e.default=r.a.create({component:o.a,configuration:{tagname:"amarr-imagetext",useShadow:!1},plugins:[]})}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-image-text",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Web component - Image Text",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "imageText.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "fd82c19e401d5071b91c2d4c051ec2ac352b0ac7"
|
|
15
15
|
}
|