PageSourceSearch

https://id.prepuptime.com/resources/ir6j6/admin/keycloak.v2/assets/CreateClientRole-B5_3LIrU.js

js prepuptime.com collected 2026-09-24 14:50:52 UTC 904 bytes, 2 lines download raw bytes

1import{jsx as i}from"react/jsx-runtime";import{u,a as p,n as C,b as R,c as b,d as f,B as g,p as h,bO as v,s as A,cp as F}from"./main-_ihRb8Qg.js";import{R as w}from"./RoleForm-Dy37R0nJ.js";import"react";import"react-dom";import"./FormAccess-nKSssynu.js";import"./ViewHeader-BKbUCfZV.js";function k(){const{adminClient:a}=u(),{t:l}=p(),o=C({mode:"onChange"}),c=R(),{clientId:e}=b(),{realm:r}=f(),{addAlert:m,addError:d}=g();return i(h,{...o,children:i(w,{form:o,onSubmit:async s=>{const n={...s,name:s.name?.trim(),attributes:{}};try{await a.clients.createRole({id:e,...n});const t=await a.clients.findRole({id:e,roleName:n.name});m(l("roleCreated"),A.success),c(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-B5_3LIrU.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.