PageSourceSearch

https://bowtiesports.com/assets/GlobalAudioPlayer-Cnva-v-s.js

js bowtiesports.com collected 2026-10-07 02:27:58 UTC 5,742 bytes, 11 lines download raw bytes

1import{j as e}from"./react-vendor-DUhHROXo.js";import{m as w,n as v,o as s,C,X as u,p,j as z}from"./index-BLtzf0SR.js";import{S as P}from"./slider-CwTYRxYy.js";import{P as f}from"./pause-CSl3I02N.js";import{C as S}from"./chevron-up-B89bkR-F.js";import"./router-vendor-Dz9PdDzH.js";import"./index-BdQq_4o_.js";import"./index-O12prPmO.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const j=w("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const g=w("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);function n(a){if(!Number.isFinite(a))return"0:00";const i=Math.floor(a/60),l=Math.floor(a%60);return`${i}:${l.toString().padStart(2,"0")}`}const d=[1,1.25,1.5,1.75,2];function L(){const{track:a,playing:i,currentTime:l,duration:r,playbackRate:m,expanded:b,togglePlay:x,seek:N,skip:t,setRate:y,setExpanded:o,close:h}=v();if(!a)return null;const k=()=>{const c=d.indexOf(m);y(d[(c+1)%d.length])};return b?e.jsxs("div",{role:"dialog","aria-label":"Now playing",className:"fixed inset-0 z-[60] flex flex-col bg-background",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[e.jsx(s,{variant:"ghost",size:"icon",onClick:()=>o(!1),"aria-label":"Minimize player",children:e.jsx(C,{className:"h-5 w-5"})}),e.jsx("span",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Now Playing"}),e.jsx(s,{variant:"ghost",size:"icon",onClick:h,"aria-label":"Close player",children:e.jsx(u,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-6 gap-6",children:[e.jsx("div",{className:"aspect-square w-full max-w-sm rounded-2xl overflow-hidden bg-muted shadow-2xl",children:a.artworkUrl?e.jsx("img",{src:a.artworkUrl,alt:a.title,className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-primary/20 to-primary/5"})}),e.jsxs("div",{className:"text-center space-y-1 max-w-md",children:[e.jsx("h2",{className:"text-xl font-bold leading-tight",children:a.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a.artist??"D. Orlando Ledbetter"})]}
11),e.jsxs("div",{className:"w-full max-w-md space-y-2",children:[e.jsx(P,{value:[l],max:r||100,step:1,onValueChange:c=>N(c[0]),"aria-label":"Seek"}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:n(l)}),e.jsxs("span",{children:["-",n(Math.max(0,r-l))]})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-6",children:[e.jsx(s,{variant:"ghost",size:"icon",className:"h-14 w-14",onClick:()=>t(-15),"aria-label":"Back 15 seconds",children:e.jsx(j,{className:"h-6 w-6"})}),e.jsx(s,{size:"icon",className:"h-16 w-16 rounded-full",onClick:x,"aria-label":i?"Pause":"Play",children:i?e.jsx(f,{className:"h-7 w-7"}):e.jsx(p,{className:"h-7 w-7 ml-0.5"})}),e.jsx(s,{variant:"ghost",size:"icon",className:"h-14 w-14",onClick:()=>t(30),"aria-label":"Forward 30 seconds",children:e.jsx(g,{className:"h-6 w-6"})})]}),e.jsxs(s,{variant:"outline",size:"sm",onClick:k,className:"rounded-full",children:[m,"x speed"]})]})]}):e.jsxs("div",{role:"region","aria-label":"Mini audio player",className:z("fixed left-0 right-0 bottom-0 z-50 border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80","shadow-[0_-4px_16px_-8px_hsl(var(--foreground)/0.15)]"),children:[e.jsx("div",{className:"absolute left-0 right-0 top-0 h-0.5 bg-primary/20","aria-hidden":"true",children:e.jsx("div",{className:"h-full bg-primary transition-[width] duration-150",style:{width:r?`${l/r*100}%`:"0%"}})}),e.jsxs("div",{className:"mx-auto flex max-w-6xl items-center gap-3 px-3 py-2 sm:gap-4 sm:px-4 sm:py-3",children:[e.jsxs("button",{type:"button",onClick:()=>o(!0),className:"flex min-w-0 flex-1 items-center gap-3 text-left","aria-label":"Expand player",children:[e.jsx("div",{className:"h-12 w-12 flex-shrink-0 overflow-hidden rounded-md bg-muted sm:h-14 sm:w-14",children:a.artworkUrl?e.jsx("img",{src:a.artworkUrl,alt:"",className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-primary/30 to-primary/10"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-semibold",children:a.title}),e.jsxs("div",{className:"truncate text-xs text-muted-foreground",children:[n(l)," / ",n(r)]})]})]}),e.jsxs("div",{className:"flex items-center gap-1 sm:gap-2",children:[e.jsx(s,{variant:"ghost",size:"icon",className:"hidden h-10 w-10 sm:inline-flex",onClick:()=>t(-15),"aria-label":"Back 15 seconds",children:e.jsx(j,{className:"h-5 w-5"})}),e.jsx(s,{size:"icon",className:"h-11 w-11 rounded-full",onClick:x,"aria-label":i?"Pause":"Play",children:i?e.jsx(f,{className:"h-5 w-5"}):e.jsx(p,{className:"h-5 w-5 ml-0.5"})}),e.jsx(s,{variant:"ghost",size:"icon",className:"hidden h-10 w-10 sm:inline-flex",onClick:()=>t(30),"aria-label":"Forward 30 seconds",children:e.jsx(g,{className:"h-5 w-5"})}),e.jsx(s,{variant:"ghost",size:"icon",className:"h-10 w-10",onClick:()=>o(!0),"aria-label":"Expand player",children:e.jsx(S,{className:"h-5 w-5"})}),e.jsx(s,{variant:"ghost",size:"icon",className:"hidden h-10 w-10 sm:inline-flex",onClick:h,"aria-label":"Close player",children:e.jsx(u,{className:"h-5 w-5"})})]})]})]})}export{L as GlobalAudioPlayer};

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.