/*! For license information please see 6268.945e7c54.js.LICENSE.txt */ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6268],{45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var r,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s{var n=o(45228);function i(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function r(e){return"string"==typeof e}function a(e){return e.split(/\s+/g).filter((function(e){return 0!==e.length}))}function l(e){return r(e)&&""!==e?a(e):e&&e.length?e.reduce((function(e,t){return t?e.concat(a(t)):e}),[]):i(e)?(t=e,Object.keys(t).reduce((function(e,o){var n=t[o];return"function"==typeof n&&(n=n()),n?e.concat(a(o)):e}),[])):[];var t}function s(e){return function(t){r(t)&&(t={name:t});var o=(t=n({prefix:"",modifierDelimiter:"--",outputIsString:!1},e,t)).prefix+t.name,a=t.modifierDelimiter,s=t.outputIsString;return function(e,t,n){var r;i(e)?(r=e.element,t=e.modifiers||e.modifier,n=e.extra):r=e;var c=r?o+"__"+r:o,u=[c].concat(l(t).map((function(e){return c+a+e}))).concat(l(n)).join(" ").trim();return s?u:{className:u}}}}var c=s({});c.withDefaults=s,e.exports=c},46268:(e,t,o)=>{"use strict";o.d(t,{h:()=>je});var n,i=o(96540),r=o(28188),a=o(89874),l=o(46942),s=o.n(l),c=o(48911),u=o(37808),d=o(81e3);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t1){for(var l=Array(a),s=0;se.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&J(C(C({},Y),{},{height:B}))}),[B]),(0,i.useEffect)((function(){J((function(e){return C(C({},e),{},{backgroundColor:a})}))}),[a]),m("div",{className:W("container-fixed",v),style:C(C({},V),{},{backgroundColor:a})},void 0,m("div",{className:W("fit-content"),style:C(C({},V),{},{backgroundColor:a})},void 0,m("div",{style:Y,className:W("content",["fixed",ee.replace("_","-")])},void 0,T&&i.createElement("div",{className:s()(W("text",w),W("text",l),W("text--".concat(f))),ref:G},m("div",{className:Q,style:{textAlign:l}},void 0,j&&m("h4",{style:X,className:W("heading")},void 0,h),S&&m("h2",{style:X,className:W("title")},void 0,x),_&&m("p",{style:X,className:W("subtitle")},void 0,O),F&&E&&(D||f===g||q?m(N,{className:W("cta"),cta:E,isEshops:D,deviceType:v,buttonTextColor:D?b.eshops:b.default}):m(c.$n,{cta:E,variant:"neutral",size:M,href:$,isSpan:!0}))))),m("div",{className:Z,style:C(C({},u),{},{aspectRatio:o})})))},K=function(e,t){return Object.values(H).includes(t)?F(F(F({},H.LEFT_TOP,"mobile"===e?B:z),H.CENTER,I),H.RIGHT_BOTTOM,"mobile"===e?D:$)[t]:"mobile"===e?B:z},Y=function(e){var t=e.variation,o=e.deviceType,n=void 0===o?"desktop":o,r=e.aspectRatio,a=e.text_location,l=void 0===a?H.LEFT_TOP:a,u=e.backgroundColor,d=void 0===u?"#000":u,f=e.transparency,v=e.imageStyle,y=e.title_text_color,h=void 0===y?"":y,b=e.text_alignment,x=e.heading,w=void 0===x?"":x,E=e.title,S=void 0===E?"":E,_=e.subtitle,j=void 0===_?"":_,F=e.cta,T=void 0===F?"":F,P=e.showContentBox,k=e.show_title,A=e.show_subtitle,R=e.show_heading,B=e.show_button,I=e.isEshops,D=void 0!==I&&I,z=e.layoutTheme,$=e.action,q=e.version,W=void 0===q?g:q,G=e.buttonSize,Z=e.isCustomHtml,V=(0,i.useRef)(null);U({contentBoxRef:V,layoutTheme:z,textLocation:l,deviceType:n,design:O,dependencies:[l],skip:D});var Y=L({name:p[t]}),J=s()(Y("image-floating",n),"image-adjust-width"),Q=!(k||A||R||B);return m("div",{className:J,style:C({aspectRatio:r},v)},void 0,P&&i.createElement("div",{className:s()(Y("text","fit-content"),Y("text",W)),style:{justifyContent:K(n,l),flexDirection:"mobile"===n?"column":"row",alignItems:"center"},ref:V},m("div",{className:Y("text-wrapper-floating"),style:Q?{display:"none"}:{backgroundColor:"rgb(from ".concat(d," r g b / ").concat(parseFloat(1-f/100).toFixed(2),")")}},void 0,m("div",{className:s()(Y("text-content"),Y("text",b)),style:{textAlign:b}},void 0,R&&m("h4",{className:Y("heading"),style:{color:h}},void 0,w),k&&m("h2",{className:Y("title"),style:{color:h}},void 0,S),A&&m("h3",{className:Y("subtitle"),style:{color:h}},void 0,j),B&&T&&(D||W===g||Z?m("div",{className:Y("cta-container"),style:{justifyContent:M[b]}},void 0,m(N,{className:Y("cta--v2"),cta:T,isEshops:D,deviceType:n})):m(c.$n,{cta:T,variant:"neutral",size:G,href:$,isSpan:!0}))))))},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1920;return/^https:\/\/http2\.mlstatic\.com\/storage\/mshops-appearance-api\/resources\/default\/(toys|tools|sports|simple|material|legend|home_deco|fashion|explorer|electronics)\/[a-zA-Z0-9]+\.(png|jpg)$/.test(e)?null==e?void 0:e.replace(/\.(png|jpg)$/,".webp"):(0,c.Ry)(t,e)},Q=["design","fullWidth","layoutTheme","sliderSizeName","deviceType","version","image","isEshops","isCustomHtml"],X=function(e){var t,o,n,r,a=e.design,l=void 0===a?x:a,s=e.fullWidth,c=void 0!==s&&s,u=e.layoutTheme,d=void 0===u?"":u,f=e.sliderSizeName,m=void 0===f?"":f,p=e.deviceType,b=void 0===p?"desktop":p,S=e.version,_=void 0===S?g:S,j=e.image,F=e.isEshops,T=e.isCustomHtml,N=v(e,Q),L=j.url_alternative,P=j.url,k=j.alignment,A={backgroundImage:'url("'.concat(J(b===q?L||P:P,E[b]),'")'),backgroundPosition:k},R=b===q?W:G,H=C({aspectRatio:(t=F?"eshops":"mshops",o=h[b],n=o[d]||o.default,r=n[m],c&&_===g?(n=o.v2)[t][l].small:(_===y&&(r=(n=o.v2)[t][l][m]),"".concat(r))),imageStyle:A,design:l,fullWidth:c,layoutTheme:d,sliderSizeName:m,deviceType:b,version:_,image:j,isEshops:F,buttonSize:R,isCustomHtml:T},N);switch(l){case x:return i.createElement(Z,H);case w:return i.createElement(V,H);case O:return i.createElement(Y,H);default:return i.createElement(Z,H)}},ee=["variation","heading","title","subtitle","isInternal","action","text_alignment","domain","version","deviceType","sliderSizeName","background_color","isEshops","isCustomHtml"];const te=function(e){var t,o=e.variation,n=void 0===o?"original":o,a=e.heading,l=void 0===a?"":a,s=e.title,c=void 0===s?"":s,u=e.subtitle,d=void 0===u?"":u,y=e.isInternal,b=void 0!==y&&y,x=e.action,w=void 0===x?"":x,O=e.text_alignment,E=void 0===O?"left":O,_=e.domain,j=e.version,F=void 0===j?g:j,T=e.deviceType,C=e.sliderSizeName,N=e.background_color,P=e.isEshops,k=e.isCustomHtml,A=v(e,ee),R=l||c||d,H=L({name:p[n]});return m(r.j5,{className:H("")},void 0,m(S,{className:H(),action:w,internal:b,domain:_,version:F,aspectRatio:(t=h[T].v2[C],"".concat(t)),isEshops:P},void 0,R&&m("div",{className:H("layer",E)}),i.createElement(X,f({variation:n,heading:l,title:c,subtitle:d,isInternal:b,action:w,text_alignment:E,deviceType:T,version:F,domain:_,sliderSizeName:C,backgroundColor:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(N)?N:"white"===N?"#fff":"black"===N?"#000":"var(--".concat(N,"ColorVar)"),isEshops:P,isCustomHtml:k},A))))};function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ne(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oe(t)?t:t+""}function ie(e,t,o){return(t=ne(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function re(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ae(e){for(var t=1;t1){for(var a=Array(r),l=0;le.length)&&(t=e.length);for(var o=0,n=Array(t);o0;(0,i.useEffect)((function(){oe.current?oe.current=!1:(D(!1),setTimeout((function(){D(!0)}),0))}),[null==u?void 0:u.length]),(0,i.useEffect)((function(){k(C.reduce((function(e,t){return t>e?t:e}),0))}),[C]),(0,i.useLayoutEffect)((function(){if(ee.current&&u.length>1&&"fixed"===S){var e,t,o,n=null===(e=(t=ee.current).querySelector)||void 0===e||null===(e=e.call(t,'[data-slider="'.concat(u.length-1,'"]')))||void 0===e||null===(o=e.querySelector)||void 0===o?void 0:o.call(e,".slide__content--fixed");n&&(n.style.height="".concat(P,"px"))}}),[P,S,u.length]);var re=function(e){var t=e.data,o=t.message;"UPDATE_SLIDES"===t.action&&x&&H(o)};(0,i.useEffect)((function(){return window.addEventListener("message",re,!1),function(){window.removeEventListener("message",re)}}),[]);var se=K[R]||K[0];return i.createElement("div",{className:Y,ref:ee},1===u.length||-1!==R?function(e){return J&&(e.contentBoxHeight=P,e.setHeight=U),ce("div",{className:X},void 0,i.createElement(M,le({},e,{showContentBox:ne,isEshops:O,isCustomHtml:j})))}(se):I&&(J?ce("div",{className:Q},void 0,i.createElement(r.G,V,K.map((function(e){return e.contentBoxHeight=P,e.setHeight=U,i.createElement(M,le({},e,{showContentBox:ne,isEshops:O,isCustomHtml:j}))})))):i.createElement(r.G,V,K.map((function(e){return e.setHeight=U,i.createElement(M,le({},e,{showContentBox:ne,isEshops:O,isCustomHtml:j}))})))))}}}]); //# sourceMappingURL=6268.945e7c54.js.map