@techdocs/cli 1.9.5-next.0 → 1.9.5-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @techdocs/cli
2
2
 
3
+ ## 1.9.5-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/config@1.3.3-next.0
9
+ - @backstage/catalog-model@1.7.5-next.0
10
+ - @backstage/backend-defaults@0.11.1-next.1
11
+ - @backstage/plugin-techdocs-node@1.13.5-next.1
12
+
3
13
  ## 1.9.5-next.0
4
14
 
5
15
  ### Patch Changes
@@ -1474,6 +1474,233 @@
1474
1474
  },
1475
1475
  "packageName": "@backstage/core-components"
1476
1476
  },
1477
+ {
1478
+ "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-app-api/config.d.ts",
1479
+ "value": {
1480
+ "type": "object",
1481
+ "properties": {
1482
+ "app": {
1483
+ "description": "Generic frontend configuration.",
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "baseUrl": {
1487
+ "description": "The public absolute root URL that the frontend.",
1488
+ "visibility": "frontend",
1489
+ "type": "string"
1490
+ },
1491
+ "title": {
1492
+ "description": "The title of the app, as shown in the Backstage web interface.",
1493
+ "visibility": "frontend",
1494
+ "type": "string"
1495
+ },
1496
+ "support": {
1497
+ "description": "Information about support of this Backstage instance and how to contact the integrator team.",
1498
+ "type": "object",
1499
+ "properties": {
1500
+ "url": {
1501
+ "description": "The primary support url.",
1502
+ "visibility": "frontend",
1503
+ "type": "string"
1504
+ },
1505
+ "items": {
1506
+ "description": "A list of categorized support item groupings.",
1507
+ "type": "array",
1508
+ "items": {
1509
+ "type": "object",
1510
+ "properties": {
1511
+ "title": {
1512
+ "description": "The title of the support item grouping.",
1513
+ "visibility": "frontend",
1514
+ "type": "string"
1515
+ },
1516
+ "icon": {
1517
+ "description": "An optional icon for the support item grouping.",
1518
+ "visibility": "frontend",
1519
+ "type": "string"
1520
+ },
1521
+ "links": {
1522
+ "description": "A list of support links for the Backstage instance inside this grouping.",
1523
+ "type": "array",
1524
+ "items": {
1525
+ "type": "object",
1526
+ "properties": {
1527
+ "url": {
1528
+ "visibility": "frontend",
1529
+ "type": "string"
1530
+ },
1531
+ "title": {
1532
+ "visibility": "frontend",
1533
+ "type": "string"
1534
+ }
1535
+ },
1536
+ "required": [
1537
+ "url"
1538
+ ]
1539
+ }
1540
+ }
1541
+ },
1542
+ "required": [
1543
+ "links",
1544
+ "title"
1545
+ ]
1546
+ }
1547
+ }
1548
+ },
1549
+ "required": [
1550
+ "items",
1551
+ "url"
1552
+ ]
1553
+ },
1554
+ "routes": {
1555
+ "type": "object",
1556
+ "properties": {
1557
+ "bindings": {
1558
+ "description": "Maps external route references to regular route references. Both the\nkey and the value is expected to be on the form `<pluginId>.<routeId>`.\nIf the value is `false`, the route will be disabled even if it has a\ndefault mapping.",
1559
+ "deepVisibility": "frontend",
1560
+ "type": "object",
1561
+ "additionalProperties": {
1562
+ "anyOf": [
1563
+ {
1564
+ "const": false,
1565
+ "type": "boolean"
1566
+ },
1567
+ {
1568
+ "type": "string"
1569
+ }
1570
+ ]
1571
+ }
1572
+ }
1573
+ }
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "baseUrl"
1578
+ ]
1579
+ },
1580
+ "backend": {
1581
+ "description": "Generic backend configuration.",
1582
+ "type": "object",
1583
+ "properties": {
1584
+ "baseUrl": {
1585
+ "description": "The public absolute root URL that the backend is reachable at, from the browser's perspective.",
1586
+ "visibility": "frontend",
1587
+ "type": "string"
1588
+ }
1589
+ },
1590
+ "required": [
1591
+ "baseUrl"
1592
+ ]
1593
+ },
1594
+ "organization": {
1595
+ "description": "Configuration that provides information about the organization that the app is for.",
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "name": {
1599
+ "description": "The name of the organization that the app belongs to.",
1600
+ "visibility": "frontend",
1601
+ "type": "string"
1602
+ }
1603
+ }
1604
+ },
1605
+ "homepage": {
1606
+ "description": "This config was used by the HomepageTimer but has been replaced by the HeaderWorldClock in the home plugin",
1607
+ "deprecated": "in favor of the HeaderWorldClock which is found in the home plugin",
1608
+ "type": "object",
1609
+ "properties": {
1610
+ "clocks": {
1611
+ "type": "array",
1612
+ "items": {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "label": {
1616
+ "visibility": "frontend",
1617
+ "type": "string"
1618
+ },
1619
+ "timezone": {
1620
+ "visibility": "frontend",
1621
+ "type": "string"
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "label",
1626
+ "timezone"
1627
+ ]
1628
+ }
1629
+ }
1630
+ }
1631
+ },
1632
+ "auth": {
1633
+ "description": "Configuration that provides information on available configured authentication providers.",
1634
+ "type": "object",
1635
+ "properties": {
1636
+ "environment": {
1637
+ "description": "The 'environment' attribute added as an optional parameter to have configurable environment value for `auth.providers`.\ndefault value: 'development'\noptional values: 'development' | 'production'",
1638
+ "visibility": "frontend",
1639
+ "type": "string"
1640
+ }
1641
+ }
1642
+ },
1643
+ "enableExperimentalRedirectFlow": {
1644
+ "description": "Enable redirect authentication flow type, instead of a popup for authentication.",
1645
+ "visibility": "frontend",
1646
+ "type": "boolean"
1647
+ },
1648
+ "discovery": {
1649
+ "description": "Discovery options.",
1650
+ "visibility": "frontend",
1651
+ "type": "object",
1652
+ "properties": {
1653
+ "endpoints": {
1654
+ "description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
1655
+ "visibility": "frontend",
1656
+ "type": "array",
1657
+ "items": {
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "target": {
1661
+ "description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys. (Internal is used for the backend, external for the frontend)\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
1662
+ "visibility": "frontend",
1663
+ "anyOf": [
1664
+ {
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "external": {
1668
+ "visibility": "frontend",
1669
+ "type": "string"
1670
+ }
1671
+ }
1672
+ },
1673
+ {
1674
+ "type": "string"
1675
+ }
1676
+ ]
1677
+ },
1678
+ "plugins": {
1679
+ "description": "Array of plugins which use the target baseUrl.",
1680
+ "visibility": "frontend",
1681
+ "type": "array",
1682
+ "items": {
1683
+ "type": "string"
1684
+ }
1685
+ }
1686
+ },
1687
+ "required": [
1688
+ "plugins",
1689
+ "target"
1690
+ ]
1691
+ }
1692
+ }
1693
+ }
1694
+ }
1695
+ },
1696
+ "required": [
1697
+ "app",
1698
+ "backend"
1699
+ ],
1700
+ "$schema": "http://json-schema.org/draft-07/schema#"
1701
+ },
1702
+ "packageName": "@backstage/core-app-api"
1703
+ },
1477
1704
  {
1478
1705
  "path": "../../node_modules/@backstage-community/plugin-stackstorm/node_modules/@backstage/core-components/config.d.ts",
1479
1706
  "value": {
@@ -3568,6 +3795,31 @@
3568
3795
  },
3569
3796
  "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3570
3797
  },
3798
+ {
3799
+ "path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/plugin-permission-common/config.d.ts",
3800
+ "value": {
3801
+ "type": "object",
3802
+ "properties": {
3803
+ "permission": {
3804
+ "description": "Configuration options for Backstage permissions and authorization",
3805
+ "type": "object",
3806
+ "properties": {
3807
+ "enabled": {
3808
+ "description": "Whether authorization is enabled in Backstage. Defaults to false, which means authorization\nrequests will be automatically allowed without invoking the authorization policy.",
3809
+ "visibility": "frontend",
3810
+ "type": "boolean"
3811
+ },
3812
+ "EXPERIMENTAL_enableBatchedRequests": {
3813
+ "visibility": "frontend",
3814
+ "type": "boolean"
3815
+ }
3816
+ }
3817
+ }
3818
+ },
3819
+ "$schema": "http://json-schema.org/draft-07/schema#"
3820
+ },
3821
+ "packageName": "@backstage/plugin-permission-common"
3822
+ },
3571
3823
  {
3572
3824
  "path": "../integration-aws-node/config.d.ts",
3573
3825
  "value": {
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.7f2e77d9.js"></script><script defer="defer" src="/static/module-material-ui.557c1930.js"></script><script defer="defer" src="/static/module-lodash.05581125.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.00de7997.js"></script><script defer="defer" src="/static/module-zod.07fc8729.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.7f2e77d9.js"></script><script defer="defer" src="/static/main.7f2e77d9.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.0bd1e206.js"></script><script defer="defer" src="/static/module-material-ui.557c1930.js"></script><script defer="defer" src="/static/module-lodash.05581125.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.00de7997.js"></script><script defer="defer" src="/static/module-zod.07fc8729.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.0bd1e206.js"></script><script defer="defer" src="/static/main.0bd1e206.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -42,7 +42,7 @@
42
42
  color="#5bbad5"
43
43
  />
44
44
  <title><%= config.getString('app.title') %></title>
45
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.7f2e77d9.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.557c1930.js"></script><script defer src="<%= publicPath %>/static/module-lodash.05581125.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.00de7997.js"></script><script defer src="<%= publicPath %>/static/module-zod.07fc8729.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.7f2e77d9.js"></script><script defer src="<%= publicPath %>/static/main.7f2e77d9.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.0bd1e206.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.557c1930.js"></script><script defer src="<%= publicPath %>/static/module-lodash.05581125.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.00de7997.js"></script><script defer src="<%= publicPath %>/static/module-zod.07fc8729.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.e9f14677.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ae6d33c5.js"></script><script defer src="<%= publicPath %>/static/vendor.0bd1e206.js"></script><script defer src="<%= publicPath %>/static/main.0bd1e206.js"></script></head>
46
46
  <body>
47
47
  <noscript>You need to enable JavaScript to run this app.</noscript>
48
48
  <div id="root"></div>
@@ -1,4 +1,4 @@
1
1
  "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5724],{35773:(N,y,e)=>{e.d(y,{C4:()=>m,tS:()=>x});var t=e(14117);const u="catalog-entity",h=(0,t.i)({name:"catalog.entity.read",attributes:{action:"read"},resourceType:u}),m=(0,t.i)({name:"catalog.entity.create",attributes:{action:"create"}}),S=(0,t.i)({name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:u}),x=(0,t.i)({name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:u}),A=(0,t.i)({name:"catalog.entity.validate",attributes:{}}),C=(0,t.i)({name:"catalog.location.read",attributes:{action:"read"}}),T=(0,t.i)({name:"catalog.location.create",attributes:{action:"create"}}),j=(0,t.i)({name:"catalog.location.analyze",attributes:{}}),l=(0,t.i)({name:"catalog.location.delete",attributes:{action:"delete"}}),f=[h,m,S,x,A,C,T,l,j]},99538:(N,y,e)=>{e.d(y,{T7:()=>A,TY:()=>j,tN:()=>T});var t=e(31085),u=e(6820),h=e(25862),m=e(43836),S=e(10602);const x=(0,m.tK)("entity-context"),A=l=>{const{children:f,entity:P,loading:R,error:b,refresh:g}=l,v={entity:P,loading:R,error:b,refresh:g};return(0,t.jsx)(x.Provider,{value:(0,S.B)({1:v}),children:(0,t.jsx)(h.Ig,{attributes:{...P?{entityRef:(0,u.U2)(P)}:void 0},children:f})})},C=l=>_jsx(A,{entity:l.entity,loading:!l.entity,error:void 0,refresh:void 0,children:l.children});function T(){const l=(0,m.qO)("entity-context");if(!l)throw new Error("Entity context is not available");const f=l.atVersion(1);if(!f)throw new Error("EntityContext v1 not available");if(!f.entity)throw new Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:f.entity}}function j(){const l=(0,m.qO)("entity-context");if(!l)throw new Error("Entity context is not available");const f=l.atVersion(1);if(!f)throw new Error("EntityContext v1 not available");const{entity:P,loading:R,error:b,refresh:g}=f;return{entity:P,loading:R,error:b,refresh:g}}},90759:(N,y,e)=>{e.d(y,{W:()=>u});var t=e(93184);const u=(0,t.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
2
2
  Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this"},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoom to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},65724:(N,y,e)=>{e.r(y),e.d(y,{AboutCard:()=>rt,AboutContent:()=>pe,AboutField:()=>E});var t=e(31085),u=e(14041),h=e(58837),m=e(40703),S=e(48653),x=e(45685),A=e(37197),C=e(29365),T=e(74011),j=e(75625),l=e(82451),f=e(25534),P=e(53373),R=e.n(P),b=e(86613),g=e(72072),v=e(10394),c=e(72501);const O=(0,h.A)(i=>({link:{display:"grid",justifyItems:"center",gridGap:4,textAlign:"center"},disabled:{color:i.palette.text.secondary,cursor:"default"},primary:{color:i.palette.primary.main},secondary:{color:i.palette.secondary.main},label:{textTransform:"uppercase",fontWeight:i.typography.fontWeightBold,letterSpacing:1.2}}),{name:"BackstageIconLinkVertical"});function K({color:i="primary",disabled:n=!1,href:s="#",icon:a=(0,t.jsx)(b.A,{}),label:o,onClick:r,title:d}){const p=O();return n?(0,t.jsxs)(v.A,{title:d,className:R()(p.link,p.disabled),children:[a,(0,t.jsx)(c.A,{variant:"caption",component:"span",className:p.label,children:o})]}):(0,t.jsxs)(g.N_,{title:d,className:R()(p.link,p[i]),to:s,onClick:r,children:[a,(0,t.jsx)(c.A,{variant:"caption",component:"span",className:p.label,children:o})]})}const J=(0,h.A)(i=>({links:{margin:i.spacing(2,0),display:"grid",gridAutoFlow:"column",gridAutoColumns:"min-content",gridGap:i.spacing(3)}}),{name:"BackstageHeaderIconLinkRow"});function X(i){const{links:n}=i,s=J();return(0,t.jsx)("nav",{className:s.links,children:n.map((a,o)=>(0,t.jsx)(K,{...a},o+1))})}var me=e(31129),F=e(72427),Q=e(9222),ee=e(82266),ue=e(36017),he=e(39837),W=e(87849),fe=e(96726),ye=e(13660);const ge=i=>{const{type:n}=i,s=(0,ee.n)(),a=ye.A,o=n?s.getSystemIcon(n)??a:a;return(0,t.jsx)(o,{})};var te=e(72348),ne=e(17736),Z=e(6820),D=e(99538),ie=e(78692);function be(i,n){const s=i.metadata.annotations?.[ne.I4];if(s)try{const a=(0,ie.aY)(s),o=n.byUrl(a.target);return{locationTargetUrl:a.target,integrationType:o?.type}}catch{return}}var ae=e(7341),se=e(39292);function ve(i){const{entity:n,loading:s,error:a}=(0,D.TY)(),{allowed:o,loading:r,error:d}=(0,se.J)({permission:i,resourceRef:n?(0,Z.U2)(n):void 0});return s||r?{loading:!0,allowed:!1}:a?{loading:!1,allowed:!1,error:a}:{loading:!1,allowed:o,error:d}}var xe=e(35773),oe=e(86202),Ae=e(65614),Ce=e(11601),Te=e.n(Ce);const je=JSON.parse(`{"$schema":"http://json-schema.org/draft-07/schema","$id":"Entity","description":"The parts of the format that's common to all versions/kinds of entity.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService","description":"Creates Lorems like a pro.","labels":{"product_name":"Random value Generator"},"annotations":{"docs":"https://github.com/..../tree/develop/doc"}},"spec":{"type":"service","lifecycle":"production","owner":"tools"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":false,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"$ref":"EntityMeta"},"spec":{"type":"object","description":"The specification data describing the entity itself."},"relations":{"type":"array","description":"The relations that this entity has with other entities.","items":{"$ref":"common#relation"}},"status":{"$ref":"common#status"}}}`),Ee=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityEnvelope","description":"The envelope skeleton parts of an entity - whatever is necessary to be able to give it a ref and pass to further validation / policy checking.","examples":[{"apiVersion":"backstage.io/v1alpha1","kind":"Component","metadata":{"name":"LoremService"}}],"type":"object","required":["apiVersion","kind","metadata"],"additionalProperties":true,"properties":{"apiVersion":{"type":"string","description":"The version of specification format for this particular entity that this is written against.","minLength":1,"examples":["backstage.io/v1alpha1","my-company.net/v1","1.0"]},"kind":{"type":"string","description":"The high level entity type being described.","minLength":1,"examples":["API","Component","Domain","Group","Location","Resource","System","Template","User"]},"metadata":{"type":"object","required":["name"],"additionalProperties":true,"properties":{"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1}}}}}'),Le=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"EntityMeta","description":"Metadata fields common to all versions/kinds of entity.","examples":[{"uid":"e01199ab-08cc-44c2-8e19-5c29ded82521","etag":"lsndfkjsndfkjnsdfkjnsd==","name":"my-component-yay","namespace":"the-namespace","labels":{"backstage.io/custom":"ValueStuff"},"annotations":{"example.com/bindings":"are-secret"},"tags":["java","data"]}],"type":"object","required":["name"],"additionalProperties":true,"properties":{"uid":{"type":"string","description":"A globally unique ID for the entity. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, but the server is free to reject requests that do so in such a way that it breaks semantics.","examples":["e01199ab-08cc-44c2-8e19-5c29ded82521"],"minLength":1},"etag":{"type":"string","description":"An opaque string that changes for each update operation to any part of the entity, including metadata. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations. The field can (optionally) be specified when performing update or delete operations, and the server will then reject the operation if it does not match the current stored value.","examples":["lsndfkjsndfkjnsdfkjnsd=="],"minLength":1},"name":{"type":"string","description":"The name of the entity. Must be unique within the catalog at any given point in time, for any given namespace + kind pair.","examples":["metadata-proxy"],"minLength":1},"namespace":{"type":"string","description":"The namespace that the entity belongs to.","default":"default","examples":["default","admin"],"minLength":1},"title":{"type":"string","description":"A display name of the entity, to be presented in user interfaces instead of the name property, when available.","examples":["React SSR Template"],"minLength":1},"description":{"type":"string","description":"A short (typically relatively few words, on one line) description of the entity."},"labels":{"type":"object","description":"Key/value pairs of identifying information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"annotations":{"type":"object","description":"Key/value pairs of non-identifying auxiliary information attached to the entity.","additionalProperties":true,"patternProperties":{"^.+$":{"type":"string"}}},"tags":{"type":"array","description":"A list of single-valued strings, to for example classify catalog entities in various ways.","items":{"type":"string","minLength":1}},"links":{"type":"array","description":"A list of external hyperlinks related to the entity. Links can provide additional contextual information that may be located outside of Backstage itself. For example, an admin dashboard or external CMS page.","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://admin.example-org.com"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["Admin Dashboard"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"type":{"type":"string","description":"An optional value to categorize links into specific groups.","examples":["runbook","documentation","logs","dashboard"],"minLength":1}}}}}}'),ke=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"common","type":"object","description":"Common definitions to import from other schemas","definitions":{"reference":{"$id":"#reference","type":"object","description":"A reference by name to another entity.","required":["kind","namespace","name"],"additionalProperties":false,"properties":{"kind":{"type":"string","description":"The kind field of the entity.","minLength":1},"namespace":{"type":"string","description":"The metadata.namespace field of the entity.","minLength":1},"name":{"type":"string","description":"The metadata.name field of the entity.","minLength":1}}},"relation":{"$id":"#relation","type":"object","description":"A directed relation from one entity to another.","required":["type","targetRef"],"additionalProperties":false,"properties":{"type":{"type":"string","minLength":1,"pattern":"^\\\\w+$","description":"The type of relation."},"target":{"$ref":"#reference","deprecated":true},"targetRef":{"type":"string","minLength":1,"description":"The entity ref of the target of this relation."}}},"status":{"$id":"#status","type":"object","description":"The current status of the entity, as claimed by various sources.","required":[],"additionalProperties":true,"properties":{"items":{"type":"array","items":{"$ref":"#statusItem"}}}},"statusItem":{"$id":"#statusItem","type":"object","description":"A specific status item on a well known format.","required":["type","level","message"],"additionalProperties":true,"properties":{"type":{"type":"string","minLength":1},"level":{"$ref":"#statusLevel","description":"The status level / severity of the status item."},"message":{"type":"string","description":"A brief message describing the status, intended for human consumption."},"error":{"$ref":"#error","description":"An optional serialized error object related to the status."}}},"statusLevel":{"$id":"#statusLevel","type":"string","description":"A status level / severity.","enum":["info","warning","error"]},"error":{"$id":"#error","type":"object","description":"A serialized error object.","required":["name","message"],"additionalProperties":true,"properties":{"name":{"type":"string","examples":["Error","InputError"],"description":"The type name of the error","minLength":1},"message":{"type":"string","description":"The message of the error"},"code":{"type":"string","description":"An error code associated with the error"},"stack":{"type":"string","description":"An error stack trace"}}}}}'),re=new Map,Se=[Ee,je,Le,ke];function Pe(i){if(!i?.length)throw new TypeError("Unknown error");const n=i[0];throw new TypeError(`${n.instancePath||"<root>"} ${n.message}${n.params?` - ${Object.entries(n.params).map(([s,a])=>`${s}: ${a}`).join(", ")}`:""}`)}function Re(i,n={}){const s=n?.disableCache??!1,a=s?"":JSON.stringify(i);if(!s){const p=re.get(a);if(p)return p}const o=we(i),r=new(Te())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});o.length&&r.addSchema(o,void 0,void 0,!0);const d=r.compile(i);return s||re.set(a,d),d}function we(i){if(typeof i!="object")return[];const n=new Set;i.$id&&n.add(i.$id);const s=new Array,a=[i];for(;a.length;){const o=a.pop();for(const r of Oe(o))if(!n.has(r)){n.add(r);const d=Se.find(p=>p.$id===r);d&&(s.push(d),a.push(d))}}return s}function*Oe(i){const n=[i];for(;n.length;){const s=n.pop();if(typeof s=="object"&&s)for(const[a,o]of Object.entries(s))a==="$ref"&&typeof o=="string"?yield o.split("#")[0]:n.push(o)}}function Ie(i){const n=Re(i);return s=>{if(n(s)===!0)return s;const o=n.errors?.filter(r=>["/kind","/apiVersion"].includes(r.instancePath));if(o?.length&&o.every(r=>r.keyword==="enum"))return!1;throw Pe(n.errors)}}const Me=Ie(JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","$id":"TemplateV1beta3","description":"A Template describes a scaffolding task for use with the Scaffolder. It describes the required parameters as well as a series of steps that will be taken to execute the scaffolding task.","examples":[{"apiVersion":"scaffolder.backstage.io/v1beta3","kind":"Template","metadata":{"name":"react-ssr-template","title":"React SSR Template","description":"Next.js application skeleton for creating isomorphic web applications.","tags":["recommended","react"]},"spec":{"owner":"artist-relations-team","type":"website","lifecycle":"production","parameters":{"required":["name","description","repoUrl"],"backstage:permissions":{"tags":["one","two"]},"properties":{"name":{"title":"Name","type":"string","description":"Unique name of the component"},"description":{"title":"Description","type":"string","description":"Description of the component"},"repoUrl":{"title":"Pick a repository","type":"string","ui:field":"RepoUrlPicker"}}},"steps":[{"id":"fetch","name":"Fetch","action":"fetch:plain","parameters":{"url":"./template"},"backstage:permissions":{"tags":["one","two"]}},{"id":"publish","name":"Publish to GitHub","action":"publish:github","parameters":{"repoUrl":"${{ parameters.repoUrl }}"},"if":"${{ parameters.repoUrl }}"}],"output":{"catalogInfoUrl":"${{ steps.publish.output.catalogInfoUrl }}"}}}],"allOf":[{"$ref":"Entity"},{"type":"object","required":["spec"],"properties":{"apiVersion":{"enum":["scaffolder.backstage.io/v1beta3"]},"kind":{"enum":["Template"]},"spec":{"type":"object","required":["type","steps"],"properties":{"type":{"type":"string","description":"The type of component created by the template. The software catalog accepts any type value, but an organization should take great care to establish a proper taxonomy for these. Tools including Backstage itself may read this field and behave differently depending on its value. For example, a website type component may present tooling in the Backstage interface that is specific to just websites.","examples":["service","website","library"],"minLength":1},"owner":{"type":"string","description":"The user (or group) owner of the template","minLength":1},"lifecycle":{"type":"string","description":"The lifecycle state of the template.","examples":["experimental","production","deprecated"],"minLength":1},"parameters":{"oneOf":[{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}},{"type":"array","description":"A list of separate forms to collect parameters.","items":{"type":"object","description":"The JSONSchema describing the inputs for the template.","properties":{"backstage:permissions":{"type":"object","description":"Object used for authorizing the parameter","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}}]},"presentation":{"type":"object","description":"A way to redefine the presentation of the scaffolder.","properties":{"buttonLabels":{"type":"object","description":"A way to redefine the labels for actionable buttons.","properties":{"backButtonText":{"type":"string","description":"A button which return the user to one step back."},"createButtonText":{"type":"string","description":"A button which start the execution of the template."},"reviewButtonText":{"type":"string","description":"A button which open the review step to verify the input prior to start the execution."}}}}},"EXPERIMENTAL_recovery":{"type":"object","description":"A task recovery section.","properties":{"EXPERIMENTAL_strategy":{"type":"string","description":"Recovery strategy for your task (none or startOver). By default none"}}},"EXPERIMENTAL_formDecorators":{"type":"array","description":"A list of decorators and their inputs that the form should trigger before submitting the job","items":{"type":"object","properties":{"id":{"type":"string","description":"The form hook ID"},"input":{"type":"object","description":"A object describing the inputs to the form hook."}}}},"steps":{"type":"array","description":"A list of steps to execute.","items":{"type":"object","description":"A description of the step to execute.","required":["action"],"properties":{"id":{"type":"string","description":"The ID of the step, which can be used to refer to its outputs."},"name":{"type":"string","description":"The name of the step, which will be displayed in the UI during the scaffolding process."},"action":{"type":"string","description":"The name of the action to execute."},"input":{"type":"object","description":"A templated object describing the inputs to the action."},"if":{"type":["string","boolean"],"description":"A templated condition that skips the step when evaluated to false. If the condition is true or not defined, the step is executed. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."},"backstage:permissions":{"type":"object","description":"Object used for authorizing the step","properties":{"tags":{"type":"array","items":{"type":"string"}}}}}}},"output":{"type":"object","description":"A templated object describing the outputs of the scaffolding task.","properties":{"links":{"type":"array","description":"A list of external hyperlinks, typically pointing to resources created or updated by the template","items":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"A url in a standard uri format.","examples":["https://github.com/my-org/my-new-repo"],"minLength":1},"entityRef":{"type":"string","description":"An entity reference to an entity in the catalog.","examples":["Component:default/my-app"],"minLength":1},"title":{"type":"string","description":"A user friendly display name for the link.","examples":["View new repo"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1}}}},"text":{"type":"array","description":"A list of Markdown text blobs, like output data from the template.","items":{"type":"object","required":[],"properties":{"title":{"type":"string","description":"A user friendly display name for the text.","examples":["Output Content"],"minLength":1},"icon":{"type":"string","description":"A key representing a visual icon to be displayed in the UI.","examples":["dashboard"],"minLength":1},"content":{"type":"string","description":"The text blob to display in the UI, rendered as Markdown.","examples":["**hey** _I\'m_ Markdown"]}}}}},"additionalProperties":{"type":"string"}}}}}}]}')),pt={async check(i){return Me(i)===i}},Ne=i=>i.apiVersion==="scaffolder.backstage.io/v1beta3"&&i.kind==="Template";var I=e(14117);const le="scaffolder-template",De=(0,I.i)({name:"scaffolder.action.execute",attributes:{},resourceType:"scaffolder-action"}),Ue=(0,I.i)({name:"scaffolder.template.parameter.read",attributes:{action:"read"},resourceType:le}),Be=(0,I.i)({name:"scaffolder.template.step.read",attributes:{action:"read"},resourceType:le}),$e=(0,I.i)({name:"scaffolder.task.read",attributes:{action:"read"}}),ce=(0,I.i)({name:"scaffolder.task.create",attributes:{action:"create"}}),Fe=(0,I.i)({name:"scaffolder.task.cancel",attributes:{}}),We=(0,I.i)({name:"scaffolder.template.management",attributes:{}}),ze=[Ue,Be],Ve=[De],Ke=[Fe,ce,$e],ut=[...ze,...Ve,...Ke,We];var q=e(95203),z=e(90759),He=e(91638);const Ge="backstage.io/source-template",Ye=i=>{const n=(0,F.gf)(ae.v),{value:s}=(0,He.A)(async()=>{const a=i.metadata.annotations?.[Ge];let o;if(a)try{const r=await n.getEntityByRef(a);return o=(0,Z.KU)(a),r!==void 0?o:void 0}catch{return}},[n,i]);return s};var H=e(51372),G=e(67871),Y=e(34428),Je=e(67720),de=e(42899),Xe=e(4650),Qe=e(82442);const Ze=(0,h.A)(i=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:i.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap"}}));function E(i){const{label:n,value:s,gridSizes:a,children:o,className:r}=i,d=Ze(),p=(0,Qe.O)(o,w=>w.getElements()),U=p.length>0?p:(0,t.jsx)(c.A,{variant:"body2",className:d.value,children:s||"unknown"});return(0,t.jsxs)(de.A,{item:!0,...a,className:r,children:[(0,t.jsx)(c.A,{variant:"h2",className:d.label,children:n}),U]})}var qe=e(18750);const _e=(0,h.A)({description:{wordBreak:"break-word"}});function et(i,n,s){if(n==="url"||i.includes("://"))return i;const a=s.type==="file"?`file://${s.target}`:s.target;return n==="file"||s.type==="file"?new URL(i,a).href:a}function pe(i){const{entity:n}=i,s=_e(),{t:a}=(0,W.i)(z.W),o=n.kind.toLocaleLowerCase("en-US")==="system",r=n.kind.toLocaleLowerCase("en-US")==="resource",d=n.kind.toLocaleLowerCase("en-US")==="component",p=n.kind.toLocaleLowerCase("en-US")==="api",U=n.kind.toLocaleLowerCase("en-US")==="template",w=n.kind.toLocaleLowerCase("en-US")==="location",_=n.kind.toLocaleLowerCase("en-US")==="group",L=(0,G.t)(n,H.jn,{kind:"system"}),V=(0,G.t)(n,H.jn,{kind:"component"}),M=(0,G.t)(n,H.jn,{kind:"domain"}),B=(0,G.t)(n,H.vv);let $;try{$=(0,ie.Cr)(n)}catch{$=void 0}return(0,t.jsxs)(de.A,{container:!0,children:[(0,t.jsx)(E,{label:a("aboutCard.descriptionField.label"),gridSizes:{xs:12},children:(0,t.jsx)(Xe.h,{className:s.description,content:n?.metadata?.description||a("aboutCard.descriptionField.value")})}),(0,t.jsx)(E,{label:a("aboutCard.ownerField.label"),value:a("aboutCard.ownerField.value"),className:s.description,gridSizes:{xs:12,sm:6,lg:4},children:B.length>0&&(0,t.jsx)(Y.i,{entityRefs:B,defaultKind:"group"})}),(o||M.length>0)&&(0,t.jsx)(E,{label:a("aboutCard.domainField.label"),value:a("aboutCard.domainField.value"),gridSizes:{xs:12,sm:6,lg:4},children:M.length>0&&(0,t.jsx)(Y.i,{entityRefs:M,defaultKind:"domain"})}),(p||d||r||L.length>0)&&(0,t.jsx)(E,{label:a("aboutCard.systemField.label"),value:a("aboutCard.systemField.value"),gridSizes:{xs:12,sm:6,lg:4},children:L.length>0&&(0,t.jsx)(Y.i,{entityRefs:L,defaultKind:"system"})}),d&&V.length>0&&(0,t.jsx)(E,{label:a("aboutCard.parentComponentField.label"),value:a("aboutCard.parentComponentField.value"),gridSizes:{xs:12,sm:6,lg:4},children:(0,t.jsx)(Y.i,{entityRefs:V,defaultKind:"component"})}),(p||d||r||U||_||w||typeof n?.spec?.type=="string")&&(0,t.jsx)(E,{label:a("aboutCard.typeField.label"),value:n?.spec?.type,gridSizes:{xs:12,sm:6,lg:4}}),(p||d||typeof n?.spec?.lifecycle=="string")&&(0,t.jsx)(E,{label:a("aboutCard.lifecycleField.label"),value:n?.spec?.lifecycle,gridSizes:{xs:12,sm:6,lg:4}}),(0,t.jsx)(E,{label:a("aboutCard.tagsField.label"),value:a("aboutCard.tagsField.value"),gridSizes:{xs:12,sm:6,lg:4},children:(n?.metadata?.tags||[]).map(k=>(0,t.jsx)(Je.A,{size:"small",label:k},k))}),w&&(n?.spec?.targets||n?.spec?.target)&&(0,t.jsx)(E,{label:a("aboutCard.targetsField.label"),gridSizes:{xs:12},children:(0,t.jsx)(qe.m,{cols:1,items:(n.spec.targets||[n.spec.target]).map(k=>k).map(k=>({text:k,href:et(k,n?.spec?.type||"unknown",$)}))})})]})}function tt(){const{entity:i}=(0,D.tN)(),n=(0,F.gf)(fe.Y),{t:s}=(0,W.i)(z.W),a=be(i,n);return{label:s("aboutCard.viewSource"),disabled:!a,icon:(0,t.jsx)(ge,{type:a?.integrationType}),href:a?.locationTargetUrl}}function nt(){const{entity:i}=(0,D.tN)(),n=(0,Q.S)(q.UJ),{t:s}=(0,W.i)(z.W);return{label:s("aboutCard.viewTechdocs"),disabled:!(i.metadata.annotations?.[oe.As]||i.metadata.annotations?.[oe.GO])||!n,icon:(0,t.jsx)(l.A,{}),href:(0,Ae.b1)(i,n)}}function it(){const i=(0,ee.n)(),{entity:n}=(0,D.tN)(),s=(0,Q.S)(q.Zg),{t:a}=(0,W.i)(z.W),o=i.getSystemIcon("scaffolder")??f.A,{allowed:r}=(0,se.J)({permission:ce});return{label:a("aboutCard.launchTemplate"),icon:(0,t.jsx)(o,{}),disabled:!s||!r,href:s&&s({templateName:n.metadata.name,namespace:n.metadata.namespace||te.oQ})}}function at(){const{entity:i}=(0,D.tN)(),n=tt(),s=nt(),a=it(),o=[n,s];return Ne(i)&&o.push(a),(0,t.jsx)(X,{links:o})}const st=(0,h.A)({gridItemCard:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px"},fullHeightCard:{display:"flex",flexDirection:"column",height:"100%"},gridItemCardContent:{flex:1},fullHeightCardContent:{flex:1}});function ot(i){const{variant:n,subheader:s}=i,a=st(),{entity:o}=(0,D.tN)(),r=(0,F.gf)(ae.v),d=(0,F.gf)(ue.k),p=(0,F.gf)(he.m),U=(0,Q.S)(q.Zg),w=Ye(o),{allowed:_}=ve(xe.tS),{t:L}=(0,W.i)(z.W),V=o.metadata.annotations?.[te.P];let M="";n==="gridItem"?M=a.gridItemCard:n==="fullHeight"&&(M=a.fullHeightCard);let B="";n==="gridItem"?B=a.gridItemCardContent:n==="fullHeight"&&(B=a.fullHeightCardContent);const $=o.metadata.annotations?.[ne.Eo],k=$?.startsWith("url:")||$?.startsWith("file:"),lt=(0,u.useCallback)(async()=>{try{await r.refreshEntity((0,Z.U2)(o)),d.post({message:L("aboutCard.refreshScheduledMessage"),severity:"info",display:"transient"})}catch(ct){p.post(ct)}},[r,o,d,L,p]);return(0,t.jsxs)(m.A,{className:M,children:[(0,t.jsx)(x.A,{title:L("aboutCard.title"),action:(0,t.jsxs)(t.Fragment,{children:[k&&_&&(0,t.jsx)(C.A,{"aria-label":"Refresh",title:L("aboutCard.refreshButtonTitle"),onClick:lt,children:(0,t.jsx)(T.A,{})}),(0,t.jsx)(C.A,{component:g.N_,"aria-label":"Edit",disabled:!V,title:L("aboutCard.editButtonTitle"),to:V??"#",children:(0,t.jsx)(j.A,{})}),w&&U&&(0,t.jsx)(C.A,{component:g.N_,title:L("aboutCard.createSimilarButtonTitle"),to:U({namespace:w.namespace,templateName:w.name}),children:(0,t.jsx)(me.z9,{id:"scaffolder"})})]}),subheader:s??(0,t.jsx)(at,{})}),(0,t.jsx)(A.A,{}),(0,t.jsx)(S.A,{className:B,children:(0,t.jsx)(pe,{entity:o})})]})}function rt(i){return(0,t.jsx)(ot,{...i})}},18750:(N,y,e)=>{e.d(y,{m:()=>R});var t=e(31085),u=e(24709),h=e(44913),m=e(10394),S=e(72501),x=e(58837),A=e(23127),C=e(72072);const T=(0,x.A)({svgIcon:{display:"inline-block","& svg":{display:"inline-block",fontSize:"inherit",verticalAlign:"baseline"}}});function j(b){const{href:g,text:v,Icon:c}=b,O=T();return(0,t.jsxs)(m.A,{display:"flex",children:[(0,t.jsx)(m.A,{mr:1,className:O.svgIcon,children:(0,t.jsx)(S.A,{component:"div",children:c?(0,t.jsx)(c,{}):(0,t.jsx)(A.A,{})})}),(0,t.jsx)(m.A,{flexGrow:"1",children:(0,t.jsx)(C.N_,{to:g,target:"_blank",rel:"noopener",children:v||g})})]})}var l=e(5893);const f={xs:1,sm:1,md:1,lg:2,xl:3};function P(b){const g=[(0,l.A)(c=>c.breakpoints.up("xl"))?"xl":null,(0,l.A)(c=>c.breakpoints.up("lg"))?"lg":null,(0,l.A)(c=>c.breakpoints.up("md"))?"md":null,(0,l.A)(c=>c.breakpoints.up("sm"))?"sm":null,(0,l.A)(c=>c.breakpoints.up("xs"))?"xs":null];let v=1;if(typeof b=="number")v=b;else{const c=g.find(O=>O!==null)??"xs";v=b?.[c]??f[c]}return v}function R(b){const{items:g,cols:v=void 0}=b,c=P(v);return(0,t.jsx)(u.A,{rowHeight:"auto",cols:c,children:g.map(({text:O,href:K,Icon:J},X)=>(0,t.jsx)(h.A,{children:(0,t.jsx)(j,{href:K,text:O??K,Icon:J})},X))})}},14117:(N,y,e)=>{e.d(y,{i:()=>t});function t({name:u,attributes:h,resourceType:m}){return m?{type:"resource",name:u,attributes:h,resourceType:m}:{type:"basic",name:u,attributes:h}}},39292:(N,y,e)=>{e.d(y,{J:()=>x});var t=e(72427),u=e(96824),h=e(13646),m=e(54241),S=e(68721);function x(A){const C=(0,t.gf)(u.x),{data:T,error:j}=(0,S.Ay)(A,async l=>{if((0,h.OL)(l.permission)&&!l.resourceRef)return m.b.DENY;const{result:f}=await C.authorize(l);return f});return j?{error:j,loading:!1,allowed:!1}:T===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:T===m.b.ALLOW}}}}]);})();
3
3
 
4
- //# sourceMappingURL=5724.5992f8d0.chunk.js.map
4
+ //# sourceMappingURL=5724.71e20e3a.chunk.js.map