/*! For license information please see 7578.8945c7b12711169613cb.js.LICENSE.txt */ "use strict";(self.webpackChunkengine=self.webpackChunkengine||[]).push([[7578,5971,219,5893,8521,6607,946,1639],{61639:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r,i,o=n(28416),s=n(9411),a=n.n(s),l=n(5439),u=n.n(l),c={culture:u().string,notificationList:u().arrayOf((0,l.shape)({guid:u().number||u().string,message:u().string,status:u().oneOf(["info","success","bonus","error"])})).isRequired,isMobile:u().bool,isSmall:u().bool,style:u().object,removeNotification:u().func.isRequired,closeTime:u().number,parentId:u().string},f=n(85893);function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,o.lazy)((function(){return n.e(9216).then(n.t.bind(n,59216,23))})),p=(0,o.lazy)((function(){return n.e(9590).then(n.t.bind(n,98655,23))})),b=(0,o.lazy)((function(){return n.e(9404).then(n.t.bind(n,19404,23))})),y=(0,o.memo)(a().div(r||(r=d(["\n\tposition: absolute;\n\tright: -1px;\n\ttop: -1px;\n\tz-index: 4;\n\toverflow: hidden;\n\theight: ",";\n\twidth: 100%;\n"])),(function(e){return e.isMobile?"2.75em":"6.875em"}))),v=(0,o.memo)(a().div(i||(i=d(["\n\tposition: static;\n\tflex: 0 0 auto;\n\twidth: 18.9375em;\n\tmax-width: 19.4375em;\n\talign-self: center;\n\tmargin-bottom: 0.5em;\n\toverflow: hidden;\n"]))));function h(e){var t=e.notificationList,n=e.removeNotification,r=e.style,i=e.closeTime,s=e.isMobile,a=e.culture,l=e.parentId,u=e.isSmall,c=s?m:u?b:p,d=u&&!s?v:y,h=(0,o.useRef)(null);(0,o.useEffect)((function(){return g(),window.addEventListener("scroll",g),function(){window.removeEventListener("scroll",g)}}),[t]);var g=(0,o.useCallback)((function(){requestAnimationFrame((function(){h.current&&(h.current.style.transform="translateY(".concat(window.pageYOffset,"px)"))}))}),[]),w=(0,o.useCallback)((function(e){n(e)}),[n]);return(0,f.jsx)(d,{isMobile:s,style:r,ref:h,"data-testid":"".concat(l?"".concat(l,"_"):"","notification-container"),children:(0,f.jsx)(o.Suspense,{fallback:null,children:t.map((function(e,t){var n=e.guid,o=e.message,s=e.status;return(0,f.jsx)(c,{culture:a,status:s,message:o,onClose:function(){return w(n)},closeTime:i,styles:r.notification,testIdIndex:t,parentId:l},n||t)}))})})}h.defaultProps={culture:"en",isMobile:!1,style:{},closeTime:1.7,parentId:"",isSmall:!1},h.propTypes=c;const g=(0,o.memo)(h)},75251:(e,t,n)=>{var r=n(28416),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},85893:(e,t,n)=>{e.exports=n(75251)}}]);