@saasquatch/mint-components 2.2.0-7 → 2.2.0-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/cjs/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
  2. package/dist/cjs/{data-c03e282a.js → data-89ac73dd.js} +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +48 -307
  6. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +334 -36
  7. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +19 -12
  9. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  10. package/dist/cjs/{sqm-partner-info-modal-view-97770d03.js → sqm-partner-info-modal-view-f6faecf5.js} +1 -1
  11. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  12. package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
  13. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
  15. package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  18. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  19. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
  21. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  22. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-stencilbook.cjs.entry.js +176 -32
  24. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  25. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  26. package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-0e1ddbe4.js} +3 -388
  27. package/dist/cjs/{usePayoutStatus-0a98ee05.js → useIndirectTaxForm-c3c1ec56.js} +291 -0
  28. package/dist/cjs/utils-a3b3d05b.js +478 -0
  29. package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
  30. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  31. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
  32. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
  33. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +2 -2
  34. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +15 -8
  35. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  36. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  37. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  38. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  39. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  40. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  41. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  42. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  43. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  44. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  45. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  46. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  47. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  48. package/dist/collection/components/tax-and-cash/data.js +1 -0
  49. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +19 -1
  50. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +50 -0
  51. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  52. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  53. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +65 -7
  54. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +49 -3
  55. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  56. package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-e115fa1c.js} +431 -30
  57. package/dist/esm/{data-017e5ef2.js → data-8698cbc6.js} +1 -0
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/mint-components.js +1 -1
  60. package/dist/esm/sqm-banking-info-form_10.entry.js +36 -295
  61. package/dist/esm/sqm-big-stat_46.entry.js +333 -35
  62. package/dist/esm/sqm-code-verification.entry.js +1 -1
  63. package/dist/esm/sqm-email-verification_2.entry.js +19 -12
  64. package/dist/esm/sqm-empty_4.entry.js +1 -1
  65. package/dist/esm/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
  66. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  67. package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  68. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  69. package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
  70. package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
  71. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  72. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  73. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  74. package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
  75. package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  76. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  77. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  78. package/dist/esm/sqm-stencilbook.entry.js +174 -30
  79. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  80. package/dist/esm/sqm-text-span.entry.js +1 -1
  81. package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-e1ba6009.js} +3 -385
  82. package/dist/esm/{usePayoutStatus-227ae365.js → useIndirectTaxForm-b2888ea5.js} +291 -3
  83. package/dist/esm/utils-4f5cd04c.js +467 -0
  84. package/dist/esm-es5/ShadowViewAddon-e115fa1c.js +1 -0
  85. package/dist/esm-es5/data-8698cbc6.js +1 -0
  86. package/dist/esm-es5/loader.js +1 -1
  87. package/dist/esm-es5/mint-components.js +1 -1
  88. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  89. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  90. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  91. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  92. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  93. package/dist/esm-es5/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
  94. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  95. package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  96. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  97. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  98. package/dist/esm-es5/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
  99. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  100. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  101. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  102. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  103. package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  104. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  105. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  106. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  107. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  108. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  109. package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
  110. package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
  111. package/dist/esm-es5/utils-4f5cd04c.js +1 -0
  112. package/dist/mint-components/mint-components.esm.js +1 -1
  113. package/dist/mint-components/{p-4034f157.js → p-0afa6148.js} +1 -1
  114. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  115. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  116. package/dist/mint-components/{p-b1b20d42.entry.js → p-1d398dbc.entry.js} +1 -1
  117. package/dist/mint-components/p-1e6a2945.js +1 -0
  118. package/dist/mint-components/p-1efb42e2.js +499 -0
  119. package/dist/mint-components/p-1f387c7b.system.js +1 -1
  120. package/dist/mint-components/{p-d6ccb6fc.entry.js → p-2ed13619.entry.js} +1 -1
  121. package/dist/mint-components/{p-b1765c78.system.js → p-31815fb6.system.js} +1 -1
  122. package/dist/mint-components/p-335a5736.entry.js +1 -0
  123. package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-d1c1c2c9.entry.js → p-3596e241.entry.js} +2 -2
  125. package/dist/mint-components/{p-1faa6ddf.system.entry.js → p-37e24621.system.entry.js} +1 -1
  126. package/dist/mint-components/{p-dafe30c3.entry.js → p-4d73a616.entry.js} +1 -1
  127. package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-51ae6716.system.entry.js} +1 -1
  128. package/dist/mint-components/p-58c24352.system.js +6 -0
  129. package/dist/mint-components/{p-00046ec1.js → p-5c52100b.js} +1 -0
  130. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  131. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  132. package/dist/mint-components/{p-bd972473.system.js → p-7628e56f.system.js} +1 -1
  133. package/dist/mint-components/{p-d71a8b38.entry.js → p-7cbdf341.entry.js} +2 -2
  134. package/dist/mint-components/p-7d2d9ef9.system.js +1 -0
  135. package/dist/mint-components/{p-8d073bdf.entry.js → p-84495fb8.entry.js} +1 -1
  136. package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-86d20b47.system.entry.js} +1 -1
  137. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  138. package/dist/mint-components/p-9674856e.entry.js +9 -0
  139. package/dist/mint-components/p-9c1f5317.system.js +1 -0
  140. package/dist/mint-components/p-9f48640d.js +1 -0
  141. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  142. package/dist/mint-components/p-a88b8165.system.entry.js +1 -0
  143. package/dist/mint-components/p-abe9f5b1.js +99 -0
  144. package/dist/mint-components/{p-31edeff4.system.js → p-ae2f610e.system.js} +1 -1
  145. package/dist/mint-components/p-b222bace.system.entry.js +1 -0
  146. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  147. package/dist/mint-components/{p-2ab31786.js → p-b871d158.js} +1 -1
  148. package/dist/mint-components/p-b96ed8eb.js +1 -0
  149. package/dist/mint-components/p-bbd41807.entry.js +291 -0
  150. package/dist/mint-components/{p-9b15ee47.system.js → p-be6a0dee.system.js} +1 -1
  151. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  152. package/dist/mint-components/{p-0102ad17.system.entry.js → p-c0f8f977.system.entry.js} +1 -1
  153. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  154. package/dist/mint-components/p-cdabd9de.system.js +1 -0
  155. package/dist/mint-components/{p-7699d40a.system.entry.js → p-cfc35705.system.entry.js} +1 -1
  156. package/dist/mint-components/p-d2ede7cd.system.entry.js +1 -0
  157. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  158. package/dist/mint-components/p-db6bf7cf.system.entry.js +1 -0
  159. package/dist/mint-components/p-e30abc44.js +1 -0
  160. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  161. package/dist/mint-components/{p-ae4994e1.js → p-e8e7af06.js} +1 -1
  162. package/dist/mint-components/p-ebc519bc.system.js +1 -0
  163. package/dist/mint-components/{p-eee0bcf4.entry.js → p-ef32fa8f.entry.js} +1 -1
  164. package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
  165. package/dist/mint-components/p-ffcebe78.entry.js +83 -0
  166. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  167. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  168. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  169. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  170. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  171. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  172. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  173. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  174. package/dist/types/components/tax-and-cash/data.d.ts +2 -0
  175. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +6 -0
  176. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +8 -0
  177. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
  178. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -0
  179. package/dist/types/components.d.ts +397 -4
  180. package/docs/docs.docx +0 -0
  181. package/docs/raisins.json +1 -1
  182. package/grapesjs/grapesjs.js +1 -1
  183. package/package.json +1 -1
  184. package/readme.md +60 -1
  185. package/shoelace/assets/icons/twitter-x.svg +4 -0
  186. package/dist/cjs/utils-15ce04e3.js +0 -93
  187. package/dist/esm/utils-17daa419.js +0 -85
  188. package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
  189. package/dist/esm-es5/data-017e5ef2.js +0 -1
  190. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  191. package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
  192. package/dist/esm-es5/usePayoutStatus-227ae365.js +0 -6
  193. package/dist/esm-es5/utils-17daa419.js +0 -1
  194. package/dist/mint-components/p-00dd7f08.js +0 -1
  195. package/dist/mint-components/p-3254fbb4.entry.js +0 -291
  196. package/dist/mint-components/p-4a8ffa03.system.js +0 -1
  197. package/dist/mint-components/p-4e34bcb1.system.js +0 -1
  198. package/dist/mint-components/p-53d90eb5.js +0 -463
  199. package/dist/mint-components/p-5e300ec1.system.js +0 -6
  200. package/dist/mint-components/p-614723aa.js +0 -1
  201. package/dist/mint-components/p-6af71f23.entry.js +0 -9
  202. package/dist/mint-components/p-6c23abd8.entry.js +0 -1
  203. package/dist/mint-components/p-753d06ef.entry.js +0 -133
  204. package/dist/mint-components/p-7aace2b3.system.js +0 -1
  205. package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
  206. package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
  207. package/dist/mint-components/p-b699f76e.system.js +0 -1
  208. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  209. package/dist/mint-components/p-b7370480.js +0 -1
  210. package/dist/mint-components/p-ce7d824b.js +0 -49
  211. package/dist/mint-components/p-e93cdcbd.system.js +0 -1
  212. package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
  213. package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
  214. package/docs/stats.json +0 -122783
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
2
2
  import { i as intl } from './global-75e96214.js';
3
- import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
3
+ import { m as useRef, k as useState, f as useEffect, n as h$1, b as browser, j as useReducer, u as useMemo } from './dom-context-hooks.module-50442785.js';
4
4
  import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, p as En, b as useCallback, R as Rn, w as wn } from './index.module-02cb914c.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -12,15 +12,15 @@ import { u as useRerenderListener, a as useRequestRerender } from './re-render-b
12
12
  import { u as useChildElements } from './useChildElements-06937df7.js';
13
13
  import { l as luxon } from './luxon-1be92a8e.js';
14
14
  import { g as generateUserError } from './useReferralTable-03d32c6f.js';
15
- import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-d13f9d3e.js';
16
- import { t as taxTypeToName, a as validTaxDocument, g as getCountryObj, o as objectIsFull } from './utils-17daa419.js';
17
- import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-017e5ef2.js';
15
+ import { O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, U as UserInfoFormView } from './sqm-user-info-form-view-e1ba6009.js';
16
+ import { t as taxTypeToName, b as validTaxDocument, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, o as objectIsFull, A as ADDRESS_REGIONS } from './utils-4f5cd04c.js';
17
+ import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE } from './data-8698cbc6.js';
18
18
  import { c as VERIFICATION_EVENT_KEY } from './keys-1054056a.js';
19
19
  import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
20
- import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-227ae365.js';
20
+ import { a as useIndirectTaxForm, b as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY, c as CONNECT_PARTNER, C as COMPLETE_PARTNER } from './useIndirectTaxForm-b2888ea5.js';
21
21
 
22
22
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
23
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70;
23
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
24
24
  const { errors, ...formState } = props.states.formState;
25
25
  return {
26
26
  0: {
@@ -253,6 +253,24 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
253
253
  h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
254
254
  h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
255
255
  },
256
+ 15: {
257
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.branchNameLabel, name: "/branchName", id: "branchName", key: "branchName", type: "text" }, (((_71 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _71 === void 0 ? void 0 : _71.branchName) && {
258
+ class: "error-input",
259
+ helpText: getValidationErrorMessage({
260
+ type: (_73 = (_72 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _72 === void 0 ? void 0 : _72.branchName) === null || _73 === void 0 ? void 0 : _73.type,
261
+ label: props.text.branchNameLabel,
262
+ }),
263
+ })))),
264
+ },
265
+ 16: {
266
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.classificationCodeLabel, name: "/classificationCode", id: "classificationCode", key: "classificationCode", type: "text" }, (((_74 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _74 === void 0 ? void 0 : _74.classificationCode) && {
267
+ class: "error-input",
268
+ helpText: getValidationErrorMessage({
269
+ type: (_76 = (_75 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _75 === void 0 ? void 0 : _75.classificationCode) === null || _76 === void 0 ? void 0 : _76.type,
270
+ label: props.text.classificationCodeLabel,
271
+ }),
272
+ })))),
273
+ },
256
274
  };
257
275
  }
258
276
 
@@ -1442,11 +1460,19 @@ const BankingInfoForm = class {
1442
1460
  * @uiName Branch code field label
1443
1461
  */
1444
1462
  this.branchCodeLabel = "Branch code";
1463
+ /**
1464
+ * @uiName Branch name field label
1465
+ */
1466
+ this.branchNameLabel = "Branch name";
1445
1467
  /**
1446
1468
  * Label text for the classification input field
1447
1469
  * @uiName Classification field label
1448
1470
  */
1449
1471
  this.classificationLabel = "Classification";
1472
+ /**
1473
+ * @uiName Classification code field label
1474
+ */
1475
+ this.classificationCodeLabel = "KBE code";
1450
1476
  /**
1451
1477
  * @uiName Taxpayer ID field label
1452
1478
  */
@@ -2842,291 +2868,6 @@ const IndirectTaxFormView = (props) => {
2842
2868
  h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2843
2869
  };
2844
2870
 
2845
- const CONNECT_PARTNER = dist.gql `
2846
- mutation createImpactConnection($vars: ImpactConnectionInput!) {
2847
- createImpactConnection(impactConnectionInput: $vars) {
2848
- success
2849
- validationErrors {
2850
- field
2851
- message
2852
- }
2853
- user {
2854
- id
2855
- accountId
2856
- impactConnection {
2857
- connected
2858
- publisher {
2859
- brandedSignup
2860
- requiredTaxDocumentType
2861
- currentTaxDocument {
2862
- type
2863
- status
2864
- }
2865
- }
2866
- }
2867
- }
2868
- }
2869
- }
2870
- `;
2871
- const COMPLETE_PARTNER = dist.gql `
2872
- mutation completeImpactConnection($vars: ImpactConnectionInput!) {
2873
- completeImpactConnection(impactConnectionInput: $vars) {
2874
- success
2875
- validationErrors {
2876
- field
2877
- message
2878
- }
2879
- user {
2880
- id
2881
- accountId
2882
- impactConnection {
2883
- connected
2884
- publisher {
2885
- brandedSignup
2886
- requiredTaxDocumentType
2887
- currentTaxDocument {
2888
- type
2889
- status
2890
- }
2891
- }
2892
- }
2893
- }
2894
- }
2895
- }
2896
- `;
2897
- function getOption(countries, countryCode) {
2898
- if (!countries)
2899
- return;
2900
- if (countries.find((c) => c.countryCode === countryCode)) {
2901
- return "otherRegion";
2902
- }
2903
- else {
2904
- return "notRegistered";
2905
- }
2906
- }
2907
- function useIndirectTaxForm(props) {
2908
- var _a, _b, _c, _d, _e;
2909
- const user = J();
2910
- const locale = L();
2911
- const formRef = useRef(null);
2912
- const context = Fn(TAX_FORM_CONTEXT_NAMESPACE);
2913
- const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
2914
- const [connectImpactPartner, { loading: connectLoading }] = $e(CONNECT_PARTNER);
2915
- const [completeImpactPartner, { loading: completeLoading }] = $e(COMPLETE_PARTNER);
2916
- const userForm = Fn(USER_FORM_CONTEXT_NAMESPACE);
2917
- const { data: userData, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
2918
- const { data: _countriesRes, loading: countriesLoading } = $n(COUNTRIES_QUERY_NAMESPACE);
2919
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2920
- const _countries = useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2921
- const [loading, setLoading] = useState(false);
2922
- const [formState, setFormState] = useState({});
2923
- const [errors, setErrors] = useState({});
2924
- const [countrySearch, setCountrySearch] = useState("");
2925
- const [filteredCountries, setFilteredCountries] = useState(_countries || []);
2926
- const [option, setOption] = useState("notRegistered");
2927
- const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
2928
- useEffect(() => {
2929
- // reset redirect hash
2930
- window.location.hash = "";
2931
- }, []);
2932
- useEffect(() => {
2933
- var _a;
2934
- if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
2935
- return;
2936
- const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
2937
- setOption(_option);
2938
- }, [publisher, _countries]);
2939
- useEffect(() => {
2940
- if (countrySearch.trim() === "") {
2941
- setFilteredCountries(_countries || []);
2942
- }
2943
- else {
2944
- setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
2945
- }
2946
- }, [countrySearch, _countries]);
2947
- useEffect(() => {
2948
- var _a, _b;
2949
- const user = userData === null || userData === void 0 ? void 0 : userData.user;
2950
- if (!user)
2951
- return;
2952
- if ((_b = (_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.taxInformation) {
2953
- setFormState({
2954
- province: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
2955
- subRegion: user.impactConnection.publisher.taxInformation.indirectTaxRegion,
2956
- hasQst: !!user.impactConnection.publisher.taxInformation.additionalTaxId,
2957
- qstNumber: user.impactConnection.publisher.taxInformation.additionalTaxId,
2958
- hasSubRegionTaxNumber: !!user.impactConnection.publisher.taxInformation.withholdingTaxId,
2959
- subRegionTaxNumber: user.impactConnection.publisher.taxInformation.withholdingTaxId,
2960
- selectedRegion: user.impactConnection.publisher.taxInformation.indirectTaxCountryCode,
2961
- indirectTaxNumber: user.impactConnection.publisher.taxInformation.indirectTaxId,
2962
- });
2963
- }
2964
- else {
2965
- setFormState({
2966
- selectedRegion: (user === null || user === void 0 ? void 0 : user.countryCode) || (userForm === null || userForm === void 0 ? void 0 : userForm.countryCode),
2967
- });
2968
- }
2969
- }, [userData, userForm]);
2970
- const onFormChange = (field, e) => {
2971
- var _a, _b;
2972
- const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
2973
- if (!value)
2974
- console.error("Could not detect select change");
2975
- setFormState((p) => ({ ...p, [field]: value }));
2976
- };
2977
- async function connectPartner(formData) {
2978
- var _a, _b, _c, _d, _e, _f, _g;
2979
- const vars = {
2980
- user: {
2981
- id: user.id,
2982
- accountId: user.accountId,
2983
- },
2984
- firstName: userForm.firstName,
2985
- lastName: userForm.lastName,
2986
- countryCode: userForm.countryCode,
2987
- currency: userForm.currency,
2988
- address: userForm.address,
2989
- city: userForm.city,
2990
- state: userForm.state,
2991
- postalCode: userForm.postalCode,
2992
- phoneNumber: userForm.phoneNumber,
2993
- phoneNumberCountryCode: userForm.phoneNumberCountryCode,
2994
- indirectTaxCountryCode: formData.selectedRegion,
2995
- indirectTaxRegion: formData.province || formData.subRegion,
2996
- indirectTaxId: formData.indirectTaxNumber,
2997
- additionalTaxId: formData.qstNumber,
2998
- withholdingTaxId: formData.subRegionTaxNumber,
2999
- };
3000
- // If the partner has already been started call completeImpactConnection
3001
- // to fill in the remaining details. Otherwise create from scratch.
3002
- let result = null;
3003
- let connectionResult;
3004
- if (((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
3005
- result = await completeImpactPartner({
3006
- vars,
3007
- });
3008
- connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
3009
- }
3010
- else {
3011
- result = await connectImpactPartner({
3012
- vars,
3013
- });
3014
- connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
3015
- }
3016
- if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
3017
- throw new Error();
3018
- if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
3019
- // Output backend errors to console for now
3020
- console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
3021
- throw new Error();
3022
- }
3023
- await refetch();
3024
- const resultPublisher = (_g = (_f = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher;
3025
- const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3026
- // Fire form change event
3027
- window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
3028
- return {
3029
- resultPublisher,
3030
- hasValidCurrentDocument,
3031
- };
3032
- }
3033
- const onSubmit = async (event) => {
3034
- if (!option) {
3035
- setErrors({ taxDetails: true });
3036
- return;
3037
- }
3038
- let formData = { taxOption: option };
3039
- let validationErrors = {};
3040
- const controls = event.target.getFormControls();
3041
- controls.forEach((control) => {
3042
- if (!control.name || !control.id)
3043
- return;
3044
- if (option === "notRegistered")
3045
- return; // Don't include fields for notRegistered option
3046
- const key = control.name;
3047
- const value = control.value;
3048
- jsonpointer.set(formData, key, value);
3049
- if (control.required && !value) {
3050
- jsonpointer.set(validationErrors, key, true);
3051
- }
3052
- });
3053
- setErrors(validationErrors);
3054
- if (Object.keys(validationErrors).length) {
3055
- return;
3056
- }
3057
- setLoading(true);
3058
- try {
3059
- const { resultPublisher, hasValidCurrentDocument } = await connectPartner(formData);
3060
- if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
3061
- !hasValidCurrentDocument) {
3062
- // Go to docusign form
3063
- setStep("/3");
3064
- }
3065
- else {
3066
- if (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.brandedSignup) {
3067
- // Go to banking information form
3068
- setStep("/4");
3069
- }
3070
- else {
3071
- // Go right to the dashboard
3072
- setStep("/dashboard");
3073
- }
3074
- }
3075
- }
3076
- catch (e) {
3077
- setErrors({ general: true });
3078
- }
3079
- finally {
3080
- setLoading(false);
3081
- }
3082
- };
3083
- const onBack = () => {
3084
- setStep(context.overrideBackStep || "/1");
3085
- };
3086
- return {
3087
- states: {
3088
- step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
3089
- hideSteps: context.hideSteps,
3090
- disabled: loading || countriesLoading || connectLoading || completeLoading,
3091
- loading: loading || connectLoading || countriesLoading || completeLoading,
3092
- isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
3093
- loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
3094
- formState: {
3095
- checked: option,
3096
- errors,
3097
- },
3098
- },
3099
- callbacks: {
3100
- onBack,
3101
- onSubmit,
3102
- onFormChange,
3103
- onChange: setOption,
3104
- setCountrySearch,
3105
- onQstToggle: () => setFormState((p) => ({ ...p, hasQst: !p.hasQst })),
3106
- onSpainToggle: () => setFormState((p) => ({
3107
- ...p,
3108
- hasSubRegionTaxNumber: !p.hasSubRegionTaxNumber,
3109
- })),
3110
- },
3111
- data: {
3112
- esRegions: INDIRECT_TAX_SPAIN_REGIONS,
3113
- countries: filteredCountries,
3114
- allCountries: _countries,
3115
- provinces: INDIRECT_TAX_PROVINCES,
3116
- },
3117
- text: props.getTextProps(),
3118
- refs: {
3119
- formRef,
3120
- },
3121
- slotProps: {
3122
- formState: {
3123
- ...formState,
3124
- errors,
3125
- },
3126
- },
3127
- };
3128
- }
3129
-
3130
2871
  const IndirectTaxForm = class {
3131
2872
  constructor(hostRef) {
3132
2873
  registerInstance(this, hostRef);
@@ -3180,7 +2921,7 @@ const IndirectTaxForm = class {
3180
2921
  /**
3181
2922
  * @uiName Indirect tax number field label
3182
2923
  */
3183
- this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
2924
+ 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}}";
3184
2925
  /**
3185
2926
  * Displayed to participants registered for QST.
3186
2927
  * @uiName QST number field label
@@ -3219,7 +2960,7 @@ const IndirectTaxForm = class {
3219
2960
  /**
3220
2961
  * @uiName Missing indirect tax number error message
3221
2962
  */
3222
- 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";
2963
+ 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";
3223
2964
  /**
3224
2965
  * Placeholder text displayed in the country search dropdown
3225
2966
  * @uiName Country field placeholder text
@@ -4030,7 +3771,7 @@ const PayoutDetailsCard = class {
4030
3771
  * Badge text indicating payout status
4031
3772
  * @uiName Payout badge status text
4032
3773
  */
4033
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
3774
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
4034
3775
  /**
4035
3776
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4036
3777
  * @uiName Payout schedule by threshold text
@@ -5084,7 +4825,7 @@ const TaxAndCashDashboard = class {
5084
4825
  /**
5085
4826
  * @uiName Payout status badge
5086
4827
  */
5087
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4828
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
5088
4829
  /**
5089
4830
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5090
4831
  * @uiName Payout schedule by threshold text