@saasquatch/mint-components 2.2.0-6 → 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 +20 -13
  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 +4 -4
  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 +20 -13
  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-0f042aa6.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-e516e8ca.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
@@ -13,10 +13,10 @@ const JSS = require('./JSS-8503a151.js');
13
13
  require('./useReferralCodes-0f7948af.js');
14
14
  require('./mixins-4761d472.js');
15
15
  const copyTextView = require('./copy-text-view-bb2c0ea7.js');
16
- require('./sqm-text-span-view-8a32dd8c.js');
16
+ require('./sqm-text-span-view-b9e10f5d.js');
17
17
  const usePortalRegistrationForm = require('./usePortalRegistrationForm-23ee2d62.js');
18
18
  const useRegistrationFormState = require('./useRegistrationFormState-4fe5b770.js');
19
- const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-fd48f1d3.js');
19
+ const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
20
20
  const reRender = require('./re-render-72a0ef45.js');
21
21
  const useChildElements = require('./useChildElements-041127d7.js');
22
22
  require('./luxon-c1ad356a.js');
@@ -27,13 +27,13 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
27
27
  const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
28
28
  const utilities = require('./utilities-fcdb9504.js');
29
29
  const ErrorView = require('./ErrorView-ee7b0f36.js');
30
- const ShadowViewAddon = require('./ShadowViewAddon-1c054d52.js');
31
- require('./sqm-portal-container-view-70a47420.js');
32
- const utils$1 = require('./utils-15ce04e3.js');
33
- const data = require('./data-c03e282a.js');
30
+ const ShadowViewAddon = require('./ShadowViewAddon-3b477e58.js');
31
+ require('./sqm-portal-container-view-757f921b.js');
32
+ const utils$1 = require('./utils-a3b3d05b.js');
33
+ const data = require('./data-89ac73dd.js');
34
34
  const keys = require('./keys-5a2c9ed2.js');
35
35
  require('./eventKeys-7af4df4d.js');
36
- const usePayoutStatus = require('./usePayoutStatus-0a98ee05.js');
36
+ const useIndirectTaxForm = require('./useIndirectTaxForm-c3c1ec56.js');
37
37
  const parseStates = require('./parseStates-d1effc19.js');
38
38
 
39
39
  /**
@@ -791,7 +791,7 @@ const CheckboxField = class {
791
791
  */
792
792
  this.checkboxLabelLink = "https://example.com";
793
793
  /**
794
- * @uiName Checkbox label link lext
794
+ * @uiName Checkbox label link text
795
795
  */
796
796
  this.checkboxLabelLinkText = "Terms and Conditions";
797
797
  /**
@@ -3389,7 +3389,7 @@ const PayoutStatusAlert = class {
3389
3389
  render() {
3390
3390
  const props = index_module.isDemo()
3391
3391
  ? useDemoPayoutStatusAlert(this)
3392
- : usePayoutStatus.usePayoutStatus(this);
3392
+ : useIndirectTaxForm.usePayoutStatus(this);
3393
3393
  return index.h(PayoutStatusAlertView, Object.assign({}, props));
3394
3394
  }
3395
3395
  };
@@ -4623,6 +4623,11 @@ const SqmReferralIframe = class {
4623
4623
  * @uiName IFrame width
4624
4624
  */
4625
4625
  this.iframeWidth = "100%";
4626
+ /**
4627
+ * Override the default parameter name used in the iframe
4628
+ * @uiName Referral code parameter name
4629
+ */
4630
+ this.codeParam = "rsCode";
4626
4631
  domContextHooks_module.h$1(this);
4627
4632
  }
4628
4633
  disconnectedCallback() { }
@@ -6057,7 +6062,6 @@ function useDemoShareCode(props) {
6057
6062
  borderRadius: props.borderRadius,
6058
6063
  borderColor: props.borderColor,
6059
6064
  buttonType: props.buttonType,
6060
- rewardStatus: "AVAILABLE",
6061
6065
  open,
6062
6066
  onClick: () => {
6063
6067
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
@@ -6117,6 +6121,199 @@ const ShareLink = class {
6117
6121
  * @uiGroup Style
6118
6122
  */
6119
6123
  this.buttonStyle = "icon";
6124
+ /**
6125
+ * Let advocates customize their share links up to 5 times.
6126
+ *
6127
+ * @uiName Allow customization
6128
+ * @uiType boolean
6129
+ * @uiGroup Customizable Vanity Link
6130
+ * @uiWidget CustomLinkSwitch
6131
+ * @requiredFlavor impact
6132
+ */
6133
+ this.allowCustomization = false;
6134
+ /**
6135
+ * Text for the cancel button in editing mode
6136
+ *
6137
+ * @uiName Cancel button label
6138
+ * @uiType string
6139
+ * @uiGroup Customizable Vanity Link
6140
+ * @requiredFlavor impact
6141
+ */
6142
+ this.cancelLabelText = "Cancel";
6143
+ /**
6144
+ * Tooltip text shown when link customization is disabled
6145
+ *
6146
+ * @uiName Customize disabled tooltip
6147
+ * @uiType string
6148
+ * @uiGroup Customizable Vanity Link
6149
+ * @requiredFlavor impact
6150
+ */
6151
+ this.customizeDisabledTooltip = "Link customization is not available.";
6152
+ /**
6153
+ * Displayed below the share link.
6154
+ *
6155
+ * @uiName Customize link button label
6156
+ * @uiType string
6157
+ * @uiGroup Customizable Vanity Link
6158
+ * @requiredFlavor impact
6159
+ */
6160
+ this.customizeLinkButtonLabel = "Customize Link";
6161
+ /**
6162
+ * Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
6163
+ *
6164
+ * @uiName Edit limit reached text
6165
+ * @uiType string
6166
+ * @uiWidget textarea
6167
+ * @uiGroup Customizable Vanity Link
6168
+ * @requiredFlavor impact
6169
+ */
6170
+ this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
6171
+ /**
6172
+ * Subtext shown while the user is customizing their URL.
6173
+ *
6174
+ * @uiName Edit limit text
6175
+ * @uiType string
6176
+ * @uiGroup Customizable Vanity Link
6177
+ * @requiredFlavor impact
6178
+ */
6179
+ this.editLimitText = "You can edit your link up to {editsRemaining} more time(s).";
6180
+ /**
6181
+ * Description text shown when the link contains invalid special characters.
6182
+ *
6183
+ * @uiName Invalid characters error description
6184
+ * @uiType string
6185
+ * @uiWidget textarea
6186
+ * @uiGroup Customizable Vanity Link
6187
+ * @requiredFlavor impact
6188
+ */
6189
+ this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
6190
+ /**
6191
+ * Title of the error message shown when the link contains invalid special characters.
6192
+ *
6193
+ * @uiName Invalid characters error title
6194
+ * @uiType string
6195
+ * @uiGroup Customizable Vanity Link
6196
+ * @requiredFlavor impact
6197
+ */
6198
+ this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
6199
+ /**
6200
+ * Description text shown when the link has already been taken
6201
+ *
6202
+ * @uiName Link taken error message
6203
+ * @uiType string
6204
+ * @uiWidget textarea
6205
+ * @uiGroup Customizable Vanity Link
6206
+ * @requiredFlavor impact
6207
+ */
6208
+ this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
6209
+ /**
6210
+ * Title of the error message shown when the link has already been taken
6211
+ *
6212
+ * @uiName Link taken error title
6213
+ * @uiType string
6214
+ * @uiGroup Customizable Vanity Link
6215
+ * @requiredFlavor impact
6216
+ */
6217
+ this.linkTakenErrorTitle = "This link is already taken";
6218
+ /**
6219
+ * Description text shown when the link contains profanity or brand names.
6220
+ *
6221
+ * @uiName Restricted words error description
6222
+ * @uiType string
6223
+ * @uiWidget textarea
6224
+ * @uiGroup Customizable Vanity Link
6225
+ * @requiredFlavor impact
6226
+ */
6227
+ this.restrictedWordsErrorDescription = "This link contains a restricted word.";
6228
+ /**
6229
+ * Title of the error message shown when the link contains profanity or brand names.
6230
+ *
6231
+ * @uiName Restricted words error title
6232
+ * @uiType string
6233
+ * @uiGroup Customizable Vanity Link
6234
+ * @requiredFlavor impact
6235
+ */
6236
+ this.restrictedWordsErrorTitle = "Please try a different link";
6237
+ /**
6238
+ * Text for the save button in editing mode
6239
+ *
6240
+ * @uiName Save button label
6241
+ * @uiType string
6242
+ * @uiGroup Customizable Vanity Link
6243
+ * @requiredFlavor impact
6244
+ */
6245
+ this.saveLabelText = "Save";
6246
+ /**
6247
+ * Text for the save button while saving is in progress
6248
+ *
6249
+ * @uiName Saving button label
6250
+ * @uiType string
6251
+ * @uiGroup Customizable Vanity Link
6252
+ * @requiredFlavor impact
6253
+ */
6254
+ this.savingLabelText = "Saving...";
6255
+ /**
6256
+ * Label shown above the link input while editing
6257
+ *
6258
+ * @uiName Edit input label
6259
+ * @uiType string
6260
+ * @uiGroup Customizable Vanity Link
6261
+ * @requiredFlavor impact
6262
+ */
6263
+ this.editLabelText = "Enter your link";
6264
+ /**
6265
+ * Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
6266
+ *
6267
+ * @uiName Characters remaining text
6268
+ * @uiType string
6269
+ * @uiGroup Customizable Vanity Link
6270
+ * @requiredFlavor impact
6271
+ */
6272
+ this.charactersRemainingText = "Characters remaining: {charactersRemaining}";
6273
+ /**
6274
+ * Text shown while the link is being validated
6275
+ *
6276
+ * @uiName Validating label
6277
+ * @uiType string
6278
+ * @uiGroup Customizable Vanity Link
6279
+ * @requiredFlavor impact
6280
+ */
6281
+ this.validatingLabelText = "Validating...";
6282
+ /**
6283
+ * @uiName Min characters text
6284
+ * @uiType string
6285
+ * @uiGroup Customizable Vanity Link
6286
+ * @requiredFlavor impact
6287
+ */
6288
+ this.minCharactersText = "Minimum 3 characters.";
6289
+ /**
6290
+ * Display text for the support link in the edit limit reached message
6291
+ *
6292
+ * @uiName Support link text
6293
+ * @uiType string
6294
+ * @uiGroup Customizable Vanity Link
6295
+ * @requiredFlavor impact
6296
+ */
6297
+ this.supportLinkText = "Support";
6298
+ /**
6299
+ * Title shown when saving fails with an unknown error
6300
+ *
6301
+ * @uiName Save error title
6302
+ * @uiType string
6303
+ * @uiGroup Customizable Vanity Link
6304
+ * @requiredFlavor impact
6305
+ */
6306
+ this.saveErrorTitle = "Error";
6307
+ /**
6308
+ * Description shown when saving fails with an unknown error
6309
+ *
6310
+ * @uiName Save error description
6311
+ * @uiType string
6312
+ * @uiWidget textarea
6313
+ * @uiGroup Customizable Vanity Link
6314
+ * @requiredFlavor impact
6315
+ */
6316
+ this.saveErrorDescription = "Failed to save custom link. Please try again.";
6120
6317
  domContextHooks_module.h$1(this);
6121
6318
  }
6122
6319
  disconnectedCallback() { }
@@ -6125,33 +6322,79 @@ const ShareLink = class {
6125
6322
  const props = index_module.isDemo()
6126
6323
  ? useDemoShareLink(thisProps)
6127
6324
  : ShadowViewAddon.useShareLink(thisProps);
6128
- return index.h(copyTextView.CopyTextView, Object.assign({}, props));
6325
+ return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
6129
6326
  }
6130
6327
  };
6131
6328
  function useDemoShareLink(props) {
6329
+ var _a;
6132
6330
  const [open, setOpen] = domContextHooks_module.useState(false);
6331
+ const [isEditing, setIsEditing] = domContextHooks_module.useState(false);
6332
+ const [editValue, setEditValue] = domContextHooks_module.useState("");
6133
6333
  const copyString = "https://www.example.com/sharelink/abc";
6134
- return cjs.cjs({
6135
- copyString: copyString,
6136
- tooltiptext: props.tooltiptext,
6137
- textAlign: props.textAlign,
6138
- buttonStyle: props.buttonStyle,
6139
- backgroundColor: props.backgroundColor,
6140
- textColor: props.textColor,
6141
- borderRadius: props.borderRadius,
6142
- buttonType: props.buttonType,
6143
- copyButtonLabel: props.copyButtonLabel,
6144
- borderColor: props.borderColor,
6145
- rewardStatus: "AVAILABLE",
6146
- open,
6147
- onClick: () => {
6148
- // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
6149
- // Only if called from a user-initiated event
6150
- navigator.clipboard.writeText(copyString);
6151
- setOpen(true);
6152
- setTimeout(() => setOpen(false), props.tooltiplifespan);
6334
+ const domainPrefix = "https://www.example.com/";
6335
+ const baseProps = {
6336
+ copyTextViewProps: {
6337
+ copyString,
6338
+ tooltiptext: props.tooltiptext,
6339
+ textAlign: props.textAlign,
6340
+ buttonStyle: props.buttonStyle,
6341
+ backgroundColor: props.backgroundColor,
6342
+ textColor: props.textColor,
6343
+ borderRadius: props.borderRadius,
6344
+ buttonType: props.buttonType,
6345
+ copyButtonLabel: props.copyButtonLabel,
6346
+ borderColor: props.borderColor,
6347
+ open,
6348
+ onClick: () => {
6349
+ navigator.clipboard.writeText(copyString);
6350
+ setOpen(true);
6351
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
6352
+ },
6153
6353
  },
6154
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
6354
+ allowCustomization: props.allowCustomization,
6355
+ customizeLinkLabel: props.customizeLinkButtonLabel,
6356
+ saveLabelText: props.saveLabelText,
6357
+ savingLabelText: props.savingLabelText,
6358
+ cancelLabelText: props.cancelLabelText,
6359
+ editLabelText: props.editLabelText,
6360
+ charactersRemainingText: props.charactersRemainingText,
6361
+ validatingLabelText: props.validatingLabelText,
6362
+ isEditing,
6363
+ editValue,
6364
+ domainPrefix,
6365
+ editsRemaining: 5,
6366
+ maxEdits: 5,
6367
+ limitReached: false,
6368
+ validationError: null,
6369
+ isValidating: false,
6370
+ isSaving: false,
6371
+ characterLimit: 15,
6372
+ minCharacters: 3,
6373
+ charactersRemaining: 15 - editValue.length,
6374
+ editLimitText: props.editLimitText,
6375
+ editLimitReachedText: props.editLimitReachedText,
6376
+ supportLinkText: props.supportLinkText,
6377
+ minCharactersText: props.minCharactersText,
6378
+ customizeDisabled: false,
6379
+ customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
6380
+ onCustomizeClick: () => {
6381
+ setIsEditing(true);
6382
+ setEditValue("");
6383
+ },
6384
+ onEditValueChange: (value) => {
6385
+ setEditValue(value);
6386
+ },
6387
+ onSave: () => {
6388
+ setIsEditing(false);
6389
+ },
6390
+ onCancel: () => {
6391
+ setIsEditing(false);
6392
+ setEditValue("");
6393
+ },
6394
+ };
6395
+ return cjs.cjs(baseProps, props.demoData || {}, {
6396
+ arrayMerge: (_, a) => a,
6397
+ });
6155
6398
  }
6156
6399
 
6157
6400
  const StatContainer = class {
@@ -6418,8 +6661,14 @@ function getCurrentStep(user) {
6418
6661
  if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
6419
6662
  return "/1";
6420
6663
  }
6421
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
6422
- if (user.impactConnection.connectionStatus === "STARTED") {
6664
+ const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, billingAddress, billingCity, billingCountryCode, billingPostalCode, billingState, phoneNumber, phoneNumberCountryCode, } = user.impactConnection.publisher;
6665
+ const hasBillingInfo = billingAddress &&
6666
+ billingCity &&
6667
+ billingCountryCode &&
6668
+ billingPostalCode &&
6669
+ phoneNumberCountryCode &&
6670
+ phoneNumber;
6671
+ if (!hasBillingInfo) {
6423
6672
  return "/1";
6424
6673
  }
6425
6674
  // If they do have a required document, look at current document
@@ -6439,6 +6688,7 @@ function useTaxAndCash() {
6439
6688
  const host = index_module._();
6440
6689
  const user = index_module.J();
6441
6690
  const locale = index_module.L();
6691
+ const [completeImpactPartner, { loading: completeLoading }] = index_module.$e(useIndirectTaxForm.COMPLETE_PARTNER);
6442
6692
  // State for current step of form
6443
6693
  const [step, setStep] = index_module.In({
6444
6694
  namespace: data.TAX_CONTEXT_NAMESPACE,
@@ -6546,16 +6796,54 @@ function useTaxAndCash() {
6546
6796
  setCurrenciesContext(supportedCurrencies);
6547
6797
  }, [supportedCurrencies]);
6548
6798
  domContextHooks_module.useEffect(() => {
6799
+ var _a;
6549
6800
  if (errors) {
6550
6801
  setStep("/error");
6551
6802
  return;
6552
6803
  }
6553
6804
  if (!host || !user)
6554
6805
  return;
6806
+ async function completeConnection(user) {
6807
+ var _a, _b, _c, _d, _e, _f;
6808
+ const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
6809
+ const hasBillingInfo = publisher.billingAddress &&
6810
+ publisher.billingCity &&
6811
+ publisher.billingCountryCode &&
6812
+ publisher.billingPostalCode &&
6813
+ publisher.phoneNumberCountryCode &&
6814
+ publisher.phoneNumber;
6815
+ if (hasBillingInfo &&
6816
+ ((_b = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
6817
+ const vars = {
6818
+ user: {
6819
+ id: (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.id,
6820
+ accountId: (_d = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _d === void 0 ? void 0 : _d.accountId,
6821
+ },
6822
+ firstName: (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _e === void 0 ? void 0 : _e.firstName,
6823
+ lastName: (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _f === void 0 ? void 0 : _f.lastName,
6824
+ countryCode: publisher.billingCountryCode,
6825
+ currency: publisher.currency,
6826
+ address: publisher.billingAddress,
6827
+ city: publisher.billingCity,
6828
+ state: publisher.billingState,
6829
+ postalCode: publisher.billingPostalCode,
6830
+ phoneNumber: publisher.phoneNumber,
6831
+ phoneNumberCountryCode: publisher.phoneNumberCountryCode,
6832
+ };
6833
+ await completeImpactPartner({
6834
+ vars,
6835
+ });
6836
+ }
6837
+ }
6555
6838
  if (data$1) {
6556
6839
  const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
6557
6840
  if (!user || step !== "/loading")
6558
6841
  return;
6842
+ if (((_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) &&
6843
+ (user === null || user === void 0 ? void 0 : user.impactConnection.connectionStatus) === "STARTED") {
6844
+ completeConnection(user);
6845
+ refetch();
6846
+ }
6559
6847
  const currentStep = getCurrentStep(user);
6560
6848
  setStep(currentStep);
6561
6849
  }
@@ -6737,7 +7025,7 @@ const TaxAndCashMonolith = class {
6737
7025
  * @uiName Indirect tax number field label
6738
7026
  * @uiGroup Step 2 Properties
6739
7027
  */
6740
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
7028
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
6741
7029
  /**
6742
7030
  * @uiName Province field label
6743
7031
  * @uiGroup Step 2 Properties
@@ -6747,7 +7035,7 @@ const TaxAndCashMonolith = class {
6747
7035
  * @uiName Missing indirect tax number error message
6748
7036
  * @uiGroup Step 2 Properties
6749
7037
  */
6750
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
7038
+ this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
6751
7039
  /**
6752
7040
  * Displayed to participants registered for QST.
6753
7041
  * @uiName QST number field label
@@ -7060,12 +7348,22 @@ const TaxAndCashMonolith = class {
7060
7348
  * @uiGroup Step 4 Properties
7061
7349
  */
7062
7350
  this.step4_branchCodeLabel = "Branch code";
7351
+ /**
7352
+ * @uiName Branch name field label
7353
+ * @uiGroup Step 4 Properties
7354
+ */
7355
+ this.step4_branchNameLabel = "Branch name";
7063
7356
  /**
7064
7357
  * Label text for the classification input field
7065
7358
  * @uiName Classification field label
7066
7359
  * @uiGroup Step 4 Properties
7067
7360
  */
7068
7361
  this.step4_classificationLabel = "Classification";
7362
+ /**
7363
+ * @uiName Classification code field label
7364
+ * @uiGroup Step 4 Properties
7365
+ */
7366
+ this.step4_classificationCodeLabel = "KBE code";
7069
7367
  /**
7070
7368
  * @uiName Taxpayer ID field label
7071
7369
  * @uiGroup Step 4 Properties
@@ -7315,7 +7613,7 @@ const TaxAndCashMonolith = class {
7315
7613
  * @uiName Payout status badge
7316
7614
  * @uiGroup Dashboard Properties
7317
7615
  */
7318
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
7616
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
7319
7617
  /**
7320
7618
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
7321
7619
  * @uiName Payout schedule by threshold text
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
12
  const mixins = require('./mixins-4761d472.js');
13
- const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
13
+ const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
14
14
  const keys = require('./keys-5a2c9ed2.js');
15
15
  const useVerificationEmail = require('./useVerificationEmail-5d19aa99.js');
16
16
 
@@ -9,9 +9,9 @@ const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const utils = require('./utils-6847bc06.js');
11
11
  const JSS = require('./JSS-8503a151.js');
12
- const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
13
- const data = require('./data-c03e282a.js');
14
- const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-97770d03.js');
12
+ const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
13
+ const data = require('./data-89ac73dd.js');
14
+ const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-f6faecf5.js');
15
15
  const keys = require('./keys-5a2c9ed2.js');
16
16
  const eventKeys = require('./eventKeys-7af4df4d.js');
17
17
  const parseStates = require('./parseStates-d1effc19.js');
@@ -524,7 +524,7 @@ const START_IMPACT_CONNECTION = index_module.dist.gql `
524
524
  }
525
525
  `;
526
526
  function usePartnerInfoModal(props) {
527
- var _a, _b, _c, _d, _e, _f;
527
+ var _a, _b, _c, _d, _e, _f, _g;
528
528
  const locale = index_module.L();
529
529
  const setPartnerCreated = index_module.En(keys.PARTNER_CREATED_NAMESPACE);
530
530
  const { data: userData, loading: userLoading, refetch, } = index_module.wn(GET_USER_PARTNER_INFO, {});
@@ -532,8 +532,7 @@ function usePartnerInfoModal(props) {
532
532
  const { data: currenciesData, loading: currenciesLoading } = index_module.wn(GET_CURRENCIES, { variables: { locale } });
533
533
  const { data: countriesData, loading: countriesLoading } = index_module.wn(GET_COUNTRIES, {});
534
534
  // No pre-filled country, use locale to determine countryCode instead
535
- const [countryCode, setCountryCode] = domContextHooks_module.useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
536
- locale.replace(/^.*_/, ""));
535
+ const [countryCode, setCountryCode] = domContextHooks_module.useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) || locale.replace(/^.*_/, ""));
537
536
  const [currency, setCurrency] = domContextHooks_module.useState(((_d = (_c = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.currency) || "");
538
537
  const { data: financeNetworkData } = index_module.wn(data.GET_FINANCE_NETWORK_SETTINGS, {
539
538
  variables: { filter: countryCode ? { countryCode_eq: countryCode } : {} },
@@ -541,10 +540,17 @@ function usePartnerInfoModal(props) {
541
540
  const [startImpactConnection, { loading: connectLoading }] = index_module.$e(START_IMPACT_CONNECTION);
542
541
  const [allowBankingCollection, setAllowBankingCollection] = domContextHooks_module.useState(false);
543
542
  const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
543
+ const isExistingPartner = !!((_f = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher);
544
544
  const _currencies = domContextHooks_module.useMemo(() => {
545
- var _a, _b;
546
- const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
545
+ var _a, _b, _c;
546
+ // if isExistingPartner, grab all currencies since select is disabled anyways
547
+ if (isExistingPartner) {
548
+ return ((_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) || [];
549
+ }
550
+ const allValidCurrencies = (_c = (_b = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.reduce((agg, settings) => {
547
551
  var _a, _b;
552
+ if (countryCode && settings.countryCode !== countryCode)
553
+ return agg;
548
554
  const c = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((cur) => cur.currencyCode === settings.currency);
549
555
  if (!c)
550
556
  return agg;
@@ -553,11 +559,11 @@ function usePartnerInfoModal(props) {
553
559
  return [...agg, c];
554
560
  }, []);
555
561
  return allValidCurrencies || [];
556
- }, [financeNetworkData, currenciesData]);
562
+ }, [financeNetworkData, currenciesData, countryCode, isExistingPartner]);
557
563
  const currencies = domContextHooks_module.useMemo(() => [..._currencies].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
558
564
  const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
559
565
  const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
560
- const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(((_f = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _f === void 0 ? void 0 : _f.data) || []);
566
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(((_g = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _g === void 0 ? void 0 : _g.data) || []);
561
567
  const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
562
568
  const [error, setError] = domContextHooks_module.useState("");
563
569
  const [success, setSuccess] = domContextHooks_module.useState(false);
@@ -660,6 +666,7 @@ function usePartnerInfoModal(props) {
660
666
  setError(props.networkErrorText);
661
667
  }
662
668
  }
669
+ console.log(impactConnection, "impactConnection in partner modal");
663
670
  const showModal = !success &&
664
671
  !userLoading &&
665
672
  (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
@@ -668,7 +675,7 @@ function usePartnerInfoModal(props) {
668
675
  open: showModal,
669
676
  loading: userLoading || countriesLoading || currenciesLoading,
670
677
  submitting: connectLoading,
671
- isExistingPartner: !!(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher),
678
+ isExistingPartner,
672
679
  countryCode,
673
680
  currency,
674
681
  error,
@@ -784,7 +791,7 @@ const PartnerInfoModal = class {
784
791
  * @uiName Missing fields error text
785
792
  * @uiWidget textArea
786
793
  */
787
- this.missingFieldsErrorText = "Please select both a country and currency.";
794
+ this.missingFieldsErrorText = "Please fill out all fields.";
788
795
  /**
789
796
  * Used to render in another modal.
790
797
  * @undocumented
@@ -796,7 +803,7 @@ const PartnerInfoModal = class {
796
803
  * @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
797
804
  * @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
798
805
  */
799
- this.stateController = "{}";
806
+ this.stateController = '{"sqm-partner-info-modal":{"states":{"open":false}}}';
800
807
  domContextHooks_module.h$1(this);
801
808
  }
802
809
  disconnectedCallback() { }
@@ -9,7 +9,7 @@ require('./index.module-f8c8495f.js');
9
9
  const utils = require('./utils-6847bc06.js');
10
10
  require('./JSS-8503a151.js');
11
11
  const imageUrl = require('./imageUrl-a7880cab.js');
12
- const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
12
+ const sqmPortalContainerView = require('./sqm-portal-container-view-757f921b.js');
13
13
 
14
14
  function EmptyStateView(props) {
15
15
  const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
@@ -103,7 +103,7 @@ function PartnerInfoModalContentView(props) {
103
103
  callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
104
104
  } }),
105
105
  index.h("div", { class: sheet.classes.SelectMenu }, (_a = states.filteredCountries) === null || _a === void 0 ? void 0 : _a.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))))),
106
- index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.currency, required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
106
+ index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || (!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
107
107
  index.h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }),
108
108
  index.h("div", { class: sheet.classes.SelectMenu }, (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 : _b.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
109
109
  c.currencyCode,
@@ -48,12 +48,11 @@ function PortalContainerView(props, children) {
48
48
  }`;
49
49
  const sheet = JSS.createStyleSheet(style);
50
50
  const styleString = sheet.toString();
51
- return (index.h(index.Host, null,
52
- index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
53
- index.h("style", { type: "text/css" },
54
- vanillaStyle,
55
- styleString),
56
- children)));
51
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
52
+ index.h("style", { type: "text/css" },
53
+ vanillaStyle,
54
+ styleString),
55
+ children));
57
56
  }
58
57
 
59
58
  exports.PortalContainerView = PortalContainerView;
@@ -4,7 +4,7 @@ const index = require('./index-8277cbb3.js');
4
4
  const global = require('./global-b7b1b8fe.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const mixins = require('./mixins-4761d472.js');
7
- const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
7
+ const sqmTextSpanView = require('./sqm-text-span-view-b9e10f5d.js');
8
8
 
9
9
  const style = {
10
10
  Wrapper: mixins.AuthWrapper,
@@ -9,8 +9,8 @@ const index_module = require('./index.module-f8c8495f.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  require('./mixins-4761d472.js');
12
- require('./sqm-text-span-view-8a32dd8c.js');
13
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-d51c2a06.js');
12
+ require('./sqm-text-span-view-b9e10f5d.js');
13
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-abb773a7.js');
14
14
 
15
15
  function usePortalEmailVerification(props) {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;