All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.CreateClientScope-40907ead.js Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
import{u as d,b as u,c as S,d as g,j as e,P as i,z as f,g as s,A as h,a5 as j}from"./index-0cda761d.js";import{c as x}from"./ClientScopeTypes-d24d11d6.js";import{V as v}from"./ViewHeader-ff389f8e.js";import{S as w}from"./ScopeForm-3a137987.js";import"./Select-68736f55.js";import"./check-fc57dbe1.js";import"./star-icon-2ee5dfa7.js";import"./Text-b9444fb8.js";import"./ToolbarContent-fee3570e.js";import"./utils-49fe564a.js";import"./SwitchControl-ac2ce3d1.js";import"./FormAccess-835af982.js";import"./copy-icon-b8d617db.js";import"./Form-4087ddae.js";import"./GridItem-1535d986.js";import"./KeycloakTextArea-9049d04c.js";import"./KeycloakTextInput-ada01047.js";import"./useIsFeatureEnabled-7d978ee4.js";function q(){const{t:o}=d("client-scopes"),c=u(),{realm:n}=S(),{addAlert:m,addError:p}=g(),l=async a=>{const r=f({...a,name:a.name?.trim().replace(/ /g,"_")});try{await s.clientScopes.create(r);const t=await s.clientScopes.findOneByName({name:r.name});if(!t)throw new Error(o("common:notFound"));await x({...r,id:t.id},r.type),m(o("createSuccess",h.success)),c(j({realm:n,id:t.id,tab:"settings"}))}catch(t){p("client-scopes:createError",t)}};return e.jsxs(e.Fragment,{children:[e.jsx(v,{titleKey:"client-scopes:createClientScope"}),e.jsx(i,{variant:"light",className:"pf-u-p-0",children:e.jsx(i,{variant:"light",children:e.jsx(w,{save:l})})})]})}export{q as default};
//# sourceMappingURL=CreateClientScope-40907ead.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy