@fde-desktop/fde-core 0.4.6 → 0.4.8
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 +26 -0
- package/dist/AccordionChevron-DBXp38Lm.cjs +1 -0
- package/dist/ActionIcon-C_SfdBfx.cjs +1 -0
- package/dist/ActionIcon-CtVbYlGY.js +145 -0
- package/dist/AppEmptyState-BTujnL_b.js +4962 -0
- package/dist/AppEmptyState-Dc4GaDfu.cjs +1 -0
- package/dist/AppIcon--qzR4sgf.cjs +1 -0
- package/dist/AppIcon-DCDuaU-t.js +80 -0
- package/dist/AppMenuBar-BiHbNg9V.cjs +9 -0
- package/dist/AppMenuBar-CHJy8OF0.js +2639 -0
- package/dist/Box-DRm8EabO.js +1593 -0
- package/dist/Box-D_64wv6n.cjs +1 -0
- package/dist/Button-D0FXpkur.cjs +1 -0
- package/dist/Button-k7SxX1Xl.js +178 -0
- package/dist/CalendarApp-C1HvuJoa.cjs +1 -0
- package/dist/CalendarApp-DBEQqsS_.js +1721 -0
- package/dist/Center-CyryG5zn.js +25 -0
- package/dist/Center-T4No_FAa.cjs +1 -0
- package/dist/CheckIcon-C3WjIR2i.js +25 -0
- package/dist/CheckIcon-CBMLR6Gc.cjs +1 -0
- package/dist/CodeServerApp-B3l5QPuG.cjs +1 -0
- package/dist/CodeServerApp-BpeALSaX.js +2 -0
- package/dist/CodeServerApp-CRjCngFv.cjs +1 -0
- package/dist/CodeServerApp-DY94cy1a.js +149 -0
- package/dist/ColorPicker-BL4UbKCV.cjs +1 -0
- package/dist/ColorPicker-DvRR-wlQ.js +997 -0
- package/dist/Colors-BxX4G8kX.cjs +1 -0
- package/dist/Colors-hca6raEG.js +15 -0
- package/dist/CreateItemApp-BU9wmjKM.cjs +1 -0
- package/dist/CreateItemApp-CtdH1K1g.js +400 -0
- package/dist/CreateItemApp-t9F-a6wD.cjs +1 -0
- package/dist/DeviceInfoApp-C306YvtZ.js +223 -0
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +1 -0
- package/dist/DeviceInfoApp-CyB01v4D.cjs +1 -0
- package/dist/DownloadProgress-IRw1dzLX.cjs +1 -0
- package/dist/DownloadProgress-hdupSUBT.js +174 -0
- package/dist/FileIcon-BCpGMI5U.js +88 -0
- package/dist/FileIcon-BCrsxmtt.cjs +1 -0
- package/dist/FilePickerApp-DMGuvahM.js +409 -0
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +1 -0
- package/dist/FilesApp-30OjnOuP.cjs +1 -0
- package/dist/FilesApp-BvlzPNuO.cjs +1 -0
- package/dist/FilesApp-VXrmtt63.js +225 -0
- package/dist/Group-BzwlMeob.js +48 -0
- package/dist/Group-DhwePB84.cjs +1 -0
- package/dist/ImageViewerApp-BOz59TGc.cjs +1 -0
- package/dist/ImageViewerApp-BeqY6voE.cjs +1 -0
- package/dist/ImageViewerApp-CWiP6zx-.js +68 -0
- package/dist/ImageViewerApp-DBAfJPSo.js +2 -0
- package/dist/ImageViewerMenuBar-BULkh_Ku.js +86 -0
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +2 -0
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +1 -0
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +1 -0
- package/dist/MenuEditApp-BoKtj2GH.js +2 -0
- package/dist/MenuEditApp-D21sEp86.js +2615 -0
- package/dist/MenuEditApp-k3cPfTG9.cjs +1 -0
- package/dist/MenuEditApp-sz9GlLVH.cjs +5 -0
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +1 -0
- package/dist/MenuEditMenuBar-B94z4Umw.js +59 -0
- package/dist/MenuEditMenuBar-Bv6R42lf.js +2 -0
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +1 -0
- package/dist/NotesApp-BtR55Hva.cjs +207 -0
- package/dist/NotesApp-C59exz_9.js +16154 -0
- package/dist/NotesApp-D47I5LS_.js +2 -0
- package/dist/NotesApp-lOwsi2sg.cjs +1 -0
- package/dist/NotesMenuBar-BB4NkKGf.js +61 -0
- package/dist/NotesMenuBar-BZITC74y.cjs +1 -0
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +1 -0
- package/dist/NotesMenuBar-xlfODmMA.js +2 -0
- package/dist/Paper-DtUYKmYn.js +30 -0
- package/dist/Paper-DwCpwWwH.cjs +1 -0
- package/dist/PdfApp-1XbFGfoY.cjs +1 -0
- package/dist/PdfApp-BhIoJWeK.cjs +1 -0
- package/dist/PdfApp-C5Rt1Zaw.js +2 -0
- package/dist/PdfApp-C8Hwxxqh.js +38 -0
- package/dist/PdfMenuBar-BA9rKuMP.cjs +1 -0
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +1 -0
- package/dist/PdfMenuBar-R0fu7oYF.js +2 -0
- package/dist/PdfMenuBar-sd-9Vk3h.js +38 -0
- package/dist/SettingsApp-BA-5B4RA.cjs +1 -0
- package/dist/SettingsApp-B_rev1xh.cjs +1 -0
- package/dist/SettingsApp-Ck4aUXs5.js +2 -0
- package/dist/SettingsApp-DUMKSA3K.js +2425 -0
- package/dist/SettingsMenuBar-BPwv8JQK.js +41 -0
- package/dist/SettingsMenuBar-D8R7hOik.js +2 -0
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +1 -0
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +1 -0
- package/dist/Slider-BNO-vDFn.js +1175 -0
- package/dist/Slider-Bg_EIBg6.cjs +1 -0
- package/dist/Stack-BOaJgV3N.cjs +1 -0
- package/dist/Stack-CuDEaP7e.js +34 -0
- package/dist/StorybookApp-Bkr-7mXp.cjs +1 -0
- package/dist/StorybookApp-WYninkJo.js +10 -0
- package/dist/TerminalApp-8XbsKAWa.js +10041 -0
- package/dist/TerminalApp-Bq2e7QQu.cjs +1 -0
- package/dist/TerminalApp-CVu3Axc9.js +2 -0
- package/dist/TerminalApp-b7_d0jRO.cjs +36 -0
- package/dist/TerminalMenuBar-Cb8x9laS.js +2 -0
- package/dist/TerminalMenuBar-De-FH5AE.cjs +1 -0
- package/dist/TerminalMenuBar-iKLydNda.js +112 -0
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +1 -0
- package/dist/TextInput-C3qfxxWI.js +980 -0
- package/dist/TextInput-DcYns3hz.cjs +1 -0
- package/dist/Tooltip-CAOO-qdx.js +3185 -0
- package/dist/Tooltip-DDh_x-CB.cjs +1 -0
- package/dist/UnstyledButton-CI3kyRck.js +25 -0
- package/dist/UnstyledButton-Cl5RuIid.cjs +1 -0
- package/dist/UploaderApp-BZXW75A0.cjs +1 -0
- package/dist/UploaderApp-C9W_yCT-.js +487 -0
- package/dist/UploaderApp-CPpStgP5.cjs +1 -0
- package/dist/UploaderApp-DHsMQN-f.js +2 -0
- package/dist/VscIcon-CxEmqD80.cjs +1 -0
- package/dist/VscIcon-DueRJVTe.js +8 -0
- package/dist/chunk-BQCxAhux.js +23 -0
- package/dist/chunk-CiTBaPhY.cjs +1 -0
- package/dist/create-safe-context-95P-Bfg3.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-B0R1-BeA.js +1905 -0
- package/dist/desktopStore-Cox-Og1z.cjs +1 -0
- package/dist/fc-DejOsQyD.cjs +1 -0
- package/dist/fc-kd8WzIER.js +20536 -0
- package/dist/fc-xJ_v2ayq.cjs +184 -0
- package/dist/fi-BahYsbim.js +9993 -0
- package/dist/fi-BkhyTcZo.cjs +1 -0
- package/dist/getRuntime-BLXyQZBB.cjs +1 -0
- package/dist/getRuntime-CCRXVzJH.js +63 -0
- package/dist/iconBase-B4UCuSvv.cjs +1 -0
- package/dist/iconBase-D7iPes7B.js +108 -0
- package/dist/imageViewerStore-CH1qW6md.cjs +1 -0
- package/dist/imageViewerStore-CJMRXaQh.js +50 -0
- package/dist/index.cjs +53 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +8983 -4780
- package/dist/is-element-BocgicRg.cjs +1 -0
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/menuEditStore-C8S_EedM.js +38 -0
- package/dist/menuEditStore-CU7IAg3L.cjs +1 -0
- package/dist/notesStore-DKRgTTFn.js +36 -0
- package/dist/notesStore-zKmChTfF.cjs +1 -0
- package/dist/react-DYmzHD0X.js +27 -0
- package/dist/react-Dldg32sN.cjs +1 -0
- package/dist/settingsAppStore-BrlImdAH.cjs +1 -0
- package/dist/settingsAppStore-KOeWRO6h.js +29 -0
- package/dist/terminalStore-LWWjCvCe.js +30 -0
- package/dist/terminalStore-fZe5t7Ty.cjs +1 -0
- package/dist/use-merged-ref-BI9n1hUK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +1 -0
- package/dist/use-resolved-styles-api-pEOi2wiK.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-BPrfGv0W.cjs +1 -0
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +1 -0
- package/dist/useAdaptiveDimensions-CunsU0mn.js +40 -0
- package/dist/useCloseInterceptor-CuKAAFnj.js +51 -0
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +1 -0
- package/dist/useDynamicIcon-GJg3vWsJ.js +22 -0
- package/dist/useDynamicIcon-SytdL1Tu.cjs +1 -0
- package/dist/useMenuBarUtils-Bp5PiztD.cjs +1 -0
- package/dist/useMenuBarUtils-ChmpZjwu.js +6 -0
- package/dist/useOpenApp-BdarhIgl.cjs +1 -0
- package/dist/useOpenApp-JHCPTBWa.js +279 -0
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +1 -0
- package/dist/useResolvedUrl-DFKXq598.js +30 -0
- package/dist/useTranslation-DMRGdqZi.js +279 -0
- package/dist/useTranslation-D_O7S4RJ.cjs +1 -0
- package/dist/vsc-Ciibqbxo.cjs +1 -0
- package/dist/vsc-DGKSpOAR.js +9574 -0
- package/package.json +7 -3
- package/dist/CalendarApp-CHLUCAI7.css +0 -744
- package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
- package/dist/CalendarApp-OTGEERSS.cjs +0 -8
- package/dist/CodeServerApp-5KZGO7HL.css +0 -75
- package/dist/CodeServerApp-LUZFCQBI.js +0 -3
- package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
- package/dist/CreateItemApp-2EME6FYH.js +0 -8
- package/dist/CreateItemApp-BSEISPUS.cjs +0 -14
- package/dist/CreateItemApp-PQB5GTFG.css +0 -107
- package/dist/DeviceInfoApp-2MJFK32B.cjs +0 -11
- package/dist/DeviceInfoApp-KFYU3E43.js +0 -5
- package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
- package/dist/FilesApp-B7JR4PEP.cjs +0 -14
- package/dist/FilesApp-E6L5W3T2.css +0 -1817
- package/dist/FilesApp-HYTIWN3O.js +0 -8
- package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
- package/dist/ImageViewerApp-PLHNQFZ3.js +0 -11
- package/dist/ImageViewerApp-UIXSGW2X.cjs +0 -17
- package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
- package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
- package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
- package/dist/MenuEditApp-4DB5UEWH.js +0 -9
- package/dist/MenuEditApp-B2ZMG4ZY.cjs +0 -15
- package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
- package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
- package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
- package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
- package/dist/NotesApp-BZYASRVJ.cjs +0 -16
- package/dist/NotesApp-MW37NRSN.js +0 -10
- package/dist/NotesApp-TQ6IHDNX.css +0 -302
- package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
- package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
- package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
- package/dist/PdfApp-3ZINDODQ.cjs +0 -16
- package/dist/PdfApp-BUIC5U5H.css +0 -206
- package/dist/PdfApp-ZSYAQP7L.js +0 -10
- package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
- package/dist/PdfMenuBar-QUM72EE4.css +0 -56
- package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
- package/dist/SettingsApp-2ZNO7AVY.cjs +0 -20
- package/dist/SettingsApp-JVOSEFH3.css +0 -283
- package/dist/SettingsApp-ODZINK6T.js +0 -14
- package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
- package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
- package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
- package/dist/StorybookApp-NQ244BER.css +0 -7
- package/dist/StorybookApp-NZDV4X3Y.js +0 -1
- package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
- package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
- package/dist/TerminalApp-EAATMIMX.css +0 -77
- package/dist/TerminalApp-GCKJCM55.js +0 -4
- package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
- package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
- package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
- package/dist/UploaderApp-6KV3TGCT.css +0 -1817
- package/dist/UploaderApp-MTRIYWV4.cjs +0 -16
- package/dist/UploaderApp-V3WUDCG2.js +0 -10
- package/dist/chunk-25GVAXBU.js +0 -215
- package/dist/chunk-2MYZWMDC.js +0 -444
- package/dist/chunk-2NGIGLVP.cjs +0 -219
- package/dist/chunk-2O3W6TLG.cjs +0 -49
- package/dist/chunk-2PSTHGTD.cjs +0 -42
- package/dist/chunk-2RQX7QBP.cjs +0 -148
- package/dist/chunk-2UW42GAP.cjs +0 -2308
- package/dist/chunk-43W6UDUZ.cjs +0 -19
- package/dist/chunk-4E45FBAH.js +0 -223
- package/dist/chunk-4KIMZJ3L.cjs +0 -88
- package/dist/chunk-4XURSNM4.js +0 -43
- package/dist/chunk-4ZCRYHL6.js +0 -407
- package/dist/chunk-57ZTJB2W.cjs +0 -2329
- package/dist/chunk-5C6IQE42.cjs +0 -35
- package/dist/chunk-5NOHYJNH.js +0 -84
- package/dist/chunk-5YH6AKEO.js +0 -146
- package/dist/chunk-7FGL7HGS.cjs +0 -83
- package/dist/chunk-7HQ6KUIO.cjs +0 -50
- package/dist/chunk-7Y7HB7FB.cjs +0 -53
- package/dist/chunk-ABIAPZ6S.cjs +0 -45
- package/dist/chunk-AU4IENXY.cjs +0 -449
- package/dist/chunk-BFMSPWLP.cjs +0 -165
- package/dist/chunk-BQCD5RAF.cjs +0 -48
- package/dist/chunk-BQL3YXMV.js +0 -17429
- package/dist/chunk-C6BEZNAM.cjs +0 -45
- package/dist/chunk-CV5PUHAE.cjs +0 -86
- package/dist/chunk-D5MVFFID.js +0 -42
- package/dist/chunk-D7R55WWT.js +0 -1601
- package/dist/chunk-DEVJOHGE.cjs +0 -38
- package/dist/chunk-DWP2SYF7.js +0 -55
- package/dist/chunk-E55VXNLK.cjs +0 -17498
- package/dist/chunk-EAELL43F.js +0 -42
- package/dist/chunk-EX5V2ZTU.js +0 -40
- package/dist/chunk-FH4ILMKF.js +0 -38
- package/dist/chunk-FNWS4ZKT.js +0 -48
- package/dist/chunk-FRHBM2U7.js +0 -33
- package/dist/chunk-FX2TPX3L.cjs +0 -45
- package/dist/chunk-GRYCUBJZ.js +0 -9
- package/dist/chunk-HIGKZ7UP.js +0 -2293
- package/dist/chunk-HWHBSAUC.js +0 -40
- package/dist/chunk-HYJJVB7G.js +0 -442
- package/dist/chunk-I5MJXFYW.cjs +0 -34
- package/dist/chunk-IDHP3R4I.js +0 -31
- package/dist/chunk-JEBKLIMU.cjs +0 -123
- package/dist/chunk-JX65IKJZ.cjs +0 -324
- package/dist/chunk-KGMXUBWQ.js +0 -280
- package/dist/chunk-KI5FXBOM.cjs +0 -286
- package/dist/chunk-KQHICFX3.js +0 -121
- package/dist/chunk-LMJE6V4N.cjs +0 -42
- package/dist/chunk-MVDGM5Y4.js +0 -68
- package/dist/chunk-NULEEBCG.js +0 -32
- package/dist/chunk-NVEGEK3N.js +0 -31
- package/dist/chunk-OJIDKDKF.js +0 -68
- package/dist/chunk-PDEZ7BIN.js +0 -541
- package/dist/chunk-PKPQA5NR.js +0 -15
- package/dist/chunk-PNDBLFJW.cjs +0 -50
- package/dist/chunk-PVBI2WRF.js +0 -77
- package/dist/chunk-Q3WA72BF.cjs +0 -70
- package/dist/chunk-QFGHYAD7.cjs +0 -237
- package/dist/chunk-RDIDAZ3S.cjs +0 -9
- package/dist/chunk-RGJPRXYY.js +0 -48
- package/dist/chunk-RQ6OZRUW.cjs +0 -41
- package/dist/chunk-SBE4SZAN.cjs +0 -226
- package/dist/chunk-TGWMOHAO.js +0 -17
- package/dist/chunk-U5JKHQBS.js +0 -234
- package/dist/chunk-UIQCTAVM.cjs +0 -59
- package/dist/chunk-VFPEMNSX.js +0 -47
- package/dist/chunk-VLWKVIYD.js +0 -162
- package/dist/chunk-W2Y22XR6.js +0 -2240
- package/dist/chunk-WHZGUG7Q.js +0 -36
- package/dist/chunk-WSA5WSHN.js +0 -283
- package/dist/chunk-XVASHRCE.cjs +0 -70
- package/dist/chunk-XYSMVQQD.cjs +0 -1608
- package/dist/chunk-Y2WL2M7M.js +0 -86
- package/dist/chunk-YAIWI4Z5.js +0 -7
- package/dist/chunk-YOHBUOZJ.cjs +0 -451
- package/dist/chunk-YP2PLNOF.cjs +0 -34
- package/dist/chunk-YSOLW4FS.cjs +0 -11
- package/dist/chunk-YSWU4OKP.cjs +0 -548
- package/dist/chunk-YY6OUR2U.js +0 -44
- package/dist/chunk-YZWS7FDT.cjs +0 -409
- package/dist/chunk-Z5YGWL65.cjs +0 -39
- package/dist/chunk-ZHNDXNL4.js +0 -45
- package/dist/chunk-ZX3EDZ5C.cjs +0 -17
- package/dist/index.d.cts +0 -2019
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { C as e, o as t } from "./desktopStore-B0R1-BeA.js";
|
|
2
|
+
import { t as n } from "./useAdaptiveDimensions-CunsU0mn.js";
|
|
3
|
+
import { lazy as r, useCallback as i } from "react";
|
|
4
|
+
//#region src/components/Window/lazyApps.ts
|
|
5
|
+
var a = r(() => import("./FilesApp-VXrmtt63.js").then((e) => e.n)), o = r(() => import("./NotesApp-D47I5LS_.js")), s = r(() => import("./ImageViewerApp-DBAfJPSo.js")), c = r(() => import("./PdfApp-C5Rt1Zaw.js")), l = r(() => import("./MenuEditApp-BoKtj2GH.js")), u = r(() => import("./UploaderApp-DHsMQN-f.js")), d = r(() => import("./SettingsApp-Ck4aUXs5.js")), f = r(() => import("./DeviceInfoApp-C306YvtZ.js").then((e) => e.n)), p = r(() => import("./CalendarApp-DBEQqsS_.js").then((e) => e.n)), m = r(() => import("./CreateItemApp-CtdH1K1g.js").then((e) => e.n)), h = r(() => import("./NotesMenuBar-xlfODmMA.js").then((e) => ({ default: e.NotesMenuBar }))), g = r(() => import("./MenuEditMenuBar-Bv6R42lf.js").then((e) => ({ default: e.MenuEditMenuBar }))), _ = r(() => import("./SettingsMenuBar-D8R7hOik.js").then((e) => ({ default: e.SettingsMenuBar }))), v = r(() => import("./PdfMenuBar-R0fu7oYF.js").then((e) => ({ default: e.PdfMenuBar }))), y = r(() => import("./ImageViewerMenuBar-Cb0Nr5-M.js").then((e) => ({ default: e.ImageViewerMenuBar }))), b = r(() => import("./TerminalApp-CVu3Axc9.js")), x = r(() => import("./TerminalMenuBar-Cb8x9laS.js").then((e) => ({ default: e.TerminalMenuBar }))), S = r(() => import("./CodeServerApp-BpeALSaX.js")), C = r(() => import("./StorybookApp-WYninkJo.js").then((e) => e.n)), w = null, T = (() => null);
|
|
6
|
+
function E(e) {
|
|
7
|
+
return {
|
|
8
|
+
...e,
|
|
9
|
+
component: e.component ?? (e.loader ? r(e.loader) : void 0),
|
|
10
|
+
MenuBarComponent: e.MenuBarComponent ?? (e.menuBarLoader ? r(e.menuBarLoader) : void 0)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function D(e) {
|
|
14
|
+
w = {};
|
|
15
|
+
for (let [t, n] of Object.entries(e)) w[t] = E(n);
|
|
16
|
+
}
|
|
17
|
+
function O(e) {
|
|
18
|
+
return w ? w[e]?.component || (console.warn(`[AppRegistry] App not found: ${e}`), T) : (console.warn(`[AppRegistry] Registry not initialized, requested app: ${e}`), T);
|
|
19
|
+
}
|
|
20
|
+
function k(e) {
|
|
21
|
+
return w?.[e]?.buildMenuBar;
|
|
22
|
+
}
|
|
23
|
+
function A(e) {
|
|
24
|
+
return w?.[e]?.MenuBarComponent;
|
|
25
|
+
}
|
|
26
|
+
function j(e) {
|
|
27
|
+
return w?.[e]?.isLazy ?? !1;
|
|
28
|
+
}
|
|
29
|
+
function M(e) {
|
|
30
|
+
return w?.[e]?.appName;
|
|
31
|
+
}
|
|
32
|
+
function N(e) {
|
|
33
|
+
return w?.[e];
|
|
34
|
+
}
|
|
35
|
+
function P(e) {
|
|
36
|
+
w ||= {};
|
|
37
|
+
for (let [t, n] of Object.entries(e)) w[t] = E(n);
|
|
38
|
+
}
|
|
39
|
+
var F = {};
|
|
40
|
+
function I() {
|
|
41
|
+
let e = {
|
|
42
|
+
files: {
|
|
43
|
+
component: a,
|
|
44
|
+
appName: "Files",
|
|
45
|
+
isLazy: !0
|
|
46
|
+
},
|
|
47
|
+
settings: {
|
|
48
|
+
component: d,
|
|
49
|
+
MenuBarComponent: _,
|
|
50
|
+
appName: "Settings",
|
|
51
|
+
isLazy: !0
|
|
52
|
+
},
|
|
53
|
+
pdf: {
|
|
54
|
+
component: c,
|
|
55
|
+
MenuBarComponent: v,
|
|
56
|
+
appName: "PDF",
|
|
57
|
+
isLazy: !0
|
|
58
|
+
},
|
|
59
|
+
"image-viewer": {
|
|
60
|
+
component: s,
|
|
61
|
+
MenuBarComponent: y,
|
|
62
|
+
appName: "Image Viewer",
|
|
63
|
+
isLazy: !0
|
|
64
|
+
},
|
|
65
|
+
uploader: {
|
|
66
|
+
component: u,
|
|
67
|
+
appName: "Uploader",
|
|
68
|
+
isLazy: !0
|
|
69
|
+
},
|
|
70
|
+
createItem: {
|
|
71
|
+
component: m,
|
|
72
|
+
appName: "Create Item",
|
|
73
|
+
isLazy: !0
|
|
74
|
+
},
|
|
75
|
+
"device-info": {
|
|
76
|
+
component: f,
|
|
77
|
+
appName: "Device Info",
|
|
78
|
+
isLazy: !0
|
|
79
|
+
},
|
|
80
|
+
menuedit: {
|
|
81
|
+
component: l,
|
|
82
|
+
MenuBarComponent: g,
|
|
83
|
+
appName: "Menu Editor",
|
|
84
|
+
isLazy: !0
|
|
85
|
+
},
|
|
86
|
+
notepad: {
|
|
87
|
+
component: o,
|
|
88
|
+
MenuBarComponent: h,
|
|
89
|
+
appName: "Notepad",
|
|
90
|
+
isLazy: !0
|
|
91
|
+
},
|
|
92
|
+
calendar: {
|
|
93
|
+
component: p,
|
|
94
|
+
appName: "Calendar",
|
|
95
|
+
isLazy: !0
|
|
96
|
+
},
|
|
97
|
+
terminal: {
|
|
98
|
+
component: b,
|
|
99
|
+
MenuBarComponent: x,
|
|
100
|
+
appName: "Terminal",
|
|
101
|
+
isLazy: !0
|
|
102
|
+
},
|
|
103
|
+
"code-server": {
|
|
104
|
+
component: S,
|
|
105
|
+
appName: "VS Code",
|
|
106
|
+
isLazy: !0
|
|
107
|
+
},
|
|
108
|
+
storybook: {
|
|
109
|
+
component: C,
|
|
110
|
+
appName: "Storybook",
|
|
111
|
+
isLazy: !0
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
Object.assign(F, e), P(e);
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/constants/Animations.ts
|
|
118
|
+
var L = .3, R = (e) => ({
|
|
119
|
+
duration: e,
|
|
120
|
+
ease: "easeIn"
|
|
121
|
+
}), z = (e) => ({
|
|
122
|
+
duration: e,
|
|
123
|
+
ease: "easeOut"
|
|
124
|
+
}), B = (e) => ({
|
|
125
|
+
hidden: {
|
|
126
|
+
opacity: 0,
|
|
127
|
+
scale: .92,
|
|
128
|
+
y: 12
|
|
129
|
+
},
|
|
130
|
+
visible: {
|
|
131
|
+
opacity: 1,
|
|
132
|
+
scale: 1,
|
|
133
|
+
y: 0,
|
|
134
|
+
transition: z(e)
|
|
135
|
+
},
|
|
136
|
+
exit: {
|
|
137
|
+
opacity: 0,
|
|
138
|
+
scale: .92,
|
|
139
|
+
y: 12,
|
|
140
|
+
transition: R(e)
|
|
141
|
+
}
|
|
142
|
+
}), V = (e) => ({
|
|
143
|
+
initial: {
|
|
144
|
+
opacity: 0,
|
|
145
|
+
y: 8,
|
|
146
|
+
scale: .96
|
|
147
|
+
},
|
|
148
|
+
animate: {
|
|
149
|
+
opacity: 1,
|
|
150
|
+
y: 0,
|
|
151
|
+
scale: 1,
|
|
152
|
+
transition: z(e)
|
|
153
|
+
},
|
|
154
|
+
exit: {
|
|
155
|
+
opacity: 0,
|
|
156
|
+
y: 8,
|
|
157
|
+
scale: .96,
|
|
158
|
+
transition: R(e)
|
|
159
|
+
}
|
|
160
|
+
}), H = (e) => (t, n) => ({
|
|
161
|
+
opacity: 0,
|
|
162
|
+
scale: .1,
|
|
163
|
+
x: t,
|
|
164
|
+
y: n,
|
|
165
|
+
transition: {
|
|
166
|
+
duration: e,
|
|
167
|
+
ease: [
|
|
168
|
+
.4,
|
|
169
|
+
0,
|
|
170
|
+
1,
|
|
171
|
+
1
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
}), U = (e) => (t, n) => ({
|
|
175
|
+
opacity: [0, 1],
|
|
176
|
+
scale: [.1, 1],
|
|
177
|
+
x: [t, 0],
|
|
178
|
+
y: [n, 0],
|
|
179
|
+
transition: {
|
|
180
|
+
duration: e,
|
|
181
|
+
ease: [
|
|
182
|
+
0,
|
|
183
|
+
0,
|
|
184
|
+
.2,
|
|
185
|
+
1
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
}), W = (e) => ({
|
|
189
|
+
duration: e,
|
|
190
|
+
ease: "easeOut"
|
|
191
|
+
}), G = {
|
|
192
|
+
duration: L,
|
|
193
|
+
ease: "easeIn"
|
|
194
|
+
}, K = {
|
|
195
|
+
duration: L,
|
|
196
|
+
ease: "easeOut"
|
|
197
|
+
}, q = B(L), J = V(L), Y = H(.3), X = U(.3), Z = {
|
|
198
|
+
scale: {
|
|
199
|
+
hidden: {
|
|
200
|
+
opacity: 0,
|
|
201
|
+
scale: .92,
|
|
202
|
+
y: 12
|
|
203
|
+
},
|
|
204
|
+
visible: {
|
|
205
|
+
opacity: 1,
|
|
206
|
+
scale: 1,
|
|
207
|
+
y: 0,
|
|
208
|
+
transition: K
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
slide: {
|
|
212
|
+
hidden: {
|
|
213
|
+
opacity: 0,
|
|
214
|
+
y: 40
|
|
215
|
+
},
|
|
216
|
+
visible: {
|
|
217
|
+
opacity: 1,
|
|
218
|
+
y: 0,
|
|
219
|
+
transition: K
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
fade: {
|
|
223
|
+
hidden: { opacity: 0 },
|
|
224
|
+
visible: {
|
|
225
|
+
opacity: 1,
|
|
226
|
+
transition: K
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}, Q = {
|
|
230
|
+
duration: .25,
|
|
231
|
+
ease: "easeOut"
|
|
232
|
+
}, $ = () => ({
|
|
233
|
+
x: 150 + Math.random() * 200,
|
|
234
|
+
y: 80 + Math.random() * 100
|
|
235
|
+
}), ee = (e, t, n, r) => ({
|
|
236
|
+
x: Math.round((e - n) / 2),
|
|
237
|
+
y: Math.round((t - r) / 2)
|
|
238
|
+
}), te = () => {
|
|
239
|
+
let r = t((e) => e.openWindow), a = t((e) => e.focusWindow), o = t((e) => e.windows), s = t((e) => e.customApps), c = n();
|
|
240
|
+
return i((t, { contentData: n, position: i } = {}) => {
|
|
241
|
+
let l = e.find((e) => e.id === t), u = s.find((e) => e.id === t), d = N(t);
|
|
242
|
+
if (l?.singleWindow === !0 || u?.window?.singleWindow === !0 || d?.singleWindow === !0) {
|
|
243
|
+
let e = o.find((e) => e.content === t);
|
|
244
|
+
if (e) {
|
|
245
|
+
a(e.id);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
let { x: f, y: p } = i ?? $();
|
|
250
|
+
r({
|
|
251
|
+
title: l?.name ?? d?.appName ?? u?.name ?? t.charAt(0).toUpperCase() + t.slice(1),
|
|
252
|
+
content: t,
|
|
253
|
+
icon: l?.icon ?? d?.icon ?? u?.icon,
|
|
254
|
+
fcIcon: l?.fcIcon ?? d?.fcIcon,
|
|
255
|
+
iconUrl: l?.iconUrl ?? d?.iconUrl,
|
|
256
|
+
iconColor: l?.iconColor ?? d?.iconColor,
|
|
257
|
+
canMaximize: l?.canMaximize ?? d?.canMaximize ?? u?.window?.canMaximize,
|
|
258
|
+
x: f,
|
|
259
|
+
y: p,
|
|
260
|
+
width: l?.defaultWidth ?? d?.defaultWidth ?? u?.window?.defaultWidth ?? c.defaultWidth,
|
|
261
|
+
height: l?.defaultHeight ?? d?.defaultHeight ?? u?.window?.defaultHeight ?? c.defaultHeight,
|
|
262
|
+
minWidth: l?.minWidth === !1 || d?.minWidth === !1 || u?.window?.minWidth === !1 ? void 0 : l?.minWidth ?? d?.minWidth ?? u?.window?.minWidth ?? c.minWidth,
|
|
263
|
+
minHeight: l?.minHeight === !1 || d?.minHeight === !1 || u?.window?.minHeight === !1 ? void 0 : l?.minHeight ?? d?.minHeight ?? u?.window?.minHeight ?? c.minHeight,
|
|
264
|
+
contentData: {
|
|
265
|
+
...n,
|
|
266
|
+
...l?.autoLoad ? { autoLoad: l.autoLoad } : {}
|
|
267
|
+
},
|
|
268
|
+
alwaysOnTop: l?.alwaysOnTop ?? d?.alwaysOnTop
|
|
269
|
+
});
|
|
270
|
+
}, [
|
|
271
|
+
r,
|
|
272
|
+
a,
|
|
273
|
+
o,
|
|
274
|
+
s,
|
|
275
|
+
c
|
|
276
|
+
]);
|
|
277
|
+
};
|
|
278
|
+
//#endregion
|
|
279
|
+
export { m as A, v as B, k as C, j as D, D as E, l as F, _ as H, g as I, o as L, a as M, s as N, P as O, y as P, h as R, M as S, I as T, u as U, d as V, $ as _, ee as a, F as b, W as c, U as d, B as f, J as g, Z as h, K as i, f as j, p as k, H as l, Y as m, L as n, R as o, Q as p, G as r, z as s, te as t, V as u, X as v, A as w, O as x, q as y, c as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./getRuntime-BLXyQZBB.cjs`),t=require(`./desktopStore-Cox-Og1z.cjs`);let n=require(`react`);function r(r){let i=(0,n.useMemo)(()=>(r?.startsWith(`idb://`)||e.i()&&r?.startsWith(`/api/fs`))??!1,[r]),a=(0,n.useMemo)(()=>r?.startsWith(`/api/fs`)??!1,[r]),[o,s]=(0,n.useState)(void 0),c=(0,n.useRef)(void 0);if((0,n.useEffect)(()=>{if(!r||!i)return;let e=!1;return t.n.toBlobUrl(r).then(t=>{if(e){t&&URL.revokeObjectURL(t);return}c.current=t??void 0,s(t??void 0)}),()=>{e=!0,c.current&&=(URL.revokeObjectURL(c.current),void 0),s(void 0)}},[r,i]),r){if(a&&i)return o;if(!i){if(r.startsWith(`/`)||r.startsWith(`http://`)||r.startsWith(`https://`))return r;let e=t.m();return`${e.endsWith(`/`)?e:`${e}/`}${r}`}return o}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { i as e } from "./getRuntime-CCRXVzJH.js";
|
|
2
|
+
import { m as t, n } from "./desktopStore-B0R1-BeA.js";
|
|
3
|
+
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
|
+
//#region src/hooks/useResolvedUrl.ts
|
|
5
|
+
function s(s) {
|
|
6
|
+
let c = i(() => (s?.startsWith("idb://") || e() && s?.startsWith("/api/fs")) ?? !1, [s]), l = i(() => s?.startsWith("/api/fs") ?? !1, [s]), [u, d] = o(void 0), f = a(void 0);
|
|
7
|
+
if (r(() => {
|
|
8
|
+
if (!s || !c) return;
|
|
9
|
+
let e = !1;
|
|
10
|
+
return n.toBlobUrl(s).then((t) => {
|
|
11
|
+
if (e) {
|
|
12
|
+
t && URL.revokeObjectURL(t);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
f.current = t ?? void 0, d(t ?? void 0);
|
|
16
|
+
}), () => {
|
|
17
|
+
e = !0, f.current &&= (URL.revokeObjectURL(f.current), void 0), d(void 0);
|
|
18
|
+
};
|
|
19
|
+
}, [s, c]), s) {
|
|
20
|
+
if (l && c) return u;
|
|
21
|
+
if (!c) {
|
|
22
|
+
if (s.startsWith("/") || s.startsWith("http://") || s.startsWith("https://")) return s;
|
|
23
|
+
let e = t();
|
|
24
|
+
return `${e.endsWith("/") ? e : `${e}/`}${s}`;
|
|
25
|
+
}
|
|
26
|
+
return u;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { s as t };
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { i as e, t } from "./chunk-BQCxAhux.js";
|
|
2
|
+
import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/react-i18next@16.6.6+f497a43c479cc403/node_modules/react-i18next/dist/es/utils.js
|
|
4
|
+
var l = (e, t, n, r) => {
|
|
5
|
+
let i = [n, {
|
|
6
|
+
code: t,
|
|
7
|
+
...r || {}
|
|
8
|
+
}];
|
|
9
|
+
if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
10
|
+
g(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
|
|
11
|
+
}, u = {}, d = (e, t, n, r) => {
|
|
12
|
+
g(n) && u[n] || (g(n) && (u[n] = /* @__PURE__ */ new Date()), l(e, t, n, r));
|
|
13
|
+
}, f = (e, t) => () => {
|
|
14
|
+
if (e.isInitialized) t();
|
|
15
|
+
else {
|
|
16
|
+
let n = () => {
|
|
17
|
+
setTimeout(() => {
|
|
18
|
+
e.off("initialized", n);
|
|
19
|
+
}, 0), t();
|
|
20
|
+
};
|
|
21
|
+
e.on("initialized", n);
|
|
22
|
+
}
|
|
23
|
+
}, p = (e, t, n) => {
|
|
24
|
+
e.loadNamespaces(t, f(e, n));
|
|
25
|
+
}, m = (e, t, n, r) => {
|
|
26
|
+
if (g(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return p(e, n, r);
|
|
27
|
+
n.forEach((t) => {
|
|
28
|
+
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
|
|
29
|
+
}), e.loadLanguages(t, f(e, r));
|
|
30
|
+
}, h = (e, t, n = {}) => !t.languages || !t.languages.length ? (d(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
|
|
31
|
+
lng: n.lng,
|
|
32
|
+
precheck: (t, r) => {
|
|
33
|
+
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
|
|
34
|
+
}
|
|
35
|
+
}), g = (e) => typeof e == "string", _ = (e) => typeof e == "object" && !!e, v = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, y = {
|
|
36
|
+
"&": "&",
|
|
37
|
+
"&": "&",
|
|
38
|
+
"<": "<",
|
|
39
|
+
"<": "<",
|
|
40
|
+
">": ">",
|
|
41
|
+
">": ">",
|
|
42
|
+
"'": "'",
|
|
43
|
+
"'": "'",
|
|
44
|
+
""": "\"",
|
|
45
|
+
""": "\"",
|
|
46
|
+
" ": " ",
|
|
47
|
+
" ": " ",
|
|
48
|
+
"©": "©",
|
|
49
|
+
"©": "©",
|
|
50
|
+
"®": "®",
|
|
51
|
+
"®": "®",
|
|
52
|
+
"…": "…",
|
|
53
|
+
"…": "…",
|
|
54
|
+
"/": "/",
|
|
55
|
+
"/": "/"
|
|
56
|
+
}, b = (e) => y[e], x = {
|
|
57
|
+
bindI18n: "languageChanged",
|
|
58
|
+
bindI18nStore: "",
|
|
59
|
+
transEmptyNodeValue: "",
|
|
60
|
+
transSupportBasicHtmlNodes: !0,
|
|
61
|
+
transWrapTextNodes: "",
|
|
62
|
+
transKeepBasicHtmlNodesFor: [
|
|
63
|
+
"br",
|
|
64
|
+
"strong",
|
|
65
|
+
"i",
|
|
66
|
+
"p"
|
|
67
|
+
],
|
|
68
|
+
useSuspense: !0,
|
|
69
|
+
unescape: (e) => e.replace(v, b),
|
|
70
|
+
transDefaultProps: void 0
|
|
71
|
+
}, S = (e = {}) => {
|
|
72
|
+
x = {
|
|
73
|
+
...x,
|
|
74
|
+
...e
|
|
75
|
+
};
|
|
76
|
+
}, C = () => x, w, T = (e) => {
|
|
77
|
+
w = e;
|
|
78
|
+
}, E = () => w, D = {
|
|
79
|
+
type: "3rdParty",
|
|
80
|
+
init(e) {
|
|
81
|
+
S(e.options.react), T(e);
|
|
82
|
+
}
|
|
83
|
+
}, O = n(), k = class {
|
|
84
|
+
constructor() {
|
|
85
|
+
this.usedNamespaces = {};
|
|
86
|
+
}
|
|
87
|
+
addUsedNamespaces(e) {
|
|
88
|
+
e.forEach((e) => {
|
|
89
|
+
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
getUsedNamespaces() {
|
|
93
|
+
return Object.keys(this.usedNamespaces);
|
|
94
|
+
}
|
|
95
|
+
}, A = /* @__PURE__ */ t(((t) => {
|
|
96
|
+
var n = e("react");
|
|
97
|
+
function r(e, t) {
|
|
98
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
99
|
+
}
|
|
100
|
+
var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
|
|
101
|
+
function l(e, t) {
|
|
102
|
+
var n = t(), r = a({ inst: {
|
|
103
|
+
value: n,
|
|
104
|
+
getSnapshot: t
|
|
105
|
+
} }), i = r[0].inst, l = r[1];
|
|
106
|
+
return s(function() {
|
|
107
|
+
i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
|
|
108
|
+
}, [
|
|
109
|
+
e,
|
|
110
|
+
n,
|
|
111
|
+
t
|
|
112
|
+
]), o(function() {
|
|
113
|
+
return u(i) && l({ inst: i }), e(function() {
|
|
114
|
+
u(i) && l({ inst: i });
|
|
115
|
+
});
|
|
116
|
+
}, [e]), c(n), n;
|
|
117
|
+
}
|
|
118
|
+
function u(e) {
|
|
119
|
+
var t = e.getSnapshot;
|
|
120
|
+
e = e.value;
|
|
121
|
+
try {
|
|
122
|
+
var n = t();
|
|
123
|
+
return !i(e, n);
|
|
124
|
+
} catch {
|
|
125
|
+
return !0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function d(e, t) {
|
|
129
|
+
return t();
|
|
130
|
+
}
|
|
131
|
+
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
|
|
132
|
+
t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
|
|
133
|
+
})), j = /* @__PURE__ */ t(((t) => {
|
|
134
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
135
|
+
function n(e, t) {
|
|
136
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
137
|
+
}
|
|
138
|
+
function r(e, t) {
|
|
139
|
+
f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
140
|
+
var n = t();
|
|
141
|
+
if (!p) {
|
|
142
|
+
var r = t();
|
|
143
|
+
s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
144
|
+
}
|
|
145
|
+
r = c({ inst: {
|
|
146
|
+
value: n,
|
|
147
|
+
getSnapshot: t
|
|
148
|
+
} });
|
|
149
|
+
var a = r[0].inst, m = r[1];
|
|
150
|
+
return u(function() {
|
|
151
|
+
a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
|
|
152
|
+
}, [
|
|
153
|
+
e,
|
|
154
|
+
n,
|
|
155
|
+
t
|
|
156
|
+
]), l(function() {
|
|
157
|
+
return i(a) && m({ inst: a }), e(function() {
|
|
158
|
+
i(a) && m({ inst: a });
|
|
159
|
+
});
|
|
160
|
+
}, [e]), d(n), n;
|
|
161
|
+
}
|
|
162
|
+
function i(e) {
|
|
163
|
+
var t = e.getSnapshot;
|
|
164
|
+
e = e.value;
|
|
165
|
+
try {
|
|
166
|
+
var n = t();
|
|
167
|
+
return !s(e, n);
|
|
168
|
+
} catch {
|
|
169
|
+
return !0;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function a(e, t) {
|
|
173
|
+
return t();
|
|
174
|
+
}
|
|
175
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
176
|
+
var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
|
|
177
|
+
t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
178
|
+
})();
|
|
179
|
+
})), M = /* @__PURE__ */ t(((e, t) => {
|
|
180
|
+
process.env.NODE_ENV === "production" ? t.exports = A() : t.exports = j();
|
|
181
|
+
})), N = M(), P = {
|
|
182
|
+
t: (e, t) => {
|
|
183
|
+
if (g(t)) return t;
|
|
184
|
+
if (_(t) && g(t.defaultValue)) return t.defaultValue;
|
|
185
|
+
if (typeof e == "function") return "";
|
|
186
|
+
if (Array.isArray(e)) {
|
|
187
|
+
let t = e[e.length - 1];
|
|
188
|
+
return typeof t == "function" ? "" : t;
|
|
189
|
+
}
|
|
190
|
+
return e;
|
|
191
|
+
},
|
|
192
|
+
ready: !1
|
|
193
|
+
}, F = () => () => {}, I = (e, t = {}) => {
|
|
194
|
+
let { i18n: n } = t, { i18n: l, defaultNS: u } = i(O) || {}, f = n || l || E();
|
|
195
|
+
f && !f.reportNamespaces && (f.reportNamespaces = new k()), f || d(f, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
196
|
+
let _ = o(() => ({
|
|
197
|
+
...C(),
|
|
198
|
+
...f?.options?.react,
|
|
199
|
+
...t
|
|
200
|
+
}), [f, t]), { useSuspense: v, keyPrefix: y } = _, b = e || u || f?.options?.defaultNS, x = g(b) ? [b] : b || ["translation"], S = o(() => x, x);
|
|
201
|
+
f?.reportNamespaces?.addUsedNamespaces?.(S);
|
|
202
|
+
let w = s(0), T = r((e) => {
|
|
203
|
+
if (!f) return F;
|
|
204
|
+
let { bindI18n: t, bindI18nStore: n } = _, r = () => {
|
|
205
|
+
w.current += 1, e();
|
|
206
|
+
};
|
|
207
|
+
return t && f.on(t, r), n && f.store.on(n, r), () => {
|
|
208
|
+
t && t.split(" ").forEach((e) => f.off(e, r)), n && n.split(" ").forEach((e) => f.store.off(e, r));
|
|
209
|
+
};
|
|
210
|
+
}, [f, _]), D = s(), A = r(() => {
|
|
211
|
+
if (!f) return P;
|
|
212
|
+
let e = !!(f.isInitialized || f.initializedStoreOnce) && S.every((e) => h(e, f, _)), n = t.lng || f.language, r = w.current, i = D.current;
|
|
213
|
+
if (i && i.ready === e && i.lng === n && i.keyPrefix === y && i.revision === r) return i;
|
|
214
|
+
let a = {
|
|
215
|
+
t: f.getFixedT(n, _.nsMode === "fallback" ? S : S[0], y),
|
|
216
|
+
ready: e,
|
|
217
|
+
lng: n,
|
|
218
|
+
keyPrefix: y,
|
|
219
|
+
revision: r
|
|
220
|
+
};
|
|
221
|
+
return D.current = a, a;
|
|
222
|
+
}, [
|
|
223
|
+
f,
|
|
224
|
+
S,
|
|
225
|
+
y,
|
|
226
|
+
_,
|
|
227
|
+
t.lng
|
|
228
|
+
]), [j, M] = c(0), { t: I, ready: L } = (0, N.useSyncExternalStore)(T, A, A);
|
|
229
|
+
a(() => {
|
|
230
|
+
if (f && !L && !v) {
|
|
231
|
+
let e = () => M((e) => e + 1);
|
|
232
|
+
t.lng ? m(f, t.lng, S, e) : p(f, S, e);
|
|
233
|
+
}
|
|
234
|
+
}, [
|
|
235
|
+
f,
|
|
236
|
+
t.lng,
|
|
237
|
+
S,
|
|
238
|
+
L,
|
|
239
|
+
v,
|
|
240
|
+
j
|
|
241
|
+
]);
|
|
242
|
+
let R = f || {}, z = s(null), B = s(), V = (e) => {
|
|
243
|
+
let t = Object.getOwnPropertyDescriptors(e);
|
|
244
|
+
t.__original && delete t.__original;
|
|
245
|
+
let n = Object.create(Object.getPrototypeOf(e), t);
|
|
246
|
+
if (!Object.prototype.hasOwnProperty.call(n, "__original")) try {
|
|
247
|
+
Object.defineProperty(n, "__original", {
|
|
248
|
+
value: e,
|
|
249
|
+
writable: !1,
|
|
250
|
+
enumerable: !1,
|
|
251
|
+
configurable: !1
|
|
252
|
+
});
|
|
253
|
+
} catch {}
|
|
254
|
+
return n;
|
|
255
|
+
}, H = o(() => {
|
|
256
|
+
let e = R, t = e?.language, n = e;
|
|
257
|
+
e && (z.current && z.current.__original === e && B.current === t ? n = z.current : (n = V(e), z.current = n, B.current = t));
|
|
258
|
+
let r = !L && !v ? (...e) => (d(f, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), I(...e)) : I, i = [
|
|
259
|
+
r,
|
|
260
|
+
n,
|
|
261
|
+
L
|
|
262
|
+
];
|
|
263
|
+
return i.t = r, i.i18n = n, i.ready = L, i;
|
|
264
|
+
}, [
|
|
265
|
+
I,
|
|
266
|
+
R,
|
|
267
|
+
L,
|
|
268
|
+
R.resolvedLanguage,
|
|
269
|
+
R.language,
|
|
270
|
+
R.languages
|
|
271
|
+
]);
|
|
272
|
+
if (f && v && !L) throw new Promise((e) => {
|
|
273
|
+
let n = () => e();
|
|
274
|
+
t.lng ? m(f, t.lng, S, n) : p(f, S, n);
|
|
275
|
+
});
|
|
276
|
+
return H;
|
|
277
|
+
};
|
|
278
|
+
//#endregion
|
|
279
|
+
export { M as n, D as r, I as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-CiTBaPhY.cjs`);let t=require(`react`);var n=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);l(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},r={},i=(e,t,i,a)=>{l(i)&&r[i]||(l(i)&&(r[i]=new Date),n(e,t,i,a))},a=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},o=(e,t,n)=>{e.loadNamespaces(t,a(e,n))},s=(e,t,n,r)=>{if(l(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return o(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,a(e,r))},c=(e,t,n={})=>!t.languages||!t.languages.length?(i(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),l=e=>typeof e==`string`,u=e=>typeof e==`object`&&!!e,d=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,f={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},p=e=>f[e],m={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(d,p),transDefaultProps:void 0},h=(e={})=>{m={...m,...e}},g=()=>m,_,v=e=>{_=e},y=()=>_,b={type:`3rdParty`,init(e){h(e.options.react),v(e)}},x=(0,t.createContext)(),S=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},C=e.t((e=>{var t=require(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),w=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=require(`react`),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),T=e.t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=C():t.exports=w()})),E=T(),D={t:(e,t)=>{if(l(t))return t;if(u(t)&&l(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},O=()=>()=>{},k=(e,n={})=>{let{i18n:r}=n,{i18n:a,defaultNS:u}=(0,t.useContext)(x)||{},d=r||a||y();d&&!d.reportNamespaces&&(d.reportNamespaces=new S),d||i(d,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let f=(0,t.useMemo)(()=>({...g(),...d?.options?.react,...n}),[d,n]),{useSuspense:p,keyPrefix:m}=f,h=e||u||d?.options?.defaultNS,_=l(h)?[h]:h||[`translation`],v=(0,t.useMemo)(()=>_,_);d?.reportNamespaces?.addUsedNamespaces?.(v);let b=(0,t.useRef)(0),C=(0,t.useCallback)(e=>{if(!d)return O;let{bindI18n:t,bindI18nStore:n}=f,r=()=>{b.current+=1,e()};return t&&d.on(t,r),n&&d.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>d.off(e,r)),n&&n.split(` `).forEach(e=>d.store.off(e,r))}},[d,f]),w=(0,t.useRef)(),T=(0,t.useCallback)(()=>{if(!d)return D;let e=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(e=>c(e,d,f)),t=n.lng||d.language,r=b.current,i=w.current;if(i&&i.ready===e&&i.lng===t&&i.keyPrefix===m&&i.revision===r)return i;let a={t:d.getFixedT(t,f.nsMode===`fallback`?v:v[0],m),ready:e,lng:t,keyPrefix:m,revision:r};return w.current=a,a},[d,v,m,f,n.lng]),[k,A]=(0,t.useState)(0),{t:j,ready:M}=(0,E.useSyncExternalStore)(C,T,T);(0,t.useEffect)(()=>{if(d&&!M&&!p){let e=()=>A(e=>e+1);n.lng?s(d,n.lng,v,e):o(d,v,e)}},[d,n.lng,v,M,p,k]);let N=d||{},P=(0,t.useRef)(null),F=(0,t.useRef)(),I=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},L=(0,t.useMemo)(()=>{let e=N,t=e?.language,n=e;e&&(P.current&&P.current.__original===e&&F.current===t?n=P.current:(n=I(e),P.current=n,F.current=t));let r=!M&&!p?(...e)=>(i(d,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),j(...e)):j,a=[r,n,M];return a.t=r,a.i18n=n,a.ready=M,a},[j,N,M,N.resolvedLanguage,N.language,N.languages]);if(d&&p&&!M)throw new Promise(e=>{let t=()=>e();n.lng?s(d,n.lng,v,t):o(d,v,t)});return L};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
|