1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[947],{66870:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>N});var r=n(80263),i=n(23949),a=n(5677),s=n(12556),o=n(33894),d=n(1985),u=n(78852),c=n(61469),l=n.n(c),m=n(53239);let p=()=>{let{isBelowSm:t}=(0,s.yU)(),{myContributorId:e,getMyContributorUrl:n,getMyContributor:c,updateMyContributor:p,updateMyContributorArtwork:y,deleteMyContributorArtwork:b}=(0,m.useContext)(i.q);if(void 0===e)return null;let h=(0,m.useCallback)(async(t,n)=>{try{await p?.mutateAsync({id:e,payload:t},{onSuccess:()=>{o.vF.success("Updated successfully")}}),n?await y?.mutateAsync({id:e,file:n}):null===n&&await b?.mutateAsync({id:e})}catch(t){o.vF.error(t)}},[e,p,y,b]);return(0,r.jsx)(d.p,{data:c?.data,isLoading:c?.isFetching,children:e=>(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(u.K,{mt:2}),(0,r.jsx)(a.t,{contributor:e,validationError:p?.error,onCancel:()=>{n&&l().push(n(e.id,e.contributor_type))},onSubmit:h}),(0,r.jsx)(u.K,{mt:2})]})})};var y=n(90244),b=n(13463),h=n(10330),x=n(42173),_=n(13162),v=n(54923),j=n(84725),f=n(20718),g=n(14503),C=n(7060),w=n(1432);let E=()=>{let t=(0,c.useRouter)(),{t:e}=(0,b.c3)(),n=(0,j.Fg)(t.query.myContributorId),{data:i}=(0,_.$Y)(n),a=e("Edit {name}",void 0,{name:(0,y.nD)(e,i?.name)}),s=(0,m.useMemo)(()=>({title:a}),[a]),o=(0,v.UV)(e),d=(0,m.useMemo)(()=>[o.Root,o.ContentProvider,i&&(0,v.pp)(i,e),{text:a}].filter(h.vN),[o,a]);return(0,r.jsx)(w.d,{breadcrumbs:d,navigationTabId:"content",children:(0,r.jsxs)(f.m,{children:[(0,r.jsx)(x.t,{fields:s,pageName:"contentProvider"}),(0,r.jsx)(p,{})]})})};E.displayName="EditContributorPage",E.getConfig=()=>({isAuthenticationRequired:!0}),E.renderInLayout=t=>(0,r.jsx)(C.Y,{rightSidebar:(0,r.jsx)(g.V,{selectedItemId:"content"}),children:t});let N=E},76459:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/content-provider/[contributorType]/[myContributorId]/edit",function(){return n(66870)}])}},t=>{t.O(0,[4001,7236,2762,8288,5720,7874,4802,5599,7095,2939,2039,636,6593,8792],()=>t(t.s=76459)),_N_E=t.O()}]);
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.