"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[3808],{21038:(e,a,t)=>{t.d(a,{R:()=>c,I:()=>p});var i=t(52490),l=t(52428),s=t(21823);let n=t.p+"assets/onboarding.435c9002.zip";var o=t(21167),r=t(70154);async function c(e,a,t){let i=await e.create(a,async e=>{e.meta.initialize(),e.meta.setName(t);let a=await (await fetch(n)).blob();await o.bMW.importDocs(e,a)}),{workspace:l,dispose:s}=e.open({metadata:i});await l.engine.waitForRootDocReady();let c=l.scope.get(r.F).list.docs$.value.find(e=>e.title$.value.startsWith("Write, Draw, Plan all at Once."));return c&&c.setMode("page"),s(),{meta:i,defaultDocId:c?.id}}t(56964);let f=new i.k("createFirstAppData");async function p(e){if(null===localStorage.getItem("is-first-open")){localStorage.setItem("is-first-open","false");{let{meta:a,defaultDocId:t}=await c(e,s.j.LOCAL,l.I);return f.info("create first workspace",t),{meta:a,defaultPageId:t}}}}}}]); //# sourceMappingURL=chunk.3808.5e6d9b36.js.map