@wodira/browser 0.1.0 → 0.3.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/CHANGELOG.md +14 -0
- package/README.md +210 -17
- package/dist/index.cjs +33 -5
- package/dist/index.d.ts +50 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -4
- package/dist/types.d.ts +56 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/ui/boxes/cdn.d.ts +2 -0
- package/dist/ui/boxes/cdn.d.ts.map +1 -0
- package/dist/ui/boxes/cdn.js +743 -0
- package/dist/ui/boxes/client.d.ts +30 -0
- package/dist/ui/boxes/client.d.ts.map +1 -0
- package/dist/ui/boxes/components.d.ts +246 -0
- package/dist/ui/boxes/components.d.ts.map +1 -0
- package/dist/ui/boxes/i18n.d.ts +107 -0
- package/dist/ui/boxes/i18n.d.ts.map +1 -0
- package/dist/ui/boxes/index.d.ts +16 -0
- package/dist/ui/boxes/index.d.ts.map +1 -0
- package/dist/ui/boxes/index.js +3071 -0
- package/dist/ui/boxes/styles.d.ts +2 -0
- package/dist/ui/boxes/styles.d.ts.map +1 -0
- package/dist/ui/boxes/types.d.ts +105 -0
- package/dist/ui/boxes/types.d.ts.map +1 -0
- package/dist/ui/components.d.ts +158 -4
- package/dist/ui/components.d.ts.map +1 -1
- package/dist/ui/events.d.ts +1 -1
- package/dist/ui/events.d.ts.map +1 -1
- package/dist/ui/i18n.d.ts +4 -1
- package/dist/ui/i18n.d.ts.map +1 -1
- package/dist/ui/index.d.ts +19 -3
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +9869 -610
- package/dist/ui/layout-styles.d.ts +3 -0
- package/dist/ui/layout-styles.d.ts.map +1 -0
- package/dist/ui/registration-eligibility.d.ts +52 -0
- package/dist/ui/registration-eligibility.d.ts.map +1 -0
- package/dist/ui/shirt-sponsors/cdn.d.ts +2 -0
- package/dist/ui/shirt-sponsors/cdn.d.ts.map +1 -0
- package/dist/ui/shirt-sponsors/cdn.js +83 -0
- package/dist/ui/shirt-sponsors/index.d.ts +9 -0
- package/dist/ui/shirt-sponsors/index.d.ts.map +1 -0
- package/dist/ui/shirt-sponsors/index.js +1669 -0
- package/dist/ui/shirt-sponsors/shirt-auction.d.ts +51 -0
- package/dist/ui/shirt-sponsors/shirt-auction.d.ts.map +1 -0
- package/dist/ui/signature-pad.d.ts +29 -0
- package/dist/ui/signature-pad.d.ts.map +1 -0
- package/dist/ui/styles.d.ts.map +1 -1
- package/dist/ui/theme.d.ts +63 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/validators.d.ts +1 -1
- package/dist/ui/validators.d.ts.map +1 -1
- package/package.json +33 -12
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type WodiraBrowserFetch } from '../../index.js';
|
|
2
|
+
import type { WodiraBoxCalendarResponse, WodiraBoxCreateFlowInput, WodiraBoxCreateFlowResponse, WodiraBoxPlansResponse, WodiraBoxTelemetryEvent, WodiraBoxTrialsResponse, WodiraBoxWidgetContext } from './types.js';
|
|
3
|
+
export interface WodiraBoxWidgetClientOptions {
|
|
4
|
+
publishableKey: string;
|
|
5
|
+
installationId: string;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
fetch?: WodiraBrowserFetch;
|
|
8
|
+
}
|
|
9
|
+
export declare class WodiraBoxWidgetClient {
|
|
10
|
+
private readonly options;
|
|
11
|
+
private readonly baseUrl;
|
|
12
|
+
private readonly prefix;
|
|
13
|
+
private readonly fetcher;
|
|
14
|
+
constructor(options: WodiraBoxWidgetClientOptions);
|
|
15
|
+
getContext(signal?: AbortSignal): Promise<WodiraBoxWidgetContext>;
|
|
16
|
+
getCalendar(from: Date, weeks?: number, signal?: AbortSignal): Promise<WodiraBoxCalendarResponse>;
|
|
17
|
+
getPlans(signal?: AbortSignal): Promise<WodiraBoxPlansResponse>;
|
|
18
|
+
getTrialClasses(signal?: AbortSignal): Promise<WodiraBoxTrialsResponse>;
|
|
19
|
+
createFlow(input: WodiraBoxCreateFlowInput, signal?: AbortSignal): Promise<WodiraBoxCreateFlowResponse>;
|
|
20
|
+
recordTelemetry(events: WodiraBoxTelemetryEvent[], signal?: AbortSignal): Promise<{
|
|
21
|
+
accepted: number;
|
|
22
|
+
}>;
|
|
23
|
+
verifyResult(resultToken: string, signal?: AbortSignal): Promise<{
|
|
24
|
+
verified: true;
|
|
25
|
+
completedAt: string | null;
|
|
26
|
+
}>;
|
|
27
|
+
private request;
|
|
28
|
+
}
|
|
29
|
+
export declare function createWodiraBoxWidgetClient(options: WodiraBoxWidgetClientOptions): WodiraBoxWidgetClient;
|
|
30
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/ui/boxes/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,4BAA4B;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,qBAAa,qBAAqB;IAKpB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YAA6B,OAAO,EAAE,4BAA4B,EAUjE;IAED,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,mCAE9B;IAED,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,SAAI,EAAE,MAAM,CAAC,EAAE,WAAW,sCAGtD;IAED,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,mCAE5B;IAED,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,oCAEnC;IAED,UAAU,CAAC,KAAK,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,WAAW,wCAM/D;IAED,eAAe,CAAC,MAAM,EAAE,uBAAuB,EAAE,EAAE,MAAM,CAAC,EAAE,WAAW;kBACrC,MAAM;OAKvC;IAED,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW;kBACpB,IAAI;qBAAe,MAAM,GAAG,IAAI;OAIjE;YAEa,OAAO;CAoCtB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,4BAA4B,yBAEhF"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { type WodiraBoxWidgetClient } from './client.js';
|
|
3
|
+
import type { WodiraBoxCalendarResponse, WodiraBoxClass, WodiraBoxFlowIntent, WodiraBoxPlansResponse, WodiraBoxTrialsResponse, WodiraBoxWidgetContext, WodiraBoxWidgetKind } from './types.js';
|
|
4
|
+
declare abstract class WodiraBoxElement extends LitElement {
|
|
5
|
+
static properties: {
|
|
6
|
+
publishableKey: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
attribute: string;
|
|
9
|
+
};
|
|
10
|
+
installationId: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
attribute: string;
|
|
13
|
+
};
|
|
14
|
+
baseUrl: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
attribute: string;
|
|
17
|
+
};
|
|
18
|
+
locale: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
context: {
|
|
22
|
+
state: boolean;
|
|
23
|
+
};
|
|
24
|
+
loading: {
|
|
25
|
+
state: boolean;
|
|
26
|
+
};
|
|
27
|
+
error: {
|
|
28
|
+
state: boolean;
|
|
29
|
+
};
|
|
30
|
+
resultMessage: {
|
|
31
|
+
state: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
static styles: import("lit").CSSResult[];
|
|
35
|
+
publishableKey: string;
|
|
36
|
+
installationId: string;
|
|
37
|
+
baseUrl: string;
|
|
38
|
+
locale: string;
|
|
39
|
+
context: WodiraBoxWidgetContext | null;
|
|
40
|
+
loading: boolean;
|
|
41
|
+
error: string;
|
|
42
|
+
resultMessage: string;
|
|
43
|
+
protected client: WodiraBoxWidgetClient | null;
|
|
44
|
+
private abortController;
|
|
45
|
+
private didInitialLoad;
|
|
46
|
+
private pendingResultToken;
|
|
47
|
+
constructor();
|
|
48
|
+
protected firstUpdated(): void;
|
|
49
|
+
disconnectedCallback(): void;
|
|
50
|
+
protected updated(changes: PropertyValues<this>): void;
|
|
51
|
+
protected abstract loadData(signal: AbortSignal): Promise<void>;
|
|
52
|
+
protected abstract widgetKind(): WodiraBoxWidgetKind;
|
|
53
|
+
protected refresh(): Promise<void>;
|
|
54
|
+
protected frame(title: string, body: TemplateResult): TemplateResult<1>;
|
|
55
|
+
protected classCard(entry: WodiraBoxClass, action: () => void): TemplateResult<1>;
|
|
56
|
+
protected emit(name: string, detail: Record<string, string>): void;
|
|
57
|
+
protected startFlow(intent: WodiraBoxFlowIntent, targetId: string, extra?: {
|
|
58
|
+
email?: string;
|
|
59
|
+
privacyAccepted?: true;
|
|
60
|
+
privacyVersion?: string;
|
|
61
|
+
website?: string;
|
|
62
|
+
}): Promise<void>;
|
|
63
|
+
protected telemetry(kind: 'IMPRESSION' | 'CLASS_SELECTED' | 'PLAN_SELECTED' | 'TRIAL_SELECTED', entityId?: string): Promise<void>;
|
|
64
|
+
protected syncStructuredData(value: Record<string, unknown>): void;
|
|
65
|
+
private consumeResult;
|
|
66
|
+
private verifyResultWithRetry;
|
|
67
|
+
}
|
|
68
|
+
export declare class WodiraBoxCalendar extends WodiraBoxElement {
|
|
69
|
+
static properties: {
|
|
70
|
+
publishableKey: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
attribute: string;
|
|
73
|
+
};
|
|
74
|
+
installationId: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
attribute: string;
|
|
77
|
+
};
|
|
78
|
+
baseUrl: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
attribute: string;
|
|
81
|
+
};
|
|
82
|
+
locale: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
};
|
|
85
|
+
context: {
|
|
86
|
+
state: boolean;
|
|
87
|
+
};
|
|
88
|
+
loading: {
|
|
89
|
+
state: boolean;
|
|
90
|
+
};
|
|
91
|
+
error: {
|
|
92
|
+
state: boolean;
|
|
93
|
+
};
|
|
94
|
+
resultMessage: {
|
|
95
|
+
state: boolean;
|
|
96
|
+
};
|
|
97
|
+
calendar: {
|
|
98
|
+
state: boolean;
|
|
99
|
+
};
|
|
100
|
+
week: {
|
|
101
|
+
state: boolean;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
calendar: WodiraBoxCalendarResponse | null;
|
|
105
|
+
week: number;
|
|
106
|
+
constructor();
|
|
107
|
+
protected widgetKind(): WodiraBoxWidgetKind;
|
|
108
|
+
protected loadData(signal: AbortSignal): Promise<void>;
|
|
109
|
+
private changeWeek;
|
|
110
|
+
private choose;
|
|
111
|
+
render(): TemplateResult<1>;
|
|
112
|
+
}
|
|
113
|
+
export declare class WodiraBoxPlans extends WodiraBoxElement {
|
|
114
|
+
static properties: {
|
|
115
|
+
publishableKey: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
attribute: string;
|
|
118
|
+
};
|
|
119
|
+
installationId: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
attribute: string;
|
|
122
|
+
};
|
|
123
|
+
baseUrl: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
attribute: string;
|
|
126
|
+
};
|
|
127
|
+
locale: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
};
|
|
130
|
+
context: {
|
|
131
|
+
state: boolean;
|
|
132
|
+
};
|
|
133
|
+
loading: {
|
|
134
|
+
state: boolean;
|
|
135
|
+
};
|
|
136
|
+
error: {
|
|
137
|
+
state: boolean;
|
|
138
|
+
};
|
|
139
|
+
resultMessage: {
|
|
140
|
+
state: boolean;
|
|
141
|
+
};
|
|
142
|
+
plans: {
|
|
143
|
+
state: boolean;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
plans: WodiraBoxPlansResponse | null;
|
|
147
|
+
constructor();
|
|
148
|
+
protected widgetKind(): WodiraBoxWidgetKind;
|
|
149
|
+
protected loadData(signal: AbortSignal): Promise<void>;
|
|
150
|
+
private choose;
|
|
151
|
+
render(): TemplateResult<1>;
|
|
152
|
+
}
|
|
153
|
+
export declare class WodiraBoxTrial extends WodiraBoxElement {
|
|
154
|
+
static properties: {
|
|
155
|
+
publishableKey: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
attribute: string;
|
|
158
|
+
};
|
|
159
|
+
installationId: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
attribute: string;
|
|
162
|
+
};
|
|
163
|
+
baseUrl: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
attribute: string;
|
|
166
|
+
};
|
|
167
|
+
locale: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
};
|
|
170
|
+
context: {
|
|
171
|
+
state: boolean;
|
|
172
|
+
};
|
|
173
|
+
loading: {
|
|
174
|
+
state: boolean;
|
|
175
|
+
};
|
|
176
|
+
error: {
|
|
177
|
+
state: boolean;
|
|
178
|
+
};
|
|
179
|
+
resultMessage: {
|
|
180
|
+
state: boolean;
|
|
181
|
+
};
|
|
182
|
+
trials: {
|
|
183
|
+
state: boolean;
|
|
184
|
+
};
|
|
185
|
+
selectedClassId: {
|
|
186
|
+
state: boolean;
|
|
187
|
+
};
|
|
188
|
+
email: {
|
|
189
|
+
state: boolean;
|
|
190
|
+
};
|
|
191
|
+
privacyAccepted: {
|
|
192
|
+
state: boolean;
|
|
193
|
+
};
|
|
194
|
+
submitting: {
|
|
195
|
+
state: boolean;
|
|
196
|
+
};
|
|
197
|
+
formError: {
|
|
198
|
+
state: boolean;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
trials: WodiraBoxTrialsResponse | null;
|
|
202
|
+
selectedClassId: string;
|
|
203
|
+
email: string;
|
|
204
|
+
privacyAccepted: boolean;
|
|
205
|
+
submitting: boolean;
|
|
206
|
+
formError: string;
|
|
207
|
+
constructor();
|
|
208
|
+
protected widgetKind(): WodiraBoxWidgetKind;
|
|
209
|
+
protected loadData(signal: AbortSignal): Promise<void>;
|
|
210
|
+
private submit;
|
|
211
|
+
render(): TemplateResult<1>;
|
|
212
|
+
}
|
|
213
|
+
export declare class WodiraBoxWidget extends LitElement {
|
|
214
|
+
static properties: {
|
|
215
|
+
publishableKey: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
attribute: string;
|
|
218
|
+
};
|
|
219
|
+
installationId: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
attribute: string;
|
|
222
|
+
};
|
|
223
|
+
baseUrl: {
|
|
224
|
+
type: StringConstructor;
|
|
225
|
+
attribute: string;
|
|
226
|
+
};
|
|
227
|
+
locale: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
};
|
|
230
|
+
active: {
|
|
231
|
+
state: boolean;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
static styles: import("lit").CSSResult[];
|
|
235
|
+
publishableKey: string;
|
|
236
|
+
installationId: string;
|
|
237
|
+
baseUrl: string;
|
|
238
|
+
locale: string;
|
|
239
|
+
active: 'calendar' | 'trial' | 'plans';
|
|
240
|
+
private readonly panelId;
|
|
241
|
+
constructor();
|
|
242
|
+
render(): TemplateResult<1>;
|
|
243
|
+
private navigateTabs;
|
|
244
|
+
}
|
|
245
|
+
export {};
|
|
246
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@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1C;IACD,UAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,iBAG3C;YACa,MAAM;IAiCX,MAAM,sBA8Ed;CACF;AAED,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,UAAU;QACf,cAAc;YAAI,IAAI;YAAU,SAAS;;QACzC,cAAc;YAAI,IAAI;YAAU,SAAS;;QACzC,OAAO;YAAI,IAAI;YAAU,SAAS;;QAClC,MAAM;YAAI,IAAI;;QACd,MAAM;YAAI,KAAK;;MACf;IACF,MAAM,CAAC,MAAM,4BAAyC;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IAC/C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,cAOC;IACQ,MAAM,sBAmCd;IAED,OAAO,CAAC,YAAY;CAsBrB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export type BoxWidgetLanguage = 'es' | 'en' | 'pt';
|
|
2
|
+
declare const copy: {
|
|
3
|
+
readonly es: {
|
|
4
|
+
readonly calendar: 'Horario de clases';
|
|
5
|
+
readonly trial: 'Prueba una clase';
|
|
6
|
+
readonly plans: 'Planes';
|
|
7
|
+
readonly previous: 'Semana anterior';
|
|
8
|
+
readonly next: 'Semana siguiente';
|
|
9
|
+
readonly reserve: 'Continuar';
|
|
10
|
+
readonly loading: 'Cargando…';
|
|
11
|
+
readonly empty: 'No hay opciones disponibles en estas fechas.';
|
|
12
|
+
readonly error: 'No pudimos cargar este contenido. Inténtalo de nuevo.';
|
|
13
|
+
readonly available: 'Disponible';
|
|
14
|
+
readonly last: 'Últimas plazas';
|
|
15
|
+
readonly waitlist: 'Lista de espera';
|
|
16
|
+
readonly full: 'Completa';
|
|
17
|
+
readonly coach: 'Coach';
|
|
18
|
+
readonly duration: 'min';
|
|
19
|
+
readonly free: 'Gratis';
|
|
20
|
+
readonly unlimited: 'Ilimitado';
|
|
21
|
+
readonly email: 'Tu email';
|
|
22
|
+
readonly privacy: 'Acepto la política de privacidad de WODira y del box.';
|
|
23
|
+
readonly trialCta: 'Continuar';
|
|
24
|
+
readonly chooseClass: 'Elige una clase';
|
|
25
|
+
readonly result: '¡Todo listo! Tu solicitud se ha completado.';
|
|
26
|
+
readonly powered: 'Tecnología de WODira';
|
|
27
|
+
readonly retry: 'Reintentar';
|
|
28
|
+
readonly per: 'por';
|
|
29
|
+
readonly credits: 'créditos';
|
|
30
|
+
readonly once: 'pago único';
|
|
31
|
+
readonly daily: 'diario';
|
|
32
|
+
readonly weekly: 'semanal';
|
|
33
|
+
readonly monthly: 'mensual';
|
|
34
|
+
readonly yearly: 'anual';
|
|
35
|
+
};
|
|
36
|
+
readonly en: {
|
|
37
|
+
readonly calendar: 'Class schedule';
|
|
38
|
+
readonly trial: 'Try a class';
|
|
39
|
+
readonly plans: 'Plans';
|
|
40
|
+
readonly previous: 'Previous week';
|
|
41
|
+
readonly next: 'Next week';
|
|
42
|
+
readonly reserve: 'Continue';
|
|
43
|
+
readonly loading: 'Loading…';
|
|
44
|
+
readonly empty: 'No options are available for these dates.';
|
|
45
|
+
readonly error: 'We could not load this content. Try again.';
|
|
46
|
+
readonly available: 'Available';
|
|
47
|
+
readonly last: 'Last spots';
|
|
48
|
+
readonly waitlist: 'Waitlist';
|
|
49
|
+
readonly full: 'Full';
|
|
50
|
+
readonly coach: 'Coach';
|
|
51
|
+
readonly duration: 'min';
|
|
52
|
+
readonly free: 'Free';
|
|
53
|
+
readonly unlimited: 'Unlimited';
|
|
54
|
+
readonly email: 'Your email';
|
|
55
|
+
readonly privacy: 'I accept WODira and the gym privacy policies.';
|
|
56
|
+
readonly trialCta: 'Continue';
|
|
57
|
+
readonly chooseClass: 'Choose a class';
|
|
58
|
+
readonly result: 'All set! Your request is complete.';
|
|
59
|
+
readonly powered: 'Powered by WODira';
|
|
60
|
+
readonly retry: 'Retry';
|
|
61
|
+
readonly per: 'per';
|
|
62
|
+
readonly credits: 'credits';
|
|
63
|
+
readonly once: 'one-time';
|
|
64
|
+
readonly daily: 'daily';
|
|
65
|
+
readonly weekly: 'weekly';
|
|
66
|
+
readonly monthly: 'monthly';
|
|
67
|
+
readonly yearly: 'yearly';
|
|
68
|
+
};
|
|
69
|
+
readonly pt: {
|
|
70
|
+
readonly calendar: 'Horário de aulas';
|
|
71
|
+
readonly trial: 'Experimente uma aula';
|
|
72
|
+
readonly plans: 'Planos';
|
|
73
|
+
readonly previous: 'Semana anterior';
|
|
74
|
+
readonly next: 'Semana seguinte';
|
|
75
|
+
readonly reserve: 'Continuar';
|
|
76
|
+
readonly loading: 'A carregar…';
|
|
77
|
+
readonly empty: 'Não há opções disponíveis nestas datas.';
|
|
78
|
+
readonly error: 'Não foi possível carregar. Tente novamente.';
|
|
79
|
+
readonly available: 'Disponível';
|
|
80
|
+
readonly last: 'Últimas vagas';
|
|
81
|
+
readonly waitlist: 'Lista de espera';
|
|
82
|
+
readonly full: 'Lotada';
|
|
83
|
+
readonly coach: 'Coach';
|
|
84
|
+
readonly duration: 'min';
|
|
85
|
+
readonly free: 'Grátis';
|
|
86
|
+
readonly unlimited: 'Ilimitado';
|
|
87
|
+
readonly email: 'O seu email';
|
|
88
|
+
readonly privacy: 'Aceito as políticas de privacidade da WODira e do box.';
|
|
89
|
+
readonly trialCta: 'Continuar';
|
|
90
|
+
readonly chooseClass: 'Escolha uma aula';
|
|
91
|
+
readonly result: 'Tudo pronto! O seu pedido foi concluído.';
|
|
92
|
+
readonly powered: 'Tecnologia WODira';
|
|
93
|
+
readonly retry: 'Tentar novamente';
|
|
94
|
+
readonly per: 'por';
|
|
95
|
+
readonly credits: 'créditos';
|
|
96
|
+
readonly once: 'pagamento único';
|
|
97
|
+
readonly daily: 'diário';
|
|
98
|
+
readonly weekly: 'semanal';
|
|
99
|
+
readonly monthly: 'mensal';
|
|
100
|
+
readonly yearly: 'anual';
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type BoxWidgetTextKey = keyof (typeof copy)['es'];
|
|
104
|
+
export declare function resolveBoxWidgetLanguage(locale?: string | null): BoxWidgetLanguage;
|
|
105
|
+
export declare function boxText(locale: string | null | undefined, key: BoxWidgetTextKey): "A carregar…" | "Aceito as políticas de privacidade da WODira e do box." | "Acepto la política de privacidad de WODira y del box." | "All set! Your request is complete." | "Available" | "Cargando…" | "Choose a class" | "Class schedule" | "Coach" | "Completa" | "Continuar" | "Continue" | "Disponible" | "Disponível" | "Elige una clase" | "Escolha uma aula" | "Experimente uma aula" | "Free" | "Full" | "Gratis" | "Grátis" | "Horario de clases" | "Horário de aulas" | "I accept WODira and the gym privacy policies." | "Ilimitado" | "Last spots" | "Lista de espera" | "Loading…" | "Lotada" | "Next week" | "No hay opciones disponibles en estas fechas." | "No options are available for these dates." | "No pudimos cargar este contenido. Inténtalo de nuevo." | "Não foi possível carregar. Tente novamente." | "Não há opções disponíveis nestas datas." | "O seu email" | "Planes" | "Planos" | "Plans" | "Powered by WODira" | "Previous week" | "Prueba una clase" | "Reintentar" | "Retry" | "Semana anterior" | "Semana seguinte" | "Semana siguiente" | "Tecnologia WODira" | "Tecnología de WODira" | "Tentar novamente" | "Try a class" | "Tu email" | "Tudo pronto! O seu pedido foi concluído." | "Unlimited" | "Waitlist" | "We could not load this content. Try again." | "Your email" | "anual" | "credits" | "créditos" | "daily" | "diario" | "diário" | "mensal" | "mensual" | "min" | "monthly" | "one-time" | "pagamento único" | "pago único" | "per" | "por" | "semanal" | "weekly" | "yearly" | "¡Todo listo! Tu solicitud se ha completado." | "Últimas plazas" | "Últimas vagas";
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/ui/boxes/i18n.ts"],"names":[],"mappings":"AAAA,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,iBAAiB;iBACvB,KAAK,EAAE,QAAQ;iBACf,MAAM,EAAE,SAAS;iBACjB,OAAO,EAAE,QAAQ;iBACjB,MAAM,EAAE,OAAO;;CAET,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAEzD,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB,CAKlF;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,gBAAgB,iiDAE/E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WodiraBoxCalendar, WodiraBoxPlans, WodiraBoxTrial, WodiraBoxWidget } from './components.js';
|
|
2
|
+
export { createWodiraBoxWidgetClient, WodiraBoxWidgetClient } from './client.js';
|
|
3
|
+
export { WodiraBoxCalendar, WodiraBoxPlans, WodiraBoxTrial, WodiraBoxWidget } from './components.js';
|
|
4
|
+
export type * from './types.js';
|
|
5
|
+
export { applyWodiraTheme, wodiraThemes, wodiraThemeTokens } from '../theme.js';
|
|
6
|
+
export type { WodiraTheme } from '../theme.js';
|
|
7
|
+
export declare function defineWodiraBoxElements(): void;
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
'wodira-box-calendar': WodiraBoxCalendar;
|
|
11
|
+
'wodira-box-trial': WodiraBoxTrial;
|
|
12
|
+
'wodira-box-plans': WodiraBoxPlans;
|
|
13
|
+
'wodira-box-widget': WodiraBoxWidget;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/boxes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAErG,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACrG,mBAAmB,YAAY,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChF,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS/C,wBAAgB,uBAAuB,IAAI,IAAI,CAO9C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAC;QACzC,kBAAkB,EAAE,cAAc,CAAC;QACnC,kBAAkB,EAAE,cAAc,CAAC;QACnC,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
|