(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{79424:function(e,t,a){var r={"./draw/arrow-right-icon.svg":22606,"./draw/lecar/crown_icon.svg":68723,"./draw/lecar/lecar_tbank_logo.svg":99203,"./draw/lock-icon-small.svg":18514,"./draw/lock-icon.svg":7581,"./draw/statistics-bg.svg":60168,"./empty.svg":41305,"./energy/energy-streak-beams.svg":13878,"./energy/stamp.svg":40018,"./gift.svg":31631,"./icons/copied.svg":51573,"./icons/copy-new.svg":35792,"./icons/copy.svg":10888,"./icons/energy.svg":74319,"./icons/lock.svg":85982,"./icons/question-icon.svg":74105,"./icons/tools_icon.svg":58355,"./landing/v2/intro/logo-0506.svg":72003,"./landing/v2/intro/shape-01.svg":21325,"./landing/v2/intro/shape-02.svg":64866,"./landing/v2/intro/shape-03.svg":89683,"./landing/v2/intro/shape-04.svg":12440,"./landing/v2/intro/shape-05.svg":3850,"./landing/v2/intro/shape-06.svg":57605};function webpackContext(e){return a(webpackContextResolve(e))}function webpackContextResolve(e){if(!a.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=79424},22606:function(e,t,a){"use strict";a.r(t);var r,i,n=a(64352);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e=(0,eT.C5)(),[t,a]=(0,eC.useState)({width:e.innerWidth,height:e.innerHeight});return(0,eC.useEffect)(()=>{var onResize=()=>{a({width:Math.max(Math.min(e.innerWidth,e.screen.width),320),height:Math.max(Math.min(e.innerHeight,e.screen.height),320)})};return onResize(),(0,eM.C)(e,onResize),()=>{(0,eM.D)(e,onResize)}},[e]),t},eE=a(8572),eL=a.n(eE),eR=a(77442),drawRectangle=(e,t,a)=>{e.beginPath(),e.fillRect(-t/2,-a/2,t,a),e.closePath()},drawEllipse=(e,t,a)=>{e.beginPath(),e.ellipse(0,0,t,a,0,0,2*Math.PI),e.fill(),e.closePath()},drawStar=(e,t,a,r)=>{var i=Math.PI/2*3,n=0,o=0,s=Math.PI/t;e.beginPath(),e.moveTo(0,0-a);for(var l=0;l(-t-Math.sqrt(t*t+8*t*e))/2,ConfettiOverlay=e=>{var{isVisible:t,onClose:a}=e,[r,i]=(0,eC.useState)(t),n=(0,eC.useRef)(null),[o,s]=(0,eC.useState)(Date.now());(0,eC.useEffect)(()=>{i(t)},[t]),(0,eC.useEffect)(()=>{r||s(Date.now())},[r]);var l=useWindowSize(),c=(0,eC.useMemo)(()=>getConfettiParticleInitialVelocityY(l.height,.08),[l.height]),hide=()=>{r&&(i(!1),a())};return(0,eh.jsx)("div",{ref:n,className:eB()(eD().root,eD().animated,{[eD().visible]:r}),onClick:hide,children:(0,eh.jsx)(eL(),{recycle:!1,run:r,drawShape:drawRandomShape,numberOfPieces:0===l.height?0:300,width:l.width,height:l.height,gravity:.08,tweenDuration:1e3,initialVelocityY:{min:c,max:0},confettiSource:{x:0,y:l.height,w:l.width,h:0},onConfettiComplete:hide},o)})},eP=a(69527),eG=a.n(eP),eA=a(81821),eH=a.n(eA),useTilesContainerSize=(e,t)=>{var a=(0,eT.C5)(),r=(0,eC.useRef)(null),i=(0,eC.useRef)(null),[n,o]=(0,eC.useState)({width:0,height:0}),[s,l]=(0,eC.useState)(eS.A1),c=(0,eC.useRef)(n),d=(0,eC.useCallback)(()=>{if(r.current){var{clientWidth:n,clientHeight:s}=r.current,u=(e-1)*eS.XN,m=(t-1)*eS.Ir,{width:_,height:p}=calcOptimalTileSize((n-u)/e,(s-m)/t,eS.dj);if(_<=eS.kS||p<=eS.kS){i.current&&clearTimeout(i.current),i.current=a.setTimeout(d);return}var g={width:_*e+u,height:p*t+m};(c.current.width!==g.width||c.current.height!==g.height)&&(o(g),l(p/2),c.current=g),i.current&&clearTimeout(i.current),i.current=a.setTimeout(d,500)}},[e,t,a]);return(0,eC.useEffect)(()=>(d(),(0,eM.C)(a,d),()=>(0,eM.D)(a,d)),[d,a]),(0,eC.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),{rootContainerRef:r,tilesContainerSize:n,fontSize:s,gridHorizontalGap:eS.XN,gridVerticalGap:eS.Ir}};function calcOptimalTileSize(e,t,a){var r=Math.max(eS.kS,e),i=Math.max(eS.kS,t);return r/i>a?{width:a*i,height:i}:{width:r,height:r/a}}var eO=a(89899),eV=a.n(eO),eW=a(61267),eF=a(48656),eU=a.n(eF);(r=E||(E={})).Enter="enter",r.Flip="flip";var TileLegacy=e=>{var{row:t,column:a,letter:r,evaluation:i,onFlipAnimationFinish:n,className:o}=e,s=(0,eC.useRef)(null),[l,c]=(0,eC.useState)(null),[d,u]=(0,eC.useState)(!1);(0,eC.useEffect)(()=>{i?c("flip"):c(r?"enter":null)},[i,r]);var m=(0,eC.useMemo)(()=>{var e={};return"flip"===l&&(e.animationDelay="".concat(500*a/2,"ms"),e.animationDuration=d?"":"".concat(500,"ms")),e},[l,a,d]);return(0,eC.useEffect)(()=>{"flip"!==l&&u(!1)},[l]),(0,eh.jsxs)("div",{ref:s,className:eB()(eU().root,o,{[eU().animationFinished]:d}),"data-animation":l,"data-evaluation":i,"data-row":t,"data-column":a,style:m,onAnimationEnd:()=>{"flip"!==l||d||(null==n||n(),u(!0))},children:[(0,eh.jsx)("span",{className:eU().front,children:null!=r?r:eW.Ed}),(0,eh.jsx)("span",{className:eU().back,children:null!=r?r:eW.Ed})]})},eZ=a(23008),ez=a(43061),eq=a(85747),eK=a.n(eq),getTileFlipAnimationDelayMs=(e,t)=>200*t+e*(400/eS.Do*2),getTileFlipBackAnimationDelayMs=(e,t,a)=>{var r=200/eS.Do*2;return(eS.l$-1-a)*100+(t-e)*r};(i=L||(L={})).Enter="enter",i.Flip="flip",i.FlipBack="flipBack";var Tile=e=>{var{row:t,column:a,lastNotEmptyRow:r,letter:i,evaluation:n,onFlipAnimationFinish:o,className:s}=e,l=(0,eC.useRef)(null),[c,d]=(0,eC.useState)(null),[u,m]=(0,eC.useState)(!1),[_,p]=(0,eC.useState)(i),[g,h]=(0,eC.useState)(n);(0,eC.useEffect)(()=>{n?(p(i),h(n),d("flip")):g?d("flipBack"):i?(p(i),d("enter")):(p(void 0),d(null))},[n,g,i]),(0,eC.useEffect)(()=>{"flip"!==c&&m(!1)},[c]);var f=(0,eC.useMemo)(()=>{var e={};return"flip"===c?(e.animationDelay="".concat(getTileFlipAnimationDelayMs(t,a),"ms"),e.animationDuration=u?"":"".concat(400,"ms")):"flipBack"===c&&(e.animationDelay="".concat(getTileFlipBackAnimationDelayMs(t,r,a),"ms"),e.animationDuration="".concat(400,"ms")),e},[r,c,a,u,t]);return(0,eh.jsxs)("div",{ref:l,className:eB()(eK().root,s,{[eK().flipAnimationFinished]:u}),"data-animation":c,"data-evaluation":g,"data-row":t,"data-column":a,style:f,onAnimationEnd:()=>{"flip"!==c||u||(null==o||o(),m(!0)),"flipBack"!==c||u||(p(i),h(n),null==o||o(),m(!0))},children:[(0,eh.jsx)("span",{className:eK().front,children:u||"flipBack"===c?eW.Ed:null!=_?_:eW.Ed}),(0,eh.jsx)("span",{className:eK().back,children:null!=_?_:eW.Ed})]})},Row=e=>{var{row:t,columnCount:a,gridGap:r,word:i,evaluation:n,onFinishRowAnimation:o,status:s=null,className:l,style:c,isTotallyOverlayed:d,overlayedTiles:u,isTileFlipBackAnimationEnabled:m,lastNotEmptyRow:_=0}=e,[p,g]=(0,eC.useState)(0),[h,f]=(0,eC.useState)(null),[x,v]=(0,eC.useState)(!1),w=(0,eC.useRef)(null),C=(0,eC.useRef)(null),b=(0,eT.C5)(),j=p===a,setWin=()=>{C.current=b.setTimeout(()=>{v(!0)},350)};(0,eC.useEffect)(()=>()=>{C.current&&b.clearTimeout(C.current)},[b]),(0,eC.useEffect)(()=>{h?(h===ez.mJ.Correct||h===ez.mJ.ReplacedToCorrect)&&j&&setWin():(g(0),v(!1))},[h,j]),(0,eC.useEffect)(()=>f(s),[s]);var onLastTileFinishFlipOut=()=>{!(h===ez.mJ.Correct||h===ez.mJ.ReplacedToCorrect)&&o&&o()},k=h===ez.mJ.NotInWordList||h===ez.mJ.IsDuplicate,y=eB()(eV().root,{[eV().invalid]:k,[eV().win]:x},l),S=m?Tile:TileLegacy;return(0,eh.jsx)("div",{ref:w,className:y,"data-row":t,onAnimationEnd:e=>{o&&(e.target===w.current?o():x&&j&&o())},style:c,children:(0,eZ.i7)(a).map(e=>{var a=i?i[e]:void 0,o=n?n[e]:void 0,s=!d&&u&&u.some(a=>a.row===t&&a.column===e);return(0,eh.jsx)("div",{"data-overlayed":s,className:eV().tileWrapper,style:{marginLeft:0===e?0:r,animationDelay:x?"".concat(100*e,"ms"):""},children:(0,eh.jsx)(S,{row:t,lastNotEmptyRow:_,column:e,className:eV().tile,letter:a,evaluation:o,onFlipAnimationFinish:()=>{g(e=>e+1),e===eS.l$-1&&onLastTileFinishFlipOut()}})},e)})})},eY=a(49221),getLastNotEmptyRow=(e,t)=>e.filter(e=>e.trim().length===t).length-1,useLastNotEmptyRow=(e,t)=>{var[a,r]=(0,eC.useState)(()=>getLastNotEmptyRow(e,t));return(0,eC.useEffect)(()=>{var a=getLastNotEmptyRow(e,t);-1!==a&&r(a)},[t,e]),a},Field=e=>{var{columnCount:t,rowCount:a,currentRowIndex:r,currentRowStatus:i,words:n,letterEvaluations:o,onFinishRowAnimation:s,isTotallyOverlayed:l,overlayedTiles:c,isTilesFlipBackAnimationEnabled:d}=e,{rootContainerRef:u,tilesContainerSize:m,fontSize:_,gridHorizontalGap:p,gridVerticalGap:g}=useTilesContainerSize(t,a),h=m.width>0&&m.height>0,f=useLastNotEmptyRow(n,t);return(0,eh.jsx)("div",{ref:u,id:eW.O.Field,"data-qa":eY.BE.Game.Field.root,className:eH().root,children:h&&(0,eh.jsx)("div",{className:eH().tiles,style:{fontSize:_,width:"".concat(m.width,"px"),height:"".concat(m.height,"px")},"data-overlayed":l,children:(0,eZ.i7)(a).map(e=>(0,eh.jsx)(Row,{row:e,lastNotEmptyRow:f,columnCount:t,gridGap:p,word:n[e],evaluation:o[e],status:e===r?i:null,onFinishRowAnimation:e===r?s:null,className:eH().row,style:{marginTop:0===e?0:g,zIndex:a-e},isTotallyOverlayed:l,overlayedTiles:c,isTileFlipBackAnimationEnabled:d},e))})})},eX=a(70353),eQ=a.n(eX),eJ=a(51534),BackspaceIcon=e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{className:t,width:"23",height:"17",viewBox:"0 0 23 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("path",{d:"M10.5614 5.76318C10.2845 5.48301 10.2845 5.0288 10.5614 4.74863C10.8383 4.46846 11.2872 4.46846 11.5641 4.74863L13.9038 7.11594L16.2433 4.74863C16.5202 4.46846 16.9691 4.46846 17.246 4.74863C17.5228 5.02874 17.5228 5.48301 17.246 5.76318L14.9063 8.13043L17.246 10.4977C17.5228 10.7779 17.5228 11.2321 17.246 11.5122C16.9691 11.7924 16.5202 11.7924 16.2433 11.5122L13.9038 9.14499L11.5641 11.5122C11.2872 11.7924 10.8383 11.7924 10.5615 11.5122C10.2845 11.2321 10.2845 10.7779 10.5615 10.4977L12.9011 8.13049L10.5614 5.76318Z",fill:"currentColor"}),(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.63745 0.840459L0.432739 8.13043L7.63745 15.4204C8.16932 15.9586 8.89067 16.2609 9.64283 16.2609H19.3394C20.9057 16.2609 22.1754 14.9761 22.1754 13.3913V2.86957C22.1754 1.28474 20.9057 0 19.3394 0H9.64283C8.89067 0 8.16932 0.302358 7.63745 0.840459ZM19.3394 15.0174H9.64283C9.21655 15.0174 8.80781 14.8461 8.50639 14.5411L2.17074 8.13043L8.50639 1.71974C8.80781 1.41482 9.21655 1.24347 9.64283 1.24347H19.3394C20.2269 1.24347 20.9464 1.97148 20.9464 2.86957V13.3913C20.9464 14.2894 20.2269 15.0174 19.3394 15.0174Z",fill:"currentColor"})]})},EnterIcon=e=>{var{className:t}=e;return(0,eh.jsx)("svg",{className:t,width:"16",height:"13",viewBox:"0 0 16 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eh.jsx)("path",{d:"M1.51724 5.4569C1.21729 5.17123 0.742561 5.18281 0.456897 5.48276C0.171233 5.78271 0.182812 6.25744 0.482759 6.5431L1.51724 5.4569ZM15.5644 1.49388C15.8372 1.18215 15.8056 0.708329 15.4939 0.435567C15.1822 0.162806 14.7083 0.194394 14.4356 0.506122L15.5644 1.49388ZM6.25 11L5.73276 11.5431L6.29927 12.0826L6.81443 11.4939L6.25 11ZM0.482759 6.5431L5.73276 11.5431L6.76724 10.4569L1.51724 5.4569L0.482759 6.5431ZM6.81443 11.4939L15.5644 1.49388L14.4356 0.506122L5.68557 10.5061L6.81443 11.4939Z",fill:"currentColor"})})},e$=a(84402),e0=eC.memo(e=>{var{onKeyPress:t,onBackspacePress:a,onEnterPress:r,lettersEvaluationsMap:i,isSubmittingWord:n,shouldClearCurrentRow:o,canSubmit:s,canClear:l,className:c,isTotallyOverlayed:d,overlayedKeys:u,accentKey:m,isQAModeEnabled:_}=e,isOverlayedKey=e=>!d&&!!u&&u.includes(e),onKeyPressHandler=e=>{var i=e.target.dataset.key;if(i){if(i===eJ.q7){r();return}if(i===eJ.Bs){a();return}t(i)}},p=0!==navigator.maxTouchPoints,renderKeys=e=>e.map(e=>{var t=i.get(e),a=t?eQ()[t]:null;return(0,eh.jsx)("button",{className:eB()(eQ().key,{[eQ().accent]:m===e},a),"data-key":e,"data-overlayed":isOverlayedKey(e),children:e},e)});return(0,eh.jsxs)("div",{id:eW.O.Keyboard,className:eB()(eQ().root,{[eQ().disabled]:n},c),onTouchEnd:e=>{!_&&p&&onKeyPressHandler(e)},onClick:e=>{(_||!p)&&onKeyPressHandler(e)},"data-overlayed":d,children:[(0,eh.jsx)("div",{className:eQ().row,children:renderKeys(eJ.AQ)}),(0,eh.jsxs)("div",{className:eQ().row,children:[(0,eh.jsx)("div",{className:eQ().halfKeySpace}),renderKeys(eJ.DU),(0,eh.jsx)("div",{className:eQ().halfKeySpace})]}),(0,eh.jsxs)("div",{className:eQ().row,children:[(0,eh.jsx)("button",{className:eB()(eQ().key,eQ().wide,eQ().enter,{[eQ().accent]:m===eJ.q7,[eQ().enabled]:s}),"data-key":eJ.q7,"data-overlayed":isOverlayedKey(eJ.q7),children:n?(0,eh.jsx)(e$.a,{color:"black",className:eQ().loader}):(0,eh.jsx)(EnterIcon,{className:eQ().icon})}),renderKeys(eJ.QL),(0,eh.jsx)("button",{className:eB()(eQ().key,eQ().wide,eQ().backspace,{[eQ().accent]:m===eJ.Bs,[eQ().highlighted]:o,[eQ().enabled]:l}),"data-key":eJ.Bs,"data-overlayed":isOverlayedKey(eJ.Bs),children:(0,eh.jsx)(BackspaceIcon,{className:eQ().icon})})]})]})});e0.displayName="Keyboard";var Game=e=>{var{columnCount:t,rowCount:a,fieldWords:r,letterEvaluations:i,lettersEvaluationsMap:n,currentRowIndex:o,currentRowStatus:s,onFinishRowAnimation:l,fieldOverlayedTiles:c,isFieldTotallyOverlayed:d,keyboardContainerId:u,keyboardContainerClassName:m,keyboardContainerStyle:_,onKeyPress:p,onBackspacePress:g,onEnterPress:h,shouldClearCurrentRow:f,canSubmit:x,canClear:v,isSubmittingWord:w,keyboardOverlayedKeys:C,isKeyboardTotallyOverlayed:b,keyboardAccentKey:j,isQAKeyboardModeEnabled:k,isTilesFlipBackAnimationEnabled:y,children:S}=e;return(0,eh.jsxs)("div",{className:eG().root,children:[(0,eh.jsx)("div",{className:eG().fieldContainer,children:(0,eh.jsx)(Field,{columnCount:t,rowCount:a,words:r,letterEvaluations:i,currentRowIndex:o,currentRowStatus:s,onFinishRowAnimation:l,overlayedTiles:c,isTotallyOverlayed:d,isTilesFlipBackAnimationEnabled:y})}),(0,eh.jsx)("div",{id:u,className:m,style:_,children:(0,eh.jsx)(e0,{lettersEvaluationsMap:n,onKeyPress:p,onBackspacePress:g,onEnterPress:h,shouldClearCurrentRow:f,canSubmit:x,canClear:v,isSubmittingWord:w,isTotallyOverlayed:b,overlayedKeys:C,accentKey:j,isQAModeEnabled:k})}),S]})},e1=a(30929),e2=a(54717),e3=a.n(e2),e5=a(30934),e4=a(89811),e9=a.n(e4),GiftIcon=e=>{var{active:t=!1}=e,a=(0,eC.useRef)(Math.random()),r=(0,eC.useRef)("gift_icon_mask_".concat(Date.now(),"_").concat(a.current));return(0,eh.jsxs)("svg",{width:"23",height:"24",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:r.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"19",height:"20",children:[(0,eh.jsx)("path",{d:"M2.1976 7.18726V10.9204H20.8634V7.18726H2.1976Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M6.94891 2.52075H5.93077V4.38733C5.93077 5.93366 7.18432 7.18721 8.73064 7.18721H11.5305H14.3304C15.8767 7.18721 17.1303 5.93366 17.1303 4.38733V2.52075H14.3304C12.7841 2.52075 11.5305 3.7743 11.5305 5.32063C11.5305 3.7743 10.277 2.52075 8.73064 2.52075H6.94891Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M9.66393 10.9204H3.13089V21.1866H9.66393V10.9204ZM13.3971 10.9204V18.3867C13.3971 19.9331 12.1435 21.1866 10.5972 21.1866H16.197C18.2587 21.1866 19.9301 19.5152 19.9301 17.4534V10.9204H13.3971Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.3",d:"M13.3971 10.9204H9.66393V21.1866H10.5972C12.1435 21.1866 13.3971 19.9331 13.3971 18.3867V10.9204Z",fill:"black"})]}),(0,eh.jsx)("g",{mask:"url(#".concat(r.current,")"),children:(0,eh.jsx)("path",{className:"gift",d:"M0.331024 0.654053H22.73V23.053H0.331024V0.654053Z",fill:t?"#252525":"#676769"})})]})},StarIcon=()=>{var e=(0,eC.useRef)(Math.random()),t=(0,eC.useRef)("mask_".concat(Date.now(),"_").concat(e.current)),a=(0,eC.useRef)("gradient_".concat(Date.now(),"_").concat(e.current));return(0,eh.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:t.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"20",height:"20",children:[(0,eh.jsx)("path",{d:"M17.2991 19.6616L15.1625 13.0857L11 16.1099L16.5938 20.1741C16.953 20.435 17.4363 20.0839 17.2991 19.6616Z",fill:"url(#".concat(a.current,")")}),(0,eh.jsx)("path",{d:"M10.5649 1.6165C10.7021 1.19424 11.2995 1.19424 11.4367 1.61651L13.5734 8.19245H20.4877C20.9317 8.19245 21.1163 8.76061 20.7571 9.02159L15.1633 13.0857L11.0008 16.11L5.40698 20.1741C5.04778 20.4351 4.56448 20.084 4.70168 19.6617L6.83833 13.0857L1.2445 9.02159C0.885295 8.76061 1.0699 8.19245 1.5139 8.19245H8.42826L10.5649 1.6165Z",fill:"black"})]}),(0,eh.jsx)("g",{mask:"url(#".concat(t.current,")"),children:(0,eh.jsx)("path",{d:"M0 0H22V22H0V0Z",fill:"#252525"})}),(0,eh.jsx)("defs",{children:(0,eh.jsxs)("linearGradient",{id:a.current,x1:"13.2917",y1:"14.6666",x2:"17.4167",y2:"20.1666",gradientUnits:"userSpaceOnUse",children:[(0,eh.jsx)("stop",{stopOpacity:"0.6"}),(0,eh.jsx)("stop",{offset:"1",stopOpacity:"0.8"})]})})]})},e6=a(18734),e8=a.n(e6),e7=a(8626),Portal=e=>{var{selector:t,children:a}=e,r=document.querySelector(t);return r?e7.createPortal(a,r):null},te=a(54377),tt=a(36799),ta=a.n(tt);(n=R||(R={})).Absolute="absolute",n.Fixed="fixed",(o=P||(P={})).Light="light",o.Dark="dark";var tr={minDistanceToLeftOrRightEdge:8,minDistanceToTopEdge:8,tooltipVertical:15},ti=a(54435),isTooltipPropsByRect=e=>"targetRect"in e;function Tooltip(e){var{children:t,className:a,sourceClassName:r,isArrowOnTop:i,theme:n=P.Light,position:o=R.Fixed,isVisible:s=!0,borderRadius:l=8,offsets:c,contentMaxWidth:d,onClick:u,onPointerDownOutside:m,onPointerUpOutside:_}=e,p=(0,eC.useRef)(null),g=(0,eC.useRef)(null),[h,f]=(0,eC.useState)(!1),[x,v]=(0,eC.useState)(0),[w,C]=(0,eC.useState)(!1),[b,j]=(0,eC.useState)((0,te._)({},tr,c)),k=useWindowSize(),y=(0,eT.C5)(),{x:S,y:T}=isTooltipPropsByRect(e)?{x:e.targetRect.left+e.targetRect.width/2,y:e.targetRect.top}:{x:e.x,y:e.y};(0,eC.useEffect)(()=>{var isOutsideEvent=e=>{var t;return s&&h&&!(null===(t=p.current)||void 0===t?void 0:t.contains(e.target))},onPointerDown=e=>{isOutsideEvent(e)&&(null==m||m(e))},onPointerUp=e=>{isOutsideEvent(e)&&(null==_||_(e))};return y.document.addEventListener("pointerdown",onPointerDown),y.document.addEventListener("pointerup",onPointerUp),()=>{y.document.removeEventListener("pointerdown",onPointerDown),y.document.removeEventListener("pointerup",onPointerUp)}},[s,h,m,_,y.document]),(0,eC.useLayoutEffect)(()=>{var e=(0,te._)({},tr,c);c&&!(0,ti.BD)(e,b)&&j(e)},[c,b,k.width,h]),(0,eC.useLayoutEffect)(()=>{if(g.current){var e=g.current.getBoundingClientRect(),t=0,a=e.left,r=k.width-(e.left+e.width);a{var{dailyWord:t,onClickDetailsButton:a,onClickHideButton:r}=e,{Result:{thematicWordTooltip:{title:i,buttons:n}}}=(0,ts.r)("Modals"),o=(0,eT.Xu)();return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("p",{className:to().title,children:i}),(0,eh.jsx)("p",{className:to().description,children:null==t?void 0:t.description}),(0,eh.jsxs)("div",{className:to().buttons,children:[(0,eh.jsx)("a",{className:eB()(to().button,to().details),onClick:()=>{var e;a(),t.link&&(null===(e=o.tryCreateLink(t.link))||void 0===e||e.click())},children:null==t?void 0:t.linkText}),(0,eh.jsx)("a",{onClick:r,className:eB()(to().button,to().close),children:n.close})]})]})});function useElementBoundingRect(e,t){var a=(0,eT.C5)(),[r,i]=(0,eC.useState)(null),n=(0,eC.useCallback)(()=>"string"==typeof e?a.document.querySelector(e):e.current,[e,a.document]);(0,eC.useLayoutEffect)(()=>{var e,trySearchElement=()=>{var t=n();if(!t){i(null),e=a.setTimeout(trySearchElement,100);return}i(t.getBoundingClientRect())};return trySearchElement(),()=>{e&&a.clearTimeout(e)}},[n,a]);var o=(0,eC.useCallback)(()=>{var e=n();e&&i(e.getBoundingClientRect())},[n]);return(0,eC.useEffect)(()=>(a.addEventListener("transitionend",o,!0),a.addEventListener("scroll",o,!0),(0,eM.C)(a,o,!0),()=>{a.removeEventListener("transitionend",o,!0),a.removeEventListener("scroll",o,!0),(0,eM.D)(a,o,!0)}),[o,a]),t?[r,o]:r}(s=G||(G={}))[s.EntranceIos=eW.Zo.Slow]="EntranceIos",s[s.EntranceAndroid=eW.Zo.Moderate]="EntranceAndroid",s[s.Exit=eW.Zo.Moderate]="Exit",s[s.Min=100]="Min";var ThematicWordTooltip=e=>{var{isVisible:t,elementSelector:a,elementContainerSelector:r,hide:i,dailyWord:n,onClickDetailsButton:o,onClickHideButton:s}=e,[l,c]=useElementBoundingRect(a,!0),d=useElementBoundingRect(r),u=(0,eT.bU)(),m=(0,eC.useRef)(null),_=(0,eC.useRef)(!0),[p,g]=(0,eC.useState)(null),h=(0,eT.C5)();return((0,eC.useEffect)(()=>{if(l){var clearTimer=()=>m.current&&h.clearTimeout(m.current);return _.current?(clearTimer(),m.current=h.setTimeout(()=>{g(t),_.current=!1},u.isIos()?G.EntranceIos:G.EntranceAndroid)):g(t),()=>{clearTimer()}}},[l,u,t]),(0,eC.useEffect)(()=>{t&&c()},[t,c]),l&&d)?(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(Tooltip,{className:e8().tooltip,sourceClassName:e8().tooltipSource,isVisible:null!=p&&p,targetRect:l,offsets:u.isTablet()?{minDistanceToLeftOrRightEdge:d.left}:void 0,isArrowOnTop:!1,theme:P.Dark,onPointerDownOutside:i,children:(0,eh.jsx)(tl,{dailyWord:n,onClickDetailsButton:o,onClickHideButton:s})})}):null},tc=a(22552),ThematicWordTooltipContainer=e=>{var{isVisible:t,elementSelector:a,elementContainerSelector:r,hide:i}=e,n=(0,eT.rS)(),{dailyWord:o}=(0,eT.gT)();return o?(0,eh.jsx)(ThematicWordTooltip,{isVisible:t,elementSelector:a,elementContainerSelector:r,hide:i,dailyWord:o,onClickDetailsButton:()=>{null==i||i(),n.trackThematicWordAction(tc.C5.ClickDetails)},onClickHideButton:()=>{null==i||i(),n.trackThematicWordAction(tc.C5.ClickHideButton)}}):null};(l=A||(A={})).Modal="modal",l.Footer="footer";var CheckIcon=()=>{var e=(0,eC.useRef)(Math.random()),t=(0,eC.useRef)("mask_".concat(Date.now(),"_").concat(e.current)),a=(0,eC.useRef)("gradient_".concat(Date.now(),"_").concat(e.current));return(0,eh.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:t.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"2",width:"22",height:"17",children:[(0,eh.jsx)("path",{d:"M13.232 6.59304C15.3799 4.44515 18.8623 4.44515 21.0102 6.59304L9.34292 18.2603L5.45383 14.3712L13.232 6.59304Z",fill:"black"}),(0,eh.jsx)("path",{d:"M0.916016 9.83391C3.0639 7.68602 6.54631 7.68602 8.69419 9.83391L13.2315 14.3712L9.34237 18.2603L0.916016 9.83391Z",fill:"url(#".concat(a.current,")")})]}),(0,eh.jsx)("g",{mask:"url(#".concat(t.current,")"),children:(0,eh.jsx)("path",{d:"M0 0H22V22H0V0Z",fill:"#252525"})}),(0,eh.jsx)("defs",{children:(0,eh.jsxs)("linearGradient",{id:a.current,x1:"13.2315",y1:"14.3712",x2:"6.91268",y2:"18.6629",gradientUnits:"userSpaceOnUse",children:[(0,eh.jsx)("stop",{stopOpacity:"0.6"}),(0,eh.jsx)("stop",{offset:"1",stopOpacity:"0.4"})]})})]})},useVisibilityToggle=e=>{var[t,a]=(0,eC.useState)(e);return{isVisible:t,hide:(0,eC.useCallback)(()=>a(!1),[]),toggle:(0,eC.useCallback)(()=>a(e=>!e),[])}},td=a(97840),tu=a.n(td),TapAnimation=e=>{var{animationDurationMs:t=4500,animationIterationsCount:a=3,delayBetweenAnimationMs:r=1e3}=e,i=(0,eT.C5)(),[n,o]=(0,eC.useState)(!0),s=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{var startAnimation=()=>{s.current=i.setTimeout(()=>{o(!0),stopAnimation()},r)},stopAnimation=()=>{s.current=i.setTimeout(()=>{o(!1),startAnimation()},t)};return stopAnimation(),()=>{s.current&&i.clearTimeout(s.current)}},[t,r,i]),(0,eh.jsx)("div",{className:eB()(tu().root,{[tu().animated]:n}),style:{"--tap-animation-duration":"".concat(t/a,"ms")}})},AnswersGroup=e=>{var{context:t,className:a,items:r,withAnimation:i,isAnimated:n,isSliderMoving:o,isLightRender:s,withoutWord:l}=e,c=(0,eT.jf)(),d=(0,eT.gT)(),u=(0,eT.lH)(),m=(0,eT.rS)(),{isFinishedRightNow:_}=(0,eT.gT)(),{isVisible:p,hide:g,toggle:h}=useVisibilityToggle(_),f=t===A.Modal,x=r.filter(e=>e.isWon).length,v="".concat(100*x/(r.length-1),"%"),w=r.every(e=>e.isWon),C="".concat(eW.O.AnswerGroup,"_").concat(t);return((0,eC.useEffect)(()=>{o&&p&&g()},[g,o,p]),s)?(0,eh.jsx)(eh.Fragment,{}):(0,eh.jsxs)("div",{className:eB()(e9().root,a),id:C,children:[(0,eh.jsx)("div",{className:e9().progressWrapper,children:(0,eh.jsx)("div",{className:e9().progress,style:{width:v,maxWidth:i?"unset":"125%"}})}),r.map((e,a)=>{var i,o,{globalIndex:s,word:_,hasGift:x,isWon:v,isLoading:C}=e,b=s+1===u.totalCount,j=d.isThematicDailyWordActive&&b&&d.isWon,k=!p&&j&&f,y="AnswersHistoryItem_".concat(s,"_").concat(t),S=eB()(e9().round,{[e9().won]:v,[e9().animated]:w&&n});return(0,eh.jsxs)("div",{id:y,className:e9().item,children:[(0,eh.jsx)("div",{className:S,style:{animationDelay:v?"".concat(100*a,"ms"):"0ms"},onPointerDown:e=>j&&e.stopPropagation(),onClick:()=>{j&&f&&(p||m.trackThematicWordAction(tc.C5.OpenTooltip),h())},children:C?(0,eh.jsx)(e$.a,{}):(0,eh.jsxs)(eh.Fragment,{children:[k&&(0,eh.jsx)(TapAnimation,{}),(0,eh.jsx)("div",{className:e9().icon,children:(i=v?(0,eh.jsx)(CheckIcon,{}):"".concat(s+1),o=x&&c.isGiftsAvailable?(0,eh.jsx)(GiftIcon,{active:v}):i,j?(0,eh.jsx)(StarIcon,{}):o)})]})}),!l&&(0,eh.jsx)(eh.Fragment,{children:_&&!C?(0,eh.jsx)("p",{className:eB()(e9().word,{[e9().first]:0===a,[e9().last]:a==r.length-1}),children:_}):(0,eh.jsx)("div",{className:eB()(e9().wordPlaceholder,{[e9().animated]:v||C}),children:(0,eZ.i7)(eS.l$).map((e,t)=>(0,eh.jsx)("div",{className:e9().dot,style:{animationDelay:"".concat(100*t,"ms")}},t))})}),j&&(0,eh.jsx)(ThematicWordTooltipContainer,{isVisible:j&&f&&p,elementSelector:"#".concat(y),elementContainerSelector:"#".concat(eW.O.ResultModal),hide:g})]},y)})]})},tm=a(30615),t_=a(99672),tp=a(83925);(c=H||(H={}))[c.Idle=0]="Idle",c[c.MoveElementToHeader=1]="MoveElementToHeader",c[c.ShowNotification=2]="ShowNotification",c[c.Finish=3]="Finish";var useReceiveAnimation=e=>{var{HTMLElementId:t,onAnimationFinished:a}=e,r=(0,eT.gT)(),i=(0,eT.jf)(),[n,o]=(0,eC.useState)(0),[s,l]=(0,eC.useState)({opacity:0,pointerEvents:"none"}),c=(0,eC.useRef)([]);return(0,eC.useEffect)(()=>{var e=document.getElementById(t);if(e){var r=e.getBoundingClientRect();switch(n){case 1:l(e=>(0,tp._)((0,te._)({},e),{opacity:1,left:r.left,top:r.top})),c.current.push(window.setTimeout(()=>o(2),700));break;case 2:c.current.push(window.setTimeout(()=>{l(e=>(0,tp._)((0,te._)({},e),{pointerEvents:"unset"})),null==a||a(),o(3)},100))}}},[n,r,i]),(0,eC.useEffect)(()=>()=>{c.current.forEach(e=>window.clearTimeout(e))},[]),{hide:(0,eC.useCallback)(()=>{l(e=>(0,tp._)((0,te._)({},e),{opacity:0,pointerEvents:"unset"}))},[]),onClickReceive:e=>{if(0===n){var a=e.target,r=document.getElementById(t);if(r){var i=a.getBoundingClientRect(),s=r.getBoundingClientRect();l(e=>(0,tp._)((0,te._)({},e),{opacity:0,left:i.left+i.width/2-s.width/2,top:i.top+i.height/2-s.width/2})),c.current.push(window.setTimeout(()=>o(1),100))}}},htmlElementStyle:s}},hasLoadedWords=e=>e.some(e=>e.word),isNotActiveGroupNeighbour=(e,t)=>Math.abs(t-e)>1,tg=(0,ew.Pi)(e=>{var{isAnimated:t,className:a,context:r=A.Modal,withoutWords:i}=e,n=(0,eT.lH)(),o=(0,eT.rS)(),{isLoaded:s,isLoading:l,currentHistoryItemGroupsIndex:c,correctAnswerHistoryItemGroups:d,totalCount:u,loadNextCorrectAnswers:m}=n,_=(0,eC.useRef)(null),[p,g]=(0,eC.useState)(20),[h,f]=(0,eC.useState)(!1),[x,v]=(0,eC.useState)(c||0),w=(0,eC.useRef)(null),C=(0,eC.useRef)(null),b=(0,eC.useRef)(!1);return(0,eC.useEffect)(()=>{var e;s&&C.current&&null!==c&&(_.current=c,null===(e=C.current)||void 0===e||e.slideTo(c,b.current?600:0),b.current=!0)},[c,s]),(0,eC.useLayoutEffect)(()=>{if(w.current){var e=(w.current.clientWidth-48*t_.B)/(t_.B-1);e>0&&g(e)}},[]),(0,eC.useEffect)(()=>{h&&f(!1)},[h]),(0,eC.useEffect)(()=>{var e,t;l?null===(e=C.current)||void 0===e||e.disable():null===(t=C.current)||void 0===t||t.enable()},[l]),(0,eh.jsx)("div",{ref:w,className:eB()(e3().root,a,e3().visible,eW.hV),children:s?(0,eh.jsx)(e5.tq,{onSwiper:e=>C.current=e,onSliderFirstMove:()=>f(!0),spaceBetween:p,slidesPerView:1,onTransitionEnd:()=>{_.current&&C.current&&_.current!==C.current.activeIndex&&(o.trackSwipeProgress(),m(C.current.activeIndex))},onSlideChange:e=>v(e.activeIndex),children:d.map((e,a)=>{var n=e.every(e=>e.isWon);return(0,eh.jsx)(e5.o5,{children:(0,eh.jsx)("div",{className:e3().item,"data-group":a,children:(0,eh.jsx)(AnswersGroup,{items:e,context:r,isAnimated:(null===u?-1:Math.floor((u-1)/t_.B))===a&&n&&t,isSliderMoving:h,isLightRender:!hasLoadedWords(e)&&isNotActiveGroupNeighbour(x,a),withoutWord:i})})},"slide-".concat(a))})}):(0,eh.jsx)("div",{className:e3().item,children:(0,eh.jsx)(AnswersGroup,{items:(0,tm.R)(),context:r})})})}),th=a(42006),tf=a.n(th),useResultTitle=()=>{var{Result:{titles:e,thematicDayTitles:t}}=(0,ts.r)("Modals"),{isWon:a,isWonWithHelp:r,isThematicDailyWordActive:i,isFinished:n}=(0,eT.gT)(),{isGiftsAvailable:o}=(0,eT.jf)(),{hasGiftAtLastGame:s}=(0,eT.lH)(),l=(0,eC.useCallback)(()=>{var n=i?t:e;return r?n.winWithHelpTitle:a?o&&s?n.titleWithGifts:n.winTitle:n.loseTitle},[s,o,i,a,r,t,e]),[c,d]=(0,eC.useState)(()=>l());return(0,eC.useEffect)(()=>{n&&d(l)},[l,n]),c},tx=(0,ew.Pi)(e=>{var{isVisible:t,className:a}=e,r=(0,eT.T_)(),i=(0,eT.s9)(),n=(0,eT.lH)(),o=useResultTitle(),[s,l]=(0,eC.useState)(t),c=!n.isLoaded;return(0,eC.useEffect)(()=>{t&&l(!0)},[t]),(0,eh.jsx)("div",{className:eB()(tf().bottomProgressBarContainer,tf().animated,{[tf().visible]:t},a),children:(0,eh.jsx)("div",{"data-overlayed":r.isProgressOverlayed,"data-qa":eY.BE.Game.BottomProgressBar.root,className:tf().bottomProgressBar,onClick:()=>{i.showResultModal()},children:c?(0,eh.jsx)(e$.a,{qaTag:eY.BE.Game.BottomProgressBar.loader,className:tf().bottomBarLoader}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("p",{className:tf().bottomProgressBarTitle,children:o}),(0,eh.jsx)("div",{className:tf().historyContainer,children:s&&(0,eh.jsx)(tg,{context:A.Footer})})]})})})}),getProperty=(e,t)=>{var a=e.Mobile;return Object.keys(eW.RR).reverse().filter(e=>isNaN(Number(e))).some(r=>{var i=+eW.RR[r],n=e[r];if(t>=i&&n)return a=n,!0}),a},useAdaptiveProperty=e=>getProperty(e,useWindowSize().width);(d=O||(O={})).Primary="primary",d.Secondary="secondary",d.Dark="dark",d.DarkOnLight="dark-on-light",d.NeutralOnDark="neutral-on-dark",d.Flat="flat",d.FlatDark="flat-dark",d.Transparent="transparent",(u=V||(V={})).Large="large",u.Medium="medium",u.Small="small",u.ExtraSmall="extra-small";var tv=a(78117),tw=a.n(tv),tC=eC.forwardRef((e,t)=>{var{children:a,className:r,link:i,onClick:n,theme:o=O.Primary,size:s=V.Large,id:l,disabled:c,isLoading:d,qaTag:u,linkTarget:m,beforeContent:_}=e,p={className:eB()(tw().root,r,{[tw().disabled]:c,[tw().loading]:d}),onClick:n,"data-theme":o,"data-size":s,id:l,"data-qa":u};if(i){var g=(0,te._)({target:"".concat(m||"_blank"),rel:"noreferrer"},p);return(0,eh.jsxs)("a",(0,tp._)((0,te._)({ref:t,href:i},g),{children:[_,d?(0,eh.jsx)(e$.a,{color:"black",className:tw().loader}):a]}))}return(0,eh.jsxs)("a",(0,tp._)((0,te._)({},p),{ref:t,children:[_,d?(0,eh.jsx)(e$.a,{color:"black",className:tw().loader}):a]}))});tC.displayName="Button";var tb=a(55323),tj=a.n(tb),tk=a(57154),ty=a.n(tk),tS=eC.forwardRef((e,t)=>{var{aspectRatio:a,id:r,className:i,style:n,children:o}=e;return(0,eh.jsx)("div",{ref:t,id:r,className:i,style:(0,te._)({},n),children:(0,eh.jsx)("div",{className:ty().box,style:{"--aspect-ratio":a},children:(0,eh.jsx)("div",{className:ty().children,children:o})})})});tS.displayName="AspectRatioBlock";var tT=a(5e4);function addCDNUrlToSrcSet(e){return e.split(", ").map(e=>"".concat(tT.p.APP_STATIC_BASE_URL,"/").concat(e)).join(", ")}var tN=a(79424);function Image_Image(e){var{src:t,alt:a,onClick:r,onLoad:i,className:n,pictureClassName:o,sizes:s,width:l,height:c,imageRef:d,draggable:u=!1}=e,m={alt:a,onClick:r,sizes:s,width:l,height:c,onLoad:i,ref:d,decoding:"async",draggable:u};if(null!==t&&"object"==typeof t&&"avif"in t&&"webp"in t){var _,{avif:p,webp:g,png:h,jpg:f,jpeg:x}=t,v=h||f||x;return(0,eh.jsxs)("picture",{className:o,children:[(0,eh.jsx)("source",{srcSet:addCDNUrlToSrcSet(p),type:"image/avif"}),(0,eh.jsx)("source",{srcSet:addCDNUrlToSrcSet(g),type:"image/webp"}),(0,eh.jsx)("img",(0,tp._)((0,te._)({},m),{src:(_=v.split(", "),"".concat(tT.p.APP_STATIC_BASE_URL,"/").concat(_[_.length-1].split(" ")[0])),srcSet:addCDNUrlToSrcSet(v),className:n}))]})}if(t.startsWith("http")||t.startsWith("blob"))return(0,eh.jsx)("img",(0,tp._)((0,te._)({},m),{src:t,className:n}));if(/\.svg$/.test(t))try{var w=tN(t.startsWith(".")?t:".".concat(t)).default;return(0,eh.jsx)(w,{ref:d,className:n,onClick:r})}catch(e){eY.BB||console.error(e)}return(0,eh.jsx)("img",(0,tp._)((0,te._)({},m),{src:"".concat(tT.p.APP_STATIC_BASE_URL,"/").concat(t),className:n}))}var tB=a(56971),tI=a.n(tB);(m=W||(W={})).Purple="purple",m.Gold="gold",(_=F||(F={})).Small="small",_.Large="large";var tD=eC.forwardRef((e,t)=>{var{id:a,className:r,theme:i=W.Purple,size:n=F.Small,style:o,withShadow:s}=e,{purple:l,gold:c,purpleSmall:d,goldSmall:u}=(0,ts.r)("EnergyImage"),m=n===F.Small?i===W.Purple?d:u:i===W.Purple?l:c;return(0,eh.jsxs)(tS,{ref:t,id:a,className:r,aspectRatio:1,style:o,children:[s&&(0,eh.jsx)(Image_Image,{src:m.shadow.src,alt:"",className:tI().shadow}),(0,eh.jsx)(Image_Image,{src:m.src,alt:"",className:tI().image})]})});tD.displayName="EnergyImage";var getTimePartsFromSeconds=e=>{var formatPart=e=>"".concat(e).padStart(2,"0");return{seconds:formatPart(e%60),minutes:formatPart(Math.floor(e/60)%60),hours:formatPart(Math.floor(e/60/60))}},tM=(0,ew.Pi)(e=>{var{onClick:t,className:a,buttonSize:r}=e,{title:i,nextWordTimerPrefix:n}=(0,ts.r)("AdditionalGameButton"),o=(0,eT.gT)(),s=(0,eT.gq)(),{nextDailyWordIn:l}=(0,eT.G3)(),c=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large}),[d,u]=(0,eC.useState)(o.isStartingAdditionalGame);(0,eC.useEffect)(()=>{o.isFinished&&u(!1),(o.shouldStartingAdditionalGame||o.isStartingAdditionalGame)&&u(!0)},[o.isFinished,o.shouldStartingAdditionalGame,o.isStartingAdditionalGame]);var{hours:m,minutes:_,seconds:p}=getTimePartsFromSeconds(null!=l?l:0);if(!s.energyState||!s.isEnoughEnergyToStartAdditionalGame){var g=void 0===l;return(0,eh.jsxs)(tC,{className:eB()(tj().root,a),theme:O.Dark,size:null!=r?r:c,disabled:!0,isLoading:g,children:[n,(0,eh.jsx)("span",{className:tj().digit,children:m}),":",(0,eh.jsx)("span",{className:tj().digit,children:_}),":",(0,eh.jsx)("span",{className:tj().digit,children:p})]})}return(0,eh.jsxs)(tC,{className:eB()(tj().root,a),size:null!=r?r:c,isLoading:d,onClick:t,children:["".concat(i).concat(s.energyState.costForAdditionalGame),(0,eh.jsx)(tD,{className:tj().image})]})}),tE=a(79963),tL=a.n(tE),tR=(0,ew.Pi)(e=>{var{isVisible:t,className:a,hideDurationMs:r}=e,i=(0,eT.T_)(),n=(0,eT.s9)(),o=(0,eT.gT)(),s=(0,eT.lH)(),l=(0,eT.$S)(),c=(0,eT.rS)(),d=useResultTitle(),[u,m]=(0,eC.useState)(t),_=!s.isLoaded;return(0,eC.useEffect)(()=>{t&&m(!0)},[t]),(0,eh.jsx)("div",{className:eB()(tL().bottomProgressBarContainer,tL().animated,{[tL().visible]:t},a),style:{"--hide-duration":"".concat(r,"ms")},children:(0,eh.jsx)("div",{"data-qa":eY.BE.Game.BottomProgressBar.root,"data-overlayed":i.isProgressOverlayed,className:tL().bottomProgressBar,onClick:()=>{o.isStartingAdditionalGame||n.showResultModal()},children:_?(0,eh.jsx)(e$.a,{qaTag:eY.BE.Game.BottomProgressBar.loader,className:tL().bottomBarLoader}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsxs)("div",{className:tL().content,children:[(0,eh.jsx)("p",{className:tL().bottomProgressBarTitle,children:d}),(0,eh.jsx)("div",{className:tL().historyContainer,children:u&&(0,eh.jsx)(tg,{context:A.Footer,withoutWords:!0})})]}),(0,eh.jsx)(tM,{className:tL().additionalGameButton,onClick:e=>{e.stopPropagation(),l.startAdditionalGame(),c.trackStartAdditionalGameButtonClick()}})]})})})}),useIsBottomBarVisible=()=>{var e=(0,eT.gT)(),[t,a]=(0,eC.useState)(!1);return(0,eC.useEffect)(()=>{e.isFinishedRightNow&&a(e.shouldStartingAdditionalGame)},[e.isFinishedRightNow,e.shouldStartingAdditionalGame]),(0,eC.useEffect)(()=>{e.isFailedToStartAdditionalGame&&a(!1)},[e.isFailedToStartAdditionalGame]),e.isFinished&&!e.isFinishedRightNow&&!t},tP=(0,ew.Pi)(()=>{var e=(0,eT.gT)();(0,eT.Ac)();var t=(0,eT.Q3)(),a=(0,eT.ae)(),{showModalAfterGameFinish:r}=(0,eT.th)(),i=(0,eT.T_)(),n=(0,eT.bW)();(0,eT.Nj)();var o=useIsBottomBarVisible(),s=(0,eC.useCallback)(()=>{e.isWonWithHelp||r()},[e.isWonWithHelp,r]);(0,eC.useEffect)(()=>{e.isFinishedRightNow&&!e.isWon&&s()},[s,e.isFinishedRightNow,e.isWon]);var l=useLastNotEmptyRow((0,e1.ZN)(e.fieldWords),eS.l$),c=n.isAdditionalGamesSessionEnabled?getTileFlipBackAnimationDelayMs(0,l,0)+200:void 0;return(0,eh.jsxs)(Game,{columnCount:eS.l$,rowCount:eS.Do,fieldWords:(0,e1.ZN)(e.fieldWords),letterEvaluations:(0,e1.ZN)(e.letterEvaluations),lettersEvaluationsMap:(0,e1.ZN)(e.lettersEvaluationsMap),currentRowIndex:e.currentRowIndex,currentRowStatus:e.currentRowStatus,onFinishRowAnimation:e.clearCurrentRowStatus,onKeyPress:e.addLetter,onBackspacePress:e.removeLastLetter,onEnterPress:t.submitCurrentRow,shouldClearCurrentRow:e.shouldClearCurrentRow,canSubmit:e.canSubmit,canClear:e.canClear,isSubmittingWord:e.isSubmittingWord||e.isStartingAdditionalGame,isFieldTotallyOverlayed:i.isTilesOverlayed,fieldOverlayedTiles:i.overlayedTiles,isKeyboardTotallyOverlayed:i.isKeyboardOverlayed,keyboardOverlayedKeys:i.overlayedKeyboardKeys,keyboardAccentKey:a.keyboardAccentKey,keyboardContainerClassName:eB()(ey().keyboardContainer,{[ey().visible]:!o}),keyboardContainerStyle:{"--show-keyboard-duration":"".concat(c,"ms")},isQAKeyboardModeEnabled:n.isQAGameKeyboardEnabled,isTilesFlipBackAnimationEnabled:n.isAdditionalGamesSessionEnabled,children:[n.isAdditionalGamesSessionEnabled?(0,eh.jsx)(tR,{isVisible:o,hideDurationMs:c}):(0,eh.jsx)(tx,{isVisible:o}),(0,eh.jsx)(ConfettiOverlay,{isVisible:e.isWonRightNow,onClose:s})]})}),tG=a(99124),tA=a.n(tG),SimpleGiftIcon=()=>{var e=(0,eC.useRef)("mask_".concat(Date.now()));return(0,eh.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:e.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"20",height:"20",children:[(0,eh.jsx)("path",{d:"M2 7V11H22V7H2Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M7.09091 2H6V4C6 5.65685 7.34315 7 9 7H12H15C16.6569 7 18 5.65685 18 4V2H15C13.3431 2 12 3.34315 12 5C12 3.34315 10.6569 2 9 2H7.09091Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.8",fillRule:"evenodd",clipRule:"evenodd",d:"M10 11H3V22H10V11ZM14 11V19C14 20.6569 12.6569 22 11 22H17C19.2091 22 21 20.2091 21 18V11H14Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.3",d:"M14 11H10V22H11C12.6569 22 14 20.6569 14 19V11Z",fill:"black"})]}),(0,eh.jsx)("g",{mask:"url(#".concat(e.current,")"),children:(0,eh.jsx)("path",{d:"M0 0H24V24H0V0Z",fill:"currentColor"})})]})},tH=a(2575),tO=a.n(tH),tV=a(5688),tW=a.n(tV),AccentDot=e=>{var{className:t}=e;return(0,eh.jsx)("div",{className:eB()(tW().root,t)})},HeaderButton=e=>{var{onClick:t,hasDotIndicator:a,id:r,className:i,style:n,isOverlayed:o,qaTag:s,children:l}=e;return(0,eh.jsxs)("button",{"data-qa":s,id:r,"data-overlayed":o,className:eB()(tO().root,i),style:n,onClick:t,children:[l,a&&(0,eh.jsx)(AccentDot,{className:tO().accentDot})]})},GiftButton=e=>(0,eh.jsx)(HeaderButton,(0,tp._)((0,te._)({},e),{children:(0,eh.jsx)(SimpleGiftIcon,{})})),tF=a(94077),DrawIcon=()=>{var e=(0,eC.useRef)(Math.random()),t=(0,eC.useRef)("mask_".concat(Date.now(),"_").concat(e.current));return(0,eh.jsxs)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:t.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"22",height:"23",children:[(0,eh.jsx)("path",{opacity:"0.3",d:"M19.0711 19.571C17.2614 21.3806 14.7614 22.4999 12 22.4999V13.9999C12.4142 13.9999 12.7892 13.832 13.0607 13.5605L19.0711 19.571Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.8",d:"M11.9997 22.4999C11.9997 22.4999 11.9998 22.4999 11.9997 22.4999C9.23833 22.4999 6.73835 21.3806 4.92871 19.571L10.9392 13.5605C11.2106 13.832 11.5856 13.9999 11.9998 13.9999L11.9997 22.4999Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.3",d:"M22 12.4998C22 9.73837 20.8807 7.23836 19.071 5.42871L13.0605 11.4392C13.332 11.7106 13.4999 12.0856 13.4999 12.4998H22Z",fill:"black"}),(0,eh.jsx)("path",{d:"M22 12.5H13.4999C13.4999 12.9142 13.332 13.2892 13.0605 13.5607L19.071 19.5711C20.8807 17.7615 22 15.2615 22 12.5Z",fill:"black"}),(0,eh.jsx)("path",{d:"M2 12.5H10.5C10.5 12.0858 10.6679 11.7108 10.9393 11.4394L4.92894 5.42896C3.1193 7.2386 2.00001 9.73859 2 12.5Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.3",d:"M4.92893 19.5711L10.9393 13.5607C10.6679 13.2892 10.5 12.9142 10.5 12.5H2C2 15.2614 3.11929 17.7614 4.92893 19.5711Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.3",d:"M4.92871 5.42888L10.9392 11.4393C11.2106 11.1679 11.5856 11 11.9998 11V2.5C11.9998 2.5 11.9999 2.5 11.9998 2.5C9.23843 2.5 6.73835 3.61927 4.92871 5.42888Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.8",d:"M19.0711 5.42893L13.0607 11.4393C12.7892 11.1679 12.4142 11 12 11V2.5C14.7614 2.5 17.2614 3.61929 19.0711 5.42893Z",fill:"black"}),(0,eh.jsx)("path",{opacity:"0.8",d:"M22.5 12.5C22.5 15.3996 21.3253 18.0239 19.4246 19.9246C17.5239 21.8253 14.8996 23 12 23C9.09987 23 6.47515 21.8249 4.5744 19.9236C2.6743 18.023 1.5 15.3991 1.5 12.5C1.5 9.59919 2.67566 6.97393 4.57769 5.07307C6.47818 3.17375 9.10154 2 12 2C14.8989 2 17.5226 3.1741 19.4232 5.07391C21.3247 6.9747 22.5 9.59962 22.5 12.5Z",stroke:"black"})]}),(0,eh.jsx)("g",{mask:"url(#".concat(t.current,")"),children:(0,eh.jsx)("path",{d:"M0 0.5H24V24.5H0V0.5Z",fill:"white"})})]})},DrawButton=e=>(0,eh.jsx)(HeaderButton,(0,tp._)((0,te._)({},e),{children:(0,eh.jsx)(DrawIcon,{})})),tU=a(14125),tZ=a.n(tU),ProjectLogo=e=>{var{className:t,logoImageClassName:a,isOverlayed:r,children:i}=e,{imageSrc:n,imageAlt:o}=(0,ts.r)("ProjectLogo");return(0,eh.jsxs)("div",{className:eB()(tZ().root,t),"data-overlayed":r,children:[(0,eh.jsx)(Image_Image,{src:n,alt:o,className:eB()(tZ().logoImage,a)}),i]})},tz=a(89310),tq=a.n(tz),SpecialLogo=e=>{var{imageSrc:t,imageAlt:a,lightBulbsPercentCoords:r}=(0,ts.r)("SpecialLogo");return(0,eh.jsxs)(ProjectLogo,(0,tp._)((0,te._)({},e),{className:eB()(e.className,tq().root),logoImageClassName:tq().logoImage,children:[(0,eh.jsx)("div",{className:tq().shadows,children:r.map(e=>{var{x:t,y:a}=e;return(0,eh.jsx)("div",{className:tq().shadow,style:{left:"".concat(t,"%"),top:"".concat(a,"%")}},"".concat(t,"-").concat(a))})}),(0,eh.jsx)(Image_Image,{src:t,alt:a,className:tq().lightsImage}),(0,eh.jsx)("div",{className:tq().lights,children:r.map(e=>{var{x:t,y:a}=e;return(0,eh.jsx)("div",{className:tq().light,style:{left:"".concat(t,"%"),top:"".concat(a,"%")}},"".concat(t,"-").concat(a))})})]}))},tK=(0,ew.Pi)(e=>{var{isSpecialLogoEnabled:t}=(0,eT.bW)(),a=t?SpecialLogo:ProjectLogo;return(0,eh.jsx)(a,(0,te._)({},e))}),GiftButtonTooltip=e=>{var{isVisible:t,hide:a}=e,{giftButtonTooltip:r}=(0,ts.r)("Tooltips"),i=useElementBoundingRect("#".concat(eW.O.GiftButton)),n=(0,eT.rS)();return((0,eC.useEffect)(()=>{t&&n.trackShowGiftButtonTooltip()},[t,n]),i)?(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(Tooltip,{isVisible:t,isArrowOnTop:!0,x:i.left+i.width/2,y:i.bottom,position:R.Fixed,onClick:a,onPointerUpOutside:a,children:r.text})}):null},LightInfoIcon=()=>(0,eh.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("mask",{id:"mask0_2739_86459",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"23",height:"22",children:(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.41666 12C1.41666 5.92487 6.34152 1 12.4167 1C18.4918 1 23.4167 5.92487 23.4167 12C23.4167 18.0751 18.4918 23 12.4167 23C6.34152 23 1.41666 18.0751 1.41666 12ZM10.9167 6.62817C10.9167 7.31853 11.4763 7.87817 12.1667 7.87817H13.6917V6.62817C13.6917 5.93782 13.132 5.37817 12.4417 5.37817H10.9167V6.62817ZM14.4167 15.4353H13.6667V10.5406C13.6667 9.98828 13.2189 9.37817 12.6667 9.37817H9.66666V10.5406C9.66666 11.0928 10.1144 11.6214 10.6667 11.6214H11.1667V15.4353L9.41666 15.4353V16.5C9.41666 17.0523 10.1144 17.5 10.6667 17.5H15.4167V16.5C15.4167 15.9477 14.9689 15.4353 14.4167 15.4353Z",fill:"url(#paint0_linear_2739_86459)"})}),(0,eh.jsx)("g",{mask:"url(#mask0_2739_86459)",children:(0,eh.jsx)("path",{d:"M0.416656 0H24.4167V24H0.416656V0Z",fill:"currentColor"})}),(0,eh.jsx)("defs",{children:(0,eh.jsxs)("linearGradient",{id:"paint0_linear_2739_86459",x1:"5.41666",y1:"5",x2:"19.4167",y2:"19",gradientUnits:"userSpaceOnUse",children:[(0,eh.jsx)("stop",{stopOpacity:"0.95"}),(0,eh.jsx)("stop",{offset:"1",stopOpacity:"0.65"})]})})]}),InfoButton=e=>(0,eh.jsx)(HeaderButton,(0,tp._)((0,te._)({},e),{children:(0,eh.jsx)(LightInfoIcon,{})})),DevToolsButton=e=>(0,eh.jsx)(HeaderButton,(0,tp._)((0,te._)({},e),{children:(0,eh.jsx)(Image_Image,{src:"/icons/tools_icon.svg",alt:""})})),tY=a(43545),tX=a.n(tY),usePrevious=e=>{var t=(0,eC.useRef)();return(0,eC.useEffect)(()=>{t.current=e},[e]),t.current},getEnergyChangeDurationMs=(e,t)=>t?Math.min(350*e,1250):1e3;(p=U||(U={})).ToTop="to-top",p.ToBottom="to-bottom";var tQ=Number.MAX_SAFE_INTEGER.toString().length,createNumbersArray=e=>{for(var t=e.toString().split("").map(e=>parseInt(e)),a=0;t.length9===e?0:e+1,getPreviousDigit=e=>0===e?9:e-1,getNextSequenceDigit=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?getNextDigit(e):getPreviousDigit(e)},getDistanceBetweenDigits=function(e,t){var a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=0,i=e;do i=getNextSequenceDigit(i,a),r++;while(i!==t);return r},getSequenceDigits=function(e,t){var a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=[e],i=e;do r.push(i=getNextSequenceDigit(i,a));while(i!==t);return r},checkIsDigitVisible=(e,t,a)=>e>=t-a,tJ=a(32010),t$=a.n(tJ),t0=a(4238),t1=a.n(t0),AnimatedDigitV2=e=>{var{digit:t,durationMS:a,animationDirection:r,isVisible:i,onTransitionEnd:n}=e,o=(0,eC.useRef)(null),s=(0,eC.useRef)(null),[l,c]=(0,eC.useState)({currentDigit:t,digits:[t]});return(0,eC.useLayoutEffect)(()=>{if(o.current&&(null===(e=o.current)||void 0===e||e.style.setProperty("--line-height","".concat(o.current.clientHeight,"px")),l.currentDigit!==t)){var e,i=r===U.ToTop,n=getSequenceDigits(l.currentDigit,t,i),s=o.current.clientHeight,d=i?-1:1;c({currentDigit:t,digits:i?n:n.reverse(),style:{top:i?"0":"unset",bottom:i?"unset":"0",transitionDuration:"".concat(a,"ms"),transform:"translateY(".concat(d*s*(n.length-1),"px) translateZ(0)")}})}},[t,r,a,l]),(0,eh.jsxs)("span",{ref:o,"data-qa":i?eY.BE.AnimatedCounter.AnimatedDigit.root:void 0,className:eB()(t1().root,{[t1().visible]:i}),style:{transitionDuration:"".concat(a,"ms")},children:[(0,eh.jsx)("span",{className:eB()(t1().digit,t1().invisible),children:"0"}),1===l.digits.length?(0,eh.jsx)("span",{className:eB()(t1().digit,t1().absolute),children:l.currentDigit}):(0,eh.jsx)("span",{ref:s,className:t1().digits,onTransitionEnd:e=>{e.target===s.current&&(c({currentDigit:t,digits:[t]}),null==n||n())},style:l.style,children:l.digits.map((e,t)=>(0,eh.jsx)("span",{className:t1().digit,children:e},"".concat(e,"-").concat(t)))})]})},t2=a(99785),t3=a.n(t2),AnimatedDigit=e=>{var{digit:t,durationMS:a,animationDirection:r,isVisible:i}=e,n=(0,eC.useRef)(null),o=(0,eC.useRef)(null),s=(0,eC.useRef)(null),l=(0,eC.useRef)({value:t,finishValue:t,animationClassName:t3().topAnimation,isForward:r===U.ToTop,isAnimating:!1});(0,eC.useEffect)(()=>{o.current&&(o.current.innerText=l.current.value.toString())},[]),(0,eC.useEffect)(()=>{var e,i=l.current;i.finishValue=t,i.isForward=r===U.ToTop;var o=getDistanceBetweenDigits(i.value,i.finishValue,i.isForward);null===(e=n.current)||void 0===e||e.style.setProperty("--animation-duration","".concat(a/o,"ms"))},[r,t,a]);var c=(0,eC.useCallback)(()=>{var{current:e}=l;o.current&&s.current&&!e.isAnimating&&e.value!==e.finishValue&&(e.isForward?e.animationClassName=e.animationClassName===t3().topAnimation?t3().topAnimationRestart:t3().topAnimation:e.animationClassName=e.animationClassName===t3().bottomAnimation?t3().bottomAnimationRestart:t3().bottomAnimation,e.isAnimating=!0,o.current.classList.add(e.animationClassName),s.current.classList.add(e.animationClassName),e.value=getNextSequenceDigit(e.value,e.isForward),s.current.innerText=e.value.toString(),s.current.style.top=e.isForward?"100%":"-100%")},[]);return(0,eC.useEffect)(()=>{c()},[t,c]),(0,eh.jsxs)("span",{ref:n,"data-qa":i?eY.BE.AnimatedCounter.AnimatedDigit.root:void 0,className:eB()(t3().root,{[t3().visible]:i}),style:{transitionDuration:"".concat(a,"ms")},children:[(0,eh.jsx)("span",{className:eB()(t3().digit,t3().invisible),children:"0"}),(0,eh.jsx)("span",{"data-qa":i?eY.BE.AnimatedCounter.AnimatedDigit.value:void 0,ref:o,className:eB()(t3().digit,t3().absolute)}),(0,eh.jsx)("span",{ref:s,className:eB()(t3().digit,t3().absolute),onAnimationEnd:e=>{if(o.current&&s.current){var t=e.target.innerText,a=+t,{current:r}=l;o.current.innerText=t,r.value=a,o.current.classList.remove(r.animationClassName),s.current.classList.remove(r.animationClassName),s.current.innerText=getNextSequenceDigit(a,r.isForward).toString(),r.isAnimating=!1,c()}}})]})},AnimatedCounter=e=>{var{number:t,className:a,delayMS:r=0,durationMS:i=400,isDigitsV2Enabled:n}=e,[o,s]=(0,eC.useState)(t),[l,c]=(0,eC.useState)(i),d=(0,eC.useRef)(o),u=(0,eC.useRef)(U.ToBottom),m=Math.floor(Number(o)),_=createNumbersArray(Number.isInteger(m)?m:0),p=(0,eR.vO)(o),g=createNumbersArray(Number(p)).reverse(),h=(0,eT.C5)(),f=(0,eC.useRef)(null);(0,eC.useEffect)(()=>{d.current=o},[o]),(0,eC.useEffect)(()=>(f.current&&h.clearTimeout(f.current),f.current=h.setTimeout(()=>{s(t),c(i)},r),()=>{f.current&&h.clearTimeout(f.current)}),[t,h]);var getAnimationDirection=()=>(d.current>t?u.current=U.ToBottom:d.current2&&void 0!==arguments[2]?arguments[2]:checkIsDigitVisible(t,_.length,m.toString().length),r=n?AnimatedDigitV2:AnimatedDigit;return(0,eh.jsx)(r,{durationMS:l,animationDirection:getAnimationDirection(),digit:e,isVisible:a},t)};return(0,eh.jsxs)("span",{"data-qa":eY.BE.AnimatedCounter.root,"data-value":t,className:eB()(t$().root,a),children:[_.map((e,t)=>renderAnimatedDigit(e,t)),(()=>{if(!p)return null;var e=!1,t=g.reverse().map((t,a)=>{var r=Number(p)>0&&checkIsDigitVisible(a,g.length,p.length);return e=e||r,renderAnimatedDigit(Number(t),a,r)});return(0,eh.jsxs)("span",{className:t$().fractionalPart,children:[(0,eh.jsx)("span",{"data-qa":eY.BE.AnimatedCounter.separator,className:eB()(t$().separator,{[t$().visible]:e}),style:{transitionDuration:"".concat(l,"ms")},children:"."}),t]})})()]})},AnimatedCounterV2=e=>{var{number:t,fractionalPartLength:a,className:r,delayMS:i=0,durationMS:n=400}=e,[o,s]=(0,eC.useState)(t),[l,c]=(0,eC.useState)(n),d=(0,eC.useRef)(o),u=(0,eC.useRef)(null),m=(0,eC.useRef)(U.ToBottom),_=Math.floor(Number(o)),p=createNumbersArray(Number.isInteger(_)?_:0),g=(0,eR.vO)(o,a),h=createNumbersArray(Number(g)),f=(0,eT.C5)(),x=(0,eC.useRef)(null),v=(0,eC.useRef)(!1),w=(0,eC.useCallback)(e=>{d.current>e?m.current=U.ToBottom:d.current{d.current=o},[o]),(0,eC.useEffect)(()=>(x.current&&f.clearTimeout(x.current),x.current=f.setTimeout(()=>{if(v.current){u.current=t;return}v.current=+d.current!=+t,w(t),s(t),c(n)},i),()=>{x.current&&f.clearTimeout(x.current)}),[t,f]);var renderAnimatedDigit=(e,t,a)=>(0,eh.jsx)(AnimatedDigitV2,{durationMS:l,animationDirection:m.current,digit:e,isVisible:a,onTransitionEnd:()=>{v.current=!1,u.current&&d.current!==u.current&&(w(u.current),s(u.current),c(n),d.current=u.current,u.current=null)}},t);return(0,eh.jsxs)("span",{"data-qa":eY.BE.AnimatedCounter.root,"data-value":t,className:eB()(t$().root,r),children:[p.map((e,t)=>renderAnimatedDigit(e,t,checkIsDigitVisible(t,p.length,_.toString().length))),(()=>{if(!g)return null;var e=!1,t=h.findLastIndex(e=>0!==e),a=h.map((a,r)=>{var i=Number(g)>0&&r<=t&&checkIsDigitVisible(r,h.length,g.length);return e=e||i,renderAnimatedDigit(Number(a),r,i)});return(0,eh.jsxs)("span",{className:t$().fractionalPart,children:[(0,eh.jsx)("span",{"data-qa":eY.BE.AnimatedCounter.separator,className:eB()(t$().separator,{[t$().visible]:e}),style:{transitionDuration:"".concat(l,"ms")},children:"."}),a]})})()]})},AnimatedCounterResolver=e=>{var{isAnimatedCounterV2Enabled:t}=(0,eT.bW)();return t?(0,eh.jsx)(AnimatedCounterV2,(0,te._)({},e)):(0,eh.jsx)(AnimatedCounter,(0,te._)({},e))},t5=(0,ew.Pi)(e=>{var{energyCount:t,isChargingEnergy:a}=(0,eT.gq)(),{isAvailableEnergyOnboarding:r,isCompleted:i}=(0,eT.Md)(),n=usePrevious(t);if(!r)return null;var o=i||a||t>0,s=void 0!==n?Math.abs(n-t):0,l=getEnergyChangeDurationMs(s,a),c=a?l+l/s:0;return(0,eh.jsxs)(HeaderButton,(0,tp._)((0,te._)({},e),{className:eB()(tX().root,{[tX().visible]:o},e.className),children:[(0,eh.jsx)("div",{id:eW.O.EnergyButtonIcon,className:tX().energyIcon,children:(0,eh.jsx)(Image_Image,{src:"/icons/energy.svg",alt:"",className:tX().energyIcon})}),(0,eh.jsx)("div",{className:tX().countWrapper,children:(0,eh.jsx)(AnimatedCounterResolver,{number:t,className:tX().count,delayMS:c,durationMS:l})})]}))}),t4=(0,ew.Pi)(e=>{var{className:t}=e,{isDevToolsEnabled:a,resetGiftStore:r}=(0,eT.Nj)(),i=(0,eT.s9)(),n=(0,eT.LM)(),o=(0,eT.OY)(),s=(0,eT.Ck)(),l=(0,eT.KT)(),c=(0,eT.jf)(),d=(0,eT.T_)(),u=(0,eT.nw)(),m=(0,eT.uH)(),{energyCount:_}=(0,eT.gq)(),p=(0,eT.ZR)(),{showEnergyBalanceModal:g}=(0,eT.kK)(),h=(0,eT.rS)(),f=eY.BE.Header,x=c.isVisibleGiftsIndicator||s.isVisibleGiftsIndicator||l.isVisibleGiftsIndicator,v=u.isDrawAnnouncement||u.isDrawEnabled;return(0,eh.jsxs)("div",{className:eB()(tA().root,t),children:[(0,eh.jsx)(tK,{isOverlayed:d.isLogoOverlayed}),(0,eh.jsxs)("div",{className:tA().buttons,children:[!p.isProd&&(0,eh.jsx)(DevToolsButton,{qaTag:f.devToolsButton,className:tA().button,onClick:i.showDevToolsModal}),(0,eh.jsx)(t5,{qaTag:f.energyButton,className:tA().button,isOverlayed:d.isEnergyButtonOverlayed,onClick:()=>{h.trackEnergyButtonClick(_),g()}}),u.canParticipateInDraw&&v&&(0,eh.jsx)(DrawButton,{qaTag:f.drawButton,id:eW.O.DrawButton,className:tA().button,isOverlayed:d.isDrawButtonOverlayed,onClick:()=>{h.trackClickDrawIcon(u.drawStatus),i.showDrawModal()},hasDotIndicator:u.isVisibleDrawIndicator}),!n.isJunior&&!n.isTempBanned&&!n.isGameLocked&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(GiftButton,{qaTag:f.giftButton,id:eW.O.GiftButton,isOverlayed:d.isGiftButtonOverlayed,className:tA().button,onClick:()=>{a&&r(),i.showGiftsModal()},hasDotIndicator:x&&!m.isVisibleGiftButtonTooltip}),(0,eh.jsx)(GiftButtonTooltip,{isVisible:m.isVisibleGiftButtonTooltip,hide:m.hide})]}),!n.isGameLocked&&(0,eh.jsx)(InfoButton,{qaTag:f.infoButton,isOverlayed:d.isInfoButtonOverlayed,className:tA().button,onClick:()=>{i.replaceModal(tF.Z.GameInfo)},hasDotIndicator:o.isVisibleGameInfoIndicator})]})]})}),t9=a(79021),t6=a.n(t9),Container=e=>{var{children:t,className:a,role:r,onClick:i,onTransitionEnd:n,qaTag:o,style:s}=e;return(0,eh.jsx)("div",{"data-qa":o,className:eB()(t6().container,a),role:r||void 0,onClick:i,onTransitionEnd:n,style:s,children:t})},t8=a(12821),t7=a.n(t8),useGameFieldCellBoundingRect=(e,t)=>useElementBoundingRect('[data-row="'.concat(e,'"][data-column="').concat(t,'"]')),TileTooltip=e=>{var{position:t,tooltipId:a,isVisible:r}=e,i=(0,ts.r)("Tooltips"),n=useGameFieldCellBoundingRect(t.row,t.column);if(!(a in i))return null;var o=i[a];return(0,eh.jsx)(eh.Fragment,{children:n&&(0,eh.jsxs)(Tooltip,{className:t7().root,isVisible:r,x:n.left+n.width/2,y:n.bottom,isArrowOnTop:!0,children:[o.text,o.emoji&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("br",{}),(0,eh.jsx)("span",{className:t7().emoji,children:o.emoji})]})]})})},capitalizeFirstLetter=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ae=a(95714),at=a(83969),useUpdateTileTooltipsByCurrentRowStatus=()=>{var e=(0,eT.gT)(),t=(0,eT.fz)(),a=(0,eC.useRef)(e.currentRowStatus);(0,eC.useEffect)(()=>{null===e.currentRowStatus&&(a.current===ae.mJ.NotInWordList?t.showTooltip({row:e.currentRowIndex,column:0},at.E.RowNotInWordList):a.current===ae.mJ.IsDuplicate&&t.showTooltip({row:e.currentRowIndex,column:0},at.E.RowIsDuplicate)),a.current=e.currentRowStatus},[e.currentRowStatus])},aa=(0,ew.Pi)(e=>{var{isVisible:t=!0}=e,a=(0,eT.gT)(),r=(0,eT.fz)(),{currentModal:i}=(0,eT.s9)(),n=(0,eT.rS)(),o=(0,eT.C5)(),s=(0,eC.useRef)(!0),l=(0,ts.r)("Tooltips");return useUpdateTileTooltipsByCurrentRowStatus(),(0,eC.useEffect)(()=>{var e;return i?s.current=!1:e=o.setTimeout(()=>{s.current=!0}),()=>{e&&o.clearTimeout(e)}},[o,i]),(0,eC.useEffect)(()=>{var onClickField=e=>{if(s.current){var t,a=null===(t=e.target.parentElement)||void 0===t?void 0:t.dataset;if(!a){r.hideAllTooltips();return}var i=a.row,n=a.column,o=a.evaluation,c="tile".concat(capitalizeFirstLetter(o));if(!i||!n||!o||!(c in l)){r.hideAllTooltips();return}r.toggleTooltip({row:+i,column:+n},c)}};return o.document.addEventListener("click",onClickField),()=>{o.document.removeEventListener("click",onClickField)}},[a.letterEvaluations,r,l,n,o.document]),(0,eh.jsx)(eh.Fragment,{children:r.tileTooltipInfos.map(e=>{var{position:a,tooltipId:r,isVisible:n}=e;return(0,eh.jsx)(TileTooltip,{isVisible:n&&t&&!i,position:a,tooltipId:r},"".concat(a.row,"-").concat(a.column,"-").concat(r))})})}),ar=a(15424);(g=Z||(Z={})).Left="left",g.Center="center",g.Right="right";var ai=a(93322),an=a.n(ai),useDiscardOverlayAnimation=e=>{var t=usePrevious(e);(0,eC.useLayoutEffect)(()=>{e&&document.documentElement.style.setProperty("--duration-moderate","0"),!e&&t&&document.documentElement.style.removeProperty("--duration-moderate")},[e,t])},ao=a(83636),usePreventPullToRefreshAndGameSwipeClose=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,eC.useEffect)(()=>{if(document.body.style.paddingTop="".concat(e?t:0,"px"),e&&document.body.scrollTo){var handleScroll=()=>document.body.scrollTo(0,t);handleScroll(),document.body.addEventListener("scroll",handleScroll);var a=window.setInterval(handleScroll,100);return()=>{document.body.removeEventListener("scroll",handleScroll),clearInterval(a)}}},[e,t])},as=a(26492),al=a.n(as);function isEdgeOverlayWithHeightSettings(e){return void 0!==e.height}var Scrollable=e=>{var t,a,r,i,{className:n,bodyClassName:o,children:s,onScroll:l,onChangeScrollHeight:c,edgeOverlays:d,paddings:u}=e,m=(0,eT.C5)(),_=(0,eC.useRef)(null),p=(0,eC.useRef)(null),[g,h]=(0,eC.useState)(!1),[f,x]=(0,eC.useState)(0),v=useWindowSize(),w=(0,eC.useCallback)(()=>{if(_.current){var{scrollHeight:e,clientHeight:t}=_.current;h(e-t>2),null==c||c(e)}},[c]);(0,eC.useLayoutEffect)(()=>(w(),(0,eM.C)(m,w),p.current=m.setInterval(w,200),()=>{(0,eM.D)(m,w),p.current&&clearInterval(p.current)}),[w,m]);var C=(0,eC.useCallback)(()=>{if(!_.current)return 0;var{scrollTop:e,scrollHeight:t,clientHeight:a}=_.current;return Math.min(100*Math.ceil(e)/(t-a),100)},[]),b=(0,eC.useCallback)(()=>{if(_.current){var{scrollTop:e,scrollHeight:t}=_.current,a=C();x(a),null==l||l(e,a),null==c||c(t)}},[C,l,c]);(0,eC.useEffect)(()=>{if(_.current){var e=_.current.scrollTop,t=0,onTouchStart=a=>{_.current&&(e=_.current.scrollTop,t=a.targetTouches[0].pageY,C()>=1&&a.stopPropagation())},onTouchMove=a=>{if(_.current){var r=a.targetTouches[0].pageY-t;_.current.scrollHeight>_.current.offsetHeight&&(r<0&&0===e||r>0&&(0,eR.Xy)(e,_.current.scrollHeight-_.current.offsetHeight,2)||e>0&&e<_.current.scrollHeight-_.current.offsetHeight)&&a.stopPropagation()}},a=_.current;return a.addEventListener("touchstart",onTouchStart),a.addEventListener("touchmove",onTouchMove),(0,eM.C)(m,b),()=>{a.removeEventListener("touchstart",onTouchStart),a.removeEventListener("touchmove",onTouchMove),(0,eM.D)(m,b)}}},[C,g,b,m]);var j=!(null==d?void 0:null===(t=d.top)||void 0===t?void 0:t.isHidden)&&((null==d?void 0:d.isAlwaysVisible)||f>=.5),k=!(null==d?void 0:null===(a=d.bottom)||void 0===a?void 0:a.isHidden)&&((null==d?void 0:d.isAlwaysVisible)||f<=99),getCurrentPaddings=()=>{if(null==u?void 0:u.default)return Object.keys(u).sort((e,t)=>"default"===e?-1:Number(e)-Number(t)).reduce((e,t)=>"default"===t||v.width>=Number(t)&&u[t]?(0,te._)({},e,u[t]):e,{})};return(0,eh.jsxs)("div",{className:eB()(al().root,n),style:(()=>{var e={},t=getCurrentPaddings();if(t){var{top:a,bottom:r,horizontal:i}=t;void 0!==a&&(e["--scrollable-top-padding"]="".concat(a,"px")),void 0!==r&&(e["--scrollable-bottom-padding"]="".concat(r,"px")),void 0!==i&&(e["--scrollable-horizontal-padding"]="".concat(i,"px"))}return(null==d?void 0:d.top)&&(d.top.gradientColor&&(e["--scroll-top-overlay-gradient-color"]=d.top.gradientColor),isEdgeOverlayWithHeightSettings(d.top)&&(e["--scroll-top-overlay-height"]="".concat(d.top.height,"px"),e["--scroll-top-gradient-overlay-height"]="".concat(d.top.gradientHeight,"px"))),(null==d?void 0:d.bottom)&&(d.bottom.gradientColor&&(e["--scroll-bottom-overlay-gradient-color"]=d.bottom.gradientColor),isEdgeOverlayWithHeightSettings(d.bottom)&&(e["--scroll-bottom-overlay-height"]="".concat(d.bottom.height,"px"),e["--scroll-bottom-gradient-overlay-height"]="".concat(d.bottom.gradientHeight,"px"))),e})(),children:[(0,eh.jsx)("div",{className:eB()(al().bodyWrapper,{[al().topFix]:j,[al().bottomFix]:k}),children:(0,eh.jsx)("div",{ref:_,className:eB()(al().body,eW.Yj,{[al().hasScroll]:g,[eW.hV]:f>=1},o),onScroll:b,children:s})}),!(null==d?void 0:null===(r=d.top)||void 0===r?void 0:r.isHidden)&&(0,eh.jsx)("div",{className:eB()(al().overlay,al().top,{[al().mounted]:g,[al().visible]:j})}),!(null==d?void 0:null===(i=d.bottom)||void 0===i?void 0:i.isHidden)&&(0,eh.jsx)("div",{className:eB()(al().overlay,al().bottom,{[al().mounted]:g,[al().visible]:k})})]})},ac=a(91312),ad=a.n(ac),au=(0,eC.createContext)(void 0),ModalProvider=e=>{var{children:t,value:a}=e,r={startClose:a.startClose,isBottomSheetMode:a.isBottomSheetMode,isClosableOnlyByChildren:a.isClosableOnlyByChildren};return(0,eh.jsx)(au.Provider,{value:r,children:t})};function useModalContext(){var e=eC.useContext(au);if(void 0===e)throw Error("useModalContext must be used within a ModalProvider");return e}var am=a(53146),a_=a.n(am);a(92261);var useSwipe=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;(0,eC.useEffect)(()=>{if(!a){var n,o,s=Date.now(),l=0,c=0,d=0,u=!1,m=!1,_=null!==(o=null==e?void 0:null===(n=e.parentElement)||void 0===n?void 0:n.getBoundingClientRect().bottom)&&void 0!==o?o:0,p=[],pushTouchMoveY=e=>{p.push(e),p=p.slice(-5)},isNoSwiping=e=>r&&e.target.closest(".".concat(r)),handleTouchStart=t=>{!e||isNoSwiping(t)||(m=!0,s=Date.now(),l=e.getBoundingClientRect().top,c=t.touches[0].clientY,p=Array.from({length:5},()=>c),e.style.transitionDuration="0ms")},handleTouchEnd=()=>{if(m=!1,e){if(!u){e.style.transitionDuration="",e.style.transform="";return}u=!1;var a="".concat((0,eR.uZ)(Date.now()-s,G.Min,G.Exit),"ms"),close=()=>{e.style.transitionDuration=a,e.style.transform="translateY(100%) translateZ(0)",t(!1),null==i||i()};if(p[4]-p[0]<20){var r=e.getBoundingClientRect().top;if(Math.abs(r-l)>Math.abs(r-_)){close();return}e.style.transitionDuration=a,e.style.transform="";return}close()}},handleTouchMove=t=>{if(!(!e||!m||isNoSwiping(t))){u=!0,pushTouchMoveY(d=t.touches[0].clientY);var a=d-c;a<=5||(e.style.transform="translateY(".concat(a,"px) translateZ(0)"))}},handleTransitionEnd=t=>{t.target===e&&e&&(e.style.transitionDuration="",e.style.transform="")};return null==e||e.addEventListener("touchstart",handleTouchStart),null==e||e.addEventListener("touchend",handleTouchEnd),null==e||e.addEventListener("touchcancel",handleTouchEnd),null==e||e.addEventListener("touchmove",handleTouchMove),null==e||e.addEventListener("transitionend",handleTransitionEnd),()=>{null==e||e.removeEventListener("touchstart",handleTouchStart),null==e||e.removeEventListener("touchend",handleTouchEnd),null==e||e.removeEventListener("touchcancel",handleTouchEnd),null==e||e.removeEventListener("touchmove",handleTouchMove),null==e||e.removeEventListener("transitionend",handleTransitionEnd)}}},[a,t,e,r])},BottomSheet=e=>{var{isOpened:t,onChange:a,onTransitionEnd:r,children:i,qaTag:n,onOutsideClick:o,isSwipeDisabled:s=!1,extraOverlay:l,extraOverlayClassName:c,openWithFade:d,className:u,isMaxHeight:m,style:_,onSwipe:p}=e,g=(0,eC.useRef)(null),h=(0,eC.useRef)(null),[f,x]=(0,eC.useState)(!1),v=usePrevious(d);return(0,eC.useEffect)(()=>{v!==d&&x(!!d)},[t,d,v]),(0,eC.useEffect)(()=>{var e,preventTouchEvent=e=>e.preventDefault(),t={passive:!1};return null===(e=g.current)||void 0===e||e.addEventListener("touchmove",preventTouchEvent,t),()=>{var e;null===(e=g.current)||void 0===e||e.removeEventListener("touchmove",preventTouchEvent,t)}},[]),(0,eC.useEffect)(()=>{var e,t,isBottomSheetEvent=e=>e.target===g.current||e.target===h.current,handleTransitionStart=e=>{isBottomSheetEvent(e)&&x(!0)},handleTransitionEnd=e=>{isBottomSheetEvent(e)&&h.current&&(x(!1),null==r||r(),h.current.style.transitionDuration="")};return null===(e=g.current)||void 0===e||e.addEventListener("transitionstart",handleTransitionStart),null===(t=g.current)||void 0===t||t.addEventListener("transitionend",handleTransitionEnd),()=>{var e,t;null===(e=g.current)||void 0===e||e.removeEventListener("transitionstart",handleTransitionStart),null===(t=g.current)||void 0===t||t.removeEventListener("transitionend",handleTransitionEnd)}},[t,r]),useSwipe(h.current,a,s,eW.hV,p),(0,eh.jsxs)(Portal,{selector:"body",children:[(0,eh.jsx)("div",{className:eB()(a_().overlay,a_().animated,{[a_().visible]:t}),children:(0,eh.jsx)("div",{className:eB()(a_().extraOverlay,c),onClick:o,children:l})}),(0,eh.jsxs)("div",{ref:g,"data-qa":n,className:eB()(a_().root,{[a_().openWithFade]:d,[a_().animated]:d,[a_().visible]:t},u),children:[(0,eh.jsx)("div",{className:eB()(a_().space,eW.hV),onClick:o}),(0,eh.jsx)("div",{ref:h,className:eB()(a_().slide,a_().animated,{[a_().visible]:d||t}),children:(0,eh.jsx)("div",{className:eB()(a_().slideContentWrapper,{[eW.hV]:s}),children:(0,eh.jsx)("div",{className:a_().slideContent,children:(0,eh.jsx)("div",{className:eB()(a_().content,{[a_().maxHeight]:m}),style:_,children:i})})})})]}),f&&(0,eh.jsx)("div",{className:eB()(a_().overlay,a_().preventInteraction)})]})},ap=a(59463),ag=a.n(ap);(h=z||(z={})).Absolute="absolute",h.Fixed="fixed";var Popup=e=>{var{isOpened:t,onChange:a,onTransitionEnd:r,onOutsideClick:i,extraOverlay:n,extraOverlayClassName:o,selector:s="body",position:l=z.Fixed,className:c,style:d,qaTag:u,children:m}=e,[_,p]=(0,eC.useState)(t);return(0,eC.useEffect)(()=>{p(t)},[t]),(0,eC.useEffect)(()=>{_!==t&&a(t)},[t,_,a]),(0,eh.jsxs)(Portal,{selector:s,children:[(0,eh.jsx)("div",{className:eB()(ag().overlay,ag().animated,{[ag().visible]:_},ag()["position_".concat(l)]),children:(0,eh.jsx)("div",{className:eB()(ag().extraOverlay,o),onClick:i,children:n})}),(0,eh.jsx)(Container,{qaTag:u,className:eB()(ag().root,ag().animated,{[ag().visible]:_},ag()["position_".concat(l)],c),style:d,onTransitionEnd:r,children:m})]})},ah=a(28758),af=a.n(ah),CloseButton=e=>{var{onClick:t,onPointerDown:a,onPointerUp:r,className:i,dataQa:n}=e,o=(0,eC.useRef)(Math.random()),s=(0,eC.useRef)("mask_".concat(Date.now(),"_").concat(o.current));return(0,eh.jsx)("div",{className:eB()(af().root,i),"data-qa":n,onClick:t,onPointerDown:a,onPointerUp:r,children:(0,eh.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("mask",{id:s.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:(0,eh.jsx)("path",{d:"M6.58579 8L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L8 6.58579L11.2929 3.29289C11.6834 2.90237 12.3166 2.90237 12.7071 3.29289C13.0976 3.68342 13.0976 4.31658 12.7071 4.70711L9.41421 8L12.7071 11.2929C13.0976 11.6834 13.0976 12.3166 12.7071 12.7071C12.3166 13.0976 11.6834 13.0976 11.2929 12.7071L8 9.41421L4.70711 12.7071C4.31658 13.0976 3.68342 13.0976 3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929L6.58579 8Z",fill:"black"})}),(0,eh.jsx)("g",{mask:"url(#".concat(s.current,")"),children:(0,eh.jsx)("rect",{width:"16",height:"16",fill:"white"})})]})})},ax=a(37051),av=a.n(ax),aw=a(80493),aC=a.n(aw),BackIconNew=()=>{var e=(0,eC.useRef)(Math.random()),t=(0,eC.useRef)("mask_".concat(Date.now(),"_").concat(e.current));return(0,eh.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("mask",{id:t.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"4",width:"16",height:"16",children:(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7 11.5899C19.7 11.0377 19.2523 10.5899 18.7 10.5899H7.50004L12.4 5.68995C12.7866 5.30335 12.7866 4.67655 12.4 4.28995C12.0134 3.90335 11.3866 3.90335 11 4.28995L4.40715 10.8828C4.01663 11.2734 4.01663 11.9065 4.40715 12.2971L11 18.89C11.3866 19.2765 12.0134 19.2765 12.4 18.8899C12.7866 18.5034 12.7866 17.8765 12.4 17.49L7.50004 12.5899H18.7C19.2523 12.5899 19.7 12.1422 19.7 11.5899Z",fill:"black"})}),(0,eh.jsx)("g",{mask:"url(#".concat(t.current,")"),children:(0,eh.jsx)("rect",{width:"24",height:"24",fill:"white"})})]})},ab=a(80483),aj=a.n(ab),useUnmount=e=>{var t=(0,eT.C5)(),a=(0,eC.useRef)(null);(0,eC.useEffect)(()=>(a.current&&t.clearTimeout(a.current),()=>{a.current=t.setTimeout(e)}),[e,t])},Modal=e=>{var{isVisible:t,children:a,onOpen:r,onStartClose:i,onClose:n,isClosableOnlyByChildren:o=!1,onBackgroundClick:s,onSwipeClose:l,extraOverlay:c,extraOverlayClassName:d,qaTag:u,isReplacing:m,isMaxHeight:_,style:p,position:g,selector:h,className:f}=e,x=(0,eT.mv)(),v=!(useWindowSize().width>=eW.RR.Tablet)&&x.viewMode===ao.w.MB,[w,C]=(0,eC.useState)(!1),[b,j]=(0,eC.useState)(!1),k=(0,eC.useRef)(w),y=(0,eC.useRef)(!0),{isPullToRefreshSwitchedOff:S}=(0,eT.bW)();usePreventPullToRefreshAndGameSwipeClose(!!(x.viewMode===ao.w.MB&&w&&!S)),(0,eC.useEffect)(()=>{C(void 0===t||t)},[t]);var startClose=()=>{n&&(v&&(null==i||i()),C(!1))};useUnmount(()=>{y.current&&(null==n||n())});var T=v?BottomSheet:Popup;return(0,eh.jsx)(T,{isOpened:w,onChange:C,onTransitionEnd:()=>{k.current=w,w&&!b&&(j(!0),null==r||r()),w||(j(!1),y.current=!1,null==n||n())},onOutsideClick:()=>{!o&&k.current&&(null==s||s(),startClose())},extraOverlay:c,extraOverlayClassName:d,qaTag:u,openWithFade:m,className:eB()(f,{"open-animation-finished":b}),isMaxHeight:_,style:p,position:g,selector:h,isSwipeDisabled:o,onSwipe:l,children:(0,eh.jsx)(ModalProvider,{value:{startClose,isBottomSheetMode:v,isClosableOnlyByChildren:o},children:a})})};Modal.Container=e=>{var t,a,r,{scrollable:i,children:n,nonScrollableChildren:o,onMounted:s}=e,l=(0,eT.mv)(),c=l.viewMode===ao.w.Landing||l.viewMode===ao.w.DemoPage,{isBottomSheetMode:d,isClosableOnlyByChildren:u}=useModalContext(),m=(0,eC.useRef)(null);(0,eC.useLayoutEffect)(()=>{m.current&&(null==s||s(m.current))},[s]);var _={default:{top:u?32:52,horizontal:12,bottom:d?40:32},[eW.RR.Tablet]:{top:u?32:74,horizontal:72,bottom:60}};return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("div",{ref:m,className:ad().body,children:(0,eh.jsx)(Scrollable,{className:null==i?void 0:i.className,paddings:(0,ti.RH)(_,(null==i?void 0:i.paddings)?i.paddings:{}),bodyClassName:c?ad().overScrollableBody:"",onScroll:null==i?void 0:i.onScroll,onChangeScrollHeight:null==i?void 0:i.onChangeScrollHeight,edgeOverlays:(0,tp._)((0,te._)({},null==i?void 0:i.edgeOverlays),{bottom:(0,tp._)((0,te._)({},null==i?void 0:null===(t=i.edgeOverlays)||void 0===t?void 0:t.bottom),{isHidden:!!d||(null==i?void 0:null===(r=i.edgeOverlays)||void 0===r?void 0:null===(a=r.bottom)||void 0===a?void 0:a.isHidden)})}),children:n})}),o]})},Modal.CloseButton=e=>{var{onClick:t,shouldStopEventsPropagation:a}=e,r=eY.BE.Modal,{startClose:i}=useModalContext(),n=(0,eC.useCallback)(e=>{a&&e.stopPropagation()},[a]);return(0,eh.jsx)(CloseButton,{dataQa:r.closeButton,className:av().closeButton,onClick:e=>{n(e),null==t||t(),i()},onPointerDown:n,onPointerUp:n})},Modal.BackButton=e=>{var{onClick:t}=e;return(0,eh.jsx)("button",{className:aC().backButton,onClick:t,children:(0,eh.jsx)(BackIconNew,{})})},Modal.Header=e=>{var{title:t,subtitle:a,subtleColor:r,children:i}=e,n=eY.BE.Modal;return(0,eh.jsxs)(eh.Fragment,{children:[i,t&&(0,eh.jsx)("p",{"data-qa":n.title,className:eB()(aj().title,aj()[t.align||Z.Left],{[aj().withSubtitle]:a},t.className),children:t.text}),a&&(0,eh.jsx)("p",{"data-qa":n.subtitle,className:aj().subtitle,style:{color:r},children:a})]})};var Welcome=e=>{var{isVisible:t,onClickButton:a}=e,{steps:{Welcome:{title:r,description:i,button:n}}}=(0,ts.r)("GameOnboarding");useDiscardOverlayAnimation(t);var o=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large});return(0,eh.jsx)(Modal,{isVisible:t,className:an().root,isClosableOnlyByChildren:!0,qaTag:eY.BE.Modals.WelcomeModal.root,children:(0,eh.jsxs)(Modal.Container,{scrollable:{paddings:{default:{horizontal:16,bottom:40},[eW.RR.MobileMedium]:{bottom:58}}},children:[(0,eh.jsx)(Modal.Header,{title:{text:r,align:Z.Center,className:an().title},children:(0,eh.jsx)("div",{className:an().imageContainer,children:(0,eh.jsx)(Image_Image,{src:"/gift.svg",alt:"подарок",className:an().image})})}),(0,eh.jsx)("p",{className:an().description,children:i}),(0,eh.jsx)("div",{className:an().buttons,children:(0,eh.jsx)(tC,{className:an().button,size:o,onClick:a,children:n})})]})})},ak=a(99782),ay=a.n(ak),StartEnterWord=e=>{var{isVisible:t}=e,{steps:{StartEnterWord:{tooltip:a}}}=(0,ts.r)("GameOnboarding"),r=useElementBoundingRect("#".concat(eW.O.Keyboard));return(0,eh.jsx)(eh.Fragment,{children:r&&(0,eh.jsx)(Tooltip,{className:ay().tooltip,isVisible:t,x:r.left+r.width/2,y:r.top,children:a})})},aS=a(29115),aT=a.n(aS),HelpWithWord=e=>{var{isVisible:t,onClick:a}=e,{steps:{HelpInfo:{tooltip:r}}}=(0,ts.r)("GameOnboarding"),i=useGameFieldCellBoundingRect(eS.Do-1,Math.floor(eS.l$/2));return(0,eh.jsxs)(eh.Fragment,{children:[i&&(0,eh.jsx)(Tooltip,{className:aT().tooltip,isVisible:t,x:i.left+i.width/2,y:i.top,children:r}),t&&(0,eh.jsx)("div",{className:aT().overlay,onClick:a})]})},aN=a(59439),aB=a.n(aN),TapAccent=e=>{var{selector:t,isAbsolute:a}=e,r=useElementBoundingRect(t);return r?a?(0,eh.jsx)(Portal,{selector:t,children:(0,eh.jsx)("div",{className:eB()(aB().root,aB().absolute),style:{left:r.width/2,top:r.height/2}})}):(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)("div",{className:aB().root,style:{left:r.left+r.width/2,top:r.top+r.height/2}})}):null},FirstLetterTooltip=e=>{var{isVisible:t,firstLetterSelector:a}=e,{steps:{FirstLetterTooltip:{tooltip:r}}}=(0,ts.r)("GameOnboarding"),i=useElementBoundingRect(a);return(0,eh.jsx)(eh.Fragment,{children:i&&(0,eh.jsx)(Tooltip,{className:ay().tooltip,isVisible:t,x:i.left+i.width/2,y:i.top,children:r})})},aI=(0,ew.Pi)(()=>{var{dailyWord:e}=(0,eT.gT)(),{currentStep:t,startEnterWord:a,keyboardAccentKey:r,complete:i}=(0,eT.ae)(),{showModalAfterGameFinish:n}=(0,eT.th)();return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Welcome,{isVisible:t===ar.E.Welcome,onClickButton:a}),(0,eh.jsx)(StartEnterWord,{isVisible:t===ar.E.StartEnterWord}),e&&(0,eh.jsx)(FirstLetterTooltip,{isVisible:t===ar.E.FirstLetterTooltip,firstLetterSelector:'[data-key="'.concat(e.word[0],'"]')}),(0,eh.jsx)(HelpWithWord,{isVisible:t===ar.E.HelpWithWord,onClick:()=>{i(),n()}}),r&&(0,eh.jsx)(TapAccent,{selector:'[data-key="'.concat(r,'"]'),isAbsolute:!0})]})}),usePreventPinchToZoom=()=>{var preventPinchToZoom=e=>e.preventDefault();(0,eC.useEffect)(()=>{var gestureStartListener=e=>preventPinchToZoom(e),gestureChangeListener=e=>preventPinchToZoom(e),gestureEndListener=e=>preventPinchToZoom(e);return document.addEventListener("gesturestart",gestureStartListener),document.addEventListener("gesturechange",gestureChangeListener),document.addEventListener("gestureend",gestureEndListener),()=>{document.removeEventListener("gesturestart",gestureStartListener),document.removeEventListener("gesturechange",gestureChangeListener),document.removeEventListener("gestureend",gestureEndListener)}},[])},aD=a(14110),aM=a(41169),GameLoadingModal=()=>{var e,t,{LoaderSpeed:{slow:a}}=(0,eT.Vf)(),r=(0,eT.bU)();return(0,eh.jsx)(aM.R,{isSlowAnimation:(e=r.getMBVersion(),t=r.isIosMB(),!!e&&!!t&&(0,aD.n)(e,(0,aD.o)(a.minAppVersion))>-1)})},usePreventScroll=e=>{(0,eC.useEffect)(()=>{var t=document.querySelector(e),onScroll=()=>null==t?void 0:t.scrollTo(0,0);return null==t||t.addEventListener("scroll",onScroll),()=>{null==t||t.removeEventListener("scroll",onScroll)}},[e])},useLogRenderResult=(e,t)=>{var a=(0,eT.l$)(),r=(0,eT.C5)(),i=(0,eC.useRef)();(0,eC.useEffect)(()=>{a.renderStart(e)},[e,a]),(0,eC.useEffect)(()=>{i.current&&r.clearTimeout(i.current),t||(i.current=r.setTimeout(()=>{a.renderComplete(e)},500))},[e,t,a,r]),(0,eC.useEffect)(()=>()=>{i.current&&r.clearTimeout(i.current)},[r])},aE=a(85958),aL=a(92119),aR=a(67345),aP=a.n(aR),RulesModal=e=>{var{isVisible:t=!0}=e,a=(0,aL._)(e,["isVisible"]),{Rules:{title:r,introText:i,examples:n,afterText:o}}=(0,ts.r)("Modals"),[s,l]=(0,eC.useState)(0),c=(0,eC.useRef)(null);return t?(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({qaTag:eY.BE.Modals.RulesModal.root},a),{className:aP().root,children:[(0,eh.jsx)(Modal.CloseButton,{}),a.onBackButtonClick&&(0,eh.jsx)(Modal.BackButton,{onClick:a.onBackButtonClick}),(0,eh.jsxs)(Modal.Container,{onMounted:()=>{if(c.current){var e=(eS.l$-1)*eS.XN,t=(Math.min(c.current.clientWidth,260)-e)/eS.l$;l(calcOptimalTileSize(t,t/eS.dj,eS.dj).height)}},scrollable:{paddings:{default:{horizontal:24,bottom:40},[eW.RR.Tablet]:{horizontal:72,bottom:40}}},children:[(0,eh.jsx)(Modal.Header,{title:{text:r}}),(0,eh.jsxs)("div",{ref:c,className:aP().container,children:[(0,eh.jsx)("p",{children:i}),(0,eh.jsx)("div",{className:aP().divider}),n.map(e=>{var{word:t,evaluations:a,hint:r}=e;return(0,eh.jsxs)("div",{className:aP().example,children:[(0,eh.jsx)("div",{className:aP().rowWrapper,style:{height:"".concat(s,"px"),fontSize:"".concat(s/2,"px"),maxWidth:"".concat(260,"px")},onClick:e=>e.stopPropagation(),children:(0,eh.jsx)(Row,{row:-1,className:aP().row,columnCount:eS.l$,gridGap:eS.XN,word:t,evaluation:a})}),(0,eh.jsx)("p",{children:r})]},t)}),(0,eh.jsx)("div",{className:aP().divider}),(0,eh.jsx)("p",{children:o})]})]})]})):null},aG=a(6462),aA=a.n(aG),aH=a(67857),aO=a.n(aH),aV=(0,ew.Pi)(e=>{var{showOnlyTimer:t,className:a}=e,{nextDailyWordIn:r}=(0,eT.G3)(),i=void 0===r,{hours:n,minutes:o,seconds:s}=getTimePartsFromSeconds(null!=r?r:0),{commonText:l}=(0,ts.r)("NextWordTimer"),c=(0,eh.jsx)("div",{className:eB()(aO().timer,a),children:i?(0,eh.jsx)(e$.a,{className:aO().loader}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("span",{className:aO().digit,children:n}),":",(0,eh.jsx)("span",{className:aO().digit,children:o}),":",(0,eh.jsx)("span",{className:aO().digit,children:s})]})});return t?c:(0,eh.jsxs)("div",{className:eB()(aO().root,a),children:[(0,eh.jsx)("p",{className:aO().title,children:l}),c]})}),aW=a(78489),aF=a(69737),aU=a(16730),aZ=a.n(aU),copyToClipboard_copyToClipboard=e=>{aZ()(e),aZ()(e)},useCopy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[a,r]=(0,eC.useState)(!1),i=(0,eC.useRef)(null),n=(0,eT.C5)(),o=(0,eT.wL)();return(0,eC.useEffect)(()=>()=>{i.current&&n.clearTimeout(i.current)},[n]),{isCopied:a,copy:(0,eC.useCallback)(()=>{i.current&&n.clearTimeout(i.current);try{copyToClipboard_copyToClipboard(e),i.current=n.setTimeout(()=>{r(!0),i.current=n.setTimeout(()=>{r(!1)},eW.K8+t)},t)}catch(e){o.logError({error:e,hardErrorCode:aF.Pe.CopyToClipboardError})}},[t,o,e,n])}},useShare=e=>{var t,{title:a,text:r,url:i,modalId:n,buttonName:o,changeStateDelayMs:s=0}=e,l=(0,eT.wL)(),c=(0,eT.rS)(),getShareText=()=>"".concat(a,"\n\n").concat(r,"\n\n").concat(i),d=(t=(0,aW._)(function*(){try{yield navigator.share({text:getShareText()})}catch(e){l.logError({error:e,hardErrorCode:aF.Pe.NativeShareError})}}),function(){return t.apply(this,arguments)}),{isCopied:u,copy:m}=useCopy(getShareText(),s);return{isCopied:u,onClickShare:()=>{c.trackShareButtonClick(n,o),navigator.share?d():m()}}},ShareButton=e=>{var{text:t,copiedText:a,shareTitle:r,shareText:i,shareLink:n,modalId:o,buttonName:s,className:l}=e,{isCopied:c,onClickShare:d}=useShare({title:r,text:i,url:n,modalId:o,buttonName:s});return(0,eh.jsx)(tC,{theme:O.Dark,size:V.Medium,className:l,onClick:d,children:c?a:t})},az=a(63367),aq=a.n(az),aK=a(17340),aY=a.n(aK),Toggle=e=>{var{isEnabled:t,onClick:a}=e;return(0,eh.jsx)("button",{className:eB()(aY().root,{[aY().enabled]:t}),onClick:a})},aX=a(84997),aQ=a.n(aX),aJ=a(5167);(f=q||(q={})).Small="small",f.Default="default",f.Big="big",(x=K||(K={})).Empty="empty",x.Question="question",x.Info="info",x.InfoTui="info-tui";var a$={empty:(0,eh.jsx)(eh.Fragment,{}),info:(0,eh.jsx)(()=>(0,eh.jsx)("svg",{width:"4",height:"9",viewBox:"0 0 4 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 0.933187C1 1.39342 1.3731 1.76652 1.83333 1.76652H2.85V0.933187C2.85 0.47295 2.4769 0.0998535 2.01667 0.0998535H1V0.933187ZM3.33333 6.80458H2.83333V3.54145C2.83333 3.17326 2.53486 2.76652 2.16667 2.76652H0.166667V3.54145C0.166667 3.90964 0.465144 4.26201 0.833333 4.26201H1.16667V6.80458L0 6.80458V7.5144C0 7.88259 0.465144 8.18107 0.833333 8.18107H4V7.5144C4 7.14621 3.70152 6.80458 3.33333 6.80458Z",fill:"#9299A2"})}),{}),question:(0,eh.jsx)(()=>(0,eh.jsxs)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:"mask0_6899_27297",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"8",height:"12",children:[(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.00127 7.60119L7 7.60129V8.25928H5V7.75928C5 6.43803 5.51359 6.19025 6.08414 5.91499C6.37725 5.77358 6.68539 5.66446 6.94666 5.35928C7.77623 4.54568 7.15 3.25928 6.10018 3.26711C5.87118 3.24864 5.64153 3.29384 5.4366 3.3977C5.23168 3.50156 5.05945 3.66006 4.93895 3.85567C4.8917 3.93237 4.85313 4.0136 4.82366 4.09788C4.77801 4.22841 4.75419 4.36661 4.75379 4.50613L2.75 4.50107C2.75305 3.29154 3.45184 2.15717 4.53072 1.61036C5.06515 1.33949 5.66406 1.22163 6.26128 1.2698C7.92297 1.40383 9.28663 2.82597 9.3 4.50928C9.31089 5.87953 8.26635 7.19151 7.00127 7.60119Z",fill:"black"}),(0,eh.jsx)("path",{d:"M5 11.2593H6.3C6.6866 11.2593 7 10.9459 7 10.5593V9.25928H5.7C5.3134 9.25928 5 9.57268 5 9.95928V11.2593Z",fill:"black"})]}),(0,eh.jsx)("g",{mask:"url(#mask0_6899_27297)",children:(0,eh.jsx)("path",{d:"M0 0.259277H12V12.2593H0V0.259277Z",fill:"#9299A2"})})]}),{}),"info-tui":(0,eh.jsx)(aJ.I$8,{theme:{color:"rgba(255, 255, 255, 0.5)"}})},useStopPropagationAndPreventEventForTouchEvents=e=>{(0,eC.useEffect)(()=>{var stopPropagation=e=>e.stopPropagation(),stopPropagationAndPreventEvent=e=>{stopPropagation(e),e.preventDefault()};return null==e||e.addEventListener("touchstart",stopPropagation),null==e||e.addEventListener("touchmove",stopPropagationAndPreventEvent),()=>{null==e||e.removeEventListener("touchstart",stopPropagation),null==e||e.removeEventListener("touchmove",stopPropagationAndPreventEvent)}},[e])},isTooltipButtonPropsByIconType=e=>"type"in e;function TooltipButton(e){var{tooltipText:t,tooltipContentMaxWidth:a,tooltipPosition:r,tooltipSourceClassName:i,className:n,activeClassName:o="",iconClassName:s,onClose:l,type:c=K.Question,size:d=q.Default,isCentered:u=!1,isOpened:m,onChangeTooltipVisibility:_,offsets:p,onClick:g,onPointerDown:h,y:f=0,theme:x=P.Dark,tooltipClassName:v,children:w}=e,C=(0,eC.useRef)(null),b=useElementBoundingRect(C),[j,k]=(0,eC.useState)(!!m);(0,eC.useEffect)(()=>{m?k(!0):!1===m&&k(!1)},[m]),(0,eC.useEffect)(()=>{null==_||_(j)},[j,_]),useStopPropagationAndPreventEventForTouchEvents(C.current);var y=(0,eC.useCallback)(e=>{e.stopPropagation(),k(!1),null==l||l()},[l]),S=(0,eC.useCallback)(e=>{var t;!j||(null===(t=C.current)||void 0===t?void 0:t.contains(e.target))||(k(!1),null==l||l())},[j,l]);return(0,eh.jsxs)("button",{ref:C,"data-size":d,"data-type":isTooltipButtonPropsByIconType(e)?c:void 0,className:eB()(aQ().root,aQ()[x],n,{[aQ().active]:j,[o]:j,[aQ().centered]:u}),onClick:e=>{var t;(null===(t=C.current)||void 0===t?void 0:t.contains(e.target))&&(e.stopPropagation(),k(e=>!e),null==g||g(),j&&(null==l||l()))},onPointerDown:h,children:[isTooltipButtonPropsByIconType(e)?(0,eh.jsx)("span",{className:eB()(s,{[aQ().info]:c===K.Info}),children:a$[c]}):w,r===R.Fixed?(0,eh.jsx)(eh.Fragment,{children:b&&(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(Tooltip,{isVisible:j,position:R.Fixed,targetRect:b,theme:x,contentMaxWidth:294,onClick:y,onPointerDown:h,onPointerDownOutside:S,sourceClassName:i,children:t})})}):(0,eh.jsx)(Tooltip,{isVisible:j,x:"50%",y:f,position:R.Absolute,theme:x,offsets:p,contentMaxWidth:a,onPointerDownOutside:S,className:v,children:t})]})}var a0=(0,ew.Pi)(e=>{var{className:t}=e,a=(0,eT.G3)(),r=(0,eT.LM)(),i=(0,eT.rS)(),n=void 0===a.nextDailyWordIn,{text:o,tooltip:s}=(0,ts.r)("Subscription");return(0,eh.jsxs)("div",{className:eB()(aq().root,t),children:[(0,eh.jsx)("p",{className:aq().text,children:o}),n?(0,eh.jsx)(e$.a,{className:aq().loader}):(0,eh.jsxs)("div",{className:aq().toggle,children:[(0,eh.jsx)(TooltipButton,{type:K.Info,tooltipText:s,className:aq().toggleButton,offsets:{minDistanceToLeftOrRightEdge:eW.L$}}),(0,eh.jsx)(Toggle,{onClick:()=>{i.trackToggleNotifications(tF.Z.Result,!r.isSubscribed),r.toggleSubscription()},isEnabled:r.isSubscribed})]})]})}),getPluralForm=(e,t,a,r)=>{var i=Math.abs(e);return(i%=100)>=5&&i<=20?r:1==(i%=10)?t:i>=2&&i<=4?a:r},createPluralizer=(e,t,a)=>r=>getPluralForm(r,e,t,a),a1=a(90503),a2=a.n(a1),a3=a(4286),a5=a.n(a3),useFontLoader=e=>{var{fontName:t,variant:a}=e,[r,i]=(0,eC.useState)({isFontLoaded:!1}),n=(0,eT.O)(),o=(0,eT.ZR)();return(0,eC.useEffect)(()=>{new(a5())(t,a).load().then(()=>{i({isFontLoaded:!0})}).catch(e=>{i({isFontLoaded:!1,error:e});var a="Не удалось загрузить шрифт ".concat(t,".");n.captureException({error:e,message:a}),o.isProd||console.error(a,e)})},[t,a,n]),r},SwitchableContainer=e=>{var{current:t,next:a,transitionTimeMs:r,isSwitched:i,rerenderFontTrigger:n}=e,o=(0,eC.useRef)(null),s=(0,eC.useRef)(i),l=(0,eC.useRef)(null),c=(0,eC.useRef)(null),d=(0,eC.useRef)(null),{isFontLoaded:u}=useFontLoader({fontName:n.fontName,variant:n.variant}),[m,_]=(0,eC.useState)(i);(0,eC.useLayoutEffect)(()=>{o.current&&l.current&&c.current&&d.current&&i&&(o.current.enable(),o.current.slideTo(1,r),o.current.disable(),l.current.style.height="".concat(c.current.clientHeight,"px"),l.current.style.height="".concat(d.current.clientHeight,"px"))},[i,r,u]);var p=(0,eC.useCallback)(()=>{if(o.current){var e=o.current.activeIndex;if(e>=0){var t=o.current.el.querySelectorAll(".swiper-slide");t.forEach(e=>e.removeAttribute("data-qa")),t[e].setAttribute("data-qa",eY.BE.SwitchableContainer.activeGiftSlide)}}},[]);return(0,eh.jsxs)("div",{ref:l,className:a2().root,style:{transitionDuration:"".concat(r,"ms")},children:[(0,eh.jsx)("div",{ref:c,className:eB()(a2().invisibleBox,a2().current),children:s.current?a:t}),(0,eh.jsx)("div",{ref:d,className:eB()(a2().invisibleBox,a2().next),children:a}),(0,eh.jsxs)(e5.tq,{className:eB()(a2().swiper,{[a2().finished]:m}),enabled:!1,spaceBetween:20.5,initialSlide:i?1:0,slidesPerView:1,onSwiper:e=>{o.current=e,p()},onSlideChange:p,onTransitionEnd:()=>i&&_(!0),children:[(0,eh.jsx)(e5.o5,{children:m?null:t}),(0,eh.jsx)(e5.o5,{children:a})]})]})},a4=a(8607),a9=a.n(a4),a6=a(33149),a8=a(8401),a7=a(50950),re=a.n(a7),rt=a(56112),ra=a.n(rt),ClockIcon=e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,eh.jsx)("mask",{id:"mask0_3370_2324",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14",children:(0,eh.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM7.5 3.9737H7L7.00072 9L10.6588 10.7544L10.8699 10.3017C11.22 9.55089 10.8952 8.65841 10.1444 8.30831L9 7.72602V5.4737C9 4.64527 8.32843 3.9737 7.5 3.9737Z",fill:"white"})}),(0,eh.jsx)("g",{mask:"url(#mask0_3370_2324)",children:(0,eh.jsx)("path",{d:"M0 0H16V16H0V0Z",fill:"#F6F7F8"})})]})},rr=eC.forwardRef((e,t)=>{var{name:a,nameClassName:r,subtitle:i,description:n,imageLink:o,className:s,cardClassName:l,imageClassName:c,descriptionClassName:d,buttonsClassName:u,mainButton:m,detailsButton:_,isPending:p,isExpired:g,isHighlighted:h,children:f,onClick:x,expirationHint:v,isShining:w,id:C}=e;return(0,eh.jsxs)("div",{ref:t,id:C,className:eB()(ra().root,{[ra().pending]:p,[ra().expired]:g},s),children:[(0,eh.jsxs)("div",{className:eB()(ra().card,{[ra().highlighted]:h,[ra().shining]:w},l),onClick:x,children:[(0,eh.jsx)(Image_Image,{src:o,alt:a,className:eB()(ra().image,c)}),(0,eh.jsxs)("div",{className:ra().content,children:[i&&(0,eh.jsx)("p",{className:ra().subtitle,children:i}),(0,eh.jsx)("p",{className:eB()(ra().name,r),children:a}),n&&(0,eh.jsx)("p",{className:eB()(ra().description,d),children:n}),(0,eh.jsxs)("div",{className:ra().additionalInfo,children:[v&&(0,eh.jsxs)("p",{className:ra().expirationHint,children:[(0,eh.jsx)(ClockIcon,{className:ra().expirationIcon}),v]}),m&&(0,eh.jsx)(eh.Fragment,{children:(0,eh.jsxs)("div",{className:eB()(ra().buttons,u),children:[(0,eh.jsx)(tC,{id:m.id,size:V.Medium,theme:m.theme,className:eB()(ra().mainButton,m.className),onClick:m.onClick,disabled:m.disabled,isLoading:m.isLoading,beforeContent:m.beforeContent,children:m.title}),_&&(0,eh.jsx)("button",{className:ra().detailsButton,onClick:_.onClick,children:(0,eh.jsx)(Image_Image,{src:"/icons/question-icon.svg",alt:""})})]})})]})]})]}),f]})});rr.displayName="GiftCardView";var useGiftImage=(e,t)=>{var a=a8.RU.Secret,r=e.giftClass===a8.eC.Top,i=!1;void 0!==e.status&&(i=e.status===a8.iU.Pending);var{isSpecialGiftImagesEnabled:n}=(0,eT.bW)(),{giftImage:o}=(0,eT.NV)().GiftCardV2;return r?a=a8.RU.Top:(void 0!==e.winsLeft||i)&&!t&&(a=a8.RU.Pending),n&&e.specialImageLink&&a!==a8.RU.Pending?e.specialImageLink:e.imageLink&&a!==a8.RU.Pending?e.imageLink:n?o["".concat(a,"Special")]:o[a]},ri=eC.forwardRef((e,t)=>{var{gift:a,modalId:r,receiveButtonId:i,onClickReceive:n,className:o}=e,s=(0,eT.rS)(),{secretGift:l,topGift:c}=(0,eT.NV)().GiftCardV2.ReceivableCurrentGiftCard,d=a.giftClass===a8.eC.Top,u=d?a.name:l.name,m={id:i,className:re().mainButton,title:d?c.button:l.button,onClick:()=>{}},_=useGiftImage(a);return(0,eh.jsx)(rr,{ref:t,className:o,name:u,imageLink:_,mainButton:m,onClick:e=>{null==n||n(e),s.trackCurrentGiftReceiveButtonClick(a.giftClass===a8.eC.Top?a.id:null,a.name,m.title,r)}})});ri.displayName="ReceivableCurrentGiftCard";var rn=a(92674),ro=a.n(rn),rs=a(55142),rl=a.n(rs),GiftCardWithTooltip=e=>{var{tooltipContent:t,children:a,className:r,giftClass:i}=e,n=(0,eC.useRef)(null),[o,s]=(0,eC.useState)(),l=(0,eC.useCallback)(()=>{n.current&&s(n.current.getBoundingClientRect().left)},[]);return(0,eh.jsxs)("div",{ref:n,className:eB()(rl().wrapper,r),"data-gift-class":i,children:[a,(0,eh.jsx)(TooltipButton,{className:rl().tooltipButton,type:K.Info,tooltipText:t,offsets:{minDistanceToLeftOrRightEdge:o},onClick:l,isCentered:!0,tooltipContentMaxWidth:263})]})},rc=a(54146),rd=eC.forwardRef((e,t)=>{var{gift:a,className:r,isResultModal:i=!1,isShining:n}=e,{UpcomingGiftCard:{resultModal:o,giftDescription:s,giftModal:l},expireHint:{prefix:c}}=(0,eT.NV)().GiftCardV2,{nextHint:d}=l,u=i?o.secret.name:l.secret.name,m=i?o.nextHint.phrase:d.phrase,_="".concat(m," ").concat(a.winsLeft,"\xa0").concat(getPluralForm(a.winsLeft,d.pluralForms.one,d.pluralForms.two,d.pluralForms.five)),p=a.giftClass===a8.eC.Top,g=useGiftImage(a,i);return(0,eh.jsx)(GiftCardWithTooltip,{tooltipContent:p?s.top:s.secret,className:r,giftClass:a.giftClass,children:(0,eh.jsx)(rr,{ref:t,name:p?a.name:u,imageLink:g,description:_,imageClassName:eB()({[ro().inactiveImage]:i}),expirationHint:p&&a.lastReceiveDate?"".concat(c," ").concat((0,rc.formatDateToExtendedDayMonthRuLocale)(a.lastReceiveDate)):"",isShining:n})})});rd.displayName="UpcomingGiftCard";var ru=(0,ew.Pi)(e=>{var{onClickReceive:t}=e,{visibleGift:a,upcomingGift:r,currentGift:i}=(0,eT.ij)(),n=a===a6.q.Upcoming;return(0,eh.jsx)(SwitchableContainer,{rerenderFontTrigger:{fontName:eW.av.Roboto,variant:{weight:700}},transitionTimeMs:600,isSwitched:n,current:i?(0,eh.jsx)(ri,{gift:i,modalId:tF.Z.Result,receiveButtonId:eW.O.TakeGiftButton,onClickReceive:t}):void 0,next:r?(0,eh.jsx)(rd,{gift:r,isResultModal:!0,mainButton:{className:a9().mainButton}}):void 0})}),rm=a(13425),r_=a.n(rm),RightWordTooltipButton=e=>{var{className:t}=e,a=(0,eT.rS)(),{isFinishedRightNow:r}=(0,eT.gT)(),{isVisible:i,hide:n,toggle:o}=useVisibilityToggle(r),s=eW.O.RightWordTooltipButton,l=(0,eC.useCallback)(()=>{a.trackThematicWordAction(tc.C5.ClickQuestionButton),o()},[o,a]);return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("button",{onPointerDown:e=>e.stopPropagation(),onClick:l,className:eB()(r_().root,t),id:s,children:a$[K.Question]}),(0,eh.jsx)(ThematicWordTooltipContainer,{isVisible:i,elementSelector:"#".concat(s),elementContainerSelector:"#".concat(eW.O.ResultModal),hide:n})]})};a(45466),a(68380);var rp=a(47197);(Y||(Y={})).RTBOfferGate="RTBOfferGate",(X||(X={})).Close="close";var useRTBBannerOnClose=e=>{(0,eC.useEffect)(()=>{var handleMessage=t=>{var a,r;(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.type)===Y.RTBOfferGate&&(null==t?void 0:null===(r=t.data)||void 0===r?void 0:r.name)===X.Close&&(null==e||e())};return window.addEventListener("message",handleMessage),()=>window.removeEventListener("message",handleMessage)},[e])},rg=a(33398),rh=a.n(rg),RTBBanner=e=>{var{data:t,isVisible:a,onClose:r,className:i}=e;useRTBBannerOnClose(r);var n=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{n.current&&(n.current.style.maxHeight=a?"".concat(n.current.scrollHeight,"px"):"0px")},[a]),(0,eh.jsx)("div",{ref:n,className:eB()(rh().root,i),children:(0,eh.jsx)(rp.Vw,{data:t})})},rf=a(55971),rx=a.n(rf),AppUpdateReminder=()=>{var{imageSrc:e,title:t,description:a,button:r}=(0,ts.r)("AppUpdateReminder"),i=(0,eT.rS)();return(0,eh.jsxs)("div",{className:rx().root,children:[(0,eh.jsxs)("div",{className:rx().block,children:[(0,eh.jsx)(Image_Image,{className:rx().image,src:e,alt:""}),(0,eh.jsx)("p",{className:rx().title,children:t}),(0,eh.jsx)("p",{className:rx().description,children:a})]}),(0,eh.jsx)(tC,{className:rx().button,size:V.Medium,link:r.link,onClick:i.trackClickUpdateApp,children:r.title})]})},rv=a(32314),rw=a.n(rv);(v=Q||(Q={})).Default="default",v.Winter="winter",v.Spring="spring",(J||(J={})).Lecar="lecar";var DrawTicketCard=e=>{var{currentTicketNumber:t,onClickButton:a}=e,{Result:{drawTicketCard:{name:r,description:i,button:n,visual:o}}}=(0,ts.r)("Modals"),{theme:s}=(0,ts.r)("Modals").Draw,{img:{src:l}}=(0,ti.RH)(o[Q.Default],o[s]);return(0,eh.jsx)(rr,{name:r.replace("%index%",t.toString()),description:i,mainButton:{title:n.title,className:rw().mainButton,onClick:a,theme:O.Primary},imageLink:l,imageClassName:rw().image,buttonsClassName:rw().buttons})},rC=a(92717),rb=a.n(rC),AdditionalDrawTicketsInfoCardView=e=>{var{className:t,imageSrc:a,text:r,onMount:i}=e;return(0,eC.useEffect)(i,[]),(0,eh.jsxs)("div",{className:eB()(rb().card,t),children:[(0,eh.jsx)(Image_Image,{src:a,alt:"",className:rb().image}),r]})},AdditionalDrawTicketsInfoCard=e=>{var{className:t}=e,{Result:{additionalDrawTicketsInfoCard:a}}=(0,ts.r)("Modals"),{img:{src:r},text:i}=a,n=(0,eT.rS)(),{markAsIsShownAdditionalTicketsInfoCard:o,shouldShowAdditionalTicketsInfo:s}=(0,eT.H9)();return s?(0,eh.jsx)(AdditionalDrawTicketsInfoCardView,{className:t,imageSrc:r,text:i,onMount:()=>{n.trackAdditionalDrawTicketInfoShown(),o()}}):null},rj=(0,ew.Pi)(e=>{var t=(0,eT.s9)(),a=(0,eT.gT)(),r=(0,eT.LM)(),i=(0,eT.jf)(),n=(0,eT.T8)(),o=(0,eT.bW)(),s=(0,eT.nw)(),l=(0,eT.ij)(),c=(0,eT.rS)(),d=(0,eT.lH)(),{isVisible:u,hide:m}=useVisibilityToggle(!0);useLogRenderResult(aE.y8.GameResult,d.isLoading);var{Result:_}=(0,ts.r)("Modals"),{win:p,lose:g}=_,{shareTemplate:h}=p.shareButton,{isFinished:f,currentRowIndex:x,isWon:v,isLost:w,dailyWord:C,isThematicDailyWordActive:b,isFinishedRightNow:j}=a,{rtbOfferData:k,isViewedRTBOffer:y,closeRTBBanner:S}=n,T=(0,eC.useMemo)(()=>r.isSubscribed,[]),N=(0,eC.useMemo)(()=>j,[]);(0,eC.useEffect)(()=>{j&&c.trackShowResultModal(v)},[j,v,c]);var{onClickReceive:B,htmlElementStyle:I}=useReceiveAnimation({HTMLElementId:eW.O.GiftButton,onAnimationFinished:()=>{i.setHasNewGift(!0),l.markAsIsViewedCurrentGift(),d.scrollToTheLastItemGroup()}}),D=createPluralizer(h.attemptsCount.one,h.attemptsCount.two,h.attemptsCount.five),M=x+1,E="".concat(h.description,"\n\n").concat(h.text," ").concat(M,"/").concat(eS.Do," ").concat(D(M)),L=useResultTitle(),onClickDrawTicketCardButton=()=>{c.trackClickGetDrawTicket(s.drawStatus),t.replaceModal(tF.Z.Draw)};return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({qaTag:eY.BE.Modals.ResultModal.root},e),{isVisible:u,isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{}),(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:L,align:Z.Center}}),(0,eh.jsxs)("div",{className:aA().root,id:eW.O.ResultModal,children:[w&&C&&(0,eh.jsxs)("div",{className:aA().item,children:[(0,eh.jsx)("p",{className:aA().rightWordTitle,children:g.rightWordTitle}),(0,eh.jsxs)("p",{className:aA().rightWord,children:[C.word,b&&(0,eh.jsx)(RightWordTooltipButton,{className:aA().rightWordTooltipButton})]})]}),(0,eh.jsx)(tg,{isAnimated:!0,className:aA().item}),o.isAdditionalGamesSessionEnabled&&(0,eh.jsx)(tM,{onClick:()=>{m(),a.setShouldStartingAdditionalGame(!0),c.trackStartAdditionalGameButtonClick(!0)},className:aA().additionalGameButton}),o.isAdditionalGamesSessionEnabled&&(0,eh.jsx)(AdditionalDrawTicketsInfoCard,{className:aA().additionalDrawTicketsInfoCard}),N&&s.drawTicket&&!l.currentGift&&(0,eh.jsx)("div",{className:aA().item,children:(0,eh.jsx)(DrawTicketCard,{currentTicketNumber:s.drawTicket.currentTicketNumber,onClickButton:onClickDrawTicketCardButton})}),f&&i.isGiftsAvailable&&(0,eh.jsx)("div",{className:aA().item,children:(0,eh.jsx)(ru,{onClickReceive:e=>{c.trackClickGetPrize(),B(e)}})}),N&&s.drawTicket&&l.currentGift&&(0,eh.jsx)("div",{className:aA().item,children:(0,eh.jsx)(DrawTicketCard,{currentTicketNumber:s.drawTicket.currentTicketNumber,onClickButton:onClickDrawTicketCardButton})}),k&&(0,eh.jsx)(RTBBanner,{className:eB()(aA().item,{[aA().hidden]:y}),data:k,isVisible:!y,onClose:S}),o.isAppUpdateRedirectEnabled?(0,eh.jsx)("div",{className:aA().item,children:(0,eh.jsx)(AppUpdateReminder,{})}):(0,eh.jsx)(eh.Fragment,{children:!T&&(0,eh.jsx)(a0,{className:eB()(aA().subscription,aA().item)})}),!o.isAdditionalGamesSessionEnabled&&(0,eh.jsx)(aV,{className:eB()(aA().timer,aA().item)}),v&&(0,eh.jsxs)("div",{className:eB()(aA().item,aA().attemptsInner),children:[(0,eh.jsx)("p",{className:aA().numberOfAttemptsTitle,children:p.numberOfAttemptsTitle}),(0,eh.jsxs)("p",{className:aA().attempts,children:[(0,eh.jsx)("span",{className:aA().successful,children:M}),"/",eS.Do]}),(0,eh.jsx)(ShareButton,{text:p.shareButton.text,copiedText:p.shareButton.copiedText,shareTitle:h.title,shareText:E,shareLink:h.link,modalId:tF.Z.Result,buttonName:p.shareButton.name,className:aA().shareButton})]}),T&&(0,eh.jsx)(a0,{className:aA().item})]})]})]})),I&&(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(GiftButton,{className:aA().giftButton,onClick:t.showGiftsModal,hasDotIndicator:i.isVisibleGiftsIndicator,style:(0,tp._)((0,te._)({},I),{position:"fixed",transitionDuration:"".concat(600,"ms")})})})]})}),rk=a(18914),ry=a.n(rk),NewDayModal=e=>{var{NewDay:{title:t,description:a,reloadButton:r}}=(0,ts.r)("Modals"),[i,n]=(0,eC.useState)(),{startHideModal:o,hideModal:s}=(0,eT.s9)(),{startNewDay:l}=(0,eT.fA)();return(0,eh.jsx)(Modal,(0,tp._)((0,te._)({},e),{isClosableOnlyByChildren:!0,isVisible:i,qaTag:eY.BE.Modals.NewDayModal.root,onStartClose:o,onClose:()=>s(tF.Z.NewDay),children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:t,align:Z.Center,className:ry().title}}),(0,eh.jsx)("p",{className:ry().description,children:a}),(0,eh.jsx)(tC,{className:ry().reloadButton,onClick:()=>{n(!1),l()},children:r})]})}))},useErrorResources=e=>{var{Error:{defaultError:t,errors:a,backendErrors:r}}=(0,ts.r)("Modals");if(!e)return t;var{errorCode:i}=e,n=a.find(t=>t.errorCodes.includes(e.errorCode))||r.find(t=>i.startsWith(t.errorCodePrefix)||t.instanceOf&&e instanceof t.instanceOf);return null!=n?n:t},rS=a(43603),rT=a(20826),rN=a(29918),rB=a(91534),ErrorModal=e=>{var{errorInfo:t,onOpen:a}=e,{text:r,title:i,button:n,isErrorCodeVisible:o,modalPortalSelector:s}=useErrorResources(t),{hideModal:l}=(0,eT.s9)();(0,eC.useEffect)(()=>{null==a||a()},[]);var c=n&&(0,rT.ZT)(n)?{text:n.text,onClick:()=>{switch(n.action){case aF._2.Reload:location.reload();break;case aF._2.Close:l(tF.Z.Error)}}}:void 0,d=n&&(0,rT.tO)(n)?n:void 0;return(0,rB.A)(null==t?void 0:t.errorCode,n&&(0,rT.ZT)(n)?n.action:void 0),(0,eh.jsx)(Portal,{selector:null!=s?s:"body",children:(0,eh.jsx)(rS.C,{title:i,description:r,errorCode:null==t?void 0:t.errorCode,timestamp:null==t?void 0:t.timestamp,requestId:null==t?void 0:t.requestId,isErrorCodeVisible:!!o,button:c,link:d,position:s?rN.q.Absolute:rN.q.Fixed})})},TechnicalWorkModal=()=>{var{TechnicalWork:{title:e,description:t}}=(0,ts.r)("Modals");return(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(rS.C,{dataQa:eY.BE.Modals.TechnicalWorkModal.root,title:e,description:t,isErrorCodeVisible:!1})})},rI=a(38082),rD=a.n(rI),rM=a(76019),rE=a.n(rM),Content=e=>{var{className:t,style:a,onClick:r,children:i}=e;return(0,eh.jsx)("div",{className:eB()(rE().root,t),style:a,onClick:r,children:i})},LinkIcon=e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsxs)("mask",{id:"mask0_3083_57985",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"5",width:"24",height:"15",children:[(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5.5H5C2.23858 5.5 0 7.73858 0 10.5V19.5H10V16.5H3V11.5C3 9.84315 4.34314 8.5 6 8.5H10V5.5ZM14 16.5H18C19.6569 16.5 21 15.1569 21 13.5V8.5H14V5.5H24V14.5C24 17.2614 21.7614 19.5 19 19.5H14V16.5Z",fill:"black"}),(0,eh.jsx)("path",{d:"M6.5 13.5C6.5 12.1193 7.61929 11 9 11H17.5V11.5C17.5 12.8807 16.3807 14 15 14H6.5V13.5Z",fill:"black"})]}),(0,eh.jsx)("g",{mask:"url(#mask0_3083_57985)",children:(0,eh.jsx)("rect",{width:"24",height:"24",fill:"#FFDD2D"})})]})},YellowInfoIcon=e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{className:t,width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("mask",{id:"mask0_3044_71824",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"7",y:"1",width:"12",height:"20",children:(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5C10.8954 5 10 4.10457 10 3V1H13C14.1046 1 15 1.89543 15 3V5H12ZM15 17H16.5C17.6046 17 18.5 17.8954 18.5 19V21H9.5C8.39543 21 7.5 20.1046 7.5 19V17H11V11.5H10.5C9.39543 11.5 8.5 10.6046 8.5 9.5V8H13C14.1046 8 15 8.89543 15 10V17Z",fill:"black"})}),(0,eh.jsx)("g",{mask:"url(#mask0_3044_71824)",children:(0,eh.jsx)("path",{d:"M0.5 0H24.5V24H0.5V0Z",fill:"#FFDD2D"})})]})},rL=a(40750),rR=a.n(rL),rP=a(65378),rG=a.n(rP),rA=a(55198),rH=a.n(rA),StatItem=e=>{var{description:t,value:a,isSynchronized:r,className:i,postfix:n,qaTag:o,tooltipText:s,onTooltipClose:l,isTooltipOpened:c=!1,muted:d=!1,isEnabled:u=!0,parentElement:m}=e,_=(0,eC.useRef)(null),[p,g]=(0,eC.useState)(),h=(0,eC.useCallback)(()=>{_.current&&m&&g(_.current.getBoundingClientRect().top-m.getBoundingClientRect().top)},[m]);return(0,eh.jsxs)("div",{className:eB()(rH().root,i,{[rH().muted]:d,[rH().enabled]:u}),"data-qa":o,ref:_,children:[(0,eh.jsxs)("p",{className:rH().description,children:[t,s&&(0,eh.jsx)(TooltipButton,{className:rH().tooltipButton,size:q.Small,type:K.Info,tooltipText:s,isOpened:c,onClose:l,onClick:h,offsets:{minDistanceToTopEdge:p,tooltipVertical:8+tr.tooltipVertical},y:"50%",isCentered:!0})]}),r?(0,eh.jsxs)("p",{className:rH().value,children:[(0,eh.jsx)(AnimatedCounterResolver,{number:a,fractionalPartLength:2,durationMS:1e3}),n]}):(0,eh.jsx)("div",{className:rH().loaderWrapper,children:(0,eh.jsx)(e$.a,{className:rH().loader})})]})},StatItemList=e=>{var{items:t,isSynchronized:a,parentElement:r}=e;return t.length?(0,eh.jsx)("div",{className:rG().root,children:t.map((e,t)=>(0,eh.jsx)(StatItem,(0,tp._)((0,te._)({},e),{isSynchronized:a,className:eB()({[rG().mutedStatItem]:e.muted}),parentElement:r}),t))}):null},rO=a(86760),useStatisticsWithDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,t=(0,eT.yI)(),a=(0,eT.y0)(),{isSynchronized:r,statistics:i}=a,n=(0,eT.C5)(),o=(0,eC.useRef)(null),s=a.getStoredGameStatistics(),[l,c]=(0,eC.useState)(i);return(0,eC.useEffect)(()=>{a.syncWithServer()},[a]),(0,eC.useEffect)(()=>{if(r){if(t.isUserStatChanged(i)&&s){c((0,eR.Zi)(s,i));var l=(0,eR.Zi)(i,s);o.current=n.setTimeout(()=>{c(l)},e)}else c(i);a.saveGameStatisticsToStorage()}return()=>{o.current&&n.clearTimeout(o.current)}},[r,i,n,e,a,t,s]),{isSynchronized:r,statistics:l}},rV=(0,ew.Pi)(e=>{var{parentElement:t}=e,a=(0,eT.OY)(),r=(0,eT.rS)(),i=eY.BE.Statistics,{currentStep:n,nextStep:o}=a,{isSynchronized:s,statistics:l}=useStatisticsWithDelay(),{isEnergyOnboardingEnabled:c,isAdditionalGamesSessionEnabled:d}=(0,eT.bW)();(0,eC.useEffect)(()=>{r.trackShowStats()},[r]);var{GameInfo:{statisticsLabels:u,statistics:{title:m,description:_}}}=(0,ts.r)("Modals"),p=n!==rO.s.StatItemHint,g=[(0,tp._)((0,te._)({},u.winRatePercent),{qaTag:i.winRatePercent,value:l.winRatePercent,isTooltipOpened:n===rO.s.StatItemHint,onTooltipClose:o}),(0,tp._)((0,te._)({},u.averageAttemptCount),{qaTag:i.averageAttemptCount,value:l.averageAttemptCount,isEnabled:p}),(0,tp._)((0,te._)({},u.guessedWordCount),{qaTag:i.guessedWordCount,value:l.guessedWordCount,isEnabled:p}),(0,tp._)((0,te._)({},u.winStreakInDays),{qaTag:i.winStreakInDays,value:l.currentWinStreakInDays,isEnabled:p})];return+l.bestWinStreakInDays>+l.currentWinStreakInDays&&g.push((0,tp._)((0,te._)({},u.prevWinStreakInDays),{qaTag:i.prevWinStreakInDays,value:l.bestWinStreakInDays,muted:!0})),(0,eh.jsxs)(Content,{className:rR().content,children:[c&&d&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("div",{className:rR().title,children:m}),(0,eh.jsx)("div",{className:rR().description,children:_})]}),(0,eh.jsx)(StatItemList,{isSynchronized:s,items:g,parentElement:t})]})}),rW=a(99021),rF=a.n(rW),rU=eC.forwardRef((e,t)=>{var{className:a,disabled:r,children:i,onClick:n}=e,[o,s]=(0,eC.useState)(!1),onPointerUp=()=>s(!1);return(0,eh.jsx)("div",{ref:t,draggable:"false",className:eB()(rF().root,{[rF().active]:o,[rF().disabled]:r},a),onClick:r?void 0:n,onPointerDown:()=>s(!0),onPointerUp:onPointerUp,onPointerCancel:onPointerUp,children:i})});rU.displayName="PressScaleLite";var rZ=(0,ew.Pi)(e=>{var t=(0,eT.G3)(),a=(0,eT.s9)(),r=(0,eT.LM)(),i=(0,eT.bW)(),n=(0,eT.rS)(),{currentStep:o,nextStep:s}=(0,eT.OY)(),l=(0,eT.y0)();useLogRenderResult(aE.y8.UserStatistics,l.isLoading);var{GameInfo:{title:c,subscription:d,buttons:u}}=(0,ts.r)("Modals"),[m,_]=(0,eC.useState)(null),{isCopied:p,onClickShare:g}=useShare({title:u.share.template.title,text:u.share.template.text,url:u.share.template.link,modalId:tF.Z.GameInfo,buttonName:u.share.name}),h=void 0===t.nextDailyWordIn;return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({qaTag:eY.BE.Modals.GameInfoModal.root},e),{isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{}),(0,eh.jsxs)(Modal.Container,{onMounted:_,children:[(0,eh.jsx)(Modal.Header,{title:{text:c,align:Z.Center}}),(0,eh.jsx)(rV,{parentElement:m}),i.isAppUpdateRedirectEnabled?(0,eh.jsx)("div",{className:rD().subscriptionBlock,children:(0,eh.jsx)(aV,{})}):(0,eh.jsxs)(Content,{className:rD().subscriptionBlock,children:[(0,eh.jsxs)("div",{className:rD().subscription,children:[(0,eh.jsxs)("div",{className:rD().title,children:[d.title,(0,eh.jsx)(TooltipButton,{type:K.Info,tooltipText:d.tooltip,isOpened:o===rO.s.SubscriptionHint,onClose:s,className:rD().toggleButton})]}),h?(0,eh.jsx)(e$.a,{className:rD().loader}):(0,eh.jsx)("div",{className:rD().subscriptionToggle,children:(0,eh.jsx)(Toggle,{isEnabled:r.isSubscribed,onClick:()=>{n.trackToggleNotifications(tF.Z.GameInfo,!r.isSubscribed),r.toggleSubscription()}})})]}),(0,eh.jsx)(aV,{showOnlyTimer:!0,className:rD().nextWordTimer}),(0,eh.jsx)("p",{className:rD().nextWordTimerHint,children:d.nextWordTimerHint})]}),(0,eh.jsxs)("div",{className:rD().buttons,children:[(0,eh.jsx)(rU,{className:rD().buttonWrapper,onClick:()=>{m&&(a.showRules(m.clientHeight),n.trackRulesButtonClick())},children:(0,eh.jsxs)(Content,{className:rD().button,children:[(0,eh.jsxs)("div",{className:rD().buttonHeader,children:[u.rules.title,(0,eh.jsx)(YellowInfoIcon,{className:rD().buttonIcon})]}),(0,eh.jsx)("p",{className:rD().buttonDescription,children:u.rules.description})]})}),(0,eh.jsx)(rU,{className:rD().buttonWrapper,onClick:g,children:(0,eh.jsxs)(Content,{className:rD().button,children:[(0,eh.jsxs)("div",{className:rD().buttonHeader,children:[u.share.title,(0,eh.jsx)(LinkIcon,{className:rD().buttonIcon})]}),(0,eh.jsx)("p",{className:rD().buttonDescription,children:p?u.share.copiedText:u.share.description})]})})]})]})]}))}),rz=a(35024),rq=a.n(rz),rK=(0,ew.Pi)(()=>{var{shouldSyncUpcomingGifts:e,isUpcomingGiftsLoading:t,upcomingGifts:a,checkIfUpcomingGiftsRequestDayChanged:r,syncUpcomingGiftsWithServer:i}=(0,eT.jf)(),{inactiveGiftIndexes:n,isGiftsOnboardingFinished:o,isInactiveTabs:s}=(0,eT.Ck)(),{topGiftOnboardingActive:l,getInactiveGiftFlagByIndex:c}=(0,eT.KT)(),{Gifts:{tabs:{upcoming:{tabDisclaimer:d}}}}=(0,ts.r)("Modals");return(0,eC.useEffect)(()=>{r(),i()},[r,i]),(0,eh.jsx)("div",{id:eW.O.UpcomingGifts,className:rq().gifts,children:e||t?(0,eh.jsx)(e$.a,{className:rq().loader}):(0,eh.jsxs)(eh.Fragment,{children:[a.map((e,t)=>(0,eh.jsx)(rd,{className:eB()(rq().giftItem,{[rq().inactive]:n.includes(t)||c(t),[rq().notClickable]:!o||l}),gift:e,isShining:e.giftClass===ez.eC.Top},"upcoming_gift_".concat(t))),(0,eh.jsx)("div",{className:eB()(rq().disclaimer,{[rq().inactive]:s||l}),children:d})]})})}),useLoadOnScroll=e=>{var{loadNextItems:t,hasNext:a,bottomDistance:r=eW.qY,scrollableContainerClass:i=eW.Yj}=e,n=(0,eC.useRef)(null),[o,s]=(0,eC.useState)(!1);return(0,eC.useEffect)(()=>{var e,l,c=null===(l=n.current)||void 0===l?void 0:l.closest(".".concat(i));if(c){var d=(e=(0,aW._)(function*(){var e=n.current;e&&!o&&e.clientHeight+e.getBoundingClientRect().top-c.clientHeight{s(!1)}))}),function(){return e.apply(this,arguments)});if(a)return c.addEventListener("scroll",d),()=>{c.removeEventListener("scroll",d)}}},[t,o,a,r,i]),{wrapperRef:n,isLoading:o}},rY=a(69791),rX=a.n(rY),NoGifts=e=>{var{image:t,title:a,subtitle:r,button:i,imageAspectRatio:n=1}=e;return(0,eh.jsxs)("div",{className:rX().root,children:[(0,eh.jsx)(tS,{className:rX().imageWrapper,aspectRatio:n,children:(0,eh.jsx)(Image_Image,{className:rX().image,src:t,alt:a||""})}),a&&(0,eh.jsx)("p",{className:rX().title,children:a}),r&&(0,eh.jsx)("p",{className:rX().subtitle,children:r}),i&&(0,eh.jsx)(tC,{link:i.link,className:rX().button,theme:O.Dark,size:V.Medium,children:i.text})]})},rQ=a(92750);function transformWithZ(e,t){var{x:a,y:r,z:i,scale:n}=e,o="";return(a||r||i)&&(o="translateX(".concat(a||0,") translateY(").concat(r||0,") translateZ(").concat(i||0,")")),void 0!==n&&(o+=" scale(".concat(n,")")),o}var rJ=(0,eC.memo)(e=>{var{count:t,start:a,end:r,durationMs:i=2e3,directionMultiplier:n=-.2,children:o,onAnimationComplete:s,onFillUp:l}=e,[c,d]=(0,eC.useState)(!1);if(c)return null;var u=Math.sqrt(a.left*a.left+r.left*r.left),m=i/1e3/2/t,_=m*(t+1),getMiddleX=()=>("number"==typeof n?[n]:n).map(e=>a.left+u*e),p=r.height/a.height,g=130/a.height;return(0,eh.jsx)(eh.Fragment,{children:(0,eZ.i7)(t).map(e=>{var i=e*m;return(0,eh.jsx)(rQ.E.div,{style:{position:"fixed",zIndex:1e4,left:0,top:0,transformOrigin:"center"},transition:{duration:_,delay:i,ease:"easeInOut"},initial:{x:a.left,y:a.top,scale:1,z:0},transformTemplate:transformWithZ,onAnimationComplete:()=>{if(e===t-1){null==s||s(),d(!0);return}0===e&&(null==l||l())},animate:{opacity:[0,.5,1,1,1,1,1,1,1,1,0],x:[a.left,...getMiddleX(),r.left-r.width/2],y:[a.top,r.top-r.height/2],z:0,scale:[1,1,.6*g,g,.5*g,p,p]},children:o},e)})})});rJ.displayName="FillingAnimation";var r$=(0,ew.Pi)(e=>{var{count:t,startRect:a,onAnimationComplete:r,directionMultiplier:i,theme:n}=e,{isChargingEnergy:o,completeChargingEnergy:s}=(0,eT.gq)(),[l]=useElementBoundingRect("#".concat(eW.O.EnergyButtonIcon),!0);return l&&0!==l.width&&o?(0,eh.jsx)(rJ,{start:a,end:l,directionMultiplier:i,durationMs:2*getEnergyChangeDurationMs(t,!0),count:t,onAnimationComplete:()=>{s(),null==r||r()},children:(0,eh.jsx)(tD,{style:{width:a.width,height:a.height},theme:n,withShadow:!0})}):null}),r0=a(81979),r1=a(62641),r2=a.n(r1),EnergyCurrentGiftCard=e=>{var t,{cardProps:a,gift:r,trackMainButtonClick:i,expirationHint:n}=e,{chargeRewardEnergy:o,handleEnergyState:s,finishChargingRewardEnergy:l}=(0,eT.Zv)(),c=(0,eT.jf)(),d=(0,eT.s9)(),u=(0,eT.C5)(),m=(0,eC.useRef)(null),_=(0,eC.useRef)(null),p=(0,eC.useRef)(null),g=(0,eC.useCallback)(()=>({main:{title:r.receiveGiftText,onClick:()=>{i(),o(r)},isLoading:c.energyRewardChargingId===r.userBundleId,beforeContent:(0,eh.jsx)(tD,{ref:m,className:r2().energyImage})}}),[r,o,c.energyRewardChargingId])(),h=useElementBoundingRect(m),f=_.current,x=null==f?void 0:f.getBoundingClientRect(),v=null!==(t=null==x?void 0:x.height)&&void 0!==t?t:0,handleAnimationEndState=()=>{if(l(r),f){var e=f.closest(".".concat(eW.Yj)),t=null==e?void 0:e.scrollTop;d.setGiftModalScrollPosition(null!=t?t:null)}s()},onCardHidingEnd=()=>{if(f){var e=(0,r0.T)(f);e.forEach(e=>{e.style.transition="transform ".concat(200,"ms linear"),e.style.transform="translateY(-".concat(v,"px)")}),e?p.current=u.setTimeout(()=>{e.forEach(e=>{e.style.transition="",e.style.transform=""}),handleAnimationEndState()},200):handleAnimationEndState()}};return(0,eC.useEffect)(()=>()=>{f&&(f.removeEventListener("transitionend",onCardHidingEnd),p.current&&u.clearTimeout(p.current))},[]),(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(rr,(0,tp._)((0,te._)({},a),{cardClassName:r2().card,mainButton:null==g?void 0:g.main,expirationHint:n,id:"gift-card-".concat(r.id),ref:_})),(0,eh.jsx)(Portal,{selector:"body",children:h&&c.energyRewardChargingId===r.userBundleId&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(r$,{directionMultiplier:0,count:r.config.amount,onAnimationComplete:()=>{f&&(f.classList.add(r2().hidingCard),f.addEventListener("transitionend",onCardHidingEnd))},startRect:h}),(0,eh.jsx)("div",{className:r2().overlay})]})})]})},BaseCurrentGiftCard=e=>{var{cardProps:t,gift:a,trackMainButtonClick:r,trackDetailsButtonClick:i,expirationHint:n}=e,o=(0,eT.Xu)(),s=(0,eC.useCallback)(()=>({main:{title:a.receiveGiftButton.text,onClick:()=>{var e;r(),null===(e=o.tryCreateLink(a.receiveGiftButton.link))||void 0===e||e.click()}},details:a.detailsButton?{onClick:()=>{var e;null==i||i(),null===(e=o.tryCreateLink(a.detailsButton.link))||void 0===e||e.click()}}:void 0}),[a])();return(0,eh.jsx)(rr,(0,tp._)((0,te._)({},t),{mainButton:null==s?void 0:s.main,detailsButton:null==s?void 0:s.details,expirationHint:n,id:"gift-card-".concat(a.id)}))},r3=a(6503),r5=(0,ew.Pi)(e=>{var{gift:t,modalId:a,className:r}=e,i=(0,eT.rS)(),n=(0,eT.NV)(),o=(0,eT.Vf)(),{pendingHint:s,secretGift:l}=n.GiftCardV2.CurrentGiftCard,{showExpireHintIfDaysToExpireLessOrEqualThan:c}=o.Gifts,{expireHint:{prefix:d}}=n.GiftCardV2,u=t.status===a8.iU.Pending,m=t.giftClass===a8.eC.Top,_={name:u&&!m?l.name:t.name,imageLink:useGiftImage(t),className:r,isHighlighted:t.isNew},getExpirationHint=()=>t.daysToExpire<=c?"".concat(d," ").concat((0,rc.formatDateToExtendedDayMonthRuLocale)(t.lastUsageDate)):"",trackMainButtonClick=()=>{i.trackCurrentGiftReceiveButtonClick(t.id,t.name,(0,r3.C)(t)?t.receiveGiftText:t.receiveGiftButton.text,a)};return u?(0,eh.jsx)(rr,(0,tp._)((0,te._)({},_),{subtitle:s.phrase,isPending:!0})):(0,r3.C)(t)?(0,eh.jsx)(EnergyCurrentGiftCard,{cardProps:_,gift:t,trackMainButtonClick:trackMainButtonClick,expirationHint:getExpirationHint()}):(0,eh.jsx)(BaseCurrentGiftCard,{cardProps:_,gift:t,trackMainButtonClick:trackMainButtonClick,trackDetailsButtonClick:()=>i.trackCurrentGiftDetailsButtonClick(t.id,t.name,a),expirationHint:getExpirationHint()})}),ExpiredGiftCard=e=>{var{gift:t,className:a}=e,{expiredHint:r}=(0,eT.NV)().GiftCardV2,i=useGiftImage(t);return(0,eh.jsx)(rr,{className:a,name:t.name,description:r.phrase,imageLink:i,isExpired:!0})},r4=(0,ew.Pi)(()=>{var{shouldSyncCurrentRewards:e,shouldSyncExpiredRewards:t,isCurrentRewardsLoading:a,currentRewards:r,loadNextExpiredGifts:i,expiredGiftsState:{hasNext:n},expiredRewards:o,isExpiredRewardsLoading:s,updateViewedGifts:l,syncCurrentRewardsWithServer:c,syncExpiredRewardsWithServer:d,tryUpdatePendingCurrentRewards:u}=(0,eT.jf)(),m=(0,eT.s9)(),{isInGameGiftsEnabled:_}=(0,eT.bW)(),{noGifts:p}=(0,ts.r)("Modals").Gifts.tabs.received,g=(0,eT.C5)(),{wrapperRef:h,isLoading:f}=useLoadOnScroll({hasNext:!_&&n,loadNextItems:i}),x=e&&a||t&&s,v=r.length||o.length;useUnmount(l),(0,eC.useEffect)(()=>(g.addEventListener("beforeunload",l),()=>{g.removeEventListener("beforeunload",l)}),[l,g]),(0,eC.useEffect)(()=>{if(0!==r.length){var e=u();return()=>{null==e||e()}}},[r.length,u]),(0,eC.useEffect)(()=>{c(),d()},[c,d]),(0,eC.useEffect)(()=>{if(!x&&m.giftModalScrollAmount){var e,t=null===(e=h.current)||void 0===e?void 0:e.closest(".".concat(eW.Yj));t&&(t.scrollTop=m.giftModalScrollAmount),m.setGiftModalScrollPosition(null)}},[]);var w=v?(0,eh.jsxs)(eh.Fragment,{children:[null==r?void 0:r.map(e=>(0,eh.jsx)(r5,{className:rq().giftItem,gift:e,modalId:tF.Z.Gifts},"current_gift_".concat((0,r3.C)(e)?e.userBundleId:e.id))),null==o?void 0:o.map(e=>(0,eh.jsx)(ExpiredGiftCard,{className:rq().giftItem,gift:e},"expired_gift_".concat(e.id))),f&&(0,eh.jsx)(e$.a,{className:rq().giftsLoader})]}):(0,eh.jsx)(NoGifts,(0,te._)({},p));return(0,eh.jsx)("div",{className:rq().gifts,ref:h,children:x?(0,eh.jsx)(e$.a,{className:rq().loader}):w})}),r9=a(37726),r6=a.n(r9),r8=a(99805),r7=a.n(r8),ie=(0,eC.memo)(e=>{var{items:t,activeTabIndex:a,onTabChange:r,theme:i,fontFamily:n,isInactive:o,className:s}=e,l=(0,eT.C5)(),[c,d]=(0,eC.useState)(),u=(0,eC.useRef)(null),{isFontLoaded:m}=useFontLoader({fontName:n}),_=(0,eC.useCallback)((e,t)=>{e.stopPropagation(),t!==a&&(d({width:e.currentTarget.clientWidth,left:e.currentTarget.offsetLeft}),r(t,a))},[a,r]),p=(0,eC.useCallback)(()=>{var e,t=null===(e=u.current)||void 0===e?void 0:e.querySelector(".".concat(r7().item,".").concat(r7().active));if(t){var a={width:t.clientWidth,left:t.offsetLeft};c&&(0,ti.BD)(a,c)||d(a)}},[c]);return((0,eC.useEffect)(()=>{p()},[a,p]),(0,eC.useLayoutEffect)(()=>{if(!(t.length<2))return p(),(0,eM.C)(l,p),()=>(0,eM.D)(l,p)},[t.length]),(0,eC.useLayoutEffect)(()=>{m&&p()},[m]),t.length<=1)?null:(0,eh.jsxs)("div",{className:eB()(r7().root,{[r7().inactive]:o},s),"data-theme":i,"data-active-tab-index":a,ref:u,style:{"--active-index":a,"--selected-item-left-pos":"".concat(null==c?void 0:c.left,"px"),"--selected-item-width":"".concat(null==c?void 0:c.width,"px")},children:[(0,eh.jsx)("span",{className:r7().selector}),t.map((e,t)=>{var{title:r,id:i}=e;return(0,eh.jsx)("div",{"data-qa":"".concat(eY.BE.TabsNav.itemPrefix).concat(i),className:eB()(r7().item,{[r7().active]:t===a}),onClick:e=>_(e,t),children:(0,eh.jsx)("div",{className:r7().title,children:r})},t)})]})});ie.displayName="TabsNav",(w=$||($={})).Default="default",w.StrongLight="strongLight",w.Flat="flat";var Tabs=e=>{var{initialTabIndex:t=0,tabIndex:a,items:r,onTabChange:i,theme:n=$.Default,navFontFamily:o=eW.av.Roboto,isInactiveTabs:s,tabsClassName:l}=e,c=t<=r.length?t:0,[d,u]=(0,eC.useState)(c);(0,eC.useEffect)(()=>{null==i||i(d,null)},[]),(0,eC.useEffect)(()=>{void 0!==a&&u(a)},[a]);var m=(0,eC.useCallback)((e,t)=>{null==i||i(e,t),u(e)},[i]),_=(0,eC.useMemo)(()=>r[d].content,[d,r]);return r?(0,eh.jsxs)("div",{className:r6().root,"data-theme":n,children:[(0,eh.jsx)(ie,{items:r,onTabChange:m,activeTabIndex:d,fontFamily:o,theme:n,isInactive:s,className:l}),_]}):null},it=a(91305),ia=a(6227),ir=a.n(ia),ii=(0,ew.Pi)(e=>{var{isVisible:t,tooltip:a,giftClass:r,onClick:i}=e,n="#".concat(eW.O.UpcomingGifts,' [data-gift-class="').concat(r,'"]'),o=useElementBoundingRect(n);return(0,eT.jf)().upcomingGifts.find(e=>e.giftClass===r)&&o?(0,eh.jsx)(Portal,{selector:n,children:(0,eh.jsx)(Tooltip,{className:ir().tooltip,isVisible:t,x:o.width/2,y:0,position:R.Absolute,onClick:i,onPointerDownOutside:i,children:a})}):null}),io=(0,ew.Pi)(()=>{var{steps:{SecretGift:e,TopGift:t}}=(0,ts.r)("GiftsOnboarding"),a=(0,eT.Ck)(),r=(0,eT.s9)(),{currentStep:i}=a;return r.giftModalTabId!==tF.P.Upcoming?null:(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(ii,{isVisible:i===it.$.SecretGift,giftClass:a8.eC.Secret,tooltip:e.tooltip,onClick:a.nextStep}),(0,eh.jsx)(ii,{isVisible:i===it.$.TopGift,giftClass:a8.eC.Top,tooltip:t.tooltip,onClick:a.nextStep})]})}),is=(0,ew.Pi)(()=>{var{TopGift:e}=(0,ts.r)("TopGiftOnboarding"),{currentStep:t,complete:a}=(0,eT.KT)();return(0,eh.jsx)(ii,{isVisible:t===it.a.TopGift,giftClass:a8.eC.Top,tooltip:e.tooltip,onClick:a})}),il=(0,ew.Pi)(e=>{var t=(0,eT.LM)(),a=(0,eT.s9)(),r=(0,eT.jf)(),i=(0,eT.Ck)(),n=(0,eT.KT)(),o=(0,eT.rS)(),{autoSetGiftModalTabId:s}=(0,eT.RV)(),[l,c]=(0,eC.useState)(!0);useLogRenderResult(aE.y8.UserGifts,r.isLoading);var{Gifts:{isGamer:d,title:u,subtitle:m,tabs:{upcoming:_,received:p}}}=(0,ts.r)("Modals"),g=i.isVisibleUpcomingGiftsIndicator||n.isVisibleUpcomingGiftsIndicator,h=[{id:tF.P.Upcoming,title:(0,eh.jsxs)(eh.Fragment,{children:[_.tabTitle,g&&(0,eh.jsx)(AccentDot,{className:rq().accentDot})]}),content:(0,eh.jsx)(rK,{})},{id:tF.P.Received,title:p.tabTitle,content:(0,eh.jsx)(r4,{})}],f=(0,eZ._r)(h,tF.P.Upcoming),x=(0,eZ._r)(h,tF.P.Received),v=a.giftModalTabId===tF.P.Received?x:f,w=(0,eC.useCallback)((e,t)=>{var r=e===f;null!==t&&(r?o.trackClickUpcomingGiftsTab():o.trackClickCurrentGiftsTab()),a.setGiftModalTabId(r?tF.P.Upcoming:tF.P.Received)},[f,a,o]);(0,eC.useEffect)(()=>(s(),()=>{r.setHasNewGift(!1)}),[s,r,a]),(0,eC.useEffect)(()=>{a.hasEnergyOverlimitInQueue&&(a.startHideModal(),c(!1))},[a.hasEnergyOverlimitInQueue]);var C=a.giftModalTabId?(0,eh.jsx)(Tabs,{items:h,initialTabIndex:v,tabIndex:v,onTabChange:w,isInactiveTabs:i.isInactiveTabs||n.topGiftOnboardingActive}):(0,eh.jsx)(e$.a,{className:rq().loader});return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({qaTag:eY.BE.Modals.GiftsModal.root},e),{isMaxHeight:!0,className:rq().root,isVisible:l,children:[(0,eh.jsx)(Modal.CloseButton,{shouldStopEventsPropagation:!i.isGiftsOnboardingFinished||!n.isTopGiftOnboardingFinished}),(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:u,align:Z.Center},subtitle:t.isGamer?void 0:m}),t.isGamer?(0,eh.jsx)(NoGifts,(0,te._)({},d)):C,(0,eh.jsx)(io,{}),(0,eh.jsx)(is,{})]})]}))}),ic=a(56130),id=a.n(ic),iu=a(74619),im=a.n(iu);(C=ee||(ee={})).Fill="fill",C.Stroke="stroke",(b=et||(et={})).Normal="normal",b.Medium="medium",b.Small="small";var ButtonLegacy=e=>{var{className:t,children:a,type:r=ee.Fill,size:i=et.Normal,link:n,onClick:o,textColor:s,buttonColor:l,id:c,disabled:d,attributes:u}=e,m=(0,te._)({id:c,className:eB()(im().root,t,{[im().disabled]:d}),onClick:o,style:{color:s,background:l,borderColor:l},"data-type":r,"data-size":i},u);if(n){var _=(0,te._)({target:"_blank",rel:"noreferrer"},m);return(0,eh.jsx)("a",(0,tp._)((0,te._)({href:n},_),{children:a}))}return(0,eh.jsx)("button",(0,tp._)((0,te._)({type:"button"},m),{disabled:d,children:a}))},ShareModal=e=>{var{onClose:t}=e,{GameInfo:{buttons:{share:a}},Share:{title:r,description:i,button:n}}=(0,ts.r)("Modals"),{isCopied:o,onClickShare:s}=useShare({title:a.template.title,text:a.template.text,url:"".concat(a.template.link,"?utm_source=share_modal"),modalId:tF.Z.Share,buttonName:a.name});return(0,eh.jsx)(Modal,{qaTag:eY.BE.Modals.ShareModal.root,onClose:t,children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:r,align:Z.Center}}),(0,eh.jsx)("p",{className:id().description,children:i}),(0,eh.jsx)(ButtonLegacy,{className:id().button,onClick:s,children:o?a.copiedText:n})]})})},i_=a(22893),ip=a.n(i_);(j=ea||(ea={})).Idle="idle",j.Opening="opening",j.Opened="opened";var ig=a(37897),ih=a.n(ig),ix=a(53637);(k=er||(er={})).Loading="loading",k.Finished="loaded";var useImagesLoadStatus=e=>{var[t,a]=(0,eC.useState)("loading"),r=(0,eT.qf)();return(0,eC.useEffect)(()=>{var onChangeListener=t=>{e.every(e=>t[e]===ix.l5.Loaded||t[e]===ix.l5.Failed)&&a("loaded")};return r.loadAssets(e),r.addAssetsStatusesOnchangeListeners(onChangeListener),()=>{r.removeAssetsStatusesOnchangeListeners(onChangeListener)}},[r,e]),t},iv=a(52935),iw=a.n(iv),SpritePlayer=e=>{var{src:t,className:a,frameCount:r,animationDurationInSeconds:i,onAnimationEnd:n,isAnimated:o}=e,s={"--frame-count":r.toString(),"--animation-duration":"".concat(i,"s")};return(0,eh.jsx)("div",{className:eB()(iw().root,a),style:s,children:(0,eh.jsx)("div",{onAnimationEnd:n,className:eB()(iw().frame,{[iw().animated]:o}),style:{backgroundImage:"url(".concat(t,")")}})})},iC=a(89665),ib=a.n(iC),PredictionShadowAnimation=e=>{var{isAnimated:t,mainImageSrc:a,shadowImageSrc:r,className:i}=e,n=eB()(ib().root,i,{[ib().isAnimated]:t});return(0,eh.jsxs)("div",{className:n,children:[(0,eh.jsx)("div",{className:ib().shadow,style:{backgroundImage:"url(".concat(r,")")}}),(0,eh.jsx)("div",{className:ib().main,style:{backgroundImage:"url(".concat(a,")")}})]})},ij=(0,ew.Pi)(e=>{var{animationStatus:t,setAnimationStatus:a,className:r}=e,i=(0,eC.useRef)(null),{Predictions:{animation:n}}=(0,ts.r)("Modals"),o=(0,eC.useCallback)(()=>{t===ea.Opening&&a(ea.Opened)},[t,a]),s={[ea.Idle]:(0,eh.jsx)(PredictionShadowAnimation,(0,tp._)((0,te._)({},n[ea.Idle]),{isAnimated:t===ea.Idle,className:ih().shadowAnimation})),[ea.Opening]:(0,eh.jsx)(SpritePlayer,(0,tp._)((0,te._)({},n[ea.Opening]),{onAnimationEnd:o,isAnimated:t===ea.Opening})),[ea.Opened]:(0,eh.jsx)(PredictionShadowAnimation,(0,tp._)((0,te._)({},n[ea.Opened]),{isAnimated:t===ea.Opened,className:ih().shadowAnimation}))},l=useImagesLoadStatus([n[ea.Idle].mainImageSrc,n[ea.Idle].shadowImageSrc,n[ea.Opening].src,n[ea.Opened].mainImageSrc,n[ea.Opened].shadowImageSrc])===er.Finished;return(0,eh.jsxs)("div",{className:eB()(ih().root,r),ref:i,children:[(0,eh.jsx)("div",{className:eB()(ih().inner,{[ih().imagesLoadFinished]:l}),children:Object.entries(s).map(e=>{var[a,r]=e;return(0,eh.jsx)("span",{className:eB()(ih().step,{[ih().visible]:t===a}),children:r},a)})}),!l&&(0,eh.jsx)(e$.a,{className:ih().loader})]})}),ik=(0,ew.Pi)(e=>{var{prediction:t,setIsViewedToday:a}=(0,eT.Id)(),[r,i]=(0,eC.useState)(ea.Idle),{Predictions:{prediction:{title:n,button:o},tapTitle:s}}=(0,ts.r)("Modals");return(0,eC.useEffect)(()=>{r!==ea.Idle&&a(!0)},[r]),(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{qaTag:eY.BE.Modals.PredictionModal.root,className:ip().root,children:[(0,eh.jsx)(Modal.CloseButton,{}),(0,eh.jsx)(Modal.Container,{children:(0,eh.jsxs)("div",{className:ip().inner,"data-animation-status":r,onClick:()=>{r===ea.Idle&&i(ea.Opening)},children:[(0,eh.jsx)(ij,{animationStatus:r,setAnimationStatus:i,className:ip().animationContainer}),(0,eh.jsx)("p",{className:ip().tapTitle,children:s}),(0,eh.jsxs)("div",{className:ip().prediction,children:[(0,eh.jsx)("p",{className:ip().title,children:n}),(0,eh.jsx)("p",{className:ip().text,children:t}),(0,eh.jsx)(ButtonLegacy,{type:ee.Stroke,className:ip().button,onClick:e.onClose,children:o})]})]})})]}))}),iy=a(78434),iS=a.n(iy),iT=a(60883),iN=(0,ew.Pi)(e=>{var{onClose:t}=e,a=(0,iT.useRouter)(),[r,i]=(0,eC.useState)(!1),n=(0,eT.e4)(),{showTestNotification:o,showTestNotificationWithImage:s,showTestNotificationWithImageAndSecondaryButton:l}=(0,eT.rV)(),{isDevToolsEnabled:c,devKey:d,devDate:u,devDailyWord:m,toggleDevTools:_,setDevKey:p,setDevDate:g,deleteAnswers:h,skipOnboarding:f}=(0,eT.Nj)(),{showModal:x}=(0,eT.s9)();return(0,eC.useEffect)(()=>{i(!0)},[]),(0,eh.jsxs)("div",{children:[(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:eB()(iS().button,iS().toggleButton,{[iS().enabled]:c}),onClick:_,children:c?"Выключить":"Включить"})}),(0,eh.jsxs)("div",{className:iS().block,children:["Ключ:"," ",(0,eh.jsx)("input",{type:"text",className:iS().input,value:d,onChange:e=>p(e.target.value),style:{flex:1}})]}),(0,eh.jsxs)("div",{className:iS().block,children:["Дата:"," ",(0,eh.jsx)("input",{type:"date",className:iS().input,value:u,onChange:e=>g(e.target.value)},Date.now())]}),(0,eh.jsxs)("div",{className:eB()(iS().actionsBlock,{[iS().enabled]:c}),children:[(0,eh.jsxs)("div",{className:iS().block,children:["Слово дня: ",(0,eh.jsx)("span",{className:iS().dailyWord,children:null!=m?m:""})]}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:h,children:"Стереть ответы"})})]}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:f,children:"Пропустить онбординг"})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:()=>{n.handleError(Error("Тестовая ошибка ".concat(new Date().toISOString())))},children:"Сгенерировать ошибку"})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsxs)("p",{className:iS().debugInfo,children:["Query: ",a.asPath]})}),r&&(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsxs)("p",{className:iS().debugInfo,children:["UserAgent: ",navigator.userAgent]})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:()=>{null==t||t(),x(tF.Z.Referral)},children:"Модалка ПД"})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:()=>{null==t||t(),o()},children:"Простая шторка"})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:()=>{null==t||t(),s()},children:"Шторка с картинкой"})}),(0,eh.jsx)("div",{className:iS().block,children:(0,eh.jsx)(tC,{size:V.Medium,className:iS().button,onClick:()=>{null==t||t(),l()},children:"Максимальная шторка"})})]})}),DevToolsModal=e=>{var{DevTools:{title:t}}=(0,ts.r)("Modals");return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{qaTag:eY.BE.Modals.DevToolsModal.root,onClose:e.onClose,children:[(0,eh.jsx)(Modal.CloseButton,{}),(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:t,align:Z.Center}}),(0,eh.jsx)(iN,{onClose:e.onClose})]})]}))},ResyncGameStateModal=e=>{var{onClose:t}=e,{ResyncGameStateModal:{title:a,description:r,button:i}}=(0,ts.r)("Modals"),n={text:i.text,onClick:()=>null==t?void 0:t()};return(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(rS.C,{title:a,description:r,button:n,isErrorCodeVisible:!1})})},iB=a(99710),iI=a.n(iB),iD=a(96579),iM=a(28927),iE=a.n(iM),PdfViewer=e=>{var{pdfSrc:t,errorText:r="Не удалось открыть документ"}=e;iD.v0.GlobalWorkerOptions.workerSrc=new a.U(a(61166)).toString();var[i,n]=(0,eC.useState)(0),[o,s]=(0,eC.useState)(0),l=(0,eC.useRef)(null);(0,eC.useEffect)(()=>{var e;s(Math.floor((null===(e=l.current)||void 0===e?void 0:e.offsetWidth)||0))},[l.current]);var c=(0,eT.bU)();return(0,eh.jsx)("div",{className:iE().root,ref:l,children:(0,eh.jsx)(iD.BB,{file:t,loading:(0,eh.jsx)(e$.a,{className:iE().loader}),onLoadSuccess:e=>{var{numPages:t}=e;n(t)},error:(0,eh.jsx)("p",{className:iE().error,children:r}),renderMode:c.isIos()?"svg":"canvas",children:Array.from(Array(i),(e,t)=>(0,eh.jsx)(iD.T3,{renderTextLayer:!1,loading:"",renderAnnotationLayer:!1,pageNumber:t+1,className:iE().pdfPage,width:o},"page_".concat(t+1)))})})},iL=a(69234),ConditionsModal=e=>{var{onBackButtonClick:t}=e,{Conditions:{drawConditionsSrc:a,errorText:r}}=(0,ts.r)("Modals");return(0,eh.jsxs)(Modal,{qaTag:eY.BE.Modals.ConditionsModal.root,className:iI().root,children:[t&&(0,eh.jsx)(Modal.BackButton,{onClick:t}),(0,eh.jsx)(Modal.Container,{scrollable:{paddings:{default:{top:10,horizontal:16,bottom:0}},edgeOverlays:{top:{isHidden:!0},bottom:{isHidden:!0}}},children:(0,eh.jsx)("div",{className:eB()(iI().wrapper,eW.hV),children:(0,eh.jsx)(iL.d$,{wheel:{disabled:!0},disablePadding:!0,children:(0,eh.jsx)(iL.Uv,{wrapperStyle:{height:"100%",width:"100%",flexGrow:"1"},contentStyle:{minHeight:"100%",minWidth:"100%"},children:(0,eh.jsx)(PdfViewer,{pdfSrc:a,errorText:r})})})})})]})},HighloadModal=()=>{var{Highload:{title:e,description:t}}=(0,ts.r)("Modals");return(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(rS.C,{dataQa:eY.BE.Modals.HighloadModal.root,title:e,description:t,isErrorCodeVisible:!1})})},SubscribeErrorModal=e=>{var{onClose:t,onOpen:a}=e,{SubscribeErrorModal:{title:r,description:i,button:n}}=(0,ts.r)("Modals");(0,eC.useEffect)(()=>{null==a||a()},[]);var o={text:n.text,onClick:()=>null==t?void 0:t()};return(0,eh.jsx)(Portal,{selector:"body",children:(0,eh.jsx)(rS.C,{title:r,description:i,button:o,isErrorCodeVisible:!1})})},iR=a(38508),iP=a.n(iR),iG=a(52515),useIsIntersecting=(e,t)=>{var[a,r]=(0,eC.useState)(!1);return(0,eC.useLayoutEffect)(()=>{if(e.current&&"IntersectionObserver"in window){var a=new IntersectionObserver(e=>{var[t]=e;return r(t.isIntersecting)},t);return a.observe(e.current),()=>{a.disconnect()}}},[e,t]),a},useDrawTheme=()=>{var{isPartnerThemeEnabled:e}=(0,eT.nw)(),{partnerTheme:t}=(0,ts.r)("Modals").PartnerDraw,{theme:a}=(0,ts.r)("Modals").Draw;return e?t:a},Ticket=e=>{var{ticket:t,onVisibilityChange:a,hasResult:r}=e,{visual:i,template:n,templateInviteFriend:o,numberPrefix:s,wonPostfix:l,dateFormatOptions:c}=(0,ts.r)("Modals").DrawTickets.Ticket,d=useDrawTheme(),{gradientColor:u,wonGradientColor:m,wonBorderColor:_,wonTextColor:p,dateColor:g,img:h}=(0,ti.RH)(i[Q.Default],i[d]),f=t.source===iG.S.Game?n:o,x=(0,eC.useRef)(null),v=useIsIntersecting(x);(0,eC.useEffect)(()=>{v&&(null==a||a())},[v]);var w=r&&t.isWin,C=r&&!t.isWin;return(0,eh.jsxs)("div",{ref:x,className:eB()(iP().root,{[iP().won]:w,[iP().lost]:C}),style:{"--gradient-color":u,"--won-gradient-color":m,"--won-border-color":_,"--won-text-color":p},children:[w&&(0,eh.jsx)("div",{className:iP().wonBorder}),(0,eh.jsxs)("div",{className:iP().content,children:[(0,eh.jsxs)("p",{className:iP().number,children:[s,t.id.toLocaleString("ru"),w&&(0,eh.jsx)("span",{className:iP().wonText,children:l})]}),(0,eh.jsx)("p",{className:iP().date,style:{color:g},children:f.replace("%date%",(0,rc.formatDateByOptions)(t.createdAt,c))})]}),(0,eh.jsx)("div",{className:iP().imageWrapper,children:(0,eh.jsx)(Image_Image,{className:eB()(iP().image,{[iP().disabled]:C}),src:h.src,alt:""})})]})},iA=a(35282),iH=a.n(iA),iO=a(52111),iV=a.n(iO),iW=a(53127),iF=a.n(iW),SkeletonItem=e=>{var{className:t}=e;return(0,eh.jsx)("div",{className:eB()(iF().root,t)})},DrawTicketsSkeleton=e=>{var{ticketCount:t}=e;return(0,eh.jsx)("div",{className:iV().root,children:(0,eh.jsx)("div",{className:iV().tickets,children:(0,eZ.i7)(t).map(e=>(0,eh.jsx)(SkeletonItem,{className:iV().ticket},e))})})},useDebounce=(e,t)=>{var a=(0,eC.useRef)();return(0,eC.useEffect)(()=>{a.current=t},[t]),(0,eC.useMemo)(()=>{var t,r;return t=function(){for(var e,t=arguments.length,r=Array(t),i=0;it(...i),e)}},[])},iU=a(35587),iZ=a(32206),iz=a.n(iZ),iq=375/280,HeaderGlowView=e=>{var{className:t,theme:a="default",yOffset:r=0,aspectRatio:i=iq,accentColor:n,customThemeBackground:o,children:s}=e;return(0,eh.jsxs)(tS,{className:eB()(iz().root,t),aspectRatio:i,style:{transform:"translateY(".concat(Math.min(r,0),"px)"),"--accent-color":n},children:[(0,eh.jsx)("div",{className:eB()(iz().theme,iz().default,{[iz().visible]:"default"===a})}),(0,eh.jsx)("div",{className:eB()(iz().theme,iz().accent,{[iz().visible]:"accent"===a})}),(0,eh.jsx)("div",{className:eB()(iz().theme,iz().accentSmall,{[iz().visible]:"accent-small"===a})}),o&&(0,eh.jsx)("div",{className:eB()(iz().theme,{[iz().visible]:"custom"===a}),style:{background:o}}),s]})},iK=a(91019),iY=a.n(iK),ImageDecorator=e=>{var{src:t,position:a}=e;return t?(0,eh.jsx)(Image_Image,{className:eB()(iY().root,iY()[a]),src:t,alt:""}):null};(y=ei||(ei={})).Top="top",y.Bottom="bottom",y.Left="left",y.Right="right";var HeaderGlow=e=>{var{visual:t}=(0,ts.r)("Modals").DrawTickets.HeaderGlow,a=useDrawTheme(),{accentColor:r,aspectRatio:i,topBackgroundDecorator:n}=(0,ti.RH)(t[Q.Default],t[a]),{drawStatus:o}=(0,eT.nw)();return(0,eh.jsx)(HeaderGlowView,(0,tp._)((0,te._)({},e),{accentColor:r,aspectRatio:i,children:o!==iU.UN.Results&&(0,eh.jsx)(ImageDecorator,{src:n,position:ei.Top})}))},iX=a(79150),iQ=a.n(iX),ModalBackground=e=>{var{background:t}=e;return(0,eh.jsx)("div",{className:iQ().root,style:{background:t}})},DrawTicketsModalBackground=()=>{var e=useDrawTheme(),{visual:t}=(0,ts.r)("Modals").DrawTickets.Background,{background:a}=(0,ti.RH)(t[Q.Default],t[e]);return(0,eh.jsx)(ModalBackground,{background:a})},iJ=(0,ew.Pi)(e=>{var{loadTickets:t,isTicketsLoading:a,userTicketCount:r,drawTickets:i,drawStatus:n,isWonDrawGifts:o,isPartnerThemeEnabled:s}=(0,eT.nw)(),{DrawTickets:{title:l,descriptionByDrawStatus:c,visual:d},Draw:{pluralForms:u}}=(0,ts.r)("Modals"),[m,_]=(0,eC.useState)(0),[p,g]=(0,eC.useState)(null),[h,f]=(0,eC.useState)(null),x=useDrawTheme(),{subtleColor:v,scrollableEdgeOverlayGradientColor:w}=(0,ti.RH)(d[Q.Default],d[x]);(0,eC.useEffect)(()=>{t()},[t]);var C=(0,eT.rS)(),handleMaxVisibleTicketIndex=e=>{(!p||e>p)&&g(e)},b=useDebounce(1e3,()=>{p&&p!==h&&(C.trackDrawTicketsScroll(p+1,r),f(p))}),j=n===iU.UN.Results,k=n?c[n]:void 0;return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{className:iH().root,isMaxHeight:!0,onBackgroundClick:()=>C.trackHideDrawTicketList("external_tap"),onSwipeClose:()=>C.trackHideDrawTicketList("swipe"),children:[(0,eh.jsx)(Modal.CloseButton,{onClick:()=>C.trackHideDrawTicketList("cross_tap")}),(0,eh.jsx)(Modal.BackButton,{onClick:()=>{var t;C.trackHideDrawTicketList("back_tap"),null===(t=e.onBackButtonClick)||void 0===t||t.call(e)}}),(0,eh.jsxs)(Modal.Container,{scrollable:{onScroll:e=>{b(),_(e)},edgeOverlays:{top:{gradientColor:w}}},children:[(0,eh.jsx)(DrawTicketsModalBackground,{}),(0,eh.jsx)(HeaderGlow,{theme:!j||o||s?"accent-small":"default",yOffset:-m}),(0,eh.jsx)(Modal.Header,{subtitle:k,subtleColor:v,children:(0,eh.jsx)("p",{className:iH().title,children:l.replace("%ticketCount%",r.toString()).replace("%tickets%",getPluralForm(r,u.tickets.one,u.tickets.two,u.tickets.five))})}),a?(0,eh.jsx)(DrawTicketsSkeleton,{ticketCount:r}):(0,eh.jsx)(eh.Fragment,{children:(0,eh.jsx)("div",{className:iH().tickets,children:i.map((e,t)=>(0,eh.jsx)(Ticket,{ticket:e,onVisibilityChange:()=>handleMaxVisibleTicketIndex(t),hasResult:j},e.id))})})]})]}))}),i$=a(83623),i0=a(90582),i1=a.n(i0),i2=a(47098),i3=a.n(i2),DrawHeaderView=e=>{var{imgSrc:t,imgAspectRatio:a,imgMarginBottom:r=0,title:i,description:n,isDescriptionBeforeTitle:o,beforeImg:s,afterImg:l,onLoadHeaderImage:c,descriptionColor:d}=e;return(0,eh.jsxs)("div",{className:i3().root,children:[(0,eh.jsxs)("div",{className:i3().imageWrapper,children:[s,(0,eh.jsx)(tS,{className:i3().image,aspectRatio:a,style:{marginBottom:"".concat(r,"px")},children:(0,eh.jsx)(Image_Image,{className:i3().image,src:t,alt:"",onLoad:c})}),l]}),n&&o&&(0,eh.jsx)("p",{className:eB()(i3().description,i3().before),style:{color:d},children:n}),(0,eh.jsx)("div",{className:i3().title,children:i}),n&&!o&&(0,eh.jsx)("p",{className:eB()(i3().description,i3().after),style:{color:d},children:n})]})},DrawHeader=e=>{var{isSubscribed:t}=e,{title:a,description:r,visual:i}=(0,ts.r)("Modals").DrawAnnouncement.Header,n=useDrawTheme(),{img:o,topBackgroundDecorator:s,descriptionColor:l}=(0,ti.RH)(i[Q.Default],i[n]);return(0,eh.jsx)(DrawHeaderView,{imgSrc:o.src,imgAspectRatio:o.aspectRatio,imgMarginBottom:o.marginBottom,title:(0,i$.renderParameterizedString)(a,{accent:e=>(0,eh.jsx)("span",{className:i1().accent,children:e})}),description:t?r.subscribed:r.notSubscribed,descriptionColor:l,beforeImg:(0,eh.jsx)(ImageDecorator,{src:s,position:ei.Top})})},useTrackDrawGiftsScroll=e=>{var{drawStatus:t}=(0,eT.nw)(),a=(0,eT.rS)(),[r,i]=(0,eC.useState)(!1),n=(0,eC.useCallback)(()=>{a.trackDrawGiftsScroll(e,t),i(!0)},[t,a,e]);return r?void 0:n},i5=a(29514),i4=a.n(i5),i9=a(98763),i6=a.n(i9),DrawTitle=e=>{var{children:t,isCentered:a,size:r,className:i}=e;return(0,eh.jsx)("p",{className:eB()(i6().title,{[i6().centered]:a,[i6().big]:"l"===r},i),children:t})},DrawSubtitle=e=>{var{children:t,className:a,isCentered:r}=e,i=useDrawTheme(),{visual:n}=(0,ts.r)("Modals").Draw.DrawSubtitle,{color:o}=(0,ti.RH)(n[Q.Default],n[i]);return(0,eh.jsx)("p",{className:eB()(i6().subtitle,{[i6().centered]:r},a),style:{color:o},children:t})},i8=a(95321),i7=a.n(i8),ne=a(58469),nt=a.n(ne),na=a(25749),nr=a.n(na),LockIcon=e=>{var{className:t,iconClassName:a}=e;return(0,eh.jsx)("div",{className:eB()(nr().root,t),children:(0,eh.jsx)(Image_Image,{src:"./draw/lock-icon.svg",alt:"",className:a})})},ni=a(80269),useDominantColor=e=>{var[t,a]=(0,eC.useState)();return(0,eC.useEffect)(()=>{var t=e.current,r=new Image;r.setAttribute("crossOrigin","Anonymous");var i=new ni.Z,onImageLoaded=()=>{a(i.getColor(r))};if(t&&!r.src){if(r.src=t.src,!r.complete)return r.addEventListener("load",onImageLoaded),()=>r.removeEventListener("load",onImageLoaded);a(i.getColor(r))}},[e]),t},nn=a(52819),no=a.n(nn),ns=a(22809),nl=a.n(ns),TooltipContent=e=>{var{bonusInfo:t,link:a,linkText:r,onLinkClick:i}=e;return(0,eh.jsxs)("div",{className:nl().content,children:[(0,eh.jsx)("p",{className:nl().text,children:t}),r&&a&&(0,eh.jsx)("a",{target:"_blank",rel:"noreferrer",href:a,className:nl().link,onClick:i,children:r})]})},useTrackClickDrawGiftInfoDetails=(e,t)=>{var{drawStatus:a}=(0,eT.nw)(),r=(0,eT.rS)();return(0,eC.useCallback)(()=>{r.trackClickDrawGiftInfoDetails(e,t,a)},[t,e,a,r])},useTrackClickDrawGiftInfo=(e,t)=>{var{drawStatus:a}=(0,eT.nw)(),r=(0,eT.rS)();return(0,eC.useCallback)(()=>{r.trackClickDrawGiftInfo(e,t,a)},[e,t,a,r])},useDrawTooltipTheme=()=>{var{isPartnerThemeEnabled:e}=(0,eT.nw)();return e?P.Light:P.Dark},DrawGiftTooltipButton=e=>{var{drawGift:t}=e,[a,r]=(0,eC.useState)(!1),i=useTrackClickDrawGiftInfo(t.name,t.description),n=useTrackClickDrawGiftInfoDetails(t.name,t.description),o=useDrawTooltipTheme();(0,eC.useEffect)(()=>{a&&i()},[a,i]);var s=(0,eC.useCallback)(()=>{n(),r(!1)},[n]);return t.bonusInfo?(0,eh.jsx)(TooltipButton,{isOpened:a,onChangeTooltipVisibility:r,type:K.Info,theme:o,tooltipContentMaxWidth:294,tooltipPosition:R.Fixed,tooltipSourceClassName:no().tooltipSource,tooltipText:(0,eh.jsx)(TooltipContent,{bonusInfo:t.bonusInfo,link:t.link,linkText:t.linkText,onLinkClick:s})}):null},useDrawGiftImage=e=>{var{img:t,isLocked:a}=e,{drawStatus:r}=(0,eT.nw)();if(a&&t.unavailableBonus)return t.unavailableBonus;if(e.status===iU.a3.Won&&t.wonBonus)return t.wonBonus;if((r===iU.UN.ResultCalculation||r===iU.UN.WaitingPublication)&&t.calculationBonus)return t.calculationBonus;if(r===iU.UN.Results){if(t.resultBonus)return t.resultBonus;if(t.calculationBonus)return t.calculationBonus}return t.availableBonus},useTrackClickDrawGiftButton=(e,t,a)=>{var{drawStatus:r}=(0,eT.nw)(),i=(0,eT.rS)();return(0,eC.useCallback)(()=>{i.trackClickDrawGiftButton(e,t,a,r)},[a,t,r,e,i])},nc=a(9602),DrawGiftItem=e=>{var{gift:t,isLost:a}=e,{won:r,lost:i}=(0,ts.r)("Modals").DrawResults.GiftItem,{pluralForms:n,DrawGiftItem:o}=(0,ts.r)("Modals").Draw,{visual:s}=o,l=useDrawTheme(),{descriptionColor:c}=(0,ti.RH)(s[Q.Default],s[l]),{name:d,description:u,isLocked:m}=t,_=(0,eC.useRef)(null),p=(0,eC.useRef)(null),g=useDominantColor(_);(0,eC.useEffect)(()=>{if(g){var e;null===(e=p.current)||void 0===e||e.style.setProperty("--gradientColor",g.toString())}},[g]);var h=t.status===iU.a3.Won,f=h||a,x=useDrawGiftImage(t),v=useTrackClickDrawGiftButton(h,t.name,t.description);return(0,eh.jsxs)("div",{ref:p,className:nt().root,children:[!f&&t.bonusInfo&&(0,eh.jsx)("div",{className:nt().infoIconWrapper,children:(0,eh.jsx)(DrawGiftTooltipButton,{drawGift:t})}),(0,eh.jsxs)("div",{className:nt().innerContent,children:[h&&(0,eh.jsx)("div",{className:nt().wonDecorator}),!m&&!a&&(0,eh.jsx)("div",{className:eB()(nt().gradient,{[nt().won]:h})}),(0,eh.jsxs)("div",{className:nt().imageWrapper,children:[(0,eh.jsx)(Image_Image,{src:x,alt:d,className:eB()(nt().image,{[nt().disabled]:m||a}),imageRef:_}),m&&(0,eh.jsx)(LockIcon,{className:nt().lockIcon})]}),(0,eh.jsx)("div",{className:nt().title,children:d}),(0,eh.jsx)("div",{className:nt().description,style:{color:c},children:(()=>{if(a)return i.description;if(h){var e=createPluralizer(n.gifts.one,n.gifts.two,n.gifts.five);return r.description.replace("%count%",t.userWonCount.toString()).replace("%gifts%",e(t.userWonCount))}return u})()}),(()=>{if((0,nc.t)(t)){if(h&&t.wonBonusLink&&t.wonBonusLinkText)return(0,eh.jsx)(tC,{className:nt().button,size:V.ExtraSmall,link:t.wonBonusLink,onClick:v,children:t.wonBonusLinkText});if(a&&t.lostBonusLink&&t.lostBonusLinkText)return(0,eh.jsx)(tC,{className:nt().button,size:V.ExtraSmall,link:t.lostBonusLink,onClick:v,theme:O.NeutralOnDark,children:t.lostBonusLinkText})}return null})()]})]})},useStopPropagationForTouchEvents=e=>{(0,eC.useLayoutEffect)(()=>{var t,a,stopPropagation=e=>e.stopPropagation();return null===(t=e.current)||void 0===t||t.addEventListener("touchstart",stopPropagation),null===(a=e.current)||void 0===a||a.addEventListener("touchmove",stopPropagation),()=>{var t,a;null===(t=e.current)||void 0===t||t.removeEventListener("touchstart",stopPropagation),null===(a=e.current)||void 0===a||a.removeEventListener("touchmove",stopPropagation)}},[e])},DrawGiftList=e=>{var{drawGifts:t,hasResults:a,onScroll:r}=e,i=(0,eC.useRef)(null);return useStopPropagationForTouchEvents(i),(0,eh.jsx)("div",{className:eB()(i7().listWrapper,eW.hV),ref:i,children:(0,eh.jsx)("div",{className:i7().list,onScroll:r,children:t.map(e=>(0,eh.jsx)("div",{className:i7().listItem,children:(0,eh.jsx)(DrawGiftItem,{gift:e,isLost:a&&e.status===iU.a3.Lost})},e.name))})})},nd=a(49917),nu=a.n(nd),nm=a(4048),n_=a.n(nm),Block=e=>{var{id:t,className:a,onClick:r,children:i,label:n,background:o,backdropFilter:s}=e,l=useDrawTheme(),{visual:c}=(0,ts.r)("Modals").Draw.Block,{background:d,backdropFilter:u,label:m}=(0,ti.RH)(c[Q.Default],c[l]);return(0,eh.jsxs)(eh.Fragment,{children:[n&&(0,eh.jsx)("div",{className:n_().label,style:{color:m.color,fontWeight:m.fontWeight},children:n}),(0,eh.jsxs)("div",{id:t,className:eB()(n_().root,a),onClick:r,children:[(0,eh.jsx)("div",{className:n_().background,style:{background:null!=o?o:d,backdropFilter:null!=s?s:u}}),i]})]})};(S=en||(en={})).Top="top",S.Bottom="bottom";var DrawGiftsBlock=e=>{var{children:t,className:a,label:r,beforeContent:i,withBackgroundLight:n,backgroundLightPosition:o=en.Bottom,backgroundGradientColor:s}=e,l=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{if(s){var e;null===(e=l.current)||void 0===e||e.style.setProperty("--backgroundGradientColor",s)}},[s]),(0,eh.jsxs)(Block,{className:eB()(nu().root,a),label:r,children:[(0,eh.jsx)("div",{className:nu().beforeContent,children:i}),n&&(0,eh.jsx)("div",{ref:l,className:eB()(nu().backgroundLight,{[nu().top]:o===en.Top})}),(0,eh.jsx)("div",{className:nu().content,children:t})]})},DrawGiftsView=e=>{var{title:t,subtitle:a,drawGifts:r,onScroll:i,beforeContent:n,label:o,withBackgroundLight:s,backgroundGradientColor:l,backgroundLightPosition:c,subtitleAccentColor:d}=e,u={};return d&&(u["--accent-color"]=d),(0,eh.jsxs)(DrawGiftsBlock,{beforeContent:n,label:o,withBackgroundLight:s,backgroundGradientColor:l,backgroundLightPosition:c,children:[(0,eh.jsx)(DrawTitle,{isCentered:!0,size:"l",children:(0,i$.renderParameterizedString)(t,{gray:e=>(0,eh.jsx)("span",{className:i4().gray,style:u,children:e})})}),(0,eh.jsx)(DrawSubtitle,{isCentered:!0,className:i4().subtitle,children:a}),(0,eh.jsx)(DrawGiftList,{drawGifts:r,onScroll:i})]})},np=(0,ew.Pi)(()=>{var{drawMonetaryGifts:e,drawNotMonetaryGifts:t}=(0,eT.nw)(),{monetary:a,notMonetary:r,visual:i}=(0,ts.r)("Modals").DrawAnnouncement.Gifts,n=useDrawTheme(),{accentColor:o}=(0,ti.RH)(i[Q.Default],i[n]),s=useTrackDrawGiftsScroll(tc.tO.Money),l=useTrackDrawGiftsScroll(tc.tO.Service);return(0,eh.jsxs)(eh.Fragment,{children:[e.length>0&&(0,eh.jsx)(DrawGiftsView,{drawGifts:e.map(e=>(0,tp._)((0,te._)({},e),{isLocked:!1})),title:a.title,subtitle:a.subtitle,onScroll:s}),t.length>0&&(0,eh.jsx)(DrawGiftsView,{drawGifts:t.map(e=>(0,tp._)((0,te._)({},e),{isLocked:!1})),title:r.title,subtitle:r.subtitle,onScroll:l,subtitleAccentColor:o})]})}),ng=a(539),nh=a.n(ng),nf=a(94781),nx=a.n(nf),DrawHeaderImageSkeleton=e=>{var{aspectRatio:t}=e;return(0,eh.jsx)(tS,{className:nx().image,aspectRatio:t})},DrawAnnouncementModalSkeleton=()=>{var{visual:e}=(0,ts.r)("Modals").DrawAnnouncement.Header,t=useDrawTheme(),{img:a}=(0,ti.RH)(e[Q.Default],e[t]);return(0,eh.jsxs)("div",{className:nh().root,children:[(0,eh.jsx)(DrawHeaderImageSkeleton,{aspectRatio:a.aspectRatio}),(0,eh.jsx)("div",{className:nh().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:nh().title})}),(0,eh.jsx)("div",{className:nh().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:eB()(nh().title,nh().row2)})}),(0,eh.jsx)("div",{className:eB()(nh().descriptionWrapper,nh().row1),children:(0,eh.jsx)(SkeletonItem,{className:nh().description})}),(0,eh.jsx)("div",{className:nh().descriptionWrapper,children:(0,eh.jsx)(SkeletonItem,{className:nh().description})}),(0,eh.jsx)(SkeletonItem,{className:nh().sharedGift}),(0,eh.jsx)(SkeletonItem,{className:nh().gifts})]})},nv=a(22119),nw=a.n(nv),SharedGiftView=e=>{var{sharedGift:t,label:a,title:r,description:i,ticketCountToOpenSharedGift:n,isLocked:o,beforeContent:s,backgroundGradientColor:l,hasUpperShadow:c=!0,aspectRatio:d=343/170,lockedShadowBackground:u,unlockedShadowBackground:m}=e,_=useDrawGiftImage((0,tp._)((0,te._)({},t),{isLocked:o})),p=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{if(l){var e;null===(e=p.current)||void 0===e||e.style.setProperty("--backgroundGradientColor",l)}},[l]),(0,eh.jsxs)(Block,{className:nw().block,label:a,children:[s,(0,eh.jsxs)("div",{className:eB()(nw().blockInner,{[nw().dark]:o}),ref:p,children:[(0,eh.jsx)(DrawTitle,{isCentered:!0,size:"l",children:r.replace("%gift%",t.name)}),(0,eh.jsx)(DrawSubtitle,{className:nw().subtitle,children:i.replace("%ticketCount%",n.toString())}),(0,eh.jsxs)("div",{className:nw().imageContainer,children:[_&&(0,eh.jsx)(tS,{className:nw().image,aspectRatio:d,children:(0,eh.jsx)(Image_Image,{src:_,alt:t.name,className:nw().image})}),o&&(0,eh.jsx)(LockIcon,{className:nw().lockIconContainer,iconClassName:nw().lockIcon})]})]}),c&&(0,eh.jsx)("div",{className:nw().shadow,style:{background:o?u||"linear-gradient(180deg, rgba(44, 44, 46, 0) 0%, rgba(44, 44, 46, 0.6) 100%)":m||"linear-gradient(180deg, rgba(67, 60, 55, 0) 53.84%, rgba(67, 60, 55, 0.7) 100%)"}})]})},nC=(0,ew.Pi)(()=>{var{title:e,description:t,visual:a}=(0,ts.r)("Modals").DrawAnnouncement.SharedGift,r=useDrawTheme(),{bottomBackgroundDecorator:i,unlockedShadowBackground:n,backgroundGradientColor:o}=(0,ti.RH)(a[Q.Default],a[r]),{ticketCountToOpenSharedGift:s,sharedGift:l}=(0,eT.nw)();return l?(0,eh.jsx)(SharedGiftView,{title:e,description:t,sharedGift:l,ticketCountToOpenSharedGift:s,isLocked:!1,beforeContent:(0,eh.jsx)(ImageDecorator,{src:i,position:ei.Bottom}),unlockedShadowBackground:n,backgroundGradientColor:o}):null}),nb=a(53878),nj=a.n(nb),FloatingButton=e=>(0,eh.jsx)("div",{className:eB()(nj().root,eW.hV,{[nj().visible]:e.isVisible}),children:(0,eh.jsx)(tC,(0,tp._)((0,te._)({},e),{className:eB()(nj().button,e.className)}))}),FloatingButtonStub=e=>{var{isVisible:t}=e;return(0,eh.jsx)("div",{className:eB()(nj().buttonStub,{[nj().visible]:t})})},nk=a(34158),useFloatingSubscribeButton=(e,t,a,r)=>{var[i,n]=(0,eC.useState)(!1),[o,s]=(0,eC.useState)(!1),l=(0,eT.C5)(),c=(0,eC.useRef)(null),d=(0,eT.rS)(),{showStatusNotification:u}=(0,eT.rV)(),{drawStatus:m}=(0,eT.nw)();(0,eC.useEffect)(()=>{c.current&&l.clearTimeout(c.current),e||(c.current=l.setTimeout(()=>n(!a()),2e3))},[e,l]);var _=(0,eC.useCallback)(()=>{a()||(d.trackClickSubscribeToDraw(m),s(!0),r(),c.current=l.setTimeout(()=>{s(!1),n(!1),u({type:nk.C.Success,text:t,showDurationMs:2e3})},1e3))},[a,m,r,u,t,d,l]);return(0,eC.useEffect)(()=>()=>{c.current&&l.clearTimeout(c.current)},[l]),{isVisibleLoader:o,isVisibleFloatingSubscribeButton:i,onClickSubscribeButton:_}},DrawModalBackground=()=>{var e=useDrawTheme(),{visual:t}=(0,ts.r)("Modals").Draw.Background,{background:a}=(0,ti.RH)(t[Q.Default],t[e]);return(0,eh.jsx)(ModalBackground,{background:a})},HeaderGlow_HeaderGlow=e=>{var t=useDrawTheme(),{visual:a}=(0,ts.r)("Modals").Draw.HeaderGlow,{accentColor:r,aspectRatio:i,customBackground:n}=(0,ti.RH)(a[Q.Default],a[t]);return(0,eh.jsx)(HeaderGlowView,(0,tp._)((0,te._)({},e),{accentColor:r,aspectRatio:i,customThemeBackground:n}))},createOpenBrowserActionLink=e=>"".concat(eW.k_).concat(encodeURIComponent(e)),ny=a(54162),nS=a.n(ny),nT=a(27363),nN=a.n(nT),nB=a(13167),nI=a.n(nB),AdvertisingBannerItem=e=>{var t,a,r,{banner:i,onClickBanner:n,onVisibleBanner:o,className:s}=e,{title:l,description:c,button:d,label:u,visual:m}=i,_=useDrawTooltipTheme(),p=(0,eT.Xu)(),g=(0,eC.useRef)(null),h=useIsIntersecting(g,{rootMargin:"100% 0% 100% 0%",threshold:.5});return(0,eC.useEffect)(()=>{h&&(null==o||o())},[h]),(0,eh.jsx)("div",{ref:g,className:eB()(nI().root,s),children:(0,eh.jsxs)(rU,{className:nI().scalable,disabled:!d,onClick:()=>{var e;d&&(null==n||n(),null===(e=p.tryCreateLink(d.link))||void 0===e||e.click())},children:[(0,eh.jsx)("div",{className:nI().background,style:{background:m.background}}),m.img&&(0,eh.jsx)(Image_Image,{src:m.img.src,alt:l,className:nI().image}),(0,eh.jsxs)("div",{className:nI().content,children:[(0,eh.jsx)("p",{className:nI().title,style:{color:null===(t=m.title)||void 0===t?void 0:t.color},children:l}),(0,eh.jsx)("p",{className:nI().description,children:c}),d&&(0,eh.jsx)("button",{className:nI().button,style:{color:null===(a=m.button)||void 0===a?void 0:a.color,background:null===(r=m.button)||void 0===r?void 0:r.background},children:d.title}),u&&(0,eh.jsxs)("div",{className:eB()(nI().label,{[nI().hasTooltip]:u.tooltip}),children:[u.text,u.tooltip&&(0,eh.jsx)(TooltipButton,{className:nI().tooltipButton,type:K.Info,theme:_,size:q.Small,tooltipContentMaxWidth:294,tooltipPosition:R.Fixed,tooltipSourceClassName:nI().tooltipSource,tooltipText:u.tooltip,onPointerDown:e=>e.stopPropagation()})]})]})]})})},AdvertisingBanners=e=>{var{banners:t,onClickBanner:a,onVisibleBanner:r}=e,i=(0,eC.useRef)(null);return useStopPropagationForTouchEvents(i),(0,eh.jsx)("div",{ref:i,className:nN().banners,children:t.map((e,i)=>(0,eh.jsx)(AdvertisingBannerItem,{banner:e,className:nN().banner,onClickBanner:()=>null==a?void 0:a(e.id,i),onVisibleBanner:()=>null==r?void 0:r(i,t.length)},i))})},useTrackClickDrawAdvertisingBanner=e=>{var{drawStatus:t}=(0,eT.nw)(),a=(0,eT.rS)();return(0,eC.useCallback)((r,i)=>{(e?a.trackClickPartnerDrawAdvertisingBanner:a.trackClickDrawAdvertisingBanner)(r,i,t)},[t,a])},useTrackDrawAdvertisingBannerIsVisible=e=>{var{drawStatus:t}=(0,eT.nw)(),a=(0,eT.rS)(),r=(0,eC.useRef)(new Set);return(0,eC.useCallback)((i,n)=>{r.current.has(i)||(r.current.add(i),(e?a.trackDrawPartnerAdvertisingBannerIsVisible:a.trackDrawAdvertisingBannerIsVisible)(i,n,t))},[t,e,a.trackDrawAdvertisingBannerIsVisible,a.trackDrawPartnerAdvertisingBannerIsVisible])},nD=a(93709),nM=a.n(nD),DrawCopyButton=e=>{var{title:t,copyText:a,copiedText:r,link:i,withGlow:n,glowColor:o,className:s,onClick:l}=e,{isCopied:c,copy:d}=useCopy(i),u=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{if(o){var e;null===(e=u.current)||void 0===e||e.style.setProperty("--glowColor",o)}},[o]),(0,eh.jsx)(rU,{onClick:()=>{d(),null==l||l()},children:(0,eh.jsxs)(Block,{className:eB()(nM().root,s),children:[n&&(0,eh.jsx)("div",{ref:u,className:nM().glow}),(0,eh.jsxs)("div",{className:nM().texts,children:[(0,eh.jsx)("p",{className:nM().title,children:(0,i$.renderParameterizedString)(t,{gray:e=>(0,eh.jsx)("span",{className:nM().gray,children:e})})}),(0,eh.jsxs)("div",{className:eB()(nM().text,{[nM().copied]:c}),children:[c?r:a,c&&(0,eh.jsx)(Image_Image,{className:nM().copiedIcon,src:"./icons/copied.svg",alt:""})]})]}),(0,eh.jsx)(Image_Image,{className:nM().copyButton,src:"./icons/copy.svg",alt:""})]})})},nE=(0,ew.Pi)(()=>{var{visual:e,title:t,description:a,button:r,copyButton:i,banners:n,adsInfo:o}=(0,ts.r)("Modals").PartnerDraw.LECAR.Advertising,s=(0,eT.bU)().isSupportedOpenLinkInBrowser(),{drawStatus:l}=(0,eT.nw)(),c=useTrackClickDrawAdvertisingBanner(!0),d=useTrackDrawAdvertisingBannerIsVisible(!0),u=(0,eT.rS)(),onClickButton=()=>{u.trackClickPartnerDrawAdvertisingButton(!s,l)};return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{src:"./draw/lecar/lecar_tbank_logo.svg",alt:"",className:nS().logo}),(0,eh.jsxs)(Block,{className:nS().root,background:"transparent",children:[(0,eh.jsx)(Image_Image,{src:e.headerGlow.src,alt:"",className:eB()(nS().image,nS().glow)}),(0,eh.jsx)(tS,{aspectRatio:e.headerImage.aspectRatio,className:nS().image,children:(0,eh.jsx)(Image_Image,{src:e.headerImage.src,alt:"",className:nS().headerImage})}),(0,eh.jsxs)("div",{className:nS().content,children:[(0,eh.jsx)("p",{className:nS().title,children:t}),(0,eh.jsx)("p",{className:nS().description,children:a}),s?(0,eh.jsx)(tC,{className:nS().button,onClick:onClickButton,size:V.Medium,link:createOpenBrowserActionLink(r.link),children:r.title}):(0,eh.jsx)(DrawCopyButton,{title:i.title,copyText:i.copyText,copiedText:i.copiedText,link:i.link,onClick:onClickButton,className:nS().copyButton}),(0,eh.jsx)(AdvertisingBanners,{banners:n.map(e=>(0,tp._)((0,te._)({},e),{button:s?(0,tp._)((0,te._)({},e.button),{link:createOpenBrowserActionLink(e.button.link)}):void 0})),onClickBanner:c,onVisibleBanner:d}),(0,eh.jsx)("p",{className:nS().adsInfo,children:o})]})]})]})}),PartnerAdvertising=()=>{var{partnerTheme:e}=(0,ts.r)("Modals").PartnerDraw;return e===J.Lecar?(0,eh.jsx)(nE,{}):null},nL=a(33769),nR=a.n(nL),PartnerTBankLogo=()=>{var{partnerTheme:e}=(0,ts.r)("Modals").PartnerDraw;return e===J.Lecar?(0,eh.jsx)(Image_Image,{className:nR().logo,src:"./draw/lecar/lecar_tbank_logo.svg",alt:""}):null},nP=(0,ew.Pi)(e=>{var{SubscribeButton:t,visual:a}=(0,ts.r)("Modals").DrawAnnouncement,r=useDrawTheme(),{scrollableEdgeOverlayGradientColor:i}=(0,ti.RH)(a[Q.Default],a[r]),{isDrawGiftsLoading:n,loadDrawGifts:o,sharedGift:s}=(0,eT.nw)(),[l,c]=(0,eC.useState)(0);useLogRenderResult(aE.y8.DrawAnnouncement,n);var{drawGifts:d,markAsIsShownAnnouncementModal:u,isSubscribedToDraw:m,markAsIsSubscribedToDraw:_,isPartnerThemeEnabled:p}=(0,eT.nw)();(0,eC.useEffect)(()=>{o()},[o]),(0,eC.useEffect)(()=>()=>{d.length>0&&u()},[d,u]);var{isVisibleLoader:g,isVisibleFloatingSubscribeButton:h,onClickSubscribeButton:f}=useFloatingSubscribeButton(n,t.successText,()=>m,_);return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{qaTag:eY.BE.Modals.DrawAnnouncementModal.root,isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsxs)(Modal.Container,{scrollable:{onScroll:c,paddings:{default:{top:0},[eW.RR.Tablet]:{top:0}},edgeOverlays:{top:{gradientColor:i}}},nonScrollableChildren:(0,eh.jsx)(eh.Fragment,{children:(0,eh.jsx)(FloatingButton,{onClick:f,isVisible:h,isLoading:g,children:t.text})}),children:[(0,eh.jsx)(DrawModalBackground,{}),(0,eh.jsx)(HeaderGlow_HeaderGlow,{theme:p?"custom":"accent",yOffset:-l}),n?(0,eh.jsx)(DrawAnnouncementModalSkeleton,{}):(0,eh.jsxs)(eh.Fragment,{children:[p&&(0,eh.jsx)(PartnerTBankLogo,{}),(0,eh.jsx)(DrawHeader,{isSubscribed:!g&&m}),s&&(0,eh.jsx)(nC,{}),(0,eh.jsx)(np,{}),p&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(FloatingButtonStub,{isVisible:h})]})]})]}))}),nG=a(97508),nA=a.n(nG),nH=a(43169),nO=a.n(nH);function renderParameterizedString(e,t){var a=Object.keys(t),r=e.split(new RegExp("(".concat(a.map(e=>"%".concat(e,"%.*?%").concat(e,"%")).join("|"),")"))).map(e=>(function(e,t){for(var a of Object.keys(t)){var r=e.match(new RegExp("%".concat(a,"%(.*?)%").concat(a,"%")));if(r){var[i,n]=r;return t[a](n)}}return e})(e,t));return(0,eC.createElement)(eC.Fragment,null,...r)}var nV=(0,ew.Pi)(()=>{var{title:e,icon:t,tooltip:a}=(0,ts.r)("Modals").PartnerDraw.LECAR.HeaderInfo,r=useDrawTooltipTheme(),i=(0,eT.rS)(),{drawStatus:n}=(0,eT.nw)();return(0,eh.jsxs)("div",{className:nO().root,children:[(0,eh.jsx)(Image_Image,{src:t,alt:""}),(0,eh.jsx)("p",{className:nO().title,children:renderParameterizedString(e,{accent:e=>(0,eh.jsx)("span",{className:nO().accent,children:e})})}),(0,eh.jsx)(TooltipButton,{tooltipText:a,size:q.Small,type:K.Info,tooltipContentMaxWidth:290,onClick:()=>i.trackClickLecarHeaderInfoTooltipButton(n),theme:r})]})}),PartnerHeaderInfo=()=>{var{partnerTheme:e}=(0,ts.r)("Modals").PartnerDraw;return e===J.Lecar?(0,eh.jsx)(nV,{}):null},nW=(0,ew.Pi)(()=>{var{hasTickets:e,isRequireInviteFriends:t,hasReachedTicketCountToOpenSharedGift:a,sharedGift:r,isPartnerThemeEnabled:i}=(0,eT.nw)(),{states:{noTickets:n,hasTickets:o,requireInviteFriends:s,hasTicketsToGetSharedGift:l}}=(0,ts.r)("Modals").Draw.Header,c=useDrawTheme(),{title:d,description:u,visual:m}=e?t?s:a&&r?l:o:n,{img:_,topBackgroundDecorator:p,descriptionColor:g}=(0,ti.RH)(m[Q.Default],m[c]);return(0,eh.jsx)(DrawHeaderView,{imgSrc:_.src,imgAspectRatio:_.aspectRatio,imgMarginBottom:_.marginBottom,title:(0,i$.renderParameterizedString)(d,{accent:e=>(0,eh.jsx)("span",{className:nA().accent,children:e})}),description:u,descriptionColor:g,afterImg:i?(0,eh.jsx)(PartnerHeaderInfo,{}):void 0,beforeImg:(0,eh.jsx)(ImageDecorator,{src:p,position:ei.Top})})}),nF=a(98822),nU=a.n(nF),nZ=(0,ew.Pi)(e=>{var{beforeContent:t}=e,a=(0,eT.rS)(),r=(0,eT.s9)(),{userTicketCount:i,drawStatus:n}=(0,eT.nw)(),{TicketsButton:{template:o},pluralForms:s}=(0,ts.r)("Modals").Draw,l=o.replace("%ticketCount%",i.toString()).replace("%tickets%",getPluralForm(i,s.tickets.one,s.tickets.two,s.tickets.five));return(0,eh.jsx)(rU,{onClick:()=>{a.trackGoToTicketsListClick(n),r.replaceModal(tF.Z.DrawTickets)},children:(0,eh.jsxs)(Block,{className:nU().root,children:[t,l,(0,eh.jsx)(Image_Image,{src:"./draw/arrow-right-icon.svg",alt:""})]})})}),nz=a(94029),nq=a.n(nz),nK=a(66287),nY=a.n(nK),DrawStatisticsLockedView=e=>{var{description:t,leftBackgroundDecorator:a,rightBackgroundDecorator:r}=e;return(0,eh.jsxs)(Block,{className:nY().root,background:"#ffdd2d",children:[(0,eh.jsx)(ImageDecorator,{src:a,position:ei.Left}),(0,eh.jsx)(ImageDecorator,{src:r,position:ei.Right}),(0,eh.jsxs)("div",{className:nY().content,children:[(0,eh.jsx)("p",{className:nY().description,children:t}),(0,eh.jsx)(Image_Image,{src:"./draw/lock-icon-small.svg",alt:"",className:nY().image})]})]})},DrawStatisticsLocked=()=>{var{description:e,visual:t}=(0,ts.r)("Modals").Draw.Statistics.states.locked,{theme:a}=(0,ts.r)("Modals").Draw,{leftBackgroundDecorator:r,rightBackgroundDecorator:i}=(0,ti.RH)(t[Q.Default],t[a]);return(0,eh.jsx)(DrawStatisticsLockedView,{description:e,leftBackgroundDecorator:r,rightBackgroundDecorator:i})},nX=a(24029),nQ=a.n(nX),nJ=(0,ew.Pi)(()=>{var e=(0,eT.C5)(),t=(0,eC.useRef)(null),[a,r]=(0,eC.useState)(0),[i,n]=(0,eC.useState)(0),o=useIsIntersecting(t),{unlocked:s,smallRating:l}=(0,ts.r)("Modals").Draw.Statistics.states,{drawState:c}=(0,eT.nw)(),{isNullableDrawStatStatisticsEnabled:d}=(0,eT.bW)(),u=(0,eC.useCallback)(()=>{t.current&&r(t.current.getBoundingClientRect().width)},[]);if((0,eC.useLayoutEffect)(()=>(u(),(0,eM.C)(e,u,!0),()=>(0,eM.D)(e,u,!0)),[u,e]),(0,eC.useLayoutEffect)(()=>{if(o){var e;u(),n(null!==(e=null==c?void 0:c.usersWithLessTicketCountPercent)&&void 0!==e?e:0)}},[u,null==c?void 0:c.usersWithLessTicketCountPercent,o]),!c||(null==c?void 0:c.usersWithLessTicketCountPercent)===null||!d&&0===c.usersWithLessTicketCountPercent)return null;var m=d&&c.usersWithLessTicketCountPercent{var{description:e,visual:t}=(0,ts.r)("Modals").Draw.Statistics.states.notCalculated,{theme:a}=(0,ts.r)("Modals").Draw,{leftBackgroundDecorator:r,rightBackgroundDecorator:i}=(0,ti.RH)(t[Q.Default],t[a]);return(0,eh.jsx)(DrawStatisticsLockedView,{description:e,leftBackgroundDecorator:r,rightBackgroundDecorator:i})},n1=(0,ew.Pi)(()=>{var{isDrawStatisticsLocked:e,isDrawStatisticsCalculated:t,drawStatus:a}=(0,eT.nw)(),{isNullableDrawStatStatisticsEnabled:r}=(0,eT.bW)();if(e&&a!==iU.UN.InProgress)return null;var i=e?(0,eh.jsx)(DrawStatisticsLocked,{}):r&&!t?(0,eh.jsx)(DrawStatisticsNotCalculated,{}):(0,eh.jsx)(nJ,{});return(0,eh.jsx)("div",{className:n0().root,children:i})}),UnitedDrawGiftsView=e=>{var{title:t,subtitle:a,drawMonetaryGifts:r,drawNotMonetaryGifts:i,notMonetarySubtitle:n,isDrawStatisticsEnabled:o,isDrawStatisticsUnlocked:s,tooltipContent:l,userTicketCount:c,onScrollMonetaryGifts:d,onScrollNotMonetaryGifts:u,onTooltipClick:m,beforeContent:_,hasResults:p,label:g}=e,h=useDrawTooltipTheme();return(0,eh.jsxs)(DrawGiftsBlock,{beforeContent:_,label:g,children:[(0,eh.jsxs)("div",{className:nq().header,children:[(0,eh.jsx)(DrawTitle,{children:t}),s&&l&&(0,eh.jsx)(TooltipButton,{tooltipText:l,className:nq().infoIconContainer,iconClassName:nq().infoIcon,type:K.Info,tooltipContentMaxWidth:263,onClick:m,theme:h})]}),(0,eh.jsx)(DrawSubtitle,{className:nq().subtitle,children:a}),o&&c>0&&(0,eh.jsx)(n1,{}),r.length>0&&(0,eh.jsx)(DrawGiftList,{drawGifts:r,hasResults:p,onScroll:d}),i.length>0&&(0,eh.jsxs)("div",{className:nq().giftsRow,children:[(0,eh.jsx)(DrawSubtitle,{className:nq().subtitle,children:n}),(0,eh.jsx)(DrawGiftList,{drawGifts:i,hasResults:p,onScroll:u})]})]})},n2=(0,ew.Pi)(e=>{var{isVisibleLabel:t}=e,{hasEnabledGifts:a,isDrawStatisticsUnlocked:r,userTicketCount:i,drawStatus:n,hasEnabledNotMonetaryGifts:o,drawNotMonetaryGifts:s,drawMonetaryGifts:l,hasEnabledMonetaryGifts:c}=(0,eT.nw)(),{isDrawStatisticsEnabled:d}=(0,eT.bW)(),{states:u,label:m}=(0,ts.r)("Modals").Draw.DrawGifts,{states:_}=(0,ts.r)("Modals").Draw.PromocodeGifts,{tooltipContent:p}=(0,ts.r)("Modals").Draw.Statistics,g=u.locked.visual,{theme:h}=(0,ts.r)("Modals").Draw,{topBackgroundDecorator:f}=(0,ti.RH)(g[Q.Default],g[h]),x=(0,eT.rS)(),{title:v,description:w}=a?u.unlocked:u.locked,C=useTrackDrawGiftsScroll(tc.tO.Money),b=useTrackDrawGiftsScroll(tc.tO.Service);return(0,eh.jsxs)(eh.Fragment,{children:[!c&&l.length>0&&(0,eh.jsx)(DrawGiftsView,{drawGifts:l,title:v,subtitle:w,onScroll:C,label:t?m:void 0,beforeContent:!c&&(0,eh.jsx)(ImageDecorator,{src:f,position:ei.Top})}),!o&&s.length>0&&(0,eh.jsx)(DrawGiftsView,{drawGifts:s,title:_.locked.title,subtitle:_.locked.description,onScroll:b,beforeContent:!o&&(0,eh.jsx)(ImageDecorator,{src:f,position:ei.Top})}),a&&(0,eh.jsx)(UnitedDrawGiftsView,{drawMonetaryGifts:l,drawNotMonetaryGifts:s,title:v,subtitle:w,notMonetarySubtitle:_.unlocked.description,userTicketCount:i,isDrawStatisticsEnabled:d,isDrawStatisticsUnlocked:r,tooltipContent:p,onTooltipClick:()=>x.trackDrawRatingInfoClick(n),onScrollMonetaryGifts:C,onScrollNotMonetaryGifts:b,label:t?m:void 0})]})}),n3=a(66404),n5=a.n(n3),n4={[O.Secondary]:"white",[O.Primary]:"yellow",[O.Dark]:"grey"},InviteFriend=e=>{var{referralLink:t,userTicketCount:a,inviteTicketCount:r,maxInviteTicketCount:i,isPlayedToday:n,isEnoughEnergyToStartAdditionalGame:o,daysLeftToGetTicket:s,isRequireInviteFriend:l,drawStatus:c}=e,{pluralForms:d,InviteFriend:{inviteButton:u,states:m,visual:_}}=(0,ts.r)("Modals").Draw,p=useDrawTheme(),g=(0,eT.rS)(),{isCopied:h,onClickShare:f}=useShare({title:u.shareTemplate.title,text:u.shareTemplate.text,url:t,modalId:tF.Z.Draw,buttonName:u.text}),{title:x,description:v}=(0,eC.useMemo)(()=>r>=i?m.invitedMaxFriends:l?m.requireInviteFriends:0===r?m.noInvitedFriends:m.default,[r,l,i,s,m.default,m.invitedMaxFriends,m.noInvitedFriends,m.requireInviteFriends]),w=m.noTickets.visual,C=l?O.Secondary:n&&!o?O.Primary:O.Dark,b=createPluralizer(d.friends.one,d.friends.two,d.friends.five),{descriptionColor:j}=(0,ti.RH)(_[Q.Default],_[p]),{topBackgroundDecorator:k}=(0,ti.RH)(w[Q.Default],w[p]);return(0,eh.jsxs)(Block,{className:n5().root,background:l?"#ffdd2d":void 0,children:[0===a&&(0,eh.jsx)(ImageDecorator,{src:k,position:ei.Top}),(0,eh.jsx)("p",{className:n5().title,style:{color:l?"rgba(0, 0, 0, 0.9)":void 0},children:x.replace("%inviteCount%",r.toString()).replace("%friends%",b(i)).replace("%leftInviteCount%",(i-r).toString()).replace("%maxInviteCount%",i.toString())}),(0,eh.jsx)("p",{className:n5().description,style:{color:l?"rgba(0, 0, 0, 0.48)":j},children:v}),(0,eh.jsx)(tC,{className:n5().button,theme:C,size:V.Medium,onClick:()=>{g.trackDrawInviteFriend(n4[C],c),f()},children:h?u.copiedText:u.text})]})},n9=a(51374),n6=a.n(n9),DrawModalSkeleton=()=>{var{states:e}=(0,ts.r)("Modals").Draw.Header,t=e.hasTickets.visual,{theme:a}=(0,ts.r)("Modals").Draw,{img:r}=(0,ti.RH)(t[Q.Default],t[a]);return(0,eh.jsxs)("div",{className:n6().root,children:[(0,eh.jsx)(DrawHeaderImageSkeleton,{aspectRatio:r.aspectRatio}),(0,eh.jsx)("div",{className:n6().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:n6().title})}),(0,eh.jsx)("div",{className:n6().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:eB()(n6().title,n6().row2)})}),(0,eh.jsx)("div",{className:eB()(n6().descriptionWrapper,n6().row1),children:(0,eh.jsx)(SkeletonItem,{className:n6().description})}),(0,eh.jsx)("div",{className:n6().descriptionWrapper,children:(0,eh.jsx)(SkeletonItem,{className:n6().description})}),(0,eh.jsx)(SkeletonItem,{className:n6().ticketsProgress}),(0,eh.jsx)(SkeletonItem,{className:n6().gifts}),(0,eh.jsx)(SkeletonItem,{className:n6().ticketsButton}),(0,eh.jsx)(SkeletonItem,{className:n6().inviteFriend}),(0,eh.jsx)(SkeletonItem,{className:n6().buttonGetTicket})]})},n8=a(54744),n7=a.n(n8),TicketsProgress=e=>{var{ticketCount:t,ticketCountToOpenSharedGift:a,daysLeft:r}=e,{TicketsProgress:{title:i,description:n,ticketsLeft:o,daysLeft:s},pluralForms:l}=(0,ts.r)("Modals").Draw;return(0,eh.jsxs)(Block,{children:[(0,eh.jsx)("p",{className:n7().title,children:i}),(0,eh.jsx)("p",{className:n7().description,children:n}),(0,eh.jsx)("div",{className:n7().progressWrapper,children:(0,eh.jsx)("div",{className:n7().progress,style:{width:"".concat(t/a*100,"%")}})}),(0,eh.jsxs)("div",{className:n7().bottomText,children:[(0,eh.jsx)("span",{children:o.replace("%ticketCount%",(a-t).toString()).replace("%tickets%",getPluralForm(a-t,l.tickets.one,l.tickets.two,l.tickets.five))}),(0,eh.jsx)("span",{className:n7().daysLeft,children:r>0&&s.replace("%left%",getPluralForm(r,l.left.one,l.left.two,l.left.five)).replace("%dayCount%",r.toString()).replace("%days%",getPluralForm(r,l.days.one,l.days.two,l.days.five))})]})]})},oe=a(39761),ot=a.n(oe),LostSharedGiftView=e=>{var{title:t,description:a,beforeContent:r}=e;return(0,eh.jsxs)(Block,{className:ot().root,children:[r,(0,eh.jsxs)("div",{className:ot().content,children:[(0,eh.jsx)("div",{className:ot().title,children:t}),(0,eh.jsx)("div",{className:ot().description,children:a})]}),(0,eh.jsx)(LockIcon,{className:ot().icon})]})},LostSharedGift=e=>{var{ticketsLeftCount:t,daysLeftToGetTicket:a}=e,{title:r,description:i}=(0,ts.r)("Modals").Draw.LostSharedGift,{pluralForms:n}=(0,ts.r)("Modals").Draw,o=createPluralizer(n.days.one,n.days.two,n.days.five),s=createPluralizer(n.tickets.one,n.tickets.two,n.tickets.five);return(0,eh.jsx)(LostSharedGiftView,{title:r,description:i.replace("%ticketCount%",t.toString()).replace("%tickets%",s(t)).replace("%dayCount%",a.toString()).replace("%days%",o(a))})},oa=a(32899),or=a.n(oa),oi=a(67365),on=a.n(oi),oo=(0,ew.Pi)(e=>{var{title:t,description:a,tooltipText:r,withoutTooltip:i,className:n,background:o,backdropFilter:s,iconColor:l="rgba(51, 51, 51, 1)",iconBackground:c}=e,d=(0,eT.rS)(),{drawStatus:u}=(0,eT.nw)(),m=useDrawTooltipTheme();return(0,eh.jsxs)(Block,{className:eB()(on().root,n),background:o,backdropFilter:s,children:[(0,eh.jsx)("div",{className:on().iconCheckContainer,style:{background:c},children:(0,eh.jsx)(aJ.AaI,{theme:{color:l}})}),(0,eh.jsxs)("div",{className:on().content,children:[(0,eh.jsx)("p",{className:on().title,children:t}),(0,eh.jsx)("p",{children:a})]}),!i&&(0,eh.jsx)(TooltipButton,{tooltipText:r,className:on().infoIconContainer,iconClassName:on().infoIcon,type:K.Info,offsets:{minDistanceToLeftOrRightEdge:32},tooltipContentMaxWidth:263,onClick:()=>d.trackWonSharedGiftInfoClick(u),theme:m})]})}),WonSharedGift=e=>{var{ticketCountToOpenSharedGift:t,sharedGift:a,sharePeopleAmount:r}=e,{title:i,description:n,statistics:o,statisticsAlt:s,tooltipContent:l,visual:c}=(0,ts.r)("Modals").Draw.WonSharedGift,d=useDrawTheme(),{descriptionColor:u,infoBackground:m,infoBackdropFilter:_,infoIconColor:p,infoIconBackground:g}=(0,ti.RH)(c[Q.Default],c[d]),{pluralForms:h}=(0,ts.r)("Modals").Draw,f=createPluralizer(h.tickets.one,h.tickets.two,h.tickets.five);return(0,eh.jsxs)(Block,{children:[(0,eh.jsx)("div",{className:or().title,children:i.replace("%ticketCount%",t.toString()).replace("%tickets%",f(t))}),(0,eh.jsx)("div",{className:or().description,style:{color:u},children:n}),(0,eh.jsx)(oo,{title:a.name,description:r?o.replace("%sharePeopleAmount%",r.toLocaleString("ru")):s,tooltipText:l,background:m,backdropFilter:_,iconColor:p,iconBackground:g})]})},os=(0,ew.Pi)(()=>{var{visual:e,label:t,title:a,description:r}=(0,ts.r)("Modals").Draw.SharedGift,i=useDrawTheme(),{bottomBackgroundDecorator:n,lockedShadowBackground:o}=(0,ti.RH)(e[Q.Default],e[i]),{ticketCountToOpenSharedGift:s,sharedGift:l,isSharedGiftUnlocked:c}=(0,eT.nw)();return l?(0,eh.jsx)(SharedGiftView,{label:t,title:a,description:r,sharedGift:l,ticketCountToOpenSharedGift:s,isLocked:!c,beforeContent:(0,eh.jsx)(ImageDecorator,{src:n,position:ei.Bottom}),lockedShadowBackground:o}):null}),ol=a(27176),oc=a.n(ol),Advertising=()=>{var{title:e}=(0,ts.r)("Modals").Draw.Advertising,{drawBanners:t}=(0,eT.T8)(),a=useTrackClickDrawAdvertisingBanner(),r=useTrackDrawAdvertisingBannerIsVisible();return 0===t.length?null:(0,eh.jsxs)(Block,{children:[(0,eh.jsx)("p",{className:oc().title,children:e}),(0,eh.jsx)(AdvertisingBanners,{banners:t,onClickBanner:a,onVisibleBanner:r})]})},od=a(93989),ou=a.n(od),om=a(2247),o_=a.n(om),op=(0,ew.Pi)(()=>{var{titlePrefix:e}=(0,ts.r)("Modals").Draw.NextWordTimer,{nextDailyWordIn:t}=(0,eT.G3)(),{hours:a,minutes:r,seconds:i}=getTimePartsFromSeconds(null!=t?t:0);return(0,eh.jsxs)("div",{className:o_().root,children:[e," ",(0,eh.jsx)("span",{className:o_().time,children:"".concat(a,":").concat(r,":").concat(i)})]})}),DrawButtonDecorator=()=>{var e=(0,ts.r)("Modals").Draw.Button.visual,{theme:t}=(0,ts.r)("Modals").Draw,{leftBackgroundDecorator:a,rightBackgroundDecorator:r}=(0,ti.RH)(e[Q.Default],e[t]);return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(ImageDecorator,{src:a,position:ei.Left}),(0,eh.jsx)(ImageDecorator,{src:r,position:ei.Right})]})},og=a(24107),oh=a.n(og),calcActualSize=(e,t,a)=>e+(t-e)*a,DynamicFloatingButton=e=>{var{onClick:t,beforeContent:a,onResizeProgress:r,children:i}=e,n=(0,eC.useRef)(null),o=(0,eC.useRef)(null),s=(0,eC.useRef)(null),[l,c]=(0,eC.useState)(!1),[d,u]=(0,eC.useState)(0);return(0,eC.useEffect)(()=>{l?d<=50&&c(!1):d>=100&&c(!0)},[l,d]),(0,eC.useEffect)(()=>{var e,t=null===(e=n.current)||void 0===e?void 0:e.closest(".".concat(eW.Yj)),a=null,onScroll=e=>{if(n.current&&o.current&&s.current){a||(a=o.current.clientWidth);var{scrollTop:t,scrollHeight:i,clientHeight:l}=e.target;u(t);var c=1-(0,eR.uZ)(i-l-t,0,68)/68;null==r||r(c),o.current.style.fontSize="".concat(calcActualSize(15,17,c),"px"),o.current.style.letterSpacing="".concat(calcActualSize(-.24,-.41,c),"px"),o.current.style.borderRadius="".concat(calcActualSize(16,22,1-c),"px"),o.current.style.height="".concat(calcActualSize(44,56,c),"px"),o.current.style.width="".concat(calcActualSize(s.current.clientWidth,n.current.clientWidth,c),"px")}},onScrollEnd=()=>{if(n.current&&o.current&&s.current&&a){var e=o.current.clientWidth,{scrollTop:r,scrollHeight:i,clientHeight:l}=t,c=i-l;if(ae){var d=c-88+20;r>d&&t.scrollTo({top:d,left:0,behavior:"smooth"})}a=null}};return null==t||t.addEventListener("touchend",onScrollEnd),null==t||t.addEventListener("touchcancel",onScrollEnd),null==t||t.addEventListener("scroll",onScroll),null==t||t.addEventListener("scrollend",onScrollEnd),()=>{null==t||t.removeEventListener("touchend",onScrollEnd),null==t||t.removeEventListener("touchcancel",onScrollEnd),null==t||t.removeEventListener("scroll",onScroll),null==t||t.removeEventListener("scrollend",onScrollEnd)}},[]),(0,eh.jsxs)("div",{ref:n,className:eB()(oh().root,eW.hV,{[oh().visible]:l}),children:[(0,eh.jsx)(tC,{ref:o,className:oh().button,size:V.Medium,onClick:t,beforeContent:a,children:i}),(0,eh.jsx)(tC,{ref:s,className:eB()(oh().button,oh().fake),size:V.Medium,beforeContent:a,children:i})]})},of=(0,ew.Pi)(e=>{var{onClick:t}=e,{isDrawStateLoading:a,drawStatus:r}=(0,eT.nw)(),{isEnoughEnergyToStartAdditionalGame:i,energyState:n}=(0,eT.gq)(),{isFinished:o,setShouldStartingAdditionalGame:s}=(0,eT.gT)(),l=(0,eT.rS)(),[c,d]=(0,eC.useState)(1),{title:u,altTitle:m}=(0,ts.r)("Modals").Draw.GetTicketFloatingButton;if(!n||a)return null;var _=i||!o;return(0,eh.jsx)(eh.Fragment,{children:_?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(DynamicFloatingButton,{beforeContent:(0,eh.jsx)(DrawButtonDecorator,{}),onResizeProgress:d,onClick:()=>{o?(s(!0),l.trackClickGuessAdditionalWordButton(r)):l.trackClickContinueGuessWordButton(r),t()},children:o?(0,eh.jsxs)(eh.Fragment,{children:["".concat(u).concat(n.costForAdditionalGame),(0,eh.jsx)(tD,{className:ou().image,style:{transform:"scale(".concat(calcActualSize(20,24,c)/20,")")}})]}):m}),(0,eh.jsx)(FloatingButtonStub,{isVisible:_})]}):(0,eh.jsx)(op,{})})}),ox=(0,ew.Pi)(e=>{var[t,a]=(0,eC.useState)(0),[r,i]=(0,eC.useState)(),{isDrawStateLoading:n,isDrawGiftsLoading:o,userTicketCount:s,ticketCountToOpenSharedGift:l,hasTickets:c,daysLeftToGetWinTicket:d,daysLeftToGetTicket:u,drawState:m,markAsIsShownRequireInviteFriendsInfo:_,isRequireInviteFriends:p,loadDrawState:g,loadDrawGifts:h,setHasNewTicket:f,sharedGift:x,isSharedGiftUnlocked:v,hasChanceToGetSharedGift:w,hasReachedTicketCountToOpenSharedGift:C,hadChanceToGetSharedGift:b,drawStatus:j,isPartnerThemeEnabled:k}=(0,eT.nw)(),{visual:y}=(0,ts.r)("Modals").Draw,S=useDrawTheme(),{scrollableEdgeOverlayGradientColor:T}=(0,ti.RH)(y[Q.Default],y[S]),{isEnoughEnergyToStartAdditionalGame:N}=(0,eT.gq)(),{referralLink:B,isReferralLinkLoading:I,loadReferralLink:D}=(0,eT.ii)(),{isDrawWithEnergyEnabled:M}=(0,eT.bW)(),E=[];!v&&x&&x.img.unavailableBonus&&E.push(x.img.unavailableBonus);var L=useImagesLoadStatus(E)===er.Loading,R=n||o||I||L;useLogRenderResult(aE.y8.Draw,R),(0,eC.useEffect)(()=>(g(),D(),h(),()=>{f(!1)}),[g,h,D,f]),(0,eC.useEffect)(()=>{!R&&p&&_()},[R,p,_]);var{isFinished:P}=(0,eT.gT)(),G=m&&B?(0,eh.jsx)(InviteFriend,{referralLink:B,inviteTicketCount:m.inviteTicketCount,maxInviteTicketCount:m.maxInviteTicketCount,isPlayedToday:P,isEnoughEnergyToStartAdditionalGame:N,daysLeftToGetTicket:d,userTicketCount:s,isRequireInviteFriend:p,drawStatus:j}):null,A=!v;return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{isVisible:r,qaTag:eY.BE.Modals.DrawModal.root,isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsxs)(Modal.Container,{scrollable:{onScroll:a,paddings:{default:{top:0},[eW.RR.Tablet]:{top:0}},edgeOverlays:{top:{gradientColor:T}}},children:[(0,eh.jsx)(DrawModalBackground,{}),(0,eh.jsx)(HeaderGlow_HeaderGlow,{theme:k?"custom":"accent",yOffset:-t}),R?(0,eh.jsx)(DrawModalSkeleton,{}):(0,eh.jsxs)(eh.Fragment,{children:[k&&(0,eh.jsx)(PartnerTBankLogo,{}),(0,eh.jsx)(nW,{}),p&&G,A&&(0,eh.jsx)(os,{}),v&&!C&&(M||w)&&(0,eh.jsx)(TicketsProgress,{ticketCount:s,ticketCountToOpenSharedGift:l,daysLeft:M?u:d}),(0,eh.jsx)(n2,{isVisibleLabel:A}),!M&&b&&!w&&v&&(0,eh.jsx)(LostSharedGift,{ticketsLeftCount:l-s,daysLeftToGetTicket:d}),C&&x&&(0,eh.jsx)(WonSharedGift,{ticketCountToOpenSharedGift:l,sharedGift:x,sharePeopleAmount:null==m?void 0:m.sharedBonusUsersCount}),k&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(Advertising,{}),c&&(0,eh.jsx)(nZ,{}),!p&&G,(0,eh.jsx)(of,{onClick:()=>i(!1)})]})]})]}))}),ov=a(57543),ow=a.n(ov),oC=a(58885),ob=a.n(oC),oj=(0,ew.Pi)(e=>{var{isSubscribed:t,onLoadHeaderImage:a}=e,{hasTickets:r,drawStatus:i,isPartnerThemeEnabled:n}=(0,eT.nw)(),{DrawResultCalculation:o}=(0,ts.r)("Modals"),{noTickets:s,hasTickets:l}=o.Header,{title:c,description:d}=r?l:s,{visual:u}=r?o.Header.hasTickets:o.Header.noTickets,m=useDrawTheme(),{img:{src:_,aspectRatio:p,marginBottom:g},topBackgroundDecorator:h}=(0,ti.RH)(u[Q.Default],u[m]),f=i?c[i]:"",x=t?d.subscribed:d.notSubscribed,v=i?x[i]:"";return(0,eh.jsx)(DrawHeaderView,{imgSrc:_,imgAspectRatio:p,imgMarginBottom:g,title:(0,eh.jsx)("p",{className:eB()(ob().title,{[ob().shifted]:r}),children:(0,i$.renderParameterizedString)(f,{accent:e=>(0,eh.jsx)("span",{className:ob().accent,children:e})})}),description:v,afterImg:n&&!r?(0,eh.jsx)(PartnerHeaderInfo,{}):void 0,beforeImg:(0,eh.jsx)(ImageDecorator,{src:h,position:ei.Top}),onLoadHeaderImage:a})}),ok=a(197),oy=a.n(ok),GiftsButton=e=>{var{giftCount:t,giftsBlockSelector:a,isDataLoading:r}=e,{text:i}=(0,ts.r)("Modals").DrawResultCalculation.GiftsButton,{pluralForms:n}=(0,ts.r)("Modals").Draw,o=(0,eT.C5)(),[s,l]=(0,eC.useState)(!1),[c,d]=(0,eC.useState)(!1),u=(0,eC.useRef)(null),m=(0,eC.useRef)(!1);(0,eC.useEffect)(()=>{u.current&&o.clearTimeout(u.current),!r&&"IntersectionObserver"in o&&(u.current=o.setTimeout(()=>{m.current||l(!0),u.current=o.setTimeout(()=>{m.current||d(!0)},eW.Zo.Moderate)},eW.Zo.Moderate))},[r,o]),(0,eC.useEffect)(()=>{if("IntersectionObserver"in o){var e=new IntersectionObserver(e=>{e[0].isIntersecting&&(m.current=!0,l(!1),d(!1))},{threshold:.2}),t=o.document.querySelector(a);return t&&e.observe(t),()=>{e.disconnect()}}},[r,a,o]),(0,eC.useEffect)(()=>()=>{u.current&&o.clearTimeout(u.current)},[o]);var _=createPluralizer(n.gifts.one,n.gifts.two,n.gifts.five);return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("div",{className:eB()(oy().overlay,{[oy().visible]:s})}),(0,eh.jsx)("div",{className:eB()(oy().buttonWrapper,{[oy().visible]:c}),children:(0,eh.jsx)(tC,{className:oy().button,size:V.Small,onClick:()=>{var e=o.document.querySelector(a),t=null==e?void 0:e.parentElement;if(l(!1),d(!1),e&&t){var r=e.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop-88;t.scrollTo(0,r)}},children:i.replace("%giftCount%",t.toString()).replace("%gifts%",_(t))})})]})},oS=a(99495),oT=a.n(oS),oN=750/618,DrawResultCalculationModalSkeleton=e=>{var{drawHeaderImageAspectRatio:t=oN}=e;return(0,eh.jsxs)("div",{className:oT().root,children:[(0,eh.jsx)(DrawHeaderImageSkeleton,{aspectRatio:t}),(0,eh.jsx)("div",{className:oT().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:oT().title})}),(0,eh.jsx)("div",{className:oT().titleWrapper,children:(0,eh.jsx)(SkeletonItem,{className:eB()(oT().title,oT().row2)})}),(0,eh.jsx)("div",{className:eB()(oT().descriptionWrapper,oT().row1),children:(0,eh.jsx)(SkeletonItem,{className:oT().description})}),(0,eh.jsx)("div",{className:oT().descriptionWrapper,children:(0,eh.jsx)(SkeletonItem,{className:oT().description})}),(0,eh.jsx)(SkeletonItem,{className:oT().broadcastButton}),(0,eh.jsx)(SkeletonItem,{className:oT().gifts}),(0,eh.jsx)(SkeletonItem,{className:oT().lostSharedGift}),(0,eh.jsx)(SkeletonItem,{className:oT().ticketsButton})]})},oB=a(22148),oI=a.n(oB),oD=(0,ew.Pi)(()=>{var{ticketCountToOpenSharedGift:e,sharedGift:t,drawStatus:a}=(0,eT.nw)(),{commonTitle:r,titleTemplate:i,descriptionTemplate:n}=(0,ts.r)("Modals").DrawResultCalculation.SharedGiftNoTickets,{visual:o}=(0,ts.r)("Modals").DrawResultCalculation.SharedGiftNoTickets,{theme:s}=(0,ts.r)("Modals").Draw,{backgroundGradientColor:l,bottomBackgroundDecorator:c,aspectRatio:d}=(0,ti.RH)(o[Q.Default],o[s]),u=a?n[a]:"";return t?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("div",{className:oI().giftsTitle,children:r}),(0,eh.jsx)(SharedGiftView,{title:i,description:u,sharedGift:t,ticketCountToOpenSharedGift:e,isLocked:!1,backgroundGradientColor:l,beforeContent:(0,eh.jsx)(ImageDecorator,{src:c,position:ei.Bottom}),hasUpperShadow:!1,aspectRatio:d})]}):null}),oM=(0,ew.Pi)(()=>{var{drawMonetaryGifts:e,drawNotMonetaryGifts:t,drawStatus:a}=(0,eT.nw)(),{monetary:r,notMonetary:i}=(0,ts.r)("Modals").DrawResultCalculation.GiftsNoTickets,{visual:n}=(0,ts.r)("Modals").DrawResultCalculation.GiftsNoTickets,{states:o}=(0,ts.r)("Modals").Draw.DrawGifts,s=o.locked.visual,{theme:l}=(0,ts.r)("Modals").Draw,{topBackgroundDecorator:c}=(0,ti.RH)(s[Q.Default],s[l]),{backgroundGradientColor:d}=(0,ti.RH)(n[Q.Default],n[l]),u=useTrackDrawGiftsScroll(tc.tO.Money),m=useTrackDrawGiftsScroll(tc.tO.Service),_=a?r.subtitle[a]:"",p=a?i.subtitle[a]:"";return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(DrawGiftsView,{drawGifts:e,title:r.title,subtitle:_,onScroll:u,beforeContent:(0,eh.jsx)(ImageDecorator,{src:c,position:ei.Top}),withBackgroundLight:!0,backgroundGradientColor:d}),(0,eh.jsx)(DrawGiftsView,{drawGifts:t,title:i.title,subtitle:p,onScroll:m,beforeContent:(0,eh.jsx)(ImageDecorator,{src:c,position:ei.Top}),withBackgroundLight:!0,backgroundLightPosition:en.Top,backgroundGradientColor:d})]})}),BroadcastButton=e=>{var{drawStatus:t}=(0,eT.nw)(),a=(0,eT.rS)();return(0,eh.jsx)(DrawCopyButton,(0,tp._)((0,te._)({},e),{onClick:()=>a.trackBroadcastButtonClick(t)}))},oE=(0,ew.Pi)(e=>{var{isVisibleFloatingSubscribeButton:t}=e,{DrawResultCalculation:a}=(0,ts.r)("Modals"),{sharedGift:r,drawStatus:i,isPartnerThemeEnabled:n}=(0,eT.nw)(),{title:o,copyText:s,copiedText:l,link:c,visual:d}=a.BroadcastButton,{theme:u}=(0,ts.r)("Modals").Draw,{glowColor:m,hasGlow:_}=(0,ti.RH)(d[Q.Default],d[u]);return(0,eh.jsxs)(eh.Fragment,{children:[r&&(0,eh.jsx)(oD,{}),(0,eh.jsx)(oM,{}),(0,eh.jsx)(BroadcastButton,{title:i?o[i]:"",copyText:s,copiedText:l,link:c,withGlow:_,glowColor:m}),n&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(Advertising,{}),(0,eh.jsx)(FloatingButtonStub,{isVisible:t})]})}),oL=(0,ew.Pi)(()=>{var{drawMonetaryGifts:e,drawNotMonetaryGifts:t,isDrawStatisticsUnlocked:a,userTicketCount:r,drawStatus:i}=(0,eT.nw)(),{monetary:n,notMonetary:o}=(0,ts.r)("Modals").DrawResultCalculation.Gifts,{tooltipContent:s}=(0,ts.r)("Modals").Draw.Statistics,{isDrawStatisticsEnabled:l}=(0,eT.bW)(),c=(0,eT.rS)(),d=useTrackDrawGiftsScroll(tc.tO.Money),u=useTrackDrawGiftsScroll(tc.tO.Service);return(0,eh.jsx)(UnitedDrawGiftsView,{drawMonetaryGifts:e,drawNotMonetaryGifts:t,title:n.title,notMonetarySubtitle:o.title,userTicketCount:r,isDrawStatisticsEnabled:l,isDrawStatisticsUnlocked:a,tooltipContent:i!==iU.UN.WaitingPublication?s:void 0,onTooltipClick:()=>c.trackDrawRatingInfoClick(i),onScrollMonetaryGifts:d,onScrollNotMonetaryGifts:u})}),LostSharedGift_LostSharedGift=e=>{var{sharedGift:t}=e,{title:a,description:r}=(0,ts.r)("Modals").DrawResultCalculation.LostSharedGift,{pluralForms:i}=(0,ts.r)("Modals").Draw,n=createPluralizer(i.tickets.one,i.tickets.two,i.tickets.five);return(0,eh.jsx)(LostSharedGiftView,{title:a.replace("%gift%",t.name),description:r.replace("%ticketCount%",t.ticketCountToOpen.toString()).replace("%tickets%",n(t.ticketCountToOpen))})},oR=a(63540),oP=a.n(oR),DrawBigGiftCard=e=>{var{imgSrc:t,title:a,description:r,children:i,id:n,className:o,beforeContent:s,withoutBackground:l,imageClassName:c,imgAspectRatio:d=343/290}=e;return(0,eh.jsxs)(Block,{id:n,className:eB()(oP().root,o),children:[(0,eh.jsx)(tS,{className:eB()(oP().background,{[oP().visible]:!l}),aspectRatio:d}),s,(0,eh.jsx)("p",{className:oP().title,children:a}),(0,eh.jsx)("div",{className:oP().description,children:r}),(0,eh.jsx)(Image_Image,{src:t,alt:a,className:eB()(oP().image,c)}),i]})},oG=a(21702),oA=a.n(oG),WonSharedGift_WonSharedGift=e=>{var{sharedGift:t,sharedBonusUsersCount:a,withoutTooltip:r,withoutCommonTitle:i,beforeContent:n,withoutBackground:o,withAltImg:s}=e,{visual:l,commonTitle:c,title:d,description:u,info:m}=(0,ts.r)("Modals").DrawResultCalculation.WonSharedGift,{theme:_}=(0,ts.r)("Modals").Draw,p=(0,ti.RH)(l[Q.Default],l[_]),{pluralForms:g}=(0,ts.r)("Modals").Draw,h=createPluralizer(g.tickets.one,g.tickets.two,g.tickets.five),f=createPluralizer(g.gamers.one,g.gamers.two,g.gamers.five),x=s?p.altImg:p.img;return(0,eh.jsxs)(eh.Fragment,{children:[!i&&(0,eh.jsx)("p",{className:oA().commonTitle,children:c.replace("%ticketCount%",t.ticketCountToOpen.toString()).replace("%tickets%",h(t.ticketCountToOpen))}),(0,eh.jsx)(DrawBigGiftCard,{id:eW.O.WonSharedGift,className:oA().root,imgSrc:x.src,imgAspectRatio:x.aspectRatio,title:d,description:u,beforeContent:n,withoutBackground:o,children:(0,eh.jsx)(oo,{className:oA().info,title:m.title.replace("%gift%",t.name),description:m.description.replace("%gamerCount%",a.toLocaleString("ru")).replace("%gamers%",f(a)),tooltipText:m.tooltipText,withoutTooltip:r})})]})},oH=a(7012),oO=a.n(oH),oV=(0,ew.Pi)(()=>{var{imgSrc:e,title:t,description:a,button:r,expirationHint:i}=(0,ts.r)("Modals").DrawResultCalculation.WonExtraGift,{isActivatedExtraGift:n,markAsIsActivatedExtraGift:o}=(0,eT.nw)(),s=(0,eT.rS)();return(0,eh.jsx)(DrawBigGiftCard,{imgSrc:e,imageClassName:oO().image,title:t,withoutBackground:n,description:(0,eh.jsxs)("div",{className:oO().descriptionWrapper,children:[(0,eh.jsx)("p",{className:eB()(oO().description,{[oO().visible]:n}),children:(0,i$.renderParameterizedString)(a,{gold:e=>(0,eh.jsx)("span",{className:oO().gold,children:e})})}),!n&&(0,eh.jsxs)("p",{className:oO().expirationHint,children:[(0,eh.jsx)(ClockIcon,{className:oO().expirationIcon}),i]})]}),children:(0,eh.jsx)(tC,{className:oO().button,size:V.Medium,theme:n?O.Dark:O.Primary,disabled:n,onClick:()=>{s.trackCurrentGiftReceiveButtonClick(null,t,r.text,tF.Z.Draw),o()},children:n?r.disabledText:r.text})})}),oW=a(34841),oF=a.n(oW),oU=(0,ew.Pi)(()=>{var{DrawResultCalculation:e}=(0,ts.r)("Modals"),{sharedGift:t,hadChanceToGetSharedGift:a,isSharedGiftUnlocked:r,hasTickets:i,drawState:n,isWonSharedGift:o,drawStatus:s,isPartnerThemeEnabled:l}=(0,eT.nw)(),{isDrawWithEnergyEnabled:c}=(0,eT.bW)(),{title:d}=e.BroadcastButton,u=s?d[s]:"";return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(BroadcastButton,{title:u,copyText:e.BroadcastButton.copyText,copiedText:e.BroadcastButton.copiedText,link:e.BroadcastButton.link,className:oF().copyButton}),(0,eh.jsx)(oL,{}),(c||a)&&r&&t&&!o&&(0,eh.jsx)(LostSharedGift_LostSharedGift,{sharedGift:t}),t&&o&&(0,eh.jsxs)(eh.Fragment,{children:[t&&(null==n?void 0:n.sharedBonusUsersCount)&&(0,eh.jsx)(WonSharedGift_WonSharedGift,{sharedGift:t,sharedBonusUsersCount:n.sharedBonusUsersCount,withoutBackground:!0,withoutTooltip:s===iU.UN.WaitingPublication}),e.WonExtraGift.enabled&&(0,eh.jsx)(oV,{})]}),l&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(Advertising,{}),i&&(0,eh.jsx)(nZ,{})]})}),oZ=(0,ew.Pi)(e=>{var{DrawResultCalculation:t}=(0,ts.r)("Modals"),a=(0,eT.nw)(),{isDrawStateLoading:r,isDrawGiftsLoading:i,loadDrawGifts:n,loadDrawState:o,setShouldSyncGifts:s,sharedGift:l,userTicketCount:c,isWonSharedGift:d,drawStatus:u,drawState:m,isPartnerThemeEnabled:_}=a,p=u===iU.UN.WaitingPublication,[g,h]=(0,eC.useState)(0),[f,x]=(0,eC.useState)(!0),v=r||i;useLogRenderResult(aE.y8.DrawResultCalculation,v),(0,eC.useEffect)(()=>{o(),n()},[o,n,s]);var{isVisibleLoader:w,isVisibleFloatingSubscribeButton:C,onClickSubscribeButton:b}=useFloatingSubscribeButton(v,t.SubscribeButton.successText,()=>a.isSubscribedToNextDraw,a.markAsIsSubscribedToNextDraw),j=0;d&&l&&(j+=1),t.WonExtraGift.enabled&&(j+=1);var k=(0,ts.r)("Modals").Draw.HeaderGlow.visual,{theme:y}=(0,ts.r)("Modals").Draw,{accentColor:S,aspectRatio:T}=(0,ti.RH)(k[Q.Default],k[y]),N=(0,eC.useCallback)(()=>{0!==c&&x(!1)},[c]);return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{qaTag:p?eY.BE.Modals.DrawWaitingPublicationModal.root:eY.BE.Modals.DrawResultCalculationModal.root,className:ow().root,isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsx)(Modal.Container,{scrollable:{onScroll:h,paddings:{default:{top:0},[eW.RR.Tablet]:{top:0}}},nonScrollableChildren:(0,eh.jsxs)(eh.Fragment,{children:[f&&(0,eh.jsx)(HeaderGlowView,{theme:0===c&&m&&!v?"accent":"default",yOffset:-g,accentColor:S,aspectRatio:T}),(0,eh.jsx)(FloatingButton,{isVisible:0===c&&C,isLoading:w,onClick:b,children:t.SubscribeButton.text}),d&&(0,eh.jsx)(GiftsButton,{giftCount:j,giftsBlockSelector:"#".concat(eW.O.WonSharedGift),isDataLoading:v})]}),children:v?(0,eh.jsx)(DrawResultCalculationModalSkeleton,{}):(0,eh.jsxs)(eh.Fragment,{children:[_&&(0,eh.jsx)(PartnerTBankLogo,{}),(0,eh.jsx)(oj,{onLoadHeaderImage:N,isSubscribed:!w&&a.isSubscribedToNextDraw}),0===c?(0,eh.jsx)(oE,{isVisibleFloatingSubscribeButton:C}):(0,eh.jsx)(oU,{})]})})]}))}),oz=a(70377),oq=a.n(oz),oK=a(64922),oY=a.n(oK),oX=(0,ew.Pi)(e=>{var{isSubscribed:t}=e,{states:{noTickets:a,wonGifts:r,hasTickets:i,wonSharedGift:n}}=(0,ts.r)("Modals").DrawResults.Header,o=useDrawTheme(),s=(0,ti.RH)(a.visual[Q.Default],a.visual[o]),l=(0,ti.RH)(r.visual[Q.Default],r.visual[o]),{hasTickets:c,isWonDrawGifts:d,isWonSharedGift:u,wonMoneyDrawGiftsSum:m,wonPromocodeDrawGiftsSum:_,wonCashbackDrawGiftsSum:p,wonStockDrawGiftsSum:g,userTicketsPercentProgress:h,wonPromocodeDrawGiftsCount:f,isPartnerThemeEnabled:x}=(0,eT.nw)();if(!c){var v=s.img;return(0,eh.jsx)(DrawHeaderView,{imgSrc:v.src,imgAspectRatio:v.aspectRatio,imgMarginBottom:v.marginBottom,title:(0,i$.renderParameterizedString)(a.title,{gold:e=>(0,eh.jsx)("span",{className:oY().gold,children:e})}),description:t?a.description.subscribed:a.description.notSubscribed,afterImg:x&&!c?(0,eh.jsx)(PartnerHeaderInfo,{}):void 0,beforeImg:(0,eh.jsx)(ImageDecorator,{src:s.topBackgroundDecorator,position:ei.Top})})}if(d){var getFormattedTitle=(e,t)=>(0,i$.renderParameterizedString)(e.replace("%gifts%","".concat(t.toLocaleString("ru"),"\xa0₽")),{gold:e=>(0,eh.jsx)("span",{className:oY().gold,children:e})}),w=l.img;return(0,eh.jsx)(DrawHeaderView,{imgSrc:w.src,imgAspectRatio:w.aspectRatio,title:(()=>{if(0!==m)return getFormattedTitle(r.states.money.title,m);var e=[p,_,g];return e.filter(e=>0!==e).length>1?getFormattedTitle(r.states.mixed.title,e.reduce((e,t)=>e+t)):0!==p?getFormattedTitle(r.states.cashback.title,p):0!==_?getFormattedTitle(r.states.promocode.title.replace("%promocodes%",f>1?r.states.promocode.pluralForms.many:r.states.promocode.pluralForms.one),_):0!==g?getFormattedTitle(r.states.stock.title,g):void 0})(),beforeImg:(0,eh.jsx)(ImageDecorator,{src:l.topBackgroundDecorator,position:ei.Top})})}var{title:C,description:b,visual:j}=(()=>{for(var e=i[0],t=1;t=i[t].ticketsPercentThreshold&&(e=i[t]);return u&&!d?(0,tp._)((0,te._)({},e),{visual:n.visual}):e})(),{img:k,topBackgroundDecorator:y}=(0,ti.RH)(j[Q.Default],j[o]);return(0,eh.jsx)(DrawHeaderView,{imgSrc:k.src,imgAspectRatio:k.aspectRatio,title:(0,i$.renderParameterizedString)(C,{accent:e=>(0,eh.jsx)("span",{className:oY().gold,children:e})}),description:b,beforeImg:(0,eh.jsx)(ImageDecorator,{src:y,position:ei.Top})})}),oQ=a(27504),oJ=a.n(oQ),o$=(0,ew.Pi)(()=>{var{label:e,titleTemplate:t,descriptionTemplate:a,visual:r}=(0,ts.r)("Modals").DrawResults.SharedGiftNoTickets,{theme:i}=(0,ts.r)("Modals").Draw,{backgroundGradientColor:n}=(0,ti.RH)(r[Q.Default],r[i]),{ticketCountToOpenSharedGift:o,sharedGift:s}=(0,eT.nw)();return s?(0,eh.jsx)(SharedGiftView,{label:(0,eh.jsx)("span",{className:oJ().label,children:e}),title:t,description:a,sharedGift:s,backgroundGradientColor:n,ticketCountToOpenSharedGift:o,isLocked:!1,hasUpperShadow:!1}):null}),o0=(0,ew.Pi)(()=>{var{drawMonetaryGifts:e,drawNotMonetaryGifts:t}=(0,eT.nw)(),{monetary:a,notMonetary:r,visual:i}=(0,ts.r)("Modals").DrawResults.GiftsNoTickets,{states:n}=(0,ts.r)("Modals").Draw.DrawGifts,o=n.locked.visual,{theme:s}=(0,ts.r)("Modals").Draw,{topBackgroundDecorator:l}=(0,ti.RH)(o[Q.Default],o[s]),{backgroundGradientColor:c}=(0,ti.RH)(i[Q.Default],i[s]),d=useTrackDrawGiftsScroll(tc.tO.Money),u=useTrackDrawGiftsScroll(tc.tO.Service);return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(DrawGiftsView,{drawGifts:e,title:a.title,subtitle:a.subtitle,onScroll:d,beforeContent:(0,eh.jsx)(ImageDecorator,{src:l,position:ei.Top}),withBackgroundLight:!0,backgroundGradientColor:c}),(0,eh.jsx)(DrawGiftsView,{drawGifts:t,title:r.title,subtitle:r.subtitle,onScroll:u,beforeContent:(0,eh.jsx)(ImageDecorator,{src:l,position:ei.Top}),withBackgroundLight:!0,backgroundLightPosition:en.Top,backgroundGradientColor:c})]})}),o1=(0,ew.Pi)(e=>{var{isVisibleFloatingSubscribeButton:t}=e,{DrawResults:a}=(0,ts.r)("Modals"),{theme:r}=(0,ts.r)("Modals").Draw,{glowColor:i,hasGlow:n}=(0,ti.RH)(a.BroadcastButton.visual[Q.Default],a.BroadcastButton.visual[r]),{sharedGift:o,isPartnerThemeEnabled:s}=(0,eT.nw)();return(0,eh.jsxs)(eh.Fragment,{children:[o&&(0,eh.jsx)(o$,{}),(0,eh.jsx)(o0,{}),(0,eh.jsx)(BroadcastButton,{title:a.BroadcastButton.title,copyText:a.BroadcastButton.copyText,copiedText:a.BroadcastButton.copiedText,link:a.BroadcastButton.link,withGlow:n,glowColor:i}),s&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(Advertising,{}),(0,eh.jsx)(FloatingButtonStub,{isVisible:t})]})}),o2=a(61872),o3=a.n(o2),o5=(0,ew.Pi)(()=>{var{DrawResults:{Statistics:{descriptionTemplate:e,maxRating:t,smallRating:a,visual:r}}}=(0,ts.r)("Modals"),{theme:i}=(0,ts.r)("Modals").Draw,n=(0,ti.RH)(r[Q.Default],r[i]),{drawState:o}=(0,eT.nw)();if(!(null==o?void 0:o.usersWithLessTicketCountPercent))return null;var s=o.usersWithLessTicketCountPercent>=100?t.descriptionTemplate:o.usersWithLessTicketCountPercent<=a.percentThreshold?a.descriptionTemplate:e;return(0,eh.jsxs)("div",{className:o3().root,children:[(0,eh.jsx)(tS,{className:o3().gradient,aspectRatio:375/328,style:{"--under-block-gradient-color":n.underBlockGradientColor}}),(0,eh.jsxs)(Block,{className:o3().block,background:n.background,children:[(0,eh.jsxs)("div",{className:o3().iconWrapper,style:{color:n.iconColor},children:[(0,eh.jsx)("div",{className:o3().iconBg,style:{"--icon-background-start-color":n.iconBackgroundStartColor,"--icon-background-end-color":n.iconBackgroundEndColor,"--icon-shadow-color":n.iconShadowColor}}),(0,eh.jsx)(aJ.bZk,{})]}),(0,eh.jsx)("p",{className:o3().description,children:s.replace("%percent%",o.usersWithLessTicketCountPercent.toString())})]})]})}),LostSharedGift_LostSharedGift_LostSharedGift=e=>{var{sharedGift:t,beforeContent:a}=e,{title:r,description:i}=(0,ts.r)("Modals").DrawResults.LostSharedGift,{pluralForms:n}=(0,ts.r)("Modals").Draw,o=createPluralizer(n.tickets.one,n.tickets.two,n.tickets.five);return(0,eh.jsx)(LostSharedGiftView,{title:r.replace("%gift%",t.name),description:i.replace("%ticketCount%",t.ticketCountToOpen.toString()).replace("%tickets%",o(t.ticketCountToOpen)),beforeContent:a})},o4=(0,ew.Pi)(e=>{var{beforeContent:t}=e,{drawMonetaryGifts:a,drawNotMonetaryGifts:r,userTicketCount:i,drawStatus:n,isWonMonetaryDrawGifts:o,isWonNotMonetaryDrawGifts:s}=(0,eT.nw)(),{title:l,monetary:c,notMonetary:d}=(0,ts.r)("Modals").DrawResults.Gifts,u=n===iU.UN.Results,m=useTrackDrawGiftsScroll(tc.tO.Money),_=useTrackDrawGiftsScroll(tc.tO.Service),p=o||s?l.won:l.lost,g=o?c.subtitle.won:c.subtitle.lost,h=s?d.subtitle.won:d.subtitle.lost;return(0,eh.jsx)(UnitedDrawGiftsView,{beforeContent:t,hasResults:u,drawMonetaryGifts:a,drawNotMonetaryGifts:r,title:p,subtitle:!o&&(o||s)?void 0:g,notMonetarySubtitle:h,userTicketCount:i,isDrawStatisticsEnabled:!1,isDrawStatisticsUnlocked:!1,onScrollMonetaryGifts:m,onScrollNotMonetaryGifts:_})}),o9=a(71556),o6=a.n(o9),o8=a(58306),o7=a.n(o8),se=(0,ew.Pi)(()=>{var{title:e,description:t,SubscribeButton:a,enabled:r,visual:i}=(0,ts.r)("Modals").DrawResults.NextDrawAnnouncement,n=(0,eT.nw)(),{isVisibleLoader:o,onClickSubscribeButton:s}=useFloatingSubscribeButton(!1,a.successText,()=>n.isSubscribedToNextDraw,n.markAsIsSubscribedToNextDraw);if(!r)return null;var l=n.isSubscribedToNextDraw&&!o;return(0,eh.jsxs)("div",{className:o7().root,children:[i.hasBackground&&(0,eh.jsx)("div",{className:o7().background,style:{"--background-gradient-color":i.backgroundGradientColor}}),(0,eh.jsxs)("div",{children:[(0,eh.jsx)(ImageDecorator,{src:i.topDecorator,position:ei.Top}),(0,eh.jsx)(Image_Image,{src:i.img.src,alt:"",className:o7().mainImage})]}),(0,eh.jsxs)("div",{className:o7().bottom,children:[i.bottomDecorator&&(0,eh.jsx)(Image_Image,{src:i.bottomDecorator,alt:"",className:o7().bottomDecorator}),(0,eh.jsx)("p",{className:o7().title,children:e})]}),(0,eh.jsx)("p",{className:o7().description,children:l?t.subscribed:t.notSubscribed}),(0,eh.jsx)("div",{className:eB()(o7().buttonWrapper,{[o7().visible]:!l}),children:(0,eh.jsx)(tC,{className:o7().button,isLoading:o,onClick:s,beforeContent:(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(ImageDecorator,{src:i.leftButtonDecorator,position:ei.Left}),(0,eh.jsx)(ImageDecorator,{src:i.rightButtonDecorator,position:ei.Right})]}),children:a.text})})]})}),st=(0,ew.Pi)(()=>{var{DrawResults:e,DrawResultCalculation:t}=(0,ts.r)("Modals"),{minTicketCountToUnlockStatistics:a}=(0,eT.Vf)().Draw,{theme:r}=(0,ts.r)("Modals").Draw,{afterStatisticsBlockGradientColor:i,beforeNextDrawAnnouncementBlockGradientColor:n}=(0,ti.RH)(e.visual[Q.Default],e.visual[r]),{sharedGift:o,hadChanceToGetSharedGift:s,isSharedGiftUnlocked:l,drawState:c,isWonDrawGifts:d,isWonSharedGift:u,isPartnerThemeEnabled:m}=(0,eT.nw)(),{isDrawWithEnergyEnabled:_}=(0,eT.bW)(),p=!!((null==c?void 0:c.usersWithLessTicketCountPercent)&&(null==c?void 0:c.userTicketCount)&&c.userTicketCount>=a),g=u&&!d,h=!d&&p,f=(0,eh.jsx)(tS,{className:o6().afterStatisticsBlock,aspectRatio:343/264,style:{"--gradient-color":i}}),x=e.NextDrawAnnouncement.enabled?(0,eh.jsx)("div",{className:o6().bottomItemGradient,style:{"--gradient-color":n}}):null,v=o&&(null==c?void 0:c.sharedBonusUsersCount)?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(WonSharedGift_WonSharedGift,{sharedGift:o,sharedBonusUsersCount:c.sharedBonusUsersCount,withoutTooltip:!0,withoutCommonTitle:!d,beforeContent:h?f:void 0,withAltImg:h,withoutBackground:!0}),t.WonExtraGift.enabled&&(0,eh.jsx)(oV,{})]}):null;return(0,eh.jsxs)(eh.Fragment,{children:[p&&(0,eh.jsx)(o5,{}),g&&v,(0,eh.jsx)(o4,{beforeContent:g?void 0:f}),(0,eh.jsx)(BroadcastButton,{title:e.BroadcastButton.title,copyText:e.BroadcastButton.copyText,copiedText:e.BroadcastButton.copiedText,link:e.BroadcastButton.link}),u&&d&&v,(_||s)&&l&&o&&!u&&(0,eh.jsx)(LostSharedGift_LostSharedGift_LostSharedGift,{sharedGift:o}),m&&(0,eh.jsx)(PartnerAdvertising,{}),(0,eh.jsx)(Advertising,{}),(0,eh.jsx)(nZ,{beforeContent:x}),(0,eh.jsx)(se,{})]})}),HeaderGlow_HeaderGlow_HeaderGlow=e=>{var{visual:t}=(0,ts.r)("Modals").Draw.HeaderGlow,{theme:a}=(0,ts.r)("Modals").Draw,{accentColor:r,aspectRatio:i}=(0,ti.RH)(t[Q.Default],t[a]);return(0,eh.jsx)(HeaderGlowView,(0,tp._)((0,te._)({},e),{accentColor:r,aspectRatio:i}))},sa=(0,ew.Pi)(e=>{var{DrawResults:t}=(0,ts.r)("Modals"),{visual:a}=t.Header.states.noTickets,{theme:r}=(0,ts.r)("Modals").Draw,{img:i}=(0,ti.RH)(a[Q.Default],a[r]),n=(0,eT.nw)(),{isDrawStateLoading:o,isDrawGiftsLoading:s,loadDrawGifts:l,loadDrawState:c,setShouldSyncGifts:d,hasTickets:u,isPartnerThemeEnabled:m}=n,[_,p]=(0,eC.useState)(0),g=o||s;useLogRenderResult(aE.y8.DrawResults,g),(0,eC.useEffect)(()=>{c(),l()},[c,l,d]);var{isVisibleLoader:h,isVisibleFloatingSubscribeButton:f,onClickSubscribeButton:x}=useFloatingSubscribeButton(g,t.SubscribeButton.successText,()=>n.isSubscribedToNextDraw,n.markAsIsSubscribedToNextDraw);return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{qaTag:eY.BE.Modals.DrawResultsModal.root,className:oq().root,isMaxHeight:!0,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsx)(Modal.Container,{scrollable:{onScroll:p,paddings:{default:{top:0},[eW.RR.Tablet]:{top:0}}},nonScrollableChildren:(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(HeaderGlow_HeaderGlow_HeaderGlow,{theme:"accent",yOffset:-_}),(0,eh.jsx)(FloatingButton,{isVisible:!u&&f,isLoading:h,onClick:x,children:t.SubscribeButton.text})]}),children:g?(0,eh.jsx)(DrawResultCalculationModalSkeleton,{drawHeaderImageAspectRatio:i.aspectRatio}):(0,eh.jsxs)(eh.Fragment,{children:[m&&(0,eh.jsx)(PartnerTBankLogo,{}),(0,eh.jsx)(oX,{isSubscribed:!h&&n.isSubscribedToNextDraw}),u?(0,eh.jsx)(st,{}):(0,eh.jsx)(o1,{isVisibleFloatingSubscribeButton:f})]})})]}))}),sr=(0,ew.Pi)(e=>{var{drawStatus:t}=(0,eT.nw)(),a=(0,eT.rS)(),r=(0,tp._)((0,te._)({},e),{onCloseButtonClick:()=>a.trackHideDraw("cross_tap"),onBackgroundClick:()=>a.trackHideDraw("external_tap"),onSwipeClose:()=>a.trackHideDraw("swipe")});switch(t){case iU.UN.Waiting:return(0,eh.jsx)(nP,(0,te._)({},r));case iU.UN.InProgress:return(0,eh.jsx)(ox,(0,te._)({},r));case iU.UN.ResultCalculation:case iU.UN.WaitingPublication:return(0,eh.jsx)(oZ,(0,te._)({},r));case iU.UN.Results:return(0,eh.jsx)(sa,(0,te._)({},r))}return null}),si=a(62017),sn=a.n(si),ReferralModal=e=>(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{children:[(0,eh.jsx)(Modal.CloseButton,{}),(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(tS,{className:sn().image,aspectRatio:375/265}),(0,eh.jsx)("p",{className:sn().title,children:"О, вы от друга"}),(0,eh.jsx)("p",{className:sn().description,children:"Вставьте ссылку, по которой перешли, чтобы друг получил билет в розыгрыше после того, как вы отгадаете 1 слово"}),(0,eh.jsx)("input",{className:sn().input,type:"text",placeholder:"Ссылка от друга"})]})]})),so=a(46836),ss=a.n(so),sl=a(54812),sc=a.n(sl);(T=eo||(eo={})).Purple="purple",T.Gold="gold";var sd=375/667,EnergyHeaderGlow=e=>{var{theme:t=eo.Purple,className:a}=e,{visual:r}=(0,ts.r)().EnergyHeaderGlow;return(0,eh.jsx)("div",{className:eB()(sc().root,a),children:(0,eh.jsx)(tS,{aspectRatio:r.aspectRatio,className:sc().glowContainer,children:(0,eh.jsx)("div",{className:eB()(sc().glow,{[sc().gold]:t===eo.Gold})})})})},su=a(65925),sm=a.n(su),s_=a(38527),sp=a.n(s_),getEnergyStreakItemImageIdByDay=e=>"energy-streak-item-image-".concat(e),sg=a(43919),sh=a(54481),sf=a(57689),sx=a.n(sf),sv=a(66171),sw=a(63453),sC=(0,sh.bP)((N=(0,aW._)(function*(e){yield(0,sv.S)(e),yield(0,sw.Fc)(e)}),function(e){return N.apply(this,arguments)})),sb={fullScreen:{enable:!1,zIndex:0},particles:{opacity:{animation:{enable:!0,speed:1,sync:!0,mode:sg.m3L.decrease,destroy:sg.Hyf.min,startValue:sg.a9w.random,delay:1},value:{min:0,max:1}},size:{value:{min:.3,max:3}},move:{angle:{offset:0,value:{max:30,min:10}},enable:!0,speed:{max:2.5,min:2},direction:sg.p$b.top,random:!1,straight:!1,outModes:{default:sg.Voc.destroy}}},emitters:[{direction:sg.p$b.top,position:{y:100,x:{min:40,max:60}},life:{duration:.2,delay:.1,wait:!0,count:0},rate:{quantity:2,delay:.13}}]},sj=(0,eC.memo)(e=>{var{options:t=sb}=e,a=(0,eC.useId)(),r=(0,eT.wL)(),[i,n]=(0,eC.useState)(!1);return(0,eC.useEffect)(()=>{sC.then(()=>n(!0)).catch(e=>r.logError({error:e}))},[r]),i&&(0,eh.jsx)(sh.ZP,{id:a,className:sx().container,options:t})});sj.displayName="FireFlyParticles";var sk=(0,eC.memo)(e=>{var t=function(e){var{color:t="#fff",sizeMin:a=.3,sizeMax:r=2,speedMax:i=1.5,speedMin:n=1}=e;return(0,tp._)((0,te._)({},sb),{particles:{opacity:{animation:{enable:!0,speed:2,sync:!0,mode:sg.m3L.decrease,destroy:sg.Hyf.min,startValue:sg.a9w.random,delay:.8},value:{min:0,max:1}},size:{value:{min:a,max:r}},color:{value:t},move:{angle:{offset:0,value:{max:30,min:10}},enable:!0,speed:{max:i,min:n},direction:sg.p$b.top,random:!1,straight:!1,outModes:{default:sg.Voc.destroy}}},emitters:[{direction:sg.p$b.top,position:{y:100,x:{min:0,max:100}},life:{duration:.09,delay:.05,wait:!0,count:0},rate:{quantity:1.5,delay:.09}}]})}(e);return(0,eh.jsx)(sj,{options:t})});sk.displayName="EnergyStreakItemParticles";var sy={width:54,height:69},sS={width:62,height:80},EnergyStreakItem=e=>{var{isActive:t,isLast:a,isReceived:r,day:i,energyValue:n,className:o,style:s}=e,{energyDescriptionPostfix:l}=(0,ts.r)("Modals").EnergyStreak,c=(0,eC.useRef)(null),d=useAdaptiveProperty({Mobile:sy,MobileMedium:sS}),u=d.width/d.height,m=c.current?c.current.clientWidth/d.width:1;return(0,eh.jsx)(tS,{ref:c,aspectRatio:u,className:o,style:s,children:(0,eh.jsxs)("div",{className:eB()(sp().itemWrapper,{[sp().active]:t,[sp().last]:a,[sp().received]:r}),style:{width:d.width,height:d.height,transform:"scale(".concat(m,")")},children:[t&&(0,eh.jsx)("div",{className:sp().animationContainer,children:(0,eh.jsx)(sk,{color:a?"#fdcd2f":"#fff"})}),(0,eh.jsxs)("div",{className:sp().item,children:[(t||r)&&(0,eh.jsx)(Image_Image,{src:"./energy/energy-streak-beams.svg",alt:"",className:sp().beams}),(0,eh.jsxs)("div",{className:sp().title,children:[(0,eh.jsx)(tD,{id:getEnergyStreakItemImageIdByDay(i),className:sp().titleImg,theme:a?W.Gold:W.Purple}),(0,eh.jsx)("span",{children:n})]}),!r&&(0,eh.jsxs)("p",{className:sp().description,children:[i," ",l]}),(0,eh.jsx)(Image_Image,{src:"./energy/stamp.svg",alt:"подарок",className:eB()(sp().stamp,{[sp().visible]:r})})]})]})})},EnergyStreakList=e=>{var{streak:t,hasActiveDayHighlight:a=!1}=e,[r,i]=(0,eC.useState)(!1);return(0,eC.useEffect)(()=>{i(!0)},[]),(0,eh.jsx)("div",{className:eB()(sm().streak,{[sm().visible]:r}),children:Object.keys(t.days).map(e=>{var i=Number(e);return(0,eh.jsx)(EnergyStreakItem,{isActive:t.currentDay===i&&a,isLast:i===Object.keys(t.days).length,isReceived:i{var[t,a]=(0,eC.useState)(e);return(0,eC.useEffect)(()=>{e&&a(!0)},[e]),t},sT=a(64255),sN=a.n(sT),EnergyHeaderImage=e=>{var{image:t,children:a}=e,r=(0,eC.useRef)(null),[i,n]=(0,eC.useState)(!1),{width:o,height:s}=useWindowSize(),l=t instanceof Array?t:[(0,tp._)((0,te._)({},t),{isVisible:!0})],c=l[0];return(0,eC.useLayoutEffect)(()=>{r.current&&c.aspectRatio&&n(r.current.clientWidth/r.current.clientHeight>c.aspectRatio)},[o,s,c.aspectRatio]),(0,eh.jsxs)("div",{ref:r,className:sN().root,children:[a,l.map((e,t)=>(0,eh.jsx)(Image_Image,{className:eB()(sN().image,{[sN().visible]:e.isVisible,[sN().horizontal]:i}),src:e.src,alt:""},t))]})},sB=a(75669),sI=a.n(sB),EnergyHeaderBeams=e=>{var{theme:t}=e,{purple:a,gold:r}=(0,ts.r)("EnergyHeaderBeams"),i=(0,eC.useRef)(null),n=(0,eC.useRef)(null),{width:o,height:s}=useWindowSize();return(0,eC.useLayoutEffect)(()=>{if(i.current){var{clientWidth:e,clientHeight:t}=i.current,setSize=(e,t)=>{n.current&&(n.current.style.width="".concat(e,"px"),n.current.style.height="".concat(t,"px"))};e/t>a.visual.img.aspectRatio?setSize(e,e/a.visual.img.aspectRatio):setSize(t*a.visual.img.aspectRatio,t)}},[a.visual.img.aspectRatio,o,s]),(0,eh.jsx)("div",{ref:i,className:sI().root,children:(0,eh.jsxs)(tS,{ref:n,aspectRatio:a.visual.img.aspectRatio,className:sI().imageWrapper,children:[(0,eh.jsx)(Image_Image,{src:a.visual.img.src,alt:"",className:eB()(sI().image,{[sI().visible]:t===eo.Purple})}),(0,eh.jsx)(Image_Image,{src:r.visual.img.src,alt:"",className:eB()(sI().image,{[sI().visible]:t===eo.Gold})})]})})},sD=(0,ew.Pi)(e=>{var{title:t,description:a,heroImg:r,button:i}=(0,ts.r)("Modals").EnergyStreak,{purple:n,purpleTwo:o,gold:s}=r,{energyStreak:l,energyStreakCurrentDay:c,energyStreakCurrentDayEnergyValue:d,isLoading:u,isChargingEnergy:m}=(0,eT.gq)(),{trackEnergyStreakModalShown:_,trackEnergyStreakModalChargeEnergyButtonClick:p}=(0,eT.rS)();useLogRenderResult(aE.y8.EnergyStreak,u),(0,eC.useEffect)(()=>{_(c,d)},[]);var{isDayEnded:g}=(0,eT.G3)(),{startHideModal:h,showResultModal:f}=(0,eT.s9)(),{isFinishedRightNow:x}=(0,eT.gT)(),{chargeStreakEnergy:v}=(0,eT.A1)(),[w,C]=(0,eC.useState)(!0),b=useTrueValue(m),j=useElementBoundingRect("#".concat(getEnergyStreakItemImageIdByDay(c)));if(l){var k=l.currentDay===Object.keys(l.days).length,y=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large}),S=k?eo.Gold:eo.Purple;return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Modal,(0,tp._)((0,te._)({},e),{isVisible:w,className:ss().root,qaTag:eY.BE.Modals.EnergyStreakModal.root,isClosableOnlyByChildren:!0,isMaxHeight:!0,children:(0,eh.jsxs)(Modal.Container,{scrollable:{paddings:{default:{top:0,horizontal:0,bottom:40},[eW.RR.MobileMedium]:{bottom:58},[eW.RR.Tablet]:{top:0,bottom:58}},edgeOverlays:{top:{isHidden:!0}}},children:[(0,eh.jsxs)(EnergyHeaderImage,{image:[(0,tp._)((0,te._)({},o.visual.img),{isVisible:2===d}),(0,tp._)((0,te._)({},s.visual.img),{isVisible:k}),(0,tp._)((0,te._)({},n.visual.img),{isVisible:1===d})],children:[(0,eh.jsx)(EnergyHeaderBeams,{theme:S}),(0,eh.jsx)(EnergyHeaderGlow,{theme:S})]}),(0,eh.jsxs)("div",{className:ss().container,children:[(0,eh.jsx)("p",{className:ss().title,children:t}),(0,eh.jsx)("p",{className:ss().description,children:a}),(0,eh.jsx)(EnergyStreakList,{streak:l,hasActiveDayHighlight:!0}),(0,eh.jsx)("div",{className:ss().buttonWrapper,children:(0,eh.jsx)(tC,{className:ss().button,size:y,isLoading:g?u:b,onClick:()=>{v(),p(c,d)},children:i})})]})]})})),(0,eh.jsx)(Portal,{selector:"body",children:j&&(0,eh.jsx)(r$,{directionMultiplier:0,count:d,startRect:j,onAnimationComplete:()=>{x?f():(h(),C(!1))},theme:k?W.Gold:W.Purple})})]})}}),sM=a(40615),sE=a.n(sM),sL=(0,ew.Pi)(e=>{var{title:t,description:a,button:r,visual:i}=(0,ts.r)("Modals").EnergyWelcomeModal,{energyState:n,chargeOnboardingEnergy:o,isChargingEnergy:s,isLoading:l}=(0,eT.gq)(),c=(0,eT.ae)(),{complete:d}=(0,eT.Md)(),u=(0,eC.useRef)(null),m=useElementBoundingRect(u),_=useTrueValue(s),{trackEnergyWelcomeModalShown:p,trackEnergyWelcomeModalChargeEnergyButtonClick:g}=(0,eT.rS)();if(useLogRenderResult(aE.y8.EnergyWelcome,l),(0,eC.useEffect)(()=>{p(c.isCompletedToday)},[]),!n)return null;var h=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large});return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Modal,(0,tp._)((0,te._)({},e),{isClosableOnlyByChildren:!0,qaTag:eY.BE.Modals.EnergyWelcomeModal.root,className:sE().root,isMaxHeight:!0,children:(0,eh.jsxs)(Modal.Container,{scrollable:{paddings:{default:{top:0,horizontal:0,bottom:40},[eW.RR.MobileMedium]:{bottom:58}}},children:[(0,eh.jsx)(EnergyHeaderImage,{image:i.img,children:(0,eh.jsx)(EnergyHeaderGlow,{})}),(0,eh.jsxs)("div",{className:sE().container,children:[(0,eh.jsx)("p",{className:sE().title,children:t}),(0,eh.jsx)("p",{className:sE().description,children:a}),(0,eh.jsx)("div",{className:sE().buttonWrapper,children:(0,eh.jsx)(tC,{className:sE().button,size:h,onClick:()=>{o(),g(c.isCompletedToday)},beforeContent:(0,eh.jsx)(tD,{ref:u,className:sE().energyImage}),isLoading:_,children:r})})]})]})})),(0,eh.jsx)(Portal,{selector:"body",children:m&&(0,eh.jsx)(r$,{directionMultiplier:[.1,-.2],count:n.onboardingEnergyBonus,startRect:m,onAnimationComplete:d})})]})}),sR=a(76591),sP=a.n(sR),sG=a(8169),sA=a.n(sG),sH=a(3875),sO=a.n(sH),useImageScale=e=>{var{defaultHeight:t,defaultWidth:a,imageRef:r}=e,[i,n]=(0,eC.useState)(1),o=(0,eT.C5)();return(0,eC.useLayoutEffect)(()=>{var calculateImageScale=()=>{r.current&&n(Number(Math.max(r.current.width/a,r.current.height/t).toFixed(2)))};return calculateImageScale(),(0,eM.C)(o,calculateImageScale),()=>(0,eM.D)(o,calculateImageScale)},[t,a,r,o]),i},EnergyBalance=e=>{var{balance:t,theme:a,children:r,className:i}=e,{aspectRatioSmall:n,aspectRatio:o,purple:s,gold:l}=(0,ts.r)("EnergyBalance"),c=(0,eC.useRef)(null),d=(0,eC.useRef)(null),u=useImageScale({defaultWidth:s.battery.defaultWidth,defaultHeight:s.battery.defaultHeight,imageRef:d}),m=useWindowSize(),_=m.width/m.height>=sd,p=a===eo.Gold,g=(0,eT.bU)();return(0,eh.jsxs)("div",{ref:c,className:eB()(sO().root,i),children:[(0,eh.jsxs)(tS,{className:sO().imageContainer,aspectRatio:_?n:o,children:[(0,eh.jsx)(Image_Image,{src:s.glow.src,alt:"",className:eB()(sO().image,sO().glow,{[sO().visible]:!p,[sO().small]:_})}),(0,eh.jsx)(Image_Image,{imageRef:d,src:s.battery.src,alt:"",className:eB()(sO().image,sO().battery,{[sO().visible]:!p})}),(0,eh.jsx)(Image_Image,{src:l.glow.src,alt:"",className:eB()(sO().image,sO().glow,{[sO().visible]:p})}),(0,eh.jsx)(Image_Image,{imageRef:d,src:l.battery.src,alt:"",className:eB()(sO().image,sO().battery,{[sO().visible]:p})}),(0,eh.jsx)("p",{className:eB()(sO().balance,sO()[a]),style:{transform:"translate(-50%, -50%) scale(".concat(u,")"),marginTop:"".concat(g.isIos()?"calc(-2px * ".concat(u,")"):0)},children:t})]}),r]})},sV=(0,ew.Pi)(()=>{var e,t,a,{energyCount:r,energyState:i,minutesTillNextWithdrawal:n,isEnergyOverlimited:o}=(0,eT.gq)(),{title:s,description:l,infoBadge:c}=(0,ts.r)("Modals").EnergyBalanceModal,d=o?eo.Gold:eo.Purple;return(0,eh.jsxs)("div",{className:sA().headerContainer,children:[(0,eh.jsx)(EnergyHeaderBeams,{theme:d}),(0,eh.jsx)(EnergyHeaderGlow,{theme:d}),(0,eh.jsxs)("div",{className:sA().headerContent,children:[(0,eh.jsx)("div",{className:sA().title,children:s}),(0,eh.jsx)("div",{className:sA().description,children:l})]}),(0,eh.jsx)(EnergyBalance,{className:sA().balance,balance:r,theme:d,children:(0,eh.jsxs)("div",{className:sA().energyStatus,children:[(0,eh.jsx)(tD,{theme:o?W.Gold:W.Purple,className:sA().energyStatusImage}),(0,i$.renderParameterizedString)(i?o?i.nextWithdrawalAt?c.gold.text.replace("%value%","".concat(null!==(e=i.nextWithdrawalAmount)&&void 0!==e?e:"")).replace("%minutes%",getPluralForm(null!=n?n:0,c.pluralForms.minutes.one,c.pluralForms.minutes.two,c.pluralForms.minutes.five)):"":c.purple.text.replace("%value%","".concat(null!==(t=i.maxCount)&&void 0!==t?t:"")):"",{accent:e=>(0,eh.jsx)("span",{className:o?sA().accentGold:sA().accentPurple,children:e}),minutesCount:()=>(0,eh.jsx)(AnimatedCounterResolver,{number:null!=n?n:0})}),o&&(0,eh.jsx)(TooltipButton,{tooltipText:c.gold.tooltipText.replace("%maxAmount%","".concat(null!==(a=null==i?void 0:i.maxCount)&&void 0!==a?a:"")),tooltipContentMaxWidth:258,className:sA().tooltipButton,activeClassName:sA().tooltipButtonActive,theme:P.Light,tooltipClassName:sA().tooltipContent,children:(0,eh.jsx)(aJ.I$8,{})})]})})]})}),EnergyBalanceModal=e=>{var{energyStreak:t,isLoading:a}=(0,eT.gq)(),{streakTitle:r,closeButton:i}=(0,ts.r)("Modals").EnergyBalanceModal,n=(0,eC.useRef)(null);useLogRenderResult(aE.y8.EnergyBalance,a);var[o,s]=(0,eC.useState)(0),l=(0,eC.useRef)(null),c=(0,eC.useRef)(null);(0,eC.useEffect)(()=>{if(l.current&&c.current){var{width:e}=l.current.getBoundingClientRect(),{width:t}=c.current.getBoundingClientRect();s((e-t)/2)}},[l,c]);var{isVisible:d,hide:u}=useVisibilityToggle(!0),m=useWindowSize(),_=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large}),p=m.width=sd;if(t)return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{className:sP().root,qaTag:eY.BE.Modals.EnergyBalanceModal.root,isMaxHeight:!0,isVisible:d,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsx)(Modal.Container,{scrollable:{paddings:{default:{top:0,horizontal:0,bottom:40},[eW.RR.MobileMedium]:{bottom:58},[eW.RR.Tablet]:{top:0,bottom:58}},edgeOverlays:{top:{isHidden:!0}}},children:(0,eh.jsxs)("div",{className:sP().contentWrapper,ref:n,children:[(0,eh.jsx)(sV,{}),(0,eh.jsxs)("div",{className:sP().container,children:[(0,eh.jsx)("div",{className:sP().streakTitle,ref:l,children:(0,eh.jsx)("span",{className:sP().streakTitleText,ref:c,style:{"--stripe-width":"".concat(o,"px")},children:r})}),(0,eh.jsx)("div",{className:sP().streakContainer,children:(0,eh.jsx)(EnergyStreakList,{streak:t})}),!p&&(0,eh.jsx)(tC,{className:sP().button,theme:O.Dark,size:_,onClick:u,children:i})]})]})})]}))},sW=a(8770),sF=a.n(sW),sU=(0,ew.Pi)(e=>{var{title:t,subtitle:a,description:r,closeButton:i,pluralForms:n}=(0,ts.r)("Modals").EnergyOverlimitModal,o=(0,eT.gq)(),{minutesTillNextWithdrawal:s}=o,{isVisible:l,hide:c}=useVisibilityToggle(!0);useLogRenderResult(aE.y8.EnergyOverlimit,o.isLoading);var{energyCount:d,nextWithdrawalAmount:u}=(0,eC.useRef)({energyCount:o.energyCount,nextWithdrawalAmount:o.nextWithdrawalAmount}).current,{trackEnergyOverlimitModalShown:m,trackEnergyOverlimitModalButtonClick:_}=(0,eT.rS)();(0,eC.useEffect)(()=>{m(u,null!=s?s:0)},[]),(0,eC.useEffect)(()=>{s||c()},[c,s]);var p=useAdaptiveProperty({Mobile:sF().titleM,MobileMedium:sF().titleL}),g=useAdaptiveProperty({Mobile:sF().descriptionS,MobileMedium:sF().descriptionL}),h=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large}),f=eo.Gold;return(0,eh.jsxs)(Modal,(0,tp._)((0,te._)({},e),{className:sF().root,qaTag:eY.BE.Modals.EnergyBalanceModal.root,isVisible:l,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:e.onCloseButtonClick}),(0,eh.jsx)(Modal.Container,{scrollable:{paddings:{default:{top:0,horizontal:0,bottom:0}},edgeOverlays:{top:{isHidden:!0}}},children:(0,eh.jsxs)("div",{className:sF().contentWrapper,children:[(0,eh.jsxs)("div",{className:sF().balanceWrapper,children:[(0,eh.jsx)(EnergyHeaderBeams,{theme:f}),(0,eh.jsx)(EnergyHeaderGlow,{theme:f}),(0,eh.jsx)(EnergyBalance,{className:sF().balance,balance:d,theme:f})]}),(0,eh.jsxs)("div",{className:sF().container,children:[(0,eh.jsx)("p",{className:eB()(sF().title,p),children:t}),(0,eh.jsxs)("div",{className:eB()(sF().title,p),children:[(0,eh.jsx)(tD,{theme:W.Gold,className:sF().energyImage}),(0,i$.renderParameterizedString)(a.replace("%value%","".concat(null!=u?u:"")).replace("%minutesCount%","".concat(null!=s?s:0)).replace("%minutes%",getPluralForm(null!=s?s:0,n.minutes.one,n.minutes.two,n.minutes.five)),{accent:e=>(0,eh.jsx)("span",{className:sF().accentGold,children:e})})]}),(0,eh.jsx)("p",{className:eB()(sF().description,g),children:r}),(0,eh.jsx)(tC,{className:sF().button,theme:O.Dark,size:h,onClick:()=>{_(u,null!=s?s:0),c()},children:i})]})]})})]}))}),usePredictionsImagesPreload=()=>{var e=(0,eT.gT)(),t=(0,eT.bW)(),a=(0,eT.qf)(),{Predictions:r}=(0,ts.r)("Modals");(0,eC.useEffect)(()=>{t.isPredictionsEnabled&&!e.isFinished&&e.currentWord.length>0&&a.loadAssets([r.animation[ea.Idle].mainImageSrc,r.animation[ea.Idle].shadowImageSrc,r.animation[ea.Opening].src,r.animation[ea.Opened].mainImageSrc,r.animation[ea.Opened].shadowImageSrc])},[a,r.animation,e.isFinished,e.currentWord.length])},sZ=(0,ew.Pi)(()=>{var{modalsStack:e,hideModal:t,showGameInfo:a,startHideModal:r,replaceModal:i,updateModalsStack:n,errorInfo:o,maxRulesModalBodyHeight:s}=(0,eT.s9)(),{closeResultModal:l}=(0,eT.qJ)(),{closeDrawModal:c}=(0,eT.P4)(),d=(0,eT.OY)();return usePredictionsImagesPreload(),(0,eh.jsx)(eh.Fragment,{children:e.map(u=>{switch(u){case tF.Z.Result:return(0,eh.jsx)(rj,{onStartClose:r,onClose:l,onOpen:n},u);case tF.Z.GameInfo:return(0,eh.jsx)(rZ,{onStartClose:r,onClose:()=>{d.completeOnboarding(),t(tF.Z.GameInfo)},onOpen:n,isReplacing:e.includes(tF.Z.Rules)},u);case tF.Z.Rules:return(0,eh.jsx)(RulesModal,{onBackButtonClick:a,onStartClose:r,onClose:()=>t(tF.Z.Rules),onOpen:n,isReplacing:e.includes(tF.Z.GameInfo),style:{height:s}},u);case tF.Z.Gifts:return(0,eh.jsx)(il,{onStartClose:r,onClose:()=>t(tF.Z.Gifts),onOpen:n},u);case tF.Z.NewDay:return(0,eh.jsx)(NewDayModal,{},u);case tF.Z.Draw:return(0,eh.jsx)(sr,{isReplacing:e.includes(tF.Z.DrawTickets),onStartClose:r,onClose:c,onOpen:n},u);case tF.Z.DrawTickets:return(0,eh.jsx)(iJ,{isReplacing:e.includes(tF.Z.Draw),onStartClose:r,onBackButtonClick:()=>i(tF.Z.Draw),onClose:()=>t(tF.Z.DrawTickets),onOpen:n},u);case tF.Z.Prediction:return(0,eh.jsx)(ik,{onStartClose:r,onClose:()=>{t(tF.Z.Prediction)},onOpen:n},u);case tF.Z.Error:return(0,eh.jsx)(ErrorModal,{errorInfo:o,onOpen:n},u);case tF.Z.ResyncGameStateModal:return(0,eh.jsx)(ResyncGameStateModal,{onStartClose:r,onClose:()=>t(tF.Z.ResyncGameStateModal),onOpen:n},u);case tF.Z.TechnicalWork:return(0,eh.jsx)(TechnicalWorkModal,{},u);case tF.Z.Share:return(0,eh.jsx)(ShareModal,{onStartClose:r,onClose:()=>t(tF.Z.Share),onOpen:n},u);case tF.Z.Conditions:return(0,eh.jsx)(ConditionsModal,{onStartClose:r,onClose:()=>t(tF.Z.Conditions),onBackButtonClick:()=>t(tF.Z.Conditions),onOpen:n},u);case tF.Z.Highload:return(0,eh.jsx)(HighloadModal,{},u);case tF.Z.SubscribeErrorModal:return(0,eh.jsx)(SubscribeErrorModal,{onStartClose:r,onClose:()=>t(tF.Z.SubscribeErrorModal),onOpen:n},u);case tF.Z.Referral:return(0,eh.jsx)(ReferralModal,{onStartClose:r,onClose:()=>t(tF.Z.Referral),onOpen:n},u);case tF.Z.DevTools:return(0,eh.jsx)(DevToolsModal,{onStartClose:r,onClose:()=>t(tF.Z.DevTools),onOpen:n},u);case tF.Z.EnergyWelcome:return(0,eh.jsx)(sL,{onStartClose:r,onClose:()=>t(tF.Z.EnergyWelcome),onOpen:n},u);case tF.Z.EnergyStreak:return(0,eh.jsx)(sD,{onStartClose:r,onClose:()=>t(tF.Z.EnergyStreak),onOpen:n},u);case tF.Z.EnergyBalance:return(0,eh.jsx)(EnergyBalanceModal,{onStartClose:r,onClose:()=>t(tF.Z.EnergyBalance),onOpen:n},u);case tF.Z.EnergyOverlimit:return(0,eh.jsx)(sU,{onStartClose:r,onClose:()=>t(tF.Z.EnergyOverlimit),onOpen:n},u);default:return null}})})}),sz=a(76312),sq=a(32158),sK=a.n(sq),sY=a(91388),sX=(0,ew.Pi)(e=>{var t,a,r,i,{currentNotification:n}=e,{startHideNotification:o,hideCurrentNotification:s}=(0,eT.rV)(),{isBottomSheetOverlayed:l}=(0,eT.T_)(),[c,d]=(0,eC.useState)(!1),[u,m]=(0,eC.useState)(!1),_=useWindowSize(),p=(0,eT.Xu)(),g=(0,eT.rS)(),h=null!==(r=n&&p.tryCreateLink(n.primaryAction.link))&&void 0!==r?r:null,f=null!==(i=(null==n?void 0:n.secondaryAction)&&p.tryCreateLink(n.secondaryAction.link))&&void 0!==i?i:null,x=h instanceof sz.h&&h.getAction()===sY.Rh.Subscribe;(0,eC.useEffect)(()=>{n&&(d(!0),x&&g.trackSubscribeToPushNotificationShown(n.title))},[n,x,g]);var hideNotification=()=>!c&&s(),v=(0,eC.useCallback)(e=>{e||o(),d(e)},[o]),w=(0,eC.useCallback)(()=>{d(!1),o()},[o]),C=(0,eC.useCallback)((t=(0,aW._)(function*(e){yield e.click(),w()}),function(e){return t.apply(this,arguments)}),[w]),b=(0,eC.useCallback)((a=(0,aW._)(function*(e){e.preventDefault(),n&&h&&(m(!0),x&&g.trackClickSubscribeToPushNotification(n.title),yield C(h),m(!1))}),function(e){return a.apply(this,arguments)}),[n,x,C,h,g]),j=(0,eC.useCallback)(e=>{e.preventDefault(),(null==n?void 0:n.secondaryAction)&&f&&C(f)},[n,C,f]),k=useAdaptiveProperty({Mobile:V.Medium,MobileMedium:V.Large}),getBody=()=>{var{title:e,description:t,primaryAction:a,secondaryAction:r,img:i}=n;return(0,eh.jsxs)("div",{className:eB()(sK().root,{[sK().bigBottomPadding]:!r}),"data-overlayed":l,children:[i&&(0,eh.jsx)("div",{className:sK().imageContainer,children:(0,eh.jsx)(Image_Image,{className:sK().image,src:i,alt:""})}),(0,eh.jsxs)("div",{className:sK().content,children:[(0,eh.jsx)("p",{className:sK().title,children:e}),(0,eh.jsx)("p",{className:sK().description,children:t})]}),(0,eh.jsxs)("div",{className:sK().buttons,children:[(0,eh.jsx)(tC,{className:sK().button,size:k,onClick:b,isLoading:u,children:a.text}),r&&(0,eh.jsx)(tC,{className:sK().button,theme:O.Flat,size:k,onClick:j,children:r.text})]}),(0,eh.jsx)(CloseButton,{className:sK().closeButton,onClick:w})]})};return _.width>=eW.RR.Tablet?(0,eh.jsx)(Popup,{isOpened:c,onChange:v,onTransitionEnd:hideNotification,children:getBody()}):(0,eh.jsx)(BottomSheet,{isOpened:c,onChange:v,onTransitionEnd:hideNotification,onOutsideClick:w,children:getBody()})}),sQ=(0,ew.Pi)(()=>{var{isAppOverlayedByLoader:e}=(0,eT.T_)(),{currentNotification:t}=(0,eT.rV)(),{currentStep:a}=(0,eT.ae)(),{isActive:r}=(0,eT.Md)(),{currentModal:i}=(0,eT.s9)();return!t||e||i||a===ar.E.Welcome||r?null:(0,eh.jsx)(sX,{currentNotification:t})}),sJ=a(45469),s$=a.n(sJ),s0={[nk.C.Loader]:e$.a,[nk.C.Success]:e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{className:t,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 38.3333C30.1252 38.3333 38.3333 30.1252 38.3333 20C38.3333 9.87478 30.1252 1.66667 20 1.66667C9.87478 1.66667 1.66667 9.87478 1.66667 20C1.66667 30.1252 9.87478 38.3333 20 38.3333Z",fill:"#FFDD2D"}),(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2292 27.5848L30.0144 15.7997L29.3914 15.1767C27.9131 13.6984 25.5163 13.6984 24.0379 15.1767L18.2292 20.9851L16.3098 19.0657C14.8315 17.5874 12.4345 17.5874 10.9562 19.0658L10.3333 19.6888L18.2292 27.5848Z",fill:"#424243"})]})},[nk.C.Warn]:e=>{var{className:t}=e;return(0,eh.jsxs)("svg",{className:t,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29099 27.4565L16.1954 5.61809C18.1307 2.34294 22.8694 2.34294 24.8047 5.61808L37.7091 27.4564C39.6787 30.7895 37.276 35.0001 33.4045 35.0001L7.59564 35.0001C3.72414 35.0001 1.32146 30.7896 3.29099 27.4565Z",fill:"url(#paint0_linear_4036_67)"}),(0,eh.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.4167 30.8332H20.9167C21.8372 30.8332 22.5834 30.087 22.5834 29.1665V25.8332H20.0834C19.1629 25.8332 18.4167 26.5794 18.4167 27.4999V30.8332ZM18.4167 23.3332H20.9167C21.8372 23.3332 22.5834 22.587 22.5834 21.6665V12.4999H20.0834C19.1629 12.4999 18.4167 13.2461 18.4167 14.1665V23.3332Z",fill:"#424243"}),(0,eh.jsx)("defs",{children:(0,eh.jsxs)("linearGradient",{id:"paint0_linear_4036_67",x1:"9.10149",y1:"8.95054",x2:"29.2222",y2:"31.5901",gradientUnits:"userSpaceOnUse",children:[(0,eh.jsx)("stop",{stopColor:"#F52626"}),(0,eh.jsx)("stop",{offset:"1",stopColor:"#F52626",stopOpacity:"0.7"})]})})]})}},StatusNotificationView=e=>{var{onClose:t,statusNotification:a}=e,[r,i]=(0,eC.useState)(!1),[n,o]=(0,eC.useState)(!1),[s,l]=(0,eC.useState)(a),c=(0,eC.useRef)(null),d=(0,eC.useRef)(null),u=usePrevious(r),{StatusNotification:{defaultShowDurationMs:m}={}}=(0,eT.Vf)(),{type:_,text:p,showDurationMs:g=m}=s,{type:h,text:f}=a;(0,eC.useEffect)(()=>{i(!0),l(a)},[]),(0,eC.useEffect)(()=>{if(c.current&&d.current){var e=d.current.getBoundingClientRect();c.current.style.width="".concat(e.width,"px"),c.current.style.height="".concat(e.height,"px")}u&&(o(!0),setTimeout(()=>{l(a),o(!1)},eW.Zo.Moderate))},[a]),(0,eC.useEffect)(()=>{var e=setTimeout(handleClose,g);return()=>{clearTimeout(e)}},[s]);var x=s0[_],v=s0[h],handleClose=()=>{n||s.type===nk.C.Loader||(i(!1),setTimeout(()=>{t()},eW.Zo.Moderate))};return(0,eh.jsx)("div",{className:eB()("overlay",s$().root),onClick:handleClose,children:(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("div",{ref:c,className:eB()(s$().body,{[s$().hasText]:!!p,[s$().visible]:r,[s$().transitioned]:n}),children:(0,eh.jsxs)("div",{className:s$().inner,children:[(0,eh.jsx)(x,{className:s$().icon}),p&&(0,eh.jsx)("div",{className:s$().text,children:p})]})}),(0,eh.jsxs)("div",{ref:d,className:eB()(s$().nextBodyHolder,{[s$().hasText]:!!f}),children:[(0,eh.jsx)(v,{className:s$().icon}),f&&(0,eh.jsx)("div",{className:s$().text,children:f})]})]})})},s1=(0,ew.Pi)(()=>{var{statusNotification:e,hideStatusNotification:t,currentNotification:a}=(0,eT.rV)();return!e||a?(0,eh.jsx)(eh.Fragment,{}):(0,eh.jsx)(StatusNotificationView,{onClose:t,statusNotification:e})}),s2=(0,ew.Pi)(()=>{var e=(0,eT.Rt)(),t=(0,eT.LM)(),a=(0,eT.s9)(),{isAppOverlayedByLoader:r}=(0,eT.T_)(),i=!t.isGameLocked&&!a.currentModal&&r;return(0,eC.useEffect)(()=>{e.login()},[e]),useLogRenderResult(aE.y8.GameField,i),usePreventPinchToZoom(),usePreventScroll("#".concat(eW.O.AppContainer)),(0,eh.jsxs)("div",{className:ej().root,children:[(0,eh.jsxs)(Container,{className:ej().container,children:[(0,eh.jsx)(t4,{}),(0,eh.jsx)(tP,{})]}),!r&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(aa,{}),(0,eh.jsx)(aI,{})]}),i&&(0,eh.jsx)(GameLoadingModal,{}),(0,eh.jsx)(sZ,{}),(0,eh.jsx)(sQ,{}),(0,eh.jsx)(s1,{})]})}),s3=a(77514),s5=a.n(s3);(B=es||(es={})).Normal="normal",B.Small="small";var Block_Block=e=>{var{children:t,id:a,className:r,size:i=es.Normal}=e;return(0,eh.jsx)("div",{id:a,className:eB()(s5().root,r),"data-size":i,children:(0,eh.jsx)("div",{className:s5().content,children:t})})},s4=a(13567),s9=a.n(s4),s6="data-top-value",s8="data-bottom-value",s7={[s6]:"",[s8]:""},FlipCounterDigit=e=>{var{value:t,className:a,animationDurationSec:r=1}=e,i=usePrevious(t),n=(0,eC.useRef)(null),o=(0,eC.useRef)(null),s=(0,eC.useCallback)(()=>{var e,a,r,i;null===(e=n.current)||void 0===e||e.setAttribute(s8,t),null===(a=o.current)||void 0===a||a.setAttribute(s6,t),null===(r=n.current)||void 0===r||r.classList.remove(s9().animated),null===(i=o.current)||void 0===i||i.classList.remove(s9().animated)},[t]),l=(0,eC.useCallback)(e=>{e.animationName===s9().flipTop&&s()},[s]);return(0,eC.useEffect)(()=>{n.current&&o.current&&(n.current.setAttribute(s6,t),n.current.setAttribute(s8,t),n.current.style.animationDuration="".concat(r,"s"),o.current.setAttribute(s8,t),o.current.setAttribute(s6,t),o.current.style.animationDuration="".concat(r,"s"))},[]),(0,eC.useEffect)(()=>{var e,a,r,l,c;(null===(e=o.current)||void 0===e?void 0:e.classList.contains(s9().animated))&&s(),void 0!==i&&i!==t&&(null===(a=n.current)||void 0===a||a.setAttribute(s6,t),null===(r=o.current)||void 0===r||r.setAttribute(s8,t),null===(l=n.current)||void 0===l||l.classList.add(s9().animated),null===(c=o.current)||void 0===c||c.classList.add(s9().animated))},[t]),(0,eh.jsx)("div",{className:a,children:(0,eh.jsx)("div",(0,tp._)((0,te._)({className:s9().digit,ref:n},s7),{children:(0,eh.jsx)("div",(0,tp._)((0,te._)({className:s9().digitOverlay,ref:o},s7),{onAnimationEnd:l}))}))})},le=a(31614),lt=a.n(le),FlipCounter=e=>{var{digitsAmount:t,value:a,animationDurationSec:r}=e,[i,n]=(0,eC.useState)([]);return(0,eC.useEffect)(()=>{n("".concat(a).padStart(t,"0").split(""))},[a,t]),(0,eh.jsx)("div",{className:lt().counter,children:i.map((e,t)=>(0,eh.jsx)(FlipCounterDigit,{value:e,className:lt().digit,animationDurationSec:r},"digit-".concat(t)))})},la=(0,ew.Pi)(e=>{var{className:t}=e,{todayIssuedGifts:a}=(0,eT.xj)();return(0,eh.jsx)("div",{className:t,children:(0,eh.jsx)(FlipCounter,{digitsAmount:6,value:a,animationDurationSec:.4})})}),lr=a(43714),li=a.n(lr),ln=a(62065),lo=a.n(ln),Button_Button=e=>{var{children:t,className:a,onClick:r}=e;return(0,eh.jsx)("button",{className:eB()(lo().root,a),onClick:r,children:t})};(I=el||(el={})).Demo="demo",I.HowToFind="howToFind",I.Card="card";var scrollToElement=(e,t)=>{if(e){var a,r;e.scrollIntoView({block:null!==(a=null==t?void 0:t.block)&&void 0!==a?a:"start",behavior:null!==(r=null==t?void 0:t.behavior)&&void 0!==r?r:"smooth",inline:null==t?void 0:t.inline})}},ls=a(72155),ll=a.n(ls),Header_Header=()=>{var{Intro:{logo:{src:e,alt:t},logoTinkoff:a}}=(0,ts.r)("LandingV2");return(0,eh.jsx)(Block_Block,{className:ll().block,children:(0,eh.jsxs)("div",{className:ll().logoContainer,children:[(0,eh.jsx)(Image_Image,{src:e,alt:t,className:ll().logo}),(0,eh.jsx)("div",{className:ll().logo,children:(0,eh.jsx)(Image_Image,{src:a,alt:"",className:ll().companyLogo})})]})})},Intro=()=>{var{Intro:{title:e,text:t,button:{text:a},gifts:{text:r,ghost:i},images:{lettersStaticTop:n,lettersStaticBottom:o,shape1:s,shape2:l,shape3:c,shape4:d,shape5:u,shape6:m,letter1:_,letter2:p,letter3:g,letter4:h,letter5:f,letter6:x,letter7:v,letter8:w}}}=(0,ts.r)("LandingV2"),C=(0,eT.rS)();return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Header_Header,{}),(0,eh.jsx)(Block_Block,{size:es.Small,className:li().block,children:(0,eh.jsxs)("div",{className:li().container,children:[(0,eh.jsxs)("div",{className:li().content,children:[(0,eh.jsx)("p",{className:li().mainTitle,children:e}),(0,eh.jsx)("p",{className:li().description,children:t}),(0,eh.jsx)(Button_Button,{className:li().button,onClick:()=>{C.trackClickPlayOnIntroLandingV2(),scrollToElement(document.getElementById(el.Demo))},children:a}),(0,eh.jsx)(Image_Image,{src:s,alt:"",width:28,height:22,className:eB()(li().letter,li().letterGroup1,li().shape1)}),(0,eh.jsx)(Image_Image,{src:_,alt:"",width:52,height:52,className:eB()(li().letter,li().letterGroup1,li().letter1)}),(0,eh.jsx)(Image_Image,{src:l,alt:"",width:33,height:19,className:eB()(li().letter,li().letterGroup1,li().shape2)})]}),(0,eh.jsxs)("div",{className:li().giftsContainer,children:[(0,eh.jsxs)("div",{className:li().giftsContent,children:[(0,eh.jsx)(Image_Image,{src:i,alt:"",className:li().giftsImage}),(0,eh.jsx)(la,{className:li().counter}),(0,eh.jsx)("p",{className:li().giftsDescription,children:r})]}),(0,eh.jsx)(Image_Image,{src:p,alt:"",width:76,height:76,className:eB()(li().letter,li().letter2)}),(0,eh.jsx)(Image_Image,{src:c,alt:"",width:28,height:22,className:eB()(li().letter,li().shape3)}),(0,eh.jsx)(Image_Image,{src:g,alt:"",width:44,height:44,className:eB()(li().letter,li().letter3)}),(0,eh.jsx)(Image_Image,{src:h,alt:"",width:112,height:112,className:eB()(li().letter,li().letter4)}),(0,eh.jsx)(Image_Image,{src:f,alt:"",width:64,height:64,className:eB()(li().letter,li().letter5)}),(0,eh.jsx)(Image_Image,{src:d,alt:"",width:41,height:31,className:eB()(li().letter,li().shape4)}),(0,eh.jsx)(Image_Image,{src:x,alt:"",width:76,height:76,className:eB()(li().letter,li().letter6)}),(0,eh.jsx)(Image_Image,{src:v,alt:"",width:112,height:112,className:eB()(li().letter,li().letter7)}),(0,eh.jsx)(Image_Image,{src:u,alt:"",width:58,height:26,className:eB()(li().letter,li().shape5)}),(0,eh.jsx)(Image_Image,{src:w,alt:"",width:92,height:92,className:eB()(li().letter,li().letter8)}),(0,eh.jsx)(Image_Image,{src:m,alt:"",width:49,height:38,className:eB()(li().letter,li().shape6)}),(0,eh.jsx)("div",{className:li().lettersTopContainer,children:(0,eh.jsx)(Image_Image,{src:n,alt:"",className:li().lettersStatic})}),(0,eh.jsx)("div",{className:li().lettersBottomContainer,children:(0,eh.jsx)(Image_Image,{src:o,alt:"",className:li().lettersStatic})})]})]})})]})},lc=a(72165),ld=a.n(lc),lu=a(87715),lm=a.n(lu),LandingPageButton=e=>(0,eh.jsx)(tC,(0,tp._)((0,te._)({},e),{className:eB()(lm().button,e.className)})),useIsPhoneResolution=()=>{var{width:e}=useWindowSize();return e{var{Bonus:{title:e,text:t,button:a,images:r}}=(0,ts.r)("LandingV2"),i=(0,eT.rS)(),n=useIsPhoneResolution();return(0,eh.jsx)(Block_Block,{children:(0,eh.jsxs)("div",{className:ld().card,children:[n?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().mobileImage1),src:r.mobileImage1,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().mobileImage2),src:r.mobileImage2,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().mobileImage3),src:r.mobileImage3,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().mobileImage4),src:r.mobileImage4,alt:""})]}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image1),src:r.image1,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image2),src:r.image2,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image3),src:r.image3,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image4),src:r.image4,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image5),src:r.image5,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ld().floatImage,ld().image6),src:r.image6,alt:""})]}),(0,eh.jsxs)("div",{className:ld().content,children:[(0,eh.jsx)("p",{className:ld().title,children:e}),(0,eh.jsx)("p",{className:ld().text,children:t}),(0,eh.jsx)(LandingPageButton,{className:ld().button,theme:O.Secondary,onClick:()=>{i.trackClickGetPromoCode(),scrollToElement(document.getElementById(el.Demo))},children:a.text})]})]})})},l_=a(83782),lp=a.n(l_),Title=e=>{var{children:t,className:a}=e;return(0,eh.jsx)("p",{className:eB()(lp().root,a),children:t})},lg=a(80558),lh=a.n(lg),About=()=>{var{About:{title:e,items:t}}=(0,ts.r)("LandingV2");return(0,eh.jsxs)(Block_Block,{size:es.Small,children:[(0,eh.jsx)(Title,{children:e}),(0,eh.jsx)("div",{className:lh().items,children:t.map((e,t)=>(0,eh.jsxs)("div",{className:lh().item,children:[(0,eh.jsxs)("div",{className:lh().itemIconWrapper,children:[(0,eh.jsx)(Image_Image,{className:lh().itemIconShadow,src:e.iconShadow,alt:""}),(0,eh.jsx)(Image_Image,{className:lh().itemIcon,src:e.icon,alt:""})]}),(0,eh.jsx)("p",{className:lh().itemTitle,children:e.title}),(0,eh.jsx)("p",{className:lh().itemDescription,children:e.description})]},t))})]})},lf=a(34348),lx=a.n(lf),lv=a(10177),lw=a.n(lv),lC=a(71771),lb=a.n(lC),lj=a(32027),lk=a(58705),ly=a.n(lk),lS=a(92967),lT=a.n(lS),lN=a(55458),lB=a.n(lN),DemoGameModal=e=>(0,eh.jsx)(Modal,(0,tp._)((0,te._)({},e),{className:eB()(lB().root,e.className)})),DemoGameModalHeader=e=>(0,eh.jsx)(Modal.Header,(0,tp._)((0,te._)({},e),{title:e.title&&(0,tp._)((0,te._)({},e.title),{className:eB()(lB().title,e.title.className)})})),WelcomeModal_WelcomeModal=e=>{var{onPrimaryButtonClick:t,onSecondaryButtonClick:a,isVisible:r,className:i,title:n,description:o,primaryButtonText:s,secondaryButtonText:l,selector:c}=e;return(0,eh.jsx)(DemoGameModal,{isVisible:r,qaTag:eY.BE.DemoGame.WelcomeModal.root,className:eB()(lT().root,i),position:z.Absolute,selector:c,isClosableOnlyByChildren:!0,children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(DemoGameModalHeader,{title:{text:n,align:Z.Center}}),(0,eh.jsx)("p",{className:lT().description,children:o}),(0,eh.jsxs)("div",{className:lT().buttons,children:[(0,eh.jsx)(tC,{className:lT().button,onClick:t,children:s}),(0,eh.jsx)(tC,{className:lT().button,theme:O.Flat,onClick:a,children:l})]})]})})},WelcomeModal=e=>{var{onStartGameButtonClick:t,isVisible:a,className:r,landingModalClassName:i}=e,n=(0,eT.rS)(),{WelcomeModal:o,WelcomeModalWithoutBonus:s}=(0,ts.r)("DemoGameV2"),{isLandingPageBonusEnabled:l}=(0,eT.Vf)(),{title:c,description:d,startGameButton:u,goToMbButton:m}=l?o:s;return(0,eh.jsx)(WelcomeModal_WelcomeModal,{isVisible:a,title:c,selector:"#".concat(eW.O.DemoGameContainer),className:eB()(ly().root,i,r),onPrimaryButtonClick:e=>{n.trackClickStartDemoLandingV2(),null==t||t(e)},onSecondaryButtonClick:()=>{n.trackClickOpenFullVersionFromDemoWelcomeLandingV2(),scrollToElement(document.querySelector("#".concat(el.HowToFind)))},description:d,primaryButtonText:u,secondaryButtonText:m})},useWindowHeight=()=>{var e=(0,eT.bU)(),t=useWindowSize(),[a,r]=(0,eC.useState)(null!=ec?ec:t.height);return(0,eC.useEffect)(()=>{if(!e.isMobileDevice()){r(t.height);return}var i=a-t.height;i>0&&i<=100&&r(t.height)},[e,a,t.height]),(0,eC.useEffect)(()=>{ec=a},[a]),a},LandingModal=e=>{var t=useWindowHeight();return(0,eh.jsx)(Modal,{className:eB()(lb().root,{[lb().compact]:t>=800},e.className),qaTag:e.qaTag,selector:e.selector,position:e.position,children:(0,eh.jsxs)(Modal.Container,{scrollable:{className:eB()(lb().scrollable,{[lb().withExtraTopPadding]:!e.isClosableOnlyByChildren},e.scrollableClassName),onScroll:e.onScroll},children:[!e.isClosableOnlyByChildren&&(0,eh.jsx)(Modal.CloseButton,{}),e.onBack&&(0,eh.jsx)(Modal.BackButton,{onClick:e.onBack}),(0,eh.jsx)(Modal.Header,{title:{text:e.title||"",align:e.titleAlign,className:eB()(lb().title,e.titleClassName)}}),e.children]})})},lI=a(15038),lD=a.n(lI),lM=eC.forwardRef((e,t)=>{var{title:a,imageSrc:r,style:i,children:n}=e;return(0,eh.jsxs)("div",{ref:t,className:lD().root,style:i,children:[(0,eh.jsx)(Image_Image,{className:lD().image,src:r,alt:""}),(0,eh.jsx)("p",{className:lD().title,children:a}),n]})});lM.displayName="TabCard";var lE=a(36890),lL=a.n(lE),UpcomingGiftsTab_UpcomingGiftsTab=e=>{var{style:t}=e,{ResultModal:{tabs:{upcoming:{card:{imageSrc:a,title:r,description:i}}}}}=(0,ts.r)("DemoGameV2");return(0,eh.jsx)(lM,{style:t,imageSrc:a,title:r,children:(0,eh.jsx)("p",{className:lL().description,children:i})})},lR=a(62701),lP=a.n(lR),CopyButton=e=>{var{textToCopy:t,title:a,copiedTitle:r,className:i,onClick:n}=e,[o,s]=(0,eC.useState)(!1),l=(0,eC.useRef)(null),c=(0,eT.O)();return(0,eC.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]),(0,eh.jsx)(LandingPageButton,{className:eB()(lP().root,{[lP().copied]:o},i),theme:O.Transparent,onClick:()=>{null==n||n(),l.current&&clearTimeout(l.current);try{copyToClipboard_copyToClipboard(t),s(!0),l.current=window.setTimeout(()=>{s(!1)},eW.K8)}catch(e){c.captureException({error:e,message:aF.Pe.CopyToClipboardError})}},children:o?(0,eh.jsx)("span",{className:lP().copiedTitle,children:r}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("span",{className:lP().title,children:a}),(0,eh.jsx)(Image_Image,{className:lP().copyIcon,src:"./icons/copy-new.svg",alt:""})]})})},lG=a(53779),lA=a.n(lG),ReceivedGiftsTab_ReceivedGiftsTab=e=>{var{onMounted:t}=e,{ResultModal:{tabs:{received:{card:{imageSrc:a,title:r,description:i,goToCardButton:n,promoButton:o}}}}}=(0,ts.r)("DemoGameV2"),s=(0,eT.rS)(),l=(0,eC.useRef)(null);return(0,eC.useLayoutEffect)(()=>{l.current&&t(l.current)},[t]),(0,eh.jsxs)(lM,{ref:l,imageSrc:a,title:r,children:[(0,eh.jsx)(CopyButton,{className:lA().copyButton,textToCopy:o.textToCopy,title:o.textToCopy,copiedTitle:o.copiedTitle,onClick:()=>s.trackClickCopyPromoCode()}),(0,eh.jsx)("p",{className:lA().description,children:i}),(0,eh.jsx)(LandingPageButton,{className:lA().goToCardButton,theme:O.Secondary,onClick:()=>{s.trackClickGetCard(),scrollToElement(document.querySelector("#".concat(el.Card)))},children:n})]})},lH=a(83094),lO=a.n(lH),lV=a(1629),lW=a.n(lV),UpcomingGiftsCardWithoutBonus=()=>{var{ResultModalWithoutBonus:{card:{imageSrc:e,title:t,description:a,buttons:r}}}=(0,ts.r)("DemoGameV2"),i=(0,eT.rS)();return(0,eh.jsxs)(lM,{imageSrc:e,title:t,children:[(0,eh.jsx)("p",{className:lW().description,children:a}),(0,eh.jsxs)("div",{className:lW().buttons,children:[(0,eh.jsx)(LandingPageButton,{theme:O.Secondary,onClick:()=>{i.trackClickBecomeClientLandingV2(),scrollToElement(document.querySelector("#".concat(el.Card)))},children:r.notClient}),(0,eh.jsx)(LandingPageButton,{theme:O.FlatDark,className:lW().clientButton,onClick:()=>{i.trackClickAlreadyClientLandingV2(),scrollToElement(document.querySelector("#".concat(el.HowToFind)))},children:r.client})]})]})};(D=ed||(ed={}))[D.UpcomingGifts=0]="UpcomingGifts",D[D.ReceivedGifts=1]="ReceivedGifts";var ResultModal_ResultModal=e=>{var{isVisible:t}=e,{isLandingPageBonusEnabled:a}=(0,eT.Vf)(),{ResultModal:r,ResultModalWithoutBonus:i}=(0,ts.r)("DemoGameV2"),[n,o]=(0,eC.useState)(null),[s,l]=(0,eC.useState)(1),c=(0,eT.rS)(),d=(0,eT.gT)();if((0,eC.useEffect)(()=>{t&&(d.isWon?c.trackShowDemoWonResultModalLandingV2():c.trackShowDemoLostResultModalLandingV2())},[d.isWon,t,c]),!t)return null;if(a){var u=d.isWon?r.won.title:r.lose.title,m=[{id:0,title:(0,eh.jsx)("span",{className:lO().tabTitle,children:r.tabs.upcoming.tabTitle}),content:(0,eh.jsx)(UpcomingGiftsTab_UpcomingGiftsTab,{style:{minHeight:"".concat(n,"px")}})},{id:1,title:(0,eh.jsx)("span",{className:lO().tabTitle,children:r.tabs.received.tabTitle}),content:(0,eh.jsx)(ReceivedGiftsTab_ReceivedGiftsTab,{onMounted:e=>{var{clientHeight:t}=e;return o(t)}})}];return(0,eh.jsx)(LandingModal,{title:u,className:lO().modal,titleClassName:lO().title,scrollableClassName:lO().scrollable,qaTag:eY.BE.DemoGame.ResultModal.root,titleAlign:Z.Center,selector:"#".concat(eW.O.DemoGameContainer),position:z.Absolute,isClosableOnlyByChildren:!0,children:(0,eh.jsx)(Tabs,{theme:$.Flat,items:m,initialTabIndex:s,tabIndex:s,onTabChange:l,tabsClassName:lO().tabs})})}var _=d.isWon?i.won.title:i.lose.title;return(0,eh.jsx)(LandingModal,{title:_,className:lO().modal,titleClassName:lO().title,scrollableClassName:lO().scrollable,qaTag:eY.BE.DemoGame.ResultModal.root,titleAlign:Z.Center,selector:"#".concat(eW.O.DemoGameContainer),position:z.Absolute,isClosableOnlyByChildren:!0,children:(0,eh.jsx)(UpcomingGiftsCardWithoutBonus,{})})},lF=a(87763),lU=a.n(lF),lZ=(0,ew.Pi)(()=>{var e=(0,eT.T_)(),t=(0,eT.uP)();return(0,eh.jsxs)("div",{className:lU().root,children:[(0,eh.jsx)(tK,{isOverlayed:e.isLogoOverlayed}),(0,eh.jsx)("div",{className:lU().buttons,children:(0,eh.jsx)("button",{"data-qa":eY.BE.DemoGame.Header.infoButton,className:lU().button,"data-overlayed":e.isInfoButtonOverlayed,onClick:()=>t.setIsRulesModalVisible(!0),children:(0,eh.jsx)(LightInfoIcon,{})})})]})}),lz=a(584),lq=a.n(lz),StartEnterWord_StartEnterWord=e=>{var{isVisible:t}=e,{StartEnterWord:{tooltip:a}}=(0,ts.r)("DemoGameV2"),r=useElementBoundingRect("#".concat(eW.O.DemoKeyboardContainer));return(0,eh.jsx)(eh.Fragment,{children:r&&(0,eh.jsx)(Tooltip,{position:R.Fixed,className:lq().tooltip,isVisible:t,x:r.left+r.width/2,y:r.top,children:a})})},lK=(0,ew.Pi)(()=>{var e=(0,eT.T_)(),t=(0,eT.gT)();(0,eT.Ac)();var a=(0,eT.Q3)(),{currentStep:r,accentKeyboardKey:i,isModalVisible:n}=(0,eT.uP)();return(0,eC.useEffect)(()=>{t.loadState()},[t]),(0,eh.jsxs)(Game,{columnCount:eS.l$,rowCount:eS.Do,fieldWords:(0,e1.ZN)(t.fieldWords),letterEvaluations:(0,e1.ZN)(t.letterEvaluations),lettersEvaluationsMap:(0,e1.ZN)(t.lettersEvaluationsMap),currentRowIndex:t.currentRowIndex,currentRowStatus:t.currentRowStatus,onFinishRowAnimation:t.clearCurrentRowStatus,onKeyPress:t.addLetter,onBackspacePress:t.removeLastLetter,onEnterPress:a.submitCurrentRow,shouldClearCurrentRow:t.shouldClearCurrentRow,canSubmit:t.canSubmit,canClear:t.canClear,isSubmittingWord:t.isSubmittingWord,isFieldTotallyOverlayed:e.isTilesOverlayed,fieldOverlayedTiles:e.overlayedTiles,isKeyboardTotallyOverlayed:e.isKeyboardOverlayed,keyboardOverlayedKeys:e.overlayedKeyboardKeys,keyboardAccentKey:i,keyboardContainerId:eW.O.DemoKeyboardContainer,children:[(0,eh.jsx)(StartEnterWord_StartEnterWord,{isVisible:r===lj.P.StartEnterWord}),t.dailyWord&&(0,eh.jsx)(FirstLetterTooltip,{isVisible:r===lj.P.FirstLetterTooltip,firstLetterSelector:'[data-key="'.concat(t.dailyWord.word[0],'"]')}),(0,eh.jsx)(aa,{isVisible:!n}),i&&(0,eh.jsx)(TapAccent,{isAbsolute:!0,selector:'[data-key="'.concat(i,'"]')})]})}),lY=a(36618),lX=a.n(lY),lQ={topOffset:40,bottomOffset:24,height:56},lJ=(0,tp._)((0,te._)({},lQ),{bottomOffset:32}),RulesModal_RulesModal=e=>{var{isVisible:t,onClose:a,onSkip:r,onPlay:i,onCloseButtonClick:n,onBackgroundClick:o,hasBottomButton:s,className:l,titleClassName:c,selector:d}=e,{RulesModal:{title:u,introText:m,examples:_,afterText:p,bottomButtons:g}}=(0,ts.r)("DemoGameV2"),h=usePrevious(s),f=usePrevious(t),[x,v]=(0,eC.useState)(0),[w,C]=(0,eC.useState)(0),b=(0,eC.useRef)(null),j=useWindowSize(),k=x>=99,y=s||h,S=t||f,T=Object.values(j.width>=eW.RR.TabletMedium?lJ:lQ).reduce((e,t)=>e+t,0),N=y?T:80;return(0,eh.jsxs)(DemoGameModal,{isVisible:t,className:eB()(lX().root,l),qaTag:eY.BE.Modals.RulesModal.root,onClose:a,onBackgroundClick:o,position:z.Absolute,selector:d,children:[(0,eh.jsx)(Modal.CloseButton,{onClick:n}),(0,eh.jsxs)(Modal.Container,{scrollable:{paddings:{default:{bottom:N},[eW.RR.Tablet]:{bottom:N}},onScroll:(e,t)=>v(t),edgeOverlays:{isAlwaysVisible:!0,bottom:y?{height:T,gradientHeight:lQ.topOffset}:void 0}},nonScrollableChildren:y?(0,eh.jsx)(tC,{className:lX().playButton,theme:k?O.Primary:O.Dark,onClick:()=>k?null==i?void 0:i():null==r?void 0:r(),children:k?g.play:g.skip}):void 0,onMounted:()=>{if(b.current){var e=(eS.l$-1)*eS.XN,t=(Math.min(b.current.clientWidth,260)-e)/eS.l$;C(calcOptimalTileSize(t,t/eS.dj,eS.dj).height)}},children:[(0,eh.jsx)(DemoGameModalHeader,{title:{text:u,className:c}}),(0,eh.jsxs)("div",{ref:b,className:lX().container,children:[(0,eh.jsx)("p",{children:m}),(0,eh.jsx)("div",{className:lX().divider}),_.map(e=>{var{word:t,evaluations:a,hint:r}=e;return(0,eh.jsxs)("div",{className:lX().example,children:[(0,eh.jsx)("div",{className:lX().rowWrapper,style:{height:"".concat(w,"px"),fontSize:"".concat(w/2,"px"),maxWidth:"".concat(260,"px")},onClick:e=>e.stopPropagation(),children:(0,eh.jsx)(Row,{row:-1,className:lX().row,columnCount:eS.l$,gridGap:eS.XN,word:t,evaluation:S?a:void 0})}),(0,eh.jsx)("p",{children:r})]},t)}),(0,eh.jsx)("div",{className:lX().divider}),(0,eh.jsx)("p",{children:p})]})]})]})},l$=(0,ew.Pi)(()=>{var e=(0,eT.rS)(),{currentStep:t,startDemoGame:a,closeRulesModal:r,isResultModalVisible:i,isRulesModalVisible:n}=(0,eT.uP)(),o=useWindowSize(),[s]=(0,eC.useState)(()=>o.width>=eW.RR.DesktopLarge?"desktopLarge":o.width>=eW.RR.MobileLarge?"mobileLarge":""),l=useWindowHeight(),c=eB()(lb().root,{[lb().compact]:l>=800});return(0,eh.jsx)("div",{className:eB()(lw().root,lw()[s]),children:(0,eh.jsxs)("div",{id:eW.O.DemoGameContainer,className:lw().container,children:[(0,eh.jsx)(lZ,{}),(0,eh.jsx)(lK,{}),(0,eh.jsx)(WelcomeModal,{isVisible:t===lj.P.Welcome,onStartGameButtonClick:a,landingModalClassName:c}),(0,eh.jsx)(RulesModal_RulesModal,{isVisible:n,hasBottomButton:t===lj.P.Rules,onClose:r,onCloseButtonClick:e.trackClickCloseRulesLandingV2,onBackgroundClick:e.trackClickOverlayRulesLandingV2,onPlay:()=>{e.trackClickPlayDemoGameLandingV2(),r()},onSkip:()=>{e.trackClickSkipRulesLandingV2(),r()},className:c,selector:"#".concat(eW.O.DemoGameContainer),titleClassName:lb().title}),(0,eh.jsx)(ResultModal_ResultModal,{isVisible:i})]})})}),Demo=()=>{var e=(0,eC.useRef)(null),t=useWindowHeight();return(0,eC.useEffect)(()=>{var a,r=.01*t;null===(a=e.current)||void 0===a||a.style.setProperty("--vh","".concat(r,"px"))},[t]),(0,eh.jsx)("div",{ref:e,className:lx().root,id:el.Demo,children:(0,eh.jsx)("div",{className:lx().container,children:(0,eh.jsx)(l$,{})})})},l0=a(39875),l1=a.n(l0),l2=a(40920),Card=()=>{var{Card:{title:e,description:t,iframe:a}}=(0,ts.r)("LandingV2"),r=(0,eT.ZR)().isStage?a.originTest:a.origin;return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Block_Block,{id:el.Card,className:l1().block,children:(0,eh.jsxs)("div",{className:l1().textContent,children:[(0,eh.jsx)(Title,{children:e}),(0,eh.jsx)("p",{className:l1().description,children:t})]})}),(0,eh.jsx)("div",{className:l1().iframeWrapper,children:(0,eh.jsx)(l2.h,{defaultHeight:1e3,title:"Tinkoff",srcOrigin:r,srcPath:a.src,className:l1().iframe,useScrolling:!1})})]})},l3=a(7559),l5=a(84714),l4=a.n(l5),HowToFind=()=>{var e,t,{HowToFind:{title:a,info:{app:r,qr:i}}}=(0,ts.r)("LandingV2"),n=(0,eT.rS)(),o=(0,eT.bU)();return(0,eh.jsxs)(Block_Block,{id:el.HowToFind,size:es.Small,children:[(0,eh.jsx)(Title,{children:a}),(0,eh.jsxs)("div",{className:l4().cards,children:[(0,eh.jsx)("div",{className:eB()(l4().card,l4().appCard),children:(0,eh.jsxs)("div",{className:l4().card1Content,children:[(0,eh.jsx)("p",{className:l4().cardTitle,children:r.title}),(0,eh.jsx)("p",{className:l4().cardDescription,children:r.description}),(0,eh.jsx)(Image_Image,{className:l4().phoneImage,src:r.image,alt:""}),(0,eh.jsx)(LandingPageButton,{className:l4().goToAppButton,theme:O.Secondary,link:o.isIos()?r.button.linkIOS:r.button.link,onClick:()=>n.trackClickGoToAppFromLandingV2(),children:r.button.title}),(0,eh.jsx)("p",{className:l4().instruction,children:(e=r.instruction.template,t=r.instruction.params,renderParameterizedString(e,{br:()=>(0,eh.jsx)("br",{}),link:e=>(0,eh.jsx)("a",{className:l4().link,href:null==t?void 0:t.link,target:"_blank",rel:"noreferrer",children:e})}))})]})}),(0,eh.jsxs)("div",{className:eB()(l4().card,l4().qrCard),children:[(0,eh.jsx)("p",{className:l4().cardTitle,children:i.title}),(0,eh.jsx)("p",{className:l4().cardDescription,children:i.description}),(0,eh.jsx)("div",{className:l4().qrCodeWrapper,children:(0,eh.jsx)("div",{className:l4().qrCodeContainer,children:(0,eh.jsx)(l3.ZP,{value:r.button.link,className:l4().qrCode})})})]})]})]})},l9=a(82070),l6=a.n(l9),Footer=e=>{var t,a,{Footer:{copyright:r,links:i,images:{mobileImage1:n,image1:o,image2:s},disclaimer:l}}=(0,ts.r)("LandingV2"),{isLandingPageBonusEnabled:c}=(0,eT.Vf)(),d=useIsPhoneResolution(),u=new Date().getFullYear(),m=u<2024?"".concat(2024):u.toString();return(0,eh.jsxs)("div",{className:l6().root,children:[d&&(0,eh.jsx)(Image_Image,{className:eB()(l6().floatImage,l6().mobileImage1),src:n,alt:""}),(0,eh.jsxs)(Block_Block,{size:es.Small,className:l6().block,children:[(0,eh.jsxs)("div",{className:l6().content,children:[!d&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{className:eB()(l6().floatImage,l6().image1),src:o,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(l6().floatImage,l6().image2),src:s,alt:""})]}),(0,eh.jsx)("p",{children:r.replace("%currentYear%",m)}),(0,eh.jsx)("ul",{children:(null!==(t=e.links)&&void 0!==t?t:i).filter(e=>!!c||!e.isBonusLink).map((e,t)=>{var a;return(0,eh.jsx)("li",{className:l6().linkItem,children:(0,eh.jsx)("a",{href:e.href,target:null!==(a=e.target)&&void 0!==a?a:"_blank",className:l6().link,children:e.text})},t)})})]}),(0,eh.jsx)("p",{className:l6().disclaimer,children:null!==(a=e.disclaimer)&&void 0!==a?a:l})]})]})},l8=a(20439),l7=a.n(l8),LandingPageContainer=e=>{var{children:t}=e,a=(0,eT.ZR)();return(0,eC.useEffect)(()=>{var e=document.querySelector("html");return!a.isServer&&e&&(e.classList.add("landing"),e.style.backgroundColor=eW._x.landingBackground),a.isServer||document.body.classList.add(l7().body),()=>{var e;a.isServer||null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("landing"),a.isServer||document.body.classList.remove(l7().body)}},[a.isServer]),(0,eh.jsx)("div",{className:l7().root,children:t})},ce=a(91185),ct=a.n(ce),DrawResult=()=>{var{DrawResult:{title:e,description:t,winnersButton:a,liveButton:r,images:i}}=(0,ts.r)("LandingV2"),n=useIsPhoneResolution();return(0,eh.jsx)(Block_Block,{children:(0,eh.jsxs)("div",{className:ct().card,children:[n?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().sparkles1),src:i.sparkles1,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().sparkles2),src:i.sparkles2,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().group1),src:i.group1,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().group2),src:i.group2,alt:""})]}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().lotteryLeft),src:i.lotteryLeft,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ct().floatImage,ct().lotteryRight),src:i.lotteryRight,alt:""})]}),(0,eh.jsxs)("div",{className:ct().content,children:[(0,eh.jsx)("p",{className:ct().title,children:e}),(0,eh.jsx)("p",{className:ct().description,children:t}),(0,eh.jsxs)("div",{className:ct().buttons,children:[(0,eh.jsx)(LandingPageButton,{className:ct().button,link:a.link,theme:O.Secondary,children:a.text}),(0,eh.jsx)(LandingPageButton,{className:ct().button,link:r.link,theme:O.Transparent,children:r.text})]})]})]})})},LandingPage=()=>{var{isLandingPageBonusEnabled:e,isDrawResultEnabled:t}=(0,eT.Vf)();return(0,eh.jsxs)(LandingPageContainer,{children:[(0,eh.jsx)(Intro,{}),e&&(0,eh.jsx)(Bonus,{}),(0,eh.jsx)(About,{}),(0,eh.jsx)(Demo,{}),t&&(0,eh.jsx)(DrawResult,{}),(0,eh.jsx)(Card,{}),(0,eh.jsx)(HowToFind,{}),(0,eh.jsx)(Footer,{})]})},ca=(0,ew.Pi)(()=>{var{viewMode:e}=(0,eT.mv)();return e===ao.w.Landing?(0,eh.jsx)(LandingPage,{}):(0,eh.jsx)(s2,{})}),cr=a(38084),ci=a(91825),cn=a.n(ci),co=a(96754),cs=a(33427),cl=(0,ew.Pi)(()=>{(0,eT.Rt)();var e=(0,eT.LM)(),t=(0,eT.HS)(),{isProd:a}=(0,eT.ZR)(),r=(0,eT._)();return e.isLoggedIn?(0,eh.jsx)(ex.Fg,{to:"".concat(eW.jv.Main,"?").concat(cs.p.MbVersion,"=1"),replace:!0}):e.isError?null:(0,eh.jsxs)("div",{className:cn().root,children:[(0,eh.jsx)(co.IframeSso,{projectUri:t.APP_PROJECT_URL,postCompleteRedirectPath:t.APP_POST_COMPLETE_REDIRECT_PATH,className:cn().iframe}),!a&&(0,eh.jsxs)("label",{className:cn().label,children:["AccessTokenSso",(0,eh.jsx)("input",{type:"text",className:cn().input,onChange:e=>r.setItem(eW.Fe.DevToolsSessionID,e.target.value)})]})]})}),cc=a(93620),cd=a.n(cc),cu={id:"MOCK_GIFT",issuedAt:new Date().toISOString(),status:a8.iU.Issued,source:a8.A4.Game,giftClass:a8.eC.Secret,name:"",receiveGiftButton:{text:"",link:"https://tinkoff.ru"},imageLink:"/empty.svg",daysToExpire:4,lastUsageDate:"2029-12-31"};(M=eu||(eu={})).Gift="gift",M.SpecialImageLink="specialImageLink";var PreviewCurrentGiftCardPage=()=>{var{Gifts:{title:e,tabs:{received:t}}}=(0,ts.r)("Modals"),{search:a}=(0,ex.TH)(),r=new URLSearchParams(a),i=r.get(eu.Gift),n=r.get(eu.SpecialImageLink),o=i?JSON.parse(i):{},s=(0,tp._)((0,te._)({},cu,o),{imageLink:o.imageLink||cu.imageLink});return(0,eh.jsx)(Modal,{children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:"".concat(e," (").concat(t.tabTitle,")"),align:Z.Center}}),(0,eh.jsxs)("div",{className:cd().group,children:[(0,eh.jsx)("p",{className:cd().cardHint,children:"Приз с обычной картинкой"}),(0,eh.jsx)(r5,{gift:s,modalId:tF.Z.Gifts})]}),(0,eh.jsxs)("div",{className:cd().group,children:[(0,eh.jsx)("p",{className:cd().cardHint,children:"Приз с особой картинкой"}),(0,eh.jsx)(r5,{gift:(0,tp._)((0,te._)({},s),{imageLink:n||s.imageLink}),modalId:tF.Z.Gifts})]})]})})},cm={id:"mock",source:a8.A4.Game,giftClass:a8.eC.Secret,name:"",imageLink:"/empty.svg",winsLeft:25};(em||(em={})).IsResultModal="isResultModal";var c_=a(46531),cp=a.n(c_),PreviewUpcomingGiftCardPage=()=>{var{Result:{titles:{winTitle:e}},Gifts:{title:t,tabs:{upcoming:a}}}=(0,ts.r)("Modals"),{search:r}=(0,ex.TH)(),i=new URLSearchParams(r),n=i.get(eu.Gift),o=i.get(eu.SpecialImageLink),s="true"===i.get(em.IsResultModal),l=n?JSON.parse(n):{},c=(0,tp._)((0,te._)({},cm,l),{imageLink:l.imageLink||cm.imageLink});return(0,eh.jsx)(Modal,{children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:s?e:"".concat(t," (").concat(a.tabTitle,")"),align:Z.Center}}),(0,eh.jsxs)("div",{className:cp().group,children:[(0,eh.jsx)("p",{className:cp().cardHint,children:"Приз с обычной картинкой"}),(0,eh.jsx)(rd,{gift:c,isResultModal:s})]}),(0,eh.jsxs)("div",{className:cp().group,children:[(0,eh.jsx)("p",{className:cp().cardHint,children:"Приз с особой картинкой"}),(0,eh.jsx)(rd,{gift:(0,tp._)((0,te._)({},c),{imageLink:o||c.imageLink}),isResultModal:s})]})]})})},cg=a(42696),ch=a.n(cg),Intro_Intro=()=>{var{Intro:{title:e,description:t,disabled:a,images:r}}=(0,ts.r)("ReferralPage"),i=useIsPhoneResolution(),{ReferralPage:{pageStatus:n}}=(0,eT.Vf)(),o=n===eW.ti.Disabled;return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Header_Header,{}),(0,eh.jsxs)(Block_Block,{className:eB()(ch().block),children:[i&&(0,eh.jsx)(eh.Fragment,{children:(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().topMobileImage),src:r.lettersStaticTop,alt:""})}),(0,eh.jsxs)("div",{className:ch().content,children:[!i&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsxs)("div",{className:eB()(ch().floatImage,ch().leftGroup),children:[(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().leftO),src:r.leftO,alt:""}),(0,eh.jsxs)("div",{className:eB()(ch().floatImage,ch().leftF),children:[(0,eh.jsx)(Image_Image,{className:eB()(ch().shadow),src:r.tileShadow,alt:""}),(0,eh.jsx)(Image_Image,{className:ch().image,src:r.leftF,alt:""})]}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().leftK),src:r.leftK,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().leftN),src:r.leftN,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().leftT),src:r.leftT,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().shape,ch().shape4),src:r.shape4,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().shape,ch().shape5),src:r.shape5,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().shape,ch().shape6),src:r.shape6,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().leftDoubleStars),src:r.stars2,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().leftStar),src:r.star1,alt:""})]}),(0,eh.jsxs)("div",{className:eB()(ch().floatImage,ch().rightGroup),children:[(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().rightI),src:r.rightI,alt:""}),(0,eh.jsxs)("div",{className:eB()(ch().floatImage,ch().rightT),children:[(0,eh.jsx)(Image_Image,{className:eB()(ch().shadow),src:r.tileShadow,alt:""}),(0,eh.jsx)(Image_Image,{className:ch().image,src:r.rightT,alt:""})]}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().rightF),src:r.rightF,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().rightN),src:r.rightN,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().letter,ch().rightK),src:r.rightK,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().shape,ch().shape1),src:r.shape1,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().shape,ch().shape3),src:r.shape3,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().rightDoubleStars),src:r.stars2,alt:""}),(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().rightStar),src:r.star1,alt:""})]})]}),(0,eh.jsx)("p",{className:ch().title,children:o?a.title:e}),(0,eh.jsx)("p",{className:ch().description,children:o?a.description:t}),i&&o&&(0,eh.jsx)("div",{className:ch().bottomMobileImageWrapper,children:(0,eh.jsx)(Image_Image,{className:eB()(ch().floatImage,ch().bottomMobileImage),src:r.lettersStaticBottom,alt:""})})]})]})]})},cf=a(33340),cx=a.n(cf),cv=a(7477),cw=a(51815),cC=a.n(cw),cb=a(94024),cj=a.n(cb),Title_Title=e=>{var{children:t}=e;return(0,eh.jsx)("p",{className:cj().root,children:t})},ck=a(46539),cy=a.n(ck),useAuthErrorResources=e=>{var{Auth:{ssoSteps:{error:t,errors:a}}}=(0,ts.r)("ReferralPage");if(!e)return t;var{errorCode:r}=e,i=a.find(e=>e.errorCodes.includes(r));return null!=i?i:t},cS=(0,ew.Pi)(()=>{var e,t=(0,eT.ZR)(),{userState:a}=(0,eT.LM)(),{logout:r}=(0,eT.Rt)(),i=(0,rT.hp)(a.error),{errorCode:n,timestamp:o,requestId:s}=i,{title:l,text:c,button:d,isErrorCodeVisible:u}=useAuthErrorResources(i);(0,eC.useEffect)(()=>{if(!t.isServer)return window.addEventListener("beforeunload",r),()=>{r(),window.removeEventListener("beforeunload",r)}},[t.isServer,r]);var m=(e=(0,aW._)(function*(){d&&(0,rT.ZT)(d)&&d.action===aF._2.Logout&&(yield r())}),function(){return e.apply(this,arguments)});return(0,eh.jsxs)("div",{className:cy().root,children:[(0,eh.jsx)(Title_Title,{children:l}),(0,eh.jsx)("p",{className:cy().description,children:c}),u&&(0,eh.jsxs)("p",{className:cy().errorInfo,children:[n,o?"@".concat(o):"",s?"\n".concat(s):""]}),d&&(0,eh.jsx)(LandingPageButton,{link:(0,rT.tO)(d)?d.href:void 0,className:cy().button,onClick:m,children:d.text})]})}),cT=(0,ew.Pi)(e=>{var{initialTitle:t,initialSubtitleTitle:a,confirmationTitle:r,errorTitle:i,postCompleteRedirectPath:n,onChangeSsoAuthFormStep:o}=e,[s,l]=(0,eC.useState)(cv.SsoAuthFormStep.Initial),[c,d]=(0,eC.useState)(!1),u=(0,eC.useRef)(null),m=(0,eT.HS)(),{isError:_}=(0,eT.LM)();return(0,eC.useEffect)(()=>{null==o||o(s)},[s,o]),(0,eC.useEffect)(()=>{if(!("IntersectionObserver"in window)){d(!0);return}var e=new IntersectionObserver(t=>{t[0].isIntersecting&&(d(!0),e.disconnect())},{threshold:.1});return u.current&&e.observe(u.current),()=>{e.disconnect()}},[]),(0,eh.jsx)("div",{ref:u,className:cC().root,children:c?(0,eh.jsx)(eh.Fragment,{children:_?(0,eh.jsx)(cS,{}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Title_Title,{children:s===cv.SsoAuthFormStep.Error?i:s===cv.SsoAuthFormStep.Initial?t:r}),s===cv.SsoAuthFormStep.Initial&&(0,eh.jsx)("p",{className:cC().subtitle,children:a}),(0,eh.jsx)(co.IframeSso,{onAuthFormStepChange:l,projectUri:m.APP_PROJECT_URL,postCompleteRedirectPath:null!=n?n:m.APP_POST_COMPLETE_REDIRECT_PATH,className:cC().iframe})]})}):(0,eh.jsx)("div",{className:cC().loaderWrapper,children:(0,eh.jsx)(e$.a,{className:cC().loader})})})});(e_||(e_={})).Saved="saved";var cN=a(21678),cB=a.n(cN),AuthSuccess=()=>{var e,t,{Auth:{ssoSteps:{success:a}}}=(0,ts.r)("ReferralPage"),r=(0,eT.bU)(),i=(0,eT.rS)();return(0,eh.jsxs)(eh.Fragment,{children:[r.isMobileDevice()?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Title_Title,{children:a.mobile.title}),(0,eh.jsx)("p",{className:cB().text,children:a.mobile.text}),(0,eh.jsx)(LandingPageButton,{className:cB().goToAppButton,theme:O.Primary,onClick:i.trackClickPlayButtonOnReferralPage,link:r.isIos()?a.goToAppButton.linkIOS:a.goToAppButton.link,children:a.goToAppButton.title})]}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(Title_Title,{children:a.desktop.title}),(0,eh.jsx)("p",{className:cB().text,children:a.desktop.text}),(0,eh.jsx)(l3.ZP,{value:a.goToAppButton.link,className:cB().qrCode})]}),(0,eh.jsx)("p",{className:cB().instruction,children:(e=a.instruction.template,t=a.instruction.params,renderParameterizedString(e,{br:()=>(0,eh.jsx)("br",{}),link:e=>(0,eh.jsx)("a",{className:cB().link,href:null==t?void 0:t.link,target:"_blank",rel:"noreferrer",children:e})}))})]})},useReferralStatus=()=>{var e=(0,eT._)(),{isLoggedIn:t}=(0,eT.LM)(),{logout:a}=(0,eT.Rt)(),{ReferralPage:{referralStatusTtlMs:r}}=(0,eT.Vf)(),[i,n]=(0,eC.useState)(()=>{var t=e.getItem(eW.Fe.ReferralStatusSavedDate);return!t||new Date().getTime()-Number.parseInt(t)>=r?(e.removeItem(eW.Fe.ReferralStatus),e.removeItem(eW.Fe.ReferralStatusSavedDate),null):e.getItem(eW.Fe.ReferralStatus)});return(0,eC.useEffect)(()=>{t&&(e.setItem(eW.Fe.ReferralStatus,e_.Saved),e.setItem(eW.Fe.ReferralStatusSavedDate,new Date().getTime().toString()),n(e_.Saved),a())},[t,e,a]),i},cI=(0,ew.Pi)(()=>{var e,t,{Auth:{ssoSteps:a}}=(0,ts.r)("ReferralPage"),r=(0,eT.HS)(),i=(0,eT.rS)(),{isLoggedIn:n,isError:o}=(0,eT.LM)(),s=useReferralStatus(),[l,c]=(0,eC.useState)(cv.SsoAuthFormStep.Initial);return(0,eC.useEffect)(()=>{n&&i.trackSuccessAuthReferralPage(),o&&i.trackFailedAuthReferralPage()},[n,o,i]),(0,eh.jsx)("div",{id:eW.O.ReferralAuth,className:cx().root,children:(0,eh.jsx)("div",{className:cx().content,children:s===e_.Saved?(0,eh.jsx)(AuthSuccess,{}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(cT,{initialTitle:a.initial.title,initialSubtitleTitle:a.initial.subtitle,confirmationTitle:a.confirmation.title,errorTitle:a.error.title,postCompleteRedirectPath:r.APP_POST_COMPLETE_REDIRECT_PATH,onChangeSsoAuthFormStep:c}),l===cv.SsoAuthFormStep.Initial&&(0,eh.jsx)("p",{className:cx().conditions,children:(e=a.initial.conditions.template,t=a.initial.conditions.params,renderParameterizedString(e,{link1:e=>(0,eh.jsx)("a",{className:cx().link,href:null==t?void 0:t.link1,target:"_blank",rel:"noreferrer",children:e})}))})]})})})}),ReferralPage=()=>{var{Footer:{links:e,disclaimer:t}}=(0,ts.r)("ReferralPage"),{ReferralPage:{pageStatus:a}}=(0,eT.Vf)();return useLogRenderResult(aE.y8.ReferralPage,!1),(0,eh.jsxs)(LandingPageContainer,{children:[(0,eh.jsx)(Intro_Intro,{}),a===eW.ti.Enabled&&(0,eh.jsx)(cI,{}),(0,eh.jsx)(About,{}),a===eW.ti.Disabled&&(0,eh.jsx)(HowToFind,{}),(0,eh.jsx)(Footer,{links:e,disclaimer:t})]})},cD=a(76725),PreviewNotificationPage=()=>{var{search:e}=(0,ex.TH)(),t=new URLSearchParams(e).get("message"),a=t?JSON.parse(t):{},r=(0,te._)({},cD.uJ,a);return(0,eh.jsx)(sX,{currentNotification:r})},cM=a(59072),cE=a.n(cM),AuthModal=e=>{var{isVisible:t,onBack:a,hasResult:r}=e,{AuthModal:i}=(0,ts.r)("DemoGamePage"),n=(0,eT.HS)();return t?(0,eh.jsxs)(DemoGameModal,{isVisible:t,qaTag:eY.BE.DemoGame.AuthModal.root,position:z.Absolute,children:[a&&(0,eh.jsx)(Modal.BackButton,{onClick:a}),(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(DemoGameModalHeader,{title:{text:r?i.title.withResult:i.title.withoutResult,align:Z.Center}}),(0,eh.jsx)(co.IframeSso,{projectUri:n.APP_PROJECT_URL,postCompleteRedirectPath:n.APP_POST_COMPLETE_REDIRECT_PATH})]})]}):null},cL=a(7239),cR=a.n(cL),cP=a(4794),cG=a.n(cP),cA=a(62783),cH=a.n(cA),DemoPageModal=e=>{var{isVisible:t,title:a,imageSrc:r,description:i,qaTag:n,children:o,isClosableOnlyByChildren:s}=e;return(0,eh.jsx)(Modal,{isVisible:t,qaTag:n,className:cR().root,position:z.Absolute,isClosableOnlyByChildren:s,children:(0,eh.jsxs)(Modal.Container,{scrollable:{paddings:{default:{top:0,horizontal:24,bottom:24},[eW.RR.Tablet]:{top:0,horizontal:24,bottom:24}}},children:[(0,eh.jsx)(Modal.Header,{title:{text:a,align:Z.Center,className:eB()(cG().className,cR().title)},children:(0,eh.jsx)("div",{className:cR().imageWrapper,children:(0,eh.jsx)(Image_Image,{className:cR().image,src:r,alt:""})})}),(0,eh.jsx)("p",{className:eB()(cH().className,cR().description),children:i}),o]})})},cO=a(72450),cV=a.n(cO),DemoWelcomeModal=e=>{var{isVisible:t,onPrimaryButtonClick:a,onSecondaryButtonClick:r}=e,{WelcomeModal:i}=(0,ts.r)("DemoGamePage"),{title:n,description:o,primaryButton:s,secondaryButton:l}=i;return(0,eh.jsx)(DemoPageModal,{isVisible:t,qaTag:eY.BE.DemoGame.WelcomeModal.root,title:n,imageSrc:i.image,description:o,isClosableOnlyByChildren:!0,children:(0,eh.jsxs)("div",{className:cV().buttons,children:[(0,eh.jsx)(tC,{className:cV().button,onClick:a,size:V.Medium,children:s}),l&&(0,eh.jsx)(tC,{className:cV().button,theme:O.Flat,onClick:r,children:l})]})})},cW=a(85291),cF=a.n(cW),useTriggerTracking=()=>{var e=(0,eT.C5)();return(0,eC.useCallback)(()=>{e.dispatchEvent(new Event("pagehide"))},[e])},DemoResultModal=e=>{var{isVisible:t,isWon:a}=e,{ResultModal:r}=(0,ts.r)("DemoGamePage"),i=(0,eT.rS)(),n=useTriggerTracking(),o=r.buttons.secondary.title;return(0,eh.jsx)(DemoPageModal,{isVisible:t,qaTag:eY.BE.DemoGame.ResultModal.root,title:a?r.won.title:r.lose.title,imageSrc:a?r.won.image:r.lose.image,description:r.text,isClosableOnlyByChildren:!0,children:(0,eh.jsxs)("div",{className:cF().buttons,children:[(0,eh.jsx)(tC,{className:cF().button,onClick:()=>{i.trackClickBecomeClientOnDemoGameResultModal(a),n(),(0,r0.E)(r.buttons.primary.link,{target:"_top"}).click()},size:V.Medium,children:r.buttons.primary.title}),o&&(0,eh.jsx)(tC,{className:cF().button,theme:O.Flat,onClick:()=>{i.trackClickAlreadyClientOnDemoGameResultModal(a),n(),(0,r0.E)(r.buttons.secondary.link,{target:"_top"}).click()},size:V.Medium,children:o})]})})},cU=(0,ew.Pi)(()=>{var{currentStep:e,startDemoGame:t,closeRulesModal:a,isResultModalVisible:r,isRulesModalVisible:i,isAuthModalVisible:n,showAuthModal:o,closeAuthModal:s,setIsRulesModalVisible:l}=(0,eT.uP)(),{isWon:c,currentWord:d,currentRowIndex:u}=(0,eT.gT)(),m=(0,eT.rS)();useLogRenderResult(aE.y8.DemoPage,!1);var _=(0,eT.T_)(),{RulesButtonText:p}=(0,ts.r)("DemoGamePage"),g=e===lj.P.Welcome&&!n;return(0,eC.useEffect)(()=>{var e;return null===(e=document.querySelector("html"))||void 0===e||e.classList.add("demo"),()=>{var e;null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("demo")}},[]),(0,eC.useEffect)(()=>{d.length>0&&m.trackDemoGameAddFirstLetter()},[d,m]),(0,eC.useEffect)(()=>{(u>0||c)&&m.trackDemoGameAddFirstWord()},[u,d,c,m]),(0,eC.useEffect)(()=>{r&&m.trackShowDemoGameResultModal(c)},[r,c,m]),(0,eh.jsx)("div",{className:cE().root,children:(0,eh.jsxs)(Container,{className:cE().container,children:[(0,eh.jsxs)("div",{className:cE().row,children:[(0,eh.jsx)(tK,{isOverlayed:_.isLogoOverlayed,className:cE().logo}),(0,eh.jsxs)("div",{className:cE().buttons,children:[(0,eh.jsx)("button",{"data-qa":eY.BE.DemoGame.Header.infoButton,className:eB()(cE().button,cE().smallResolution),"data-overlayed":_.isInfoButtonOverlayed,onClick:()=>l(!0),children:(0,eh.jsx)(LightInfoIcon,{})}),(0,eh.jsx)("div",{"data-overlayed":_.isInfoButtonOverlayed,className:cE().highResolution,children:(0,eh.jsxs)(tC,{theme:O.Dark,size:V.Small,qaTag:eY.BE.DemoGame.Header.infoButton,onClick:()=>l(!0),children:[(0,eh.jsx)(aJ.kIh,{}),(0,eh.jsx)("span",{className:cE().rulesButtonText,children:p})]})})]}),(0,eh.jsx)("div",{className:cE().gameWrapper,children:(0,eh.jsx)(lK,{})})]}),(0,eh.jsx)(DemoWelcomeModal,{isVisible:g,onPrimaryButtonClick:()=>{t(),m.trackClickStartDemoGameOnWelcomeModal()},onSecondaryButtonClick:o}),(0,eh.jsx)(RulesModal_RulesModal,{isVisible:i,hasBottomButton:e===lj.P.Rules,onClose:a,onCloseButtonClick:m.trackClickCloseDemoGameRulesModal,onBackgroundClick:m.trackClickOutsideDemoGameRulesModal,onPlay:()=>{a(),m.trackClickStartDemoGameOnRulesModal()},onSkip:()=>{a(),m.trackClickSkipDemoGameOnRulesModal()}}),r&&(0,eh.jsx)(DemoResultModal,{isVisible:r,isWon:c}),(0,eh.jsx)(AuthModal,{isVisible:n,onBack:e===lj.P.Welcome?s:void 0,hasResult:e===lj.P.Result})]})})}),Redirect=e=>{var{to:t}=e,a=(0,eT.C5)();return(0,eC.useEffect)(()=>{a.location.href=t},[a,t]),null},cZ=a(7920),cz=a.n(cZ),DemoPageTest=()=>(0,eh.jsx)("div",{className:cz().root,children:(0,eh.jsx)("iframe",{src:"".concat(tT.p.APP_STATIC_URL).concat(eW.jv.Demo),frameBorder:"0",className:cz().iframe})}),cq={name:"Какой то приз",status:iU.a3.InProgress,description:"10 призов",img:{availableBonus:"".concat(tT.p.APP_STATIC_BASE_URL,"/static/5bukv/100000gift-2024-10-10-09-48-59.png"),wonBonus:"".concat(tT.p.APP_STATIC_BASE_URL,"/static/5bukv/100_000-2024-11-25-08-01-56.png")},type:iU.tZ.Default,ticketCountToOpen:1};(ep||(ep={})).DrawGift="drawGift";var cK=a(13621),cY=a.n(cK),DrawGiftItemTestPage=()=>{var{search:e}=(0,ex.TH)(),t=new URLSearchParams(e).get(ep.DrawGift),a=t?JSON.parse(t):{},[r,i]=(0,eC.useState)(""),n=(0,tp._)((0,te._)({},cq,a),{isLocked:!1});return r&&(n.img.availableBonus=r),(0,eh.jsxs)("div",{className:cY().root,children:[(0,eh.jsx)("input",{className:cY().input,placeholder:"Картинка png",type:"file",accept:"image/png",onChange:e=>{if(e.target.files&&e.target.files[0]){var t=e.target.files[0];i(URL.createObjectURL(t))}}}),(0,eh.jsx)("div",{className:cY().giftWrapper,children:(0,eh.jsx)(DrawGiftItem,{gift:n},n.img.availableBonus)})]})},cX="preview-modal",useQueryParams=e=>{var{search:t}=(0,ex.TH)(),a=new URLSearchParams(t);return e.reduce((e,t)=>{var{param:r}=t,i=a.get(r);return i&&"undefined"!==i&&(e[r]=JSON.parse(i)),e},{})},PreviewThematicWordTooltipPage=()=>{var{Result:{thematicDayTitles:e,lose:t}}=(0,ts.r)("Modals"),{word:a,win:r,index:i}=useQueryParams([{param:"word",type:"object"},{param:"win",type:"string"},{param:"index",type:"number"}]),n={};return"object"!=typeof a||Array.isArray(a)||(n=a),n.link="",(0,eh.jsx)(Modal,{isVisible:!0,isMaxHeight:!0,children:(0,eh.jsxs)(Modal.Container,{children:[(0,eh.jsx)(Modal.Header,{title:{text:r?e.titleWithGifts:e.loseTitle,align:Z.Center}}),(0,eh.jsxs)("div",{id:cX,children:[!r&&(0,eh.jsxs)("div",{className:aA().item,children:[(0,eh.jsx)("p",{className:aA().rightWordTitle,children:t.rightWordTitle}),(0,eh.jsxs)("p",{className:aA().rightWord,children:[n.word,(0,eh.jsx)(RightWordTooltipButton,{className:aA().rightWordTooltipButton})]})]}),(0,eh.jsx)(AnswersGroup,{items:(0,tm.R)(),context:A.Modal}),(0,eh.jsx)(ThematicWordTooltip,{isVisible:!0,elementSelector:r?"#AnswersHistoryItem_-".concat(i||3,"_modal"):"#".concat(eW.O.RightWordTooltipButton),elementContainerSelector:"#".concat(cX),onClickDetailsButton:()=>{},onClickHideButton:()=>{},dailyWord:n})]})]})})},cQ=a(15348),cJ=a.n(cQ),c$={name:"",status:iU.a3.InProgress,description:"",img:{availableBonus:"/empty.svg"},type:iU.tZ.Default,ticketCountToOpen:1};(eg||(eg={})).DrawGift="drawGift";var PreviewDrawGiftPage=()=>{var e,t,a,r,i,n,o,s,{search:l}=(0,ex.TH)(),c=new URLSearchParams(l).get(eg.DrawGift),d=c?JSON.parse(c):{},u=(0,tp._)((0,te._)({},c$,d),{isLocked:!1}),m=(0,tp._)((0,te._)({},u),{isLocked:!0}),_=(0,tp._)((0,te._)({},u),{img:(0,te._)({},u.img),status:iU.a3.Won,userWonCount:1}),p=(0,tp._)((0,te._)({},u),{img:(0,te._)({},u.img)});(null===(e=d.img)||void 0===e?void 0:e.calculationBonus)&&(p.img.availableBonus=d.img.calculationBonus);var g=(0,tp._)((0,te._)({},u),{img:(0,te._)({},u.img)});return((null===(t=d.img)||void 0===t?void 0:t.resultBonus)&&(g.img.availableBonus=d.img.resultBonus),null===(a=d.img)||void 0===a?void 0:a.availableBonus)?d.type===iU.tZ.Shared?(0,eh.jsxs)("div",{className:cJ().root,children:[(0,eh.jsxs)("div",{className:cJ().sharedGift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Открытый приз"}),(0,eh.jsx)(SharedGiftView,{sharedGift:u,title:"Название (заполняется в ресурсах)",description:"Описание (заполняется в ресурсах)",isLocked:!1,ticketCountToOpenSharedGift:1})]}),(null===(s=d.img)||void 0===s?void 0:s.unavailableBonus)&&(0,eh.jsxs)("div",{className:cJ().sharedGift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Закрытый приз"}),(0,eh.jsx)(SharedGiftView,{sharedGift:u,title:"Название (заполняется в ресурсах)",description:"Описание (заполняется в ресурсах)",isLocked:!0,ticketCountToOpenSharedGift:1})]})]}):(0,eh.jsx)("div",{className:cJ().root,children:(0,eh.jsxs)(Block,{className:cJ().giftsList,children:[(0,eh.jsxs)("div",{className:cJ().gift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Открытый приз"}),(0,eh.jsx)(DrawGiftItem,{gift:u})]}),(null===(r=d.img)||void 0===r?void 0:r.unavailableBonus)&&(0,eh.jsxs)("div",{className:cJ().gift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Закрытый приз"}),(0,eh.jsx)(DrawGiftItem,{gift:m})]}),(null===(i=d.img)||void 0===i?void 0:i.wonBonus)&&(0,eh.jsxs)("div",{className:cJ().gift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Выигранный приз"}),(0,eh.jsx)(DrawGiftItem,{gift:_})]}),(null===(n=d.img)||void 0===n?void 0:n.calculationBonus)&&(0,eh.jsxs)("div",{className:cJ().gift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Приз на этапе подсчета результатов"}),(0,eh.jsx)(DrawGiftItem,{gift:p})]}),(null===(o=d.img)||void 0===o?void 0:o.resultBonus)&&(0,eh.jsxs)("div",{className:cJ().gift,children:[(0,eh.jsx)(DrawSubtitle,{className:cJ().giftTitle,children:"Приз на этапе публикации результатов"}),(0,eh.jsx)(DrawGiftItem,{gift:g})]})]})}):void 0};function App(){return(0,eT.ZR)().isServer?(0,eh.jsx)(ev.gx,{location:"/",children:(0,eh.jsx)(AppRoutes,{})}):(0,eh.jsx)(ef.VK,{children:(0,eh.jsx)(AppRoutes,{})})}function AppRoutes(){var e=(0,eT.rS)(),t=(0,eT.mv)(),a=(0,eT.Vf)(),r=(0,eT.bU)(),i=(0,eT.Ii)(),n=(0,eT.HS)(),o=(0,eT.ZR)(),s=(0,iT.useRouter)(),[l]=(0,ef.lr)(),c=(0,eC.useRef)(null);return(0,eC.useEffect)(()=>{r.isIos()&&document.documentElement.classList.add("ios")},[r]),(0,eC.useEffect)(()=>{t.checkViewMode()},[t,l]),(0,eC.useEffect)(()=>{e.updateLocation()},[s,e]),(0,eC.useEffect)(()=>(c.current=window.setInterval(()=>{var e;(null===(e=window.tracking)||void 0===e?void 0:e.addPixel)&&(window.tracking.addPixel(a.customPixel),c.current&&clearInterval(c.current))},100),()=>{c.current&&clearInterval(c.current)}),[a.customPixel]),(0,eC.useEffect)(()=>{(0,cr.polyfill)()},[]),(0,eh.jsx)(eh.Fragment,{children:(0,eh.jsxs)(ex.Z5,{children:[(0,eh.jsx)(ex.AW,{path:eW.jv.Main,element:(0,eh.jsx)(ca,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.AuthUser,element:(0,eh.jsx)(cl,{})}),i.isReferralPageAvailable&&(0,eh.jsx)(ex.AW,{path:eW.jv.Referral,element:(0,eh.jsx)(ReferralPage,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.PreviewCurrentGiftCardPage,element:(0,eh.jsx)(PreviewCurrentGiftCardPage,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.PreviewUpcomingGiftCardPage,element:(0,eh.jsx)(PreviewUpcomingGiftCardPage,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.PreviewNotification,element:(0,eh.jsx)(PreviewNotificationPage,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.PreviewThematicWordTooltip,element:(0,eh.jsx)(PreviewThematicWordTooltipPage,{})}),!o.isProd&&(0,eh.jsx)(ex.AW,{path:eW.jv.DrawGiftItemTest,element:(0,eh.jsx)(DrawGiftItemTestPage,{})}),i.isDemoPageAvailable&&(0,eh.jsx)(ex.AW,{path:eW.jv.Demo,element:(0,eh.jsx)(cU,{})}),o.isLocal&&i.isDemoPageAvailable&&(0,eh.jsx)(ex.AW,{path:eW.jv.DemoTest,element:(0,eh.jsx)(DemoPageTest,{})}),(0,eh.jsx)(ex.AW,{path:eW.jv.PreviewDrawGiftPage,element:(0,eh.jsx)(PreviewDrawGiftPage,{})}),(0,eh.jsx)(ex.AW,{path:"*",element:(0,eh.jsx)(Redirect,{to:n.APP_PROJECT_URL})})]})})}(0,e1.jQ)({enforceActions:"always"})},55323:function(e){e.exports={root:"AdditionalGameButton_root__sjvFZ",image:"AdditionalGameButton_image__z0H_y",digit:"AdditionalGameButton_digit__S8ljr"}},55971:function(e){e.exports={root:"AppUpdateReminder_root__zQ2gv",block:"AppUpdateReminder_block__Y863T",image:"AppUpdateReminder_image__tWF0L",title:"AppUpdateReminder_title__x4z9J",description:"AppUpdateReminder_description__IZebp",button:"AppUpdateReminder_button___yntS"}},68581:function(e){e.exports={root:"ConfettiOverlay_root__h_AFD",animated:"ConfettiOverlay_animated__S_MRS",visible:"ConfettiOverlay_visible__vEJcn"}},54717:function(e){e.exports={root:"CorrectAnswersHistory_root__El2_R",item:"CorrectAnswersHistory_item__GWpWp"}},89811:function(e){e.exports={root:"AnswersGroup_root__IxL8f",item:"AnswersGroup_item__Pws8a",round:"AnswersGroup_round__TirYY",won:"AnswersGroup_won__EPsMp",animated:"AnswersGroup_animated__tuh6j",scale:"AnswersGroup_scale___HTBw",icon:"AnswersGroup_icon__51hG4",progressWrapper:"AnswersGroup_progressWrapper__Tu7u9",progress:"AnswersGroup_progress__PEUUf",word:"AnswersGroup_word__cLKRv",wordPlaceholder:"AnswersGroup_wordPlaceholder__2_oTd",dot:"AnswersGroup_dot__qdsay",snake:"AnswersGroup_snake__0i5St"}},97840:function(e){e.exports={root:"TapAnimation_root__X7DkA",animated:"TapAnimation_animated__8VzOj",tapAccentOuter:"TapAnimation_tapAccentOuter__l9FFm",tapAccentInner:"TapAnimation_tapAccentInner__cY_6x"}},55458:function(e){e.exports={root:"DemoGameModal_root__j84UD",title:"DemoGameModal_title__i_SbT"}},87763:function(e){e.exports={smallButton:"Header_smallButton__C5HJi",root:"Header_root__Se4Xm",buttons:"Header_buttons__ZQR_r",button:"Header_button__Dwepb Header_smallButton__C5HJi"}},36618:function(e){e.exports={divider:"RulesModal_divider__YgKsN",example:"RulesModal_example__aKUuS",rowWrapper:"RulesModal_rowWrapper__bkk5S",row:"RulesModal_row__cm87_",playButton:"RulesModal_playButton__D7820"}},584:function(e){e.exports={tooltip:"StartEnterWord_tooltip__c_4ne"}},92967:function(e){e.exports={root:"WelcomeModal_root__3o7df",description:"WelcomeModal_description__HGN0Y",buttons:"WelcomeModal_buttons__4PYLA",button:"WelcomeModal_button__6rreZ"}},78434:function(e){e.exports={block:"DevTools_block__HFdvo",actionsBlock:"DevTools_actionsBlock__WBrqz",enabled:"DevTools_enabled__bRigp",input:"DevTools_input__k0eqE",button:"DevTools_button__FJKsY",toggleButton:"DevTools_toggleButton__A3q_Y",dailyWord:"DevTools_dailyWord__9WRVV",debugInfo:"DevTools_debugInfo__ercjl"}},57689:function(e){e.exports={container:"FireFlyParticles_container__xeqBY"}},69527:function(e){e.exports={root:"Game_root__tWlkc",fieldContainer:"Game_fieldContainer__E2Rk8"}},81821:function(e){e.exports={root:"Field_root__wyXIh",tiles:"Field_tiles__j95u4",row:"Field_row__DW7Gp"}},89899:function(e){e.exports={root:"Row_root__6nOJ4",tileWrapper:"Row_tileWrapper__T5FHj",invalid:"Row_invalid__e7wom",shake:"Row_shake__X7Gbs",tile:"Row_tile__Tys1s",win:"Row_win__R5N0p",scale:"Row_scale__vZK6Z"}},85747:function(e){e.exports={root:"Tile_root__C3RE7",front:"Tile_front__T6_44",back:"Tile_back__JFInx",enter:"Tile_enter__sLLQx",flip:"Tile_flip__267KN",flipBack:"Tile_flipBack__bacca",flipAnimationFinished:"Tile_flipAnimationFinished__Z47db",none:"Tile_none__twqv2"}},48656:function(e){e.exports={root:"TileLegacy_root__fZuSe",front:"TileLegacy_front__kNTwP",back:"TileLegacy_back__y8czs",enter:"TileLegacy_enter__5wQ7C",flip:"TileLegacy_flip__VbhTB",animationFinished:"TileLegacy_animationFinished__OuiSL",none:"TileLegacy_none__puEWd"}},70353:function(e){e.exports={root:"Keyboard_root__NtISO",disabled:"Keyboard_disabled___P1Pq",row:"Keyboard_row__irhAo",key:"Keyboard_key___5UZn",wide:"Keyboard_wide__4xBpe",correct:"Keyboard_correct__gzgQY",present:"Keyboard_present__DRnIT",absent:"Keyboard_absent__7KoE1",accent:"Keyboard_accent___Vns7",halfKeySpace:"Keyboard_halfKeySpace__P42X_",backspace:"Keyboard_backspace__ga_qb",enabled:"Keyboard_enabled__TGRIk",highlighted:"Keyboard_highlighted__FCgdp",enter:"Keyboard_enter__YclWK",loader:"Keyboard_loader__m1QqZ",icon:"Keyboard_icon__wv0cs"}},29115:function(e){e.exports={tooltip:"HelpWithWord_tooltip__7RFSX",overlay:"HelpWithWord_overlay__50ZzM"}},99782:function(e){e.exports={tooltip:"StartEnterWord_tooltip__TrDpx"}},59439:function(e){e.exports={root:"TapAccent_root__iP_fw",absolute:"TapAccent_absolute__ICZcQ",outer:"TapAccent_outer__HIl_T",inner:"TapAccent_inner__FQFQk"}},93322:function(e){e.exports={title:"Welcome_title__CwOu_",imageContainer:"Welcome_imageContainer__bM59q",image:"Welcome_image__cHent",description:"Welcome_description__UApmK",buttons:"Welcome_buttons__3KmCW",button:"Welcome_button__HlI5b"}},6227:function(e){e.exports={tooltip:"GiftTooltip_tooltip__wKbav",clickableBox:"GiftTooltip_clickableBox__wjzoV"}},99124:function(e){e.exports={root:"Header_root__EIxKS",buttons:"Header_buttons__pJu1Y",button:"Header_button__3U5s_"}},43545:function(e){e.exports={root:"EnergyButton_root__dzbFM",visible:"EnergyButton_visible__DpyFi",energyIcon:"EnergyButton_energyIcon__DNa6F",countWrapper:"EnergyButton_countWrapper___SC7y",count:"EnergyButton_count__eybyR"}},2575:function(e){e.exports={smallButton:"HeaderButton_smallButton__CrJT_",root:"HeaderButton_root__MEI7C HeaderButton_smallButton__CrJT_",accentDot:"HeaderButton_accentDot__3vvAU"}},14125:function(e){e.exports={root:"ProjectLogo_root__yFthi",logoImage:"ProjectLogo_logoImage__wT4nf"}},89310:function(e){e.exports={root:"SpecialLogo_root__Ayr2X",shadows:"SpecialLogo_shadows__dmH6u",lights:"SpecialLogo_lights__cegFd",lightsImage:"SpecialLogo_lightsImage__hsDq3",shadow:"SpecialLogo_shadow__q9IWy",light:"SpecialLogo_light__mJClK",logoImage:"SpecialLogo_logoImage__9NMJW",brightness:"SpecialLogo_brightness__y5bWc"}},95789:function(e){e.exports={keyboardContainer:"MBGame_keyboardContainer__zsDNj",visible:"MBGame_visible__SeIsJ"}},42006:function(e){e.exports={bottomProgressBarContainer:"BottomProgressBar_bottomProgressBarContainer__Cod6x",visible:"BottomProgressBar_visible__oYjQj",bottomBarLoader:"BottomProgressBar_bottomBarLoader__gYpeX",bottomProgressBar:"BottomProgressBar_bottomProgressBar__meqYX",historyContainer:"BottomProgressBar_historyContainer__JyDjX",bottomProgressBarTitle:"BottomProgressBar_bottomProgressBarTitle__QzQ_9",animated:"BottomProgressBar_animated__DGLTm"}},79963:function(e){e.exports={bottomProgressBarContainer:"BottomProgressBarWithAdditionalGame_bottomProgressBarContainer__3B_d4",visible:"BottomProgressBarWithAdditionalGame_visible__0u7OV",bottomBarLoader:"BottomProgressBarWithAdditionalGame_bottomBarLoader__PDO_e",bottomProgressBar:"BottomProgressBarWithAdditionalGame_bottomProgressBar__QTaDf",historyContainer:"BottomProgressBarWithAdditionalGame_historyContainer__2P7Pb",content:"BottomProgressBarWithAdditionalGame_content__Uj8LS",bottomProgressBarTitle:"BottomProgressBarWithAdditionalGame_bottomProgressBarTitle__ESNI1 typography_headingS__91Uwz",additionalGameButton:"BottomProgressBarWithAdditionalGame_additionalGameButton__Ngy1I",animated:"BottomProgressBarWithAdditionalGame_animated__gmDA2"}},80493:function(e){e.exports={smallButton:"ModalBackButton_smallButton__O4j6P",backButton:"ModalBackButton_backButton__7QbJ1 ModalBackButton_smallButton__O4j6P"}},37051:function(e){e.exports={closeButton:"ModalCloseButton_closeButton__5mzlk"}},91312:function(e){e.exports={body:"ModalContainer_body__H_Cwj",overScrollableBody:"ModalContainer_overScrollableBody__EorpB"}},80483:function(e){e.exports={title:"ModalHeader_title__Bq4C9",left:"ModalHeader_left__Zauuv",right:"ModalHeader_right__5oB2N",center:"ModalHeader_center__FZ4q_",withSubtitle:"ModalHeader_withSubtitle__fqmFJ",subtitle:"ModalHeader_subtitle__MK8_3"}},99710:function(e){e.exports={root:"ConditionsModal_root__p0bgs",backIcon:"ConditionsModal_backIcon__BieAH",wrapper:"ConditionsModal_wrapper__u5mT_"}},38082:function(e){e.exports={subscriptionBlock:"GameInfoModal_subscriptionBlock__Et2vI",subscription:"GameInfoModal_subscription__2FgnY",loader:"GameInfoModal_loader__CfOmi",subscriptionToggle:"GameInfoModal_subscriptionToggle__HkeE1",title:"GameInfoModal_title__IBzzM",toggleButton:"GameInfoModal_toggleButton__021dK",nextWordTimer:"GameInfoModal_nextWordTimer__2yG_T",nextWordTimerHint:"GameInfoModal_nextWordTimerHint__Y0cYq",buttons:"GameInfoModal_buttons__l3jiN",buttonWrapper:"GameInfoModal_buttonWrapper__OIOsk",button:"GameInfoModal_button__xrm59",buttonHeader:"GameInfoModal_buttonHeader__LGEku",buttonIcon:"GameInfoModal_buttonIcon__oxZul",buttonDescription:"GameInfoModal_buttonDescription__Mn9Pr"}},76019:function(e){e.exports={root:"Content_root__Al5d7"}},55198:function(e){e.exports={root:"StatItem_root__oKz_c",enabled:"StatItem_enabled__HUT0F",description:"StatItem_description__9eRk9",tooltipButton:"StatItem_tooltipButton__0xLvH",value:"StatItem_value__6mf_E",loaderWrapper:"StatItem_loaderWrapper__F1Wy6",loader:"StatItem_loader__2xuc_",muted:"StatItem_muted__iXZ22"}},65378:function(e){e.exports={root:"StatItemList_root__ZgB0Y",mutedStatItem:"StatItemList_mutedStatItem__5hzqE"}},40750:function(e){e.exports={content:"Statistics_content__2XfMP",title:"Statistics_title__khCAS",description:"Statistics_description__01nyf"}},84997:function(e){e.exports={smallButton:"TooltipButton_smallButton__mNRhT",root:"TooltipButton_root__S_DzL TooltipButton_smallButton__mNRhT",active:"TooltipButton_active__FAWBk",light:"TooltipButton_light__sQDBc",info:"TooltipButton_info__p9FMI"}},35024:function(e){e.exports={root:"GiftsModal_root__4Thw3",loader:"GiftsModal_loader__9XOdp",giftsLoader:"GiftsModal_giftsLoader__orqpb",gifts:"GiftsModal_gifts__Zr5vj",giftItem:"GiftsModal_giftItem__BM7SW",inactive:"GiftsModal_inactive__iQjfV",notClickable:"GiftsModal_notClickable__JWLz0",accentDot:"GiftsModal_accentDot__qFFKl",disclaimer:"GiftsModal_disclaimer__Yj7lR"}},69791:function(e){e.exports={root:"NoGifts_root__TCZbz",imageWrapper:"NoGifts_imageWrapper__1R3_W",image:"NoGifts_image__8spfB",subtitle:"NoGifts_subtitle__ryf8X",title:"NoGifts_title__u5KfN",button:"NoGifts_button__m3pZu"}},79150:function(e){e.exports={root:"ModalBackground_root__j3UVu",background:"ModalBackground_background__QcUBH",image:"ModalBackground_image__eo7pZ"}},18914:function(e){e.exports={title:"NewDayModal_title__TjWJK",description:"NewDayModal_description__PH__M",reloadButton:"NewDayModal_reloadButton__JkAKW"}},67857:function(e){e.exports={root:"NextWordTimer_root__fKB76",title:"NextWordTimer_title__OPygK",timer:"NextWordTimer_timer__EMuYT",digit:"NextWordTimer_digit__OnwCK",loader:"NextWordTimer_loader__hChU0"}},22893:function(e){e.exports={root:"PredictionModal_root__ahgcM",inner:"PredictionModal_inner__W1VZ_",animationContainer:"PredictionModal_animationContainer__yjic_",tapTitle:"PredictionModal_tapTitle__zNcdC",prediction:"PredictionModal_prediction__iITPh",title:"PredictionModal_title__dt9Xj",text:"PredictionModal_text__wlSvs",button:"PredictionModal_button__aEFyY"}},37897:function(e){e.exports={root:"PredictionAnimation_root__OpNHi",shadowAnimation:"PredictionAnimation_shadowAnimation__OElFR",inner:"PredictionAnimation_inner__eHs9R",imagesLoadFinished:"PredictionAnimation_imagesLoadFinished__F6FKg",step:"PredictionAnimation_step__1wLeo",visible:"PredictionAnimation_visible__ptntQ",loader:"PredictionAnimation_loader___y_qP"}},89665:function(e){e.exports={root:"PredictionShadowAnimation_root__6ryAP",main:"PredictionShadowAnimation_main__EWcKe",shadow:"PredictionShadowAnimation_shadow__HwOhi",isAnimated:"PredictionShadowAnimation_isAnimated__0RfXC"}},62017:function(e){e.exports={image:"ReferralModal_image__ZntDQ",title:"ReferralModal_title__ctwVV",description:"ReferralModal_description__F1QV4",input:"ReferralModal_input__rrusN"}},6462:function(e){e.exports={root:"ResultModal_root__CWr80",item:"ResultModal_item__oLz39",hidden:"ResultModal_hidden__Ryb59",subscription:"ResultModal_subscription__mexFC",rightWordTitle:"ResultModal_rightWordTitle__IOs5i",rightWord:"ResultModal_rightWord__ThNJw",rightWordTooltipButton:"ResultModal_rightWordTooltipButton__PsaER",timer:"ResultModal_timer__8n83t",latDayInfo:"ResultModal_latDayInfo__U38eQ",numberOfAttemptsTitle:"ResultModal_numberOfAttemptsTitle__qGXI1",attemptsInner:"ResultModal_attemptsInner__NSGYk",attempts:"ResultModal_attempts__KcYsM",successful:"ResultModal_successful__bXqlF",shareButton:"ResultModal_shareButton__ezMV1",drawButton:"ResultModal_drawButton__tzwtj",giftButton:"ResultModal_giftButton__VB_IA",additionalGameButton:"ResultModal_additionalGameButton__fU6hJ",additionalDrawTicketsInfoCard:"ResultModal_additionalDrawTicketsInfoCard__1DC87"}},92717:function(e){e.exports={card:"AdditionalDrawTicketsInfoCardView_card__aLjpl typography_bodyM__aFlPx",image:"AdditionalDrawTicketsInfoCardView_image__IpYJf"}},32314:function(e){e.exports={neon:"DrawTicketCard_neon__swtiO",neonSmall:"DrawTicketCard_neonSmall__y88o_",neonWhiteSmall:"DrawTicketCard_neonWhiteSmall__oBswl",floatingToDownRight:"DrawTicketCard_floatingToDownRight__IzCV4",floatToDownRight:"DrawTicketCard_floatToDownRight__5Ksvr",floatingToDownLeft:"DrawTicketCard_floatingToDownLeft__xpv_q",floatToDownLeft:"DrawTicketCard_floatToDownLeft__e9Uj6",mainButton:"DrawTicketCard_mainButton___9r6u DrawTicketCard_neonSmall__y88o_",image:"DrawTicketCard_image__z__BI",buttons:"DrawTicketCard_buttons__tYj4O"}},13425:function(e){e.exports={root:"RightWordTooltipButton_root__HAqL_"}},8607:function(e){e.exports={mainButton:"SwitchableGifts_mainButton__yolW_"}},18734:function(e){e.exports={tooltip:"ThematicWordTooltip_tooltip__JTM7k",tooltipSource:"ThematicWordTooltip_tooltipSource__RXrfg"}},28736:function(e){e.exports={title:"ThematicWordTooltipContent_title__NmNu4",description:"ThematicWordTooltipContent_description__DQ9LA",buttons:"ThematicWordTooltipContent_buttons__POcQY",button:"ThematicWordTooltipContent_button__6FlUj",details:"ThematicWordTooltipContent_details__LLroc"}},67345:function(e){e.exports={divider:"RulesModal_divider__ZcGFr",example:"RulesModal_example__u3WAR",rowWrapper:"RulesModal_rowWrapper__TKN_J",row:"RulesModal_row__dYTxz",container:"RulesModal_container__4O_mH",playButton:"RulesModal_playButton__Bd18Y",root:"RulesModal_root___n5gx"}},56130:function(e){e.exports={description:"ShareModal_description__RbJAg",button:"ShareModal_button__RHBpt"}},63367:function(e){e.exports={root:"Subscription_root__Lkbag",text:"Subscription_text__WNKut",loader:"Subscription_loader__r7Skn",toggle:"Subscription_toggle__XbFna",toggleButton:"Subscription_toggleButton__V7O6R"}},27176:function(e){e.exports={title:"Advertising_title__xexMT typography_headingM__6exXK"}},13167:function(e){e.exports={root:"AdvertisingBannerItem_root__nh38s",scalable:"AdvertisingBannerItem_scalable__0onSt",background:"AdvertisingBannerItem_background__IY8Xn",image:"AdvertisingBannerItem_image__Dsa5D",content:"AdvertisingBannerItem_content__vJMSd",title:"AdvertisingBannerItem_title__leCs_ typography_headingS__91Uwz",description:"AdvertisingBannerItem_description__DeWpK typography_bodyM__aFlPx",button:"AdvertisingBannerItem_button__myQ_t",label:"AdvertisingBannerItem_label__6Vj7r typography_bodyS__tzsAt",hasTooltip:"AdvertisingBannerItem_hasTooltip___FjCk",tooltipButton:"AdvertisingBannerItem_tooltipButton__Qwu3j",tooltipSource:"AdvertisingBannerItem_tooltipSource__EKDZp"}},27363:function(e){e.exports={banners:"AdvertisingBanners_banners__18KkE",banner:"AdvertisingBanners_banner__PNpea"}},539:function(e){e.exports={root:"DrawAnnouncementModalSkeleton_root__3J8xv",titleWrapper:"DrawAnnouncementModalSkeleton_titleWrapper__asSfB",title:"DrawAnnouncementModalSkeleton_title__Iyrd4",row2:"DrawAnnouncementModalSkeleton_row2__6PpNZ",descriptionWrapper:"DrawAnnouncementModalSkeleton_descriptionWrapper__gJfys",row1:"DrawAnnouncementModalSkeleton_row1__N8bYS",description:"DrawAnnouncementModalSkeleton_description__AbOnX",sharedGift:"DrawAnnouncementModalSkeleton_sharedGift__DPM5G",gifts:"DrawAnnouncementModalSkeleton_gifts__tAy5s"}},90582:function(e){e.exports={gold:"DrawHeader_gold__Y8DSa"}},97508:function(e){e.exports={accent:"DrawHeader_accent__aojO2"}},51374:function(e){e.exports={root:"DrawModalSkeleton_root__6j2B4",ticketsProgress:"DrawModalSkeleton_ticketsProgress__xPYjp",gifts:"DrawModalSkeleton_gifts__aXx24",titleWrapper:"DrawModalSkeleton_titleWrapper__w6tL_",title:"DrawModalSkeleton_title__FAUHn",row2:"DrawModalSkeleton_row2__tc87u",descriptionWrapper:"DrawModalSkeleton_descriptionWrapper__XFGEI",row1:"DrawModalSkeleton_row1__YRF_f",description:"DrawModalSkeleton_description__0xzZw",ticketsButton:"DrawModalSkeleton_ticketsButton__LpjIX",inviteFriend:"DrawModalSkeleton_inviteFriend__lEZC_",buttonGetTicket:"DrawModalSkeleton_buttonGetTicket__PxBkQ"}},71280:function(e){e.exports={root:"DrawStatistics_root__smCjj"}},66287:function(e){e.exports={root:"DrawStatisticsLockedView_root__j6tFn",background:"DrawStatisticsLockedView_background__riIjl",content:"DrawStatisticsLockedView_content__wuTJa typography_bodyM__aFlPx",description:"DrawStatisticsLockedView_description__L2_6r",image:"DrawStatisticsLockedView_image___bm61"}},24029:function(e){e.exports={progress:"DrawStatisticsUnlocked_progress__xwYVN",progressInner:"DrawStatisticsUnlocked_progressInner__ew_p_",progressGradient:"DrawStatisticsUnlocked_progressGradient__mk3Yo",progressDescription:"DrawStatisticsUnlocked_progressDescription__SnPnn"}},66404:function(e){e.exports={title:"InviteFriend_title__9yrtY typography_headingM__6exXK",description:"InviteFriend_description__o_NjB typography_bodyM__aFlPx",button:"InviteFriend_button__juxUW",root:"InviteFriend_root__6GOoY",attention:"InviteFriend_attention__klIbl"}},25749:function(e){e.exports={root:"LockIcon_root__0grnF"}},2247:function(e){e.exports={root:"NextWordTimer_root__QzfyG typography_bodyL__d293V",time:"NextWordTimer_time__aaHAg"}},22119:function(e){e.exports={block:"SharedGiftView_block__dFHs_",blockInner:"SharedGiftView_blockInner__qNPc3",dark:"SharedGiftView_dark__XUq8z",subtitle:"SharedGiftView_subtitle__NKjod",imageContainer:"SharedGiftView_imageContainer__o0gOO",image:"SharedGiftView_image__bpto0",lockIconContainer:"SharedGiftView_lockIconContainer__vV3XP",lockIcon:"SharedGiftView_lockIcon__wMblq",shadow:"SharedGiftView_shadow__SuQEp"}},98822:function(e){e.exports={root:"TicketsButton_root__mEcji"}},54744:function(e){e.exports={title:"TicketsProgress_title__S8CPE typography_headingM__6exXK",description:"TicketsProgress_description__HUebX typography_bodyM__aFlPx",progressWrapper:"TicketsProgress_progressWrapper__wVusz",progress:"TicketsProgress_progress__eyxrs",bottomText:"TicketsProgress_bottomText__hvkgu typography_bodyS__tzsAt",daysLeft:"TicketsProgress_daysLeft__yr_uI"}},32899:function(e){e.exports={title:"WonSharedGift_title___uE8n typography_headingM__6exXK",description:"WonSharedGift_description__oQWck typography_bodyM__aFlPx"}},57543:function(e){e.exports={root:"DrawResultCalculationModal_root__sHeJV"}},63540:function(e){e.exports={root:"DrawBigGiftCard_root__Zl3ac",title:"DrawBigGiftCard_title__AGyR0",image:"DrawBigGiftCard_image__o3kIM",description:"DrawBigGiftCard_description__EOQl7",background:"DrawBigGiftCard_background__YIDEH",visible:"DrawBigGiftCard_visible__6Ncv3"}},58885:function(e){e.exports={title:"DrawHeader_title__ScdMz",shifted:"DrawHeader_shifted__vY4tR",accent:"DrawHeader_accent__KoiJC"}},99495:function(e){e.exports={root:"DrawResultCalculationModalSkeleton_root__rt5cF",titleWrapper:"DrawResultCalculationModalSkeleton_titleWrapper__doBPX",title:"DrawResultCalculationModalSkeleton_title__7P2M8",row2:"DrawResultCalculationModalSkeleton_row2__qLqa2",descriptionWrapper:"DrawResultCalculationModalSkeleton_descriptionWrapper__SxDMf",row1:"DrawResultCalculationModalSkeleton_row1__TOxS6",description:"DrawResultCalculationModalSkeleton_description__oW9IY",broadcastButton:"DrawResultCalculationModalSkeleton_broadcastButton__ICAU9",gifts:"DrawResultCalculationModalSkeleton_gifts__vI4j_",lostSharedGift:"DrawResultCalculationModalSkeleton_lostSharedGift__AuRuW",ticketsButton:"DrawResultCalculationModalSkeleton_ticketsButton__zLCea"}},197:function(e){e.exports={overlay:"GiftsButton_overlay__I30Ku",visible:"GiftsButton_visible__GXCmp",buttonWrapper:"GiftsButton_buttonWrapper__U74JL",button:"GiftsButton_button__OtR6n"}},34841:function(e){e.exports={copyButton:"HasTicketsBody_copyButton__T5PJk"}},22148:function(e){e.exports={giftsTitle:"SharedGiftNoTickets_giftsTitle___2hde"}},7012:function(e){e.exports={image:"WonExtraGift_image__A8LXK",button:"WonExtraGift_button__XgiQI",descriptionWrapper:"WonExtraGift_descriptionWrapper__TXUU2",description:"WonExtraGift_description__GYpMr",visible:"WonExtraGift_visible__uxdxM",gold:"WonExtraGift_gold__ZMuPV",expirationHint:"WonExtraGift_expirationHint__wTziR",expirationIcon:"WonExtraGift_expirationIcon__Fsxwp"}},21702:function(e){e.exports={root:"WonSharedGift_root__Dk0gA",info:"WonSharedGift_info__gP7u3",commonTitle:"WonSharedGift_commonTitle___vGE6"}},70377:function(e){e.exports={root:"DrawResultsModal_root__u4Pk4"}},64922:function(e){e.exports={gold:"DrawHeader_gold__a38kK"}},61872:function(e){e.exports={root:"DrawStatistics_root__n7oUA",block:"DrawStatistics_block__NOPa5",iconWrapper:"DrawStatistics_iconWrapper__OV0qO",iconBg:"DrawStatistics_iconBg__KUENk",description:"DrawStatistics_description__y65bA",gradient:"DrawStatistics_gradient__4xj91"}},71556:function(e){e.exports={afterStatisticsBlock:"HasTicketsBody_afterStatisticsBlock__w4noc",bottomItemGradient:"HasTicketsBody_bottomItemGradient__iBMGq"}},58306:function(e){e.exports={root:"NextDrawAnnouncement_root__RcZTw",background:"NextDrawAnnouncement_background__WBkKj",title:"NextDrawAnnouncement_title__ZXXLS",description:"NextDrawAnnouncement_description__cYdmB",bottom:"NextDrawAnnouncement_bottom__Dx0H_",bottomDecorator:"NextDrawAnnouncement_bottomDecorator__yuIbH",mainImage:"NextDrawAnnouncement_mainImage__AoV33",buttonWrapper:"NextDrawAnnouncement_buttonWrapper__dy9IX",visible:"NextDrawAnnouncement_visible__7Gk2E",button:"NextDrawAnnouncement_button__7CXg5"}},27504:function(e){e.exports={label:"SharedGiftNoTickets_label__1Hqap"}},35282:function(e){e.exports={root:"DrawTicketsModal_root__syqlr",tickets:"DrawTicketsModal_tickets__5PkmM",title:"DrawTicketsModal_title__vjVYZ"}},52111:function(e){e.exports={root:"DrawTicketsSkeleton_root__wdabA",tickets:"DrawTicketsSkeleton_tickets__gpxzz",ticket:"DrawTicketsSkeleton_ticket__vZQEI"}},38508:function(e){e.exports={root:"Ticket_root__sITxo",won:"Ticket_won__rocer",lost:"Ticket_lost__UbT8P",wonBorder:"Ticket_wonBorder__yIQZg",content:"Ticket_content__oYxJR",number:"Ticket_number__kQ7dw",wonText:"Ticket_wonText__xzqNy",date:"Ticket_date__C3iaN",imageWrapper:"Ticket_imageWrapper__HN3of",image:"Ticket_image__xUGmm",disabled:"Ticket_disabled__xk5QN"}},98763:function(e){e.exports={title:"Typography_title__x3GKn",big:"Typography_big__Npe0j",subtitle:"Typography_subtitle__mCFoY typography_bodyM__aFlPx",centered:"Typography_centered__BwuDe"}},4048:function(e){e.exports={label:"Block_label__RXk38 typography_headingS__91Uwz",root:"Block_root__jGbM2",background:"Block_background__It1_3"}},93709:function(e){e.exports={root:"DrawCopyButton_root__B_iRZ",texts:"DrawCopyButton_texts__LvD_e",title:"DrawCopyButton_title__7tK2G",gray:"DrawCopyButton_gray__Bx7pM",text:"DrawCopyButton_text__LYec2",copied:"DrawCopyButton_copied__IiorG",copiedIcon:"DrawCopyButton_copiedIcon__NpA_p",copyButton:"DrawCopyButton_copyButton__t_TA5",glow:"DrawCopyButton_glow__Bdt_E"}},58469:function(e){e.exports={root:"DrawGiftItem_root__Chh4S",innerContent:"DrawGiftItem_innerContent__mX9qy",infoIconWrapper:"DrawGiftItem_infoIconWrapper__OwwqB",wonDecorator:"DrawGiftItem_wonDecorator__fIAXC",imageWrapper:"DrawGiftItem_imageWrapper__1gN7Z",gradient:"DrawGiftItem_gradient__B7bDT",won:"DrawGiftItem_won___DdUb",image:"DrawGiftItem_image___a5xW",disabled:"DrawGiftItem_disabled__cF5IM",lockIcon:"DrawGiftItem_lockIcon__Pf8kQ",title:"DrawGiftItem_title__RgZoG",description:"DrawGiftItem_description__Ym_FX",button:"DrawGiftItem_button__RSS_E"}},52819:function(e){e.exports={tooltipSource:"DrawGiftTooltipButton_tooltipSource__CKGG9"}},22809:function(e){e.exports={content:"TooltipContent_content__YmHXB",link:"TooltipContent_link__s0NwD",text:"TooltipContent_text___IqhE"}},95321:function(e){e.exports={listWrapper:"DrawGiftList_listWrapper__gMUHL",list:"DrawGiftList_list__JOakH",listItem:"DrawGiftList_listItem__OooPC"}},49917:function(e){e.exports={root:"DrawGiftsBlock_root__Glb6t",beforeContent:"DrawGiftsBlock_beforeContent__ecgdm",backgroundLight:"DrawGiftsBlock_backgroundLight__7f5BW",top:"DrawGiftsBlock_top__Flmr8",content:"DrawGiftsBlock_content__TmWXC"}},29514:function(e){e.exports={subtitle:"DrawGiftsView_subtitle__4jMgW",gray:"DrawGiftsView_gray__2VAaF"}},94029:function(e){e.exports={header:"UnitedDrawGiftsView_header__wkEKu",subtitle:"UnitedDrawGiftsView_subtitle__bbZIp",infoIconContainer:"UnitedDrawGiftsView_infoIconContainer__TIFta",infoIcon:"UnitedDrawGiftsView_infoIcon__6hWGN",giftsRow:"UnitedDrawGiftsView_giftsRow__hcU8j"}},94781:function(e){e.exports={image:"DrawHeaderImageSkeleton_image__cYp8o"}},47098:function(e){e.exports={root:"DrawHeaderView_root__J_y1E",imageWrapper:"DrawHeaderView_imageWrapper__eoDV0",image:"DrawHeaderView_image__GHRnk",title:"DrawHeaderView_title__wzY_h",description:"DrawHeaderView_description__WUBtT typography_headingS__91Uwz",before:"DrawHeaderView_before__Aad9B",after:"DrawHeaderView_after__IaJEH"}},53878:function(e){e.exports={root:"FloatingButton_root__qvuuW",visible:"FloatingButton_visible__vfADZ",button:"FloatingButton_button__VSI9T",buttonStub:"FloatingButton_buttonStub__uqJNT"}},93989:function(e){e.exports={image:"GetTicketFloatingButton_image__gToON"}},24107:function(e){e.exports={root:"DynamicFloatingButton_root___5rFU",visible:"DynamicFloatingButton_visible__jelL0",button:"DynamicFloatingButton_button__Z3kCT",fake:"DynamicFloatingButton_fake__HQlLu"}},32206:function(e){e.exports={root:"HeaderGlowView_root__wD_9C",theme:"HeaderGlowView_theme__Dzpr_",visible:"HeaderGlowView_visible__vKFDU",default:"HeaderGlowView_default__YhY9b",accent:"HeaderGlowView_accent__sCY4r",accentSmall:"HeaderGlowView_accentSmall__DYUU2"}},91019:function(e){e.exports={root:"ImageDecorator_root__uXJrK",left:"ImageDecorator_left__PXu3Z",right:"ImageDecorator_right__sile9",top:"ImageDecorator_top__ySZh_",bottom:"ImageDecorator_bottom__y8Mug"}},39761:function(e){e.exports={root:"LostSharedGiftView_root__t_XUY",content:"LostSharedGiftView_content__ttqoZ",icon:"LostSharedGiftView_icon__0Xyfg",title:"LostSharedGiftView_title__EW2e0",description:"LostSharedGiftView_description__SQywA"}},67365:function(e){e.exports={root:"SharedGiftInfo_root__OcDFY",iconCheckContainer:"SharedGiftInfo_iconCheckContainer__FAUGj",content:"SharedGiftInfo_content__AZU4S",title:"SharedGiftInfo_title__ML9ln",infoIconContainer:"SharedGiftInfo_infoIconContainer__Tw_K2",infoIcon:"SharedGiftInfo_infoIcon__K4e3i"}},33769:function(e){e.exports={logo:"PartnerTBankLogo_logo__yRaxL"}},54162:function(e){e.exports={root:"LecarAdvertising_root__s8lO7",content:"LecarAdvertising_content__sjTrD",logo:"LecarAdvertising_logo__LVbs_",image:"LecarAdvertising_image__pGqIU",glow:"LecarAdvertising_glow__CC8fO",headerImage:"LecarAdvertising_headerImage__WO_To",title:"LecarAdvertising_title__C59vn",description:"LecarAdvertising_description____1fA typography_bodyM__aFlPx",button:"LecarAdvertising_button__fdZls",copyButton:"LecarAdvertising_copyButton__YKJf6",adsInfo:"LecarAdvertising_adsInfo__vWW6_ typography_bodyS__tzsAt"}},43169:function(e){e.exports={root:"LecarHeaderInfo_root__E0mtX",title:"LecarHeaderInfo_title__LgqCU typography_bodyS__tzsAt",accent:"LecarHeaderInfo_accent__Cpm_v"}},3875:function(e){e.exports={root:"EnergyBalance_root__9pnoT",imageContainer:"EnergyBalance_imageContainer__oSPok",image:"EnergyBalance_image__zVKDt",glow:"EnergyBalance_glow__TpcuQ",small:"EnergyBalance_small__EmTqA",battery:"EnergyBalance_battery__EhUO_",visible:"EnergyBalance_visible__nXJZ_",balance:"EnergyBalance_balance__PtWO6",gold:"EnergyBalance_gold__SoXoY"}},76591:function(e){e.exports={root:"EnergyBalanceModal_root__iWJiX",contentWrapper:"EnergyBalanceModal_contentWrapper__p4Ory",container:"EnergyBalanceModal_container__x36wv",streakTitle:"EnergyBalanceModal_streakTitle__DH06G",streakTitleText:"EnergyBalanceModal_streakTitleText__MJ_Z5",streakContainer:"EnergyBalanceModal_streakContainer__DO4ca",button:"EnergyBalanceModal_button__KhuPQ"}},8169:function(e){e.exports={headerContainer:"EnergyBalanceHero_headerContainer__5w006",headerContent:"EnergyBalanceHero_headerContent__n_unP",title:"EnergyBalanceHero_title__TTjX6",description:"EnergyBalanceHero_description__6Qiav",balance:"EnergyBalanceHero_balance__LZPnD",energyStatus:"EnergyBalanceHero_energyStatus__nyApf",energyStatusImage:"EnergyBalanceHero_energyStatusImage__Brsk_",accentGold:"EnergyBalanceHero_accentGold__8CR_r",accentPurple:"EnergyBalanceHero_accentPurple__EgU9E",tooltipButton:"EnergyBalanceHero_tooltipButton__NSg__",tooltipButtonActive:"EnergyBalanceHero_tooltipButtonActive__TUvwx",tooltipContent:"EnergyBalanceHero_tooltipContent__QoTX3"}},56971:function(e){e.exports={image:"EnergyImage_image__iftbj",shadow:"EnergyImage_shadow___QD79"}},8770:function(e){e.exports={root:"EnergyOverlimitModal_root__E5PKk",contentWrapper:"EnergyOverlimitModal_contentWrapper__X_k1X",container:"EnergyOverlimitModal_container__CDMxj",balanceWrapper:"EnergyOverlimitModal_balanceWrapper__9K6V7",balance:"EnergyOverlimitModal_balance__YvEq2",title:"EnergyOverlimitModal_title__zh3Ar",accentGold:"EnergyOverlimitModal_accentGold__WDpeV",titleM:"EnergyOverlimitModal_titleM__UufA3 typography_headingM__6exXK",titleL:"EnergyOverlimitModal_titleL__iiv28 typography_headingL__2902i",energyImage:"EnergyOverlimitModal_energyImage__F8WNu",description:"EnergyOverlimitModal_description__BNRhr",descriptionS:"EnergyOverlimitModal_descriptionS__TsDI_ typography_bodyS__tzsAt",descriptionL:"EnergyOverlimitModal_descriptionL__WpM4N typography_bodyL__d293V",button:"EnergyOverlimitModal_button__1jxYA"}},65925:function(e){e.exports={streak:"EnergyStreakList_streak__cwIfe",item:"EnergyStreakList_item__S7d8e",visible:"EnergyStreakList_visible__ObNOP"}},38527:function(e){e.exports={item:"EnergyStreakItem_item__oCW6H",title:"EnergyStreakItem_title__FeGM5",titleImg:"EnergyStreakItem_titleImg__D6I1m",description:"EnergyStreakItem_description__PWBq3 typography_bodyXXS__wPjsJ",stamp:"EnergyStreakItem_stamp__kLiSG",visible:"EnergyStreakItem_visible__7FYiK",beams:"EnergyStreakItem_beams__f4svC",animationContainer:"EnergyStreakItem_animationContainer__iNLH7",itemWrapper:"EnergyStreakItem_itemWrapper__se2Zr",received:"EnergyStreakItem_received__VGUfr",active:"EnergyStreakItem_active__TqMq3",last:"EnergyStreakItem_last__dNp6w"}},46836:function(e){e.exports={root:"EnergyStreakModal_root__U77Nc",container:"EnergyStreakModal_container__3SN9e",title:"EnergyStreakModal_title__cVDAj",description:"EnergyStreakModal_description__AbTBm",buttonWrapper:"EnergyStreakModal_buttonWrapper__1m_Cu",button:"EnergyStreakModal_button__FQ1tL"}},40615:function(e){e.exports={root:"EnergyWelcomeModal_root__26VIy",container:"EnergyWelcomeModal_container__NEnXN",title:"EnergyWelcomeModal_title__X5rzH",energyImage:"EnergyWelcomeModal_energyImage__hj_8r",description:"EnergyWelcomeModal_description__leMHX",buttonWrapper:"EnergyWelcomeModal_buttonWrapper__wBs9I",button:"EnergyWelcomeModal_button__dA75I"}},75669:function(e){e.exports={root:"EnergyHeaderBeams_root__cgwm6",imageWrapper:"EnergyHeaderBeams_imageWrapper__AiojH",image:"EnergyHeaderBeams_image__aRCxH",visible:"EnergyHeaderBeams_visible___CYdt"}},54812:function(e){e.exports={root:"EnergyHeaderGlow_root__hI_bz",glowContainer:"EnergyHeaderGlow_glowContainer__qLKwl",glow:"EnergyHeaderGlow_glow__XXJm7",gold:"EnergyHeaderGlow_gold__oPzjl"}},64255:function(e){e.exports={root:"EnergyHeaderImage_root__f_i30",image:"EnergyHeaderImage_image__Tt4F7",visible:"EnergyHeaderImage_visible__XDlC_",horizontal:"EnergyHeaderImage_horizontal__BYeuh"}},32158:function(e){e.exports={smallButton:"NotificationBottomSheetContent_smallButton__70kFJ",root:"NotificationBottomSheetContent_root__fWD9L",bigBottomPadding:"NotificationBottomSheetContent_bigBottomPadding__KY_cU",imageContainer:"NotificationBottomSheetContent_imageContainer__W_DWG",image:"NotificationBottomSheetContent_image__WydSy",content:"NotificationBottomSheetContent_content__NWA1e",title:"NotificationBottomSheetContent_title__BEnlZ",description:"NotificationBottomSheetContent_description__sERLP",buttons:"NotificationBottomSheetContent_buttons__VWool",button:"NotificationBottomSheetContent_button__OXT4s",closeButton:"NotificationBottomSheetContent_closeButton__6o_H0"}},28927:function(e){e.exports={loader:"PdfViewer_loader__nf8C1",root:"PdfViewer_root__CYuba",pdfPage:"PdfViewer_pdfPage__HvHLL",error:"PdfViewer_error__5MKys"}},33398:function(e){e.exports={root:"RTBBanner_root__41So4"}},26492:function(e){e.exports={root:"Scrollable_root__9zb5U",bodyWrapper:"Scrollable_bodyWrapper__npAPH",topFix:"Scrollable_topFix__vLppB",bottomFix:"Scrollable_bottomFix___jCUC",body:"Scrollable_body__6wVLW",hasScroll:"Scrollable_hasScroll__vroIE",overlay:"Scrollable_overlay___iA2F",mounted:"Scrollable_mounted__TsDT_",visible:"Scrollable_visible__cT0Lj",top:"Scrollable_top__0_AEa",bottom:"Scrollable_bottom__Tt8eW"}},52935:function(e){e.exports={root:"SpritePlayer_root__d3Y_m",frame:"SpritePlayer_frame__FNvtC",animated:"SpritePlayer_animated__7yRjD",sprite:"SpritePlayer_sprite__7IXz9"}},45469:function(e){e.exports={root:"StatusNotificationView_root__GLaLc",inner:"StatusNotificationView_inner__yIhRW",body:"StatusNotificationView_body__vitHX",hasText:"StatusNotificationView_hasText__qKRHA",visible:"StatusNotificationView_visible__kwWAc",transitioned:"StatusNotificationView_transitioned__JDrdC",icon:"StatusNotificationView_icon__GSJQx",text:"StatusNotificationView_text__rbBdP",nextBodyHolder:"StatusNotificationView_nextBodyHolder__IAHGL"}},90503:function(e){e.exports={root:"SwitchableContainer_root__51KS1",swiper:"SwitchableContainer_swiper__W5EYQ",finished:"SwitchableContainer_finished__n3eb7",invisibleBox:"SwitchableContainer_invisibleBox__0MUfr",next:"SwitchableContainer_next__degv3"}},12821:function(e){e.exports={root:"TileTooltip_root__08E7B",emoji:"TileTooltip_emoji__1UQWb"}},62641:function(e){e.exports={overlay:"EnergyCurrentGiftCard_overlay__wpDrd",hidingCard:"EnergyCurrentGiftCard_hidingCard__yU3EH",energyImage:"EnergyCurrentGiftCard_energyImage__ANP7K",card:"EnergyCurrentGiftCard_card__hHeCt"}},56112:function(e){e.exports={neon:"GiftCardView_neon__yIB7i",neonSmall:"GiftCardView_neonSmall__c_Vot",neonWhiteSmall:"GiftCardView_neonWhiteSmall__XTZPc",floatingToDownRight:"GiftCardView_floatingToDownRight__UzMXs",floatToDownRight:"GiftCardView_floatToDownRight__FkbJ0",floatingToDownLeft:"GiftCardView_floatingToDownLeft__Uwz2S",floatToDownLeft:"GiftCardView_floatToDownLeft__KOWc_",card:"GiftCardView_card__WbhzC",mainButton:"GiftCardView_mainButton__pBqiG",highlighted:"GiftCardView_highlighted___dOSl GiftCardView_neon__yIB7i",content:"GiftCardView_content__An8Th",image:"GiftCardView_image__he7QQ",name:"GiftCardView_name___BbUU",nameWrapper:"GiftCardView_nameWrapper__HtU7C",subtitle:"GiftCardView_subtitle__c6zUS",description:"GiftCardView_description__fnFfv",buttons:"GiftCardView_buttons__FDXoy",detailsButton:"GiftCardView_detailsButton__qhlk3",additionalInfo:"GiftCardView_additionalInfo__WAnpo",expirationHint:"GiftCardView_expirationHint__cn5Rd",expirationIcon:"GiftCardView_expirationIcon__lbltg",shining:"GiftCardView_shining__tPyKT",shine:"GiftCardView_shine__LPuoG",root:"GiftCardView_root__3izlA",pending:"GiftCardView_pending__Y8XWk",expired:"GiftCardView_expired__Oes1D"}},55142:function(e){e.exports={wrapper:"GiftCardWithTooltip_wrapper__Hx_Ki",tooltipButton:"GiftCardWithTooltip_tooltipButton__2xw0x"}},50950:function(e){e.exports={neon:"ReceivableCurrentGiftCard_neon__N_i3D",neonSmall:"ReceivableCurrentGiftCard_neonSmall__8abRX",neonWhiteSmall:"ReceivableCurrentGiftCard_neonWhiteSmall__1jfyG",floatingToDownRight:"ReceivableCurrentGiftCard_floatingToDownRight__DnxP7",floatToDownRight:"ReceivableCurrentGiftCard_floatToDownRight__HMLXW",floatingToDownLeft:"ReceivableCurrentGiftCard_floatingToDownLeft__0gTDM",floatToDownLeft:"ReceivableCurrentGiftCard_floatToDownLeft__g1PWw",mainButton:"ReceivableCurrentGiftCard_mainButton__t8eb0 ReceivableCurrentGiftCard_neonSmall__8abRX",mainWhiteButton:"ReceivableCurrentGiftCard_mainWhiteButton__sXs5Q ReceivableCurrentGiftCard_neonWhiteSmall__1jfyG"}},92674:function(e){e.exports={card:"UpcomingGiftCard_card__sWbnu",inactiveImage:"UpcomingGiftCard_inactiveImage__c_iKL"}},5688:function(e){e.exports={root:"AccentDot_root__AQoUt",pulse:"AccentDot_pulse__UVKCO"}},32010:function(e){e.exports={root:"AnimatedCounter_root__3wXrR",fractionalPart:"AnimatedCounter_fractionalPart__iEM4b",separator:"AnimatedCounter_separator__dHuzx",visible:"AnimatedCounter_visible__Ni4yz"}},99785:function(e){e.exports={root:"AnimatedDigit_root__9whZp",visible:"AnimatedDigit_visible__6cCAp",digit:"AnimatedDigit_digit__VHSat",invisible:"AnimatedDigit_invisible__g50Ce",absolute:"AnimatedDigit_absolute__0jylc",topAnimation:"AnimatedDigit_topAnimation__q3uvg",topAnimationRestart:"AnimatedDigit_topAnimationRestart__N_4dA",bottomAnimation:"AnimatedDigit_bottomAnimation__88DDB",bottomAnimationRestart:"AnimatedDigit_bottomAnimationRestart__EJj_V",toTop:"AnimatedDigit_toTop__ToAqM",toTopRestart:"AnimatedDigit_toTopRestart__FiIyJ",toBottom:"AnimatedDigit_toBottom__MgKs4",toBottomRestart:"AnimatedDigit_toBottomRestart__Q2g_e"}},4238:function(e){e.exports={root:"AnimatedDigitV2_root__lEtp_",visible:"AnimatedDigitV2_visible__zdaCW",digits:"AnimatedDigitV2_digits__d1vvl",digit:"AnimatedDigitV2_digit__wKhs3",invisible:"AnimatedDigitV2_invisible__o6U22",absolute:"AnimatedDigitV2_absolute__xQ0x_"}},57154:function(e){e.exports={box:"AspectRatioBlock_box__bgGoS",children:"AspectRatioBlock_children__4wYoE"}},53146:function(e){e.exports={root:"BottomSheet_root__xE8E_",openWithFade:"BottomSheet_openWithFade__3mNM2",visible:"BottomSheet_visible__YL4t9",space:"BottomSheet_space__MKBrh",slide:"BottomSheet_slide__LEDL_",slideContentWrapper:"BottomSheet_slideContentWrapper__6v_3K",slideContent:"BottomSheet_slideContent__MZ41V",overlay:"BottomSheet_overlay__yzNKT",position_absolute:"BottomSheet_position_absolute__P9nw8",extraOverlay:"BottomSheet_extraOverlay__WRGz1",animated:"BottomSheet_animated__CB6XW",preventInteraction:"BottomSheet_preventInteraction__raoq0",content:"BottomSheet_content__LxYbL",maxHeight:"BottomSheet_maxHeight__0ghPt"}},78117:function(e){e.exports={root:"Button_root__X_DlB",disabled:"Button_disabled__ZUApo",loader:"Button_loader__cT4Zo",loading:"Button_loading__v4jMJ"}},74619:function(e){e.exports={root:"ButtonLegacy_root__7iAlr",disabled:"ButtonLegacy_disabled__YV0Eg"}},28758:function(e){e.exports={smallButton:"CloseButton_smallButton__O_iE6",root:"CloseButton_root__PcQ_N CloseButton_smallButton__O_iE6"}},79021:function(e){e.exports={container:"Container_container__NX3GC"}},31614:function(e){e.exports={counter:"FlipCounter_counter__YuhiZ",digit:"FlipCounter_digit__r7G_C"}},13567:function(e){e.exports={digit:"FlipCounterDigit_digit__rjCmk",animated:"FlipCounterDigit_animated__Wy2DB",shadowBottom:"FlipCounterDigit_shadowBottom__uLnS4",digitOverlay:"FlipCounterDigit_digitOverlay__bvAfc",flipTop:"FlipCounterDigit_flipTop__XvfmJ",flipBottom:"FlipCounterDigit_flipBottom__XmRRL"}},59463:function(e){e.exports={overlay:"Popup_overlay__wDSj_",position_absolute:"Popup_position_absolute__Zo1gj",extraOverlay:"Popup_extraOverlay__di7P_",root:"Popup_root__v_EuI",animated:"Popup_animated__6upMF",visible:"Popup_visible__7XK23"}},99021:function(e){e.exports={root:"PressScale_root__0kLea",active:"PressScale_active__AziJe",disabled:"PressScale_disabled__lWHcF"}},53127:function(e){e.exports={root:"SkeletonItem_root__yYQfP"}},37726:function(e){e.exports={root:"Tabs_root__BHiLr"}},99805:function(e){e.exports={root:"TabsNav_root__gpueq",inactive:"TabsNav_inactive__kywjq",selector:"TabsNav_selector__YDji7",item:"TabsNav_item__MRg7E",active:"TabsNav_active__qguAo",title:"TabsNav_title__g9iXS"}},17340:function(e){e.exports={root:"Toggle_root__QMu1_",enabled:"Toggle_enabled__RzUZb"}},36799:function(e){e.exports={tooltip:"Tooltip_tooltip__OpLPl",light:"Tooltip_light__I5sRk",dark:"Tooltip_dark__BLhlL",fake:"Tooltip_fake__YFhR9",arrow:"Tooltip_arrow__s_Tk6",source:"Tooltip_source__VPHMC",arrowOnTop:"Tooltip_arrowOnTop__9rKei",visible:"Tooltip_visible__jaQ4A"}},91825:function(e){e.exports={root:"AuthPageUser_root__g3OPD",iframe:"AuthPageUser_iframe__oN7Nm",label:"AuthPageUser_label__9xGFi",input:"AuthPageUser_input__hojW_"}},59072:function(e){e.exports={smallButton:"DemoPage_smallButton__XTe4j",root:"DemoPage_root__a2owF",container:"DemoPage_container__A2AYG",hidden:"DemoPage_hidden__srJjI",row:"DemoPage_row__X_FOY",logo:"DemoPage_logo__m1kZ1",buttons:"DemoPage_buttons__a2H7y",button:"DemoPage_button__tlyZY DemoPage_smallButton__XTe4j",smallResolution:"DemoPage_smallResolution__PYdTt",highResolution:"DemoPage_highResolution__30_GT",rulesButtonText:"DemoPage_rulesButtonText__oOuKS",gameWrapper:"DemoPage_gameWrapper__uNWkO"}},7239:function(e){e.exports={root:"DemoPageModal_root__V8Woi",imageWrapper:"DemoPageModal_imageWrapper__gyrQh",image:"DemoPageModal_image__I97sO",title:"DemoPageModal_title__seSxc",description:"DemoPageModal_description__8Zb6o"}},85291:function(e){e.exports={buttons:"DemoResultModal_buttons__0pyN2",button:"DemoResultModal_button__QmDNd"}},72450:function(e){e.exports={buttons:"DemoWelcomeModal_buttons__2_0Vf",button:"DemoWelcomeModal_button__Nb8OY"}},7920:function(e){e.exports={root:"DemoPageTest_root__XdFgb",iframe:"DemoPageTest_iframe__MDBnf"}},37105:function(e){e.exports={root:"GamePage_root__Colte",container:"GamePage_container__ROJXm",noscript:"GamePage_noscript__uT1XW",modal:"GamePage_modal__kkNmo",errorInfo:"GamePage_errorInfo__IuMxz"}},80558:function(e){e.exports={block:"About_block__ttLl8",items:"About_items__t4Bye",item:"About_item__ke2Ph",itemIconWrapper:"About_itemIconWrapper__TPwbY",itemIconShadow:"About_itemIconShadow__8fxgi",itemIcon:"About_itemIcon__XXoBW",itemTitle:"About_itemTitle__Z4aKN",itemDescription:"About_itemDescription__6bC7z"}},77514:function(e){e.exports={root:"Block_root__ycJEp",content:"Block_content__ZU3ud"}},72165:function(e){e.exports={card:"Bonus_card__C9W5Q",content:"Bonus_content__bpeSV",title:"Bonus_title__Vqjwm",text:"Bonus_text__h6O3e",button:"Bonus_button__AT39l",mobileImage:"Bonus_mobileImage__B_p1D",floatImage:"Bonus_floatImage__gaNeV",mobileImage1:"Bonus_mobileImage1__SiyWd",mobileImage2:"Bonus_mobileImage2__39c4j",mobileImage3:"Bonus_mobileImage3__W_tdk",mobileImage4:"Bonus_mobileImage4__gHFST",image1:"Bonus_image1__BICLS",image2:"Bonus_image2__6U8rm",image3:"Bonus_image3__tJb7N",image4:"Bonus_image4__Q__Lw",image5:"Bonus_image5__ixwMu",image6:"Bonus_image6__IqUyV"}},39875:function(e){e.exports={block:"Card_block__IRZE_",textContent:"Card_textContent__g9tGA",description:"Card_description__rXSHk",iframeWrapper:"Card_iframeWrapper__9w5Hi",iframe:"Card_iframe__Ec70d"}},62701:function(e){e.exports={root:"CopyButton_root__h6yDl",copied:"CopyButton_copied__YPxgD",title:"CopyButton_title__LOks1",copiedTitle:"CopyButton_copiedTitle__HQ9VD",copyIcon:"CopyButton_copyIcon__c1lij"}},34348:function(e){e.exports={root:"Demo_root__QZhvT",container:"Demo_container__3g_Oy"}},10177:function(e){e.exports={root:"LandingDemoGame_root__7GXTg",mobileLarge:"LandingDemoGame_mobileLarge__4aE7A",desktopLarge:"LandingDemoGame_desktopLarge__PB7ZA",container:"LandingDemoGame_container__scvub"}},83094:function(e){e.exports={scrollable:"ResultModal_scrollable__xt0P2",tabTitle:"ResultModal_tabTitle__UA5_U",title:"ResultModal_title__1Iusr",tabs:"ResultModal_tabs__fCCfP"}},53779:function(e){e.exports={copyButton:"ReceivedGiftsTab_copyButton__T_wxw",description:"ReceivedGiftsTab_description__vR_LE",goToCardButton:"ReceivedGiftsTab_goToCardButton__0zOhN"}},15038:function(e){e.exports={root:"TabCard_root__eA9nW",image:"TabCard_image__w0L44",title:"TabCard_title__m9bxr"}},1629:function(e){e.exports={description:"UpcomingGiftsCardWithoutBonus_description__PwXsq",buttons:"UpcomingGiftsCardWithoutBonus_buttons__nxi7f",clientButton:"UpcomingGiftsCardWithoutBonus_clientButton__qTva9"}},36890:function(e){e.exports={description:"UpcomingGiftsTab_description__8uHgz"}},58705:function(e){e.exports={root:"WelcomeModal_root__UkvBZ"}},91185:function(e){e.exports={card:"DrawResult_card__MB_Ww",content:"DrawResult_content__6EQ8r",title:"DrawResult_title__dO_ZL",description:"DrawResult_description__kGlgk",buttons:"DrawResult_buttons__2M6KB",button:"DrawResult_button__6B4dN",floatImage:"DrawResult_floatImage__CNwo1",sparkles1:"DrawResult_sparkles1__quYEM",sparkles2:"DrawResult_sparkles2__0ffQU",group1:"DrawResult_group1___COC6",group2:"DrawResult_group2__8Y5rr",lotteryLeft:"DrawResult_lotteryLeft__dtbB6",lotteryRight:"DrawResult_lotteryRight__w8PXM"}},82070:function(e){e.exports={root:"Footer_root__j9SlK",block:"Footer_block__jSRqB",content:"Footer_content__jPuqa",linkItem:"Footer_linkItem__UX_wN",link:"Footer_link__3PhVs",floatImage:"Footer_floatImage__uva6P",mobileImage1:"Footer_mobileImage1___LRnR",image1:"Footer_image1__8_lOs",image2:"Footer_image2__QUVB2",disclaimer:"Footer_disclaimer__P7Got"}},84714:function(e){e.exports={cards:"HowToFind_cards__qlFIB",card:"HowToFind_card__mwV8J",appCard:"HowToFind_appCard__TiscJ",cardTitle:"HowToFind_cardTitle__0bgvx",cardDescription:"HowToFind_cardDescription__6YrsA",phoneImage:"HowToFind_phoneImage__S7R4X",goToAppButton:"HowToFind_goToAppButton__f9N_R",instruction:"HowToFind_instruction__8Pp_H",link:"HowToFind_link__4AjA8",card1Content:"HowToFind_card1Content__YAMVz",qrCard:"HowToFind_qrCard__1ZUL6",qrCodeWrapper:"HowToFind_qrCodeWrapper__KUDsN",qrCodeContainer:"HowToFind_qrCodeContainer__dzo_f",qrCode:"HowToFind_qrCode__Lhanq"}},43714:function(e){e.exports={block:"Intro_block__2QxnS",container:"Intro_container__fTyk7",content:"Intro_content__TJAPx",mainTitle:"Intro_mainTitle__6Nfli",description:"Intro_description___FJ9M",button:"Intro_button__CR7P5",giftsContainer:"Intro_giftsContainer__oiQqh",giftsContent:"Intro_giftsContent__gsWzT",giftsImage:"Intro_giftsImage__o_oSx",counter:"Intro_counter__dphRc",giftsDescription:"Intro_giftsDescription__2bN74",lettersTopContainer:"Intro_lettersTopContainer__mBXEZ",lettersBottomContainer:"Intro_lettersBottomContainer___VCjT",lettersStatic:"Intro_lettersStatic__g1p_N",letter:"Intro_letter__ILn7_",letterGroup1:"Intro_letterGroup1__a4sK2",letter1:"Intro_letter1__1ptL1",floatLeftTop:"Intro_floatLeftTop__zZczf",shape1:"Intro_shape1__Lar3p",floatRightTop:"Intro_floatRightTop__UDRD9",shape2:"Intro_shape2__J26o8",floatLeftBottom:"Intro_floatLeftBottom__wnkqT",letter2:"Intro_letter2__CZer3",shape3:"Intro_shape3___Xx7X",letter3:"Intro_letter3__qDD0v",letter4:"Intro_letter4__9r69a",letter5:"Intro_letter5__poCtg",floatRightBottom:"Intro_floatRightBottom___WsrI",shape4:"Intro_shape4__FC1A4",letter6:"Intro_letter6__AP_va",letter7:"Intro_letter7__4jSxZ",shape5:"Intro_shape5__5HSj4",letter8:"Intro_letter8__X9BNT",shape6:"Intro_shape6__P4YMP"}},62065:function(e){e.exports={root:"Button_root__qcvgb"}},72155:function(e){e.exports={block:"Header_block__oIBKj",logoContainer:"Header_logoContainer__t7Nye",logo:"Header_logo__r_n4z",companyLogo:"Header_companyLogo__a0920"}},71771:function(e){e.exports={root:"LandingModal_root__OLiHK",compact:"LandingModal_compact__z65WC",scrollable:"LandingModal_scrollable__9Yycv",withExtraTopPadding:"LandingModal_withExtraTopPadding__fDkYy",title:"LandingModal_title__ZcYE_"}},87715:function(e){e.exports={button:"LandingPageButton_button__Imycr"}},20439:function(e){e.exports={body:"LandingPageContainer_body__rSoql",root:"LandingPageContainer_root__MZ41C"}},83782:function(e){e.exports={root:"Title_root__1IMGp"}},33340:function(e){e.exports={root:"Auth_root__dAY6o",content:"Auth_content__R0Za3",conditions:"Auth_conditions__7Lete",link:"Auth_link__tqE3A"}},46539:function(e){e.exports={root:"AuthError_root__yzMKc",description:"AuthError_description__kofyx",errorInfo:"AuthError_errorInfo__gFeug",button:"AuthError_button__7UeBg"}},51815:function(e){e.exports={root:"AuthIframe_root__rMySk",subtitle:"AuthIframe_subtitle__kSOBj",iframe:"AuthIframe_iframe__mooIi",loaderWrapper:"AuthIframe_loaderWrapper__UfqNe",loader:"AuthIframe_loader__Yl_bb"}},21678:function(e){e.exports={text:"AuthSuccess_text__cwfT3",goToAppButton:"AuthSuccess_goToAppButton__xZk_h",qrCode:"AuthSuccess_qrCode__GfdQa",instruction:"AuthSuccess_instruction__14wUe",link:"AuthSuccess_link__Kccjr"}},94024:function(e){e.exports={root:"Title_root__3TDbo"}},42696:function(e){e.exports={block:"Intro_block__bTFdb",content:"Intro_content__IP2UX",title:"Intro_title__yipzw",description:"Intro_description__QDlus",floatImage:"Intro_floatImage__QSK_O",topMobileImage:"Intro_topMobileImage__SpA2M",bottomMobileImageWrapper:"Intro_bottomMobileImageWrapper__coKOS",bottomMobileImage:"Intro_bottomMobileImage__43Frd",leftGroup:"Intro_leftGroup__zIarb",rightGroup:"Intro_rightGroup__peS4p",leftO:"Intro_leftO__5aKih",leftF:"Intro_leftF__Otdl4",leftK:"Intro_leftK__HdeRy",floatRightBottom:"Intro_floatRightBottom__2duum",leftN:"Intro_leftN__EjNSG",floatRightTop:"Intro_floatRightTop__NY_mi",leftT:"Intro_leftT__GooJj",shape4:"Intro_shape4__orFjL",floatLeftBottom:"Intro_floatLeftBottom__91ZJQ",shape5:"Intro_shape5__Xve1h",shape6:"Intro_shape6__zUWcx",rightT:"Intro_rightT__HKqj_",rightI:"Intro_rightI__UB6r5",rightF:"Intro_rightF__TtFTw",floatLeftTop:"Intro_floatLeftTop__3Jxbl",rightN:"Intro_rightN__mp62l",rightK:"Intro_rightK___rb3y",shape1:"Intro_shape1__IaPka",shape3:"Intro_shape3__chooF",shadow:"Intro_shadow__D5vnV",image:"Intro_image__N9FMF",letter:"Intro_letter__Jogmw",shape:"Intro_shape__Gfg0v",leftDoubleStars:"Intro_leftDoubleStars__KvBgv",leftStar:"Intro_leftStar__1uh9z",rightDoubleStars:"Intro_rightDoubleStars__Yi8Du",rightStar:"Intro_rightStar__ZolSv"}},13621:function(e){e.exports={root:"DrawGiftItemTestPage_root__BXQZk",input:"DrawGiftItemTestPage_input__tm16i",giftWrapper:"DrawGiftItemTestPage_giftWrapper__QoRDG"}},93620:function(e){e.exports={cardHint:"PreviewCurrentGiftCardPage_cardHint__e1BuU",group:"PreviewCurrentGiftCardPage_group__gtzpP"}},15348:function(e){e.exports={root:"PreviewDrawGiftPage_root__E_WeI",giftsList:"PreviewDrawGiftPage_giftsList__oGiD7",gift:"PreviewDrawGiftPage_gift__VqVUz",giftTitle:"PreviewDrawGiftPage_giftTitle__rDKMU",sharedGift:"PreviewDrawGiftPage_sharedGift__f_4ZT"}},46531:function(e){e.exports={cardHint:"PreviewUpcomingGiftCardPage_cardHint__MdCJg",group:"PreviewUpcomingGiftCardPage_group__7QhsP"}},79190:function(){},24485:function(){},24654:function(){},14601:function(){},32767:function(){},28251:function(){},57677:function(){},87324:function(){}},function(e){e.O(0,[824,367,644,267,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); //# sourceMappingURL=index-575fafe6f3b212c2.js.map