1import{n as u,s as c,t as m}from"./jsx-runtime-DiSAP_wb.js";import{t as b}from"./ApplicationPage-Cc8I9LMw.js";import{n as f}from"./useGenericMutation-DJ5F5nZF.js";import{f as s,kn as g,va as p,ya as y}from"./index-COAzZyYT.js";import"./AgentsPage-Bnr0cjoM.js";import{t as _}from"./UpdateAccountInformation-eQglhDtA.js";import{n as v,t as w}from"./Tabs-DVQDCPql.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3c68bf9f9c73cfd39edffe385c84d39b2ea07d28"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3b088b65-1d3e-4b0b-9fe1-c3fee656713c",e._sentryDebugIdIdentifier="sentry-dbid-3b088b65-1d3e-4b0b-9fe1-c3fee656713c")}catch{}})();var x=c(u(),1),t=m(),h=[{value:"profile",label:"Profile",icon:"solar:user-linear"},{value:"preferences",label:"Preferences",icon:"solar:user-id-linear",disabled:!0},{value:"loyalty-programs",label:"Loyalty Programs",icon:"solar:medal-ribbons-star-linear",disabled:!0},{value:"emergency-contact",label:"Emergency Contact",icon:"solar:user-plus-rounded-linear",disabled:!0}],D=()=>{const{companyId:e}=y(),r=p(),{mutationFn:n,isLoading:i}=f({document:g,updateMessage:void 0}),o=(0,x.useCallback)(async(a,l)=>{const d=await n({companyId:e,...a},{updateMessage:l});r(s.get("management_users","edit",{id:d.data.crmCreateUser.id}))},[n,e,r]);return(0,t.jsxs)(b,{pageTitle:"Add a new user",breadcrumbs:{links:[{name:"Altitude AI management",href:s.get("management","index")},{name:"Users",href:s.get("management_users","index")},{name:"Edit user"}]},children:[(0,t.jsx)(v,{tab:"profile",children:h.map(a=>(0,t.jsx)(w,{value:a.value,icon:a.icon,label:a.label,to:s.get("management_users","new",{tab:a.value}),"data-test":`crm-user-edit-tab-${a.value}`,disabled:a.disabled},a.value))}),(0,t.jsx)(_,{submitCallback:o,isLoading:i,phoneVerificationToken:"",fromCrm:!0})]})};export{D as default}; 2 3//# sourceMappingURL=CrmNewUserPage-B6sYOr3l.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.