PageSourceSearch

https://music.cobrand.com/_next/static/chunks/2615-5562e799357fc214.js

js cobrand.com collected 2026-10-02 04:40:45 UTC 16,031 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2615],{13342:(e,t,l)=>{l.d(t,{S:()=>o});var a=l(6029),n=l(75828),s=l.n(n);let o=e=>{let{className:t}=e;return(0,a.jsxs)("div",{className:s()("flex w-full gap-3 p-3",t),children:[(0,a.jsx)("div",{className:"aspect-square h-[136px] w-[136px] shrink-0 animate-pulse rounded-xl bg-slate-100"}),(0,a.jsxs)("div",{className:"w-full space-y-2",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("div",{className:"h-4 w-full animate-pulse rounded-lg bg-slate-100"}),(0,a.jsx)("div",{className:"h-4 w-[66%] animate-pulse rounded-lg bg-slate-100"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-[20%] animate-pulse rounded-full bg-slate-100"}),(0,a.jsx)("div",{className:"h-4 w-[20%] animate-pulse rounded-full bg-slate-100"}),(0,a.jsx)("div",{className:"h-4 w-[20%] animate-pulse rounded-full bg-slate-100"})]})]})]})}},60899:(e,t,l)=>{l.d(t,{F:()=>u});var a=l(6029),n=l(45063),s=l(8542),o=l(82558),r=l(71617),i=l(49956),c=l(48732),d=l(3239);let u=e=>{let{imageUrl:t,platform:l,region:u,name:h,username:m,isVerified:p,metrics:g,videos:x,onClick:y}=e;return(0,a.jsxs)("div",{className:"group/creator-card flex w-full cursor-pointer gap-3 overflow-hidden rounded-2xl border border-slate-200 p-3 transition hover:bg-slate-100 focus:bg-slate-200 active:bg-slate-200",onClick:y,children:[(0,a.jsx)("div",{className:"flex-none",children:(0,a.jsxs)("div",{className:"relative aspect-square w-[136px] overflow-hidden rounded-xl bg-slate-100",children:[(0,a.jsx)(s.e,{src:t,size:136,backupIconType:o.A.Account}),(0,a.jsx)("div",{className:"absolute inset-0 h-full w-full transition group-hover/creator-card:bg-black/40",children:(0,a.jsx)(r.A,{platform:l||n.O.TikTok,region:u})})]})}),(0,a.jsxs)("div",{className:"flex-auto space-y-4 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col space-y-2",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-start",children:[(0,a.jsx)(i.E,{className:"!line-clamp-1 text-slate-600",typography:i.o.Footnote,bold:!0,children:h||m}),(0,a.jsxs)("div",{className:"flex flex-row items-center space-x-0.5",children:[(0,a.jsx)(i.E,{className:"!line-clamp-1 text-slate-500",typography:i.o.Caption1,children:null==m?void 0:m.replace("@@","@")}),p&&(0,a.jsx)(c.A,{})]})]}),g]}),(0,a.jsxs)("div",{className:"relative flex items-center gap-2 overflow-hidden",children:[x.slice(0,5).map(e=>(0,a.jsx)(d.A,{video:e},e.id)),(0,a.jsx)("div",{className:"absolute bottom-0 right-0 h-[60px] w-[36px] bg-gradient-to-l from-white to-transparent group-hover/creator-card:from-slate-100"})]})]})]})}},65931:(e,t,l)=>{l.d(t,{c:()=>o});var a=l(95099),n=l(84203),s=l(19117);let o=e=>{let t=(0,s.MI)({needsAuthentication:!0,includeHost:!1});return(0,a.q)({queryKey:["INFINITE_LIST_SONGS",e],queryFn:l=>{let{pageParam:a}=l;return t("".concat(n.JY,"/song_analytics/list_songs"),{method:"POST",body:JSON.stringify({...e,cursor:a})})},getNextPageParam:e=>(null==e?void 0:e.links.has_next)?e.links.next:void 0,initialPageParam:void 0,enabled:!!e.organization_id})}},69146:(e,t,l)=>{l.d(t,{A:()=>Y});var a=l(6029),n=l(63752),s=l(33076),o=l(14216),r=l(45231),i=l(2741),c=l(12492),d=l(80812),u=l(82558),h=l(85693),m=l(70223),p=l(85077),g=l(43027),x=l(96677),y=l(75234),_=l(49616),v=l(24447),f=l(15935),b=l(49956),j=l(12482),N=l(84203),C=l(19117),S=l(63372),k=l(45063),w=l(5648),T=function(e){return e.ContentCount="content_count",e.ContentCountDelta="content_count_delta",e.ContentCountDelta1d="content_count_delta_1d",e.ContentCountDelta3d="content_count_delta_3d",e.ContentCountDelta7d="content_count_delta_7d",e.ContentCountDelta14d="content_count_delta_14d",e.ContentCountDelta30d="content_count_delta_30d",e.PublishedAt="published_at",e}({}),A=l(72152),D=l(91550),I=l(42042),E=l(75828),O=l.n(E),P=l(59295),z=l(55729),M=l(8542),q=l(26258),L=l(18966),B=l(82203),F=l.n(B),U=l(81278);let H=e=>{let{row:t}=e,l=(0,U.useRouter)(),n=t.songs[0];return n?(0,a.jsxs)("div",{className:"flex h-full min-w-0 items-center gap-3",children:[(0,a.jsx)(M.e,{src:(0,L.YZ)(n),size:40,backupIconType:u.A.Music}),(0,a.jsxs)("div",{className:"min-w-0 space-y-0.5",children:[(0,a.jsx)(F(),{href:{pathname:"/songs/".concat(n.segment.id),query:l.query},className:"hover:text-primary-600 block truncate text-slate-600 transition hover:underline",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,a.jsx)(b.E,{className:"truncate text-inherit",typography:b.o.Footnote,bold:!0,children:(0,L.JA)(n)})}),(0,a.jsx)(b.E,{className:"truncate text-slate-500",typography:b.o.Caption1,children:(0,L.oQ)(n)})]})]}):(0,a.jsx)(q.A,{})},R={"":T.ContentCountDelta1d,"3d":T.ContentCountDelta3d,"7d":T.ContentCountDelta7d,"14d":T.ContentCountDelta14d,"30d":T.ContentCountDelta30d},J=[{key:"play_count",title:"Total Views"},{key:"play_count_delta",title:"Views (24h)"},{key:"like_count",title:"Total Likes"},{key:"like_count_delta",title:"Likes (24h)"},{key:"comment_count",title:"Total Comments"},{key:"comment_count_delta",title:"Comments (24h)"}
1,{key:"engagement_count",title:"Total Engagements"},{key:"engagement_count_delta",title:"Engagements (24h)"}].map(e=>({...e,colspan:1,unit:D.N.Number,cell:p.r})),K=new Set(Object.values(T)),Y=e=>{var t;let{organizationId:l,segmentId:E,inputClassName:M,selectedSounds:q=[],setSelectedSounds:L,onSoundClick:B,isMultiselect:F,renderActionCell:U}=e,[Y,G]=(0,z.useState)(10),[W,X]=(0,z.useState)(T.ContentCount),[V,Q]=(0,z.useState)(A.m.Desc),[Z,$]=(0,z.useState)(),[ee,et]=(0,z.useState)(""),el=(0,S.d)(ee,300),[ea,en]=(0,z.useState)(""),es=(0,S.d)(ea,300),[eo,er]=(0,z.useState)(),[ei,ec]=(0,z.useState)([]),[ed,eu]=(0,z.useState)([]),[eh,em]=(0,z.useState)([]),[ep,eg]=(0,z.useState)([]),[ex,ey]=(0,z.useState)([]),[e_,ev]=(0,z.useState)(),[ef,eb]=(0,z.useState)(),[ej,eN]=(0,z.useState)(""),[eC,eS]=(0,z.useState)(),[ek,ew]=(0,z.useState)(),[eT,eA]=(0,z.useState)(),[eD,eI]=(0,z.useState)(),eE=R[ej],eO=ej||"24h",eP=((e,t)=>{var l;let a=(0,C.MI)({needsAuthentication:!0,includeHost:!1});return(0,j.I)({queryKey:["SOUND_DB_LIST_SOUNDS",e],queryFn:()=>a("".concat(N.JY,"/sound_db/list"),{method:"POST",body:JSON.stringify(e)}),enabled:null==(l=null==t?void 0:t.enabled)||l,select:e=>e?{...e,items:e.items.map(e=>{let{sound:t,songs:l,performance:a}=e;return{...t,...a,songs:null!=l?l:[]}})}:e})})((0,z.useMemo)(()=>{var e,t;return{organization_id:l,page_size:Y,cursor:Z,title_query:el,author_query:es,platforms:eo?[eo]:[],segment_ids:ex.map(e=>e.segment.id),genres:ei,labels:ed,record_labels:eh,distributors:ep,published_at__min:null!=(e=null==e_?void 0:e_.format(I.a7))?e:null,published_at__max:null!=(t=null==ef?void 0:ef.format(I.a7))?t:null,order_by_field:W,order_by_direction:V}},[l,Y,Z,el,es,eo,ex,ei,ed,eh,ep,e_,ef,W,V]),{enabled:!E}),ez=((e,t)=>{var l;let a=(0,C.MI)({needsAuthentication:!0,includeHost:!1});return(0,j.I)({queryKey:["SOUND_DB_LIST_SEGMENT_SOUNDS",e],queryFn:()=>a("".concat(N.JY,"/sound_db/list_by_segment"),{method:"POST",body:JSON.stringify(e)}),enabled:null==(l=null==t?void 0:t.enabled)||l,select:e=>e?{...e,items:e.items.map(e=>{let{sound:t,songs:l,performance:a}=e;return{...t,...a,songs:null!=l?l:[]}})}:e})})({organization_id:l,segment_id:null!=E?E:"",title_query:el,platforms:eo?[eo]:[],content_count__min:eC,content_count__max:ek,content_count_delta_field:eE,content_count_delta__min:eT,content_count_delta__max:eD,page_size:Y,cursor:Z,order_by_field:W,order_by_direction:V},{enabled:!!E}),{data:eM,isLoading:eq}=E?ez:eP;(0,z.useEffect)(()=>{$(void 0)},[el,es,eo,ei,ed,eh,ep,e_,ef,W,V,Y,eE,eC,ek,eT,eD]);let eL=(0,z.useMemo)(()=>[{key:"id",title:"Sounds",colspan:2,sticky:!0,cell:e=>{var t,l;let{row:n}=e;return(0,a.jsx)(_.A,{title:n.title,authorName:null!=(t=n.author_name)?t:void 0,platform:n.platform,hrefUrl:void 0,coverUrl:n.cover_url,playUrl:null!=(l=n.play_url)?l:void 0,onTitleClick:()=>B(n),additionalThumbnailElements:(0,a.jsx)(y.A,{sound:n})})}},{key:"songs",title:"Songs",colspan:1,cell:H},{key:T.PublishedAt,title:"Published",colspan:1,sortable:!0,cell:e=>{let{row:t}=e;return(0,a.jsx)(b.E,{className:"break-words text-inherit text-slate-600",typography:b.o.Footnote,children:(e=>{if(!e)return"--";let t=P.A.utc(e);return!t.isValid()||1970>=t.year()?"--":t.format(I._5)})(t.published_at)})}},{key:T.ContentCount,title:"Total Creates",colspan:1,unit:D.N.Number,sortable:!0,cell:p.r},{key:eE,deltaKey:ej?"content_count_change_pct_".concat(ej):"content_count_change_pct",title:"Creates (".concat(eO,")"),colspan:1,unit:D.N.Number,sortable:!0,cell:g.B},...E?J:[]],[eE,ej,eO,B,E]),eB=null!=(t=null==eM?void 0:eM.items)?t:[],eF=new Set(q.map(e=>e.id)),eU=eB.filter(e=>eF.has(e.id)).length;return(0,a.jsxs)("div",{className:"flex flex-grow flex-col space-y-7 overflow-hidden",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)(n.e,{className:"flex-wrap",children:[(0,a.jsx)("div",{className:O()("flex-1",M),children:(0,a.jsx)(h.p,{iconType:u.A.SoundSearch,placeholder:"Search sounds by title...",value:ee,onChange:e=>et(e.target.value),className:O()("w-full",M),showClearButton:!0})}),!E&&(0,a.jsx)("div",{className:O()("flex-1",M),children:(0,a.jsx)(h.p,{iconType:u.A.CreatorSearch,placeholder:"Search sounds by artist name...",value:ea,onChange:e=>en(e.target.value),className:O()("w-full",M),showClearButton:!0})}),(0,a.jsx)(d.A,{deltaLookbackWindowKey:ej,setDeltaLookbackWindowKey:e=>{e in R&&(eN(e),X(t=>t.startsWith("content_count_delta")?R[e]:t))},prefix:"Creates Window: "})]}),(0,a.jsxs)(n.e,{className:"flex-wrap",children:[(0,a.jsx)(r.u,{selectedPlatform:eo,onChange:er,avaliablePlatforms:[{title:"TikTok",iconType:u.A.TikTok,value:k.O.TikTok}
1,{title:"Instagram",iconType:u.A.Instagram,value:k.O.Instagram},{title:"YouTube",iconType:u.A.Youtube,value:k.O.Youtube}]}),E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.n,{name:"Total Creates",decimalLimit:0,min:eC,max:ek,onMinChange:eS,onMaxChange:ew,triggerType:s.m.Badge}),(0,a.jsx)(o.n,{name:"Creates (".concat(eO,")"),allowNegative:!0,decimalLimit:0,min:eT,max:eD,onMinChange:eA,onMaxChange:eI,triggerType:s.m.Badge})]}),(0,a.jsx)(m.A,{selectedGenreIds:ei,setSelectedGenreIds:ec}),(0,a.jsx)(i.X,{rightHolderType:w.H2.IMPRINT,selectedItems:ed,onChange:eu}),(0,a.jsx)(i.X,{rightHolderType:w.H2.RECORD_LABEL,selectedItems:eh,onChange:em}),(0,a.jsx)(i.X,{rightHolderType:w.H2.DISTRIBUTOR,selectedItems:ep,onChange:eg}),(0,a.jsx)(x.A,{organizationId:l,selectedSongs:ex,onSongsChange:e=>{ey(e),$(void 0)},triggerType:s.m.Badge,unselectedText:"Songs"}),(0,a.jsx)(c.U,{startDate:e_,endDate:ef,onDateChange:(e,t)=>{ev(e),eb(t)},allowNullDates:!0,allowStartDateOnly:!1,triggerType:s.m.Badge,emptyTriggerTitle:"Published Date"})]})]}),(0,a.jsx)(v.XI,{headers:eL.filter(e=>!E||"songs"!==e.key&&e.key!==T.PublishedAt),data:eB,isLoading:eq,pageSize:Y,resetTableData:()=>$(void 0),sort:W,sortDirection:V,onSortChange:(e,t)=>
1{K.has(e)&&(X(e),Q(t))},footer:(0,a.jsx)(f.A,{cursor:Z,links:null==eM?void 0:eM.links,onPageChange:$,pageSize:Y,setPageSize:G}),isMultiselect:F,selectedRows:q,onRowClick:B,onRowSelectToggle:e=>{null==L||L(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},tableHeaderCheckboxProps:F?{checked:eB.length>0&&eU===eB.length,indeterminate:eU>0&&eU<eB.length,onChange:e=>{if(!e){null==L||L([]);return}null==L||L(e=>{let t=new Map(e.map(e=>[e.id,e]));return eB.forEach(e=>{t.set(e.id,e)}),Array.from(t.values())})}}:void 0,renderActionCell:U})]})}},96677:(e,t,l)=>{l.d(t,{A:()=>C});var a=l(6029),n=l(75828),s=l.n(n),o=l(55729),r=l(63372),i=l(74286),c=l(65931),d=l(72152),u=l(5648),h=l(18966),m=l(97431),p=l(87994),g=l(33076),x=l(25176),y=l(82558),_=l(85693),v=l(99998),f=l(10783),b=l(49956),j=l(8542);let N=e=>{let{song:t,isSelected:l,onClick:n}=e;return(0,a.jsxs)("div",{className:"group/song flex cursor-pointer items-center gap-3 rounded-xl px-3 py-2 transition hover:bg-slate-100 active:bg-slate-200",onClick:n,children:[(0,a.jsx)(p.S,{checked:l,onChange:()=>null,size:20}),(0,a.jsx)(j.e,{src:(0,h.YZ)(t),size:36,backupIconType:y.A.Music}),(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsx)(b.E,{typography:b.o.Footnote,bold:!0,className:s()("transition",{"text-slate-800":l,"text-slate-500 group-hover/song:text-slate-800":!l}),children:(0,h.JA)(t)}),(0,a.jsx)(b.E,{typography:b.o.Caption1,className:"text-slate-400",children:(0,h.oQ)(t)})]})]})},C=e=>{var t,l,n;let{organizationId:j,selectedSongs:C,onSongsChange:S,artistIds:k=[],listFilter:w=u.EU.UNLOCKED_SONGS,unselectedText:T="All Songs",align:A=f.bq.Start,side:D=f.vr.Bottom,triggerType:I}=e,[E,O]=(0,o.useState)(!1),[P,z]=(0,o.useState)(""),M=(0,r.d)(P,300),q=k.length>0,{data:L}=(0,i.R)({organization_id:j}),{data:B,isLoading:F,fetchNextPage:U,hasNextPage:H,isFetchingNextPage:R}=(0,c.c)({organization_id:j,search:{by:u.bb.SONG_TITLE,query:M},list_filter:w,artist_id__in:k,only_favourite_songs:!1,order_by:{field:"streams_delta",direction:d.m.Desc},hide_variants:!0,page_size:100}),J=null!=(l=null==B||null==(t=B.pages)?void 0:t.flatMap(e=>{var t;return null!=(t=null==e?void 0:e.items)?t:[]}))?l:[],K=q||M||w!==u.EU.UNLOCKED_SONGS?J.length:null!=(n=null==L?void 0:L.songs_count)?n:J.length,Y=(0,o.useCallback)(e=>{let{scrollTop:t,scrollHeight:l,clientHeight:a}=e.currentTarget;l-t<=a+16&&H&&!R&&U()},[U,H,R]),G=0===C.length?T:1===C.length?(0,h.JA)(C[0]):"".concat(C.length," Songs"),W=(0,a.jsxs)("div",{className:"shadow-raised flex max-h-[600px] w-[440px] flex-col overflow-hidden rounded-xl border border-slate-200 bg-white",children:[(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(_.p,{className:"w-full",placeholder:"Search songs...",value:P,onChange:e=>z(e.target.value),iconType:y.A.Search,showClearButton:!0})}),(0,a.jsx)("div",{className:"border-b border-slate-200 px-4 pb-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"cursor-pointer",onClick:()=>{if(C.length>0)return void S([]);S(J)},children:(0,a.jsx)(p.S,{checked:C.length>0,indeterminate:C.length>0&&C.length<J.length,size:20,onChange:()=>null})}),(0,a.jsx)(b.E,{className:"text-slate-500",typography:b.o.Footnote,bold:!0,children:"".concat(C.length,"/").concat(K," Selected")})]})}),(0,a.jsxs)("div",{className:"flex-grow overflow-y-auto p-2",onScroll:Y,children:[J.map(e=>(0,a.jsx)(N,{song:e,isSelected:C.some(t=>t.segment.id===e.segment.id),onClick:()=>(e=>{let t=C.findIndex(t=>t.segment.id===e.segment.id);if(t<0)S([...C,e]);else{let e=[...C];e.splice(t,1),S(e)}})(e)},e.segment.id)),(F||R)&&(0,a.jsx)("div",{className:"flex items-center justify-center p-4",children:(0,a.jsx)(v.I,{size:16,className:"fill-primary-600"})}),!F&&!J.length&&(0,a.jsxs)("div",{className:"flex h-[142px] flex-col items-center justify-center space-y-2 text-center",children:[(0,a.jsx)(b.E,{typography:b.o.Footnote,bold:!0,className:"w-[300px] text-slate-500",children:"No results for ‘".concat(M,"’")}),(0,a.jsx)(b.E,{typography:b.o.Caption1,className:"w-[300px] text-slate-400",children:"Please check the spelling and try again."})]})]})]});return(0,a.jsx)(f.AM,{isOpen:E,content:W,align:A,side:D,onOutsideClick:()=>O(!1),children:(()=>{let e={title:G,hasSelection:C.length>0,isOpen:E,onClick:()=>O(e=>!e),iconType:y.A.Music};switch(I){case g.m.Dropdown:return(0,a.jsx)(x.u,{...e});case g.m.Badge:return(0,a.jsx)(m.p,{...e,className:s()({"!bg-slate-100":E})});default:return(0,a.jsxs)("div",{className:s()("group flex h-[34px] curs
1or-pointer items-center justify-between gap-1 rounded-[10px] border px-3 py-2 transition",{"active:button-textbased-tertiary-pressed hover:button-textbased-tertiary-hover":!E,"button-textbased-tertiary-default border-transparent":!E,"border-primary-600 surface-static-neutral-primary-soft fill-primary-600":E}),onClick:e.onClick,children:[(0,a.jsx)(b.E,{className:"whitespace-nowrap text-slate-800",typography:b.o.Footnote,bold:!0,children:G}),(0,a.jsx)(y.I,{className:s()("transition",{"fill-slate-600":!E,"fill-primary-600 rotate-180":E}),type:y.A.Sort,size:16})]})}})()})}}}]);

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.