@saasquatch/mint-components 2.3.0-6 → 2.3.0-8

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 (67) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +50 -743
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +4 -4
  3. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +16 -31
  4. package/dist/cjs/sqm-stencilbook.cjs.entry.js +253 -76
  5. package/dist/cjs/sqm-user-info-form-view-374a3f01.js +1427 -0
  6. package/dist/cjs/subregions-984e30d7.js +1505 -0
  7. package/dist/cjs/{useIndirectTaxForm-c3c1ec56.js → useIndirectTaxForm-112914a0.js} +5 -5
  8. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +16 -31
  9. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  10. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +6 -0
  11. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -2
  12. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +151 -0
  13. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -7
  14. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +22 -19
  15. package/dist/collection/components/tax-and-cash/utils.js +55 -0
  16. package/dist/esm/sqm-banking-info-form_10.entry.js +38 -731
  17. package/dist/esm/sqm-big-stat_47.entry.js +2 -2
  18. package/dist/esm/sqm-email-verification_2.entry.js +16 -31
  19. package/dist/esm/sqm-stencilbook.entry.js +217 -40
  20. package/dist/esm/sqm-user-info-form-view-5322525c.js +1421 -0
  21. package/dist/esm/subregions-7c9778d0.js +1492 -0
  22. package/dist/esm/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-a6ac7e7e.js} +1 -1
  23. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  24. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  25. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  26. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  27. package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +1 -0
  28. package/dist/esm-es5/subregions-7c9778d0.js +1 -0
  29. package/dist/esm-es5/{useIndirectTaxForm-b2888ea5.js → useIndirectTaxForm-a6ac7e7e.js} +1 -1
  30. package/dist/mint-components/mint-components.esm.js +1 -1
  31. package/dist/mint-components/p-1f387c7b.system.js +1 -1
  32. package/dist/mint-components/{p-abe9f5b1.js → p-2d4132fb.js} +4 -4
  33. package/dist/mint-components/{p-e7f09044.entry.js → p-459c4251.entry.js} +6 -31
  34. package/dist/mint-components/p-5623f1e0.js +1 -0
  35. package/dist/mint-components/{p-b419f9ac.entry.js → p-5bc707cf.entry.js} +1 -1
  36. package/dist/mint-components/p-6eebbc59.entry.js +83 -0
  37. package/dist/mint-components/{p-58c24352.system.js → p-6ef373ed.system.js} +1 -1
  38. package/dist/mint-components/p-7a4cf6c9.system.entry.js +1 -0
  39. package/dist/mint-components/p-7f29622d.js +1 -0
  40. package/dist/mint-components/{p-a38eece5.system.entry.js → p-8a08cec6.system.entry.js} +1 -1
  41. package/dist/mint-components/p-90200f08.system.entry.js +1 -0
  42. package/dist/mint-components/p-91295327.entry.js +9 -0
  43. package/dist/mint-components/p-b21c53cb.system.entry.js +1 -0
  44. package/dist/mint-components/p-bd03efe0.system.js +1 -0
  45. package/dist/mint-components/p-c13c20b2.system.js +1 -0
  46. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -1
  47. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +1 -0
  48. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +19 -0
  49. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  50. package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
  51. package/docs/docs.docx +0 -0
  52. package/package.json +1 -1
  53. package/dist/cjs/sqm-user-info-form-view-0e1ddbe4.js +0 -1682
  54. package/dist/cjs/utils-a3b3d05b.js +0 -478
  55. package/dist/esm/sqm-user-info-form-view-e1ba6009.js +0 -1677
  56. package/dist/esm/utils-4f5cd04c.js +0 -467
  57. package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +0 -1
  58. package/dist/esm-es5/utils-4f5cd04c.js +0 -1
  59. package/dist/mint-components/p-12d11abc.system.entry.js +0 -1
  60. package/dist/mint-components/p-1e6a2945.js +0 -1
  61. package/dist/mint-components/p-88e427ac.system.entry.js +0 -1
  62. package/dist/mint-components/p-a0eb0331.entry.js +0 -9
  63. package/dist/mint-components/p-b222bace.system.entry.js +0 -1
  64. package/dist/mint-components/p-b96ed8eb.js +0 -1
  65. package/dist/mint-components/p-cdabd9de.system.js +0 -1
  66. package/dist/mint-components/p-ebc519bc.system.js +0 -1
  67. package/dist/mint-components/p-ffcebe78.entry.js +0 -83
@@ -1,1682 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-8277cbb3.js');
4
- const global = require('./global-b7b1b8fe.js');
5
- const JSS = require('./JSS-8503a151.js');
6
- const utils = require('./utils-a3b3d05b.js');
7
- const data = require('./data-89ac73dd.js');
8
-
9
- const style = {
10
- Description: {
11
- fontSize: "var(--sl-font-size-small)",
12
- marginTop: "var(--sl-spacing-small)",
13
- margin: "0 0 var(--sl-spacing-large)",
14
- color: "var(--sqm-text-subdued)",
15
- },
16
- Header: {
17
- fontSize: "var(--sl-font-size-large)",
18
- fontWeight: "var(-sl-font-weight-semibold)",
19
- margin: "0 0 var(--sl-spacing-xxx-small)",
20
- },
21
- Container: {},
22
- InvoiceTableContaier: {
23
- "& sl-details::part(base)": {
24
- border: "none",
25
- },
26
- "& sl-details::part(content)": {
27
- padding: 0,
28
- },
29
- "& sl-details::part(header)": {
30
- fontSize: "var(--sl-font-size-medium)",
31
- padding: "0px",
32
- },
33
- "& sl-details::part(summary)": {
34
- fontWeight: "var(-sl-font-weight-semibold)",
35
- },
36
- "& sl-details::part(summary-icon)": {
37
- marginRight: "100%",
38
- marginLeft: "var(--sl-spacing-x-small)",
39
- transform: "rotate(90deg)",
40
- },
41
- "& sl-details[open]::part(summary-icon)": {
42
- transform: "rotate(270deg)",
43
- },
44
- },
45
- };
46
- function InvoiceTableView(props, children) {
47
- const sheet = JSS.createStyleSheet(style);
48
- const styleString = sheet.toString();
49
- const vanillaStyle = `
50
- :host{
51
- display: block;
52
- }`;
53
- return (index.h("div", { class: sheet.classes.Container },
54
- index.h("style", { type: "text/css" },
55
- vanillaStyle,
56
- styleString),
57
- index.h("div", { class: sheet.classes.InvoiceTableContaier },
58
- index.h("sl-details", { summary: props.header },
59
- index.h("p", { class: sheet.classes.Description }, props.description),
60
- children))));
61
- }
62
-
63
- const vatLabels = {
64
- GB: "VAT",
65
- AU: "GST",
66
- NZ: "GST",
67
- CA: "HST",
68
- AT: "VAT",
69
- BE: "VAT",
70
- BG: "VAT",
71
- HR: "VAT",
72
- CY: "VAT",
73
- CZ: "VAT",
74
- DK: "VAT",
75
- EE: "VAT",
76
- FI: "VAT",
77
- FR: "VAT",
78
- DE: "VAT",
79
- GR: "VAT",
80
- HU: "VAT",
81
- IE: "VAT",
82
- IT: "VAT",
83
- LV: "VAT",
84
- LT: "VAT",
85
- LU: "VAT",
86
- MT: "VAT",
87
- NL: "VAT",
88
- PL: "VAT",
89
- PT: "VAT",
90
- RO: "VAT",
91
- SK: "VAT",
92
- SI: "VAT",
93
- ES: "VAT",
94
- SE: "VAT",
95
- IS: "VAT",
96
- IN: "GST",
97
- IL: "VAT",
98
- JP: "CT",
99
- MX: "VAT",
100
- NO: "VAT",
101
- SG: "GST",
102
- ZA: "VAT",
103
- KR: "VAT",
104
- CH: "VAT",
105
- TW: "VAT",
106
- TH: "VAT",
107
- PH: "VAT",
108
- MY: "SST",
109
- AE: "VAT",
110
- TR: "VAT",
111
- RU: "VAT",
112
- };
113
-
114
- const style$1 = {
115
- Container: {
116
- width: "100%",
117
- },
118
- InputContainer: {
119
- width: "100%",
120
- display: "flex",
121
- justifyContent: "flex-start",
122
- flexDirection: "column",
123
- gap: "16px",
124
- padding: "16px",
125
- maxWidth: "450px",
126
- },
127
- ConditionalInputsContainer: {
128
- width: "100%",
129
- display: "flex",
130
- justifyContent: "flex-start",
131
- flexDirection: "column",
132
- gap: "16px",
133
- },
134
- HR: {
135
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
136
- margin: "10px 0",
137
- },
138
- Input: { maxWidth: "500px" },
139
- Checkbox: {
140
- "&::part(control)": {
141
- borderRadius: "0 !important",
142
- },
143
- },
144
- SearchInput: {
145
- padding: "var(--sl-spacing-x-small)",
146
- },
147
- ErrorInput: {
148
- maxWidth: "500px",
149
- "&::part(base)": {
150
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
151
- borderRadius: "var(--sl-input-border-radius-medium)",
152
- },
153
- "&::part(help-text)": {
154
- color: "var(--sqm-danger-color-text)",
155
- },
156
- },
157
- };
158
- const sheet = JSS.createStyleSheet(style$1);
159
- const styleString = sheet.toString();
160
- const vanillaStyle = `
161
- :host{
162
- display: block;
163
- }
164
- * {
165
- margin: 0;
166
- padding: 0;
167
- box-sizing: border-box;
168
- }
169
- sl-menu-item::part(base) {
170
- color: var(--sqm-input-color);
171
- }
172
-
173
- sl-menu-item::part(base):hover {
174
- background-color: var(--sqm-input-border-color-hover);
175
- }
176
- sl-checkbox[checked]::part(control){
177
- background-color: var(--sqm-input-border-color-focus);
178
- }
179
-
180
- sl-checkbox[checked]::part(checked-icon){
181
- color: var(--sqm-input-background);
182
- }
183
- `;
184
- const OtherRegionSlotView = (props) => {
185
- var _a, _b, _c;
186
- const { states, states: { formState }, callbacks, text, } = props;
187
- const { classes } = sheet;
188
- const getTaxFieldLabel = (taxType) => {
189
- return global.intl.formatMessage({
190
- id: `tax-field-label${taxType}`,
191
- defaultMessage: text.indirectTaxNumber,
192
- }, { taxType });
193
- };
194
- const getTaxFieldError = (taxType) => {
195
- return global.intl.formatMessage({
196
- id: `tax-field-label${taxType}`,
197
- defaultMessage: text.error.indirectTaxNumber,
198
- }, { taxType });
199
- };
200
- const IndirectTaxNumberInput = ({ label, error, name, }) => {
201
- var _a;
202
- return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, label: label, disabled: states.loading || states.disabled, value: formState[name] }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a[name]) && {
203
- class: classes.ErrorInput,
204
- helpText: error,
205
- }), { id: name, name: `/${name}` })));
206
- };
207
- const SpainFields = () => {
208
- var _a, _b;
209
- return (index.h("div", { class: classes.ConditionalInputsContainer },
210
- index.h("sl-select", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, value: formState.subRegion, label: text.subRegion, disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
211
- class: classes.ErrorInput,
212
- helpText: utils.formatErrorMessage(text.subRegion, text.error.fieldRequiredError),
213
- }), { id: "subRegion", name: "/subRegion" }), props.data.esRegions.map((r) => (index.h("sl-menu-item", { value: r.regionCode }, r.displayName)))),
214
- index.h(IndirectTaxNumberInput, { name: "indirectTaxNumber", label: getTaxFieldLabel("VAT"), error: getTaxFieldError("VAT") }),
215
- index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.hasSubRegionTaxNumber, "onSl-change": callbacks.onSpainToggle, disabled: states.disabled || states.isPartner }, text.isRegisteredSubRegionIncomeTax),
216
- formState.hasSubRegionTaxNumber && (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, label: text.subRegionTaxNumberLabel, disabled: states.loading || states.disabled, value: formState.subRegionTaxNumber }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.subRegionTaxNumber) && {
217
- class: classes.ErrorInput,
218
- helpText: utils.formatErrorMessage(text.subRegionTaxNumberLabel, text.error.fieldRequiredError),
219
- }), { id: "subRegionTaxNumber", name: "/subRegionTaxNumber" })))));
220
- };
221
- const CanadaFields = () => {
222
- var _a, _b;
223
- const { classes } = sheet;
224
- const currentTaxType = (_a = utils.INDIRECT_TAX_PROVINCES === null || utils.INDIRECT_TAX_PROVINCES === void 0 ? void 0 : utils.INDIRECT_TAX_PROVINCES.find((p) => p.regionCode === formState.province)) === null || _a === void 0 ? void 0 : _a.taxType;
225
- return (index.h("div", { class: classes.ConditionalInputsContainer },
226
- index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label, base: input-base", class: classes.Input, label: text.province, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("province", e) }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.province) && {
227
- class: classes.ErrorInput,
228
- helpText: utils.formatErrorMessage(text.province, text.error.fieldRequiredError),
229
- }), { id: "province", name: "/province" }), props.data.provinces.map((p) => (index.h("sl-menu-item", { value: p.regionCode }, p.displayName)))),
230
- currentTaxType === "GST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("GST"), error: getTaxFieldError("GST"), name: "indirectTaxNumber" })),
231
- currentTaxType === "HST" && (index.h(IndirectTaxNumberInput, { label: getTaxFieldLabel("HST"), error: getTaxFieldError("HST"), name: "indirectTaxNumber" })),
232
- formState.province === "QUEBEC" && (index.h("div", { class: classes.ConditionalInputsContainer },
233
- index.h("sl-checkbox", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", "onSl-change": callbacks.onQstToggle, checked: formState.hasQst, disabled: states.isPartner || states.disabled }, text.isRegisteredQST),
234
- formState.hasQst && (index.h(IndirectTaxNumberInput, { name: "qstNumber", label: text.qstNumber, error: utils.formatErrorMessage(text.qstNumber, text.error.fieldRequiredError) }))))));
235
- };
236
- const getActiveForm = (selectedRegion) => {
237
- var _a;
238
- switch (selectedRegion) {
239
- case "CA":
240
- return index.h(CanadaFields, null);
241
- case "ES":
242
- return index.h(SpainFields, null);
243
- default:
244
- return (index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label, base: input-base", class: classes.Input, value: formState.indirectTaxNumber, label: getTaxFieldLabel(vatLabels[selectedRegion] || "GENERAL"), disabled: states.loading || states.disabled }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.indirectTaxNumber) && {
245
- class: classes.ErrorInput,
246
- helpText: getTaxFieldError(vatLabels[selectedRegion] || "GENERAL"),
247
- }), { id: "indirectTaxNumber", name: "/indirectTaxNumber" })));
248
- }
249
- };
250
- const activeForm = getActiveForm(formState.selectedRegion);
251
- return (index.h("div", { style: states.hide ? { display: "none" } : {} },
252
- index.h("form", { class: classes.Container },
253
- index.h("style", { type: "text/css" },
254
- styleString,
255
- vanillaStyle),
256
- index.h("hr", { class: classes.HR }),
257
- index.h("div", { class: classes.InputContainer },
258
- index.h("sl-select", Object.assign({ required: true, class: classes.Input, value: formState.selectedRegion, exportparts: "label: input-label, base: input-base", label: text.selectedRegion, disabled: states.loading || states.disabled, "onSl-select": (e) => callbacks.onFormChange("selectedRegion", e) }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.selectedRegion) && {
259
- class: classes.ErrorInput,
260
- helpText: utils.formatErrorMessage(text.selectedRegion, text.error.fieldRequiredError),
261
- }), { id: "selectedRegion", name: "/selectedRegion" }),
262
- index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
263
- // Stop shoelace intercepting key presses
264
- e.stopPropagation();
265
- }, "onSl-input": (e) => {
266
- callbacks.setCountrySearch(e.target.value);
267
- } }), (_b = props.data.countries) === null || _b === void 0 ? void 0 :
268
- _b.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_c = props.data.allCountries) === null || _c === void 0 ? void 0 :
269
- _c.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
270
- activeForm),
271
- index.h("hr", { class: classes.HR }))));
272
- };
273
-
274
- const PHONE_EXTENSIONS = {
275
- AF: {
276
- name: "Afghanistan",
277
- dial_code: "+93",
278
- },
279
- AX: {
280
- name: "Aland Islands",
281
- dial_code: "+358",
282
- },
283
- AL: {
284
- name: "Albania",
285
- dial_code: "+355",
286
- },
287
- DZ: {
288
- name: "Algeria",
289
- dial_code: "+213",
290
- },
291
- AS: {
292
- name: "AmericanSamoa",
293
- dial_code: "+1684",
294
- },
295
- AD: {
296
- name: "Andorra",
297
- dial_code: "+376",
298
- },
299
- AO: {
300
- name: "Angola",
301
- dial_code: "+244",
302
- },
303
- AI: {
304
- name: "Anguilla",
305
- dial_code: "+1264",
306
- },
307
- AQ: {
308
- name: "Antarctica",
309
- dial_code: "+672",
310
- },
311
- AG: {
312
- name: "Antigua and Barbuda",
313
- dial_code: "+1268",
314
- },
315
- AR: {
316
- name: "Argentina",
317
- dial_code: "+54",
318
- },
319
- AM: {
320
- name: "Armenia",
321
- dial_code: "+374",
322
- },
323
- AW: {
324
- name: "Aruba",
325
- dial_code: "+297",
326
- },
327
- AU: {
328
- name: "Australia",
329
- dial_code: "+61",
330
- },
331
- AT: {
332
- name: "Austria",
333
- dial_code: "+43",
334
- },
335
- AZ: {
336
- name: "Azerbaijan",
337
- dial_code: "+994",
338
- },
339
- BS: {
340
- name: "Bahamas",
341
- dial_code: "+1242",
342
- },
343
- BH: {
344
- name: "Bahrain",
345
- dial_code: "+973",
346
- },
347
- BD: {
348
- name: "Bangladesh",
349
- dial_code: "+880",
350
- },
351
- BB: {
352
- name: "Barbados",
353
- dial_code: "+1246",
354
- },
355
- BY: {
356
- name: "Belarus",
357
- dial_code: "+375",
358
- },
359
- BE: {
360
- name: "Belgium",
361
- dial_code: "+32",
362
- },
363
- BZ: {
364
- name: "Belize",
365
- dial_code: "+501",
366
- },
367
- BJ: {
368
- name: "Benin",
369
- dial_code: "+229",
370
- },
371
- BM: {
372
- name: "Bermuda",
373
- dial_code: "+1441",
374
- },
375
- BT: {
376
- name: "Bhutan",
377
- dial_code: "+975",
378
- },
379
- BO: {
380
- name: "Bolivia, Plurinational State of",
381
- dial_code: "+591",
382
- },
383
- BA: {
384
- name: "Bosnia and Herzegovina",
385
- dial_code: "+387",
386
- },
387
- BW: {
388
- name: "Botswana",
389
- dial_code: "+267",
390
- },
391
- BR: {
392
- name: "Brazil",
393
- dial_code: "+55",
394
- },
395
- IO: {
396
- name: "British Indian Ocean Territory",
397
- dial_code: "+246",
398
- },
399
- BN: {
400
- name: "Brunei Darussalam",
401
- dial_code: "+673",
402
- },
403
- BG: {
404
- name: "Bulgaria",
405
- dial_code: "+359",
406
- },
407
- BF: {
408
- name: "Burkina Faso",
409
- dial_code: "+226",
410
- },
411
- BI: {
412
- name: "Burundi",
413
- dial_code: "+257",
414
- },
415
- KH: {
416
- name: "Cambodia",
417
- dial_code: "+855",
418
- },
419
- CM: {
420
- name: "Cameroon",
421
- dial_code: "+237",
422
- },
423
- CA: {
424
- name: "Canada",
425
- dial_code: "+1",
426
- },
427
- CV: {
428
- name: "Cape Verde",
429
- dial_code: "+238",
430
- },
431
- KY: {
432
- name: "Cayman Islands",
433
- dial_code: "+ 345",
434
- },
435
- CF: {
436
- name: "Central African Republic",
437
- dial_code: "+236",
438
- },
439
- TD: {
440
- name: "Chad",
441
- dial_code: "+235",
442
- },
443
- CL: {
444
- name: "Chile",
445
- dial_code: "+56",
446
- },
447
- CN: {
448
- name: "China",
449
- dial_code: "+86",
450
- },
451
- CX: {
452
- name: "Christmas Island",
453
- dial_code: "+61",
454
- },
455
- CC: {
456
- name: "Cocos (Keeling) Islands",
457
- dial_code: "+61",
458
- },
459
- CO: {
460
- name: "Colombia",
461
- dial_code: "+57",
462
- },
463
- KM: {
464
- name: "Comoros",
465
- dial_code: "+269",
466
- },
467
- CG: {
468
- name: "Congo",
469
- dial_code: "+242",
470
- },
471
- CD: {
472
- name: "Congo, The Democratic Republic of the Congo",
473
- dial_code: "+243",
474
- },
475
- CK: {
476
- name: "Cook Islands",
477
- dial_code: "+682",
478
- },
479
- CR: {
480
- name: "Costa Rica",
481
- dial_code: "+506",
482
- },
483
- CI: {
484
- name: "Cote d'Ivoire",
485
- dial_code: "+225",
486
- },
487
- HR: {
488
- name: "Croatia",
489
- dial_code: "+385",
490
- },
491
- CU: {
492
- name: "Cuba",
493
- dial_code: "+53",
494
- },
495
- CY: {
496
- name: "Cyprus",
497
- dial_code: "+357",
498
- },
499
- CZ: {
500
- name: "Czech Republic",
501
- dial_code: "+420",
502
- },
503
- DK: {
504
- name: "Denmark",
505
- dial_code: "+45",
506
- },
507
- DJ: {
508
- name: "Djibouti",
509
- dial_code: "+253",
510
- },
511
- DM: {
512
- name: "Dominica",
513
- dial_code: "+1767",
514
- },
515
- DO: {
516
- name: "Dominican Republic",
517
- dial_code: "+1849",
518
- },
519
- EC: {
520
- name: "Ecuador",
521
- dial_code: "+593",
522
- },
523
- EG: {
524
- name: "Egypt",
525
- dial_code: "+20",
526
- },
527
- SV: {
528
- name: "El Salvador",
529
- dial_code: "+503",
530
- },
531
- GQ: {
532
- name: "Equatorial Guinea",
533
- dial_code: "+240",
534
- },
535
- ER: {
536
- name: "Eritrea",
537
- dial_code: "+291",
538
- },
539
- EE: {
540
- name: "Estonia",
541
- dial_code: "+372",
542
- },
543
- ET: {
544
- name: "Ethiopia",
545
- dial_code: "+251",
546
- },
547
- FK: {
548
- name: "Falkland Islands (Malvinas)",
549
- dial_code: "+500",
550
- },
551
- FO: {
552
- name: "Faroe Islands",
553
- dial_code: "+298",
554
- },
555
- FJ: {
556
- name: "Fiji",
557
- dial_code: "+679",
558
- },
559
- FI: {
560
- name: "Finland",
561
- dial_code: "+358",
562
- },
563
- FR: {
564
- name: "France",
565
- dial_code: "+33",
566
- },
567
- GF: {
568
- name: "French Guiana",
569
- dial_code: "+594",
570
- },
571
- PF: {
572
- name: "French Polynesia",
573
- dial_code: "+689",
574
- },
575
- GA: {
576
- name: "Gabon",
577
- dial_code: "+241",
578
- },
579
- GM: {
580
- name: "Gambia",
581
- dial_code: "+220",
582
- },
583
- GE: {
584
- name: "Georgia",
585
- dial_code: "+995",
586
- },
587
- DE: {
588
- name: "Germany",
589
- dial_code: "+49",
590
- },
591
- GH: {
592
- name: "Ghana",
593
- dial_code: "+233",
594
- },
595
- GI: {
596
- name: "Gibraltar",
597
- dial_code: "+350",
598
- },
599
- GR: {
600
- name: "Greece",
601
- dial_code: "+30",
602
- },
603
- GL: {
604
- name: "Greenland",
605
- dial_code: "+299",
606
- },
607
- GD: {
608
- name: "Grenada",
609
- dial_code: "+1473",
610
- },
611
- GP: {
612
- name: "Guadeloupe",
613
- dial_code: "+590",
614
- },
615
- GU: {
616
- name: "Guam",
617
- dial_code: "+1671",
618
- },
619
- GT: {
620
- name: "Guatemala",
621
- dial_code: "+502",
622
- },
623
- GG: {
624
- name: "Guernsey",
625
- dial_code: "+44",
626
- },
627
- GN: {
628
- name: "Guinea",
629
- dial_code: "+224",
630
- },
631
- GW: {
632
- name: "Guinea-Bissau",
633
- dial_code: "+245",
634
- },
635
- GY: {
636
- name: "Guyana",
637
- dial_code: "+595",
638
- },
639
- HT: {
640
- name: "Haiti",
641
- dial_code: "+509",
642
- },
643
- VA: {
644
- name: "Holy See (Vatican City State)",
645
- dial_code: "+379",
646
- },
647
- HN: {
648
- name: "Honduras",
649
- dial_code: "+504",
650
- },
651
- HK: {
652
- name: "Hong Kong",
653
- dial_code: "+852",
654
- },
655
- HU: {
656
- name: "Hungary",
657
- dial_code: "+36",
658
- },
659
- IS: {
660
- name: "Iceland",
661
- dial_code: "+354",
662
- },
663
- IN: {
664
- name: "India",
665
- dial_code: "+91",
666
- },
667
- ID: {
668
- name: "Indonesia",
669
- dial_code: "+62",
670
- },
671
- IR: {
672
- name: "Iran, Islamic Republic of Persian Gulf",
673
- dial_code: "+98",
674
- },
675
- IQ: {
676
- name: "Iraq",
677
- dial_code: "+964",
678
- },
679
- IE: {
680
- name: "Ireland",
681
- dial_code: "+353",
682
- },
683
- IM: {
684
- name: "Isle of Man",
685
- dial_code: "+44",
686
- },
687
- IL: {
688
- name: "Israel",
689
- dial_code: "+972",
690
- },
691
- IT: {
692
- name: "Italy",
693
- dial_code: "+39",
694
- },
695
- JM: {
696
- name: "Jamaica",
697
- dial_code: "+1876",
698
- },
699
- JP: {
700
- name: "Japan",
701
- dial_code: "+81",
702
- },
703
- JE: {
704
- name: "Jersey",
705
- dial_code: "+44",
706
- },
707
- JO: {
708
- name: "Jordan",
709
- dial_code: "+962",
710
- },
711
- KZ: {
712
- name: "Kazakhstan",
713
- dial_code: "+77",
714
- },
715
- KE: {
716
- name: "Kenya",
717
- dial_code: "+254",
718
- },
719
- KI: {
720
- name: "Kiribati",
721
- dial_code: "+686",
722
- },
723
- KP: {
724
- name: "Korea, Democratic People's Republic of Korea",
725
- dial_code: "+850",
726
- },
727
- KR: {
728
- name: "Korea, Republic of South Korea",
729
- dial_code: "+82",
730
- },
731
- KW: {
732
- name: "Kuwait",
733
- dial_code: "+965",
734
- },
735
- KG: {
736
- name: "Kyrgyzstan",
737
- dial_code: "+996",
738
- },
739
- LA: {
740
- name: "Laos",
741
- dial_code: "+856",
742
- },
743
- LV: {
744
- name: "Latvia",
745
- dial_code: "+371",
746
- },
747
- LB: {
748
- name: "Lebanon",
749
- dial_code: "+961",
750
- },
751
- LS: {
752
- name: "Lesotho",
753
- dial_code: "+266",
754
- },
755
- LR: {
756
- name: "Liberia",
757
- dial_code: "+231",
758
- },
759
- LY: {
760
- name: "Libyan Arab Jamahiriya",
761
- dial_code: "+218",
762
- },
763
- LI: {
764
- name: "Liechtenstein",
765
- dial_code: "+423",
766
- },
767
- LT: {
768
- name: "Lithuania",
769
- dial_code: "+370",
770
- },
771
- LU: {
772
- name: "Luxembourg",
773
- dial_code: "+352",
774
- },
775
- MO: {
776
- name: "Macao",
777
- dial_code: "+853",
778
- },
779
- MK: {
780
- name: "Macedonia",
781
- dial_code: "+389",
782
- },
783
- MG: {
784
- name: "Madagascar",
785
- dial_code: "+261",
786
- },
787
- MW: {
788
- name: "Malawi",
789
- dial_code: "+265",
790
- },
791
- MY: {
792
- name: "Malaysia",
793
- dial_code: "+60",
794
- },
795
- MV: {
796
- name: "Maldives",
797
- dial_code: "+960",
798
- },
799
- ML: {
800
- name: "Mali",
801
- dial_code: "+223",
802
- },
803
- MT: {
804
- name: "Malta",
805
- dial_code: "+356",
806
- },
807
- MH: {
808
- name: "Marshall Islands",
809
- dial_code: "+692",
810
- },
811
- MQ: {
812
- name: "Martinique",
813
- dial_code: "+596",
814
- },
815
- MR: {
816
- name: "Mauritania",
817
- dial_code: "+222",
818
- },
819
- MU: {
820
- name: "Mauritius",
821
- dial_code: "+230",
822
- },
823
- YT: {
824
- name: "Mayotte",
825
- dial_code: "+262",
826
- },
827
- MX: {
828
- name: "Mexico",
829
- dial_code: "+52",
830
- },
831
- FM: {
832
- name: "Micronesia, Federated States of Micronesia",
833
- dial_code: "+691",
834
- },
835
- MD: {
836
- name: "Moldova",
837
- dial_code: "+373",
838
- },
839
- MC: {
840
- name: "Monaco",
841
- dial_code: "+377",
842
- },
843
- MN: {
844
- name: "Mongolia",
845
- dial_code: "+976",
846
- },
847
- ME: {
848
- name: "Montenegro",
849
- dial_code: "+382",
850
- },
851
- MS: {
852
- name: "Montserrat",
853
- dial_code: "+1664",
854
- },
855
- MA: {
856
- name: "Morocco",
857
- dial_code: "+212",
858
- },
859
- MZ: {
860
- name: "Mozambique",
861
- dial_code: "+258",
862
- },
863
- MM: {
864
- name: "Myanmar",
865
- dial_code: "+95",
866
- },
867
- NA: {
868
- name: "Namibia",
869
- dial_code: "+264",
870
- },
871
- NR: {
872
- name: "Nauru",
873
- dial_code: "+674",
874
- },
875
- NP: {
876
- name: "Nepal",
877
- dial_code: "+977",
878
- },
879
- NL: {
880
- name: "Netherlands",
881
- dial_code: "+31",
882
- },
883
- AN: {
884
- name: "Netherlands Antilles",
885
- dial_code: "+599",
886
- },
887
- NC: {
888
- name: "New Caledonia",
889
- dial_code: "+687",
890
- },
891
- NZ: {
892
- name: "New Zealand",
893
- dial_code: "+64",
894
- },
895
- NI: {
896
- name: "Nicaragua",
897
- dial_code: "+505",
898
- },
899
- NE: {
900
- name: "Niger",
901
- dial_code: "+227",
902
- },
903
- NG: {
904
- name: "Nigeria",
905
- dial_code: "+234",
906
- },
907
- NU: {
908
- name: "Niue",
909
- dial_code: "+683",
910
- },
911
- NF: {
912
- name: "Norfolk Island",
913
- dial_code: "+672",
914
- },
915
- MP: {
916
- name: "Northern Mariana Islands",
917
- dial_code: "+1670",
918
- },
919
- NO: {
920
- name: "Norway",
921
- dial_code: "+47",
922
- },
923
- OM: {
924
- name: "Oman",
925
- dial_code: "+968",
926
- },
927
- PK: {
928
- name: "Pakistan",
929
- dial_code: "+92",
930
- },
931
- PW: {
932
- name: "Palau",
933
- dial_code: "+680",
934
- },
935
- PS: {
936
- name: "Palestinian Territory, Occupied",
937
- dial_code: "+970",
938
- },
939
- PA: {
940
- name: "Panama",
941
- dial_code: "+507",
942
- },
943
- PG: {
944
- name: "Papua New Guinea",
945
- dial_code: "+675",
946
- },
947
- PY: {
948
- name: "Paraguay",
949
- dial_code: "+595",
950
- },
951
- PE: {
952
- name: "Peru",
953
- dial_code: "+51",
954
- },
955
- PH: {
956
- name: "Philippines",
957
- dial_code: "+63",
958
- },
959
- PN: {
960
- name: "Pitcairn",
961
- dial_code: "+872",
962
- },
963
- PL: {
964
- name: "Poland",
965
- dial_code: "+48",
966
- },
967
- PT: {
968
- name: "Portugal",
969
- dial_code: "+351",
970
- },
971
- PR: {
972
- name: "Puerto Rico",
973
- dial_code: "+1939",
974
- },
975
- QA: {
976
- name: "Qatar",
977
- dial_code: "+974",
978
- },
979
- RO: {
980
- name: "Romania",
981
- dial_code: "+40",
982
- },
983
- RU: {
984
- name: "Russia",
985
- dial_code: "+7",
986
- },
987
- RW: {
988
- name: "Rwanda",
989
- dial_code: "+250",
990
- },
991
- RE: {
992
- name: "Reunion",
993
- dial_code: "+262",
994
- },
995
- BL: {
996
- name: "Saint Barthelemy",
997
- dial_code: "+590",
998
- },
999
- SH: {
1000
- name: "Saint Helena, Ascension and Tristan Da Cunha",
1001
- dial_code: "+290",
1002
- },
1003
- KN: {
1004
- name: "Saint Kitts and Nevis",
1005
- dial_code: "+1869",
1006
- },
1007
- LC: {
1008
- name: "Saint Lucia",
1009
- dial_code: "+1758",
1010
- },
1011
- MF: {
1012
- name: "Saint Martin",
1013
- dial_code: "+590",
1014
- },
1015
- PM: {
1016
- name: "Saint Pierre and Miquelon",
1017
- dial_code: "+508",
1018
- },
1019
- VC: {
1020
- name: "Saint Vincent and the Grenadines",
1021
- dial_code: "+1784",
1022
- },
1023
- WS: {
1024
- name: "Samoa",
1025
- dial_code: "+685",
1026
- },
1027
- SM: {
1028
- name: "San Marino",
1029
- dial_code: "+378",
1030
- },
1031
- ST: {
1032
- name: "Sao Tome and Principe",
1033
- dial_code: "+239",
1034
- },
1035
- SA: {
1036
- name: "Saudi Arabia",
1037
- dial_code: "+966",
1038
- },
1039
- SN: {
1040
- name: "Senegal",
1041
- dial_code: "+221",
1042
- },
1043
- RS: {
1044
- name: "Serbia",
1045
- dial_code: "+381",
1046
- },
1047
- SC: {
1048
- name: "Seychelles",
1049
- dial_code: "+248",
1050
- },
1051
- SL: {
1052
- name: "Sierra Leone",
1053
- dial_code: "+232",
1054
- },
1055
- SG: {
1056
- name: "Singapore",
1057
- dial_code: "+65",
1058
- },
1059
- SK: {
1060
- name: "Slovakia",
1061
- dial_code: "+421",
1062
- },
1063
- SI: {
1064
- name: "Slovenia",
1065
- dial_code: "+386",
1066
- },
1067
- SB: {
1068
- name: "Solomon Islands",
1069
- dial_code: "+677",
1070
- },
1071
- SO: {
1072
- name: "Somalia",
1073
- dial_code: "+252",
1074
- },
1075
- ZA: {
1076
- name: "South Africa",
1077
- dial_code: "+27",
1078
- },
1079
- SS: {
1080
- name: "South Sudan",
1081
- dial_code: "+211",
1082
- },
1083
- GS: {
1084
- name: "South Georgia and the South Sandwich Islands",
1085
- dial_code: "+500",
1086
- },
1087
- ES: {
1088
- name: "Spain",
1089
- dial_code: "+34",
1090
- },
1091
- LK: {
1092
- name: "Sri Lanka",
1093
- dial_code: "+94",
1094
- },
1095
- SD: {
1096
- name: "Sudan",
1097
- dial_code: "+249",
1098
- },
1099
- SR: {
1100
- name: "Suriname",
1101
- dial_code: "+597",
1102
- },
1103
- SJ: {
1104
- name: "Svalbard and Jan Mayen",
1105
- dial_code: "+47",
1106
- },
1107
- SZ: {
1108
- name: "Swaziland",
1109
- dial_code: "+268",
1110
- },
1111
- SE: {
1112
- name: "Sweden",
1113
- dial_code: "+46",
1114
- },
1115
- CH: {
1116
- name: "Switzerland",
1117
- dial_code: "+41",
1118
- },
1119
- SY: {
1120
- name: "Syrian Arab Republic",
1121
- dial_code: "+963",
1122
- },
1123
- TW: {
1124
- name: "Taiwan",
1125
- dial_code: "+886",
1126
- },
1127
- TJ: {
1128
- name: "Tajikistan",
1129
- dial_code: "+992",
1130
- },
1131
- TZ: {
1132
- name: "Tanzania, United Republic of Tanzania",
1133
- dial_code: "+255",
1134
- },
1135
- TH: {
1136
- name: "Thailand",
1137
- dial_code: "+66",
1138
- },
1139
- TL: {
1140
- name: "Timor-Leste",
1141
- dial_code: "+670",
1142
- },
1143
- TG: {
1144
- name: "Togo",
1145
- dial_code: "+228",
1146
- },
1147
- TK: {
1148
- name: "Tokelau",
1149
- dial_code: "+690",
1150
- },
1151
- TO: {
1152
- name: "Tonga",
1153
- dial_code: "+676",
1154
- },
1155
- TT: {
1156
- name: "Trinidad and Tobago",
1157
- dial_code: "+1868",
1158
- },
1159
- TN: {
1160
- name: "Tunisia",
1161
- dial_code: "+216",
1162
- },
1163
- TR: {
1164
- name: "Turkey",
1165
- dial_code: "+90",
1166
- },
1167
- TM: {
1168
- name: "Turkmenistan",
1169
- dial_code: "+993",
1170
- },
1171
- TC: {
1172
- name: "Turks and Caicos Islands",
1173
- dial_code: "+1649",
1174
- },
1175
- TV: {
1176
- name: "Tuvalu",
1177
- dial_code: "+688",
1178
- },
1179
- UG: {
1180
- name: "Uganda",
1181
- dial_code: "+256",
1182
- },
1183
- UA: {
1184
- name: "Ukraine",
1185
- dial_code: "+380",
1186
- },
1187
- AE: {
1188
- name: "United Arab Emirates",
1189
- dial_code: "+971",
1190
- },
1191
- GB: {
1192
- name: "United Kingdom",
1193
- dial_code: "+44",
1194
- },
1195
- US: {
1196
- name: "United States",
1197
- dial_code: "+1",
1198
- },
1199
- UY: {
1200
- name: "Uruguay",
1201
- dial_code: "+598",
1202
- },
1203
- UZ: {
1204
- name: "Uzbekistan",
1205
- dial_code: "+998",
1206
- },
1207
- VU: {
1208
- name: "Vanuatu",
1209
- dial_code: "+678",
1210
- },
1211
- VE: {
1212
- name: "Venezuela, Bolivarian Republic of Venezuela",
1213
- dial_code: "+58",
1214
- },
1215
- VN: {
1216
- name: "Vietnam",
1217
- dial_code: "+84",
1218
- },
1219
- VG: {
1220
- name: "Virgin Islands, British",
1221
- dial_code: "+1284",
1222
- },
1223
- VI: {
1224
- name: "Virgin Islands, U.S.",
1225
- dial_code: "+1340",
1226
- },
1227
- WF: {
1228
- name: "Wallis and Futuna",
1229
- dial_code: "+681",
1230
- },
1231
- YE: {
1232
- name: "Yemen",
1233
- dial_code: "+967",
1234
- },
1235
- ZM: {
1236
- name: "Zambia",
1237
- dial_code: "+260",
1238
- },
1239
- ZW: {
1240
- name: "Zimbabwe",
1241
- dial_code: "+263",
1242
- },
1243
- };
1244
-
1245
- const style$2 = {
1246
- FormWrapper: {},
1247
- ErrorInput: {
1248
- "&::part(base)": {
1249
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
1250
- borderRadius: "var(--sl-input-border-radius-medium)",
1251
- },
1252
- "&::part(help-text)": {
1253
- color: "var(--sqm-danger-color-text)",
1254
- },
1255
- },
1256
- ErrorText: {
1257
- color: "var(--sqm-danger-color-text)",
1258
- marginTop: "10px",
1259
- },
1260
- TextContainer: {
1261
- display: "flex",
1262
- justifyContent: "flex-start",
1263
- flexDirection: "column",
1264
- gap: "24px",
1265
- paddingBottom: "16px",
1266
- },
1267
- InputContainer: {
1268
- display: "flex",
1269
- justifyContent: "flex-start",
1270
- flexDirection: "column",
1271
- gap: "24px",
1272
- paddingBottom: "36px",
1273
- maxWidth: "450px",
1274
- },
1275
- SearchInput: {
1276
- padding: "var(--sl-spacing-x-small)",
1277
- },
1278
- BtnContainer: {
1279
- paddingTop: "36px",
1280
- display: "flex",
1281
- gap: "8px",
1282
- },
1283
- CheckboxWrapper: {
1284
- display: "flex",
1285
- justifyContent: "flex-start",
1286
- flexDirection: "column",
1287
- },
1288
- BoldText: {
1289
- fontWeight: "bold",
1290
- },
1291
- RoundedCheckbox: {
1292
- "&::part(control)": {
1293
- borderRadius: "50%",
1294
- },
1295
- },
1296
- PageDescriptionText: {
1297
- color: "var(--sqm-text-subdued)",
1298
- fontSize: "var(--sl-font-size-medium)",
1299
- },
1300
- PhoneInputsSection: {
1301
- display: "flex",
1302
- flexDirection: "column",
1303
- gap: "4px",
1304
- "& p": {
1305
- fontSize: "var(--sl-font-size-small)",
1306
- color: "var(--sqm-input-label-color)",
1307
- fontWeight: "var(--sl-font-weight-semibold)",
1308
- },
1309
- },
1310
- PhoneInputsContainer: {
1311
- display: "flex",
1312
- gap: "4px",
1313
- width: "100%",
1314
- "& #phoneNumber": {
1315
- width: "100%",
1316
- minWidth: "0px",
1317
- },
1318
- },
1319
- };
1320
- const sheet$1 = JSS.createStyleSheet(style$2);
1321
- const styleString$1 = sheet$1.toString();
1322
- const vanillaStyle$1 = `
1323
- :host{
1324
- display: block;
1325
- }
1326
- * {
1327
- margin: 0;
1328
- padding: 0;
1329
- box-sizing: border-box;
1330
- }
1331
- a {
1332
- color: var(--sqm-text);
1333
- color: inherit !important;
1334
- text-decoration: underline;
1335
- }
1336
-
1337
- p {
1338
- line-height: 18px;
1339
- font-size: var(--sl-font-size-small);
1340
- }
1341
-
1342
- sl-radio-group::part(base) {
1343
- display: flex;
1344
- flex-direction: column;
1345
- }
1346
-
1347
- sl-select#phoneNumberCountryCode::part(menu) {
1348
- min-width: 250px;
1349
- }
1350
-
1351
- sl-button[type="primary"]::part(base){
1352
- background-color: var(--sqm-primary-button-background);
1353
- color: var(--sqm-primary-button-color);
1354
- border-color: var(--sqm-primary-button-color-border);
1355
- border-radius: var(--sqm-primary-button-radius);
1356
- }
1357
-
1358
- sl-button[type="primary"]::part(base):hover{
1359
- background-color: var(--sqm-primary-button-background-hover);
1360
- }
1361
-
1362
- sl-button[type="primary"]::part(base):focus{
1363
- box-shadow: none;
1364
- }
1365
-
1366
- sl-button[type="secondary"]::part(base){
1367
- background-color: var(--sqm-secondary-button-background);
1368
- color: var(--sqm-secondary-button-color);
1369
- border-color: var(--sqm-secondary-button-color-border);
1370
- border-radius: var(--sqm-secondary-button-radius);
1371
- }
1372
-
1373
- sl-button[type="secondary"]::part(base):hover{
1374
- background-color: var(--sqm-secondary-button-background-hover);
1375
- }
1376
-
1377
-
1378
-
1379
- *::part(primarybutton-base){
1380
- background-color: var(--sqm-primary-button-background);
1381
- color: var(--sqm-primary-button-color);
1382
- border-color: var(--sqm-primary-button-color-border);
1383
- border-radius: var(--sqm-primary-button-radius);
1384
- }
1385
-
1386
- *::part(primarybutton-base):hover{
1387
- background-color: var(--sqm-primary-button-background-hover);
1388
- }
1389
-
1390
- *::part(primarybutton-base):focus{
1391
- box-shadow: none;
1392
- }
1393
-
1394
- *::part(secondarybutton-base){
1395
- background-color: var(--sqm-secondary-button-background);
1396
- color: var(--sqm-secondary-button-color);
1397
- border-color: var(--sqm-secondary-button-color-border);
1398
- border-radius: var(--sqm-secondary-button-radius);
1399
- }
1400
-
1401
- *::part(secondarybutton-base):hover{
1402
- background-color: var(--sqm-secondary-button-background-hover);
1403
- }
1404
-
1405
- *::part(secondarybutton-base){
1406
- background-color: var(--sqm-secondary-button-background);
1407
- color: var(--sqm-secondary-button-color);
1408
- border-color: var(--sqm-secondary-button-color-border);
1409
- border-radius: var(--sqm-secondary-button-radius);
1410
- width: max-content;
1411
- display: flex;
1412
- margin: auto;
1413
- }
1414
-
1415
- *::part(secondarybutton-base):hover{
1416
- background: var(--sqm-secondary-button-background-hover);
1417
- }
1418
-
1419
- sl-input::part(label),
1420
- sl-select::part(label),
1421
- sl-textarea::part(label){
1422
- font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
1423
- font-weight: var(--sl-font-weight-semibold);
1424
- color: var(--sqm-input-label-color, var(--sqm-text), black);
1425
- }
1426
-
1427
- /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
1428
- sl-input::part(base),
1429
- sl-dropdown::part(base),
1430
- sl-textarea::part(base){
1431
- background-color: var(--sqm-input-background, #fff);
1432
- border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
1433
- color: var(--sqm-input-color, white);
1434
- border-width: var(--sqm-border-thickness, 1px);
1435
- border-style: solid;
1436
- border-color: var(--sqm-input-border-color, #ccc);
1437
- }
1438
-
1439
-
1440
- sl-select::part(menu) {
1441
- background: var(--sqm-input-background, inherit);
1442
- color: var(--sqm-input-color, inherit);
1443
- border:none;
1444
- }
1445
-
1446
- sl-menu-item::part(base) {
1447
- color: var(--sqm-input-color);
1448
- }
1449
-
1450
- sl-menu-item::part(base):hover {
1451
- background-color: var(--sqm-input-border-color-hover);
1452
- }
1453
-
1454
- sl-select::part(panel) {
1455
- border-radius: var(--sqm-border-radius-normal);
1456
- }
1457
-
1458
- sl-select::part(help-text) {
1459
- color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
1460
- }
1461
-
1462
- sl-input::part(base):focus,
1463
- sl-select::part(base):focus, /* Corrected part name for sl-select */
1464
- sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
1465
- border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
1466
- }
1467
-
1468
- sl-input[disabled]::part(base),
1469
- sl-select[disabled]::part(base),
1470
- sl-textarea[disabled]::part(base){
1471
- background: var(--sqm-input-disabled-background, #f5f5f5);
1472
- border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
1473
- }
1474
-
1475
-
1476
- sl-input::part(input):-webkit-autofill {
1477
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
1478
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
1479
- }
1480
-
1481
- sl-input::part(input):-webkit-autofill:hover {
1482
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
1483
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
1484
- }
1485
-
1486
- sl-input::part(input):-webkit-autofill:focus {
1487
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
1488
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
1489
- }
1490
-
1491
- sl-checkbox::part(label){
1492
- color: var(--sqm-text);
1493
- }
1494
-
1495
- sl-checkbox[checked]::part(control){
1496
- background-color: var(--sqm-input-border-color-focus);
1497
- }
1498
-
1499
- sl-checkbox[checked]::part(checked-icon){
1500
- color: var(--sqm-input-background);
1501
- }
1502
- `;
1503
- const UserInfoFormView = (props) => {
1504
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
1505
- const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
1506
- const { classes } = sheet$1;
1507
- const bankingCollectionText = global.intl.formatMessage({
1508
- id: "bankingCollectionText",
1509
- defaultMessage: text.allowBankingCollection,
1510
- }, {
1511
- termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
1512
- });
1513
- let regionLabel = undefined;
1514
- switch (data$1.regionLabelEnum) {
1515
- case "STATE":
1516
- regionLabel = text.state;
1517
- break;
1518
- case "PROVINCE":
1519
- regionLabel = text.province;
1520
- break;
1521
- case "REGION":
1522
- regionLabel = text.region;
1523
- break;
1524
- default:
1525
- regionLabel = text.state;
1526
- }
1527
- // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
1528
- function isDisabledPartnerInput(field) {
1529
- var _a, _b;
1530
- if (((_a = data$1.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
1531
- (field === "phoneNumber" || field === "phoneNumberCountryCode")) {
1532
- return false;
1533
- }
1534
- return states.isPartner && !!((_b = data$1.partnerData) === null || _b === void 0 ? void 0 : _b[field]);
1535
- }
1536
- function isDisabledUserInput(field) {
1537
- var _a;
1538
- return states.isUser && !!((_a = data$1.userData) === null || _a === void 0 ? void 0 : _a[field]);
1539
- }
1540
- return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1541
- index.h("style", { type: "text/css" },
1542
- styleString$1,
1543
- vanillaStyle$1),
1544
- states.loadingError && (index.h("div", null,
1545
- index.h("sqm-form-message", { type: "error" },
1546
- index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
1547
- index.h("p", { part: "alert-description" }, global.intl.formatMessage({
1548
- id: "loadingErrorAlertDescription",
1549
- defaultMessage: text.error.loadingErrorAlertDescription,
1550
- }, {
1551
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
1552
- }))))),
1553
- states.loading ? (index.h(utils.LoadingView, null)) : (index.h("div", null,
1554
- index.h("div", { class: classes.TextContainer },
1555
- index.h("div", null,
1556
- !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
1557
- id: "formStep",
1558
- defaultMessage: text.formStep,
1559
- }, { step: states.step, count: data.FORM_STEPS }))),
1560
- index.h("h3", null, text.personalInformation),
1561
- index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
1562
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
1563
- index.h("p", { part: "alert-title" }, text.error.generalTitle),
1564
- index.h("p", { part: "alert-description" }, global.intl.formatMessage({
1565
- id: "generalDescription",
1566
- defaultMessage: text.error.generalDescription,
1567
- }, {
1568
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
1569
- })))),
1570
- index.h("div", null,
1571
- index.h("div", { class: classes.InputContainer },
1572
- index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
1573
- class: classes.ErrorInput,
1574
- helpText: utils.formatErrorMessage(text.firstName, formState.errors.firstName),
1575
- }
1576
- : {}), { id: "firstName", name: "/firstName", required: true })),
1577
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || isDisabledUserInput("lastName") }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
1578
- class: classes.ErrorInput,
1579
- helpText: utils.formatErrorMessage(text.lastName, formState.errors.lastName),
1580
- }
1581
- : {}), { id: "lastName", name: "/lastName", required: true })),
1582
- index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
1583
- index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || isDisabledPartnerInput("countryCode") }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
1584
- class: classes.ErrorInput,
1585
- helpText: utils.formatErrorMessage(text.country, formState.errors.countryCode),
1586
- }
1587
- : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
1588
- index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
1589
- // Stop shoelace intercepting key presses
1590
- e.stopPropagation();
1591
- }, "onSl-input": (e) => {
1592
- callbacks.setCountrySearch(e.target.value);
1593
- } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
1594
- _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
1595
- _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
1596
- index.h("div", { class: classes.PhoneInputsSection },
1597
- index.h("p", null, text.phoneNumber),
1598
- index.h("div", { class: classes.PhoneInputsContainer },
1599
- index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled ||
1600
- isDisabledPartnerInput("phoneNumberCountryCode"), ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
1601
- class: classes.ErrorInput,
1602
- }
1603
- : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
1604
- index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
1605
- // Stop shoelace intercepting key presses
1606
- e.stopPropagation();
1607
- }, "onSl-input": (e) => {
1608
- callbacks.setPhoneCountrySearch(e.target.value);
1609
- } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
1610
- _h.map((c) => {
1611
- var _a, _b;
1612
- return (index.h("sl-menu-item", { value: c.countryCode },
1613
- index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
1614
- _b.dial_code));
1615
- }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
1616
- _j.map((c) => {
1617
- var _a, _b;
1618
- return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
1619
- index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
1620
- _b.dial_code));
1621
- })),
1622
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
1623
- // Naive phone number validation
1624
- utils.validateBillingField(/[a-zA-Z]+/, value) &&
1625
- utils.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
1626
- }, disabled: states.disabled || isDisabledPartnerInput("phoneNumber") }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
1627
- class: classes.ErrorInput,
1628
- helpText: utils.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
1629
- }
1630
- : {}), { required: true })))),
1631
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
1632
- // Checks for non-ASCII characters
1633
- !utils.validateBillingField(/^[\x20-\xFF]+$/, value) &&
1634
- utils.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledPartnerInput("billingAddress") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
1635
- class: classes.ErrorInput,
1636
- helpText: utils.formatErrorMessage(text.address, formState.errors.address),
1637
- }
1638
- : {}), { required: true })),
1639
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
1640
- // Checks for non-ASCII characters
1641
- !utils.validateBillingField(/^[\x20-\xFF]+$/, value) &&
1642
- utils.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledPartnerInput("billingCity") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
1643
- class: classes.ErrorInput,
1644
- helpText: utils.formatErrorMessage(text.city, formState.errors.city),
1645
- }
1646
- : {}), { required: true })),
1647
- !states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledPartnerInput("billingState") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
1648
- class: classes.ErrorInput,
1649
- helpText: utils.formatErrorMessage(text.state, formState.errors.state),
1650
- }
1651
- : {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
1652
- index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledPartnerInput("billingPostalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
1653
- class: classes.ErrorInput,
1654
- helpText: utils.formatErrorMessage(text.postalCode, formState.errors.postalCode),
1655
- }
1656
- : {}), { required: true })),
1657
- index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledPartnerInput("currency") }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
1658
- class: classes.ErrorInput,
1659
- helpText: utils.formatErrorMessage(text.currency, formState.errors.currency),
1660
- }
1661
- : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
1662
- index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
1663
- // Stop shoelace intercepting key presses
1664
- e.stopPropagation();
1665
- }, "onSl-input": (e) => {
1666
- callbacks.setCurrencySearch(e.target.value);
1667
- } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
1668
- _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
1669
- c.currencyCode,
1670
- " - ",
1671
- c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
1672
- _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
1673
- c.currencyCode,
1674
- " - ",
1675
- c.displayName))))),
1676
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
1677
- };
1678
-
1679
- exports.InvoiceTableView = InvoiceTableView;
1680
- exports.OtherRegionSlotView = OtherRegionSlotView;
1681
- exports.UserInfoFormView = UserInfoFormView;
1682
- exports.vatLabels = vatLabels;