Anvil/assets/iframe-e4cc0efb.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-02-15 20:47:41 +01:00
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.sto