Anvil/assets/DocsRenderer-K4EAMTCU-CKYuCrSz.js
André Jaenisch c6b8fcc58a
Updates
2024-07-08 12:23:04 +02:00

2 lines
1.9 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-62mhi_aA.js","./index-C81QF7Wr.js","./index-D5T89ylH.js","./iframe-DPDnj6hA.js","./_commonjsHelpers-Cpj98o6Y.js","./tslib.es6-pJfR_DrR.js","./index-DYADbu9O.js","./index-B4WlZuP_.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
import{_ as d}from"./iframe-DPDnj6hA.js";import{r as h,R as o,e as i,f as E,A as R,H as x,D as y}from"./index-D5T89ylH.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./index-DYADbu9O.js";import"./index-B4WlZuP_.js";import"./index-DrFu-skq.js";var m={},u=h;m.createRoot=u.createRoot,m.hydrateRoot=u.hydrateRoot;var n=new Map,D=({callback:t,children:e})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==t&&(r.current=t,t())},[t]),e},v=async(t,e,r)=>{let s=await _(e,r);return new Promise(a=>{s.render(o.createElement(D,{callback:()=>a(null)},t))})},w=(t,e)=>{let r=n.get(t);r&&(r.unmount(),n.delete(t))},_=async(t,e)=>{let r=n.get(t);return r||(r=m.createRoot(t,e),n.set(t,r)),r},f={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:e}=this.props;e(t)}render(){let{hasError:t}=this.state,{children:e}=this.props;return t?null:o.createElement(o.Fragment,null,e)}},T=class{constructor(){this.render=async(t,e,r)=>{let s={...f,...e==null?void 0:e.components},a=y;return new Promise((p,l)=>{d(async()=>{const{MDXProvider:c}=await import("./index-62mhi_aA.js");return{MDXProvider:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:t,docsParameter:e}))),r)).then(()=>p())})},this.unmount=t=>{w(t)}}};export{T as DocsRenderer,f as defaultComponents};