PageSourceSearch

https://www.loudly.com/music/static/userApi-BIg_OoHg.js

js loudly.com collected 2026-10-01 12:06:42 UTC 3,737 bytes, 1 lines download raw bytes

1import{s as l,b as p,t as n,v as R,w as S}from"./transformers-B9rlE3nl.js";const g=e=>{const t=new URLSearchParams;return e.firstName!=null&&t.append("first_name",e.firstName),e.lastName!=null&&t.append("last_name",e.lastName),e.email!=null&&t.append("email",e.email),e.password!=null&&t.append("password",e.password),t},f=e=>({...e,topUp:e.top_up}),T=e=>({usageData:{submitRelease:f(e.usage_data.submit_release)},resetData:{currentResetDate:e.reset_data.current_reset_date,nextResetDate:e.reset_data.next_reset_date,resetInDays:e.reset_data.reset_in_days}}),A=({auth_token:e})=>e,D=e=>new l(e),U=e=>{const{data:t}=e,{payload:r,error_description:a}=t;return{message:a,code:r==null?void 0:r.exception_code}},O=e=>({id:e.id,createdAt:new Date(e.created_at),paygCredits:e.payg_credits,subscriptionCredits:e.subscription_credits,subscriptionCreditsTotal:e.subscription_credits_total,subscriptionPeriodStart:e.subscription_period_start?new Date(e.subscription_period_start):null,freeUses:{generateMurekaSong:e.free_uses.generate_mureka_song,createRemixBundle:e.free_uses.create_remix_bundle,createMasteringBundle:e.free_uses.create_mastering_bundle}}),N=e=>({createRemix:e.prices.CREATE_REMIX,downloadSong:e.prices.DOWNLOAD_SONG,stemSplitter:e.prices.STEM_SPLITTER,studioExport:e.prices.STUDIO_EXPORT,downloadStems:e.prices.DOWNLOAD_STEMS,createMastering:e.prices.CREATE_MASTERING,sampleGenerator:e.prices.SAMPLE_GENERATOR,uploadUserAudio:e.prices.UPLOAD_USER_AUDIO,generateRemixPack:e.prices.GENERATE_REMIX_PACK,requestPdfLicense:e.prices.REQUEST_PDF_LICENSE,downloadSamplePack:e.prices.DOWNLOAD_SAMPLE_PACK,generateSongManta1:e.prices.GENERATE_MUREKA_SONG_V7_6,generateSongManta2:e.prices.GENERATE_MUREKA_SONG_V9,generateSongVega1:e.prices.GENERATE_SONG_VEGA_1,generateSongVega2:e.prices.GENERATE_SONG_VEGA_2,downloadCatalogSong:e.prices.DOWNLOAD_CATALOG_SONG,downloadDemucStems:e.prices.DOWNLOAD_DEMUCS_STEMS,generateMurekaLyrics:e.prices.GENERATE_MUREKA_LYRICS,requestRemixCommercialLicense:e.prices.REQUEST_REMIX_COMMERCIAL_LICENSE}),C=p.injectEndpoints({endpoints:e=>({confirmEmail:e.mutation({query:t=>({method:"POST",url:`/users/email/confirm/${t}`})}),getAccountLimits:e.query({query:()=>({method:"GET",url:"/users/limits"}),providesTags:[n.ACCOUNT_LIMITS],transformResponse:T,keepUnusedDataFor:0}),getUserCredits:e.query({query:()=>({method:"GET",url:"/users/credits"}),providesTags:[n.USER_CREDITS],transformResponse:O,keepUnusedDataFor:0}),getCreditPrices:e.query({query:()=>({method:"GET",url:"/config/credits/b2c"}),transformResponse:N,keepUnusedDataFor:300}),getIdenfyToken:e.query({query:()=>({method:"POST",url:"/idenfy/token"}),transformResponse:A,transformErrorResponse:U}),updateUser:e.mutation({query:({id:t,userData:r})=>{const a=g(r);return{method:"PATCH",url:`/users/${t}`,body:a}},transformResponse:D,async onQueryStarted(t,{queryFulfilled:r}){const{data:a}=await r;S.saveUserData(a)}}),downloadLicensePDF:e.mutation({queryFn:async({songId:t},r,a,_)=>{const i=await _({url:`/songs/${t}/license/pdf`,method:"GET",responseHandler:async s=>{var c;if(!s.ok){const u=await(await s.blob()).text();try{return JSON.parse(u)}catch{return{error:"UNKNOWN_ERROR",error_description:u||"Unknown error occurred"}}}const d=await s.blob(),m=URL.createObjectURL(d),o=s.headers.get("Content-Disposition"),E=o&&((c=o.split("filename=")[1])==null?void 0:c.replace(/"/g,""))||"license.pdf";return{url:m,filename:E}},cache:"no-cache"});return i.error?{error:R(i.error)}:{data:i.data}},invalidatesTags:(t,r)=>r?[]:[n.USER_CREDITS]})}),overrideExisting:!1}),{useGetAccountLimitsQuery:G,useGetUserCreditsQuery:P,useGetCreditPricesQuery:M,useConfirmEmailMutation:b,useDownloadLicensePDFMutation:w}=C;export{P as a,M as b,G as c,w as d,C as u};

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.