@saasquatch/mint-components 2.1.8-1 → 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 (66) hide show
  1. package/dist/cjs/{ShadowViewAddon-5ce32291.js → ShadowViewAddon-a26deae6.js} +1 -90
  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 -381
  5. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +9 -332
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -158
  7. package/dist/collection/collection-manifest.json +0 -1
  8. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  9. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  10. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  11. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
  12. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  13. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  14. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  15. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  16. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  17. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  18. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  19. package/dist/esm/{ShadowViewAddon-9d97b5d5.js → ShadowViewAddon-47f1e579.js} +2 -90
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/esm/mint-components.js +1 -1
  22. package/dist/esm/sqm-banking-info-form_10.entry.js +54 -381
  23. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +14 -336
  24. package/dist/esm/sqm-stencilbook.entry.js +2 -158
  25. package/dist/esm-es5/{ShadowViewAddon-9d97b5d5.js → ShadowViewAddon-47f1e579.js} +1 -1
  26. package/dist/esm-es5/loader.js +1 -1
  27. package/dist/esm-es5/mint-components.js +1 -1
  28. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  29. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
  30. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  31. package/dist/mint-components/mint-components.esm.js +1 -1
  32. package/dist/mint-components/p-0614dcbc.entry.js +9 -0
  33. package/dist/mint-components/{p-adc4e263.js → p-217dedde.js} +25 -25
  34. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  35. package/dist/mint-components/p-7ee8f2ed.entry.js +273 -0
  36. package/dist/mint-components/p-bf545082.system.entry.js +1 -0
  37. package/dist/mint-components/p-ca098be1.system.js +1 -1
  38. package/dist/mint-components/p-ce050888.system.js +1 -0
  39. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  40. package/dist/mint-components/p-de343dd0.system.entry.js +1 -0
  41. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  42. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  43. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  44. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  45. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  46. package/dist/types/components.d.ts +10 -378
  47. package/docs/docs.docx +0 -0
  48. package/docs/raisins.json +1 -1
  49. package/grapesjs/grapesjs.js +1 -1
  50. package/package.json +1 -1
  51. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -143
  52. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -90
  53. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -462
  54. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -180
  55. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  56. package/dist/mint-components/p-0f036907.system.js +0 -1
  57. package/dist/mint-components/p-22e39d2c.entry.js +0 -342
  58. package/dist/mint-components/p-499885aa.entry.js +0 -9
  59. package/dist/mint-components/p-a6621899.system.entry.js +0 -1
  60. package/dist/mint-components/p-b0253f4c.entry.js +0 -108
  61. package/dist/mint-components/p-d93e19e9.system.entry.js +0 -1
  62. package/dist/mint-components/p-e45a9966.system.entry.js +0 -1
  63. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -13
  64. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -41
  65. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -80
  66. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -16
@@ -25,95 +25,6 @@ export const paypalFeeMap = {
25
25
  const ACH_PAYMENT_METHOD = 3;
26
26
  const WIRE_PAYMENT_METHOD = 5;
27
27
  const PAYPAL_PAYMENT_METHOD = 7;
28
- /**
29
- * Maps GraphQL validation error field names to form field names.
30
- */
31
- const API_FIELD_TO_FORM_FIELD = {
32
- // bankProvinceState → form uses bankState
33
- bankProvinceState: "bankState",
34
- };
35
- /**
36
- * Maps Impact API error code paths (from validationErrors[].errorPath) to short,
37
- * readable frontend error codes used in the ICU select props.
38
- */
39
- const API_ERROR_PATH_TO_FRONTEND = {
40
- // Beneficiary account name
41
- "withdrawal.settings.error.empty_beneficiaryname": "empty",
42
- "withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
43
- "withdrawal.settings.error.numeric_beneficiaryname": "numeric",
44
- "withdrawal_settings.error.beneficiaryname.size": "tooLong",
45
- "withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
46
- "withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
47
- "withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
48
- "withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
49
- "withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
50
- // Bank account number
51
- "withdrawal.settings.error.accountnumber.empty": "empty",
52
- "withdrawal.settings.error.accountnumber.uk": "invalidUk",
53
- "withdrawal.settings.error.bankaccount.invalid": "invalid",
54
- // IBAN
55
- "withdrawal.settings.error.iban": "ibanEmpty",
56
- "withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
57
- "withdrawal.settings.error.iban.invalid": "ibanInvalid",
58
- "withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
59
- // Routing code
60
- "withdrawal.settings.error.bsbNumber": "invalidBsb",
61
- "withdrawal.settings.error.sortcode": "invalidSortCode",
62
- "withdrawal.settings.error.routingNumber": "empty",
63
- "withdrawal.settings.error.routingcode": "invalid",
64
- // SWIFT / BIC
65
- "withdrawal.settings.error.bic": "empty",
66
- "withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
67
- "withdrawal.settings.error.bic.invalid": "invalid",
68
- // Bank account type
69
- "global.error.invalid.accounttype": "empty",
70
- // Bank name
71
- "withdrawal.settings.error.bankName": "empty",
72
- // Tax payer ID
73
- "withdrawal.settings.error.taxPayerId": "empty",
74
- "withdrawal.settings.error.taxPayerId.ar": "emptyAr",
75
- "withdrawal.settings.error.taxPayerId.kr": "emptyKr",
76
- "withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
77
- "withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
78
- "withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
79
- "withdrawal.settings.error.taxPayerId.invalid": "invalid",
80
- "withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
81
- "withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
82
- "withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
83
- "withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
84
- "withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
85
- // Patronymic name
86
- "withdrawal.settings.error.patronymicName": "empty",
87
- "withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
88
- // VO code
89
- "withdrawal.settings.error.voCode": "empty",
90
- "withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
91
- // Agency code
92
- "withdrawal.settings.error.agencyCode": "empty",
93
- "withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
94
- "withdrawal.settings.error.agencyCode.length": "tooShort",
95
- // Bank address fields
96
- "withdrawal.settings.error.bankAddress": "empty",
97
- "withdrawal.settings.error.bankCity": "empty",
98
- "withdrawal.settings.error.bankProvinceState": "empty",
99
- "withdrawal.settings.error.bankPostalCode": "empty",
100
- // Branch code / name
101
- "withdrawal.settings.error.branchCode": "invalid",
102
- "withdrawal.settings.error.branchName": "empty",
103
- // Classification code
104
- "withdrawal.settings.error.classificationCode.invalid": "empty",
105
- "withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
106
- // PayPal
107
- "payment.error.email": "empty",
108
- "payment.error.paypal_not_supported": "unsupportedCurrency",
109
- "payment.error.email.invalid": "invalidEmail",
110
- "payment.error.paypal_verification_incomplete": "verificationIncomplete",
111
- // Payment schedule
112
- "payment.error.no_threshold": "empty",
113
- "payment.error.invalid_threshold": "invalid",
114
- "payment.error.no_dayOfMonth": "empty",
115
- "payment.error.invalid_dayOfMonth": "invalid",
116
- };
117
28
  export function getFormInputs({ bitset, formMap }) {
118
29
  // Convert bitset to binary representation
119
30
  const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
@@ -137,7 +48,6 @@ const SAVE_WITHDRAWAL_SETTINGS = gql `
137
48
  validationErrors {
138
49
  field
139
50
  message
140
- code
141
51
  }
142
52
  }
143
53
  }
@@ -153,7 +63,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = gql `
153
63
  validationErrors {
154
64
  field
155
65
  message
156
- code
157
66
  }
158
67
  }
159
68
  }
@@ -326,13 +235,10 @@ export function useBankingInfoForm(props) {
326
235
  else if (!success) {
327
236
  console.error("Validation failed: ", validationErrors);
328
237
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
329
- const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
330
- const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
331
238
  return {
332
239
  ...agg,
333
- [formField]: {
240
+ [error.field]: {
334
241
  type: "invalid",
335
- errorCode,
336
242
  },
337
243
  };
338
244
  }, {});
@@ -65,7 +65,7 @@ export class IndirectTaxForm {
65
65
  /**
66
66
  * @uiName Indirect tax number field label
67
67
  */
68
- this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
68
+ 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}}";
69
69
  /**
70
70
  * Displayed to participants registered for QST.
71
71
  * @uiName QST number field label
@@ -104,7 +104,7 @@ export class IndirectTaxForm {
104
104
  /**
105
105
  * @uiName Missing indirect tax number error message
106
106
  */
107
- 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";
107
+ 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";
108
108
  /**
109
109
  * Placeholder text displayed in the country search dropdown
110
110
  * @uiName Country field placeholder text
@@ -457,7 +457,7 @@ export class IndirectTaxForm {
457
457
  },
458
458
  "attribute": "indirect-tax-number",
459
459
  "reflect": false,
460
- "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}\""
460
+ "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}\""
461
461
  },
462
462
  "qstNumber": {
463
463
  "type": "string",
@@ -631,7 +631,7 @@ export class IndirectTaxForm {
631
631
  },
632
632
  "attribute": "indirect-tax-number-error",
633
633
  "reflect": false,
634
- "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required\""
634
+ "defaultValue": "\"{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\""
635
635
  },
636
636
  "searchForCountryText": {
637
637
  "type": "string",
@@ -15,7 +15,7 @@ export class PayoutDetailsCard {
15
15
  * Badge text indicating payout status
16
16
  * @uiName Payout badge status text
17
17
  */
18
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
18
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
19
19
  /**
20
20
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
21
21
  * @uiName Payout schedule by threshold text
@@ -73,7 +73,7 @@ export class PayoutDetailsCard {
73
73
  },
74
74
  "attribute": "status-badge-text",
75
75
  "reflect": false,
76
- "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }\""
76
+ "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}\""
77
77
  },
78
78
  "thresholdPayoutText": {
79
79
  "type": "string",
@@ -176,7 +176,7 @@ export class TaxAndCashMonolith {
176
176
  * @uiName Indirect tax number field label
177
177
  * @uiGroup Step 2 Properties
178
178
  */
179
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
179
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
180
180
  /**
181
181
  * @uiName Province field label
182
182
  * @uiGroup Step 2 Properties
@@ -186,7 +186,7 @@ export class TaxAndCashMonolith {
186
186
  * @uiName Missing indirect tax number error message
187
187
  * @uiGroup Step 2 Properties
188
188
  */
189
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
189
+ this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
190
190
  /**
191
191
  * Displayed to participants registered for QST.
192
192
  * @uiName QST number field label
@@ -754,7 +754,7 @@ export class TaxAndCashMonolith {
754
754
  * @uiName Payout status badge
755
755
  * @uiGroup Dashboard Properties
756
756
  */
757
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
757
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
758
758
  /**
759
759
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
760
760
  * @uiName Payout schedule by threshold text
@@ -1844,7 +1844,7 @@ export class TaxAndCashMonolith {
1844
1844
  },
1845
1845
  "attribute": "step-2_indirect-tax-number",
1846
1846
  "reflect": false,
1847
- "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}\""
1847
+ "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}\""
1848
1848
  },
1849
1849
  "step2_province": {
1850
1850
  "type": "string",
@@ -1892,7 +1892,7 @@ export class TaxAndCashMonolith {
1892
1892
  },
1893
1893
  "attribute": "step-2_indirect-tax-number-error",
1894
1894
  "reflect": false,
1895
- "defaultValue": "\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required\""
1895
+ "defaultValue": "\"{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\""
1896
1896
  },
1897
1897
  "step2_qstNumber": {
1898
1898
  "type": "string",
@@ -4259,7 +4259,7 @@ export class TaxAndCashMonolith {
4259
4259
  },
4260
4260
  "attribute": "dashboard_status-badge-text",
4261
4261
  "reflect": false,
4262
- "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }\""
4262
+ "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }\""
4263
4263
  },
4264
4264
  "dashboard_thresholdPayoutText": {
4265
4265
  "type": "string",
@@ -168,7 +168,7 @@ export class TaxAndCashDashboard {
168
168
  /**
169
169
  * @uiName Payout status badge
170
170
  */
171
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
171
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
172
172
  /**
173
173
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
174
174
  * @uiName Payout schedule by threshold text
@@ -1049,7 +1049,7 @@ export class TaxAndCashDashboard {
1049
1049
  },
1050
1050
  "attribute": "status-badge-text",
1051
1051
  "reflect": false,
1052
- "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }\""
1052
+ "defaultValue": "\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }\""
1053
1053
  },
1054
1054
  "thresholdPayoutText": {
1055
1055
  "type": "string",
@@ -3022,7 +3022,7 @@ function ReferralIframeView(props) {
3022
3022
  const styleString = sheet.toString();
3023
3023
  return (h("div", { class: sheet.classes.Container },
3024
3024
  h("style", { type: "text/css" }, styleString),
3025
- h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
3025
+ h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?${encodeURIComponent(content.codeParam)}=${data.shareCode}` })));
3026
3026
  }
3027
3027
 
3028
3028
  const CheckMark = () => (h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -4463,94 +4463,6 @@ function LeadDropdownFieldView(props) {
4463
4463
  })))));
4464
4464
  }
4465
4465
 
4466
- const style$b = {
4467
- Dialog: {
4468
- "&::part(panel)": {
4469
- maxWidth: "480px",
4470
- },
4471
- "&::part(title)": {
4472
- fontSize: "var(--sl-font-size-x-large)",
4473
- fontWeight: "600",
4474
- padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
4475
- },
4476
- "&::part(body)": {
4477
- padding: "var(--sl-spacing-small) var(--sl-spacing-x-large)",
4478
- fontSize: "var(--sl-font-size-small)",
4479
- overflow: "visible",
4480
- },
4481
- "&::part(footer)": {
4482
- display: "flex",
4483
- flexDirection: "column",
4484
- gap: "var(--sl-spacing-small)",
4485
- padding: "var(--sl-spacing-small) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
4486
- },
4487
- "&::part(overlay)": {
4488
- background: "rgba(0, 0, 0, 0.5)",
4489
- },
4490
- "&::part(close-button)": {
4491
- display: "none",
4492
- },
4493
- },
4494
- FormFields: {
4495
- display: "flex",
4496
- gap: "var(--sl-spacing-medium)",
4497
- marginTop: "var(--sl-spacing-medium)",
4498
- "& > *": {
4499
- flex: 1,
4500
- },
4501
- },
4502
- ErrorMessage: {
4503
- color: "var(--sqm-danger-color-text, #d32f2f)",
4504
- fontSize: "var(--sl-font-size-small)",
4505
- marginTop: "var(--sl-spacing-x-small)",
4506
- },
4507
- SearchInput: {
4508
- "&::part(base)": {
4509
- border: "none",
4510
- borderBottom: "1px solid var(--sl-color-neutral-300)",
4511
- borderRadius: "0",
4512
- },
4513
- },
4514
- };
4515
- function PartnerInfoModalView(props) {
4516
- var _a, _b;
4517
- const { states, callbacks, text } = props;
4518
- const sheet = createStyleSheet(style$b);
4519
- const styleString = sheet.toString();
4520
- const description = states.isExistingPartner
4521
- ? text.descriptionExistingPartner
4522
- : text.descriptionNewPartner;
4523
- const buttonLabel = states.isExistingPartner
4524
- ? text.confirmButtonLabel
4525
- : text.submitButtonLabel;
4526
- return (h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: false, label: intl.formatMessage({
4527
- id: "modalBrandHeader",
4528
- defaultMessage: text.modalBrandHeader,
4529
- }, { brandName: states.brandName }), "onSl-request-close": (e) => {
4530
- e.preventDefault();
4531
- }, "onSl-hide": (e) => {
4532
- var _a;
4533
- // Prevent closing when clicking outside the dialog but not dropdowns
4534
- if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
4535
- e.preventDefault();
4536
- }
4537
- } },
4538
- h("style", { type: "text/css" }, styleString),
4539
- h("p", null, description),
4540
- h("div", { class: sheet.classes.FormFields },
4541
- h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting, required: true, "onSl-select": callbacks.onCountryChange },
4542
- h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.onCountrySearch(((_a = e.target) === null || _a === void 0 ? void 0 : _a.value) || ""); } }), (_a = states.filteredCountries) === null || _a === void 0 ? void 0 :
4543
- _a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
4544
- h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting, required: true, "onSl-select": callbacks.onCurrencyChange },
4545
- h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.onCurrencySearch(((_a = e.target) === null || _a === void 0 ? void 0 : _a.value) || ""); } }), (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 :
4546
- _b.map((c) => (h("sl-menu-item", { value: c.currencyCode },
4547
- c.currencyCode,
4548
- " - ",
4549
- c.displayName))))),
4550
- states.error && h("p", { class: sheet.classes.ErrorMessage }, states.error),
4551
- h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, style: { width: "100%" }, exportparts: "base: primarybutton-base" }, buttonLabel)));
4552
- }
4553
-
4554
4466
  const map = new Map();
4555
4467
  function withShadowView(component) {
4556
4468
  // TODO: Could only do this if rendered in a Stencilbook environment to prevent unintended side-effects
@@ -4585,4 +4497,4 @@ const ShadowViewAddon = ({ story }, children) => {
4585
4497
  h(TagName, { "stencilbook-shadow-view": randomInt })));
4586
4498
  };
4587
4499
 
4588
- export { empty as A, BigStatView as B, CardFeedView as C, DropdownFieldView as D, EditProfileView as E, rewardExchange as F, useShareButton as G, HeroView as H, InputFieldView as I, useShareLink as J, ProgressBarView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, LeadFormView as O, PortalChangePasswordView as P, LeadDropdownFieldView as Q, ReferralIframeView as R, StatContainerView as S, TaskCardView as T, PartnerInfoModalView as U, ShadowViewAddon as V, useBigStat as W, withShadowView as X, demoRewardExchange as Y, ShareButtonView as a, PoweredByImg as b, BaseRegistrationFormView as c, CheckboxFieldView as d, CouponCodeView as e, ChangeMarktingView as f, PortalFooterView as g, PortalFrameView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useDemoBigStat as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };
4500
+ export { empty as A, BigStatView as B, CardFeedView as C, DropdownFieldView as D, EditProfileView as E, rewardExchange as F, useShareButton as G, HeroView as H, InputFieldView as I, useShareLink as J, ProgressBarView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, LeadFormView as O, PortalChangePasswordView as P, LeadDropdownFieldView as Q, ReferralIframeView as R, StatContainerView as S, TaskCardView as T, ShadowViewAddon as U, useBigStat as V, withShadowView as W, demoRewardExchange as X, ShareButtonView as a, PoweredByImg as b, BaseRegistrationFormView as c, CheckboxFieldView as d, CouponCodeView as e, ChangeMarktingView as f, PortalFooterView as g, PortalFrameView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useDemoBigStat as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };