zeldwallet 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +305 -0
  2. package/dist/index.d.ts +6 -0
  3. package/dist/src/ZeldWallet.d.ts +254 -0
  4. package/dist/src/ZeldWallet.d.ts.map +1 -0
  5. package/dist/src/component/ZeldWalletUI.d.ts +56 -0
  6. package/dist/src/component/ZeldWalletUI.d.ts.map +1 -0
  7. package/dist/src/component/balance.d.ts +41 -0
  8. package/dist/src/component/balance.d.ts.map +1 -0
  9. package/dist/src/component/bindings.d.ts +76 -0
  10. package/dist/src/component/bindings.d.ts.map +1 -0
  11. package/dist/src/component/constants.d.ts +15 -0
  12. package/dist/src/component/constants.d.ts.map +1 -0
  13. package/dist/src/component/controller.d.ts +224 -0
  14. package/dist/src/component/controller.d.ts.map +1 -0
  15. package/dist/src/component/errors.d.ts +5 -0
  16. package/dist/src/component/errors.d.ts.map +1 -0
  17. package/dist/src/component/i18n.d.ts +156 -0
  18. package/dist/src/component/i18n.d.ts.map +1 -0
  19. package/dist/src/component/messages/ar.d.ts +3 -0
  20. package/dist/src/component/messages/ar.d.ts.map +1 -0
  21. package/dist/src/component/messages/bn.d.ts +3 -0
  22. package/dist/src/component/messages/bn.d.ts.map +1 -0
  23. package/dist/src/component/messages/cs.d.ts +3 -0
  24. package/dist/src/component/messages/cs.d.ts.map +1 -0
  25. package/dist/src/component/messages/de.d.ts +3 -0
  26. package/dist/src/component/messages/de.d.ts.map +1 -0
  27. package/dist/src/component/messages/el.d.ts +3 -0
  28. package/dist/src/component/messages/el.d.ts.map +1 -0
  29. package/dist/src/component/messages/en.d.ts +3 -0
  30. package/dist/src/component/messages/en.d.ts.map +1 -0
  31. package/dist/src/component/messages/es.d.ts +3 -0
  32. package/dist/src/component/messages/es.d.ts.map +1 -0
  33. package/dist/src/component/messages/fa.d.ts +3 -0
  34. package/dist/src/component/messages/fa.d.ts.map +1 -0
  35. package/dist/src/component/messages/fr.d.ts +3 -0
  36. package/dist/src/component/messages/fr.d.ts.map +1 -0
  37. package/dist/src/component/messages/he.d.ts +3 -0
  38. package/dist/src/component/messages/he.d.ts.map +1 -0
  39. package/dist/src/component/messages/hi.d.ts +3 -0
  40. package/dist/src/component/messages/hi.d.ts.map +1 -0
  41. package/dist/src/component/messages/id.d.ts +3 -0
  42. package/dist/src/component/messages/id.d.ts.map +1 -0
  43. package/dist/src/component/messages/index.d.ts +31 -0
  44. package/dist/src/component/messages/index.d.ts.map +1 -0
  45. package/dist/src/component/messages/it.d.ts +3 -0
  46. package/dist/src/component/messages/it.d.ts.map +1 -0
  47. package/dist/src/component/messages/ja.d.ts +3 -0
  48. package/dist/src/component/messages/ja.d.ts.map +1 -0
  49. package/dist/src/component/messages/ko.d.ts +3 -0
  50. package/dist/src/component/messages/ko.d.ts.map +1 -0
  51. package/dist/src/component/messages/ms.d.ts +3 -0
  52. package/dist/src/component/messages/ms.d.ts.map +1 -0
  53. package/dist/src/component/messages/nl.d.ts +3 -0
  54. package/dist/src/component/messages/nl.d.ts.map +1 -0
  55. package/dist/src/component/messages/pl.d.ts +3 -0
  56. package/dist/src/component/messages/pl.d.ts.map +1 -0
  57. package/dist/src/component/messages/pt.d.ts +3 -0
  58. package/dist/src/component/messages/pt.d.ts.map +1 -0
  59. package/dist/src/component/messages/ro.d.ts +3 -0
  60. package/dist/src/component/messages/ro.d.ts.map +1 -0
  61. package/dist/src/component/messages/ru.d.ts +3 -0
  62. package/dist/src/component/messages/ru.d.ts.map +1 -0
  63. package/dist/src/component/messages/sw.d.ts +3 -0
  64. package/dist/src/component/messages/sw.d.ts.map +1 -0
  65. package/dist/src/component/messages/th.d.ts +3 -0
  66. package/dist/src/component/messages/th.d.ts.map +1 -0
  67. package/dist/src/component/messages/tl.d.ts +3 -0
  68. package/dist/src/component/messages/tl.d.ts.map +1 -0
  69. package/dist/src/component/messages/tr.d.ts +3 -0
  70. package/dist/src/component/messages/tr.d.ts.map +1 -0
  71. package/dist/src/component/messages/uk.d.ts +3 -0
  72. package/dist/src/component/messages/uk.d.ts.map +1 -0
  73. package/dist/src/component/messages/ur.d.ts +3 -0
  74. package/dist/src/component/messages/ur.d.ts.map +1 -0
  75. package/dist/src/component/messages/vi.d.ts +3 -0
  76. package/dist/src/component/messages/vi.d.ts.map +1 -0
  77. package/dist/src/component/messages/zh-CN.d.ts +3 -0
  78. package/dist/src/component/messages/zh-CN.d.ts.map +1 -0
  79. package/dist/src/component/messages/zh-TW.d.ts +3 -0
  80. package/dist/src/component/messages/zh-TW.d.ts.map +1 -0
  81. package/dist/src/component/miner.d.ts +108 -0
  82. package/dist/src/component/miner.d.ts.map +1 -0
  83. package/dist/src/component/render.d.ts +11 -0
  84. package/dist/src/component/render.d.ts.map +1 -0
  85. package/dist/src/component/state.d.ts +142 -0
  86. package/dist/src/component/state.d.ts.map +1 -0
  87. package/dist/src/component/styles.d.ts +2 -0
  88. package/dist/src/component/styles.d.ts.map +1 -0
  89. package/dist/src/component/viewModel.d.ts +281 -0
  90. package/dist/src/component/viewModel.d.ts.map +1 -0
  91. package/dist/src/component/wallets.d.ts +40 -0
  92. package/dist/src/component/wallets.d.ts.map +1 -0
  93. package/dist/src/index.d.ts +18 -0
  94. package/dist/src/index.d.ts.map +1 -0
  95. package/dist/src/keys/KeyManager.d.ts +132 -0
  96. package/dist/src/keys/KeyManager.d.ts.map +1 -0
  97. package/dist/src/keys/derivation.d.ts +58 -0
  98. package/dist/src/keys/derivation.d.ts.map +1 -0
  99. package/dist/src/keys/signing.d.ts +44 -0
  100. package/dist/src/keys/signing.d.ts.map +1 -0
  101. package/dist/src/provider/WBIPProvider.d.ts +74 -0
  102. package/dist/src/provider/WBIPProvider.d.ts.map +1 -0
  103. package/dist/src/react/ZeldWalletCard.d.ts +29 -0
  104. package/dist/src/react/ZeldWalletCard.d.ts.map +1 -0
  105. package/dist/src/react/index.d.ts +3 -0
  106. package/dist/src/react/index.d.ts.map +1 -0
  107. package/dist/src/react/useZeldWalletController.d.ts +28 -0
  108. package/dist/src/react/useZeldWalletController.d.ts.map +1 -0
  109. package/dist/src/storage/SecureStorage.d.ts +183 -0
  110. package/dist/src/storage/SecureStorage.d.ts.map +1 -0
  111. package/dist/src/storage/constants.d.ts +59 -0
  112. package/dist/src/storage/constants.d.ts.map +1 -0
  113. package/dist/src/types/index.d.ts +245 -0
  114. package/dist/src/types/index.d.ts.map +1 -0
  115. package/dist/src/ui/Modal.d.ts +19 -0
  116. package/dist/src/ui/Modal.d.ts.map +1 -0
  117. package/dist/src/unifiedWallet.d.ts +29 -0
  118. package/dist/src/unifiedWallet.d.ts.map +1 -0
  119. package/dist/src/utils/crypto.d.ts +36 -0
  120. package/dist/src/utils/crypto.d.ts.map +1 -0
  121. package/dist/src/utils/encoding.d.ts +46 -0
  122. package/dist/src/utils/encoding.d.ts.map +1 -0
  123. package/dist/src/utils/validation.d.ts +42 -0
  124. package/dist/src/utils/validation.d.ts.map +1 -0
  125. package/dist/wasm/package.json +31 -0
  126. package/dist/wasm/zeldhash_miner_wasm.d.ts +82 -0
  127. package/dist/wasm/zeldhash_miner_wasm.js +1404 -0
  128. package/dist/wasm/zeldhash_miner_wasm_bg.wasm +0 -0
  129. package/dist/wasm/zeldhash_miner_wasm_bg.wasm.d.ts +27 -0
  130. package/dist/worker.js +338 -0
  131. package/dist/zeldwallet.es.js +36558 -0
  132. package/dist/zeldwallet.es.js.map +1 -0
  133. package/package.json +99 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../src/component/balance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAyEF;;;GAGG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,WAAW,EAAE,EACxB,UAAU,GAAE,MAA4B,EACxC,cAAc,GAAE,MAAiC,GAChD,OAAO,CAAC,aAAa,CAAC,CA2BxB;AAgCD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAGnE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,SAAI,EAAE,SAAS,SAAI,GAAG,MAAM,CAKrF"}
@@ -0,0 +1,76 @@
1
+ import { MobileActiveTab } from './state';
2
+ type Strings = Record<string, string> & {
3
+ backupFilename?: string;
4
+ };
5
+ type PasswordHandlers = {
6
+ onShowForm: () => void;
7
+ onSubmit: (value: string, confirmValue: string) => void;
8
+ onCancel: () => void;
9
+ };
10
+ type BackupHandlers = {
11
+ onShowForm: () => void;
12
+ onSubmit: (value: string) => void;
13
+ onCancel: () => void;
14
+ onCloseResult: () => void;
15
+ };
16
+ type WalletSwitcherHandlers = {
17
+ onToggle: () => void;
18
+ onConnect: (walletId: string) => void;
19
+ };
20
+ export declare const bindPasswordForm: (shadowRoot: ShadowRoot, onConnect: (password?: string) => void) => void;
21
+ export declare const bindCopyButtons: (shadowRoot: ShadowRoot, strings: Strings) => void;
22
+ export declare const bindSetPasswordActions: (shadowRoot: ShadowRoot, handlers: PasswordHandlers) => void;
23
+ export declare const bindPasswordVisibility: (shadowRoot: ShadowRoot, strings: Strings) => void;
24
+ export declare const bindBackupActions: (shadowRoot: ShadowRoot, handlers: BackupHandlers, strings?: Strings) => void;
25
+ export declare const bindWalletSwitcher: (shadowRoot: ShadowRoot, handlers: WalletSwitcherHandlers) => void;
26
+ export type RestoreMode = 'backup' | 'mnemonic';
27
+ export type MnemonicRestoreData = {
28
+ mnemonic: string;
29
+ password: string;
30
+ confirmPassword: string;
31
+ paymentPath: string;
32
+ ordinalsPath: string;
33
+ };
34
+ export type MnemonicFormValues = {
35
+ mnemonic: string;
36
+ password: string;
37
+ confirmPassword: string;
38
+ paymentPath: string;
39
+ ordinalsPath: string;
40
+ };
41
+ type RestoreHandlers = {
42
+ onShowForm: () => void;
43
+ onSubmitBackup: (backupString: string, password: string) => void;
44
+ onSubmitMnemonic: (data: MnemonicRestoreData) => void;
45
+ onCancel: () => void;
46
+ onModeChange: (mode: RestoreMode) => void;
47
+ onToggleAdvanced: (currentValues: MnemonicFormValues) => void;
48
+ onInputChange: (values: Partial<MnemonicFormValues>) => void;
49
+ };
50
+ export declare const bindRestoreActions: (shadowRoot: ShadowRoot, handlers: RestoreHandlers) => void;
51
+ type HuntingHandlers = {
52
+ onSendBtcChange: (checked: boolean) => void;
53
+ onSendZeldChange: (checked: boolean) => void;
54
+ onZeroCountChange: (value: number) => void;
55
+ onUseGpuChange: (checked: boolean) => void;
56
+ onFeeModeChange: (mode: string) => void;
57
+ onCustomFeeRateChange: (value: string) => void;
58
+ onFeeToggle: () => void;
59
+ onAddressChange: (value: string) => void;
60
+ onAmountChange: (value: string) => void;
61
+ onHunt: () => void;
62
+ onMiningStop: () => void;
63
+ onMiningResume: () => void;
64
+ onMiningSign: () => void;
65
+ onMiningCancel: () => void;
66
+ onMiningRetry: () => void;
67
+ onConfirmTransaction: () => void;
68
+ onCancelConfirmation: () => void;
69
+ };
70
+ export declare const bindHunting: (shadowRoot: ShadowRoot, handlers: HuntingHandlers) => void;
71
+ type MobileTabHandlers = {
72
+ onTabChange: (tab: MobileActiveTab) => void;
73
+ };
74
+ export declare const bindMobileTabs: (shadowRoot: ShadowRoot, handlers: MobileTabHandlers) => void;
75
+ export {};
76
+ //# sourceMappingURL=bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../../../src/component/bindings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,KAAG,IAUjG,CAAC;AAEF,eAAO,M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CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,YAAY,UAAU,EAAE,UAAU,iBAAiB,KAAG,IAWpF,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const DEFAULT_TAG_NAME = "zeld-wallet-ui";
2
+ export declare const DEFAULT_PROVIDER: {
3
+ id: string;
4
+ name: string;
5
+ icon: string;
6
+ };
7
+ export declare const DUST = 330;
8
+ export declare const MIN_FEE_RESERVE = 1500;
9
+ export declare const BITCOIN_ICON = "<svg class=\"zeldwallet-address-icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M23.638 14.904c-1.602 6.43-8.113 10.34-14.542 8.736C2.67 22.05-1.244 15.525.362 9.105 1.962 2.67 8.475-1.243 14.9.358c6.43 1.605 10.342 8.115 8.738 14.546zm-6.35-4.613c.24-1.59-.974-2.45-2.64-3.03l.54-2.153-1.315-.33-.525 2.107c-.345-.087-.7-.17-1.053-.252l.53-2.127-1.32-.33-.54 2.165c-.285-.067-.565-.132-.84-.2l-1.815-.45-.35 1.407s.975.225.955.238c.535.136.63.486.615.766l-1.477 5.92c-.075.166-.24.406-.614.314.015.02-.96-.24-.96-.24l-.66 1.51 1.71.426.93.242-.54 2.19 1.32.327.54-2.17c.36.1.705.19 1.05.273l-.51 2.154 1.32.33.545-2.19c2.24.427 3.93.257 4.64-1.774.57-1.637-.03-2.58-1.217-3.196.854-.193 1.5-.76 1.68-1.93h.01zm-3.01 4.22c-.404 1.64-3.157.75-4.05.53l.72-2.9c.896.23 3.757.67 3.33 2.37zm.41-4.24c-.37 1.49-2.662.735-3.405.55l.654-2.64c.744.18 3.137.52 2.75 2.084v.006z\"/></svg>";
10
+ export declare const ORDINALS_ICON = "<svg class=\"zeldwallet-address-icon\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><polygon points=\"12,2 22,9 12,22 2,9\" fill=\"none\"/><polyline points=\"2,9 12,13 22,9\"/><line x1=\"12\" y1=\"13\" x2=\"12\" y2=\"22\"/></svg>";
11
+ export declare const DEFAULT_ELECTRS_URL = "https://mempool.space/api";
12
+ export declare const DEFAULT_ZELDHASH_API_URL = "https://api.zeldhash.com";
13
+ export declare const AUTO_LOCK_TIMEOUT_MS: number;
14
+ export declare const BaseElement: typeof HTMLElement;
15
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/component/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAGF,eAAO,MAAM,IAAI,MAAM,CAAC;AACxB,eAAO,MAAM,eAAe,OAAO,CAAC;AAGpC,eAAO,MAAM,YAAY,05BAA84B,CAAC;AAGx6B,eAAO,MAAM,aAAa,ySAA6Q,CAAC;AAGxS,eAAO,MAAM,mBAAmB,8BAA8B,CAAC;AAC/D,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAGnE,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAKlD,eAAO,MAAM,WAAW,EAAE,OAAO,WAGK,CAAC"}
@@ -0,0 +1,224 @@
1
+ import { NetworkType } from '../types';
2
+ import { LocaleKey, LocaleStrings, TextDirection } from './i18n';
3
+ import { ComponentState, FeeMode, MobileActiveTab } from './state';
4
+ import { SupportedWalletId } from './wallets';
5
+ export type ControllerSnapshot = {
6
+ state: ComponentState;
7
+ locale: LocaleKey;
8
+ dir: TextDirection;
9
+ strings: LocaleStrings;
10
+ network: NetworkType;
11
+ showPasswordWarning: boolean;
12
+ showBackupWarning: boolean;
13
+ readyWithSecurity: boolean;
14
+ };
15
+ type Subscriber = (snapshot: ControllerSnapshot) => void;
16
+ export type ControllerOptions = {
17
+ lang?: string;
18
+ network?: NetworkType;
19
+ autoconnect?: boolean;
20
+ electrsUrl?: string;
21
+ zeldhashApiUrl?: string;
22
+ onChange?: Subscriber;
23
+ };
24
+ export declare class ZeldWalletController {
25
+ private locale;
26
+ private state;
27
+ private preferredNetwork;
28
+ private autoconnectEnabled;
29
+ private readonly animationDelayMs;
30
+ private hasConnected;
31
+ private pendingConnect?;
32
+ private providerRegistered;
33
+ private listenersBound;
34
+ private unsubs;
35
+ private subscribers;
36
+ private initialWalletId?;
37
+ private initialExternalNetwork?;
38
+ private electrsUrl;
39
+ private zeldhashApiUrl;
40
+ private balanceIntervalId?;
41
+ private miner?;
42
+ private miningAbortController?;
43
+ private miningRunId;
44
+ private lastMiningProgressMs;
45
+ private static readonly MIN_PROGRESS_INTERVAL_MS;
46
+ private autoLockTimeoutId?;
47
+ private boundActivityHandler?;
48
+ constructor(options?: ControllerOptions);
49
+ getSnapshot(): ControllerSnapshot;
50
+ subscribe(listener: Subscriber): () => void;
51
+ setLocale(lang?: string): void;
52
+ setNetwork(network?: NetworkType): void;
53
+ setAutoconnect(value: boolean): void;
54
+ setElectrsUrl(url?: string): void;
55
+ setZeldhashApiUrl(url?: string): void;
56
+ maybeAutoconnect(): void;
57
+ connect(password?: string): Promise<void>;
58
+ detach(): void;
59
+ destroy(): void;
60
+ private startBalanceRefresh;
61
+ private stopBalanceRefresh;
62
+ /**
63
+ * Activity events that reset the idle timer
64
+ */
65
+ private static readonly ACTIVITY_EVENTS;
66
+ /**
67
+ * Start the auto-lock idle timer.
68
+ * Only active when wallet is ZeldWallet, unlocked, and has a password.
69
+ */
70
+ private startAutoLockTimer;
71
+ /**
72
+ * Stop the auto-lock idle timer and remove activity listeners.
73
+ */
74
+ private stopAutoLockTimer;
75
+ /**
76
+ * Reset the auto-lock timer on user activity.
77
+ */
78
+ private resetAutoLockTimer;
79
+ /**
80
+ * Perform the auto-lock after idle timeout.
81
+ */
82
+ private performAutoLock;
83
+ /**
84
+ * Public method to notify the controller of user activity.
85
+ * This can be called by the UI component for shadow DOM events.
86
+ */
87
+ notifyActivity(): void;
88
+ private refreshBalances;
89
+ private getWalletName;
90
+ showSetPasswordForm(): void;
91
+ hideSetPasswordForm(): void;
92
+ showBackupForm(): void;
93
+ hideBackupForm(): void;
94
+ clearBackupResult(): void;
95
+ showRestoreForm(): void;
96
+ hideRestoreForm(): void;
97
+ setRestoreMode(mode: 'backup' | 'mnemonic'): void;
98
+ toggleRestoreAdvanced(currentValues?: {
99
+ mnemonic: string;
100
+ password: string;
101
+ confirmPassword: string;
102
+ paymentPath: string;
103
+ ordinalsPath: string;
104
+ }): void;
105
+ updateMnemonicRestoreState(values: {
106
+ mnemonic?: string;
107
+ password?: string;
108
+ confirmPassword?: string;
109
+ paymentPath?: string;
110
+ ordinalsPath?: string;
111
+ }): void;
112
+ handleRestore(backupString: string, backupPassword: string): Promise<void>;
113
+ handleMnemonicRestore(data: {
114
+ mnemonic: string;
115
+ password: string;
116
+ confirmPassword: string;
117
+ paymentPath: string;
118
+ ordinalsPath: string;
119
+ }): Promise<void>;
120
+ toggleWalletPicker(): void;
121
+ /** Set the active tab on mobile (addresses or balances) */
122
+ setMobileActiveTab(tab: MobileActiveTab): void;
123
+ connectWallet(walletId: SupportedWalletId, networkOverride?: NetworkType): Promise<void>;
124
+ handleSetPassword(password: string, confirmPassword?: string): Promise<void>;
125
+ handleExportBackup(walletPassword: string): Promise<void>;
126
+ private emitChange;
127
+ private setState;
128
+ private refreshWalletOptions;
129
+ private resetIntegrationState;
130
+ private bootstrap;
131
+ private applyNetwork;
132
+ private registerProvider;
133
+ private unregisterProvider;
134
+ private bindListeners;
135
+ private teardownListeners;
136
+ private refreshAddresses;
137
+ private getBackupStatus;
138
+ private setError;
139
+ private delay;
140
+ private loadPreferredWallet;
141
+ private persistPreferredWallet;
142
+ setHuntingSendBtc(checked: boolean): void;
143
+ setHuntingSendZeld(checked: boolean): void;
144
+ setHuntingZeroCount(value: number): void;
145
+ setHuntingUseGpu(checked: boolean): void;
146
+ setHuntingFeeMode(mode: FeeMode): void;
147
+ setHuntingCustomFeeRate(value: string): void;
148
+ toggleHuntingFeeExpanded(): void;
149
+ /**
150
+ * Gets the current fee rate based on the selected mode.
151
+ */
152
+ private getCurrentFeeRate;
153
+ /**
154
+ * Fetches recommended fees from mempool.space API.
155
+ */
156
+ fetchRecommendedFees(): Promise<void>;
157
+ setHuntingAddress(value: string): void;
158
+ setHuntingAmount(value: string): void;
159
+ /**
160
+ * Starts the hunting process using zeldhash-miner.
161
+ */
162
+ startHunting(): Promise<void>;
163
+ /**
164
+ * Pauses the current mining session.
165
+ */
166
+ pauseMining(): void;
167
+ /**
168
+ * Resumes a paused mining session.
169
+ */
170
+ resumeMining(): Promise<void>;
171
+ /**
172
+ * Stops the current mining session.
173
+ */
174
+ stopMining(): void;
175
+ /**
176
+ * Parses the PSBT and shows the confirmation dialog.
177
+ * The actual signing happens when user confirms.
178
+ */
179
+ signAndBroadcast(): Promise<void>;
180
+ /**
181
+ * Called when user confirms the transaction in the confirmation dialog.
182
+ */
183
+ confirmTransaction(): Promise<void>;
184
+ /**
185
+ * Called when user cancels the confirmation dialog.
186
+ */
187
+ cancelConfirmation(): void;
188
+ /**
189
+ * Parses a PSBT and extracts inputs/outputs for the confirmation dialog.
190
+ */
191
+ private parsePsbtForConfirmation;
192
+ /**
193
+ * Cancels the current mining result and returns to idle state.
194
+ */
195
+ cancelMining(): void;
196
+ /**
197
+ * Retries mining after an error.
198
+ */
199
+ retryMining(): void;
200
+ private setHuntingState;
201
+ private setMiningError;
202
+ /**
203
+ * Finalizes a signed PSBT and returns the raw transaction hex.
204
+ */
205
+ private finalizePsbt;
206
+ /**
207
+ * Broadcasts a raw transaction to the network.
208
+ */
209
+ private broadcastTransaction;
210
+ /**
211
+ * Fetches UTXOs for a single address.
212
+ */
213
+ private fetchUtxosForAddress;
214
+ /**
215
+ * Fetches UTXOs for an address and annotates them with their ZELD balances.
216
+ */
217
+ private fetchUtxosWithZeldBalances;
218
+ /**
219
+ * Fetches ordinals UTXOs and enriches them with ZELD balances from the ZeldHash API.
220
+ */
221
+ private fetchOrdinalsUtxosWithZeld;
222
+ }
223
+ export {};
224
+ //# sourceMappingURL=controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/controller.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,WAAW,EAAe,MAAM,UAAU,CAAC;AAMtE,OAAO,EAA2C,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AACzH,OAAO,EAAoF,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAA4G,MAAM,SAAS,CAAC;AAE9Q,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,WAAW,CAAC;AAKnB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,GAAG,EAAE,aAAa,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,KAAK,UAAU,GAAG,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB,CAAC;AAoMF,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,gBAAgB,CAAc;IACtC,OAAO,CAAC,kBAAkB,CAAU;IACpC,OAAO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AEG;IACH,OAAO,CAAC,iBAAiB;IA6BzB;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAmC3C,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAmBtC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAqBrC;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAwNnC;;OAEG;IACH,WAAW,IAAI,IAAI;IAOnB;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAOnC;;OAEG;IACH,UAAU,IAAI,IAAI;IAmBlB;;;OAGG;IACG,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBvC;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAyGzC;;OAEG;IACH,kBAAkB,IAAI,IAAI;IAO1B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA4FhC;;OAEG;IACH,YAAY,IAAI,IAAI;IAWpB;;OAEG;IACH,WAAW,IAAI,IAAI;IAQnB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,cAAc;IAOtB;;OAEG;IACH,OAAO,CAAC,YAAY;IAepB;;OAEG;YACW,oBAAoB;IAgBlC;;OAEG;YACW,oBAAoB;IAelC;;OAEG;YACW,0BAA0B;IAyCxC;;OAEG;YACW,0BAA0B;CAGzC"}
@@ -0,0 +1,5 @@
1
+ import { LocaleKey } from './i18n';
2
+ export declare const describeError: (error: unknown, locale: LocaleKey) => string;
3
+ export declare const isPasswordRequiredError: (error: unknown, locale: LocaleKey) => boolean;
4
+ export declare const isWrongPasswordError: (error: unknown, locale: LocaleKey) => boolean;
5
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/component/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAcpD,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,EAAE,QAAQ,SAAS,KAAG,MAyCjE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,OAAO,EAAE,QAAQ,SAAS,KAAG,OAG3E,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,EAAE,QAAQ,SAAS,KAAG,OAGxE,CAAC"}
@@ -0,0 +1,156 @@
1
+ export type LocaleKey = 'en' | 'zh-CN' | 'zh-TW' | 'es' | 'hi' | 'pt' | 'vi' | 'id' | 'ar' | 'tr' | 'ru' | 'ko' | 'ja' | 'th' | 'tl' | 'uk' | 'de' | 'fr' | 'pl' | 'ur' | 'fa' | 'bn' | 'nl' | 'it' | 'ms' | 'sw' | 'ro' | 'cs' | 'el' | 'he';
2
+ export type LocaleStrings = {
3
+ title: string;
4
+ securityActionsLabel: string;
5
+ changePassword: string;
6
+ changePasswordHint: string;
7
+ newBackup: string;
8
+ newBackupHint: string;
9
+ noPasswordTitle: string;
10
+ setPassword: string;
11
+ setPasswordHint: string;
12
+ setPasswordPlaceholder: string;
13
+ setPasswordConfirmPlaceholder: string;
14
+ setPasswordSubmit: string;
15
+ setPasswordCancel: string;
16
+ passwordMismatch: string;
17
+ noBackupTitle: string;
18
+ createBackup: string;
19
+ backupHint: string;
20
+ backupPasswordPlaceholder: string;
21
+ backupSubmit: string;
22
+ backupCancel: string;
23
+ backupGenerated: string;
24
+ backupCopyHelp: string;
25
+ loading: string;
26
+ generatingAddress: string;
27
+ recoveringWallet: string;
28
+ locked: string;
29
+ lockedHint: string;
30
+ connect: string;
31
+ passwordPlaceholder: string;
32
+ wrongPassword: string;
33
+ showPassword: string;
34
+ hidePassword: string;
35
+ ready: string;
36
+ readyHint: string;
37
+ balancesHint: string;
38
+ error: string;
39
+ wrongNetwork: string;
40
+ paymentLabel: string;
41
+ paymentTooltip: string;
42
+ ordinalsLabel: string;
43
+ ordinalsTooltip: string;
44
+ networkLabel: string;
45
+ copy: string;
46
+ copied: string;
47
+ download: string;
48
+ noAddresses: string;
49
+ walletToggleLabel: string;
50
+ walletInstalled: string;
51
+ walletInstall: string;
52
+ walletConnect: string;
53
+ walletRequestAddresses: string;
54
+ walletDescriptionZeld: string;
55
+ walletDescriptionXverse: string;
56
+ walletDescriptionLeather: string;
57
+ walletDescriptionMagicEden: string;
58
+ networkMainnet: string;
59
+ networkTestnet: string;
60
+ networkFallback: string;
61
+ walletNotInstalled: string;
62
+ walletBuiltIn: string;
63
+ walletNoProviderResponse: string;
64
+ walletUserCancelled: string;
65
+ walletUserCancelledSigning: string;
66
+ backupFilename: string;
67
+ huntingSendBtc: string;
68
+ huntingSendZeld: string;
69
+ huntingZeroCount: string;
70
+ huntingUseGpu: string;
71
+ huntingHunt: string;
72
+ huntingAddressPlaceholder: string;
73
+ huntingAmountPlaceholder: string;
74
+ huntingAmountPlaceholderZeld: string;
75
+ huntingDisabledNoBtc: string;
76
+ huntingDisabledNoZeld: string;
77
+ huntingDisabledInvalidAddress: string;
78
+ huntingDisabledInvalidAmount: string;
79
+ huntingDisabledInsufficientBtc: string;
80
+ huntingDisabledInsufficientZeld: string;
81
+ feeLabel: string;
82
+ feeUnitLabel: string;
83
+ feeModeSlow: string;
84
+ feeModeMedium: string;
85
+ feeModeFast: string;
86
+ feeModeCustom: string;
87
+ feeCustomPlaceholder: string;
88
+ miningHashRate: string;
89
+ miningAttempts: string;
90
+ miningElapsed: string;
91
+ miningStop: string;
92
+ miningResume: string;
93
+ miningStatusMining: string;
94
+ miningStatusPaused: string;
95
+ miningStatusFound: string;
96
+ miningStatusSigning: string;
97
+ miningStatusBroadcast: string;
98
+ miningStatusError: string;
99
+ miningCongrats: string;
100
+ miningTxidLabel: string;
101
+ miningSignAndBroadcast: string;
102
+ miningViewOnMempool: string;
103
+ miningCopyPsbt: string;
104
+ miningRetry: string;
105
+ miningCancel: string;
106
+ confirmDialogTitle: string;
107
+ confirmDialogInputsLabel: string;
108
+ confirmDialogOutputsLabel: string;
109
+ confirmDialogFeeLabel: string;
110
+ confirmDialogTotalLabel: string;
111
+ confirmDialogConfirm: string;
112
+ confirmDialogCancel: string;
113
+ confirmDialogClose: string;
114
+ confirmDialogChangeLabel: string;
115
+ restoreWallet: string;
116
+ restoreWalletHint: string;
117
+ restoreBackupPlaceholder: string;
118
+ restorePasswordPlaceholder: string;
119
+ restoreSubmit: string;
120
+ restoreCancel: string;
121
+ restoreModeBackup: string;
122
+ restoreModeMnemonic: string;
123
+ restoreMnemonicPlaceholder: string;
124
+ restoreNewPasswordPlaceholder: string;
125
+ restoreConfirmPasswordPlaceholder: string;
126
+ restoreAdvancedOptions: string;
127
+ restorePaymentPathLabel: string;
128
+ restoreOrdinalsPathLabel: string;
129
+ restorePaymentPathPlaceholder: string;
130
+ restoreOrdinalsPathPlaceholder: string;
131
+ restoreMnemonicInvalid: string;
132
+ restorePasswordMismatch: string;
133
+ restorePasswordRequired: string;
134
+ restoreDerivationPathInvalid: string;
135
+ minerErrorNoUtxo: string;
136
+ minerErrorInsufficientBtc: string;
137
+ minerErrorInsufficientZeld: string;
138
+ minerErrorInsufficientBtcForZeld: string;
139
+ minerErrorInvalidTargetZeros: string;
140
+ };
141
+ export type LocaleStringsInput = Partial<LocaleStrings>;
142
+ export declare function resolveLocale(input?: string): LocaleKey;
143
+ export declare function getStrings(lang?: string): LocaleStrings;
144
+ export type TextDirection = 'ltr' | 'rtl';
145
+ export declare function getDirection(lang?: string): TextDirection;
146
+ /**
147
+ * Language metadata for UI display purposes.
148
+ */
149
+ export interface LanguageInfo {
150
+ code: LocaleKey;
151
+ name: string;
152
+ native: string;
153
+ dir: 'ltr' | 'rtl';
154
+ }
155
+ export declare const languages: LanguageInfo[];
156
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/component/i18n.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GACjB,IAAI,GAAG,OAAO,GAAG,O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AM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAI1C,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAGzD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,KAAK,GAAG,KAAK,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,YAAY,EA+BnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const ar: LocaleStringsInput;
3
+ //# sourceMappingURL=ar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/ar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const bn: LocaleStringsInput;
3
+ //# sourceMappingURL=bn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/bn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const cs: LocaleStringsInput;
3
+ //# sourceMappingURL=cs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cs.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/cs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const de: LocaleStringsInput;
3
+ //# sourceMappingURL=de.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const el: LocaleStringsInput;
3
+ //# sourceMappingURL=el.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"el.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/el.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStrings } from '../i18n';
2
+ export declare const en: LocaleStrings;
3
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,EAAE,EAAE,aAkJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const es: LocaleStringsInput;
3
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const fa: LocaleStringsInput;
3
+ //# sourceMappingURL=fa.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fa.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/fa.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const fr: LocaleStringsInput;
3
+ //# sourceMappingURL=fr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const he: LocaleStringsInput;
3
+ //# sourceMappingURL=he.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"he.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/he.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const hi: LocaleStringsInput;
3
+ //# sourceMappingURL=hi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/hi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { LocaleStringsInput } from '../i18n';
2
+ export declare const id: LocaleStringsInput;
3
+ //# sourceMappingURL=id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../src/component/messages/id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,EAAE,EAAE,kBAiJhB,CAAC"}