/*! For license information please see 7214.9d7530fe277d2741132e.js.LICENSE.txt */ "use strict";(self.webpackChunkengine=self.webpackChunkengine||[]).push([[7214,5893,8521,2400],{32400:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var i=n(28416),o=n(9411),r=n.n(o),s=n(5439),a=n.n(s),l={culture:a().string,notificationList:a().arrayOf((0,s.shape)({guid:a().number||a().string,message:a().string,status:a().oneOf(["info","success","bonus","error"])})).isRequired,isMobile:a().bool,isSmall:a().bool,style:a().object,removeNotification:a().func.isRequired,closeTime:a().number,parentId:a().string},u=n(85893),c=(0,i.lazy)((function(){return n.e(2714).then(n.t.bind(n,12714,23))})),f=(0,i.lazy)((function(){return n.e(9143).then(n.t.bind(n,59143,23))})),d=(0,i.lazy)((function(){return n.e(1018).then(n.t.bind(n,41018,23))})),m=(0,i.lazy)((function(){return n.e(5315).then(n.t.bind(n,5315,23))})),p=(0,i.memo)(r().div.withConfig({componentId:"sc-la5e2j-0"})(["position:absolute;right:0;top:0;z-index:15;overflow:hidden;height:",";width:100%;"],(function(e){return e.isMobile?"2.75em":"6.875em"}))),b=(0,i.memo)(r().div.withConfig({componentId:"sc-la5e2j-1"})(["position:static;flex:0 0 auto;width:18.9375em;max-width:19.4375em;align-self:center;margin-bottom:0.5em;overflow:hidden;"]));function y(e){var t=e.notificationList,n=e.removeNotification,o=e.style,r=e.closeTime,s=e.isMobile,a=e.isLandscape,l=e.culture,y=e.parentId,h=e.isSmall,g=a?f:s?c:h?m:d,v=h&&!s?b:p,w=(0,i.useRef)(null);(0,i.useEffect)((function(){return _(),window.addEventListener("scroll",_),function(){window.removeEventListener("scroll",_)}}),[t]);var _=(0,i.useCallback)((function(){requestAnimationFrame((function(){w.current&&(w.current.style.transform="translateY(".concat(window.pageYOffset,"px)"))}))}),[]),k=(0,i.useCallback)((function(e){n(e)}),[n]);return(0,u.jsx)(v,{isMobile:s,style:o,ref:w,"data-testid":"".concat(y?"".concat(y,"_"):"","notification-container"),children:(0,u.jsx)(i.Suspense,{fallback:null,children:t.map((function(e,t){var n=e.guid,i=e.message,s=e.status;return(0,u.jsx)(g,{culture:l,status:s,message:i,onClose:function(){return k(n)},closeTime:r,styles:o.notification,testIdIndex:t,parentId:y},n||t)}))})})}y.defaultProps={culture:"en",isMobile:!1,style:{},closeTime:1.7,parentId:"",isSmall:!1},y.propTypes=l;const h=(0,i.memo)(y)},75251:(e,t,n)=>{var i=n(28416),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=i.__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 i,r={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,i)&&!l.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:o,type:e,key:u,ref:c,props:r,_owner:a.current}}t.Fragment=r,t.jsx=u,t.jsxs=u},85893:(e,t,n)=>{e.exports=n(75251)}}]);