!function(){try{var a="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new a.Error).stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="6cabc700-3b5c-4fb1-add0-e428eb07ccca",a._sentryDebugIdIdentifier="sentry-dbid-6cabc700-3b5c-4fb1-add0-e428eb07ccca")}catch(a){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6439],{46061:(a,t,e)=>{e.r(t),e.d(t,{useIsMobile:()=>s});var n=e(12115);function s(){let[a,t]=n.useState(void 0);return n.useEffect(()=>{let a=window.matchMedia("(max-width: ".concat(767,"px)")),e=()=>{t(window.innerWidth<768)};return a.addEventListener("change",e),t(window.innerWidth<768),()=>a.removeEventListener("change",e)},[]),!!a}},73366:(a,t,e)=>{e.d(t,{fz:()=>tU,Tu:()=>tq.Ay});var n=e(6591);let s=async()=>(await n.A3.get("/accelerate/has-accelerate")).data,i=async a=>(await n.A3.post("/accelerate",{...a})).data,r=async()=>(await n.A3.get("/accelerate")).data,c=async a=>(await n.A3.get("/affiliates/".concat(a))).data,o=async a=>(await n.A3.post("/affiliates/".concat(a))).data,l=async()=>(await n.A3.get("/analysis/count")).data,d=async a=>(await n.A3.post("/analysis/".concat(a.id),{artist:a,responseType:"blob"})).data,u=async a=>(await n.A3.post("artists",a)).data,p=async a=>(await n.A3.delete("artists/".concat(a))).data;var y=e(58591);let w=async()=>(await n.A3.post("/auth/logout")).data,g=async a=>(await n.A3.post("/auth/login",a)).data,f=async a=>(await n.A3.post("/auth/refresh-spotify",{},{headers:{Authorization:"Bearer ".concat(a)}})).data,h=async()=>(await n.A3.post("/auth/authorize-distribution")).data,m=async a=>(await n.A3.post("/auth/email/verify",{token:a})).data,v=async()=>(await n.A3.post("/auth/email/send-verify")).data;var A=e(75171);let b=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e);return(await n.A3.get("/blocked-users/",{params:{limit:e,offset:s}})).data},k=async a=>(await n.A3.get("/blocked-users/check/".concat(a))).data,I=async a=>(await n.A3.post("/blocked-users/block/".concat(a))).data,E=async a=>(await n.A3.delete("/blocked-users/unblock/".concat(a))).data,P=async a=>(await n.A3.get("/blocked-users/check-artist/".concat(a))).data,_=async a=>(await n.A3.post("/cart",a)).data,C=async a=>(await n.A3.put("/chat/".concat(a,"/archive"))).data,S=async a=>(await n.A3.post("/chat",{participants:a})).data,T=async a=>(await n.A3.post("/chat/token",{identity:a})).data,L=async a=>(await n.A3.delete("/chat/".concat(a))).data,x=async()=>(await n.A3.get("/chat/count")).data,U=async(a,t)=>(await n.A3.post("/chat/join",{chatId:a,participants:t})).data,q=async(a,t)=>{let e=(null==a?void 0:a.pageParam)||1,s=parseInt((null==a?void 0:a.limit)||A.EK),i=parseInt((e-1)*s);return(await n.A3.get("/chat",{params:{identity:t,limit:s,offset:i}})).data},R=async a=>(await n.A3.put("/chat/sync",{chats:a})).data,z=async a=>(await n.A3.put("/chat/".concat(a,"/unarchive"))).data,M=async()=>(await n.A3.get("/consent/documents")).data,D=async a=>(await n.A3.get("/curators/".concat(a))).data,B=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{userId:i}=a;return(await n.A3.get("/curators/".concat(i,"/playlists"),{params:{limit:e,offset:s}})).data},N=async a=>(await n.A3.get("/curators/type/".concat(a))).data,F=async a=>(await n.A3.get("/curators/".concat(a,"/artists"))).data,K=async(a,t)=>(await n.A3.get("/curators/".concat(a,"/counters"),{params:t})).data,Y=async a=>(await n.A3.get("/curators/".concat(a,"/stats"))).data;var H=e(99795);let j=async a=>(await n.A3.post("/dev/plan-switch",{...a})).data,O=async()=>(await n.A3.post("/dev/refresh-user")).data,W=async()=>(await n.A3.get("/dev/remove-artist")).data,G=async()=>(await n.A3.get("/dev/verify-user")).data,V=async(a,t)=>(await n.A3.get("/discount/can-use/".concat(a,"?").concat(t))).data,$=async a=>(await n.A3.get("/discount/".concat(a))).data,X=async(a,t,e)=>(await n.A3.post("/discount/".concat(a),{plan:t,price:e})).data,Z=async a=>(await n.A3.get("downloads/".concat(a))).data,J=async a=>(await n.A3.get("downloads/".concat(a,"/file"))).data,Q=async a=>(await n.A3.get("downloads?locale=".concat(a))).data,aa=async a=>(await n.A3.get("/genres",{params:{q:a}})).data,at=async a=>(await n.A3.get("/open/invoices/".concat(a))).data,ae=async(a,t)=>(await n.A3.post("/magazine/".concat(a,"/queue"),{trackId:t})).data,an=async(a,t)=>(await n.A3.get("/magazine/".concat(a,"/queue"),{params:{trackId:t}})).data,as=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{genres:i,trackId:r,artistIds:c}=a;return(await n.A3.post("/magazine",{limit:e,offset:s,genres:i,trackId:r,artistIds:c})).data},ai=async()=>(await n.A3.get("/maintenance")).data,ar={getMatchScore:async(a,t,e)=>(await n.A3.post("/match/".concat(a,"/").concat(t,"/score"),{trackFeatures:e})).data,listMatchPlaylists:async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{genres:i,trackId:r,artistIds:c,trackFeatures:o}=a;return(await n.A3.post("/match",{limit:e,offset:s,genres:i,trackId:r,artistIds:c,trackFeatures:o})).data},pushToPlaylist:async a=>{let{playlistId:t,track:e,trackId:s,checksum:i}=a;return(await n.A3.post("/match/".concat(t,"/push"),{trackId:s,track:e,checksum:i})).data}},ac=async a=>(await n.A3.post("/media/upload",{file:a,multipart:!0})).data,ao=async a=>(await n.A3.get("music-mind/".concat(a,"/fake-score"))).data,al=async a=>(await n.A3.get("music-mind/".concat(a,"/genres"))).data,ad=async a=>(await n.A3.get("music-mind/".concat(a,"/genres-updated"))).data,au=async a=>(await n.A3.post("music-mind/".concat(a,"/genres-update"))).data,ap=async(a,t)=>(await n.A3.put("music-mind/".concat(a,"/genres-update"),{genres:t})).data,ay=async()=>(await n.A3.get("/notifications/digest")).data,aw=async a=>(await n.A3.get("/notifications/".concat(a))).data,ag=async()=>(await n.A3.get("/notifications")).data,af=async a=>(await n.A3.post("/notifications/read",{ids:a})).data,ah=async()=>(await n.A3.get("/open/banner")).data,am=async a=>(await n.A3.get("/open/plans?lang=".concat(a))).data,av=async a=>(await n.A3.get("/open/plans/products?lang=".concat(a))).data,aA=async()=>(await n.A3.get("/open/curators/featured")).data,ab=async()=>(await n.A3.get("/open/curators/random")).data,ak=async()=>(await n.A3.get("/open/curators/star")).data,aI=async a=>(await n.A3.get("/open/submissions/popular?".concat(a))).data,aE=async()=>(await n.A3.get("/open/promo")).data,aP=async a=>(await n.A3.get("/open/subscribe?token=".concat(a))).data,a_=async a=>(await n.A3.get("/open/unsubscribe?token=".concat(a))).data,aC=async(a,t,e,s)=>(await n.A3.get("plans/vip/price",{params:{artistPopularity:a,trackPopularity:t,genres:e,code:s}})).data,aS=async()=>(await n.A3.get("plans/analysis/price")).data,aT=async()=>(await n.A3.get("plans/playlist/price")).data,aL=async()=>(await n.A3.get("plans/profile-featured/price")).data,ax=async()=>(await n.A3.get("plans/playlist-featured/price")).data,aU=async(a,t)=>(await n.A3.put("/playlists/".concat(a,"/auto-submit/enable"),{minMatchRate:t})).data,aq=async a=>(await n.A3.put("/playlists/".concat(a,"/auto-submit/disable"))).data,aR=async a=>(await n.A3.get("/playlists/".concat(a))).data,az=async a=>(await n.A3.put("/playlists/".concat(a,"/images"),{})).data,aM=async()=>(await n.A3.put("/playlists/fetch")).data,aD=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e);return(await n.A3.get("/playlists/",{params:{limit:e,offset:s}})).data},aB=async(a,t)=>(await n.A3.put("/playlists/".concat(a,"/enable"),{isVerified:t})).data,aN=async a=>(await n.A3.get("/playlist-check/".concat(a))).data,aF=async function(a,t,e){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return s?(await n.A3.get("/playlist-check/".concat(a,"/charts?latest=true"))).data:(await n.A3.get("/playlist-check/".concat(a,"/charts?startDate=").concat(t,"&endDate=").concat(e))).data},aK=async()=>(await n.A3.get("/playlist-check/watching")).data,aY=async a=>(await n.A3.delete("/playlist-check/".concat(a,"/unwatch"))).data,aH=async a=>(await n.A3.post("/playlist-check/".concat(a,"/watch"))).data,aj=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{campaignId:i,vip:r}=a,c={limit:e,offset:s};return i&&(c.campaignId=i),r&&(c.vip=r),(await n.A3.get("/push/artist",{params:c})).data},aO=async a=>(await n.A3.get("/push/artist/".concat(a,"/ids"))).data,aW=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{trackId:i,status:r,handledBy:c}=a;return(await n.A3.get("/push/artist/".concat(i),{params:{limit:e,offset:s,status:r,handledBy:c}})).data},aG=async(a,t,e)=>(await n.A3.post("/push/curator/".concat(a,"/accept"),{trackId:t,submitterId:e})).data,aV=async(a,t)=>(await n.A3.post("/push/curator/".concat(a,"/archive"),{trackId:t})).data,a$=async(a,t,e,s)=>(await n.A3.post("/push/curator/".concat(a,"/reject"),{feedback:s,trackId:t,submitterId:e})).data,aX=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{playlistId:i,handledBy:r,status:c,archived:o}=a;return(await n.A3.get("/push/curator/".concat(i),{params:{limit:e,offset:s,handledBy:r,status:c,archived:o}})).data},aZ=async(a,t,e)=>(await n.A3.post("/push/curator/".concat(a,"/undo"),{trackId:t,submitterId:e})).data;var aJ=e(22626),aQ=e.n(aJ),a0=e(44534);let a3=async a=>{let t=(null==a?void 0:a.pageParam)||0,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt(t*e);return(await n.A3.get("/radio",{params:{limit:e,offset:s}})).data},a1=async a=>{let t=new Blob([(await n.A3.post("/radio/export",{selectedIds:a,responseType:"blob"})).data],{type:"text/csv;charset=utf-8"});(0,a0.saveAs)(t,"radio_export_".concat(aQ()().format("YYYY-MM-DD"),".csv"))},a2=async()=>(await n.A3.get("/rank")).data,a5=async(a,t)=>(await n.A3.post("requests",{type:a,formData:t})).data,a4=async a=>(await n.A3.get("requests/exists/".concat(a))).data,a9=async()=>(await n.A3.get("requests")).data,a6=async()=>(await n.A3.get("/roles/")).data,a7=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{query:i,type:r}=a;return(await n.A3.get("/search",{params:{limit:e,offset:s,query:i,type:r}})).data},a8=async(a,t)=>(await n.A3.get("/tiktok/".concat(a,"/queue"),{params:{trackId:t}})).data,ta=async(a,t)=>(await n.A3.post("/tiktok/".concat(a,"/queue"),{trackId:t})).data,tt=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{genres:i,trackId:r,artistIds:c}=a;return(await n.A3.post("/tiktok",{limit:e,offset:s,genres:i,trackId:r,artistIds:c})).data},te=async a=>(await n.A3.get("/token/".concat(a))).data,tn=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e);return(await n.A3.get("/tracks-play?limit=".concat(e,"&offset=").concat(s))).data},ts=async a=>(await n.A3.post("/tracks-play/".concat(a,"/play"))).data,ti=async()=>(await n.A3.post("/transactions/customer")).data,tr=async(a,t,e)=>(await n.A3.post("/transactions/intent",{plan:a,customerId:t,metadata:e})).data,tc=async a=>{let{customerId:t,plan:e,metadata:s}=a;return(await n.A3.post("/transactions/subscription",{customerId:t,plan:e,metadata:s})).data},to=async()=>(await n.A3.put("/transactions/subscription/renewal/disable")).data,tl=async()=>(await n.A3.put("/transactions/subscription/renewal/enable")).data,td=async a=>(await n.A3.get("/transactions/intent/".concat(a))).data,tu=async()=>(await n.A3.get("/transactions/subscription")).data,tp=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e);return(await n.A3.get("/transactions",{params:{limit:e,offset:s}})).data},ty=async()=>(await n.A3.put("/transactions/pending/undo")).data,tw=async a=>{let{amount:t,creditsScoreUsed:e,plan:s}=a;return(await n.A3.put("/transactions/subscription",{amount:t,creditsScoreUsed:e,plan:s})).data},tg=async()=>(await n.A3.put("/users/complete-profile")).data,tf=async()=>(await n.A3.delete("/users/delete")).data,th=async()=>{let a=new Blob([(await n.A3.get("/users/export",{responseType:"blob"})).data],{type:"text/csv;charset=utf-8"});(0,a0.saveAs)(a,"user_export_".concat(aQ()().format("YYYY-MM-DD"),".csv"))},tm=async a=>(await n.A3.get("/users/me",{headers:{Authorization:"Bearer ".concat(a)}})).data,tv=async a=>(await n.A3.get("/users/".concat(a))).data,tA=async a=>(await n.A3.put("/users/billing",a)).data,tb=async a=>(await n.A3.put("/users/contacts",{contacts:a})).data,tk=async(a,t)=>(await n.A3.put("/users/settings/".concat(a),{value:t})).data,tI=async a=>(await n.A3.put("/users/certifications",a)).data,tE=async a=>(await n.A3.post("/vip",{payload:a})).data,tP=async()=>(await n.A3.delete("/vip")).data,t_=async a=>(await n.A3.get("/vip/".concat(a))).data,tC=async()=>(await n.A3.get("/vip")).data,tS=async a=>(await n.A3.post("/vip/request",{payload:a})).data,tT=async a=>(await n.A3.post("/wanted/artist",{data:a})).data,tL=async a=>{let{artistId:t}=a;return(await n.A3.get("/wanted/".concat(t,"/counters"))).data},tx=async a=>{let t=(null==a?void 0:a.pageParam)||1,e=parseInt((null==a?void 0:a.limit)||A.EK),s=parseInt((t-1)*e),{artistId:i,areaLevel:r}=a,c={limit:e,offset:s};return r&&(null==r?void 0:r.length)>0&&(c.areaLevel=r),(await n.A3.get("/wanted/".concat(i,"/list"),{params:c})).data},tU={createAccelerate:i,listAccelerates:r,hasAccelerate:s,getAffiliateOrReferral:c,useAffiliateCode:o,getArtistAnalysis:d,getAnalysisCount:l,addArtist:u,deleteArtist:p,...y.A,authorize:g,refreshTokenSpotify:f,authorizeDistribution:h,logout:w,sendVerificationEmail:v,verifyUserEmail:m,blockUser:I,checkIfArtistIsBlocked:P,checkIfUserIsBlocked:k,listBlockedUsers:b,unblockUser:E,getConsentDocuments:M,archiveChat:C,createChat:S,createToken:T,deleteChat:L,getChatNotificationCount:x,joinChat:U,listChats:q,syncChats:R,unarchiveChat:z,createCart:_,getCurator:D,getCuratorArtists:F,getCuratorCounters:K,getCuratorPlaylists:B,getCuratorsByType:N,getCuratorStats:Y,...H.Ay,canUseDiscount:V,getDiscountByCode:$,useDiscount:X,getDownload:Z,getDownloadFile:J,listDownloads:Q,devUpdatePlan:j,devRefreshUserCache:O,devRemoveArtist:W,devVerifyUser:G,listGenres:aa,getInvoice:at,...ar,addMagazineToQueue:ae,isMagazineInQueue:an,listMagazines:as,getMaintenance:ai,...ar,uploadMedia:ac,getPlaylistFakeScore:ao,getPlaylistGenres:al,getPlaylistGenresUpdatedAt:ad,requestPlaylistGenresUpdate:au,updatePlaylistGenres:ap,getNotificationDigest:ay,getNotificationsByStatus:aw,listNotifications:ag,markNotificationsAsRead:af,getBanner:ah,getFeaturedCurators:aA,getFeaturedPromos:aE,getPlans:am,getPopularSubmissions:aI,getProducts:av,getRandomCurators:ab,getStarCurators:ak,subscribeUser:aP,unsubscribeUser:a_,calculateVipPrice:aC,getAnalysisPrice:aS,getExportPlaylistPrice:aT,getProfileFeaturedPrice:aL,getPlaylistFeaturedPrice:ax,autoAcceptDisable:aq,autoAcceptEnable:aU,fetchPlaylists:aM,getPlaylist:aR,getPlaylistImage:az,getUserPlaylists:aD,togglePlaylistEnabled:aB,getWatchedPlaylist:aN,getWatchedPlaylistCharts:aF,listWatchedPlaylists:aK,unwatchPlaylist:aY,watchPlaylist:aH,acceptPush:aG,archivePush:aV,getPlaylistPushedIds:aO,listPushedByPlaylistId:aX,listPushedPlaylistsByTrackId:aW,listPushedTracks:aj,rejectPush:a$,undoPushAccept:aZ,exportRadio:a1,listRadios:a3,getRank:a2,createRequest:a5,hasRequest:a4,listRequests:a9,listRoles:a6,listSearchResults:a7,addTikTokToQueue:ta,listTikToks:tt,isTikTokUserInQueue:a8,getTokenByCode:te,listTracksPlay:tn,playTrack:ts,createCustomer:ti,createPaymentIntent:tr,createSubscription:tc,disableAutoRenewal:to,enableAutoRenewal:tl,getPaymentIntent:td,getSubscription:tu,listUserTransactions:tp,undoPendingTransaction:ty,updateSubscription:tw,completeProfile:tg,deleteUser:tf,exportUserData:th,getMe:tm,getUserProfile:tv,saveBillingInfo:tA,updateUserCertifications:tI,updateUserContacts:tb,updateUserSettings:tk,createVipCampaign:tE,deleteVipCampaign:tP,getVipCampaignById:t_,listVipCampaigns:tC,requestVipCampaign:tS,createWantedArtist:tT,getWantedCounters:tL,listWanted:tx};var tq=e(5059);e(99076),e(8213)},58591:(a,t,e)=>{e.d(t,{A:()=>i,S:()=>s});var n=e(6591);let s=async()=>(await n.A3.post("/audit-logs/time-online")).data,i={trackTimeOnline:s}},99795:(a,t,e)=>{e.d(t,{Ay:()=>i,FN:()=>s});var n=e(6591);let s=async()=>(await n.A3.post("/dashboard/analytics")).data,i={createAnalytics:s,createQueueAnalytics:async()=>(await n.A3.patch("/dashboard/analytics")).data,getArtistDashboard:async()=>(await n.A3.get("/dashboard/artist")).data,getCuratorDashboard:async()=>(await n.A3.get("/dashboard/curator")).data}},99076:(a,t,e)=>{e.d(t,{A:()=>i});var n=e(19544),s=e(75171);let i=(0,n.UU)({projectId:s.vO,dataset:"production",useCdn:!0,apiVersion:"2023-04-10"})},8213:(a,t,e)=>{e.d(t,{BR:()=>i,X8:()=>s,aC:()=>o,dJ:()=>c,el:()=>r});let n="\n  url,\n  metadata {\n    lqip,\n    dimensions {\n      aspectRatio,\n      height,\n      width\n    }\n  },\n",s='\n  *[_type == "mention" && show && (channel == \'matchfy\' || channel == "all")] | order(title asc) {\n    '.concat('\n  _id,\n  title,\n  "slug": slug.current,\n  "image": image.asset->{\n    '.concat(n,"\n  },\n  channel,\n  invertLogo,\n  url,\n"),"\n  }\n"),i='\n  *[_type == "partner"] | order(title asc) {\n    '.concat('\n  _id,\n  title,\n  "slug": slug.current,\n  "image": image.asset->{\n    '.concat(n,"\n  },\n  featured,\n  label,\n  url,\n"),"\n  }\n"),r='\n  *[_type == "release"] | order(title asc) {\n    '.concat('\n  _id,\n  title,\n  artist,\n  label,\n  content,\n  show,\n  url,\n  "coverImage": coverImage.asset->{\n    '.concat(n,'\n  },\n  "slug": slug.current,\n'),"\n  }\n"),c='\n  *[_type == "review" && enable] | order(date desc) {\n    '.concat("\n  _id,\n  title,\n  reviewer,\n  show,\n  url,\n  date,\n  text,\n  rating\n","\n  }\n"),o='\n  *[_type == "team" && show] | order(date desc) {\n    '.concat('\n  _id,\n  title,\n  role,\n  "image": image.asset->{\n    '.concat(n,"\n  },\n  show,\n"),"\n  }\n")},5059:(a,t,e)=>{e.d(t,{Ay:()=>v,Cs:()=>w,Es:()=>h,LR:()=>d,OL:()=>g,TT:()=>y,US:()=>o,iP:()=>p,tW:()=>f});var n=e(84075),s=e(18977),i=e(6591);let r=async function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=await i.ce.get(a,{params:{limit:t,offset:e}});if(!s.data)throw Error("Something went wrong, can`t get playlist`s tracks!");let c=s.data,o=[...n,...c.items];return c.next?r(a,t,e+t,o):(c.items=o,c)},c=async function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r("/playlists/".concat(a,"/tracks"),t,e)},o=async(a,t)=>(await i.ce.get("/search",{params:{q:a,type:t,limit:40}})).data,l=async a=>(await i.ce.get("playlists/".concat(a))).data,d=async a=>(await i.ce.get("playlists/".concat(a))).data,u=async a=>{let t=[];return t.push(c(a)),t.push(l(a)),from(Promise.all(t).then(a=>(a[1].tracks.items=a[0].items,a[1])).catch(async a=>{console.log(a)}))},p=async a=>(await i.ce.get("/albums/".concat(a))).data,y=async a=>(await i.ce.get("/artists",{params:{ids:a.join(",")}})).data,w=async a=>(await i.ce.get("/artists/".concat(a))).data,g=async a=>(await i.ce.get("/tracks/".concat(a))).data,f=async a=>(await i.ce.get("/audio-features/".concat(a))).data,h=async a=>(await i.ce.get("/shows/".concat(a))).data,m=async a=>{if(!Array.isArray(a)||!a)throw Error("Something went wrong, can`t get several artists!");return(await i.ce.get("/artists",{params:{ids:a.join(",")}})).data},v={addTracksToPlaylist:async(a,t)=>{let e=t.map(a=>"spotify:track:".concat(a));return(await i.ce.post("/playlists/".concat(a,"/tracks"),{uris:e})).data},followArtists:async a=>(await i.ce.put("/me/following",{ids:a},{params:{type:"artist"}})).data,followPlaylist:async a=>(await i.ce.put("playlists/".concat(a,"/followers"))).data,getAlbumById:p,getArtist:async a=>(await i.ce.get("/artists/".concat(a))).data,getArtists:y,getArtistsBulk:async function(a){if(!a||!Array.isArray(a))throw Error("Something went wrong, can`t get several artists!");if((0,n.A)(a))return{artists:[]};if(a.length<=50)return await m(a);let t=[];return(0,s.A)(a,50).forEach(a=>t.push(m(a))),(await Promise.all(t)).reduce((a,t)=>{let{artists:e}=t;return{artists:[...e,...a.artists]}})},getPlaybackState:async()=>(await i.ce.get("/me/player")).data,getPlaylist:l,getPlaylistById:d,getPlaylistTracks:c,getPlaylistTracksByPage:async function(a){var t;let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=await i.ce.get("/playlists/".concat(a,"/tracks"),{params:{limit:e,offset:n}});return null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.items},getPlaylistWithTracks:u,getTrack:async a=>(await i.ce.get("/tracks/".concat(a))).data,getTrackFeatures:f,getUserPlaylists:async a=>(await i.ce.get("/users/".concat(a,"/playlists"))).data,getUserProfile:async a=>(await i.ce.get("/users/".concat(a))).data,pauseTrack:async()=>(await i.ce.put("/me/player/pause")).data,removeTracksFromPlaylist:async(a,t)=>{let e=t.map(a=>({uri:"spotify:track:".concat(a)}));return(await i.ce.delete("/playlists/".concat(a,"/tracks"),{tracks:e})).data},reorderTracksInPlaylist:async function(a,t,e){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return(await i.ce.put("/playlists/".concat(a,"/tracks"),{insert_before:t,range_start:e,range_length:n})).data},searchItem:o,startTrack:async a=>(await i.ce.put("/me/player/play",{uris:["spotify:track:".concat(a)]})).data,unfollowArtists:async a=>(await i.ce.delete("/me/following",{ids:a},{params:{type:"artist"}})).data,updatePlaylistDetails:async(a,t)=>(await i.ce.put("/playlists/".concat(a),{playlistData:t})).data}},54190:(a,t,e)=>{e.r(t),e.d(t,{default:()=>i,useActiveRoute:()=>s});var n=e(6129);function s(){let{exact:a=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.usePathname)(),e=()=>t.replace(/^\/[a-z]{2}(?=\/|$)/,"");return{isActive:t=>{let n=e();return a?n===t:n===t||n.startsWith(t+"/")},getCurrentPath:e,getRoutePath:a=>a.replace(/^\/[a-z]{2}(?=\/|$)/,"")}}let i=s},7941:(a,t,e)=>{e.r(t),e.d(t,{default:()=>c,useAnalytics:()=>r});var n=e(27343),s=e(81871);let i={gtag:null,gtagEvent:()=>{},gtagPageView:()=>{}},r=()=>n.S$||!window.gtag?i:{gtag:window.gtag,gtagEvent:function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.gtag&&window.gtag("event",a,t)},gtagPageView:a=>{window.gtag&&window.gtag("config",s.env.NEXT_PUBLIC_GA_ID,{page_path:a})}},c=r},2674:(a,t,e)=>{e.r(t),e.d(t,{default:()=>r,useDimensions:()=>i});var n=e(12115);let s=a=>{let t=a.getBoundingClientRect();return{width:t.width,height:t.height,top:"x"in t?t.x:t.top,left:"y"in t?t.y:t.left,x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top,right:t.right,bottom:t.bottom}},i=a=>{let{liveMeasure:t=!0}=a,[e,i]=(0,n.useState)({}),[r,c]=(0,n.useState)(null),o=(0,n.useCallback)(a=>{c(a)},[]);return(0,n.useLayoutEffect)(()=>{if(r){let a=()=>window.requestAnimationFrame(()=>i(s(r)));if(a(),t)return window.addEventListener("resize",a),window.addEventListener("scroll",a),()=>{window.removeEventListener("resize",a),window.removeEventListener("scroll",a)}}},[r]),[o,e,r]},r=i},7237:(a,t,e)=>{e.r(t),e.d(t,{default:()=>r,useIncrementalDisplay:()=>i});var n=e(12115);let s=(a,t)=>Math.floor(Math.random()*(t-a+1))+a,i=function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[5,15],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[500,1500],[i,r]=(0,n.useState)([]),[c,o]=(0,n.useState)(1),[l,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(a&&a.length>0&&i<a){d(!0);let n=0===i.length?0:s(e[0],e[1]),c=s(t[0],t[1]),l=setTimeout(()=>{let t=a.slice(i.length,i.length+c);r(a=>[...a,...t]),o(a=>a+1),d(i.length+t.length<a.length)},n);return()=>clearTimeout(l)}},[a,i,t,e,c]),{displayedItems:i,resetDisplayedItems:(0,n.useCallback)(()=>{r([]),o(1),d(!1)},[]),hasMore:l}},r=i},34970:(a,t,e)=>{e.r(t),e.d(t,{default:()=>i,usePrevious:()=>s});var n=e(12115);let s=a=>{let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=a},[a]),t.current},i=s},7691:(a,t,e)=>{e.r(t),e.d(t,{useScrollDirection:()=>s});var n=e(12115);let s=function(a){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,[e,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let n=a.current;if(!n)return;let i=n.scrollTop,r=()=>{let a=n.scrollTop,r=a>i?"down":"up";r!==e&&(a-i>t||a-i<-t)&&s(r),i=a>0?a:0};return n.addEventListener("scroll",r),()=>{n.removeEventListener("scroll",r)}},[a,e]),{scrollDirection:e,setScrollDirection:s}}},65980:(a,t,e)=>{e.r(t),e.d(t,{useStepper:()=>i});var n=e(12115);let s=(a,t)=>a.key===t,i=(a,t,e)=>{let[i,r]=(0,n.useState)(a);return[(0,n.useMemo)(()=>{let a=t.find(a=>a.key===i),e=t.findIndex(a=>a.key===i);if(!a)throw Error("Cannot find step");return{...a,index:e}},[i,t]),{is:s,set:a=>{e&&e(),r(a)},previous:()=>{let a=t.findIndex(a=>a.key===i)-1,n=a<0?t.length-1:a;e&&e(),r(t[n].key)},next:()=>{let a=t.findIndex(a=>a.key===i)+1,n=a>=t.length?0:a;e&&e(),r(t[n].key)},first:()=>{e&&e(),r(t[0].key)},last:()=>{e&&e(),r(t[t.length-1].key)}}]}},20952:(a,t,e)=>{e.r(t),e.d(t,{useSticky:()=>i});var n=e(12115);let s=a=>{let t=window.getComputedStyle(a),e=parseFloat(t.paddingLeft),n=parseFloat(t.paddingRight);return a.offsetWidth-e-n},i=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{offset:t=0,styles:e={position:"fixed",top:"var(--sticky-top, 0px)",zIndex:20},stickyClassName:i="is-sticky"}=a,[r,c]=(0,n.useState)(!1),[o,l]=(0,n.useState)(null),d=(0,n.useRef)(null),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let a=d.current;if(!a)return;u.current=a.getBoundingClientRect().top+window.scrollY;let e=()=>{var t;(null===(t=a.parentElement)||void 0===t?void 0:t.getBoundingClientRect())&&l(s(a.parentElement))},n=()=>{if(!u.current)return;let a=window.scrollY>u.current+t;c(a),a&&e()};return window.addEventListener("scroll",n),window.addEventListener("resize",e),n(),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",e)}},[t]),{elementRef:d,isSticky:r,style:r?{...e,width:o?"".concat(o,"px"):"100%"}:{},className:r?i:""}}},56172:(a,t,e)=>{e.d(t,{N_:()=>i,a8:()=>c,rd:()=>o});var n=e(69139);let s=(0,e(44344).o)({locales:["en","es","fr","it"],defaultLocale:"en"}),{Link:i,redirect:r,usePathname:c,useRouter:o}=(0,n.xp)(s)},6591:(a,t,e)=>{e.d(t,{qY:()=>P,A3:()=>m,ds:()=>z,ce:()=>I,Zj:()=>q,oR:()=>D,sx:()=>x});var n=e(95469),s=e(18226),i=e(50056),r=e(39362),c=e(58591),o=e(99795),l=e(35276),d=e(22626),u=e.n(d),p=e(73366),y=e(75171),w=e(81871);let g={providers:[{id:"matchfy",name:"Matchfy",type:"oauth",authorization:"https://accounts.spotify.com/authorize?scope=user-read-email",token:"https://accounts.spotify.com/api/token",userinfo:"https://api.spotify.com/v1/me",options:{authorization:"https://accounts.spotify.com/authorize?scope=".concat(y.HG.join(" ")),token:"https://accounts.spotify.com/api/token",userinfo:"https://api.spotify.com/v1/me",clientId:w.env.SPOTIFY_CLIENT_ID,clientSecret:w.env.SPOTIFY_CLIENT_SECRET,profile:a=>a}}],callbacks:{async jwt(a){let{token:t,account:e,profile:n}=a;if(e&&n)return{...await p.fz.authorize({accessToken:e.access_token,refreshToken:e.refresh_token,expiresAt:e.expires_at,preferredLanguage:"en",type:"web"}),spotify:{id:e.providerAccountId,token:e.access_token,refreshToken:e.refresh_token,expiresAt:e.expires_at}};if(u().unix(t.spotify.expiresAt).isBefore(u()()))try{let a=await p.fz.refreshTokenSpotify(t.userToken);return{...t,spotify:{...t.spotify,token:a.token,expiresAt:a.expiresAt}}}catch(a){return console.error("Error refreshing token",a),null}return t},async session(a){let{token:t}=a;if(!t)throw Error("Invalid token");let{userToken:e,expiresAt:n,newUser:s}=t;if(!e||!n||u()(n).isBefore(u()()))throw Error("Invalid token");try{return{...await p.fz.getMe(e),newUser:s,token:{userToken:e,spotifyToken:t.spotify.token}}}catch(a){throw console.error("Error fetching user",a),Error("Error fetching user")}}},pages:{signIn:y.bw.LOGIN}};var f=e(27343);let h=["api/auth","audit-logs/time-online","chat/count","dashboard/analytics","open","notifications/digest","users/me"],m=n.A.create({baseURL:"https://api.matchfy.io",headers:{"Content-Type":"application/json","X-Type":"web"}}),v=null,A=async()=>(v||(v=f.S$?(0,i.Mt)(g):(0,r.getSession)()),v),b=(0,s.A)(c.S,l.h5),k=(0,s.A)(o.FN,l.tH);m.interceptors.request.use(async a=>{var t;if(a.headers.Authorization)return a;let e=await A();(null==e?void 0:null===(t=e.token)||void 0===t?void 0:t.userToken)&&(a.headers.Authorization="Bearer ".concat(e.token.userToken));let n=!h.some(t=>{var e;let n=(null===(e=a.url)||void 0===e?void 0:e.toLowerCase())||"",s=t.toLowerCase();return n===s||n.startsWith(s+"/")});return e&&n&&!f.S$&&(b(),k()),a});let I=n.A.create({baseURL:"https://api.spotify.com/v1",headers:{"Content-Type":"application/json"}});I.interceptors.request.use(async a=>{var t;let e=await A();return(null==e?void 0:null===(t=e.token)||void 0===t?void 0:t.spotifyToken)&&(a.headers.Authorization="Bearer ".concat(e.token.spotifyToken)),a}),new(e(68110)).A;var E=e(70984);let P={INITIATE_CHECKOUT:"InitiateCheckout",NEW_USER:"NewUser",PURCHASE:"Purchase",PURCHASE_ARTIST:"PurchaseArtist",PURCHASE_AGENCY:"PurchaseAgency",PURCHASE_VIP:"PurchaseVIP"},_={PURCHASE:"AW-753455424/_ohtCKz2npcYEMCio-cC",SIGN_UP:"AW-753455424/nf4eCOrAn5cYEMCio-cC"},C=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return new Promise((e,n)=>{let s=0,i=()=>{"function"==typeof window.fbq?e():s>=t?n(Error("fbq not loaded after ".concat(t," attempts"))):(s++,setTimeout(i,a))};i()})},S=async(a,t)=>{var e,n,s;let{user:i}=t;window.fbq&&window.fbq("track","CompleteRegistration",{eventID:a}),window.gtag&&(window.gtag("event","sign_up"),window.gtag("set","user_data",{userId:null==i?void 0:i.spotifyId,email:null==i?void 0:null===(e=i.contacts)||void 0===e?void 0:e.email,phone_number:null==i?void 0:null===(n=i.contacts)||void 0===n?void 0:n.phone}),window.gtag("event","sign_up",{send_to:_.SIGN_UP})),window.ttq&&window.ttq.track("CompleteRegistration",{contents:[{content_name:null==i?void 0:null===(s=i.contacts)||void 0===s?void 0:s.email}]})},T=async(a,t)=>{let{status:e,price:n,plan:s,user:i}=t;if(window.dataLayer&&i){var r,c;window.dataLayer.push({userId:null==i?void 0:i.spotifyId,email:null==i?void 0:null===(r=i.contacts)||void 0===r?void 0:r.email,phone_number:null==i?void 0:null===(c=i.contacts)||void 0===c?void 0:c.phone})}window.dataLayer&&window.dataLayer.push({conversionValue:parseFloat(n),value:parseFloat(n)}),window.gtag&&(window.gtag("event","purchase",{value:n,currency:y.UM}),window.gtag("event","purchase",{value:parseFloat(n),currency:y.UM,items:[{plan:s,name:s,price:n}]}),window.gtag("event","conversion",{send_to:_.PURCHASE,value:parseFloat(n),currency:y.UM})),window.fbq&&window.fbq("track",P.PURCHASE,{value:n,currency:y.UM},{eventID:a}),window.fbq&&s===y.NB.ARTIST&&window.fbq("track",P.PURCHASE_ARTIST,{value:n,currency:y.UM},{eventID:a}),window.fbq&&s===y.NB.AGENCY&&window.fbq("track",P.PURCHASE_AGENCY,{value:n,currency:y.UM},{eventID:a}),window.fbq&&s===y.NB.VIP&&window.fbq("track",P.PURCHASE_VIP,{value:n,currency:y.UM},{eventID:a}),window.ttq&&window.ttq.track("CompletePayment",{value:n,currency:y.UM,status:e,plan:s,content_id:a,event_id:a})},L=async(a,t)=>{let{slug:e,title:n,price:s}=t;window.fbq&&window.fbq("track","InitiateCheckout",{value:s,currency:y.UM,content_name:n},{eventID:a}),window.gtag&&window.gtag("event","begin_checkout",{value:s,currency:y.UM,items:[{planSlug:e,name:n,price:s}]}),window.ttq&&window.ttq.track("InitiateCheckout",{value:s,currency:y.UM,contents:[{content_name:n,content_id:e,price:s}]})},x=async(a,t,e)=>{if(y.e3){await C();try{switch(a){case P.INITIATE_CHECKOUT:await L(e,t);break;case P.NEW_USER:await S(e,t);break;case P.PURCHASE:await T(e,t);break;default:return}}catch(a){if(!(0,E.F0)(a))throw a}}},U={navbar:{height:"4rem",heightMobile:"64px"},radius:{xs:"0.25rem",sm:"0.5rem",base:"0.8rem",lg:"1.2rem",full:"9999px"},gutter:{xs:"0.25rem",sm:"0.5rem",base:"1rem",md:"1.5rem",lg:"2rem",xl:"3rem"},input:{height:"46px"},fontFamily:{default:'"Inter", system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Helvetica Neue, sans-serif',heading:'"Basier Circle", system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Helvetica Neue, sans-serif',mono:'"Inconsolata", monospace'},curve:{fast:"cubic-bezier(0.694, 0.048, 0.335, 1)",out:"cubic-bezier(0.165, 0.84, 0.44, 1)",slow:"cubic-bezier(0.07, 0.51, 0.12, 1)"},time:{faster:".15s",fast:"0.25s",base:"0.35s",slow:"0.5s"}},q=[{id:"dark",name:"Dark",enable:!0,palette:{primary:"#7866ff",themePrimary:"#7866ff",primaryLight:"#26223f",secondary:"#225CF4",themeSecondary:"#225CF4",secondaryLight:"#1d233d",tertiary:"#2196f3",tertiaryLight:"#1d233d",primaryBg:"#18191c",secondaryBg:"#1f2023",primaryText:"#fafafa",secondaryText:"#ededed",blue:"#2196f3",gold:"#cfae54",silver:"#8f8f8f",bronze:"#cd7f32",green:"#1DB854",darkGreen:"#127636",greenLight:"#17231e",red:"#f44336",redLight:"#2b191c",orange:"#fb923c",yellow:"#eab308",accent:"#a094fb",border:"#2d2d2d",input:"#25272b",neutral:"#505050",overlay:"#131317",invert:"#ffffff",invertLight:"#1f1f23",dark:"#131317",black:"#000000",white:"#ffffff",spotifyPrimary:"#1db954",tiktokPrimary:"#ff0050",tiktokSecondary:"#00f2ea",youtubePrimary:"#ff0000",wantedPrimary:"#d35009"},shadow:{color:"#000000",opacity:.5}},{id:"light",name:"Light",enable:!0,palette:{primary:"#5e4af9",themePrimary:"#5e4af9",primaryLight:"#efedfe",secondary:"#225CF4",themeSecondary:"#225CF4",secondaryLight:"#ebf0fe",tertiary:"#2196f3",tertiaryLight:"#ebf0fe",primaryBg:"#ffffff",secondaryBg:"#fafafa",primaryText:"#232323",secondaryText:"#383A3C",blue:"#2196f3",gold:"#cfae54",silver:"#8f8f8f",bronze:"#cd7f32",green:"#1DB854",darkGreen:"#127636",greenLight:"#ecf7ed",red:"#f44336",redLight:"#ffedec",orange:"#fb923c",yellow:"#fbc81b",accent:"#a094fb",border:"#d8dee5",input:"#f7f8fa",neutral:"#d4d4d4",overlay:"#131317",invert:"#131317",invertLight:"#f4f4f4",dark:"#131317",black:"#000000",white:"#ffffff",spotifyPrimary:"#1db954",tiktokPrimary:"#ff0050",tiktokSecondary:"#00f2ea",youtubePrimary:"#ff0000",wantedPrimary:"#d35009"},shadow:{color:"#000000",opacity:.1}}],R=a=>a.replace(/[A-Z]/g,a=>"-".concat(a.toLowerCase())),z=a=>{let t=q.map(a=>a.id);document.body.classList.remove(...t),document.body.classList.add(a.id);let e=document.querySelector(":root");Object.keys(a.palette).forEach(t=>{e.style.setProperty("--".concat(R(t),"-color"),a.palette[t]),e.style.setProperty("--".concat(R(t),"-color-rgb"),(0,f.iN)(a.palette[t]))}),e.style.setProperty("--shadow-color","hsl(".concat((0,f.oW)(a.shadow.color),", ").concat(a.shadow.opacity,")")),e.style.setProperty("--shadow-color-rgb","".concat((0,f.iN)(a.shadow.color))),Object.entries(U).forEach(a=>{let[t,n]=a;"object"==typeof n&&Object.entries(n).forEach(a=>{let[n,s]=a,i="--".concat(R(t)).concat("base"===n?"":"-".concat(R(n)));e.style.setProperty(i,s)})})};var M=e(89606);let D=(a,t,e)=>{switch(a){case"success":M.default.success(t);break;case"error":M.default.error(t);break;case"icon":(0,M.default)(t,{icon:e});break;default:throw Error("Invalid toast type")}}}}]);
//# sourceMappingURL=6439-00a630cd0010822b.js.map