PageSourceSearch

https://playary.com/_next/static/chunks/2240-5ee4e2fbb8ded262.js

js playary.com collected 2026-09-24 10:40:57 UTC 11,500 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2240],{5963:(e,a,t)=>{t.d(a,{default:()=>l});var s=t(51362),r=t(12115);let l=function(){let{theme:e,setTheme:a}=(0,s.D)();return(0,r.useEffect)(()=>{"dark"===e&&a("light")},[e,a]),null}},24074:(e,a,t)=>{t.d(a,{m:()=>d});var s=t(95155),r=t(12115),l=t(74466),n=t(59434);let i=(0,l.F)("mx-auto px-4 sm:px-6 lg:px-8",{variants:{variant:{fullMobileConstrainedPadded:"max-w-7xl sm:px-6 lg:px-8",constrainedPadded:"max-w-7xl px-4 sm:px-6 lg:px-8",fullMobileBreakpointPadded:"container mx-auto sm:px-6 lg:px-8",breakpointPadded:"container mx-auto px-4 sm:px-6 lg:px-8",narrowConstrainedPadded:"max-w-7xl px-4 sm:px-6 lg:px-8 max-w-3xl"}},defaultVariants:{variant:"narrowConstrainedPadded"}}),d=e=>{let{asChild:a,className:t,children:l,variant:d,...o}=e,c=a?r.Fragment:"div",x=(0,n.cn)(i({variant:d}),t);return(0,s.jsx)(c,{className:x,...o,children:"narrowConstrainedPadded"===d?(0,s.jsx)("div",{className:"mx-auto max-w-3xl",children:l}):l})}},27134:(e,a,t)=>{t.d(a,{default:()=>P});var s=t(95155),r=t(17652),l=t(6874),n=t.n(l),i=t(12115),d=t(35978),o=t(71470),c=t(95393),x=t(24074),u=t(96848);t(66766);let m={type:"spring",mass:.5,damping:11.5,stiffness:100,restDelta:.001,restSpeed:.001},h=e=>{let{setActive:a,active:t,item:r,children:l,reactNode:n}=e;return(0,s.jsxs)("div",{onMouseEnter:()=>a(r),className:"relative ",onClick:()=>a(r),children:[n||(0,s.jsx)(u.P.p,{transition:{duration:.3},className:"cursor-pointer text-white hover:opacity-[0.9] dark:text-white",children:r}),null!==t&&(0,s.jsx)(u.P.div,{initial:{opacity:0,scale:.85,y:10},animate:{opacity:1,scale:1,y:0},transition:m,children:t===r&&(0,s.jsx)("div",{className:"absolute top-[calc(100%_+_0.8rem)] left-1/2 transform -translate-x-1/2 pt-4",children:(0,s.jsx)(u.P.div,{transition:m,layoutId:"active",className:"bg-white dark:bg-black/70 backdrop-blur-sm dark:text-white rounded-sm overflow-hidden border  shadow-default",children:(0,s.jsx)(u.P.div,{layout:!0,className:"w-max h-full p-4",children:l})})})})]})},f=e=>{let{setActive:a,children:t}=e;return(0,s.jsx)("nav",{onMouseLeave:()=>a(null),className:"relative rounded-sm flex justify-center space-x-4 px-8 py-4 ",children:t})}
1,p=e=>{let{children:a,isActive:t,curveColor:r="#e50917",...l}=e;return(0,s.jsx)(n(),{...l,className:"font-bold ".concat(t?"md:curve-underline":""),style:t?{"--curve-color":r}:void 0,children:a})};var g=t(9494),j=t(27146),v=t(44415),w=t(12388),b=t(28009),N=t(59434),y=t(26722);let k=function(e){let{fill:a}=e;return(0,s.jsx)("div",{className:"w-24",children:(0,s.jsx)(y.A,{className:"h-12 w-12 ",fill:a||"black"})})},C=[{name:"download",href:"/download",target:"_self"},{name:"features",href:"/features",target:"_self"},{name:"forArtists",href:"https://artists.playary.com",target:"_blank"},{name:"forPodcasters",href:"https://podcasters.playary.com",target:"_blank"},{name:"advertising",href:"/ads",target:"_self"},{name:"support",href:"/support",target:"_self"}],P=function(){let{userInfo:e}=(0,v.J)(),a=(0,r.c3)("landingPage.home.navbar"),t=(0,w.a8)(),[l,u]=(0,i.useState)(null),[m,y]=(0,i.useState)(!1),[P,z]=(0,i.useState)(!1),[_,E]=(0,i.useState)(!1),S=["/","/download","/about-playary","/features","/promo"].includes(t),L=()=>{if(S&&!m)return"white"};(0,i.useEffect)(()=>{let e=()=>{E(!0)};return"complete"===document.readyState?e():window.addEventListener("load",e),()=>{window.removeEventListener("load",e)}},[]),(0,i.useEffect)(()=>{let e=()=>{window.scrollY>50?y(!0):y(!1)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let $=()=>(0,s.jsx)(s.Fragment,{children:C.map((e,r)=>(0,s.jsx)(p,{href:e.href,target:e.target,curveColor:L(),isActive:t===e.href||t.startsWith(e.href+"/"),children:a(e.name)},r))}),R=()=>(0,s.jsx)(h,{setActive:u,active:l,item:"user",reactNode:(0,s.jsx)(o.eu,{className:"cursor-pointer",children:(0,s.jsx)(o.q5,{className:"bg-secondary text-foreground border border-primary",children:null==e?void 0:e.firstName[0]})}),children:(0,s.jsxs)("div",{className:"flex flex-col space-y-4 text-sm",children:[(0,s.jsx)(n(),{href:"/manage/dashboard","aria-label":a("dashboard"),
1children:(0,s.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)(d.default,{icon:"hugeicons:dashboard-square-03"}),(0,s.jsx)("p",{children:a("dashboard")})]})}),(0,s.jsx)(n(),{href:"/manage/index","aria-label":a("settings"),children:(0,s.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)(d.default,{icon:"hugeicons:settings-01"}),(0,s.jsx)("p",{children:a("settings")})]})}),(0,s.jsxs)(n(),{href:"/account/logout?returnurl=".concat(t.startsWith("/manage")?"/":t),className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)(d.default,{icon:"hugeicons:logout-03"}),(0,s.jsx)("p",{children:a("logout")})]})]})});return _?(0,s.jsx)("div",{className:(0,N.cn)("fixed top-0 w-full z-50 bg-transparent",m&&"dark:bg-black/80 bg-white/80 border-b backdrop-blur-md transition-all"),children:(0,s.jsx)(x.m,{variant:"breakpointPadded",children:(0,s.jsx)(f,{setActive:u,children:(0,s.jsxs)("div",{className:"flex items-center justify-between w-full md:relative",children:[(0,s.jsx)(n(),{href:"/",children:(0,s.jsx)(k,{fill:S&&!m?"white":(!S,"black")})}),(0,s.jsx)("div",{className:(0,N.cn)("hidden md:flex  items-center gap-5 md:absolute md:left-20 xl:left-1/2 xl:-translate-x-1/2 font-bold",m&&"text-black",S&&!m&&"text-white"),children:(0,s.jsx)($,{})}),(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 lg:gap-5",children:[(0,s.jsx)(b.default,{customTrigger:S&&!m?(0,s.jsx)(c.$,{shape:"clear",iconOnly:!0,size:"small",className:"!text-white hover:bg-white hover:!text-zinc-800 transition-all duration-300 group",children:(0,s.jsx)(d.default,{icon:"hugeicons:translate",className:"text-white group-hover:text-zinc-800 !duration-300"})}):(0,s.jsx)(c.$,{shape:"clear",iconOnly:!0,size:"small",className:"",children:(0,s.jsx)(d.default,{icon:"hugeicons:translate",className:"text-zinc-800"})})}),(0,s.jsx)(g.w,{orientation:"vertical",className:(0,N.cn)("h-7",S&&!m?"bg-white/20":(!S,"bg-black/20"))}),e?(0,s.jsx)(R,{}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(n(),{href:"/account/login",children:S&&!m?(0,s.jsxs)(c.$,{shape:"clear",className:"!text-white hover:bg-white hover:!text-zinc-800 transition-all duration-300 group",children:[(0,s.jsx)(d.default,{icon:"hugeicons:logout-03",className:"text-white group-hover:text-zinc-800 !duration-300"}),a("login")]}):(0,s.jsxs)(c.$,{shape:"clear",className:"",children:[(0,s.jsx)(d.default,{icon:"hugeicons:logout-03",className:"text-zinc-800"}),a("login")]})}),(0,s.jsx)(n(),{href:"/account/register",children:(0,s.jsx)(c.$,{shape:"default",circle:!0,className:"lg:min-w-32 bg-white hover:bg-gray-200",children:a("register")})})]})]}),(0,s.jsxs)(j.cj,{open:P,onOpenChange:z,children:[(0,s.jsx)(j.CG,{asChild:!0,children:(0,s.jsx)(c.$,{iconOnly:!0,size:"large",colorScheme:"soft",shape:"clear",className:"md:hidden",children:(0,s.jsx)(d.default,{icon:"hugeicons:menu-01",className:(0,N.cn)("h-5 w-5",S&&!m?"text-white":"text-zinc-800")})})}),(0,s.jsx)(j.h,{side:"right",className:"w-[300px] sm:w-[400px]",children:(0,s.jsxs)("nav",{className:"flex flex-col gap-4",children:[(0,s.jsx)($,{}),(0,s.jsx)(g.w,{className:"my-2"}),e?(0,s.jsx)(R,{}):(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(n(),{href:"/account/login",children:(0,s.jsxs)(c.$,{className:"w-full",shape:"clear",size:"default",children:[(0,s.jsx)(d.default,{icon:"hugeicons:logout-03"}),a("login")]})}),(0,s.jsx)(n(),{href:"/account/register",children:(0,s.jsx)(c.$,{shape:"default",colorScheme:"dark",className:"w-full",children:a("register")})})]}),(0,s.jsx)(b.default,{})]})})]})]})})})}):(0,s.jsx)("div",{className:"h-[65px] bg-transparent w-full fixed top-0 z-50"})}},27146:(e,a,t)=>{t.d(a,{CG:()=>c,Fm:()=>f,Qs:()=>j,XW:()=>p,cj:()=>o,h:()=>h,qp:()=>g});var s=t(95155),r=t(10158),l=t(74466),n=t(12115),i=t(59434),d=t(35978);let o=r.bL,c=r.l9;r.bm;let x=r.ZL,u=n.forwardRef((e,a)=>{let{className:t,...l}=e;return(0,s.jsx)(r.hJ,{className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...l,ref:a})});u.displayName=r.hJ.displayName;let m=(0,l.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),h=n.forwardRef((e,a)=>{let{side:t="right",className:l,hideClose:n,children:o,...c}=e;return(0,s.jsxs)(x,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(r.UC,{ref:a,className:(0,i.cn)(m({side:t}),l),...c,children:[o,!n&&(0,s.jsxs)(r.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(d.default,{icon:"hugeicons:cancel-01",className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=r.UC.displayName;let f=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-2 text-center sm:text-left",a),...t})};f.displayName="SheetHeader";let p=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};p.displayName="SheetFooter";let g=n.forwardRef((e,a)=>{let{className:t,...l}=e;return(0,s.jsx)(r.hE,{ref:a,className:(0,i.cn)("text-lg font-semibold text-foreground",t),...l})});g.displayName=r.hE.displayName;let j=n.forwardRef((e,a)=>{let{className:t,...l}=e;return(0,s.jsx)(r.VY,{ref:a,className:(0,i.cn)("text-sm text-muted-foreground",t),...l})});j.displayName=r.VY.displayName},44415:(e,a,t)=>{t.d(a,{J:()=>i,UserProvider:()=>n});var s=t(95155),r=t(12115);let l=(0,r.createContext)(void 0),n=e=>{let{initialUserInfo:a,children:t}=e,[n,i]=(0,r.useState)(a);return(0,s.jsx)(l.Provider,{value:{userInfo:n,setUserInfo:i},children:t})},i=()=>{let e=(0,r.useContext)(l);if(void 0===e)throw Error("useUser must be used within a UserProvider");return e}},71470:(e,a,t)=>{t.d(a,{eu:()=>i,q5:()=>d});var s=t(95155),r=t(12115),l=t(78513),n=t(59434);let i=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.bL,{ref:a,className:(0,n.cn)("relative flex h-8 w-8 shrink-0 overflow-hidden rounded-full",t),...r})});i.displayName=l.bL.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l._V,{ref:a,className:(0,n.cn)("aspect-square h-full w-full",t),...r})}).displayName=l._V.displayName;let d=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)(l.H4,{ref:a,className:(0,n.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r})});d.displayName=l.H4.displayName}}]);

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.