@sudobility/email-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.
Files changed (39) hide show
  1. package/dist/AbTestEmail.d.ts +12 -0
  2. package/dist/AbTestEmail.d.ts.map +1 -0
  3. package/dist/ContactCard.d.ts +14 -0
  4. package/dist/ContactCard.d.ts.map +1 -0
  5. package/dist/EmailAccountsList.d.ts +30 -0
  6. package/dist/EmailAccountsList.d.ts.map +1 -0
  7. package/dist/EmailAnalytics.d.ts +12 -0
  8. package/dist/EmailAnalytics.d.ts.map +1 -0
  9. package/dist/EmailCampaign.d.ts +12 -0
  10. package/dist/EmailCampaign.d.ts.map +1 -0
  11. package/dist/EmailInputGroup.d.ts +56 -0
  12. package/dist/EmailInputGroup.d.ts.map +1 -0
  13. package/dist/EmailTemplate.d.ts +13 -0
  14. package/dist/EmailTemplate.d.ts.map +1 -0
  15. package/dist/FreeEmailBanner.d.ts +24 -0
  16. package/dist/FreeEmailBanner.d.ts.map +1 -0
  17. package/dist/SubscriberList.d.ts +12 -0
  18. package/dist/SubscriberList.d.ts.map +1 -0
  19. package/dist/SubscriptionPlan.d.ts +13 -0
  20. package/dist/SubscriptionPlan.d.ts.map +1 -0
  21. package/dist/index.cjs.js +1545 -0
  22. package/dist/index.cjs.js.map +1 -0
  23. package/dist/index.d.ts +15 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.esm.js +1545 -0
  26. package/dist/index.esm.js.map +1 -0
  27. package/package.json +55 -0
  28. package/src/AbTestEmail.tsx +39 -0
  29. package/src/ContactCard.tsx +71 -0
  30. package/src/EmailAccountsList.tsx +209 -0
  31. package/src/EmailAnalytics.tsx +39 -0
  32. package/src/EmailCampaign.tsx +39 -0
  33. package/src/EmailInputGroup.tsx +204 -0
  34. package/src/EmailTemplate.tsx +46 -0
  35. package/src/FreeEmailBanner.tsx +167 -0
  36. package/src/SubscriberList.tsx +39 -0
  37. package/src/SubscriptionPlan.tsx +46 -0
  38. package/src/index.ts +27 -0
  39. package/src/nativewind.d.ts +23 -0
@@ -0,0 +1,1545 @@
1
+ import require$$0 from "react";
2
+ import { View, Text, Image, Pressable, TextInput, Linking } from "react-native";
3
+ import { cn, Card, ChainBadge } 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 AbTestEmail = ({
933
+ className,
934
+ children,
935
+ disabled,
936
+ ...props
937
+ }) => {
938
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
939
+ View,
940
+ {
941
+ className: cn(
942
+ "p-4 rounded-lg border",
943
+ "bg-white dark:bg-gray-900",
944
+ "border-gray-200 dark:border-gray-700",
945
+ disabled && "opacity-50",
946
+ className
947
+ ),
948
+ accessibilityLabel: "AB Test Email",
949
+ ...props,
950
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "AbTestEmail Component" })
951
+ }
952
+ );
953
+ };
954
+ const ContactCard = ({
955
+ name,
956
+ email,
957
+ avatar,
958
+ role,
959
+ onPress,
960
+ className,
961
+ ...props
962
+ }) => {
963
+ const content = /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center gap-3", children: [
964
+ avatar ? /* @__PURE__ */ jsxRuntimeExports.jsx(
965
+ Image,
966
+ {
967
+ source: { uri: avatar },
968
+ className: "w-12 h-12 rounded-full",
969
+ accessibilityLabel: `${name}'s avatar`
970
+ }
971
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "w-12 h-12 rounded-full bg-blue-100 dark:bg-blue-900 items-center justify-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-blue-600 dark:text-blue-400 text-lg font-semibold", children: name.charAt(0).toUpperCase() }) }),
972
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-1", children: [
973
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "font-semibold text-gray-900 dark:text-white", children: name }),
974
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-sm text-gray-500 dark:text-gray-400", children: email }),
975
+ role && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-xs text-gray-400 dark:text-gray-500", children: role })
976
+ ] })
977
+ ] });
978
+ if (onPress) {
979
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
980
+ Pressable,
981
+ {
982
+ onPress,
983
+ className: cn("active:opacity-80", className),
984
+ accessibilityRole: "button",
985
+ accessibilityLabel: `Contact ${name}`,
986
+ ...props,
987
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { variant: "bordered", padding: "md", children: content })
988
+ }
989
+ );
990
+ }
991
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { variant: "bordered", padding: "md", className, ...props, children: content });
992
+ };
993
+ const formatWalletAddress = (address) => {
994
+ if (!address) return "";
995
+ if (address.length <= 10) return address;
996
+ return `${address.slice(0, 6)}...${address.slice(-4)}`;
997
+ };
998
+ const ChainPill = ({ type, addressType }) => {
999
+ if (type === "primary") {
1000
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1001
+ ChainBadge,
1002
+ {
1003
+ chainType: addressType === "solana" ? "solana" : "evm",
1004
+ size: "sm"
1005
+ }
1006
+ );
1007
+ }
1008
+ const getChainLabel = () => type.toUpperCase();
1009
+ const getChainStyle = () => {
1010
+ switch (type) {
1011
+ case "ens":
1012
+ return "bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800";
1013
+ case "sns":
1014
+ return "bg-orange-50 dark:bg-orange-900/10 border-orange-200 dark:border-orange-800";
1015
+ default:
1016
+ return "bg-gray-50 dark:bg-gray-900/10 border-gray-200 dark:border-gray-800";
1017
+ }
1018
+ };
1019
+ const getTextStyle2 = () => {
1020
+ switch (type) {
1021
+ case "ens":
1022
+ return "text-green-700 dark:text-green-300";
1023
+ case "sns":
1024
+ return "text-orange-700 dark:text-orange-300";
1025
+ default:
1026
+ return "text-gray-700 dark:text-gray-300";
1027
+ }
1028
+ };
1029
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: cn("px-2.5 py-0.5 rounded-md border", getChainStyle()), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("text-xs font-medium", getTextStyle2()), children: getChainLabel() }) });
1030
+ };
1031
+ const CollapsibleDomainEmails = ({
1032
+ domainEmails,
1033
+ isExpanded,
1034
+ selectedAccount,
1035
+ onAccountSelect
1036
+ }) => {
1037
+ if (!isExpanded) return null;
1038
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: "ml-6 mt-2 gap-1", children: domainEmails.map((email) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
1039
+ Pressable,
1040
+ {
1041
+ onPress: () => onAccountSelect(email.address),
1042
+ accessibilityRole: "button",
1043
+ className: cn(
1044
+ "w-full flex-row items-center justify-between px-3 py-2 rounded-lg",
1045
+ selectedAccount === email.address ? "bg-blue-100 dark:bg-blue-900/30" : "active:bg-gray-100 dark:active:bg-gray-700"
1046
+ ),
1047
+ children: [
1048
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1049
+ Text,
1050
+ {
1051
+ className: cn(
1052
+ "flex-1 text-sm",
1053
+ selectedAccount === email.address ? "text-blue-700 dark:text-blue-300" : "text-gray-900 dark:text-white"
1054
+ ),
1055
+ numberOfLines: 1,
1056
+ children: email.name
1057
+ }
1058
+ ),
1059
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ChainPill, { type: email.type, addressType: email.addressType })
1060
+ ]
1061
+ },
1062
+ email.address
1063
+ )) });
1064
+ };
1065
+ const EmailAccountsList = ({
1066
+ walletGroups,
1067
+ selectedAccount,
1068
+ expandedWallets,
1069
+ onAccountSelect,
1070
+ onToggleWallet,
1071
+ onAccountSettings,
1072
+ className,
1073
+ ...props
1074
+ }) => {
1075
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(View, { className: cn("gap-1", className), ...props, children: walletGroups.map((group) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { children: [
1076
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
1077
+ Pressable,
1078
+ {
1079
+ onPress: () => onAccountSelect(group.primaryEmail.address),
1080
+ accessibilityRole: "button",
1081
+ className: cn(
1082
+ "w-full flex-row items-center justify-between px-3 py-2 rounded-lg",
1083
+ selectedAccount === group.primaryEmail.address && group.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30" : "active:bg-gray-100 dark:active:bg-gray-700"
1084
+ ),
1085
+ children: [
1086
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center flex-1 min-w-0 gap-2", children: [
1087
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1088
+ Text,
1089
+ {
1090
+ className: cn(
1091
+ "flex-1 text-sm",
1092
+ selectedAccount === group.primaryEmail.address ? "text-blue-700 dark:text-blue-300" : "text-gray-900 dark:text-white"
1093
+ ),
1094
+ numberOfLines: 1,
1095
+ children: formatWalletAddress(group.walletAddress)
1096
+ }
1097
+ ),
1098
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1099
+ ChainPill,
1100
+ {
1101
+ type: group.primaryEmail.type,
1102
+ addressType: group.addressType
1103
+ }
1104
+ )
1105
+ ] }),
1106
+ group.domainEmails.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
1107
+ Pressable,
1108
+ {
1109
+ onPress: () => onToggleWallet(group.walletAddress),
1110
+ accessibilityRole: "button",
1111
+ className: "p-1 rounded-lg active:bg-gray-200 dark:active:bg-gray-600",
1112
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1113
+ Text,
1114
+ {
1115
+ className: cn(
1116
+ "text-gray-500",
1117
+ expandedWallets.includes(group.walletAddress) && "rotate-90"
1118
+ ),
1119
+ children: "›"
1120
+ }
1121
+ )
1122
+ }
1123
+ )
1124
+ ]
1125
+ }
1126
+ ),
1127
+ group.domainEmails.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
1128
+ CollapsibleDomainEmails,
1129
+ {
1130
+ domainEmails: group.domainEmails,
1131
+ isExpanded: expandedWallets.includes(group.walletAddress),
1132
+ selectedAccount,
1133
+ onAccountSelect
1134
+ }
1135
+ )
1136
+ ] }, group.walletAddress)) });
1137
+ };
1138
+ const EmailAnalytics = ({
1139
+ className,
1140
+ children,
1141
+ disabled,
1142
+ ...props
1143
+ }) => {
1144
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1145
+ View,
1146
+ {
1147
+ className: cn(
1148
+ "p-4 rounded-lg border",
1149
+ "bg-white dark:bg-gray-900",
1150
+ "border-gray-200 dark:border-gray-700",
1151
+ disabled && "opacity-50",
1152
+ className
1153
+ ),
1154
+ accessibilityLabel: "Email Analytics",
1155
+ ...props,
1156
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "EmailAnalytics Component" })
1157
+ }
1158
+ );
1159
+ };
1160
+ const EmailCampaign = ({
1161
+ className,
1162
+ children,
1163
+ disabled,
1164
+ ...props
1165
+ }) => {
1166
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1167
+ View,
1168
+ {
1169
+ className: cn(
1170
+ "p-4 rounded-lg border",
1171
+ "bg-white dark:bg-gray-900",
1172
+ "border-gray-200 dark:border-gray-700",
1173
+ disabled && "opacity-50",
1174
+ className
1175
+ ),
1176
+ accessibilityLabel: "Email Campaign",
1177
+ ...props,
1178
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "EmailCampaign Component" })
1179
+ }
1180
+ );
1181
+ };
1182
+ const EmailInputField = ({
1183
+ label,
1184
+ value,
1185
+ onChangeText,
1186
+ placeholder,
1187
+ required = false,
1188
+ error,
1189
+ className
1190
+ }) => {
1191
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className, children: [
1192
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { className: "text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: [
1193
+ label,
1194
+ " ",
1195
+ required && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-red-500", children: "*" })
1196
+ ] }),
1197
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1198
+ TextInput,
1199
+ {
1200
+ value,
1201
+ onChangeText,
1202
+ placeholder,
1203
+ placeholderTextColor: "#9CA3AF",
1204
+ keyboardType: "email-address",
1205
+ autoCapitalize: "none",
1206
+ autoCorrect: false,
1207
+ accessibilityLabel: label,
1208
+ className: cn(
1209
+ "px-3 py-2 border rounded-md",
1210
+ "bg-white dark:bg-gray-800",
1211
+ "text-gray-900 dark:text-white",
1212
+ error ? "border-red-300 dark:border-red-600" : "border-gray-300 dark:border-gray-600"
1213
+ )
1214
+ }
1215
+ ),
1216
+ error && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error })
1217
+ ] });
1218
+ };
1219
+ const CollapsibleEmailField = ({
1220
+ isVisible,
1221
+ onToggle,
1222
+ showLabel,
1223
+ hideLabel,
1224
+ ...fieldProps
1225
+ }) => {
1226
+ const toggleLabel = isVisible ? hideLabel : showLabel;
1227
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { children: [
1228
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1229
+ Pressable,
1230
+ {
1231
+ onPress: onToggle,
1232
+ accessibilityRole: "button",
1233
+ className: "flex-row items-center mb-2",
1234
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { className: "text-sm text-blue-600 dark:text-blue-400", children: [
1235
+ isVisible ? "▲" : "▼",
1236
+ " ",
1237
+ toggleLabel
1238
+ ] })
1239
+ }
1240
+ ),
1241
+ isVisible && /* @__PURE__ */ jsxRuntimeExports.jsx(EmailInputField, { ...fieldProps })
1242
+ ] });
1243
+ };
1244
+ const EmailInputGroup = ({
1245
+ to,
1246
+ onToChange,
1247
+ cc = "",
1248
+ onCcChange,
1249
+ bcc = "",
1250
+ onBccChange,
1251
+ showCc = false,
1252
+ showBcc = false,
1253
+ onToggleCc,
1254
+ onToggleBcc,
1255
+ errors = {},
1256
+ className,
1257
+ labels = {},
1258
+ placeholders = {},
1259
+ ...props
1260
+ }) => {
1261
+ const defaultLabels = {
1262
+ to: "To",
1263
+ cc: "CC",
1264
+ bcc: "BCC",
1265
+ addCc: "Add CC",
1266
+ removeCc: "Remove CC",
1267
+ addBcc: "Add BCC",
1268
+ removeBcc: "Remove BCC"
1269
+ };
1270
+ const defaultPlaceholders = {
1271
+ to: "recipient@example.com",
1272
+ cc: "cc@example.com",
1273
+ bcc: "bcc@example.com"
1274
+ };
1275
+ const finalLabels = { ...defaultLabels, ...labels };
1276
+ const finalPlaceholders = { ...defaultPlaceholders, ...placeholders };
1277
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: cn("gap-4", className), ...props, children: [
1278
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1279
+ EmailInputField,
1280
+ {
1281
+ label: finalLabels.to,
1282
+ value: to,
1283
+ onChangeText: onToChange,
1284
+ placeholder: finalPlaceholders.to,
1285
+ required: true,
1286
+ error: errors.to
1287
+ }
1288
+ ),
1289
+ onToggleCc && onCcChange && /* @__PURE__ */ jsxRuntimeExports.jsx(
1290
+ CollapsibleEmailField,
1291
+ {
1292
+ label: finalLabels.cc,
1293
+ value: cc,
1294
+ onChangeText: onCcChange,
1295
+ placeholder: finalPlaceholders.cc,
1296
+ error: errors.cc,
1297
+ isVisible: showCc,
1298
+ onToggle: onToggleCc,
1299
+ showLabel: finalLabels.addCc,
1300
+ hideLabel: finalLabels.removeCc
1301
+ }
1302
+ ),
1303
+ onToggleBcc && onBccChange && /* @__PURE__ */ jsxRuntimeExports.jsx(
1304
+ CollapsibleEmailField,
1305
+ {
1306
+ label: finalLabels.bcc,
1307
+ value: bcc,
1308
+ onChangeText: onBccChange,
1309
+ placeholder: finalPlaceholders.bcc,
1310
+ error: errors.bcc,
1311
+ isVisible: showBcc,
1312
+ onToggle: onToggleBcc,
1313
+ showLabel: finalLabels.addBcc,
1314
+ hideLabel: finalLabels.removeBcc
1315
+ }
1316
+ )
1317
+ ] });
1318
+ };
1319
+ const EmailTemplate = ({
1320
+ className,
1321
+ children,
1322
+ disabled = false,
1323
+ onPress,
1324
+ ...props
1325
+ }) => {
1326
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1327
+ Pressable,
1328
+ {
1329
+ onPress: disabled ? void 0 : onPress,
1330
+ disabled,
1331
+ accessibilityRole: "button",
1332
+ accessibilityLabel: "Email Template",
1333
+ accessibilityState: { disabled },
1334
+ className: cn(
1335
+ "p-4 rounded-lg border",
1336
+ "bg-white dark:bg-gray-900",
1337
+ "border-gray-200 dark:border-gray-700",
1338
+ disabled && "opacity-50",
1339
+ "active:bg-gray-50 dark:active:bg-gray-800",
1340
+ className
1341
+ ),
1342
+ ...props,
1343
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "EmailTemplate Component" })
1344
+ }
1345
+ );
1346
+ };
1347
+ const getBannerStyle = (variant) => {
1348
+ switch (variant) {
1349
+ case "compact":
1350
+ return "bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800";
1351
+ case "minimal":
1352
+ return "bg-gray-50 dark:bg-gray-900/50 border-gray-200 dark:border-gray-700";
1353
+ case "vibrant":
1354
+ return "bg-blue-600 border-blue-700";
1355
+ default:
1356
+ return "bg-green-100 dark:bg-green-900/20 border-green-200 dark:border-green-700";
1357
+ }
1358
+ };
1359
+ const getSizeStyle = (size) => {
1360
+ switch (size) {
1361
+ case "compact":
1362
+ return "py-3";
1363
+ case "large":
1364
+ return "py-6";
1365
+ default:
1366
+ return "py-4";
1367
+ }
1368
+ };
1369
+ const getTextStyle = (variant) => {
1370
+ switch (variant) {
1371
+ case "compact":
1372
+ return "text-green-700 dark:text-green-300";
1373
+ case "minimal":
1374
+ return "text-gray-700 dark:text-gray-300";
1375
+ case "vibrant":
1376
+ return "text-white";
1377
+ default:
1378
+ return "text-green-800 dark:text-green-200";
1379
+ }
1380
+ };
1381
+ const getButtonStyle = (variant) => {
1382
+ switch (variant) {
1383
+ case "compact":
1384
+ return "bg-green-600 active:bg-green-700";
1385
+ case "minimal":
1386
+ return "bg-blue-600 active:bg-blue-700";
1387
+ case "vibrant":
1388
+ return "bg-white active:bg-gray-100";
1389
+ default:
1390
+ return "bg-green-600 active:bg-green-700";
1391
+ }
1392
+ };
1393
+ const getButtonTextStyle = (variant) => {
1394
+ if (variant === "vibrant") {
1395
+ return "text-blue-600";
1396
+ }
1397
+ return "text-white";
1398
+ };
1399
+ const FreeEmailBanner = ({
1400
+ className,
1401
+ variant = "default",
1402
+ size = "default",
1403
+ message = "Get Your Free Email Address - Start Using Web3 Email Today",
1404
+ ctaText = "Get Free Email",
1405
+ ctaLink = "/connect",
1406
+ showBadge = true,
1407
+ badgeText = "FREE",
1408
+ onDismiss,
1409
+ isDismissible = false,
1410
+ dismissAriaLabel = "Dismiss banner",
1411
+ onCtaPress,
1412
+ ...props
1413
+ }) => {
1414
+ const handleCtaPress = () => {
1415
+ if (onCtaPress) {
1416
+ onCtaPress();
1417
+ } else if (ctaLink.startsWith("http")) {
1418
+ Linking.openURL(ctaLink);
1419
+ }
1420
+ };
1421
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1422
+ View,
1423
+ {
1424
+ className: cn(
1425
+ "border-b px-4",
1426
+ getBannerStyle(variant),
1427
+ getSizeStyle(size),
1428
+ className
1429
+ ),
1430
+ accessibilityLabel: "Free Email Banner",
1431
+ ...props,
1432
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "items-center gap-4", children: [
1433
+ isDismissible && onDismiss && /* @__PURE__ */ jsxRuntimeExports.jsx(
1434
+ Pressable,
1435
+ {
1436
+ onPress: onDismiss,
1437
+ accessibilityRole: "button",
1438
+ accessibilityLabel: dismissAriaLabel,
1439
+ className: "absolute right-2 top-2 p-1 rounded-full",
1440
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-current opacity-60", children: "✕" })
1441
+ }
1442
+ ),
1443
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { className: "flex-row items-center justify-center flex-wrap gap-2", children: [
1444
+ showBadge && /* @__PURE__ */ jsxRuntimeExports.jsx(
1445
+ View,
1446
+ {
1447
+ className: cn(
1448
+ "px-3 py-1 rounded-full",
1449
+ variant === "vibrant" ? "bg-white" : "bg-green-500"
1450
+ ),
1451
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1452
+ Text,
1453
+ {
1454
+ className: cn(
1455
+ "text-xs font-bold",
1456
+ variant === "vibrant" ? "text-blue-600" : "text-white"
1457
+ ),
1458
+ children: badgeText
1459
+ }
1460
+ )
1461
+ }
1462
+ ),
1463
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("font-semibold text-center", getTextStyle(variant)), children: message })
1464
+ ] }),
1465
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
1466
+ Pressable,
1467
+ {
1468
+ onPress: handleCtaPress,
1469
+ accessibilityRole: "button",
1470
+ className: cn(
1471
+ "px-6 py-2 rounded-lg",
1472
+ getButtonStyle(variant)
1473
+ ),
1474
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: cn("font-medium", getButtonTextStyle(variant)), children: ctaText })
1475
+ }
1476
+ )
1477
+ ] })
1478
+ }
1479
+ );
1480
+ };
1481
+ const SubscriberList = ({
1482
+ className,
1483
+ children,
1484
+ disabled,
1485
+ ...props
1486
+ }) => {
1487
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1488
+ View,
1489
+ {
1490
+ className: cn(
1491
+ "p-4 rounded-lg border",
1492
+ "bg-white dark:bg-gray-900",
1493
+ "border-gray-200 dark:border-gray-700",
1494
+ disabled && "opacity-50",
1495
+ className
1496
+ ),
1497
+ accessibilityLabel: "Subscriber List",
1498
+ ...props,
1499
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "SubscriberList Component" })
1500
+ }
1501
+ );
1502
+ };
1503
+ const SubscriptionPlan = ({
1504
+ className,
1505
+ children,
1506
+ disabled = false,
1507
+ onPress,
1508
+ ...props
1509
+ }) => {
1510
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
1511
+ Pressable,
1512
+ {
1513
+ onPress: disabled ? void 0 : onPress,
1514
+ disabled,
1515
+ accessibilityRole: "button",
1516
+ accessibilityLabel: "Subscription Plan",
1517
+ accessibilityState: { disabled },
1518
+ className: cn(
1519
+ "p-4 rounded-lg border",
1520
+ "bg-white dark:bg-gray-900",
1521
+ "border-gray-200 dark:border-gray-700",
1522
+ disabled && "opacity-50",
1523
+ "active:bg-gray-50 dark:active:bg-gray-800",
1524
+ className
1525
+ ),
1526
+ ...props,
1527
+ children: children || /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { className: "text-gray-900 dark:text-white", children: "SubscriptionPlan Component" })
1528
+ }
1529
+ );
1530
+ };
1531
+ export {
1532
+ AbTestEmail,
1533
+ CollapsibleEmailField,
1534
+ ContactCard,
1535
+ EmailAccountsList,
1536
+ EmailAnalytics,
1537
+ EmailCampaign,
1538
+ EmailInputField,
1539
+ EmailInputGroup,
1540
+ EmailTemplate,
1541
+ FreeEmailBanner,
1542
+ SubscriberList,
1543
+ SubscriptionPlan
1544
+ };
1545
+ //# sourceMappingURL=index.esm.js.map