PageSourceSearch

https://www.mixnpik.com/static/js/ChallengesPage.106e2430.chunk.js

js mixnpik.com collected 2026-10-02 16:03:16 UTC 3,330 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[188],{44482(e,n,a){a.r(n),a.d(n,{ChallengesPage:()=>k,ChallengesPageView:()=>$});var o=a(50016),l=a(33651),i=a(13403),s=a(61449),t=a(1948),r=a(57218),d=a(43708),c=a(31356),u=a(57610),g=a(26950),h=a(85113),m=a(57417),p=a(97206),v=a(76966),f=a(24473),w=a(69715),b=a(47192),x=a(9101),y=a(62296),C=a(17116),j=a(90076);const U=new y.Parser,_=e=>{const n=U.parse((0,C.Z6)(!1,void 0,void 0,e.config.appUrl,e.config.cdnUrl,`${window.location.pathname}${window.location.search}`,e.config.facebookConfig.appId,e.config.appleAppStoreId,e.config.package,e.config.appName,e.config.appLaunchProtocol,e.config.environment));return(0,j.jsx)(x.mg,{children:n})},k=e=>{const n=(0,l.d4)(v.z);return(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)(_,{config:n}),(0,j.jsx)($,{currentUser:(0,l.d4)(t.getUser),compSummaries:(0,l.d4)(s.getFilteredCompSummariesAndEntries),...e,config:n})]})},$=o.memo((e=>{var n,a,l,s,t;const{config:v,currentUser:x,compSummaries:y}=e,C=(0,i.Zp)(),[U,_]=(0,o.useState)(null),k=(0,f.$C)(),$=null===k||void 0===k?void 0:k.data_parsed[d.BranchCustomKey.COMP_ID],P=null===k||void 0===k?void 0:k.data_parsed[d.BranchCustomKey.USER_ID],S=(0,o.useMemo)((()=>null===y||void 0===y?void 0:y.find((e=>e.summary.id===$))),[$,y]),B=(0,o.useCallback)((()=>{C({pathname:"/",search:window.location.search})}),[C]);return(0,o.useEffect)((()=>{(0,p.X3)("Challenges page")}),[]),(0,o.useEffect)((()=>{let e;return null===U&&P&&(e=(0,u.getUserByIdStream)(v.gameUrl)(P).subscribe({next:e=>{_(e)}})),()=>{e&&e.unsubscribe()}}),[U,P,v.gameUrl]),(0,j.jsx)(b.L,{children:(0,j.jsx)("div",{className:"challenges-page__gradient",style:{backgroundImage:`linear-gradient(to bottom, ${null!==(n=null===S||void 0===S?void 0:S.summary.primaryColor)&&void 0!==n?n:m.hO} 0%, ${m.hO} 30%)`},children:(0,j.jsxs)("div",{className:(0,c.kY)("challenges-page__container"),children:[(0,j.jsx)("div",{className:"challenges-page__top-icons-container",children:(0,j.jsx)(g.E,{title:null!==(a=null===S||void 0===S?void 0:S.summary.shortName)&&void 0!==a?a:"Challenge",subtitle:"Head to Head",imageUrl:null===S||void 0===S||null===(l=S.summary.logo)||void 0===l||null===(s=l.image)||void 0===s?void 0:s.url,safeAreaTopPadding:0,appPlatform:r.AppPlatform.WEB})}),(0,j.jsx)(h.H,{challengingUser:U,challengedUser:x}),(0,j.jsx)(w.a,{analyticsPrefix:"challenges_page",config:e.config,pageUrl:window.location.href,title:null!==U&&void 0!==U&&U.name&&null!==S&&void 0!==S&&S.vendor?`${U.name} has invited you to a ${null===S||void 0===S?void 0:S.vendor.name} challenge!`:"You've been invited to a head to head challenge!",description:`You've been invited to a head to head challenge on the Mixnpik App with your friend${""+(null!==U&&void 0!==U&&U.name?` ${U.name}`:"")}.\n\nAll you have to do is make a few predictions and the game is on! Who will get the crown?${"nznbl"===(null===S||void 0===S||null===(t=S.vendor)||void 0===t?void 0:t.vendor)?"\n\np.s. You can also win Sal's pizza in the official Sal's NBL game!":""}`,showCloseButton:!0,showImage:!1,useGroupsButton:!0,closeLabel:"Browse the website first",onDismiss:B}),(0,j.jsx)("div",{className:"challenges-page__footer-copy",style:{textAlign:"center"},children:"To join the challenge later, just tap the invite link that you were sent."})]})})})}))}}]);

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.