@stackshift-ui/signin-signup 6.0.6 → 6.0.7-beta.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/helper/index.js +1 -55
- package/dist/helper/index.mjs +1 -8
- package/dist/index.js +1 -674
- package/dist/index.mjs +1 -16
- package/dist/signin-signup.js +1 -664
- package/dist/signin-signup.mjs +1 -6
- package/dist/signin_signup_a.js +1 -349
- package/dist/signin_signup_a.mjs +1 -8
- package/dist/signin_signup_b.js +1 -324
- package/dist/signin_signup_b.mjs +1 -8
- package/dist/types.js +1 -18
- package/package.json +18 -18
- package/dist/chunk-4YOZ4R43.mjs +0 -266
- package/dist/chunk-NGYQAQA4.mjs +0 -30
- package/dist/chunk-NJKLN5F4.mjs +0 -30
- package/dist/chunk-ZP54DEPE.mjs +0 -291
package/dist/signin-signup.js
CHANGED
|
@@ -1,664 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
// src/helper/index.ts
|
|
34
|
-
var logoLink, thankYouPageLink;
|
|
35
|
-
var init_helper = __esm({
|
|
36
|
-
"src/helper/index.ts"() {
|
|
37
|
-
"use strict";
|
|
38
|
-
logoLink = (logo) => {
|
|
39
|
-
var _a, _b, _c;
|
|
40
|
-
if ((logo == null ? void 0 : logo.internalLink) && (logo == null ? void 0 : logo.type) === "linkInternal") {
|
|
41
|
-
if ((_b = (_a = logo == null ? void 0 : logo.internalLink) == null ? void 0 : _a.toLowerCase()) == null ? void 0 : _b.includes("home")) {
|
|
42
|
-
return "/";
|
|
43
|
-
}
|
|
44
|
-
return `/${logo.internalLink}`;
|
|
45
|
-
} else if ((logo == null ? void 0 : logo.externalLink) && (logo == null ? void 0 : logo.type) === "linkExternal") {
|
|
46
|
-
return (_c = logo == null ? void 0 : logo.externalLink) != null ? _c : "/";
|
|
47
|
-
} else {
|
|
48
|
-
return "/";
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
thankYouPageLink = (link) => {
|
|
52
|
-
if (!link) {
|
|
53
|
-
return "/thank-you";
|
|
54
|
-
} else {
|
|
55
|
-
if ((link == null ? void 0 : link.linkType) === "linkInternal") {
|
|
56
|
-
return `/${link == null ? void 0 : link.internalLink}`;
|
|
57
|
-
} else {
|
|
58
|
-
return link == null ? void 0 : link.externalLink;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// src/signin_signup_a.tsx
|
|
66
|
-
var signin_signup_a_exports = {};
|
|
67
|
-
__export(signin_signup_a_exports, {
|
|
68
|
-
SigninSignup_A: () => SigninSignup_A,
|
|
69
|
-
default: () => SigninSignup_A
|
|
70
|
-
});
|
|
71
|
-
function SigninSignup_A({ logo, form, formLinks, signInLink }) {
|
|
72
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-10 rounded-md bg-gray-50 lg:py-20", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 576, children: [
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LogoSection, { logo }),
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { className: "mb-6 text-center lg:mb-10", children: [
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubtitleAndHeadingText, { form }),
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
-
SignupForm,
|
|
78
|
-
{
|
|
79
|
-
form,
|
|
80
|
-
signInLink,
|
|
81
|
-
thankYouPage: thankYouPageLink(form == null ? void 0 : form.thankYouPage)
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormLinks, { formLinks })
|
|
86
|
-
] }) });
|
|
87
|
-
}
|
|
88
|
-
function LogoSection({ logo }) {
|
|
89
|
-
var _a;
|
|
90
|
-
if (!logo) return null;
|
|
91
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
-
import_link.Link,
|
|
93
|
-
{
|
|
94
|
-
"aria-label": `Go to ${logoLink(logo) === "/" ? "home page" : logoLink(logo)}`,
|
|
95
|
-
className: "flex justify-center mx-auto text-3xl font-bold leading-none",
|
|
96
|
-
href: logoLink(logo),
|
|
97
|
-
target: logo == null ? void 0 : logo.linkTarget,
|
|
98
|
-
rel: (logo == null ? void 0 : logo.linkTarget) === "_blank" ? "noopener noreferrer" : "",
|
|
99
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
|
-
import_image.Image,
|
|
101
|
-
{
|
|
102
|
-
src: logo == null ? void 0 : logo.image,
|
|
103
|
-
alt: (_a = logo == null ? void 0 : logo.alt) != null ? _a : "signup-logo",
|
|
104
|
-
width: 100,
|
|
105
|
-
height: 100,
|
|
106
|
-
className: "flex justify-center mx-auto text-3xl font-bold leading-none"
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
) });
|
|
111
|
-
}
|
|
112
|
-
function SubtitleAndHeadingText({ form }) {
|
|
113
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [
|
|
114
|
-
(form == null ? void 0 : form.subtitle) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, children: form == null ? void 0 : form.subtitle }) : null,
|
|
115
|
-
(form == null ? void 0 : form.name) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { className: "text-2xl lg:text-2xl", children: form == null ? void 0 : form.name }) : null
|
|
116
|
-
] });
|
|
117
|
-
}
|
|
118
|
-
function SignupForm({
|
|
119
|
-
form,
|
|
120
|
-
signInLink,
|
|
121
|
-
thankYouPage
|
|
122
|
-
}) {
|
|
123
|
-
var _a, _b;
|
|
124
|
-
if (!(form == null ? void 0 : form.fields)) return null;
|
|
125
|
-
const [showPasswords, setShowPasswords] = import_react.default.useState({});
|
|
126
|
-
const togglePasswordVisibility = (fieldName) => {
|
|
127
|
-
setShowPasswords((prev) => ({
|
|
128
|
-
...prev,
|
|
129
|
-
[fieldName]: !prev[fieldName]
|
|
130
|
-
}));
|
|
131
|
-
};
|
|
132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
133
|
-
import_form.Form,
|
|
134
|
-
{
|
|
135
|
-
id: (_a = form == null ? void 0 : form.id) != null ? _a : void 0,
|
|
136
|
-
name: "SignUp-VariantA-Form",
|
|
137
|
-
className: "form-signup",
|
|
138
|
-
thankyouPage: thankYouPage,
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
141
|
-
FormFields,
|
|
142
|
-
{
|
|
143
|
-
form,
|
|
144
|
-
showPasswords,
|
|
145
|
-
togglePasswordVisibility
|
|
146
|
-
}
|
|
147
|
-
),
|
|
148
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "webriq-recaptcha" }) }),
|
|
149
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-center", children: (form == null ? void 0 : form.buttonLabel) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
150
|
-
import_button.Button,
|
|
151
|
-
{
|
|
152
|
-
as: "button",
|
|
153
|
-
variant: "custom",
|
|
154
|
-
ariaLabel: (_b = form == null ? void 0 : form.buttonLabel) != null ? _b : "Sign Up form submit button",
|
|
155
|
-
className: "w-full py-4 text-sm font-bold tex-gray-50",
|
|
156
|
-
type: "submit",
|
|
157
|
-
children: form == null ? void 0 : form.buttonLabel
|
|
158
|
-
}
|
|
159
|
-
) }),
|
|
160
|
-
signInLink && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignInLink, { signInLink })
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
function FormFields({
|
|
166
|
-
form,
|
|
167
|
-
showPasswords,
|
|
168
|
-
togglePasswordVisibility
|
|
169
|
-
}) {
|
|
170
|
-
var _a, _b;
|
|
171
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
172
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, className: "-mx-2", children: (_a = form == null ? void 0 : form.fields) == null ? void 0 : _a.slice(0, 2).map((formFields, index) => {
|
|
173
|
-
var _a2;
|
|
174
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-2 mb-3 lg:w-1/2", children: formFields.type === "inputText" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
175
|
-
import_input.Input,
|
|
176
|
-
{
|
|
177
|
-
textSize: "sm",
|
|
178
|
-
variant: "primary",
|
|
179
|
-
noLabel: true,
|
|
180
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
181
|
-
required: formFields == null ? void 0 : formFields.isRequired,
|
|
182
|
-
className: "w-full py-4 text-xs bg-white",
|
|
183
|
-
name: formFields == null ? void 0 : formFields.name,
|
|
184
|
-
ariaLabel: formFields == null ? void 0 : formFields.label,
|
|
185
|
-
...formFields,
|
|
186
|
-
type: "text"
|
|
187
|
-
}
|
|
188
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
189
|
-
import_form_field.FormField,
|
|
190
|
-
{
|
|
191
|
-
className: "py-4",
|
|
192
|
-
textSize: "sm",
|
|
193
|
-
noLabel: true,
|
|
194
|
-
variant: "primary",
|
|
195
|
-
name: (_a2 = formFields == null ? void 0 : formFields.name) != null ? _a2 : "",
|
|
196
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
197
|
-
required: formFields == null ? void 0 : formFields.isRequired,
|
|
198
|
-
items: formFields == null ? void 0 : formFields.items,
|
|
199
|
-
type: formFields == null ? void 0 : formFields.type,
|
|
200
|
-
...formFields
|
|
201
|
-
}
|
|
202
|
-
) }, index);
|
|
203
|
-
}) }),
|
|
204
|
-
(_b = form == null ? void 0 : form.fields) == null ? void 0 : _b.slice(2).map((formFields, index) => {
|
|
205
|
-
var _a2;
|
|
206
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "my-3", children: formFields.type === "inputPassword" && formFields.name ? (
|
|
207
|
-
// Check if name exists
|
|
208
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
209
|
-
PasswordField,
|
|
210
|
-
{
|
|
211
|
-
formFields,
|
|
212
|
-
showPassword: showPasswords[formFields.name] || false,
|
|
213
|
-
togglePassword: () => togglePasswordVisibility(formFields.name)
|
|
214
|
-
}
|
|
215
|
-
)
|
|
216
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
217
|
-
import_form_field.FormField,
|
|
218
|
-
{
|
|
219
|
-
className: "py-4",
|
|
220
|
-
textSize: "sm",
|
|
221
|
-
noLabel: true,
|
|
222
|
-
variant: "primary",
|
|
223
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
224
|
-
required: formFields == null ? void 0 : formFields.isRequired,
|
|
225
|
-
name: (_a2 = formFields == null ? void 0 : formFields.name) != null ? _a2 : "",
|
|
226
|
-
items: formFields == null ? void 0 : formFields.items,
|
|
227
|
-
type: formFields == null ? void 0 : formFields.type,
|
|
228
|
-
...formFields
|
|
229
|
-
}
|
|
230
|
-
) }, index);
|
|
231
|
-
})
|
|
232
|
-
] });
|
|
233
|
-
}
|
|
234
|
-
function SignInLink({ signInLink }) {
|
|
235
|
-
if (!(signInLink == null ? void 0 : signInLink.label)) return null;
|
|
236
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full text-center mt-3", children: [
|
|
237
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs text-gray-500", children: "Already have an account? " }),
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
239
|
-
import_button.Button,
|
|
240
|
-
{
|
|
241
|
-
as: "link",
|
|
242
|
-
variant: "link",
|
|
243
|
-
link: signInLink,
|
|
244
|
-
className: "text-xs text-primary cursor-pointer hover:underline",
|
|
245
|
-
ariaLabel: signInLink == null ? void 0 : signInLink.label,
|
|
246
|
-
children: signInLink == null ? void 0 : signInLink.label
|
|
247
|
-
}
|
|
248
|
-
)
|
|
249
|
-
] });
|
|
250
|
-
}
|
|
251
|
-
function PasswordField({
|
|
252
|
-
formFields,
|
|
253
|
-
showPassword,
|
|
254
|
-
togglePassword
|
|
255
|
-
}) {
|
|
256
|
-
var _a;
|
|
257
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { className: "relative", children: [
|
|
258
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
259
|
-
import_input.Input,
|
|
260
|
-
{
|
|
261
|
-
className: "py-4",
|
|
262
|
-
textSize: "sm",
|
|
263
|
-
noLabel: true,
|
|
264
|
-
"aria-label": (_a = formFields == null ? void 0 : formFields.placeholder) != null ? _a : formFields == null ? void 0 : formFields.name,
|
|
265
|
-
variant: "primary",
|
|
266
|
-
type: showPassword ? "text" : "password",
|
|
267
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
268
|
-
name: formFields == null ? void 0 : formFields.name,
|
|
269
|
-
required: formFields == null ? void 0 : formFields.isRequired
|
|
270
|
-
}
|
|
271
|
-
),
|
|
272
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
273
|
-
import_button.Button,
|
|
274
|
-
{
|
|
275
|
-
as: "button",
|
|
276
|
-
variant: "unstyled",
|
|
277
|
-
ariaLabel: showPassword ? "Show password" : "Hide password",
|
|
278
|
-
className: "absolute top-0 right-0 h-full p-2",
|
|
279
|
-
type: "button",
|
|
280
|
-
onClick: togglePassword,
|
|
281
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PasswordIcon, { showPassword })
|
|
282
|
-
}
|
|
283
|
-
)
|
|
284
|
-
] });
|
|
285
|
-
}
|
|
286
|
-
function FormLinks({ formLinks }) {
|
|
287
|
-
if (!formLinks) return null;
|
|
288
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mt-10 text-xs text-center text-gray-700", children: formLinks == null ? void 0 : formLinks.map((link, index, { length }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
289
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
290
|
-
import_button.Button,
|
|
291
|
-
{
|
|
292
|
-
as: "link",
|
|
293
|
-
variant: "link",
|
|
294
|
-
link,
|
|
295
|
-
className: "text-xs text-primary cursor-pointer hover:underline",
|
|
296
|
-
ariaLabel: link == null ? void 0 : link.label,
|
|
297
|
-
children: link == null ? void 0 : link.label
|
|
298
|
-
}
|
|
299
|
-
),
|
|
300
|
-
index === length - 1 ? null : index === length - 2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "\xA0and\xA0" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "\xA0,\xA0" })
|
|
301
|
-
] }, index)) });
|
|
302
|
-
}
|
|
303
|
-
function PasswordIcon({ showPassword }) {
|
|
304
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
305
|
-
"svg",
|
|
306
|
-
{
|
|
307
|
-
className: "w-5 h-5 my-auto ml-4 text-gray-500",
|
|
308
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
309
|
-
"aria-hidden": "true",
|
|
310
|
-
role: "img",
|
|
311
|
-
width: "1em",
|
|
312
|
-
height: "1em",
|
|
313
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
314
|
-
viewBox: "0 0 16 16",
|
|
315
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "currentColor", children: [
|
|
316
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755c-.165.165-.337.328-.517.486l.708.709z" }),
|
|
317
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z" }),
|
|
318
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884l-12-12l.708-.708l12 12l-.708.708z" })
|
|
319
|
-
] })
|
|
320
|
-
}
|
|
321
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
322
|
-
"svg",
|
|
323
|
-
{
|
|
324
|
-
className: "w-5 h-5 my-auto ml-4 text-gray-500",
|
|
325
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
326
|
-
"aria-hidden": "true",
|
|
327
|
-
role: "img",
|
|
328
|
-
width: "1em",
|
|
329
|
-
height: "1em",
|
|
330
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
331
|
-
viewBox: "0 0 16 16",
|
|
332
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { fill: "currentColor", children: [
|
|
333
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z" }),
|
|
334
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 5.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0z" })
|
|
335
|
-
] })
|
|
336
|
-
}
|
|
337
|
-
) });
|
|
338
|
-
}
|
|
339
|
-
var import_button, import_container, import_flex, import_form, import_form_field, import_heading, import_image, import_input, import_link, import_section, import_text, import_react, import_jsx_runtime;
|
|
340
|
-
var init_signin_signup_a = __esm({
|
|
341
|
-
"src/signin_signup_a.tsx"() {
|
|
342
|
-
"use strict";
|
|
343
|
-
import_button = require("@stackshift-ui/button");
|
|
344
|
-
import_container = require("@stackshift-ui/container");
|
|
345
|
-
import_flex = require("@stackshift-ui/flex");
|
|
346
|
-
import_form = require("@stackshift-ui/form");
|
|
347
|
-
import_form_field = require("@stackshift-ui/form-field");
|
|
348
|
-
import_heading = require("@stackshift-ui/heading");
|
|
349
|
-
import_image = require("@stackshift-ui/image");
|
|
350
|
-
import_input = require("@stackshift-ui/input");
|
|
351
|
-
import_link = require("@stackshift-ui/link");
|
|
352
|
-
import_section = require("@stackshift-ui/section");
|
|
353
|
-
import_text = require("@stackshift-ui/text");
|
|
354
|
-
import_react = __toESM(require("react"));
|
|
355
|
-
init_helper();
|
|
356
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
|
|
360
|
-
// src/signin_signup_b.tsx
|
|
361
|
-
var signin_signup_b_exports = {};
|
|
362
|
-
__export(signin_signup_b_exports, {
|
|
363
|
-
SigninSignup_B: () => SigninSignup_B,
|
|
364
|
-
default: () => SigninSignup_B
|
|
365
|
-
});
|
|
366
|
-
function SigninSignup_B({ logo, form, formLinks, signInLink }) {
|
|
367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_section2.Section, { className: "py-10 bg-primary lg:py-20", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_container2.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_container2.Container, { maxWidth: 576, children: [
|
|
368
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LogoSection2, { logo }),
|
|
369
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_card.Card, { borderRadius: "md", className: "p-6 mb-6 bg-white lg:mb-10 lg:p-12", children: [
|
|
370
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SubtitleAndHeadingText2, { form }),
|
|
371
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SignupForm2, { form, signInLink })
|
|
372
|
-
] }),
|
|
373
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FormLinks2, { formLinks })
|
|
374
|
-
] }) }) });
|
|
375
|
-
}
|
|
376
|
-
function LogoSection2({ logo }) {
|
|
377
|
-
var _a;
|
|
378
|
-
if (!logo) return null;
|
|
379
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "mb-10", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
380
|
-
import_link2.Link,
|
|
381
|
-
{
|
|
382
|
-
"aria-label": `Go to ${logoLink(logo) === "/" ? "home page" : logoLink(logo)}`,
|
|
383
|
-
className: "flex justify-center mx-auto text-3xl font-bold leading-none",
|
|
384
|
-
href: logoLink(logo),
|
|
385
|
-
target: logo == null ? void 0 : logo.linkTarget,
|
|
386
|
-
rel: (logo == null ? void 0 : logo.linkTarget) === "_blank" ? "noopener noreferrer" : "",
|
|
387
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
388
|
-
import_image2.Image,
|
|
389
|
-
{
|
|
390
|
-
src: logo == null ? void 0 : logo.image,
|
|
391
|
-
alt: (_a = logo == null ? void 0 : logo.alt) != null ? _a : "signup-logo",
|
|
392
|
-
width: 100,
|
|
393
|
-
height: 100,
|
|
394
|
-
className: "flex justify-center text-3xl font-bold leading-none text-white"
|
|
395
|
-
}
|
|
396
|
-
)
|
|
397
|
-
}
|
|
398
|
-
) });
|
|
399
|
-
}
|
|
400
|
-
function SubtitleAndHeadingText2({ form }) {
|
|
401
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "mb-6", children: [
|
|
402
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_text2.Text, { muted: true, children: form == null ? void 0 : form.subtitle }),
|
|
403
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_heading2.Heading, { className: "text-2xl lg:text-2xl", children: form == null ? void 0 : form.name })
|
|
404
|
-
] });
|
|
405
|
-
}
|
|
406
|
-
function SignupForm2({ form, signInLink }) {
|
|
407
|
-
var _a;
|
|
408
|
-
if (!(form == null ? void 0 : form.fields)) return null;
|
|
409
|
-
const [showPasswords, setShowPasswords] = import_react2.default.useState({});
|
|
410
|
-
const togglePasswordVisibility = (fieldName) => {
|
|
411
|
-
setShowPasswords((prev) => ({
|
|
412
|
-
...prev,
|
|
413
|
-
[fieldName]: !prev[fieldName]
|
|
414
|
-
}));
|
|
415
|
-
};
|
|
416
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
417
|
-
import_form2.Form,
|
|
418
|
-
{
|
|
419
|
-
id: (_a = form == null ? void 0 : form.id) != null ? _a : void 0,
|
|
420
|
-
name: "SignUp-VariantB-Form",
|
|
421
|
-
className: "form-signup",
|
|
422
|
-
thankyouPage: thankYouPageLink(form == null ? void 0 : form.thankYouPage),
|
|
423
|
-
children: [
|
|
424
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
425
|
-
FormFields2,
|
|
426
|
-
{
|
|
427
|
-
form,
|
|
428
|
-
showPassword: showPasswords,
|
|
429
|
-
togglePasswordVisibility
|
|
430
|
-
}
|
|
431
|
-
),
|
|
432
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "webriq-recaptcha" }) }),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "text-center", children: [
|
|
434
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(FormButtonLabel, { form }),
|
|
435
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SigninLink, { signInLink })
|
|
436
|
-
] })
|
|
437
|
-
]
|
|
438
|
-
}
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
function FormFields2({
|
|
442
|
-
form,
|
|
443
|
-
showPassword,
|
|
444
|
-
togglePasswordVisibility
|
|
445
|
-
}) {
|
|
446
|
-
var _a, _b, _c, _d;
|
|
447
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react2.default.Fragment, { children: [
|
|
448
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_flex2.Flex, { className: "flex-col lg:flex-row gap-3", children: (_b = (_a = form == null ? void 0 : form.fields) == null ? void 0 : _a.slice(0, 2)) == null ? void 0 : _b.map((formFields, index) => {
|
|
449
|
-
var _a2;
|
|
450
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
451
|
-
import_form_field2.FormField,
|
|
452
|
-
{
|
|
453
|
-
noLabel: true,
|
|
454
|
-
variant: "secondary",
|
|
455
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
456
|
-
required: formFields == null ? void 0 : formFields.isRequired,
|
|
457
|
-
name: (_a2 = formFields == null ? void 0 : formFields.name) != null ? _a2 : "",
|
|
458
|
-
items: formFields == null ? void 0 : formFields.items,
|
|
459
|
-
type: formFields == null ? void 0 : formFields.type,
|
|
460
|
-
...formFields
|
|
461
|
-
}
|
|
462
|
-
) }, index);
|
|
463
|
-
}) }),
|
|
464
|
-
(_d = (_c = form == null ? void 0 : form.fields) == null ? void 0 : _c.slice(2)) == null ? void 0 : _d.map((formFields, index) => {
|
|
465
|
-
var _a2;
|
|
466
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "my-3", children: (formFields == null ? void 0 : formFields.type) === "inputPassword" && formFields.name ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
467
|
-
PasswordField2,
|
|
468
|
-
{
|
|
469
|
-
formFields,
|
|
470
|
-
showPassword: showPassword[formFields.name] || false,
|
|
471
|
-
togglePassword: () => togglePasswordVisibility(formFields.name)
|
|
472
|
-
}
|
|
473
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
474
|
-
import_form_field2.FormField,
|
|
475
|
-
{
|
|
476
|
-
noLabel: true,
|
|
477
|
-
variant: "secondary",
|
|
478
|
-
name: (_a2 = formFields == null ? void 0 : formFields.name) != null ? _a2 : "",
|
|
479
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
480
|
-
required: formFields == null ? void 0 : formFields.isRequired,
|
|
481
|
-
items: formFields == null ? void 0 : formFields.items,
|
|
482
|
-
type: formFields == null ? void 0 : formFields.type,
|
|
483
|
-
...formFields
|
|
484
|
-
}
|
|
485
|
-
) }, index);
|
|
486
|
-
})
|
|
487
|
-
] });
|
|
488
|
-
}
|
|
489
|
-
function PasswordField2({
|
|
490
|
-
formFields,
|
|
491
|
-
showPassword,
|
|
492
|
-
togglePassword
|
|
493
|
-
}) {
|
|
494
|
-
var _a;
|
|
495
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex", children: [
|
|
496
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
497
|
-
import_input2.Input,
|
|
498
|
-
{
|
|
499
|
-
noLabel: true,
|
|
500
|
-
ariaLabel: (_a = formFields == null ? void 0 : formFields.placeholder) != null ? _a : formFields == null ? void 0 : formFields.name,
|
|
501
|
-
variant: "secondary",
|
|
502
|
-
type: showPassword ? "text" : "password",
|
|
503
|
-
placeholder: formFields == null ? void 0 : formFields.placeholder,
|
|
504
|
-
name: formFields == null ? void 0 : formFields.name,
|
|
505
|
-
required: formFields == null ? void 0 : formFields.isRequired
|
|
506
|
-
}
|
|
507
|
-
),
|
|
508
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
509
|
-
import_button2.Button,
|
|
510
|
-
{
|
|
511
|
-
variant: "unstyled",
|
|
512
|
-
as: "button",
|
|
513
|
-
ariaLabel: showPassword ? "Show password" : "Hide password",
|
|
514
|
-
className: "focus:outline-none mr-4",
|
|
515
|
-
type: "button",
|
|
516
|
-
onClick: togglePassword,
|
|
517
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PasswordIcon2, { showPassword })
|
|
518
|
-
}
|
|
519
|
-
)
|
|
520
|
-
] });
|
|
521
|
-
}
|
|
522
|
-
function FormButtonLabel({ form }) {
|
|
523
|
-
var _a;
|
|
524
|
-
if (!(form == null ? void 0 : form.buttonLabel)) return null;
|
|
525
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
526
|
-
import_button2.Button,
|
|
527
|
-
{
|
|
528
|
-
as: "button",
|
|
529
|
-
className: "w-full py-4 mb-3",
|
|
530
|
-
ariaLabel: (_a = form == null ? void 0 : form.buttonLabel) != null ? _a : "Sign Up form submit button",
|
|
531
|
-
variant: "custom",
|
|
532
|
-
type: "submit",
|
|
533
|
-
children: form == null ? void 0 : form.buttonLabel
|
|
534
|
-
}
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
function SigninLink({ signInLink }) {
|
|
538
|
-
if (!(signInLink == null ? void 0 : signInLink.label)) return null;
|
|
539
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "text-xs text-gray-900", children: [
|
|
540
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "Already have an account?" }),
|
|
541
|
-
" ",
|
|
542
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
543
|
-
import_button2.Button,
|
|
544
|
-
{
|
|
545
|
-
as: "link",
|
|
546
|
-
variant: "link",
|
|
547
|
-
link: signInLink,
|
|
548
|
-
className: "text-xs text-primary hover:underline",
|
|
549
|
-
ariaLabel: signInLink == null ? void 0 : signInLink.label,
|
|
550
|
-
children: signInLink == null ? void 0 : signInLink.label
|
|
551
|
-
}
|
|
552
|
-
)
|
|
553
|
-
] });
|
|
554
|
-
}
|
|
555
|
-
function FormLinks2({ formLinks }) {
|
|
556
|
-
if (!formLinks) return null;
|
|
557
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "text-xs text-center text-secondary-foreground", children: formLinks == null ? void 0 : formLinks.map((link, index, { length }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
|
|
558
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
559
|
-
import_button2.Button,
|
|
560
|
-
{
|
|
561
|
-
as: "link",
|
|
562
|
-
variant: "link",
|
|
563
|
-
link,
|
|
564
|
-
className: "text-xs underline text-secondary-foreground hover:text-gray-50",
|
|
565
|
-
ariaLabel: link == null ? void 0 : link.label,
|
|
566
|
-
children: link == null ? void 0 : link.label
|
|
567
|
-
}
|
|
568
|
-
),
|
|
569
|
-
index === length - 1 ? null : index === length - 2 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\xA0and\xA0" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\xA0,\xA0" })
|
|
570
|
-
] }, index)) });
|
|
571
|
-
}
|
|
572
|
-
function PasswordIcon2({ showPassword }) {
|
|
573
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react2.default.Fragment, { children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
574
|
-
"svg",
|
|
575
|
-
{
|
|
576
|
-
className: "w-5 h-5 my-auto ml-4 text-gray-500",
|
|
577
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
578
|
-
"aria-hidden": "true",
|
|
579
|
-
role: "img",
|
|
580
|
-
width: "1em",
|
|
581
|
-
height: "1em",
|
|
582
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
583
|
-
viewBox: "0 0 16 16",
|
|
584
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { fill: "currentColor", children: [
|
|
585
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755c-.165.165-.337.328-.517.486l.708.709z" }),
|
|
586
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z" }),
|
|
587
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884l-12-12l.708-.708l12 12l-.708.708z" })
|
|
588
|
-
] })
|
|
589
|
-
}
|
|
590
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
591
|
-
"svg",
|
|
592
|
-
{
|
|
593
|
-
className: "w-5 h-5 my-auto ml-4 text-gray-500",
|
|
594
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
595
|
-
"aria-hidden": "true",
|
|
596
|
-
role: "img",
|
|
597
|
-
width: "1em",
|
|
598
|
-
height: "1em",
|
|
599
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
600
|
-
viewBox: "0 0 16 16",
|
|
601
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("g", { fill: "currentColor", children: [
|
|
602
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z" }),
|
|
603
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 5.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0z" })
|
|
604
|
-
] })
|
|
605
|
-
}
|
|
606
|
-
) });
|
|
607
|
-
}
|
|
608
|
-
var import_button2, import_card, import_container2, import_flex2, import_form2, import_form_field2, import_heading2, import_image2, import_input2, import_link2, import_section2, import_text2, import_react2, import_jsx_runtime2;
|
|
609
|
-
var init_signin_signup_b = __esm({
|
|
610
|
-
"src/signin_signup_b.tsx"() {
|
|
611
|
-
"use strict";
|
|
612
|
-
import_button2 = require("@stackshift-ui/button");
|
|
613
|
-
import_card = require("@stackshift-ui/card");
|
|
614
|
-
import_container2 = require("@stackshift-ui/container");
|
|
615
|
-
import_flex2 = require("@stackshift-ui/flex");
|
|
616
|
-
import_form2 = require("@stackshift-ui/form");
|
|
617
|
-
import_form_field2 = require("@stackshift-ui/form-field");
|
|
618
|
-
import_heading2 = require("@stackshift-ui/heading");
|
|
619
|
-
import_image2 = require("@stackshift-ui/image");
|
|
620
|
-
import_input2 = require("@stackshift-ui/input");
|
|
621
|
-
import_link2 = require("@stackshift-ui/link");
|
|
622
|
-
import_section2 = require("@stackshift-ui/section");
|
|
623
|
-
import_text2 = require("@stackshift-ui/text");
|
|
624
|
-
import_react2 = __toESM(require("react"));
|
|
625
|
-
init_helper();
|
|
626
|
-
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
// src/signin-signup.tsx
|
|
631
|
-
var signin_signup_exports = {};
|
|
632
|
-
__export(signin_signup_exports, {
|
|
633
|
-
SigninSignup: () => SigninSignup
|
|
634
|
-
});
|
|
635
|
-
module.exports = __toCommonJS(signin_signup_exports);
|
|
636
|
-
var import_react3 = require("react");
|
|
637
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
638
|
-
var Variants = {
|
|
639
|
-
variant_a: (0, import_react3.lazy)(() => Promise.resolve().then(() => (init_signin_signup_a(), signin_signup_a_exports))),
|
|
640
|
-
variant_b: (0, import_react3.lazy)(() => Promise.resolve().then(() => (init_signin_signup_b(), signin_signup_b_exports)))
|
|
641
|
-
};
|
|
642
|
-
var displayName = "SigninSignup";
|
|
643
|
-
var SigninSignup = ({ data }) => {
|
|
644
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
645
|
-
const variant = data == null ? void 0 : data.variant;
|
|
646
|
-
const Variant = variant && (Variants == null ? void 0 : Variants[variant]);
|
|
647
|
-
const props = {
|
|
648
|
-
logo: (_b = (_a = data == null ? void 0 : data.variants) == null ? void 0 : _a.logo) != null ? _b : void 0,
|
|
649
|
-
title: (_d = (_c = data == null ? void 0 : data.variants) == null ? void 0 : _c.title) != null ? _d : void 0,
|
|
650
|
-
subtitle: (_f = (_e = data == null ? void 0 : data.variants) == null ? void 0 : _e.subtitle) != null ? _f : void 0,
|
|
651
|
-
text: (_h = (_g = data == null ? void 0 : data.variants) == null ? void 0 : _g.plainText) != null ? _h : void 0,
|
|
652
|
-
firstButton: (_j = (_i = data == null ? void 0 : data.variants) == null ? void 0 : _i.primaryButton) != null ? _j : void 0,
|
|
653
|
-
secondButton: (_l = (_k = data == null ? void 0 : data.variants) == null ? void 0 : _k.secondaryButton) != null ? _l : void 0,
|
|
654
|
-
formLinks: (_n = (_m = data == null ? void 0 : data.variants) == null ? void 0 : _m.formLinks) != null ? _n : void 0,
|
|
655
|
-
signInLink: (_p = (_o = data == null ? void 0 : data.variants) == null ? void 0 : _o.signinLink) != null ? _p : void 0,
|
|
656
|
-
form: (_r = (_q = data == null ? void 0 : data.variants) == null ? void 0 : _q.form) != null ? _r : void 0
|
|
657
|
-
};
|
|
658
|
-
return Variant ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Variant, { ...props }) : null;
|
|
659
|
-
};
|
|
660
|
-
SigninSignup.displayName = displayName;
|
|
661
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
662
|
-
0 && (module.exports = {
|
|
663
|
-
SigninSignup
|
|
664
|
-
});
|
|
1
|
+
"use strict";var ht=Object.create;var w=Object.defineProperty;var yt=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var vt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>{for(var i in e)w(t,i,{get:e[i],enumerable:!0})},$=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wt(e))!gt.call(t,s)&&s!==i&&w(t,s,{get:()=>e[s],enumerable:!(r=yt(e,s))||r.enumerable});return t};var G=(t,e,i)=>(i=t!=null?ht(vt(t)):{},$(e||!t||!t.__esModule?w(i,"default",{value:t,enumerable:!0}):i,t)),Nt=t=>$(w({},"__esModule",{value:!0}),t);var x,v,S=N(()=>{"use strict";x=t=>{var e,i,r;return t!=null&&t.internalLink&&(t==null?void 0:t.type)==="linkInternal"?(i=(e=t==null?void 0:t.internalLink)==null?void 0:e.toLowerCase())!=null&&i.includes("home")?"/":`/${t.internalLink}`:t!=null&&t.externalLink&&(t==null?void 0:t.type)==="linkExternal"&&(r=t==null?void 0:t.externalLink)!=null?r:"/"},v=t=>t?(t==null?void 0:t.linkType)==="linkInternal"?`/${t==null?void 0:t.internalLink}`:t==null?void 0:t.externalLink:"/thank-you"});var I={};L(I,{SigninSignup_A:()=>Z,default:()=>Z});function Z({logo:t,form:e,formLinks:i,signInLink:r}){return(0,u.jsx)(O.Section,{className:"py-10 rounded-md bg-gray-50 lg:py-20",children:(0,u.jsxs)(P.Container,{maxWidth:576,children:[(0,u.jsx)(Lt,{logo:t}),(0,u.jsxs)(P.Container,{className:"mb-6 text-center lg:mb-10",children:[(0,u.jsx)(St,{form:e}),(0,u.jsx)(Pt,{form:e,signInLink:r,thankYouPage:v(e==null?void 0:e.thankYouPage)})]}),(0,u.jsx)(zt,{formLinks:i})]})})}function Lt({logo:t}){var e;return t?(0,u.jsx)("div",{className:"mb-10",children:(0,u.jsx)(J.Link,{"aria-label":`Go to ${x(t)==="/"?"home page":x(t)}`,className:"flex justify-center mx-auto text-3xl font-bold leading-none",href:x(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,u.jsx)(D.Image,{src:t==null?void 0:t.image,alt:(e=t==null?void 0:t.alt)!=null?e:"signup-logo",width:100,height:100,className:"flex justify-center mx-auto text-3xl font-bold leading-none"})})}):null}function St({form:t}){return(0,u.jsxs)("div",{className:"mb-6",children:[t!=null&&t.subtitle?(0,u.jsx)(Q.Text,{muted:!0,children:t==null?void 0:t.subtitle}):null,t!=null&&t.name?(0,u.jsx)(E.Heading,{className:"text-2xl lg:text-2xl",children:t==null?void 0:t.name}):null]})}function Pt({form:t,signInLink:e,thankYouPage:i}){var c,n;if(!(t!=null&&t.fields))return null;let[r,s]=X.default.useState({}),a=l=>{s(b=>({...b,[l]:!b[l]}))};return(0,u.jsxs)(j.Form,{id:(c=t==null?void 0:t.id)!=null?c:void 0,name:"SignUp-VariantA-Form",className:"form-signup",thankyouPage:i,children:[(0,u.jsx)(ot,{form:t,showPasswords:r,togglePasswordVisibility:a}),(0,u.jsx)("div",{children:(0,u.jsx)("div",{className:"webriq-recaptcha"})}),(0,u.jsx)("div",{className:"text-center",children:(t==null?void 0:t.buttonLabel)&&(0,u.jsx)(h.Button,{as:"button",variant:"custom",ariaLabel:(n=t==null?void 0:t.buttonLabel)!=null?n:"Sign Up form submit button",className:"w-full py-4 text-sm font-bold tex-gray-50",type:"submit",children:t==null?void 0:t.buttonLabel})}),e&&(0,u.jsx)(Rt,{signInLink:e})]})}function ot({form:t,showPasswords:e,togglePasswordVisibility:i}){var r,s;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R.Flex,{wrap:!0,className:"-mx-2",children:(r=t==null?void 0:t.fields)==null?void 0:r.slice(0,2).map((a,c)=>{var n;return(0,u.jsx)("div",{className:"w-full px-2 mb-3 lg:w-1/2",children:a.type==="inputText"?(0,u.jsx)(C.Input,{textSize:"sm",variant:"primary",noLabel:!0,placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,className:"w-full py-4 text-xs bg-white",name:a==null?void 0:a.name,ariaLabel:a==null?void 0:a.label,...a,type:"text"}):(0,u.jsx)(o.FormField,{className:"py-4",textSize:"sm",noLabel:!0,variant:"primary",name:(n=a==null?void 0:a.name)!=null?n:"",placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,items:a==null?void 0:a.items,type:a==null?void 0:a.type,...a})},c)})}),(s=t==null?void 0:t.fields)==null?void 0:s.slice(2).map((a,c)=>{var n;return(0,u.jsx)("div",{className:"my-3",children:a.type==="inputPassword"&&a.name?(0,u.jsx)(Ct,{formFields:a,showPassword:e[a.name]||!1,togglePassword:()=>i(a.name)}):(0,u.jsx)(o.FormField,{className:"py-4",textSize:"sm",noLabel:!0,variant:"primary",placeholder:a==null?void 0:a.placeholder,required:a==null?void 0:a.isRequired,name:(n=a==null?void 0:a.name)!=null?n:"",items:a==null?void 0:a.items,type:a==null?void 0:a.type,...a})},c)})]})}function Rt({signInLink:t}){return t!=null&&t.label?(0,u.jsxs)("div",{className:"w-full text-center mt-3",children:[(0,u.jsx)("span",{className:"text-xs text-gray-500",children:"Already have an account? "}),(0,u.jsx)(h.Button,{as:"link",variant:"link",link:t,className:"text-xs text-primary cursor-pointer hover:underline",ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})]}):null}function Ct({formFields:t,showPassword:e,togglePassword:i}){var r;return(0,u.jsxs)(R.Flex,{className:"relative",children:[(0,u.jsx)(C.Input,{className:"py-4",textSize:"sm",noLabel:!0,"aria-label":(r=t==null?void 0:t.placeholder)!=null?r:t==null?void 0:t.name,variant:"primary",type:e?"text":"password",placeholder:t==null?void 0:t.placeholder,name:t==null?void 0:t.name,required:t==null?void 0:t.isRequired}),(0,u.jsx)(h.Button,{as:"button",variant:"unstyled",ariaLabel:e?"Show password":"Hide password",className:"absolute top-0 right-0 h-full p-2",type:"button",onClick:i,children:(0,u.jsx)(Bt,{showPassword:e})})]})}function zt({formLinks:t}){return t?(0,u.jsx)("p",{className:"mt-10 text-xs text-center text-gray-700",children:t==null?void 0:t.map((e,i,{length:r})=>(0,u.jsxs)("span",{children:[(0,u.jsx)(h.Button,{as:"link",variant:"link",link:e,className:"text-xs text-primary cursor-pointer hover:underline",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label}),i===r-1?null:i===r-2?(0,u.jsx)("span",{children:"\xA0and\xA0"}):(0,u.jsx)("span",{children:"\xA0,\xA0"})]},i))}):null}function Bt({showPassword:t}){return(0,u.jsx)(u.Fragment,{children:t?(0,u.jsx)("svg",{className:"w-5 h-5 my-auto ml-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 16 16",children:(0,u.jsxs)("g",{fill:"currentColor",children:[(0,u.jsx)("path",{d:"M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755c-.165.165-.337.328-.517.486l.708.709z"}),(0,u.jsx)("path",{d:"M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"}),(0,u.jsx)("path",{d:"M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884l-12-12l.708-.708l12 12l-.708.708z"})]})}):(0,u.jsx)("svg",{className:"w-5 h-5 my-auto ml-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 16 16",children:(0,u.jsxs)("g",{fill:"currentColor",children:[(0,u.jsx)("path",{d:"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"}),(0,u.jsx)("path",{d:"M8 5.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0z"})]})})})}var h,P,R,j,o,E,D,C,J,O,Q,X,u,F=N(()=>{"use strict";h=require("@stackshift-ui/button"),P=require("@stackshift-ui/container"),R=require("@stackshift-ui/flex"),j=require("@stackshift-ui/form"),o=require("@stackshift-ui/form-field"),E=require("@stackshift-ui/heading"),D=require("@stackshift-ui/image"),C=require("@stackshift-ui/input"),J=require("@stackshift-ui/link"),O=require("@stackshift-ui/section"),Q=require("@stackshift-ui/text"),X=G(require("react"));S();u=require("react/jsx-runtime")});var ct={};L(ct,{SigninSignup_B:()=>st,default:()=>st});function st({logo:t,form:e,formLinks:i,signInLink:r}){return(0,p.jsx)(O.Section,{className:"py-10 bg-primary lg:py-20",children:(0,p.jsx)(P.Container,{maxWidth:1280,children:(0,p.jsxs)(P.Container,{maxWidth:576,children:[(0,p.jsx)(At,{logo:t}),(0,p.jsxs)(f.Card,{borderRadius:"md",className:"p-6 mb-6 bg-white lg:mb-10 lg:p-12",children:[(0,p.jsx)(Mt,{form:e}),(0,p.jsx)(qt,{form:e,signInLink:r})]}),(0,p.jsx)(Vt,{formLinks:i})]})})})}function At({logo:t}){var e;return t?(0,p.jsx)("div",{className:"mb-10",children:(0,p.jsx)(J.Link,{"aria-label":`Go to ${x(t)==="/"?"home page":x(t)}`,className:"flex justify-center mx-auto text-3xl font-bold leading-none",href:x(t),target:t==null?void 0:t.linkTarget,rel:(t==null?void 0:t.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,p.jsx)(D.Image,{src:t==null?void 0:t.image,alt:(e=t==null?void 0:t.alt)!=null?e:"signup-logo",width:100,height:100,className:"flex justify-center text-3xl font-bold leading-none text-white"})})}):null}function Mt({form:t}){return(0,p.jsxs)("div",{className:"mb-6",children:[(0,p.jsx)(Q.Text,{muted:!0,children:t==null?void 0:t.subtitle}),(0,p.jsx)(E.Heading,{className:"text-2xl lg:text-2xl",children:t==null?void 0:t.name})]})}function qt({form:t,signInLink:e}){var a;if(!(t!=null&&t.fields))return null;let[i,r]=g.default.useState({}),s=c=>{r(n=>({...n,[c]:!n[c]}))};return(0,p.jsxs)(j.Form,{id:(a=t==null?void 0:t.id)!=null?a:void 0,name:"SignUp-VariantB-Form",className:"form-signup",thankyouPage:v(t==null?void 0:t.thankYouPage),children:[(0,p.jsx)(Tt,{form:t,showPassword:i,togglePasswordVisibility:s}),(0,p.jsx)("div",{children:(0,p.jsx)("div",{className:"webriq-recaptcha"})}),(0,p.jsxs)("div",{className:"text-center",children:[(0,p.jsx)(Yt,{form:t}),(0,p.jsx)(Ut,{signInLink:e})]})]})}function Tt({form:t,showPassword:e,togglePasswordVisibility:i}){var r,s,a,c;return(0,p.jsxs)(g.default.Fragment,{children:[(0,p.jsx)(R.Flex,{className:"flex-col lg:flex-row gap-3",children:(s=(r=t==null?void 0:t.fields)==null?void 0:r.slice(0,2))==null?void 0:s.map((n,l)=>{var b;return(0,p.jsx)("div",{className:"w-full",children:(0,p.jsx)(o.FormField,{noLabel:!0,variant:"secondary",placeholder:n==null?void 0:n.placeholder,required:n==null?void 0:n.isRequired,name:(b=n==null?void 0:n.name)!=null?b:"",items:n==null?void 0:n.items,type:n==null?void 0:n.type,...n})},l)})}),(c=(a=t==null?void 0:t.fields)==null?void 0:a.slice(2))==null?void 0:c.map((n,l)=>{var b;return(0,p.jsx)("div",{className:"my-3",children:(n==null?void 0:n.type)==="inputPassword"&&n.name?(0,p.jsx)(mt,{formFields:n,showPassword:e[n.name]||!1,togglePassword:()=>i(n.name)}):(0,p.jsx)(o.FormField,{noLabel:!0,variant:"secondary",name:(b=n==null?void 0:n.name)!=null?b:"",placeholder:n==null?void 0:n.placeholder,required:n==null?void 0:n.isRequired,items:n==null?void 0:n.items,type:n==null?void 0:n.type,...n})},l)})]})}function mt({formFields:t,showPassword:e,togglePassword:i}){var r;return(0,p.jsxs)("div",{className:"flex",children:[(0,p.jsx)(C.Input,{noLabel:!0,ariaLabel:(r=t==null?void 0:t.placeholder)!=null?r:t==null?void 0:t.name,variant:"secondary",type:e?"text":"password",placeholder:t==null?void 0:t.placeholder,name:t==null?void 0:t.name,required:t==null?void 0:t.isRequired}),(0,p.jsx)(y.Button,{variant:"unstyled",as:"button",ariaLabel:e?"Show password":"Hide password",className:"focus:outline-none mr-4",type:"button",onClick:i,children:(0,p.jsx)(dt,{showPassword:e})})]})}function Yt({form:t}){var e;return t!=null&&t.buttonLabel?(0,p.jsx)(y.Button,{as:"button",className:"w-full py-4 mb-3",ariaLabel:(e=t==null?void 0:t.buttonLabel)!=null?e:"Sign Up form submit button",variant:"custom",type:"submit",children:t==null?void 0:t.buttonLabel}):null}function Ut({signInLink:t}){return t!=null&&t.label?(0,p.jsxs)("span",{className:"text-xs text-gray-900",children:[(0,p.jsx)("span",{children:"Already have an account?"})," ",(0,p.jsx)(y.Button,{as:"link",variant:"link",link:t,className:"text-xs text-primary hover:underline",ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})]}):null}function Vt({formLinks:t}){return t?(0,p.jsx)("p",{className:"text-xs text-center text-secondary-foreground",children:t==null?void 0:t.map((e,i,{length:r})=>(0,p.jsxs)("span",{children:[(0,p.jsx)(y.Button,{as:"link",variant:"link",link:e,className:"text-xs underline text-secondary-foreground hover:text-gray-50",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label}),i===r-1?null:i===r-2?(0,p.jsx)("span",{children:"\xA0and\xA0"}):(0,p.jsx)("span",{children:"\xA0,\xA0"})]},i))}):null}function dt({showPassword:t}){return(0,p.jsx)(g.default.Fragment,{children:t?(0,p.jsx)("svg",{className:"w-5 h-5 my-auto ml-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 16 16",children:(0,p.jsxs)("g",{fill:"currentColor",children:[(0,p.jsx)("path",{d:"M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755c-.165.165-.337.328-.517.486l.708.709z"}),(0,p.jsx)("path",{d:"M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"}),(0,p.jsx)("path",{d:"M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884l-12-12l.708-.708l12 12l-.708.708z"})]})}):(0,p.jsx)("svg",{className:"w-5 h-5 my-auto ml-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 16 16",children:(0,p.jsxs)("g",{fill:"currentColor",children:[(0,p.jsx)("path",{d:"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"}),(0,p.jsx)("path",{d:"M8 5.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0z"})]})})})}var y,f,P,R,j,o,E,D,C,J,O,Q,g,p,bt=N(()=>{"use strict";y=require("@stackshift-ui/button"),f=require("@stackshift-ui/card"),g=G(require("react"));S();p=require("react/jsx-runtime")});var Ht={};L(Ht,{SigninSignup:()=>lt});module.exports=Nt(Ht);var M=require("react"),xt=require("react/jsx-runtime"),A={variant_a:(0,M.lazy)(()=>Promise.resolve().then(()=>(F(),I))),variant_b:(0,M.lazy)(()=>Promise.resolve().then(()=>(bt(),ct)))},kt="SigninSignup",lt=({data:t})=>{var s,a,c,n,l,b,q,T,m,Y,U,V,d,k,H,W,_,K;let e=t==null?void 0:t.variant,i=e&&(A==null?void 0:A[e]),r={logo:(a=(s=t==null?void 0:t.variants)==null?void 0:s.logo)!=null?a:void 0,title:(n=(c=t==null?void 0:t.variants)==null?void 0:c.title)!=null?n:void 0,subtitle:(b=(l=t==null?void 0:t.variants)==null?void 0:l.subtitle)!=null?b:void 0,text:(T=(q=t==null?void 0:t.variants)==null?void 0:q.plainText)!=null?T:void 0,firstButton:(Y=(m=t==null?void 0:t.variants)==null?void 0:m.primaryButton)!=null?Y:void 0,secondButton:(V=(U=t==null?void 0:t.variants)==null?void 0:U.secondaryButton)!=null?V:void 0,formLinks:(k=(d=t==null?void 0:t.variants)==null?void 0:d.formLinks)!=null?k:void 0,signInLink:(W=(H=t==null?void 0:t.variants)==null?void 0:H.signinLink)!=null?W:void 0,form:(K=(_=t==null?void 0:t.variants)==null?void 0:_.form)!=null?K:void 0};return i?(0,xt.jsx)(i,{...r}):null};lt.displayName=kt;0&&(module.exports={SigninSignup});
|