PageSourceSearch

https://suno.com/_next/static/immutable/chunks/18f0nki5p3ez_.js

js suno.com collected 2026-10-01 08:30:12 UTC 11,070 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d3f46a95-199a-590f-84ac-b9fb7168a25a")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,478119,e=>{"use strict";var r=e.i(673157),t=e.i(929118),n=e.i(277565);let a=new Map;e.s(["SectionViewLogger",0,({sectionName:e,threshold:i=.5})=>{let{ref:s}=(0,t.useInView)({threshold:i,onChange:r=>{r&&!a.get(e)&&((0,n.default)({actionName:"HomePageSectionViewed",context:{sectionName:e}}),a.set(e,!0))}});return(0,r.jsx)("div",{ref:s})}])},158106,e=>{"use strict";var r=e.i(673157),t=e.i(254521),n=e.i(249892);e.i(462951);var a=e.i(646984),i=e.i(423204),s=e.i(478119);e.i(179395);var l=e.i(73605),o=e.i(274918),c=e.i(277565);let u=({onCreateRedirect:e})=>{let{t}=(0,a.useTranslation)("marketing");return(0,r.jsx)("div",{className:"mt-[3.75rem] mb-[2.5rem] text-center md:mb-[7.5rem]",children:(0,r.jsx)(l.Button,{variant:o.ButtonVariant.Aura,size:o.ButtonSize.Large,shape:o.ButtonShape.Pill,onClick:()=>{e(),(0,c.default)({actionName:"HomePageSignUpButtonClicked"})},className:"px-[4.875rem]",children:t("home.signUpCTA.signUpForFree")})})};var m=e.i(228749),d=e.i(741467),p=e.i(397626),h=e.i(791421),f=e.i(524105);function x({items:e}){let t=(0,n.useMemo)(()=>JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}),[e]);return(0,r.jsx)("script",{type:"application/ld+json",children:t})}let g=({item:e,isOpen:n,onToggle:a})=>(0,r.jsxs)("div",{className:"border-b border-white/10 transition-colors duration-200 has-[button:hover]:border-white/25",children:[(0,r.jsx)("h3",{children:(0,r.jsxs)("button",{className:"flex w-full cursor-pointer items-center justify-between py-6 text-left",onClick:a,"aria-expanded":n,children:[(0,r.jsx)("span",{className:"pr-4 text-[1.125rem] font-medium text-foreground-primary md:text-[1.25rem]",children:e.question}),(0,r.jsx)(t.motion.span,{animate:{rotate:45*!!n},transition:{duration:.2},className:"flex h-8 w-8 flex-shrink-0 items-center justify-center text-[1.5rem] text-foreground-primary","aria-hidden":"true",children:"+"})]})}),(0,r.jsx)(t.motion.div,{initial:!1,animate:{height:n?"auto":0,opacity:+!!n},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:(0,r.jsx)("p",{className:"pr-12 pb-6 text-[1rem] leading-relaxed whitespace-pre-line text-white/70",children:e.answer})})]});e.s(["default",0,({id:e,onCreateRedirect:t})=>{let{t:l}=(0,a.useTranslation)("marketing"),[o,c]=(0,n.useState)(null),{data:y}=(0,h.useUsagePlans)(),w=y?.plans,b=(0,d.parseCurrency)(y?.default_currency),N=(0,i.useIsClient)(),v=e=>{if(!N)return"";let r=w?.find(r=>r.plan_key===e);if(!r)return"";let t=(0,m.getMonthlyPriceForPlanAndCurrency)(r,b);return Number.isNaN(t)?"":` (${(0,m.getDisplayPrice)(t,b)}${l("home.faq.perMonth")})`},j=(0,n.useMemo)(()=>[{question:l("home.faq.items.whyBest.question"),answer:l("home.faq.items.whyBest.answer")},{question:l("home.faq.items.howToMake.question"),answer:l("home.faq.items.howToMake.answer")},{question:l("home.faq.items.noExperience.question"),answer:l("home.faq.items.noExperience.answer")},{question:l("home.faq.items.aiToMakeMusic.question"),answer:l("home.faq.items.aiToMakeMusic.answer")},{question:l("home.faq.items.isFree.question"),answer:l("home.faq.items.isFree.answer",{proPriceLabel:v(f.PlanKey.Pro),premierPriceLabel:v(f.PlanKey.Premier)})}],[l,w,b,N]);return(0,r.jsxs)("section",{id:e,className:"mx-auto mt-[6.25rem] max-w-[50rem] bg-background-primary px-5 md:mt-[10rem]",children:[(0,r.jsx)(x,{items:j}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(s.SectionViewLogger,{sectionName:"FAQ"}),(0,r.jsx)("h2",{className:"font-sans text-[2.1875rem] leading-[2.1875rem] font-medium text-foreground-primary lg:text-[4.5rem] lg:leading-[4rem]",children:l("home.faq.heading")}),(0,r.jsx)("p",{className:"mx-auto mt-4 max-w-[24.375rem] text-[1rem] leading-6 text-white/70 md:text-[1.125rem]",children:l("home.faq.subtitle")})]}),(0,r.jsx)("div",{className:"mt-[3.75rem]",children:j.map((e,t)=>(0,r.jsx)(g,{item:e,isOpen:o===t,onToggle:()=>c(o===t?null:t)},t))}),(0,r.jsxs)(p.default,{href:"https://help.suno.com",className:"group mt-1 block py-6 text-center text-[1rem] text-white/40 transition-colors duration-200 hover:text-white/60 md:text-[1.125rem]",children:[l("home.faq.seeFullFaq")," ",(0,r.jsx)("span",{className:"inline-block transition-transform duration-200 group-hover:translate-x-1",children:"→"})]}),(0,r.jsx)(u,{onCreateRedirect:t})]})}],158106)},168258,function(e){e.n(e.i(158106))},228749,e=>{"use strict";var r=e.i(673157),t=e.i(7284),n=e.i(249892);e.i(462951);var a=e.i(646984),i=e.i(877130),s=e.i(917395),l=e.i(741467);e.i(179395);var o=e.i(73605),c=e.i(274918);e.i(696800);var u=e.i(940723),m=e.i(216458),d=e.i(714791),p=e.i(884770),h=e.i(157348),f=e.i(524105),x=e.i(84204);
3let g=({value:e,onChange:i,currencyOptions:s,onClose:l,translateAccount:u})=>{let{t:m}=(0,a.useTranslation)("songsAndPlaylists"),[h,f]=(0,n.useState)(""),x=(0,n.useRef)(null),g=s.filter(e=>{if(!h)return!0;let r=h.toLowerCase();return e.label.toLowerCase().includes(r)||e.name.toLowerCase().includes(r)});(0,n.useEffect)(()=>{setTimeout(()=>{x.current?.focus()},0)},[]);let y=e=>{i(e),l()};return(0,r.jsxs)("div",{role:"listbox",className:(0,t.default)("rounded-xl border border-white/20 bg-black/20 backdrop-blur-lg","shadow-lg","overflow-hidden","flex flex-col"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 border-b border-white/10 px-3 py-2",children:[(0,r.jsx)(p.SearchIcon,{className:"h-4 w-4 shrink-0 text-foreground-secondary"}),(0,r.jsx)("input",{ref:x,type:"text",value:h,onChange:e=>f(e.target.value),onKeyDown:e=>{"Enter"===e.key&&g.length>0?(e.preventDefault(),y(g[0].value)):"Escape"===e.key&&l()},placeholder:m("clipBrowserLibrary.searchPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm text-foreground-primary placeholder-foreground-tertiary outline-none","aria-label":m("clipBrowserLibrary.searchPlaceholder")}),h&&(0,r.jsx)("button",{type:"button",onClick:()=>{f(""),x.current?.focus()},className:"shrink-0 text-foreground-secondary hover:text-foreground-primary","aria-label":u("account.clearSearch"),children:(0,r.jsx)(d.CloseIcon,{className:"h-4 w-4"})})]}),(0,r.jsxs)("div",{className:"max-h-60 overflow-y-auto",children:[g.map((n,a)=>(0,r.jsx)(o.Button,{onClick:()=>y(n.value),variant:c.ButtonVariant.FrostedGlassBorderless,size:c.ButtonSize.Small,active:e===n.value,iconStart:n.icon,className:(0,t.default)("w-full rounded-none",a===g.length-1&&"rounded-b-xl"),contentClassName:"justify-start",iconClassName:"w-5 h-5",children:n.label},n.value)),0===g.length&&(0,r.jsx)("div",{className:"px-3 py-2 text-sm text-foreground-tertiary",children:u("billing.noCurrencies")})]})]})},y=({value:e,onChange:t,currencyOptions:s,className:l})=>{let{t:d}=(0,a.useTranslation)("account"),[p,f]=(0,n.useState)(!1),x=(0,n.useRef)(null),y=s.find(r=>r.value===e);return(0,n.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&f(!1)};if(p)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p]),(0,r.jsxs)("div",{className:(0,i.twMerge)("relative font-sans",l),ref:x,"data-testid":"currency-selector",children:[(0,r.jsx)(o.Button,{onClick:()=>f(e=>!e),variant:c.ButtonVariant.FrostedGlassBorderless,size:c.ButtonSize.Small,shape:c.ButtonShape.Pill,"aria-expanded":p,"aria-haspopup":"listbox","aria-label":d("billing.selectCurrency"),iconStart:y?.icon,iconEnd:p?m.CaretUpIcon:u.CaretDownIcon,iconClassName:"w-5 h-5",children:y?.label}),p&&(0,r.jsx)("div",{className:"absolute top-full left-0 z-50 mt-1 w-full",children:(0,r.jsx)(h.NamespaceLoadErrorBoundary,{renderFallback:h.ContentUnavailableRetryView,children:(0,r.jsx)(n.Suspense,{fallback:null,children:(0,r.jsx)(g,{value:e,onChange:t,currencyOptions:s,onClose:()=>f(!1),translateAccount:d})})})})]})},w=e=>(0,r.jsx)(h.NamespaceLoadErrorBoundary,{renderFallback:h.ContentUnavailableRetryView,children:(0,r.jsx)(n.Suspense,{fallback:null,children:(0,r.jsx)(y,{...e})})}),b=(e,r,t=!1)=>{if(Number.isNaN(e))return"N/A";let n=s.ZERO_DECIMAL_CURRENCIES.includes(r),a=s.CURRENCY_TO_LOCALE_MAP[r],i=t&&!n;return e.toLocaleString(a,{style:"currency",currency:r,minimumFractionDigits:i?2:n||Number.isInteger(e)?0:2,maximumFractionDigits:2*!n,trailingZeroDisplay:i?"auto":"stripIfInteger"})},N=e=>33===e?.3333:e/100,v=(e,r,t,n=!1)=>Number.isNaN(e)||Number.isNaN(t)?"N/A":b(e*(1-N(t)),r,n),j=({formatted:e,currency:r,showCurrencyCode:t})=>t&&"N/A"!==e?`${e} ${r}`:e,C=(e,r,t)=>{if(e.plan_key===f.PlanKey.Free)return 0;if(e.prices&&Array.isArray(e.prices)){let n=e.prices.find(e=>e.currency===r&&e.period_type===t);if(n)return n.price}return NaN};e.s(["CurrencySelector",0,w,"default",0,w,"getAnnualPriceForPlanAndCurrency",0,(e,r)=>C(e,r,x.SubscriptionPeriod.Annual),"getDiscountMultiplier",0,N,"getDisplayPrice",0,b,"getLabeledDisplayPrice",0,({price:e,currency:r,forceDecimals:t=!1,showCurrencyCode:n=!1})=>j({formatted:b(e,r,t),currency:r,showCurrencyCode:n}),"getLabeledSaleDisplayPrice",0,({price:e,currency:r,percentOff:t,forceDecimals:n=!1,showCurrencyCode:a=!1})=>j({formatted:v(e,r,t,n),currency:r,showCurrencyCode:a}),"getMonthlyPriceForPlanAndCurrency",0,(e,r)=>C(e,r,x.SubscriptionPeriod.Monthly),"getPriceForPlanAndCurrency",0,C,"getSaleDisplayPrice",0,v,"resolvePriceForPlanAndCurrency",0,({plan:e,currency:r,period:t})=>{let n=C(e,r,t);if(!Number.isNaN(n))return{price:n,currency:r};let a=(e.prices??[]).filter(e=>e.period_type===t);if(1===a.length){let e=(0,l.tryParseCurrency)(a[0].currency);if(e)return{price:a[0].price,currency:e}}return{price:NaN,currency:r}}])},791421,e=>{"use strict";var r=e.i(132186),t=e.i(531960);e.i(462951);var n=e.i(646984),a=e.i(964977),i=e.i(429131),s=e.i(158075);e.s(["useUsagePlanDescriptionsResponse",0,function(e){let{session:l}=(0,i.useStores)(),o=function(){let e=(0,a.useAppI18n)(),{i18n:r}=(0,n.useTranslation)("common",{i18n:e});return r.resolvedLanguage}();return(0,t.useQuery)({queryKey:["usagePlanDescriptionsResponse",o??null,e??null],staleTime:3e5,gcTime:(0,s.clientGcTime)(3e5),refetchOnMount:!1,refetchOnWindowFocus:!1,placeholderData:r.keepPreviousData,queryFn:async()=>{let r=await l.apiClient.GET("/api/billing/usage-plan-descriptions/",e?{params:{query:{variant:e}}}:void 0);if(r.error)throw Error(r.error);return r.data}})},"useUsagePlans",0,function(){let{session:e}=(0,i.useStores)();return(0,t.useQuery)({queryKey:["usagePlans"],refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:async()=>{let r=await e.apiClient.GET("/api/billing/usage-plans");if(r.error)throw Error(r.error);return r.data}})}],791421)}]);
4
5//# sourceMappingURL=15beaxywfy10_.js.map
6//# debugId=d3f46a95-199a-590f-84ac-b9fb7168a25a

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.