@hiai-gg/docsmint 2.1.0 → 2.1.3
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.
- package/README.md +11 -3
- package/dist/backend/index.js +50507 -67754
- package/dist/backend-account-runtime-cleanup.js +308 -292
- package/dist/backend-api-key-facade.js +4 -4
- package/dist/backend-pipeline-cancellation.js +285 -285
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +602 -0
- package/dist/frontend/{ConfirmDialog-B1MjKlVQ.js → ConfirmDialog-0JwB8mKN.js} +5 -8
- package/dist/frontend/{CreateSnapshotDialog-BTMoPFdj.js → CreateSnapshotDialog-BLrtuYs5.js} +63 -68
- package/dist/frontend/{DatePicker-Bmjko3X7.js → DatePicker-BwSb8TRv.js} +17 -29
- package/dist/frontend/{DeleteDialog-BkfIeKXO.js → DeleteDialog-s7Dr6bXg.js} +51 -56
- package/dist/frontend/{FolderNode-Do8pIfyA.js → FolderNode-Y7cV9xeX.js} +105 -106
- package/dist/frontend/{FolderTreeSelector-FyxhcHjr.js → FolderTreeSelector-BR3lYmPU.js} +18 -20
- package/dist/frontend/HiAiEditor-BHz46Iqd.js +3078 -0
- package/dist/frontend/{HiaiDocsExtensionProvider-Cc3yzW5I.js → HiaiDocsExtensionProvider-A2nGddUR.js} +2 -3
- package/dist/frontend/{Icon-3EYzvNyk.js → Icon-CiHcxcpv.js} +1 -2
- package/dist/frontend/SettingsDialog-BvS74JZu.js +978 -0
- package/dist/frontend/{ShareDialog-Ddvl7xvb.js → ShareDialog-Bo50h_Oe.js} +23 -25
- package/dist/frontend/Sidebar-i0kbanpg.js +2123 -0
- package/dist/frontend/{TagCreateDialog-DQmMJe_E.js → TagCreateDialog-DhKfsfv3.js} +78 -86
- package/dist/frontend/action_cancel-BdsWzQKU.js +4 -0
- package/dist/frontend/action_close-CVhfLPRQ.js +4 -0
- package/dist/frontend/action_create-ByaroO1_.js +4 -0
- package/dist/frontend/action_delete-SRloglWY.js +4 -0
- package/dist/frontend/action_go_to-DO1bicF-.js +4 -0
- package/dist/frontend/action_loading-iQ0KsN6i.js +4 -0
- package/dist/frontend/action_save-DeqrZQwV.js +4 -0
- package/dist/frontend/api/attachments.js +1 -2
- package/dist/frontend/api/categories.js +1 -2
- package/dist/frontend/api/documents.js +1 -2
- package/dist/frontend/api/folders.js +1 -2
- package/dist/frontend/api/settings.js +1 -2
- package/dist/frontend/api/share.js +1 -2
- package/dist/frontend/api/tags.js +1 -2
- package/dist/frontend/{api-keys-DIwAdYkg.js → api-keys-B63imiLr.js} +2 -3
- package/dist/frontend/app-shell.js +55 -79
- package/dist/frontend/{attachments-C225gTA7.js → attachments-Bfly-sam.js} +2 -3
- package/dist/frontend/{auth-client-C5EyWdAF.js → auth-client-Dx7d9Tzo.js} +252 -253
- package/dist/frontend/{bundle-mjs-CZ3g1Uzr.js → bundle-mjs-clTO1WW-.js} +5 -23
- package/dist/frontend/{camera-DtgHzfVI.js → camera-DsdOPOcD.js} +2 -3
- package/dist/frontend/{categories-C8AAkhCR.js → categories-CusvHb5Y.js} +3 -4
- package/dist/frontend/{categories_update_error-4aSI8PTr.js → categories_update_error-Cn8DBBHv.js} +2 -3
- package/dist/frontend/{check-DVx65aSv.js → check-DiMZRkKS.js} +2 -3
- package/dist/frontend/{chevron-down-C2tbZ8Ol.js → chevron-down-CxFrMFDJ.js} +2 -3
- package/dist/frontend/{circle-check-BAN-D7yg.js → circle-check-B4F_qgPx.js} +2 -3
- package/dist/frontend/{client-GbtOH90i.js → client-BDdDd84W.js} +1 -2
- package/dist/frontend/{clipboard-Cgzxc0_R.js → clipboard-Dt1oW6nm.js} +1 -2
- package/dist/frontend/{clock-ByiB0SwQ.js → clock-dcpueRk-.js} +2 -3
- package/dist/frontend/collaboration.js +9 -13
- package/dist/frontend/components/category-dialog.js +1 -2
- package/dist/frontend/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend/components/delete-dialog.js +1 -2
- package/dist/frontend/components/editor/compact-editor.js +2 -3
- package/dist/frontend/components/editor/document-editor.js +1 -2
- package/dist/frontend/components/editor/document-title.js +3 -4
- package/dist/frontend/components/editor/docx-serializer.js +123 -167
- package/dist/frontend/components/editor/extensions.js +1 -2
- package/dist/frontend/components/editor/markdown-toggle.js +5 -6
- package/dist/frontend/components/editor/markdown.js +1 -2
- package/dist/frontend/components/folder-node.js +1 -2
- package/dist/frontend/components/folder-tree-selector.js +1 -2
- package/dist/frontend/components/save-as-dialog.js +86 -90
- package/dist/frontend/components/settings.js +1 -2
- package/dist/frontend/components/share-dialog.js +1 -2
- package/dist/frontend/components/sidebar.js +1 -2
- package/dist/frontend/components/tag-create-dialog.js +1 -2
- package/dist/frontend/components/version-history.js +256 -190
- package/dist/frontend/{context-D0zPFXZ4.js → context-BguSRnCt.js} +1 -2
- package/dist/frontend/{copy-CRzvfZGb.js → copy-Bag46YaR.js} +2 -3
- package/dist/frontend/dashboard.js +666 -690
- package/dist/frontend/{db-CgTtukT4.js → db-B1ZV452J.js} +22 -39
- package/dist/frontend/{dialog-a_ZcpEC5.js → dialog-C0Bpok1d.js} +10 -18
- package/dist/frontend/{dist-CcHOStsA.js → dist-BlcV_BOY.js} +2 -3
- package/dist/frontend/{dist-qd_OnyUC.js → dist-DjId3RKL.js} +8 -21
- package/dist/frontend/dist-Dl9qg10h.js +301 -0
- package/dist/frontend/{dndzone-CDhrbpTg.js → dndzone-C62yjeG3.js} +38 -53
- package/dist/frontend/doc-tabs.js +1 -2
- package/dist/frontend/doc_title_label-BOuZzvqv.js +4 -0
- package/dist/frontend/doc_title_placeholder-ZxpdWWEn.js +4 -0
- package/dist/frontend/{document-drop-coordinator-Da7HcXgv.js → document-drop-coordinator-C_o93kKW.js} +3 -4
- package/dist/frontend/document-drop-coordinator.js +1 -2
- package/dist/frontend/{documents-CwCs1rA7.js → documents-CDJb8dv-.js} +4 -8
- package/dist/frontend/{dropdown-menu-DrHYReIC.js → dropdown-menu-B3nk2aM-.js} +13 -24
- package/dist/frontend/{editor-content-sanitizer-CWjqiz0T.js → editor-content-sanitizer-5MjSVPVn.js} +1 -2
- package/dist/frontend/editor-preferences.js +1 -2
- package/dist/frontend/{editor-preferences.svelte-Bt_A9k7n.js → editor-preferences.svelte-BpTE4mbz.js} +3 -5
- package/dist/frontend/{editorExtensions-DPR-CjMu.js → editorExtensions-DbiFj4tn.js} +3 -4
- package/dist/frontend/{editor_markdown_placeholder-BIWDUF1E.js → editor_markdown_placeholder-BztIY9Ci.js} +2 -3
- package/dist/frontend/{ellipsis-vertical-qxNgoXu-.js → ellipsis-vertical-Oymsv1R4.js} +2 -3
- package/dist/frontend/{error_dismiss-Dx_JbRjs.js → error_dismiss-C651ZdWI.js} +2 -3
- package/dist/frontend/error_generic-BlWqOE-a.js +4 -0
- package/dist/frontend/extension.js +1 -2
- package/dist/frontend/{folder-D74E-Kdp.js → folder-BpmB_sAy.js} +3 -5
- package/dist/frontend/folder-refresh.js +1 -2
- package/dist/frontend/{folders-CC0UWkZH.js → folders-DgKSovXa.js} +2 -3
- package/dist/frontend/{folders_rename-BJo4Gipq.js → folders_rename-Cxbg5GIw.js} +2 -3
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +144 -145
- package/dist/frontend/{identity-CNhtuCJV.js → identity-B7HeOzDJ.js} +4 -5
- package/dist/frontend/{input-Q_7qCfnU.js → input-CbeB9220.js} +2 -3
- package/dist/frontend/keyboard.js +1 -2
- package/dist/frontend/{keyboard.svelte-CApmX0vl.js → keyboard.svelte-BBUdhTsM.js} +2 -3
- package/dist/frontend/{label-Dj8FDEhf.js → label-CfBWf3gI.js} +2 -3
- package/dist/frontend/{lib-aUbBbIW2.js → lib-CITdCbKa.js} +176 -365
- package/dist/frontend/{loader-circle-D3t5NkvC.js → loader-circle-skKwfRCB.js} +2 -3
- package/dist/frontend/markdown-6E9TWC6V.js +11 -0
- package/dist/frontend/offline/identity.js +1 -2
- package/dist/frontend/{popper-layer-force-mount-CNtiLgbV.js → popper-layer-force-mount-BG0eyrCk.js} +112 -284
- package/dist/frontend/{resolve-BG4HgzpN.js → resolve-DbT-KhGZ.js} +2 -3
- package/dist/frontend/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-CwxnZyOB.js} +2 -3
- package/dist/frontend/{rotate-ccw-B1ybQ8oQ.js → rotate-ccw-DAUX7np7.js} +2 -3
- package/dist/frontend/{route-context-DYQlUfzL.js → route-context-6OHiGtfb.js} +2 -4
- package/dist/frontend/{runtime-CwWSo6c9.js → runtime-CGUiMzK6.js} +1 -2
- package/dist/frontend/{schemas-1Na35n71.js → schemas-YXxhj5o8.js} +850 -880
- package/dist/frontend/scroll_to_top_aria-lJc2RSx_.js +4 -0
- package/dist/frontend/{search-preferences-B1GdbdUc.js → search-preferences-DuLDczRu.js} +1 -2
- package/dist/frontend/search.js +277 -292
- package/dist/frontend/{search_title-DOC0cPlQ.js → search_title-BETwQYJq.js} +2 -3
- package/dist/frontend/{select-value-BkI1W1bn.js → select-value-BY5Hw6Rl.js} +28 -65
- package/dist/frontend/{settings-CHx4wBwb.js → settings-DyePuqjp.js} +3 -4
- package/dist/frontend/{share-D5yo0JOh.js → share-3gWTTYvH.js} +2 -3
- package/dist/frontend/{share-context-BJ4GF4yT.js → share-context-C2xyVP9M.js} +29 -37
- package/dist/frontend/{share_copied-DPxVzfWh.js → share_copied-BuAnmpbz.js} +2 -3
- package/dist/frontend/{share_toggle_password-DdxfIjj1.js → share_toggle_password-LEYUeHWr.js} +2 -3
- package/dist/frontend/shared-document.js +27 -36
- package/dist/frontend/{sidebar_uncategorized-qJ2_Aonf.js → sidebar_uncategorized-C5PGOflV.js} +2 -3
- package/dist/frontend/{sort_relevance-DwYX5MO9.js → sort_relevance-DpCVLby_.js} +2 -3
- package/dist/frontend/{subfolders-refresh-store.svelte-DxP21a1c.js → subfolders-refresh-store.svelte-CeyqvNpu.js} +1 -2
- package/dist/frontend/{tag-qbTBLj-g.js → tag-Wdfe0rKU.js} +3 -5
- package/dist/frontend/{tag-store.svelte-ogVCMCbv.js → tag-store.svelte-C9VYWqLQ.js} +2 -3
- package/dist/frontend/{tags-CF_cqzSV.js → tags-DlDVothf.js} +3 -4
- package/dist/frontend/{tags_load_error-BKjA1pI0.js → tags_load_error-BINNpPPV.js} +2 -3
- package/dist/frontend/{tags_new-BiNAJ9Bx.js → tags_new-Dw0Uy43-.js} +2 -3
- package/dist/frontend/{textarea-BNK0LFUK.js → textarea-D6emvAwM.js} +2 -3
- package/dist/frontend/theme.js +2 -3
- package/dist/frontend/{theme.svelte-BRdxXd-B.js → theme.svelte-BiXvrqwh.js} +7 -23
- package/dist/frontend/{theme_system-BBNUhYKh.js → theme_system-YIfa_2Xt.js} +2 -3
- package/dist/frontend/utils/clipboard.js +1 -2
- package/dist/frontend/utils/dndzone.js +1 -2
- package/dist/frontend/{utils-BovMJHdA.js → utils-CnAmIMwr.js} +2 -3
- package/dist/frontend/utils-DH0uqK40.js +6 -0
- package/dist/frontend/utils.js +1 -2
- package/dist/frontend/version_create_snapshot-D8xjbuCq.js +4 -0
- package/dist/frontend/{version_restored_from-dVRN3Zdk.js → version_restored_from-DYFFSuQj.js} +2 -3
- package/dist/frontend/{version_snapshot_label_placeholder-DrMikux0.js → version_snapshot_label_placeholder-BhKq1NQ7.js} +2 -3
- package/dist/frontend/{weekday_we-C5H_M-df.js → weekday_we-BxbzNVWR.js} +2 -3
- package/dist/frontend/{x-CvSSnrjl.js → x-CBUgPygC.js} +2 -3
- package/dist/frontend/{yjs-VUcKqaKW.js → yjs-BbwnvxgY.js} +9 -23
- package/dist/frontend-ssr/api/attachments.js +2 -3
- package/dist/frontend-ssr/api/categories.js +1 -2
- package/dist/frontend-ssr/api/documents.js +1 -2
- package/dist/frontend-ssr/api/folders.js +1 -2
- package/dist/frontend-ssr/api/settings.js +1 -2
- package/dist/frontend-ssr/api/share.js +2 -3
- package/dist/frontend-ssr/api/tags.js +1 -2
- package/dist/frontend-ssr/app-shell.js +19 -28
- package/dist/frontend-ssr/assets/{CategoryDialog-DuZLLlt7.js → CategoryDialog-2CCX508O.js} +17 -20
- package/dist/frontend-ssr/assets/{ConfirmDialog-0WVu9BCE.js → ConfirmDialog-Cc6lcY1N.js} +8 -14
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-3vhDTFNu.js → CreateSnapshotDialog-BB8fXF9W.js} +9 -10
- package/dist/frontend-ssr/assets/{DatePicker-t12leL2Y.js → DatePicker-CfzKzipR.js} +9 -15
- package/dist/frontend-ssr/assets/{DeleteDialog-B0AU1fJR.js → DeleteDialog-DRU4UgOW.js} +4 -5
- package/dist/frontend-ssr/assets/{FolderNode-C-B-s8x1.js → FolderNode-Dg_5-orQ.js} +11 -12
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DdQuEcj0.js → FolderTreeSelector-D0reTdFS.js} +5 -7
- package/dist/frontend-ssr/assets/{HiAiEditor-Cj3B2Dt6.js → HiAiEditor-BQGlGd3z.js} +57 -83
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-BRKWmcDd.js → HiaiDocsExtensionProvider-D6cGL-9s.js} +2 -3
- package/dist/frontend-ssr/assets/{Icon-DE_3EnuF.js → Icon-CrIRbT5O.js} +4 -8
- package/dist/frontend-ssr/assets/{SettingsDialog-DAT-Zxu0.js → SettingsDialog-BpHY3IMb.js} +29 -40
- package/dist/frontend-ssr/assets/{ShareDialog-CpE9zd_f.js → ShareDialog-CY40nWZJ.js} +7 -9
- package/dist/frontend-ssr/assets/{Sidebar-B_Ey6QNL.js → Sidebar-fpYk5MGO.js} +55 -63
- package/dist/frontend-ssr/assets/{TagCreateDialog-DBHO1DPU.js → TagCreateDialog-C2tpdEuj.js} +13 -14
- package/dist/frontend-ssr/assets/{action_cancel-OVgQDP5Q.js → action_cancel-CsBbxW0m.js} +2 -3
- package/dist/frontend-ssr/assets/{action_close-DagDyMXk.js → action_close-lFKBqBwg.js} +2 -3
- package/dist/frontend-ssr/assets/{action_create-hqJWjyqh.js → action_create-BV4ZOcQW.js} +2 -3
- package/dist/frontend-ssr/assets/{action_delete-B1-16jSo.js → action_delete-CNmRhKQP.js} +2 -3
- package/dist/frontend-ssr/assets/{action_go_to-DQScgw7P.js → action_go_to-tN5I26xM.js} +2 -3
- package/dist/frontend-ssr/assets/{action_save-Bx7vlLZI.js → action_save-YCfMiKb4.js} +2 -3
- package/dist/frontend-ssr/assets/{api-keys-CHOrbU-Q.js → api-keys-G6oimJIv.js} +2 -3
- package/dist/frontend-ssr/assets/{auth-client-CITU3xkE.js → auth-client-BnnnJDAb.js} +102 -71
- package/dist/frontend-ssr/assets/{camera-B6ldo_Js.js → camera-OYNSMvMd.js} +2 -3
- package/dist/frontend-ssr/assets/{categories-C_dxFoHi.js → categories-bBPviKjl.js} +2 -3
- package/dist/frontend-ssr/assets/{categories_update_error-DkKgsqdD.js → categories_update_error-Bfx5vtvt.js} +11 -21
- package/dist/frontend-ssr/assets/{chevron-down-DQcr6JUc.js → chevron-down-DB6YsSbQ.js} +2 -3
- package/dist/frontend-ssr/assets/{chevron-right-9szrliZx.js → chevron-right-DOt2uY6b.js} +2 -3
- package/dist/frontend-ssr/assets/{circle-check-BgP9MRRv.js → circle-check-DQhTm9YR.js} +2 -3
- package/dist/frontend-ssr/assets/{client-rfwQYYHY.js → client-B2AniXwV.js} +1 -2
- package/dist/frontend-ssr/assets/{clipboard-CXOaoz2W.js → clipboard-CXKnyYba.js} +1 -2
- package/dist/frontend-ssr/assets/{clock-roNtGlT6.js → clock-B08dVWtf.js} +2 -3
- package/dist/frontend-ssr/assets/{context-Bi_mO-NS.js → context-C_xxvxnR.js} +1 -2
- package/dist/frontend-ssr/assets/{copy-BYqYnBIQ.js → copy-2jsznHar.js} +2 -3
- package/dist/frontend-ssr/assets/{db-DxRzq-kx.js → db-BEKLU5Fc.js} +2 -3
- package/dist/frontend-ssr/assets/{dialog-SqCnTT43.js → dialog-C6U-DqLr.js} +9 -17
- package/dist/frontend-ssr/assets/{dist-CaZQ1FhA.js → dist-DqXTz_zE.js} +9 -12
- package/dist/frontend-ssr/assets/{dist-CqxHwOlp.js → dist-ip9bPdma.js} +3 -6
- package/dist/frontend-ssr/assets/{dndzone-CnTCMhPd.js → dndzone-Dx3jt_e4.js} +4 -6
- package/dist/frontend-ssr/assets/{doc_title_label-Ev_ltlh3.js → doc_title_label-CE_l-Gum.js} +2 -3
- package/dist/frontend-ssr/assets/{doc_title_placeholder-DSHpUb7w.js → doc_title_placeholder-7_i7PtG6.js} +2 -3
- package/dist/frontend-ssr/assets/{document-drop-coordinator-CEaYACsC.js → document-drop-coordinator-BVytYy2K.js} +1 -2
- package/dist/frontend-ssr/assets/{documents-CEuA1V6N.js → documents-B_wpQFTh.js} +2 -3
- package/dist/frontend-ssr/assets/{dropdown-menu-CE6U0f1b.js → dropdown-menu-BS5fcN9l.js} +12 -23
- package/dist/frontend-ssr/assets/{editor-content-sanitizer-Gjm93iR-.js → editor-content-sanitizer-CIdFjBSC.js} +1 -2
- package/dist/frontend-ssr/assets/{editor-preferences.svelte-iI5jJM1x.js → editor-preferences.svelte-CdAXTd-I.js} +2 -4
- package/dist/frontend-ssr/assets/{editorExtensions-rhletNji.js → editorExtensions-2O7O2Nhv.js} +2 -3
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-BpezdkOr.js → editor_markdown_placeholder-CAeLJjFT.js} +3 -5
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CKJAOqv2.js → editor_toolbar_undo-CVCfQIS1.js} +29 -57
- package/dist/frontend-ssr/assets/{ellipsis-vertical-Cg1MrZsl.js → ellipsis-vertical-IFHt2NM1.js} +2 -3
- package/dist/frontend-ssr/assets/{error_generic-DTK0kwxT.js → error_generic-BB80i0Vk.js} +3 -5
- package/dist/frontend-ssr/assets/{folder-DHB-CEcQ.js → folder-CXa1_bm5.js} +2 -3
- package/dist/frontend-ssr/assets/{folders-BOXeb9hz.js → folders-CTLqWbMm.js} +2 -3
- package/dist/frontend-ssr/assets/{folders_rename-DvciOb6K.js → folders_rename-ydbfwQlj.js} +7 -13
- package/dist/frontend-ssr/assets/{identity-B7ngLQzZ.js → identity-DTz1SQwC.js} +2 -3
- package/dist/frontend-ssr/assets/{input-DVrBVPgs.js → input-Bxw9sFF0.js} +2 -3
- package/dist/frontend-ssr/assets/{keyboard.svelte-BgF47N3L.js → keyboard.svelte-njehUCm3.js} +1 -2
- package/dist/frontend-ssr/assets/{label-vtCK3pTp.js → label-CMWedjs6.js} +2 -3
- package/dist/frontend-ssr/assets/{loader-circle-D3NWhCif.js → loader-circle-zbKj9Qb-.js} +2 -3
- package/dist/frontend-ssr/assets/{markdown-Co31-Tl2.js → markdown-BmIhDQp7.js} +2 -3
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-C4dMMt-f.js → popper-layer-force-mount-CSHZsG2E.js} +78 -156
- package/dist/frontend-ssr/assets/{resolve-BqHozBXl.js → resolve-Wqdff4CL.js} +1 -2
- package/dist/frontend-ssr/assets/{rotate-ccw-DNf3nwMD.js → rotate-ccw-B7SaTFWf.js} +2 -3
- package/dist/frontend-ssr/assets/{route-context-BPRerEtZ.js → route-context-BsqLFt5Y.js} +2 -4
- package/dist/frontend-ssr/assets/{runtime-O78RzRqx.js → runtime-BX6-jTn_.js} +1 -2
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-BN4ZfOnM.js → scroll_to_top_aria-CAYSiGHO.js} +2 -3
- package/dist/frontend-ssr/assets/{search_title-CKUsQDT0.js → search_title-C7NVXXq3.js} +2 -3
- package/dist/frontend-ssr/assets/{search_toggle_filters-hS9rvQhC.js → search_toggle_filters-Bq_YVD8s.js} +15 -29
- package/dist/frontend-ssr/assets/{select-value-Ce5c_fuA.js → select-value-TgslfiUB.js} +18 -34
- package/dist/frontend-ssr/assets/{settings-BRxvn30Y.js → settings-B1MA_FjO.js} +3 -4
- package/dist/frontend-ssr/assets/{share-context-B4UpvTSw.js → share-context-RVh8AExX.js} +17 -22
- package/dist/frontend-ssr/assets/{share_copied-BxU9rjXG.js → share_copied-CrwEwkb3.js} +31 -61
- package/dist/frontend-ssr/assets/{share_toggle_password-C6OmroqR.js → share_toggle_password-Co56z0Ha.js} +11 -21
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-Dx-LTd5w.js → sidebar_uncategorized-COWdmZ3d.js} +6 -11
- package/dist/frontend-ssr/assets/{subfolders-refresh-store.svelte-CXHxQWKh.js → subfolders-refresh-store.svelte-LxG18U0n.js} +1 -2
- package/dist/frontend-ssr/assets/{tag-Cqv0fWVG.js → tag-BGhtDKpP.js} +3 -5
- package/dist/frontend-ssr/assets/{tag-store.svelte-QRysvGKe.js → tag-store.svelte-CUUgAaDD.js} +2 -3
- package/dist/frontend-ssr/assets/{tags-BBCoFYro.js → tags-C7u-LBsl.js} +2 -3
- package/dist/frontend-ssr/assets/{tags_load_error-CPrc6Gzs.js → tags_load_error-DW4FbHvr.js} +19 -37
- package/dist/frontend-ssr/assets/{tags_new-VmMr9v2V.js → tags_new-Dr3ByMPZ.js} +4 -7
- package/dist/frontend-ssr/assets/{textarea-BdjOJJVb.js → textarea-Bz5Tz4rw.js} +2 -3
- package/dist/frontend-ssr/assets/{theme.svelte-D6bbaJ9m.js → theme.svelte-CdHah46l.js} +3 -5
- package/dist/frontend-ssr/assets/{theme_system-BucaNntV.js → theme_system-E97FASeq.js} +19 -37
- package/dist/frontend-ssr/assets/{utils-DvZnctjz.js → utils-085zSPe5.js} +1 -2
- package/dist/frontend-ssr/assets/{utils-D3X7I8nz.js → utils-DF6CmRDX.js} +1 -2
- package/dist/frontend-ssr/assets/{version_create_snapshot-COHzwjle.js → version_create_snapshot-DeeYB7bb.js} +2 -3
- package/dist/frontend-ssr/assets/{version_restored_from-CertjFDl.js → version_restored_from-CTt2LM4A.js} +13 -25
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-Cy_rMCij.js → version_snapshot_label_placeholder-BbGD9YuN.js} +12 -23
- package/dist/frontend-ssr/assets/{weekday_we-DrI3U230.js → weekday_we-BzGQ-iFc.js} +22 -43
- package/dist/frontend-ssr/collaboration.js +5 -5
- package/dist/frontend-ssr/components/category-dialog.js +1 -2
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend-ssr/components/delete-dialog.js +1 -2
- package/dist/frontend-ssr/components/editor/compact-editor.js +2 -3
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -2
- package/dist/frontend-ssr/components/editor/document-title.js +3 -4
- package/dist/frontend-ssr/components/editor/docx-serializer.js +1 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -2
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +4 -5
- package/dist/frontend-ssr/components/editor/markdown.js +1 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -2
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -2
- package/dist/frontend-ssr/components/save-as-dialog.js +12 -13
- package/dist/frontend-ssr/components/settings.js +1 -2
- package/dist/frontend-ssr/components/share-dialog.js +1 -2
- package/dist/frontend-ssr/components/sidebar.js +1 -2
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -2
- package/dist/frontend-ssr/components/version-history.js +70 -29
- package/dist/frontend-ssr/dashboard.js +64 -88
- package/dist/frontend-ssr/doc-tabs.js +1 -2
- package/dist/frontend-ssr/document-drop-coordinator.js +1 -2
- package/dist/frontend-ssr/editor-preferences.js +1 -2
- package/dist/frontend-ssr/extension.js +1 -2
- package/dist/frontend-ssr/folder-refresh.js +1 -2
- package/dist/frontend-ssr/i18n.js +315 -603
- package/dist/frontend-ssr/keyboard.js +1 -2
- package/dist/frontend-ssr/offline/identity.js +1 -2
- package/dist/frontend-ssr/search.js +17 -20
- package/dist/frontend-ssr/shared-document.js +5 -8
- package/dist/frontend-ssr/theme.js +2 -3
- package/dist/frontend-ssr/utils/clipboard.js +1 -2
- package/dist/frontend-ssr/utils/dndzone.js +1 -2
- package/dist/frontend-ssr/utils.js +1 -2
- package/dist/lifecycle-runtime.js +3996 -17873
- package/dist/mcp-cli.js +64 -64
- package/dist/mcp-server.js +68 -68
- package/package.json +4 -4
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CJeAYxcd.js +0 -630
- package/dist/frontend/HiAiEditor-D6ad_auS.js +0 -3129
- package/dist/frontend/SettingsDialog-B8Oswuqb.js +0 -991
- package/dist/frontend/Sidebar-BV0IDqTS.js +0 -2149
- package/dist/frontend/action_cancel-Cuxsznzz.js +0 -5
- package/dist/frontend/action_close-BJm_52wm.js +0 -5
- package/dist/frontend/action_create-CtBQrRuj.js +0 -5
- package/dist/frontend/action_delete-BXBIzvn0.js +0 -5
- package/dist/frontend/action_go_to-VmK5jmEk.js +0 -5
- package/dist/frontend/action_loading-BLCGJVA9.js +0 -5
- package/dist/frontend/action_save-BRN2Z_GP.js +0 -5
- package/dist/frontend/dist-DcHl92QO.js +0 -316
- package/dist/frontend/doc_title_label-DS9jSIh2.js +0 -5
- package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +0 -5
- package/dist/frontend/error_generic-CzNtmBT4.js +0 -5
- package/dist/frontend/markdown-O9YJA70S.js +0 -12
- package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +0 -5
- package/dist/frontend/utils-BlHvR6OL.js +0 -7
- package/dist/frontend/version_create_snapshot-3bu-0qzH.js +0 -5
package/dist/frontend/{popper-layer-force-mount-CNtiLgbV.js → popper-layer-force-mount-BG0eyrCk.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./bundle-mjs-
|
|
1
|
+
import { n as e } from "./bundle-mjs-clTO1WW-.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
import { getContext as n, hasContext as r, onMount as i, setContext as a, tick as o, untrack as s } from "svelte";
|
|
5
5
|
import { on as c } from "svelte/events";
|
|
6
6
|
import { SvelteMap as l, createSubscriber as u } from "svelte/reactivity";
|
|
7
7
|
import { createAttachmentKey as d } from "svelte/attachments";
|
|
8
|
-
|
|
8
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/is.js
|
|
9
9
|
function f(e) {
|
|
10
10
|
return typeof e == "function";
|
|
11
11
|
}
|
|
@@ -21,8 +21,7 @@ var m = [
|
|
|
21
21
|
function h(e) {
|
|
22
22
|
return e == null || m.includes(typeof e) ? !0 : Array.isArray(e) ? e.every((e) => h(e)) : typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js
|
|
24
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js
|
|
26
25
|
var g = Symbol("box"), _ = Symbol("is-writable");
|
|
27
26
|
function v(e, n) {
|
|
28
27
|
let r = t.derived(e);
|
|
@@ -84,8 +83,7 @@ function w(e) {
|
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
85
|
}
|
|
87
|
-
|
|
88
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/box/box.svelte.js
|
|
86
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/box/box.svelte.js
|
|
89
87
|
function T(e) {
|
|
90
88
|
let n = t.state(t.proxy(e));
|
|
91
89
|
return {
|
|
@@ -100,8 +98,7 @@ function T(e) {
|
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
T.from = x, T.with = v, T.flatten = S, T.readonly = C, T.isBox = y, T.isWritableBox = b;
|
|
103
|
-
|
|
104
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/compose-handlers.js
|
|
101
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/compose-handlers.js
|
|
105
102
|
function ee(...e) {
|
|
106
103
|
return function(t) {
|
|
107
104
|
for (let n of e) if (n) {
|
|
@@ -110,8 +107,7 @@ function ee(...e) {
|
|
|
110
107
|
}
|
|
111
108
|
};
|
|
112
109
|
}
|
|
113
|
-
|
|
114
|
-
//#region ../node_modules/.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser/esm/index.mjs
|
|
110
|
+
// ../node_modules/.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser/esm/index.mjs
|
|
115
111
|
var te = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ne = /\n/g, re = /^\s*/, E = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, ie = /^:\s*/, ae = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, oe = /^[;\s]*/, se = /^\s+|\s+$/g, ce = "\n", le = "/", ue = "*", D = "", de = "comment", fe = "declaration";
|
|
116
112
|
function pe(e, t) {
|
|
117
113
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
@@ -194,8 +190,7 @@ function pe(e, t) {
|
|
|
194
190
|
function me(e) {
|
|
195
191
|
return e ? e.replace(se, D) : D;
|
|
196
192
|
}
|
|
197
|
-
|
|
198
|
-
//#region ../node_modules/.bun/style-to-object@1.0.14/node_modules/style-to-object/esm/index.mjs
|
|
193
|
+
// ../node_modules/.bun/style-to-object@1.0.14/node_modules/style-to-object/esm/index.mjs
|
|
199
194
|
function he(e, t) {
|
|
200
195
|
let n = null;
|
|
201
196
|
if (!e || typeof e != "string") return n;
|
|
@@ -206,8 +201,7 @@ function he(e, t) {
|
|
|
206
201
|
i ? t(r, a, e) : a && (n ||= {}, n[r] = a);
|
|
207
202
|
}), n;
|
|
208
203
|
}
|
|
209
|
-
|
|
210
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/strings.js
|
|
204
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/strings.js
|
|
211
205
|
var ge = /\d/, _e = [
|
|
212
206
|
"-",
|
|
213
207
|
"_",
|
|
@@ -253,33 +247,22 @@ function Se(e) {
|
|
|
253
247
|
function Ce(e) {
|
|
254
248
|
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
255
249
|
}
|
|
256
|
-
|
|
257
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js
|
|
250
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js
|
|
258
251
|
function we(e) {
|
|
259
252
|
if (!e) return {};
|
|
260
253
|
let t = {};
|
|
261
254
|
function n(e, n) {
|
|
262
|
-
|
|
263
|
-
t[be(e)] = n;
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (e.startsWith("--")) {
|
|
267
|
-
t[e] = n;
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
t[xe(e)] = n;
|
|
255
|
+
e.startsWith("-moz-") || e.startsWith("-webkit-") || e.startsWith("-ms-") || e.startsWith("-o-") ? t[be(e)] = n : e.startsWith("--") ? t[e] = n : t[xe(e)] = n;
|
|
271
256
|
}
|
|
272
257
|
return he(e, n), t;
|
|
273
258
|
}
|
|
274
|
-
|
|
275
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js
|
|
259
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js
|
|
276
260
|
function O(...e) {
|
|
277
261
|
return (...t) => {
|
|
278
262
|
for (let n of e) typeof n == "function" && n(...t);
|
|
279
263
|
};
|
|
280
264
|
}
|
|
281
|
-
|
|
282
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/style-to-css.js
|
|
265
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/style-to-css.js
|
|
283
266
|
function Te(e, t) {
|
|
284
267
|
let n = RegExp(e, "g");
|
|
285
268
|
return (e) => {
|
|
@@ -292,14 +275,12 @@ function De(e) {
|
|
|
292
275
|
if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError(`expected an argument of type object, but got ${typeof e}`);
|
|
293
276
|
return Object.keys(e).map((t) => `${Ee(t)}: ${e[t]};`).join("\n");
|
|
294
277
|
}
|
|
295
|
-
|
|
296
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/style.js
|
|
278
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/style.js
|
|
297
279
|
function Oe(e = {}) {
|
|
298
280
|
return De(e).replace("\n", " ");
|
|
299
281
|
}
|
|
300
282
|
var ke = new Set(/* @__PURE__ */ "onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel".split("."));
|
|
301
|
-
|
|
302
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/merge-props.js
|
|
283
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/merge-props.js
|
|
303
284
|
function Ae(e) {
|
|
304
285
|
return ke.has(e);
|
|
305
286
|
}
|
|
@@ -348,12 +329,10 @@ function je(...t) {
|
|
|
348
329
|
}
|
|
349
330
|
return typeof n.style == "object" && (n.style = Oe(n.style).replaceAll("\n", " ")), n.hidden === !1 && (n.hidden = void 0, delete n.hidden), n.disabled === !1 && (n.disabled = void 0, delete n.disabled), n;
|
|
350
331
|
}
|
|
351
|
-
|
|
352
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/internal/configurable-globals.js
|
|
332
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/configurable-globals.js
|
|
353
333
|
var Me = typeof window < "u" ? window : void 0;
|
|
354
334
|
typeof window < "u" && window.document, typeof window < "u" && window.navigator, typeof window < "u" && window.location;
|
|
355
|
-
|
|
356
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/internal/utils/dom.js
|
|
335
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/dom.js
|
|
357
336
|
function Ne(e) {
|
|
358
337
|
let t = e.activeElement;
|
|
359
338
|
for (; t?.shadowRoot;) {
|
|
@@ -379,13 +358,11 @@ new class {
|
|
|
379
358
|
return this.#t?.(), this.#e ? Ne(this.#e) : null;
|
|
380
359
|
}
|
|
381
360
|
}();
|
|
382
|
-
|
|
383
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/internal/utils/is.js
|
|
361
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/is.js
|
|
384
362
|
function Pe(e) {
|
|
385
363
|
return typeof e == "function";
|
|
386
364
|
}
|
|
387
|
-
|
|
388
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/utilities/context/context.js
|
|
365
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/context/context.js
|
|
389
366
|
var k = class {
|
|
390
367
|
#e;
|
|
391
368
|
#t;
|
|
@@ -411,8 +388,7 @@ var k = class {
|
|
|
411
388
|
return a(this.#t, e);
|
|
412
389
|
}
|
|
413
390
|
};
|
|
414
|
-
|
|
415
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/utilities/watch/watch.svelte.js
|
|
391
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/watch/watch.svelte.js
|
|
416
392
|
function Fe(e, n) {
|
|
417
393
|
switch (e) {
|
|
418
394
|
case "post":
|
|
@@ -440,13 +416,11 @@ function Le(e, t, n) {
|
|
|
440
416
|
Ie(e, "pre", t, n);
|
|
441
417
|
}
|
|
442
418
|
A.pre = Le;
|
|
443
|
-
|
|
444
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/internal/utils/get.js
|
|
419
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/get.js
|
|
445
420
|
function Re(e) {
|
|
446
421
|
return Pe(e) ? e() : e;
|
|
447
422
|
}
|
|
448
|
-
|
|
449
|
-
//#region ../node_modules/.bun/runed@0.35.1+977910912442fc76/node_modules/runed/dist/utilities/element-size/element-size.svelte.js
|
|
423
|
+
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/element-size/element-size.svelte.js
|
|
450
424
|
var ze = class {
|
|
451
425
|
#e = {
|
|
452
426
|
width: 0,
|
|
@@ -524,25 +498,21 @@ var ze = class {
|
|
|
524
498
|
return t.get(this.#t);
|
|
525
499
|
}
|
|
526
500
|
};
|
|
527
|
-
|
|
528
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js
|
|
501
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js
|
|
529
502
|
function j(e) {
|
|
530
503
|
t.user_effect(() => () => {
|
|
531
504
|
e();
|
|
532
505
|
});
|
|
533
506
|
}
|
|
534
|
-
|
|
535
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/after-sleep.js
|
|
507
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/after-sleep.js
|
|
536
508
|
function Ve(e, t) {
|
|
537
509
|
return setTimeout(t, e);
|
|
538
510
|
}
|
|
539
|
-
|
|
540
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/after-tick.js
|
|
511
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/after-tick.js
|
|
541
512
|
function M(e) {
|
|
542
513
|
o().then(e);
|
|
543
514
|
}
|
|
544
|
-
|
|
545
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/dom.js
|
|
515
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/dom.js
|
|
546
516
|
var He = 1, Ue = 9, We = 11;
|
|
547
517
|
function Ge(e) {
|
|
548
518
|
return p(e) && e.nodeType === He && typeof e.nodeName == "string";
|
|
@@ -587,8 +557,7 @@ function $e(e) {
|
|
|
587
557
|
}
|
|
588
558
|
return t;
|
|
589
559
|
}
|
|
590
|
-
|
|
591
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js
|
|
560
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js
|
|
592
561
|
var et = class {
|
|
593
562
|
element;
|
|
594
563
|
#e = t.derived(() => this.element.current ? this.element.current.getRootNode() ?? document : document);
|
|
@@ -613,8 +582,7 @@ var et = class {
|
|
|
613
582
|
setTimeout = (e, t) => this.getWindow().setTimeout(e, t);
|
|
614
583
|
clearTimeout = (e) => this.getWindow().clearTimeout(e);
|
|
615
584
|
};
|
|
616
|
-
|
|
617
|
-
//#region ../node_modules/.bun/svelte-toolbelt@0.10.6+977910912442fc76/node_modules/svelte-toolbelt/dist/utils/attach-ref.js
|
|
585
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/attach-ref.js
|
|
618
586
|
function N(e, t) {
|
|
619
587
|
return { [d()]: (n) => y(e) ? (e.current = n, s(() => t?.(n)), () => {
|
|
620
588
|
"isConnected" in n && n.isConnected || (e.current = null, t?.(null));
|
|
@@ -622,8 +590,7 @@ function N(e, t) {
|
|
|
622
590
|
"isConnected" in n && n.isConnected || (e(null), t?.(null));
|
|
623
591
|
}) };
|
|
624
592
|
}
|
|
625
|
-
|
|
626
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/attrs.js
|
|
593
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/attrs.js
|
|
627
594
|
function tt(e) {
|
|
628
595
|
return e ? "true" : "false";
|
|
629
596
|
}
|
|
@@ -662,13 +629,11 @@ function st(e) {
|
|
|
662
629
|
};
|
|
663
630
|
}
|
|
664
631
|
var ct = "ArrowDown", lt = "ArrowLeft", ut = "ArrowRight", dt = "ArrowUp", ft = "CapsLock", pt = "Control", mt = "Enter", ht = "Escape", gt = "Home", _t = "Meta", vt = "PageDown", yt = "PageUp", bt = "Shift";
|
|
665
|
-
|
|
666
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/locale.js
|
|
632
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/locale.js
|
|
667
633
|
function xt(e) {
|
|
668
634
|
return window.getComputedStyle(e).getPropertyValue("direction");
|
|
669
635
|
}
|
|
670
|
-
|
|
671
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/get-directional-keys.js
|
|
636
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/get-directional-keys.js
|
|
672
637
|
var St = [
|
|
673
638
|
ct,
|
|
674
639
|
yt,
|
|
@@ -697,8 +662,7 @@ function Et(e = "ltr", t = "horizontal") {
|
|
|
697
662
|
prevKey: Tt(e, t)
|
|
698
663
|
};
|
|
699
664
|
}
|
|
700
|
-
|
|
701
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/is.js
|
|
665
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/is.js
|
|
702
666
|
var Dt = typeof document < "u", Ot = kt();
|
|
703
667
|
function kt() {
|
|
704
668
|
return Dt && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
@@ -718,8 +682,7 @@ function Mt(e) {
|
|
|
718
682
|
function Nt(e) {
|
|
719
683
|
return e instanceof HTMLInputElement && "select" in e;
|
|
720
684
|
}
|
|
721
|
-
|
|
722
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/roving-focus-group.js
|
|
685
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/roving-focus-group.js
|
|
723
686
|
var Pt = class {
|
|
724
687
|
#e;
|
|
725
688
|
#t = T(null);
|
|
@@ -765,7 +728,7 @@ var Pt = class {
|
|
|
765
728
|
let e = this.#t.current;
|
|
766
729
|
if (!e) return;
|
|
767
730
|
let t = this.#e.rootNode.current?.querySelector(`#${e}`);
|
|
768
|
-
|
|
731
|
+
t && P(t) && t.focus();
|
|
769
732
|
}
|
|
770
733
|
}, Ft = class {
|
|
771
734
|
#e;
|
|
@@ -791,44 +754,26 @@ var Pt = class {
|
|
|
791
754
|
}, i = () => {
|
|
792
755
|
if (n !== this.#r) return;
|
|
793
756
|
let e = t.getAnimations();
|
|
794
|
-
|
|
795
|
-
r();
|
|
796
|
-
return;
|
|
797
|
-
}
|
|
798
|
-
Promise.all(e.map((e) => e.finished)).then(() => {
|
|
757
|
+
e.length === 0 ? r() : Promise.all(e.map((e) => e.finished)).then(() => {
|
|
799
758
|
r();
|
|
800
759
|
}).catch(() => {
|
|
801
|
-
|
|
802
|
-
if (t.getAnimations().some((e) => e.pending || e.playState !== "finished")) {
|
|
803
|
-
i();
|
|
804
|
-
return;
|
|
805
|
-
}
|
|
806
|
-
r();
|
|
807
|
-
}
|
|
760
|
+
n === this.#r && (t.getAnimations().some((e) => e.pending || e.playState !== "finished") ? i() : r());
|
|
808
761
|
});
|
|
809
762
|
}, a = () => {
|
|
810
763
|
this.#t = window.requestAnimationFrame(() => {
|
|
811
764
|
this.#t = null, i();
|
|
812
765
|
});
|
|
813
766
|
};
|
|
814
|
-
|
|
815
|
-
a();
|
|
816
|
-
return;
|
|
817
|
-
}
|
|
818
|
-
this.#t = window.requestAnimationFrame(() => {
|
|
767
|
+
this.#e.afterTick.current ? this.#t = window.requestAnimationFrame(() => {
|
|
819
768
|
this.#t = null;
|
|
820
769
|
let e = "data-starting-style";
|
|
821
|
-
|
|
822
|
-
a();
|
|
823
|
-
return;
|
|
824
|
-
}
|
|
825
|
-
this.#n = new MutationObserver(() => {
|
|
770
|
+
t.hasAttribute(e) ? (this.#n = new MutationObserver(() => {
|
|
826
771
|
n === this.#r && (t.hasAttribute(e) || (this.#n?.disconnect(), this.#n = null, a()));
|
|
827
772
|
}), this.#n.observe(t, {
|
|
828
773
|
attributes: !0,
|
|
829
774
|
attributeFilter: [e]
|
|
830
|
-
});
|
|
831
|
-
});
|
|
775
|
+
})) : a();
|
|
776
|
+
}) : a();
|
|
832
777
|
}
|
|
833
778
|
#a(e) {
|
|
834
779
|
let t = () => {
|
|
@@ -849,23 +794,11 @@ var Pt = class {
|
|
|
849
794
|
ref: this.#e.ref,
|
|
850
795
|
afterTick: this.#e.open
|
|
851
796
|
}), j(() => this.#s()), A(() => this.#e.open.current, (e) => {
|
|
852
|
-
|
|
853
|
-
this.#a = !0;
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
if (this.#s(), !e && this.#e.shouldSkipExitAnimation?.()) {
|
|
857
|
-
t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.();
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
if (e && t.set(this.#r, !0), t.set(this.#i, e ? "starting" : "ending", !0), e && (this.#o = window.requestAnimationFrame(() => {
|
|
797
|
+
this.#a ? (this.#s(), !e && this.#e.shouldSkipExitAnimation?.() ? (t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.()) : (e && t.set(this.#r, !0), t.set(this.#i, e ? "starting" : "ending", !0), e && (this.#o = window.requestAnimationFrame(() => {
|
|
861
798
|
this.#o = null, this.#e.open.current && t.set(this.#i, void 0);
|
|
862
|
-
})),
|
|
863
|
-
e || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.();
|
|
864
|
-
return;
|
|
865
|
-
}
|
|
866
|
-
this.#n.run(() => {
|
|
799
|
+
})), this.#t ? this.#n.run(() => {
|
|
867
800
|
e === this.#e.open.current && (this.#e.open.current || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.());
|
|
868
|
-
});
|
|
801
|
+
}) : (e || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.()))) : this.#a = !0;
|
|
869
802
|
});
|
|
870
803
|
}
|
|
871
804
|
get shouldRender() {
|
|
@@ -878,16 +811,13 @@ var Pt = class {
|
|
|
878
811
|
this.#o !== null && (window.cancelAnimationFrame(this.#o), this.#o = null);
|
|
879
812
|
}
|
|
880
813
|
};
|
|
881
|
-
|
|
882
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/noop.js
|
|
814
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/noop.js
|
|
883
815
|
function F() {}
|
|
884
|
-
|
|
885
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/create-id.js
|
|
816
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/create-id.js
|
|
886
817
|
function Lt(e, t) {
|
|
887
818
|
return t === void 0 ? `bits-${e}` : `bits-${e}-${t}`;
|
|
888
819
|
}
|
|
889
|
-
|
|
890
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/events.js
|
|
820
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/events.js
|
|
891
821
|
var Rt = class {
|
|
892
822
|
eventName;
|
|
893
823
|
options;
|
|
@@ -913,8 +843,7 @@ var Rt = class {
|
|
|
913
843
|
}, n);
|
|
914
844
|
}
|
|
915
845
|
};
|
|
916
|
-
|
|
917
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/debounce.js
|
|
846
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/debounce.js
|
|
918
847
|
function zt(e, t = 500) {
|
|
919
848
|
let n = null, r = (...r) => {
|
|
920
849
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -925,22 +854,19 @@ function zt(e, t = 500) {
|
|
|
925
854
|
n !== null && (clearTimeout(n), n = null);
|
|
926
855
|
}, r;
|
|
927
856
|
}
|
|
928
|
-
|
|
929
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/elements.js
|
|
857
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/elements.js
|
|
930
858
|
function Bt(e, t) {
|
|
931
859
|
return e === t || e.contains(t);
|
|
932
860
|
}
|
|
933
861
|
function Vt(e) {
|
|
934
862
|
return e?.ownerDocument ?? document;
|
|
935
863
|
}
|
|
936
|
-
|
|
937
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/dom.js
|
|
864
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/dom.js
|
|
938
865
|
function Ht(e, t) {
|
|
939
866
|
let { clientX: n, clientY: r } = e, i = t.getBoundingClientRect();
|
|
940
867
|
return n < i.left || n > i.right || r < i.top || r > i.bottom;
|
|
941
868
|
}
|
|
942
|
-
|
|
943
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/menu/utils.js
|
|
869
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/menu/utils.js
|
|
944
870
|
var Ut = [mt, " "], Wt = [
|
|
945
871
|
ct,
|
|
946
872
|
yt,
|
|
@@ -954,8 +880,7 @@ var Ut = [mt, " "], Wt = [
|
|
|
954
880
|
function I(e) {
|
|
955
881
|
return e.pointerType === "mouse";
|
|
956
882
|
}
|
|
957
|
-
|
|
958
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/focus.js
|
|
883
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/focus.js
|
|
959
884
|
function qt(e, { select: t = !1 } = {}) {
|
|
960
885
|
if (!e || !e.focus) return;
|
|
961
886
|
let n = Ze(e);
|
|
@@ -967,8 +892,7 @@ function Jt(e, { select: t = !1 } = {}, n) {
|
|
|
967
892
|
let r = n();
|
|
968
893
|
for (let i of e) if (qt(i, { select: t }), n() !== r) return !0;
|
|
969
894
|
}
|
|
970
|
-
|
|
971
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js
|
|
895
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js
|
|
972
896
|
var Yt = t.state(!1), Xt = class e {
|
|
973
897
|
static _refs = 0;
|
|
974
898
|
static _cleanup;
|
|
@@ -1169,8 +1093,7 @@ var Yt = t.state(!1), Xt = class e {
|
|
|
1169
1093
|
if (t ||= {}, !e) throw Error("No node provided");
|
|
1170
1094
|
return L.call(e, On) !== !1 && xn(t, e);
|
|
1171
1095
|
};
|
|
1172
|
-
|
|
1173
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/tabbable.js
|
|
1096
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/tabbable.js
|
|
1174
1097
|
function An() {
|
|
1175
1098
|
return {
|
|
1176
1099
|
getShadowRoot: !0,
|
|
@@ -1192,8 +1115,7 @@ function Mn(e, t) {
|
|
|
1192
1115
|
let i = r.indexOf(e);
|
|
1193
1116
|
return i === -1 ? n.body : r.slice(i + 1).find((e) => Dn(e, An())) ?? n.body;
|
|
1194
1117
|
}
|
|
1195
|
-
|
|
1196
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/arrays.js
|
|
1118
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/arrays.js
|
|
1197
1119
|
function Nn(e, t, n = !0) {
|
|
1198
1120
|
if (!(e.length === 0 || t < 0 || t >= e.length)) return e.length === 1 && t === 0 ? e[0] : t === e.length - 1 ? n ? e[0] : void 0 : e[t + 1];
|
|
1199
1121
|
}
|
|
@@ -1231,8 +1153,7 @@ function Ln(e, t, n) {
|
|
|
1231
1153
|
function Rn(e, t) {
|
|
1232
1154
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1233
1155
|
}
|
|
1234
|
-
|
|
1235
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js
|
|
1156
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js
|
|
1236
1157
|
var zn = {
|
|
1237
1158
|
afterMs: 1e4,
|
|
1238
1159
|
onChange: F
|
|
@@ -1253,8 +1174,7 @@ function Bn(e, n) {
|
|
|
1253
1174
|
t.set(s, e, !0), i?.(e), o && a().clearTimeout(o), o = c();
|
|
1254
1175
|
});
|
|
1255
1176
|
}
|
|
1256
|
-
|
|
1257
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js
|
|
1177
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js
|
|
1258
1178
|
var Vn = class {
|
|
1259
1179
|
#e;
|
|
1260
1180
|
#t;
|
|
@@ -1380,13 +1300,7 @@ var Jn = new Rt("bitsmenuopen", {
|
|
|
1380
1300
|
x: e.clientX,
|
|
1381
1301
|
y: e.clientY
|
|
1382
1302
|
}, o = this.#l(a, t);
|
|
1383
|
-
|
|
1384
|
-
if (!Qn(a, o.targetRect) && !this.#u(a, o.corridor, o.intent)) {
|
|
1385
|
-
this.#w();
|
|
1386
|
-
return;
|
|
1387
|
-
}
|
|
1388
|
-
this.#r = !0, this.#i = t, this.#o = a, this.#e.setIsPointerInTransit(!0), this.#b(), this.#S();
|
|
1389
|
-
}
|
|
1303
|
+
o && (!Qn(a, o.targetRect) && !this.#u(a, o.corridor, o.intent) ? this.#w() : (this.#r = !0, this.#i = t, this.#o = a, this.#e.setIsPointerInTransit(!0), this.#b(), this.#S()));
|
|
1390
1304
|
}
|
|
1391
1305
|
#p = null;
|
|
1392
1306
|
#m() {
|
|
@@ -1428,11 +1342,7 @@ var Jn = new Rt("bitsmenuopen", {
|
|
|
1428
1342
|
};
|
|
1429
1343
|
this.#o = r;
|
|
1430
1344
|
let i = t.getBoundingClientRect(), a = n.getBoundingClientRect();
|
|
1431
|
-
if (this.#i === "content" && Qn(r, a)) {
|
|
1432
|
-
this.#m();
|
|
1433
|
-
return;
|
|
1434
|
-
}
|
|
1435
|
-
if (this.#i === "trigger" && $n(r, i, 4)) {
|
|
1345
|
+
if (this.#i === "content" && Qn(r, a) || this.#i === "trigger" && $n(r, i, 4)) {
|
|
1436
1346
|
this.#m();
|
|
1437
1347
|
return;
|
|
1438
1348
|
}
|
|
@@ -1441,15 +1351,7 @@ var Jn = new Rt("bitsmenuopen", {
|
|
|
1441
1351
|
return;
|
|
1442
1352
|
}
|
|
1443
1353
|
let o = this.#l(r, this.#i);
|
|
1444
|
-
|
|
1445
|
-
this.#g();
|
|
1446
|
-
return;
|
|
1447
|
-
}
|
|
1448
|
-
if (this.#u(r, o.corridor, o.intent)) {
|
|
1449
|
-
this.#S();
|
|
1450
|
-
return;
|
|
1451
|
-
}
|
|
1452
|
-
this.#g();
|
|
1354
|
+
o && this.#u(r, o.corridor, o.intent) ? this.#S() : this.#g();
|
|
1453
1355
|
};
|
|
1454
1356
|
#b() {
|
|
1455
1357
|
if (this.#t) return;
|
|
@@ -1764,7 +1666,7 @@ var ir = class e {
|
|
|
1764
1666
|
let n = this.domContext.getDocument().elementFromPoint(e.x, e.y);
|
|
1765
1667
|
if (!At(n)) return;
|
|
1766
1668
|
let r = n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);
|
|
1767
|
-
|
|
1669
|
+
r && t.contains(r) && r !== this.parentMenu.triggerNode && r.dispatchEvent(new PointerEvent("pointermove", {
|
|
1768
1670
|
bubbles: !0,
|
|
1769
1671
|
cancelable: !0,
|
|
1770
1672
|
pointerType: "mouse",
|
|
@@ -1773,13 +1675,7 @@ var ir = class e {
|
|
|
1773
1675
|
}));
|
|
1774
1676
|
}
|
|
1775
1677
|
onCloseAutoFocus = (e) => {
|
|
1776
|
-
|
|
1777
|
-
if (this.parentMenu.root.ignoreCloseAutoFocus) {
|
|
1778
|
-
e.preventDefault();
|
|
1779
|
-
return;
|
|
1780
|
-
}
|
|
1781
|
-
this.parentMenu.triggerNode && Dn(this.parentMenu.triggerNode) && (e.preventDefault(), this.parentMenu.triggerNode.focus());
|
|
1782
|
-
}
|
|
1678
|
+
this.opts.onCloseAutoFocus.current?.(e), e.defaultPrevented || this.#i || (this.parentMenu.root.ignoreCloseAutoFocus ? e.preventDefault() : this.parentMenu.triggerNode && Dn(this.parentMenu.triggerNode) && (e.preventDefault(), this.parentMenu.triggerNode.focus()));
|
|
1783
1679
|
};
|
|
1784
1680
|
handleTabKeyDown(e) {
|
|
1785
1681
|
let t = this.parentMenu;
|
|
@@ -1824,17 +1720,9 @@ var ir = class e {
|
|
|
1824
1720
|
handleInteractOutside(e) {
|
|
1825
1721
|
if (!jt(e.target)) return;
|
|
1826
1722
|
let t = this.parentMenu.triggerNode?.id;
|
|
1827
|
-
|
|
1828
|
-
e.preventDefault();
|
|
1829
|
-
return;
|
|
1830
|
-
}
|
|
1831
|
-
if (e.target.closest(`#${t}`)) {
|
|
1832
|
-
e.preventDefault();
|
|
1833
|
-
return;
|
|
1834
|
-
}
|
|
1835
|
-
this.parentMenu.root.ignoreCloseAutoFocus = !0, M(() => {
|
|
1723
|
+
e.target.id === t || e.target.closest(`#${t}`) ? e.preventDefault() : (this.parentMenu.root.ignoreCloseAutoFocus = !0, M(() => {
|
|
1836
1724
|
this.parentMenu.root.ignoreCloseAutoFocus = !1;
|
|
1837
|
-
});
|
|
1725
|
+
}));
|
|
1838
1726
|
}
|
|
1839
1727
|
get shouldRender() {
|
|
1840
1728
|
return this.parentMenu.contentPresence.shouldRender;
|
|
@@ -1940,11 +1828,7 @@ var ir = class e {
|
|
|
1940
1828
|
bubbles: !0,
|
|
1941
1829
|
cancelable: !0
|
|
1942
1830
|
});
|
|
1943
|
-
|
|
1944
|
-
this.item.content.parentMenu.root.isUsingKeyboard.current = !1;
|
|
1945
|
-
return;
|
|
1946
|
-
}
|
|
1947
|
-
this.opts.closeOnSelect.current && this.item.content.parentMenu.root.opts.onClose();
|
|
1831
|
+
this.opts.onSelect.current(e), e.defaultPrevented ? this.item.content.parentMenu.root.isUsingKeyboard.current = !1 : this.opts.closeOnSelect.current && this.item.content.parentMenu.root.opts.onClose();
|
|
1948
1832
|
}
|
|
1949
1833
|
onkeydown(e) {
|
|
1950
1834
|
let t = this.item.content.search !== "";
|
|
@@ -2052,13 +1936,7 @@ var ir = class e {
|
|
|
2052
1936
|
this.opts.disabled.current || e.pointerType === "touch" && (e.preventDefault(), this.parentMenu.toggleOpen());
|
|
2053
1937
|
};
|
|
2054
1938
|
onkeydown = (e) => {
|
|
2055
|
-
|
|
2056
|
-
if (e.key === " " || e.key === "Enter") {
|
|
2057
|
-
this.parentMenu.toggleOpen(), e.preventDefault();
|
|
2058
|
-
return;
|
|
2059
|
-
}
|
|
2060
|
-
e.key === "ArrowDown" && (this.parentMenu.onOpen(), e.preventDefault());
|
|
2061
|
-
}
|
|
1939
|
+
this.opts.disabled.current || (e.key === " " || e.key === "Enter" ? (this.parentMenu.toggleOpen(), e.preventDefault()) : e.key === "ArrowDown" && (this.parentMenu.onOpen(), e.preventDefault()));
|
|
2062
1940
|
};
|
|
2063
1941
|
#e = t.derived(() => {
|
|
2064
1942
|
if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current) return this.parentMenu.contentId.current;
|
|
@@ -2090,8 +1968,7 @@ var ir = class e {
|
|
|
2090
1968
|
return Gn.set(new ar(e, t.root, t));
|
|
2091
1969
|
}
|
|
2092
1970
|
};
|
|
2093
|
-
|
|
2094
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js
|
|
1971
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js
|
|
2095
1972
|
globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
|
|
2096
1973
|
var pr = class e {
|
|
2097
1974
|
static create(t) {
|
|
@@ -2116,8 +1993,8 @@ var pr = class e {
|
|
|
2116
1993
|
a(), this.#g(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), n();
|
|
2117
1994
|
};
|
|
2118
1995
|
A([() => this.opts.enabled.current, () => this.opts.ref.current], () => {
|
|
2119
|
-
if (
|
|
2120
|
-
r = null, !
|
|
1996
|
+
if (this.opts.enabled.current && this.opts.ref.current) return a(), r = Ve(1, () => {
|
|
1997
|
+
r = null, !i && this.opts.ref.current && (globalThis.bitsDismissableLayers.set(this, this.#t), n(), n = this.#l());
|
|
2121
1998
|
}), o;
|
|
2122
1999
|
}), j(() => {
|
|
2123
2000
|
i = !0, a(), this.#g.destroy(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), this.#s(), n();
|
|
@@ -2125,7 +2002,7 @@ var pr = class e {
|
|
|
2125
2002
|
}
|
|
2126
2003
|
#c = (e) => {
|
|
2127
2004
|
e.defaultPrevented || this.opts.ref.current && M(() => {
|
|
2128
|
-
|
|
2005
|
+
this.opts.ref.current && !this.#h(e.target) && e.target && !this.#i && this.#o.current?.(e);
|
|
2129
2006
|
});
|
|
2130
2007
|
};
|
|
2131
2008
|
#l() {
|
|
@@ -2146,11 +2023,7 @@ var pr = class e {
|
|
|
2146
2023
|
return;
|
|
2147
2024
|
}
|
|
2148
2025
|
let n = e;
|
|
2149
|
-
|
|
2150
|
-
this.#s();
|
|
2151
|
-
return;
|
|
2152
|
-
}
|
|
2153
|
-
e.pointerType === "touch" ? (this.#s(), this.#s = c(this.#a, "click", this.#u, { once: !0 })) : this.#e.current(n);
|
|
2026
|
+
n.defaultPrevented && (n = _r(n)), this.#t.current !== "close" && this.#t.current !== "defer-otherwise-close" ? this.#s() : e.pointerType === "touch" ? (this.#s(), this.#s = c(this.#a, "click", this.#u, { once: !0 })) : this.#e.current(n);
|
|
2154
2027
|
}, 10);
|
|
2155
2028
|
#f = (e) => {
|
|
2156
2029
|
this.#n[e.type] = !0;
|
|
@@ -2203,8 +2076,7 @@ function _r(e) {
|
|
|
2203
2076
|
i = !0, typeof r.preventDefault == "function" && r.preventDefault();
|
|
2204
2077
|
} : a === "defaultPrevented" ? i : a in r ? r[a] : e[a] });
|
|
2205
2078
|
}
|
|
2206
|
-
|
|
2207
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte
|
|
2079
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte
|
|
2208
2080
|
function vr(e, n) {
|
|
2209
2081
|
t.push(n, !0);
|
|
2210
2082
|
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "onInteractOutside", 3, F), a = t.prop(n, "onFocusOutside", 3, F), o = t.prop(n, "isValidEvent", 3, () => !1), s = pr.create({
|
|
@@ -2219,8 +2091,7 @@ function vr(e, n) {
|
|
|
2219
2091
|
var c = t.comment(), l = t.first_child(c);
|
|
2220
2092
|
t.snippet(l, () => n.children ?? t.noop, () => ({ props: s.props })), t.append(e, c), t.pop();
|
|
2221
2093
|
}
|
|
2222
|
-
|
|
2223
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js
|
|
2094
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js
|
|
2224
2095
|
globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
|
|
2225
2096
|
var yr = class e {
|
|
2226
2097
|
static create(t) {
|
|
@@ -2250,8 +2121,7 @@ function br(e) {
|
|
|
2250
2121
|
let [r] = t[0];
|
|
2251
2122
|
return r === e;
|
|
2252
2123
|
}
|
|
2253
|
-
|
|
2254
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte
|
|
2124
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte
|
|
2255
2125
|
function xr(e, n) {
|
|
2256
2126
|
t.push(n, !0);
|
|
2257
2127
|
let r = t.prop(n, "escapeKeydownBehavior", 3, "close"), i = t.prop(n, "onEscapeKeydown", 3, F);
|
|
@@ -2264,8 +2134,7 @@ function xr(e, n) {
|
|
|
2264
2134
|
var a = t.comment(), o = t.first_child(a);
|
|
2265
2135
|
t.snippet(o, () => n.children ?? t.noop), t.append(e, a), t.pop();
|
|
2266
2136
|
}
|
|
2267
|
-
|
|
2268
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js
|
|
2137
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js
|
|
2269
2138
|
var Sr = class e {
|
|
2270
2139
|
static instance;
|
|
2271
2140
|
#e = w([]);
|
|
@@ -2422,8 +2291,7 @@ var Sr = class e {
|
|
|
2422
2291
|
} };
|
|
2423
2292
|
}
|
|
2424
2293
|
};
|
|
2425
|
-
|
|
2426
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte
|
|
2294
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte
|
|
2427
2295
|
function wr(e, n) {
|
|
2428
2296
|
t.push(n, !0);
|
|
2429
2297
|
let r = t.prop(n, "enabled", 3, !1), i = t.prop(n, "trapFocus", 3, !1), a = t.prop(n, "loop", 3, !1), o = t.prop(n, "onCloseAutoFocus", 3, F), s = t.prop(n, "onOpenAutoFocus", 3, F), c = Cr.use({
|
|
@@ -2437,8 +2305,7 @@ function wr(e, n) {
|
|
|
2437
2305
|
var l = t.comment(), u = t.first_child(l);
|
|
2438
2306
|
t.snippet(u, () => n.focusScope ?? t.noop, () => ({ props: c.props })), t.append(e, l), t.pop();
|
|
2439
2307
|
}
|
|
2440
|
-
|
|
2441
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js
|
|
2308
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js
|
|
2442
2309
|
var Tr = () => {};
|
|
2443
2310
|
globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
|
|
2444
2311
|
var Er = class e {
|
|
@@ -2471,7 +2338,7 @@ var Er = class e {
|
|
|
2471
2338
|
#o = (e) => {
|
|
2472
2339
|
if (!this.#t) return;
|
|
2473
2340
|
let t = this.opts.ref.current, n = e.target;
|
|
2474
|
-
|
|
2341
|
+
P(t) && P(n) && Ar(this) && Xe(t, n) && (this.#n(e), e.defaultPrevented || (this.#e = Or(t, this.domContext.getDocument().body)));
|
|
2475
2342
|
};
|
|
2476
2343
|
#s = () => {
|
|
2477
2344
|
this.#e(), this.#e = F;
|
|
@@ -2492,8 +2359,7 @@ function Ar(e) {
|
|
|
2492
2359
|
let n = t.at(-1);
|
|
2493
2360
|
return n ? n[0] === e : !1;
|
|
2494
2361
|
}
|
|
2495
|
-
|
|
2496
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte
|
|
2362
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte
|
|
2497
2363
|
function jr(e, n) {
|
|
2498
2364
|
t.push(n, !0);
|
|
2499
2365
|
let r = t.prop(n, "preventOverflowTextSelection", 3, !0), i = t.prop(n, "onPointerDown", 3, F), a = t.prop(n, "onPointerUp", 3, F);
|
|
@@ -2507,14 +2373,12 @@ function jr(e, n) {
|
|
|
2507
2373
|
var o = t.comment(), s = t.first_child(o);
|
|
2508
2374
|
t.snippet(s, () => n.children ?? t.noop), t.append(e, o), t.pop();
|
|
2509
2375
|
}
|
|
2510
|
-
|
|
2511
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/use-id.js
|
|
2376
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/use-id.js
|
|
2512
2377
|
globalThis.bitsIdCounter ??= { current: 0 };
|
|
2513
2378
|
function Mr(e = "bits") {
|
|
2514
2379
|
return globalThis.bitsIdCounter.current++, `${e}-${globalThis.bitsIdCounter.current}`;
|
|
2515
2380
|
}
|
|
2516
|
-
|
|
2517
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/shared-state.svelte.js
|
|
2381
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/shared-state.svelte.js
|
|
2518
2382
|
var Nr = class {
|
|
2519
2383
|
#e;
|
|
2520
2384
|
#t = 0;
|
|
@@ -2596,15 +2460,13 @@ function Ur(e) {
|
|
|
2596
2460
|
for (let [t, n] of e) if (n) return !0;
|
|
2597
2461
|
return !1;
|
|
2598
2462
|
}
|
|
2599
|
-
|
|
2600
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte
|
|
2463
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte
|
|
2601
2464
|
function Wr(e, n) {
|
|
2602
2465
|
t.push(n, !0);
|
|
2603
2466
|
let r = t.prop(n, "preventScroll", 3, !0), i = t.prop(n, "restoreScrollDelay", 3, null);
|
|
2604
2467
|
r() && new Hr(r(), () => i()), t.pop();
|
|
2605
2468
|
}
|
|
2606
|
-
|
|
2607
|
-
//#region ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2469
|
+
// ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2608
2470
|
var Gr = [
|
|
2609
2471
|
"top",
|
|
2610
2472
|
"right",
|
|
@@ -2708,8 +2570,7 @@ function di(e) {
|
|
|
2708
2570
|
y: n
|
|
2709
2571
|
};
|
|
2710
2572
|
}
|
|
2711
|
-
|
|
2712
|
-
//#region ../node_modules/.bun/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
2573
|
+
// ../node_modules/.bun/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
2713
2574
|
function fi(e, t, n) {
|
|
2714
2575
|
let { reference: r, floating: i } = e, a = W(t), o = Qr(t), s = Zr(o), c = H(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
2715
2576
|
switch (c) {
|
|
@@ -2830,7 +2691,7 @@ var mi = 50, hi = async (e, t, n) => {
|
|
|
2830
2691
|
x: n,
|
|
2831
2692
|
y: r
|
|
2832
2693
|
}, p = Qr(i), m = Zr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
2833
|
-
|
|
2694
|
+
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
2834
2695
|
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = R(d[_], T), te = R(d[v], T), ne = ee, re = C - h[m] - te, E = C / 2 - h[m] / 2 + w, ie = Yr(ne, E, re), ae = !c.arrow && U(i) != null && E !== ie && a.reference[m] / 2 - (E < ne ? ee : te) - h[m] / 2 < 0, oe = ae ? E < ne ? E - ne : E - re : 0;
|
|
2835
2696
|
return {
|
|
2836
2697
|
[p]: f[p] + oe,
|
|
@@ -3061,8 +2922,7 @@ var Ci = function(e) {
|
|
|
3061
2922
|
}
|
|
3062
2923
|
};
|
|
3063
2924
|
};
|
|
3064
|
-
|
|
3065
|
-
//#region ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2925
|
+
// ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
3066
2926
|
function Di() {
|
|
3067
2927
|
return typeof window < "u";
|
|
3068
2928
|
}
|
|
@@ -3158,8 +3018,7 @@ function Ui(e, t, n) {
|
|
|
3158
3018
|
function Wi(e) {
|
|
3159
3019
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3160
3020
|
}
|
|
3161
|
-
|
|
3162
|
-
//#region ../node_modules/.bun/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3021
|
+
// ../node_modules/.bun/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3163
3022
|
function Gi(e) {
|
|
3164
3023
|
let t = X(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = J(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Kr(n) !== a || Kr(r) !== o;
|
|
3165
3024
|
return s && (n = a, r = o), {
|
|
@@ -3175,7 +3034,7 @@ function qi(e) {
|
|
|
3175
3034
|
let t = Ki(e);
|
|
3176
3035
|
if (!J(t)) return B(1);
|
|
3177
3036
|
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Gi(t), o = (a ? Kr(n.width) : n.width) / r, s = (a ? Kr(n.height) : n.height) / i;
|
|
3178
|
-
return
|
|
3037
|
+
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
3179
3038
|
x: o,
|
|
3180
3039
|
y: s
|
|
3181
3040
|
};
|
|
@@ -3484,8 +3343,7 @@ var ba = Ci, xa = wi, Sa = _i, Ca = Ei, wa = bi, Ta = gi, Ea = Ti, Da = (e, t, n
|
|
|
3484
3343
|
platform: a
|
|
3485
3344
|
});
|
|
3486
3345
|
};
|
|
3487
|
-
|
|
3488
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js
|
|
3346
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js
|
|
3489
3347
|
function $(e) {
|
|
3490
3348
|
return typeof e == "function" ? e() : e;
|
|
3491
3349
|
}
|
|
@@ -3505,8 +3363,7 @@ function Aa(e) {
|
|
|
3505
3363
|
[`--bits-${e}-anchor-height`]: "var(--bits-floating-anchor-height)"
|
|
3506
3364
|
};
|
|
3507
3365
|
}
|
|
3508
|
-
|
|
3509
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js
|
|
3366
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js
|
|
3510
3367
|
function ja(e) {
|
|
3511
3368
|
let n = e.whileElementsMounted, r = t.derived(() => $(e.open) ?? !0), i = t.derived(() => $(e.middleware)), a = t.derived(() => $(e.transform) ?? !0), o = t.derived(() => $(e.placement) ?? "bottom"), s = t.derived(() => $(e.strategy) ?? "absolute"), c = t.derived(() => $(e.sideOffset) ?? 0), l = t.derived(() => $(e.alignOffset) ?? 0), u = e.reference, d = t.state(0), f = t.state(0), p = w(null), m = t.state(t.proxy(t.get(s))), h = t.state(t.proxy(t.get(o))), g = t.state(t.proxy({})), _ = t.state(!1), v = !1, y = 0, b = t.derived(() => {
|
|
3512
3369
|
let e = p.current ? ka(p.current, t.get(d)) : t.get(d), n = p.current ? ka(p.current, t.get(f)) : t.get(f);
|
|
@@ -3531,21 +3388,20 @@ function ja(e) {
|
|
|
3531
3388
|
strategy: t.get(s)
|
|
3532
3389
|
}).then((i) => {
|
|
3533
3390
|
if (a === y && u.current === e && p.current === n) {
|
|
3534
|
-
if (Ma(e)) {
|
|
3535
|
-
t.
|
|
3536
|
-
|
|
3537
|
-
hide
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3391
|
+
if (Ma(e)) t.set(g, {
|
|
3392
|
+
...t.get(g),
|
|
3393
|
+
hide: {
|
|
3394
|
+
...t.get(g).hide,
|
|
3395
|
+
referenceHidden: !0
|
|
3396
|
+
}
|
|
3397
|
+
}, !0);
|
|
3398
|
+
else {
|
|
3399
|
+
if (!t.get(r) && t.get(d) !== 0 && t.get(f) !== 0) {
|
|
3400
|
+
let e = Math.max(Math.abs(t.get(c)), Math.abs(t.get(l)), 15);
|
|
3401
|
+
if (i.x <= e && i.y <= e) return;
|
|
3402
|
+
}
|
|
3403
|
+
t.set(d, i.x, !0), t.set(f, i.y, !0), t.set(m, i.strategy, !0), t.set(h, i.placement, !0), t.set(g, i.middlewareData, !0), t.set(_, !0);
|
|
3547
3404
|
}
|
|
3548
|
-
t.set(d, i.x, !0), t.set(f, i.y, !0), t.set(m, i.strategy, !0), t.set(h, i.placement, !0), t.set(g, i.middlewareData, !0), t.set(_, !0);
|
|
3549
3405
|
}
|
|
3550
3406
|
});
|
|
3551
3407
|
}
|
|
@@ -3553,11 +3409,7 @@ function ja(e) {
|
|
|
3553
3409
|
typeof x == "function" && (x(), x = void 0), y++;
|
|
3554
3410
|
}
|
|
3555
3411
|
function T() {
|
|
3556
|
-
|
|
3557
|
-
S();
|
|
3558
|
-
return;
|
|
3559
|
-
}
|
|
3560
|
-
t.get(r) && u.current !== null && p.current !== null && (x = n(u.current, p.current, S));
|
|
3412
|
+
C(), n === void 0 ? S() : t.get(r) && u.current !== null && p.current !== null && (x = n(u.current, p.current, S));
|
|
3561
3413
|
}
|
|
3562
3414
|
function ee() {
|
|
3563
3415
|
!t.get(r) && p.current === null && t.set(_, !1);
|
|
@@ -3575,21 +3427,7 @@ function ja(e) {
|
|
|
3575
3427
|
return t.user_effect(() => {
|
|
3576
3428
|
n === void 0 && t.get(r) && S();
|
|
3577
3429
|
}), t.user_effect(T), t.user_effect(() => {
|
|
3578
|
-
|
|
3579
|
-
if (te(), !t.get(r)) {
|
|
3580
|
-
v = !1;
|
|
3581
|
-
return;
|
|
3582
|
-
}
|
|
3583
|
-
if (!t.get(_)) {
|
|
3584
|
-
v = !1;
|
|
3585
|
-
return;
|
|
3586
|
-
}
|
|
3587
|
-
if (!v) {
|
|
3588
|
-
v = !0;
|
|
3589
|
-
return;
|
|
3590
|
-
}
|
|
3591
|
-
S();
|
|
3592
|
-
}
|
|
3430
|
+
n !== void 0 && (te(), t.get(r) && t.get(_) ? v ? S() : v = !0 : v = !1);
|
|
3593
3431
|
}), t.user_effect(ee), t.user_effect(() => C), {
|
|
3594
3432
|
floating: p,
|
|
3595
3433
|
reference: u,
|
|
@@ -3616,8 +3454,7 @@ function ja(e) {
|
|
|
3616
3454
|
function Ma(e) {
|
|
3617
3455
|
return e instanceof Element ? !e.isConnected || e instanceof HTMLElement && e.hidden ? !0 : e.getClientRects().length === 0 : !1;
|
|
3618
3456
|
}
|
|
3619
|
-
|
|
3620
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js
|
|
3457
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js
|
|
3621
3458
|
var Na = {
|
|
3622
3459
|
top: "bottom",
|
|
3623
3460
|
right: "left",
|
|
@@ -3898,8 +3735,7 @@ function Ha(e) {
|
|
|
3898
3735
|
function Ua(e) {
|
|
3899
3736
|
return Va(e)[1];
|
|
3900
3737
|
}
|
|
3901
|
-
|
|
3902
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte
|
|
3738
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte
|
|
3903
3739
|
function Wa(e, n) {
|
|
3904
3740
|
t.push(n, !0);
|
|
3905
3741
|
let r = t.prop(n, "tooltip", 3, !1);
|
|
@@ -3907,8 +3743,7 @@ function Wa(e, n) {
|
|
|
3907
3743
|
var i = t.comment(), a = t.first_child(i);
|
|
3908
3744
|
t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
|
|
3909
3745
|
}
|
|
3910
|
-
|
|
3911
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte
|
|
3746
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte
|
|
3912
3747
|
function Ga(e, n) {
|
|
3913
3748
|
t.push(n, !0);
|
|
3914
3749
|
let r = t.prop(n, "tooltip", 3, !1);
|
|
@@ -3920,8 +3755,7 @@ function Ga(e, n) {
|
|
|
3920
3755
|
var i = t.comment(), a = t.first_child(i);
|
|
3921
3756
|
t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
|
|
3922
3757
|
}
|
|
3923
|
-
|
|
3924
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte
|
|
3758
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte
|
|
3925
3759
|
function Ka(e, n) {
|
|
3926
3760
|
t.push(n, !0);
|
|
3927
3761
|
let r = t.prop(n, "side", 3, "bottom"), i = t.prop(n, "sideOffset", 3, 0), a = t.prop(n, "align", 3, "center"), o = t.prop(n, "alignOffset", 3, 0), s = t.prop(n, "arrowPadding", 3, 0), c = t.prop(n, "avoidCollisions", 3, !0), l = t.prop(n, "collisionBoundary", 19, () => []), u = t.prop(n, "collisionPadding", 3, 0), d = t.prop(n, "hideWhenDetached", 3, !1), f = t.prop(n, "onPlaced", 3, () => {}), p = t.prop(n, "sticky", 3, "partial"), m = t.prop(n, "updatePositionStrategy", 3, "optimized"), h = t.prop(n, "strategy", 3, "fixed"), g = t.prop(n, "dir", 3, "ltr"), _ = t.prop(n, "style", 19, () => ({})), y = t.prop(n, "wrapperId", 19, Mr), b = t.prop(n, "customAnchor", 3, null), x = t.prop(n, "tooltip", 3, !1), S = Ra.create({
|
|
@@ -3951,8 +3785,7 @@ function Ka(e, n) {
|
|
|
3951
3785
|
wrapperProps: t.get(C)
|
|
3952
3786
|
})), t.append(e, w), t.pop();
|
|
3953
3787
|
}
|
|
3954
|
-
|
|
3955
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte
|
|
3788
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte
|
|
3956
3789
|
function qa(e, n) {
|
|
3957
3790
|
t.push(n, !0), i(() => {
|
|
3958
3791
|
n.onPlaced?.();
|
|
@@ -3963,8 +3796,7 @@ function qa(e, n) {
|
|
|
3963
3796
|
wrapperProps: {}
|
|
3964
3797
|
})), t.append(e, r), t.pop();
|
|
3965
3798
|
}
|
|
3966
|
-
|
|
3967
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte
|
|
3799
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte
|
|
3968
3800
|
var Ja = /* @__PURE__ */ new Set([
|
|
3969
3801
|
"$$slots",
|
|
3970
3802
|
"$$events",
|
|
@@ -3998,8 +3830,7 @@ function Ya(e, n) {
|
|
|
3998
3830
|
r() ? e(s) : e(c, -1);
|
|
3999
3831
|
}), t.append(e, a);
|
|
4000
3832
|
}
|
|
4001
|
-
|
|
4002
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte
|
|
3833
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte
|
|
4003
3834
|
var Xa = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents".split(".")), Za = t.from_html("<!> <!>", 1);
|
|
4004
3835
|
function Qa(e, n) {
|
|
4005
3836
|
t.push(n, !0);
|
|
@@ -4188,8 +4019,7 @@ function Qa(e, n) {
|
|
|
4188
4019
|
$$slots: { content: !0 }
|
|
4189
4020
|
}), t.pop();
|
|
4190
4021
|
}
|
|
4191
|
-
|
|
4192
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte
|
|
4022
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte
|
|
4193
4023
|
var $a = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender".split("."));
|
|
4194
4024
|
function eo(e, n) {
|
|
4195
4025
|
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, $a);
|
|
@@ -4310,8 +4140,7 @@ function eo(e, n) {
|
|
|
4310
4140
|
n.shouldRender && e(d);
|
|
4311
4141
|
}), t.append(e, l);
|
|
4312
4142
|
}
|
|
4313
|
-
|
|
4314
|
-
//#region ../node_modules/.bun/bits-ui@2.19.0+aaf88cf424cc7a77/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte
|
|
4143
|
+
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte
|
|
4315
4144
|
var to = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled".split("."));
|
|
4316
4145
|
function no(e, n) {
|
|
4317
4146
|
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, to);
|
|
@@ -4423,5 +4252,4 @@ function no(e, n) {
|
|
|
4423
4252
|
}
|
|
4424
4253
|
}, () => c, { forceMount: !0 }));
|
|
4425
4254
|
}
|
|
4426
|
-
//#endregion
|
|
4427
4255
|
export { Oe as $, ft as A, tt as B, It as C, lt as D, ct as E, _t as F, N as G, st as H, vt as I, j as J, et as K, yt as L, mt as M, ht as N, ut as O, gt as P, je as Q, bt as R, F as S, Ot as T, it as U, rt as V, at as W, A as X, Be as Y, k as Z, Fn as _, Aa as a, Pn as b, lr as c, ir as d, v as et, ur as f, In as g, Bn as h, Wa as i, pt as j, dt as k, cr as l, Vn as m, eo as n, dr as o, fr as p, M as q, Ga as r, or as s, no as t, ar as u, Ln as v, Dt as w, Lt as x, Nn as y, nt as z };
|