@saasquatch/mint-components 1.6.3-1 → 1.6.3-2
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/cjs/sqm-portal-email-verification.cjs.entry.js +4 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +4 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +7 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-7333c706.system.entry.js → p-01848cdc.system.entry.js} +1 -1
- package/dist/mint-components/p-103274ca.system.entry.js +1 -0
- package/dist/mint-components/{p-a05940ed.entry.js → p-20c7f039.entry.js} +1 -1
- package/dist/mint-components/p-2e308c1b.system.js +1 -1
- package/dist/mint-components/p-329f2ebe.entry.js +9 -0
- package/dist/mint-components/p-aa5c7bc5.entry.js +1 -0
- package/dist/mint-components/p-bcd5cceb.system.entry.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-10d73c6f.entry.js +0 -1
- package/dist/mint-components/p-4a93ab6a.entry.js +0 -9
- package/dist/mint-components/p-bea71a98.system.entry.js +0 -1
- package/dist/mint-components/p-c183a463.system.entry.js +0 -1
|
@@ -55,7 +55,10 @@ function usePortalEmailVerification(props) {
|
|
|
55
55
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
56
56
|
console.log("verified!", timerRef.current);
|
|
57
57
|
clearTimer();
|
|
58
|
-
return index_module.fn.push(
|
|
58
|
+
return index_module.fn.push({
|
|
59
|
+
pathname: props.redirectPath,
|
|
60
|
+
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
63
|
else {
|
|
61
64
|
setCountdown(10);
|
|
@@ -51,8 +51,14 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
stencilHooks_module.useEffect(() => {
|
|
54
|
+
// Already verified, begin redirect
|
|
55
|
+
if (verified) {
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
gotoNextPage();
|
|
58
|
+
}, 3000);
|
|
59
|
+
}
|
|
54
60
|
submit();
|
|
55
|
-
}, []);
|
|
61
|
+
}, [verified]);
|
|
56
62
|
return {
|
|
57
63
|
states: {
|
|
58
64
|
loading: loading || disableContinue,
|
|
@@ -4253,7 +4253,7 @@ const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
|
4253
4253
|
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
4254
4254
|
});
|
|
4255
4255
|
|
|
4256
|
-
const scenario$7 = "@author:derek\r\n@owner:ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message is displayed\r\n And it reflects that a email has been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then they receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user does not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user receives a verification email\r\n And a success banner is shown stating that their email was resent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they resend their verification email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /verifyEmail |\r\n | has | /verifyMyEmail | /verifyMyEmail
|
|
4256
|
+
const scenario$7 = "@author:derek\r\n@owner:ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message is displayed\r\n And it reflects that a email has been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then they receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user does not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user receives a verification email\r\n And a success banner is shown stating that their email was resent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they resend their verification email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /verifyEmail |\r\n | has | /verifyMyEmail | /verifyMyEmail |\r\n\r\n @motivating\r\n Scenario: Verification status is refetched on refresh\r\n Given a user viewing the email verification component\r\n And they verified their account on another device\r\n And the local storage verification state is outdated\r\n When they refresh the page the component is on\r\n Then their verification status is re-queried\r\n And the local storage managed identity state is updated\r\n And they are redirected to the components \"redirectPath\"\r\n\r\n @motivating\r\n Scenario: Verification status is refetched every 10 seconds\r\n Given a user viewing the email verification component\r\n Then they see text \"Check verification status in 10\" below the re-send verification button\r\n And the time counts down from 10 to 0\r\n When the counter hits 0\r\n Then their verification status is re-queried\r\n And the text displays a loading state\r\n When they verify their account on another device\r\n And the count down hits 0 again from 10\r\n Then they see text \"Checking verification status\" below the re-send verification button with a spinner\r\n And their verification status is re-queried\r\n And the local storage managed identity state is updated\r\n And they are redirected to the components \"redirectPath\"\r\n";
|
|
4257
4257
|
|
|
4258
4258
|
const PortalEmailVerification_stories = {
|
|
4259
4259
|
title: "Components/Portal Email Verification",
|
|
@@ -9600,7 +9600,7 @@ const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generat
|
|
|
9600
9600
|
|
|
9601
9601
|
const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `\"Confirm Password\"` |\r\n| `continueButtonText` | `continue-button-text` | Button text displayed after a successful password reset. | `string` | `\"Continue\"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\r\n| `failedPage` | `failed-page` | Redirect participants to this page if password reset fails due to an outdated reset attempt. | `string` | `\"/\"` |\r\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully reset their password. | `string` | `\"/\"` |\r\n| `passwordFieldLabel` | `password-field-label` | | `string` | `\"New Password\"` |\r\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset. | `string` | `\"Password reset\"` |\r\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `\"Reset Password\"` |\r\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `\"Reset your password\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-reset-password --> sqm-form-message\r\n sqm-portal-reset-password --> sqm-password-field\r\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9602
9602
|
|
|
9603
|
-
const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\
|
|
9603
|
+
const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------------------------- | ------------------------------ | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; isVerified?: boolean; loadingVerification?: boolean; countdown?: number; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; verificationStatusMessage?: string; verificationLoadingMessage?: string; }; }` | `undefined` |\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page from their verification email. | `string` | `\"/verifyEmail\"` |\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\n| `verificationLoadingMessage` | `verification-loading-message` | | `string` | `\"Verification status refreshing\"` |\n| `verificationStatusMessage` | `verification-status-message` | | `string` | `\"Check verification status in {countdown}\"` |\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-email-verification --> sqm-form-message\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9604
9604
|
|
|
9605
9605
|
const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------ | ------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\r\n| `failedPage` | `failed-page` | Redirect participants to this page if verification fails due to an outdated verification attempt. | `string` | `\"/\"` |\r\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully verify their email. | `string` | `\"/\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-verify-email --> sqm-form-message\r\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9606
9606
|
|
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -42,7 +42,10 @@ export function usePortalEmailVerification(props) {
|
|
|
42
42
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
43
43
|
console.log("verified!", timerRef.current);
|
|
44
44
|
clearTimer();
|
|
45
|
-
return navigation.push(
|
|
45
|
+
return navigation.push({
|
|
46
|
+
pathname: props.redirectPath,
|
|
47
|
+
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
48
|
+
});
|
|
46
49
|
}
|
|
47
50
|
else {
|
|
48
51
|
setCountdown(10);
|
|
@@ -39,8 +39,14 @@ export function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
useEffect(() => {
|
|
42
|
+
// Already verified, begin redirect
|
|
43
|
+
if (verified) {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
gotoNextPage();
|
|
46
|
+
}, 3000);
|
|
47
|
+
}
|
|
42
48
|
submit();
|
|
43
|
-
}, []);
|
|
49
|
+
}, [verified]);
|
|
44
50
|
return {
|
|
45
51
|
states: {
|
|
46
52
|
loading: loading || disableContinue,
|
|
@@ -51,7 +51,10 @@ function usePortalEmailVerification(props) {
|
|
|
51
51
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
52
52
|
console.log("verified!", timerRef.current);
|
|
53
53
|
clearTimer();
|
|
54
|
-
return fn.push(
|
|
54
|
+
return fn.push({
|
|
55
|
+
pathname: props.redirectPath,
|
|
56
|
+
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
57
|
+
});
|
|
55
58
|
}
|
|
56
59
|
else {
|
|
57
60
|
setCountdown(10);
|
|
@@ -47,8 +47,14 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
useEffect(() => {
|
|
50
|
+
// Already verified, begin redirect
|
|
51
|
+
if (verified) {
|
|
52
|
+
setTimeout(() => {
|
|
53
|
+
gotoNextPage();
|
|
54
|
+
}, 3000);
|
|
55
|
+
}
|
|
50
56
|
submit();
|
|
51
|
-
}, []);
|
|
57
|
+
}, [verified]);
|
|
52
58
|
return {
|
|
53
59
|
states: {
|
|
54
60
|
loading: loading || disableContinue,
|
|
@@ -4249,7 +4249,7 @@ const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
|
4249
4249
|
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
4250
4250
|
});
|
|
4251
4251
|
|
|
4252
|
-
const scenario$7 = "@author:derek\r\n@owner:ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message is displayed\r\n And it reflects that a email has been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then they receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user does not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user receives a verification email\r\n And a success banner is shown stating that their email was resent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they resend their verification email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /verifyEmail |\r\n | has | /verifyMyEmail | /verifyMyEmail
|
|
4252
|
+
const scenario$7 = "@author:derek\r\n@owner:ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message is displayed\r\n And it reflects that a email has been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then they receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user does not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user receives a verification email\r\n And a success banner is shown stating that their email was resent\r\n\r\n @motivating\r\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\r\n Given a user viewing the email verification component\r\n And they have an email stored in session data from registration\r\n And the component <mayHave> \"redirect-path\" with <value>\r\n When they resend their verification email\r\n And they click the link in the email\r\n Then they are redirected to <redirectPath>\r\n Examples:\r\n | mayHave | value | redirectPath |\r\n | doesn't have | N/A | /verifyEmail |\r\n | has | /verifyMyEmail | /verifyMyEmail |\r\n\r\n @motivating\r\n Scenario: Verification status is refetched on refresh\r\n Given a user viewing the email verification component\r\n And they verified their account on another device\r\n And the local storage verification state is outdated\r\n When they refresh the page the component is on\r\n Then their verification status is re-queried\r\n And the local storage managed identity state is updated\r\n And they are redirected to the components \"redirectPath\"\r\n\r\n @motivating\r\n Scenario: Verification status is refetched every 10 seconds\r\n Given a user viewing the email verification component\r\n Then they see text \"Check verification status in 10\" below the re-send verification button\r\n And the time counts down from 10 to 0\r\n When the counter hits 0\r\n Then their verification status is re-queried\r\n And the text displays a loading state\r\n When they verify their account on another device\r\n And the count down hits 0 again from 10\r\n Then they see text \"Checking verification status\" below the re-send verification button with a spinner\r\n And their verification status is re-queried\r\n And the local storage managed identity state is updated\r\n And they are redirected to the components \"redirectPath\"\r\n";
|
|
4253
4253
|
|
|
4254
4254
|
const PortalEmailVerification_stories = {
|
|
4255
4255
|
title: "Components/Portal Email Verification",
|
|
@@ -9596,7 +9596,7 @@ const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generat
|
|
|
9596
9596
|
|
|
9597
9597
|
const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `\"Confirm Password\"` |\r\n| `continueButtonText` | `continue-button-text` | Button text displayed after a successful password reset. | `string` | `\"Continue\"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\r\n| `failedPage` | `failed-page` | Redirect participants to this page if password reset fails due to an outdated reset attempt. | `string` | `\"/\"` |\r\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully reset their password. | `string` | `\"/\"` |\r\n| `passwordFieldLabel` | `password-field-label` | | `string` | `\"New Password\"` |\r\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset. | `string` | `\"Password reset\"` |\r\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `\"Reset Password\"` |\r\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `\"Reset your password\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-reset-password --> sqm-form-message\r\n sqm-portal-reset-password --> sqm-password-field\r\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9598
9598
|
|
|
9599
|
-
const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\
|
|
9599
|
+
const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------------------------- | ------------------------------ | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; isVerified?: boolean; loadingVerification?: boolean; countdown?: number; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; verificationStatusMessage?: string; verificationLoadingMessage?: string; }; }` | `undefined` |\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page from their verification email. | `string` | `\"/verifyEmail\"` |\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\n| `verificationLoadingMessage` | `verification-loading-message` | | `string` | `\"Verification status refreshing\"` |\n| `verificationStatusMessage` | `verification-status-message` | | `string` | `\"Check verification status in {countdown}\"` |\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-email-verification --> sqm-form-message\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9600
9600
|
|
|
9601
9601
|
const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------ | ------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\r\n| `failedPage` | `failed-page` | Redirect participants to this page if verification fails due to an outdated verification attempt. | `string` | `\"/\"` |\r\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully verify their email. | `string` | `\"/\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-verify-email --> sqm-form-message\r\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9602
9602
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,i,t,a){function r(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,n){function o(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a["throw"](e))}catch(e){n(e)}}function l(e){e.done?t(e.value):r(e.value).then(o,s)}l((a=a.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,r,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(i){return l([e,i])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(t)try{if(a=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;r=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(n=t.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){t.label=o[1];break}if(o[0]===6&&t.label<n[1]){t.label=n[1];n=o;break}if(n&&t.label<n[2]){t.label=n[2];t.ops.push(o);break}if(n[2])t.ops.pop();t.trys.pop();continue}o=i.call(e,t)}catch(e){o=[6,e];r=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{i as useState,j as useRef,f as useEffect,m as h}from"./stencil-hooks.module-eefa3570.js";import"./global-126fa55c.js";import{u as useCallback}from"./use-callback-684c8bb7.js";import{t as tn,B as Be,N,f as fn,i as isDemo}from"./index.module-14794b69.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import"./sqm-text-span-view-2567b6c0.js";import{P as PortalEmailVerificationView}from"./sqm-portal-email-verification-view-c181c9ff.js";function usePortalEmailVerification(e){var i=this;var t,a,r,n,o,s,l,c,u;var f=tn(),d=f[0],v=f[1],m=v.loading,h=v.data,g=v.errors;var p=Be(),b=p[0],y=p[1],w=y.data,_=y.loading;var V=N();var E=(t=V===null||V===void 0?void 0:V.managedIdentity)===null||t===void 0?void 0:t.email;var P=new URLSearchParams(fn.location.search);var x=P.get("nextPage");var
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,i,t,a){function r(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,n){function o(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a["throw"](e))}catch(e){n(e)}}function l(e){e.done?t(e.value):r(e.value).then(o,s)}l((a=a.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,r,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(i){return l([e,i])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(t)try{if(a=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;r=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(n=t.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){t.label=o[1];break}if(o[0]===6&&t.label<n[1]){t.label=n[1];n=o;break}if(n&&t.label<n[2]){t.label=n[2];t.ops.push(o);break}if(n[2])t.ops.pop();t.trys.pop();continue}o=i.call(e,t)}catch(e){o=[6,e];r=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{i as useState,j as useRef,f as useEffect,m as h}from"./stencil-hooks.module-eefa3570.js";import"./global-126fa55c.js";import{u as useCallback}from"./use-callback-684c8bb7.js";import{t as tn,B as Be,N,f as fn,i as isDemo}from"./index.module-14794b69.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import"./sqm-text-span-view-2567b6c0.js";import{P as PortalEmailVerificationView}from"./sqm-portal-email-verification-view-c181c9ff.js";function usePortalEmailVerification(e){var i=this;var t,a,r,n,o,s,l,c,u;var f=tn(),d=f[0],v=f[1],m=v.loading,h=v.data,g=v.errors;var p=Be(),b=p[0],y=p[1],w=y.data,_=y.loading;var V=N();var E=(t=V===null||V===void 0?void 0:V.managedIdentity)===null||t===void 0?void 0:t.email;var P=new URLSearchParams(fn.location.search);var x=P.get("nextPage");var S=useState(false),k=S[0],M=S[1];var j=useState(""),I=j[0],B=j[1];var L=useState(10),R=L[0],q=L[1];var D=useRef(undefined);var T=function(){return __awaiter(i,void 0,void 0,(function(){var i,t,a,r,n;return __generator(this,(function(o){switch(o.label){case 0:if(!E)return[2];B("");M(false);t=x?{nextPage:x}:null;a=e.redirectPath;r={email:E,urlParams:t,redirectPath:a};return[4,d(r)];case 1:n=o.sent();if(n instanceof Error){if(n.message)B("Network request failed.");return[2]}if((i=n.requestManagedIdentityVerificationEmail)===null||i===void 0?void 0:i.success)M(true);return[2]}}))}))};function C(){console.log("clearing!",D.current);clearInterval(D.current)}var H=useCallback((function(){return __awaiter(i,void 0,void 0,(function(){var i,t;return __generator(this,(function(a){switch(a.label){case 0:console.log("checking...",D.current);return[4,b()];case 1:t=a.sent();if((i=t===null||t===void 0?void 0:t.managedIdentitySession)===null||i===void 0?void 0:i.emailVerified){console.log("verified!",D.current);C();return[2,fn.push({pathname:e.redirectPath,search:P.toString()&&"?"+P.toString()})]}else{q(10)}return[2]}}))}))}),[]);useEffect((function(){if(!D.current){H();D.current=setInterval(H,1e4)}return function(){console.log("clear timer");C()}}),[]);useEffect((function(){var e=R>0&&setInterval((function(){return q(R-1)}),1e3);if(R===0)clearInterval(e);return function(){return clearInterval(e)}}),[R]);return{states:{loading:m,error:((o=(n=(r=(a=g===null||g===void 0?void 0:g.response)===null||a===void 0?void 0:a.errors)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.extensions)===null||o===void 0?void 0:o.message)||((c=(l=(s=g===null||g===void 0?void 0:g.response)===null||s===void 0?void 0:s.errors)===null||l===void 0?void 0:l[0])===null||c===void 0?void 0:c.message)||I,success:k,loadingVerification:_,isVerified:!!((u=w===null||w===void 0?void 0:w.managedIdentitySession)===null||u===void 0?void 0:u.emailVerified),countdown:R},callbacks:{submit:T},content:{email:E,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage}}}var PortalEmailVerification=function(){function e(e){registerInstance(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.";this.verificationStatusMessage="Check verification status in {countdown}";this.verificationLoadingMessage="Verification status refreshing";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?usePortalEmailVerificationDemo(this):usePortalEmailVerification(this),i=e.states,t=e.callbacks,a=e.content;return h$1(PortalEmailVerificationView,{states:i,callbacks:t,content:a})};return e}();function usePortalEmailVerificationDemo(e){var i=this;return cjs({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email",verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage}},e.demoData||{},{arrayMerge:function(e,i){return i}})}export{PortalEmailVerification as sqm_portal_email_verification};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i["throw"](e))}catch(e){n(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(n=o[0]&2?a["return"]:o[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;if(a=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){r.label=o[1];break}if(o[0]===6&&r.label<n[1]){r.label=n[1];n=o;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(o);break}if(n[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{i=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{f as useEffect,m as h}from"./stencil-hooks.module-eefa3570.js";import"./use-callback-684c8bb7.js";import{N,X as Xe,f as fn,i as isDemo}from"./index.module-14794b69.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{s as sanitizeUrlPath}from"./utils-334c1e34.js";import"./sqm-text-span-view-2567b6c0.js";import{P as PortalVerifyEmailView}from"./sqm-portal-verify-email-view-cd01a420.js";function usePortalVerifyEmail(e){var t=this;var r=e.nextPage,i=e.failedPage;var a,n,o,s,l,u,f,c;var d=N();var v=Xe(),m=v[0],h=v[1],p=h.loading,g=h.data,b=h.errors;var y=new URLSearchParams(fn.location.search);var w=y.get("oobCode");var P=y.get("nextPage");var x=g===undefined&&b===undefined&&!!w;var _=!!(((a=d===null||d===void 0?void 0:d.managedIdentity)===null||a===void 0?void 0:a.emailVerified)||(g===null||g===void 0?void 0:g.verifyManagedIdentityEmail.success));var E=function(){return fn.push({pathname:i,search:y.toString()&&"?"+y.toString()})};var j=function(){y.delete("nextPage");var e=sanitizeUrlPath(P||r);fn.push(e.href)};var k=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:if(!w)return[3,2];return[4,m({oobCode:w})];case 1:t=r.sent();if((t instanceof Error||!t.verifyManagedIdentityEmail.success)&&!((e=d===null||d===void 0?void 0:d.managedIdentity)===null||e===void 0?void 0:e.emailVerified)){return[2]}setTimeout((function(){j()}),3e3);r.label=2;case 2:return[2]}}))}))};useEffect((function(){k()}),[]);return{states:{loading:p||x,error:((l=(s=(o=(n=b===null||b===void 0?void 0:b.response)===null||n===void 0?void 0:n.errors)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.extensions)===null||l===void 0?void 0:l.message)||((c=(f=(u=b===null||b===void 0?void 0:b.response)===null||u===void 0?void 0:u.errors)===null||f===void 0?void 0:f[0])===null||c===void 0?void 0:c.message)||(b===null||b===void 0?void 0:b.message)&&"Network request failed.",verified:_},data:{oobCode:w},callbacks:{failed:E,gotoNextPage:j}}}var PortalVerifyEmail=function(){function e(e){registerInstance(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?usePortalVerifyEmailDemo(this):usePortalVerifyEmail(this),t=e.states,r=e.data,i=e.callbacks;return h$1(PortalVerifyEmailView,{states:t,data:r,callbacks:i})};return e}();function usePortalVerifyEmailDemo(e){return cjs({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{PortalVerifyEmail as sqm_portal_verify_email};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i["throw"](e))}catch(e){n(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,a&&(n=o[0]&2?a["return"]:o[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;if(a=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){r.label=o[1];break}if(o[0]===6&&r.label<n[1]){r.label=n[1];n=o;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(o);break}if(n[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{i=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{f as useEffect,m as h}from"./stencil-hooks.module-eefa3570.js";import"./use-callback-684c8bb7.js";import{N,X as Xe,f as fn,i as isDemo}from"./index.module-14794b69.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{s as sanitizeUrlPath}from"./utils-334c1e34.js";import"./sqm-text-span-view-2567b6c0.js";import{P as PortalVerifyEmailView}from"./sqm-portal-verify-email-view-cd01a420.js";function usePortalVerifyEmail(e){var t=this;var r=e.nextPage,i=e.failedPage;var a,n,o,s,l,u,f,c;var d=N();var v=Xe(),m=v[0],h=v[1],p=h.loading,g=h.data,b=h.errors;var y=new URLSearchParams(fn.location.search);var w=y.get("oobCode");var P=y.get("nextPage");var x=g===undefined&&b===undefined&&!!w;var _=!!(((a=d===null||d===void 0?void 0:d.managedIdentity)===null||a===void 0?void 0:a.emailVerified)||(g===null||g===void 0?void 0:g.verifyManagedIdentityEmail.success));var E=function(){return fn.push({pathname:i,search:y.toString()&&"?"+y.toString()})};var j=function(){y.delete("nextPage");var e=sanitizeUrlPath(P||r);fn.push(e.href)};var k=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:if(!w)return[3,2];return[4,m({oobCode:w})];case 1:t=r.sent();if((t instanceof Error||!t.verifyManagedIdentityEmail.success)&&!((e=d===null||d===void 0?void 0:d.managedIdentity)===null||e===void 0?void 0:e.emailVerified)){return[2]}setTimeout((function(){j()}),3e3);r.label=2;case 2:return[2]}}))}))};useEffect((function(){if(_){setTimeout((function(){j()}),3e3)}k()}),[_]);return{states:{loading:p||x,error:((l=(s=(o=(n=b===null||b===void 0?void 0:b.response)===null||n===void 0?void 0:n.errors)===null||o===void 0?void 0:o[0])===null||s===void 0?void 0:s.extensions)===null||l===void 0?void 0:l.message)||((c=(f=(u=b===null||b===void 0?void 0:b.response)===null||u===void 0?void 0:u.errors)===null||f===void 0?void 0:f[0])===null||c===void 0?void 0:c.message)||(b===null||b===void 0?void 0:b.message)&&"Network request failed.",verified:_},data:{oobCode:w},callbacks:{failed:E,gotoNextPage:j}}}var PortalVerifyEmail=function(){function e(e){registerInstance(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?usePortalVerifyEmailDemo(this):usePortalVerifyEmail(this),t=e.states,r=e.data,i=e.callbacks;return h$1(PortalVerifyEmailView,{states:t,data:r,callbacks:i})};return e}();function usePortalVerifyEmailDemo(e){return cjs({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{PortalVerifyEmail as sqm_portal_verify_email};
|