@gusto/embedded-react-sdk 0.9.0 → 0.10.1
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/CHANGELOG.md +86 -2
- package/dist/components/Base/Base.d.ts +1 -1
- package/dist/components/Base/Base.js +39 -40
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.d.ts +21 -0
- package/dist/components/Common/OnboardingStatusBadge/index.js +17 -0
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -0
- package/dist/components/Common/TaxInputs/TaxInputs.js +42 -36
- package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +4 -12
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/List/index.d.ts +25 -0
- package/dist/components/Contractor/List/index.js +84 -0
- package/dist/components/Contractor/List/index.js.map +1 -0
- package/dist/components/Contractor/List/useContractorList.d.ts +20 -0
- package/dist/components/Contractor/List/useContractorList.js +31 -0
- package/dist/components/Contractor/List/useContractorList.js.map +1 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.d.ts +21 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +111 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -0
- package/dist/components/Contractor/NewHireReport/types.d.ts +4 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.d.ts +2 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +52 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.d.ts +31 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +116 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.d.ts +11 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +35 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/types.d.ts +8 -0
- package/dist/components/Contractor/index.d.ts +3 -0
- package/dist/components/Contractor/index.js +8 -2
- package/dist/components/Contractor/index.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +59 -56
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/useCompensation.d.ts +2 -0
- package/dist/components/Employee/Compensation/useCompensation.js +16 -14
- package/dist/components/Employee/Compensation/useCompensation.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionForm.js +11 -3
- package/dist/components/Employee/Deductions/DeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/Deductions.js +25 -25
- package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +56 -51
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +48 -43
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js +3 -4
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +88 -76
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +2 -2
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +29 -25
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +49 -20
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +27 -25
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +1 -1
- package/dist/components/Employee/Profile/Profile.js +135 -129
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Taxes/StateForm.d.ts +1 -1
- package/dist/components/Employee/Taxes/StateForm.js +27 -25
- package/dist/components/Employee/Taxes/StateForm.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.d.ts +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +77 -73
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/i18n/I18n.js +17 -17
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.ContractorList.json.js +25 -0
- package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -0
- package/dist/i18n/en/Contractor.NewHireReport.json.js +24 -0
- package/dist/i18n/en/Contractor.NewHireReport.json.js.map +1 -0
- package/dist/i18n/en/Contractor.PaymentMethod.json.js +35 -0
- package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -0
- package/dist/i18n/en/Employee.Compensation.json.js +22 -20
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +18 -17
- package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
- package/dist/i18n/en/common.json.d.ts +21 -9
- package/dist/i18n/en/common.json.js +35 -23
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/shared/constants.d.ts +18 -0
- package/dist/shared/constants.js +28 -15
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +64 -1
- package/package.json +4 -3
- package/dist/components/Employee/PaymentMethod/Constants.d.ts +0 -8
- package/dist/components/Employee/PaymentMethod/Constants.js +0 -6
- package/dist/components/Employee/PaymentMethod/Constants.js.map +0 -1
|
@@ -1,69 +1,98 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const AdminSelfOnboardingPersonalDetailsSchema: z.ZodObject<{
|
|
3
|
+
workAddress: z.ZodString;
|
|
4
|
+
startDate: z.ZodEffects<z.ZodDate, string | undefined, Date>;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
} & {
|
|
3
7
|
firstName: z.ZodString;
|
|
4
8
|
middleInitial: z.ZodOptional<z.ZodString>;
|
|
5
9
|
lastName: z.ZodString;
|
|
6
10
|
} & {
|
|
11
|
+
selfOnboarding: z.ZodBoolean;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
email: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
workAddress: string;
|
|
17
|
+
selfOnboarding: boolean;
|
|
18
|
+
middleInitial?: string | undefined;
|
|
19
|
+
startDate?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
email: string;
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
24
|
+
workAddress: string;
|
|
25
|
+
startDate: Date;
|
|
26
|
+
selfOnboarding: boolean;
|
|
27
|
+
middleInitial?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const AdminPersonalDetailsSchema: z.ZodDiscriminatedUnion<"enableSsn", [z.ZodObject<{
|
|
7
30
|
workAddress: z.ZodString;
|
|
8
31
|
startDate: z.ZodEffects<z.ZodDate, string | undefined, Date>;
|
|
9
32
|
email: z.ZodString;
|
|
33
|
+
firstName: z.ZodString;
|
|
34
|
+
middleInitial: z.ZodOptional<z.ZodString>;
|
|
35
|
+
lastName: z.ZodString;
|
|
36
|
+
selfOnboarding: z.ZodBoolean;
|
|
37
|
+
ssn: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
38
|
+
dateOfBirth: z.ZodEffects<z.ZodDate, string | undefined, Date>;
|
|
10
39
|
} & {
|
|
11
|
-
|
|
12
|
-
enableSsn: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
enableSsn: z.ZodLiteral<true>;
|
|
13
41
|
}, "strip", z.ZodTypeAny, {
|
|
14
42
|
email: string;
|
|
43
|
+
ssn: string;
|
|
15
44
|
firstName: string;
|
|
16
45
|
lastName: string;
|
|
17
46
|
workAddress: string;
|
|
18
|
-
|
|
47
|
+
enableSsn: true;
|
|
48
|
+
selfOnboarding: boolean;
|
|
19
49
|
middleInitial?: string | undefined;
|
|
20
50
|
startDate?: string | undefined;
|
|
21
|
-
|
|
51
|
+
dateOfBirth?: string | undefined;
|
|
22
52
|
}, {
|
|
23
53
|
email: string;
|
|
54
|
+
ssn: string;
|
|
24
55
|
firstName: string;
|
|
25
56
|
lastName: string;
|
|
26
57
|
workAddress: string;
|
|
27
58
|
startDate: Date;
|
|
28
|
-
|
|
59
|
+
enableSsn: true;
|
|
60
|
+
dateOfBirth: Date;
|
|
61
|
+
selfOnboarding: boolean;
|
|
29
62
|
middleInitial?: string | undefined;
|
|
30
|
-
enableSsn?: boolean | undefined;
|
|
31
63
|
}>, z.ZodObject<{
|
|
32
|
-
firstName: z.ZodString;
|
|
33
|
-
middleInitial: z.ZodOptional<z.ZodString>;
|
|
34
|
-
lastName: z.ZodString;
|
|
35
|
-
} & {
|
|
36
64
|
workAddress: z.ZodString;
|
|
37
65
|
startDate: z.ZodEffects<z.ZodDate, string | undefined, Date>;
|
|
38
66
|
email: z.ZodString;
|
|
39
67
|
} & {
|
|
40
|
-
|
|
41
|
-
|
|
68
|
+
firstName: z.ZodString;
|
|
69
|
+
middleInitial: z.ZodOptional<z.ZodString>;
|
|
70
|
+
lastName: z.ZodString;
|
|
71
|
+
} & {
|
|
72
|
+
selfOnboarding: z.ZodBoolean;
|
|
42
73
|
} & {
|
|
43
74
|
dateOfBirth: z.ZodEffects<z.ZodDate, string | undefined, Date>;
|
|
44
75
|
} & {
|
|
45
|
-
|
|
76
|
+
enableSsn: z.ZodLiteral<false>;
|
|
46
77
|
}, "strip", z.ZodTypeAny, {
|
|
47
78
|
email: string;
|
|
48
|
-
ssn: string;
|
|
49
79
|
firstName: string;
|
|
50
80
|
lastName: string;
|
|
51
81
|
workAddress: string;
|
|
52
|
-
enableSsn:
|
|
53
|
-
selfOnboarding:
|
|
82
|
+
enableSsn: false;
|
|
83
|
+
selfOnboarding: boolean;
|
|
54
84
|
middleInitial?: string | undefined;
|
|
55
85
|
startDate?: string | undefined;
|
|
56
86
|
dateOfBirth?: string | undefined;
|
|
57
87
|
}, {
|
|
58
88
|
email: string;
|
|
59
|
-
ssn: string;
|
|
60
89
|
firstName: string;
|
|
61
90
|
lastName: string;
|
|
62
91
|
workAddress: string;
|
|
63
92
|
startDate: Date;
|
|
64
|
-
enableSsn:
|
|
93
|
+
enableSsn: false;
|
|
65
94
|
dateOfBirth: Date;
|
|
66
|
-
selfOnboarding:
|
|
95
|
+
selfOnboarding: boolean;
|
|
67
96
|
middleInitial?: string | undefined;
|
|
68
97
|
}>]>;
|
|
69
98
|
export declare const AdminPersonalDetails: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { useFormContext as
|
|
2
|
+
import { useEffect as g } from "react";
|
|
3
|
+
import { useFormContext as h } from "react-hook-form";
|
|
4
4
|
import { useTranslation as O } from "react-i18next";
|
|
5
|
-
import { z as
|
|
6
|
-
import {
|
|
5
|
+
import { z as t } from "zod";
|
|
6
|
+
import { AdminInputsSchema as D, SocialSecurityNumberSchema as I, DateOfBirthSchema as l, NameInputsSchema as A, NameInputs as N, AdminInputs as E, SocialSecurityNumberInput as x, DateOfBirthInput as y } from "./PersonalDetailsInputs.js";
|
|
7
7
|
import { useProfile as P } from "./useProfile.js";
|
|
8
|
-
import { EmployeeOnboardingStatus as
|
|
9
|
-
import { CheckboxField as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import { EmployeeOnboardingStatus as m } from "../../../shared/constants.js";
|
|
9
|
+
import { CheckboxField as F } from "../../Common/Fields/CheckboxField/CheckboxField.js";
|
|
10
|
+
const d = D.merge(
|
|
11
|
+
A
|
|
12
|
+
).extend({
|
|
13
|
+
selfOnboarding: t.boolean()
|
|
14
|
+
}), M = t.discriminatedUnion("enableSsn", [
|
|
15
|
+
d.merge(I).merge(l).extend({
|
|
16
|
+
enableSsn: t.literal(!0)
|
|
15
17
|
}),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
selfOnboarding: o.literal(!1)
|
|
18
|
+
d.merge(l).extend({
|
|
19
|
+
enableSsn: t.literal(!1)
|
|
19
20
|
})
|
|
20
21
|
]), V = () => {
|
|
21
|
-
const { companyLocations:
|
|
22
|
-
return
|
|
23
|
-
r ?
|
|
24
|
-
}, [r, e?.hasSsn, i,
|
|
25
|
-
/* @__PURE__ */ n(
|
|
26
|
-
/* @__PURE__ */ n(
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const { companyLocations: c, employee: e, isAdmin: f, isSelfOnboardingEnabled: S } = P(), { t: b } = O("Employee.Profile"), { watch: u, setValue: o, getFieldState: p } = h(), r = u("selfOnboarding"), { isDirty: i } = p("ssn");
|
|
23
|
+
return g(() => {
|
|
24
|
+
r ? o("enableSsn", !1) : o("enableSsn", i ? !0 : !e?.hasSsn);
|
|
25
|
+
}, [r, e?.hasSsn, i, o]), f ? /* @__PURE__ */ a(s, { children: [
|
|
26
|
+
/* @__PURE__ */ n(N, {}),
|
|
27
|
+
/* @__PURE__ */ n(E, { companyLocations: c }),
|
|
28
|
+
S && /* @__PURE__ */ n(
|
|
29
|
+
F,
|
|
29
30
|
{
|
|
30
31
|
name: "selfOnboarding",
|
|
31
32
|
label: b("selfOnboardingLabel"),
|
|
32
|
-
isDisabled: e?.onboarded || e?.onboardingStatus ===
|
|
33
|
+
isDisabled: e?.onboarded || e?.onboardingStatus === m.ONBOARDING_COMPLETED || e?.onboardingStatus === m.SELF_ONBOARDING_AWAITING_ADMIN_REVIEW
|
|
33
34
|
}
|
|
34
35
|
),
|
|
35
36
|
!r && /* @__PURE__ */ a(s, { children: [
|
|
36
|
-
/* @__PURE__ */ n(
|
|
37
|
+
/* @__PURE__ */ n(x, { employee: e }),
|
|
37
38
|
/* @__PURE__ */ n(y, {})
|
|
38
39
|
] })
|
|
39
40
|
] }) : null;
|
|
40
41
|
};
|
|
41
42
|
export {
|
|
42
43
|
V as AdminPersonalDetails,
|
|
43
|
-
M as AdminPersonalDetailsSchema
|
|
44
|
+
M as AdminPersonalDetailsSchema,
|
|
45
|
+
d as AdminSelfOnboardingPersonalDetailsSchema
|
|
44
46
|
};
|
|
45
47
|
//# sourceMappingURL=AdminPersonalDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminPersonalDetails.js","sources":["../../../../src/components/Employee/Profile/AdminPersonalDetails.tsx"],"sourcesContent":["import { useEffect } from 'react'\nimport { useFormContext } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport {\n AdminInputs,\n AdminInputsSchema,\n NameInputs,\n NameInputsSchema,\n SocialSecurityNumberInput,\n SocialSecurityNumberSchema,\n DateOfBirthInput,\n DateOfBirthSchema,\n type PersonalDetailsInputs,\n} from './PersonalDetailsInputs'\nimport { useProfile } from './useProfile'\nimport { EmployeeOnboardingStatus } from '@/shared/constants'\nimport { CheckboxField } from '@/components/Common'\n\
|
|
1
|
+
{"version":3,"file":"AdminPersonalDetails.js","sources":["../../../../src/components/Employee/Profile/AdminPersonalDetails.tsx"],"sourcesContent":["import { useEffect } from 'react'\nimport { useFormContext } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { z } from 'zod'\nimport {\n AdminInputs,\n AdminInputsSchema,\n NameInputs,\n NameInputsSchema,\n SocialSecurityNumberInput,\n SocialSecurityNumberSchema,\n DateOfBirthInput,\n DateOfBirthSchema,\n type PersonalDetailsInputs,\n} from './PersonalDetailsInputs'\nimport { useProfile } from './useProfile'\nimport { EmployeeOnboardingStatus } from '@/shared/constants'\nimport { CheckboxField } from '@/components/Common'\n\nexport const AdminSelfOnboardingPersonalDetailsSchema = AdminInputsSchema.merge(\n NameInputsSchema,\n).extend({\n selfOnboarding: z.boolean(),\n})\n\nexport const AdminPersonalDetailsSchema = z.discriminatedUnion('enableSsn', [\n AdminSelfOnboardingPersonalDetailsSchema.merge(SocialSecurityNumberSchema)\n .merge(DateOfBirthSchema)\n .extend({\n enableSsn: z.literal(true),\n }),\n AdminSelfOnboardingPersonalDetailsSchema.merge(DateOfBirthSchema).extend({\n enableSsn: z.literal(false),\n }),\n])\n\nexport const AdminPersonalDetails = () => {\n const { companyLocations, employee, isAdmin, isSelfOnboardingEnabled } = useProfile()\n const { t } = useTranslation('Employee.Profile')\n const { watch, setValue, getFieldState } = useFormContext<PersonalDetailsInputs>()\n\n const isSelfOnboardingChecked = watch('selfOnboarding')\n const { isDirty: isSsnDirty } = getFieldState('ssn')\n\n useEffect(() => {\n if (isSelfOnboardingChecked) {\n setValue('enableSsn', false)\n } else {\n setValue('enableSsn', isSsnDirty ? true : !employee?.hasSsn)\n }\n }, [isSelfOnboardingChecked, employee?.hasSsn, isSsnDirty, setValue])\n\n if (!isAdmin) {\n return null\n }\n\n return (\n <>\n <NameInputs />\n <AdminInputs companyLocations={companyLocations} />\n {isSelfOnboardingEnabled && (\n <CheckboxField\n name=\"selfOnboarding\"\n label={t('selfOnboardingLabel')}\n isDisabled={\n employee?.onboarded ||\n employee?.onboardingStatus === EmployeeOnboardingStatus.ONBOARDING_COMPLETED ||\n employee?.onboardingStatus ===\n EmployeeOnboardingStatus.SELF_ONBOARDING_AWAITING_ADMIN_REVIEW\n }\n />\n )}\n\n {!isSelfOnboardingChecked && (\n <>\n <SocialSecurityNumberInput employee={employee} />\n <DateOfBirthInput />\n </>\n )}\n </>\n )\n}\n"],"names":["AdminSelfOnboardingPersonalDetailsSchema","AdminInputsSchema","NameInputsSchema","z","AdminPersonalDetailsSchema","SocialSecurityNumberSchema","DateOfBirthSchema","AdminPersonalDetails","companyLocations","employee","isAdmin","isSelfOnboardingEnabled","useProfile","t","useTranslation","watch","setValue","getFieldState","useFormContext","isSelfOnboardingChecked","isSsnDirty","useEffect","jsxs","Fragment","jsx","NameInputs","AdminInputs","CheckboxField","EmployeeOnboardingStatus","SocialSecurityNumberInput","DateOfBirthInput"],"mappings":";;;;;;;;;AAmBO,MAAMA,IAA2CC,EAAkB;AAAA,EACxEC;AACF,EAAE,OAAO;AAAA,EACP,gBAAgBC,EAAE,QAAQ;AAC5B,CAAC,GAEYC,IAA6BD,EAAE,mBAAmB,aAAa;AAAA,EAC1EH,EAAyC,MAAMK,CAA0B,EACtE,MAAMC,CAAiB,EACvB,OAAO;AAAA,IACN,WAAWH,EAAE,QAAQ,EAAI;AAAA,EAAA,CAC1B;AAAA,EACHH,EAAyC,MAAMM,CAAiB,EAAE,OAAO;AAAA,IACvE,WAAWH,EAAE,QAAQ,EAAK;AAAA,EAC3B,CAAA;AACH,CAAC,GAEYI,IAAuB,MAAM;AACxC,QAAM,EAAE,kBAAAC,GAAkB,UAAAC,GAAU,SAAAC,GAAS,yBAAAC,EAAA,IAA4BC,EAAW,GAC9E,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,OAAAC,GAAO,UAAAC,GAAU,eAAAC,EAAA,IAAkBC,EAAsC,GAE3EC,IAA0BJ,EAAM,gBAAgB,GAChD,EAAE,SAASK,MAAeH,EAAc,KAAK;AAUnD,SARAI,EAAU,MAAM;AACd,IAAIF,IACFH,EAAS,aAAa,EAAK,IAE3BA,EAAS,aAAaI,IAAa,KAAO,CAACX,GAAU,MAAM;AAAA,EAC7D,GACC,CAACU,GAAyBV,GAAU,QAAQW,GAAYJ,CAAQ,CAAC,GAE/DN,IAMD,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAW,EAAA;AAAA,IACZ,gBAAAD,EAACE,KAAY,kBAAAlB,GAAoC;AAAA,IAChDG,KACC,gBAAAa;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOd,EAAE,qBAAqB;AAAA,QAC9B,YACEJ,GAAU,aACVA,GAAU,qBAAqBmB,EAAyB,wBACxDnB,GAAU,qBACRmB,EAAyB;AAAA,MAAA;AAAA,IAE/B;AAAA,IAGD,CAACT,KAEE,gBAAAG,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACK,KAA0B,UAAApB,GAAoB;AAAA,wBAC9CqB,GAAiB,CAAA,CAAA;AAAA,IAAA,EACpB,CAAA;AAAA,EAAA,GAEJ,IA1BO;AA4BX;"}
|
|
@@ -5,7 +5,7 @@ import { useTranslation as i } from "react-i18next";
|
|
|
5
5
|
import { Grid as b } from "../../Common/Grid/Grid.js";
|
|
6
6
|
import { removeNonDigits as S, addressInline as g } from "../../../helpers/formattedStrings.js";
|
|
7
7
|
import { usePlaceholderSSN as h, normalizeSSN as N } from "../../../helpers/ssn.js";
|
|
8
|
-
import {
|
|
8
|
+
import { SSN_REGEX as D, nameValidation as m } from "../../../helpers/validations.js";
|
|
9
9
|
import { TextInputField as s } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
10
10
|
import { SelectField as I } from "../../Common/Fields/SelectField/SelectField.js";
|
|
11
11
|
import { DatePickerField as p } from "../../Common/Fields/DatePickerField/DatePickerField.js";
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { zodResolver as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useForm as
|
|
5
|
-
import { useLocationsGetSuspense as
|
|
6
|
-
import { useEmployeesCreateMutation as
|
|
7
|
-
import { useEmployeesGetSuspense as
|
|
8
|
-
import { useEmployeeAddressesGetSuspense as
|
|
9
|
-
import { useEmployeeAddressesCreateMutation as
|
|
10
|
-
import { useEmployeeAddressesUpdateMutation as
|
|
11
|
-
import { useEmployeeAddressesUpdateWorkAddressMutation as
|
|
12
|
-
import { useEmployeesUpdateMutation as
|
|
13
|
-
import { useEmployeeAddressesGetWorkAddressesSuspense as
|
|
14
|
-
import { useEmployeeAddressesCreateWorkAddressMutation as
|
|
15
|
-
import { RFCDate as
|
|
16
|
-
import { useEmployeesUpdateOnboardingStatusMutation as
|
|
17
|
-
import { invalidateEmployeesList as
|
|
18
|
-
import { useQueryClient as
|
|
19
|
-
import { AdminPersonalDetailsSchema as
|
|
20
|
-
import { SelfPersonalDetailsSchema as
|
|
21
|
-
import { Head as
|
|
22
|
-
import { Actions as
|
|
23
|
-
import { HomeAddressSchema as
|
|
24
|
-
import { WorkAddress as
|
|
25
|
-
import { ProfileProvider as
|
|
26
|
-
import { getEmployeeAddressForProfile as
|
|
27
|
-
import { Form as
|
|
28
|
-
import { BaseComponent as
|
|
29
|
-
import { useBase as
|
|
30
|
-
import { useI18n as
|
|
31
|
-
import { EmployeeOnboardingStatus as l, EmployeeSelfOnboardingStatuses as
|
|
32
|
-
import { useFlow as
|
|
33
|
-
import { ensureRequired as
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */ t(
|
|
1
|
+
import { jsx as t, jsxs as Ee, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { zodResolver as De } from "@hookform/resolvers/zod";
|
|
3
|
+
import { useState as Se, useRef as Oe, useEffect as Pe } from "react";
|
|
4
|
+
import { useForm as ge, useWatch as be, FormProvider as Ne } from "react-hook-form";
|
|
5
|
+
import { useLocationsGetSuspense as Ie } from "@gusto/embedded-api/react-query/locationsGet";
|
|
6
|
+
import { useEmployeesCreateMutation as _e } from "@gusto/embedded-api/react-query/employeesCreate";
|
|
7
|
+
import { useEmployeesGetSuspense as we } from "@gusto/embedded-api/react-query/employeesGet";
|
|
8
|
+
import { useEmployeeAddressesGetSuspense as ke } from "@gusto/embedded-api/react-query/employeeAddressesGet";
|
|
9
|
+
import { useEmployeeAddressesCreateMutation as Me } from "@gusto/embedded-api/react-query/employeeAddressesCreate";
|
|
10
|
+
import { useEmployeeAddressesUpdateMutation as Be } from "@gusto/embedded-api/react-query/employeeAddressesUpdate";
|
|
11
|
+
import { useEmployeeAddressesUpdateWorkAddressMutation as Re } from "@gusto/embedded-api/react-query/employeeAddressesUpdateWorkAddress";
|
|
12
|
+
import { useEmployeesUpdateMutation as ve } from "@gusto/embedded-api/react-query/employeesUpdate";
|
|
13
|
+
import { useEmployeeAddressesGetWorkAddressesSuspense as Le, invalidateAllEmployeeAddressesGetWorkAddresses as Ce } from "@gusto/embedded-api/react-query/employeeAddressesGetWorkAddresses";
|
|
14
|
+
import { useEmployeeAddressesCreateWorkAddressMutation as We } from "@gusto/embedded-api/react-query/employeeAddressesCreateWorkAddress";
|
|
15
|
+
import { RFCDate as v } from "@gusto/embedded-api/types/rfcdate";
|
|
16
|
+
import { useEmployeesUpdateOnboardingStatusMutation as Ue } from "@gusto/embedded-api/react-query/employeesUpdateOnboardingStatus";
|
|
17
|
+
import { invalidateEmployeesList as qe } from "@gusto/embedded-api/react-query/employeesList";
|
|
18
|
+
import { useQueryClient as Te } from "@tanstack/react-query";
|
|
19
|
+
import { AdminPersonalDetailsSchema as L, AdminSelfOnboardingPersonalDetailsSchema as Ge, AdminPersonalDetails as W } from "./AdminPersonalDetails.js";
|
|
20
|
+
import { SelfPersonalDetailsSchema as He, SelfPersonalDetails as U } from "./SelfPersonalDetails.js";
|
|
21
|
+
import { Head as q } from "./Head.js";
|
|
22
|
+
import { Actions as T } from "./Actions.js";
|
|
23
|
+
import { HomeAddressSchema as Fe, HomeAddress as G } from "./HomeAddress.js";
|
|
24
|
+
import { WorkAddress as H } from "./WorkAddress.js";
|
|
25
|
+
import { ProfileProvider as Ve } from "./useProfile.js";
|
|
26
|
+
import { getEmployeeAddressForProfile as Ye } from "./getEmployeeAddressForProfile.js";
|
|
27
|
+
import { Form as xe } from "../../Common/Form/Form.js";
|
|
28
|
+
import { BaseComponent as ze } from "../../Base/Base.js";
|
|
29
|
+
import { useBase as je } from "../../Base/useBase.js";
|
|
30
|
+
import { useI18n as C, useComponentDictionary as Ke } from "../../../i18n/I18n.js";
|
|
31
|
+
import { EmployeeOnboardingStatus as l, EmployeeSelfOnboardingStatuses as Qe, componentEvents as d } from "../../../shared/constants.js";
|
|
32
|
+
import { useFlow as Je } from "../../Flow/useFlow.js";
|
|
33
|
+
import { ensureRequired as Xe } from "../../../helpers/ensureRequired.js";
|
|
34
|
+
function a(r) {
|
|
35
|
+
return /* @__PURE__ */ t(ze, { ...r, children: r.employeeId ? /* @__PURE__ */ t(Ze, { ...r, employeeId: r.employeeId, children: r.children }) : /* @__PURE__ */ t(F, { ...r, children: r.children }) });
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ze({ employeeId: r, ...m }) {
|
|
38
38
|
const {
|
|
39
39
|
data: { employee: u }
|
|
40
|
-
} =
|
|
40
|
+
} = we({ employeeId: r }), {
|
|
41
41
|
data: { employeeAddressList: c }
|
|
42
|
-
} =
|
|
42
|
+
} = ke({ employeeId: r }), {
|
|
43
43
|
data: { employeeWorkAddressesList: i }
|
|
44
|
-
} =
|
|
44
|
+
} = Le({ employeeId: r });
|
|
45
45
|
return /* @__PURE__ */ t(
|
|
46
|
-
|
|
46
|
+
F,
|
|
47
47
|
{
|
|
48
|
-
...
|
|
48
|
+
...m,
|
|
49
49
|
employee: u,
|
|
50
50
|
homeAddresses: c,
|
|
51
51
|
workAddresses: i
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const F = ({
|
|
56
56
|
isAdmin: r = !1,
|
|
57
|
-
isSelfOnboardingEnabled:
|
|
57
|
+
isSelfOnboardingEnabled: m = !0,
|
|
58
58
|
dictionary: u,
|
|
59
59
|
...c
|
|
60
60
|
}) => {
|
|
61
|
-
|
|
61
|
+
C("Employee.Profile"), C("Employee.HomeAddress"), Ke("Employee.Profile", u);
|
|
62
62
|
const {
|
|
63
63
|
companyId: i,
|
|
64
|
-
employee:
|
|
65
|
-
homeAddresses:
|
|
66
|
-
workAddresses:
|
|
67
|
-
children:
|
|
68
|
-
className:
|
|
64
|
+
employee: D,
|
|
65
|
+
homeAddresses: V,
|
|
66
|
+
workAddresses: g,
|
|
67
|
+
children: b,
|
|
68
|
+
className: Y = "",
|
|
69
69
|
defaultValues: s
|
|
70
|
-
} = c, { onEvent: n, baseSubmitHandler:
|
|
71
|
-
mutateAsync:
|
|
72
|
-
isPending:
|
|
73
|
-
} =
|
|
74
|
-
onSettled: () =>
|
|
75
|
-
}),
|
|
76
|
-
employee:
|
|
77
|
-
homeAddress:
|
|
78
|
-
workAddress:
|
|
79
|
-
}),
|
|
70
|
+
} = c, { onEvent: n, baseSubmitHandler: x } = je(), N = Te(), [z, I] = Se(L), { data: j } = Ie({ companyId: i }), K = j.locationList, { mutateAsync: Q, isPending: J } = _e(), { mutateAsync: X, isPending: Z } = ve(), { mutateAsync: $, isPending: ee } = We(), { mutateAsync: re, isPending: te } = Re(), { mutateAsync: oe, isPending: se } = Me(), { mutateAsync: ne, isPending: de } = Be(), {
|
|
71
|
+
mutateAsync: ie,
|
|
72
|
+
isPending: ae
|
|
73
|
+
} = Ue({
|
|
74
|
+
onSettled: () => qe(N, [i])
|
|
75
|
+
}), _ = { employee: D, workAddresses: g }, me = Ye(V), le = _.workAddresses?.find((P) => P.active), e = Oe({
|
|
76
|
+
employee: _.employee,
|
|
77
|
+
homeAddress: me,
|
|
78
|
+
workAddress: le
|
|
79
|
+
}), S = {
|
|
80
80
|
firstName: e.current.employee?.firstName ?? s?.employee?.firstName ?? "",
|
|
81
81
|
middleInitial: e.current.employee?.middleInitial ?? s?.employee?.middleInitial ?? "",
|
|
82
82
|
lastName: e.current.employee?.lastName ?? s?.employee?.lastName ?? "",
|
|
@@ -91,33 +91,37 @@ const T = ({
|
|
|
91
91
|
zip: e.current.homeAddress?.zip ?? s?.homeAddress?.zip ?? "",
|
|
92
92
|
state: e.current.homeAddress?.state ?? s?.homeAddress?.state ?? "",
|
|
93
93
|
courtesyWithholding: e.current.homeAddress?.courtesyWithholding ?? !1
|
|
94
|
-
},
|
|
95
|
-
...
|
|
96
|
-
selfOnboarding:
|
|
94
|
+
}, ue = e.current.employee?.onboarded || e.current.employee?.onboardingStatus === l.ONBOARDING_COMPLETED || e.current.employee?.onboardingStatus !== void 0 && e.current.employee.onboardingStatus !== l.ADMIN_ONBOARDING_INCOMPLETE ? { ...S, enableSsn: !1, selfOnboarding: !0 } : {
|
|
95
|
+
...S,
|
|
96
|
+
selfOnboarding: m && e.current.employee?.onboardingStatus ? (
|
|
97
97
|
// @ts-expect-error: onboarding_status during runtime can be one of self onboarding statuses
|
|
98
|
-
|
|
98
|
+
Qe.has(e.current.employee.onboarding_status)
|
|
99
99
|
) : !1,
|
|
100
100
|
enableSsn: !e.current.employee?.hasSsn,
|
|
101
101
|
ssn: ""
|
|
102
|
-
},
|
|
103
|
-
...
|
|
102
|
+
}, ce = {
|
|
103
|
+
...S,
|
|
104
104
|
enableSsn: !e.current.employee?.hasSsn,
|
|
105
105
|
ssn: ""
|
|
106
|
-
}, O =
|
|
107
|
-
resolver:
|
|
108
|
-
(r ?
|
|
106
|
+
}, O = ge({
|
|
107
|
+
resolver: De(
|
|
108
|
+
(r ? z : He).and(Fe)
|
|
109
109
|
),
|
|
110
|
-
defaultValues: r ?
|
|
111
|
-
}), { handleSubmit:
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
defaultValues: r ? ue : ce
|
|
111
|
+
}), { handleSubmit: pe } = O, A = be({ control: O.control, name: "selfOnboarding" });
|
|
112
|
+
Pe(() => {
|
|
113
|
+
r && I(A ? Ge : L);
|
|
114
|
+
}, [A, r]);
|
|
115
|
+
const ye = async (P) => {
|
|
116
|
+
await x(P, async (f) => {
|
|
117
|
+
const { workAddress: w, startDate: fe, selfOnboarding: E, ...h } = f;
|
|
114
118
|
if (e.current.employee) {
|
|
115
|
-
if (
|
|
116
|
-
const { employeeOnboardingStatus: p } = await
|
|
119
|
+
if (E && e.current.employee.onboardingStatus === l.ADMIN_ONBOARDING_INCOMPLETE || !E && e.current.employee.onboardingStatus === l.SELF_ONBOARDING_PENDING_INVITE) {
|
|
120
|
+
const { employeeOnboardingStatus: p } = await ie({
|
|
117
121
|
request: {
|
|
118
122
|
employeeId: e.current.employee.uuid,
|
|
119
123
|
requestBody: {
|
|
120
|
-
onboardingStatus:
|
|
124
|
+
onboardingStatus: E ? l.SELF_ONBOARDING_PENDING_INVITE : l.ADMIN_ONBOARDING_INCOMPLETE
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
});
|
|
@@ -126,21 +130,21 @@ const T = ({
|
|
|
126
130
|
onboardingStatus: p.onboardingStatus
|
|
127
131
|
}, n(d.EMPLOYEE_ONBOARDING_STATUS_UPDATED, p);
|
|
128
132
|
}
|
|
129
|
-
const { employee: o } = await
|
|
133
|
+
const { employee: o } = await X({
|
|
130
134
|
request: {
|
|
131
135
|
employeeId: e.current.employee.uuid,
|
|
132
|
-
requestBody: { ...
|
|
136
|
+
requestBody: { ...h, version: e.current.employee.version }
|
|
133
137
|
}
|
|
134
138
|
});
|
|
135
139
|
e.current = { ...e.current, employee: o }, n(d.EMPLOYEE_UPDATED, o);
|
|
136
140
|
} else {
|
|
137
|
-
const { employee: o } = await
|
|
141
|
+
const { employee: o } = await Q({
|
|
138
142
|
request: {
|
|
139
143
|
companyId: i,
|
|
140
144
|
requestBody: {
|
|
141
|
-
...
|
|
142
|
-
selfOnboarding:
|
|
143
|
-
dateOfBirth:
|
|
145
|
+
...h,
|
|
146
|
+
selfOnboarding: E,
|
|
147
|
+
dateOfBirth: h.dateOfBirth ? new v(h.dateOfBirth) : void 0
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
150
|
});
|
|
@@ -148,119 +152,121 @@ const T = ({
|
|
|
148
152
|
}
|
|
149
153
|
if (typeof e.current.employee?.uuid != "string")
|
|
150
154
|
throw new Error("Employee id is not available");
|
|
151
|
-
if ((!
|
|
152
|
-
const { street1: o, street2: p, city:
|
|
155
|
+
if ((!A || !r) && !f.selfOnboarding) {
|
|
156
|
+
const { street1: o, street2: p, city: k, state: M, zip: B, courtesyWithholding: R } = f;
|
|
153
157
|
if (e.current.homeAddress) {
|
|
154
|
-
const { employeeAddress: y } = await
|
|
158
|
+
const { employeeAddress: y } = await ne({
|
|
155
159
|
request: {
|
|
156
160
|
homeAddressUuid: e.current.homeAddress.uuid,
|
|
157
161
|
requestBody: {
|
|
158
162
|
version: e.current.homeAddress.version,
|
|
159
163
|
street1: o,
|
|
160
164
|
street2: p,
|
|
161
|
-
city:
|
|
162
|
-
state:
|
|
163
|
-
zip:
|
|
164
|
-
courtesyWithholding:
|
|
165
|
+
city: k,
|
|
166
|
+
state: M,
|
|
167
|
+
zip: B,
|
|
168
|
+
courtesyWithholding: R
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
171
|
});
|
|
168
172
|
e.current = { ...e.current, homeAddress: y }, n(d.EMPLOYEE_HOME_ADDRESS_UPDATED, y);
|
|
169
173
|
} else {
|
|
170
|
-
const { employeeAddress: y } = await
|
|
174
|
+
const { employeeAddress: y } = await oe({
|
|
171
175
|
request: {
|
|
172
176
|
employeeId: e.current.employee.uuid,
|
|
173
177
|
requestBody: {
|
|
174
178
|
street1: o,
|
|
175
179
|
street2: p,
|
|
176
|
-
city:
|
|
177
|
-
state:
|
|
178
|
-
zip:
|
|
179
|
-
courtesyWithholding:
|
|
180
|
+
city: k,
|
|
181
|
+
state: M,
|
|
182
|
+
zip: B,
|
|
183
|
+
courtesyWithholding: R
|
|
180
184
|
}
|
|
181
185
|
}
|
|
182
186
|
});
|
|
183
187
|
e.current = { ...e.current, homeAddress: y }, n(d.EMPLOYEE_HOME_ADDRESS_CREATED, y);
|
|
184
188
|
}
|
|
185
189
|
}
|
|
186
|
-
if (r)
|
|
190
|
+
if (r) {
|
|
187
191
|
if (e.current.workAddress) {
|
|
188
|
-
const { employeeWorkAddress: o } = await
|
|
192
|
+
const { employeeWorkAddress: o } = await re({
|
|
189
193
|
request: {
|
|
190
194
|
workAddressUuid: e.current.workAddress.uuid,
|
|
191
195
|
requestBody: {
|
|
192
196
|
version: e.current.workAddress.version,
|
|
193
|
-
locationUuid:
|
|
197
|
+
locationUuid: w
|
|
194
198
|
}
|
|
195
199
|
}
|
|
196
200
|
});
|
|
197
201
|
e.current = { ...e.current, workAddress: o }, n(d.EMPLOYEE_WORK_ADDRESS_UPDATED, o);
|
|
198
202
|
} else {
|
|
199
|
-
const { employeeWorkAddress: o } = await
|
|
203
|
+
const { employeeWorkAddress: o } = await $({
|
|
200
204
|
request: {
|
|
201
205
|
employeeId: e.current.employee?.uuid,
|
|
202
206
|
requestBody: {
|
|
203
|
-
locationUuid:
|
|
204
|
-
effectiveDate: new
|
|
207
|
+
locationUuid: w,
|
|
208
|
+
effectiveDate: new v(f.startDate || /* @__PURE__ */ new Date())
|
|
205
209
|
}
|
|
206
210
|
}
|
|
207
211
|
});
|
|
208
212
|
e.current = { ...e.current, workAddress: o }, n(d.EMPLOYEE_WORK_ADDRESS_CREATED, o);
|
|
209
213
|
}
|
|
214
|
+
await Ce(N);
|
|
215
|
+
}
|
|
210
216
|
n(d.EMPLOYEE_PROFILE_DONE, {
|
|
211
217
|
...e.current.employee,
|
|
212
|
-
startDate:
|
|
218
|
+
startDate: fe
|
|
213
219
|
});
|
|
214
220
|
});
|
|
215
|
-
},
|
|
221
|
+
}, Ae = () => {
|
|
216
222
|
n(d.CANCEL);
|
|
217
223
|
};
|
|
218
|
-
return /* @__PURE__ */ t("section", { className:
|
|
219
|
-
|
|
224
|
+
return /* @__PURE__ */ t("section", { className: Y, children: /* @__PURE__ */ t(
|
|
225
|
+
Ve,
|
|
220
226
|
{
|
|
221
227
|
value: {
|
|
222
|
-
companyLocations:
|
|
223
|
-
workAddresses:
|
|
228
|
+
companyLocations: K,
|
|
229
|
+
workAddresses: g,
|
|
224
230
|
employee: e.current.employee ?? void 0,
|
|
225
|
-
isSelfOnboardingIntended:
|
|
226
|
-
handleCancel:
|
|
231
|
+
isSelfOnboardingIntended: A,
|
|
232
|
+
handleCancel: Ae,
|
|
227
233
|
isAdmin: r,
|
|
228
|
-
isSelfOnboardingEnabled:
|
|
229
|
-
isPending:
|
|
234
|
+
isSelfOnboardingEnabled: m,
|
|
235
|
+
isPending: Z || te || se || de || J || ee || ae
|
|
230
236
|
},
|
|
231
|
-
children: /* @__PURE__ */ t(
|
|
232
|
-
/* @__PURE__ */ t(C, {}),
|
|
233
|
-
/* @__PURE__ */ t(L, {}),
|
|
234
|
-
/* @__PURE__ */ t(v, {}),
|
|
235
|
-
/* @__PURE__ */ t(U, {}),
|
|
237
|
+
children: /* @__PURE__ */ t(Ne, { ...O, children: /* @__PURE__ */ t(xe, { onSubmit: pe(ye), children: b || /* @__PURE__ */ Ee(he, { children: [
|
|
236
238
|
/* @__PURE__ */ t(q, {}),
|
|
237
|
-
/* @__PURE__ */ t(W, {})
|
|
239
|
+
/* @__PURE__ */ t(W, {}),
|
|
240
|
+
/* @__PURE__ */ t(U, {}),
|
|
241
|
+
/* @__PURE__ */ t(G, {}),
|
|
242
|
+
/* @__PURE__ */ t(H, {}),
|
|
243
|
+
/* @__PURE__ */ t(T, {})
|
|
238
244
|
] }) }) })
|
|
239
245
|
}
|
|
240
246
|
) });
|
|
241
247
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
const
|
|
249
|
-
const { companyId: r, employeeId:
|
|
248
|
+
a.Head = q;
|
|
249
|
+
a.Actions = T;
|
|
250
|
+
a.AdminPersonalDetails = W;
|
|
251
|
+
a.SelfPersonalDetails = U;
|
|
252
|
+
a.HomeAddress = G;
|
|
253
|
+
a.WorkAddress = H;
|
|
254
|
+
const Rr = () => {
|
|
255
|
+
const { companyId: r, employeeId: m, onEvent: u, isAdmin: c, defaultValues: i, isSelfOnboardingEnabled: D } = Je();
|
|
250
256
|
return /* @__PURE__ */ t(
|
|
251
|
-
|
|
257
|
+
a,
|
|
252
258
|
{
|
|
253
|
-
companyId:
|
|
254
|
-
employeeId:
|
|
259
|
+
companyId: Xe(r),
|
|
260
|
+
employeeId: m,
|
|
255
261
|
onEvent: u,
|
|
256
262
|
isAdmin: c,
|
|
257
263
|
defaultValues: i?.profile,
|
|
258
|
-
isSelfOnboardingEnabled:
|
|
264
|
+
isSelfOnboardingEnabled: D
|
|
259
265
|
}
|
|
260
266
|
);
|
|
261
267
|
};
|
|
262
268
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
269
|
+
a as Profile,
|
|
270
|
+
Rr as ProfileContextual
|
|
265
271
|
};
|
|
266
272
|
//# sourceMappingURL=Profile.js.map
|