@kuadrant/kuadrant-backstage-plugin-frontend 0.0.2-dev-1cc1a15 → 0.0.2-dev-e6e0dbf

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 (226) hide show
  1. package/dist/components/ApiAccessCard/ApiAccessCard.esm.js +229 -11
  2. package/dist/components/ApiAccessCard/ApiAccessCard.esm.js.map +1 -1
  3. package/dist/components/ApiKeyManagementTab/ApiKeyManagementTab.esm.js +15 -151
  4. package/dist/components/ApiKeyManagementTab/ApiKeyManagementTab.esm.js.map +1 -1
  5. package/dist/components/ApiProductDetailPage/ApiProductDetailPage.esm.js +10 -15
  6. package/dist/components/ApiProductDetailPage/ApiProductDetailPage.esm.js.map +1 -1
  7. package/dist/components/ApiProductDetails/ApiProductDetails.esm.js +6 -1
  8. package/dist/components/ApiProductDetails/ApiProductDetails.esm.js.map +1 -1
  9. package/dist/components/ApiProductInfoCard/ApiProductInfoCard.esm.js +15 -2
  10. package/dist/components/ApiProductInfoCard/ApiProductInfoCard.esm.js.map +1 -1
  11. package/dist/components/CreateAPIProductDialog/CreateAPIProductDialog.esm.js +2 -4
  12. package/dist/components/CreateAPIProductDialog/CreateAPIProductDialog.esm.js.map +1 -1
  13. package/dist/components/OidcProviderCard/OidcProviderCard.esm.js +23 -0
  14. package/dist/components/OidcProviderCard/OidcProviderCard.esm.js.map +1 -0
  15. package/dist/components/RequestAccessDialog/RequestAccessDialog.esm.js +167 -0
  16. package/dist/components/RequestAccessDialog/RequestAccessDialog.esm.js.map +1 -0
  17. package/dist/index.d.ts +1 -5
  18. package/dist/index.esm.js +1 -2
  19. package/dist/index.esm.js.map +1 -1
  20. package/dist/plugin.esm.js +1 -17
  21. package/dist/plugin.esm.js.map +1 -1
  22. package/dist/utils/validation.esm.js.map +1 -1
  23. package/dist-scalprum/configSchema.json +27 -1
  24. package/dist-scalprum/internal.plugin-kuadrant.1ec7b1dc71663b4b9a17.js +2 -0
  25. package/dist-scalprum/internal.plugin-kuadrant.1ec7b1dc71663b4b9a17.js.map +1 -0
  26. package/dist-scalprum/plugin-manifest.json +2 -2
  27. package/dist-scalprum/static/1085.d17e689a.chunk.js +3 -0
  28. package/dist-scalprum/static/{1085.536aa0fa.chunk.js.map → 1085.d17e689a.chunk.js.map} +1 -1
  29. package/dist-scalprum/static/1645.db086648.chunk.js +3 -0
  30. package/dist-scalprum/static/1645.db086648.chunk.js.map +1 -0
  31. package/dist-scalprum/static/2233.bf0c10d7.chunk.js +3 -0
  32. package/dist-scalprum/static/2233.bf0c10d7.chunk.js.map +1 -0
  33. package/dist-scalprum/static/2628.20156dc1.chunk.js +3 -0
  34. package/dist-scalprum/static/2628.20156dc1.chunk.js.map +1 -0
  35. package/dist-scalprum/static/2822.27a4ac5b.chunk.js +2 -0
  36. package/dist-scalprum/static/2822.27a4ac5b.chunk.js.map +1 -0
  37. package/dist-scalprum/static/2946.a35243f1.chunk.js +3 -0
  38. package/dist-scalprum/static/{2946.167c50c2.chunk.js.map → 2946.a35243f1.chunk.js.map} +1 -1
  39. package/dist-scalprum/static/2952.b3c7e41c.chunk.js +2 -0
  40. package/dist-scalprum/static/2952.b3c7e41c.chunk.js.map +1 -0
  41. package/dist-scalprum/static/2967.6a1db3ad.chunk.js +2 -0
  42. package/dist-scalprum/static/2967.6a1db3ad.chunk.js.map +1 -0
  43. package/dist-scalprum/static/3091.9a74ea5f.chunk.js +2 -0
  44. package/dist-scalprum/static/3091.9a74ea5f.chunk.js.map +1 -0
  45. package/dist-scalprum/static/327.a9a99299.chunk.js +2 -0
  46. package/dist-scalprum/static/327.a9a99299.chunk.js.map +1 -0
  47. package/dist-scalprum/static/3459.a7c29521.chunk.js +2 -0
  48. package/dist-scalprum/static/3459.a7c29521.chunk.js.map +1 -0
  49. package/dist-scalprum/static/3504.1c2f2e54.chunk.js +3 -0
  50. package/dist-scalprum/static/3504.1c2f2e54.chunk.js.map +1 -0
  51. package/dist-scalprum/static/3650.4f0dc550.chunk.js +2 -0
  52. package/dist-scalprum/static/3650.4f0dc550.chunk.js.map +1 -0
  53. package/dist-scalprum/static/3657.882640ca.chunk.js +3 -0
  54. package/dist-scalprum/static/3657.882640ca.chunk.js.LICENSE.txt +8 -0
  55. package/dist-scalprum/static/3657.882640ca.chunk.js.map +1 -0
  56. package/dist-scalprum/static/3947.7458971d.chunk.js +2 -0
  57. package/dist-scalprum/static/3947.7458971d.chunk.js.map +1 -0
  58. package/dist-scalprum/static/3954.12dd8006.chunk.js +3 -0
  59. package/dist-scalprum/static/3954.12dd8006.chunk.js.LICENSE.txt +9 -0
  60. package/dist-scalprum/static/3954.12dd8006.chunk.js.map +1 -0
  61. package/dist-scalprum/static/3984.647ef00c.chunk.js +2 -0
  62. package/dist-scalprum/static/3984.647ef00c.chunk.js.map +1 -0
  63. package/dist-scalprum/static/4026.d652a7a1.chunk.js +2 -0
  64. package/dist-scalprum/static/4026.d652a7a1.chunk.js.map +1 -0
  65. package/dist-scalprum/static/4093.4093.3597955d.css +5 -0
  66. package/dist-scalprum/static/4093.4093.3597955d.css.map +1 -0
  67. package/dist-scalprum/static/4093.ee6f0452.chunk.js +3 -0
  68. package/dist-scalprum/static/4093.ee6f0452.chunk.js.LICENSE.txt +26 -0
  69. package/dist-scalprum/static/4093.ee6f0452.chunk.js.map +1 -0
  70. package/dist-scalprum/static/4382.a7363415.chunk.js +3 -0
  71. package/dist-scalprum/static/4382.a7363415.chunk.js.map +1 -0
  72. package/dist-scalprum/static/441.f708f1e0.chunk.js +2 -0
  73. package/dist-scalprum/static/441.f708f1e0.chunk.js.map +1 -0
  74. package/dist-scalprum/static/4611.0d064cdf.chunk.js +2 -0
  75. package/dist-scalprum/static/4611.0d064cdf.chunk.js.map +1 -0
  76. package/dist-scalprum/static/4614.23f2a85b.chunk.js +2 -0
  77. package/dist-scalprum/static/4614.23f2a85b.chunk.js.map +1 -0
  78. package/dist-scalprum/static/4651.c85cecc4.chunk.js +2 -0
  79. package/dist-scalprum/static/4651.c85cecc4.chunk.js.map +1 -0
  80. package/dist-scalprum/static/{4682.6959fcd1.chunk.js → 4682.bd2dfccd.chunk.js} +2 -2
  81. package/dist-scalprum/static/4682.bd2dfccd.chunk.js.map +1 -0
  82. package/dist-scalprum/static/4935.e14465ff.chunk.js +3 -0
  83. package/dist-scalprum/static/4935.e14465ff.chunk.js.LICENSE.txt +9 -0
  84. package/dist-scalprum/static/4935.e14465ff.chunk.js.map +1 -0
  85. package/dist-scalprum/static/501.87de76da.chunk.js +3 -0
  86. package/dist-scalprum/static/501.87de76da.chunk.js.LICENSE.txt +21 -0
  87. package/dist-scalprum/static/501.87de76da.chunk.js.map +1 -0
  88. package/dist-scalprum/static/5010.0cd6c959.chunk.js +3 -0
  89. package/dist-scalprum/static/5010.0cd6c959.chunk.js.map +1 -0
  90. package/dist-scalprum/static/5203.539ed3ec.chunk.js +2 -0
  91. package/dist-scalprum/static/5203.539ed3ec.chunk.js.map +1 -0
  92. package/dist-scalprum/static/5235.2a59dc45.chunk.js +2 -0
  93. package/dist-scalprum/static/5235.2a59dc45.chunk.js.map +1 -0
  94. package/dist-scalprum/static/5453.ecdee66d.chunk.js +2 -0
  95. package/dist-scalprum/static/5453.ecdee66d.chunk.js.map +1 -0
  96. package/dist-scalprum/static/6038.63d1f832.chunk.js +3 -0
  97. package/dist-scalprum/static/6038.63d1f832.chunk.js.LICENSE.txt +8 -0
  98. package/dist-scalprum/static/6038.63d1f832.chunk.js.map +1 -0
  99. package/dist-scalprum/static/635.e030b18a.chunk.js +3 -0
  100. package/dist-scalprum/static/635.e030b18a.chunk.js.LICENSE.txt +9 -0
  101. package/dist-scalprum/static/635.e030b18a.chunk.js.map +1 -0
  102. package/dist-scalprum/static/{6371.c83dc422.chunk.js → 6371.d45f37cc.chunk.js} +2 -2
  103. package/dist-scalprum/static/6371.d45f37cc.chunk.js.map +1 -0
  104. package/dist-scalprum/static/{8563.7e068fb0.chunk.js → 6763.d6cd937f.chunk.js} +3 -3
  105. package/dist-scalprum/static/6763.d6cd937f.chunk.js.map +1 -0
  106. package/dist-scalprum/static/{6800.736d5da3.chunk.js → 6800.6e2a08fe.chunk.js} +2 -2
  107. package/dist-scalprum/static/6800.6e2a08fe.chunk.js.map +1 -0
  108. package/dist-scalprum/static/{6840.4728fab9.chunk.js → 6840.3bd67cf4.chunk.js} +2 -2
  109. package/dist-scalprum/static/6840.3bd67cf4.chunk.js.map +1 -0
  110. package/dist-scalprum/static/7076.8745d395.chunk.js +2 -0
  111. package/dist-scalprum/static/7076.8745d395.chunk.js.map +1 -0
  112. package/dist-scalprum/static/7164.5dc4bc72.chunk.js +2 -0
  113. package/dist-scalprum/static/7164.5dc4bc72.chunk.js.map +1 -0
  114. package/dist-scalprum/static/7367.62c9669e.chunk.js +3 -0
  115. package/dist-scalprum/static/7367.62c9669e.chunk.js.LICENSE.txt +21 -0
  116. package/dist-scalprum/static/7367.62c9669e.chunk.js.map +1 -0
  117. package/dist-scalprum/static/7791.8135d440.chunk.js +2 -0
  118. package/dist-scalprum/static/7791.8135d440.chunk.js.map +1 -0
  119. package/dist-scalprum/static/8083.4763f88b.chunk.js +206 -0
  120. package/dist-scalprum/static/8083.4763f88b.chunk.js.LICENSE.txt +9 -0
  121. package/dist-scalprum/static/8083.4763f88b.chunk.js.map +1 -0
  122. package/dist-scalprum/static/8172.cbe1f2c4.chunk.js +2 -0
  123. package/dist-scalprum/static/8172.cbe1f2c4.chunk.js.map +1 -0
  124. package/dist-scalprum/static/8799.83d049f3.chunk.js +2 -0
  125. package/dist-scalprum/static/8799.83d049f3.chunk.js.map +1 -0
  126. package/dist-scalprum/static/9316.d9f2fe18.chunk.js +2 -0
  127. package/dist-scalprum/static/9316.d9f2fe18.chunk.js.map +1 -0
  128. package/dist-scalprum/static/{7556.aa8a002f.chunk.js → 9655.db0c82b2.chunk.js} +3 -3
  129. package/dist-scalprum/static/9655.db0c82b2.chunk.js.map +1 -0
  130. package/dist-scalprum/static/9710.7ec34777.chunk.js +2 -0
  131. package/dist-scalprum/static/9710.7ec34777.chunk.js.map +1 -0
  132. package/dist-scalprum/static/9738.b037daf3.chunk.js +2 -0
  133. package/dist-scalprum/static/9738.b037daf3.chunk.js.map +1 -0
  134. package/dist-scalprum/static/exposed-PluginRoot.c3fd0cc1.chunk.js +2 -0
  135. package/dist-scalprum/static/exposed-PluginRoot.c3fd0cc1.chunk.js.map +1 -0
  136. package/dist-scalprum/static/react-syntax-highlighter_languages_highlight_http.a55e168b.chunk.js +2 -0
  137. package/dist-scalprum/static/{react-syntax-highlighter_languages_highlight_http.5859273c.chunk.js.map → react-syntax-highlighter_languages_highlight_http.a55e168b.chunk.js.map} +1 -1
  138. package/package.json +12 -11
  139. package/dist/components/ApprovalQueueCard/ApprovalQueueCard.esm.js +0 -761
  140. package/dist/components/ApprovalQueueCard/ApprovalQueueCard.esm.js.map +0 -1
  141. package/dist/components/ApprovalQueueCard/index.esm.js +0 -2
  142. package/dist/components/ApprovalQueueCard/index.esm.js.map +0 -1
  143. package/dist/components/PlanPolicyDetailPage/PlanPolicyDetailPage.esm.js +0 -89
  144. package/dist/components/PlanPolicyDetailPage/PlanPolicyDetailPage.esm.js.map +0 -1
  145. package/dist/components/PlanPolicyDetailPage/index.esm.js +0 -2
  146. package/dist/components/PlanPolicyDetailPage/index.esm.js.map +0 -1
  147. package/dist-scalprum/internal.plugin-kuadrant.58a9d553e354df0eed24.js +0 -2
  148. package/dist-scalprum/internal.plugin-kuadrant.58a9d553e354df0eed24.js.map +0 -1
  149. package/dist-scalprum/static/1085.536aa0fa.chunk.js +0 -3
  150. package/dist-scalprum/static/1613.71f0fccd.chunk.js +0 -3
  151. package/dist-scalprum/static/1613.71f0fccd.chunk.js.LICENSE.txt +0 -10
  152. package/dist-scalprum/static/1613.71f0fccd.chunk.js.map +0 -1
  153. package/dist-scalprum/static/1836.b74b4c40.chunk.js +0 -3
  154. package/dist-scalprum/static/1836.b74b4c40.chunk.js.LICENSE.txt +0 -10
  155. package/dist-scalprum/static/1836.b74b4c40.chunk.js.map +0 -1
  156. package/dist-scalprum/static/2198.5905970e.chunk.js +0 -2
  157. package/dist-scalprum/static/2198.5905970e.chunk.js.map +0 -1
  158. package/dist-scalprum/static/2628.6619bf8b.chunk.js +0 -3
  159. package/dist-scalprum/static/2628.6619bf8b.chunk.js.map +0 -1
  160. package/dist-scalprum/static/2759.fceb317f.chunk.js +0 -2
  161. package/dist-scalprum/static/2759.fceb317f.chunk.js.map +0 -1
  162. package/dist-scalprum/static/2928.4303c12e.chunk.js +0 -3
  163. package/dist-scalprum/static/2928.4303c12e.chunk.js.map +0 -1
  164. package/dist-scalprum/static/2946.167c50c2.chunk.js +0 -3
  165. package/dist-scalprum/static/2967.ac3a4bee.chunk.js +0 -2
  166. package/dist-scalprum/static/2967.ac3a4bee.chunk.js.map +0 -1
  167. package/dist-scalprum/static/2987.1da15560.chunk.js +0 -2
  168. package/dist-scalprum/static/2987.1da15560.chunk.js.map +0 -1
  169. package/dist-scalprum/static/3097.4bd6b35f.chunk.js +0 -2
  170. package/dist-scalprum/static/3097.4bd6b35f.chunk.js.map +0 -1
  171. package/dist-scalprum/static/3459.5c90b5a3.chunk.js +0 -2
  172. package/dist-scalprum/static/3459.5c90b5a3.chunk.js.map +0 -1
  173. package/dist-scalprum/static/3466.43dfe991.chunk.js +0 -3
  174. package/dist-scalprum/static/3466.43dfe991.chunk.js.map +0 -1
  175. package/dist-scalprum/static/3503.66b6e510.chunk.js +0 -2
  176. package/dist-scalprum/static/3503.66b6e510.chunk.js.map +0 -1
  177. package/dist-scalprum/static/3647.b96f9b3e.chunk.js +0 -2
  178. package/dist-scalprum/static/3647.b96f9b3e.chunk.js.map +0 -1
  179. package/dist-scalprum/static/3650.515c743a.chunk.js +0 -2
  180. package/dist-scalprum/static/3650.515c743a.chunk.js.map +0 -1
  181. package/dist-scalprum/static/3657.59d45756.chunk.js +0 -3
  182. package/dist-scalprum/static/3657.59d45756.chunk.js.LICENSE.txt +0 -10
  183. package/dist-scalprum/static/3657.59d45756.chunk.js.map +0 -1
  184. package/dist-scalprum/static/428.0a290bc6.chunk.js +0 -2
  185. package/dist-scalprum/static/428.0a290bc6.chunk.js.map +0 -1
  186. package/dist-scalprum/static/441.9f02e61b.chunk.js +0 -2
  187. package/dist-scalprum/static/441.9f02e61b.chunk.js.map +0 -1
  188. package/dist-scalprum/static/4682.6959fcd1.chunk.js.map +0 -1
  189. package/dist-scalprum/static/5010.a4aa0f8e.chunk.js +0 -3
  190. package/dist-scalprum/static/5010.a4aa0f8e.chunk.js.map +0 -1
  191. package/dist-scalprum/static/5453.280127dd.chunk.js +0 -2
  192. package/dist-scalprum/static/5453.280127dd.chunk.js.map +0 -1
  193. package/dist-scalprum/static/5603.05d9ca7f.chunk.js +0 -2
  194. package/dist-scalprum/static/5603.05d9ca7f.chunk.js.map +0 -1
  195. package/dist-scalprum/static/6272.b5ee5195.chunk.js +0 -3
  196. package/dist-scalprum/static/6272.b5ee5195.chunk.js.map +0 -1
  197. package/dist-scalprum/static/6371.c83dc422.chunk.js.map +0 -1
  198. package/dist-scalprum/static/6422.97baf774.chunk.js +0 -2
  199. package/dist-scalprum/static/6422.97baf774.chunk.js.map +0 -1
  200. package/dist-scalprum/static/6800.736d5da3.chunk.js.map +0 -1
  201. package/dist-scalprum/static/6840.4728fab9.chunk.js.map +0 -1
  202. package/dist-scalprum/static/7556.aa8a002f.chunk.js.map +0 -1
  203. package/dist-scalprum/static/7601.4df83556.chunk.js +0 -3
  204. package/dist-scalprum/static/7601.4df83556.chunk.js.map +0 -1
  205. package/dist-scalprum/static/7791.39417f8c.chunk.js +0 -2
  206. package/dist-scalprum/static/7791.39417f8c.chunk.js.map +0 -1
  207. package/dist-scalprum/static/7984.c8511b89.chunk.js +0 -2
  208. package/dist-scalprum/static/7984.c8511b89.chunk.js.map +0 -1
  209. package/dist-scalprum/static/8365.d3360f18.chunk.js +0 -2
  210. package/dist-scalprum/static/8365.d3360f18.chunk.js.map +0 -1
  211. package/dist-scalprum/static/8563.7e068fb0.chunk.js.map +0 -1
  212. package/dist-scalprum/static/8799.7c749838.chunk.js +0 -2
  213. package/dist-scalprum/static/8799.7c749838.chunk.js.map +0 -1
  214. package/dist-scalprum/static/exposed-PluginRoot.a5792fb2.chunk.js +0 -2
  215. package/dist-scalprum/static/exposed-PluginRoot.a5792fb2.chunk.js.map +0 -1
  216. package/dist-scalprum/static/react-syntax-highlighter_languages_highlight_http.5859273c.chunk.js +0 -2
  217. /package/dist-scalprum/static/{1085.536aa0fa.chunk.js.LICENSE.txt → 1085.d17e689a.chunk.js.LICENSE.txt} +0 -0
  218. /package/dist-scalprum/static/{3466.43dfe991.chunk.js.LICENSE.txt → 1645.db086648.chunk.js.LICENSE.txt} +0 -0
  219. /package/dist-scalprum/static/{6272.b5ee5195.chunk.js.LICENSE.txt → 2233.bf0c10d7.chunk.js.LICENSE.txt} +0 -0
  220. /package/dist-scalprum/static/{2628.6619bf8b.chunk.js.LICENSE.txt → 2628.20156dc1.chunk.js.LICENSE.txt} +0 -0
  221. /package/dist-scalprum/static/{2946.167c50c2.chunk.js.LICENSE.txt → 2946.a35243f1.chunk.js.LICENSE.txt} +0 -0
  222. /package/dist-scalprum/static/{7601.4df83556.chunk.js.LICENSE.txt → 3504.1c2f2e54.chunk.js.LICENSE.txt} +0 -0
  223. /package/dist-scalprum/static/{2928.4303c12e.chunk.js.LICENSE.txt → 4382.a7363415.chunk.js.LICENSE.txt} +0 -0
  224. /package/dist-scalprum/static/{5010.a4aa0f8e.chunk.js.LICENSE.txt → 5010.0cd6c959.chunk.js.LICENSE.txt} +0 -0
  225. /package/dist-scalprum/static/{8563.7e068fb0.chunk.js.LICENSE.txt → 6763.d6cd937f.chunk.js.LICENSE.txt} +0 -0
  226. /package/dist-scalprum/static/{7556.aa8a002f.chunk.js.LICENSE.txt → 9655.db0c82b2.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[5453],{5030:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=a(85608),i=a(95478),r=n.__importDefault(a(10009));t.default=function(e,t,a){void 0===t&&(t=[]),void 0===a&&(a={loading:!1});var o=i.useRef(0),s=r.default(),l=i.useState(a),c=l[0],d=l[1],u=i.useCallback(function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var i=++o.current;return c.loading||d(function(e){return n.__assign(n.__assign({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return s()&&i===o.current&&d({value:e,loading:!1}),e},function(e){return s()&&i===o.current&&d({error:e,loading:!1}),e})},t);return[c,u]}},10009:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=a(95478);t.default=function(){var e=n.useRef(!1),t=n.useCallback(function(){return e.current},[]);return n.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}},16400:(e,t,a)=>{a.d(t,{tN:()=>i}),a(31085),a(26659);var n=a(64218);function i(){const e=(0,n.useVersionedContext)("entity-context");if(!e)throw new Error("Entity context is not available");const t=e.atVersion(1);if(!t)throw new Error("EntityContext v1 not available");if(!t.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:t.entity}}(0,n.createVersionedContext)("entity-context")},34955:(e,t,a)=>{a.d(t,{Al:()=>o,DS:()=>h,EM:()=>c,FL:()=>r,J:()=>i,KV:()=>A,R_:()=>d,U3:()=>s,dp:()=>p,jH:()=>f,q0:()=>m,uL:()=>v,v_:()=>l,vs:()=>u,z4:()=>x});var n=a(83572);(0,n.i)({name:"kuadrant.planpolicy.create",attributes:{action:"create"}}),(0,n.i)({name:"kuadrant.planpolicy.read",attributes:{action:"read"}}),(0,n.i)({name:"kuadrant.planpolicy.update",attributes:{action:"update"}}),(0,n.i)({name:"kuadrant.planpolicy.delete",attributes:{action:"delete"}});const i=(0,n.i)({name:"kuadrant.planpolicy.list",attributes:{action:"read"}}),r=(0,n.i)({name:"kuadrant.apiproduct.create",attributes:{action:"create"}}),o=((0,n.i)({name:"kuadrant.apiproduct.read.own",attributes:{action:"read"}}),(0,n.i)({name:"kuadrant.apiproduct.read.all",attributes:{action:"read"}})),s=(0,n.i)({name:"kuadrant.apiproduct.update.own",attributes:{action:"update"}}),l=(0,n.i)({name:"kuadrant.apiproduct.update.all",attributes:{action:"update"}}),c=(0,n.i)({name:"kuadrant.apiproduct.delete.own",attributes:{action:"delete"}}),d=(0,n.i)({name:"kuadrant.apiproduct.delete.all",attributes:{action:"delete"}}),u=(0,n.i)({name:"kuadrant.apiproduct.list",attributes:{action:"read"}}),p=(0,n.i)({name:"kuadrant.apikey.create",attributes:{action:"create"},resourceType:"apiproduct"}),h=(0,n.i)({name:"kuadrant.apikey.read.own",attributes:{action:"read"}}),m=((0,n.i)({name:"kuadrant.apikey.read.all",attributes:{action:"read"}}),(0,n.i)({name:"kuadrant.apikey.update.own",attributes:{action:"update"}})),x=(0,n.i)({name:"kuadrant.apikey.update.all",attributes:{action:"update"}}),v=(0,n.i)({name:"kuadrant.apikey.delete.own",attributes:{action:"delete"}}),f=(0,n.i)({name:"kuadrant.apikey.delete.all",attributes:{action:"delete"}}),A=(0,n.i)({name:"kuadrant.apikey.approve",attributes:{action:"update"}})},37725:(e,t,a)=>{a.d(t,{N_:()=>j});var n=a(31085),i=a(22097),r=a(49203),o=a(37976),s=a(72501),l=a(53373),c=a.n(l),d=a(45250),u=a(95478),p=a(42469),h=a(39330);const m=(0,o.makeStyles)(e=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:e.spacing(.5)}}),{name:"Link"}),x=()=>{const e=(0,i.useApp)().getSystemIcon("externalLink")||h.A,t=m();return(0,n.jsx)(e,{className:t.externalLinkIcon})},v=e=>/^([a-z+.-]+):/.test(e),f=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,A=window.open;if(A&&!A.__backstage){const e=function(...e){const t=String(e[0]);if(f.test(t))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return A.apply(this,e)};e.__backstage=!0,window.open=e}const g=e=>e instanceof Array?e.map(g).join(" ").trim():"object"==typeof e&&e?g(e?.props?.children):["string","number"].includes(typeof e)?String(e):"",j=(0,u.forwardRef)(({onClick:e,noTrack:t,externalLinkIcon:a,...o},l)=>{const u=m(),h=(0,i.useAnalytics)(),A=function(){const[e]=(0,p.createRoutesFromChildren)((0,n.jsx)(p.Route,{index:!0,element:(0,n.jsx)("div",{})}));return!e.index}()?(e=>{let t=String(e);const a=(()=>{const e=(()=>{try{return(0,i.useApi)(i.configApiRef).getOptionalString("app.baseUrl")}catch{return}})()??"/",{pathname:t}=new URL(e,"http://sample.dev");return(0,d.trimEnd)(t,"/")})(),n=v(t),r=t.startsWith(a);return n||r||(t=a.concat(t)),t})(o.to):o.to,j=g(o.children)||A,b=v(A),y=b&&!!/^https?:/.exec(A);if(f.test(A))throw new Error("Link component rejected javascript: URL as a security precaution");const k=a=>{e?.(a),t||h.captureEvent("click",j,{attributes:{to:A}})};return b?(0,n.jsxs)(r.A,{...y?{target:"_blank",rel:"noopener"}:{},...o,...o["aria-label"]?{"aria-label":`${o["aria-label"]}, Opens in a new window`}:{},ref:l,href:A,onClick:k,className:c()(u.externalLink,o.className),children:[o.children,a&&(0,n.jsx)(x,{}),(0,n.jsx)(s.A,{component:"span",className:u.visuallyHidden,children:", Opens in a new window"})]}):(0,n.jsx)(r.A,{...o,ref:l,component:p.Link,to:A,onClick:k})})},39330:(e,t,a)=>{var n=a(4293),i=a(78920);t.A=void 0;var r=i(a(95478)),o=(0,n(a(74044)).default)(r.createElement("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.A=o},46205:(e,t,a)=>{a.d(t,{W:()=>r,l:()=>i});var n=a(87421);function i(e,t){const a="resourceType"in e?{permission:e,resourceRef:t}:{permission:e},i=(0,n.J)(a);return{allowed:i.allowed,loading:i.loading,error:i.error}}function r(e,t,a,n){return!!n||!(!a||e!==t)}},52235:(e,t,a)=>{var n=a(4293),i=a(78920);t.A=void 0;var r=i(a(95478)),o=(0,n(a(74044)).default)(r.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.A=o},75453:(e,t,a)=>{a.r(t),a.d(t,{ApiProductInfoCard:()=>f});var n=a(31085),i=(a(95478),a(16400)),r=a(22097),o=a(96040),s=a(86687),l=a(42367),c=a(58837),d=a(72501),u=a(10394),p=a(91638),h=a(46205),m=a(34955),x=a(89509);const v=(0,c.A)(e=>({label:{fontWeight:600,color:e.palette.text.secondary,marginBottom:e.spacing(.5),fontSize:"0.75rem",textTransform:"uppercase"}})),f=()=>{var e,t,a,c,f;const A=v(),{entity:g}=(0,i.tN)(),j=(0,r.useApi)(r.configApiRef),b=(0,r.useApi)(r.fetchApiRef),y=(0,r.useApi)(r.identityApiRef),k=j.getString("backend.baseUrl"),{allowed:w,loading:N}=(0,h.l)(m.Al),I=null===(e=g.metadata.annotations)||void 0===e?void 0:e["kuadrant.io/namespace"],C=null===(t=g.metadata.annotations)||void 0===t?void 0:t["kuadrant.io/apiproduct"],{value:P}=(0,p.A)(async()=>(await y.getBackstageIdentity()).userEntityRef.split("/")[1]||"guest",[y]),{value:S,loading:_,error:L}=(0,p.A)(async()=>{if(!I||!C)return null;const e=await b.fetch(`${k}/api/kuadrant/apiproducts/${I}/${C}`);if(!e.ok){const t=await e.json();throw new Error(t.error||`Failed to fetch API product: ${e.status}`)}return e.json()},[k,b,I,C]),R=null==S||null===(c=S.metadata)||void 0===c||null===(a=c.annotations)||void 0===a?void 0:a["backstage.io/owner"],E=null==R?void 0:R.split("/")[1],T=w||P&&E===P;return I&&C?_||N?(0,n.jsx)(o.n,{title:"API Product Information",children:(0,n.jsx)(s.k,{})}):S&&!T||L&&L.message.includes("you can only read your own")?(0,n.jsx)(o.n,{title:"API Product Information",children:(0,n.jsx)(u.A,{p:2,children:(0,n.jsx)(d.A,{variant:"body2",color:"textSecondary",children:"You don't have permission to view this API product's details. Only the API owner or users with admin permissions can view this information."})})}):L?(0,n.jsx)(o.n,{title:"API Product Information",children:(0,n.jsx)(l._,{error:L})}):S?(0,n.jsxs)(o.n,{title:"API Product Details",children:[(0,n.jsxs)(u.A,{mb:2,children:[(0,n.jsx)(d.A,{variant:"caption",className:A.label,children:"Product Name"}),(0,n.jsx)(d.A,{variant:"h6",children:(null===(f=S.spec)||void 0===f?void 0:f.displayName)||C})]}),(0,n.jsx)(x.O,{product:S,showStatus:!1,showCatalogLink:!1})]}):(0,n.jsx)(o.n,{title:"API Product Information",children:(0,n.jsx)(d.A,{children:"APIProduct not found"})}):(0,n.jsx)(o.n,{title:"API Product Information",children:(0,n.jsx)(d.A,{children:"No APIProduct linked to this API entity"})})}},89509:(e,t,a)=>{a.d(t,{O:()=>v});var n=a(31085),i=(a(95478),a(10394)),r=a(72501),o=a(67720),s=a(61009),l=a(47625),c=a(9719),d=a(54801),u=a(13677),p=a(42899),h=a(58837),m=a(37725);const x=(0,h.A)(e=>({label:{fontWeight:600,color:e.palette.text.secondary,marginBottom:e.spacing(.5),fontSize:"0.75rem",textTransform:"uppercase"},tierChip:{marginRight:e.spacing(.5),marginBottom:e.spacing(.5)},statusChipPublished:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},statusChipDraft:{backgroundColor:e.palette.grey[600],color:e.palette.common.white},infoGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:e.spacing(3),marginBottom:e.spacing(3)},infoItem:{minWidth:0},apiLink:{color:e.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}}})),v=({product:e,showStatus:t=!0,showCatalogLink:a=!0})=>{var h,v,f,A,g,j,b,y,k,w,N,I,C,P,S,_;const L=x(),R=(null===(h=e.spec)||void 0===h?void 0:h.publishStatus)||"Draft",E="Published"===R,T=(null===(v=e.status)||void 0===v?void 0:v.discoveredPlans)||[];return(0,n.jsxs)(n.Fragment,{children:[(null===(f=e.spec)||void 0===f?void 0:f.description)&&(0,n.jsxs)(i.A,{mb:3,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Description"}),(0,n.jsx)(r.A,{variant:"body1",children:e.spec.description})]}),(0,n.jsxs)(i.A,{className:L.infoGrid,children:[t&&(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Status"}),(0,n.jsx)(i.A,{children:(0,n.jsx)(o.A,{label:R,size:"small",className:E?L.statusChipPublished:L.statusChipDraft,"data-testid":"publish-status-chip"})})]}),(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Version"}),(0,n.jsx)(r.A,{variant:"body2",children:(null===(A=e.spec)||void 0===A?void 0:A.version)||"v1"})]}),(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Namespace"}),(0,n.jsx)(r.A,{variant:"body2",children:e.metadata.namespace})]}),(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"API Key Approval"}),(0,n.jsx)(r.A,{variant:"body2",children:"automatic"===(null===(g=e.spec)||void 0===g?void 0:g.approvalMode)?"Automatic":"Need manual approval"})]}),(null===(j=e.spec)||void 0===j?void 0:j.tags)&&e.spec.tags.length>0&&(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Tags"}),(0,n.jsx)(i.A,{children:e.spec.tags.map(e=>(0,n.jsx)(o.A,{label:e,size:"small",variant:"outlined",className:L.tierChip},e))})]})]}),(0,n.jsxs)(i.A,{className:L.infoGrid,children:[(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"API"}),(0,n.jsx)("br",{}),a?(0,n.jsx)(m.N_,{to:`/catalog/default/api/${e.metadata.name}`,className:L.apiLink,children:e.metadata.name}):(0,n.jsx)(r.A,{variant:"body2",children:e.metadata.name})]}),(0,n.jsxs)(i.A,{className:L.infoItem,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Route"}),(0,n.jsx)(r.A,{variant:"body2",children:(null===(y=e.spec)||void 0===y||null===(b=y.targetRef)||void 0===b?void 0:b.name)||"-"})]})]}),T.length>0&&(0,n.jsxs)(i.A,{mb:3,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Available Tiers"}),(0,n.jsxs)(s.A,{size:"small",children:[(0,n.jsx)(l.A,{children:(0,n.jsxs)(c.A,{children:[(0,n.jsx)(d.A,{children:"Tier"}),(0,n.jsx)(d.A,{children:"Rate Limits"})]})}),(0,n.jsx)(u.A,{children:T.map(e=>(0,n.jsxs)(c.A,{children:[(0,n.jsx)(d.A,{children:(0,n.jsx)(o.A,{label:e.tier,size:"small"})}),(0,n.jsx)(d.A,{children:e.limits&&Object.entries(e.limits).map(([e,t])=>(0,n.jsxs)(r.A,{variant:"body2",children:[String(t)," per ",e]},e))})]},e.tier))})]})]}),(0,n.jsxs)(p.A,{container:!0,spacing:3,children:[((null===(w=e.spec)||void 0===w||null===(k=w.contact)||void 0===k?void 0:k.email)||(null===(I=e.spec)||void 0===I||null===(N=I.contact)||void 0===N?void 0:N.team))&&(0,n.jsxs)(p.A,{item:!0,xs:12,md:6,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Contact Information"}),(0,n.jsxs)(i.A,{mt:1,children:[e.spec.contact.team&&(0,n.jsxs)(r.A,{variant:"body2",children:[(0,n.jsx)("strong",{children:"Team:"})," ",e.spec.contact.team]}),e.spec.contact.email&&(0,n.jsxs)(r.A,{variant:"body2",children:[(0,n.jsx)("strong",{children:"Email:"})," ",(0,n.jsx)(m.N_,{to:`mailto:${e.spec.contact.email}`,children:e.spec.contact.email})]})]})]}),((null===(P=e.spec)||void 0===P||null===(C=P.documentation)||void 0===C?void 0:C.docsURL)||(null===(_=e.spec)||void 0===_||null===(S=_.documentation)||void 0===S?void 0:S.openAPISpecURL))&&(0,n.jsxs)(p.A,{item:!0,xs:12,md:6,children:[(0,n.jsx)(r.A,{variant:"caption",className:L.label,children:"Documentation"}),(0,n.jsxs)(i.A,{mt:1,children:[e.spec.documentation.docsURL&&(0,n.jsxs)(r.A,{variant:"body2",children:[(0,n.jsx)("strong",{children:"Docs:"})," ",(0,n.jsx)(m.N_,{to:e.spec.documentation.docsURL,target:"_blank",children:"View Documentation"})]}),e.spec.documentation.openAPISpecURL&&(0,n.jsxs)(r.A,{variant:"body2",children:[(0,n.jsx)("strong",{children:"OpenAPI Spec:"})," ",(0,n.jsx)(m.N_,{to:e.spec.documentation.openAPISpecURL,target:"_blank",children:"View Spec"})]})]})]})]})]})}},91638:(e,t,a)=>{var n=a(85608),i=a(95478),r=n.__importDefault(a(5030));t.A=function(e,t){void 0===t&&(t=[]);var a=r.default(e,t,{loading:!0}),n=a[0],o=a[1];return i.useEffect(function(){o()},[o]),n}},96040:(e,t,a)=>{a.d(t,{n:()=>_});var n=a(31085),i=a(40703),r=a(59469),o=a(48653),s=a(45685),l=a(37197),c=a(37976),d=a(53373),u=a.n(d),p=a(10394),h=a(72501),m=a(52235),x=a(37725);const v=(0,c.makeStyles)(e=>({root:{maxWidth:"fit-content",padding:e.spacing(2,2,2,2.5)},boxTitle:{margin:0,color:e.palette.textSubtle},arrow:{color:e.palette.textSubtle}}),{name:"BackstageBottomLink"});function f(e){const{link:t,title:a,onClick:i}=e,r=v();return(0,n.jsxs)(p.A,{children:[(0,n.jsx)(l.A,{}),(0,n.jsx)(x.N_,{to:t,onClick:i,underline:"none",children:(0,n.jsxs)(p.A,{display:"flex",alignItems:"center",className:r.root,children:[(0,n.jsx)(p.A,{className:r.boxTitle,fontWeight:"fontWeightBold",m:1,children:(0,n.jsx)(h.A,{children:(0,n.jsx)("strong",{children:a})})}),(0,n.jsx)(m.A,{className:r.arrow})]})})]})}var A=a(95478),g=a(64947);const j=(0,A.forwardRef)((e,t)=>(0,n.jsx)(x.N_,{ref:t,...e,color:"initial"})),b=(0,A.forwardRef)((e,t)=>(0,n.jsx)(g.A,{ref:t,component:j,...e}));var y=a(34169),k=a(16098),w=a(67550);const N=e=>{const{slackChannel:t}=e,{t:a}=(0,w.i)(k.O);return t?"string"==typeof t?(0,n.jsx)(h.A,{children:a("errorBoundary.title",{slackChannel:t})}):t.href?(0,n.jsx)(b,{to:t.href,variant:"contained",children:t.name}):(0,n.jsx)(h.A,{children:a("errorBoundary.title",{slackChannel:t.name})}):null},I=class extends A.Component{constructor(e){super(e),this.state={error:void 0,errorInfo:void 0}}componentDidCatch(e,t){console.error(`ErrorBoundary, error: ${e}`,{error:e,errorInfo:t}),this.setState({error:e,errorInfo:t})}render(){const{slackChannel:e,children:t}=this.props,{error:a}=this.state;return a?(0,n.jsx)(y.b,{title:"Something Went Wrong",error:a,children:(0,n.jsx)(N,{slackChannel:e})}):t}},C=(0,c.makeStyles)(e=>({noPadding:{padding:0,"&:last-child":{paddingBottom:0}},contentAlignBottom:{display:"flex",alignItems:"self-end"},header:{padding:e.spacing(2,2,2,2.5)},headerTitle:{fontWeight:e.typography.fontWeightBold},headerSubheader:{paddingTop:e.spacing(1)},headerAvatar:{},headerAction:{},headerContent:{},subheader:{display:"flex"}}),{name:"BackstageInfoCard"}),P=(0,c.withStyles)(e=>({root:{display:"inline-block",padding:e.spacing(8,8,0,0),float:"right"}}),{name:"BackstageInfoCardCardActionsTopRight"})(r.A),S={card:{flex:{display:"flex",flexDirection:"column"},fullHeight:{display:"flex",flexDirection:"column",height:"100%"},gridItem:{display:"flex",flexDirection:"column",height:"calc(100% - 10px)",marginBottom:"10px",breakInside:"avoid-page","@media print":{height:"auto"}}},cardContent:{fullHeight:{flex:1},gridItem:{flex:1}}};function _(e){const{title:t,subheader:a,divider:c=!0,deepLink:d,slackChannel:p,errorBoundaryProps:h,variant:m,alignContent:x="normal",children:v,headerStyle:A,headerProps:g,icon:j,action:b,actionsClassName:y,actions:k,cardClassName:w,actionsTopRight:N,className:_,noPadding:L,titleTypographyProps:R,subheaderTypographyProps:E}=e,T=C();let B={},D={};m&&m.split(/[\s]+/g).forEach(e=>{B={...B,...S.card[e]},D={...D,...S.cardContent[e]}});const O=h||(p?{slackChannel:p}:{});return(0,n.jsx)(i.A,{style:B,className:_,children:(0,n.jsxs)(I,{...O,children:[t&&(0,n.jsx)(s.A,{classes:{root:u()(T.header),title:T.headerTitle,subheader:T.headerSubheader,avatar:T.headerAvatar,action:T.headerAction,content:T.headerContent},title:t,subheader:a||j?(0,n.jsxs)("div",{"data-testid":"info-card-subheader",children:[a&&(0,n.jsx)("div",{className:T.subheader,children:a}),j]}):null,action:b,style:{...A},titleTypographyProps:R,subheaderTypographyProps:E,...g}),N&&(0,n.jsx)(P,{children:N}),c&&(0,n.jsx)(l.A,{}),(0,n.jsx)(o.A,{className:u()(w,{[T.noPadding]:L,[T.contentAlignBottom]:"bottom"===x}),style:D,children:v}),k&&(0,n.jsx)(r.A,{className:y,children:k}),d&&(0,n.jsx)(f,{...d})]})})}}}]);
2
- //# sourceMappingURL=5453.280127dd.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/5453.280127dd.chunk.js","mappings":"oIACAA,OAAOC,eAAeC,EAAS,aAAc,CAAEC,OAAO,IACtD,IAAIC,EAAU,EAAQ,OAClBC,EAAU,EAAQ,OAClBC,EAAoBF,EAAQG,gBAAgB,EAAQ,QA0BxDL,EAAA,QAzBA,SA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nFoN,IAA6B,IAAAzO,KAAI,MAAO,CAAEC,UAAWF,EAAQ0O,UAAWpN,SAAUoN,IAClFmB,KAJO,KAsBLnS,SACA+S,MAAO,IAAKd,GACZO,uBACAC,8BACGP,IAGPK,IAAmC,IAAAhQ,KAAI0O,EAAqB,CAAErN,SAAU2O,IACxEV,IAA2B,IAAAtP,KAAIyM,EAAA,EAAS,CAAC,IACzB,IAAAzM,KACd4Q,EAAA,EACA,CACE3Q,UAAW,IAAW8P,EAAe,CACnC,CAAChQ,EAAQ8N,WAAYA,EACrB,CAAC9N,EAAQgO,oBAAsC,WAAjB0B,IAEhCe,MAAOJ,EACP/O,aAGJyO,IAA2B,IAAA9P,KAAI6O,EAAA,EAAa,CAAE5O,UAAW4P,EAAkBxO,SAAUyO,IACrFP,IAA4B,IAAAvP,KAAIuM,EAAY,IAAKgD,QAErD,C","sources":["webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useAsyncFn.js","webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useMountedState.js","webpack://internal.plugin-kuadrant/../../node_modules/@backstage/plugin-catalog-react/dist/hooks/useEntity.esm.js","webpack://internal.plugin-kuadrant/./src/permissions.ts","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/components/Link/Link.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/icons/OpenInNew.js","webpack://internal.plugin-kuadrant/./src/utils/permissions.ts","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/icons/ArrowForward.js","webpack://internal.plugin-kuadrant/./src/components/ApiProductInfoCard/ApiProductInfoCard.tsx","webpack://internal.plugin-kuadrant/./src/components/ApiProductDetails/ApiProductDetails.tsx","webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useAsync.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/layout/BottomLink/BottomLink.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/components/LinkButton/LinkButton.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/layout/ErrorBoundary/ErrorBoundary.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/layout/InfoCard/InfoCard.esm.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = require(\"react\");\nvar useMountedState_1 = tslib_1.__importDefault(require(\"./useMountedState\"));\nfunction useAsyncFn(fn, deps, initialState) {\n if (deps === void 0) { deps = []; }\n if (initialState === void 0) { initialState = { loading: false }; }\n var lastCallId = react_1.useRef(0);\n var isMounted = useMountedState_1.default();\n var _a = react_1.useState(initialState), state = _a[0], set = _a[1];\n var callback = react_1.useCallback(function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var callId = ++lastCallId.current;\n if (!state.loading) {\n set(function (prevState) { return (tslib_1.__assign(tslib_1.__assign({}, prevState), { loading: true })); });\n }\n return fn.apply(void 0, args).then(function (value) {\n isMounted() && callId === lastCallId.current && set({ value: value, loading: false });\n return value;\n }, function (error) {\n isMounted() && callId === lastCallId.current && set({ error: error, loading: false });\n return error;\n });\n }, deps);\n return [state, callback];\n}\nexports.default = useAsyncFn;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nfunction useMountedState() {\n var mountedRef = react_1.useRef(false);\n var get = react_1.useCallback(function () { return mountedRef.current; }, []);\n react_1.useEffect(function () {\n mountedRef.current = true;\n return function () {\n mountedRef.current = false;\n };\n }, []);\n return get;\n}\nexports.default = useMountedState;\n","import { jsx } from 'react/jsx-runtime';\nimport { stringifyEntityRef } from '@backstage/catalog-model';\nimport { AnalyticsContext } from '@backstage/core-plugin-api';\nimport { createVersionedContext, useVersionedContext, createVersionedValueMap } from '@backstage/version-bridge';\n\nconst NewEntityContext = createVersionedContext(\n \"entity-context\"\n);\nconst AsyncEntityProvider = (props) => {\n const { children, entity, loading, error, refresh } = props;\n const value = { entity, loading, error, refresh };\n return /* @__PURE__ */ jsx(NewEntityContext.Provider, { value: createVersionedValueMap({ 1: value }), children: /* @__PURE__ */ jsx(\n AnalyticsContext,\n {\n attributes: {\n ...entity ? { entityRef: stringifyEntityRef(entity) } : void 0\n },\n children\n }\n ) });\n};\nconst EntityProvider = (props) => /* @__PURE__ */ jsx(\n AsyncEntityProvider,\n {\n entity: props.entity,\n loading: !Boolean(props.entity),\n error: void 0,\n refresh: void 0,\n children: props.children\n }\n);\nfunction useEntity() {\n const versionedHolder = useVersionedContext(\n \"entity-context\"\n );\n if (!versionedHolder) {\n throw new Error(\"Entity context is not available\");\n }\n const value = versionedHolder.atVersion(1);\n if (!value) {\n throw new Error(\"EntityContext v1 not available\");\n }\n if (!value.entity) {\n throw new Error(\n \"useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.\"\n );\n }\n return { entity: value.entity };\n}\nfunction useAsyncEntity() {\n const versionedHolder = useVersionedContext(\n \"entity-context\"\n );\n if (!versionedHolder) {\n throw new Error(\"Entity context is not available\");\n }\n const value = versionedHolder.atVersion(1);\n if (!value) {\n throw new Error(\"EntityContext v1 not available\");\n }\n const { entity, loading, error, refresh } = value;\n return { entity, loading, error, refresh };\n}\n\nexport { AsyncEntityProvider, EntityProvider, useAsyncEntity, useEntity };\n//# sourceMappingURL=useEntity.esm.js.map\n","import { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * permission definitions for the kuadrant plugin\n *\n * these permissions control access to kuadrant resources and operations.\n * they must match the permissions defined in the backend plugin.\n *\n * permission types:\n * - BasicPermission: standard permission that applies globally\n * - ResourcePermission: permission scoped to specific resource types (e.g., apiproduct)\n *\n * permission patterns:\n * - `.create` - create new resources\n * - `.read` - read resource details\n * - `.read.own` - read only resources owned by the user\n * - `.read.all` - read all resources regardless of ownership\n * - `.update` - modify existing resources\n * - `.delete` - delete resources\n * - `.delete.own` - delete only resources owned by the user\n * - `.delete.all` - delete any resource regardless of ownership\n * - `.list` - list/view collections of resources\n */\n\n// planpolicy permissions\nexport const kuadrantPlanPolicyCreatePermission = createPermission({\n name: 'kuadrant.planpolicy.create',\n attributes: { action: 'create' },\n});\n\nexport const kuadrantPlanPolicyReadPermission = createPermission({\n name: 'kuadrant.planpolicy.read',\n attributes: { action: 'read' },\n});\n\nexport const kuadrantPlanPolicyUpdatePermission = createPermission({\n name: 'kuadrant.planpolicy.update',\n attributes: { action: 'update' },\n});\n\nexport const kuadrantPlanPolicyDeletePermission = createPermission({\n name: 'kuadrant.planpolicy.delete',\n attributes: { action: 'delete' },\n});\n\nexport const kuadrantPlanPolicyListPermission = createPermission({\n name: 'kuadrant.planpolicy.list',\n attributes: { action: 'read' },\n});\n\n// apiproduct permissions\n\n/**\n * permission to create new API products\n * granted to api owners and admins\n */\nexport const kuadrantApiProductCreatePermission = createPermission({\n name: 'kuadrant.apiproduct.create',\n attributes: { action: 'create' },\n});\n\n/**\n * permission to read API products owned by the current user\n * for api owners to view their own products\n */\nexport const kuadrantApiProductReadOwnPermission = createPermission({\n name: 'kuadrant.apiproduct.read.own',\n attributes: { action: 'read' },\n});\n\n/**\n * permission to read all API products regardless of ownership\n * for platform engineers/admins who need to view all products\n */\nexport const kuadrantApiProductReadAllPermission = createPermission({\n name: 'kuadrant.apiproduct.read.all',\n attributes: { action: 'read' },\n});\n\n/**\n * permission to update API products owned by the current user\n * for api owners to modify their own products\n */\nexport const kuadrantApiProductUpdateOwnPermission = createPermission({\n name: 'kuadrant.apiproduct.update.own',\n attributes: { action: 'update' },\n});\n\n/**\n * permission to update any API product regardless of ownership\n * for platform engineers/admins\n */\nexport const kuadrantApiProductUpdateAllPermission = createPermission({\n name: 'kuadrant.apiproduct.update.all',\n attributes: { action: 'update' },\n});\n\n/**\n * permission to delete API products owned by the current user\n * for api owners to remove their own products\n */\nexport const kuadrantApiProductDeleteOwnPermission = createPermission({\n name: 'kuadrant.apiproduct.delete.own',\n attributes: { action: 'delete' },\n});\n\n/**\n * permission to delete any API product regardless of ownership\n * for platform engineers/admins\n */\nexport const kuadrantApiProductDeleteAllPermission = createPermission({\n name: 'kuadrant.apiproduct.delete.all',\n attributes: { action: 'delete' },\n});\n\n/**\n * permission to list API products\n * backend filters results based on .own vs .all read permissions\n */\nexport const kuadrantApiProductListPermission = createPermission({\n name: 'kuadrant.apiproduct.list',\n attributes: { action: 'read' },\n});\n\n// apikey permissions\n\n/**\n * permission to create API keys (request API access)\n *\n * this is a ResourcePermission scoped to 'apiproduct', allowing\n * fine-grained control over which API products users can request access to.\n *\n * use in frontend: useKuadrantPermission(kuadrantApiKeyCreatePermission)\n * use in backend with resource: { permission, resourceRef: 'apiproduct:namespace/name' }\n */\nexport const kuadrantApiKeyCreatePermission = createPermission({\n name: 'kuadrant.apikey.create',\n attributes: { action: 'create' },\n resourceType: 'apiproduct',\n});\n\n/**\n * permission to read API keys owned by the current user\n * allows users to view their own API keys and request history\n */\nexport const kuadrantApiKeyReadOwnPermission = createPermission({\n name: 'kuadrant.apikey.read.own',\n attributes: { action: 'read' },\n});\n\n/**\n * permission to read all API keys regardless of ownership\n * for platform engineers/admins who need to view the approval queue and audit keys\n */\nexport const kuadrantApiKeyReadAllPermission = createPermission({\n name: 'kuadrant.apikey.read.all',\n attributes: { action: 'read' },\n});\n\n/**\n * permission to update API keys owned by the current user\n * allows users to edit their own pending requests (change plan tier, use case)\n */\nexport const kuadrantApiKeyUpdateOwnPermission = createPermission({\n name: 'kuadrant.apikey.update.own',\n attributes: { action: 'update' },\n});\n\n/**\n * permission to update any API key regardless of ownership\n * typically granted to API owners and platform engineers for approving/rejecting requests\n */\nexport const kuadrantApiKeyUpdateAllPermission = createPermission({\n name: 'kuadrant.apikey.update.all',\n attributes: { action: 'update' },\n});\n\n/**\n * permission to delete API keys owned by the current user\n * allows users to cancel their own requests or revoke their own access\n */\nexport const kuadrantApiKeyDeleteOwnPermission = createPermission({\n name: 'kuadrant.apikey.delete.own',\n attributes: { action: 'delete' },\n});\n\n/**\n * permission to delete any API key regardless of ownership\n * for platform engineers/admins who need to revoke access\n */\nexport const kuadrantApiKeyDeleteAllPermission = createPermission({\n name: 'kuadrant.apikey.delete.all',\n attributes: { action: 'delete' },\n});\n\n/**\n * permission to approve/reject API key requests\n * grants access to the approval queue - for API owners and admins only\n * separate from update.own which consumers use to edit their pending requests\n */\nexport const kuadrantApiKeyApprovePermission = createPermission({\n name: 'kuadrant.apikey.approve',\n attributes: { action: 'update' },\n});\n\nexport const kuadrantPermissions = [\n kuadrantPlanPolicyCreatePermission,\n kuadrantPlanPolicyReadPermission,\n kuadrantPlanPolicyUpdatePermission,\n kuadrantPlanPolicyDeletePermission,\n kuadrantPlanPolicyListPermission,\n kuadrantApiProductCreatePermission,\n kuadrantApiProductReadOwnPermission,\n kuadrantApiProductReadAllPermission,\n kuadrantApiProductUpdateOwnPermission,\n kuadrantApiProductUpdateAllPermission,\n kuadrantApiProductDeleteOwnPermission,\n kuadrantApiProductDeleteAllPermission,\n kuadrantApiProductListPermission,\n kuadrantApiKeyCreatePermission,\n kuadrantApiKeyReadOwnPermission,\n kuadrantApiKeyReadAllPermission,\n kuadrantApiKeyUpdateOwnPermission,\n kuadrantApiKeyUpdateAllPermission,\n kuadrantApiKeyDeleteOwnPermission,\n kuadrantApiKeyDeleteAllPermission,\n kuadrantApiKeyApprovePermission,\n];\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { useAnalytics, useApp, useApi, configApiRef } from '@backstage/core-plugin-api';\nimport MaterialLink from '@material-ui/core/Link';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport classNames from 'classnames';\nimport { trimEnd } from 'lodash';\nimport { forwardRef } from 'react';\nimport { Link as Link$1, createRoutesFromChildren, Route } from 'react-router-dom';\nimport OpenInNew from '@material-ui/icons/OpenInNew';\n\nfunction isReactRouterBeta() {\n const [obj] = createRoutesFromChildren(/* @__PURE__ */ jsx(Route, { index: true, element: /* @__PURE__ */ jsx(\"div\", {}) }));\n return !obj.index;\n}\nconst useStyles = makeStyles(\n (theme) => ({\n visuallyHidden: {\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n overflow: \"hidden\",\n position: \"absolute\",\n userSelect: \"none\",\n whiteSpace: \"nowrap\",\n height: 1,\n width: 1\n },\n externalLink: {\n position: \"relative\"\n },\n externalLinkIcon: {\n verticalAlign: \"bottom\",\n marginLeft: theme.spacing(0.5)\n }\n }),\n { name: \"Link\" }\n);\nconst ExternalLinkIcon = () => {\n const app = useApp();\n const Icon = app.getSystemIcon(\"externalLink\") || OpenInNew;\n const classes = useStyles();\n return /* @__PURE__ */ jsx(Icon, { className: classes.externalLinkIcon });\n};\nconst isExternalUri = (uri) => /^([a-z+.-]+):/.test(uri);\nconst scriptProtocolPattern = (\n // eslint-disable-next-line no-control-regex\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i\n);\nconst originalWindowOpen = window.open;\nif (originalWindowOpen && !originalWindowOpen.__backstage) {\n const newOpen = function open(...args) {\n const url = String(args[0]);\n if (scriptProtocolPattern.test(url)) {\n throw new Error(\n \"Rejected window.open() with a javascript: URL as a security precaution\"\n );\n }\n return originalWindowOpen.apply(this, args);\n };\n newOpen.__backstage = true;\n window.open = newOpen;\n}\nconst useBaseUrl = () => {\n try {\n const config = useApi(configApiRef);\n return config.getOptionalString(\"app.baseUrl\");\n } catch {\n return void 0;\n }\n};\nconst useBasePath = () => {\n const base = \"http://sample.dev\";\n const url = useBaseUrl() ?? \"/\";\n const { pathname } = new URL(url, base);\n return trimEnd(pathname, \"/\");\n};\nconst useResolvedPath = (uri) => {\n let resolvedPath = String(uri);\n const basePath = useBasePath();\n const external = isExternalUri(resolvedPath);\n const startsWithBasePath = resolvedPath.startsWith(basePath);\n if (!external && !startsWithBasePath) {\n resolvedPath = basePath.concat(resolvedPath);\n }\n return resolvedPath;\n};\nconst getNodeText = (node) => {\n if (node instanceof Array) {\n return node.map(getNodeText).join(\" \").trim();\n }\n if (typeof node === \"object\" && node) {\n return getNodeText(node?.props?.children);\n }\n if ([\"string\", \"number\"].includes(typeof node)) {\n return String(node);\n }\n return \"\";\n};\nconst Link = forwardRef(\n ({ onClick, noTrack, externalLinkIcon, ...props }, ref) => {\n const classes = useStyles();\n const analytics = useAnalytics();\n const to = isReactRouterBeta() ? useResolvedPath(props.to) : props.to;\n const linkText = getNodeText(props.children) || to;\n const external = isExternalUri(to);\n const newWindow = external && !!/^https?:/.exec(to);\n if (scriptProtocolPattern.test(to)) {\n throw new Error(\n \"Link component rejected javascript: URL as a security precaution\"\n );\n }\n const handleClick = (event) => {\n onClick?.(event);\n if (!noTrack) {\n analytics.captureEvent(\"click\", linkText, { attributes: { to } });\n }\n };\n return external ? (\n // External links\n /* @__PURE__ */ jsxs(\n MaterialLink,\n {\n ...newWindow ? { target: \"_blank\", rel: \"noopener\" } : {},\n ...props,\n ...props[\"aria-label\"] ? { \"aria-label\": `${props[\"aria-label\"]}, Opens in a new window` } : {},\n ref,\n href: to,\n onClick: handleClick,\n className: classNames(classes.externalLink, props.className),\n children: [\n props.children,\n externalLinkIcon && /* @__PURE__ */ jsx(ExternalLinkIcon, {}),\n /* @__PURE__ */ jsx(Typography, { component: \"span\", className: classes.visuallyHidden, children: \", Opens in a new window\" })\n ]\n }\n )\n ) : (\n // Interact with React Router for internal links\n /* @__PURE__ */ jsx(\n MaterialLink,\n {\n ...props,\n ref,\n component: Link$1,\n to,\n onClick: handleClick\n }\n )\n );\n }\n);\n\nexport { Link, isExternalUri, isReactRouterBeta, useResolvedPath };\n//# sourceMappingURL=Link.esm.js.map\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z\"\n}), 'OpenInNew');\n\nexports.default = _default;","import { usePermission } from '@backstage/plugin-permission-react';\nimport { Permission, ResourcePermission } from '@backstage/plugin-permission-common';\n\n/**\n * result of a permission check including error state\n */\nexport interface PermissionCheckResult {\n allowed: boolean;\n loading: boolean;\n error?: Error;\n}\n\n/**\n * custom hook for checking kuadrant permissions that handles both\n * BasicPermission and ResourcePermission types without type bypasses\n *\n * @param permission - the permission to check\n * @param resourceRef - optional resource reference for ResourcePermissions\n * @returns permission check result with error handling\n *\n * @example\n * // basic permission\n * const { allowed, loading, error } = useKuadrantPermission(\n * kuadrantApiProductListPermission\n * );\n *\n * @example\n * // resource permission\n * const { allowed, loading, error } = useKuadrantPermission(\n * kuadrantApiKeyCreatePermission,\n * 'apiproduct:namespace/name'\n * );\n */\nexport function useKuadrantPermission(\n permission: Permission,\n resourceRef?: string,\n): PermissionCheckResult {\n // construct the permission request based on whether it's a ResourcePermission\n const permissionRequest = 'resourceType' in permission\n ? { permission: permission as ResourcePermission, resourceRef }\n : { permission };\n\n const result = usePermission(permissionRequest as any);\n\n return {\n allowed: result.allowed,\n loading: result.loading,\n error: result.error,\n };\n}\n\n/**\n * helper to determine if a user can delete a specific API key or request\n *\n * @param ownerId - the user id who owns the key/request\n * @param currentUserId - the current user's id\n * @param canDeleteOwn - whether user has permission to delete their own keys\n * @param canDeleteAll - whether user has permission to delete all keys\n * @returns true if user can delete this specific key/request\n */\nexport function canDeleteResource(\n ownerId: string,\n currentUserId: string,\n canDeleteOwn: boolean,\n canDeleteAll: boolean,\n): boolean {\n if (canDeleteAll) return true;\n if (canDeleteOwn && ownerId === currentUserId) return true;\n return false;\n}\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z\"\n}), 'ArrowForward');\n\nexports.default = _default;","import React from 'react';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport { useApi, configApiRef, fetchApiRef, identityApiRef } from '@backstage/core-plugin-api';\nimport { InfoCard, Progress, ResponseErrorPanel } from '@backstage/core-components';\nimport { Typography, Box, makeStyles } from '@material-ui/core';\nimport useAsync from 'react-use/lib/useAsync';\nimport { useKuadrantPermission } from '../../utils/permissions';\nimport { kuadrantApiProductReadAllPermission } from '../../permissions';\nimport { ApiProductDetails } from '../ApiProductDetails';\n\nconst useStyles = makeStyles((theme) => ({\n label: {\n fontWeight: 600,\n color: theme.palette.text.secondary,\n marginBottom: theme.spacing(0.5),\n fontSize: '0.75rem',\n textTransform: 'uppercase',\n },\n}));\n\nexport const ApiProductInfoCard = () => {\n const classes = useStyles();\n const { entity } = useEntity();\n const config = useApi(configApiRef);\n const fetchApi = useApi(fetchApiRef);\n const identityApi = useApi(identityApiRef);\n const backendUrl = config.getString('backend.baseUrl');\n\n const { allowed: canReadAll, loading: permLoading } = useKuadrantPermission(\n kuadrantApiProductReadAllPermission\n );\n\n const namespace = entity.metadata.annotations?.['kuadrant.io/namespace'];\n const apiProductName = entity.metadata.annotations?.['kuadrant.io/apiproduct'];\n\n const { value: currentUserId } = useAsync(async () => {\n const identity = await identityApi.getBackstageIdentity();\n return identity.userEntityRef.split('/')[1] || 'guest';\n }, [identityApi]);\n\n const { value: apiProduct, loading, error } = useAsync(async () => {\n if (!namespace || !apiProductName) {\n return null;\n }\n\n const productResponse = await fetchApi.fetch(\n `${backendUrl}/api/kuadrant/apiproducts/${namespace}/${apiProductName}`\n );\n\n if (!productResponse.ok) {\n const errorData = await productResponse.json();\n throw new Error(errorData.error || `Failed to fetch API product: ${productResponse.status}`);\n }\n\n return productResponse.json();\n }, [backendUrl, fetchApi, namespace, apiProductName]);\n\n // check if user has permission to view this api product\n const owner = apiProduct?.metadata?.annotations?.['backstage.io/owner'];\n const ownerUserId = owner?.split('/')[1];\n const canView = canReadAll || (currentUserId && ownerUserId === currentUserId);\n\n if (!namespace || !apiProductName) {\n return (\n <InfoCard title=\"API Product Information\">\n <Typography>No APIProduct linked to this API entity</Typography>\n </InfoCard>\n );\n }\n\n if (loading || permLoading) {\n return (\n <InfoCard title=\"API Product Information\">\n <Progress />\n </InfoCard>\n );\n }\n\n // show permission message if user doesn't have permission\n if (apiProduct && !canView) {\n return (\n <InfoCard title=\"API Product Information\">\n <Box p={2}>\n <Typography variant=\"body2\" color=\"textSecondary\">\n You don't have permission to view this API product's details. Only the API owner or users with admin permissions can view this information.\n </Typography>\n </Box>\n </InfoCard>\n );\n }\n\n // also show permission message if we got a permission error from the backend\n if (error && error.message.includes('you can only read your own')) {\n return (\n <InfoCard title=\"API Product Information\">\n <Box p={2}>\n <Typography variant=\"body2\" color=\"textSecondary\">\n You don't have permission to view this API product's details. Only the API owner or users with admin permissions can view this information.\n </Typography>\n </Box>\n </InfoCard>\n );\n }\n\n if (error) {\n return (\n <InfoCard title=\"API Product Information\">\n <ResponseErrorPanel error={error} />\n </InfoCard>\n );\n }\n\n if (!apiProduct) {\n return (\n <InfoCard title=\"API Product Information\">\n <Typography>APIProduct not found</Typography>\n </InfoCard>\n );\n }\n\n return (\n <InfoCard title=\"API Product Details\">\n <Box mb={2}>\n <Typography variant=\"caption\" className={classes.label}>\n Product Name\n </Typography>\n <Typography variant=\"h6\">\n {apiProduct.spec?.displayName || apiProductName}\n </Typography>\n </Box>\n <ApiProductDetails\n product={apiProduct}\n showStatus={false}\n showCatalogLink={false}\n />\n </InfoCard>\n );\n};\n","import React from \"react\";\nimport {\n Box,\n Typography,\n Chip,\n makeStyles,\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableRow,\n Grid,\n} from \"@material-ui/core\";\nimport { Link } from \"@backstage/core-components\";\nimport { APIProduct, Plan } from \"../../types/api-management\";\n\nconst useStyles = makeStyles((theme) => ({\n label: {\n fontWeight: 600,\n color: theme.palette.text.secondary,\n marginBottom: theme.spacing(0.5),\n fontSize: \"0.75rem\",\n textTransform: \"uppercase\",\n },\n tierChip: {\n marginRight: theme.spacing(0.5),\n marginBottom: theme.spacing(0.5),\n },\n statusChipPublished: {\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n },\n statusChipDraft: {\n backgroundColor: theme.palette.grey[600],\n color: theme.palette.common.white,\n },\n infoGrid: {\n display: \"grid\",\n gridTemplateColumns: \"repeat(auto-fill, minmax(180px, 1fr))\",\n gap: theme.spacing(3),\n marginBottom: theme.spacing(3),\n },\n infoItem: {\n minWidth: 0,\n },\n apiLink: {\n color: theme.palette.primary.main,\n textDecoration: \"none\",\n \"&:hover\": {\n textDecoration: \"underline\",\n },\n },\n}));\n\ninterface ApiProductDetailsProps {\n product: APIProduct;\n showStatus?: boolean;\n showCatalogLink?: boolean;\n}\n\nexport const ApiProductDetails = ({\n product,\n showStatus = true,\n showCatalogLink = true,\n}: ApiProductDetailsProps) => {\n const classes = useStyles();\n\n const publishStatus = product.spec?.publishStatus || \"Draft\";\n const isPublished = publishStatus === \"Published\";\n const tiers = product.status?.discoveredPlans || [];\n\n return (\n <>\n {product.spec?.description && (\n <Box mb={3}>\n <Typography variant=\"caption\" className={classes.label}>\n Description\n </Typography>\n <Typography variant=\"body1\">{product.spec.description}</Typography>\n </Box>\n )}\n\n <Box className={classes.infoGrid}>\n {showStatus && (\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n Status\n </Typography>\n <Box>\n <Chip\n label={publishStatus}\n size=\"small\"\n className={\n isPublished\n ? classes.statusChipPublished\n : classes.statusChipDraft\n }\n data-testid=\"publish-status-chip\"\n />\n </Box>\n </Box>\n )}\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n Version\n </Typography>\n <Typography variant=\"body2\">\n {product.spec?.version || \"v1\"}\n </Typography>\n </Box>\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n Namespace\n </Typography>\n <Typography variant=\"body2\">{product.metadata.namespace}</Typography>\n </Box>\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n API Key Approval\n </Typography>\n <Typography variant=\"body2\">\n {product.spec?.approvalMode === \"automatic\"\n ? \"Automatic\"\n : \"Need manual approval\"}\n </Typography>\n </Box>\n {product.spec?.tags && product.spec.tags.length > 0 && (\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n Tags\n </Typography>\n <Box>\n {product.spec.tags.map((tag) => (\n <Chip\n key={tag}\n label={tag}\n size=\"small\"\n variant=\"outlined\"\n className={classes.tierChip}\n />\n ))}\n </Box>\n </Box>\n )}\n </Box>\n\n <Box className={classes.infoGrid}>\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n API\n </Typography>\n <br />\n {showCatalogLink ? (\n <Link\n to={`/catalog/default/api/${product.metadata.name}`}\n className={classes.apiLink}\n >\n {product.metadata.name}\n </Link>\n ) : (\n <Typography variant=\"body2\">{product.metadata.name}</Typography>\n )}\n </Box>\n <Box className={classes.infoItem}>\n <Typography variant=\"caption\" className={classes.label}>\n Route\n </Typography>\n <Typography variant=\"body2\">\n {product.spec?.targetRef?.name || \"-\"}\n </Typography>\n </Box>\n </Box>\n\n {tiers.length > 0 && (\n <Box mb={3}>\n <Typography variant=\"caption\" className={classes.label}>\n Available Tiers\n </Typography>\n <Table size=\"small\">\n <TableHead>\n <TableRow>\n <TableCell>Tier</TableCell>\n <TableCell>Rate Limits</TableCell>\n </TableRow>\n </TableHead>\n <TableBody>\n {tiers.map((plan: Plan) => (\n <TableRow key={plan.tier}>\n <TableCell>\n <Chip label={plan.tier} size=\"small\" />\n </TableCell>\n <TableCell>\n {plan.limits &&\n Object.entries(plan.limits).map(([key, value]) => (\n <Typography key={key} variant=\"body2\">\n {String(value)} per {key}\n </Typography>\n ))}\n </TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </Box>\n )}\n\n <Grid container spacing={3}>\n {(product.spec?.contact?.email || product.spec?.contact?.team) && (\n <Grid item xs={12} md={6}>\n <Typography variant=\"caption\" className={classes.label}>\n Contact Information\n </Typography>\n <Box mt={1}>\n {product.spec.contact.team && (\n <Typography variant=\"body2\">\n <strong>Team:</strong> {product.spec.contact.team}\n </Typography>\n )}\n {product.spec.contact.email && (\n <Typography variant=\"body2\">\n <strong>Email:</strong>{\" \"}\n <Link to={`mailto:${product.spec.contact.email}`}>\n {product.spec.contact.email}\n </Link>\n </Typography>\n )}\n </Box>\n </Grid>\n )}\n\n {(product.spec?.documentation?.docsURL ||\n product.spec?.documentation?.openAPISpecURL) && (\n <Grid item xs={12} md={6}>\n <Typography variant=\"caption\" className={classes.label}>\n Documentation\n </Typography>\n <Box mt={1}>\n {product.spec.documentation.docsURL && (\n <Typography variant=\"body2\">\n <strong>Docs:</strong>{\" \"}\n <Link to={product.spec.documentation.docsURL} target=\"_blank\">\n View Documentation\n </Link>\n </Typography>\n )}\n {product.spec.documentation.openAPISpecURL && (\n <Typography variant=\"body2\">\n <strong>OpenAPI Spec:</strong>{\" \"}\n <Link\n to={product.spec.documentation.openAPISpecURL}\n target=\"_blank\"\n >\n View Spec\n </Link>\n </Typography>\n )}\n </Box>\n </Grid>\n )}\n </Grid>\n </>\n );\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = require(\"react\");\nvar useAsyncFn_1 = tslib_1.__importDefault(require(\"./useAsyncFn\"));\nfunction useAsync(fn, deps) {\n if (deps === void 0) { deps = []; }\n var _a = useAsyncFn_1.default(fn, deps, {\n loading: true,\n }), state = _a[0], callback = _a[1];\n react_1.useEffect(function () {\n callback();\n }, [callback]);\n return state;\n}\nexports.default = useAsync;\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport Box from '@material-ui/core/Box';\nimport Divider from '@material-ui/core/Divider';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport ArrowIcon from '@material-ui/icons/ArrowForward';\nimport { Link } from '../../components/Link/Link.esm.js';\n\nconst useStyles = makeStyles(\n (theme) => ({\n root: {\n maxWidth: \"fit-content\",\n padding: theme.spacing(2, 2, 2, 2.5)\n },\n boxTitle: {\n margin: 0,\n color: theme.palette.textSubtle\n },\n arrow: {\n color: theme.palette.textSubtle\n }\n }),\n { name: \"BackstageBottomLink\" }\n);\nfunction BottomLink(props) {\n const { link, title, onClick } = props;\n const classes = useStyles();\n return /* @__PURE__ */ jsxs(Box, { children: [\n /* @__PURE__ */ jsx(Divider, {}),\n /* @__PURE__ */ jsx(Link, { to: link, onClick, underline: \"none\", children: /* @__PURE__ */ jsxs(Box, { display: \"flex\", alignItems: \"center\", className: classes.root, children: [\n /* @__PURE__ */ jsx(Box, { className: classes.boxTitle, fontWeight: \"fontWeightBold\", m: 1, children: /* @__PURE__ */ jsx(Typography, { children: /* @__PURE__ */ jsx(\"strong\", { children: title }) }) }),\n /* @__PURE__ */ jsx(ArrowIcon, { className: classes.arrow })\n ] }) })\n ] });\n}\n\nexport { BottomLink };\n//# sourceMappingURL=BottomLink.esm.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport Button$1 from '@material-ui/core/Button';\nimport { forwardRef } from 'react';\nimport { Link } from '../Link/Link.esm.js';\n\nconst LinkWrapper = forwardRef((props, ref) => /* @__PURE__ */ jsx(Link, { ref, ...props, color: \"initial\" }));\nconst LinkButton = forwardRef((props, ref) => /* @__PURE__ */ jsx(Button$1, { ref, component: LinkWrapper, ...props }));\nconst Button = LinkButton;\n\nexport { Button, LinkButton };\n//# sourceMappingURL=LinkButton.esm.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport Typography from '@material-ui/core/Typography';\nimport { Component } from 'react';\nimport { LinkButton } from '../../components/LinkButton/LinkButton.esm.js';\nimport { ErrorPanel } from '../../components/ErrorPanel/ErrorPanel.esm.js';\nimport { coreComponentsTranslationRef } from '../../translation.esm.js';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nconst SlackLink = (props) => {\n const { slackChannel } = props;\n const { t } = useTranslationRef(coreComponentsTranslationRef);\n if (!slackChannel) {\n return null;\n } else if (typeof slackChannel === \"string\") {\n return /* @__PURE__ */ jsx(Typography, { children: t(\"errorBoundary.title\", { slackChannel }) });\n } else if (!slackChannel.href) {\n return /* @__PURE__ */ jsx(Typography, { children: t(\"errorBoundary.title\", {\n slackChannel: slackChannel.name\n }) });\n }\n return /* @__PURE__ */ jsx(LinkButton, { to: slackChannel.href, variant: \"contained\", children: slackChannel.name });\n};\nconst ErrorBoundary = class ErrorBoundary2 extends Component {\n constructor(props) {\n super(props);\n this.state = {\n error: void 0,\n errorInfo: void 0\n };\n }\n componentDidCatch(error, errorInfo) {\n console.error(`ErrorBoundary, error: ${error}`, { error, errorInfo });\n this.setState({ error, errorInfo });\n }\n render() {\n const { slackChannel, children } = this.props;\n const { error } = this.state;\n if (!error) {\n return children;\n }\n return /* @__PURE__ */ jsx(ErrorPanel, { title: \"Something Went Wrong\", error, children: /* @__PURE__ */ jsx(SlackLink, { slackChannel }) });\n }\n};\n\nexport { ErrorBoundary };\n//# sourceMappingURL=ErrorBoundary.esm.js.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardHeader from '@material-ui/core/CardHeader';\nimport Divider from '@material-ui/core/Divider';\nimport { makeStyles, withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { BottomLink } from '../BottomLink/BottomLink.esm.js';\nimport { ErrorBoundary } from '../ErrorBoundary/ErrorBoundary.esm.js';\n\nconst useStyles = makeStyles(\n (theme) => ({\n noPadding: {\n padding: 0,\n \"&:last-child\": {\n paddingBottom: 0\n }\n },\n contentAlignBottom: {\n display: \"flex\",\n alignItems: \"self-end\"\n },\n header: {\n padding: theme.spacing(2, 2, 2, 2.5)\n },\n headerTitle: {\n fontWeight: theme.typography.fontWeightBold\n },\n headerSubheader: {\n paddingTop: theme.spacing(1)\n },\n headerAvatar: {},\n headerAction: {},\n headerContent: {},\n subheader: {\n display: \"flex\"\n }\n }),\n { name: \"BackstageInfoCard\" }\n);\nconst CardActionsTopRight = withStyles(\n (theme) => ({\n root: {\n display: \"inline-block\",\n padding: theme.spacing(8, 8, 0, 0),\n float: \"right\"\n }\n }),\n { name: \"BackstageInfoCardCardActionsTopRight\" }\n)(CardActions);\nconst VARIANT_STYLES = {\n card: {\n flex: {\n display: \"flex\",\n flexDirection: \"column\"\n },\n fullHeight: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\"\n },\n gridItem: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"calc(100% - 10px)\",\n // for pages without content header\n marginBottom: \"10px\",\n breakInside: \"avoid-page\",\n \"@media print\": {\n height: \"auto\"\n }\n }\n },\n cardContent: {\n fullHeight: {\n flex: 1\n },\n gridItem: {\n flex: 1\n }\n }\n};\nfunction InfoCard(props) {\n const {\n title,\n subheader,\n divider = true,\n deepLink,\n slackChannel,\n errorBoundaryProps,\n variant,\n alignContent = \"normal\",\n children,\n headerStyle,\n headerProps,\n icon,\n action,\n actionsClassName,\n actions,\n cardClassName,\n actionsTopRight,\n className,\n noPadding,\n titleTypographyProps,\n subheaderTypographyProps\n } = props;\n const classes = useStyles();\n let calculatedStyle = {};\n let calculatedCardStyle = {};\n if (variant) {\n const variants = variant.split(/[\\s]+/g);\n variants.forEach((name) => {\n calculatedStyle = {\n ...calculatedStyle,\n ...VARIANT_STYLES.card[name]\n };\n calculatedCardStyle = {\n ...calculatedCardStyle,\n ...VARIANT_STYLES.cardContent[name]\n };\n });\n }\n const cardSubTitle = () => {\n if (!subheader && !icon) {\n return null;\n }\n return /* @__PURE__ */ jsxs(\"div\", { \"data-testid\": \"info-card-subheader\", children: [\n subheader && /* @__PURE__ */ jsx(\"div\", { className: classes.subheader, children: subheader }),\n icon\n ] });\n };\n const errProps = errorBoundaryProps || (slackChannel ? { slackChannel } : {});\n return /* @__PURE__ */ jsx(Card, { style: calculatedStyle, className, children: /* @__PURE__ */ jsxs(ErrorBoundary, { ...errProps, children: [\n title && /* @__PURE__ */ jsx(\n CardHeader,\n {\n classes: {\n root: classNames(classes.header),\n title: classes.headerTitle,\n subheader: classes.headerSubheader,\n avatar: classes.headerAvatar,\n action: classes.headerAction,\n content: classes.headerContent\n },\n title,\n subheader: cardSubTitle(),\n action,\n style: { ...headerStyle },\n titleTypographyProps,\n subheaderTypographyProps,\n ...headerProps\n }\n ),\n actionsTopRight && /* @__PURE__ */ jsx(CardActionsTopRight, { children: actionsTopRight }),\n divider && /* @__PURE__ */ jsx(Divider, {}),\n /* @__PURE__ */ jsx(\n CardContent,\n {\n className: classNames(cardClassName, {\n [classes.noPadding]: noPadding,\n [classes.contentAlignBottom]: alignContent === \"bottom\"\n }),\n style: calculatedCardStyle,\n children\n }\n ),\n actions && /* @__PURE__ */ jsx(CardActions, { className: actionsClassName, children: actions }),\n deepLink && /* @__PURE__ */ jsx(BottomLink, { ...deepLink })\n ] }) });\n}\n\nexport { InfoCard };\n//# sourceMappingURL=InfoCard.esm.js.map\n"],"names":["Object","defineProperty","exports","value","tslib_1","react_1","useMountedState_1","__importDefault","fn","deps","initialState","loading","lastCallId","useRef","isMounted","default","_a","useState","state","set","callback","useCallback","args","_i","arguments","length","callId","current","prevState","__assign","apply","then","error","mountedRef","get","useEffect","useEntity","versionedHolder","useVersionedContext","Error","atVersion","entity","createVersionedContext","createPermission","name","attributes","action","kuadrantPlanPolicyListPermission","kuadrantApiProductCreatePermission","kuadrantApiProductReadAllPermission","kuadrantApiProductUpdateOwnPermission","kuadrantApiProductUpdateAllPermission","kuadrantApiProductDeleteOwnPermission","kuadrantApiProductDeleteAllPermission","kuadrantApiProductListPermission","kuadrantApiKeyCreatePermission","resourceType","kuadrantApiKeyReadOwnPermission","kuadrantApiKeyUpdateOwnPermission","kuadrantApiKeyUpdateAllPermission","kuadrantApiKeyDeleteOwnPermission","kuadrantApiKeyDeleteAllPermission","kuadrantApiKeyApprovePermission","useStyles","makeStyles","theme","visuallyHidden","clip","clipPath","overflow","position","userSelect","whiteSpace","height","width","externalLink","externalLinkIcon","verticalAlign","marginLeft","spacing","ExternalLinkIcon","Icon","useApp","getSystemIcon","classes","jsx","className","isExternalUri","uri","test","scriptProtocolPattern","originalWindowOpen","window","open","__backstage","newOpen","url","String","this","getNodeText","node","Array","map","join","trim","props","children","includes","Link","forwardRef","onClick","noTrack","ref","analytics","useAnalytics","to","obj","createRoutesFromChildren","Route","index","element","isReactRouterBeta","resolvedPath","basePath","useApi","configApiRef","getOptionalString","useBaseUrl","pathname","URL","trimEnd","useBasePath","external","startsWithBasePath","startsWith","concat","useResolvedPath","linkText","newWindow","exec","handleClick","event","captureEvent","jsxs","target","rel","href","component","_interopRequireDefault","_interopRequireWildcard","React","_default","createElement","d","useKuadrantPermission","permission","resourceRef","permissionRequest","result","usePermission","allowed","canDeleteResource","ownerId","currentUserId","canDeleteOwn","canDeleteAll","label","fontWeight","color","palette","text","secondary","marginBottom","fontSize","textTransform","ApiProductInfoCard","apiProduct","config","fetchApi","fetchApiRef","identityApi","identityApiRef","backendUrl","getString","canReadAll","permLoading","namespace","metadata","annotations","apiProductName","useAsync","async","getBackstageIdentity","userEntityRef","split","productResponse","fetch","ok","errorData","json","status","owner","ownerUserId","canView","InfoCard","title","Progress","message","Box","p","Typography","variant","ResponseErrorPanel","mb","spec","displayName","ApiProductDetails","product","showStatus","showCatalogLink","tierChip","marginRight","statusChipPublished","backgroundColor","primary","main","contrastText","statusChipDraft","grey","common","white","infoGrid","display","gridTemplateColumns","gap","infoItem","minWidth","apiLink","textDecoration","publishStatus","isPublished","tiers","discoveredPlans","description","Chip","size","data-testid","version","approvalMode","tags","tag","br","targetRef","Table","TableHead","TableRow","TableCell","TableBody","plan","tier","limits","entries","key","Grid","container","contact","email","team","item","xs","md","mt","strong","documentation","docsURL","openAPISpecURL","useAsyncFn_1","root","maxWidth","padding","boxTitle","margin","textSubtle","arrow","BottomLink","link","Divider","underline","alignItems","m","A","LinkWrapper","LinkButton","Button","SlackLink","slackChannel","t","ErrorBoundary","Component","constructor","super","errorInfo","componentDidCatch","console","setState","render","noPadding","paddingBottom","contentAlignBottom","header","headerTitle","typography","fontWeightBold","headerSubheader","paddingTop","headerAvatar","headerAction","headerContent","subheader","CardActionsTopRight","withStyles","float","CardActions","VARIANT_STYLES","card","flex","flexDirection","fullHeight","gridItem","breakInside","cardContent","divider","deepLink","errorBoundaryProps","alignContent","headerStyle","headerProps","icon","actionsClassName","actions","cardClassName","actionsTopRight","titleTypographyProps","subheaderTypographyProps","calculatedStyle","calculatedCardStyle","forEach","errProps","Card","style","CardHeader","avatar","content","CardContent"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[5603,7984],{65603:(e,t,n)=>{n.r(t),n.d(t,{createVersionedContext:()=>u,createVersionedContextForTesting:()=>l,createVersionedValueMap:()=>s,getOrCreateGlobalSingleton:()=>o,useVersionedContext:()=>c});const r="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),a=e=>`__@backstage/${e}__`;function o(e,t){const n=a(e);let o=r[n];return o||(o=t(),r[n]=o,o)}var i=n(95478);function s(e){Object.freeze(e);const t={atVersion:t=>e[t]};return Object.defineProperty(t,"$map",{configurable:!0,enumerable:!0,get:()=>e}),t}function u(e){return o(e,()=>(0,i.createContext)(void 0))}function c(e){return(0,i.useContext)(u(e))}function l(e){return{set(t){globalThis[`__@backstage/${e}__`]=(0,i.createContext)(s(t))},reset(){delete globalThis[`__@backstage/${e}__`]}}}}}]);
2
- //# sourceMappingURL=5603.05d9ca7f.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/5603.05d9ca7f.chunk.js","mappings":"uTASA,MAAMA,EARkB,oBAAXC,QAA0BA,OAAOC,OAASA,KAC5CD,OAEW,oBAATE,MAAwBA,KAAKD,OAASA,KACxCC,KAEFC,SAAS,cAATA,GAGHC,EAAWC,GAAO,gBAAgBA,MACxC,SAASC,EAA2BD,EAAIE,GACtC,MAAMC,EAAMJ,EAAQC,GACpB,IAAII,EAAQV,EAAaS,GACzB,OAAIC,IAGJA,EAAQF,IACRR,EAAaS,GAAOC,EACbA,EACT,C,eCpBA,SAASC,EAAwBC,GAC/BC,OAAOC,OAAOF,GACd,MAAMG,EAAiB,CACrBC,UAAUC,GACDL,EAASK,IAUpB,OAPAJ,OAAOK,eAAeH,EAAgB,OAAQ,CAC5CI,cAAc,EACdC,YAAY,EACZC,IAAG,IACMT,IAGJG,CACT,CCXA,SAASO,EAAuBb,GAC9B,OAAOF,EACLE,EACA,KAAM,IAAAc,oBAAc,GAExB,CACA,SAASC,EAAoBf,GAC3B,OAAO,IAAAgB,YAAWH,EAAuBb,GAC3C,CACA,SAASiB,EAAiCjB,GACxC,MAAO,CACL,GAAAkB,CAAIf,GACFgB,WAAW,gBAAgBnB,QAAW,IAAAc,eACpCZ,EAAwBC,GAE5B,EACA,KAAAiB,UACSD,WAAW,gBAAgBnB,MACpC,EAEJ,C","sources":["webpack://internal.plugin-kuadrant/../../node_modules/@backstage/version-bridge/dist/lib/globalObject.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/@backstage/version-bridge/dist/lib/VersionedValue.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/@backstage/version-bridge/dist/lib/VersionedContext.esm.js"],"sourcesContent":["function getGlobalObject() {\n if (typeof window !== \"undefined\" && window.Math === Math) {\n return window;\n }\n if (typeof self !== \"undefined\" && self.Math === Math) {\n return self;\n }\n return Function(\"return this\")();\n}\nconst globalObject = getGlobalObject();\nconst makeKey = (id) => `__@backstage/${id}__`;\nfunction getOrCreateGlobalSingleton(id, supplier) {\n const key = makeKey(id);\n let value = globalObject[key];\n if (value) {\n return value;\n }\n value = supplier();\n globalObject[key] = value;\n return value;\n}\n\nexport { getOrCreateGlobalSingleton };\n//# sourceMappingURL=globalObject.esm.js.map\n","function createVersionedValueMap(versions) {\n Object.freeze(versions);\n const versionedValue = {\n atVersion(version) {\n return versions[version];\n }\n };\n Object.defineProperty(versionedValue, \"$map\", {\n configurable: true,\n enumerable: true,\n get() {\n return versions;\n }\n });\n return versionedValue;\n}\n\nexport { createVersionedValueMap };\n//# sourceMappingURL=VersionedValue.esm.js.map\n","import { createContext, useContext } from 'react';\nimport { getOrCreateGlobalSingleton } from './globalObject.esm.js';\nimport { createVersionedValueMap } from './VersionedValue.esm.js';\n\nfunction createVersionedContext(key) {\n return getOrCreateGlobalSingleton(\n key,\n () => createContext(void 0)\n );\n}\nfunction useVersionedContext(key) {\n return useContext(createVersionedContext(key));\n}\nfunction createVersionedContextForTesting(key) {\n return {\n set(versions) {\n globalThis[`__@backstage/${key}__`] = createContext(\n createVersionedValueMap(versions)\n );\n },\n reset() {\n delete globalThis[`__@backstage/${key}__`];\n }\n };\n}\n\nexport { createVersionedContext, createVersionedContextForTesting, useVersionedContext };\n//# sourceMappingURL=VersionedContext.esm.js.map\n"],"names":["globalObject","window","Math","self","Function","makeKey","id","getOrCreateGlobalSingleton","supplier","key","value","createVersionedValueMap","versions","Object","freeze","versionedValue","atVersion","version","defineProperty","configurable","enumerable","get","createVersionedContext","createContext","useVersionedContext","useContext","createVersionedContextForTesting","set","globalThis","reset"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 6272.b5ee5195.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[1085,3466,6272],{26272:(e,t,n)=>{n.r(t),n.d(t,{AnalyticsContext:()=>c,FeatureFlagState:()=>P,SessionState:()=>R,alertApiRef:()=>$,analyticsApiRef:()=>l,appThemeApiRef:()=>_,atlassianAuthApiRef:()=>S,attachComponentData:()=>H,bitbucketAuthApiRef:()=>E,bitbucketServerAuthApiRef:()=>C,configApiRef:()=>F,createApiFactory:()=>m,createApiRef:()=>p.y,createComponentExtension:()=>X,createExternalRouteRef:()=>pe,createPlugin:()=>ne,createReactExtension:()=>Y,createRoutableExtension:()=>K,createRouteRef:()=>ie,createSubRouteRef:()=>ce,discoveryApiRef:()=>O,errorApiRef:()=>j.m,featureFlagsApiRef:()=>I,fetchApiRef:()=>T,getComponentData:()=>U,githubAuthApiRef:()=>v,gitlabAuthApiRef:()=>b,googleAuthApiRef:()=>y,identityApiRef:()=>D,microsoftAuthApiRef:()=>A,oauthRequestApiRef:()=>V,oktaAuthApiRef:()=>w,oneloginAuthApiRef:()=>x,openshiftAuthApiRef:()=>k,storageApiRef:()=>G,useAnalytics:()=>g,useApi:()=>u.gf,useApiHolder:()=>u.Q2,useApp:()=>z,useElementFilter:()=>ee,useRouteRef:()=>B,useRouteRefParams:()=>le,vmwareCloudAuthApiRef:()=>N,withApis:()=>u.wV});var o=n(31085),r=n(64218),i=n(95478);const a=(0,r.createVersionedContext)("analytics-context"),s=()=>{const e=(0,i.useContext)(a);if(void 0===e)return{routeRef:"unknown",pluginId:"root",extension:"App"};const t=e.atVersion(1);if(void 0===t)throw new Error("No context found for version 1.");return t},c=e=>{const{attributes:t,children:n}=e,i={...s(),...t},c=(0,r.createVersionedValueMap)({1:i});return(0,o.jsx)(a.Provider,{value:c,children:n})};var u=n(87092),p=n(89940);const l=(0,p.y)({id:"core.analytics"}),d=(0,r.getOrCreateGlobalSingleton)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),f="_ROUTABLE-EXTENSION-RENDERED";class h{constructor(e,t={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=e,this.context=t,d.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{d.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender}),d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),d.beforeUnloadRegistered=!0)}setContext(e){this.context=e}captureEvent(e,t,{value:n,attributes:o}={}){const{_routeNodeType:r,...i}=this.context;if(e!==f){if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(e){console.warn("Error during analytics event capture. %o",e)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if("navigate"!==e||"gathered"!==r||"root"!==i.pluginId)try{this.analyticsApi.captureEvent({action:e,subject:t,value:n,attributes:o,context:i})}catch(e){console.warn("Error during analytics event capture. %o",e)}else d.mostRecentGatheredNavigation={action:e,subject:t,value:n,attributes:o,context:i}}else d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...i,extension:"App"}})}}function g(){const e=(0,i.useRef)(null),t=s(),n=function(){try{return(0,u.gf)(l)}catch{return{captureEvent:()=>{}}}}(),o=(null===e.current&&(e.current=new h(n)),e.current);return o.setContext(t),o}function m(e,t){return"id"in e?{api:e,deps:{},factory:()=>t}:e}var R=(e=>(e.SignedIn="SignedIn",e.SignedOut="SignedOut",e))(R||{});const y=(0,p.y)({id:"core.auth.google"}),v=(0,p.y)({id:"core.auth.github"}),w=(0,p.y)({id:"core.auth.okta"}),b=(0,p.y)({id:"core.auth.gitlab"}),A=(0,p.y)({id:"core.auth.microsoft"}),x=(0,p.y)({id:"core.auth.onelogin"}),E=(0,p.y)({id:"core.auth.bitbucket"}),C=(0,p.y)({id:"core.auth.bitbucket-server"}),S=(0,p.y)({id:"core.auth.atlassian"}),N=(0,p.y)({id:"core.auth.vmware-cloud"}),k=(0,p.y)({id:"core.auth.openshift"}),$=(0,p.y)({id:"core.alert"}),_=(0,p.y)({id:"core.apptheme"}),F=(0,p.y)({id:"core.config"}),O=(0,p.y)({id:"core.discovery"});var j=n(50884),P=(e=>(e[e.None=0]="None",e[e.Active=1]="Active",e))(P||{});const I=(0,p.y)({id:"core.featureflags"}),T=(0,p.y)({id:"core.fetch"}),D=(0,p.y)({id:"core.identity"}),V=(0,p.y)({id:"core.oauthrequest"}),G=(0,p.y)({id:"core.storage"}),z=()=>{const e=(0,r.useVersionedContext)("app-context");if(!e)throw new Error("App context is not available");const t=e.atVersion(1);if(!t)throw new Error("AppContext v1 not available");return t},M=(0,r.getOrCreateGlobalSingleton)("component-data-store",()=>new WeakMap),L="__backstage_data";function H(e,t,n){const o=e;let r=o[L]??M.get(e);if(r||(r={map:new Map},Object.defineProperty(o,L,{enumerable:!1,configurable:!0,writable:!1,value:r}),M.set(e,r)),r.map.has(t)){const n=e.displayName||e.name;throw new Error(`Attempted to attach duplicate data "${t}" to component "${n}"`)}r.map.set(t,n)}function U(e,t){if(!e)return;const n=e.type;if(!n)return;const o=n[L]??M.get(n);return o?o.map.get(t):void 0}var W=n(42469);function B(e){const{pathname:t}=(0,W.useLocation)(),n=(0,r.useVersionedContext)("routing-context");if(!n)throw new Error("Routing context is not available");const o=n.atVersion(1),a=(0,i.useMemo)(()=>o&&o.resolve(e,{pathname:t}),[o,e,t]);if(!n)throw new Error("useRouteRef used outside of routing context");if(!o)throw new Error("RoutingContext v1 not available");const s="optional"in e&&e.optional;if(!a&&!s)throw new Error(`No path for ${e}`);return a}class q extends i.Component{static getDerivedStateFromError(e){return{error:e}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:e}=this.state,{app:t,plugin:n}=this.props,{ErrorBoundaryFallback:r}=t.getComponents();return e?(0,o.jsx)(r,{error:e,resetError:this.handleErrorReset,plugin:n}):this.props.children}}var Q=n(57556);function K(e){const{component:t,mountPoint:n,name:r}=e;return Y({component:{lazy:()=>t().then(e=>{const t=t=>{const r=g();try{B(n)}catch(e){if("object"==typeof e&&null!==e){const{message:t}=e;if("string"==typeof t&&t.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${n} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw e}return(0,i.useEffect)(()=>{r.captureEvent(f,"")},[r]),(0,o.jsx)(e,{...t})},a=r||e.displayName||e.name||"LazyComponent";return t.displayName=`RoutableExtension(${a})`,t})},data:{"core.mountPoint":n},name:r})}function X(e){const{component:t,name:n}=e;return Y({component:t,name:n})}function Y(e){const{data:t={},name:n}=e;let r;if(n||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name."),"lazy"in e.component){const t=e.component.lazy;r=(0,i.lazy)(()=>t().then(e=>({default:e}),e=>{const t=n?` of the ${n} extension`:"";throw new Q.HK(`Failed lazy loading${t}, try to reload the page`,e)}))}else r=e.component.sync;const a=n||r.displayName||r.name||"Component";return{expose(e){const s=a=>{const s=z(),{Progress:u}=s.getComponents(),p=t?.["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(u,{}),children:(0,o.jsx)(q,{app:s,plugin:e,children:(0,o.jsx)(c,{attributes:{pluginId:e.getId(),...n&&{extension:n},...p&&{routeRef:p.id}},children:(0,o.jsx)(r,{...a})})})})};H(s,"core.plugin",e),H(s,"core.extensionName",n);for(const[e,n]of Object.entries(t))H(s,e,n);return s.displayName=`Extension(${a})`,s}}}function J(e,t,n,o){return i.Children.toArray(e).flatMap(e=>{if(!(0,i.isValidElement)(e))return[];if(e.type===i.Fragment)return J(e.props.children,t,n,o);if(U(e,"core.featureFlagged")){const r=e.props;return("with"in r?t.isActive(r.with):!t.isActive(r.without))?J(e.props.children,t,n,o):[]}if(void 0===n||n(e))return[e];if(o)throw new Error(o);return J(e.props.children,t,n,o)})}class Z{constructor(e,t){this.node=e,this.featureFlagsApi=t}selectByComponentData(e){const t=J(this.node,this.featureFlagsApi,t=>void 0!==U(t,e.key),e.withStrictError);return new Z(t,this.featureFlagsApi)}findComponentData(e){return J(this.node,this.featureFlagsApi,t=>void 0!==U(t,e.key)).map(t=>U(t,e.key)).filter(e=>void 0!==e)}getElements(){return J(this.node,this.featureFlagsApi)}}function ee(e,t,n=[]){const o=(0,u.gf)(I),r=new Z(e,o);return(0,i.useMemo)(()=>t(r),[e,...n])}class te{constructor(e){this.config=e}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(e){return e.expose(this)}toString(){return`plugin{${this.config.id}}`}}function ne(e){return new te(e)}const oe=(0,r.getOrCreateGlobalSingleton)("route-ref-type",()=>Symbol("route-ref-type"));class re{constructor(e,t){this.id=e,this.params=t}[oe]="absolute";get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}function ie(e){return new re(e.id,e.params??[])}const ae=/^\w+$/;class se{constructor(e,t,n,o){this.id=e,this.path=t,this.parent=n,this.params=o}[oe]="sub";toString(){return`routeRef{type=sub,id=${this.id}}`}}function ce(e){const{id:t,path:n,parent:o}=e,r=n.split("/").filter(e=>e.startsWith(":")).map(e=>e.substring(1)),i=[...o.params,...r];if(o.params.some(e=>r.includes(e)))throw new Error("SubRouteRef may not have params that overlap with its parent");if(!n.startsWith("/"))throw new Error(`SubRouteRef path must start with '/', got '${n}'`);if(n.endsWith("/"))throw new Error(`SubRouteRef path must not end with '/', got '${n}'`);for(const e of r)if(!ae.test(e))throw new Error(`SubRouteRef path has invalid param, got '${e}'`);return new se(t,n,o,i)}class ue{constructor(e,t,n,o){this.id=e,this.params=t,this.optional=n,this.defaultTarget=o}[oe]="external";toString(){return`routeRef{type=external,id=${this.id}}`}getDefaultTarget(){return this.defaultTarget}}function pe(e){return new ue(e.id,e.params??[],Boolean(e.optional),e?.defaultTarget)}function le(e){return(0,W.useParams)()}},31085:(e,t,n)=>{e.exports=n(73335)},50884:(e,t,n)=>{n.d(t,{m:()=>o}),n(31085),n(64218);const o=(0,n(89940).y)({id:"core.error"})},73335:(e,t,n)=>{var o=n(95478),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,i={},u=null,p=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(p=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:p,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},87092:(e,t,n)=>{n.d(t,{Q2:()=>a,gf:()=>s,wV:()=>c});var o=n(31085),r=n(64218),i=n(57556);function a(){const e=(0,r.useVersionedContext)("api-context");if(!e)throw new i.EH("API context is not available");const t=e.atVersion(1);if(!t)throw new i.EH("ApiContext v1 not available");return t}function s(e){const t=a().get(e);if(!t)throw new i.EH(`No implementation available for ${e}`);return t}function c(e){return function(t){const n=n=>{const r=a(),s={};for(const t in e)if(e.hasOwnProperty(t)){const n=e[t],o=r.get(n);if(!o)throw new i.EH(`No implementation available for ${n}`);s[t]=o}return(0,o.jsx)(t,{...n,...s})},r=t.displayName||t.name||"Component";return n.displayName=`withApis(${r})`,n}}},89940:(e,t,n)=>{n.d(t,{y:()=>r});class o{constructor(e){if(this.config=e,!e.id.split(".").flatMap(e=>e.split("-")).every(e=>e.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${e.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function r(e){return new o(e)}}}]);
3
- //# sourceMappingURL=6272.b5ee5195.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/6272.b5ee5195.chunk.js","mappings":";orCAIA,MAAMA,GAAwB,IAAAC,wBAAuB,qBAC/CC,EAAsB,KAC1B,MAAMC,GAAa,IAAAC,YAAWJ,GAC9B,QAAmB,IAAfG,EACF,MAAO,CACLE,SAAU,UACVC,SAAU,OACVC,UAAW,OAGf,MAAMC,EAAWL,EAAWM,UAAU,GACtC,QAAiB,IAAbD,EACF,MAAM,IAAIE,MAAM,mCAElB,OAAOF,GAEHG,EAAoBC,IACxB,MAAM,WAAEC,EAAU,SAAEC,GAAaF,EAE3BG,EAAgB,IADDb,OAGhBW,GAECG,GAAyB,IAAAC,yBAAwB,CAAE,EAAGF,IAC5D,OAAuB,IAAAG,KAAIlB,EAAsBmB,SAAU,CAAEC,MAAOJ,EAAwBF,c,0BCvB9F,MAAMO,GAAkB,OAAa,CACnCC,GAAI,mBCJAC,GAAe,IAAAC,4BACnB,2CACA,KAAM,CACJC,kCAA8B,EAC9BC,uCAAmC,EACnCC,wBAAwB,KAGtBC,EAAiC,+BACvC,MAAMC,EACJ,WAAAC,CAAYC,EAAcC,EAAU,CAClC3B,SAAU,UACVC,SAAU,OACVC,UAAW,QAEX0B,KAAKF,aAAeA,EACpBE,KAAKD,QAAUA,EACVT,EAAaI,yBAChBO,iBACE,eACA,KACMX,EAAaE,+B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MAAQ,YAE7E,OADAwJ,EAAIvJ,YAAc,YAAYA,KACvBuJ,CACT,CACF,C,mCC9CA,MAAME,EACJ,WAAAnO,CAAYuJ,GAGV,GAFApJ,KAAKoJ,OAASA,GACAA,EAAO/J,GAAGsL,MAAM,KAAK1C,QAASgG,GAASA,EAAKtD,MAAM,MAAMuD,MAAOD,GAASA,EAAKE,MAAM,qBAE/F,MAAM,IAAI1P,MACR,yFAAyF2K,EAAO/J,MAGtG,CACA,MAAIA,GACF,OAAOW,KAAKoJ,OAAO/J,EACrB,CAEA,KAAI+O,GACF,MAAM,IAAI3P,MAAM,6BAA6BuB,OAC/C,CACA,QAAA6J,GACE,MAAO,UAAU7J,KAAKoJ,OAAO/J,KAC/B,EAEF,SAASgP,EAAajF,GACpB,OAAO,IAAI4E,EAAW5E,EACxB,C","sources":["webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/analytics/AnalyticsContext.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/AnalyticsApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/analytics/Tracker.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/analytics/useAnalytics.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/system/helpers.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/auth.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/AlertApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/AppThemeApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/ConfigApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/DiscoveryApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/FeatureFlagsApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/FetchApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/IdentityApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/OAuthRequestApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/StorageApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/app/useApp.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/extensions/componentData.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/useRouteRef.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/extensions/PluginErrorBoundary.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/extensions/extensions.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/extensions/useElementFilter.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/plugin/Plugin.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/types.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/RouteRef.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/SubRouteRef.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/ExternalRouteRef.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/routing/useRouteRefParams.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/react/jsx-runtime.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/definitions/ErrorApi.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/system/useApi.esm.js","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-plugin-api/dist/apis/system/ApiRef.esm.js"],"sourcesContent":["import { jsx } from 'react/jsx-runtime';\nimport { createVersionedContext, createVersionedValueMap } from '@backstage/version-bridge';\nimport { useContext } from 'react';\n\nconst AnalyticsReactContext = createVersionedContext(\"analytics-context\");\nconst useAnalyticsContext = () => {\n const theContext = useContext(AnalyticsReactContext);\n if (theContext === void 0) {\n return {\n routeRef: \"unknown\",\n pluginId: \"root\",\n extension: \"App\"\n };\n }\n const theValue = theContext.atVersion(1);\n if (theValue === void 0) {\n throw new Error(\"No context found for version 1.\");\n }\n return theValue;\n};\nconst AnalyticsContext = (options) => {\n const { attributes, children } = options;\n const parentValues = useAnalyticsContext();\n const combinedValue = {\n ...parentValues,\n ...attributes\n };\n const versionedCombinedValue = createVersionedValueMap({ 1: combinedValue });\n return /* @__PURE__ */ jsx(AnalyticsReactContext.Provider, { value: versionedCombinedValue, children });\n};\n\nexport { AnalyticsContext, useAnalyticsContext };\n//# sourceMappingURL=AnalyticsContext.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst analyticsApiRef = createApiRef({\n id: \"core.analytics\"\n});\n\nexport { analyticsApiRef };\n//# sourceMappingURL=AnalyticsApi.esm.js.map\n","import { getOrCreateGlobalSingleton } from '@backstage/version-bridge';\n\nconst globalEvents = getOrCreateGlobalSingleton(\n \"core-plugin-api:analytics-tracker-events\",\n () => ({\n mostRecentGatheredNavigation: void 0,\n mostRecentRoutableExtensionRender: void 0,\n beforeUnloadRegistered: false\n })\n);\nconst routableExtensionRenderedEvent = \"_ROUTABLE-EXTENSION-RENDERED\";\nclass Tracker {\n constructor(analyticsApi, context = {\n routeRef: \"unknown\",\n pluginId: \"root\",\n extension: \"App\"\n }) {\n this.analyticsApi = analyticsApi;\n this.context = context;\n if (!globalEvents.beforeUnloadRegistered) {\n addEventListener(\n \"beforeunload\",\n () => {\n if (globalEvents.mostRecentGatheredNavigation) {\n this.analyticsApi.captureEvent({\n ...globalEvents.mostRecentGatheredNavigation,\n ...globalEvents.mostRecentRoutableExtensionRender\n });\n globalEvents.mostRecentGatheredNavigation = void 0;\n globalEvents.mostRecentRoutableExtensionRender = void 0;\n }\n },\n { once: true, passive: true }\n );\n globalEvents.beforeUnloadRegistered = true;\n }\n }\n setContext(context) {\n this.context = context;\n }\n captureEvent(action, subject, {\n value,\n attributes\n } = {}) {\n const { _routeNodeType, ...context } = this.context;\n if (action === routableExtensionRenderedEvent) {\n if (globalEvents.mostRecentGatheredNavigation) {\n globalEvents.mostRecentRoutableExtensionRender = {\n context: {\n ...context,\n extension: \"App\"\n }\n };\n }\n return;\n }\n if (globalEvents.mostRecentGatheredNavigation) {\n try {\n this.analyticsApi.captureEvent({\n ...globalEvents.mostRecentGatheredNavigation,\n ...globalEvents.mostRecentRoutableExtensionRender\n });\n } catch (e) {\n console.warn(\"Error during analytics event capture. %o\", e);\n }\n globalEvents.mostRecentGatheredNavigation = void 0;\n globalEvents.mostRecentRoutableExtensionRender = void 0;\n }\n if (action === \"navigate\" && _routeNodeType === \"gathered\" && context.pluginId === \"root\") {\n globalEvents.mostRecentGatheredNavigation = {\n action,\n subject,\n value,\n attributes,\n context\n };\n return;\n }\n try {\n this.analyticsApi.captureEvent({\n action,\n subject,\n value,\n attributes,\n context\n });\n } catch (e) {\n console.warn(\"Error during analytics event capture. %o\", e);\n }\n }\n}\n\nexport { Tracker, routableExtensionRenderedEvent };\n//# sourceMappingURL=Tracker.esm.js.map\n","import { useAnalyticsContext } from './AnalyticsContext.esm.js';\nimport { useApi } from '../apis/system/useApi.esm.js';\nimport '../apis/definitions/auth.esm.js';\nimport '../apis/definitions/AlertApi.esm.js';\nimport { analyticsApiRef } from '../apis/definitions/AnalyticsApi.esm.js';\nimport '../apis/definitions/AppThemeApi.esm.js';\nimport '../apis/definitions/ConfigApi.esm.js';\nimport '../apis/definitions/DiscoveryApi.esm.js';\nimport '../apis/definitions/ErrorApi.esm.js';\nimport '../apis/definitions/FeatureFlagsApi.esm.js';\nimport '../apis/definitions/FetchApi.esm.js';\nimport '../apis/definitions/IdentityApi.esm.js';\nimport '../apis/definitions/OAuthRequestApi.esm.js';\nimport '../apis/definitions/StorageApi.esm.js';\nimport { useRef } from 'react';\nimport { Tracker } from './Tracker.esm.js';\n\nfunction useAnalyticsApi() {\n try {\n return useApi(analyticsApiRef);\n } catch {\n return { captureEvent: () => {\n } };\n }\n}\nfunction useAnalytics() {\n const trackerRef = useRef(null);\n const context = useAnalyticsContext();\n const analyticsApi = useAnalyticsApi();\n function getTracker() {\n if (trackerRef.current === null) {\n trackerRef.current = new Tracker(analyticsApi);\n }\n return trackerRef.current;\n }\n const tracker = getTracker();\n tracker.setContext(context);\n return tracker;\n}\n\nexport { useAnalytics };\n//# sourceMappingURL=useAnalytics.esm.js.map\n","function createApiFactory(factory, instance) {\n if (\"id\" in factory) {\n return {\n api: factory,\n deps: {},\n factory: () => instance\n };\n }\n return factory;\n}\n\nexport { createApiFactory };\n//# sourceMappingURL=helpers.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nvar SessionState = /* @__PURE__ */ ((SessionState2) => {\n SessionState2[\"SignedIn\"] = \"SignedIn\";\n SessionState2[\"SignedOut\"] = \"SignedOut\";\n return SessionState2;\n})(SessionState || {});\nconst googleAuthApiRef = createApiRef({\n id: \"core.auth.google\"\n});\nconst githubAuthApiRef = createApiRef({\n id: \"core.auth.github\"\n});\nconst oktaAuthApiRef = createApiRef({\n id: \"core.auth.okta\"\n});\nconst gitlabAuthApiRef = createApiRef({\n id: \"core.auth.gitlab\"\n});\nconst microsoftAuthApiRef = createApiRef({\n id: \"core.auth.microsoft\"\n});\nconst oneloginAuthApiRef = createApiRef({\n id: \"core.auth.onelogin\"\n});\nconst bitbucketAuthApiRef = createApiRef({\n id: \"core.auth.bitbucket\"\n});\nconst bitbucketServerAuthApiRef = createApiRef({\n id: \"core.auth.bitbucket-server\"\n});\nconst atlassianAuthApiRef = createApiRef({\n id: \"core.auth.atlassian\"\n});\nconst vmwareCloudAuthApiRef = createApiRef({\n id: \"core.auth.vmware-cloud\"\n});\nconst openshiftAuthApiRef = createApiRef({\n id: \"core.auth.openshift\"\n});\n\nexport { SessionState, atlassianAuthApiRef, bitbucketAuthApiRef, bitbucketServerAuthApiRef, githubAuthApiRef, gitlabAuthApiRef, googleAuthApiRef, microsoftAuthApiRef, oktaAuthApiRef, oneloginAuthApiRef, openshiftAuthApiRef, vmwareCloudAuthApiRef };\n//# sourceMappingURL=auth.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst alertApiRef = createApiRef({\n id: \"core.alert\"\n});\n\nexport { alertApiRef };\n//# sourceMappingURL=AlertApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst appThemeApiRef = createApiRef({\n id: \"core.apptheme\"\n});\n\nexport { appThemeApiRef };\n//# sourceMappingURL=AppThemeApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst configApiRef = createApiRef({\n id: \"core.config\"\n});\n\nexport { configApiRef };\n//# sourceMappingURL=ConfigApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst discoveryApiRef = createApiRef({\n id: \"core.discovery\"\n});\n\nexport { discoveryApiRef };\n//# sourceMappingURL=DiscoveryApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nvar FeatureFlagState = /* @__PURE__ */ ((FeatureFlagState2) => {\n FeatureFlagState2[FeatureFlagState2[\"None\"] = 0] = \"None\";\n FeatureFlagState2[FeatureFlagState2[\"Active\"] = 1] = \"Active\";\n return FeatureFlagState2;\n})(FeatureFlagState || {});\nconst featureFlagsApiRef = createApiRef({\n id: \"core.featureflags\"\n});\n\nexport { FeatureFlagState, featureFlagsApiRef };\n//# sourceMappingURL=FeatureFlagsApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst fetchApiRef = createApiRef({\n id: \"core.fetch\"\n});\n\nexport { fetchApiRef };\n//# sourceMappingURL=FetchApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst identityApiRef = createApiRef({\n id: \"core.identity\"\n});\n\nexport { identityApiRef };\n//# sourceMappingURL=IdentityApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst oauthRequestApiRef = createApiRef({\n id: \"core.oauthrequest\"\n});\n\nexport { oauthRequestApiRef };\n//# sourceMappingURL=OAuthRequestApi.esm.js.map\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst storageApiRef = createApiRef({\n id: \"core.storage\"\n});\n\nexport { storageApiRef };\n//# sourceMappingURL=StorageApi.esm.js.map\n","import { useVersionedContext } from '@backstage/version-bridge';\n\nconst useApp = () => {\n const versionedContext = useVersionedContext(\n \"app-context\"\n );\n if (!versionedContext) {\n throw new Error(\"App context is not available\");\n }\n const appContext = versionedContext.atVersion(1);\n if (!appContext) {\n throw new Error(\"AppContext v1 not available\");\n }\n return appContext;\n};\n\nexport { useApp };\n//# sourceMappingURL=useApp.esm.js.map\n","import { getOrCreateGlobalSingleton } from '@backstage/version-bridge';\n\nconst globalStore = getOrCreateGlobalSingleton(\n \"component-data-store\",\n () => /* @__PURE__ */ new WeakMap()\n);\nconst componentDataKey = \"__backstage_data\";\nfunction attachComponentData(component, type, data) {\n const dataComponent = component;\n let container = dataComponent[componentDataKey] ?? globalStore.get(component);\n if (!container) {\n container = { map: /* @__PURE__ */ new Map() };\n Object.defineProperty(dataComponent, componentDataKey, {\n enumerable: false,\n configurable: true,\n writable: false,\n value: container\n });\n globalStore.set(component, container);\n }\n if (container.map.has(type)) {\n const name = component.displayName || component.name;\n throw new Error(\n `Attempted to attach duplicate data \"${type}\" to component \"${name}\"`\n );\n }\n container.map.set(type, data);\n}\nfunction getComponentData(node, type) {\n if (!node) {\n return void 0;\n }\n const component = node.type;\n if (!component) {\n return void 0;\n }\n const container = component[componentDataKey] ?? globalStore.get(component);\n if (!container) {\n return void 0;\n }\n return container.map.get(type);\n}\n\nexport { attachComponentData, getComponentData };\n//# sourceMappingURL=componentData.esm.js.map\n","import { useMemo } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport { useVersionedContext } from '@backstage/version-bridge';\n\nfunction useRouteRef(routeRef) {\n const { pathname } = useLocation();\n const versionedContext = useVersionedContext(\n \"routing-context\"\n );\n if (!versionedContext) {\n throw new Error(\"Routing context is not available\");\n }\n const resolver = versionedContext.atVersion(1);\n const routeFunc = useMemo(\n () => resolver && resolver.resolve(routeRef, { pathname }),\n [resolver, routeRef, pathname]\n );\n if (!versionedContext) {\n throw new Error(\"useRouteRef used outside of routing context\");\n }\n if (!resolver) {\n throw new Error(\"RoutingContext v1 not available\");\n }\n const isOptional = \"optional\" in routeRef && routeRef.optional;\n if (!routeFunc && !isOptional) {\n throw new Error(`No path for ${routeRef}`);\n }\n return routeFunc;\n}\n\nexport { useRouteRef };\n//# sourceMappingURL=useRouteRef.esm.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { Component } from 'react';\n\nclass PluginErrorBoundary extends Component {\n static getDerivedStateFromError(error) {\n return { error };\n }\n state = { error: void 0 };\n handleErrorReset = () => {\n this.setState({ error: void 0 });\n };\n render() {\n const { error } = this.state;\n const { app, plugin } = this.props;\n const { ErrorBoundaryFallback } = app.getComponents();\n if (error) {\n return /* @__PURE__ */ jsx(\n ErrorBoundaryFallback,\n {\n error,\n resetError: this.handleErrorReset,\n plugin\n }\n );\n }\n return this.props.children;\n }\n}\n\nexport { PluginErrorBoundary };\n//# sourceMappingURL=PluginErrorBoundary.esm.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { lazy, useEffect, Suspense } from 'react';\nimport { AnalyticsContext } from '../analytics/AnalyticsContext.esm.js';\nimport { useAnalytics } from '../analytics/useAnalytics.esm.js';\nimport { useApp } from '../app/useApp.esm.js';\nimport '../routing/types.esm.js';\nimport { useRouteRef } from '../routing/useRouteRef.esm.js';\nimport 'react-router-dom';\nimport { attachComponentData } from './componentData.esm.js';\nimport { PluginErrorBoundary } from './PluginErrorBoundary.esm.js';\nimport { routableExtensionRenderedEvent } from '../analytics/Tracker.esm.js';\nimport { ForwardedError } from '@backstage/errors';\n\nfunction createRoutableExtension(options) {\n const { component, mountPoint, name } = options;\n return createReactExtension({\n component: {\n lazy: () => component().then((InnerComponent) => {\n const RoutableExtensionWrapper = (props) => {\n const analytics = useAnalytics();\n try {\n useRouteRef(mountPoint);\n } catch (error) {\n if (typeof error === \"object\" && error !== null) {\n const { message } = error;\n if (typeof message === \"string\" && message.startsWith(\"No path for \")) {\n throw new Error(\n `Routable extension component with mount point ${mountPoint} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`\n );\n }\n }\n throw error;\n }\n useEffect(() => {\n analytics.captureEvent(routableExtensionRenderedEvent, \"\");\n }, [analytics]);\n return /* @__PURE__ */ jsx(InnerComponent, { ...props });\n };\n const componentName = name || InnerComponent.displayName || InnerComponent.name || \"LazyComponent\";\n RoutableExtensionWrapper.displayName = `RoutableExtension(${componentName})`;\n return RoutableExtensionWrapper;\n })\n },\n data: {\n \"core.mountPoint\": mountPoint\n },\n name\n });\n}\nfunction createComponentExtension(options) {\n const { component, name } = options;\n return createReactExtension({ component, name });\n}\nfunction createReactExtension(options) {\n const { data = {}, name } = options;\n if (!name) {\n console.warn(\n \"Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.\"\n );\n }\n let Component;\n if (\"lazy\" in options.component) {\n const lazyLoader = options.component.lazy;\n Component = lazy(\n () => lazyLoader().then(\n (component) => ({ default: component }),\n (error) => {\n const ofExtension = name ? ` of the ${name} extension` : \"\";\n throw new ForwardedError(\n `Failed lazy loading${ofExtension}, try to reload the page`,\n error\n );\n }\n )\n );\n } else {\n Component = options.component.sync;\n }\n const componentName = name || Component.displayName || Component.name || \"Component\";\n return {\n expose(plugin) {\n const Result = (props) => {\n const app = useApp();\n const { Progress } = app.getComponents();\n const mountPoint = data?.[\"core.mountPoint\"];\n return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Progress, {}), children: /* @__PURE__ */ jsx(PluginErrorBoundary, { app, plugin, children: /* @__PURE__ */ jsx(\n AnalyticsContext,\n {\n attributes: {\n pluginId: plugin.getId(),\n ...name && { extension: name },\n ...mountPoint && { routeRef: mountPoint.id }\n },\n children: /* @__PURE__ */ jsx(Component, { ...props })\n }\n ) }) });\n };\n attachComponentData(Result, \"core.plugin\", plugin);\n attachComponentData(Result, \"core.extensionName\", name);\n for (const [key, value] of Object.entries(data)) {\n attachComponentData(Result, key, value);\n }\n Result.displayName = `Extension(${componentName})`;\n return Result;\n }\n };\n}\n\nexport { createComponentExtension, createReactExtension, createRoutableExtension };\n//# sourceMappingURL=extensions.esm.js.map\n","import { useMemo, Children, isValidElement, Fragment } from 'react';\nimport { getComponentData } from './componentData.esm.js';\nimport { useApi } from '../apis/system/useApi.esm.js';\nimport '../apis/definitions/auth.esm.js';\nimport '../apis/definitions/AlertApi.esm.js';\nimport '../apis/definitions/AnalyticsApi.esm.js';\nimport '../apis/definitions/AppThemeApi.esm.js';\nimport '../apis/definitions/ConfigApi.esm.js';\nimport '../apis/definitions/DiscoveryApi.esm.js';\nimport '../apis/definitions/ErrorApi.esm.js';\nimport { featureFlagsApiRef } from '../apis/definitions/FeatureFlagsApi.esm.js';\nimport '../apis/definitions/FetchApi.esm.js';\nimport '../apis/definitions/IdentityApi.esm.js';\nimport '../apis/definitions/OAuthRequestApi.esm.js';\nimport '../apis/definitions/StorageApi.esm.js';\n\nfunction selectChildren(rootNode, featureFlagsApi, selector, strictError) {\n return Children.toArray(rootNode).flatMap((node) => {\n if (!isValidElement(node)) {\n return [];\n }\n if (node.type === Fragment) {\n return selectChildren(\n node.props.children,\n featureFlagsApi,\n selector,\n strictError\n );\n }\n if (getComponentData(node, \"core.featureFlagged\")) {\n const props = node.props;\n const isEnabled = \"with\" in props ? featureFlagsApi.isActive(props.with) : !featureFlagsApi.isActive(props.without);\n if (isEnabled) {\n return selectChildren(\n node.props.children,\n featureFlagsApi,\n selector,\n strictError\n );\n }\n return [];\n }\n if (selector === void 0 || selector(node)) {\n return [node];\n }\n if (strictError) {\n throw new Error(strictError);\n }\n return selectChildren(\n node.props.children,\n featureFlagsApi,\n selector,\n strictError\n );\n });\n}\nclass Collection {\n constructor(node, featureFlagsApi) {\n this.node = node;\n this.featureFlagsApi = featureFlagsApi;\n }\n selectByComponentData(query) {\n const selection = selectChildren(\n this.node,\n this.featureFlagsApi,\n (node) => getComponentData(node, query.key) !== void 0,\n query.withStrictError\n );\n return new Collection(selection, this.featureFlagsApi);\n }\n findComponentData(query) {\n const selection = selectChildren(\n this.node,\n this.featureFlagsApi,\n (node) => getComponentData(node, query.key) !== void 0\n );\n return selection.map((node) => getComponentData(node, query.key)).filter((data) => data !== void 0);\n }\n getElements() {\n return selectChildren(this.node, this.featureFlagsApi);\n }\n}\nfunction useElementFilter(node, filterFn, dependencies = []) {\n const featureFlagsApi = useApi(featureFlagsApiRef);\n const elements = new Collection(node, featureFlagsApi);\n return useMemo(() => filterFn(elements), [node, ...dependencies]);\n}\n\nexport { useElementFilter };\n//# sourceMappingURL=useElementFilter.esm.js.map\n","class PluginImpl {\n constructor(config) {\n this.config = config;\n }\n getId() {\n return this.config.id;\n }\n getApis() {\n return this.config.apis ?? [];\n }\n getFeatureFlags() {\n return this.config.featureFlags?.slice() ?? [];\n }\n get routes() {\n return this.config.routes ?? {};\n }\n get externalRoutes() {\n return this.config.externalRoutes ?? {};\n }\n provide(extension) {\n return extension.expose(this);\n }\n toString() {\n return `plugin{${this.config.id}}`;\n }\n}\nfunction createPlugin(config) {\n return new PluginImpl(config);\n}\n\nexport { PluginImpl, createPlugin };\n//# sourceMappingURL=Plugin.esm.js.map\n","import { getOrCreateGlobalSingleton } from '@backstage/version-bridge';\n\nconst routeRefType = getOrCreateGlobalSingleton(\n \"route-ref-type\",\n () => Symbol(\"route-ref-type\")\n);\n\nexport { routeRefType };\n//# sourceMappingURL=types.esm.js.map\n","import { routeRefType } from './types.esm.js';\n\nclass RouteRefImpl {\n constructor(id, params) {\n this.id = id;\n this.params = params;\n }\n [routeRefType] = \"absolute\";\n get title() {\n return this.id;\n }\n toString() {\n return `routeRef{type=absolute,id=${this.id}}`;\n }\n}\nfunction createRouteRef(config) {\n return new RouteRefImpl(\n config.id,\n config.params ?? []\n );\n}\n\nexport { RouteRefImpl, createRouteRef };\n//# sourceMappingURL=RouteRef.esm.js.map\n","import { routeRefType } from './types.esm.js';\n\nconst PARAM_PATTERN = /^\\w+$/;\nclass SubRouteRefImpl {\n constructor(id, path, parent, params) {\n this.id = id;\n this.path = path;\n this.parent = parent;\n this.params = params;\n }\n [routeRefType] = \"sub\";\n toString() {\n return `routeRef{type=sub,id=${this.id}}`;\n }\n}\nfunction createSubRouteRef(config) {\n const { id, path, parent } = config;\n const pathParams = path.split(\"/\").filter((p) => p.startsWith(\":\")).map((p) => p.substring(1));\n const params = [...parent.params, ...pathParams];\n if (parent.params.some((p) => pathParams.includes(p))) {\n throw new Error(\n \"SubRouteRef may not have params that overlap with its parent\"\n );\n }\n if (!path.startsWith(\"/\")) {\n throw new Error(`SubRouteRef path must start with '/', got '${path}'`);\n }\n if (path.endsWith(\"/\")) {\n throw new Error(`SubRouteRef path must not end with '/', got '${path}'`);\n }\n for (const param of pathParams) {\n if (!PARAM_PATTERN.test(param)) {\n throw new Error(`SubRouteRef path has invalid param, got '${param}'`);\n }\n }\n const subRouteRef = new SubRouteRefImpl(\n id,\n path,\n parent,\n params\n );\n return subRouteRef;\n}\n\nexport { SubRouteRefImpl, createSubRouteRef };\n//# sourceMappingURL=SubRouteRef.esm.js.map\n","import { routeRefType } from './types.esm.js';\n\nclass ExternalRouteRefImpl {\n constructor(id, params, optional, defaultTarget) {\n this.id = id;\n this.params = params;\n this.optional = optional;\n this.defaultTarget = defaultTarget;\n }\n [routeRefType] = \"external\";\n toString() {\n return `routeRef{type=external,id=${this.id}}`;\n }\n getDefaultTarget() {\n return this.defaultTarget;\n }\n}\nfunction createExternalRouteRef(options) {\n return new ExternalRouteRefImpl(\n options.id,\n options.params ?? [],\n Boolean(options.optional),\n options?.defaultTarget\n );\n}\n\nexport { ExternalRouteRefImpl, createExternalRouteRef };\n//# sourceMappingURL=ExternalRouteRef.esm.js.map\n","import { useParams } from 'react-router-dom';\n\nfunction useRouteRefParams(_routeRef) {\n return useParams();\n}\n\nexport { useRouteRefParams };\n//# sourceMappingURL=useRouteRefParams.esm.js.map\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import 'react/jsx-runtime';\nimport '@backstage/version-bridge';\nimport '@backstage/errors';\nimport { createApiRef } from '../system/ApiRef.esm.js';\n\nconst errorApiRef = createApiRef({\n id: \"core.error\"\n});\n\nexport { errorApiRef };\n//# sourceMappingURL=ErrorApi.esm.js.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","import { jsx } from 'react/jsx-runtime';\nimport { useVersionedContext } from '@backstage/version-bridge';\nimport { NotImplementedError } from '@backstage/errors';\n\nfunction useApiHolder() {\n const versionedHolder = useVersionedContext(\"api-context\");\n if (!versionedHolder) {\n throw new NotImplementedError(\"API context is not available\");\n }\n const apiHolder = versionedHolder.atVersion(1);\n if (!apiHolder) {\n throw new NotImplementedError(\"ApiContext v1 not available\");\n }\n return apiHolder;\n}\nfunction useApi(apiRef) {\n const apiHolder = useApiHolder();\n const api = apiHolder.get(apiRef);\n if (!api) {\n throw new NotImplementedError(`No implementation available for ${apiRef}`);\n }\n return api;\n}\nfunction withApis(apis) {\n return function withApisWrapper(WrappedComponent) {\n const Hoc = (props) => {\n const apiHolder = useApiHolder();\n const impls = {};\n for (const key in apis) {\n if (apis.hasOwnProperty(key)) {\n const ref = apis[key];\n const api = apiHolder.get(ref);\n if (!api) {\n throw new NotImplementedError(\n `No implementation available for ${ref}`\n );\n }\n impls[key] = api;\n }\n }\n return /* @__PURE__ */ jsx(WrappedComponent, { ...props, ...impls });\n };\n const displayName = WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n Hoc.displayName = `withApis(${displayName})`;\n return Hoc;\n };\n}\n\nexport { useApi, useApiHolder, withApis };\n//# sourceMappingURL=useApi.esm.js.map\n","class ApiRefImpl {\n constructor(config) {\n this.config = config;\n const valid = config.id.split(\".\").flatMap((part) => part.split(\"-\")).every((part) => part.match(/^[a-z][a-z0-9]*$/));\n if (!valid) {\n throw new Error(\n `API id must only contain period separated lowercase alphanum tokens with dashes, got '${config.id}'`\n );\n }\n }\n get id() {\n return this.config.id;\n }\n // Utility for getting type of an api, using `typeof apiRef.T`\n get T() {\n throw new Error(`tried to read ApiRef.T of ${this}`);\n }\n toString() {\n return `apiRef{${this.config.id}}`;\n }\n}\nfunction createApiRef(config) {\n return new ApiRefImpl(config);\n}\n\nexport { createApiRef };\n//# sourceMappingURL=ApiRef.esm.js.map\n"],"names":["AnalyticsReactContext","createVersionedContext","useAnalyticsContext","theContext","useContext","routeRef","pluginId","extension","theValue","atVersion","Error","AnalyticsContext","options","attributes","children","combinedValue","versionedCombinedValue","createVersionedValueMap","jsx","Provider","value","analyticsApiRef","id","globalEvents","getOrCreateGlobalSingleton","mostRecentGatheredNavigation","mostRecentRoutableExtensionRender","beforeUnloadRegistered","routableExtensionRenderedEvent","Tracker","constructor","analyticsApi","context","this","addEventListener","captureEvent","once","passive","setContext","action","subject","_routeNodeType","e","console","warn","useAnalytics","trackerRef","useRef","useAnalyticsApi","tracker","current","createApiFactory","factory","instance","api","deps","SessionState","SessionState2","googleAuthApiRef","githubAuthApiRef","oktaAuthApiRef","gitlabAuthApiRef","microsoftAuthApiRef","oneloginAuthApiRef","bitbucketAuthApiRef","bitbucketServerAuthApiRef","atlassianAuthApiRef","vmwareCloudAuthApiRef","openshiftAuthApiRef","alertApiRef","appThemeApiRef","configApiRef","discoveryApiRef","FeatureFlagState","FeatureFlagState2","featureFlagsApiRef","fetchApiRef","identityApiRef","oauthRequestApiRef","storageApiRef","useApp","versionedContext","useVersionedContext","appContext","globalStore","WeakMap","componentDataKey","attachComponentData","component","type","data","dataComponent","container","get","map","Map","Object","defineProperty","enumerable","configurable","writable","set","has","name","displayName","getComponentData","node","useRouteRef","pathname","useLocation","resolver","routeFunc","useMemo","resolve","isOptional","optional","PluginErrorBoundary","Component","getDerivedStateFromError","error","state","handleErrorReset","setState","render","app","plugin","props","ErrorBoundaryFallback","getComponents","resetError","createRoutableExtension","mountPoint","createReactExtension","lazy","then","InnerComponent","RoutableExtensionWrapper","analytics","message","startsWith","useEffect","componentName","createComponentExtension","lazyLoader","default","ofExtension","sync","expose","Result","Progress","Suspense","fallback","getId","key","entries","selectChildren","rootNode","featureFlagsApi","selector","strictError","Children","toArray","flatMap","isValidElement","Fragment","isActive","with","without","Collection","selectByComponentData","query","selection","withStrictError","findComponentData","filter","getElements","useElementFilter","filterFn","dependencies","elements","PluginImpl","config","getApis","apis","getFeatureFlags","featureFlags","slice","routes","externalRoutes","provide","toString","createPlugin","routeRefType","Symbol","RouteRefImpl","params","title","createRouteRef","PARAM_PATTERN","SubRouteRefImpl","path","parent","createSubRouteRef","pathParams","split","p","substring","some","includes","endsWith","param","test","ExternalRouteRefImpl","defaultTarget","getDefaultTarget","createExternalRouteRef","Boolean","useRouteRefParams","_routeRef","useParams","module","exports","errorApiRef","f","k","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","ref","__self","__source","q","c","a","g","b","d","h","call","defaultProps","$$typeof","_owner","jsxs","useApiHolder","versionedHolder","apiHolder","useApi","apiRef","withApis","WrappedComponent","Hoc","impls","ApiRefImpl","part","every","match","T","createApiRef"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/6371.c83dc422.chunk.js","mappings":"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0C,WAAYrJ,EAAMmI,WAAWmB,iBAC7Bf,gBAAiBvI,EAAM+H,QAAQ3B,KAAKuC,MAItCa,cAAe,CACb7C,MAAO,OACP0C,WAAYrJ,EAAMmI,WAAWmB,iBAC7Bf,gBAAiBvI,EAAM+H,QAAQ9B,QAAQ0C,MAIzCc,YAAa,CACX9C,MAAO,OACP0C,WAAYrJ,EAAMmI,WAAWmB,iBAC7Bf,gBAAiBvI,EAAM+H,QAAQpL,MAAMgM,MAIvC/B,KAAM,CACJ8C,YAAa,GACbjB,QAAS,QACTD,QAAS,OACTxC,SAAU,GACV2D,QAAS,IAIXnK,QAAS,CACPiJ,QAAS,SAIXjC,OAAQ,CACNgC,QAAS,OACToB,WAAY,SACZ/I,WAAY,OACZgJ,YAAa,GACbH,aAAc,GAGpB,EA+IkC,CAChC3I,KAAM,YADR,CAEG7B,E,kBCpSH,IAAInE,EAAU,EAAQ,OAClBC,EAAU,EAAQ,OAClB8O,EAAe/O,EAAQG,gBAAgB,EAAQ,OAWnDL,EAAQ,EAVR,SAAkBM,EAAIC,QACL,IAATA,IAAmBA,EAAO,IAC9B,IAAIO,EAAKmO,EAAapO,QAAQP,EAAIC,EAAM,CACpCE,SAAS,IACTO,EAAQF,EAAG,GAAII,EAAWJ,EAAG,GAIjC,OAHAX,EAAQ8B,UAAU,WACdf,GACJ,EAAG,CAACA,IACGF,CACX,C","sources":["webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useAsyncFn.js","webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useMountedState.js","webpack://internal.plugin-kuadrant/../../node_modules/@backstage/plugin-catalog-react/dist/hooks/useEntity.esm.js","webpack://internal.plugin-kuadrant/./src/components/ApiProductOpenApiAlert/ApiProductOpenApiAlert.tsx","webpack://internal.plugin-kuadrant/./node_modules/@backstage/core-components/dist/components/Link/Link.esm.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/icons/OpenInNew.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/node_modules/clsx/dist/clsx.m.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/internal/svg-icons/SuccessOutlined.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/internal/svg-icons/ReportProblemOutlined.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/internal/svg-icons/ErrorOutline.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/internal/svg-icons/InfoOutlined.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/internal/svg-icons/Close.js","webpack://internal.plugin-kuadrant/../../node_modules/@material-ui/lab/esm/Alert/Alert.js","webpack://internal.plugin-kuadrant/../../node_modules/react-use/lib/useAsync.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = require(\"react\");\nvar useMountedState_1 = tslib_1.__importDefault(require(\"./useMountedState\"));\nfunction useAsyncFn(fn, deps, initialState) {\n if (deps === void 0) { deps = []; }\n if (initialState === void 0) { initialState = { loading: false }; }\n var lastCallId = react_1.useRef(0);\n var isMounted = useMountedState_1.default();\n var _a = react_1.useState(initialState), state = _a[0], set = _a[1];\n var callback = react_1.useCallback(function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var callId = ++lastCallId.current;\n if (!state.loading) {\n set(function (prevState) { return (tslib_1.__assign(tslib_1.__assign({}, prevState), { loading: true })); });\n }\n return fn.apply(void 0, args).then(function (value) {\n isMounted() && callId === lastCallId.current && set({ value: value, loading: false });\n return value;\n }, function (error) {\n isMounted() && callId === lastCallId.current && set({ error: error, loading: false });\n return error;\n });\n }, deps);\n return [state, callback];\n}\nexports.default = useAsyncFn;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nfunction useMountedState() {\n var mountedRef = react_1.useRef(false);\n var get = react_1.useCallback(function () { return mountedRef.current; }, []);\n react_1.useEffect(function () {\n mountedRef.current = true;\n return function () {\n mountedRef.current = false;\n };\n }, []);\n return get;\n}\nexports.default = useMountedState;\n","import { jsx } from 'react/jsx-runtime';\nimport { stringifyEntityRef } from '@backstage/catalog-model';\nimport { AnalyticsContext } from '@backstage/core-plugin-api';\nimport { createVersionedContext, useVersionedContext, createVersionedValueMap } from '@backstage/version-bridge';\n\nconst NewEntityContext = createVersionedContext(\n \"entity-context\"\n);\nconst AsyncEntityProvider = (props) => {\n const { children, entity, loading, error, refresh } = props;\n const value = { entity, loading, error, refresh };\n return /* @__PURE__ */ jsx(NewEntityContext.Provider, { value: createVersionedValueMap({ 1: value }), children: /* @__PURE__ */ jsx(\n AnalyticsContext,\n {\n attributes: {\n ...entity ? { entityRef: stringifyEntityRef(entity) } : void 0\n },\n children\n }\n ) });\n};\nconst EntityProvider = (props) => /* @__PURE__ */ jsx(\n AsyncEntityProvider,\n {\n entity: props.entity,\n loading: !Boolean(props.entity),\n error: void 0,\n refresh: void 0,\n children: props.children\n }\n);\nfunction useEntity() {\n const versionedHolder = useVersionedContext(\n \"entity-context\"\n );\n if (!versionedHolder) {\n throw new Error(\"Entity context is not available\");\n }\n const value = versionedHolder.atVersion(1);\n if (!value) {\n throw new Error(\"EntityContext v1 not available\");\n }\n if (!value.entity) {\n throw new Error(\n \"useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.\"\n );\n }\n return { entity: value.entity };\n}\nfunction useAsyncEntity() {\n const versionedHolder = useVersionedContext(\n \"entity-context\"\n );\n if (!versionedHolder) {\n throw new Error(\"Entity context is not available\");\n }\n const value = versionedHolder.atVersion(1);\n if (!value) {\n throw new Error(\"EntityContext v1 not available\");\n }\n const { entity, loading, error, refresh } = value;\n return { entity, loading, error, refresh };\n}\n\nexport { AsyncEntityProvider, EntityProvider, useAsyncEntity, useEntity };\n//# sourceMappingURL=useEntity.esm.js.map\n","import React from \"react\";\nimport { useEntity } from \"@backstage/plugin-catalog-react\";\nimport { useApi, configApiRef, fetchApiRef } from \"@backstage/core-plugin-api\";\nimport { Link } from \"@backstage/core-components\";\nimport { Box, Typography } from \"@material-ui/core\";\nimport { Alert } from \"@material-ui/lab\";\nimport useAsync from \"react-use/lib/useAsync\";\n\n// Displays alerts for OpenAPI spec issues.\nexport const ApiProductOpenApiAlert = () => {\n const { entity } = useEntity();\n const config = useApi(configApiRef);\n const fetchApi = useApi(fetchApiRef);\n const backendUrl = config.getString(\"backend.baseUrl\");\n\n // Get APIProduct reference from entity annotations\n const namespace = entity.metadata.annotations?.[\"kuadrant.io/namespace\"];\n const apiProductName =\n entity.metadata.annotations?.[\"kuadrant.io/apiproduct\"];\n\n // Fetch the full APIProduct resource to check status conditions\n const {value: apiProduct,loading,error,} = useAsync(async () => {\n if (!namespace || !apiProductName) {\n return null;\n }\n\n const response = await fetchApi.fetch(\n `${backendUrl}/api/kuadrant/apiproducts/${namespace}/${apiProductName}`,\n );\n\n if (!response.ok) {\n return null;\n }\n\n return await response.json();\n }, [backendUrl, fetchApi, namespace, apiProductName]);\n\n // Don't render anything if data is missing or still loading\n if (!namespace || !apiProductName || loading || error || !apiProduct) {\n return null;\n }\n\n const { spec, status } = apiProduct;\n\n const openAPICondition = status?.conditions?.find(\n (c: any) => c.type === \"OpenAPISpecReady\" && c.status === \"False\",\n );\n\n if (!openAPICondition) {\n return null;\n }\n\n return (\n <Box mb={2}>\n <Alert severity=\"warning\">\n <Typography variant=\"body2\" gutterBottom>\n <strong>OpenAPI Spec Issue</strong>\n </Typography>\n <Typography variant=\"body2\" gutterBottom>\n {openAPICondition.message}\n </Typography>\n {spec.documentation?.openAPISpecURL && (\n <Typography variant=\"body2\">\n Spec URL:{\" \"}\n <Link to={spec.documentation.openAPISpecURL} target=\"_blank\">\n {spec.documentation.openAPISpecURL}\n </Link>\n </Typography>\n )}\n </Alert>\n </Box>\n );\n};\n","import { jsxs, jsx } from 'react/jsx-runtime';\nimport { useAnalytics, useApp, useApi, configApiRef } from '@backstage/core-plugin-api';\nimport MaterialLink from '@material-ui/core/Link';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport classNames from 'classnames';\nimport { trimEnd } from 'lodash';\nimport { forwardRef } from 'react';\nimport { Link as Link$1, createRoutesFromChildren, Route } from 'react-router-dom';\nimport OpenInNew from '@material-ui/icons/OpenInNew';\n\nfunction isReactRouterBeta() {\n const [obj] = createRoutesFromChildren(/* @__PURE__ */ jsx(Route, { index: true, element: /* @__PURE__ */ jsx(\"div\", {}) }));\n return !obj.index;\n}\nconst useStyles = makeStyles(\n (theme) => ({\n visuallyHidden: {\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n overflow: \"hidden\",\n position: \"absolute\",\n userSelect: \"none\",\n whiteSpace: \"nowrap\",\n height: 1,\n width: 1\n },\n externalLink: {\n position: \"relative\"\n },\n externalLinkIcon: {\n verticalAlign: \"bottom\",\n marginLeft: theme.spacing(0.5)\n }\n }),\n { name: \"Link\" }\n);\nconst ExternalLinkIcon = () => {\n const app = useApp();\n const Icon = app.getSystemIcon(\"externalLink\") || OpenInNew;\n const classes = useStyles();\n return /* @__PURE__ */ jsx(Icon, { className: classes.externalLinkIcon });\n};\nconst isExternalUri = (uri) => /^([a-z+.-]+):/.test(uri);\nconst scriptProtocolPattern = (\n // eslint-disable-next-line no-control-regex\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i\n);\nconst originalWindowOpen = window.open;\nif (originalWindowOpen && !originalWindowOpen.__backstage) {\n const newOpen = function open(...args) {\n const url = String(args[0]);\n if (scriptProtocolPattern.test(url)) {\n throw new Error(\n \"Rejected window.open() with a javascript: URL as a security precaution\"\n );\n }\n return originalWindowOpen.apply(this, args);\n };\n newOpen.__backstage = true;\n window.open = newOpen;\n}\nconst useBaseUrl = () => {\n try {\n const config = useApi(configApiRef);\n return config.getOptionalString(\"app.baseUrl\");\n } catch {\n return void 0;\n }\n};\nconst useBasePath = () => {\n const base = \"http://sample.dev\";\n const url = useBaseUrl() ?? \"/\";\n const { pathname } = new URL(url, base);\n return trimEnd(pathname, \"/\");\n};\nconst useResolvedPath = (uri) => {\n let resolvedPath = String(uri);\n const basePath = useBasePath();\n const external = isExternalUri(resolvedPath);\n const startsWithBasePath = resolvedPath.startsWith(basePath);\n if (!external && !startsWithBasePath) {\n resolvedPath = basePath.concat(resolvedPath);\n }\n return resolvedPath;\n};\nconst getNodeText = (node) => {\n if (node instanceof Array) {\n return node.map(getNodeText).join(\" \").trim();\n }\n if (typeof node === \"object\" && node) {\n return getNodeText(node?.props?.children);\n }\n if ([\"string\", \"number\"].includes(typeof node)) {\n return String(node);\n }\n return \"\";\n};\nconst Link = forwardRef(\n ({ onClick, noTrack, externalLinkIcon, ...props }, ref) => {\n const classes = useStyles();\n const analytics = useAnalytics();\n const to = isReactRouterBeta() ? useResolvedPath(props.to) : props.to;\n const linkText = getNodeText(props.children) || to;\n const external = isExternalUri(to);\n const newWindow = external && !!/^https?:/.exec(to);\n if (scriptProtocolPattern.test(to)) {\n throw new Error(\n \"Link component rejected javascript: URL as a security precaution\"\n );\n }\n const handleClick = (event) => {\n onClick?.(event);\n if (!noTrack) {\n analytics.captureEvent(\"click\", linkText, { attributes: { to } });\n }\n };\n return external ? (\n // External links\n /* @__PURE__ */ jsxs(\n MaterialLink,\n {\n ...newWindow ? { target: \"_blank\", rel: \"noopener\" } : {},\n ...props,\n ...props[\"aria-label\"] ? { \"aria-label\": `${props[\"aria-label\"]}, Opens in a new window` } : {},\n ref,\n href: to,\n onClick: handleClick,\n className: classNames(classes.externalLink, props.className),\n children: [\n props.children,\n externalLinkIcon && /* @__PURE__ */ jsx(ExternalLinkIcon, {}),\n /* @__PURE__ */ jsx(Typography, { component: \"span\", className: classes.visuallyHidden, children: \", Opens in a new window\" })\n ]\n }\n )\n ) : (\n // Interact with React Router for internal links\n /* @__PURE__ */ jsx(\n MaterialLink,\n {\n ...props,\n ref,\n component: Link$1,\n to,\n onClick: handleClick\n }\n )\n );\n }\n);\n\nexport { Link, isExternalUri, isReactRouterBeta, useResolvedPath };\n//# sourceMappingURL=Link.esm.js.map\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z\"\n}), 'OpenInNew');\n\nexports.default = _default;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z\"\n}), 'SuccessOutlined');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"\n}), 'ReportProblemOutlined');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n}), 'ErrorOutline');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z\"\n}), 'InfoOutlined');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { withStyles, lighten, darken } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport SuccessOutlinedIcon from '../internal/svg-icons/SuccessOutlined';\nimport ReportProblemOutlinedIcon from '../internal/svg-icons/ReportProblemOutlined';\nimport ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline';\nimport InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';\nimport CloseIcon from '../internal/svg-icons/Close';\nimport IconButton from '@material-ui/core/IconButton';\nimport { capitalize } from '@material-ui/core/utils';\nexport var styles = function styles(theme) {\n var getColor = theme.palette.type === 'light' ? darken : lighten;\n var getBackgroundColor = theme.palette.type === 'light' ? lighten : darken;\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.body2, {\n borderRadius: theme.shape.borderRadius,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px'\n }),\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"success\"`. */\n standardSuccess: {\n color: getColor(theme.palette.success.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.success.main, 0.9),\n '& $icon': {\n color: theme.palette.success.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"info\"`. */\n standardInfo: {\n color: getColor(theme.palette.info.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.info.main, 0.9),\n '& $icon': {\n color: theme.palette.info.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"warning\"`. */\n standardWarning: {\n color: getColor(theme.palette.warning.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.warning.main, 0.9),\n '& $icon': {\n color: theme.palette.warning.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"error\"`. */\n standardError: {\n color: getColor(theme.palette.error.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.error.main, 0.9),\n '& $icon': {\n color: theme.palette.error.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"success\"`. */\n outlinedSuccess: {\n color: getColor(theme.palette.success.main, 0.6),\n border: \"1px solid \".concat(theme.palette.success.main),\n '& $icon': {\n color: theme.palette.success.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"info\"`. */\n outlinedInfo: {\n color: getColor(theme.palette.info.main, 0.6),\n border: \"1px solid \".concat(theme.palette.info.main),\n '& $icon': {\n color: theme.palette.info.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"warning\"`. */\n outlinedWarning: {\n color: getColor(theme.palette.warning.main, 0.6),\n border: \"1px solid \".concat(theme.palette.warning.main),\n '& $icon': {\n color: theme.palette.warning.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"error\"`. */\n outlinedError: {\n color: getColor(theme.palette.error.main, 0.6),\n border: \"1px solid \".concat(theme.palette.error.main),\n '& $icon': {\n color: theme.palette.error.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"success\"`. */\n filledSuccess: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.success.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"info\"`. */\n filledInfo: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.info.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"warning\"`. */\n filledWarning: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.warning.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"error\"`. */\n filledError: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.error.main\n },\n\n /* Styles applied to the icon wrapper element. */\n icon: {\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n },\n\n /* Styles applied to the message wrapper element. */\n message: {\n padding: '8px 0'\n },\n\n /* Styles applied to the action wrapper element if `action` is provided. */\n action: {\n display: 'flex',\n alignItems: 'center',\n marginLeft: 'auto',\n paddingLeft: 16,\n marginRight: -8\n }\n };\n};\nvar defaultIconMapping = {\n success: /*#__PURE__*/React.createElement(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/React.createElement(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/React.createElement(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/React.createElement(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\n\nvar _ref = /*#__PURE__*/React.createElement(CloseIcon, {\n fontSize: \"small\"\n});\n\nvar Alert = /*#__PURE__*/React.forwardRef(function Alert(props, ref) {\n var action = props.action,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$closeText = props.closeText,\n closeText = _props$closeText === void 0 ? 'Close' : _props$closeText,\n color = props.color,\n icon = props.icon,\n _props$iconMapping = props.iconMapping,\n iconMapping = _props$iconMapping === void 0 ? defaultIconMapping : _props$iconMapping,\n onClose = props.onClose,\n _props$role = props.role,\n role = _props$role === void 0 ? 'alert' : _props$role,\n _props$severity = props.severity,\n severity = _props$severity === void 0 ? 'success' : _props$severity,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'standard' : _props$variant,\n other = _objectWithoutProperties(props, [\"action\", \"children\", \"classes\", \"className\", \"closeText\", \"color\", \"icon\", \"iconMapping\", \"onClose\", \"role\", \"severity\", \"variant\"]);\n\n return /*#__PURE__*/React.createElement(Paper, _extends({\n role: role,\n square: true,\n elevation: 0,\n className: clsx(classes.root, classes[\"\".concat(variant).concat(capitalize(color || severity))], className),\n ref: ref\n }, other), icon !== false ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.icon\n }, icon || iconMapping[severity] || defaultIconMapping[severity]) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: classes.message\n }, children), action != null ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.action\n }, action) : null, action == null && onClose ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.action\n }, /*#__PURE__*/React.createElement(IconButton, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose\n }, _ref)) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](/guides/localization/).\n */\n closeText: PropTypes.string,\n\n /**\n * The main color for the alert. Unless provided, the value is taken from the `severity` prop.\n */\n color: PropTypes.oneOf(['error', 'info', 'success', 'warning']),\n\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n */\n icon: PropTypes.node,\n\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to `<SuccessOutlined>`.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * The ARIA role attribute of the element.\n */\n role: PropTypes.string,\n\n /**\n * The severity of the alert. This defines the color and icon used.\n */\n severity: PropTypes.oneOf(['error', 'info', 'success', 'warning']),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAlert'\n})(Alert);","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\nvar react_1 = require(\"react\");\nvar useAsyncFn_1 = tslib_1.__importDefault(require(\"./useAsyncFn\"));\nfunction useAsync(fn, deps) {\n if (deps === void 0) { deps = []; }\n var _a = useAsyncFn_1.default(fn, deps, {\n loading: true,\n }), state = _a[0], callback = _a[1];\n react_1.useEffect(function () {\n callback();\n }, [callback]);\n return state;\n}\nexports.default = useAsync;\n"],"names":["Object","defineProperty","exports","value","tslib_1","react_1","useMountedState_1","__importDefault","fn","deps","initialState","loading","lastCallId","useRef","isMounted","default","_a","useState","state","set","callback","useCallback","args","_i","arguments","length","callId","current","prevState","__assign","apply","then","error","mountedRef","get","useEffect","useEntity","versionedHolder","useVersionedContext","Error","atVersion","entity","createVersionedContext","ApiProductOpenApiAlert","status","spec","config","useApi","configApiRef","fetchApi","fetchApiRef","backendUrl","getString","namespace","metadata","annotations","apiProductName","apiProduct","useAsync","async","response","fetch","ok","json","openAPICondition","conditions","find","c","type","Box","mb","Alert","severity","Typography","variant","gutterBottom","strong","message","documentation","openAPISpecURL","Link","to","target","useStyles","makeStyles","theme","visuallyHidden","clip","clipPath","overflow","position","userSelect","whiteSpace","height","width","externalLink","externalLinkIcon","verticalAlign","marginLeft","spacing","name","ExternalLinkIcon","Icon","useApp","getSystemIcon","classes","jsx","className","isExternalUri","uri","test","scriptProtocolPattern","originalWindowOpen","window","open","__backstage","newOpen","url","String","this","getNodeText","node","Array","map","join","trim","props","children","includes","forwardRef","onClick","noTrack","ref","analytics","useAnalytics","obj","createRoutesFromChildren","Route","index","element","isReactRouterBeta","resolvedPath","basePath","getOptionalString","useBaseUrl","pathname","URL","trimEnd","useBasePath","external","startsWithBasePath","startsWith","concat","useResolvedPath","linkText","newWindow","exec","handleClick","event","captureEvent","attributes","jsxs","rel","href","component","_interopRequireDefault","_interopRequireWildcard","React","_default","createElement","d","r","e","t","f","n","isArray","createSvgIcon","defaultIconMapping","success","SuccessOutlined","fontSize","warning","ReportProblemOutlined","ErrorOutline","info","InfoOutlined","_ref","Close","action","_props$closeText","closeText","color","icon","_props$iconMapping","iconMapping","onClose","_props$role","role","_props$severity","_props$variant","other","Paper","square","elevation","root","capitalize","IconButton","size","title","withStyles","getColor","palette","darken","lighten","getBackgroundColor","typography","body2","borderRadius","shape","backgroundColor","display","padding","standardSuccess","main","standardInfo","standardWarning","standardError","outlinedSuccess","border","outlinedInfo","outlinedWarning","outlinedError","filledSuccess","fontWeight","fontWeightMedium","filledInfo","filledWarning","filledError","marginRight","opacity","alignItems","paddingLeft","useAsyncFn_1"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunkinternal_plugin_kuadrant=self.webpackChunkinternal_plugin_kuadrant||[]).push([[6422],{5030:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(85608),a=n(95478),o=r.__importDefault(n(10009));t.default=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={loading:!1});var i=a.useRef(0),l=o.default(),c=a.useState(n),s=c[0],u=c[1],d=a.useCallback(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=++i.current;return s.loading||u(function(e){return r.__assign(r.__assign({},e),{loading:!0})}),e.apply(void 0,t).then(function(e){return l()&&a===i.current&&u({value:e,loading:!1}),e},function(e){return l()&&a===i.current&&u({error:e,loading:!1}),e})},t);return[s,d]}},10009:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(95478);t.default=function(){var e=r.useRef(!1),t=r.useCallback(function(){return e.current},[]);return r.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}},18466:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.A=i},21702:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"VpnKey");t.A=i},23164:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.A=i},27799:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 4-3.99z"}),"BrokenImage");t.A=i},39590:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.A=i},45210:(e,t,n)=>{n.d(t,{Y:()=>L});var r=n(31085),a=n(22097),o=n(10394),i=n(64947),l=n(93453),c=n(29365),s=n(46423),u=n(5951),d=n(26343),p=n(28233),m=n(55197),f=n(37976),h=n(72501),g=n(5893),v=n(95478),A=(n(45250),n(42469),n(16098)),b=n(67550);const x=()=>{const{t:e}=(0,b.i)(A.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:e("supportConfig.default.title"),icon:"warning",links:[{title:e("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};var y=n(27799);function k(e){const{id:t,Fallback:n=y.A,...o}=e,i=(0,a.useApp)().getSystemIcon(t)??n;return(0,r.jsx)(i,{...o})}function C(e){return(0,r.jsx)(k,{id:"help",...e})}var z=n(37725);const E=(0,f.makeStyles)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),M=({icon:e})=>{const t=(0,a.useApp)(),n=e?t.getSystemIcon(e)??C:C;return(0,r.jsx)(n,{})},S=({link:e})=>(0,r.jsx)(z.N_,{to:e.url,children:e.title??e.url}),j=({item:e})=>(0,r.jsxs)(d.A,{button:!1,children:[(0,r.jsx)(s.A,{children:(0,r.jsx)(M,{icon:e.icon})}),(0,r.jsx)(u.A,{primary:e.title,secondary:e.links?.reduce((e,t,n)=>[...e,n>0&&(0,r.jsx)("br",{},n),(0,r.jsx)(S,{link:t},t.url)],[])})]});function L(e){const{t}=(0,b.i)(A.O),{title:n,items:s,children:u}=e,{items:f}=function(){const e=(0,a.useApiHolder)().get(a.configApiRef),t=e?.getOptionalConfig("app.support"),n=x();return t?{url:t.getString("url"),items:t.getConfigArray("items").flatMap(e=>({title:e.getString("title"),icon:e.getOptionalString("icon"),links:(e.getOptionalConfigArray("links")??[]).flatMap(e=>({url:e.getString("url"),title:e.getOptionalString("title")??""}))}))}:n}(),[y,k]=(0,v.useState)(!1),[z,M]=(0,v.useState)(null),S=E(),L=(0,a.useApi)(a.configApiRef).getOptionalConfig("app.support"),_=(0,g.A)(e=>e.breakpoints.down("sm")),I=e=>{M(e.currentTarget),k(!0)},O=()=>{k(!1)};return L?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{display:"flex",ml:1,children:_?(0,r.jsx)(c.A,{color:"primary",size:"small",onClick:I,"data-testid":"support-button","aria-label":"Support",children:(0,r.jsx)(C,{})}):(0,r.jsx)(i.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:I,startIcon:(0,r.jsx)(C,{}),children:t("supportButton.title")})}),(0,r.jsxs)(m.Ay,{"data-testid":"support-button-popover",open:y,anchorEl:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:O,children:[(0,r.jsxs)(p.A,{className:S.popoverList,autoFocusItem:Boolean(z),children:[n&&(0,r.jsx)(d.A,{button:!1,alignItems:"flex-start",className:S.menuItem,children:(0,r.jsx)(h.A,{variant:"subtitle1",children:n})}),v.Children.map(u,(e,t)=>(0,r.jsx)(d.A,{button:!1,alignItems:"flex-start",className:S.menuItem,children:e},`child-${t}`)),(s??f).map((e,t)=>(0,r.jsx)(j,{item:e},`item-${t}`))]}),(0,r.jsx)(l.A,{children:(0,r.jsx)(i.A,{color:"primary",onClick:O,"aria-label":"Close",children:t("supportButton.close")})})]})]}):null}},77225:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.A=i},84441:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(39850),a=n(89575),o=n(95478);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const l=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r};var c=n(37976),s=n(4321),u=n(38483);const d=(0,u.A)(o.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),p=(0,u.A)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m=(0,u.A)(o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),f=(0,u.A)(o.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),h=(0,u.A)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var g=n(29365),v=n(11192),A={success:o.createElement(d,{fontSize:"inherit"}),warning:o.createElement(p,{fontSize:"inherit"}),error:o.createElement(m,{fontSize:"inherit"}),info:o.createElement(f,{fontSize:"inherit"})},b=o.createElement(h,{fontSize:"small"}),x=o.forwardRef(function(e,t){var n=e.action,i=e.children,c=e.classes,u=e.className,d=e.closeText,p=void 0===d?"Close":d,m=e.color,f=e.icon,h=e.iconMapping,x=void 0===h?A:h,y=e.onClose,k=e.role,C=void 0===k?"alert":k,z=e.severity,E=void 0===z?"success":z,M=e.variant,S=void 0===M?"standard":M,j=(0,r.A)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return o.createElement(s.A,(0,a.A)({role:C,square:!0,elevation:0,className:l(c.root,c["".concat(S).concat((0,v.A)(m||E))],u),ref:t},j),!1!==f?o.createElement("div",{className:c.icon},f||x[E]||A[E]):null,o.createElement("div",{className:c.message},i),null!=n?o.createElement("div",{className:c.action},n):null,null==n&&y?o.createElement("div",{className:c.action},o.createElement(g.A,{size:"small","aria-label":p,title:p,color:"inherit",onClick:y},b)):null)});const y=(0,c.withStyles)(function(e){var t="light"===e.palette.type?c.darken:c.lighten,n="light"===e.palette.type?c.lighten:c.darken;return{root:(0,a.A)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},{name:"MuiAlert"})(x)},85142:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");t.A=i},89031:(e,t,n)=>{var r=n(4293),a=n(78920);t.A=void 0;var o=a(n(95478)),i=(0,r(n(74044)).default)(o.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.A=i},91638:(e,t,n)=>{var r=n(85608),a=n(95478),o=r.__importDefault(n(5030));t.A=function(e,t){void 0===t&&(t=[]);var n=o.default(e,t,{loading:!0}),r=n[0],i=n[1];return a.useEffect(function(){i()},[i]),r}}}]);
2
- //# sourceMappingURL=6422.97baf774.chunk.js.map