PageSourceSearch

https://rovo.co/static/js/5313.5b88f3c2.chunk.js

js rovo.co collected 2026-10-07 08:25:27 UTC 24,679 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkrovo_web=self.webpackChunkrovo_web||[]).push([[5313],{3734:(e,s,t)=>{t.d(s,{A:()=>A});var a=t(9950),r=t(37039),n=t(16673),i=t(77737),l=t(95995),o=t(31855),c=t(73784),d=t(49569),m=t(97230),u=t(25862),p=t(16255),x=t(74166),h=t(63734),f=t(8728),v=t(95378),g=t(12268),j=t(88392),y=t(87296),N=t(94992),b=t(42618),w=t(44414);const k=(0,r.PA)(e=>{var s,t,r;let{activity:k,fixedWidth:A=!1,showFavouriteButton:I=!1,purposeOverride:E}=e;const S=(0,n.W6)(),T=(0,a.useCallback)(()=>{S.push("/plays/".concat(k.id))},[S,k.id]),{sportInfo:z,sport:C,name:P,maxPlayer:Y,start:O,end:L,timezone:M,locations:W,minRating:R,maxRating:D,players:F,courtBooked:G,isRanked:B,waitlisted:V,requestToJoin:q,createdById:Z,status:K}=k,{account:{profileId:_,profile:U}}=h.userStore,H=f.activityStore.isActivityFavourited(k.id)||!!k.favourite,$=f.activityStore.isActivityFavouriteLoading(k.id),J=null===V||void 0===V?void 0:V.includes(_),Q=Z===_,X="INVITED"===(null===F||void 0===F||null===(s=F.find(e=>e.profileId===_))||void 0===s?void 0:s.status)&&Z!==_&&"PLANNING"===K,ee=(0,N.M1)(k,E),se=(0,N.pe)(N.gT.HOSTING),te=(0,N.pe)(N.gT.RANKED),ae=(0,N.pe)(N.gT.INVITED),re=(0,N.pe)(N.gT.WAITLIST),ne=x.c9.fromISO(O).setZone(M||"local"),ie=x.c9.fromISO(L).setZone(M||"local"),le=x.c9.local(),oe=ne.year!==le.year,ce=ne.hasSame(le,"day")?"Today":ne.hasSame(le.plus({days:1}),"day")?"Tomorrow":ne.toFormat(oe?"ccc d LLL yyyy":"ccc d LLL"),de=e=>{const s=0===e.minute?"h a":"h:mm a";return e.toFormat(s).toLowerCase()},me="".concat(de(ne)," - ").concat(de(ie)),ue=W[0],pe=(0,c.Yb)(k),xe=pe?(0,c.sb)(k):"",he=pe&&!(0,c.jm)(k),fe=e=>"number"===typeof e?e.toFixed(1):"",ve=q&&"number"===typeof R&&"number"===typeof D&&(1!==R||7!==D),ge=ve?"".concat(R===D?fe(R):"".concat(fe(R)," - ").concat(fe(D))):"All level",je=(0,a.useMemo)(()=>(0,j.n8)(k),[k]),ye=(0,a.useMemo)(()=>(0,j.N2)(k)?(0,j.qo)(k):Array.from({length:Math.max(Y-je.length,0)},(e,s)=>({key:"open-".concat(s),slotType:"open"})),[k,je.length,Y]),Ne=(0,a.useCallback)(e=>{e.stopPropagation(),f.activityStore.toggleActivityFavourite(k)},[k]);return(0,w.jsx)(p.Zp,{className:"flex-shrink-0 ".concat(A?"w-[360px]":"w-full"," cursor-pointer hover:shadow-lg transition-shadow"),onClick:T,children:(0,w.jsxs)(p.Wu,{className:"h-full flex flex-col !p-4",children:[(0,w.jsxs)("div",{className:"flex items-center min-h-[24px]",children:[(0,w.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,w.jsx)("span",{className:"capitalize",children:null===z||void 0===z||null===(t=z.name)||void 0===t?void 0:t.toLowerCase()}),(0,w.jsx)("img",{className:"h-3 w-3",src:"https://rovo.fit/assets/sports/sport-".concat(z.uri,"-icon.png"),alt:(null===z||void 0===z?void 0:z.name)||"sport",loading:"lazy",decoding:"async"})]}),(0,w.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,w.jsx)(b.A,{activity:k,className:"shrink-0"}),I&&(0,w.jsx)("button",{type:"button",onClick:Ne,"aria-label":H?"Remove from favourite activities":"Add to favourite activities","aria-pressed":H,className:"inline-flex h-8 w-8 items-center justify-center rounded-full transition-colors hover:bg-[#E5402E]/10 ".concat(H?"text-[#E5402E]":"text-foreground"),children:$?(0,w.jsx)(v.y,{size:16,className:H?"text-[#E5402E]":"text-foreground"}):(0,w.jsx)(l.A,{className:"h-5 w-5",fill:H?"currentColor":"none"})})]})]}),(0,w.jsx)("div",{className:"line-clamp-1 text-base font-semibold",children:P}),(0,w.jsx)("div",{className:"mt-2 overflow-x-auto overflow-y-hidden scrollbar-hover -mx-4",style:{paddingBottom:"4px"},children:(0,w.jsxs)("div",{className:"flex items-center gap-4 px-4",children:[je.map(e=>{var s;const t=e.profileId===_?U:e.profile,a=(null===t||void 0===t?void 0:t.sportProfile)||(null===t||void 0===t||null===(s=t.sportProfiles)||void 0===s?void 0:s.find(e=>e.sport===C)),r=(0,u.e)(a);return(0,w.jsxs)(d.eu,{className:"h-10 w-10",pulseLevel:null===t||void 0===t?void 0:t.pulseLevel,rating:r,children:[(0,w.jsx)(d.BK,{src:null===t||void 0===t?void 0:t.picture,alt:"player"}),(0,w.jsx)(d.q5,{children:"?"})]},e.profileId)}),ye.slice(0,2).map(e=>{if("open"===e.slotType)return(0,w.jsx)(m.v,{className:"h-10 w-10 flex-shrink-0"},e.key);const s=(0,y.nf)(e.slotType);return(0,w.jsx)("div",{className:"h-10 w-10 flex-shrink-0 rounded-full border border-dashed flex items-center justify-center",style:{backgroundColor:(0,y.h9)(e.slotType),borderColor:"".concat(s,"66")},children:(0,w.jsx)(g.In,{icon:e.slotType,size:"sm",stroke:"female"===e.slotType?"pinkEnergetic":"preservingBlue"})},e.key)})]})}),(0,w.jsxs)("div",{className:"mt-2 text-xs text-foreground",children:[je.length,"/",Y," playing",ve&&(0,w.jsxs)(w.Fragment,{children:[" \xb7 ",(0,w.jsxs)("span",{className:"font-semibold",children:["Level ",ge]})]}),pe&&(0,w.jsxs)(w.Fragment,{children:[" \xb7 ",(0,w.jsx)("span",{className:"font-semibold",children:xe}),he&&(0,w.jsx)("span",{className:"text-muted-foreground",children:" /pers
1on"})]})]}),(0,w.jsx)("div",{className:"mt-2 min-h-[24px] overflow-x-auto [&::-webkit-scrollbar]:hidden -mx-4",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,w.jsxs)("div",{className:"flex items-center gap-2 px-4",children:[Q&&(0,w.jsx)("div",{className:"inline-flex flex-shrink-0 items-center justify-center rounded-md px-2 py-1 text-xs font-semibold uppercase",style:se,children:"HOSTING"}),B&&(0,w.jsx)("div",{className:"inline-flex flex-shrink-0 items-center justify-center rounded-md px-2 py-1 text-xs font-semibold uppercase",style:te,children:"RANKED GAME"}),ee&&(0,w.jsx)("div",{className:"inline-flex flex-shrink-0 items-center justify-center rounded-md px-2 py-1 text-xs font-semibold uppercase",style:(0,N.P3)(ee.purpose),children:ee.label}),X&&(0,w.jsx)("div",{className:"inline-flex flex-shrink-0 items-center justify-center rounded-md px-2 py-1 text-xs font-semibold uppercase",style:ae,children:"YOU'RE INVITED"}),J&&(0,w.jsx)("div",{className:"inline-flex flex-shrink-0 items-center justify-center rounded-md px-2 py-1 text-xs font-semibold uppercase",style:re,children:"ON WAITLIST"})]})}),(0,w.jsx)("div",{className:"my-3 h-px bg-border"}),(0,w.jsxs)("div",{className:"flex items-start gap-2 text-sm",children:[(0,w.jsx)(i.A,{className:"mt-0.5 h-4 w-4 text-muted-foreground flex-shrink-0"}),(0,w.jsxs)("div",{className:"min-w-0",children:[(0,w.jsxs)("div",{className:"truncate",children:[ce,", ",me]}),(0,w.jsx)("div",{className:"text-xs text-muted-foreground",children:"One-time activity"})]})]}),(0,w.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-sm",children:[(0,w.jsx)(o.A,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),(0,w.jsxs)("div",{className:"flex items-center gap-x-1 text-sm truncate min-w-0",children:[G&&(0,w.jsx)("span",{className:"flex-shrink-0",children:"Court booked"}),G&&(0,w.jsx)("span",{className:"flex-shrink-0",children:"\xb7"}),(0,w.jsx)("span",{className:"truncate",children:(null===ue||void 0===ue||null===(r=ue.venueDetail)||void 0===r?void 0:r.venueName)||(null===ue||void 0===ue?void 0:ue.name)})]})]})]})})}),A=(0,a.memo)(k)},19398:(e,s,t)=>{t.d(s,{FT:()=>x,Kr:()=>f,Ou:()=>g,Sv:()=>p,cz:()=>v});var a=t(89379),r=t(80045),n=t(94364),i=t(39866),l=t(44414);const o=["className"],c=["className"],d=["className","variant"],m=["className"],u=["className"];function p(e){let{className:s}=e,t=(0,r.A)(e,o);return(0,l.jsx)("div",(0,a.A)({"data-slot":"empty",className:(0,i.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg p-6 text-center md:p-12",s)},t))}function x(e){let{className:s}=e,t=(0,r.A)(e,c);return(0,l.jsx)("div",(0,a.A)({"data-slot":"empty-header",className:(0,i.cn)("flex max-w-sm flex-col items-center gap-2 text-center",s)},t))}const h=(0,n.F)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function f(e){let{className:s,variant:t="default"}=e,n=(0,r.A)(e,d);return(0,l.jsx)("div",(0,a.A)({"data-slot":"empty-icon","data-variant":t,className:(0,i.cn)(h({variant:t,className:s}))},n))}function v(e){let{className:s}=e,t=(0,r.A)(e,m);return(0,l.jsx)("div",(0,a.A)({"data-slot":"empty-title",className:(0,i.cn)("text-lg font-medium tracking-tight",s)},t))}function g(e){let{className:s}=e,t=(0,r.A)(e,u);return(0,l.jsx)("div",(0,a.A)({"data-slot":"empty-description",className:(0,i.cn)("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",s)},t))}},29396:(e,s,t)=>{e.exports=t.p+"static/media/dummy-img.b8310c9571ac1a7fc1c7.png"},30400:(e,s,t)=>{t.d(s,{P:()=>j});var a,r,n,i,l,o,c,d,m=t(89379),u=t(54167),p=t(793),x=t(38949),h=t(18572),f=t(1483),v=t(23729),g=t(38174);const j=new(a=class{constructor(){(0,u.A)(this,"groups",r,this),(0,u.A)(this,"loading",n,this),(0,u.A)(this,"hasMore",i,this),this.query={offset:0},this.lastQuery=null,(0,u.A)(this,"getGroups",l,this),(0,u.A)(this,"setGroups",o,this),(0,u.A)(this,"joinGroup",c,this),(0,u.A)(this,"leaveGroup",d,this)}},r=(0,p.A)(a.prototype,"groups",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),n=(0,p.A)(a.prototype,"loading",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=(0,p.A)(a.prototype,"hasMore",[x.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),l=(0,p.A)(a.prototype,"getGroups",[x.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return async(e,s)=>{if(this.loading)return;if(!this.hasMore&&!s)return;s&&(this.query.offset=0,this.lastQuery=e),this.loading=!0;let t=[];try{t=await(0,h.f)((0,m.A)((0,m.A)({},this.query),e))}catch(r){}const a=t.length;(0,x.runInAction)(()=>{a<v.z$&&(this.hasMore=!1),this.groups=s?t:[...this.groups,...t],this.loading=!1,this.query.offset=a===v.z$?this.query.offset+a:this.query.offset})}}}),o=(0,p.A)(a.prototype,"setGroups",[x.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.groups=e}}}),c=(0,p.A)(a.prototype,"joinGroup",[x.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return async e=>{try{const s=await(0,f.U7)(e);(0,x.runInAction)(()=>{const t=this.groups.findIndex(s=>s.id===e);t>-1&&(this.groups[t]=s)})}catch(s){(0,x.runInAction)(()=>{})}}}}),d=(0,p.A)(a.prototype,"leaveGroup",[x.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return async e=>{try{const s=await(0,f.j)(e);(0,x.runInAction)(()=>{const t=this.groups.findIndex(s=>s.id===e);t>-1&&(this.groups[t]=s)})}catch(t){var s;g.o.error((null===t||void 0===t||null===(s=t.response)||void 0===s?void 0:s.message)||"Join group failed. Please try again.")}}}}),a)},33154:(e,s,t)=>{t.d(s,{A:()=>n});t(9950);var a=t(12268),r=t(44414);const n=e=>{let{reviewsNumber:s,overallStars:t,isShowTotal:n,invert:i}=e;const l=i?"text-white":"text-foreground";return s>0?(0,r.jsxs)("div",{className:"flex items-center",children:[n&&(0,r.jsx)(a.EY,{variant:"lb.md",className:"mr-1 ".concat(l),children:t}),(()=>{const e=[];for(let s=1;s<=5;s+=1)s<=t?e.push((0,r.jsx)(a.In,{icon:"star-full-colored",size:"sm"},s)):s-.5<=t?e.push((0,r.jsx)(a.In,{icon:"star-half-colored",size:"sm"},s)):e.push((0,r.jsx)(a.In,{icon:"star-empty-colored",size:"sm"},s));return e})(),(0,r.jsxs)(a.EY,{className:"ml-2 ".concat(l),children:[s," reviews"]})]}):(0,r.jsx)(a.EY,{className:l,children:"No reviews"})}},39272:(e,s,t)=>{t.d(s,{i1:()=>g,a2:()=>m,Cp:()=>b});var a=t(9950),r=t(16673),n=t(12268),i=t(25862),l=t(90506),o=t(85989),c=t(44414);const d=(0,a.memo)(e=>{let{person:s,isVertical:t}=e;const{firstName:d,lastName:m,picture:u,sportProfiles:p,pulseLevel:x,location:h,gender:f,status:v,username:g,subscriptions:j}=s,y=(0,r.W6)(),N=g||s.uri||s.id,b=(null===h||void 0===h?void 0:h.name)||(null===h||void 0===h?void 0:h.locality)||(null===h||void 0===h?void 0:h.city),w=p.slice(0,4),k=(0,i.e)(w[0]),A=w.length<2,I=(0,o.Z)({gender:f,profileId:s.id,profileStatus:v}),E=(0,a.useCallback)(()=>{y.push("/".concat(N))},[y,N]);return(0,c.jsx)("div",{className:"bg-white rounded-lg shadow-sm border border-border p-4 cursor-pointer hover:shadow-md transition-shadow",onClick:E,children:(0,c.jsxs)("div",{className:"flex items-center ".concat(t?"flex-col":"flex-row"),children:[(0,c.jsx)(n.eu,{badgeText:A?k:"",size:"lg",src:u,pulseLevel:x}),(0,c.jsxs)("div",{className:"flex-1 w-full ".concat(t?"mt-6 text-center":"ml-4 text-left"),children:[(0,c.jsx)("div",{className:"flex flex-wrap mb-2 ".concat(t?"justify-center":"justify-start"),children:w.map(e=>{var s,t,a;const r=(null===(s=e.sportInfo)||void 0===s?void 0:s.uri)||(null===(t=e.sport)||void 0===t?void 0:t.toLowerCase());return r?(0,c.jsx)("img",{className:"w-4 h-4 max-w-4 max-h-4 mr-2",src:"https://rovo.fit/assets/sports/sport-".concat(r,"-icon.png"),alt:(null===(a=e.sportInfo)||void 0===a?void 0:a.name)||e.sport||"sport",loading:"lazy",decoding:"async",onError:e=>{e.target.style.display="none"}},e.id):null})}),(0,c.jsxs)("div",{className:"flex items-center gap-1 mb-2 ".concat(t?"justify-center":""),children:[(0,c.jsx)(n.EY,{className:"whitespace-nowrap overflow-hidden text-ellipsis",variant:"lb.md",children:"".concat(d," ").concat(m)}),(0,c.jsx)(l.A,{subscriptions:j})]}),(I||b)&&(0,c.jsxs)("div",{className:"flex items-center ".concat(t?"justify-center":""),children:[(0,c.jsx)(o.A,{gender:I,profileId:s.id,profileStatus:v}),b&&(0,c.jsx)(n.EY,{className:"whitespace-nowrap overflow-hidden text-ellipsis text-muted-foreground",variant:"pg.sm",children:b})]})]})]})})});d.displayName="PeopleCard";const m=d;var u=t(37039),p=t(16255),x=t(46036),h=t(63734),f=t(30400);const v=(0,u.PA)(e=>{let{group:s}=e;const{joinGroup:t}=f.P,{account:i}=h.userStore,l=(0,r.W6)(),[o,d]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>{l.push("/groups/".concat(s.groupProfile.uri))},[l,s.groupProfile.uri]),u=(0,a.useCallback)(e=>{e.stopPropagation(),t(s.id)},[t,s.id]),{members:v,groupProfile:{sport:g,picture:j,name:y,privacy:N,location:b}}=s,w="PUBLIC"===N,k=null===v||void 0===v?void 0:v.find(e=>e.profileId===i.profileId),A="PENDING"===(null===k||void 0===k?void 0:k.status),I="ACTIVE"===(null===k||void 0===k?void 0:k.status);
1return(0,c.jsxs)(p.Zp,{className:"overflow-hidden cursor-pointer hover:shadow-md transition-shadow",onClick:m,children:[(0,c.jsxs)("div",{className:"relative w-full h-[152px]",children:[!o&&j?(0,c.jsx)("img",{src:j,alt:y,className:"w-full h-full object-cover object-center",onError:()=>d(!0)}):(0,c.jsx)(x.S,{className:"w-full h-full"}),(0,c.jsx)(n.EY,{variant:"lb.sm",className:"text-white self-end p-2 absolute bottom-0 left-0",style:{textShadow:"0 1px 2px rgba(0,0,0,0.5)"},children:g})]}),(0,c.jsxs)(p.Wu,{className:"p-3",children:[(0,c.jsx)(n.EY,{truncate:!0,variant:"lb.md",className:"mb-1",children:y}),(0,c.jsx)("div",{className:"flex items-center",children:w?(0,c.jsx)(n.EY,{children:(()=>{const e=(null===v||void 0===v?void 0:v.length)||s.totalPeople||0;return e>1?"".concat(e," players"):"1 player"})()}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.In,{icon:"lock-alt"}),(0,c.jsx)(n.EY,{className:"ml-1",children:"Private group"})]})}),(0,c.jsx)(n.EY,{className:"ml-2 text-muted-foreground",children:null===b||void 0===b?void 0:b.name})]}),(0,c.jsx)("div",{className:"px-3 pb-3",children:(0,c.jsx)(n.$n,{fullWidth:!0,variant:"outline",disabled:I||A,onClick:u,children:A?"Requested":I?"Joined":"Join"})})]})}),g=(0,a.memo)(v);var j=t(33154),y=t(29396),N=t(68339);const b=e=>{let{venue:s}=e;const{venueStore:t}=(0,N.g)(),{getSelectedVenue:a}=t,{venueName:i,media:l,location:{address:o},reviewSummary:{overallStars:d,reviewsNumber:m},facilityGroups:u,pageInfo:p,canCallToBook:x,phoneNumber:h}=s,f=u.some(e=>e.onlineBookingEnabled),v=l.length&&l[0].url,g=(0,r.W6)();return(0,c.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-border overflow-hidden cursor-pointer hover:shadow-md transition-shadow",onClick:e=>{e.stopPropagation(),g.push("/venues/".concat(p.uri)),a(p.uri)},children:[(0,c.jsx)("div",{className:"w-full h-[140px] bg-no-repeat bg-cover bg-center rounded-t-lg",style:{backgroundImage:"url(".concat(v||y,")")}}),(0,c.jsxs)("div",{className:"p-3",children:[(0,c.jsx)(n.EY,{truncate:!0,variant:"lb.lg",children:i}),(0,c.jsx)(j.A,{isShowTotal:!0,overallStars:d,reviewsNumber:m}),(0,c.jsxs)("div",{className:"flex items-center mt-3",children:[(0,c.jsx)("div",{className:"min-w-5 flex items-center",children:(0,c.jsx)(n.In,{icon:"location"})}),(0,c.jsx)(n.EY,{className:"flex-1",truncate:!0,children:o})]})]}),(0,c.jsx)("div",{className:"flex justify-center px-3 pb-3",children:(0,c.jsx)(n.$n,{fullWidth:!0,variant:"outline",onClick:e=>{e.stopPropagation(),f&&g.push("/venues/".concat(p.uri,"?booking=true"))},children:f?"Book instantly":x&&h?(0,c.jsx)("a",{href:"tel:".concat(h),children:"Call to book"}):"View"})})]})};t(3734);var w=t(39512),k=t(73784),A=t(88392),I=t(87296),E=t(94992);const S=e=>{let{children:s,className:t=""}=e;return(0,c.jsx)("div",{className:"flex overflow-auto pb-4 min-h-[56px] gap-4 ".concat(t),children:s})},T=e=>{let{children:s,className:t=""}=e;return(0,c.jsx)("div",{className:"flex gap-1 ".concat(t),children:s})};var z=t(42618);(0,u.PA)(e=>{var s,t,l;let{activity:o,hideTag:d,isWhiteText:m}=e;const{account:{profileId:u}}=h.userStore,{sportInfo:p,name:x,accepted:f,discoverable:v,players:g,minPlayer:j,maxPlayer:y,minRating:N,maxRating:b,start:C,end:P,isRanked:Y,timezone:O,recurring:L,locations:M,courtBooked:W,id:R,sport:D}=o,F=(0,a.useMemo)(()=>"WORKOUT_PARTY"===D,[D]),G=(0,w.Wj)(C,O,"cccc MMM dd"),B=(0,w.Wj)(C,O,"h:mm a"),V=(0,w.Wj)(P,O,"h:mm a"),q=M[0],Z=L?L.rrule.split(":")[1].split(";"):null,K=Z?Z[0].split("=")[1]:null,_=(0,a.useMemo)(()=>(0,A.n8)(o),[o]),U=(0,a.useMemo)(()=>(0,A.N2)(o)?(0,A.qo)(o):Array.from({length:Math.max(y-_.length,0)},(e,s)=>({key:"open-".concat(s),slotType:"open"})),[o,_.length,y]),H=1!==N||7!==b,$=(null===(s=g.find(e=>"ORGANISER"===e.role))||void 0===s?void 0:s.profileId)===u,J=(0,E.M1)(o),Q=(0,E.pe)(E.gT.HOSTING),X=(0,E.pe)(E.gT.RANKED),ee=(0,k.Yb)(o),se=(0,k.sb)(o),te=(0,r.W6)(),ae=m?"text-white":"text-foreground",re=m?"text-white":"text-muted-foreground";return(0,c.jsxs)("div",{onClick:()=>te.push("/plays/".concat(R)),className:"cursor-pointer",children:[(0,c.jsxs)("div",{className:"flex items-center mb-2",children:[(0,c.jsx)(n.EY,{variant:"lb.sm",className:"capitalize ".concat(re),children:p.name.toLowerCase()}),(0,c.jsx)("img",{className:"ml-2 w-4",src:"https://rovo.fit/assets/sports/sport-".concat(p.uri,"-icon.png"),alt:p.name,loading:"lazy",decoding:"async"}),(0,c.jsx)(z.A,{activity:o,className:"ml-2 shrink-0"}),(0,c.jsx)("div",{className:"ml-auto font-medium border border-primary px-2 py-1 rounded-full",children:(0,c.jsx)(n.EY,{variant:"lb.sm",className:"text-primary",children:H&&null!==N&&null!==b?"Lv ".concat(N===b?N:"".concat(N,"-").concat(b)):"All level"})})]}),(0,c.jsxs)(n.EY,{variant:"lb.lg",className:"whitespace-nowrap overflow-hidden text-ellipsis ".concat(ae),children:[Y&&"Ranked game: ",x]}),v&&(0,c.jsx)(n.EY,{className:"mb-2 ".concat(ae),variant:"pg.md",children:"Public Activity"}),(0,c.jsxs)(S,{children:[_.map(e=>{let{profile:{id:s,picture:t,pulseLevel:a,sportProfile:r,sportProfiles:l},reserved:o}=e;const d=r||(null===l||void 0===l?void 0:l.find(e=>e.sport===D)),m=(0,i.e)(d);return(0,c.jsx)(n.eu,{size:"md",src:t,badgeText:m,pulseLevel:a},s)}),U.map(e=>{if("open"===e.slotType)return(0,c.jsx)(n.vm,{size:"md"},"".concat(R,"-").concat(e.key,"-empty-player"));const s=(0,I.nf)(e.slotType);return(0,c.jsx)("div",{className:"w-12 h-12 rounded-full border border-dashed flex items-center justify-center",style:{backgroundColor:(0,I.h9)(e.slotType),borderColor:"".concat(s,"66")},children:(0,c.jsx)(n.In,{icon:e.slotType,size:"sm",stroke:"female"===e.slotType?"pinkEnergetic":"preservingBlue"})},"".concat(R,"-").concat(e.key,"-empty-player"))})]}),(0,c.jsx)(n.EY,{variant:"pg.md",className:"mb-1 ".concat(ae),children:"".concat(g.filter(e=>f.includes(e.profile.id)||e.reserved).length,"/").concat(y," Going - Min ").concat(j," to start")}),ee&&(0,c.jsx)("div",{className:"flex items-center mb-2",children:(0,c.jsxs)(n.EY,{variant:"lb.md",className:ae,children:[se,!(0,k.jm)(o)&&(0,c.jsx)(c.Fragment,{children:"\xa0/ person"})]})}
1),!d&&(0,c.jsxs)(T,{children:[$&&(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium",style:Q,children:"Host"}),Y&&(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium",style:X,children:"Ranked game"}),J&&(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium",style:(0,E.P3)(J.purpose),children:J.label})]}),(0,c.jsx)("div",{className:"h-px my-3 ".concat(m?"bg-white":"bg-border")}),(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)(n.In,{icon:"time",size:"md"}),(0,c.jsxs)("div",{className:"ml-2",children:[(0,c.jsxs)(n.EY,{as:"span",variant:"pg.md",className:ae,children:[G,", \xa0"]}),(0,c.jsxs)(n.EY,{as:"span",variant:"pg.md",className:ae,children:[B," - ",V]})]})]}),(0,c.jsx)(n.EY,{className:"ml-7 mb-1 ".concat(re),variant:"lb.md",children:K?"Repeat ".concat(K.toLowerCase()):"One time activity"}),(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)(n.In,{icon:"location",stroke:m?"white":"secondaryText",size:"md"}),W?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.EY,{className:"ml-2 ".concat(ae),variant:"pg.md",children:"Court Booked"}),(0,c.jsx)("span",{className:"w-1 h-1 bg-current rounded-full mx-2"}),(0,c.jsx)(n.EY,{variant:"pg.md",className:ae,children:F?"Online":(null===q||void 0===q||null===(t=q.venueDetail)||void 0===t?void 0:t.venueName)||(null===q||void 0===q?void 0:q.name)})]}):(0,c.jsx)(n.EY,{variant:"pg.md",className:"ml-2 ".concat(ae),children:F?"Online":(null===q||void 0===q||null===(l=q.venueDetail)||void 0===l?void 0:l.venueName)||(null===q||void 0===q?void 0:q.name)})]})]})})},39512:(e,s,t)=>{t.d(s,{$X:()=>d,Ds:()=>i,Wj:()=>r,cK:()=>l,ny:()=>c,sB:()=>o,zQ:()=>n});var a=t(74166);const r=(e,s,t)=>{if(!e)return"";const r=a.c9.fromISO(e);return r.isValid?r.setZone(s||"local").toFormat(t||"DDDD"):(console.warn("Invalid date passed to fromServer:",e),"")},n=(e,s,t)=>a.c9.fromFormat(e,s,{zone:t}).toUTC().toISO(),i=(e,s,t)=>{if(!e||!s)return 0;const r=a.c9.fromISO(e),n=a.c9.fromISO(s);if(!r.isValid||!n.isValid)return 0;const i=n.diff(r,t||"minutes").toObject()[t||"minutes"];return i?Math.abs(i):0},l=(e,s)=>{if(!e)return!1;const t=a.c9.fromISO(e);return!!t.isValid&&a.c9.local().hasSame(t.setZone(s||"local"),"day")},o=e=>a.c9.local().zoneName===e,c=(e,s)=>r(e,"","D")===r(s,"","D"),d=e=>{if(!e)return"";const s=a.c9.fromISO(e);if(!s.isValid)return"";const t=a.c9.local().diff(s,["year","month","day","hour","minute"]).toObject(),{years:r,months:n,days:i,hours:l,minutes:o}=t;if(r)return r>1?"".concat(r," years ago"):"a year ago";if(n)return n>1?"".concat(n," months ago"):"a months ago";if(i){const e=l&&l>12?i+1:i;return e>1?"".concat(e," days ago"):"a day ago"}if(l){const e=o&&o>30?l+1:l;return e>1?"".concat(e," hours ago"):"an hour ago"}return o?Math.floor(o||0)>1?"".concat(Math.floor(o||0)," minutes ago"):"a moment ago":""}},46036:(e,s,t)=>{t.d(s,{S:()=>i});t(9950);var a=t(29975),r=t(39866),n=t(44414);const i=e=>{let{className:s}=e;return(0,n.jsx)("div",{className:(0,r.cn)("flex items-center justify-center bg-gradient-to-br from-[#5e60ce] to-[#2bc0c7]",s),children:(0,n.jsx)("div",{className:"h-[55%] aspect-square rounded-full border-[1.5px] border-white/40 flex items-center justify-center",children:(0,n.jsx)(a.A,{className:"w-[60%] h-[60%] text-white/40",strokeWidth:1.5})})})}},85989:(e,s,t)=>{t.d(s,{A:()=>c,Z:()=>o});t(9950);var a=t(27527),r=t(83604),n=t(87296),i=t(39866),l=t(44414);const o=e=>{let{gender:s,profileId:t,profileStatus:a}=e;const r=null===t||void 0===t?null:Number(t);return"female"!==s&&"male"!==s||"SHADOW"===(null===a||void 0===a?void 0:a.toUpperCase())||null!==r&&Number.isFinite(r)&&r<0?null:s},c=e=>{let{gender:s,profileId:t,profileStatus:c,size:d=14,includeEndSpacing:m=!0,className:u}=e;const p=o({gender:s,profileId:t,profileStatus:c});if(!p)return null;const x="female"===p?a.h:r.h,h="female"===p?"Female":"Male";return(0,l.jsx)("span",{role:"img","aria-label":h,className:(0,i.cn)("inline-flex shrink-0 items-center justify-center",u),style:{color:(0,n.nf)(p),height:d,marginRight:m?"female"===p?2:4:0,width:d},children:(0,l.jsx)(x,{"aria-hidden":"true",focusable:"false",className:"h-full w-full [&_path]:fill-current"})})}}}]);
2//# sourceMappingURL=5313.5b88f3c2.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.