@techdocs/cli 1.11.5-next.2 → 1.12.0

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/commands/generate/generate.cjs.js +32 -2
  3. package/dist/commands/generate/generate.cjs.js.map +1 -1
  4. package/dist/commands/index.cjs.js +9 -1
  5. package/dist/commands/index.cjs.js.map +1 -1
  6. package/dist/commands/publish/publish.cjs.js +47 -0
  7. package/dist/commands/publish/publish.cjs.js.map +1 -1
  8. package/dist/embedded-app/.config-schema.json +97 -92
  9. package/dist/embedded-app/index.html +1 -1
  10. package/dist/embedded-app/index.html.tmpl +1 -1
  11. package/dist/embedded-app/static/123.91ba1b809deb.chunk.js +2 -0
  12. package/dist/embedded-app/static/123.91ba1b809deb.chunk.js.map +1 -0
  13. package/dist/embedded-app/static/1659.a99e4eb674e0.chunk.js +2 -0
  14. package/dist/embedded-app/static/1659.a99e4eb674e0.chunk.js.map +1 -0
  15. package/dist/embedded-app/static/1749.99ba95728e00.chunk.js +2 -0
  16. package/dist/embedded-app/static/1749.99ba95728e00.chunk.js.map +1 -0
  17. package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js +2 -0
  18. package/dist/embedded-app/static/1994.7736057c2e9f.chunk.js.map +1 -0
  19. package/dist/embedded-app/static/{2295.0f797d8c2780.chunk.js → 2295.aaedbca4c1c5.chunk.js} +3 -3
  20. package/dist/embedded-app/static/2295.aaedbca4c1c5.chunk.js.map +1 -0
  21. package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js +2 -0
  22. package/dist/embedded-app/static/2360.806f2e1ab212.chunk.js.map +1 -0
  23. package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js +2 -0
  24. package/dist/embedded-app/static/3554.78dd0c182f6c.chunk.js.map +1 -0
  25. package/dist/embedded-app/static/4587.d1220800a7d6.chunk.js +2 -0
  26. package/dist/embedded-app/static/4587.d1220800a7d6.chunk.js.map +1 -0
  27. package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js +2 -0
  28. package/dist/embedded-app/static/4591.d741c025cb8a.chunk.js.map +1 -0
  29. package/dist/embedded-app/static/4609.b1c67dc7cac2.chunk.js +531 -0
  30. package/dist/embedded-app/static/4609.b1c67dc7cac2.chunk.js.map +1 -0
  31. package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js +2 -0
  32. package/dist/embedded-app/static/4648.cd5b8df48435.chunk.js.map +1 -0
  33. package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js +2 -0
  34. package/dist/embedded-app/static/6138.f15d6245c80d.chunk.js.map +1 -0
  35. package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js +2 -0
  36. package/dist/embedded-app/static/6206.3e7f13e11c59.chunk.js.map +1 -0
  37. package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js +4 -0
  38. package/dist/embedded-app/static/6949.beeb90ede97f.chunk.js.map +1 -0
  39. package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js +2 -0
  40. package/dist/embedded-app/static/7203.8b3d94b34b16.chunk.js.map +1 -0
  41. package/dist/embedded-app/static/8877.ab3d98868650.chunk.js +2 -0
  42. package/dist/embedded-app/static/8877.ab3d98868650.chunk.js.map +1 -0
  43. package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js +2 -0
  44. package/dist/embedded-app/static/9050.bd63e0a33f06.chunk.js.map +1 -0
  45. package/dist/embedded-app/static/9230.422824f655e0.chunk.js +2 -0
  46. package/dist/embedded-app/static/9230.422824f655e0.chunk.js.map +1 -0
  47. package/dist/embedded-app/static/main.9b48363c4ffa.js +2 -0
  48. package/dist/embedded-app/static/main.9b48363c4ffa.js.map +1 -0
  49. package/dist/embedded-app/static/module-remix-run.32d1d7665115.js +2 -0
  50. package/dist/embedded-app/static/module-remix-run.32d1d7665115.js.map +1 -0
  51. package/dist/embedded-app/static/{runtime.304ce6fa8de1.js → runtime.720cb48cd7ae.js} +2 -2
  52. package/dist/embedded-app/static/{runtime.304ce6fa8de1.js.map → runtime.720cb48cd7ae.js.map} +1 -1
  53. package/dist/embedded-app/static/vendor.470d3e8ecef1.js +2 -0
  54. package/dist/embedded-app/static/vendor.470d3e8ecef1.js.map +1 -0
  55. package/dist/lib/etag.cjs.js +40 -0
  56. package/dist/lib/etag.cjs.js.map +1 -0
  57. package/dist/package.json.cjs.js +1 -1
  58. package/package.json +8 -7
  59. package/dist/embedded-app/static/123.580aa7a9bfda.chunk.js +0 -2
  60. package/dist/embedded-app/static/123.580aa7a9bfda.chunk.js.map +0 -1
  61. package/dist/embedded-app/static/1659.4dc5ef343178.chunk.js +0 -2
  62. package/dist/embedded-app/static/1659.4dc5ef343178.chunk.js.map +0 -1
  63. package/dist/embedded-app/static/1749.fcf12bbab446.chunk.js +0 -2
  64. package/dist/embedded-app/static/1749.fcf12bbab446.chunk.js.map +0 -1
  65. package/dist/embedded-app/static/1994.9de2967d46a1.chunk.js +0 -2
  66. package/dist/embedded-app/static/1994.9de2967d46a1.chunk.js.map +0 -1
  67. package/dist/embedded-app/static/2295.0f797d8c2780.chunk.js.map +0 -1
  68. package/dist/embedded-app/static/2360.c56e85f47e34.chunk.js +0 -2
  69. package/dist/embedded-app/static/2360.c56e85f47e34.chunk.js.map +0 -1
  70. package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js +0 -2
  71. package/dist/embedded-app/static/3554.bb882f8e4aea.chunk.js.map +0 -1
  72. package/dist/embedded-app/static/4587.96f03715ec4f.chunk.js +0 -2
  73. package/dist/embedded-app/static/4587.96f03715ec4f.chunk.js.map +0 -1
  74. package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js +0 -2
  75. package/dist/embedded-app/static/4591.5563e3a7aea4.chunk.js.map +0 -1
  76. package/dist/embedded-app/static/4609.152f14ef4904.chunk.js +0 -531
  77. package/dist/embedded-app/static/4609.152f14ef4904.chunk.js.map +0 -1
  78. package/dist/embedded-app/static/4648.8a54a9ce4e70.chunk.js +0 -2
  79. package/dist/embedded-app/static/4648.8a54a9ce4e70.chunk.js.map +0 -1
  80. package/dist/embedded-app/static/6138.a55572f5ecc5.chunk.js +0 -2
  81. package/dist/embedded-app/static/6138.a55572f5ecc5.chunk.js.map +0 -1
  82. package/dist/embedded-app/static/6206.b2713857572e.chunk.js +0 -2
  83. package/dist/embedded-app/static/6206.b2713857572e.chunk.js.map +0 -1
  84. package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js +0 -4
  85. package/dist/embedded-app/static/6949.62c7fa0aab7f.chunk.js.map +0 -1
  86. package/dist/embedded-app/static/7203.16b8799346fa.chunk.js +0 -2
  87. package/dist/embedded-app/static/7203.16b8799346fa.chunk.js.map +0 -1
  88. package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js +0 -2
  89. package/dist/embedded-app/static/8877.58093d2c2ba0.chunk.js.map +0 -1
  90. package/dist/embedded-app/static/9050.093f683d75b8.chunk.js +0 -2
  91. package/dist/embedded-app/static/9050.093f683d75b8.chunk.js.map +0 -1
  92. package/dist/embedded-app/static/9230.1a571175884d.chunk.js +0 -2
  93. package/dist/embedded-app/static/9230.1a571175884d.chunk.js.map +0 -1
  94. package/dist/embedded-app/static/main.3b7e5948ec11.js +0 -2
  95. package/dist/embedded-app/static/main.3b7e5948ec11.js.map +0 -1
  96. package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js +0 -2
  97. package/dist/embedded-app/static/module-remix-run.0c80eb31316a.js.map +0 -1
  98. package/dist/embedded-app/static/vendor.3bc2778face5.js +0 -2
  99. package/dist/embedded-app/static/vendor.3bc2778face5.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["6206"],{49185(e,t,r){let i,a;r.d(t,{sA:()=>W,jn:()=>G,vv:()=>M,nC:()=>_});var o,n=r(55963);function s(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function p(e){if(!s(e))return!1;let t=new Set([e]);return Object.values(e).every(e=>(function e(t,r){if(null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t)return!0;if("object"!=typeof t||r.has(t))return!1;r.add(t);let i=Array.isArray(t)?t.every(t=>e(t,r)):Object.values(t).every(t=>e(t,r));return r.delete(t),i})(e,t))}var l=r(11601),d=r.n(l),c=r(67156),m=r.n(c);function u(e){if(!s(e)||"function"==typeof e.then)throw new n.dz("Invalid JSON schema: must be an object");let t=(i||(i=new(d())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0}),m()(i)),i);try{let r=t.validateSchema(e);if("boolean"!=typeof r)throw new n.dz("Expected synchronous validation result")}catch(e){throw new n.dz(`Invalid JSON schema: ${e}`)}let r=t.errors?.[0];if(r){let e=r.message;throw Array.isArray(r?.params?.allowedValues)&&(e+=`, expected one of: ${r.params.allowedValues.join(", ")}`),new n.dz(`Invalid JSON schema, error at path ${r.instancePath}: ${e}`)}return!0}var h=r(71291),f=r(51700),y=r(22654);let g=h.g1(h.Yj(),h.L5()).refine(e=>p(e),{message:"Invalid JSON schema"}),b=h.g1(h.Yj(),h.L5()).superRefine((e,t)=>{try{return u(e)}catch(e){return t.addIssue({code:y.eq.custom,message:(0,f.bJ)(e)?e.message:"Invalid JSON schema"}),!1}}),v=h.re({op:h.eu("declareAnnotation.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj(),schema:h.re({jsonSchema:b}).optional()})}),j=h.re({op:h.eu("declareKind.v1"),kind:h.Yj(),group:h.Yj(),properties:h.re({singular:h.Yj(),plural:h.Yj(),description:h.Yj()})}),w=h.Ik({allOf:h.PV([h.Ik({$ref:h.eu("Entity")}),h.Ik({type:h.eu("object"),properties:h.Ik({apiVersion:h.g1(h.Yj(),h.L5()).optional(),kind:h.g1(h.Yj(),h.L5()).optional()}).passthrough()}).passthrough()])}).passthrough();function x(e){let t=w.safeParse(e);if(!t.success)return e;let{allOf:r,...i}=t.data,{type:a,properties:o,...n}=r[1],{apiVersion:s,kind:p,...l}=o;return{...i,type:a,...n,properties:l}}let k=["kind","apiVersion","metadata","$ref"],A=["allOf","oneOf","anyOf","if","else","then","not","$ref"],T=h.re({selector:h.re({path:h.Yj()}),relation:h.Yj(),defaultKind:h.Yj().optional(),defaultNamespace:h.k5(["default","inherit"]).optional(),allowedKinds:h.YO(h.Yj()).optional()}),C=h.re({op:h.eu("declareKindVersion.v1"),kind:h.Yj(),name:h.Yj(),specType:h.Yj().optional(),properties:h.re({description:h.Yj().optional(),relationFields:h.YO(T).optional(),schema:h.re({jsonSchema:b})})});function S(e){let t=[];for(let i of e.versions){let a=x(i.schema.jsonSchema);for(let o of(u(a),!function(e){if(!p(e))throw new n.dz("Schema must be an object");if(void 0!==e.type&&"object"!==e.type)throw new n.dz('Schema root type must be "object"');for(let t of A)if(t in e)throw new n.dz(`Schema must not use "${t}" keyword in the root`);let t=e.properties;if(!s(t))throw new n.dz('Schema must have a "properties" field that is an object');for(let e of k)if(e in t)throw new n.dz(`Schema must not try to declare the reserved root field "${e}"`);for(let[e,r]of Object.entries(t)){if(!s(r))throw new n.dz(`Schema for root field "${e}" must be an object`);for(let t of A)if(t in r)throw new n.dz(`Schema for root field "${e}" must not use "${t}" keyword`)}}(a),Array.isArray(i.name)?i.name:[i.name]))for(let n of i.specType?[i.specType].flat():[void 0]){var r;t.push((r={kind:e.kind,name:o,specType:n,properties:{description:i.description,relationFields:i.relationFields,schema:{jsonSchema:a}}},C.parse({...r,op:"declareKindVersion.v1"})))}}return t}let L=h.re({op:h.eu("declareLabel.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj(),schema:h.re({jsonSchema:b}).optional()})}),Y=h.re({op:h.eu("declareRelation.v1"),fromKind:h.Yj(),type:h.Yj(),toKind:h.Yj(),properties:h.re({reverseType:h.Yj(),title:h.Yj(),description:h.Yj()})});function K(e){return Y.parse({...e,op:"declareRelation.v1"})}let I=h.re({op:h.eu("removeAnnotation.v1"),name:h.Yj()}),N=h.re({op:h.eu("removeKind.v1"),kind:h.Yj()}),P=h.re({op:h.eu("removeLabel.v1"),name:h.Yj()}),R=h.re({op:h.eu("removeTag.v1"),name:h.Yj()}),$=h.re({op:h.eu("declareTag.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj()})}),O=h.re({op:h.eu("updateAnnotation.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional(),schema:h.re({jsonSchema:b}).optional()})}),E=h.re({op:h.eu("updateKind.v1"),kind:h.Yj(),properties:h.re({singular:h.Yj().optional(),plural:h.Yj().optional(),description:h.Yj().optional()})}),U=h.re({selector:h.re({path:h.Yj()}),relation:h.Yj(),defaultKind:h.Yj().optional(),defaultNamespace:h.k5(["default","inherit"]).optional(),allowedKinds:h.YO(h.Yj()).optional()}),F=h.re({op:h.eu("updateKindVersion.v1"),kind:h.Yj(),name:h.Yj(),specType:h.Yj().optional(),properties:h.re({description:h.Yj().optional(),relationFields:h.YO(U).optional(),schema:h.re({jsonSchema:g}).optional()})}),z=h.re({op:h.eu("updateLabel.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional(),schema:h.re({jsonSchema:b}).optional()})}),D=h.re({op:h.eu("updateRelation.v1"),fromKind:h.Yj(),type:h.Yj(),toKind:h.Yj(),properties:h.re({reverseType:h.Yj().optional(),reverseTitle:h.Yj().optional(),title:h.Yj().optional(),description:h.Yj().optional()})});function B(e){return D.parse({...e,op:"updateRelation.v1"})}let q=h.re({op:h.eu("updateTag.v1"),name:h.Yj(),properties:h.re({title:h.Yj().optional(),description:h.Yj().optional()})}),V=r(59855).Y.create({type:"@backstage/CatalogModelLayer",versions:["v1"]});class J{#e;#t;constructor(e){this.#e=e.layerId,this.#t=[]}addKind(e){var t;let r,i=((r=[]).push((t={kind:e.names.kind,group:e.group,properties:{singular:e.names.singular,plural:e.names.plural,description:e.description}},j.parse({...t,op:"declareKind.v1"}))),r.push(...S({kind:e.names.kind,versions:e.versions??[]})),r);this.#t.push(...i)}addKindVersion(e){let t=S(e);this.#t.push(...t)}updateKind(e){let t=function(e){var t,r;let i=[];for(let a of((void 0!==e.names.singular||void 0!==e.names.plural||void 0!==e.description)&&i.push((t={kind:e.names.kind,properties:{singular:e.names.singular,plural:e.names.plural,description:e.description}},E.parse({...t,op:"updateKind.v1"}))),e.versions??[])){let t=a.schema?x(a.schema.jsonSchema):void 0;for(let o of Array.isArray(a.name)?a.name:[a.name])for(let n of a.specType?.length?[a.specType].flat():[void 0])i.push((r={kind:e.names.kind,name:o,specType:n,properties:{description:a.description,relationFields:a.relationFields,schema:t?{jsonSchema:t}:void 0}},F.parse({...r,op:"updateKindVersion.v1"})))}return i}(e);this.#t.push(...t)}removeKind(e){var t;let r=[(t={kind:e.kind},N.parse({...t,op:"removeKind.v1"}))];this.#t.push(...r)}addRelationPair(e){let t=function(e){let t=[];for(let r of[e.fromKind].flat())for(let i of[e.toKind].flat())t.push(K({fromKind:r,type:e.forward.type,toKind:i,properties:{reverseType:e.reverse.type,title:e.forward.title,description:e.description}})),t.push(K({fromKind:i,type:e.reverse.type,toKind:r,properties:{reverseType:e.forward.type,title:e.reverse.title,description:e.description}}));return t}(e);this.#t.push(...t)}updateRelationPair(e){let t=function(e){let t=[];for(let r of[e.fromKind].flat())for(let i of[e.toKind].flat())t.push(B({fromKind:r,type:e.forward.type,toKind:i,properties:{reverseType:e.reverse.type,reverseTitle:e.reverse.type?void 0:e.reverse.title,title:e.forward.title,description:e.description}})),e.reverse.type&&t.push(B({fromKind:i,type:e.reverse.type,toKind:r,properties:{reverseType:e.forward.type,title:e.reverse.title,description:e.description}}));return t}(e);this.#t.push(...t)}addAnnotation(e){let t=function(e){var t;if(e.schema?.jsonSchema&&(u(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new n.dz(`Annotation "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},v.parse({...t,op:"declareAnnotation.v1"}))]}(e);this.#t.push(...t)}updateAnnotation(e){let t=function(e){var t;if(e.schema&&(u(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new n.dz(`Annotation "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},O.parse({...t,op:"updateAnnotation.v1"}))]}(e);this.#t.push(...t)}removeAnnotation(e){var t;let r=[(t={name:e.name},I.parse({...t,op:"removeAnnotation.v1"}))];this.#t.push(...r)}addLabel(e){let t=function(e){var t;if(e.schema?.jsonSchema&&(u(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new n.dz(`Label "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},L.parse({...t,op:"declareLabel.v1"}))]}(e);this.#t.push(...t)}updateLabel(e){let t=function(e){var t;if(e.schema&&(u(e.schema.jsonSchema),"string"!==e.schema.jsonSchema.type))throw new n.dz(`Label "${e.name}" schema must have "type": "string" at the root, only string values are supported`);return[(t={name:e.name,properties:{title:e.title,description:e.description,schema:e.schema}},z.parse({...t,op:"updateLabel.v1"}))]}(e);this.#t.push(...t)}removeLabel(e){var t;let r=[(t={name:e.name},P.parse({...t,op:"removeLabel.v1"}))];this.#t.push(...r)}addTag(e){var t;let r=[(t={name:e.name,properties:{title:e.title,description:e.description}},$.parse({...t,op:"declareTag.v1"}))];this.#t.push(...r)}updateTag(e){var t;let r=[(t={name:e.name,properties:{title:e.title,description:e.description}},q.parse({...t,op:"updateTag.v1"}))];this.#t.push(...r)}removeTag(e){var t;let r=[(t={name:e.name},R.parse({...t,op:"removeTag.v1"}))];this.#t.push(...r)}import(e){let t=V.toInternal(e);this.#t.push(...t.ops)}build(){return V.createInstance("v1",{layerId:this.#e,ops:this.#t.slice()})}}let M="ownedBy",_="dependsOn",G="partOf",W="hasPart";a=new J({layerId:(o={layerId:"catalog.backstage.io/well-known-relations",builder:e=>{e.addRelationPair({fromKind:["API","Component","Domain","Group","Location","Resource","System","User"],toKind:["Group","User"],description:"An ownership relation where the owner is usually an organizational entity (user or group), and the other entity can be anything.",forward:{type:"ownedBy",title:"owned by"},reverse:{type:"ownerOf",title:"owner of"}}),e.addRelationPair({fromKind:"Component",toKind:"API",description:"A relation from a component to an API it provides for consumption by others.",forward:{type:"providesApi",title:"provides API"},reverse:{type:"apiProvidedBy",title:"API provided by"}}),e.addRelationPair({fromKind:"Component",toKind:"API",description:"A relation from a component to an API it consumes.",forward:{type:"consumesApi",title:"consumes API"},reverse:{type:"apiConsumedBy",title:"API consumed by"}}),e.addRelationPair({fromKind:["Component","Resource"],toKind:["Component","Resource"],description:"A dependency relation expressing that an entity needs another entity to function.",forward:{type:"dependsOn",title:"depends on"},reverse:{type:"dependencyOf",title:"dependency of"}}),e.addRelationPair({fromKind:"Group",toKind:"Group",description:"A parent/child relation to build up a tree, used for example to describe the organizational structure between groups.",forward:{type:"parentOf",title:"parent of"},reverse:{type:"childOf",title:"child of"}}),e.addRelationPair({fromKind:"User",toKind:"Group",description:"A membership relation, typically for users in a group.",forward:{type:"memberOf",title:"member of"},reverse:{type:"hasMember",title:"has member"}}),e.addRelationPair({fromKind:["Component","API","Resource"],toKind:["Component","System"],description:"A part/whole relation where a component, API, or resource belongs to a system or a component is a subcomponent of another.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}}),e.addRelationPair({fromKind:"System",toKind:"Domain",description:"A part/whole relation where a system belongs to a domain.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}}),e.addRelationPair({fromKind:"Domain",toKind:"Domain",description:"A part/whole relation where a domain is a subdomain of another domain.",forward:{type:"partOf",title:"part of"},reverse:{type:"hasPart",title:"has part"}})}}).layerId}),o.builder(a),a.build()},26438(e,t,r){r.d(t,{wL:()=>b,aR:()=>y,Zp:()=>f,bw:()=>g});var i=r(31085),a=r(14041),o=r(57873),n=r(63878),s=r(48119);let p={"bui-Card":"vwbKbDh04mMaiBi3","bui-CardHeader":"XFUmGkj6WID_JnEz","bui-CardBody":"bDKBEHaUGVdvGxpS","bui-CardFooter":"htqU_uAkxL89C8of","bui-CardTrigger":"YH9iVtgxrw5b0cYJ","bui-card-body-shadow":"bJ7HlUi_25Q2Dxr7"},l=(0,s.p)()({styles:p,classNames:{root:"bui-Card",trigger:"bui-CardTrigger"},propDefs:{children:{},className:{},onPress:{},href:{},label:{},target:{},rel:{},download:{},style:{}},utilityProps:["grow","shrink","basis"]}),d=(0,s.p)()({styles:p,classNames:{root:"bui-CardHeader"},propDefs:{children:{},className:{}}}),c=(0,s.p)()({styles:p,classNames:{root:"bui-CardBody"},propDefs:{children:{},className:{}}}),m=(0,s.p)()({styles:p,classNames:{root:"bui-CardFooter"},propDefs:{children:{},className:{}}});var u=r(13408),h=r(12860);let f=(0,a.forwardRef)((e,t)=>{let{ownProps:r,restProps:s,dataAttributes:p,utilityStyle:d}=(0,n.Z)(l,e),{classes:c,children:m,onPress:f,href:y,label:g,target:b,rel:v,download:j}=r,w=!!(f||y),x=(0,a.useRef)(null),k=(0,a.useCallback)(e=>{if(!w||!x.current||x.current.contains(e.target))return;let t=e.target,r=t instanceof Element?t:t?.parentElement;r?.closest('a[href],button,input,select,textarea,[role="button"],[role="link"],[tabindex]:not([tabindex="-1"])')||window.getSelection()?.toString()||x.current.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey}))},[w]);return(0,i.jsxs)(u.a,{as:"article",bg:"neutral",ref:t,className:c.root,"data-interactive":w||void 0,...p,...s,onClick:w?k:void 0,style:{...d,...r.style},children:[y&&(0,i.jsx)(h.N,{ref:x,className:c.trigger,href:y,target:b,rel:v,download:j,"aria-label":g}),f&&!y&&(0,i.jsx)(o.$,{ref:x,className:c.trigger,onPress:f,"aria-label":g}),m]})});f.displayName="Card";let y=(0,a.forwardRef)((e,t)=>{let{ownProps:r,restProps:a}=(0,n.Z)(d,e),{classes:o,children:s}=r;return(0,i.jsx)("div",{ref:t,className:o.root,...a,children:s})});y.displayName="CardHeader";let g=(0,a.forwardRef)((e,t)=>{let{ownProps:r,restProps:a}=(0,n.Z)(c,e),{classes:o,children:s}=r;return(0,i.jsx)("div",{ref:t,className:o.root,...a,children:s})});g.displayName="CardBody";let b=(0,a.forwardRef)((e,t)=>{let{ownProps:r,restProps:a}=(0,n.Z)(m,e),{classes:o,children:s}=r;return(0,i.jsx)("div",{ref:t,className:o.root,...a,children:s})});b.displayName="CardFooter"},32386(e,t,r){r.d(t,{x:()=>d});var i=r(31085),a=r(14041),o=r(63878),n=r(48119);let s={"bui-Grid":"lOUUwZ1G_vYgdngG"},p=(0,n.p)()({styles:s,classNames:{root:"bui-Grid"},bg:"provider",propDefs:{bg:{dataAttribute:!0},children:{},className:{},style:{}},utilityProps:["columns","gap","m","mb","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","grow","shrink","basis"]}),l=(0,n.p)()({styles:s,classNames:{root:"bui-GridItem"},bg:"provider",propDefs:{bg:{dataAttribute:!0},children:{},className:{},style:{}},utilityProps:["colSpan","colEnd","colStart","rowSpan"]}),d={Root:(0,a.forwardRef)((e,t)=>{let{ownProps:r,dataAttributes:a,utilityStyle:n,restProps:s}=(0,o.Z)(p,{columns:"auto",gap:"4",...e}),{classes:l,childrenWithBgProvider:d}=r;return(0,i.jsx)("div",{ref:t,className:l.root,style:{...n,...r.style},...a,...s,children:d})}),Item:(0,a.forwardRef)((e,t)=>{let{ownProps:r,dataAttributes:a,utilityStyle:n,restProps:s}=(0,o.Z)(l,e),{classes:p,childrenWithBgProvider:d}=r;return(0,i.jsx)("div",{ref:t,className:p.root,style:{...n,...r.style},...a,...s,children:d})})}},25390(e,t,r){r.d(t,{o:()=>c});var i=r(31085),a=r(26438),o=r(73880),n=r(69749),s=r(58837),p=r(53373),l=r.n(p);let d=(0,s.A)({root:{height:"100%"},title:{minWidth:0,overflow:"hidden"},footer:{display:"flex",justifyContent:"flex-end"}});function c(e){let{title:t,headerActions:r,footerActions:s,children:p,className:c}=e,m=d();return(0,i.jsxs)(a.Zp,{className:l()(m.root,c),children:[t&&(0,i.jsx)(a.aR,{children:(0,i.jsxs)(o.s,{justify:"between",align:"center",children:[(0,i.jsx)(n.E,{as:"h3",variant:"title-x-small",weight:"bold",className:m.title,children:t}),r&&(0,i.jsx)(o.s,{align:"center",gap:"1",children:r})]})}),(0,i.jsx)(a.bw,{children:p}),s&&(0,i.jsx)(a.wL,{className:m.footer,children:s})]})}},53987(e,t,r){r.d(t,{i:()=>s});var i=r(31085),a=r(58077),o=r(14041),n=r(3438);function s(e){let{entityRefs:t,hideIcons:r,...s}=e;return(0,i.jsx)(i.Fragment,{children:t.map((e,t)=>{let p="string"==typeof e?e:(0,a.U2)(e);return(0,i.jsxs)(o.Fragment,{children:[t>0&&", ",(0,i.jsx)(n.z,{...s,entityRef:e,hideIcon:r})]},`${t}.${p}`)})})}},53320(e,t,r){r.d(t,{t:()=>a});var i=r(58077);function a(e,t,r){let a=e?.relations?.filter(e=>e.type===t).map(e=>(0,i.KU)(e.targetRef))||[];return r?.kind&&(a=a.filter(e=>e.kind.toLowerCase()===r.kind.toLowerCase())),a}},36237(e,t,r){r.d(t,{InternalAboutCard:()=>el});var i=r(31085),a=r(14041),o=r(29365),n=r(74011),s=r(75625),p=r(82451),l=r(25534),d=r(15333),c=r(60603),m=r(55940),u=r(25390),h=r(81219),f=r(91189),y=r(50509),g=r(50375),b=r(151),v=r(89595),j=r(11773),w=r(16263),x=r(58077),k=r(22845),A=r(76272),T=r(30152),C=r(40466),S=r(78931),L=r(95269),Y=r(11601),K=r.n(Y),I=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"}}}'),N=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}}}}}'),P=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}}}}}}'),R=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"}}}}}');let $=new Map,O=[N,I,P,R];!function(e,t={}){let r=t?.disableCache??!1,i=r?"":JSON.stringify(e);if(!r){let e=$.get(i);if(e)return}let a=function(e){if("object"!=typeof e)return[];let t=new Set;e.$id&&t.add(e.$id);let r=[],i=[e];for(;i.length;)for(let e of function*(e){let t=[e];for(;t.length;){let e=t.pop();if("object"==typeof e&&e)for(let[r,i]of Object.entries(e))"$ref"===r&&"string"==typeof i?yield i.split("#")[0]:t.push(i)}}(i.pop()))if(!t.has(e)){t.add(e);let a=O.find(t=>t.$id===e);a&&(r.push(a),i.push(a))}return r}(e),o=new(K())({allowUnionTypes:!0,allErrors:!0,validateSchema:!0});a.length&&o.addSchema(a,void 0,void 0,!0);let n=o.compile(e);r||$.set(i,n)}(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"}}}}}}}]},"secrets":{"type":"object","description":"Configuration for secrets that are passed during task creation.","properties":{"schema":{"type":"object","description":"A JSONSchema for validating secrets passed during task creation."}}},"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"}}},"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 decorator ID"},"input":{"type":"object","description":"An object describing the inputs to the form decorator."}}}},"EXPERIMENTAL_formDecorators":{"type":"array","deprecated":true,"description":"Deprecated, use formDecorators instead.","items":{"type":"object","properties":{"id":{"type":"string","description":"The form decorator ID"},"input":{"type":"object","description":"An object describing the inputs to the form decorator."}}}},"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":{"if":{"type":["string","boolean"],"description":"A templated condition that excludes this link when evaluated to false. If the condition is true or not defined, the link is included. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."},"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":{"if":{"type":["string","boolean"],"description":"A templated condition that excludes this text when evaluated to false. If the condition is true or not defined, the text is included. The condition is true, if the input is not `false`, `undefined`, `null`, `\\"\\"`, `0`, or `[]`."},"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"}}}}}}]}'));var E=r(47426);let U="scaffolder-template",F="scaffolder-task";(0,E.i)({name:"scaffolder.action.execute",attributes:{},resourceType:"scaffolder-action"}),(0,E.i)({name:"scaffolder.template.parameter.read",attributes:{action:"read"},resourceType:U}),(0,E.i)({name:"scaffolder.template.step.read",attributes:{action:"read"},resourceType:U}),(0,E.i)({name:"scaffolder.template.dry-run",attributes:{}}),(0,E.i)({name:"scaffolder.task.read",attributes:{action:"read"},resourceType:F});let z=(0,E.i)({name:"scaffolder.task.create",attributes:{action:"create"}});(0,E.i)({name:"scaffolder.task.cancel",attributes:{},resourceType:F}),(0,E.i)({name:"scaffolder.template.management",attributes:{}});var D=r(17883),B=r(50714),q=r(50010),V=r(91638),J=r(49185),M=r(37121),_=r(53320),G=r(53987),W=r(94390),Z=r(58837),H=r(32386),X=r(11629),Q=r(62335),ee=r(72501);let et=(0,Z.A)(e=>({value:{fontWeight:"bold",overflow:"hidden",lineHeight:"24px",wordBreak:"break-word"},label:{color:e.palette.text.secondary,textTransform:"uppercase",fontSize:"10px",fontWeight:"bold",letterSpacing:.5,overflow:"hidden",whiteSpace:"nowrap",marginBottom:e.spacing(1)}}));function er(e){let{label:t,value:r,children:a,className:o}=e,n=et(),{t:s}=(0,v.i)(q.W),p=(0,Q.O)(a,e=>e.getElements()),l=p.length>0?p:(0,i.jsx)(ee.A,{variant:"body2",className:n.value,children:r||s("aboutCard.unknown")});return(0,i.jsxs)("div",{className:o,children:[(0,i.jsx)(ee.A,{variant:"inherit",component:"h2",className:n.label,children:t}),l]})}var ei=r(75836);let ea=(0,Z.A)({description:{wordBreak:"break-word"}});function eo(e){let t,{entity:r}=e,a=ea(),{t:o}=(0,v.i)(q.W),n="system"===r.kind.toLowerCase(),s="resource"===r.kind.toLowerCase(),p="component"===r.kind.toLowerCase(),l="api"===r.kind.toLowerCase(),d="template"===r.kind.toLowerCase(),c="location"===r.kind.toLowerCase(),m="group"===r.kind.toLowerCase(),u=(0,_.t)(r,J.jn,{kind:"system"}),h=(0,_.t)(r,J.jn,{kind:"component"}),f=(0,_.t)(r,J.jn,{kind:"domain"}),y=(0,_.t)(r,J.vv);try{t=(0,M.Cr)(r)}catch(e){t=void 0}let g={initial:"1",sm:"2",lg:"3"};return(0,i.jsxs)(H.x.Root,{columns:g,gap:"3",children:[(0,i.jsx)(H.x.Item,{colSpan:g,children:(0,i.jsx)(er,{label:o("aboutCard.descriptionField.label"),children:(0,i.jsx)(X.h,{className:a.description,content:r?.metadata?.description||o("aboutCard.descriptionField.value")})})}),(0,i.jsx)(er,{label:o("aboutCard.ownerField.label"),value:o("aboutCard.ownerField.value"),className:a.description,children:y.length>0&&(0,i.jsx)(G.i,{entityRefs:y,defaultKind:"group"})}),(n||f.length>0)&&(0,i.jsx)(er,{label:o("aboutCard.domainField.label"),value:o("aboutCard.domainField.value"),children:f.length>0&&(0,i.jsx)(G.i,{entityRefs:f,defaultKind:"domain"})}),(l||p||s||u.length>0)&&(0,i.jsx)(er,{label:o("aboutCard.systemField.label"),value:o("aboutCard.systemField.value"),children:u.length>0&&(0,i.jsx)(G.i,{entityRefs:u,defaultKind:"system"})}),p&&h.length>0&&(0,i.jsx)(er,{label:o("aboutCard.parentComponentField.label"),value:o("aboutCard.parentComponentField.value"),children:(0,i.jsx)(G.i,{entityRefs:h,defaultKind:"component"})}),(0,i.jsx)(er,{label:o("aboutCard.tagsField.label"),value:o("aboutCard.tagsField.value"),children:(r?.metadata?.tags||[]).map(e=>(0,i.jsx)(W.A,{size:"small",label:e},e))}),(0,i.jsx)(er,{label:o("aboutCard.kindField.label"),value:r.kind}),(l||p||s||d||m||c||"string"==typeof r?.spec?.type)&&(0,i.jsx)(er,{label:o("aboutCard.typeField.label"),value:r?.spec?.type}),(l||p||"string"==typeof r?.spec?.lifecycle)&&(0,i.jsx)(er,{label:o("aboutCard.lifecycleField.label"),value:r?.spec?.lifecycle}),c&&(r?.spec?.targets||r?.spec?.target)&&(0,i.jsx)(H.x.Item,{colSpan:g,children:(0,i.jsx)(er,{label:o("aboutCard.targetsField.label"),children:(0,i.jsx)(ei.m,{cols:1,items:(r.spec.targets||[r.spec.target]).map(e=>e).map(e=>({text:e,href:function(e,t,r){if("url"===t||e.includes("://"))return e;let i="file"===r.type?`file://${r.target}`:r.target;return"file"===t||"file"===r.type?new URL(e,i).href:i}(e,r?.spec?.type||o("aboutCard.unknown"),t)}))})})})]})}var en=r(15661);let es=(0,Z.A)({linkContainer:{border:"1px solid var(--bui-border-1)",borderLeft:"none",borderRight:"none",marginBottom:"var(--bui-space-6)"}});function ep(){let{entity:e}=(0,k.tN)(),t=(0,en.r)(),r=function(){let{entity:e}=(0,k.tN)(),t=(0,h.S)(B.UJ),{t:r}=(0,v.i)(q.W);return{label:r("aboutCard.viewTechdocs"),disabled:!(e.metadata.annotations?.[S.As]||e.metadata.annotations?.[S.GO])||!t,icon:(0,i.jsx)(p.default,{}),href:(0,L.b1)(e,t)}}(),a=function(){let e=(0,f.n)(),{entity:t}=(0,k.tN)(),r=(0,h.S)(B.Zg),{t:a}=(0,v.i)(q.W),o=e.getSystemIcon("scaffolder")??l.default,{allowed:n}=(0,D.J)({permission:z});return{label:a("aboutCard.launchTemplate"),icon:(0,i.jsx)(o,{}),disabled:!r||!n,href:r&&r({templateName:t.metadata.name,namespace:t.metadata.namespace||j.oQ})}}(),o=[t,r];return"scaffolder.backstage.io/v1beta3"===e.apiVersion&&"Template"===e.kind&&o.push(a),(0,i.jsx)(d.P,{links:o})}function el(e){let{iconLinks:t}=e,r=es(),{entity:p}=(0,k.tN)(),l=(0,y.gf)(A.v),d=(0,y.gf)(g.k),f=(0,y.gf)(b.m),S=(0,h.S)(B.Zg),L=(e=>{let t=(0,y.gf)(A.v),{value:r}=(0,V.default)(async()=>{let r,i=e.metadata.annotations?.["backstage.io/source-template"];if(i)try{let e=await t.getEntityByRef(i);return r=(0,x.KU)(i),void 0!==e?r:void 0}catch{return}},[t,e]);return r})(p),{allowed:Y}=(0,T.A)(C.tS),{t:K}=(0,v.i)(q.W),I=p.metadata.annotations?.[j.P],N=p.metadata.annotations?.[w.Eo],P=N?.startsWith("url:")||N?.startsWith("file:"),R=(0,a.useCallback)(async()=>{try{await l.refreshEntity((0,x.U2)(p)),d.post({message:K("aboutCard.refreshScheduledMessage"),severity:"info",display:"transient"})}catch(e){f.post(e)}},[l,p,d,K,f]);return(0,i.jsxs)(u.o,{title:K("aboutCard.title"),headerActions:(0,i.jsxs)(i.Fragment,{children:[P&&Y&&(0,i.jsx)(o.A,{"aria-label":K("aboutCard.refreshButtonAriaLabel"),title:K("aboutCard.refreshButtonTitle"),onClick:R,children:(0,i.jsx)(n.default,{})}),(0,i.jsx)(o.A,{component:c.N_,"aria-label":K("aboutCard.editButtonAriaLabel"),disabled:!I,title:K("aboutCard.editButtonTitle"),to:I??"#",children:(0,i.jsx)(s.default,{})}),L&&S&&(0,i.jsx)(o.A,{component:c.N_,title:K("aboutCard.createSimilarButtonTitle"),to:S({namespace:L.namespace,templateName:L.name}),children:(0,i.jsx)(m.z9,{id:"scaffolder"})})]}),children:[(0,i.jsx)("div",{className:r.linkContainer,children:t??(0,i.jsx)(ep,{})}),(0,i.jsx)(eo,{entity:p})]})}},75836(e,t,r){r.d(t,{m:()=>h});var i=r(31085),a=r(32386),o=r(77125),n=r(72501),s=r(58837),p=r(23127),l=r(60603);let d=(0,s.A)({svgIcon:{display:"inline-block","& svg":{display:"inline-block",fontSize:"inherit",verticalAlign:"baseline"}}});function c(e){let{href:t,text:r,Icon:a}=e,s=d();return(0,i.jsxs)(o.A,{display:"flex",children:[(0,i.jsx)(o.A,{mr:1,className:s.svgIcon,children:(0,i.jsx)(n.A,{component:"div",children:a?(0,i.jsx)(a,{}):(0,i.jsx)(p.default,{})})}),(0,i.jsx)(o.A,{flexGrow:"1",children:(0,i.jsx)(l.N_,{to:t,target:"_blank",rel:"noopener",children:r||t})})]})}var m=r(5893);let u={xs:1,sm:1,md:1,lg:2,xl:3};function h(e){let{items:t,cols:r}=e,o=function(e){let t=[(0,m.A)(e=>e.breakpoints.up("xl"))?"xl":null,(0,m.A)(e=>e.breakpoints.up("lg"))?"lg":null,(0,m.A)(e=>e.breakpoints.up("md"))?"md":null,(0,m.A)(e=>e.breakpoints.up("sm"))?"sm":null,(0,m.A)(e=>e.breakpoints.up("xs"))?"xs":null],r=1;if("number"==typeof e)r=e;else{let i=t.find(e=>null!==e)??"xs";r=e?.[i]??u[i]}return r}(r);return(0,i.jsx)(a.x.Root,{columns:String(Math.min(Math.max(o,1),12)),gap:"2",children:t.map(({text:e,href:t,Icon:r},a)=>(0,i.jsx)(c,{href:t,text:e??t,Icon:r},a))})}}}]);
2
+ //# sourceMappingURL=6206.3e7f13e11c59.chunk.js.map