@saasquatch/mint-components 2.1.8-0 → 2.1.8-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-1d15cdf7.js → ShadowViewAddon-a26deae6.js} +1 -1
- 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 +54 -395
- package/dist/cjs/sqm-big-stat_45.cjs.entry.js +9 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- 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 -109
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/esm/{ShadowViewAddon-53b9090b.js → ShadowViewAddon-47f1e579.js} +1 -1
- 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 +54 -395
- package/dist/esm/sqm-big-stat_45.entry.js +9 -4
- package/dist/esm/sqm-stencilbook.entry.js +2 -1
- package/dist/esm-es5/{ShadowViewAddon-53b9090b.js → ShadowViewAddon-47f1e579.js} +1 -1
- 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 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-de7bb373.entry.js → p-0614dcbc.entry.js} +1 -1
- package/dist/mint-components/{p-e980472a.js → p-217dedde.js} +1 -1
- package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
- package/dist/mint-components/{p-0e6c90b1.entry.js → p-7ee8f2ed.entry.js} +3 -3
- package/dist/mint-components/{p-e9258d20.system.entry.js → p-bf545082.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -1
- package/dist/mint-components/{p-807ed3bf.system.js → p-ce050888.system.js} +1 -1
- package/dist/mint-components/p-d4f332a7.entry.js +106 -0
- package/dist/mint-components/{p-54ea8b9b.system.entry.js → p-de343dd0.system.entry.js} +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- 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 +10 -240
- 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/mint-components/p-17b32de7.system.entry.js +0 -1
- package/dist/mint-components/p-7d16ee0e.entry.js +0 -108
|
@@ -27,7 +27,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
|
|
|
27
27
|
const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
|
|
28
28
|
const utilities = require('./utilities-fcdb9504.js');
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-a26deae6.js');
|
|
31
31
|
require('./sqm-portal-container-view-70a47420.js');
|
|
32
32
|
const data = require('./data-8c8a08f6.js');
|
|
33
33
|
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
@@ -4620,6 +4620,11 @@ const SqmReferralIframe = class {
|
|
|
4620
4620
|
* @uiName IFrame width
|
|
4621
4621
|
*/
|
|
4622
4622
|
this.iframeWidth = "100%";
|
|
4623
|
+
/**
|
|
4624
|
+
* Override the default parameter name used in the iframe
|
|
4625
|
+
* @uiName Referral code parameter name
|
|
4626
|
+
*/
|
|
4627
|
+
this.codeParam = "rsCode";
|
|
4623
4628
|
domContextHooks_module.h$1(this);
|
|
4624
4629
|
}
|
|
4625
4630
|
disconnectedCallback() { }
|
|
@@ -6718,7 +6723,7 @@ const TaxAndCashMonolith = class {
|
|
|
6718
6723
|
* @uiName Indirect tax number field label
|
|
6719
6724
|
* @uiGroup Step 2 Properties
|
|
6720
6725
|
*/
|
|
6721
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
6726
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
|
|
6722
6727
|
/**
|
|
6723
6728
|
* @uiName Province field label
|
|
6724
6729
|
* @uiGroup Step 2 Properties
|
|
@@ -6728,7 +6733,7 @@ const TaxAndCashMonolith = class {
|
|
|
6728
6733
|
* @uiName Missing indirect tax number error message
|
|
6729
6734
|
* @uiGroup Step 2 Properties
|
|
6730
6735
|
*/
|
|
6731
|
-
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
6736
|
+
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
6732
6737
|
/**
|
|
6733
6738
|
* Displayed to participants registered for QST.
|
|
6734
6739
|
* @uiName QST number field label
|
|
@@ -7296,7 +7301,7 @@ const TaxAndCashMonolith = class {
|
|
|
7296
7301
|
* @uiName Payout status badge
|
|
7297
7302
|
* @uiGroup Dashboard Properties
|
|
7298
7303
|
*/
|
|
7299
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
7304
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
7300
7305
|
/**
|
|
7301
7306
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
7302
7307
|
* @uiName Payout schedule by threshold text
|
|
@@ -33,7 +33,7 @@ require('./utilities-fcdb9504.js');
|
|
|
33
33
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-6b1acd90.js');
|
|
34
34
|
require('./ErrorView-ee7b0f36.js');
|
|
35
35
|
const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
|
|
36
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
36
|
+
const ShadowViewAddon = require('./ShadowViewAddon-a26deae6.js');
|
|
37
37
|
const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
|
|
38
38
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
|
|
39
39
|
const data = require('./data-8c8a08f6.js');
|
|
@@ -10704,6 +10704,7 @@ const props$1 = {
|
|
|
10704
10704
|
iframeSrc: "https://example.com",
|
|
10705
10705
|
iframeHeight: "100%",
|
|
10706
10706
|
iframeWidth: "100%",
|
|
10707
|
+
codeParam: "rsCode",
|
|
10707
10708
|
},
|
|
10708
10709
|
},
|
|
10709
10710
|
};
|
|
@@ -25,5 +25,5 @@ export function ReferralIframeView(props) {
|
|
|
25
25
|
const styleString = sheet.toString();
|
|
26
26
|
return (h("div", { class: sheet.classes.Container },
|
|
27
27
|
h("style", { type: "text/css" }, styleString),
|
|
28
|
-
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}
|
|
28
|
+
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?${encodeURIComponent(content.codeParam)}=${data.shareCode}` })));
|
|
29
29
|
}
|
|
@@ -22,6 +22,11 @@ export class SqmReferralIframe {
|
|
|
22
22
|
* @uiName IFrame width
|
|
23
23
|
*/
|
|
24
24
|
this.iframeWidth = "100%";
|
|
25
|
+
/**
|
|
26
|
+
* Override the default parameter name used in the iframe
|
|
27
|
+
* @uiName Referral code parameter name
|
|
28
|
+
*/
|
|
29
|
+
this.codeParam = "rsCode";
|
|
25
30
|
withHooks(this);
|
|
26
31
|
}
|
|
27
32
|
disconnectedCallback() { }
|
|
@@ -108,12 +113,33 @@ export class SqmReferralIframe {
|
|
|
108
113
|
"reflect": false,
|
|
109
114
|
"defaultValue": "\"100%\""
|
|
110
115
|
},
|
|
116
|
+
"codeParam": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [{
|
|
128
|
+
"text": "Referral code parameter name",
|
|
129
|
+
"name": "uiName"
|
|
130
|
+
}],
|
|
131
|
+
"text": "Override the default parameter name used in the iframe"
|
|
132
|
+
},
|
|
133
|
+
"attribute": "code-param",
|
|
134
|
+
"reflect": false,
|
|
135
|
+
"defaultValue": "\"rsCode\""
|
|
136
|
+
},
|
|
111
137
|
"demoData": {
|
|
112
138
|
"type": "unknown",
|
|
113
139
|
"mutable": false,
|
|
114
140
|
"complexType": {
|
|
115
141
|
"original": "DemoData<ReferralIframeViewProps>",
|
|
116
|
-
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }",
|
|
142
|
+
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; codeParam: string; }; }; data?: { shareCode: string; }; }",
|
|
117
143
|
"references": {
|
|
118
144
|
"DemoData": {
|
|
119
145
|
"location": "import",
|
|
@@ -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),
|