@gusto/embedded-react-sdk 0.56.2 → 0.56.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/CHANGELOG.md +31 -0
- package/dist/components/Common/FieldCaption/FieldCaption.js +19 -22
- package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
- package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +6 -6
- package/dist/components/Common/PaginationControl/PaginationControl.js +66 -62
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/PaySchedule/management/PaySchedule.js +60 -0
- package/dist/components/Company/PaySchedule/management/PaySchedule.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js +67 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +59 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +57 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +46 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +101 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +81 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js +18 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js +56 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +34 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js +77 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js +10 -0
- package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.module.scss.js.map +1 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js +66 -0
- package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -0
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +75 -57
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js +15 -0
- package/dist/components/Company/StateTaxes/shared/requirementSetError.js.map +1 -0
- package/dist/components/Company/exports/companyManagement.js +7 -0
- package/dist/components/Company/exports/companyManagement.js.map +1 -0
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +28 -28
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +51 -58
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +12 -7
- package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +87 -85
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +55 -54
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +66 -62
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +129 -125
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +30 -27
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +41 -30
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +159 -152
- package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +61 -59
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +32 -31
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +16 -16
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +61 -61
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +192 -193
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.js +27 -22
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +55 -53
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -41
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
- package/dist/components/Payroll/helpers.js +72 -67
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +34 -25
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +23 -22
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js +30 -0
- package/dist/contexts/ApiProvider/informationRequestEnumHook.js.map +1 -0
- package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.js +9 -8
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/i18n/I18n.js +2 -0
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.Management.PaySchedule.json.js +24 -0
- package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +18 -0
- package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -0
- package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
- package/dist/i18n/en/common.json.js +36 -38
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.js +137 -135
- package/dist/index.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/shared/constants.js +39 -31
- package/dist/shared/constants.js.map +1 -1
- package/dist/src/components/Company/PaySchedule/management/PaySchedule.d.ts +24 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentReviewStepPresentation.d.ts +10 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +35 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +29 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.d.ts +7 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/stripNullAssignmentPreviewFields.d.ts +12 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +9 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +20 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverview.d.ts +11 -0
- package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +18 -0
- package/dist/src/components/Company/PaySchedule/management/index.d.ts +1 -0
- package/dist/src/components/Company/PaySchedule/management/payScheduleManagementStateMachine.d.ts +12 -0
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.d.ts +18 -0
- package/dist/src/components/Company/StateTaxes/shared/requirementSetError.test.d.ts +1 -0
- package/dist/src/components/Company/exports/companyManagement.d.ts +2 -0
- package/dist/src/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +12 -0
- package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +6 -1
- package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/payrollEditEmployeeHelpers.d.ts +2 -2
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +6 -1
- package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +7 -1
- package/dist/src/components/Payroll/helpers.d.ts +34 -0
- package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +6 -1
- package/dist/src/components/index.d.ts +12 -0
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.d.ts +14 -0
- package/dist/src/contexts/ApiProvider/informationRequestEnumHook.test.d.ts +1 -0
- package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +2 -0
- package/dist/src/helpers/dateFormatting.d.ts +2 -2
- package/dist/src/helpers/formattedStrings.d.ts +15 -0
- package/dist/src/i18n/en/common.json.d.ts +0 -1
- package/dist/src/i18n/types.d.ts +96 -6
- package/dist/src/models/external.d.ts +12 -0
- package/dist/src/shared/constants.d.ts +16 -0
- package/dist/style.css +1 -1
- package/dist/types/sdkError.js +32 -21
- package/dist/types/sdkError.js.map +1 -1
- package/docs/guides/endpoint-inventory.json +59 -10
- package/package.json +7 -7
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { useForm as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
2
|
+
import { useForm as ne, useFieldArray as Me, useWatch as Oe, FormProvider as te } from "react-hook-form";
|
|
3
|
+
import { useRef as ve, useMemo as V, useState as Re } from "react";
|
|
4
|
+
import xe from "classnames";
|
|
5
5
|
import { PayrollEmployeeCompensationsTypePaymentMethod as M } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
6
|
-
import { useTranslation as
|
|
6
|
+
import { useTranslation as Se } from "react-i18next";
|
|
7
7
|
import { z as s } from "zod";
|
|
8
|
-
import { zodResolver as
|
|
8
|
+
import { zodResolver as ie } from "@hookform/resolvers/zod";
|
|
9
9
|
import c from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
10
|
-
import { TimeOffField as
|
|
10
|
+
import { TimeOffField as Ie, PayoutTimeOffField as Fe } from "./TimeOffField.js";
|
|
11
11
|
import { Flex as P } from "../../Common/Flex/Flex.js";
|
|
12
12
|
import { Grid as x } from "../../Common/Grid/Grid.js";
|
|
13
|
-
import { EmptyData as
|
|
14
|
-
import { useComponentContext as
|
|
15
|
-
import { useI18n as
|
|
16
|
-
import { Form as
|
|
17
|
-
import { formatNumberAsCurrency as
|
|
18
|
-
import { getAdditionalEarningsCompensations as
|
|
19
|
-
import { PayrollCategory as F, isOffCyclePayroll as
|
|
20
|
-
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
13
|
+
import { EmptyData as De } from "../../Common/EmptyData/EmptyData.js";
|
|
14
|
+
import { useComponentContext as _e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
15
|
+
import { useI18n as Le } from "../../../i18n/I18n.js";
|
|
16
|
+
import { Form as ke } from "../../Common/Form/Form.js";
|
|
17
|
+
import { formatNumberAsCurrency as re, firstLastName as Ue, stripLeadingZeros as k } from "../../../helpers/formattedStrings.js";
|
|
18
|
+
import { getAdditionalEarningsCompensations as je, calculateGrossPay as se } from "../helpers.js";
|
|
19
|
+
import { PayrollCategory as F, isOffCyclePayroll as ue } from "../payrollTypes.js";
|
|
20
|
+
import { COMPENSATION_NAME_REIMBURSEMENT as S, HOURS_COMPENSATION_NAMES as oe, EXCLUDED_ADDITIONAL_EARNINGS as Ge, COMPENSATION_NAME_DOUBLE_OVERTIME as He, COMPENSATION_NAME_OVERTIME as we, COMPENSATION_NAME_REGULAR_HOURS as $e, COMPENSATION_NAME_CASH_TIPS as Ve, COMPENSATION_NAME_COMMISSION as Be, COMPENSATION_NAME_CORRECTION_PAYMENT as ze, COMPENSATION_NAME_PAYCHECK_TIPS as We, COMPENSATION_NAME_BONUS as qe } from "../../../shared/constants.js";
|
|
21
|
+
import Ye from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
22
|
+
import ae from "../../../assets/icons/plus-circle.svg.js";
|
|
23
|
+
import Ke from "../../../assets/icons/trashcan.svg.js";
|
|
24
24
|
import { TextInputField as I } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
25
|
-
import { RadioGroupField as
|
|
26
|
-
import { useDataView as
|
|
25
|
+
import { RadioGroupField as Xe } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
26
|
+
import { useDataView as Ze } from "../../Common/DataView/useDataView.js";
|
|
27
27
|
import { DataView as Qe } from "../../Common/DataView/DataView.js";
|
|
28
|
-
const
|
|
28
|
+
const Je = s.object({
|
|
29
29
|
uuid: s.string().nullable().optional(),
|
|
30
30
|
description: s.string(),
|
|
31
31
|
amount: s.string(),
|
|
32
32
|
recurring: s.boolean().optional()
|
|
33
|
-
}),
|
|
33
|
+
}), en = s.object({
|
|
34
34
|
description: s.string(),
|
|
35
35
|
amount: s.string().refine(
|
|
36
36
|
(l) => {
|
|
@@ -39,14 +39,14 @@ const Ze = s.object({
|
|
|
39
39
|
},
|
|
40
40
|
{ message: "validations.reimbursementAmount" }
|
|
41
41
|
)
|
|
42
|
-
}),
|
|
42
|
+
}), nn = s.string().optional().refine((l) => !l || parseFloat(l) >= 0, { message: "validations.negativeAmount" }), tn = s.object({
|
|
43
43
|
hourlyCompensations: s.record(s.string(), s.record(s.string(), s.string().optional())),
|
|
44
44
|
timeOffCompensations: s.record(s.string(), s.string().optional()),
|
|
45
45
|
finalPayoutCompensations: s.record(s.string(), s.string().optional()),
|
|
46
|
-
fixedCompensations: s.record(s.string(),
|
|
47
|
-
reimbursements: s.array(
|
|
46
|
+
fixedCompensations: s.record(s.string(), nn),
|
|
47
|
+
reimbursements: s.array(Je),
|
|
48
48
|
paymentMethod: s.enum(M).optional()
|
|
49
|
-
}),
|
|
49
|
+
}), me = (l, C, U, p, o = F.Regular) => {
|
|
50
50
|
const y = {
|
|
51
51
|
...C,
|
|
52
52
|
paymentMethod: l.paymentMethod
|
|
@@ -59,7 +59,7 @@ const Ze = s.object({
|
|
|
59
59
|
hours: m
|
|
60
60
|
} : r;
|
|
61
61
|
}
|
|
62
|
-
), y.paidTimeOff =
|
|
62
|
+
), y.paidTimeOff = U.map((r) => {
|
|
63
63
|
const m = o === F.Dismissal, { finalPayoutUnusedHoursInput: O, ...h } = r;
|
|
64
64
|
if (m) {
|
|
65
65
|
const u = l.finalPayoutCompensations[r.name] ?? r.finalPayoutUnusedHoursInput;
|
|
@@ -74,12 +74,12 @@ const Ze = s.object({
|
|
|
74
74
|
hours: l.timeOffCompensations[r.name] || "0"
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
|
-
const D = !
|
|
77
|
+
const D = !ue(o), T = [];
|
|
78
78
|
return Object.entries(l.fixedCompensations).forEach(([r, m]) => {
|
|
79
79
|
if (r.toLowerCase() === S.toLowerCase() && D)
|
|
80
80
|
return;
|
|
81
81
|
const h = C?.fixedCompensations?.find(
|
|
82
|
-
(
|
|
82
|
+
(j) => j.name?.toLowerCase() === r.toLowerCase()
|
|
83
83
|
), u = m === "" && h ? "0" : m;
|
|
84
84
|
u !== void 0 && u !== "" && (h ? T.push({
|
|
85
85
|
name: h.name,
|
|
@@ -96,10 +96,10 @@ const Ze = s.object({
|
|
|
96
96
|
uuid: r.uuid ?? null,
|
|
97
97
|
recurring: r.recurring
|
|
98
98
|
})) : y.reimbursements = [], y;
|
|
99
|
-
},
|
|
99
|
+
}, Fn = ({
|
|
100
100
|
className: l,
|
|
101
101
|
onSave: C,
|
|
102
|
-
onCancel:
|
|
102
|
+
onCancel: U,
|
|
103
103
|
employee: p,
|
|
104
104
|
employeeCompensation: o,
|
|
105
105
|
isPending: y = !1,
|
|
@@ -110,70 +110,70 @@ const Ze = s.object({
|
|
|
110
110
|
withReimbursements: O = !0,
|
|
111
111
|
hasDirectDepositSetup: h = !0
|
|
112
112
|
}) => {
|
|
113
|
-
const { Button: u, ButtonIcon:
|
|
114
|
-
|
|
115
|
-
const b = p.jobs?.find((e) => e.primary),
|
|
113
|
+
const { Button: u, ButtonIcon: j, Heading: f, Text: B } = _e(), { t: n } = Se("Payroll.PayrollEditEmployee");
|
|
114
|
+
Le("Payroll.PayrollEditEmployee");
|
|
115
|
+
const b = p.jobs?.find((e) => e.primary), le = o?.hourlyCompensations?.some(
|
|
116
116
|
(e) => e.jobUuid === b?.uuid
|
|
117
|
-
), v = b &&
|
|
118
|
-
ref:
|
|
117
|
+
), v = b && le ? [b] : [], z = ve(null), g = Ye({
|
|
118
|
+
ref: z
|
|
119
119
|
}).includes("small");
|
|
120
120
|
o?.hourlyCompensations?.forEach((e) => {
|
|
121
121
|
const i = p.jobs?.find((d) => d.uuid === e.jobUuid);
|
|
122
122
|
i && !v.find((d) => d.uuid === i.uuid) && v.push(i);
|
|
123
123
|
});
|
|
124
|
-
const A = (o?.paidTimeOff || []).filter((e) => e.name),
|
|
124
|
+
const A = (o?.paidTimeOff || []).filter((e) => e.name), G = je({
|
|
125
125
|
flsaStatus: b?.compensations?.[0]?.flsaStatus,
|
|
126
126
|
existingFixedCompensations: o?.fixedCompensations || [],
|
|
127
127
|
primaryJobUuid: b?.uuid,
|
|
128
128
|
fixedCompensationTypes: D,
|
|
129
|
-
excludedTypes:
|
|
130
|
-
}), _ = !
|
|
129
|
+
excludedTypes: Ge
|
|
130
|
+
}), _ = !ue(m), de = V(
|
|
131
131
|
() => O && _ ? o?.reimbursements ?? [] : [],
|
|
132
132
|
[O, _, o?.reimbursements]
|
|
133
|
-
),
|
|
133
|
+
), ce = V(
|
|
134
134
|
() => o?.fixedCompensations?.find(
|
|
135
135
|
(e) => e.name?.toLowerCase() === S.toLowerCase()
|
|
136
136
|
),
|
|
137
137
|
[o?.fixedCompensations]
|
|
138
|
-
),
|
|
138
|
+
), W = O && !_ && !!b?.uuid, q = (e, i) => o?.hourlyCompensations?.find(
|
|
139
139
|
(d) => d.jobUuid === e && d.name?.toLowerCase() === i.toLowerCase()
|
|
140
|
-
),
|
|
140
|
+
), pe = (e) => {
|
|
141
141
|
switch (e) {
|
|
142
|
-
case
|
|
142
|
+
case $e:
|
|
143
143
|
return n("compensationNames.regularHours");
|
|
144
|
-
case
|
|
144
|
+
case we:
|
|
145
145
|
return n("compensationNames.overtime");
|
|
146
|
-
case
|
|
146
|
+
case He:
|
|
147
147
|
return n("compensationNames.doubleOvertime");
|
|
148
148
|
default:
|
|
149
149
|
return e;
|
|
150
150
|
}
|
|
151
|
-
},
|
|
151
|
+
}, Y = (e) => {
|
|
152
152
|
switch (e) {
|
|
153
|
-
case
|
|
153
|
+
case qe:
|
|
154
154
|
return n("fixedCompensationNames.bonus");
|
|
155
|
-
case
|
|
155
|
+
case We:
|
|
156
156
|
return n("fixedCompensationNames.paycheckTips");
|
|
157
|
-
case
|
|
157
|
+
case ze:
|
|
158
158
|
return n("fixedCompensationNames.correctionPayment");
|
|
159
|
-
case
|
|
159
|
+
case Be:
|
|
160
160
|
return n("fixedCompensationNames.commission");
|
|
161
|
-
case
|
|
161
|
+
case Ve:
|
|
162
162
|
return n("fixedCompensationNames.cashTips");
|
|
163
163
|
case S:
|
|
164
164
|
return n("fixedCompensationNames.reimbursement");
|
|
165
165
|
default:
|
|
166
166
|
return e;
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, fe = () => {
|
|
169
169
|
const e = o?.paymentMethod;
|
|
170
170
|
return e ? !h && e === M.DirectDeposit ? M.Check : e : h ? M.DirectDeposit : M.Check;
|
|
171
|
-
},
|
|
171
|
+
}, he = {
|
|
172
172
|
hourlyCompensations: (() => {
|
|
173
173
|
const e = {};
|
|
174
174
|
return v.forEach((i) => {
|
|
175
|
-
|
|
176
|
-
const R =
|
|
175
|
+
oe.forEach((d) => {
|
|
176
|
+
const R = q(i.uuid, d);
|
|
177
177
|
R && (e[i.uuid] || (e[i.uuid] = {}), e[i.uuid][R.name] = R.hours ? parseFloat(R.hours).toString() : "");
|
|
178
178
|
});
|
|
179
179
|
}), e;
|
|
@@ -192,46 +192,46 @@ const Ze = s.object({
|
|
|
192
192
|
})(),
|
|
193
193
|
fixedCompensations: (() => {
|
|
194
194
|
const e = {};
|
|
195
|
-
return
|
|
195
|
+
return G.forEach((i) => {
|
|
196
196
|
e[i.name] = i.amount ?? "";
|
|
197
|
-
}),
|
|
197
|
+
}), W && (e[S] = ce?.amount ?? "0.00"), e;
|
|
198
198
|
})(),
|
|
199
|
-
reimbursements:
|
|
199
|
+
reimbursements: de.map((e) => ({
|
|
200
200
|
uuid: e.uuid ?? null,
|
|
201
201
|
description: e.description ?? "",
|
|
202
202
|
amount: e.amount,
|
|
203
203
|
recurring: e.recurring ?? !1
|
|
204
204
|
})),
|
|
205
|
-
paymentMethod:
|
|
206
|
-
}, L =
|
|
207
|
-
resolver:
|
|
208
|
-
defaultValues:
|
|
205
|
+
paymentMethod: fe()
|
|
206
|
+
}, L = ne({
|
|
207
|
+
resolver: ie(tn),
|
|
208
|
+
defaultValues: he
|
|
209
209
|
}), {
|
|
210
|
-
fields:
|
|
211
|
-
append:
|
|
212
|
-
remove:
|
|
213
|
-
update:
|
|
214
|
-
} =
|
|
210
|
+
fields: K,
|
|
211
|
+
append: be,
|
|
212
|
+
remove: ge,
|
|
213
|
+
update: Ce
|
|
214
|
+
} = Me({
|
|
215
215
|
control: L.control,
|
|
216
216
|
name: "reimbursements"
|
|
217
|
-
}),
|
|
218
|
-
const i =
|
|
219
|
-
i && (i.uuid ?
|
|
220
|
-
},
|
|
221
|
-
resolver:
|
|
217
|
+
}), ye = (e) => {
|
|
218
|
+
const i = K[e];
|
|
219
|
+
i && (i.uuid ? Ce(e, { ...i, amount: "0" }) : ge(e));
|
|
220
|
+
}, H = K.map((e, i) => ({ ...e, originalIndex: i })).filter((e) => parseFloat(e.amount || "0") !== 0), [X, w] = Re(!1), $ = ne({
|
|
221
|
+
resolver: ie(en),
|
|
222
222
|
defaultValues: { description: "", amount: "" }
|
|
223
|
-
}),
|
|
224
|
-
|
|
225
|
-
},
|
|
223
|
+
}), Z = () => {
|
|
224
|
+
w(!1), $.reset();
|
|
225
|
+
}, Ne = (e) => {
|
|
226
226
|
const i = parseFloat(e.amount);
|
|
227
|
-
|
|
227
|
+
be({
|
|
228
228
|
uuid: null,
|
|
229
229
|
description: e.description.trim(),
|
|
230
230
|
amount: i.toFixed(2),
|
|
231
231
|
recurring: !1
|
|
232
|
-
}),
|
|
233
|
-
},
|
|
234
|
-
data:
|
|
232
|
+
}), Z();
|
|
233
|
+
}, Ee = Ze({
|
|
234
|
+
data: H,
|
|
235
235
|
columns: [
|
|
236
236
|
{
|
|
237
237
|
key: "description",
|
|
@@ -242,7 +242,7 @@ const Ze = s.object({
|
|
|
242
242
|
key: "amount",
|
|
243
243
|
title: n("reimbursementAmountColumn"),
|
|
244
244
|
justify: "end",
|
|
245
|
-
render: (e) =>
|
|
245
|
+
render: (e) => re(parseFloat(e.amount || "0"))
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
key: "recurring",
|
|
@@ -254,35 +254,35 @@ const Ze = s.object({
|
|
|
254
254
|
if (e.recurring) return null;
|
|
255
255
|
const i = e.description.trim() || n("reimbursementUnnamedFallback");
|
|
256
256
|
return /* @__PURE__ */ t(
|
|
257
|
-
|
|
257
|
+
j,
|
|
258
258
|
{
|
|
259
259
|
variant: "tertiary",
|
|
260
260
|
onClick: () => {
|
|
261
|
-
|
|
261
|
+
ye(e.originalIndex);
|
|
262
262
|
},
|
|
263
263
|
"aria-label": n("removeReimbursementLabel", { description: i }),
|
|
264
|
-
children: /* @__PURE__ */ t(
|
|
264
|
+
children: /* @__PURE__ */ t(Ke, { "aria-hidden": !0 })
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
267
|
},
|
|
268
|
-
emptyState: () => /* @__PURE__ */ t(
|
|
268
|
+
emptyState: () => /* @__PURE__ */ t(De, { title: n("reimbursementEmptyTitle"), children: /* @__PURE__ */ t(
|
|
269
269
|
u,
|
|
270
270
|
{
|
|
271
271
|
variant: "secondary",
|
|
272
272
|
onClick: () => {
|
|
273
|
-
|
|
273
|
+
w(!0);
|
|
274
274
|
},
|
|
275
|
-
icon: /* @__PURE__ */ t(
|
|
275
|
+
icon: /* @__PURE__ */ t(ae, { "aria-hidden": !0 }),
|
|
276
276
|
children: n("addReimbursementCta")
|
|
277
277
|
}
|
|
278
278
|
) })
|
|
279
|
-
}), N =
|
|
279
|
+
}), N = Oe({
|
|
280
280
|
control: L.control
|
|
281
|
-
}),
|
|
281
|
+
}), Pe = V(() => {
|
|
282
282
|
try {
|
|
283
283
|
const e = {};
|
|
284
|
-
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E,
|
|
285
|
-
|
|
284
|
+
N.hourlyCompensations && Object.entries(N.hourlyCompensations).forEach(([E, ee]) => {
|
|
285
|
+
ee && (e[E] = ee);
|
|
286
286
|
});
|
|
287
287
|
const i = (N.reimbursements ?? []).map((E) => ({
|
|
288
288
|
uuid: E.uuid ?? null,
|
|
@@ -296,14 +296,14 @@ const Ze = s.object({
|
|
|
296
296
|
fixedCompensations: N.fixedCompensations || {},
|
|
297
297
|
reimbursements: i,
|
|
298
298
|
paymentMethod: N.paymentMethod
|
|
299
|
-
}, R =
|
|
299
|
+
}, R = me(
|
|
300
300
|
d,
|
|
301
301
|
o,
|
|
302
302
|
(o?.paidTimeOff || []).filter((E) => E.name),
|
|
303
303
|
b?.uuid,
|
|
304
304
|
m
|
|
305
305
|
);
|
|
306
|
-
return
|
|
306
|
+
return se(
|
|
307
307
|
R,
|
|
308
308
|
p,
|
|
309
309
|
T,
|
|
@@ -311,7 +311,7 @@ const Ze = s.object({
|
|
|
311
311
|
m
|
|
312
312
|
);
|
|
313
313
|
} catch {
|
|
314
|
-
return o ?
|
|
314
|
+
return o ? se(
|
|
315
315
|
o,
|
|
316
316
|
p,
|
|
317
317
|
T,
|
|
@@ -327,11 +327,11 @@ const Ze = s.object({
|
|
|
327
327
|
T,
|
|
328
328
|
r,
|
|
329
329
|
m
|
|
330
|
-
]),
|
|
330
|
+
]), Te = Ue({
|
|
331
331
|
first_name: p.firstName,
|
|
332
332
|
last_name: p.lastName
|
|
333
|
-
}),
|
|
334
|
-
const i =
|
|
333
|
+
}), Ae = (e) => {
|
|
334
|
+
const i = me(
|
|
335
335
|
e,
|
|
336
336
|
o,
|
|
337
337
|
A,
|
|
@@ -339,7 +339,7 @@ const Ze = s.object({
|
|
|
339
339
|
m
|
|
340
340
|
);
|
|
341
341
|
C(i);
|
|
342
|
-
}, Q =
|
|
342
|
+
}, Q = re(Pe || 0), J = /* @__PURE__ */ a(
|
|
343
343
|
P,
|
|
344
344
|
{
|
|
345
345
|
flexDirection: g ? "row" : "column",
|
|
@@ -347,11 +347,11 @@ const Ze = s.object({
|
|
|
347
347
|
alignItems: g ? "flex-start" : "stretch",
|
|
348
348
|
gap: 12,
|
|
349
349
|
children: [
|
|
350
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
350
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: U, title: n("cancelCta"), children: n("cancelCta") }),
|
|
351
351
|
/* @__PURE__ */ t(
|
|
352
352
|
u,
|
|
353
353
|
{
|
|
354
|
-
onClick: L.handleSubmit(
|
|
354
|
+
onClick: L.handleSubmit(Ae),
|
|
355
355
|
title: n("saveCta"),
|
|
356
356
|
isLoading: y,
|
|
357
357
|
children: n("saveCta")
|
|
@@ -360,31 +360,31 @@ const Ze = s.object({
|
|
|
360
360
|
]
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
return /* @__PURE__ */ a("div", { ref:
|
|
363
|
+
return /* @__PURE__ */ a("div", { ref: z, className: xe(c.container, l), children: [
|
|
364
364
|
/* @__PURE__ */ t(
|
|
365
365
|
"div",
|
|
366
366
|
{
|
|
367
367
|
className: `${c.headerSection} ${g ? "" : c.headerSectionSticky}`,
|
|
368
368
|
children: /* @__PURE__ */ a(P, { justifyContent: "space-between", children: [
|
|
369
369
|
/* @__PURE__ */ a(P, { flexDirection: "column", alignItems: "stretch", gap: g ? 8 : 2, children: [
|
|
370
|
-
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName:
|
|
370
|
+
/* @__PURE__ */ t(f, { as: "h1", styledAs: g ? "h2" : "h4", children: n("pageTitle", { employeeName: Te }) }),
|
|
371
371
|
g ? /* @__PURE__ */ a(P, { flexDirection: "column", gap: 6, children: [
|
|
372
372
|
/* @__PURE__ */ t(f, { as: "h2", styledAs: "h3", children: Q }),
|
|
373
|
-
/* @__PURE__ */ t(
|
|
373
|
+
/* @__PURE__ */ t(B, { className: c.grossPayLabel, children: n("grossPayLabel") })
|
|
374
374
|
] }) : /* @__PURE__ */ t(f, { as: "h2", styledAs: "h6", className: c.grossPayLabel, children: n("grossPayLabelMobile", { grossPay: Q }) })
|
|
375
375
|
] }),
|
|
376
|
-
g &&
|
|
376
|
+
g && J
|
|
377
377
|
] })
|
|
378
378
|
}
|
|
379
379
|
),
|
|
380
|
-
/* @__PURE__ */ a(
|
|
381
|
-
/* @__PURE__ */ a(
|
|
380
|
+
/* @__PURE__ */ a(te, { ...L, children: [
|
|
381
|
+
/* @__PURE__ */ a(ke, { children: [
|
|
382
382
|
v.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
383
383
|
/* @__PURE__ */ t(f, { as: "h3", children: n("regularHoursTitle") }),
|
|
384
384
|
v.map((e) => /* @__PURE__ */ a(P, { flexDirection: "column", gap: 8, children: [
|
|
385
385
|
v.length > 1 && /* @__PURE__ */ t(f, { as: "h4", children: e.title }),
|
|
386
|
-
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children:
|
|
387
|
-
const d =
|
|
386
|
+
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: oe.map((i) => {
|
|
387
|
+
const d = q(
|
|
388
388
|
e.uuid,
|
|
389
389
|
i
|
|
390
390
|
);
|
|
@@ -394,8 +394,9 @@ const Ze = s.object({
|
|
|
394
394
|
{
|
|
395
395
|
type: "number",
|
|
396
396
|
min: 0,
|
|
397
|
+
transform: k,
|
|
397
398
|
adornmentEnd: n("hoursUnit"),
|
|
398
|
-
label:
|
|
399
|
+
label: pe(i),
|
|
399
400
|
name: `hourlyCompensations.${e.uuid}.${d.name}`
|
|
400
401
|
},
|
|
401
402
|
i
|
|
@@ -406,7 +407,7 @@ const Ze = s.object({
|
|
|
406
407
|
A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
407
408
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: m === F.Dismissal ? n("timeOffTitleDismissal") : n("timeOffTitle") }),
|
|
408
409
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
409
|
-
|
|
410
|
+
Ie,
|
|
410
411
|
{
|
|
411
412
|
timeOff: e,
|
|
412
413
|
employee: p
|
|
@@ -417,10 +418,10 @@ const Ze = s.object({
|
|
|
417
418
|
m === F.Dismissal && A.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
418
419
|
/* @__PURE__ */ a(P, { flexDirection: "column", gap: 4, children: [
|
|
419
420
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("finalPayoutTitle") }),
|
|
420
|
-
/* @__PURE__ */ t(
|
|
421
|
+
/* @__PURE__ */ t(B, { variant: "supporting", children: n("finalPayoutDescription") })
|
|
421
422
|
] }),
|
|
422
423
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: A.map((e) => /* @__PURE__ */ t(
|
|
423
|
-
|
|
424
|
+
Fe,
|
|
424
425
|
{
|
|
425
426
|
timeOff: e,
|
|
426
427
|
employee: p
|
|
@@ -428,20 +429,21 @@ const Ze = s.object({
|
|
|
428
429
|
`payout-${e.name}`
|
|
429
430
|
)) })
|
|
430
431
|
] }),
|
|
431
|
-
|
|
432
|
+
G.length > 0 && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
432
433
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("additionalEarningsTitle") }),
|
|
433
434
|
/* @__PURE__ */ t(
|
|
434
435
|
x,
|
|
435
436
|
{
|
|
436
437
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
437
438
|
gap: 20,
|
|
438
|
-
children:
|
|
439
|
+
children: G.map((e) => /* @__PURE__ */ t(
|
|
439
440
|
I,
|
|
440
441
|
{
|
|
441
442
|
type: "number",
|
|
442
443
|
min: 0,
|
|
444
|
+
transform: k,
|
|
443
445
|
adornmentStart: "$",
|
|
444
|
-
label:
|
|
446
|
+
label: Y(e.name),
|
|
445
447
|
name: `fixedCompensations.${e.name}`,
|
|
446
448
|
errorMessage: n("validations.negativeAmount")
|
|
447
449
|
},
|
|
@@ -450,15 +452,16 @@ const Ze = s.object({
|
|
|
450
452
|
}
|
|
451
453
|
)
|
|
452
454
|
] }),
|
|
453
|
-
|
|
455
|
+
W && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
454
456
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
455
457
|
/* @__PURE__ */ t(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ t(
|
|
456
458
|
I,
|
|
457
459
|
{
|
|
458
460
|
type: "number",
|
|
459
461
|
min: 0,
|
|
462
|
+
transform: k,
|
|
460
463
|
adornmentStart: "$",
|
|
461
|
-
label:
|
|
464
|
+
label: Y(S),
|
|
462
465
|
name: `fixedCompensations.${S}`,
|
|
463
466
|
errorMessage: n("validations.negativeAmount")
|
|
464
467
|
}
|
|
@@ -466,8 +469,8 @@ const Ze = s.object({
|
|
|
466
469
|
] }),
|
|
467
470
|
O && _ && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
468
471
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("reimbursementTitle") }),
|
|
469
|
-
!(
|
|
470
|
-
|
|
472
|
+
!(H.length === 0 && X) && /* @__PURE__ */ t(Qe, { label: n("reimbursementsTableLabel"), ...Ee }),
|
|
473
|
+
X ? /* @__PURE__ */ t(te, { ...$, children: /* @__PURE__ */ a(P, { flexDirection: "column", gap: 12, children: [
|
|
471
474
|
/* @__PURE__ */ a(x, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: [
|
|
472
475
|
/* @__PURE__ */ t(
|
|
473
476
|
I,
|
|
@@ -483,6 +486,7 @@ const Ze = s.object({
|
|
|
483
486
|
name: "amount",
|
|
484
487
|
type: "number",
|
|
485
488
|
min: 0,
|
|
489
|
+
transform: k,
|
|
486
490
|
adornmentStart: "$",
|
|
487
491
|
isRequired: !0,
|
|
488
492
|
label: n("reimbursementAmountLabel"),
|
|
@@ -491,18 +495,18 @@ const Ze = s.object({
|
|
|
491
495
|
)
|
|
492
496
|
] }),
|
|
493
497
|
/* @__PURE__ */ a(P, { gap: 12, children: [
|
|
494
|
-
/* @__PURE__ */ t(u, { onClick:
|
|
495
|
-
/* @__PURE__ */ t(u, { variant: "secondary", onClick:
|
|
498
|
+
/* @__PURE__ */ t(u, { onClick: $.handleSubmit(Ne), children: n("saveReimbursementCta") }),
|
|
499
|
+
/* @__PURE__ */ t(u, { variant: "secondary", onClick: Z, children: n("cancelReimbursementCta") })
|
|
496
500
|
] })
|
|
497
|
-
] }) }) :
|
|
501
|
+
] }) }) : H.length > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
498
502
|
u,
|
|
499
503
|
{
|
|
500
504
|
variant: "secondary",
|
|
501
505
|
onClick: () => {
|
|
502
|
-
|
|
506
|
+
w(!0);
|
|
503
507
|
},
|
|
504
508
|
title: n("addReimbursementLink"),
|
|
505
|
-
icon: /* @__PURE__ */ t(
|
|
509
|
+
icon: /* @__PURE__ */ t(ae, { "aria-hidden": !0 }),
|
|
506
510
|
children: n("addReimbursementLink")
|
|
507
511
|
}
|
|
508
512
|
) })
|
|
@@ -510,7 +514,7 @@ const Ze = s.object({
|
|
|
510
514
|
h && /* @__PURE__ */ a("div", { className: c.fieldGroup, children: [
|
|
511
515
|
/* @__PURE__ */ t(f, { as: "h3", styledAs: "h4", children: n("paymentMethodTitle") }),
|
|
512
516
|
/* @__PURE__ */ t(
|
|
513
|
-
|
|
517
|
+
Xe,
|
|
514
518
|
{
|
|
515
519
|
name: "paymentMethod",
|
|
516
520
|
isRequired: !0,
|
|
@@ -530,11 +534,11 @@ const Ze = s.object({
|
|
|
530
534
|
)
|
|
531
535
|
] })
|
|
532
536
|
] }),
|
|
533
|
-
!g &&
|
|
537
|
+
!g && J
|
|
534
538
|
] })
|
|
535
539
|
] });
|
|
536
540
|
};
|
|
537
541
|
export {
|
|
538
|
-
|
|
542
|
+
Fn as PayrollEditEmployeePresentation
|
|
539
543
|
};
|
|
540
544
|
//# sourceMappingURL=PayrollEditEmployeePresentation.js.map
|