PageSourceSearch

https://www.collabhouse.com/ui-assets/component---src-templates-my-collabs-routes-my-collabs-routes-tsx.js

js collabhouse.com collected 2026-09-24 11:33:32 UTC 23,027 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkledo_ui=self.webpackChunkledo_ui||[]).push([[2627],{66068:function(e,t,n){n.d(t,{Cg:function(){return l},_m:function(){return r},s0:function(){return a}});Math.pow(10,8);var l=6e4,a=36e5,r=1e3},43915:function(e,t,n){n.d(t,{A:function(){return o}});var l=n(66068),a=n(81092),r=n(63733);function o(e,t){var n;(0,a.A)(1,arguments);var o=(0,r.A)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==o&&1!==o&&0!==o)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var v,E=function(e){var t,n={},l=e.split(i.dateTimeDelimiter);if(l.length>2)return n;/:/.test(l[0])?t=l[0]:(n.date=l[0],t=l[1],i.timeZoneDelimiter.test(n.date)&&(n.date=e.split(i.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var a=i.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(E.date){var g=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),l=e.match(n);if(!l)return{year:NaN,restDateString:""};var a=l[1]?parseInt(l[1]):null,r=l[2]?parseInt(l[2]):null;return{year:null===r?a:100*r,restDateString:e.slice((l[1]||l[2]).length)}}(E.date,o);v=function(e,t){if(null===t)return new Date(NaN);var n=e.match(c);if(!n)return new Date(NaN);var l=!!n[4],a=u(n[1]),r=u(n[2])-1,o=u(n[3]),i=u(n[4]),s=u(n[5])-1;if(l)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,i,s)?function(e,t,n){var l=new Date(0);l.setUTCFullYear(e,0,4);var a=l.getUTCDay()||7,r=7*(t-1)+n+1-a;return l.setUTCDate(l.getUTCDate()+r),l}(t,i,s):new Date(NaN);var d=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(p[t]||(f(e)?29:28))}(t,r,o)&&function(e,t){return t>=1&&t<=(f(e)?366:365)}(t,a)?(d.setUTCFullYear(t,r,Math.max(a,o)),d):new Date(NaN)}(g.restDateString,g.year)}if(!v||isNaN(v.getTime()))return new Date(NaN);var h,y=v.getTime(),b=0;if(E.time&&(b=function(e){var t=e.match(s);if(!t)return NaN;var n=m(t[1]),a=m(t[2]),r=m(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,a,r))return NaN;return n*l.s0+a*l.Cg+1e3*r}(E.time),isNaN(b)))return new Date(NaN);if(!E.timezone){var w=new Date(y+b),N=new Date(0);return N.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),N.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),N}return h=function(e){if("Z"===e)return 0;var t=e.match(d);if(!t)return 0;var n="+"===t[1]?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,r))return NaN;return n*(a*l.s0+r*l.Cg)}(E.timezone),isNaN(h)?new Date(NaN):new Date(y+b+h)}var i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function m(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400==0||e%4==0&&e%100!=0}},372:function(e,t,n){n.d(t,{A:function(){return D}});var l=n(16902),a=n(43915),r=n(84456),o=n(15823),i=n(14041),c=n(76990),s=n(31486),d=n(9375),u=n(74100),m=n(59037),p=n(94728),f=n(28277),v=n(63448),E=n(5891),g=n(18039);var h=e=>{let{collaborationTerms:t,collaborationPosts:n,small:r}=e;const{0:c,1:s}=(0,i.useState)(null);var d,u,m;return(0,i.useEffect)((()=>{var e,t;const l=(null===(e=n[0])||void 0===e||null===(t=e.platform)||void 0===t?void 0:t.name)||null;if(l)if("SoundCloud"===l)s(o.FI1.soundcloud);else{var a;const e=(0,g.P)(l);s(null!==(a=o.FI1[e])&&void 0!==a?a:void 0)}}),[t]),"fixedFee"===t.type?i.createElement(o.fI1,{crossAxisAlignment:"center"},!r&&i.createElement(o.fI1,null,i.createElement(o.ABt,{icon:null!=c?c:o.FI1.info,iconSize:"24px"}),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}})),i.createElement(o.VPZ,null,i.createElement(o.JU7,{size:"small"},r&&i.createElement(o.Int,{icon:null!=c?c:o.FI1.info,size:"14px"}),null===(d=n[0])||void 0===d||null===(u=d.platform)||void 0===u?void 0:u.name),t.collaborationStartDate&&i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},null!==(m=(0,l.A)((0,a.A)(t.collaborationStartDate),"dd-MM-yyyy"))&&void 0!==m?m:"")))):i.createElement(o.fI1,{crossAxisAlignment:"center"},!r&&i.createElement(o.VPZ,null,n.length>1?i.createElement(o.ABt,{icon:o.FI1.hashtag,iconSize:"24px"}):i.createElement(o.ABt,{icon:null!=c?c:o.FI1.info,iconSize:"24px"})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}}),i.createElement(o.VPZ,null,i.createElement(o.JU7,{size:"small"},r&&i.createElement(i.Fragment,null,n.length>1?i.createElement(o.Int,{icon:o.FI1.hashtag,size:"14px"}):i.createElement(o.Int,{icon:null!=c?c:o.FI1.info,size:"14px"})),n.map((e=>{var t;return null===(t=e.platform)||void 0===t?void 0:t.name})).slice(0,2).join(", "),n.length>2&&` + ${(n.length-2).toString()}`),i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},(0,l.A)((0,a.A)(t.collaborationStartDate),"dd-MM-yyyy"))),i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},(0,l.A)((0,a.A)(t.collaborationEndDate),"dd-MM-yyyy")))))},y=n(66857),b=n(78277);var w=e=>{let{collaborationTerms:t,noIcon:n}=e;return"fixedFee"===t.type?i.createElement(o.fI1,{crossAxisAlignment:"center"},!n&&i.createElement(i.Fragment,null,i.createElement(o.VPZ,null,i.createElement(o.ABt,{icon:o.FI1.dollar,iconSize:"24px"})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}})),i.createElement(o.VPZ,null,i.createElement(o.JU7,{size:"small"},"Fixed fee"),i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},`€ ${new y.A(Number(t.fixedFee)).toString()}`)))):i.createElement(o.fI1,{crossAxisAlignment:"center"},!n&&i.createElement(i.Fragment,null,i.createElement(o.VPZ,null,i.createElement(o.ABt,{icon:o.FI1.percent,iconSize:"24px"})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}})),i.createElement(o.VPZ,null,i.createElement(o.JU7,{size:"small"},"Royalty split"),i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},(0,b.A)(t.royaltySharePercentage)))))},N=n(55937);const C=e=>{(0,r.navigate)((0,v.Qq)(v.JZ.collaboration.publicGroup.url,{groupId:e}))};var D=e=>{var t,n,c,v,g,y,b,D,Z;let{collaboration:F,onClick:L,small:q=!1,detailsButtonLabel:_="View details"}=e;const{group:T}=(0,d.d)(),{0:H,1:M}=(0,i.useState)(null),{0:Y,1:$}=(0,i.useState)(null),U=F.from.id===T.id,J=(0,i.useMemo)((()=>F&&T&&(0,m.$Q)(F,null==T?void 0:T.id)||u.Pl.none),[F,T]);(0,i.useEffect)((()=>{var e;const t=null==F||null===(e=F.terms)||void 0===e?void 0:e.sort(((e,t)=>t.version-e.version))[0];$(t)}),[F]),(0,i.useEffect)((()=>{var e,t,n;M((0,f.UZ)(null==F||null===(e=F.from)||void 0===e?void 0:e.id,null==F||null===(t=F.to)||void 0===t?void 0:t.id,null==Y||null===(n=Y.createdByGroup)||void 0===n?void 0:n.id))}),[F,Y,T]);const B=J===u.Pl.reviewCollab,V=(0,m.rc)(J,F.id,J===u.Pl.provideFeedback?null==Y?void 0:Y.posts[0].proofOfDeliveries[0].id:null==Y?void 0:Y.posts[0].id);return i.createElement(k,{approvalState:B}
1,i.createElement(o.Yqy,{vertical:{desktop:q?(0,o.D0d)(16):(0,o.D0d)(32),mobile:q?(0,o.D0d)(16):(0,o.D0d)(24)},horizontal:{desktop:q?(0,o.D0d)(16):(0,o.D0d)(32),mobile:(0,o.D0d)(16)}},i.createElement(o.fI1,null,Y&&i.createElement(I,null,H&&U&&U?i.createElement(A,{desktop:q?6:3,mobile:12},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,i.createElement(o.euF,{size:{desktop:(0,o.D0d)(48),mobile:(0,o.D0d)(40)},src:null===(t=(0,p.p)(null==F||null===(n=F.to)||void 0===n?void 0:n.avatar,p.h.small))||void 0===t?void 0:t.url})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}}),i.createElement(o.VPZ,{style:{maxWidth:"100%",overflow:"hidden"}},i.createElement(i.Fragment,null,i.createElement(o.fI1,null,i.createElement(S,{size:"small",variant:"secondary",alignment:"left",onClick:()=>{C(F.to.id)}},null===(c=F.to)||void 0===c?void 0:c.name)),!q&&i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},"Content Creator")))))):i.createElement(A,{desktop:q?6:3,mobile:12},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,i.createElement(o.euF,{size:{desktop:(0,o.D0d)(48),mobile:(0,o.D0d)(40)},src:null===(v=(0,p.p)(null==F||null===(g=F.from)||void 0===g?void 0:g.avatar,p.h.small))||void 0===v?void 0:v.url})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}}),i.createElement(o.VPZ,{style:{minWidth:0}},i.createElement(i.Fragment,null,i.createElement(o.fI1,null,i.createElement(S,{size:"small",variant:"secondary",alignment:"left",onClick:()=>{C(F.from.id)}},null===(y=F.from)||void 0===y?void 0:y.name)),!q&&i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},"Music Maker")))))),!q&&i.createElement(A,{desktop:3,mobile:12},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,Y.track&&i.createElement(o.euF,{shape:"square",size:{desktop:(0,o.D0d)(48),mobile:(0,o.D0d)(40)},src:null===(b=(0,p.p)(null===(D=Y.track)||void 0===D||null===(Z=D.product)||void 0===Z?void 0:Z.artwork,p.h.small))||void 0===b?void 0:b.url})),i.createElement(o.P3w,{width:{desktop:(0,o.D0d)(16),mobile:(0,o.D0d)(8)}}),i.createElement(z,null,Y.track&&i.createElement(P,{size:"small",noWrap:!0},Y.track.name),i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small",noWrap:!0},(0,E.ll)(Y.track.trackArtists))))),i.createElement(N.A,null,i.createElement(o.Y4E,{opacity:o.qpS.twenty},i.createElement(o.Yqy,{top:(0,o.D0d)(16)},i.createElement(o.cGx,null))))),i.createElement(A,{desktop:3,mobile:6},i.createElement(w,{collaborationTerms:Y,noIcon:q})),Y.posts&&i.createElement(s.E,{desktop:3,mobile:6},i.createElement(h,{collaborationTerms:Y,collaborationPosts:Y.posts,small:q})))),i.createElement(o.P3w,{height:{desktop:(0,o.D0d)(20),mobile:(0,o.D0d)(16)}}),i.createElement(o.Y4E,{opacity:o.qpS.twenty},i.createElement(o.cGx,null)),i.createElement(o.P3w,{height:{desktop:(0,o.D0d)(20),mobile:(0,o.D0d)(16)}}),i.createElement(o.fI1,null,i.createElement(I,null,i.createElement(s.E,{desktop:3,mobile:6},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},"Status:")),i.createElement(o.HLL,{size:"small"},(0,m.uY)(F.state))))),i.createElement(s.E,{desktop:3,mobile:6},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},"Action required:")),J&&i.createElement(o.Y4E,{opacity:(0,m.$Z)(J).opacity},i.createElement(x,{color:(0,m.$Z)(J).color,size:"small"},V.link?i.createElement(o.QWc,{size:"small",variant:"secondary",onClick:e=>{e.preventDefault(),(0,r.navigate)(V.link)}},V.status):V.status))))),i.createElement(s.E,{desktop:3,mobile:6},i.createElement(o.fI1,{crossAxisAlignment:"center"},i.createElement(o.VPZ,null,i.createElement(o.Y4E,{opacity:o.qpS.fiftyfive},i.createElement(o.HLL,{size:"small"},"Last updated:")),i.createElement(o.HLL,{size:"small"},F.createdAt&&(0,l.A)((0,a.A)(F.createdAt),"dd-MM-yyyy"))))),i.createElement(s.E,{desktop:3,mobile:6},i.createElement(o.fI1,{mainAxisAlignment:"flex-start",crossAxisAlignment:"flex-end"},i.createElement(i.Fragment,null,i.createElement(o.QWc,{size:"small",onClick:e=>{e.preventDefault(),L()}},_),i.createElement(o.P3w,{height:(0,o.D0d)(40)}))))))))};const k=(0,c.default)(o.VPZ).withConfig({displayName:"CollaborationCard__StyledCollaborationCard",componentId:"sc-13z6v4s-0"})(["background:",";",""],o.K5q.haiti.toString(),(e=>{let{approvalState:t}=e;return t&&`border-left: ${(0,o.D0d)(4)} solid ${o.APQ.info.toString()}`})),A=(0,c.default)(s.E).withConfig({displayName:"CollaborationCard__SelfAlignedGridItem",componentId:"sc-13z6v4s-1"})(["align-self:center;"]),I=(0,c.default)(s.A).withConfig({displayName:"CollaborationCard__CardGrid",componentId:"sc-13z6v4s-2"})(["column-gap:",";row-gap:",";","{column-gap:",";row-gap:",";}"],(0,o.D0d)(16),(0,o.D0d)(16),o.H5I.desktop,(0,o.D0d)(32),(0,o.D0d)(20)),S=(0,c.default)(o.QWc).withConfig({displayName:"CollaborationCard__WrappedTextButton",componentId:"sc-13z6v4s-3"})(["display:inline-block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),P=(0,c.default)(o.JU7).withConfig({displayName:"CollaborationCard__TextOverflowEllipsis",componentId:"sc-13z6v4s-4"})(["width:",";display:inline-block;","{width:",";}"],(0,o.D0d)(240),o.H5I.desktop,(0,o.D0d)(200)),z=(0,c.default)(o.VPZ).withConfig({displayName:"CollaborationCard__TrackColumn",componentId:"sc-13z6v4s-5"})(["min-width:0;"]),x=(0,c.default)(o.HLL).withConfig({displayName:"CollaborationCard__NextActionCaption",componentId:"sc-13z6v4s-6"})(["color:",";"],(e=>{let{color:t}=e;return t}))},15258:function(e,t,n){var l=n(15823),a=n(14041),r=n(76990),o=n(81786),i=n(4488),c=n(31486
1),s=n(45759);t.A=e=>{let{title:t,body:n,children:r}=e;const{breadcrumbs:u}=(0,o.i)();return a.createElement(s.A,null,a.createElement(c.A,null,a.createElement(c.E,{mobile:12},a.createElement(d,null,a.createElement(i.A,{breadcrumbs:u})),t&&a.createElement(l.jbR,{size:"xSmall"},t),t&&n&&a.createElement(l.P3w,{height:(0,l.D0d)(24)}),n&&a.createElement(c.A,null,a.createElement(c.E,{desktop:6,mobile:12},a.createElement(l.nBu,{size:"large"},n))),r)))};const d=r.default.header.withConfig({displayName:"OverviewPageTemplate__Header",componentId:"sc-1ndmp4t-0"})(["min-height:",";","{min-height:",";}"],(0,l.D0d)(40),l.H5I.desktop,(0,l.D0d)(68))},77538:function(e,t,n){n.r(t),n.d(t,{default:function(){return P}});var l=n(20289),a=n(14041),r=n(4445),o=n(73939),i=n(948),c=n(63448),s=n(15823),d=n(93285),u=n(15258),m=n(49871),p=n(84456),f=n(76990),v=n(372),E=n(31486),g=n(34217),h=n(74313),y=n(46367);var b=n(9375),w=n(59037);var N=e=>{var t,n;let{location:r}=e;const{activeFilters:o,loading:d,error:u,collaborations:m,collaborationStates:f,setActiveFilters:g}=(0,a.useContext)(i.O),{group:N,redirectIfNoGroup:C}=(0,b.d)(),{pathname:S}=(0,l.useLocation)(),{0:P,1:z}=(0,a.useState)((null==r||null===(t=r.state)||void 0===t?void 0:t.paymentSuccess)||!1),x=(0,a.useMemo)((()=>{var e;const t=null!==(e=f.map((e=>(e=>{switch(e){case y.NN.Accepted:case y.NN.Ongoing:case y.NN.DraftDelivered:return{label:w.z0[y.NN.Accepted],path:c.JZ.myCollabs.overview.running.url,value:[y.NN.Accepted,y.NN.Ongoing,y.NN.DraftDelivered]};case y.NN.UpcomingPayment:case y.NN.PaymentRequired:return{label:w.z0[y.NN.UpcomingPayment],path:c.JZ.myCollabs.overview.upcomingPayment.url,value:y.NN.UpcomingPayment};case y.NN.OngoingPayment:return{label:w.z0[y.NN.OngoingPayment],path:c.JZ.myCollabs.overview.ongoingPayment.url,value:y.NN.OngoingPayment};case y.NN.Canceled:return{label:w.z0[y.NN.Canceled],path:c.JZ.myCollabs.overview.cancelled.url,value:y.NN.Canceled};case y.NN.Closed:case y.NN.Paid:case y.NN.DraftAccepted:return{label:w.z0[y.NN.Closed],path:c.JZ.myCollabs.overview.done.url,value:[y.NN.Closed,y.NN.Paid,y.NN.DraftAccepted]};case y.NN.Declined:return{label:w.z0[y.NN.Declined],path:c.JZ.myCollabs.overview.declined.url,value:y.NN.Declined};case y.NN.Proposed:return{label:w.z0[y.NN.Proposed],path:c.JZ.myCollabs.overview.proposal.url,value:y.NN.Proposed};default:return null}})(e))).filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.label)===(null==e?void 0:e.label)&&(null==t?void 0:t.path)===(null==e?void 0:e.path))))).filter(Boolean))&&void 0!==e?e:[];return t.unshift({label:"All",path:c.JZ.myCollabs.overview.url,value:null}),t}),[f]);(0,a.useEffect)((()=>{var e,t;const n=null!==(e=null===(t=x.find((e=>e.path===S)))||void 0===t?void 0:t.value)&&void 0!==e?e:"";n!==o.status&&g({nextAction:"",status:n})}),[g,o,S,x]);const Z=(0,a.useCallback)((e=>{const t=e.from.id===(null==N?void 0:N.id);e.state===y.NN.PaymentRequired&&t?(0,p.navigate)((0,c.Qq)(c.JZ.collaboration.details.payment.url,{collaborationId:e.id})):(0,p.navigate)((0,c.Qq)(c.JZ.collaboration.details.url,{collaborationId:e.id}))}),[]);return C()?null:a.createElement(a.Fragment,null,a.createElement(E.A,null,a.createElement(E.E,{desktop:12,mobile:12},null!=N&&N.id?a.createElement(a.Fragment,null,d&&a.createElement(h.A,{variant:"loading",title:"One moment please, we're loading your collabs."}),!d&&!u&&a.createElement(a.Fragment,null,a.createElement(I,null,a.createElement(A,null,a.createElement(a.Fragment,null,null==x?void 0:x.map(((e,t)=>e&&a.createElement(k,{key:t,variant:"secondary",size:"medium",onClick:()=>{(0,p.navigate)(e.path.toString())},active:S===e.path},e.label)))))),a.createElement(s.cGx,null),a.createElement(s.P3w,{height:{desktop:(0,s.D0d)(48),mobile:(0,s.D0d)(24)}}),(null==m?void 0:m.length)>0?a.createElement(s.B8B,{separator:a.createElement(s.P3w,{height:(0,s.D0d)(16)})},m.map((e=>a.createElement(v.A,{key:e.id,collaboration:e,onClick:()=>Z(e),detailsButtonLabel:e.state===y.NN.Proposed?"View proposals details":"View collab"})))):D),!d&&u&&a.createElement(h.A,{icon:s.FI1.warning,variant:"error",title:"Oops, something went wrong.",body:"This page didn't load correctly. Please try refreshing the page or come back later."})):D)),a.createElement(s.lGe,{visible:P,title:"The payment was successful!",onClose:()=>z(!1),actions:a.createElement(s.QWc,{variant:"primary",onClick:()=>z(!1)},"Close")},a.createElement(a.Fragment,null,a.createElement(s.P3w,{height:16}),a.createElement(s.nBu,null,`Your collab with ${null==r||null===(n=r.state)||void 0===n?void 0:n.paymentTo} is a wrap. We hope\n              it caused the boost you were looking for.`))))};const C=(0,f.default)(s.c2u).withConfig({displayName:"CollaborationOverview__StyledUsersIcon",componentId:"sc-1o5k8j-0"})(["width:72px;height:72px;","{width:96px;height:96px;}"],s.H5I.desktop),D=a.createElement(h.A,{customIcon:a.createElement(C,null),variant:"empty",title:"No collabs found.",body:a.createElement(a.Fragment,null,"Go to the ",a.createElement(g.A,{to:c.JZ.collaboration.overview.url},"Collab Market")," to start a collab.")}),k=(0,f.default)(s.QWc).withConfig({displayName:"CollaborationOverview__StyledTextButton",componentId:"sc-1o5k8j-1"})(["margin-right:2rem;background-size:50px 2px;display:inline-block;padding-bottom:",";"," ","{display:inline-flex;}"],(0,s.D0d)(14),(e=>{let{active:t}=e;return t&&`background-image: linear-gradient(\n        ${s.K5q.springGreen.toString()},\n        ${s.K5q.springGreen.toString()}\n      ); `}),s.H5I.desktop),A=f.default.div.withConfig({displayName:"CollaborationOverview__Filters",componentId:"sc-1o5k8j-2"})(["white-space:nowrap;","{display:flex;}"],s.H5I.desktop),I=f.default.div.withConfig({displayName:"CollaborationOverview__FilterWrapper",componentId:"sc-1o5k8j-3"})(["width:100%;overflow-x:auto;"]);var S=()=>{const{redirectToLoginIfNotLoggedIn:e}=(0,r.J)();return e()?null:a.createElement(m.A,null,a.createElement(d.m,null,a.createElement("title",null,"Collabs")),a.createElement(u.A,{title:"Collabs"},a.createElement(s.P3w,{height:{desktop:(0,s.D0d)(32),mobile:(0,s.D0d)(24)}}),a.createElement(N,null)))};var P=()=>{const{redirectToLoginIfNotLoggedIn:e}=(0,r.J)();return e()?null:a.createElement(i.A,null,a.createElement(l.Router,{basepath:"/"},a.createElement(l.Redirect,{noThrow:!0,replace:!0,from:c.JZ.myCollabs.path,to:c.JZ.myCollabs.overview.path}),a.createElement(S,{path:c.JZ.myCollabs.overview.path}),a.createElement(o.default,{default:!0})))}},78277:function(e,t){t.A=function(e,t){void 0===t&&(t=2);return(0,new Intl.NumberFormat("nl-NL",{maximumFractionDigits:t,style:"percent"}).format)(e)}},28277:function(e,t,n){n.d(t,{Cz:function(){return i},NY:function(){return r},UZ:function(){return c},Zw:function(){return o},dx:function(){return d},mA:function(){return s}});var l=n(20323),a=n(46367);const r=e=>{var t,n;return Boolean((null==e||null===(t=e.platforms)||void 0===t?void 0:t.length)>0||(null==e||null===(n=e.genres)||void 0===n?void 0:n.length)>0||(null==e?void 0:e.fixedFeeEnabled)||(null==e?void 0:e.royaltyShareEnabled))},o=e=>{var t,n;return Boolean((null==e||null===(t=e.platforms)||void 0===t?void 0:t.length)>0||(null==e||null===(n=e.genres)||void 0===n?void 0:n.length)>0||(null==e?void 0:e.fixedFeeEnabled)||(null==e?void 0:e.royaltyShareEnabled))},i=(e,t)=>{const n=[];return r(e)&&n.push("Music Maker"),o(t)&&n.push("Content Creator"),n},c=(e,t,n)=>{let l,r;const o=t===n;return e===n?(l=a.ko.Artist,r=a.ko.Influencer):o&&(l=a.ko.Influencer,r=a.ko.Artist),{myGroupRole:l,otherGroupRole:r}},s=e=>{switch(e){case a.QZ.Artist:return"Music Maker";case a.QZ.Influencer:return"Content Creator";case a.QZ.Creative:return"Creative";case a.QZ.Fan:return"Fan / NFT collector";case a.QZ.Label:return"Label";default:return"-"}};function d(e){for(const[t,n]of Object.entries(l.Xh))if(n===e)return t}},5891:function(e,t,n){n.d(t,{EY:function(){return m},LK:function(){return r},Sf:function(){return i},_V:function(){return u},cm:function(){return o},fU:function(){return c},ll:function(){return s},mO:function(){return d}});var l=n(15823),a=n(76990);const r=(e,t)=>t?`${e} - ${t}`:e,o=(e,t)=>(0,l.qzq)(r(e,t)),i=e=>e?`${e} BPM`:null,c=e=>{if(!e)return"0:00";return`${Math.floor(e/60)}:${`0${Math.floor(e%3600%60)}`.slice(-2)}`},s=e=>{const t=null==e?void 0:e.filter((e=>e.primary&&e.artist.name)).sort(((e,t)=>e.position-t.position)).map((e=>e.artist.name)).join(", "),n=null==e?void 0:e.filter((e=>!e.primary&&e.artist.name)).sort(((e,t)=>e.position-t.position)).map((e=>e.artist.name)).join(", ");return`${t} ${n&&`featuring ${n}`} `},d=(0,a.default)(l.fI1).withConfig({displayName:"track__Wrapper",componentId:"sc-ssw9t6-0"})((e=>{let{disabled:t,isPlaying:n}=e;return(0,a.css)(["padding:"," ",";cursor:pointer;outline:1px solid transparent;outline-offset:",";background-color:",";:hover{background:",";}:focus{background:",";}:active{background:",";}"," "," ","{padding:"," ",";}"],(0,l.D0d)(12),(0,l.D0d)(20),(0,l.D0d)(3),l.K5q.steelGray.toString(),l.K5q.white.alpha(l.qpS.twenty).toString(),l.K5q.darkBlue.toString(),l.K5q.darkBlue.toString(),t&&(0,a.css)(["pointer-events:none;opacity:",";"],l.qpS.thirtyfive.toString()),n&&`background: ${l.K5q.darkBlue.toString()};`,l.H5I.desktop,(0,l.D0d)(12),(0,l.D0d)(16))})),u=(0,a.default)(l.TPY).withConfig({displayName:"track__Image",componentId:"sc-ssw9t6-1"})(["position:absolute;"]),m=(0,a.default)(l.HLL).withConfig({displayName:"track__Text",componentId:"sc-ssw9t6-2"})(["color:",";"],l.K5q.white.toString());(0,a.default)(l.GrD).withConfig({displayName:"track__PlatformChip",componentId:"sc-ssw9t6-3"})(["display:inline-flex;justify-content:center;align-items:center;padding:",";border:1px solid ",";background-image:none;"],(0,l.D0d)(12),l.K5q.white.alpha(l.qpS.twenty).toString())}}]);
2//# sourceMappingURL=component---src-templates-my-collabs-routes-my-collabs-routes-tsx.js.map

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.