"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[7892],{28576:function(m,s,t){t.d(s,{o:function(){return c}});var i=t(33648);function c(u){return(0,i.W4)()}},49704:function(m,s,t){t.d(s,{Zp:function(){return P},kH:function(){return g},s$:function(){return l}});var i=t(77e3),c=t(83856),u=t(73556),E=t(42772),v=t(68080),f=t(85668);const h=(0,E.IR)("entity-context"),l=n=>{const{children:e,entity:o,loading:r,error:a,refresh:d}=n,y={entity:o,loading:r,error:a,refresh:d};return(0,i.jsx)(h.Provider,{value:(0,v.O)({1:y}),children:(0,i.jsx)(u.cz,{attributes:{...o?{entityRef:(0,c.gH)(o)}:void 0},children:e})})},R=n=>_jsx(l,{entity:n.entity,loading:!Boolean(n.entity),error:void 0,refresh:void 0,children:n.children});function g(){const n=(0,E.eW)("entity-context");if(!n)throw new Error("Entity context is not available");const e=n.atVersion(1);if(!e)throw new Error("EntityContext v1 not available");if(!e.entity)throw new Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:e.entity}}function P(){const n=(0,E.eW)("entity-context");if(!n)throw new Error("Entity context is not available");const e=n.atVersion(1);if(!e)throw new Error("EntityContext v1 not available");const{entity:o,loading:r,error:a,refresh:d}=e;return{entity:o,loading:r,error:a,refresh:d}}},17892:function(m,s,t){t.r(s),t.d(s,{CatalogEntityPage:function(){return n}});var i=t(77e3),c=t(85668),u=t(33648),E=t(49704),v=t(28576),f=t(15940),h=t(63908),l=t(65884),R=t(33776),g=t(92908);const P=()=>{const{kind:e,namespace:o,name:r}=(0,v.o)(l.I),a=(0,u.i6)(),d=(0,f.yk)(h.m),y=(0,f.yk)(R.s),{value:A,error:O,loading:x,retry:C}=(0,g.c)(()=>y.getEntityByRef({kind:e,namespace:o,name:r}),[y,e,o,r]);return(0,c.useEffect)(()=>{r||(d.post(new Error("No name provided!")),a("/"))},[d,a,O,x,A,r]),{entity:A,loading:x,error:O,refresh:C}};function n(){return(0,i.jsx)(E.s$,{...P(),children:(0,i.jsx)(u.yY,{})})}}}]);})();

//# sourceMappingURL=7892.a8af4873.chunk.js.map