1import{jsxs as l,Fragment as d,jsx as a}from"react/jsx-runtime";import{u,a as S,b as f,d as g,B as h,P as n,r as v,s as C,bv as b}from"./main-_ihRb8Qg.js";import{c as w}from"./ClientScopeTypes-CRWEDLVv.js";import{V as y}from"./ViewHeader-BKbUCfZV.js";import{S as F}from"./ScopeForm-EeOZMrt4.js";import"react";import"react-dom";import"./utils-C-TUnOch.js";import"./SwitchControl-CsSH-j_v.js";import"./FormAccess-nKSssynu.js";function K(){const{adminClient:r}=u(),{t:o}=S(),s=f(),{realm:c}=g(),{addAlert:m,addError:p}=h();return l(d,{children:[a(y,{titleKey:"createClientScope"}),a(n,{variant:"light",className:"pf-v5-u-p-0",children:a(n,{variant:"light",children:a(F,{save:async i=>{const t=v({...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 w(r,{...t,id:e.id},t.type),m(o("createClientScopeSuccess",C.success)),s(b({realm:c,id:e.id,tab:"settings"}))}catch(e){p("createClientScopeError",e)}}})})})]})}export{K as default}; 2//# sourceMappingURL=CreateClientScope-BAhJbmOf.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.