PageSourceSearch

https://refocus-awards.com/_next/static/chunks/pages/dashboard/admin/artists-32b93048e7f1339e.js

js refocus-awards.com collected 2026-10-02 06:58:25 UTC 7,326 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7064],{37475:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/admin/artists",function(){return r(384)}])},75761:function(t,e,r){"use strict";var n=r(43692),a=r(44453),i=r.n(a),o=r(8014),s=r(86584),c=r(40137),u=r(2612),l=r(56168),d=r(98421),p=r(8403),f=r(49823);e.Z=function(t){var e=t.user,r=(0,p.Z)(),a=(0,l.useState)(e.is_featured),y=a[0],_=a[1],v=(0,l.useCallback)((0,n.Z)(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,f.ZP)({path:"/api/admin/manage/artist/".concat(e.id,"/toggle-featured/"),method:"POST"});case 2:(n=t.sent.data)?n.is_featured?r({title:"".concat(e.name," set as Featured"),status:"success"}):r({title:"".concat(e.name," unset as Featured"),status:"info"}):r({title:d.FI,status:"error"});case 4:case"end":return t.stop()}}),t)}))),[r,e]),E=(0,l.useCallback)((0,u.debounce)(v,1e3),[v]),w=(0,l.useCallback)((function(){_(!y),E()}),[E,y]);return(0,l.useEffect)((function(){_(e.is_featured)}),[]),(0,o.jsx)(s.hU,{mr:"10px",size:"sm","aria-label":"Toggle Featured",bg:"transparent !important",icon:(0,o.jsx)(c.Z,{icon:"star",width:"20px",fill:y?"accent1.2":"transparent",stroke:y?"accent1.2":"base_2.2"}),onClick:w})}},384:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return j}});
1var n=r(8014),a=r(34237),i=r(74576),o=r(42548),s=r(5447),c=r(99728),u=r(27427),l=r(98421),d=r(40137),p=r(14131),f=function(t){var e=t.endpoint,r=t.title,a=void 0===r?"Export to CSV":r,i=(0,u.Z)(t,["endpoint","title"]);return(0,n.jsx)(p.Z,(0,c.Z)((0,s.Z)({rightIcon:(0,n.jsx)(d.Z,{icon:"downloadicon",fill:"base.1"}),ml:"auto",variant:"flat",mr:"40px",size:"md"},i),{children:(0,n.jsx)("a",{href:"".concat(l.T5).concat(e&&e),children:a})}))},y=r(35846),_=r(35838),v=r(56168),E=r(62985),w=r(71246),m=r(84911),x=r(75761),T=r(31651),k=r(75657),C=r.n(k),h=r(60062),O=r(78917),A=r(8376),g=[{type:"AVATAR",accessor:"user",title:"Name",orderKey:"name",export:function(t){return t.user.name}},{type:"TEXT",accessor:"user.email",title:"Email",export:function(t){return t.user.email}},{type:"CURRENCY",accessor:"total_net_revenue",title:"Total Net Revenue",width:125,export:function(t){return o.ub.currency(t.total_net_revenue)}},{type:"CURRENCY",accessor:"total_wallet_rewards",title:"Total Reward Dollars Earned",width:175,export:function(t){return o.ub.currency(t.total_wallet_rewards)}},{type:"TEXT",accessor:"contests_entered",title:"Contests Entered",width:125,export:function(t){return t.contests_entered}},{type:"TEXT",accessor:"entries",title:"Entries",width:70,export:function(t){return t.entries}},{type:"TEXT",accessor:"saved_for_later_entries",title:"Saved For Later Entries",width:175,export:function(t){return t.saved_for_later_entries}},{type:"DATE",accessor:"user.date_joined",title:"Member Since",width:140,export:function(t){return o.ub.date(t.user.date_joined)}},{type:"TEXT",accessor:"awards",title:"# Of Awards Won",width:120,export:function(t){return t.awards}},{type:"BOOLEAN",accessor:"latest_interview",title:"Interview",width:60,export:!0},{type:"SOCIAL",accessor:"social.instagram",title:"Instagram",socialProvider:T.A.INSTAGRAM,export:function(t){var e=t.social.find((function(t){return t.type===T.A.INSTAGRAM}));return e?e.url:""}},{type:"SOCIAL",accessor:"social.website",title:"Website",socialProvider:T.A.WEBSITE,export:function(t){var e=t.social.find((function(t){return t.type===T.A.WEBSITE}));return e?e.url:""}},{type:"CURRENCY",accessor:"wallet",title:"Rewards Balance",width:120,export:function(t){return o.ub.currency(t.wallet)}},{type:"LOCATION",accessor:"city",objectKey:"location",title:"City",width:80,export:function(t){var e;return(null===(e=t.location)||void 0===e?void 0:e.city)||""}},{type:"LOCATION",accessor:"region",objectKey:"location",title:"State",width:80,export:function(t){var e,r;return(null===(e=t.location)||void 0===e?void 0:e.region)||(null===(r=t.location)||void 0===r?void 0:r.state)||""}},{type:"LOCATION",accessor:"country",objectKey:"location",title:"Country",width:70,export:function(t){if(!t.location)return"";var e=A.find((function(e){return e.countryShortCode===t.location.country}));return(null===e||void 0===e?void 0:e.countryName)||""}},{type:"CUSTOM",accessor:"user.id",title:"Action",variant:"numeralsS",width:80,render:function(t){var e=t.value,r=t.row.original.user;return(0,n.jsxs)(a.kC,{children:[(0,n.jsx)(C(),{passHref:!0,href:"".concat(l.yw.EDIT_ARTIST,"/").concat(e),children:(0,n.jsx)(a.kC,{cursor:"pointer",as:"a",align:"center",children:(0,n.jsx)(d.Z,{icon:"linkarrowicon",fill:"base_2.2",size:24})})}),(0,n.jsx)(x.Z,{user:r})]},r.id)}}],N={user:"name","user.email":"email","user.date_joined":"date_joined",wallet:"wallet",country:"country",city:"city",region:"state",total_net_revenue:"net_revenue",total_wallet_rewards:"total_wallet_rewards",entries:"entries",saved_for_later_entries:"saved_for_later_entries"},S=(0,m.Z)(O.dv).concat([{type:h.k.BOOLEAN,key:"featured",title:"Featured Artist"},{type:h.k.DATE_RANGE,key:"date_joined",title:"Date registered"},O.Bf,{title:"Overall Winner",key:"overall",type:h.k.BOOLEAN}]),b=function(){var t=(0,w.Z)().isMobile;return(0,n.jsx)(y.Z,{title:"Artist Management",rightSide:(0,n.jsxs)(n.Fragment,{children:[!t&&(0,n.jsx)(f,{endpoint:"/api/admin/manage/artist/dump",title:"Export Artists"}),(0,n.jsx)(a.kC,{align:"center",justify:"space-between",zIndex:1001,children:(0,n.jsx)(_.Z,{triggerProps:{mt:"-13px",pt:"13px",mb:"-13px",pb:"13px"}})})]})})},j=(0,E.Z)((function(){var t=(0,v.useMemo)((function(){return(0,o.z6)(g)}),[]),e=(0,v.useCallback)((function(e){return e.reduce((function(e,r){var n={location:r.location,social:r.social};return t.forEach((function(t){var e=t.accessor;n[e]=r[e]})),e.push(n),e}),[])}),[t]);return(0,n.jsx)(i.Z,{leftStickyColumnCount:1,rightStickyColumnCount:1,storageKey:"artists_management_c
1olumns",columns:t,filters:S,url:"/api/admin/stats/artists/",sortConfig:N,formatData:e,paginate:!0})}),{title:"Artist Management",header:(0,n.jsx)(b,{})})},78917:function(t,e,r){"use strict";r.d(e,{Bf:function(){return d},M$:function(){return u},MJ:function(){return l},UV:function(){return p},dv:function(){return y},gD:function(){return c},hp:function(){return s},vQ:function(){return f},yI:function(){return o}});var n=r(84911),a=r(80174),i=r(60062),o={title:"Entry Type",key:"entry_type",type:i.k.DROPDOWN,options:[{value:a.UZ.SINGLE,label:"Single"},{value:a.UZ.SERIES,label:"Series"}]},s={title:"Entry Title",type:i.k.TEXT,key:"entry_title"},c=[{title:"Year",key:"year[]",type:i.k.CONTEXT_CHOICES,context_key:"contest_years"},{title:"Contest",key:"contest[]",type:i.k.CONTEXT_CHOICES,context_key:"contest_names"}],u=(0,n.Z)(c).concat([{title:"Category",key:"category[]",type:i.k.CATEGORIES}]),l={title:"Entry Level",key:"entry_level",type:i.k.DROPDOWN,options:[{value:a.Kq.PROFESSIONAL,label:"Professional"},{value:a.Kq.NON_PROFESSIONAL,label:"Non-Professional"}]},d={title:"Award Type",key:"award_type[]",type:i.k.CONTEXT_CHOICES,context_key:"contest_awards"},p={title:"Email",key:"email",type:i.k.TEXT},f={title:"User Name",key:"full_name",type:i.k.TEXT},y=[p,f]}},function(t){t.O(0,[9e3,2783,3434,9464,9966,8400,2061,6531,5274,4519,4576,9774,2888,179],(function(){return e=37475,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.