1import{ag as m,u,ah as f,r as d,j as e,cO as y,cN as M,t as s,aj as g}from"./index-DESPVSwC.js";import{k as P}from"./key-conflict-BoOz9dl2.js";import{M as x,t as j}from"./map-profile-editor-cUBS8H8W.js";import{P as C}from"./page-layout-Dc_c4GS2.js";import{P as h}from"./page-header-CyNTOC-x.js";import"./constants-J2UKAq-R.js";import"./number-input-BnJw5rtO.js";import"./checkbox-DdAnkCAc.js";import"./switch-BPn9CCuf.js";import"./use-guarded-submit-17i884Dc.js";function E(){const i=m(),n=u(),t=f({...y()}),[c,a]=d.useState(null),p=async l=>{a(null);try{await t.mutateAsync({body:j(l)}),i.invalidateQueries({queryKey:M()}),s.success("Map profile created successfully"),n({to:"/admin/map-profiles"})}catch(o){const r=P(o);r?a(r):s.error(g(o)??"Failed to create map profile")}};return e.jsx(C,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsx(h,{eyebrow:"Map configuration · new profile",title:"Create Map Profile",description:"Add a new map profile to the catalog."}),e.jsx(x,{onSubmit:p,keyError:c,isLoading:t.isPending,mode:"create"})]})})}const A=E;export{A as component};
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.