@saasquatch/mint-components 2.1.8-1 → 2.1.8-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-5ce32291.js → ShadowViewAddon-0745de12.js} +384 -98
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +50 -377
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +172 -351
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +168 -175
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +142 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +173 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +536 -26
- package/dist/collection/components/sqm-share-link/useShareLink.js +210 -6
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- package/dist/esm/{ShadowViewAddon-9d97b5d5.js → ShadowViewAddon-cd0033a6.js} +386 -100
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +50 -377
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +177 -355
- package/dist/esm/sqm-stencilbook.entry.js +168 -175
- package/dist/esm-es5/ShadowViewAddon-cd0033a6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-499885aa.entry.js → p-23e8dd9a.entry.js} +2 -2
- package/dist/mint-components/p-27e8efc8.system.js +1 -0
- package/dist/mint-components/p-2f314004.system.entry.js +1 -0
- package/dist/mint-components/{p-a6621899.system.entry.js → p-8c53dcc9.system.entry.js} +1 -1
- package/dist/mint-components/{p-22e39d2c.entry.js → p-a9bb29df.entry.js} +21 -90
- package/dist/mint-components/p-ca098be1.system.js +1 -1
- package/dist/mint-components/p-cacb897d.system.entry.js +1 -0
- package/dist/mint-components/p-fcb7e0a3.js +503 -0
- package/dist/mint-components/p-ff378015.entry.js +106 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +10 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +37 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +107 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +27 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
- package/dist/types/components.d.ts +183 -380
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -143
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -90
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -462
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -180
- package/dist/esm-es5/ShadowViewAddon-9d97b5d5.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/mint-components/p-0f036907.system.js +0 -1
- package/dist/mint-components/p-adc4e263.js +0 -463
- package/dist/mint-components/p-b0253f4c.entry.js +0 -108
- package/dist/mint-components/p-d93e19e9.system.entry.js +0 -1
- package/dist/mint-components/p-e45a9966.system.entry.js +0 -1
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -13
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -41
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -80
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -16
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { useEngagementMedium, useMutation, useParentValue, useProgramId, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useState } from "@saasquatch/universal-hooks";
|
|
1
|
+
import { useEngagementMedium, useLazyQuery, useMutation, useParentValue, useProgramId, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useRef, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { REFERRAL_CODES_NAMESPACE, SET_CODE_COPIED, } from "../sqm-referral-codes/useReferralCodes";
|
|
5
|
+
const MAX_EDITS = 5;
|
|
6
|
+
const CHARACTER_LIMIT = 15;
|
|
5
7
|
const MessageLinkQuery = gql `
|
|
6
8
|
query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
|
|
7
9
|
user: viewer {
|
|
@@ -20,19 +22,121 @@ const WIDGET_ENGAGEMENT_EVENT = gql `
|
|
|
20
22
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
21
23
|
}
|
|
22
24
|
`;
|
|
25
|
+
const ADD_SHARE_LINK_CODE = gql `
|
|
26
|
+
mutation ($addShareLinkCodeInput: AddShareLinkCodeInput!) {
|
|
27
|
+
addShareLinkCode(addShareLinkCodeInput: $addShareLinkCodeInput) {
|
|
28
|
+
linkCode {
|
|
29
|
+
linkCode
|
|
30
|
+
shortUrl
|
|
31
|
+
referralCode {
|
|
32
|
+
code
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const VALIDATE_LINK_CODE = gql `
|
|
39
|
+
query validateLinkCode($linkCode: String!) {
|
|
40
|
+
validateLinkCode(linkCode: $linkCode) {
|
|
41
|
+
valid
|
|
42
|
+
invalidReason
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const GET_LINK_DOMAIN = gql `
|
|
47
|
+
query getLinkDomain {
|
|
48
|
+
tenantSettings {
|
|
49
|
+
primaryLinkDomain {
|
|
50
|
+
host
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const SHARE_LINK_EDIT_COUNT = gql `
|
|
56
|
+
query shareLinkEditCount {
|
|
57
|
+
viewer {
|
|
58
|
+
... on User {
|
|
59
|
+
shareLinkCodes {
|
|
60
|
+
totalCount
|
|
61
|
+
data {
|
|
62
|
+
isVanity
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
function parseDomainPrefix(url) {
|
|
70
|
+
try {
|
|
71
|
+
const parsed = new URL(url);
|
|
72
|
+
return parsed.origin + "/";
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return url;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function parsePathSuffix(url) {
|
|
79
|
+
try {
|
|
80
|
+
const parsed = new URL(url);
|
|
81
|
+
// Remove leading slash
|
|
82
|
+
return parsed.pathname.slice(1) + parsed.search + parsed.hash;
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
return "";
|
|
86
|
+
}
|
|
87
|
+
}
|
|
23
88
|
export function useShareLink(props) {
|
|
24
|
-
var _a, _b;
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
25
90
|
const { programId = useProgramId() } = props;
|
|
26
91
|
const user = useUserIdentity();
|
|
27
92
|
const engagementMedium = useEngagementMedium();
|
|
28
93
|
const contextData = useParentValue(REFERRAL_CODES_NAMESPACE);
|
|
29
|
-
const { data } = useQuery(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
94
|
+
const { data, refetch } = useQuery(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
30
95
|
const [sendLoadEvent] = useMutation(WIDGET_ENGAGEMENT_EVENT);
|
|
31
|
-
const [setCopied
|
|
96
|
+
const [setCopied] = useMutation(SET_CODE_COPIED);
|
|
97
|
+
const [addShareLinkCode, { loading: isSaving }] = useMutation(ADD_SHARE_LINK_CODE);
|
|
98
|
+
const [validateLinkCode] = useLazyQuery(VALIDATE_LINK_CODE);
|
|
99
|
+
const { data: linkDomainData } = useQuery(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
|
|
100
|
+
const { data: editCountData, refetch: refetchEditCount } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
|
|
32
101
|
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
33
102
|
// Shown during loading
|
|
34
103
|
"...";
|
|
35
104
|
const [open, setOpen] = useState(false);
|
|
105
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
106
|
+
const [editValue, setEditValue] = useState("");
|
|
107
|
+
const [validationError, setValidationError] = useState(null);
|
|
108
|
+
const [isValidating, setIsValidating] = useState(false);
|
|
109
|
+
const [showSuccess, setShowSuccess] = useState(false);
|
|
110
|
+
const debounceTimerRef = useRef(undefined);
|
|
111
|
+
const domainPrefix = parseDomainPrefix(copyString);
|
|
112
|
+
const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
|
|
113
|
+
const customizeDisabled = !hasPrimaryLinkDomain;
|
|
114
|
+
const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
|
|
115
|
+
const editCount = vanityCount;
|
|
116
|
+
const editsRemaining = Math.max(0, MAX_EDITS - editCount);
|
|
117
|
+
const limitReached = editsRemaining <= 0;
|
|
118
|
+
function mapErrorCodeToInfo(errorCode) {
|
|
119
|
+
if (!errorCode)
|
|
120
|
+
return null;
|
|
121
|
+
const errorMap = {
|
|
122
|
+
EXISTING_CODE_CONFLICT: {
|
|
123
|
+
code: "EXISTING_CODE_CONFLICT",
|
|
124
|
+
title: props.existingCodeConflictErrorTitle,
|
|
125
|
+
description: props.existingCodeConflictErrorDescription,
|
|
126
|
+
},
|
|
127
|
+
INVALID_CHARACTERS: {
|
|
128
|
+
code: "INVALID_CHARACTERS",
|
|
129
|
+
title: props.invalidCharactersErrorTitle,
|
|
130
|
+
description: props.invalidCharactersErrorDescription,
|
|
131
|
+
},
|
|
132
|
+
PROFANITY: {
|
|
133
|
+
code: "PROFANITY",
|
|
134
|
+
title: props.profanityErrorTitle,
|
|
135
|
+
description: props.profanityErrorDescription,
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
return errorMap[errorCode];
|
|
139
|
+
}
|
|
36
140
|
async function onClick() {
|
|
37
141
|
if (contextData) {
|
|
38
142
|
await setCopied({ referralCode: contextData.referralCode });
|
|
@@ -56,5 +160,105 @@ export function useShareLink(props) {
|
|
|
56
160
|
},
|
|
57
161
|
});
|
|
58
162
|
}
|
|
59
|
-
|
|
163
|
+
function onCustomizeClick() {
|
|
164
|
+
if (limitReached || customizeDisabled)
|
|
165
|
+
return;
|
|
166
|
+
setIsEditing(true);
|
|
167
|
+
setEditValue(editCount === 0 ? "" : parsePathSuffix(copyString));
|
|
168
|
+
setValidationError(null);
|
|
169
|
+
}
|
|
170
|
+
function onEditValueChange(value) {
|
|
171
|
+
const trimmed = value.slice(0, CHARACTER_LIMIT);
|
|
172
|
+
setEditValue(trimmed);
|
|
173
|
+
setValidationError(null);
|
|
174
|
+
if (debounceTimerRef.current)
|
|
175
|
+
clearTimeout(debounceTimerRef.current);
|
|
176
|
+
if (!trimmed) {
|
|
177
|
+
setIsValidating(false);
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
setIsValidating(true);
|
|
181
|
+
debounceTimerRef.current = setTimeout(async () => {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
try {
|
|
184
|
+
const result = await validateLinkCode({ linkCode: trimmed });
|
|
185
|
+
if (!((_a = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _a === void 0 ? void 0 : _a.valid)) {
|
|
186
|
+
const reason = (_b = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _b === void 0 ? void 0 : _b.invalidReason;
|
|
187
|
+
setValidationError(mapErrorCodeToInfo(reason));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
catch {
|
|
191
|
+
// Validation query failed — don't block the user
|
|
192
|
+
}
|
|
193
|
+
setIsValidating(false);
|
|
194
|
+
}, 2000);
|
|
195
|
+
}
|
|
196
|
+
async function onSave() {
|
|
197
|
+
var _a, _b;
|
|
198
|
+
if (!editValue || validationError || isValidating)
|
|
199
|
+
return;
|
|
200
|
+
try {
|
|
201
|
+
await addShareLinkCode({
|
|
202
|
+
addShareLinkCodeInput: {
|
|
203
|
+
userId: user === null || user === void 0 ? void 0 : user.id,
|
|
204
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
205
|
+
programId,
|
|
206
|
+
linkCode: editValue,
|
|
207
|
+
makeShareLinkCodePrimaryForReferralCode: true,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
setIsEditing(false);
|
|
211
|
+
setShowSuccess(true);
|
|
212
|
+
await Promise.all([refetch(), refetchEditCount()]);
|
|
213
|
+
setTimeout(() => setShowSuccess(false), 3000);
|
|
214
|
+
}
|
|
215
|
+
catch (e) {
|
|
216
|
+
const errorCode = (_a = e === null || e === void 0 ? void 0 : e.extensions) === null || _a === void 0 ? void 0 : _a.code;
|
|
217
|
+
setValidationError((_b = mapErrorCodeToInfo(errorCode)) !== null && _b !== void 0 ? _b : {
|
|
218
|
+
code: null,
|
|
219
|
+
title: "Error",
|
|
220
|
+
description: (e === null || e === void 0 ? void 0 : e.message) || "Failed to save custom link. Please try again.",
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function onCancel() {
|
|
225
|
+
setIsEditing(false);
|
|
226
|
+
setEditValue("");
|
|
227
|
+
setValidationError(null);
|
|
228
|
+
setIsValidating(false);
|
|
229
|
+
}
|
|
230
|
+
return {
|
|
231
|
+
copyTextViewProps: {
|
|
232
|
+
...props,
|
|
233
|
+
onClick,
|
|
234
|
+
open,
|
|
235
|
+
copyString,
|
|
236
|
+
},
|
|
237
|
+
customizeUrl: props.customizeUrl,
|
|
238
|
+
customizeLinkLabel: props.customizeLinkLabel,
|
|
239
|
+
saveLabelText: props.saveLabelText,
|
|
240
|
+
cancelLabelText: props.cancelLabelText,
|
|
241
|
+
successMessage: props.successMessage,
|
|
242
|
+
isEditing,
|
|
243
|
+
editValue,
|
|
244
|
+
domainPrefix,
|
|
245
|
+
editsRemaining,
|
|
246
|
+
maxEdits: MAX_EDITS,
|
|
247
|
+
limitReached,
|
|
248
|
+
validationError,
|
|
249
|
+
isValidating,
|
|
250
|
+
isSaving,
|
|
251
|
+
showSuccess,
|
|
252
|
+
characterLimit: CHARACTER_LIMIT,
|
|
253
|
+
charactersRemaining: CHARACTER_LIMIT - editValue.length,
|
|
254
|
+
editLimitText: props.editLimitText,
|
|
255
|
+
editLimitReachedText: props.editLimitReachedText,
|
|
256
|
+
supportLinkText: props.supportLinkText,
|
|
257
|
+
customizeDisabled,
|
|
258
|
+
customizeDisabledTooltip: props.customizeDisabledTooltip,
|
|
259
|
+
onCustomizeClick,
|
|
260
|
+
onEditValueChange,
|
|
261
|
+
onSave,
|
|
262
|
+
onCancel,
|
|
263
|
+
};
|
|
60
264
|
}
|
|
@@ -107,7 +107,6 @@ import * as LeadFormDropdownField from "../sqm-lead-form/LeadFormDropdownField.s
|
|
|
107
107
|
import * as LeadCheckboxField from "../sqm-lead-form/LeadCheckboxField.stories";
|
|
108
108
|
import * as Skeleton from "../sqm-skeleton/Skeleton.stories";
|
|
109
109
|
import * as UserInfoFormView from "../tax-and-cash/sqm-user-info-form/UserInfoFormView.stories";
|
|
110
|
-
import * as PartnerInfoModal from "../sqm-partner-info-modal/PartnerInfoModal.stories";
|
|
111
110
|
import { ShadowViewAddon } from "../../ShadowViewAddon";
|
|
112
111
|
import { CucumberAddon } from "./CucumberAddon";
|
|
113
112
|
import { HookStoryAddon } from "./HookStoryAddon";
|
|
@@ -219,7 +218,6 @@ const stories = [
|
|
|
219
218
|
TaxAndCashRewardsTable,
|
|
220
219
|
TaxAndCashReferralTableRewardsCell,
|
|
221
220
|
TaxAndCashReferralTable,
|
|
222
|
-
PartnerInfoModal,
|
|
223
221
|
];
|
|
224
222
|
/**
|
|
225
223
|
* For internal documentation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
4
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32
|
|
4
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
5
5
|
const { errors, ...formState } = props.states.formState;
|
|
6
6
|
return {
|
|
7
7
|
0: {
|
|
@@ -10,54 +10,44 @@ export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
10
10
|
helpText: getValidationErrorMessage({
|
|
11
11
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
12
12
|
label: props.text.beneficiaryAccountNameLabel,
|
|
13
|
-
errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.beneficiaryAccountName) === null || _e === void 0 ? void 0 : _e.errorCode,
|
|
14
|
-
fieldName: "beneficiaryAccountName",
|
|
15
13
|
}),
|
|
16
14
|
})))),
|
|
17
15
|
},
|
|
18
16
|
1: {
|
|
19
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
17
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
20
18
|
class: "error-input",
|
|
21
19
|
helpText: getValidationErrorMessage({
|
|
22
|
-
type: (
|
|
20
|
+
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
23
21
|
label: props.text.bankAccountTypeLabel,
|
|
24
|
-
errorCode: (_k = (_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.bankAccountType) === null || _k === void 0 ? void 0 : _k.errorCode,
|
|
25
|
-
fieldName: "bankAccountType",
|
|
26
22
|
}),
|
|
27
23
|
})),
|
|
28
24
|
h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
29
25
|
h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
30
26
|
},
|
|
31
27
|
2: {
|
|
32
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((
|
|
28
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
33
29
|
class: "error-input",
|
|
34
30
|
helpText: getValidationErrorMessage({
|
|
35
|
-
type: (
|
|
31
|
+
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
36
32
|
label: props.text.bankAccountNumberLabel,
|
|
37
|
-
errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.bankAccountNumber) === null || _q === void 0 ? void 0 : _q.errorCode,
|
|
38
|
-
fieldName: "bankAccountNumber",
|
|
39
33
|
}),
|
|
40
34
|
})))),
|
|
41
35
|
},
|
|
42
36
|
3: {
|
|
43
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((
|
|
37
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
44
38
|
class: "error-input",
|
|
45
39
|
helpText: getValidationErrorMessage({
|
|
46
|
-
type: (
|
|
40
|
+
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
47
41
|
label: props.text.ibanLabel,
|
|
48
|
-
errorCode: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankAccountNumber) === null || _v === void 0 ? void 0 : _v.errorCode,
|
|
49
|
-
fieldName: "bankAccountNumber",
|
|
50
42
|
}),
|
|
51
43
|
})))),
|
|
52
44
|
},
|
|
53
45
|
4: {
|
|
54
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
46
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
55
47
|
class: "error-input",
|
|
56
48
|
helpText: getValidationErrorMessage({
|
|
57
|
-
type: (
|
|
49
|
+
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
58
50
|
label: props.text.swiftCodeLabel,
|
|
59
|
-
errorCode: (_0 = (_z = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _z === void 0 ? void 0 : _z.swiftCode) === null || _0 === void 0 ? void 0 : _0.errorCode,
|
|
60
|
-
fieldName: "swiftCode",
|
|
61
51
|
}),
|
|
62
52
|
})))),
|
|
63
53
|
},
|
|
@@ -67,41 +57,35 @@ export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
67
57
|
defaultMessage: props.text.routingCodeLabel,
|
|
68
58
|
}, {
|
|
69
59
|
bankCountry,
|
|
70
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
60
|
+
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.routingCode) && {
|
|
71
61
|
class: "error-input",
|
|
72
62
|
helpText: getValidationErrorMessage({
|
|
73
|
-
type: (
|
|
63
|
+
type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.routingCode) === null || _t === void 0 ? void 0 : _t.type,
|
|
74
64
|
label: intl.formatMessage({
|
|
75
65
|
id: "routingCodeErrorText",
|
|
76
66
|
defaultMessage: props.text.routingCodeLabel,
|
|
77
67
|
}, {
|
|
78
68
|
bankCountry,
|
|
79
69
|
}),
|
|
80
|
-
errorCode: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.routingCode) === null || _5 === void 0 ? void 0 : _5.errorCode,
|
|
81
|
-
fieldName: "routingCode",
|
|
82
70
|
}),
|
|
83
71
|
})))),
|
|
84
72
|
},
|
|
85
73
|
6: {
|
|
86
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
74
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
87
75
|
class: "error-input",
|
|
88
76
|
helpText: getValidationErrorMessage({
|
|
89
|
-
type: (
|
|
77
|
+
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
90
78
|
label: props.text.bankNameLabel,
|
|
91
|
-
errorCode: (_10 = (_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.bankName) === null || _10 === void 0 ? void 0 : _10.errorCode,
|
|
92
|
-
fieldName: "bankName",
|
|
93
79
|
}),
|
|
94
80
|
})))),
|
|
95
81
|
},
|
|
96
82
|
7: {
|
|
97
83
|
input: [
|
|
98
|
-
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
84
|
+
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
99
85
|
class: "error-input",
|
|
100
86
|
helpText: getValidationErrorMessage({
|
|
101
|
-
type: (
|
|
87
|
+
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
102
88
|
label: props.text.classificationLabel,
|
|
103
|
-
errorCode: (_15 = (_14 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _14 === void 0 ? void 0 : _14.beneficiaryClassification) === null || _15 === void 0 ? void 0 : _15.errorCode,
|
|
104
|
-
fieldName: "beneficiaryClassification",
|
|
105
89
|
}),
|
|
106
90
|
})),
|
|
107
91
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -112,122 +96,100 @@ export function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
112
96
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
113
97
|
}, {
|
|
114
98
|
bankCountry,
|
|
115
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
99
|
+
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_0 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _0 === void 0 ? void 0 : _0.beneficiaryTaxPayerId) && {
|
|
116
100
|
class: "error-input",
|
|
117
101
|
helpText: getValidationErrorMessage({
|
|
118
|
-
type: (
|
|
102
|
+
type: (_2 = (_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.beneficiaryTaxPayerId) === null || _2 === void 0 ? void 0 : _2.type,
|
|
119
103
|
label: props.text.taxPayerIdLabel,
|
|
120
|
-
errorCode: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.taxPayerId) === null || _20 === void 0 ? void 0 : _20.errorCode,
|
|
121
|
-
fieldName: "taxPayerId",
|
|
122
104
|
}),
|
|
123
105
|
}))),
|
|
124
106
|
],
|
|
125
107
|
},
|
|
126
108
|
8: {
|
|
127
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
109
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
128
110
|
class: "error-input",
|
|
129
111
|
helpText: getValidationErrorMessage({
|
|
130
|
-
type: (
|
|
112
|
+
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
131
113
|
label: props.text.classificationCPFLabel,
|
|
132
|
-
errorCode: (_25 = (_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.beneficiaryClassification) === null || _25 === void 0 ? void 0 : _25.errorCode,
|
|
133
|
-
fieldName: "beneficiaryClassification",
|
|
134
114
|
}),
|
|
135
115
|
})),
|
|
136
116
|
h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
137
117
|
h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
138
118
|
},
|
|
139
119
|
9: {
|
|
140
|
-
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
120
|
+
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
141
121
|
class: "error-input",
|
|
142
122
|
helpText: getValidationErrorMessage({
|
|
143
|
-
type: (
|
|
123
|
+
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
144
124
|
label: props.text.patronymicNameLabel,
|
|
145
|
-
errorCode: (_30 = (_29 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _29 === void 0 ? void 0 : _29.patronymicName) === null || _30 === void 0 ? void 0 : _30.errorCode,
|
|
146
|
-
fieldName: "patronymicName",
|
|
147
125
|
}),
|
|
148
126
|
})))),
|
|
149
127
|
},
|
|
150
128
|
10: {
|
|
151
|
-
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
129
|
+
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
152
130
|
class: "error-input",
|
|
153
131
|
helpText: getValidationErrorMessage({
|
|
154
|
-
type: (
|
|
132
|
+
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
155
133
|
label: props.text.voCodeLabel,
|
|
156
|
-
errorCode: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.voCode) === null || _35 === void 0 ? void 0 : _35.errorCode,
|
|
157
|
-
fieldName: "voCode",
|
|
158
134
|
}),
|
|
159
135
|
})))),
|
|
160
136
|
},
|
|
161
137
|
11: {
|
|
162
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
138
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
163
139
|
class: "error-input",
|
|
164
140
|
helpText: getValidationErrorMessage({
|
|
165
|
-
type: (
|
|
141
|
+
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
166
142
|
label: props.text.agencyCodeLabel,
|
|
167
|
-
errorCode: (_40 = (_39 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _39 === void 0 ? void 0 : _39.agencyCode) === null || _40 === void 0 ? void 0 : _40.errorCode,
|
|
168
|
-
fieldName: "agencyCode",
|
|
169
143
|
}),
|
|
170
144
|
})))),
|
|
171
145
|
},
|
|
172
146
|
12: {
|
|
173
147
|
input: [
|
|
174
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
148
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
175
149
|
class: "error-input",
|
|
176
150
|
helpText: getValidationErrorMessage({
|
|
177
|
-
type: (
|
|
151
|
+
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
178
152
|
label: props.text.bankAddressLabel,
|
|
179
|
-
errorCode: (_45 = (_44 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _44 === void 0 ? void 0 : _44.bankAddress) === null || _45 === void 0 ? void 0 : _45.errorCode,
|
|
180
|
-
fieldName: "bankAddress",
|
|
181
153
|
}),
|
|
182
154
|
}))),
|
|
183
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
155
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
184
156
|
class: "error-input",
|
|
185
157
|
helpText: getValidationErrorMessage({
|
|
186
|
-
type: (
|
|
158
|
+
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
187
159
|
label: props.text.bankCityLabel,
|
|
188
|
-
errorCode: (_50 = (_49 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _49 === void 0 ? void 0 : _49.bankCity) === null || _50 === void 0 ? void 0 : _50.errorCode,
|
|
189
|
-
fieldName: "bankCity",
|
|
190
160
|
}),
|
|
191
161
|
}))),
|
|
192
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
162
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
193
163
|
class: "error-input",
|
|
194
164
|
helpText: getValidationErrorMessage({
|
|
195
|
-
type: (
|
|
165
|
+
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
196
166
|
label: props.text.bankStateLabel,
|
|
197
|
-
errorCode: (_55 = (_54 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _54 === void 0 ? void 0 : _54.bankState) === null || _55 === void 0 ? void 0 : _55.errorCode,
|
|
198
|
-
fieldName: "bankState",
|
|
199
167
|
}),
|
|
200
168
|
}))),
|
|
201
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
169
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
202
170
|
class: "error-input",
|
|
203
171
|
helpText: getValidationErrorMessage({
|
|
204
|
-
type: (
|
|
172
|
+
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
205
173
|
label: props.text.bankPostalCodeLabel,
|
|
206
|
-
errorCode: (_60 = (_59 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _59 === void 0 ? void 0 : _59.bankPostalCode) === null || _60 === void 0 ? void 0 : _60.errorCode,
|
|
207
|
-
fieldName: "bankPostalCode",
|
|
208
174
|
}),
|
|
209
175
|
}))),
|
|
210
176
|
],
|
|
211
177
|
},
|
|
212
178
|
13: {
|
|
213
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
179
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
214
180
|
class: "error-input",
|
|
215
181
|
helpText: getValidationErrorMessage({
|
|
216
|
-
type: (
|
|
182
|
+
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
217
183
|
label: props.text.branchCodeLabel,
|
|
218
|
-
errorCode: (_65 = (_64 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _64 === void 0 ? void 0 : _64.branchCode) === null || _65 === void 0 ? void 0 : _65.errorCode,
|
|
219
|
-
fieldName: "branchCode",
|
|
220
184
|
}),
|
|
221
185
|
})))),
|
|
222
186
|
},
|
|
223
187
|
14: {
|
|
224
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
188
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
225
189
|
class: "error-input",
|
|
226
190
|
helpText: getValidationErrorMessage({
|
|
227
|
-
type: (
|
|
191
|
+
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
228
192
|
label: props.text.classificationLabel,
|
|
229
|
-
errorCode: (_70 = (_69 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _69 === void 0 ? void 0 : _69.beneficiaryClassification) === null || _70 === void 0 ? void 0 : _70.errorCode,
|
|
230
|
-
fieldName: "beneficiaryClassification",
|
|
231
193
|
}),
|
|
232
194
|
})),
|
|
233
195
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|