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AAQ,EAAE,KAAK,MAAM,CAAC,SAAAvB,CAAQ,EAAE,KAAK,MAAM,OAAOuB,EAAS,KAAKZ,EAAM,cAAcA,EAAM,SAAS,KAAKX,CAAQ,CAAC,CAAC,EAAEwB,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGb,EAAkB,GAAGW,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACpB,EAAQqB,IAAS,CAACC,EAAA,4BAAAC,CAAA,eAAO,qBAAe,6EAAE,KAAK,CAAC,CAAC,YAAAA,CAAW,IAAI7B,EAAcO,EAAM,cAAcQ,EAAc,CAAC,cAAcY,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEpB,EAAM,cAAcsB,EAAY,CAAC,WAAAL,CAAU,EAAEjB,EAAM,cAAckB,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAIjB,EAAS,EAAE,CAAC,CAAC,EAAE,KAAK,QAAQiB,GAAS,CAACf,EAAee,CAAO,CAAE,CAAE,CAAC","names":["m","require$$0","nodes","WithCallback","callback","children","once","useRef","useLayoutEffect","renderElement","node","el","rootOptions","root","getReactRoot","resolve","React","unmountElement","shouldUseNewRootApi","ReactDOM","defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","reject","__vitePreload","MDXProvider"],"ignoreList":[0,1,2],"sources":["../../node_modules/react-dom/client.js","../../node_modules/@storybook/react-dom-shim/dist/react-18.mjs","../../node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import React, { useRef, useLayoutEffect } from 'react';\nimport ReactDOM from 'react-dom/client';\n\nvar nodes=new Map,WithCallback=({callback,children})=>{let once=useRef();return useLayoutEffect(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children},renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);return new Promise(resolve=>{root.render(React.createElement(WithCallback,{callback:()=>resolve(null)},node));})},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=ReactDOM.createRoot(el,rootOptions),nodes.set(el,root)),root};\n\nexport { renderElement, unmountElement };\n","import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"file":"assets/DocsRenderer-PKQXORMH-c8cvESgm.js"} |