"use strict";(self.webpackChunk_grafana_ui=self.webpackChunk_grafana_ui||[]).push([[652],{"../../.yarn/__virtual__/@storybook-preview-web-virtual-d81765e55f/2/yarn/cache/@storybook-preview-web-npm-6.5.16-76bcc4f64f-6161c96e9e.zip/node_modules/@storybook/preview-web/dist/esm/renderDocs.js":function(C,g,d){d.r(g),d.d(g,{renderDocs:function(){return D},unmountDocs:function(){return P}});var S=d("../../../yarn/cache/regenerator-runtime-npm-0.13.9-6d02340eec-65ed455fe5.zip/node_modules/regenerator-runtime/runtime.js"),z=d("../../.yarn/unplugged/core-js-npm-3.22.8-40b5d0770b/node_modules/core-js/modules/es.object.to-string.js"),A=d("../../.yarn/unplugged/core-js-npm-3.22.8-40b5d0770b/node_modules/core-js/modules/es.promise.js"),n=d("../../../yarn/cache/react-npm-17.0.2-99ba37d931-b254cc17ce.zip/node_modules/react/index.js"),h=d("../../.yarn/__virtual__/react-dom-virtual-48394057d2/2/yarn/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/index.js"),b={fontSize:"14px",letterSpacing:"0.2px",margin:"10px 0"},k={margin:"auto",padding:30,borderRadius:10,background:"rgba(0,0,0,0.03)"},E={textAlign:"center"},v=function(){return n.createElement("div",{style:b,className:"sb-nodocs sb-wrapper"},n.createElement("div",{style:k},n.createElement("h1",{style:E},"No Docs"),n.createElement("p",null,"Sorry, but there are no docs for the selected story. To add them, set the story's\xA0",n.createElement("code",null,"docs")," parameter. If you think this is an error:"),n.createElement("ul",null,n.createElement("li",null,"Please check the story definition."),n.createElement("li",null,"Please check the Storybook config."),n.createElement("li",null,"Try reloading the page.")),n.createElement("p",null,"If the problem persists, check the browser console, or the terminal you've run Storybook from.")))};v.displayName="NoDocs";function y(t,a,s,i,l,c,r){try{var u=t[c](r),o=u.value}catch(m){s(m);return}u.done?a(o):Promise.resolve(o).then(i,l)}function w(t){return function(){var a=this,s=arguments;return new Promise(function(i,l){var c=t.apply(a,s);function r(o){y(c,i,l,r,u,"next",o)}function u(o){y(c,i,l,r,u,"throw",o)}r(void 0)})}}function D(t,a,s,i){return j(t,a,s).then(i)}function j(t,a,s){return p.apply(this,arguments)}function p(){return p=w(regeneratorRuntime.mark(function t(a,s,i){var l,c,r,u,o,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.parameters.docs,!((r!=null&&r.getPage||r!=null&&r.page)&&!(r!=null&&r.getContainer||r!=null&&r.container))){e.next=3;break}throw new Error("No `docs.container` set, did you run `addon-docs/preset`?");case 3:if(e.t1=r.container,e.t1){e.next=8;break}return e.next=7,(l=r.getContainer)===null||l===void 0?void 0:l.call(r);case 7:e.t1=e.sent;case 8:if(e.t0=e.t1,e.t0){e.next=11;break}e.t0=function(f){var N=f.children;return n.createElement(n.Fragment,null,N)};case 11:if(u=e.t0,e.t3=r.page,e.t3){e.next=17;break}return e.next=16,(c=r.getPage)===null||c===void 0?void 0:c.call(r);case 16:e.t3=e.sent;case 17:if(e.t2=e.t3,e.t2){e.next=20;break}e.t2=v;case 20:return o=e.t2,m=n.createElement(u,{key:a.componentId,context:s},n.createElement(o,null)),e.next=24,new Promise(function(f){h.render(m,i,f)});case 24:case"end":return e.stop()}},t)})),p.apply(this,arguments)}function P(t){h.unmountComponentAtNode(t)}}}]);
