PageSourceSearch

https://www.yeschat.ai/_next/static/chunks/pages/app/music-10ac4e836f6236a4.js

js yeschat.ai collected 2026-09-25 02:30:53 UTC 58,072 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9818],{45060:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/music",function(){return t(86907)}])},89083:function(e,a,t){"use strict";t.d(a,{x:function(){return d}});var r=t(15311),s=t(20132),l=t(96404),i=t(71943),n=t(88792),o=t(5724),c=t(96367);let d=e=>{let{}=e,{t:a}=(0,o.Z)("app"),[t,d]=(0,s.useState)(!0);return t?(0,r.jsxs)("div",{className:"flex w-full items-center justify-between bg-gradient-to-r from-default-100 via-danger-100 to-secondary-100 px-6 py-2 sm:px-3.5",children:[(0,r.jsx)(c.k,{icon:"music_notice",className:"w-4 fill-yellow-500"}),(0,r.jsxs)("p",{className:"ml-2 text-xs text-[var(--app-text-h2)]",children:[a("expiredPrompt.savedTips"),"\xa0"]}),(0,r.jsx)(l.A,{as:i.O,className:"group relative h-9 flex-shrink-0 overflow-hidden bg-transparent text-small font-normal text-[var(--app-text-h2)]",color:"default",endContent:(0,r.jsx)(n.JO,{className:"flex-none outline-none transition-transform group-data-[hover=true]:translate-x-0.5 [&>path]:stroke-[2]",icon:"solar:arrow-right-linear",width:16}),href:"/pricing",style:{border:"solid 2px transparent",background:"var(--app-state-warning)",backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box"},variant:"bordered",children:a("expiredPrompt.upgrade")}),(0,r.jsx)("div",{className:"flex flex-1 justify-end",children:(0,r.jsxs)(l.A,{isIconOnly:!0,className:"-m-1",size:"sm",variant:"light",onPress:()=>d(!1),children:[(0,r.jsx)("span",{className:"sr-only",children:"Close Banner"}),(0,r.jsx)(n.JO,{className:"text-[var(--app-text-h2)]",icon:"lucide:x",width:20})]})})]}):null}},89190:function(e,a,t){"use strict";t.d(a,{J2:function(){return n},xo:function(){return o},yk:function(){return c}});var r=t(15311),s=t(20132),l=t(95358),i=t(48147);let n=l.fC,o=l.xz;l.ee;let c=s.forwardRef((e,a)=>{let{className:t,align:s="center",sideOffset:n=4,...o}=e;return(0,r.jsx)(l.h_,{children:(0,r.jsx)(l.VY,{ref:a,align:s,sideOffset:n,className:(0,i.cn)("bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...o})})});c.displayName=l.VY.displayName},86907:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return eC},default:function(){return eM}});var r=t(15311),s=t(20132),l=t(33326),i=t.n(l),n=t(5762),o=t(5724),c=t(66887),d=t(27060);t(11135);var p=t(76033),m=t(53138),u=t(49163);t(99903);var x=t(69330),g=t(87322),h=t(14622),f=t(17902),v=t(85510),y=t(77755),j=t(82839),w=t(34601),b=t(43133),N=t(39872);function k(e){let{lyrics:a,isGenerating:t,isEmpty:s,onSelect:l}=e,{t:i}=(0,o.Z)("app");return(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"text-xl text-[var(--app-text-h3)]",children:a.title}),!s&&(0,r.jsxs)("button",{onClick:l,disabled:t,className:"flex max-w-[200px] items-center gap-2 rounded-lg bg-[var(--app-color-primary)] px-4 py-2 text-sm font-medium text-white transition-all hover:bg-[var(--app-color-primary-light)] disabled:opacity-50",children:[(0,r.jsx)(N.Z,{className:"h-4 w-4"}),i("musicPage.lyricsDailog.chooseVersion")]})]}),(0,r.jsx)("div",{className:`h-[300px] rounded-lg border border-[var(--app-gray-light)] bg-slate-200 p-4 text-sm shadow-sm ${s?"":"overflow-y-auto"}`,children:s?(0,r.jsx)("div",{className:"flex h-full items-center justify-center text-[var(--app-gray-medium)]",children:i(t?"musicPage.lyricsDailog.GeneratingLyrics":"musicPage.lyricsDailog.LyricsAppear")}):(0,r.jsx)("pre",{className:"whitespace-pre-wrap font-sans text-base leading-relaxed tracking-wide text-slate-700",children:a.text})})]})}function P(e){let{isGenerating:a,generatedLyrics:t,onSelect:s}=e,{t:l}
1=(0,o.Z)("app"),i=[{title:l("musicPage.lyricsDailog.versionA"),content:""},{title:l("musicPage.lyricsDailog.versionB"),content:""}],n=t.length>0?t:i;return(0,r.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-6",children:n.map((e,l)=>(0,r.jsx)(k,{lyrics:e,isGenerating:a,isEmpty:!t.length,onSelect:()=>s(e)},l))})}var D=t(87621),S=t(61074),L=t(3821);function O(e){let{openDialog:a,setOpenDialog:t,setAppLyrics:l,setAppTitle:i}=e,{appStore:n,userStore:c}=(0,L.o)(),[d,p]=(0,s.useState)(""),[m,u]=(0,s.useState)(!1),[x,g]=(0,s.useState)([]),{t:N}=(0,o.Z)("app"),k=()=>{if(!c.user){c.setOpenLoginPopup(!0);return}m||(u(!0),n.shouldCheckTurnstile("music",async e=>{await S.y.createLyrical(e,{prompt:d}).then(e=>{200===e.code?(g([]),O(e?.data.uuid)):(D.ZP.error(e.msg),u(!1))}).catch(e=>{D.ZP.error(e),u(!1)})}))},O=e=>{let a=setInterval(()=>{S.y.getLyricsByUuid(e).then(e=>{1===e.data.status?(g(e.data.completeData),u(!1),clearTimeout(a)):2===e.data.status&&(D.ZP.error(e.data.failMsg||e.msg),u(!1),clearTimeout(a))}).catch(e=>{console.log(e)})},1500)};return(0,r.jsx)(h.R,{isOpen:a,onClose:()=>t(!1),size:"2xl",scrollBehavior:"inside",classNames:{base:"h-[80%] lg:h-auto",backdrop:"bg-[rgba(0, 0, 0, 0.5)]"},children:(0,r.jsxs)(f.A,{children:[(0,r.jsxs)(v.k,{className:"flex flex-col items-center gap-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(j.Z,{className:"h-5 w-5 text-[var(--color-text-h1)]"}),(0,r.jsx)("span",{className:"text-2xl font-bold text-[var(--color-text-h1)]",children:N("musicPage.lyricsDailog.lyricsTitle")})]}),(0,r.jsx)("p",{className:"text-center text-xs text-[var(--color-text-contrast)]",children:N("musicPage.lyricsDailog.helpPerfect")})]}),(0,r.jsxs)(y.I,{className:"px-6 py-4",children:[(0,r.jsxs)("div",{className:"relative mb-6",children:[(0,r.jsx)("textarea",{value:d,onChange:e=>p(e.target.value),placeholder:N("musicPage.lyricsDailog.shareIdea"),className:"min-h-[100px] w-full resize-none rounded-lg border border-[var(--app-gray-lighter)] bg-[var(--ai-color-background-dark)] p-4 text-sm text-[var(--color-text-primary)] placeholder-gray-400 focus:outline-none focus:ring-1 focus:ring-[#0476b2]"}),(0,r.jsx)("button",{onClick:()=>k(""),disabled:m||!d,className:"absolute bottom-3 right-3 flex cursor-pointer items-center gap-1.5 rounded-lg bg-[var(--app-color-primary)] px-4 py-2 text-sm font-medium text-white transition-all hover:bg-[var(--app-color-primary-light)] hover:text-black",children:m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{className:"h-4 w-4 animate-spin"}),N("musicPage.lyricsDailog.Generate"),"..."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Z,{className:"h-4 w-4"}),N("musicPage.lyricsDailog.Generate")]})})]}),(0,r.jsx)(P,{isGenerating:m,generatedLyrics:x,onSelect:e=>{p(""),l(e.text),i(e.title),t(!1)}})]})]})})}var C=t(25733),M=t(48147);let I=[{name:"Very Slow",info:"e.g., 40-60 BPM"},{name:"Slow",info:"e.g., 60-80 BPM"},{name:"Moderate",info:"e.g., 80-100 BPM"},{name:"Medium",info:"e.g., 100-120 BPM"},{name:"Upbeat",info:"e.g., 120-140 BPM"},{name:"Fast",info:"e.g., 140-160 BPM"},{name:"Very Fast",info:"e.g., 160-180 BPM"},{name:"Hyper",info:"e.g., 180+ BPM"},{name:"Laid-Back",info:""},{name:"Groovy",info:""},{name:"Driving",info:""},{name:"Frantic",info:""},{name:"Steady",info:""},{name:"Swinging",info:""},{name:"Pulsing",info:""},{name:"Erratic",info:""}],R={random:{label:"Random Style",styles:[]},genre:{label:"Genre",styles:["Hip Hop","Jazz","Rock","Indie Pop","Classical","EDM","Country","Blues","Pop","Reggae","Techno","R&B","Metal","Traditional Folk","Ambient","K-Pop","Latin","Salsa","Lo-Fi","Bluegrass","Punk Rock","Soul","Afrobeats","House","Neo Folk","Chillout","Trap","Classic Rock","World Music","Bossa Nova","Funk","Gospel","Ska","Baroque","Romantic (Classical)","Opera","Cool Jazz","Indie Rock","Grunge","Alternative","Drum and Bass","Trance","Dubstep","J-Pop","Bollywood"]},moods:{label:"Moods",styles:["Happy","Sad","Relaxing","Energetic","Melancholic","Uplifting","Dreamy","Nostalgic","Romantic","Chill","Motivational","Dark","Mysterious","Epic","Cinematic","Playful","Introspective","Aggressive","Hopeful","Tense","Serene","Adventurous","Whimsical","Gloomy","Inspirational","Meditative","Party","Sentimental","Dramatic","Soothing"]},voices:{label:"Voices",styles:["Male Vocals","Female Vocals","Androgynous Vocals","Child Vocals","Choir","Harmonized Vocals","Spoken Word","Rap Vocals","Singing-Rapping (Melodic Rap)","Falsetto","Operatic Vocals","Growling","Whispered Vocals","Shouting Vocals","A Cappella","Vocal Effects","Multilingual Vocals","Chanting","Scat Singing"]},tempos:{label:"Tempos",styles:I.map(e=>e.name),stylesWithInfo:I}},T=e=>{let{onStyleSelect:a,selectedStylesInput:t}
1=e,[l,i]=(0,s.useState)(null),[n,o]=(0,s.useState)([]),[c,d]=(0,s.useState)({}),[p,u]=(0,s.useState)(!1),g=(0,s.useRef)(null);(0,s.useEffect)(()=>{void 0!==t&&o(t.split(",").map(e=>e.trim()).filter(e=>e))},[t]);let h=e=>{if("random"===e){let e=Object.entries(R).filter(e=>{let[a]=e;return"random"!==a}).reduce((e,a)=>{let[t,r]=a;return[...e,...r.styles]},[]);if(e.length>0){let t;let r=Math.floor(Math.random()*e.length),s=e[r];n.length>0?(t=[...n]).includes(s)||t.push(s):t=[s],o(t),a(t.join(", "))}}else{let a=c[e];if(p)return;u(!0),setTimeout(()=>{u(!1)},300);let t={};a||(t[e]=!0),d(t),i(a?null:e)}},f=e=>{let t;o(t=n.includes(e)?n.filter(a=>a!==e):[...n,e]),a(t.join(", "))};return(0,r.jsxs)("div",{className:"flex w-full flex-col",children:[(0,r.jsx)("div",{className:"flex w-full flex-wrap gap-2 p-2",children:Object.entries(R).map(e=>{let[a,t]=e;return(0,r.jsx)("button",{onClick:()=>h(a),className:(0,M.cn)("w-fit rounded-full px-3 py-1.5 text-xs font-medium transition-all duration-200","random"===a?"bg-gradient-to-tr from-blue-500 to-sky-500 text-default-50 hover:opacity-90":c[a]?"bg-blue-500 text-default-50":"bg-default-50 text-default-500 hover:bg-default-200"),children:"random"===a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.JO,{icon:"game-icons:card-random",className:"mr-1 inline",width:16}),t.label]}):(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{children:`# ${t.label}`}),(0,r.jsx)(x.JO,{icon:"heroicons:chevron-right",className:(0,M.cn)("inline transition-transform duration-200",c[a]?"rotate-90":""),width:14})]})},a)})}),(0,r.jsx)("div",{className:(0,M.cn)("overflow-hidden transition-all duration-300 ease-in-out",l&&c[l]?"border-t border-default-500/5 opacity-100":"h-0 opacity-0"),children:(0,r.jsx)("div",{ref:g,className:"flex flex-wrap gap-2 p-4",children:l&&R[l]?.styles.map((e,a)=>{let t="tempos"===l&&Array.isArray(R.tempos.stylesWithInfo)?R.tempos.stylesWithInfo.find(a=>a.name===e):null,s=t&&t.info;return r.jsx("div",{className:"inline-flex items-center",children:r.jsxs("button",{onClick:()=>f(e),className:M.cn("inline-flex items-center gap-1 rounded-lg px-3 py-1.5 text-xs font-medium transition-all duration-200",n.includes(e)?"bg-blue-500/10 text-blue-500 ring-1 ring-blue-500":"bg-default-50 text-default-500 hover:bg-default-200"),children:[e,s&&r.jsx(m.e,{content:r.jsx("span",{className:"text-xs !text-black",children:t.info}),placement:"top",children:r.jsx(x.JO,{icon:"heroicons:information-circle",className:"text-default-500",width:16})})]})},e)})})})]})},z=(0,s.forwardRef)((e,a)=>{let{onGenerate:t}=e,{t:l}=(0,o.Z)("app"),{appStore:i,userStore:n,appMusicStore:c}=(0,L.o)();l("musicPage.styleDescription.list",{},{returnObjects:!0});
1let[d,p]=(0,s.useState)(""),[h,f]=(0,s.useState)(""),[v,y]=(0,s.useState)(""),[j,w]=(0,s.useState)(""),[b,N]=(0,s.useState)(!1),[k,P]=(0,s.useState)(!1),[S,M]=(0,s.useState)(!1),I=(0,s.useRef)(null),[R,z]=(0,s.useState)(3e3),[F,Z]=(0,s.useState)(200),[E,J]=(0,s.useState)(200),[_,A]=(0,s.useState)(!1),[U,B]=(0,s.useState)(!1),V=(e,a)=>{let t=0,r=0,s=0;for(let l=0;l<e.length;l++)t<=a&&(r=l,s=t),e.charCodeAt(l)>127?t+=2:t+=1;return{length:t,lastIndex:r,realLength:s}},q=e=>{let a=V(e,3e3);a.length<=3e3?(p(e),z(3e3-a.length)):(p(e.substring(0,a.lastIndex)),z(3e3-a.realLength))},G=e=>{let a=V(e,200);a.length<=200?(f(e),Z(200-a.length)):(f(e.substring(0,a.lastIndex)),Z(200-a.realLength))},H=e=>{let a=e.length;a<=200?(y(e),J(200-a)):(y(e.substring(0,200)),J(0),D.ZP.warning(l("musicPage.inputLimitExceededMessage")))},W=e=>{w(e)},$=()=>{if(k&&!S){if(!d)return D.ZP.error("Please enter lyrics"),!0;if(!v)return D.ZP.error("Please enter Style"),!0;if(!j)return D.ZP.error("Please enter Title"),!0}if(k&&S){if(!v)return D.ZP.error("Please enter Style"),!0;if(!j)return D.ZP.error("Please enter Title"),!0}return!k&&!h&&(D.ZP.error("Please enter lyrics description"),!0)},K=async()=>{if(!i.isLoginAndHasToken()){n.setOpenLoginPopup(!0);return}if(!c.generateLoading){if($()){c.setData("generateLoading",!1);return}try{c.setData("generateLoading",!0),c.setData("createMusicParams",{prompt:k&&!S?d:h,style:v,title:j,customMode:k,instrumental:S}),await t("")}catch(e){c.setData("generateLoading",!1)}}},Y=e=>{if(!e||!e.paramData)return;let a=e.paramData;P(a.customMode||!1),M(a.instrumental||!1),a.customMode?(G(""),q(a.prompt||""),H(a.style||""),W(a.title||"")):(G(a.prompt||""),q(""),H(""),W(""))};return(0,s.useImperativeHandle)(a,()=>({reusePrompt:Y})),(0,r.jsxs)("div",{className:"relative flex h-auto flex-col border-[var(--app-gray-lighter)] px-2 py-4 transition-width lg:h-dvh lg:w-80 lg:!border-r-small lg:px-4 lg:py-6",children:[(0,r.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,r.jsx)("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto pr-2",children:(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-4",children:[(0,r.jsx)("div",{className:"flex w-full items-center justify-between gap-2",children:(0,r.jsxs)("div",{className:"flex w-full items-center justify-between rounded-full border border-[var(--app-gray-lighter)] bg-[rgba(var(--app-color-rgb),0.01)] px-2.5 py-1.5 text-[var(--app-gray-darker)] hover:border-[var(--app-color-primary)]",children:[(0,r.jsx)(g.i,{color:"primary",isSelected:k,onValueChange:e=>{P(e)},id:"custom-mode",size:"sm"}),(0,r.jsx)("span",{className:"text-right text-sm",children:l("musicPage.customMode")})]})}),k&&!S&&(0,r.jsx)("div",{className:"flex w-full flex-col items-start space-y-2",children:(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{className:"mb-2 inline-flex w-full items-center gap-1 text-sm font-medium text-[var(--app-gray-dark)]",children:[l("musicPage.lyricsDescription.title"),(0,r.jsx)(m.e,{content:l("musicPage.styleDescription.hoverTips"),delay:100,closeDelay:200,placement:"bottom",className:"max-w-[200px] break-words",children:(0,r.jsx)(x.JO,{className:"cursor-pointer text-[var(--app-gray-medium)]",icon:"solar:question-circle-linear",width:18})})]}),(0,r.jsxs)("div",{className:(0,u.cn)("relative w-full rounded-lg border bg-[rgba(var(--app-color-rgb),0.01)] p-2 hover:border-[var(--app-color-primary)]",R<=0&&b?"border-[var(--app-state-danger)]":"border-[var(--app-gray-light)]"),children:[(0,r.jsx)("textarea",{ref:I,value:d,onInput:e=>{q(e.target.value)},onFocus:()=>N(!0),onBlur:()=>N(!1),placeholder:l("musicPage.songDescription.lyricsTips"),className:"h-36 w-full overflow-y-auto border-none bg-transparent p-1 text-sm outline-none placeholder:text-[var(--app-gray-medium)] disabled:cursor-not-allowed"}),(0,r.jsxs)("div",{className:"flex h-[30px] w-full items-center justify-end text-right text-xs text-[var(--app-gray-medium)]",children:[(0,r.jsx)("button",{className:"align-center absolute bottom-2 left-2 flex h-6 items-center gap-1 rounded-md bg-[var(--app-color-primary-dark)] px-2 text-xs font-medium text-[var(--app-gray-lightest)] transition-colors duration-200",onClick:()=>A(!0),children:l("musicPage.lyricsDailog.lyricsTitle")}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:(0,u.cn)(R<=0?"font-medium text-[var(--app-text-h1)]":""),children:3e3-R}),(0,r.jsxs)("span",{children:["/",3e3]})]})]})]})]})}),!k&&(0,r.jsxs)("div",{className:"flex w-full flex-col items-start space-y-2",children:[(0,r.jsxs)("div",{className:"inline-flex w-full items-center gap-1 text-sm font-medium text-[var(--app-gray-dark)]",children:[l("musicPage.songDescription.title"),
1(0,r.jsx)(m.e,{content:l("musicPage.songDescription.hoverTips"),delay:100,closeDelay:200,placement:"top",className:"max-w-[200px] break-words",children:(0,r.jsx)(x.JO,{className:"cursor-pointer text-[var(--app-gray-medium)]",icon:"solar:question-circle-linear",width:18})})]}),(0,r.jsxs)("div",{className:(0,u.cn)("relative w-full rounded-lg border bg-[rgba(var(--app-color-rgb),0.01)] p-2 hover:border-[var(--app-color-primary)]",F<=0&&U?"border-[var(--app-state-danger)]":"border-[var(--app-gray-light)]"),children:[(0,r.jsx)("textarea",{ref:I,value:h,onInput:e=>{G(e.target.value)},onFocus:()=>B(!0),onBlur:()=>B(!1),placeholder:l("musicPage.songDescription.tips"),className:"h-36 w-full resize-none overflow-y-auto border-none bg-transparent p-1 text-sm outline-none placeholder:text-[var(--app-gray-medium)] disabled:cursor-not-allowed"}),(0,r.jsxs)("div",{className:"w-full text-right text-xs text-[var(--app-gray-medium)]",children:[(0,r.jsx)("span",{className:(0,u.cn)(F<=0?"font-medium text-[var(--app-state-danger)]":""),children:200-F}),(0,r.jsxs)("span",{children:["/",200]})]})]})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between rounded-full border border-[var(--app-gray-lighter)] bg-[rgba(var(--app-color-rgb),0.01)] px-2.5 py-1.5 text-[var(--app-gray-darker)] hover:border-[var(--app-color-primary)]",children:[(0,r.jsx)(g.i,{checked:S,onValueChange:e=>{M(e)},id:"instrumental",size:"sm"}),(0,r.jsxs)("div",{className:"flex items-center gap-1 text-right text-sm",children:[l("musicPage.instrumental.label"),(0,r.jsx)(m.e,{content:l("musicPage.instrumental.tips"),delay:100,closeDelay:200,placement:"top",children:(0,r.jsx)(x.JO,{className:"cursor-pointer text-[var(--app-gray-medium)]",icon:"solar:question-circle-linear",width:18})})]})]}),k&&(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-4 overflow-y-auto",children:[(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{className:"mb-2 inline-flex w-full items-center gap-1 text-sm font-medium text-[var(--app-gray-dark)]",children:[l("musicPage.placeholder.styleMusic.label"),(0,r.jsx)(m.e,{content:l("musicPage.styleDescription.hoverTips"),delay:100,closeDelay:200,placement:"bottom",className:"max-w-[200px] break-words",children:(0,r.jsx)(x.JO,{className:"cursor-pointer text-[var(--app-gray-medium)]",icon:"solar:question-circle-linear",width:18})})]}),(0,r.jsxs)("div",{className:"relative w-full rounded-lg border border-[var(--app-gray-lighter)] bg-[rgba(var(--app-color-rgb),0.01)] p-2 hover:border-[var(--app-color-primary)]",children:[(0,r.jsx)("textarea",{value:v,onInput:e=>{H(e.target.value)},placeholder:l("musicPage.placeholder.styleMusic.des"),className:"h-24 w-full resize-none overflow-y-auto border-none bg-transparent p-1 text-sm outline-none placeholder:text-[var(--app-gray-medium)] disabled:cursor-not-allowed"}),(0,r.jsxs)("div",{className:"w-full text-right text-xs text-[var(--app-gray-medium)]",children:[200-E,"/",200]}),(0,r.jsx)("div",{className:"mt-2 w-full rounded-xl bg-default-100",children:(0,r.jsx)(T,{onStyleSelect:e=>H(e),selectedStylesInput:v})})]})]}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{className:"mb-2 inline-flex w-full items-center gap-1 text-sm font-medium text-[var(--app-gray-dark)]",children:l("musicPage.placeholder.enterTitle.label")}),(0,r.jsx)("input",{value:j,onChange:e=>W(e.target.value),type:"text",name:"suno-title-music",id:"suno-title-music",className:"w-full resize-none overflow-y-auto rounded-lg border border-[var(--app-gray-light)] bg-transparent p-2 text-sm outline-none placeholder:text-[var(--app-gray-medium)] hover:border-[var(--app-color-primary)] disabled:cursor-not-allowed",placeholder:l("musicPage.placeholder.enterTitle.des")})]})]})]})}),(0,r.jsx)("div",{className:"flex flex-col gap-2 p-2",children:(0,r.jsxs)("button",{onClick:()=>K(""),disabled:c.generateLoading,className:(0,u.cn)("flex w-full items-center justify-center gap-2 rounded-full bg-gradient-to-b from-[var(--app-color-primary-light)] to-[var(--app-color-primary-dark)] p-3 font-semibold text-[var(--app-gray-lightest)] transition duration-500 hover:scale-95"),children:[l("musicPage.generate"),c.generateLoading?(0,r.jsx)(C.Z,{color:"#FFFFFF",margin:0,size:6}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(x.JO,{icon:"ic:outline-auto-awesome",width:14}),i.credit.music]})})]})})]}),(0,r.jsx)(O,{openDialog:_,setOpenDialog:A,setAppLyrics:q,setAppTitle:W})]})});z.displayName="Sidebar";let F=(0,p.Pi)(z);var Z=t(13031);function E(e){let{}=e;return(0,r.jsx)("div",{className:"flex w-full flex-col items-center justify-center gap-2 text-base text-[var(--app-gray-darkest)]",children:(0,r.jsx)("div",{className:"w-full text-center",children:(0,r.jsx)(Z.Z,{image:Z.Z.PRESENTED_IMAGE_SIMPLE})})})}var J=t(87796);function _(e){let{record:a}=e,{t}=(0,o.Z)("app"),{appMusicStore:s}=(0,L.o)();return(0,r.jsxs)("div",{onClick:()=>s.selectRecordSuno(a,null,0,!0),className:"group relative flex w-full items-center justify-between gap-2 rounded-lg border border-transparent p-2 transition duration-500 hover:bg-[var(--app-gray-lightest)] lg:gap-4",children:[(0,r.jsx)("div",{className:"group relative h-16 w-16 cursor-pointer overflow-hidden rounded-md transition duration-500",children:(0,r.jsx)("div",{className:"h-full w-full bg-[var(--app-gray-light)]"})}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",style:{width:"calc(100% - 80px)"},children:[(0,r.jsxs)("div",{className:"inlapp-gray-darkine-flex w-[80%] flex-col items-start md:w-40 lg:w-64",children:[(0,r.jsx)("div",{className:"h-4 w-full rounded bg-[var(--app-gray-light)]"}),(0,r.jsx)("div",{className:"my-0.5 h-4 w-2/3 rounded bg-[var(--app-gray-light)]"}),(0,r.jsx)("p",{className:"line-clamp-1 w-full text-xs text-[var(--app-gray-dark)]",children:a.createTimestamp?new Date(Number(a.createTimestamp)).toLocaleStr
1ing():a.createTime})]}),(0,r.jsx)("div",{className:"inline-flex w-28 items-center justify-end gap-2",children:(0,r.jsx)(J.Z,{height:12,width:2,color:"var(--app-color-primary"})})]})]})}var A=t(89190),U=t(74034),B=t.n(U),V=e=>{let{tags:a,showAllTags:t=!1}=e,[l,i]=(0,s.useState)([]),[n,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(a){let e=a.split(/[,, ]+/).filter(e=>e.trim());!t&&e.length>2?(i(e.slice(0,2)),o(!0)):(i(e),o(!1))}else i([]),o(!1)},[a,t]),(0,r.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-1",children:[l.map((e,a)=>(0,r.jsx)("span",{className:"rounded-full bg-[rgba(var(--app-color-rgb),0.05)] px-2 py-1 text-xs text-[var(--app-gray-dark)]",children:e},`tag-${a}`)),n&&(0,r.jsx)("span",{className:"rounded-full bg-[rgba(var(--app-color-rgb),0.05)] px-2 py-1 text-xs text-[var(--app-gray-dark)]",children:"\xb7\xb7\xb7"})]})},q=t(36037);let G=(0,p.Pi)(e=>{let{key:a,record:t,sidebarRef:l}=e,{t:i}=(0,o.Z)("app"),{appMusicStore:n}=(0,L.o)(),[c,d]=(0,s.useState)(null),p=async(e,a)=>{n.setData("shareData",{recordId:t.id,sharePath:e.shareUrl})},u=(e,a)=>{n.setData("deleteData",{recordId:e,audioIndex:a}),d(null)},g=e=>{l.current&&l.current.reusePrompt(e),d(null)},h=(e,a)=>{if(e.deleteFlag)return null;let s=1===e.isExpire,l=`${t.id}-${a}`===n.selectRecordItem?.recordItemId,o=`more-${t.id}-${a}`;return(0,r.jsxs)("div",{onClick:()=>{n.selectRecordSuno(t,e,a,!0)},className:(0,M.cn)("group relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg border border-transparent p-2 transition duration-500 hover:bg-[var(--app-gray-lightest)] lg:gap-4",l?"bg-[var(--app-gray-lightest)]":""),children:[(0,r.jsxs)("div",{className:(0,M.cn)("relative",s?"h-16 w-16":"aspect-square w-16","overflow-hidden rounded-lg",s?"":"bg-neutral-500/10"),children:[e.imageUrl&&(0,r.jsx)(B(),{src:s?"/images/app/musicExpires.svg":e.imageUrl,alt:"cover",width:100,height:100,unoptimized:!0}),!s&&(0,r.jsx)("span",{className:"bg-[var(--app-gray-lightest)]/10 absolute left-1/2 top-1/2 inline-flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full backdrop-blur-sm",children:e.audioUrl&&(l&&n.isPlaying?(0,r.jsx)(x.JO,{icon:"mage:pause",width:18,className:"cursor-pointer text-slate-100 transition duration-500"}):(0,r.jsx)(x.JO,{icon:"mage:play",width:18,className:"cursor-pointer text-slate-100 transition duration-500"}))})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-1",children:[(0,r.jsxs)("div",{className:"line-clamp-1 flex w-full items-center gap-1 transition duration-500",children:[(0,r.jsx)("p",{className:(0,M.cn)("text-sm font-semibold text-[var(--app-text-h2)]",!s&&"group-hover:text-sky-600",l?"text-sky-600":""),children:e.title}),s?(0,r.jsx)("p",{className:"rounded-full bg-[#fde1ad] px-2 py-0.5 text-xs text-[var(--app-gray-dark)]",children:i("musicPage.expired")}):e.duration&&(0,r.jsxs)("p",{className:"inline-flex items-center gap-1 rounded-full bg-[rgba(var(--app-color-rgb),0.05)] px-2 py-0.5 text-xs text-[var(--app-gray-dark)]",children:[(0,r.jsx)(x.JO,{icon:"streamline:music-equalizer",width:12,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"}),(0,q.QO)(e.duration)]})]}),(0,r.jsx)(V,{tags:e.tags}),(0,r.jsx)("p",{className:"inline-flex items-center gap-1 text-xs text-[var(--app-gray-dark)]",children:t.createTimestamp?new Date(Number(t.createTimestamp)).toLocaleString():t.createTime})]}),"generating"===t.state?(0,r.jsx)("div",{className:"inline-flex w-28 items-center justify-end gap-2",children:(0,r.jsx)(J.Z,{height:12,width:2,color:"var(--app-color-primary"})}):(0,r.jsx)("div",{className:"group inline-flex cursor-pointer items-center justify-center gap-2 px-3 py-2 text-rose-600 transition duration-500 hover:text-rose-700",children:s?(0,r.jsx)("li",{onClick:e=>{e.stopPropagation(),u(t.id,a)},className:"group inline-flex cursor-pointer items-center justify-center gap-2 py-1 text-neutral-700 transition duration-300 hover:text-rose-500",children:(0,r.jsx)(x.JO,{icon:"fluent:delete-28-regular",className:"w-4 fill-neutral-700 transition duration-300 group-hover:fill-rose-500"})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:i("musicPage.share"),children:(0,r.jsx)(x.JO,{onClick:t=>{t.stopPropagation(),p(e,a)},icon:"basil:share-outline",width:18,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"})}),(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:i("musicPage.download"),children:(0,r.jsx)(x.JO,{onClick:a=>{a.stopPropagation(),n.downloadFile(e.audioUrl,e.title)},icon:"mynaui:download",width:18,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"})}),(0,r.jsxs)(A.J2,{open:c===o,onOpenChange:e=>{e?d(o):d(null)},children:[(0,r.jsx)(A.xo,{children:(0,r.jsx)("div",{onClick:e=>
1{e.stopPropagation(),d(c===o?null:o)},className:"flex w-full flex-col items-center",children:(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:i("musicPage.more"),children:(0,r.jsx)(x.JO,{icon:"proicons:more-vertical",width:18,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"})})})}),(0,r.jsx)(A.yk,{className:"w-auto max-w-52 border border-gray-700 bg-black px-0 py-2",children:(0,r.jsxs)("ul",{className:"flex w-full flex-col items-start text-sm",children:[(0,r.jsxs)("li",{onClick:e=>{e.stopPropagation(),g(t)},className:"group inline-flex w-full cursor-pointer items-center justify-start gap-2 px-3 py-2 text-white transition duration-300 hover:text-[var(--app-color-primary)]",children:[(0,r.jsx)(x.JO,{icon:"lets-icons:sign-out-squre-light",width:18,className:"text-white transition duration-300 group-hover:text-[var(--app-color-primary)]"}),i("musicPage.reusePrompt")]}),(0,r.jsxs)("li",{onClick:e=>{e.stopPropagation(),u(t.id,a)},className:"group inline-flex w-full cursor-pointer items-center justify-start gap-2 px-3 py-2 text-white transition duration-300 hover:text-red-500",children:[(0,r.jsx)(x.JO,{icon:"fluent:delete-28-regular",width:18,className:"text-white transition duration-300 group-hover:text-red-500"}),i("musicPage.delete")]})]})})]})]})})]},a)};return(0,r.jsx)(r.Fragment,{children:t.sunoData?.sunoData.map((e,a)=>h(e,a))})});function H(e){let{record:a}=e,{t}=(0,o.Z)("app"),{appMusicStore:s}=(0,L.o)();return(0,r.jsxs)("div",{onClick:()=>s.selectRecordSuno(a,null,0,!0),className:(0,M.cn)("group relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg border border-transparent p-2 transition duration-500 hover:bg-[var(--app-gray-lightest)] lg:gap-4"),children:[(0,r.jsx)("div",{className:"group relative h-16 w-16 cursor-pointer overflow-hidden rounded-md transition duration-500",children:(0,r.jsx)(B(),{src:"/images/app/music_failed.svg",alt:"cover",width:100,height:100,unoptimized:!0,className:"h-full w-full object-cover"})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-1",children:[(0,r.jsx)("p",{className:(0,M.cn)("line-clamp-1 w-full text-sm font-semibold text-[var(--app-text-h2)] transition duration-500 group-hover:text-[var(--app-state-danger)]"),children:a.paramData?.title||a.paramData?.prompt}),(0,r.jsx)("p",{className:"line-clamp-1 text-xs text-[var(--app-state-danger)]",children:a.failMsg||"Sorry, generation failed for some reason."}),(0,r.jsx)("p",{className:"inline-flex items-center gap-1 text-xs text-[var(--app-gray-dark)]",children:a.createTimestamp?new Date(Number(a.createTimestamp)).toLocaleString():a.createTime})]}),(0,r.jsx)("div",{className:"group inline-flex cursor-pointer items-center justify-center gap-2 px-3 py-2 text-rose-600 transition duration-500 hover:text-rose-700",children:(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:t("musicPage.delete"),children:(0,r.jsx)(x.JO,{onClick:()=>s.setData("deleteData",{recordId:a.id}),icon:"fluent:delete-28-regular",width:18,className:"cursor-pointer text-[var(--app-state-danger)] transition duration-500"})})})]})}var W=t(298),$=t(11942),K=t(71032),Y=t(29278),Q=t(41292),X=t(75599),ee=t(18403),ea=t(93493),et=t(96404),er=t(17111);let es=[{key:"today",days:0,translationKey:"musicPage.searchDate.today"},{key:"last7Days",days:7,translationKey:"musicPage.searchDate.last7Days"},{key:"last30Days",days:30,translationKey:"musicPage.searchDate.last30Days"},{key:"last3Months",days:90,translationKey:"musicPage.searchDate.last3Months"}];function el(e){let{loading:a,searchContent:t,onSearchChange:l,onSearch:i,placeholder:n,onDateRangeChange:c}=e,{t:d}=(0,o.Z)("app"),[p,m]=(0,s.useState)(!1),[u,g]=(0,s.useState)(!1),[h,f]=(0,s.useState)(null),[v,y]=(0,s.useState)(!1),[j,w]=(0,s.useState)({from:void 0,to:void 0}),[b,N]=(0,s.useState)({start:void 0,end:void 0});(0,s.useEffect)(()=>{p&&j.from&&j.to&&!h&&g(!0)},[p,j,h]);let[k,P]=(0,s.useState)(2);(0,s.useEffect)(()=>{P(window.matchMedia("(max-width: 768px)").matches?1:2);let e=window.matchMedia("(max-width: 768px)"),a=e=>{P(e.matches?1:2)};return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]);let D=(e,a)=>{let t=new Date,r=new Date;r.setDate(r.getDate()-e),S({from:r,to:t}),f(a),m(!1)},S=e=>{e?.from&&e?.to&&(e.from.setHours(0,0,0,0),e.to.setHours(23,59,59,999),w(e),c?.(e),u&&f(null),m(!1))},L=e=>{let{days:a,translationKey:t,presetKey:s}=e,l=h===s;return(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between px-3 py-2 transition duration-500 hover:bg-[var(--app-gray-light)]",onClick:()=>D(a,s),children:[(0,r.jsx)("span",{className:l?"font-medium text-[var(--app-color-primary)]":"text-[var(--app-gray-dark)]",children:d(t)}),l&&(0,r.jsx)(x.JO,{icon:"solar:check-circle-linear",className:"w-4 text-[var(--app-color-primary)]",width:16})]})};return(0,r.jsxs)("div",{className:"inline-flex w-[70%] items-center gap-2",children:[(0,r.jsxs)("div",{className:"inline-flex w-[70%] items-center justify-between overflow-hidden rounded-full border border-[var(--app-gray-lighter)] bg-[var(--app-gray-lightest)] px-3 text-sm text-[var(--app-gray-black)] hover:border-[var(--app-color-primary)] lg:w-60",children:[a?(0,r.jsx)(W.Z,{color:"var(--app-color-primary)",size:15}):(0,r.jsx)(x.JO,{icon:"tabler:search",className:"cursor-pointer text-[var(--app-gray-medium)]",width:18}),(0,r.jsx)("input",{type:"text",placeholder:n,value:t,onCompositionStart:()=>y(!0),onCompositionEnd:()=>y(!1),onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"!==e.key||v||i()},className:"w-[90%] bg-transparent p-2 outline-none placeholder:text-[var(--app-gray-medium)]"})]}),(0,r.jsxs)($.j,{isOpen:p,onOpenChange:m,children:[(0,r.jsx)(K.b,{children:(0,r.jsx)("div",{className:"group relative flex h-10 w-10 cursor-pointer items-center justify-center rounded-full bg-[var(--app-gray-lighter)]",children:(0,r.jsx)(x.JO,{icon:"solar:calendar-linear",className:`w-5 transition duration-500 ${j.from?"text-[var(--app-color-primary)]":"text-[var(--app-gray-medium)] group-hover:text-[var(--app-color-primary)]"}`,width:20})})}),(0,r.jsxs)(Y.g,{className:"min-w-52 border-[var(--app-gray-light)] bg-[var(--app-color-inverse)] p-0",children:[(j.from||j.to)&&(0,r.jsx)("div",{className:"w-full border-b border-[var(--app-gray-light)] pl-2 pt-1",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"text-xs text-[var(--app-gray-medium)]",children:[j.from&&(0,ea.WU)(j.from,"yyyy/MM/dd"),j.to&&` - ${(0,ea.WU)(j.to,"yyyy/MM/dd")}`]}),(0,r.jsx)(et.A,{isIconOnly:!0,size:"sm",variant:"light",onPress:()=>{w({from:void 0,to:void 0}),N({start:void 0,end:void 0}),f(null),c?.(null),m(!1)},children:(0,r.jsx)(er.Z,{className:"h-3 w-3 text-[var(--app-gray-medium)]"})})]})}),u?(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 p-2",children:[(0,r.jsx)(et.A,{size:"sm",variant:"light",className:"inline-flex w-full items-center justify-start gap-1 p-0 text-xs text-[var(--app-gray-medium)] transition duration-500 hover:text-[var(--app-gray-dark)]",onPress:()=>{g(!1)},startContent:(0,r.jsx)(x.JO,{icon:"solar:alt-arrow-up-linear",className:"w-3 -rotate-90",width:12}),children:d("musicPage.searchDate.back")}),(0,r.jsx)(Q.o,{value:b,onChange:N,visibleMonths:k,classNames:{calendar:"bg-[var(--app-color-inverse)] w-full md:w-auto",wrapper:"grid grid-cols-1 md:grid-cols-2 gap-4",monthsWrapper:"flex flex-col md:flex-row w-full",calendarContainer:"w-full",month:"w-full md:w-auto",day:"text-[var(--app-gray-medium)] hover:bg-[var(--app-gray-lighter)] text-sm md:text-base",monthCell:"text-[var(--app-gray-dark)] text-sm md:text-base",yearCell:"text-[var(--app-gray-dark)] text-sm md:text-base",weekCell:"text-[var(--app-gray-medium)] text-sm md:text-base",weekDayCell:"text-[var(--app-gray-medium)] text-sm md:text-base",selectedRange:"bg-[var(--app-color-primary-light)]",selectedDate:"bg-[var(--app-color-primary)] text-[var(--app-color-inverse)]",monthHeader:"text-[var(--app-gray-dark)] text-sm md:text-base font-medium",yearHeader:"text-[var(--app-gray-dark)] text-sm md:text-base font-medium",navigation:"px-2 py-1 md:px-4 md:py-2",navigationButton:"p-1 md:p-2"},weekStart:0,minDate:new Date("2000-01-01"),maxDate:new Date("2099-12-31"),placeholder:d("musicPage.searchDate.pickDate")}),(0,r.jsx)("button",{className:"w-full rounded-md bg-[var(--app-color-primary)] px-3 py-2 text-sm text-[var(--app-color-inverse)] transition duration-500 hover:bg-[var(--app-color-primary-dark)] disabled:cursor-not-allowed disabled:opacity-50",disabled:!b?.start||!b?.end,onClick:()=>{S({from:b?.start?.toDate(ee.iT()),to:b?.end?.toDate(ee.iT())})},children:d("musicPage.searchDate.applyRange")})]})}):(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{className:"flex w-full flex-col items-start text-sm",children:es.map(e=>(0,r.jsx)(L,{days:e.days,translationKey:e.translationKey,presetKey:e.key},e.key))}),(0,r.jsxs)("div",{className:"mt-2 flex cursor-pointer items-center justify-between border-t border-[var(--app-gray-light)] px-3 py-2 text-sm text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]",onClick:()=>{f(null),g(!0),j?.from&&j?.to&&N({start:j?.from?(0,X.sG)(j.from.toISOString().split("T")[0]):void 0,end:j?.to?(0,X.sG)(j.to.toISOString().split("T")[0]):void 0})}
1,children:[d("musicPage.searchDate.customRange"),(0,r.jsx)(x.JO,{icon:"solar:alt-arrow-down-linear",className:"w-3 -rotate-90",width:12})]})]})]})]})]})}var ei=t(89301),en=t(8309);let eo=e=>{let{isOpen:a,onOpen:t,onOpenChange:s,generateLoading:l,generateMusic:i}=e,{t:n}=(0,o.Z)("app");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex w-full flex-wrap gap-3 px-10 py-4 lg:hidden",children:(0,r.jsx)(et.A,{className:"w-full rounded-full bg-gradient-to-t from-[var(--app-color-primary-dark)] to-[var(--app-color-primary-light)] px-6 capitalize text-[var(--app-gray-lightest)]",size:"sm",onPress:t,isLoading:l,children:n("musicPage.generate")})}),(0,r.jsx)(en.P,{isOpen:a,onOpenChange:s,placement:"bottom",size:"lg",children:(0,r.jsx)(f.A,{className:"h-[85vh]",children:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(y.I,{className:"overflow-y-auto",children:(0,r.jsx)("div",{className:"space-y-4",children:(0,r.jsx)(F,{onGenerate:i})})})})})})]})};var ec=t(12609),ed=t(75472);let ep=(0,p.Pi)(function(e){let{record:a,item:t}=e,{t:s}=(0,o.Z)("app"),{appMusicStore:l}=(0,L.o)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-4 px-3 py-2",children:[(0,r.jsxs)("div",{className:"relative w-full overflow-hidden rounded-md bg-[rgba(var(--app-color-rgb),0.03)]",children:[t?.isExpire===0?(0,r.jsxs)("div",{className:(0,u.cn)(["relative flex aspect-square w-full items-center justify-center p-4 lg:p-12",l.isPlaying?"animate-spin-slow":""]),children:[(0,r.jsx)(B(),{src:"/images/app/cd_bg.svg",alt:"cover",width:100,height:100,unoptimized:!0,className:"absolute left-1/2 top-1/2 aspect-square h-auto w-[80%] -translate-x-1/2 -translate-y-1/2 object-cover lg:h-full lg:w-full"}),t?.imageUrl&&(0,r.jsx)(B(),{src:t?.imageUrl,alt:"cover",width:100,height:100,unoptimized:!0,className:"relative h-auto w-1/2 rounded-full object-cover lg:w-[90%]"}),!t?.audioUrl&&(0,r.jsx)("div",{className:"absolute left-0 top-0 z-[1] flex inline-flex h-full w-full items-center justify-end justify-center gap-2 bg-black/10 backdrop-blur-sm",children:(0,r.jsx)(ed.Z,{size:40,color:"var(--color-primary)"})})]}):(0,r.jsx)(B(),{src:"/images/app/musicExpires.svg",width:20,height:20,className:"h-full w-full rounded-lg object-cover"}),"success"===a.state&&0===t.isExpire&&t?.audioUrl&&(0,r.jsxs)("div",{className:"relative flex w-full flex-wrap items-center justify-center gap-2 p-2",children:[(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:s("musicPage.share"),children:(0,r.jsx)("div",{className:"group flex aspect-square w-8 cursor-pointer items-center justify-center rounded-full bg-[rgba(var(--app-color-rgb),0.05)]",children:(0,r.jsx)(x.JO,{icon:"basil:share-outline",width:18,onClick:()=>l.setData("shareData",{sharePath:t.shareUrl,recordId:a.id}),className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"})})}),(0,r.jsx)(m.e,{className:"capitalize",color:"var(--app-color-primary)",content:s("musicPage.download"),children:(0,r.jsx)("div",{className:"group flex aspect-square w-8 cursor-pointer items-center justify-center rounded-full bg-[rgba(var(--app-color-rgb),0.05)]",children:(0,r.jsx)(x.JO,{onClick:()=>l.downloadFile(t.audioUrl,t.title),icon:"mynaui:download",width:18,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500 hover:text-[var(--app-color-primary)]"})})})]})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,r.jsx)("p",{className:"w-full font-semibold text-[var(--app-gray-darkest)] transition duration-500 group-hover:text-orange-500",children:t?.title}),(0,r.jsx)("p",{className:"text-xs text-[var(--app-gray-darker)]",children:t?.tags}),(0,r.jsx)("p",{className:"inline-flex items-center gap-1 text-xs text-[var(--app-gray-dark)]",children:a.createTimestamp?new Date(Number(a.createTimestamp)).toLocaleString():a.createTime}),(0,r.jsx)("div",{className:"mt-4 flex w-full flex-col items-start gap-4 whitespace-pre-line break-words text-sm text-[var(--app-gray-darkest)]",children:t?.prompt})]})]})})});function em(e){let{paramData:a}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mt-6 flex w-full flex-col items-start gap-2 border-t border-dashed border-[var(--app-gray-base)] p-4 pt-4 text-xs text-[var(--app-gray-darkest)]",children:[a?.style&&(0,r.jsxs)("p",{className:"w-full whitespace-pre-line break-words",children:["Style:",a?.style]}),(a?.title||a?.prompt)&&(0,r.jsxs)("p",{className:"w-full whitespace-pre-line break-words",children:["Title:",a?.title||a?.prompt]}),(0,r.jsxs)("div",{className:"flex w-full items-center gap-2",children:[a?.customMode===!0&&(0,r.jsx)("p",{className:"w-auto rounded-md bg-orange-500/5 p-1 text-sky-600",children:"Custom Mode"}),a?.instrumental===!0&&(0,r.jsx)("p",{className:"w-auto rounded-md bg-orange-500/5 p-1 text-orange-800",children:"Instrumental"})]})]})})}
1let eu=(0,p.Pi)(e=>{let{selectItemDialog:a,setSelectItemDialog:t}=e,{t:s}=(0,o.Z)("app"),{appMusicStore:l}=(0,L.o)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute bottom-0 left-0 z-20 w-full cursor-default items-center justify-center bg-[var(--ai-color-background-dark)] backdrop-blur-md lg:hidden",children:(0,r.jsxs)("div",{className:"bg-[var(--app-gray-lightest)]/5 flex h-16 w-full items-center justify-between gap-2 px-4 backdrop-blur-md",children:[(0,r.jsxs)("div",{onClick:()=>t(!0),className:"flex w-[85%] items-center gap-2",children:[(0,r.jsxs)("div",{className:"relative flex aspect-square w-10 items-center justify-center",children:[l.selectRecordItem?.item?.imageUrl&&(0,r.jsx)(B(),{src:l.selectRecordItem?.item?.imageUrl,alt:"img",width:30,height:30,className:"aspect-square w-full cursor-pointer rounded-full object-cover"}),(0,r.jsx)(x.JO,{icon:"codicon:fold-up",width:14,className:"absolute inset-0 m-auto animate-bounce text-slate-200"})]}),(0,r.jsx)("p",{className:"w-[80%] truncate text-sm text-[var(--color-text-secondary)]",children:l.selectRecordItem?.item?.title})]}),(0,r.jsx)("button",{className:"rounded-full p-2",children:l.isPlaying?(0,r.jsx)(x.JO,{icon:"mdi:motion-pause-outline",width:24,className:"cursor-pointer text-[var(--app-gray-darker)] transition duration-500"}):(0,r.jsx)(x.JO,{icon:"mdi:motion-play-outline",width:24,className:"cursor-pointer text-[var(--app-gray-darker)] transition duration-500"})})]})}),a&&(0,r.jsxs)("div",{className:"fixed left-0 top-0 z-50 flex h-full w-full flex-col items-start gap-2 overflow-y-auto bg-[var(--app-gray-lightest)] md:hidden",children:[(0,r.jsx)("div",{onClick:()=>t(!1),className:"fixed left-4 top-4 z-20 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-black/10",children:(0,r.jsx)(x.JO,{icon:"lets-icons:back",width:22,className:"cursor-pointer text-[var(--app-gray-dark)] transition duration-500"})}),(0,r.jsx)(ep,{record:l.selectRecordItem.record,item:l.selectRecordItem.item}),(0,r.jsx)(em,{paramData:l.selectRecordItem.record?.paramData})]})]})});var ex=t(20679),eg=t(89083);let eh=(0,p.Pi)(e=>{let{generateMusic:a,sidebarRef:t}=e,{t:l}=(0,o.Z)("app"),{appMusicStore:i,userStore:n}=(0,L.o)(),[c,d]=(0,s.useState)(!1),[p,m]=(0,s.useState)(!1),{isOpen:u,onOpen:g,onOpenChange:h}=(0,ec.q)(),[f,v]=(0,s.useState)(""),[y,j]=(0,s.useState)(""),[w,b]=(0,s.useState)("");(0,s.useEffect)(()=>{if(i.recordList){let e=i.recordList;if(e.length>0){let a=e[0],t=0;if(i.selectRecordItem){let r=e.find(e=>e.id===i.selectRecordItem.record.id);r&&(a=r,t=i.selectRecordItem.itemIndex??0)}let r=a.sunoData?.sunoData||[];if(r.length>0){let e=r.find((e,a)=>!e.deleteFlag&&a===t);e||(t=r.findIndex(e=>!e.deleteFlag),e=r[t]),i.selectRecordSuno(a,e,t,!1)}else i.selectRecordSuno(a,null,0,!1)}}},[i.recordList]),(0,s.useEffect)(()=>{let e=setTimeout(()=>{N()},2e3);return()=>clearTimeout(e)},[i.recordList]),(0,s.useEffect)(()=>{n.user&&k()},[n.user,y,w]);let N=()=>{let e=i.recordList.filter(e=>"success"!==e.state&&"fail"!==e.state).map(e=>e.id);e.length>0?(i.setData("generateLoading",!0),S.y.loadMusicDetail({pendingRecordIdList:e}).then(e=>{if(200===e.code){let a=e.data||[],t=!0;i.setData("recordList",i.recordList.map(e=>{let r=a.find(a=>a.id===e.id);if(r){if(t){let a=e.data?.data||[];r.data?.data,a.length<=0&&(t=!1)}return r}return e}))}}).catch(e=>{i.setData("recordList",[...i.recordList]),console.error(e)})):i.setData("generateLoading",!1)},k=async e=>{if(!i.recordListLoading)try{if(await i.setData("recordListParams",{...i.recordListParams,searchContent:f,startTime:y,endTime:w}),e){let e=i.recordListParams.pageNum+1;await i.getPageRecordList(e)}else await i.getPageRecordList(1)}catch(e){}},P=i.selectRecordItem&&i.selectRecordItem.item&&0===i.selectRecordItem.item.isExpire;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex h-16 w-full items-center justify-between gap-6 px-2 py-3 pr-3 lg:px-4",children:(0,r.jsx)(el,{loading:i.recordListLoading,placeholder:l("musicPage.searchPlaceholder"),searchContent:f,onSearchChange:e=>v(e),onDateRangeChange:e=>{e?(j(e.from.getTime()),b(e.to.getTime())):(j(null),b(null))},onSearch:k})}),(0,r.jsxs)("div",{className:"flex h-[87%] w-full flex-col items-start gap-1 overflow-y-auto pb-16 pt-4 lg:px-4",children:[i.recordList.length>0&&!(n.user&&n.user?.vipFlag)&&(0,r.jsx)(eg.x,{savedTips:l("expiredPrompt.savedTips")}),(0,r.jsx)(eo,{isOpen:u,onOpen:()=>{g()},onOpenChange:h,generateLoading:c,generateMusic:a}),i.recordList&&i.recordList.length>0?i.recordList.map(e=>"fail"===e.state?(0,r.jsx)(H,{record:e},e.id):"success"===e.state||e.sunoData?.sunoData?(0,r.jsx)(G,{record:e,sidebarRef:t},e.id):(0,r.jsx)(_,{record:e},e.id)):(0,r.jsx)(E,{}),i.recordListLoading&&(0,r.jsx)("div",{className:"w-full py-6 text-center",children:(0,r.jsx)(ex.Z,{color:"var(--app-color-primary"})}),i.recordListHasNext&&!i.recordListLoading&&(0,r.jsx)("div",{className:"mt-6 flex w-full items-center justify-center",children:(0,r.jsxs)("button",{onClick:()=>k(!0),className:"flex items-center rounded-full bg-[var(--app-gray-light)] px-2.5 py-1 text-[var(--app-gray-darker)] transition duration-500 hover:scale-95",children:[(0,r.jsx)(x.JO,{icon:"si:expand-more-line",width:24,className:"text-[var(--app-gray-darker)]"}),(0,r.jsx)("span",{className:"text-xs",children:l("musicPage.more")})]})})]}),P&&(0,r.jsx)("div",{className:"absolute bottom-0 left-0 z-10 w-full items-center justify-center backdrop-blur-md",children:(0,r.jsx)("div",{className:"mx-auto w-full lg:max-w-3xl",children:(0,r.jsx)("div",{className:"hidden lg:block",children:(0,r.jsx)(ei.Z,{})})})}),P&&(0,r.jsx)(eu,{selectItemDialog:p,setSelectItemDialog:m})]})});function ef(e){let{record:a}=e,{t}=(0,o.Z)("app");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"aspect-square w-full",children:(0,r.jsx)(B(),{src:"/images/app/music_failed.svg",alt:"cover",width:100,height:100,unoptimized:!0,className:"h-full w-full rounded-lg object-cover"})}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,r.jsx)("p",{className:"w-full font-semibold transition duration-500 group-hover:text-orange-500",children:"Sorry, generation failed for some reason."}),(0,r.jsx)("p",{className:"inline-flex items-center gap-1 text-xs text-zinc-500",children:a.paramData.title||a.paramData.prompt})]})]})}var ev=t(60771);function ey(e){let{record:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"aspect-square w-full rounded-lg",children:(0,r.jsx)("div",{className:"aspect-square h-full w-full animate-pulse rounded-md bg-primary/10"})}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,r.jsx)(ev.Z,{className:"h-4 w-[120px]"}),(0,r.jsx)("p",{className:"inline-flex items-center gap-1 text-xs text-zinc-500",children:a.createTime})]})]})}var ej=t(85503),ew=function(e){let{isOpen:a,onOpenChange:t,onConfirm:l}=e,{t:i}=(0,o.Z)("app"),{appMusicStore:n}
1=(0,L.o)(),[c,d]=(0,s.useState)(!1),p=async()=>{d(!0);try{await S.y.deleteMusic(n.deleteData).then(e=>{200===e.code&&(n.setData("recordList",n.recordList.filter(e=>{if(n.deleteData.recordId!==e.id)return!0;let a=e.sunoData?.sunoData||[];return!(a.length<=0)&&((a[n.deleteData.audioIndex]||{}).deleteFlag=!0,!a.every(e=>e.deleteFlag))})),n.setData("deleteData",null))})}finally{d(!1)}};return(0,r.jsx)(h.R,{isOpen:a,onOpenChange:t,size:"sm",classNames:{wrapper:"!items-center",body:"p-4",base:"rounded-xl bg-[var(--app-gray-lightest)]",backdrop:"bg-[var(--app-gray-black)]/50",closeButton:"hidden"},children:(0,r.jsx)(f.A,{children:()=>(0,r.jsxs)(y.I,{className:"p-6",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center gap-4",children:[(0,r.jsx)("div",{className:"rounded-full bg-red-300/10 p-3",children:(0,r.jsx)(x.JO,{icon:"lucide:alert-triangle",className:"h-6 w-6 text-[var(--app-state-danger)]"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium text-[var(--app-text-h2)]",children:i("musicPage.deleteAudio.title")}),(0,r.jsx)("p",{className:"mt-1 text-sm text-[var(--app-text-h3)]",children:i("musicPage.deleteAudio.content")})]})]}),(0,r.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,r.jsx)(et.A,{variant:"flat",isDisabled:c,onPress:()=>t(!1),className:"bg-[var(--app-gray-lighter)] text-[var(--app-text-h3)] hover:bg-[var(--app-gray-light)]",size:"sm",children:i("musicPage.deleteAudio.cancelText")}),(0,r.jsxs)(et.A,{isDisabled:c,onPress:p,className:"bg-[var(--app-state-danger)] text-[var(--app-color-inverse)] hover:bg-[var(--app-state-danger-dark)]",size:"sm",children:[c&&(0,r.jsx)(x.JO,{icon:"eos-icons:loading",className:"mr-1 h-4 w-4 animate-spin"}),i("musicPage.deleteAudio.okText")]})]})]})})})};function eb(){let{t:e}=(0,o.Z)("app"),[a,t]=(0,s.useState)([,,,].fill(!1)),[l,i]=(0,s.useState)(null),n=(0,s.useRef)([,,,].fill(null)),c=e=>{let r=n.current[e],s=[...a];a[e]?r.pause():(a.forEach((a,t)=>{a&&t!==e&&(n.current[t].pause(),s[t]=!1)}),r.play()),s[e]=!a[e],t(s)},d=e=>{let r=[...a];r[e]=!1,t(r)};return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("h2",{className:"text-xl font-medium text-default-800",children:e("aiMusic.demo")}),(0,r.jsx)("div",{className:"mt-6 grid w-full grid-cols-1 gap-6 rounded-2xl border border-default-50 bg-default-300/5 p-4 md:grid-cols-3 md:gap-8 md:p-6",children:[{title:"Dance Fever",style:["Pop","Electronic"],audioUrl:"/mp3/aiMusic/music_01.mp3",imgUrl:"/images/app/music_case_01.webp"}
1,{title:"Counting the Stars",style:["Electronic","Pop"],audioUrl:"/mp3/aiMusic/music_02.mp3",imgUrl:"/images/app/music_case_02.webp"},{title:"Eleven Wishes",style:["Pop","Electronic"],audioUrl:"/mp3/aiMusic/music_03.mp3",imgUrl:"/images/app/music_case_03.webp"}].map((e,t)=>(0,r.jsxs)("div",{className:"group relative flex w-full flex-col items-center justify-center transition duration-500",onMouseEnter:()=>i(t),onMouseLeave:()=>i(null),children:[(0,r.jsxs)("div",{className:"relative aspect-square w-full overflow-hidden rounded-full",children:[(0,r.jsx)("img",{src:e.imgUrl,alt:e.title,className:(0,u.cn)("h-full w-full object-cover",a[t]&&"animate-spin-slow")}),(0,r.jsx)("audio",{ref:e=>n.current[t]=e,src:e.audioUrl,onEnded:()=>d(t),className:"hidden"}),(0,r.jsx)("div",{onClick:()=>c(t),className:"absolute left-0 top-0 inline-flex h-full w-full cursor-pointer items-center justify-center bg-black/20 opacity-0 transition duration-500 group-hover:opacity-100",children:(0,r.jsx)(x.JO,{icon:a[t]?"heroicons-solid:pause":"heroicons-solid:play",className:"h-12 w-12 cursor-pointer text-default-50 dark:text-default-600"})})]}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-center gap-1 p-4 text-center",children:[(0,r.jsx)("p",{className:"font-medium text-default-700",children:e.title}),(0,r.jsx)("span",{className:"text-sm text-default-400",children:e.style.join(" • ")})]})]},t))})]})}var eN=t(88792);let ek=["fluent:star-edit-24-regular","ri:music-ai-line","icon-park-outline:headphone-sound"];function eP(){let{t:e}=(0,o.Z)("app"),a=e("aiMusic.works.list",{},{returnObjects:!0}).map((e,a)=>(e.iconName=ek[a],e));return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("h2",{className:"text-xl font-medium text-default-800",children:e("aiVideo.works.title")}),(0,r.jsx)("div",{className:"mt-6 grid w-full grid-cols-1 gap-4 rounded-2xl border border-default-50 bg-default-300/5 p-4 md:grid-cols-3 md:p-6",children:a.map((e,a)=>(0,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-start",children:[(0,r.jsx)("p",{className:"inline-flex h-14 w-14 items-center justify-center rounded-full bg-gradient-to-t from-blue-600 to-blue-400 p-2 text-xl font-medium shadow-xl shadow-blue-500/30",children:(0,r.jsx)(eN.JO,{icon:e.iconName,className:"h-full w-full text-default-100"})}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-2 p-4 text-center",children:[(0,r.jsx)("h3",{className:"w-full text-lg font-medium text-default-600",children:e.title}),(0,r.jsx)("p",{className:"w-full text-sm text-default-500",children:e.content})]})]},a))})]})}let eD=["ic:outline-tips-and-updates","ri:rhythm-line","iconamoon:category","lucide-lab:grid-lines-offset"];function eS(){let{t:e}=(0,o.Z)("app"),a=e("aiMusic.tips.list",{},{returnObjects:!0}).map((e,a)=>({text:e,iconName:eD[a]}));return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("h2",{className:"flex items-center gap-1.5 text-xl font-medium text-default-800",children:[(0,r.jsx)(eN.JO,{icon:"fluent-color:lightbulb-filament-20",className:"h-7 w-7"}),e("aiVideo.tips.title")]}),(0,r.jsx)("div",{className:"mt-6 grid w-full grid-cols-1 gap-4 rounded-2xl border border-default-50 bg-default-300/5 p-4 md:p-6",children:a.map((e,a)=>(0,r.jsxs)("div",{className:"flex w-full items-start justify-between gap-2",children:[(0,r.jsx)(eN.JO,{icon:e.iconName,className:"mt-0.5 h-5 w-5 text-blue-600"}),(0,r.jsx)("p",{className:"flex-1 text-default-600",children:e.text})]},a))})]})}let eL=(0,p.Pi)(()=>(0,r.jsxs)("div",{className:"flex w-full flex-col items-start gap-10 p-4 lg:p-8",children:[(0,r.jsx)(eb,{}),(0,r.jsx)(eP,{}),(0,r.jsx)(eS,{})]})),eO=(0,p.Pi)(e=>{let{}=e,{appMusicStore:a,userStore:t,appStore:l}=(0,L.o)(),i=(0,s.useRef)(null),n=async()=>{l.shouldCheckTurnstile("music",async e=>{await S.y.generateMusic(e,a.createMusicParams).then(e=>{if(430===e.code||429===e.code){l.openMediaLimitDialog(),a.setData("generateLoading",!1);return}if(427===e.code){l.setVipExpireFlag(!0),a.setData("generateLoading",!1);return}if(428===e.code){l.setTrialEndFlag(!0),a.setData("generateLoading",!1);return}200===e.code&&(a.getPageRecordList(1),t.loadUserInfo())}).catch(e=>{a.setData("generateLoading",!1)})})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:"group/sidebar-wrapper flex h-full flex-col lg:flex-row",children:[(0,r.jsx)("div",{className:"hidden lg:inline-block",children:(0,r.jsx)(F,{ref:i,onGenerate:n})}),(0,r.jsxs)("div",{className:(0,u.cn)("relative w-full gap-4 overflow-y-auto lg:h-full lg:gap-10 lg:pl-2 lg:pt-2",a.recordList.length>0||a.recordListLoading?"flex flex-1":"hidden"),children:[(0,r.jsx)("div",{className:"relative w-full lg:h-full lg:w-[70%] xl:w-[75%]",children:(0,r.jsx)(eh,{generateMusic:n,sidebarRef:i})}),(0,r.jsxs)("div",{className:"mb-10 hidden w-full flex-col items-start gap-2 bg-[var(--ai-color-background-dark)] lg:mb-0 lg:flex lg:h-full lg:w-[30%] lg:overflow-y-auto xl:w-[25%]",children:[a.selectRecordItem&&(a.selectRecordItem.record?.state==="fail"?(0,r.jsx)(ef,{record:a.selectRecordItem.record}):a.selectRecordItem.record?.state==="success"||a.selectRecordItem.record?.sunoData?.sunoData?(0,r.jsx)(ep,{record:a.selectRecordItem.record,item:a.selectRecordItem.item}):(0,r.jsx)(ey,{record:a.selectRecordItem.record})),(0,r.jsx)(em,{paramData:a.selectRecordItem?.record.paramData})]})]}),(0,r.jsx)("div",{className:(0,u.cn)("relative w-full gap-4 overflow-y-auto lg:h-full lg:gap-10 lg:pl-2 lg:pt-2",a.recordList.length>0||a.recordListLoading?"hidden":"flex flex-1"),children:(0,r.jsx)(eL,{})})]}),(0,r.jsx)(ej.Z,{isOpen:!!a.shareData,onOpenChange:()=>a.setData("shareData",null)}),(0,r.jsx)(ew,{isOpen:!!a.deleteData,onOpenChange:()=>a.setData("deleteData",null)})]})});var eC=!0,eM=e=>{let{}=e,a=(0,n.useRouter)(),{t}=(0,o.Z)("app");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:t("aiMusic.head.title")}),(0,r.jsx)("meta",{name:"description",content:t("aiMusic.head.description")}),(0,c.t)(a,"/app/music")]}),(0,r.jsx)("div",{className:"relative h-full w-full",children:(0,r.jsx)("main",{className:"h-full",children:(0,r.jsx)(d.Z,{selectedKey:"music",children:(0,r.jsx)(eO,{})})})})]})}},36037:function(e,a,t){"use strict";t.d(a,{QO:function(){return s},YZ:function(){return r}});let r=()=>{var e=new Date,a=e.getFullYear(),t=e.getMonth(),r=e.getDate();e.getDay();var s=e.getHours(),l=e.getMinutes(),i=e.getSeconds();return(t+=1)<10&&(t="0"+t),r<10&&(r="0"+r),s<10&&(s="0"+s),l<10&&(l="0"+l),i<10&&(i="0"+i),a+"-"+t+"-"+r+" "+s+":"+l+":"+i};function s(e){let a=Math.floor((e=Math.round(e))/60),t=e%60,r=a.toFixed(0).padStart(2,"0"),s=t.toFixed(0).padStart(2,"0");return`${r}:${s}`}}},function(e){e.O(0,[2251,4407,6342,1888,4225,8494,4549,7721,7621,6634,8771,3078,8896,8191,6456,7305,2256,8919,4742,771,2921,1659,6367,4951,4288,1135,7060,2888,9774,179],function(){return e(e.s=45060)}),_N_E=e.O()}]);

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.