@kedataindo/docflow-vue 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/components/BubbleMenu.vue.d.ts +14 -0
  2. package/dist/components/BubbleMenu.vue.d.ts.map +1 -0
  3. package/dist/components/DocsEditor.vue.d.ts +73 -0
  4. package/dist/components/DocsEditor.vue.d.ts.map +1 -0
  5. package/dist/components/DocumentTabsSidebar.vue.d.ts +36 -0
  6. package/dist/components/DocumentTabsSidebar.vue.d.ts.map +1 -0
  7. package/dist/components/EditorToolbar.vue.d.ts +24 -0
  8. package/dist/components/EditorToolbar.vue.d.ts.map +1 -0
  9. package/dist/components/FontSizeSelect.vue.d.ts +7 -0
  10. package/dist/components/FontSizeSelect.vue.d.ts.map +1 -0
  11. package/dist/components/HeaderBar.vue.d.ts +57 -0
  12. package/dist/components/HeaderBar.vue.d.ts.map +1 -0
  13. package/dist/components/PageView.vue.d.ts +18 -0
  14. package/dist/components/PageView.vue.d.ts.map +1 -0
  15. package/dist/components/QuickActionChips.vue.d.ts +14 -0
  16. package/dist/components/QuickActionChips.vue.d.ts.map +1 -0
  17. package/dist/components/RulerBar.vue.d.ts +7 -0
  18. package/dist/components/RulerBar.vue.d.ts.map +1 -0
  19. package/dist/components/SlashMenu.vue.d.ts +11 -0
  20. package/dist/components/SlashMenu.vue.d.ts.map +1 -0
  21. package/dist/components/StatusBar.vue.d.ts +30 -0
  22. package/dist/components/StatusBar.vue.d.ts.map +1 -0
  23. package/dist/components/ThemeToggle.vue.d.ts +3 -0
  24. package/dist/components/ThemeToggle.vue.d.ts.map +1 -0
  25. package/dist/components/VerticalRuler.vue.d.ts +7 -0
  26. package/dist/components/VerticalRuler.vue.d.ts.map +1 -0
  27. package/dist/components/sidebars/AISidebar.vue.d.ts +10 -0
  28. package/dist/components/sidebars/AISidebar.vue.d.ts.map +1 -0
  29. package/dist/components/sidebars/CommentsSidebar.vue.d.ts +17 -0
  30. package/dist/components/sidebars/CommentsSidebar.vue.d.ts.map +1 -0
  31. package/dist/components/sidebars/HistorySidebar.vue.d.ts +16 -0
  32. package/dist/components/sidebars/HistorySidebar.vue.d.ts.map +1 -0
  33. package/dist/components/sidebars/TOCSidebar.vue.d.ts +11 -0
  34. package/dist/components/sidebars/TOCSidebar.vue.d.ts.map +1 -0
  35. package/dist/composables/useEditor.d.ts +17 -0
  36. package/dist/composables/useEditor.d.ts.map +1 -0
  37. package/dist/composables/useLocale.d.ts +14 -0
  38. package/dist/composables/useLocale.d.ts.map +1 -0
  39. package/dist/composables/useTheme.d.ts +5 -0
  40. package/dist/composables/useTheme.d.ts.map +1 -0
  41. package/dist/index.cjs +374 -0
  42. package/dist/index.d.ts +21 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +4774 -0
  45. package/dist/locales/en.d.ts +335 -0
  46. package/dist/locales/en.d.ts.map +1 -0
  47. package/dist/locales/id.d.ts +335 -0
  48. package/dist/locales/id.d.ts.map +1 -0
  49. package/dist/locales/index.d.ts +18 -0
  50. package/dist/locales/index.d.ts.map +1 -0
  51. package/dist/style.css +1 -0
  52. package/dist/types.d.ts +40 -0
  53. package/dist/types.d.ts.map +1 -0
  54. package/package.json +48 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,374 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Lt=require("@kedata-indonesia/docflow-core"),e=require("vue"),De=require("@kedata-indonesia/docflow-layout-engine");function st(o){const i=e.ref(null),a=e.shallowRef(null),t=e.ref(!1),r=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.editor)??null}),m=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.pluginActions)??{}}),l=()=>{if(!i.value||a.value)return;const s=e.unref(o.collaboration),v=e.unref(o.content),C=Lt.createEditor({target:i.value,content:v,plugins:o.plugins,editable:o.editable??!0,collaboration:s,onUpdate:o.onUpdate,getPageMap:o.getPageMap,paginationOptions:o.paginationOptions});a.value=C,e.nextTick(()=>{t.value=!0})},g=()=>{var s;(s=a.value)==null||s.destroy(),a.value=null,t.value=!1};return e.onMounted(()=>{l()}),e.onUnmounted(()=>{g()}),e.watch(()=>o.editable,s=>{r.value&&r.value.setEditable(s??!0)}),e.watch(()=>{const s=e.unref(o.collaboration);return s?{room:s.room,provider:s.provider}:null},async(s,v)=>{JSON.stringify(s)!==JSON.stringify(v)&&(g(),await e.nextTick(),l())},{deep:!0}),{editorRef:i,docsEditor:a,editor:r,pluginActions:m,isReady:t}}const Je="docs-editor-theme",Ie=e.ref(!1);function Oe(){const o=a=>{if(Ie.value=a,typeof document<"u"){const t=document.documentElement;a?t.classList.add("dark"):t.classList.remove("dark")}typeof localStorage<"u"&&localStorage.setItem(Je,a?"dark":"light")},i=()=>o(!Ie.value);return e.onMounted(()=>{let a=!1;if(typeof localStorage<"u"){const t=localStorage.getItem(Je);t?a=t==="dark":typeof window<"u"&&(a=window.matchMedia("(prefers-color-scheme: dark)").matches)}o(a)}),{isDark:Ie,toggle:i}}const it={common:{save:"Save",cancel:"Cancel",create:"Create",delete:"Delete",rename:"Rename",duplicate:"Duplicate",move:"Move",moveToFolder:"Move to folder",moveDocument:"Move Document",noFolder:"(No Folder)",search:"Search",loading:"Loading...",error:"Error",dismiss:"Dismiss",emptyDocument:"(Empty Document)",confirmDelete:"Are you sure you want to delete this document?"},header:{file:"File",new:"New",newDocument:"New document",open:"Open",makeACopy:"Make a copy",share:"Share",email:"Email",emailDraft:"Email draft",download:"Download",rename:"Rename",move:"Move",moveToFolder:"Move to folder",moveToTrash:"Move to trash",versionHistory:"Version history",language:"Language",pageSetup:"Page setup",print:"Print",edit:"Edit",view:"View",insert:"Insert",format:"Format",tools:"Tools",extensions:"Extensions",help:"Help",backToDocuments:"Back to Documents",clickToRename:"Click to rename",starDocument:"Star document",unstarDocument:"Unstar document",sandbox:"Sandbox (toggle simulated collaborators)",theme:"Theme",account:"Account",markdown:"Markdown (.md)",html:"Web page (.html)",htmlZip:"Web page (.html, zipped)",text:"Plain text (.txt)",docx:"Microsoft Word (.docx)",pdf:"PDF Document (.pdf)",odt:"OpenDocument Format (.odt)",rtf:"Rich Text Format (.rtf)",undo:"Undo",redo:"Redo",selectAll:"Select all",showSidebar:"Show sidebar",focusMode:"Full focus mode",showRuler:"Show ruler",meetingNotes:"Meeting notes",image:"Image",table:"Table",codeBlock:"Code block",header:"Header",footer:"Footer",footnote:"Footnote",bold:"Bold text",italic:"Italic text",underline:"Underline",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",spellCheck:"Spell check",wordCount:"Word count",preferences:"Preferences",manageExtensions:"Manage extensions…",keyboardShortcuts:"Keyboard shortcuts",reportIssue:"Report issue",about:"About DocsEditor"},toolbar:{undo:"Undo",redo:"Redo",print:"Print",spelling:"Spelling",zoom:"100%",paragraphStyle:"Paragraph style",normalText:"Normal text",fontFamily:"Font family",decreaseFontSize:"Decrease font size",increaseFontSize:"Increase font size",lists:"Lists",alignment:"Alignment",insert:"Insert",comments:"Comments",history:"History",ai:"AI",tableOfContents:"Table of contents"},statusBar:{liveSyncActive:"Live Sync Active",connecting:"Connecting…",saving:"Saving changes…",offline:"Offline",lastSavedAt:"Last saved at",never:"Never",pageSize:"Page size",page:"Page",of:"of",words:"words",characters:"characters"},editor:{share:{title:"Share document",close:"Close",shareableLink:"Shareable link",copy:"Copy",copied:"Link copied to clipboard",couldNotCopy:"Could not copy link",collaborators:"Collaborators",addCollaborator:"Add collaborator by email",placeholder:"colleague@example.com",add:"Add",userNotFound:"User not found",failedToAdd:"Failed to add collaborator"},print:"Print",logOut:"Log out",rename:{title:"Rename document",label:"Document title",save:"Save",cancel:"Cancel"},pageSetup:{title:"Page setup",paperSize:"Paper size",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",margins:"Margins",top:"Top",bottom:"Bottom",left:"Left",right:"Right",apply:"Apply",cancel:"Cancel"},headerFooter:{title:"Header & Footer Customization",header:"Header",footer:"Footer",left:"Left",right:"Right",clear:"Clear",headerLeftPlaceholder:"e.g. Document Title",headerRightPlaceholder:"e.g. Page {page}",footerLeftPlaceholder:"e.g. Confidential",footerRightPlaceholder:"e.g. Page {page} of {total}",variableInfo:"Variable Info: You can use {page} for the current page number, and {total} for the total page count.",cancel:"Cancel",save:"Save"},showOutline:"Show document outline",loadingDocument:"Loading document"},slashMenu:{title:"Suggested",basicBlocks:"Basic Blocks",noMatch:"No matching commands"},quickActions:{meetingNotes:"Meeting notes",emailDraft:"Email draft",more:"More"},documentTabs:{documentTabs:"Document Tabs",addTab:"Add tab",rename:"Rename",delete:"Delete",outline:"Outline",untitledHeading:"Untitled Heading {level}",placeholder:"Headings you add to the document will appear here."},theme:{lightMode:"Switch to light mode",darkMode:"Switch to dark mode"},sidebars:{ai:{title:"AI Writing Helper",description:"A server-side AI co-writer to draft, summarize, or edit your copy.",quickMacros:"Quick AI Macros",summarize:"Summarize",fixGrammar:"Fix Grammar",continue:"Continue",toSpanish:"To Spanish",generations:"AI Generations",aiDrafting:"AI drafting…",copy:"Copy",copied:"Copied",insert:"Insert",inserted:"Inserted",noDraft:"No draft generated yet. Submit a prompt or macro command above to start.",promptPlaceholder:"Ask AI to draft outline, write content, rewrite tone…",promptAI:"Prompt AI"},comments:{title:"Discussion Panel",placeholder:"Select text to add a comment…",addComment:"Add comment",resolve:"Resolve",reply:"Reply…",replyInThread:"Reply in thread",active:"Active",resolved:"Resolved",creatingAnchored:"Creating anchored comment:",quote:"Quote:",resolvedBy:"Resolved by {user}",noComments:"No {mode} comments yet.",commentOnSelection:"Comment on selection…",generalComment:"Add general comment to document…",anchoredComment:"Anchored comment",general:"General comment",post:"Post"},history:{title:"History",empty:"No history yet.",version:"Version",restore:"Restore",closePreview:"Close Preview",restoreThis:"Restore This",viewingPreview:"Viewing Revision Preview",readOnlyPreview:"You are previewing version #{index}. Your editor is temporarily read-only.",modifiedBy:"Modified by:",saveNamedSnapshot:"Save Named Snapshot",snapshotPlaceholder:"e.g. Approved Final Draft…",noSnapshots:"No snapshots saved yet.",save:"Save",cancel:"Cancel",preview:"Preview"},toc:{title:"Contents",empty:"No headings yet.",untitledHeading:"Untitled Heading {level}",newSection:"New {tag} Section",startWriting:"Start writing here…",closeOutline:"Close outline",searchHeadings:"Search headings…",noHeadings:"No Headings Yet",noHeadingsDescription:"Use headers (H1, H2, or H3) to structure your document. An interactive outline will generate here automatically.",quickInsert:"Quick Insert",headingLevel:"Heading {level}",noMatchingHeaders:"No matching headers found",tryDifferentTerm:"Try searching with a different term.",outlineLayout:"Outline Layout",outlineSync:"Outline syncs automatically. Click any header to instantly jump, focus, and scroll the editor to that section."}},dashboard:{allDocuments:"All Documents",starred:"Starred",folders:"Folders",createFolder:"Create New Folder",folderNamePlaceholder:"Folder name…",noFolders:"No folders created yet.",startNewDocument:"Start a New Document",blankDocument:"Blank Document",blankDescription:"Fresh slate",meetingNotes:"Meeting Notes",meetingNotesDescription:"Attendees & Action Items",projectProposal:"Project Proposal",projectProposalDescription:"Objectives & Deliverables",officialLetter:"Official Letter",officialLetterDescription:"Pre-formatted header",searchPlaceholder:"Search titles or full-text contents…",modified:"Modified",alphabetical:"Alphabetical",created:"Created",gridView:"Grid View",listView:"List View",activeFilters:"Active Filters:",folder:"Folder",starredOnly:"Starred Only",search:"Search",noDocuments:"No documents found",noDocumentsDescription:"No files match your current filters. Select a template or create a blank file to start drafting!",createBlankDocument:"Create Blank Document",loadingDocuments:"Loading documents...",documentTitle:"Document Title",lastModified:"Last Modified",actions:"Actions"},auth:{signInTitle:"Sign in to create and edit documents",signInWithGoogle:"Sign in with Google",signInWithEmail:"Sign in with Email",signInWithGitHub:"Sign in with GitHub",signInWith:"Sign in with {provider}",or:"or",email:"Email",password:"Password",name:"Name",signIn:"Sign In",signUp:"Sign Up",signOut:"Sign out",noAccount:"Don't have an account? Sign up",hasAccount:"Already have an account? Sign in",invalidCredentials:"Invalid email or password",accountCreated:"Account created! You are now signed in.",loadDocumentsError:"Failed to load documents. Is the server running?",retry:"Try again",rateLimited:"Server is rate limiting requests.",retryIn:"Retrying in {seconds}s…",networkError:"Could not reach the server. Check your connection.",noProviders:"No authentication providers configured. Check your server environment variables."},language:{label:"Language",en:"English",id:"Indonesian"}},dt={common:{save:"Simpan",cancel:"Batal",create:"Buat",delete:"Hapus",rename:"Ubah nama",duplicate:"Duplikat",move:"Pindah",moveToFolder:"Pindah ke folder",moveDocument:"Pindahkan Dokumen",noFolder:"(Tanpa Folder)",search:"Cari",loading:"Memuat…",error:"Kesalahan",dismiss:"Tutup",emptyDocument:"(Dokumen Kosong)",confirmDelete:"Apakah Anda yakin ingin menghapus dokumen ini?"},header:{file:"Berkas",new:"Baru",newDocument:"Dokumen baru",open:"Buka",makeACopy:"Buat salinan",share:"Bagikan",email:"Email",emailDraft:"Draf Email",download:"Unduh",rename:"Ubah nama",move:"Pindah",moveToFolder:"Pindah ke folder",moveToTrash:"Pindah ke sampah",versionHistory:"Riwayat versi",language:"Bahasa",pageSetup:"Penataan halaman",print:"Cetak",edit:"Sunting",view:"Tampilan",insert:"Sisipkan",format:"Format",tools:"Alat",extensions:"Ekstensi",help:"Bantuan",backToDocuments:"Kembali ke Dokumen",clickToRename:"Klik untuk mengganti nama",starDocument:"Bintangi dokumen",unstarDocument:"Hapus bintang",sandbox:"Sandbox (alihkan kolaborator simulasi)",theme:"Tema",account:"Akun",markdown:"Markdown (.md)",html:"Halaman web (.html)",htmlZip:"Halaman web (.html, ter-zip)",text:"Teks biasa (.txt)",docx:"Microsoft Word (.docx)",pdf:"Dokumen PDF (.pdf)",odt:"OpenDocument Format (.odt)",rtf:"Rich Text Format (.rtf)",undo:"Urungkan",redo:"Ulangi",selectAll:"Pilih semua",showSidebar:"Tampilkan sidebar",focusMode:"Mode Fokus Penuh",showRuler:"Tampilkan penggaris",meetingNotes:"Catatan Rapat",image:"Gambar",table:"Tabel",codeBlock:"Kode Blok",header:"Header",footer:"Footer",footnote:"Catatan Kaki",bold:"Teks Tebal",italic:"Teks Miring",underline:"Garis Bawah",heading1:"Judul 1",heading2:"Judul 2",heading3:"Judul 3",spellCheck:"Periksa ejaan",wordCount:"Hitungan kata",preferences:"Preferensi",manageExtensions:"Kelola ekstensi…",keyboardShortcuts:"Pintasan keyboard",reportIssue:"Laporkan masalah",about:"Tentang DocsEditor"},toolbar:{undo:"Urungkan",redo:"Ulangi",print:"Cetak",spelling:"Ejaan",zoom:"100%",paragraphStyle:"Gaya paragraf",normalText:"Teks normal",fontFamily:"Keluarga font",decreaseFontSize:"Kecilkan font",increaseFontSize:"Perbesar font",lists:"Daftar",alignment:"Perataan",insert:"Sisipkan",comments:"Komentar",history:"Riwayat",ai:"AI",tableOfContents:"Daftar isi"},statusBar:{liveSyncActive:"Sinkron Langsung Aktif",connecting:"Menghubungkan…",saving:"Menyimpan perubahan…",offline:"Luring",lastSavedAt:"Terakhir disimpan",never:"Tidak pernah",pageSize:"Ukuran halaman",page:"Halaman",of:"dari",words:"kata",characters:"karakter"},editor:{share:{title:"Bagikan dokumen",close:"Tutup",shareableLink:"Tautan dapat dibagikan",copy:"Salin",copied:"Tautan disalin ke papan klip",couldNotCopy:"Tidak dapat menyalin tautan",collaborators:"Kolaborator",addCollaborator:"Tambahkan kolaborator lewat email",placeholder:"rekan@contoh.com",add:"Tambah",userNotFound:"Pengguna tidak ditemukan",failedToAdd:"Gagal menambahkan kolaborator"},print:"Cetak",logOut:"Keluar",rename:{title:"Ubah nama dokumen",label:"Judul dokumen",save:"Simpan",cancel:"Batal"},pageSetup:{title:"Penataan halaman",paperSize:"Ukuran kertas",orientation:"Orientasi",portrait:"Potret",landscape:"Lanskap",margins:"Margin",top:"Atas",bottom:"Bawah",left:"Kiri",right:"Kanan",apply:"Terapkan",cancel:"Batal"},headerFooter:{title:"Penyesuaian Header & Footer",header:"Header",footer:"Footer",left:"Kiri",right:"Kanan",clear:"Kosongkan",headerLeftPlaceholder:"mis. Judul Dokumen",headerRightPlaceholder:"mis. Halaman {page}",footerLeftPlaceholder:"mis. Rahasia",footerRightPlaceholder:"mis. Halaman {page} dari {total}",variableInfo:"Info Variabel: Anda dapat menggunakan {page} untuk nomor halaman aktif, dan {total} untuk jumlah halaman.",cancel:"Batal",save:"Simpan"},showOutline:"Tampilkan kerangka dokumen",loadingDocument:"Memuat dokumen"},slashMenu:{title:"Saran",basicBlocks:"Blok Dasar",noMatch:"Tidak ada perintah yang cocok"},quickActions:{meetingNotes:"Catatan Rapat",emailDraft:"Draf Email",more:"Lainnya"},documentTabs:{documentTabs:"Tab Dokumen",addTab:"Tambah tab",rename:"Ubah nama",delete:"Hapus",outline:"Kerangka",untitledHeading:"Judul Tanpa Nama {level}",placeholder:"Tajuk yang Anda tambahkan ke dokumen akan muncul di sini."},theme:{lightMode:"Beralih ke mode terang",darkMode:"Beralih ke mode gelap"},sidebars:{ai:{title:"AI Writing Helper",description:"Penulis AI sisi-server untuk menyusun, merangkum, atau menyunting tulisan Anda.",quickMacros:"Makro AI Cepat",summarize:"Rangkum",fixGrammar:"Perbaiki Tata Bahasa",continue:"Lanjutkan",toSpanish:"Ke Spanyol",generations:"Hasil AI",aiDrafting:"AI menyusun…",copy:"Salin",copied:"Tersalin",insert:"Sisipkan",inserted:"Tersisip",noDraft:"Belum ada draf. Kirim perintah atau makro di atas untuk mulai.",promptPlaceholder:"Minta AI membuat kerangka, menulis konten, menulis ulang nada…",promptAI:"Perintah AI"},comments:{title:"Panel Diskusi",placeholder:"Pilih teks untuk menambahkan komentar…",addComment:"Tambah komentar",resolve:"Selesai",reply:"Balas…",replyInThread:"Balas di thread",active:"Aktif",resolved:"Selesai",creatingAnchored:"Membuat komentar terpaut:",quote:"Kutipan:",resolvedBy:"Diselesaikan oleh {user}",noComments:"Belum ada komentar {mode}.",commentOnSelection:"Komentari pilihan…",generalComment:"Tambahkan komentar umum ke dokumen…",anchoredComment:"Komentar terpaut",general:"Komentar umum",post:"Kirim"},history:{title:"Riwayat",empty:"Belum ada riwayat.",version:"Versi",restore:"Pulihkan",closePreview:"Tutup Pratinjau",restoreThis:"Pulihkan Ini",viewingPreview:"Melihat Pratinjau Revisi",readOnlyPreview:"Anda sedang melihat pratinjau versi #{index}. Editor Anda untuk sementara hanya-baca.",modifiedBy:"Diubah oleh:",saveNamedSnapshot:"Simpan Snapshot Bernama",snapshotPlaceholder:"mis. Final Draft Disetujui…",noSnapshots:"Belum ada snapshot yang disimpan.",save:"Simpan",cancel:"Batal",preview:"Pratinjau"},toc:{title:"Daftar Isi",empty:"Belum ada judul.",untitledHeading:"Judul Tanpa Nama {level}",newSection:"Bagian {tag} Baru",startWriting:"Mulai menulis di sini…",closeOutline:"Tutup kerangka",searchHeadings:"Cari judul…",noHeadings:"Belum Ada Judul",noHeadingsDescription:"Gunakan header (H1, H2, atau H3) untuk menyusun dokumen. Kerangka interaktif akan dibuat otomatis di sini.",quickInsert:"Sisipkan Cepat",headingLevel:"Judul {level}",noMatchingHeaders:"Tidak ada header yang cocok",tryDifferentTerm:"Coba cari dengan istilah lain.",outlineLayout:"Tata Letak Kerangka",outlineSync:"Kerangka tersinkronisasi otomatis. Klik header apa pun untuk langsung melompat, fokus, dan menggulir editor ke bagian tersebut."}},dashboard:{allDocuments:"Semua Dokumen",starred:"Berbintang",folders:"Folder",createFolder:"Buat Folder Baru",folderNamePlaceholder:"Nama folder…",noFolders:"Belum ada folder.",startNewDocument:"Mulai Dokumen Baru",blankDocument:"Dokumen Kosong",blankDescription:"Kertas kosong",meetingNotes:"Catatan Rapat",meetingNotesDescription:"Peserta & Tindak Lanjut",projectProposal:"Proposal Proyek",projectProposalDescription:"Tujuan & Hasil",officialLetter:"Surat Resmi",officialLetterDescription:"Header yang sudah diformat",searchPlaceholder:"Cari judul atau isi dokumen…",modified:"Diubah",alphabetical:"Abjad",created:"Dibuat",gridView:"Tampilan Grid",listView:"Tampilan Daftar",activeFilters:"Filter Aktif:",folder:"Folder",starredOnly:"Hanya Berbintang",search:"Cari",noDocuments:"Tidak ada dokumen",noDocumentsDescription:"Tidak ada file yang cocok dengan filter. Pilih template atau buat dokumen kosong untuk mulai menulis!",createBlankDocument:"Buat Dokumen Kosong",loadingDocuments:"Memuat dokumen...",documentTitle:"Judul Dokumen",lastModified:"Terakhir Diubah",actions:"Aksi"},auth:{signInTitle:"Masuk untuk membuat dan menyunting dokumen",signInWithGoogle:"Masuk dengan Google",signInWithEmail:"Masuk dengan Email",signInWithGitHub:"Masuk dengan GitHub",signInWith:"Masuk dengan {provider}",or:"atau",email:"Email",password:"Kata sandi",name:"Nama",signIn:"Masuk",signUp:"Daftar",signOut:"Keluar",noAccount:"Belum punya akun? Daftar",hasAccount:"Sudah punya akun? Masuk",invalidCredentials:"Email atau kata sandi salah",accountCreated:"Akun dibuat! Anda sekarang masuk.",loadDocumentsError:"Gagal memuat dokumen. Apakah server berjalan?",retry:"Coba lagi",rateLimited:"Server sedang membatasi permintaan.",retryIn:"Mencoba ulang dalam {seconds} detik…",networkError:"Tidak bisa menghubungi server. Periksa koneksi Anda.",noProviders:"Tidak ada penyedia autentikasi yang dikonfigurasi. Periksa variabel lingkungan server."},language:{label:"Bahasa",en:"English",id:"Indonesia"}},Te={en:it,id:dt},Ue="en",Pt={en:it.language.en,id:dt.language.id};function ct(o){return Te[o]??Te[Ue]}function Ae(o){return typeof o=="string"&&o in Te}const ut=Symbol("docflow-locale"),pt="docflow-locale";function It(o){if(o&&Ae(o))return o;try{const i=localStorage.getItem(pt);if(i&&Ae(i))return i}catch{}return Ue}function Ht(o,i){const a=i.split(".");let t=o;for(const r of a){if(t===null||typeof t!="object")return;t=t[r]}return t}function mt(o){const i=e.ref(It(o));return{locale:i,setLocale:r=>{if(Ae(r)){i.value=r;try{localStorage.setItem(pt,r)}catch{}}},t:r=>{const m=ct(i.value),l=Ht(m,r);return typeof l=="string"?l:r}}}function ee(){const o=e.inject(ut,null);return o||mt()}function ft(o){const i=mt(o);return e.provide(ut,i),i}function ht(o){return Pt[o]??o}function gt(){return["en","id"]}const Ft={class:"px-2 py-1.5 text-[10px] font-semibold uppercase text-slate-400"},jt=["onClick","onMouseenter"],Rt={class:"text-slate-500 dark:text-slate-400"},bt=e.defineComponent({__name:"SlashMenu",props:{editor:{},commands:{}},setup(o){const{t:i}=ee(),a=o,t=e.ref(!1),r=e.ref(""),m=e.ref(0),l=e.ref({top:0,left:0}),g=e.ref([]);function s(){if(!a.editor)return;const{view:b}=a.editor,{selection:d}=b.state,p=b.coordsAtPos(d.head),c=b.dom.getBoundingClientRect();l.value={top:p.bottom-c.top+4,left:p.left-c.left}}function v(b){var L,K,Y,Q;if(!a.editor)return;const{view:d}=a.editor,{selection:p}=d.state,c=p.head,y=d.state.doc.resolve(c),N=y.start(),_=y.parent.textContent.slice(0,y.parentOffset).lastIndexOf("/");if(_>=0){const Z=N+_,$=d.state.tr.delete(Z,c);d.dispatch($)}const D=a.editor;if(typeof((L=D.commands)==null?void 0:L[b.command])=="function")D.commands[b.command]();else if(D.chain)try{(Q=(Y=(K=D.chain().focus())[b.command])==null?void 0:Y.call(K))==null||Q.run()}catch{}t.value=!1,r.value=""}function C(){t.value=!1,r.value=""}function V(){if(!a.editor)return;const{view:b}=a.editor,{selection:d}=b.state,p=d.head,c=b.state.doc.resolve(p),y=c.parent.textContent.slice(0,c.parentOffset),N=y.lastIndexOf("/");if(N>=0){const B=y.slice(0,N),_=y.slice(N+1);if((B===""||B.endsWith(" ")||B===`
2
+ `)&&!_.includes(" ")){r.value=_,t.value=!0,m.value=0,s();return}}t.value=!1}e.watch(()=>a.editor,b=>{b&&(b.on("update",V),b.on("selectionUpdate",()=>{t.value&&s()}))}),e.watch([r,()=>a.commands],()=>{const b=r.value.toLowerCase();g.value=b?a.commands.filter(d=>d.name.toLowerCase().includes(b)):a.commands});function S(b){if(t.value){if(b.key==="ArrowDown"&&(b.preventDefault(),m.value=Math.min(m.value+1,g.value.length-1)),b.key==="ArrowUp"&&(b.preventDefault(),m.value=Math.max(m.value-1,0)),b.key==="Enter"){b.preventDefault();const d=g.value[m.value];d&&v(d)}b.key==="Escape"&&(b.preventDefault(),C())}}return e.onMounted(()=>{document.addEventListener("keydown",S)}),e.onUnmounted(()=>{document.removeEventListener("keydown",S)}),(b,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[t.value&&g.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"docs-slash-menu fixed z-[999] w-56 max-h-64 overflow-y-auto rounded-lg border border-slate-200 bg-white p-1 shadow-xl dark:border-slate-700 dark:bg-slate-800",style:e.normalizeStyle({top:l.value.top+"px",left:l.value.left+"px"})},[e.createElementVNode("div",Ft,e.toDisplayString(e.unref(i)("slashMenu.basicBlocks")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(p,c)=>(e.openBlock(),e.createElementBlock("button",{key:p.command,class:e.normalizeClass(["flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors",c===m.value?"bg-slate-100 dark:bg-slate-700":"hover:bg-slate-50 dark:hover:bg-slate-700/50"]),onClick:y=>v(p),onMouseenter:y=>m.value=c},[e.createElementVNode("span",Rt,e.toDisplayString(p.name),1)],42,jt))),128))],4)):e.createCommentVNode("",!0)]))}});/**
3
+ * @license lucide-vue-next v1.0.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */const Ot=o=>{for(const i in o)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
8
+ * @license lucide-vue-next v1.0.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */const Ze=o=>o==="";/**
13
+ * @license lucide-vue-next v1.0.0 - ISC
14
+ *
15
+ * This source code is licensed under the ISC license.
16
+ * See the LICENSE file in the root directory of this source tree.
17
+ */const Ut=(...o)=>o.filter((i,a,t)=>!!i&&i.trim()!==""&&t.indexOf(i)===a).join(" ").trim();/**
18
+ * @license lucide-vue-next v1.0.0 - ISC
19
+ *
20
+ * This source code is licensed under the ISC license.
21
+ * See the LICENSE file in the root directory of this source tree.
22
+ */const Ye=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
23
+ * @license lucide-vue-next v1.0.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */const qt=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,a,t)=>t?t.toUpperCase():a.toLowerCase());/**
28
+ * @license lucide-vue-next v1.0.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */const Kt=o=>{const i=qt(o);return i.charAt(0).toUpperCase()+i.slice(1)};/**
33
+ * @license lucide-vue-next v1.0.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */var Ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
38
+ * @license lucide-vue-next v1.0.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */const Wt=({name:o,iconNode:i,absoluteStrokeWidth:a,"absolute-stroke-width":t,strokeWidth:r,"stroke-width":m,size:l=Ve.width,color:g=Ve.stroke,...s},{slots:v})=>e.h("svg",{...Ve,...s,width:l,height:l,stroke:g,"stroke-width":Ze(a)||Ze(t)||a===!0||t===!0?Number(r||m||Ve["stroke-width"])*24/Number(l):r||m||Ve["stroke-width"],class:Ut("lucide",s.class,...o?[`lucide-${Ye(Kt(o))}-icon`,`lucide-${Ye(o)}`]:["lucide-icon"]),...!v.default&&!Ot(s)&&{"aria-hidden":"true"}},[...i.map(C=>e.h(...C)),...v.default?[v.default()]:[]]);/**
43
+ * @license lucide-vue-next v1.0.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const w=(o,i)=>(a,{slots:t,attrs:r})=>e.h(Wt,{...r,...a,iconNode:i,name:o},t);/**
48
+ * @license lucide-vue-next v1.0.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */const Gt=w("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
53
+ * @license lucide-vue-next v1.0.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const Jt=w("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
58
+ * @license lucide-vue-next v1.0.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const Zt=w("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
63
+ * @license lucide-vue-next v1.0.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const kt=w("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
68
+ * @license lucide-vue-next v1.0.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const Yt=w("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
73
+ * @license lucide-vue-next v1.0.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const Qe=w("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
78
+ * @license lucide-vue-next v1.0.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const pe=w("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
83
+ * @license lucide-vue-next v1.0.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Qt=w("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
88
+ * @license lucide-vue-next v1.0.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Xt=w("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
93
+ * @license lucide-vue-next v1.0.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const ea=w("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);/**
98
+ * @license lucide-vue-next v1.0.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const ta=w("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
103
+ * @license lucide-vue-next v1.0.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const vt=w("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
108
+ * @license lucide-vue-next v1.0.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const aa=w("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
113
+ * @license lucide-vue-next v1.0.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const oa=w("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
118
+ * @license lucide-vue-next v1.0.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const ke=w("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
123
+ * @license lucide-vue-next v1.0.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const na=w("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
128
+ * @license lucide-vue-next v1.0.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const la=w("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
133
+ * @license lucide-vue-next v1.0.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const ra=w("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/**
138
+ * @license lucide-vue-next v1.0.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const sa=w("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/**
143
+ * @license lucide-vue-next v1.0.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const ia=w("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/**
148
+ * @license lucide-vue-next v1.0.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const da=w("heading-4",[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]]);/**
153
+ * @license lucide-vue-next v1.0.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const ca=w("heading-5",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]]);/**
158
+ * @license lucide-vue-next v1.0.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const ua=w("heading-6",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["circle",{cx:"19",cy:"16",r:"2",key:"15mx69"}],["path",{d:"M20 10c-2 2-3 3.5-3 6",key:"f35dl0"}]]);/**
163
+ * @license lucide-vue-next v1.0.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const xt=w("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
168
+ * @license lucide-vue-next v1.0.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const pa=w("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
173
+ * @license lucide-vue-next v1.0.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const yt=w("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
178
+ * @license lucide-vue-next v1.0.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const wt=w("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
183
+ * @license lucide-vue-next v1.0.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const ma=w("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);/**
188
+ * @license lucide-vue-next v1.0.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const ze=w("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
193
+ * @license lucide-vue-next v1.0.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const fa=w("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);/**
198
+ * @license lucide-vue-next v1.0.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const ha=w("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/**
203
+ * @license lucide-vue-next v1.0.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const ga=w("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);/**
208
+ * @license lucide-vue-next v1.0.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const Et=w("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/**
213
+ * @license lucide-vue-next v1.0.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const ba=w("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
218
+ * @license lucide-vue-next v1.0.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const ka=w("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
223
+ * @license lucide-vue-next v1.0.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const va=w("navigation-2",[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]]);/**
228
+ * @license lucide-vue-next v1.0.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const Le=w("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
233
+ * @license lucide-vue-next v1.0.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const xa=w("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
238
+ * @license lucide-vue-next v1.0.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const ya=w("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
243
+ * @license lucide-vue-next v1.0.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const wa=w("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
248
+ * @license lucide-vue-next v1.0.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const Ea=w("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
253
+ * @license lucide-vue-next v1.0.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const Na=w("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);/**
258
+ * @license lucide-vue-next v1.0.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const Xe=w("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
263
+ * @license lucide-vue-next v1.0.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const Sa=w("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
268
+ * @license lucide-vue-next v1.0.0 - ISC
269
+ *
270
+ * This source code is licensed under the ISC license.
271
+ * See the LICENSE file in the root directory of this source tree.
272
+ */const et=w("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
273
+ * @license lucide-vue-next v1.0.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */const He=w("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
278
+ * @license lucide-vue-next v1.0.0 - ISC
279
+ *
280
+ * This source code is licensed under the ISC license.
281
+ * See the LICENSE file in the root directory of this source tree.
282
+ */const Va=w("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
283
+ * @license lucide-vue-next v1.0.0 - ISC
284
+ *
285
+ * This source code is licensed under the ISC license.
286
+ * See the LICENSE file in the root directory of this source tree.
287
+ */const Ca=w("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
288
+ * @license lucide-vue-next v1.0.0 - ISC
289
+ *
290
+ * This source code is licensed under the ISC license.
291
+ * See the LICENSE file in the root directory of this source tree.
292
+ */const Fe=w("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/**
293
+ * @license lucide-vue-next v1.0.0 - ISC
294
+ *
295
+ * This source code is licensed under the ISC license.
296
+ * See the LICENSE file in the root directory of this source tree.
297
+ */const Ba=w("spell-check",[["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m16 20 2 2 4-4",key:"13tcca"}]]);/**
298
+ * @license lucide-vue-next v1.0.0 - ISC
299
+ *
300
+ * This source code is licensed under the ISC license.
301
+ * See the LICENSE file in the root directory of this source tree.
302
+ */const _a=w("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
303
+ * @license lucide-vue-next v1.0.0 - ISC
304
+ *
305
+ * This source code is licensed under the ISC license.
306
+ * See the LICENSE file in the root directory of this source tree.
307
+ */const $a=w("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
308
+ * @license lucide-vue-next v1.0.0 - ISC
309
+ *
310
+ * This source code is licensed under the ISC license.
311
+ * See the LICENSE file in the root directory of this source tree.
312
+ */const Ma=w("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
313
+ * @license lucide-vue-next v1.0.0 - ISC
314
+ *
315
+ * This source code is licensed under the ISC license.
316
+ * See the LICENSE file in the root directory of this source tree.
317
+ */const Da=w("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
318
+ * @license lucide-vue-next v1.0.0 - ISC
319
+ *
320
+ * This source code is licensed under the ISC license.
321
+ * See the LICENSE file in the root directory of this source tree.
322
+ */const Ta=w("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
323
+ * @license lucide-vue-next v1.0.0 - ISC
324
+ *
325
+ * This source code is licensed under the ISC license.
326
+ * See the LICENSE file in the root directory of this source tree.
327
+ */const tt=w("text-align-center",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]]);/**
328
+ * @license lucide-vue-next v1.0.0 - ISC
329
+ *
330
+ * This source code is licensed under the ISC license.
331
+ * See the LICENSE file in the root directory of this source tree.
332
+ */const at=w("text-align-end",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]]);/**
333
+ * @license lucide-vue-next v1.0.0 - ISC
334
+ *
335
+ * This source code is licensed under the ISC license.
336
+ * See the LICENSE file in the root directory of this source tree.
337
+ */const ot=w("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]);/**
338
+ * @license lucide-vue-next v1.0.0 - ISC
339
+ *
340
+ * This source code is licensed under the ISC license.
341
+ * See the LICENSE file in the root directory of this source tree.
342
+ */const je=w("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);/**
343
+ * @license lucide-vue-next v1.0.0 - ISC
344
+ *
345
+ * This source code is licensed under the ISC license.
346
+ * See the LICENSE file in the root directory of this source tree.
347
+ */const Nt=w("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
348
+ * @license lucide-vue-next v1.0.0 - ISC
349
+ *
350
+ * This source code is licensed under the ISC license.
351
+ * See the LICENSE file in the root directory of this source tree.
352
+ */const Aa=w("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
353
+ * @license lucide-vue-next v1.0.0 - ISC
354
+ *
355
+ * This source code is licensed under the ISC license.
356
+ * See the LICENSE file in the root directory of this source tree.
357
+ */const za=w("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
358
+ * @license lucide-vue-next v1.0.0 - ISC
359
+ *
360
+ * This source code is licensed under the ISC license.
361
+ * See the LICENSE file in the root directory of this source tree.
362
+ */const nt=w("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/**
363
+ * @license lucide-vue-next v1.0.0 - ISC
364
+ *
365
+ * This source code is licensed under the ISC license.
366
+ * See the LICENSE file in the root directory of this source tree.
367
+ */const La=w("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
368
+ * @license lucide-vue-next v1.0.0 - ISC
369
+ *
370
+ * This source code is licensed under the ISC license.
371
+ * See the LICENSE file in the root directory of this source tree.
372
+ */const lt=w("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pa=["title"],Re=e.defineComponent({__name:"ThemeToggle",setup(o){const{isDark:i,toggle:a}=Oe(),{t}=ee();return(r,m)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"p-2 rounded-lg border border-slate-200 bg-slate-50 text-slate-500 transition-colors hover:border-slate-300 hover:text-slate-700 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-400 dark:hover:border-slate-600 dark:hover:text-slate-200",title:e.unref(i)?e.unref(t)("theme.lightMode"):e.unref(t)("theme.darkMode"),onClick:m[0]||(m[0]=(...l)=>e.unref(a)&&e.unref(a)(...l))},[e.unref(i)?(e.openBlock(),e.createBlock(e.unref(Da),{key:0,class:"h-4 w-4"})):(e.openBlock(),e.createBlock(e.unref(ka),{key:1,class:"h-4 w-4"}))],8,Pa))}}),Ia={class:"sticky top-0 z-40 flex h-14 flex-col border-b border-slate-200 bg-white transition-colors duration-200 dark:border-slate-800 dark:bg-[#0b1120]"},Ha={class:"flex h-full w-full items-center justify-between gap-4 px-3 md:px-4"},Fa={class:"flex items-center gap-3"},ja=["title"],Ra={class:"flex min-w-0 flex-col gap-0.5"},Oa={class:"flex items-center gap-1.5"},Ua=["title"],qa=["title"],Ka={class:"header-menu-container hidden items-center gap-0 md:flex"},Wa=["onClick"],Ga={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[220px] rounded-lg border border-slate-200 bg-white py-1 text-sm text-slate-700 shadow-xl dark:border-slate-700 dark:bg-[#0e1525] dark:text-slate-200",style:{"transform-origin":"top left"}},Ja={key:0,class:"my-1 border-t border-slate-100 dark:border-slate-700/80"},Za=["onMouseenter"],Ya={type:"button",class:"flex w-full items-center justify-between px-4 py-2 text-left hover:bg-slate-50 dark:hover:bg-white/5"},Qa={key:0,class:"absolute left-full top-0 z-50 ml-1 min-w-[200px] rounded-lg border border-slate-200 bg-white py-1 text-sm text-slate-700 shadow-xl dark:border-slate-700 dark:bg-[#0e1525] dark:text-slate-200"},Xa=["onClick"],eo={key:0,class:"rounded bg-slate-100 px-1 py-0.5 text-[9px] font-mono text-slate-500 dark:bg-slate-700 dark:text-slate-400"},to=["onClick"],ao={class:"flex flex-shrink-0 items-center gap-1.5"},oo={key:0,class:"hidden items-center gap-2 lg:flex"},no={class:"flex -space-x-1.5 overflow-hidden"},lo=["title"],ro={class:"drop-shadow-sm"},so=["title"],io={class:"hidden xl:block"},co={class:"hidden sm:inline"},uo={class:"header-user-container relative flex-shrink-0"},po=["title"],mo=["src","alt"],fo={key:1,class:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-cyan-500 to-blue-600 text-xs font-bold text-white"},ho={class:"hidden max-w-[140px] truncate text-sm font-medium text-slate-700 dark:text-slate-200 sm:inline"},go={key:0,class:"absolute right-0 top-full z-50 mt-1 min-w-[200px] rounded-lg border border-slate-200 bg-white py-1 text-sm text-slate-700 shadow-xl dark:border-slate-700 dark:bg-[#0e1525] dark:text-slate-200",style:{"transform-origin":"top right"}},bo={class:"border-b border-slate-100 px-4 py-2 dark:border-slate-700/80"},ko={class:"truncate text-sm font-semibold text-slate-800 dark:text-slate-100"},vo={class:"header-more-container relative xl:hidden"},xo={key:0,class:"absolute right-0 top-full z-50 mt-1 min-w-[210px] rounded-lg border border-slate-200 bg-white py-1 text-sm text-slate-700 shadow-xl dark:border-slate-700 dark:bg-[#0e1525] dark:text-slate-200",style:{"transform-origin":"top right"}},yo={class:"flex items-center justify-between px-4 py-2"},St=e.defineComponent({__name:"HeaderBar",props:{title:{default:"Untitled Document"},editable:{type:Boolean,default:!0},collaborators:{default:()=>[]},starred:{type:Boolean,default:!1},currentUserId:{default:""},simulatorsActive:{type:Boolean,default:!1},userName:{default:""},userAvatar:{default:""}},emits:["back","update:title","toggle-star","toggle-simulators","export","share","menu-click"],setup(o,{emit:i}){const{setLocale:a,t}=ee(),r=gt(),m=o,l=i,g=e.ref(!1),s=e.ref(m.title),v=e.ref(null);e.watch(()=>m.title,$=>{s.value=$});const C=()=>{const $=s.value.trim();$&&$!==m.title&&l("update:title",$),s.value=m.title,g.value=!1},V=$=>$.split(" ").map(M=>M[0]).join("").slice(0,2).toUpperCase(),S=$=>{l("export",$),v.value=null},b=e.computed(()=>V(m.userName)||"?"),d=e.ref(!1),p=e.computed(()=>({File:{label:t("header.file"),items:[{label:t("header.new"),action:"new-doc"},{label:t("header.open"),action:"open-doc"},{label:t("header.makeACopy"),action:"duplicate"},{label:"divider",divider:!0},{label:t("header.share"),action:"share"},{label:t("header.email"),action:"email"},{label:t("header.download"),sub:[{label:t("header.docx"),action:"export:docx",badge:"DOCX"},{label:t("header.pdf"),action:"export:pdf",badge:"PDF"},{label:t("header.odt"),action:"export:odt",badge:"ODT"},{label:t("header.txt"),action:"export:txt",badge:"TXT"},{label:t("header.rtf"),action:"export:rtf",badge:"RTF"},{label:t("header.htmlZip"),action:"export:html-zip",badge:"ZIP"},{label:t("header.html"),action:"export:html",badge:"HTML"},{label:t("header.markdown"),action:"export:markdown",badge:"MD"}]},{label:"divider",divider:!0},{label:t("header.rename"),action:"rename"},{label:t("header.move"),action:"move"},{label:t("header.moveToTrash"),action:"trash"},{label:"divider",divider:!0},{label:t("header.versionHistory"),action:"version-history"},{label:"divider",divider:!0},{label:t("header.language"),sub:r.map($=>({label:ht($),action:`set-locale:${$}`}))},{label:t("header.pageSetup"),action:"page-setup"},{label:t("header.print"),action:"print"}]},Edit:{label:t("header.edit"),items:[{label:t("header.undo"),action:"undo"},{label:t("header.redo"),action:"redo"},{label:"divider",divider:!0},{label:t("header.selectAll"),action:"select-all"}]},View:{label:t("header.view"),items:[{label:t("header.showSidebar"),action:"toggle-left-sidebar"},{label:"divider",divider:!0},{label:t("header.focusMode"),action:"toggle-focus-mode"},{label:t("header.showRuler"),action:"toggle-ruler"}]},Insert:{label:t("header.insert"),items:[{label:t("header.meetingNotes"),action:"meeting-notes"},{label:t("header.emailDraft"),action:"email-draft"},{label:"divider",divider:!0},{label:t("header.image"),action:"insert-image"},{label:t("header.table"),action:"insert-table"},{label:t("header.codeBlock"),action:"insert-code"},{label:"divider",divider:!0},{label:t("header.header"),action:"insert-header"},{label:t("header.footer"),action:"insert-footer"},{label:t("header.footnote"),action:"insert-footnote"}]},Format:{label:t("header.format"),items:[{label:t("header.bold"),action:"bold"},{label:t("header.italic"),action:"italic"},{label:t("header.underline"),action:"underline"},{label:"divider",divider:!0},{label:t("header.heading1"),action:"heading1"},{label:t("header.heading2"),action:"heading2"},{label:t("header.heading3"),action:"heading3"}]},Tools:{label:t("header.tools"),items:[{label:t("header.spellCheck"),action:"spellcheck"},{label:t("header.wordCount"),action:"word-count"},{label:"divider",divider:!0},{label:t("header.preferences"),action:"preferences"}]},Extensions:{label:t("header.extensions"),items:[{label:t("header.manageExtensions"),action:"manage-extensions"}]},Help:{label:t("header.help"),items:[{label:t("header.keyboardShortcuts"),action:"keyboard-shortcuts"},{label:"divider",divider:!0},{label:t("header.reportIssue"),action:"report-issue"},{label:t("header.about"),action:"about"}]}})),c=e.computed(()=>Object.keys(p.value)),y=e.ref(null),N=$=>{v.value=v.value===$?null:$,y.value=null},B=e.ref(!1),_=()=>{B.value=!B.value},D=e.ref(!1),L=$=>{a($),D.value=!1},K=e.ref(!1),Y=()=>{K.value=!K.value},Q=$=>{if($.startsWith("export:")){const M=$.replace("export:","");S(M)}else if($==="share")l("share"),v.value=null;else if($==="rename")g.value=!0,v.value=null;else if($.startsWith("set-locale:")){const M=$.replace("set-locale:","");L(M)}else l("menu-click",$);y.value=null},Z=$=>{const M=$.target;M.closest(".header-menu-container")||(v.value=null,y.value=null),M.closest(".header-more-container")||(B.value=!1),M.closest(".header-user-container")||(K.value=!1)};return e.onMounted(()=>document.addEventListener("click",Z,!0)),e.onUnmounted(()=>document.removeEventListener("click",Z,!0)),($,M)=>(e.openBlock(),e.createElementBlock("header",Ia,[e.createElementVNode("div",Ha,[e.createElementVNode("div",Fa,[e.createElementVNode("button",{type:"button",class:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-xl bg-gradient-to-br from-cyan-400 to-blue-600 text-base font-bold text-white shadow-[0_0_15px_rgba(34,211,238,0.3)] hover:opacity-90 transition-opacity",title:e.unref(t)("header.backToDocuments"),onClick:M[0]||(M[0]=A=>l("back"))}," DF ",8,ja),e.createElementVNode("div",Ra,[e.createElementVNode("div",Oa,[g.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":M[1]||(M[1]=A=>s.value=A),type:"text",class:"min-w-[150px] border-b-2 border-cyan-500 bg-transparent px-1 py-0 text-sm font-semibold text-slate-800 focus:outline-none dark:text-slate-100 md:min-w-[240px]",onBlur:C,onKeydown:e.withKeys(C,["enter"])},null,544)),[[e.vModelText,s.value]]):(e.openBlock(),e.createElementBlock("h1",{key:1,class:"max-w-[180px] cursor-text truncate rounded px-1 py-0 text-sm font-semibold text-slate-800 hover:bg-slate-50 dark:text-slate-100 dark:hover:bg-slate-800/60 md:max-w-[280px]",title:e.unref(t)("header.clickToRename"),onClick:M[2]||(M[2]=A=>g.value=!0)},e.toDisplayString(m.title),9,Ua)),e.createElementVNode("button",{type:"button",class:"flex h-6 w-6 items-center justify-center rounded-full text-slate-400 transition-colors hover:text-amber-500",title:o.starred?e.unref(t)("header.unstarDocument"):e.unref(t)("header.starDocument"),onClick:M[3]||(M[3]=A=>l("toggle-star"))},[e.createVNode(e.unref($a),{class:e.normalizeClass(["h-4 w-4",o.starred?"fill-amber-400 text-amber-500":""])},null,8,["class"])],8,qa)]),e.createElementVNode("nav",Ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A,class:"relative"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["flex items-center gap-0.5 rounded px-2 py-0.5 text-[13px] transition-colors",v.value===A?"bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300":"text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800"]),onClick:e.withModifiers(W=>N(A),["stop"])},e.toDisplayString(p.value[A].label),11,Wa),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-150 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-[-4px]","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-active-class":"transition-all duration-100 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-[-4px]"},{default:e.withCtx(()=>[v.value===A?(e.openBlock(),e.createElementBlock("div",Ga,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value[A].items,(W,le)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:le},[W.divider?(e.openBlock(),e.createElementBlock("div",Ja)):W.sub?(e.openBlock(),e.createElementBlock("div",{key:1,class:"relative",onMouseenter:j=>y.value=`${A}-${le}`,onMouseleave:M[4]||(M[4]=j=>y.value=null)},[e.createElementVNode("button",Ya,[e.createElementVNode("span",null,e.toDisplayString(W.label),1),e.createVNode(e.unref(pe),{class:"h-3.5 w-3.5 -rotate-90 text-slate-400"})]),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-100 ease-out","enter-from-class":"opacity-0 translate-x-2","enter-to-class":"opacity-100 translate-x-0","leave-active-class":"transition-all duration-75 ease-in","leave-from-class":"opacity-100 translate-x-0","leave-to-class":"opacity-0 translate-x-2"},{default:e.withCtx(()=>[y.value===`${A}-${le}`?(e.openBlock(),e.createElementBlock("div",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.sub,j=>(e.openBlock(),e.createElementBlock("button",{key:j.action,type:"button",class:"flex w-full items-center justify-between px-4 py-2 text-left hover:bg-slate-50 dark:hover:bg-white/5",onClick:e.withModifiers(Ce=>Q(j.action),["stop"])},[e.createElementVNode("span",null,e.toDisplayString(j.label),1),j.badge?(e.openBlock(),e.createElementBlock("span",eo,e.toDisplayString(j.badge),1)):e.createCommentVNode("",!0)],8,Xa))),128))])):e.createCommentVNode("",!0)]),_:2},1024)],40,Za)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"flex w-full items-center px-4 py-2 text-left hover:bg-slate-50 dark:hover:bg-white/5",onClick:e.withModifiers(j=>Q(W.action),["stop"])},e.toDisplayString(W.label),9,to))],64))),128))])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))])])]),e.createElementVNode("div",ao,[o.collaborators.length>0?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.collaborators,A=>(e.openBlock(),e.createElementBlock("div",{key:A.userId,class:"flex h-7 w-7 flex-shrink-0 cursor-help items-center justify-center rounded-full border-2 border-white text-[10px] font-bold text-white dark:border-slate-900",style:e.normalizeStyle({backgroundColor:A.color}),title:`${A.name} ${A.userId===o.currentUserId?"(You)":""} ${A.isTyping?"is typing...":""}`},[e.createElementVNode("span",ro,e.toDisplayString(V(A.name)),1)],12,lo))),128))])])):e.createCommentVNode("",!0),e.renderSlot($.$slots,"actions"),o.editable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(["hidden h-8 w-8 items-center justify-center rounded-md transition-all xl:flex",o.simulatorsActive?"animate-pulse bg-emerald-600 text-white hover:bg-emerald-700":"text-indigo-600 hover:bg-slate-100 dark:text-indigo-300 dark:hover:bg-slate-800"]),title:e.unref(t)("header.sandbox"),onClick:M[5]||(M[5]=A=>l("toggle-simulators"))},[e.createVNode(e.unref(nt),{class:"h-[18px] w-[18px]"})],10,so)):e.createCommentVNode("",!0),e.createElementVNode("div",io,[e.createVNode(Re)]),e.createElementVNode("button",{type:"button",class:"flex h-8 items-center gap-1.5 rounded-md bg-blue-600 px-3 text-[13px] font-semibold text-white shadow transition-colors hover:bg-blue-700",onClick:M[6]||(M[6]=A=>l("share"))},[e.createVNode(e.unref(Va),{class:"h-3.5 w-3.5"}),e.createElementVNode("span",co,e.toDisplayString(e.unref(t)("header.share")),1)]),e.createElementVNode("div",uo,[e.createElementVNode("button",{type:"button",class:"flex h-8 items-center gap-1.5 rounded-full py-0.5 pl-0.5 pr-1.5 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",title:o.userName,onClick:e.withModifiers(Y,["stop"])},[o.userAvatar&&!d.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.userAvatar,alt:o.userName,referrerpolicy:"no-referrer",class:"h-7 w-7 flex-shrink-0 rounded-full object-cover",onError:M[7]||(M[7]=A=>d.value=!0)},null,40,mo)):(e.openBlock(),e.createElementBlock("span",fo,e.toDisplayString(b.value),1)),e.createElementVNode("span",ho,e.toDisplayString(o.userName||e.unref(t)("header.account")),1),e.createVNode(e.unref(pe),{class:"h-3.5 w-3.5 flex-shrink-0 text-slate-400"})],8,po),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-150 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-[-4px]","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-active-class":"transition-all duration-100 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-[-4px]"},{default:e.withCtx(()=>[K.value?(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",bo,[e.createElementVNode("p",ko,e.toDisplayString(o.userName||e.unref(t)("header.account")),1)]),e.renderSlot($.$slots,"user-menu",{close:()=>K.value=!1})])):e.createCommentVNode("",!0)]),_:3})]),e.createElementVNode("div",vo,[e.createElementVNode("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800",title:"More",onClick:e.withModifiers(_,["stop"])},[e.createVNode(e.unref(vt),{class:"h-[18px] w-[18px]"})]),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-150 ease-out","enter-from-class":"opacity-0 scale-95 translate-y-[-4px]","enter-to-class":"opacity-100 scale-100 translate-y-0","leave-active-class":"transition-all duration-100 ease-in","leave-from-class":"opacity-100 scale-100 translate-y-0","leave-to-class":"opacity-0 scale-95 translate-y-[-4px]"},{default:e.withCtx(()=>[B.value?(e.openBlock(),e.createElementBlock("div",xo,[e.renderSlot($.$slots,"overflow-actions",{close:()=>B.value=!1}),o.editable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"flex w-full items-center gap-2.5 px-4 py-2 text-left hover:bg-slate-50 dark:hover:bg-white/5",onClick:M[8]||(M[8]=A=>{l("toggle-simulators"),B.value=!1})},[e.createVNode(e.unref(nt),{class:"h-4 w-4 text-slate-400"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(t)("header.sandbox")),1)])):e.createCommentVNode("",!0),M[9]||(M[9]=e.createElementVNode("div",{class:"my-1 border-t border-slate-100 dark:border-slate-700/80"},null,-1)),e.createElementVNode("div",yo,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t)("header.theme")),1),e.createVNode(Re)])])):e.createCommentVNode("",!0)]),_:3})])])])]))}}),wo={id:"editor-toolbar-row",class:"docs-editor-toolbar w-full border-b border-slate-200 bg-white py-1.5 text-slate-600 shadow-sm dark:border-slate-800 dark:bg-[#0b1120] dark:text-slate-300"},Eo={class:"flex min-h-9 w-full items-center gap-1 px-3 flex-nowrap"},No=["title","aria-label","disabled"],So=["title","aria-label","disabled"],Vo=["title","aria-label"],Co=["title","aria-label","disabled"],Bo=["title","aria-label"],_o={class:"toolbar-dropdown relative flex-shrink-0"},$o=["title","aria-label","disabled"],Mo={class:"truncate"},Do={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[180px] rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-xl dark:border-slate-700 dark:bg-[#0e1525]"},To=["disabled","onClick"],Ao={class:"toolbar-dropdown relative flex-shrink-0"},zo=["title","aria-label","disabled"],Lo={class:"truncate"},Po={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[160px] rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-xl dark:border-slate-700 dark:bg-[#0e1525]"},Io=["onClick"],Ho=["title","aria-label","disabled"],Fo={class:"flex h-8 w-7 flex-shrink-0 select-none items-center justify-center text-xs text-slate-700 dark:text-slate-200"},jo=["title","aria-label","disabled"],Ro=["title","aria-label","disabled","onClick"],Oo={key:1,class:"text-xs font-medium leading-none"},Uo={key:0,class:"mx-1 h-5 w-px flex-shrink-0 bg-slate-200 dark:bg-white/10"},qo={key:1,class:"toolbar-dropdown relative flex-shrink-0"},Ko=["title","aria-label","disabled"],Wo={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[180px] rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-xl dark:border-slate-700 dark:bg-[#0e1525]"},Go=["disabled","onClick"],Jo={key:2,class:"toolbar-dropdown relative flex-shrink-0"},Zo=["title","aria-label","disabled"],Yo={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[160px] rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-xl dark:border-slate-700 dark:bg-[#0e1525]"},Qo=["disabled","onClick"],Xo={key:3,class:"toolbar-dropdown relative flex-shrink-0"},en=["title","aria-label","disabled"],tn={class:"hidden md:inline"},an={key:0,class:"absolute left-0 top-full z-50 mt-1 min-w-[190px] rounded-lg border border-slate-200 bg-white py-1 text-sm shadow-xl dark:border-slate-700 dark:bg-[#0e1525]"},on=["disabled","onClick"],nn=["title","aria-label"],ln=["title","aria-label"],rn=["title","aria-label"],sn=["title","aria-label"],dn="bg-slate-200 text-slate-900 dark:bg-slate-700 dark:text-slate-100",cn="text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-white/5",X="docs-editor-toolbar__control inline-flex h-8 flex-shrink-0 items-center justify-center rounded-md p-1 text-slate-600 transition-all disabled:opacity-40 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-white/5",un="bg-slate-200 text-slate-900 dark:bg-slate-700 dark:text-slate-100",pn="text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-white/5",rt=11,Vt=e.defineComponent({__name:"EditorToolbar",props:{actions:{},plugins:{},editor:{},activeSidebar:{}},emits:["toggle-sidebar","print","undo","redo","toggle-left-sidebar"],setup(o,{emit:i}){const{t:a}=ee(),t=o,r=i,m={Bold:kt,Italic:yt,Underline:Nt,Strikethrough:Ma,Heading1:ra,Heading2:sa,Heading3:ia,Heading4:da,Heading5:ca,Heading6:ua,List:ze,ListOrdered:ma,CheckSquare:_a,Quote:ya,Link:wt,Code:ea,Image:pa,Table:Ta,AlignLeft:je,AlignCenter:tt,AlignRight:at,AlignJustify:ot,FileText:ke};function l(x){return x?m[x]??null:null}const g=e.computed(()=>{const x=[];for(const n of t.plugins??[])!n.toolbar||n.toolbar.length===0||x.push({pluginId:n.id,items:n.toolbar});return x}),s=e.ref(0);function v(){s.value++}e.watch(()=>t.editor,(x,n)=>{n&&n.off("transaction",v),x&&x.on("transaction",v)},{immediate:!0}),e.onUnmounted(()=>{t.editor&&t.editor.off("transaction",v)});function C(x){s.value;const n=t.editor;if(!n)return!1;switch(x.action){case"toggleBold":return n.isActive("bold");case"toggleItalic":return n.isActive("italic");case"toggleUnderline":return n.isActive("underline");case"toggleStrike":return n.isActive("strike");case"toggleHeading1":return n.isActive("heading",{level:1});case"toggleHeading2":return n.isActive("heading",{level:2});case"toggleHeading3":return n.isActive("heading",{level:3});case"toggleHeading4":return n.isActive("heading",{level:4});case"toggleHeading5":return n.isActive("heading",{level:5});case"toggleHeading6":return n.isActive("heading",{level:6});case"toggleBulletList":return n.isActive("bulletList");case"toggleOrderedList":return n.isActive("orderedList");case"toggleTaskList":return n.isActive("taskList");case"toggleBlockquote":return n.isActive("blockquote");case"toggleCodeBlock":return n.isActive("codeBlock");case"setLink":return n.isActive("link");case"alignLeft":return n.isActive({textAlign:"left"});case"alignCenter":return n.isActive({textAlign:"center"});case"alignRight":return n.isActive({textAlign:"right"});case"alignJustify":return n.isActive({textAlign:"justify"});default:return!1}}function V(x){if(!t.editor)return;const n=t.actions[x.action];if(typeof n=="function"){n(...x.args??[]),t.editor.commands.focus();return}const k=t.editor.commands[x.action];typeof k=="function"&&(k(...x.args??[]),t.editor.commands.focus())}const S=["toggleHeading1","toggleHeading2","toggleHeading3","toggleHeading4","toggleHeading5","toggleHeading6"],b=["alignLeft","alignCenter","alignRight","alignJustify"],d=["toggleBulletList","toggleOrderedList","toggleTaskList"],p=["setLink","insertImage","insertTable","toggleBlockquote","toggleCodeBlock","insertFootnote","insertPageBreak","setPageBreak","togglePageBreak","addPageBreak"],c=e.computed(()=>g.value.flatMap(x=>x.items)),y=e.computed(()=>c.value.filter(x=>b.includes(x.action))),N=e.computed(()=>c.value.filter(x=>d.includes(x.action))),B=e.computed(()=>c.value.filter(x=>p.includes(x.action))),_=e.computed(()=>c.value.filter(x=>!S.includes(x.action)&&!b.includes(x.action)&&!d.includes(x.action)&&!p.includes(x.action))),D=e.computed(()=>{s.value;const x=t.editor;if(x){if(x.isActive({textAlign:"center"}))return tt;if(x.isActive({textAlign:"right"}))return at;if(x.isActive({textAlign:"justify"}))return ot}return je}),L=e.ref(null);function K(x){L.value=L.value===x?null:x}function Y(x){V(x),L.value=null}function Q(x){x.target.closest(".toolbar-dropdown")||(L.value=null)}e.onMounted(()=>document.addEventListener("click",Q,!0)),e.onUnmounted(()=>document.removeEventListener("click",Q,!0));function Z(x){return t.activeSidebar===x?un:pn}function $(){t.editor&&(t.editor.commands.undo(),t.editor.commands.focus()),r("undo")}function M(){t.editor&&(t.editor.commands.redo(),t.editor.commands.focus()),r("redo")}function A(){r("print")}const W=e.computed(()=>[{value:"paragraph",label:a("toolbar.normalText")},{value:"heading-1",label:a("header.heading1")},{value:"heading-2",label:a("header.heading2")},{value:"heading-3",label:a("header.heading3")},{value:"heading-4",label:a("header.heading4")},{value:"heading-5",label:a("header.heading5")},{value:"heading-6",label:a("header.heading6")}]);function le(x){const n=t.editor;if(n){if(x==="paragraph")n.commands.setParagraph();else{const k=parseInt(x.replace("heading-",""),10),R=t.actions[`toggleHeading${k}`];typeof R=="function"?R():n.commands.toggleHeading({level:k})}n.commands.focus()}L.value=null}const j=e.computed(()=>{s.value;const x=t.editor;if(!x)return"paragraph";for(let n=1;n<=6;n++)if(x.isActive("heading",{level:n}))return`heading-${n}`;return"paragraph"}),Ce=e.computed(()=>{var x;return((x=W.value.find(n=>n.value===j.value))==null?void 0:x.label)??a("toolbar.normalText")}),ve=[{value:"arial",label:"Arial"},{value:"inter",label:"Inter"},{value:"serif",label:"Serif"},{value:"mono",label:"Monospace"}],E=e.ref("arial"),Be=e.computed(()=>{var x;return((x=ve.find(n=>n.value===E.value))==null?void 0:x.label)??"Arial"});function te(x){var n;E.value=x,L.value=null,(n=t.editor)==null||n.commands.focus()}const de=[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72],me=e.computed(()=>{var R;s.value;const x=t.editor;if(!x)return rt;const n=x.getAttributes("textStyle");if(n!=null&&n.fontSize){const G=parseInt(n.fontSize,10);if(!isNaN(G))return G}const k=x.state.storedMarks;if(k){for(const G of k)if(G.type.name==="textStyle"&&G.attrs.fontSize){const U=parseInt(G.attrs.fontSize,10);if(!isNaN(U))return U}}if((R=x.view)!=null&&R.dom){const G=parseFloat(getComputedStyle(x.view.dom).fontSize);if(!isNaN(G)){const U=Math.round(G);return de.reduce((se,fe)=>Math.abs(fe-U)<Math.abs(se-U)?fe:se)}}return rt});function xe(x){if(console.log("[FontSize] handleFontSize called, delta:",x,"editor:",!!t.editor),!t.editor)return;const n=de.indexOf(me.value),k=n>=0?n:de.findIndex(se=>se>=me.value),R=Math.min(Math.max((k>=0?k:0)+x,0),de.length-1),G=de[R];console.log("[FontSize] currentFontSize:",me.value,"→ nextSize:",G);const U=t.editor.commands;console.log("[FontSize] commands.setFontSize type:",typeof U.setFontSize);const re=U.setFontSize(`${G}px`);console.log("[FontSize] setFontSize returned:",re),t.editor.commands.focus()}return(x,n)=>(e.openBlock(),e.createElementBlock("div",wo,[e.createElementVNode("div",Eo,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-8"]),title:e.unref(a)("toolbar.undo"),"aria-label":e.unref(a)("toolbar.undo"),disabled:!o.editor,onMousedown:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),onClick:$},[e.createVNode(e.unref(Aa),{class:"h-[18px] w-[18px]"})],42,No),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-8"]),title:e.unref(a)("toolbar.redo"),"aria-label":e.unref(a)("toolbar.redo"),disabled:!o.editor,onMousedown:n[1]||(n[1]=e.withModifiers(()=>{},["prevent"])),onClick:M},[e.createVNode(e.unref(wa),{class:"h-[18px] w-[18px]"})],42,So),n[27]||(n[27]=e.createElementVNode("span",{class:"mx-1 h-5 w-px flex-shrink-0 bg-slate-200 dark:bg-white/10"},null,-1)),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-8"]),title:e.unref(a)("toolbar.print"),"aria-label":e.unref(a)("toolbar.print"),onMousedown:n[2]||(n[2]=e.withModifiers(()=>{},["prevent"])),onClick:A},[e.createVNode(e.unref(xa),{class:"h-[18px] w-[18px]"})],42,Vo),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-8"]),title:e.unref(a)("toolbar.spelling"),"aria-label":e.unref(a)("toolbar.spelling"),disabled:!o.editor,onMousedown:n[3]||(n[3]=e.withModifiers(()=>{},["prevent"]))},[e.createVNode(e.unref(Ba),{class:"h-[18px] w-[18px]"})],42,Co),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"px-2 text-xs"]),title:e.unref(a)("toolbar.zoom"),"aria-label":e.unref(a)("toolbar.zoom"),onMousedown:n[4]||(n[4]=e.withModifiers(()=>{},["prevent"]))},e.toDisplayString(e.unref(a)("toolbar.zoom")),43,Bo),n[28]||(n[28]=e.createElementVNode("span",{class:"mx-1 h-5 w-px flex-shrink-0 bg-slate-200 dark:bg-white/10"},null,-1)),e.createElementVNode("div",_o,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-[116px] justify-between gap-1 px-2 text-xs font-medium"]),title:e.unref(a)("toolbar.paragraphStyle"),"aria-label":e.unref(a)("toolbar.paragraphStyle"),disabled:!o.editor,onMousedown:n[5]||(n[5]=e.withModifiers(()=>{},["prevent"])),onClick:n[6]||(n[6]=e.withModifiers(k=>K("heading"),["stop"]))},[e.createElementVNode("span",Mo,e.toDisplayString(Ce.value),1),e.createVNode(e.unref(pe),{class:"h-3.5 w-3.5 flex-shrink-0 text-slate-400"})],42,$o),L.value==="heading"?(e.openBlock(),e.createElementBlock("div",Do,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,k=>(e.openBlock(),e.createElementBlock("button",{key:k.value,type:"button",class:e.normalizeClass(["flex w-full items-center px-3 py-1.5 text-left hover:bg-slate-50 dark:hover:bg-white/5",j.value===k.value?"text-blue-600 dark:text-blue-300":"text-slate-700 dark:text-slate-200"]),disabled:!o.editor,onMousedown:n[7]||(n[7]=e.withModifiers(()=>{},["prevent"])),onClick:R=>le(k.value)},e.toDisplayString(k.label),43,To))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ao,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-[100px] justify-between gap-1 px-2 text-xs font-medium"]),title:e.unref(a)("toolbar.fontFamily"),"aria-label":e.unref(a)("toolbar.fontFamily"),disabled:!o.editor,onMousedown:n[8]||(n[8]=e.withModifiers(()=>{},["prevent"])),onClick:n[9]||(n[9]=e.withModifiers(k=>K("font"),["stop"]))},[e.createElementVNode("span",Lo,e.toDisplayString(Be.value),1),e.createVNode(e.unref(pe),{class:"h-3.5 w-3.5 flex-shrink-0 text-slate-400"})],42,zo),L.value==="font"?(e.openBlock(),e.createElementBlock("div",Po,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(ve,k=>e.createElementVNode("button",{key:k.value,type:"button",class:e.normalizeClass(["flex w-full items-center px-3 py-1.5 text-left hover:bg-slate-50 dark:hover:bg-white/5",E.value===k.value?"text-blue-600 dark:text-blue-300":"text-slate-700 dark:text-slate-200"]),onMousedown:n[10]||(n[10]=e.withModifiers(()=>{},["prevent"])),onClick:R=>te(k.value)},e.toDisplayString(k.label),43,Io)),64))])):e.createCommentVNode("",!0)]),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-7 text-sm"]),title:e.unref(a)("toolbar.decreaseFontSize"),"aria-label":e.unref(a)("toolbar.decreaseFontSize"),disabled:!o.editor,onMousedown:n[11]||(n[11]=e.withModifiers(k=>xe(-1),["prevent"]))},[e.createVNode(e.unref(ba),{class:"h-3.5 w-3.5"})],42,Ho),e.createElementVNode("span",Fo,e.toDisplayString(me.value),1),e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"w-7 text-sm"]),title:e.unref(a)("toolbar.increaseFontSize"),"aria-label":e.unref(a)("toolbar.increaseFontSize"),disabled:!o.editor,onMousedown:n[12]||(n[12]=e.withModifiers(k=>xe(1),["prevent"]))},[e.createVNode(e.unref(Le),{class:"h-3.5 w-3.5"})],42,jo),n[29]||(n[29]=e.createElementVNode("span",{class:"mx-1 h-5 w-px flex-shrink-0 bg-slate-200 dark:bg-white/10"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,k=>(e.openBlock(),e.createElementBlock("button",{key:k.id,type:"button",title:k.label??k.id,"aria-label":k.label??k.id,class:e.normalizeClass(["docs-editor-toolbar__button inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md p-1 transition-all disabled:opacity-40",C(k)?dn:cn]),disabled:!o.editor,onMousedown:n[13]||(n[13]=e.withModifiers(()=>{},["prevent"])),onClick:R=>V(k)},[l(k.iconComponent)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(k.iconComponent)),{key:0,class:"h-[18px] w-[18px]"})):k.label?(e.openBlock(),e.createElementBlock("span",Oo,e.toDisplayString(k.label.charAt(0)),1)):e.createCommentVNode("",!0)],42,Ro))),128)),N.value.length||y.value.length||B.value.length?(e.openBlock(),e.createElementBlock("span",Uo)):e.createCommentVNode("",!0),N.value.length?(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"gap-0.5 px-1.5"]),title:e.unref(a)("toolbar.lists"),"aria-label":e.unref(a)("toolbar.lists"),disabled:!o.editor,onMousedown:n[14]||(n[14]=e.withModifiers(()=>{},["prevent"])),onClick:n[15]||(n[15]=e.withModifiers(k=>K("lists"),["stop"]))},[e.createVNode(e.unref(ze),{class:"h-[18px] w-[18px]"}),e.createVNode(e.unref(pe),{class:"h-3 w-3 text-slate-400"})],42,Ko),L.value==="lists"?(e.openBlock(),e.createElementBlock("div",Wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,k=>(e.openBlock(),e.createElementBlock("button",{key:k.id,type:"button",class:e.normalizeClass(["flex w-full items-center gap-2.5 px-3 py-1.5 text-left hover:bg-slate-50 dark:hover:bg-white/5",C(k)?"text-blue-600 dark:text-blue-300":"text-slate-700 dark:text-slate-200"]),disabled:!o.editor,onMousedown:n[16]||(n[16]=e.withModifiers(()=>{},["prevent"])),onClick:R=>Y(k)},[l(k.iconComponent)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(k.iconComponent)),{key:0,class:"h-4 w-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(k.label??k.id),1)],42,Go))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),y.value.length?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"gap-0.5 px-1.5"]),title:e.unref(a)("toolbar.alignment"),"aria-label":e.unref(a)("toolbar.alignment"),disabled:!o.editor,onMousedown:n[17]||(n[17]=e.withModifiers(()=>{},["prevent"])),onClick:n[18]||(n[18]=e.withModifiers(k=>K("align"),["stop"]))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D.value),{class:"h-[18px] w-[18px]"})),e.createVNode(e.unref(pe),{class:"h-3 w-3 text-slate-400"})],42,Zo),L.value==="align"?(e.openBlock(),e.createElementBlock("div",Yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,k=>(e.openBlock(),e.createElementBlock("button",{key:k.id,type:"button",class:e.normalizeClass(["flex w-full items-center gap-2.5 px-3 py-1.5 text-left hover:bg-slate-50 dark:hover:bg-white/5",C(k)?"text-blue-600 dark:text-blue-300":"text-slate-700 dark:text-slate-200"]),disabled:!o.editor,onMousedown:n[19]||(n[19]=e.withModifiers(()=>{},["prevent"])),onClick:R=>Y(k)},[l(k.iconComponent)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(k.iconComponent)),{key:0,class:"h-4 w-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(k.label??k.id),1)],42,Qo))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),B.value.length?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([X,"gap-1 px-2 text-xs font-medium"]),title:e.unref(a)("toolbar.insert"),"aria-label":e.unref(a)("toolbar.insert"),disabled:!o.editor,onMousedown:n[20]||(n[20]=e.withModifiers(()=>{},["prevent"])),onClick:n[21]||(n[21]=e.withModifiers(k=>K("insert"),["stop"]))},[e.createVNode(e.unref(Le),{class:"h-4 w-4"}),e.createElementVNode("span",tn,e.toDisplayString(e.unref(a)("toolbar.insert")),1),e.createVNode(e.unref(pe),{class:"h-3 w-3 text-slate-400"})],42,en),L.value==="insert"?(e.openBlock(),e.createElementBlock("div",an,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,k=>(e.openBlock(),e.createElementBlock("button",{key:k.id,type:"button",class:e.normalizeClass(["flex w-full items-center gap-2.5 px-3 py-1.5 text-left hover:bg-slate-50 dark:hover:bg-white/5",C(k)?"text-blue-600 dark:text-blue-300":"text-slate-700 dark:text-slate-200"]),disabled:!o.editor,onMousedown:n[22]||(n[22]=e.withModifiers(()=>{},["prevent"])),onClick:R=>Y(k)},[l(k.iconComponent)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(k.iconComponent)),{key:0,class:"h-4 w-4"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(k.label??k.id),1)],42,on))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n[30]||(n[30]=e.createElementVNode("span",{class:"mx-1 h-5 w-px flex-shrink-0 bg-slate-200 dark:bg-white/10"},null,-1)),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["docs-editor-toolbar__control flex h-8 w-8 items-center justify-center rounded-md transition-all relative",Z("comments")]),title:e.unref(a)("toolbar.comments"),"aria-label":e.unref(a)("toolbar.comments"),onClick:n[23]||(n[23]=k=>r("toggle-sidebar","comments"))},[e.createVNode(e.unref(Et),{class:"h-[18px] w-[18px]"})],10,nn),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["docs-editor-toolbar__control flex h-8 w-8 items-center justify-center rounded-md transition-all",Z("history")]),title:e.unref(a)("toolbar.history"),"aria-label":e.unref(a)("toolbar.history"),onClick:n[24]||(n[24]=k=>r("toggle-sidebar","history"))},[e.createVNode(e.unref(xt),{class:"h-[18px] w-[18px]"})],10,ln),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["docs-editor-toolbar__control flex h-8 w-8 items-center justify-center rounded-md transition-all",Z("ai")]),title:e.unref(a)("toolbar.ai"),"aria-label":e.unref(a)("toolbar.ai"),onClick:n[25]||(n[25]=k=>r("toggle-sidebar","ai"))},[e.createVNode(e.unref(Fe),{class:"h-[18px] w-[18px]"})],10,rn),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["docs-editor-toolbar__control flex h-8 w-8 items-center justify-center rounded-md transition-all",Z("toc")]),title:e.unref(a)("toolbar.tableOfContents"),"aria-label":e.unref(a)("toolbar.tableOfContents"),onClick:n[26]||(n[26]=k=>r("toggle-sidebar","toc"))},[e.createVNode(e.unref(ke),{class:"h-[18px] w-[18px]"})],10,sn)])]))}}),mn=["onClick"],fn="bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 font-bold",hn="text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-white/5 hover:text-slate-900 dark:hover:text-white",gn=e.defineComponent({__name:"BubbleMenu",props:{visible:{type:Boolean},actions:{},position:{},editor:{}},setup(o){const i=o,a=e.ref(0);function t(){a.value++}e.watch(()=>i.editor,(g,s)=>{s&&s.off("transaction",t),g&&g.on("transaction",t)},{immediate:!0}),e.onUnmounted(()=>{i.editor&&i.editor.off("transaction",t)});const r=e.computed(()=>{var g,s,v,C;return a.value,[{id:"bold",label:"Bold",action:"toggleBold",icon:kt,active:(g=i.editor)==null?void 0:g.isActive("bold")},{id:"italic",label:"Italic",action:"toggleItalic",icon:yt,active:(s=i.editor)==null?void 0:s.isActive("italic")},{id:"underline",label:"Underline",action:"toggleUnderline",icon:Nt,active:(v=i.editor)==null?void 0:v.isActive("underline")},{id:"link",label:"Link",action:"setLink",icon:wt,active:(C=i.editor)==null?void 0:C.isActive("link")}]}),m=e.computed(()=>i.position?{top:`${i.position.top}px`,left:`${i.position.left}px`}:{});function l(g){var v,C,V,S,b;if(g==="setLink"){if((v=i.editor)!=null&&v.isActive("link")){i.editor.chain().focus().unsetLink().run();return}const d=typeof window<"u"?window.prompt("Enter link URL:","https://"):null;if(d){const p=i.actions[g];typeof p=="function"?p({href:d,target:"_blank"}):(S=(V=(C=i.editor)==null?void 0:C.chain().focus()).setLink)==null||S.call(V,{href:d,target:"_blank"}).run()}return}const s=i.actions[g];if(typeof s=="function")s();else if(i.editor){const d=i.editor.chain().focus();(b=d[g])==null||b.call(d).run()}}return(g,s)=>o.visible?(e.openBlock(),e.createElementBlock("div",{key:0,"data-testid":"bubble-menu",class:"docs-editor-bubble-menu fixed z-50 flex gap-1 rounded-xl border border-slate-200 bg-white p-1.5 shadow-2xl dark:border-white/10 dark:bg-[#0c1329]",style:e.normalizeStyle(m.value),onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>(e.openBlock(),e.createElementBlock("button",{key:v.id,type:"button",class:e.normalizeClass(["docs-editor-bubble-menu__button flex items-center gap-1 rounded-lg px-2.5 py-1.5 text-xs font-semibold transition-all",v.active?fn:hn]),onClick:C=>l(v.action)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.icon),{class:"h-3.5 w-3.5"})),e.createElementVNode("span",null,e.toDisplayString(v.label),1)],10,mn))),128))],36)):e.createCommentVNode("",!0)}}),Ct=(o,i)=>{const a=o.__vccOpts||o;for(const[t,r]of i)a[t]=r;return a},Bt=Ct(gn,[["__scopeId","data-v-d9f45844"]]),bn={id:"editor-footer-row",class:"flex h-9 flex-shrink-0 items-center justify-between border-t border-slate-200 bg-white px-4 font-sans text-[11px] text-slate-400 dark:border-slate-800 dark:bg-[#0b1120]"},kn={class:"flex items-center gap-2"},vn={class:"flex items-center gap-1 font-bold"},xn={key:0,class:"relative mr-1 flex h-2 w-2"},yn={key:1,class:"relative mr-1 flex h-2 w-2"},wn={key:2,class:"font-mono text-[10px] uppercase tracking-wide text-emerald-600 dark:text-cyan-400"},En={key:3,class:"font-mono text-[10px] uppercase tracking-wide text-amber-600 dark:text-amber-500"},Nn={class:"flex items-center gap-1.5 font-sans text-[11px] font-medium text-slate-500 dark:text-slate-400"},Sn={key:0,class:"animate-pulse font-semibold text-cyan-600 dark:text-cyan-400"},Vn={key:1,class:"font-semibold text-amber-600 dark:text-amber-500"},Cn={key:2,class:"flex items-center gap-1"},Bn={class:"rounded bg-slate-100 px-1.5 py-0.5 font-mono text-[10px] text-slate-700 dark:bg-white/5 dark:text-slate-300"},_n={class:"flex items-center gap-3 font-semibold text-slate-400 dark:text-slate-500"},$n=["value","title","aria-label"],Mn=["value"],Dn={class:"font-mono text-slate-600 dark:text-slate-300"},Tn={class:"font-mono text-slate-600 dark:text-slate-300"},An={class:"font-mono text-slate-600 dark:text-slate-300"},zn={class:"font-mono text-slate-600 dark:text-slate-300"},_t=e.defineComponent({__name:"StatusBar",props:{connectionState:{default:"connected"},savingStatus:{default:"saved"},lastSaved:{default:void 0},wordCount:{default:0},charCount:{default:0},pageCount:{default:1},currentPage:{default:1},pageSize:{default:"a4"},pageSizes:{default:()=>[]}},emits:["update:pageSize"],setup(o,{emit:i}){const{t:a}=ee(),t=o,r=i,m=e.computed(()=>t.lastSaved?new Date(t.lastSaved).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}):a("statusBar.never")),l=e.computed(()=>{var g,s;return((s=(g=t.pageSizes)==null?void 0:g.find(v=>v.id===t.pageSize))==null?void 0:s.name)??t.pageSize.toUpperCase()});return(g,s)=>(e.openBlock(),e.createElementBlock("footer",bn,[e.createElementVNode("div",kn,[e.createElementVNode("span",vn,[o.connectionState==="connected"?(e.openBlock(),e.createElementBlock("span",xn,[...s[1]||(s[1]=[e.createElementVNode("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-75"},null,-1),e.createElementVNode("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-emerald-500"},null,-1)])])):(e.openBlock(),e.createElementBlock("span",yn,[...s[2]||(s[2]=[e.createElementVNode("span",{class:"h-2 w-2 animate-spin rounded-full border border-amber-500 border-t-transparent"},null,-1)])])),o.connectionState==="connected"?(e.openBlock(),e.createElementBlock("span",wn,e.toDisplayString(e.unref(a)("statusBar.liveSyncActive")),1)):(e.openBlock(),e.createElementBlock("span",En,e.toDisplayString(e.unref(a)("statusBar.connecting")),1))]),s[3]||(s[3]=e.createElementVNode("span",{class:"text-slate-200 dark:text-white/10"},"|",-1)),e.createElementVNode("span",Nn,[e.createVNode(e.unref(Ea),{class:e.normalizeClass(["h-3 w-3",o.savingStatus==="saving"?"animate-spin text-cyan-500":"text-emerald-500"])},null,8,["class"]),o.savingStatus==="saving"?(e.openBlock(),e.createElementBlock("span",Sn,e.toDisplayString(e.unref(a)("statusBar.saving")),1)):o.savingStatus==="offline"?(e.openBlock(),e.createElementBlock("span",Vn,e.toDisplayString(e.unref(a)("statusBar.offline")),1)):(e.openBlock(),e.createElementBlock("span",Cn,[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("statusBar.lastSavedAt")),1),e.createElementVNode("strong",Bn,e.toDisplayString(m.value),1)]))])]),e.createElementVNode("div",_n,[e.createElementVNode("select",{value:o.pageSize,title:l.value,class:"h-6 cursor-pointer rounded border border-slate-200 bg-white px-1.5 py-0.5 text-[11px] font-medium text-slate-600 outline-none hover:border-slate-300 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300","aria-label":e.unref(a)("statusBar.pageSize"),onChange:s[0]||(s[0]=v=>r("update:pageSize",v.target.value))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pageSizes,v=>(e.openBlock(),e.createElementBlock("option",{key:v.id,value:v.id},e.toDisplayString(v.name),9,Mn))),128))],40,$n),s[4]||(s[4]=e.createElementVNode("span",{class:"text-slate-200 dark:text-white/10"},"•",-1)),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(a)("statusBar.page"))+" ",1),e.createElementVNode("strong",Dn,e.toDisplayString(o.currentPage),1),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("statusBar.of"))+" ",1),e.createElementVNode("strong",Tn,e.toDisplayString(o.pageCount),1)]),s[5]||(s[5]=e.createElementVNode("span",{class:"text-slate-200 dark:text-white/10"},"•",-1)),e.createElementVNode("span",null,[e.createElementVNode("strong",An,e.toDisplayString(o.wordCount),1),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("statusBar.words")),1)]),s[6]||(s[6]=e.createElementVNode("span",{class:"text-slate-200 dark:text-white/10"},"•",-1)),e.createElementVNode("span",null,[e.createElementVNode("strong",zn,e.toDisplayString(o.charCount),1),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("statusBar.characters")),1)])])]))}}),Ln={class:"docs-editor-ruler relative h-6 w-full flex-shrink-0 overflow-hidden border-b border-slate-200 bg-slate-50 dark:border-slate-800 dark:bg-[#0a0f1e]"},Pn={class:"absolute inset-x-0 top-2.5 h-full"},In={key:0,class:"absolute -top-2 left-0.5 text-[9px] text-slate-400"},Hn=e.defineComponent({__name:"RulerBar",props:{layoutOptions:{}},setup(o){const i=o,a=e.computed(()=>{var l,g;return{pageWidth:((l=i.layoutOptions)==null?void 0:l.pageWidth)??794,margins:((g=i.layoutOptions)==null?void 0:g.margins)??{top:96,bottom:96,left:96,right:96}}}),t=e.computed(()=>{const l=Math.floor(a.value.pageWidth/48);return Array.from({length:l+1},(g,s)=>s*48)}),r=e.computed(()=>`${a.value.margins.left}px`),m=e.computed(()=>`${a.value.pageWidth-a.value.margins.right}px`);return(l,g)=>(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",{class:"absolute inset-y-0 mx-auto h-full",style:e.normalizeStyle({width:`${a.value.pageWidth}px`,left:"50%",transform:"translateX(-50%)"})},[e.createElementVNode("div",{class:"absolute top-0 z-10 h-0 w-0 border-l-[4px] border-r-[4px] border-t-[6px] border-l-transparent border-r-transparent border-t-blue-400",style:e.normalizeStyle({left:r.value,transform:"translateX(-4px)"})},null,4),e.createElementVNode("div",{class:"absolute top-0 z-10 h-0 w-0 border-l-[4px] border-r-[4px] border-t-[6px] border-l-transparent border-r-transparent border-t-blue-400",style:e.normalizeStyle({left:m.value,transform:"translateX(-4px)"})},null,4),e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["absolute top-0 border-l border-slate-300 dark:border-slate-600",s%96===0?"h-3":"h-1.5"]),style:e.normalizeStyle({left:`${s}px`})},[s%96===0&&s>0?(e.openBlock(),e.createElementBlock("span",In,e.toDisplayString(s/96),1)):e.createCommentVNode("",!0)],6))),128))])],4)]))}}),Fn={class:"relative h-full w-full"},jn={key:0,class:"absolute -top-2 right-3 text-[9px] text-slate-400"},Rn=e.defineComponent({__name:"VerticalRuler",props:{layoutOptions:{}},setup(o){const i=o,a=e.computed(()=>{var r,m;return{pageHeight:((r=i.layoutOptions)==null?void 0:r.pageHeight)??1123,margins:((m=i.layoutOptions)==null?void 0:m.margins)??{top:96,bottom:96,left:96,right:96}}}),t=e.computed(()=>{const r=Math.floor(a.value.pageHeight/48);return Array.from({length:r+1},(m,l)=>l*48)});return(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"docs-editor-vertical-ruler sticky top-0 hidden w-6 flex-shrink-0 border-r border-slate-200 bg-slate-50 dark:border-slate-800 dark:bg-[#0a0f1e] lg:block",style:e.normalizeStyle({minHeight:`${a.value.pageHeight}px`})},[e.createElementVNode("div",Fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:e.normalizeClass(["absolute right-0 border-t border-slate-300 dark:border-slate-600",l%96===0?"w-3":"w-1.5"]),style:e.normalizeStyle({top:`${l}px`})},[l%96===0&&l>0?(e.openBlock(),e.createElementBlock("span",jn,e.toDisplayString(l/96),1)):e.createCommentVNode("",!0)],6))),128))])],4))}}),On={key:0,class:"docs-editor-quick-actions z-20 flex flex-wrap items-center justify-center gap-2 py-4"},Un=["onClick"],qn=e.defineComponent({__name:"QuickActionChips",props:{visible:{type:Boolean}},emits:["meeting-notes","email-draft","more"],setup(o,{emit:i}){const{t:a}=ee(),t=i,r=[{key:"meeting-notes",label:a("quickActions.meetingNotes"),icon:ke},{key:"email-draft",label:a("quickActions.emailDraft"),icon:fa},{key:"more",label:a("quickActions.more"),icon:aa}];return(m,l)=>o.visible?(e.openBlock(),e.createElementBlock("div",On,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,g=>e.createElementVNode("button",{key:g.key,type:"button",class:"flex items-center gap-1.5 rounded-full border border-slate-200 bg-white px-3 py-1.5 text-xs font-medium text-slate-600 shadow-sm transition-colors hover:bg-slate-50 hover:text-slate-900 dark:border-slate-700 dark:bg-[#0a0f1e] dark:text-slate-300 dark:hover:bg-slate-800",onClick:s=>t(g.key)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.icon),{class:"h-3.5 w-3.5"})),e.createElementVNode("span",null,e.toDisplayString(g.label),1)],8,Un)),64))])):e.createCommentVNode("",!0)}}),Kn={class:"toc-sidebar flex h-full w-80 flex-shrink-0 flex-col border-r border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all animate-fadeIn dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100"},Wn={class:"flex items-center justify-between border-b border-slate-200 p-4 dark:border-white/5"},Gn={class:"flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400"},Jn={class:"mt-1 text-[10px] leading-relaxed text-slate-400 dark:text-slate-500"},Zn=["title"],Yn={key:0,class:"px-4 pb-2 pt-3"},Qn={class:"relative flex items-center"},Xn=["placeholder"],el={class:"custom-scrollbar flex-1 overflow-y-auto p-4"},tl={key:0,class:"flex flex-col items-center justify-center py-12 text-center"},al={class:"mb-3 rounded-full bg-cyan-500/10 p-3 text-cyan-500 dark:bg-cyan-400/5"},ol={class:"text-xs font-bold text-slate-700 dark:text-slate-300"},nl={class:"mt-1.5 max-w-[200px] text-[10px] leading-relaxed text-slate-400 dark:text-slate-500"},ll={class:"mt-5 w-full space-y-2 px-4 font-sans"},rl={class:"mb-1.5 block text-left text-[9px] font-bold uppercase tracking-wider text-slate-400 dark:text-slate-500"},sl=["onClick"],il={class:"flex items-center gap-1.5"},dl={key:1,class:"flex flex-col items-center justify-center py-12 text-center text-slate-400"},cl={class:"text-xs font-semibold"},ul={class:"mt-1 text-[10px] text-slate-400"},pl={key:2,class:"space-y-1 font-sans"},ml={class:"mb-2.5 block text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500"},fl={class:"relative ml-1.5 space-y-1.5 border-l border-slate-100 pl-1.5 dark:border-white/5"},hl=["onClick"],gl={class:"flex min-w-0 flex-1 items-center gap-2"},bl={class:"border-t border-slate-200 bg-slate-50/50 p-3.5 text-[10px] leading-relaxed text-slate-400 dark:border-white/5 dark:bg-slate-900/30 dark:text-slate-500"},kl={class:"flex items-start gap-1.5"},$t=e.defineComponent({__name:"TOCSidebar",props:{editor:{}},emits:["close"],setup(o,{emit:i}){const a=o,t=i,{t:r}=ee(),m=e.ref([]),l=e.ref(""),g=e.ref(null);function s(){if(!a.editor)return;const d=[];a.editor.state.doc.descendants((p,c)=>{if(p.type.name==="heading"){const y=p.attrs.level;if(y===1||y===2||y===3){const N=p.textContent.trim();d.push({id:`heading-${c}`,text:N||r("sidebars.toc.untitledHeading").replace("{level}",String(y)),level:y,pos:c})}}return!0}),m.value=d}e.onMounted(()=>{var d;s(),(d=a.editor)==null||d.on("update",s)}),e.onUnmounted(()=>{var d;(d=a.editor)==null||d.off("update",s)}),e.watch(()=>a.editor,(d,p)=>{p==null||p.off("update",s),s(),d==null||d.on("update",s)});const v=e.computed(()=>m.value.filter(d=>d.text.toLowerCase().includes(l.value.toLowerCase())));function C(d){a.editor&&(a.editor.chain().focus().setTextSelection(d.pos).run(),g.value=d.id,setTimeout(()=>{var y;const p=document.querySelector(".docs-editor-scroll");if(!p)return;const c=p.querySelectorAll(".ProseMirror h1, .ProseMirror h2, .ProseMirror h3");for(const N of Array.from(c))if(((y=N.textContent)==null?void 0:y.trim())===d.text){N.scrollIntoView({behavior:"smooth",block:"center"});return}},50))}function V(d){if(!a.editor)return;const p=r(d===1?"header.heading1":d===2?"header.heading2":"header.heading3"),c=r("sidebars.toc.newSection"),y=r("sidebars.toc.startWriting");a.editor.chain().focus().insertContent(`<h${d}>${c.replace("{tag}",p)}</h${d}><p>${y}</p>`).run()}function S(d,p){const c="group w-full flex items-center justify-between rounded-lg p-1.5 text-left transition-all relative",y="bg-cyan-500/10 text-cyan-600 dark:text-cyan-400",N="text-slate-600 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-white/5";return d===1?[c,p?y:N,"pl-0 font-bold text-xs text-slate-800 dark:text-slate-200"]:d===2?[c,p?y:N,"pl-3.5 font-semibold text-[11px] text-slate-600 dark:text-slate-300"]:[c,p?y:N,"pl-6 text-[10px] text-slate-400 dark:text-slate-400"]}function b(d){return d===1?"bg-cyan-500":d===2?"bg-emerald-500":"bg-amber-500"}return(d,p)=>(e.openBlock(),e.createElementBlock("div",Kn,[e.createElementVNode("div",Wn,[e.createElementVNode("div",null,[e.createElementVNode("h3",Gn,[e.createVNode(e.unref(ze),{class:"h-4 w-4 text-cyan-500"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.toc.title")),1)]),e.createElementVNode("p",Jn,e.toDisplayString(e.unref(r)("sidebars.toc.empty")),1)]),e.createElementVNode("button",{type:"button",class:"rounded-lg p-1 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:hover:bg-white/5 dark:hover:text-white",title:e.unref(r)("sidebars.toc.closeOutline"),onClick:p[0]||(p[0]=c=>t("close"))},[e.createVNode(e.unref(lt),{class:"h-4 w-4"})],8,Zn)]),m.value.length>0?(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("div",Qn,[e.createVNode(e.unref(et),{class:"absolute left-3 h-3.5 w-3.5 text-slate-400 dark:text-slate-500"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=c=>l.value=c),type:"text",placeholder:e.unref(r)("sidebars.toc.searchHeadings"),class:"w-full rounded-xl border border-slate-200/80 bg-slate-50 py-2 pl-9 pr-8 text-xs text-slate-700 transition-all focus:outline-none focus:ring-1 focus:ring-cyan-500/50 dark:border-white/10 dark:bg-slate-900/40 dark:text-slate-200 dark:focus:ring-cyan-400/30"},null,8,Xn),[[e.vModelText,l.value]]),l.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"absolute right-2.5 rounded-md p-0.5 text-slate-400 hover:bg-slate-200 hover:text-slate-600 dark:hover:bg-white/10 dark:hover:text-white",onClick:p[2]||(p[2]=c=>l.value="")},[e.createVNode(e.unref(lt),{class:"h-3 w-3"})])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",el,[m.value.length===0?(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("div",al,[e.createVNode(e.unref(ze),{class:"h-6 w-6"})]),e.createElementVNode("h4",ol,e.toDisplayString(e.unref(r)("sidebars.toc.noHeadings")),1),e.createElementVNode("p",nl,e.toDisplayString(e.unref(r)("sidebars.toc.noHeadingsDescription")),1),e.createElementVNode("div",ll,[e.createElementVNode("span",rl,e.toDisplayString(e.unref(r)("sidebars.toc.quickInsert")),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([1,2,3],c=>e.createElementVNode("button",{key:c,type:"button",class:"flex w-full items-center justify-between rounded-lg border border-slate-200/80 bg-slate-50 px-3 py-2 text-[11px] font-semibold text-slate-700 transition-all hover:bg-slate-100 dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-300 dark:hover:bg-white/5",onClick:y=>V(c)},[e.createElementVNode("span",il,[e.createVNode(e.unref(la),{class:e.normalizeClass(["h-3 w-3",c===1?"text-cyan-500":c===2?"text-emerald-500":"text-amber-500"])},null,8,["class"]),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.toc.headingLevel").replace("{level}",String(c))),1)]),e.createVNode(e.unref(Le),{class:"h-3.5 w-3.5 text-slate-400"})],8,sl)),64))])])):v.value.length===0?(e.openBlock(),e.createElementBlock("div",dl,[e.createVNode(e.unref(et),{class:"mb-2 h-5 w-5 text-slate-300"}),e.createElementVNode("p",cl,e.toDisplayString(e.unref(r)("sidebars.toc.noMatchingHeaders")),1),e.createElementVNode("p",ul,e.toDisplayString(e.unref(r)("sidebars.toc.tryDifferentTerm")),1)])):(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("span",ml,e.toDisplayString(e.unref(r)("sidebars.toc.outlineLayout")),1),e.createElementVNode("div",fl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,c=>(e.openBlock(),e.createElementBlock("button",{key:c.id,type:"button",class:e.normalizeClass(S(c.level,g.value===c.id)),onClick:y=>C(c)},[e.createElementVNode("div",gl,[e.createElementVNode("span",{class:e.normalizeClass(["h-1.5 w-1.5 shrink-0 rounded-full transition-all",[b(c.level),g.value===c.id?"scale-125 opacity-100":"opacity-40 group-hover:scale-110 group-hover:opacity-100"]])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["flex-1 truncate leading-tight",g.value===c.id?"text-cyan-600 dark:text-cyan-400":""])},e.toDisplayString(c.text),3)]),e.createVNode(e.unref(Qt),{class:e.normalizeClass(["h-3 w-3 shrink-0 text-cyan-500 opacity-0 transition-opacity group-hover:opacity-100",g.value===c.id?"opacity-100 text-cyan-600 dark:text-cyan-400":""])},null,8,["class"])],10,hl))),128))])]))]),e.createElementVNode("div",bl,[e.createElementVNode("div",kl,[e.createVNode(e.unref(va),{class:"mt-0.5 h-3.5 w-3.5 shrink-0 text-cyan-500"}),e.createElementVNode("p",null,e.toDisplayString(e.unref(r)("sidebars.toc.outlineSync")),1)])])]))}}),vl={class:"docs-editor flex h-screen w-full flex-col overflow-hidden bg-slate-50 transition-colors dark:bg-[#02040a]"},xl={class:"docs-editor__body relative flex flex-1 overflow-hidden"},yl=["title"],wl={class:"flex flex-1 flex-col items-center gap-4 w-full relative"},El={class:"relative w-full max-w-[794px]"},Nl=["aria-label"],Sl={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 backdrop-blur-sm px-4"},Vl={class:"w-full max-w-lg rounded-xl border border-slate-200 bg-white p-6 shadow-2xl dark:border-slate-800 dark:bg-[#0e1525] text-slate-800 dark:text-slate-200"},Cl={class:"text-lg font-bold mb-4"},Bl={class:"mb-4"},_l={class:"flex justify-between items-center mb-2"},$l={class:"text-sm font-semibold text-slate-500 dark:text-slate-400"},Ml={class:"grid grid-cols-2 gap-3"},Dl={class:"text-[11px] font-medium block mb-1"},Tl=["placeholder"],Al={class:"text-[11px] font-medium block mb-1"},zl=["placeholder"],Ll={class:"mb-6"},Pl={class:"flex justify-between items-center mb-2"},Il={class:"text-sm font-semibold text-slate-500 dark:text-slate-400"},Hl={class:"grid grid-cols-2 gap-3"},Fl={class:"text-[11px] font-medium block mb-1"},jl=["placeholder"],Rl={class:"text-[11px] font-medium block mb-1"},Ol=["placeholder"],Ul={class:"rounded-lg bg-slate-50 p-3 text-[11px] text-slate-500 dark:bg-white/5 dark:text-slate-400 mb-6"},ql={class:"flex justify-end gap-2"},Kl={key:1,class:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/50 backdrop-blur-sm px-4"},Wl={class:"w-full max-w-md rounded-xl border border-slate-200 bg-white p-6 shadow-2xl dark:border-slate-800 dark:bg-[#0e1525] text-slate-800 dark:text-slate-200"},Gl={class:"text-lg font-bold mb-4"},Jl={class:"mb-4"},Zl={class:"block text-xs font-semibold text-slate-600 dark:text-slate-400 mb-1.5"},Yl=["value"],Ql={class:"mb-4"},Xl={class:"block text-xs font-semibold text-slate-600 dark:text-slate-400 mb-1.5"},er={class:"flex gap-2"},tr={class:"mb-6"},ar={class:"block text-xs font-semibold text-slate-600 dark:text-slate-400 mb-1.5"},or={class:"grid grid-cols-2 gap-3"},nr={class:"text-[11px] text-slate-500 dark:text-slate-400 block mb-1"},lr={class:"text-[11px] text-slate-500 dark:text-slate-400 block mb-1"},rr={class:"text-[11px] text-slate-500 dark:text-slate-400 block mb-1"},sr={class:"text-[11px] text-slate-500 dark:text-slate-400 block mb-1"},ir={class:"flex justify-end gap-2"},dr=e.defineComponent({__name:"DocsEditor",props:{modelValue:{default:void 0},plugins:{default:()=>[]},editable:{type:Boolean,default:!0},collaboration:{default:void 0},pageSize:{default:"a4"},title:{default:"Untitled Document"},collaborators:{default:()=>[]},starred:{type:Boolean,default:!1},connectionState:{default:"connected"},userName:{default:""},userAvatar:{default:""},locale:{default:void 0}},emits:["update:modelValue","update:title","update:pageSize","update:locale","toggle-star","back","share","menu-click","export","ready"],setup(o,{emit:i}){const a=o,t=i,{locale:r,setLocale:m,t:l}=ft(a.locale);e.watch(()=>a.locale,h=>{h&&h!==r.value&&m(h)}),e.watch(r,h=>{t("update:locale",h)});const g=e.ref({top:72,bottom:72,left:90,right:90}),s=e.ref("portrait"),v=e.ref(a.pageSize??"a4"),C=e.ref(!1),V=e.computed(()=>{const h=De.getPageSize(v.value)??De.PAGE_SIZES[0];let u=h.pageWidth,f=h.pageHeight;return s.value==="landscape"&&([u,f]=[f,u]),C.value&&(f=9999999),{pageHeight:f,pageWidth:u,margins:{...g.value}}}),{isDark:S}=Oe(),b=e.computed(()=>({enabled:!C.value,pageHeight:V.value.pageHeight,pageWidth:V.value.pageWidth,marginTop:V.value.margins.top,marginBottom:V.value.margins.bottom,marginLeft:V.value.margins.left,marginRight:V.value.margins.right,contentMarginTop:10,contentMarginBottom:10,pageGap:40,pageBreakBackground:S.value?"#02040a":"#f1f5f9",headerLeft:"",headerRight:"",footerLeft:"",footerRight:"",onHeaderClick:()=>{Pe()},onFooterClick:()=>{Pe()}})),p=(h=>{const u=h;return u&&typeof u=="object"&&u.type==="tabbed-doc"&&Array.isArray(u.tabs)?u:{type:"tabbed-doc",activeTabId:"tab-1",tabs:[{id:"tab-1",label:"Tab 1",content:h||{type:"doc",content:[{type:"paragraph"}]}}]}})(a.modelValue),c=e.ref(p.headerLeft||""),y=e.ref(p.headerRight||""),N=e.ref(p.footerLeft||""),B=e.ref(p.footerRight||""),_=e.ref(p.tabs.map(h=>({id:h.id,label:h.label,active:h.id===p.activeTabId}))),D=e.ref({});p.tabs.forEach(h=>{D.value[h.id]=h.content});const L=e.ref(p.activeTabId),K=e.computed(()=>D.value[L.value]),Y=e.ref(!1),Q=e.ref(null),Z=e.ref(null),$=e.ref(!1),M=e.ref(0),A=e.ref(0),W=e.ref("saved"),le=e.ref(Date.now()),j=e.ref(null),Ce=e.computed(()=>{const h=[];for(const u of a.plugins)for(const f of u.slashCommands||[])h.push({name:f.name,command:f.command});return h}),{editorRef:ve,editor:E,pluginActions:Be,isReady:te,docsEditor:de}=st({content:K,plugins:a.plugins,editable:a.editable,collaboration:a.collaboration,getPageMap:()=>new Map,paginationOptions:b.value,onUpdate:h=>{D.value[L.value]=h;const u={type:"tabbed-doc",activeTabId:L.value,tabs:_.value.map(f=>({id:f.id,label:f.label,content:D.value[f.id]})),headerLeft:c.value,headerRight:y.value,footerLeft:N.value,footerRight:B.value};t("update:modelValue",u),W.value="saving",j.value&&clearTimeout(j.value),j.value=setTimeout(()=>{try{localStorage.setItem("docs-editor-current-doc",JSON.stringify(u))}catch{}W.value="saved",le.value=Date.now()},800)}}),me=e.computed(()=>{if(!E.value)return!0;const h=E.value.getJSON();return!h.content||h.content.length===0?!0:h.content.every(u=>u.type==="paragraph"&&(!u.content||u.content.length===0))}),xe=()=>{var u;const h=((u=E.value)==null?void 0:u.getText())??"";A.value=h.length,M.value=h.trim()?h.trim().split(/\s+/).length:0},x=()=>{if(!E.value)return null;const{from:h,to:u}=E.value.state.selection;if(h===u)return null;const f=E.value.view.coordsAtPos(h);return f?{top:f.top-48,left:f.left+(f.right-f.left)/2}:null},n=()=>{if(!E.value){Y.value=!1,Q.value=null;return}const{from:h,to:u}=E.value.state.selection;Y.value=h!==u,Q.value=h!==u?x():null},k=e.ref(null);let R=null;const G=()=>{E.value&&(R&&clearTimeout(R),R=setTimeout(()=>{E.value&&E.value.view.dispatch(E.value.state.tr)},150))},U=e.ref(1),re=e.ref(1),se=()=>{if(!E.value||!te.value){U.value=1,re.value=1;return}const h=E.value.view.dom,u=h.querySelector("[data-rm-pagination]");u?U.value=u.children.length||1:U.value=1;try{const{selection:f}=E.value.state,P=E.value.view.coordsAtPos(f.head);if(P&&u){const H=Array.from(u.querySelectorAll(".rm-page-break")),q=h.getBoundingClientRect(),z=P.top-q.top+h.scrollTop;let T=1,F=!1;for(let O=0;O<H.length;O++){const I=H[O].querySelector(".breaker");if(I instanceof HTMLElement&&z<I.offsetTop){re.value=T,F=!0;break}T++}F||(re.value=T)}else re.value=1}catch{re.value=1}};e.watch(V,h=>{E.value&&(E.value.commands.updatePageHeight(h.pageHeight),E.value.commands.updatePageWidth(h.pageWidth),E.value.commands.updateMargins({top:h.margins.top,bottom:h.margins.bottom,left:h.margins.left,right:h.margins.right}),se())});const fe=()=>{if(!E.value||!te.value)return;const h=c.value.replace(/{total}/g,String(U.value)),u=y.value.replace(/{total}/g,String(U.value)),f=N.value.replace(/{total}/g,String(U.value)),P=B.value.replace(/{total}/g,String(U.value));E.value.commands.updateHeaderContent(h,u),E.value.commands.updateFooterContent(f,P)};e.watch(U,()=>{fe()}),e.watch(S,h=>{E.value&&E.value.commands.updatePageBreakBackground(h?"#02040a":"#f1f5f9")}),e.watch(te,h=>{var u,f,P,H,q,z,T,F;h&&E.value&&(!c.value&&!y.value&&!N.value&&!B.value&&(c.value=((f=(u=E.value.storage.PaginationPlus)==null?void 0:u.appliedConfig)==null?void 0:f.headerLeft)||"",y.value=((H=(P=E.value.storage.PaginationPlus)==null?void 0:P.appliedConfig)==null?void 0:H.headerRight)||"",N.value=((z=(q=E.value.storage.PaginationPlus)==null?void 0:q.appliedConfig)==null?void 0:z.footerLeft)||"",B.value=((F=(T=E.value.storage.PaginationPlus)==null?void 0:T.appliedConfig)==null?void 0:F.footerRight)||""),fe(),de.value&&t("ready",de.value),E.value.on("selectionUpdate",()=>{n(),se()}),E.value.on("transaction",()=>{se(),xe()}),n(),xe(),se(),setTimeout(()=>{var I;return(I=E.value)==null?void 0:I.commands.focus("start")},50),[100,300,600,1200,2500].forEach(I=>{setTimeout(()=>{E.value&&E.value.view.dispatch(E.value.state.tr)},I)}))}),e.watch(()=>a.collaboration,()=>{},{deep:!0}),e.onUnmounted(()=>{j.value&&clearTimeout(j.value),R&&clearTimeout(R)});const _e=e.ref(!1),ye=e.ref(""),we=e.ref(""),Ee=e.ref(""),Ne=e.ref(""),$e=e.ref(!1),Me=e.ref(v.value),he=e.ref(s.value),ne=e.ref({...g.value}),Mt=()=>{Me.value=v.value,he.value=s.value,ne.value={...g.value},$e.value=!0},Dt=()=>{v.value=Me.value,s.value=he.value,g.value={...ne.value},t("update:pageSize",v.value),$e.value=!1},Pe=()=>{var h,u,f,P,H,q,z,T;E.value&&(ye.value=c.value||((u=(h=E.value.storage.PaginationPlus)==null?void 0:h.appliedConfig)==null?void 0:u.headerLeft)||"",we.value=y.value||((P=(f=E.value.storage.PaginationPlus)==null?void 0:f.appliedConfig)==null?void 0:P.headerRight)||"",Ee.value=N.value||((q=(H=E.value.storage.PaginationPlus)==null?void 0:H.appliedConfig)==null?void 0:q.footerLeft)||"",Ne.value=B.value||((T=(z=E.value.storage.PaginationPlus)==null?void 0:z.appliedConfig)==null?void 0:T.footerRight)||"",_e.value=!0)},Tt=()=>{if(!E.value)return;c.value=ye.value,y.value=we.value,N.value=Ee.value,B.value=Ne.value,fe();const h={type:"tabbed-doc",activeTabId:L.value,tabs:_.value.map(u=>({id:u.id,label:u.label,content:D.value[u.id]})),headerLeft:c.value,headerRight:y.value,footerLeft:N.value,footerRight:B.value};t("update:modelValue",h),W.value="saving",j.value&&clearTimeout(j.value),j.value=setTimeout(()=>{try{localStorage.setItem("docs-editor-current-doc",JSON.stringify(h))}catch{}W.value="saved",le.value=Date.now()},800),_e.value=!1};let At=h=>{if(h==="page-setup")Mt();else if(h==="print")Ke();else if(h==="version-history")qe("history");else if(h==="insert-header"||h==="insert-footer")Pe();else if(h==="insert-footnote"){if(!E.value)return;const{state:u,view:f}=E.value,P=u.schema.nodes.footnote;if(!P){console.error("[DocsEditor] footnote node type not registered in schema");return}const H=u.selection.head,q=P.create({content:""}),z=u.tr.insert(H,q);f.dispatch(z),f.focus(),setTimeout(()=>{Se();const T=document.querySelectorAll(".docs-footnote-item-text"),F=T[T.length-1];F&&(F.scrollIntoView({behavior:"smooth",block:"nearest"}),F.focus())},160)}else t("menu-click",h)},qe=h=>{Z.value=Z.value===h?null:h},Ke=()=>window.print();const We=(h,u)=>{if(!E.value)return;const f=E.value.view;f.state.doc.descendants((P,H)=>{if(P.type.name==="footnote"&&f.nodeDOM(H)===h)return f.dispatch(f.state.tr.setNodeMarkup(H,void 0,{content:u})),!1})},Se=()=>{var q;if(!E.value||!te.value)return;const h=E.value.view.dom,u=h.querySelector("[data-rm-pagination]");if(!u)return;const f=Array.from(u.querySelectorAll(".rm-page-break")),P=Array.from(h.querySelectorAll(".docs-footnote-ref"));if(f.length===0){P.forEach((I,ce)=>{I.textContent=String(ce+1)});const z=ve.value;if(!z||((q=z.querySelector(".docs-pageless-footnotes"))==null||q.remove(),P.length===0))return;const T=z.querySelector(".docs-pageless-footnotes");if(T!=null&&T.querySelector(".docs-footnote-item-text:focus"))return;const F=document.createElement("div");F.className="docs-page-footnotes docs-pageless-footnotes";const O=document.createElement("div");O.className="docs-footnotes-sep",F.appendChild(O),P.forEach((I,ce)=>{const ge=I.getAttribute("data-footnote-content")??"",ae=document.createElement("div");ae.className="docs-footnote-item";const ie=document.createElement("sup");ie.className="docs-footnote-item-num",ie.textContent=String(ce+1);const J=document.createElement("div");J.className="docs-footnote-item-text",J.contentEditable="true",J.textContent=ge,ge||J.setAttribute("data-empty","true"),J.addEventListener("input",()=>{J.removeAttribute("data-empty"),J.textContent||J.setAttribute("data-empty","true")}),J.addEventListener("blur",()=>{var be;const ue=((be=J.textContent)==null?void 0:be.trim())??"";We(I,ue)}),I.dataset.footnoteItemId=`fn-pageless-${ce}`,ae.id=`fn-pageless-${ce}`,ae.appendChild(ie),ae.appendChild(J),F.appendChild(ae)}),z.appendChild(F);return}const H=new Map;f.forEach((z,T)=>H.set(T,[])),P.forEach(z=>{const T=z.getBoundingClientRect().top;let F=f.length-1;for(let O=0;O<f.length-1;O++){const I=f[O].querySelector(".breaker");if(I&&T<I.getBoundingClientRect().top){F=O;break}}H.get(F).push(z)}),f.forEach((z,T)=>{const F=H.get(T)??[];F.forEach((ae,ie)=>{ae.textContent=String(ie+1)});const O=z.querySelector(".docs-page-footnotes");if(O!=null&&O.querySelector(".docs-footnote-item-text:focus")||(O==null||O.remove(),F.length===0))return;const I=document.createElement("div");I.className="docs-page-footnotes";const ce=document.createElement("div");ce.className="docs-footnotes-sep",I.appendChild(ce),F.forEach((ae,ie)=>{const J=ae.getAttribute("data-footnote-content")??"",ue=document.createElement("div");ue.className="docs-footnote-item";const be=document.createElement("sup");be.className="docs-footnote-item-num",be.textContent=String(ie+1);const oe=document.createElement("div");oe.className="docs-footnote-item-text",oe.contentEditable="true",oe.textContent=J,J||oe.setAttribute("data-empty","true"),oe.addEventListener("input",()=>{oe.removeAttribute("data-empty"),oe.textContent||oe.setAttribute("data-empty","true")}),oe.addEventListener("blur",()=>{var Ge;const zt=((Ge=oe.textContent)==null?void 0:Ge.trim())??"";We(ae,zt)}),ae.dataset.footnoteItemId=`fn-${T}-${ie}`,ue.id=`fn-${T}-${ie}`,ue.appendChild(be),ue.appendChild(oe),I.appendChild(ue)});const ge=z.querySelector(".breaker");ge?ge.insertBefore(I,ge.firstChild):z.appendChild(I)})};return e.watch(te,h=>{!h||!E.value||E.value.view.dom.addEventListener("click",u=>{const f=u.target.closest(".docs-footnote-ref");if(!f)return;u.preventDefault(),u.stopPropagation();const P=f.dataset.footnoteItemId;if(!P)return;const H=document.getElementById(P),q=H==null?void 0:H.querySelector(".docs-footnote-item-text");if(q){q.scrollIntoView({behavior:"smooth",block:"nearest"}),q.focus();const z=document.createRange();z.selectNodeContents(q),z.collapse(!1);const T=window.getSelection();T==null||T.removeAllRanges(),T==null||T.addRange(z)}})}),e.watch(te,h=>{!h||!E.value||(setTimeout(Se,150),E.value.on("update",()=>{setTimeout(Se,60)}),E.value.on("selectionUpdate",()=>{setTimeout(Se,100)}),window.addEventListener("resize",Se))}),(h,u)=>(e.openBlock(),e.createElementBlock("div",vl,[e.createVNode(St,{title:o.title,editable:o.editable,collaborators:o.collaborators,starred:o.starred,"user-name":o.userName,"user-avatar":o.userAvatar,onMenuClick:e.unref(At),onBack:u[0]||(u[0]=f=>h.$emit("back")),"onUpdate:title":u[1]||(u[1]=f=>h.$emit("update:title",f)),onToggleStar:u[2]||(u[2]=f=>h.$emit("toggle-star")),onExport:u[3]||(u[3]=f=>h.$emit("export",f)),onShare:u[4]||(u[4]=f=>h.$emit("share"))},{actions:e.withCtx(()=>[e.renderSlot(h.$slots,"header-actions",{},void 0,!0)]),"overflow-actions":e.withCtx(f=>[e.renderSlot(h.$slots,"overflow-actions",e.normalizeProps(e.guardReactiveProps(f)),void 0,!0)]),"user-menu":e.withCtx(f=>[e.renderSlot(h.$slots,"user-menu",e.normalizeProps(e.guardReactiveProps(f)),void 0,!0)]),_:3},8,["title","editable","collaborators","starred","user-name","user-avatar","onMenuClick"]),e.createVNode(Vt,{actions:e.unref(Be),plugins:o.plugins,editor:e.unref(E),"active-sidebar":Z.value,onToggleSidebar:e.unref(qe),onPrint:e.unref(Ke),onToggleLeftSidebar:u[5]||(u[5]=f=>$.value=!$.value)},null,8,["actions","plugins","editor","active-sidebar","onToggleSidebar","onPrint"]),e.createVNode(Hn,{"layout-options":V.value},null,8,["layout-options"]),e.createVNode(Bt,{visible:Y.value,actions:e.unref(Be),position:Q.value,editor:e.unref(E)},null,8,["visible","actions","position","editor"]),e.createVNode(bt,{editor:e.unref(E),commands:Ce.value},null,8,["editor","commands"]),e.createElementVNode("div",xl,[$.value?(e.openBlock(),e.createBlock($t,{key:0,editor:e.unref(E),onClose:u[6]||(u[6]=f=>$.value=!1)},null,8,["editor"])):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"absolute left-4 top-4 z-20 flex h-11 w-11 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-600 shadow-md transition-colors hover:bg-slate-100 dark:border-white/10 dark:bg-[#0e1525] dark:text-slate-300 dark:hover:bg-white/5",title:e.unref(l)("editor.showOutline"),onClick:u[7]||(u[7]=f=>$.value=!0)},[e.createVNode(e.unref(ha),{class:"h-5 w-5"})],8,yl)),e.createElementVNode("div",{ref_key:"scrollContainerRef",ref:k,class:"docs-editor-scroll relative flex flex-1 overflow-auto px-4 py-6 bg-slate-100 dark:bg-[#02040a]",onScroll:G},[e.createVNode(Rn,{"layout-options":V.value},null,8,["layout-options"]),e.createElementVNode("div",wl,[e.createVNode(qn,{visible:e.unref(te)&&me.value,onMeetingNotes:()=>{},onEmailDraft:()=>{},onMore:()=>{}},null,8,["visible"]),e.createElementVNode("div",El,[e.unref(te)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute inset-0 z-10 flex flex-col items-center justify-center bg-white dark:bg-[#0e1525]/60 backdrop-blur-[2px] gap-3 rounded-lg","aria-label":e.unref(l)("editor.loadingDocument")},null,8,Nl)),e.createElementVNode("div",{ref_key:"editorRef",ref:ve,class:e.normalizeClass(["docs-editor__paper outline-none text-slate-800 dark:text-[#e2e8f0]",{"opacity-40":!e.unref(te)}])},null,2)])])],544)]),e.createVNode(_t,{"connection-state":o.connectionState,"saving-status":W.value,"last-saved":le.value,"word-count":M.value,"char-count":A.value,"page-count":U.value,"current-page":re.value,"page-size":v.value,"page-sizes":e.unref(De.PAGE_SIZES),"onUpdate:pageSize":u[8]||(u[8]=f=>{v.value=f,t("update:pageSize",f)})},null,8,["connection-state","saving-status","last-saved","word-count","char-count","page-count","current-page","page-size","page-sizes"]),_e.value?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",Vl,[e.createElementVNode("h2",Cl,e.toDisplayString(e.unref(l)("editor.headerFooter.title")),1),e.createElementVNode("div",Bl,[e.createElementVNode("div",_l,[e.createElementVNode("h3",$l,e.toDisplayString(e.unref(l)("editor.headerFooter.header")),1),e.createElementVNode("button",{type:"button",class:"text-[11px] text-red-500 hover:text-red-600 font-medium transition-colors",onClick:u[9]||(u[9]=f=>{ye.value="",we.value=""})},e.toDisplayString(e.unref(l)("editor.headerFooter.clear")),1)]),e.createElementVNode("div",Ml,[e.createElementVNode("div",null,[e.createElementVNode("label",Dl,e.toDisplayString(e.unref(l)("editor.headerFooter.left")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[10]||(u[10]=f=>ye.value=f),type:"text",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700",placeholder:e.unref(l)("editor.headerFooter.headerLeftPlaceholder")},null,8,Tl),[[e.vModelText,ye.value]])]),e.createElementVNode("div",null,[e.createElementVNode("label",Al,e.toDisplayString(e.unref(l)("editor.headerFooter.right")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[11]||(u[11]=f=>we.value=f),type:"text",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700",placeholder:e.unref(l)("editor.headerFooter.headerRightPlaceholder")},null,8,zl),[[e.vModelText,we.value]])])])]),e.createElementVNode("div",Ll,[e.createElementVNode("div",Pl,[e.createElementVNode("h3",Il,e.toDisplayString(e.unref(l)("editor.headerFooter.footer")),1),e.createElementVNode("button",{type:"button",class:"text-[11px] text-red-500 hover:text-red-600 font-medium transition-colors",onClick:u[12]||(u[12]=f=>{Ee.value="",Ne.value=""})},e.toDisplayString(e.unref(l)("editor.headerFooter.clear")),1)]),e.createElementVNode("div",Hl,[e.createElementVNode("div",null,[e.createElementVNode("label",Fl,e.toDisplayString(e.unref(l)("editor.headerFooter.left")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[13]||(u[13]=f=>Ee.value=f),type:"text",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700",placeholder:e.unref(l)("editor.headerFooter.footerLeftPlaceholder")},null,8,jl),[[e.vModelText,Ee.value]])]),e.createElementVNode("div",null,[e.createElementVNode("label",Rl,e.toDisplayString(e.unref(l)("editor.headerFooter.right")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[14]||(u[14]=f=>Ne.value=f),type:"text",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700",placeholder:e.unref(l)("editor.headerFooter.footerRightPlaceholder")},null,8,Ol),[[e.vModelText,Ne.value]])])])]),e.createElementVNode("div",Ul,e.toDisplayString(e.unref(l)("editor.headerFooter.variableInfo")),1),e.createElementVNode("div",ql,[e.createElementVNode("button",{type:"button",class:"rounded-md px-3 py-1.5 text-xs font-semibold hover:bg-slate-100 dark:hover:bg-white/5",onClick:u[15]||(u[15]=f=>_e.value=!1)},e.toDisplayString(e.unref(l)("editor.headerFooter.cancel")),1),e.createElementVNode("button",{type:"button",class:"rounded-md bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700",onClick:Tt},e.toDisplayString(e.unref(l)("editor.headerFooter.save")),1)])])])):e.createCommentVNode("",!0),$e.value?(e.openBlock(),e.createElementBlock("div",Kl,[e.createElementVNode("div",Wl,[e.createElementVNode("h2",Gl,e.toDisplayString(e.unref(l)("editor.pageSetup.title")),1),e.createElementVNode("div",Jl,[e.createElementVNode("label",Zl,e.toDisplayString(e.unref(l)("editor.pageSetup.paperSize")),1),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":u[16]||(u[16]=f=>Me.value=f),class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-2 text-xs focus:outline-none dark:border-slate-700"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(De.PAGE_SIZES),f=>(e.openBlock(),e.createElementBlock("option",{key:f.id,value:f.id},e.toDisplayString(f.name),9,Yl))),128))],512),[[e.vModelSelect,Me.value]])]),e.createElementVNode("div",Ql,[e.createElementVNode("label",Xl,e.toDisplayString(e.unref(l)("editor.pageSetup.orientation")),1),e.createElementVNode("div",er,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["flex-1 rounded-md border px-3 py-2 text-xs font-medium transition-colors",he.value==="portrait"?"border-cyan-500 bg-cyan-50 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-300":"border-slate-200 hover:bg-slate-50 dark:border-slate-700 dark:hover:bg-white/5"]),onClick:u[17]||(u[17]=f=>he.value="portrait")},e.toDisplayString(e.unref(l)("editor.pageSetup.portrait")),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["flex-1 rounded-md border px-3 py-2 text-xs font-medium transition-colors",he.value==="landscape"?"border-cyan-500 bg-cyan-50 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-300":"border-slate-200 hover:bg-slate-50 dark:border-slate-700 dark:hover:bg-white/5"]),onClick:u[18]||(u[18]=f=>he.value="landscape")},e.toDisplayString(e.unref(l)("editor.pageSetup.landscape")),3)])]),e.createElementVNode("div",tr,[e.createElementVNode("label",ar,e.toDisplayString(e.unref(l)("editor.pageSetup.margins")),1),e.createElementVNode("div",or,[e.createElementVNode("div",null,[e.createElementVNode("label",nr,e.toDisplayString(e.unref(l)("editor.pageSetup.top")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[19]||(u[19]=f=>ne.value.top=f),type:"number",min:"0",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700"},null,512),[[e.vModelText,ne.value.top,void 0,{number:!0}]])]),e.createElementVNode("div",null,[e.createElementVNode("label",lr,e.toDisplayString(e.unref(l)("editor.pageSetup.bottom")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[20]||(u[20]=f=>ne.value.bottom=f),type:"number",min:"0",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700"},null,512),[[e.vModelText,ne.value.bottom,void 0,{number:!0}]])]),e.createElementVNode("div",null,[e.createElementVNode("label",rr,e.toDisplayString(e.unref(l)("editor.pageSetup.left")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[21]||(u[21]=f=>ne.value.left=f),type:"number",min:"0",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700"},null,512),[[e.vModelText,ne.value.left,void 0,{number:!0}]])]),e.createElementVNode("div",null,[e.createElementVNode("label",sr,e.toDisplayString(e.unref(l)("editor.pageSetup.right")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":u[22]||(u[22]=f=>ne.value.right=f),type:"number",min:"0",class:"w-full rounded-md border border-slate-200 bg-transparent px-3 py-1.5 text-xs focus:outline-none dark:border-slate-700"},null,512),[[e.vModelText,ne.value.right,void 0,{number:!0}]])])])]),e.createElementVNode("div",ir,[e.createElementVNode("button",{type:"button",class:"rounded-md px-3 py-1.5 text-xs font-semibold hover:bg-slate-100 dark:hover:bg-white/5",onClick:u[23]||(u[23]=f=>$e.value=!1)},e.toDisplayString(e.unref(l)("editor.pageSetup.cancel")),1),e.createElementVNode("button",{type:"button",class:"rounded-md bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-blue-700",onClick:Dt},e.toDisplayString(e.unref(l)("editor.pageSetup.apply")),1)])])])):e.createCommentVNode("",!0)]))}}),cr=Ct(dr,[["__scopeId","data-v-9e79a773"]]),ur={class:"docs-editor-pages flex flex-col items-center gap-10"},pr=["data-page-index"],mr=["data-node-type","data-from","data-to"],fr=["innerHTML"],hr={key:1,class:"docs-editor-page__block-fallback flex justify-between text-sm text-slate-700"},gr={class:"docs-editor-page__block-type font-medium"},br={class:"docs-editor-page__block-range text-slate-500"},kr=e.defineComponent({__name:"PageView",props:{pages:{},editor:{default:null},layoutOptions:{default:()=>({pageWidth:794,pageHeight:1123,margins:{top:96,bottom:96,left:96,right:96}})},isPageless:{type:Boolean,default:!1},pageColor:{default:"#ffffff"}},setup(o){const i=o,a=e.ref(0),t=()=>{a.value++};e.watch(()=>i.editor,(S,b)=>{b&&typeof b.off=="function"&&b.off("update",t),S&&typeof S.on=="function"&&S.on("update",t)},{immediate:!0}),e.onUnmounted(()=>{i.editor&&typeof i.editor.off=="function"&&i.editor.off("update",t)});const r=e.computed(()=>{var S,b;return((b=(S=i.editor)==null?void 0:S.view)==null?void 0:b.dom)??null}),m=e.computed(()=>{var S,b,d;return{pageHeight:((S=i.layoutOptions)==null?void 0:S.pageHeight)??1123,pageWidth:((b=i.layoutOptions)==null?void 0:b.pageWidth)??794,margins:((d=i.layoutOptions)==null?void 0:d.margins)??{top:96,bottom:96,left:96,right:96},maxCharsPerPage:0}}),l=e.computed(()=>{const{pageWidth:S,pageHeight:b,margins:d}=m.value;return i.isPageless?{width:`${S}px`,minHeight:"auto",height:"auto",paddingTop:`${d.top}px`,paddingBottom:`${d.bottom}px`,paddingLeft:`${d.left}px`,paddingRight:`${d.right}px`,backgroundColor:i.pageColor,boxShadow:"none",border:"none",borderRadius:"0"}:{width:`${S}px`,height:`${b}px`,paddingTop:`${d.top}px`,paddingBottom:`${d.bottom}px`,paddingLeft:`${d.left}px`,paddingRight:`${d.right}px`}}),g=()=>r.value?Array.from(r.value.children).filter(S=>S instanceof HTMLElement):[],s=S=>g().find(d=>{const p=parseInt(d.getAttribute("data-from")??"-1",10),c=parseInt(d.getAttribute("data-to")??"-1",10);return p>=0&&c>=p&&p<=S.from&&c>=S.to})??null,v=S=>{if(!i.editor||!r.value||!s(S))return null;try{const d=i.editor.view,p=d.domAtPos(S.from),c=d.domAtPos(S.to);if(!p||!c)return null;const y=document.createRange();y.setStart(p.node,p.offset),y.setEnd(c.node,c.offset);const N=y.cloneContents(),B=document.createElement("div");return B.appendChild(N),B.innerHTML}catch{return null}},C=e.computed(()=>{a.value;const S=new Map;if(!i.editor||!r.value)return S;for(const b of i.pages)for(const d of b.blocks){const p=`${d.from}-${d.to}-${d.nodeType}`;if(S.has(p))continue;const c=v(d);c!==null&&S.set(p,c)}return S}),V=S=>C.value.get(`${S.from}-${S.to}-${S.nodeType}`)??null;return(S,b)=>(e.openBlock(),e.createElementBlock("div",ur,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pages,(d,p)=>(e.openBlock(),e.createElementBlock("div",{key:`${p}-${d.from}-${d.to}`,class:e.normalizeClass(["docs-editor-page tiptap ProseMirror relative box-border overflow-hidden text-slate-800 dark:text-[#e2e8f0]",o.isPageless?"":"editor-page-shadow rounded-lg border border-slate-200/70 bg-white dark:border-white/5 dark:bg-[#0a0f1e]"]),"data-page-index":p,style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{class:"docs-editor-page__blocks flex flex-col",style:e.normalizeStyle(o.isPageless?{}:{height:"100%",overflow:"hidden"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.blocks,c=>(e.openBlock(),e.createElementBlock("div",{key:`${c.from}-${c.to}`,class:"docs-editor-page__block","data-node-type":c.nodeType,"data-from":c.from,"data-to":c.to},[V(c)!==null?(e.openBlock(),e.createElementBlock("div",{key:0,class:"docs-editor-page__block-content",innerHTML:V(c)},null,8,fr)):(e.openBlock(),e.createElementBlock("div",hr,[e.createElementVNode("span",gr,e.toDisplayString(c.nodeType),1),e.createElementVNode("span",br,e.toDisplayString(c.from)+"–"+e.toDisplayString(c.to),1)]))],8,mr))),128))],4)],14,pr))),128))]))}}),vr={class:"ai-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100"},xr={class:"border-b border-slate-200 p-4 dark:border-white/5"},yr={class:"flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400"},wr={class:"mt-1.5 text-[10px] leading-relaxed text-slate-400 dark:text-slate-500"},Er={class:"flex-1 space-y-4 overflow-y-auto p-4"},Nr={class:"space-y-2"},Sr={class:"block font-mono text-[10px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500"},Vr={class:"grid grid-cols-2 gap-2"},Cr=["disabled","onClick"],Br={class:"space-y-1.5"},_r={class:"block font-mono text-[10px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-500"},$r={class:"relative flex min-h-[220px] flex-col justify-between rounded-xl border border-slate-200 bg-slate-50 p-3.5 text-xs text-slate-700 dark:border-white/10 dark:bg-[#02040a]/50 dark:text-slate-300"},Mr={key:0,class:"absolute inset-0 z-10 flex flex-col items-center justify-center space-y-3 rounded-xl bg-white/70 dark:bg-[#02040a]/80"},Dr={class:"animate-pulse font-mono text-[10px] uppercase tracking-wider text-slate-400 dark:text-slate-500"},Tr={key:1,class:"space-y-4"},Ar={class:"prose prose-sm max-h-[300px] max-w-full overflow-x-auto overflow-y-auto whitespace-pre-wrap pr-1 leading-relaxed dark:prose-invert"},zr={class:"flex justify-end gap-2 border-t border-slate-200/60 pt-2.5 dark:border-white/5"},Lr={key:2,class:"flex flex-1 flex-col items-center justify-center p-4 text-center text-slate-400 dark:text-slate-500"},Pr={class:"text-[10px]"},Ir={class:"border-t border-slate-200 bg-slate-50 p-4 dark:border-white/5 dark:bg-[#0a0f1e]/80"},Hr=["disabled","placeholder"],Fr={class:"flex justify-end"},jr=["disabled"],Rr=e.defineComponent({__name:"AISidebar",props:{documentContent:{}},emits:["insert"],setup(o,{emit:i}){const a="",t=o,r=i,{t:m}=ee(),l=e.ref(""),g=e.ref(""),s=e.ref(!1),v=e.ref(!1),C=e.ref(!1);async function V(p,c){s.value=!0,C.value=!1;try{const y=await fetch(`${a}/api/ai/copilot`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:c||l.value.trim(),content:t.documentContent,action:p||"custom"})}),N=await y.json();y.ok&&N.result?g.value=N.result:N.error&&(g.value=`❌ AI Helper Error:
373
+
374
+ ${N.error}`)}catch(y){g.value="❌ Network Failure: Could not connect to the AI backend.",console.error(y)}finally{s.value=!1,l.value=""}}function S(){g.value&&(navigator.clipboard.writeText(g.value),v.value=!0,setTimeout(()=>v.value=!1,2e3))}function b(){g.value&&(r("insert",g.value),C.value=!0,setTimeout(()=>C.value=!1,2e3))}const d=e.computed(()=>[{label:m("sidebars.ai.summarize"),icon:je,action:"summarize",color:"text-cyan-500"},{label:m("sidebars.ai.fixGrammar"),icon:Zt,action:"correct",color:"text-emerald-500"},{label:m("sidebars.ai.continue"),icon:La,action:"continue",color:"text-amber-500"},{label:m("sidebars.ai.toSpanish"),icon:na,action:void 0,prompt:"Translate the current document content cleanly into professional Spanish.",color:"text-cyan-500"}]);return(p,c)=>(e.openBlock(),e.createElementBlock("div",vr,[e.createElementVNode("div",xr,[e.createElementVNode("h3",yr,[e.createVNode(e.unref(Fe),{class:"h-4 w-4 animate-pulse text-cyan-400"}),e.createTextVNode(" "+e.toDisplayString(e.unref(m)("sidebars.ai.title")),1)]),e.createElementVNode("p",wr,e.toDisplayString(e.unref(m)("sidebars.ai.description")),1)]),e.createElementVNode("div",Er,[e.createElementVNode("div",Nr,[e.createElementVNode("span",Sr,e.toDisplayString(e.unref(m)("sidebars.ai.quickMacros")),1),e.createElementVNode("div",Vr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,y=>(e.openBlock(),e.createElementBlock("button",{key:y.label,type:"button",disabled:s.value||!o.documentContent,class:"flex items-center gap-1.5 rounded-lg border border-slate-200 bg-slate-50 px-2.5 py-1.5 text-left text-[11px] font-bold text-slate-700 transition-colors hover:border-cyan-500/50 disabled:opacity-40 dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-300 dark:hover:border-cyan-500/30",onClick:N=>y.action?V(y.action):V(void 0,y.prompt)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.icon),{class:e.normalizeClass(["h-3 w-3",y.color])},null,8,["class"])),e.createElementVNode("span",null,e.toDisplayString(y.label),1)],8,Cr))),128))])]),e.createElementVNode("div",Br,[e.createElementVNode("span",_r,e.toDisplayString(e.unref(m)("sidebars.ai.generations")),1),e.createElementVNode("div",$r,[s.value?(e.openBlock(),e.createElementBlock("div",Mr,[c[2]||(c[2]=e.createElementVNode("div",{class:"h-6 w-6 animate-spin rounded-full border-2 border-cyan-500 border-t-transparent"},null,-1)),e.createElementVNode("p",Dr,e.toDisplayString(e.unref(m)("sidebars.ai.aiDrafting")),1)])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("div",Tr,[e.createElementVNode("div",Ar,e.toDisplayString(g.value),1),e.createElementVNode("div",zr,[e.createElementVNode("button",{type:"button",class:"flex items-center gap-1 rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-[10px] font-semibold text-slate-600 transition-all hover:bg-slate-50 dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-300 dark:hover:bg-white/5",onClick:S},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.value?e.unref(Qe):e.unref(ta)),{class:e.normalizeClass(["h-3 w-3",v.value?"text-emerald-500":""])},null,8,["class"])),e.createElementVNode("span",null,e.toDisplayString(v.value?e.unref(m)("sidebars.ai.copied"):e.unref(m)("sidebars.ai.copy")),1)]),e.createElementVNode("button",{type:"button",class:"flex items-center gap-1 rounded-lg bg-cyan-500 px-2.5 py-1.5 text-[10px] font-bold text-black shadow-cyan transition-all hover:bg-cyan-400",onClick:b},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value?e.unref(Qe):e.unref(Gt)),{class:"h-3 w-3"})),e.createElementVNode("span",null,e.toDisplayString(C.value?e.unref(m)("sidebars.ai.inserted"):e.unref(m)("sidebars.ai.insert")),1)])])])):(e.openBlock(),e.createElementBlock("div",Lr,[e.createVNode(e.unref(Fe),{class:"mb-2 h-6 w-6 text-cyan-500 opacity-30"}),e.createElementVNode("p",Pr,e.toDisplayString(e.unref(m)("sidebars.ai.noDraft")),1)]))])])]),e.createElementVNode("div",Ir,[e.createElementVNode("form",{class:"space-y-2",onSubmit:c[1]||(c[1]=e.withModifiers(y=>l.value.trim()&&V(),["prevent"]))},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=y=>l.value=y),rows:"2",disabled:s.value,placeholder:e.unref(m)("sidebars.ai.promptPlaceholder"),class:"w-full min-h-[55px] resize-none rounded-xl border border-slate-200 bg-white p-2.5 text-xs text-slate-800 transition-all focus:border-cyan-500/50 focus:shadow-cyan focus:outline-none disabled:opacity-60 dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-100 dark:focus:border-cyan-500/30"},null,8,Hr),[[e.vModelText,l.value]]),e.createElementVNode("div",Fr,[e.createElementVNode("button",{type:"submit",disabled:s.value||!l.value.trim(),class:"flex items-center gap-1 rounded-lg bg-cyan-500 px-3.5 py-2 text-xs font-bold text-black shadow-cyan transition-all hover:bg-cyan-400 disabled:opacity-40"},[e.createVNode(e.unref(He),{class:"h-3.5 w-3.5"}),e.createTextVNode(" "+e.toDisplayString(e.unref(m)("sidebars.ai.promptAI")),1)],8,jr)])],32)])]))}}),Or={class:"comments-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100"},Ur={class:"border-b border-slate-200 p-4 dark:border-white/5"},qr={class:"mb-3 flex items-center justify-between"},Kr={class:"flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400"},Wr={class:"flex rounded-xl border border-slate-200 bg-slate-50 p-1 text-[11px] font-semibold dark:border-white/10 dark:bg-white/[0.02]"},Gr={key:0,class:"mb-1 rounded-xl border border-cyan-500/25 bg-cyan-500/5 p-2.5 text-xs text-cyan-700 animate-fadeIn dark:border-cyan-500/15 dark:bg-cyan-500/10 dark:text-cyan-400"},Jr={class:"mb-1 font-mono text-[9px] font-bold uppercase tracking-wider"},Zr={class:"line-clamp-1 border-l-2 border-cyan-400 bg-cyan-500/10 py-0.5 pl-2.5 italic dark:bg-cyan-500/5"},Yr={class:"flex-1 space-y-4 overflow-y-auto p-4"},Qr={class:"flex items-start justify-between"},Xr={class:"flex items-center gap-2"},es={class:"text-xs font-bold text-slate-800 dark:text-slate-200"},ts={class:"font-mono text-[9px] text-slate-400 dark:text-slate-500"},as=["title","onClick"],os={key:0,class:"max-w-full truncate rounded-r-lg border-l-2 border-cyan-500/50 bg-slate-100 py-1 pl-2.5 text-[10px] italic text-slate-500 dark:border-cyan-500/40 dark:bg-white/5 dark:text-slate-400"},ns={class:"whitespace-pre-wrap break-words text-xs leading-relaxed text-slate-700 dark:text-slate-300"},ls={key:1,class:"space-y-2.5 border-l border-slate-200 pl-4 pt-1 dark:border-white/10"},rs={class:"flex items-center gap-1.5"},ss={class:"text-[10px] font-bold text-slate-600 dark:text-slate-300"},is={class:"font-mono text-[8px] text-slate-400 dark:text-slate-500"},ds={class:"break-words pl-1 text-xs text-slate-600 dark:text-slate-400"},cs={key:2,class:"flex items-center justify-between border-t border-slate-100 pt-2 dark:border-white/5"},us={key:0,class:"flex w-full items-center gap-1.5"},ps=["onUpdate:modelValue","placeholder","onKeydown"],ms=["onClick"],fs=["onClick"],hs={key:3,class:"rounded-lg border border-green-100/40 bg-green-50/55 p-2 text-[10px] text-green-700 dark:border-green-500/10 dark:bg-green-950/10 dark:text-green-400"},gs={key:0},bs={key:0,class:"py-12 text-center text-slate-400 dark:text-slate-500"},ks={class:"text-xs"},vs={key:0,class:"border-t border-slate-200 bg-slate-50 p-4 dark:border-white/5 dark:bg-[#0a0f1e]/80"},xs=["placeholder"],ys={class:"flex items-center justify-between"},ws={class:"font-mono text-[9px] font-bold uppercase tracking-wider text-slate-400 dark:text-slate-500"},Es=["disabled"],Ns=e.defineComponent({__name:"CommentsSidebar",props:{comments:{},selectedTextSnippet:{},selectedTextIndex:{}},emits:["add-comment","add-reply","resolve-comment"],setup(o,{emit:i}){const a=o,t=i,{t:r}=ee(),m=e.ref(""),l=e.ref({}),g=e.ref(null),s=e.ref("active"),v=e.computed(()=>(a.comments??[]).filter(b=>s.value==="resolved"?b.resolved:!b.resolved));function C(){m.value.trim()&&(t("add-comment",m.value.trim(),a.selectedTextSnippet,a.selectedTextIndex),m.value="")}function V(b){const d=l.value[b]||"";d.trim()&&(t("add-reply",b,d.trim()),l.value={...l.value,[b]:""},g.value=null)}function S(b){return b.split(" ").map(d=>d[0]).join("").slice(0,2).toUpperCase()}return(b,d)=>(e.openBlock(),e.createElementBlock("div",Or,[e.createElementVNode("div",Ur,[e.createElementVNode("div",qr,[e.createElementVNode("h3",Kr,[e.createVNode(e.unref(Et),{class:"h-4 w-4 text-cyan-400"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.comments.title")),1)]),e.createElementVNode("div",Wr,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([s.value==="active"?"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 font-bold":"text-slate-400 hover:text-slate-600","rounded-lg px-2.5 py-1 transition-all"]),onClick:d[0]||(d[0]=p=>s.value="active")},e.toDisplayString(e.unref(r)("sidebars.comments.active")),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass([s.value==="resolved"?"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 font-bold":"text-slate-400 hover:text-slate-600","rounded-lg px-2.5 py-1 transition-all"]),onClick:d[1]||(d[1]=p=>s.value="resolved")},e.toDisplayString(e.unref(r)("sidebars.comments.resolved")),3)])]),o.selectedTextSnippet?(e.openBlock(),e.createElementBlock("div",Gr,[e.createElementVNode("p",Jr,e.toDisplayString(e.unref(r)("sidebars.comments.creatingAnchored")),1),e.createElementVNode("p",Zr,' "'+e.toDisplayString(o.selectedTextSnippet)+'" ',1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"relative space-y-3 rounded-2xl border border-slate-200/60 bg-slate-50/60 p-4 transition-all hover:border-cyan-500/30 hover:shadow-cyan dark:border-white/5 dark:bg-[#02040a]/40"},[e.createElementVNode("div",Qr,[e.createElementVNode("div",Xr,[e.createElementVNode("div",{class:"flex h-6 w-6 items-center justify-center rounded-full text-[10px] font-bold text-white shadow-sm",style:e.normalizeStyle({backgroundColor:p.authorColor})},e.toDisplayString(S(p.authorName)),5),e.createElementVNode("div",null,[e.createElementVNode("h4",es,e.toDisplayString(p.authorName),1),e.createElementVNode("p",ts,e.toDisplayString(new Date(p.createdAt).toLocaleTimeString()),1)])]),p.resolved?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"rounded-lg p-1.5 text-slate-400 transition-colors hover:bg-green-500/10 hover:text-green-500",title:e.unref(r)("sidebars.comments.resolve"),onClick:c=>t("resolve-comment",p.id)},[e.createVNode(e.unref(Xt),{class:"h-4 w-4"})],8,as))]),p.anchorText?(e.openBlock(),e.createElementBlock("div",os,e.toDisplayString(e.unref(r)("sidebars.comments.quote"))+' "'+e.toDisplayString(p.anchorText)+'" ',1)):e.createCommentVNode("",!0),e.createElementVNode("p",ns,e.toDisplayString(p.content),1),p.replies.length>0?(e.openBlock(),e.createElementBlock("div",ls,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.replies,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id,class:"space-y-1"},[e.createElementVNode("div",rs,[e.createElementVNode("div",{class:"flex h-4.5 w-4.5 items-center justify-center rounded-full text-[8px] font-bold text-white shadow-sm",style:e.normalizeStyle({backgroundColor:c.authorColor})},e.toDisplayString(S(c.authorName)),5),e.createElementVNode("span",ss,e.toDisplayString(c.authorName),1),e.createElementVNode("span",is,e.toDisplayString(new Date(c.createdAt).toLocaleTimeString()),1)]),e.createElementVNode("p",ds,e.toDisplayString(c.content),1)]))),128))])):e.createCommentVNode("",!0),p.resolved?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",cs,[g.value===p.id?(e.openBlock(),e.createElementBlock("div",us,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c=>l.value[p.id]=c,type:"text",placeholder:e.unref(r)("sidebars.comments.reply"),class:"flex-1 rounded-lg border border-slate-200 bg-white px-2.5 py-1.5 text-xs text-slate-800 focus:border-cyan-500/50 focus:outline-none dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-100 dark:focus:border-cyan-500/30",onKeydown:e.withKeys(c=>V(p.id),["enter"])},null,40,ps),[[e.vModelText,l.value[p.id]]]),e.createElementVNode("button",{type:"button",class:"rounded-lg bg-cyan-500 p-1.5 font-bold text-black shadow-cyan hover:bg-cyan-400",onClick:c=>V(p.id)},[e.createVNode(e.unref(He),{class:"h-3.5 w-3.5"})],8,ms)])):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"flex items-center gap-1 text-[10px] font-bold text-cyan-600 transition-all hover:text-cyan-500",onClick:c=>g.value=p.id},[e.createVNode(e.unref(Na),{class:"h-3 w-3"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.comments.replyInThread")),1)],8,fs))])),p.resolved?(e.openBlock(),e.createElementBlock("div",hs,[e.createTextVNode(e.toDisplayString(e.unref(r)("sidebars.comments.resolvedBy").replace("{user}",p.resolvedBy||"You"))+" ",1),p.resolvedAt?(e.openBlock(),e.createElementBlock("span",gs,"at "+e.toDisplayString(new Date(p.resolvedAt).toLocaleTimeString()),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),128)),v.value.length===0?(e.openBlock(),e.createElementBlock("div",bs,[e.createVNode(e.unref(ga),{class:"mx-auto mb-2 h-8 w-8 text-cyan-500 opacity-50"}),e.createElementVNode("p",ks,e.toDisplayString(e.unref(r)("sidebars.comments.noComments").replace("{mode}",s.value)),1)])):e.createCommentVNode("",!0)]),s.value==="active"?(e.openBlock(),e.createElementBlock("div",vs,[e.createElementVNode("form",{class:"space-y-2",onSubmit:e.withModifiers(C,["prevent"])},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":d[2]||(d[2]=p=>m.value=p),rows:"2",placeholder:o.selectedTextSnippet?e.unref(r)("sidebars.comments.commentOnSelection"):e.unref(r)("sidebars.comments.generalComment"),class:"w-full min-h-[60px] resize-none rounded-xl border border-slate-200 bg-white p-2.5 text-xs text-slate-800 transition-all focus:border-cyan-500/50 focus:shadow-cyan focus:outline-none dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-100 dark:focus:border-cyan-500/30"},null,8,xs),[[e.vModelText,m.value]]),e.createElementVNode("div",ys,[e.createElementVNode("span",ws,e.toDisplayString(o.selectedTextSnippet?e.unref(r)("sidebars.comments.anchoredComment"):e.unref(r)("sidebars.comments.general")),1),e.createElementVNode("button",{type:"submit",disabled:!m.value.trim(),class:"flex items-center gap-1 rounded-lg bg-cyan-500 px-3.5 py-2 text-xs font-bold text-black shadow-cyan transition-all hover:bg-cyan-400 disabled:opacity-50"},[e.createVNode(e.unref(He),{class:"h-3.5 w-3.5"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.comments.post")),1)],8,Es)])],32)])):e.createCommentVNode("",!0)]))}}),Ss={class:"history-sidebar flex h-full w-80 flex-shrink-0 flex-col border-l border-slate-200 bg-white/80 text-slate-800 backdrop-blur-xl transition-all dark:border-white/5 dark:bg-[#0a0f1e]/85 dark:text-slate-100"},Vs={class:"border-b border-slate-200 p-4 dark:border-white/5"},Cs={class:"flex items-center gap-1.5 font-mono text-xs font-bold uppercase tracking-widest text-slate-500 dark:text-slate-400"},Bs={class:"mt-1.5 text-[10px] leading-relaxed text-slate-400 dark:text-slate-500"},_s={class:"flex-1 space-y-3 overflow-y-auto p-4"},$s={key:0,class:"space-y-2 rounded-2xl border border-amber-500/30 bg-amber-500/10 p-3.5 text-xs animate-fadeIn dark:border-amber-500/20"},Ms={class:"flex items-start gap-1.5 text-amber-700 dark:text-amber-400"},Ds={class:"font-bold"},Ts={class:"mt-0.5 text-[10px] leading-relaxed text-amber-600 dark:text-amber-500"},As={class:"flex justify-end gap-2 pt-1"},zs={class:"space-y-2.5"},Ls={class:"mb-1 flex items-center justify-between"},Ps={class:"rounded-md bg-slate-200 px-1.5 py-0.5 font-mono text-[9px] font-bold text-slate-500 dark:bg-cyan-500/10 dark:text-cyan-400"},Is={class:"flex items-center gap-0.5 font-mono text-[9px] text-slate-400 dark:text-slate-500"},Hs={class:"text-xs font-bold leading-snug text-slate-800 dark:text-slate-200"},Fs={class:"flex items-center gap-1.5 text-[10px] text-slate-500"},js={class:"font-semibold text-slate-600 dark:text-slate-300"},Rs={class:"flex justify-end gap-2 border-t border-slate-200/50 pt-2 dark:border-white/5"},Os=["onClick"],Us=["onClick"],qs={key:0,class:"py-6 text-center text-xs text-slate-400 dark:text-slate-500"},Ks={class:"border-t border-slate-200 bg-slate-50 p-4 dark:border-white/5 dark:bg-[#0a0f1e]/85"},Ws=["placeholder"],Gs={class:"flex justify-end gap-2"},Js={type:"submit",class:"rounded-lg bg-cyan-500 px-3.5 py-1.5 text-xs font-bold text-black shadow-cyan hover:bg-cyan-400"},Zs=e.defineComponent({__name:"HistorySidebar",props:{snapshots:{},activePreviewIndex:{}},emits:["save-snapshot","restore-snapshot","preview-snapshot"],setup(o,{emit:i}){const a=o,t=i,{t:r}=ee(),m=e.ref(""),l=e.ref(!1);function g(){m.value.trim()&&(t("save-snapshot",m.value.trim()),m.value="",l.value=!1)}const s=e.computed(()=>a.snapshots??[]);return(v,C)=>(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",Vs,[e.createElementVNode("h3",Cs,[e.createVNode(e.unref(xt),{class:"h-4 w-4 text-cyan-400"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.history.title")),1)]),e.createElementVNode("p",Bs,e.toDisplayString(e.unref(r)("sidebars.history.empty")),1)]),e.createElementVNode("div",_s,[o.activePreviewIndex!==null?(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Ms,[e.createVNode(e.unref(Ca),{class:"mt-0.5 h-4 w-4 flex-shrink-0 text-amber-500"}),e.createElementVNode("div",null,[e.createElementVNode("p",Ds,e.toDisplayString(e.unref(r)("sidebars.history.viewingPreview")),1),e.createElementVNode("p",Ts,e.toDisplayString(e.unref(r)("sidebars.history.readOnlyPreview").replace("{index}",String(o.activePreviewIndex))),1)])]),e.createElementVNode("div",As,[e.createElementVNode("button",{type:"button",class:"rounded-lg px-2.5 py-1 text-[10px] font-semibold text-slate-500 hover:bg-white/5 hover:text-slate-700 dark:text-slate-400",onClick:C[0]||(C[0]=V=>t("preview-snapshot",null))},e.toDisplayString(e.unref(r)("sidebars.history.closePreview")),1),e.createElementVNode("button",{type:"button",class:"flex items-center gap-1 rounded-lg bg-cyan-500 px-3 py-1 text-[10px] font-bold text-black shadow-cyan transition-all hover:bg-cyan-400",onClick:C[1]||(C[1]=()=>{t("restore-snapshot",o.activePreviewIndex),t("preview-snapshot",null)})},[e.createVNode(e.unref(Xe),{class:"h-3 w-3"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.history.restoreThis")),1)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.versionIndex,class:e.normalizeClass(["space-y-2.5 rounded-2xl border p-4 transition-all",o.activePreviewIndex===V.versionIndex?"border-cyan-500/40 bg-cyan-500/5 shadow-cyan dark:border-cyan-500/30":"border-slate-200/60 bg-slate-50/60 hover:border-cyan-500/30 dark:border-white/5 dark:bg-[#02040a]/40 dark:hover:border-white/10"])},[e.createElementVNode("div",null,[e.createElementVNode("div",Ls,[e.createElementVNode("span",Ps,e.toDisplayString(e.unref(r)("sidebars.history.version"))+" #"+e.toDisplayString(V.versionIndex),1),e.createElementVNode("span",Is,[e.createVNode(e.unref(Yt),{class:"h-2.5 w-2.5"}),e.createTextVNode(" "+e.toDisplayString(new Date(V.timestamp).toLocaleDateString())+" "+e.toDisplayString(new Date(V.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})),1)])]),e.createElementVNode("h4",Hs,e.toDisplayString(V.title),1)]),e.createElementVNode("div",Fs,[e.createVNode(e.unref(za),{class:"h-3.5 w-3.5"}),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(r)("sidebars.history.modifiedBy"))+" ",1),e.createElementVNode("strong",js,e.toDisplayString(V.modifiedBy),1)])]),e.createElementVNode("div",Rs,[o.activePreviewIndex!==V.versionIndex?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"flex items-center gap-1 text-[10px] font-bold text-slate-500 transition-colors hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400",onClick:S=>t("preview-snapshot",V)},[e.createVNode(e.unref(oa),{class:"h-3 w-3"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.history.preview")),1)],8,Os)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"flex items-center gap-1 text-[10px] font-bold text-cyan-600 transition-colors hover:text-cyan-500 dark:text-cyan-400 dark:hover:text-cyan-300",onClick:S=>t("restore-snapshot",V.versionIndex)},[e.createVNode(e.unref(Xe),{class:"h-3 w-3"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.history.restore")),1)],8,Us)])],2))),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("p",qs,e.toDisplayString(e.unref(r)("sidebars.history.noSnapshots")),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Ks,[l.value?(e.openBlock(),e.createElementBlock("form",{key:0,class:"space-y-2 animate-fadeIn",onSubmit:e.withModifiers(g,["prevent"])},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":C[2]||(C[2]=V=>m.value=V),type:"text",required:"",placeholder:e.unref(r)("sidebars.history.snapshotPlaceholder"),class:"w-full rounded-xl border border-slate-200 bg-white px-2.5 py-1.5 text-xs text-slate-800 transition-all focus:border-cyan-500/50 focus:shadow-cyan focus:outline-none dark:border-white/10 dark:bg-white/[0.02] dark:text-slate-100 dark:focus:border-cyan-500/30"},null,8,Ws),[[e.vModelText,m.value]]),e.createElementVNode("div",Gs,[e.createElementVNode("button",{type:"button",class:"rounded-lg px-2.5 py-1 text-[10px] text-slate-500 hover:bg-white/5 dark:text-slate-400",onClick:C[3]||(C[3]=V=>l.value=!1)},e.toDisplayString(e.unref(r)("sidebars.history.cancel")),1),e.createElementVNode("button",Js,e.toDisplayString(e.unref(r)("sidebars.history.save")),1)])],32)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"flex w-full items-center justify-center gap-1.5 rounded-xl border border-dashed border-slate-300 py-2.5 text-xs font-bold text-slate-500 transition-all hover:border-cyan-500 hover:bg-cyan-500/5 hover:text-cyan-500 dark:border-white/10 dark:text-slate-400 dark:hover:border-cyan-400/50 dark:hover:text-cyan-400",onClick:C[4]||(C[4]=V=>l.value=!0)},[e.createVNode(e.unref(Sa),{class:"h-3.5 w-3.5 animate-pulse"}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("sidebars.history.saveNamedSnapshot")),1)]))])]))}}),Ys={class:"docs-editor-left-sidebar flex w-14 flex-shrink-0 flex-col items-center border-r border-slate-200 bg-slate-50/50 py-3 dark:border-slate-800 dark:bg-[#080d1a] md:w-64 md:items-stretch md:px-3"},Qs={class:"mb-4 flex items-center justify-between px-1"},Xs=["title"],ei={class:"hidden flex-col gap-4 md:flex"},ti={class:"flex items-center justify-between px-2"},ai={class:"text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wide"},oi=["title"],ni={class:"flex flex-col gap-1 pr-1"},li=["onClick"],ri={class:"truncate"},si={key:1,class:"flex flex-1 items-center gap-2 pr-6"},ii=["onBlur","onKeydown"],di={class:"relative flex items-center"},ci=["onClick"],ui={key:1,class:"absolute right-0 top-6 z-50 w-28 rounded-lg border border-slate-200/80 bg-white py-1 shadow-lg dark:border-slate-700 dark:bg-slate-800 text-slate-700 dark:text-slate-200"},pi=["onClick"],mi=["disabled","onClick"],fi={class:"flex flex-col gap-1.5 px-2"},hi={class:"text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wide"},gi={key:0,class:"flex flex-col gap-1 mt-1"},bi=["onClick"],ki={key:1,class:"text-xs leading-relaxed text-slate-400 dark:text-slate-500 italic mt-1 font-sans"},vi={class:"flex flex-col gap-2 md:hidden"},xi=["title","onClick"],yi=e.defineComponent({__name:"DocumentTabsSidebar",props:{tabs:{default:()=>[{id:"tab-1",label:"Tab 1",active:!0}]},editor:{default:null},backTitle:{default:""}},emits:["collapse","add-tab","select-tab","delete-tab","rename-tab"],setup(o,{emit:i}){const{t:a}=ee(),t=o,r=e.computed(()=>t.backTitle||a("common.cancel")),m=i,l=e.ref(null),g=e.ref(null),s=e.ref(""),v=N=>{g.value=N.id,s.value=N.label,l.value=null},C=N=>{s.value.trim()&&m("rename-tab",{id:N,label:s.value.trim()}),g.value=null},V=()=>{g.value=null},S=N=>{m("delete-tab",N),l.value=null},b=N=>{l.value=l.value===N?null:N},d=e.ref([]),p=()=>{if(!t.editor)return;const N=[];t.editor.state.doc.descendants((B,_)=>{if(B.type.name==="heading"){const D=B.attrs.level;(D===1||D===2||D===3)&&N.push({id:`heading-${_}`,text:B.textContent.trim()||a("documentTabs.untitledHeading").replace("{level}",String(D)),level:D,pos:_})}return!0}),d.value=N};let c=null;e.watch(()=>t.editor,N=>{if(c&&(c(),c=null),!N){d.value=[];return}p();const B=()=>{p()};N.on("update",B),c=()=>{N.off("update",B)}},{immediate:!0});const y=N=>{t.editor&&(t.editor.chain().focus().setTextSelection(N.pos).run(),setTimeout(()=>{var D;const B=document.querySelector(".docs-editor-scroll");if(!B)return;const _=B.querySelectorAll(".ProseMirror h1, .ProseMirror h2, .ProseMirror h3");for(const L of Array.from(_))if(((D=L.textContent)==null?void 0:D.trim())===N.text){L.scrollIntoView({behavior:"smooth",block:"center"});return}},50))};return(N,B)=>(e.openBlock(),e.createElementBlock("aside",Ys,[e.createElementVNode("div",Qs,[e.createElementVNode("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-200/80 dark:text-slate-400 dark:hover:bg-slate-800/80",title:r.value,onClick:B[0]||(B[0]=_=>m("collapse"))},[e.createVNode(e.unref(Jt),{class:"h-[18px] w-[18px]"})],8,Xs)]),e.createElementVNode("div",ei,[e.createElementVNode("div",ti,[e.createElementVNode("span",ai,e.toDisplayString(e.unref(a)("documentTabs.documentTabs")),1),e.createElementVNode("button",{type:"button",class:"flex h-6 w-6 items-center justify-center rounded-full text-slate-600 hover:bg-slate-200 dark:text-slate-400 dark:hover:bg-slate-800 transition-colors",title:e.unref(a)("documentTabs.addTab"),onClick:B[1]||(B[1]=_=>m("add-tab"))},[e.createVNode(e.unref(Le),{class:"h-4 w-4"})],8,oi)]),e.createElementVNode("div",ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,_=>(e.openBlock(),e.createElementBlock("div",{key:_.id,class:e.normalizeClass(["group relative flex w-full items-center justify-between rounded-r-full py-1.5 pl-3 pr-2 text-left text-sm transition-all",[_.active?"bg-[#c2e7ff]/70 text-[#001d35] dark:bg-blue-950/40 dark:text-blue-200 font-medium":"text-slate-700 hover:bg-slate-200/40 dark:text-slate-300 dark:hover:bg-slate-800/30"]])},[g.value!==_.id?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"flex flex-1 items-center gap-2 truncate pr-6 text-left",onClick:D=>m("select-tab",_.id)},[e.createVNode(e.unref(ke),{class:"h-4 w-4 flex-shrink-0 opacity-70"}),e.createElementVNode("span",ri,e.toDisplayString(_.label),1)],8,li)):e.createCommentVNode("",!0),g.value===_.id?(e.openBlock(),e.createElementBlock("div",si,[e.createVNode(e.unref(ke),{class:"h-4 w-4 flex-shrink-0 opacity-70"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[2]||(B[2]=D=>s.value=D),type:"text",class:"flex-1 rounded border border-blue-400 bg-white px-1.5 py-0.5 text-xs text-slate-800 outline-none focus:ring-1 focus:ring-blue-400/50 dark:bg-slate-900 dark:text-slate-100",onBlur:D=>C(_.id),onKeydown:[e.withKeys(D=>C(_.id),["enter"]),e.withKeys(V,["esc"])],onClick:B[3]||(B[3]=e.withModifiers(()=>{},["stop"]))},null,40,ii),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",di,[g.value!==_.id?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["rounded-full p-1 text-slate-500 opacity-0 transition-opacity hover:bg-slate-200/70 group-hover:opacity-100 dark:hover:bg-slate-700/70",{"opacity-100":l.value===_.id}]),onClick:e.withModifiers(D=>b(_.id),["stop"])},[e.createVNode(e.unref(vt),{class:"h-3.5 w-3.5"})],10,ci)):e.createCommentVNode("",!0),l.value===_.id?(e.openBlock(),e.createElementBlock("div",ui,[e.createElementVNode("button",{type:"button",class:"flex w-full items-center px-3 py-1.5 text-xs hover:bg-slate-50 dark:hover:bg-slate-700/50",onClick:e.withModifiers(D=>v(_),["stop"])},e.toDisplayString(e.unref(a)("documentTabs.rename")),9,pi),e.createElementVNode("button",{type:"button",class:"flex w-full items-center px-3 py-1.5 text-xs text-red-600 dark:text-red-400 hover:bg-slate-50 dark:hover:bg-slate-700/50 disabled:opacity-40",disabled:o.tabs.length<=1,onClick:e.withModifiers(D=>S(_.id),["stop"])},e.toDisplayString(e.unref(a)("documentTabs.delete")),9,mi)])):e.createCommentVNode("",!0)])],2))),128))]),B[4]||(B[4]=e.createElementVNode("div",{class:"h-px bg-slate-200/80 dark:bg-slate-800 mx-2"},null,-1)),e.createElementVNode("div",fi,[e.createElementVNode("span",hi,e.toDisplayString(e.unref(a)("documentTabs.outline")),1),d.value.length>0?(e.openBlock(),e.createElementBlock("div",gi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,_=>(e.openBlock(),e.createElementBlock("button",{key:_.id,type:"button",class:e.normalizeClass(["w-full text-left text-xs text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200 py-1 transition-colors truncate",[_.level===2?"pl-3":"",_.level===3?"pl-6":""]]),onClick:D=>y(_)},e.toDisplayString(_.text),11,bi))),128))])):(e.openBlock(),e.createElementBlock("p",ki,e.toDisplayString(e.unref(a)("documentTabs.placeholder")),1))])]),e.createElementVNode("div",vi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabs,_=>(e.openBlock(),e.createElementBlock("button",{key:_.id,type:"button",class:e.normalizeClass(["flex h-8 w-8 items-center justify-center rounded-lg transition-colors",[_.active?"bg-blue-100 text-blue-600 dark:bg-blue-950/40 dark:text-blue-300":"text-slate-500 hover:bg-slate-200 dark:text-slate-400 dark:hover:bg-slate-800"]]),title:_.label,onClick:D=>m("select-tab",_.id)},[e.createVNode(e.unref(ke),{class:"h-4 w-4"})],10,xi))),128))])]))}}),wi=["value"],Ei=["value"],Ni=e.defineComponent({__name:"FontSizeSelect",props:{editor:{}},setup(o){const i=o,a=["10px","12px","14px","16px","18px","20px","24px","30px","36px"],t=e.computed(()=>i.editor&&i.editor.getAttributes("textStyle").fontSize||"16px");function r(m,l){l.preventDefault(),i.editor&&(m==="16px"?i.editor.commands.unsetFontSize():i.editor.commands.setFontSize(m),i.editor.commands.focus())}return(m,l)=>o.editor?(e.openBlock(),e.createElementBlock("select",{key:0,class:"h-7 rounded border border-slate-200 bg-white px-2 text-xs text-slate-600 outline-none transition focus:border-cyan-400 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300",value:t.value,onChange:l[0]||(l[0]=g=>r(g.target.value,g))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>e.createElementVNode("option",{key:g,value:g},e.toDisplayString(g),9,Ei)),64))],40,wi)):e.createCommentVNode("",!0)}});exports.AISidebar=Rr;exports.BubbleMenu=Bt;exports.CommentsSidebar=Ns;exports.DocsEditor=cr;exports.DocumentTabsSidebar=yi;exports.EditorToolbar=Vt;exports.FontSizeSelect=Ni;exports.HeaderBar=St;exports.HistorySidebar=Zs;exports.PageView=kr;exports.SlashMenu=bt;exports.StatusBar=_t;exports.TOCSidebar=$t;exports.ThemeToggle=Re;exports.defaultLocale=Ue;exports.getLocaleMessages=ct;exports.getLocaleName=ht;exports.getSupportedLocales=gt;exports.isLocale=Ae;exports.messages=Te;exports.provideLocale=ft;exports.useEditor=st;exports.useLocale=ee;exports.useTheme=Oe;