PageSourceSearch

https://tipgame.com/static/TopRanking.4d5aa21d.chunk.js

js tipgame.com collected 2026-10-02 01:47:42 UTC 11,388 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktipgame=self.webpackChunktipgame||[]).push([[766],{93978:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var i,o=n(67294),r=n(26793),a=n(10005),l=n(94184),s=n.n(l),d=n(97168),c=n(30083),u=n(82285),f=n(5977),m=n(49089),v=n(51767),p=n.n(v),h=n(35769),k=n(71177),g=n(65573),E=n(93352),y=n(35061),O=n(7058),b=n(43979),A=n(83394),C=n(24363),L=n(49613),M=n(92297),_=n(6537),N=n(31745),T=n(11310),w=function(e){var t=e.width,n=void 0===t?227:t,i=e.height,r=void 0===i?223:i,a=e.className,l=void 0===a?"":a;return o.createElement("svg",{className:l,width:n,height:r,viewBox:"0 0 227 223",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M186.486 50.3992C165.686 15.5992 124.686 -4.30079 82.586 3.79921C28.786 14.0992 -6.51395 66.0992 3.78605 119.899C8.88605 146.399 24.086 168.399 44.586 182.699",stroke:"#6A6A73",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"9 9"}),o.createElement("path",{d:"M224.685 61.5V72.9C218.985 72.9 214.385 77.5 214.385 83.2C214.385 88.9 218.985 93.5 224.685 93.5V104.9H55.2852V61.5H224.685Z",fill:"#2D2D36",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinejoin:"round"}),o.createElement("path",{d:"M86.3859 93.5004C92.0745 93.5004 96.6859 88.8889 96.6859 83.2004C96.6859 77.5119 92.0745 72.9004 86.3859 72.9004C80.6974 72.9004 76.0859 77.5119 76.0859 83.2004C76.0859 88.8889 80.6974 93.5004 86.3859 93.5004Z",fill:"#3C3C42",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10"}),o.createElement("path",{d:"M113.984 83.1992H196.484",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M224.685 119.799V131.199C218.985 131.199 214.385 135.799 214.385 141.499C214.385 147.199 218.985 151.799 224.685 151.799V163.199H55.2852V119.899H224.685V119.799Z",fill:"#2D2D36",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinejoin:"round"}),o.createElement("path",{d:"M86.3859 151.799C92.0745 151.799 96.6859 147.188 96.6859 141.499C96.6859 135.811 92.0745 131.199 86.3859 131.199C80.6974 131.199 76.0859 135.811 76.0859 141.499C76.0859 147.188 80.6974 151.799 86.3859 151.799Z",fill:"#3C3C42",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10"}),o.createElement("path",{d:"M113.984 141.498H196.484",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M224.685 178.1V189.5C218.985 189.5 214.385 194.1 214.385 199.8C214.385 205.5 218.985 210.1 224.685 210.1V221.5H55.2852V178.2H224.685V178.1Z",fill:"#2D2D36",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinejoin:"round"}),o.createElement("path",{d:"M86.3859 210C92.0745 210 96.6859 205.389 96.6859 199.7C96.6859 194.012 92.0745 189.4 86.3859 189.4C80.6974 189.4 76.0859 194.012 76.0859 199.7C76.0859 205.389 80.6974 210 86.3859 210Z",fill:"#3C3C42",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10"}),o.createElement("path",{d:"M113.984 199.699H196.484",stroke:"#6A6A73",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}))},x=n(32395),I=n(15485),S=n(49529),P=n(74388),V=n(88092),D=n(57004),R=n(20931),W=function(){return W=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)},H="wss://api.tipgame.com/rest/api/",B="purchase_method",Z=["max_payout","bp_balance","max_odd",B],j=((i={}).bp_balance=function(e,t){var n,i;return(null!==(n=t.offer.balance)&&void 0!==n?n:NaN)-(null!==(i=e.offer.balance)&&void 0!==i?i:NaN)||t.offer.maxPayout-e.offer.maxPayout||t.offer.maxEffOdds-e.offer.maxEffOdds},i.max_payout=function(e,t){return t.offer.maxPayout-e.offer.maxPayout||t.offer.maxEffOdds-e.offer.maxEffOdds},i.max_odd=function(e,t){return t.offer.maxEffOdds-e.offer.maxEffOdds},i.purchase_method=function(e,t){return t.offer.purchaseMethod>e.offer.purchaseMethod?1:t.offer.purchaseMethod<e.offer.purchaseMethod?-1:0},i);const q=function(){var e,t,n,i,l,v=(0,o.useState)(B),q=v[0],G=v[1],F=(0,C.JT)({bs:N.qH,betslip:A.LE,templateInfo:k.$n,isAuthenticated:g.Gq,topRankingData:k.iI,maxOdd:A.Xi,banners:function(e){return(0,_.M3)(e)},cookieAccepted:g.iN,isMobileTopRankingHidden:I.ae,providers:O.LR}),z=F.bs,$=F.betslip,J=F.templateInfo,X=J.requestId,Y=J.providerId,K=F.isAuthenticated,U=F.providers,Q=F.topRankingData,ee=Q.list,te=Q.loading,ne=F.maxOdd,ie=F.banners,oe=F.cookieAccepted,re=F.isMobileTopRankingHidden,ae=(0,R.y)(),le=(0,C.tI)(),se=(0,C.Ce)(),de=(0,o.useRef)(),ce=(0,o.useState)(5),ue=ce[0],fe=ce[1],me=(0,r.$)("bpList").t,ve=(0,f.TH)(),pe=(0,y.TL)(),he=(0,C.Lq)(),ke=(0,C.tI)(),ge=(0,C.OJ)(),Ee=(null===(n=ee.rankingList)||void 0===n?void 0:n.length)||!K&&(null===(i=ee.excludedOffers)||void 0===i?void 0:i.length);(0,o.useEffect)((function(){var e,t,n,i,o,r;if(ee.rankingList){var a=(null===(e=ee.rankingList)||void 0===e?void 0:e.length)?"view_cart":"empty_ranking",l=null===(n=null===(t=$.to)||void 0===t?void 0:t.evs)||void 0===n?void 0:n.map((function(e,t){var n,i,o,r,a,l,s,d,c,u,f,m,v=t+1;return{item_name:"".concat(null===(n=e.c1)||void 0===n?void 0:n.nm," vs ").concat(null===(i=e.c2)||void 0===i?void 0:i.nm," [").concat((null===(o=e.sl)||void 0===o?void 0:o.sel)?null===(a=null===(r=e.sl)||void 0===r?void 0:r.sel[v])||void 0===a?void 0:a.na:""," (").concat((null===(l=e.sl)||void 0===l?void 0:l.sel)?null===(c=null===(d=null===(s=e.sl)||void 0===s?void 0:s.sel[v])||void 0===d?void 0:d.oc)||void 0===c?void 0:c.na:"",") ]"),item_id:"".concat(e.id," : ").concat((null===(u=e.sl)||void 0===u?void 0:u.sel)?null===(m=null===(f=e.sl)||void 0===f?void 0:f.sel[v])||void 0===m?void 0:m.key:""),item_brand:null==e?void 0:e.sp,item_category:null==e?void 0:e.cn,item_category2:null==e?void 0:e.tn,index:v}})),s=(null===(i=ee.rankingList)||void 0===i?void 0:i.length)?{currency:null===(o=null==$?void 0:$.to)||void 0===o?void 0:o.cu,value:null===(r=null==$?void 0:$.to)||void 0===r?void 0:r.bw,items:l}:{};S.T||(m.ZP.event(a,s),p().trackCustom(a,s))}}),[ee.rankingList]),(0,o.useEffect)((function(){a.Z.language&&pe((0,_.TE)({language:a.Z.language,pageName:"ANY_PAGE",platformType:ke,slideshowType:_.NX,teaserStatus:K?"LOGGED_IN":"ANONYMOUS"}))}),[a.Z.language,he,K]);var ye=function(e,t){var n;K?pe((0,k.Cw)({providerId:t,template:e})):oe?pe((0,M.h7)({modalName:M.ee.LOGIN_MODAL,modalProps:{withRedirectToHome:!1,isOpen:!0,onClose:function(){return pe((0,M.Mr)({key:M.ee.LOGIN_MODAL}))}}})):le===_.VT.CROSS_PLATFORM_MOBILE?null===(n=window.ReactNativeWebView)||void 0===n||n.postMessage(JSON.stringify({code:h.pF}
1)):pe((0,x.l6)({isCookiesConsentHintEnabled:!0}))};if((0,o.useEffect)((function(){return pe((0,A.Sm)()).then(d.SI).then((function(e){pe((0,A.zp)({desktop:se,url:"".concat(H).concat(T.M$,"betSlip"),langIso:a.Z.language,betSlipId:e.bs,eventsType:"betSlip"}))})),function(){pe((0,A.zP)()),pe({type:"SOCKET_CLOSE",eventsType:"betSlip"})}}),[]),(0,o.useEffect)((function(){var e,t=!1,n=function(){document.hidden?e=setTimeout((function(){pe({type:"SOCKET_CLOSE",eventsType:"betSlip"}),t=!0}),1e3*Number("30")):t?(pe((0,A.zp)({desktop:se,url:"".concat(H).concat(T.M$,"betSlip"),langIso:a.Z.language,betSlipId:z,eventsType:"betSlip"})),t=!1):clearTimeout(e)};return void 0===document.addEventListener?console.log("This page requires a browser, that supports the Page Visibility API."):document.addEventListener("visibilitychange",n,!1),function(){clearTimeout(e),document.removeEventListener("visibilitychange",n,!1)}}),[]),(0,o.useEffect)((function(){ne&&!de.current&&pe((0,k.B7)({maxOdd:ne})).then(d.SI).then((function(e){e.requestId&&(de.current=e.requestId,pe((0,k.DO)(e.requestId)))}))}),[ne]),(0,o.useEffect)((function(){return K&&de.current&&pe((0,k.DO)(de.current)),pe((0,O.On)(!0)),function(){pe((0,k.G)())}}),[K]),(0,o.useEffect)((function(){return function(){pe((0,k.iV)()),pe((0,k.G)())}}),[]),(0,o.useEffect)((function(){var e,t,n;if("fulfilled"===te&&Array.isArray(ee.rankingList)&&(null===(e=null==ve?void 0:ve.state)||void 0===e?void 0:e.isDeactivationProcess)){var i=((null==ve?void 0:ve.state)||{}).activePlaySessionProviderId;pe((0,I.WR)(!0)),ye("play-session-deactivation",i)}else if("fulfilled"===te&&Array.isArray(ee.rankingList)&&(null===(t=null==ve?void 0:ve.state)||void 0===t?void 0:t.isFastPlay)){var o=(null==ve?void 0:ve.state)||{},r=o.wagerValue,a=void 0===r?0:r;i=o.activePlaySessionProviderId,window.history.replaceState({},document.title);var l=ee.rankingList.filter((function(e){return!!e.offer.balanceCurrency&&e.offer.balance&&e.offer.balance>=a})).sort(j.max_payout)[0];if(!l)return void pe((0,M.h7)({modalName:M.ee.FAST_PLAY_NOT_AVAILABLE_MODAL,modalProps:{closeButtonLabel:me("close"),cancelVariant:"contained",fullWidth:!0,hugeButton:!0,cancelColor:"primary",columnDialog:!1}}));if(l&&!Y){pe((0,I.WR)(!0));var s=i&&!isNaN(i)?i:null===(n=l.offer)||void 0===n?void 0:n.providerId;ye("purchase-ticket",s)}}}),[te]),"pending"===te)return o.createElement(b.lr,null);if("fulfilled"===te&&Array.isArray(ee.rankingList)){var Oe=ee.rankingList.slice().sort(j[q]).slice(0,ue);return K||null===(l=ee.excludedOffers)||void 0===l||l.map((function(e){var t,n=null===(t=U.responseObject)||void 0===t?void 0:t.filter((function(t){return t.id===e.providerId}));n&&Oe.push({topIndex:NaN,offer:W(W({},e),n[0])})})),o.createElement(o.Fragment,null,!se&&re&&(!X||!Y)&&o.createElement(b.lr,null),o.createElement("div",{className:s()({"flex-column flex-scroll":se}),style:X&&Y?{overflow:"hidden",height:ge?"".concat(ge-52,"px"):"calc(100vh - 52px)"}:void 0},o.createElement(E.az,{className:s()((e={},e[ae.hide]=!se&&re,e))}),o.createElement("div",{style:{overflowX:"hidden"},className:s()("flex-scroll",(t={},t[ae.hide]=!se&&re,t))},!se&&o.createElement(D.t,null),o.createElement(V.h,{sortOptions:Z,selectedOption:q,maxOdd:ne||0,handleChange:function(e){G(e),fe(5)}}),Ee?o.createElement(b.aV,{redirectToSdk:ye,selectedProviderId:Y,items:Oe,renderItem:P.p,className:se?ae.listWrapper:void 0},ue<ee.rankingList.length?o.createElement(b.zx,{className:ae.showMoreButton,fullWidth:!0,onClick:function(){fe((function(e){return e+5}))}},o.createElement("span",{className:ae.showMoreButtonIcon},o.createElement("i",{className:"fas fa-plus"})),me("show_more")):null):o.createElement("div",{className:s()(ae.emptyState,{mobile:!se})},o.createElement(w,{className:s()(ae.emptyStateIcon,{mobile:!se}),width:se?220:120,height:se?220:120}),o.createElement("span",{className:s()(ae.emptyStateTitle,{mobile:!se})},me("empty_ranking_title")),o.createElement("span",null,me("empty_ranking_subtitle"))),o.createElement("div",{className:ae.banners},Array.isArray(ie)&&Boolean(ie.length)&&o.createElement(o.Fragment,null,o.createElement(E.iR,{position:"BOTTOM_1",slideshows:ie}),o.createElement(E.iR,{position:"BOTTOM_2",slideshows:ie}),o.createElement(E.iR,{position:"BOTTOM_3",slideshows:ie}),o.createElement(E.iR,{position:"BOTTOM_4",slideshows:ie}),o.createElement(E.iR,{position:"BOTTOM_5",slideshows:ie})))),!se&&o.createElement(u.Z,{direction:"up",in:!!X&&!!Y,mountOnEnter:!0,unmountOnExit:!0,timeout:500},o.createElement(c.ZP,{elevation:4,className:ae.paper,style:{height:ge?"".concat(ge-50,"px"):"calc(100vh - 50px)"},classes:{rounded:ae.rounded}},o.createElement(L.hh,null)))))}return null}}}]);
2//# sourceMappingURL=TopRanking.4d5aa21d.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.