@techdocs/cli 1.8.17-next.0 → 1.8.17-next.2

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 (118) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/embedded-app/.config-schema.json +96 -1
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/124.a0a572f3.chunk.js +6 -0
  5. package/dist/embedded-app/static/124.a0a572f3.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/{1297.f8916d08.chunk.js → 1297.b4799570.chunk.js} +3 -3
  7. package/dist/embedded-app/static/1297.b4799570.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/1902.6f404f8c.chunk.js +10 -0
  9. package/dist/embedded-app/static/1902.6f404f8c.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/2401.14631655.chunk.js +6 -0
  11. package/dist/embedded-app/static/2401.14631655.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/2420.f9fbc916.chunk.js +6 -0
  13. package/dist/embedded-app/static/2420.f9fbc916.chunk.js.map +1 -0
  14. package/dist/embedded-app/static/287.961ccb08.chunk.js +6 -0
  15. package/dist/embedded-app/static/287.961ccb08.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/3182.3cbe56e4.chunk.js +7 -0
  17. package/dist/embedded-app/static/3182.3cbe56e4.chunk.js.map +1 -0
  18. package/dist/embedded-app/static/3632.681a005c.chunk.js +6 -0
  19. package/dist/embedded-app/static/3632.681a005c.chunk.js.map +1 -0
  20. package/dist/embedded-app/static/3720.1978cecb.chunk.js +11 -0
  21. package/dist/embedded-app/static/3720.1978cecb.chunk.js.map +1 -0
  22. package/dist/embedded-app/static/4036.a029793d.chunk.js +3 -0
  23. package/dist/embedded-app/static/4036.a029793d.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/4487.f9cc6633.chunk.js +3 -0
  25. package/dist/embedded-app/static/4487.f9cc6633.chunk.js.map +1 -0
  26. package/dist/embedded-app/static/4516.b1a92d53.chunk.js +3 -0
  27. package/dist/embedded-app/static/4516.b1a92d53.chunk.js.map +1 -0
  28. package/dist/embedded-app/static/4919.e2124196.chunk.js +3 -0
  29. package/dist/embedded-app/static/4919.e2124196.chunk.js.map +1 -0
  30. package/dist/embedded-app/static/5724.8c459ffd.chunk.js +4 -0
  31. package/dist/embedded-app/static/5724.8c459ffd.chunk.js.map +1 -0
  32. package/dist/embedded-app/static/6271.1952ce76.chunk.js +6 -0
  33. package/dist/embedded-app/static/6271.1952ce76.chunk.js.map +1 -0
  34. package/dist/embedded-app/static/6415.3f0e01a6.chunk.js +6 -0
  35. package/dist/embedded-app/static/6415.3f0e01a6.chunk.js.map +1 -0
  36. package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js +9 -0
  37. package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js.map +1 -0
  38. package/dist/embedded-app/static/8384.96619c53.chunk.js +6 -0
  39. package/dist/embedded-app/static/8384.96619c53.chunk.js.map +1 -0
  40. package/dist/embedded-app/static/898.815b96f0.chunk.js +4 -0
  41. package/dist/embedded-app/static/898.815b96f0.chunk.js.map +1 -0
  42. package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js → 9234.ad94610e.chunk.js} +2 -2
  43. package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js.map → 9234.ad94610e.chunk.js.map} +1 -1
  44. package/dist/embedded-app/static/9605.18e9db70.chunk.js +11 -0
  45. package/dist/embedded-app/static/9605.18e9db70.chunk.js.map +1 -0
  46. package/dist/embedded-app/static/9652.8daa9515.chunk.js +6 -0
  47. package/dist/embedded-app/static/9652.8daa9515.chunk.js.map +1 -0
  48. package/dist/embedded-app/static/main.6518d659.js +509 -0
  49. package/dist/embedded-app/static/main.6518d659.js.map +1 -0
  50. package/dist/embedded-app/static/{module-material-table.60f080a9.js → module-material-table.695896b2.js} +2 -2
  51. package/dist/embedded-app/static/{module-material-table.60f080a9.js.map → module-material-table.695896b2.js.map} +1 -1
  52. package/dist/embedded-app/static/module-material-ui.3807a580.js +24 -0
  53. package/dist/embedded-app/static/module-material-ui.3807a580.js.map +1 -0
  54. package/dist/embedded-app/static/module-zod.9a0df421.js +3 -0
  55. package/dist/embedded-app/static/{module-zod.18508a39.js.map → module-zod.9a0df421.js.map} +1 -1
  56. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js} +2 -2
  57. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js.map → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js.map} +1 -1
  58. package/dist/embedded-app/static/{runtime.c21a7aa4.js → runtime.6518d659.js} +2 -2
  59. package/dist/embedded-app/static/runtime.6518d659.js.map +1 -0
  60. package/dist/embedded-app/static/vendor.6518d659.js +155 -0
  61. package/dist/embedded-app/static/vendor.6518d659.js.map +1 -0
  62. package/dist/index.cjs.js +1 -1
  63. package/package.json +4 -4
  64. package/dist/embedded-app/static/124.5ba6885f.chunk.js +0 -6
  65. package/dist/embedded-app/static/124.5ba6885f.chunk.js.map +0 -1
  66. package/dist/embedded-app/static/1297.f8916d08.chunk.js.map +0 -1
  67. package/dist/embedded-app/static/2401.d309433f.chunk.js +0 -6
  68. package/dist/embedded-app/static/2401.d309433f.chunk.js.map +0 -1
  69. package/dist/embedded-app/static/2420.037cfc15.chunk.js +0 -6
  70. package/dist/embedded-app/static/2420.037cfc15.chunk.js.map +0 -1
  71. package/dist/embedded-app/static/2745.5b1c08b3.chunk.js +0 -6
  72. package/dist/embedded-app/static/2745.5b1c08b3.chunk.js.map +0 -1
  73. package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js +0 -168
  74. package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js.map +0 -1
  75. package/dist/embedded-app/static/287.0d76734a.chunk.js +0 -6
  76. package/dist/embedded-app/static/287.0d76734a.chunk.js.map +0 -1
  77. package/dist/embedded-app/static/3182.690c18de.chunk.js +0 -7
  78. package/dist/embedded-app/static/3182.690c18de.chunk.js.map +0 -1
  79. package/dist/embedded-app/static/3632.c54686af.chunk.js +0 -6
  80. package/dist/embedded-app/static/3632.c54686af.chunk.js.map +0 -1
  81. package/dist/embedded-app/static/4036.6d4f48ee.chunk.js +0 -3
  82. package/dist/embedded-app/static/4036.6d4f48ee.chunk.js.map +0 -1
  83. package/dist/embedded-app/static/4400.74f2ff55.chunk.js +0 -6
  84. package/dist/embedded-app/static/4400.74f2ff55.chunk.js.map +0 -1
  85. package/dist/embedded-app/static/4943.f9ffc89d.chunk.js +0 -4
  86. package/dist/embedded-app/static/4943.f9ffc89d.chunk.js.map +0 -1
  87. package/dist/embedded-app/static/5502.59e5e2d7.chunk.js +0 -3
  88. package/dist/embedded-app/static/5502.59e5e2d7.chunk.js.map +0 -1
  89. package/dist/embedded-app/static/5580.aad136c2.chunk.js +0 -4
  90. package/dist/embedded-app/static/5580.aad136c2.chunk.js.map +0 -1
  91. package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js +0 -3
  92. package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js.map +0 -1
  93. package/dist/embedded-app/static/6271.50d6fc37.chunk.js +0 -6
  94. package/dist/embedded-app/static/6271.50d6fc37.chunk.js.map +0 -1
  95. package/dist/embedded-app/static/6545.f37f8e2b.chunk.js +0 -3
  96. package/dist/embedded-app/static/6545.f37f8e2b.chunk.js.map +0 -1
  97. package/dist/embedded-app/static/7137.9e328e07.chunk.js +0 -3
  98. package/dist/embedded-app/static/7137.9e328e07.chunk.js.map +0 -1
  99. package/dist/embedded-app/static/8307.0cba06d7.chunk.js +0 -9
  100. package/dist/embedded-app/static/8307.0cba06d7.chunk.js.map +0 -1
  101. package/dist/embedded-app/static/8384.e32c3b89.chunk.js +0 -6
  102. package/dist/embedded-app/static/8384.e32c3b89.chunk.js.map +0 -1
  103. package/dist/embedded-app/static/8721.77fdaf76.chunk.js +0 -11
  104. package/dist/embedded-app/static/8721.77fdaf76.chunk.js.map +0 -1
  105. package/dist/embedded-app/static/9605.57f9f1ff.chunk.js +0 -11
  106. package/dist/embedded-app/static/9605.57f9f1ff.chunk.js.map +0 -1
  107. package/dist/embedded-app/static/9652.f79c63a2.chunk.js +0 -6
  108. package/dist/embedded-app/static/9652.f79c63a2.chunk.js.map +0 -1
  109. package/dist/embedded-app/static/9797.047c7087.chunk.js +0 -10
  110. package/dist/embedded-app/static/9797.047c7087.chunk.js.map +0 -1
  111. package/dist/embedded-app/static/main.c21a7aa4.js +0 -513
  112. package/dist/embedded-app/static/main.c21a7aa4.js.map +0 -1
  113. package/dist/embedded-app/static/module-material-ui.b719b7fa.js +0 -24
  114. package/dist/embedded-app/static/module-material-ui.b719b7fa.js.map +0 -1
  115. package/dist/embedded-app/static/module-zod.18508a39.js +0 -3
  116. package/dist/embedded-app/static/runtime.c21a7aa4.js.map +0 -1
  117. package/dist/embedded-app/static/vendor.c21a7aa4.js +0 -155
  118. package/dist/embedded-app/static/vendor.c21a7aa4.js.map +0 -1
@@ -1,3 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5502],{86912:c=>{function u(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}c.exports=u},84570:(c,u,t)=>{var e=t(47170),n=t(45770),o=n(e);c.exports=o},90313:(c,u,t)=>{var e=t(11129),n=t(20714);function o(r,a,s,i,l){var d=-1,P=r.length;for(s||(s=n),l||(l=[]);++d<P;){var f=r[d];a>0&&s(f)?a>1?o(f,a-1,s,i,l):e(l,f):i||(l[l.length]=f)}return l}c.exports=o},41393:(c,u,t)=>{var e=t(84570),n=t(36529);function o(r,a){var s=-1,i=n(r)?Array(r.length):[];return e(r,function(l,d,P){i[++s]=a(l,d,P)}),i}c.exports=o},70310:(c,u,t)=>{var e=t(65111),n=t(57923),o=t(3334),r=t(41393),a=t(50642),s=t(49460),i=t(46775),l=t(22053),d=t(53142);function P(f,v,L){v.length?v=e(v,function(g){return d(g)?function(M){return n(M,g.length===1?g[0]:g)}:g}):v=[l];var B=-1;v=e(v,s(o));var S=r(f,function(g,M,x){var A=e(v,function(m){return m(g)});return{criteria:A,index:++B,value:g}});return a(S,function(g,M){return i(g,M,L)})}c.exports=P},23945:(c,u,t)=>{var e=t(22053),n=t(75234),o=t(80796);function r(a,s){return o(n(a,s,e),a+"")}c.exports=r},47403:(c,u,t)=>{var e=t(82619),n=t(72532),o=t(22053),r=n?function(a,s){return n(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:o;c.exports=r},50642:c=>{function u(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}c.exports=u},63521:(c,u,t)=>{var e=t(51187);function n(o,r){if(o!==r){var a=o!==void 0,s=o===null,i=o===o,l=e(o),d=r!==void 0,P=r===null,f=r===r,v=e(r);if(!P&&!v&&!l&&o>r||l&&d&&f&&!P&&!v||s&&d&&f||!a&&f||!i)return 1;if(!s&&!l&&!v&&o<r||v&&a&&i&&!s&&!l||P&&a&&i||!d&&i||!f)return-1}return 0}c.exports=n},46775:(c,u,t)=>{var e=t(63521);function n(o,r,a){for(var s=-1,i=o.criteria,l=r.criteria,d=i.length,P=a.length;++s<d;){var f=e(i[s],l[s]);if(f){if(s>=P)return f;var v=a[s];return f*(v=="desc"?-1:1)}}return o.index-r.index}c.exports=n},45770:(c,u,t)=>{var e=t(36529);function n(o,r){return function(a,s){if(a==null)return a;if(!e(a))return o(a,s);for(var i=a.length,l=r?i:-1,d=Object(a);(r?l--:++l<i)&&s(d[l],l,d)!==!1;);return a}}c.exports=n},20714:(c,u,t)=>{var e=t(65650),n=t(3283),o=t(53142),r=e?e.isConcatSpreadable:void 0;function a(s){return o(s)||n(s)||!!(r&&s&&s[r])}c.exports=a},74535:(c,u,t)=>{var e=t(46285),n=t(36529),o=t(69632),r=t(41580);function a(s,i,l){if(!r(l))return!1;var d=typeof i;return(d=="number"?n(l)&&o(i,l.length):d=="string"&&i in l)?e(l[i],s):!1}c.exports=a},75234:(c,u,t)=>{var e=t(86912),n=Math.max;function o(r,a,s){return a=n(a===void 0?r.length-1:a,0),function(){for(var i=arguments,l=-1,d=n(i.length-a,0),P=Array(d);++l<d;)P[l]=i[a+l];l=-1;for(var f=Array(a+1);++l<a;)f[l]=i[l];return f[a]=s(P),e(r,this,f)}}c.exports=o},80796:(c,u,t)=>{var e=t(47403),n=t(3316),o=n(e);c.exports=o},3316:c=>{var u=800,t=16,e=Date.now;function n(o){var r=0,a=0;return function(){var s=e(),i=t-(s-a);if(a=s,i>0){if(++r>=u)return arguments[0]}else r=0;return o.apply(void 0,arguments)}}c.exports=n},82619:c=>{function u(t){return function(){return t}}c.exports=u},46343:(c,u,t)=>{var e=t(94687);function n(o,r){return e(o,r)}c.exports=n},40074:(c,u,t)=>{var e=t(90313),n=t(70310),o=t(23945),r=t(74535),a=o(function(s,i){if(s==null)return[];var l=i.length;return l>1&&r(s,i[0],i[1])?i=[]:l>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),n(s,e(i,1),[])});c.exports=a},40054:(c,u,t)=>{"use strict";t.d(u,{m:()=>g});var e=t(31085),n=t(66917),o=t(72427),r=t(36017),a=t(77125),s=t(14041),i=t(92822),l=t(21405),d=t(73466),P=t(7341);function f(){const M=(0,o.gf)(P.v),{error:x,loading:A,value:m}=(0,d.A)(async()=>await M.getEntityFacets({facets:["kind"]}).then(y=>y.facets.kind?.map(p=>p.value).sort()||[]),[M]);return{loading:A,error:x,allKinds:m??[]}}function v(M,x,A){let m=M;return x&&(m=m.filter(y=>x.some(p=>p.toLocaleLowerCase("en-US")===y.toLocaleLowerCase("en-US")))),A&&!M.some(y=>y.toLocaleLowerCase("en-US")===A.toLocaleLowerCase("en-US"))&&(m=m.concat([A])),m.sort().reduce((y,p)=>(y[p.toLocaleLowerCase("en-US")]=p,y),{})}var L=t(64630),B=t(87849);function S(M){const{filters:x,queryParameters:{kind:A},updateFilters:m}=(0,l.nK)(),O=(0,s.useMemo)(()=>[A].flat()[0],[A]),[y,p]=(0,s.useState)(O??x.kind?.value??M.initialFilter);(0,s.useEffect)(()=>{O&&p(O)},[O]),(0,s.useEffect)(()=>{x.kind?.value&&p(x.kind?.value)},[x.kind]),(0,s.useEffect)(()=>{m({kind:y?new i.gM(y):void 0})},[y,m]);const{allKinds:C,loading:T,error:D}=f();return{loading:T,error:D,allKinds:C??[],selectedKind:y,setSelectedKind:p}}const g=M=>{const{allowedKinds:x,hidden:A,initialFilter:m="component"}=M,{t:O}=(0,B.i)(L.j),y=(0,o.gf)(r.k),{error:p,allKinds:C,selectedKind:T,setSelectedKind:D}=S({initialFilter:m});if((0,s.useEffect)(()=>{p&&y.post({message:O("entityKindPicker.errorMessage"),severity:"error"})},[p,y,O]),p)return null;const h=v(C,x,T),K=Object.keys(h).map(E=>({value:E,label:h[E]}));return A?null:(0,e.jsx)(a.A,{pb:1,pt:1,children:(0,e.jsx)(n.w,{label:O("entityKindPicker.title"),items:K,selected:T.toLocaleLowerCase("en-US"),onChange:E=>D(String(E))})})}},58363:(c,u,t)=>{"use strict";t.d(u,{W:()=>d});var e=t(31085),n=t(58837),o=t(14041),r=t(92822),a=t(50207),s=t(64630),i=t(87849);const l=(0,n.A)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),d=P=>{const{initialFilter:f=[]}=P,v=l(),{t:L}=(0,i.i)(s.j);return(0,e.jsx)(a.y,{label:L("entityLifecyclePicker.title"),name:"lifecycles",path:"spec.lifecycle",Filter:r.I5,InputProps:{className:v.input},initialSelectedOptions:f})}},35091:(c,u,t)=>{"use strict";t.d(u,{V:()=>d});var e=t(31085),n=t(58837),o=t(14041),r=t(92822),a=t(50207),s=t(64630),i=t(87849);const l=(0,n.A)({input:{}},{name:"CatalogReactEntityNamespacePicker"}),d=P=>{const{initiallySelectedNamespaces:f}=P,v=l(),{t:L}=(0,i.i)(s.j);return(0,e.jsx)(a.y,{label:L("entityNamespacePicker.title"),name:"namespace",path:"metadata.namespace",Filter:r.z,InputProps:{className:v.input},initialSelectedOptions:f})}},92629:(c,u,t)=>{"use strict";t.d(u,{n:()=>m});var e=t(31085),n=t(92822),o=t(77125),r=t(69076),a=t(86901),s=t(16249),i=t(72501),l=t(58837),d=t(44148),P=t(41260),f=t(6924),v=t(14041),L=t(21405),B=t(20577),S=t(64630),g=t(87849);const M=(0,l.A)({root:{},input:{},label:{}},{name:"CatalogReactEntityProcessingStatusPickerPicker"}),x=(0,e.jsx)(P.A,{fontSize:"small"}),A=(0,e.jsx)(d.A,{fontSize:"small"}),m=()=>{const O=M(),{updateFilters:y}=(0,L.nK)(),{t:p}=(0,g.i)(S.j),[C,T]=(0,v.useState)([]);function D(E){y({orphan:E?new n.Kf(E):void 0})}function h(E){y({error:E?new n.mT(E):void 0})}const K=["Is Orphan","Has Error"];return(0,e.jsx)(o.A,{className:O.root,pb:1,pt:1,children:(0,e.jsxs)(i.A,{className:O.label,variant:"button",component:"label",children:[p("entityProcessingStatusPicker.title"),(0,e.jsx)(B.Ay,{PopperComponent:E=>(0,e.jsx)("div",{...E,children:E.children}),multiple:!0,disableCloseOnSelect:!0,options:K,value:C,onChange:(E,U)=>{T(U),D(U.includes("Is Orphan")),h(U.includes("Has Error"))},renderOption:(E,{selected:U})=>(0,e.jsx)(a.A,{control:(0,e.jsx)(r.A,{icon:x,checkedIcon:A,checked:U}),onClick:W=>W.preventDefault(),label:E}),size:"small",popupIcon:(0,e.jsx)(f.A,{"data-testid":"processing-status-picker-expand"}),renderInput:E=>(0,e.jsx)(s.A,{...E,className:O.input,variant:"outlined"})})]})})}},5250:(c,u,t)=>{"use strict";t.d(u,{Q:()=>x});var e=t(31085),n=t(14041),o=t(77125),r=t(73466),a=t(46343),s=t.n(a),i=t(40074),l=t.n(i),d=t(72427),P=t(7341),f=t(21405),v=t(92822);function L(){const A=(0,d.gf)(P.v),{filters:{kind:m,type:O},queryParameters:{type:y},updateFilters:p}=(0,f.nK)(),C=(0,n.useMemo)(()=>[y].flat().filter(Boolean),[y]),[T,D]=(0,n.useState)(C.length?C:O?.getTypes()??[]);(0,n.useEffect)(()=>{C.length&&D(C)},[C]);const[h,K]=(0,n.useState)([]),E=(0,n.useMemo)(()=>m?.value,[m]),{error:U,loading:W,value:R}=(0,r.A)(async()=>E?await A.getEntityFacets({filter:{kind:E},facets:["spec.type"]}).then(j=>j.facets["spec.type"]||[]):[],[E,A]),F=(0,n.useRef)(R);return(0,n.useEffect)(()=>{const N=F.current;if(F.current=R,W||!E||N===R||!R)return;const j=[...new Set(l()(R,I=>-I.count).map(I=>I.value.toLocaleLowerCase("en-US")))];K(j);const z=T.filter(I=>j.includes(I));s()(T,z)||D(z)},[W,E,T,D,R]),(0,n.useEffect)(()=>{p({type:T.length?new v.qA(T):void 0})},[T,p]),{loading:W,error:U,availableTypes:h,selectedTypes:T,setSelectedTypes:D}}var B=t(36017),S=t(66917),g=t(64630),M=t(87849);const x=A=>{const{hidden:m,initialFilter:O}=A,y=(0,d.gf)(B.k),{error:p,availableTypes:C,selectedTypes:T,setSelectedTypes:D}=L(),{t:h}=(0,M.i)(g.j);if((0,n.useEffect)(()=>{p&&y.post({message:h("entityTypePicker.errorMessage"),severity:"error"}),O&&D([O])},[p,y,O,D,h]),C.length===0||p)return null;const K=[{value:"all",label:h("entityTypePicker.optionAllTitle")},...C.map(E=>({value:E,label:E}))];return m?null:(0,e.jsx)(o.A,{pb:1,pt:1,children:(0,e.jsx)(S.w,{label:h("entityTypePicker.title"),items:K,selected:(K.length>1?T[0]:void 0)??"all",onChange:E=>D(E==="all"?[]:[String(E)])})})}},75502:(c,u,t)=>{"use strict";t.d(u,{EntityKindPicker:()=>e.m,EntityLifecyclePicker:()=>n.W,EntityNamespacePicker:()=>l.V,EntityOwnerPicker:()=>o.t,EntityProcessingStatusPicker:()=>i.n,EntityTagPicker:()=>r.m,EntityTypePicker:()=>a.Q,UserListPicker:()=>s.y});var e=t(40054),n=t(58363),o=t(72987),r=t(91035),a=t(5250),s=t(67626),i=t(92629),l=t(35091)}}]);})();
2
-
3
- //# sourceMappingURL=5502.59e5e2d7.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/5502.59e5e2d7.chunk.js","mappings":"0HAUA,SAASA,EAAMC,EAAMC,EAASC,EAAM,CAClC,OAAQA,EAAK,OAAQ,CACnB,IAAK,GAAG,OAAOF,EAAK,KAAKC,CAAO,EAChC,IAAK,GAAG,OAAOD,EAAK,KAAKC,EAASC,EAAK,CAAC,CAAC,EACzC,IAAK,GAAG,OAAOF,EAAK,KAAKC,EAASC,EAAK,CAAC,EAAGA,EAAK,CAAC,CAAC,EAClD,IAAK,GAAG,OAAOF,EAAK,KAAKC,EAASC,EAAK,CAAC,EAAGA,EAAK,CAAC,EAAGA,EAAK,CAAC,CAAC,CAC7D,CACA,OAAOF,EAAK,MAAMC,EAASC,CAAI,CACjC,CAEAC,EAAO,QAAUJ,C,kBCpBjB,IAAIK,EAAa,EAAQ,KAAe,EACpCC,EAAiB,EAAQ,KAAmB,EAU5CC,EAAWD,EAAeD,CAAU,EAExCD,EAAO,QAAUG,C,kBCbjB,IAAIC,EAAY,EAAQ,KAAc,EAClCC,EAAgB,EAAQ,KAAkB,EAa9C,SAASC,EAAYC,EAAOC,EAAOC,EAAWC,EAAUC,EAAQ,CAC9D,IAAIC,EAAQ,GACRC,EAASN,EAAM,OAKnB,IAHAE,IAAcA,EAAYJ,GAC1BM,IAAWA,EAAS,CAAC,GAEd,EAAEC,EAAQC,GAAQ,CACvB,IAAIC,EAAQP,EAAMK,CAAK,EACnBJ,EAAQ,GAAKC,EAAUK,CAAK,EAC1BN,EAAQ,EAEVF,EAAYQ,EAAON,EAAQ,EAAGC,EAAWC,EAAUC,CAAM,EAEzDP,EAAUO,EAAQG,CAAK,EAEfJ,IACVC,EAAOA,EAAO,MAAM,EAAIG,EAE5B,CACA,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7F,C,CAAc,CAEpC,EAAG,CAACrC,EAAO+C,EAAUV,EAAe6F,EAAkBtF,C,CAAE,EAEpDwF,EAAe7M,SAAW,GAAKyE,EAAO,OAAO,KAEjD,MAAMqD,EAAQ,CACZ,CAAE7H,MAAO,MAAOgI,MAAOZ,EAAE,iCAAiC,CAAE,E,GACzDwF,EAAe3H,IAAK5B,IAAkB,CACvCrD,MAAOqD,EACP2E,MAAO3E,CACT,EAAE,C,EAGJ,OAAO8D,EAAS,QACd,OAACc,EAAAA,EAAGA,CAACC,GAAI,EAAGC,GAAI,E,YACd,OAACC,EAAAA,EAAMA,CACLJ,MAAOZ,EAAE,wBAAwB,EACjCS,MAAOA,EACPQ,UAAWR,EAAM9H,OAAS,EAAI0M,EAAc,CAAC,EAAIzF,SAAc,MAC/DsB,SAAUtI,GACR0M,EAAiB1M,IAAU,MAAQ,CAAC,EAAI,CAACuI,OAAOvI,CAAK,C,CAAE,C,IAKjE,C","sources":["webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_apply.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseEach.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseFlatten.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseMap.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseOrderBy.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseRest.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseSetToString.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_baseSortBy.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_compareAscending.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_compareMultiple.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_createBaseEach.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_isFlattenable.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_isIterateeCall.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_overRest.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_setToString.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/_shortOut.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/constant.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/isEqual.js","webpack://techdocs-cli-embedded-app/../../node_modules/lodash/sortBy.js","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/kindFilterUtils.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/EntityKindPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityLifecyclePicker/EntityLifecyclePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityNamespacePicker/EntityNamespacePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/hooks/useEntityTypeFilter.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityTypePicker/EntityTypePicker.tsx"],"sourcesContent":["/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseIsEqual = require('./_baseIsEqual');\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nmodule.exports = isEqual;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport useAsync from 'react-use/esm/useAsync';\nimport { catalogApiRef } from '../../api';\n\n/**\n * Fetch and return all availible kinds.\n */\nexport function useAllKinds(): {\n loading: boolean;\n error?: Error;\n allKinds: string[];\n} {\n const catalogApi = useApi(catalogApiRef);\n\n const {\n error,\n loading,\n value: allKinds,\n } = useAsync(async () => {\n const items = await catalogApi\n .getEntityFacets({ facets: ['kind'] })\n .then(response => response.facets.kind?.map(f => f.value).sort() || []);\n return items;\n }, [catalogApi]);\n\n return { loading, error, allKinds: allKinds ?? [] };\n}\n\n/**\n * Filter and capitalize accessible kinds.\n */\nexport function filterKinds(\n allKinds: string[],\n allowedKinds?: string[],\n forcedKinds?: string,\n): Record<string, string> {\n // Before allKinds is loaded, or when a kind is entered manually in the URL, selectedKind may not\n // be present in allKinds. It should still be shown in the dropdown, but may not have the nice\n // enforced casing from the catalog-backend. This makes a key/value record for the Select options,\n // including selectedKind if it's unknown - but allows the selectedKind to get clobbered by the\n // more proper catalog kind if it exists.\n let availableKinds = allKinds;\n if (allowedKinds) {\n availableKinds = availableKinds.filter(k =>\n allowedKinds.some(\n a => a.toLocaleLowerCase('en-US') === k.toLocaleLowerCase('en-US'),\n ),\n );\n }\n if (\n forcedKinds &&\n !allKinds.some(\n a =>\n a.toLocaleLowerCase('en-US') === forcedKinds.toLocaleLowerCase('en-US'),\n )\n ) {\n availableKinds = availableKinds.concat([forcedKinds]);\n }\n\n const kindsMap = availableKinds.sort().reduce((acc, kind) => {\n acc[kind.toLocaleLowerCase('en-US')] = kind;\n return acc;\n }, {} as Record<string, string>);\n\n return kindsMap;\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Select } from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { EntityKindFilter } from '../../filters';\nimport { useEntityList } from '../../hooks';\nimport { filterKinds, useAllKinds } from './kindFilterUtils';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nfunction useEntityKindFilter(opts: { initialFilter: string }): {\n loading: boolean;\n error?: Error;\n allKinds: string[];\n selectedKind: string;\n setSelectedKind: (kind: string) => void;\n} {\n const {\n filters,\n queryParameters: { kind: kindParameter },\n updateFilters,\n } = useEntityList();\n\n const queryParamKind = useMemo(\n () => [kindParameter].flat()[0],\n [kindParameter],\n );\n\n const [selectedKind, setSelectedKind] = useState(\n queryParamKind ?? filters.kind?.value ?? opts.initialFilter,\n );\n\n // Set selected kinds on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (queryParamKind) {\n setSelectedKind(queryParamKind);\n }\n }, [queryParamKind]);\n\n // Set selected kind from filters; this happens when the kind filter is\n // updated from another component\n useEffect(() => {\n if (filters.kind?.value) {\n setSelectedKind(filters.kind?.value);\n }\n }, [filters.kind]);\n\n useEffect(() => {\n updateFilters({\n kind: selectedKind ? new EntityKindFilter(selectedKind) : undefined,\n });\n }, [selectedKind, updateFilters]);\n\n const { allKinds, loading, error } = useAllKinds();\n\n return {\n loading,\n error,\n allKinds: allKinds ?? [],\n selectedKind,\n setSelectedKind,\n };\n}\n\n/**\n * Props for {@link EntityKindPicker}.\n *\n * @public\n */\nexport interface EntityKindPickerProps {\n /**\n * Entity kinds to show in the dropdown; by default all kinds are fetched from the catalog and\n * displayed.\n */\n allowedKinds?: string[];\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityKindPicker = (props: EntityKindPickerProps) => {\n const { allowedKinds, hidden, initialFilter = 'component' } = props;\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const alertApi = useApi(alertApiRef);\n\n const { error, allKinds, selectedKind, setSelectedKind } =\n useEntityKindFilter({\n initialFilter: initialFilter,\n });\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityKindPicker.errorMessage'),\n severity: 'error',\n });\n }\n }, [error, alertApi, t]);\n\n if (error) return null;\n\n const options = filterKinds(allKinds, allowedKinds, selectedKind);\n\n const items = Object.keys(options).map(key => ({\n value: key,\n label: options[key],\n }));\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityKindPicker.title')}\n items={items}\n selected={selectedKind.toLocaleLowerCase('en-US')}\n onChange={value => setSelectedKind(String(value))}\n />\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport { EntityLifecycleFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityLifecyclePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n {\n name: 'CatalogReactEntityLifecyclePicker',\n },\n);\n\n/** @public */\nexport const EntityLifecyclePicker = (props: { initialFilter?: string[] }) => {\n const { initialFilter = [] } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityLifecyclePicker.title')}\n name=\"lifecycles\"\n path=\"spec.lifecycle\"\n Filter={EntityLifecycleFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initialFilter}\n />\n );\n};\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport React from 'react';\nimport { EntityNamespaceFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityNamespacePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n {\n name: 'CatalogReactEntityNamespacePicker',\n },\n);\n\n/**\n * Props for {@link EntityNamespacePicker}.\n *\n * @public\n */\nexport interface EntityNamespacePickerProps {\n initiallySelectedNamespaces?: string[];\n}\n\n/** @public */\nexport const EntityNamespacePicker = (props: EntityNamespacePickerProps) => {\n const { initiallySelectedNamespaces } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityNamespacePicker.title')}\n name=\"namespace\"\n path=\"metadata.namespace\"\n Filter={EntityNamespaceFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initiallySelectedNamespaces}\n />\n );\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EntityErrorFilter, EntityOrphanFilter } from '../../filters';\nimport Box from '@material-ui/core/Box';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport TextField from '@material-ui/core/TextField';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport CheckBoxIcon from '@material-ui/icons/CheckBox';\nimport CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport React, { useState, ReactNode } from 'react';\nimport { useEntityList } from '../../hooks';\nimport Autocomplete from '@material-ui/lab/Autocomplete';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityProcessingStatusPickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n root: {},\n input: {},\n label: {},\n },\n {\n name: 'CatalogReactEntityProcessingStatusPickerPicker',\n },\n);\n\nconst icon = <CheckBoxOutlineBlankIcon fontSize=\"small\" />;\nconst checkedIcon = <CheckBoxIcon fontSize=\"small\" />;\n\n/** @public */\nexport const EntityProcessingStatusPicker = () => {\n const classes = useStyles();\n const { updateFilters } = useEntityList();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const [selectedAdvancedItems, setSelectedAdvancedItems] = useState<string[]>(\n [],\n );\n\n function orphanChange(value: boolean) {\n updateFilters({\n orphan: value ? new EntityOrphanFilter(value) : undefined,\n });\n }\n\n function errorChange(value: boolean) {\n updateFilters({\n error: value ? new EntityErrorFilter(value) : undefined,\n });\n }\n\n const availableAdvancedItems = ['Is Orphan', 'Has Error'];\n\n return (\n <Box className={classes.root} pb={1} pt={1}>\n <Typography className={classes.label} variant=\"button\" component=\"label\">\n {t('entityProcessingStatusPicker.title')}\n <Autocomplete<string, true>\n PopperComponent={popperProps => (\n <div {...popperProps}>{popperProps.children as ReactNode}</div>\n )}\n multiple\n disableCloseOnSelect\n options={availableAdvancedItems}\n value={selectedAdvancedItems}\n onChange={(_: object, value: string[]) => {\n setSelectedAdvancedItems(value);\n orphanChange(value.includes('Is Orphan'));\n errorChange(value.includes('Has Error'));\n }}\n renderOption={(option, { selected }) => (\n <FormControlLabel\n control={\n <Checkbox\n icon={icon}\n checkedIcon={checkedIcon}\n checked={selected}\n />\n }\n onClick={event => event.preventDefault()}\n label={option}\n />\n )}\n size=\"small\"\n popupIcon={\n <ExpandMoreIcon data-testid=\"processing-status-picker-expand\" />\n }\n renderInput={params => (\n <TextField\n {...params}\n className={classes.input}\n variant=\"outlined\"\n />\n )}\n />\n </Typography>\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport useAsync from 'react-use/esm/useAsync';\nimport isEqual from 'lodash/isEqual';\nimport sortBy from 'lodash/sortBy';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { catalogApiRef } from '../api';\nimport { useEntityList } from './useEntityListProvider';\nimport { EntityTypeFilter } from '../filters';\n\n/**\n * A hook built on top of `useEntityList` for enabling selection of valid `spec.type` values\n * based on the selected EntityKindFilter.\n * @public\n */\nexport function useEntityTypeFilter(): {\n loading: boolean;\n error?: Error;\n availableTypes: string[];\n selectedTypes: string[];\n setSelectedTypes: (types: string[]) => void;\n} {\n const catalogApi = useApi(catalogApiRef);\n const {\n filters: { kind: kindFilter, type: typeFilter },\n queryParameters: { type: typeParameter },\n updateFilters,\n } = useEntityList();\n\n const flattenedQueryTypes = useMemo(\n () => [typeParameter].flat().filter(Boolean) as string[],\n [typeParameter],\n );\n\n const [selectedTypes, setSelectedTypes] = useState(\n flattenedQueryTypes.length\n ? flattenedQueryTypes\n : typeFilter?.getTypes() ?? [],\n );\n\n // Set selected types on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (flattenedQueryTypes.length) {\n setSelectedTypes(flattenedQueryTypes);\n }\n }, [flattenedQueryTypes]);\n\n const [availableTypes, setAvailableTypes] = useState<string[]>([]);\n const kind = useMemo(() => kindFilter?.value, [kindFilter]);\n\n // Load all valid spec.type values straight from the catalogApi, paying attention to only the\n // kind filter for a complete list.\n const {\n error,\n loading,\n value: facets,\n } = useAsync(async () => {\n if (kind) {\n const items = await catalogApi\n .getEntityFacets({\n filter: { kind },\n facets: ['spec.type'],\n })\n .then(response => response.facets['spec.type'] || []);\n return items;\n }\n return [];\n }, [kind, catalogApi]);\n\n const facetsRef = useRef(facets);\n useEffect(() => {\n const oldFacets = facetsRef.current;\n facetsRef.current = facets;\n // Delay processing hook until kind and facets load updates have settled to generate list of types;\n // This prevents resetting the type filter due to saved type value from query params not matching the\n // empty set of type values while values are still being loaded; also only run this hook on changes\n // to facets\n if (loading || !kind || oldFacets === facets || !facets) {\n return;\n }\n\n // Sort by facet count descending, so the most common types appear on top\n const newTypes = [\n ...new Set(\n sortBy(facets, f => -f.count).map(f =>\n f.value.toLocaleLowerCase('en-US'),\n ),\n ),\n ];\n setAvailableTypes(newTypes);\n\n // Update type filter to only valid values when the list of available types has changed\n const stillValidTypes = selectedTypes.filter(value =>\n newTypes.includes(value),\n );\n if (!isEqual(selectedTypes, stillValidTypes)) {\n setSelectedTypes(stillValidTypes);\n }\n }, [loading, kind, selectedTypes, setSelectedTypes, facets]);\n\n useEffect(() => {\n updateFilters({\n type: selectedTypes.length\n ? new EntityTypeFilter(selectedTypes)\n : undefined,\n });\n }, [selectedTypes, updateFilters]);\n\n return {\n loading,\n error,\n availableTypes,\n selectedTypes,\n setSelectedTypes,\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useEffect } from 'react';\nimport Box from '@material-ui/core/Box';\nimport { useEntityTypeFilter } from '../../hooks/useEntityTypeFilter';\n\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport { Select } from '@backstage/core-components';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Props for {@link EntityTypePicker}.\n *\n * @public\n */\nexport interface EntityTypePickerProps {\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityTypePicker = (props: EntityTypePickerProps) => {\n const { hidden, initialFilter } = props;\n const alertApi = useApi(alertApiRef);\n const { error, availableTypes, selectedTypes, setSelectedTypes } =\n useEntityTypeFilter();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityTypePicker.errorMessage'),\n severity: 'error',\n });\n }\n if (initialFilter) {\n setSelectedTypes([initialFilter]);\n }\n }, [error, alertApi, initialFilter, setSelectedTypes, t]);\n\n if (availableTypes.length === 0 || error) return null;\n\n const items = [\n { value: 'all', label: t('entityTypePicker.optionAllTitle') },\n ...availableTypes.map((type: string) => ({\n value: type,\n label: type,\n })),\n ];\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityTypePicker.title')}\n items={items}\n selected={(items.length > 1 ? selectedTypes[0] : undefined) ?? 'all'}\n onChange={value =>\n setSelectedTypes(value === 'all' ? [] : [String(value)])\n }\n />\n </Box>\n );\n};\n"],"names":["apply","func","thisArg","args","module","baseForOwn","createBaseEach","baseEach","arrayPush","isFlattenable","baseFlatten","array","depth","predicate","isStrict","result","index","length","value","isArrayLike","baseMap","collection","iteratee","key","arrayMap","baseGet","baseIteratee","baseSortBy","baseUnary","compareMultiple","identity","isArray","baseOrderBy","iteratees","orders","criteria","object","other","overRest","setToString","baseRest","start","constant","defineProperty","baseSetToString","string","comparer","isSymbol","compareAscending","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","objCriteria","othCriteria","ordersLength","order","eachFunc","fromRight","iterable","Symbol","isArguments","spreadableSymbol","eq","isIndex","isObject","isIterateeCall","type","nativeMax","transform","otherArgs","shortOut","HOT_COUNT","HOT_SPAN","nativeNow","count","lastCalled","stamp","remaining","baseIsEqual","isEqual","sortBy","useAllKinds","catalogApi","useApi","catalogApiRef","error","loading","allKinds","useAsync","getEntityFacets","facets","then","response","kind","map","f","sort","filterKinds","allowedKinds","forcedKinds","availableKinds","filter","k","some","a","toLocaleLowerCase","concat","reduce","acc","useEntityKindFilter","opts","filters","queryParameters","kindParameter","updateFilters","useEntityList","queryParamKind","useMemo","flat","selectedKind","setSelectedKind","useState","initialFilter","useEffect","EntityKindFilter","undefined","EntityKindPicker","props","hidden","t","useTranslationRef","catalogReactTranslationRef","alertApi","alertApiRef","post","message","severity","options","items","Object","keys","label","Box","pb","pt","Select","selected","onChange","String","useStyles","makeStyles","input","name","EntityLifecyclePicker","classes","EntityAutocompletePicker","path","Filter","EntityLifecycleFilter","InputProps","className","initialSelectedOptions","EntityNamespacePicker","initiallySelectedNamespaces","EntityNamespaceFilter","root","icon","CheckBoxOutlineBlankIcon","fontSize","checkedIcon","CheckBoxIcon","EntityProcessingStatusPicker","selectedAdvancedItems","setSelectedAdvancedItems","orphanChange","orphan","EntityOrphanFilter","errorChange","EntityErrorFilter","availableAdvancedItems","Typography","variant","component","Autocomplete","PopperComponent","popperProps","div","children","multiple","disableCloseOnSelect","_","includes","renderOption","option","FormControlLabel","control","Checkbox","checked","onClick","event","preventDefault","size","popupIcon","ExpandMoreIcon","data-testid","renderInput","params","TextField","useEntityTypeFilter","kindFilter","typeFilter","typeParameter","flattenedQueryTypes","Boolean","selectedTypes","setSelectedTypes","getTypes","availableTypes","setAvailableTypes","facetsRef","useRef","oldFacets","current","newTypes","Set","stillValidTypes","EntityTypeFilter","EntityTypePicker"],"sourceRoot":""}
@@ -1,4 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5580],{48514:(b,f,t)=>{t.d(f,{M:()=>L});var e=t(31085),i=t(58837),x=t(71677),C=t(14041),O=t(72501);const g=(0,i.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:m})=>m||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function L(m){const M=g(m);return(0,e.jsx)(x.Ay,{title:m.title??(m.text||""),placement:m.placement,children:(0,e.jsx)(O.A,{className:M.typo,variant:"inherit",children:m.text})})}},35773:(b,f,t)=>{t.d(f,{C4:()=>C,Nf:()=>O,tS:()=>g});var e=t(14117);const i="catalog-entity",x=(0,e.i)({name:"catalog.entity.read",attributes:{action:"read"},resourceType:i}),C=(0,e.i)({name:"catalog.entity.create",attributes:{action:"create"}}),O=(0,e.i)({name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:i}),g=(0,e.i)({name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:i}),L=(0,e.i)({name:"catalog.location.read",attributes:{action:"read"}}),m=(0,e.i)({name:"catalog.location.create",attributes:{action:"create"}}),M=(0,e.i)({name:"catalog.location.delete",attributes:{action:"delete"}}),j=[x,C,O,g,L,m,M]},40054:(b,f,t)=>{t.d(f,{m:()=>U});var e=t(31085),i=t(66917),x=t(72427),C=t(36017),O=t(77125),g=t(14041),L=t(92822),m=t(21405),M=t(73466),j=t(7341);function K(){const h=(0,x.gf)(j.v),{error:E,loading:T,value:v}=(0,M.A)(async()=>await h.getEntityFacets({facets:["kind"]}).then(d=>d.facets.kind?.map(u=>u.value).sort()||[]),[h]);return{loading:T,error:E,allKinds:v??[]}}function I(h,E,T){let v=h;return E&&(v=v.filter(d=>E.some(u=>u.toLocaleLowerCase("en-US")===d.toLocaleLowerCase("en-US")))),T&&!h.some(d=>d.toLocaleLowerCase("en-US")===T.toLocaleLowerCase("en-US"))&&(v=v.concat([T])),v.sort().reduce((d,u)=>(d[u.toLocaleLowerCase("en-US")]=u,d),{})}var r=t(64630),S=t(87849);function R(h){const{filters:E,queryParameters:{kind:T},updateFilters:v}=(0,m.nK)(),p=(0,g.useMemo)(()=>[T].flat()[0],[T]),[d,u]=(0,g.useState)(p??E.kind?.value??h.initialFilter);(0,g.useEffect)(()=>{p&&u(p)},[p]),(0,g.useEffect)(()=>{E.kind?.value&&u(E.kind?.value)},[E.kind]),(0,g.useEffect)(()=>{v({kind:d?new L.gM(d):void 0})},[d,v]);const{allKinds:D,loading:A,error:P}=K();return{loading:A,error:P,allKinds:D??[],selectedKind:d,setSelectedKind:u}}const U=h=>{const{allowedKinds:E,hidden:T,initialFilter:v="component"}=h,{t:p}=(0,S.i)(r.j),d=(0,x.gf)(C.k),{error:u,allKinds:D,selectedKind:A,setSelectedKind:P}=R({initialFilter:v});if((0,g.useEffect)(()=>{u&&d.post({message:p("entityKindPicker.errorMessage"),severity:"error"})},[u,d,p]),u)return null;const F=I(D,E,A),W=Object.keys(F).map(o=>({value:o,label:F[o]}));return T?null:(0,e.jsx)(O.A,{pb:1,pt:1,children:(0,e.jsx)(i.w,{label:p("entityKindPicker.title"),items:W,selected:A.toLocaleLowerCase("en-US"),onChange:o=>P(String(o))})})}},58363:(b,f,t)=>{t.d(f,{W:()=>M});var e=t(31085),i=t(58837),x=t(14041),C=t(92822),O=t(50207),g=t(64630),L=t(87849);const m=(0,i.A)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),M=j=>{const{initialFilter:K=[]}=j,I=m(),{t:r}=(0,L.i)(g.j);return(0,e.jsx)(O.y,{label:r("entityLifecyclePicker.title"),name:"lifecycles",path:"spec.lifecycle",Filter:C.I5,InputProps:{className:I.input},initialSelectedOptions:K})}},35091:(b,f,t)=>{t.d(f,{V:()=>M});var e=t(31085),i=t(58837),x=t(14041),C=t(92822),O=t(50207),g=t(64630),L=t(87849);const m=(0,i.A)({input:{}},{name:"CatalogReactEntityNamespacePicker"}),M=j=>{const{initiallySelectedNamespaces:K}=j,I=m(),{t:r}=(0,L.i)(g.j);return(0,e.jsx)(O.y,{label:r("entityNamespacePicker.title"),name:"namespace",path:"metadata.namespace",Filter:C.z,InputProps:{className:I.input},initialSelectedOptions:K})}},92629:(b,f,t)=>{t.d(f,{n:()=>v});var e=t(31085),i=t(92822),x=t(77125),C=t(69076),O=t(86901),g=t(16249),L=t(72501),m=t(58837),M=t(44148),j=t(41260),K=t(6924),I=t(14041),r=t(21405),S=t(20577),R=t(64630),U=t(87849);const h=(0,m.A)({root:{},input:{},label:{}},{name:"CatalogReactEntityProcessingStatusPickerPicker"}),E=(0,e.jsx)(j.A,{fontSize:"small"}),T=(0,e.jsx)(M.A,{fontSize:"small"}),v=()=>{const p=h(),{updateFilters:d}=(0,r.nK)(),{t:u}=(0,U.i)(R.j),[D,A]=(0,I.useState)([]);function P(o){d({orphan:o?new i.Kf(o):void 0})}function F(o){d({error:o?new i.mT(o):void 0})}const W=["Is Orphan","Has Error"];return(0,e.jsx)(x.A,{className:p.root,pb:1,pt:1,children:(0,e.jsxs)(L.A,{className:p.label,variant:"button",component:"label",children:[u("entityProcessingStatusPicker.title"),(0,e.jsx)(S.Ay,{PopperComponent:o=>(0,e.jsx)("div",{...o,children:o.children}),multiple:!0,disableCloseOnSelect:!0,options:W,value:D,onChange:(o,V)=>{A(V),P(V.includes("Is Orphan")),F(V.includes("Has Error"))},renderOption:(o,{selected:V})=>(0,e.jsx)(O.A,{control:(0,e.jsx)(C.A,{icon:E,checkedIcon:T,checked:V}),onClick:Y=>Y.preventDefault(),label:o}),size:"small",popupIcon:(0,e.jsx)(K.A,{"data-testid":"processing-status-picker-expand"}),renderInput:o=>(0,e.jsx)(g.A,{...o,className:p.input,variant:"outlined"})})]})})}},5250:(b,f,t)=>{t.d(f,{Q:()=>E});var e=t(31085),i=t(14041),x=t(77125),C=t(73466),O=t(46343),g=t.n(O),L=t(40074),m=t.n(L),M=t(72427),j=t(7341),K=t(21405),I=t(92822);function r(){const T=(0,M.gf)(j.v),{filters:{kind:v,type:p},queryParameters:{type:d},updateFilters:u}=(0,K.nK)(),D=(0,i.useMemo)(()=>[d].flat().filter(Boolean),[d]),[A,P]=(0,i.useState)(D.length?D:p?.getTypes()??[]);(0,i.useEffect)(()=>{D.length&&P(D)},[D]);const[F,W]=(0,i.useState)([]),o=(0,i.useMemo)(()=>v?.value,[v]),{error:V,loading:Y,value:G}=(0,C.A)(async()=>o?await T.getEntityFacets({filter:{kind:o},facets:["spec.type"]}).then(Z=>Z.facets["spec.type"]||[]):[],[o,T]),q=(0,i.useRef)(G);return(0,i.useEffect)(()=>{const _=q.current;if(q.current=G,Y||!o||_===G||!G)return;const Z=[...new Set(m()(G,J=>-J.count).map(J=>J.value.toLocaleLowerCase("en-US")))];W(Z);const tt=A.filter(J=>Z.includes(J));g()(A,tt)||P(tt)},[Y,o,A,P,G]),(0,i.useEffect)(()=>{u({type:A.length?new I.qA(A):void 0})},[A,u]),{loading:Y,error:V,availableTypes:F,selectedTypes:A,setSelectedTypes:P}}var S=t(36017),R=t(66917),U=t(64630),h=t(87849);const E=T=>{const{hidden:v,initialFilter:p}=T,d=(0,M.gf)(S.k),{error:u,availableTypes:D,selectedTypes:A,setSelectedTypes:P}=r(),{t:F}=(0,h.i)(U.j);if((0,i.useEffect)(()=>{u&&d.post({message:F("entityTypePicker.errorMessage"),severity:"error"}),p&&P([p])},[u,d,p,P,F]),D.length===0||u)return null;const W=[{value:"all",label:F("entityTypePicker.optionAllTitle")},...D.map(o=>({value:o,label:o}))];return v?null:(0,e.jsx)(x.A,{pb:1,pt:1,children:(0,e.jsx)(R.w,{label:F("entityTypePicker.title"),items:W,selected:(W.length>1?A[0]:void 0)??"all",onChange:o=>P(o==="all"?[]:[String(o)])})})}},85580:(b,f,t)=>{t.r(f),t.d(f,{BaseCatalogPage:()=>ft,CatalogPage:()=>kt,DefaultCatalogPage:()=>gt});var e=t(31085),i=t(14041),x=t(18690),C=t(27155),O=t(26280),g=t(59428),L=t(64947),m=t(29365),M=t(5893),j=t(73970),K=t(25534);function I(n){const{title:a,to:s}=n,l=(0,M.A)(c=>c.breakpoints.down("xs"));return s?l?(0,e.jsx)(m.A,{component:j.N_,color:"primary",title:a,size:"small",to:s,children:(0,e.jsx)(K.A,{})}):(0,e.jsx)(L.A,{component:j.N_,variant:"contained",color:"primary",to:s,children:a}):null}var r=t(27586),S=t(72427),R=t(65461),U=t(9222),h=t(21405),E=t(54203),T=t(95203),v=t(72348),p=t(51372),d=t(6820),u=t(88640),D=t(77310),A=t(14209),P=t(90184),F=t(56889),W=t(67871),o=t(72501),V=t(7031),Y=t(9402),G=t(75625),q=t(39330),_=t(80109),Z=t(15303),tt=t(45250),J=t(65398),xt=t.n(J),St=t(29463),ot=t(34428),lt=t(67720),rt=t(48514);const B=Object.freeze({createNameColumn(n){function a(s){return s.metadata?.title||(0,P.S)(s,{defaultKind:n?.defaultKind})}return{title:"Name",field:"resolved.entityRef",highlight:!0,customSort({entity:s},{entity:l}){return a(s).localeCompare(a(l))},render:({entity:s})=>(0,e.jsx)(St.z,{entityRef:s,defaultKind:n?.defaultKind||"Component"})}},createSystemColumn(){return{title:"System",field:"resolved.partOfSystemRelationTitle",render:({resolved:n})=>(0,e.jsx)(ot.i,{entityRefs:n.partOfSystemRelations,defaultKind:"system"})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:n})=>(0,e.jsx)(ot.i,{entityRefs:n.ownedByRelations,defaultKind:"group"})}},createSpecTargetsColumn(){return{title:"Targets",field:"entity.spec.targets",customFilterAndSearch:(n,a)=>{let s=[];return a.entity?.spec?.targets&&Array.isArray(a.entity?.spec?.targets)?s=a.entity?.spec?.targets:a.entity?.spec?.target&&(s=[a.entity?.spec?.target]),s.join(", ").toLocaleUpperCase("en-US").includes(n.toLocaleUpperCase("en-US"))},render:({entity:n})=>(0,e.jsx)(e.Fragment,{children:(n?.spec?.targets||n?.spec?.target)&&(0,e.jsx)(rt.M,{text:(n.spec.targets||[n.spec.target]).join(", "),placement:"bottom-start"})})}},createSpecTypeColumn(n={hidden:!1}){return{title:"Type",field:"entity.spec.type",hidden:n.hidden,width:"auto"}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"entity.spec.lifecycle"}},createMetadataDescriptionColumn(){return{title:"Description",field:"entity.metadata.description",render:({entity:n})=>(0,e.jsx)(rt.M,{text:n.metadata.description,placement:"bottom-start"}),width:"auto"}},createTagsColumn(){return{title:"Tags",field:"entity.metadata.tags",cellStyle:{padding:"0px 16px 0px 20px"},render:({entity:n})=>(0,e.jsx)(e.Fragment,{children:n.metadata.tags&&n.metadata.tags.map(a=>(0,e.jsx)(lt.A,{label:a,size:"small",variant:"outlined",style:{marginBottom:"0px"}},a))}),width:"auto"}},createTitleColumn(n){return{title:"Title",field:"entity.metadata.title",hidden:n?.hidden,searchable:!0}},createLabelColumn(n,a){function s(l,c){const y=c.metadata?.labels;return y&&y[l]||""}return{title:a?.title||"Label",field:"entity.metadata.labels",cellStyle:{padding:"0px 16px 0px 20px"},customSort({entity:l},{entity:c}){return s(n,l).localeCompare(s(n,c))},render:({entity:l})=>{const c=l.metadata?.labels,y=c&&c[n]||a?.defaultValue;return(0,e.jsx)(e.Fragment,{children:y&&(0,e.jsx)(lt.A,{label:y,size:"small",variant:"outlined"},y)})},width:"auto"}},createNamespaceColumn(){return{title:"Namespace",field:"entity.metadata.namespace",width:"auto"}}});var Ot=t(95061),Mt=t(63301),ct=t(34839),dt=t(75173),ut=t(58837),Lt=t(64704),jt=t(45917),Dt=t(16983),Rt=t(92822),Bt=t(64630),at=t(87849);const Kt=(0,ut.A)(n=>({searchToolbar:{paddingLeft:0,paddingRight:0},input:{}}),{name:"CatalogReactEntitySearchBar"}),It=()=>{const n=Kt(),{t:a}=(0,at.i)(Bt.j),{updateFilters:s,queryParameters:{text:l}}=(0,h.nK)(),c=(0,i.useMemo)(()=>[l].flat()[0],[l]),[y,N]=(0,i.useState)(c??"");return(0,Dt.A)(()=>{s({text:y.length?new Rt.V3(y):void 0})},250,[y,s]),(0,i.useEffect)(()=>{c&&N(c)},[c]),(0,e.jsx)(dt.A,{className:n.searchToolbar,children:(0,e.jsx)(Ot.A,{children:(0,e.jsx)(Mt.A,{"aria-label":"search",id:"input-with-icon-adornment",className:n.input,placeholder:a("entitySearchBar.placeholder"),autoComplete:"off",onChange:z=>N(z.target.value),value:y,startAdornment:(0,e.jsx)(ct.A,{position:"start",children:(0,e.jsx)(jt.A,{})}),endAdornment:(0,e.jsx)(ct.A,{position:"end",children:(0,e.jsx)(m.A,{"aria-label":"clear search",onClick:()=>N(""),edge:"end",disabled:y.length===0,children:(0,e.jsx)(Lt.A,{})})})})})})},Ut=(0,ut.A)(n=>({root:{paddingTop:n.spacing(1.25),paddingLeft:n.spacing(2.5),paddingBottom:n.spacing(.75),display:"flex",justifyContent:"space-between"},text:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}),{name:"BackstageTableToolbar"});function Ft(n){const a=Ut();return(0,e.jsxs)(dt.A,{className:a.root,children:[(0,e.jsx)(o.A,{variant:"h5",className:a.text,children:n.title}),(0,e.jsx)(It,{})]})}function Nt(n){const{columns:a,data:s,next:l,prev:c,title:y,isLoading:N,options:z,...$}=n;return(0,e.jsx)(A.X,{title:N?"":y,columns:a,data:s,options:{...z,paginationPosition:"both",pageSizeOptions:[],showFirstLastPageButtons:!1,pageSize:Number.MAX_SAFE_INTEGER,emptyRowsWhenPaging:!1},onPageChange:w=>{w>0?l?.():c?.()},components:{Toolbar:Ft},page:c?1:0,totalCount:l?Number.MAX_VALUE:Number.MAX_SAFE_INTEGER,localization:{pagination:{labelDisplayedRows:""}},...$})}const mt=({filters:n,entities:a})=>{const s=n.type===void 0;return[B.createTitleColumn({hidden:!0}),B.createNameColumn({defaultKind:n.kind?.value}),...l(),B.createMetadataDescriptionColumn(),B.createTagsColumn()];function l(){const c=[B.createSystemColumn(),B.createOwnerColumn(),B.createSpecTypeColumn({hidden:!s}),B.createSpecLifecycleColumn()];switch(n.kind?.value){case"user":return[];case"domain":case"system":return[B.createOwnerColumn()];case"group":case"template":return[B.createSpecTypeColumn({hidden:!s})];case"location":return[B.createSpecTypeColumn({hidden:!s}),B.createSpecTargetsColumn()];default:return a.every(y=>y.metadata.namespace==="default")?c:[...c,B.createNamespaceColumn()]}}};var pt=t(98508);const Wt=(0,V.A)({root:{color:"#f3ba37"}})(_.A),zt=(n,a)=>{const s=l=>l.metadata.title||(0,P.S)(l,{defaultKind:"Component"});return s(n).localeCompare(s(a))},et=n=>{const{columns:a=mt,tableOptions:s,subtitle:l,emptyContent:c}=n,{isStarredEntity:y,toggleStarredEntity:N}=(0,F.I)(),z=(0,h.nK)(),{loading:$,error:w,entities:nt,filters:st,pageInfo:it,totalItems:vt}=z,qt=!!it,ht=(0,i.useMemo)(()=>typeof a=="function"?a(z):a,[a,z]),{t:k}=(0,at.i)(pt.W);if(w)return(0,e.jsx)("div",{children:(0,e.jsx)(u.B,{severity:"error",title:k("catalogTable.warningPanelTitle"),children:(0,e.jsx)(D.z,{language:"text",text:w.toString()})})});const _t=[({entity:X})=>{const H=X.metadata.annotations?.[v._P],Q=k("catalogTable.viewActionTitle");return{icon:()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.A,{style:Y.A,children:Q}),(0,e.jsx)(q.A,{fontSize:"small"})]}),tooltip:Q,disabled:!H,onClick:()=>{H&&window.open(H,"_blank")}}},({entity:X})=>{const H=X.metadata.annotations?.[v.P],Q=k("catalogTable.editActionTitle");return{icon:()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.A,{style:Y.A,children:Q}),(0,e.jsx)(G.A,{fontSize:"small"})]}),tooltip:Q,disabled:!H,onClick:()=>{H&&window.open(H,"_blank")}}},({entity:X})=>{const H=y(X),Q=k(H?"catalogTable.unStarActionTitle":"catalogTable.starActionTitle");return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.A,{style:Y.A,children:Q}),H?(0,e.jsx)(Wt,{}):(0,e.jsx)(Z.A,{})]}),tooltip:Q,onClick:()=>N(X)}}],te=st.kind?.value||"",ee=st.type?.value||"",ne=typeof vt=="number"?`(${vt})`:"",Et=[(0,tt.capitalize)(st.user?.value??"all"),ee,xt()(te),ne].filter(X=>X).join(" "),Ct=n.actions||_t,Pt={actionsColumnIndex:-1,loadingType:"linear",showEmptyDataSourceMessage:!$,padding:"dense",...s};if(qt)return(0,e.jsx)(Nt,{columns:ht,emptyContent:c,isLoading:$,title:Et,actions:Ct,subtitle:l,options:Pt,data:nt.map(yt),next:it.next,prev:it.prev});const Tt=nt.sort(zt).map(yt),At=20,ae=Tt.length>At;return(0,e.jsx)(A.X,{isLoading:$,columns:ht,options:{paging:ae,pageSize:At,pageSizeOptions:[20,50,100],...Pt},title:Et,data:Tt,actions:Ct,subtitle:l,emptyContent:c})};et.columns=B,et.defaultColumnsFunc=mt;function yt(n){const a=(0,W.t)(n,p.jn,{kind:"system"}),s=(0,W.t)(n,p.vv);return{entity:n,resolved:{name:(0,P.S)(n,{defaultKind:"Component"}),entityRef:(0,d.U2)(n),ownedByRelationsTitle:s.map(l=>(0,P.S)(l,{defaultKind:"group"})).join(", "),ownedByRelations:s,partOfSystemRelationTitle:a.map(l=>(0,P.S)(l,{defaultKind:"system"})).join(", "),partOfSystemRelations:a}}}var bt=t(35773),Ht=t(36989),Vt=t(40054),Yt=t(58363),Gt=t(35091),Xt=t(72987),Qt=t(92629),Jt=t(91035),$t=t(5250),Zt=t(67626);const wt=n=>{const{initialKind:a,initiallySelectedFilter:s,ownerPickerMode:l,initiallySelectedNamespaces:c}=n;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Vt.m,{initialFilter:a}),(0,e.jsx)($t.Q,{}),(0,e.jsx)(Zt.y,{initialFilter:s}),(0,e.jsx)(Xt.t,{mode:l}),(0,e.jsx)(Yt.W,{}),(0,e.jsx)(Jt.m,{}),(0,e.jsx)(Qt.n,{}),(0,e.jsx)(Gt.V,{initiallySelectedNamespaces:c})]})};function ft(n){const{filters:a,content:s=(0,e.jsx)(et,{}),pagination:l}=n,c=(0,S.gf)(R.U).getOptionalString("organization.name")??"Backstage",y=(0,U.S)(T.qP),{t:N}=(0,at.i)(pt.W),{allowed:z}=(0,Ht.J)({permission:bt.C4});return(0,e.jsx)(C.d,{title:N("indexPage.title",{orgName:c}),themeId:"home",children:(0,e.jsxs)(O.U,{children:[(0,e.jsxs)(g.d,{title:"",children:[z&&(0,e.jsx)(I,{title:N("indexPage.createButtonTitle"),to:y&&y()}),(0,e.jsx)(r.Y,{children:N("indexPage.supportButtonContent")})]}),(0,e.jsx)(h.B9,{pagination:l,children:(0,e.jsxs)(E.GI,{children:[(0,e.jsx)(E.GI.Filters,{children:a}),(0,e.jsx)(E.GI.Content,{children:s})]})})]})})}function gt(n){const{columns:a,actions:s,initiallySelectedFilter:l="owned",initialKind:c="component",tableOptions:y={},emptyContent:N,pagination:z,ownerPickerMode:$,filters:w,initiallySelectedNamespaces:nt}=n;return(0,e.jsx)(ft,{filters:w??(0,e.jsx)(wt,{initialKind:c,initiallySelectedFilter:l,ownerPickerMode:$,initiallySelectedNamespaces:nt}),content:(0,e.jsx)(et,{columns:a,actions:s,tableOptions:y,emptyContent:N}),pagination:z})}function kt(n){return(0,x.P1)()||(0,e.jsx)(gt,{...n})}},98508:(b,f,t)=>{t.d(f,{W:()=>i});var e=t(93184);const i=(0,e.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
2
- Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this."},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoo to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},14117:(b,f,t)=>{t.d(f,{i:()=>e});function e({name:i,attributes:x,resourceType:C}){return C?{type:"resource",name:i,attributes:x,resourceType:C}:{type:"basic",name:i,attributes:x}}},36989:(b,f,t)=>{t.d(f,{J:()=>I});var e=t(72427),i=t(96824);function x(r,S){return r.name===S.name}function C(r,S){return"resourceType"in r?!S||r.resourceType===S:!1}function O(r){return r.attributes.action==="create"}function g(r){return r.attributes.action==="read"}function L(r){return r.attributes.action==="update"}function m(r){return r.attributes.action==="delete"}function M(r){return{authorize:async(S,R)=>await r.authorize(S,R),authorizeConditional(S,R){const U=S;return r.authorize(U,R)}}}var j=t(54241),K=t(68721);function I(r){const S=(0,e.gf)(i.x),{data:R,error:U}=(0,K.Ay)(r,async h=>{if(C(h.permission)&&!h.resourceRef)return j.b.DENY;const{result:E}=await S.authorize(h);return E});return U?{error:U,loading:!1,allowed:!1}:R===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:R===j.b.ALLOW}}}}]);})();
3
-
4
- //# sourceMappingURL=5580.aad136c2.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/5580.aad136c2.chunk.js","mappings":"yNA8BA,MAAMA,KAAYC,EAAAA,GAChB,CACEC,UAAW,CACTC,SAAU,oBACZ,EACAC,KAAM,CACJC,SAAU,UACVF,SAAU,SACVG,a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2BAC1BC,wBAAyB,oBACzBC,eAAgB,kBAChBC,aAAc,gBACdC,WAAY,cACZC,iBAAkB,CAChB7T,MAAO,cACPvD,MAAO,gBACT,EACAqX,WAAY,CACV9T,MAAO,QACPvD,MAAO,UACT,EACAsX,YAAa,CACX/T,MAAO,SACPvD,MAAO,WACT,EACAuX,YAAa,CACXhU,MAAO,SACPvD,MAAO,WACT,EACAwX,qBAAsB,CACpBjU,MAAO,mBACPvD,MAAO,qBACT,EACAyX,UAAW,CACTlU,MAAO,MACT,EACAmU,eAAgB,CACdnU,MAAO,WACT,EACAoU,UAAW,CACTpU,MAAO,OACPvD,MAAO,SACT,EACA4X,aAAc,CACZrU,MAAO,SACT,CACF,EACAsU,iBAAkB,CAChBC,UAAW,YACXC,MAAO,OACT,EACAC,aAAc,CACZC,kBAAmB,oCACnBC,gBAAiB,OACjBC,gBAAiB,OACjBC,gBAAiB,mBACjBC,kBAAmB,uBACrB,EACAC,2BAA4B,CAC1B/Z,MAAO,2BACPga,aAAc,wCAChB,EACAC,wBAAyB,CACvBja,MAAO,wBACPga,aAAc,gDAChB,EACAE,uBAAwB,CACtBla,MAAO,uBACPga,aAAc,+CAChB,EACAG,kBAAmB,CACjBC,cAAe,UACfC,gBAAiB,OACjBC,iBAAkB,iBAClBC,iBAAkB,kBAClBC,oBAAqB,mBACvB,EACAC,iBAAkB,CAChBza,MAAO,SACP0a,iBACE,uHACFC,oBAAqB,WACvB,EACAC,aAAc,CACZlB,kBAAmB,mBACnBmB,WAAY,QACZC,eAAgB,WAClB,EACAC,gBAAiB,CACf/a,MAAO,QACP0a,iBACE,qHACFC,oBAAqB,WACvB,EACAK,eAAgB,CACdhb,MAAO,uBACPuN,YACE,2EACF0N,eAAgB,MAClB,EACAC,aAAc,CACZC,YAAa,+CACbC,kBAAmB,SACnBC,kBAAmB,SACnB9N,YACE,6GACJ,EACA+N,kCAAmC,kCACnCC,iCACE;AAAA,2BACFC,kBAAmB,CACjBxb,MAAO,iBACPga,aAAc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C/D,CACF,CACF,C,0BChEO,SAASwS,EACd3R,EAQK,CAEL,MAAMwX,KAAgB3b,EAAAA,IAAO4b,EAAAA,CAAgBA,EACvC,CAAEtM,KAAAA,EAAMpP,MAAAA,CAAM,KAAI2b,EAAAA,IAAO1X,EAAO,MAAO2X,GAAAA,CAM3C,GAAId,EAAqBc,EAAK/F,UAAU,GAAK,CAAC+F,EAAKC,YACjD,OAAOC,EAAAA,EAAgBC,KAGzB,KAAM,CAAEC,OAAAA,CAAO,EAAI,MAAMP,EAAcJ,UAAUO,CAAI,EACrD,OAAOI,CACT,CAAC,EAED,OAAIhc,EACK,CAAEA,MAAAA,EAAOC,QAAS,GAAO0V,QAAS,EAAM,EAE7CvG,IAAS3M,OACJ,CAAExC,QAAS,GAAM0V,QAAS,EAAM,EAElC,CAAE1V,QAAS,GAAO0V,QAASvG,IAAS0M,EAAAA,EAAgBG,KAAM,CACnE,C","sources":["webpack://techdocs-cli-embedded-app/../core-components/src/components/OverflowTooltip/OverflowTooltip.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-common/src/permissions.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/kindFilterUtils.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/EntityKindPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityLifecyclePicker/EntityLifecyclePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityNamespacePicker/EntityNamespacePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/hooks/useEntityTypeFilter.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityTypePicker/EntityTypePicker.tsx","webpack://techdocs-cli-embedded-app/../core-components/src/components/CreateButton/CreateButton.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/columns.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntitySearchBar/EntitySearchBar.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/CatalogTableToolbar.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/defaultCatalogTableColumnsFunc.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/CatalogTable.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/DefaultFilters/DefaultFilters.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/CatalogPage.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/translation.ts","webpack://techdocs-cli-embedded-app/../../plugins/permission-common/src/permissions/createPermission.ts","webpack://techdocs-cli-embedded-app/../../plugins/permission-common/src/permissions/util.ts","webpack://techdocs-cli-embedded-app/../../plugins/permission-react/src/hooks/usePermission.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport Tooltip, { TooltipProps } from '@material-ui/core/Tooltip';\nimport React from 'react';\nimport Typography from '@material-ui/core/Typography';\n\ntype Props = {\n text?: string | undefined;\n title?: TooltipProps['title'];\n line?: number | undefined;\n placement?: TooltipProps['placement'];\n};\n\nexport type OverflowTooltipClassKey = 'container';\n\nconst useStyles = makeStyles(\n {\n container: {\n overflow: 'visible !important',\n },\n typo: {\n fontSize: 'inherit',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n '-webkit-line-clamp': ({ line }: Props) => line || 1,\n '-webkit-box-orient': 'vertical',\n },\n },\n { name: 'BackstageOverflowTooltip' },\n);\n\nexport function OverflowTooltip(props: Props) {\n const classes = useStyles(props);\n\n return (\n <Tooltip\n title={props.title ?? (props.text || '')}\n placement={props.placement}\n >\n <Typography className={classes.typo} variant=\"inherit\">\n {props.text}\n </Typography>\n </Tooltip>\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * Permission resource type which corresponds to catalog entities.\n *\n * {@link https://backstage.io/docs/features/software-catalog/}\n * @alpha\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * Convenience type for catalog entity\n * {@link @backstage/plugin-permission-common#ResourcePermission}s.\n * @alpha\n */\nexport type CatalogEntityPermission = ResourcePermission<\n typeof RESOURCE_TYPE_CATALOG_ENTITY\n>;\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @alpha\n */\nexport const catalogEntityReadPermission = createPermission({\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to authorize actions that involve creating a new\n * catalog entity. This includes registering an existing component into the\n * catalog.\n * @alpha\n */\nexport const catalogEntityCreatePermission = createPermission({\n name: 'catalog.entity.create',\n attributes: {\n action: 'create',\n },\n});\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @alpha\n */\nexport const catalogEntityDeletePermission = createPermission({\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @alpha\n */\nexport const catalogEntityRefreshPermission = createPermission({\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @alpha\n */\nexport const catalogLocationReadPermission = createPermission({\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @alpha\n */\nexport const catalogLocationCreatePermission = createPermission({\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n});\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @alpha\n */\nexport const catalogLocationDeletePermission = createPermission({\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n});\n\n/**\n * List of all catalog permissions.\n * @alpha\n */\nexport const catalogPermissions = [\n catalogEntityReadPermission,\n catalogEntityCreatePermission,\n catalogEntityDeletePermission,\n catalogEntityRefreshPermission,\n catalogLocationReadPermission,\n catalogLocationCreatePermission,\n catalogLocationDeletePermission,\n];\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport useAsync from 'react-use/esm/useAsync';\nimport { catalogApiRef } from '../../api';\n\n/**\n * Fetch and return all availible kinds.\n */\nexport function useAllKinds(): {\n loading: boolean;\n error?: Error;\n allKinds: string[];\n} {\n const catalogApi = useApi(catalogApiRef);\n\n const {\n error,\n loading,\n value: allKinds,\n } = useAsync(async () => {\n const items = await catalogApi\n .getEntityFacets({ facets: ['kind'] })\n .then(response => response.facets.kind?.map(f => f.value).sort() || []);\n return items;\n }, [catalogApi]);\n\n return { loading, error, allKinds: allKinds ?? [] };\n}\n\n/**\n * Filter and capitalize accessible kinds.\n */\nexport function filterKinds(\n allKinds: string[],\n allowedKinds?: string[],\n forcedKinds?: string,\n): Record<string, string> {\n // Before allKinds is loaded, or when a kind is entered manually in the URL, selectedKind may not\n // be present in allKinds. It should still be shown in the dropdown, but may not have the nice\n // enforced casing from the catalog-backend. This makes a key/value record for the Select options,\n // including selectedKind if it's unknown - but allows the selectedKind to get clobbered by the\n // more proper catalog kind if it exists.\n let availableKinds = allKinds;\n if (allowedKinds) {\n availableKinds = availableKinds.filter(k =>\n allowedKinds.some(\n a => a.toLocaleLowerCase('en-US') === k.toLocaleLowerCase('en-US'),\n ),\n );\n }\n if (\n forcedKinds &&\n !allKinds.some(\n a =>\n a.toLocaleLowerCase('en-US') === forcedKinds.toLocaleLowerCase('en-US'),\n )\n ) {\n availableKinds = availableKinds.concat([forcedKinds]);\n }\n\n const kindsMap = availableKinds.sort().reduce((acc, kind) => {\n acc[kind.toLocaleLowerCase('en-US')] = kind;\n return acc;\n }, {} as Record<string, string>);\n\n return kindsMap;\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Select } from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { EntityKindFilter } from '../../filters';\nimport { useEntityList } from '../../hooks';\nimport { filterKinds, useAllKinds } from './kindFilterUtils';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nfunction useEntityKindFilter(opts: { initialFilter: string }): {\n loading: boolean;\n error?: Error;\n allKinds: string[];\n selectedKind: string;\n setSelectedKind: (kind: string) => void;\n} {\n const {\n filters,\n queryParameters: { kind: kindParameter },\n updateFilters,\n } = useEntityList();\n\n const queryParamKind = useMemo(\n () => [kindParameter].flat()[0],\n [kindParameter],\n );\n\n const [selectedKind, setSelectedKind] = useState(\n queryParamKind ?? filters.kind?.value ?? opts.initialFilter,\n );\n\n // Set selected kinds on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (queryParamKind) {\n setSelectedKind(queryParamKind);\n }\n }, [queryParamKind]);\n\n // Set selected kind from filters; this happens when the kind filter is\n // updated from another component\n useEffect(() => {\n if (filters.kind?.value) {\n setSelectedKind(filters.kind?.value);\n }\n }, [filters.kind]);\n\n useEffect(() => {\n updateFilters({\n kind: selectedKind ? new EntityKindFilter(selectedKind) : undefined,\n });\n }, [selectedKind, updateFilters]);\n\n const { allKinds, loading, error } = useAllKinds();\n\n return {\n loading,\n error,\n allKinds: allKinds ?? [],\n selectedKind,\n setSelectedKind,\n };\n}\n\n/**\n * Props for {@link EntityKindPicker}.\n *\n * @public\n */\nexport interface EntityKindPickerProps {\n /**\n * Entity kinds to show in the dropdown; by default all kinds are fetched from the catalog and\n * displayed.\n */\n allowedKinds?: string[];\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityKindPicker = (props: EntityKindPickerProps) => {\n const { allowedKinds, hidden, initialFilter = 'component' } = props;\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const alertApi = useApi(alertApiRef);\n\n const { error, allKinds, selectedKind, setSelectedKind } =\n useEntityKindFilter({\n initialFilter: initialFilter,\n });\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityKindPicker.errorMessage'),\n severity: 'error',\n });\n }\n }, [error, alertApi, t]);\n\n if (error) return null;\n\n const options = filterKinds(allKinds, allowedKinds, selectedKind);\n\n const items = Object.keys(options).map(key => ({\n value: key,\n label: options[key],\n }));\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityKindPicker.title')}\n items={items}\n selected={selectedKind.toLocaleLowerCase('en-US')}\n onChange={value => setSelectedKind(String(value))}\n />\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport { EntityLifecycleFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityLifecyclePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n {\n name: 'CatalogReactEntityLifecyclePicker',\n },\n);\n\n/** @public */\nexport const EntityLifecyclePicker = (props: { initialFilter?: string[] }) => {\n const { initialFilter = [] } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityLifecyclePicker.title')}\n name=\"lifecycles\"\n path=\"spec.lifecycle\"\n Filter={EntityLifecycleFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initialFilter}\n />\n );\n};\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport React from 'react';\nimport { EntityNamespaceFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityNamespacePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n {\n name: 'CatalogReactEntityNamespacePicker',\n },\n);\n\n/**\n * Props for {@link EntityNamespacePicker}.\n *\n * @public\n */\nexport interface EntityNamespacePickerProps {\n initiallySelectedNamespaces?: string[];\n}\n\n/** @public */\nexport const EntityNamespacePicker = (props: EntityNamespacePickerProps) => {\n const { initiallySelectedNamespaces } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityNamespacePicker.title')}\n name=\"namespace\"\n path=\"metadata.namespace\"\n Filter={EntityNamespaceFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initiallySelectedNamespaces}\n />\n );\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EntityErrorFilter, EntityOrphanFilter } from '../../filters';\nimport Box from '@material-ui/core/Box';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport TextField from '@material-ui/core/TextField';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport CheckBoxIcon from '@material-ui/icons/CheckBox';\nimport CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport React, { useState, ReactNode } from 'react';\nimport { useEntityList } from '../../hooks';\nimport Autocomplete from '@material-ui/lab/Autocomplete';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityProcessingStatusPickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n root: {},\n input: {},\n label: {},\n },\n {\n name: 'CatalogReactEntityProcessingStatusPickerPicker',\n },\n);\n\nconst icon = <CheckBoxOutlineBlankIcon fontSize=\"small\" />;\nconst checkedIcon = <CheckBoxIcon fontSize=\"small\" />;\n\n/** @public */\nexport const EntityProcessingStatusPicker = () => {\n const classes = useStyles();\n const { updateFilters } = useEntityList();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const [selectedAdvancedItems, setSelectedAdvancedItems] = useState<string[]>(\n [],\n );\n\n function orphanChange(value: boolean) {\n updateFilters({\n orphan: value ? new EntityOrphanFilter(value) : undefined,\n });\n }\n\n function errorChange(value: boolean) {\n updateFilters({\n error: value ? new EntityErrorFilter(value) : undefined,\n });\n }\n\n const availableAdvancedItems = ['Is Orphan', 'Has Error'];\n\n return (\n <Box className={classes.root} pb={1} pt={1}>\n <Typography className={classes.label} variant=\"button\" component=\"label\">\n {t('entityProcessingStatusPicker.title')}\n <Autocomplete<string, true>\n PopperComponent={popperProps => (\n <div {...popperProps}>{popperProps.children as ReactNode}</div>\n )}\n multiple\n disableCloseOnSelect\n options={availableAdvancedItems}\n value={selectedAdvancedItems}\n onChange={(_: object, value: string[]) => {\n setSelectedAdvancedItems(value);\n orphanChange(value.includes('Is Orphan'));\n errorChange(value.includes('Has Error'));\n }}\n renderOption={(option, { selected }) => (\n <FormControlLabel\n control={\n <Checkbox\n icon={icon}\n checkedIcon={checkedIcon}\n checked={selected}\n />\n }\n onClick={event => event.preventDefault()}\n label={option}\n />\n )}\n size=\"small\"\n popupIcon={\n <ExpandMoreIcon data-testid=\"processing-status-picker-expand\" />\n }\n renderInput={params => (\n <TextField\n {...params}\n className={classes.input}\n variant=\"outlined\"\n />\n )}\n />\n </Typography>\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport useAsync from 'react-use/esm/useAsync';\nimport isEqual from 'lodash/isEqual';\nimport sortBy from 'lodash/sortBy';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { catalogApiRef } from '../api';\nimport { useEntityList } from './useEntityListProvider';\nimport { EntityTypeFilter } from '../filters';\n\n/**\n * A hook built on top of `useEntityList` for enabling selection of valid `spec.type` values\n * based on the selected EntityKindFilter.\n * @public\n */\nexport function useEntityTypeFilter(): {\n loading: boolean;\n error?: Error;\n availableTypes: string[];\n selectedTypes: string[];\n setSelectedTypes: (types: string[]) => void;\n} {\n const catalogApi = useApi(catalogApiRef);\n const {\n filters: { kind: kindFilter, type: typeFilter },\n queryParameters: { type: typeParameter },\n updateFilters,\n } = useEntityList();\n\n const flattenedQueryTypes = useMemo(\n () => [typeParameter].flat().filter(Boolean) as string[],\n [typeParameter],\n );\n\n const [selectedTypes, setSelectedTypes] = useState(\n flattenedQueryTypes.length\n ? flattenedQueryTypes\n : typeFilter?.getTypes() ?? [],\n );\n\n // Set selected types on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (flattenedQueryTypes.length) {\n setSelectedTypes(flattenedQueryTypes);\n }\n }, [flattenedQueryTypes]);\n\n const [availableTypes, setAvailableTypes] = useState<string[]>([]);\n const kind = useMemo(() => kindFilter?.value, [kindFilter]);\n\n // Load all valid spec.type values straight from the catalogApi, paying attention to only the\n // kind filter for a complete list.\n const {\n error,\n loading,\n value: facets,\n } = useAsync(async () => {\n if (kind) {\n const items = await catalogApi\n .getEntityFacets({\n filter: { kind },\n facets: ['spec.type'],\n })\n .then(response => response.facets['spec.type'] || []);\n return items;\n }\n return [];\n }, [kind, catalogApi]);\n\n const facetsRef = useRef(facets);\n useEffect(() => {\n const oldFacets = facetsRef.current;\n facetsRef.current = facets;\n // Delay processing hook until kind and facets load updates have settled to generate list of types;\n // This prevents resetting the type filter due to saved type value from query params not matching the\n // empty set of type values while values are still being loaded; also only run this hook on changes\n // to facets\n if (loading || !kind || oldFacets === facets || !facets) {\n return;\n }\n\n // Sort by facet count descending, so the most common types appear on top\n const newTypes = [\n ...new Set(\n sortBy(facets, f => -f.count).map(f =>\n f.value.toLocaleLowerCase('en-US'),\n ),\n ),\n ];\n setAvailableTypes(newTypes);\n\n // Update type filter to only valid values when the list of available types has changed\n const stillValidTypes = selectedTypes.filter(value =>\n newTypes.includes(value),\n );\n if (!isEqual(selectedTypes, stillValidTypes)) {\n setSelectedTypes(stillValidTypes);\n }\n }, [loading, kind, selectedTypes, setSelectedTypes, facets]);\n\n useEffect(() => {\n updateFilters({\n type: selectedTypes.length\n ? new EntityTypeFilter(selectedTypes)\n : undefined,\n });\n }, [selectedTypes, updateFilters]);\n\n return {\n loading,\n error,\n availableTypes,\n selectedTypes,\n setSelectedTypes,\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useEffect } from 'react';\nimport Box from '@material-ui/core/Box';\nimport { useEntityTypeFilter } from '../../hooks/useEntityTypeFilter';\n\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport { Select } from '@backstage/core-components';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Props for {@link EntityTypePicker}.\n *\n * @public\n */\nexport interface EntityTypePickerProps {\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityTypePicker = (props: EntityTypePickerProps) => {\n const { hidden, initialFilter } = props;\n const alertApi = useApi(alertApiRef);\n const { error, availableTypes, selectedTypes, setSelectedTypes } =\n useEntityTypeFilter();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityTypePicker.errorMessage'),\n severity: 'error',\n });\n }\n if (initialFilter) {\n setSelectedTypes([initialFilter]);\n }\n }, [error, alertApi, initialFilter, setSelectedTypes, t]);\n\n if (availableTypes.length === 0 || error) return null;\n\n const items = [\n { value: 'all', label: t('entityTypePicker.optionAllTitle') },\n ...availableTypes.map((type: string) => ({\n value: type,\n label: type,\n })),\n ];\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityTypePicker.title')}\n items={items}\n selected={(items.length > 1 ? selectedTypes[0] : undefined) ?? 'all'}\n onChange={value =>\n setSelectedTypes(value === 'all' ? [] : [String(value)])\n }\n />\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport Button from '@material-ui/core/Button';\nimport IconButton from '@material-ui/core/IconButton';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\nimport React from 'react';\nimport { Link as RouterLink, LinkProps } from 'react-router-dom';\nimport AddCircleOutline from '@material-ui/icons/AddCircleOutline';\nimport { Theme } from '@material-ui/core/styles';\n\n/**\n * Properties for {@link CreateButton}\n *\n * @public\n */\nexport type CreateButtonProps = {\n title: string;\n} & Partial<Pick<LinkProps, 'to'>>;\n\n/**\n * Responsive Button giving consistent UX for creation of different things\n *\n * @public\n */\nexport function CreateButton(props: CreateButtonProps) {\n const { title, to } = props;\n const isXSScreen = useMediaQuery<Theme>(theme =>\n theme.breakpoints.down('xs'),\n );\n\n if (!to) {\n return null;\n }\n\n return isXSScreen ? (\n <IconButton\n component={RouterLink}\n color=\"primary\"\n title={title}\n size=\"small\"\n to={to}\n >\n <AddCircleOutline />\n </IconButton>\n ) : (\n <Button component={RouterLink} variant=\"contained\" color=\"primary\" to={to}>\n {title}\n </Button>\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport {\n humanizeEntityRef,\n EntityRefLink,\n EntityRefLinks,\n} from '@backstage/plugin-catalog-react';\nimport Chip from '@material-ui/core/Chip';\nimport { CatalogTableRow } from './types';\nimport { OverflowTooltip, TableColumn } from '@backstage/core-components';\nimport { Entity } from '@backstage/catalog-model';\nimport { JsonArray } from '@backstage/types';\n\n// The columnFactories symbol is not directly exported, but through the\n// CatalogTable.columns field.\n/** @public */\nexport const columnFactories = Object.freeze({\n createNameColumn(options?: {\n defaultKind?: string;\n }): TableColumn<CatalogTableRow> {\n function formatContent(entity: Entity): string {\n return (\n entity.metadata?.title ||\n humanizeEntityRef(entity, {\n defaultKind: options?.defaultKind,\n })\n );\n }\n\n return {\n title: 'Name',\n field: 'resolved.entityRef',\n highlight: true,\n customSort({ entity: entity1 }, { entity: entity2 }) {\n // TODO: We could implement this more efficiently by comparing field by field.\n // This has similar issues as above.\n return formatContent(entity1).localeCompare(formatContent(entity2));\n },\n render: ({ entity }) => (\n <EntityRefLink\n entityRef={entity}\n defaultKind={options?.defaultKind || 'Component'}\n />\n ),\n };\n },\n createSystemColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'System',\n field: 'resolved.partOfSystemRelationTitle',\n render: ({ resolved }) => (\n <EntityRefLinks\n entityRefs={resolved.partOfSystemRelations}\n defaultKind=\"system\"\n />\n ),\n };\n },\n createOwnerColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Owner',\n field: 'resolved.ownedByRelationsTitle',\n render: ({ resolved }) => (\n <EntityRefLinks\n entityRefs={resolved.ownedByRelations}\n defaultKind=\"group\"\n />\n ),\n };\n },\n createSpecTargetsColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Targets',\n field: 'entity.spec.targets',\n customFilterAndSearch: (query, row) => {\n let targets: JsonArray = [];\n if (\n row.entity?.spec?.targets &&\n Array.isArray(row.entity?.spec?.targets)\n ) {\n targets = row.entity?.spec?.targets;\n } else if (row.entity?.spec?.target) {\n targets = [row.entity?.spec?.target];\n }\n return targets\n .join(', ')\n .toLocaleUpperCase('en-US')\n .includes(query.toLocaleUpperCase('en-US'));\n },\n render: ({ entity }) => (\n <>\n {(entity?.spec?.targets || entity?.spec?.target) && (\n <OverflowTooltip\n text={(\n (entity!.spec!.targets as JsonArray) || [entity.spec.target]\n ).join(', ')}\n placement=\"bottom-start\"\n />\n )}\n </>\n ),\n };\n },\n createSpecTypeColumn(\n options: {\n hidden: boolean;\n } = { hidden: false },\n ): TableColumn<CatalogTableRow> {\n return {\n title: 'Type',\n field: 'entity.spec.type',\n hidden: options.hidden,\n width: 'auto',\n };\n },\n createSpecLifecycleColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Lifecycle',\n field: 'entity.spec.lifecycle',\n };\n },\n createMetadataDescriptionColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Description',\n field: 'entity.metadata.description',\n render: ({ entity }) => (\n <OverflowTooltip\n text={entity.metadata.description}\n placement=\"bottom-start\"\n />\n ),\n width: 'auto',\n };\n },\n createTagsColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Tags',\n field: 'entity.metadata.tags',\n cellStyle: {\n padding: '0px 16px 0px 20px',\n },\n render: ({ entity }) => (\n <>\n {entity.metadata.tags &&\n entity.metadata.tags.map(t => (\n <Chip\n key={t}\n label={t}\n size=\"small\"\n variant=\"outlined\"\n style={{ marginBottom: '0px' }}\n />\n ))}\n </>\n ),\n width: 'auto',\n };\n },\n createTitleColumn(options?: {\n hidden?: boolean;\n }): TableColumn<CatalogTableRow> {\n return {\n title: 'Title',\n field: 'entity.metadata.title',\n hidden: options?.hidden,\n searchable: true,\n };\n },\n createLabelColumn(\n key: string,\n options?: { title?: string; defaultValue?: string },\n ): TableColumn<CatalogTableRow> {\n function formatContent(keyLabel: string, entity: Entity): string {\n const labels: Record<string, string> | undefined =\n entity.metadata?.labels;\n return (labels && labels[keyLabel]) || '';\n }\n\n return {\n title: options?.title || 'Label',\n field: 'entity.metadata.labels',\n cellStyle: {\n padding: '0px 16px 0px 20px',\n },\n customSort({ entity: entity1 }, { entity: entity2 }) {\n return formatContent(key, entity1).localeCompare(\n formatContent(key, entity2),\n );\n },\n render: ({ entity }: { entity: Entity }) => {\n const labels: Record<string, string> | undefined =\n entity.metadata?.labels;\n const specifiedLabelValue =\n (labels && labels[key]) || options?.defaultValue;\n return (\n <>\n {specifiedLabelValue && (\n <Chip\n key={specifiedLabelValue}\n label={specifiedLabelValue}\n size=\"small\"\n variant=\"outlined\"\n />\n )}\n </>\n );\n },\n width: 'auto',\n };\n },\n createNamespaceColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Namespace',\n field: 'entity.metadata.namespace',\n width: 'auto',\n };\n },\n});\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport FormControl from '@material-ui/core/FormControl';\nimport IconButton from '@material-ui/core/IconButton';\nimport Input from '@material-ui/core/Input';\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Clear from '@material-ui/icons/Clear';\nimport Search from '@material-ui/icons/Search';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport useDebounce from 'react-use/lib/useDebounce';\nimport { useEntityList } from '../../hooks/useEntityListProvider';\nimport { EntityTextFilter } from '../../filters';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntitySearchBarClassKey = 'searchToolbar' | 'input';\n\nconst useStyles = makeStyles(\n _theme => ({\n searchToolbar: {\n paddingLeft: 0,\n paddingRight: 0,\n },\n input: {},\n }),\n {\n name: 'CatalogReactEntitySearchBar',\n },\n);\n\n/**\n * Renders search bar for filtering the entity list.\n * @public\n */\nexport const EntitySearchBar = () => {\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const {\n updateFilters,\n queryParameters: { text: textParameter },\n } = useEntityList();\n\n const queryParamTextFilter = useMemo(\n () => [textParameter].flat()[0],\n [textParameter],\n );\n\n const [search, setSearch] = useState(queryParamTextFilter ?? '');\n\n useDebounce(\n () => {\n updateFilters({\n text: search.length ? new EntityTextFilter(search) : undefined,\n });\n },\n 250,\n [search, updateFilters],\n );\n\n useEffect(() => {\n if (queryParamTextFilter) {\n setSearch(queryParamTextFilter);\n }\n }, [queryParamTextFilter]);\n\n return (\n <Toolbar className={classes.searchToolbar}>\n <FormControl>\n <Input\n aria-label=\"search\"\n id=\"input-with-icon-adornment\"\n className={classes.input}\n placeholder={t('entitySearchBar.placeholder')}\n autoComplete=\"off\"\n onChange={event => setSearch(event.target.value)}\n value={search}\n startAdornment={\n <InputAdornment position=\"start\">\n <Search />\n </InputAdornment>\n }\n endAdornment={\n <InputAdornment position=\"end\">\n <IconButton\n aria-label=\"clear search\"\n onClick={() => setSearch('')}\n edge=\"end\"\n disabled={search.length === 0}\n >\n <Clear />\n </IconButton>\n </InputAdornment>\n }\n />\n </FormControl>\n </Toolbar>\n );\n};\n","/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { EntitySearchBar } from '@backstage/plugin-catalog-react';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useToolbarStyles = makeStyles(\n theme => ({\n root: {\n paddingTop: theme.spacing(1.25),\n paddingLeft: theme.spacing(2.5),\n paddingBottom: theme.spacing(0.75),\n display: 'flex',\n justifyContent: 'space-between',\n },\n text: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n }),\n { name: 'BackstageTableToolbar' },\n);\n\nexport function CatalogTableToolbar(props: {\n title?: string | React.ReactElement<any>;\n}) {\n const styles = useToolbarStyles();\n return (\n <Toolbar className={styles.root}>\n <Typography variant=\"h5\" className={styles.text}>\n {props.title}\n </Typography>\n <EntitySearchBar />\n </Toolbar>\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\n\nimport { Table, TableProps } from '@backstage/core-components';\nimport { CatalogTableRow } from './types';\nimport { CatalogTableToolbar } from './CatalogTableToolbar';\n\ntype PaginatedCatalogTableProps = {\n prev?(): void;\n next?(): void;\n} & TableProps<CatalogTableRow>;\n\n/**\n * @internal\n */\nexport function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {\n const { columns, data, next, prev, title, isLoading, options, ...restProps } =\n props;\n\n return (\n <Table\n title={isLoading ? '' : title}\n columns={columns}\n data={data}\n options={{\n ...options,\n // These settings are configured to force server side pagination\n paginationPosition: 'both',\n pageSizeOptions: [],\n showFirstLastPageButtons: false,\n pageSize: Number.MAX_SAFE_INTEGER,\n emptyRowsWhenPaging: false,\n }}\n onPageChange={page => {\n if (page > 0) {\n next?.();\n } else {\n prev?.();\n }\n }}\n components={{\n Toolbar: CatalogTableToolbar,\n }}\n /* this will enable the prev button accordingly */\n page={prev ? 1 : 0}\n /* this will enable the next button accordingly */\n totalCount={next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER}\n localization={{ pagination: { labelDisplayedRows: '' } }}\n {...restProps}\n />\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TableColumn } from '@backstage/core-components';\nimport { columnFactories } from './columns';\nimport { CatalogTableColumnsFunc, CatalogTableRow } from './types';\n\n// The defaultCatalogTableColumnsFunc symbol is not directly exported, but through the\n// CatalogTable.defaultColumnsFunc field.\n/** @public */\nexport const defaultCatalogTableColumnsFunc: CatalogTableColumnsFunc = ({\n filters,\n entities,\n}) => {\n const showTypeColumn = filters.type === undefined;\n\n return [\n columnFactories.createTitleColumn({ hidden: true }),\n columnFactories.createNameColumn({ defaultKind: filters.kind?.value }),\n ...createEntitySpecificColumns(),\n columnFactories.createMetadataDescriptionColumn(),\n columnFactories.createTagsColumn(),\n ];\n\n function createEntitySpecificColumns(): TableColumn<CatalogTableRow>[] {\n const baseColumns = [\n columnFactories.createSystemColumn(),\n columnFactories.createOwnerColumn(),\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n columnFactories.createSpecLifecycleColumn(),\n ];\n switch (filters.kind?.value) {\n case 'user':\n return [];\n case 'domain':\n case 'system':\n return [columnFactories.createOwnerColumn()];\n case 'group':\n case 'template':\n return [\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n ];\n case 'location':\n return [\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n columnFactories.createSpecTargetsColumn(),\n ];\n default:\n return entities.every(entity => entity.metadata.namespace === 'default')\n ? baseColumns\n : [...baseColumns, columnFactories.createNamespaceColumn()];\n }\n }\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ANNOTATION_EDIT_URL,\n ANNOTATION_VIEW_URL,\n Entity,\n RELATION_OWNED_BY,\n RELATION_PART_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n CodeSnippet,\n Table,\n TableColumn,\n TableProps,\n WarningPanel,\n} from '@backstage/core-components';\nimport {\n getEntityRelations,\n humanizeEntityRef,\n useEntityList,\n useStarredEntities,\n} from '@backstage/plugin-catalog-react';\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\nimport { visuallyHidden } from '@mui/utils';\nimport Edit from '@material-ui/icons/Edit';\nimport OpenInNew from '@material-ui/icons/OpenInNew';\nimport Star from '@material-ui/icons/Star';\nimport StarBorder from '@material-ui/icons/StarBorder';\nimport { capitalize } from 'lodash';\nimport pluralize from 'pluralize';\nimport React, { ReactNode, useMemo } from 'react';\nimport { columnFactories } from './columns';\nimport { CatalogTableColumnsFunc, CatalogTableRow } from './types';\nimport { PaginatedCatalogTable } from './PaginatedCatalogTable';\nimport { defaultCatalogTableColumnsFunc } from './defaultCatalogTableColumnsFunc';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { catalogTranslationRef } from '../../translation';\n\n/**\n * Props for {@link CatalogTable}.\n *\n * @public\n */\nexport interface CatalogTableProps {\n columns?: TableColumn<CatalogTableRow>[] | CatalogTableColumnsFunc;\n actions?: TableProps<CatalogTableRow>['actions'];\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n subtitle?: string;\n}\n\nconst YellowStar = withStyles({\n root: {\n color: '#f3ba37',\n },\n})(Star);\n\nconst refCompare = (a: Entity, b: Entity) => {\n const toRef = (entity: Entity) =>\n entity.metadata.title ||\n humanizeEntityRef(entity, {\n defaultKind: 'Component',\n });\n\n return toRef(a).localeCompare(toRef(b));\n};\n\n/** @public */\nexport const CatalogTable = (props: CatalogTableProps) => {\n const {\n columns = defaultCatalogTableColumnsFunc,\n tableOptions,\n subtitle,\n emptyContent,\n } = props;\n const { isStarredEntity, toggleStarredEntity } = useStarredEntities();\n const entityListContext = useEntityList();\n const { loading, error, entities, filters, pageInfo, totalItems } =\n entityListContext;\n const enablePagination = !!pageInfo;\n const tableColumns = useMemo(\n () =>\n typeof columns === 'function' ? columns(entityListContext) : columns,\n [columns, entityListContext],\n );\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (error) {\n return (\n <div>\n <WarningPanel\n severity=\"error\"\n title={t('catalogTable.warningPanelTitle')}\n >\n <CodeSnippet language=\"text\" text={error.toString()} />\n </WarningPanel>\n </div>\n );\n }\n\n const defaultActions: TableProps<CatalogTableRow>['actions'] = [\n ({ entity }) => {\n const url = entity.metadata.annotations?.[ANNOTATION_VIEW_URL];\n const title = t('catalogTable.viewActionTitle');\n\n return {\n icon: () => (\n <>\n <Typography style={visuallyHidden}>{title}</Typography>\n <OpenInNew fontSize=\"small\" />\n </>\n ),\n tooltip: title,\n disabled: !url,\n onClick: () => {\n if (!url) return;\n window.open(url, '_blank');\n },\n };\n },\n ({ entity }) => {\n const url = entity.metadata.annotations?.[ANNOTATION_EDIT_URL];\n const title = t('catalogTable.editActionTitle');\n\n return {\n icon: () => (\n <>\n <Typography style={visuallyHidden}>{title}</Typography>\n <Edit fontSize=\"small\" />\n </>\n ),\n tooltip: title,\n disabled: !url,\n onClick: () => {\n if (!url) return;\n window.open(url, '_blank');\n },\n };\n },\n ({ entity }) => {\n const isStarred = isStarredEntity(entity);\n const title = isStarred\n ? t('catalogTable.unStarActionTitle')\n : t('catalogTable.starActionTitle');\n\n return {\n cellStyle: { paddingLeft: '1em' },\n icon: () => (\n <>\n <Typography style={visuallyHidden}>{title}</Typography>\n {isStarred ? <YellowStar /> : <StarBorder />}\n </>\n ),\n tooltip: title,\n onClick: () => toggleStarredEntity(entity),\n };\n },\n ];\n\n const currentKind = filters.kind?.value || '';\n const currentType = filters.type?.value || '';\n const currentCount = typeof totalItems === 'number' ? `(${totalItems})` : '';\n // TODO(timbonicus): remove the title from the CatalogTable once using EntitySearchBar\n const titlePreamble = capitalize(filters.user?.value ?? 'all');\n const title = [\n titlePreamble,\n currentType,\n pluralize(currentKind),\n currentCount,\n ]\n .filter(s => s)\n .join(' ');\n\n const actions = props.actions || defaultActions;\n const options = {\n actionsColumnIndex: -1,\n loadingType: 'linear' as const,\n showEmptyDataSourceMessage: !loading,\n padding: 'dense' as const,\n ...tableOptions,\n };\n\n if (enablePagination) {\n return (\n <PaginatedCatalogTable\n columns={tableColumns}\n emptyContent={emptyContent}\n isLoading={loading}\n title={title}\n actions={actions}\n subtitle={subtitle}\n options={options}\n data={entities.map(toEntityRow)}\n next={pageInfo.next}\n prev={pageInfo.prev}\n />\n );\n }\n\n const rows = entities.sort(refCompare).map(toEntityRow);\n const pageSize = 20;\n const showPagination = rows.length > pageSize;\n\n return (\n <Table<CatalogTableRow>\n isLoading={loading}\n columns={tableColumns}\n options={{\n paging: showPagination,\n pageSize: pageSize,\n pageSizeOptions: [20, 50, 100],\n ...options,\n }}\n title={title}\n data={rows}\n actions={actions}\n subtitle={subtitle}\n emptyContent={emptyContent}\n />\n );\n};\n\nCatalogTable.columns = columnFactories;\nCatalogTable.defaultColumnsFunc = defaultCatalogTableColumnsFunc;\n\nfunction toEntityRow(entity: Entity) {\n const partOfSystemRelations = getEntityRelations(entity, RELATION_PART_OF, {\n kind: 'system',\n });\n const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);\n\n return {\n entity,\n resolved: {\n // This name is here for backwards compatibility mostly; the\n // presentation of refs in the table should in general be handled with\n // EntityRefLink / EntityName components\n name: humanizeEntityRef(entity, {\n defaultKind: 'Component',\n }),\n entityRef: stringifyEntityRef(entity),\n ownedByRelationsTitle: ownedByRelations\n .map(r => humanizeEntityRef(r, { defaultKind: 'group' }))\n .join(', '),\n ownedByRelations,\n partOfSystemRelationTitle: partOfSystemRelations\n .map(r =>\n humanizeEntityRef(r, {\n defaultKind: 'system',\n }),\n )\n .join(', '),\n partOfSystemRelations,\n },\n };\n}\n","/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { UserListFilterKind } from '../../types';\nimport { EntityKindPicker } from '../EntityKindPicker';\nimport { EntityLifecyclePicker } from '../EntityLifecyclePicker';\nimport { EntityNamespacePicker } from '../EntityNamespacePicker';\nimport {\n EntityOwnerPickerProps,\n EntityOwnerPicker,\n} from '../EntityOwnerPicker';\nimport { EntityProcessingStatusPicker } from '../EntityProcessingStatusPicker';\nimport { EntityTagPicker } from '../EntityTagPicker';\nimport { EntityTypePicker } from '../EntityTypePicker';\nimport { UserListPicker } from '../UserListPicker';\n\n/**\n * Props for default filters.\n *\n * @public\n */\nexport type DefaultFiltersProps = {\n initialKind?: string;\n initiallySelectedFilter?: UserListFilterKind;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n initiallySelectedNamespaces?: string[];\n};\n\n/** @public */\nexport const DefaultFilters = (props: DefaultFiltersProps) => {\n const {\n initialKind,\n initiallySelectedFilter,\n ownerPickerMode,\n initiallySelectedNamespaces,\n } = props;\n return (\n <>\n <EntityKindPicker initialFilter={initialKind} />\n <EntityTypePicker />\n <UserListPicker initialFilter={initiallySelectedFilter} />\n <EntityOwnerPicker mode={ownerPickerMode} />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\n <EntityNamespacePicker\n initiallySelectedNamespaces={initiallySelectedNamespaces}\n />\n </>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Content,\n ContentHeader,\n CreateButton,\n PageWithHeader,\n SupportButton,\n TableColumn,\n TableProps,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n CatalogFilterLayout,\n EntityListProvider,\n UserListFilterKind,\n EntityOwnerPickerProps,\n} from '@backstage/plugin-catalog-react';\nimport React, { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\nimport { catalogTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nimport { CatalogTableColumnsFunc } from '../CatalogTable/types';\nimport { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';\nimport { usePermission } from '@backstage/plugin-permission-react';\nimport { DefaultFilters } from '@backstage/plugin-catalog-react';\n\n/** @internal */\nexport type BaseCatalogPageProps = {\n filters: ReactNode;\n content?: ReactNode;\n pagination?: boolean | { limit?: number };\n};\n\n/** @internal */\nexport function BaseCatalogPage(props: BaseCatalogPageProps) {\n const { filters, content = <CatalogTable />, pagination } = props;\n const orgName =\n useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';\n const createComponentLink = useRouteRef(createComponentRouteRef);\n const { t } = useTranslationRef(catalogTranslationRef);\n const { allowed } = usePermission({\n permission: catalogEntityCreatePermission,\n });\n\n return (\n <PageWithHeader title={t('indexPage.title', { orgName })} themeId=\"home\">\n <Content>\n <ContentHeader title=\"\">\n {allowed && (\n <CreateButton\n title={t('indexPage.createButtonTitle')}\n to={createComponentLink && createComponentLink()}\n />\n )}\n <SupportButton>{t('indexPage.supportButtonContent')}</SupportButton>\n </ContentHeader>\n <EntityListProvider pagination={pagination}>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>{filters}</CatalogFilterLayout.Filters>\n <CatalogFilterLayout.Content>{content}</CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\n </PageWithHeader>\n );\n}\n\n/**\n * Props for root catalog pages.\n *\n * @public\n */\nexport interface DefaultCatalogPageProps {\n initiallySelectedFilter?: UserListFilterKind;\n columns?: TableColumn<CatalogTableRow>[] | CatalogTableColumnsFunc;\n actions?: TableProps<CatalogTableRow>['actions'];\n initialKind?: string;\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n pagination?: boolean | { limit?: number };\n filters?: ReactNode;\n initiallySelectedNamespaces?: string[];\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\n pagination,\n ownerPickerMode,\n filters,\n initiallySelectedNamespaces,\n } = props;\n\n return (\n <BaseCatalogPage\n filters={\n filters ?? (\n <DefaultFilters\n initialKind={initialKind}\n initiallySelectedFilter={initiallySelectedFilter}\n ownerPickerMode={ownerPickerMode}\n initiallySelectedNamespaces={initiallySelectedNamespaces}\n />\n )\n }\n content={\n <CatalogTable\n columns={columns}\n actions={actions}\n tableOptions={tableOptions}\n emptyContent={emptyContent}\n />\n }\n pagination={pagination}\n />\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { useOutlet } from 'react-router-dom';\nimport {\n DefaultCatalogPage,\n DefaultCatalogPageProps,\n} from './DefaultCatalogPage';\n\nexport function CatalogPage(props: DefaultCatalogPageProps) {\n const outlet = useOutlet();\n\n return outlet || <DefaultCatalogPage {...props} />;\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this.',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoo to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n BasicPermission,\n Permission,\n PermissionAttributes,\n ResourcePermission,\n} from '../types';\n\n/**\n * Utility function for creating a valid {@link ResourcePermission}, inferring\n * the appropriate type and resource type parameter.\n *\n * @public\n */\nexport function createPermission<TResourceType extends string>(input: {\n name: string;\n attributes: PermissionAttributes;\n resourceType: TResourceType;\n}): ResourcePermission<TResourceType>;\n/**\n * Utility function for creating a valid {@link BasicPermission}.\n *\n * @public\n */\nexport function createPermission(input: {\n name: string;\n attributes: PermissionAttributes;\n}): BasicPermission;\nexport function createPermission({\n name,\n attributes,\n resourceType,\n}: {\n name: string;\n attributes: PermissionAttributes;\n resourceType?: string;\n}): Permission {\n if (resourceType) {\n return {\n type: 'resource',\n name,\n attributes,\n resourceType,\n };\n }\n\n return {\n type: 'basic',\n name,\n attributes,\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AuthorizePermissionRequest,\n AuthorizePermissionResponse,\n DefinitivePolicyDecision,\n EvaluatorRequestOptions,\n Permission,\n PermissionAuthorizer,\n PermissionEvaluator,\n QueryPermissionRequest,\n QueryPermissionResponse,\n ResourcePermission,\n} from '../types';\n\n/**\n * Check if the two parameters are equivalent permissions.\n * @public\n */\nexport function isPermission<T extends Permission>(\n permission: Permission,\n comparedPermission: T,\n): permission is T {\n return permission.name === comparedPermission.name;\n}\n\n/**\n * Check if a given permission is a {@link ResourcePermission}. When\n * `resourceType` is supplied as the second parameter, also checks if\n * the permission has the specified resource type.\n * @public\n */\nexport function isResourcePermission<T extends string = string>(\n permission: Permission,\n resourceType?: T,\n): permission is ResourcePermission<T> {\n if (!('resourceType' in permission)) {\n return false;\n }\n\n return !resourceType || permission.resourceType === resourceType;\n}\n\n/**\n * Check if a given permission is related to a create action.\n * @public\n */\nexport function isCreatePermission(permission: Permission) {\n return permission.attributes.action === 'create';\n}\n\n/**\n * Check if a given permission is related to a read action.\n * @public\n */\nexport function isReadPermission(permission: Permission) {\n return permission.attributes.action === 'read';\n}\n\n/**\n * Check if a given permission is related to an update action.\n * @public\n */\nexport function isUpdatePermission(permission: Permission) {\n return permission.attributes.action === 'update';\n}\n\n/**\n * Check if a given permission is related to a delete action.\n * @public\n */\nexport function isDeletePermission(permission: Permission) {\n return permission.attributes.action === 'delete';\n}\n\n/**\n * Convert {@link PermissionAuthorizer} to {@link PermissionEvaluator}.\n *\n * @public\n */\nexport function toPermissionEvaluator(\n permissionAuthorizer: PermissionAuthorizer,\n): PermissionEvaluator {\n return {\n authorize: async (\n requests: AuthorizePermissionRequest[],\n options?: EvaluatorRequestOptions,\n ): Promise<AuthorizePermissionResponse[]> => {\n const response = await permissionAuthorizer.authorize(requests, options);\n\n return response as DefinitivePolicyDecision[];\n },\n authorizeConditional(\n requests: QueryPermissionRequest[],\n options?: EvaluatorRequestOptions,\n ): Promise<QueryPermissionResponse[]> {\n const parsedRequests =\n requests as unknown as AuthorizePermissionRequest[];\n return permissionAuthorizer.authorize(parsedRequests, options);\n },\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport { permissionApiRef } from '../apis';\nimport {\n AuthorizeResult,\n isResourcePermission,\n Permission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\nimport useSWR from 'swr';\n\n/** @public */\nexport type AsyncPermissionResult = {\n loading: boolean;\n allowed: boolean;\n error?: Error;\n};\n\n/**\n * React hook utility for authorization. Given either a non-resource\n * {@link @backstage/plugin-permission-common#Permission} or a\n * {@link @backstage/plugin-permission-common#ResourcePermission} and an\n * optional resourceRef, it will return whether or not access is allowed (for\n * the given resource, if resourceRef is provided). See\n * {@link @backstage/plugin-permission-common/PermissionClient#authorize} for\n * more details.\n *\n * The resourceRef field is optional to allow calling this hook with an\n * entity that might be loading asynchronously, but when resourceRef is not\n * supplied, the value of `allowed` will always be false.\n *\n * Note: This hook uses stale-while-revalidate to help avoid flicker in UI\n * elements that would be conditionally rendered based on the `allowed` result\n * of this hook.\n * @public\n */\nexport function usePermission(\n input:\n | {\n permission: Exclude<Permission, ResourcePermission>;\n resourceRef?: never;\n }\n | {\n permission: ResourcePermission;\n resourceRef: string | undefined;\n },\n): AsyncPermissionResult {\n const permissionApi = useApi(permissionApiRef);\n const { data, error } = useSWR(input, async (args: typeof input) => {\n // We could make the resourceRef parameter required to avoid this check, but\n // it would make using this hook difficult in situations where the entity\n // must be asynchronously loaded, so instead we short-circuit to a deny when\n // no resourceRef is supplied, on the assumption that the resourceRef is\n // still loading outside the hook.\n if (isResourcePermission(args.permission) && !args.resourceRef) {\n return AuthorizeResult.DENY;\n }\n\n const { result } = await permissionApi.authorize(args);\n return result;\n });\n\n if (error) {\n return { error, loading: false, allowed: false };\n }\n if (data === undefined) {\n return { loading: true, allowed: false };\n }\n return { loading: false, allowed: data === AuthorizeResult.ALLOW };\n}\n"],"names":["useStyles","makeStyles","container","overflow","typo","fontSize","textOverflow","display","line","name","OverflowTooltip","props","classes","Tooltip","title","text","placement","Typography","className","variant","RESOURCE_TYPE_CATALOG_ENTITY","catalogEntityReadPermission","createPermission","attributes","action","resourceType","catalogEntityCreatePermission","catalogEntityDeletePermission","catalogEntityRefreshPermission","catalogLocationReadPermission","catalogLocationCreatePermission","catalogLocationDeletePermission","catalogPermissions","useAllKinds","catalogApi","useApi","catalogApiRef","error","loading","value","allKinds","useAsync","getEntityFacets","facets","then","response","kind","map","f","sort","filterKinds","allowedKinds","forcedKinds","availableKinds","filter","k","some","a","toLocaleLowerCase","concat","reduce","acc","useEntityKindFilter","opts","filters","queryParameters","kindParameter","updateFilters","useEntityList","queryParamKind","useMemo","flat","selectedKind","setSelectedKind","useState","initialFilter","useEffect","EntityKindFilter","undefined","EntityKindPicker","hidden","t","useTranslationRef","catalogReactTranslationRef","alertApi","alertApiRef","post","message","severity","options","items","Object","keys","key","label","Box","pb","pt","Select","selected","onChange","String","input","EntityLifecyclePicker","EntityAutocompletePicker","path","Filter","EntityLifecycleFilter","InputProps","initialSelectedOptions","EntityNamespacePicker","initiallySelectedNamespaces","EntityNamespaceFilter","root","icon","CheckBoxOutlineBlankIcon","checkedIcon","CheckBoxIcon","EntityProcessingStatusPicker","selectedAdvancedItems","setSelectedAdvancedItems","orphanChange","orphan","EntityOrphanFilter","errorChange","EntityErrorFilter","availableAdvancedItems","component","Autocomplete","PopperComponent","popperProps","div","children","multiple","disableCloseOnSelect","_","includes","renderOption","option","FormControlLabel","control","Checkbox","checked","onClick","event","preventDefault","size","popupIcon","ExpandMoreIcon","data-testid","renderInput","params","TextField","useEntityTypeFilter","kindFilter","type","typeFilter","typeParameter","flattenedQueryTypes","Boolean","selectedTypes","setSelectedTypes","length","getTypes","availableTypes","setAvailableTypes","facetsRef","useRef","oldFacets","current","newTypes","Set","sortBy","count","stillValidTypes","isEqual","EntityTypeFilter","EntityTypePicker","CreateButton","to","isXSScreen","useMediaQuery","theme","breakpoints","down","IconButton","RouterLink","color","AddCircleOutline","Button","columnFactories","freeze","createNameColumn","formatContent","entity","metadata","humanizeEntityRef","defaultKind","field","highlight","customSort","entity1","entity2","localeCompare","render","EntityRefLink","entityRef","createSystemColumn","resolved","EntityRefLinks","entityRefs","partOfSystemRelations","createOwnerColumn","ownedByRelations","createSpecTargetsColumn","customFilterAndSearch","query","row","targets","spec","Array","isArray","target","join","toLocaleUpperCase","createSpecTypeColumn","width","createSpecLifecycleColumn","createMetadataDescriptionColumn","description","createTagsColumn","cellStyle","padding","tags","Chip","style","marginBottom","createTitleColumn","searchable","createLabelColumn","keyLabel","labels","specifiedLabelValue","defaultValue","createNamespaceColumn","_theme","searchToolbar","paddingLeft","paddingRight","EntitySearchBar","textParameter","queryParamTextFilter","search","setSearch","useDebounce","EntityTextFilter","Toolbar","FormControl","Input","aria-label","id","placeholder","autoComplete","startAdornment","InputAdornment","position","Search","endAdornment","edge","disabled","Clear","useToolbarStyles","paddingTop","spacing","paddingBottom","justifyContent","whiteSpace","CatalogTableToolbar","styles","PaginatedCatalogTable","columns","data","next","prev","isLoading","restProps","Table","paginationPosition","pageSizeOptions","showFirstLastPageButtons","pageSize","Number","MAX_SAFE_INTEGER","emptyRowsWhenPaging","onPageChange","page","components","totalCount","MAX_VALUE","localization","pagination","labelDisplayedRows","defaultCatalogTableColumnsFunc","entities","showTypeColumn","createEntitySpecificColumns","baseColumns","every","namespace","YellowStar","withStyles","Star","refCompare","b","toRef","CatalogTable","tableOptions","subtitle","emptyContent","isStarredEntity","toggleStarredEntity","useStarredEntities","entityListContext","pageInfo","totalItems","enablePagination","tableColumns","catalogTranslationRef","WarningPanel","CodeSnippet","language","toString","defaultActions","url","annotations","ANNOTATION_VIEW_URL","visuallyHidden","OpenInNew","tooltip","window","open","ANNOTATION_EDIT_URL","Edit","isStarred","StarBorder","currentKind","currentType","currentCount","capitalize","user","pluralize","s","actions","actionsColumnIndex","loadingType","showEmptyDataSourceMessage","toEntityRow","rows","showPagination","paging","defaultColumnsFunc","getEntityRelations","RELATION_PART_OF","RELATION_OWNED_BY","stringifyEntityRef","ownedByRelationsTitle","r","partOfSystemRelationTitle","DefaultFilters","initialKind","initiallySelectedFilter","ownerPickerMode","UserListPicker","EntityOwnerPicker","mode","EntityTagPicker","BaseCatalogPage","content","orgName","configApiRef","getOptionalString","createComponentLink","useRouteRef","createComponentRouteRef","allowed","usePermission","permission","PageWithHeader","themeId","Content","ContentHeader","SupportButton","EntityListProvider","CatalogFilterLayout","Filters","DefaultCatalogPage","CatalogPage","useOutlet","createTranslationRef","messages","indexPage","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","isPermission","comparedPermission","isResourcePermission","isCreatePermission","isReadPermission","isUpdatePermission","isDeletePermission","toPermissionEvaluator","permissionAuthorizer","authorize","requests","authorizeConditional","parsedRequests","permissionApi","permissionApiRef","useSWR","args","resourceRef","AuthorizeResult","DENY","result","ALLOW"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[6066],{25534:(c,d,e)=>{"use strict";var n,a=e(4293),s=e(78920);n={value:!0},d.A=void 0;var i=s(e(14041)),t=a(e(74044)),u=(0,t.default)(i.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.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"}),"AddCircleOutline");d.A=u},39330:(c,d,e)=>{"use strict";var n,a=e(4293),s=e(78920);n={value:!0},d.A=void 0;var i=s(e(14041)),t=a(e(74044)),u=(0,t.default)(i.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");d.A=u},9402:(c,d,e)=>{"use strict";e.d(d,{A:()=>a});const a={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},86912:c=>{function d(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}c.exports=d},84570:(c,d,e)=>{var n=e(47170),a=e(45770),s=a(n);c.exports=s},90313:(c,d,e)=>{var n=e(11129),a=e(20714);function s(i,t,u,o,l){var h=-1,v=i.length;for(u||(u=a),l||(l=[]);++h<v;){var f=i[h];t>0&&u(f)?t>1?s(f,t-1,u,o,l):n(l,f):o||(l[l.length]=f)}return l}c.exports=s},41393:(c,d,e)=>{var n=e(84570),a=e(36529);function s(i,t){var u=-1,o=a(i)?Array(i.length):[];return n(i,function(l,h,v){o[++u]=t(l,h,v)}),o}c.exports=s},70310:(c,d,e)=>{var n=e(65111),a=e(57923),s=e(3334),i=e(41393),t=e(50642),u=e(49460),o=e(46775),l=e(22053),h=e(53142);function v(f,r,p){r.length?r=n(r,function(m){return h(m)?function(b){return a(b,m.length===1?m[0]:m)}:m}):r=[l];var g=-1;r=n(r,u(s));var $=i(f,function(m,b,w){var y=n(r,function(x){return x(m)});return{criteria:y,index:++g,value:m}});return t($,function(m,b){return o(m,b,p)})}c.exports=v},23945:(c,d,e)=>{var n=e(22053),a=e(75234),s=e(80796);function i(t,u){return s(a(t,u,n),t+"")}c.exports=i},47403:(c,d,e)=>{var n=e(82619),a=e(72532),s=e(22053),i=a?function(t,u){return a(t,"toString",{configurable:!0,enumerable:!1,value:n(u),writable:!0})}:s;c.exports=i},50642:c=>{function d(e,n){var a=e.length;for(e.sort(n);a--;)e[a]=e[a].value;return e}c.exports=d},63521:(c,d,e)=>{var n=e(51187);function a(s,i){if(s!==i){var t=s!==void 0,u=s===null,o=s===s,l=n(s),h=i!==void 0,v=i===null,f=i===i,r=n(i);if(!v&&!r&&!l&&s>i||l&&h&&f&&!v&&!r||u&&h&&f||!t&&f||!o)return 1;if(!u&&!l&&!r&&s<i||r&&t&&o&&!u&&!l||v&&t&&o||!h&&o||!f)return-1}return 0}c.exports=a},46775:(c,d,e)=>{var n=e(63521);function a(s,i,t){for(var u=-1,o=s.criteria,l=i.criteria,h=o.length,v=t.length;++u<h;){var f=n(o[u],l[u]);if(f){if(u>=v)return f;var r=t[u];return f*(r=="desc"?-1:1)}}return s.index-i.index}c.exports=a},45770:(c,d,e)=>{var n=e(36529);function a(s,i){return function(t,u){if(t==null)return t;if(!n(t))return s(t,u);for(var o=t.length,l=i?o:-1,h=Object(t);(i?l--:++l<o)&&u(h[l],l,h)!==!1;);return t}}c.exports=a},20714:(c,d,e)=>{var n=e(65650),a=e(3283),s=e(53142),i=n?n.isConcatSpreadable:void 0;function t(u){return s(u)||a(u)||!!(i&&u&&u[i])}c.exports=t},74535:(c,d,e)=>{var n=e(46285),a=e(36529),s=e(69632),i=e(41580);function t(u,o,l){if(!i(l))return!1;var h=typeof o;return(h=="number"?a(l)&&s(o,l.length):h=="string"&&o in l)?n(l[o],u):!1}c.exports=t},75234:(c,d,e)=>{var n=e(86912),a=Math.max;function s(i,t,u){return t=a(t===void 0?i.length-1:t,0),function(){for(var o=arguments,l=-1,h=a(o.length-t,0),v=Array(h);++l<h;)v[l]=o[t+l];l=-1;for(var f=Array(t+1);++l<t;)f[l]=o[l];return f[t]=u(v),n(i,this,f)}}c.exports=s},80796:(c,d,e)=>{var n=e(47403),a=e(3316),s=a(n);c.exports=s},3316:c=>{var d=800,e=16,n=Date.now;function a(s){var i=0,t=0;return function(){var u=n(),o=e-(u-t);if(t=u,o>0){if(++i>=d)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}c.exports=a},82619:c=>{function d(e){return function(){return e}}c.exports=d},46343:(c,d,e)=>{var n=e(94687);function a(s,i){return n(s,i)}c.exports=a},40074:(c,d,e)=>{var n=e(90313),a=e(70310),s=e(23945),i=e(74535),t=s(function(u,o){if(u==null)return[];var l=o.length;return l>1&&i(u,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),a(u,n(o,1),[])});c.exports=t},65398:function(c){(function(d,e){c.exports=e()})(this,function(){var d=[],e=[],n={},a={},s={};function i(r){return typeof r=="string"?new RegExp("^"+r+"$","i"):r}function t(r,p){return r===p?p:r===r.toLowerCase()?p.toLowerCase():r===r.toUpperCase()?p.toUpperCase():r[0]===r[0].toUpperCase()?p.charAt(0).toUpperCase()+p.substr(1).toLowerCase():p.toLowerCase()}function u(r,p){return r.replace(/\$(\d{1,2})/g,function(g,$){return p[$]||""})}function o(r,p){return r.replace(p[0],function(g,$){var m=u(p[1],arguments);return t(g===""?r[$-1]:g,m)})}function l(r,p,g){if(!r.length||n.hasOwnProperty(r))return p;for(var $=g.length;$--;){var m=g[$];if(m[0].test(p))return o(p,m)}return p}function h(r,p,g){return function($){var m=$.toLowerCase();return p.hasOwnProperty(m)?t($,m):r.hasOwnProperty(m)?t($,r[m]):l(m,$,g)}}function v(r,p,g,$){return function(m){var b=m.toLowerCase();return p.hasOwnProperty(b)?!0:r.hasOwnProperty(b)?!1:l(b,b,g)===b}}function f(r,p,g){var $=p===1?f.singular(r):f.plural(r);return(g?p+" ":"")+$}return f.plural=h(s,a,d),f.isPlural=v(s,a,d),f.singular=h(a,s,e),f.isSingular=v(a,s,e),f.addPluralRule=function(r,p){d.push([i(r),p])},f.addSingularRule=function(r,p){e.push([i(r),p])},f.addUncountableRule=function(r){if(typeof r=="string"){n[r.toLowerCase()]=!0;return}f.addPluralRule(r,"$0"),f.addSingularRule(r,"$0")},f.addIrregularRule=function(r,p){p=p.toLowerCase(),r=r.toLowerCase(),s[r]=p,a[p]=r},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(r){return f.addIrregularRule(r[0],r[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(r){return f.addPluralRule(r[0],r[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(r){return f.addSingularRule(r[0],r[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})},16983:(c,d,e)=>{"use strict";var n;n={value:!0};var a=e(85608),s=e(14041),i=a.__importDefault(e(49069));function t(u,o,l){o===void 0&&(o=0),l===void 0&&(l=[]);var h=i.default(u,o),v=h[0],f=h[1],r=h[2];return s.useEffect(r,l),[v,f]}d.A=t},49069:(c,d,e)=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});var n=e(14041);function a(s,i){i===void 0&&(i=0);var t=n.useRef(!1),u=n.useRef(),o=n.useRef(s),l=n.useCallback(function(){return t.current},[]),h=n.useCallback(function(){t.current=!1,u.current&&clearTimeout(u.current),u.current=setTimeout(function(){t.current=!0,o.current()},i)},[i]),v=n.useCallback(function(){t.current=null,u.current&&clearTimeout(u.current)},[]);return n.useEffect(function(){o.current=s},[s]),n.useEffect(function(){return h(),v},[i]),[l,v,h]}d.default=a}}]);})();
2
-
3
- //# sourceMappingURL=6066.c5fcf8d3.chunk.js.map