Anvil/assets/iframe-e4cc0efb.js
André Jaenisch dec727eba8
Updates
2024-02-15 20:47:41 +01:00

1 line
6.2 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 O="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"),E=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}"]${E}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":O,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 P={"./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/ColorPalette.mdx":async()=>e(()=>import("./ColorPalette-bf8132e1.js"),["./ColorPalette-bf8132e1.js","./jsx-runtime-129ea63a.js","./index-12ea4ebb.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-5c52bd9d.js"],import.meta.url),"./stories/Configure.mdx":async()=>e(()=>import("./Configure-0b65fabd.js"),["./Configure-0b65fabd.js","./jsx-runtime-129ea63a.js","./index-12ea4ebb.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-5c52bd9d.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/Typography.mdx":async()=>e(()=>import("./Typography-7e3abb23.js"),["./Typography-7e3abb23.js","./jsx-runtime-129ea63a.js","./index-12ea4ebb.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-5c52bd9d.js"],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),"./stories/atoms/DisplayName.stories.ts":async()=>e(()=>import("./DisplayName.stories-2e10ecaf.js"),["./DisplayName.stories-2e10ecaf.js","./index-788dbe18.js","./lifecycle-e76756ca.js"],import.meta.url)};async function f(i){return P[i]()}const{composeConfigs:T,PreviewWeb:L,ClientApi:w}=__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-f89c10ae.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-b3d3147f.js"),[],import.meta.url),e(()=>import("./preview-351089a5.js"),["./preview-351089a5.js","./preview-701a3416.css"],import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new w({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:f,getProjectAnnotations:I});export{e as _};