@sudobility/web3-components-rn 1.0.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.
@@ -0,0 +1,1373 @@
1
+ import require$$0 from "react";
2
+ import { Text, Pressable, View, ActivityIndicator, Linking } from "react-native";
3
+ import { cn } from "@sudobility/components-rn";
4
+ var jsxRuntime = { exports: {} };
5
+ var reactJsxRuntime_production_min = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var hasRequiredReactJsxRuntime_production_min;
16
+ function requireReactJsxRuntime_production_min() {
17
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
18
+ hasRequiredReactJsxRuntime_production_min = 1;
19
+ var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
20
+ function q(c, a, g) {
21
+ var b, d = {}, e = null, h = null;
22
+ void 0 !== g && (e = "" + g);
23
+ void 0 !== a.key && (e = "" + a.key);
24
+ void 0 !== a.ref && (h = a.ref);
25
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
26
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
27
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
28
+ }
29
+ reactJsxRuntime_production_min.Fragment = l;
30
+ reactJsxRuntime_production_min.jsx = q;
31
+ reactJsxRuntime_production_min.jsxs = q;
32
+ return reactJsxRuntime_production_min;
33
+ }
34
+ var reactJsxRuntime_development = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var hasRequiredReactJsxRuntime_development;
45
+ function requireReactJsxRuntime_development() {
46
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
47
+ hasRequiredReactJsxRuntime_development = 1;
48
+ if (process.env.NODE_ENV !== "production") {
49
+ (function() {
50
+ var React = require$$0;
51
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
52
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
53
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
54
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
55
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
56
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
57
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
58
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
59
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
60
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
61
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
62
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
63
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
64
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
65
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
66
+ function getIteratorFn(maybeIterable) {
67
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
68
+ return null;
69
+ }
70
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
71
+ if (typeof maybeIterator === "function") {
72
+ return maybeIterator;
73
+ }
74
+ return null;
75
+ }
76
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
77
+ function error(format) {
78
+ {
79
+ {
80
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
81
+ args[_key2 - 1] = arguments[_key2];
82
+ }
83
+ printWarning("error", format, args);
84
+ }
85
+ }
86
+ }
87
+ function printWarning(level, format, args) {
88
+ {
89
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
90
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
91
+ if (stack !== "") {
92
+ format += "%s";
93
+ args = args.concat([stack]);
94
+ }
95
+ var argsWithFormat = args.map(function(item) {
96
+ return String(item);
97
+ });
98
+ argsWithFormat.unshift("Warning: " + format);
99
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
100
+ }
101
+ }
102
+ var enableScopeAPI = false;
103
+ var enableCacheElement = false;
104
+ var enableTransitionTracing = false;
105
+ var enableLegacyHidden = false;
106
+ var enableDebugTracing = false;
107
+ var REACT_MODULE_REFERENCE;
108
+ {
109
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
110
+ }
111
+ function isValidElementType(type) {
112
+ if (typeof type === "string" || typeof type === "function") {
113
+ return true;
114
+ }
115
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
116
+ return true;
117
+ }
118
+ if (typeof type === "object" && type !== null) {
119
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
120
+ // types supported by any Flight configuration anywhere since
121
+ // we don't know which Flight build this will end up being used
122
+ // with.
123
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
124
+ return true;
125
+ }
126
+ }
127
+ return false;
128
+ }
129
+ function getWrappedName(outerType, innerType, wrapperName) {
130
+ var displayName = outerType.displayName;
131
+ if (displayName) {
132
+ return displayName;
133
+ }
134
+ var functionName = innerType.displayName || innerType.name || "";
135
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
136
+ }
137
+ function getContextName(type) {
138
+ return type.displayName || "Context";
139
+ }
140
+ function getComponentNameFromType(type) {
141
+ if (type == null) {
142
+ return null;
143
+ }
144
+ {
145
+ if (typeof type.tag === "number") {
146
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
147
+ }
148
+ }
149
+ if (typeof type === "function") {
150
+ return type.displayName || type.name || null;
151
+ }
152
+ if (typeof type === "string") {
153
+ return type;
154
+ }
155
+ switch (type) {
156
+ case REACT_FRAGMENT_TYPE:
157
+ return "Fragment";
158
+ case REACT_PORTAL_TYPE:
159
+ return "Portal";
160
+ case REACT_PROFILER_TYPE:
161
+ return "Profiler";
162
+ case REACT_STRICT_MODE_TYPE:
163
+ return "StrictMode";
164
+ case REACT_SUSPENSE_TYPE:
165
+ return "Suspense";
166
+ case REACT_SUSPENSE_LIST_TYPE:
167
+ return "SuspenseList";
168
+ }
169
+ if (typeof type === "object") {
170
+ switch (type.$$typeof) {
171
+ case REACT_CONTEXT_TYPE:
172
+ var context = type;
173
+ return getContextName(context) + ".Consumer";
174
+ case REACT_PROVIDER_TYPE:
175
+ var provider = type;
176
+ return getContextName(provider._context) + ".Provider";
177
+ case REACT_FORWARD_REF_TYPE:
178
+ return getWrappedName(type, type.render, "ForwardRef");
179
+ case REACT_MEMO_TYPE:
180
+ var outerName = type.displayName || null;
181
+ if (outerName !== null) {
182
+ return outerName;
183
+ }
184
+ return getComponentNameFromType(type.type) || "Memo";
185
+ case REACT_LAZY_TYPE: {
186
+ var lazyComponent = type;
187
+ var payload = lazyComponent._payload;
188
+ var init = lazyComponent._init;
189
+ try {
190
+ return getComponentNameFromType(init(payload));
191
+ } catch (x) {
192
+ return null;
193
+ }
194
+ }
195
+ }
196
+ }
197
+ return null;
198
+ }
199
+ var assign = Object.assign;
200
+ var disabledDepth = 0;
201
+ var prevLog;
202
+ var prevInfo;
203
+ var prevWarn;
204
+ var prevError;
205
+ var prevGroup;
206
+ var prevGroupCollapsed;
207
+ var prevGroupEnd;
208
+ function disabledLog() {
209
+ }
210
+ disabledLog.__reactDisabledLog = true;
211
+ function disableLogs() {
212
+ {
213
+ if (disabledDepth === 0) {
214
+ prevLog = console.log;
215
+ prevInfo = console.info;
216
+ prevWarn = console.warn;
217
+ prevError = console.error;
218
+ prevGroup = console.group;
219
+ prevGroupCollapsed = console.groupCollapsed;
220
+ prevGroupEnd = console.groupEnd;
221
+ var props = {
222
+ configurable: true,
223
+ enumerable: true,
224
+ value: disabledLog,
225
+ writable: true
226
+ };
227
+ Object.defineProperties(console, {
228
+ info: props,
229
+ log: props,
230
+ warn: props,
231
+ error: props,
232
+ group: props,
233
+ groupCollapsed: props,
234
+ groupEnd: props
235
+ });
236
+ }
237
+ disabledDepth++;
238
+ }
239
+ }
240
+ function reenableLogs() {
241
+ {
242
+ disabledDepth--;
243
+ if (disabledDepth === 0) {
244
+ var props = {
245
+ configurable: true,
246
+ enumerable: true,
247
+ writable: true
248
+ };
249
+ Object.defineProperties(console, {
250
+ log: assign({}, props, {
251
+ value: prevLog
252
+ }),
253
+ info: assign({}, props, {
254
+ value: prevInfo
255
+ }),
256
+ warn: assign({}, props, {
257
+ value: prevWarn
258
+ }),
259
+ error: assign({}, props, {
260
+ value: prevError
261
+ }),
262
+ group: assign({}, props, {
263
+ value: prevGroup
264
+ }),
265
+ groupCollapsed: assign({}, props, {
266
+ value: prevGroupCollapsed
267
+ }),
268
+ groupEnd: assign({}, props, {
269
+ value: prevGroupEnd
270
+ })
271
+ });
272
+ }
273
+ if (disabledDepth < 0) {
274
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
275
+ }
276
+ }
277
+ }
278
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
279
+ var prefix;
280
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
281
+ {
282
+ if (prefix === void 0) {
283
+ try {
284
+ throw Error();
285
+ } catch (x) {
286
+ var match = x.stack.trim().match(/\n( *(at )?)/);
287
+ prefix = match && match[1] || "";
288
+ }
289
+ }
290
+ return "\n" + prefix + name;
291
+ }
292
+ }
293
+ var reentry = false;
294
+ var componentFrameCache;
295
+ {
296
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
297
+ componentFrameCache = new PossiblyWeakMap();
298
+ }
299
+ function describeNativeComponentFrame(fn, construct) {
300
+ if (!fn || reentry) {
301
+ return "";
302
+ }
303
+ {
304
+ var frame = componentFrameCache.get(fn);
305
+ if (frame !== void 0) {
306
+ return frame;
307
+ }
308
+ }
309
+ var control;
310
+ reentry = true;
311
+ var previousPrepareStackTrace = Error.prepareStackTrace;
312
+ Error.prepareStackTrace = void 0;
313
+ var previousDispatcher;
314
+ {
315
+ previousDispatcher = ReactCurrentDispatcher.current;
316
+ ReactCurrentDispatcher.current = null;
317
+ disableLogs();
318
+ }
319
+ try {
320
+ if (construct) {
321
+ var Fake = function() {
322
+ throw Error();
323
+ };
324
+ Object.defineProperty(Fake.prototype, "props", {
325
+ set: function() {
326
+ throw Error();
327
+ }
328
+ });
329
+ if (typeof Reflect === "object" && Reflect.construct) {
330
+ try {
331
+ Reflect.construct(Fake, []);
332
+ } catch (x) {
333
+ control = x;
334
+ }
335
+ Reflect.construct(fn, [], Fake);
336
+ } else {
337
+ try {
338
+ Fake.call();
339
+ } catch (x) {
340
+ control = x;
341
+ }
342
+ fn.call(Fake.prototype);
343
+ }
344
+ } else {
345
+ try {
346
+ throw Error();
347
+ } catch (x) {
348
+ control = x;
349
+ }
350
+ fn();
351
+ }
352
+ } catch (sample) {
353
+ if (sample && control && typeof sample.stack === "string") {
354
+ var sampleLines = sample.stack.split("\n");
355
+ var controlLines = control.stack.split("\n");
356
+ var s = sampleLines.length - 1;
357
+ var c = controlLines.length - 1;
358
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
359
+ c--;
360
+ }
361
+ for (; s >= 1 && c >= 0; s--, c--) {
362
+ if (sampleLines[s] !== controlLines[c]) {
363
+ if (s !== 1 || c !== 1) {
364
+ do {
365
+ s--;
366
+ c--;
367
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
368
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
369
+ if (fn.displayName && _frame.includes("<anonymous>")) {
370
+ _frame = _frame.replace("<anonymous>", fn.displayName);
371
+ }
372
+ {
373
+ if (typeof fn === "function") {
374
+ componentFrameCache.set(fn, _frame);
375
+ }
376
+ }
377
+ return _frame;
378
+ }
379
+ } while (s >= 1 && c >= 0);
380
+ }
381
+ break;
382
+ }
383
+ }
384
+ }
385
+ } finally {
386
+ reentry = false;
387
+ {
388
+ ReactCurrentDispatcher.current = previousDispatcher;
389
+ reenableLogs();
390
+ }
391
+ Error.prepareStackTrace = previousPrepareStackTrace;
392
+ }
393
+ var name = fn ? fn.displayName || fn.name : "";
394
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
395
+ {
396
+ if (typeof fn === "function") {
397
+ componentFrameCache.set(fn, syntheticFrame);
398
+ }
399
+ }
400
+ return syntheticFrame;
401
+ }
402
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
403
+ {
404
+ return describeNativeComponentFrame(fn, false);
405
+ }
406
+ }
407
+ function shouldConstruct(Component) {
408
+ var prototype = Component.prototype;
409
+ return !!(prototype && prototype.isReactComponent);
410
+ }
411
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
412
+ if (type == null) {
413
+ return "";
414
+ }
415
+ if (typeof type === "function") {
416
+ {
417
+ return describeNativeComponentFrame(type, shouldConstruct(type));
418
+ }
419
+ }
420
+ if (typeof type === "string") {
421
+ return describeBuiltInComponentFrame(type);
422
+ }
423
+ switch (type) {
424
+ case REACT_SUSPENSE_TYPE:
425
+ return describeBuiltInComponentFrame("Suspense");
426
+ case REACT_SUSPENSE_LIST_TYPE:
427
+ return describeBuiltInComponentFrame("SuspenseList");
428
+ }
429
+ if (typeof type === "object") {
430
+ switch (type.$$typeof) {
431
+ case REACT_FORWARD_REF_TYPE:
432
+ return describeFunctionComponentFrame(type.render);
433
+ case REACT_MEMO_TYPE:
434
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
435
+ case REACT_LAZY_TYPE: {
436
+ var lazyComponent = type;
437
+ var payload = lazyComponent._payload;
438
+ var init = lazyComponent._init;
439
+ try {
440
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
441
+ } catch (x) {
442
+ }
443
+ }
444
+ }
445
+ }
446
+ return "";
447
+ }
448
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
449
+ var loggedTypeFailures = {};
450
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
451
+ function setCurrentlyValidatingElement(element) {
452
+ {
453
+ if (element) {
454
+ var owner = element._owner;
455
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
456
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
457
+ } else {
458
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
459
+ }
460
+ }
461
+ }
462
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
463
+ {
464
+ var has = Function.call.bind(hasOwnProperty);
465
+ for (var typeSpecName in typeSpecs) {
466
+ if (has(typeSpecs, typeSpecName)) {
467
+ var error$1 = void 0;
468
+ try {
469
+ if (typeof typeSpecs[typeSpecName] !== "function") {
470
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
471
+ err.name = "Invariant Violation";
472
+ throw err;
473
+ }
474
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
475
+ } catch (ex) {
476
+ error$1 = ex;
477
+ }
478
+ if (error$1 && !(error$1 instanceof Error)) {
479
+ setCurrentlyValidatingElement(element);
480
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
481
+ setCurrentlyValidatingElement(null);
482
+ }
483
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
484
+ loggedTypeFailures[error$1.message] = true;
485
+ setCurrentlyValidatingElement(element);
486
+ error("Failed %s type: %s", location, error$1.message);
487
+ setCurrentlyValidatingElement(null);
488
+ }
489
+ }
490
+ }
491
+ }
492
+ }
493
+ var isArrayImpl = Array.isArray;
494
+ function isArray(a) {
495
+ return isArrayImpl(a);
496
+ }
497
+ function typeName(value) {
498
+ {
499
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
500
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
501
+ return type;
502
+ }
503
+ }
504
+ function willCoercionThrow(value) {
505
+ {
506
+ try {
507
+ testStringCoercion(value);
508
+ return false;
509
+ } catch (e) {
510
+ return true;
511
+ }
512
+ }
513
+ }
514
+ function testStringCoercion(value) {
515
+ return "" + value;
516
+ }
517
+ function checkKeyStringCoercion(value) {
518
+ {
519
+ if (willCoercionThrow(value)) {
520
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
521
+ return testStringCoercion(value);
522
+ }
523
+ }
524
+ }
525
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
526
+ var RESERVED_PROPS = {
527
+ key: true,
528
+ ref: true,
529
+ __self: true,
530
+ __source: true
531
+ };
532
+ var specialPropKeyWarningShown;
533
+ var specialPropRefWarningShown;
534
+ function hasValidRef(config) {
535
+ {
536
+ if (hasOwnProperty.call(config, "ref")) {
537
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
538
+ if (getter && getter.isReactWarning) {
539
+ return false;
540
+ }
541
+ }
542
+ }
543
+ return config.ref !== void 0;
544
+ }
545
+ function hasValidKey(config) {
546
+ {
547
+ if (hasOwnProperty.call(config, "key")) {
548
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
549
+ if (getter && getter.isReactWarning) {
550
+ return false;
551
+ }
552
+ }
553
+ }
554
+ return config.key !== void 0;
555
+ }
556
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
557
+ {
558
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self) ;
559
+ }
560
+ }
561
+ function defineKeyPropWarningGetter(props, displayName) {
562
+ {
563
+ var warnAboutAccessingKey = function() {
564
+ if (!specialPropKeyWarningShown) {
565
+ specialPropKeyWarningShown = true;
566
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
567
+ }
568
+ };
569
+ warnAboutAccessingKey.isReactWarning = true;
570
+ Object.defineProperty(props, "key", {
571
+ get: warnAboutAccessingKey,
572
+ configurable: true
573
+ });
574
+ }
575
+ }
576
+ function defineRefPropWarningGetter(props, displayName) {
577
+ {
578
+ var warnAboutAccessingRef = function() {
579
+ if (!specialPropRefWarningShown) {
580
+ specialPropRefWarningShown = true;
581
+ error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
582
+ }
583
+ };
584
+ warnAboutAccessingRef.isReactWarning = true;
585
+ Object.defineProperty(props, "ref", {
586
+ get: warnAboutAccessingRef,
587
+ configurable: true
588
+ });
589
+ }
590
+ }
591
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
592
+ var element = {
593
+ // This tag allows us to uniquely identify this as a React Element
594
+ $$typeof: REACT_ELEMENT_TYPE,
595
+ // Built-in properties that belong on the element
596
+ type,
597
+ key,
598
+ ref,
599
+ props,
600
+ // Record the component responsible for creating this element.
601
+ _owner: owner
602
+ };
603
+ {
604
+ element._store = {};
605
+ Object.defineProperty(element._store, "validated", {
606
+ configurable: false,
607
+ enumerable: false,
608
+ writable: true,
609
+ value: false
610
+ });
611
+ Object.defineProperty(element, "_self", {
612
+ configurable: false,
613
+ enumerable: false,
614
+ writable: false,
615
+ value: self
616
+ });
617
+ Object.defineProperty(element, "_source", {
618
+ configurable: false,
619
+ enumerable: false,
620
+ writable: false,
621
+ value: source
622
+ });
623
+ if (Object.freeze) {
624
+ Object.freeze(element.props);
625
+ Object.freeze(element);
626
+ }
627
+ }
628
+ return element;
629
+ };
630
+ function jsxDEV(type, config, maybeKey, source, self) {
631
+ {
632
+ var propName;
633
+ var props = {};
634
+ var key = null;
635
+ var ref = null;
636
+ if (maybeKey !== void 0) {
637
+ {
638
+ checkKeyStringCoercion(maybeKey);
639
+ }
640
+ key = "" + maybeKey;
641
+ }
642
+ if (hasValidKey(config)) {
643
+ {
644
+ checkKeyStringCoercion(config.key);
645
+ }
646
+ key = "" + config.key;
647
+ }
648
+ if (hasValidRef(config)) {
649
+ ref = config.ref;
650
+ warnIfStringRefCannotBeAutoConverted(config, self);
651
+ }
652
+ for (propName in config) {
653
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
654
+ props[propName] = config[propName];
655
+ }
656
+ }
657
+ if (type && type.defaultProps) {
658
+ var defaultProps = type.defaultProps;
659
+ for (propName in defaultProps) {
660
+ if (props[propName] === void 0) {
661
+ props[propName] = defaultProps[propName];
662
+ }
663
+ }
664
+ }
665
+ if (key || ref) {
666
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
667
+ if (key) {
668
+ defineKeyPropWarningGetter(props, displayName);
669
+ }
670
+ if (ref) {
671
+ defineRefPropWarningGetter(props, displayName);
672
+ }
673
+ }
674
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
675
+ }
676
+ }
677
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
678
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
679
+ function setCurrentlyValidatingElement$1(element) {
680
+ {
681
+ if (element) {
682
+ var owner = element._owner;
683
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
684
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
685
+ } else {
686
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
687
+ }
688
+ }
689
+ }
690
+ var propTypesMisspellWarningShown;
691
+ {
692
+ propTypesMisspellWarningShown = false;
693
+ }
694
+ function isValidElement(object) {
695
+ {
696
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
697
+ }
698
+ }
699
+ function getDeclarationErrorAddendum() {
700
+ {
701
+ if (ReactCurrentOwner$1.current) {
702
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
703
+ if (name) {
704
+ return "\n\nCheck the render method of `" + name + "`.";
705
+ }
706
+ }
707
+ return "";
708
+ }
709
+ }
710
+ function getSourceInfoErrorAddendum(source) {
711
+ {
712
+ return "";
713
+ }
714
+ }
715
+ var ownerHasKeyUseWarning = {};
716
+ function getCurrentComponentErrorInfo(parentType) {
717
+ {
718
+ var info = getDeclarationErrorAddendum();
719
+ if (!info) {
720
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
721
+ if (parentName) {
722
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
723
+ }
724
+ }
725
+ return info;
726
+ }
727
+ }
728
+ function validateExplicitKey(element, parentType) {
729
+ {
730
+ if (!element._store || element._store.validated || element.key != null) {
731
+ return;
732
+ }
733
+ element._store.validated = true;
734
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
735
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
736
+ return;
737
+ }
738
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
739
+ var childOwner = "";
740
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
741
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
742
+ }
743
+ setCurrentlyValidatingElement$1(element);
744
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
745
+ setCurrentlyValidatingElement$1(null);
746
+ }
747
+ }
748
+ function validateChildKeys(node, parentType) {
749
+ {
750
+ if (typeof node !== "object") {
751
+ return;
752
+ }
753
+ if (isArray(node)) {
754
+ for (var i = 0; i < node.length; i++) {
755
+ var child = node[i];
756
+ if (isValidElement(child)) {
757
+ validateExplicitKey(child, parentType);
758
+ }
759
+ }
760
+ } else if (isValidElement(node)) {
761
+ if (node._store) {
762
+ node._store.validated = true;
763
+ }
764
+ } else if (node) {
765
+ var iteratorFn = getIteratorFn(node);
766
+ if (typeof iteratorFn === "function") {
767
+ if (iteratorFn !== node.entries) {
768
+ var iterator = iteratorFn.call(node);
769
+ var step;
770
+ while (!(step = iterator.next()).done) {
771
+ if (isValidElement(step.value)) {
772
+ validateExplicitKey(step.value, parentType);
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ }
779
+ }
780
+ function validatePropTypes(element) {
781
+ {
782
+ var type = element.type;
783
+ if (type === null || type === void 0 || typeof type === "string") {
784
+ return;
785
+ }
786
+ var propTypes;
787
+ if (typeof type === "function") {
788
+ propTypes = type.propTypes;
789
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
790
+ // Inner props are checked in the reconciler.
791
+ type.$$typeof === REACT_MEMO_TYPE)) {
792
+ propTypes = type.propTypes;
793
+ } else {
794
+ return;
795
+ }
796
+ if (propTypes) {
797
+ var name = getComponentNameFromType(type);
798
+ checkPropTypes(propTypes, element.props, "prop", name, element);
799
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
800
+ propTypesMisspellWarningShown = true;
801
+ var _name = getComponentNameFromType(type);
802
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
803
+ }
804
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
805
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
806
+ }
807
+ }
808
+ }
809
+ function validateFragmentProps(fragment) {
810
+ {
811
+ var keys = Object.keys(fragment.props);
812
+ for (var i = 0; i < keys.length; i++) {
813
+ var key = keys[i];
814
+ if (key !== "children" && key !== "key") {
815
+ setCurrentlyValidatingElement$1(fragment);
816
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
817
+ setCurrentlyValidatingElement$1(null);
818
+ break;
819
+ }
820
+ }
821
+ if (fragment.ref !== null) {
822
+ setCurrentlyValidatingElement$1(fragment);
823
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
824
+ setCurrentlyValidatingElement$1(null);
825
+ }
826
+ }
827
+ }
828
+ var didWarnAboutKeySpread = {};
829
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
830
+ {
831
+ var validType = isValidElementType(type);
832
+ if (!validType) {
833
+ var info = "";
834
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
835
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
836
+ }
837
+ var sourceInfo = getSourceInfoErrorAddendum();
838
+ if (sourceInfo) {
839
+ info += sourceInfo;
840
+ } else {
841
+ info += getDeclarationErrorAddendum();
842
+ }
843
+ var typeString;
844
+ if (type === null) {
845
+ typeString = "null";
846
+ } else if (isArray(type)) {
847
+ typeString = "array";
848
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
849
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
850
+ info = " Did you accidentally export a JSX literal instead of a component?";
851
+ } else {
852
+ typeString = typeof type;
853
+ }
854
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
855
+ }
856
+ var element = jsxDEV(type, props, key, source, self);
857
+ if (element == null) {
858
+ return element;
859
+ }
860
+ if (validType) {
861
+ var children = props.children;
862
+ if (children !== void 0) {
863
+ if (isStaticChildren) {
864
+ if (isArray(children)) {
865
+ for (var i = 0; i < children.length; i++) {
866
+ validateChildKeys(children[i], type);
867
+ }
868
+ if (Object.freeze) {
869
+ Object.freeze(children);
870
+ }
871
+ } else {
872
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
873
+ }
874
+ } else {
875
+ validateChildKeys(children, type);
876
+ }
877
+ }
878
+ }
879
+ {
880
+ if (hasOwnProperty.call(props, "key")) {
881
+ var componentName = getComponentNameFromType(type);
882
+ var keys = Object.keys(props).filter(function(k) {
883
+ return k !== "key";
884
+ });
885
+ var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
886
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
887
+ var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
888
+ error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
889
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
890
+ }
891
+ }
892
+ }
893
+ if (type === REACT_FRAGMENT_TYPE) {
894
+ validateFragmentProps(element);
895
+ } else {
896
+ validatePropTypes(element);
897
+ }
898
+ return element;
899
+ }
900
+ }
901
+ function jsxWithValidationStatic(type, props, key) {
902
+ {
903
+ return jsxWithValidation(type, props, key, true);
904
+ }
905
+ }
906
+ function jsxWithValidationDynamic(type, props, key) {
907
+ {
908
+ return jsxWithValidation(type, props, key, false);
909
+ }
910
+ }
911
+ var jsx = jsxWithValidationDynamic;
912
+ var jsxs = jsxWithValidationStatic;
913
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
914
+ reactJsxRuntime_development.jsx = jsx;
915
+ reactJsxRuntime_development.jsxs = jsxs;
916
+ })();
917
+ }
918
+ return reactJsxRuntime_development;
919
+ }
920
+ var hasRequiredJsxRuntime;
921
+ function requireJsxRuntime() {
922
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
923
+ hasRequiredJsxRuntime = 1;
924
+ if (process.env.NODE_ENV === "production") {
925
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
926
+ } else {
927
+ jsxRuntime.exports = requireReactJsxRuntime_development();
928
+ }
929
+ return jsxRuntime.exports;
930
+ }
931
+ var jsxRuntimeExports = requireJsxRuntime();
932
+ const formatAddress = (address, length = 4) => {
933
+ if (address.length <= length * 2 + 2) return address;
934
+ return `${address.slice(0, length + 2)}...${address.slice(-length)}`;
935
+ };
936
+ const AddressLabel = ({
937
+ address,
938
+ truncate = true,
939
+ truncateLength = 4,
940
+ showCopy = true,
941
+ onCopy,
942
+ variant = "default",
943
+ className,
944
+ ...props
945
+ }) => {
946
+ const displayAddress = truncate ? formatAddress(address, truncateLength) : address;
947
+ const handleCopy = () => {
948
+ onCopy == null ? void 0 : onCopy(address);
949
+ };
950
+ const variantStyles = {
951
+ default: "text-gray-900 dark:text-gray-100",
952
+ badge: "bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded-md",
953
+ link: "text-blue-600 dark:text-blue-400 underline"
954
+ };
955
+ const content = /* @__PURE__ */ jsxRuntimeExports.jsx(
956
+ Text,
957
+ {
958
+ className: cn(
959
+ "font-mono text-sm",
960
+ variantStyles[variant],
961
+ className
962
+ ),
963
+ selectable: true,
964
+ children: displayAddress
965
+ }
966
+ );
967
+ if (showCopy && onCopy) {
968
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
969
+ Pressable,
970
+ {
971
+ onPress: handleCopy,
972
+ className: "flex-row items-center gap-1",
973
+ accessibilityRole: "button",
974
+ accessibilityLabel: `Copy address ${displayAddress}`,
975
+ ...props,
976
+ children: [
977
+ content,
978
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-400", children: "📋" })
979
+ ]
980
+ }
981
+ );
982
+ }
983
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "flex-row items-center", ...props, children: content });
984
+ };
985
+ const CryptoPortfolio = ({
986
+ className,
987
+ children,
988
+ disabled = false,
989
+ onPress,
990
+ ...props
991
+ }) => {
992
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
993
+ Pressable,
994
+ {
995
+ onPress: disabled ? void 0 : onPress,
996
+ disabled,
997
+ accessibilityRole: "button",
998
+ accessibilityLabel: "Crypto Portfolio",
999
+ accessibilityState: { disabled },
1000
+ className: cn(
1001
+ "p-4 rounded-lg border",
1002
+ "bg-white dark:bg-gray-900",
1003
+ "border-gray-200 dark:border-gray-700",
1004
+ disabled && "opacity-50",
1005
+ "active:bg-gray-50 dark:active:bg-gray-800",
1006
+ className
1007
+ ),
1008
+ ...props,
1009
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "Crypto Portfolio Component" })
1010
+ }
1011
+ );
1012
+ };
1013
+ const GasTracker = ({
1014
+ className,
1015
+ children,
1016
+ disabled = false,
1017
+ onPress,
1018
+ ...props
1019
+ }) => {
1020
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1021
+ Pressable,
1022
+ {
1023
+ onPress: disabled ? void 0 : onPress,
1024
+ disabled,
1025
+ accessibilityRole: "button",
1026
+ accessibilityLabel: "Gas Tracker",
1027
+ accessibilityState: { disabled },
1028
+ className: cn(
1029
+ "p-4 rounded-lg border",
1030
+ "bg-white dark:bg-gray-900",
1031
+ "border-gray-200 dark:border-gray-700",
1032
+ disabled && "opacity-50",
1033
+ "active:bg-gray-50 dark:active:bg-gray-800",
1034
+ className
1035
+ ),
1036
+ ...props,
1037
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "Gas Tracker Component" })
1038
+ }
1039
+ );
1040
+ };
1041
+ const NftGallery = ({
1042
+ className,
1043
+ children,
1044
+ disabled = false,
1045
+ onPress,
1046
+ ...props
1047
+ }) => {
1048
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1049
+ Pressable,
1050
+ {
1051
+ onPress: disabled ? void 0 : onPress,
1052
+ disabled,
1053
+ accessibilityRole: "button",
1054
+ accessibilityLabel: "NFT Gallery",
1055
+ accessibilityState: { disabled },
1056
+ className: cn(
1057
+ "p-4 rounded-lg border",
1058
+ "bg-white dark:bg-gray-900",
1059
+ "border-gray-200 dark:border-gray-700",
1060
+ disabled && "opacity-50",
1061
+ "active:bg-gray-50 dark:active:bg-gray-800",
1062
+ className
1063
+ ),
1064
+ ...props,
1065
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "NFT Gallery Component" })
1066
+ }
1067
+ );
1068
+ };
1069
+ const TokenSwap = ({
1070
+ className,
1071
+ children,
1072
+ disabled = false,
1073
+ onPress,
1074
+ ...props
1075
+ }) => {
1076
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1077
+ Pressable,
1078
+ {
1079
+ onPress: disabled ? void 0 : onPress,
1080
+ disabled,
1081
+ accessibilityRole: "button",
1082
+ accessibilityLabel: "Token Swap",
1083
+ accessibilityState: { disabled },
1084
+ className: cn(
1085
+ "p-4 rounded-lg border",
1086
+ "bg-white dark:bg-gray-900",
1087
+ "border-gray-200 dark:border-gray-700",
1088
+ disabled && "opacity-50",
1089
+ "active:bg-gray-50 dark:active:bg-gray-800",
1090
+ className
1091
+ ),
1092
+ ...props,
1093
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "Token Swap Component" })
1094
+ }
1095
+ );
1096
+ };
1097
+ const WalletConnect = ({
1098
+ className,
1099
+ children,
1100
+ disabled = false,
1101
+ onPress,
1102
+ ...props
1103
+ }) => {
1104
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1105
+ Pressable,
1106
+ {
1107
+ onPress: disabled ? void 0 : onPress,
1108
+ disabled,
1109
+ accessibilityRole: "button",
1110
+ accessibilityLabel: "Wallet Connect",
1111
+ accessibilityState: { disabled },
1112
+ className: cn(
1113
+ "p-4 rounded-lg border",
1114
+ "bg-white dark:bg-gray-900",
1115
+ "border-gray-200 dark:border-gray-700",
1116
+ disabled && "opacity-50",
1117
+ "active:bg-gray-50 dark:active:bg-gray-800",
1118
+ className
1119
+ ),
1120
+ ...props,
1121
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "WalletConnect Component" })
1122
+ }
1123
+ );
1124
+ };
1125
+ const walletConfig = {
1126
+ metamask: { label: "MetaMask", emoji: "🦊", color: "bg-orange-100 dark:bg-orange-900/30" },
1127
+ walletconnect: { label: "WalletConnect", emoji: "🔗", color: "bg-blue-100 dark:bg-blue-900/30" },
1128
+ coinbase: { label: "Coinbase", emoji: "🔵", color: "bg-blue-100 dark:bg-blue-900/30" },
1129
+ rainbow: { label: "Rainbow", emoji: "🌈", color: "bg-purple-100 dark:bg-purple-900/30" },
1130
+ phantom: { label: "Phantom", emoji: "👻", color: "bg-purple-100 dark:bg-purple-900/30" },
1131
+ trust: { label: "Trust Wallet", emoji: "🛡️", color: "bg-blue-100 dark:bg-blue-900/30" },
1132
+ generic: { label: "Wallet", emoji: "💳", color: "bg-gray-100 dark:bg-gray-800" }
1133
+ };
1134
+ const sizeClasses = {
1135
+ sm: "w-6 h-6",
1136
+ md: "w-10 h-10",
1137
+ lg: "w-14 h-14"
1138
+ };
1139
+ const textSizes = {
1140
+ sm: "text-sm",
1141
+ md: "text-lg",
1142
+ lg: "text-2xl"
1143
+ };
1144
+ const WalletIcon = ({
1145
+ provider,
1146
+ size = "md",
1147
+ showLabel = false,
1148
+ className,
1149
+ ...props
1150
+ }) => {
1151
+ const config = walletConfig[provider] || walletConfig.generic;
1152
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1153
+ View,
1154
+ {
1155
+ className: cn("flex-row items-center gap-2", className),
1156
+ accessibilityLabel: config.label,
1157
+ ...props,
1158
+ children: [
1159
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1160
+ View,
1161
+ {
1162
+ className: cn(
1163
+ "rounded-full items-center justify-center",
1164
+ sizeClasses[size],
1165
+ config.color
1166
+ ),
1167
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: textSizes[size], children: config.emoji })
1168
+ }
1169
+ ),
1170
+ showLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white font-medium", children: config.label })
1171
+ ]
1172
+ }
1173
+ );
1174
+ };
1175
+ const getProviderFromName = (name) => {
1176
+ const lower = name.toLowerCase();
1177
+ if (lower.includes("metamask")) return "metamask";
1178
+ if (lower.includes("walletconnect")) return "walletconnect";
1179
+ if (lower.includes("coinbase")) return "coinbase";
1180
+ if (lower.includes("rainbow")) return "rainbow";
1181
+ if (lower.includes("phantom")) return "phantom";
1182
+ if (lower.includes("trust")) return "trust";
1183
+ return "generic";
1184
+ };
1185
+ const WalletSelectionButton = ({
1186
+ wallet,
1187
+ disabled = false,
1188
+ className,
1189
+ statusLabels = { available: "Available", notAvailable: "Not Available" },
1190
+ ...props
1191
+ }) => {
1192
+ const isDisabled = disabled || !wallet.available;
1193
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
1194
+ Pressable,
1195
+ {
1196
+ onPress: wallet.onPress,
1197
+ disabled: isDisabled,
1198
+ accessibilityRole: "button",
1199
+ accessibilityLabel: `Connect ${wallet.name} wallet for ${wallet.chainType === "solana" ? "Solana" : "Ethereum"} network`,
1200
+ accessibilityState: { disabled: isDisabled },
1201
+ className: cn(
1202
+ "w-full flex-row items-center justify-between p-4",
1203
+ "border border-gray-200 dark:border-gray-700 rounded-lg",
1204
+ "bg-white dark:bg-gray-900",
1205
+ "active:bg-gray-50 dark:active:bg-gray-700",
1206
+ isDisabled && "opacity-50",
1207
+ className
1208
+ ),
1209
+ ...props,
1210
+ children: [
1211
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center gap-3", children: [
1212
+ /* @__PURE__ */ jsxRuntimeExports.jsx(WalletIcon, { provider: getProviderFromName(wallet.name), size: "md" }),
1213
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { children: [
1214
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "font-medium text-gray-900 dark:text-white", children: wallet.name }),
1215
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1216
+ Text,
1217
+ {
1218
+ className: cn(
1219
+ "text-xs",
1220
+ wallet.available ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"
1221
+ ),
1222
+ children: wallet.available ? statusLabels.available : statusLabels.notAvailable
1223
+ }
1224
+ )
1225
+ ] })
1226
+ ] }),
1227
+ wallet.connecting && /* @__PURE__ */ jsxRuntimeExports.jsx(
1228
+ ActivityIndicator,
1229
+ {
1230
+ size: "small",
1231
+ color: wallet.chainType === "solana" ? "#9333ea" : "#2563eb"
1232
+ }
1233
+ )
1234
+ ]
1235
+ }
1236
+ );
1237
+ };
1238
+ const WalletTab = ({
1239
+ active,
1240
+ onPress,
1241
+ icon,
1242
+ label,
1243
+ color
1244
+ }) => {
1245
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1246
+ Pressable,
1247
+ {
1248
+ onPress,
1249
+ accessibilityRole: "tab",
1250
+ accessibilityState: { selected: active },
1251
+ className: cn(
1252
+ "flex-1 py-2 px-4 rounded-md",
1253
+ active ? color === "blue" ? "bg-white dark:bg-gray-800" : "bg-white dark:bg-gray-800" : "bg-transparent"
1254
+ ),
1255
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center justify-center gap-2", children: [
1256
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1257
+ Text,
1258
+ {
1259
+ className: cn(
1260
+ "text-base",
1261
+ active ? color === "blue" ? "text-blue-600 dark:text-blue-400" : "text-purple-600 dark:text-purple-400" : "text-gray-600 dark:text-gray-400"
1262
+ ),
1263
+ children: icon
1264
+ }
1265
+ ),
1266
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1267
+ Text,
1268
+ {
1269
+ className: cn(
1270
+ "font-medium",
1271
+ active ? color === "blue" ? "text-blue-600 dark:text-blue-400" : "text-purple-600 dark:text-purple-400" : "text-gray-600 dark:text-gray-400"
1272
+ ),
1273
+ children: label
1274
+ }
1275
+ )
1276
+ ] })
1277
+ }
1278
+ );
1279
+ };
1280
+ const WalletSelectionGrid = ({
1281
+ evmWallets,
1282
+ solanaWallets,
1283
+ activeTab,
1284
+ onTabChange,
1285
+ connectingWallet,
1286
+ className,
1287
+ labels = {},
1288
+ ...props
1289
+ }) => {
1290
+ const defaultLabels = {
1291
+ ethereum: "Ethereum",
1292
+ solana: "Solana",
1293
+ available: "Available",
1294
+ notAvailable: "Not Available",
1295
+ noWalletText: "Don't have a wallet?",
1296
+ installMetaMask: "Install MetaMask",
1297
+ installPhantom: "Install Phantom"
1298
+ };
1299
+ const finalLabels = { ...defaultLabels, ...labels };
1300
+ const currentWallets = activeTab === "ethereum" ? evmWallets : solanaWallets;
1301
+ const handleInstallPress = () => {
1302
+ const url = activeTab === "ethereum" ? "https://metamask.io/download/" : "https://phantom.app/download";
1303
+ Linking.openURL(url);
1304
+ };
1305
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: cn("gap-6", className), ...props, children: [
1306
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row gap-1 p-1 bg-gray-100 dark:bg-gray-700 rounded-lg", children: [
1307
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1308
+ WalletTab,
1309
+ {
1310
+ active: activeTab === "ethereum",
1311
+ onPress: () => onTabChange("ethereum"),
1312
+ icon: "⟠",
1313
+ label: finalLabels.ethereum,
1314
+ color: "blue"
1315
+ }
1316
+ ),
1317
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1318
+ WalletTab,
1319
+ {
1320
+ active: activeTab === "solana",
1321
+ onPress: () => onTabChange("solana"),
1322
+ icon: "◎",
1323
+ label: finalLabels.solana,
1324
+ color: "purple"
1325
+ }
1326
+ )
1327
+ ] }),
1328
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "gap-3", children: currentWallets.map((wallet) => /* @__PURE__ */ jsxRuntimeExports.jsx(
1329
+ WalletSelectionButton,
1330
+ {
1331
+ wallet: {
1332
+ ...wallet,
1333
+ connecting: connectingWallet === wallet.name
1334
+ },
1335
+ disabled: !!connectingWallet,
1336
+ statusLabels: {
1337
+ available: finalLabels.available,
1338
+ notAvailable: finalLabels.notAvailable
1339
+ }
1340
+ },
1341
+ wallet.id
1342
+ )) }),
1343
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "items-center pt-2", children: [
1344
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { className: "text-sm text-gray-600 dark:text-gray-400", children: [
1345
+ finalLabels.noWalletText,
1346
+ " "
1347
+ ] }),
1348
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Pressable, { onPress: handleInstallPress, accessibilityRole: "link", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1349
+ Text,
1350
+ {
1351
+ className: cn(
1352
+ "text-sm font-medium",
1353
+ activeTab === "ethereum" ? "text-blue-600 dark:text-blue-400" : "text-purple-600 dark:text-purple-400"
1354
+ ),
1355
+ children: activeTab === "ethereum" ? finalLabels.installMetaMask : finalLabels.installPhantom
1356
+ }
1357
+ ) })
1358
+ ] })
1359
+ ] });
1360
+ };
1361
+ export {
1362
+ AddressLabel,
1363
+ CryptoPortfolio,
1364
+ GasTracker,
1365
+ NftGallery,
1366
+ TokenSwap,
1367
+ WalletConnect,
1368
+ WalletIcon,
1369
+ WalletSelectionButton,
1370
+ WalletSelectionGrid,
1371
+ WalletTab
1372
+ };
1373
+ //# sourceMappingURL=index.esm.js.map