"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8061,2426],{48061:function(y,s,n){n.r(s),n.d(s,{DependsOnComponentsCard:function(){return o}});var a=n(48023),t=n(2784),e=n(62426);function o(r){const{variant:c="gridItem",title:l="Depends on components"}=r;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:l,entityKind:"Component",relationType:a.nP,columns:e.componentEntityColumns,emptyMessage:"No component is a dependency of this component",emptyHelpLink:e.componentEntityHelpLink,asRenderableEntities:e.asComponentEntities})}},62426:function(y,s,n){n.r(s),n.d(s,{RelatedEntitiesCard:function(){return r},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return v},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return l},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return T},systemEntityHelpLink:function(){return b}});var a=n(90436),t=n(53479),e=n(2784),o=n(53492);function r(i){const{variant:m="gridItem",title:u,columns:g,entityKind:h,relationType:L,emptyMessage:R,emptyHelpLink:k,asRenderableEntities:H}=i,{entity:D}=(0,t.useEntity)(),{entities:S,loading:K,error:d}=(0,t.useRelatedEntities)(D,{type:L,kind:h});return K?e.createElement(o.InfoCard,{variant:m,title:u},e.createElement(o.Progress,null)):d?e.createElement(o.InfoCard,{variant:m,title:u},e.createElement(o.ResponseErrorPanel,{error:d})):e.createElement(t.EntityTable,{title:u,variant:m,emptyContent:e.createElement("div",{style:{textAlign:"center"}},e.createElement(a.Z,{variant:"body1"},R),e.createElement(a.Z,{variant:"body2"},e.createElement(o.Link,{to:k},"Learn how to change this."))),columns:g,entities:H(S||[])})}const c=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"component"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],l="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",E=i=>i,p=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"resource"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",C=i=>i,T=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"system"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],b="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",v=i=>i}}]);})();

//# sourceMappingURL=8061.a19d3b9a.chunk.js.map