@visma-swno/customer-onboarding-wizard 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/customer-onboarding-wizard/customer-onboarding-wizard.d.ts +1 -0
- package/dist/components/customer-onboarding-wizard/wizard-step-complete.d.ts +1 -0
- package/dist/components/customer-onboarding-wizard/wizard-step-welcome.d.ts +1 -0
- package/dist/components/customer-onboarding-wizard/wizard-step1-company.d.ts +2 -0
- package/dist/components/customer-onboarding-wizard/wizard-step2-administrators.d.ts +2 -0
- package/dist/components/customer-onboarding-wizard/wizard-step3-partner-access.d.ts +1 -0
- package/dist/core/i18n.service.d.ts +9 -2
- package/dist/index.js +406 -391
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as g, customElement as
|
|
3
|
-
|
|
4
|
-
const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-information-accent:var(--ga-color-utility-blue-accent);--ga-color-surface-information:var(--ga-color-information-accent);--ga-color-utility-blue-accent:var(--ga-color-blue-10);--ga-color-blue-40:#93bbf9;--ga-color-utility-blue:var(--ga-color-blue-40);--ga-color-blue-60:#366af6;--ga-color-border-information:var(--ga-color-information);--ga-color-icon-information:var(--ga-color-information);--ga-color-information:var(--ga-color-blue-60);--ga-color-border-action:var(--ga-color-primary);--ga-color-border-action-hover:var(--ga-color-primary-60);--ga-color-border-action-hover-2:var(--ga-color-secondary-30);--ga-color-border-disabled:var(--ga-color-neutral);--ga-color-border-error:var(--ga-color-error);--ga-color-border-focus:var(--ga-color-primary);--ga-color-border-primary:var(--ga-color-neutral-60);--ga-color-border-secondary:var(--ga-color-secondary-30);--ga-color-border-selected:var(--ga-color-green-60);--ga-color-border-success:var(--ga-color-success);--ga-color-border-tertiary:var(--ga-color-neutral);--ga-color-border-warning:var(--ga-color-warning);--ga-color-categorical-graph-01:#6769d8;--ga-color-categorical-graph-02:#479fc6;--ga-color-categorical-graph-03:var(--ga-color-teal-70);--ga-color-categorical-graph-04:#c0497d;--ga-color-categorical-graph-05:#041255;--ga-color-categorical-graph-06:#dc756b;--ga-color-categorical-graph-07:var(--ga-color-rose-40);--ga-color-categorical-graph-08:#984319;--ga-color-categorical-graph-09:var(--ga-color-indigo-40);--ga-color-categorical-graph-10:#610f08;--ga-color-cyan-60:#377ea0;--ga-color-icon-action-hover:var(--ga-color-primary-60);--ga-color-primary-60:var(--ga-color-cyan-60);--ga-color-surface-progress-2:var(--ga-color-primary-60);--ga-color-cyan-70:#2a6480;--ga-color-primary-70:var(--ga-color-cyan-70);--ga-color-surface-progress:var(--ga-color-primary-70);--ga-color-text-body-secondary:var(--ga-color-primary-70);--ga-color-cyan-80:#1f4e66;--ga-color-icon-action:var(--ga-color-primary);--ga-color-primary:var(--ga-color-cyan-80);--ga-color-surface-action:var(--ga-color-primary);--ga-color-text-action:var(--ga-color-primary);--ga-color-cyan-90:#133445;--ga-color-icon-primary:var(--ga-color-primary-90);--ga-color-primary-90:var(--ga-color-cyan-90);--ga-color-surface-action-hover:var(--ga-color-primary-90);--ga-color-text-action-hover:var(--ga-color-primary-90);--ga-color-text-body:var(--ga-color-primary-90);--ga-color-text-error:var(--ga-color-primary-90);--ga-color-text-headings:var(--ga-color-primary-90);--ga-color-text-information:var(--ga-color-primary-90);--ga-color-text-success:var(--ga-color-primary-90);--ga-color-text-warning:var(--ga-color-primary-90);--ga-color-diverging-graph-01:#281986;--ga-color-diverging-graph-02:#3d37a3;--ga-color-diverging-graph-03:#504fba;--ga-color-diverging-graph-04:#6769d8;--ga-color-diverging-graph-05:#8489f5;--ga-color-diverging-graph-06:var(--ga-color-indigo-40);--ga-color-diverging-graph-07:#c5cbfb;--ga-color-diverging-graph-08:var(--ga-color-indigo-10);--ga-color-diverging-graph-09:var(--ga-color-teal-30);--ga-color-diverging-graph-10:var(--ga-color-teal-40);--ga-color-diverging-graph-11:var(--ga-color-teal-50);--ga-color-diverging-graph-12:var(--ga-color-teal-60);--ga-color-diverging-graph-13:var(--ga-color-teal-70);--ga-color-diverging-graph-14:var(--ga-color-teal-80);--ga-color-diverging-graph-15:var(--ga-color-teal-90);--ga-color-error:var(--ga-color-red-60);--ga-color-icon-error:var(--ga-color-error);--ga-color-error-accent:var(--ga-color-utility-red-accent);--ga-color-green-10:#eef5ee;--ga-color-success-accent:var(--ga-color-utility-green-accent);--ga-color-surface-selected:var(--ga-color-green-10);--ga-color-surface-success:var(--ga-color-success-accent);--ga-color-utility-green-accent:var(--ga-color-green-10);--ga-color-green-40:#9bc59b;--ga-color-utility-green:var(--ga-color-green-40);--ga-color-green-60:#448548;--ga-color-icon-success:var(--ga-color-success);--ga-color-success:var(--ga-color-green-60);--ga-color-grey-10:#f2f2f2;--ga-color-utility-grey-accent:var(--ga-color-grey-10);--ga-color-grey-40:#b9b9b9;--ga-color-text-disabled:var(--ga-color-utility-grey);--ga-color-utility-grey:var(--ga-color-grey-40);--ga-color-icon-disabled:var(--ga-color-neutral);--ga-color-icon-on-action:var(--ga-color-secondary);--ga-color-icon-on-disabled:var(--ga-color-neutral-60);--ga-color-icon-on-primary:var(--ga-color-white);--ga-color-icon-warning:var(--ga-color-warning);--ga-color-indigo-10:#f0f2fe;--ga-color-utility-indigo-accent:var(--ga-color-indigo-10);--ga-color-indigo-40:#adb4f9;--ga-color-utility-indigo:var(--ga-color-indigo-40);--ga-color-lime-10:#edf6dd;--ga-color-utility-lime-accent:var(--ga-color-lime-10);--ga-color-lime-40:#a5c656;--ga-color-utility-lime:var(--ga-color-lime-40);--ga-color-miscellaneous-overlay:#70778891;--ga-color-miscellaneous-skeleton-element:var(--ga-color-neutral-10);--ga-color-miscellaneous-skeleton-highlight:var(--ga-color-neutral-20);--ga-color-neutral:var(--ga-color-neutral-30);--ga-color-neutral-10:#f2f3f5;--ga-color-surface-page:var(--ga-color-neutral-10);--ga-color-neutral-20:#e2e4e9;--ga-color-surface-container:var(--ga-color-neutral-20);--ga-color-surface-disabled:var(--ga-color-neutral-20);--ga-color-neutral-30:#cccfd7;--ga-color-neutral-60:#6f7687;--ga-color-surface-disable-selected:var(--ga-color-neutral-60);--ga-color-text-disable-selected:var(--ga-color-neutral-60);--ga-color-text-on-disabled:var(--ga-color-neutral-60);--ga-color-orange-10:#fcf0e7;--ga-color-secondary-10:var(--ga-color-orange-10);--ga-color-surface-warning:var(--ga-color-utility-orange-accent);--ga-color-text-on-action:var(--ga-color-secondary-10);--ga-color-utility-orange-accent:var(--ga-color-orange-10);--ga-color-warning-accent:var(--ga-color-utility-orange-accent);--ga-color-orange-20:#fae0ce;--ga-color-secondary:var(--ga-color-orange-20);--ga-color-surface-action-hover-2:var(--ga-color-orange-20);--ga-color-text-menu:var(--ga-color-secondary);--ga-color-orange-30:#f5c3a1;--ga-color-secondary-30:var(--ga-color-orange-30);--ga-color-surface-highlight:var(--ga-color-secondary-30);--ga-color-orange-40:#f2a676;--ga-color-utility-orange:var(--ga-color-orange-40);--ga-color-orange-60:#bb5822;--ga-color-warning:var(--ga-color-orange-60);--ga-color-pink-10:#fbeefc;--ga-color-utility-pink-accent:var(--ga-color-pink-10);--ga-color-pink-40:#e79dee;--ga-color-utility-pink:var(--ga-color-pink-40);--ga-color-purple-10:#f3f1fe;--ga-color-utility-purple-accent:var(--ga-color-purple-10);--ga-color-purple-40:#c3acf9;--ga-color-utility-purple:var(--ga-color-purple-40);--ga-color-purple-80:#591ab5;--ga-color-text-link-visited:var(--ga-color-purple-80);--ga-color-red-10:#fcf1ee;--ga-color-surface-error:var(--ga-color-utility-red-accent);--ga-color-utility-red-accent:var(--ga-color-red-10);--ga-color-red-40:#eca79e;--ga-color-utility-red:var(--ga-color-red-40);--ga-color-red-60:#cc453e;--ga-color-rose-10:#fcf0f4;--ga-color-utility-rose-accent:var(--ga-color-rose-10);--ga-color-rose-40:#efa1bd;--ga-color-utility-rose:var(--ga-color-rose-40);--ga-color-sequential-graph-10:var(--ga-color-teal-10);--ga-color-sequential-graph-20:var(--ga-color-teal-20);--ga-color-sequential-graph-30:var(--ga-color-teal-30);--ga-color-sequential-graph-40:var(--ga-color-teal-40);--ga-color-sequential-graph-50:var(--ga-color-teal-50);--ga-color-sequential-graph-60:var(--ga-color-teal-60);--ga-color-sequential-graph-70:var(--ga-color-teal-70);--ga-color-sequential-graph-80:var(--ga-color-teal-80);--ga-color-sequential-graph-90:var(--ga-color-teal-90);--ga-color-sequential-graph-100:var(--ga-color-teal-100);--ga-color-surface-primary:var(--ga-color-white);--ga-color-teal-10:#ecf5f4;--ga-color-utility-teal-accent:var(--ga-color-teal-10);--ga-color-teal-20:#d5e8e6;--ga-color-teal-30:#b4d7d4;--ga-color-teal-40:#92c3c0;--ga-color-utility-teal:var(--ga-color-teal-40);--ga-color-teal-50:#51a39e;--ga-color-teal-60:#3a837e;--ga-color-teal-70:#2c6764;--ga-color-teal-80:#21514e;--ga-color-teal-90:#143734;--ga-color-teal-100:#081f1f;--ga-color-white:#fff;--ga-duration-0:0ms;--ga-duration-fast:100ms;--ga-transition-state:var(--ga-duration-fast) 0ms var(--ga-easing-standard);--ga-duration-instant:50ms;--ga-transition-hover:var(--ga-duration-instant) 0ms var(--ga-easing-standard);--ga-duration-moderate:150ms;--ga-transition-dismiss:var(--ga-duration-moderate) 0ms var(--ga-easing-exit);--ga-transition-reveal:var(--ga-duration-moderate) 0ms var(--ga-easing-entrance);--ga-duration-slow:250ms;--ga-transition-overlay-in:var(--ga-duration-slow) 0ms var(--ga-easing-entrance);--ga-transition-overlay-out:var(--ga-duration-slow) 0ms var(--ga-easing-exit);--ga-duration-slower:400ms;--ga-transition-backdrop:var(--ga-duration-slower) 0ms var(--ga-easing-standard);--ga-easing-entrance:cubic-bezier(0,0,0.38,0.9);--ga-easing-exit:cubic-bezier(0.2,0,1,0.9);--ga-easing-standard:cubic-bezier(0.2,0,0.38,0.9);--ga-font-family-primary:"Inter",system-ui,sans-serif;--ga-font-weight-bold:700;--ga-font-weight-medium:500;--ga-font-weight-normal:400;--ga-font-weight-semibold:600;--ga-radius:4px;--ga-radius-round:999px;--ga-radius-sharp:0.02rem;--ga-shadow-east:-2px 0 5px 0 #1334451a,-8px 0 8px 0 #13344517,-19px 0 11px 0 #1334450d,-34px 0 14px 0 #13344503,-53px 0 15px 0 #13344500;--ga-shadow-north:0 4px 8px 0 #1334451a,0 15px 15px 0 #13344517,0 34px 21px 0 #1334450d,0 61px 24px 0 #13344503,0 95px 27px 0 #13344500;--ga-shadow-south:0 -1px 1px 0 #13344514,0 -2px 2px 0 #13344512,0 -6px 3px 0 #1334450a,0 -10px 4px 0 #13344503,0 -15px 4px 0 #13344500;--ga-shadow-west:1px 0 3px 0 #1334451a,5px 0 5px 0 #13344517,12px 0 7px 0 #1334450d,21px 0 8px 0 #13344503,33px 0 9px 0 #13344500;--ga-size-0:0;--ga-size-1:0.0625rem;--ga-size-2:0.125rem;--ga-size-4:0.25rem;--ga-size-6:0.375rem;--ga-size-8:0.5rem;--ga-size-10:0.625rem;--ga-size-11:0.6875rem;--ga-size-12:0.75rem;--ga-size-14:0.875rem;--ga-size-16:1rem;--ga-size-18:1.125rem;--ga-size-20:1.25rem;--ga-size-24:1.5rem;--ga-size-28:1.75rem;--ga-size-32:2rem;--ga-size-36:2.25rem;--ga-size-40:2.5rem;--ga-size-44:2.75rem;--ga-size-48:3rem;--ga-size-56:3.5rem;--ga-size-64:4rem;--ga-size-80:5rem;--ga-size-96:6rem;--ga-size-112:7rem;--ga-size-128:8rem;--ga-size-144:9rem;--ga-size-160:10rem;--ga-size-192:12rem;--ga-size-224:14rem;--ga-size-256:16rem;--ga-size-288:18rem;--ga-size-320:20rem;--ga-size-352:22rem;--ga-size-384:24rem;--ga-size-416:26rem;--ga-size-border-width-lg:4px;--ga-size-border-width-md:2px;--ga-size-border-width-none:0;--ga-size-border-width-sm:1px;--ga-size-spacing-00:0;--ga-size-spacing-01:0.125rem;--ga-size-spacing-02:0.25rem;--ga-size-spacing-03:0.5rem;--ga-size-spacing-04:0.75rem;--ga-size-spacing-05:1rem;--ga-size-spacing-06:1.5rem;--ga-size-spacing-07:2rem;--ga-size-spacing-08:2.5rem;--ga-size-spacing-09:3rem;--ga-size-spacing-10:4rem;--ga-size-spacing-11:5rem;--ga-size-spacing-12:6rem;--ga-size-spacing-13:10rem;--ga-text-2xl-font-size:1.5rem;--ga-text-2xl-font-style:normal;--ga-text-2xl-line-height:2rem;--ga-text-2xl-font-family:inherit;--ga-text-2xl-font-weight:400;--ga-text-2xl-letter-spacing:-0.019rem;--ga-text-2xl:var(--ga-text-2xl-font-style) var(--ga-text-2xl-font-weight) var(--ga-text-2xl-font-size)/var(--ga-text-2xl-line-height) var(--ga-text-2xl-font-family);--ga-text-3xl-font-size:2rem;--ga-text-3xl-font-style:normal;--ga-text-3xl-line-height:2.5rem;--ga-text-3xl-font-family:inherit;--ga-text-3xl-font-weight:400;--ga-text-3xl-letter-spacing:-0.022rem;--ga-text-3xl:var(--ga-text-3xl-font-style) var(--ga-text-3xl-font-weight) var(--ga-text-3xl-font-size)/var(--ga-text-3xl-line-height) var(--ga-text-3xl-font-family);--ga-text-lg-font-size:1rem;--ga-text-lg-font-style:normal;--ga-text-lg-line-height:1.5rem;--ga-text-lg-font-family:inherit;--ga-text-lg-font-weight:400;--ga-text-lg-letter-spacing:-0.011rem;--ga-text-lg:var(--ga-text-lg-font-style) var(--ga-text-lg-font-weight) var(--ga-text-lg-font-size)/var(--ga-text-lg-line-height) var(--ga-text-lg-font-family);--ga-text-md-font-size:0.875rem;--ga-text-md-font-style:normal;--ga-text-md-line-height:1.25rem;--ga-text-md-font-family:inherit;--ga-text-md-font-weight:400;--ga-text-md-letter-spacing:-0.006rem;--ga-text-md:var(--ga-text-md-font-style) var(--ga-text-md-font-weight) var(--ga-text-md-font-size)/var(--ga-text-md-line-height) var(--ga-text-md-font-family);--ga-text-sm-font-size:0.75rem;--ga-text-sm-font-style:normal;--ga-text-sm-line-height:1.25rem;--ga-text-sm-font-family:inherit;--ga-text-sm-font-weight:400;--ga-text-sm-letter-spacing:0;--ga-text-sm:var(--ga-text-sm-font-style) var(--ga-text-sm-font-weight) var(--ga-text-sm-font-size)/var(--ga-text-sm-line-height) var(--ga-text-sm-font-family);--ga-text-xl-font-size:1.125rem;--ga-text-xl-font-style:normal;--ga-text-xl-line-height:1.5rem;--ga-text-xl-font-family:inherit;--ga-text-xl-font-weight:400;--ga-text-xl-letter-spacing:-0.017rem;--ga-text-xl:var(--ga-text-xl-font-style) var(--ga-text-xl-font-weight) var(--ga-text-xl-font-size)/var(--ga-text-xl-line-height) var(--ga-text-xl-font-family);--ga-text-xs-font-size:0.6875rem;--ga-text-xs-font-style:normal;--ga-text-xs-line-height:1rem;--ga-text-xs-font-family:inherit;--ga-text-xs-font-weight:400;--ga-text-xs-letter-spacing:0.005rem;--ga-text-xs:var(--ga-text-xs-font-style) var(--ga-text-xs-font-weight) var(--ga-text-xs-font-size)/var(--ga-text-xs-line-height) var(--ga-text-xs-font-family);--vsn-customer-onboarding-wizard-font-family:var(--font-family,Inter,ui-sans-serif,system-ui,sans-serif);--ga-text-sm-size:var(--ga-text-sm-font-size);--ga-text-md-size:var(--ga-text-md-font-size);--ga-text-md-tracking:var(--ga-text-md-letter-spacing);--ga-text-xl-size:var(--ga-text-xl-font-size);--ga-text-xl-tracking:var(--ga-text-xl-letter-spacing);--ga-text-2xl-size:var(--ga-text-2xl-font-size);--ga-text-2xl-tracking:var(--ga-text-2xl-letter-spacing);--ga-size-content-2xs:11.25rem;--ga-size-content-xs:15rem;--ga-size-content-sm:22.5rem;--ga-color-utility-green-light:var(--ga-color-green-10);--ga-shadow-dropdown:var(--ga-shadow-south);}@media (width >= 48rem){:host{--ga-text-2xl-font-size:1.5rem;--ga-text-2xl-font-style:normal;--ga-text-2xl-line-height:2.5rem;--ga-text-2xl-font-family:inherit;--ga-text-2xl-font-weight:400;--ga-text-2xl-letter-spacing:-0.019rem;--ga-text-2xl:var(--ga-text-2xl-font-style) var(--ga-text-2xl-font-weight) var(--ga-text-2xl-font-size)/var(--ga-text-2xl-line-height) var(--ga-text-2xl-font-family);--ga-text-3xl-font-size:2.25rem;--ga-text-3xl-font-style:normal;--ga-text-3xl-line-height:3rem;--ga-text-3xl-font-family:inherit;--ga-text-3xl-font-weight:400;--ga-text-3xl-letter-spacing:-0.022rem;--ga-text-3xl:var(--ga-text-3xl-font-style) var(--ga-text-3xl-font-weight) var(--ga-text-3xl-font-size)/var(--ga-text-3xl-line-height) var(--ga-text-3xl-font-family);--ga-text-xl-font-size:1.25rem;--ga-text-xl-font-style:normal;--ga-text-xl-line-height:2rem;--ga-text-xl-font-family:inherit;--ga-text-xl-font-weight:400;--ga-text-xl-letter-spacing:-0.017rem;--ga-text-xl:var(--ga-text-xl-font-style) var(--ga-text-xl-font-weight) var(--ga-text-xl-font-size)/var(--ga-text-xl-line-height) var(--ga-text-xl-font-family);}}`, d = {
|
|
5
|
-
circle: () =>
|
|
1
|
+
import { css as S, svg as b, LitElement as E, html as n, nothing as p } from "lit";
|
|
2
|
+
import { property as g, customElement as A, state as l } from "lit/decorators.js";
|
|
3
|
+
S`:root{--font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--primary-color:#0066cc;--secondary-color:#6c757d;--success-color:#28a745;--danger-color:#dc3545;--warning-color:#ffc107;--info-color:#17a2b8;--background-color:#ffffff;--surface-color:#f8f9fa;--border-color:#dee2e6;--ga-text-primary:#212529;--ga-text-secondary:#6c757d;--spacing-xs:0.25rem;--spacing-sm:0.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--border-radius:4px;--box-shadow:0 2px 4px rgba(0,0,0,0.1);}*{box-sizing:border-box;}`;
|
|
4
|
+
const N = S`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-information-accent:var(--ga-color-utility-blue-accent);--ga-color-surface-information:var(--ga-color-information-accent);--ga-color-utility-blue-accent:var(--ga-color-blue-10);--ga-color-blue-40:#93bbf9;--ga-color-utility-blue:var(--ga-color-blue-40);--ga-color-blue-60:#366af6;--ga-color-border-information:var(--ga-color-information);--ga-color-icon-information:var(--ga-color-information);--ga-color-information:var(--ga-color-blue-60);--ga-color-border-action:var(--ga-color-primary);--ga-color-border-action-hover:var(--ga-color-primary-60);--ga-color-border-action-hover-2:var(--ga-color-secondary-30);--ga-color-border-disabled:var(--ga-color-neutral);--ga-color-border-error:var(--ga-color-error);--ga-color-border-focus:var(--ga-color-primary);--ga-color-border-primary:var(--ga-color-neutral-60);--ga-color-border-secondary:var(--ga-color-secondary-30);--ga-color-border-selected:var(--ga-color-green-60);--ga-color-border-success:var(--ga-color-success);--ga-color-border-tertiary:var(--ga-color-neutral);--ga-color-border-warning:var(--ga-color-warning);--ga-color-categorical-graph-01:#6769d8;--ga-color-categorical-graph-02:#479fc6;--ga-color-categorical-graph-03:var(--ga-color-teal-70);--ga-color-categorical-graph-04:#c0497d;--ga-color-categorical-graph-05:#041255;--ga-color-categorical-graph-06:#dc756b;--ga-color-categorical-graph-07:var(--ga-color-rose-40);--ga-color-categorical-graph-08:#984319;--ga-color-categorical-graph-09:var(--ga-color-indigo-40);--ga-color-categorical-graph-10:#610f08;--ga-color-cyan-60:#377ea0;--ga-color-icon-action-hover:var(--ga-color-primary-60);--ga-color-primary-60:var(--ga-color-cyan-60);--ga-color-surface-progress-2:var(--ga-color-primary-60);--ga-color-cyan-70:#2a6480;--ga-color-primary-70:var(--ga-color-cyan-70);--ga-color-surface-progress:var(--ga-color-primary-70);--ga-color-text-body-secondary:var(--ga-color-primary-70);--ga-color-cyan-80:#1f4e66;--ga-color-icon-action:var(--ga-color-primary);--ga-color-primary:var(--ga-color-cyan-80);--ga-color-surface-action:var(--ga-color-primary);--ga-color-text-action:var(--ga-color-primary);--ga-color-cyan-90:#133445;--ga-color-icon-primary:var(--ga-color-primary-90);--ga-color-primary-90:var(--ga-color-cyan-90);--ga-color-surface-action-hover:var(--ga-color-primary-90);--ga-color-text-action-hover:var(--ga-color-primary-90);--ga-color-text-body:var(--ga-color-primary-90);--ga-color-text-error:var(--ga-color-primary-90);--ga-color-text-headings:var(--ga-color-primary-90);--ga-color-text-information:var(--ga-color-primary-90);--ga-color-text-success:var(--ga-color-primary-90);--ga-color-text-warning:var(--ga-color-primary-90);--ga-color-diverging-graph-01:#281986;--ga-color-diverging-graph-02:#3d37a3;--ga-color-diverging-graph-03:#504fba;--ga-color-diverging-graph-04:#6769d8;--ga-color-diverging-graph-05:#8489f5;--ga-color-diverging-graph-06:var(--ga-color-indigo-40);--ga-color-diverging-graph-07:#c5cbfb;--ga-color-diverging-graph-08:var(--ga-color-indigo-10);--ga-color-diverging-graph-09:var(--ga-color-teal-30);--ga-color-diverging-graph-10:var(--ga-color-teal-40);--ga-color-diverging-graph-11:var(--ga-color-teal-50);--ga-color-diverging-graph-12:var(--ga-color-teal-60);--ga-color-diverging-graph-13:var(--ga-color-teal-70);--ga-color-diverging-graph-14:var(--ga-color-teal-80);--ga-color-diverging-graph-15:var(--ga-color-teal-90);--ga-color-error:var(--ga-color-red-60);--ga-color-icon-error:var(--ga-color-error);--ga-color-error-accent:var(--ga-color-utility-red-accent);--ga-color-green-10:#eef5ee;--ga-color-success-accent:var(--ga-color-utility-green-accent);--ga-color-surface-selected:var(--ga-color-green-10);--ga-color-surface-success:var(--ga-color-success-accent);--ga-color-utility-green-accent:var(--ga-color-green-10);--ga-color-green-40:#9bc59b;--ga-color-utility-green:var(--ga-color-green-40);--ga-color-green-60:#448548;--ga-color-icon-success:var(--ga-color-success);--ga-color-success:var(--ga-color-green-60);--ga-color-grey-10:#f2f2f2;--ga-color-utility-grey-accent:var(--ga-color-grey-10);--ga-color-grey-40:#b9b9b9;--ga-color-text-disabled:var(--ga-color-utility-grey);--ga-color-utility-grey:var(--ga-color-grey-40);--ga-color-icon-disabled:var(--ga-color-neutral);--ga-color-icon-on-action:var(--ga-color-secondary);--ga-color-icon-on-disabled:var(--ga-color-neutral-60);--ga-color-icon-on-primary:var(--ga-color-white);--ga-color-icon-warning:var(--ga-color-warning);--ga-color-indigo-10:#f0f2fe;--ga-color-utility-indigo-accent:var(--ga-color-indigo-10);--ga-color-indigo-40:#adb4f9;--ga-color-utility-indigo:var(--ga-color-indigo-40);--ga-color-lime-10:#edf6dd;--ga-color-utility-lime-accent:var(--ga-color-lime-10);--ga-color-lime-40:#a5c656;--ga-color-utility-lime:var(--ga-color-lime-40);--ga-color-miscellaneous-overlay:#70778891;--ga-color-miscellaneous-skeleton-element:var(--ga-color-neutral-10);--ga-color-miscellaneous-skeleton-highlight:var(--ga-color-neutral-20);--ga-color-neutral:var(--ga-color-neutral-30);--ga-color-neutral-10:#f2f3f5;--ga-color-surface-page:var(--ga-color-neutral-10);--ga-color-neutral-20:#e2e4e9;--ga-color-surface-container:var(--ga-color-neutral-20);--ga-color-surface-disabled:var(--ga-color-neutral-20);--ga-color-neutral-30:#cccfd7;--ga-color-neutral-60:#6f7687;--ga-color-surface-disable-selected:var(--ga-color-neutral-60);--ga-color-text-disable-selected:var(--ga-color-neutral-60);--ga-color-text-on-disabled:var(--ga-color-neutral-60);--ga-color-orange-10:#fcf0e7;--ga-color-secondary-10:var(--ga-color-orange-10);--ga-color-surface-warning:var(--ga-color-utility-orange-accent);--ga-color-text-on-action:var(--ga-color-secondary-10);--ga-color-utility-orange-accent:var(--ga-color-orange-10);--ga-color-warning-accent:var(--ga-color-utility-orange-accent);--ga-color-orange-20:#fae0ce;--ga-color-secondary:var(--ga-color-orange-20);--ga-color-surface-action-hover-2:var(--ga-color-orange-20);--ga-color-text-menu:var(--ga-color-secondary);--ga-color-orange-30:#f5c3a1;--ga-color-secondary-30:var(--ga-color-orange-30);--ga-color-surface-highlight:var(--ga-color-secondary-30);--ga-color-orange-40:#f2a676;--ga-color-utility-orange:var(--ga-color-orange-40);--ga-color-orange-60:#bb5822;--ga-color-warning:var(--ga-color-orange-60);--ga-color-pink-10:#fbeefc;--ga-color-utility-pink-accent:var(--ga-color-pink-10);--ga-color-pink-40:#e79dee;--ga-color-utility-pink:var(--ga-color-pink-40);--ga-color-purple-10:#f3f1fe;--ga-color-utility-purple-accent:var(--ga-color-purple-10);--ga-color-purple-40:#c3acf9;--ga-color-utility-purple:var(--ga-color-purple-40);--ga-color-purple-80:#591ab5;--ga-color-text-link-visited:var(--ga-color-purple-80);--ga-color-red-10:#fcf1ee;--ga-color-surface-error:var(--ga-color-utility-red-accent);--ga-color-utility-red-accent:var(--ga-color-red-10);--ga-color-red-40:#eca79e;--ga-color-utility-red:var(--ga-color-red-40);--ga-color-red-60:#cc453e;--ga-color-rose-10:#fcf0f4;--ga-color-utility-rose-accent:var(--ga-color-rose-10);--ga-color-rose-40:#efa1bd;--ga-color-utility-rose:var(--ga-color-rose-40);--ga-color-sequential-graph-10:var(--ga-color-teal-10);--ga-color-sequential-graph-20:var(--ga-color-teal-20);--ga-color-sequential-graph-30:var(--ga-color-teal-30);--ga-color-sequential-graph-40:var(--ga-color-teal-40);--ga-color-sequential-graph-50:var(--ga-color-teal-50);--ga-color-sequential-graph-60:var(--ga-color-teal-60);--ga-color-sequential-graph-70:var(--ga-color-teal-70);--ga-color-sequential-graph-80:var(--ga-color-teal-80);--ga-color-sequential-graph-90:var(--ga-color-teal-90);--ga-color-sequential-graph-100:var(--ga-color-teal-100);--ga-color-surface-primary:var(--ga-color-white);--ga-color-teal-10:#ecf5f4;--ga-color-utility-teal-accent:var(--ga-color-teal-10);--ga-color-teal-20:#d5e8e6;--ga-color-teal-30:#b4d7d4;--ga-color-teal-40:#92c3c0;--ga-color-utility-teal:var(--ga-color-teal-40);--ga-color-teal-50:#51a39e;--ga-color-teal-60:#3a837e;--ga-color-teal-70:#2c6764;--ga-color-teal-80:#21514e;--ga-color-teal-90:#143734;--ga-color-teal-100:#081f1f;--ga-color-white:#fff;--ga-duration-0:0ms;--ga-duration-fast:100ms;--ga-transition-state:var(--ga-duration-fast) 0ms var(--ga-easing-standard);--ga-duration-instant:50ms;--ga-transition-hover:var(--ga-duration-instant) 0ms var(--ga-easing-standard);--ga-duration-moderate:150ms;--ga-transition-dismiss:var(--ga-duration-moderate) 0ms var(--ga-easing-exit);--ga-transition-reveal:var(--ga-duration-moderate) 0ms var(--ga-easing-entrance);--ga-duration-slow:250ms;--ga-transition-overlay-in:var(--ga-duration-slow) 0ms var(--ga-easing-entrance);--ga-transition-overlay-out:var(--ga-duration-slow) 0ms var(--ga-easing-exit);--ga-duration-slower:400ms;--ga-transition-backdrop:var(--ga-duration-slower) 0ms var(--ga-easing-standard);--ga-easing-entrance:cubic-bezier(0,0,0.38,0.9);--ga-easing-exit:cubic-bezier(0.2,0,1,0.9);--ga-easing-standard:cubic-bezier(0.2,0,0.38,0.9);--ga-font-family-primary:"Inter",system-ui,sans-serif;--ga-font-weight-bold:700;--ga-font-weight-medium:500;--ga-font-weight-normal:400;--ga-font-weight-semibold:600;--ga-radius:4px;--ga-radius-round:999px;--ga-radius-sharp:0.02rem;--ga-shadow-east:-2px 0 5px 0 #1334451a,-8px 0 8px 0 #13344517,-19px 0 11px 0 #1334450d,-34px 0 14px 0 #13344503,-53px 0 15px 0 #13344500;--ga-shadow-north:0 4px 8px 0 #1334451a,0 15px 15px 0 #13344517,0 34px 21px 0 #1334450d,0 61px 24px 0 #13344503,0 95px 27px 0 #13344500;--ga-shadow-south:0 -1px 1px 0 #13344514,0 -2px 2px 0 #13344512,0 -6px 3px 0 #1334450a,0 -10px 4px 0 #13344503,0 -15px 4px 0 #13344500;--ga-shadow-west:1px 0 3px 0 #1334451a,5px 0 5px 0 #13344517,12px 0 7px 0 #1334450d,21px 0 8px 0 #13344503,33px 0 9px 0 #13344500;--ga-size-0:0;--ga-size-1:0.0625rem;--ga-size-2:0.125rem;--ga-size-4:0.25rem;--ga-size-6:0.375rem;--ga-size-8:0.5rem;--ga-size-10:0.625rem;--ga-size-11:0.6875rem;--ga-size-12:0.75rem;--ga-size-14:0.875rem;--ga-size-16:1rem;--ga-size-18:1.125rem;--ga-size-20:1.25rem;--ga-size-24:1.5rem;--ga-size-28:1.75rem;--ga-size-32:2rem;--ga-size-36:2.25rem;--ga-size-40:2.5rem;--ga-size-44:2.75rem;--ga-size-48:3rem;--ga-size-56:3.5rem;--ga-size-64:4rem;--ga-size-80:5rem;--ga-size-96:6rem;--ga-size-112:7rem;--ga-size-128:8rem;--ga-size-144:9rem;--ga-size-160:10rem;--ga-size-192:12rem;--ga-size-224:14rem;--ga-size-256:16rem;--ga-size-288:18rem;--ga-size-320:20rem;--ga-size-352:22rem;--ga-size-384:24rem;--ga-size-416:26rem;--ga-size-border-width-lg:4px;--ga-size-border-width-md:2px;--ga-size-border-width-none:0;--ga-size-border-width-sm:1px;--ga-size-spacing-00:0;--ga-size-spacing-01:0.125rem;--ga-size-spacing-02:0.25rem;--ga-size-spacing-03:0.5rem;--ga-size-spacing-04:0.75rem;--ga-size-spacing-05:1rem;--ga-size-spacing-06:1.5rem;--ga-size-spacing-07:2rem;--ga-size-spacing-08:2.5rem;--ga-size-spacing-09:3rem;--ga-size-spacing-10:4rem;--ga-size-spacing-11:5rem;--ga-size-spacing-12:6rem;--ga-size-spacing-13:10rem;--ga-text-2xl-font-size:1.5rem;--ga-text-2xl-font-style:normal;--ga-text-2xl-line-height:2rem;--ga-text-2xl-font-family:inherit;--ga-text-2xl-font-weight:400;--ga-text-2xl-letter-spacing:-0.019rem;--ga-text-2xl:var(--ga-text-2xl-font-style) var(--ga-text-2xl-font-weight) var(--ga-text-2xl-font-size)/var(--ga-text-2xl-line-height) var(--ga-text-2xl-font-family);--ga-text-3xl-font-size:2rem;--ga-text-3xl-font-style:normal;--ga-text-3xl-line-height:2.5rem;--ga-text-3xl-font-family:inherit;--ga-text-3xl-font-weight:400;--ga-text-3xl-letter-spacing:-0.022rem;--ga-text-3xl:var(--ga-text-3xl-font-style) var(--ga-text-3xl-font-weight) var(--ga-text-3xl-font-size)/var(--ga-text-3xl-line-height) var(--ga-text-3xl-font-family);--ga-text-lg-font-size:1rem;--ga-text-lg-font-style:normal;--ga-text-lg-line-height:1.5rem;--ga-text-lg-font-family:inherit;--ga-text-lg-font-weight:400;--ga-text-lg-letter-spacing:-0.011rem;--ga-text-lg:var(--ga-text-lg-font-style) var(--ga-text-lg-font-weight) var(--ga-text-lg-font-size)/var(--ga-text-lg-line-height) var(--ga-text-lg-font-family);--ga-text-md-font-size:0.875rem;--ga-text-md-font-style:normal;--ga-text-md-line-height:1.25rem;--ga-text-md-font-family:inherit;--ga-text-md-font-weight:400;--ga-text-md-letter-spacing:-0.006rem;--ga-text-md:var(--ga-text-md-font-style) var(--ga-text-md-font-weight) var(--ga-text-md-font-size)/var(--ga-text-md-line-height) var(--ga-text-md-font-family);--ga-text-sm-font-size:0.75rem;--ga-text-sm-font-style:normal;--ga-text-sm-line-height:1.25rem;--ga-text-sm-font-family:inherit;--ga-text-sm-font-weight:400;--ga-text-sm-letter-spacing:0;--ga-text-sm:var(--ga-text-sm-font-style) var(--ga-text-sm-font-weight) var(--ga-text-sm-font-size)/var(--ga-text-sm-line-height) var(--ga-text-sm-font-family);--ga-text-xl-font-size:1.125rem;--ga-text-xl-font-style:normal;--ga-text-xl-line-height:1.5rem;--ga-text-xl-font-family:inherit;--ga-text-xl-font-weight:400;--ga-text-xl-letter-spacing:-0.017rem;--ga-text-xl:var(--ga-text-xl-font-style) var(--ga-text-xl-font-weight) var(--ga-text-xl-font-size)/var(--ga-text-xl-line-height) var(--ga-text-xl-font-family);--ga-text-xs-font-size:0.6875rem;--ga-text-xs-font-style:normal;--ga-text-xs-line-height:1rem;--ga-text-xs-font-family:inherit;--ga-text-xs-font-weight:400;--ga-text-xs-letter-spacing:0.005rem;--ga-text-xs:var(--ga-text-xs-font-style) var(--ga-text-xs-font-weight) var(--ga-text-xs-font-size)/var(--ga-text-xs-line-height) var(--ga-text-xs-font-family);--vsn-customer-onboarding-wizard-font-family:var(--font-family,Inter,ui-sans-serif,system-ui,sans-serif);--ga-text-sm-size:var(--ga-text-sm-font-size);--ga-text-md-size:var(--ga-text-md-font-size);--ga-text-md-tracking:var(--ga-text-md-letter-spacing);--ga-text-xl-size:var(--ga-text-xl-font-size);--ga-text-xl-tracking:var(--ga-text-xl-letter-spacing);--ga-text-2xl-size:var(--ga-text-2xl-font-size);--ga-text-2xl-tracking:var(--ga-text-2xl-letter-spacing);--ga-size-content-2xs:11.25rem;--ga-size-content-xs:15rem;--ga-size-content-sm:22.5rem;--ga-color-utility-green-light:var(--ga-color-green-10);--ga-shadow-dropdown:var(--ga-shadow-south);}@media (width >= 48rem){:host{--ga-text-2xl-font-size:1.5rem;--ga-text-2xl-font-style:normal;--ga-text-2xl-line-height:2.5rem;--ga-text-2xl-font-family:inherit;--ga-text-2xl-font-weight:400;--ga-text-2xl-letter-spacing:-0.019rem;--ga-text-2xl:var(--ga-text-2xl-font-style) var(--ga-text-2xl-font-weight) var(--ga-text-2xl-font-size)/var(--ga-text-2xl-line-height) var(--ga-text-2xl-font-family);--ga-text-3xl-font-size:2.25rem;--ga-text-3xl-font-style:normal;--ga-text-3xl-line-height:3rem;--ga-text-3xl-font-family:inherit;--ga-text-3xl-font-weight:400;--ga-text-3xl-letter-spacing:-0.022rem;--ga-text-3xl:var(--ga-text-3xl-font-style) var(--ga-text-3xl-font-weight) var(--ga-text-3xl-font-size)/var(--ga-text-3xl-line-height) var(--ga-text-3xl-font-family);--ga-text-xl-font-size:1.25rem;--ga-text-xl-font-style:normal;--ga-text-xl-line-height:2rem;--ga-text-xl-font-family:inherit;--ga-text-xl-font-weight:400;--ga-text-xl-letter-spacing:-0.017rem;--ga-text-xl:var(--ga-text-xl-font-style) var(--ga-text-xl-font-weight) var(--ga-text-xl-font-size)/var(--ga-text-xl-line-height) var(--ga-text-xl-font-family);}}`, d = {
|
|
5
|
+
circle: () => b`
|
|
6
6
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
7
7
|
<circle cx="12" cy="12" r="10"/>
|
|
8
8
|
</svg>
|
|
9
9
|
`,
|
|
10
|
-
circleDashed: () =>
|
|
10
|
+
circleDashed: () => b`
|
|
11
11
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
12
12
|
<path d="M10.1 2.18a9.93 9.93 0 0 1 3.8 0"/>
|
|
13
13
|
<path d="M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7"/>
|
|
@@ -19,12 +19,12 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
19
19
|
<path d="M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69"/>
|
|
20
20
|
</svg>
|
|
21
21
|
`,
|
|
22
|
-
check: () =>
|
|
22
|
+
check: () => b`
|
|
23
23
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
24
24
|
<path d="M20 6 9 17l-5-5"/>
|
|
25
25
|
</svg>
|
|
26
26
|
`,
|
|
27
|
-
circleDotDashed: () =>
|
|
27
|
+
circleDotDashed: () => b`
|
|
28
28
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
29
29
|
<path d="M10.1 2.18a9.93 9.93 0 0 1 3.8 0"/>
|
|
30
30
|
<path d="M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7"/>
|
|
@@ -37,44 +37,44 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
37
37
|
<circle cx="12" cy="12" r="1"/>
|
|
38
38
|
</svg>
|
|
39
39
|
`,
|
|
40
|
-
circleCheckBig: () =>
|
|
40
|
+
circleCheckBig: () => b`
|
|
41
41
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
42
42
|
<path d="M21.801 10A10 10 0 1 1 17 3.335"/>
|
|
43
43
|
<path d="m9 11 3 3L22 4"/>
|
|
44
44
|
</svg>
|
|
45
45
|
`,
|
|
46
|
-
octagonAlert: () =>
|
|
46
|
+
octagonAlert: () => b`
|
|
47
47
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
48
48
|
<path d="M12 16h.01"/>
|
|
49
49
|
<path d="M12 8v4"/>
|
|
50
50
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
51
51
|
</svg>
|
|
52
52
|
`,
|
|
53
|
-
x: () =>
|
|
53
|
+
x: () => b`
|
|
54
54
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
55
55
|
<path d="M18 6 6 18"/>
|
|
56
56
|
<path d="m6 6 12 12"/>
|
|
57
57
|
</svg>
|
|
58
58
|
`,
|
|
59
|
-
pencil: () =>
|
|
59
|
+
pencil: () => b`
|
|
60
60
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
61
61
|
<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>
|
|
62
62
|
<path d="m15 5 4 4"/>
|
|
63
63
|
</svg>
|
|
64
64
|
`,
|
|
65
|
-
info: () =>
|
|
65
|
+
info: () => b`
|
|
66
66
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
67
67
|
<circle cx="12" cy="12" r="10"/>
|
|
68
68
|
<path d="M12 16v-4"/>
|
|
69
69
|
<path d="M12 8h.01"/>
|
|
70
70
|
</svg>
|
|
71
71
|
`,
|
|
72
|
-
chevronDown: () =>
|
|
72
|
+
chevronDown: () => b`
|
|
73
73
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
74
74
|
<path d="m6 9 6 6 6-6"/>
|
|
75
75
|
</svg>
|
|
76
76
|
`,
|
|
77
|
-
trash: () =>
|
|
77
|
+
trash: () => b`
|
|
78
78
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
79
79
|
<polyline points="3 6 5 6 21 6"/>
|
|
80
80
|
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"/>
|
|
@@ -82,130 +82,25 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
82
82
|
<line x1="14" y1="11" x2="14" y2="17"/>
|
|
83
83
|
</svg>
|
|
84
84
|
`,
|
|
85
|
-
userRound: () =>
|
|
85
|
+
userRound: () => b`
|
|
86
86
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
87
87
|
<circle cx="12" cy="8" r="5"/>
|
|
88
88
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
89
89
|
</svg>
|
|
90
90
|
`,
|
|
91
|
-
plus: () =>
|
|
91
|
+
plus: () => b`
|
|
92
92
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
93
93
|
<path d="M5 12h14"/>
|
|
94
94
|
<path d="M12 5v14"/>
|
|
95
95
|
</svg>
|
|
96
96
|
`,
|
|
97
|
-
search: () =>
|
|
97
|
+
search: () => b`
|
|
98
98
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
99
99
|
<circle cx="11" cy="11" r="8"/>
|
|
100
100
|
<path d="m21 21-4.3-4.3"/>
|
|
101
101
|
</svg>
|
|
102
102
|
`
|
|
103
|
-
},
|
|
104
|
-
"en-GB": {
|
|
105
|
-
wizard: {
|
|
106
|
-
title: "Set up your company"
|
|
107
|
-
},
|
|
108
|
-
steps: {
|
|
109
|
-
company: "Company",
|
|
110
|
-
administrators: "Administrators",
|
|
111
|
-
partnerAccess: "Partner Access",
|
|
112
|
-
progressLabel: "Setup progress"
|
|
113
|
-
},
|
|
114
|
-
welcome: {
|
|
115
|
-
greeting: "Welcome to Visma Software,",
|
|
116
|
-
description: "Let's get your company account ready. This setup takes about 5 minutes and helps you hit the ground running."
|
|
117
|
-
},
|
|
118
|
-
company: {
|
|
119
|
-
title: "Your company",
|
|
120
|
-
description: "Confirm your company details. This information will be used for your profile and system identity. You can always edit this later in settings.",
|
|
121
|
-
placeholder: "Company information placeholder",
|
|
122
|
-
contactLabel: "Contact",
|
|
123
|
-
editContactLabel: "Edit contact",
|
|
124
|
-
subscriptionLabel: "Your subscription includes",
|
|
125
|
-
address2Placeholder: "Address Line 2 (Optional)",
|
|
126
|
-
saveChanges: "Save changes",
|
|
127
|
-
cancelEdit: "Cancel",
|
|
128
|
-
companyNameLabel: "Company name",
|
|
129
|
-
organizationNumberLabel: "Organization number",
|
|
130
|
-
address1Label: "Address",
|
|
131
|
-
postalCodeLabel: "Postal code",
|
|
132
|
-
cityLabel: "City",
|
|
133
|
-
countryLabel: "Country",
|
|
134
|
-
webUrlLabel: "Website",
|
|
135
|
-
emailLabel: "Email",
|
|
136
|
-
editFormLabel: "Edit company details",
|
|
137
|
-
addressGroupLabel: "Postal code and city",
|
|
138
|
-
managePlanMessage: "Manage your plan by reaching out to your partner {partnerName}.",
|
|
139
|
-
fieldRequired: "This field is required.",
|
|
140
|
-
emailInvalid: "Please enter a valid email address."
|
|
141
|
-
},
|
|
142
|
-
administrators: {
|
|
143
|
-
title: "Administrators",
|
|
144
|
-
description: "Invite colleagues to help manage your company account and users. You can always add more administrators or adjust permissions later in the Admin settings.",
|
|
145
|
-
addAdministratorButton: "Add Administrator",
|
|
146
|
-
addNameButton: "Add name",
|
|
147
|
-
firstNameLabel: "First name",
|
|
148
|
-
lastNameLabel: "Last name",
|
|
149
|
-
youLabel: "You",
|
|
150
|
-
deleteRowLabel: "Delete administrator",
|
|
151
|
-
confirmSingular: "Confirm {count} Administrator",
|
|
152
|
-
confirmPlural: "Confirm {count} Administrators",
|
|
153
|
-
doneButton: "Done",
|
|
154
|
-
editButton: "Edit"
|
|
155
|
-
},
|
|
156
|
-
partnerAccess: {
|
|
157
|
-
title: "Give access to consultants",
|
|
158
|
-
description: "Invite consultants from {partnerName}, and give them access to help you configure the system. You can manage or revoke their access at any time.",
|
|
159
|
-
findConsultantPlaceholder: "Find consultant",
|
|
160
|
-
loading: "Loading consultants...",
|
|
161
|
-
confirmSingular: "Confirm {count} consultant",
|
|
162
|
-
confirmPlural: "Confirm {count} consultants"
|
|
163
|
-
},
|
|
164
|
-
complete: {
|
|
165
|
-
title: "Setup complete!",
|
|
166
|
-
message1: "We have invited your administrators and partners to join you. Your company is now ready.",
|
|
167
|
-
message2: "Please see our admin page to see where you can make further changes.",
|
|
168
|
-
goToAdminButton: "Go to Admin Page"
|
|
169
|
-
},
|
|
170
|
-
common: {
|
|
171
|
-
saveAndClose: "Save and close",
|
|
172
|
-
startSetup: "Start Set Up",
|
|
173
|
-
confirm: "Confirm",
|
|
174
|
-
close: "Close",
|
|
175
|
-
loading: "Loading customer information...",
|
|
176
|
-
dismissError: "Dismiss error"
|
|
177
|
-
},
|
|
178
|
-
errors: {
|
|
179
|
-
invalidRequest: {
|
|
180
|
-
title: "Invalid Request",
|
|
181
|
-
message: "Invalid request. Please check your input."
|
|
182
|
-
},
|
|
183
|
-
validationError: {
|
|
184
|
-
title: "Validation Error",
|
|
185
|
-
message: "Validation error. Please check your input."
|
|
186
|
-
},
|
|
187
|
-
notFound: {
|
|
188
|
-
title: "Not Found",
|
|
189
|
-
message: "Resource not found."
|
|
190
|
-
},
|
|
191
|
-
serverError: {
|
|
192
|
-
title: "Server Error",
|
|
193
|
-
message: "Server error. Please try again later."
|
|
194
|
-
},
|
|
195
|
-
requestTimeout: {
|
|
196
|
-
title: "Request Timeout",
|
|
197
|
-
message: "Request timeout. Please try again."
|
|
198
|
-
},
|
|
199
|
-
networkError: {
|
|
200
|
-
title: "Network Error",
|
|
201
|
-
message: "Network error. Please check your connection."
|
|
202
|
-
},
|
|
203
|
-
requestFailed: {
|
|
204
|
-
title: "Request Failed",
|
|
205
|
-
message: "Request failed. Please try again."
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
},
|
|
103
|
+
}, B = {
|
|
209
104
|
"en-US": {
|
|
210
105
|
wizard: {
|
|
211
106
|
title: "Set up your company"
|
|
@@ -236,6 +131,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
236
131
|
postalCodeLabel: "Postal code",
|
|
237
132
|
cityLabel: "City",
|
|
238
133
|
countryLabel: "Country",
|
|
134
|
+
countryLabelWithValue: "Country: {country}",
|
|
239
135
|
webUrlLabel: "Website",
|
|
240
136
|
emailLabel: "Email",
|
|
241
137
|
editFormLabel: "Edit company details",
|
|
@@ -262,6 +158,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
262
158
|
title: "Give access to consultants",
|
|
263
159
|
description: "Invite consultants from {partnerName}, and give them access to help you configure the system. You can manage or revoke their access at any time.",
|
|
264
160
|
findConsultantPlaceholder: "Find consultant",
|
|
161
|
+
noResultsFound: "No consultants found",
|
|
265
162
|
loading: "Loading consultants...",
|
|
266
163
|
confirmSingular: "Confirm {count} consultant",
|
|
267
164
|
confirmPlural: "Confirm {count} consultants"
|
|
@@ -341,6 +238,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
341
238
|
postalCodeLabel: "Postnummer",
|
|
342
239
|
cityLabel: "By",
|
|
343
240
|
countryLabel: "Land",
|
|
241
|
+
countryLabelWithValue: "Land: {country}",
|
|
344
242
|
webUrlLabel: "Hjemmeside",
|
|
345
243
|
emailLabel: "E-mail",
|
|
346
244
|
editFormLabel: "Rediger virksomhedsoplysninger",
|
|
@@ -367,6 +265,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
367
265
|
title: "Giv adgang til konsulenter",
|
|
368
266
|
description: "Inviter konsulenter fra {partnerName}, og giv dem adgang til at hjælpe dig med at konfigurere systemet. Du kan administrere eller tilbagekalde deres adgang når som helst.",
|
|
369
267
|
findConsultantPlaceholder: "Find konsulent",
|
|
268
|
+
noResultsFound: "Ingen konsulenter fundet",
|
|
370
269
|
loading: "Indlæser konsulenter...",
|
|
371
270
|
confirmSingular: "Bekræft {count} konsulent",
|
|
372
271
|
confirmPlural: "Bekræft {count} konsulenter"
|
|
@@ -446,6 +345,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
446
345
|
postalCodeLabel: "Postinumero",
|
|
447
346
|
cityLabel: "Kaupunki",
|
|
448
347
|
countryLabel: "Maa",
|
|
348
|
+
countryLabelWithValue: "Maa: {country}",
|
|
449
349
|
webUrlLabel: "Verkkosivusto",
|
|
450
350
|
emailLabel: "Sähköposti",
|
|
451
351
|
editFormLabel: "Muokkaa yritystietoja",
|
|
@@ -472,6 +372,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
472
372
|
title: "Anna käyttöoikeus konsulteille",
|
|
473
373
|
description: "Kutsu konsultteja {partnerName}:stä ja anna heille käyttöoikeus auttaaksesi järjestelmän määrittämisessä. Voit hallita tai peruuttaa heidän käyttöoikeutensa milloin tahansa.",
|
|
474
374
|
findConsultantPlaceholder: "Etsi konsultti",
|
|
375
|
+
noResultsFound: "Konsultteja ei löydy",
|
|
475
376
|
loading: "Ladataan konsultteja...",
|
|
476
377
|
confirmSingular: "Vahvista {count} konsultti",
|
|
477
378
|
confirmPlural: "Vahvista {count} konsultit"
|
|
@@ -551,6 +452,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
551
452
|
postalCodeLabel: "Postnummer",
|
|
552
453
|
cityLabel: "By",
|
|
553
454
|
countryLabel: "Land",
|
|
455
|
+
countryLabelWithValue: "Land: {country}",
|
|
554
456
|
webUrlLabel: "Nettside",
|
|
555
457
|
emailLabel: "E-post",
|
|
556
458
|
editFormLabel: "Rediger bedriftsdetaljer",
|
|
@@ -577,6 +479,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
577
479
|
title: "Gi tilgang til konsulenter",
|
|
578
480
|
description: "Inviter konsulenter fra {partnerName}, og gi dem tilgang til å hjelpe deg med å konfigurere systemet. Du kan administrere eller tilbakekalle tilgangen deres når som helst.",
|
|
579
481
|
findConsultantPlaceholder: "Finn konsulent",
|
|
482
|
+
noResultsFound: "Ingen konsulenter funnet",
|
|
580
483
|
loading: "Laster konsulenter...",
|
|
581
484
|
confirmSingular: "Bekreft {count} konsulent",
|
|
582
485
|
confirmPlural: "Bekreft {count} konsulenter"
|
|
@@ -656,6 +559,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
656
559
|
postalCodeLabel: "Postcode",
|
|
657
560
|
cityLabel: "Stad",
|
|
658
561
|
countryLabel: "Land",
|
|
562
|
+
countryLabelWithValue: "Land: {country}",
|
|
659
563
|
webUrlLabel: "Website",
|
|
660
564
|
emailLabel: "E-mail",
|
|
661
565
|
editFormLabel: "Bedrijfsgegevens bewerken",
|
|
@@ -682,6 +586,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
682
586
|
title: "Geef toegang aan consultants",
|
|
683
587
|
description: "Nodig consultants van {partnerName} uit en geef ze toegang om u te helpen bij het configureren van het systeem. U kunt hun toegang op elk moment beheren of intrekken.",
|
|
684
588
|
findConsultantPlaceholder: "Zoek consultant",
|
|
589
|
+
noResultsFound: "Geen consultants gevonden",
|
|
685
590
|
loading: "Consultants laden...",
|
|
686
591
|
confirmSingular: "Bevestig {count} consultant",
|
|
687
592
|
confirmPlural: "Bevestig {count} consultants"
|
|
@@ -761,6 +666,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
761
666
|
postalCodeLabel: "Postnummer",
|
|
762
667
|
cityLabel: "Stad",
|
|
763
668
|
countryLabel: "Land",
|
|
669
|
+
countryLabelWithValue: "Land: {country}",
|
|
764
670
|
webUrlLabel: "Webbplats",
|
|
765
671
|
emailLabel: "E-post",
|
|
766
672
|
editFormLabel: "Redigera företagsuppgifter",
|
|
@@ -787,6 +693,7 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
787
693
|
title: "Ge åtkomst till konsulter",
|
|
788
694
|
description: "Bjud in konsulter från {partnerName} och ge dem åtkomst för att hjälpa dig konfigurera systemet. Du kan hantera eller återkalla deras åtkomst när som helst.",
|
|
789
695
|
findConsultantPlaceholder: "Hitta konsult",
|
|
696
|
+
noResultsFound: "Inga konsulter hittades",
|
|
790
697
|
loading: "Laddar konsulter...",
|
|
791
698
|
confirmSingular: "Bekräfta {count} konsult",
|
|
792
699
|
confirmPlural: "Bekräfta {count} konsulter"
|
|
@@ -837,19 +744,22 @@ const E = $`:host{--ga-color-black:#000;--ga-color-blue-10:#edf4fe;--ga-color-in
|
|
|
837
744
|
}
|
|
838
745
|
}
|
|
839
746
|
};
|
|
840
|
-
class
|
|
747
|
+
class T {
|
|
841
748
|
constructor() {
|
|
842
|
-
this.currentLocale = "en-
|
|
749
|
+
this.currentLocale = "en-US";
|
|
843
750
|
}
|
|
844
751
|
/**
|
|
845
752
|
* Set the current locale
|
|
846
|
-
* Returns true when the locale is supported, otherwise falls back to en-
|
|
753
|
+
* Returns true when the locale is supported, otherwise falls back to en-US and returns false.
|
|
754
|
+
* Note: en-GB is mapped to en-US translations.
|
|
847
755
|
*/
|
|
848
756
|
setLocale(t) {
|
|
849
|
-
|
|
757
|
+
const a = t === "en-GB" ? "en-US" : t;
|
|
758
|
+
return Object.prototype.hasOwnProperty.call(B, a) ? (this.currentLocale = a, !0) : (console.warn(`Locale "${t}" not supported. Falling back to en-US.`), this.currentLocale = "en-US", !1);
|
|
850
759
|
}
|
|
851
760
|
/**
|
|
852
761
|
* Get the current locale
|
|
762
|
+
* Returns the resolved locale (en-GB is returned as 'en-US').
|
|
853
763
|
*/
|
|
854
764
|
getLocale() {
|
|
855
765
|
return this.currentLocale;
|
|
@@ -858,20 +768,20 @@ class U {
|
|
|
858
768
|
* Get translations for the current locale
|
|
859
769
|
*/
|
|
860
770
|
getTranslations() {
|
|
861
|
-
return
|
|
771
|
+
return B[this.currentLocale];
|
|
862
772
|
}
|
|
863
773
|
/**
|
|
864
774
|
* Get a translation by key path
|
|
865
775
|
*/
|
|
866
776
|
t(t) {
|
|
867
777
|
const a = t.split(".");
|
|
868
|
-
let r =
|
|
778
|
+
let r = B[this.currentLocale];
|
|
869
779
|
for (const i of a)
|
|
870
780
|
r = r == null ? void 0 : r[i];
|
|
871
781
|
return typeof r == "string" ? r : t;
|
|
872
782
|
}
|
|
873
783
|
}
|
|
874
|
-
class
|
|
784
|
+
class q extends Error {
|
|
875
785
|
constructor(t, a) {
|
|
876
786
|
super(`HTTP ${t}: ${a}`), this.status = t, this.name = "HttpError";
|
|
877
787
|
}
|
|
@@ -908,7 +818,7 @@ class O {
|
|
|
908
818
|
* @param retryFn - Function to retry the request
|
|
909
819
|
*/
|
|
910
820
|
emitHttpError(t, a, r, i, o) {
|
|
911
|
-
var
|
|
821
|
+
var L;
|
|
912
822
|
if (t !== 401 && t !== 403)
|
|
913
823
|
return;
|
|
914
824
|
const s = {
|
|
@@ -918,12 +828,12 @@ class O {
|
|
|
918
828
|
endpoint: r,
|
|
919
829
|
method: i,
|
|
920
830
|
retry: o
|
|
921
|
-
},
|
|
831
|
+
}, h = new CustomEvent("http-error", {
|
|
922
832
|
detail: s,
|
|
923
833
|
bubbles: !0,
|
|
924
834
|
composed: !0
|
|
925
835
|
});
|
|
926
|
-
(
|
|
836
|
+
(L = this.eventTarget) == null || L.dispatchEvent(h);
|
|
927
837
|
}
|
|
928
838
|
/**
|
|
929
839
|
* Emit error message event for internal error handling
|
|
@@ -935,7 +845,7 @@ class O {
|
|
|
935
845
|
* @param method - HTTP method
|
|
936
846
|
*/
|
|
937
847
|
emitErrorMessage(t, a, r, i) {
|
|
938
|
-
var
|
|
848
|
+
var h;
|
|
939
849
|
const o = {
|
|
940
850
|
status: t,
|
|
941
851
|
errorKey: a,
|
|
@@ -946,22 +856,22 @@ class O {
|
|
|
946
856
|
bubbles: !0,
|
|
947
857
|
composed: !0
|
|
948
858
|
});
|
|
949
|
-
(
|
|
859
|
+
(h = this.eventTarget) == null || h.dispatchEvent(s);
|
|
950
860
|
}
|
|
951
861
|
async request(t, a = {}) {
|
|
952
|
-
const { method: r = "GET", headers: i = {}, body: o, timeout: s = 3e4 } = a,
|
|
862
|
+
const { method: r = "GET", headers: i = {}, body: o, timeout: s = 3e4 } = a, h = new AbortController(), L = setTimeout(() => h.abort(), s), z = {
|
|
953
863
|
...this.defaultHeaders,
|
|
954
864
|
...i
|
|
955
865
|
};
|
|
956
|
-
this.authToken && (
|
|
866
|
+
this.authToken && (z.Authorization = `Bearer ${this.authToken}`);
|
|
957
867
|
try {
|
|
958
868
|
const c = await fetch(`${this.baseUrl}${t}`, {
|
|
959
869
|
method: r,
|
|
960
|
-
headers:
|
|
870
|
+
headers: z,
|
|
961
871
|
body: o ? JSON.stringify(o) : void 0,
|
|
962
|
-
signal:
|
|
872
|
+
signal: h.signal
|
|
963
873
|
});
|
|
964
|
-
if (clearTimeout(
|
|
874
|
+
if (clearTimeout(L), !c.ok) {
|
|
965
875
|
if (c.status === 401 || c.status === 403)
|
|
966
876
|
this.emitHttpError(
|
|
967
877
|
c.status,
|
|
@@ -972,18 +882,18 @@ class O {
|
|
|
972
882
|
// Retry function
|
|
973
883
|
);
|
|
974
884
|
else if (!(a.suppressErrorStatuses ?? []).includes(c.status)) {
|
|
975
|
-
const
|
|
976
|
-
this.emitErrorMessage(c.status,
|
|
885
|
+
const U = this.getErrorKey(c.status);
|
|
886
|
+
this.emitErrorMessage(c.status, U, t, r);
|
|
977
887
|
}
|
|
978
|
-
throw new
|
|
888
|
+
throw new q(c.status, c.statusText);
|
|
979
889
|
}
|
|
980
890
|
return c.status === 204 ? void 0 : await c.json();
|
|
981
891
|
} catch (c) {
|
|
982
|
-
if (clearTimeout(
|
|
892
|
+
if (clearTimeout(L), c instanceof q)
|
|
983
893
|
throw c;
|
|
984
894
|
if (c instanceof Error) {
|
|
985
|
-
const
|
|
986
|
-
throw this.emitErrorMessage(0,
|
|
895
|
+
const k = c.message.includes("aborted") ? "requestTimeout" : "networkError";
|
|
896
|
+
throw this.emitErrorMessage(0, k, t, r), new Error(`Request failed: ${c.message}`);
|
|
987
897
|
}
|
|
988
898
|
throw c;
|
|
989
899
|
}
|
|
@@ -1063,7 +973,7 @@ class O {
|
|
|
1063
973
|
{ suppressErrorStatuses: [404] }
|
|
1064
974
|
);
|
|
1065
975
|
} catch (a) {
|
|
1066
|
-
if (a instanceof
|
|
976
|
+
if (a instanceof q && a.status === 404)
|
|
1067
977
|
return null;
|
|
1068
978
|
throw a;
|
|
1069
979
|
}
|
|
@@ -1097,16 +1007,22 @@ class O {
|
|
|
1097
1007
|
return this.request(t, { method: "PATCH", body: a, headers: r });
|
|
1098
1008
|
}
|
|
1099
1009
|
}
|
|
1100
|
-
const j =
|
|
1101
|
-
var M = Object.defineProperty, V = Object.getOwnPropertyDescriptor,
|
|
1010
|
+
const j = S`button{padding:var(--ga-size-spacing-04) var(--ga-size-spacing-07);border-radius:var(--ga-radius);font-size:var(--ga-text-md-size);font-weight:var(--ga-font-weight-medium);cursor:pointer;transition:background-color var(--ga-transition-hover),border-color var(--ga-transition-hover);border:var(--ga-size-border-width-sm) solid transparent;white-space:nowrap;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.btn-primary{background:var(--ga-color-surface-action);color:var(--ga-color-secondary-10);border-color:var(--ga-color-surface-action);}.btn-primary:hover:not(:disabled){background:var(--ga-color-surface-action-hover);border-color:var(--ga-color-surface-action-hover);}.btn-primary:disabled{opacity:0.5;cursor:not-allowed;}.btn-secondary{background:var(--ga-color-white);color:var(--ga-color-text-body);border-color:var(--ga-color-cyan-80);}.btn-secondary:hover{background:var(--ga-color-secondary-10);}.btn-primary:focus-visible,.btn-secondary:focus-visible{outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-md);}`, P = S`:host{display:block;}.step-content{text-align:left;}.step-content h2{font-size:var(--ga-text-2xl-size);line-height:var(--ga-text-2xl-line-height);letter-spacing:var(--ga-text-2xl-tracking);font-weight:var(--ga-font-weight-normal);margin:0 0 var(--ga-size-spacing-03);color:var(--ga-color-text-headings);}.wizard-actions{display:flex;justify-content:flex-end;align-items:center;margin-top:var(--ga-size-spacing-09);gap:var(--ga-size-spacing-05);}.field-error{display:flex;align-items:center;gap:var(--ga-size-spacing-02);margin-top:var(--ga-size-spacing-01);color:var(--ga-color-icon-error);font-size:var(--ga-text-sm-size);font-family:var(--vsn-customer-onboarding-wizard-font-family);line-height:var(--ga-text-sm-line-height);}.field-error svg{width:var(--ga-size-spacing-04);height:var(--ga-size-spacing-04);flex-shrink:0;}.field-error-text{color:var(--ga-color-text-body);}.field-error--empty{visibility:hidden;}`;
|
|
1011
|
+
var M = Object.defineProperty, V = Object.getOwnPropertyDescriptor, D = (e, t, a, r) => {
|
|
1102
1012
|
for (var i = r > 1 ? void 0 : r ? V(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1103
1013
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
1104
1014
|
return r && i && M(t, a, i), i;
|
|
1105
1015
|
};
|
|
1106
|
-
let
|
|
1016
|
+
let R = class extends E {
|
|
1107
1017
|
constructor() {
|
|
1108
1018
|
super(...arguments), this.userName = "User";
|
|
1109
1019
|
}
|
|
1020
|
+
firstUpdated() {
|
|
1021
|
+
this.updateComplete.then(() => {
|
|
1022
|
+
var e, t;
|
|
1023
|
+
(t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("h2")) == null || t.focus();
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1110
1026
|
handleStartSetup() {
|
|
1111
1027
|
this.dispatchEvent(new CustomEvent("start-setup", {
|
|
1112
1028
|
bubbles: !0,
|
|
@@ -1124,7 +1040,7 @@ let N = class extends L {
|
|
|
1124
1040
|
return n`
|
|
1125
1041
|
<div class="wizard-content">
|
|
1126
1042
|
<div class="welcome-wrapper">
|
|
1127
|
-
<h2 class="welcome-message">
|
|
1043
|
+
<h2 class="welcome-message" tabindex="-1">
|
|
1128
1044
|
${e.welcome.greeting}<br />
|
|
1129
1045
|
<span class="user-name">${this.userName}!</span>
|
|
1130
1046
|
</h2>
|
|
@@ -1144,28 +1060,28 @@ let N = class extends L {
|
|
|
1144
1060
|
`;
|
|
1145
1061
|
}
|
|
1146
1062
|
};
|
|
1147
|
-
|
|
1148
|
-
|
|
1063
|
+
R.styles = [
|
|
1064
|
+
N,
|
|
1149
1065
|
j,
|
|
1150
1066
|
P,
|
|
1151
|
-
|
|
1067
|
+
S`.wizard-content{text-align:left;padding:var(--ga-size-spacing-08) 0 var(--ga-size-spacing-06);}.welcome-wrapper{width:var(--ga-size-content-sm);margin:0 auto;text-align:left;}.welcome-wrapper p{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);margin:0;}.welcome-wrapper h2.welcome-message{font-size:var(--ga-text-2xl-size);line-height:var(--ga-text-2xl-line-height);letter-spacing:var(--ga-text-2xl-tracking);font-weight:400;margin:0 0 var(--ga-size-spacing-06);color:var(--ga-color-text-headings);}h2[tabindex="-1"]:focus{outline:none;}`
|
|
1152
1068
|
];
|
|
1153
|
-
|
|
1069
|
+
D([
|
|
1154
1070
|
g({ type: String })
|
|
1155
|
-
],
|
|
1156
|
-
|
|
1071
|
+
], R.prototype, "userName", 2);
|
|
1072
|
+
D([
|
|
1157
1073
|
g({ type: Object })
|
|
1158
|
-
],
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
],
|
|
1162
|
-
var _ = Object.defineProperty,
|
|
1163
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1074
|
+
], R.prototype, "translations", 2);
|
|
1075
|
+
R = D([
|
|
1076
|
+
A("wizard-step-welcome")
|
|
1077
|
+
], R);
|
|
1078
|
+
var _ = Object.defineProperty, W = Object.getOwnPropertyDescriptor, v = (e, t, a, r) => {
|
|
1079
|
+
for (var i = r > 1 ? void 0 : r ? W(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1164
1080
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
1165
1081
|
return r && i && _(t, a, i), i;
|
|
1166
1082
|
};
|
|
1167
|
-
const
|
|
1168
|
-
let
|
|
1083
|
+
const C = ["NO", "SE", "DK", "FI", "NL"];
|
|
1084
|
+
let m = class extends E {
|
|
1169
1085
|
constructor() {
|
|
1170
1086
|
super(...arguments), this.locale = "en-GB", this.customerInfo = null, this.editingContact = !1, this.countryDropdownOpen = !1, this.fieldErrors = {}, this.editName = "", this.editAddress1 = "", this.editAddress2 = "", this.editPostalCode = "", this.editCity = "", this.editCountryCode = "", this.editWebUrl = "", this.editContactEmail = "", this.localCustomer = null;
|
|
1171
1087
|
}
|
|
@@ -1253,16 +1169,48 @@ let p = class extends L {
|
|
|
1253
1169
|
e.currentTarget.contains(e.relatedTarget) || (this.countryDropdownOpen = !1);
|
|
1254
1170
|
}
|
|
1255
1171
|
handleCountryKeydown(e) {
|
|
1256
|
-
const t =
|
|
1172
|
+
const t = C.indexOf(this.editCountryCode);
|
|
1257
1173
|
if (e.key === "ArrowDown") {
|
|
1258
1174
|
e.preventDefault(), this.countryDropdownOpen = !0;
|
|
1259
|
-
const a = Math.min(t + 1,
|
|
1260
|
-
this.editCountryCode =
|
|
1175
|
+
const a = C[Math.min(t + 1, C.length - 1)];
|
|
1176
|
+
this.editCountryCode = a, this.updateComplete.then(() => {
|
|
1177
|
+
var r, i;
|
|
1178
|
+
(i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(`[data-country-code="${a}"]`)) == null || i.focus();
|
|
1179
|
+
});
|
|
1261
1180
|
} else if (e.key === "ArrowUp") {
|
|
1262
1181
|
e.preventDefault(), this.countryDropdownOpen = !0;
|
|
1263
|
-
const a = Math.max(t - 1, 0);
|
|
1264
|
-
this.editCountryCode =
|
|
1265
|
-
|
|
1182
|
+
const a = C[Math.max(t - 1, 0)];
|
|
1183
|
+
this.editCountryCode = a, this.updateComplete.then(() => {
|
|
1184
|
+
var r, i;
|
|
1185
|
+
(i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(`[data-country-code="${a}"]`)) == null || i.focus();
|
|
1186
|
+
});
|
|
1187
|
+
} else e.key === "Escape" && (e.stopPropagation(), this.countryDropdownOpen = !1);
|
|
1188
|
+
}
|
|
1189
|
+
handleOptionKeydown(e, t) {
|
|
1190
|
+
var a, r;
|
|
1191
|
+
if (e.key === "Enter" || e.key === " ")
|
|
1192
|
+
e.preventDefault(), this.selectCountry(t);
|
|
1193
|
+
else if (e.key === "ArrowDown") {
|
|
1194
|
+
e.preventDefault();
|
|
1195
|
+
const i = C.indexOf(t), o = C[Math.min(i + 1, C.length - 1)];
|
|
1196
|
+
this.editCountryCode = o, this.updateComplete.then(() => {
|
|
1197
|
+
var s, h;
|
|
1198
|
+
(h = (s = this.shadowRoot) == null ? void 0 : s.querySelector(`[data-country-code="${o}"]`)) == null || h.focus();
|
|
1199
|
+
});
|
|
1200
|
+
} else if (e.key === "ArrowUp") {
|
|
1201
|
+
e.preventDefault();
|
|
1202
|
+
const i = C.indexOf(t), o = C[Math.max(i - 1, 0)];
|
|
1203
|
+
this.editCountryCode = o, this.updateComplete.then(() => {
|
|
1204
|
+
var s, h;
|
|
1205
|
+
(h = (s = this.shadowRoot) == null ? void 0 : s.querySelector(`[data-country-code="${o}"]`)) == null || h.focus();
|
|
1206
|
+
});
|
|
1207
|
+
} else e.key === "Escape" && (e.stopPropagation(), (r = (a = this.shadowRoot) == null ? void 0 : a.querySelector(".select-trigger")) == null || r.focus(), this.countryDropdownOpen = !1);
|
|
1208
|
+
}
|
|
1209
|
+
firstUpdated() {
|
|
1210
|
+
this.updateComplete.then(() => {
|
|
1211
|
+
var e, t;
|
|
1212
|
+
(t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("h2")) == null || t.focus();
|
|
1213
|
+
});
|
|
1266
1214
|
}
|
|
1267
1215
|
updated(e) {
|
|
1268
1216
|
var t;
|
|
@@ -1279,14 +1227,14 @@ let p = class extends L {
|
|
|
1279
1227
|
}
|
|
1280
1228
|
}
|
|
1281
1229
|
handleStepKeydown(e) {
|
|
1282
|
-
e.key === "Escape" && this.editingContact && (e.preventDefault(), this.handleCancelEdit());
|
|
1230
|
+
e.key === "Escape" && this.editingContact && (e.preventDefault(), e.stopPropagation(), this.handleCancelEdit());
|
|
1283
1231
|
}
|
|
1284
1232
|
render() {
|
|
1285
1233
|
const e = this.translations;
|
|
1286
1234
|
if (!this.customerInfo)
|
|
1287
1235
|
return n`
|
|
1288
1236
|
<div class="step-content">
|
|
1289
|
-
<h2>${e.company.title}</h2>
|
|
1237
|
+
<h2 tabindex="-1">${e.company.title}</h2>
|
|
1290
1238
|
<p>${e.company.description}</p>
|
|
1291
1239
|
<hr class="section-divider" />
|
|
1292
1240
|
<div class="loading-placeholder">
|
|
@@ -1305,7 +1253,7 @@ let p = class extends L {
|
|
|
1305
1253
|
const { customer: t, subscriptions: a } = this.customerInfo, r = this.localCustomer ?? t, i = r.name.split(" ").map((o) => o[0]).join("").toUpperCase().substring(0, 2);
|
|
1306
1254
|
return n`
|
|
1307
1255
|
<div class="step-content" @keydown=${this.handleStepKeydown}>
|
|
1308
|
-
<h2>${e.company.title}</h2>
|
|
1256
|
+
<h2 tabindex="-1">${e.company.title}</h2>
|
|
1309
1257
|
<p>${e.company.description}</p>
|
|
1310
1258
|
|
|
1311
1259
|
<hr class="section-divider" />
|
|
@@ -1319,6 +1267,7 @@ let p = class extends L {
|
|
|
1319
1267
|
aria-label=${e.company.companyNameLabel}
|
|
1320
1268
|
aria-invalid=${this.fieldErrors.name ? "true" : "false"}
|
|
1321
1269
|
.value=${this.editName}
|
|
1270
|
+
aria-describedby=${this.fieldErrors.name ? "company-error-name" : p}
|
|
1322
1271
|
@input=${(o) => {
|
|
1323
1272
|
this.editName = o.target.value, this.clearFieldError("name");
|
|
1324
1273
|
}}
|
|
@@ -1326,11 +1275,13 @@ let p = class extends L {
|
|
|
1326
1275
|
this.validateField("name", o.target.value);
|
|
1327
1276
|
}}
|
|
1328
1277
|
/>
|
|
1329
|
-
${this.fieldErrors.name ? n`<span class="field-error">${d.octagonAlert()}
|
|
1330
|
-
<span class="
|
|
1278
|
+
${this.fieldErrors.name ? n`<span class="field-error" role="alert" id="company-error-name"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.name}</span></span>` : ""}
|
|
1279
|
+
<span class="sr-only">${e.company.organizationNumberLabel}: </span>
|
|
1280
|
+
<span class="org-number" title=${e.company.organizationNumberLabel}>${r.organizationNumber}</span>
|
|
1331
1281
|
</div>` : n`<div class="company-name-wrapper">
|
|
1332
1282
|
<h3 class="company-name">${r.name}</h3>
|
|
1333
|
-
<span class="
|
|
1283
|
+
<span class="sr-only">${e.company.organizationNumberLabel}: </span>
|
|
1284
|
+
<span class="org-number" title=${e.company.organizationNumberLabel}>${r.organizationNumber}</span>
|
|
1334
1285
|
</div>`}
|
|
1335
1286
|
</div>
|
|
1336
1287
|
|
|
@@ -1346,6 +1297,7 @@ let p = class extends L {
|
|
|
1346
1297
|
aria-label=${e.company.address1Label}
|
|
1347
1298
|
aria-invalid=${this.fieldErrors.address1 ? "true" : "false"}
|
|
1348
1299
|
.value=${this.editAddress1}
|
|
1300
|
+
aria-describedby=${this.fieldErrors.address1 ? "company-error-address1" : p}
|
|
1349
1301
|
@input=${(o) => {
|
|
1350
1302
|
this.editAddress1 = o.target.value, this.clearFieldError("address1");
|
|
1351
1303
|
}}
|
|
@@ -1353,7 +1305,7 @@ let p = class extends L {
|
|
|
1353
1305
|
this.validateField("address1", o.target.value);
|
|
1354
1306
|
}}
|
|
1355
1307
|
/>
|
|
1356
|
-
${this.fieldErrors.address1 ? n`<span class="field-error">${d.octagonAlert()}
|
|
1308
|
+
${this.fieldErrors.address1 ? n`<span class="field-error" role="alert" id="company-error-address1"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.address1}</span></span>` : ""}
|
|
1357
1309
|
</div>
|
|
1358
1310
|
<input
|
|
1359
1311
|
class="form-input"
|
|
@@ -1375,6 +1327,7 @@ let p = class extends L {
|
|
|
1375
1327
|
aria-label=${e.company.postalCodeLabel}
|
|
1376
1328
|
aria-invalid=${this.fieldErrors.postalCode ? "true" : "false"}
|
|
1377
1329
|
.value=${this.editPostalCode}
|
|
1330
|
+
aria-describedby=${this.fieldErrors.postalCode ? "company-error-postal" : p}
|
|
1378
1331
|
@input=${(o) => {
|
|
1379
1332
|
this.editPostalCode = o.target.value, this.clearFieldError("postalCode");
|
|
1380
1333
|
}}
|
|
@@ -1388,6 +1341,7 @@ let p = class extends L {
|
|
|
1388
1341
|
aria-label=${e.company.cityLabel}
|
|
1389
1342
|
aria-invalid=${this.fieldErrors.city ? "true" : "false"}
|
|
1390
1343
|
.value=${this.editCity}
|
|
1344
|
+
aria-describedby=${this.fieldErrors.city ? "company-error-city" : p}
|
|
1391
1345
|
@input=${(o) => {
|
|
1392
1346
|
this.editCity = o.target.value, this.clearFieldError("city");
|
|
1393
1347
|
}}
|
|
@@ -1396,8 +1350,8 @@ let p = class extends L {
|
|
|
1396
1350
|
}}
|
|
1397
1351
|
/>
|
|
1398
1352
|
</div>
|
|
1399
|
-
${this.fieldErrors.postalCode ? n`<span class="field-error">${d.octagonAlert()}
|
|
1400
|
-
${this.fieldErrors.city ? n`<span class="field-error">${d.octagonAlert()}
|
|
1353
|
+
${this.fieldErrors.postalCode ? n`<span class="field-error" role="alert" id="company-error-postal"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.postalCode}</span></span>` : ""}
|
|
1354
|
+
${this.fieldErrors.city ? n`<span class="field-error" role="alert" id="company-error-city"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.city}</span></span>` : ""}
|
|
1401
1355
|
</div>
|
|
1402
1356
|
<div
|
|
1403
1357
|
class="select-wrapper"
|
|
@@ -1408,7 +1362,7 @@ let p = class extends L {
|
|
|
1408
1362
|
class="form-input select-trigger"
|
|
1409
1363
|
aria-haspopup="listbox"
|
|
1410
1364
|
aria-expanded=${String(this.countryDropdownOpen)}
|
|
1411
|
-
aria-label=${e.company.countryLabel}
|
|
1365
|
+
aria-label=${this.editCountryCode ? e.company.countryLabelWithValue.replace("{country}", this.getCountryLabel(this.editCountryCode)) : e.company.countryLabel}
|
|
1412
1366
|
@click=${this.toggleCountryDropdown}
|
|
1413
1367
|
@keydown=${this.handleCountryKeydown}
|
|
1414
1368
|
>
|
|
@@ -1417,18 +1371,17 @@ let p = class extends L {
|
|
|
1417
1371
|
</button>
|
|
1418
1372
|
${this.countryDropdownOpen ? n`
|
|
1419
1373
|
<ul class="dropdown-menu" role="listbox" aria-label=${e.company.countryLabel}>
|
|
1420
|
-
${
|
|
1374
|
+
${C.map((o) => n`
|
|
1421
1375
|
<li
|
|
1422
1376
|
class="dropdown-option"
|
|
1423
1377
|
role="option"
|
|
1424
1378
|
aria-selected=${String(o === this.editCountryCode)}
|
|
1425
1379
|
tabindex="0"
|
|
1380
|
+
data-country-code=${o}
|
|
1426
1381
|
@click=${() => this.selectCountry(o)}
|
|
1427
|
-
@keydown=${(s) =>
|
|
1428
|
-
(s.key === "Enter" || s.key === " ") && (s.preventDefault(), this.selectCountry(o));
|
|
1429
|
-
}}
|
|
1382
|
+
@keydown=${(s) => this.handleOptionKeydown(s, o)}
|
|
1430
1383
|
>
|
|
1431
|
-
<span class="dropdown-option-icon">${o === this.editCountryCode ? d.check() : ""}</span>
|
|
1384
|
+
<span class="dropdown-option-icon" aria-hidden="true">${o === this.editCountryCode ? d.check() : ""}</span>
|
|
1432
1385
|
${this.getCountryLabel(o)}
|
|
1433
1386
|
</li>
|
|
1434
1387
|
`)}
|
|
@@ -1442,6 +1395,7 @@ let p = class extends L {
|
|
|
1442
1395
|
aria-label=${e.company.webUrlLabel}
|
|
1443
1396
|
aria-invalid=${this.fieldErrors.webUrl ? "true" : "false"}
|
|
1444
1397
|
.value=${this.editWebUrl}
|
|
1398
|
+
aria-describedby=${this.fieldErrors.webUrl ? "company-error-webUrl" : p}
|
|
1445
1399
|
@input=${(o) => {
|
|
1446
1400
|
this.editWebUrl = o.target.value, this.clearFieldError("webUrl");
|
|
1447
1401
|
}}
|
|
@@ -1449,7 +1403,7 @@ let p = class extends L {
|
|
|
1449
1403
|
this.validateField("webUrl", o.target.value);
|
|
1450
1404
|
}}
|
|
1451
1405
|
/>
|
|
1452
|
-
${this.fieldErrors.webUrl ? n`<span class="field-error">${d.octagonAlert()}
|
|
1406
|
+
${this.fieldErrors.webUrl ? n`<span class="field-error" role="alert" id="company-error-webUrl"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.webUrl}</span></span>` : ""}
|
|
1453
1407
|
</div>
|
|
1454
1408
|
<div class="form-field">
|
|
1455
1409
|
<input
|
|
@@ -1458,6 +1412,7 @@ let p = class extends L {
|
|
|
1458
1412
|
aria-label=${e.company.emailLabel}
|
|
1459
1413
|
aria-invalid=${this.fieldErrors.contactEmail ? "true" : "false"}
|
|
1460
1414
|
.value=${this.editContactEmail}
|
|
1415
|
+
aria-describedby=${this.fieldErrors.contactEmail ? "company-error-email" : p}
|
|
1461
1416
|
@input=${(o) => {
|
|
1462
1417
|
this.editContactEmail = o.target.value, this.clearFieldError("contactEmail");
|
|
1463
1418
|
}}
|
|
@@ -1465,7 +1420,7 @@ let p = class extends L {
|
|
|
1465
1420
|
this.validateField("contactEmail", o.target.value);
|
|
1466
1421
|
}}
|
|
1467
1422
|
/>
|
|
1468
|
-
${this.fieldErrors.contactEmail ? n`<span class="field-error">${d.octagonAlert()}
|
|
1423
|
+
${this.fieldErrors.contactEmail ? n`<span class="field-error" role="alert" id="company-error-email"><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${this.fieldErrors.contactEmail}</span></span>` : ""}
|
|
1469
1424
|
</div>
|
|
1470
1425
|
<div class="edit-actions">
|
|
1471
1426
|
<button type="button" class="btn-primary" @click=${this.handleSaveChanges}>
|
|
@@ -1479,14 +1434,14 @@ let p = class extends L {
|
|
|
1479
1434
|
` : n`
|
|
1480
1435
|
<div class="contact-info">
|
|
1481
1436
|
<div class="contact-group">
|
|
1482
|
-
<p>${r.address1}</p>
|
|
1483
|
-
${r.address2 ? n`<p>${r.address2}</p>` : ""}
|
|
1484
|
-
<p>${r.postalCode}
|
|
1485
|
-
<p>${this.getCountryLabel(r.countryCode)}</p>
|
|
1437
|
+
<p title=${e.company.address1Label}>${r.address1}</p>
|
|
1438
|
+
${r.address2 ? n`<p title=${e.company.address2Placeholder}>${r.address2}</p>` : ""}
|
|
1439
|
+
<p><span title=${e.company.postalCodeLabel}>${r.postalCode}</span> <span title=${e.company.cityLabel}>${r.city}</span></p>
|
|
1440
|
+
<p title=${e.company.countryLabel}>${this.getCountryLabel(r.countryCode)}</p>
|
|
1486
1441
|
</div>
|
|
1487
1442
|
<div class="contact-group">
|
|
1488
|
-
<p>${r.webUrl}</p>
|
|
1489
|
-
<p>${r.contactEmail}</p>
|
|
1443
|
+
<p title=${e.company.webUrlLabel}>${r.webUrl}</p>
|
|
1444
|
+
<p title=${e.company.emailLabel}>${r.contactEmail}</p>
|
|
1490
1445
|
</div>
|
|
1491
1446
|
</div>
|
|
1492
1447
|
<button class="edit-contact-btn" type="button" aria-label=${e.company.editContactLabel} aria-expanded=${String(this.editingContact)} title=${e.company.editContactLabel} @click=${this.handleEditContact}>
|
|
@@ -1501,14 +1456,14 @@ let p = class extends L {
|
|
|
1501
1456
|
<ul class="subscription-list">
|
|
1502
1457
|
${a.map((o) => n`
|
|
1503
1458
|
<li>
|
|
1504
|
-
|
|
1459
|
+
<span aria-hidden="true">${d.check()}</span>
|
|
1505
1460
|
${o}
|
|
1506
1461
|
</li>
|
|
1507
1462
|
`)}
|
|
1508
1463
|
</ul>
|
|
1509
1464
|
${this.editingContact ? n`
|
|
1510
1465
|
<div class="plan-notification" role="note">
|
|
1511
|
-
<div class="plan-notification-icon">${d.info()}</div>
|
|
1466
|
+
<div class="plan-notification-icon" aria-hidden="true">${d.info()}</div>
|
|
1512
1467
|
<p class="plan-notification-text">
|
|
1513
1468
|
${(() => {
|
|
1514
1469
|
const o = e.company.managePlanMessage.split("{partnerName}"), s = this.customerInfo.partner.name;
|
|
@@ -1534,69 +1489,75 @@ let p = class extends L {
|
|
|
1534
1489
|
`;
|
|
1535
1490
|
}
|
|
1536
1491
|
};
|
|
1537
|
-
|
|
1538
|
-
|
|
1492
|
+
m.styles = [
|
|
1493
|
+
N,
|
|
1539
1494
|
j,
|
|
1540
1495
|
P,
|
|
1541
|
-
|
|
1496
|
+
S`:host{--avatar-size:var(--ga-size-spacing-09);}.step-content > p{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);margin:0 0 var(--ga-size-spacing-06);}.section-divider{border:none;border-top:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-30);margin:0 0 var(--ga-size-spacing-06);}.loading-placeholder{padding:var(--ga-size-spacing-05);background:var(--ga-color-neutral-10);border-radius:var(--ga-radius);color:var(--ga-color-neutral-60);font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);}.company-header{display:flex;align-items:center;gap:var(--ga-size-spacing-05);margin-bottom:var(--ga-size-spacing-07);}.company-avatar{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--ga-radius-round);background:transparent;border:var(--ga-size-border-width-sm) solid var(--ga-color-text-headings);color:var(--ga-color-text-headings);display:flex;align-items:center;justify-content:center;font-size:var(--ga-text-md-size);font-weight:600;flex-shrink:0;}.company-name{font-size:var(--ga-text-xl-size);line-height:var(--ga-text-xl-line-height);letter-spacing:var(--ga-text-xl-tracking);font-weight:400;margin:0;color:var(--ga-color-text-headings);}.company-columns{display:flex;gap:var(--ga-size-spacing-07);align-items:flex-start;padding-bottom:var(--ga-size-spacing-04);padding-left:var(--ga-size-spacing-10);padding-right:var(--ga-size-spacing-10);}.contact-column{width:var(--ga-size-content-xs);flex-shrink:0;display:flex;flex-direction:column;gap:var(--ga-size-spacing-05);}.edit-contact-btn{all:unset;display:flex;align-items:center;justify-content:center;width:var(--ga-size-spacing-07);height:var(--ga-size-spacing-07);border:var(--ga-size-border-width-sm) solid var(--ga-color-border-primary);border-radius:var(--ga-radius);cursor:pointer;color:var(--ga-color-text-body);}.edit-contact-btn:hover{background:var(--ga-color-neutral-10);}.edit-contact-btn:focus-visible{outline:var(--ga-size-border-width-md) solid var(--ga-color-primary);outline-offset:var(--ga-size-border-width-md);}.edit-contact-btn svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);}.edit-form{display:flex;flex-direction:column;gap:var(--ga-size-spacing-05);}.form-field{display:flex;flex-direction:column;}.form-input{width:100%;padding:var(--ga-size-spacing-03) var(--ga-size-spacing-04);border:var(--ga-size-border-width-sm) solid var(--ga-color-border-primary);border-radius:var(--ga-radius);font-size:var(--ga-text-md-size);font-family:var(--ga-font-family-primary);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-action);background:var(--ga-color-white);box-sizing:border-box;outline:none;transition:border-color 0.2s;}.form-input:focus{border-color:var(--ga-color-border-focus);box-shadow:0 0 0 var(--ga-size-border-width-md) var(--ga-color-white),0 0 0 var(--ga-size-border-width-lg) var(--ga-color-border-focus);}.form-input.has-error{border-color:var(--ga-color-border-error);background:var(--ga-color-surface-error);}.form-input.has-error:focus{border-color:var(--ga-color-border-error);box-shadow:0 0 0 var(--ga-size-border-width-md) var(--ga-color-white),0 0 0 var(--ga-size-border-width-lg) var(--ga-color-border-error);}.postal-city-row{display:flex;gap:var(--ga-size-spacing-03);}.input-postal{width:var(--ga-size-spacing-10);flex-shrink:0;}.input-city{flex:1;}.input-country{max-width:var(--ga-size-content-2xs);}.select-wrapper{position:relative;max-width:var(--ga-size-content-2xs);}.select-trigger{display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;width:100%;padding-right:var(--ga-size-spacing-04);}.select-trigger svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);flex-shrink:0;color:var(--ga-color-text-action);}.dropdown-menu{position:absolute;top:calc(100% + var(--ga-size-spacing-01));left:0;right:0;background:var(--ga-color-surface-primary);border:var(--ga-size-border-width-sm) solid var(--ga-color-border-primary);border-radius:var(--ga-radius);box-shadow:var(--ga-shadow-dropdown);list-style:none;margin:0;padding:0;z-index:10;overflow:hidden;}.dropdown-option{display:flex;align-items:center;gap:var(--ga-size-spacing-03);padding:var(--ga-size-spacing-03) var(--ga-size-spacing-04);font-size:var(--ga-text-md-size);font-family:var(--ga-font-family-primary);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);cursor:pointer;list-style:none;outline:none;position:relative;}.dropdown-option[aria-selected='true']{background:var(--ga-color-surface-selected);}.dropdown-option:hover{background:var(--ga-color-surface-action-hover-2);color:var(--ga-color-text-action-hover);}.dropdown-option:focus{box-shadow:inset 0 0 0 var(--ga-size-border-width-md) var(--ga-color-border-focus);}.dropdown-option-icon{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--ga-color-text-body);}.dropdown-option-icon svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);}.company-name-wrapper{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--ga-size-spacing-03);}.org-number{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-subtle);}.company-name-input{width:100%;}.edit-actions{display:flex;gap:var(--ga-size-spacing-05);align-items:center;margin-top:var(--ga-size-spacing-03);}.subscription-card{flex:1;border:var(--ga-size-border-width-sm) solid var(--ga-color-border-primary);border-radius:var(--ga-radius);background:var(--ga-color-white);padding:var(--ga-size-spacing-03) var(--ga-size-spacing-03) var(--ga-size-spacing-03) var(--ga-size-spacing-05);display:flex;flex-direction:column;gap:var(--ga-size-spacing-03);}.subscription-title{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);font-weight:700;color:var(--ga-color-text-body);margin:0;}.contact-info{display:flex;flex-direction:column;gap:var(--ga-size-spacing-05);}.contact-group{display:flex;flex-direction:column;gap:var(--ga-size-spacing-01);}.contact-info p{margin:0;font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);}.subscription-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--ga-size-spacing-03);}.subscription-list li{display:flex;align-items:center;gap:var(--ga-size-spacing-03);font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);}.subscription-list li svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);color:var(--ga-color-text-body);flex-shrink:0;}.plan-notification{display:flex;align-items:flex-start;gap:var(--ga-size-spacing-05);padding:var(--ga-size-spacing-03) var(--ga-size-spacing-03) var(--ga-size-spacing-03) var(--ga-size-spacing-05);background:var(--ga-color-surface-information);border:var(--ga-size-border-width-sm) solid var(--ga-color-border-information);border-radius:var(--ga-radius);}.plan-notification-icon{color:var(--ga-color-icon-information);flex-shrink:0;padding-top:var(--ga-size-spacing-03);}.plan-notification-icon svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);}.plan-notification-text{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);color:var(--ga-color-text-body);margin:var(--ga-size-spacing-03) 0;}.wizard-actions{margin-top:0;}.sr-only{position:absolute;width:var(--ga-size-border-width-sm);height:var(--ga-size-border-width-sm);padding:0;margin:calc(var(--ga-size-border-width-sm) * -1);overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}h2[tabindex="-1"]:focus{outline:none;}`
|
|
1542
1497
|
];
|
|
1543
|
-
|
|
1498
|
+
v([
|
|
1544
1499
|
g({ type: Object })
|
|
1545
|
-
],
|
|
1546
|
-
|
|
1500
|
+
], m.prototype, "translations", 2);
|
|
1501
|
+
v([
|
|
1547
1502
|
g({ type: String })
|
|
1548
|
-
],
|
|
1549
|
-
|
|
1503
|
+
], m.prototype, "locale", 2);
|
|
1504
|
+
v([
|
|
1550
1505
|
g({ type: Object })
|
|
1551
|
-
],
|
|
1552
|
-
|
|
1506
|
+
], m.prototype, "customerInfo", 2);
|
|
1507
|
+
v([
|
|
1553
1508
|
l()
|
|
1554
|
-
],
|
|
1555
|
-
|
|
1509
|
+
], m.prototype, "editingContact", 2);
|
|
1510
|
+
v([
|
|
1556
1511
|
l()
|
|
1557
|
-
],
|
|
1558
|
-
|
|
1512
|
+
], m.prototype, "countryDropdownOpen", 2);
|
|
1513
|
+
v([
|
|
1559
1514
|
l()
|
|
1560
|
-
],
|
|
1561
|
-
|
|
1515
|
+
], m.prototype, "fieldErrors", 2);
|
|
1516
|
+
v([
|
|
1562
1517
|
l()
|
|
1563
|
-
],
|
|
1564
|
-
|
|
1518
|
+
], m.prototype, "editName", 2);
|
|
1519
|
+
v([
|
|
1565
1520
|
l()
|
|
1566
|
-
],
|
|
1567
|
-
|
|
1521
|
+
], m.prototype, "editAddress1", 2);
|
|
1522
|
+
v([
|
|
1568
1523
|
l()
|
|
1569
|
-
],
|
|
1570
|
-
|
|
1524
|
+
], m.prototype, "editAddress2", 2);
|
|
1525
|
+
v([
|
|
1571
1526
|
l()
|
|
1572
|
-
],
|
|
1573
|
-
|
|
1527
|
+
], m.prototype, "editPostalCode", 2);
|
|
1528
|
+
v([
|
|
1574
1529
|
l()
|
|
1575
|
-
],
|
|
1576
|
-
|
|
1530
|
+
], m.prototype, "editCity", 2);
|
|
1531
|
+
v([
|
|
1577
1532
|
l()
|
|
1578
|
-
],
|
|
1579
|
-
|
|
1533
|
+
], m.prototype, "editCountryCode", 2);
|
|
1534
|
+
v([
|
|
1580
1535
|
l()
|
|
1581
|
-
],
|
|
1582
|
-
|
|
1536
|
+
], m.prototype, "editWebUrl", 2);
|
|
1537
|
+
v([
|
|
1583
1538
|
l()
|
|
1584
|
-
],
|
|
1585
|
-
|
|
1539
|
+
], m.prototype, "editContactEmail", 2);
|
|
1540
|
+
v([
|
|
1586
1541
|
l()
|
|
1587
|
-
],
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
],
|
|
1591
|
-
var
|
|
1592
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
1542
|
+
], m.prototype, "localCustomer", 2);
|
|
1543
|
+
m = v([
|
|
1544
|
+
A("wizard-step1-company")
|
|
1545
|
+
], m);
|
|
1546
|
+
var K = Object.defineProperty, G = Object.getOwnPropertyDescriptor, x = (e, t, a, r) => {
|
|
1547
|
+
for (var i = r > 1 ? void 0 : r ? G(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
1593
1548
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
1594
|
-
return r && i &&
|
|
1549
|
+
return r && i && K(t, a, i), i;
|
|
1595
1550
|
};
|
|
1596
|
-
let
|
|
1551
|
+
let f = class extends E {
|
|
1597
1552
|
constructor() {
|
|
1598
1553
|
super(...arguments), this.httpService = null, this.customerId = "", this.locale = "en-GB", this.currentUser = null, this.existingAdmins = [], this.isLoadingAdmins = !1, this.rows = [], this.nextId = 1, this.lookingUpIds = /* @__PURE__ */ new Set(), this.isConfirming = !1, this.rowErrors = /* @__PURE__ */ new Map(), this._loadSequence = 0;
|
|
1599
1554
|
}
|
|
1555
|
+
firstUpdated() {
|
|
1556
|
+
this.updateComplete.then(() => {
|
|
1557
|
+
var e, t;
|
|
1558
|
+
(t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("h2")) == null || t.focus();
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1600
1561
|
updated(e) {
|
|
1601
1562
|
e.has("httpService") || e.has("customerId") ? this.loadExistingAdmins() : e.has("currentUser") && this.existingAdmins.length > 0 && (this.existingAdmins = this.sortAdmins([...this.existingAdmins]));
|
|
1602
1563
|
}
|
|
@@ -1643,7 +1604,7 @@ let h = class extends L {
|
|
|
1643
1604
|
var a;
|
|
1644
1605
|
if (!this.canAddMore) return;
|
|
1645
1606
|
const e = this.nextId++;
|
|
1646
|
-
this.rows = [...this.rows, { id: e, state: "lookup", isDone: !1, email: "", firstName: "", lastName: "" }], await this.updateComplete;
|
|
1607
|
+
this.rows = [...this.rows, { id: e, state: "lookup", isDone: !1, wasEverDone: !1, email: "", firstName: "", lastName: "" }], await this.updateComplete;
|
|
1647
1608
|
const t = (a = this.shadowRoot) == null ? void 0 : a.querySelectorAll('input[type="email"]');
|
|
1648
1609
|
t && t.length > 0 && t[t.length - 1].focus();
|
|
1649
1610
|
}
|
|
@@ -1653,19 +1614,22 @@ let h = class extends L {
|
|
|
1653
1614
|
t.delete(e), this.rowErrors = t;
|
|
1654
1615
|
}
|
|
1655
1616
|
doneRow(e) {
|
|
1656
|
-
const t = this.rows.find((
|
|
1657
|
-
if (t
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
}
|
|
1662
|
-
this.rows = this.rows.map(
|
|
1663
|
-
(a) => a.id === e ? { ...a, isDone: !0, email: a.email.trim(), firstName: a.firstName.trim(), lastName: a.lastName.trim() } : a
|
|
1664
|
-
);
|
|
1617
|
+
const t = this.rows.find((r) => r.id === e);
|
|
1618
|
+
if (!t || t.state === "lookup") return;
|
|
1619
|
+
if (t.state === "not-found") {
|
|
1620
|
+
const r = this.validateRowRequiredField(e, "firstName", t.firstName), i = this.validateRowRequiredField(e, "lastName", t.lastName);
|
|
1621
|
+
if (!r || !i) return;
|
|
1665
1622
|
}
|
|
1623
|
+
const a = { state: t.state, email: t.email.trim(), firstName: t.firstName.trim(), lastName: t.lastName.trim() };
|
|
1624
|
+
this.rows = this.rows.map(
|
|
1625
|
+
(r) => r.id === e ? { ...r, isDone: !0, wasEverDone: !0, email: r.email.trim(), firstName: r.firstName.trim(), lastName: r.lastName.trim(), doneSnapshot: a } : r
|
|
1626
|
+
);
|
|
1666
1627
|
}
|
|
1667
1628
|
editRow(e) {
|
|
1668
|
-
this.rows = this.rows.map((t) => t.id === e ? { ...t, isDone: !1 } : t)
|
|
1629
|
+
this.rows = this.rows.map((t) => t.id === e ? { ...t, isDone: !1 } : t), this.updateComplete.then(() => {
|
|
1630
|
+
var t, a;
|
|
1631
|
+
(a = (t = this.shadowRoot) == null ? void 0 : t.querySelector(`[data-email-row-id="${e}"]`)) == null || a.focus();
|
|
1632
|
+
});
|
|
1669
1633
|
}
|
|
1670
1634
|
updateRowEmail(e, t) {
|
|
1671
1635
|
this.rows = this.rows.map(
|
|
@@ -1705,8 +1669,8 @@ let h = class extends L {
|
|
|
1705
1669
|
return e;
|
|
1706
1670
|
}
|
|
1707
1671
|
async lookupUser(e) {
|
|
1708
|
-
var r, i, o, s,
|
|
1709
|
-
const t = this.rows.find((
|
|
1672
|
+
var r, i, o, s, h, L;
|
|
1673
|
+
const t = this.rows.find((z) => z.id === e);
|
|
1710
1674
|
if (!t || !this.httpService) return;
|
|
1711
1675
|
if (!this.validateRowEmail(e, t.email)) {
|
|
1712
1676
|
(i = (r = this.shadowRoot) == null ? void 0 : r.querySelector(`input[data-email-row-id="${e}"]`)) == null || i.focus();
|
|
@@ -1715,17 +1679,17 @@ let h = class extends L {
|
|
|
1715
1679
|
const a = t.email.trim();
|
|
1716
1680
|
this.lookingUpIds = /* @__PURE__ */ new Set([...this.lookingUpIds, e]);
|
|
1717
1681
|
try {
|
|
1718
|
-
const
|
|
1682
|
+
const z = await this.httpService.getUserByEmail(a), c = this.rows.find((k) => k.id === e);
|
|
1719
1683
|
if (!c || c.email.trim() !== a) return;
|
|
1720
|
-
|
|
1721
|
-
(
|
|
1684
|
+
z ? (this.rows = this.rows.map(
|
|
1685
|
+
(k) => k.id === e ? { ...k, state: "found", firstName: z.firstName, lastName: z.lastName } : k
|
|
1722
1686
|
), await this.updateComplete, (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector(`button[data-done-row-id="${e}"]`)) == null || s.focus()) : (this.rows = this.rows.map(
|
|
1723
|
-
(
|
|
1724
|
-
), await this.updateComplete, (
|
|
1687
|
+
(k) => k.id === e ? { ...k, state: "not-found", firstName: "", lastName: "" } : k
|
|
1688
|
+
), await this.updateComplete, (L = (h = this.shadowRoot) == null ? void 0 : h.querySelector(`input[data-row-id="${e}"]`)) == null || L.focus());
|
|
1725
1689
|
} catch {
|
|
1726
1690
|
} finally {
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1691
|
+
const z = new Set(this.lookingUpIds);
|
|
1692
|
+
z.delete(e), this.lookingUpIds = z;
|
|
1729
1693
|
}
|
|
1730
1694
|
}
|
|
1731
1695
|
async handleConfirm() {
|
|
@@ -1750,6 +1714,27 @@ let h = class extends L {
|
|
|
1750
1714
|
this.isConfirming = !1;
|
|
1751
1715
|
}
|
|
1752
1716
|
}
|
|
1717
|
+
handleAdminTableKeydown(e) {
|
|
1718
|
+
if (e.key === "Escape") {
|
|
1719
|
+
const t = this.rows.find((a) => !a.isDone);
|
|
1720
|
+
if (t)
|
|
1721
|
+
if (e.preventDefault(), e.stopPropagation(), t.wasEverDone) {
|
|
1722
|
+
const a = t.doneSnapshot;
|
|
1723
|
+
this.rows = this.rows.map(
|
|
1724
|
+
(i) => i.id === t.id ? a ? { ...i, isDone: !0, state: a.state, email: a.email, firstName: a.firstName, lastName: a.lastName } : { ...i, isDone: !0 } : i
|
|
1725
|
+
);
|
|
1726
|
+
const r = new Map(this.rowErrors);
|
|
1727
|
+
r.delete(t.id), this.rowErrors = r, this.updateComplete.then(() => {
|
|
1728
|
+
var i, o;
|
|
1729
|
+
(o = (i = this.shadowRoot) == null ? void 0 : i.querySelector(`[data-edit-row-id="${t.id}"]`)) == null || o.focus();
|
|
1730
|
+
});
|
|
1731
|
+
} else
|
|
1732
|
+
this.removeRow(t.id), this.updateComplete.then(() => {
|
|
1733
|
+
var a, r;
|
|
1734
|
+
(r = (a = this.shadowRoot) == null ? void 0 : a.querySelector(".btn-add-row")) == null || r.focus();
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1753
1738
|
handleSaveAndClose() {
|
|
1754
1739
|
this.dispatchEvent(new CustomEvent("save-and-close", { bubbles: !0, composed: !0 }));
|
|
1755
1740
|
}
|
|
@@ -1770,11 +1755,11 @@ let h = class extends L {
|
|
|
1770
1755
|
</div>
|
|
1771
1756
|
<div class="cell-action">
|
|
1772
1757
|
${r ? n`
|
|
1773
|
-
<div class="you-tag"
|
|
1774
|
-
<span>${d.userRound()}</span>
|
|
1758
|
+
<div class="you-tag">
|
|
1759
|
+
<span aria-hidden="true">${d.userRound()}</span>
|
|
1775
1760
|
<span>${a.administrators.youLabel}</span>
|
|
1776
1761
|
</div>
|
|
1777
|
-
` :
|
|
1762
|
+
` : p}
|
|
1778
1763
|
</div>
|
|
1779
1764
|
</div>
|
|
1780
1765
|
`;
|
|
@@ -1793,10 +1778,11 @@ let h = class extends L {
|
|
|
1793
1778
|
placeholder=${a.company.emailLabel}
|
|
1794
1779
|
aria-label=${a.company.emailLabel}
|
|
1795
1780
|
aria-invalid=${o.email ? "true" : "false"}
|
|
1781
|
+
aria-describedby=${o.email ? "admin-error-email-" + e.id : p}
|
|
1796
1782
|
@input=${(s) => this.updateRowEmail(e.id, s.target.value)}
|
|
1797
1783
|
@blur=${(s) => this.validateRowEmail(e.id, s.target.value)}
|
|
1798
1784
|
/>
|
|
1799
|
-
<span class="field-error ${o.email ? "" : "field-error--empty"}" aria-hidden=${o.email ? "false" : "true"}>${d.octagonAlert()}
|
|
1785
|
+
<span class="field-error ${o.email ? "" : "field-error--empty"}" role=${o.email ? "alert" : p} aria-hidden=${o.email ? "false" : "true"} id=${"admin-error-email-" + e.id}><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${o.email ?? ""}</span></span>
|
|
1800
1786
|
</div>
|
|
1801
1787
|
<div class="cell-lookup-btn">
|
|
1802
1788
|
<button
|
|
@@ -1841,6 +1827,8 @@ let h = class extends L {
|
|
|
1841
1827
|
<button
|
|
1842
1828
|
type="button"
|
|
1843
1829
|
class="btn-edit"
|
|
1830
|
+
data-edit-row-id=${e.id}
|
|
1831
|
+
?disabled=${this.hasOpenRow}
|
|
1844
1832
|
@click=${() => this.editRow(e.id)}
|
|
1845
1833
|
aria-label=${a.administrators.editButton}
|
|
1846
1834
|
>
|
|
@@ -1857,15 +1845,17 @@ let h = class extends L {
|
|
|
1857
1845
|
<input
|
|
1858
1846
|
class="grid-input ${i.email ? "has-error" : ""}"
|
|
1859
1847
|
type="email"
|
|
1848
|
+
data-email-row-id=${e.id}
|
|
1860
1849
|
.value=${e.email}
|
|
1861
1850
|
placeholder=${a.company.emailLabel}
|
|
1862
1851
|
aria-label=${a.company.emailLabel}
|
|
1863
1852
|
aria-invalid=${i.email ? "true" : "false"}
|
|
1853
|
+
aria-describedby=${i.email ? "admin-error-email-" + e.id : p}
|
|
1864
1854
|
?disabled=${r}
|
|
1865
1855
|
@input=${(o) => this.updateRowEmail(e.id, o.target.value)}
|
|
1866
1856
|
@blur=${(o) => this.validateRowEmail(e.id, o.target.value)}
|
|
1867
1857
|
/>
|
|
1868
|
-
<span class="field-error ${i.email ? "" : "field-error--empty"}" aria-hidden=${i.email ? "false" : "true"}>${d.octagonAlert()}
|
|
1858
|
+
<span class="field-error ${i.email ? "" : "field-error--empty"}" role=${i.email ? "alert" : p} aria-hidden=${i.email ? "false" : "true"} id=${"admin-error-email-" + e.id}><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${i.email ?? ""}</span></span>
|
|
1869
1859
|
</div>
|
|
1870
1860
|
<div class="cell-name">
|
|
1871
1861
|
<span class="name-text">${e.firstName}</span>
|
|
@@ -1914,6 +1904,8 @@ let h = class extends L {
|
|
|
1914
1904
|
<button
|
|
1915
1905
|
type="button"
|
|
1916
1906
|
class="btn-edit"
|
|
1907
|
+
data-edit-row-id=${e.id}
|
|
1908
|
+
?disabled=${this.hasOpenRow}
|
|
1917
1909
|
@click=${() => this.editRow(e.id)}
|
|
1918
1910
|
aria-label=${a.administrators.editButton}
|
|
1919
1911
|
>
|
|
@@ -1928,14 +1920,16 @@ let h = class extends L {
|
|
|
1928
1920
|
<input
|
|
1929
1921
|
class="grid-input ${r.email ? "has-error" : ""}"
|
|
1930
1922
|
type="email"
|
|
1923
|
+
data-email-row-id=${e.id}
|
|
1931
1924
|
.value=${e.email}
|
|
1932
1925
|
placeholder=${a.company.emailLabel}
|
|
1933
1926
|
aria-label=${a.company.emailLabel}
|
|
1934
1927
|
aria-invalid=${r.email ? "true" : "false"}
|
|
1928
|
+
aria-describedby=${r.email ? "admin-error-email-" + e.id : p}
|
|
1935
1929
|
@input=${(i) => this.updateRowEmail(e.id, i.target.value)}
|
|
1936
1930
|
@blur=${(i) => this.validateRowEmail(e.id, i.target.value)}
|
|
1937
1931
|
/>
|
|
1938
|
-
<span class="field-error ${r.email ? "" : "field-error--empty"}" aria-hidden=${r.email ? "false" : "true"}>${d.octagonAlert()}
|
|
1932
|
+
<span class="field-error ${r.email ? "" : "field-error--empty"}" role=${r.email ? "alert" : p} aria-hidden=${r.email ? "false" : "true"} id=${"admin-error-email-" + e.id}><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${r.email ?? ""}</span></span>
|
|
1939
1933
|
</div>
|
|
1940
1934
|
<div class="cell-name">
|
|
1941
1935
|
<input
|
|
@@ -1946,9 +1940,10 @@ let h = class extends L {
|
|
|
1946
1940
|
placeholder=${a.administrators.firstNameLabel}
|
|
1947
1941
|
aria-label=${a.administrators.firstNameLabel}
|
|
1948
1942
|
aria-invalid=${r.firstName ? "true" : "false"}
|
|
1943
|
+
aria-describedby=${r.firstName ? "admin-error-firstName-" + e.id : p}
|
|
1949
1944
|
@input=${(i) => this.updateFirstName(e.id, i.target.value)}
|
|
1950
1945
|
/>
|
|
1951
|
-
<span class="field-error ${r.firstName ? "" : "field-error--empty"}" aria-hidden=${r.firstName ? "false" : "true"}>${d.octagonAlert()}
|
|
1946
|
+
<span class="field-error ${r.firstName ? "" : "field-error--empty"}" role=${r.firstName ? "alert" : p} aria-hidden=${r.firstName ? "false" : "true"} id=${"admin-error-firstName-" + e.id}><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${r.firstName ?? ""}</span></span>
|
|
1952
1947
|
</div>
|
|
1953
1948
|
<div class="cell-name-last">
|
|
1954
1949
|
<input
|
|
@@ -1958,9 +1953,10 @@ let h = class extends L {
|
|
|
1958
1953
|
placeholder=${a.administrators.lastNameLabel}
|
|
1959
1954
|
aria-label=${a.administrators.lastNameLabel}
|
|
1960
1955
|
aria-invalid=${r.lastName ? "true" : "false"}
|
|
1956
|
+
aria-describedby=${r.lastName ? "admin-error-lastName-" + e.id : p}
|
|
1961
1957
|
@input=${(i) => this.updateLastName(e.id, i.target.value)}
|
|
1962
1958
|
/>
|
|
1963
|
-
<span class="field-error ${r.lastName ? "" : "field-error--empty"}" aria-hidden=${r.lastName ? "false" : "true"}>${d.octagonAlert()}
|
|
1959
|
+
<span class="field-error ${r.lastName ? "" : "field-error--empty"}" role=${r.lastName ? "alert" : p} aria-hidden=${r.lastName ? "false" : "true"} id=${"admin-error-lastName-" + e.id}><span aria-hidden="true">${d.octagonAlert()}</span><span class="field-error-text">${r.lastName ?? ""}</span></span>
|
|
1964
1960
|
</div>
|
|
1965
1961
|
<div class="cell-action">
|
|
1966
1962
|
<button
|
|
@@ -1996,8 +1992,8 @@ let h = class extends L {
|
|
|
1996
1992
|
render() {
|
|
1997
1993
|
const e = this.translations, t = this.existingAdmins.length + 1;
|
|
1998
1994
|
return n`
|
|
1999
|
-
<div class="step-content">
|
|
2000
|
-
<h2>${e.administrators.title}</h2>
|
|
1995
|
+
<div class="step-content" @keydown=${this.handleAdminTableKeydown}>
|
|
1996
|
+
<h2 tabindex="-1">${e.administrators.title}</h2>
|
|
2001
1997
|
<p>${e.administrators.description}</p>
|
|
2002
1998
|
|
|
2003
1999
|
<div class="admin-table">
|
|
@@ -2034,60 +2030,66 @@ let h = class extends L {
|
|
|
2034
2030
|
`;
|
|
2035
2031
|
}
|
|
2036
2032
|
};
|
|
2037
|
-
|
|
2038
|
-
|
|
2033
|
+
f.styles = [
|
|
2034
|
+
N,
|
|
2039
2035
|
j,
|
|
2040
2036
|
P,
|
|
2041
|
-
|
|
2037
|
+
S`.step-content > p{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);letter-spacing:var(--ga-text-md-tracking);color:var(--ga-color-text-body);margin:0 0 var(--ga-size-spacing-07);}.admin-table{background:var(--ga-color-surface-page);border-radius:var(--ga-radius);overflow:hidden;}.admin-row{display:flex;align-items:flex-start;gap:var(--ga-size-spacing-04);padding:var(--ga-size-spacing-03) var(--ga-size-spacing-05);min-height:var(--ga-size-56);}.admin-row + .admin-row{border-top:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-20);}.admin-row--done{align-items:center;}.row-num{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);width:var(--ga-size-spacing-05);text-align:right;flex-shrink:0;align-self:flex-start;padding-top:var(--ga-size-spacing-04);}.admin-row--done .row-num{align-self:auto;padding-top:0;}.cell-email{flex:0 0 var(--ga-size-content-xs);min-width:0;}.cell-name,.cell-name-last{flex:1 1 0;min-width:0;}.cell-lookup-btn{flex:1 1 0;}.cell-action{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:var(--ga-size-spacing-02);min-width:calc(var(--ga-size-spacing-12) + var(--ga-size-spacing-03));}.name-text{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;padding:0 var(--ga-size-spacing-02);}.grid-input{background:var(--ga-color-white);border:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-30);border-radius:var(--ga-radius);height:var(--ga-size-40);padding:0 var(--ga-size-spacing-04);font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);width:100%;box-sizing:border-box;outline:none;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.grid-input:focus{border-color:var(--ga-color-border-focus);outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-md);}.grid-input.has-error{border-color:var(--ga-color-border-error);background:var(--ga-color-surface-error);}.grid-input.has-error:focus{border-color:var(--ga-color-border-error);}.you-tag{display:inline-flex;align-items:center;gap:var(--ga-size-spacing-02);background:var(--ga-color-utility-green-light);border:var(--ga-size-border-width-sm) solid var(--ga-color-utility-green);border-radius:var(--ga-radius);padding:var(--ga-size-spacing-01) var(--ga-size-spacing-02);font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);white-space:nowrap;}.you-tag svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);flex-shrink:0;}.btn-add-name{background:transparent;border:var(--ga-size-border-width-sm) solid var(--ga-color-primary);border-radius:var(--ga-radius);color:var(--ga-color-primary);font-size:var(--ga-text-sm-size);font-weight:500;height:var(--ga-size-40);padding:0 var(--ga-size-spacing-04);cursor:pointer;white-space:nowrap;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.btn-add-name:hover:not(:disabled){background:var(--ga-color-surface-page);}.btn-add-name:focus-visible,.btn-done:focus-visible,.btn-edit:focus-visible,.btn-icon:focus-visible,.btn-add-row:focus-visible{outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-md);}.btn-add-name:disabled{border-color:var(--ga-color-border-disabled);color:var(--ga-color-text-disabled);cursor:not-allowed;}.btn-done{background:var(--ga-color-primary-70);color:var(--ga-color-secondary-10);border:var(--ga-size-border-width-sm) solid var(--ga-color-primary-70);border-radius:var(--ga-radius);font-size:var(--ga-text-sm-size);font-weight:500;height:var(--ga-size-40);padding:0 var(--ga-size-spacing-04);cursor:pointer;white-space:nowrap;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.btn-done:hover{background:var(--ga-color-primary-90);border-color:var(--ga-color-primary-90);}.btn-edit{background:var(--ga-color-white);color:var(--ga-color-text-body);border:var(--ga-size-border-width-sm) solid var(--ga-color-cyan-80);border-radius:var(--ga-radius);font-size:var(--ga-text-sm-size);font-weight:500;height:var(--ga-size-40);padding:0 var(--ga-size-spacing-04);cursor:pointer;white-space:nowrap;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.btn-edit:hover{background:var(--ga-color-secondary-10);}.btn-icon{background:transparent;border:none;padding:var(--ga-size-spacing-02);cursor:pointer;color:var(--ga-color-primary);display:flex;align-items:center;justify-content:center;border-radius:var(--ga-radius);}.btn-icon:hover{background:var(--ga-color-surface-page);}.btn-icon svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);}.table-footer{border-top:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-20);padding:var(--ga-size-spacing-03) var(--ga-size-spacing-05);display:flex;align-items:center;}.btn-add-row{display:inline-flex;align-items:center;gap:var(--ga-size-spacing-02);background:transparent;border:var(--ga-size-border-width-sm) solid var(--ga-color-primary);color:var(--ga-color-primary);font-size:var(--ga-text-md-size);font-weight:500;padding:var(--ga-size-spacing-03) var(--ga-size-spacing-05);cursor:pointer;border-radius:var(--ga-radius);font-family:var(--vsn-customer-onboarding-wizard-font-family);}.btn-add-row:hover:not(:disabled){background:var(--ga-color-surface-page);}.btn-add-row:disabled{color:var(--ga-color-text-disabled);border-color:var(--ga-color-neutral-30);cursor:not-allowed;}.btn-add-row svg{width:var(--ga-size-16);height:var(--ga-size-16);}.admin-row:not(.admin-row--done) .name-text{line-height:var(--ga-size-40);}h2[tabindex="-1"]:focus{outline:none;}`
|
|
2042
2038
|
];
|
|
2043
|
-
|
|
2039
|
+
x([
|
|
2044
2040
|
g({ type: Object })
|
|
2045
|
-
],
|
|
2046
|
-
|
|
2041
|
+
], f.prototype, "translations", 2);
|
|
2042
|
+
x([
|
|
2047
2043
|
g({ type: Object })
|
|
2048
|
-
],
|
|
2049
|
-
|
|
2044
|
+
], f.prototype, "httpService", 2);
|
|
2045
|
+
x([
|
|
2050
2046
|
g({ type: String })
|
|
2051
|
-
],
|
|
2052
|
-
|
|
2047
|
+
], f.prototype, "customerId", 2);
|
|
2048
|
+
x([
|
|
2053
2049
|
g({ type: String })
|
|
2054
|
-
],
|
|
2055
|
-
|
|
2050
|
+
], f.prototype, "locale", 2);
|
|
2051
|
+
x([
|
|
2056
2052
|
g({ type: Object })
|
|
2057
|
-
],
|
|
2058
|
-
|
|
2053
|
+
], f.prototype, "currentUser", 2);
|
|
2054
|
+
x([
|
|
2059
2055
|
l()
|
|
2060
|
-
],
|
|
2061
|
-
|
|
2056
|
+
], f.prototype, "existingAdmins", 2);
|
|
2057
|
+
x([
|
|
2062
2058
|
l()
|
|
2063
|
-
],
|
|
2064
|
-
|
|
2059
|
+
], f.prototype, "isLoadingAdmins", 2);
|
|
2060
|
+
x([
|
|
2065
2061
|
l()
|
|
2066
|
-
],
|
|
2067
|
-
|
|
2062
|
+
], f.prototype, "rows", 2);
|
|
2063
|
+
x([
|
|
2068
2064
|
l()
|
|
2069
|
-
],
|
|
2070
|
-
|
|
2065
|
+
], f.prototype, "nextId", 2);
|
|
2066
|
+
x([
|
|
2071
2067
|
l()
|
|
2072
|
-
],
|
|
2073
|
-
|
|
2068
|
+
], f.prototype, "lookingUpIds", 2);
|
|
2069
|
+
x([
|
|
2074
2070
|
l()
|
|
2075
|
-
],
|
|
2076
|
-
|
|
2071
|
+
], f.prototype, "isConfirming", 2);
|
|
2072
|
+
x([
|
|
2077
2073
|
l()
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
],
|
|
2082
|
-
var
|
|
2074
|
+
], f.prototype, "rowErrors", 2);
|
|
2075
|
+
f = x([
|
|
2076
|
+
A("wizard-step2-administrators")
|
|
2077
|
+
], f);
|
|
2078
|
+
var Y = Object.defineProperty, H = Object.getOwnPropertyDescriptor, $ = (e, t, a, r) => {
|
|
2083
2079
|
for (var i = r > 1 ? void 0 : r ? H(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
2084
2080
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
2085
|
-
return r && i &&
|
|
2081
|
+
return r && i && Y(t, a, i), i;
|
|
2086
2082
|
};
|
|
2087
|
-
let
|
|
2083
|
+
let w = class extends E {
|
|
2088
2084
|
constructor() {
|
|
2089
2085
|
super(...arguments), this.httpService = null, this.customerId = "", this.partnerId = "", this.partnerName = "", this.consultants = [], this.isLoading = !1, this.isConfirming = !1, this.selectedIds = /* @__PURE__ */ new Set(), this.searchTerm = "", this._loadSequence = 0;
|
|
2090
2086
|
}
|
|
2087
|
+
firstUpdated() {
|
|
2088
|
+
this.updateComplete.then(() => {
|
|
2089
|
+
var e, t;
|
|
2090
|
+
(t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("h2")) == null || t.focus();
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2091
2093
|
updated(e) {
|
|
2092
2094
|
(e.has("httpService") || e.has("partnerId")) && this.loadConsultants();
|
|
2093
2095
|
}
|
|
@@ -2146,8 +2148,8 @@ let b = class extends L {
|
|
|
2146
2148
|
.checked=${t}
|
|
2147
2149
|
@change=${() => this.toggleConsultant(e.id)}
|
|
2148
2150
|
/>
|
|
2149
|
-
<span class="checkbox-visual ${t ? "checkbox-visual--checked" : ""}">
|
|
2150
|
-
${t ? d.check() :
|
|
2151
|
+
<span class="checkbox-visual ${t ? "checkbox-visual--checked" : ""}" aria-hidden="true">
|
|
2152
|
+
${t ? d.check() : p}
|
|
2151
2153
|
</span>
|
|
2152
2154
|
<span class="consultant-name">${a}</span>
|
|
2153
2155
|
<span class="consultant-email">${e.email}</span>
|
|
@@ -2155,14 +2157,14 @@ let b = class extends L {
|
|
|
2155
2157
|
`;
|
|
2156
2158
|
}
|
|
2157
2159
|
render() {
|
|
2158
|
-
const e = this.translations;
|
|
2160
|
+
const e = this.translations, t = this.filteredConsultants;
|
|
2159
2161
|
return n`
|
|
2160
2162
|
<div class="step-content">
|
|
2161
|
-
<h2>${e.partnerAccess.title}</h2>
|
|
2163
|
+
<h2 tabindex="-1">${e.partnerAccess.title}</h2>
|
|
2162
2164
|
<p>${(() => {
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2165
|
-
(
|
|
2165
|
+
const a = e.partnerAccess.description.split("{partnerName}");
|
|
2166
|
+
return a.length === 1 ? e.partnerAccess.description : n`${a.map(
|
|
2167
|
+
(r, i) => i < a.length - 1 ? n`${r}<strong>${this.partnerName}</strong>` : r
|
|
2166
2168
|
)}`;
|
|
2167
2169
|
})()}</p>
|
|
2168
2170
|
|
|
@@ -2175,16 +2177,17 @@ let b = class extends L {
|
|
|
2175
2177
|
placeholder=${e.partnerAccess.findConsultantPlaceholder}
|
|
2176
2178
|
aria-label=${e.partnerAccess.findConsultantPlaceholder}
|
|
2177
2179
|
.value=${this.searchTerm}
|
|
2178
|
-
@input=${(
|
|
2179
|
-
this.searchTerm =
|
|
2180
|
+
@input=${(a) => {
|
|
2181
|
+
this.searchTerm = a.target.value;
|
|
2180
2182
|
}}
|
|
2181
2183
|
/>
|
|
2182
2184
|
</div>
|
|
2183
2185
|
</div>
|
|
2184
2186
|
|
|
2185
2187
|
<div class="consultant-list" role="list" aria-label=${e.partnerAccess.title}>
|
|
2186
|
-
${this.isLoading ? n`<div class="loading-row" role="listitem">${e.partnerAccess.loading}</div>` :
|
|
2188
|
+
${this.isLoading ? n`<div class="loading-row" role="listitem">${e.partnerAccess.loading}</div>` : t.length > 0 ? t.map((a) => this.renderConsultantRow(a)) : this.searchTerm.trim() ? n`<div class="no-results-row" role="listitem">${e.partnerAccess.noResultsFound}</div>` : p}
|
|
2187
2189
|
</div>
|
|
2190
|
+
<div role="status" class="sr-only">${!this.isLoading && this.searchTerm.trim() && t.length === 0 ? e.partnerAccess.noResultsFound : ""}</div>
|
|
2188
2191
|
</div>
|
|
2189
2192
|
|
|
2190
2193
|
<div class="wizard-actions">
|
|
@@ -2203,51 +2206,57 @@ let b = class extends L {
|
|
|
2203
2206
|
`;
|
|
2204
2207
|
}
|
|
2205
2208
|
};
|
|
2206
|
-
|
|
2207
|
-
|
|
2209
|
+
w.styles = [
|
|
2210
|
+
N,
|
|
2208
2211
|
j,
|
|
2209
2212
|
P,
|
|
2210
|
-
|
|
2213
|
+
S`.step-content > p{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);color:var(--ga-color-text-body);margin:0 0 var(--ga-size-spacing-07);}.search-row{display:flex;justify-content:flex-end;margin-bottom:var(--ga-size-spacing-03);}.search-wrapper{position:relative;width:var(--ga-size-content-xs);}.search-icon{position:absolute;left:var(--ga-size-spacing-03);top:50%;transform:translateY(-50%);color:var(--ga-color-icon-action);display:flex;align-items:center;pointer-events:none;}.search-icon svg{width:var(--ga-size-spacing-05);height:var(--ga-size-spacing-05);}.search-input{width:100%;box-sizing:border-box;height:var(--ga-size-40);padding:0 var(--ga-size-spacing-04) 0 var(--ga-size-spacing-07);border:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-30);border-radius:var(--ga-radius);background:var(--ga-color-white);font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);outline:none;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.search-input::placeholder{color:var(--ga-color-neutral-60);}.search-input:focus{border-color:var(--ga-color-border-focus);}.consultant-list{background:var(--ga-color-surface-page);border-radius:var(--ga-radius);overflow:hidden;}.consultant-row{display:flex;align-items:center;gap:var(--ga-size-spacing-03);height:var(--ga-size-56);padding:0 var(--ga-size-spacing-05);cursor:pointer;}.consultant-row + .consultant-row{border-top:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-20);}.consultant-row--selected{background:var(--ga-color-surface-selected);}.consultant-row:hover:not(.consultant-row--selected){background:var(--ga-color-neutral-10);}.consultant-row:focus-within .checkbox-visual{outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-sm);}.checkbox-visual{flex-shrink:0;width:var(--ga-size-16);height:var(--ga-size-16);border:var(--ga-size-border-width-sm) solid var(--ga-color-neutral-30);border-radius:var(--ga-radius);background:var(--ga-color-white);display:flex;align-items:center;justify-content:center;pointer-events:none;}.checkbox-visual--checked{background:var(--ga-color-primary-70);border-color:var(--ga-color-primary-70);}.checkbox-visual svg{width:var(--ga-size-12);height:var(--ga-size-12);color:var(--ga-color-white);stroke-width:var(--ga-size-border-width-lg);}.sr-only{position:absolute;width:var(--ga-size-border-width-sm);height:var(--ga-size-border-width-sm);padding:0;margin:calc(var(--ga-size-border-width-sm) * -1);overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}.consultant-name,.consultant-email{flex:1 1 0;min-width:0;font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-text-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.consultant-email{text-align:left;}.loading-row,.no-results-row{padding:var(--ga-size-spacing-05);text-align:center;font-size:var(--ga-text-sm-size);color:var(--ga-color-neutral-60);}h2[tabindex="-1"]:focus{outline:none;}`
|
|
2211
2214
|
];
|
|
2212
|
-
|
|
2215
|
+
$([
|
|
2213
2216
|
g({ type: Object })
|
|
2214
|
-
],
|
|
2215
|
-
|
|
2217
|
+
], w.prototype, "translations", 2);
|
|
2218
|
+
$([
|
|
2216
2219
|
g({ type: Object })
|
|
2217
|
-
],
|
|
2218
|
-
|
|
2220
|
+
], w.prototype, "httpService", 2);
|
|
2221
|
+
$([
|
|
2219
2222
|
g({ type: String })
|
|
2220
|
-
],
|
|
2221
|
-
|
|
2223
|
+
], w.prototype, "customerId", 2);
|
|
2224
|
+
$([
|
|
2222
2225
|
g({ type: String })
|
|
2223
|
-
],
|
|
2224
|
-
|
|
2226
|
+
], w.prototype, "partnerId", 2);
|
|
2227
|
+
$([
|
|
2225
2228
|
g({ type: String })
|
|
2226
|
-
],
|
|
2227
|
-
|
|
2229
|
+
], w.prototype, "partnerName", 2);
|
|
2230
|
+
$([
|
|
2228
2231
|
l()
|
|
2229
|
-
],
|
|
2230
|
-
|
|
2232
|
+
], w.prototype, "consultants", 2);
|
|
2233
|
+
$([
|
|
2231
2234
|
l()
|
|
2232
|
-
],
|
|
2233
|
-
|
|
2235
|
+
], w.prototype, "isLoading", 2);
|
|
2236
|
+
$([
|
|
2234
2237
|
l()
|
|
2235
|
-
],
|
|
2236
|
-
|
|
2238
|
+
], w.prototype, "isConfirming", 2);
|
|
2239
|
+
$([
|
|
2237
2240
|
l()
|
|
2238
|
-
],
|
|
2239
|
-
|
|
2241
|
+
], w.prototype, "selectedIds", 2);
|
|
2242
|
+
$([
|
|
2240
2243
|
l()
|
|
2241
|
-
],
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
],
|
|
2245
|
-
var Z = Object.defineProperty, J = Object.getOwnPropertyDescriptor,
|
|
2244
|
+
], w.prototype, "searchTerm", 2);
|
|
2245
|
+
w = $([
|
|
2246
|
+
A("wizard-step3-partner-access")
|
|
2247
|
+
], w);
|
|
2248
|
+
var Z = Object.defineProperty, J = Object.getOwnPropertyDescriptor, F = (e, t, a, r) => {
|
|
2246
2249
|
for (var i = r > 1 ? void 0 : r ? J(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
2247
2250
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
2248
2251
|
return r && i && Z(t, a, i), i;
|
|
2249
2252
|
};
|
|
2250
|
-
let
|
|
2253
|
+
let I = class extends E {
|
|
2254
|
+
firstUpdated() {
|
|
2255
|
+
this.updateComplete.then(() => {
|
|
2256
|
+
var e, t;
|
|
2257
|
+
(t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("h2")) == null || t.focus();
|
|
2258
|
+
});
|
|
2259
|
+
}
|
|
2251
2260
|
handleClose() {
|
|
2252
2261
|
this.dispatchEvent(new CustomEvent("close", {
|
|
2253
2262
|
bubbles: !0,
|
|
@@ -2265,7 +2274,7 @@ let R = class extends L {
|
|
|
2265
2274
|
const e = this.translations;
|
|
2266
2275
|
return n`
|
|
2267
2276
|
<div class="step-content">
|
|
2268
|
-
<h2>${e.complete.title}</h2>
|
|
2277
|
+
<h2 tabindex="-1">${e.complete.title}</h2>
|
|
2269
2278
|
<p>${e.complete.message1}</p>
|
|
2270
2279
|
<p>${e.complete.message2}</p>
|
|
2271
2280
|
|
|
@@ -2282,26 +2291,26 @@ let R = class extends L {
|
|
|
2282
2291
|
`;
|
|
2283
2292
|
}
|
|
2284
2293
|
};
|
|
2285
|
-
|
|
2286
|
-
|
|
2294
|
+
I.styles = [
|
|
2295
|
+
N,
|
|
2287
2296
|
j,
|
|
2288
2297
|
P,
|
|
2289
|
-
|
|
2298
|
+
S`.step-content h2{font-weight:var(--ga-font-weight-semibold);margin:0 0 var(--ga-size-spacing-06);}.step-content p{font-size:var(--ga-text-md-size);line-height:var(--ga-text-md-line-height);color:var(--ga-color-text-body);margin:0 0 var(--ga-size-spacing-04);}.primary-action{margin-top:var(--ga-size-spacing-06);}h2[tabindex="-1"]:focus{outline:none;}`
|
|
2290
2299
|
];
|
|
2291
|
-
|
|
2300
|
+
F([
|
|
2292
2301
|
g({ type: Object })
|
|
2293
|
-
],
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
],
|
|
2297
|
-
var Q = Object.defineProperty, X = Object.getOwnPropertyDescriptor,
|
|
2302
|
+
], I.prototype, "translations", 2);
|
|
2303
|
+
I = F([
|
|
2304
|
+
A("wizard-step-complete")
|
|
2305
|
+
], I);
|
|
2306
|
+
var Q = Object.defineProperty, X = Object.getOwnPropertyDescriptor, y = (e, t, a, r) => {
|
|
2298
2307
|
for (var i = r > 1 ? void 0 : r ? X(t, a) : t, o = e.length - 1, s; o >= 0; o--)
|
|
2299
2308
|
(s = e[o]) && (i = (r ? s(t, a, i) : s(i)) || i);
|
|
2300
2309
|
return r && i && Q(t, a, i), i;
|
|
2301
2310
|
};
|
|
2302
|
-
let
|
|
2311
|
+
let u = class extends E {
|
|
2303
2312
|
constructor() {
|
|
2304
|
-
super(...arguments), this.locale = "en-
|
|
2313
|
+
super(...arguments), this.locale = "en-US", this.baseUrl = "", this.adminUrl = "", this.taskId = "", this.customerId = "", this.step = "welcome", this.userName = "User", this.currentUserProfile = null, this.currentStep = 0, this.completedSteps = /* @__PURE__ */ new Set(), this.errorState = null, this.customerInfo = null, this.visible = !0, this.i18n = new T(), this.errorMessageListener = null;
|
|
2305
2314
|
}
|
|
2306
2315
|
get steps() {
|
|
2307
2316
|
const e = this.i18n.getTranslations();
|
|
@@ -2312,7 +2321,7 @@ let m = class extends L {
|
|
|
2312
2321
|
];
|
|
2313
2322
|
}
|
|
2314
2323
|
connectedCallback() {
|
|
2315
|
-
super.connectedCallback(), this.currentStep =
|
|
2324
|
+
super.connectedCallback(), this.currentStep = u.stepMap[this.step] ?? 0, this.httpService = new O(this.baseUrl, {}, this), this.i18n.setLocale(this.locale), this.initializeWithAuth(), this.setupErrorMessageListener();
|
|
2316
2325
|
}
|
|
2317
2326
|
disconnectedCallback() {
|
|
2318
2327
|
super.disconnectedCallback(), this.removeErrorMessageListener();
|
|
@@ -2442,6 +2451,12 @@ let m = class extends L {
|
|
|
2442
2451
|
handleComplete() {
|
|
2443
2452
|
this.completedSteps.add(this.currentStep), this.currentStep = 4;
|
|
2444
2453
|
}
|
|
2454
|
+
handleWizardKeydown(e) {
|
|
2455
|
+
if (e.key === "Escape") {
|
|
2456
|
+
if (e.defaultPrevented) return;
|
|
2457
|
+
e.preventDefault(), e.stopPropagation(), this.handleSaveAndClose();
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2445
2460
|
handleSaveAndClose() {
|
|
2446
2461
|
const t = {
|
|
2447
2462
|
0: "welcome",
|
|
@@ -2503,7 +2518,7 @@ let m = class extends L {
|
|
|
2503
2518
|
${this.steps.map((t) => n`
|
|
2504
2519
|
<div class="step-wrapper" role="listitem">
|
|
2505
2520
|
<div class="step-indicator ${this.currentStep === 4 ? "completed" : ""}">
|
|
2506
|
-
<div class="step-icon">
|
|
2521
|
+
<div class="step-icon" aria-hidden="true">
|
|
2507
2522
|
${this.currentStep === 4 ? d.circleCheckBig() : d.circleDashed()}
|
|
2508
2523
|
</div>
|
|
2509
2524
|
<span class="step-label">${t.label}</span>
|
|
@@ -2521,9 +2536,9 @@ let m = class extends L {
|
|
|
2521
2536
|
</div>
|
|
2522
2537
|
<div class="steps-row" role="list" aria-label=${e.steps.progressLabel}>
|
|
2523
2538
|
${this.steps.map((t) => n`
|
|
2524
|
-
<div class="step-wrapper" role="listitem">
|
|
2525
|
-
<div class="step-indicator ${this.getStepClass(t.id)}"
|
|
2526
|
-
<div class="step-icon">
|
|
2539
|
+
<div class="step-wrapper" role="listitem" aria-current=${this.currentStep === t.id ? "step" : p}>
|
|
2540
|
+
<div class="step-indicator ${this.getStepClass(t.id)}">
|
|
2541
|
+
<div class="step-icon" aria-hidden="true">
|
|
2527
2542
|
${this.completedSteps.has(t.id) ? d.circleCheckBig() : this.currentStep === t.id ? d.circleDotDashed() : d.circleDashed()}
|
|
2528
2543
|
</div>
|
|
2529
2544
|
<span class="step-label">${t.label}</span>
|
|
@@ -2540,7 +2555,7 @@ let m = class extends L {
|
|
|
2540
2555
|
return n`
|
|
2541
2556
|
${this.visible ? n`
|
|
2542
2557
|
<div class="overlay">
|
|
2543
|
-
<div class="wizard-container" role="dialog" aria-modal="true" aria-labelledby="wizard-title">
|
|
2558
|
+
<div class="wizard-container" role="dialog" aria-modal="true" aria-labelledby="wizard-title" @keydown=${this.handleWizardKeydown}>
|
|
2544
2559
|
<h1 class="wizard-title" id="wizard-title">${e.wizard.title}</h1>
|
|
2545
2560
|
${this.renderErrorBanner(e)}
|
|
2546
2561
|
${this.renderStepIndicators(e)}
|
|
@@ -2610,7 +2625,7 @@ let m = class extends L {
|
|
|
2610
2625
|
return n`
|
|
2611
2626
|
<div class="error-banner" role="alert">
|
|
2612
2627
|
<div class="error-content">
|
|
2613
|
-
<div class="error-icon">
|
|
2628
|
+
<div class="error-icon" aria-hidden="true">
|
|
2614
2629
|
${d.octagonAlert()}
|
|
2615
2630
|
</div>
|
|
2616
2631
|
<div class="error-text-container">
|
|
@@ -2625,60 +2640,60 @@ let m = class extends L {
|
|
|
2625
2640
|
`;
|
|
2626
2641
|
}
|
|
2627
2642
|
};
|
|
2628
|
-
|
|
2643
|
+
u.stepMap = {
|
|
2629
2644
|
welcome: 0,
|
|
2630
2645
|
company: 1,
|
|
2631
2646
|
administrators: 2,
|
|
2632
2647
|
"partner-access": 3,
|
|
2633
2648
|
complete: 4
|
|
2634
2649
|
};
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2650
|
+
u.styles = [
|
|
2651
|
+
N,
|
|
2652
|
+
S`:host{display:block;font-family:var(--vsn-customer-onboarding-wizard-font-family);}.overlay{position:fixed;inset:0;background:var(--ga-color-surface-page);display:flex;align-items:center;justify-content:center;z-index:1000;}.wizard-container{background:var(--ga-color-white);width:780px;min-height:520px;padding:var(--ga-size-spacing-08) var(--ga-size-spacing-10);border-radius:var(--ga-radius);border:1px solid var(--ga-color-cyan-80);}h1.wizard-title{font-size:var(--ga-text-2xl-size);line-height:var(--ga-text-2xl-line-height);font-weight:600;margin:0 0 var(--ga-size-spacing-07);color:var(--ga-color-text-headings);text-align:left;letter-spacing:-0.27px}.error-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ga-size-spacing-04);padding:var(--ga-size-spacing-05);margin-bottom:var(--ga-size-spacing-06);background-color:#FEF2F2;border:1px solid #FCA5A5;border-radius:var(--ga-radius);animation:slideDown 0.3s ease-out;}@keyframes slideDown{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}.error-content{display:flex;align-items:flex-start;gap:var(--ga-size-spacing-04);flex:1;}.error-icon{width:24px;height:24px;color:var(--ga-color-error);flex-shrink:0;}.error-icon svg{width:24px;height:24px;}.error-text-container{display:flex;flex-direction:column;gap:var(--ga-size-spacing-01);flex:1;}.error-title{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-cyan-90);font-weight:600;margin:0;}.error-message{font-size:var(--ga-text-sm-size);line-height:var(--ga-text-sm-line-height);color:var(--ga-color-cyan-90);font-weight:400;margin:0;}.error-dismiss{background:none;border:none;padding:0;cursor:pointer;color:var(--ga-color-red-60);width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;opacity:0.7;transition:opacity 0.2s;}.error-dismiss:hover{opacity:1;}.error-dismiss:focus-visible{outline:var(--ga-size-border-width-md) solid var(--ga-color-border-focus);outline-offset:var(--ga-size-border-width-md);border-radius:var(--ga-radius);}.error-dismiss svg{width:20px;height:20px;}.step-indicators{display:flex;flex-direction:column;margin-bottom:var(--ga-size-spacing-10);}.line-row{display:flex;gap:0;margin-bottom:var(--ga-size-spacing-04);}.line-segment{flex:1;border-bottom:2px solid var(--ga-color-neutral-30);margin:0;padding:0;}.line-segment.completed{border-bottom-color:var(--ga-color-success);}.line-segment.active{border-bottom-color:var(--ga-color-primary);border-bottom-width:4px;margin-bottom:-2px;}.steps-row{display:flex;gap:0;}.step-wrapper{flex:1;display:flex;align-items:center;}.step-indicator{display:flex;align-items:center;gap:var(--ga-size-spacing-03);}.step-icon{width:24px;height:24px;border-radius:var(--ga-radius-round);background:transparent;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--ga-color-primary);}.step-indicator.active .step-icon{color:var(--ga-color-primary);}.step-indicator.completed .step-icon{color:var(--ga-color-success);}.step-label{font-size:var(--ga-text-md-size);font-weight:500;color:var(--ga-color-primary);white-space:nowrap;letter-spacing:-0.1px}.step-indicator.active .step-label{color:var(--ga-color-text-headings);font-weight:500;}`
|
|
2638
2653
|
];
|
|
2639
|
-
|
|
2654
|
+
y([
|
|
2640
2655
|
g({ type: String })
|
|
2641
|
-
],
|
|
2642
|
-
|
|
2656
|
+
], u.prototype, "locale", 2);
|
|
2657
|
+
y([
|
|
2643
2658
|
g({ type: String })
|
|
2644
|
-
],
|
|
2645
|
-
|
|
2659
|
+
], u.prototype, "baseUrl", 2);
|
|
2660
|
+
y([
|
|
2646
2661
|
g({ type: String })
|
|
2647
|
-
],
|
|
2648
|
-
|
|
2662
|
+
], u.prototype, "adminUrl", 2);
|
|
2663
|
+
y([
|
|
2649
2664
|
g({ type: String })
|
|
2650
|
-
],
|
|
2651
|
-
|
|
2665
|
+
], u.prototype, "taskId", 2);
|
|
2666
|
+
y([
|
|
2652
2667
|
g({ type: String })
|
|
2653
|
-
],
|
|
2654
|
-
|
|
2668
|
+
], u.prototype, "customerId", 2);
|
|
2669
|
+
y([
|
|
2655
2670
|
g({ type: String })
|
|
2656
|
-
],
|
|
2657
|
-
|
|
2671
|
+
], u.prototype, "step", 2);
|
|
2672
|
+
y([
|
|
2658
2673
|
l()
|
|
2659
|
-
],
|
|
2660
|
-
|
|
2674
|
+
], u.prototype, "userName", 2);
|
|
2675
|
+
y([
|
|
2661
2676
|
l()
|
|
2662
|
-
],
|
|
2663
|
-
|
|
2677
|
+
], u.prototype, "currentUserProfile", 2);
|
|
2678
|
+
y([
|
|
2664
2679
|
l()
|
|
2665
|
-
],
|
|
2666
|
-
|
|
2680
|
+
], u.prototype, "currentStep", 2);
|
|
2681
|
+
y([
|
|
2667
2682
|
l()
|
|
2668
|
-
],
|
|
2669
|
-
|
|
2683
|
+
], u.prototype, "completedSteps", 2);
|
|
2684
|
+
y([
|
|
2670
2685
|
l()
|
|
2671
|
-
],
|
|
2672
|
-
|
|
2686
|
+
], u.prototype, "errorState", 2);
|
|
2687
|
+
y([
|
|
2673
2688
|
l()
|
|
2674
|
-
],
|
|
2675
|
-
|
|
2689
|
+
], u.prototype, "customerInfo", 2);
|
|
2690
|
+
y([
|
|
2676
2691
|
l()
|
|
2677
|
-
],
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
],
|
|
2692
|
+
], u.prototype, "visible", 2);
|
|
2693
|
+
u = y([
|
|
2694
|
+
A("vsn-customer-onboarding-wizard")
|
|
2695
|
+
], u);
|
|
2681
2696
|
export {
|
|
2682
|
-
|
|
2697
|
+
u as CustomerOnboardingWizard,
|
|
2683
2698
|
O as HttpService
|
|
2684
2699
|
};
|