@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.
Files changed (50) hide show
  1. package/dist/cjs/{ShadowViewAddon-1d15cdf7.js → ShadowViewAddon-a26deae6.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +54 -395
  5. package/dist/cjs/sqm-big-stat_45.cjs.entry.js +9 -4
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -1
  7. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  8. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  9. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  10. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  11. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  12. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -109
  13. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  14. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  17. package/dist/esm/{ShadowViewAddon-53b9090b.js → ShadowViewAddon-47f1e579.js} +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/mint-components.js +1 -1
  20. package/dist/esm/sqm-banking-info-form_10.entry.js +54 -395
  21. package/dist/esm/sqm-big-stat_45.entry.js +9 -4
  22. package/dist/esm/sqm-stencilbook.entry.js +2 -1
  23. package/dist/esm-es5/{ShadowViewAddon-53b9090b.js → ShadowViewAddon-47f1e579.js} +1 -1
  24. package/dist/esm-es5/loader.js +1 -1
  25. package/dist/esm-es5/mint-components.js +1 -1
  26. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  27. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -1
  28. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  29. package/dist/mint-components/mint-components.esm.js +1 -1
  30. package/dist/mint-components/{p-de7bb373.entry.js → p-0614dcbc.entry.js} +1 -1
  31. package/dist/mint-components/{p-e980472a.js → p-217dedde.js} +1 -1
  32. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  33. package/dist/mint-components/{p-0e6c90b1.entry.js → p-7ee8f2ed.entry.js} +3 -3
  34. package/dist/mint-components/{p-e9258d20.system.entry.js → p-bf545082.system.entry.js} +1 -1
  35. package/dist/mint-components/p-ca098be1.system.js +1 -1
  36. package/dist/mint-components/{p-807ed3bf.system.js → p-ce050888.system.js} +1 -1
  37. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  38. package/dist/mint-components/{p-54ea8b9b.system.entry.js → p-de343dd0.system.entry.js} +1 -1
  39. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  40. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  41. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  42. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  43. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  44. package/dist/types/components.d.ts +10 -240
  45. package/docs/docs.docx +0 -0
  46. package/docs/raisins.json +1 -1
  47. package/grapesjs/grapesjs.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/mint-components/p-17b32de7.system.entry.js +0 -1
  50. package/dist/mint-components/p-7d16ee0e.entry.js +0 -108
@@ -18,7 +18,7 @@ import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
18
18
  import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-46c0c289.js';
19
19
 
20
20
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
21
- 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, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70;
21
+ 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;
22
22
  const { errors, ...formState } = props.states.formState;
23
23
  return {
24
24
  0: {
@@ -27,54 +27,44 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
27
27
  helpText: getValidationErrorMessage({
28
28
  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,
29
29
  label: props.text.beneficiaryAccountNameLabel,
30
- 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,
31
- fieldName: "beneficiaryAccountName",
32
30
  }),
33
31
  })))),
34
32
  },
35
33
  1: {
36
- input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_f = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _f === void 0 ? void 0 : _f.bankAccountType) && {
34
+ 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) && {
37
35
  class: "error-input",
38
36
  helpText: getValidationErrorMessage({
39
- type: (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountType) === null || _h === void 0 ? void 0 : _h.type,
37
+ 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,
40
38
  label: props.text.bankAccountTypeLabel,
41
- 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,
42
- fieldName: "bankAccountType",
43
39
  }),
44
40
  })),
45
41
  h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
46
42
  h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
47
43
  },
48
44
  2: {
49
- input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) && {
45
+ 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) && {
50
46
  class: "error-input",
51
47
  helpText: getValidationErrorMessage({
52
- type: (_o = (_m = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _m === void 0 ? void 0 : _m.bankAccountNumber) === null || _o === void 0 ? void 0 : _o.type,
48
+ 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,
53
49
  label: props.text.bankAccountNumberLabel,
54
- 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,
55
- fieldName: "bankAccountNumber",
56
50
  }),
57
51
  })))),
58
52
  },
59
53
  3: {
60
- input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.bankAccountNumber) && {
54
+ 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) && {
61
55
  class: "error-input",
62
56
  helpText: getValidationErrorMessage({
63
- type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.bankAccountNumber) === null || _t === void 0 ? void 0 : _t.type,
57
+ 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,
64
58
  label: props.text.ibanLabel,
65
- 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,
66
- fieldName: "bankAccountNumber",
67
59
  }),
68
60
  })))),
69
61
  },
70
62
  4: {
71
- input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.swiftCode) && {
63
+ 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) && {
72
64
  class: "error-input",
73
65
  helpText: getValidationErrorMessage({
74
- type: (_y = (_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.swiftCode) === null || _y === void 0 ? void 0 : _y.type,
66
+ 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,
75
67
  label: props.text.swiftCodeLabel,
76
- 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,
77
- fieldName: "swiftCode",
78
68
  }),
79
69
  })))),
80
70
  },
@@ -84,41 +74,35 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
84
74
  defaultMessage: props.text.routingCodeLabel,
85
75
  }, {
86
76
  bankCountry,
87
- }), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.routingCode) && {
77
+ }), 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) && {
88
78
  class: "error-input",
89
79
  helpText: getValidationErrorMessage({
90
- type: (_3 = (_2 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _2 === void 0 ? void 0 : _2.routingCode) === null || _3 === void 0 ? void 0 : _3.type,
80
+ 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,
91
81
  label: intl.formatMessage({
92
82
  id: "routingCodeErrorText",
93
83
  defaultMessage: props.text.routingCodeLabel,
94
84
  }, {
95
85
  bankCountry,
96
86
  }),
97
- 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,
98
- fieldName: "routingCode",
99
87
  }),
100
88
  })))),
101
89
  },
102
90
  6: {
103
- input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.bankName) && {
91
+ 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) && {
104
92
  class: "error-input",
105
93
  helpText: getValidationErrorMessage({
106
- type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.bankName) === null || _8 === void 0 ? void 0 : _8.type,
94
+ 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,
107
95
  label: props.text.bankNameLabel,
108
- 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,
109
- fieldName: "bankName",
110
96
  }),
111
97
  })))),
112
98
  },
113
99
  7: {
114
100
  input: [
115
- h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_11 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _11 === void 0 ? void 0 : _11.beneficiaryClassification) && {
101
+ 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) && {
116
102
  class: "error-input",
117
103
  helpText: getValidationErrorMessage({
118
- type: (_13 = (_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.beneficiaryClassification) === null || _13 === void 0 ? void 0 : _13.type,
104
+ 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,
119
105
  label: props.text.classificationLabel,
120
- 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,
121
- fieldName: "beneficiaryClassification",
122
106
  }),
123
107
  })),
124
108
  h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -129,122 +113,100 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
129
113
  defaultMessage: props.text.taxPayerIdLabel,
130
114
  }, {
131
115
  bankCountry,
132
- }), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.beneficiaryTaxPayerId) && {
116
+ }), 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) && {
133
117
  class: "error-input",
134
118
  helpText: getValidationErrorMessage({
135
- type: (_18 = (_17 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _17 === void 0 ? void 0 : _17.beneficiaryTaxPayerId) === null || _18 === void 0 ? void 0 : _18.type,
119
+ 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,
136
120
  label: props.text.taxPayerIdLabel,
137
- 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,
138
- fieldName: "taxPayerId",
139
121
  }),
140
122
  }))),
141
123
  ],
142
124
  },
143
125
  8: {
144
- input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.beneficiaryClassification) && {
126
+ 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) && {
145
127
  class: "error-input",
146
128
  helpText: getValidationErrorMessage({
147
- type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.beneficiaryClassification) === null || _23 === void 0 ? void 0 : _23.type,
129
+ 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,
148
130
  label: props.text.classificationCPFLabel,
149
- 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,
150
- fieldName: "beneficiaryClassification",
151
131
  }),
152
132
  })),
153
133
  h("sl-menu-item", { value: "CPF" }, "CPF"),
154
134
  h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
155
135
  },
156
136
  9: {
157
- input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_26 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _26 === void 0 ? void 0 : _26.patronymicName) && {
137
+ 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) && {
158
138
  class: "error-input",
159
139
  helpText: getValidationErrorMessage({
160
- type: (_28 = (_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.patronymicName) === null || _28 === void 0 ? void 0 : _28.type,
140
+ 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,
161
141
  label: props.text.patronymicNameLabel,
162
- 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,
163
- fieldName: "patronymicName",
164
142
  }),
165
143
  })))),
166
144
  },
167
145
  10: {
168
- input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.voCode) && {
146
+ 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) && {
169
147
  class: "error-input",
170
148
  helpText: getValidationErrorMessage({
171
- type: (_33 = (_32 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _32 === void 0 ? void 0 : _32.voCode) === null || _33 === void 0 ? void 0 : _33.type,
149
+ 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,
172
150
  label: props.text.voCodeLabel,
173
- 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,
174
- fieldName: "voCode",
175
151
  }),
176
152
  })))),
177
153
  },
178
154
  11: {
179
- input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_36 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _36 === void 0 ? void 0 : _36.agencyCode) && {
155
+ 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) && {
180
156
  class: "error-input",
181
157
  helpText: getValidationErrorMessage({
182
- type: (_38 = (_37 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _37 === void 0 ? void 0 : _37.agencyCode) === null || _38 === void 0 ? void 0 : _38.type,
158
+ 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,
183
159
  label: props.text.agencyCodeLabel,
184
- 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,
185
- fieldName: "agencyCode",
186
160
  }),
187
161
  })))),
188
162
  },
189
163
  12: {
190
164
  input: [
191
- h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_41 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _41 === void 0 ? void 0 : _41.bankAddress) && {
165
+ 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) && {
192
166
  class: "error-input",
193
167
  helpText: getValidationErrorMessage({
194
- type: (_43 = (_42 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _42 === void 0 ? void 0 : _42.bankAddress) === null || _43 === void 0 ? void 0 : _43.type,
168
+ 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,
195
169
  label: props.text.bankAddressLabel,
196
- 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,
197
- fieldName: "bankAddress",
198
170
  }),
199
171
  }))),
200
- h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_46 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _46 === void 0 ? void 0 : _46.bankCity) && {
172
+ 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) && {
201
173
  class: "error-input",
202
174
  helpText: getValidationErrorMessage({
203
- type: (_48 = (_47 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _47 === void 0 ? void 0 : _47.bankCity) === null || _48 === void 0 ? void 0 : _48.type,
175
+ 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,
204
176
  label: props.text.bankCityLabel,
205
- 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,
206
- fieldName: "bankCity",
207
177
  }),
208
178
  }))),
209
- h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_51 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _51 === void 0 ? void 0 : _51.bankState) && {
179
+ 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) && {
210
180
  class: "error-input",
211
181
  helpText: getValidationErrorMessage({
212
- type: (_53 = (_52 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _52 === void 0 ? void 0 : _52.bankState) === null || _53 === void 0 ? void 0 : _53.type,
182
+ 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,
213
183
  label: props.text.bankStateLabel,
214
- 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,
215
- fieldName: "bankState",
216
184
  }),
217
185
  }))),
218
- h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_56 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _56 === void 0 ? void 0 : _56.bankPostalCode) && {
186
+ 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) && {
219
187
  class: "error-input",
220
188
  helpText: getValidationErrorMessage({
221
- type: (_58 = (_57 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _57 === void 0 ? void 0 : _57.bankPostalCode) === null || _58 === void 0 ? void 0 : _58.type,
189
+ 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,
222
190
  label: props.text.bankPostalCodeLabel,
223
- 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,
224
- fieldName: "bankPostalCode",
225
191
  }),
226
192
  }))),
227
193
  ],
228
194
  },
229
195
  13: {
230
- input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_61 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _61 === void 0 ? void 0 : _61.branchCode) && {
196
+ 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) && {
231
197
  class: "error-input",
232
198
  helpText: getValidationErrorMessage({
233
- type: (_63 = (_62 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _62 === void 0 ? void 0 : _62.branchCode) === null || _63 === void 0 ? void 0 : _63.type,
199
+ 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,
234
200
  label: props.text.branchCodeLabel,
235
- 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,
236
- fieldName: "branchCode",
237
201
  }),
238
202
  })))),
239
203
  },
240
204
  14: {
241
- input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_66 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _66 === void 0 ? void 0 : _66.beneficiaryClassification) && {
205
+ 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) && {
242
206
  class: "error-input",
243
207
  helpText: getValidationErrorMessage({
244
- type: (_68 = (_67 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _67 === void 0 ? void 0 : _67.beneficiaryClassification) === null || _68 === void 0 ? void 0 : _68.type,
208
+ 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,
245
209
  label: props.text.classificationLabel,
246
- 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,
247
- fieldName: "beneficiaryClassification",
248
210
  }),
249
211
  })),
250
212
  h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -837,109 +799,6 @@ const paypalFeeMap = {
837
799
  const ACH_PAYMENT_METHOD = 3;
838
800
  const WIRE_PAYMENT_METHOD = 5;
839
801
  const PAYPAL_PAYMENT_METHOD = 7;
840
- /**
841
- * Maps GraphQL validation error field names to form field names.
842
- *
843
- * The Impact API returns UpperCamelCase field names (e.g. `BankAccountNumber`).
844
- * The GraphQL layer in `UserServiceImpl.java` converts these to lowerCamelCase
845
- * via `CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, errorDto.field)`.
846
- *
847
- * Most converted field names already match the form field names exactly
848
- * (e.g. `bankAccountNumber`, `swiftCode`, `routingCode`). Only entries
849
- * where the GraphQL field name differs from the form field name need
850
- * to be listed here.
851
- */
852
- const API_FIELD_TO_FORM_FIELD = {
853
- // bankProvinceState → form uses bankState
854
- bankProvinceState: "bankState",
855
- };
856
- /**
857
- * Maps Impact API error code paths (from validationErrors[].errorPath) to short,
858
- * readable frontend error codes used in the ICU select props.
859
- *
860
- * The Impact API returns a stable dot-delimited error path (e.g.
861
- * "withdrawal.settings.error.routingcode") alongside the human-readable message.
862
- * The GraphQL layer exposes this as `errorPath`. The keys below match those paths
863
- * to short frontend codes used in the ICU `{errorCode, select, ...}` props.
864
- */
865
- const API_ERROR_PATH_TO_FRONTEND = {
866
- // Beneficiary account name
867
- "withdrawal.settings.error.empty_beneficiaryname": "empty",
868
- "withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
869
- "withdrawal.settings.error.numeric_beneficiaryname": "numeric",
870
- "withdrawal_settings.error.beneficiaryname.size": "tooLong",
871
- "withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
872
- "withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
873
- "withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
874
- "withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
875
- "withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
876
- // Bank account number
877
- "withdrawal.settings.error.accountnumber.empty": "empty",
878
- "withdrawal.settings.error.accountnumber.uk": "invalidUk",
879
- "withdrawal.settings.error.bankaccount.invalid": "invalid",
880
- // IBAN
881
- "withdrawal.settings.error.iban": "ibanEmpty",
882
- "withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
883
- "withdrawal.settings.error.iban.invalid": "ibanInvalid",
884
- "withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
885
- // Routing code
886
- "withdrawal.settings.error.bsbNumber": "invalidBsb",
887
- "withdrawal.settings.error.sortcode": "invalidSortCode",
888
- "withdrawal.settings.error.routingNumber": "empty",
889
- "withdrawal.settings.error.routingcode": "invalid",
890
- // SWIFT / BIC
891
- "withdrawal.settings.error.bic": "empty",
892
- "withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
893
- "withdrawal.settings.error.bic.invalid": "invalid",
894
- // Bank account type
895
- "global.error.invalid.accounttype": "empty",
896
- // Bank name
897
- "withdrawal.settings.error.bankName": "empty",
898
- // Tax payer ID
899
- "withdrawal.settings.error.taxPayerId": "empty",
900
- "withdrawal.settings.error.taxPayerId.ar": "emptyAr",
901
- "withdrawal.settings.error.taxPayerId.kr": "emptyKr",
902
- "withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
903
- "withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
904
- "withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
905
- "withdrawal.settings.error.taxPayerId.invalid": "invalid",
906
- "withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
907
- "withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
908
- "withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
909
- "withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
910
- "withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
911
- // Patronymic name
912
- "withdrawal.settings.error.patronymicName": "empty",
913
- "withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
914
- // VO code
915
- "withdrawal.settings.error.voCode": "empty",
916
- "withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
917
- // Agency code
918
- "withdrawal.settings.error.agencyCode": "empty",
919
- "withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
920
- "withdrawal.settings.error.agencyCode.length": "tooShort",
921
- // Bank address fields
922
- "withdrawal.settings.error.bankAddress": "empty",
923
- "withdrawal.settings.error.bankCity": "empty",
924
- "withdrawal.settings.error.bankProvinceState": "empty",
925
- "withdrawal.settings.error.bankPostalCode": "empty",
926
- // Branch code / name
927
- "withdrawal.settings.error.branchCode": "invalid",
928
- "withdrawal.settings.error.branchName": "empty",
929
- // Classification code
930
- "withdrawal.settings.error.classificationCode.invalid": "empty",
931
- "withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
932
- // PayPal
933
- "payment.error.email": "empty",
934
- "payment.error.paypal_not_supported": "unsupportedCurrency",
935
- "payment.error.email.invalid": "invalidEmail",
936
- "payment.error.paypal_verification_incomplete": "verificationIncomplete",
937
- // Payment schedule
938
- "payment.error.no_threshold": "empty",
939
- "payment.error.invalid_threshold": "invalid",
940
- "payment.error.no_dayOfMonth": "empty",
941
- "payment.error.invalid_dayOfMonth": "invalid",
942
- };
943
802
  function getFormInputs({ bitset, formMap }) {
944
803
  // Convert bitset to binary representation
945
804
  const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
@@ -963,7 +822,6 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
963
822
  validationErrors {
964
823
  field
965
824
  message
966
- errorPath
967
825
  }
968
826
  }
969
827
  }
@@ -979,7 +837,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
979
837
  validationErrors {
980
838
  field
981
839
  message
982
- errorPath
983
840
  }
984
841
  }
985
842
  }
@@ -1152,13 +1009,10 @@ function useBankingInfoForm(props) {
1152
1009
  else if (!success) {
1153
1010
  console.error("Validation failed: ", validationErrors);
1154
1011
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1155
- const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
1156
- const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
1157
1012
  return {
1158
1013
  ...agg,
1159
- [formField]: {
1014
+ [error.field]: {
1160
1015
  type: "invalid",
1161
- errorCode,
1162
1016
  },
1163
1017
  };
1164
1018
  }, {});
@@ -1573,156 +1427,6 @@ const BankingInfoForm = class {
1573
1427
  * @uiName Information modal button text
1574
1428
  */
1575
1429
  this.modalButtonText = "I understand, update my information";
1576
- // ──────────────────────────────────────────────────────────────────
1577
- // Per-field validation error messages
1578
- // Each prop uses ICU select on {errorCode} to pick the right message.
1579
- // Error codes are short frontend keys mapped from the API error codes.
1580
- // The `other` branch displays the raw API message directly via {errorCode},
1581
- // which is already human-readable English (e.g. "Invalid Routing Code").
1582
- // ──────────────────────────────────────────────────────────────────
1583
- /**
1584
- * Error messages for the beneficiary / account holder name field.
1585
- * Supports error codes: empty, invalidCharacters, numeric, tooLong,
1586
- * nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
1587
- * @uiName Beneficiary account name error
1588
- * @uiWidget textArea
1589
- */
1590
- this.beneficiaryAccountNameError = "{errorCode, select, empty {Account holder name is required} invalidCharacters {Account holder name contains invalid characters} numeric {Account holder name cannot be purely numeric} tooLong {Account holder name must be 70 characters or fewer} nonEnglish {Account holder name must contain only English characters for this currency} businessNameMismatch {Beneficiary name must match the name on your tax document} nameMismatch {Beneficiary name must match the name on your tax document} businessPayeeMismatch {Payee name must match the name on your tax document} payeeMismatch {Payee name must match the name on your tax document} other {{errorCode}}}";
1591
- /**
1592
- * Error messages for the bank account number / IBAN field.
1593
- * Supports error codes: empty, invalidUk, invalid, ibanEmpty,
1594
- * ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
1595
- * @uiName Bank account number / IBAN error
1596
- * @uiWidget textArea
1597
- */
1598
- this.bankAccountNumberError = "{errorCode, select, empty {Account number is required} invalidUk {Please enter a valid UK account number} invalid {Account number is invalid} ibanEmpty {IBAN is required} ibanAlphanumeric {IBAN must contain only letters and numbers} ibanInvalid {IBAN is invalid} ibanCountryMismatch {UK accounts must use an IBAN starting with GB} other {{errorCode}}}";
1599
- /**
1600
- * Error messages for the routing code / sort code / BSB field.
1601
- * Supports error codes: invalidBsb, invalidSortCode, empty, invalid
1602
- * @uiName Routing code error
1603
- * @uiWidget textArea
1604
- */
1605
- this.routingCodeError = "{errorCode, select, invalidBsb {Please enter a valid BSB number} invalidSortCode {Please enter a valid sort code} empty {Routing number is required} invalid {Routing number is invalid} other {{errorCode}}}";
1606
- /**
1607
- * Error messages for the SWIFT / BIC code field.
1608
- * Supports error codes: empty, alphanumeric, invalid
1609
- * @uiName SWIFT code error
1610
- * @uiWidget textArea
1611
- */
1612
- this.swiftCodeError = "{errorCode, select, empty {SWIFT/BIC code is required} alphanumeric {SWIFT/BIC code must contain only letters and numbers} invalid {SWIFT/BIC code is invalid} other {{errorCode}}}";
1613
- /**
1614
- * Error messages for the bank account type field.
1615
- * Supports error codes: empty
1616
- * @uiName Bank account type error
1617
- * @uiWidget textArea
1618
- */
1619
- this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
1620
- /**
1621
- * Error messages for the bank name field.
1622
- * Supports error codes: empty
1623
- * @uiName Bank name error
1624
- * @uiWidget textArea
1625
- */
1626
- this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
1627
- /**
1628
- * Error messages for the tax payer ID / classification entity field.
1629
- * Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
1630
- * alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
1631
- * @uiName Tax payer ID error
1632
- * @uiWidget textArea
1633
- */
1634
- this.taxPayerIdError = "{errorCode, select, empty {Tax payer ID is required} emptyAr {CUIT/CUIL is required} emptyKr {Classification ID is required} alphanumeric {Tax payer ID must contain only letters and numbers} alphanumericAr {CUIT/CUIL must contain only letters and numbers} alphanumericKr {Classification ID must contain only letters and numbers} invalid {Tax payer ID is invalid} invalidAr {CUIT/CUIL must be 11 characters} invalidKr {Classification ID length is invalid} invalidKzt {Tax payer ID must be 12 characters for KZT} cnpjTooShort {CNPJ must be at least 14 characters} cpfTooShort {CPF must be at least 11 characters} other {{errorCode}}}";
1635
- /**
1636
- * Error messages for the patronymic name field.
1637
- * Supports error codes: empty, alphanumeric
1638
- * @uiName Patronymic name error
1639
- * @uiWidget textArea
1640
- */
1641
- this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
1642
- /**
1643
- * Error messages for the VO code field.
1644
- * Supports error codes: empty, alphanumeric
1645
- * @uiName VO code error
1646
- * @uiWidget textArea
1647
- */
1648
- this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
1649
- /**
1650
- * Error messages for the agency code field.
1651
- * Supports error codes: empty, alphanumeric, tooShort
1652
- * @uiName Agency code error
1653
- * @uiWidget textArea
1654
- */
1655
- this.agencyCodeError = "{errorCode, select, empty {Agency code is required} alphanumeric {Agency code must contain only letters and numbers} tooShort {Agency code must be at least 5 characters} other {{errorCode}}}";
1656
- /**
1657
- * Error messages for the bank address field.
1658
- * Supports error codes: empty
1659
- * @uiName Bank address error
1660
- * @uiWidget textArea
1661
- */
1662
- this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
1663
- /**
1664
- * Error messages for the bank city field.
1665
- * Supports error codes: empty
1666
- * @uiName Bank city error
1667
- * @uiWidget textArea
1668
- */
1669
- this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
1670
- /**
1671
- * Error messages for the bank province/state field.
1672
- * Supports error codes: empty
1673
- * @uiName Bank province/state error
1674
- * @uiWidget textArea
1675
- */
1676
- this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
1677
- /**
1678
- * Error messages for the bank postal code field.
1679
- * Supports error codes: empty
1680
- * @uiName Bank postal code error
1681
- * @uiWidget textArea
1682
- */
1683
- this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
1684
- /**
1685
- * Error messages for the branch code field.
1686
- * Supports error codes: invalid
1687
- * @uiName Branch code error
1688
- * @uiWidget textArea
1689
- */
1690
- this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
1691
- /**
1692
- * Error messages for the branch name field.
1693
- * Supports error codes: empty
1694
- * @uiName Branch name error
1695
- * @uiWidget textArea
1696
- */
1697
- this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
1698
- /**
1699
- * Error messages for the classification code field.
1700
- * Supports error codes: empty, invalidKzt
1701
- * @uiName Classification code error
1702
- * @uiWidget textArea
1703
- */
1704
- this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
1705
- /**
1706
- * Error messages for the PayPal email field.
1707
- * Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
1708
- * @uiName PayPal email error
1709
- * @uiWidget textArea
1710
- */
1711
- this.paypalEmailError = "{errorCode, select, empty {PayPal email is required} unsupportedCurrency {PayPal is not supported for this currency} invalidEmail {Please enter a valid email address} verificationIncomplete {PayPal verification is not complete} other {{errorCode}}}";
1712
- /**
1713
- * Error messages for the payment threshold field.
1714
- * Supports error codes: empty, invalid
1715
- * @uiName Payment threshold error
1716
- * @uiWidget textArea
1717
- */
1718
- this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
1719
- /**
1720
- * Error messages for the payment day field.
1721
- * Supports error codes: empty, invalid
1722
- * @uiName Payment day error
1723
- * @uiWidget textArea
1724
- */
1725
- this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
1726
1430
  h$1(this);
1727
1431
  }
1728
1432
  disconnectedCallback() { }
@@ -1736,54 +1440,17 @@ const BankingInfoForm = class {
1736
1440
  loadingErrorAlertDescription: props.loadingErrorAlertDescription,
1737
1441
  loadingErrorAlertHeader: props.loadingErrorAlertHeader,
1738
1442
  },
1739
- errorMessages: {
1740
- beneficiaryAccountName: props.beneficiaryAccountNameError,
1741
- bankAccountNumber: props.bankAccountNumberError,
1742
- routingCode: props.routingCodeError,
1743
- swiftCode: props.swiftCodeError,
1744
- bankAccountType: props.bankAccountTypeError,
1745
- bankName: props.bankNameError,
1746
- taxPayerId: props.taxPayerIdError,
1747
- patronymicName: props.patronymicNameError,
1748
- voCode: props.voCodeError,
1749
- agencyCode: props.agencyCodeError,
1750
- bankAddress: props.bankAddressError,
1751
- bankCity: props.bankCityError,
1752
- bankState: props.bankStateError,
1753
- bankPostalCode: props.bankPostalCodeError,
1754
- branchCode: props.branchCodeError,
1755
- branchName: props.branchNameError,
1756
- beneficiaryClassification: props.classificationCodeError,
1757
- paypalEmailAddress: props.paypalEmailError,
1758
- paymentThreshold: props.paymentThresholdError,
1759
- paymentDay: props.paymentDayError,
1760
- },
1761
1443
  };
1762
1444
  }
1763
1445
  render() {
1764
- 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;
1446
+ 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;
1765
1447
  const props = isDemo()
1766
1448
  ? useDemoBankingInfoForm(this)
1767
1449
  : useBankingInfoForm(this);
1768
1450
  const { errors } = props.states.formState;
1769
1451
  const fieldRequiredError = this.fieldRequiredError;
1770
1452
  const fieldInvalidError = this.fieldInvalidError;
1771
- function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
1772
- var _a;
1773
- // If we have a specific error code from the API, try to use
1774
- // the per-field ICU error message template for a rich message
1775
- if (type === "invalid" && errorCode && fieldName) {
1776
- const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
1777
- if (errorTemplate) {
1778
- return intl.formatMessage({
1779
- id: `fieldError-${fieldName}-${errorCode}`,
1780
- defaultMessage: errorTemplate,
1781
- }, {
1782
- errorCode,
1783
- fieldName: label,
1784
- });
1785
- }
1786
- }
1453
+ function getValidationErrorMessage({ type, label, }) {
1787
1454
  if (type === "required") {
1788
1455
  return intl.formatMessage({
1789
1456
  id: `requiredText-${label}`,
@@ -1866,45 +1533,37 @@ const BankingInfoForm = class {
1866
1533
  helpText: getValidationErrorMessage({
1867
1534
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
1868
1535
  label: props.text.bankLocationLabel,
1869
- errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankCountry) === null || _e === void 0 ? void 0 : _e.errorCode,
1870
- fieldName: "bankCountry",
1871
1536
  }),
1872
1537
  })), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1873
1538
  // Stop shoelace intercepting key presses
1874
1539
  e.stopPropagation();
1875
1540
  }, "onSl-input": (e) => {
1876
1541
  props.callbacks.setCountrySearch(e.target.value);
1877
- } }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
1878
- _f.map((country) => {
1542
+ } }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
1543
+ _d.map((country) => {
1879
1544
  return (h("sl-menu-item", { value: country.countryCode }, country.displayName));
1880
- }), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
1881
- _h.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1545
+ }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1546
+ _f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1882
1547
  paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1883
- paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_k = (_j = props.states) === null || _j === void 0 ? void 0 : _j.formState) === null || _k === void 0 ? void 0 : _k.paymentThreshold) || "" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.paymentThreshold) && {
1548
+ paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1884
1549
  class: "error-input",
1885
1550
  helpText: getValidationErrorMessage({
1886
- type: (_o = (_m = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _m === void 0 ? void 0 : _m.paymentThreshold) === null || _o === void 0 ? void 0 : _o.type,
1551
+ type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
1887
1552
  label: props.text.paymentThresholdSelectLabel,
1888
- errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentThreshold) === null || _q === void 0 ? void 0 : _q.errorCode,
1889
- fieldName: "paymentThreshold",
1890
1553
  }),
1891
1554
  })), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1892
- paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_s = (_r = props.states) === null || _r === void 0 ? void 0 : _r.formState) === null || _s === void 0 ? void 0 : _s.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_t = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _t === void 0 ? void 0 : _t.paymentDay) && {
1555
+ paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1893
1556
  class: "error-input",
1894
1557
  helpText: getValidationErrorMessage({
1895
- type: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.paymentDay) === null || _v === void 0 ? void 0 : _v.type,
1558
+ type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
1896
1559
  label: props.text.paymentDaySelectLabel,
1897
- errorCode: (_x = (_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.paymentDay) === null || _x === void 0 ? void 0 : _x.errorCode,
1898
- fieldName: "paymentDay",
1899
1560
  }),
1900
1561
  })), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1901
- paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_z = (_y = props.states) === null || _y === void 0 ? void 0 : _y.formState) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_2 = (_1 = (_0 = props.states.formState) === null || _0 === void 0 ? void 0 : _0.errors) === null || _1 === void 0 ? void 0 : _1.inputErrors) === null || _2 === void 0 ? void 0 : _2.paypalEmailAddress) && {
1562
+ paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1902
1563
  class: "error-input",
1903
1564
  helpText: getValidationErrorMessage({
1904
- type: (_6 = (_5 = (_4 = (_3 = props.states.formState) === null || _3 === void 0 ? void 0 : _3.errors) === null || _4 === void 0 ? void 0 : _4.inputErrors) === null || _5 === void 0 ? void 0 : _5.paypalEmailAddress) === null || _6 === void 0 ? void 0 : _6.type,
1565
+ type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
1905
1566
  label: props.text.payPalInputLabel,
1906
- errorCode: (_10 = (_9 = (_8 = (_7 = props.states.formState) === null || _7 === void 0 ? void 0 : _7.errors) === null || _8 === void 0 ? void 0 : _8.inputErrors) === null || _9 === void 0 ? void 0 : _9.paypalEmailAddress) === null || _10 === void 0 ? void 0 : _10.errorCode,
1907
- fieldName: "paypalEmailAddress",
1908
1567
  }),
1909
1568
  })))),
1910
1569
  } })));
@@ -3153,7 +2812,7 @@ const IndirectTaxForm = class {
3153
2812
  /**
3154
2813
  * @uiName Indirect tax number field label
3155
2814
  */
3156
- this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
2815
+ this.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}}";
3157
2816
  /**
3158
2817
  * Displayed to participants registered for QST.
3159
2818
  * @uiName QST number field label
@@ -3192,7 +2851,7 @@ const IndirectTaxForm = class {
3192
2851
  /**
3193
2852
  * @uiName Missing indirect tax number error message
3194
2853
  */
3195
- this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
2854
+ this.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";
3196
2855
  /**
3197
2856
  * Placeholder text displayed in the country search dropdown
3198
2857
  * @uiName Country field placeholder text
@@ -4003,7 +3662,7 @@ const PayoutDetailsCard = class {
4003
3662
  * Badge text indicating payout status
4004
3663
  * @uiName Payout badge status text
4005
3664
  */
4006
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
3665
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
4007
3666
  /**
4008
3667
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4009
3668
  * @uiName Payout schedule by threshold text
@@ -5057,7 +4716,7 @@ const TaxAndCashDashboard = class {
5057
4716
  /**
5058
4717
  * @uiName Payout status badge
5059
4718
  */
5060
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4719
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
5061
4720
  /**
5062
4721
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5063
4722
  * @uiName Payout schedule by threshold text