theme.keycloak.v2.admin.resources.assets.ClientSelect-BTkwOwGP.js Maven / Gradle / Ivy
import{jsx as C}from"react/jsx-runtime";import{u as y,a as v,v as x,y as S}from"./index-C1LIsRX7.js";import{useState as a}from"react";const I=({name:n,label:r,helpText:l,defaultValue:o,isDisabled:i=!1,required:c=!1,variant:u="typeahead"})=>{const{adminClient:m}=y(),{t}=v(),[d,f]=a([]),[s,p]=a("");return x(()=>{const e={max:20};return s&&(e.clientId=s,e.search=!0),m.clients.find(e)},e=>f(e),[s]),C(S,{name:n,label:t(r),labelIcon:t(l),controller:{defaultValue:o||"",rules:{required:{value:c,message:t("required")}}},onFilter:e=>p(e),variant:u,isDisabled:i,options:d.map(({id:e,clientId:h})=>({key:e,value:h}))})};export{I as C};
//# sourceMappingURL=ClientSelect-BTkwOwGP.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy