@saasquatch/mint-components 2.0.2-9 → 2.0.3-1

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 (167) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-e5f70b8b.js → IndirectTaxDetailsView-659a139c.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-925a8fa6.js → ShadowViewAddon-ae3a32c3.js} +5 -5
  3. package/dist/cjs/{usePayoutStatus-9abe2de8.js → data-44260010.js} +127 -129
  4. package/dist/cjs/{global-8bba5b3a.js → global-e862bfd4.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mint-components.cjs.js +1 -1
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +120 -85
  8. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +44 -38
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  13. package/dist/cjs/{sqm-lead-checkbox-field-view-340acad0.js → sqm-lead-checkbox-field-view-dca40eb4.js} +1 -1
  14. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  15. package/dist/cjs/{sqm-lead-input-field-view-06ed3632.js → sqm-lead-input-field-view-2006001f.js} +1 -1
  16. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  17. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  19. package/dist/cjs/{sqm-portal-email-verification-view-5518eb0d.js → sqm-portal-email-verification-view-1745d9a2.js} +1 -1
  20. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  21. package/dist/cjs/{sqm-portal-profile-view-615e6975.js → sqm-portal-profile-view-5c5e29b1.js} +1 -1
  22. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +29 -9
  26. package/dist/cjs/{useLeadFormState-fd0445f9.js → useLeadFormState-91999606.js} +1 -1
  27. package/dist/cjs/{utils-83d125fa.js → utils-4eb18a29.js} +1 -1
  28. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +5 -2
  29. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
  30. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +10 -6
  31. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +11 -5
  32. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +13 -0
  33. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -6
  34. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +5 -5
  35. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +1 -4
  36. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4 -4
  37. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +9 -4
  38. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -4
  39. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
  40. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -4
  41. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +20 -12
  42. package/dist/collection/global/styles.js +1 -1
  43. package/dist/collection/global/styles.ts +1 -1
  44. package/dist/esm/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-8dec05e4.js} +2 -2
  45. package/dist/esm/{ShadowViewAddon-aae27c2e.js → ShadowViewAddon-78a1c35c.js} +5 -5
  46. package/dist/esm/{usePayoutStatus-e0ef2374.js → data-68816061.js} +128 -130
  47. package/dist/esm/{global-1099f20d.js → global-58a69018.js} +1 -1
  48. package/dist/esm/loader.js +1 -1
  49. package/dist/esm/mint-components.js +1 -1
  50. package/dist/esm/sqm-banking-info-form_10.entry.js +67 -32
  51. package/dist/esm/sqm-big-stat_47.entry.js +22 -16
  52. package/dist/esm/sqm-code-verification.entry.js +1 -1
  53. package/dist/esm/sqm-email-verification.entry.js +1 -1
  54. package/dist/esm/sqm-empty_4.entry.js +1 -1
  55. package/dist/esm/sqm-header-logo.entry.js +2 -2
  56. package/dist/esm/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-81541e40.js} +1 -1
  57. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  58. package/dist/esm/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-d543d939.js} +1 -1
  59. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  60. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  61. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  62. package/dist/esm/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-5fb1a99e.js} +1 -1
  63. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  64. package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-e3aef106.js} +1 -1
  65. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  66. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  67. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  68. package/dist/esm/sqm-stencilbook.entry.js +29 -9
  69. package/dist/esm/{useLeadFormState-c379e5d7.js → useLeadFormState-8d4b2620.js} +1 -1
  70. package/dist/esm/{utils-6122971b.js → utils-2695a43e.js} +1 -1
  71. package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-8dec05e4.js} +1 -1
  72. package/dist/esm-es5/{ShadowViewAddon-aae27c2e.js → ShadowViewAddon-78a1c35c.js} +1 -1
  73. package/dist/esm-es5/data-68816061.js +6 -0
  74. package/dist/esm-es5/{global-1099f20d.js → global-58a69018.js} +1 -1
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/mint-components.js +1 -1
  77. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  78. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  79. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  80. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  81. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  82. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  83. package/dist/esm-es5/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-81541e40.js} +1 -1
  84. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  85. package/dist/esm-es5/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-d543d939.js} +1 -1
  86. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  87. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  88. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  89. package/dist/esm-es5/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-5fb1a99e.js} +1 -1
  90. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-e3aef106.js} +1 -1
  92. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  93. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  94. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  95. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  96. package/dist/esm-es5/{useLeadFormState-c379e5d7.js → useLeadFormState-8d4b2620.js} +1 -1
  97. package/dist/esm-es5/{utils-6122971b.js → utils-2695a43e.js} +1 -1
  98. package/dist/mint-components/global/styles.ts +1 -1
  99. package/dist/mint-components/mint-components.esm.js +1 -1
  100. package/dist/mint-components/mint-components.js +1 -1
  101. package/dist/mint-components/{p-717b6730.system.entry.js → p-011c0990.system.entry.js} +1 -1
  102. package/dist/mint-components/{p-db1a0db1.js → p-027c0b10.js} +1 -1
  103. package/dist/mint-components/{p-aa8c6332.js → p-088f082f.js} +1 -1
  104. package/dist/mint-components/{p-511c87ce.system.entry.js → p-0c024cf0.system.entry.js} +1 -1
  105. package/dist/mint-components/{p-60465a2d.system.js → p-1215518e.system.js} +1 -1
  106. package/dist/mint-components/{p-6c006998.entry.js → p-12e6cea7.entry.js} +2 -2
  107. package/dist/mint-components/{p-ad4348c3.system.js → p-13c6673e.system.js} +1 -1
  108. package/dist/mint-components/{p-ed16b35a.js → p-1aa9136c.js} +1 -1
  109. package/dist/mint-components/{p-a5c63310.entry.js → p-1b79b186.entry.js} +1 -1
  110. package/dist/mint-components/{p-6d5bd95a.js → p-1d8c5935.js} +1 -1
  111. package/dist/mint-components/{p-56009bf0.system.entry.js → p-2ea3eea9.system.entry.js} +1 -1
  112. package/dist/mint-components/{p-7a268047.js → p-325c5476.js} +1 -1
  113. package/dist/mint-components/{p-bec87ac9.system.entry.js → p-36a1fa33.system.entry.js} +1 -1
  114. package/dist/mint-components/p-42760067.system.entry.js +1 -0
  115. package/dist/mint-components/{p-aefaec37.entry.js → p-43ad51bc.entry.js} +1 -1
  116. package/dist/mint-components/{p-e0a724dd.system.js → p-4cc72a4e.system.js} +1 -1
  117. package/dist/mint-components/{p-47c83656.entry.js → p-58c79873.entry.js} +1 -1
  118. package/dist/mint-components/{p-c994512c.system.js → p-5fbe6356.system.js} +1 -1
  119. package/dist/mint-components/{p-6d9ce4e5.entry.js → p-6076dbaf.entry.js} +1 -1
  120. package/dist/mint-components/{p-74f43a08.system.js → p-78dda262.system.js} +1 -1
  121. package/dist/mint-components/p-7fb4470e.entry.js +1 -0
  122. package/dist/mint-components/{p-4ce51b1c.system.entry.js → p-829cb9ed.system.entry.js} +1 -1
  123. package/dist/mint-components/{p-c85f204b.system.js → p-8618e8f6.system.js} +1 -1
  124. package/dist/mint-components/{p-aa08457e.system.js → p-8d9fa981.system.js} +1 -1
  125. package/dist/mint-components/{p-09ab53fb.system.entry.js → p-8fa77acf.system.entry.js} +1 -1
  126. package/dist/mint-components/p-92b5c376.js +157 -0
  127. package/dist/mint-components/{p-967a9040.system.js → p-947bacd1.system.js} +1 -1
  128. package/dist/mint-components/{p-79a3344f.js → p-988f236f.js} +1 -1
  129. package/dist/mint-components/{p-22a9114f.system.entry.js → p-9d46f87f.system.entry.js} +1 -1
  130. package/dist/mint-components/p-a2dbc9ad.system.js +6 -0
  131. package/dist/mint-components/{p-4c811d12.entry.js → p-a470e203.entry.js} +2 -2
  132. package/dist/mint-components/{p-00bc7211.js → p-a974c549.js} +1 -1
  133. package/dist/mint-components/{p-5f3eafd4.entry.js → p-aabfb90f.entry.js} +2 -2
  134. package/dist/mint-components/p-ad3ebf4d.entry.js +1 -0
  135. package/dist/mint-components/{p-0649123a.system.entry.js → p-bbdf93b6.system.entry.js} +1 -1
  136. package/dist/mint-components/p-be0ca483.entry.js +273 -0
  137. package/dist/mint-components/{p-4fed8672.js → p-bf044217.js} +1 -1
  138. package/dist/mint-components/p-c0d60c61.entry.js +106 -0
  139. package/dist/mint-components/{p-d3120982.system.entry.js → p-c6e8086f.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-ea0bc627.entry.js → p-d88d8ffe.entry.js} +1 -1
  141. package/dist/mint-components/{p-a217cc8d.entry.js → p-dc5bca55.entry.js} +1 -1
  142. package/dist/mint-components/{p-6445e926.system.entry.js → p-deecffd0.system.entry.js} +1 -1
  143. package/dist/mint-components/{p-60c14cec.entry.js → p-e19f0908.entry.js} +1 -1
  144. package/dist/mint-components/{p-38f932ae.system.js → p-e3ee8c37.system.js} +1 -1
  145. package/dist/mint-components/{p-14e813a7.system.entry.js → p-e8bda98a.system.entry.js} +1 -1
  146. package/dist/mint-components/{p-5d059c95.entry.js → p-ee3a7577.entry.js} +1 -1
  147. package/dist/mint-components/{p-57ce33dd.js → p-ee83de0e.js} +2 -2
  148. package/dist/mint-components/{p-f401ef19.system.entry.js → p-f5256738.system.entry.js} +1 -1
  149. package/dist/mint-components/p-f5820d03.system.js +1 -0
  150. package/dist/mint-components/{p-18720462.system.entry.js → p-fcf8bdbc.system.entry.js} +1 -1
  151. package/dist/mint-components/p-ffef3f95.system.entry.js +1 -0
  152. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  153. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +7 -0
  154. package/dist/types/components.d.ts +2 -0
  155. package/docs/docs.docx +0 -0
  156. package/docs/raisins.json +1 -1
  157. package/package.json +1 -1
  158. package/dist/esm-es5/usePayoutStatus-e0ef2374.js +0 -6
  159. package/dist/mint-components/p-35576752.system.entry.js +0 -1
  160. package/dist/mint-components/p-408a3798.entry.js +0 -273
  161. package/dist/mint-components/p-59bb2d52.system.js +0 -6
  162. package/dist/mint-components/p-60e35884.entry.js +0 -99
  163. package/dist/mint-components/p-680a7162.system.entry.js +0 -1
  164. package/dist/mint-components/p-8b5b2acc.entry.js +0 -1
  165. package/dist/mint-components/p-ab111e29.entry.js +0 -1
  166. package/dist/mint-components/p-c41108ae.js +0 -157
  167. package/dist/mint-components/p-f0eae4e6.system.js +0 -1
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h as h$1, c as Host, F as Fragment } from './index-b3a06de8.js';
2
- import { b as buildFontsCssUrl, i as intl } from './global-1099f20d.js';
1
+ import { r as registerInstance, h as h$1, c as Host } from './index-b3a06de8.js';
2
+ import { b as buildFontsCssUrl, i as intl } from './global-58a69018.js';
3
3
  import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, u as useCallback, L, y as yn, j as jn, q as Ue, r as un, V as Ve, b as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn } from './index.module-c9811a48.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
@@ -17,17 +17,17 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
17
17
  import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
18
18
  import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-24d594ea.js';
19
19
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-dda1f52b.js';
20
- import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-c379e5d7.js';
20
+ import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-8d4b2620.js';
21
21
  import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
22
22
  import { u as usePortalLogin } from './usePortalLogin-f95bbc67.js';
23
23
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
24
24
  import { i as isEmpty } from './utilities-72c07b09.js';
25
25
  import { E as ErrorView } from './ErrorView-bbf0a042.js';
26
- import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-aae27c2e.js';
26
+ import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-78a1c35c.js';
27
27
  import './sqm-portal-container-view-176e92e3.js';
28
- import { g as getCountryObj, L as LoadingView } from './utils-6122971b.js';
28
+ import { g as getCountryObj, L as LoadingView } from './utils-2695a43e.js';
29
29
  import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
30
- import { u as usePayoutStatus, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './usePayoutStatus-e0ef2374.js';
30
+ import { u as usePayoutStatus, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './data-68816061.js';
31
31
 
32
32
  /**
33
33
  *
@@ -2899,6 +2899,12 @@ function useDemoPayoutButtonScroll(props) {
2899
2899
  }
2900
2900
 
2901
2901
  const style$2 = {
2902
+ ButtonContainer: {
2903
+ display: "flex",
2904
+ gap: "var(--sl-spacing-medium)",
2905
+ marginTop: "var(--sl-spacing-medium)",
2906
+ flexWrap: "wrap",
2907
+ },
2902
2908
  SkeletonOne: {
2903
2909
  width: "50%",
2904
2910
  height: "16px",
@@ -3058,7 +3064,7 @@ function PayoutStatusAlertView(props) {
3058
3064
  }, {
3059
3065
  supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3060
3066
  }),
3061
- button: (h$1(Fragment, null,
3067
+ button: (h$1("div", { class: sheet$2.classes.ButtonContainer },
3062
3068
  h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
3063
3069
  h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
3064
3070
  alertType: "warning",
@@ -3073,7 +3079,7 @@ function PayoutStatusAlertView(props) {
3073
3079
  }, {
3074
3080
  supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3075
3081
  }),
3076
- button: (h$1(Fragment, null,
3082
+ button: (h$1("div", { class: sheet$2.classes.ButtonContainer },
3077
3083
  h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
3078
3084
  h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
3079
3085
  alertType: "warning",
@@ -3088,7 +3094,7 @@ function PayoutStatusAlertView(props) {
3088
3094
  }, {
3089
3095
  supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3090
3096
  }),
3091
- button: (h$1(Fragment, null,
3097
+ button: (h$1("div", { class: sheet$2.classes.ButtonContainer },
3092
3098
  h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
3093
3099
  h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
3094
3100
  alertType: "warning",
@@ -3103,7 +3109,7 @@ function PayoutStatusAlertView(props) {
3103
3109
  }, {
3104
3110
  supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3105
3111
  }),
3106
- button: (h$1(Fragment, null,
3112
+ button: (h$1("div", { class: sheet$2.classes.ButtonContainer },
3107
3113
  h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
3108
3114
  alertType: "warning",
3109
3115
  icon: "exclamation-triangle",
@@ -3117,7 +3123,7 @@ function PayoutStatusAlertView(props) {
3117
3123
  }, {
3118
3124
  supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3119
3125
  }),
3120
- button: (h$1(Fragment, null,
3126
+ button: (h$1("div", { class: sheet$2.classes.ButtonContainer },
3121
3127
  h$1("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
3122
3128
  alertType: "error",
3123
3129
  icon: "exclamation-triangle",
@@ -3281,11 +3287,11 @@ const PayoutStatusAlert = class {
3281
3287
  /**
3282
3288
  * @uiName Withdrawal settings invalid alert header
3283
3289
  */
3284
- this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
3290
+ this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
3285
3291
  /**
3286
3292
  * @uiName Withdrawal settings invalid alert description
3287
3293
  */
3288
- this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
3294
+ this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
3289
3295
  /**
3290
3296
  * @uiName Payment returned alert header
3291
3297
  */
@@ -3363,7 +3369,7 @@ function useDemoPayoutStatusAlert(props) {
3363
3369
  return cjs({
3364
3370
  states: {
3365
3371
  error: false,
3366
- status: "INFORMATION_REQUIRED",
3372
+ status: props.demoData.states.status,
3367
3373
  loading: false,
3368
3374
  veriffLoading: false,
3369
3375
  },
@@ -7661,11 +7667,11 @@ const TaxAndCashMonolith = class {
7661
7667
  /**
7662
7668
  * @uiName Withdrawal settings invalid alert header
7663
7669
  */
7664
- this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
7670
+ this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
7665
7671
  /**
7666
7672
  * @uiName Withdrawal settings invalid alert description
7667
7673
  */
7668
- this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
7674
+ this.dashboard_withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
7669
7675
  /**
7670
7676
  * @uiName Payment returned alert header
7671
7677
  */
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { l, k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, t as Pn, F as Fn, i as isDemo, p as En } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { k as useState, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, t as Pn, w as wn, J, $ as $e, i as isDemo, p as En } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { n as h$1 } from './dom-context-hooks.module-63370afd.js';
4
4
  import './index.module-c9811a48.js';
5
5
  import { g as getProps } from './utils-334c1e34.js';
@@ -11,6 +11,7 @@ const HeroImage = class {
11
11
  /**
12
12
  * @uiWidget color
13
13
  * @uiName Logo text color
14
+ * @default #555555
14
15
  */
15
16
  this.logoTextColor = "#555555";
16
17
  /**
@@ -28,10 +29,9 @@ const HeroImage = class {
28
29
  }
29
30
  disconnectedCallback() { }
30
31
  render() {
31
- return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
32
+ return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
32
33
  fontSize: `${this.logoTextSize}px`,
33
34
  color: this.logoTextColor || "#555555",
34
- textDecoration: "none",
35
35
  } }, this.logoText)))));
36
36
  }
37
37
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { j as jss, a as create } from './JSS-67b5cff8.js';
4
4
 
5
5
  const style = {
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import './global-1099f20d.js';
2
+ import './global-58a69018.js';
3
3
  import { i as d, n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { a as getMissingProps, g as getProps } from './utils-334c1e34.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-c379e5d7.js';
9
- import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-cbafee07.js';
8
+ import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-8d4b2620.js';
9
+ import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-81541e40.js';
10
10
 
11
11
  function useLeadCheckboxField() {
12
12
  const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { j as jss, a as create } from './JSS-67b5cff8.js';
4
4
  import { E as ErrorStyles } from './mixins-f750863a.js';
5
5
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import './global-1099f20d.js';
2
+ import './global-58a69018.js';
3
3
  import { i as d, n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './mixins-f750863a.js';
9
- import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-c379e5d7.js';
10
- import { L as LeadInputFieldView } from './sqm-lead-input-field-view-f3775c28.js';
9
+ import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-8d4b2620.js';
10
+ import { L as LeadInputFieldView } from './sqm-lead-input-field-view-d543d939.js';
11
11
 
12
12
  function useLeadInputField() {
13
13
  const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, H, J, w as wn, i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h, F as Fragment, r as registerInstance } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { n as h$1, k as useState } from './dom-context-hooks.module-63370afd.js';
4
4
  import { F as Fn, i as isDemo, d as dist, H, J, B, w as wn, $ as $e } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { A as AuthWrapper, a as AuthColumn } from './mixins-f750863a.js';
5
5
  import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import './global-1099f20d.js';
2
+ import './global-58a69018.js';
3
3
  import { k as useState, m as useRef, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { l as ln, n as nn, J, j as jn, u as useCallback, i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import './mixins-f750863a.js';
8
8
  import './sqm-text-span-view-4c17b8c9.js';
9
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-7d86299c.js';
9
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-5fb1a99e.js';
10
10
 
11
11
  function usePortalEmailVerification(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
5
5
 
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import './global-1099f20d.js';
2
+ import './global-58a69018.js';
3
3
  import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-4c17b8c9.js';
9
- import { P as PortalProfileView } from './sqm-portal-profile-view-3ed13e4d.js';
9
+ import { P as PortalProfileView } from './sqm-portal-profile-view-e3aef106.js';
10
10
  import { i as isEmpty } from './utilities-72c07b09.js';
11
11
 
12
12
  const GET_USER = dist.gql `
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { n as h, j as useReducer, u as useMemo, f as useEffect } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, J, H, L, w as wn, R as Rn, i as isDemo } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
2
- import './global-1099f20d.js';
2
+ import './global-58a69018.js';
3
3
  import { a as commonjsGlobal, u as useMemo, k as useState, c as createCommonjsModule, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
4
4
  import { j as jn, b as setUserIdentity, o as setProgramId, k as kn, d as dist, X as Xe } from './index.module-c9811a48.js';
5
5
  import './cjs-bdfb4486.js';
@@ -15,26 +15,26 @@ import './sqm-text-span-view-4c17b8c9.js';
15
15
  import { C as CloseButtonView } from './sqm-close-button-view-2fa57229.js';
16
16
  import './index-ffa26b43.js';
17
17
  import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
18
- import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-cbafee07.js';
18
+ import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-81541e40.js';
19
19
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-18baae5b.js';
20
20
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-f21e54e3.js';
21
21
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec560.js';
22
22
  import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
23
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-7d86299c.js';
23
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-5fb1a99e.js';
24
24
  import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
25
25
  import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-9e97d8b4.js';
26
26
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
27
- import { P as PortalProfileView } from './sqm-portal-profile-view-3ed13e4d.js';
27
+ import { P as PortalProfileView } from './sqm-portal-profile-view-e3aef106.js';
28
28
  import './utilities-72c07b09.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
30
30
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
31
31
  import './ErrorView-bbf0a042.js';
32
32
  import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
33
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-aae27c2e.js';
33
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-78a1c35c.js';
34
34
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
35
- import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-0a57b622.js';
36
- import { t as taxTypeToName, L as LoadingView } from './utils-6122971b.js';
37
- import { L as LeadInputFieldView } from './sqm-lead-input-field-view-f3775c28.js';
35
+ import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-8dec05e4.js';
36
+ import { t as taxTypeToName, L as LoadingView } from './utils-2695a43e.js';
37
+ import { L as LeadInputFieldView } from './sqm-lead-input-field-view-d543d939.js';
38
38
 
39
39
  /**
40
40
  * lodash (Custom Build) <https://lodash.com/>
@@ -17016,6 +17016,19 @@ const W9ThresholdReached = () => (h("sqm-payout-status-alert", { demoData: { sta
17016
17016
  const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "HOLD" } } }));
17017
17017
  const Loading$b = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, loading: true } } }));
17018
17018
  const Error$b = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, error: true } } }));
17019
+ const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "NEW_PAYEE_REVIEW" } } }));
17020
+ const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
17021
+ const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
17022
+ states: { ...defaultProps$r, status: "BENEFICIARY_NAME_INVALID" },
17023
+ } }));
17024
+ const BeneficiaryNameMismatch = () => (h("sqm-payout-status-alert", { demoData: {
17025
+ states: { ...defaultProps$r, status: "BENEFICIARY_NAME_MISMATCH" },
17026
+ } }));
17027
+ const BankTaxNameMismatch = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "BANK_TAX_NAME_MISMATCH" } } }));
17028
+ const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { demoData: {
17029
+ states: { ...defaultProps$r, status: "WITHDRAWAL_SETTINGS_INVALID" },
17030
+ } }));
17031
+ const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$r, status: "PAYMENT_RETURNED" } } }));
17019
17032
 
17020
17033
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17021
17034
  __proto__: null,
@@ -17028,7 +17041,14 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
17028
17041
  W9ThresholdReached: W9ThresholdReached,
17029
17042
  Hold: Hold,
17030
17043
  Loading: Loading$b,
17031
- Error: Error$b
17044
+ Error: Error$b,
17045
+ NewPayeeReview: NewPayeeReview,
17046
+ PaymentHoldOnChange: PaymentHoldOnChange,
17047
+ BeneficiaryNameInvalid: BeneficiaryNameInvalid,
17048
+ BeneficiaryNameMismatch: BeneficiaryNameMismatch,
17049
+ BankTaxNameMismatch: BankTaxNameMismatch,
17050
+ WithdrawalSettingsInvalid: WithdrawalSettingsInvalid,
17051
+ PaymentReturned: PaymentReturned
17032
17052
  });
17033
17053
 
17034
17054
  // ! IMPORTANT: These objects cannot be used as default values for component props
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { k as useState, y } from './dom-context-hooks.module-63370afd.js';
4
4
  import { _ } from './index.module-c9811a48.js';
5
5
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-1099f20d.js';
2
+ import { i as intl } from './global-58a69018.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  const style = {
@@ -1 +1 @@
1
- import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-1099f20d.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-6122971b.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
1
+ import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-58a69018.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-2695a43e.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};