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

theme.keycloak.v2.admin.resources.assets.CreateClientScope-cOp-M-iw.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{jsxs as l,Fragment as d,jsx as a}from"react/jsx-runtime";import{u,a as S,d as f,c as g,f as h,P as n,S as C,k as v,az as w}from"./main-C7ps2lmX.js";import{c as y}from"./ClientScopeTypes-BnGjMgG5.js";import{V as b}from"./ViewHeader-B7eeFzFA.js";import{S as A}from"./ScopeForm-CeG_pANI.js";import"react";import"react-dom";import"./utils-DeGqqWSp.js";import"./SwitchControl-C_9Y74oV.js";import"./FormAccess-DyLNkc18.js";import"./copy-icon-ACZmDH8e.js";function H(){const{adminClient:r}=u(),{t:o}=S(),s=f(),{realm:c}=g(),{addAlert:m,addError:p}=h();return l(d,{children:[a(b,{titleKey:"createClientScope"}),a(n,{variant:"light",className:"pf-v5-u-p-0",children:a(n,{variant:"light",children:a(A,{save:async i=>{const t=C({...i,name:i.name?.trim().replace(/ /g,"_")});try{await r.clientScopes.create(t);const e=await r.clientScopes.findOneByName({name:t.name});if(!e)throw new Error(o("notFound"));await y(r,{...t,id:e.id},t.type),m(o("createClientScopeSuccess",v.success)),s(w({realm:c,id:e.id,tab:"settings"}))}catch(e){p("createClientScopeError",e)}}})})})]})}export{H as default};
//# sourceMappingURL=CreateClientScope-cOp-M-iw.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy