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

theme.keycloak.v2.admin.resources.assets.Page-CJt-cEyg.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{jsxs as D,Fragment as C,jsx as o}from"react/jsx-runtime";import{u as v,a as y,b as P,c as w,d as I,e as E,f as V,B as h,t as A,D as B}from"./main-C7ps2lmX.js";import{u as T}from"./ConfirmDialog-hx7XKLbN.js";import{V as x}from"./ViewHeader-B7eeFzFA.js";import{P as K}from"./PageHandler-P2CRgucq.js";import{PAGE_PROVIDER as a}from"./PageList-s9OtSlkz.js";import"react";import"react-dom";import"./DynamicComponents-DvaX3FJx.js";import"./ClientSelect-B9UqjyP6.js";import"./FileUpload-CumNwlWc.js";import"./CodeEditor-C-nZkUJx.js";import"./copy-icon-ACZmDH8e.js";import"./EmptyStateFooter-DqmBOP2I.js";import"./EmptyStateActions-DWNUFByn.js";import"./GroupPickerDialog-C09EjRTA.js";import"./PaginatingTableToolbar-Cjsz5Jh4.js";import"./DataListItemRow-BC0LurDd.js";import"./FlexItem-BzZfUnQ1.js";import"./KeySelect-jKxsKqdI.js";import"./useToggle-K3Kx99tM.js";import"./MultiLineInput-DiPNQ1LE.js";import"./AddRoleMappingModal-DW8o4W0z.js";import"./KeycloakDataTable-DbY4la1D.js";import"./Td-D2hVFK0Z.js";import"./grip-vertical-icon-BxF7V59o.js";import"./_baseFlatten-eIEJR-AJ.js";import"./filter-icon-DO0QNij3.js";import"./useParams-B67lSY02.js";function at(){const{adminClient:n}=v(),{t}=y(),{componentTypes:s}=P(),{realm:p}=w(),d=s?.[a],l=I(),{id:e,providerId:i}=E(),{addAlert:c,addError:u}=V(),m=d?.find(r=>r.id===i);if(!m)throw new Error(t("notFound"));const[f,g]=T({titleKey:"itemDeleteConfirmTitle",messageKey:"itemDeleteConfirm",continueButtonLabel:"delete",continueButtonVariant:h.danger,onConfirm:async()=>{try{await n.components.del({id:e}),c(t("itemDeletedSuccess")),l(A({realm:p,providerId:i}))}catch(r){u("itemSaveError",r)}}});return D(C,{children:[o(g,{}),o(x,{titleKey:e||t("createItem"),dropdownItems:e?[o(B,{"data-testid":"delete-item",onClick:()=>f(),children:t("delete")},"delete")]:void 0}),o(K,{providerType:a,id:e,page:m})]})}export{at as default};
//# sourceMappingURL=Page-CJt-cEyg.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy