@assaabloy/amarr-wc-video-list 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/package.json +2 -2
- package/videoList.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-video-list",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Web component - Video List",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "videoList.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "fd82c19e401d5071b91c2d4c051ec2ac352b0ac7"
|
|
15
15
|
}
|
package/videoList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function t(t){for(var a,r,d=t[0],c=t[1],p=t[2],s=0,m=[];s<d.length;s++)r=d[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&m.push(i[r][0]),i[r]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(l&&l(t);m.length;)m.shift()();return o.push.apply(o,p||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,d=1;d<n.length;d++){var c=n[d];0!==i[c]&&(a=!1)}a&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var a={},i={76:0},o=[];function r(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=t,d=d.slice();for(var p=0;p<d.length;p++)t(d[p]);var l=c;o.push([868,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"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)")}},104:function(e,t,n){"use strict";var a=n(0),i=n.n(a),o=n(2),r=n(12),d=n.n(r),c={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),l=n(5),s=n(1);function m(){var e=Object(p.a)(["\n .video-container {\n background: var(--grey);\n }\n h3 {\n // font-size: 18px;\n margin: 20px 0 20px 0;\n @media "," {\n // font-size: 48px;\n margin: 20px 0 40px 0;\n }\n }\n h2 {\n padding: 20px 0px 0px 0px;\n margin-bottom: 0px;\n }\n .video-item {\n display: flex;\n align-items: center;\n border-bottom: solid 1px var(--border-color-soft);\n padding: 24px 0px 18px 0px;\n @media "," {\n border-bottom: none;\n padding-bottom: 0;\n }\n @media screen and "," and "," {\n padding: 5px 0px 0px 0px;\n }\n &:last-child {\n border-bottom: none;\n }\n video {\n width: 100%;\n }\n .left-space {\n @media "," {\n padding-left: 20px !important;\n }\n }\n .video-title {\n color: var(--accent-contrast);\n background: var(--accent);\n display: inline-block;\n padding: 5px 10px;\n margin-bottom: 10px;\n border-radius: 3px;\n @media "," {\n margin-top: 20px;\n }\n }\n // These font sizes are as per body text 2\n p {\n font-size: var(--font-size-m2);\n line-height: 28px;\n @media screen and "," and "," {\n font-size: var(--font-size-s2);\n line-height: 22px;\n }\n @media screen and "," and "," {\n font-size: var(--font-size-xs3);\n line-height: 20px;\n }\n @media screen and ",' {\n font-size: var(--font-size-s2);\n line-height: 20px;\n }\n }\n .video-div {\n position: relative;\n span {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n }\n @media screen and ',"{\n .circle,\n .play-pause-icon {\n width: 60px;\n height: 60px;\n top: calc(50% - 30px);\n left: calc(50% - 30px);\n }\n }\n @media screen and "," and "," {\n .circle,\n .play-pause-icon {\n width: 50px;\n height: 50px;\n top: calc(50% - 25px);\n left: calc(50% - 25px);\n }\n }\n @media screen and "," and "," {\n .circle,\n .play-pause-icon {\n width: 40px;\n height: 40px;\n top: calc(50% - 20px);\n left: calc(50% - 20px);\n }\n }\n }\n button {\n cursor: pointer;\n border: none;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n background: transparent;\n }\n }\n\n .video-list.video-grid-parent {\n display: inline-grid;\n grid-template-columns: 1fr 1fr;\n column-gap: 30px;\n }\n\n .video-list-grid .video-card > div,\n .video-card > iframe,\n .video-list.video-grid-parent {\n width: 100%;\n }\n\n .video-caption {\n /* font-size: 30px;\n font-weight: 600;\n color: #333; */\n margin-top: 10px;\n margin-bottom: 20px;\n }\n\n @media screen and "," {\n .video-list.video-grid-parent {\n display: flex;\n flex-flow: column nowrap;\n .video-card > iframe {\n height: 250px;\n }\n .video-card .video-caption {\n font-size: 20px;\n margin-top: 10px;\n margin-bottom: 30px;\n }\n }\n }\n "]);return m=function(){return e},e}var u=l.default.div.withConfig({displayName:"styles__Content",componentId:"hoe2jh-0"})(["",""],(function(e){var t;(null===(t=e.gradients)||void 0===t?void 0:t.visible)?e.theme.gradient:e.theme;return Object(l.css)(m(),s.b.tabletPortraitMax,s.b.mobileMax,s.b.tabletPortraitAndUp,s.b.desktop2Max,s.b.tabletPortraitAndUp,s.b.tabletPortraitMax2,s.b.mediumDesktopMin,s.b.mediumDesktopAndUp3Max,s.b.tabletPortraitAndUp,s.b.smallDesktopAndUp2Max,s.b.mobileMax,s.b.mediumDesktopMin,s.b.tabletLandscapeAndUp,s.b.smallDesktopAndUp2Max,s.b.tabletPortraitAndUp,s.b.tabletPortraitMax,s.b.mobileMax)})),x=n(7),h=n(8),b=n(9),f=n(47),g={header:{text:""},variation:"",headingStyle:"",videoListItems:[{header:{text:""},headingStyle:"",body:{text:""},video:{url:"",id:""}}]},w=function(e){var t=d()({},g,Object(o.g)(e.content));return i.a.createElement(x.a,{setter:{componentThemes:c,selectedTheme:e.theme}},i.a.createElement(h.a,null,i.a.createElement(b.a,null,i.a.createElement(u,{isReversed:!1},i.a.createElement("div",{className:"".concat("list"===t.variation&&"video-container")},i.a.createElement("div",{className:"container dealer-col"},i.a.createElement("div",{className:"row m-0"},i.a.createElement("div",{className:"col-12 p-0"},t.header&&"h1"===t.headingStyle&&i.a.createElement("h1",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"h2"===t.headingStyle&&i.a.createElement("h2",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"h3"===t.headingStyle&&i.a.createElement("h3",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"h4"===t.headingStyle&&i.a.createElement("h4",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"h5"===t.headingStyle&&i.a.createElement("h5",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"h6"===t.headingStyle&&i.a.createElement("h6",{className:"".concat("grid"===t.variation&&"text-center")},t.header.text),t.header&&"capitalize"===t.headingStyle&&i.a.createElement("div",{className:"text-style-uppercase"},t.header.text),i.a.createElement("div",{className:"video-list ".concat("grid"===t.variation&&"video-grid-parent"," ").concat("list"===t.variation&&"video-list-parent")},t.videoListItems&&"list"===t.variation&&t.videoListItems.map((function(e,t){return i.a.createElement("div",{className:"video-item row m-0",key:t},i.a.createElement("div",{className:"col-sm-12 col-md-3 p-0 video-div"},e.video&&e.video.url&&i.a.createElement(f.a,{item:e})),i.a.createElement("div",{className:"col-sm-12 col-md-9 p-0 left-space"},e.header&&i.a.createElement("div",{className:"amarr-h6 video-title"},e.header.text),e.body&&i.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.body.text}})))})),t.videoListItems&&"grid"===t.variation&&t.videoListItems.map((function(e,t){var n;return i.a.createElement("div",{key:t,className:"video-list-grid"},i.a.createElement("span",{className:"video-card"},e.video&&e.video.id&&i.a.createElement("iframe",{loading:"lazy",title:null===e||void 0===e||null===(n=e.header)||void 0===n?void 0:n.text,height:"397",src:"https://www.youtube.com/embed/".concat(e.video.id,"?autoplay=0&mute=1&loop=0")}),e.header&&"capitalize"!==e.headingStyle&&i.a.createElement(e.headingStyle,{className:"text-section video-caption"},e.header.text),e.header&&"capitalize"===e.headingStyle&&i.a.createElement("div",{className:"text-style-capitalize text-section video-caption"},e.header.text)))})))))))))))};w.defaultProps={theme:"",content:""};t.a=w},2:function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"U",(function(){return o})),n.d(t,"i",(function(){return r})),n.d(t,"D",(function(){return d})),n.d(t,"G",(function(){return c})),n.d(t,"v",(function(){return p})),n.d(t,"B",(function(){return l})),n.d(t,"o",(function(){return s})),n.d(t,"r",(function(){return m})),n.d(t,"I",(function(){return u})),n.d(t,"H",(function(){return x})),n.d(t,"P",(function(){return h})),n.d(t,"E",(function(){return b})),n.d(t,"u",(function(){return f})),n.d(t,"h",(function(){return g})),n.d(t,"t",(function(){return w})),n.d(t,"y",(function(){return A})),n.d(t,"w",(function(){return v})),n.d(t,"C",(function(){return U})),n.d(t,"s",(function(){return k})),n.d(t,"Q",(function(){return M})),n.d(t,"q",(function(){return y})),n.d(t,"J",(function(){return D})),n.d(t,"F",(function(){return z})),n.d(t,"R",(function(){return N})),n.d(t,"m",(function(){return O})),n.d(t,"j",(function(){return S})),n.d(t,"n",(function(){return W})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return C})),n.d(t,"z",(function(){return L})),n.d(t,"L",(function(){return _})),n.d(t,"x",(function(){return I})),n.d(t,"S",(function(){return T})),n.d(t,"T",(function(){return Z})),n.d(t,"b",(function(){return $})),n.d(t,"O",(function(){return H})),n.d(t,"A",(function(){return R})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return J})),n.d(t,"f",(function(){return G})),n.d(t,"e",(function(){return q})),n.d(t,"W",(function(){return B})),n.d(t,"c",(function(){return K})),n.d(t,"V",(function(){return Q})),n.d(t,"K",(function(){return V})),n.d(t,"M",(function(){return X})),n.d(t,"N",(function(){return Y})),n.d(t,"p",(function(){return ee}));var a=n(4),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},o=function(e){return btoa(unescape(encodeURIComponent(e)))},r=function(e){return e.toUpperCase()},d=function(e){return e.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),p=new a.a(!1),l=new a.a(!1),s=new a.a(!1),m=new a.a(""),u=new a.a(!1),x=new a.a(!1),h=new a.a(!1),b=new a.a(!1),f=new a.a(!1),g=new a.a(!1),w=new a.a(""),A=new a.a(!0),v=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),y=new a.a(!0),D=new a.a({}),P=new a.a(!1),E=0,z=new a.a(!1),N=new a.a(""),O=new a.a(""),S=new a.a(""),W=new a.a(""),j=new a.a(""),C=new a.a(""),L=new a.a(""),_=new a.a(""),I=new a.a(!1),T=new a.a(!1),Z=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(e){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(e)},J=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},q=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},B=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},K=function(e){return/^[0-9]*$/.test(e)},Q=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},V=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},X=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},Y=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},ee=function(e){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(t.color=e.selectedColor),e.colorHex&&(t.colorHex=e.colorHex),e.colorZone&&(t.colorZone=e.colorZone),e.selectedConstruction&&(t.model=e.selectedConstruction),e.selectedWindowDesign&&(t.top=e.selectedWindowDesign),e.glazepattern&&(t.glazepattern=e.glazepattern),e.selectedHardware&&(t.hardware=e.selectedHardware),t}},26:function(e,t){e.exports=ReactDOM},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n(3),i=n(0),o=n.n(i),r=n(5),d=n(1),c=r.default.section.withConfig({displayName:"styles__Content",componentId:"sc-13lfbb6-0"})([".hide-icon{.circle{opacity:0 !important;}img{display:none;}}.play-pause-image:hover{.circle{background-color:var(--text-color-warning);border-radius:50px;opacity:1;z-index:1;display:inline;}img{display:inline;}}.play-pause-image.pause:hover{.circle{background-color:var(--black);opacity:0.800000012 !important;}img{display:inline;}}.play-pause-image{.circle{background-color:var(--black);opacity:0.5;border-radius:50px;margin:auto;width:96px;height:96px;display:flex;align-items:var(--text-center);justify-content:var(--text-center);position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);}.play-pause-icon{position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);z-index:999;}@media screen and "," and ","{.circle,.play-pause-icon{width:80px;height:80px;top:calc(50% - 22px);left:calc(50% - 40px);}}@media screen and ","{.circle,.play-pause-icon{width:70px;height:70px;top:calc(50% - 10px);left:calc(50% - 35px);}}@media screen and "," and ","{.circle,.play-pause-icon{width:50px;height:50px;top:50%;left:calc(50% - 25px);}}@media screen and "," and ","{.circle,.play-pause-icon{width:40px;height:40px;top:calc(50% + 5px);left:calc(50% - 20px);}}}"],d.b.mediumDesktopMin,d.b.mediumDesktopAndUp3Max,d.b.smallDesktopAndUp2,d.b.tabletLandscapeAndUp,d.b.desktopAndUpMax,d.b.tabletPortraitAndUp,d.b.tabletPortraitMax),p=function(e){var t=e.item,n=e.showControls,r=Object(i.useRef)(null),d=Object(i.useState)(!1),p=Object(a.a)(d,2),l=p[0],s=p[1],m=Object(i.useState)(!1),u=Object(a.a)(m,2),x=u[0],h=u[1],b=function(){setTimeout((function(){h(!0)}),1e3)};return o.a.createElement(c,null,!n&&o.a.createElement("video",{ref:r,preload:"none"},o.a.createElement("source",{src:t.video.url})),n&&o.a.createElement("video",{preload:"none",ref:r,onPlay:function(){s(!0),b(),r.current.controls=!0},onPause:function(){h(!1),s(!1),r.current.controls=!1},autoPlay:!0,muted:!0},o.a.createElement("source",{src:t.video.url})),o.a.createElement("span",null,o.a.createElement("button",{onClick:function(){var e,t;l?null===(e=r.current)||void 0===e||e.pause():(null===(t=r.current)||void 0===t||t.play(),b());s(!l),h(!1)},className:"".concat(l&&"pause"," ").concat(x&&"hide-icon"," play-pause-image")},o.a.createElement("div",{className:"circle"}),o.a.createElement("img",{loading:"lazy",src:l?"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_pause.svg":"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_play.svg",alt:l?"Pause Icon":"Play Icon",className:"play-pause-icon"}))))}},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(5),i=n(0),o=n.n(i),r=function(e){var t=e.setter,n=t.componentThemes,i=t.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!i)return n.theme1;var e=i.match(/\d+/g).map(Number),t=Object.keys(n).find((function(t){return!(!Array.isArray(e)||1!==e.length)&&(t.includes(e[0])&&n[t])}));return t?n["".concat(t)]:n.theme1}},e.children)}},776:function(e,t,n){"use strict";n.r(t);var a=n(21),i=n(104);t.default=a.a.create({component:i.a,configuration:{tagname:"amarr-videolist",useShadow:!1},plugins:[]})},8:function(e,t,n){"use strict";var a=n(0),i=n.n(a),o=n(5),r=n(20),d=n.n(r),c=Object(a.createContext)({});t.a=function(e){var t=!1;try{var n;t=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(r){console.log(r)}var a=t?[d.a]:[];return i.a.createElement(o.StyleSheetManager,{stylisPlugins:a},i.a.createElement(c.Provider,{value:{rtl:t}},e.children))}},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),i=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(e){return e.padding?"0 var(--grid-margin);":0}),(function(e){e.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),r=function(e){var t=e.className,n=e.children,a=e.maxWidth,r=void 0===a?1520:a,d=e.padding,c=void 0===d||d;return i.a.createElement(o,{className:t,maxWidth:r,padding:c},n)}}});
|
|
1
|
+
!function(e){function t(t){for(var a,o,c=t[0],d=t[1],l=t[2],s=0,p=[];s<c.length;s++)o=c[s],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&p.push(i[o][0]),i[o]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,l||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var d=n[c];0!==i[d]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},i={77:0},r=[];function o(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],d=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var u=d;r.push([864,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"U",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"D",(function(){return c})),n.d(t,"G",(function(){return d})),n.d(t,"v",(function(){return l})),n.d(t,"B",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"r",(function(){return p})),n.d(t,"I",(function(){return m})),n.d(t,"H",(function(){return f})),n.d(t,"P",(function(){return x})),n.d(t,"E",(function(){return h})),n.d(t,"u",(function(){return g})),n.d(t,"h",(function(){return v})),n.d(t,"t",(function(){return w})),n.d(t,"y",(function(){return b})),n.d(t,"w",(function(){return y})),n.d(t,"C",(function(){return E})),n.d(t,"s",(function(){return N})),n.d(t,"Q",(function(){return z})),n.d(t,"q",(function(){return O})),n.d(t,"J",(function(){return S})),n.d(t,"F",(function(){return C})),n.d(t,"R",(function(){return P})),n.d(t,"m",(function(){return A})),n.d(t,"j",(function(){return k})),n.d(t,"n",(function(){return I})),n.d(t,"k",(function(){return Z})),n.d(t,"l",(function(){return D})),n.d(t,"z",(function(){return $})),n.d(t,"L",(function(){return L})),n.d(t,"x",(function(){return M})),n.d(t,"S",(function(){return H})),n.d(t,"T",(function(){return T})),n.d(t,"b",(function(){return R})),n.d(t,"O",(function(){return U})),n.d(t,"A",(function(){return W})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return J})),n.d(t,"f",(function(){return G})),n.d(t,"e",(function(){return q})),n.d(t,"W",(function(){return B})),n.d(t,"c",(function(){return K})),n.d(t,"V",(function(){return Q})),n.d(t,"K",(function(){return V})),n.d(t,"M",(function(){return X})),n.d(t,"N",(function(){return Y})),n.d(t,"p",(function(){return ee}));var a=n(3),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},r=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),l=new a.a(!1),u=new a.a(!1),s=new a.a(!1),p=new a.a(""),m=new a.a(!1),f=new a.a(!1),x=new a.a(!1),h=new a.a(!1),g=new a.a(!1),v=new a.a(!1),w=new a.a(""),b=new a.a(!0),y=new a.a(!0),E=new a.a(!0),N=new a.a(!0),z=new a.a(!0),O=new a.a(!0),S=new a.a({}),j=new a.a(!1),_=0,C=new a.a(!1),P=new a.a(""),A=new a.a(""),k=new a.a(""),I=new a.a(""),Z=new a.a(""),D=new a.a(""),$=new a.a(""),L=new a.a(""),M=new a.a(!1),H=new a.a(!1),T=new a.a(!1),R=function(){setTimeout((function(){_++,j.next(!0)}),0)},U=function(){setTimeout((function(){_>0&&_--,0==_&&j.next(!1)}),0)},W=function(){return j.asObservable()},F=function(e){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(e)},J=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},q=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},B=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},K=function(e){return/^[0-9]*$/.test(e)},Q=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},V=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},X=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},Y=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},ee=function(e){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(t.color=e.selectedColor),e.colorHex&&(t.colorHex=e.colorHex),e.colorZone&&(t.colorZone=e.colorZone),e.selectedConstruction&&(t.model=e.selectedConstruction),e.selectedWindowDesign&&(t.top=e.selectedWindowDesign),e.glazepattern&&(t.glazepattern=e.glazepattern),e.selectedHardware&&(t.hardware=e.selectedHardware),t}},100:function(e,t,n){"use strict";var a=n(0),i=n.n(a),r=n(1),o=n(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-1c4dt49-0"})(['.video-container{background:#f0f0f0;}h3{margin:20px 0 20px 0;@media (min-width:991px){margin:20px 0 40px 0;}}h2{padding:20px 0px 0px 0px;margin-bottom:0px;}.video-item{display:flex;align-items:center;border-bottom:solid 1px #b6b9bb;padding:24px 0px 18px 0px;@media (max-width:767px){border-bottom:none;padding-bottom:0;}@media screen and (min-width:768px) and (max-width:1023){padding:5px 0px 0px 0px;}&:last-child{border-bottom:none;}video{width:100%;}.left-space{@media (min-width:768px){padding-left:20px !important;}}.video-title{color:#fff;background:#006166;display:inline-block;padding:5px 10px;margin-bottom:10px;border-radius:3px;@media (max-width:990px){margin-top:20px;}}p{font-size:18px;line-height:28px;@media screen and (min-width:1281px) and (max-width:1680px){font-size:14px;line-height:22px;}@media screen and (min-width:768px) and (max-width:1280px){font-size:13px;line-height:20px;}@media screen and (max-width:767px){font-size:14px;line-height:20px;}}.video-div{position:relative;span{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;}@media screen and (min-width:1281px){.circle,.play-pause-icon{width:60px;height:60px;top:calc(50% - 30px);left:calc(50% - 30px);}}@media screen and (min-width:992px) and (max-width:1280px){.circle,.play-pause-icon{width:50px;height:50px;top:calc(50% - 25px);left:calc(50% - 25px);}}@media screen and (min-width:768px) and (max-width:991px){.circle,.play-pause-icon{width:40px;height:40px;top:calc(50% - 20px);left:calc(50% - 20px);}}}button{cursor:pointer;border:none;width:100%;height:100%;position:absolute;top:0;background:transparent;}}.video-list.video-grid-parent{display:inline-grid;grid-template-columns:1fr 1fr;column-gap:30px;}.video-list-grid .video-card > div,.video-card > iframe,.video-list.video-grid-parent{width:100%;}.video-caption{margin-top:10px;margin-bottom:20px;}@media screen and (max-width:767px){.video-list.video-grid-parent{display:flex;flex-flow:column nowrap;.video-card > iframe{height:250px;}.video-card .video-caption{font-size:20px;margin-top:10px;margin-bottom:30px;}}}']),c=n(56),d=function(e){var t=e.videoListData,n=Object(r.g)(t);return i.a.createElement(o,null,i.a.createElement("div",{className:"".concat("list"===n.variation&&"video-container")},i.a.createElement("div",{className:"container dealer-col"},i.a.createElement("div",{className:"row m-0"},i.a.createElement("div",{className:"col-12 p-0"},n.header&&"h1"===n.headingStyle&&i.a.createElement("h1",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"h2"===n.headingStyle&&i.a.createElement("h2",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"h3"===n.headingStyle&&i.a.createElement("h3",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"h4"===n.headingStyle&&i.a.createElement("h4",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"h5"===n.headingStyle&&i.a.createElement("h5",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"h6"===n.headingStyle&&i.a.createElement("h6",{className:"".concat("grid"===n.variation&&"text-center")},n.header.text),n.header&&"capitalize"===n.headingStyle&&i.a.createElement("div",{className:"text-style-uppercase"},n.header.text),i.a.createElement("div",{className:"video-list ".concat("grid"===n.variation&&"video-grid-parent"," ").concat("list"===n.variation&&"video-list-parent")},n.videoListItems&&"list"===n.variation&&n.videoListItems.map((function(e,t){return i.a.createElement("div",{className:"video-item row m-0",key:t},i.a.createElement("div",{className:"col-sm-12 col-md-3 p-0 video-div"},e.video&&e.video.url&&i.a.createElement(c.a,{item:e})),i.a.createElement("div",{className:"col-sm-12 col-md-9 p-0 left-space"},e.header&&i.a.createElement("div",{className:"amarr-h6 video-title"},e.header.text),e.body&&i.a.createElement("p",{dangerouslySetInnerHTML:{__html:e.body.text}})))})),n.videoListItems&&"grid"===n.variation&&n.videoListItems.map((function(e,t){var n;return i.a.createElement("div",{key:t,className:"video-list-grid"},i.a.createElement("span",{className:"video-card"},e.video&&e.video.id&&i.a.createElement("iframe",{loading:"lazy",title:null===e||void 0===e||null===(n=e.header)||void 0===n?void 0:n.text,height:"397",src:"https://www.youtube.com/embed/".concat(e.video.id,"?autoplay=0&mute=1&loop=0")}),e.header&&"capitalize"!==e.headingStyle&&i.a.createElement(e.headingStyle,{className:"text-section video-caption"},e.header.text),e.header&&"capitalize"===e.headingStyle&&i.a.createElement("div",{className:"text-style-capitalize text-section video-caption"},e.header.text)))}))))))))};d.defaultProps={theme:"",videoListData:""};t.a=d},19:function(e,t){e.exports=ReactDOM},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),i=n(0),r=n.n(i),o=n(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-13lfbb6-0"})([".hide-icon{.circle{opacity:0 !important;}img{display:none;}}.play-pause-image:hover{.circle{background-color:#de0000;border-radius:50px;opacity:1;z-index:1;display:inline;}img{display:inline;}}.play-pause-image.pause:hover{.circle{background-color:#000000;opacity:0.800000012 !important;}img{display:inline;}}.play-pause-image{.circle{background-color:#000000;opacity:0.5;border-radius:50px;margin:auto;width:96px;height:96px;display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);}.play-pause-icon{position:absolute;top:calc(50% - 47px);left:calc(50% - 47px);z-index:999;}@media screen and (min-width:1281px) and (max-width:1680px){.circle,.play-pause-icon{width:80px;height:80px;top:calc(50% - 22px);left:calc(50% - 40px);}}@media screen and (max-width:1280px){.circle,.play-pause-icon{width:70px;height:70px;top:calc(50% - 10px);left:calc(50% - 35px);}}@media screen and (min-width:992px) and (max-width:1024px){.circle,.play-pause-icon{width:50px;height:50px;top:50%;left:calc(50% - 25px);}}@media screen and (min-width:768px) and (max-width:991px){.circle,.play-pause-icon{width:40px;height:40px;top:calc(50% + 5px);left:calc(50% - 20px);}}}"]),c=function(e){var t=e.item,n=e.showControls,c=Object(i.useRef)(null),d=Object(i.useState)(!1),l=Object(a.a)(d,2),u=l[0],s=l[1],p=Object(i.useState)(!1),m=Object(a.a)(p,2),f=m[0],x=m[1],h=function(){setTimeout((function(){x(!0)}),1e3)};return r.a.createElement(o,null,!n&&r.a.createElement("video",{ref:c,preload:"none"},r.a.createElement("source",{src:t.video.url})),n&&r.a.createElement("video",{preload:"none",ref:c,onPlay:function(){s(!0),h(),c.current.controls=!0},onPause:function(){x(!1),s(!1),c.current.controls=!1}},r.a.createElement("source",{src:t.video.url})),r.a.createElement("span",null,r.a.createElement("button",{onClick:function(){var e,t;u?null===(e=c.current)||void 0===e||e.pause():(null===(t=c.current)||void 0===t||t.play(),h());s(!u),x(!1)},className:"".concat(u&&"pause"," ").concat(f&&"hide-icon"," play-pause-image")},r.a.createElement("div",{className:"circle"}),r.a.createElement("img",{loading:"lazy",src:u?"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_pause.svg":"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic_play.svg",alt:u?"Pause Icon":"Play Icon",className:"play-pause-icon"}))))}},771:function(e,t,n){"use strict";n.r(t);var a=n(14),i=n(100);t.default=a.a.create({component:i.a,configuration:{tagname:"amarr-videolist",useShadow:!1},plugins:[]})}});
|