Anvil/assets/iframe-e8bfe329.js
André Jaenisch d68288c44d
Updates
2024-02-12 12:40:14 +01:00

1 line
5.4 KiB
JavaScript

import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const t of r)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const t={};return r.integrity&&(t.integrity=r.integrity),r.referrerPolicy&&(t.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?t.credentials="include":r.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(r){if(r.ep)return;r.ep=!0;const t=n(r);fetch(r.href,t)}})();const E="modulepreload",d=function(i,_){return new URL(i,_).href},c={},e=function(_,n,a){if(!n||n.length===0)return _();const r=document.getElementsByTagName("link");return Promise.all(n.map(t=>{if(t=d(t,a),t in c)return;c[t]=!0;const o=t.endsWith(".css"),O=o?'[rel="stylesheet"]':"";if(!!a)for(let m=r.length-1;m>=0;m--){const l=r[m];if(l.href===t&&(!o||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${O}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":E,o||(s.as="script",s.crossOrigin=""),s.href=t,document.head.appendChild(s),o)return new Promise((m,l)=>{s.addEventListener("load",m),s.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${t}`)))})})).then(()=>_()).catch(t=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=t,window.dispatchEvent(o),!o.defaultPrevented)throw t})},{createBrowserChannel:p}=__STORYBOOK_MODULE_CHANNELS__,{addons:R}=__STORYBOOK_MODULE_PREVIEW_API__,u=p({page:"preview"});R.setChannel(u);window.__STORYBOOK_ADDONS_CHANNEL__=u;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=u);const f={"./stories/Button.stories.ts":async()=>e(()=>import("./Button.stories-87782363.js"),["./Button.stories-87782363.js","./Button-d8693ca6.js","./index-788dbe18.js","./lifecycle-e76756ca.js","./Button-bc1a867b.css"],import.meta.url),"./stories/Configure.mdx":async()=>e(()=>import("./Configure-0d2910d7.js"),["./Configure-0d2910d7.js","./index-0311e79d.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-1ae9a135.js"],import.meta.url),"./stories/Header.stories.ts":async()=>e(()=>import("./Header.stories-e7bdaeec.js"),["./Header.stories-e7bdaeec.js","./Header-d7dc5c21.js","./index-788dbe18.js","./lifecycle-e76756ca.js","./Button-d8693ca6.js","./Button-bc1a867b.css","./Header-a6911580.css"],import.meta.url),"./stories/Page.stories.ts":async()=>e(()=>import("./Page.stories-c827691e.js"),["./Page.stories-c827691e.js","./index-788dbe18.js","./lifecycle-e76756ca.js","./Header-d7dc5c21.js","./Button-d8693ca6.js","./Button-bc1a867b.css","./Header-a6911580.css","./Page.stories-ece1482a.css"],import.meta.url),"./stories/atoms/Avatar.stories.ts":async()=>e(()=>import("./Avatar.stories-a9472fbf.js"),["./Avatar.stories-a9472fbf.js","./index-788dbe18.js","./lifecycle-e76756ca.js","./spread-8a54911c.js","./Avatar.stories-5dbe98d7.css"],import.meta.url),"./stories/atoms/BlockOrReport.stories.ts":async()=>e(()=>import("./BlockOrReport.stories-09bf45d5.js"),["./BlockOrReport.stories-09bf45d5.js","./index-788dbe18.js","./lifecycle-e76756ca.js"],import.meta.url),"./stories/atoms/Created.stories.ts":async()=>e(()=>import("./Created.stories-db5ee7ea.js"),["./Created.stories-db5ee7ea.js","./index-788dbe18.js","./lifecycle-e76756ca.js"],import.meta.url)};async function P(i){return f[i]()}const{composeConfigs:T,PreviewWeb:w,ClientApi:L}=__STORYBOOK_MODULE_PREVIEW_API__,I=async()=>{const i=await Promise.all([e(()=>import("./entry-preview-6d1440bd.js"),["./entry-preview-6d1440bd.js","./index-788dbe18.js","./lifecycle-e76756ca.js","./spread-8a54911c.js","./index-356e4a49.js"],import.meta.url),e(()=>import("./entry-preview-docs-9f458c92.js"),["./entry-preview-docs-9f458c92.js","./index-a04a29e8.js","./_commonjsHelpers-725317a4.js"],import.meta.url),e(()=>import("./preview-8d13fe12.js"),["./preview-8d13fe12.js","./preview-errors-dde4324f.js","./index-356e4a49.js","./lifecycle-e76756ca.js"],import.meta.url),e(()=>import("./preview-73104b77.js"),["./preview-73104b77.js","./index-11d98b33.js"],import.meta.url),e(()=>import("./preview-2fab6c53.js"),[],import.meta.url),e(()=>import("./preview-77a968f3.js"),["./preview-77a968f3.js","./preview-errors-dde4324f.js","./index-356e4a49.js"],import.meta.url),e(()=>import("./preview-30b54f76.js"),["./preview-30b54f76.js","./index-356e4a49.js"],import.meta.url),e(()=>import("./preview-c56bf6ac.js"),[],import.meta.url),e(()=>import("./preview-da31036b.js"),["./preview-da31036b.js","./index-356e4a49.js"],import.meta.url),e(()=>import("./preview-0ef86afd.js"),[],import.meta.url),e(()=>import("./preview-8f310eab.js"),["./preview-8f310eab.js","./_commonjsHelpers-725317a4.js"],import.meta.url),e(()=>import("./preview-d0f02a0f.js"),[],import.meta.url),e(()=>import("./preview-b7b88f91.js"),["./preview-b7b88f91.js","./preview-61c5e4d9.css"],import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new w;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new L({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:P,getProjectAnnotations:I});export{e as _};