@xsolla/xui-avatar 0.64.0-pr56.1768440195

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,680 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.tsx
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ Avatar: () => Avatar,
34
+ AvatarGroup: () => AvatarGroup
35
+ });
36
+ module.exports = __toCommonJS(index_exports);
37
+
38
+ // ../primitives-native/src/Box.tsx
39
+ var import_react_native = require("react-native");
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ var Box = ({
42
+ children,
43
+ onPress,
44
+ onLayout,
45
+ onMoveShouldSetResponder,
46
+ onResponderGrant,
47
+ onResponderMove,
48
+ onResponderRelease,
49
+ onResponderTerminate,
50
+ backgroundColor,
51
+ borderColor,
52
+ borderWidth,
53
+ borderBottomWidth,
54
+ borderBottomColor,
55
+ borderTopWidth,
56
+ borderTopColor,
57
+ borderLeftWidth,
58
+ borderLeftColor,
59
+ borderRightWidth,
60
+ borderRightColor,
61
+ borderRadius,
62
+ borderStyle,
63
+ height,
64
+ padding,
65
+ paddingHorizontal,
66
+ paddingVertical,
67
+ margin,
68
+ marginTop,
69
+ marginBottom,
70
+ marginLeft,
71
+ marginRight,
72
+ flexDirection,
73
+ alignItems,
74
+ justifyContent,
75
+ position,
76
+ top,
77
+ bottom,
78
+ left,
79
+ right,
80
+ width,
81
+ flex,
82
+ overflow,
83
+ zIndex,
84
+ hoverStyle,
85
+ pressStyle,
86
+ style,
87
+ "data-testid": dataTestId,
88
+ testID,
89
+ as,
90
+ src,
91
+ alt,
92
+ ...rest
93
+ }) => {
94
+ const getContainerStyle = (pressed) => ({
95
+ backgroundColor: pressed && pressStyle?.backgroundColor ? pressStyle.backgroundColor : backgroundColor,
96
+ borderColor,
97
+ borderWidth,
98
+ borderBottomWidth,
99
+ borderBottomColor,
100
+ borderTopWidth,
101
+ borderTopColor,
102
+ borderLeftWidth,
103
+ borderLeftColor,
104
+ borderRightWidth,
105
+ borderRightColor,
106
+ borderRadius,
107
+ borderStyle,
108
+ overflow,
109
+ zIndex,
110
+ height,
111
+ width,
112
+ padding,
113
+ paddingHorizontal,
114
+ paddingVertical,
115
+ margin,
116
+ marginTop,
117
+ marginBottom,
118
+ marginLeft,
119
+ marginRight,
120
+ flexDirection,
121
+ alignItems,
122
+ justifyContent,
123
+ position,
124
+ top,
125
+ bottom,
126
+ left,
127
+ right,
128
+ flex,
129
+ ...style
130
+ });
131
+ const finalTestID = dataTestId || testID;
132
+ const {
133
+ role,
134
+ tabIndex,
135
+ onKeyDown,
136
+ onKeyUp,
137
+ "aria-label": _ariaLabel,
138
+ "aria-labelledby": _ariaLabelledBy,
139
+ "aria-current": _ariaCurrent,
140
+ "aria-disabled": _ariaDisabled,
141
+ "aria-live": _ariaLive,
142
+ className,
143
+ "data-testid": _dataTestId,
144
+ ...nativeRest
145
+ } = rest;
146
+ if (as === "img" && src) {
147
+ const imageStyle = {
148
+ width,
149
+ height,
150
+ borderRadius,
151
+ position,
152
+ top,
153
+ bottom,
154
+ left,
155
+ right,
156
+ ...style
157
+ };
158
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
159
+ import_react_native.Image,
160
+ {
161
+ source: { uri: src },
162
+ style: imageStyle,
163
+ testID: finalTestID,
164
+ resizeMode: "cover",
165
+ ...nativeRest
166
+ }
167
+ );
168
+ }
169
+ if (onPress) {
170
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
171
+ import_react_native.Pressable,
172
+ {
173
+ onPress,
174
+ onLayout,
175
+ onMoveShouldSetResponder,
176
+ onResponderGrant,
177
+ onResponderMove,
178
+ onResponderRelease,
179
+ onResponderTerminate,
180
+ style: ({ pressed }) => getContainerStyle(pressed),
181
+ testID: finalTestID,
182
+ ...nativeRest,
183
+ children
184
+ }
185
+ );
186
+ }
187
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
188
+ import_react_native.View,
189
+ {
190
+ style: getContainerStyle(),
191
+ testID: finalTestID,
192
+ onLayout,
193
+ onMoveShouldSetResponder,
194
+ onResponderGrant,
195
+ onResponderMove,
196
+ onResponderRelease,
197
+ onResponderTerminate,
198
+ ...nativeRest,
199
+ children
200
+ }
201
+ );
202
+ };
203
+
204
+ // ../primitives-native/src/Text.tsx
205
+ var import_react_native2 = require("react-native");
206
+ var import_jsx_runtime2 = require("react/jsx-runtime");
207
+ var roleMap = {
208
+ alert: "alert",
209
+ heading: "header",
210
+ button: "button",
211
+ link: "link",
212
+ text: "text"
213
+ };
214
+ var Text = ({
215
+ children,
216
+ color,
217
+ fontSize,
218
+ fontWeight,
219
+ fontFamily,
220
+ id,
221
+ role,
222
+ ...props
223
+ }) => {
224
+ let resolvedFontFamily = fontFamily ? fontFamily.split(",")[0].replace(/['"]/g, "").trim() : void 0;
225
+ if (resolvedFontFamily === "Pilat Wide Bold") {
226
+ resolvedFontFamily = void 0;
227
+ }
228
+ const style = {
229
+ color,
230
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
231
+ fontWeight,
232
+ fontFamily: resolvedFontFamily,
233
+ textDecorationLine: props.textDecoration
234
+ };
235
+ const accessibilityRole = role ? roleMap[role] : void 0;
236
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native2.Text, { style, testID: id, accessibilityRole, children });
237
+ };
238
+
239
+ // ../primitives-native/src/Spinner.tsx
240
+ var import_react_native3 = require("react-native");
241
+ var import_jsx_runtime3 = require("react/jsx-runtime");
242
+ var Spinner = ({
243
+ color,
244
+ size,
245
+ role,
246
+ "aria-label": ariaLabel,
247
+ "aria-live": ariaLive,
248
+ "aria-describedby": ariaDescribedBy,
249
+ testID
250
+ }) => {
251
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
252
+ import_react_native3.View,
253
+ {
254
+ accessible: true,
255
+ accessibilityRole: role === "status" ? "none" : void 0,
256
+ accessibilityLabel: ariaLabel,
257
+ accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
258
+ testID,
259
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
260
+ import_react_native3.ActivityIndicator,
261
+ {
262
+ color,
263
+ size: typeof size === "number" ? size : "small"
264
+ }
265
+ )
266
+ }
267
+ );
268
+ };
269
+ Spinner.displayName = "Spinner";
270
+
271
+ // ../primitives-native/src/Icon.tsx
272
+ var import_react = __toESM(require("react"));
273
+ var import_react_native4 = require("react-native");
274
+ var import_jsx_runtime4 = require("react/jsx-runtime");
275
+ var Icon = ({ children, color, size }) => {
276
+ const style = {
277
+ width: typeof size === "number" ? size : void 0,
278
+ height: typeof size === "number" ? size : void 0,
279
+ alignItems: "center",
280
+ justifyContent: "center"
281
+ };
282
+ const childrenWithProps = import_react.default.Children.map(children, (child) => {
283
+ if (import_react.default.isValidElement(child)) {
284
+ return import_react.default.cloneElement(child, {
285
+ color: child.props.color || color,
286
+ // Also pass size if child seems to be an icon that needs it
287
+ size: child.props.size || size
288
+ });
289
+ }
290
+ return child;
291
+ });
292
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native4.View, { style, children: childrenWithProps });
293
+ };
294
+
295
+ // ../primitives-native/src/Divider.tsx
296
+ var import_react_native5 = require("react-native");
297
+ var import_jsx_runtime5 = require("react/jsx-runtime");
298
+
299
+ // ../primitives-native/src/Input.tsx
300
+ var import_react2 = require("react");
301
+ var import_react_native6 = require("react-native");
302
+ var import_jsx_runtime6 = require("react/jsx-runtime");
303
+ var keyboardTypeMap = {
304
+ text: "default",
305
+ number: "numeric",
306
+ email: "email-address",
307
+ tel: "phone-pad",
308
+ url: "url",
309
+ decimal: "decimal-pad"
310
+ };
311
+ var inputModeToKeyboardType = {
312
+ none: "default",
313
+ text: "default",
314
+ decimal: "decimal-pad",
315
+ numeric: "number-pad",
316
+ tel: "phone-pad",
317
+ search: "default",
318
+ email: "email-address",
319
+ url: "url"
320
+ };
321
+ var autoCompleteToTextContentType = {
322
+ "one-time-code": "oneTimeCode",
323
+ email: "emailAddress",
324
+ username: "username",
325
+ password: "password",
326
+ "new-password": "newPassword",
327
+ tel: "telephoneNumber",
328
+ "postal-code": "postalCode",
329
+ name: "name"
330
+ };
331
+ var InputPrimitive = (0, import_react2.forwardRef)(
332
+ ({
333
+ value,
334
+ placeholder,
335
+ onChange,
336
+ onChangeText,
337
+ onFocus,
338
+ onBlur,
339
+ onKeyDown,
340
+ disabled,
341
+ secureTextEntry,
342
+ style,
343
+ color,
344
+ fontSize,
345
+ placeholderTextColor,
346
+ maxLength,
347
+ name,
348
+ type,
349
+ inputMode,
350
+ autoComplete,
351
+ id,
352
+ "aria-invalid": ariaInvalid,
353
+ "aria-describedby": ariaDescribedBy,
354
+ "aria-labelledby": ariaLabelledBy,
355
+ "aria-label": ariaLabel,
356
+ "aria-disabled": ariaDisabled,
357
+ "data-testid": dataTestId
358
+ }, ref) => {
359
+ const handleChangeText = (text) => {
360
+ onChangeText?.(text);
361
+ if (onChange) {
362
+ const syntheticEvent = {
363
+ target: { value: text },
364
+ currentTarget: { value: text },
365
+ type: "change",
366
+ nativeEvent: { text },
367
+ preventDefault: () => {
368
+ },
369
+ stopPropagation: () => {
370
+ },
371
+ isTrusted: false
372
+ };
373
+ onChange(syntheticEvent);
374
+ }
375
+ };
376
+ const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
377
+ const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
378
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
379
+ import_react_native6.TextInput,
380
+ {
381
+ ref,
382
+ value,
383
+ placeholder,
384
+ onChangeText: handleChangeText,
385
+ onFocus,
386
+ onBlur,
387
+ onKeyPress: (e) => {
388
+ if (onKeyDown) {
389
+ onKeyDown({
390
+ key: e.nativeEvent.key,
391
+ preventDefault: () => {
392
+ }
393
+ });
394
+ }
395
+ },
396
+ editable: !disabled,
397
+ secureTextEntry: secureTextEntry || type === "password",
398
+ keyboardType,
399
+ textContentType,
400
+ style: [
401
+ {
402
+ color,
403
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
404
+ flex: 1,
405
+ padding: 0,
406
+ textAlign: style?.textAlign || "left"
407
+ },
408
+ style
409
+ ],
410
+ placeholderTextColor,
411
+ maxLength,
412
+ testID: dataTestId || id,
413
+ accessibilityLabel: ariaLabel,
414
+ accessibilityHint: ariaDescribedBy,
415
+ accessibilityState: {
416
+ disabled: disabled || ariaDisabled
417
+ },
418
+ accessible: true
419
+ }
420
+ );
421
+ }
422
+ );
423
+ InputPrimitive.displayName = "InputPrimitive";
424
+
425
+ // ../primitives-native/src/TextArea.tsx
426
+ var import_react3 = require("react");
427
+ var import_react_native7 = require("react-native");
428
+ var import_jsx_runtime7 = require("react/jsx-runtime");
429
+ var TextAreaPrimitive = (0, import_react3.forwardRef)(
430
+ ({
431
+ value,
432
+ placeholder,
433
+ onChange,
434
+ onChangeText,
435
+ onFocus,
436
+ onBlur,
437
+ onKeyDown,
438
+ disabled,
439
+ style,
440
+ color,
441
+ fontSize,
442
+ placeholderTextColor,
443
+ maxLength,
444
+ rows,
445
+ id,
446
+ "aria-invalid": ariaInvalid,
447
+ "aria-describedby": ariaDescribedBy,
448
+ "aria-labelledby": ariaLabelledBy,
449
+ "aria-label": ariaLabel,
450
+ "aria-disabled": ariaDisabled,
451
+ "data-testid": dataTestId
452
+ }, ref) => {
453
+ const handleChangeText = (text) => {
454
+ onChangeText?.(text);
455
+ if (onChange) {
456
+ const syntheticEvent = {
457
+ target: { value: text },
458
+ currentTarget: { value: text },
459
+ type: "change",
460
+ nativeEvent: { text },
461
+ preventDefault: () => {
462
+ },
463
+ stopPropagation: () => {
464
+ },
465
+ isTrusted: false
466
+ };
467
+ onChange(syntheticEvent);
468
+ }
469
+ };
470
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
471
+ import_react_native7.TextInput,
472
+ {
473
+ ref,
474
+ value,
475
+ placeholder,
476
+ onChangeText: handleChangeText,
477
+ onFocus,
478
+ onBlur,
479
+ onKeyPress: (e) => {
480
+ if (onKeyDown) {
481
+ onKeyDown({
482
+ key: e.nativeEvent.key,
483
+ preventDefault: () => {
484
+ }
485
+ });
486
+ }
487
+ },
488
+ editable: !disabled,
489
+ multiline: true,
490
+ numberOfLines: rows || 4,
491
+ style: [
492
+ {
493
+ color,
494
+ fontSize: typeof fontSize === "number" ? fontSize : void 0,
495
+ flex: 1,
496
+ padding: 0,
497
+ textAlignVertical: "top",
498
+ textAlign: style?.textAlign || "left"
499
+ },
500
+ style
501
+ ],
502
+ placeholderTextColor,
503
+ maxLength,
504
+ testID: dataTestId || id,
505
+ accessibilityLabel: ariaLabel,
506
+ accessibilityHint: ariaDescribedBy,
507
+ accessibilityState: {
508
+ disabled: disabled || ariaDisabled
509
+ },
510
+ accessible: true
511
+ }
512
+ );
513
+ }
514
+ );
515
+ TextAreaPrimitive.displayName = "TextAreaPrimitive";
516
+
517
+ // src/Avatar.tsx
518
+ var import_xui_core = require("@xsolla/xui-core");
519
+ var import_xui_badge = require("@xsolla/xui-badge");
520
+ var import_jsx_runtime8 = require("react/jsx-runtime");
521
+ var Avatar = ({
522
+ src,
523
+ icon,
524
+ text,
525
+ size = "m",
526
+ square = false,
527
+ badge = false,
528
+ badgeCount,
529
+ stroke = false,
530
+ backgroundColor,
531
+ disableHover = false,
532
+ "aria-label": ariaLabel,
533
+ alt
534
+ }) => {
535
+ const { theme } = (0, import_xui_core.useDesignSystem)();
536
+ const sizeStyles = theme.sizing.avatar(size);
537
+ const borderRadius = square ? sizeStyles.borderRadiusSquare : sizeStyles.borderRadiusCircle;
538
+ const badgeOffset = square ? sizeStyles.badgeOffsetSquare : sizeStyles.badgeOffsetCircle;
539
+ const badgeSize = size === "xl" || size === "l" ? "m" : "s";
540
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
541
+ Box,
542
+ {
543
+ width: sizeStyles.size,
544
+ height: sizeStyles.size,
545
+ position: "relative",
546
+ ...!src && { role: "img", "aria-label": ariaLabel },
547
+ children: [
548
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
549
+ Box,
550
+ {
551
+ width: sizeStyles.size,
552
+ height: sizeStyles.size,
553
+ borderRadius,
554
+ backgroundColor: backgroundColor || theme.colors.background.secondary,
555
+ ...!disableHover && !src && {
556
+ hoverStyle: {
557
+ backgroundColor: theme.colors.overlay.mono
558
+ }
559
+ },
560
+ alignItems: "center",
561
+ justifyContent: "center",
562
+ position: "relative",
563
+ overflow: "hidden",
564
+ borderWidth: stroke ? 1 : 0,
565
+ borderColor: theme.colors.background.primary,
566
+ children: src ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
567
+ Box,
568
+ {
569
+ as: "img",
570
+ src,
571
+ alt: alt || ariaLabel || "",
572
+ position: "absolute",
573
+ top: 0,
574
+ left: 0,
575
+ width: sizeStyles.size,
576
+ height: sizeStyles.size,
577
+ borderRadius
578
+ }
579
+ ) : icon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { size: sizeStyles.iconSize, color: theme.colors.content.primary, children: icon }) : text ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
580
+ Text,
581
+ {
582
+ fontSize: sizeStyles.fontSize,
583
+ color: theme.colors.content.primary,
584
+ fontWeight: "600",
585
+ children: text
586
+ }
587
+ ) : null
588
+ }
589
+ ),
590
+ badge && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Box, { position: "absolute", right: badgeOffset, top: badgeOffset, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
591
+ import_xui_badge.Badge,
592
+ {
593
+ size: badgeSize,
594
+ showStroke: true,
595
+ "aria-label": badgeCount ? `${badgeCount} notifications` : "Notification",
596
+ children: badgeCount
597
+ }
598
+ ) })
599
+ ]
600
+ }
601
+ );
602
+ };
603
+
604
+ // src/AvatarGroup.tsx
605
+ var import_react4 = __toESM(require("react"));
606
+ var import_xui_core2 = require("@xsolla/xui-core");
607
+ var import_jsx_runtime9 = require("react/jsx-runtime");
608
+ var AvatarGroup = ({
609
+ children,
610
+ size = "m",
611
+ max = 5,
612
+ stroke = true,
613
+ "aria-label": ariaLabel
614
+ }) => {
615
+ const { theme } = (0, import_xui_core2.useDesignSystem)();
616
+ const childrenArray = import_react4.default.Children.toArray(children).filter(Boolean);
617
+ const totalCount = childrenArray.length;
618
+ const visibleCount = Math.min(totalCount, Math.max(0, max));
619
+ const visibleAvatars = childrenArray.slice(0, visibleCount);
620
+ const remainingCount = totalCount - visibleCount;
621
+ const overlap = -4;
622
+ const avatarBackgrounds = [
623
+ theme.colors.background.alert.secondary,
624
+ theme.colors.background.warning.secondary,
625
+ theme.colors.background.brandExtra.secondary,
626
+ theme.colors.background.neutral.secondary,
627
+ theme.colors.background.brand.secondary,
628
+ theme.colors.background.success.secondary,
629
+ theme.colors.background.success.primary
630
+ ];
631
+ const defaultAriaLabel = totalCount === 1 ? "1 user" : totalCount === visibleAvatars.length ? `${totalCount} users` : `${visibleAvatars.length} of ${totalCount} users`;
632
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
633
+ Box,
634
+ {
635
+ flexDirection: "row",
636
+ alignItems: "center",
637
+ role: "group",
638
+ "aria-label": ariaLabel || defaultAriaLabel,
639
+ children: [
640
+ visibleAvatars.map((child, index) => {
641
+ if (!import_react4.default.isValidElement(child)) return null;
642
+ const childProps = child.props;
643
+ const shouldApplyBackground = !childProps.src && !childProps.backgroundColor;
644
+ const backgroundColor = shouldApplyBackground ? avatarBackgrounds[index % avatarBackgrounds.length] : childProps.backgroundColor;
645
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
646
+ Box,
647
+ {
648
+ marginLeft: index === 0 ? 0 : overlap,
649
+ zIndex: totalCount - index,
650
+ children: import_react4.default.cloneElement(child, {
651
+ size: childProps.size || size,
652
+ stroke: childProps.stroke ?? stroke,
653
+ backgroundColor,
654
+ disableHover: true
655
+ })
656
+ },
657
+ index
658
+ );
659
+ }),
660
+ remainingCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box, { marginLeft: overlap, zIndex: 0, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
661
+ Avatar,
662
+ {
663
+ size,
664
+ text: `+${remainingCount}`,
665
+ stroke,
666
+ backgroundColor: theme.colors.background.secondary,
667
+ disableHover: true,
668
+ "aria-label": `${remainingCount} more ${remainingCount === 1 ? "user" : "users"}`
669
+ }
670
+ ) })
671
+ ]
672
+ }
673
+ );
674
+ };
675
+ // Annotate the CommonJS export names for ESM import in node:
676
+ 0 && (module.exports = {
677
+ Avatar,
678
+ AvatarGroup
679
+ });
680
+ //# sourceMappingURL=index.js.map