theme.keycloak.v2.admin.resources.assets.NewOrganization-BzlFUIO_.js Maven / Gradle / Ivy
import{jsxs as n,Fragment as p,jsx as a}from"react/jsx-runtime";import{u as v,f as h,a as f,d as z,c as F,g as O,P as S,F as A,A as y,p as E,h as b,L as w,dD as x,dE as P}from"./index-C1LIsRX7.js";import{F as j}from"./FormAccess-BcY70QlP.js";import{V as k}from"./ViewHeader-qjLr6U82.js";import{O as C,c as H}from"./OrganizationForm-BjCA0cNQ.js";import"react";import"react-dom";import"./copy-icon-DOS8MmN7.js";import"./MultiLineInput-AcwuO_FT.js";function I(){const{adminClient:s}=v(),{addAlert:c,addError:m}=h(),{t}=f(),d=z(),{realm:i}=F(),e=O(),{handleSubmit:l,formState:g}=e;return n(p,{children:[a(k,{titleKey:"createOrganization"}),a(S,{variant:"light",children:a(j,{role:"anyone",onSubmit:l(async r=>{try{const o=H(r),{id:u}=await s.organizations.create(o);c(t("organizationSaveSuccess")),d(P({realm:i,id:u,tab:"settings"}))}catch(o){m("organizationSaveError",o)}}),isHorizontal:!0,children:n(A,{...e,children:[a(C,{}),n(y,{children:[a(E,{formState:g,"data-testid":"save",children:t("save")}),a(b,{"data-testid":"cancel",variant:"link",component:r=>a(w,{...r,to:x({realm:i})}),children:t("cancel")})]})]})})})]})}export{I as default};
//# sourceMappingURL=NewOrganization-BzlFUIO_.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy