All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.ClientSelect-B9UqjyP6.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{jsx as h}from"react/jsx-runtime";import{u as C,a as v,w as x,v as S}from"./main-C7ps2lmX.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}=C(),{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]),h(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(({clientId:e})=>e)})};export{I as C};
//# sourceMappingURL=ClientSelect-B9UqjyP6.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy