1import{a as d,e as c,c as l,z as u,p as g,j as i,aC as b,cU as f,iM as y}from"./index-ZWP6Dbbj.js";import{O as r}from"./index-CBhnkaoP.js";import{O as h}from"./OrganizationForm-D-BvMTnC.js";import{w}from"./app-BUG-_G7c.js";import{t as _}from"./index.t10s-CReF0BqO.js";import"./vendor-DKtCm5W2.js";import"./dayjs-timezone-iana-plugin-CmU3ItL3.js";import"./organization-types-BtuFjqnn.js";import"./sdgs-D-0m7pdW.js";import"./AddressFieldsInput-CycA1P1f.js";import"./SDGPicker-UqeYW0mf.js";import"./TagsSelector-msXrin9a.js";import"./tags.hooks-DjTpgCep.js";import"./TagTooltipContent-QqTpIMnn.js";import"./TagsSelector.t10s-Cv1yVp-q.js";import"./WYSIWYG-CP-HUFMa.js";import"./WhitelabelInternationalizedInput-9DlbPBXO.js";import"./SectionToggle-B7CmwIPG.js";import"./index-D0-Zk_9f.js";import"./SearchSelect-B93cJua8.js";import"./OrganizationForm.t10s-DGqobJ2-.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5a905da3-175b-488a-976b-c30743481928",t._sentryDebugIdIdentifier="sentry-dbid-5a905da3-175b-488a-976b-c30743481928")}catch{}const V=()=>{const t=d(_),e=c(),s=l(),n=u(),p=async m=>{const o={...m,type:r.corporate};try{const{organization:a}=await e(f({data:o}));o.cover_image&&await e(y({album_id:a.cover_album_id,data:{name:"Cover photo",description:"Cover photo",url:o.cover_image}})),s(`/o/${a.slug}`)}catch(a){n()(a)}};return g(t("title")),i.jsxs("div",{className:b("form-slim",w.paddingL),children:[i.jsx("h1",{className:"section-heading",children:t("title")}),i.jsx(h,{onSubmit:p,initialValues:{type:r.corporate},buttonMessage:t("createCorporate")})]})};export{V as default}; 2//# sourceMappingURL=create-corporate-DLW9OQCP.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.