1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4110],{28912:(e,s,n)=>{"use strict";n.r(s),n.d(s,{__N_SSP:()=>m,default:()=>v});var t=n(37876),a=n(94210),r=n(17900),i=n(47850),o=n(4661),c=n(77292),u=n(1992),l=n(89427),d=n(48080),p=n(89099),_=n(18339),h=n(90434),m=!0;let v=(0,a.X3)(e=>{let s=(0,p.useRouter)(),n=(0,d.d)(),{event:a,companyType:m}=e,{organization:v}=a,w=m==c.CompanyType.CHARITY,y=(0,u.useMutation)(e=>new _.A().create(e),{onSuccess:async(e,t,r)=>{w?(n("Charity successfully created","success"),await s.push(l.l.admin().event(a.id).charities())):(n("Sponsor successfully created","success"),await s.push(l.l.admin().event(a.id).sponsors()))},onError:async e=>{var s,t,a;n(null!=(a=null==(t=e.response)||null==(s=t.data)?void 0:s.error)?a:"Error","error")}});return(0,t.jsx)(r.A,{title:"".concat(v.name," ").concat(h.A.softwareName),organization:v,event:null,userSession:e.userSession,hidePledgeButton:!0,hide:{hideFooter:!0},children:(0,t.jsxs)("main",{className:"pb-5 pb-xl-8",children:[(0,t.jsx)(i.A,{event:a,activeTab:w?"charities":"sponsors"}),(0,t.jsx)(o.A,{event:a,companyType:m,onSubmit:(e,s)=>{y.mutate(e)},isLoading:y.isLoading})]})})})},81596:(e,s,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[site]/admin/events/[eventId]/company/create",function(){return n(28912)}])}},e=>{e.O(0,[6836,9091,1201,7900,2716,636,6593,8792],()=>e(e.s=81596)),_N_E=e.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.