@paradym/wallet-sdk 0.0.0-alpha-20251007100022 → 0.0.0-alpha-20251007100758
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/index.d.mts +12 -12
- package/dist/index.d.ts +10 -10
- package/dist/index.js +21 -509
- package/dist/index.js.map +1 -1
- package/package.json +10 -20
package/dist/index.js
CHANGED
|
@@ -23,12 +23,14 @@ let __tanstack_react_query = require("@tanstack/react-query");
|
|
|
23
23
|
__tanstack_react_query = require_typescript$2.__toESM(__tanstack_react_query);
|
|
24
24
|
let react = require("react");
|
|
25
25
|
react = require_typescript$2.__toESM(react);
|
|
26
|
-
let
|
|
27
|
-
|
|
26
|
+
let react_native_mmkv = require("react-native-mmkv");
|
|
27
|
+
react_native_mmkv = require_typescript$2.__toESM(react_native_mmkv);
|
|
28
28
|
let react_native_argon2 = require("react-native-argon2");
|
|
29
29
|
react_native_argon2 = require_typescript$2.__toESM(react_native_argon2);
|
|
30
30
|
let react_native_keychain = require("react-native-keychain");
|
|
31
31
|
react_native_keychain = require_typescript$2.__toESM(react_native_keychain);
|
|
32
|
+
let react_native = require("react-native");
|
|
33
|
+
react_native = require_typescript$2.__toESM(react_native);
|
|
32
34
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
33
35
|
react_jsx_runtime = require_typescript$2.__toESM(react_jsx_runtime);
|
|
34
36
|
let __credo_ts_core_build_modules_generic_records_repository_GenericRecord = require("@credo-ts/core/build/modules/generic-records/repository/GenericRecord");
|
|
@@ -186,500 +188,8 @@ var KeychainError = class extends Error {
|
|
|
186
188
|
}
|
|
187
189
|
};
|
|
188
190
|
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/ModuleNotFoundError.js
|
|
191
|
-
var require_ModuleNotFoundError = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/ModuleNotFoundError.js": ((exports) => {
|
|
192
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
193
|
-
var _reactNative$62 = require("react-native");
|
|
194
|
-
const BULLET_POINT = "\n* ";
|
|
195
|
-
function messageWithSuggestions(message, suggestions) {
|
|
196
|
-
return message + BULLET_POINT + suggestions.join(BULLET_POINT);
|
|
197
|
-
}
|
|
198
|
-
function getFrameworkType() {
|
|
199
|
-
const ExpoConstants = _reactNative$62.NativeModules.NativeUnimoduleProxy?.modulesConstants?.ExponentConstants;
|
|
200
|
-
if (ExpoConstants != null) if (ExpoConstants.appOwnership === "expo") return "expo-go";
|
|
201
|
-
else return "expo";
|
|
202
|
-
return "react-native";
|
|
203
|
-
}
|
|
204
|
-
var ModuleNotFoundError = class extends Error {
|
|
205
|
-
constructor(cause) {
|
|
206
|
-
if (global.__turboModuleProxy == null) {
|
|
207
|
-
const message$1 = "Failed to create a new MMKV instance: react-native-mmkv 3.x.x requires TurboModules, but the new architecture is not enabled!";
|
|
208
|
-
const suggestions$1 = [];
|
|
209
|
-
suggestions$1.push("Downgrade to react-native-mmkv 2.x.x if you want to stay on the old architecture.");
|
|
210
|
-
suggestions$1.push("Enable the new architecture in your app to use react-native-mmkv 3.x.x. (See https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md)");
|
|
211
|
-
const error$2 = messageWithSuggestions(message$1, suggestions$1);
|
|
212
|
-
super(error$2, { cause });
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
const framework = getFrameworkType();
|
|
216
|
-
if (framework === "expo-go") {
|
|
217
|
-
super("react-native-mmkv is not supported in Expo Go! Use EAS (`expo prebuild`) or eject to a bare workflow instead.");
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
const message = "Failed to create a new MMKV instance: The native MMKV Module could not be found.";
|
|
221
|
-
const suggestions = [];
|
|
222
|
-
suggestions.push("Make sure react-native-mmkv is correctly autolinked (run `npx react-native config` to verify)");
|
|
223
|
-
suggestions.push("Make sure you enabled the new architecture (TurboModules) and CodeGen properly generated the react-native-mmkv specs. See https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md");
|
|
224
|
-
suggestions.push("Make sure you are using react-native 0.74.0 or higher, because react-native-mmkv is a C++ TurboModule.");
|
|
225
|
-
suggestions.push("Make sure you rebuilt the app.");
|
|
226
|
-
if (framework === "expo") suggestions.push("Make sure you ran `expo prebuild`.");
|
|
227
|
-
switch (_reactNative$62.Platform.OS) {
|
|
228
|
-
case "ios":
|
|
229
|
-
case "macos":
|
|
230
|
-
suggestions.push("Make sure you ran `pod install` in the ios/ directory.");
|
|
231
|
-
break;
|
|
232
|
-
case "android":
|
|
233
|
-
suggestions.push("Make sure gradle is synced.");
|
|
234
|
-
break;
|
|
235
|
-
default: throw new Error(`MMKV is not supported on ${_reactNative$62.Platform.OS}!`);
|
|
236
|
-
}
|
|
237
|
-
const error$1 = messageWithSuggestions(message, suggestions);
|
|
238
|
-
super(error$1, { cause });
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
exports.ModuleNotFoundError = ModuleNotFoundError;
|
|
242
|
-
}) });
|
|
243
|
-
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/NativeMmkvPlatformContext.js
|
|
246
|
-
var require_NativeMmkvPlatformContext = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/NativeMmkvPlatformContext.js": ((exports) => {
|
|
247
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
248
|
-
exports.getMMKVPlatformContextTurboModule = getMMKVPlatformContextTurboModule;
|
|
249
|
-
var _reactNative$61 = require("react-native");
|
|
250
|
-
var _ModuleNotFoundError$1 = require_ModuleNotFoundError();
|
|
251
|
-
let mmkvPlatformModule;
|
|
252
|
-
function getMMKVPlatformContextTurboModule() {
|
|
253
|
-
try {
|
|
254
|
-
if (mmkvPlatformModule == null) mmkvPlatformModule = _reactNative$61.TurboModuleRegistry.getEnforcing("MmkvPlatformContext");
|
|
255
|
-
return mmkvPlatformModule;
|
|
256
|
-
} catch (e$18) {
|
|
257
|
-
throw new _ModuleNotFoundError$1.ModuleNotFoundError(e$18);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}) });
|
|
261
|
-
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/NativeMmkv.js
|
|
264
|
-
var require_NativeMmkv = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/NativeMmkv.js": ((exports) => {
|
|
265
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
266
|
-
exports.getMMKVTurboModule = getMMKVTurboModule;
|
|
267
|
-
var _reactNative$60 = require("react-native");
|
|
268
|
-
var _ModuleNotFoundError = require_ModuleNotFoundError();
|
|
269
|
-
var _NativeMmkvPlatformContext$1 = require_NativeMmkvPlatformContext();
|
|
270
|
-
exports.Mode = /* @__PURE__ */ function(Mode) {
|
|
271
|
-
Mode[Mode["SINGLE_PROCESS"] = 0] = "SINGLE_PROCESS";
|
|
272
|
-
Mode[Mode["MULTI_PROCESS"] = 1] = "MULTI_PROCESS";
|
|
273
|
-
return Mode;
|
|
274
|
-
}({});
|
|
275
|
-
/**
|
|
276
|
-
* Used for configuration of a single MMKV instance.
|
|
277
|
-
*/
|
|
278
|
-
let mmkvModule;
|
|
279
|
-
function getMMKVTurboModule() {
|
|
280
|
-
try {
|
|
281
|
-
if (mmkvModule == null) {
|
|
282
|
-
mmkvModule = _reactNative$60.TurboModuleRegistry.getEnforcing("MmkvCxx");
|
|
283
|
-
const basePath = (0, _NativeMmkvPlatformContext$1.getMMKVPlatformContextTurboModule)().getBaseDirectory();
|
|
284
|
-
mmkvModule.initialize(basePath);
|
|
285
|
-
}
|
|
286
|
-
return mmkvModule;
|
|
287
|
-
} catch (cause) {
|
|
288
|
-
throw new _ModuleNotFoundError.ModuleNotFoundError(cause);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}) });
|
|
292
|
-
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/Types.js
|
|
295
|
-
var require_Types = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/Types.js": ((exports) => {
|
|
296
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
297
|
-
exports.Mode = /* @__PURE__ */ function(Mode) {
|
|
298
|
-
Mode[Mode["SINGLE_PROCESS"] = 0] = "SINGLE_PROCESS";
|
|
299
|
-
Mode[Mode["MULTI_PROCESS"] = 1] = "MULTI_PROCESS";
|
|
300
|
-
return Mode;
|
|
301
|
-
}({});
|
|
302
|
-
}) });
|
|
303
|
-
/**
|
|
304
|
-
* Used for configuration of a single MMKV instance.
|
|
305
|
-
*/
|
|
306
|
-
/**
|
|
307
|
-
* Represents a single MMKV instance.
|
|
308
|
-
*/
|
|
309
|
-
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/createMMKV.js
|
|
312
|
-
var require_createMMKV = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/createMMKV.js": ((exports) => {
|
|
313
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
314
|
-
var _reactNative$59 = require("react-native");
|
|
315
|
-
var _NativeMmkv = require_NativeMmkv();
|
|
316
|
-
var _Types$1 = require_Types();
|
|
317
|
-
var _NativeMmkvPlatformContext = require_NativeMmkvPlatformContext();
|
|
318
|
-
const createMMKV = (config$2) => {
|
|
319
|
-
const module$1 = (0, _NativeMmkv.getMMKVTurboModule)();
|
|
320
|
-
if (_reactNative$59.Platform.OS === "ios") {
|
|
321
|
-
if (config$2.path == null) try {
|
|
322
|
-
const appGroupDirectory = (0, _NativeMmkvPlatformContext.getMMKVPlatformContextTurboModule)().getAppGroupDirectory();
|
|
323
|
-
if (appGroupDirectory != null) config$2.path = appGroupDirectory;
|
|
324
|
-
} catch (e$18) {
|
|
325
|
-
console.error(e$18);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
if (typeof config$2.mode === "number") config$2.mode = _Types$1.Mode[config$2.mode];
|
|
329
|
-
const instance = module$1.createMMKV(config$2);
|
|
330
|
-
if (__DEV__) {
|
|
331
|
-
if (typeof instance !== "object" || instance == null) throw new Error("Failed to create MMKV instance - an unknown object was returned by createMMKV(..)!");
|
|
332
|
-
}
|
|
333
|
-
return instance;
|
|
334
|
-
};
|
|
335
|
-
exports.createMMKV = createMMKV;
|
|
336
|
-
}) });
|
|
337
|
-
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/createMMKV.mock.js
|
|
340
|
-
var require_createMMKV_mock = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/createMMKV.mock.js": ((exports) => {
|
|
341
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
342
|
-
const createMockMMKV = () => {
|
|
343
|
-
const storage = /* @__PURE__ */ new Map();
|
|
344
|
-
return {
|
|
345
|
-
clearAll: () => storage.clear(),
|
|
346
|
-
delete: (key) => storage.delete(key),
|
|
347
|
-
set: (key, value$1) => storage.set(key, value$1),
|
|
348
|
-
getString: (key) => {
|
|
349
|
-
const result = storage.get(key);
|
|
350
|
-
return typeof result === "string" ? result : void 0;
|
|
351
|
-
},
|
|
352
|
-
getNumber: (key) => {
|
|
353
|
-
const result = storage.get(key);
|
|
354
|
-
return typeof result === "number" ? result : void 0;
|
|
355
|
-
},
|
|
356
|
-
getBoolean: (key) => {
|
|
357
|
-
const result = storage.get(key);
|
|
358
|
-
return typeof result === "boolean" ? result : void 0;
|
|
359
|
-
},
|
|
360
|
-
getBuffer: (key) => {
|
|
361
|
-
const result = storage.get(key);
|
|
362
|
-
return result instanceof ArrayBuffer ? result : void 0;
|
|
363
|
-
},
|
|
364
|
-
getAllKeys: () => Array.from(storage.keys()),
|
|
365
|
-
contains: (key) => storage.has(key),
|
|
366
|
-
recrypt: () => {
|
|
367
|
-
console.warn("Encryption is not supported in mocked MMKV instances!");
|
|
368
|
-
},
|
|
369
|
-
size: 0,
|
|
370
|
-
isReadOnly: false,
|
|
371
|
-
trim: () => {}
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
exports.createMockMMKV = createMockMMKV;
|
|
375
|
-
}) });
|
|
376
|
-
|
|
377
|
-
//#endregion
|
|
378
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/PlatformChecker.js
|
|
379
|
-
var require_PlatformChecker = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/PlatformChecker.js": ((exports) => {
|
|
380
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
381
|
-
exports.isTest = isTest;
|
|
382
|
-
function isTest() {
|
|
383
|
-
if (global.process == null) return false;
|
|
384
|
-
return process.env.JEST_WORKER_ID != null || process.env.VITEST_WORKER_ID != null;
|
|
385
|
-
}
|
|
386
|
-
}) });
|
|
387
|
-
|
|
388
|
-
//#endregion
|
|
389
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/MemoryWarningListener.js
|
|
390
|
-
var require_MemoryWarningListener = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/MemoryWarningListener.js": ((exports) => {
|
|
391
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
392
|
-
exports.addMemoryWarningListener = addMemoryWarningListener;
|
|
393
|
-
var _reactNative$58 = require("react-native");
|
|
394
|
-
function addMemoryWarningListener(mmkv$1) {
|
|
395
|
-
if (global.WeakRef != null && global.FinalizationRegistry != null) {
|
|
396
|
-
const weakMmkv = new WeakRef(mmkv$1);
|
|
397
|
-
const listener = _reactNative$58.AppState.addEventListener("memoryWarning", () => {
|
|
398
|
-
weakMmkv.deref()?.trim();
|
|
399
|
-
});
|
|
400
|
-
new FinalizationRegistry((l$16) => {
|
|
401
|
-
l$16.remove();
|
|
402
|
-
}).register(mmkv$1, listener);
|
|
403
|
-
} else _reactNative$58.AppState.addEventListener("memoryWarning", () => {
|
|
404
|
-
mmkv$1.trim();
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
}) });
|
|
408
|
-
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/MMKV.js
|
|
411
|
-
var require_MMKV = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/MMKV.js": ((exports) => {
|
|
412
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
413
|
-
var _createMMKV = require_createMMKV();
|
|
414
|
-
var _createMMKV2 = require_createMMKV_mock();
|
|
415
|
-
var _PlatformChecker = require_PlatformChecker();
|
|
416
|
-
var _MemoryWarningListener = require_MemoryWarningListener();
|
|
417
|
-
const onValueChangedListeners = /* @__PURE__ */ new Map();
|
|
418
|
-
/**
|
|
419
|
-
* A single MMKV instance.
|
|
420
|
-
*/
|
|
421
|
-
var MMKV$1 = class {
|
|
422
|
-
/**
|
|
423
|
-
* Creates a new MMKV instance with the given Configuration.
|
|
424
|
-
* If no custom `id` is supplied, `'mmkv.default'` will be used.
|
|
425
|
-
*/
|
|
426
|
-
constructor(configuration = { id: "mmkv.default" }) {
|
|
427
|
-
this.id = configuration.id;
|
|
428
|
-
this.nativeInstance = (0, _PlatformChecker.isTest)() ? (0, _createMMKV2.createMockMMKV)() : (0, _createMMKV.createMMKV)(configuration);
|
|
429
|
-
this.functionCache = {};
|
|
430
|
-
(0, _MemoryWarningListener.addMemoryWarningListener)(this);
|
|
431
|
-
}
|
|
432
|
-
get onValueChangedListeners() {
|
|
433
|
-
if (!onValueChangedListeners.has(this.id)) onValueChangedListeners.set(this.id, []);
|
|
434
|
-
return onValueChangedListeners.get(this.id);
|
|
435
|
-
}
|
|
436
|
-
getFunctionFromCache(functionName) {
|
|
437
|
-
if (this.functionCache[functionName] == null) this.functionCache[functionName] = this.nativeInstance[functionName];
|
|
438
|
-
return this.functionCache[functionName];
|
|
439
|
-
}
|
|
440
|
-
onValuesChanged(keys) {
|
|
441
|
-
if (this.onValueChangedListeners.length === 0) return;
|
|
442
|
-
for (const key of keys) for (const listener of this.onValueChangedListeners) listener(key);
|
|
443
|
-
}
|
|
444
|
-
get size() {
|
|
445
|
-
return this.nativeInstance.size;
|
|
446
|
-
}
|
|
447
|
-
get isReadOnly() {
|
|
448
|
-
return this.nativeInstance.isReadOnly;
|
|
449
|
-
}
|
|
450
|
-
set(key, value$1) {
|
|
451
|
-
this.getFunctionFromCache("set")(key, value$1);
|
|
452
|
-
this.onValuesChanged([key]);
|
|
453
|
-
}
|
|
454
|
-
getBoolean(key) {
|
|
455
|
-
return this.getFunctionFromCache("getBoolean")(key);
|
|
456
|
-
}
|
|
457
|
-
getString(key) {
|
|
458
|
-
return this.getFunctionFromCache("getString")(key);
|
|
459
|
-
}
|
|
460
|
-
getNumber(key) {
|
|
461
|
-
return this.getFunctionFromCache("getNumber")(key);
|
|
462
|
-
}
|
|
463
|
-
getBuffer(key) {
|
|
464
|
-
return this.getFunctionFromCache("getBuffer")(key);
|
|
465
|
-
}
|
|
466
|
-
contains(key) {
|
|
467
|
-
return this.getFunctionFromCache("contains")(key);
|
|
468
|
-
}
|
|
469
|
-
delete(key) {
|
|
470
|
-
this.getFunctionFromCache("delete")(key);
|
|
471
|
-
this.onValuesChanged([key]);
|
|
472
|
-
}
|
|
473
|
-
getAllKeys() {
|
|
474
|
-
return this.getFunctionFromCache("getAllKeys")();
|
|
475
|
-
}
|
|
476
|
-
clearAll() {
|
|
477
|
-
const keys = this.getAllKeys();
|
|
478
|
-
this.getFunctionFromCache("clearAll")();
|
|
479
|
-
this.onValuesChanged(keys);
|
|
480
|
-
}
|
|
481
|
-
recrypt(key) {
|
|
482
|
-
return this.getFunctionFromCache("recrypt")(key);
|
|
483
|
-
}
|
|
484
|
-
trim() {
|
|
485
|
-
this.getFunctionFromCache("trim")();
|
|
486
|
-
}
|
|
487
|
-
toString() {
|
|
488
|
-
return `MMKV (${this.id}): [${this.getAllKeys().join(", ")}]`;
|
|
489
|
-
}
|
|
490
|
-
toJSON() {
|
|
491
|
-
return { [this.id]: this.getAllKeys() };
|
|
492
|
-
}
|
|
493
|
-
addOnValueChangedListener(onValueChanged) {
|
|
494
|
-
this.onValueChangedListeners.push(onValueChanged);
|
|
495
|
-
return { remove: () => {
|
|
496
|
-
const index$3 = this.onValueChangedListeners.indexOf(onValueChanged);
|
|
497
|
-
if (index$3 !== -1) this.onValueChangedListeners.splice(index$3, 1);
|
|
498
|
-
} };
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
exports.MMKV = MMKV$1;
|
|
502
|
-
}) });
|
|
503
|
-
|
|
504
|
-
//#endregion
|
|
505
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/hooks.js
|
|
506
|
-
var require_hooks$1 = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/hooks.js": ((exports) => {
|
|
507
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
508
|
-
exports.useMMKV = useMMKV;
|
|
509
|
-
exports.useMMKVListener = useMMKVListener;
|
|
510
|
-
exports.useMMKVObject = useMMKVObject;
|
|
511
|
-
var _react$104 = require("react");
|
|
512
|
-
var _MMKV$1 = require_MMKV();
|
|
513
|
-
function isConfigurationEqual(left$1, right$1) {
|
|
514
|
-
if (left$1 == null || right$1 == null) return left$1 == null && right$1 == null;
|
|
515
|
-
return left$1.encryptionKey === right$1.encryptionKey && left$1.id === right$1.id && left$1.path === right$1.path && left$1.mode === right$1.mode;
|
|
516
|
-
}
|
|
517
|
-
let defaultInstance = null;
|
|
518
|
-
function getDefaultInstance() {
|
|
519
|
-
if (defaultInstance == null) defaultInstance = new _MMKV$1.MMKV();
|
|
520
|
-
return defaultInstance;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* Use the default, shared MMKV instance.
|
|
524
|
-
*/
|
|
525
|
-
/**
|
|
526
|
-
* Use a custom MMKV instance with the given configuration.
|
|
527
|
-
* @param configuration The configuration to initialize the MMKV instance with. Does not have to be memoized.
|
|
528
|
-
*/
|
|
529
|
-
function useMMKV(configuration) {
|
|
530
|
-
const instance = (0, _react$104.useRef)();
|
|
531
|
-
const lastConfiguration = (0, _react$104.useRef)();
|
|
532
|
-
if (configuration == null) return getDefaultInstance();
|
|
533
|
-
if (instance.current == null || !isConfigurationEqual(lastConfiguration.current, configuration)) {
|
|
534
|
-
lastConfiguration.current = configuration;
|
|
535
|
-
instance.current = new _MMKV$1.MMKV(configuration);
|
|
536
|
-
}
|
|
537
|
-
return instance.current;
|
|
538
|
-
}
|
|
539
|
-
function createMMKVHook(getter) {
|
|
540
|
-
return (key, instance) => {
|
|
541
|
-
const mmkv$1 = instance ?? getDefaultInstance();
|
|
542
|
-
const [bump, setBump] = (0, _react$104.useState)(0);
|
|
543
|
-
const value$1 = (0, _react$104.useMemo)(() => {
|
|
544
|
-
return getter(mmkv$1, key);
|
|
545
|
-
}, [
|
|
546
|
-
mmkv$1,
|
|
547
|
-
key,
|
|
548
|
-
bump
|
|
549
|
-
]);
|
|
550
|
-
const set$1 = (0, _react$104.useCallback)((v$14) => {
|
|
551
|
-
const newValue = typeof v$14 === "function" ? v$14(getter(mmkv$1, key)) : v$14;
|
|
552
|
-
switch (typeof newValue) {
|
|
553
|
-
case "number":
|
|
554
|
-
case "string":
|
|
555
|
-
case "boolean":
|
|
556
|
-
mmkv$1.set(key, newValue);
|
|
557
|
-
break;
|
|
558
|
-
case "undefined":
|
|
559
|
-
mmkv$1.delete(key);
|
|
560
|
-
break;
|
|
561
|
-
case "object": if (newValue instanceof ArrayBuffer) {
|
|
562
|
-
mmkv$1.set(key, newValue);
|
|
563
|
-
break;
|
|
564
|
-
} else throw new Error(`MMKV: Type object (${newValue}) is not supported!`);
|
|
565
|
-
default: throw new Error(`MMKV: Type ${typeof newValue} is not supported!`);
|
|
566
|
-
}
|
|
567
|
-
}, [key, mmkv$1]);
|
|
568
|
-
(0, _react$104.useEffect)(() => {
|
|
569
|
-
const listener = mmkv$1.addOnValueChangedListener((changedKey) => {
|
|
570
|
-
if (changedKey === key) setBump((b$4) => b$4 + 1);
|
|
571
|
-
});
|
|
572
|
-
return () => listener.remove();
|
|
573
|
-
}, [key, mmkv$1]);
|
|
574
|
-
return [value$1, set$1];
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* Use the string value of the given `key` from the given MMKV storage instance.
|
|
579
|
-
*
|
|
580
|
-
* If no instance is provided, a shared default instance will be used.
|
|
581
|
-
*
|
|
582
|
-
* @example
|
|
583
|
-
* ```ts
|
|
584
|
-
* const [username, setUsername] = useMMKVString("user.name")
|
|
585
|
-
* ```
|
|
586
|
-
*/
|
|
587
|
-
const useMMKVString = exports.useMMKVString = createMMKVHook((instance, key) => instance.getString(key));
|
|
588
|
-
exports.useMMKVNumber = createMMKVHook((instance, key) => instance.getNumber(key));
|
|
589
|
-
exports.useMMKVBoolean = createMMKVHook((instance, key) => instance.getBoolean(key));
|
|
590
|
-
exports.useMMKVBuffer = createMMKVHook((instance, key) => instance.getBuffer(key));
|
|
591
|
-
/**
|
|
592
|
-
* Use an object value of the given `key` from the given MMKV storage instance.
|
|
593
|
-
*
|
|
594
|
-
* If no instance is provided, a shared default instance will be used.
|
|
595
|
-
*
|
|
596
|
-
* The object will be serialized using `JSON`.
|
|
597
|
-
*
|
|
598
|
-
* @example
|
|
599
|
-
* ```ts
|
|
600
|
-
* const [user, setUser] = useMMKVObject<User>("user")
|
|
601
|
-
* ```
|
|
602
|
-
*/
|
|
603
|
-
function useMMKVObject(key, instance) {
|
|
604
|
-
const [json$1, setJson] = useMMKVString(key, instance);
|
|
605
|
-
return [(0, _react$104.useMemo)(() => {
|
|
606
|
-
if (json$1 == null) return void 0;
|
|
607
|
-
return JSON.parse(json$1);
|
|
608
|
-
}, [json$1]), (0, _react$104.useCallback)((v$14) => {
|
|
609
|
-
if (v$14 instanceof Function) setJson((currentJson) => {
|
|
610
|
-
const newValue = v$14(currentJson != null ? JSON.parse(currentJson) : void 0);
|
|
611
|
-
return newValue != null ? JSON.stringify(newValue) : void 0;
|
|
612
|
-
});
|
|
613
|
-
else setJson(v$14 != null ? JSON.stringify(v$14) : void 0);
|
|
614
|
-
}, [setJson])];
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* Listen for changes in the given MMKV storage instance.
|
|
618
|
-
* If no instance is passed, the default instance will be used.
|
|
619
|
-
* @param valueChangedListener The function to call whenever a value inside the storage instance changes
|
|
620
|
-
* @param instance The instance to listen to changes to (or the default instance)
|
|
621
|
-
*
|
|
622
|
-
* @example
|
|
623
|
-
* ```ts
|
|
624
|
-
* useMMKVListener((key) => {
|
|
625
|
-
* console.log(`Value for "${key}" changed!`)
|
|
626
|
-
* })
|
|
627
|
-
* ```
|
|
628
|
-
*/
|
|
629
|
-
function useMMKVListener(valueChangedListener, instance) {
|
|
630
|
-
const ref = (0, _react$104.useRef)(valueChangedListener);
|
|
631
|
-
ref.current = valueChangedListener;
|
|
632
|
-
const mmkv$1 = instance ?? getDefaultInstance();
|
|
633
|
-
(0, _react$104.useEffect)(() => {
|
|
634
|
-
const listener = mmkv$1.addOnValueChangedListener((changedKey) => {
|
|
635
|
-
ref.current(changedKey);
|
|
636
|
-
});
|
|
637
|
-
return () => listener.remove();
|
|
638
|
-
}, [mmkv$1]);
|
|
639
|
-
}
|
|
640
|
-
}) });
|
|
641
|
-
|
|
642
|
-
//#endregion
|
|
643
|
-
//#region ../../node_modules/react-native-mmkv/lib/commonjs/index.js
|
|
644
|
-
var require_commonjs$7 = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../node_modules/react-native-mmkv/lib/commonjs/index.js": ((exports) => {
|
|
645
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
646
|
-
var _exportNames$5 = { Mode: true };
|
|
647
|
-
Object.defineProperty(exports, "Mode", {
|
|
648
|
-
enumerable: true,
|
|
649
|
-
get: function() {
|
|
650
|
-
return _Types.Mode;
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
|
-
var _MMKV = require_MMKV();
|
|
654
|
-
Object.keys(_MMKV).forEach(function(key) {
|
|
655
|
-
if (key === "default" || key === "__esModule") return;
|
|
656
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames$5, key)) return;
|
|
657
|
-
if (key in exports && exports[key] === _MMKV[key]) return;
|
|
658
|
-
Object.defineProperty(exports, key, {
|
|
659
|
-
enumerable: true,
|
|
660
|
-
get: function() {
|
|
661
|
-
return _MMKV[key];
|
|
662
|
-
}
|
|
663
|
-
});
|
|
664
|
-
});
|
|
665
|
-
var _hooks$15 = require_hooks$1();
|
|
666
|
-
Object.keys(_hooks$15).forEach(function(key) {
|
|
667
|
-
if (key === "default" || key === "__esModule") return;
|
|
668
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames$5, key)) return;
|
|
669
|
-
if (key in exports && exports[key] === _hooks$15[key]) return;
|
|
670
|
-
Object.defineProperty(exports, key, {
|
|
671
|
-
enumerable: true,
|
|
672
|
-
get: function() {
|
|
673
|
-
return _hooks$15[key];
|
|
674
|
-
}
|
|
675
|
-
});
|
|
676
|
-
});
|
|
677
|
-
var _Types = require_Types();
|
|
678
|
-
}) });
|
|
679
|
-
|
|
680
191
|
//#endregion
|
|
681
192
|
//#region src/secure/error/WalletUnlockError.ts
|
|
682
|
-
var import_commonjs$87 = /* @__PURE__ */ require_typescript$2.__toESM(require_commonjs$7());
|
|
683
193
|
var WalletUnlockError = class extends Error {};
|
|
684
194
|
|
|
685
195
|
//#endregion
|
|
@@ -890,7 +400,7 @@ const walletKeyStore = {
|
|
|
890
400
|
|
|
891
401
|
//#endregion
|
|
892
402
|
//#region src/secure/secure-wallet-key/secureWalletKey.ts
|
|
893
|
-
const mmkv = new
|
|
403
|
+
const mmkv = new react_native_mmkv.MMKV();
|
|
894
404
|
async function getWalletKeyUsingPin(pin, version$1) {
|
|
895
405
|
const salt = await walletKeySaltStore.getSalt(version$1);
|
|
896
406
|
if (!salt) throw new WalletUnlockError("Error unlocking wallet. No salt configured");
|
|
@@ -58168,10 +57678,10 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
58168
57678
|
Object.defineProperty(exports$1, "__esModule", { value: !0 }), exports$1.default = void 0, Object.defineProperty(exports$1, "defineCommonJSHook", {
|
|
58169
57679
|
enumerable: !0,
|
|
58170
57680
|
get: function() {
|
|
58171
|
-
return _hooks$
|
|
57681
|
+
return _hooks$15.defineCommonJSHook;
|
|
58172
57682
|
}
|
|
58173
57683
|
});
|
|
58174
|
-
var _helperPluginUtils = __webpack_require__$1("./node_modules/.pnpm/@babel+helper-plugin-utils@7.25.9/node_modules/@babel/helper-plugin-utils/lib/index.js"), _helperModuleTransforms = __webpack_require__$1("./node_modules/.pnpm/@babel+helper-module-transforms@7.26.0_@babel+core@7.26.0/node_modules/@babel/helper-module-transforms/lib/index.js"), _core$3 = __webpack_require__$1("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js"), _dynamicImport = __webpack_require__$1("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js"), _lazy = __webpack_require__$1("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js"), _hooks$
|
|
57684
|
+
var _helperPluginUtils = __webpack_require__$1("./node_modules/.pnpm/@babel+helper-plugin-utils@7.25.9/node_modules/@babel/helper-plugin-utils/lib/index.js"), _helperModuleTransforms = __webpack_require__$1("./node_modules/.pnpm/@babel+helper-module-transforms@7.26.0_@babel+core@7.26.0/node_modules/@babel/helper-module-transforms/lib/index.js"), _core$3 = __webpack_require__$1("./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/index.js"), _dynamicImport = __webpack_require__$1("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js"), _lazy = __webpack_require__$1("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js"), _hooks$15 = __webpack_require__$1("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.26.3_@babel+core@7.26.0/node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js");
|
|
58175
57685
|
exports$1.default = (0, _helperPluginUtils.declare)(((api, options$1) => {
|
|
58176
57686
|
var _api$assumption, _api$assumption2, _api$assumption3;
|
|
58177
57687
|
api.assertVersion(7);
|
|
@@ -58222,7 +57732,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
58222
57732
|
return {
|
|
58223
57733
|
name: "transform-modules-commonjs",
|
|
58224
57734
|
pre() {
|
|
58225
|
-
this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && (0, _hooks$
|
|
57735
|
+
this.file.set("@babel/plugin-transform-modules-*", "commonjs"), lazy && (0, _hooks$15.defineCommonJSHook)(this.file, (0, _lazy.lazyImportsHook)(lazy));
|
|
58226
57736
|
},
|
|
58227
57737
|
visitor: {
|
|
58228
57738
|
["CallExpression" + (api.types.importExpression ? "|ImportExpression" : "")](path$6) {
|
|
@@ -58239,7 +57749,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
58239
57749
|
path$6.scope.rename("exports"), path$6.scope.rename("module"), path$6.scope.rename("require"), path$6.scope.rename("__filename"), path$6.scope.rename("__dirname"), allowCommonJSExports || path$6.traverse(moduleExportsVisitor, { scope: path$6.scope });
|
|
58240
57750
|
let moduleName$1 = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options$1);
|
|
58241
57751
|
moduleName$1 && (moduleName$1 = _core$3.types.stringLiteral(moduleName$1));
|
|
58242
|
-
const hooks$1 = (0, _hooks$
|
|
57752
|
+
const hooks$1 = (0, _hooks$15.makeInvokers)(this.file), { meta, headers } = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path$6, {
|
|
58243
57753
|
exportName: "exports",
|
|
58244
57754
|
constantReexports,
|
|
58245
57755
|
enumerableModuleMeta,
|
|
@@ -69207,7 +68717,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69207
68717
|
},
|
|
69208
68718
|
"./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/index.js": (__unused_webpack_module, exports$1, __webpack_require__$1) => {
|
|
69209
68719
|
Object.defineProperty(exports$1, "__esModule", { value: !0 });
|
|
69210
|
-
var _exportNames$
|
|
68720
|
+
var _exportNames$5 = {
|
|
69211
68721
|
react: !0,
|
|
69212
68722
|
assertNode: !0,
|
|
69213
68723
|
createTypeAnnotationBasedOnTypeof: !0,
|
|
@@ -69561,7 +69071,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69561
69071
|
});
|
|
69562
69072
|
var _isReactComponent$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/react/isReactComponent.js"), _isCompatTag$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/react/isCompatTag.js"), _buildChildren$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/react/buildChildren.js"), _assertNode$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/asserts/assertNode.js"), _index$41 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/asserts/generated/index.js");
|
|
69563
69073
|
Object.keys(_index$41).forEach((function(key) {
|
|
69564
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69074
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index$41[key] || Object.defineProperty(exports$1, key, {
|
|
69565
69075
|
enumerable: !0,
|
|
69566
69076
|
get: function() {
|
|
69567
69077
|
return _index$41[key];
|
|
@@ -69570,7 +69080,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69570
69080
|
}));
|
|
69571
69081
|
var _createTypeAnnotationBasedOnTypeof$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js"), _createFlowUnionType$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js"), _createTSUnionType$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js"), _index2$9 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/generated/index.js");
|
|
69572
69082
|
Object.keys(_index2$9).forEach((function(key) {
|
|
69573
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69083
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index2$9[key] || Object.defineProperty(exports$1, key, {
|
|
69574
69084
|
enumerable: !0,
|
|
69575
69085
|
get: function() {
|
|
69576
69086
|
return _index2$9[key];
|
|
@@ -69579,7 +69089,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69579
69089
|
}));
|
|
69580
69090
|
var _uppercase$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/generated/uppercase.js");
|
|
69581
69091
|
Object.keys(_uppercase$1).forEach((function(key) {
|
|
69582
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69092
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _uppercase$1[key] || Object.defineProperty(exports$1, key, {
|
|
69583
69093
|
enumerable: !0,
|
|
69584
69094
|
get: function() {
|
|
69585
69095
|
return _uppercase$1[key];
|
|
@@ -69588,7 +69098,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69588
69098
|
}));
|
|
69589
69099
|
var _productions$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/builders/productions.js");
|
|
69590
69100
|
Object.keys(_productions$2).forEach((function(key) {
|
|
69591
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69101
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _productions$2[key] || Object.defineProperty(exports$1, key, {
|
|
69592
69102
|
enumerable: !0,
|
|
69593
69103
|
get: function() {
|
|
69594
69104
|
return _productions$2[key];
|
|
@@ -69597,7 +69107,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69597
69107
|
}));
|
|
69598
69108
|
var _cloneNode$7 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/clone/cloneNode.js"), _clone$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/clone/clone.js"), _cloneDeep$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/clone/cloneDeep.js"), _cloneDeepWithoutLoc$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js"), _cloneWithoutLoc$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js"), _addComment$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/addComment.js"), _addComments$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/addComments.js"), _inheritInnerComments$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/inheritInnerComments.js"), _inheritLeadingComments$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/inheritLeadingComments.js"), _inheritsComments$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/inheritsComments.js"), _inheritTrailingComments$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/inheritTrailingComments.js"), _removeComments$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/comments/removeComments.js"), _index3$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/constants/generated/index.js");
|
|
69599
69109
|
Object.keys(_index3$1).forEach((function(key) {
|
|
69600
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69110
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index3$1[key] || Object.defineProperty(exports$1, key, {
|
|
69601
69111
|
enumerable: !0,
|
|
69602
69112
|
get: function() {
|
|
69603
69113
|
return _index3$1[key];
|
|
@@ -69606,7 +69116,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69606
69116
|
}));
|
|
69607
69117
|
var _index4$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/constants/index.js");
|
|
69608
69118
|
Object.keys(_index4$1).forEach((function(key) {
|
|
69609
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69119
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index4$1[key] || Object.defineProperty(exports$1, key, {
|
|
69610
69120
|
enumerable: !0,
|
|
69611
69121
|
get: function() {
|
|
69612
69122
|
return _index4$1[key];
|
|
@@ -69615,7 +69125,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69615
69125
|
}));
|
|
69616
69126
|
var _ensureBlock$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/ensureBlock.js"), _toBindingIdentifierName$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js"), _toBlock$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toBlock.js"), _toComputedKey$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toComputedKey.js"), _toExpression$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toExpression.js"), _toIdentifier$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toIdentifier.js"), _toKeyAlias$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toKeyAlias.js"), _toStatement$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/toStatement.js"), _valueToNode$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/converters/valueToNode.js"), _index5$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/definitions/index.js");
|
|
69617
69127
|
Object.keys(_index5$1).forEach((function(key) {
|
|
69618
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69128
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index5$1[key] || Object.defineProperty(exports$1, key, {
|
|
69619
69129
|
enumerable: !0,
|
|
69620
69130
|
get: function() {
|
|
69621
69131
|
return _index5$1[key];
|
|
@@ -69624,7 +69134,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69624
69134
|
}));
|
|
69625
69135
|
var _appendToMemberExpression$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js"), _inherits$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/inherits.js"), _prependToMemberExpression$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js"), _removeProperties$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/removeProperties.js"), _removePropertiesDeep$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js"), _removeTypeDuplicates$3 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js"), _getAssignmentIdentifiers$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js"), _getBindingIdentifiers$4 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js"), _getOuterBindingIdentifiers$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js"), _getFunctionName$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/retrievers/getFunctionName.js"), _traverse$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/traverse/traverse.js");
|
|
69626
69136
|
Object.keys(_traverse$1).forEach((function(key) {
|
|
69627
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69137
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _traverse$1[key] || Object.defineProperty(exports$1, key, {
|
|
69628
69138
|
enumerable: !0,
|
|
69629
69139
|
get: function() {
|
|
69630
69140
|
return _traverse$1[key];
|
|
@@ -69633,7 +69143,7 @@ var require_babel = /* @__PURE__ */ require_typescript$2.__commonJS({ "../../nod
|
|
|
69633
69143
|
}));
|
|
69634
69144
|
var _traverseFast$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/traverse/traverseFast.js"), _shallowEqual$3 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/utils/shallowEqual.js"), _is$5 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/is.js"), _isBinding$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isBinding.js"), _isBlockScoped$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isBlockScoped.js"), _isImmutable$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isImmutable.js"), _isLet$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isLet.js"), _isNode$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isNode.js"), _isNodesEquivalent$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isNodesEquivalent.js"), _isPlaceholderType$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isPlaceholderType.js"), _isReferenced$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isReferenced.js"), _isScope$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isScope.js"), _isSpecifierDefault$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isSpecifierDefault.js"), _isType$3 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isType.js"), _isValidES3Identifier$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isValidES3Identifier.js"), _isValidIdentifier$5 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isValidIdentifier.js"), _isVar$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/isVar.js"), _matchesPattern$2 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/matchesPattern.js"), _validate$6 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/validate.js"), _buildMatchMemberExpression$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js"), _index6$1 = __webpack_require__$1("./node_modules/.pnpm/@babel+types@7.26.3/node_modules/@babel/types/lib/validators/generated/index.js");
|
|
69635
69145
|
Object.keys(_index6$1).forEach((function(key) {
|
|
69636
|
-
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$
|
|
69146
|
+
"default" !== key && "__esModule" !== key && (Object.prototype.hasOwnProperty.call(_exportNames$5, key) || key in exports$1 && exports$1[key] === _index6$1[key] || Object.defineProperty(exports$1, key, {
|
|
69637
69147
|
enumerable: !0,
|
|
69638
69148
|
get: function() {
|
|
69639
69149
|
return _index6$1[key];
|
|
@@ -197730,6 +197240,7 @@ var init_SceneView = require_typescript$2.__esm({ "../../node_modules/@react-nav
|
|
|
197730
197240
|
//#endregion
|
|
197731
197241
|
//#region ../../node_modules/@react-navigation/core/lib/module/useNavigationCache.js
|
|
197732
197242
|
var init_useNavigationCache = require_typescript$2.__esm({ "../../node_modules/@react-navigation/core/lib/module/useNavigationCache.js": (() => {
|
|
197243
|
+
init_module$2();
|
|
197733
197244
|
init_NavigationBuilderContext();
|
|
197734
197245
|
}) });
|
|
197735
197246
|
|
|
@@ -197764,6 +197275,7 @@ var init_useLazyValue = require_typescript$2.__esm({ "../../node_modules/@react-
|
|
|
197764
197275
|
//#endregion
|
|
197765
197276
|
//#region ../../node_modules/@react-navigation/core/lib/module/useNavigationHelpers.js
|
|
197766
197277
|
var init_useNavigationHelpers = require_typescript$2.__esm({ "../../node_modules/@react-navigation/core/lib/module/useNavigationHelpers.js": (() => {
|
|
197278
|
+
init_module$2();
|
|
197767
197279
|
init_NavigationContext();
|
|
197768
197280
|
init_UnhandledActionContext();
|
|
197769
197281
|
}) });
|