PageSourceSearch

https://www.audiosocket.com/_next/static/chunks/pages/artists/tracks/[id]/upload-ef17fac1df51b8a6.js

js audiosocket.com collected 2026-09-24 17:50:16 UTC 2,549 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2945],{3411:()=>{},48218:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>N});var s=t(37876),l=t(14232),i=t(28167),n=t(65029),r=t(61441),c=t(24287),o=t(22819),d=t(22706),u=t(82824),p=t(62033),m=t(91912),h=t(74695),w=t(19468),x=t(89099),k=t(62213),j=t(63105),A=t(40123),f=t.n(A);let{Dragger:y}=n.A,_=()=>{var e,a;let{showBulkTrackModal:t}=(0,h.d4)(e=>e.artist),[i,n]=(0,l.useState)([]),A=null==(a=(0,x.useRouter)())||null==(e=a.query)?void 0:e.id,_=(0,h.wA)(),g=[{title:"File Name",dataIndex:"name",key:"name"},{title:"Progress",key:"progress",render:(e,a)=>(0,s.jsx)(r.A,{percent:a.percent})}],N=async(e,a)=>{_((0,k.saveTrackAsync)({title:e,wavFile:a.split("amazonaws.com/")[1],albumId:A,draft:!0})).then(e=>{_((0,j.p)(!0)),_(fetchAlbumTrack(A))}).catch(e=>{})},v=async e=>{let{fileList:a}=e;n(await Promise.all(a.map(async e=>{let a=(await p.Xs(e.originFileObj)).common.title;return f()(a)&&(a=e.name.replace(".wav","")),{...e,uid:e.uid,name:e.name,status:e.status,progress:e.percent,file:e,title:a}})))},b=async e=>{let{file:a,onSuccess:t}=e,s=await (0,w.og)("music",a,e=>{let t=Math.round(100*e.loaded/e.total);n(e=>e.map(e=>e.uid===a.uid?{...e,percent:t}:e))});t("200"),c.Ay.success("".concat(a.name," file uploaded successfully."));let l=(await p.Xs(a)).common.title;f()(l)&&(l=a.name.replace(".wav","")),N(l,s)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(o.A,{open:t,title:"Upload Tracks",footer:null,onCancel:()=>_((0,m.IY)(!1)),children:[(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsxs)(y,{multiple:!0,fileList:i,onChange:v,showUploadList:!1,customRequest:e=>{let{file:a,onError:t,onSuccess:s,onProgress:l}=e;return b({file:a,onSuccess:s})},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(u.A,{})}),(0,s.jsx)("p",{className:"ant-upload-text",children:"Click or drag file to this area to upload"}),(0,s.jsx)("p",{className:"ant-upload-hint",children:"Some description"})]})}),(0,s.jsx)("br",{}),(0,s.jsx)(d.A,{columns:g,dataSource:i,rowKey:"uid",pagination:!1})]})})};var g=t(16211);let N=()=>(0,s.jsxs)(i.A,{step:3,page:"music",children:[(0,s.jsx)(g.Ay,{title:"Upload Track | Audiosocket",description:"Upload a track to Audiosocket.",path:"/artists/tracks/[id]/upload",noindex:!0}),(0,s.jsx)(_,{})]})},70143:()=>{},77070:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/artists/tracks/[id]/upload",function(){return t(48218)}])}},e=>{e.O(0,[8752,2858,4579,7897,1441,5029,4382,2706,2552,9665,636,6593,8792],()=>e(e.s=77070)),_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.