@fde-desktop/fde-core 0.4.8 → 0.4.9
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/dist/{AccordionChevron-CJXAq5o5.js → AccordionChevron-DxpOyInK.js} +1 -1
- package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
- package/dist/{ActionIcon-CtVbYlGY.js → ActionIcon-Drh4p6Fv.js} +32 -32
- package/dist/ActionIcon-alk2zZD6.cjs +1 -0
- package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
- package/dist/AppEmptyState-Bxpit0JV.js +49 -0
- package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
- package/dist/{AppIcon-DCDuaU-t.js → AppIcon-XumS3bIG.js} +4 -4
- package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
- package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
- package/dist/{Box-DRm8EabO.js → Box-DSKR_qaa.js} +257 -271
- package/dist/Box-zW6Twge8.cjs +1 -0
- package/dist/Button-DMlnrqyx.cjs +1 -0
- package/dist/{Button-k7SxX1Xl.js → Button-wTOTQKxF.js} +38 -38
- package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
- package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
- package/dist/CalendarApp-D0ftTCTG.js +1399 -0
- package/dist/{Center-CyryG5zn.js → Center-CmxXB9ql.js} +1 -1
- package/dist/Center-DKUE2pER.cjs +1 -0
- package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
- package/dist/{CheckIcon-C3WjIR2i.js → CheckIcon-N5qBqXQJ.js} +1 -1
- package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
- package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
- package/dist/{CodeServerApp-DY94cy1a.js → CodeServerApp-DW18EZxa.js} +48 -47
- package/dist/{ColorPicker-DvRR-wlQ.js → ColorPicker-BCNqi02x.js} +364 -364
- package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
- package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
- package/dist/{CreateItemApp-CtdH1K1g.js → CreateItemApp-TAAprby3.js} +13 -13
- package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
- package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
- package/dist/{DeviceInfoApp-C306YvtZ.js → DeviceInfoApp-lgpwkeRR.js} +7 -7
- package/dist/{DownloadProgress-hdupSUBT.js → DownloadProgress-EoyCaD5O.js} +15 -15
- package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
- package/dist/{FileIcon-BCpGMI5U.js → FileIcon-7JaSR3Gn.js} +26 -25
- package/dist/FileIcon-CIXopWLv.cjs +1 -0
- package/dist/{FilePickerApp-DMGuvahM.js → FilePickerApp-DaMgEqKh.js} +115 -115
- package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
- package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
- package/dist/FilesApp-BpJJRKhi.cjs +1 -0
- package/dist/{FilesApp-VXrmtt63.js → FilesApp-Cj94QG5o.js} +21 -21
- package/dist/{Group-BzwlMeob.js → Group-CtBJSfCo.js} +1 -1
- package/dist/Group-Dsrf6lEK.cjs +1 -0
- package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-BaLP3gkO.js} +18 -17
- package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
- package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
- package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-CabGSi9r.js} +15 -14
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
- package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
- package/dist/MenuEditApp-BTRppYnD.js +497 -0
- package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
- package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-x1IQrHP2.js} +13 -12
- package/dist/NotesApp-BOcRGO7w.cjs +1 -0
- package/dist/NotesApp-CQe7UfBC.js +364 -0
- package/dist/NotesApp-OL07JXRE.cjs +1 -0
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
- package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
- package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-VhpIe68v.js} +10 -9
- package/dist/{Paper-DtUYKmYn.js → Paper-BX_9odR6.js} +3 -3
- package/dist/Paper-D8-BaBx2.cjs +1 -0
- package/dist/PdfApp-CNEbty5v.cjs +1 -0
- package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
- package/dist/PdfApp-DL_R9-Nc.js +39 -0
- package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
- package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
- package/dist/SettingsApp-BlmHuAjT.js +1831 -0
- package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
- package/dist/SettingsApp-DWxanNE4.cjs +1 -0
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
- package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
- package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
- package/dist/Slider-BUiHxjKO.cjs +1 -0
- package/dist/{Slider-BNO-vDFn.js → Slider-t-NcD60t.js} +148 -147
- package/dist/{Stack-CuDEaP7e.js → Stack-Bp1Ek2Gp.js} +1 -1
- package/dist/Stack-D4jAiRfc.cjs +1 -0
- package/dist/StorybookApp-CDLV_kja.cjs +1 -0
- package/dist/{StorybookApp-WYninkJo.js → StorybookApp-DKwlPCmo.js} +1 -1
- package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
- package/dist/TerminalApp-BYc_gHLe.js +326 -0
- package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
- package/dist/{TerminalMenuBar-iKLydNda.js → TerminalMenuBar-D5tPmgR_.js} +15 -14
- package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
- package/dist/{TextInput-C3qfxxWI.js → TextInput-C-JtGWn1.js} +264 -263
- package/dist/TextInput-CrsmcOip.cjs +1 -0
- package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
- package/dist/Tooltip-DOeIvhrO.js +1142 -0
- package/dist/{UnstyledButton-CI3kyRck.js → UnstyledButton-DGaG-e_G.js} +1 -1
- package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
- package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
- package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
- package/dist/{UploaderApp-C9W_yCT-.js → UploaderApp-qBfpukR_.js} +118 -117
- package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
- package/dist/{VscIcon-DueRJVTe.js → VscIcon-DBfVnArE.js} +1 -1
- package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
- package/dist/desktopStore-CZoA9VHO.cjs +1 -0
- package/dist/{desktopStore-B0R1-BeA.js → desktopStore-F8bgLqFl.js} +256 -393
- package/dist/getRuntime-BFK0-8R1.cjs +1 -0
- package/dist/{getRuntime-CCRXVzJH.js → getRuntime-DAPqFH2W.js} +5 -5
- package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
- package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-C5kWz0o7.js} +1 -1
- package/dist/index.cjs +1 -53
- package/dist/index.css +1 -1
- package/dist/index.js +1293 -5468
- package/dist/is-element-CdV0xajp.cjs +1 -0
- package/dist/menuEditStore-CTeM_dns.cjs +1 -0
- package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-Cj1zAwxQ.js} +1 -1
- package/dist/notesStore-BCEl1D_v.cjs +1 -0
- package/dist/{notesStore-DKRgTTFn.js → notesStore-BPyRTHEc.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-BDQ3ts1y.js} +1 -1
- package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
- package/dist/{terminalStore-LWWjCvCe.js → terminalStore-IWdf4Mm6.js} +1 -1
- package/dist/terminalStore-iIuyodfK.cjs +1 -0
- package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
- package/dist/{use-resolved-styles-api-AVDygMKo.cjs → use-resolved-styles-api-8OXE2oRq.cjs} +1 -1
- package/dist/{use-resolved-styles-api-pEOi2wiK.js → use-resolved-styles-api-DNUlJJZf.js} +1 -1
- package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
- package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-AVDc_qPa.js} +1 -1
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
- package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-BZd3VILp.js} +12 -12
- package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
- package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-Bf0t2foA.js} +1 -1
- package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
- package/dist/{useOpenApp-JHCPTBWa.js → useOpenApp-CBIm7Gzl.js} +3 -3
- package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
- package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
- package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-DQpLqOoL.js} +2 -2
- package/package.json +1 -1
- package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
- package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
- package/dist/AppEmptyState-BTujnL_b.js +0 -4962
- package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
- package/dist/AppIcon--qzR4sgf.cjs +0 -1
- package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
- package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
- package/dist/Box-D_64wv6n.cjs +0 -1
- package/dist/Button-D0FXpkur.cjs +0 -1
- package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
- package/dist/CalendarApp-DBEQqsS_.js +0 -1721
- package/dist/Center-T4No_FAa.cjs +0 -1
- package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
- package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
- package/dist/CodeServerApp-BpeALSaX.js +0 -2
- package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
- package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
- package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
- package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
- package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
- package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
- package/dist/FileIcon-BCrsxmtt.cjs +0 -1
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
- package/dist/FilesApp-30OjnOuP.cjs +0 -1
- package/dist/FilesApp-BvlzPNuO.cjs +0 -1
- package/dist/Group-DhwePB84.cjs +0 -1
- package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
- package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
- package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
- package/dist/MenuEditApp-BoKtj2GH.js +0 -2
- package/dist/MenuEditApp-D21sEp86.js +0 -2615
- package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
- package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
- package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
- package/dist/NotesApp-BtR55Hva.cjs +0 -207
- package/dist/NotesApp-C59exz_9.js +0 -16154
- package/dist/NotesApp-D47I5LS_.js +0 -2
- package/dist/NotesApp-lOwsi2sg.cjs +0 -1
- package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
- package/dist/NotesMenuBar-xlfODmMA.js +0 -2
- package/dist/Paper-DwCpwWwH.cjs +0 -1
- package/dist/PdfApp-1XbFGfoY.cjs +0 -1
- package/dist/PdfApp-BhIoJWeK.cjs +0 -1
- package/dist/PdfApp-C5Rt1Zaw.js +0 -2
- package/dist/PdfApp-C8Hwxxqh.js +0 -38
- package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
- package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
- package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
- package/dist/SettingsApp-BA-5B4RA.cjs +0 -1
- package/dist/SettingsApp-B_rev1xh.cjs +0 -1
- package/dist/SettingsApp-Ck4aUXs5.js +0 -2
- package/dist/SettingsApp-DUMKSA3K.js +0 -2425
- package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
- package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
- package/dist/Slider-Bg_EIBg6.cjs +0 -1
- package/dist/Stack-BOaJgV3N.cjs +0 -1
- package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
- package/dist/TerminalApp-8XbsKAWa.js +0 -10041
- package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
- package/dist/TerminalApp-CVu3Axc9.js +0 -2
- package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
- package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
- package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
- package/dist/TextInput-DcYns3hz.cjs +0 -1
- package/dist/Tooltip-CAOO-qdx.js +0 -3185
- package/dist/Tooltip-DDh_x-CB.cjs +0 -1
- package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
- package/dist/UploaderApp-BZXW75A0.cjs +0 -1
- package/dist/UploaderApp-CPpStgP5.cjs +0 -1
- package/dist/UploaderApp-DHsMQN-f.js +0 -2
- package/dist/VscIcon-CxEmqD80.cjs +0 -1
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/chunk-CiTBaPhY.cjs +0 -1
- package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
- package/dist/desktopStore-Cox-Og1z.cjs +0 -1
- package/dist/fc-DejOsQyD.cjs +0 -1
- package/dist/fc-kd8WzIER.js +0 -20536
- package/dist/fc-xJ_v2ayq.cjs +0 -184
- package/dist/fi-BahYsbim.js +0 -9993
- package/dist/fi-BkhyTcZo.cjs +0 -1
- package/dist/getRuntime-BLXyQZBB.cjs +0 -1
- package/dist/iconBase-B4UCuSvv.cjs +0 -1
- package/dist/iconBase-D7iPes7B.js +0 -108
- package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
- package/dist/is-element-BocgicRg.cjs +0 -1
- package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
- package/dist/notesStore-zKmChTfF.cjs +0 -1
- package/dist/react-DYmzHD0X.js +0 -27
- package/dist/react-Dldg32sN.cjs +0 -1
- package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
- package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
- package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
- package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
- package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
- package/dist/useOpenApp-BdarhIgl.cjs +0 -1
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
- package/dist/useTranslation-DMRGdqZi.js +0 -279
- package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
- package/dist/vsc-Ciibqbxo.cjs +0 -1
- package/dist/vsc-DGKSpOAR.js +0 -9574
- /package/dist/{Colors-hca6raEG.js → Colors-ClnDxnyA.js} +0 -0
- /package/dist/{Colors-BxX4G8kX.cjs → Colors-zP2AFgU3.cjs} +0 -0
- /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-nJIPJGIQ.cjs} +0 -0
- /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-nmu9yehT.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./AppMenuBar-B9U0n1Vv.cjs`),t=require(`./menuEditStore-CTeM_dns.cjs`),n=require(`./useMenuBarUtils-nJIPJGIQ.cjs`);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`react-i18next`);var o=e=>{let{windowId:i,contentData:o,onExit:s}=e,{t:c}=(0,a.useTranslation)(`menuedit`),{t:l}=(0,a.useTranslation)(`common`),u=t.t(i),d=o?.createFolder,f=o?.save,p=o?.discard;return(0,r.useMemo)(()=>n.t([{type:`menu`,label:l(`menu.file`),items:[{type:`item`,label:c(`newFolder`),icon:`FcPlus`,onClick:()=>d?.()},{type:`divider`},{type:`item`,label:l(`actions.save`),icon:`FcInspection`,onClick:()=>f?.(),disabled:!u},{type:`item`,label:l(`actions.discard`),icon:`FcCancel`,onClick:()=>p?.(),disabled:!u},{type:`divider`},{type:`item`,label:l(`actions.exit`),icon:`FcLeft`,onClick:s}]}],u),[c,l,u,d,f,p,s])},s=(0,r.memo)(({windowId:t,contentData:n,onExit:r})=>(0,i.jsx)(e.t,{elements:o({windowId:t,contentData:n,onExit:r})}));s.displayName=`MenuEditMenuBar`,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./menuEditStore-
|
|
4
|
-
import { t as r } from "./useMenuBarUtils-
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { t } from "./AppMenuBar-CnIEVjr8.js";
|
|
3
|
+
import { t as n } from "./menuEditStore-Cj1zAwxQ.js";
|
|
4
|
+
import { t as r } from "./useMenuBarUtils-nmu9yehT.js";
|
|
5
5
|
import { memo as i, useMemo as a } from "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
+
import { useTranslation as s } from "react-i18next";
|
|
7
8
|
//#region src/components/Apps/MenuEditApp/useMenuEditMenuBar.ts
|
|
8
|
-
var
|
|
9
|
-
let { windowId:
|
|
9
|
+
var c = (e) => {
|
|
10
|
+
let { windowId: t, contentData: i, onExit: o } = e, { t: c } = s("menuedit"), { t: l } = s("common"), u = n(t), d = i?.createFolder, f = i?.save, p = i?.discard;
|
|
10
11
|
return a(() => r([{
|
|
11
12
|
type: "menu",
|
|
12
13
|
label: l("menu.file"),
|
|
@@ -37,7 +38,7 @@ var s = (e) => {
|
|
|
37
38
|
type: "item",
|
|
38
39
|
label: l("actions.exit"),
|
|
39
40
|
icon: "FcLeft",
|
|
40
|
-
onClick:
|
|
41
|
+
onClick: o
|
|
41
42
|
}
|
|
42
43
|
]
|
|
43
44
|
}], u), [
|
|
@@ -47,13 +48,13 @@ var s = (e) => {
|
|
|
47
48
|
d,
|
|
48
49
|
f,
|
|
49
50
|
p,
|
|
50
|
-
|
|
51
|
+
o
|
|
51
52
|
]);
|
|
52
|
-
},
|
|
53
|
-
windowId:
|
|
53
|
+
}, l = /* @__PURE__ */ e({ MenuEditMenuBar: () => u }), u = i(({ windowId: e, contentData: n, onExit: r }) => /* @__PURE__ */ o(t, { elements: c({
|
|
54
|
+
windowId: e,
|
|
54
55
|
contentData: n,
|
|
55
56
|
onExit: r
|
|
56
57
|
}) }));
|
|
57
|
-
|
|
58
|
+
u.displayName = "MenuEditMenuBar";
|
|
58
59
|
//#endregion
|
|
59
|
-
export {
|
|
60
|
+
export { l as n, u as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./Box-zW6Twge8.cjs`),t=require(`./desktopStore-CZoA9VHO.cjs`),n=require(`./useCloseInterceptor-yntBEzNc.cjs`),r=require(`./VscIcon-CcMdrFoJ.cjs`),i=require(`./FilePickerApp-DjmuSFqa.cjs`),a=require(`./notesStore-BCEl1D_v.cjs`);let o=require(`react`),s=require(`react/jsx-runtime`),c=require(`zustand`),l=require(`zustand/middleware`),u=require(`react-i18next`),d=require(`@tiptap/react`),f=require(`@tiptap/starter-kit`);f=e.B(f);let p=require(`@tiptap/markdown`),m=require(`@tiptap/core`);var h=(0,c.create)()((0,l.persist)((e,t)=>({snapshots:{},setSnapshot:(t,n)=>e(e=>({snapshots:{...e.snapshots,[t]:n}})),getSnapshot:e=>{let{snapshots:n}=t();return n[e]??null},clearSnapshot:t=>e(e=>{let n={...e.snapshots};return delete n[t],{snapshots:n}})}),{name:`fde-desktop:appTempMemory`,storage:(0,l.createJSONStorage)(()=>localStorage)})),g={container:`_container_3xue5_1`,toolbar:`_toolbar_3xue5_11`,toolbarBtn:`_toolbarBtn_3xue5_22`,active:`_active_3xue5_57`,separator:`_separator_3xue5_63`,editorContent:`_editorContent_3xue5_71`},_=[...t.b],v=m.Extension.create({name:`clearMarksOnEnter`,addKeyboardShortcuts(){return{Enter:({editor:e})=>{let{state:t,dispatch:n}=e.view,{selection:r,schema:i}=t,{$from:a,empty:o}=r;return!o||a.parent.type!==i.nodes.paragraph?!1:(n(t.tr.split(a.pos).setStoredMarks([])),!0)}}}}),y=`Desktop/NotesAppWelcome.md`,b=({window:e,notifyReady:c})=>{let{t:l}=(0,u.useTranslation)(`notes`),m=e,b=m?.id,x=b?`notesApp-${b}`:`notesApp`,S=m?.contentData,[C,w]=(0,o.useState)(S?.initialName??l(`untitled`)),[T,E]=(0,o.useState)(!1),D=(0,o.useRef)(`save`),[O,k]=(0,o.useState)(S?.fileId??null),A=(0,o.useRef)(S?.initialContent??``),[j,M]=(0,o.useState)(!1),N=a.n(e=>e.states[b??``]?.contentLoaded??!1),P=a.n(e=>e.setContentLoaded);(0,o.useEffect)(()=>{b&&a.n.getState().reset(b)},[b]),(0,o.useEffect)(()=>{b&&a.n.getState().setIsDirty(b,j)},[b,j]);let F=t.o(e=>e.createFile),I=t.o(e=>e.updateFile),L=t.o(e=>e.fsNodes),R=(0,d.useEditor)({extensions:[f.default,p.Markdown,v],content:S?.initialContent??``,contentType:`markdown`,shouldRerenderOnTransaction:!1,onCreate:()=>{let e=R?.getMarkdown()??``;A.current=e,x&&h.getState().setSnapshot(x,e)},onUpdate:()=>{let e=R?.getMarkdown()??``,t=e!==(A.current??``);M(t),!t&&x&&h.getState().setSnapshot(x,e)}});(0,o.useEffect)(()=>{if(!O||!R||N)return;let e=L.find(e=>e.id===O);if(!e||e.type!==`file`)return;let t=e;t.content&&t.content!==(A.current??``)&&(A.current=t.content,x&&h.getState().setSnapshot(x,t.content),R.commands.setContent(t.content,{emitUpdate:!1,contentType:`markdown`}),P(b,!0))},[O,R,x,L,N,b,P]),(0,o.useEffect)(()=>{if(!R||!b||N)return;let e=!1,n=new AbortController;return(async()=>{try{if(S?.initialContent){e||(R.commands.setContent(S.initialContent,{emitUpdate:!1,contentType:`markdown`}),P(b,!0));return}if(S?.url){let r=await t.a(S.url,n.signal);!e&&r&&(R.commands.setContent(r,{emitUpdate:!1,contentType:`markdown`}),P(b,!0));return}if(S?.fileId)return;let r=await fetch(`/${y}`,{signal:n.signal});if(!e&&r.ok){let e=await r.text();R.commands.setContent(e,{emitUpdate:!1,contentType:`markdown`}),P(b,!0)}}catch(t){!e&&t instanceof Error&&t.name!==`AbortError`&&console.warn(`Failed to load content:`,t)}})(),()=>{e=!0,n.abort()}},[R,S,b,N,P]);let z=(0,o.useCallback)(()=>R?R.getMarkdown():``,[R]),B=(0,o.useCallback)(()=>{R?.commands.setContent(``,{emitUpdate:!1,contentType:`markdown`}),k(null),w(`untitled.md`),A.current=``,M(!1),b&&P(b,!0)},[R,b,P]),V=(0,o.useCallback)(()=>{R&&(O?(I(O,z()),A.current=z(),M(!1)):(D.current=`save`,E(!0)))},[R,z,I,O]),H=(0,o.useCallback)(()=>{R&&(D.current=`saveAs`,E(!0))},[R]),U=(0,o.useCallback)(async({parentId:e,name:t})=>{if(!R)return;let n=z();if(D.current===`saveAs`||!O){let r=await F(t,n,e);k(r.id),w(r.name)}else await I(O,n);A.current=n,M(!1),E(!1)},[R,z,F,I,O]),[W,G]=(0,o.useState)(!1),K=(0,o.useCallback)(e=>{k(e.id),w(e.name),A.current=e.content??``,M(!1),G(!1);let n=e.url;n?t.a(n).then(e=>{e&&(R?.commands.setContent(e,{emitUpdate:!1,contentType:`markdown`}),b&&P(b,!0))}):e.content&&(R?.commands.setContent(e.content,{emitUpdate:!1,contentType:`markdown`}),b&&P(b,!0))},[R,b,P]),q=(0,o.useCallback)(()=>G(!0),[]);(0,o.useEffect)(()=>{let e={new:B,save:V,saveAs:H};c?.({...m?.contentData??{},actions:e,setPickerOpen:q,isDirty:j})},[B,V,H,m,c,q,j]),n.i({isDirtyGetter:(0,o.useCallback)(()=>(R?.getMarkdown()??``)!==(A.current??``),[R]),windowId:b,onDiscard:()=>{if(!R)return;let e=A.current??``;R.commands.setContent(e,{emitUpdate:!1,contentType:`markdown`}),M(!1)},onSave:V});let J=(0,d.useEditorState)({editor:R,selector:e=>({canUndo:e.editor?.can().undo()??!1,canRedo:e.editor?.can().redo()??!1,isBold:e.editor?.isActive(`bold`)??!1,isItalic:e.editor?.isActive(`italic`)??!1,isStrike:e.editor?.isActive(`strike`)??!1,isCode:e.editor?.isActive(`code`)??!1,isH1:e.editor?.isActive(`heading`,{level:1})??!1,isH2:e.editor?.isActive(`heading`,{level:2})??!1,isBulletList:e.editor?.isActive(`bulletList`)??!1,isOrderedList:e.editor?.isActive(`orderedList`)??!1,isBlockquote:e.editor?.isActive(`blockquote`)??!1,isCodeBlock:e.editor?.isActive(`codeBlock`)??!1})});return(0,s.jsxs)(`div`,{className:g.container,"data-windowid":m?.id,children:[(0,s.jsxs)(`div`,{className:g.toolbar,role:`toolbar`,"aria-label":l(`toolbar.formatting`),children:[(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isBold?g.active:``}`,onClick:()=>R?.chain().focus().toggleBold().run(),disabled:!R?.can().chain().focus().toggleBold().run(),title:l(`toolbar.bold`),"aria-label":l(`toolbar.bold`),children:(0,s.jsx)(r.t,{name:`VscBold`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isItalic?g.active:``}`,onClick:()=>R?.chain().focus().toggleItalic().run(),disabled:!R?.can().chain().focus().toggleItalic().run(),title:l(`toolbar.italic`),"aria-label":l(`toolbar.italic`),children:(0,s.jsx)(r.t,{name:`VscItalic`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isStrike?g.active:``}`,onClick:()=>R?.chain().focus().toggleStrike().run(),disabled:!R?.can().chain().focus().toggleStrike().run(),title:l(`toolbar.strikethrough`),"aria-label":l(`toolbar.strikethrough`),children:(0,s.jsx)(`s`,{children:`S`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isCode?g.active:``}`,onClick:()=>R?.chain().focus().toggleCode().run(),disabled:!R?.can().chain().focus().toggleCode().run(),title:l(`toolbar.inlineCode`),"aria-label":l(`toolbar.inlineCode`),children:(0,s.jsx)(r.t,{name:`VscCode`})}),(0,s.jsx)(`span`,{className:g.separator}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isH1?g.active:``}`,onClick:()=>R?.chain().focus().toggleHeading({level:1}).run(),title:l(`toolbar.heading1`),"aria-label":l(`toolbar.heading1`),children:(0,s.jsx)(`strong`,{children:`H1`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isH2?g.active:``}`,onClick:()=>R?.chain().focus().toggleHeading({level:2}).run(),title:l(`toolbar.heading2`),"aria-label":l(`toolbar.heading2`),children:(0,s.jsx)(`strong`,{children:`H2`})}),(0,s.jsx)(`span`,{className:g.separator}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isBulletList?g.active:``}`,onClick:()=>R?.chain().focus().toggleBulletList().run(),title:l(`toolbar.bulletList`),"aria-label":l(`toolbar.bulletList`),children:(0,s.jsx)(r.t,{name:`VscListUnordered`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isOrderedList?g.active:``}`,onClick:()=>R?.chain().focus().toggleOrderedList().run(),title:l(`toolbar.orderedList`),"aria-label":l(`toolbar.orderedList`),children:(0,s.jsx)(r.t,{name:`VscListOrdered`})}),(0,s.jsx)(`span`,{className:g.separator}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isBlockquote?g.active:``}`,onClick:()=>R?.chain().focus().toggleBlockquote().run(),title:l(`toolbar.blockquote`),"aria-label":l(`toolbar.blockquote`),children:(0,s.jsx)(r.t,{name:`VscQuote`})}),(0,s.jsx)(`button`,{className:`${g.toolbarBtn} ${J?.isCodeBlock?g.active:``}`,onClick:()=>R?.chain().focus().toggleCodeBlock().run(),title:l(`toolbar.codeBlock`),"aria-label":l(`toolbar.codeBlock`),children:(0,s.jsx)(r.t,{name:`VscTerminal`})}),(0,s.jsx)(`button`,{className:g.toolbarBtn,onClick:()=>R?.chain().focus().setHorizontalRule().run(),title:l(`toolbar.horizontalRule`),"aria-label":l(`toolbar.horizontalRule`),children:(0,s.jsx)(r.t,{name:`VscHorizontalRule`})}),(0,s.jsx)(`span`,{className:g.separator}),(0,s.jsx)(`button`,{className:g.toolbarBtn,onClick:()=>R?.chain().focus().undo().run(),disabled:!J?.canUndo,title:l(`common:actions.undo`),"aria-label":l(`common:actions.undo`),children:(0,s.jsx)(r.t,{name:`VscDiscard`})}),(0,s.jsx)(`button`,{className:g.toolbarBtn,onClick:()=>R?.chain().focus().redo().run(),disabled:!J?.canRedo,title:l(`common:actions.redo`),"aria-label":l(`common:actions.redo`),children:(0,s.jsx)(r.t,{name:`VscRedo`})})]}),(0,s.jsx)(d.EditorContent,{editor:R,className:g.editorContent}),(0,s.jsx)(i.n,{opened:W,acceptedMimeTypes:_,onConfirm:K,onCancel:()=>G(!1)}),(0,s.jsx)(i.r,{opened:T,initialName:C,onConfirm:U,onCancel:()=>E(!1)})]})};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { a as t, b as n, o as r } from "./desktopStore-F8bgLqFl.js";
|
|
3
|
+
import { i } from "./useCloseInterceptor-BZd3VILp.js";
|
|
4
|
+
import { t as a } from "./VscIcon-DBfVnArE.js";
|
|
5
|
+
import { n as o, r as s } from "./FilePickerApp-DaMgEqKh.js";
|
|
6
|
+
import { n as c } from "./notesStore-BPyRTHEc.js";
|
|
7
|
+
import { useCallback as l, useEffect as u, useRef as d, useState as f } from "react";
|
|
8
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
|
+
import { create as h } from "zustand";
|
|
10
|
+
import { createJSONStorage as g, persist as _ } from "zustand/middleware";
|
|
11
|
+
import { useTranslation as v } from "react-i18next";
|
|
12
|
+
import { EditorContent as y, useEditor as b, useEditorState as x } from "@tiptap/react";
|
|
13
|
+
import S from "@tiptap/starter-kit";
|
|
14
|
+
import { Markdown as C } from "@tiptap/markdown";
|
|
15
|
+
import { Extension as w } from "@tiptap/core";
|
|
16
|
+
//#region src/stores/AppTempMemory.ts
|
|
17
|
+
var T = h()(_((e, t) => ({
|
|
18
|
+
snapshots: {},
|
|
19
|
+
setSnapshot: (t, n) => e((e) => ({ snapshots: {
|
|
20
|
+
...e.snapshots,
|
|
21
|
+
[t]: n
|
|
22
|
+
} })),
|
|
23
|
+
getSnapshot: (e) => {
|
|
24
|
+
let { snapshots: n } = t();
|
|
25
|
+
return n[e] ?? null;
|
|
26
|
+
},
|
|
27
|
+
clearSnapshot: (t) => e((e) => {
|
|
28
|
+
let n = { ...e.snapshots };
|
|
29
|
+
return delete n[t], { snapshots: n };
|
|
30
|
+
})
|
|
31
|
+
}), {
|
|
32
|
+
name: "fde-desktop:appTempMemory",
|
|
33
|
+
storage: g(() => localStorage)
|
|
34
|
+
})), E = {
|
|
35
|
+
container: "_container_3xue5_1",
|
|
36
|
+
toolbar: "_toolbar_3xue5_11",
|
|
37
|
+
toolbarBtn: "_toolbarBtn_3xue5_22",
|
|
38
|
+
active: "_active_3xue5_57",
|
|
39
|
+
separator: "_separator_3xue5_63",
|
|
40
|
+
editorContent: "_editorContent_3xue5_71"
|
|
41
|
+
}, D = /* @__PURE__ */ e({ default: () => A }), ee = [...n], O = w.create({
|
|
42
|
+
name: "clearMarksOnEnter",
|
|
43
|
+
addKeyboardShortcuts() {
|
|
44
|
+
return { Enter: ({ editor: e }) => {
|
|
45
|
+
let { state: t, dispatch: n } = e.view, { selection: r, schema: i } = t, { $from: a, empty: o } = r;
|
|
46
|
+
return !o || a.parent.type !== i.nodes.paragraph ? !1 : (n(t.tr.split(a.pos).setStoredMarks([])), !0);
|
|
47
|
+
} };
|
|
48
|
+
}
|
|
49
|
+
}), k = "Desktop/NotesAppWelcome.md", A = ({ window: e, notifyReady: n }) => {
|
|
50
|
+
let { t: h } = v("notes"), g = e, _ = g?.id, w = _ ? `notesApp-${_}` : "notesApp", D = g?.contentData, [A, j] = f(D?.initialName ?? h("untitled")), [M, N] = f(!1), P = d("save"), [F, I] = f(D?.fileId ?? null), L = d(D?.initialContent ?? ""), [R, z] = f(!1), B = c((e) => e.states[_ ?? ""]?.contentLoaded ?? !1), V = c((e) => e.setContentLoaded);
|
|
51
|
+
u(() => {
|
|
52
|
+
_ && c.getState().reset(_);
|
|
53
|
+
}, [_]), u(() => {
|
|
54
|
+
_ && c.getState().setIsDirty(_, R);
|
|
55
|
+
}, [_, R]);
|
|
56
|
+
let H = r((e) => e.createFile), U = r((e) => e.updateFile), W = r((e) => e.fsNodes), G = b({
|
|
57
|
+
extensions: [
|
|
58
|
+
S,
|
|
59
|
+
C,
|
|
60
|
+
O
|
|
61
|
+
],
|
|
62
|
+
content: D?.initialContent ?? "",
|
|
63
|
+
contentType: "markdown",
|
|
64
|
+
shouldRerenderOnTransaction: !1,
|
|
65
|
+
onCreate: () => {
|
|
66
|
+
let e = G?.getMarkdown() ?? "";
|
|
67
|
+
L.current = e, w && T.getState().setSnapshot(w, e);
|
|
68
|
+
},
|
|
69
|
+
onUpdate: () => {
|
|
70
|
+
let e = G?.getMarkdown() ?? "", t = e !== (L.current ?? "");
|
|
71
|
+
z(t), !t && w && T.getState().setSnapshot(w, e);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
u(() => {
|
|
75
|
+
if (!F || !G || B) return;
|
|
76
|
+
let e = W.find((e) => e.id === F);
|
|
77
|
+
if (!e || e.type !== "file") return;
|
|
78
|
+
let t = e;
|
|
79
|
+
t.content && t.content !== (L.current ?? "") && (L.current = t.content, w && T.getState().setSnapshot(w, t.content), G.commands.setContent(t.content, {
|
|
80
|
+
emitUpdate: !1,
|
|
81
|
+
contentType: "markdown"
|
|
82
|
+
}), V(_, !0));
|
|
83
|
+
}, [
|
|
84
|
+
F,
|
|
85
|
+
G,
|
|
86
|
+
w,
|
|
87
|
+
W,
|
|
88
|
+
B,
|
|
89
|
+
_,
|
|
90
|
+
V
|
|
91
|
+
]), u(() => {
|
|
92
|
+
if (!G || !_ || B) return;
|
|
93
|
+
let e = !1, n = new AbortController();
|
|
94
|
+
return (async () => {
|
|
95
|
+
try {
|
|
96
|
+
if (D?.initialContent) {
|
|
97
|
+
e || (G.commands.setContent(D.initialContent, {
|
|
98
|
+
emitUpdate: !1,
|
|
99
|
+
contentType: "markdown"
|
|
100
|
+
}), V(_, !0));
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (D?.url) {
|
|
104
|
+
let r = await t(D.url, n.signal);
|
|
105
|
+
!e && r && (G.commands.setContent(r, {
|
|
106
|
+
emitUpdate: !1,
|
|
107
|
+
contentType: "markdown"
|
|
108
|
+
}), V(_, !0));
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (D?.fileId) return;
|
|
112
|
+
let r = await fetch(`/${k}`, { signal: n.signal });
|
|
113
|
+
if (!e && r.ok) {
|
|
114
|
+
let e = await r.text();
|
|
115
|
+
G.commands.setContent(e, {
|
|
116
|
+
emitUpdate: !1,
|
|
117
|
+
contentType: "markdown"
|
|
118
|
+
}), V(_, !0);
|
|
119
|
+
}
|
|
120
|
+
} catch (t) {
|
|
121
|
+
!e && t instanceof Error && t.name !== "AbortError" && console.warn("Failed to load content:", t);
|
|
122
|
+
}
|
|
123
|
+
})(), () => {
|
|
124
|
+
e = !0, n.abort();
|
|
125
|
+
};
|
|
126
|
+
}, [
|
|
127
|
+
G,
|
|
128
|
+
D,
|
|
129
|
+
_,
|
|
130
|
+
B,
|
|
131
|
+
V
|
|
132
|
+
]);
|
|
133
|
+
let K = l(() => G ? G.getMarkdown() : "", [G]), q = l(() => {
|
|
134
|
+
G?.commands.setContent("", {
|
|
135
|
+
emitUpdate: !1,
|
|
136
|
+
contentType: "markdown"
|
|
137
|
+
}), I(null), j("untitled.md"), L.current = "", z(!1), _ && V(_, !0);
|
|
138
|
+
}, [
|
|
139
|
+
G,
|
|
140
|
+
_,
|
|
141
|
+
V
|
|
142
|
+
]), J = l(() => {
|
|
143
|
+
G && (F ? (U(F, K()), L.current = K(), z(!1)) : (P.current = "save", N(!0)));
|
|
144
|
+
}, [
|
|
145
|
+
G,
|
|
146
|
+
K,
|
|
147
|
+
U,
|
|
148
|
+
F
|
|
149
|
+
]), Y = l(() => {
|
|
150
|
+
G && (P.current = "saveAs", N(!0));
|
|
151
|
+
}, [G]), X = l(async ({ parentId: e, name: t }) => {
|
|
152
|
+
if (!G) return;
|
|
153
|
+
let n = K();
|
|
154
|
+
if (P.current === "saveAs" || !F) {
|
|
155
|
+
let r = await H(t, n, e);
|
|
156
|
+
I(r.id), j(r.name);
|
|
157
|
+
} else await U(F, n);
|
|
158
|
+
L.current = n, z(!1), N(!1);
|
|
159
|
+
}, [
|
|
160
|
+
G,
|
|
161
|
+
K,
|
|
162
|
+
H,
|
|
163
|
+
U,
|
|
164
|
+
F
|
|
165
|
+
]), [te, Z] = f(!1), ne = l((e) => {
|
|
166
|
+
I(e.id), j(e.name), L.current = e.content ?? "", z(!1), Z(!1);
|
|
167
|
+
let n = e.url;
|
|
168
|
+
n ? t(n).then((e) => {
|
|
169
|
+
e && (G?.commands.setContent(e, {
|
|
170
|
+
emitUpdate: !1,
|
|
171
|
+
contentType: "markdown"
|
|
172
|
+
}), _ && V(_, !0));
|
|
173
|
+
}) : e.content && (G?.commands.setContent(e.content, {
|
|
174
|
+
emitUpdate: !1,
|
|
175
|
+
contentType: "markdown"
|
|
176
|
+
}), _ && V(_, !0));
|
|
177
|
+
}, [
|
|
178
|
+
G,
|
|
179
|
+
_,
|
|
180
|
+
V
|
|
181
|
+
]), Q = l(() => Z(!0), []);
|
|
182
|
+
u(() => {
|
|
183
|
+
let e = {
|
|
184
|
+
new: q,
|
|
185
|
+
save: J,
|
|
186
|
+
saveAs: Y
|
|
187
|
+
};
|
|
188
|
+
n?.({
|
|
189
|
+
...g?.contentData ?? {},
|
|
190
|
+
actions: e,
|
|
191
|
+
setPickerOpen: Q,
|
|
192
|
+
isDirty: R
|
|
193
|
+
});
|
|
194
|
+
}, [
|
|
195
|
+
q,
|
|
196
|
+
J,
|
|
197
|
+
Y,
|
|
198
|
+
g,
|
|
199
|
+
n,
|
|
200
|
+
Q,
|
|
201
|
+
R
|
|
202
|
+
]), i({
|
|
203
|
+
isDirtyGetter: l(() => (G?.getMarkdown() ?? "") !== (L.current ?? ""), [G]),
|
|
204
|
+
windowId: _,
|
|
205
|
+
onDiscard: () => {
|
|
206
|
+
if (!G) return;
|
|
207
|
+
let e = L.current ?? "";
|
|
208
|
+
G.commands.setContent(e, {
|
|
209
|
+
emitUpdate: !1,
|
|
210
|
+
contentType: "markdown"
|
|
211
|
+
}), z(!1);
|
|
212
|
+
},
|
|
213
|
+
onSave: J
|
|
214
|
+
});
|
|
215
|
+
let $ = x({
|
|
216
|
+
editor: G,
|
|
217
|
+
selector: (e) => ({
|
|
218
|
+
canUndo: e.editor?.can().undo() ?? !1,
|
|
219
|
+
canRedo: e.editor?.can().redo() ?? !1,
|
|
220
|
+
isBold: e.editor?.isActive("bold") ?? !1,
|
|
221
|
+
isItalic: e.editor?.isActive("italic") ?? !1,
|
|
222
|
+
isStrike: e.editor?.isActive("strike") ?? !1,
|
|
223
|
+
isCode: e.editor?.isActive("code") ?? !1,
|
|
224
|
+
isH1: e.editor?.isActive("heading", { level: 1 }) ?? !1,
|
|
225
|
+
isH2: e.editor?.isActive("heading", { level: 2 }) ?? !1,
|
|
226
|
+
isBulletList: e.editor?.isActive("bulletList") ?? !1,
|
|
227
|
+
isOrderedList: e.editor?.isActive("orderedList") ?? !1,
|
|
228
|
+
isBlockquote: e.editor?.isActive("blockquote") ?? !1,
|
|
229
|
+
isCodeBlock: e.editor?.isActive("codeBlock") ?? !1
|
|
230
|
+
})
|
|
231
|
+
});
|
|
232
|
+
return /* @__PURE__ */ m("div", {
|
|
233
|
+
className: E.container,
|
|
234
|
+
"data-windowid": g?.id,
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ m("div", {
|
|
237
|
+
className: E.toolbar,
|
|
238
|
+
role: "toolbar",
|
|
239
|
+
"aria-label": h("toolbar.formatting"),
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ p("button", {
|
|
242
|
+
className: `${E.toolbarBtn} ${$?.isBold ? E.active : ""}`,
|
|
243
|
+
onClick: () => G?.chain().focus().toggleBold().run(),
|
|
244
|
+
disabled: !G?.can().chain().focus().toggleBold().run(),
|
|
245
|
+
title: h("toolbar.bold"),
|
|
246
|
+
"aria-label": h("toolbar.bold"),
|
|
247
|
+
children: /* @__PURE__ */ p(a, { name: "VscBold" })
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ p("button", {
|
|
250
|
+
className: `${E.toolbarBtn} ${$?.isItalic ? E.active : ""}`,
|
|
251
|
+
onClick: () => G?.chain().focus().toggleItalic().run(),
|
|
252
|
+
disabled: !G?.can().chain().focus().toggleItalic().run(),
|
|
253
|
+
title: h("toolbar.italic"),
|
|
254
|
+
"aria-label": h("toolbar.italic"),
|
|
255
|
+
children: /* @__PURE__ */ p(a, { name: "VscItalic" })
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ p("button", {
|
|
258
|
+
className: `${E.toolbarBtn} ${$?.isStrike ? E.active : ""}`,
|
|
259
|
+
onClick: () => G?.chain().focus().toggleStrike().run(),
|
|
260
|
+
disabled: !G?.can().chain().focus().toggleStrike().run(),
|
|
261
|
+
title: h("toolbar.strikethrough"),
|
|
262
|
+
"aria-label": h("toolbar.strikethrough"),
|
|
263
|
+
children: /* @__PURE__ */ p("s", { children: "S" })
|
|
264
|
+
}),
|
|
265
|
+
/* @__PURE__ */ p("button", {
|
|
266
|
+
className: `${E.toolbarBtn} ${$?.isCode ? E.active : ""}`,
|
|
267
|
+
onClick: () => G?.chain().focus().toggleCode().run(),
|
|
268
|
+
disabled: !G?.can().chain().focus().toggleCode().run(),
|
|
269
|
+
title: h("toolbar.inlineCode"),
|
|
270
|
+
"aria-label": h("toolbar.inlineCode"),
|
|
271
|
+
children: /* @__PURE__ */ p(a, { name: "VscCode" })
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ p("span", { className: E.separator }),
|
|
274
|
+
/* @__PURE__ */ p("button", {
|
|
275
|
+
className: `${E.toolbarBtn} ${$?.isH1 ? E.active : ""}`,
|
|
276
|
+
onClick: () => G?.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
277
|
+
title: h("toolbar.heading1"),
|
|
278
|
+
"aria-label": h("toolbar.heading1"),
|
|
279
|
+
children: /* @__PURE__ */ p("strong", { children: "H1" })
|
|
280
|
+
}),
|
|
281
|
+
/* @__PURE__ */ p("button", {
|
|
282
|
+
className: `${E.toolbarBtn} ${$?.isH2 ? E.active : ""}`,
|
|
283
|
+
onClick: () => G?.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
284
|
+
title: h("toolbar.heading2"),
|
|
285
|
+
"aria-label": h("toolbar.heading2"),
|
|
286
|
+
children: /* @__PURE__ */ p("strong", { children: "H2" })
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ p("span", { className: E.separator }),
|
|
289
|
+
/* @__PURE__ */ p("button", {
|
|
290
|
+
className: `${E.toolbarBtn} ${$?.isBulletList ? E.active : ""}`,
|
|
291
|
+
onClick: () => G?.chain().focus().toggleBulletList().run(),
|
|
292
|
+
title: h("toolbar.bulletList"),
|
|
293
|
+
"aria-label": h("toolbar.bulletList"),
|
|
294
|
+
children: /* @__PURE__ */ p(a, { name: "VscListUnordered" })
|
|
295
|
+
}),
|
|
296
|
+
/* @__PURE__ */ p("button", {
|
|
297
|
+
className: `${E.toolbarBtn} ${$?.isOrderedList ? E.active : ""}`,
|
|
298
|
+
onClick: () => G?.chain().focus().toggleOrderedList().run(),
|
|
299
|
+
title: h("toolbar.orderedList"),
|
|
300
|
+
"aria-label": h("toolbar.orderedList"),
|
|
301
|
+
children: /* @__PURE__ */ p(a, { name: "VscListOrdered" })
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ p("span", { className: E.separator }),
|
|
304
|
+
/* @__PURE__ */ p("button", {
|
|
305
|
+
className: `${E.toolbarBtn} ${$?.isBlockquote ? E.active : ""}`,
|
|
306
|
+
onClick: () => G?.chain().focus().toggleBlockquote().run(),
|
|
307
|
+
title: h("toolbar.blockquote"),
|
|
308
|
+
"aria-label": h("toolbar.blockquote"),
|
|
309
|
+
children: /* @__PURE__ */ p(a, { name: "VscQuote" })
|
|
310
|
+
}),
|
|
311
|
+
/* @__PURE__ */ p("button", {
|
|
312
|
+
className: `${E.toolbarBtn} ${$?.isCodeBlock ? E.active : ""}`,
|
|
313
|
+
onClick: () => G?.chain().focus().toggleCodeBlock().run(),
|
|
314
|
+
title: h("toolbar.codeBlock"),
|
|
315
|
+
"aria-label": h("toolbar.codeBlock"),
|
|
316
|
+
children: /* @__PURE__ */ p(a, { name: "VscTerminal" })
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ p("button", {
|
|
319
|
+
className: E.toolbarBtn,
|
|
320
|
+
onClick: () => G?.chain().focus().setHorizontalRule().run(),
|
|
321
|
+
title: h("toolbar.horizontalRule"),
|
|
322
|
+
"aria-label": h("toolbar.horizontalRule"),
|
|
323
|
+
children: /* @__PURE__ */ p(a, { name: "VscHorizontalRule" })
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ p("span", { className: E.separator }),
|
|
326
|
+
/* @__PURE__ */ p("button", {
|
|
327
|
+
className: E.toolbarBtn,
|
|
328
|
+
onClick: () => G?.chain().focus().undo().run(),
|
|
329
|
+
disabled: !$?.canUndo,
|
|
330
|
+
title: h("common:actions.undo"),
|
|
331
|
+
"aria-label": h("common:actions.undo"),
|
|
332
|
+
children: /* @__PURE__ */ p(a, { name: "VscDiscard" })
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ p("button", {
|
|
335
|
+
className: E.toolbarBtn,
|
|
336
|
+
onClick: () => G?.chain().focus().redo().run(),
|
|
337
|
+
disabled: !$?.canRedo,
|
|
338
|
+
title: h("common:actions.redo"),
|
|
339
|
+
"aria-label": h("common:actions.redo"),
|
|
340
|
+
children: /* @__PURE__ */ p(a, { name: "VscRedo" })
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
}),
|
|
344
|
+
/* @__PURE__ */ p(y, {
|
|
345
|
+
editor: G,
|
|
346
|
+
className: E.editorContent
|
|
347
|
+
}),
|
|
348
|
+
/* @__PURE__ */ p(o, {
|
|
349
|
+
opened: te,
|
|
350
|
+
acceptedMimeTypes: ee,
|
|
351
|
+
onConfirm: ne,
|
|
352
|
+
onCancel: () => Z(!1)
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ p(s, {
|
|
355
|
+
opened: M,
|
|
356
|
+
initialName: A,
|
|
357
|
+
onConfirm: X,
|
|
358
|
+
onCancel: () => N(!1)
|
|
359
|
+
})
|
|
360
|
+
]
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
//#endregion
|
|
364
|
+
export { D as n, T as r, A as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./NotesApp-BOcRGO7w.cjs`);exports.default=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./NotesMenuBar-Df6aW85J.cjs`);exports.NotesMenuBar=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./AppMenuBar-B9U0n1Vv.cjs`),t=require(`./notesStore-BCEl1D_v.cjs`),n=require(`./useMenuBarUtils-nJIPJGIQ.cjs`);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`react-i18next`);var o=e=>{let{windowId:i,contentData:o,onExit:s}=e,{t:c}=(0,a.useTranslation)(`common`),l=t.t(i),u=o?.actions,d=o?.setPickerOpen;return(0,r.useMemo)(()=>n.t([{type:`menu`,label:c(`menu.file`),items:[{type:`item`,label:c(`actions.new`),icon:`FcEditImage`,onClick:()=>u?.new?.()},{type:`item`,label:c(`actions.open`),icon:`FcOpenedFolder`,onClick:()=>d?.()},{type:`divider`},{type:`item`,label:c(`actions.save`),icon:`FcInspection`,onClick:()=>u?.save?.(),disabled:!l},{type:`item`,label:c(`actions.saveAs`),icon:`FcDeployment`,onClick:()=>u?.saveAs?.()},{type:`divider`},{type:`item`,label:c(`actions.exit`),icon:`FcLeft`,onClick:s}]}],l),[c,u,d,l,s])},s=({windowId:t,contentData:n,onExit:r})=>(0,i.jsx)(e.t,{elements:o({windowId:t,contentData:n,onExit:r})});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./notesStore-
|
|
4
|
-
import { t as r } from "./useMenuBarUtils-
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { t } from "./AppMenuBar-CnIEVjr8.js";
|
|
3
|
+
import { t as n } from "./notesStore-BPyRTHEc.js";
|
|
4
|
+
import { t as r } from "./useMenuBarUtils-nmu9yehT.js";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { useTranslation as o } from "react-i18next";
|
|
7
8
|
//#region src/components/Apps/NotesApp/useNotesMenuBar.ts
|
|
8
|
-
var
|
|
9
|
-
let { windowId:
|
|
9
|
+
var s = (e) => {
|
|
10
|
+
let { windowId: t, contentData: a, onExit: s } = e, { t: c } = o("common"), l = n(t), u = a?.actions, d = a?.setPickerOpen;
|
|
10
11
|
return i(() => r([{
|
|
11
12
|
type: "menu",
|
|
12
13
|
label: c("menu.file"),
|
|
@@ -52,10 +53,10 @@ var o = (e) => {
|
|
|
52
53
|
l,
|
|
53
54
|
s
|
|
54
55
|
]);
|
|
55
|
-
},
|
|
56
|
-
windowId:
|
|
56
|
+
}, c = /* @__PURE__ */ e({ NotesMenuBar: () => l }), l = ({ windowId: e, contentData: n, onExit: r }) => /* @__PURE__ */ a(t, { elements: s({
|
|
57
|
+
windowId: e,
|
|
57
58
|
contentData: n,
|
|
58
59
|
onExit: r
|
|
59
60
|
}) });
|
|
60
61
|
//#endregion
|
|
61
|
-
export {
|
|
62
|
+
export { c as n, l as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, D as t, c as n, j as r, l as i, n as a, t as o } from "./Box-DSKR_qaa.js";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Paper/Paper.module.mjs
|
|
4
4
|
var c = { root: "m_1b7284a3" }, l = t((t, { radius: n, shadow: i }) => ({ root: {
|
|
5
|
-
"--paper-radius": n === void 0 ? void 0 :
|
|
6
|
-
"--paper-shadow":
|
|
5
|
+
"--paper-radius": n === void 0 ? void 0 : e(n),
|
|
6
|
+
"--paper-shadow": r(i)
|
|
7
7
|
} })), u = a((e) => {
|
|
8
8
|
let t = i("Paper", null, e), { classNames: r, className: a, style: u, styles: d, unstyled: f, withBorder: p, vars: m, radius: h, shadow: g, variant: _, mod: v, attributes: y, ...b } = t, x = n({
|
|
9
9
|
name: "Paper",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./Box-zW6Twge8.cjs`);let t=require(`react/jsx-runtime`);var n={root:`m_1b7284a3`},r=e.D((t,{radius:n,shadow:r})=>({root:{"--paper-radius":n===void 0?void 0:e.A(n),"--paper-shadow":e.j(r)}})),i=e.n(i=>{let a=e.l(`Paper`,null,i),{classNames:o,className:s,style:c,styles:l,unstyled:u,withBorder:d,vars:f,radius:p,shadow:m,variant:h,mod:g,attributes:_,...v}=a,y=e.c({name:`Paper`,props:a,classes:n,className:s,style:c,classNames:o,styles:l,unstyled:u,attributes:_,vars:f,varsResolver:r});return(0,t.jsx)(e.t,{mod:[{"data-with-border":d},g],...y(`root`),variant:h,...v})});i.classes=n,i.varsResolver=r,i.displayName=`@mantine/core/Paper`,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./useResolvedUrl-BkMPM1fM.cjs`),t=require(`./FilePickerApp-DjmuSFqa.cjs`),n=require(`./AppEmptyState-BWCUbf-B.cjs`);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`react-i18next`);var o={container:`_container_1hj4w_1`,frame:`_frame_1hj4w_7`},s=({window:s,notifyReady:c})=>{let{t:l}=(0,a.useTranslation)(`apps`),u=s,d=u?.contentData?.src,[f,p]=(0,r.useState)(d??void 0),[m,h]=(0,r.useState)(!1),g=e.t(f);(0,r.useEffect)(()=>{c?.({...u?.contentData??{},setPickerOpen:()=>h(!0)})},[u,c]);let _=(0,r.useCallback)(e=>{p(e.url??e.name),h(!1)},[]);return(0,i.jsxs)(`div`,{className:o.container,"data-windowid":u?.id,children:[g||f?(0,i.jsx)(`iframe`,{src:g??f,className:o.frame,title:l(`pdf.viewer`),"aria-label":l(`pdf.viewer`)}):(0,i.jsx)(n.t,{label:l(`pdf.noFile`,{defaultValue:`No PDF loaded`})}),(0,i.jsx)(t.n,{opened:m,acceptedMimeTypes:[`application/pdf`],onConfirm:_,onCancel:()=>h(!1)})]})};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./PdfApp-CNEbty5v.cjs`);exports.default=e.t;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { t } from "./useResolvedUrl-DQpLqOoL.js";
|
|
3
|
+
import { n } from "./FilePickerApp-DaMgEqKh.js";
|
|
4
|
+
import { t as r } from "./AppEmptyState-Bxpit0JV.js";
|
|
5
|
+
import { useCallback as i, useEffect as a, useState as o } from "react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import { useTranslation as l } from "react-i18next";
|
|
8
|
+
var u = {
|
|
9
|
+
container: "_container_1hj4w_1",
|
|
10
|
+
frame: "_frame_1hj4w_7"
|
|
11
|
+
}, d = /* @__PURE__ */ e({ default: () => f }), f = ({ window: e, notifyReady: d }) => {
|
|
12
|
+
let { t: f } = l("apps"), p = e, m = p?.contentData?.src, [h, g] = o(m ?? void 0), [_, v] = o(!1), y = t(h);
|
|
13
|
+
a(() => {
|
|
14
|
+
d?.({
|
|
15
|
+
...p?.contentData ?? {},
|
|
16
|
+
setPickerOpen: () => v(!0)
|
|
17
|
+
});
|
|
18
|
+
}, [p, d]);
|
|
19
|
+
let b = i((e) => {
|
|
20
|
+
g(e.url ?? e.name), v(!1);
|
|
21
|
+
}, []);
|
|
22
|
+
return /* @__PURE__ */ c("div", {
|
|
23
|
+
className: u.container,
|
|
24
|
+
"data-windowid": p?.id,
|
|
25
|
+
children: [y || h ? /* @__PURE__ */ s("iframe", {
|
|
26
|
+
src: y ?? h,
|
|
27
|
+
className: u.frame,
|
|
28
|
+
title: f("pdf.viewer"),
|
|
29
|
+
"aria-label": f("pdf.viewer")
|
|
30
|
+
}) : /* @__PURE__ */ s(r, { label: f("pdf.noFile", { defaultValue: "No PDF loaded" }) }), /* @__PURE__ */ s(n, {
|
|
31
|
+
opened: _,
|
|
32
|
+
acceptedMimeTypes: ["application/pdf"],
|
|
33
|
+
onConfirm: b,
|
|
34
|
+
onCancel: () => v(!1)
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { d as n, f as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./PdfMenuBar-Dj5cJUkg.cjs`);exports.PdfMenuBar=e.t;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { t } from "./AppMenuBar-CnIEVjr8.js";
|
|
3
|
+
import { memo as n, useMemo as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { useTranslation as a } from "react-i18next";
|
|
6
|
+
//#region src/components/Apps/PdfApp/usePdfMenuBar.ts
|
|
7
|
+
var o = (e) => {
|
|
8
|
+
let { contentData: t, onExit: n } = e, { t: i } = a("common"), o = t?.setPickerOpen;
|
|
9
|
+
return r(() => [{
|
|
10
|
+
type: "menu",
|
|
11
|
+
label: i("menu.file"),
|
|
12
|
+
items: [
|
|
13
|
+
{
|
|
14
|
+
type: "item",
|
|
15
|
+
label: i("actions.open"),
|
|
16
|
+
icon: "FcOpenedFolder",
|
|
17
|
+
onClick: () => o?.()
|
|
18
|
+
},
|
|
19
|
+
{ type: "divider" },
|
|
20
|
+
{
|
|
21
|
+
type: "item",
|
|
22
|
+
label: i("actions.exit"),
|
|
23
|
+
icon: "FcLeft",
|
|
24
|
+
onClick: n
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}], [
|
|
28
|
+
i,
|
|
29
|
+
o,
|
|
30
|
+
n
|
|
31
|
+
]);
|
|
32
|
+
}, s = /* @__PURE__ */ e({ PdfMenuBar: () => c }), c = n(({ windowId: e, contentData: n, onExit: r }) => /* @__PURE__ */ i(t, { elements: o({
|
|
33
|
+
windowId: e,
|
|
34
|
+
contentData: n,
|
|
35
|
+
onExit: r
|
|
36
|
+
}) }));
|
|
37
|
+
c.displayName = "PdfMenuBar";
|
|
38
|
+
//#endregion
|
|
39
|
+
export { s as n, c as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./Box-zW6Twge8.cjs`);const e=require(`./AppMenuBar-B9U0n1Vv.cjs`);let t=require(`react`),n=require(`react/jsx-runtime`),r=require(`react-i18next`);var i=e=>{let{contentData:n,onExit:i}=e,{t:a}=(0,r.useTranslation)(`common`),o=n?.setPickerOpen;return(0,t.useMemo)(()=>[{type:`menu`,label:a(`menu.file`),items:[{type:`item`,label:a(`actions.open`),icon:`FcOpenedFolder`,onClick:()=>o?.()},{type:`divider`},{type:`item`,label:a(`actions.exit`),icon:`FcLeft`,onClick:i}]}],[a,o,i])},a=(0,t.memo)(({windowId:t,contentData:r,onExit:a})=>(0,n.jsx)(e.t,{elements:i({windowId:t,contentData:r,onExit:a})}));a.displayName=`PdfMenuBar`,Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|