"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{8555:(e,t,n)=>{n.d(t,{y:()=>d});var r=n(84427),a=n(34940),o=function(e){var t=e.scripts;return(0,r.jsx)(r.Fragment,{children:Array.isArray(t)&&t.filter(function(e){return"body"===e.location}).map(function(e,t){return(0,r.jsx)(a.A,{scriptTag:e},t)})})},i=n(14482),s=n(93342),d=function(e){var t=e.adScripts,n=e.scriptIds,a=e.scriptCanBeLoaded;if((null==t?void 0:t.length)<1)return(0,r.jsx)(r.Fragment,{});var d=t.filter(function(e){var t;return n.includes((null==(t=null==e?void 0:e.attributes)?void 0:t.id)||"")}),l=d.filter(function(e){var t;return s.DY.includes((null==(t=null==e?void 0:e.attributes)?void 0:t.id)||"")});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o,{scripts:l}),(0,r.jsx)(i.ConsentScript,{scriptCanBeLoaded:void 0===a||a,children:(0,r.jsx)(o,{scripts:d})})]})}},27982:(e,t,n)=>{n.d(t,{Cu:()=>r,Wo:()=>o,cV:()=>i,hL:()=>s}),function(e){e.Total="true",e.Partial="partial",e.None="false"}(r||(r={})),function(e){e.Gam="GAM",e.Taboola="TABOOLA",e.Adsense="ADSENSE"}(a||(a={})),function(e){e.BEFORE_AD="before-ad",e.AFTER_AD="after-ad",e.BEFORE_REWARD="before-reward",e.AD_DELAYED="ad-delayed",e.AD_DISMISSED="ad-dismissed",e.AD_BREAK_DONE="ad-break-done",e.AD_REQUESTED="ad-requested",e.AD_FAILED="ad-failed",e.AD_SUCCESS="ad-success",e.AD_VIEWED="ad-viewed",e.ALL_ADS_FAILED="all-ads-failed",e.AD_MISSING="ad-missing",e.AD_CLOSED="ad-closed",e.AD_LOADED="ad-loaded",e.NOT_SUPPORTED="not-supported",e.FREQUENCY_CAPPED="frequency-capped",e.AD_SESSION_START="ad-session-start",e.AD_SESSION_CLOSED="ad-session-closed"}(o||(o={})),function(e){e.AD_SPOT="ad-spot",e.AD_DEMAND_SOURCE="ad-demand-source",e.AD_SIZES_REQUESTED="ad-sizes-requested",e.AD_SIZE="ad-size",e.AD_ERROR="error",e.IS_AD_BLOCKED="is-ad-blocked",e.ADS_SDK_VERSION="ads-sdk-version"}(i||(i={}));var r,a,o,i,s=["mgidDisplayRewarded","adsenseDisplayRewarded","taboolaDisplayRewarded","inuxuDisplayRewarded","gamDisplayRewarded"]},37135:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(11296),a=n(78299),o=function(){var e=(0,a.useState)({isPortrait:!1,orientation:null,ready:!1}),t=(0,r.A)(e,2),n=t[0],o=t[1];return(0,a.useEffect)(function(){var e=window.matchMedia("(orientation: portrait)"),t=function(){o({isPortrait:e.matches,orientation:e.matches?"portrait":"landscape",ready:!0})};return t(),e.addEventListener?e.addEventListener("change",t):e.addListener(t),function(){e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}},[]),n}},39332:(e,t,n)=>{n.d(t,{FullscreenAdProviderClient:()=>w,H:()=>L});var r=n(11296),a=n(84427),o=n(78299),i=n(85882),s=n(82711),d=n(96362),l=n(27982),c=n(63793),u={container:"styles-module_container__4UqPt",showAdPrompt:"styles-module_showAdPrompt__I-ppi",hideAdPrompt:"styles-module_hideAdPrompt__bBESn",adContainer:"styles-module_adContainer__m2aD7",adBox:"styles-module_adBox__KF-lv",topBar:"styles-module_topBar__wVdNP",topBarText:"styles-module_topBarText__usEIp",topBarTextLeftAligned:"styles-module_topBarTextLeftAligned__Ug-2A",closeAdContainer:"styles-module_closeAdContainer__TeMfj",rewardLabel:"styles-module_rewardLabel__o3T5m",crossArrow:"styles-module_crossArrow__2i-as",crossArrowSvg:"styles-module_crossArrowSvg__Wowrx"};(0,c.A)(".styles-module_container__4UqPt{align-items:center;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);background-color:rgba(0,0,0,.5);bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;width:100%;z-index:9999}.styles-module_showAdPrompt__I-ppi{opacity:1}.styles-module_hideAdPrompt__bBESn{opacity:0;pointer-events:none}.styles-module_adContainer__m2aD7{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%;z-index:10000}.styles-module_adBox__KF-lv{align-items:center;background-color:#fff;border-radius:10px;display:flex;flex-direction:column;min-height:300px;min-width:320px;padding:0 10px 10px;position:relative}.styles-module_topBar__wVdNP{align-items:center;display:flex;flex-direction:row;height:43px;width:100%}.styles-module_topBarText__usEIp{color:#000;font-size:20px;font-weight:700;margin:auto;text-align:center}.styles-module_topBarTextLeftAligned__Ug-2A{margin-left:10px}.styles-module_closeAdContainer__TeMfj{display:flex;position:absolute;right:10px}.styles-module_rewardLabel__o3T5m{color:#737373;font-size:12px;font-weight:500}.styles-module_crossArrow__2i-as{height:24px;width:24px}.styles-module_crossArrowSvg__Wowrx,.styles-module_rewardLabel__o3T5m .styles-module_crossArrowSvg__Wowrx{fill:currentColor;color:#595959}");var p=function(){return(0,a.jsx)("div",{className:u.crossArrow,children:(0,a.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",className:u.crossArrowSvg,children:[(0,a.jsx)("path",{d:"M38 12.83L35.17 10 24 21.17 12.83 10 10 12.83 21.17 24 10 35.17 12.83 38 24 26.83 35.17 38 38 35.17 26.83 24z"}),(0,a.jsx)("path",{d:"M0 0h48v48H0z",fill:"none"})]})})},_=n(64405),m=function(e){var t=e.adSpot,n=e.children,i=L(),c=i.setShowDisplayAd,m=(0,i.getAdSpotState)(t),f=m.adToRender,x=m.handleAdEvent,y=(0,d.L)(5),A=y.isCompleted,S=y.time,v=y.start,D=y.reset,h=(0,o.useState)(!1),b=(0,r.A)(h,2),E=b[0],g=b[1],w=(0,o.useState)(!1),C=(0,r.A)(w,2),j=C[0],B=C[1],I=(0,o.useState)(!1),k=(0,r.A)(I,2),N=k[0],R=k[1],O=(0,o.useRef)(!1),P=(0,o.useRef)([]),T=(0,o.useRef)(null),F=(0,_.lB)().isSmartTV,M=(0,o.useCallback)(function(){P.current.forEach(clearTimeout),P.current=[],D(),g(!1),B(!1),c(t,!1)},[D,c,t]),U=(0,o.useCallback)(function(e){var t=setTimeout(function(){return B(!0)},e);P.current.push(t)},[]),z=(0,o.useCallback)(function(){M(),O.current?N&&!A&&(null==x||x(l.Wo.AD_DISMISSED,f)):null==x||x(l.Wo.AD_FAILED,f),null==x||x(l.Wo.AD_SESSION_CLOSED,f)},[M,x,f,N,A]),W=(0,o.useCallback)(function(e){var n,r,a=null==(n=e.detail)?void 0:n.data;if(a&&a["ad-spot"]===t&&f){var o=null==(r=e.detail)?void 0:r.name,i=l.Wo;"ad-requested"===o&&(null==x||x(i.AD_REQUESTED,f)),"ad-loaded"===o&&(null==x||x(i.AD_LOADED,f),N&&v(),g(!0),O.current=!0),"ad-viewed"===o&&(null==x||x(i.AD_VIEWED,f)),"ad-delayed"===o&&(null==x||x(i.AD_DELAYED,f)),"ad-failed"===o&&(null==x||x(i.AD_FAILED,f),O.current=!0)}},[t,f,x,N,v]);return(0,o.useEffect)(function(){return R(l.hL.includes(null!=f?f:"")),window.addEventListener("event-analytics",W),function(){return window.removeEventListener("event-analytics",W)}},[f,W]),(0,o.useEffect)(function(){E&&U(N?5e3:2e3)},[E,N,U]),(0,o.useEffect)(function(){j&&T.current&&T.current.focus()},[j]),(0,o.useEffect)(function(){var e=function(e){("Backspace"===e.key||"Escape"===e.key||"Enter"===e.key||"OK"===e.key)&&j&&(e.preventDefault(),z())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[j,z]),(0,a.jsx)("div",{className:(0,s.$)(u.container,F&&(null==f?void 0:f.includes("adsenseDisplay"))||E?u.showAdPrompt:u.hideAdPrompt),children:(0,a.jsx)("div",{className:u.adContainer,children:(0,a.jsxs)("div",{className:u.adBox,children:[(0,a.jsxs)("div",{className:u.topBar,children:[(0,a.jsx)("div",{className:(0,s.$)(u.topBarText,u.topBarTextLeftAligned),children:"Ad"}),(0,a.jsxs)("div",{className:u.closeAdContainer,children:[!A&&N&&(0,a.jsx)("div",{className:u.rewardLabel,children:(0,a.jsxs)("p",{children:["Reward in ",S," seconds"]})}),j&&(0,a.jsx)("button",{ref:T,onClick:z,"data-testid":"close-ad","aria-label":"Close advertisement",children:(0,a.jsx)(p,{})})]})]}),n]})})})},f=n(93342),x=n(47345),y={adContainer:"styles-module_adContainer__X-owK"};(0,c.A)(".styles-module_adContainer__X-owK{min-height:250px;min-width:300px}");var A=n(37135),S=n(8555),v=function(e){var t,n=e.adSpot,r=e.options,o=e.adTag,i=L(),s=i.adUnitData,d=i.consentState,l=i.country,c=i.isGDPRNation,u=i.product,p=i.domain,m=i.getAdSpotState,v=(0,A.M)(),D=v.isPortrait,h=v.ready;if(!s||!h)return null;var b=s.adUnits,E=s.adScripts,g=s.adConfig,w=d.scriptCanBeLoaded,C=m(n).adToRender,j=(0,_.lB)().isSmartTV;return(0,a.jsx)(x.default,{id:n,product:u,country:l,isGDPRNation:c,adUnits:b,prebidAdSlots:[],demandSource:(null==C?void 0:C.includes("gamDisplay"))?{primaryDemandSource:"gamDisplay300x250NoPrebidNoAPS",fallbackDemandSource:[]}:(null==C?void 0:C.includes("inuxuDisplay"))?{primaryDemandSource:D?"inuxuDisplay320x480":"inuxuDisplay300x250",fallbackDemandSource:[]}:(null==C?void 0:C.includes("adsenseDisplay"))?{primaryDemandSource:D?"adsenseDisplay320x480":j?"adsenseDisplay970x250":"adsenseDisplay300x250",fallbackDemandSource:[]}:{primaryDemandSource:"mgidDisplay300x250",fallbackDemandSource:[]},adTag:o,propertyId:g.propertyId,className:y.adContainer,options:r,adsenseFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.kZ,scriptCanBeLoaded:w}),consentState:d,gamFetchScript:(0,a.jsx)(S.y,{scriptIds:f.Yg,adScripts:E,scriptCanBeLoaded:w}),taboolaFetchScript:(0,a.jsx)(S.y,{scriptIds:f.t7,adScripts:E,scriptCanBeLoaded:w}),apsFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.Vd,scriptCanBeLoaded:w}),prebidFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.$W,scriptCanBeLoaded:w}),yandexFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.mF,scriptCanBeLoaded:w}),mgidFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.gy,scriptCanBeLoaded:w}),inuxuFetchScript:(0,a.jsx)(S.y,{adScripts:E,scriptIds:f.c9,scriptCanBeLoaded:w}),customParams:Object.assign(Object.assign({},null!=(t=null==r?void 0:r.customParams)?t:{}),{domain:p}),fullscreenDemand:C})},D=function(e){var t=e.adSpot,n=e.options,r=((null==n?void 0:n.containerId)?document.getElementById(n.containerId):null)||document.body;return(0,i.createPortal)((0,a.jsx)(m,{adSpot:t,children:(0,a.jsx)(v,{options:n,adSpot:t})}),r)},h={container:"style-module_container__gZBmb",fullscreen_mode:"style-module_fullscreen_mode__uEqI7",container_mode:"style-module_container_mode__etV-t",loader_container:"style-module_loader_container__BB-lM",loader:"style-module_loader__2oS3u",ad_text:"style-module_ad_text__rnZZ4"};(0,c.A)('.style-module_container__gZBmb{align-items:center;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);bottom:0;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;top:0;width:100%}.style-module_fullscreen_mode__uEqI7{position:fixed;z-index:9999}.style-module_container_mode__etV-t{position:absolute;z-index:50}.style-module_container__gZBmb:before{backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);background:rgba(52,58,65,.6);content:"";inset:0;position:absolute;z-index:-1}.style-module_loader_container__BB-lM{align-items:center;display:flex;height:200px;justify-content:center;position:relative;width:200px}.style-module_loader__2oS3u{animation:style-module_rotation__QZObd 1s linear infinite;border:5px solid;border-color:#fff #fff transparent;border-radius:50%;box-sizing:border-box;height:80px;position:absolute;width:80px}.style-module_ad_text__rnZZ4{border:2px solid #fff;border-radius:5px;color:#fff;font-size:16px;font-weight:800;left:50%;padding:2px;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes style-module_rotation__QZObd{0%{transform:rotate(0)}to{transform:rotate(1turn)}}');var b=function(e){var t=e.adSpot,n=(0,L().getAdSpotState)(t),r=n.isLoaderOpen,s=n.containerId,d=(0,o.useMemo)(function(){return s&&document.getElementById(s)||document.body},[s]),l=(0,a.jsx)("div",{className:"".concat(h.container," ").concat(s?h.container_mode:h.fullscreen_mode),children:(0,a.jsxs)("div",{className:h.loader_container,children:[(0,a.jsx)("div",{className:h.loader}),(0,a.jsx)("div",{className:h.ad_text,children:"AD"})]})});return r?(0,i.createPortal)(l,d):null},E=n(93176),g=(0,o.createContext)(null),w=function(e){var t,n,i=e.children,s=e.adUnitData,d=e.consentState,l=e.country,c=e.isGDPRNation,u=e.product,p=e.domain,_=(0,o.useRef)({}),m=(0,o.useState)([]),f=(0,r.A)(m,2),x=f[0],y=f[1],A=(0,o.useState)(null),S=(0,r.A)(A,2),v=S[0],h=S[1],w=(0,o.useState)({}),L=(0,r.A)(w,2),C=L[0],j=L[1],B=(0,o.useState)(d),I=(0,r.A)(B,2),k=I[0],N=I[1],R=function(e){return _.current[e]||(_.current[e]={adToRender:null,fallbackDemand:[],currentDemand:null,timeoutRef:null,sendCallbackRef:null,handleAdEvent:function(){},showDisplayAd:!1,adOptions:void 0,isLoaderOpen:!1,isSessionActive:!1,isPreloadActive:!1,containerId:void 0}),_.current[e]},O=function(e,t){var n=R(e);n.showDisplayAd=t,j(function(r){var a=Object.assign({},r);return t?a[e]=n.adOptions:delete a[e],a})},P=function(e,t){R(e).adOptions=t},T=function(e,t){R(e).containerId=t},F=function(e){R(e).isLoaderOpen=!0,h(e)},M=function(e){R(e).isLoaderOpen=!1,h(function(t){return t===e?null:t})},U=(0,o.useMemo)(function(){return{consentState:k,adUnitData:s,country:l,isGDPRNation:c,product:u,domain:p,adNetwork:x,setAdNetwork:y,getAdSpotState:R,setShowDisplayAd:O,triggerLoader:F,closeLoader:M,setAdOptions:P,setContainerId:T}},[s,k,l,c,u,p,x]);return(0,E.XB)(function(e){N(e)}),(0,a.jsx)(g.Provider,{value:U,children:(0,a.jsxs)(a.Fragment,{children:[i,v&&(null==(n=null==(t=R(v))?void 0:t.adOptions)?void 0:n.showLoader)&&(0,a.jsx)(b,{adSpot:v},v),Object.entries(C).map(function(e){var t=(0,r.A)(e,2),n=t[0],o=t[1];return(0,a.jsx)(D,{adSpot:n,options:o},n)})]})})},L=function(){var e=(0,o.useContext)(g);if(!e)throw Error("useFullscreenAdContext must be used within a FullscreenAdProviderClient");return e}},96362:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(11296),a=n(78299),o=function(e){var t=(0,a.useState)(e),n=(0,r.A)(t,2),o=n[0],i=n[1],s=(0,a.useState)(!0),d=(0,r.A)(s,2),l=d[0],c=d[1],u=(0,a.useState)(!1),p=(0,r.A)(u,2),_=p[0],m=p[1],f=(0,a.useState)(!0),x=(0,r.A)(f,2),y=x[0],A=x[1];return(0,a.useEffect)(function(){var e;return _&&o>0&&!l&&(e=setInterval(function(){i(function(t){return t-1==0?(A(!0),clearInterval(e),0):t-1})},1e3)),function(){return clearInterval(e)}},[_,l,o]),{time:o,isPaused:l,isRunning:_,isCompleted:y,start:function(){m(!0),c(!1),A(!1)},pause:function(){c(!0)},resume:function(){c(!1)},reset:function(){i(e),m(!1),c(!0),A(!0)},skipCountdown:function(){A(!0)}}}}}]);