PageSourceSearch

https://arcade.online/assets/postpage-COWThDTM.js

js arcade.online collected 2026-10-10 01:25:18 UTC 19,420 bytes, 4 lines download raw bytes

1import{r as D,j as e,L as se,o as Se,N as Ce}from"./react-Dn1UdAjU.js";import{B as pe,af as Le,co as J,E as Ne,G as Re,cD as Me}from"./arcade-api-model-BCxHTAnn.js";import{bC as we,bD as R,P as W,bf as Y,S as $e,_ as O,d3 as H,d as V,p as E,bO as ke,f as ve,bP as Ee,aE as De,b5 as xe,eg as Te,c7 as Ie,aK as Ge,eh as je,a4 as fe,ei as ye,c3 as Q,be as re,aJ as ae,bh as ie,ej as Fe,b as Ue,ek as Be,c4 as Oe,V as qe,X as ze,dM as He}from"./deferred-CyQkVRYP.js";import{u as Ye,m as x,M as y,p as Ve}from"./intl-BNt6QVuV.js";import{u as q,a3 as Pe}from"./svg-CynWTuOJ.js";import{D as Qe,u as _e}from"./DailyTokenItem-CRP1pV62.js";import{a as Je}from"./notfound-DVASZAsQ.js";import{P as We}from"./postdisplay-yoD1h6Db.js";import{e as K,c as ge,E as Ke,X as Xe,Y as Ze,v as Ae,Z as es,$ as ss}from"./arcade-sdk-B9fxZoPn.js";import{a5 as rs,aH as as}from"./arcade-api-v1-C2ZhK9FV.js";import"./arcade-api-DMsHyZaR.js";import"./firebase-firestore-8i_PNVLB.js";import"./firebase-D7QlnGb2.js";import"./firebase-utils-Dtwr0sgi.js";import{D as is}from"./mui-icons-11-BiQk5FAa.js";import{L as te}from"./mui-icons-5-BEPxBwuf.js";import{L as ts}from"./mui-icons-14-DXyW8I9n.js";import{P as ne}from"./mui-icons-15-olLqhggH.js";import{S as ns}from"./mui-icons-1-BIppbYe5.js";import{F as ls}from"./arcade-api-admin-CWSr88od.js";import"./lodash-DgZ3EWJU.js";import{D as U,a as ds}from"./Dim-lBxJra9k.js";import{T as be,I as ms}from"./ipdisplay-1jtmuW5G.js";import{U as os,P as le,b as cs,a as us}from"./FixedCreditsInfo-Ba1LF7Oz.js";import{H as hs,L as _,K as de,am as me,a6 as oe,an as ce,a7 as ue}from"./mui-DWUfXI41.js";import{u as xs}from"./styled-components-DqoLK054.js";import{S as he}from"./mui-icons-3-jwR7GfZe.js";import{E as js}from"./postemotes-Czb0w8Vk.js";import{P as fs}from"./postitemdisplay-Bc53PJ9N.js";import"./index-Bieb9bH1.js";import"./sentry-Bj8DRcGR.js";import"./notistack-2bd-oqmy.js";import"./mui-icons-0-7Z_8sSlG.js";import"./mui-icons-9-BvFshSRO.js";import"./mui-icons-6-TG9oxorq.js";import"./mui-icons-2-CZMaGRTn.js";import"./mui-icons-4-C7Y97aWF.js";import"./mui-icons-13-9RmRlCXt.js";import"./mui-icons-12-BkW4XWsS.js";import"./mui-icons-8-DBVdq0iL.js";import"./mui-icons-7-D0ubelZQ.js";import"./mui-x-date-pickers-IBLqJzJ7.js";import"./date-fns-BPzI9ZlK.js";import"./MilestoneProgress-Bb73fIWq.js";import"./PrizesSelectionPopup-Cvr9jqMW.js";import"./popup-EM4FgXdV.js";import"./avatar-CWW0U8wQ.js";import"./1stTrophy-Dveu5Vxg.js";import"./PostTournament-6-bFA9lu.js";import"./mixpanel-browser-C36jKVrf.js";/* empty css                */import"./preview-AHnTHiQ3.js";const C=({label:s=x.Tracking,metadata:a=[],note:i,post:r,prependMetadata:m=[],showAddress:c})=>{var j,h,g;const{permissions:l}=we(),t=K(rs),[d,n]=D.useState(""),u=D.useMemo(()=>{var o,P;return(P=(o=r==null?void 0:r.shopPurchase)==null?void 0:o.couponsList)!=null&&P.length?r.shopPurchase.couponsList.map(p=>{var S,N;const b=(N=(S=r.shopPurchase)==null?void 0:S.promotionCodesList)==null?void 0:N.find($=>$.coupon===p.id),L=b?`- ${b.code}`:"";return`${p.name} ${L}`}):[]},[(j=r==null?void 0:r.shopPurchase)==null?void 0:j.couponsList,(h=r==null?void 0:r.shopPurchase)==null?void 0:h.promotionCodesList]);return D.useEffect(()=>{i!=null&&i.author&&t({userId:(i==null?void 0:i.author)||""}).then(o=>{n((o==null?void 0:o.userEmail)??"")})},[t,i==null?void 0:i.author]),e.jsxs(e.Fragment,{children:[e.jsx(R,{children:e.jsx(y,{...s})}),c&&l[Le.PHYSICAL_PRIZES]&&e.jsx(hs,{onClick:c,variant:"contained",children:"Get address"}),e.jsx(W,{$borderVariant:J.Secondary,disablePadding:!0,children:e.jsx(be,{items:[[e.jsx(ne,{"aria-label":"author",color:"disabled",fontSize:"small"},"person-icon"),e.jsx(os,{uid:(i==null?void 0:i.author)||((g=r==null?void 0:r.user)==null?void 0:g.id)||""},"user-display")],d?[e.jsx(ne,{"aria-label":"author",color:"disabled",fontSize:"small"},"person-icon"),e.jsx(U,{children:e.jsx("code",{children:d})},"dim-span")]:null,[e.jsx(ns,{"aria-label":"timestamp",color:"disabled",fontSize:"small"},"schedule-icon"),e.jsx(U,{children:e.jsx("code",{children:e.jsx(Y,{format:"",value:(i==null?void 0:i.timestamp)||(r==null?void 0:r.timestamp)})})},"dim-span")],...m.filter(([,o])=>o).map(([o,P])=>[e.jsx(te,{"aria-label":o,color:"disabled",fontSize:"small"},"local-offer"),e.jsxs("code",{children:[e.jsxs(U,{children:[o," "]}),P]},"code")]),!(i!=null&&i.ipsList)||i.ipsList.length===0?null:[e.jsx(ts,{"aria-label":"ips",color:"disabled",fontSize:"small"},"location-icon"),e.jsx("code",{children:e.jsx(ms,{ipsList:i.ipsList})},"code")],...a.filter(([,o])=>o).map(([o,P])=>[e.jsx(te,{"aria-label":o,color:"disabled",fontSize:"small"},"local-offer"),e.jsxs("code",{children:[e.jsxs(U,{children:[o," "]}),P]},"code")]),...u.length?u.map(o=>[e.jsx(is,{color:"disabled",fontSize:"small"},"discount-icon"),e.jsx(U,{children:e.jsxs("code",{children:["Voucher: ",o]})},"dim-span")]):[]]})})]})},ys=s=>["lasted",s!=null&&s.seconds?`${Math.trunc(s.seconds/60)}mn ${s.seconds%60}sec`:"-"],B=({note:s,post:a})=>{var t,d,n,u,j,h,g,o,P,p,b,L,S,N,$,I,X;
1const i=Ye(),[r,m]=D.useState(),c=K(ls),l=D.useCallback(()=>{if(!r){const f={getAddress:!0,postId:a.id};a.id&&c(f).then(k=>{var w,v,G;const M=(G=(v=(w=k==null?void 0:k.order)==null?void 0:w.order)==null?void 0:v.value)==null?void 0:G.address;M&&m(M)})}},[c,a.id,r]);if(a.storeRedemption){const f=()=>{var k,M,w,v;return(M=(k=a.storeRedemption)==null?void 0:k.itemsList)!=null&&M.length?(v=(w=a.storeRedemption)==null?void 0:w.itemsList)==null?void 0:v.reduce((z,F)=>{var Z,A,ee;return z+`${(Z=F.reward)==null?void 0:Z.name} - Tickets: ${i.formatNumber(Math.abs(((ee=(A=F.value)==null?void 0:A.monies)==null?void 0:ee.tickets)||0))}, `},""):""};return e.jsx(C,{metadata:[["Reference Number",a.id||""],["Total Tickets Inc. Shipping",i.formatNumber(Math.abs(((t=a.monies)==null?void 0:t.tickets)||0))],["Total Tickets Exc. Shipping",i.formatNumber(Math.abs(((d=a.monies)==null?void 0:d.tickets)||0)-Math.abs(((n=a.storeRedemption.shippingCost)==null?void 0:n.tickets)||0))],["Prize Info",f()],["Shipping Fee",i.formatNumber(Math.abs(((u=a.storeRedemption.shippingCost)==null?void 0:u.tickets)||0))||""],["Contact Info",r?`${r.fullName} - ${r.email} - ${r.phoneNumber}`:"Hidden data"],["Shipping Address",r?`${r==null?void 0:r.street}, ${r==null?void 0:r.city}, ${r==null?void 0:r.state}, ${r==null?void 0:r.country}, ${r==null?void 0:r.zipcode}`:"Hidden data"],["Shipping Apartment",r?`${r==null?void 0:r.apartment}`:"Hidden data"],["Additional Info",r?`${r==null?void 0:r.additionalDetails}`:"Hidden data"]],note:s,post:a,showAddress:()=>l()})}if(a.kuji){const f=()=>{var M,w;return((w=(M=a.kuji)==null?void 0:M.prizesList)==null?void 0:w.reduce((v,G)=>{var z,F;return v+`${(F=(z=G.prize)==null?void 0:z.meta)==null?void 0:F.name}, `},""))||""};return e.jsx(C,{metadata:[["Reference Number",a.id||""],["Prize Info",f()],["Contact Info",r?`${r.fullName} - ${r.email} - ${r.phoneNumber}`:"Hidden data"],["Shipping Address",r?`${r==null?void 0:r.street}, ${r==null?void 0:r.city}, ${r==null?void 0:r.state}, ${r==null?void 0:r.country}`:"Hidden data"],["Additional Info",r?`${r==null?void 0:r.additionalDetails}`:"Hidden data"]],post:a,showAddress:()=>l()})}if(a.cabinetSession)return e.jsx(C,{metadata:[ys(a.cabinetSession.duration)],note:s});if(s!=null&&s.rewardState)return null;if(s!=null&&s.stripeCustomer)return e.jsx(C,{metadata:[["stripe customer",s.stripeCustomer.customer??""]],note:s});if(s!=null&&s.stripePayment)return e.jsx(C,{metadata:[["stripe account",s.stripePayment.account??""],["stripe customer",s.stripePayment.customer??""],["stripe pi",s.stripePayment.paymentIntent??""],["transaction",s.stripePayment.charge??""]],note:s});if(s!=null&&s.tangoOrder)return e.jsx(C,{metadata:[["tango order",s.tangoOrder.referenceOrderId??""],["tango status",s.tangoOrder.status??""]],note:s});if(s!=null&&s.userCreate)return e.jsx(C,{metadata:[["provider",s.userCreate.provider??""],["id",s.userCreate.providerId??""]],note:s});if(a.shopPurchase&&!s)return e.jsx(C,{label:x.Purchase,metadata:[["status",pe[a.shopPurchase.status??0]],["credited",a.shopPurchase.credited?"YES":"NO"],["gateway",a.shopPurchase.gateway??""],["method",a.shopPurchase.method??""],["card",((j=a.shopPurchase.debug)==null?void 0:j.card)??""],["3DS",a.shopPurchase.threeds?"YES":"NO"]],post:a});if(a!=null&&a.taskMilestoneClaim)return e.jsx(C,{label:x.UserChallenges,metadata:[["Name",((h=a.taskMilestoneClaim)==null?void 0:h.milestoneName)??""],["Milestone id",((g=a.taskMilestoneClaim)==null?void 0:g.milestoneId)??""],["Battle Pass",(o=a.taskMilestoneClaim)!=null&&o.battlePass?"YES":"NO"]],note:s,post:a});if((P=a==null?void 0:a.challengeCompleted)!=null&&P.userChallenge){const f=(L=(b=(p=a.challengeCompleted.userChallenge)==null?void 0:p.completeConditionsList)==null?void 0:b[0])==null?void 0:L.collectElement;return e.jsx(C,{label:x.UserChallenges,metadata:[["Name",a.challengeCompleted.userChallenge.name??""],["Template id",a.challengeCompleted.userChallenge.challengeTemplateId??""],["Collect element",f!=null&&f.element?`${f==null?void 0:f.element} x ${(($=f==null?void 0:f.amountByTierMap)==null?void 0:$[((N=(S=a.user)==null?void 0:S.player)==null?void 0:N.membershipTier)??0])??f.amount??0}`:""],["Rerollable",a.challengeCompleted.userChallenge.rerollable?"YES":"NO"],["LTE id",((I=a.challengeCompleted.userChallenge)==null?void 0:I.lteId)??""],["LTE Game id",((X=a.challengeCompleted.userChallenge)==null?void 0:X.lteGameId)??""]],post:a})}return a.walletGift?e.jsx(C,{note:s,post:a,prependMetadata:[["Error Note",a.walletGift.errorNote??""]]}):e.jsx(C,{note:s,post:a})},Ps=({data:s})=>{var a,i,r;return e.jsxs(e.Fragment,{children:[e.jsx($e,{}),e.jsx(O,{children:e.jsx("small",{children:e.jsx(H,{raw:(r=(i=(a=s==null?void 0:s.itemsList)==null?void 0:a[0])==null?void 0:i.brand)==null?void 0:r.disclaimer})})})]})},gs=({post:s})=>s.storeRedemption?e.jsx(Ps,{data:s.storeRedemption,post:s}):null,bs=s=>E.where("tagsList","array-contains-any",["RewardClaim"]).where("user.id","==",s),Ss=(s,a)=>{const i=q(),r=V(),[m]=ge(i?r:void 0,bs(a));return(m==null?void 0:m.filter(l=>{var t,d;return(d=(t=l.rewardClaim)==null?void 0:t.refsList)==null?void 0:d.find(n=>{var u;return n.path.includes(s)&&((u=l.monies)==null?void 0:u.tokens)})}).sort((l,t)=>
1{var d,n;return(((d=l.timestamp)==null?void 0:d.seconds)||0)-(((n=t.timestamp)==null?void 0:n.seconds)||0)}))||[]},Cs=xs(W)`
2	padding: ${De(2)};
3`,ps=({dailyBonus:s,profile:a,reward:i,...r})=>{var n,u,j;const[m]=ke((n=a.player)==null?void 0:n.displayedTier),c=ve(),l=K(as),t=D.useCallback(()=>{c(x.RewardClaim.defaultMessage,l({rewardRef:i.path})).finally(()=>{Ke.trackEvent(new Xe)})},[c,l,i.path]);if(!m)return null;const d=Ee(m.dailyBonus,s);return d.tokens=d.tokens+(((j=(u=i==null?void 0:i.dailyBonus)==null?void 0:u.monies)==null?void 0:j.tokens)??0),e.jsx(Cs,{...r,children:e.jsx(Qe,{data:i,onClick:t,profile:a})})},Ls=({profile:s,reward:a,...i})=>a.dailyBonus?e.jsx(ps,{dailyBonus:a.dailyBonus,profile:s,reward:a,...i}):null,Ns=s=>s.type==="url"?s.value?e.jsx(Ge,{href:s.value,children:s.label}):s.label:s.type==="date"?s.value?e.jsx(Y,{calendar:!0,value:s.value}):e.jsx(y,{...x.DoesNotExpire}):e.jsx("b",{children:s.value}),Rs=({data:s,order:a})=>{var r,m,c,l,t,d;const i=a.reward;return e.jsxs(e.Fragment,{children:[e.jsx(R,{children:e.jsx(y,{...x.JustForYou})}),e.jsx(W,{$borderVariant:J.Primary,disablePadding:!0,children:i&&e.jsx(be,{items:i.credentialList?i.credentialList.map(n=>[e.jsx(ds,{children:e.jsx("small",{children:n.type==="url"?"URL":n.label})},(n.label??"")+(n.type??"")+(n.value??"")),Ns(n)]):[]})}),e.jsx(R,{children:e.jsx(y,{...x.RedemptionInstructions})}),i&&e.jsx(O,{children:e.jsx("small",{children:e.jsx(H,{raw:i.redemptionInstructions})})}),e.jsx(R,{children:e.jsx(y,{...x.Terms})}),e.jsx(O,{children:e.jsx("small",{children:e.jsx(H,{raw:(c=(m=(r=s==null?void 0:s.itemsList)==null?void 0:r[0])==null?void 0:m.brand)==null?void 0:c.terms})})}),e.jsx(R,{children:e.jsx(y,{...x.Disclaimer})}),e.jsx(O,{children:e.jsx("small",{children:e.jsx(H,{raw:(d=(t=(l=s==null?void 0:s.itemsList)==null?void 0:l[0])==null?void 0:t.brand)==null?void 0:d.disclaimer})})})]})},Ms=({path:s,reward:a,userId:i,postId:r})=>{const{profile:m}=xe(i,!0),c=Te(a,s),l=Ss(r,i);return m===void 0||c===void 0?null:e.jsxs(e.Fragment,{children:[e.jsx(R,{children:e.jsx(y,{...x.JustForYou})}),l.map(t=>{var d,n;return e.jsx(O,{children:`${new Date((((d=t.timestamp)==null?void 0:d.seconds)||0)*1e3).toLocaleString("en-GB",{day:"2-digit",month:"long",hour:"2-digit",minute:"2-digit",hour12:!1})} - ${(((n=t==null?void 0:t.monies)==null?void 0:n.tokens)||0)*Ie.tokens.unit} daily tokens claimed`},t.id)}),e.jsx(Ls,{$borderVariant:J.Primary,profile:m,reward:c})]})},ws=({note:s,path:a,post:i})=>i.storeRedemption&&s.tangoOrder?e.jsx(Rs,{data:i.storeRedemption,order:s.tangoOrder}):s.rewardState&&i.user?e.jsx(Ms,{path:a,postId:i.id??"",reward:s.rewardState,userId:i.user.id??""}):null,$s=(s,a)=>{var r;let i=ye(s.id).col("notes");return!a&&((r=s.user)!=null&&r.id)&&(i=i.where("author","==",s.user.id)),i},ks=({post:s})=>{var r;const a=q();return Pe(((r=s==null?void 0:s.user)==null?void 0:r.id)??"")||a?e.jsx(vs,{isAdmin:!!a,post:s}):e.jsx(gs,{post:s})},vs=({isAdmin:s,post:a})=>{var u,j;const i=V(),r=$s(a,s),[m,,c]=Ze(i,r),l=D.useMemo(()=>{var h;return(h=m==null?void 0:m.docs)==null?void 0:h.map(g=>({...g.data(),ref:g.ref}))},[m]),[t,,d]=je((u=a.kuji)==null?void 0:u.sourcePost),n=a.kuji&&{...a,monies:{...t==null?void 0:t.monies,tickets:Math.abs(((j=t==null?void 0:t.monies)==null?void 0:j.tickets)??0)},storeRedemption:t==null?void 0:t.storeRedemption};return e.jsxs(fe,{error:c||d,children:[l==null?void 0:l.map(h=>e.jsxs("div",{children:[e.jsx(ws,{note:h,path:h.ref.path,post:a}),s?e.jsx(B,{note:h,post:a}):null]},h.ref.id)),s&&n&&e.jsx(B,{post:n}),s&&a.shopPurchase&&e.jsx(B,{post:a}),s&&a.challengeCompleted&&e.jsx(B,{post:a}),s&&a.storeRedemption&&!(l!=null&&l.length)&&e.jsx(B,{post:a})]})},Es=({post:s})=>{var m,c,l,t,d,n,u,j,h,g,o,P,p,b;const a=q(),i=(l=(c=(m=s.playerSession)==null?void 0:m.sessionCredit)==null?void 0:c.detailsList)==null?void 0:l[0];if(!i||!s||!a)return null;const{creditTimesList:r}=i;return e.jsxs(e.Fragment,{children:[e.jsx(R,{children:e.jsx(y,{...x.GameCabinetSession})}),e.jsx(Q,{disablePadding:!0,children:e.jsx(_,{dense:!0,disablePadding:!0,children:e.jsx(de,{alignItems:"flex-start",className:"history-post-item-display",children:e.jsxs(me,{component:se,to:`/${(d=(t=s==null?void 0:s.playerSession)==null?void 0:t.cabinet)==null?void 0:d.name}/posts/${(u=(n=s==null?void 0:s.playerSession)==null?void 0:n.cabinetSession)==null?void 0:u.id}`,children:[e.jsx(oe,{children:e.jsx(he,{color:"disabled"})}),e.jsx(ce,{children:e.jsx(ue,{primary:e.jsx(y,{...(j=s==null?void 0:s.playerSession)!=null&&j.end?x.CabinetPostsSessionEnd:x.CabinetPostsSession,values:{game:e.jsx(Fe,{game:(h=s==null?void 0:s.playerSession)==null?void 0:h.game}),players:[e.jsx(cs,{gameMode:(g=s==null?void 0:s.playerSession)==null?void 0:g.gameMode,noLink:!0,user:s==null?void 0:s.user},(o=s==null?void 0:s.user)==null?void 0:o.id)]}}),secondary:e.jsxs(re,{children:[e.jsxs(ae,{$alignItems:"flex-start",children:[e.jsx("small",{children:e.jsx(Y,{fromNow:!0,value:(P=r==null?void 0:r[0])==null?void 0:P.time})}),e.jsx(le,{post:s})]}),e.jsx(ie,{inverted:!0,showExpired:!0,signed:!0,value:s.monies})]}),secondaryTypographyProps:{component:"div"}})})]})})})}),e.jsx(R,{children:e.jsx(y,{...x.GamePlayerSessions})}),e.jsx(Q,{disablePadding:!0,children:e.jsx(_,{dense:!0,disablePadding:!0,children:e.jsx(de,{alignItems:"flex-start",className:"history-post-item-display",children:e.jsxs(me,{component:se,to:`/${s.user.name}/posts/${s.id}`,children:[e.jsx(oe,{children:e.jsx(he,{color:"disabled"})}),e.jsxs(ce,{children:[e.jsx(ue,{primary:e.jsx(us,{noLink:!0,post:s}),secondary:e.jsxs(re,{children:[e.jsxs(ae,{$alignItems:"flex-start",children:[e.jsx("small",{children:e.jsx(Y,{fromNow:!0,value:(p=r==null?void 0:r[0])==null?void 0:p.time})}),e.jsx(le,{post:s})]}),e.jsx(ie,{showExpired:!0,signed:!0,value:s.monies})]}),secondaryTypographyProps:{component:"div"}}),s.gameElementsMap&&e.jsx("div",{className:"history-game-elements-display",children:(b=Object.entries(s.gameElementsMap).sort())==null?void 0:b.map((L,S)=>{var $,I;const N=($=L[1])==null?void 0:$.isMaximum;return(I=L[1])!=null&&I.hidden?null:e.jsx(js,{item:L,reachMaxAmount:N},S)})})]})]})})})})]})},T=({hideEmpty:s,paginate:a,query:i,sessionStart:r,title:m})=>{const c=V(),[l,t,d]=ge(a?void 0:c,i),{data:n,error:u,hasMore:j,loading:h,loadM
3ore:g}=Ae(a?c:void 0,i,!0,typeof a=="number"?a:10),o=a?n:l,P=a?h:t,p=a?u:d;let b=new Ne;const L=[...o].reverse().map(S=>(b=es(b,S.monies),b)).reverse();return s&&!o.length&&!p?null:e.jsx(e.Fragment,{children:o&&o.length?e.jsxs(e.Fragment,{children:[m&&e.jsx(R,{children:m}),e.jsx(Q,{disablePadding:!0,children:e.jsx(_,{dense:!0,disablePadding:!0,children:o.map((S,N)=>e.jsx(fs,{cumulativeMonies:L[N],divider:N!==o.length-1,post:S,sessionStart:r},S.id))})}),j&&e.jsx(Ue,{className:"load-more-btn",disabled:P,onClick:g,children:P?e.jsx(Be,{}):"Load More"})]}):e.jsx(Oe,{})})},Ds=({post:s})=>{var c,l,t,d,n,u;const a=V(),i=ss(a,ye(s.id)),r=q(),m=Pe(((c=s.user)==null?void 0:c.id)??"");return e.jsxs(e.Fragment,{children:[r&&s.cabinetSession&&e.jsxs(e.Fragment,{children:[e.jsx(T,{query:E.whereRequired("playerSession.cabinetSession","==",i),title:e.jsx(y,{...x.GamePlayerSessions})}),e.jsx(T,{paginate:!0,query:E.whereRequired("playerCredit.cabinetSession","==",i).orderBy("timestamp","desc"),title:e.jsx(y,{...x.GameCredits})})]}),s.playerCredit&&e.jsxs(e.Fragment,{children:[r&&e.jsx(T,{query:E.whereRequired("id","==",(l=s.playerCredit.cabinetSession)==null?void 0:l.id).limit(1),title:e.jsx(y,{...x.GameCabinetSession})}),(r||m)&&e.jsx(T,{query:E.whereRequired("user.id","==",((t=s.user)==null?void 0:t.id)??"").whereRequired("id","==",(d=s.playerCredit.playerSession)==null?void 0:d.id).limit(1),title:e.jsx(y,{...x.GamePlayerSessions})})]}),s.playerSession&&e.jsx(Es,{post:s}),(r||m)&&s.walletGift&&e.jsx(e.Fragment,{children:e.jsx(T,{query:E.whereRequired("user.id","==",((n=s.user)==null?void 0:n.id)??"").whereRequired("id","in",s.walletGift.relatedPostsList).limit(10),title:e.jsx(y,{...x.WalletGiftRelatedPosts})})}),(r||m)&&e.jsx(T,{hideEmpty:!0,query:E.whereRequired("user.id","==",((u=s.user)==null?void 0:u.id)??"").whereRequired("walletGift.relatedPostsList","array-contains",s.id).limit(10),title:e.jsx(y,{...x.WalletGiftRelatedRefund})})]})},Ts=({post:s,profile:a})=>e.jsxs(e.Fragment,{children:[e.jsx(We,{post:s,profile:a}),e.jsx(ks,{post:s}),e.jsx(Ds,{post:s})]}),Is=({postId:s,username:a})=>{var j,h;const[i,r,m]=je(s),c=q(),{isMe:l,profile:t}=xe(((j=i==null?void 0:i.user)==null?void 0:j.id)??""),d=He(((h=i==null?void 0:i.playerSession)==null?void 0:h.game)??Re.GAME_NONE),n=(d==null?void 0:d.state)===Me.UNRELEASED&&!c&&!l,u=()=>!(i!=null&&i.user)||n?e.jsx(Je,{}):s===i.id&&a!==i.user.name&&i.user.name?e.jsx(Ce,{replace:!0,to:`/${i.user.name||a}/posts/${i.id}`}):e.jsx(Ts,{post:i,profile:t});return e.jsx(fe,{error:m,loading:r,children:u()})},Tr=()=>{const{postId:s,username:a}=Se();return _e({postid:s,status:"paid"}),e.jsx(qe,{title:Ve.Post,children:e.jsx(ze,{className:"post-page-container",children:s&&e.jsx(Is,{postId:s,username:a})})})};export{Tr as PostPage,Tr as default};
4//# sourceMappingURL=postpage-COWThDTM.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.