@hintoric/email 0.2.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/README.md +3 -2
- package/dist/alertIcons.d.ts +29 -0
- package/dist/alertIcons.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +66 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +564 -134
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/templates/AuthCode/AuthCodeEmail.d.ts +14 -0
- package/dist/templates/AuthCode/AuthCodeEmail.d.ts.map +1 -0
- package/dist/templates/AuthCode/index.d.ts +4 -0
- package/dist/templates/AuthCode/index.d.ts.map +1 -0
- package/dist/templates/AuthCode/messages.d.ts +4 -0
- package/dist/templates/AuthCode/messages.d.ts.map +1 -0
- package/dist/templates/AuthCode/types.d.ts +58 -0
- package/dist/templates/AuthCode/types.d.ts.map +1 -0
- package/dist/templates/AuthNoAccount/AuthNoAccountEmail.d.ts +13 -0
- package/dist/templates/AuthNoAccount/AuthNoAccountEmail.d.ts.map +1 -0
- package/dist/templates/AuthNoAccount/index.d.ts +4 -0
- package/dist/templates/AuthNoAccount/index.d.ts.map +1 -0
- package/dist/templates/AuthNoAccount/messages.d.ts +4 -0
- package/dist/templates/AuthNoAccount/messages.d.ts.map +1 -0
- package/dist/templates/AuthNoAccount/types.d.ts +47 -0
- package/dist/templates/AuthNoAccount/types.d.ts.map +1 -0
- package/dist/templates/SecurityActivityAlert/messages.d.ts.map +1 -1
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -135,27 +135,28 @@ var v = {
|
|
|
135
135
|
}
|
|
136
136
|
}, y = {
|
|
137
137
|
body: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
138
|
-
heading: "Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"
|
|
138
|
+
heading: "Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
|
|
139
|
+
code: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"
|
|
139
140
|
}, b = {
|
|
140
141
|
xs: "2px",
|
|
141
142
|
sm: "6px",
|
|
142
143
|
md: "8px",
|
|
143
144
|
lg: "12px",
|
|
144
145
|
xl: "16px"
|
|
145
|
-
},
|
|
146
|
+
}, ee = /* @__PURE__ */ new Set([
|
|
146
147
|
"https:",
|
|
147
148
|
"http:",
|
|
148
149
|
"mailto:"
|
|
149
150
|
]);
|
|
150
|
-
function
|
|
151
|
+
function x(e) {
|
|
151
152
|
if (e) try {
|
|
152
153
|
let t = new URL(e);
|
|
153
|
-
return
|
|
154
|
+
return ee.has(t.protocol) ? t.href : void 0;
|
|
154
155
|
} catch {
|
|
155
156
|
return;
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function S(e) {
|
|
159
160
|
if (e) try {
|
|
160
161
|
let t = new URL(e);
|
|
161
162
|
return t.protocol === "https:" ? t.href : void 0;
|
|
@@ -165,7 +166,7 @@ function C(e) {
|
|
|
165
166
|
}
|
|
166
167
|
//#endregion
|
|
167
168
|
//#region src/styles.ts
|
|
168
|
-
var
|
|
169
|
+
var C = {
|
|
169
170
|
variant: (e, t) => `hx-${e}-${t}`,
|
|
170
171
|
main: (e) => `hx-main-${e}`,
|
|
171
172
|
inkPrimary: "hx-ink-1",
|
|
@@ -178,27 +179,31 @@ var w = {
|
|
|
178
179
|
layoutCard: "hx-layout-card",
|
|
179
180
|
layoutCardBody: "hx-layout-card-body",
|
|
180
181
|
logoLight: "hx-logo-light",
|
|
181
|
-
logoDark: "hx-logo-dark"
|
|
182
|
+
logoDark: "hx-logo-dark",
|
|
183
|
+
lightOnly: "hx-light-only",
|
|
184
|
+
darkOnly: "hx-dark-only"
|
|
182
185
|
};
|
|
183
|
-
function
|
|
186
|
+
function w(e) {
|
|
184
187
|
let t = v.dark, n = (t, n) => `${e} .${t}{${n}}`, r = [
|
|
185
|
-
n(
|
|
186
|
-
n(
|
|
187
|
-
n(
|
|
188
|
-
n(
|
|
189
|
-
n(
|
|
190
|
-
n(
|
|
191
|
-
n(
|
|
192
|
-
n(`${
|
|
193
|
-
n(
|
|
194
|
-
n(
|
|
195
|
-
n(
|
|
188
|
+
n(C.inkPrimary, `color:${t.inkPrimary}!important;`),
|
|
189
|
+
n(C.inkSecondary, `color:${t.inkSecondary}!important;`),
|
|
190
|
+
n(C.inkTertiary, `color:${t.inkTertiary}!important;`),
|
|
191
|
+
n(C.inkIcon, `color:${t.inkIcon}!important;`),
|
|
192
|
+
n(C.surface, `background-color:${t.surface}!important;`),
|
|
193
|
+
n(C.divider, `background-color:${t.divider}!important;`),
|
|
194
|
+
n(C.layoutCanvas, `background-color:${t.surface}!important;`),
|
|
195
|
+
n(`${C.layoutCanvas}>table>tbody>tr>td`, `background-color:${t.surface}!important;`),
|
|
196
|
+
n(C.logoLight, "display:none!important;"),
|
|
197
|
+
n(C.logoDark, "display:inline-block!important;"),
|
|
198
|
+
n(C.lightOnly, "display:none!important;"),
|
|
199
|
+
n(C.darkOnly, "display:block!important;"),
|
|
200
|
+
n(C.layoutCard, `background-color:${t.surface1}!important;border-color:${g("dark", "outlined", "neutral").borderColor}!important;`)
|
|
196
201
|
];
|
|
197
202
|
for (let e of m) {
|
|
198
|
-
r.push(n(
|
|
203
|
+
r.push(n(C.main(e), `color:${_("dark", e)}!important;`));
|
|
199
204
|
for (let t of h) {
|
|
200
205
|
let i = g("dark", t, e);
|
|
201
|
-
r.push(n(
|
|
206
|
+
r.push(n(C.variant(t, e), [
|
|
202
207
|
`color:${i.color}!important;`,
|
|
203
208
|
i.backgroundColor && `background-color:${i.backgroundColor}!important;`,
|
|
204
209
|
i.borderColor && `border-color:${i.borderColor}!important;`
|
|
@@ -207,31 +212,31 @@ function T(e) {
|
|
|
207
212
|
}
|
|
208
213
|
return r.join("");
|
|
209
214
|
}
|
|
210
|
-
function
|
|
211
|
-
let e = (e) => `${e}.${
|
|
215
|
+
function te() {
|
|
216
|
+
let e = (e) => `${e}.${C.layoutCanvas},${e}.${C.layoutCanvas}>table>tbody>tr>td`, t = (t) => `${e(t)}{background-color:${v.dark.surface1}!important;}`;
|
|
212
217
|
return [
|
|
213
218
|
"@media only screen and (max-width:600px){",
|
|
214
|
-
`.${
|
|
215
|
-
`.${
|
|
219
|
+
`.${C.layoutCard}{max-width:100%!important;border:0!important;border-radius:0!important;}`,
|
|
220
|
+
`.${C.layoutCardBody}{padding:32px 24px!important;}`,
|
|
216
221
|
`${e("")}{padding:0!important;background-color:${v.light.surface}!important;}`,
|
|
217
222
|
t("[data-color-scheme=\"dark\"] "),
|
|
218
223
|
"}",
|
|
219
224
|
`@media only screen and (max-width:600px) and (prefers-color-scheme:dark){${t(":root:not([data-color-scheme=\"light\"]) ")}}`
|
|
220
225
|
].join("");
|
|
221
226
|
}
|
|
222
|
-
var
|
|
227
|
+
var ne = [
|
|
223
228
|
"a[x-apple-data-detectors]{color:inherit!important;text-decoration:none!important;}",
|
|
224
|
-
`@media (prefers-color-scheme:dark){${
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
`@media (prefers-color-scheme:dark){${w(":root:not([data-color-scheme=\"light\"])")}}`,
|
|
230
|
+
w("[data-color-scheme=\"dark\"]"),
|
|
231
|
+
te()
|
|
227
232
|
].join("\n");
|
|
228
233
|
//#endregion
|
|
229
234
|
//#region src/components/Link.tsx
|
|
230
|
-
function
|
|
231
|
-
let a =
|
|
235
|
+
function T({ href: e, color: t = "primary", underline: n = "always", style: r, children: i }) {
|
|
236
|
+
let a = x(e);
|
|
232
237
|
return a ? /* @__PURE__ */ u(s, {
|
|
233
238
|
href: a,
|
|
234
|
-
className:
|
|
239
|
+
className: C.main(t),
|
|
235
240
|
style: {
|
|
236
241
|
fontFamily: y.body,
|
|
237
242
|
color: _("light", t),
|
|
@@ -244,7 +249,7 @@ function O({ href: e, color: t = "primary", underline: n = "always", style: r, c
|
|
|
244
249
|
}
|
|
245
250
|
//#endregion
|
|
246
251
|
//#region src/components/Typography.tsx
|
|
247
|
-
var
|
|
252
|
+
var re = {
|
|
248
253
|
h1: {
|
|
249
254
|
fontSize: "36px",
|
|
250
255
|
fontWeight: 700,
|
|
@@ -315,7 +320,7 @@ var k = {
|
|
|
315
320
|
lineHeight: 1.5,
|
|
316
321
|
ink: "inkTertiary"
|
|
317
322
|
}
|
|
318
|
-
},
|
|
323
|
+
}, ie = {
|
|
319
324
|
h1: "h1",
|
|
320
325
|
h2: "h2",
|
|
321
326
|
h3: "h3",
|
|
@@ -327,16 +332,16 @@ var k = {
|
|
|
327
332
|
"body-md": "p",
|
|
328
333
|
"body-sm": "p",
|
|
329
334
|
"body-xs": "span"
|
|
330
|
-
},
|
|
335
|
+
}, ae = {
|
|
331
336
|
primary: "inkPrimary",
|
|
332
337
|
secondary: "inkSecondary",
|
|
333
338
|
tertiary: "inkTertiary",
|
|
334
339
|
icon: "inkIcon"
|
|
335
340
|
};
|
|
336
|
-
function
|
|
337
|
-
let o =
|
|
341
|
+
function E({ level: e = "body-md", component: t, textAlign: n, textColor: r, style: i, children: a }) {
|
|
342
|
+
let o = re[e], s = r ? ae[r] : o.ink, c = t ?? ie[e];
|
|
338
343
|
return /* @__PURE__ */ u(c, {
|
|
339
|
-
className:
|
|
344
|
+
className: C[s],
|
|
340
345
|
style: {
|
|
341
346
|
margin: 0,
|
|
342
347
|
fontFamily: y.body,
|
|
@@ -353,7 +358,7 @@ function M({ level: e = "body-md", component: t, textAlign: n, textColor: r, sty
|
|
|
353
358
|
}
|
|
354
359
|
//#endregion
|
|
355
360
|
//#region src/components/Layout.tsx
|
|
356
|
-
function
|
|
361
|
+
function D({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, children: f }) {
|
|
357
362
|
let p = v.light;
|
|
358
363
|
return /* @__PURE__ */ d(a, {
|
|
359
364
|
lang: e,
|
|
@@ -368,11 +373,11 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
368
373
|
name: "supported-color-schemes",
|
|
369
374
|
content: "light dark"
|
|
370
375
|
}),
|
|
371
|
-
/* @__PURE__ */ u(
|
|
376
|
+
/* @__PURE__ */ u(O, {})
|
|
372
377
|
] }),
|
|
373
378
|
/* @__PURE__ */ u(c, { children: n }),
|
|
374
379
|
/* @__PURE__ */ d(t, {
|
|
375
|
-
className:
|
|
380
|
+
className: C.layoutCanvas,
|
|
376
381
|
style: {
|
|
377
382
|
margin: 0,
|
|
378
383
|
padding: "40px 0",
|
|
@@ -380,7 +385,7 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
380
385
|
fontFamily: y.body
|
|
381
386
|
},
|
|
382
387
|
children: [/* @__PURE__ */ u(r, {
|
|
383
|
-
className:
|
|
388
|
+
className: C.layoutCard,
|
|
384
389
|
style: {
|
|
385
390
|
width: "100%",
|
|
386
391
|
maxWidth: "440px",
|
|
@@ -390,7 +395,7 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
390
395
|
borderRadius: "20px"
|
|
391
396
|
},
|
|
392
397
|
children: /* @__PURE__ */ u("div", {
|
|
393
|
-
className:
|
|
398
|
+
className: C.layoutCardBody,
|
|
394
399
|
style: { padding: "48px" },
|
|
395
400
|
children: f
|
|
396
401
|
})
|
|
@@ -400,7 +405,7 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
400
405
|
padding: "24px 24px 0",
|
|
401
406
|
textAlign: "center"
|
|
402
407
|
},
|
|
403
|
-
children: [o, s &&
|
|
408
|
+
children: [o, s && x(s.href) && /* @__PURE__ */ u(E, {
|
|
404
409
|
level: "body-xs",
|
|
405
410
|
component: "p",
|
|
406
411
|
textAlign: "center",
|
|
@@ -409,7 +414,7 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
409
414
|
margin: o ? "12px 0 0" : 0,
|
|
410
415
|
fontWeight: 400
|
|
411
416
|
},
|
|
412
|
-
children: /* @__PURE__ */ u(
|
|
417
|
+
children: /* @__PURE__ */ u(T, {
|
|
413
418
|
href: s.href,
|
|
414
419
|
color: "neutral",
|
|
415
420
|
children: s.label
|
|
@@ -420,12 +425,12 @@ function N({ lang: e, preview: n, footer: o, unsubscribe: s, colorScheme: l, chi
|
|
|
420
425
|
]
|
|
421
426
|
});
|
|
422
427
|
}
|
|
423
|
-
function
|
|
424
|
-
return /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html:
|
|
428
|
+
function O() {
|
|
429
|
+
return /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: ne } });
|
|
425
430
|
}
|
|
426
431
|
//#endregion
|
|
427
432
|
//#region src/components/Button.tsx
|
|
428
|
-
var
|
|
433
|
+
var oe = {
|
|
429
434
|
sm: {
|
|
430
435
|
minHeight: 32,
|
|
431
436
|
paddingInline: 12,
|
|
@@ -445,13 +450,13 @@ var F = {
|
|
|
445
450
|
lineHeight: 24
|
|
446
451
|
}
|
|
447
452
|
};
|
|
448
|
-
function
|
|
449
|
-
let l =
|
|
453
|
+
function k({ href: e, variant: t = "solid", color: r = "primary", size: i = "md", pill: a = !1, fullWidth: o = !1, style: s, children: c }) {
|
|
454
|
+
let l = x(e);
|
|
450
455
|
if (!l || l.startsWith("mailto:")) return null;
|
|
451
|
-
let d =
|
|
456
|
+
let d = oe[i], f = g("light", t, r), p = +(t === "outlined"), m = (d.minHeight - d.lineHeight) / 2 - p;
|
|
452
457
|
return /* @__PURE__ */ u(n, {
|
|
453
458
|
href: l,
|
|
454
|
-
className:
|
|
459
|
+
className: C.variant(t, r),
|
|
455
460
|
style: {
|
|
456
461
|
display: o ? "block" : "inline-block",
|
|
457
462
|
boxSizing: "border-box",
|
|
@@ -483,11 +488,11 @@ function I({ href: e, variant: t = "solid", color: r = "primary", size: i = "md"
|
|
|
483
488
|
}
|
|
484
489
|
//#endregion
|
|
485
490
|
//#region src/components/Divider.tsx
|
|
486
|
-
function
|
|
491
|
+
function A({ style: e }) {
|
|
487
492
|
let t = v.light;
|
|
488
493
|
return /* @__PURE__ */ u("div", {
|
|
489
494
|
role: "separator",
|
|
490
|
-
className:
|
|
495
|
+
className: C.divider,
|
|
491
496
|
style: {
|
|
492
497
|
height: "1px",
|
|
493
498
|
lineHeight: "1px",
|
|
@@ -503,7 +508,7 @@ function L({ style: e }) {
|
|
|
503
508
|
}
|
|
504
509
|
//#endregion
|
|
505
510
|
//#region src/components/Card.tsx
|
|
506
|
-
function
|
|
511
|
+
function j({ variant: e = "outlined", color: t = "neutral", style: n, children: r }) {
|
|
507
512
|
let i = g("light", e, t), a = i.backgroundColor !== void 0;
|
|
508
513
|
return /* @__PURE__ */ u("table", {
|
|
509
514
|
role: "presentation",
|
|
@@ -511,7 +516,7 @@ function R({ variant: e = "outlined", color: t = "neutral", style: n, children:
|
|
|
511
516
|
cellPadding: 0,
|
|
512
517
|
cellSpacing: 0,
|
|
513
518
|
border: 0,
|
|
514
|
-
className: [
|
|
519
|
+
className: [C.variant(e, t), a ? "" : C.surface].filter(Boolean).join(" "),
|
|
515
520
|
style: {
|
|
516
521
|
borderCollapse: "separate",
|
|
517
522
|
borderRadius: b.md,
|
|
@@ -529,7 +534,7 @@ function R({ variant: e = "outlined", color: t = "neutral", style: n, children:
|
|
|
529
534
|
}
|
|
530
535
|
//#endregion
|
|
531
536
|
//#region src/components/Avatar.tsx
|
|
532
|
-
var
|
|
537
|
+
var se = {
|
|
533
538
|
sm: {
|
|
534
539
|
box: 32,
|
|
535
540
|
fontSize: "14px",
|
|
@@ -546,8 +551,8 @@ var z = {
|
|
|
546
551
|
fontWeight: 600
|
|
547
552
|
}
|
|
548
553
|
};
|
|
549
|
-
function
|
|
550
|
-
let s =
|
|
554
|
+
function M({ variant: e = "soft", color: t = "neutral", size: n = "md", src: r, alt: i = "", children: a }) {
|
|
555
|
+
let s = se[n], c = S(r);
|
|
551
556
|
if (c) return /* @__PURE__ */ u(o, {
|
|
552
557
|
src: c,
|
|
553
558
|
width: s.box,
|
|
@@ -565,7 +570,7 @@ function B({ variant: e = "soft", color: t = "neutral", size: n = "md", src: r,
|
|
|
565
570
|
cellPadding: 0,
|
|
566
571
|
cellSpacing: 0,
|
|
567
572
|
border: 0,
|
|
568
|
-
className:
|
|
573
|
+
className: C.variant(e, t),
|
|
569
574
|
style: {
|
|
570
575
|
display: "inline-table",
|
|
571
576
|
boxSizing: "border-box",
|
|
@@ -594,8 +599,170 @@ function B({ variant: e = "soft", color: t = "neutral", size: n = "md", src: r,
|
|
|
594
599
|
});
|
|
595
600
|
}
|
|
596
601
|
//#endregion
|
|
602
|
+
//#region src/alertIcons.ts
|
|
603
|
+
var N = {
|
|
604
|
+
primary: "info",
|
|
605
|
+
neutral: "info",
|
|
606
|
+
danger: "report",
|
|
607
|
+
success: "check-circle",
|
|
608
|
+
warning: "warning"
|
|
609
|
+
}, P = "https://cdn.hintoric.com/assets/email/alert";
|
|
610
|
+
function F(e, t) {
|
|
611
|
+
return `${P}/${e}-${t.replace("#", "").toLowerCase()}.png`;
|
|
612
|
+
}
|
|
613
|
+
function I(e, t, n) {
|
|
614
|
+
let r = N[n], i = g(e, t, n).color;
|
|
615
|
+
return {
|
|
616
|
+
name: r,
|
|
617
|
+
ink: i,
|
|
618
|
+
url: F(r, i)
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
function ce() {
|
|
622
|
+
let e = /* @__PURE__ */ new Map();
|
|
623
|
+
for (let t of ["light", "dark"]) for (let n of h) for (let r of m) {
|
|
624
|
+
let { name: i, ink: a, url: o } = I(t, n, r);
|
|
625
|
+
e.set(o, {
|
|
626
|
+
name: i,
|
|
627
|
+
ink: a,
|
|
628
|
+
url: o,
|
|
629
|
+
file: o.slice(44)
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
return [...e.values()];
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
635
|
+
//#region src/components/Alert.tsx
|
|
636
|
+
var le = {
|
|
637
|
+
sm: {
|
|
638
|
+
gap: 8,
|
|
639
|
+
padding: 8,
|
|
640
|
+
fontSize: 12,
|
|
641
|
+
icon: 20
|
|
642
|
+
},
|
|
643
|
+
md: {
|
|
644
|
+
gap: 10,
|
|
645
|
+
padding: 12,
|
|
646
|
+
fontSize: 14,
|
|
647
|
+
icon: 20
|
|
648
|
+
},
|
|
649
|
+
lg: {
|
|
650
|
+
gap: 14,
|
|
651
|
+
padding: 16,
|
|
652
|
+
fontSize: 16,
|
|
653
|
+
icon: 24
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
function L({ variant: e = "soft", color: t = "neutral", size: n = "md", startDecorator: r, endDecorator: i, style: a, children: o }) {
|
|
657
|
+
let s = le[n], c = r === void 0 ? /* @__PURE__ */ u(ue, {
|
|
658
|
+
variant: e,
|
|
659
|
+
color: t,
|
|
660
|
+
size: s.icon
|
|
661
|
+
}) : r, l = g("light", e, t), f = l.backgroundColor !== void 0, p = s.fontSize * 1.5, m = {
|
|
662
|
+
fontFamily: y.body,
|
|
663
|
+
fontSize: `${s.fontSize}px`,
|
|
664
|
+
fontWeight: 500,
|
|
665
|
+
lineHeight: 1.5
|
|
666
|
+
}, h = (e, t) => /* @__PURE__ */ u("td", {
|
|
667
|
+
width: "1",
|
|
668
|
+
style: {
|
|
669
|
+
verticalAlign: "top",
|
|
670
|
+
[t === "start" ? "paddingRight" : "paddingLeft"]: `${s.gap}px`
|
|
671
|
+
},
|
|
672
|
+
children: /* @__PURE__ */ u("table", {
|
|
673
|
+
role: "presentation",
|
|
674
|
+
cellPadding: 0,
|
|
675
|
+
cellSpacing: 0,
|
|
676
|
+
border: 0,
|
|
677
|
+
children: /* @__PURE__ */ u("tbody", { children: /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", {
|
|
678
|
+
"data-alert-decorator": "",
|
|
679
|
+
height: p,
|
|
680
|
+
style: {
|
|
681
|
+
height: `${p}px`,
|
|
682
|
+
verticalAlign: "middle",
|
|
683
|
+
fontSize: 0,
|
|
684
|
+
lineHeight: 0
|
|
685
|
+
},
|
|
686
|
+
children: e
|
|
687
|
+
}) }) })
|
|
688
|
+
})
|
|
689
|
+
});
|
|
690
|
+
return /* @__PURE__ */ u("table", {
|
|
691
|
+
role: "presentation",
|
|
692
|
+
width: "100%",
|
|
693
|
+
cellPadding: 0,
|
|
694
|
+
cellSpacing: 0,
|
|
695
|
+
border: 0,
|
|
696
|
+
className: [C.variant(e, t), f ? "" : C.surface].filter(Boolean).join(" "),
|
|
697
|
+
style: {
|
|
698
|
+
borderCollapse: "separate",
|
|
699
|
+
borderRadius: b.sm,
|
|
700
|
+
backgroundColor: l.backgroundColor ?? v.light.surface,
|
|
701
|
+
color: l.color,
|
|
702
|
+
border: l.borderColor ? `1px solid ${l.borderColor}` : void 0,
|
|
703
|
+
...m,
|
|
704
|
+
...a
|
|
705
|
+
},
|
|
706
|
+
children: /* @__PURE__ */ u("tbody", { children: /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", {
|
|
707
|
+
style: {
|
|
708
|
+
padding: `${s.padding}px`,
|
|
709
|
+
...m
|
|
710
|
+
},
|
|
711
|
+
children: c || i ? /* @__PURE__ */ u("table", {
|
|
712
|
+
role: "presentation",
|
|
713
|
+
width: "100%",
|
|
714
|
+
cellPadding: 0,
|
|
715
|
+
cellSpacing: 0,
|
|
716
|
+
border: 0,
|
|
717
|
+
children: /* @__PURE__ */ u("tbody", { children: /* @__PURE__ */ d("tr", { children: [
|
|
718
|
+
c && h(c, "start"),
|
|
719
|
+
/* @__PURE__ */ u("td", {
|
|
720
|
+
"data-alert-content": "",
|
|
721
|
+
style: {
|
|
722
|
+
verticalAlign: "top",
|
|
723
|
+
...m
|
|
724
|
+
},
|
|
725
|
+
children: o
|
|
726
|
+
}),
|
|
727
|
+
i && h(i, "end")
|
|
728
|
+
] }) })
|
|
729
|
+
}) : o
|
|
730
|
+
}) }) })
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
function ue({ variant: e, color: t, size: n }) {
|
|
734
|
+
let r = I("light", e, t), i = I("dark", e, t), a = (e, t, r) => /* @__PURE__ */ u(o, {
|
|
735
|
+
src: e,
|
|
736
|
+
width: n,
|
|
737
|
+
height: n,
|
|
738
|
+
alt: "",
|
|
739
|
+
className: t,
|
|
740
|
+
style: {
|
|
741
|
+
display: r,
|
|
742
|
+
width: `${n}px`,
|
|
743
|
+
height: `${n}px`,
|
|
744
|
+
minWidth: `${n}px`,
|
|
745
|
+
maxWidth: "none",
|
|
746
|
+
border: 0
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
return /* @__PURE__ */ d(l, { children: [a(r.url, C.lightOnly, "block"), a(i.url, C.darkOnly, "none")] });
|
|
750
|
+
}
|
|
751
|
+
function de({ style: e, children: t }) {
|
|
752
|
+
return /* @__PURE__ */ u("div", {
|
|
753
|
+
style: {
|
|
754
|
+
fontFamily: y.body,
|
|
755
|
+
fontSize: "16px",
|
|
756
|
+
lineHeight: "24px",
|
|
757
|
+
fontWeight: 600,
|
|
758
|
+
...e
|
|
759
|
+
},
|
|
760
|
+
children: t
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
//#endregion
|
|
597
764
|
//#region src/components/Chip.tsx
|
|
598
|
-
var
|
|
765
|
+
var fe = {
|
|
599
766
|
sm: {
|
|
600
767
|
minHeight: 20,
|
|
601
768
|
paddingInline: 6,
|
|
@@ -612,10 +779,10 @@ var V = {
|
|
|
612
779
|
fontSize: 16
|
|
613
780
|
}
|
|
614
781
|
};
|
|
615
|
-
function
|
|
616
|
-
let a =
|
|
782
|
+
function pe({ variant: e = "soft", color: t = "neutral", size: n = "md", style: r, children: i }) {
|
|
783
|
+
let a = fe[n], o = g("light", e, t), s = o.backgroundColor !== void 0, c = +!!o.borderColor, l = a.fontSize * 1.5, d = (a.minHeight - l) / 2 - c;
|
|
617
784
|
return /* @__PURE__ */ u("span", {
|
|
618
|
-
className: [
|
|
785
|
+
className: [C.variant(e, t), s ? "" : C.surface].filter(Boolean).join(" "),
|
|
619
786
|
style: {
|
|
620
787
|
display: "inline-block",
|
|
621
788
|
boxSizing: "border-box",
|
|
@@ -637,29 +804,29 @@ function H({ variant: e = "soft", color: t = "neutral", size: n = "md", style: r
|
|
|
637
804
|
}
|
|
638
805
|
//#endregion
|
|
639
806
|
//#region src/components/HintoricLogo.tsx
|
|
640
|
-
var
|
|
807
|
+
var R = {
|
|
641
808
|
light: "https://cdn.hintoric.com/assets/logo/black.png",
|
|
642
809
|
dark: "https://cdn.hintoric.com/assets/logo/white.png",
|
|
643
810
|
width: 104,
|
|
644
811
|
height: 32
|
|
645
812
|
};
|
|
646
|
-
function
|
|
813
|
+
function z() {
|
|
647
814
|
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(o, {
|
|
648
|
-
src:
|
|
649
|
-
width:
|
|
650
|
-
height:
|
|
815
|
+
src: R.light,
|
|
816
|
+
width: R.width,
|
|
817
|
+
height: R.height,
|
|
651
818
|
alt: "hintoric",
|
|
652
|
-
className:
|
|
819
|
+
className: C.logoLight,
|
|
653
820
|
style: {
|
|
654
821
|
display: "inline-block",
|
|
655
822
|
margin: "0 auto"
|
|
656
823
|
}
|
|
657
824
|
}), /* @__PURE__ */ u(o, {
|
|
658
|
-
src:
|
|
659
|
-
width:
|
|
660
|
-
height:
|
|
825
|
+
src: R.dark,
|
|
826
|
+
width: R.width,
|
|
827
|
+
height: R.height,
|
|
661
828
|
alt: "hintoric",
|
|
662
|
-
className:
|
|
829
|
+
className: C.logoDark,
|
|
663
830
|
style: {
|
|
664
831
|
display: "none",
|
|
665
832
|
margin: "0 auto"
|
|
@@ -667,28 +834,291 @@ function W() {
|
|
|
667
834
|
})] });
|
|
668
835
|
}
|
|
669
836
|
//#endregion
|
|
837
|
+
//#region src/templates/AuthCode/AuthCodeEmail.tsx
|
|
838
|
+
function B({ purpose: e, code: t, email: n }) {
|
|
839
|
+
return {
|
|
840
|
+
purpose: e,
|
|
841
|
+
code: t,
|
|
842
|
+
email: n
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
function V(e) {
|
|
846
|
+
let { messages: t } = e, n = B(e);
|
|
847
|
+
return /* @__PURE__ */ u(D, {
|
|
848
|
+
lang: t.lang,
|
|
849
|
+
preview: t.preview(n),
|
|
850
|
+
colorScheme: e.colorScheme,
|
|
851
|
+
footer: /* @__PURE__ */ d(E, {
|
|
852
|
+
level: "body-xs",
|
|
853
|
+
component: "p",
|
|
854
|
+
textAlign: "center",
|
|
855
|
+
textColor: "icon",
|
|
856
|
+
style: { fontWeight: 400 },
|
|
857
|
+
children: [t.footer(n), e.legalNotice && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("br", {}), e.legalNotice] })]
|
|
858
|
+
}),
|
|
859
|
+
children: /* @__PURE__ */ u(H, { ...e })
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
function H(e) {
|
|
863
|
+
let { messages: t, code: n, url: r, expiresInMinutes: i } = e, a = B(e);
|
|
864
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
865
|
+
/* @__PURE__ */ d("div", {
|
|
866
|
+
style: { textAlign: "center" },
|
|
867
|
+
children: [
|
|
868
|
+
/* @__PURE__ */ u(z, {}),
|
|
869
|
+
/* @__PURE__ */ u(E, {
|
|
870
|
+
level: "h3",
|
|
871
|
+
component: "h1",
|
|
872
|
+
style: {
|
|
873
|
+
margin: "16px 0 12px",
|
|
874
|
+
fontFamily: y.heading
|
|
875
|
+
},
|
|
876
|
+
children: t.heading(a)
|
|
877
|
+
}),
|
|
878
|
+
/* @__PURE__ */ u(E, {
|
|
879
|
+
level: "body-sm",
|
|
880
|
+
style: { marginBottom: "24px" },
|
|
881
|
+
children: t.intro(a)
|
|
882
|
+
})
|
|
883
|
+
]
|
|
884
|
+
}),
|
|
885
|
+
/* @__PURE__ */ u(j, { children: /* @__PURE__ */ u(E, {
|
|
886
|
+
level: "h2",
|
|
887
|
+
component: "p",
|
|
888
|
+
textAlign: "center",
|
|
889
|
+
style: {
|
|
890
|
+
margin: 0,
|
|
891
|
+
fontFamily: y.code,
|
|
892
|
+
letterSpacing: "0.25em",
|
|
893
|
+
textIndent: "0.25em",
|
|
894
|
+
fontWeight: 700
|
|
895
|
+
},
|
|
896
|
+
children: /* @__PURE__ */ u("span", {
|
|
897
|
+
"data-auth-code": "",
|
|
898
|
+
children: n
|
|
899
|
+
})
|
|
900
|
+
}) }),
|
|
901
|
+
i !== void 0 && /* @__PURE__ */ u(E, {
|
|
902
|
+
level: "body-xs",
|
|
903
|
+
component: "p",
|
|
904
|
+
textAlign: "center",
|
|
905
|
+
textColor: "icon",
|
|
906
|
+
style: {
|
|
907
|
+
margin: "12px 0 0",
|
|
908
|
+
fontWeight: 400
|
|
909
|
+
},
|
|
910
|
+
children: t.expiry(i)
|
|
911
|
+
}),
|
|
912
|
+
r && /* @__PURE__ */ u("div", {
|
|
913
|
+
style: { marginTop: "24px" },
|
|
914
|
+
children: /* @__PURE__ */ u(k, {
|
|
915
|
+
href: r,
|
|
916
|
+
size: "lg",
|
|
917
|
+
fullWidth: !0,
|
|
918
|
+
children: t.button(a)
|
|
919
|
+
})
|
|
920
|
+
}),
|
|
921
|
+
/* @__PURE__ */ u(A, { style: { margin: "32px 0 24px" } }),
|
|
922
|
+
/* @__PURE__ */ u(E, {
|
|
923
|
+
level: "body-xs",
|
|
924
|
+
component: "p",
|
|
925
|
+
textAlign: "center",
|
|
926
|
+
style: {
|
|
927
|
+
margin: 0,
|
|
928
|
+
fontWeight: 400
|
|
929
|
+
},
|
|
930
|
+
children: t.ignore(a)
|
|
931
|
+
})
|
|
932
|
+
] });
|
|
933
|
+
}
|
|
934
|
+
async function me(e) {
|
|
935
|
+
let { html: t, text: n } = await f(/* @__PURE__ */ u(V, { ...e }));
|
|
936
|
+
return {
|
|
937
|
+
subject: e.messages.subject(B(e)),
|
|
938
|
+
html: t,
|
|
939
|
+
text: n
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region src/templates/AuthCode/messages.ts
|
|
944
|
+
var he = {
|
|
945
|
+
verification: "Bestätigungscode",
|
|
946
|
+
registration: "Registrierungscode",
|
|
947
|
+
login: "Anmeldecode",
|
|
948
|
+
recovery: "Wiederherstellungscode"
|
|
949
|
+
}, ge = {
|
|
950
|
+
verification: "Adresse bestätigen",
|
|
951
|
+
registration: "Konto anlegen",
|
|
952
|
+
login: "Anmelden",
|
|
953
|
+
recovery: "Konto wiederherstellen"
|
|
954
|
+
}, U = (e) => e === "login" || e === "recovery", _e = {
|
|
955
|
+
lang: "de",
|
|
956
|
+
subject: ({ purpose: e }) => `Dein ${he[e]} für hintoric`,
|
|
957
|
+
preview: ({ code: e }) => `Dein Code: ${e}`,
|
|
958
|
+
heading: ({ purpose: e }) => ge[e],
|
|
959
|
+
intro: ({ purpose: e, email: t }) => {
|
|
960
|
+
switch (e) {
|
|
961
|
+
case "verification": return `Gib diesen Code ein, um ${t ?? "deine E-Mail-Adresse"} zu bestätigen.`;
|
|
962
|
+
case "registration": return `Gib diesen Code ein, um dein Konto bei hintoric${t ? ` für ${t}` : ""} anzulegen.`;
|
|
963
|
+
case "login": return `Gib diesen Code ein, um dich${t ? ` als ${t}` : ""} bei hintoric anzumelden.`;
|
|
964
|
+
case "recovery": return `Gib diesen Code ein, um wieder auf dein Konto bei hintoric${t ? ` (${t})` : ""} zuzugreifen.`;
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
button: ({ purpose: e }) => ge[e],
|
|
968
|
+
expiry: (e) => `Der Code ist ${e} Minuten gültig.`,
|
|
969
|
+
ignore: ({ purpose: e }) => U(e) ? "Wenn du das nicht angefordert hast, kannst du diese E-Mail ignorieren. Gib den Code an niemanden weiter – hintoric fragt dich nie danach." : "Wenn du das nicht angefordert hast, kannst du diese E-Mail ignorieren.",
|
|
970
|
+
footer: () => "Du erhältst diese E-Mail, weil mit deiner Adresse ein Code bei hintoric angefordert wurde."
|
|
971
|
+
}, ve = {
|
|
972
|
+
verification: "verification code",
|
|
973
|
+
registration: "registration code",
|
|
974
|
+
login: "sign-in code",
|
|
975
|
+
recovery: "recovery code"
|
|
976
|
+
}, W = {
|
|
977
|
+
verification: "Confirm your address",
|
|
978
|
+
registration: "Create your account",
|
|
979
|
+
login: "Sign in",
|
|
980
|
+
recovery: "Recover your account"
|
|
981
|
+
}, ye = {
|
|
982
|
+
lang: "en",
|
|
983
|
+
subject: ({ purpose: e }) => `Your hintoric ${ve[e]}`,
|
|
984
|
+
preview: ({ code: e }) => `Your code: ${e}`,
|
|
985
|
+
heading: ({ purpose: e }) => W[e],
|
|
986
|
+
intro: ({ purpose: e, email: t }) => {
|
|
987
|
+
switch (e) {
|
|
988
|
+
case "verification": return `Enter this code to confirm ${t ?? "your email address"} for your hintoric account.`;
|
|
989
|
+
case "registration": return `Enter this code to create your hintoric account${t ? ` for ${t}` : ""}.`;
|
|
990
|
+
case "login": return `Enter this code to sign in to hintoric${t ? ` as ${t}` : ""}.`;
|
|
991
|
+
case "recovery": return `Enter this code to get back into your hintoric account${t ? ` (${t})` : ""}.`;
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
button: ({ purpose: e }) => W[e],
|
|
995
|
+
expiry: (e) => `The code is valid for ${e} minutes.`,
|
|
996
|
+
ignore: ({ purpose: e }) => U(e) ? "If you didn't request this, you can ignore this email. Don't share the code with anyone – hintoric will never ask you for it." : "If you didn't request this, you can ignore this email.",
|
|
997
|
+
footer: () => "We sent you this email because someone requested a code for your address at hintoric."
|
|
998
|
+
};
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region src/templates/AuthNoAccount/AuthNoAccountEmail.tsx
|
|
1001
|
+
function G({ purpose: e, email: t }) {
|
|
1002
|
+
return {
|
|
1003
|
+
purpose: e,
|
|
1004
|
+
email: t
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
function K(e) {
|
|
1008
|
+
let { messages: t } = e, n = G(e);
|
|
1009
|
+
return /* @__PURE__ */ u(D, {
|
|
1010
|
+
lang: t.lang,
|
|
1011
|
+
preview: t.preview(n),
|
|
1012
|
+
colorScheme: e.colorScheme,
|
|
1013
|
+
footer: /* @__PURE__ */ d(E, {
|
|
1014
|
+
level: "body-xs",
|
|
1015
|
+
component: "p",
|
|
1016
|
+
textAlign: "center",
|
|
1017
|
+
textColor: "icon",
|
|
1018
|
+
style: { fontWeight: 400 },
|
|
1019
|
+
children: [t.footer(n), e.legalNotice && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("br", {}), e.legalNotice] })]
|
|
1020
|
+
}),
|
|
1021
|
+
children: /* @__PURE__ */ u(q, { ...e })
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
function q(e) {
|
|
1025
|
+
let { messages: t, registrationUrl: n } = e, r = G(e);
|
|
1026
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
1027
|
+
/* @__PURE__ */ d("div", {
|
|
1028
|
+
style: { textAlign: "center" },
|
|
1029
|
+
children: [
|
|
1030
|
+
/* @__PURE__ */ u(z, {}),
|
|
1031
|
+
/* @__PURE__ */ u(E, {
|
|
1032
|
+
level: "h3",
|
|
1033
|
+
component: "h1",
|
|
1034
|
+
style: {
|
|
1035
|
+
margin: "16px 0 12px",
|
|
1036
|
+
fontFamily: y.heading
|
|
1037
|
+
},
|
|
1038
|
+
children: t.heading(r)
|
|
1039
|
+
}),
|
|
1040
|
+
/* @__PURE__ */ u(E, {
|
|
1041
|
+
level: "body-sm",
|
|
1042
|
+
style: { marginBottom: "24px" },
|
|
1043
|
+
children: t.body(r)
|
|
1044
|
+
})
|
|
1045
|
+
]
|
|
1046
|
+
}),
|
|
1047
|
+
/* @__PURE__ */ u(L, {
|
|
1048
|
+
color: "warning",
|
|
1049
|
+
children: t.alert(r)
|
|
1050
|
+
}),
|
|
1051
|
+
/* @__PURE__ */ d("div", {
|
|
1052
|
+
style: { textAlign: "center" },
|
|
1053
|
+
children: [/* @__PURE__ */ u(E, {
|
|
1054
|
+
level: "body-sm",
|
|
1055
|
+
style: { margin: n ? "24px 0" : "24px 0 0" },
|
|
1056
|
+
children: t.hint(r)
|
|
1057
|
+
}), n && /* @__PURE__ */ u(k, {
|
|
1058
|
+
href: n,
|
|
1059
|
+
variant: "outlined",
|
|
1060
|
+
color: "neutral",
|
|
1061
|
+
size: "lg",
|
|
1062
|
+
fullWidth: !0,
|
|
1063
|
+
children: t.registerButton
|
|
1064
|
+
})]
|
|
1065
|
+
})
|
|
1066
|
+
] });
|
|
1067
|
+
}
|
|
1068
|
+
async function be(e) {
|
|
1069
|
+
let { html: t, text: n } = await f(/* @__PURE__ */ u(K, { ...e }));
|
|
1070
|
+
return {
|
|
1071
|
+
subject: e.messages.subject(G(e)),
|
|
1072
|
+
html: t,
|
|
1073
|
+
text: n
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
//#endregion
|
|
1077
|
+
//#region src/templates/AuthNoAccount/messages.ts
|
|
1078
|
+
var xe = {
|
|
1079
|
+
lang: "de",
|
|
1080
|
+
subject: () => "Zu dieser Adresse gibt es kein Konto bei hintoric",
|
|
1081
|
+
preview: () => "Vielleicht hast du dich mit einer anderen Adresse registriert.",
|
|
1082
|
+
heading: () => "Kein Konto gefunden",
|
|
1083
|
+
body: ({ purpose: e, email: t }) => `Für ${t} wurde ein ${e === "recovery" ? "Wiederherstellungscode" : "Bestätigungscode"} angefordert.`,
|
|
1084
|
+
alert: () => "Zu dieser Adresse gibt es kein Konto bei hintoric.",
|
|
1085
|
+
hint: () => "Vielleicht hast du dich mit einer anderen Adresse registriert. Wenn du den Code nicht angefordert hast, kannst du diese E-Mail ignorieren.",
|
|
1086
|
+
registerButton: "Konto anlegen",
|
|
1087
|
+
footer: () => "Du erhältst diese E-Mail, weil deine Adresse bei hintoric angegeben wurde."
|
|
1088
|
+
}, Se = {
|
|
1089
|
+
lang: "en",
|
|
1090
|
+
subject: () => "No hintoric account with this address",
|
|
1091
|
+
preview: () => "Maybe you signed up with a different address.",
|
|
1092
|
+
heading: () => "No account found",
|
|
1093
|
+
body: ({ purpose: e, email: t }) => `A ${e === "recovery" ? "recovery" : "verification"} code was requested for ${t}.`,
|
|
1094
|
+
alert: () => "There is no hintoric account with this address.",
|
|
1095
|
+
hint: () => "Maybe you signed up with a different address. If you didn't request the code, you can ignore this email.",
|
|
1096
|
+
registerButton: "Create an account",
|
|
1097
|
+
footer: () => "We sent you this email because someone entered your address at hintoric."
|
|
1098
|
+
};
|
|
1099
|
+
//#endregion
|
|
670
1100
|
//#region src/templates/SecurityActivityAlert/SecurityActivityAlertEmail.tsx
|
|
671
|
-
function
|
|
1101
|
+
function J(e) {
|
|
672
1102
|
return {
|
|
673
1103
|
activity: e.activity,
|
|
674
1104
|
target: e.target,
|
|
675
|
-
targetName:
|
|
1105
|
+
targetName: Ce(e),
|
|
676
1106
|
occurredAt: e.messages.formatDateTime(e.activity.occurredAt, e.timeZone)
|
|
677
1107
|
};
|
|
678
1108
|
}
|
|
679
|
-
function
|
|
1109
|
+
function Ce({ target: e }) {
|
|
680
1110
|
return e.type === "workspace" ? e.workspaceName : e.email;
|
|
681
1111
|
}
|
|
682
|
-
function
|
|
1112
|
+
function we(e) {
|
|
683
1113
|
return e.split(/\s+/).map((e) => e.match(/\p{L}/u)?.[0]).filter((e) => e !== void 0).slice(0, 2).map((e) => e.toUpperCase()).join("");
|
|
684
1114
|
}
|
|
685
|
-
function
|
|
686
|
-
let { messages: t } = e, n =
|
|
687
|
-
return /* @__PURE__ */ u(
|
|
1115
|
+
function Y(e) {
|
|
1116
|
+
let { messages: t } = e, n = J(e);
|
|
1117
|
+
return /* @__PURE__ */ u(D, {
|
|
688
1118
|
lang: t.lang,
|
|
689
1119
|
preview: t.preview(n),
|
|
690
1120
|
colorScheme: e.colorScheme,
|
|
691
|
-
footer: /* @__PURE__ */ d(
|
|
1121
|
+
footer: /* @__PURE__ */ d(E, {
|
|
692
1122
|
level: "body-xs",
|
|
693
1123
|
component: "p",
|
|
694
1124
|
textAlign: "center",
|
|
@@ -696,17 +1126,17 @@ function J(e) {
|
|
|
696
1126
|
style: { fontWeight: 400 },
|
|
697
1127
|
children: [t.footer(n), e.legalNotice && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("br", {}), e.legalNotice] })]
|
|
698
1128
|
}),
|
|
699
|
-
children: /* @__PURE__ */ u(
|
|
1129
|
+
children: /* @__PURE__ */ u(X, { ...e })
|
|
700
1130
|
});
|
|
701
1131
|
}
|
|
702
|
-
function
|
|
703
|
-
let { messages: t, activityLogUrl: n } = e, r =
|
|
1132
|
+
function X(e) {
|
|
1133
|
+
let { messages: t, activityLogUrl: n } = e, r = J(e);
|
|
704
1134
|
return /* @__PURE__ */ d(l, { children: [
|
|
705
1135
|
/* @__PURE__ */ d("div", {
|
|
706
1136
|
style: { textAlign: "center" },
|
|
707
1137
|
children: [
|
|
708
|
-
/* @__PURE__ */ u(
|
|
709
|
-
/* @__PURE__ */ u(
|
|
1138
|
+
/* @__PURE__ */ u(z, {}),
|
|
1139
|
+
/* @__PURE__ */ u(E, {
|
|
710
1140
|
level: "h3",
|
|
711
1141
|
component: "h1",
|
|
712
1142
|
style: {
|
|
@@ -715,12 +1145,12 @@ function Y(e) {
|
|
|
715
1145
|
},
|
|
716
1146
|
children: e.activity.title
|
|
717
1147
|
}),
|
|
718
|
-
/* @__PURE__ */ u(
|
|
1148
|
+
/* @__PURE__ */ u(M, {
|
|
719
1149
|
size: "sm",
|
|
720
1150
|
color: "primary",
|
|
721
|
-
children:
|
|
1151
|
+
children: we(r.targetName)
|
|
722
1152
|
}),
|
|
723
|
-
/* @__PURE__ */ u(
|
|
1153
|
+
/* @__PURE__ */ u(E, {
|
|
724
1154
|
level: "title-sm",
|
|
725
1155
|
component: "span",
|
|
726
1156
|
style: {
|
|
@@ -731,8 +1161,8 @@ function Y(e) {
|
|
|
731
1161
|
})
|
|
732
1162
|
]
|
|
733
1163
|
}),
|
|
734
|
-
/* @__PURE__ */ u(
|
|
735
|
-
/* @__PURE__ */ d(
|
|
1164
|
+
/* @__PURE__ */ u(A, { style: { margin: "32px 0" } }),
|
|
1165
|
+
/* @__PURE__ */ d(E, {
|
|
736
1166
|
level: "body-sm",
|
|
737
1167
|
style: { marginBottom: "24px" },
|
|
738
1168
|
children: [
|
|
@@ -741,13 +1171,13 @@ function Y(e) {
|
|
|
741
1171
|
t.guidance(r)
|
|
742
1172
|
]
|
|
743
1173
|
}),
|
|
744
|
-
/* @__PURE__ */ u(
|
|
1174
|
+
/* @__PURE__ */ u(k, {
|
|
745
1175
|
href: e.reviewUrl,
|
|
746
1176
|
size: "lg",
|
|
747
1177
|
fullWidth: !0,
|
|
748
1178
|
children: t.reviewButton
|
|
749
1179
|
}),
|
|
750
|
-
n && /* @__PURE__ */ u(
|
|
1180
|
+
n && /* @__PURE__ */ u(E, {
|
|
751
1181
|
level: "body-xs",
|
|
752
1182
|
component: "p",
|
|
753
1183
|
textAlign: "center",
|
|
@@ -755,7 +1185,7 @@ function Y(e) {
|
|
|
755
1185
|
marginTop: "24px",
|
|
756
1186
|
fontWeight: 400
|
|
757
1187
|
},
|
|
758
|
-
children: t.activityLogHint((e) => /* @__PURE__ */ u(
|
|
1188
|
+
children: t.activityLogHint((e) => /* @__PURE__ */ u(T, {
|
|
759
1189
|
href: n,
|
|
760
1190
|
underline: "none",
|
|
761
1191
|
children: e
|
|
@@ -763,28 +1193,28 @@ function Y(e) {
|
|
|
763
1193
|
})
|
|
764
1194
|
] });
|
|
765
1195
|
}
|
|
766
|
-
async function
|
|
767
|
-
let { html: t, text: n } = await f(/* @__PURE__ */ u(
|
|
1196
|
+
async function Te(e) {
|
|
1197
|
+
let { html: t, text: n } = await f(/* @__PURE__ */ u(Y, { ...e }));
|
|
768
1198
|
return {
|
|
769
|
-
subject: e.messages.subject(
|
|
1199
|
+
subject: e.messages.subject(J(e)),
|
|
770
1200
|
html: t,
|
|
771
1201
|
text: n
|
|
772
1202
|
};
|
|
773
1203
|
}
|
|
774
1204
|
//#endregion
|
|
775
1205
|
//#region src/templates/SecurityActivityAlert/messages.tsx
|
|
776
|
-
function Z(e) {
|
|
777
|
-
return (
|
|
1206
|
+
function Z(e, t = "") {
|
|
1207
|
+
return (n, r) => new Intl.DateTimeFormat(e, {
|
|
778
1208
|
dateStyle: "long",
|
|
779
1209
|
timeStyle: "short",
|
|
780
|
-
timeZone:
|
|
781
|
-
}).format(t
|
|
1210
|
+
timeZone: r
|
|
1211
|
+
}).format(n) + t;
|
|
782
1212
|
}
|
|
783
|
-
var
|
|
1213
|
+
var Ee = {
|
|
784
1214
|
lang: "de",
|
|
785
1215
|
subject: ({ activity: e, targetName: t }) => `${e.title} – ${t}`,
|
|
786
1216
|
preview: ({ activity: e, occurredAt: t }) => `${e.actorName} · ${t}`,
|
|
787
|
-
summary: ({ activity: e, occurredAt: t }) => `${e.actorName} hat am ${t}
|
|
1217
|
+
summary: ({ activity: e, occurredAt: t }) => `${e.actorName} hat am ${t} etwas geändert, das die Sicherheit betrifft.`,
|
|
788
1218
|
guidance: () => "Wenn du diese Änderung nicht erwartet hast, prüfe die Aktivität jetzt.",
|
|
789
1219
|
reviewButton: "Aktivität prüfen",
|
|
790
1220
|
activityLogHint: (e) => /* @__PURE__ */ d(l, { children: [
|
|
@@ -792,9 +1222,9 @@ var ee = {
|
|
|
792
1222
|
e("Aktivitätsprotokoll"),
|
|
793
1223
|
"."
|
|
794
1224
|
] }),
|
|
795
|
-
footer: ({ target: e }) => e.type === "workspace" ? "
|
|
796
|
-
formatDateTime: Z("de-DE")
|
|
797
|
-
},
|
|
1225
|
+
footer: ({ target: e }) => e.type === "workspace" ? "Du erhältst diese E-Mail, weil du diesen Workspace verwaltest." : "Du erhältst diese E-Mail, weil sie dein Konto bei hintoric betrifft.",
|
|
1226
|
+
formatDateTime: Z("de-DE", " Uhr")
|
|
1227
|
+
}, De = {
|
|
798
1228
|
lang: "en",
|
|
799
1229
|
subject: ({ activity: e, targetName: t }) => `${e.title} – ${t}`,
|
|
800
1230
|
preview: ({ activity: e, occurredAt: t }) => `${e.actorName} · ${t}`,
|
|
@@ -813,7 +1243,7 @@ var ee = {
|
|
|
813
1243
|
//#region src/templates/WaitlistWelcome/WaitlistWelcomeEmail.tsx
|
|
814
1244
|
function Q(e) {
|
|
815
1245
|
let { messages: t } = e;
|
|
816
|
-
return /* @__PURE__ */ u(
|
|
1246
|
+
return /* @__PURE__ */ u(D, {
|
|
817
1247
|
lang: t.lang,
|
|
818
1248
|
preview: t.preview,
|
|
819
1249
|
colorScheme: e.colorScheme,
|
|
@@ -821,7 +1251,7 @@ function Q(e) {
|
|
|
821
1251
|
href: e.unsubscribeUrl,
|
|
822
1252
|
label: t.unsubscribe
|
|
823
1253
|
} : void 0,
|
|
824
|
-
footer: /* @__PURE__ */ d(
|
|
1254
|
+
footer: /* @__PURE__ */ d(E, {
|
|
825
1255
|
level: "body-xs",
|
|
826
1256
|
component: "p",
|
|
827
1257
|
textAlign: "center",
|
|
@@ -836,8 +1266,8 @@ function $({ messages: e, websiteUrl: t }) {
|
|
|
836
1266
|
return /* @__PURE__ */ d("div", {
|
|
837
1267
|
style: { textAlign: "center" },
|
|
838
1268
|
children: [
|
|
839
|
-
/* @__PURE__ */ u(
|
|
840
|
-
/* @__PURE__ */ u(
|
|
1269
|
+
/* @__PURE__ */ u(z, {}),
|
|
1270
|
+
/* @__PURE__ */ u(E, {
|
|
841
1271
|
level: "body-xs",
|
|
842
1272
|
component: "p",
|
|
843
1273
|
textAlign: "center",
|
|
@@ -848,7 +1278,7 @@ function $({ messages: e, websiteUrl: t }) {
|
|
|
848
1278
|
},
|
|
849
1279
|
children: e.eyebrow
|
|
850
1280
|
}),
|
|
851
|
-
/* @__PURE__ */ u(
|
|
1281
|
+
/* @__PURE__ */ u(E, {
|
|
852
1282
|
level: "h3",
|
|
853
1283
|
component: "h1",
|
|
854
1284
|
style: {
|
|
@@ -857,23 +1287,23 @@ function $({ messages: e, websiteUrl: t }) {
|
|
|
857
1287
|
},
|
|
858
1288
|
children: e.heading
|
|
859
1289
|
}),
|
|
860
|
-
/* @__PURE__ */ u(
|
|
1290
|
+
/* @__PURE__ */ u(E, {
|
|
861
1291
|
level: "body-sm",
|
|
862
1292
|
style: { marginBottom: "12px" },
|
|
863
1293
|
children: e.body1
|
|
864
1294
|
}),
|
|
865
|
-
/* @__PURE__ */ u(
|
|
1295
|
+
/* @__PURE__ */ u(E, {
|
|
866
1296
|
level: "body-sm",
|
|
867
1297
|
style: { marginBottom: "24px" },
|
|
868
1298
|
children: e.body2
|
|
869
1299
|
}),
|
|
870
|
-
/* @__PURE__ */ u(
|
|
1300
|
+
/* @__PURE__ */ u(k, {
|
|
871
1301
|
href: t,
|
|
872
1302
|
size: "lg",
|
|
873
1303
|
fullWidth: !0,
|
|
874
1304
|
children: e.cta
|
|
875
1305
|
}),
|
|
876
|
-
/* @__PURE__ */ u(
|
|
1306
|
+
/* @__PURE__ */ u(E, {
|
|
877
1307
|
level: "body-xs",
|
|
878
1308
|
component: "p",
|
|
879
1309
|
textAlign: "center",
|
|
@@ -887,7 +1317,7 @@ function $({ messages: e, websiteUrl: t }) {
|
|
|
887
1317
|
]
|
|
888
1318
|
});
|
|
889
1319
|
}
|
|
890
|
-
async function
|
|
1320
|
+
async function Oe(e) {
|
|
891
1321
|
let { html: t, text: n } = await f(/* @__PURE__ */ u(Q, { ...e }));
|
|
892
1322
|
return {
|
|
893
1323
|
subject: e.messages.subject,
|
|
@@ -897,32 +1327,32 @@ async function ne(e) {
|
|
|
897
1327
|
}
|
|
898
1328
|
//#endregion
|
|
899
1329
|
//#region src/templates/WaitlistWelcome/messages.ts
|
|
900
|
-
var
|
|
1330
|
+
var ke = {
|
|
901
1331
|
lang: "de",
|
|
902
|
-
subject: "Du
|
|
903
|
-
preview: "
|
|
1332
|
+
subject: "Du stehst auf der Warteliste von hintoric",
|
|
1333
|
+
preview: "Sobald dein Platz frei wird, bekommst du eine E-Mail.",
|
|
904
1334
|
eyebrow: "Danke, dass du dabei bist",
|
|
905
|
-
heading: "Willkommen bei
|
|
906
|
-
body1: "
|
|
907
|
-
body2: "
|
|
1335
|
+
heading: "Willkommen bei hintoric",
|
|
1336
|
+
body1: "Du stehst auf der Warteliste. Sobald dein Platz frei wird, bekommst du eine E-Mail – und gehörst zu den Ersten, die hintoric ausprobieren.",
|
|
1337
|
+
body2: "Passt hintoric auch zu jemandem aus deinem Umfeld? Dann leite diese E-Mail gern weiter.",
|
|
908
1338
|
cta: "Zu hintoric.com",
|
|
909
|
-
signoff: "— Dein
|
|
910
|
-
footer: "
|
|
911
|
-
unsubscribe: "
|
|
912
|
-
},
|
|
1339
|
+
signoff: "— Dein hintoric-Team",
|
|
1340
|
+
footer: "Du erhältst diese E-Mail, weil du dich auf der Warteliste von hintoric eingetragen hast.",
|
|
1341
|
+
unsubscribe: "E-Mails abbestellen"
|
|
1342
|
+
}, Ae = {
|
|
913
1343
|
lang: "en",
|
|
914
|
-
subject: "You're on the
|
|
915
|
-
preview: "Welcome aboard —
|
|
1344
|
+
subject: "You're on the hintoric waitlist",
|
|
1345
|
+
preview: "Welcome aboard — hintoric",
|
|
916
1346
|
eyebrow: "Thanks for joining",
|
|
917
|
-
heading: "Welcome to
|
|
918
|
-
body1: "You're all set. As soon as your spot opens up we'll let you know — you'll be one of the first to try
|
|
1347
|
+
heading: "Welcome to hintoric",
|
|
1348
|
+
body1: "You're all set. As soon as your spot opens up we'll let you know — you'll be one of the first to try hintoric.",
|
|
919
1349
|
body2: "Until then we'll keep you posted. If someone you know should be on the list too, feel free to forward this email.",
|
|
920
1350
|
cta: "Go to hintoric.com",
|
|
921
|
-
signoff: "— Your
|
|
922
|
-
footer: "We sent you this email because you signed up for the
|
|
1351
|
+
signoff: "— Your hintoric team",
|
|
1352
|
+
footer: "We sent you this email because you signed up for the hintoric waitlist.",
|
|
923
1353
|
unsubscribe: "Unsubscribe"
|
|
924
1354
|
};
|
|
925
1355
|
//#endregion
|
|
926
|
-
export {
|
|
1356
|
+
export { L as Alert, de as AlertTitle, H as AuthCodeContent, V as AuthCodeEmail, q as AuthNoAccountContent, K as AuthNoAccountEmail, M as Avatar, k as Button, j as Card, pe as Chip, O as ColorSchemeStyles, A as Divider, P as EMAIL_ALERT_ICON_BASE, N as EMAIL_ALERT_ICON_FOR_COLOR, m as EMAIL_COLORS, h as EMAIL_VARIANTS, z as HintoricLogo, D as Layout, T as Link, X as SecurityActivityAlertContent, Y as SecurityActivityAlertEmail, E as Typography, $ as WaitlistWelcomeContent, Q as WaitlistWelcomeEmail, _e as authCodeMessagesDe, ye as authCodeMessagesEn, xe as authNoAccountMessagesDe, Se as authNoAccountMessagesEn, I as emailAlertIcon, ce as emailAlertIconFiles, F as emailAlertIconUrl, y as emailFonts, p as emailPalette, b as emailRadius, v as emailSchemes, _ as mainColor, me as renderAuthCode, be as renderAuthNoAccount, f as renderEmail, Te as renderSecurityActivityAlert, Oe as renderWaitlistWelcome, x as safeHref, S as safeImageSrc, Ee as securityActivityAlertMessagesDe, De as securityActivityAlertMessagesEn, g as variantTokens, ke as waitlistWelcomeMessagesDe, Ae as waitlistWelcomeMessagesEn };
|
|
927
1357
|
|
|
928
1358
|
//# sourceMappingURL=index.js.map
|