Anvil/assets/iframe-e37939d1.js

2 lines
11 KiB
JavaScript
Raw Normal View History

2024-03-14 18:43:30 +01:00
import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))m(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&m(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function m(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();const p="modulepreload",O=function(_,i){return new URL(_,i).href},c={},t=function(i,n,m){if(!n||n.length===0)return i();const e=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=O(r,m),r in c)return;c[r]=!0;const o=r.endsWith(".css"),E=o?'[rel="stylesheet"]':"";if(!!m)for(let a=e.length-1;a>=0;a--){const l=e[a];if(l.href===r&&(!o||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${E}`))return;const s=document.createElement("link");if(s.rel=o?"stylesheet":p,o||(s.as="script",s.crossOrigin=""),s.href=r,document.head.appendChild(s),o)return new Promise((a,l)=>{s.addEventListener("load",a),s.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>i()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:d}=__STORYBOOK_MODULE_CHANNELS__,{addons:R}=__STORYBOOK_MODULE_PREVIEW_API__,u=d({page:"preview"});R.setChannel(u);window.__STORYBOOK_ADDONS_CHANNEL__=u;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=u);const P={"./stories/ColorPalette.mdx":async()=>t(()=>import("./ColorPalette-14a601fa.js"),["./ColorPalette-14a601fa.js","./jsx-runtime-ea3d6ccb.js","./index-6f701dea.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-5fd49470.js"],import.meta.url),"./stories/Typography.mdx":async()=>t(()=>import("./Typography-522bbf9b.js"),["./Typography-522bbf9b.js","./jsx-runtime-ea3d6ccb.js","./index-6f701dea.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js","./index-5fd49470.js"],import.meta.url),"./stories/atoms/Avatar.stories.ts":async()=>t(()=>import("./Avatar.stories-224fc144.js"),["./Avatar.stories-224fc144.js","./Avatar-dbcb87cd.js","./utils-09ff0c0e.js","./index-b180c43f.js","./lifecycle-16e1fb41.js","./index-9ff358fd.js","./spread-8a54911c.js","./each-57bb632b.js","./Avatar-5dbe98d7.css"],import.meta.url),"./stories/atoms/BlockOrReport.stories.ts":async()=>t(()=>import("./BlockOrReport.stories-16ad9d58.js"),["./BlockOrReport.stories-16ad9d58.js","./BlockOrReport-64932439.js","./utils-09ff0c0e.js","./lifecycle-16e1fb41.js","./index-b180c43f.js","./runtime-ea3b2d3b.js","./index-9ff358fd.js","./_commonjsHelpers-725317a4.js"],import.meta.url),"./stories/atoms/Created.stories.ts":async()=>t(()=>import("./Created.stories-4a7ac25a.js"),["./Created.stories-4a7ac25a.js","./Created-2245d9b8.js","./utils-09ff0c0e.js","./lifecycle-16e1fb41.js","./index-b180c43f.js"],import.meta.url),"./stories/atoms/DisplayName.stories.ts":async()=>t(()=>import("./DisplayName.stories-4a8b9adf.js"),["./DisplayName.stories-4a8b9adf.js","./DisplayName-dd14e727.js","./utils-09ff0c0e.js","./lifecycle-16e1fb41.js","./index-b180c43f.js","./runtime-ea3b2d3b.js","./index-9ff358fd.js","./_commonjsHelpers-725317a4.js"],import.meta.url),"./stories/icons/AlertFill16.stories.ts":async()=>t(()=>import("./AlertFill16.stories-35aa9c25.js"),["./AlertFill16.stories-35aa9c25.js","./ZoomOut24-a2398075.js","./utils-09ff0c0e.js","./lifecycle-16e1fb41.js","./index-b180c43f.js","./spread-8a54911c.js"],import.meta.url),"./stories/icons/Info16.stories.ts":async()=>t(()=>import("./Info16.stories-29a82502.js"),["./Info16.stories-29a825