@molecule/app-settings-panel-angular 0.0.0-stage → 0.0.1-stage
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/LICENSE +202 -0
- package/README.md +1992 -2
- package/dist/account-section.component.d.ts +123 -0
- package/dist/account-section.component.d.ts.map +1 -0
- package/dist/account-section.component.js +350 -0
- package/dist/account-section.component.js.map +1 -0
- package/dist/appearance-section.component.d.ts +52 -0
- package/dist/appearance-section.component.d.ts.map +1 -0
- package/dist/appearance-section.component.js +128 -0
- package/dist/appearance-section.component.js.map +1 -0
- package/dist/auth-section.component.d.ts +125 -0
- package/dist/auth-section.component.d.ts.map +1 -0
- package/dist/auth-section.component.js +667 -0
- package/dist/auth-section.component.js.map +1 -0
- package/dist/billing-section.component.d.ts +52 -0
- package/dist/billing-section.component.d.ts.map +1 -0
- package/dist/billing-section.component.js +137 -0
- package/dist/billing-section.component.js.map +1 -0
- package/dist/context.d.ts +46 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +73 -0
- package/dist/context.js.map +1 -0
- package/dist/controlled-switch.d.ts +38 -0
- package/dist/controlled-switch.d.ts.map +1 -0
- package/dist/controlled-switch.js +56 -0
- package/dist/controlled-switch.js.map +1 -0
- package/dist/devices-section.component.d.ts +88 -0
- package/dist/devices-section.component.d.ts.map +1 -0
- package/dist/devices-section.component.js +374 -0
- package/dist/devices-section.component.js.map +1 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +107 -0
- package/dist/index.js.map +1 -0
- package/dist/log-out-delete-section.component.d.ts +50 -0
- package/dist/log-out-delete-section.component.d.ts.map +1 -0
- package/dist/log-out-delete-section.component.js +249 -0
- package/dist/log-out-delete-section.component.js.map +1 -0
- package/dist/notifications-section.component.d.ts +78 -0
- package/dist/notifications-section.component.d.ts.map +1 -0
- package/dist/notifications-section.component.js +256 -0
- package/dist/notifications-section.component.js.map +1 -0
- package/dist/push-toggle.d.ts +12 -0
- package/dist/push-toggle.d.ts.map +1 -0
- package/dist/push-toggle.js +11 -0
- package/dist/push-toggle.js.map +1 -0
- package/dist/settings-container.component.d.ts +33 -0
- package/dist/settings-container.component.d.ts.map +1 -0
- package/dist/settings-container.component.js +64 -0
- package/dist/settings-container.component.js.map +1 -0
- package/dist/this-device-section.component.d.ts +40 -0
- package/dist/this-device-section.component.d.ts.map +1 -0
- package/dist/this-device-section.component.js +149 -0
- package/dist/this-device-section.component.js.map +1 -0
- package/dist/tiers-upgrade-section.component.d.ts +89 -0
- package/dist/tiers-upgrade-section.component.d.ts.map +1 -0
- package/dist/tiers-upgrade-section.component.js +407 -0
- package/dist/tiers-upgrade-section.component.js.map +1 -0
- package/dist/types.d.ts +46 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +78 -4
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppearanceSection component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component, computed, effect, ElementRef, untracked, ViewChild, } from '@angular/core';
|
|
7
|
+
import { useTheme, useTranslation } from '@molecule/app-angular';
|
|
8
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { Flex, Switch } from '@molecule/app-ui-angular';
|
|
10
|
+
import { ControlledSwitchSync } from './controlled-switch.js';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
const _c0 = ["themeSwitch"];
|
|
13
|
+
const _c1 = () => ({ defaultValue: "Appearance" });
|
|
14
|
+
const _c2 = () => ({ defaultValue: "Dark mode" });
|
|
15
|
+
const _c3 = () => ({ defaultValue: "Toggle theme" });
|
|
16
|
+
/**
|
|
17
|
+
* AppearanceSection component.
|
|
18
|
+
*
|
|
19
|
+
* Appearance section — dark-mode toggle wired to the theme bond. The host IS
|
|
20
|
+
* the `<section>` React renders.
|
|
21
|
+
*
|
|
22
|
+
* Apps that expose other appearance knobs (font size, density, etc.) can
|
|
23
|
+
* either add more sub-components to this package or render their own section
|
|
24
|
+
* in line with this one.
|
|
25
|
+
*
|
|
26
|
+
* The `id` / `aria-label` rest props of React's `<Switch>` are host
|
|
27
|
+
* attributes here: the UI `Switch` moves host attributes onto its visible
|
|
28
|
+
* trigger on every check, so the label follows the locale the same way. The
|
|
29
|
+
* controlled `checked` is re-synced by an effect (React re-renders the hidden
|
|
30
|
+
* checkbox's property; see {@link ControlledSwitchSync}).
|
|
31
|
+
*/
|
|
32
|
+
export class AppearanceSection {
|
|
33
|
+
/** The theme bond's state and actions. */
|
|
34
|
+
theme = useTheme();
|
|
35
|
+
/** Reactive translation, read in the injection context. */
|
|
36
|
+
i18n = useTranslation();
|
|
37
|
+
/** The translation function for the template. */
|
|
38
|
+
t = this.i18n.t;
|
|
39
|
+
/** Whether the dark mode is on (React's `mode === 'dark'`). */
|
|
40
|
+
isDark = computed(() => this.theme.mode() === 'dark', /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "isDark" }] : /* istanbul ignore next */ []));
|
|
42
|
+
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
43
|
+
cm = getClassMap();
|
|
44
|
+
/** The theme switch's host element (the hidden checkbox lives inside). */
|
|
45
|
+
themeSwitch;
|
|
46
|
+
/** The controlled-`checked` sync (created once the host exists). */
|
|
47
|
+
sync;
|
|
48
|
+
/** Re-syncs the switch's hidden checkbox whenever the mode changes. */
|
|
49
|
+
constructor() {
|
|
50
|
+
effect(() => {
|
|
51
|
+
const checked = this.isDark();
|
|
52
|
+
untracked(() => this.runSync(checked));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/** Captures the mount-time attribute state (hooks run on the mount passes). */
|
|
56
|
+
ngAfterViewInit() {
|
|
57
|
+
this.runSync(this.isDark());
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Runs the controlled-`checked` sync once the switch host exists.
|
|
61
|
+
* @param checked - The controlled value this render shows.
|
|
62
|
+
*/
|
|
63
|
+
runSync(checked) {
|
|
64
|
+
if (!this.sync && this.themeSwitch) {
|
|
65
|
+
this.sync = new ControlledSwitchSync(this.themeSwitch.nativeElement);
|
|
66
|
+
}
|
|
67
|
+
this.sync?.sync(checked);
|
|
68
|
+
}
|
|
69
|
+
static ɵfac = function AppearanceSection_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppearanceSection)(); };
|
|
70
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AppearanceSection, selectors: [["section", "mol-settings-appearance", ""]], viewQuery: function AppearanceSection_Query(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵviewQuery(_c0, 5, ElementRef);
|
|
72
|
+
} if (rf & 2) {
|
|
73
|
+
let _t;
|
|
74
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.themeSwitch = _t.first);
|
|
75
|
+
} }, decls: 7, vars: 14, consts: [["themeSwitch", ""], ["mol-flex", "", 3, "align", "justify"], ["id", "settings-theme-toggle", 3, "change", "checked", "size"]], template: function AppearanceSection_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0.ɵɵelementStart(0, "h3");
|
|
77
|
+
i0.ɵɵtext(1);
|
|
78
|
+
i0.ɵɵelementEnd();
|
|
79
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "span");
|
|
80
|
+
i0.ɵɵtext(4);
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
i0.ɵɵelementStart(5, "mol-switch", 2, 0);
|
|
83
|
+
i0.ɵɵlistener("change", function AppearanceSection_Template_mol_switch_change_5_listener() { return ctx.theme.toggleTheme(); });
|
|
84
|
+
i0.ɵɵelementEnd()();
|
|
85
|
+
} if (rf & 2) {
|
|
86
|
+
i0.ɵɵclassMap(ctx.cm.cn(ctx.cm.sectionHeading, ctx.cm.sp("mb", 3)));
|
|
87
|
+
i0.ɵɵadvance();
|
|
88
|
+
i0.ɵɵtextInterpolate1(" ", ctx.t("settings.appearance", undefined, i0.ɵɵpureFunction0(11, _c1)), " ");
|
|
89
|
+
i0.ɵɵadvance();
|
|
90
|
+
i0.ɵɵproperty("align", "center")("justify", "between");
|
|
91
|
+
i0.ɵɵadvance();
|
|
92
|
+
i0.ɵɵclassMap(ctx.cm.textSize("sm"));
|
|
93
|
+
i0.ɵɵadvance();
|
|
94
|
+
i0.ɵɵtextInterpolate(ctx.t("settings.darkMode", undefined, i0.ɵɵpureFunction0(12, _c2)));
|
|
95
|
+
i0.ɵɵadvance();
|
|
96
|
+
i0.ɵɵproperty("checked", ctx.isDark())("size", "sm");
|
|
97
|
+
i0.ɵɵattribute("aria-label", ctx.t("theme.toggle", undefined, i0.ɵɵpureFunction0(13, _c3)));
|
|
98
|
+
} }, dependencies: [Flex, Switch], encapsulation: 2 });
|
|
99
|
+
}
|
|
100
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppearanceSection, [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: 'section[mol-settings-appearance]',
|
|
104
|
+
standalone: true,
|
|
105
|
+
imports: [Flex, Switch],
|
|
106
|
+
template: `<h3 [class]="cm.cn(cm.sectionHeading, cm.sp('mb', 3))">
|
|
107
|
+
{{ t('settings.appearance', undefined, { defaultValue: 'Appearance' }) }}
|
|
108
|
+
</h3>
|
|
109
|
+
<div mol-flex [align]="'center'" [justify]="'between'">
|
|
110
|
+
<span [class]="cm.textSize('sm')">{{
|
|
111
|
+
t('settings.darkMode', undefined, { defaultValue: 'Dark mode' })
|
|
112
|
+
}}</span>
|
|
113
|
+
<mol-switch
|
|
114
|
+
#themeSwitch
|
|
115
|
+
id="settings-theme-toggle"
|
|
116
|
+
[attr.aria-label]="t('theme.toggle', undefined, { defaultValue: 'Toggle theme' })"
|
|
117
|
+
[checked]="isDark()"
|
|
118
|
+
(change)="theme.toggleTheme()"
|
|
119
|
+
[size]="'sm'"
|
|
120
|
+
></mol-switch>
|
|
121
|
+
</div>`,
|
|
122
|
+
}]
|
|
123
|
+
}], () => [], { themeSwitch: [{
|
|
124
|
+
type: ViewChild,
|
|
125
|
+
args: ['themeSwitch', { read: ElementRef }]
|
|
126
|
+
}] }); })();
|
|
127
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AppearanceSection, { className: "AppearanceSection", filePath: "appearance-section.component.ts", lineNumber: 61 }); })();
|
|
128
|
+
//# sourceMappingURL=appearance-section.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance-section.component.js","sourceRoot":"","sources":["../src/appearance-section.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;;;;;;AAE7D;;;;;;;;;;;;;;;GAeG;AAsBH,MAAM,OAAO,iBAAiB;IAC5B,0CAA0C;IACvB,KAAK,GAAG,QAAQ,EAAE,CAAA;IAErC,2DAA2D;IACxC,IAAI,GAAG,cAAc,EAAE,CAAA;IAE1C,iDAAiD;IACvC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAEzB,+DAA+D;IAC5C,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,MAAM;+EAAC,CAAA;IAExE,mEAAmE;IAChD,EAAE,GAAe,WAAW,EAAE,CAAA;IAEjD,0EAA0E;IA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vB,QAAQ,EAAE;;;;;;;;;;;;;;;WAeD;aACV;;kBAkBE,SAAS;mBAAC,aAAa,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFAjBnC,iBAAiB"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { UserProfile } from '@molecule/app-auth';
|
|
2
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** The two-factor enrollment data `POST /users/:id/verify-two-factor` returns. */
|
|
5
|
+
interface TwoFactorSetup {
|
|
6
|
+
QRImageUrl?: string;
|
|
7
|
+
keyUrl?: string;
|
|
8
|
+
secret?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* AuthSection component.
|
|
12
|
+
*
|
|
13
|
+
* Authentication section — change password (modal) + two-factor (TOTP) setup.
|
|
14
|
+
* React's root is a fragment (the `<section>` plus two modals), so the host is
|
|
15
|
+
* unwrapped by the DOM normalizer and `display: contents` keeps the layout
|
|
16
|
+
* fragment-like; an OAuth-only user renders NOTHING (React's `return null`).
|
|
17
|
+
*
|
|
18
|
+
* Two-factor uses the real enrollment flow against the user resource's
|
|
19
|
+
* `POST /users/:id/verify-two-factor` endpoint (`@molecule/api-two-factor`):
|
|
20
|
+
* - Enable → `{action:'setup'}` returns a QR code + secret to scan into an
|
|
21
|
+
* authenticator app → user enters the 6-digit code → `{action:'enable', token}`.
|
|
22
|
+
* - Disable → user enters a current code → `{action:'disable', token}`.
|
|
23
|
+
* The current status is read from `/users/me`. (This replaces the previous
|
|
24
|
+
* boolean toggle, which PATCHed `twoFactorEnabled` — a field the update
|
|
25
|
+
* handler deliberately ignores — so it never actually enrolled 2FA.)
|
|
26
|
+
*
|
|
27
|
+
* Auto-hides for OAuth-only users (`user.oauthServer` truthy) since
|
|
28
|
+
* password / 2FA wouldn't apply. If the app's API has no two-factor
|
|
29
|
+
* provider bonded, setup fails gracefully with an inline message.
|
|
30
|
+
*
|
|
31
|
+
* `useChangePassword`'s state is a live getter over a plain object (the
|
|
32
|
+
* Angular binding's `usePromise` port), so the pending/error reads are
|
|
33
|
+
* mediated by a version signal the handlers bump at React's re-render points.
|
|
34
|
+
*/
|
|
35
|
+
export declare class AuthSection {
|
|
36
|
+
/** The signed-in user (React's `useAuth().user`). */
|
|
37
|
+
protected readonly auth: import("@molecule/app-angular").UseAuthResult<UserProfile, Record<never, never>>;
|
|
38
|
+
/** Reactive translation, read in the injection context. */
|
|
39
|
+
protected readonly i18n: import("@molecule/app-angular").UseTranslationResult;
|
|
40
|
+
/** The translation function for the template. */
|
|
41
|
+
protected t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
|
|
42
|
+
private readonly http;
|
|
43
|
+
/** The change-password flow's live state and action. */
|
|
44
|
+
private readonly pw;
|
|
45
|
+
/** Whether the change-password modal is open. */
|
|
46
|
+
protected readonly showPasswordModal: import("@angular/core").WritableSignal<boolean>;
|
|
47
|
+
/** The current-password field's value. */
|
|
48
|
+
protected readonly currentPassword: import("@angular/core").WritableSignal<string>;
|
|
49
|
+
/** The new-password field's value. */
|
|
50
|
+
protected readonly newPassword: import("@angular/core").WritableSignal<string>;
|
|
51
|
+
/** Whether two-factor is enabled (read from `/users/me`). */
|
|
52
|
+
protected readonly twoFactorEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
53
|
+
/** The open two-factor modal: `'enable'`, `'disable'` or null. */
|
|
54
|
+
protected readonly tfModal: import("@angular/core").WritableSignal<"enable" | "disable" | null>;
|
|
55
|
+
/** The enrollment setup data (QR image + secret). */
|
|
56
|
+
protected readonly tfSetup: import("@angular/core").WritableSignal<TwoFactorSetup | null>;
|
|
57
|
+
/** The two-factor code field's value. */
|
|
58
|
+
protected readonly tfToken: import("@angular/core").WritableSignal<string>;
|
|
59
|
+
/** Whether a two-factor request is running. */
|
|
60
|
+
protected readonly tfLoading: import("@angular/core").WritableSignal<boolean>;
|
|
61
|
+
/** The two-factor modal's error message. */
|
|
62
|
+
protected readonly tfError: import("@angular/core").WritableSignal<string>;
|
|
63
|
+
/** React's re-render points for `useChangePassword`'s plain state object. */
|
|
64
|
+
private readonly pwVersion;
|
|
65
|
+
/** The change-password flow's pending state (version-mediated). */
|
|
66
|
+
protected readonly pwStatus: import("@angular/core").Signal<import("@molecule/app-utilities").PromiseStatus>;
|
|
67
|
+
/** The change-password flow's error (version-mediated). */
|
|
68
|
+
protected readonly pwError: import("@angular/core").Signal<string | null>;
|
|
69
|
+
private readonly twoFactorRead;
|
|
70
|
+
/** The bonded ClassMap (styling tokens resolve at render time). */
|
|
71
|
+
protected readonly cm: UIClassMap;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the signed-in user is OAuth-only (the section renders nothing).
|
|
74
|
+
* @returns True when the user's `oauthServer` is truthy.
|
|
75
|
+
*/
|
|
76
|
+
protected isOauthOnly(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* The two-factor modal's title (React's ternary).
|
|
79
|
+
* @returns The title text.
|
|
80
|
+
*/
|
|
81
|
+
protected tfTitle(): string;
|
|
82
|
+
/**
|
|
83
|
+
* Reads the persisted 2FA status from `/users/me` on mount (React's mount
|
|
84
|
+
* effect); status read is best-effort and defaults to disabled. A result
|
|
85
|
+
* that lands after unmount is dropped like React's cancelled one.
|
|
86
|
+
*/
|
|
87
|
+
constructor();
|
|
88
|
+
/**
|
|
89
|
+
* Closes the change-password modal (React's `onClose`): hides it and
|
|
90
|
+
* returns the change-password flow to idle.
|
|
91
|
+
*/
|
|
92
|
+
protected closePasswordModal(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Opens the disable-two-factor modal (React's disable button handler).
|
|
95
|
+
*/
|
|
96
|
+
protected openDisableTf(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Starts the two-factor enrollment (React's `startEnable`): fetches the QR
|
|
99
|
+
* setup and opens the enable modal.
|
|
100
|
+
*/
|
|
101
|
+
protected startEnable(): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Submits the two-factor code (React's `submitTf`).
|
|
104
|
+
* @param action - Whether the code enables or disables two-factor.
|
|
105
|
+
*/
|
|
106
|
+
private submitTf;
|
|
107
|
+
/**
|
|
108
|
+
* The two-factor modal form's submit (React's inline onSubmit).
|
|
109
|
+
* @param event - The native submit event.
|
|
110
|
+
*/
|
|
111
|
+
protected submitTfForm(event: Event): void;
|
|
112
|
+
/**
|
|
113
|
+
* Closes the two-factor modal (React's `closeTf`).
|
|
114
|
+
*/
|
|
115
|
+
protected closeTf(): void;
|
|
116
|
+
/**
|
|
117
|
+
* Submits the change-password form (React's `handleChangePassword`).
|
|
118
|
+
* @param event - The native submit event.
|
|
119
|
+
*/
|
|
120
|
+
protected submitPassword(event: Event): Promise<void>;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthSection, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthSection, "mol-auth-section", never, {}, {}, never, never, true, never>;
|
|
123
|
+
}
|
|
124
|
+
export {};
|
|
125
|
+
//# sourceMappingURL=auth-section.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-section.component.d.ts","sourceRoot":"","sources":["../src/auth-section.component.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAIlD,kFAAkF;AAClF,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAqKa,WAAW;IACtB,qDAAqD;IACrD,SAAS,CAAC,QAAQ,CAAC,IAAI,mFAAyB;IAEhD,2DAA2D;IAC3D,SAAS,CAAC,QAAQ,CAAC,IAAI,uDAAmB;I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