@cocoar/vue-ui 1.17.0 → 2.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.
- package/dist/components/date-time/plain-date-time-view/CoarPlainDateTimeView.vue.d.ts +30 -0
- package/dist/components/date-time/plain-date-time-view/CoarPlainDateTimeView.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-view/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-time-view/index.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-view/CoarPlainDateView.vue.d.ts +24 -0
- package/dist/components/date-time/plain-date-view/CoarPlainDateView.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-view/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-view/index.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-view/CoarZonedDateTimeView.vue.d.ts +43 -0
- package/dist/components/date-time/zoned-date-time-view/CoarZonedDateTimeView.vue.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-view/index.d.ts +3 -0
- package/dist/components/date-time/zoned-date-time-view/index.d.ts.map +1 -0
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts +91 -0
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -0
- package/dist/components/otp-input/index.d.ts +3 -0
- package/dist/components/otp-input/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1503 -1206
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig } from '../_shared/types';
|
|
3
|
+
export type CoarPlainDateTimeViewSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
export interface CoarPlainDateTimeViewProps {
|
|
5
|
+
/** The PlainDateTime value to display. `null` renders the placeholder. */
|
|
6
|
+
value?: Temporal.PlainDateTime | null;
|
|
7
|
+
/** Locale override (BCP-47 tag). Defaults to consumer-app locale. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** Date format override. Defaults to the resolved consumer-app format. */
|
|
10
|
+
dateFormat?: DateFormatConfig;
|
|
11
|
+
/**
|
|
12
|
+
* 24-hour vs 12-hour clock. `true` = 24h, `false` = 12h, `'auto'`
|
|
13
|
+
* (default) derives from the resolved locale.
|
|
14
|
+
*/
|
|
15
|
+
use24Hour?: boolean | 'auto';
|
|
16
|
+
/** Text shown when `value` is `null` or not a `Temporal.PlainDateTime`. */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** Font-size token — matches the form-input family. */
|
|
19
|
+
size?: CoarPlainDateTimeViewSize;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import('vue').DefineComponent<CoarPlainDateTimeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarPlainDateTimeViewProps> & Readonly<{}>, {
|
|
22
|
+
value: Temporal.PlainDateTime | null;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
size: CoarPlainDateTimeViewSize;
|
|
25
|
+
locale: string;
|
|
26
|
+
use24Hour: boolean | "auto";
|
|
27
|
+
dateFormat: DateFormatConfig;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
29
|
+
export default _default;
|
|
30
|
+
//# sourceMappingURL=CoarPlainDateTimeView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimeView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-view/CoarPlainDateTimeView.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/D,MAAM,WAAW,0BAA0B;IACzC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IACtC,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;;WAdS,QAAQ,CAAC,aAAa,GAAG,IAAI;iBAWvB,MAAM;UAEb,yBAAyB;YAXvB,MAAM;eAOH,OAAO,GAAG,MAAM;gBALf,gBAAgB;;AAgH/B,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig } from '../_shared/types';
|
|
3
|
+
export type CoarPlainDateViewSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
export interface CoarPlainDateViewProps {
|
|
5
|
+
/** The PlainDate value to display. `null` renders the placeholder. */
|
|
6
|
+
value?: Temporal.PlainDate | null;
|
|
7
|
+
/** Locale override (BCP-47 tag). Defaults to consumer-app locale. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** Date format override. Defaults to the resolved consumer-app format. */
|
|
10
|
+
dateFormat?: DateFormatConfig;
|
|
11
|
+
/** Text shown when `value` is `null` or not a `Temporal.PlainDate`. */
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Font-size token — matches the form-input family. */
|
|
14
|
+
size?: CoarPlainDateViewSize;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<CoarPlainDateViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarPlainDateViewProps> & Readonly<{}>, {
|
|
17
|
+
value: Temporal.PlainDate | null;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
size: CoarPlainDateViewSize;
|
|
20
|
+
locale: string;
|
|
21
|
+
dateFormat: DateFormatConfig;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=CoarPlainDateView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-view/CoarPlainDateView.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,sEAAsE;IACtE,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAClC,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;;WATS,QAAQ,CAAC,SAAS,GAAG,IAAI;iBAMnB,MAAM;UAEb,qBAAqB;YANnB,MAAM;gBAEF,gBAAgB;;AA8F/B,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig } from '../_shared/types';
|
|
3
|
+
export type CoarZonedDateTimeViewSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
export interface CoarZonedDateTimeViewProps {
|
|
5
|
+
/** The ZonedDateTime value to display. `null` renders the placeholder. */
|
|
6
|
+
value?: Temporal.ZonedDateTime | null;
|
|
7
|
+
/** Locale override (BCP-47 tag). Defaults to consumer-app locale. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** Date format override. Defaults to the resolved consumer-app format. */
|
|
10
|
+
dateFormat?: DateFormatConfig;
|
|
11
|
+
/**
|
|
12
|
+
* 24-hour vs 12-hour clock. `true` = 24h, `false` = 12h, `'auto'`
|
|
13
|
+
* (default) derives from the resolved locale.
|
|
14
|
+
*/
|
|
15
|
+
use24Hour?: boolean | 'auto';
|
|
16
|
+
/**
|
|
17
|
+
* IANA zone to project the value into for display. Defaults to the value's
|
|
18
|
+
* own `timeZoneId` — set this to e.g. `'Europe/Vienna'` to render every
|
|
19
|
+
* row's instant in Vienna's wallclock.
|
|
20
|
+
*/
|
|
21
|
+
displayTimeZone?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Append the zone label (`'GMT+1'` / `'EST'` etc.) to the formatted
|
|
24
|
+
* output. Default `true`.
|
|
25
|
+
*/
|
|
26
|
+
showTimeZone?: boolean;
|
|
27
|
+
/** Text shown when `value` is `null` or not a `Temporal.ZonedDateTime`. */
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/** Font-size token — matches the form-input family. */
|
|
30
|
+
size?: CoarZonedDateTimeViewSize;
|
|
31
|
+
}
|
|
32
|
+
declare const _default: import('vue').DefineComponent<CoarZonedDateTimeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarZonedDateTimeViewProps> & Readonly<{}>, {
|
|
33
|
+
value: Temporal.ZonedDateTime | null;
|
|
34
|
+
placeholder: string;
|
|
35
|
+
size: CoarZonedDateTimeViewSize;
|
|
36
|
+
locale: string;
|
|
37
|
+
use24Hour: boolean | "auto";
|
|
38
|
+
dateFormat: DateFormatConfig;
|
|
39
|
+
displayTimeZone: string;
|
|
40
|
+
showTimeZone: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
42
|
+
export default _default;
|
|
43
|
+
//# sourceMappingURL=CoarZonedDateTimeView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarZonedDateTimeView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/zoned-date-time-view/CoarZonedDateTimeView.vue"],"names":[],"mappings":"AAyJA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE/D,MAAM,WAAW,0BAA0B;IACzC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IACtC,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,IAAI,CAAC,EAAE,yBAAyB,CAAC;CAClC;;WAzBS,QAAQ,CAAC,aAAa,GAAG,IAAI;iBAsBvB,MAAM;UAEb,yBAAyB;YAtBvB,MAAM;eAOH,OAAO,GAAG,MAAM;gBALf,gBAAgB;qBAWX,MAAM;kBAKT,OAAO;;AA8HxB,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/zoned-date-time-view/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarNumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/CoarNumberInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarNumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/CoarNumberInput.vue"],"names":[],"mappings":"AA+qBA,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACzD,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G;wBACH,GAAG;;;;;;EAgB9B;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;WAjfX,OAAO;cAFJ,OAAO;cAJP,OAAO;QAoBb,MAAM;UAEJ,MAAM;iBAlCC,MAAM;UAEb,mBAAmB;SAIpB,MAAM;cAQD,OAAO;eAMN,OAAO;YAIV,MAAM;YAEN,MAAM;SAtBT,MAAM;UAIL,MAAM;cAEF,MAAM;oBAYA,6BAA6B;YAMrC,MAAM;kBAEA,kBAAkB;;;kBA+ejC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export type CoarOtpInputSize = 'xs' | 's' | 'm' | 'l';
|
|
2
|
+
export type CoarOtpInputType = 'numeric' | 'alphanumeric' | 'text';
|
|
3
|
+
export interface CoarOtpInputProps {
|
|
4
|
+
/** Number of cells. Default 6 (most common: TOTP / SMS codes). */
|
|
5
|
+
length?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Character class accepted in each cell. `'numeric'` filters to
|
|
8
|
+
* `[0-9]` and sets `inputmode='numeric'`. `'alphanumeric'` allows
|
|
9
|
+
* `[A-Za-z0-9]`. `'text'` accepts anything (1 char per cell).
|
|
10
|
+
*/
|
|
11
|
+
type?: CoarOtpInputType;
|
|
12
|
+
/**
|
|
13
|
+
* Render cells as `<input type="password">` so the value is
|
|
14
|
+
* visually masked while still keyboard-accessible. Useful for
|
|
15
|
+
* PINs / sensitive codes.
|
|
16
|
+
*/
|
|
17
|
+
mask?: boolean;
|
|
18
|
+
/** Focus the first cell on mount. */
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
/** Cell size. Matches `CoarTextInput` sizing tokens. */
|
|
21
|
+
size?: CoarOtpInputSize;
|
|
22
|
+
/** Disables all cells. */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Makes all cells read-only. */
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
/** Marks the group as required. Picked up by `CoarFormField`. */
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/** Error state. Auto-injected from `CoarFormField` when present. */
|
|
29
|
+
error?: boolean;
|
|
30
|
+
/** Single-char placeholder shown in empty cells. */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/** HTML `id` for the first cell (and aria reference target). */
|
|
33
|
+
id?: string;
|
|
34
|
+
/** HTML `name` attribute prefix (each cell gets `${name}-${i}`). */
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* `autocomplete` value for the input cells. Default `'one-time-code'`
|
|
38
|
+
* so iOS / Android offer the SMS autofill chip when a code arrives.
|
|
39
|
+
*/
|
|
40
|
+
autocomplete?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Transform a single character before it's committed to its cell.
|
|
43
|
+
* Runs BEFORE the `type` check + `accept` filter, so the transformed
|
|
44
|
+
* char is what gets validated. Common uses:
|
|
45
|
+
* - `c => c.toUpperCase()` — auto-uppercase alphanumeric codes
|
|
46
|
+
* - `c => c.replace(/\s/, '')` — strip whitespace from pastes
|
|
47
|
+
* Return an empty string (or longer string) to drop the character.
|
|
48
|
+
*/
|
|
49
|
+
transform?: (char: string) => string;
|
|
50
|
+
/**
|
|
51
|
+
* Additional per-character accept predicate. Runs AFTER `type` and
|
|
52
|
+
* `transform`. Return `false` to reject the character. Use when the
|
|
53
|
+
* built-in `numeric` / `alphanumeric` / `text` classes are close but
|
|
54
|
+
* not quite right — e.g. block visually-ambiguous chars in claim
|
|
55
|
+
* codes: `c => !/[O0lI1]/.test(c)`.
|
|
56
|
+
*/
|
|
57
|
+
accept?: (char: string) => boolean;
|
|
58
|
+
}
|
|
59
|
+
type __VLS_Props = CoarOtpInputProps;
|
|
60
|
+
type __VLS_PublicProps = {
|
|
61
|
+
modelValue?: string;
|
|
62
|
+
} & __VLS_Props;
|
|
63
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
focused: (event: FocusEvent) => any;
|
|
65
|
+
blurred: (event: FocusEvent) => any;
|
|
66
|
+
"update:modelValue": (value: string) => any;
|
|
67
|
+
complete: (value: string) => any;
|
|
68
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
69
|
+
onFocused?: ((event: FocusEvent) => any) | undefined;
|
|
70
|
+
onBlurred?: ((event: FocusEvent) => any) | undefined;
|
|
71
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
72
|
+
onComplete?: ((value: string) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
length: number;
|
|
75
|
+
error: boolean;
|
|
76
|
+
mask: boolean;
|
|
77
|
+
required: boolean;
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
id: string;
|
|
80
|
+
type: CoarOtpInputType;
|
|
81
|
+
name: string;
|
|
82
|
+
placeholder: string;
|
|
83
|
+
size: CoarOtpInputSize;
|
|
84
|
+
readonly: boolean;
|
|
85
|
+
autocomplete: string;
|
|
86
|
+
autoFocus: boolean;
|
|
87
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
88
|
+
cellRefs: HTMLInputElement[];
|
|
89
|
+
}, HTMLDivElement>;
|
|
90
|
+
export default _default;
|
|
91
|
+
//# sourceMappingURL=CoarOtpInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarOtpInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/otp-input/CoarOtpInput.vue"],"names":[],"mappings":"AA4iBA,MAAM,MAAM,gBAAgB,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