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,q as v,P as n,o as h,p as C,av as w}from"./main-CB1rIpj1.js";import{c as b}from"./ClientScopeTypes-DssmJgzM.js";import{V as y}from"./ViewHeader-ClYsIt-b.js";import{S as F}from"./ScopeForm-BswEB75o.js";import"react";import"react-dom";import"./TimeSelectorControl-DKFKsWnY.js";import"./TimeSelector-Do9k0Blv.js";import"./utils-C-TUnOch.js";import"./SwitchControl-DX9akl-B.js";import"./FormAccess-CfigFn8i.js";function R(){const{adminClient:o}=u(),{t:r}=S(),c=f(),{realm:s}=g(),{addAlert:m,addError:p}=v();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=h({...i,name:i.name?.trim().replace(/ /g,"_")});try{await o.clientScopes.create(t);const e=await o.clientScopes.findOneByName({name:t.name});if(!e)throw new Error(r("notFound"));await b(o,{...t,id:e.id},t.type),m(r("createClientScopeSuccess"),C.success),c(w({realm:s,id:e.id,tab:"settings"}))}catch(e){p("createClientScopeError",e)}}})})})]})}export{R as default}; 2//# sourceMappingURL=CreateClientScope-CPrkQYeo.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.