PageSourceSearch

https://auth.kuntokompassi.fi/resources/v59c5/admin/keycloak.v2/assets/CreateClientRole-BVLqG7hj.js

js kuntokompassi.fi collected 2026-10-07 13:23:20 UTC 904 bytes, 2 lines download raw bytes

1import{jsx as i}from"react/jsx-runtime";import{u,a as C,l as b,b as p,c as R,d as f,V as g,n as h,ba as v,q as A,bV as F}from"./main-BFMiUjhv.js";import{R as V}from"./RoleForm-Bm2hQ7TU.js";import"react";import"react-dom";import"./FormAccess-MPM0Cbs4.js";import"./ViewHeader-BrvThiM2.js";function k(){const{adminClient:a}=u(),{t:l}=C(),o=b({mode:"onChange"}),m=p(),{clientId:e}=R(),{realm:r}=f(),{addAlert:c,addError:d}=g();return i(h,{...o,children:i(V,{form:o,onSubmit:async n=>{const s={...n,name:n.name?.trim(),attributes:{}};try{await a.clients.createRole({id:e,...s});const t=await a.clients.findRole({id:e,roleName:s.name});c(l("roleCreated"),A.success),m(F({realm:r,clientId:e,id:t.id,tab:"details"}))}catch(t){d("roleCreateError",t)}},cancelLink:v({realm:r,clientId:e,tab:"roles"}),role:"manage-clients",editMode:!1})})}export{k as default};
2//# sourceMappingURL=CreateClientRole-BVLqG7hj.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.