PageSourceSearch

https://fit4tennis.com/_next/static/chunks/4311-12a3fd504f2d1484.js

js fit4tennis.com collected 2026-09-24 14:14:15 UTC 8,108 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311],{2157:(e,t,r)=>{r.d(t,{FitnessDomainRails:()=>h});var s=r(40264),n=r(7837),a=r(71563),i=r.n(a),o=r(17671),l=r(4678),d=r(8164),c=r(36932);let u={agility:"Sharpen your footwork",power:"Build explosive power",mobility:"Open up your movement"},m={agility:"agility",power:"power",mobility:"mobility"};function h(){let[e,t]=(0,c.useState)(null),[r,a]=(0,c.useState)(!0);if((0,c.useEffect)(()=>{fetch("/api/fitness-recommendations").then(e=>e.ok?e.json():null).then(e=>{e&&"string"==typeof e.domain&&t(e)}).catch(()=>{}).finally(()=>a(!1))},[]),r)return(0,s.jsx)("div",{className:"bg-charcoal rounded-2xl border border-off-white/10 p-5",children:(0,s.jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,s.jsx)("div",{className:"h-4 w-40 rounded bg-dark-foundation"}),(0,s.jsx)("div",{className:"h-3 w-3/4 rounded bg-dark-foundation"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,s.jsx)("div",{className:"aspect-[4/3] rounded-xl bg-dark-foundation"}),(0,s.jsx)("div",{className:"aspect-[4/3] rounded-xl bg-dark-foundation"}),(0,s.jsx)("div",{className:"aspect-[4/3] rounded-xl bg-dark-foundation"}),(0,s.jsx)("div",{className:"aspect-[4/3] rounded-xl bg-dark-foundation"})]})]})});if(!e)return null;let h=u[e.domain],f=e.rail.length>0;return(0,s.jsxs)("div",{className:"bg-charcoal rounded-2xl border border-off-white/10 p-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"mt-0.5 flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-xl bg-performance-yellow/10",children:(0,s.jsx)(l.O,{name:m[e.domain],className:"h-5 w-5 text-performance-yellow"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-performance-yellow text-xs font-medium tracking-wider mb-1",children:e.coldStart?"START HERE":"YOUR FITNESS BRAIN"}),(0,s.jsx)("h2",{className:"text-off-white text-lg font-display leading-tight",children:h})]})]}),(0,s.jsxs)(i(),{href:"/dashboard/fitness-score",className:"text-sm text-steel-gray hover:text-performance-yellow transition-colors flex items-center gap-1 flex-shrink-0",children:[e.coldStart?"Take the test":"Your score"," ",(0,s.jsx)(l.O,{name:"arrowRight",className:"h-4 w-4"})]})]}),(0,s.jsx)("p",{className:"text-steel-gray text-sm mb-5 leading-relaxed",children:e.reason}),!f&&(0,s.jsx)("p",{className:"text-steel-gray text-sm text-center py-4",children:e.coldStart?"Record your score and we'll fill this rail with exactly what you should work on.":"No sessions match this focus area yet. Browse the library to pick your next session."}),f&&(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:e.rail.map((e,t)=>{let r=[function(e){if(!e)return"";let t=Math.floor(e/60);if(t<60)return`${t}m`;let r=Math.floor(t/60),s=t%60;return s?`${r}h ${s}m`:`${r}h`}(e.duration_seconds),e.level].filter(Boolean).join(" \xb7 "),a=e.locked?"/pricing":"/dashboard/videos";return(0,s.jsx)(o.P.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.05*Math.min(t,6)},children:(0,s.jsx)(i(),{href:a,className:"block group",children:(0,s.jsxs)("div",{className:"relative aspect-[4/3] rounded-xl overflow-hidden",children:[(0,s.jsx)(d.nT,{src:(0,n.tQ)(e.thumbnail_url,null)||"/placeholder.svg",fallbackSrc:e.thumbnail_url,alt:e.title??"Library video",sizes:"(max-width: 768px) 50vw, 25vw",className:"absolute inset-0 h-full w-full object-cover group-hover:scale-105 transition-transform duration-500"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-foundation via-dark-foundation/40 to-transparent"}),e.locked&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-dark-foundation/40",children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full bg-dark-foundation/80 px-3 py-1.5",children:[(0,s.jsx)(l.O,{name:"lock",className:"h-3.5 w-3.5 text-performance-yellow"}),(0,s.jsx)("span",{className:"text-off-white text-xs font-medium",children:"Unlock"})]})}),(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-3",children:[(0,s.jsx)("p",{className:"text-off-white text-sm font-medium line-clamp-2 group-hover:text-performance-yellow transition-colors",children:e.title??"Untitled"}),r&&(0,s.jsx)("p",{className:"text-steel-gray text-xs mt-1",children:r})]})]})})},e.asset_id)})})]})}},7837:(e,t,r)=>{function s(e,t={}){if(!e)return null;let r=`/api/mux/thumb?id=${encodeURIComponent(e)}`;return t.context?`${r}&context=${encodeURIComponent(t.context)}`:r}function n(e,t,r){if(r)return r;if(e&&!/uscreen/i.test(e))return e;let n=s(t);return n||(e??null)}function a(e,t,r={}){let n="string"==typeof e&&""!==e.trim()?e:null,i=s(t,{context:r.context}),o=["string"==typeof r.posterUrl&&""!==r.posterUrl.trim()?r.posterUrl:null,...(null===n||/uscreen/i.test(n))&&"stored"!==r.order?[i,n]:[n,i]],l=new Set;return o.filter(e=>!(null===e||l.has(e))&&(l.add(e),!0))}r.d(t,{HM:()=>a,bg:()=>s,tQ:()=>n})},8164:(e,t,r)=>{r.d(t,{nT:()=>o});var s=r(40264),n=r(15911),a=r(36932);let i=[{hostname:"image.mux.com"},{hostname:"sxcqwfpemyffpwpzofve.supabase.co",pathnamePrefix:"/storage/v1/object/public/posters/",requireEmptySearch:!0},{hostname:"res.cloudinary.com",pathnamePrefix:"/dv033eo0x/image/upload/"},{hostname:"alpha.uscreencdn.com"},{hostname:"**.uscreencdn.com"}];function o({src:e,fallbackSrc:t,alt:r,className:n,sizes:i,priority:d}){let[c,u]=(0,a.useState)(null),m=null!==c&&c===e&&t&&t!==e?t:e,h=m===e?()=>u(e):void 0;return(0,s.jsx)(l,{src:m,alt:r,className:n,sizes:i,priority:d,onError:h})}function l({src:e,alt:t,className:r,sizes:a,priority:o,onError:d}){return!function(e){let t;if(!e||!/^https:\/\//i.test(e))return!1;try{t=new URL(e)}catch{return!1}return"https:"===t.protocol&&i.some(e=>!!function(e,t){if(!t.includes("*"))return e===t;let r=t.replace(/^\*+/,"");return e.endsWith(r)&&e.length>r.length}(t.hostname,e.hostname)&&(!e.pathnamePrefix||!!t.pathname.startsWith(e.pathnamePrefix))&&(!e.requireEmptySearch||""===t.search))}(e)?(0,s.jsx)("img",{src:e,alt:t,className:r,loading:"lazy",decoding:"async",onError:d}):(0,s.jsx)(n.default,{src:e,alt:t,width:640,height:360,sizes:a,className:r,priority:o,onError:d})}},44536:(e,t,r)=>{r.d(t,{$:()=>l});var s=r(40264);r(36932);var n=r(25587),a=r(53744),i=r(51191);let o=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",brand:"bg-yellow text-navy font-semibold hover:bg-yellow/90 focus-visible:ring-yellow/50"},size:{default:"min-h-11 px-4 py-2 has-[>svg]:px-3",sm:"min-h-11 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"min-h-11 rounded-md px-6 has-[>svg]:px-4",icon:"size-11","icon-sm":"size-11","icon-lg":"size-12"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t,size:r,asChild:a=!1,...d}){let c=a?n.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,i.cn)(o({variant:t,size:r,className:e})),...d})}},51191:(e,t,r)=>{r.d(t,{cn:()=>a});var s=r(3934),n=r(74066);function a(...e){return(0,n.QP)((0,s.$)(e))}}}]);

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.