PageSourceSearch

https://contact.xyz/static/js/3260.5d5d2d62.chunk.js

js contact.xyz collected 2026-10-04 02:26:16 UTC 6,186 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgloss=self.webpackChunkgloss||[]).push([[3260],{13260(e,t,n){n.d(t,{TalentIndex:()=>S});var a=n(89379),i=n(5544),l=n(27565),o=n(34546),s=n(65030),r=n(286),c=n(55334),d=n(88702),v=n(26709),u=n(14292),p=n(75792),h=n(23627),g=n(72452),x=n(40217),m=n(70161),f=n(27929),j=e=>{var t,n,a=e.vertical,o=e.options,j=e.onChange,b=e.defaultOption,y=void 0===b?o[0]:b,C=(0,l.useState)(!1),$=(0,i.A)(C,2),T=$[0],A=$[1],w=(0,s.zy)().pathname,k=(0,h.wm)("currentUser"),I=(0,h.qA)(k),S=null===(t=k.me)||void 0===t||null===(n=t.agency)||void 0===n?void 0:n.name,z=(0,h.Jr)().featureEnabled;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.so,{css:{pb:"$6",px:"$4",pt:"$6",flexDirection:"column",justifyContent:"flex-start","@bp2":{position:"relative",flexDirection:"row",pb:"$12",px:"unset",pt:"$10",justifyContent:"center",alignItems:"center"}},children:[(0,f.jsxs)(r.EY,{variant:{"@initial":"h2","@bp5":"h1"},css:{"@bp2":{width:"100%"}},children:["Manage ",x.To[a],"s"]}),(0,f.jsxs)(c.so,{css:{gap:"$3",position:"initial",mr:"auto",mt:"$6","@bp2":{position:"absolute",right:"0",mt:"0"}},children:[(0,f.jsxs)(d.z9,{variant:"primary",css:{},to:"/dashboard/agent/talent/new/profile?v=".concat(a.toLowerCase(),"s"),onClick:()=>(0,p.P)("manage creatives - clicks add creative",{url:w,userType:I,agency:S}),children:[(0,f.jsx)(r.In,{variant:"plus",size:14,color:"white",css:{mr:"$3"}}),(0,f.jsx)(m.Ok,{initial:"Add",bp2:"Add Talent"})]}),k.isFirstPartyAgent&&z("talent_invitations")&&(0,f.jsxs)(d.$n,{variant:"secondary",onClick:()=>A(!0),children:[(0,f.jsx)(r.In,{variant:"plus",size:14,css:{mr:"$3"}}),(0,f.jsx)(m.Ok,{initial:"Invite",bp2:"Invite Talent"})]})]})]}
1),(0,f.jsx)(c.az,{css:{position:"sticky",top:"15px",py:"$4",my:"$3",zIndex:"$400",background:"$white",width:"260px","@bp2":{marginRight:"$0",marginLeft:"auto",my:"$0"},"@bp4":{position:"unset"}},children:(0,f.jsx)(u.Og,{variant:"rebrand",initialValues:{label:y.label,value:"".concat(y.field).concat("|").concat(y.direction)},valueContent:"Order: ",options:o.map(e=>({label:e.label,value:"".concat(e.field).concat("|").concat(e.direction)})),onChange:e=>{var t=e.value.split("|"),n=(0,i.A)(t,2),a=n[0],l=n[1];j(a,"asc"===l?v.UE.Asc:v.UE.Desc)}})}),(0,f.jsx)(g.l,{vertical:a,isOpen:T,onClose:()=>A(!1),showCloseButton:!0})]})},b=n(57832),y=n(45153),C=n(83361),$=n(95578),T=n(99061),A=n(62890),w=n(45940),k={column:"createdAt",direction:v.UE.Desc},I=v.xT.PrimaryAndAdditional,S=()=>{var e,t,n,u,g,S,z,E,O,D=(0,s.zy)(),P=(0,s.zy)().pathname,F=(0,h.wm)("currentUser"),L=(0,h.qA)(F),R=null===(e=F.me)||void 0===e||null===(t=e.agency)||void 0===t?void 0:t.name,M=D.search.substring(3),U=(0,s.W6)(),N=(0,s.zy)().state,Y=null===N||void 0===N?void 0:N.justCreatedTalent;(0,l.useEffect)(()=>{(0,p.P)("manage creatives - lands on page",{url:P,userType:L,agency:R})},[]),M?O=M:(O="models",U.replace("?v=models"));var _=(0,x.u7)(O),q={first:20,inSameAgency:!0,vertical:_,sortField:k.column,sortDirection:k.direction,locationContext:I,fields:[]},G=(0,w.A)(q),V=(0,i.A)(G,2),W=V[0],X=V[1],B=(0,h.NK)(),J=B.loading,K=B.error,Q=B.configurations,H=(0,o.I)(C.VC,{variables:(0,a.A)((0,a.A)({},W),{},{isContactOpen:!0})}),Z=H.data,ee=H.fetchMore,te=H.error,ne=H.loading,ae=H.called,ie=H.refetch,le=(0,o.I)(C.Wj).data,oe=(0,l.useState)(!1),se=(0,i.A)(oe,2),re=se[0],ce=se[1];(0,l.useEffect)(()=>{ce(!0),ie&&ie(W).then(()=>ce(!1))},[W]),(0,l.useEffect)(()=>{X({kind:w.X.Replace,payload:q})},[_]);var de=(0,T.R)(),ve=(0,i.A)(de,2),ue=ve[0],pe=ve[1],he=(0,l.useState)(!1),ge=(0,i.A)(he,2),xe=ge[0],me=ge[1];(0,l.useEffect)(()=>{!re&&pe&&pe.isIntersecting&&ee&&!Te&&(me(!0),ee({variables:{after:$e}}).then(()=>{me(!1)}))},[pe]);var fe=(0,x.o)(Q||[],_);(0,h.rI)({title:fe?"Manage ".concat(fe.label.toLocaleLowerCase(),"s"):""});var je=(0,$.P8)(null===Z||void 0===Z?void 0:Z.verticalTalentSearch),be=0===(null===le||void 0===le||null===(n=le.me)||void 0===n||null===(u=n.agency)||void 0===u||null===(g=u.allTalent)||void 0===g?void 0:g.length),ye=null===Z||void 0===Z||null===(S=Z.verticalTalentSearch)||void 0===S?void 0:S.pageInfo,Ce=null===Z||void 0===Z||null===(z=Z.verticalTalentSearch)||void 0===z?void 0:z.totalCount,$e=(null===ye||void 0===ye?void 0:ye.endCursor)||"",Te=(null===Z||void 0===Z||null===(E=Z.verticalTalentSearch)||void 0===E?void 0:E.totalCount)===je.length,Ae=J||ne||re,we=te||K;return(0,f.jsx)(b.uY,{children:(0,f.jsxs)(c.xI,{variant:{"@initial":"gutter","@bp4":"noGutter"},children:[fe&&(0,f.jsx)(j,{vertical:_,defaultOption:null===fe||void 0===fe?void 0:fe.orderingOptions.find(e=>{var t;return e.field===q.sortField&&e.direction===(null===(t=q.sortDirection)||void 0===t?void 0:t.toLowerCase())}),options:null===fe||void 0===fe?void 0:fe.orderingOptions,onChange:(e,t)=>
1{X({kind:w.X.SetGeneric,payload:{sortField:e,sortDirection:t}})}}),!Ae&&0===je.length&&be&&(0,f.jsx)(b.L_,{vertical:O}),!be&&(0,f.jsxs)(y.m,{context:"agentDashboard",filterPaneContent:(0,f.jsx)(y.Qc,{context:v.gM.TalentManagement,expanded:!0,filters:(null===fe||void 0===fe?void 0:fe.filters)||[],setSearchParams:X,searchParams:W}),filterPaneSummary:Ae?"Loading...":(null===Z||void 0===Z?void 0:Z.verticalTalentSearch)&&(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(c.so,{css:{display:"none","@bp2":{display:"block"}},children:["Results:"," ",(0,f.jsx)("strong",{children:(0,$.td)(Z.verticalTalentSearch.totalCount,O.replace(/%20/g," ").replace(/s$/,""))})]})}),totalCount:Ce,children:[Ae&&(0,f.jsx)(m.Rh,{}),!Ae&&(we||!Q)&&(0,f.jsx)(r.EY,{variant:"h4",children:"Oops, something went wrong"}),!Ae&&!we&&(0,f.jsxs)(f.Fragment,{children:[Y&&(0,f.jsx)(A.z2,{variant:"success",title:"".concat((0,$.tT)(Y.verticalName)," profile has been created"),body:(0,f.jsxs)(r.EY,{variant:"meta",css:{color:"$grey6",pb:"$2"},children:[(0,f.jsx)(d.N_,{to:"/dashboard/agent/talent/".concat(Y.slug),css:{color:"$grey6"},children:Y.name})," ","is now on ",Y.agencyName]})}),(0,f.jsx)(r.nT,{context:"agentDashboard",talent:je,cardType:null===fe||void 0===fe?void 0:fe.cardType})]}),ae&&je.length>0&&(0,f.jsx)("div",{ref:ue}),je.length>0&&xe&&(0,f.jsx)(c.az,{css:{mt:"$10"},children:(0,f.jsx)(m.Rh,{})})]})]})})}}}]);
2//# sourceMappingURL=3260.5d5d2d62.chunk.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.