@indobaseinc/auth-ui-shared 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +345 -0
- package/dist/index.js +497 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +458 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +46 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
CLASS_NAMES: () => CLASS_NAMES,
|
|
24
|
+
PREPENDED_CLASS_NAMES: () => PREPENDED_CLASS_NAMES,
|
|
25
|
+
SocialLayouts: () => SocialLayouts,
|
|
26
|
+
ThemeMinimal: () => ThemeMinimal,
|
|
27
|
+
ThemeSupa: () => ThemeSupa,
|
|
28
|
+
VIEWS: () => VIEWS,
|
|
29
|
+
darkThemes: () => darkThemes,
|
|
30
|
+
en: () => en_default,
|
|
31
|
+
generateClassNames: () => generateClassNames,
|
|
32
|
+
merge: () => merge,
|
|
33
|
+
minimal: () => minimal,
|
|
34
|
+
supabase: () => supabase,
|
|
35
|
+
template: () => template
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(src_exports);
|
|
38
|
+
|
|
39
|
+
// src/theming/defaultThemes.ts
|
|
40
|
+
var ThemeSupa = {
|
|
41
|
+
default: {
|
|
42
|
+
colors: {
|
|
43
|
+
brand: "hsl(153 60.0% 53.0%)",
|
|
44
|
+
brandAccent: "hsl(154 54.8% 45.1%)",
|
|
45
|
+
brandButtonText: "white",
|
|
46
|
+
defaultButtonBackground: "white",
|
|
47
|
+
defaultButtonBackgroundHover: "#eaeaea",
|
|
48
|
+
defaultButtonBorder: "lightgray",
|
|
49
|
+
defaultButtonText: "gray",
|
|
50
|
+
dividerBackground: "#eaeaea",
|
|
51
|
+
inputBackground: "transparent",
|
|
52
|
+
inputBorder: "lightgray",
|
|
53
|
+
inputBorderHover: "gray",
|
|
54
|
+
inputBorderFocus: "gray",
|
|
55
|
+
inputText: "black",
|
|
56
|
+
inputLabelText: "gray",
|
|
57
|
+
inputPlaceholder: "darkgray",
|
|
58
|
+
messageText: "#2b805a",
|
|
59
|
+
messageBackground: "#e7fcf1",
|
|
60
|
+
messageBorder: "#d0f3e1",
|
|
61
|
+
messageTextDanger: "#ff6369",
|
|
62
|
+
messageBackgroundDanger: "#fff8f8",
|
|
63
|
+
messageBorderDanger: "#822025",
|
|
64
|
+
anchorTextColor: "gray",
|
|
65
|
+
anchorTextHoverColor: "darkgray"
|
|
66
|
+
},
|
|
67
|
+
space: {
|
|
68
|
+
spaceSmall: "4px",
|
|
69
|
+
spaceMedium: "8px",
|
|
70
|
+
spaceLarge: "16px",
|
|
71
|
+
labelBottomMargin: "8px",
|
|
72
|
+
anchorBottomMargin: "4px",
|
|
73
|
+
emailInputSpacing: "4px",
|
|
74
|
+
socialAuthSpacing: "4px",
|
|
75
|
+
buttonPadding: "10px 15px",
|
|
76
|
+
inputPadding: "10px 15px"
|
|
77
|
+
},
|
|
78
|
+
fontSizes: {
|
|
79
|
+
baseBodySize: "13px",
|
|
80
|
+
baseInputSize: "14px",
|
|
81
|
+
baseLabelSize: "14px",
|
|
82
|
+
baseButtonSize: "14px"
|
|
83
|
+
},
|
|
84
|
+
fonts: {
|
|
85
|
+
bodyFontFamily: `ui-sans-serif, sans-serif`,
|
|
86
|
+
buttonFontFamily: `ui-sans-serif, sans-serif`,
|
|
87
|
+
inputFontFamily: `ui-sans-serif, sans-serif`,
|
|
88
|
+
labelFontFamily: `ui-sans-serif, sans-serif`
|
|
89
|
+
},
|
|
90
|
+
// fontWeights: {},
|
|
91
|
+
// lineHeights: {},
|
|
92
|
+
// letterSpacings: {},
|
|
93
|
+
// sizes: {},
|
|
94
|
+
borderWidths: {
|
|
95
|
+
buttonBorderWidth: "1px",
|
|
96
|
+
inputBorderWidth: "1px"
|
|
97
|
+
},
|
|
98
|
+
// borderStyles: {},
|
|
99
|
+
radii: {
|
|
100
|
+
borderRadiusButton: "4px",
|
|
101
|
+
buttonBorderRadius: "4px",
|
|
102
|
+
inputBorderRadius: "4px"
|
|
103
|
+
}
|
|
104
|
+
// shadows: {},
|
|
105
|
+
// zIndices: {},
|
|
106
|
+
// transitions: {},
|
|
107
|
+
},
|
|
108
|
+
dark: {
|
|
109
|
+
colors: {
|
|
110
|
+
brandButtonText: "white",
|
|
111
|
+
defaultButtonBackground: "#2e2e2e",
|
|
112
|
+
defaultButtonBackgroundHover: "#3e3e3e",
|
|
113
|
+
defaultButtonBorder: "#3e3e3e",
|
|
114
|
+
defaultButtonText: "white",
|
|
115
|
+
dividerBackground: "#2e2e2e",
|
|
116
|
+
inputBackground: "#1e1e1e",
|
|
117
|
+
inputBorder: "#3e3e3e",
|
|
118
|
+
inputBorderHover: "gray",
|
|
119
|
+
inputBorderFocus: "gray",
|
|
120
|
+
inputText: "white",
|
|
121
|
+
inputPlaceholder: "darkgray",
|
|
122
|
+
messageText: "#85e0b7",
|
|
123
|
+
messageBackground: "#072719",
|
|
124
|
+
messageBorder: "#2b805a",
|
|
125
|
+
messageBackgroundDanger: "#1f1315"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
var ThemeMinimal = {
|
|
130
|
+
default: {
|
|
131
|
+
colors: {
|
|
132
|
+
brand: "black",
|
|
133
|
+
brandAccent: "#333333",
|
|
134
|
+
brandButtonText: "white",
|
|
135
|
+
defaultButtonBackground: "white",
|
|
136
|
+
defaultButtonBorder: "lightgray",
|
|
137
|
+
defaultButtonText: "gray",
|
|
138
|
+
dividerBackground: "#eaeaea",
|
|
139
|
+
inputBackground: "transparent",
|
|
140
|
+
inputBorder: "lightgray",
|
|
141
|
+
inputText: "black",
|
|
142
|
+
inputPlaceholder: "darkgray",
|
|
143
|
+
messageText: "#2b805a",
|
|
144
|
+
messageBackground: "#e7fcf1",
|
|
145
|
+
messageBorder: "#d0f3e1",
|
|
146
|
+
messageTextDanger: "#ff6369",
|
|
147
|
+
messageBackgroundDanger: "#fff8f8",
|
|
148
|
+
messageBorderDanger: "#822025"
|
|
149
|
+
},
|
|
150
|
+
space: {
|
|
151
|
+
spaceSmall: "4px",
|
|
152
|
+
spaceMedium: "8px",
|
|
153
|
+
spaceLarge: "16px"
|
|
154
|
+
},
|
|
155
|
+
fontSizes: {
|
|
156
|
+
baseInputSize: "14px",
|
|
157
|
+
baseLabelSize: "12px"
|
|
158
|
+
},
|
|
159
|
+
fonts: {
|
|
160
|
+
bodyFontFamily: "",
|
|
161
|
+
inputFontFamily: "",
|
|
162
|
+
buttonFontFamily: "",
|
|
163
|
+
labelFontFamily: ""
|
|
164
|
+
// linkFontFamily: '',
|
|
165
|
+
},
|
|
166
|
+
// fontWeights: {},
|
|
167
|
+
// lineHeights: {},
|
|
168
|
+
// letterSpacings: {},
|
|
169
|
+
// sizes: {},
|
|
170
|
+
borderWidths: {},
|
|
171
|
+
// borderStyles: {},
|
|
172
|
+
radii: {}
|
|
173
|
+
// shadows: {},
|
|
174
|
+
// zIndices: {},
|
|
175
|
+
// transitions: {},
|
|
176
|
+
},
|
|
177
|
+
dark: {
|
|
178
|
+
colors: {
|
|
179
|
+
brand: "white",
|
|
180
|
+
brandAccent: "#afafaf",
|
|
181
|
+
brandButtonText: "black",
|
|
182
|
+
defaultButtonBackground: "#080808",
|
|
183
|
+
defaultButtonBorder: "black",
|
|
184
|
+
defaultButtonText: "white",
|
|
185
|
+
dividerBackground: "black",
|
|
186
|
+
inputBackground: "transparent",
|
|
187
|
+
inputBorder: "gray",
|
|
188
|
+
inputText: "black",
|
|
189
|
+
inputPlaceholder: "darkgray",
|
|
190
|
+
messageText: "#85e0b7",
|
|
191
|
+
messageBackground: "#072719",
|
|
192
|
+
messageBorder: "#2b805a",
|
|
193
|
+
messageBackgroundDanger: "#1f1315"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// src/theming/Themes.ts
|
|
199
|
+
var supabase = {
|
|
200
|
+
colors: {
|
|
201
|
+
brand: "hsl(153 60.0% 53.0%)",
|
|
202
|
+
brandAccent: "hsl(154 54.8% 45.1%)",
|
|
203
|
+
brandButtonText: "white",
|
|
204
|
+
defaultButtonBackground: "white",
|
|
205
|
+
defaultButtonBackgroundHover: "#eaeaea",
|
|
206
|
+
defaultButtonBorder: "lightgray",
|
|
207
|
+
defaultButtonText: "gray",
|
|
208
|
+
dividerBackground: "#eaeaea",
|
|
209
|
+
inputBackground: "transparent",
|
|
210
|
+
inputBorder: "lightgray",
|
|
211
|
+
inputBorderHover: "gray",
|
|
212
|
+
inputBorderFocus: "gray",
|
|
213
|
+
inputText: "black",
|
|
214
|
+
inputLabelText: "gray",
|
|
215
|
+
inputPlaceholder: "darkgray",
|
|
216
|
+
messageText: "gray",
|
|
217
|
+
messageTextDanger: "red",
|
|
218
|
+
anchorTextColor: "gray",
|
|
219
|
+
anchorTextHoverColor: "darkgray"
|
|
220
|
+
},
|
|
221
|
+
space: {
|
|
222
|
+
spaceSmall: "4px",
|
|
223
|
+
spaceMedium: "8px",
|
|
224
|
+
spaceLarge: "16px",
|
|
225
|
+
labelBottomMargin: "8px",
|
|
226
|
+
anchorBottomMargin: "4px",
|
|
227
|
+
emailInputSpacing: "4px",
|
|
228
|
+
socialAuthSpacing: "4px",
|
|
229
|
+
buttonPadding: "10px 15px",
|
|
230
|
+
inputPadding: "10px 15px"
|
|
231
|
+
},
|
|
232
|
+
fontSizes: {
|
|
233
|
+
baseBodySize: "13px",
|
|
234
|
+
baseInputSize: "14px",
|
|
235
|
+
baseLabelSize: "14px",
|
|
236
|
+
baseButtonSize: "14px"
|
|
237
|
+
},
|
|
238
|
+
fonts: {
|
|
239
|
+
bodyFontFamily: `ui-sans-serif, sans-serif`,
|
|
240
|
+
buttonFontFamily: `ui-sans-serif, sans-serif`,
|
|
241
|
+
inputFontFamily: `ui-sans-serif, sans-serif`,
|
|
242
|
+
labelFontFamily: `ui-sans-serif, sans-serif`
|
|
243
|
+
},
|
|
244
|
+
// fontWeights: {},
|
|
245
|
+
// lineHeights: {},
|
|
246
|
+
// letterSpacings: {},
|
|
247
|
+
// sizes: {},
|
|
248
|
+
borderWidths: {
|
|
249
|
+
buttonBorderWidth: "1px",
|
|
250
|
+
inputBorderWidth: "1px"
|
|
251
|
+
},
|
|
252
|
+
// borderStyles: {},
|
|
253
|
+
radii: {
|
|
254
|
+
borderRadiusButton: "4px",
|
|
255
|
+
buttonBorderRadius: "4px",
|
|
256
|
+
inputBorderRadius: "4px"
|
|
257
|
+
}
|
|
258
|
+
// shadows: {},
|
|
259
|
+
// zIndices: {},
|
|
260
|
+
// transitions: {},
|
|
261
|
+
};
|
|
262
|
+
var defaultDarkTheme = {
|
|
263
|
+
colors: {
|
|
264
|
+
brandButtonText: "white",
|
|
265
|
+
defaultButtonBackground: "#2e2e2e",
|
|
266
|
+
defaultButtonBackgroundHover: "#3e3e3e",
|
|
267
|
+
defaultButtonBorder: "#3e3e3e",
|
|
268
|
+
defaultButtonText: "white",
|
|
269
|
+
dividerBackground: "#2e2e2e",
|
|
270
|
+
inputBackground: "#1e1e1e",
|
|
271
|
+
inputBorder: "#3e3e3e",
|
|
272
|
+
inputBorderHover: "gray",
|
|
273
|
+
inputBorderFocus: "gray",
|
|
274
|
+
inputText: "white",
|
|
275
|
+
inputPlaceholder: "darkgray"
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
var minimal = {
|
|
279
|
+
colors: {
|
|
280
|
+
brand: "black",
|
|
281
|
+
brandAccent: "#333333",
|
|
282
|
+
brandButtonText: "white",
|
|
283
|
+
defaultButtonBackground: "white",
|
|
284
|
+
defaultButtonBorder: "lightgray",
|
|
285
|
+
defaultButtonText: "gray",
|
|
286
|
+
dividerBackground: "#eaeaea",
|
|
287
|
+
inputBackground: "transparent",
|
|
288
|
+
inputBorder: "lightgray",
|
|
289
|
+
inputText: "black",
|
|
290
|
+
inputPlaceholder: "darkgray"
|
|
291
|
+
},
|
|
292
|
+
space: {
|
|
293
|
+
spaceSmall: "4px",
|
|
294
|
+
spaceMedium: "8px",
|
|
295
|
+
spaceLarge: "16px"
|
|
296
|
+
},
|
|
297
|
+
fontSizes: {
|
|
298
|
+
baseInputSize: "14px",
|
|
299
|
+
baseLabelSize: "12px"
|
|
300
|
+
},
|
|
301
|
+
fonts: {
|
|
302
|
+
bodyFontFamily: "",
|
|
303
|
+
inputFontFamily: "",
|
|
304
|
+
buttonFontFamily: "",
|
|
305
|
+
labelFontFamily: ""
|
|
306
|
+
// linkFontFamily: '',
|
|
307
|
+
},
|
|
308
|
+
// fontWeights: {},
|
|
309
|
+
// lineHeights: {},
|
|
310
|
+
// letterSpacings: {},
|
|
311
|
+
// sizes: {},
|
|
312
|
+
borderWidths: {},
|
|
313
|
+
// borderStyles: {},
|
|
314
|
+
radii: {}
|
|
315
|
+
// shadows: {},
|
|
316
|
+
// zIndices: {},
|
|
317
|
+
// transitions: {},
|
|
318
|
+
};
|
|
319
|
+
var minimalDark = {
|
|
320
|
+
colors: {
|
|
321
|
+
brand: "white",
|
|
322
|
+
brandAccent: "#afafaf",
|
|
323
|
+
brandButtonText: "black",
|
|
324
|
+
defaultButtonBackground: "#080808",
|
|
325
|
+
defaultButtonBorder: "black",
|
|
326
|
+
defaultButtonText: "white",
|
|
327
|
+
dividerBackground: "black",
|
|
328
|
+
inputBackground: "transparent",
|
|
329
|
+
inputBorder: "gray",
|
|
330
|
+
inputText: "black",
|
|
331
|
+
inputPlaceholder: "darkgray"
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
var darkThemes = {
|
|
335
|
+
supabase: defaultDarkTheme,
|
|
336
|
+
minimal: minimalDark
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
// src/constants.ts
|
|
340
|
+
var VIEWS = {
|
|
341
|
+
SIGN_IN: "sign_in",
|
|
342
|
+
SIGN_UP: "sign_up",
|
|
343
|
+
FORGOTTEN_PASSWORD: "forgotten_password",
|
|
344
|
+
MAGIC_LINK: "magic_link",
|
|
345
|
+
UPDATE_PASSWORD: "update_password",
|
|
346
|
+
VERIFY_OTP: "verify_otp"
|
|
347
|
+
};
|
|
348
|
+
var PREPENDED_CLASS_NAMES = "supabase-auth-ui";
|
|
349
|
+
var CLASS_NAMES = {
|
|
350
|
+
// interfaces
|
|
351
|
+
ROOT: "root",
|
|
352
|
+
SIGN_IN: VIEWS.SIGN_IN,
|
|
353
|
+
SIGN_UP: VIEWS.SIGN_UP,
|
|
354
|
+
FORGOTTEN_PASSWORD: VIEWS.FORGOTTEN_PASSWORD,
|
|
355
|
+
MAGIC_LINK: VIEWS.MAGIC_LINK,
|
|
356
|
+
UPDATE_PASSWORD: VIEWS.UPDATE_PASSWORD,
|
|
357
|
+
// ui
|
|
358
|
+
anchor: "ui-anchor",
|
|
359
|
+
button: "ui-button",
|
|
360
|
+
container: "ui-container",
|
|
361
|
+
divider: "ui-divider",
|
|
362
|
+
input: "ui-input",
|
|
363
|
+
label: "ui-label",
|
|
364
|
+
loader: "ui-loader",
|
|
365
|
+
message: "ui-message"
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
// src/theming/utils.ts
|
|
369
|
+
function generateClassNames(classNameKey, defaultStyles, appearance) {
|
|
370
|
+
var _a, _b;
|
|
371
|
+
const classNames = [];
|
|
372
|
+
const className = CLASS_NAMES[classNameKey];
|
|
373
|
+
classNames.push(
|
|
374
|
+
(appearance == null ? void 0 : appearance.prependedClassName) ? (appearance == null ? void 0 : appearance.prependedClassName) + "_" + className : PREPENDED_CLASS_NAMES + "_" + className
|
|
375
|
+
);
|
|
376
|
+
if ((_a = appearance == null ? void 0 : appearance.className) == null ? void 0 : _a[classNameKey]) {
|
|
377
|
+
classNames.push((_b = appearance == null ? void 0 : appearance.className) == null ? void 0 : _b[classNameKey]);
|
|
378
|
+
}
|
|
379
|
+
if ((appearance == null ? void 0 : appearance.extend) === void 0 || (appearance == null ? void 0 : appearance.extend) === true) {
|
|
380
|
+
classNames.push(defaultStyles);
|
|
381
|
+
}
|
|
382
|
+
return classNames;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// src/types.ts
|
|
386
|
+
var SocialLayouts = /* @__PURE__ */ ((SocialLayouts2) => {
|
|
387
|
+
SocialLayouts2[SocialLayouts2["horizontal"] = 0] = "horizontal";
|
|
388
|
+
SocialLayouts2[SocialLayouts2["vertical"] = 1] = "vertical";
|
|
389
|
+
return SocialLayouts2;
|
|
390
|
+
})(SocialLayouts || {});
|
|
391
|
+
|
|
392
|
+
// src/utils.ts
|
|
393
|
+
function value(src, next) {
|
|
394
|
+
let k;
|
|
395
|
+
if (src && next && typeof src === "object" && typeof next === "object") {
|
|
396
|
+
if (Array.isArray(next)) {
|
|
397
|
+
for (k = 0; k < next.length; k++) {
|
|
398
|
+
src[k] = value(src[k], next[k]);
|
|
399
|
+
}
|
|
400
|
+
} else {
|
|
401
|
+
for (k in next) {
|
|
402
|
+
src[k] = value(src[k], next[k]);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return src;
|
|
406
|
+
}
|
|
407
|
+
return next;
|
|
408
|
+
}
|
|
409
|
+
function merge(target, ...args) {
|
|
410
|
+
let len = args.length;
|
|
411
|
+
for (let i = 0; i < len; i++) {
|
|
412
|
+
target = value(target, args[i]);
|
|
413
|
+
}
|
|
414
|
+
return target;
|
|
415
|
+
}
|
|
416
|
+
function template(string, data) {
|
|
417
|
+
return string.replace(
|
|
418
|
+
/{{(\w+)}}/g,
|
|
419
|
+
(placeholderWithDelimiters, placeholderWithoutDelimiters) => data.hasOwnProperty(placeholderWithoutDelimiters) ? data[placeholderWithoutDelimiters] : placeholderWithDelimiters
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// src/localization/en.json
|
|
424
|
+
var en_default = {
|
|
425
|
+
sign_up: {
|
|
426
|
+
email_label: "Email address",
|
|
427
|
+
password_label: "Create a Password",
|
|
428
|
+
email_input_placeholder: "Your email address",
|
|
429
|
+
password_input_placeholder: "Your password",
|
|
430
|
+
button_label: "Sign up",
|
|
431
|
+
loading_button_label: "Signing up ...",
|
|
432
|
+
social_provider_text: "Sign in with {{provider}}",
|
|
433
|
+
link_text: "Don't have an account? Sign up",
|
|
434
|
+
confirmation_text: "Check your email for the confirmation link"
|
|
435
|
+
},
|
|
436
|
+
sign_in: {
|
|
437
|
+
email_label: "Email address",
|
|
438
|
+
password_label: "Your Password",
|
|
439
|
+
email_input_placeholder: "Your email address",
|
|
440
|
+
password_input_placeholder: "Your password",
|
|
441
|
+
button_label: "Sign in",
|
|
442
|
+
loading_button_label: "Signing in ...",
|
|
443
|
+
social_provider_text: "Sign in with {{provider}}",
|
|
444
|
+
link_text: "Already have an account? Sign in"
|
|
445
|
+
},
|
|
446
|
+
magic_link: {
|
|
447
|
+
email_input_label: "Email address",
|
|
448
|
+
email_input_placeholder: "Your email address",
|
|
449
|
+
button_label: "Send Magic Link",
|
|
450
|
+
loading_button_label: "Sending Magic Link ...",
|
|
451
|
+
link_text: "Send a magic link email",
|
|
452
|
+
confirmation_text: "Check your email for the magic link"
|
|
453
|
+
},
|
|
454
|
+
forgotten_password: {
|
|
455
|
+
email_label: "Email address",
|
|
456
|
+
password_label: "Your Password",
|
|
457
|
+
email_input_placeholder: "Your email address",
|
|
458
|
+
button_label: "Send reset password instructions",
|
|
459
|
+
loading_button_label: "Sending reset instructions ...",
|
|
460
|
+
link_text: "Forgot your password?",
|
|
461
|
+
confirmation_text: "Check your email for the password reset link"
|
|
462
|
+
},
|
|
463
|
+
update_password: {
|
|
464
|
+
password_label: "New password",
|
|
465
|
+
password_input_placeholder: "Your new password",
|
|
466
|
+
button_label: "Update password",
|
|
467
|
+
loading_button_label: "Updating password ...",
|
|
468
|
+
confirmation_text: "Your password has been updated"
|
|
469
|
+
},
|
|
470
|
+
verify_otp: {
|
|
471
|
+
email_input_label: "Email address",
|
|
472
|
+
email_input_placeholder: "Your email address",
|
|
473
|
+
phone_input_label: "Phone number",
|
|
474
|
+
phone_input_placeholder: "Your phone number",
|
|
475
|
+
token_input_label: "Token",
|
|
476
|
+
token_input_placeholder: "Your Otp token",
|
|
477
|
+
button_label: "Verify token",
|
|
478
|
+
loading_button_label: "Signing in ..."
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
482
|
+
0 && (module.exports = {
|
|
483
|
+
CLASS_NAMES,
|
|
484
|
+
PREPENDED_CLASS_NAMES,
|
|
485
|
+
SocialLayouts,
|
|
486
|
+
ThemeMinimal,
|
|
487
|
+
ThemeSupa,
|
|
488
|
+
VIEWS,
|
|
489
|
+
darkThemes,
|
|
490
|
+
en,
|
|
491
|
+
generateClassNames,
|
|
492
|
+
merge,
|
|
493
|
+
minimal,
|
|
494
|
+
supabase,
|
|
495
|
+
template
|
|
496
|
+
});
|
|
497
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/theming/defaultThemes.ts","../src/theming/Themes.ts","../src/constants.ts","../src/theming/utils.ts","../src/types.ts","../src/utils.ts","../src/localization/en.json"],"sourcesContent":["export * from './theming'\nexport * from './constants'\nexport * from './types'\nexport * from './utils'\nexport { en } from './localization'\n","/**\n * Create default theme\n *\n * createStitches()\n * https://stitches.dev/docs/api#theme\n *\n * to add a new theme use createTheme({})\n * https://stitches.dev/docs/api#theme\n */\n\nimport { Theme } from './../types'\n\n// brand: 'hsl(252 62% 55%)',\n// brandAccent: 'hsl(252 62% 45%)',\n\nexport const ThemeSupa: Theme = {\n default: {\n colors: {\n brand: 'hsl(153 60.0% 53.0%)',\n brandAccent: 'hsl(154 54.8% 45.1%)',\n brandButtonText: 'white',\n defaultButtonBackground: 'white',\n defaultButtonBackgroundHover: '#eaeaea',\n defaultButtonBorder: 'lightgray',\n defaultButtonText: 'gray',\n dividerBackground: '#eaeaea',\n inputBackground: 'transparent',\n inputBorder: 'lightgray',\n inputBorderHover: 'gray',\n inputBorderFocus: 'gray',\n inputText: 'black',\n inputLabelText: 'gray',\n inputPlaceholder: 'darkgray',\n messageText: '#2b805a',\n messageBackground: '#e7fcf1',\n messageBorder: '#d0f3e1',\n messageTextDanger: '#ff6369',\n messageBackgroundDanger: '#fff8f8',\n messageBorderDanger: '#822025',\n anchorTextColor: 'gray',\n anchorTextHoverColor: 'darkgray',\n },\n space: {\n spaceSmall: '4px',\n spaceMedium: '8px',\n spaceLarge: '16px',\n labelBottomMargin: '8px',\n anchorBottomMargin: '4px',\n emailInputSpacing: '4px',\n socialAuthSpacing: '4px',\n buttonPadding: '10px 15px',\n inputPadding: '10px 15px',\n },\n fontSizes: {\n baseBodySize: '13px',\n baseInputSize: '14px',\n baseLabelSize: '14px',\n baseButtonSize: '14px',\n },\n fonts: {\n bodyFontFamily: `ui-sans-serif, sans-serif`,\n buttonFontFamily: `ui-sans-serif, sans-serif`,\n inputFontFamily: `ui-sans-serif, sans-serif`,\n labelFontFamily: `ui-sans-serif, sans-serif`,\n },\n // fontWeights: {},\n // lineHeights: {},\n // letterSpacings: {},\n // sizes: {},\n borderWidths: {\n buttonBorderWidth: '1px',\n inputBorderWidth: '1px',\n },\n // borderStyles: {},\n radii: {\n borderRadiusButton: '4px',\n buttonBorderRadius: '4px',\n inputBorderRadius: '4px',\n },\n // shadows: {},\n // zIndices: {},\n // transitions: {},\n },\n dark: {\n colors: {\n brandButtonText: 'white',\n defaultButtonBackground: '#2e2e2e',\n defaultButtonBackgroundHover: '#3e3e3e',\n defaultButtonBorder: '#3e3e3e',\n defaultButtonText: 'white',\n dividerBackground: '#2e2e2e',\n inputBackground: '#1e1e1e',\n inputBorder: '#3e3e3e',\n inputBorderHover: 'gray',\n inputBorderFocus: 'gray',\n inputText: 'white',\n inputPlaceholder: 'darkgray',\n messageText: '#85e0b7',\n messageBackground: '#072719',\n messageBorder: '#2b805a',\n messageBackgroundDanger: '#1f1315',\n },\n },\n}\n\nexport const ThemeMinimal: Theme = {\n default: {\n colors: {\n brand: 'black',\n brandAccent: '#333333',\n brandButtonText: 'white',\n defaultButtonBackground: 'white',\n defaultButtonBorder: 'lightgray',\n defaultButtonText: 'gray',\n dividerBackground: '#eaeaea',\n inputBackground: 'transparent',\n inputBorder: 'lightgray',\n inputText: 'black',\n inputPlaceholder: 'darkgray',\n messageText: '#2b805a',\n messageBackground: '#e7fcf1',\n messageBorder: '#d0f3e1',\n messageTextDanger: '#ff6369',\n messageBackgroundDanger: '#fff8f8',\n messageBorderDanger: '#822025',\n },\n space: {\n spaceSmall: '4px',\n spaceMedium: '8px',\n spaceLarge: '16px',\n },\n fontSizes: {\n baseInputSize: '14px',\n baseLabelSize: '12px',\n },\n fonts: {\n bodyFontFamily: '',\n inputFontFamily: '',\n buttonFontFamily: '',\n labelFontFamily: '',\n // linkFontFamily: '',\n },\n // fontWeights: {},\n // lineHeights: {},\n // letterSpacings: {},\n // sizes: {},\n borderWidths: {},\n // borderStyles: {},\n radii: {},\n // shadows: {},\n // zIndices: {},\n // transitions: {},\n },\n dark: {\n colors: {\n brand: 'white',\n brandAccent: '#afafaf',\n brandButtonText: 'black',\n defaultButtonBackground: '#080808',\n defaultButtonBorder: 'black',\n defaultButtonText: 'white',\n dividerBackground: 'black',\n inputBackground: 'transparent',\n inputBorder: 'gray',\n inputText: 'black',\n inputPlaceholder: 'darkgray',\n messageText: '#85e0b7',\n messageBackground: '#072719',\n messageBorder: '#2b805a',\n messageBackgroundDanger: '#1f1315',\n },\n },\n}\n","/**\n * Create default theme\n *\n * createStitches()\n * https://stitches.dev/docs/api#theme\n *\n * to add a new theme use createTheme({})\n * https://stitches.dev/docs/api#theme\n */\n\nimport { ThemeVariables } from './Types'\n\n// brand: 'hsl(252 62% 55%)',\n// brandAccent: 'hsl(252 62% 45%)',\n\nconst supabase: ThemeVariables = {\n colors: {\n brand: 'hsl(153 60.0% 53.0%)',\n brandAccent: 'hsl(154 54.8% 45.1%)',\n brandButtonText: 'white',\n defaultButtonBackground: 'white',\n defaultButtonBackgroundHover: '#eaeaea',\n defaultButtonBorder: 'lightgray',\n defaultButtonText: 'gray',\n dividerBackground: '#eaeaea',\n inputBackground: 'transparent',\n inputBorder: 'lightgray',\n inputBorderHover: 'gray',\n inputBorderFocus: 'gray',\n inputText: 'black',\n inputLabelText: 'gray',\n inputPlaceholder: 'darkgray',\n messageText: 'gray',\n messageTextDanger: 'red',\n anchorTextColor: 'gray',\n anchorTextHoverColor: 'darkgray',\n },\n space: {\n spaceSmall: '4px',\n spaceMedium: '8px',\n spaceLarge: '16px',\n labelBottomMargin: '8px',\n anchorBottomMargin: '4px',\n emailInputSpacing: '4px',\n socialAuthSpacing: '4px',\n buttonPadding: '10px 15px',\n inputPadding: '10px 15px',\n },\n fontSizes: {\n baseBodySize: '13px',\n baseInputSize: '14px',\n baseLabelSize: '14px',\n baseButtonSize: '14px',\n },\n fonts: {\n bodyFontFamily: `ui-sans-serif, sans-serif`,\n buttonFontFamily: `ui-sans-serif, sans-serif`,\n inputFontFamily: `ui-sans-serif, sans-serif`,\n labelFontFamily: `ui-sans-serif, sans-serif`,\n },\n // fontWeights: {},\n // lineHeights: {},\n // letterSpacings: {},\n // sizes: {},\n borderWidths: {\n buttonBorderWidth: '1px',\n inputBorderWidth: '1px',\n },\n // borderStyles: {},\n radii: {\n borderRadiusButton: '4px',\n buttonBorderRadius: '4px',\n inputBorderRadius: '4px',\n },\n // shadows: {},\n // zIndices: {},\n // transitions: {},\n}\n\nconst defaultDarkTheme: ThemeVariables = {\n colors: {\n brandButtonText: 'white',\n defaultButtonBackground: '#2e2e2e',\n defaultButtonBackgroundHover: '#3e3e3e',\n defaultButtonBorder: '#3e3e3e',\n defaultButtonText: 'white',\n dividerBackground: '#2e2e2e',\n inputBackground: '#1e1e1e',\n inputBorder: '#3e3e3e',\n inputBorderHover: 'gray',\n inputBorderFocus: 'gray',\n inputText: 'white',\n inputPlaceholder: 'darkgray',\n },\n}\n\nconst minimal: ThemeVariables = {\n colors: {\n brand: 'black',\n brandAccent: '#333333',\n brandButtonText: 'white',\n defaultButtonBackground: 'white',\n defaultButtonBorder: 'lightgray',\n defaultButtonText: 'gray',\n dividerBackground: '#eaeaea',\n inputBackground: 'transparent',\n inputBorder: 'lightgray',\n inputText: 'black',\n inputPlaceholder: 'darkgray',\n },\n space: {\n spaceSmall: '4px',\n spaceMedium: '8px',\n spaceLarge: '16px',\n },\n fontSizes: {\n baseInputSize: '14px',\n baseLabelSize: '12px',\n },\n fonts: {\n bodyFontFamily: '',\n inputFontFamily: '',\n buttonFontFamily: '',\n labelFontFamily: '',\n // linkFontFamily: '',\n },\n // fontWeights: {},\n // lineHeights: {},\n // letterSpacings: {},\n // sizes: {},\n borderWidths: {},\n // borderStyles: {},\n radii: {},\n // shadows: {},\n // zIndices: {},\n // transitions: {},\n}\n\nconst minimalDark: ThemeVariables = {\n colors: {\n brand: 'white',\n brandAccent: '#afafaf',\n brandButtonText: 'black',\n defaultButtonBackground: '#080808',\n defaultButtonBorder: 'black',\n defaultButtonText: 'white',\n dividerBackground: 'black',\n inputBackground: 'transparent',\n inputBorder: 'gray',\n inputText: 'black',\n inputPlaceholder: 'darkgray',\n },\n}\n\nconst darkThemes = {\n supabase: defaultDarkTheme,\n minimal: minimalDark,\n}\n\nexport { supabase, minimal, darkThemes }\n","import { ViewsMap } from './types'\n\nexport const VIEWS: ViewsMap = {\n SIGN_IN: 'sign_in',\n SIGN_UP: 'sign_up',\n FORGOTTEN_PASSWORD: 'forgotten_password',\n MAGIC_LINK: 'magic_link',\n UPDATE_PASSWORD: 'update_password',\n VERIFY_OTP: 'verify_otp',\n}\n\nexport const PREPENDED_CLASS_NAMES = 'supabase-auth-ui'\n\n/**\n * CSS class names\n * used for generating prepended classes\n */\nexport const CLASS_NAMES = {\n // interfaces\n ROOT: 'root',\n SIGN_IN: VIEWS.SIGN_IN,\n SIGN_UP: VIEWS.SIGN_UP,\n FORGOTTEN_PASSWORD: VIEWS.FORGOTTEN_PASSWORD,\n MAGIC_LINK: VIEWS.MAGIC_LINK,\n UPDATE_PASSWORD: VIEWS.UPDATE_PASSWORD,\n // ui\n anchor: 'ui-anchor',\n button: 'ui-button',\n container: 'ui-container',\n divider: 'ui-divider',\n input: 'ui-input',\n label: 'ui-label',\n loader: 'ui-loader',\n message: 'ui-message',\n}\n","import { BaseAppearance } from '../types'\nimport { CLASS_NAMES, PREPENDED_CLASS_NAMES } from './../constants'\n\nexport function generateClassNames(\n /**\n * name of css class name variable\n */\n classNameKey:\n | 'button'\n | 'container'\n | 'anchor'\n | 'divider'\n | 'label'\n | 'input'\n | 'loader'\n | 'message',\n /**\n * stiches CSS output\n */\n defaultStyles: string,\n /**\n * appearance variables\n */\n appearance?: BaseAppearance\n) {\n const classNames = []\n const className = CLASS_NAMES[classNameKey]\n\n classNames.push(\n appearance?.prependedClassName\n ? appearance?.prependedClassName + '_' + className\n : PREPENDED_CLASS_NAMES + '_' + className\n )\n\n if (appearance?.className?.[classNameKey]) {\n classNames.push(appearance?.className?.[classNameKey])\n }\n\n if (appearance?.extend === undefined || appearance?.extend === true) {\n classNames.push(defaultStyles)\n }\n\n return classNames\n}\n","import type { CssComponent } from '@stitches/core/types/styled-component'\nimport type {\n EmailOtpType,\n MobileOtpType,\n Provider,\n} from '@indobaseinc/auth-js'\nimport type { IndobaseClient } from '@indobaseinc/indobase-js'\nimport { ThemeVariables } from './theming'\n\nexport interface AnimationTailwindClasses {\n enter?: string\n enterFrom?: string\n enterTo?: string\n leave?: string\n leaveFrom?: string\n leaveTo?: string\n}\n\nexport type AuthProviders = Provider\nexport interface Localization {\n // [key: string]: I18nVariables\n ['en']: I18nVariables\n}\n\n// export type SocialLayout = 'horizontal' | 'vertical'\nexport enum SocialLayouts {\n 'horizontal',\n 'vertical',\n}\nexport type SocialLayout = keyof typeof SocialLayouts\nexport type SocialButtonSize = 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'\n\nexport type ViewSignIn = 'sign_in'\nexport type ViewSignUp = 'sign_up'\nexport type ViewMagicLink = 'magic_link'\nexport type ViewForgottenPassword = 'forgotten_password'\nexport type ViewUpdatePassword = 'update_password'\nexport type ViewVerifyOtp = 'verify_otp'\n\nexport type ViewType =\n | ViewSignIn\n | ViewSignUp\n | ViewMagicLink\n | ViewForgottenPassword\n | ViewUpdatePassword\n | ViewVerifyOtp\n\nexport interface ViewsMap {\n [key: string]: ViewType\n}\n\nexport interface Theme {\n default: ThemeVariables\n [key: string]: ThemeVariables\n}\n\nexport type RedirectTo = undefined | string\nexport type OtpType = EmailOtpType | MobileOtpType\n\nexport interface BaseAppearance {\n theme?: Theme\n prependedClassName?: string\n extend?: boolean\n variables?: {\n default: ThemeVariables\n [key: string]: ThemeVariables\n }\n className?: {\n anchor?: string | CssComponent\n button?: string | CssComponent\n container?: string | CssComponent\n divider?: string | CssComponent\n input?: string | CssComponent\n label?: string | CssComponent\n loader?: string | CssComponent\n message?: string | CssComponent\n }\n}\n\nexport type ProviderScopes = {\n [key in Partial<Provider>]: string\n}\n\nexport interface BaseAuth {\n supabaseClient: IndobaseClient\n socialLayout?: SocialLayout\n providers?: Provider[]\n providerScopes?: Partial<ProviderScopes>\n queryParams?: { [key: string]: string }\n view?: ViewType\n redirectTo?: RedirectTo\n onlyThirdPartyProviders?: boolean\n magicLink?: boolean\n showLinks?: boolean\n otpType?: OtpType\n additionalData?: { [key: string]: any }\n\n /**\n * This will toggle on the dark variation of the theme\n */\n dark?: boolean\n /**\n * Override the labels and button text\n */\n localization?: {\n variables?: I18nVariables\n }\n theme?: 'default' | string\n passwordLimit?: boolean\n}\n\nexport type I18nVariables = {\n sign_up?: {\n email_label?: string\n password_label?: string\n email_input_placeholder?: string\n password_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n social_provider_text?: string\n link_text?: string\n confirmation_text?: string\n }\n sign_in?: {\n email_label?: string\n password_label?: string\n email_input_placeholder?: string\n password_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n social_provider_text?: string\n link_text?: string\n }\n magic_link?: {\n email_input_label?: string\n email_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n link_text?: string\n confirmation_text?: string\n empty_email_address?: string\n }\n forgotten_password?: {\n email_label?: string\n password_label?: string\n email_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n link_text?: string\n confirmation_text?: string\n }\n update_password?: {\n password_label?: string\n password_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n confirmation_text?: string\n }\n verify_otp?: {\n email_input_label?: string\n email_input_placeholder?: string\n phone_input_label?: string\n phone_input_placeholder?: string\n token_input_label?: string\n token_input_placeholder?: string\n button_label?: string\n loading_button_label?: string\n }\n}\n","function value(src: any, next: any) {\n let k\n if (src && next && typeof src === 'object' && typeof next === 'object') {\n if (Array.isArray(next)) {\n for (k = 0; k < next.length; k++) {\n src[k] = value(src[k], next[k])\n }\n } else {\n for (k in next) {\n src[k] = value(src[k], next[k])\n }\n }\n return src\n }\n return next\n}\n\nexport function merge(target: any, ...args: any) {\n let len: number = args.length\n for (let i = 0; i < len; i++) {\n target = value(target, args[i])\n }\n return target\n}\n\n// Source https://stackoverflow.com/a/61634647/811799\nexport function template(string: string, data: Record<string, string>) {\n return string.replace(\n /{{(\\w+)}}/g,\n (placeholderWithDelimiters, placeholderWithoutDelimiters) =>\n data.hasOwnProperty(placeholderWithoutDelimiters)\n ? data[placeholderWithoutDelimiters]\n : placeholderWithDelimiters\n )\n}\n","{\n \"sign_up\": {\n \"email_label\": \"Email address\",\n \"password_label\": \"Create a Password\",\n \"email_input_placeholder\": \"Your email address\",\n \"password_input_placeholder\": \"Your password\",\n \"button_label\": \"Sign up\",\n \"loading_button_label\": \"Signing up ...\",\n \"social_provider_text\": \"Sign in with {{provider}}\",\n \"link_text\": \"Don't have an account? Sign up\",\n \"confirmation_text\": \"Check your email for the confirmation link\"\n },\n \"sign_in\": {\n \"email_label\": \"Email address\",\n \"password_label\": \"Your Password\",\n \"email_input_placeholder\": \"Your email address\",\n \"password_input_placeholder\": \"Your password\",\n \"button_label\": \"Sign in\",\n \"loading_button_label\": \"Signing in ...\",\n \"social_provider_text\": \"Sign in with {{provider}}\",\n \"link_text\": \"Already have an account? Sign in\"\n },\n \"magic_link\": {\n \"email_input_label\": \"Email address\",\n \"email_input_placeholder\": \"Your email address\",\n \"button_label\": \"Send Magic Link\",\n \"loading_button_label\": \"Sending Magic Link ...\",\n \"link_text\": \"Send a magic link email\",\n \"confirmation_text\": \"Check your email for the magic link\"\n },\n \"forgotten_password\": {\n \"email_label\": \"Email address\",\n \"password_label\": \"Your Password\",\n \"email_input_placeholder\": \"Your email address\",\n \"button_label\": \"Send reset password instructions\",\n \"loading_button_label\": \"Sending reset instructions ...\",\n \"link_text\": \"Forgot your password?\",\n \"confirmation_text\": \"Check your email for the password reset link\"\n },\n \"update_password\": {\n \"password_label\": \"New password\",\n \"password_input_placeholder\": \"Your new password\",\n \"button_label\": \"Update password\",\n \"loading_button_label\": \"Updating password ...\",\n \"confirmation_text\": \"Your password has been updated\"\n },\n \"verify_otp\": {\n \"email_input_label\": \"Email address\",\n \"email_input_placeholder\": \"Your email address\",\n \"phone_input_label\": \"Phone number\",\n \"phone_input_placeholder\": \"Your phone number\",\n \"token_input_label\": \"Token\",\n \"token_input_placeholder\": \"Your Otp token\",\n \"button_label\": \"Verify token\",\n \"loading_button_label\": \"Signing in ...\"\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACeO,IAAM,YAAmB;AAAA,EAC9B,SAAS;AAAA,IACP,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,iBAAiB;AAAA,MACjB,yBAAyB;AAAA,MACzB,8BAA8B;AAAA,MAC9B,qBAAqB;AAAA,MACrB,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,iBAAiB;AAAA,MACjB,aAAa;AAAA,MACb,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,kBAAkB;AAAA,MAClB,aAAa;AAAA,MACb,mBAAmB;AAAA,MACnB,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,yBAAyB;AAAA,MACzB,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,MACjB,sBAAsB;AAAA,IACxB;AAAA,IACA,OAAO;AAAA,MACL,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,mBAAmB;AAAA,MACnB,mBAAmB;AAAA,MACnB,eAAe;AAAA,MACf,cAAc;AAAA,IAChB;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,eAAe;AAAA,MACf,eAAe;AAAA,MACf,gBAAgB;AAAA,IAClB;AAAA,IACA,OAAO;AAAA,MACL,gBAAgB;AAAA,MAChB,kB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