@orechio/platform-angular 0.5.0 → 0.6.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/fesm2022/orechio-platform-angular-account-account-client-mPl0tzMg.mjs +56 -0
- package/fesm2022/orechio-platform-angular-account-account-client-mPl0tzMg.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account-forgot-password.page-5_8R5B4m.mjs +136 -0
- package/fesm2022/orechio-platform-angular-account-forgot-password.page-5_8R5B4m.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account-initial-branch.page-Cmy07JGF.mjs +121 -0
- package/fesm2022/orechio-platform-angular-account-initial-branch.page-Cmy07JGF.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account-resend-verification.page-qckKAlPk.mjs +122 -0
- package/fesm2022/orechio-platform-angular-account-resend-verification.page-qckKAlPk.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account-token-password.page-AHqb8mFk.mjs +181 -0
- package/fesm2022/orechio-platform-angular-account-token-password.page-AHqb8mFk.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account-verify-email.page-CHs0EwDf.mjs +121 -0
- package/fesm2022/orechio-platform-angular-account-verify-email.page-CHs0EwDf.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular-account.mjs +106 -0
- package/fesm2022/orechio-platform-angular-account.mjs.map +1 -0
- package/fesm2022/orechio-platform-angular.mjs +62 -62
- package/fesm2022/orechio-platform-angular.mjs.map +1 -1
- package/package.json +5 -1
- package/types/orechio-platform-angular-account.d.ts +97 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, Injectable } from '@angular/core';
|
|
4
|
+
import { map, catchError, throwError } from 'rxjs';
|
|
5
|
+
import { normalizeProblemDetails } from '@orechio/platform-angular';
|
|
6
|
+
import { ORECHIO_ACCOUNT_CONFIG } from './orechio-platform-angular-account.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* O cliente do BFF de conta.
|
|
10
|
+
*
|
|
11
|
+
* <p>
|
|
12
|
+
* Fala só com o BFF do próprio host, same-origin — nunca com a Platform. É essa indireção
|
|
13
|
+
* que mantém o token fora do browser: o BFF recebe o par da Platform, entrega ao mecanismo
|
|
14
|
+
* de sessão, e devolve aqui apenas estado.
|
|
15
|
+
* </p>
|
|
16
|
+
*
|
|
17
|
+
* <p>
|
|
18
|
+
* Todo erro sai normalizado como <c>ProblemDetails</c>, reusando o
|
|
19
|
+
* <c>normalizeProblemDetails</c> do entry primário. Um segundo normalizador aqui divergiria
|
|
20
|
+
* do primeiro na primeira mudança de contrato.
|
|
21
|
+
* </p>
|
|
22
|
+
*/
|
|
23
|
+
class AccountClient {
|
|
24
|
+
http = inject(HttpClient);
|
|
25
|
+
config = inject(ORECHIO_ACCOUNT_CONFIG);
|
|
26
|
+
verifyEmail(token) {
|
|
27
|
+
return this.post(this.config.paths.verifyEmail, { token });
|
|
28
|
+
}
|
|
29
|
+
createInitialBranch(name) {
|
|
30
|
+
return this.post(this.config.paths.initialBranch, { name });
|
|
31
|
+
}
|
|
32
|
+
forgotPassword(email) {
|
|
33
|
+
return this.post(this.config.paths.forgotPassword, { email });
|
|
34
|
+
}
|
|
35
|
+
resetPassword(token, newPassword) {
|
|
36
|
+
return this.post(this.config.paths.resetPassword, { token, newPassword });
|
|
37
|
+
}
|
|
38
|
+
acceptInvite(token, password) {
|
|
39
|
+
return this.post(this.config.paths.acceptInvite, { token, password });
|
|
40
|
+
}
|
|
41
|
+
resendVerification(email) {
|
|
42
|
+
return this.post(this.config.paths.resendVerification, { email });
|
|
43
|
+
}
|
|
44
|
+
post(path, body) {
|
|
45
|
+
return this.http.post(`${this.config.basePath}${path}`, body).pipe(map((response) => response), catchError((error) => throwError(() => normalizeProblemDetails(error))));
|
|
46
|
+
}
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: AccountClient, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: AccountClient, providedIn: 'root' });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: AccountClient, decorators: [{
|
|
51
|
+
type: Injectable,
|
|
52
|
+
args: [{ providedIn: 'root' }]
|
|
53
|
+
}] });
|
|
54
|
+
|
|
55
|
+
export { AccountClient as A };
|
|
56
|
+
//# sourceMappingURL=orechio-platform-angular-account-account-client-mPl0tzMg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orechio-platform-angular-account-account-client-mPl0tzMg.mjs","sources":["../../../projects/platform-angular/account/src/account-client.ts"],"sourcesContent":["import { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { Observable, catchError, map, throwError } from 'rxjs';\nimport { ProblemDetails, normalizeProblemDetails } from '@orechio/platform-angular';\nimport { AccountCompletionResult, ORECHIO_ACCOUNT_CONFIG } from './account-config';\n\nexport interface VerifyEmailResult {\n status: string;\n provisioningRequired: boolean;\n}\n\n/** Resposta dos fluxos anti-enumeration. Opaca por desenho. */\nexport interface OpaqueAcknowledgement {\n message: string;\n}\n\n/**\n * O cliente do BFF de conta.\n *\n * <p>\n * Fala só com o BFF do próprio host, same-origin — nunca com a Platform. É essa indireção\n * que mantém o token fora do browser: o BFF recebe o par da Platform, entrega ao mecanismo\n * de sessão, e devolve aqui apenas estado.\n * </p>\n *\n * <p>\n * Todo erro sai normalizado como <c>ProblemDetails</c>, reusando o\n * <c>normalizeProblemDetails</c> do entry primário. Um segundo normalizador aqui divergiria\n * do primeiro na primeira mudança de contrato.\n * </p>\n */\n@Injectable({ providedIn: 'root' })\nexport class AccountClient {\n private readonly http = inject(HttpClient);\n private readonly config = inject(ORECHIO_ACCOUNT_CONFIG);\n\n verifyEmail(token: string): Observable<VerifyEmailResult> {\n return this.post<VerifyEmailResult>(this.config.paths.verifyEmail, { token });\n }\n\n createInitialBranch(name: string): Observable<AccountCompletionResult> {\n return this.post<AccountCompletionResult>(this.config.paths.initialBranch, { name });\n }\n\n forgotPassword(email: string): Observable<OpaqueAcknowledgement> {\n return this.post<OpaqueAcknowledgement>(this.config.paths.forgotPassword, { email });\n }\n\n resetPassword(token: string, newPassword: string): Observable<OpaqueAcknowledgement> {\n return this.post<OpaqueAcknowledgement>(this.config.paths.resetPassword, { token, newPassword });\n }\n\n acceptInvite(token: string, password: string): Observable<OpaqueAcknowledgement> {\n return this.post<OpaqueAcknowledgement>(this.config.paths.acceptInvite, { token, password });\n }\n\n resendVerification(email: string): Observable<OpaqueAcknowledgement> {\n return this.post<OpaqueAcknowledgement>(this.config.paths.resendVerification, { email });\n }\n\n private post<T>(path: string, body: unknown): Observable<T> {\n return this.http.post<T>(`${this.config.basePath}${path}`, body).pipe(\n map((response) => response as T),\n catchError((error: HttpErrorResponse) =>\n throwError((): ProblemDetails => normalizeProblemDetails(error)),\n ),\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;AAgBA;;;;;;;;;;;;;;AAcG;MAEU,aAAa,CAAA;AACP,IAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AACzB,IAAA,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAExD,IAAA,WAAW,CAAC,KAAa,EAAA;AACvB,QAAA,OAAO,IAAI,CAAC,IAAI,CAAoB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC;IAC/E;AAEA,IAAA,mBAAmB,CAAC,IAAY,EAAA;AAC9B,QAAA,OAAO,IAAI,CAAC,IAAI,CAA0B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC;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,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADA,MAAM,EAAA,CAAA;;2FACnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { A as AccountClient } from './orechio-platform-angular-account-account-client-mPl0tzMg.mjs';
|
|
6
|
+
|
|
7
|
+
class ForgotPasswordPage {
|
|
8
|
+
client = inject(AccountClient);
|
|
9
|
+
email = '';
|
|
10
|
+
enviando = signal(false, /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "enviando" }] : /* istanbul ignore next */ []));
|
|
12
|
+
enviado = signal(false, /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "enviado" }] : /* istanbul ignore next */ []));
|
|
14
|
+
erro = signal(null, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "erro" }] : /* istanbul ignore next */ []));
|
|
16
|
+
mensagemDeErro() {
|
|
17
|
+
const code = this.erro()?.code;
|
|
18
|
+
if (code === 'rate_limit_exceeded')
|
|
19
|
+
return 'Muitas tentativas. Aguarde alguns minutos.';
|
|
20
|
+
if (code === 'platform.unavailable')
|
|
21
|
+
return 'Serviço indisponível. Tente novamente em instantes.';
|
|
22
|
+
return 'Não foi possível enviar. Tente novamente.';
|
|
23
|
+
}
|
|
24
|
+
enviar() {
|
|
25
|
+
const email = this.email.trim();
|
|
26
|
+
if (!email || this.enviando())
|
|
27
|
+
return;
|
|
28
|
+
this.enviando.set(true);
|
|
29
|
+
this.erro.set(null);
|
|
30
|
+
this.client.forgotPassword(email).subscribe({
|
|
31
|
+
// Sucesso é sucesso, sem olhar o corpo: a resposta é opaca por desenho, e inspecioná-la
|
|
32
|
+
// para decidir o texto seria a porta dos fundos da enumeração.
|
|
33
|
+
next: () => {
|
|
34
|
+
this.enviado.set(true);
|
|
35
|
+
this.enviando.set(false);
|
|
36
|
+
},
|
|
37
|
+
error: (problema) => {
|
|
38
|
+
this.erro.set(problema);
|
|
39
|
+
this.enviando.set(false);
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ForgotPasswordPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: ForgotPasswordPage, isStandalone: true, selector: "orechio-account-forgot-password", ngImport: i0, template: `
|
|
45
|
+
<section class="orechio-account">
|
|
46
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
47
|
+
|
|
48
|
+
@if (enviado()) {
|
|
49
|
+
<h1>Verifique seu e-mail</h1>
|
|
50
|
+
<!--
|
|
51
|
+
O texto NÃO confirma que a conta existe, e isso é deliberado.
|
|
52
|
+
|
|
53
|
+
A Platform responde 202 idêntico para e-mail conhecido e desconhecido — defesa
|
|
54
|
+
anti-enumeration, provada byte a byte no ACCOUNT-1B. Uma tela que dissesse
|
|
55
|
+
"enviamos para você" só quando a conta existe desfaria a defesa na camada de cima:
|
|
56
|
+
bastaria comparar as duas telas para descobrir quem tem conta aqui.
|
|
57
|
+
-->
|
|
58
|
+
<p>Se houver uma conta com esse endereço, as instruções chegarão em instantes.</p>
|
|
59
|
+
<p class="orechio-account__muted">Confira também a caixa de spam.</p>
|
|
60
|
+
} @else {
|
|
61
|
+
<h1>Recuperar acesso</h1>
|
|
62
|
+
<p class="orechio-account__muted">Informe o e-mail da sua conta.</p>
|
|
63
|
+
|
|
64
|
+
<form (ngSubmit)="enviar()">
|
|
65
|
+
<label for="orechio-account-forgot-email">E-mail</label>
|
|
66
|
+
<input
|
|
67
|
+
id="orechio-account-forgot-email"
|
|
68
|
+
name="email"
|
|
69
|
+
type="email"
|
|
70
|
+
autocomplete="email"
|
|
71
|
+
[(ngModel)]="email"
|
|
72
|
+
[disabled]="enviando()"
|
|
73
|
+
required
|
|
74
|
+
/>
|
|
75
|
+
|
|
76
|
+
@if (erro()) {
|
|
77
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
<button type="submit" [disabled]="enviando() || !email.trim()">
|
|
81
|
+
{{ enviando() ? 'Enviando…' : 'Enviar instruções' }}
|
|
82
|
+
</button>
|
|
83
|
+
</form>
|
|
84
|
+
}
|
|
85
|
+
</section>
|
|
86
|
+
`, isInline: true, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
87
|
+
}
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ForgotPasswordPage, decorators: [{
|
|
89
|
+
type: Component,
|
|
90
|
+
args: [{ selector: 'orechio-account-forgot-password', standalone: true, imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
91
|
+
<section class="orechio-account">
|
|
92
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
93
|
+
|
|
94
|
+
@if (enviado()) {
|
|
95
|
+
<h1>Verifique seu e-mail</h1>
|
|
96
|
+
<!--
|
|
97
|
+
O texto NÃO confirma que a conta existe, e isso é deliberado.
|
|
98
|
+
|
|
99
|
+
A Platform responde 202 idêntico para e-mail conhecido e desconhecido — defesa
|
|
100
|
+
anti-enumeration, provada byte a byte no ACCOUNT-1B. Uma tela que dissesse
|
|
101
|
+
"enviamos para você" só quando a conta existe desfaria a defesa na camada de cima:
|
|
102
|
+
bastaria comparar as duas telas para descobrir quem tem conta aqui.
|
|
103
|
+
-->
|
|
104
|
+
<p>Se houver uma conta com esse endereço, as instruções chegarão em instantes.</p>
|
|
105
|
+
<p class="orechio-account__muted">Confira também a caixa de spam.</p>
|
|
106
|
+
} @else {
|
|
107
|
+
<h1>Recuperar acesso</h1>
|
|
108
|
+
<p class="orechio-account__muted">Informe o e-mail da sua conta.</p>
|
|
109
|
+
|
|
110
|
+
<form (ngSubmit)="enviar()">
|
|
111
|
+
<label for="orechio-account-forgot-email">E-mail</label>
|
|
112
|
+
<input
|
|
113
|
+
id="orechio-account-forgot-email"
|
|
114
|
+
name="email"
|
|
115
|
+
type="email"
|
|
116
|
+
autocomplete="email"
|
|
117
|
+
[(ngModel)]="email"
|
|
118
|
+
[disabled]="enviando()"
|
|
119
|
+
required
|
|
120
|
+
/>
|
|
121
|
+
|
|
122
|
+
@if (erro()) {
|
|
123
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
<button type="submit" [disabled]="enviando() || !email.trim()">
|
|
127
|
+
{{ enviando() ? 'Enviando…' : 'Enviar instruções' }}
|
|
128
|
+
</button>
|
|
129
|
+
</form>
|
|
130
|
+
}
|
|
131
|
+
</section>
|
|
132
|
+
`, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"] }]
|
|
133
|
+
}] });
|
|
134
|
+
|
|
135
|
+
export { ForgotPasswordPage };
|
|
136
|
+
//# sourceMappingURL=orechio-platform-angular-account-forgot-password.page-5_8R5B4m.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orechio-platform-angular-account-forgot-password.page-5_8R5B4m.mjs","sources":["../../../projects/platform-angular/account/src/pages/forgot-password.page.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ProblemDetails } from '@orechio/platform-angular';\nimport { AccountClient } from '../account-client';\n\n@Component({\n selector: 'orechio-account-forgot-password',\n standalone: true,\n imports: [FormsModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <section class=\"orechio-account\">\n <ng-content select=\"[orechioAccountBrand]\"></ng-content>\n\n @if (enviado()) {\n <h1>Verifique seu e-mail</h1>\n <!--\n O texto NÃO confirma que a conta existe, e isso é deliberado.\n\n A Platform responde 202 idêntico para e-mail conhecido e desconhecido — defesa\n anti-enumeration, provada byte a byte no ACCOUNT-1B. Uma tela que dissesse\n \"enviamos para você\" só quando a conta existe desfaria a defesa na camada de cima:\n bastaria comparar as duas telas para descobrir quem tem conta aqui.\n -->\n <p>Se houver uma conta com esse endereço, as instruções chegarão em instantes.</p>\n <p class=\"orechio-account__muted\">Confira também a caixa de spam.</p>\n } @else {\n <h1>Recuperar acesso</h1>\n <p class=\"orechio-account__muted\">Informe o e-mail da sua conta.</p>\n\n <form (ngSubmit)=\"enviar()\">\n <label for=\"orechio-account-forgot-email\">E-mail</label>\n <input\n id=\"orechio-account-forgot-email\"\n name=\"email\"\n type=\"email\"\n autocomplete=\"email\"\n [(ngModel)]=\"email\"\n [disabled]=\"enviando()\"\n required\n />\n\n @if (erro()) {\n <p class=\"orechio-account__error\">{{ mensagemDeErro() }}</p>\n }\n\n <button type=\"submit\" [disabled]=\"enviando() || !email.trim()\">\n {{ enviando() ? 'Enviando…' : 'Enviar instruções' }}\n </button>\n </form>\n }\n </section>\n `,\n styles: `\n .orechio-account {\n display: flex;\n flex-direction: column;\n gap: var(--orechio-space-3, 0.75rem);\n max-width: 28rem;\n margin: 0 auto;\n padding: var(--orechio-space-6, 1.5rem);\n color: var(--orechio-color-text, inherit);\n font-family: var(--orechio-font-body, inherit);\n }\n .orechio-account form { display: flex; flex-direction: column; gap: var(--orechio-space-2, 0.5rem); }\n .orechio-account__muted { color: var(--orechio-color-text-muted, #666); }\n .orechio-account__error { color: var(--orechio-color-danger, #b00020); }\n `,\n})\nexport class ForgotPasswordPage {\n private readonly client = inject(AccountClient);\n\n protected email = '';\n protected readonly enviando = signal(false);\n protected readonly enviado = signal(false);\n protected readonly erro = signal<ProblemDetails | null>(null);\n\n protected mensagemDeErro(): string {\n const code = this.erro()?.code;\n if (code === 'rate_limit_exceeded') return 'Muitas tentativas. Aguarde alguns minutos.';\n if (code === 'platform.unavailable') return 'Serviço indisponível. Tente novamente em instantes.';\n return 'Não foi possível enviar. Tente novamente.';\n }\n\n protected enviar(): void {\n const email = this.email.trim();\n if (!email || this.enviando()) return;\n\n this.enviando.set(true);\n this.erro.set(null);\n\n this.client.forgotPassword(email).subscribe({\n // Sucesso é sucesso, sem olhar o corpo: a resposta é opaca por desenho, e inspecioná-la\n // para decidir o texto seria a porta dos fundos da enumeração.\n next: () => {\n this.enviado.set(true);\n this.enviando.set(false);\n },\n error: (problema: ProblemDetails) => {\n this.erro.set(problema);\n this.enviando.set(false);\n },\n });\n }\n}\n"],"names":[],"mappings":";;;;;;MAqEa,kBAAkB,CAAA;AACZ,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAErC,KAAK,GAAG,EAAE;IACD,QAAQ,GAAG,MAAM,CAAC,KAAK;iFAAC;IACxB,OAAO,GAAG,MAAM,CAAC,KAAK;gFAAC;IACvB,IAAI,GAAG,MAAM,CAAwB,IAAI;6EAAC;IAEnD,cAAc,GAAA;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI;QAC9B,IAAI,IAAI,KAAK,qBAAqB;AAAE,YAAA,OAAO,4CAA4C;QACvF,IAAI,IAAI,KAAK,sBAAsB;AAAE,YAAA,OAAO,qDAAqD;AACjG,QAAA,OAAO,2CAA2C;IACpD;IAEU,MAAM,GAAA;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;AAC/B,QAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE;AAE/B,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,C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ject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { A as AccountClient } from './orechio-platform-angular-account-account-client-mPl0tzMg.mjs';
|
|
7
|
+
import { ORECHIO_ACCOUNT_CONFIG } from './orechio-platform-angular-account.mjs';
|
|
8
|
+
|
|
9
|
+
class InitialBranchPage {
|
|
10
|
+
router = inject(Router);
|
|
11
|
+
client = inject(AccountClient);
|
|
12
|
+
config = inject(ORECHIO_ACCOUNT_CONFIG);
|
|
13
|
+
rotulo = this.config.branchLabel;
|
|
14
|
+
nome = '';
|
|
15
|
+
enviando = signal(false, /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "enviando" }] : /* istanbul ignore next */ []));
|
|
17
|
+
erro = signal(null, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "erro" }] : /* istanbul ignore next */ []));
|
|
19
|
+
mensagemDeErro() {
|
|
20
|
+
const code = this.erro()?.code;
|
|
21
|
+
if (code === 'onboarding.branch_already_exists')
|
|
22
|
+
return `Esta ${this.rotulo} já foi criada.`;
|
|
23
|
+
if (code === 'session.missing')
|
|
24
|
+
return 'Sua sessão expirou. Abra o link do e-mail novamente.';
|
|
25
|
+
if (code === 'onboarding.not_in_provisioning')
|
|
26
|
+
return 'Este passo já foi concluído.';
|
|
27
|
+
if (code === 'rate_limit_exceeded')
|
|
28
|
+
return 'Muitas tentativas. Aguarde alguns minutos.';
|
|
29
|
+
if (code?.startsWith('branch.'))
|
|
30
|
+
return 'Escolha um nome válido.';
|
|
31
|
+
return 'Não foi possível concluir. Tente novamente.';
|
|
32
|
+
}
|
|
33
|
+
enviar() {
|
|
34
|
+
const nome = this.nome.trim();
|
|
35
|
+
if (!nome || this.enviando())
|
|
36
|
+
return;
|
|
37
|
+
this.enviando.set(true);
|
|
38
|
+
this.erro.set(null);
|
|
39
|
+
this.client.createInitialBranch(nome).subscribe({
|
|
40
|
+
next: async (resultado) => {
|
|
41
|
+
// O pacote entrega o resultado e sai. Quem decide para onde ir é o host —
|
|
42
|
+
// `nextStep` é repassado inteiro, sem interpretação (ADR-019 §3).
|
|
43
|
+
const destino = this.config.onCompleted(resultado);
|
|
44
|
+
await this.router.navigateByUrl(destino, { replaceUrl: true });
|
|
45
|
+
},
|
|
46
|
+
error: (problema) => {
|
|
47
|
+
this.erro.set(problema);
|
|
48
|
+
this.enviando.set(false);
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: InitialBranchPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: InitialBranchPage, isStandalone: true, selector: "orechio-account-initial-branch", ngImport: i0, template: `
|
|
54
|
+
<section class="orechio-account">
|
|
55
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
56
|
+
|
|
57
|
+
<h1>Configure sua primeira {{ rotulo }}</h1>
|
|
58
|
+
<p class="orechio-account__muted">
|
|
59
|
+
É onde seus lançamentos vão nascer. Dá para criar outras depois.
|
|
60
|
+
</p>
|
|
61
|
+
|
|
62
|
+
<form (ngSubmit)="enviar()">
|
|
63
|
+
<label for="orechio-account-branch-name">Nome da {{ rotulo }}</label>
|
|
64
|
+
<input
|
|
65
|
+
id="orechio-account-branch-name"
|
|
66
|
+
name="nome"
|
|
67
|
+
type="text"
|
|
68
|
+
autocomplete="organization"
|
|
69
|
+
[(ngModel)]="nome"
|
|
70
|
+
[disabled]="enviando()"
|
|
71
|
+
required
|
|
72
|
+
/>
|
|
73
|
+
|
|
74
|
+
@if (erro()) {
|
|
75
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
<button type="submit" [disabled]="enviando() || !nome.trim()">
|
|
79
|
+
{{ enviando() ? 'Criando…' : 'Concluir' }}
|
|
80
|
+
</button>
|
|
81
|
+
</form>
|
|
82
|
+
</section>
|
|
83
|
+
`, isInline: true, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: InitialBranchPage, decorators: [{
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{ selector: 'orechio-account-initial-branch', standalone: true, imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
88
|
+
<section class="orechio-account">
|
|
89
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
90
|
+
|
|
91
|
+
<h1>Configure sua primeira {{ rotulo }}</h1>
|
|
92
|
+
<p class="orechio-account__muted">
|
|
93
|
+
É onde seus lançamentos vão nascer. Dá para criar outras depois.
|
|
94
|
+
</p>
|
|
95
|
+
|
|
96
|
+
<form (ngSubmit)="enviar()">
|
|
97
|
+
<label for="orechio-account-branch-name">Nome da {{ rotulo }}</label>
|
|
98
|
+
<input
|
|
99
|
+
id="orechio-account-branch-name"
|
|
100
|
+
name="nome"
|
|
101
|
+
type="text"
|
|
102
|
+
autocomplete="organization"
|
|
103
|
+
[(ngModel)]="nome"
|
|
104
|
+
[disabled]="enviando()"
|
|
105
|
+
required
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
@if (erro()) {
|
|
109
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
<button type="submit" [disabled]="enviando() || !nome.trim()">
|
|
113
|
+
{{ enviando() ? 'Criando…' : 'Concluir' }}
|
|
114
|
+
</button>
|
|
115
|
+
</form>
|
|
116
|
+
</section>
|
|
117
|
+
`, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"] }]
|
|
118
|
+
}] });
|
|
119
|
+
|
|
120
|
+
export { InitialBranchPage };
|
|
121
|
+
//# sourceMappingURL=orechio-platform-angular-account-initial-branch.page-Cmy07JGF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orechio-platform-angular-account-initial-branch.page-Cmy07JGF.mjs","sources":["../../../projects/platform-angular/account/src/pages/initial-branch.page.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { ProblemDetails } from '@orechio/platform-angular';\nimport { AccountClient } from '../account-client';\nimport { ORECHIO_ACCOUNT_CONFIG } from '../account-config';\n\n@Component({\n selector: 'orechio-account-initial-branch',\n standalone: true,\n imports: [FormsModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <section class=\"orechio-account\">\n <ng-content select=\"[orechioAccountBrand]\"></ng-content>\n\n <h1>Configure sua primeira {{ rotulo }}</h1>\n <p class=\"orechio-account__muted\">\n É onde seus lançamentos vão nascer. Dá para criar outras depois.\n </p>\n\n <form (ngSubmit)=\"enviar()\">\n <label for=\"orechio-account-branch-name\">Nome da {{ rotulo }}</label>\n <input\n id=\"orechio-account-branch-name\"\n name=\"nome\"\n type=\"text\"\n autocomplete=\"organization\"\n [(ngModel)]=\"nome\"\n [disabled]=\"enviando()\"\n required\n />\n\n @if (erro()) {\n <p class=\"orechio-account__error\">{{ mensagemDeErro() }}</p>\n }\n\n <button type=\"submit\" [disabled]=\"enviando() || !nome.trim()\">\n {{ enviando() ? 'Criando…' : 'Concluir' }}\n </button>\n </form>\n </section>\n `,\n styles: `\n .orechio-account {\n display: flex;\n flex-direction: column;\n gap: var(--orechio-space-3, 0.75rem);\n max-width: 28rem;\n margin: 0 auto;\n padding: var(--orechio-space-6, 1.5rem);\n color: var(--orechio-color-text, inherit);\n font-family: var(--orechio-font-body, inherit);\n }\n .orechio-account form { display: flex; flex-direction: column; gap: var(--orechio-space-2, 0.5rem); }\n .orechio-account__muted { color: var(--orechio-color-text-muted, #666); }\n .orechio-account__error { color: var(--orechio-color-danger, #b00020); }\n `,\n})\nexport class InitialBranchPage {\n private readonly router = inject(Router);\n private readonly client = inject(AccountClient);\n private readonly config = inject(ORECHIO_ACCOUNT_CONFIG);\n\n protected readonly rotulo = this.config.branchLabel;\n protected nome = '';\n protected readonly enviando = signal(false);\n protected readonly erro = signal<ProblemDetails | null>(null);\n\n protected mensagemDeErro(): string {\n const code = this.erro()?.code;\n if (code === 'onboarding.branch_already_exists') return `Esta ${this.rotulo} já foi criada.`;\n if (code === 'session.missing') return 'Sua sessão expirou. Abra o link do e-mail novamente.';\n if (code === 'onboarding.not_in_provisioning') return 'Este passo já foi concluído.';\n if (code === 'rate_limit_exceeded') return 'Muitas tentativas. Aguarde alguns minutos.';\n if (code?.startsWith('branch.')) return 'Escolha um nome válido.';\n return 'Não foi possível concluir. Tente novamente.';\n }\n\n protected enviar(): void {\n const nome = this.nome.trim();\n if (!nome || this.enviando()) return;\n\n this.enviando.set(true);\n this.erro.set(null);\n\n this.client.createInitialBranch(nome).subscribe({\n next: async (resultado) => {\n // O pacote entrega o resultado e sai. Quem decide para onde ir é o host —\n // `nextStep` é repassado inteiro, sem interpretação (ADR-019 §3).\n const destino = this.config.onCompleted(resultado);\n await this.router.navigateByUrl(destino, { replaceUrl: true });\n },\n error: (problema: ProblemDetails) => {\n this.erro.set(problema);\n this.enviando.set(false);\n },\n });\n }\n}\n"],"names":[],"mappings":";;;;;;;;MA2Da,iBAAiB,CAAA;AACX,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AAC9B,IAAA,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAErC,IAAA,MAAM,GAAG,IAAI,CAAC,MAAM,CA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EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,yEAAA,EAAA,MAAA,EAAA,CAAA,eAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAiDV,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBApD7B,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,CAAC,EAAA,eAAA,EACL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,ydAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { A as AccountClient } from './orechio-platform-angular-account-account-client-mPl0tzMg.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Reenvio do e-mail de verificação. Mesma disciplina anti-enumeration do
|
|
9
|
+
* `forgot-password`: a resposta da Platform é opaca, e a tela não pode "melhorar" isso.
|
|
10
|
+
*/
|
|
11
|
+
class ResendVerificationPage {
|
|
12
|
+
client = inject(AccountClient);
|
|
13
|
+
email = '';
|
|
14
|
+
enviando = signal(false, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "enviando" }] : /* istanbul ignore next */ []));
|
|
16
|
+
enviado = signal(false, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "enviado" }] : /* istanbul ignore next */ []));
|
|
18
|
+
erro = signal(null, /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "erro" }] : /* istanbul ignore next */ []));
|
|
20
|
+
mensagemDeErro() {
|
|
21
|
+
const code = this.erro()?.code;
|
|
22
|
+
if (code === 'rate_limit_exceeded')
|
|
23
|
+
return 'Muitas tentativas. Aguarde alguns minutos.';
|
|
24
|
+
if (code === 'platform.unavailable')
|
|
25
|
+
return 'Serviço indisponível. Tente novamente em instantes.';
|
|
26
|
+
return 'Não foi possível reenviar. Tente novamente.';
|
|
27
|
+
}
|
|
28
|
+
enviar() {
|
|
29
|
+
const email = this.email.trim();
|
|
30
|
+
if (!email || this.enviando())
|
|
31
|
+
return;
|
|
32
|
+
this.enviando.set(true);
|
|
33
|
+
this.erro.set(null);
|
|
34
|
+
this.client.resendVerification(email).subscribe({
|
|
35
|
+
next: () => {
|
|
36
|
+
this.enviado.set(true);
|
|
37
|
+
this.enviando.set(false);
|
|
38
|
+
},
|
|
39
|
+
error: (problema) => {
|
|
40
|
+
this.erro.set(problema);
|
|
41
|
+
this.enviando.set(false);
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ResendVerificationPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: ResendVerificationPage, isStandalone: true, selector: "orechio-account-resend-verification", ngImport: i0, template: `
|
|
47
|
+
<section class="orechio-account">
|
|
48
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
49
|
+
|
|
50
|
+
@if (enviado()) {
|
|
51
|
+
<h1>Verifique seu e-mail</h1>
|
|
52
|
+
<p>Se houver um cadastro pendente com esse endereço, o link chegará em instantes.</p>
|
|
53
|
+
<p class="orechio-account__muted">Confira também a caixa de spam.</p>
|
|
54
|
+
} @else {
|
|
55
|
+
<h1>Reenviar confirmação</h1>
|
|
56
|
+
<p class="orechio-account__muted">Informe o e-mail usado no cadastro.</p>
|
|
57
|
+
|
|
58
|
+
<form (ngSubmit)="enviar()">
|
|
59
|
+
<label for="orechio-account-resend-email">E-mail</label>
|
|
60
|
+
<input
|
|
61
|
+
id="orechio-account-resend-email"
|
|
62
|
+
name="email"
|
|
63
|
+
type="email"
|
|
64
|
+
autocomplete="email"
|
|
65
|
+
[(ngModel)]="email"
|
|
66
|
+
[disabled]="enviando()"
|
|
67
|
+
required
|
|
68
|
+
/>
|
|
69
|
+
|
|
70
|
+
@if (erro()) {
|
|
71
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
<button type="submit" [disabled]="enviando() || !email.trim()">
|
|
75
|
+
{{ enviando() ? 'Enviando…' : 'Reenviar' }}
|
|
76
|
+
</button>
|
|
77
|
+
</form>
|
|
78
|
+
}
|
|
79
|
+
</section>
|
|
80
|
+
`, isInline: true, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: ResendVerificationPage, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ selector: 'orechio-account-resend-verification', standalone: true, imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
85
|
+
<section class="orechio-account">
|
|
86
|
+
<ng-content select="[orechioAccountBrand]"></ng-content>
|
|
87
|
+
|
|
88
|
+
@if (enviado()) {
|
|
89
|
+
<h1>Verifique seu e-mail</h1>
|
|
90
|
+
<p>Se houver um cadastro pendente com esse endereço, o link chegará em instantes.</p>
|
|
91
|
+
<p class="orechio-account__muted">Confira também a caixa de spam.</p>
|
|
92
|
+
} @else {
|
|
93
|
+
<h1>Reenviar confirmação</h1>
|
|
94
|
+
<p class="orechio-account__muted">Informe o e-mail usado no cadastro.</p>
|
|
95
|
+
|
|
96
|
+
<form (ngSubmit)="enviar()">
|
|
97
|
+
<label for="orechio-account-resend-email">E-mail</label>
|
|
98
|
+
<input
|
|
99
|
+
id="orechio-account-resend-email"
|
|
100
|
+
name="email"
|
|
101
|
+
type="email"
|
|
102
|
+
autocomplete="email"
|
|
103
|
+
[(ngModel)]="email"
|
|
104
|
+
[disabled]="enviando()"
|
|
105
|
+
required
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
@if (erro()) {
|
|
109
|
+
<p class="orechio-account__error">{{ mensagemDeErro() }}</p>
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
<button type="submit" [disabled]="enviando() || !email.trim()">
|
|
113
|
+
{{ enviando() ? 'Enviando…' : 'Reenviar' }}
|
|
114
|
+
</button>
|
|
115
|
+
</form>
|
|
116
|
+
}
|
|
117
|
+
</section>
|
|
118
|
+
`, styles: [".orechio-account{display:flex;flex-direction:column;gap:var(--orechio-space-3, .75rem);max-width:28rem;margin:0 auto;padding:var(--orechio-space-6, 1.5rem);color:var(--orechio-color-text, inherit);font-family:var(--orechio-font-body, inherit)}.orechio-account form{display:flex;flex-direction:column;gap:var(--orechio-space-2, .5rem)}.orechio-account__muted{color:var(--orechio-color-text-muted, #666)}.orechio-account__error{color:var(--orechio-color-danger, #b00020)}\n"] }]
|
|
119
|
+
}] });
|
|
120
|
+
|
|
121
|
+
export { ResendVerificationPage };
|
|
122
|
+
//# sourceMappingURL=orechio-platform-angular-account-resend-verification.page-qckKAlPk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orechio-platform-angular-account-resend-verification.page-qckKAlPk.mjs","sources":["../../../projects/platform-angular/account/src/pages/resend-verification.page.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ProblemDetails } from '@orechio/platform-angular';\nimport { AccountClient } from '../account-client';\n\n/**\n * Reenvio do e-mail de verificação. Mesma disciplina anti-enumeration do\n * `forgot-password`: a resposta da Platform é opaca, e a tela não pode \"melhorar\" isso.\n */\n@Component({\n selector: 'orechio-account-resend-verification',\n standalone: true,\n imports: [FormsModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <section class=\"orechio-account\">\n <ng-content select=\"[orechioAccountBrand]\"></ng-content>\n\n @if (enviado()) {\n <h1>Verifique seu e-mail</h1>\n <p>Se houver um cadastro pendente com esse endereço, o link chegará em instantes.</p>\n <p class=\"orechio-account__muted\">Confira também a caixa de spam.</p>\n } @else {\n <h1>Reenviar confirmação</h1>\n <p class=\"orechio-account__muted\">Informe o e-mail usado no cadastro.</p>\n\n <form (ngSubmit)=\"enviar()\">\n <label for=\"orechio-account-resend-email\">E-mail</label>\n <input\n id=\"orechio-account-resend-email\"\n name=\"email\"\n type=\"email\"\n autocomplete=\"email\"\n [(ngModel)]=\"email\"\n [disabled]=\"enviando()\"\n required\n />\n\n @if (erro()) {\n <p class=\"orechio-account__error\">{{ mensagemDeErro() }}</p>\n }\n\n <button type=\"submit\" [disabled]=\"enviando() || !email.trim()\">\n {{ enviando() ? 'Enviando…' : 'Reenviar' }}\n </button>\n </form>\n }\n </section>\n `,\n styles: `\n .orechio-account {\n display: flex;\n flex-direction: column;\n gap: var(--orechio-space-3, 0.75rem);\n max-width: 28rem;\n margin: 0 auto;\n padding: var(--orechio-space-6, 1.5rem);\n color: var(--orechio-color-text, inherit);\n font-family: var(--orechio-font-body, inherit);\n }\n .orechio-account form { display: flex; flex-direction: column; gap: var(--orechio-space-2, 0.5rem); }\n .orechio-account__muted { color: var(--orechio-color-text-muted, #666); }\n .orechio-account__error { color: var(--orechio-color-danger, #b00020); }\n `,\n})\nexport class ResendVerificationPage {\n private readonly client = inject(AccountClient);\n\n protected email = '';\n protected readonly enviando = signal(false);\n protected readonly enviado = signal(false);\n protected readonly erro = signal<ProblemDetails | null>(null);\n\n protected mensagemDeErro(): string {\n const code = this.erro()?.code;\n if (code === 'rate_limit_exceeded') return 'Muitas tentativas. Aguarde alguns minutos.';\n if (code === 'platform.unavailable') return 'Serviço indisponível. Tente novamente em instantes.';\n return 'Não foi possível reenviar. Tente novamente.';\n }\n\n protected enviar(): void {\n const email = this.email.trim();\n if (!email || this.enviando()) return;\n\n this.enviando.set(true);\n this.erro.set(null);\n\n this.client.resendVerification(email).subscribe({\n next: () => {\n this.enviado.set(true);\n this.enviando.set(false);\n },\n error: (problema: ProblemDetails) => {\n this.erro.set(problema);\n this.enviando.set(false);\n },\n });\n }\n}\n"],"names":[],"mappings":";;;;;;AAKA;;;AAGG;MAyDU,sBAAsB,CAAA;AAChB,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAErC,KAAK,GAAG,EAAE;IACD,QAAQ,GAAG,MAAM,CAAC,KAAK;iFAAC;IACxB,OAAO,GAAG,MAAM,CAAC,KAAK;gFAAC;IACvB,IAAI,GAAG,MAAM,CAAwB,IAAI;6EAAC;IAEnD,cAAc,GAAA;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI;QAC9B,IAAI,IAAI,KAAK,qBAAqB;AAAE,YAAA,OAAO,4CAA4C;QACvF,IAAI,IAAI,KAAK,sBAAsB;AAAE,YAAA,OAAO,qDAAqD;AACjG,QAAA,OAAO,6CAA6C;IACtD;IAEU,MAAM,GAAA;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;AAC/B,QAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE;AAE/B,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QAEnB,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC;YAC9C,IAAI,EA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