theme.keycloak.v2.admin.resources.assets.Page-BuC_EKGl.js Maven / Gradle / Ivy
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"./index-C1LIsRX7.js";import{u as T}from"./ConfirmDialog-B5qjiAuo.js";import{V as x}from"./ViewHeader-qjLr6U82.js";import{P as K}from"./PageHandler-CFMh3rCu.js";import{PAGE_PROVIDER as a}from"./PageList-D9zZFEpa.js";import"react";import"react-dom";import"./DynamicComponents-CIZcko9u.js";import"./ClientSelect-BTkwOwGP.js";import"./FileUpload-T43Q4AfB.js";import"./CodeEditor-CIeIZGz7.js";import"./copy-icon-DOS8MmN7.js";import"./EmptyStateFooter-Cm2IMTi1.js";import"./EmptyStateActions-DBSnfkAA.js";import"./GroupPickerDialog-DmX3SBxL.js";import"./PaginatingTableToolbar-CpMLQtqt.js";import"./DataListItemRow-COCiEHyF.js";import"./FlexItem-DCAd8FXq.js";import"./KeySelect-B2uWUd6C.js";import"./useToggle-K3Kx99tM.js";import"./MultiLineInput-AcwuO_FT.js";import"./AddRoleMappingModal-Ds4yp8lg.js";import"./KeycloakDataTable-jyvvxdb8.js";import"./Td-BwjBKSkH.js";import"./grip-vertical-icon-Bnn0MebT.js";import"./_baseFlatten-BHAcGTxk.js";import"./filter-icon-BVyMUArZ.js";import"./useParams-n_2fXkN1.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-BuC_EKGl.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy