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

theme.keycloak.v2.admin.resources.assets.RoutableTabs-T8JTILEW.js Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
import{jsxs as T,jsx as o}from"react/jsx-runtime";import{Children as v,isValidElement as K}from"react";import{bL as g,e as x,b as I,aH as P,d9 as R,da as E,aI as D,db as c}from"./main-C7ps2lmX.js";import{P as F}from"./PageHandler-P2CRgucq.js";import{TAB_PROVIDER as p}from"./PageList-s9OtSlkz.js";import{T as H,d as L,a as j}from"./Tabs-CMdqT4Cg.js";const O=({children:e,defaultLocation:t,...n})=>{const{pathname:s}=g(),i=x(),{componentTypes:l}=I(),d=l?.[p]||[],h=P(),r=d.filter(a=>R({path:a.metadata.path},s)).map(a=>({...a,pathname:E(a.metadata.path,{...i,...a.metadata.params})})),b=r.map(a=>a.pathname),m=v.toArray(e).filter(a=>K(a)).map(a=>a.props.eventKey.toString()),u=[...m,...b].find(a=>a===decodeURI(s)),f=m.filter(a=>s.includes(a)).sort((a,y)=>a.length-y.length).pop();return T(H,{activeKey:u??f??t?.pathname??s,component:L.nav,inset:{default:"insetNone",xl:"insetLg","2xl":"inset2xl"},...n,children:[e,h(D.DeclarativeUI)&&r.map(a=>o(A,{eventKey:a.pathname,title:a.id,children:o(F,{page:a,providerType:p})},a.id))]})},A=({children:e,...t})=>{const n=c(t.eventKey);return o(j,{href:n,...t,children:e})},_=e=>({eventKey:e.pathname??"",href:c(e)});export{O as R,_ as u};
//# sourceMappingURL=RoutableTabs-T8JTILEW.js.map




© 2015 - 2025 Weber Informatics LLC | Privacy Policy